diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..ab1f416 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,10 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Ignored default folder with query files +/queries/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/Thesis.iml b/.idea/Thesis.iml new file mode 100644 index 0000000..f571432 --- /dev/null +++ b/.idea/Thesis.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..db8786c --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..8424307 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/CACHEDIR.TAG b/CACHEDIR.TAG new file mode 100644 index 0000000..837feef --- /dev/null +++ b/CACHEDIR.TAG @@ -0,0 +1,4 @@ +Signature: 8a477f597d28d172789f06886806bc55 +# This file is a cache directory tag created by Python virtualenv. +# For information about cache directory tags, see: +# https://bford.info/cachedir/ \ No newline at end of file diff --git a/bin/activate b/bin/activate new file mode 100644 index 0000000..d390710 --- /dev/null +++ b/bin/activate @@ -0,0 +1,87 @@ +# This file must be used with "source bin/activate" *from bash* +# you cannot run it directly + + +if [ "${BASH_SOURCE-}" = "$0" ]; then + echo "You must source this script: \$ source $0" >&2 + exit 33 +fi + +deactivate () { + unset -f pydoc >/dev/null 2>&1 || true + + # reset old environment variables + # ! [ -z ${VAR+_} ] returns true if VAR is declared at all + if ! [ -z "${_OLD_VIRTUAL_PATH:+_}" ] ; then + PATH="$_OLD_VIRTUAL_PATH" + export PATH + unset _OLD_VIRTUAL_PATH + fi + if ! [ -z "${_OLD_VIRTUAL_PYTHONHOME+_}" ] ; then + PYTHONHOME="$_OLD_VIRTUAL_PYTHONHOME" + export PYTHONHOME + unset _OLD_VIRTUAL_PYTHONHOME + fi + + # The hash command must be called to get it to forget past + # commands. Without forgetting past commands the $PATH changes + # we made may not be respected + hash -r 2>/dev/null + + if ! [ -z "${_OLD_VIRTUAL_PS1+_}" ] ; then + PS1="$_OLD_VIRTUAL_PS1" + export PS1 + unset _OLD_VIRTUAL_PS1 + fi + + unset VIRTUAL_ENV + unset VIRTUAL_ENV_PROMPT + if [ ! "${1-}" = "nondestructive" ] ; then + # Self destruct! + unset -f deactivate + fi +} + +# unset irrelevant variables +deactivate nondestructive + +VIRTUAL_ENV=/home/zin/projects/Thesis +if ([ "$OSTYPE" = "cygwin" ] || [ "$OSTYPE" = "msys" ]) && $(command -v cygpath &> /dev/null) ; then + VIRTUAL_ENV=$(cygpath -u "$VIRTUAL_ENV") +fi +export VIRTUAL_ENV + +_OLD_VIRTUAL_PATH="$PATH" +PATH="$VIRTUAL_ENV/"bin":$PATH" +export PATH + +if [ "x"'' != x ] ; then + VIRTUAL_ENV_PROMPT='' +else + VIRTUAL_ENV_PROMPT=$(basename "$VIRTUAL_ENV") +fi +export VIRTUAL_ENV_PROMPT + +# unset PYTHONHOME if set +if ! [ -z "${PYTHONHOME+_}" ] ; then + _OLD_VIRTUAL_PYTHONHOME="$PYTHONHOME" + unset PYTHONHOME +fi + +if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT-}" ] ; then + _OLD_VIRTUAL_PS1="${PS1-}" + PS1="(${VIRTUAL_ENV_PROMPT}) ${PS1-}" + export PS1 +fi + +# Make sure to unalias pydoc if it's already there +alias pydoc 2>/dev/null >/dev/null && unalias pydoc || true + +pydoc () { + python -m pydoc "$@" +} + +# The hash command must be called to get it to forget past +# commands. Without forgetting past commands the $PATH changes +# we made may not be respected +hash -r 2>/dev/null || true diff --git a/bin/activate.csh b/bin/activate.csh new file mode 100644 index 0000000..08ccc2d --- /dev/null +++ b/bin/activate.csh @@ -0,0 +1,55 @@ +# This file must be used with "source bin/activate.csh" *from csh*. +# You cannot run it directly. +# Created by Davide Di Blasi . + +set newline='\ +' + +alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH:q" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT:q" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; unsetenv VIRTUAL_ENV_PROMPT; test "\!:*" != "nondestructive" && unalias deactivate && unalias pydoc' + +# Unset irrelevant variables. +deactivate nondestructive + +setenv VIRTUAL_ENV /home/zin/projects/Thesis + +set _OLD_VIRTUAL_PATH="$PATH:q" +setenv PATH "$VIRTUAL_ENV:q/"bin":$PATH:q" + + + +if ('' != "") then + setenv VIRTUAL_ENV_PROMPT '' +else + setenv VIRTUAL_ENV_PROMPT "$VIRTUAL_ENV:t:q" +endif + +if ( $?VIRTUAL_ENV_DISABLE_PROMPT ) then + if ( $VIRTUAL_ENV_DISABLE_PROMPT == "" ) then + set do_prompt = "1" + else + set do_prompt = "0" + endif +else + set do_prompt = "1" +endif + +if ( $do_prompt == "1" ) then + # Could be in a non-interactive environment, + # in which case, $prompt is undefined and we wouldn't + # care about the prompt anyway. + if ( $?prompt ) then + set _OLD_VIRTUAL_PROMPT="$prompt:q" + if ( "$prompt:q" =~ *"$newline:q"* ) then + : + else + set prompt = '('"$VIRTUAL_ENV_PROMPT:q"') '"$prompt:q" + endif + endif +endif + +unset env_name +unset do_prompt + +alias pydoc python -m pydoc + +rehash diff --git a/bin/activate.fish b/bin/activate.fish new file mode 100644 index 0000000..fe1dac8 --- /dev/null +++ b/bin/activate.fish @@ -0,0 +1,103 @@ +# This file must be used using `source bin/activate.fish` *within a running fish ( http://fishshell.com ) session*. +# Do not run it directly. + +function _bashify_path -d "Converts a fish path to something bash can recognize" + set fishy_path $argv + set bashy_path $fishy_path[1] + for path_part in $fishy_path[2..-1] + set bashy_path "$bashy_path:$path_part" + end + echo $bashy_path +end + +function _fishify_path -d "Converts a bash path to something fish can recognize" + echo $argv | tr ':' '\n' +end + +function deactivate -d 'Exit virtualenv mode and return to the normal environment.' + # reset old environment variables + if test -n "$_OLD_VIRTUAL_PATH" + # https://github.com/fish-shell/fish-shell/issues/436 altered PATH handling + if test (echo $FISH_VERSION | head -c 1) -lt 3 + set -gx PATH (_fishify_path "$_OLD_VIRTUAL_PATH") + else + set -gx PATH $_OLD_VIRTUAL_PATH + end + set -e _OLD_VIRTUAL_PATH + end + + if test -n "$_OLD_VIRTUAL_PYTHONHOME" + set -gx PYTHONHOME "$_OLD_VIRTUAL_PYTHONHOME" + set -e _OLD_VIRTUAL_PYTHONHOME + end + + if test -n "$_OLD_FISH_PROMPT_OVERRIDE" + and functions -q _old_fish_prompt + # Set an empty local `$fish_function_path` to allow the removal of `fish_prompt` using `functions -e`. + set -l fish_function_path + + # Erase virtualenv's `fish_prompt` and restore the original. + functions -e fish_prompt + functions -c _old_fish_prompt fish_prompt + functions -e _old_fish_prompt + set -e _OLD_FISH_PROMPT_OVERRIDE + end + + set -e VIRTUAL_ENV + set -e VIRTUAL_ENV_PROMPT + + if test "$argv[1]" != 'nondestructive' + # Self-destruct! + functions -e pydoc + functions -e deactivate + functions -e _bashify_path + functions -e _fishify_path + end +end + +# Unset irrelevant variables. +deactivate nondestructive + +set -gx VIRTUAL_ENV /home/zin/projects/Thesis + +# https://github.com/fish-shell/fish-shell/issues/436 altered PATH handling +if test (echo $FISH_VERSION | head -c 1) -lt 3 + set -gx _OLD_VIRTUAL_PATH (_bashify_path $PATH) +else + set -gx _OLD_VIRTUAL_PATH $PATH +end +set -gx PATH "$VIRTUAL_ENV"'/'bin $PATH + +# Prompt override provided? +# If not, just use the environment name. +if test -n '' + set -gx VIRTUAL_ENV_PROMPT '' +else + set -gx VIRTUAL_ENV_PROMPT (basename "$VIRTUAL_ENV") +end + +# Unset `$PYTHONHOME` if set. +if set -q PYTHONHOME + set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME + set -e PYTHONHOME +end + +function pydoc + python -m pydoc $argv +end + +if test -z "$VIRTUAL_ENV_DISABLE_PROMPT" + # Copy the current `fish_prompt` function as `_old_fish_prompt`. + functions -c fish_prompt _old_fish_prompt + + function fish_prompt + # Run the user's prompt first; it might depend on (pipe)status. + set -l prompt (_old_fish_prompt) + + printf '(%s) ' $VIRTUAL_ENV_PROMPT + + string join -- \n $prompt # handle multi-line prompts + end + + set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV" +end diff --git a/bin/activate.nu b/bin/activate.nu new file mode 100644 index 0000000..bc881df --- /dev/null +++ b/bin/activate.nu @@ -0,0 +1,96 @@ +# virtualenv activation module +# Activate with `overlay use activate.nu` +# Deactivate with `deactivate`, as usual +# +# To customize the overlay name, you can call `overlay use activate.nu as foo`, +# but then simply `deactivate` won't work because it is just an alias to hide +# the "activate" overlay. You'd need to call `overlay hide foo` manually. + +export-env { + def is-string [x] { + ($x | describe) == 'string' + } + + def has-env [...names] { + $names | each {|n| + $n in $env + } | all {|i| $i == true} + } + + # Emulates a `test -z`, but better as it handles e.g 'false' + def is-env-true [name: string] { + if (has-env $name) { + # Try to parse 'true', '0', '1', and fail if not convertible + let parsed = (do -i { $env | get $name | into bool }) + if ($parsed | describe) == 'bool' { + $parsed + } else { + not ($env | get -i $name | is-empty) + } + } else { + false + } + } + + let virtual_env = r#'/home/zin/projects/Thesis'# + let bin = r#'bin'# + + let is_windows = ($nu.os-info.family) == 'windows' + let path_name = (if (has-env 'Path') { + 'Path' + } else { + 'PATH' + } + ) + + let venv_path = ([$virtual_env $bin] | path join) + let new_path = ($env | get $path_name | prepend $venv_path) + + # If there is no default prompt, then use the env name instead + let virtual_env_prompt = (if (r#''# | is-empty) { + ($virtual_env | path basename) + } else { + r#''# + }) + + let new_env = { + $path_name : $new_path + VIRTUAL_ENV : $virtual_env + VIRTUAL_ENV_PROMPT : $virtual_env_prompt + } + + let new_env = (if (is-env-true 'VIRTUAL_ENV_DISABLE_PROMPT') { + $new_env + } else { + # Creating the new prompt for the session + let virtual_prefix = $'(char lparen)($virtual_env_prompt)(char rparen) ' + + # Back up the old prompt builder + let old_prompt_command = (if (has-env 'PROMPT_COMMAND') { + $env.PROMPT_COMMAND + } else { + '' + }) + + let new_prompt = (if (has-env 'PROMPT_COMMAND') { + if 'closure' in ($old_prompt_command | describe) { + {|| $'($virtual_prefix)(do $old_prompt_command)' } + } else { + {|| $'($virtual_prefix)($old_prompt_command)' } + } + } else { + {|| $'($virtual_prefix)' } + }) + + $new_env | merge { + PROMPT_COMMAND : $new_prompt + VIRTUAL_PREFIX : $virtual_prefix + } + }) + + # Environment variables that will be loaded as the virtual env + load-env $new_env +} + +export alias pydoc = python -m pydoc +export alias deactivate = overlay hide activate diff --git a/bin/activate.ps1 b/bin/activate.ps1 new file mode 100644 index 0000000..3333e2b --- /dev/null +++ b/bin/activate.ps1 @@ -0,0 +1,61 @@ +$script:THIS_PATH = $myinvocation.mycommand.path +$script:BASE_DIR = Split-Path (Resolve-Path "$THIS_PATH/..") -Parent + +function global:deactivate([switch] $NonDestructive) { + if (Test-Path variable:_OLD_VIRTUAL_PATH) { + $env:PATH = $variable:_OLD_VIRTUAL_PATH + Remove-Variable "_OLD_VIRTUAL_PATH" -Scope global + } + + if (Test-Path function:_old_virtual_prompt) { + $function:prompt = $function:_old_virtual_prompt + Remove-Item function:\_old_virtual_prompt + } + + if ($env:VIRTUAL_ENV) { + Remove-Item env:VIRTUAL_ENV -ErrorAction SilentlyContinue + } + + if ($env:VIRTUAL_ENV_PROMPT) { + Remove-Item env:VIRTUAL_ENV_PROMPT -ErrorAction SilentlyContinue + } + + if (!$NonDestructive) { + # Self destruct! + Remove-Item function:deactivate + Remove-Item function:pydoc + } +} + +function global:pydoc { + python -m pydoc $args +} + +# unset irrelevant variables +deactivate -nondestructive + +$VIRTUAL_ENV = $BASE_DIR +$env:VIRTUAL_ENV = $VIRTUAL_ENV + +if ('' -ne "") { + $env:VIRTUAL_ENV_PROMPT = '' +} +else { + $env:VIRTUAL_ENV_PROMPT = $( Split-Path $env:VIRTUAL_ENV -Leaf ) +} + +New-Variable -Scope global -Name _OLD_VIRTUAL_PATH -Value $env:PATH + +$env:PATH = "$env:VIRTUAL_ENV/" + 'bin' + ':' + $env:PATH +if (!$env:VIRTUAL_ENV_DISABLE_PROMPT) { + function global:_old_virtual_prompt { + "" + } + $function:_old_virtual_prompt = $function:prompt + + function global:prompt { + # Add the custom prefix to the existing prompt + $previous_prompt_value = & $function:_old_virtual_prompt + ("(" + $env:VIRTUAL_ENV_PROMPT + ") " + $previous_prompt_value) + } +} diff --git a/bin/activate_this.py b/bin/activate_this.py new file mode 100644 index 0000000..9860618 --- /dev/null +++ b/bin/activate_this.py @@ -0,0 +1,38 @@ +""" +Activate virtualenv for current interpreter: + +import runpy +runpy.run_path(this_file) + +This can be used when you must use an existing Python interpreter, not the virtualenv bin/python. +""" # noqa: D415 + +from __future__ import annotations + +import os +import site +import sys + +try: + abs_file = os.path.abspath(__file__) +except NameError as exc: + msg = "You must use import runpy; runpy.run_path(this_file)" + raise AssertionError(msg) from exc + +bin_dir = os.path.dirname(abs_file) +base = bin_dir[: -len('bin') - 1] # strip away the bin part from the __file__, plus the path separator + +# prepend bin to PATH (this file is inside the bin directory) +os.environ["PATH"] = os.pathsep.join([bin_dir, *os.environ.get("PATH", "").split(os.pathsep)]) +os.environ["VIRTUAL_ENV"] = base # virtual env is right above bin directory +os.environ["VIRTUAL_ENV_PROMPT"] = '' or os.path.basename(base) + +# add the virtual environments libraries to the host python import mechanism +prev_length = len(sys.path) +for lib in '../lib/python3.12/site-packages'.split(os.pathsep): + path = os.path.realpath(os.path.join(bin_dir, lib)) + site.addsitedir(path.decode("utf-8") if '' else path) +sys.path[:] = sys.path[prev_length:] + sys.path[0:prev_length] + +sys.real_prefix = sys.prefix +sys.prefix = base diff --git a/bin/debugpy b/bin/debugpy new file mode 100755 index 0000000..edb1763 --- /dev/null +++ b/bin/debugpy @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from debugpy.server.cli import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/debugpy-adapter b/bin/debugpy-adapter new file mode 100755 index 0000000..05fb64e --- /dev/null +++ b/bin/debugpy-adapter @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from debugpy.adapter.__main__ import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/f2py b/bin/f2py new file mode 100755 index 0000000..c06aedb --- /dev/null +++ b/bin/f2py @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from numpy.f2py.f2py2e import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/fonttools b/bin/fonttools new file mode 100755 index 0000000..22c5a4a --- /dev/null +++ b/bin/fonttools @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from fontTools.__main__ import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/httpx b/bin/httpx new file mode 100755 index 0000000..60452ce --- /dev/null +++ b/bin/httpx @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from httpx import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/ipython b/bin/ipython new file mode 100755 index 0000000..e552738 --- /dev/null +++ b/bin/ipython @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from IPython import start_ipython +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(start_ipython()) diff --git a/bin/ipython3 b/bin/ipython3 new file mode 100755 index 0000000..e552738 --- /dev/null +++ b/bin/ipython3 @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from IPython import start_ipython +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(start_ipython()) diff --git a/bin/isympy b/bin/isympy new file mode 100755 index 0000000..a2c48fb --- /dev/null +++ b/bin/isympy @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from isympy import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/jlpm b/bin/jlpm new file mode 100755 index 0000000..70c6c91 --- /dev/null +++ b/bin/jlpm @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from jupyterlab.jlpmapp import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/jsonpointer b/bin/jsonpointer new file mode 100755 index 0000000..ff29a23 --- /dev/null +++ b/bin/jsonpointer @@ -0,0 +1,67 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- + + +import argparse +import json +import sys + +import jsonpointer + +parser = argparse.ArgumentParser( + description='Resolve a JSON pointer on JSON files') + +# Accept pointer as argument or as file +ptr_group = parser.add_mutually_exclusive_group(required=True) + +ptr_group.add_argument('-f', '--pointer-file', type=argparse.FileType('r'), + nargs='?', + help='File containing a JSON pointer expression') + +ptr_group.add_argument('POINTER', type=str, nargs='?', + help='A JSON pointer expression') + +parser.add_argument('FILE', type=argparse.FileType('r'), nargs='+', + help='Files for which the pointer should be resolved') +parser.add_argument('--indent', type=int, default=None, + help='Indent output by n spaces') +parser.add_argument('-v', '--version', action='version', + version='%(prog)s ' + jsonpointer.__version__) + + +def main(): + try: + resolve_files() + except KeyboardInterrupt: + sys.exit(1) + + +def parse_pointer(args): + if args.POINTER: + ptr = args.POINTER + elif args.pointer_file: + ptr = args.pointer_file.read().strip() + else: + parser.print_usage() + sys.exit(1) + + return ptr + + +def resolve_files(): + """ Resolve a JSON pointer on JSON files """ + args = parser.parse_args() + + ptr = parse_pointer(args) + + for f in args.FILE: + doc = json.load(f) + try: + result = jsonpointer.resolve_pointer(doc, ptr) + print(json.dumps(result, indent=args.indent)) + except jsonpointer.JsonPointerException as e: + print('Could not resolve pointer: %s' % str(e), file=sys.stderr) + + +if __name__ == "__main__": + main() diff --git a/bin/jsonschema b/bin/jsonschema new file mode 100755 index 0000000..c6e3d3e --- /dev/null +++ b/bin/jsonschema @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from jsonschema.cli import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/jupyter b/bin/jupyter new file mode 100755 index 0000000..87d740e --- /dev/null +++ b/bin/jupyter @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from jupyter_core.command import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/jupyter-dejavu b/bin/jupyter-dejavu new file mode 100755 index 0000000..1caf6f8 --- /dev/null +++ b/bin/jupyter-dejavu @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from nbconvert.nbconvertapp import dejavu_main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(dejavu_main()) diff --git a/bin/jupyter-events b/bin/jupyter-events new file mode 100755 index 0000000..700913c --- /dev/null +++ b/bin/jupyter-events @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from jupyter_events.cli import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/jupyter-execute b/bin/jupyter-execute new file mode 100755 index 0000000..925512b --- /dev/null +++ b/bin/jupyter-execute @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from nbclient.cli import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/jupyter-kernel b/bin/jupyter-kernel new file mode 100755 index 0000000..8c9b839 --- /dev/null +++ b/bin/jupyter-kernel @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from jupyter_client.kernelapp import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/jupyter-kernelspec b/bin/jupyter-kernelspec new file mode 100755 index 0000000..b53dd9b --- /dev/null +++ b/bin/jupyter-kernelspec @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from jupyter_client.kernelspecapp import KernelSpecApp +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(KernelSpecApp.launch_instance()) diff --git a/bin/jupyter-lab b/bin/jupyter-lab new file mode 100755 index 0000000..49f25c4 --- /dev/null +++ b/bin/jupyter-lab @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from jupyterlab.labapp import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/jupyter-labextension b/bin/jupyter-labextension new file mode 100755 index 0000000..943ea32 --- /dev/null +++ b/bin/jupyter-labextension @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from jupyterlab.labextensions import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/jupyter-labhub b/bin/jupyter-labhub new file mode 100755 index 0000000..3a55fa3 --- /dev/null +++ b/bin/jupyter-labhub @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from jupyterlab.labhubapp import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/jupyter-migrate b/bin/jupyter-migrate new file mode 100755 index 0000000..34b7c68 --- /dev/null +++ b/bin/jupyter-migrate @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from jupyter_core.migrate import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/jupyter-nbconvert b/bin/jupyter-nbconvert new file mode 100755 index 0000000..d5d7852 --- /dev/null +++ b/bin/jupyter-nbconvert @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from nbconvert.nbconvertapp import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/jupyter-run b/bin/jupyter-run new file mode 100755 index 0000000..8df04c6 --- /dev/null +++ b/bin/jupyter-run @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from jupyter_client.runapp import RunApp +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(RunApp.launch_instance()) diff --git a/bin/jupyter-server b/bin/jupyter-server new file mode 100755 index 0000000..1480696 --- /dev/null +++ b/bin/jupyter-server @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from jupyter_server.serverapp import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/jupyter-troubleshoot b/bin/jupyter-troubleshoot new file mode 100755 index 0000000..06ab8e8 --- /dev/null +++ b/bin/jupyter-troubleshoot @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from jupyter_core.troubleshoot import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/jupyter-trust b/bin/jupyter-trust new file mode 100755 index 0000000..7079733 --- /dev/null +++ b/bin/jupyter-trust @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from nbformat.sign import TrustNotebookApp +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(TrustNotebookApp.launch_instance()) diff --git a/bin/normalizer b/bin/normalizer new file mode 100755 index 0000000..14bdf2e --- /dev/null +++ b/bin/normalizer @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from charset_normalizer.cli import cli_detect +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(cli_detect()) diff --git a/bin/numpy-config b/bin/numpy-config new file mode 100755 index 0000000..473a273 --- /dev/null +++ b/bin/numpy-config @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from numpy._configtool import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/pip b/bin/pip new file mode 100755 index 0000000..463bce3 --- /dev/null +++ b/bin/pip @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from pip._internal.cli.main import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/pip-3.12 b/bin/pip-3.12 new file mode 100755 index 0000000..463bce3 --- /dev/null +++ b/bin/pip-3.12 @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from pip._internal.cli.main import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/pip3 b/bin/pip3 new file mode 100755 index 0000000..463bce3 --- /dev/null +++ b/bin/pip3 @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from pip._internal.cli.main import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/pip3.12 b/bin/pip3.12 new file mode 100755 index 0000000..463bce3 --- /dev/null +++ b/bin/pip3.12 @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from pip._internal.cli.main import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bin/proton b/bin/proton new file mode 100755 index 0000000..ea25227 --- /dev/null +++ b/bin/proton @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from triton.profiler.proton import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/proton-viewer b/bin/proton-viewer new file mode 100755 index 0000000..df5dd67 --- /dev/null +++ b/bin/proton-viewer @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from triton.profiler.viewer import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/pybabel b/bin/pybabel new file mode 100755 index 0000000..cc9bc97 --- /dev/null +++ b/bin/pybabel @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from babel.messages.frontend import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/pyftmerge b/bin/pyftmerge new file mode 100755 index 0000000..7817908 --- /dev/null +++ b/bin/pyftmerge @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from fontTools.merge import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/pyftsubset b/bin/pyftsubset new file mode 100755 index 0000000..a53afdb --- /dev/null +++ b/bin/pyftsubset @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from fontTools.subset import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/pygmentize b/bin/pygmentize new file mode 100755 index 0000000..794ed2c --- /dev/null +++ b/bin/pygmentize @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from pygments.cmdline import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/pyjson5 b/bin/pyjson5 new file mode 100755 index 0000000..5333311 --- /dev/null +++ b/bin/pyjson5 @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from json5.tool import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/python b/bin/python new file mode 120000 index 0000000..ae65fda --- /dev/null +++ b/bin/python @@ -0,0 +1 @@ +/usr/bin/python3 \ No newline at end of file diff --git a/bin/python3 b/bin/python3 new file mode 120000 index 0000000..d8654aa --- /dev/null +++ b/bin/python3 @@ -0,0 +1 @@ +python \ No newline at end of file diff --git a/bin/python3.12 b/bin/python3.12 new file mode 120000 index 0000000..d8654aa --- /dev/null +++ b/bin/python3.12 @@ -0,0 +1 @@ +python \ No newline at end of file diff --git a/bin/send2trash b/bin/send2trash new file mode 100755 index 0000000..5750af0 --- /dev/null +++ b/bin/send2trash @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from send2trash.__main__ import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/torchfrtrace b/bin/torchfrtrace new file mode 100755 index 0000000..820eea8 --- /dev/null +++ b/bin/torchfrtrace @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from tools.flight_recorder.fr_trace import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/torchrun b/bin/torchrun new file mode 100755 index 0000000..3c9a70b --- /dev/null +++ b/bin/torchrun @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from torch.distributed.run import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/tqdm b/bin/tqdm new file mode 100755 index 0000000..160cb5c --- /dev/null +++ b/bin/tqdm @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from tqdm.cli import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/ttx b/bin/ttx new file mode 100755 index 0000000..fa62fde --- /dev/null +++ b/bin/ttx @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from fontTools.ttx import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/bin/wsdump b/bin/wsdump new file mode 100755 index 0000000..3a2a7b2 --- /dev/null +++ b/bin/wsdump @@ -0,0 +1,8 @@ +#!/home/zin/projects/Thesis/bin/python +# -*- coding: utf-8 -*- +import re +import sys +from websocket._wsdump import main +if __name__ == "__main__": + sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) + sys.exit(main()) diff --git a/etc/jupyter/jupyter_notebook_config.d/jupyterlab.json b/etc/jupyter/jupyter_notebook_config.d/jupyterlab.json new file mode 100644 index 0000000..5b5dcda --- /dev/null +++ b/etc/jupyter/jupyter_notebook_config.d/jupyterlab.json @@ -0,0 +1,7 @@ +{ + "NotebookApp": { + "nbserver_extensions": { + "jupyterlab": true + } + } +} diff --git a/etc/jupyter/jupyter_server_config.d/jupyter-lsp-jupyter-server.json b/etc/jupyter/jupyter_server_config.d/jupyter-lsp-jupyter-server.json new file mode 100644 index 0000000..9e37d4e --- /dev/null +++ b/etc/jupyter/jupyter_server_config.d/jupyter-lsp-jupyter-server.json @@ -0,0 +1,7 @@ +{ + "ServerApp": { + "jpserver_extensions": { + "jupyter_lsp": true + } + } +} diff --git a/etc/jupyter/jupyter_server_config.d/jupyter_server_terminals.json b/etc/jupyter/jupyter_server_config.d/jupyter_server_terminals.json new file mode 100644 index 0000000..97c80c2 --- /dev/null +++ b/etc/jupyter/jupyter_server_config.d/jupyter_server_terminals.json @@ -0,0 +1,7 @@ +{ + "ServerApp": { + "jpserver_extensions": { + "jupyter_server_terminals": true + } + } +} diff --git a/etc/jupyter/jupyter_server_config.d/jupyterlab.json b/etc/jupyter/jupyter_server_config.d/jupyterlab.json new file mode 100644 index 0000000..99cc084 --- /dev/null +++ b/etc/jupyter/jupyter_server_config.d/jupyterlab.json @@ -0,0 +1,7 @@ +{ + "ServerApp": { + "jpserver_extensions": { + "jupyterlab": true + } + } +} diff --git a/etc/jupyter/jupyter_server_config.d/notebook_shim.json b/etc/jupyter/jupyter_server_config.d/notebook_shim.json new file mode 100644 index 0000000..1e789c3 --- /dev/null +++ b/etc/jupyter/jupyter_server_config.d/notebook_shim.json @@ -0,0 +1,7 @@ +{ + "ServerApp": { + "jpserver_extensions": { + "notebook_shim": true + } + } +} diff --git a/poetry.lock b/poetry.lock new file mode 100644 index 0000000..3e06c62 --- /dev/null +++ b/poetry.lock @@ -0,0 +1,3820 @@ +# This file is automatically @generated by Poetry 2.2.1 and should not be changed by hand. + +[[package]] +name = "anyio" +version = "4.12.1" +description = "High-level concurrency and networking framework on top of asyncio or Trio" +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "anyio-4.12.1-py3-none-any.whl", hash = "sha256:d405828884fc140aa80a3c667b8beed277f1dfedec42ba031bd6ac3db606ab6c"}, + {file = "anyio-4.12.1.tar.gz", hash = "sha256:41cfcc3a4c85d3f05c932da7c26d0201ac36f72abd4435ba90d0464a3ffed703"}, +] + +[package.dependencies] +idna = ">=2.8" +typing_extensions = {version = ">=4.5", markers = "python_version < \"3.13\""} + +[package.extras] +trio = ["trio (>=0.31.0) ; python_version < \"3.10\"", "trio (>=0.32.0) ; python_version >= \"3.10\""] + +[[package]] +name = "appnope" +version = "0.1.4" +description = "Disable App Nap on macOS >= 10.9" +optional = false +python-versions = ">=3.6" +groups = ["main"] +markers = "platform_system == \"Darwin\"" +files = [ + {file = "appnope-0.1.4-py2.py3-none-any.whl", hash = "sha256:502575ee11cd7a28c0205f379b525beefebab9d161b7c964670864014ed7213c"}, + {file = "appnope-0.1.4.tar.gz", hash = "sha256:1de3860566df9caf38f01f86f65e0e13e379af54f9e4bee1e66b48f2efffd1ee"}, +] + +[[package]] +name = "argon2-cffi" +version = "25.1.0" +description = "Argon2 for Python" +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "argon2_cffi-25.1.0-py3-none-any.whl", hash = "sha256:fdc8b074db390fccb6eb4a3604ae7231f219aa669a2652e0f20e16ba513d5741"}, + {file = "argon2_cffi-25.1.0.tar.gz", hash = "sha256:694ae5cc8a42f4c4e2bf2ca0e64e51e23a040c6a517a85074683d3959e1346c1"}, +] + +[package.dependencies] +argon2-cffi-bindings = "*" + +[[package]] +name = "argon2-cffi-bindings" +version = "25.1.0" +description = "Low-level CFFI bindings for Argon2" +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "argon2_cffi_bindings-25.1.0-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:3d3f05610594151994ca9ccb3c771115bdb4daef161976a266f0dd8aa9996b8f"}, + {file = "argon2_cffi_bindings-25.1.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:8b8efee945193e667a396cbc7b4fb7d357297d6234d30a489905d96caabde56b"}, + {file = "argon2_cffi_bindings-25.1.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:3c6702abc36bf3ccba3f802b799505def420a1b7039862014a65db3205967f5a"}, + {file = "argon2_cffi_bindings-25.1.0-cp314-cp314t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a1c70058c6ab1e352304ac7e3b52554daadacd8d453c1752e547c76e9c99ac44"}, + {file = "argon2_cffi_bindings-25.1.0-cp314-cp314t-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e2fd3bfbff3c5d74fef31a722f729bf93500910db650c925c2d6ef879a7e51cb"}, + {file = "argon2_cffi_bindings-25.1.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:c4f9665de60b1b0e99bcd6be4f17d90339698ce954cfd8d9cf4f91c995165a92"}, + {file = "argon2_cffi_bindings-25.1.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:ba92837e4a9aa6a508c8d2d7883ed5a8f6c308c89a4790e1e447a220deb79a85"}, + {file = "argon2_cffi_bindings-25.1.0-cp314-cp314t-win32.whl", hash = "sha256:84a461d4d84ae1295871329b346a97f68eade8c53b6ed9a7ca2d7467f3c8ff6f"}, + {file = "argon2_cffi_bindings-25.1.0-cp314-cp314t-win_amd64.whl", hash = "sha256:b55aec3565b65f56455eebc9b9f34130440404f27fe21c3b375bf1ea4d8fbae6"}, + {file = "argon2_cffi_bindings-25.1.0-cp314-cp314t-win_arm64.whl", hash = "sha256:87c33a52407e4c41f3b70a9c2d3f6056d88b10dad7695be708c5021673f55623"}, + {file = "argon2_cffi_bindings-25.1.0-cp39-abi3-macosx_10_9_universal2.whl", hash = "sha256:aecba1723ae35330a008418a91ea6cfcedf6d31e5fbaa056a166462ff066d500"}, + {file = "argon2_cffi_bindings-25.1.0-cp39-abi3-macosx_10_9_x86_64.whl", hash = "sha256:2630b6240b495dfab90aebe159ff784d08ea999aa4b0d17efa734055a07d2f44"}, + {file = "argon2_cffi_bindings-25.1.0-cp39-abi3-macosx_11_0_arm64.whl", hash = "sha256:7aef0c91e2c0fbca6fc68e7555aa60ef7008a739cbe045541e438373bc54d2b0"}, + {file = "argon2_cffi_bindings-25.1.0-cp39-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1e021e87faa76ae0d413b619fe2b65ab9a037f24c60a1e6cc43457ae20de6dc6"}, + {file = "argon2_cffi_bindings-25.1.0-cp39-abi3-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d3e924cfc503018a714f94a49a149fdc0b644eaead5d1f089330399134fa028a"}, + {file = "argon2_cffi_bindings-25.1.0-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:c87b72589133f0346a1cb8d5ecca4b933e3c9b64656c9d175270a000e73b288d"}, + {file = "argon2_cffi_bindings-25.1.0-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:1db89609c06afa1a214a69a462ea741cf735b29a57530478c06eb81dd403de99"}, + {file = "argon2_cffi_bindings-25.1.0-cp39-abi3-win32.whl", hash = "sha256:473bcb5f82924b1becbb637b63303ec8d10e84c8d241119419897a26116515d2"}, + {file = "argon2_cffi_bindings-25.1.0-cp39-abi3-win_amd64.whl", hash = "sha256:a98cd7d17e9f7ce244c0803cad3c23a7d379c301ba618a5fa76a67d116618b98"}, + {file = "argon2_cffi_bindings-25.1.0-cp39-abi3-win_arm64.whl", hash = "sha256:b0fdbcf513833809c882823f98dc2f931cf659d9a1429616ac3adebb49f5db94"}, + {file = "argon2_cffi_bindings-25.1.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:6dca33a9859abf613e22733131fc9194091c1fa7cb3e131c143056b4856aa47e"}, + {file = "argon2_cffi_bindings-25.1.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:21378b40e1b8d1655dd5310c84a40fc19a9aa5e6366e835ceb8576bf0fea716d"}, + {file = "argon2_cffi_bindings-25.1.0-pp310-pypy310_pp73-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5d588dec224e2a83edbdc785a5e6f3c6cd736f46bfd4b441bbb5aa1f5085e584"}, + {file = "argon2_cffi_bindings-25.1.0-pp310-pypy310_pp73-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5acb4e41090d53f17ca1110c3427f0a130f944b896fc8c83973219c97f57b690"}, + {file = "argon2_cffi_bindings-25.1.0-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:da0c79c23a63723aa5d782250fbf51b768abca630285262fb5144ba5ae01e520"}, + {file = "argon2_cffi_bindings-25.1.0.tar.gz", hash = "sha256:b957f3e6ea4d55d820e40ff76f450952807013d361a65d7f28acc0acbf29229d"}, +] + +[package.dependencies] +cffi = [ + {version = ">=1.0.1", markers = "python_version < \"3.14\""}, + {version = ">=2.0.0b1", markers = "python_version >= \"3.14\""}, +] + +[[package]] +name = "arrow" +version = "1.4.0" +description = "Better dates & times for Python" +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "arrow-1.4.0-py3-none-any.whl", hash = "sha256:749f0769958ebdc79c173ff0b0670d59051a535fa26e8eba02953dc19eb43205"}, + {file = "arrow-1.4.0.tar.gz", hash = "sha256:ed0cc050e98001b8779e84d461b0098c4ac597e88704a655582b21d116e526d7"}, +] + +[package.dependencies] +python-dateutil = ">=2.7.0" +tzdata = {version = "*", markers = "python_version >= \"3.9\""} + +[package.extras] +doc = ["doc8", "sphinx (>=7.0.0)", "sphinx-autobuild", "sphinx-autodoc-typehints", "sphinx_rtd_theme (>=1.3.0)"] +test = ["dateparser (==1.*)", "pre-commit", "pytest", "pytest-cov", "pytest-mock", "pytz (==2025.2)", "simplejson (==3.*)"] + +[[package]] +name = "asttokens" +version = "3.0.1" +description = "Annotate AST trees with source code positions" +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "asttokens-3.0.1-py3-none-any.whl", hash = "sha256:15a3ebc0f43c2d0a50eeafea25e19046c68398e487b9f1f5b517f7c0f40f976a"}, + {file = "asttokens-3.0.1.tar.gz", hash = "sha256:71a4ee5de0bde6a31d64f6b13f2293ac190344478f081c3d1bccfcf5eacb0cb7"}, +] + +[package.extras] +astroid = ["astroid (>=2,<5)"] +test = ["astroid (>=2,<5)", "pytest (<9.0)", "pytest-cov", "pytest-xdist"] + +[[package]] +name = "async-lru" +version = "2.0.5" +description = "Simple LRU cache for asyncio" +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "async_lru-2.0.5-py3-none-any.whl", hash = "sha256:ab95404d8d2605310d345932697371a5f40def0487c03d6d0ad9138de52c9943"}, + {file = "async_lru-2.0.5.tar.gz", hash = "sha256:481d52ccdd27275f42c43a928b4a50c3bfb2d67af4e78b170e3e0bb39c66e5bb"}, +] + +[[package]] +name = "attrs" +version = "25.4.0" +description = "Classes Without Boilerplate" +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "attrs-25.4.0-py3-none-any.whl", hash = "sha256:adcf7e2a1fb3b36ac48d97835bb6d8ade15b8dcce26aba8bf1d14847b57a3373"}, + {file = "attrs-25.4.0.tar.gz", hash = "sha256:16d5969b87f0859ef33a48b35d55ac1be6e42ae49d5e853b597db70c35c57e11"}, +] + +[[package]] +name = "babel" +version = "2.17.0" +description = "Internationalization utilities" +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "babel-2.17.0-py3-none-any.whl", hash = "sha256:4d0b53093fdfb4b21c92b5213dba5a1b23885afa8383709427046b21c366e5f2"}, + {file = "babel-2.17.0.tar.gz", hash = "sha256:0c54cffb19f690cdcc52a3b50bcbf71e07a808d1c80d549f2459b9d2cf0afb9d"}, +] + +[package.extras] +dev = ["backports.zoneinfo ; python_version < \"3.9\"", "freezegun (>=1.0,<2.0)", "jinja2 (>=3.0)", "pytest (>=6.0)", "pytest-cov", "pytz", "setuptools", "tzdata ; sys_platform == \"win32\""] + +[[package]] +name = "beautifulsoup4" +version = "4.14.3" +description = "Screen-scraping library" +optional = false +python-versions = ">=3.7.0" +groups = ["main"] +files = [ + {file = "beautifulsoup4-4.14.3-py3-none-any.whl", hash = "sha256:0918bfe44902e6ad8d57732ba310582e98da931428d231a5ecb9e7c703a735bb"}, + {file = "beautifulsoup4-4.14.3.tar.gz", hash = "sha256:6292b1c5186d356bba669ef9f7f051757099565ad9ada5dd630bd9de5fa7fb86"}, +] + +[package.dependencies] +soupsieve = ">=1.6.1" +typing-extensions = ">=4.0.0" + +[package.extras] +cchardet = ["cchardet"] +chardet = ["chardet"] +charset-normalizer = ["charset-normalizer"] +html5lib = ["html5lib"] +lxml = ["lxml"] + +[[package]] +name = "bleach" +version = "6.3.0" +description = "An easy safelist-based HTML-sanitizing tool." +optional = false +python-versions = ">=3.10" +groups = ["main"] +files = [ + {file = "bleach-6.3.0-py3-none-any.whl", hash = "sha256:fe10ec77c93ddf3d13a73b035abaac7a9f5e436513864ccdad516693213c65d6"}, + {file = "bleach-6.3.0.tar.gz", hash = "sha256:6f3b91b1c0a02bb9a78b5a454c92506aa0fdf197e1d5e114d2e00c6f64306d22"}, +] + +[package.dependencies] +tinycss2 = {version = ">=1.1.0,<1.5", optional = true, markers = "extra == \"css\""} +webencodings = "*" + +[package.extras] +css = ["tinycss2 (>=1.1.0,<1.5)"] + +[[package]] +name = "certifi" +version = "2026.1.4" +description = "Python package for providing Mozilla's CA Bundle." +optional = false +python-versions = ">=3.7" +groups = ["main"] +files = [ + {file = "certifi-2026.1.4-py3-none-any.whl", hash = "sha256:9943707519e4add1115f44c2bc244f782c0249876bf51b6599fee1ffbedd685c"}, + {file = "certifi-2026.1.4.tar.gz", hash = "sha256:ac726dd470482006e014ad384921ed6438c457018f4b3d204aea4281258b2120"}, +] + +[[package]] +name = "cffi" +version = "2.0.0" +description = "Foreign Function Interface for Python calling C code." +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "cffi-2.0.0-cp310-cp310-macosx_10_13_x86_64.whl", hash = "sha256:0cf2d91ecc3fcc0625c2c530fe004f82c110405f101548512cce44322fa8ac44"}, + {file = "cffi-2.0.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:f73b96c41e3b2adedc34a7356e64c8eb96e03a3782b535e043a986276ce12a49"}, + {file = "cffi-2.0.0-cp310-cp310-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:53f77cbe57044e88bbd5ed26ac1d0514d2acf0591dd6bb02a3ae37f76811b80c"}, + {file = "cffi-2.0.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:3e837e369566884707ddaf85fc1744b47575005c0a229de3327f8f9a20f4efeb"}, + {file = "cffi-2.0.0-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:5eda85d6d1879e692d546a078b44251cdd08dd1cfb98dfb77b670c97cee49ea0"}, + {file = "cffi-2.0.0-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:9332088d75dc3241c702d852d4671613136d90fa6881da7d770a483fd05248b4"}, + {file = "cffi-2.0.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:fc7de24befaeae77ba923797c7c87834c73648a05a4bde34b3b7e5588973a453"}, + {file = "cffi-2.0.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:cf364028c016c03078a23b503f02058f1814320a56ad535686f90565636a9495"}, + {file = "cffi-2.0.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:e11e82b744887154b182fd3e7e8512418446501191994dbf9c9fc1f32cc8efd5"}, + {file = "cffi-2.0.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:8ea985900c5c95ce9db1745f7933eeef5d314f0565b27625d9a10ec9881e1bfb"}, + {file = "cffi-2.0.0-cp310-cp310-win32.whl", hash = "sha256:1f72fb8906754ac8a2cc3f9f5aaa298070652a0ffae577e0ea9bd480dc3c931a"}, + {file = "cffi-2.0.0-cp310-cp310-win_amd64.whl", hash = "sha256:b18a3ed7d5b3bd8d9ef7a8cb226502c6bf8308df1525e1cc676c3680e7176739"}, + {file = "cffi-2.0.0-cp311-cp311-macosx_10_13_x86_64.whl", hash = "sha256:b4c854ef3adc177950a8dfc81a86f5115d2abd545751a304c5bcf2c2c7283cfe"}, + {file = "cffi-2.0.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:2de9a304e27f7596cd03d16f1b7c72219bd944e99cc52b84d0145aefb07cbd3c"}, + {file = "cffi-2.0.0-cp311-cp311-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:baf5215e0ab74c16e2dd324e8ec067ef59e41125d3eade2b863d294fd5035c92"}, + {file = "cffi-2.0.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:730cacb21e1bdff3ce90babf007d0a0917cc3e6492f336c2f0134101e0944f93"}, + {file = "cffi-2.0.0-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:6824f87845e3396029f3820c206e459ccc91760e8fa24422f8b0c3d1731cbec5"}, + {file = "cffi-2.0.0-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:9de40a7b0323d889cf8d23d1ef214f565ab154443c42737dfe52ff82cf857664"}, + {file = "cffi-2.0.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:8941aaadaf67246224cee8c3803777eed332a19d909b47e29c9842ef1e79ac26"}, + {file = "cffi-2.0.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:a05d0c237b3349096d3981b727493e22147f934b20f6f125a3eba8f994bec4a9"}, + {file = "cffi-2.0.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:94698a9c5f91f9d138526b48fe26a199609544591f859c870d477351dc7b2414"}, + {file = "cffi-2.0.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:5fed36fccc0612a53f1d4d9a816b50a36702c28a2aa880cb8a122b3466638743"}, + {file = "cffi-2.0.0-cp311-cp311-win32.whl", hash = "sha256:c649e3a33450ec82378822b3dad03cc228b8f5963c0c12fc3b1e0ab940f768a5"}, + {file = "cffi-2.0.0-cp311-cp311-win_amd64.whl", hash = "sha256:66f011380d0e49ed280c789fbd08ff0d40968ee7b665575489afa95c98196ab5"}, + {file = "cffi-2.0.0-cp311-cp311-win_arm64.whl", hash = "sha256:c6638687455baf640e37344fe26d37c404db8b80d037c3d29f58fe8d1c3b194d"}, + {file = "cffi-2.0.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:6d02d6655b0e54f54c4ef0b94eb6be0607b70853c45ce98bd278dc7de718be5d"}, + {file = "cffi-2.0.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8eca2a813c1cb7ad4fb74d368c2ffbbb4789d377ee5bb8df98373c2cc0dee76c"}, + {file = "cffi-2.0.0-cp312-cp312-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:21d1152871b019407d8ac3985f6775c079416c282e431a4da6afe7aefd2bccbe"}, + {file = "cffi-2.0.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:b21e08af67b8a103c71a250401c78d5e0893beff75e28c53c98f4de42f774062"}, + {file = "cffi-2.0.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:1e3a615586f05fc4065a8b22b8152f0c1b00cdbc60596d187c2a74f9e3036e4e"}, + {file = "cffi-2.0.0-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:81afed14892743bbe14dacb9e36d9e0e504cd204e0b165062c488942b9718037"}, + {file = "cffi-2.0.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:3e17ed538242334bf70832644a32a7aae3d83b57567f9fd60a26257e992b79ba"}, + {file = "cffi-2.0.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:3925dd22fa2b7699ed2617149842d2e6adde22b262fcbfada50e3d195e4b3a94"}, + {file = "cffi-2.0.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:2c8f814d84194c9ea681642fd164267891702542f028a15fc97d4674b6206187"}, + {file = "cffi-2.0.0-cp312-cp312-win32.whl", hash = "sha256:da902562c3e9c550df360bfa53c035b2f241fed6d9aef119048073680ace4a18"}, + {file = "cffi-2.0.0-cp312-cp312-win_amd64.whl", hash = "sha256:da68248800ad6320861f129cd9c1bf96ca849a2771a59e0344e88681905916f5"}, + {file = "cffi-2.0.0-cp312-cp312-win_arm64.whl", hash = "sha256:4671d9dd5ec934cb9a73e7ee9676f9362aba54f7f34910956b84d727b0d73fb6"}, + {file = "cffi-2.0.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:00bdf7acc5f795150faa6957054fbbca2439db2f775ce831222b66f192f03beb"}, + {file = "cffi-2.0.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:45d5e886156860dc35862657e1494b9bae8dfa63bf56796f2fb56e1679fc0bca"}, + {file = "cffi-2.0.0-cp313-cp313-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:07b271772c100085dd28b74fa0cd81c8fb1a3ba18b21e03d7c27f3436a10606b"}, + {file = "cffi-2.0.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:d48a880098c96020b02d5a1f7d9251308510ce8858940e6fa99ece33f610838b"}, + {file = "cffi-2.0.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:f93fd8e5c8c0a4aa1f424d6173f14a892044054871c771f8566e4008eaa359d2"}, + {file = "cffi-2.0.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:dd4f05f54a52fb558f1ba9f528228066954fee3ebe629fc1660d874d040ae5a3"}, + {file = "cffi-2.0.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:c8d3b5532fc71b7a77c09192b4a5a200ea992702734a2e9279a37f2478236f26"}, + {file = "cffi-2.0.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:d9b29c1f0ae438d5ee9acb31cadee00a58c46cc9c0b2f9038c6b0b3470877a8c"}, + {file = "cffi-2.0.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:6d50360be4546678fc1b79ffe7a66265e28667840010348dd69a314145807a1b"}, + {file = "cffi-2.0.0-cp313-cp313-win32.whl", hash = "sha256:74a03b9698e198d47562765773b4a8309919089150a0bb17d829ad7b44b60d27"}, + {file = "cffi-2.0.0-cp313-cp313-win_amd64.whl", hash = "sha256:19f705ada2530c1167abacb171925dd886168931e0a7b78f5bffcae5c6b5be75"}, + {file = "cffi-2.0.0-cp313-cp313-win_arm64.whl", hash = "sha256:256f80b80ca3853f90c21b23ee78cd008713787b1b1e93eae9f3d6a7134abd91"}, + {file = "cffi-2.0.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:fc33c5141b55ed366cfaad382df24fe7dcbc686de5be719b207bb248e3053dc5"}, + {file = "cffi-2.0.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c654de545946e0db659b3400168c9ad31b5d29593291482c43e3564effbcee13"}, + {file = "cffi-2.0.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:24b6f81f1983e6df8db3adc38562c83f7d4a0c36162885ec7f7b77c7dcbec97b"}, + {file = "cffi-2.0.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:12873ca6cb9b0f0d3a0da705d6086fe911591737a59f28b7936bdfed27c0d47c"}, + {file = "cffi-2.0.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:d9b97165e8aed9272a6bb17c01e3cc5871a594a446ebedc996e2397a1c1ea8ef"}, + {file = "cffi-2.0.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:afb8db5439b81cf9c9d0c80404b60c3cc9c3add93e114dcae767f1477cb53775"}, + {file = "cffi-2.0.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:737fe7d37e1a1bffe70bd5754ea763a62a066dc5913ca57e957824b72a85e205"}, + {file = "cffi-2.0.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:38100abb9d1b1435bc4cc340bb4489635dc2f0da7456590877030c9b3d40b0c1"}, + {file = "cffi-2.0.0-cp314-cp314-win32.whl", hash = "sha256:087067fa8953339c723661eda6b54bc98c5625757ea62e95eb4898ad5e776e9f"}, + {file = "cffi-2.0.0-cp314-cp314-win_amd64.whl", hash = "sha256:203a48d1fb583fc7d78a4c6655692963b860a417c0528492a6bc21f1aaefab25"}, + {file = "cffi-2.0.0-cp314-cp314-win_arm64.whl", hash = "sha256:dbd5c7a25a7cb98f5ca55d258b103a2054f859a46ae11aaf23134f9cc0d356ad"}, + {file = "cffi-2.0.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:9a67fc9e8eb39039280526379fb3a70023d77caec1852002b4da7e8b270c4dd9"}, + {file = "cffi-2.0.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:7a66c7204d8869299919db4d5069a82f1561581af12b11b3c9f48c584eb8743d"}, + {file = "cffi-2.0.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:7cc09976e8b56f8cebd752f7113ad07752461f48a58cbba644139015ac24954c"}, + {file = "cffi-2.0.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:92b68146a71df78564e4ef48af17551a5ddd142e5190cdf2c5624d0c3ff5b2e8"}, + {file = "cffi-2.0.0-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:b1e74d11748e7e98e2f426ab176d4ed720a64412b6a15054378afdb71e0f37dc"}, + {file = "cffi-2.0.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:28a3a209b96630bca57cce802da70c266eb08c6e97e5afd61a75611ee6c64592"}, + {file = "cffi-2.0.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:7553fb2090d71822f02c629afe6042c299edf91ba1bf94951165613553984512"}, + {file = "cffi-2.0.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:6c6c373cfc5c83a975506110d17457138c8c63016b563cc9ed6e056a82f13ce4"}, + {file = "cffi-2.0.0-cp314-cp314t-win32.whl", hash = "sha256:1fc9ea04857caf665289b7a75923f2c6ed559b8298a1b8c49e59f7dd95c8481e"}, + {file = "cffi-2.0.0-cp314-cp314t-win_amd64.whl", hash = "sha256:d68b6cef7827e8641e8ef16f4494edda8b36104d79773a334beaa1e3521430f6"}, + {file = "cffi-2.0.0-cp314-cp314t-win_arm64.whl", hash = "sha256:0a1527a803f0a659de1af2e1fd700213caba79377e27e4693648c2923da066f9"}, + {file = "cffi-2.0.0-cp39-cp39-macosx_10_13_x86_64.whl", hash = "sha256:fe562eb1a64e67dd297ccc4f5addea2501664954f2692b69a76449ec7913ecbf"}, + {file = "cffi-2.0.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:de8dad4425a6ca6e4e5e297b27b5c824ecc7581910bf9aee86cb6835e6812aa7"}, + {file = "cffi-2.0.0-cp39-cp39-manylinux1_i686.manylinux2014_i686.manylinux_2_17_i686.manylinux_2_5_i686.whl", hash = "sha256:4647afc2f90d1ddd33441e5b0e85b16b12ddec4fca55f0d9671fef036ecca27c"}, + {file = "cffi-2.0.0-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:3f4d46d8b35698056ec29bca21546e1551a205058ae1a181d871e278b0b28165"}, + {file = "cffi-2.0.0-cp39-cp39-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:e6e73b9e02893c764e7e8d5bb5ce277f1a009cd5243f8228f75f842bf937c534"}, + {file = "cffi-2.0.0-cp39-cp39-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:cb527a79772e5ef98fb1d700678fe031e353e765d1ca2d409c92263c6d43e09f"}, + {file = "cffi-2.0.0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:61d028e90346df14fedc3d1e5441df818d095f3b87d286825dfcbd6459b7ef63"}, + {file = "cffi-2.0.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:0f6084a0ea23d05d20c3edcda20c3d006f9b6f3fefeac38f59262e10cef47ee2"}, + {file = "cffi-2.0.0-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:1cd13c99ce269b3ed80b417dcd591415d3372bcac067009b6e0f59c7d4015e65"}, + {file = "cffi-2.0.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:89472c9762729b5ae1ad974b777416bfda4ac5642423fa93bd57a09204712322"}, + {file = "cffi-2.0.0-cp39-cp39-win32.whl", hash = "sha256:2081580ebb843f759b9f617314a24ed5738c51d2aee65d31e02f6f7a2b97707a"}, + {file = "cffi-2.0.0-cp39-cp39-win_amd64.whl", hash = "sha256:b882b3df248017dba09d6b16defe9b5c407fe32fc7c65a9c69798e6175601be9"}, + {file = "cffi-2.0.0.tar.gz", hash = "sha256:44d1b5909021139fe36001ae048dbdde8214afa20200eda0f64c068cac5d5529"}, +] + +[package.dependencies] +pycparser = {version = "*", markers = "implementation_name != \"PyPy\""} + +[[package]] +name = "charset-normalizer" +version = "3.4.4" +description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." +optional = false +python-versions = ">=3.7" +groups = ["main"] +files = [ + {file = "charset_normalizer-3.4.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:e824f1492727fa856dd6eda4f7cee25f8518a12f3c4a56a74e8095695089cf6d"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4bd5d4137d500351a30687c2d3971758aac9a19208fc110ccb9d7188fbe709e8"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:027f6de494925c0ab2a55eab46ae5129951638a49a34d87f4c3eda90f696b4ad"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f820802628d2694cb7e56db99213f930856014862f3fd943d290ea8438d07ca8"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:798d75d81754988d2565bff1b97ba5a44411867c0cf32b77a7e8f8d84796b10d"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9d1bb833febdff5c8927f922386db610b49db6e0d4f4ee29601d71e7c2694313"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:9cd98cdc06614a2f768d2b7286d66805f94c48cde050acdbbb7db2600ab3197e"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:077fbb858e903c73f6c9db43374fd213b0b6a778106bc7032446a8e8b5b38b93"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-musllinux_1_2_armv7l.whl", hash = "sha256:244bfb999c71b35de57821b8ea746b24e863398194a4014e4c76adc2bbdfeff0"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:64b55f9dce520635f018f907ff1b0df1fdc31f2795a922fb49dd14fbcdf48c84"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:faa3a41b2b66b6e50f84ae4a68c64fcd0c44355741c6374813a800cd6695db9e"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:6515f3182dbe4ea06ced2d9e8666d97b46ef4c75e326b79bb624110f122551db"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:cc00f04ed596e9dc0da42ed17ac5e596c6ccba999ba6bd92b0e0aef2f170f2d6"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-win32.whl", hash = "sha256:f34be2938726fc13801220747472850852fe6b1ea75869a048d6f896838c896f"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-win_amd64.whl", hash = "sha256:a61900df84c667873b292c3de315a786dd8dac506704dea57bc957bd31e22c7d"}, + {file = "charset_normalizer-3.4.4-cp310-cp310-win_arm64.whl", hash = "sha256:cead0978fc57397645f12578bfd2d5ea9138ea0fac82b2f63f7f7c6877986a69"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:6e1fcf0720908f200cd21aa4e6750a48ff6ce4afe7ff5a79a90d5ed8a08296f8"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5f819d5fe9234f9f82d75bdfa9aef3a3d72c4d24a6e57aeaebba32a704553aa0"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:a59cb51917aa591b1c4e6a43c132f0cdc3c76dbad6155df4e28ee626cc77a0a3"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:8ef3c867360f88ac904fd3f5e1f902f13307af9052646963ee08ff4f131adafc"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d9e45d7faa48ee908174d8fe84854479ef838fc6a705c9315372eacbc2f02897"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:840c25fb618a231545cbab0564a799f101b63b9901f2569faecd6b222ac72381"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:ca5862d5b3928c4940729dacc329aa9102900382fea192fc5e52eb69d6093815"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:d9c7f57c3d666a53421049053eaacdd14bbd0a528e2186fcb2e672effd053bb0"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:277e970e750505ed74c832b4bf75dac7476262ee2a013f5574dd49075879e161"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:31fd66405eaf47bb62e8cd575dc621c56c668f27d46a61d975a249930dd5e2a4"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:0d3d8f15c07f86e9ff82319b3d9ef6f4bf907608f53fe9d92b28ea9ae3d1fd89"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:9f7fcd74d410a36883701fafa2482a6af2ff5ba96b9a620e9e0721e28ead5569"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:ebf3e58c7ec8a8bed6d66a75d7fb37b55e5015b03ceae72a8e7c74495551e224"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-win32.whl", hash = "sha256:eecbc200c7fd5ddb9a7f16c7decb07b566c29fa2161a16cf67b8d068bd21690a"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-win_amd64.whl", hash = "sha256:5ae497466c7901d54b639cf42d5b8c1b6a4fead55215500d2f486d34db48d016"}, + {file = "charset_normalizer-3.4.4-cp311-cp311-win_arm64.whl", hash = "sha256:65e2befcd84bc6f37095f5961e68a6f077bf44946771354a28ad434c2cce0ae1"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:0a98e6759f854bd25a58a73fa88833fba3b7c491169f86ce1180c948ab3fd394"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b5b290ccc2a263e8d185130284f8501e3e36c5e02750fc6b6bdeb2e9e96f1e25"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:74bb723680f9f7a6234dcf67aea57e708ec1fbdf5699fb91dfd6f511b0a320ef"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f1e34719c6ed0b92f418c7c780480b26b5d9c50349e9a9af7d76bf757530350d"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:2437418e20515acec67d86e12bf70056a33abdacb5cb1655042f6538d6b085a8"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:11d694519d7f29d6cd09f6ac70028dba10f92f6cdd059096db198c283794ac86"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:ac1c4a689edcc530fc9d9aa11f5774b9e2f33f9a0c6a57864e90908f5208d30a"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:21d142cc6c0ec30d2efee5068ca36c128a30b0f2c53c1c07bd78cb6bc1d3be5f"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:5dbe56a36425d26d6cfb40ce79c314a2e4dd6211d51d6d2191c00bed34f354cc"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:5bfbb1b9acf3334612667b61bd3002196fe2a1eb4dd74d247e0f2a4d50ec9bbf"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:d055ec1e26e441f6187acf818b73564e6e6282709e9bcb5b63f5b23068356a15"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:af2d8c67d8e573d6de5bc30cdb27e9b95e49115cd9baad5ddbd1a6207aaa82a9"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:780236ac706e66881f3b7f2f32dfe90507a09e67d1d454c762cf642e6e1586e0"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-win32.whl", hash = "sha256:5833d2c39d8896e4e19b689ffc198f08ea58116bee26dea51e362ecc7cd3ed26"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-win_amd64.whl", hash = "sha256:a79cfe37875f822425b89a82333404539ae63dbdddf97f84dcbc3d339aae9525"}, + {file = "charset_normalizer-3.4.4-cp312-cp312-win_arm64.whl", hash = "sha256:376bec83a63b8021bb5c8ea75e21c4ccb86e7e45ca4eb81146091b56599b80c3"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:e1f185f86a6f3403aa2420e815904c67b2f9ebc443f045edd0de921108345794"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6b39f987ae8ccdf0d2642338faf2abb1862340facc796048b604ef14919e55ed"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:3162d5d8ce1bb98dd51af660f2121c55d0fa541b46dff7bb9b9f86ea1d87de72"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:81d5eb2a312700f4ecaa977a8235b634ce853200e828fbadf3a9c50bab278328"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5bd2293095d766545ec1a8f612559f6b40abc0eb18bb2f5d1171872d34036ede"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a8a8b89589086a25749f471e6a900d3f662d1d3b6e2e59dcecf787b1cc3a1894"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:bc7637e2f80d8530ee4a78e878bce464f70087ce73cf7c1caf142416923b98f1"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f8bf04158c6b607d747e93949aa60618b61312fe647a6369f88ce2ff16043490"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:554af85e960429cf30784dd47447d5125aaa3b99a6f0683589dbd27e2f45da44"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:74018750915ee7ad843a774364e13a3db91682f26142baddf775342c3f5b1133"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:c0463276121fdee9c49b98908b3a89c39be45d86d1dbaa22957e38f6321d4ce3"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:362d61fd13843997c1c446760ef36f240cf81d3ebf74ac62652aebaf7838561e"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:9a26f18905b8dd5d685d6d07b0cdf98a79f3c7a918906af7cc143ea2e164c8bc"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-win32.whl", hash = "sha256:9b35f4c90079ff2e2edc5b26c0c77925e5d2d255c42c74fdb70fb49b172726ac"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-win_amd64.whl", hash = "sha256:b435cba5f4f750aa6c0a0d92c541fb79f69a387c91e61f1795227e4ed9cece14"}, + {file = "charset_normalizer-3.4.4-cp313-cp313-win_arm64.whl", hash = "sha256:542d2cee80be6f80247095cc36c418f7bddd14f4a6de45af91dfad36d817bba2"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:da3326d9e65ef63a817ecbcc0df6e94463713b754fe293eaa03da99befb9a5bd"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8af65f14dc14a79b924524b1e7fffe304517b2bff5a58bf64f30b98bbc5079eb"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:74664978bb272435107de04e36db5a9735e78232b85b77d45cfb38f758efd33e"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:752944c7ffbfdd10c074dc58ec2d5a8a4cd9493b314d367c14d24c17684ddd14"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d1f13550535ad8cff21b8d757a3257963e951d96e20ec82ab44bc64aeb62a191"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ecaae4149d99b1c9e7b88bb03e3221956f68fd6d50be2ef061b2381b61d20838"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:cb6254dc36b47a990e59e1068afacdcd02958bdcce30bb50cc1700a8b9d624a6"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c8ae8a0f02f57a6e61203a31428fa1d677cbe50c93622b4149d5c0f319c1d19e"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:47cc91b2f4dd2833fddaedd2893006b0106129d4b94fdb6af1f4ce5a9965577c"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:82004af6c302b5d3ab2cfc4cc5f29db16123b1a8417f2e25f9066f91d4411090"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:2b7d8f6c26245217bd2ad053761201e9f9680f8ce52f0fcd8d0755aeae5b2152"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:799a7a5e4fb2d5898c60b640fd4981d6a25f1c11790935a44ce38c54e985f828"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:99ae2cffebb06e6c22bdc25801d7b30f503cc87dbd283479e7b606f70aff57ec"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-win32.whl", hash = "sha256:f9d332f8c2a2fcbffe1378594431458ddbef721c1769d78e2cbc06280d8155f9"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-win_amd64.whl", hash = "sha256:8a6562c3700cce886c5be75ade4a5db4214fda19fede41d9792d100288d8f94c"}, + {file = "charset_normalizer-3.4.4-cp314-cp314-win_arm64.whl", hash = "sha256:de00632ca48df9daf77a2c65a484531649261ec9f25489917f09e455cb09ddb2"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:ce8a0633f41a967713a59c4139d29110c07e826d131a316b50ce11b1d79b4f84"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:eaabd426fe94daf8fd157c32e571c85cb12e66692f15516a83a03264b08d06c3"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:c4ef880e27901b6cc782f1b95f82da9313c0eb95c3af699103088fa0ac3ce9ac"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:2aaba3b0819274cc41757a1da876f810a3e4d7b6eb25699253a4effef9e8e4af"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:778d2e08eda00f4256d7f672ca9fef386071c9202f5e4607920b86d7803387f2"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f155a433c2ec037d4e8df17d18922c3a0d9b3232a396690f17175d2946f0218d"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:a8bf8d0f749c5757af2142fe7903a9df1d2e8aa3841559b2bad34b08d0e2bcf3"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:194f08cbb32dc406d6e1aea671a68be0823673db2832b38405deba2fb0d88f63"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-musllinux_1_2_armv7l.whl", hash = "sha256:6aee717dcfead04c6eb1ce3bd29ac1e22663cdea57f943c87d1eab9a025438d7"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-musllinux_1_2_ppc64le.whl", hash = "sha256:cd4b7ca9984e5e7985c12bc60a6f173f3c958eae74f3ef6624bb6b26e2abbae4"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-musllinux_1_2_riscv64.whl", hash = "sha256:b7cf1017d601aa35e6bb650b6ad28652c9cd78ee6caff19f3c28d03e1c80acbf"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-musllinux_1_2_s390x.whl", hash = "sha256:e912091979546adf63357d7e2ccff9b44f026c075aeaf25a52d0e95ad2281074"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:5cb4d72eea50c8868f5288b7f7f33ed276118325c1dfd3957089f6b519e1382a"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-win32.whl", hash = "sha256:837c2ce8c5a65a2035be9b3569c684358dfbf109fd3b6969630a87535495ceaa"}, + {file = "charset_normalizer-3.4.4-cp38-cp38-win_amd64.whl", hash = "sha256:44c2a8734b333e0578090c4cd6b16f275e07aa6614ca8715e6c038e865e70576"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:a9768c477b9d7bd54bc0c86dbaebdec6f03306675526c9927c0e8a04e8f94af9"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1bee1e43c28aa63cb16e5c14e582580546b08e535299b8b6158a7c9c768a1f3d"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-manylinux2014_armv7l.manylinux_2_17_armv7l.manylinux_2_31_armv7l.whl", hash = "sha256:fd44c878ea55ba351104cb93cc85e74916eb8fa440ca7903e57575e97394f608"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:0f04b14ffe5fdc8c4933862d8306109a2c51e0704acfa35d51598eb45a1e89fc"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:cd09d08005f958f370f539f186d10aec3377d55b9eeb0d796025d4886119d76e"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4fe7859a4e3e8457458e2ff592f15ccb02f3da787fcd31e0183879c3ad4692a1"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:fa09f53c465e532f4d3db095e0c55b615f010ad81803d383195b6b5ca6cbf5f3"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:7fa17817dc5625de8a027cb8b26d9fefa3ea28c8253929b8d6649e705d2835b6"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-musllinux_1_2_armv7l.whl", hash = "sha256:5947809c8a2417be3267efc979c47d76a079758166f7d43ef5ae8e9f92751f88"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-musllinux_1_2_ppc64le.whl", hash = "sha256:4902828217069c3c5c71094537a8e623f5d097858ac6ca8252f7b4d10b7560f1"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-musllinux_1_2_riscv64.whl", hash = "sha256:7c308f7e26e4363d79df40ca5b2be1c6ba9f02bdbccfed5abddb7859a6ce72cf"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-musllinux_1_2_s390x.whl", hash = "sha256:2c9d3c380143a1fedbff95a312aa798578371eb29da42106a29019368a475318"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:cb01158d8b88ee68f15949894ccc6712278243d95f344770fa7593fa2d94410c"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-win32.whl", hash = "sha256:2677acec1a2f8ef614c6888b5b4ae4060cc184174a938ed4e8ef690e15d3e505"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-win_amd64.whl", hash = "sha256:f8e160feb2aed042cd657a72acc0b481212ed28b1b9a95c0cee1621b524e1966"}, + {file = "charset_normalizer-3.4.4-cp39-cp39-win_arm64.whl", hash = "sha256:b5d84d37db046c5ca74ee7bb47dd6cbc13f80665fdde3e8040bdd3fb015ecb50"}, + {file = "charset_normalizer-3.4.4-py3-none-any.whl", hash = "sha256:7a32c560861a02ff789ad905a2fe94e3f840803362c84fecf1851cb4cf3dc37f"}, + {file = "charset_normalizer-3.4.4.tar.gz", hash = "sha256:94537985111c35f28720e43603b8e7b43a6ecfb2ce1d3058bbe955b73404e21a"}, +] + +[[package]] +name = "colorama" +version = "0.4.6" +description = "Cross-platform colored terminal text." +optional = false +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" +groups = ["main"] +markers = "sys_platform == \"win32\" or platform_system == \"Windows\"" +files = [ + {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"}, + {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, +] + +[[package]] +name = "comm" +version = "0.2.3" +description = "Jupyter Python Comm implementation, for usage in ipykernel, xeus-python etc." +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "comm-0.2.3-py3-none-any.whl", hash = "sha256:c615d91d75f7f04f095b30d1c1711babd43bdc6419c1be9886a85f2f4e489417"}, + {file = "comm-0.2.3.tar.gz", hash = "sha256:2dc8048c10962d55d7ad693be1e7045d891b7ce8d999c97963a5e3e99c055971"}, +] + +[package.extras] +test = ["pytest"] + +[[package]] +name = "contourpy" +version = "1.3.3" +description = "Python library for calculating contours of 2D quadrilateral grids" +optional = false +python-versions = ">=3.11" +groups = ["main"] +files = [ + {file = "contourpy-1.3.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:709a48ef9a690e1343202916450bc48b9e51c049b089c7f79a267b46cffcdaa1"}, + {file = "contourpy-1.3.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:23416f38bfd74d5d28ab8429cc4d63fa67d5068bd711a85edb1c3fb0c3e2f381"}, + {file = "contourpy-1.3.3-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:929ddf8c4c7f348e4c0a5a3a714b5c8542ffaa8c22954862a46ca1813b667ee7"}, + {file = "contourpy-1.3.3-cp311-cp311-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:9e999574eddae35f1312c2b4b717b7885d4edd6cb46700e04f7f02db454e67c1"}, + {file = "contourpy-1.3.3-cp311-cp311-manylinux_2_26_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0bf67e0e3f482cb69779dd3061b534eb35ac9b17f163d851e2a547d56dba0a3a"}, + {file = "contourpy-1.3.3-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:51e79c1f7470158e838808d4a996fa9bac72c498e93d8ebe5119bc1e6becb0db"}, + {file = "contourpy-1.3.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:598c3aaece21c503615fd59c92a3598b428b2f01bfb4b8ca9c4edeecc2438620"}, + {file = "contourpy-1.3.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:322ab1c99b008dad206d406bb61d014cf0174df491ae9d9d0fac6a6fda4f977f"}, + {file = "contourpy-1.3.3-cp311-cp311-win32.whl", hash = "sha256:fd907ae12cd483cd83e414b12941c632a969171bf90fc937d0c9f268a31cafff"}, + {file = "contourpy-1.3.3-cp311-cp311-win_amd64.whl", hash = "sha256:3519428f6be58431c56581f1694ba8e50626f2dd550af225f82fb5f5814d2a42"}, + {file = "contourpy-1.3.3-cp311-cp311-win_arm64.whl", hash = "sha256:15ff10bfada4bf92ec8b31c62bf7c1834c244019b4a33095a68000d7075df470"}, + {file = "contourpy-1.3.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:b08a32ea2f8e42cf1d4be3169a98dd4be32bafe4f22b6c4cb4ba810fa9e5d2cb"}, + {file = "contourpy-1.3.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:556dba8fb6f5d8742f2923fe9457dbdd51e1049c4a43fd3986a0b14a1d815fc6"}, + {file = "contourpy-1.3.3-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:92d9abc807cf7d0e047b95ca5d957cf4792fcd04e920ca70d48add15c1a90ea7"}, + {file = "contourpy-1.3.3-cp312-cp312-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:b2e8faa0ed68cb29af51edd8e24798bb661eac3bd9f65420c1887b6ca89987c8"}, + {file = "contourpy-1.3.3-cp312-cp312-manylinux_2_26_s390x.manylinux_2_28_s390x.whl", hash = "sha256:626d60935cf668e70a5ce6ff184fd713e9683fb458898e4249b63be9e28286ea"}, + {file = "contourpy-1.3.3-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4d00e655fcef08aba35ec9610536bfe90267d7ab5ba944f7032549c55a146da1"}, + {file = "contourpy-1.3.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:451e71b5a7d597379ef572de31eeb909a87246974d960049a9848c3bc6c41bf7"}, + {file = "contourpy-1.3.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:459c1f020cd59fcfe6650180678a9993932d80d44ccde1fa1868977438f0b411"}, + {file = "contourpy-1.3.3-cp312-cp312-win32.whl", hash = "sha256:023b44101dfe49d7d53932be418477dba359649246075c996866106da069af69"}, + {file = "contourpy-1.3.3-cp312-cp312-win_amd64.whl", hash = "sha256:8153b8bfc11e1e4d75bcb0bff1db232f9e10b274e0929de9d608027e0d34ff8b"}, + {file = "contourpy-1.3.3-cp312-cp312-win_arm64.whl", hash = "sha256:07ce5ed73ecdc4a03ffe3e1b3e3c1166db35ae7584be76f65dbbe28a7791b0cc"}, + {file = "contourpy-1.3.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:177fb367556747a686509d6fef71d221a4b198a3905fe824430e5ea0fda54eb5"}, + {file = "contourpy-1.3.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:d002b6f00d73d69333dac9d0b8d5e84d9724ff9ef044fd63c5986e62b7c9e1b1"}, + {file = "contourpy-1.3.3-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:348ac1f5d4f1d66d3322420f01d42e43122f43616e0f194fc1c9f5d830c5b286"}, + {file = "contourpy-1.3.3-cp313-cp313-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:655456777ff65c2c548b7c454af9c6f33f16c8884f11083244b5819cc214f1b5"}, + {file = "contourpy-1.3.3-cp313-cp313-manylinux_2_26_s390x.manylinux_2_28_s390x.whl", hash = "sha256:644a6853d15b2512d67881586bd03f462c7ab755db95f16f14d7e238f2852c67"}, + {file = "contourpy-1.3.3-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:4debd64f124ca62069f313a9cb86656ff087786016d76927ae2cf37846b006c9"}, + {file = "contourpy-1.3.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a15459b0f4615b00bbd1e91f1b9e19b7e63aea7483d03d804186f278c0af2659"}, + {file = "contourpy-1.3.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:ca0fdcd73925568ca027e0b17ab07aad764be4706d0a925b89227e447d9737b7"}, + {file = "contourpy-1.3.3-cp313-cp313-win32.whl", hash = "sha256:b20c7c9a3bf701366556e1b1984ed2d0cedf999903c51311417cf5f591d8c78d"}, + {file = "contourpy-1.3.3-cp313-cp313-win_amd64.whl", hash = "sha256:1cadd8b8969f060ba45ed7c1b714fe69185812ab43bd6b86a9123fe8f99c3263"}, + {file = "contourpy-1.3.3-cp313-cp313-win_arm64.whl", hash = "sha256:fd914713266421b7536de2bfa8181aa8c699432b6763a0ea64195ebe28bff6a9"}, + {file = "contourpy-1.3.3-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:88df9880d507169449d434c293467418b9f6cbe82edd19284aa0409e7fdb933d"}, + {file = "contourpy-1.3.3-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:d06bb1f751ba5d417047db62bca3c8fde202b8c11fb50742ab3ab962c81e8216"}, + {file = "contourpy-1.3.3-cp313-cp313t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e4e6b05a45525357e382909a4c1600444e2a45b4795163d3b22669285591c1ae"}, + {file = "contourpy-1.3.3-cp313-cp313t-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:ab3074b48c4e2cf1a960e6bbeb7f04566bf36b1861d5c9d4d8ac04b82e38ba20"}, + {file = "contourpy-1.3.3-cp313-cp313t-manylinux_2_26_s390x.manylinux_2_28_s390x.whl", hash = "sha256:6c3d53c796f8647d6deb1abe867daeb66dcc8a97e8455efa729516b997b8ed99"}, + {file = "contourpy-1.3.3-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:50ed930df7289ff2a8d7afeb9603f8289e5704755c7e5c3bbd929c90c817164b"}, + {file = "contourpy-1.3.3-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:4feffb6537d64b84877da813a5c30f1422ea5739566abf0bd18065ac040e120a"}, + {file = "contourpy-1.3.3-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:2b7e9480ffe2b0cd2e787e4df64270e3a0440d9db8dc823312e2c940c167df7e"}, + {file = "contourpy-1.3.3-cp313-cp313t-win32.whl", hash = "sha256:283edd842a01e3dcd435b1c5116798d661378d83d36d337b8dde1d16a5fc9ba3"}, + {file = "contourpy-1.3.3-cp313-cp313t-win_amd64.whl", hash = "sha256:87acf5963fc2b34825e5b6b048f40e3635dd547f590b04d2ab317c2619ef7ae8"}, + {file = "contourpy-1.3.3-cp313-cp313t-win_arm64.whl", hash = "sha256:3c30273eb2a55024ff31ba7d052dde990d7d8e5450f4bbb6e913558b3d6c2301"}, + {file = "contourpy-1.3.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:fde6c716d51c04b1c25d0b90364d0be954624a0ee9d60e23e850e8d48353d07a"}, + {file = "contourpy-1.3.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:cbedb772ed74ff5be440fa8eee9bd49f64f6e3fc09436d9c7d8f1c287b121d77"}, + {file = "contourpy-1.3.3-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:22e9b1bd7a9b1d652cd77388465dc358dafcd2e217d35552424aa4f996f524f5"}, + {file = "contourpy-1.3.3-cp314-cp314-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a22738912262aa3e254e4f3cb079a95a67132fc5a063890e224393596902f5a4"}, + {file = "contourpy-1.3.3-cp314-cp314-manylinux_2_26_s390x.manylinux_2_28_s390x.whl", hash = "sha256:afe5a512f31ee6bd7d0dda52ec9864c984ca3d66664444f2d72e0dc4eb832e36"}, + {file = "contourpy-1.3.3-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f64836de09927cba6f79dcd00fdd7d5329f3fccc633468507079c829ca4db4e3"}, + {file = "contourpy-1.3.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:1fd43c3be4c8e5fd6e4f2baeae35ae18176cf2e5cced681cca908addf1cdd53b"}, + {file = "contourpy-1.3.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:6afc576f7b33cf00996e5c1102dc2a8f7cc89e39c0b55df93a0b78c1bd992b36"}, + {file = "contourpy-1.3.3-cp314-cp314-win32.whl", hash = "sha256:66c8a43a4f7b8df8b71ee1840e4211a3c8d93b214b213f590e18a1beca458f7d"}, + {file = "contourpy-1.3.3-cp314-cp314-win_amd64.whl", hash = "sha256:cf9022ef053f2694e31d630feaacb21ea24224be1c3ad0520b13d844274614fd"}, + {file = "contourpy-1.3.3-cp314-cp314-win_arm64.whl", hash = "sha256:95b181891b4c71de4bb404c6621e7e2390745f887f2a026b2d99e92c17892339"}, + {file = "contourpy-1.3.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:33c82d0138c0a062380332c861387650c82e4cf1747aaa6938b9b6516762e772"}, + {file = "contourpy-1.3.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:ea37e7b45949df430fe649e5de8351c423430046a2af20b1c1961cae3afcda77"}, + {file = "contourpy-1.3.3-cp314-cp314t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d304906ecc71672e9c89e87c4675dc5c2645e1f4269a5063b99b0bb29f232d13"}, + {file = "contourpy-1.3.3-cp314-cp314t-manylinux_2_26_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:ca658cd1a680a5c9ea96dc61cdbae1e85c8f25849843aa799dfd3cb370ad4fbe"}, + {file = "contourpy-1.3.3-cp314-cp314t-manylinux_2_26_s390x.manylinux_2_28_s390x.whl", hash = "sha256:ab2fd90904c503739a75b7c8c5c01160130ba67944a7b77bbf36ef8054576e7f"}, + {file = "contourpy-1.3.3-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b7301b89040075c30e5768810bc96a8e8d78085b47d8be6e4c3f5a0b4ed478a0"}, + {file = "contourpy-1.3.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:2a2a8b627d5cc6b7c41a4beff6c5ad5eb848c88255fda4a8745f7e901b32d8e4"}, + {file = "contourpy-1.3.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:fd6ec6be509c787f1caf6b247f0b1ca598bef13f4ddeaa126b7658215529ba0f"}, + {file = "contourpy-1.3.3-cp314-cp314t-win32.whl", hash = "sha256:e74a9a0f5e3fff48fb5a7f2fd2b9b70a3fe014a67522f79b7cca4c0c7e43c9ae"}, + {file = "contourpy-1.3.3-cp314-cp314t-win_amd64.whl", hash = "sha256:13b68d6a62db8eafaebb8039218921399baf6e47bf85006fd8529f2a08ef33fc"}, + {file = "contourpy-1.3.3-cp314-cp314t-win_arm64.whl", hash = "sha256:b7448cb5a725bb1e35ce88771b86fba35ef418952474492cf7c764059933ff8b"}, + {file = "contourpy-1.3.3-pp311-pypy311_pp73-macosx_10_15_x86_64.whl", hash = "sha256:cd5dfcaeb10f7b7f9dc8941717c6c2ade08f587be2226222c12b25f0483ed497"}, + {file = "contourpy-1.3.3-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:0c1fc238306b35f246d61a1d416a627348b5cf0648648a031e14bb8705fcdfe8"}, + {file = "contourpy-1.3.3-pp311-pypy311_pp73-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:70f9aad7de812d6541d29d2bbf8feb22ff7e1c299523db288004e3157ff4674e"}, + {file = "contourpy-1.3.3-pp311-pypy311_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5ed3657edf08512fc3fe81b510e35c2012fbd3081d2e26160f27ca28affec989"}, + {file = "contourpy-1.3.3-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:3d1a3799d62d45c18bafd41c5fa05120b96a28079f2393af559b843d1a966a77"}, + {file = "contourpy-1.3.3.tar.gz", hash = "sha256:083e12155b210502d0bca491432bb04d56dc3432f95a979b429f2848c3dbe880"}, +] + +[package.dependencies] +numpy = ">=1.25" + +[package.extras] +bokeh = ["bokeh", "selenium"] +docs = ["furo", "sphinx (>=7.2)", "sphinx-copybutton"] +mypy = ["bokeh", "contourpy[bokeh,docs]", "docutils-stubs", "mypy (==1.17.0)", "types-Pillow"] +test = ["Pillow", "contourpy[test-no-images]", "matplotlib"] +test-no-images = ["pytest", "pytest-cov", "pytest-rerunfailures", "pytest-xdist", "wurlitzer"] + +[[package]] +name = "cycler" +version = "0.12.1" +description = "Composable style cycles" +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "cycler-0.12.1-py3-none-any.whl", hash = "sha256:85cef7cff222d8644161529808465972e51340599459b8ac3ccbac5a854e0d30"}, + {file = "cycler-0.12.1.tar.gz", hash = "sha256:88bb128f02ba341da8ef447245a9e138fae777f6a23943da4540077d3601eb1c"}, +] + +[package.extras] +docs = ["ipython", "matplotlib", "numpydoc", "sphinx"] +tests = ["pytest", "pytest-cov", "pytest-xdist"] + +[[package]] +name = "debugpy" +version = "1.8.19" +description = "An implementation of the Debug Adapter Protocol for Python" +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "debugpy-1.8.19-cp310-cp310-macosx_15_0_x86_64.whl", hash = "sha256:fce6da15d73be5935b4438435c53adb512326a3e11e4f90793ea87cd9f018254"}, + {file = "debugpy-1.8.19-cp310-cp310-manylinux_2_34_x86_64.whl", hash = "sha256:e24b1652a1df1ab04d81e7ead446a91c226de704ff5dde6bd0a0dbaab07aa3f2"}, + {file = "debugpy-1.8.19-cp310-cp310-win32.whl", hash = "sha256:327cb28c3ad9e17bc925efc7f7018195fd4787c2fe4b7af1eec11f1d19bdec62"}, + {file = "debugpy-1.8.19-cp310-cp310-win_amd64.whl", hash = "sha256:b7dd275cf2c99e53adb9654f5ae015f70415bbe2bacbe24cfee30d54b6aa03c5"}, + {file = "debugpy-1.8.19-cp311-cp311-macosx_15_0_universal2.whl", hash = "sha256:c5dcfa21de1f735a4f7ced4556339a109aa0f618d366ede9da0a3600f2516d8b"}, + {file = "debugpy-1.8.19-cp311-cp311-manylinux_2_34_x86_64.whl", hash = "sha256:806d6800246244004625d5222d7765874ab2d22f3ba5f615416cf1342d61c488"}, + {file = "debugpy-1.8.19-cp311-cp311-win32.whl", hash = "sha256:783a519e6dfb1f3cd773a9bda592f4887a65040cb0c7bd38dde410f4e53c40d4"}, + {file = "debugpy-1.8.19-cp311-cp311-win_amd64.whl", hash = "sha256:14035cbdbb1fe4b642babcdcb5935c2da3b1067ac211c5c5a8fdc0bb31adbcaa"}, + {file = "debugpy-1.8.19-cp312-cp312-macosx_15_0_universal2.whl", hash = "sha256:bccb1540a49cde77edc7ce7d9d075c1dbeb2414751bc0048c7a11e1b597a4c2e"}, + {file = "debugpy-1.8.19-cp312-cp312-manylinux_2_34_x86_64.whl", hash = "sha256:e9c68d9a382ec754dc05ed1d1b4ed5bd824b9f7c1a8cd1083adb84b3c93501de"}, + {file = "debugpy-1.8.19-cp312-cp312-win32.whl", hash = "sha256:6599cab8a783d1496ae9984c52cb13b7c4a3bd06a8e6c33446832a5d97ce0bee"}, + {file = "debugpy-1.8.19-cp312-cp312-win_amd64.whl", hash = "sha256:66e3d2fd8f2035a8f111eb127fa508469dfa40928a89b460b41fd988684dc83d"}, + {file = "debugpy-1.8.19-cp313-cp313-macosx_15_0_universal2.whl", hash = "sha256:91e35db2672a0abaf325f4868fcac9c1674a0d9ad9bb8a8c849c03a5ebba3e6d"}, + {file = "debugpy-1.8.19-cp313-cp313-manylinux_2_34_x86_64.whl", hash = "sha256:85016a73ab84dea1c1f1dcd88ec692993bcbe4532d1b49ecb5f3c688ae50c606"}, + {file = "debugpy-1.8.19-cp313-cp313-win32.whl", hash = "sha256:b605f17e89ba0ecee994391194285fada89cee111cfcd29d6f2ee11cbdc40976"}, + {file = "debugpy-1.8.19-cp313-cp313-win_amd64.whl", hash = "sha256:c30639998a9f9cd9699b4b621942c0179a6527f083c72351f95c6ab1728d5b73"}, + {file = "debugpy-1.8.19-cp314-cp314-macosx_15_0_universal2.whl", hash = "sha256:1e8c4d1bd230067bf1bbcdbd6032e5a57068638eb28b9153d008ecde288152af"}, + {file = "debugpy-1.8.19-cp314-cp314-manylinux_2_34_x86_64.whl", hash = "sha256:d40c016c1f538dbf1762936e3aeb43a89b965069d9f60f9e39d35d9d25e6b809"}, + {file = "debugpy-1.8.19-cp314-cp314-win32.whl", hash = "sha256:0601708223fe1cd0e27c6cce67a899d92c7d68e73690211e6788a4b0e1903f5b"}, + {file = "debugpy-1.8.19-cp314-cp314-win_amd64.whl", hash = "sha256:8e19a725f5d486f20e53a1dde2ab8bb2c9607c40c00a42ab646def962b41125f"}, + {file = "debugpy-1.8.19-cp38-cp38-macosx_15_0_x86_64.whl", hash = "sha256:d9b6f633fd2865af2afba2beb0c1819b6ecd4aed1c8f90f5d1bbca3272306b10"}, + {file = "debugpy-1.8.19-cp38-cp38-manylinux_2_34_x86_64.whl", hash = "sha256:a21bfdea088f713df05fa246ba0520f6ba44dd7eaec224742f51987a6979a648"}, + {file = "debugpy-1.8.19-cp38-cp38-win32.whl", hash = "sha256:b1cb98e5325da3059ca24445fca48314bfddfdf65ce1b59ff07055e723f06bd2"}, + {file = "debugpy-1.8.19-cp38-cp38-win_amd64.whl", hash = "sha256:c9b9bf440141a36836bdbe4320a2b126bb38aafa85e1aed05d7bfbb0e2a278bf"}, + {file = "debugpy-1.8.19-cp39-cp39-macosx_15_0_x86_64.whl", hash = "sha256:c047177ab2d286451f242b855b650d313198c4a987140d4b35218b2855a64a4a"}, + {file = "debugpy-1.8.19-cp39-cp39-manylinux_2_34_x86_64.whl", hash = "sha256:4468de0c30012d367944f0eab4ecb8371736e8ef9522a465f61214f344c11183"}, + {file = "debugpy-1.8.19-cp39-cp39-win32.whl", hash = "sha256:7b62c0f015120ede25e5124a5f9d8a424e1208e3d96a36c89958f046ee21fff6"}, + {file = "debugpy-1.8.19-cp39-cp39-win_amd64.whl", hash = "sha256:76f566baaf7f3e06adbe67ffedccd2ee911d1e486f55931939ce3f0fe1090774"}, + {file = "debugpy-1.8.19-py2.py3-none-any.whl", hash = "sha256:360ffd231a780abbc414ba0f005dad409e71c78637efe8f2bd75837132a41d38"}, + {file = "debugpy-1.8.19.tar.gz", hash = "sha256:eea7e5987445ab0b5ed258093722d5ecb8bb72217c5c9b1e21f64efe23ddebdb"}, +] + +[[package]] +name = "decorator" +version = "5.2.1" +description = "Decorators for Humans" +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "decorator-5.2.1-py3-none-any.whl", hash = "sha256:d316bb415a2d9e2d2b3abcc4084c6502fc09240e292cd76a76afc106a1c8e04a"}, + {file = "decorator-5.2.1.tar.gz", hash = "sha256:65f266143752f734b0a7cc83c46f4618af75b8c5911b00ccb61d0ac9b6da0360"}, +] + +[[package]] +name = "defusedxml" +version = "0.7.1" +description = "XML bomb protection for Python stdlib modules" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +groups = ["main"] +files = [ + {file = "defusedxml-0.7.1-py2.py3-none-any.whl", hash = "sha256:a352e7e428770286cc899e2542b6cdaedb2b4953ff269a210103ec58f6198a61"}, + {file = "defusedxml-0.7.1.tar.gz", hash = "sha256:1bb3032db185915b62d7c6209c5a8792be6a32ab2fedacc84e01b52c51aa3e69"}, +] + +[[package]] +name = "executing" +version = "2.2.1" +description = "Get the currently executing AST node of a frame, and other information" +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "executing-2.2.1-py2.py3-none-any.whl", hash = "sha256:760643d3452b4d777d295bb167ccc74c64a81df23fb5e08eff250c425a4b2017"}, + {file = "executing-2.2.1.tar.gz", hash = "sha256:3632cc370565f6648cc328b32435bd120a1e4ebb20c77e3fdde9a13cd1e533c4"}, +] + +[package.extras] +tests = ["asttokens (>=2.1.0)", "coverage", "coverage-enable-subprocess", "ipython", "littleutils", "pytest", "rich ; python_version >= \"3.11\""] + +[[package]] +name = "fastjsonschema" +version = "2.21.2" +description = "Fastest Python implementation of JSON schema" +optional = false +python-versions = "*" +groups = ["main"] +files = [ + {file = "fastjsonschema-2.21.2-py3-none-any.whl", hash = "sha256:1c797122d0a86c5cace2e54bf4e819c36223b552017172f32c5c024a6b77e463"}, + {file = "fastjsonschema-2.21.2.tar.gz", hash = "sha256:b1eb43748041c880796cd077f1a07c3d94e93ae84bba5ed36800a33554ae05de"}, +] + +[package.extras] +devel = ["colorama", "json-spec", "jsonschema", "pylint", "pytest", "pytest-benchmark", "pytest-cache", "validictory"] + +[[package]] +name = "filelock" +version = "3.20.3" +description = "A platform independent file lock." +optional = false +python-versions = ">=3.10" +groups = ["main"] +files = [ + {file = "filelock-3.20.3-py3-none-any.whl", hash = "sha256:4b0dda527ee31078689fc205ec4f1c1bf7d56cf88b6dc9426c4f230e46c2dce1"}, + {file = "filelock-3.20.3.tar.gz", hash = "sha256:18c57ee915c7ec61cff0ecf7f0f869936c7c30191bb0cf406f1341778d0834e1"}, +] + +[[package]] +name = "findingemo-light" +version = "1.0.0" +description = "FindingEmo-Light: Data only." +optional = false +python-versions = ">=3.6" +groups = ["main"] +files = [ + {file = "findingemo_light-1.0.0-py3-none-any.whl", hash = "sha256:b60a71a077e6211cfc96477bbdd8e66fe5c6b26a9600331e69e0785ef56454c5"}, + {file = "findingemo_light-1.0.0.tar.gz", hash = "sha256:6c8371981ddc6a3402921b07a927a9cd45fed07399126433a89a90fea60802ea"}, +] + +[package.dependencies] +requests = ">=2.25.0" +termcolor = ">=2.0.0" + +[[package]] +name = "fonttools" +version = "4.61.1" +description = "Tools to manipulate font files" +optional = false +python-versions = ">=3.10" +groups = ["main"] +files = [ + {file = "fonttools-4.61.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:7c7db70d57e5e1089a274cbb2b1fd635c9a24de809a231b154965d415d6c6d24"}, + {file = "fonttools-4.61.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:5fe9fd43882620017add5eabb781ebfbc6998ee49b35bd7f8f79af1f9f99a958"}, + {file = "fonttools-4.61.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d8db08051fc9e7d8bc622f2112511b8107d8f27cd89e2f64ec45e9825e8288da"}, + {file = "fonttools-4.61.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:a76d4cb80f41ba94a6691264be76435e5f72f2cb3cab0b092a6212855f71c2f6"}, + {file = "fonttools-4.61.1-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:a13fc8aeb24bad755eea8f7f9d409438eb94e82cf86b08fe77a03fbc8f6a96b1"}, + {file = "fonttools-4.61.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:b846a1fcf8beadeb9ea4f44ec5bdde393e2f1569e17d700bfc49cd69bde75881"}, + {file = "fonttools-4.61.1-cp310-cp310-win32.whl", hash = "sha256:78a7d3ab09dc47ac1a363a493e6112d8cabed7ba7caad5f54dbe2f08676d1b47"}, + {file = "fonttools-4.61.1-cp310-cp310-win_amd64.whl", hash = "sha256:eff1ac3cc66c2ac7cda1e64b4e2f3ffef474b7335f92fc3833fc632d595fcee6"}, + {file = "fonttools-4.61.1-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:c6604b735bb12fef8e0efd5578c9fb5d3d8532d5001ea13a19cddf295673ee09"}, + {file = "fonttools-4.61.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:5ce02f38a754f207f2f06557523cd39a06438ba3aafc0639c477ac409fc64e37"}, + {file = "fonttools-4.61.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:77efb033d8d7ff233385f30c62c7c79271c8885d5c9657d967ede124671bbdfb"}, + {file = "fonttools-4.61.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:75c1a6dfac6abd407634420c93864a1e274ebc1c7531346d9254c0d8f6ca00f9"}, + {file = "fonttools-4.61.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:0de30bfe7745c0d1ffa2b0b7048fb7123ad0d71107e10ee090fa0b16b9452e87"}, + {file = "fonttools-4.61.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:58b0ee0ab5b1fc9921eccfe11d1435added19d6494dde14e323f25ad2bc30c56"}, + {file = "fonttools-4.61.1-cp311-cp311-win32.whl", hash = "sha256:f79b168428351d11e10c5aeb61a74e1851ec221081299f4cf56036a95431c43a"}, + {file = "fonttools-4.61.1-cp311-cp311-win_amd64.whl", hash = "sha256:fe2efccb324948a11dd09d22136fe2ac8a97d6c1347cf0b58a911dcd529f66b7"}, + {file = "fonttools-4.61.1-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:f3cb4a569029b9f291f88aafc927dd53683757e640081ca8c412781ea144565e"}, + {file = "fonttools-4.61.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:41a7170d042e8c0024703ed13b71893519a1a6d6e18e933e3ec7507a2c26a4b2"}, + {file = "fonttools-4.61.1-cp312-cp312-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:10d88e55330e092940584774ee5e8a6971b01fc2f4d3466a1d6c158230880796"}, + {file = "fonttools-4.61.1-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:15acc09befd16a0fb8a8f62bc147e1a82817542d72184acca9ce6e0aeda9fa6d"}, + {file = "fonttools-4.61.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:e6bcdf33aec38d16508ce61fd81838f24c83c90a1d1b8c68982857038673d6b8"}, + {file = "fonttools-4.61.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:5fade934607a523614726119164ff621e8c30e8fa1ffffbbd358662056ba69f0"}, + {file = "fonttools-4.61.1-cp312-cp312-win32.whl", hash = "sha256:75da8f28eff26defba42c52986de97b22106cb8f26515b7c22443ebc9c2d3261"}, + {file = "fonttools-4.61.1-cp312-cp312-win_amd64.whl", hash = "sha256:497c31ce314219888c0e2fce5ad9178ca83fe5230b01a5006726cdf3ac9f24d9"}, + {file = "fonttools-4.61.1-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:8c56c488ab471628ff3bfa80964372fc13504ece601e0d97a78ee74126b2045c"}, + {file = "fonttools-4.61.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:dc492779501fa723b04d0ab1f5be046797fee17d27700476edc7ee9ae535a61e"}, + {file = "fonttools-4.61.1-cp313-cp313-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:64102ca87e84261419c3747a0d20f396eb024bdbeb04c2bfb37e2891f5fadcb5"}, + {file = "fonttools-4.61.1-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4c1b526c8d3f615a7b1867f38a9410849c8f4aef078535742198e942fba0e9bd"}, + {file = "fonttools-4.61.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:41ed4b5ec103bd306bb68f81dc166e77409e5209443e5773cb4ed837bcc9b0d3"}, + {file = "fonttools-4.61.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:b501c862d4901792adaec7c25b1ecc749e2662543f68bb194c42ba18d6eec98d"}, + {file = "fonttools-4.61.1-cp313-cp313-win32.whl", hash = "sha256:4d7092bb38c53bbc78e9255a59158b150bcdc115a1e3b3ce0b5f267dc35dd63c"}, + {file = "fonttools-4.61.1-cp313-cp313-win_amd64.whl", hash = "sha256:21e7c8d76f62ab13c9472ccf74515ca5b9a761d1bde3265152a6dc58700d895b"}, + {file = "fonttools-4.61.1-cp314-cp314-macosx_10_15_universal2.whl", hash = "sha256:fff4f534200a04b4a36e7ae3cb74493afe807b517a09e99cb4faa89a34ed6ecd"}, + {file = "fonttools-4.61.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:d9203500f7c63545b4ce3799319fe4d9feb1a1b89b28d3cb5abd11b9dd64147e"}, + {file = "fonttools-4.61.1-cp314-cp314-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:fa646ecec9528bef693415c79a86e733c70a4965dd938e9a226b0fc64c9d2e6c"}, + {file = "fonttools-4.61.1-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:11f35ad7805edba3aac1a3710d104592df59f4b957e30108ae0ba6c10b11dd75"}, + {file = "fonttools-4.61.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:b931ae8f62db78861b0ff1ac017851764602288575d65b8e8ff1963fed419063"}, + {file = "fonttools-4.61.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:b148b56f5de675ee16d45e769e69f87623a4944f7443850bf9a9376e628a89d2"}, + {file = "fonttools-4.61.1-cp314-cp314-win32.whl", hash = "sha256:9b666a475a65f4e839d3d10473fad6d47e0a9db14a2f4a224029c5bfde58ad2c"}, + {file = "fonttools-4.61.1-cp314-cp314-win_amd64.whl", hash = "sha256:4f5686e1fe5fce75d82d93c47a438a25bf0d1319d2843a926f741140b2b16e0c"}, + {file = "fonttools-4.61.1-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:e76ce097e3c57c4bcb67c5aa24a0ecdbd9f74ea9219997a707a4061fbe2707aa"}, + {file = "fonttools-4.61.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:9cfef3ab326780c04d6646f68d4b4742aae222e8b8ea1d627c74e38afcbc9d91"}, + {file = "fonttools-4.61.1-cp314-cp314t-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:a75c301f96db737e1c5ed5fd7d77d9c34466de16095a266509e13da09751bd19"}, + {file = "fonttools-4.61.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:91669ccac46bbc1d09e9273546181919064e8df73488ea087dcac3e2968df9ba"}, + {file = "fonttools-4.61.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:c33ab3ca9d3ccd581d58e989d67554e42d8d4ded94ab3ade3508455fe70e65f7"}, + {file = "fonttools-4.61.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:664c5a68ec406f6b1547946683008576ef8b38275608e1cee6c061828171c118"}, + {file = "fonttools-4.61.1-cp314-cp314t-win32.whl", hash = "sha256:aed04cabe26f30c1647ef0e8fbb207516fd40fe9472e9439695f5c6998e60ac5"}, + {file = "fonttools-4.61.1-cp314-cp314t-win_amd64.whl", hash = "sha256:2180f14c141d2f0f3da43f3a81bc8aa4684860f6b0e6f9e165a4831f24e6a23b"}, + {file = "fonttools-4.61.1-py3-none-any.whl", hash = "sha256:17d2bf5d541add43822bcf0c43d7d847b160c9bb01d15d5007d84e2217aaa371"}, + {file = "fonttools-4.61.1.tar.gz", hash = "sha256:6675329885c44657f826ef01d9e4fb33b9158e9d93c537d84ad8399539bc6f69"}, +] + +[package.extras] +all = ["brotli (>=1.0.1) ; platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; platform_python_implementation != \"CPython\"", "lxml (>=4.0)", "lz4 (>=1.7.4.2)", "matplotlib", "munkres ; platform_python_implementation == \"PyPy\"", "pycairo", "scipy ; platform_python_implementation != \"PyPy\"", "skia-pathops (>=0.5.0)", "sympy", "uharfbuzz (>=0.45.0)", "unicodedata2 (>=17.0.0) ; python_version <= \"3.14\"", "xattr ; sys_platform == \"darwin\"", "zopfli (>=0.1.4)"] +graphite = ["lz4 (>=1.7.4.2)"] +interpolatable = ["munkres ; platform_python_implementation == \"PyPy\"", "pycairo", "scipy ; platform_python_implementation != \"PyPy\""] +lxml = ["lxml (>=4.0)"] +pathops = ["skia-pathops (>=0.5.0)"] +plot = ["matplotlib"] +repacker = ["uharfbuzz (>=0.45.0)"] +symfont = ["sympy"] +type1 = ["xattr ; sys_platform == \"darwin\""] +unicode = ["unicodedata2 (>=17.0.0) ; python_version <= \"3.14\""] +woff = ["brotli (>=1.0.1) ; platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; platform_python_implementation != \"CPython\"", "zopfli (>=0.1.4)"] + +[[package]] +name = "fqdn" +version = "1.5.1" +description = "Validates fully-qualified domain names against RFC 1123, so that they are acceptable to modern bowsers" +optional = false +python-versions = ">=2.7, !=3.0, !=3.1, !=3.2, !=3.3, !=3.4, <4" +groups = ["main"] +files = [ + {file = "fqdn-1.5.1-py3-none-any.whl", hash = "sha256:3a179af3761e4df6eb2e026ff9e1a3033d3587bf980a0b1b2e1e5d08d7358014"}, + {file = "fqdn-1.5.1.tar.gz", hash = "sha256:105ed3677e767fb5ca086a0c1f4bb66ebc3c100be518f0e0d755d9eae164d89f"}, +] + +[[package]] +name = "fsspec" +version = "2026.1.0" +description = "File-system specification" +optional = false +python-versions = ">=3.10" +groups = ["main"] +files = [ + {file = "fsspec-2026.1.0-py3-none-any.whl", hash = "sha256:cb76aa913c2285a3b49bdd5fc55b1d7c708d7208126b60f2eb8194fe1b4cbdcc"}, + {file = "fsspec-2026.1.0.tar.gz", hash = "sha256:e987cb0496a0d81bba3a9d1cee62922fb395e7d4c3b575e57f547953334fe07b"}, +] + +[package.extras] +abfs = ["adlfs"] +adl = ["adlfs"] +arrow = ["pyarrow (>=1)"] +dask = ["dask", "distributed"] +dev = ["pre-commit", "ruff (>=0.5)"] +doc = ["numpydoc", "sphinx", "sphinx-design", "sphinx-rtd-theme", "yarl"] +dropbox = ["dropbox", "dropboxdrivefs", "requests"] +full = ["adlfs", "aiohttp (!=4.0.0a0,!=4.0.0a1)", "dask", "distributed", "dropbox", "dropboxdrivefs", "fusepy", "gcsfs (>2024.2.0)", "libarchive-c", "ocifs", "panel", "paramiko", "pyarrow (>=1)", "pygit2", "requests", "s3fs (>2024.2.0)", "smbprotocol", "tqdm"] +fuse = ["fusepy"] +gcs = ["gcsfs"] +git = ["pygit2"] +github = ["requests"] +gs = ["gcsfs"] +gui = ["panel"] +hdfs = ["pyarrow (>=1)"] +http = ["aiohttp (!=4.0.0a0,!=4.0.0a1)"] +libarchive = ["libarchive-c"] +oci = ["ocifs"] +s3 = ["s3fs"] +sftp = ["paramiko"] +smb = ["smbprotocol"] +ssh = ["paramiko"] +test = ["aiohttp (!=4.0.0a0,!=4.0.0a1)", "numpy", "pytest", "pytest-asyncio (!=0.22.0)", "pytest-benchmark", "pytest-cov", "pytest-mock", "pytest-recording", "pytest-rerunfailures", "requests"] +test-downstream = ["aiobotocore (>=2.5.4,<3.0.0)", "dask[dataframe,test]", "moto[server] (>4,<5)", "pytest-timeout", "xarray"] +test-full = ["adlfs", "aiohttp (!=4.0.0a0,!=4.0.0a1)", "backports-zstd ; python_version < \"3.14\"", "cloudpickle", "dask", "distributed", "dropbox", "dropboxdrivefs", "fastparquet", "fusepy", "gcsfs", "jinja2", "kerchunk", "libarchive-c", "lz4", "notebook", "numpy", "ocifs", "pandas", "panel", "paramiko", "pyarrow", "pyarrow (>=1)", "pyftpdlib", "pygit2", "pytest", "pytest-asyncio (!=0.22.0)", "pytest-benchmark", "pytest-cov", "pytest-mock", "pytest-recording", "pytest-rerunfailures", "python-snappy", "requests", "smbprotocol", "tqdm", "urllib3", "zarr"] +tqdm = ["tqdm"] + +[[package]] +name = "h11" +version = "0.16.0" +description = "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1" +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86"}, + {file = "h11-0.16.0.tar.gz", hash = "sha256:4e35b956cf45792e4caa5885e69fba00bdbc6ffafbfa020300e549b208ee5ff1"}, +] + +[[package]] +name = "httpcore" +version = "1.0.9" +description = "A minimal low-level HTTP client." +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "httpcore-1.0.9-py3-none-any.whl", hash = "sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55"}, + {file = "httpcore-1.0.9.tar.gz", hash = "sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8"}, +] + +[package.dependencies] +certifi = "*" +h11 = ">=0.16" + +[package.extras] +asyncio = ["anyio (>=4.0,<5.0)"] +http2 = ["h2 (>=3,<5)"] +socks = ["socksio (==1.*)"] +trio = ["trio (>=0.22.0,<1.0)"] + +[[package]] +name = "httpx" +version = "0.28.1" +description = "The next generation HTTP client." +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad"}, + {file = "httpx-0.28.1.tar.gz", hash = "sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc"}, +] + +[package.dependencies] +anyio = "*" +certifi = "*" +httpcore = "==1.*" +idna = "*" + +[package.extras] +brotli = ["brotli ; platform_python_implementation == \"CPython\"", "brotlicffi ; platform_python_implementation != \"CPython\""] +cli = ["click (==8.*)", "pygments (==2.*)", "rich (>=10,<14)"] +http2 = ["h2 (>=3,<5)"] +socks = ["socksio (==1.*)"] +zstd = ["zstandard (>=0.18.0)"] + +[[package]] +name = "idna" +version = "3.11" +description = "Internationalized Domain Names in Applications (IDNA)" +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "idna-3.11-py3-none-any.whl", hash = "sha256:771a87f49d9defaf64091e6e6fe9c18d4833f140bd19464795bc32d966ca37ea"}, + {file = "idna-3.11.tar.gz", hash = "sha256:795dafcc9c04ed0c1fb032c2aa73654d8e8c5023a7df64a53f39190ada629902"}, +] + +[package.extras] +all = ["flake8 (>=7.1.1)", "mypy (>=1.11.2)", "pytest (>=8.3.2)", "ruff (>=0.6.2)"] + +[[package]] +name = "ipykernel" +version = "7.1.0" +description = "IPython Kernel for Jupyter" +optional = false +python-versions = ">=3.10" +groups = ["main"] +files = [ + {file = "ipykernel-7.1.0-py3-none-any.whl", hash = "sha256:763b5ec6c5b7776f6a8d7ce09b267693b4e5ce75cb50ae696aaefb3c85e1ea4c"}, + {file = "ipykernel-7.1.0.tar.gz", hash = "sha256:58a3fc88533d5930c3546dc7eac66c6d288acde4f801e2001e65edc5dc9cf0db"}, +] + +[package.dependencies] +appnope = {version = ">=0.1.2", markers = "platform_system == \"Darwin\""} +comm = ">=0.1.1" +debugpy = ">=1.6.5" +ipython = ">=7.23.1" +jupyter-client = ">=8.0.0" +jupyter-core = ">=4.12,<5.0.dev0 || >=5.1.dev0" +matplotlib-inline = ">=0.1" +nest-asyncio = ">=1.4" +packaging = ">=22" +psutil = ">=5.7" +pyzmq = ">=25" +tornado = ">=6.2" +traitlets = ">=5.4.0" + +[package.extras] +cov = ["coverage[toml]", "matplotlib", "pytest-cov", "trio"] +docs = ["intersphinx-registry", "myst-parser", "pydata-sphinx-theme", "sphinx (<8.2.0)", "sphinx-autodoc-typehints", "sphinxcontrib-github-alt", "sphinxcontrib-spelling", "trio"] +pyqt5 = ["pyqt5"] +pyside6 = ["pyside6"] +test = ["flaky", "ipyparallel", "pre-commit", "pytest (>=7.0,<9)", "pytest-asyncio (>=0.23.5)", "pytest-cov", "pytest-timeout"] + +[[package]] +name = "ipython" +version = "9.9.0" +description = "IPython: Productive Interactive Computing" +optional = false +python-versions = ">=3.11" +groups = ["main"] +files = [ + {file = "ipython-9.9.0-py3-none-any.whl", hash = "sha256:b457fe9165df2b84e8ec909a97abcf2ed88f565970efba16b1f7229c283d252b"}, + {file = "ipython-9.9.0.tar.gz", hash = "sha256:48fbed1b2de5e2c7177eefa144aba7fcb82dac514f09b57e2ac9da34ddb54220"}, +] + +[package.dependencies] +colorama = {version = ">=0.4.4", markers = "sys_platform == \"win32\""} +decorator = ">=4.3.2" +ipython-pygments-lexers = ">=1.0.0" +jedi = ">=0.18.1" +matplotlib-inline = ">=0.1.5" +pexpect = {version = ">4.3", markers = "sys_platform != \"win32\" and sys_platform != \"emscripten\""} +prompt_toolkit = ">=3.0.41,<3.1.0" +pygments = ">=2.11.0" +stack_data = ">=0.6.0" +traitlets = ">=5.13.0" +typing_extensions = {version = ">=4.6", markers = "python_version < \"3.12\""} + +[package.extras] +all = ["argcomplete (>=3.0)", "ipython[doc,matplotlib,terminal,test,test-extra]"] +black = ["black"] +doc = ["docrepr", "exceptiongroup", "intersphinx_registry", "ipykernel", "ipython[matplotlib,test]", "setuptools (>=70.0)", "sphinx (>=8.0)", "sphinx-rtd-theme (>=0.1.8)", "sphinx_toml (==0.0.4)", "typing_extensions"] +matplotlib = ["matplotlib (>3.9)"] +test = ["packaging (>=20.1.0)", "pytest (>=7.0.0)", "pytest-asyncio (>=1.0.0)", "setuptools (>=61.2)", "testpath (>=0.2)"] +test-extra = ["curio", "ipykernel (>6.30)", "ipython[matplotlib]", "ipython[test]", "jupyter_ai", "nbclient", "nbformat", "numpy (>=1.27)", "pandas (>2.1)", "trio (>=0.1.0)"] + +[[package]] +name = "ipython-pygments-lexers" +version = "1.1.1" +description = "Defines a variety of Pygments lexers for highlighting IPython code." +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "ipython_pygments_lexers-1.1.1-py3-none-any.whl", hash = "sha256:a9462224a505ade19a605f71f8fa63c2048833ce50abc86768a0d81d876dc81c"}, + {file = "ipython_pygments_lexers-1.1.1.tar.gz", hash = "sha256:09c0138009e56b6854f9535736f4171d855c8c08a563a0dcd8022f78355c7e81"}, +] + +[package.dependencies] +pygments = "*" + +[[package]] +name = "ipywidgets" +version = "8.1.8" +description = "Jupyter interactive widgets" +optional = false +python-versions = ">=3.7" +groups = ["main"] +files = [ + {file = "ipywidgets-8.1.8-py3-none-any.whl", hash = "sha256:ecaca67aed704a338f88f67b1181b58f821ab5dc89c1f0f5ef99db43c1c2921e"}, + {file = "ipywidgets-8.1.8.tar.gz", hash = "sha256:61f969306b95f85fba6b6986b7fe45d73124d1d9e3023a8068710d47a22ea668"}, +] + +[package.dependencies] +comm = ">=0.1.3" +ipython = ">=6.1.0" +jupyterlab_widgets = ">=3.0.15,<3.1.0" +traitlets = ">=4.3.1" +widgetsnbextension = ">=4.0.14,<4.1.0" + +[package.extras] +test = ["ipykernel", "jsonschema", "pytest (>=3.6.0)", "pytest-cov", "pytz"] + +[[package]] +name = "isoduration" +version = "20.11.0" +description = "Operations with ISO 8601 durations" +optional = false +python-versions = ">=3.7" +groups = ["main"] +files = [ + {file = "isoduration-20.11.0-py3-none-any.whl", hash = "sha256:b2904c2a4228c3d44f409c8ae8e2370eb21a26f7ac2ec5446df141dde3452042"}, + {file = "isoduration-20.11.0.tar.gz", hash = "sha256:ac2f9015137935279eac671f94f89eb00584f940f5dc49462a0c4ee692ba1bd9"}, +] + +[package.dependencies] +arrow = ">=0.15.0" + +[[package]] +name = "jedi" +version = "0.19.2" +description = "An autocompletion tool for Python that can be used for text editors." +optional = false +python-versions = ">=3.6" +groups = ["main"] +files = [ + {file = "jedi-0.19.2-py2.py3-none-any.whl", hash = "sha256:a8ef22bde8490f57fe5c7681a3c83cb58874daf72b4784de3cce5b6ef6edb5b9"}, + {file = "jedi-0.19.2.tar.gz", hash = "sha256:4770dc3de41bde3966b02eb84fbcf557fb33cce26ad23da12c742fb50ecb11f0"}, +] + +[package.dependencies] +parso = ">=0.8.4,<0.9.0" + +[package.extras] +docs = ["Jinja2 (==2.11.3)", "MarkupSafe (==1.1.1)", "Pygments (==2.8.1)", "alabaster (==0.7.12)", "babel (==2.9.1)", "chardet (==4.0.0)", "commonmark (==0.8.1)", "docutils (==0.17.1)", "future (==0.18.2)", "idna (==2.10)", "imagesize (==1.2.0)", "mock (==1.0.1)", "packaging (==20.9)", "pyparsing (==2.4.7)", "pytz (==2021.1)", "readthedocs-sphinx-ext (==2.1.4)", "recommonmark (==0.5.0)", "requests (==2.25.1)", "six (==1.15.0)", "snowballstemmer (==2.1.0)", "sphinx (==1.8.5)", "sphinx-rtd-theme (==0.4.3)", "sphinxcontrib-serializinghtml (==1.1.4)", "sphinxcontrib-websupport (==1.2.4)", "urllib3 (==1.26.4)"] +qa = ["flake8 (==5.0.4)", "mypy (==0.971)", "types-setuptools (==67.2.0.1)"] +testing = ["Django", "attrs", "colorama", "docopt", "pytest (<9.0.0)"] + +[[package]] +name = "jinja2" +version = "3.1.6" +description = "A very fast and expressive template engine." +optional = false +python-versions = ">=3.7" +groups = ["main"] +files = [ + {file = "jinja2-3.1.6-py3-none-any.whl", hash = "sha256:85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67"}, + {file = "jinja2-3.1.6.tar.gz", hash = "sha256:0137fb05990d35f1275a587e9aee6d56da821fc83491a0fb838183be43f66d6d"}, +] + +[package.dependencies] +MarkupSafe = ">=2.0" + +[package.extras] +i18n = ["Babel (>=2.7)"] + +[[package]] +name = "joblib" +version = "1.5.3" +description = "Lightweight pipelining with Python functions" +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "joblib-1.5.3-py3-none-any.whl", hash = "sha256:5fc3c5039fc5ca8c0276333a188bbd59d6b7ab37fe6632daa76bc7f9ec18e713"}, + {file = "joblib-1.5.3.tar.gz", hash = "sha256:8561a3269e6801106863fd0d6d84bb737be9e7631e33aaed3fb9ce5953688da3"}, +] + +[[package]] +name = "json5" +version = "0.13.0" +description = "A Python implementation of the JSON5 data format." +optional = false +python-versions = ">=3.8.0" +groups = ["main"] +files = [ + {file = "json5-0.13.0-py3-none-any.whl", hash = "sha256:9a08e1dd65f6a4d4c6fa82d216cf2477349ec2346a38fd70cc11d2557499fbcc"}, + {file = "json5-0.13.0.tar.gz", hash = "sha256:b1edf8d487721c0bf64d83c28e91280781f6e21f4a797d3261c7c828d4c165bf"}, +] + +[[package]] +name = "jsonpointer" +version = "3.0.0" +description = "Identify specific nodes in a JSON document (RFC 6901)" +optional = false +python-versions = ">=3.7" +groups = ["main"] +files = [ + {file = "jsonpointer-3.0.0-py2.py3-none-any.whl", hash = "sha256:13e088adc14fca8b6aa8177c044e12701e6ad4b28ff10e65f2267a90109c9942"}, + {file = "jsonpointer-3.0.0.tar.gz", hash = "sha256:2b2d729f2091522d61c3b31f82e11870f60b68f43fbc705cb76bf4b832af59ef"}, +] + +[[package]] +name = "jsonschema" +version = "4.26.0" +description = "An implementation of JSON Schema validation for Python" +optional = false +python-versions = ">=3.10" +groups = ["main"] +files = [ + {file = "jsonschema-4.26.0-py3-none-any.whl", hash = "sha256:d489f15263b8d200f8387e64b4c3a75f06629559fb73deb8fdfb525f2dab50ce"}, + {file = "jsonschema-4.26.0.tar.gz", hash = "sha256:0c26707e2efad8aa1bfc5b7ce170f3fccc2e4918ff85989ba9ffa9facb2be326"}, +] + +[package.dependencies] +attrs = ">=22.2.0" +fqdn = {version = "*", optional = true, markers = "extra == \"format-nongpl\""} +idna = {version = "*", optional = true, markers = "extra == \"format-nongpl\""} +isoduration = {version = "*", optional = true, markers = "extra == \"format-nongpl\""} +jsonpointer = {version = ">1.13", optional = true, markers = "extra == \"format-nongpl\""} +jsonschema-specifications = ">=2023.03.6" +referencing = ">=0.28.4" +rfc3339-validator = {version = "*", optional = true, markers = "extra == \"format-nongpl\""} +rfc3986-validator = {version = ">0.1.0", optional = true, markers = "extra == \"format-nongpl\""} +rfc3987-syntax = {version = ">=1.1.0", optional = true, markers = "extra == \"format-nongpl\""} +rpds-py = ">=0.25.0" +uri-template = {version = "*", optional = true, markers = "extra == \"format-nongpl\""} +webcolors = {version = ">=24.6.0", optional = true, markers = "extra == \"format-nongpl\""} + +[package.extras] +format = ["fqdn", "idna", "isoduration", "jsonpointer (>1.13)", "rfc3339-validator", "rfc3987", "uri-template", "webcolors (>=1.11)"] +format-nongpl = ["fqdn", "idna", "isoduration", "jsonpointer (>1.13)", "rfc3339-validator", "rfc3986-validator (>0.1.0)", "rfc3987-syntax (>=1.1.0)", "uri-template", "webcolors (>=24.6.0)"] + +[[package]] +name = "jsonschema-specifications" +version = "2025.9.1" +description = "The JSON Schema meta-schemas and vocabularies, exposed as a Registry" +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "jsonschema_specifications-2025.9.1-py3-none-any.whl", hash = "sha256:98802fee3a11ee76ecaca44429fda8a41bff98b00a0f2838151b113f210cc6fe"}, + {file = "jsonschema_specifications-2025.9.1.tar.gz", hash = "sha256:b540987f239e745613c7a9176f3edb72b832a4ac465cf02712288397832b5e8d"}, +] + +[package.dependencies] +referencing = ">=0.31.0" + +[[package]] +name = "jupyter" +version = "1.1.1" +description = "Jupyter metapackage. Install all the Jupyter components in one go." +optional = false +python-versions = "*" +groups = ["main"] +files = [ + {file = "jupyter-1.1.1-py2.py3-none-any.whl", hash = "sha256:7a59533c22af65439b24bbe60373a4e95af8f16ac65a6c00820ad378e3f7cc83"}, + {file = "jupyter-1.1.1.tar.gz", hash = "sha256:d55467bceabdea49d7e3624af7e33d59c37fff53ed3a350e1ac957bed731de7a"}, +] + +[package.dependencies] +ipykernel = "*" +ipywidgets = "*" +jupyter-console = "*" +jupyterlab = "*" +nbconvert = "*" +notebook = "*" + +[[package]] +name = "jupyter-client" +version = "8.8.0" +description = "Jupyter protocol implementation and client libraries" +optional = false +python-versions = ">=3.10" +groups = ["main"] +files = [ + {file = "jupyter_client-8.8.0-py3-none-any.whl", hash = "sha256:f93a5b99c5e23a507b773d3a1136bd6e16c67883ccdbd9a829b0bbdb98cd7d7a"}, + {file = "jupyter_client-8.8.0.tar.gz", hash = "sha256:d556811419a4f2d96c869af34e854e3f059b7cc2d6d01a9cd9c85c267691be3e"}, +] + +[package.dependencies] +jupyter-core = ">=5.1" +python-dateutil = ">=2.8.2" +pyzmq = ">=25.0" +tornado = ">=6.4.1" +traitlets = ">=5.3" + +[package.extras] +docs = ["ipykernel", "myst-parser", "pydata-sphinx-theme", "sphinx (>=4)", "sphinx-autodoc-typehints", "sphinxcontrib-github-alt", "sphinxcontrib-spelling"] +orjson = ["orjson"] +test = ["anyio", "coverage", "ipykernel (>=6.14)", "msgpack", "mypy ; platform_python_implementation != \"PyPy\"", "paramiko ; sys_platform == \"win32\"", "pre-commit", "pytest", "pytest-cov", "pytest-jupyter[client] (>=0.6.2)", "pytest-timeout"] + +[[package]] +name = "jupyter-console" +version = "6.6.3" +description = "Jupyter terminal console" +optional = false +python-versions = ">=3.7" +groups = ["main"] +files = [ + {file = "jupyter_console-6.6.3-py3-none-any.whl", hash = "sha256:309d33409fcc92ffdad25f0bcdf9a4a9daa61b6f341177570fdac03de5352485"}, + {file = "jupyter_console-6.6.3.tar.gz", hash = "sha256:566a4bf31c87adbfadf22cdf846e3069b59a71ed5da71d6ba4d8aaad14a53539"}, +] + +[package.dependencies] +ipykernel = ">=6.14" +ipython = "*" +jupyter-client = ">=7.0.0" +jupyter-core = ">=4.12,<5.0.dev0 || >=5.1.dev0" +prompt-toolkit = ">=3.0.30" +pygments = "*" +pyzmq = ">=17" +traitlets = ">=5.4" + +[package.extras] +test = ["flaky", "pexpect", "pytest"] + +[[package]] +name = "jupyter-core" +version = "5.9.1" +description = "Jupyter core package. A base package on which Jupyter projects rely." +optional = false +python-versions = ">=3.10" +groups = ["main"] +files = [ + {file = "jupyter_core-5.9.1-py3-none-any.whl", hash = "sha256:ebf87fdc6073d142e114c72c9e29a9d7ca03fad818c5d300ce2adc1fb0743407"}, + {file = "jupyter_core-5.9.1.tar.gz", hash = "sha256:4d09aaff303b9566c3ce657f580bd089ff5c91f5f89cf7d8846c3cdf465b5508"}, +] + +[package.dependencies] +platformdirs = ">=2.5" +traitlets = ">=5.3" + +[package.extras] +docs = ["intersphinx-registry", "myst-parser", "pydata-sphinx-theme", "sphinx-autodoc-typehints", "sphinxcontrib-spelling", "traitlets"] +test = ["ipykernel", "pre-commit", "pytest (<9)", "pytest-cov", "pytest-timeout"] + +[[package]] +name = "jupyter-events" +version = "0.12.0" +description = "Jupyter Event System library" +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "jupyter_events-0.12.0-py3-none-any.whl", hash = "sha256:6464b2fa5ad10451c3d35fabc75eab39556ae1e2853ad0c0cc31b656731a97fb"}, + {file = "jupyter_events-0.12.0.tar.gz", hash = "sha256:fc3fce98865f6784c9cd0a56a20644fc6098f21c8c33834a8d9fe383c17e554b"}, +] + +[package.dependencies] +jsonschema = {version = ">=4.18.0", extras = ["format-nongpl"]} +packaging = "*" +python-json-logger = ">=2.0.4" +pyyaml = ">=5.3" +referencing = "*" +rfc3339-validator = "*" +rfc3986-validator = ">=0.1.1" +traitlets = ">=5.3" + +[package.extras] +cli = ["click", "rich"] +docs = ["jupyterlite-sphinx", "myst-parser", "pydata-sphinx-theme (>=0.16)", "sphinx (>=8)", "sphinxcontrib-spelling"] +test = ["click", "pre-commit", "pytest (>=7.0)", "pytest-asyncio (>=0.19.0)", "pytest-console-scripts", "rich"] + +[[package]] +name = "jupyter-lsp" +version = "2.3.0" +description = "Multi-Language Server WebSocket proxy for Jupyter Notebook/Lab server" +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "jupyter_lsp-2.3.0-py3-none-any.whl", hash = "sha256:e914a3cb2addf48b1c7710914771aaf1819d46b2e5a79b0f917b5478ec93f34f"}, + {file = "jupyter_lsp-2.3.0.tar.gz", hash = "sha256:458aa59339dc868fb784d73364f17dbce8836e906cd75fd471a325cba02e0245"}, +] + +[package.dependencies] +jupyter_server = ">=1.1.2" + +[[package]] +name = "jupyter-server" +version = "2.17.0" +description = "The backend—i.e. core services, APIs, and REST endpoints—to Jupyter web applications." +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "jupyter_server-2.17.0-py3-none-any.whl", hash = "sha256:e8cb9c7db4251f51ed307e329b81b72ccf2056ff82d50524debde1ee1870e13f"}, + {file = "jupyter_server-2.17.0.tar.gz", hash = "sha256:c38ea898566964c888b4772ae1ed58eca84592e88251d2cfc4d171f81f7e99d5"}, +] + +[package.dependencies] +anyio = ">=3.1.0" +argon2-cffi = ">=21.1" +jinja2 = ">=3.0.3" +jupyter-client = ">=7.4.4" +jupyter-core = ">=4.12,<5.0.dev0 || >=5.1.dev0" +jupyter-events = ">=0.11.0" +jupyter-server-terminals = ">=0.4.4" +nbconvert = ">=6.4.4" +nbformat = ">=5.3.0" +overrides = {version = ">=5.0", markers = "python_version < \"3.12\""} +packaging = ">=22.0" +prometheus-client = ">=0.9" +pywinpty = {version = ">=2.0.1", markers = "os_name == \"nt\""} +pyzmq = ">=24" +send2trash = ">=1.8.2" +terminado = ">=0.8.3" +tornado = ">=6.2.0" +traitlets = ">=5.6.0" +websocket-client = ">=1.7" + +[package.extras] +docs = ["ipykernel", "jinja2", "jupyter-client", "myst-parser", "nbformat", "prometheus-client", "pydata-sphinx-theme", "send2trash", "sphinx-autodoc-typehints", "sphinxcontrib-github-alt", "sphinxcontrib-openapi (>=0.8.0)", "sphinxcontrib-spelling", "sphinxemoji", "tornado", "typing-extensions"] +test = ["flaky", "ipykernel", "pre-commit", "pytest (>=7.0,<9)", "pytest-console-scripts", "pytest-jupyter[server] (>=0.7)", "pytest-timeout", "requests"] + +[[package]] +name = "jupyter-server-terminals" +version = "0.5.3" +description = "A Jupyter Server Extension Providing Terminals." +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "jupyter_server_terminals-0.5.3-py3-none-any.whl", hash = "sha256:41ee0d7dc0ebf2809c668e0fc726dfaf258fcd3e769568996ca731b6194ae9aa"}, + {file = "jupyter_server_terminals-0.5.3.tar.gz", hash = "sha256:5ae0295167220e9ace0edcfdb212afd2b01ee8d179fe6f23c899590e9b8a5269"}, +] + +[package.dependencies] +pywinpty = {version = ">=2.0.3", markers = "os_name == \"nt\""} +terminado = ">=0.8.3" + +[package.extras] +docs = ["jinja2", "jupyter-server", "mistune (<4.0)", "myst-parser", "nbformat", "packaging", "pydata-sphinx-theme", "sphinxcontrib-github-alt", "sphinxcontrib-openapi", "sphinxcontrib-spelling", "sphinxemoji", "tornado"] +test = ["jupyter-server (>=2.0.0)", "pytest (>=7.0)", "pytest-jupyter[server] (>=0.5.3)", "pytest-timeout"] + +[[package]] +name = "jupyterlab" +version = "4.5.1" +description = "JupyterLab computational environment" +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "jupyterlab-4.5.1-py3-none-any.whl", hash = "sha256:31b059de96de0754ff1f2ce6279774b6aab8c34d7082e9752db58207c99bd514"}, + {file = "jupyterlab-4.5.1.tar.gz", hash = "sha256:09da1ddfbd9eec18b5101dbb8515612aa1e47443321fb99503725a88e93d20d9"}, +] + +[package.dependencies] +async-lru = ">=1.0.0" +httpx = ">=0.25.0,<1" +ipykernel = ">=6.5.0,<6.30.0 || >6.30.0" +jinja2 = ">=3.0.3" +jupyter-core = "*" +jupyter-lsp = ">=2.0.0" +jupyter-server = ">=2.4.0,<3" +jupyterlab-server = ">=2.28.0,<3" +notebook-shim = ">=0.2" +packaging = "*" +setuptools = ">=41.1.0" +tornado = ">=6.2.0" +traitlets = "*" + +[package.extras] +dev = ["build", "bump2version", "coverage", "hatch", "pre-commit", "pytest-cov", "ruff (==0.11.12)"] +docs = ["jsx-lexer", "myst-parser", "pydata-sphinx-theme (>=0.13.0)", "pytest", "pytest-check-links", "pytest-jupyter", "sphinx (>=1.8,<8.2.0)", "sphinx-copybutton"] +docs-screenshots = ["altair (==6.0.0)", "ipython (==8.16.1)", "ipywidgets (==8.1.5)", "jupyterlab-geojson (==3.4.0)", "jupyterlab-language-pack-zh-cn (==4.3.post1)", "matplotlib (==3.10.0)", "nbconvert (>=7.0.0)", "pandas (==2.2.3)", "scipy (==1.15.1)"] +test = ["coverage", "pytest (>=7.0)", "pytest-check-links (>=0.7)", "pytest-console-scripts", "pytest-cov", "pytest-jupyter (>=0.5.3)", "pytest-timeout", "pytest-tornasync", "requests", "requests-cache", "virtualenv"] +upgrade-extension = ["copier (>=9,<10)", "jinja2-time (<0.3)", "pydantic (<3.0)", "pyyaml-include (<3.0)", "tomli-w (<2.0)"] + +[[package]] +name = "jupyterlab-pygments" +version = "0.3.0" +description = "Pygments theme using JupyterLab CSS variables" +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "jupyterlab_pygments-0.3.0-py3-none-any.whl", hash = "sha256:841a89020971da1d8693f1a99997aefc5dc424bb1b251fd6322462a1b8842780"}, + {file = "jupyterlab_pygments-0.3.0.tar.gz", hash = "sha256:721aca4d9029252b11cfa9d185e5b5af4d54772bb8072f9b7036f4170054d35d"}, +] + +[[package]] +name = "jupyterlab-server" +version = "2.28.0" +description = "A set of server components for JupyterLab and JupyterLab like applications." +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "jupyterlab_server-2.28.0-py3-none-any.whl", hash = "sha256:e4355b148fdcf34d312bbbc80f22467d6d20460e8b8736bf235577dd18506968"}, + {file = "jupyterlab_server-2.28.0.tar.gz", hash = "sha256:35baa81898b15f93573e2deca50d11ac0ae407ebb688299d3a5213265033712c"}, +] + +[package.dependencies] +babel = ">=2.10" +jinja2 = ">=3.0.3" +json5 = ">=0.9.0" +jsonschema = ">=4.18.0" +jupyter-server = ">=1.21,<3" +packaging = ">=21.3" +requests = ">=2.31" + +[package.extras] +docs = ["autodoc-traits", "jinja2 (<3.2.0)", "mistune (<4)", "myst-parser", "pydata-sphinx-theme", "sphinx", "sphinx-copybutton", "sphinxcontrib-openapi (>0.8)"] +openapi = ["openapi-core (>=0.18.0,<0.19.0)", "ruamel-yaml"] +test = ["hatch", "ipykernel", "openapi-core (>=0.18.0,<0.19.0)", "openapi-spec-validator (>=0.6.0,<0.8.0)", "pytest (>=7.0,<8)", "pytest-console-scripts", "pytest-cov", "pytest-jupyter[server] (>=0.6.2)", "pytest-timeout", "requests-mock", "ruamel-yaml", "sphinxcontrib-spelling", "strict-rfc3339", "werkzeug"] + +[[package]] +name = "jupyterlab-widgets" +version = "3.0.16" +description = "Jupyter interactive widgets for JupyterLab" +optional = false +python-versions = ">=3.7" +groups = ["main"] +files = [ + {file = "jupyterlab_widgets-3.0.16-py3-none-any.whl", hash = "sha256:45fa36d9c6422cf2559198e4db481aa243c7a32d9926b500781c830c80f7ecf8"}, + {file = "jupyterlab_widgets-3.0.16.tar.gz", hash = "sha256:423da05071d55cf27a9e602216d35a3a65a3e41cdf9c5d3b643b814ce38c19e0"}, +] + +[[package]] +name = "kiwisolver" +version = "1.4.9" +description = "A fast implementation of the Cassowary constraint solver" +optional = false +python-versions = ">=3.10" +groups = ["main"] +files = [ + {file = "kiwisolver-1.4.9-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:b4b4d74bda2b8ebf4da5bd42af11d02d04428b2c32846e4c2c93219df8a7987b"}, + {file = "kiwisolver-1.4.9-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:fb3b8132019ea572f4611d770991000d7f58127560c4889729248eb5852a102f"}, + {file = "kiwisolver-1.4.9-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:84fd60810829c27ae375114cd379da1fa65e6918e1da405f356a775d49a62bcf"}, + {file = "kiwisolver-1.4.9-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:b78efa4c6e804ecdf727e580dbb9cba85624d2e1c6b5cb059c66290063bd99a9"}, + {file = "kiwisolver-1.4.9-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d4efec7bcf21671db6a3294ff301d2fc861c31faa3c8740d1a94689234d1b415"}, + {file = "kiwisolver-1.4.9-cp310-cp310-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:90f47e70293fc3688b71271100a1a5453aa9944a81d27ff779c108372cf5567b"}, + {file = "kiwisolver-1.4.9-cp310-cp310-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:8fdca1def57a2e88ef339de1737a1449d6dbf5fab184c54a1fca01d541317154"}, + {file = "kiwisolver-1.4.9-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:9cf554f21be770f5111a1690d42313e140355e687e05cf82cb23d0a721a64a48"}, + {file = "kiwisolver-1.4.9-cp310-cp310-musllinux_1_2_ppc64le.whl", hash = "sha256:fc1795ac5cd0510207482c3d1d3ed781143383b8cfd36f5c645f3897ce066220"}, + {file = "kiwisolver-1.4.9-cp310-cp310-musllinux_1_2_s390x.whl", hash = "sha256:ccd09f20ccdbbd341b21a67ab50a119b64a403b09288c27481575105283c1586"}, + {file = "kiwisolver-1.4.9-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:540c7c72324d864406a009d72f5d6856f49693db95d1fbb46cf86febef873634"}, + {file = "kiwisolver-1.4.9-cp310-cp310-win_amd64.whl", hash = "sha256:ede8c6d533bc6601a47ad4046080d36b8fc99f81e6f1c17b0ac3c2dc91ac7611"}, + {file = "kiwisolver-1.4.9-cp310-cp310-win_arm64.whl", hash = "sha256:7b4da0d01ac866a57dd61ac258c5607b4cd677f63abaec7b148354d2b2cdd536"}, + {file = "kiwisolver-1.4.9-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:eb14a5da6dc7642b0f3a18f13654847cd8b7a2550e2645a5bda677862b03ba16"}, + {file = "kiwisolver-1.4.9-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:39a219e1c81ae3b103643d2aedb90f1ef22650deb266ff12a19e7773f3e5f089"}, + {file = "kiwisolver-1.4.9-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:2405a7d98604b87f3fc28b1716783534b1b4b8510d8142adca34ee0bc3c87543"}, + {file = "kiwisolver-1.4.9-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:dc1ae486f9abcef254b5618dfb4113dd49f94c68e3e027d03cf0143f3f772b61"}, + {file = "kiwisolver-1.4.9-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8a1f570ce4d62d718dce3f179ee78dac3b545ac16c0c04bb363b7607a949c0d1"}, + {file = "kiwisolver-1.4.9-cp311-cp311-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:cb27e7b78d716c591e88e0a09a2139c6577865d7f2e152488c2cc6257f460872"}, + {file = "kiwisolver-1.4.9-cp311-cp311-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:15163165efc2f627eb9687ea5f3a28137217d217ac4024893d753f46bce9de26"}, + {file = "kiwisolver-1.4.9-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:bdee92c56a71d2b24c33a7d4c2856bd6419d017e08caa7802d2963870e315028"}, + {file = "kiwisolver-1.4.9-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:412f287c55a6f54b0650bd9b6dce5aceddb95864a1a90c87af16979d37c89771"}, + {file = "kiwisolver-1.4.9-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:2c93f00dcba2eea70af2be5f11a830a742fe6b579a1d4e00f47760ef13be247a"}, + {file = "kiwisolver-1.4.9-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:f117e1a089d9411663a3207ba874f31be9ac8eaa5b533787024dc07aeb74f464"}, + {file = "kiwisolver-1.4.9-cp311-cp311-win_amd64.whl", hash = "sha256:be6a04e6c79819c9a8c2373317d19a96048e5a3f90bec587787e86a1153883c2"}, + {file = "kiwisolver-1.4.9-cp311-cp311-win_arm64.whl", hash = "sha256:0ae37737256ba2de764ddc12aed4956460277f00c4996d51a197e72f62f5eec7"}, + {file = "kiwisolver-1.4.9-cp312-cp312-macosx_10_13_universal2.whl", hash = "sha256:ac5a486ac389dddcc5bef4f365b6ae3ffff2c433324fb38dd35e3fab7c957999"}, + {file = "kiwisolver-1.4.9-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:f2ba92255faa7309d06fe44c3a4a97efe1c8d640c2a79a5ef728b685762a6fd2"}, + {file = "kiwisolver-1.4.9-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:4a2899935e724dd1074cb568ce7ac0dce28b2cd6ab539c8e001a8578eb106d14"}, + {file = "kiwisolver-1.4.9-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f6008a4919fdbc0b0097089f67a1eb55d950ed7e90ce2cc3e640abadd2757a04"}, + {file = "kiwisolver-1.4.9-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:67bb8b474b4181770f926f7b7d2f8c0248cbcb78b660fdd41a47054b28d2a752"}, + {file = "kiwisolver-1.4.9-cp312-cp312-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:2327a4a30d3ee07d2fbe2e7933e8a37c591663b96ce42a00bc67461a87d7df77"}, + {file = "kiwisolver-1.4.9-cp312-cp312-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:7a08b491ec91b1d5053ac177afe5290adacf1f0f6307d771ccac5de30592d198"}, + {file = "kiwisolver-1.4.9-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:d8fc5c867c22b828001b6a38d2eaeb88160bf5783c6cb4a5e440efc981ce286d"}, + {file = "kiwisolver-1.4.9-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:3b3115b2581ea35bb6d1f24a4c90af37e5d9b49dcff267eeed14c3893c5b86ab"}, + {file = "kiwisolver-1.4.9-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:858e4c22fb075920b96a291928cb7dea5644e94c0ee4fcd5af7e865655e4ccf2"}, + {file = "kiwisolver-1.4.9-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:ed0fecd28cc62c54b262e3736f8bb2512d8dcfdc2bcf08be5f47f96bf405b145"}, + {file = "kiwisolver-1.4.9-cp312-cp312-win_amd64.whl", hash = "sha256:f68208a520c3d86ea51acf688a3e3002615a7f0238002cccc17affecc86a8a54"}, + {file = "kiwisolver-1.4.9-cp312-cp312-win_arm64.whl", hash = "sha256:2c1a4f57df73965f3f14df20b80ee29e6a7930a57d2d9e8491a25f676e197c60"}, + {file = "kiwisolver-1.4.9-cp313-cp313-macosx_10_13_universal2.whl", hash = "sha256:a5d0432ccf1c7ab14f9949eec60c5d1f924f17c037e9f8b33352fa05799359b8"}, + {file = "kiwisolver-1.4.9-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:efb3a45b35622bb6c16dbfab491a8f5a391fe0e9d45ef32f4df85658232ca0e2"}, + {file = "kiwisolver-1.4.9-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:1a12cf6398e8a0a001a059747a1cbf24705e18fe413bc22de7b3d15c67cffe3f"}, + {file = "kiwisolver-1.4.9-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:b67e6efbf68e077dd71d1a6b37e43e1a99d0bff1a3d51867d45ee8908b931098"}, + {file = "kiwisolver-1.4.9-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5656aa670507437af0207645273ccdfee4f14bacd7f7c67a4306d0dcaeaf6eed"}, + {file = "kiwisolver-1.4.9-cp313-cp313-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:bfc08add558155345129c7803b3671cf195e6a56e7a12f3dde7c57d9b417f525"}, + {file = "kiwisolver-1.4.9-cp313-cp313-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:40092754720b174e6ccf9e845d0d8c7d8e12c3d71e7fc35f55f3813e96376f78"}, + {file = "kiwisolver-1.4.9-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:497d05f29a1300d14e02e6441cf0f5ee81c1ff5a304b0d9fb77423974684e08b"}, + {file = "kiwisolver-1.4.9-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:bdd1a81a1860476eb41ac4bc1e07b3f07259e6d55bbf739b79c8aaedcf512799"}, + {file = "kiwisolver-1.4.9-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:e6b93f13371d341afee3be9f7c5964e3fe61d5fa30f6a30eb49856935dfe4fc3"}, + {file = "kiwisolver-1.4.9-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:d75aa530ccfaa593da12834b86a0724f58bff12706659baa9227c2ccaa06264c"}, + {file = "kiwisolver-1.4.9-cp313-cp313-win_amd64.whl", hash = "sha256:dd0a578400839256df88c16abddf9ba14813ec5f21362e1fe65022e00c883d4d"}, + {file = "kiwisolver-1.4.9-cp313-cp313-win_arm64.whl", hash = "sha256:d4188e73af84ca82468f09cadc5ac4db578109e52acb4518d8154698d3a87ca2"}, + {file = "kiwisolver-1.4.9-cp313-cp313t-macosx_10_13_universal2.whl", hash = "sha256:5a0f2724dfd4e3b3ac5a82436a8e6fd16baa7d507117e4279b660fe8ca38a3a1"}, + {file = "kiwisolver-1.4.9-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:1b11d6a633e4ed84fc0ddafd4ebfd8ea49b3f25082c04ad12b8315c11d504dc1"}, + {file = "kiwisolver-1.4.9-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:61874cdb0a36016354853593cffc38e56fc9ca5aa97d2c05d3dcf6922cd55a11"}, + {file = "kiwisolver-1.4.9-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:60c439763a969a6af93b4881db0eed8fadf93ee98e18cbc35bc8da868d0c4f0c"}, + {file = "kiwisolver-1.4.9-cp313-cp313t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:92a2f997387a1b79a75e7803aa7ded2cfbe2823852ccf1ba3bcf613b62ae3197"}, + {file = "kiwisolver-1.4.9-cp313-cp313t-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:a31d512c812daea6d8b3be3b2bfcbeb091dbb09177706569bcfc6240dcf8b41c"}, + {file = "kiwisolver-1.4.9-cp313-cp313t-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:52a15b0f35dad39862d376df10c5230155243a2c1a436e39eb55623ccbd68185"}, + {file = "kiwisolver-1.4.9-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:a30fd6fdef1430fd9e1ba7b3398b5ee4e2887783917a687d86ba69985fb08748"}, + {file = "kiwisolver-1.4.9-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:cc9617b46837c6468197b5945e196ee9ca43057bb7d9d1ae688101e4e1dddf64"}, + {file = "kiwisolver-1.4.9-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:0ab74e19f6a2b027ea4f845a78827969af45ce790e6cb3e1ebab71bdf9f215ff"}, + {file = "kiwisolver-1.4.9-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:dba5ee5d3981160c28d5490f0d1b7ed730c22470ff7f6cc26cfcfaacb9896a07"}, + {file = "kiwisolver-1.4.9-cp313-cp313t-win_arm64.whl", hash = "sha256:0749fd8f4218ad2e851e11cc4dc05c7cbc0cbc4267bdfdb31782e65aace4ee9c"}, + {file = "kiwisolver-1.4.9-cp314-cp314-macosx_10_13_universal2.whl", hash = "sha256:9928fe1eb816d11ae170885a74d074f57af3a0d65777ca47e9aeb854a1fba386"}, + {file = "kiwisolver-1.4.9-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:d0005b053977e7b43388ddec89fa567f43d4f6d5c2c0affe57de5ebf290dc552"}, + {file = "kiwisolver-1.4.9-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:2635d352d67458b66fd0667c14cb1d4145e9560d503219034a18a87e971ce4f3"}, + {file = "kiwisolver-1.4.9-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:767c23ad1c58c9e827b649a9ab7809fd5fd9db266a9cf02b0e926ddc2c680d58"}, + {file = "kiwisolver-1.4.9-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:72d0eb9fba308b8311685c2268cf7d0a0639a6cd027d8128659f72bdd8a024b4"}, + {file = "kiwisolver-1.4.9-cp314-cp314-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:f68e4f3eeca8fb22cc3d731f9715a13b652795ef657a13df1ad0c7dc0e9731df"}, + {file = "kiwisolver-1.4.9-cp314-cp314-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:d84cd4061ae292d8ac367b2c3fa3aad11cb8625a95d135fe93f286f914f3f5a6"}, + {file = "kiwisolver-1.4.9-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:a60ea74330b91bd22a29638940d115df9dc00af5035a9a2a6ad9399ffb4ceca5"}, + {file = "kiwisolver-1.4.9-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:ce6a3a4e106cf35c2d9c4fa17c05ce0b180db622736845d4315519397a77beaf"}, + {file = "kiwisolver-1.4.9-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:77937e5e2a38a7b48eef0585114fe7930346993a88060d0bf886086d2aa49ef5"}, + {file = "kiwisolver-1.4.9-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:24c175051354f4a28c5d6a31c93906dc653e2bf234e8a4bbfb964892078898ce"}, + {file = "kiwisolver-1.4.9-cp314-cp314-win_amd64.whl", hash = "sha256:0763515d4df10edf6d06a3c19734e2566368980d21ebec439f33f9eb936c07b7"}, + {file = "kiwisolver-1.4.9-cp314-cp314-win_arm64.whl", hash = "sha256:0e4e2bf29574a6a7b7f6cb5fa69293b9f96c928949ac4a53ba3f525dffb87f9c"}, + {file = "kiwisolver-1.4.9-cp314-cp314t-macosx_10_13_universal2.whl", hash = "sha256:d976bbb382b202f71c67f77b0ac11244021cfa3f7dfd9e562eefcea2df711548"}, + {file = "kiwisolver-1.4.9-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:2489e4e5d7ef9a1c300a5e0196e43d9c739f066ef23270607d45aba368b91f2d"}, + {file = "kiwisolver-1.4.9-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:e2ea9f7ab7fbf18fffb1b5434ce7c69a07582f7acc7717720f1d69f3e806f90c"}, + {file = "kiwisolver-1.4.9-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:b34e51affded8faee0dfdb705416153819d8ea9250bbbf7ea1b249bdeb5f1122"}, + {file = "kiwisolver-1.4.9-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d8aacd3d4b33b772542b2e01beb50187536967b514b00003bdda7589722d2a64"}, + {file = "kiwisolver-1.4.9-cp314-cp314t-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7cf974dd4e35fa315563ac99d6287a1024e4dc2077b8a7d7cd3d2fb65d283134"}, + {file = "kiwisolver-1.4.9-cp314-cp314t-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:85bd218b5ecfbee8c8a82e121802dcb519a86044c9c3b2e4aef02fa05c6da370"}, + {file = "kiwisolver-1.4.9-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:0856e241c2d3df4efef7c04a1e46b1936b6120c9bcf36dd216e3acd84bc4fb21"}, + {file = "kiwisolver-1.4.9-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:9af39d6551f97d31a4deebeac6f45b156f9755ddc59c07b402c148f5dbb6482a"}, + {file = "kiwisolver-1.4.9-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:bb4ae2b57fc1d8cbd1cf7b1d9913803681ffa903e7488012be5b76dedf49297f"}, + {file = "kiwisolver-1.4.9-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:aedff62918805fb62d43a4aa2ecd4482c380dc76cd31bd7c8878588a61bd0369"}, + {file = "kiwisolver-1.4.9-cp314-cp314t-win_amd64.whl", hash = "sha256:1fa333e8b2ce4d9660f2cda9c0e1b6bafcfb2457a9d259faa82289e73ec24891"}, + {file = "kiwisolver-1.4.9-cp314-cp314t-win_arm64.whl", hash = "sha256:4a48a2ce79d65d363597ef7b567ce3d14d68783d2b2263d98db3d9477805ba32"}, + {file = "kiwisolver-1.4.9-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:4d1d9e582ad4d63062d34077a9a1e9f3c34088a2ec5135b1f7190c07cf366527"}, + {file = "kiwisolver-1.4.9-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:deed0c7258ceb4c44ad5ec7d9918f9f14fd05b2be86378d86cf50e63d1e7b771"}, + {file = "kiwisolver-1.4.9-pp310-pypy310_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:0a590506f303f512dff6b7f75fd2fd18e16943efee932008fe7140e5fa91d80e"}, + {file = "kiwisolver-1.4.9-pp310-pypy310_pp73-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e09c2279a4d01f099f52d5c4b3d9e208e91edcbd1a175c9662a8b16e000fece9"}, + {file = "kiwisolver-1.4.9-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:c9e7cdf45d594ee04d5be1b24dd9d49f3d1590959b2271fb30b5ca2b262c00fb"}, + {file = "kiwisolver-1.4.9-pp311-pypy311_pp73-macosx_10_15_x86_64.whl", hash = "sha256:720e05574713db64c356e86732c0f3c5252818d05f9df320f0ad8380641acea5"}, + {file = "kiwisolver-1.4.9-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:17680d737d5335b552994a2008fab4c851bcd7de33094a82067ef3a576ff02fa"}, + {file = "kiwisolver-1.4.9-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:85b5352f94e490c028926ea567fc569c52ec79ce131dadb968d3853e809518c2"}, + {file = "kiwisolver-1.4.9-pp311-pypy311_pp73-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:464415881e4801295659462c49461a24fb107c140de781d55518c4b80cb6790f"}, + {file = "kiwisolver-1.4.9-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:fb940820c63a9590d31d88b815e7a3aa5915cad3ce735ab45f0c730b39547de1"}, + {file = "kiwisolver-1.4.9.tar.gz", hash = "sha256:c3b22c26c6fd6811b0ae8363b95ca8ce4ea3c202d3d0975b2914310ceb1bcc4d"}, +] + +[[package]] +name = "lark" +version = "1.3.1" +description = "a modern parsing library" +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "lark-1.3.1-py3-none-any.whl", hash = "sha256:c629b661023a014c37da873b4ff58a817398d12635d3bbb2c5a03be7fe5d1e12"}, + {file = "lark-1.3.1.tar.gz", hash = "sha256:b426a7a6d6d53189d318f2b6236ab5d6429eaf09259f1ca33eb716eed10d2905"}, +] + +[package.extras] +atomic-cache = ["atomicwrites"] +interegular = ["interegular (>=0.3.1,<0.4.0)"] +nearley = ["js2py"] +regex = ["regex"] + +[[package]] +name = "markupsafe" +version = "3.0.3" +description = "Safely add untrusted strings to HTML/XML markup." +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "markupsafe-3.0.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:2f981d352f04553a7171b8e44369f2af4055f888dfb147d55e42d29e29e74559"}, + {file = "markupsafe-3.0.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:e1c1493fb6e50ab01d20a22826e57520f1284df32f2d8601fdd90b6304601419"}, + {file = "markupsafe-3.0.3-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1ba88449deb3de88bd40044603fafffb7bc2b055d626a330323a9ed736661695"}, + {file = "markupsafe-3.0.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f42d0984e947b8adf7dd6dde396e720934d12c506ce84eea8476409563607591"}, + {file = "markupsafe-3.0.3-cp310-cp310-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:c0c0b3ade1c0b13b936d7970b1d37a57acde9199dc2aecc4c336773e1d86049c"}, + {file = "markupsafe-3.0.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:0303439a41979d9e74d18ff5e2dd8c43ed6c6001fd40e5bf2e43f7bd9bbc523f"}, + {file = "markupsafe-3.0.3-cp310-cp310-musllinux_1_2_riscv64.whl", hash = "sha256:d2ee202e79d8ed691ceebae8e0486bd9a2cd4794cec4824e1c99b6f5009502f6"}, + {file = "markupsafe-3.0.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:177b5253b2834fe3678cb4a5f0059808258584c559193998be2601324fdeafb1"}, + {file = "markupsafe-3.0.3-cp310-cp310-win32.whl", hash = "sha256:2a15a08b17dd94c53a1da0438822d70ebcd13f8c3a95abe3a9ef9f11a94830aa"}, + {file = "markupsafe-3.0.3-cp310-cp310-win_amd64.whl", hash = "sha256:c4ffb7ebf07cfe8931028e3e4c85f0357459a3f9f9490886198848f4fa002ec8"}, + {file = "markupsafe-3.0.3-cp310-cp310-win_arm64.whl", hash = "sha256:e2103a929dfa2fcaf9bb4e7c091983a49c9ac3b19c9061b6d5427dd7d14d81a1"}, + {file = "markupsafe-3.0.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:1cc7ea17a6824959616c525620e387f6dd30fec8cb44f649e31712db02123dad"}, + {file = "markupsafe-3.0.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4bd4cd07944443f5a265608cc6aab442e4f74dff8088b0dfc8238647b8f6ae9a"}, + {file = "markupsafe-3.0.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6b5420a1d9450023228968e7e6a9ce57f65d148ab56d2313fcd589eee96a7a50"}, + {file = "markupsafe-3.0.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0bf2a864d67e76e5c9a34dc26ec616a66b9888e25e7b9460e1c76d3293bd9dbf"}, + {file = "markupsafe-3.0.3-cp311-cp311-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:bc51efed119bc9cfdf792cdeaa4d67e8f6fcccab66ed4bfdd6bde3e59bfcbb2f"}, + {file = "markupsafe-3.0.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:068f375c472b3e7acbe2d5318dea141359e6900156b5b2ba06a30b169086b91a"}, + {file = "markupsafe-3.0.3-cp311-cp311-musllinux_1_2_riscv64.whl", hash = "sha256:7be7b61bb172e1ed687f1754f8e7484f1c8019780f6f6b0786e76bb01c2ae115"}, + {file = "markupsafe-3.0.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:f9e130248f4462aaa8e2552d547f36ddadbeaa573879158d721bbd33dfe4743a"}, + {file = "markupsafe-3.0.3-cp311-cp311-win32.whl", hash = "sha256:0db14f5dafddbb6d9208827849fad01f1a2609380add406671a26386cdf15a19"}, + {file = "markupsafe-3.0.3-cp311-cp311-win_amd64.whl", hash = "sha256:de8a88e63464af587c950061a5e6a67d3632e36df62b986892331d4620a35c01"}, + {file = "markupsafe-3.0.3-cp311-cp311-win_arm64.whl", hash = "sha256:3b562dd9e9ea93f13d53989d23a7e775fdfd1066c33494ff43f5418bc8c58a5c"}, + {file = "markupsafe-3.0.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:d53197da72cc091b024dd97249dfc7794d6a56530370992a5e1a08983ad9230e"}, + {file = "markupsafe-3.0.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:1872df69a4de6aead3491198eaf13810b565bdbeec3ae2dc8780f14458ec73ce"}, + {file = "markupsafe-3.0.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3a7e8ae81ae39e62a41ec302f972ba6ae23a5c5396c8e60113e9066ef893da0d"}, + {file = "markupsafe-3.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d6dd0be5b5b189d31db7cda48b91d7e0a9795f31430b7f271219ab30f1d3ac9d"}, + {file = "markupsafe-3.0.3-cp312-cp312-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:94c6f0bb423f739146aec64595853541634bde58b2135f27f61c1ffd1cd4d16a"}, + {file = "markupsafe-3.0.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:be8813b57049a7dc738189df53d69395eba14fb99345e0a5994914a3864c8a4b"}, + {file = "markupsafe-3.0.3-cp312-cp312-musllinux_1_2_riscv64.whl", hash = "sha256:83891d0e9fb81a825d9a6d61e3f07550ca70a076484292a70fde82c4b807286f"}, + {file = "markupsafe-3.0.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:77f0643abe7495da77fb436f50f8dab76dbc6e5fd25d39589a0f1fe6548bfa2b"}, + {file = "markupsafe-3.0.3-cp312-cp312-win32.whl", hash = "sha256:d88b440e37a16e651bda4c7c2b930eb586fd15ca7406cb39e211fcff3bf3017d"}, + {file = "markupsafe-3.0.3-cp312-cp312-win_amd64.whl", hash = "sha256:26a5784ded40c9e318cfc2bdb30fe164bdb8665ded9cd64d500a34fb42067b1c"}, + {file = "markupsafe-3.0.3-cp312-cp312-win_arm64.whl", hash = "sha256:35add3b638a5d900e807944a078b51922212fb3dedb01633a8defc4b01a3c85f"}, + {file = "markupsafe-3.0.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:e1cf1972137e83c5d4c136c43ced9ac51d0e124706ee1c8aa8532c1287fa8795"}, + {file = "markupsafe-3.0.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:116bb52f642a37c115f517494ea5feb03889e04df47eeff5b130b1808ce7c219"}, + {file = "markupsafe-3.0.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:133a43e73a802c5562be9bbcd03d090aa5a1fe899db609c29e8c8d815c5f6de6"}, + {file = "markupsafe-3.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ccfcd093f13f0f0b7fdd0f198b90053bf7b2f02a3927a30e63f3ccc9df56b676"}, + {file = "markupsafe-3.0.3-cp313-cp313-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:509fa21c6deb7a7a273d629cf5ec029bc209d1a51178615ddf718f5918992ab9"}, + {file = "markupsafe-3.0.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:a4afe79fb3de0b7097d81da19090f4df4f8d3a2b3adaa8764138aac2e44f3af1"}, + {file = "markupsafe-3.0.3-cp313-cp313-musllinux_1_2_riscv64.whl", hash = "sha256:795e7751525cae078558e679d646ae45574b47ed6e7771863fcc079a6171a0fc"}, + {file = "markupsafe-3.0.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:8485f406a96febb5140bfeca44a73e3ce5116b2501ac54fe953e488fb1d03b12"}, + {file = "markupsafe-3.0.3-cp313-cp313-win32.whl", hash = "sha256:bdd37121970bfd8be76c5fb069c7751683bdf373db1ed6c010162b2a130248ed"}, + {file = "markupsafe-3.0.3-cp313-cp313-win_amd64.whl", hash = "sha256:9a1abfdc021a164803f4d485104931fb8f8c1efd55bc6b748d2f5774e78b62c5"}, + {file = "markupsafe-3.0.3-cp313-cp313-win_arm64.whl", hash = "sha256:7e68f88e5b8799aa49c85cd116c932a1ac15caaa3f5db09087854d218359e485"}, + {file = "markupsafe-3.0.3-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:218551f6df4868a8d527e3062d0fb968682fe92054e89978594c28e642c43a73"}, + {file = "markupsafe-3.0.3-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:3524b778fe5cfb3452a09d31e7b5adefeea8c5be1d43c4f810ba09f2ceb29d37"}, + {file = "markupsafe-3.0.3-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4e885a3d1efa2eadc93c894a21770e4bc67899e3543680313b09f139e149ab19"}, + {file = "markupsafe-3.0.3-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8709b08f4a89aa7586de0aadc8da56180242ee0ada3999749b183aa23df95025"}, + {file = "markupsafe-3.0.3-cp313-cp313t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:b8512a91625c9b3da6f127803b166b629725e68af71f8184ae7e7d54686a56d6"}, + {file = "markupsafe-3.0.3-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:9b79b7a16f7fedff2495d684f2b59b0457c3b493778c9eed31111be64d58279f"}, + {file = "markupsafe-3.0.3-cp313-cp313t-musllinux_1_2_riscv64.whl", hash = "sha256:12c63dfb4a98206f045aa9563db46507995f7ef6d83b2f68eda65c307c6829eb"}, + {file = "markupsafe-3.0.3-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:8f71bc33915be5186016f675cd83a1e08523649b0e33efdb898db577ef5bb009"}, + {file = "markupsafe-3.0.3-cp313-cp313t-win32.whl", hash = "sha256:69c0b73548bc525c8cb9a251cddf1931d1db4d2258e9599c28c07ef3580ef354"}, + {file = "markupsafe-3.0.3-cp313-cp313t-win_amd64.whl", hash = "sha256:1b4b79e8ebf6b55351f0d91fe80f893b4743f104bff22e90697db1590e47a218"}, + {file = "markupsafe-3.0.3-cp313-cp313t-win_arm64.whl", hash = "sha256:ad2cf8aa28b8c020ab2fc8287b0f823d0a7d8630784c31e9ee5edea20f406287"}, + {file = "markupsafe-3.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:eaa9599de571d72e2daf60164784109f19978b327a3910d3e9de8c97b5b70cfe"}, + {file = "markupsafe-3.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:c47a551199eb8eb2121d4f0f15ae0f923d31350ab9280078d1e5f12b249e0026"}, + {file = "markupsafe-3.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f34c41761022dd093b4b6896d4810782ffbabe30f2d443ff5f083e0cbbb8c737"}, + {file = "markupsafe-3.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:457a69a9577064c05a97c41f4e65148652db078a3a509039e64d3467b9e7ef97"}, + {file = "markupsafe-3.0.3-cp314-cp314-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:e8afc3f2ccfa24215f8cb28dcf43f0113ac3c37c2f0f0806d8c70e4228c5cf4d"}, + {file = "markupsafe-3.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:ec15a59cf5af7be74194f7ab02d0f59a62bdcf1a537677ce67a2537c9b87fcda"}, + {file = "markupsafe-3.0.3-cp314-cp314-musllinux_1_2_riscv64.whl", hash = "sha256:0eb9ff8191e8498cca014656ae6b8d61f39da5f95b488805da4bb029cccbfbaf"}, + {file = "markupsafe-3.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:2713baf880df847f2bece4230d4d094280f4e67b1e813eec43b4c0e144a34ffe"}, + {file = "markupsafe-3.0.3-cp314-cp314-win32.whl", hash = "sha256:729586769a26dbceff69f7a7dbbf59ab6572b99d94576a5592625d5b411576b9"}, + {file = "markupsafe-3.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:bdc919ead48f234740ad807933cdf545180bfbe9342c2bb451556db2ed958581"}, + {file = "markupsafe-3.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:5a7d5dc5140555cf21a6fefbdbf8723f06fcd2f63ef108f2854de715e4422cb4"}, + {file = "markupsafe-3.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:1353ef0c1b138e1907ae78e2f6c63ff67501122006b0f9abad68fda5f4ffc6ab"}, + {file = "markupsafe-3.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:1085e7fbddd3be5f89cc898938f42c0b3c711fdcb37d75221de2666af647c175"}, + {file = "markupsafe-3.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:1b52b4fb9df4eb9ae465f8d0c228a00624de2334f216f178a995ccdcf82c4634"}, + {file = "markupsafe-3.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fed51ac40f757d41b7c48425901843666a6677e3e8eb0abcff09e4ba6e664f50"}, + {file = "markupsafe-3.0.3-cp314-cp314t-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:f190daf01f13c72eac4efd5c430a8de82489d9cff23c364c3ea822545032993e"}, + {file = "markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:e56b7d45a839a697b5eb268c82a71bd8c7f6c94d6fd50c3d577fa39a9f1409f5"}, + {file = "markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_riscv64.whl", hash = "sha256:f3e98bb3798ead92273dc0e5fd0f31ade220f59a266ffd8a4f6065e0a3ce0523"}, + {file = "markupsafe-3.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:5678211cb9333a6468fb8d8be0305520aa073f50d17f089b5b4b477ea6e67fdc"}, + {file = "markupsafe-3.0.3-cp314-cp314t-win32.whl", hash = "sha256:915c04ba3851909ce68ccc2b8e2cd691618c4dc4c4232fb7982bca3f41fd8c3d"}, + {file = "markupsafe-3.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4faffd047e07c38848ce017e8725090413cd80cbc23d86e55c587bf979e579c9"}, + {file = "markupsafe-3.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:32001d6a8fc98c8cb5c947787c5d08b0a50663d139f1305bac5885d98d9b40fa"}, + {file = "markupsafe-3.0.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:15d939a21d546304880945ca1ecb8a039db6b4dc49b2c5a400387cdae6a62e26"}, + {file = "markupsafe-3.0.3-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:f71a396b3bf33ecaa1626c255855702aca4d3d9fea5e051b41ac59a9c1c41edc"}, + {file = "markupsafe-3.0.3-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0f4b68347f8c5eab4a13419215bdfd7f8c9b19f2b25520968adfad23eb0ce60c"}, + {file = "markupsafe-3.0.3-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e8fc20152abba6b83724d7ff268c249fa196d8259ff481f3b1476383f8f24e42"}, + {file = "markupsafe-3.0.3-cp39-cp39-manylinux_2_31_riscv64.manylinux_2_39_riscv64.whl", hash = "sha256:949b8d66bc381ee8b007cd945914c721d9aba8e27f71959d750a46f7c282b20b"}, + {file = "markupsafe-3.0.3-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:3537e01efc9d4dccdf77221fb1cb3b8e1a38d5428920e0657ce299b20324d758"}, + {file = "markupsafe-3.0.3-cp39-cp39-musllinux_1_2_riscv64.whl", hash = "sha256:591ae9f2a647529ca990bc681daebdd52c8791ff06c2bfa05b65163e28102ef2"}, + {file = "markupsafe-3.0.3-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:a320721ab5a1aba0a233739394eb907f8c8da5c98c9181d1161e77a0c8e36f2d"}, + {file = "markupsafe-3.0.3-cp39-cp39-win32.whl", hash = "sha256:df2449253ef108a379b8b5d6b43f4b1a8e81a061d6537becd5582fba5f9196d7"}, + {file = "markupsafe-3.0.3-cp39-cp39-win_amd64.whl", hash = "sha256:7c3fb7d25180895632e5d3148dbdc29ea38ccb7fd210aa27acbd1201a1902c6e"}, + {file = "markupsafe-3.0.3-cp39-cp39-win_arm64.whl", hash = "sha256:38664109c14ffc9e7437e86b4dceb442b0096dfe3541d7864d9cbe1da4cf36c8"}, + {file = "markupsafe-3.0.3.tar.gz", hash = "sha256:722695808f4b6457b320fdc131280796bdceb04ab50fe1795cd540799ebe1698"}, +] + +[[package]] +name = "matplotlib" +version = "3.10.8" +description = "Python plotting package" +optional = false +python-versions = ">=3.10" +groups = ["main"] +files = [ + {file = "matplotlib-3.10.8-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:00270d217d6b20d14b584c521f810d60c5c78406dc289859776550df837dcda7"}, + {file = "matplotlib-3.10.8-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:37b3c1cc42aa184b3f738cfa18c1c1d72fd496d85467a6cf7b807936d39aa656"}, + {file = "matplotlib-3.10.8-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:ee40c27c795bda6a5292e9cff9890189d32f7e3a0bf04e0e3c9430c4a00c37df"}, + {file = "matplotlib-3.10.8-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a48f2b74020919552ea25d222d5cc6af9ca3f4eb43a93e14d068457f545c2a17"}, + {file = "matplotlib-3.10.8-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:f254d118d14a7f99d616271d6c3c27922c092dac11112670b157798b89bf4933"}, + {file = "matplotlib-3.10.8-cp310-cp310-win_amd64.whl", hash = "sha256:f9b587c9c7274c1613a30afabf65a272114cd6cdbe67b3406f818c79d7ab2e2a"}, + {file = "matplotlib-3.10.8-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:6be43b667360fef5c754dda5d25a32e6307a03c204f3c0fc5468b78fa87b4160"}, + {file = "matplotlib-3.10.8-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a2b336e2d91a3d7006864e0990c83b216fcdca64b5a6484912902cef87313d78"}, + {file = "matplotlib-3.10.8-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:efb30e3baaea72ce5928e32bab719ab4770099079d66726a62b11b1ef7273be4"}, + {file = "matplotlib-3.10.8-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d56a1efd5bfd61486c8bc968fa18734464556f0fb8e51690f4ac25d85cbbbbc2"}, + {file = "matplotlib-3.10.8-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:238b7ce5717600615c895050239ec955d91f321c209dd110db988500558e70d6"}, + {file = "matplotlib-3.10.8-cp311-cp311-win_amd64.whl", hash = "sha256:18821ace09c763ec93aef5eeff087ee493a24051936d7b9ebcad9662f66501f9"}, + {file = "matplotlib-3.10.8-cp311-cp311-win_arm64.whl", hash = "sha256:bab485bcf8b1c7d2060b4fcb6fc368a9e6f4cd754c9c2fea281f4be21df394a2"}, + {file = "matplotlib-3.10.8-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:64fcc24778ca0404ce0cb7b6b77ae1f4c7231cdd60e6778f999ee05cbd581b9a"}, + {file = "matplotlib-3.10.8-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:b9a5ca4ac220a0cdd1ba6bcba3608547117d30468fefce49bb26f55c1a3d5c58"}, + {file = "matplotlib-3.10.8-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:3ab4aabc72de4ff77b3ec33a6d78a68227bf1123465887f9905ba79184a1cc04"}, + {file = "matplotlib-3.10.8-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:24d50994d8c5816ddc35411e50a86ab05f575e2530c02752e02538122613371f"}, + {file = "matplotlib-3.10.8-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:99eefd13c0dc3b3c1b4d561c1169e65fe47aab7b8158754d7c084088e2329466"}, + {file = "matplotlib-3.10.8-cp312-cp312-win_amd64.whl", hash = "sha256:dd80ecb295460a5d9d260df63c43f4afbdd832d725a531f008dad1664f458adf"}, + {file = "matplotlib-3.10.8-cp312-cp312-win_arm64.whl", hash = "sha256:3c624e43ed56313651bc18a47f838b60d7b8032ed348911c54906b130b20071b"}, + {file = "matplotlib-3.10.8-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:3f2e409836d7f5ac2f1c013110a4d50b9f7edc26328c108915f9075d7d7a91b6"}, + {file = "matplotlib-3.10.8-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:56271f3dac49a88d7fca5060f004d9d22b865f743a12a23b1e937a0be4818ee1"}, + {file = "matplotlib-3.10.8-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:a0a7f52498f72f13d4a25ea70f35f4cb60642b466cbb0a9be951b5bc3f45a486"}, + {file = "matplotlib-3.10.8-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:646d95230efb9ca614a7a594d4fcacde0ac61d25e37dd51710b36477594963ce"}, + {file = "matplotlib-3.10.8-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:f89c151aab2e2e23cb3fe0acad1e8b82841fd265379c4cecd0f3fcb34c15e0f6"}, + {file = "matplotlib-3.10.8-cp313-cp313-win_amd64.whl", hash = "sha256:e8ea3e2d4066083e264e75c829078f9e149fa119d27e19acd503de65e0b13149"}, + {file = "matplotlib-3.10.8-cp313-cp313-win_arm64.whl", hash = "sha256:c108a1d6fa78a50646029cb6d49808ff0fc1330fda87fa6f6250c6b5369b6645"}, + {file = "matplotlib-3.10.8-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:ad3d9833a64cf48cc4300f2b406c3d0f4f4724a91c0bd5640678a6ba7c102077"}, + {file = "matplotlib-3.10.8-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:eb3823f11823deade26ce3b9f40dcb4a213da7a670013929f31d5f5ed1055b22"}, + {file = "matplotlib-3.10.8-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:d9050fee89a89ed57b4fb2c1bfac9a3d0c57a0d55aed95949eedbc42070fea39"}, + {file = "matplotlib-3.10.8-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b44d07310e404ba95f8c25aa5536f154c0a8ec473303535949e52eb71d0a1565"}, + {file = "matplotlib-3.10.8-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:0a33deb84c15ede243aead39f77e990469fff93ad1521163305095b77b72ce4a"}, + {file = "matplotlib-3.10.8-cp313-cp313t-win_amd64.whl", hash = "sha256:3a48a78d2786784cc2413e57397981fb45c79e968d99656706018d6e62e57958"}, + {file = "matplotlib-3.10.8-cp313-cp313t-win_arm64.whl", hash = "sha256:15d30132718972c2c074cd14638c7f4592bd98719e2308bccea40e0538bc0cb5"}, + {file = "matplotlib-3.10.8-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:b53285e65d4fa4c86399979e956235deb900be5baa7fc1218ea67fbfaeaadd6f"}, + {file = "matplotlib-3.10.8-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:32f8dce744be5569bebe789e46727946041199030db8aeb2954d26013a0eb26b"}, + {file = "matplotlib-3.10.8-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4cf267add95b1c88300d96ca837833d4112756045364f5c734a2276038dae27d"}, + {file = "matplotlib-3.10.8-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2cf5bd12cecf46908f286d7838b2abc6c91cda506c0445b8223a7c19a00df008"}, + {file = "matplotlib-3.10.8-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:41703cc95688f2516b480f7f339d8851a6035f18e100ee6a32bc0b8536a12a9c"}, + {file = "matplotlib-3.10.8-cp314-cp314-win_amd64.whl", hash = "sha256:83d282364ea9f3e52363da262ce32a09dfe241e4080dcedda3c0db059d3c1f11"}, + {file = "matplotlib-3.10.8-cp314-cp314-win_arm64.whl", hash = "sha256:2c1998e92cd5999e295a731bcb2911c75f597d937341f3030cc24ef2733d78a8"}, + {file = "matplotlib-3.10.8-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:b5a2b97dbdc7d4f353ebf343744f1d1f1cca8aa8bfddb4262fcf4306c3761d50"}, + {file = "matplotlib-3.10.8-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:3f5c3e4da343bba819f0234186b9004faba952cc420fbc522dc4e103c1985908"}, + {file = "matplotlib-3.10.8-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5f62550b9a30afde8c1c3ae450e5eb547d579dd69b25c2fc7a1c67f934c1717a"}, + {file = "matplotlib-3.10.8-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:495672de149445ec1b772ff2c9ede9b769e3cb4f0d0aa7fa730d7f59e2d4e1c1"}, + {file = "matplotlib-3.10.8-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:595ba4d8fe983b88f0eec8c26a241e16d6376fe1979086232f481f8f3f67494c"}, + {file = "matplotlib-3.10.8-cp314-cp314t-win_amd64.whl", hash = "sha256:25d380fe8b1dc32cf8f0b1b448470a77afb195438bafdf1d858bfb876f3edf7b"}, + {file = "matplotlib-3.10.8-cp314-cp314t-win_arm64.whl", hash = "sha256:113bb52413ea508ce954a02c10ffd0d565f9c3bc7f2eddc27dfe1731e71c7b5f"}, + {file = "matplotlib-3.10.8-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:f97aeb209c3d2511443f8797e3e5a569aebb040d4f8bc79aa3ee78a8fb9e3dd8"}, + {file = "matplotlib-3.10.8-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:fb061f596dad3a0f52b60dc6a5dec4a0c300dec41e058a7efe09256188d170b7"}, + {file = "matplotlib-3.10.8-pp310-pypy310_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:12d90df9183093fcd479f4172ac26b322b1248b15729cb57f42f71f24c7e37a3"}, + {file = "matplotlib-3.10.8-pp311-pypy311_pp73-macosx_10_15_x86_64.whl", hash = "sha256:6da7c2ce169267d0d066adcf63758f0604aa6c3eebf67458930f9d9b79ad1db1"}, + {file = "matplotlib-3.10.8-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:9153c3292705be9f9c64498a8872118540c3f4123d1a1c840172edf262c8be4a"}, + {file = "matplotlib-3.10.8-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:1ae029229a57cd1e8fe542485f27e7ca7b23aa9e8944ddb4985d0bc444f1eca2"}, + {file = "matplotlib-3.10.8.tar.gz", hash = "sha256:2299372c19d56bcd35cf05a2738308758d32b9eaed2371898d8f5bd33f084aa3"}, +] + +[package.dependencies] +contourpy = ">=1.0.1" +cycler = ">=0.10" +fonttools = ">=4.22.0" +kiwisolver = ">=1.3.1" +numpy = ">=1.23" +packaging = ">=20.0" +pillow = ">=8" +pyparsing = ">=3" +python-dateutil = ">=2.7" + +[package.extras] +dev = ["meson-python (>=0.13.1,<0.17.0)", "pybind11 (>=2.13.2,!=2.13.3)", "setuptools (>=64)", "setuptools_scm (>=7)"] + +[[package]] +name = "matplotlib-inline" +version = "0.2.1" +description = "Inline Matplotlib backend for Jupyter" +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "matplotlib_inline-0.2.1-py3-none-any.whl", hash = "sha256:d56ce5156ba6085e00a9d54fead6ed29a9c47e215cd1bba2e976ef39f5710a76"}, + {file = "matplotlib_inline-0.2.1.tar.gz", hash = "sha256:e1ee949c340d771fc39e241ea75683deb94762c8fa5f2927ec57c83c4dffa9fe"}, +] + +[package.dependencies] +traitlets = "*" + +[package.extras] +test = ["flake8", "nbdime", "nbval", "notebook", "pytest"] + +[[package]] +name = "mistune" +version = "3.2.0" +description = "A sane and fast Markdown parser with useful plugins and renderers" +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "mistune-3.2.0-py3-none-any.whl", hash = "sha256:febdc629a3c78616b94393c6580551e0e34cc289987ec6c35ed3f4be42d0eee1"}, + {file = "mistune-3.2.0.tar.gz", hash = "sha256:708487c8a8cdd99c9d90eb3ed4c3ed961246ff78ac82f03418f5183ab70e398a"}, +] + +[[package]] +name = "mpmath" +version = "1.3.0" +description = "Python library for arbitrary-precision floating-point arithmetic" +optional = false +python-versions = "*" +groups = ["main"] +files = [ + {file = "mpmath-1.3.0-py3-none-any.whl", hash = "sha256:a0b2b9fe80bbcd81a6647ff13108738cfb482d481d826cc0e02f5b35e5c88d2c"}, + {file = "mpmath-1.3.0.tar.gz", hash = "sha256:7a28eb2a9774d00c7bc92411c19a89209d5da7c4c9a9e227be8330a23a25b91f"}, +] + +[package.extras] +develop = ["codecov", "pycodestyle", "pytest (>=4.6)", "pytest-cov", "wheel"] +docs = ["sphinx"] +gmpy = ["gmpy2 (>=2.1.0a4) ; platform_python_implementation != \"PyPy\""] +tests = ["pytest (>=4.6)"] + +[[package]] +name = "nbclient" +version = "0.10.4" +description = "A client library for executing notebooks. Formerly nbconvert's ExecutePreprocessor." +optional = false +python-versions = ">=3.10.0" +groups = ["main"] +files = [ + {file = "nbclient-0.10.4-py3-none-any.whl", hash = "sha256:9162df5a7373d70d606527300a95a975a47c137776cd942e52d9c7e29ff83440"}, + {file = "nbclient-0.10.4.tar.gz", hash = "sha256:1e54091b16e6da39e297b0ece3e10f6f29f4ac4e8ee515d29f8a7099bd6553c9"}, +] + +[package.dependencies] +jupyter-client = ">=6.1.12" +jupyter-core = ">=4.12,<5.0.dev0 || >=5.1.dev0" +nbformat = ">=5.1.3" +traitlets = ">=5.4" + +[package.extras] +dev = ["pre-commit"] +docs = ["autodoc-traits", "flaky", "ipykernel (>=6.19.3)", "ipython", "ipywidgets", "mock", "moto", "myst-parser", "nbconvert (>=7.1.0)", "pytest (>=9.0.1,<10)", "pytest-asyncio (>=1.3.0)", "pytest-cov (>=4.0)", "sphinx (>=1.7)", "sphinx-book-theme", "sphinxcontrib-spelling", "testpath", "xmltodict"] +test = ["flaky", "ipykernel (>=6.19.3)", "ipython", "ipywidgets", "nbconvert (>=7.1.0)", "pytest (>=9.0.1,<10)", "pytest-asyncio (>=1.3.0)", "pytest-cov (>=4.0)", "testpath", "xmltodict"] + +[[package]] +name = "nbconvert" +version = "7.16.6" +description = "Converting Jupyter Notebooks (.ipynb files) to other formats. Output formats include asciidoc, html, latex, markdown, pdf, py, rst, script. nbconvert can be used both as a Python library (`import nbconvert`) or as a command line tool (invoked as `jupyter nbconvert ...`)." +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "nbconvert-7.16.6-py3-none-any.whl", hash = "sha256:1375a7b67e0c2883678c48e506dc320febb57685e5ee67faa51b18a90f3a712b"}, + {file = "nbconvert-7.16.6.tar.gz", hash = "sha256:576a7e37c6480da7b8465eefa66c17844243816ce1ccc372633c6b71c3c0f582"}, +] + +[package.dependencies] +beautifulsoup4 = "*" +bleach = {version = "!=5.0.0", extras = ["css"]} +defusedxml = "*" +jinja2 = ">=3.0" +jupyter-core = ">=4.7" +jupyterlab-pygments = "*" +markupsafe = ">=2.0" +mistune = ">=2.0.3,<4" +nbclient = ">=0.5.0" +nbformat = ">=5.7" +packaging = "*" +pandocfilters = ">=1.4.1" +pygments = ">=2.4.1" +traitlets = ">=5.1" + +[package.extras] +all = ["flaky", "ipykernel", "ipython", "ipywidgets (>=7.5)", "myst-parser", "nbsphinx (>=0.2.12)", "playwright", "pydata-sphinx-theme", "pyqtwebengine (>=5.15)", "pytest (>=7)", "sphinx (==5.0.2)", "sphinxcontrib-spelling", "tornado (>=6.1)"] +docs = ["ipykernel", "ipython", "myst-parser", "nbsphinx (>=0.2.12)", "pydata-sphinx-theme", "sphinx (==5.0.2)", "sphinxcontrib-spelling"] +qtpdf = ["pyqtwebengine (>=5.15)"] +qtpng = ["pyqtwebengine (>=5.15)"] +serve = ["tornado (>=6.1)"] +test = ["flaky", "ipykernel", "ipywidgets (>=7.5)", "pytest (>=7)"] +webpdf = ["playwright"] + +[[package]] +name = "nbformat" +version = "5.10.4" +description = "The Jupyter Notebook format" +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "nbformat-5.10.4-py3-none-any.whl", hash = "sha256:3b48d6c8fbca4b299bf3982ea7db1af21580e4fec269ad087b9e81588891200b"}, + {file = "nbformat-5.10.4.tar.gz", hash = "sha256:322168b14f937a5d11362988ecac2a4952d3d8e3a2cbeb2319584631226d5b3a"}, +] + +[package.dependencies] +fastjsonschema = ">=2.15" +jsonschema = ">=2.6" +jupyter-core = ">=4.12,<5.0.dev0 || >=5.1.dev0" +traitlets = ">=5.1" + +[package.extras] +docs = ["myst-parser", "pydata-sphinx-theme", "sphinx", "sphinxcontrib-github-alt", "sphinxcontrib-spelling"] +test = ["pep440", "pre-commit", "pytest", "testpath"] + +[[package]] +name = "nest-asyncio" +version = "1.6.0" +description = "Patch asyncio to allow nested event loops" +optional = false +python-versions = ">=3.5" +groups = ["main"] +files = [ + {file = "nest_asyncio-1.6.0-py3-none-any.whl", hash = "sha256:87af6efd6b5e897c81050477ef65c62e2b2f35d51703cae01aff2905b1852e1c"}, + {file = "nest_asyncio-1.6.0.tar.gz", hash = "sha256:6f172d5449aca15afd6c646851f4e31e02c598d553a667e38cafa997cfec55fe"}, +] + +[[package]] +name = "networkx" +version = "3.6" +description = "Python package for creating and manipulating graphs and networks" +optional = false +python-versions = ">=3.11" +groups = ["main"] +markers = "python_version == \"3.14\"" +files = [ + {file = "networkx-3.6-py3-none-any.whl", hash = "sha256:cdb395b105806062473d3be36458d8f1459a4e4b98e236a66c3a48996e07684f"}, + {file = "networkx-3.6.tar.gz", hash = "sha256:285276002ad1f7f7da0f7b42f004bcba70d381e936559166363707fdad3d72ad"}, +] + +[package.extras] +benchmarking = ["asv", "virtualenv"] +default = ["matplotlib (>=3.8)", "numpy (>=1.25)", "pandas (>=2.0)", "scipy (>=1.11.2)"] +developer = ["mypy (>=1.15)", "pre-commit (>=4.1)"] +doc = ["intersphinx-registry", "myst-nb (>=1.1)", "numpydoc (>=1.8.0)", "pillow (>=10)", "pydata-sphinx-theme (>=0.16)", "sphinx (>=8.0)", "sphinx-gallery (>=0.18)", "texext (>=0.6.7)"] +example = ["cairocffi (>=1.7)", "contextily (>=1.6)", "igraph (>=0.11)", "iplotx (>=0.9.0)", "momepy (>=0.7.2)", "osmnx (>=2.0.0)", "scikit-learn (>=1.5)", "seaborn (>=0.13)"] +extra = ["lxml (>=4.6)", "pydot (>=3.0.1)", "pygraphviz (>=1.14)", "sympy (>=1.10)"] +release = ["build (>=0.10)", "changelist (==0.5)", "twine (>=4.0)", "wheel (>=0.40)"] +test = ["pytest (>=7.2)", "pytest-cov (>=4.0)", "pytest-xdist (>=3.0)"] +test-extras = ["pytest-mpl", "pytest-randomly"] + +[[package]] +name = "networkx" +version = "3.6.1" +description = "Python package for creating and manipulating graphs and networks" +optional = false +python-versions = "!=3.14.1,>=3.11" +groups = ["main"] +markers = "python_version < \"3.14\"" +files = [ + {file = "networkx-3.6.1-py3-none-any.whl", hash = "sha256:d47fbf302e7d9cbbb9e2555a0d267983d2aa476bac30e90dfbe5669bd57f3762"}, + {file = "networkx-3.6.1.tar.gz", hash = "sha256:26b7c357accc0c8cde558ad486283728b65b6a95d85ee1cd66bafab4c8168509"}, +] + +[package.extras] +benchmarking = ["asv", "virtualenv"] +default = ["matplotlib (>=3.8)", "numpy (>=1.25)", "pandas (>=2.0)", "scipy (>=1.11.2)"] +developer = ["mypy (>=1.15)", "pre-commit (>=4.1)"] +doc = ["intersphinx-registry", "myst-nb (>=1.1)", "numpydoc (>=1.8.0)", "pillow (>=10)", "pydata-sphinx-theme (>=0.16)", "sphinx (>=8.0)", "sphinx-gallery (>=0.18)", "texext (>=0.6.7)"] +example = ["cairocffi (>=1.7)", "contextily (>=1.6)", "igraph (>=0.11)", "iplotx (>=0.9.0)", "momepy (>=0.7.2)", "osmnx (>=2.0.0)", "scikit-learn (>=1.5)", "seaborn (>=0.13)"] +extra = ["lxml (>=4.6)", "pydot (>=3.0.1)", "pygraphviz (>=1.14)", "sympy (>=1.10)"] +release = ["build (>=0.10)", "changelist (==0.5)", "twine (>=4.0)", "wheel (>=0.40)"] +test = ["pytest (>=7.2)", "pytest-cov (>=4.0)", "pytest-xdist (>=3.0)"] +test-extras = ["pytest-mpl", "pytest-randomly"] + +[[package]] +name = "notebook" +version = "7.5.1" +description = "Jupyter Notebook - A web-based notebook environment for interactive computing" +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "notebook-7.5.1-py3-none-any.whl", hash = "sha256:f4e2451c19910c33b88709b84537e11f6368c1cdff1aa0c43db701aea535dd44"}, + {file = "notebook-7.5.1.tar.gz", hash = "sha256:b2fb4cef4d47d08c33aecce1c6c6e84be05436fbd791f88fce8df9fbca088b75"}, +] + +[package.dependencies] +jupyter-server = ">=2.4.0,<3" +jupyterlab = ">=4.5.1,<4.6" +jupyterlab-server = ">=2.28.0,<3" +notebook-shim = ">=0.2,<0.3" +tornado = ">=6.2.0" + +[package.extras] +dev = ["hatch", "pre-commit"] +docs = ["myst-parser", "nbsphinx", "pydata-sphinx-theme", "sphinx (>=1.3.6)", "sphinxcontrib-github-alt", "sphinxcontrib-spelling"] +test = ["importlib-resources (>=5.0) ; python_version < \"3.10\"", "ipykernel", "jupyter-server[test] (>=2.4.0,<3)", "jupyterlab-server[test] (>=2.28.0,<3)", "nbval", "pytest (>=7.0)", "pytest-console-scripts", "pytest-timeout", "pytest-tornasync", "requests"] + +[[package]] +name = "notebook-shim" +version = "0.2.4" +description = "A shim layer for notebook traits and config" +optional = false +python-versions = ">=3.7" +groups = ["main"] +files = [ + {file = "notebook_shim-0.2.4-py3-none-any.whl", hash = "sha256:411a5be4e9dc882a074ccbcae671eda64cceb068767e9a3419096986560e1cef"}, + {file = "notebook_shim-0.2.4.tar.gz", hash = "sha256:b4b2cfa1b65d98307ca24361f5b30fe785b53c3fd07b7a47e89acb5e6ac638cb"}, +] + +[package.dependencies] +jupyter-server = ">=1.8,<3" + +[package.extras] +test = ["pytest", "pytest-console-scripts", "pytest-jupyter", "pytest-tornasync"] + +[[package]] +name = "numpy" +version = "2.4.1" +description = "Fundamental package for array computing in Python" +optional = false +python-versions = ">=3.11" +groups = ["main"] +files = [ + {file = "numpy-2.4.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:0cce2a669e3c8ba02ee563c7835f92c153cf02edff1ae05e1823f1dde21b16a5"}, + {file = "numpy-2.4.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:899d2c18024984814ac7e83f8f49d8e8180e2fbe1b2e252f2e7f1d06bea92425"}, + {file = "numpy-2.4.1-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:09aa8a87e45b55a1c2c205d42e2808849ece5c484b2aab11fecabec3841cafba"}, + {file = "numpy-2.4.1-cp311-cp311-macosx_14_0_x86_64.whl", hash = "sha256:edee228f76ee2dab4579fad6f51f6a305de09d444280109e0f75df247ff21501"}, + {file = "numpy-2.4.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a92f227dbcdc9e4c3e193add1a189a9909947d4f8504c576f4a732fd0b54240a"}, + {file = "numpy-2.4.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:538bf4ec353709c765ff75ae616c34d3c3dca1a68312727e8f2676ea644f8509"}, + {file = "numpy-2.4.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:ac08c63cb7779b85e9d5318e6c3518b424bc1f364ac4cb2c6136f12e5ff2dccc"}, + {file = "numpy-2.4.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:4f9c360ecef085e5841c539a9a12b883dff005fbd7ce46722f5e9cef52634d82"}, + {file = "numpy-2.4.1-cp311-cp311-win32.whl", hash = "sha256:0f118ce6b972080ba0758c6087c3617b5ba243d806268623dc34216d69099ba0"}, + {file = "numpy-2.4.1-cp311-cp311-win_amd64.whl", hash = "sha256:18e14c4d09d55eef39a6ab5b08406e84bc6869c1e34eef45564804f90b7e0574"}, + {file = "numpy-2.4.1-cp311-cp311-win_arm64.whl", hash = "sha256:6461de5113088b399d655d45c3897fa188766415d0f568f175ab071c8873bd73"}, + {file = "numpy-2.4.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:d3703409aac693fa82c0aee023a1ae06a6e9d065dba10f5e8e80f642f1e9d0a2"}, + {file = "numpy-2.4.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:7211b95ca365519d3596a1d8688a95874cc94219d417504d9ecb2df99fa7bfa8"}, + {file = "numpy-2.4.1-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:5adf01965456a664fc727ed69cc71848f28d063217c63e1a0e200a118d5eec9a"}, + {file = "numpy-2.4.1-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:26f0bcd9c79a00e339565b303badc74d3ea2bd6d52191eeca5f95936cad107d0"}, + {file = "numpy-2.4.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0093e85df2960d7e4049664b26afc58b03236e967fb942354deef3208857a04c"}, + {file = "numpy-2.4.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:7ad270f438cbdd402c364980317fb6b117d9ec5e226fff5b4148dd9aa9fc6e02"}, + {file = "numpy-2.4.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:297c72b1b98100c2e8f873d5d35fb551fce7040ade83d67dd51d38c8d42a2162"}, + {file = "numpy-2.4.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:cf6470d91d34bf669f61d515499859fa7a4c2f7c36434afb70e82df7217933f9"}, + {file = "numpy-2.4.1-cp312-cp312-win32.whl", hash = "sha256:b6bcf39112e956594b3331316d90c90c90fb961e39696bda97b89462f5f3943f"}, + {file = "numpy-2.4.1-cp312-cp312-win_amd64.whl", hash = "sha256:e1a27bb1b2dee45a2a53f5ca6ff2d1a7f135287883a1689e930d44d1ff296c87"}, + {file = "numpy-2.4.1-cp312-cp312-win_arm64.whl", hash = "sha256:0e6e8f9d9ecf95399982019c01223dc130542960a12edfa8edd1122dfa66a8a8"}, + {file = "numpy-2.4.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:d797454e37570cfd61143b73b8debd623c3c0952959adb817dd310a483d58a1b"}, + {file = "numpy-2.4.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:82c55962006156aeef1629b953fd359064aa47e4d82cfc8e67f0918f7da3344f"}, + {file = "numpy-2.4.1-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:71abbea030f2cfc3092a0ff9f8c8fdefdc5e0bf7d9d9c99663538bb0ecdac0b9"}, + {file = "numpy-2.4.1-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:5b55aa56165b17aaf15520beb9cbd33c9039810e0d9643dd4379e44294c7303e"}, + {file = "numpy-2.4.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c0faba4a331195bfa96f93dd9dfaa10b2c7aa8cda3a02b7fd635e588fe821bf5"}, + {file = "numpy-2.4.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d3e3087f53e2b4428766b54932644d148613c5a595150533ae7f00dab2f319a8"}, + {file = "numpy-2.4.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:49e792ec351315e16da54b543db06ca8a86985ab682602d90c60ef4ff4db2a9c"}, + {file = "numpy-2.4.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:79e9e06c4c2379db47f3f6fc7a8652e7498251789bf8ff5bd43bf478ef314ca2"}, + {file = "numpy-2.4.1-cp313-cp313-win32.whl", hash = "sha256:3d1a100e48cb266090a031397863ff8a30050ceefd798f686ff92c67a486753d"}, + {file = "numpy-2.4.1-cp313-cp313-win_amd64.whl", hash = "sha256:92a0e65272fd60bfa0d9278e0484c2f52fe03b97aedc02b357f33fe752c52ffb"}, + {file = "numpy-2.4.1-cp313-cp313-win_arm64.whl", hash = "sha256:20d4649c773f66cc2fc36f663e091f57c3b7655f936a4c681b4250855d1da8f5"}, + {file = "numpy-2.4.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:f93bc6892fe7b0663e5ffa83b61aab510aacffd58c16e012bb9352d489d90cb7"}, + {file = "numpy-2.4.1-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:178de8f87948163d98a4c9ab5bee4ce6519ca918926ec8df195af582de28544d"}, + {file = "numpy-2.4.1-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:98b35775e03ab7f868908b524fc0a84d38932d8daf7b7e1c3c3a1b6c7a2c9f15"}, + {file = "numpy-2.4.1-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:941c2a93313d030f219f3a71fd3d91a728b82979a5e8034eb2e60d394a2b83f9"}, + {file = "numpy-2.4.1-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:529050522e983e00a6c1c6b67411083630de8b57f65e853d7b03d9281b8694d2"}, + {file = "numpy-2.4.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:2302dc0224c1cbc49bb94f7064f3f923a971bfae45c33870dcbff63a2a550505"}, + {file = "numpy-2.4.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:9171a42fcad32dcf3fa86f0a4faa5e9f8facefdb276f54b8b390d90447cff4e2"}, + {file = "numpy-2.4.1-cp313-cp313t-win32.whl", hash = "sha256:382ad67d99ef49024f11d1ce5dcb5ad8432446e4246a4b014418ba3a1175a1f4"}, + {file = "numpy-2.4.1-cp313-cp313t-win_amd64.whl", hash = "sha256:62fea415f83ad8fdb6c20840578e5fbaf5ddd65e0ec6c3c47eda0f69da172510"}, + {file = "numpy-2.4.1-cp313-cp313t-win_arm64.whl", hash = "sha256:a7870e8c5fc11aef57d6fea4b4085e537a3a60ad2cdd14322ed531fdca68d261"}, + {file = "numpy-2.4.1-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:3869ea1ee1a1edc16c29bbe3a2f2a4e515cc3a44d43903ad41e0cacdbaf733dc"}, + {file = "numpy-2.4.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:e867df947d427cdd7a60e3e271729090b0f0df80f5f10ab7dd436f40811699c3"}, + {file = "numpy-2.4.1-cp314-cp314-macosx_14_0_arm64.whl", hash = "sha256:e3bd2cb07841166420d2fa7146c96ce00cb3410664cbc1a6be028e456c4ee220"}, + {file = "numpy-2.4.1-cp314-cp314-macosx_14_0_x86_64.whl", hash = "sha256:f0a90aba7d521e6954670550e561a4cb925713bd944445dbe9e729b71f6cabee"}, + {file = "numpy-2.4.1-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5d558123217a83b2d1ba316b986e9248a1ed1971ad495963d555ccd75dcb1556"}, + {file = "numpy-2.4.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2f44de05659b67d20499cbc96d49f2650769afcb398b79b324bb6e297bfe3844"}, + {file = "numpy-2.4.1-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:69e7419c9012c4aaf695109564e3387f1259f001b4326dfa55907b098af082d3"}, + {file = "numpy-2.4.1-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:2ffd257026eb1b34352e749d7cc1678b5eeec3e329ad8c9965a797e08ccba205"}, + {file = "numpy-2.4.1-cp314-cp314-win32.whl", hash = "sha256:727c6c3275ddefa0dc078524a85e064c057b4f4e71ca5ca29a19163c607be745"}, + {file = "numpy-2.4.1-cp314-cp314-win_amd64.whl", hash = "sha256:7d5d7999df434a038d75a748275cd6c0094b0ecdb0837342b332a82defc4dc4d"}, + {file = "numpy-2.4.1-cp314-cp314-win_arm64.whl", hash = "sha256:ce9ce141a505053b3c7bce3216071f3bf5c182b8b28930f14cd24d43932cd2df"}, + {file = "numpy-2.4.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:4e53170557d37ae404bf8d542ca5b7c629d6efa1117dac6a83e394142ea0a43f"}, + {file = "numpy-2.4.1-cp314-cp314t-macosx_14_0_arm64.whl", hash = "sha256:a73044b752f5d34d4232f25f18160a1cc418ea4507f5f11e299d8ac36875f8a0"}, + {file = "numpy-2.4.1-cp314-cp314t-macosx_14_0_x86_64.whl", hash = "sha256:fb1461c99de4d040666ca0444057b06541e5642f800b71c56e6ea92d6a853a0c"}, + {file = "numpy-2.4.1-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:423797bdab2eeefbe608d7c1ec7b2b4fd3c58d51460f1ee26c7500a1d9c9ee93"}, + {file = "numpy-2.4.1-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:52b5f61bdb323b566b528899cc7db2ba5d1015bda7ea811a8bcf3c89c331fa42"}, + {file = "numpy-2.4.1-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:42d7dd5fa36d16d52a84f821eb96031836fd405ee6955dd732f2023724d0aa01"}, + {file = "numpy-2.4.1-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:e7b6b5e28bbd47b7532698e5db2fe1db693d84b58c254e4389d99a27bb9b8f6b"}, + {file = "numpy-2.4.1-cp314-cp314t-win32.whl", hash = "sha256:5de60946f14ebe15e713a6f22850c2372fa72f4ff9a432ab44aa90edcadaa65a"}, + {file = "numpy-2.4.1-cp314-cp314t-win_amd64.whl", hash = "sha256:8f085da926c0d491ffff3096f91078cc97ea67e7e6b65e490bc8dcda65663be2"}, + {file = "numpy-2.4.1-cp314-cp314t-win_arm64.whl", hash = "sha256:6436cffb4f2bf26c974344439439c95e152c9a527013f26b3577be6c2ca64295"}, + {file = "numpy-2.4.1-pp311-pypy311_pp73-macosx_10_15_x86_64.whl", hash = "sha256:8ad35f20be147a204e28b6a0575fbf3540c5e5f802634d4258d55b1ff5facce1"}, + {file = "numpy-2.4.1-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:8097529164c0f3e32bb89412a0905d9100bf434d9692d9fc275e18dcf53c9344"}, + {file = "numpy-2.4.1-pp311-pypy311_pp73-macosx_14_0_arm64.whl", hash = "sha256:ea66d2b41ca4a1630aae5507ee0a71647d3124d1741980138aa8f28f44dac36e"}, + {file = "numpy-2.4.1-pp311-pypy311_pp73-macosx_14_0_x86_64.whl", hash = "sha256:d3f8f0df9f4b8be57b3bf74a1d087fec68f927a2fab68231fdb442bf2c12e426"}, + {file = "numpy-2.4.1-pp311-pypy311_pp73-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:2023ef86243690c2791fd6353e5b4848eedaa88ca8a2d129f462049f6d484696"}, + {file = "numpy-2.4.1-pp311-pypy311_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8361ea4220d763e54cff2fbe7d8c93526b744f7cd9ddab47afeff7e14e8503be"}, + {file = "numpy-2.4.1-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:4f1b68ff47680c2925f8063402a693ede215f0257f02596b1318ecdfb1d79e33"}, + {file = "numpy-2.4.1.tar.gz", hash = "sha256:a1ceafc5042451a858231588a104093474c6a5c57dcc724841f5c888d237d690"}, +] + +[[package]] +name = "nvidia-cublas-cu12" +version = "12.8.4.1" +description = "CUBLAS native runtime libraries" +optional = false +python-versions = ">=3" +groups = ["main"] +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\"" +files = [ + {file = "nvidia_cublas_cu12-12.8.4.1-py3-none-manylinux_2_27_aarch64.whl", hash = "sha256:b86f6dd8935884615a0683b663891d43781b819ac4f2ba2b0c9604676af346d0"}, + {file = "nvidia_cublas_cu12-12.8.4.1-py3-none-manylinux_2_27_x86_64.whl", hash = "sha256:8ac4e771d5a348c551b2a426eda6193c19aa630236b418086020df5ba9667142"}, + {file = "nvidia_cublas_cu12-12.8.4.1-py3-none-win_amd64.whl", hash = "sha256:47e9b82132fa8d2b4944e708049229601448aaad7e6f296f630f2d1a32de35af"}, +] + +[[package]] +name = "nvidia-cuda-cupti-cu12" +version = "12.8.90" +description = "CUDA profiling tools runtime libs." +optional = false +python-versions = ">=3" +groups = ["main"] +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\"" +files = [ + {file = "nvidia_cuda_cupti_cu12-12.8.90-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:4412396548808ddfed3f17a467b104ba7751e6b58678a4b840675c56d21cf7ed"}, + {file = "nvidia_cuda_cupti_cu12-12.8.90-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:ea0cb07ebda26bb9b29ba82cda34849e73c166c18162d3913575b0c9db9a6182"}, + {file = "nvidia_cuda_cupti_cu12-12.8.90-py3-none-win_amd64.whl", hash = "sha256:bb479dcdf7e6d4f8b0b01b115260399bf34154a1a2e9fe11c85c517d87efd98e"}, +] + +[[package]] +name = "nvidia-cuda-nvrtc-cu12" +version = "12.8.93" +description = "NVRTC native runtime libraries" +optional = false +python-versions = ">=3" +groups = ["main"] +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\"" +files = [ + {file = "nvidia_cuda_nvrtc_cu12-12.8.93-py3-none-manylinux2010_x86_64.manylinux_2_12_x86_64.whl", hash = "sha256:a7756528852ef889772a84c6cd89d41dfa74667e24cca16bb31f8f061e3e9994"}, + {file = "nvidia_cuda_nvrtc_cu12-12.8.93-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:fc1fec1e1637854b4c0a65fb9a8346b51dd9ee69e61ebaccc82058441f15bce8"}, + {file = "nvidia_cuda_nvrtc_cu12-12.8.93-py3-none-win_amd64.whl", hash = "sha256:7a4b6b2904850fe78e0bd179c4b655c404d4bb799ef03ddc60804247099ae909"}, +] + +[[package]] +name = "nvidia-cuda-runtime-cu12" +version = "12.8.90" +description = "CUDA Runtime native Libraries" +optional = false +python-versions = ">=3" +groups = ["main"] +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\"" +files = [ + {file = "nvidia_cuda_runtime_cu12-12.8.90-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:52bf7bbee900262ffefe5e9d5a2a69a30d97e2bc5bb6cc866688caa976966e3d"}, + {file = "nvidia_cuda_runtime_cu12-12.8.90-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:adade8dcbd0edf427b7204d480d6066d33902cab2a4707dcfc48a2d0fd44ab90"}, + {file = "nvidia_cuda_runtime_cu12-12.8.90-py3-none-win_amd64.whl", hash = "sha256:c0c6027f01505bfed6c3b21ec546f69c687689aad5f1a377554bc6ca4aa993a8"}, +] + +[[package]] +name = "nvidia-cudnn-cu12" +version = "9.10.2.21" +description = "cuDNN runtime libraries" +optional = false +python-versions = ">=3" +groups = ["main"] +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\"" +files = [ + {file = "nvidia_cudnn_cu12-9.10.2.21-py3-none-manylinux_2_27_aarch64.whl", hash = "sha256:c9132cc3f8958447b4910a1720036d9eff5928cc3179b0a51fb6d167c6cc87d8"}, + {file = "nvidia_cudnn_cu12-9.10.2.21-py3-none-manylinux_2_27_x86_64.whl", hash = "sha256:949452be657fa16687d0930933f032835951ef0892b37d2d53824d1a84dc97a8"}, + {file = "nvidia_cudnn_cu12-9.10.2.21-py3-none-win_amd64.whl", hash = "sha256:c6288de7d63e6cf62988f0923f96dc339cea362decb1bf5b3141883392a7d65e"}, +] + +[package.dependencies] +nvidia-cublas-cu12 = "*" + +[[package]] +name = "nvidia-cufft-cu12" +version = "11.3.3.83" +description = "CUFFT native runtime libraries" +optional = false +python-versions = ">=3" +groups = ["main"] +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\"" +files = [ + {file = "nvidia_cufft_cu12-11.3.3.83-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:848ef7224d6305cdb2a4df928759dca7b1201874787083b6e7550dd6765ce69a"}, + {file = "nvidia_cufft_cu12-11.3.3.83-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:4d2dd21ec0b88cf61b62e6b43564355e5222e4a3fb394cac0db101f2dd0d4f74"}, + {file = "nvidia_cufft_cu12-11.3.3.83-py3-none-win_amd64.whl", hash = "sha256:7a64a98ef2a7c47f905aaf8931b69a3a43f27c55530c698bb2ed7c75c0b42cb7"}, +] + +[package.dependencies] +nvidia-nvjitlink-cu12 = "*" + +[[package]] +name = "nvidia-cufile-cu12" +version = "1.13.1.3" +description = "cuFile GPUDirect libraries" +optional = false +python-versions = ">=3" +groups = ["main"] +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\"" +files = [ + {file = "nvidia_cufile_cu12-1.13.1.3-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:1d069003be650e131b21c932ec3d8969c1715379251f8d23a1860554b1cb24fc"}, + {file = "nvidia_cufile_cu12-1.13.1.3-py3-none-manylinux_2_27_aarch64.whl", hash = "sha256:4beb6d4cce47c1a0f1013d72e02b0994730359e17801d395bdcbf20cfb3bb00a"}, +] + +[[package]] +name = "nvidia-curand-cu12" +version = "10.3.9.90" +description = "CURAND native runtime libraries" +optional = false +python-versions = ">=3" +groups = ["main"] +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\"" +files = [ + {file = "nvidia_curand_cu12-10.3.9.90-py3-none-manylinux_2_27_aarch64.whl", hash = "sha256:dfab99248034673b779bc6decafdc3404a8a6f502462201f2f31f11354204acd"}, + {file = "nvidia_curand_cu12-10.3.9.90-py3-none-manylinux_2_27_x86_64.whl", hash = "sha256:b32331d4f4df5d6eefa0554c565b626c7216f87a06a4f56fab27c3b68a830ec9"}, + {file = "nvidia_curand_cu12-10.3.9.90-py3-none-win_amd64.whl", hash = "sha256:f149a8ca457277da854f89cf282d6ef43176861926c7ac85b2a0fbd237c587ec"}, +] + +[[package]] +name = "nvidia-cusolver-cu12" +version = "11.7.3.90" +description = "CUDA solver native runtime libraries" +optional = false +python-versions = ">=3" +groups = ["main"] +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\"" +files = [ + {file = "nvidia_cusolver_cu12-11.7.3.90-py3-none-manylinux_2_27_aarch64.whl", hash = "sha256:db9ed69dbef9715071232caa9b69c52ac7de3a95773c2db65bdba85916e4e5c0"}, + {file = "nvidia_cusolver_cu12-11.7.3.90-py3-none-manylinux_2_27_x86_64.whl", hash = "sha256:4376c11ad263152bd50ea295c05370360776f8c3427b30991df774f9fb26c450"}, + {file = "nvidia_cusolver_cu12-11.7.3.90-py3-none-win_amd64.whl", hash = "sha256:4a550db115fcabc4d495eb7d39ac8b58d4ab5d8e63274d3754df1c0ad6a22d34"}, +] + +[package.dependencies] +nvidia-cublas-cu12 = "*" +nvidia-cusparse-cu12 = "*" +nvidia-nvjitlink-cu12 = "*" + +[[package]] +name = "nvidia-cusparse-cu12" +version = "12.5.8.93" +description = "CUSPARSE native runtime libraries" +optional = false +python-versions = ">=3" +groups = ["main"] +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\"" +files = [ + {file = "nvidia_cusparse_cu12-12.5.8.93-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:9b6c161cb130be1a07a27ea6923df8141f3c295852f4b260c65f18f3e0a091dc"}, + {file = "nvidia_cusparse_cu12-12.5.8.93-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:1ec05d76bbbd8b61b06a80e1eaf8cf4959c3d4ce8e711b65ebd0443bb0ebb13b"}, + {file = "nvidia_cusparse_cu12-12.5.8.93-py3-none-win_amd64.whl", hash = "sha256:9a33604331cb2cac199f2e7f5104dfbb8a5a898c367a53dfda9ff2acb6b6b4dd"}, +] + +[package.dependencies] +nvidia-nvjitlink-cu12 = "*" + +[[package]] +name = "nvidia-cusparselt-cu12" +version = "0.7.1" +description = "NVIDIA cuSPARSELt" +optional = false +python-versions = "*" +groups = ["main"] +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\"" +files = [ + {file = "nvidia_cusparselt_cu12-0.7.1-py3-none-manylinux2014_aarch64.whl", hash = "sha256:8878dce784d0fac90131b6817b607e803c36e629ba34dc5b433471382196b6a5"}, + {file = "nvidia_cusparselt_cu12-0.7.1-py3-none-manylinux2014_x86_64.whl", hash = "sha256:f1bb701d6b930d5a7cea44c19ceb973311500847f81b634d802b7b539dc55623"}, + {file = "nvidia_cusparselt_cu12-0.7.1-py3-none-win_amd64.whl", hash = "sha256:f67fbb5831940ec829c9117b7f33807db9f9678dc2a617fbe781cac17b4e1075"}, +] + +[[package]] +name = "nvidia-nccl-cu12" +version = "2.27.5" +description = "NVIDIA Collective Communication Library (NCCL) Runtime" +optional = false +python-versions = ">=3" +groups = ["main"] +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\"" +files = [ + {file = "nvidia_nccl_cu12-2.27.5-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:31432ad4d1fb1004eb0c56203dc9bc2178a1ba69d1d9e02d64a6938ab5e40e7a"}, + {file = "nvidia_nccl_cu12-2.27.5-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:ad730cf15cb5d25fe849c6e6ca9eb5b76db16a80f13f425ac68d8e2e55624457"}, +] + +[[package]] +name = "nvidia-nvjitlink-cu12" +version = "12.8.93" +description = "Nvidia JIT LTO Library" +optional = false +python-versions = ">=3" +groups = ["main"] +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\"" +files = [ + {file = "nvidia_nvjitlink_cu12-12.8.93-py3-none-manylinux2010_x86_64.manylinux_2_12_x86_64.whl", hash = "sha256:81ff63371a7ebd6e6451970684f916be2eab07321b73c9d244dc2b4da7f73b88"}, + {file = "nvidia_nvjitlink_cu12-12.8.93-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:adccd7161ace7261e01bb91e44e88da350895c270d23f744f0820c818b7229e7"}, + {file = "nvidia_nvjitlink_cu12-12.8.93-py3-none-win_amd64.whl", hash = "sha256:bd93fbeeee850917903583587f4fc3a4eafa022e34572251368238ab5e6bd67f"}, +] + +[[package]] +name = "nvidia-nvshmem-cu12" +version = "3.3.20" +description = "NVSHMEM creates a global address space that provides efficient and scalable communication for NVIDIA GPU clusters." +optional = false +python-versions = ">=3" +groups = ["main"] +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\"" +files = [ + {file = "nvidia_nvshmem_cu12-3.3.20-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:0b0b960da3842212758e4fa4696b94f129090b30e5122fea3c5345916545cff0"}, + {file = "nvidia_nvshmem_cu12-3.3.20-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:d00f26d3f9b2e3c3065be895e3059d6479ea5c638a3f38c9fec49b1b9dd7c1e5"}, +] + +[[package]] +name = "nvidia-nvtx-cu12" +version = "12.8.90" +description = "NVIDIA Tools Extension" +optional = false +python-versions = ">=3" +groups = ["main"] +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\"" +files = [ + {file = "nvidia_nvtx_cu12-12.8.90-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:d7ad891da111ebafbf7e015d34879f7112832fc239ff0d7d776b6cb685274615"}, + {file = "nvidia_nvtx_cu12-12.8.90-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:5b17e2001cc0d751a5bc2c6ec6d26ad95913324a4adb86788c944f8ce9ba441f"}, + {file = "nvidia_nvtx_cu12-12.8.90-py3-none-win_amd64.whl", hash = "sha256:619c8304aedc69f02ea82dd244541a83c3d9d40993381b3b590f1adaed3db41e"}, +] + +[[package]] +name = "overrides" +version = "7.7.0" +description = "A decorator to automatically detect mismatch when overriding a method." +optional = false +python-versions = ">=3.6" +groups = ["main"] +markers = "python_version == \"3.11\"" +files = [ + {file = "overrides-7.7.0-py3-none-any.whl", hash = "sha256:c7ed9d062f78b8e4c1a7b70bd8796b35ead4d9f510227ef9c5dc7626c60d7e49"}, + {file = "overrides-7.7.0.tar.gz", hash = "sha256:55158fa3d93b98cc75299b1e67078ad9003ca27945c76162c1c0766d6f91820a"}, +] + +[[package]] +name = "packaging" +version = "25.0" +description = "Core utilities for Python packages" +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "packaging-25.0-py3-none-any.whl", hash = "sha256:29572ef2b1f17581046b3a2227d5c611fb25ec70ca1ba8554b24b0e69331a484"}, + {file = "packaging-25.0.tar.gz", hash = "sha256:d443872c98d677bf60f6a1f2f8c1cb748e8fe762d2bf9d3148b5599295b0fc4f"}, +] + +[[package]] +name = "pandas" +version = "2.3.3" +description = "Powerful data structures for data analysis, time series, and statistics" +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "pandas-2.3.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:376c6446ae31770764215a6c937f72d917f214b43560603cd60da6408f183b6c"}, + {file = "pandas-2.3.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:e19d192383eab2f4ceb30b412b22ea30690c9e618f78870357ae1d682912015a"}, + {file = "pandas-2.3.3-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5caf26f64126b6c7aec964f74266f435afef1c1b13da3b0636c7518a1fa3e2b1"}, + {file = "pandas-2.3.3-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:dd7478f1463441ae4ca7308a70e90b33470fa593429f9d4c578dd00d1fa78838"}, + {file = "pandas-2.3.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:4793891684806ae50d1288c9bae9330293ab4e083ccd1c5e383c34549c6e4250"}, + {file = "pandas-2.3.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:28083c648d9a99a5dd035ec125d42439c6c1c525098c58af0fc38dd1a7a1b3d4"}, + {file = "pandas-2.3.3-cp310-cp310-win_amd64.whl", hash = "sha256:503cf027cf9940d2ceaa1a93cfb5f8c8c7e6e90720a2850378f0b3f3b1e06826"}, + {file = "pandas-2.3.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:602b8615ebcc4a0c1751e71840428ddebeb142ec02c786e8ad6b1ce3c8dec523"}, + {file = "pandas-2.3.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:8fe25fc7b623b0ef6b5009149627e34d2a4657e880948ec3c840e9402e5c1b45"}, + {file = "pandas-2.3.3-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b468d3dad6ff947df92dcb32ede5b7bd41a9b3cceef0a30ed925f6d01fb8fa66"}, + {file = "pandas-2.3.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b98560e98cb334799c0b07ca7967ac361a47326e9b4e5a7dfb5ab2b1c9d35a1b"}, + {file = "pandas-2.3.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:1d37b5848ba49824e5c30bedb9c830ab9b7751fd049bc7914533e01c65f79791"}, + {file = "pandas-2.3.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:db4301b2d1f926ae677a751eb2bd0e8c5f5319c9cb3f88b0becbbb0b07b34151"}, + {file = "pandas-2.3.3-cp311-cp311-win_amd64.whl", hash = "sha256:f086f6fe114e19d92014a1966f43a3e62285109afe874f067f5abbdcbb10e59c"}, + {file = "pandas-2.3.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:6d21f6d74eb1725c2efaa71a2bfc661a0689579b58e9c0ca58a739ff0b002b53"}, + {file = "pandas-2.3.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:3fd2f887589c7aa868e02632612ba39acb0b8948faf5cc58f0850e165bd46f35"}, + {file = "pandas-2.3.3-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ecaf1e12bdc03c86ad4a7ea848d66c685cb6851d807a26aa245ca3d2017a1908"}, + {file = "pandas-2.3.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b3d11d2fda7eb164ef27ffc14b4fcab16a80e1ce67e9f57e19ec0afaf715ba89"}, + {file = "pandas-2.3.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:a68e15f780eddf2b07d242e17a04aa187a7ee12b40b930bfdd78070556550e98"}, + {file = "pandas-2.3.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:371a4ab48e950033bcf52b6527eccb564f52dc826c02afd9a1bc0ab731bba084"}, + {file = "pandas-2.3.3-cp312-cp312-win_amd64.whl", hash = "sha256:a16dcec078a01eeef8ee61bf64074b4e524a2a3f4b3be9326420cabe59c4778b"}, + {file = "pandas-2.3.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:56851a737e3470de7fa88e6131f41281ed440d29a9268dcbf0002da5ac366713"}, + {file = "pandas-2.3.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:bdcd9d1167f4885211e401b3036c0c8d9e274eee67ea8d0758a256d60704cfe8"}, + {file = "pandas-2.3.3-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e32e7cc9af0f1cc15548288a51a3b681cc2a219faa838e995f7dc53dbab1062d"}, + {file = "pandas-2.3.3-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:318d77e0e42a628c04dc56bcef4b40de67918f7041c2b061af1da41dcff670ac"}, + {file = "pandas-2.3.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:4e0a175408804d566144e170d0476b15d78458795bb18f1304fb94160cabf40c"}, + {file = "pandas-2.3.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:93c2d9ab0fc11822b5eece72ec9587e172f63cff87c00b062f6e37448ced4493"}, + {file = "pandas-2.3.3-cp313-cp313-win_amd64.whl", hash = "sha256:f8bfc0e12dc78f777f323f55c58649591b2cd0c43534e8355c51d3fede5f4dee"}, + {file = "pandas-2.3.3-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:75ea25f9529fdec2d2e93a42c523962261e567d250b0013b16210e1d40d7c2e5"}, + {file = "pandas-2.3.3-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:74ecdf1d301e812db96a465a525952f4dde225fdb6d8e5a521d47e1f42041e21"}, + {file = "pandas-2.3.3-cp313-cp313t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6435cb949cb34ec11cc9860246ccb2fdc9ecd742c12d3304989017d53f039a78"}, + {file = "pandas-2.3.3-cp313-cp313t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:900f47d8f20860de523a1ac881c4c36d65efcb2eb850e6948140fa781736e110"}, + {file = "pandas-2.3.3-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:a45c765238e2ed7d7c608fc5bc4a6f88b642f2f01e70c0c23d2224dd21829d86"}, + {file = "pandas-2.3.3-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:c4fc4c21971a1a9f4bdb4c73978c7f7256caa3e62b323f70d6cb80db583350bc"}, + {file = "pandas-2.3.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:ee15f284898e7b246df8087fc82b87b01686f98ee67d85a17b7ab44143a3a9a0"}, + {file = "pandas-2.3.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1611aedd912e1ff81ff41c745822980c49ce4a7907537be8692c8dbc31924593"}, + {file = "pandas-2.3.3-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6d2cefc361461662ac48810cb14365a365ce864afe85ef1f447ff5a1e99ea81c"}, + {file = "pandas-2.3.3-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ee67acbbf05014ea6c763beb097e03cd629961c8a632075eeb34247120abcb4b"}, + {file = "pandas-2.3.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c46467899aaa4da076d5abc11084634e2d197e9460643dd455ac3db5856b24d6"}, + {file = "pandas-2.3.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:6253c72c6a1d990a410bc7de641d34053364ef8bcd3126f7e7450125887dffe3"}, + {file = "pandas-2.3.3-cp314-cp314-win_amd64.whl", hash = "sha256:1b07204a219b3b7350abaae088f451860223a52cfb8a6c53358e7948735158e5"}, + {file = "pandas-2.3.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:2462b1a365b6109d275250baaae7b760fd25c726aaca0054649286bcfbb3e8ec"}, + {file = "pandas-2.3.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:0242fe9a49aa8b4d78a4fa03acb397a58833ef6199e9aa40a95f027bb3a1b6e7"}, + {file = "pandas-2.3.3-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a21d830e78df0a515db2b3d2f5570610f5e6bd2e27749770e8bb7b524b89b450"}, + {file = "pandas-2.3.3-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2e3ebdb170b5ef78f19bfb71b0dc5dc58775032361fa188e814959b74d726dd5"}, + {file = "pandas-2.3.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:d051c0e065b94b7a3cea50eb1ec32e912cd96dba41647eb24104b6c6c14c5788"}, + {file = "pandas-2.3.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:3869faf4bd07b3b66a9f462417d0ca3a9df29a9f6abd5d0d0dbab15dac7abe87"}, + {file = "pandas-2.3.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:c503ba5216814e295f40711470446bc3fd00f0faea8a086cbc688808e26f92a2"}, + {file = "pandas-2.3.3-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:a637c5cdfa04b6d6e2ecedcb81fc52ffb0fd78ce2ebccc9ea964df9f658de8c8"}, + {file = "pandas-2.3.3-cp39-cp39-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:854d00d556406bffe66a4c0802f334c9ad5a96b4f1f868adf036a21b11ef13ff"}, + {file = "pandas-2.3.3-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bf1f8a81d04ca90e32a0aceb819d34dbd378a98bf923b6398b9a3ec0bf44de29"}, + {file = "pandas-2.3.3-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:23ebd657a4d38268c7dfbdf089fbc31ea709d82e4923c5ffd4fbd5747133ce73"}, + {file = "pandas-2.3.3-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:5554c929ccc317d41a5e3d1234f3be588248e61f08a74dd17c9eabb535777dc9"}, + {file = "pandas-2.3.3-cp39-cp39-win_amd64.whl", hash = "sha256:d3e28b3e83862ccf4d85ff19cf8c20b2ae7e503881711ff2d534dc8f761131aa"}, + {file = "pandas-2.3.3.tar.gz", hash = "sha256:e05e1af93b977f7eafa636d043f9f94c7ee3ac81af99c13508215942e64c993b"}, +] + +[package.dependencies] +numpy = [ + {version = ">=1.23.2", markers = "python_version == \"3.11\""}, + {version = ">=1.26.0", markers = "python_version >= \"3.12\""}, +] +python-dateutil = ">=2.8.2" +pytz = ">=2020.1" +tzdata = ">=2022.7" + +[package.extras] +all = ["PyQt5 (>=5.15.9)", "SQLAlchemy (>=2.0.0)", "adbc-driver-postgresql (>=0.8.0)", "adbc-driver-sqlite (>=0.8.0)", "beautifulsoup4 (>=4.11.2)", "bottleneck (>=1.3.6)", "dataframe-api-compat (>=0.1.7)", "fastparquet (>=2022.12.0)", "fsspec (>=2022.11.0)", "gcsfs (>=2022.11.0)", "html5lib (>=1.1)", "hypothesis (>=6.46.1)", "jinja2 (>=3.1.2)", "lxml (>=4.9.2)", "matplotlib (>=3.6.3)", "numba (>=0.56.4)", "numexpr (>=2.8.4)", "odfpy (>=1.4.1)", "openpyxl (>=3.1.0)", "pandas-gbq (>=0.19.0)", "psycopg2 (>=2.9.6)", "pyarrow (>=10.0.1)", "pymysql (>=1.0.2)", "pyreadstat (>=1.2.0)", "pytest (>=7.3.2)", "pytest-xdist (>=2.2.0)", "python-calamine (>=0.1.7)", "pyxlsb (>=1.0.10)", "qtpy (>=2.3.0)", "s3fs (>=2022.11.0)", "scipy (>=1.10.0)", "tables (>=3.8.0)", "tabulate (>=0.9.0)", "xarray (>=2022.12.0)", "xlrd (>=2.0.1)", "xlsxwriter (>=3.0.5)", "zstandard (>=0.19.0)"] +aws = ["s3fs (>=2022.11.0)"] +clipboard = ["PyQt5 (>=5.15.9)", "qtpy (>=2.3.0)"] +compression = ["zstandard (>=0.19.0)"] +computation = ["scipy (>=1.10.0)", "xarray (>=2022.12.0)"] +consortium-standard = ["dataframe-api-compat (>=0.1.7)"] +excel = ["odfpy (>=1.4.1)", "openpyxl (>=3.1.0)", "python-calamine (>=0.1.7)", "pyxlsb (>=1.0.10)", "xlrd (>=2.0.1)", "xlsxwriter (>=3.0.5)"] +feather = ["pyarrow (>=10.0.1)"] +fss = ["fsspec (>=2022.11.0)"] +gcp = ["gcsfs (>=2022.11.0)", "pandas-gbq (>=0.19.0)"] +hdf5 = ["tables (>=3.8.0)"] +html = ["beautifulsoup4 (>=4.11.2)", "html5lib (>=1.1)", "lxml (>=4.9.2)"] +mysql = ["SQLAlchemy (>=2.0.0)", "pymysql (>=1.0.2)"] +output-formatting = ["jinja2 (>=3.1.2)", "tabulate (>=0.9.0)"] +parquet = ["pyarrow (>=10.0.1)"] +performance = ["bottleneck (>=1.3.6)", "numba (>=0.56.4)", "numexpr (>=2.8.4)"] +plot = ["matplotlib (>=3.6.3)"] +postgresql = ["SQLAlchemy (>=2.0.0)", "adbc-driver-postgresql (>=0.8.0)", "psycopg2 (>=2.9.6)"] +pyarrow = ["pyarrow (>=10.0.1)"] +spss = ["pyreadstat (>=1.2.0)"] +sql-other = ["SQLAlchemy (>=2.0.0)", "adbc-driver-postgresql (>=0.8.0)", "adbc-driver-sqlite (>=0.8.0)"] +test = ["hypothesis (>=6.46.1)", "pytest (>=7.3.2)", "pytest-xdist (>=2.2.0)"] +xml = ["lxml (>=4.9.2)"] + +[[package]] +name = "pandocfilters" +version = "1.5.1" +description = "Utilities for writing pandoc filters in python" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +groups = ["main"] +files = [ + {file = "pandocfilters-1.5.1-py2.py3-none-any.whl", hash = "sha256:93be382804a9cdb0a7267585f157e5d1731bbe5545a85b268d6f5fe6232de2bc"}, + {file = "pandocfilters-1.5.1.tar.gz", hash = "sha256:002b4a555ee4ebc03f8b66307e287fa492e4a77b4ea14d3f934328297bb4939e"}, +] + +[[package]] +name = "parso" +version = "0.8.5" +description = "A Python Parser" +optional = false +python-versions = ">=3.6" +groups = ["main"] +files = [ + {file = "parso-0.8.5-py2.py3-none-any.whl", hash = "sha256:646204b5ee239c396d040b90f9e272e9a8017c630092bf59980beb62fd033887"}, + {file = "parso-0.8.5.tar.gz", hash = "sha256:034d7354a9a018bdce352f48b2a8a450f05e9d6ee85db84764e9b6bd96dafe5a"}, +] + +[package.extras] +qa = ["flake8 (==5.0.4)", "mypy (==0.971)", "types-setuptools (==67.2.0.1)"] +testing = ["docopt", "pytest"] + +[[package]] +name = "pexpect" +version = "4.9.0" +description = "Pexpect allows easy control of interactive console applications." +optional = false +python-versions = "*" +groups = ["main"] +markers = "sys_platform != \"win32\" and sys_platform != \"emscripten\"" +files = [ + {file = "pexpect-4.9.0-py2.py3-none-any.whl", hash = "sha256:7236d1e080e4936be2dc3e326cec0af72acf9212a7e1d060210e70a47e253523"}, + {file = "pexpect-4.9.0.tar.gz", hash = "sha256:ee7d41123f3c9911050ea2c2dac107568dc43b2d3b0c7557a33212c398ead30f"}, +] + +[package.dependencies] +ptyprocess = ">=0.5" + +[[package]] +name = "pillow" +version = "12.1.0" +description = "Python Imaging Library (fork)" +optional = false +python-versions = ">=3.10" +groups = ["main"] +files = [ + {file = "pillow-12.1.0-cp310-cp310-macosx_10_10_x86_64.whl", hash = "sha256:fb125d860738a09d363a88daa0f59c4533529a90e564785e20fe875b200b6dbd"}, + {file = "pillow-12.1.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:cad302dc10fac357d3467a74a9561c90609768a6f73a1923b0fd851b6486f8b0"}, + {file = "pillow-12.1.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:a40905599d8079e09f25027423aed94f2823adaf2868940de991e53a449e14a8"}, + {file = "pillow-12.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:92a7fe4225365c5e3a8e598982269c6d6698d3e783b3b1ae979e7819f9cd55c1"}, + {file = "pillow-12.1.0-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f10c98f49227ed8383d28174ee95155a675c4ed7f85e2e573b04414f7e371bda"}, + {file = "pillow-12.1.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8637e29d13f478bc4f153d8daa9ffb16455f0a6cb287da1b432fdad2bfbd66c7"}, + {file = "pillow-12.1.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:21e686a21078b0f9cb8c8a961d99e6a4ddb88e0fc5ea6e130172ddddc2e5221a"}, + {file = "pillow-12.1.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:2415373395a831f53933c23ce051021e79c8cd7979822d8cc478547a3f4da8ef"}, + {file = "pillow-12.1.0-cp310-cp310-win32.whl", hash = "sha256:e75d3dba8fc1ddfec0cd752108f93b83b4f8d6ab40e524a95d35f016b9683b09"}, + {file = "pillow-12.1.0-cp310-cp310-win_amd64.whl", hash = "sha256:64efdf00c09e31efd754448a383ea241f55a994fd079866b92d2bbff598aad91"}, + {file = "pillow-12.1.0-cp310-cp310-win_arm64.whl", hash = "sha256:f188028b5af6b8fb2e9a76ac0f841a575bd1bd396e46ef0840d9b88a48fdbcea"}, + {file = "pillow-12.1.0-cp311-cp311-macosx_10_10_x86_64.whl", hash = "sha256:a83e0850cb8f5ac975291ebfc4170ba481f41a28065277f7f735c202cd8e0af3"}, + {file = "pillow-12.1.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:b6e53e82ec2db0717eabb276aa56cf4e500c9a7cec2c2e189b55c24f65a3e8c0"}, + {file = "pillow-12.1.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:40a8e3b9e8773876d6e30daed22f016509e3987bab61b3b7fe309d7019a87451"}, + {file = "pillow-12.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:800429ac32c9b72909c671aaf17ecd13110f823ddb7db4dfef412a5587c2c24e"}, + {file = "pillow-12.1.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0b022eaaf709541b391ee069f0022ee5b36c709df71986e3f7be312e46f42c84"}, + {file = "pillow-12.1.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:1f345e7bc9d7f368887c712aa5054558bad44d2a301ddf9248599f4161abc7c0"}, + {file = "pillow-12.1.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:d70347c8a5b7ccd803ec0c85c8709f036e6348f1e6a5bf048ecd9c64d3550b8b"}, + {file = "pillow-12.1.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:1fcc52d86ce7a34fd17cb04e87cfdb164648a3662a6f20565910a99653d66c18"}, + {file = "pillow-12.1.0-cp311-cp311-win32.whl", hash = "sha256:3ffaa2f0659e2f740473bcf03c702c39a8d4b2b7ffc629052028764324842c64"}, + {file = "pillow-12.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:806f3987ffe10e867bab0ddad45df1148a2b98221798457fa097ad85d6e8bc75"}, + {file = "pillow-12.1.0-cp311-cp311-win_arm64.whl", hash = "sha256:9f5fefaca968e700ad1a4a9de98bf0869a94e397fe3524c4c9450c1445252304"}, + {file = "pillow-12.1.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:a332ac4ccb84b6dde65dbace8431f3af08874bf9770719d32a635c4ef411b18b"}, + {file = "pillow-12.1.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:907bfa8a9cb790748a9aa4513e37c88c59660da3bcfffbd24a7d9e6abf224551"}, + {file = "pillow-12.1.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:efdc140e7b63b8f739d09a99033aa430accce485ff78e6d311973a67b6bf3208"}, + {file = "pillow-12.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:bef9768cab184e7ae6e559c032e95ba8d07b3023c289f79a2bd36e8bf85605a5"}, + {file = "pillow-12.1.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:742aea052cf5ab5034a53c3846165bc3ce88d7c38e954120db0ab867ca242661"}, + {file = "pillow-12.1.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a6dfc2af5b082b635af6e08e0d1f9f1c4e04d17d4e2ca0ef96131e85eda6eb17"}, + {file = "pillow-12.1.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:609e89d9f90b581c8d16358c9087df76024cf058fa693dd3e1e1620823f39670"}, + {file = "pillow-12.1.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:43b4899cfd091a9693a1278c4982f3e50f7fb7cff5153b05174b4afc9593b616"}, + {file = "pillow-12.1.0-cp312-cp312-win32.whl", hash = "sha256:aa0c9cc0b82b14766a99fbe6084409972266e82f459821cd26997a488a7261a7"}, + {file = "pillow-12.1.0-cp312-cp312-win_amd64.whl", hash = "sha256:d70534cea9e7966169ad29a903b99fc507e932069a881d0965a1a84bb57f6c6d"}, + {file = "pillow-12.1.0-cp312-cp312-win_arm64.whl", hash = "sha256:65b80c1ee7e14a87d6a068dd3b0aea268ffcabfe0498d38661b00c5b4b22e74c"}, + {file = "pillow-12.1.0-cp313-cp313-ios_13_0_arm64_iphoneos.whl", hash = "sha256:7b5dd7cbae20285cdb597b10eb5a2c13aa9de6cde9bb64a3c1317427b1db1ae1"}, + {file = "pillow-12.1.0-cp313-cp313-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:29a4cef9cb672363926f0470afc516dbf7305a14d8c54f7abbb5c199cd8f8179"}, + {file = "pillow-12.1.0-cp313-cp313-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:681088909d7e8fa9e31b9799aaa59ba5234c58e5e4f1951b4c4d1082a2e980e0"}, + {file = "pillow-12.1.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:983976c2ab753166dc66d36af6e8ec15bb511e4a25856e2227e5f7e00a160587"}, + {file = "pillow-12.1.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:db44d5c160a90df2d24a24760bbd37607d53da0b34fb546c4c232af7192298ac"}, + {file = "pillow-12.1.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:6b7a9d1db5dad90e2991645874f708e87d9a3c370c243c2d7684d28f7e133e6b"}, + {file = "pillow-12.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:6258f3260986990ba2fa8a874f8b6e808cf5abb51a94015ca3dc3c68aa4f30ea"}, + {file = "pillow-12.1.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:e115c15e3bc727b1ca3e641a909f77f8ca72a64fff150f666fcc85e57701c26c"}, + {file = "pillow-12.1.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6741e6f3074a35e47c77b23a4e4f2d90db3ed905cb1c5e6e0d49bff2045632bc"}, + {file = "pillow-12.1.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:935b9d1aed48fcfb3f838caac506f38e29621b44ccc4f8a64d575cb1b2a88644"}, + {file = "pillow-12.1.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:5fee4c04aad8932da9f8f710af2c1a15a83582cfb884152a9caa79d4efcdbf9c"}, + {file = "pillow-12.1.0-cp313-cp313-win32.whl", hash = "sha256:a786bf667724d84aa29b5db1c61b7bfdde380202aaca12c3461afd6b71743171"}, + {file = "pillow-12.1.0-cp313-cp313-win_amd64.whl", hash = "sha256:461f9dfdafa394c59cd6d818bdfdbab4028b83b02caadaff0ffd433faf4c9a7a"}, + {file = "pillow-12.1.0-cp313-cp313-win_arm64.whl", hash = "sha256:9212d6b86917a2300669511ed094a9406888362e085f2431a7da985a6b124f45"}, + {file = "pillow-12.1.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:00162e9ca6d22b7c3ee8e61faa3c3253cd19b6a37f126cad04f2f88b306f557d"}, + {file = "pillow-12.1.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:7d6daa89a00b58c37cb1747ec9fb7ac3bc5ffd5949f5888657dfddde6d1312e0"}, + {file = "pillow-12.1.0-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:e2479c7f02f9d505682dc47df8c0ea1fc5e264c4d1629a5d63fe3e2334b89554"}, + {file = "pillow-12.1.0-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:f188d580bd870cda1e15183790d1cc2fa78f666e76077d103edf048eed9c356e"}, + {file = "pillow-12.1.0-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0fde7ec5538ab5095cc02df38ee99b0443ff0e1c847a045554cf5f9af1f4aa82"}, + {file = "pillow-12.1.0-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0ed07dca4a8464bada6139ab38f5382f83e5f111698caf3191cb8dbf27d908b4"}, + {file = "pillow-12.1.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:f45bd71d1fa5e5749587613037b172e0b3b23159d1c00ef2fc920da6f470e6f0"}, + {file = "pillow-12.1.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:277518bf4fe74aa91489e1b20577473b19ee70fb97c374aa50830b279f25841b"}, + {file = "pillow-12.1.0-cp313-cp313t-win32.whl", hash = "sha256:7315f9137087c4e0ee73a761b163fc9aa3b19f5f606a7fc08d83fd3e4379af65"}, + {file = "pillow-12.1.0-cp313-cp313t-win_amd64.whl", hash = "sha256:0ddedfaa8b5f0b4ffbc2fa87b556dc59f6bb4ecb14a53b33f9189713ae8053c0"}, + {file = "pillow-12.1.0-cp313-cp313t-win_arm64.whl", hash = "sha256:80941e6d573197a0c28f394753de529bb436b1ca990ed6e765cf42426abc39f8"}, + {file = "pillow-12.1.0-cp314-cp314-ios_13_0_arm64_iphoneos.whl", hash = "sha256:5cb7bc1966d031aec37ddb9dcf15c2da5b2e9f7cc3ca7c54473a20a927e1eb91"}, + {file = "pillow-12.1.0-cp314-cp314-ios_13_0_arm64_iphonesimulator.whl", hash = "sha256:97e9993d5ed946aba26baf9c1e8cf18adbab584b99f452ee72f7ee8acb882796"}, + {file = "pillow-12.1.0-cp314-cp314-ios_13_0_x86_64_iphonesimulator.whl", hash = "sha256:414b9a78e14ffeb98128863314e62c3f24b8a86081066625700b7985b3f529bd"}, + {file = "pillow-12.1.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:e6bdb408f7c9dd2a5ff2b14a3b0bb6d4deb29fb9961e6eb3ae2031ae9a5cec13"}, + {file = "pillow-12.1.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:3413c2ae377550f5487991d444428f1a8ae92784aac79caa8b1e3b89b175f77e"}, + {file = "pillow-12.1.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:e5dcbe95016e88437ecf33544ba5db21ef1b8dd6e1b434a2cb2a3d605299e643"}, + {file = "pillow-12.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:d0a7735df32ccbcc98b98a1ac785cc4b19b580be1bdf0aeb5c03223220ea09d5"}, + {file = "pillow-12.1.0-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:0c27407a2d1b96774cbc4a7594129cc027339fd800cd081e44497722ea1179de"}, + {file = "pillow-12.1.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:15c794d74303828eaa957ff8070846d0efe8c630901a1c753fdc63850e19ecd9"}, + {file = "pillow-12.1.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c990547452ee2800d8506c4150280757f88532f3de2a58e3022e9b179107862a"}, + {file = "pillow-12.1.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:b63e13dd27da389ed9475b3d28510f0f954bca0041e8e551b2a4eb1eab56a39a"}, + {file = "pillow-12.1.0-cp314-cp314-win32.whl", hash = "sha256:1a949604f73eb07a8adab38c4fe50791f9919344398bdc8ac6b307f755fc7030"}, + {file = "pillow-12.1.0-cp314-cp314-win_amd64.whl", hash = "sha256:4f9f6a650743f0ddee5593ac9e954ba1bdbc5e150bc066586d4f26127853ab94"}, + {file = "pillow-12.1.0-cp314-cp314-win_arm64.whl", hash = "sha256:808b99604f7873c800c4840f55ff389936ef1948e4e87645eaf3fccbc8477ac4"}, + {file = "pillow-12.1.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:bc11908616c8a283cf7d664f77411a5ed2a02009b0097ff8abbba5e79128ccf2"}, + {file = "pillow-12.1.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:896866d2d436563fa2a43a9d72f417874f16b5545955c54a64941e87c1376c61"}, + {file = "pillow-12.1.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:8e178e3e99d3c0ea8fc64b88447f7cac8ccf058af422a6cedc690d0eadd98c51"}, + {file = "pillow-12.1.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:079af2fb0c599c2ec144ba2c02766d1b55498e373b3ac64687e43849fbbef5bc"}, + {file = "pillow-12.1.0-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:bdec5e43377761c5dbca620efb69a77f6855c5a379e32ac5b158f54c84212b14"}, + {file = "pillow-12.1.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:565c986f4b45c020f5421a4cea13ef294dde9509a8577f29b2fc5edc7587fff8"}, + {file = "pillow-12.1.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:43aca0a55ce1eefc0aefa6253661cb54571857b1a7b2964bd8a1e3ef4b729924"}, + {file = "pillow-12.1.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:0deedf2ea233722476b3a81e8cdfbad786f7adbed5d848469fa59fe52396e4ef"}, + {file = "pillow-12.1.0-cp314-cp314t-win32.whl", hash = "sha256:b17fbdbe01c196e7e159aacb889e091f28e61020a8abeac07b68079b6e626988"}, + {file = "pillow-12.1.0-cp314-cp314t-win_amd64.whl", hash = "sha256:27b9baecb428899db6c0de572d6d305cfaf38ca1596b5c0542a5182e3e74e8c6"}, + {file = "pillow-12.1.0-cp314-cp314t-win_arm64.whl", hash = "sha256:f61333d817698bdcdd0f9d7793e365ac3d2a21c1f1eb02b32ad6aefb8d8ea831"}, + {file = "pillow-12.1.0-pp311-pypy311_pp73-macosx_10_15_x86_64.whl", hash = "sha256:ca94b6aac0d7af2a10ba08c0f888b3d5114439b6b3ef39968378723622fed377"}, + {file = "pillow-12.1.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:351889afef0f485b84078ea40fe33727a0492b9af3904661b0abbafee0355b72"}, + {file = "pillow-12.1.0-pp311-pypy311_pp73-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:bb0984b30e973f7e2884362b7d23d0a348c7143ee559f38ef3eaab640144204c"}, + {file = "pillow-12.1.0-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:84cabc7095dd535ca934d57e9ce2a72ffd216e435a84acb06b2277b1de2689bd"}, + {file = "pillow-12.1.0-pp311-pypy311_pp73-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:53d8b764726d3af1a138dd353116f774e3862ec7e3794e0c8781e30db0f35dfc"}, + {file = "pillow-12.1.0-pp311-pypy311_pp73-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5da841d81b1a05ef940a8567da92decaa15bc4d7dedb540a8c219ad83d91808a"}, + {file = "pillow-12.1.0-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:75af0b4c229ac519b155028fa1be632d812a519abba9b46b20e50c6caa184f19"}, + {file = "pillow-12.1.0.tar.gz", hash = "sha256:5c5ae0a06e9ea030ab786b0251b32c7e4ce10e58d983c0d5c56029455180b5b9"}, +] + +[package.extras] +docs = ["furo", "olefile", "sphinx (>=8.2)", "sphinx-autobuild", "sphinx-copybutton", "sphinx-inline-tabs", "sphinxext-opengraph"] +fpx = ["olefile"] +mic = ["olefile"] +test-arrow = ["arro3-compute", "arro3-core", "nanoarrow", "pyarrow"] +tests = ["check-manifest", "coverage (>=7.4.2)", "defusedxml", "markdown2", "olefile", "packaging", "pyroma (>=5)", "pytest", "pytest-cov", "pytest-timeout", "pytest-xdist", "trove-classifiers (>=2024.10.12)"] +xmp = ["defusedxml"] + +[[package]] +name = "platformdirs" +version = "4.5.1" +description = "A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`." +optional = false +python-versions = ">=3.10" +groups = ["main"] +files = [ + {file = "platformdirs-4.5.1-py3-none-any.whl", hash = "sha256:d03afa3963c806a9bed9d5125c8f4cb2fdaf74a55ab60e5d59b3fde758104d31"}, + {file = "platformdirs-4.5.1.tar.gz", hash = "sha256:61d5cdcc6065745cdd94f0f878977f8de9437be93de97c1c12f853c9c0cdcbda"}, +] + +[package.extras] +docs = ["furo (>=2025.9.25)", "proselint (>=0.14)", "sphinx (>=8.2.3)", "sphinx-autodoc-typehints (>=3.2)"] +test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=8.4.2)", "pytest-cov (>=7)", "pytest-mock (>=3.15.1)"] +type = ["mypy (>=1.18.2)"] + +[[package]] +name = "prometheus-client" +version = "0.23.1" +description = "Python client for the Prometheus monitoring system." +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "prometheus_client-0.23.1-py3-none-any.whl", hash = "sha256:dd1913e6e76b59cfe44e7a4b83e01afc9873c1bdfd2ed8739f1e76aeca115f99"}, + {file = "prometheus_client-0.23.1.tar.gz", hash = "sha256:6ae8f9081eaaaf153a2e959d2e6c4f4fb57b12ef76c8c7980202f1e57b48b2ce"}, +] + +[package.extras] +twisted = ["twisted"] + +[[package]] +name = "prompt-toolkit" +version = "3.0.52" +description = "Library for building powerful interactive command lines in Python" +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "prompt_toolkit-3.0.52-py3-none-any.whl", hash = "sha256:9aac639a3bbd33284347de5ad8d68ecc044b91a762dc39b7c21095fcd6a19955"}, + {file = "prompt_toolkit-3.0.52.tar.gz", hash = "sha256:28cde192929c8e7321de85de1ddbe736f1375148b02f2e17edd840042b1be855"}, +] + +[package.dependencies] +wcwidth = "*" + +[[package]] +name = "psutil" +version = "7.2.1" +description = "Cross-platform lib for process and system monitoring." +optional = false +python-versions = ">=3.6" +groups = ["main"] +files = [ + {file = "psutil-7.2.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:ba9f33bb525b14c3ea563b2fd521a84d2fa214ec59e3e6a2858f78d0844dd60d"}, + {file = "psutil-7.2.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:81442dac7abfc2f4f4385ea9e12ddf5a796721c0f6133260687fec5c3780fa49"}, + {file = "psutil-7.2.1-cp313-cp313t-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ea46c0d060491051d39f0d2cff4f98d5c72b288289f57a21556cc7d504db37fc"}, + {file = "psutil-7.2.1-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:35630d5af80d5d0d49cfc4d64c1c13838baf6717a13effb35869a5919b854cdf"}, + {file = "psutil-7.2.1-cp313-cp313t-win_amd64.whl", hash = "sha256:923f8653416604e356073e6e0bccbe7c09990acef442def2f5640dd0faa9689f"}, + {file = "psutil-7.2.1-cp313-cp313t-win_arm64.whl", hash = "sha256:cfbe6b40ca48019a51827f20d830887b3107a74a79b01ceb8cc8de4ccb17b672"}, + {file = "psutil-7.2.1-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:494c513ccc53225ae23eec7fe6e1482f1b8a44674241b54561f755a898650679"}, + {file = "psutil-7.2.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:3fce5f92c22b00cdefd1645aa58ab4877a01679e901555067b1bd77039aa589f"}, + {file = "psutil-7.2.1-cp314-cp314t-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:93f3f7b0bb07711b49626e7940d6fe52aa9940ad86e8f7e74842e73189712129"}, + {file = "psutil-7.2.1-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d34d2ca888208eea2b5c68186841336a7f5e0b990edec929be909353a202768a"}, + {file = "psutil-7.2.1-cp314-cp314t-win_amd64.whl", hash = "sha256:2ceae842a78d1603753561132d5ad1b2f8a7979cb0c283f5b52fb4e6e14b1a79"}, + {file = "psutil-7.2.1-cp314-cp314t-win_arm64.whl", hash = "sha256:08a2f175e48a898c8eb8eace45ce01777f4785bc744c90aa2cc7f2fa5462a266"}, + {file = "psutil-7.2.1-cp36-abi3-macosx_10_9_x86_64.whl", hash = "sha256:b2e953fcfaedcfbc952b44744f22d16575d3aa78eb4f51ae74165b4e96e55f42"}, + {file = "psutil-7.2.1-cp36-abi3-macosx_11_0_arm64.whl", hash = "sha256:05cc68dbb8c174828624062e73078e7e35406f4ca2d0866c272c2410d8ef06d1"}, + {file = "psutil-7.2.1-cp36-abi3-manylinux2010_x86_64.manylinux_2_12_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5e38404ca2bb30ed7267a46c02f06ff842e92da3bb8c5bfdadbd35a5722314d8"}, + {file = "psutil-7.2.1-cp36-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ab2b98c9fc19f13f59628d94df5cc4cc4844bc572467d113a8b517d634e362c6"}, + {file = "psutil-7.2.1-cp36-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:f78baafb38436d5a128f837fab2d92c276dfb48af01a240b861ae02b2413ada8"}, + {file = "psutil-7.2.1-cp36-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:99a4cd17a5fdd1f3d014396502daa70b5ec21bf4ffe38393e152f8e449757d67"}, + {file = "psutil-7.2.1-cp37-abi3-win_amd64.whl", hash = "sha256:b1b0671619343aa71c20ff9767eced0483e4fc9e1f489d50923738caf6a03c17"}, + {file = "psutil-7.2.1-cp37-abi3-win_arm64.whl", hash = "sha256:0d67c1822c355aa6f7314d92018fb4268a76668a536f133599b91edd48759442"}, + {file = "psutil-7.2.1.tar.gz", hash = "sha256:f7583aec590485b43ca601dd9cea0dcd65bd7bb21d30ef4ddbf4ea6b5ed1bdd3"}, +] + +[package.extras] +dev = ["abi3audit", "black", "check-manifest", "coverage", "packaging", "psleak", "pylint", "pyperf", "pypinfo", "pytest", "pytest-cov", "pytest-instafail", "pytest-xdist", "requests", "rstcheck", "ruff", "setuptools", "sphinx", "sphinx_rtd_theme", "toml-sort", "twine", "validate-pyproject[all]", "virtualenv", "vulture", "wheel"] +test = ["psleak", "pytest", "pytest-instafail", "pytest-xdist", "setuptools"] + +[[package]] +name = "ptyprocess" +version = "0.7.0" +description = "Run a subprocess in a pseudo terminal" +optional = false +python-versions = "*" +groups = ["main"] +markers = "sys_platform != \"win32\" and sys_platform != \"emscripten\" or os_name != \"nt\"" +files = [ + {file = "ptyprocess-0.7.0-py2.py3-none-any.whl", hash = "sha256:4b41f3967fce3af57cc7e94b888626c18bf37a083e3651ca8feeb66d492fef35"}, + {file = "ptyprocess-0.7.0.tar.gz", hash = "sha256:5c5d0a3b48ceee0b48485e0c26037c0acd7d29765ca3fbb5cb3831d347423220"}, +] + +[[package]] +name = "pure-eval" +version = "0.2.3" +description = "Safely evaluate AST nodes without side effects" +optional = false +python-versions = "*" +groups = ["main"] +files = [ + {file = "pure_eval-0.2.3-py3-none-any.whl", hash = "sha256:1db8e35b67b3d218d818ae653e27f06c3aa420901fa7b081ca98cbedc874e0d0"}, + {file = "pure_eval-0.2.3.tar.gz", hash = "sha256:5f4e983f40564c576c7c8635ae88db5956bb2229d7e9237d03b3c0b0190eaf42"}, +] + +[package.extras] +tests = ["pytest"] + +[[package]] +name = "pycparser" +version = "2.23" +description = "C parser in Python" +optional = false +python-versions = ">=3.8" +groups = ["main"] +markers = "implementation_name != \"PyPy\"" +files = [ + {file = "pycparser-2.23-py3-none-any.whl", hash = "sha256:e5c6e8d3fbad53479cab09ac03729e0a9faf2bee3db8208a550daf5af81a5934"}, + {file = "pycparser-2.23.tar.gz", hash = "sha256:78816d4f24add8f10a06d6f05b4d424ad9e96cfebf68a4ddc99c65c0720d00c2"}, +] + +[[package]] +name = "pygments" +version = "2.19.2" +description = "Pygments is a syntax highlighting package written in Python." +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "pygments-2.19.2-py3-none-any.whl", hash = "sha256:86540386c03d588bb81d44bc3928634ff26449851e99741617ecb9037ee5ec0b"}, + {file = "pygments-2.19.2.tar.gz", hash = "sha256:636cb2477cec7f8952536970bc533bc43743542f70392ae026374600add5b887"}, +] + +[package.extras] +windows-terminal = ["colorama (>=0.4.6)"] + +[[package]] +name = "pyparsing" +version = "3.3.1" +description = "pyparsing - Classes and methods to define and execute parsing grammars" +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "pyparsing-3.3.1-py3-none-any.whl", hash = "sha256:023b5e7e5520ad96642e2c6db4cb683d3970bd640cdf7115049a6e9c3682df82"}, + {file = "pyparsing-3.3.1.tar.gz", hash = "sha256:47fad0f17ac1e2cad3de3b458570fbc9b03560aa029ed5e16ee5554da9a2251c"}, +] + +[package.extras] +diagrams = ["jinja2", "railroad-diagrams"] + +[[package]] +name = "python-dateutil" +version = "2.9.0.post0" +description = "Extensions to the standard Python datetime module" +optional = false +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7" +groups = ["main"] +files = [ + {file = "python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3"}, + {file = "python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427"}, +] + +[package.dependencies] +six = ">=1.5" + +[[package]] +name = "python-json-logger" +version = "4.0.0" +description = "JSON Log Formatter for the Python Logging Package" +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "python_json_logger-4.0.0-py3-none-any.whl", hash = "sha256:af09c9daf6a813aa4cc7180395f50f2a9e5fa056034c9953aec92e381c5ba1e2"}, + {file = "python_json_logger-4.0.0.tar.gz", hash = "sha256:f58e68eb46e1faed27e0f574a55a0455eecd7b8a5b88b85a784519ba3cff047f"}, +] + +[package.extras] +dev = ["backports.zoneinfo ; python_version < \"3.9\"", "black", "build", "freezegun", "mdx_truly_sane_lists", "mike", "mkdocs", "mkdocs-awesome-pages-plugin", "mkdocs-gen-files", "mkdocs-literate-nav", "mkdocs-material (>=8.5)", "mkdocstrings[python]", "msgspec ; implementation_name != \"pypy\"", "mypy", "orjson ; implementation_name != \"pypy\"", "pylint", "pytest", "tzdata", "validate-pyproject[all]"] + +[[package]] +name = "pytz" +version = "2025.2" +description = "World timezone definitions, modern and historical" +optional = false +python-versions = "*" +groups = ["main"] +files = [ + {file = "pytz-2025.2-py2.py3-none-any.whl", hash = "sha256:5ddf76296dd8c44c26eb8f4b6f35488f3ccbf6fbbd7adee0b7262d43f0ec2f00"}, + {file = "pytz-2025.2.tar.gz", hash = "sha256:360b9e3dbb49a209c21ad61809c7fb453643e048b38924c765813546746e81c3"}, +] + +[[package]] +name = "pywinpty" +version = "3.0.2" +description = "Pseudo terminal support for Windows from Python." +optional = false +python-versions = ">=3.9" +groups = ["main"] +markers = "os_name == \"nt\"" +files = [ + {file = "pywinpty-3.0.2-cp310-cp310-win_amd64.whl", hash = "sha256:65db57fd3387d71e8372b6a54269cbcd0f6dfa6d4616a29e0af749ec19f5c558"}, + {file = "pywinpty-3.0.2-cp311-cp311-win_amd64.whl", hash = "sha256:327790d70e4c841ebd9d0f295a780177149aeb405bca44c7115a3de5c2054b23"}, + {file = "pywinpty-3.0.2-cp312-cp312-win_amd64.whl", hash = "sha256:99fdd9b455f0ad6419aba6731a7a0d2f88ced83c3c94a80ff9533d95fa8d8a9e"}, + {file = "pywinpty-3.0.2-cp313-cp313-win_amd64.whl", hash = "sha256:18f78b81e4cfee6aabe7ea8688441d30247b73e52cd9657138015c5f4ee13a51"}, + {file = "pywinpty-3.0.2-cp313-cp313t-win_amd64.whl", hash = "sha256:663383ecfab7fc382cc97ea5c4f7f0bb32c2f889259855df6ea34e5df42d305b"}, + {file = "pywinpty-3.0.2-cp314-cp314-win_amd64.whl", hash = "sha256:28297cecc37bee9f24d8889e47231972d6e9e84f7b668909de54f36ca785029a"}, + {file = "pywinpty-3.0.2-cp314-cp314t-win_amd64.whl", hash = "sha256:34b55ae9a1b671fe3eae071d86618110538e8eaad18fcb1531c0830b91a82767"}, + {file = "pywinpty-3.0.2-cp39-cp39-win_amd64.whl", hash = "sha256:3962daf801bc38dd4de872108c424b5338c9a46c6efca5761854cd66370a9022"}, + {file = "pywinpty-3.0.2.tar.gz", hash = "sha256:1505cc4cb248af42cb6285a65c9c2086ee9e7e574078ee60933d5d7fa86fb004"}, +] + +[[package]] +name = "pyyaml" +version = "6.0.3" +description = "YAML parser and emitter for Python" +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "PyYAML-6.0.3-cp38-cp38-macosx_10_13_x86_64.whl", hash = "sha256:c2514fceb77bc5e7a2f7adfaa1feb2fb311607c9cb518dbc378688ec73d8292f"}, + {file = "PyYAML-6.0.3-cp38-cp38-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9c57bb8c96f6d1808c030b1687b9b5fb476abaa47f0db9c0101f5e9f394e97f4"}, + {file = "PyYAML-6.0.3-cp38-cp38-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:efd7b85f94a6f21e4932043973a7ba2613b059c4a000551892ac9f1d11f5baf3"}, + {file = "PyYAML-6.0.3-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:22ba7cfcad58ef3ecddc7ed1db3409af68d023b7f940da23c6c2a1890976eda6"}, + {file = "PyYAML-6.0.3-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:6344df0d5755a2c9a276d4473ae6b90647e216ab4757f8426893b5dd2ac3f369"}, + {file = "PyYAML-6.0.3-cp38-cp38-win32.whl", hash = "sha256:3ff07ec89bae51176c0549bc4c63aa6202991da2d9a6129d7aef7f1407d3f295"}, + {file = "PyYAML-6.0.3-cp38-cp38-win_amd64.whl", hash = "sha256:5cf4e27da7e3fbed4d6c3d8e797387aaad68102272f8f9752883bc32d61cb87b"}, + {file = "pyyaml-6.0.3-cp310-cp310-macosx_10_13_x86_64.whl", hash = "sha256:214ed4befebe12df36bcc8bc2b64b396ca31be9304b8f59e25c11cf94a4c033b"}, + {file = "pyyaml-6.0.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:02ea2dfa234451bbb8772601d7b8e426c2bfa197136796224e50e35a78777956"}, + {file = "pyyaml-6.0.3-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:b30236e45cf30d2b8e7b3e85881719e98507abed1011bf463a8fa23e9c3e98a8"}, + {file = "pyyaml-6.0.3-cp310-cp310-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:66291b10affd76d76f54fad28e22e51719ef9ba22b29e1d7d03d6777a9174198"}, + {file = "pyyaml-6.0.3-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9c7708761fccb9397fe64bbc0395abcae8c4bf7b0eac081e12b809bf47700d0b"}, + {file = "pyyaml-6.0.3-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:418cf3f2111bc80e0933b2cd8cd04f286338bb88bdc7bc8e6dd775ebde60b5e0"}, + {file = "pyyaml-6.0.3-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:5e0b74767e5f8c593e8c9b5912019159ed0533c70051e9cce3e8b6aa699fcd69"}, + {file = "pyyaml-6.0.3-cp310-cp310-win32.whl", hash = "sha256:28c8d926f98f432f88adc23edf2e6d4921ac26fb084b028c733d01868d19007e"}, + {file = "pyyaml-6.0.3-cp310-cp310-win_amd64.whl", hash = "sha256:bdb2c67c6c1390b63c6ff89f210c8fd09d9a1217a465701eac7316313c915e4c"}, + {file = "pyyaml-6.0.3-cp311-cp311-macosx_10_13_x86_64.whl", hash = "sha256:44edc647873928551a01e7a563d7452ccdebee747728c1080d881d68af7b997e"}, + {file = "pyyaml-6.0.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:652cb6edd41e718550aad172851962662ff2681490a8a711af6a4d288dd96824"}, + {file = "pyyaml-6.0.3-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:10892704fc220243f5305762e276552a0395f7beb4dbf9b14ec8fd43b57f126c"}, + {file = "pyyaml-6.0.3-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:850774a7879607d3a6f50d36d04f00ee69e7fc816450e5f7e58d7f17f1ae5c00"}, + {file = "pyyaml-6.0.3-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b8bb0864c5a28024fac8a632c443c87c5aa6f215c0b126c449ae1a150412f31d"}, + {file = "pyyaml-6.0.3-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:1d37d57ad971609cf3c53ba6a7e365e40660e3be0e5175fa9f2365a379d6095a"}, + {file = "pyyaml-6.0.3-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:37503bfbfc9d2c40b344d06b2199cf0e96e97957ab1c1b546fd4f87e53e5d3e4"}, + {file = "pyyaml-6.0.3-cp311-cp311-win32.whl", hash = "sha256:8098f252adfa6c80ab48096053f512f2321f0b998f98150cea9bd23d83e1467b"}, + {file = "pyyaml-6.0.3-cp311-cp311-win_amd64.whl", hash = "sha256:9f3bfb4965eb874431221a3ff3fdcddc7e74e3b07799e0e84ca4a0f867d449bf"}, + {file = "pyyaml-6.0.3-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:7f047e29dcae44602496db43be01ad42fc6f1cc0d8cd6c83d342306c32270196"}, + {file = "pyyaml-6.0.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:fc09d0aa354569bc501d4e787133afc08552722d3ab34836a80547331bb5d4a0"}, + {file = "pyyaml-6.0.3-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9149cad251584d5fb4981be1ecde53a1ca46c891a79788c0df828d2f166bda28"}, + {file = "pyyaml-6.0.3-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5fdec68f91a0c6739b380c83b951e2c72ac0197ace422360e6d5a959d8d97b2c"}, + {file = "pyyaml-6.0.3-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ba1cc08a7ccde2d2ec775841541641e4548226580ab850948cbfda66a1befcdc"}, + {file = "pyyaml-6.0.3-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:8dc52c23056b9ddd46818a57b78404882310fb473d63f17b07d5c40421e47f8e"}, + {file = "pyyaml-6.0.3-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:41715c910c881bc081f1e8872880d3c650acf13dfa8214bad49ed4cede7c34ea"}, + {file = "pyyaml-6.0.3-cp312-cp312-win32.whl", hash = "sha256:96b533f0e99f6579b3d4d4995707cf36df9100d67e0c8303a0c55b27b5f99bc5"}, + {file = "pyyaml-6.0.3-cp312-cp312-win_amd64.whl", hash = "sha256:5fcd34e47f6e0b794d17de1b4ff496c00986e1c83f7ab2fb8fcfe9616ff7477b"}, + {file = "pyyaml-6.0.3-cp312-cp312-win_arm64.whl", hash = "sha256:64386e5e707d03a7e172c0701abfb7e10f0fb753ee1d773128192742712a98fd"}, + {file = "pyyaml-6.0.3-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:8da9669d359f02c0b91ccc01cac4a67f16afec0dac22c2ad09f46bee0697eba8"}, + {file = "pyyaml-6.0.3-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:2283a07e2c21a2aa78d9c4442724ec1eb15f5e42a723b99cb3d822d48f5f7ad1"}, + {file = "pyyaml-6.0.3-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ee2922902c45ae8ccada2c5b501ab86c36525b883eff4255313a253a3160861c"}, + {file = "pyyaml-6.0.3-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a33284e20b78bd4a18c8c2282d549d10bc8408a2a7ff57653c0cf0b9be0afce5"}, + {file = "pyyaml-6.0.3-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0f29edc409a6392443abf94b9cf89ce99889a1dd5376d94316ae5145dfedd5d6"}, + {file = "pyyaml-6.0.3-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f7057c9a337546edc7973c0d3ba84ddcdf0daa14533c2065749c9075001090e6"}, + {file = "pyyaml-6.0.3-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:eda16858a3cab07b80edaf74336ece1f986ba330fdb8ee0d6c0d68fe82bc96be"}, + {file = "pyyaml-6.0.3-cp313-cp313-win32.whl", hash = "sha256:d0eae10f8159e8fdad514efdc92d74fd8d682c933a6dd088030f3834bc8e6b26"}, + {file = "pyyaml-6.0.3-cp313-cp313-win_amd64.whl", hash = "sha256:79005a0d97d5ddabfeeea4cf676af11e647e41d81c9a7722a193022accdb6b7c"}, + {file = "pyyaml-6.0.3-cp313-cp313-win_arm64.whl", hash = "sha256:5498cd1645aa724a7c71c8f378eb29ebe23da2fc0d7a08071d89469bf1d2defb"}, + {file = "pyyaml-6.0.3-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:8d1fab6bb153a416f9aeb4b8763bc0f22a5586065f86f7664fc23339fc1c1fac"}, + {file = "pyyaml-6.0.3-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:34d5fcd24b8445fadc33f9cf348c1047101756fd760b4dacb5c3e99755703310"}, + {file = "pyyaml-6.0.3-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:501a031947e3a9025ed4405a168e6ef5ae3126c59f90ce0cd6f2bfc477be31b7"}, + {file = "pyyaml-6.0.3-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:b3bc83488de33889877a0f2543ade9f70c67d66d9ebb4ac959502e12de895788"}, + {file = "pyyaml-6.0.3-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c458b6d084f9b935061bc36216e8a69a7e293a2f1e68bf956dcd9e6cbcd143f5"}, + {file = "pyyaml-6.0.3-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:7c6610def4f163542a622a73fb39f534f8c101d690126992300bf3207eab9764"}, + {file = "pyyaml-6.0.3-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:5190d403f121660ce8d1d2c1bb2ef1bd05b5f68533fc5c2ea899bd15f4399b35"}, + {file = "pyyaml-6.0.3-cp314-cp314-win_amd64.whl", hash = "sha256:4a2e8cebe2ff6ab7d1050ecd59c25d4c8bd7e6f400f5f82b96557ac0abafd0ac"}, + {file = "pyyaml-6.0.3-cp314-cp314-win_arm64.whl", hash = "sha256:93dda82c9c22deb0a405ea4dc5f2d0cda384168e466364dec6255b293923b2f3"}, + {file = "pyyaml-6.0.3-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:02893d100e99e03eda1c8fd5c441d8c60103fd175728e23e431db1b589cf5ab3"}, + {file = "pyyaml-6.0.3-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:c1ff362665ae507275af2853520967820d9124984e0f7466736aea23d8611fba"}, + {file = "pyyaml-6.0.3-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:6adc77889b628398debc7b65c073bcb99c4a0237b248cacaf3fe8a557563ef6c"}, + {file = "pyyaml-6.0.3-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:a80cb027f6b349846a3bf6d73b5e95e782175e52f22108cfa17876aaeff93702"}, + {file = "pyyaml-6.0.3-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:00c4bdeba853cc34e7dd471f16b4114f4162dc03e6b7afcc2128711f0eca823c"}, + {file = "pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:66e1674c3ef6f541c35191caae2d429b967b99e02040f5ba928632d9a7f0f065"}, + {file = "pyyaml-6.0.3-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:16249ee61e95f858e83976573de0f5b2893b3677ba71c9dd36b9cf8be9ac6d65"}, + {file = "pyyaml-6.0.3-cp314-cp314t-win_amd64.whl", hash = "sha256:4ad1906908f2f5ae4e5a8ddfce73c320c2a1429ec52eafd27138b7f1cbe341c9"}, + {file = "pyyaml-6.0.3-cp314-cp314t-win_arm64.whl", hash = "sha256:ebc55a14a21cb14062aa4162f906cd962b28e2e9ea38f9b4391244cd8de4ae0b"}, + {file = "pyyaml-6.0.3-cp39-cp39-macosx_10_13_x86_64.whl", hash = "sha256:b865addae83924361678b652338317d1bd7e79b1f4596f96b96c77a5a34b34da"}, + {file = "pyyaml-6.0.3-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:c3355370a2c156cffb25e876646f149d5d68f5e0a3ce86a5084dd0b64a994917"}, + {file = "pyyaml-6.0.3-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3c5677e12444c15717b902a5798264fa7909e41153cdf9ef7ad571b704a63dd9"}, + {file = "pyyaml-6.0.3-cp39-cp39-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:5ed875a24292240029e4483f9d4a4b8a1ae08843b9c54f43fcc11e404532a8a5"}, + {file = "pyyaml-6.0.3-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0150219816b6a1fa26fb4699fb7daa9caf09eb1999f3b70fb6e786805e80375a"}, + {file = "pyyaml-6.0.3-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:fa160448684b4e94d80416c0fa4aac48967a969efe22931448d853ada8baf926"}, + {file = "pyyaml-6.0.3-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:27c0abcb4a5dac13684a37f76e701e054692a9b2d3064b70f5e4eb54810553d7"}, + {file = "pyyaml-6.0.3-cp39-cp39-win32.whl", hash = "sha256:1ebe39cb5fc479422b83de611d14e2c0d3bb2a18bbcb01f229ab3cfbd8fee7a0"}, + {file = "pyyaml-6.0.3-cp39-cp39-win_amd64.whl", hash = "sha256:2e71d11abed7344e42a8849600193d15b6def118602c4c176f748e4583246007"}, + {file = "pyyaml-6.0.3.tar.gz", hash = "sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f"}, +] + +[[package]] +name = "pyzmq" +version = "27.1.0" +description = "Python bindings for 0MQ" +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "pyzmq-27.1.0-cp310-cp310-macosx_10_15_universal2.whl", hash = "sha256:508e23ec9bc44c0005c4946ea013d9317ae00ac67778bd47519fdf5a0e930ff4"}, + {file = "pyzmq-27.1.0-cp310-cp310-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:507b6f430bdcf0ee48c0d30e734ea89ce5567fd7b8a0f0044a369c176aa44556"}, + {file = "pyzmq-27.1.0-cp310-cp310-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:bf7b38f9fd7b81cb6d9391b2946382c8237fd814075c6aa9c3b746d53076023b"}, + {file = "pyzmq-27.1.0-cp310-cp310-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:03ff0b279b40d687691a6217c12242ee71f0fba28bf8626ff50e3ef0f4410e1e"}, + {file = "pyzmq-27.1.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:677e744fee605753eac48198b15a2124016c009a11056f93807000ab11ce6526"}, + {file = "pyzmq-27.1.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:dd2fec2b13137416a1c5648b7009499bcc8fea78154cd888855fa32514f3dad1"}, + {file = "pyzmq-27.1.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:08e90bb4b57603b84eab1d0ca05b3bbb10f60c1839dc471fc1c9e1507bef3386"}, + {file = "pyzmq-27.1.0-cp310-cp310-win32.whl", hash = "sha256:a5b42d7a0658b515319148875fcb782bbf118dd41c671b62dae33666c2213bda"}, + {file = "pyzmq-27.1.0-cp310-cp310-win_amd64.whl", hash = "sha256:c0bb87227430ee3aefcc0ade2088100e528d5d3298a0a715a64f3d04c60ba02f"}, + {file = "pyzmq-27.1.0-cp310-cp310-win_arm64.whl", hash = "sha256:9a916f76c2ab8d045b19f2286851a38e9ac94ea91faf65bd64735924522a8b32"}, + {file = "pyzmq-27.1.0-cp311-cp311-macosx_10_15_universal2.whl", hash = "sha256:226b091818d461a3bef763805e75685e478ac17e9008f49fce2d3e52b3d58b86"}, + {file = "pyzmq-27.1.0-cp311-cp311-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:0790a0161c281ca9723f804871b4027f2e8b5a528d357c8952d08cd1a9c15581"}, + {file = "pyzmq-27.1.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c895a6f35476b0c3a54e3eb6ccf41bf3018de937016e6e18748317f25d4e925f"}, + {file = "pyzmq-27.1.0-cp311-cp311-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5bbf8d3630bf96550b3be8e1fc0fea5cbdc8d5466c1192887bd94869da17a63e"}, + {file = "pyzmq-27.1.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:15c8bd0fe0dabf808e2d7a681398c4e5ded70a551ab47482067a572c054c8e2e"}, + {file = "pyzmq-27.1.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:bafcb3dd171b4ae9f19ee6380dfc71ce0390fefaf26b504c0e5f628d7c8c54f2"}, + {file = "pyzmq-27.1.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:e829529fcaa09937189178115c49c504e69289abd39967cd8a4c215761373394"}, + {file = "pyzmq-27.1.0-cp311-cp311-win32.whl", hash = "sha256:6df079c47d5902af6db298ec92151db82ecb557af663098b92f2508c398bb54f"}, + {file = "pyzmq-27.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:190cbf120fbc0fc4957b56866830def56628934a9d112aec0e2507aa6a032b97"}, + {file = "pyzmq-27.1.0-cp311-cp311-win_arm64.whl", hash = "sha256:eca6b47df11a132d1745eb3b5b5e557a7dae2c303277aa0e69c6ba91b8736e07"}, + {file = "pyzmq-27.1.0-cp312-abi3-macosx_10_15_universal2.whl", hash = "sha256:452631b640340c928fa343801b0d07eb0c3789a5ffa843f6e1a9cee0ba4eb4fc"}, + {file = "pyzmq-27.1.0-cp312-abi3-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:1c179799b118e554b66da67d88ed66cd37a169f1f23b5d9f0a231b4e8d44a113"}, + {file = "pyzmq-27.1.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3837439b7f99e60312f0c926a6ad437b067356dc2bc2ec96eb395fd0fe804233"}, + {file = "pyzmq-27.1.0-cp312-abi3-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:43ad9a73e3da1fab5b0e7e13402f0b2fb934ae1c876c51d0afff0e7c052eca31"}, + {file = "pyzmq-27.1.0-cp312-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:0de3028d69d4cdc475bfe47a6128eb38d8bc0e8f4d69646adfbcd840facbac28"}, + {file = "pyzmq-27.1.0-cp312-abi3-musllinux_1_2_i686.whl", hash = "sha256:cf44a7763aea9298c0aa7dbf859f87ed7012de8bda0f3977b6fb1d96745df856"}, + {file = "pyzmq-27.1.0-cp312-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:f30f395a9e6fbca195400ce833c731e7b64c3919aa481af4d88c3759e0cb7496"}, + {file = "pyzmq-27.1.0-cp312-abi3-win32.whl", hash = "sha256:250e5436a4ba13885494412b3da5d518cd0d3a278a1ae640e113c073a5f88edd"}, + {file = "pyzmq-27.1.0-cp312-abi3-win_amd64.whl", hash = "sha256:9ce490cf1d2ca2ad84733aa1d69ce6855372cb5ce9223802450c9b2a7cba0ccf"}, + {file = "pyzmq-27.1.0-cp312-abi3-win_arm64.whl", hash = "sha256:75a2f36223f0d535a0c919e23615fc85a1e23b71f40c7eb43d7b1dedb4d8f15f"}, + {file = "pyzmq-27.1.0-cp313-cp313-android_24_arm64_v8a.whl", hash = "sha256:93ad4b0855a664229559e45c8d23797ceac03183c7b6f5b4428152a6b06684a5"}, + {file = "pyzmq-27.1.0-cp313-cp313-android_24_x86_64.whl", hash = "sha256:fbb4f2400bfda24f12f009cba62ad5734148569ff4949b1b6ec3b519444342e6"}, + {file = "pyzmq-27.1.0-cp313-cp313t-macosx_10_15_universal2.whl", hash = "sha256:e343d067f7b151cfe4eb3bb796a7752c9d369eed007b91231e817071d2c2fec7"}, + {file = "pyzmq-27.1.0-cp313-cp313t-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:08363b2011dec81c354d694bdecaef4770e0ae96b9afea70b3f47b973655cc05"}, + {file = "pyzmq-27.1.0-cp313-cp313t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d54530c8c8b5b8ddb3318f481297441af102517602b569146185fa10b63f4fa9"}, + {file = "pyzmq-27.1.0-cp313-cp313t-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6f3afa12c392f0a44a2414056d730eebc33ec0926aae92b5ad5cf26ebb6cc128"}, + {file = "pyzmq-27.1.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:c65047adafe573ff023b3187bb93faa583151627bc9c51fc4fb2c561ed689d39"}, + {file = "pyzmq-27.1.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:90e6e9441c946a8b0a667356f7078d96411391a3b8f80980315455574177ec97"}, + {file = "pyzmq-27.1.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:add071b2d25f84e8189aaf0882d39a285b42fa3853016ebab234a5e78c7a43db"}, + {file = "pyzmq-27.1.0-cp313-cp313t-win32.whl", hash = "sha256:7ccc0700cfdf7bd487bea8d850ec38f204478681ea02a582a8da8171b7f90a1c"}, + {file = "pyzmq-27.1.0-cp313-cp313t-win_amd64.whl", hash = "sha256:8085a9fba668216b9b4323be338ee5437a235fe275b9d1610e422ccc279733e2"}, + {file = "pyzmq-27.1.0-cp313-cp313t-win_arm64.whl", hash = "sha256:6bb54ca21bcfe361e445256c15eedf083f153811c37be87e0514934d6913061e"}, + {file = "pyzmq-27.1.0-cp314-cp314t-macosx_10_15_universal2.whl", hash = "sha256:ce980af330231615756acd5154f29813d553ea555485ae712c491cd483df6b7a"}, + {file = "pyzmq-27.1.0-cp314-cp314t-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:1779be8c549e54a1c38f805e56d2a2e5c009d26de10921d7d51cfd1c8d4632ea"}, + {file = "pyzmq-27.1.0-cp314-cp314t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7200bb0f03345515df50d99d3db206a0a6bee1955fbb8c453c76f5bf0e08fb96"}, + {file = "pyzmq-27.1.0-cp314-cp314t-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:01c0e07d558b06a60773744ea6251f769cd79a41a97d11b8bf4ab8f034b0424d"}, + {file = "pyzmq-27.1.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:80d834abee71f65253c91540445d37c4c561e293ba6e741b992f20a105d69146"}, + {file = "pyzmq-27.1.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:544b4e3b7198dde4a62b8ff6685e9802a9a1ebf47e77478a5eb88eca2a82f2fd"}, + {file = "pyzmq-27.1.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:cedc4c68178e59a4046f97eca31b148ddcf51e88677de1ef4e78cf06c5376c9a"}, + {file = "pyzmq-27.1.0-cp314-cp314t-win32.whl", hash = "sha256:1f0b2a577fd770aa6f053211a55d1c47901f4d537389a034c690291485e5fe92"}, + {file = "pyzmq-27.1.0-cp314-cp314t-win_amd64.whl", hash = "sha256:19c9468ae0437f8074af379e986c5d3d7d7bfe033506af442e8c879732bedbe0"}, + {file = "pyzmq-27.1.0-cp314-cp314t-win_arm64.whl", hash = "sha256:dc5dbf68a7857b59473f7df42650c621d7e8923fb03fa74a526890f4d33cc4d7"}, + {file = "pyzmq-27.1.0-cp38-cp38-macosx_10_15_universal2.whl", hash = "sha256:18339186c0ed0ce5835f2656cdfb32203125917711af64da64dbaa3d949e5a1b"}, + {file = "pyzmq-27.1.0-cp38-cp38-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:753d56fba8f70962cd8295fb3edb40b9b16deaa882dd2b5a3a2039f9ff7625aa"}, + {file = "pyzmq-27.1.0-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:b721c05d932e5ad9ff9344f708c96b9e1a485418c6618d765fca95d4daacfbef"}, + {file = "pyzmq-27.1.0-cp38-cp38-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:7be883ff3d722e6085ee3f4afc057a50f7f2e0c72d289fd54df5706b4e3d3a50"}, + {file = "pyzmq-27.1.0-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:b2e592db3a93128daf567de9650a2f3859017b3f7a66bc4ed6e4779d6034976f"}, + {file = "pyzmq-27.1.0-cp38-cp38-musllinux_1_2_i686.whl", hash = "sha256:ad68808a61cbfbbae7ba26d6233f2a4aa3b221de379ce9ee468aa7a83b9c36b0"}, + {file = "pyzmq-27.1.0-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:e2687c2d230e8d8584fbea433c24382edfeda0c60627aca3446aa5e58d5d1831"}, + {file = "pyzmq-27.1.0-cp38-cp38-win32.whl", hash = "sha256:a1aa0ee920fb3825d6c825ae3f6c508403b905b698b6460408ebd5bb04bbb312"}, + {file = "pyzmq-27.1.0-cp38-cp38-win_amd64.whl", hash = "sha256:df7cd397ece96cf20a76fae705d40efbab217d217897a5053267cd88a700c266"}, + {file = "pyzmq-27.1.0-cp39-cp39-macosx_10_15_universal2.whl", hash = "sha256:96c71c32fff75957db6ae33cd961439f386505c6e6b377370af9b24a1ef9eafb"}, + {file = "pyzmq-27.1.0-cp39-cp39-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:49d3980544447f6bd2968b6ac913ab963a49dcaa2d4a2990041f16057b04c429"}, + {file = "pyzmq-27.1.0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:849ca054d81aa1c175c49484afaaa5db0622092b5eccb2055f9f3bb8f703782d"}, + {file = "pyzmq-27.1.0-cp39-cp39-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3970778e74cb7f85934d2b926b9900e92bfe597e62267d7499acc39c9c28e345"}, + {file = "pyzmq-27.1.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:da96ecdcf7d3919c3be2de91a8c513c186f6762aa6cf7c01087ed74fad7f0968"}, + {file = "pyzmq-27.1.0-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:9541c444cfe1b1c0156c5c86ece2bb926c7079a18e7b47b0b1b3b1b875e5d098"}, + {file = "pyzmq-27.1.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:e30a74a39b93e2e1591b58eb1acef4902be27c957a8720b0e368f579b82dc22f"}, + {file = "pyzmq-27.1.0-cp39-cp39-win32.whl", hash = "sha256:b1267823d72d1e40701dcba7edc45fd17f71be1285557b7fe668887150a14b78"}, + {file = "pyzmq-27.1.0-cp39-cp39-win_amd64.whl", hash = "sha256:0c996ded912812a2fcd7ab6574f4ad3edc27cb6510349431e4930d4196ade7db"}, + {file = "pyzmq-27.1.0-cp39-cp39-win_arm64.whl", hash = "sha256:346e9ba4198177a07e7706050f35d733e08c1c1f8ceacd5eb6389d653579ffbc"}, + {file = "pyzmq-27.1.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:c17e03cbc9312bee223864f1a2b13a99522e0dc9f7c5df0177cd45210ac286e6"}, + {file = "pyzmq-27.1.0-pp310-pypy310_pp73-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:f328d01128373cb6763823b2b4e7f73bdf767834268c565151eacb3b7a392f90"}, + {file = "pyzmq-27.1.0-pp310-pypy310_pp73-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9c1790386614232e1b3a40a958454bdd42c6d1811837b15ddbb052a032a43f62"}, + {file = "pyzmq-27.1.0-pp310-pypy310_pp73-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:448f9cb54eb0cee4732b46584f2710c8bc178b0e5371d9e4fc8125201e413a74"}, + {file = "pyzmq-27.1.0-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:05b12f2d32112bf8c95ef2e74ec4f1d4beb01f8b5e703b38537f8849f92cb9ba"}, + {file = "pyzmq-27.1.0-pp311-pypy311_pp73-macosx_10_15_x86_64.whl", hash = "sha256:18770c8d3563715387139060d37859c02ce40718d1faf299abddcdcc6a649066"}, + {file = "pyzmq-27.1.0-pp311-pypy311_pp73-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:ac25465d42f92e990f8d8b0546b01c391ad431c3bf447683fdc40565941d0604"}, + {file = "pyzmq-27.1.0-pp311-pypy311_pp73-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:53b40f8ae006f2734ee7608d59ed661419f087521edbfc2149c3932e9c14808c"}, + {file = "pyzmq-27.1.0-pp311-pypy311_pp73-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f605d884e7c8be8fe1aa94e0a783bf3f591b84c24e4bc4f3e7564c82ac25e271"}, + {file = "pyzmq-27.1.0-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:c9f7f6e13dff2e44a6afeaf2cf54cee5929ad64afaf4d40b50f93c58fc687355"}, + {file = "pyzmq-27.1.0-pp38-pypy38_pp73-macosx_10_15_x86_64.whl", hash = "sha256:50081a4e98472ba9f5a02850014b4c9b629da6710f8f14f3b15897c666a28f1b"}, + {file = "pyzmq-27.1.0-pp38-pypy38_pp73-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:510869f9df36ab97f89f4cff9d002a89ac554c7ac9cadd87d444aa4cf66abd27"}, + {file = "pyzmq-27.1.0-pp38-pypy38_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:1f8426a01b1c4098a750973c37131cf585f61c7911d735f729935a0c701b68d3"}, + {file = "pyzmq-27.1.0-pp38-pypy38_pp73-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:726b6a502f2e34c6d2ada5e702929586d3ac948a4dbbb7fed9854ec8c0466027"}, + {file = "pyzmq-27.1.0-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:bd67e7c8f4654bef471c0b1ca6614af0b5202a790723a58b79d9584dc8022a78"}, + {file = "pyzmq-27.1.0-pp39-pypy39_pp73-macosx_10_15_x86_64.whl", hash = "sha256:722ea791aa233ac0a819fc2c475e1292c76930b31f1d828cb61073e2fe5e208f"}, + {file = "pyzmq-27.1.0-pp39-pypy39_pp73-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:01f9437501886d3a1dd4b02ef59fb8cc384fa718ce066d52f175ee49dd5b7ed8"}, + {file = "pyzmq-27.1.0-pp39-pypy39_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:4a19387a3dddcc762bfd2f570d14e2395b2c9701329b266f83dd87a2b3cbd381"}, + {file = "pyzmq-27.1.0-pp39-pypy39_pp73-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4c618fbcd069e3a29dcd221739cacde52edcc681f041907867e0f5cc7e85f172"}, + {file = "pyzmq-27.1.0-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:ff8d114d14ac671d88c89b9224c63d6c4e5a613fe8acd5594ce53d752a3aafe9"}, + {file = "pyzmq-27.1.0.tar.gz", hash = "sha256:ac0765e3d44455adb6ddbf4417dcce460fc40a05978c08efdf2948072f6db540"}, +] + +[package.dependencies] +cffi = {version = "*", markers = "implementation_name == \"pypy\""} + +[[package]] +name = "referencing" +version = "0.37.0" +description = "JSON Referencing + Python" +optional = false +python-versions = ">=3.10" +groups = ["main"] +files = [ + {file = "referencing-0.37.0-py3-none-any.whl", hash = "sha256:381329a9f99628c9069361716891d34ad94af76e461dcb0335825aecc7692231"}, + {file = "referencing-0.37.0.tar.gz", hash = "sha256:44aefc3142c5b842538163acb373e24cce6632bd54bdb01b21ad5863489f50d8"}, +] + +[package.dependencies] +attrs = ">=22.2.0" +rpds-py = ">=0.7.0" +typing-extensions = {version = ">=4.4.0", markers = "python_version < \"3.13\""} + +[[package]] +name = "requests" +version = "2.32.5" +description = "Python HTTP for Humans." +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "requests-2.32.5-py3-none-any.whl", hash = "sha256:2462f94637a34fd532264295e186976db0f5d453d1cdd31473c85a6a161affb6"}, + {file = "requests-2.32.5.tar.gz", hash = "sha256:dbba0bac56e100853db0ea71b82b4dfd5fe2bf6d3754a8893c3af500cec7d7cf"}, +] + +[package.dependencies] +certifi = ">=2017.4.17" +charset_normalizer = ">=2,<4" +idna = ">=2.5,<4" +urllib3 = ">=1.21.1,<3" + +[package.extras] +socks = ["PySocks (>=1.5.6,!=1.5.7)"] +use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"] + +[[package]] +name = "rfc3339-validator" +version = "0.1.4" +description = "A pure python RFC3339 validator" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +groups = ["main"] +files = [ + {file = "rfc3339_validator-0.1.4-py2.py3-none-any.whl", hash = "sha256:24f6ec1eda14ef823da9e36ec7113124b39c04d50a4d3d3a3c2859577e7791fa"}, + {file = "rfc3339_validator-0.1.4.tar.gz", hash = "sha256:138a2abdf93304ad60530167e51d2dfb9549521a836871b88d7f4695d0022f6b"}, +] + +[package.dependencies] +six = "*" + +[[package]] +name = "rfc3986-validator" +version = "0.1.1" +description = "Pure python rfc3986 validator" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +groups = ["main"] +files = [ + {file = "rfc3986_validator-0.1.1-py2.py3-none-any.whl", hash = "sha256:2f235c432ef459970b4306369336b9d5dbdda31b510ca1e327636e01f528bfa9"}, + {file = "rfc3986_validator-0.1.1.tar.gz", hash = "sha256:3d44bde7921b3b9ec3ae4e3adca370438eccebc676456449b145d533b240d055"}, +] + +[[package]] +name = "rfc3987-syntax" +version = "1.1.0" +description = "Helper functions to syntactically validate strings according to RFC 3987." +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "rfc3987_syntax-1.1.0-py3-none-any.whl", hash = "sha256:6c3d97604e4c5ce9f714898e05401a0445a641cfa276432b0a648c80856f6a3f"}, + {file = "rfc3987_syntax-1.1.0.tar.gz", hash = "sha256:717a62cbf33cffdd16dfa3a497d81ce48a660ea691b1ddd7be710c22f00b4a0d"}, +] + +[package.dependencies] +lark = ">=1.2.2" + +[package.extras] +testing = ["pytest (>=8.3.5)"] + +[[package]] +name = "rpds-py" +version = "0.30.0" +description = "Python bindings to Rust's persistent data structures (rpds)" +optional = false +python-versions = ">=3.10" +groups = ["main"] +files = [ + {file = "rpds_py-0.30.0-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:679ae98e00c0e8d68a7fda324e16b90fd5260945b45d3b824c892cec9eea3288"}, + {file = "rpds_py-0.30.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:4cc2206b76b4f576934f0ed374b10d7ca5f457858b157ca52064bdfc26b9fc00"}, + {file = "rpds_py-0.30.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:389a2d49eded1896c3d48b0136ead37c48e221b391c052fba3f4055c367f60a6"}, + {file = "rpds_py-0.30.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:32c8528634e1bf7121f3de08fa85b138f4e0dc47657866630611b03967f041d7"}, + {file = "rpds_py-0.30.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f207f69853edd6f6700b86efb84999651baf3789e78a466431df1331608e5324"}, + {file = "rpds_py-0.30.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:67b02ec25ba7a9e8fa74c63b6ca44cf5707f2fbfadae3ee8e7494297d56aa9df"}, + {file = "rpds_py-0.30.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0c0e95f6819a19965ff420f65578bacb0b00f251fefe2c8b23347c37174271f3"}, + {file = "rpds_py-0.30.0-cp310-cp310-manylinux_2_31_riscv64.whl", hash = "sha256:a452763cc5198f2f98898eb98f7569649fe5da666c2dc6b5ddb10fde5a574221"}, + {file = "rpds_py-0.30.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:e0b65193a413ccc930671c55153a03ee57cecb49e6227204b04fae512eb657a7"}, + {file = "rpds_py-0.30.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:858738e9c32147f78b3ac24dc0edb6610000e56dc0f700fd5f651d0a0f0eb9ff"}, + {file = "rpds_py-0.30.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:da279aa314f00acbb803da1e76fa18666778e8a8f83484fba94526da5de2cba7"}, + {file = "rpds_py-0.30.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:7c64d38fb49b6cdeda16ab49e35fe0da2e1e9b34bc38bd78386530f218b37139"}, + {file = "rpds_py-0.30.0-cp310-cp310-win32.whl", hash = "sha256:6de2a32a1665b93233cde140ff8b3467bdb9e2af2b91079f0333a0974d12d464"}, + {file = "rpds_py-0.30.0-cp310-cp310-win_amd64.whl", hash = "sha256:1726859cd0de969f88dc8673bdd954185b9104e05806be64bcd87badbe313169"}, + {file = "rpds_py-0.30.0-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:a2bffea6a4ca9f01b3f8e548302470306689684e61602aa3d141e34da06cf425"}, + {file = "rpds_py-0.30.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:dc4f992dfe1e2bc3ebc7444f6c7051b4bc13cd8e33e43511e8ffd13bf407010d"}, + {file = "rpds_py-0.30.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:422c3cb9856d80b09d30d2eb255d0754b23e090034e1deb4083f8004bd0761e4"}, + {file = "rpds_py-0.30.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:07ae8a593e1c3c6b82ca3292efbe73c30b61332fd612e05abee07c79359f292f"}, + {file = "rpds_py-0.30.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:12f90dd7557b6bd57f40abe7747e81e0c0b119bef015ea7726e69fe550e394a4"}, + {file = "rpds_py-0.30.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:99b47d6ad9a6da00bec6aabe5a6279ecd3c06a329d4aa4771034a21e335c3a97"}, + {file = "rpds_py-0.30.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:33f559f3104504506a44bb666b93a33f5d33133765b0c216a5bf2f1e1503af89"}, + {file = "rpds_py-0.30.0-cp311-cp311-manylinux_2_31_riscv64.whl", hash = "sha256:946fe926af6e44f3697abbc305ea168c2c31d3e3ef1058cf68f379bf0335a78d"}, + {file = "rpds_py-0.30.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:495aeca4b93d465efde585977365187149e75383ad2684f81519f504f5c13038"}, + {file = "rpds_py-0.30.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:d9a0ca5da0386dee0655b4ccdf46119df60e0f10da268d04fe7cc87886872ba7"}, + {file = "rpds_py-0.30.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:8d6d1cc13664ec13c1b84241204ff3b12f9bb82464b8ad6e7a5d3486975c2eed"}, + {file = "rpds_py-0.30.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:3896fa1be39912cf0757753826bc8bdc8ca331a28a7c4ae46b7a21280b06bb85"}, + {file = "rpds_py-0.30.0-cp311-cp311-win32.whl", hash = "sha256:55f66022632205940f1827effeff17c4fa7ae1953d2b74a8581baaefb7d16f8c"}, + {file = "rpds_py-0.30.0-cp311-cp311-win_amd64.whl", hash = "sha256:a51033ff701fca756439d641c0ad09a41d9242fa69121c7d8769604a0a629825"}, + {file = "rpds_py-0.30.0-cp311-cp311-win_arm64.whl", hash = "sha256:47b0ef6231c58f506ef0b74d44e330405caa8428e770fec25329ed2cb971a229"}, + {file = "rpds_py-0.30.0-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:a161f20d9a43006833cd7068375a94d035714d73a172b681d8881820600abfad"}, + {file = "rpds_py-0.30.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:6abc8880d9d036ecaafe709079969f56e876fcf107f7a8e9920ba6d5a3878d05"}, + {file = "rpds_py-0.30.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ca28829ae5f5d569bb62a79512c842a03a12576375d5ece7d2cadf8abe96ec28"}, + {file = "rpds_py-0.30.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:a1010ed9524c73b94d15919ca4d41d8780980e1765babf85f9a2f90d247153dd"}, + {file = "rpds_py-0.30.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f8d1736cfb49381ba528cd5baa46f82fdc65c06e843dab24dd70b63d09121b3f"}, + {file = "rpds_py-0.30.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d948b135c4693daff7bc2dcfc4ec57237a29bd37e60c2fabf5aff2bbacf3e2f1"}, + {file = "rpds_py-0.30.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47f236970bccb2233267d89173d3ad2703cd36a0e2a6e92d0560d333871a3d23"}, + {file = "rpds_py-0.30.0-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:2e6ecb5a5bcacf59c3f912155044479af1d0b6681280048b338b28e364aca1f6"}, + {file = "rpds_py-0.30.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a8fa71a2e078c527c3e9dc9fc5a98c9db40bcc8a92b4e8858e36d329f8684b51"}, + {file = "rpds_py-0.30.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:73c67f2db7bc334e518d097c6d1e6fed021bbc9b7d678d6cc433478365d1d5f5"}, + {file = "rpds_py-0.30.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:5ba103fb455be00f3b1c2076c9d4264bfcb037c976167a6047ed82f23153f02e"}, + {file = "rpds_py-0.30.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:7cee9c752c0364588353e627da8a7e808a66873672bcb5f52890c33fd965b394"}, + {file = "rpds_py-0.30.0-cp312-cp312-win32.whl", hash = "sha256:1ab5b83dbcf55acc8b08fc62b796ef672c457b17dbd7820a11d6c52c06839bdf"}, + {file = "rpds_py-0.30.0-cp312-cp312-win_amd64.whl", hash = "sha256:a090322ca841abd453d43456ac34db46e8b05fd9b3b4ac0c78bcde8b089f959b"}, + {file = "rpds_py-0.30.0-cp312-cp312-win_arm64.whl", hash = "sha256:669b1805bd639dd2989b281be2cfd951c6121b65e729d9b843e9639ef1fd555e"}, + {file = "rpds_py-0.30.0-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:f83424d738204d9770830d35290ff3273fbb02b41f919870479fab14b9d303b2"}, + {file = "rpds_py-0.30.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:e7536cd91353c5273434b4e003cbda89034d67e7710eab8761fd918ec6c69cf8"}, + {file = "rpds_py-0.30.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2771c6c15973347f50fece41fc447c054b7ac2ae0502388ce3b6738cd366e3d4"}, + {file = "rpds_py-0.30.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:0a59119fc6e3f460315fe9d08149f8102aa322299deaa5cab5b40092345c2136"}, + {file = "rpds_py-0.30.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:76fec018282b4ead0364022e3c54b60bf368b9d926877957a8624b58419169b7"}, + {file = "rpds_py-0.30.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:692bef75a5525db97318e8cd061542b5a79812d711ea03dbc1f6f8dbb0c5f0d2"}, + {file = "rpds_py-0.30.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9027da1ce107104c50c81383cae773ef5c24d296dd11c99e2629dbd7967a20c6"}, + {file = "rpds_py-0.30.0-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:9cf69cdda1f5968a30a359aba2f7f9aa648a9ce4b580d6826437f2b291cfc86e"}, + {file = "rpds_py-0.30.0-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a4796a717bf12b9da9d3ad002519a86063dcac8988b030e405704ef7d74d2d9d"}, + {file = "rpds_py-0.30.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:5d4c2aa7c50ad4728a094ebd5eb46c452e9cb7edbfdb18f9e1221f597a73e1e7"}, + {file = "rpds_py-0.30.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:ba81a9203d07805435eb06f536d95a266c21e5b2dfbf6517748ca40c98d19e31"}, + {file = "rpds_py-0.30.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:945dccface01af02675628334f7cf49c2af4c1c904748efc5cf7bbdf0b579f95"}, + {file = "rpds_py-0.30.0-cp313-cp313-win32.whl", hash = "sha256:b40fb160a2db369a194cb27943582b38f79fc4887291417685f3ad693c5a1d5d"}, + {file = "rpds_py-0.30.0-cp313-cp313-win_amd64.whl", hash = "sha256:806f36b1b605e2d6a72716f321f20036b9489d29c51c91f4dd29a3e3afb73b15"}, + {file = "rpds_py-0.30.0-cp313-cp313-win_arm64.whl", hash = "sha256:d96c2086587c7c30d44f31f42eae4eac89b60dabbac18c7669be3700f13c3ce1"}, + {file = "rpds_py-0.30.0-cp313-cp313t-macosx_10_12_x86_64.whl", hash = "sha256:eb0b93f2e5c2189ee831ee43f156ed34e2a89a78a66b98cadad955972548be5a"}, + {file = "rpds_py-0.30.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:922e10f31f303c7c920da8981051ff6d8c1a56207dbdf330d9047f6d30b70e5e"}, + {file = "rpds_py-0.30.0-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cdc62c8286ba9bf7f47befdcea13ea0e26bf294bda99758fd90535cbaf408000"}, + {file = "rpds_py-0.30.0-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:47f9a91efc418b54fb8190a6b4aa7813a23fb79c51f4bb84e418f5476c38b8db"}, + {file = "rpds_py-0.30.0-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1f3587eb9b17f3789ad50824084fa6f81921bbf9a795826570bda82cb3ed91f2"}, + {file = "rpds_py-0.30.0-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:39c02563fc592411c2c61d26b6c5fe1e51eaa44a75aa2c8735ca88b0d9599daa"}, + {file = "rpds_py-0.30.0-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:51a1234d8febafdfd33a42d97da7a43f5dcb120c1060e352a3fbc0c6d36e2083"}, + {file = "rpds_py-0.30.0-cp313-cp313t-manylinux_2_31_riscv64.whl", hash = "sha256:eb2c4071ab598733724c08221091e8d80e89064cd472819285a9ab0f24bcedb9"}, + {file = "rpds_py-0.30.0-cp313-cp313t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:6bdfdb946967d816e6adf9a3d8201bfad269c67efe6cefd7093ef959683c8de0"}, + {file = "rpds_py-0.30.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:c77afbd5f5250bf27bf516c7c4a016813eb2d3e116139aed0096940c5982da94"}, + {file = "rpds_py-0.30.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:61046904275472a76c8c90c9ccee9013d70a6d0f73eecefd38c1ae7c39045a08"}, + {file = "rpds_py-0.30.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:4c5f36a861bc4b7da6516dbdf302c55313afa09b81931e8280361a4f6c9a2d27"}, + {file = "rpds_py-0.30.0-cp313-cp313t-win32.whl", hash = "sha256:3d4a69de7a3e50ffc214ae16d79d8fbb0922972da0356dcf4d0fdca2878559c6"}, + {file = "rpds_py-0.30.0-cp313-cp313t-win_amd64.whl", hash = "sha256:f14fc5df50a716f7ece6a80b6c78bb35ea2ca47c499e422aa4463455dd96d56d"}, + {file = "rpds_py-0.30.0-cp314-cp314-macosx_10_12_x86_64.whl", hash = "sha256:68f19c879420aa08f61203801423f6cd5ac5f0ac4ac82a2368a9fcd6a9a075e0"}, + {file = "rpds_py-0.30.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:ec7c4490c672c1a0389d319b3a9cfcd098dcdc4783991553c332a15acf7249be"}, + {file = "rpds_py-0.30.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f251c812357a3fed308d684a5079ddfb9d933860fc6de89f2b7ab00da481e65f"}, + {file = "rpds_py-0.30.0-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ac98b175585ecf4c0348fd7b29c3864bda53b805c773cbf7bfdaffc8070c976f"}, + {file = "rpds_py-0.30.0-cp314-cp314-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3e62880792319dbeb7eb866547f2e35973289e7d5696c6e295476448f5b63c87"}, + {file = "rpds_py-0.30.0-cp314-cp314-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4e7fc54e0900ab35d041b0601431b0a0eb495f0851a0639b6ef90f7741b39a18"}, + {file = "rpds_py-0.30.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47e77dc9822d3ad616c3d5759ea5631a75e5809d5a28707744ef79d7a1bcfcad"}, + {file = "rpds_py-0.30.0-cp314-cp314-manylinux_2_31_riscv64.whl", hash = "sha256:b4dc1a6ff022ff85ecafef7979a2c6eb423430e05f1165d6688234e62ba99a07"}, + {file = "rpds_py-0.30.0-cp314-cp314-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:4559c972db3a360808309e06a74628b95eaccbf961c335c8fe0d590cf587456f"}, + {file = "rpds_py-0.30.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:0ed177ed9bded28f8deb6ab40c183cd1192aa0de40c12f38be4d59cd33cb5c65"}, + {file = "rpds_py-0.30.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:ad1fa8db769b76ea911cb4e10f049d80bf518c104f15b3edb2371cc65375c46f"}, + {file = "rpds_py-0.30.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:46e83c697b1f1c72b50e5ee5adb4353eef7406fb3f2043d64c33f20ad1c2fc53"}, + {file = "rpds_py-0.30.0-cp314-cp314-win32.whl", hash = "sha256:ee454b2a007d57363c2dfd5b6ca4a5d7e2c518938f8ed3b706e37e5d470801ed"}, + {file = "rpds_py-0.30.0-cp314-cp314-win_amd64.whl", hash = "sha256:95f0802447ac2d10bcc69f6dc28fe95fdf17940367b21d34e34c737870758950"}, + {file = "rpds_py-0.30.0-cp314-cp314-win_arm64.whl", hash = "sha256:613aa4771c99f03346e54c3f038e4cc574ac09a3ddfb0e8878487335e96dead6"}, + {file = "rpds_py-0.30.0-cp314-cp314t-macosx_10_12_x86_64.whl", hash = "sha256:7e6ecfcb62edfd632e56983964e6884851786443739dbfe3582947e87274f7cb"}, + {file = "rpds_py-0.30.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:a1d0bc22a7cdc173fedebb73ef81e07faef93692b8c1ad3733b67e31e1b6e1b8"}, + {file = "rpds_py-0.30.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0d08f00679177226c4cb8c5265012eea897c8ca3b93f429e546600c971bcbae7"}, + {file = "rpds_py-0.30.0-cp314-cp314t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5965af57d5848192c13534f90f9dd16464f3c37aaf166cc1da1cae1fd5a34898"}, + {file = "rpds_py-0.30.0-cp314-cp314t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9a4e86e34e9ab6b667c27f3211ca48f73dba7cd3d90f8d5b11be56e5dbc3fb4e"}, + {file = "rpds_py-0.30.0-cp314-cp314t-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e5d3e6b26f2c785d65cc25ef1e5267ccbe1b069c5c21b8cc724efee290554419"}, + {file = "rpds_py-0.30.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:626a7433c34566535b6e56a1b39a7b17ba961e97ce3b80ec62e6f1312c025551"}, + {file = "rpds_py-0.30.0-cp314-cp314t-manylinux_2_31_riscv64.whl", hash = "sha256:acd7eb3f4471577b9b5a41baf02a978e8bdeb08b4b355273994f8b87032000a8"}, + {file = "rpds_py-0.30.0-cp314-cp314t-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:fe5fa731a1fa8a0a56b0977413f8cacac1768dad38d16b3a296712709476fbd5"}, + {file = "rpds_py-0.30.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:74a3243a411126362712ee1524dfc90c650a503502f135d54d1b352bd01f2404"}, + {file = "rpds_py-0.30.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:3e8eeb0544f2eb0d2581774be4c3410356eba189529a6b3e36bbbf9696175856"}, + {file = "rpds_py-0.30.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:dbd936cde57abfee19ab3213cf9c26be06d60750e60a8e4dd85d1ab12c8b1f40"}, + {file = "rpds_py-0.30.0-cp314-cp314t-win32.whl", hash = "sha256:dc824125c72246d924f7f796b4f63c1e9dc810c7d9e2355864b3c3a73d59ade0"}, + {file = "rpds_py-0.30.0-cp314-cp314t-win_amd64.whl", hash = "sha256:27f4b0e92de5bfbc6f86e43959e6edd1425c33b5e69aab0984a72047f2bcf1e3"}, + {file = "rpds_py-0.30.0-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:c2262bdba0ad4fc6fb5545660673925c2d2a5d9e2e0fb603aad545427be0fc58"}, + {file = "rpds_py-0.30.0-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:ee6af14263f25eedc3bb918a3c04245106a42dfd4f5c2285ea6f997b1fc3f89a"}, + {file = "rpds_py-0.30.0-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3adbb8179ce342d235c31ab8ec511e66c73faa27a47e076ccc92421add53e2bb"}, + {file = "rpds_py-0.30.0-pp311-pypy311_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:250fa00e9543ac9b97ac258bd37367ff5256666122c2d0f2bc97577c60a1818c"}, + {file = "rpds_py-0.30.0-pp311-pypy311_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9854cf4f488b3d57b9aaeb105f06d78e5529d3145b1e4a41750167e8c213c6d3"}, + {file = "rpds_py-0.30.0-pp311-pypy311_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:993914b8e560023bc0a8bf742c5f303551992dcb85e247b1e5c7f4a7d145bda5"}, + {file = "rpds_py-0.30.0-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:58edca431fb9b29950807e301826586e5bbf24163677732429770a697ffe6738"}, + {file = "rpds_py-0.30.0-pp311-pypy311_pp73-manylinux_2_31_riscv64.whl", hash = "sha256:dea5b552272a944763b34394d04577cf0f9bd013207bc32323b5a89a53cf9c2f"}, + {file = "rpds_py-0.30.0-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ba3af48635eb83d03f6c9735dfb21785303e73d22ad03d489e88adae6eab8877"}, + {file = "rpds_py-0.30.0-pp311-pypy311_pp73-musllinux_1_2_aarch64.whl", hash = "sha256:dff13836529b921e22f15cb099751209a60009731a68519630a24d61f0b1b30a"}, + {file = "rpds_py-0.30.0-pp311-pypy311_pp73-musllinux_1_2_i686.whl", hash = "sha256:1b151685b23929ab7beec71080a8889d4d6d9fa9a983d213f07121205d48e2c4"}, + {file = "rpds_py-0.30.0-pp311-pypy311_pp73-musllinux_1_2_x86_64.whl", hash = "sha256:ac37f9f516c51e5753f27dfdef11a88330f04de2d564be3991384b2f3535d02e"}, + {file = "rpds_py-0.30.0.tar.gz", hash = "sha256:dd8ff7cf90014af0c0f787eea34794ebf6415242ee1d6fa91eaba725cc441e84"}, +] + +[[package]] +name = "scikit-learn" +version = "1.8.0" +description = "A set of python modules for machine learning and data mining" +optional = false +python-versions = ">=3.11" +groups = ["main"] +files = [ + {file = "scikit_learn-1.8.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:146b4d36f800c013d267b29168813f7a03a43ecd2895d04861f1240b564421da"}, + {file = "scikit_learn-1.8.0-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:f984ca4b14914e6b4094c5d52a32ea16b49832c03bd17a110f004db3c223e8e1"}, + {file = "scikit_learn-1.8.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5e30adb87f0cc81c7690a84f7932dd66be5bac57cfe16b91cb9151683a4a2d3b"}, + {file = "scikit_learn-1.8.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:ada8121bcb4dac28d930febc791a69f7cb1673c8495e5eee274190b73a4559c1"}, + {file = "scikit_learn-1.8.0-cp311-cp311-win_amd64.whl", hash = "sha256:c57b1b610bd1f40ba43970e11ce62821c2e6569e4d74023db19c6b26f246cb3b"}, + {file = "scikit_learn-1.8.0-cp311-cp311-win_arm64.whl", hash = "sha256:2838551e011a64e3053ad7618dda9310175f7515f1742fa2d756f7c874c05961"}, + {file = "scikit_learn-1.8.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:5fb63362b5a7ddab88e52b6dbb47dac3fd7dafeee740dc6c8d8a446ddedade8e"}, + {file = "scikit_learn-1.8.0-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:5025ce924beccb28298246e589c691fe1b8c1c96507e6d27d12c5fadd85bfd76"}, + {file = "scikit_learn-1.8.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4496bb2cf7a43ce1a2d7524a79e40bc5da45cf598dbf9545b7e8316ccba47bb4"}, + {file = "scikit_learn-1.8.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:a0bcfe4d0d14aec44921545fd2af2338c7471de9cb701f1da4c9d85906ab847a"}, + {file = "scikit_learn-1.8.0-cp312-cp312-win_amd64.whl", hash = "sha256:35c007dedb2ffe38fe3ee7d201ebac4a2deccd2408e8621d53067733e3c74809"}, + {file = "scikit_learn-1.8.0-cp312-cp312-win_arm64.whl", hash = "sha256:8c497fff237d7b4e07e9ef1a640887fa4fb765647f86fbe00f969ff6280ce2bb"}, + {file = "scikit_learn-1.8.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:0d6ae97234d5d7079dc0040990a6f7aeb97cb7fa7e8945f1999a429b23569e0a"}, + {file = "scikit_learn-1.8.0-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:edec98c5e7c128328124a029bceb09eda2d526997780fef8d65e9a69eead963e"}, + {file = "scikit_learn-1.8.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:74b66d8689d52ed04c271e1329f0c61635bcaf5b926db9b12d58914cdc01fe57"}, + {file = "scikit_learn-1.8.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8fdf95767f989b0cfedb85f7ed8ca215d4be728031f56ff5a519ee1e3276dc2e"}, + {file = "scikit_learn-1.8.0-cp313-cp313-win_amd64.whl", hash = "sha256:2de443b9373b3b615aec1bb57f9baa6bb3a9bd093f1269ba95c17d870422b271"}, + {file = "scikit_learn-1.8.0-cp313-cp313-win_arm64.whl", hash = "sha256:eddde82a035681427cbedded4e6eff5e57fa59216c2e3e90b10b19ab1d0a65c3"}, + {file = "scikit_learn-1.8.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:7cc267b6108f0a1499a734167282c00c4ebf61328566b55ef262d48e9849c735"}, + {file = "scikit_learn-1.8.0-cp313-cp313t-macosx_12_0_arm64.whl", hash = "sha256:fe1c011a640a9f0791146011dfd3c7d9669785f9fed2b2a5f9e207536cf5c2fd"}, + {file = "scikit_learn-1.8.0-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:72358cce49465d140cc4e7792015bb1f0296a9742d5622c67e31399b75468b9e"}, + {file = "scikit_learn-1.8.0-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:80832434a6cc114f5219211eec13dcbc16c2bac0e31ef64c6d346cde3cf054cb"}, + {file = "scikit_learn-1.8.0-cp313-cp313t-win_amd64.whl", hash = "sha256:ee787491dbfe082d9c3013f01f5991658b0f38aa8177e4cd4bf434c58f551702"}, + {file = "scikit_learn-1.8.0-cp313-cp313t-win_arm64.whl", hash = "sha256:bf97c10a3f5a7543f9b88cbf488d33d175e9146115a451ae34568597ba33dcde"}, + {file = "scikit_learn-1.8.0-cp314-cp314-macosx_10_15_x86_64.whl", hash = "sha256:c22a2da7a198c28dd1a6e1136f19c830beab7fdca5b3e5c8bba8394f8a5c45b3"}, + {file = "scikit_learn-1.8.0-cp314-cp314-macosx_12_0_arm64.whl", hash = "sha256:6b595b07a03069a2b1740dc08c2299993850ea81cce4fe19b2421e0c970de6b7"}, + {file = "scikit_learn-1.8.0-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:29ffc74089f3d5e87dfca4c2c8450f88bdc61b0fc6ed5d267f3988f19a1309f6"}, + {file = "scikit_learn-1.8.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fb65db5d7531bccf3a4f6bec3462223bea71384e2cda41da0f10b7c292b9e7c4"}, + {file = "scikit_learn-1.8.0-cp314-cp314-win_amd64.whl", hash = "sha256:56079a99c20d230e873ea40753102102734c5953366972a71d5cb39a32bc40c6"}, + {file = "scikit_learn-1.8.0-cp314-cp314-win_arm64.whl", hash = "sha256:3bad7565bc9cf37ce19a7c0d107742b320c1285df7aab1a6e2d28780df167242"}, + {file = "scikit_learn-1.8.0-cp314-cp314t-macosx_10_15_x86_64.whl", hash = "sha256:4511be56637e46c25721e83d1a9cea9614e7badc7040c4d573d75fbe257d6fd7"}, + {file = "scikit_learn-1.8.0-cp314-cp314t-macosx_12_0_arm64.whl", hash = "sha256:a69525355a641bf8ef136a7fa447672fb54fe8d60cab5538d9eb7c6438543fb9"}, + {file = "scikit_learn-1.8.0-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c2656924ec73e5939c76ac4c8b026fc203b83d8900362eb2599d8aee80e4880f"}, + {file = "scikit_learn-1.8.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:15fc3b5d19cc2be65404786857f2e13c70c83dd4782676dd6814e3b89dc8f5b9"}, + {file = "scikit_learn-1.8.0-cp314-cp314t-win_amd64.whl", hash = "sha256:00d6f1d66fbcf4eba6e356e1420d33cc06c70a45bb1363cd6f6a8e4ebbbdece2"}, + {file = "scikit_learn-1.8.0-cp314-cp314t-win_arm64.whl", hash = "sha256:f28dd15c6bb0b66ba09728cf09fd8736c304be29409bd8445a080c1280619e8c"}, + {file = "scikit_learn-1.8.0.tar.gz", hash = "sha256:9bccbb3b40e3de10351f8f5068e105d0f4083b1a65fa07b6634fbc401a6287fd"}, +] + +[package.dependencies] +joblib = ">=1.3.0" +numpy = ">=1.24.1" +scipy = ">=1.10.0" +threadpoolctl = ">=3.2.0" + +[package.extras] +benchmark = ["matplotlib (>=3.6.1)", "memory_profiler (>=0.57.0)", "pandas (>=1.5.0)"] +build = ["cython (>=3.1.2)", "meson-python (>=0.17.1)", "numpy (>=1.24.1)", "scipy (>=1.10.0)"] +docs = ["Pillow (>=10.1.0)", "matplotlib (>=3.6.1)", "memory_profiler (>=0.57.0)", "numpydoc (>=1.2.0)", "pandas (>=1.5.0)", "plotly (>=5.18.0)", "polars (>=0.20.30)", "pooch (>=1.8.0)", "pydata-sphinx-theme (>=0.15.3)", "scikit-image (>=0.22.0)", "seaborn (>=0.13.0)", "sphinx (>=7.3.7)", "sphinx-copybutton (>=0.5.2)", "sphinx-design (>=0.6.0)", "sphinx-gallery (>=0.17.1)", "sphinx-prompt (>=1.4.0)", "sphinx-remove-toctrees (>=1.0.0.post1)", "sphinxcontrib-sass (>=0.3.4)", "sphinxext-opengraph (>=0.9.1)", "towncrier (>=24.8.0)"] +examples = ["matplotlib (>=3.6.1)", "pandas (>=1.5.0)", "plotly (>=5.18.0)", "pooch (>=1.8.0)", "scikit-image (>=0.22.0)", "seaborn (>=0.13.0)"] +install = ["joblib (>=1.3.0)", "numpy (>=1.24.1)", "scipy (>=1.10.0)", "threadpoolctl (>=3.2.0)"] +maintenance = ["conda-lock (==3.0.1)"] +tests = ["matplotlib (>=3.6.1)", "mypy (>=1.15)", "numpydoc (>=1.2.0)", "pandas (>=1.5.0)", "polars (>=0.20.30)", "pooch (>=1.8.0)", "pyamg (>=5.0.0)", "pyarrow (>=12.0.0)", "pytest (>=7.1.2)", "pytest-cov (>=2.9.0)", "ruff (>=0.11.7)"] + +[[package]] +name = "scipy" +version = "1.17.0" +description = "Fundamental algorithms for scientific computing in Python" +optional = false +python-versions = ">=3.11" +groups = ["main"] +files = [ + {file = "scipy-1.17.0-cp311-cp311-macosx_10_14_x86_64.whl", hash = "sha256:2abd71643797bd8a106dff97894ff7869eeeb0af0f7a5ce02e4227c6a2e9d6fd"}, + {file = "scipy-1.17.0-cp311-cp311-macosx_12_0_arm64.whl", hash = "sha256:ef28d815f4d2686503e5f4f00edc387ae58dfd7a2f42e348bb53359538f01558"}, + {file = "scipy-1.17.0-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:272a9f16d6bb4667e8b50d25d71eddcc2158a214df1b566319298de0939d2ab7"}, + {file = "scipy-1.17.0-cp311-cp311-macosx_14_0_x86_64.whl", hash = "sha256:7204fddcbec2fe6598f1c5fdf027e9f259106d05202a959a9f1aecf036adc9f6"}, + {file = "scipy-1.17.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:fc02c37a5639ee67d8fb646ffded6d793c06c5622d36b35cfa8fe5ececb8f042"}, + {file = "scipy-1.17.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:dac97a27520d66c12a34fd90a4fe65f43766c18c0d6e1c0a80f114d2260080e4"}, + {file = "scipy-1.17.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:ebb7446a39b3ae0fe8f416a9a3fdc6fba3f11c634f680f16a239c5187bc487c0"}, + {file = "scipy-1.17.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:474da16199f6af66601a01546144922ce402cb17362e07d82f5a6cf8f963e449"}, + {file = "scipy-1.17.0-cp311-cp311-win_amd64.whl", hash = "sha256:255c0da161bd7b32a6c898e7891509e8a9289f0b1c6c7d96142ee0d2b114c2ea"}, + {file = "scipy-1.17.0-cp311-cp311-win_arm64.whl", hash = "sha256:85b0ac3ad17fa3be50abd7e69d583d98792d7edc08367e01445a1e2076005379"}, + {file = "scipy-1.17.0-cp312-cp312-macosx_10_14_x86_64.whl", hash = "sha256:0d5018a57c24cb1dd828bcf51d7b10e65986d549f52ef5adb6b4d1ded3e32a57"}, + {file = "scipy-1.17.0-cp312-cp312-macosx_12_0_arm64.whl", hash = "sha256:88c22af9e5d5a4f9e027e26772cc7b5922fab8bcc839edb3ae33de404feebd9e"}, + {file = "scipy-1.17.0-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:f3cd947f20fe17013d401b64e857c6b2da83cae567adbb75b9dcba865abc66d8"}, + {file = "scipy-1.17.0-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:e8c0b331c2c1f531eb51f1b4fc9ba709521a712cce58f1aa627bc007421a5306"}, + {file = "scipy-1.17.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5194c445d0a1c7a6c1a4a4681b6b7c71baad98ff66d96b949097e7513c9d6742"}, + {file = "scipy-1.17.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:9eeb9b5f5997f75507814ed9d298ab23f62cf79f5a3ef90031b1ee2506abdb5b"}, + {file = "scipy-1.17.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:40052543f7bbe921df4408f46003d6f01c6af109b9e2c8a66dd1cf6cf57f7d5d"}, + {file = "scipy-1.17.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:0cf46c8013fec9d3694dc572f0b54100c28405d55d3e2cb15e2895b25057996e"}, + {file = "scipy-1.17.0-cp312-cp312-win_amd64.whl", hash = "sha256:0937a0b0d8d593a198cededd4c439a0ea216a3f36653901ea1f3e4be949056f8"}, + {file = "scipy-1.17.0-cp312-cp312-win_arm64.whl", hash = "sha256:f603d8a5518c7426414d1d8f82e253e454471de682ce5e39c29adb0df1efb86b"}, + {file = "scipy-1.17.0-cp313-cp313-macosx_10_14_x86_64.whl", hash = "sha256:65ec32f3d32dfc48c72df4291345dae4f048749bc8d5203ee0a3f347f96c5ce6"}, + {file = "scipy-1.17.0-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:1f9586a58039d7229ce77b52f8472c972448cded5736eaf102d5658bbac4c269"}, + {file = "scipy-1.17.0-cp313-cp313-macosx_14_0_arm64.whl", hash = "sha256:9fad7d3578c877d606b1150135c2639e9de9cecd3705caa37b66862977cc3e72"}, + {file = "scipy-1.17.0-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:423ca1f6584fc03936972b5f7c06961670dbba9f234e71676a7c7ccf938a0d61"}, + {file = "scipy-1.17.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:fe508b5690e9eaaa9467fc047f833af58f1152ae51a0d0aed67aa5801f4dd7d6"}, + {file = "scipy-1.17.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6680f2dfd4f6182e7d6db161344537da644d1cf85cf293f015c60a17ecf08752"}, + {file = "scipy-1.17.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:eec3842ec9ac9de5917899b277428886042a93db0b227ebbe3a333b64ec7643d"}, + {file = "scipy-1.17.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:d7425fcafbc09a03731e1bc05581f5fad988e48c6a861f441b7ab729a49a55ea"}, + {file = "scipy-1.17.0-cp313-cp313-win_amd64.whl", hash = "sha256:87b411e42b425b84777718cc41516b8a7e0795abfa8e8e1d573bf0ef014f0812"}, + {file = "scipy-1.17.0-cp313-cp313-win_arm64.whl", hash = "sha256:357ca001c6e37601066092e7c89cca2f1ce74e2a520ca78d063a6d2201101df2"}, + {file = "scipy-1.17.0-cp313-cp313t-macosx_10_14_x86_64.whl", hash = "sha256:ec0827aa4d36cb79ff1b81de898e948a51ac0b9b1c43e4a372c0508c38c0f9a3"}, + {file = "scipy-1.17.0-cp313-cp313t-macosx_12_0_arm64.whl", hash = "sha256:819fc26862b4b3c73a60d486dbb919202f3d6d98c87cf20c223511429f2d1a97"}, + {file = "scipy-1.17.0-cp313-cp313t-macosx_14_0_arm64.whl", hash = "sha256:363ad4ae2853d88ebcde3ae6ec46ccca903ea9835ee8ba543f12f575e7b07e4e"}, + {file = "scipy-1.17.0-cp313-cp313t-macosx_14_0_x86_64.whl", hash = "sha256:979c3a0ff8e5ba254d45d59ebd38cde48fce4f10b5125c680c7a4bfe177aab07"}, + {file = "scipy-1.17.0-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:130d12926ae34399d157de777472bf82e9061c60cc081372b3118edacafe1d00"}, + {file = "scipy-1.17.0-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6e886000eb4919eae3a44f035e63f0fd8b651234117e8f6f29bad1cd26e7bc45"}, + {file = "scipy-1.17.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:13c4096ac6bc31d706018f06a49abe0485f96499deb82066b94d19b02f664209"}, + {file = "scipy-1.17.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:cacbaddd91fcffde703934897c5cd2c7cb0371fac195d383f4e1f1c5d3f3bd04"}, + {file = "scipy-1.17.0-cp313-cp313t-win_amd64.whl", hash = "sha256:edce1a1cf66298cccdc48a1bdf8fb10a3bf58e8b58d6c3883dd1530e103f87c0"}, + {file = "scipy-1.17.0-cp313-cp313t-win_arm64.whl", hash = "sha256:30509da9dbec1c2ed8f168b8d8aa853bc6723fede1dbc23c7d43a56f5ab72a67"}, + {file = "scipy-1.17.0-cp314-cp314-macosx_10_14_x86_64.whl", hash = "sha256:c17514d11b78be8f7e6331b983a65a7f5ca1fd037b95e27b280921fe5606286a"}, + {file = "scipy-1.17.0-cp314-cp314-macosx_12_0_arm64.whl", hash = "sha256:4e00562e519c09da34c31685f6acc3aa384d4d50604db0f245c14e1b4488bfa2"}, + {file = "scipy-1.17.0-cp314-cp314-macosx_14_0_arm64.whl", hash = "sha256:f7df7941d71314e60a481e02d5ebcb3f0185b8d799c70d03d8258f6c80f3d467"}, + {file = "scipy-1.17.0-cp314-cp314-macosx_14_0_x86_64.whl", hash = "sha256:aabf057c632798832f071a8dde013c2e26284043934f53b00489f1773b33527e"}, + {file = "scipy-1.17.0-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a38c3337e00be6fd8a95b4ed66b5d988bac4ec888fd922c2ea9fe5fb1603dd67"}, + {file = "scipy-1.17.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:00fb5f8ec8398ad90215008d8b6009c9db9fa924fd4c7d6be307c6f945f9cd73"}, + {file = "scipy-1.17.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:f2a4942b0f5f7c23c7cd641a0ca1955e2ae83dedcff537e3a0259096635e186b"}, + {file = "scipy-1.17.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:dbf133ced83889583156566d2bdf7a07ff89228fe0c0cb727f777de92092ec6b"}, + {file = "scipy-1.17.0-cp314-cp314-win_amd64.whl", hash = "sha256:3625c631a7acd7cfd929e4e31d2582cf00f42fcf06011f59281271746d77e061"}, + {file = "scipy-1.17.0-cp314-cp314-win_arm64.whl", hash = "sha256:9244608d27eafe02b20558523ba57f15c689357c85bdcfe920b1828750aa26eb"}, + {file = "scipy-1.17.0-cp314-cp314t-macosx_10_14_x86_64.whl", hash = "sha256:2b531f57e09c946f56ad0b4a3b2abee778789097871fc541e267d2eca081cff1"}, + {file = "scipy-1.17.0-cp314-cp314t-macosx_12_0_arm64.whl", hash = "sha256:13e861634a2c480bd237deb69333ac79ea1941b94568d4b0efa5db5e263d4fd1"}, + {file = "scipy-1.17.0-cp314-cp314t-macosx_14_0_arm64.whl", hash = "sha256:eb2651271135154aa24f6481cbae5cc8af1f0dd46e6533fb7b56aa9727b6a232"}, + {file = "scipy-1.17.0-cp314-cp314t-macosx_14_0_x86_64.whl", hash = "sha256:c5e8647f60679790c2f5c76be17e2e9247dc6b98ad0d3b065861e082c56e078d"}, + {file = "scipy-1.17.0-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:5fb10d17e649e1446410895639f3385fd2bf4c3c7dfc9bea937bddcbc3d7b9ba"}, + {file = "scipy-1.17.0-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8547e7c57f932e7354a2319fab613981cde910631979f74c9b542bb167a8b9db"}, + {file = "scipy-1.17.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:33af70d040e8af9d5e7a38b5ed3b772adddd281e3062ff23fec49e49681c38cf"}, + {file = "scipy-1.17.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:f9eb55bb97d00f8b7ab95cb64f873eb0bf54d9446264d9f3609130381233483f"}, + {file = "scipy-1.17.0-cp314-cp314t-win_amd64.whl", hash = "sha256:1ff269abf702f6c7e67a4b7aad981d42871a11b9dd83c58d2d2ea624efbd1088"}, + {file = "scipy-1.17.0-cp314-cp314t-win_arm64.whl", hash = "sha256:031121914e295d9791319a1875444d55079885bbae5bdc9c5e0f2ee5f09d34ff"}, + {file = "scipy-1.17.0.tar.gz", hash = "sha256:2591060c8e648d8b96439e111ac41fd8342fdeff1876be2e19dea3fe8930454e"}, +] + +[package.dependencies] +numpy = ">=1.26.4,<2.7" + +[package.extras] +dev = ["click (<8.3.0)", "cython-lint (>=0.12.2)", "mypy (==1.10.0)", "pycodestyle", "ruff (>=0.12.0)", "spin", "types-psutil", "typing_extensions"] +doc = ["intersphinx_registry", "jupyterlite-pyodide-kernel", "jupyterlite-sphinx (>=0.19.1)", "jupytext", "linkify-it-py", "matplotlib (>=3.5)", "myst-nb (>=1.2.0)", "numpydoc", "pooch", "pydata-sphinx-theme (>=0.15.2)", "sphinx (>=5.0.0,<8.2.0)", "sphinx-copybutton", "sphinx-design (>=0.4.0)", "tabulate"] +test = ["Cython", "array-api-strict (>=2.3.1)", "asv", "gmpy2", "hypothesis (>=6.30)", "meson", "mpmath", "ninja ; sys_platform != \"emscripten\"", "pooch", "pytest (>=8.0.0)", "pytest-cov", "pytest-timeout", "pytest-xdist", "scikit-umfpack", "threadpoolctl"] + +[[package]] +name = "send2trash" +version = "2.0.0" +description = "Send file to trash natively under Mac OS X, Windows and Linux" +optional = false +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,!=3.7.*" +groups = ["main"] +files = [ + {file = "send2trash-2.0.0-py3-none-any.whl", hash = "sha256:e70d5ce41dbb890882cc78bc25d137478330b39a391e756fadf82e34da4d85b8"}, + {file = "send2trash-2.0.0.tar.gz", hash = "sha256:1761421da3f9930bfe51ed7c45343948573383ad4c27e3acebc91be324e7770d"}, +] + +[package.extras] +nativelib = ["pyobjc-framework-Cocoa ; sys_platform == \"darwin\"", "pywin32 ; sys_platform == \"win32\""] +objc = ["pyobjc-framework-Cocoa ; sys_platform == \"darwin\""] +win32 = ["pywin32 ; sys_platform == \"win32\""] + +[[package]] +name = "setuptools" +version = "80.9.0" +description = "Easily download, build, install, upgrade, and uninstall Python packages" +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "setuptools-80.9.0-py3-none-any.whl", hash = "sha256:062d34222ad13e0cc312a4c02d73f059e86a4acbfbdea8f8f76b28c99f306922"}, + {file = "setuptools-80.9.0.tar.gz", hash = "sha256:f36b47402ecde768dbfafc46e8e4207b4360c654f1f3bb84475f0a28628fb19c"}, +] + +[package.extras] +check = ["pytest-checkdocs (>=2.4)", "pytest-ruff (>=0.2.1) ; sys_platform != \"cygwin\"", "ruff (>=0.8.0) ; sys_platform != \"cygwin\""] +core = ["importlib_metadata (>=6) ; python_version < \"3.10\"", "jaraco.functools (>=4)", "jaraco.text (>=3.7)", "more_itertools", "more_itertools (>=8.8)", "packaging (>=24.2)", "platformdirs (>=4.2.2)", "tomli (>=2.0.1) ; python_version < \"3.11\"", "wheel (>=0.43.0)"] +cover = ["pytest-cov"] +doc = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "pygments-github-lexers (==0.0.5)", "pyproject-hooks (!=1.1)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-favicon", "sphinx-inline-tabs", "sphinx-lint", "sphinx-notfound-page (>=1,<2)", "sphinx-reredirects", "sphinxcontrib-towncrier", "towncrier (<24.7)"] +enabler = ["pytest-enabler (>=2.2)"] +test = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "ini2toml[lite] (>=0.14)", "jaraco.develop (>=7.21) ; python_version >= \"3.9\" and sys_platform != \"cygwin\"", "jaraco.envs (>=2.2)", "jaraco.path (>=3.7.2)", "jaraco.test (>=5.5)", "packaging (>=24.2)", "pip (>=19.1)", "pyproject-hooks (!=1.1)", "pytest (>=6,!=8.1.*)", "pytest-home (>=0.5)", "pytest-perf ; sys_platform != \"cygwin\"", "pytest-subprocess", "pytest-timeout", "pytest-xdist (>=3)", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel (>=0.44.0)"] +type = ["importlib_metadata (>=7.0.2) ; python_version < \"3.10\"", "jaraco.develop (>=7.21) ; sys_platform != \"cygwin\"", "mypy (==1.14.*)", "pytest-mypy"] + +[[package]] +name = "six" +version = "1.17.0" +description = "Python 2 and 3 compatibility utilities" +optional = false +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7" +groups = ["main"] +files = [ + {file = "six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274"}, + {file = "six-1.17.0.tar.gz", hash = "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81"}, +] + +[[package]] +name = "soupsieve" +version = "2.8.1" +description = "A modern CSS selector implementation for Beautiful Soup." +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "soupsieve-2.8.1-py3-none-any.whl", hash = "sha256:a11fe2a6f3d76ab3cf2de04eb339c1be5b506a8a47f2ceb6d139803177f85434"}, + {file = "soupsieve-2.8.1.tar.gz", hash = "sha256:4cf733bc50fa805f5df4b8ef4740fc0e0fa6218cf3006269afd3f9d6d80fd350"}, +] + +[[package]] +name = "stack-data" +version = "0.6.3" +description = "Extract data from python stack frames and tracebacks for informative displays" +optional = false +python-versions = "*" +groups = ["main"] +files = [ + {file = "stack_data-0.6.3-py3-none-any.whl", hash = "sha256:d5558e0c25a4cb0853cddad3d77da9891a08cb85dd9f9f91b9f8cd66e511e695"}, + {file = "stack_data-0.6.3.tar.gz", hash = "sha256:836a778de4fec4dcd1dcd89ed8abff8a221f58308462e1c4aa2a3cf30148f0b9"}, +] + +[package.dependencies] +asttokens = ">=2.1.0" +executing = ">=1.2.0" +pure-eval = "*" + +[package.extras] +tests = ["cython", "littleutils", "pygments", "pytest", "typeguard"] + +[[package]] +name = "sympy" +version = "1.14.0" +description = "Computer algebra system (CAS) in Python" +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "sympy-1.14.0-py3-none-any.whl", hash = "sha256:e091cc3e99d2141a0ba2847328f5479b05d94a6635cb96148ccb3f34671bd8f5"}, + {file = "sympy-1.14.0.tar.gz", hash = "sha256:d3d3fe8df1e5a0b42f0e7bdf50541697dbe7d23746e894990c030e2b05e72517"}, +] + +[package.dependencies] +mpmath = ">=1.1.0,<1.4" + +[package.extras] +dev = ["hypothesis (>=6.70.0)", "pytest (>=7.1.0)"] + +[[package]] +name = "termcolor" +version = "3.3.0" +description = "ANSI color formatting for output in terminal" +optional = false +python-versions = ">=3.10" +groups = ["main"] +files = [ + {file = "termcolor-3.3.0-py3-none-any.whl", hash = "sha256:cf642efadaf0a8ebbbf4bc7a31cec2f9b5f21a9f726f4ccbb08192c9c26f43a5"}, + {file = "termcolor-3.3.0.tar.gz", hash = "sha256:348871ca648ec6a9a983a13ab626c0acce02f515b9e1983332b17af7979521c5"}, +] + +[package.extras] +tests = ["pytest", "pytest-cov"] + +[[package]] +name = "terminado" +version = "0.18.1" +description = "Tornado websocket backend for the Xterm.js Javascript terminal emulator library." +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "terminado-0.18.1-py3-none-any.whl", hash = "sha256:a4468e1b37bb318f8a86514f65814e1afc977cf29b3992a4500d9dd305dcceb0"}, + {file = "terminado-0.18.1.tar.gz", hash = "sha256:de09f2c4b85de4765f7714688fff57d3e75bad1f909b589fde880460c753fd2e"}, +] + +[package.dependencies] +ptyprocess = {version = "*", markers = "os_name != \"nt\""} +pywinpty = {version = ">=1.1.0", markers = "os_name == \"nt\""} +tornado = ">=6.1.0" + +[package.extras] +docs = ["myst-parser", "pydata-sphinx-theme", "sphinx"] +test = ["pre-commit", "pytest (>=7.0)", "pytest-timeout"] +typing = ["mypy (>=1.6,<2.0)", "traitlets (>=5.11.1)"] + +[[package]] +name = "threadpoolctl" +version = "3.6.0" +description = "threadpoolctl" +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "threadpoolctl-3.6.0-py3-none-any.whl", hash = "sha256:43a0b8fd5a2928500110039e43a5eed8480b918967083ea48dc3ab9f13c4a7fb"}, + {file = "threadpoolctl-3.6.0.tar.gz", hash = "sha256:8ab8b4aa3491d812b623328249fab5302a68d2d71745c8a4c719a2fcaba9f44e"}, +] + +[[package]] +name = "tinycss2" +version = "1.4.0" +description = "A tiny CSS parser" +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "tinycss2-1.4.0-py3-none-any.whl", hash = "sha256:3a49cf47b7675da0b15d0c6e1df8df4ebd96e9394bb905a5775adb0d884c5289"}, + {file = "tinycss2-1.4.0.tar.gz", hash = "sha256:10c0972f6fc0fbee87c3edb76549357415e94548c1ae10ebccdea16fb404a9b7"}, +] + +[package.dependencies] +webencodings = ">=0.4" + +[package.extras] +doc = ["sphinx", "sphinx_rtd_theme"] +test = ["pytest", "ruff"] + +[[package]] +name = "torch" +version = "2.9.1" +description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration" +optional = false +python-versions = ">=3.10" +groups = ["main"] +files = [ + {file = "torch-2.9.1-cp310-cp310-manylinux_2_28_aarch64.whl", hash = "sha256:1cc208435f6c379f9b8fdfd5ceb5be1e3b72a6bdf1cb46c0d2812aa73472db9e"}, + {file = "torch-2.9.1-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:9fd35c68b3679378c11f5eb73220fdcb4e6f4592295277fbb657d31fd053237c"}, + {file = "torch-2.9.1-cp310-cp310-win_amd64.whl", hash = "sha256:2af70e3be4a13becba4655d6cc07dcfec7ae844db6ac38d6c1dafeb245d17d65"}, + {file = "torch-2.9.1-cp310-none-macosx_11_0_arm64.whl", hash = "sha256:a83b0e84cc375e3318a808d032510dde99d696a85fe9473fc8575612b63ae951"}, + {file = "torch-2.9.1-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:62b3fd888277946918cba4478cf849303da5359f0fb4e3bfb86b0533ba2eaf8d"}, + {file = "torch-2.9.1-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:d033ff0ac3f5400df862a51bdde9bad83561f3739ea0046e68f5401ebfa67c1b"}, + {file = "torch-2.9.1-cp311-cp311-win_amd64.whl", hash = "sha256:0d06b30a9207b7c3516a9e0102114024755a07045f0c1d2f2a56b1819ac06bcb"}, + {file = "torch-2.9.1-cp311-none-macosx_11_0_arm64.whl", hash = "sha256:52347912d868653e1528b47cafaf79b285b98be3f4f35d5955389b1b95224475"}, + {file = "torch-2.9.1-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:da5f6f4d7f4940a173e5572791af238cb0b9e21b1aab592bd8b26da4c99f1cd6"}, + {file = "torch-2.9.1-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:27331cd902fb4322252657f3902adf1c4f6acad9dcad81d8df3ae14c7c4f07c4"}, + {file = "torch-2.9.1-cp312-cp312-win_amd64.whl", hash = "sha256:81a285002d7b8cfd3fdf1b98aa8df138d41f1a8334fd9ea37511517cedf43083"}, + {file = "torch-2.9.1-cp312-none-macosx_11_0_arm64.whl", hash = "sha256:c0d25d1d8e531b8343bea0ed811d5d528958f1dcbd37e7245bc686273177ad7e"}, + {file = "torch-2.9.1-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:c29455d2b910b98738131990394da3e50eea8291dfeb4b12de71ecf1fdeb21cb"}, + {file = "torch-2.9.1-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:524de44cd13931208ba2c4bde9ec7741fd4ae6bfd06409a604fc32f6520c2bc9"}, + {file = "torch-2.9.1-cp313-cp313-win_amd64.whl", hash = "sha256:545844cc16b3f91e08ce3b40e9c2d77012dd33a48d505aed34b7740ed627a1b2"}, + {file = "torch-2.9.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:5be4bf7496f1e3ffb1dd44b672adb1ac3f081f204c5ca81eba6442f5f634df8e"}, + {file = "torch-2.9.1-cp313-cp313t-manylinux_2_28_aarch64.whl", hash = "sha256:30a3e170a84894f3652434b56d59a64a2c11366b0ed5776fab33c2439396bf9a"}, + {file = "torch-2.9.1-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:8301a7b431e51764629208d0edaa4f9e4c33e6df0f2f90b90e261d623df6a4e2"}, + {file = "torch-2.9.1-cp313-cp313t-win_amd64.whl", hash = "sha256:2e1c42c0ae92bf803a4b2409fdfed85e30f9027a66887f5e7dcdbc014c7531db"}, + {file = "torch-2.9.1-cp313-none-macosx_11_0_arm64.whl", hash = "sha256:2c14b3da5df416cf9cb5efab83aa3056f5b8cd8620b8fde81b4987ecab730587"}, + {file = "torch-2.9.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:1edee27a7c9897f4e0b7c14cfc2f3008c571921134522d5b9b5ec4ebbc69041a"}, + {file = "torch-2.9.1-cp314-cp314-manylinux_2_28_aarch64.whl", hash = "sha256:19d144d6b3e29921f1fc70503e9f2fc572cde6a5115c0c0de2f7ca8b1483e8b6"}, + {file = "torch-2.9.1-cp314-cp314-manylinux_2_28_x86_64.whl", hash = "sha256:c432d04376f6d9767a9852ea0def7b47a7bbc8e7af3b16ac9cf9ce02b12851c9"}, + {file = "torch-2.9.1-cp314-cp314-win_amd64.whl", hash = "sha256:d187566a2cdc726fc80138c3cdb260970fab1c27e99f85452721f7759bbd554d"}, + {file = "torch-2.9.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:cb10896a1f7fedaddbccc2017ce6ca9ecaaf990f0973bdfcf405439750118d2c"}, + {file = "torch-2.9.1-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:0a2bd769944991c74acf0c4ef23603b9c777fdf7637f115605a4b2d8023110c7"}, + {file = "torch-2.9.1-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:07c8a9660bc9414c39cac530ac83b1fb1b679d7155824144a40a54f4a47bfa73"}, + {file = "torch-2.9.1-cp314-cp314t-win_amd64.whl", hash = "sha256:c88d3299ddeb2b35dcc31753305612db485ab6f1823e37fb29451c8b2732b87e"}, +] + +[package.dependencies] +filelock = "*" +fsspec = ">=0.8.5" +jinja2 = "*" +networkx = ">=2.5.1" +nvidia-cublas-cu12 = {version = "12.8.4.1", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +nvidia-cuda-cupti-cu12 = {version = "12.8.90", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +nvidia-cuda-nvrtc-cu12 = {version = "12.8.93", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +nvidia-cuda-runtime-cu12 = {version = "12.8.90", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +nvidia-cudnn-cu12 = {version = "9.10.2.21", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +nvidia-cufft-cu12 = {version = "11.3.3.83", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +nvidia-cufile-cu12 = {version = "1.13.1.3", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +nvidia-curand-cu12 = {version = "10.3.9.90", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +nvidia-cusolver-cu12 = {version = "11.7.3.90", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +nvidia-cusparse-cu12 = {version = "12.5.8.93", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +nvidia-cusparselt-cu12 = {version = "0.7.1", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +nvidia-nccl-cu12 = {version = "2.27.5", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +nvidia-nvjitlink-cu12 = {version = "12.8.93", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +nvidia-nvshmem-cu12 = {version = "3.3.20", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +nvidia-nvtx-cu12 = {version = "12.8.90", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +setuptools = {version = "*", markers = "python_version >= \"3.12\""} +sympy = ">=1.13.3" +triton = {version = "3.5.1", markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\""} +typing-extensions = ">=4.10.0" + +[package.extras] +opt-einsum = ["opt-einsum (>=3.3)"] +optree = ["optree (>=0.13.0)"] +pyyaml = ["pyyaml"] + +[[package]] +name = "torchaudio" +version = "2.9.1" +description = "An audio package for PyTorch" +optional = false +python-versions = "*" +groups = ["main"] +files = [ + {file = "torchaudio-2.9.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:fd13541197e035338bd43225b2067532056486d357c661e12d49ace4fc37f8bb"}, + {file = "torchaudio-2.9.1-cp310-cp310-manylinux_2_28_aarch64.whl", hash = "sha256:31ec46b718b7caa0182221bfb42e2ad223947b752a996dcdc0388c34a678c966"}, + {file = "torchaudio-2.9.1-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:ee11695b367f64638b4a0340cc9abb9be2173c6537bfe4ab286c6fbff68a1444"}, + {file = "torchaudio-2.9.1-cp310-cp310-win_amd64.whl", hash = "sha256:acffac66d0908baa4ef16ce5ce6d2a7bc10c2534fce719b146744f306ba08c4a"}, + {file = "torchaudio-2.9.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:6e3f5943135701168d30196e2befd46290180cdbb9ee508b167730d51f43208f"}, + {file = "torchaudio-2.9.1-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:d192cf3b1b677f6666dad60caf0ce7bab66965751570c694645dd905a6c61724"}, + {file = "torchaudio-2.9.1-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:8327e21f51dced2b6de3ac6a63f04bae9be9bc213e151f85c76164568c7ebc3d"}, + {file = "torchaudio-2.9.1-cp311-cp311-win_amd64.whl", hash = "sha256:b41339a71b186bad238d94cfb68d4c202db0033088a7b824ce5484674bf67057"}, + {file = "torchaudio-2.9.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:7581ef170794c599aed55918e00d0acd9e5c9a0f19400c9a9a840955180365c5"}, + {file = "torchaudio-2.9.1-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:742f9d24db5f1f46d8c7e29c599fe55b866d92c4a8181fcb95eab12da225ceb0"}, + {file = "torchaudio-2.9.1-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:4533fdafba73d7bcfcb5f1225b2cc8974a290ed0fe54c44638d6f440e91b8999"}, + {file = "torchaudio-2.9.1-cp312-cp312-win_amd64.whl", hash = "sha256:923dccc67be4a6cbb45c3dcc2d69ee182bda75b09b69bc88cd3bcdfc739883a2"}, + {file = "torchaudio-2.9.1-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:bb69557484c92513a980027ec4cb314b0f43cf4442bbfd97440e66528dbad22d"}, + {file = "torchaudio-2.9.1-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:ba2799ceec5e4373a0aa26df30d608f1eaaefd8ac4a7ae0c3446f63106f5b5a5"}, + {file = "torchaudio-2.9.1-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:bc3c8e9a240bfad8bc61f769324a4f3ce5d60eec161369d457c595c35dbb10c7"}, + {file = "torchaudio-2.9.1-cp313-cp313-win_amd64.whl", hash = "sha256:13ee96ea9bbbc85e198cb671273af06f010e6981d7b912d001eef6bc74e23f4f"}, + {file = "torchaudio-2.9.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:9290f6a6409deb1f9113d5aef97ec646eeee6410b6bcc57ab8b57066b54da7c1"}, + {file = "torchaudio-2.9.1-cp313-cp313t-manylinux_2_28_aarch64.whl", hash = "sha256:eeae7ca60b64c4bfb78fbd104a089d072b151423d5d2f90da1da00787f03b800"}, + {file = "torchaudio-2.9.1-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:5f445e896215e6f7bba497dc68aab1e6cb077ae0ab3a90095067f16df6a9bb98"}, + {file = "torchaudio-2.9.1-cp313-cp313t-win_amd64.whl", hash = "sha256:c558ba70d548f7491245ed7a35310f6310d83fc7591f073ab5fed9fd38cef987"}, + {file = "torchaudio-2.9.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:69a582650279ee16ff9087f99b4234fe5d766e1bf7f0be352db5f46991854c1e"}, + {file = "torchaudio-2.9.1-cp314-cp314-manylinux_2_28_aarch64.whl", hash = "sha256:9c0d004f784c49078017f8217fdc901df0eb9724e50fb269b3a6c99b1d4eae75"}, + {file = "torchaudio-2.9.1-cp314-cp314-manylinux_2_28_x86_64.whl", hash = "sha256:d2743b28ff5538d5fdf2ff6657d392852ccdfe640ede46f566b2907ca32d8dca"}, + {file = "torchaudio-2.9.1-cp314-cp314-win_amd64.whl", hash = "sha256:234c7a9d4d0a6ed735cd37965baa9a89ca36bdbebece8a6a5ff7727acbb43026"}, + {file = "torchaudio-2.9.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:e13cb38971ac259fc4e102282a3e48f6df5f0ab00eb785ca5155e3392d1e86f1"}, + {file = "torchaudio-2.9.1-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:35c96ed1011b50eaf17948da173b09450cdc5bb7f908687571adb4a4c072c05e"}, + {file = "torchaudio-2.9.1-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:c220c4acf9914cce2dc81c3624d7c84008ef436dc31bcbb89e8f4416d3615a34"}, + {file = "torchaudio-2.9.1-cp314-cp314t-win_amd64.whl", hash = "sha256:cfd12934c7b54b41d4c79dfd26fbfe88fafa9cc5cc77c074e953bb7018d9322c"}, +] + +[package.dependencies] +torch = "2.9.1" + +[[package]] +name = "torchvision" +version = "0.24.1" +description = "image and video datasets and models for torch deep learning" +optional = false +python-versions = ">=3.10" +groups = ["main"] +files = [ + {file = "torchvision-0.24.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ded5e625788572e4e1c4d155d1bbc48805c113794100d70e19c76e39e4d53465"}, + {file = "torchvision-0.24.1-cp310-cp310-manylinux_2_28_aarch64.whl", hash = "sha256:54ed17c3d30e718e08d8da3fd5b30ea44b0311317e55647cb97077a29ecbc25b"}, + {file = "torchvision-0.24.1-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:f476da4e085b7307aaab6f540219617d46d5926aeda24be33e1359771c83778f"}, + {file = "torchvision-0.24.1-cp310-cp310-win_amd64.whl", hash = "sha256:fbdbdae5e540b868a681240b7dbd6473986c862445ee8a138680a6a97d6c34ff"}, + {file = "torchvision-0.24.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:056c525dc875f18fe8e9c27079ada166a7b2755cea5a2199b0bc7f1f8364e600"}, + {file = "torchvision-0.24.1-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:1e39619de698e2821d71976c92c8a9e50cdfd1e993507dfb340f2688bfdd8283"}, + {file = "torchvision-0.24.1-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:a0f106663e60332aa4fcb1ca2159ef8c3f2ed266b0e6df88de261048a840e0df"}, + {file = "torchvision-0.24.1-cp311-cp311-win_amd64.whl", hash = "sha256:a9308cdd37d8a42e14a3e7fd9d271830c7fecb150dd929b642f3c1460514599a"}, + {file = "torchvision-0.24.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:e48bf6a8ec95872eb45763f06499f87bd2fb246b9b96cb00aae260fda2f96193"}, + {file = "torchvision-0.24.1-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:7fb7590c737ebe3e1c077ad60c0e5e2e56bb26e7bccc3b9d04dbfc34fd09f050"}, + {file = "torchvision-0.24.1-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:66a98471fc18cad9064123106d810a75f57f0838eee20edc56233fd8484b0cc7"}, + {file = "torchvision-0.24.1-cp312-cp312-win_amd64.whl", hash = "sha256:4aa6cb806eb8541e92c9b313e96192c6b826e9eb0042720e2fa250d021079952"}, + {file = "torchvision-0.24.1-cp313-cp313-macosx_12_0_arm64.whl", hash = "sha256:8a6696db7fb71eadb2c6a48602106e136c785642e598eb1533e0b27744f2cce6"}, + {file = "torchvision-0.24.1-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:db2125c46f9cb25dc740be831ce3ce99303cfe60439249a41b04fd9f373be671"}, + {file = "torchvision-0.24.1-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:f035f0cacd1f44a8ff6cb7ca3627d84c54d685055961d73a1a9fb9827a5414c8"}, + {file = "torchvision-0.24.1-cp313-cp313-win_amd64.whl", hash = "sha256:16274823b93048e0a29d83415166a2e9e0bf4e1b432668357b657612a4802864"}, + {file = "torchvision-0.24.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:e3f96208b4bef54cd60e415545f5200346a65024e04f29a26cd0006dbf9e8e66"}, + {file = "torchvision-0.24.1-cp313-cp313t-manylinux_2_28_aarch64.whl", hash = "sha256:f231f6a4f2aa6522713326d0d2563538fa72d613741ae364f9913027fa52ea35"}, + {file = "torchvision-0.24.1-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:1540a9e7f8cf55fe17554482f5a125a7e426347b71de07327d5de6bfd8d17caa"}, + {file = "torchvision-0.24.1-cp313-cp313t-win_amd64.whl", hash = "sha256:d83e16d70ea85d2f196d678bfb702c36be7a655b003abed84e465988b6128938"}, + {file = "torchvision-0.24.1-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:cccf4b4fec7fdfcd3431b9ea75d1588c0a8596d0333245dafebee0462abe3388"}, + {file = "torchvision-0.24.1-cp314-cp314-manylinux_2_28_aarch64.whl", hash = "sha256:1b495edd3a8f9911292424117544f0b4ab780452e998649425d1f4b2bed6695f"}, + {file = "torchvision-0.24.1-cp314-cp314-manylinux_2_28_x86_64.whl", hash = "sha256:ab211e1807dc3e53acf8f6638df9a7444c80c0ad050466e8d652b3e83776987b"}, + {file = "torchvision-0.24.1-cp314-cp314-win_amd64.whl", hash = "sha256:18f9cb60e64b37b551cd605a3d62c15730c086362b40682d23e24b616a697d41"}, + {file = "torchvision-0.24.1-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:ec9d7379c519428395e4ffda4dbb99ec56be64b0a75b95989e00f9ec7ae0b2d7"}, + {file = "torchvision-0.24.1-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:af9201184c2712d808bd4eb656899011afdfce1e83721c7cb08000034df353fe"}, + {file = "torchvision-0.24.1-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:9ef95d819fd6df81bc7cc97b8f21a15d2c0d3ac5dbfaab5cbc2d2ce57114b19e"}, + {file = "torchvision-0.24.1-cp314-cp314t-win_amd64.whl", hash = "sha256:480b271d6edff83ac2e8d69bbb4cf2073f93366516a50d48f140ccfceedb002e"}, +] + +[package.dependencies] +numpy = "*" +pillow = ">=5.3.0,<8.3.dev0 || >=8.4.dev0" +torch = "2.9.1" + +[package.extras] +gdown = ["gdown (>=4.7.3)"] +scipy = ["scipy"] + +[[package]] +name = "tornado" +version = "6.5.4" +description = "Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed." +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "tornado-6.5.4-cp39-abi3-macosx_10_9_universal2.whl", hash = "sha256:d6241c1a16b1c9e4cc28148b1cda97dd1c6cb4fb7068ac1bedc610768dff0ba9"}, + {file = "tornado-6.5.4-cp39-abi3-macosx_10_9_x86_64.whl", hash = "sha256:2d50f63dda1d2cac3ae1fa23d254e16b5e38153758470e9956cbc3d813d40843"}, + {file = "tornado-6.5.4-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d1cf66105dc6acb5af613c054955b8137e34a03698aa53272dbda4afe252be17"}, + {file = "tornado-6.5.4-cp39-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:50ff0a58b0dc97939d29da29cd624da010e7f804746621c78d14b80238669335"}, + {file = "tornado-6.5.4-cp39-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e5fb5e04efa54cf0baabdd10061eb4148e0be137166146fff835745f59ab9f7f"}, + {file = "tornado-6.5.4-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:9c86b1643b33a4cd415f8d0fe53045f913bf07b4a3ef646b735a6a86047dda84"}, + {file = "tornado-6.5.4-cp39-abi3-musllinux_1_2_i686.whl", hash = "sha256:6eb82872335a53dd063a4f10917b3efd28270b56a33db69009606a0312660a6f"}, + {file = "tornado-6.5.4-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:6076d5dda368c9328ff41ab5d9dd3608e695e8225d1cd0fd1e006f05da3635a8"}, + {file = "tornado-6.5.4-cp39-abi3-win32.whl", hash = "sha256:1768110f2411d5cd281bac0a090f707223ce77fd110424361092859e089b38d1"}, + {file = "tornado-6.5.4-cp39-abi3-win_amd64.whl", hash = "sha256:fa07d31e0cd85c60713f2b995da613588aa03e1303d75705dca6af8babc18ddc"}, + {file = "tornado-6.5.4-cp39-abi3-win_arm64.whl", hash = "sha256:053e6e16701eb6cbe641f308f4c1a9541f91b6261991160391bfc342e8a551a1"}, + {file = "tornado-6.5.4.tar.gz", hash = "sha256:a22fa9047405d03260b483980635f0b041989d8bcc9a313f8fe18b411d84b1d7"}, +] + +[[package]] +name = "tqdm" +version = "4.67.1" +description = "Fast, Extensible Progress Meter" +optional = false +python-versions = ">=3.7" +groups = ["main"] +files = [ + {file = "tqdm-4.67.1-py3-none-any.whl", hash = "sha256:26445eca388f82e72884e0d580d5464cd801a3ea01e63e5601bdff9ba6a48de2"}, + {file = "tqdm-4.67.1.tar.gz", hash = "sha256:f8aef9c52c08c13a65f30ea34f4e5aac3fd1a34959879d7e59e63027286627f2"}, +] + +[package.dependencies] +colorama = {version = "*", markers = "platform_system == \"Windows\""} + +[package.extras] +dev = ["nbval", "pytest (>=6)", "pytest-asyncio (>=0.24)", "pytest-cov", "pytest-timeout"] +discord = ["requests"] +notebook = ["ipywidgets (>=6)"] +slack = ["slack-sdk"] +telegram = ["requests"] + +[[package]] +name = "traitlets" +version = "5.14.3" +description = "Traitlets Python configuration system" +optional = false +python-versions = ">=3.8" +groups = ["main"] +files = [ + {file = "traitlets-5.14.3-py3-none-any.whl", hash = "sha256:b74e89e397b1ed28cc831db7aea759ba6640cb3de13090ca145426688ff1ac4f"}, + {file = "traitlets-5.14.3.tar.gz", hash = "sha256:9ed0579d3502c94b4b3732ac120375cda96f923114522847de4b3bb98b96b6b7"}, +] + +[package.extras] +docs = ["myst-parser", "pydata-sphinx-theme", "sphinx"] +test = ["argcomplete (>=3.0.3)", "mypy (>=1.7.0)", "pre-commit", "pytest (>=7.0,<8.2)", "pytest-mock", "pytest-mypy-testing"] + +[[package]] +name = "triton" +version = "3.5.1" +description = "A language and compiler for custom Deep Learning operations" +optional = false +python-versions = "<3.15,>=3.10" +groups = ["main"] +markers = "platform_system == \"Linux\" and platform_machine == \"x86_64\"" +files = [ + {file = "triton-3.5.1-cp310-cp310-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f63e34dcb32d7bd3a1d0195f60f30d2aee8b08a69a0424189b71017e23dfc3d2"}, + {file = "triton-3.5.1-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5fc53d849f879911ea13f4a877243afc513187bc7ee92d1f2c0f1ba3169e3c94"}, + {file = "triton-3.5.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:da47169e30a779bade679ce78df4810fca6d78a955843d2ddb11f226adc517dc"}, + {file = "triton-3.5.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:61413522a48add32302353fdbaaf92daaaab06f6b5e3229940d21b5207f47579"}, + {file = "triton-3.5.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:275a045b6ed670dd1bd005c3e6c2d61846c74c66f4512d6f33cc027b11de8fd4"}, + {file = "triton-3.5.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d2c6b915a03888ab931a9fd3e55ba36785e1fe70cbea0b40c6ef93b20fc85232"}, + {file = "triton-3.5.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:56765ffe12c554cd560698398b8a268db1f616c120007bfd8829d27139abd24a"}, + {file = "triton-3.5.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f3f4346b6ebbd4fad18773f5ba839114f4826037c9f2f34e0148894cd5dd3dba"}, + {file = "triton-3.5.1-cp313-cp313t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:02c770856f5e407d24d28ddc66e33cf026e6f4d360dcb8b2fabe6ea1fc758621"}, + {file = "triton-3.5.1-cp313-cp313t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0b4d2c70127fca6a23e247f9348b8adde979d2e7a20391bfbabaac6aebc7e6a8"}, + {file = "triton-3.5.1-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f617aa7925f9ea9968ec2e1adaf93e87864ff51549c8f04ce658f29bbdb71e2d"}, + {file = "triton-3.5.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d0637b1efb1db599a8e9dc960d53ab6e4637db7d4ab6630a0974705d77b14b60"}, + {file = "triton-3.5.1-cp314-cp314t-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8932391d7f93698dfe5bc9bead77c47a24f97329e9f20c10786bb230a9083f56"}, + {file = "triton-3.5.1-cp314-cp314t-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bac7f7d959ad0f48c0e97d6643a1cc0fd5786fe61cb1f83b537c6b2d54776478"}, +] + +[package.extras] +build = ["cmake (>=3.20,<4.0)", "lit"] +tests = ["autopep8", "isort", "llnl-hatchet", "numpy", "pytest", "pytest-forked", "pytest-xdist", "scipy (>=1.7.1)"] +tutorials = ["matplotlib", "pandas", "tabulate"] + +[[package]] +name = "typing-extensions" +version = "4.15.0" +description = "Backported and Experimental Type Hints for Python 3.9+" +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "typing_extensions-4.15.0-py3-none-any.whl", hash = "sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548"}, + {file = "typing_extensions-4.15.0.tar.gz", hash = "sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466"}, +] + +[[package]] +name = "tzdata" +version = "2025.3" +description = "Provider of IANA time zone data" +optional = false +python-versions = ">=2" +groups = ["main"] +files = [ + {file = "tzdata-2025.3-py2.py3-none-any.whl", hash = "sha256:06a47e5700f3081aab02b2e513160914ff0694bce9947d6b76ebd6bf57cfc5d1"}, + {file = "tzdata-2025.3.tar.gz", hash = "sha256:de39c2ca5dc7b0344f2eba86f49d614019d29f060fc4ebc8a417896a620b56a7"}, +] + +[[package]] +name = "uri-template" +version = "1.3.0" +description = "RFC 6570 URI Template Processor" +optional = false +python-versions = ">=3.7" +groups = ["main"] +files = [ + {file = "uri-template-1.3.0.tar.gz", hash = "sha256:0e00f8eb65e18c7de20d595a14336e9f337ead580c70934141624b6d1ffdacc7"}, + {file = "uri_template-1.3.0-py3-none-any.whl", hash = "sha256:a44a133ea12d44a0c0f06d7d42a52d71282e77e2f937d8abd5655b8d56fc1363"}, +] + +[package.extras] +dev = ["flake8", "flake8-annotations", "flake8-bandit", "flake8-bugbear", "flake8-commas", "flake8-comprehensions", "flake8-continuation", "flake8-datetimez", "flake8-docstrings", "flake8-import-order", "flake8-literal", "flake8-modern-annotations", "flake8-noqa", "flake8-pyproject", "flake8-requirements", "flake8-typechecking-import", "flake8-use-fstring", "mypy", "pep8-naming", "types-PyYAML"] + +[[package]] +name = "urllib3" +version = "2.6.3" +description = "HTTP library with thread-safe connection pooling, file post, and more." +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "urllib3-2.6.3-py3-none-any.whl", hash = "sha256:bf272323e553dfb2e87d9bfd225ca7b0f467b919d7bbd355436d3fd37cb0acd4"}, + {file = "urllib3-2.6.3.tar.gz", hash = "sha256:1b62b6884944a57dbe321509ab94fd4d3b307075e0c2eae991ac71ee15ad38ed"}, +] + +[package.extras] +brotli = ["brotli (>=1.2.0) ; platform_python_implementation == \"CPython\"", "brotlicffi (>=1.2.0.0) ; platform_python_implementation != \"CPython\""] +h2 = ["h2 (>=4,<5)"] +socks = ["pysocks (>=1.5.6,!=1.5.7,<2.0)"] +zstd = ["backports-zstd (>=1.0.0) ; python_version < \"3.14\""] + +[[package]] +name = "wcwidth" +version = "0.2.14" +description = "Measures the displayed width of unicode strings in a terminal" +optional = false +python-versions = ">=3.6" +groups = ["main"] +files = [ + {file = "wcwidth-0.2.14-py2.py3-none-any.whl", hash = "sha256:a7bb560c8aee30f9957e5f9895805edd20602f2d7f720186dfd906e82b4982e1"}, + {file = "wcwidth-0.2.14.tar.gz", hash = "sha256:4d478375d31bc5395a3c55c40ccdf3354688364cd61c4f6adacaa9215d0b3605"}, +] + +[[package]] +name = "webcolors" +version = "25.10.0" +description = "A library for working with the color formats defined by HTML and CSS." +optional = false +python-versions = ">=3.10" +groups = ["main"] +files = [ + {file = "webcolors-25.10.0-py3-none-any.whl", hash = "sha256:032c727334856fc0b968f63daa252a1ac93d33db2f5267756623c210e57a4f1d"}, + {file = "webcolors-25.10.0.tar.gz", hash = "sha256:62abae86504f66d0f6364c2a8520de4a0c47b80c03fc3a5f1815fedbef7c19bf"}, +] + +[[package]] +name = "webencodings" +version = "0.5.1" +description = "Character encoding aliases for legacy web content" +optional = false +python-versions = "*" +groups = ["main"] +files = [ + {file = "webencodings-0.5.1-py2.py3-none-any.whl", hash = "sha256:a0af1213f3c2226497a97e2b3aa01a7e4bee4f403f95be16fc9acd2947514a78"}, + {file = "webencodings-0.5.1.tar.gz", hash = "sha256:b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923"}, +] + +[[package]] +name = "websocket-client" +version = "1.9.0" +description = "WebSocket client for Python with low level API options" +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "websocket_client-1.9.0-py3-none-any.whl", hash = "sha256:af248a825037ef591efbf6ed20cc5faa03d3b47b9e5a2230a529eeee1c1fc3ef"}, + {file = "websocket_client-1.9.0.tar.gz", hash = "sha256:9e813624b6eb619999a97dc7958469217c3176312b3a16a4bd1bc7e08a46ec98"}, +] + +[package.extras] +docs = ["Sphinx (>=6.0)", "myst-parser (>=2.0.0)", "sphinx_rtd_theme (>=1.1.0)"] +optional = ["python-socks", "wsaccel"] +test = ["pytest", "websockets"] + +[[package]] +name = "widgetsnbextension" +version = "4.0.15" +description = "Jupyter interactive widgets for Jupyter Notebook" +optional = false +python-versions = ">=3.7" +groups = ["main"] +files = [ + {file = "widgetsnbextension-4.0.15-py3-none-any.whl", hash = "sha256:8156704e4346a571d9ce73b84bee86a29906c9abfd7223b7228a28899ccf3366"}, + {file = "widgetsnbextension-4.0.15.tar.gz", hash = "sha256:de8610639996f1567952d763a5a41af8af37f2575a41f9852a38f947eb82a3b9"}, +] + +[metadata] +lock-version = "2.1" +python-versions = ">=3.11,<3.15" +content-hash = "0a4fddedd0b3be5c2d4f1e67e73a778af08fa42296ca140b2779b7641fcedf8c" diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..8da5014 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,28 @@ +[project] +name = "thesis" +version = "0.0.1" +description = "Моя диссертационная работа" +authors = [ + {name = "Zin"} +] +readme = "README.md" +requires-python = ">=3.11,<3.15" +dependencies = [ + "torch (==2.9.1)", + "torchvision (==0.24.1)", + "matplotlib (>=3.10.8,<4.0.0)", + "jupyterlab (>=4.5.1,<5.0.0)", + "ipykernel (>=7.1.0,<8.0.0)", + "torchaudio (>=2.9.1,<3.0.0)", + "numpy (>=2.4.1,<3.0.0)", + "pandas (>=2.3.3,<3.0.0)", + "scikit-learn (>=1.8.0,<2.0.0)", + "tqdm (>=4.67.1,<5.0.0)", + "jupyter (>=1.1.1,<2.0.0)", + "findingemo-light (>=1.0.0,<2.0.0)" +] + + +[build-system] +requires = ["poetry-core>=2.0.0,<3.0.0"] +build-backend = "poetry.core.masonry.api" diff --git a/pyvenv.cfg b/pyvenv.cfg new file mode 100644 index 0000000..759c99c --- /dev/null +++ b/pyvenv.cfg @@ -0,0 +1,8 @@ +home = /usr/bin +implementation = CPython +version_info = 3.12.3.final.0 +virtualenv = 20.31.2 +include-system-site-packages = false +base-prefix = /usr +base-exec-prefix = /usr +base-executable = /usr/bin/python3.12 diff --git a/share/applications/jupyterlab.desktop b/share/applications/jupyterlab.desktop new file mode 100644 index 0000000..93fe940 --- /dev/null +++ b/share/applications/jupyterlab.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=JupyterLab +Comment=Run JupyterLab +Exec=jupyter-lab %f +Terminal=true +Type=Application +Icon=jupyterlab +StartupNotify=true +MimeType=application/x-ipynb+json; +Categories=Development;Education; +Keywords=python; diff --git a/share/icons/hicolor/scalable/apps/jupyterlab.svg b/share/icons/hicolor/scalable/apps/jupyterlab.svg new file mode 100644 index 0000000..3e25e74 --- /dev/null +++ b/share/icons/hicolor/scalable/apps/jupyterlab.svg @@ -0,0 +1,164 @@ + + + + logo-5.svg + Created using Figma 0.90 + + + + + + + + + + + + + + logo-5.svg + + + + diff --git a/share/jupyter/kernels/python3/kernel.json b/share/jupyter/kernels/python3/kernel.json new file mode 100644 index 0000000..cca38a4 --- /dev/null +++ b/share/jupyter/kernels/python3/kernel.json @@ -0,0 +1,14 @@ +{ + "argv": [ + "python", + "-m", + "ipykernel_launcher", + "-f", + "{connection_file}" + ], + "display_name": "Python 3 (ipykernel)", + "language": "python", + "metadata": { + "debugger": true + } +} \ No newline at end of file diff --git a/share/jupyter/kernels/python3/logo-32x32.png b/share/jupyter/kernels/python3/logo-32x32.png new file mode 100644 index 0000000..be81330 Binary files /dev/null and b/share/jupyter/kernels/python3/logo-32x32.png differ diff --git a/share/jupyter/kernels/python3/logo-64x64.png b/share/jupyter/kernels/python3/logo-64x64.png new file mode 100644 index 0000000..eebbff6 Binary files /dev/null and b/share/jupyter/kernels/python3/logo-64x64.png differ diff --git a/share/jupyter/kernels/python3/logo-svg.svg b/share/jupyter/kernels/python3/logo-svg.svg new file mode 100644 index 0000000..467b07b --- /dev/null +++ b/share/jupyter/kernels/python3/logo-svg.svg @@ -0,0 +1,265 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/share/jupyter/lab/schemas/@jupyterlab/application-extension/commands.json b/share/jupyter/lab/schemas/@jupyterlab/application-extension/commands.json new file mode 100644 index 0000000..2375d6d --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/application-extension/commands.json @@ -0,0 +1,376 @@ +{ + "title": "Application Commands", + "description": "Application commands settings.", + "jupyter.lab.shortcuts": [ + { + "command": "application:activate-next-tab", + "keys": ["Ctrl Shift ]"], + "selector": "body" + }, + { + "command": "application:activate-previous-tab", + "keys": ["Ctrl Shift ["], + "selector": "body" + }, + { + "command": "application:activate-next-tab-bar", + "keys": ["Ctrl Shift ."], + "selector": "body" + }, + { + "command": "application:activate-previous-tab-bar", + "keys": ["Ctrl Shift ,"], + "selector": "body" + }, + { + "command": "application:close", + "keys": ["Alt W"], + "selector": ".jp-Activity" + }, + { + "command": "application:toggle-mode", + "keys": ["Accel Shift D"], + "selector": "body" + }, + { + "command": "application:toggle-left-area", + "keys": ["Accel B"], + "selector": "body" + }, + { + "command": "application:toggle-right-area", + "keys": ["Accel J"], + "selector": "body" + }, + { + "command": "application:toggle-presentation-mode", + "keys": [""], + "selector": "body" + }, + { + "command": "application:toggle-fullscreen-mode", + "keys": ["F11"], + "selector": "body" + }, + { + "command": "application:toggle-sidebar-widget", + "keys": ["Alt 1"], + "macKeys": [""], + "selector": "body", + "args": { + "side": "left", + "index": 0 + } + }, + { + "command": "application:toggle-sidebar-widget", + "keys": ["Alt 2"], + "macKeys": [""], + "selector": "body", + "args": { + "side": "left", + "index": 1 + } + }, + { + "command": "application:toggle-sidebar-widget", + "keys": ["Alt 3"], + "macKeys": [""], + "selector": "body", + "args": { + "side": "left", + "index": 2 + } + }, + { + "command": "application:toggle-sidebar-widget", + "keys": ["Alt 4"], + "macKeys": [""], + "selector": "body", + "args": { + "side": "left", + "index": 3 + } + }, + { + "command": "application:toggle-sidebar-widget", + "keys": ["Alt 5"], + "macKeys": [""], + "selector": "body", + "args": { + "side": "left", + "index": 4 + } + }, + { + "command": "application:toggle-sidebar-widget", + "keys": ["Alt 6"], + "macKeys": [""], + "selector": "body", + "args": { + "side": "left", + "index": 5 + } + }, + { + "command": "application:toggle-sidebar-widget", + "keys": ["Alt 7"], + "macKeys": [""], + "selector": "body", + "args": { + "side": "left", + "index": 6 + } + }, + { + "command": "application:toggle-sidebar-widget", + "keys": ["Alt 8"], + "macKeys": [""], + "selector": "body", + "args": { + "side": "left", + "index": 7 + } + }, + { + "command": "application:toggle-sidebar-widget", + "keys": ["Alt 9"], + "macKeys": [""], + "selector": "body", + "args": { + "side": "left", + "index": 8 + } + }, + { + "command": "application:toggle-sidebar-widget", + "keys": ["Alt 0"], + "macKeys": [""], + "selector": "body", + "args": { + "side": "left", + "index": 9 + } + }, + { + "command": "application:toggle-sidebar-widget", + "keys": ["Alt Shift 1"], + "macKeys": [""], + "selector": "body", + "args": { + "side": "right", + "index": 0 + } + }, + { + "command": "application:toggle-sidebar-widget", + "keys": ["Alt Shift 2"], + "macKeys": [""], + "selector": "body", + "args": { + "side": "right", + "index": 1 + } + }, + { + "command": "application:toggle-sidebar-widget", + "keys": ["Alt Shift 3"], + "macKeys": [""], + "selector": "body", + "args": { + "side": "right", + "index": 2 + } + }, + { + "command": "application:toggle-sidebar-widget", + "keys": ["Alt Shift 4"], + "macKeys": [""], + "selector": "body", + "args": { + "side": "right", + "index": 3 + } + }, + { + "command": "application:toggle-sidebar-widget", + "keys": ["Alt Shift 5"], + "macKeys": [""], + "selector": "body", + "args": { + "side": "right", + "index": 4 + } + }, + { + "command": "application:toggle-sidebar-widget", + "keys": ["Alt Shift 6"], + "macKeys": [""], + "selector": "body", + "args": { + "side": "right", + "index": 5 + } + }, + { + "command": "application:toggle-sidebar-widget", + "keys": ["Alt Shift 7"], + "macKeys": [""], + "selector": "body", + "args": { + "side": "right", + "index": 6 + } + }, + { + "command": "application:toggle-sidebar-widget", + "keys": ["Alt Shift 8"], + "macKeys": [""], + "selector": "body", + "args": { + "side": "right", + "index": 7 + } + }, + { + "command": "application:toggle-sidebar-widget", + "keys": ["Alt Shift 9"], + "macKeys": [""], + "selector": "body", + "args": { + "side": "right", + "index": 8 + } + }, + { + "command": "application:toggle-sidebar-widget", + "keys": ["Alt Shift 0"], + "macKeys": [""], + "selector": "body", + "args": { + "side": "right", + "index": 9 + } + } + ], + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "items": [ + { + "type": "separator", + "rank": 3 + }, + { + "command": "application:close", + "rank": 3 + }, + { + "command": "application:close-all", + "rank": 3.2 + } + ] + }, + { + "id": "jp-mainmenu-view", + "items": [ + { + "type": "submenu", + "rank": 1, + "submenu": { + "id": "jp-mainmenu-view-appearance", + "label": "Appearance", + "items": [ + { + "command": "application:toggle-mode", + "rank": 0 + }, + { + "command": "application:toggle-presentation-mode", + "rank": 0 + }, + { + "command": "application:toggle-fullscreen-mode", + "rank": 0 + }, + { + "type": "separator", + "rank": 10 + }, + { + "command": "application:toggle-left-area", + "rank": 11 + }, + { + "command": "application:toggle-side-tabbar", + "rank": 12, + "args": { + "side": "left" + } + }, + { + "command": "application:toggle-right-area", + "rank": 13 + }, + { + "command": "application:toggle-side-tabbar", + "rank": 14, + "args": { + "side": "right" + } + }, + { + "command": "application:toggle-header", + "rank": 15 + }, + { + "type": "separator", + "rank": 50 + }, + { + "command": "application:reset-layout", + "rank": 51 + } + ] + } + }, + { + "type": "separator", + "rank": 1 + } + ] + } + ], + "context": [ + { + "command": "application:close", + "selector": "#jp-main-dock-panel .lm-DockPanel-tabBar .lm-TabBar-tab", + "rank": 4 + }, + { + "command": "application:close-other-tabs", + "selector": "#jp-main-dock-panel .lm-DockPanel-tabBar .lm-TabBar-tab", + "rank": 4 + }, + { + "command": "application:close-all", + "selector": "#jp-main-dock-panel .lm-DockPanel-tabBar .lm-TabBar-tab", + "rank": 4 + }, + { + "command": "application:close-right-tabs", + "selector": "#jp-main-dock-panel .lm-DockPanel-tabBar .lm-TabBar-tab", + "rank": 5 + }, + { + "command": "__internal:context-menu-info", + "selector": "body", + "rank": 9007199254740991 + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/application-extension/context-menu.json b/share/jupyter/lab/schemas/@jupyterlab/application-extension/context-menu.json new file mode 100644 index 0000000..9e5dc0e --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/application-extension/context-menu.json @@ -0,0 +1,120 @@ +{ + "title": "Application Context Menu", + "description": "JupyterLab context menu settings.", + "jupyter.lab.setting-icon-label": "Application Context Menu", + "jupyter.lab.shortcuts": [], + "jupyter.lab.transform": true, + "properties": { + "contextMenu": { + "title": "The application context menu.", + "description": "Note: To disable a context menu item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable Download item on files:\n{\n \"contextMenu\": [\n {\n \"command\": \"filebrowser:download\",\n \"selector\": \".jp-DirListing-item[data-isdir=\\\"false\\\"]\",\n \"disabled\": true\n }\n ]\n}\n\nContext menu description:", + "items": { + "allOf": [ + { "$ref": "#/definitions/menuItem" }, + { + "properties": { + "selector": { + "description": "The CSS selector for the context menu item.", + "type": "string" + } + } + } + ] + }, + "type": "array", + "default": [] + }, + "disabled": { + "description": "Whether the application context (right-click) menu is disabled", + "type": "boolean", + "default": false + } + }, + "additionalProperties": false, + "definitions": { + "menu": { + "properties": { + "disabled": { + "description": "Whether the menu is disabled or not", + "type": "boolean", + "default": false + }, + "icon": { + "description": "Menu icon id", + "type": "string" + }, + "id": { + "description": "Menu unique id", + "type": "string", + "pattern": "[a-z][a-z0-9\\-_]+" + }, + "items": { + "description": "Menu items", + "type": "array", + "items": { + "$ref": "#/definitions/menuItem" + } + }, + "label": { + "description": "Menu label", + "type": "string" + }, + "mnemonic": { + "description": "Mnemonic index for the label", + "type": "number", + "minimum": -1, + "default": -1 + }, + "rank": { + "description": "Menu rank", + "type": "number", + "minimum": 0 + } + }, + "required": ["id"], + "additionalProperties": false, + "type": "object" + }, + "menuItem": { + "properties": { + "args": { + "description": "Command arguments", + "type": "object" + }, + "command": { + "description": "Command id", + "type": "string" + }, + "disabled": { + "description": "Whether the item is disabled or not", + "type": "boolean", + "default": false + }, + "type": { + "description": "Item type", + "type": "string", + "enum": ["command", "submenu", "separator"], + "default": "command" + }, + "rank": { + "description": "Item rank", + "type": "number", + "minimum": 0 + }, + "submenu": { + "description": "Submenu definition", + "oneOf": [ + { + "$ref": "#/definitions/menu" + }, + { + "type": "null" + } + ] + } + }, + "type": "object" + } + }, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/application-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/application-extension/package.json.orig new file mode 100644 index 0000000..fefe2e2 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/application-extension/package.json.orig @@ -0,0 +1,68 @@ +{ + "name": "@jupyterlab/application-extension", + "version": "4.5.1", + "description": "JupyterLab - Application 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.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/coreutils": "^6.5.1", + "@jupyterlab/property-inspector": "^4.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/statedb": "^4.5.1", + "@jupyterlab/statusbar": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@jupyterlab/ui-components": "^4.5.1", + "@lumino/algorithm": "^2.0.4", + "@lumino/commands": "^2.3.3", + "@lumino/coreutils": "^2.2.2", + "@lumino/disposable": "^2.1.5", + "@lumino/widgets": "^2.7.2", + "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/share/jupyter/lab/schemas/@jupyterlab/application-extension/property-inspector.json b/share/jupyter/lab/schemas/@jupyterlab/application-extension/property-inspector.json new file mode 100644 index 0000000..cb1367a --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/application-extension/property-inspector.json @@ -0,0 +1,27 @@ +{ + "title": "Property Inspector", + "description": "Property Inspector Settings.", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-view", + "items": [ + { + "command": "property-inspector:show-panel", + "rank": 2 + } + ] + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "property-inspector:show-panel", + "keys": ["Accel Shift U"], + "selector": "body" + } + ], + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/application-extension/shell.json b/share/jupyter/lab/schemas/@jupyterlab/application-extension/shell.json new file mode 100644 index 0000000..0bab5cb --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/application-extension/shell.json @@ -0,0 +1,96 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "title": "JupyterLab Shell", + "description": "JupyterLab Shell layout settings.", + "jupyter.lab.menus": { + "context": [ + { + "command": "sidebar:switch", + "selector": ".jp-SideBar .lm-TabBar-tab", + "rank": 500 + } + ] + }, + "properties": { + "hiddenMode": { + "type": "string", + "title": "Hidden mode of main panel widgets", + "description": "The method for hiding widgets in the main dock panel. Using `scale` will increase performance on Firefox but don't use it with Chrome, Chromium or Edge. Similar performance gains are seen with `contentVisibility` which is only available in Chromium-based browsers.", + "enum": ["display", "scale", "contentVisibility"], + "default": "display" + }, + "startMode": { + "enum": ["", "single", "multiple"], + "title": "Start mode: ``, `single` or `multiple`", + "description": "The mode under which JupyterLab should start. If empty, the mode will be imposed by the URL", + "default": "" + }, + "layout": { + "type": "object", + "title": "Customize shell widget positioning", + "description": "Overrides default widget position in the application layout\ne.g. to position terminals in the right sidebar in multiple documents mode and in the down are in single document mode, {\n \"single\": { \"Terminal\": { \"area\": \"down\" } },\n \"multiple\": { \"Terminal\": { \"area\": \"right\" } }\n}.", + "properties": { + "single": { + "$ref": "#/definitions/layout", + "default": { + "Linked Console": { "area": "down" }, + "Inspector": { "area": "down" }, + "Cloned Output": { "area": "down" } + } + }, + "multiple": { "$ref": "#/definitions/layout", "default": {} } + }, + "default": { + "single": { + "Linked Console": { "area": "down" }, + "Inspector": { "area": "down" }, + "Cloned Output": { "area": "down" } + }, + "multiple": {} + }, + "additionalProperties": false + } + }, + "additionalProperties": false, + "type": "object", + "definitions": { + "layout": { + "type": "object", + "properties": { + "[\\w-]+": { + "type": "object", + "properties": { + "area": { + "enum": ["main", "left", "right", "down"] + }, + "options": { + "$ref": "#/definitions/options" + } + }, + "additionalProperties": false + } + } + }, + "options": { + "type": "object", + "properties": { + "mode": { + "type": "string", + "enum": [ + "split-top", + "split-left", + "split-right", + "split-bottom", + "tab-before", + "tab-after" + ] + }, + "rank": { "type": "number", "minimum": 0 }, + "ref": { + "type": "string", + "minLength": 1 + } + } + } + } +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/application-extension/top-bar.json b/share/jupyter/lab/schemas/@jupyterlab/application-extension/top-bar.json new file mode 100644 index 0000000..036ca9d --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/application-extension/top-bar.json @@ -0,0 +1,80 @@ +{ + "title": "Top Bar", + "description": "Top Bar settings.", + "jupyter.lab.toolbars": { + "TopBar": [ + { + "name": "spacer", + "type": "spacer", + "rank": 50 + } + ] + }, + "jupyter.lab.transform": true, + "properties": { + "toolbar": { + "title": "Top bar items", + "description": "Note: To disable a item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable the user menu:\n{\n \"toolbar\": [\n {\n \"name\": \"user-menu\",\n \"disabled\": true\n }\n ]\n}\n\nTop bar description:", + "items": { + "$ref": "#/definitions/toolbarItem" + }, + "type": "array", + "default": [] + } + }, + "additionalProperties": false, + "type": "object", + "definitions": { + "toolbarItem": { + "properties": { + "name": { + "title": "Unique name", + "type": "string" + }, + "args": { + "title": "Command arguments", + "type": "object" + }, + "command": { + "title": "Command id", + "type": "string", + "default": "" + }, + "disabled": { + "title": "Whether the item is ignored or not", + "type": "boolean", + "default": false + }, + "icon": { + "title": "Item icon id", + "description": "If defined, it will override the command icon", + "type": "string" + }, + "label": { + "title": "Item label", + "description": "If defined, it will override the command label", + "type": "string" + }, + "caption": { + "title": "Item caption", + "description": "If defined, it will override the command caption", + "type": "string" + }, + "type": { + "title": "Item type", + "type": "string", + "enum": ["command", "spacer"] + }, + "rank": { + "title": "Item rank", + "type": "number", + "minimum": 0, + "default": 50 + } + }, + "required": ["name"], + "additionalProperties": false, + "type": "object" + } + } +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/kernels-settings.json b/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/kernels-settings.json new file mode 100644 index 0000000..3e26fe4 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/kernels-settings.json @@ -0,0 +1,27 @@ +{ + "title": "Kernels", + "description": "Kernels and kernel sessions settings", + "jupyter.lab.setting-icon": "ui-components:kernel", + "jupyter.lab.setting-icon-label": "Kernel", + "additionalProperties": false, + "properties": { + "showStatusBarItem": { + "type": "boolean", + "title": "Show the status bar item", + "description": "Whether to show the running kernels item in the status bar", + "default": true + }, + "commsOverSubshells": { + "type": "string", + "title": "Kernel Comms over subshells", + "description": "Whether comm messages should be sent to kernel subshells, if the kernel supports it.", + "default": "perCommTarget", + "oneOf": [ + { "const": "disabled", "title": "Disabled" }, + { "const": "perComm", "title": "One subshell per comm" }, + { "const": "perCommTarget", "title": "One subshell per comm-target" } + ] + } + }, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/notification.json b/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/notification.json new file mode 100644 index 0000000..ecb8f9c --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/notification.json @@ -0,0 +1,53 @@ +{ + "title": "Notifications", + "description": "Notifications settings.", + "jupyter.lab.setting-icon": "ui-components:bell", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-view", + "items": [ + { + "type": "separator", + "rank": 9.9 + }, + { + "command": "apputils:display-notifications", + "rank": 9.92 + }, + { + "type": "separator", + "rank": 9.99 + } + ] + } + ] + }, + "additionalProperties": false, + "properties": { + "checkForUpdates": { + "title": "Check for JupyterLab updates", + "description": "Whether to check for newer versions of JupyterLab or not. It requires `fetchNews` to be set to Always (`true`) to be active. If `true`, it will make a request to a website.", + "type": "boolean", + "default": true + }, + "doNotDisturbMode": { + "title": "Silence all notifications", + "description": "If `true`, no toast notifications will be automatically displayed.", + "type": "boolean", + "default": false + }, + "fetchNews": { + "title": "Fetch official Jupyter news", + "description": "Whether to fetch news from the Jupyter news feed. If Always (`true`), it will make a request to a website.", + "type": "string", + "oneOf": [ + { "const": "true", "title": "Always" }, + { "const": "false", "title": "Never" }, + { "const": "none", "title": "Ask (None)" } + ], + "default": "none" + } + }, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/package.json.orig new file mode 100644 index 0000000..4a355d4 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/package.json.orig @@ -0,0 +1,76 @@ +{ + "name": "@jupyterlab/apputils-extension", + "version": "4.5.1", + "description": "JupyterLab - Application Utilities 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/**/*" + ], + "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", + "style/*.css", + "style/images/*.svg", + "schema/*.json", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/coreutils": "^6.5.1", + "@jupyterlab/docregistry": "^4.5.1", + "@jupyterlab/mainmenu": "^4.5.1", + "@jupyterlab/rendermime-interfaces": "^3.13.1", + "@jupyterlab/services": "^7.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/statedb": "^4.5.1", + "@jupyterlab/statusbar": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@jupyterlab/ui-components": "^4.5.1", + "@jupyterlab/workspaces": "^4.5.1", + "@lumino/algorithm": "^2.0.4", + "@lumino/commands": "^2.3.3", + "@lumino/coreutils": "^2.2.2", + "@lumino/disposable": "^2.1.5", + "@lumino/domutils": "^2.0.4", + "@lumino/polling": "^2.1.5", + "@lumino/widgets": "^2.7.2", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "react-toastify": "^9.0.8" + }, + "devDependencies": { + "rimraf": "~5.0.5", + "typescript": "~5.5.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/palette.json b/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/palette.json new file mode 100644 index 0000000..17c341e --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/palette.json @@ -0,0 +1,40 @@ +{ + "title": "Command Palette", + "description": "Command palette settings.", + "jupyter.lab.setting-icon": "ui-components:palette", + "jupyter.lab.setting-icon-label": "Command Palette", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-view", + "items": [ + { + "command": "apputils:activate-command-palette", + "rank": 0 + }, + { + "type": "separator", + "rank": 0 + } + ] + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "apputils:activate-command-palette", + "keys": ["Accel Shift C"], + "selector": "body" + } + ], + "properties": { + "modal": { + "title": "Modal Command Palette", + "description": "Whether the command palette should be modal or in the left panel.", + "type": "boolean", + "default": true + } + }, + "type": "object", + "additionalProperties": false +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/print.json b/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/print.json new file mode 100644 index 0000000..7490b45 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/print.json @@ -0,0 +1,31 @@ +{ + "title": "Print", + "description": "Print settings.", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "items": [ + { + "type": "separator", + "rank": 98 + }, + { + "command": "apputils:print", + "rank": 98 + } + ] + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "apputils:print", + "keys": ["Accel P"], + "selector": "body" + } + ], + "additionalProperties": false, + "properties": {}, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/sanitizer.json b/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/sanitizer.json new file mode 100644 index 0000000..dbcc5d8 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/sanitizer.json @@ -0,0 +1,31 @@ +{ + "title": "HTML Sanitizer", + "description": "HTML Sanitizer settings.", + "jupyter.lab.setting-icon": "ui-components:html5", + "additionalProperties": false, + "properties": { + "allowedSchemes": { + "title": "Allowed URL Scheme", + "description": "Scheme allowed by the HTML sanitizer.", + "type": "array", + "uniqueItems": true, + "items": { + "type": "string" + }, + "default": ["http", "https", "ftp", "mailto", "tel"] + }, + "autolink": { + "type": "boolean", + "title": "Autolink URL replacement", + "description": "Whether to replace URLs with links or not.", + "default": true + }, + "allowNamedProperties": { + "type": "boolean", + "title": "Allow named properties", + "description": "Whether to allow untrusted elements to include `name` and `id` attributes. These attributes are stripped by default to prevent DOM clobbering attacks.", + "default": false + } + }, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/sessionDialogs.json b/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/sessionDialogs.json new file mode 100644 index 0000000..061bbd7 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/sessionDialogs.json @@ -0,0 +1,14 @@ +{ + "title": "Kernel dialogs", + "description": "Kernel dialogs settings.", + "additionalProperties": false, + "properties": { + "skipKernelRestartDialog": { + "title": "Skip kernel restart Dialog", + "description": "Whether the kernel restart confirmation dialog is skipped when restarting the kernel.", + "type": "boolean", + "default": false + } + }, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/themes.json b/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/themes.json new file mode 100644 index 0000000..4582572 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/themes.json @@ -0,0 +1,155 @@ +{ + "title": "Theme", + "jupyter.lab.setting-icon-label": "Theme Manager", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-settings", + "items": [ + { + "type": "submenu", + "submenu": { + "id": "jp-mainmenu-settings-apputilstheme", + "label": "Theme", + "items": [ + { "type": "separator" }, + { + "command": "apputils:adaptive-theme" + }, + { "type": "separator" }, + { + "command": "apputils:theme-scrollbars" + }, + { "type": "separator" }, + { + "command": "apputils:incr-font-size", + "args": { + "key": "code-font-size" + } + }, + { + "command": "apputils:decr-font-size", + "args": { + "key": "code-font-size" + } + }, + { "type": "separator" }, + { + "command": "apputils:incr-font-size", + "args": { + "key": "content-font-size1" + } + }, + { + "command": "apputils:decr-font-size", + "args": { + "key": "content-font-size1" + } + }, + { "type": "separator" }, + { + "command": "apputils:incr-font-size", + "args": { + "key": "ui-font-size1" + } + }, + { + "command": "apputils:decr-font-size", + "args": { + "key": "ui-font-size1" + } + } + ] + }, + "rank": 0 + } + ] + } + ] + }, + "description": "Theme manager settings.", + "type": "object", + "additionalProperties": false, + "definitions": { + "cssOverrides": { + "type": "object", + "additionalProperties": false, + "description": "The description field of each item is the CSS property that will be used to validate an override's value", + "properties": { + "code-font-family": { + "type": ["string", "null"], + "description": "font-family" + }, + "code-font-size": { + "type": ["string", "null"], + "description": "font-size" + }, + + "content-font-family": { + "type": ["string", "null"], + "description": "font-family" + }, + "content-font-size1": { + "type": ["string", "null"], + "description": "font-size" + }, + + "ui-font-family": { + "type": ["string", "null"], + "description": "font-family" + }, + "ui-font-size1": { + "type": ["string", "null"], + "description": "font-size" + } + } + } + }, + "properties": { + "theme": { + "type": "string", + "title": "Selected Theme", + "description": "Application-level visual styling theme. Ignored when Adaptive Theme is enabled.", + "default": "JupyterLab Light" + }, + "adaptive-theme": { + "type": "boolean", + "title": "Adaptive Theme", + "description": "Synchronize visual styling theme with system settings", + "default": false + }, + "preferred-light-theme": { + "type": "string", + "title": "Preferred Light Theme", + "description": "Application-level light visual styling theme. Ignored when Adaptive Theme is disabled.", + "default": "JupyterLab Light" + }, + "preferred-dark-theme": { + "type": "string", + "title": "Preferred Dark Theme", + "description": "Application-level dark visual styling theme. Ignored when Adaptive Theme is disabled.", + "default": "JupyterLab Dark" + }, + "theme-scrollbars": { + "type": "boolean", + "title": "Scrollbar Theming", + "description": "Enable/disable styling of the application scrollbars", + "default": false + }, + "overrides": { + "title": "Theme CSS Overrides", + "description": "Override theme CSS variables by setting key-value pairs here", + "$ref": "#/definitions/cssOverrides", + "default": { + "code-font-family": null, + "code-font-size": null, + + "content-font-family": null, + "content-font-size1": null, + + "ui-font-family": null, + "ui-font-size1": null + } + } + } +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/utilityCommands.json b/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/utilityCommands.json new file mode 100644 index 0000000..b6ce4f5 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/utilityCommands.json @@ -0,0 +1,35 @@ +{ + "title": "Shortcuts Help", + "description": "Shortcut help settings.", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-help", + "items": [ + { + "type": "separator", + "rank": 0.1 + }, + { + "command": "apputils:display-shortcuts", + "rank": 0.1 + }, + { + "type": "separator", + "rank": 0.1 + } + ] + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "apputils:display-shortcuts", + "keys": ["Accel Shift H"], + "selector": "body" + } + ], + "properties": {}, + "type": "object", + "additionalProperties": false +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/cell-toolbar-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/cell-toolbar-extension/package.json.orig new file mode 100644 index 0000000..291594a --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/cell-toolbar-extension/package.json.orig @@ -0,0 +1,55 @@ +{ + "name": "@jupyterlab/cell-toolbar-extension", + "version": "4.5.1", + "description": "Extension for cell toolbar adapted from jlab-enhanced-cell-toolbar", + "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 -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/cell-toolbar": "^4.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/translation": "^4.5.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/share/jupyter/lab/schemas/@jupyterlab/cell-toolbar-extension/plugin.json b/share/jupyter/lab/schemas/@jupyterlab/cell-toolbar-extension/plugin.json new file mode 100644 index 0000000..b3b7b4f --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/cell-toolbar-extension/plugin.json @@ -0,0 +1,101 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "title": "Cell Toolbar", + "description": "Cell Toolbar Settings.", + "jupyter.lab.toolbars": { + "Cell": [ + { + "name": "duplicate-cell", + "command": "notebook:duplicate-below" + }, + { "name": "move-cell-up", "command": "notebook:move-cell-up" }, + { "name": "move-cell-down", "command": "notebook:move-cell-down" }, + { + "name": "insert-cell-above", + "command": "notebook:insert-cell-above" + }, + { + "name": "insert-cell-below", + "command": "notebook:insert-cell-below" + }, + { + "command": "notebook:delete-cell", + "icon": "ui-components:delete", + "name": "delete-cell" + } + ] + }, + "jupyter.lab.transform": true, + "properties": { + "showToolbar": { + "title": "Show cell toolbar", + "description": "Show a toolbar inside the active cell, if there is enough room for one", + "type": "boolean", + "default": true + }, + "toolbar": { + "title": "List of toolbar items", + "description": "An item is defined by a 'name', a 'command' name, and an 'icon' name", + "type": "array", + "items": { + "$ref": "#/definitions/toolbarItem" + }, + "default": [] + } + }, + "additionalProperties": false, + "type": "object", + "definitions": { + "toolbarItem": { + "properties": { + "name": { + "title": "Unique name", + "type": "string" + }, + "args": { + "title": "Command arguments", + "type": "object" + }, + "command": { + "title": "Command id", + "type": "string", + "default": "" + }, + "disabled": { + "title": "Whether the item is ignored or not", + "type": "boolean", + "default": false + }, + "icon": { + "title": "Item icon id", + "description": "If defined, it will override the command icon", + "type": "string" + }, + "label": { + "title": "Item label", + "description": "If defined, it will override the command label", + "type": "string" + }, + "caption": { + "title": "Item caption", + "description": "If defined, it will override the command caption", + "type": "string" + }, + "type": { + "title": "Item type", + "type": "string", + "enum": ["command", "spacer"] + }, + "rank": { + "title": "Item rank", + "type": "number", + "minimum": 0, + "default": 50 + } + }, + "required": ["name"], + "additionalProperties": false, + "type": "object" + } + } +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/celltags-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/celltags-extension/package.json.orig new file mode 100644 index 0000000..ec5dde2 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/celltags-extension/package.json.orig @@ -0,0 +1,63 @@ +{ + "name": "@jupyterlab/celltags-extension", + "version": "4.5.1", + "description": "An extension for manipulating tags in cell metadata", + "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", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.{d.ts,js,js.map}", + "style/*.css", + "style/index.js", + "src/**/*.{ts,tsx}", + "schema/*.json" + ], + "scripts": { + "build": "tsc", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.5.1", + "@jupyterlab/notebook": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@jupyterlab/ui-components": "^4.5.1", + "@lumino/algorithm": "^2.0.4", + "@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/share/jupyter/lab/schemas/@jupyterlab/celltags-extension/plugin.json b/share/jupyter/lab/schemas/@jupyterlab/celltags-extension/plugin.json new file mode 100644 index 0000000..09acd9c --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/celltags-extension/plugin.json @@ -0,0 +1,33 @@ +{ + "type": "object", + "title": "Common tools", + "description": "Setting for the common tools", + "jupyter.lab.metadataforms": [ + { + "id": "commonToolsSection", + "label": "Common tools", + "metadataSchema": { + "type": "object", + "properties": { + "/tags": { + "title": "Cell tag", + "type": "array", + "default": [], + "items": { + "type": "string" + } + } + } + }, + "uiSchema": { + "ui:order": ["_CELL-TOOL", "/tags", "*"] + }, + "metadataOptions": { + "/tags": { + "customRenderer": "@jupyterlab/celltags-extension:plugin.renderer" + } + } + } + ], + "additionalProperties": false +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/codemirror-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/codemirror-extension/package.json.orig new file mode 100644 index 0000000..34b091a --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/codemirror-extension/package.json.orig @@ -0,0 +1,75 @@ +{ + "name": "@jupyterlab/codemirror-extension", + "version": "4.5.1", + "description": "JupyterLab - CodeMirror Provider 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": { + "@codemirror/commands": "^6.8.1", + "@codemirror/lang-markdown": "^6.3.2", + "@codemirror/language": "^6.11.0", + "@codemirror/legacy-modes": "^6.5.1", + "@codemirror/search": "^6.5.10", + "@codemirror/view": "^6.38.1", + "@jupyter/ydoc": "^3.1.0", + "@jupyterlab/application": "^4.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/codeeditor": "^4.5.1", + "@jupyterlab/codemirror": "^4.5.1", + "@jupyterlab/notebook": "^4.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/statusbar": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@jupyterlab/ui-components": "^4.5.1", + "@lumino/coreutils": "^2.2.2", + "@lumino/widgets": "^2.7.2", + "@rjsf/utils": "^5.13.4", + "@rjsf/validator-ajv8": "^5.13.4", + "react": "^18.2.0" + }, + "devDependencies": { + "@types/react": "^18.0.26", + "rimraf": "~5.0.5", + "typescript": "~5.5.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/codemirror-extension/plugin.json b/share/jupyter/lab/schemas/@jupyterlab/codemirror-extension/plugin.json new file mode 100644 index 0000000..ed8ded2 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/codemirror-extension/plugin.json @@ -0,0 +1,85 @@ +{ + "jupyter.lab.setting-icon": "ui-components:text-editor", + "jupyter.lab.setting-icon-label": "CodeMirror", + "jupyter.lab.shortcuts": [ + { + "command": "codemirror:delete-line", + "keys": ["Accel D"], + "selector": ".cm-content" + }, + { + "command": "codemirror:delete-line", + "keys": ["Accel Shift K"], + "selector": ".cm-content" + }, + { + "command": "codemirror:toggle-block-comment", + "keys": ["Alt A"], + "selector": ".cm-content" + }, + { + "command": "codemirror:toggle-comment", + "keys": ["Accel /"], + "selector": ".cm-content" + }, + { + "command": "codemirror:select-next-occurrence", + "keys": ["Accel Shift D"], + "selector": ".cm-content" + } + ], + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-view", + "items": [ + { + "type": "submenu", + "rank": 10, + "submenu": { + "id": "jp-mainmenu-codefold", + "label": "Code Folding", + "items": [ + { + "command": "codemirror:fold-current", + "rank": 1 + }, + { + "command": "codemirror:unfold-current", + "rank": 2 + }, + { + "command": "codemirror:fold-subregions", + "rank": 3 + }, + { + "command": "codemirror:unfold-subregions", + "rank": 4 + }, + { + "command": "codemirror:fold-all", + "rank": 5 + }, + { + "command": "codemirror:unfold-all", + "rank": 6 + } + ] + } + } + ] + } + ] + }, + "title": "CodeMirror", + "description": "Text editor settings for all CodeMirror editors.", + "properties": { + "defaultConfig": { + "default": {}, + "title": "Default editor configuration", + "description": "Base configuration used by all CodeMirror editors.", + "type": "object" + } + }, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/completer-extension/inline-completer.json b/share/jupyter/lab/schemas/@jupyterlab/completer-extension/inline-completer.json new file mode 100644 index 0000000..9fc42d3 --- /dev/null +++ b/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/share/jupyter/lab/schemas/@jupyterlab/completer-extension/manager.json b/share/jupyter/lab/schemas/@jupyterlab/completer-extension/manager.json new file mode 100644 index 0000000..c23e30f --- /dev/null +++ b/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/share/jupyter/lab/schemas/@jupyterlab/completer-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/completer-extension/package.json.orig new file mode 100644 index 0000000..f67ba4b --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/completer-extension/package.json.orig @@ -0,0 +1,63 @@ +{ + "name": "@jupyterlab/completer-extension", + "version": "4.5.1", + "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.5.1", + "@jupyterlab/codeeditor": "^4.5.1", + "@jupyterlab/completer": "^4.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@jupyterlab/ui-components": "^4.5.1", + "@lumino/commands": "^2.3.3", + "@lumino/coreutils": "^2.2.2", + "@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/share/jupyter/lab/schemas/@jupyterlab/console-extension/completer.json b/share/jupyter/lab/schemas/@jupyterlab/console-extension/completer.json new file mode 100644 index 0000000..7a4dcd9 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/console-extension/completer.json @@ -0,0 +1,14 @@ +{ + "title": "Console Completer", + "description": "Console completer settings.", + "jupyter.lab.shortcuts": [ + { + "command": "completer:invoke-console", + "keys": ["Tab"], + "selector": ".jp-CodeConsole-promptCell .jp-mod-completer-enabled:not(.jp-mod-at-line-beginning)" + } + ], + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/console-extension/foreign.json b/share/jupyter/lab/schemas/@jupyterlab/console-extension/foreign.json new file mode 100644 index 0000000..6357e08 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/console-extension/foreign.json @@ -0,0 +1,16 @@ +{ + "title": "Code Console Foreign plugin", + "description": "Code Console Foreign plugin settings.", + "jupyter.lab.menus": { + "context": [ + { + "command": "console:toggle-show-all-kernel-activity", + "selector": ".jp-CodeConsole", + "rank": 20 + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/console-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/console-extension/package.json.orig new file mode 100644 index 0000000..a5cd85f --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/console-extension/package.json.orig @@ -0,0 +1,70 @@ +{ + "name": "@jupyterlab/console-extension", + "version": "4.5.1", + "description": "JupyterLab - Code Console 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.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/codeeditor": "^4.5.1", + "@jupyterlab/completer": "^4.5.1", + "@jupyterlab/console": "^4.5.1", + "@jupyterlab/filebrowser": "^4.5.1", + "@jupyterlab/launcher": "^4.5.1", + "@jupyterlab/mainmenu": "^4.5.1", + "@jupyterlab/rendermime": "^4.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@jupyterlab/ui-components": "^4.5.1", + "@lumino/algorithm": "^2.0.4", + "@lumino/coreutils": "^2.2.2", + "@lumino/disposable": "^2.1.5", + "@lumino/properties": "^2.0.4", + "@lumino/widgets": "^2.7.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/share/jupyter/lab/schemas/@jupyterlab/console-extension/tracker.json b/share/jupyter/lab/schemas/@jupyterlab/console-extension/tracker.json new file mode 100644 index 0000000..c4cfdf6 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/console-extension/tracker.json @@ -0,0 +1,246 @@ +{ + "title": "Code Console", + "description": "Code Console settings.", + "jupyter.lab.setting-icon": "ui-components:console", + "jupyter.lab.setting-icon-label": "Code Console Settings", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "items": [ + { + "type": "submenu", + "submenu": { + "id": "jp-mainmenu-file-new", + "items": [ + { + "command": "console:create", + "rank": 1 + } + ] + } + } + ] + }, + { + "id": "jp-mainmenu-settings", + "items": [ + { + "type": "separator", + "rank": 9 + }, + { + "type": "submenu", + "submenu": { + "id": "jp-mainmenu-settings-consoleexecute", + "label": "Console Run Keystroke", + "items": [ + { + "command": "console:interaction-mode", + "args": { + "interactionMode": "terminal" + } + }, + { + "command": "console:interaction-mode", + "args": { + "interactionMode": "notebook" + } + } + ] + }, + "rank": 9 + }, + { + "type": "separator", + "rank": 9 + } + ] + } + ], + "context": [ + { + "command": "console:undo", + "selector": ".jp-CodeConsole-promptCell", + "rank": 1 + }, + { + "command": "console:redo", + "selector": ".jp-CodeConsole-promptCell", + "rank": 2 + }, + { + "command": "console:clear", + "selector": ".jp-CodeConsole-content", + "rank": 10 + }, + { + "command": "console:restart-kernel", + "selector": ".jp-CodeConsole", + "rank": 30 + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "console:run-forced", + "keys": ["Shift Enter"], + "selector": ".jp-CodeConsole[data-jp-interaction-mode='notebook'] .jp-CodeConsole-promptCell" + }, + { + "command": "console:linebreak", + "keys": ["Accel Enter"], + "selector": ".jp-CodeConsole[data-jp-interaction-mode='terminal'] .jp-CodeConsole-promptCell" + }, + { + "command": "console:run-forced", + "keys": ["Shift Enter"], + "selector": ".jp-CodeConsole[data-jp-interaction-mode='terminal'] .jp-CodeConsole-promptCell" + }, + { + "command": "console:run-unforced", + "keys": ["Enter"], + "selector": ".jp-CodeConsole[data-jp-interaction-mode='terminal'] .jp-CodeConsole-promptCell" + } + ], + "jupyter.lab.toolbars": { + "ConsolePanel": [ + { + "name": "run", + "command": "console:run-forced", + "rank": 0 + }, + { "name": "restart", "command": "console:restart-kernel", "rank": 10 }, + { "name": "clear", "command": "console:clear", "rank": 20 }, + { "name": "spacer", "type": "spacer", "rank": 100 }, + { "name": "kernelName", "rank": 1000 }, + { "name": "kernelStatus", "rank": 1010 }, + { "name": "promptPosition", "rank": 1020 } + ] + }, + "jupyter.lab.transform": true, + "properties": { + "clearCellsOnExecute": { + "title": "Clear Cells on Execute", + "description": "Whether to clear the console when code is executed.", + "type": "boolean", + "default": false + }, + "clearCodeContentOnExecute": { + "title": "Clear Code Content on Execute", + "description": "Whether to clear the code content of the console when code is executed.", + "type": "boolean", + "default": true + }, + "hideCodeInput": { + "title": "Hide Code Input", + "description": "Whether to hide the code input after a cell is executed.", + "type": "boolean", + "default": false + }, + "interactionMode": { + "title": "Interaction mode", + "description": "Whether the console interaction mimics the notebook\nor terminal keyboard shortcuts.", + "type": "string", + "enum": ["notebook", "terminal"], + "default": "notebook" + }, + "showAllKernelActivity": { + "title": "Show All Kernel Activity", + "description": "Whether the console defaults to showing all\nkernel activity or just kernel activity originating from itself.", + "type": "boolean", + "default": false + }, + "promptCellConfig": { + "title": "Prompt Cell Configuration", + "description": "The configuration for all prompt cells; it will override the CodeMirror default configuration.", + "type": "object", + "default": { + "codeFolding": false, + "lineNumbers": false + } + }, + "promptCellPosition": { + "title": "Prompt Cell Position", + "description": "Where to place the prompt cell of the console.", + "type": "string", + "oneOf": [ + { "const": "bottom", "title": "Bottom" }, + { "const": "top", "title": "Top" }, + { "const": "left", "title": "Left" }, + { "const": "right", "title": "Right" } + ], + "default": "bottom" + }, + "showBanner": { + "title": "Show Banner", + "description": "Whether to show the kernel banner.", + "type": "boolean", + "default": true + }, + "toolbar": { + "title": "Console panel toolbar items", + "description": "Note: To disable a toolbar item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable the Interrupt button item:\n{\n \"toolbar\": [\n {\n \"name\": \"interrupt\",\n \"disabled\": true\n }\n ]\n}\n\nToolbar description:", + "items": { + "$ref": "#/definitions/toolbarItem" + }, + "type": "array", + "default": [] + } + }, + "additionalProperties": false, + "type": "object", + "definitions": { + "toolbarItem": { + "properties": { + "name": { + "title": "Unique name", + "type": "string" + }, + "args": { + "title": "Command arguments", + "type": "object" + }, + "command": { + "title": "Command id", + "type": "string", + "default": "" + }, + "disabled": { + "title": "Whether the item is ignored or not", + "type": "boolean", + "default": false + }, + "icon": { + "title": "Item icon id", + "description": "If defined, it will override the command icon", + "type": "string" + }, + "label": { + "title": "Item label", + "description": "If defined, it will override the command label", + "type": "string" + }, + "caption": { + "title": "Item caption", + "description": "If defined, it will override the command caption", + "type": "string" + }, + "type": { + "title": "Item type", + "type": "string", + "enum": ["command", "spacer"] + }, + "rank": { + "title": "Item rank", + "type": "number", + "minimum": 0, + "default": 50 + } + }, + "required": ["name"], + "additionalProperties": false, + "type": "object" + } + } +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/csvviewer-extension/csv.json b/share/jupyter/lab/schemas/@jupyterlab/csvviewer-extension/csv.json new file mode 100644 index 0000000..a6e32f0 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/csvviewer-extension/csv.json @@ -0,0 +1,76 @@ +{ + "title": "CSV Viewer", + "description": "CSV Viewer settings.", + "jupyter.lab.setting-icon": "ui-components:spreadsheet", + "jupyter.lab.setting-icon-label": "CSV Viewer", + "jupyter.lab.toolbars": { + "CSVTable": [{ "name": "delimiter", "rank": 10 }] + }, + "jupyter.lab.transform": true, + "properties": { + "toolbar": { + "title": "CSV viewer toolbar items", + "description": "Note: To disable a toolbar item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable the delimiter selector item:\n{\n \"toolbar\": [\n {\n \"name\": \"delimiter\",\n \"disabled\": true\n }\n ]\n}\n\nToolbar description:", + "items": { + "$ref": "#/definitions/toolbarItem" + }, + "type": "array", + "default": [] + } + }, + "additionalProperties": false, + "type": "object", + "definitions": { + "toolbarItem": { + "properties": { + "name": { + "title": "Unique name", + "type": "string" + }, + "args": { + "title": "Command arguments", + "type": "object" + }, + "command": { + "title": "Command id", + "type": "string", + "default": "" + }, + "disabled": { + "title": "Whether the item is ignored or not", + "type": "boolean", + "default": false + }, + "icon": { + "title": "Item icon id", + "description": "If defined, it will override the command icon", + "type": "string" + }, + "label": { + "title": "Item label", + "description": "If defined, it will override the command label", + "type": "string" + }, + "caption": { + "title": "Item caption", + "description": "If defined, it will override the command caption", + "type": "string" + }, + "type": { + "title": "Item type", + "type": "string", + "enum": ["command", "spacer"] + }, + "rank": { + "title": "Item rank", + "type": "number", + "minimum": 0, + "default": 50 + } + }, + "required": ["name"], + "additionalProperties": false, + "type": "object" + } + } +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/csvviewer-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/csvviewer-extension/package.json.orig new file mode 100644 index 0000000..52814b5 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/csvviewer-extension/package.json.orig @@ -0,0 +1,64 @@ +{ + "name": "@jupyterlab/csvviewer-extension", + "version": "4.5.1", + "description": "JupyterLab - CSV Widget 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.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/csvviewer": "^4.5.1", + "@jupyterlab/docregistry": "^4.5.1", + "@jupyterlab/documentsearch": "^4.5.1", + "@jupyterlab/mainmenu": "^4.5.1", + "@jupyterlab/observables": "^5.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@lumino/datagrid": "^2.5.3", + "@lumino/widgets": "^2.7.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/share/jupyter/lab/schemas/@jupyterlab/csvviewer-extension/tsv.json b/share/jupyter/lab/schemas/@jupyterlab/csvviewer-extension/tsv.json new file mode 100644 index 0000000..0df9260 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/csvviewer-extension/tsv.json @@ -0,0 +1,76 @@ +{ + "title": "TSV Viewer", + "description": "TSV Viewer settings.", + "jupyter.lab.setting-icon": "ui-components:spreadsheet", + "jupyter.lab.setting-icon-label": "TSV Viewer", + "jupyter.lab.toolbars": { + "TSVTable": [{ "name": "delimiter", "rank": 10 }] + }, + "jupyter.lab.transform": true, + "properties": { + "toolbar": { + "title": "TSV viewer toolbar items", + "description": "Note: To disable a toolbar item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable the delimiter selector item:\n{\n \"toolbar\": [\n {\n \"name\": \"delimiter\",\n \"disabled\": true\n }\n ]\n}\n\nToolbar description:", + "items": { + "$ref": "#/definitions/toolbarItem" + }, + "type": "array", + "default": [] + } + }, + "additionalProperties": false, + "type": "object", + "definitions": { + "toolbarItem": { + "properties": { + "name": { + "title": "Unique name", + "type": "string" + }, + "args": { + "title": "Command arguments", + "type": "object" + }, + "command": { + "title": "Command id", + "type": "string", + "default": "" + }, + "disabled": { + "title": "Whether the item is ignored or not", + "type": "boolean", + "default": false + }, + "icon": { + "title": "Item icon id", + "description": "If defined, it will override the command icon", + "type": "string" + }, + "label": { + "title": "Item label", + "description": "If defined, it will override the command label", + "type": "string" + }, + "caption": { + "title": "Item caption", + "description": "If defined, it will override the command caption", + "type": "string" + }, + "type": { + "title": "Item type", + "type": "string", + "enum": ["command", "spacer"] + }, + "rank": { + "title": "Item rank", + "type": "number", + "minimum": 0, + "default": 50 + } + }, + "required": ["name"], + "additionalProperties": false, + "type": "object" + } + } +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/debugger-extension/main.json b/share/jupyter/lab/schemas/@jupyterlab/debugger-extension/main.json new file mode 100644 index 0000000..2152b71 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/debugger-extension/main.json @@ -0,0 +1,133 @@ +{ + "title": "Debugger", + "description": "Debugger settings", + "jupyter.lab.setting-icon": "ui-components:bug", + "jupyter.lab.setting-icon-label": "Debugger", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-kernel", + "items": [ + { "type": "separator", "rank": 1.2 }, + { "command": "debugger:restart-debug", "rank": 1.2 } + ] + }, + { + "id": "jp-mainmenu-view", + "items": [ + { + "command": "debugger:show-panel", + "rank": 5 + } + ] + } + ], + "context": [ + { + "command": "debugger:inspect-variable", + "selector": ".jp-DebuggerVariables-body .jp-DebuggerVariables-grid" + }, + { + "command": "debugger:render-mime-variable", + "selector": ".jp-DebuggerVariables-body" + }, + { + "command": "debugger:copy-to-clipboard", + "selector": ".jp-DebuggerVariables-body" + }, + { + "command": "debugger:copy-to-globals", + "selector": ".jp-DebuggerVariables-body.jp-debuggerVariables-local" + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "debugger:show-panel", + "keys": ["Accel Shift E"], + "selector": "body" + }, + { + "command": "debugger:continue", + "keys": ["F9"], + "selector": "body" + }, + { + "command": "debugger:terminate", + "keys": ["Shift F9"], + "selector": "[data-jp-debugger-stopped-threads='true']" + }, + { + "command": "debugger:next", + "keys": ["F10"], + "selector": "[data-jp-debugger-stopped-threads='true']" + }, + { + "command": "debugger:stepIn", + "keys": ["F11"], + "selector": "[data-jp-debugger-stopped-threads='true']" + }, + { + "command": "debugger:stepOut", + "keys": ["Shift F11"], + "selector": "[data-jp-debugger-stopped-threads='true']" + } + ], + "definitions": { + "variableFilters": { + "properties": { + "xpython": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + }, + "properties": { + "variableFilters": { + "title": "Variable filter", + "description": "Variables to filter out in the tree and table viewers", + "$ref": "#/definitions/variableFilters", + "default": { + "xpython": [ + "debugpy", + "display", + "get_ipython", + "ptvsd", + "_xpython_get_connection_filename", + "_xpython_launch", + "_pydev_stop_at_break", + "__annotations__", + "__builtins__", + "__doc__", + "__loader__", + "__name__", + "__package__", + "__spec__" + ] + } + }, + "defaultKernelSourcesFilter": { + "title": "Default kernel sources regexp filter", + "description": "A regular expression filter to apply by default when showing the kernel sources", + "type": "string", + "default": "" + }, + "autoCollapseDebuggerSidebar": { + "title": "Auto Collapse Debugger Sidebar", + "description": "Collapse the debugger sidebar when disabling the debugger on a document.", + "type": "boolean", + "default": false + }, + "showPausedOverlay": { + "title": "Show Paused Overlay", + "description": "Show an overlay on the editor or notebook when execution is paused in the debugger.", + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/debugger-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/debugger-extension/package.json.orig new file mode 100644 index 0000000..9b0c577 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/debugger-extension/package.json.orig @@ -0,0 +1,79 @@ +{ + "name": "@jupyterlab/debugger-extension", + "version": "4.5.1", + "description": "JupyterLab - Debugger Extension", + "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", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/**/*.d.ts", + "lib/**/*.js.map", + "lib/**/*.js", + "schema/*.json", + "style/**/*.css", + "style/**/*.svg", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo && rimraf tsconfig.test.tsbuildinfo && rimraf tests/build", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/cells": "^4.5.1", + "@jupyterlab/codeeditor": "^4.5.1", + "@jupyterlab/completer": "^4.5.1", + "@jupyterlab/console": "^4.5.1", + "@jupyterlab/coreutils": "^6.5.1", + "@jupyterlab/debugger": "^4.5.1", + "@jupyterlab/docregistry": "^4.5.1", + "@jupyterlab/fileeditor": "^4.5.1", + "@jupyterlab/nbformat": "^4.5.1", + "@jupyterlab/notebook": "^4.5.1", + "@jupyterlab/rendermime": "^4.5.1", + "@jupyterlab/services": "^7.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@lumino/commands": "^2.3.3" + }, + "devDependencies": { + "@jupyterlab/testing": "^4.5.1", + "@types/jest": "^29.2.0", + "@types/react-dom": "^18.0.9", + "rimraf": "~5.0.5", + "typescript": "~5.5.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/download.json b/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/download.json new file mode 100644 index 0000000..8218638 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/download.json @@ -0,0 +1,21 @@ +{ + "title": "Document Manager Download", + "description": "Document Manager Download settings.", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "items": [ + { "type": "separator", "rank": 6 }, + { + "command": "docmanager:download", + "rank": 6 + }, + { "type": "separator", "rank": 6 } + ] + } + ] + }, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/package.json.orig new file mode 100644 index 0000000..d4d7153 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/package.json.orig @@ -0,0 +1,72 @@ +{ + "name": "@jupyterlab/docmanager-extension", + "version": "4.5.1", + "description": "JupyterLab - Document Manager 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.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/coreutils": "^6.5.1", + "@jupyterlab/docmanager": "^4.5.1", + "@jupyterlab/docregistry": "^4.5.1", + "@jupyterlab/rendermime": "^4.5.1", + "@jupyterlab/services": "^7.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/statedb": "^4.5.1", + "@jupyterlab/statusbar": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@jupyterlab/ui-components": "^4.5.1", + "@lumino/algorithm": "^2.0.4", + "@lumino/commands": "^2.3.3", + "@lumino/coreutils": "^2.2.2", + "@lumino/disposable": "^2.1.5", + "@lumino/signaling": "^2.1.5", + "@lumino/widgets": "^2.7.2", + "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/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/plugin.json b/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/plugin.json new file mode 100644 index 0000000..aa4146f --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/plugin.json @@ -0,0 +1,163 @@ +{ + "title": "Document Manager", + "description": "Document Manager settings.", + "jupyter.lab.setting-icon": "ui-components:file", + "jupyter.lab.setting-icon-label": "Document Manager", + "jupyter.lab.transform": true, + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "items": [ + { + "command": "docmanager:clone", + "rank": 2 + }, + { + "type": "separator", + "rank": 4 + }, + { + "command": "docmanager:save", + "rank": 4 + }, + { + "command": "docmanager:save-as", + "rank": 4 + }, + { + "command": "docmanager:save-all", + "rank": 4 + }, + { + "type": "separator", + "rank": 5 + }, + { + "command": "docmanager:reload", + "rank": 5 + }, + { + "command": "docmanager:restore-checkpoint", + "rank": 5 + }, + { + "command": "docmanager:rename", + "rank": 5 + }, + { + "command": "docmanager:duplicate", + "rank": 5 + } + ] + }, + { + "id": "jp-mainmenu-settings", + "items": [ + { + "type": "separator", + "rank": 4 + }, + { + "command": "docmanager:toggle-autosave", + "rank": 4 + }, + { + "type": "separator", + "rank": 4 + } + ] + } + ], + "context": [ + { + "command": "docmanager:rename", + "selector": "[data-type=\"document-title\"]", + "rank": 20 + }, + { + "command": "docmanager:duplicate", + "selector": "[data-type=\"document-title\"]", + "rank": 21 + }, + { + "command": "docmanager:delete", + "selector": "[data-type=\"document-title\"]", + "rank": 22 + }, + { + "command": "docmanager:clone", + "selector": "[data-type=\"document-title\"]", + "rank": 23 + }, + { + "command": "docmanager:show-in-file-browser", + "selector": "[data-type=\"document-title\"]", + "rank": 24 + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "docmanager:save", + "keys": ["Accel S"], + "selector": "body" + }, + { + "command": "docmanager:save-as", + "keys": ["Accel Shift S"], + "selector": "body" + } + ], + "properties": { + "autosave": { + "type": "boolean", + "title": "Autosave Documents", + "description": "Whether to autosave documents", + "default": true + }, + "autosaveInterval": { + "type": "number", + "title": "Autosave Interval", + "description": "Length of save interval in seconds", + "default": 120 + }, + "confirmClosingDocument": { + "type": "boolean", + "title": "Ask for confirmation to close a document", + "description": "Whether to ask for confirmation to close a document or not.", + "default": false + }, + "lastModifiedCheckMargin": { + "type": "number", + "title": "Margin for last modified timestamp check", + "description": "Max acceptable difference, in milliseconds, between last modified timestamps on disk and client", + "default": 500 + }, + "defaultViewers": { + "type": "object", + "title": "Default Viewers", + "default": {}, + "description": "Overrides for the default viewers for file types", + "properties": {}, + "additionalProperties": { + "type": "string" + } + }, + "renameUntitledFileOnSave": { + "type": "boolean", + "title": "Rename Untitled File On First Save", + "description": "Whether to prompt to rename untitled file on first manual save.", + "default": true + }, + "maxNumberRecents": { + "type": "number", + "title": "Recent Items Number", + "description": "Number of recently opened/closed files and directories to remember.", + "default": 10, + "minimum": 0 + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/documentsearch-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/documentsearch-extension/package.json.orig new file mode 100644 index 0000000..eafb64c --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/documentsearch-extension/package.json.orig @@ -0,0 +1,57 @@ +{ + "name": "@jupyterlab/documentsearch-extension", + "version": "4.5.1", + "description": "JupyterLab - Document Search 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/**/*" + ], + "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 -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "watch": "tsc -w --listEmittedFiles" + }, + "dependencies": { + "@jupyterlab/application": "^4.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/documentsearch": "^4.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@lumino/commands": "^2.3.3", + "@lumino/widgets": "^2.7.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/share/jupyter/lab/schemas/@jupyterlab/documentsearch-extension/plugin.json b/share/jupyter/lab/schemas/@jupyterlab/documentsearch-extension/plugin.json new file mode 100644 index 0000000..349e720 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/documentsearch-extension/plugin.json @@ -0,0 +1,80 @@ +{ + "title": "Document Search", + "description": "Document search plugin.", + "jupyter.lab.setting-icon": "ui-components:search", + "jupyter.lab.setting-icon-label": "Document Search", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-edit", + "items": [ + { + "type": "separator", + "rank": 10 + }, + { + "command": "documentsearch:start", + "rank": 10 + }, + { + "command": "documentsearch:highlightNext", + "rank": 10 + }, + { + "command": "documentsearch:highlightPrevious", + "rank": 10 + }, + { + "type": "separator", + "rank": 10 + } + ] + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "documentsearch:start", + "keys": ["Accel F"], + "selector": ".jp-mod-searchable" + }, + { + "command": "documentsearch:highlightNext", + "keys": ["Accel G"], + "selector": ".jp-mod-searchable" + }, + { + "command": "documentsearch:highlightPrevious", + "keys": ["Accel Shift G"], + "selector": ".jp-mod-searchable" + }, + { + "command": "documentsearch:toggleSearchInSelection", + "keys": ["Alt L"], + "selector": ".jp-mod-search-active" + }, + { + "command": "documentsearch:end", + "keys": ["Escape"], + "selector": ".jp-mod-search-active" + } + ], + "properties": { + "searchDebounceTime": { + "title": "Search debounce time (ms)", + "description": "The debounce time in milliseconds applied to the search input field. The already opened input files will not be updated if you change that value", + "type": "number", + "default": 500, + "minimum": 0 + }, + "autoSearchInSelection": { + "title": "Search in selection automatically", + "description": "When starting search, the 'search in selection' mode will be enabled if `any` text/cell is selected, or when `multiple` lines or cells are selected, or `never`.", + "type": "string", + "enum": ["never", "multiple-selected", "any-selected"], + "default": "never" + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/extensionmanager-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/extensionmanager-extension/package.json.orig new file mode 100644 index 0000000..e952b9b --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/extensionmanager-extension/package.json.orig @@ -0,0 +1,60 @@ +{ + "name": "@jupyterlab/extensionmanager-extension", + "version": "4.5.1", + "description": "JupyterLab - Extension Manager 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", + "listing/*.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.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/extensionmanager": "^4.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@jupyterlab/ui-components": "^4.5.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/share/jupyter/lab/schemas/@jupyterlab/extensionmanager-extension/plugin.json b/share/jupyter/lab/schemas/@jupyterlab/extensionmanager-extension/plugin.json new file mode 100644 index 0000000..670b9af --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/extensionmanager-extension/plugin.json @@ -0,0 +1,59 @@ +{ + "title": "Extension Manager", + "description": "Extension manager settings.", + "jupyter.lab.setting-icon": "ui-components:extension", + "jupyter.lab.setting-icon-label": "Extension Manager", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-view", + "items": [ + { + "command": "extensionmanager:show-panel", + "rank": 9 + } + ] + }, + { + "id": "jp-mainmenu-settings", + "items": [ + { + "type": "separator", + "rank": 100 + }, + { + "command": "extensionmanager:toggle", + "rank": 100 + }, + { + "type": "separator", + "rank": 100 + } + ] + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "extensionmanager:show-panel", + "keys": ["Accel Shift X"], + "selector": "body" + } + ], + "properties": { + "enabled": { + "title": "Enabled Status", + "description": "Enables extension manager.\nWARNING: installing untrusted extensions may be unsafe.", + "default": true, + "type": "boolean" + }, + "disclaimed": { + "title": "Disclaimed Status", + "description": "Whether the user agrees the access to external web services and understands extensions may introduce security risks or contain malicious code that runs on his machine.", + "default": false, + "type": "boolean" + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/browser.json b/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/browser.json new file mode 100644 index 0000000..0f8fb19 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/browser.json @@ -0,0 +1,297 @@ +{ + "jupyter.lab.setting-icon": "ui-components:folder", + "jupyter.lab.setting-icon-label": "File Browser", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "items": [ + { + "type": "separator", + "rank": 1 + }, + { + "command": "filebrowser:open-path", + "rank": 1 + }, + { + "command": "filebrowser:open-url", + "rank": 1 + } + ] + }, + { + "id": "jp-mainmenu-view", + "items": [ + { + "command": "filebrowser:toggle-hidden-files", + "rank": 9.95 + } + ] + } + ], + "context": [ + { + "type": "separator", + "selector": ".jp-DirListing-content", + "rank": 0 + }, + { + "command": "filebrowser:open", + "selector": ".jp-DirListing-item[data-isdir]", + "rank": 1 + }, + { + "type": "separator", + "selector": ".jp-DirListing-item[data-isdir]", + "rank": 4 + }, + { + "command": "filebrowser:rename", + "selector": ".jp-DirListing-item[data-isdir]", + "rank": 5 + }, + { + "command": "filebrowser:delete", + "selector": ".jp-DirListing-item[data-isdir]", + "rank": 6 + }, + { + "command": "filebrowser:cut", + "selector": ".jp-DirListing-item[data-isdir]", + "rank": 7 + }, + { + "command": "filebrowser:copy", + "selector": ".jp-DirListing-item[data-isdir]", + "rank": 8 + }, + { + "command": "filebrowser:paste", + "selector": ".jp-DirListing-content", + "rank": 8.5 + }, + { + "command": "filebrowser:duplicate", + "selector": ".jp-DirListing-item[data-isdir=\"false\"]", + "rank": 9 + }, + { + "type": "separator", + "selector": ".jp-DirListing-item[data-isdir]", + "rank": 10 + }, + { + "command": "filebrowser:shutdown", + "selector": ".jp-DirListing-item[data-isdir=\"false\"].jp-mod-running", + "rank": 11 + }, + { + "type": "separator", + "selector": ".jp-DirListing-item[data-isdir]", + "rank": 12 + }, + { + "command": "filebrowser:copy-path", + "selector": ".jp-DirListing-item[data-isdir]", + "rank": 14 + }, + { + "command": "filebrowser:toggle-last-modified", + "selector": ".jp-DirListing-header", + "rank": 14 + }, + { + "command": "filebrowser:toggle-file-size", + "selector": ".jp-DirListing-header", + "rank": 15 + }, + { + "command": "filebrowser:toggle-file-checkboxes", + "selector": ".jp-DirListing-header", + "rank": 16 + }, + { + "command": "filebrowser:toggle-sort-notebooks-first", + "selector": ".jp-DirListing-header", + "rank": 17 + }, + { + "command": "filebrowser:share-main", + "selector": ".jp-DirListing-item[data-isdir]", + "rank": 17 + }, + { + "type": "separator", + "selector": ".jp-DirListing-item[data-isdir]", + "rank": 50 + }, + { + "command": "filebrowser:create-new-file", + "selector": ".jp-DirListing-content", + "rank": 51 + }, + { + "command": "filebrowser:create-new-directory", + "selector": ".jp-DirListing-content", + "rank": 55 + } + ] + }, + "title": "File Browser", + "description": "File Browser settings.", + "jupyter.lab.shortcuts": [ + { + "command": "filebrowser:go-up", + "keys": ["Backspace"], + "selector": ".jp-DirListing:focus" + }, + { + "command": "filebrowser:go-up", + "keys": ["Backspace"], + "selector": ".jp-DirListing-content .jp-DirListing-itemText" + }, + { + "command": "filebrowser:delete", + "keys": ["Delete"], + "selector": ".jp-DirListing-content .jp-DirListing-itemText" + }, + { + "command": "filebrowser:cut", + "keys": ["Accel X"], + "selector": ".jp-DirListing-content .jp-DirListing-itemText" + }, + { + "command": "filebrowser:copy", + "keys": ["Accel C"], + "selector": ".jp-DirListing-content .jp-DirListing-itemText" + }, + { + "command": "filebrowser:paste", + "keys": ["Accel V"], + "selector": ".jp-DirListing-content .jp-DirListing-itemText" + }, + { + "command": "filebrowser:rename", + "keys": ["F2"], + "selector": ".jp-DirListing-content .jp-DirListing-itemText" + }, + { + "command": "filebrowser:duplicate", + "keys": ["Accel D"], + "selector": ".jp-DirListing-content .jp-DirListing-itemText" + }, + { + "command": "filebrowser:select-all", + "keys": ["Accel A"], + "selector": ".jp-DirListing-content .jp-DirListing-itemText" + } + ], + "properties": { + "navigateToCurrentDirectory": { + "type": "boolean", + "title": "Navigate to current folder", + "description": "Whether to automatically navigate to a document's current folder", + "default": false + }, + "useFuzzyFilter": { + "type": "boolean", + "title": "Filter on file name with a fuzzy search", + "description": "Whether to apply fuzzy algorithm while filtering on file names", + "default": true + }, + "filterDirectories": { + "type": "boolean", + "title": "Filter folders", + "description": "Whether to apply the search on folders", + "default": true + }, + "showLastModifiedColumn": { + "type": "boolean", + "title": "Show last modified column", + "description": "Whether to show the last modified column", + "default": true + }, + "showFileSizeColumn": { + "type": "boolean", + "title": "Show file size column", + "description": "Whether to show the file size column", + "default": false + }, + "showHiddenFiles": { + "type": "boolean", + "title": "Show hidden files", + "description": "Whether to show hidden files. The server parameter `ContentsManager.allow_hidden` must be set to `True` to display hidden files.", + "default": false + }, + "showFileCheckboxes": { + "type": "boolean", + "title": "Use checkboxes to select items", + "description": "Whether to show checkboxes next to files and folders", + "default": false + }, + "showFullPath": { + "type": "boolean", + "title": "Show full path in browser bread crumbs", + "description": "Whether to show full path in browser bread crumbs", + "default": false + }, + "sortNotebooksFirst": { + "type": "boolean", + "title": "When sorting by name, group notebooks before other files", + "description": "Whether to group the notebooks away from files", + "default": false + }, + "singleClickNavigation": { + "type": "boolean", + "title": "Navigate files and directories with single click", + "description": "Whether to allow single click selection on file browser items", + "default": false + }, + "autoOpenUploads": { + "type": "boolean", + "title": "Auto-open uploads", + "description": "Automatically open uploaded notebooks and supported files", + "default": true + }, + "maxAutoOpenSizeMB": { + "type": "number", + "title": "Max auto-open size", + "description": "Maximum file size (MB) to auto-open files on upload", + "default": 50 + }, + "allowFileUploads": { + "type": "boolean", + "title": "Allow file uploads", + "description": "Whether to allow uploading files", + "default": true + }, + "breadcrumbs": { + "title": "Breadcrumbs", + "description": "Settings related to breadcrumbs display and behavior.", + "type": "object", + "default": { + "minimumLeftItems": 0, + "minimumRightItems": 2 + }, + "properties": { + "minimumLeftItems": { + "type": "number", + "title": "Minimum breadcrumbs left items", + "description": "Minimum number of directory items to display on the left side of the breadcrumbs ellipsis", + "default": 0, + "minimum": 0 + }, + "minimumRightItems": { + "type": "number", + "title": "Minimum breadcrumbs right items", + "description": "Minimum number of directory items to display on the right side of the breadcrumbs ellipsis", + "default": 2, + "minimum": 0 + } + } + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/download.json b/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/download.json new file mode 100644 index 0000000..804fbf2 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/download.json @@ -0,0 +1,21 @@ +{ + "title": "File Browser Download", + "description": "File Browser Download settings.", + "jupyter.lab.menus": { + "context": [ + { + "command": "filebrowser:download", + "selector": ".jp-DirListing-item[data-isdir=\"false\"]", + "rank": 9 + }, + { + "command": "filebrowser:copy-download-link", + "selector": ".jp-DirListing-item[data-isdir=\"false\"]", + "rank": 13 + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/open-browser-tab.json b/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/open-browser-tab.json new file mode 100644 index 0000000..bc03429 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/open-browser-tab.json @@ -0,0 +1,16 @@ +{ + "title": "File Browser Open Browser Tab", + "description": "File Browser Open Browser Tab settings.", + "jupyter.lab.menus": { + "context": [ + { + "command": "filebrowser:open-browser-tab", + "selector": ".jp-DirListing-item[data-isdir=\"false\"]", + "rank": 1.6 + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/open-with.json b/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/open-with.json new file mode 100644 index 0000000..8038dd4 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/open-with.json @@ -0,0 +1,21 @@ +{ + "title": "File Browser Open With", + "description": "File Browser Open With settings.", + "jupyter.lab.menus": { + "context": [ + { + "type": "submenu", + "selector": ".jp-DirListing-item[data-isdir=\"false\"]", + "rank": 1.3, + "submenu": { + "id": "jp-contextmenu-open-with", + "label": "Open With", + "items": [] + } + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/package.json.orig new file mode 100644 index 0000000..d0615db --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/package.json.orig @@ -0,0 +1,69 @@ +{ + "name": "@jupyterlab/filebrowser-extension", + "version": "4.5.1", + "description": "JupyterLab - Filebrowser Widget 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.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/coreutils": "^6.5.1", + "@jupyterlab/docmanager": "^4.5.1", + "@jupyterlab/docregistry": "^4.5.1", + "@jupyterlab/filebrowser": "^4.5.1", + "@jupyterlab/services": "^7.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/statedb": "^4.5.1", + "@jupyterlab/statusbar": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@jupyterlab/ui-components": "^4.5.1", + "@lumino/algorithm": "^2.0.4", + "@lumino/commands": "^2.3.3", + "@lumino/disposable": "^2.1.5", + "@lumino/widgets": "^2.7.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/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/widget.json b/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/widget.json new file mode 100644 index 0000000..101c96a --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/widget.json @@ -0,0 +1,124 @@ +{ + "title": "File Browser Widget", + "description": "File Browser widget settings.", + "jupyter.lab.toolbars": { + "FileBrowser": [ + { + "name": "new-directory", + "command": "filebrowser:create-new-directory", + "rank": 10 + }, + { "name": "uploader", "rank": 20 }, + { "name": "refresh", "command": "filebrowser:refresh", "rank": 30 }, + { + "name": "toggle-file-filter", + "command": "filebrowser:toggle-file-filter", + "rank": 40 + } + ] + }, + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-view", + "items": [ + { + "command": "filebrowser:toggle-main", + "rank": 1 + } + ] + }, + { + "id": "jp-mainmenu-settings", + "items": [ + { + "type": "separator", + "rank": 5 + }, + { + "command": "filebrowser:toggle-navigate-to-current-directory", + "rank": 5 + }, + { + "type": "separator", + "rank": 5 + } + ] + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "filebrowser:toggle-main", + "keys": ["Accel Shift F"], + "selector": "body" + } + ], + "jupyter.lab.transform": true, + "properties": { + "toolbar": { + "title": "File browser toolbar items", + "description": "Note: To disable a toolbar item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable the uploader button:\n{\n \"toolbar\": [\n {\n \"name\": \"uploader\",\n \"disabled\": true\n }\n ]\n}\n\nToolbar description:", + "items": { + "$ref": "#/definitions/toolbarItem" + }, + "type": "array", + "default": [] + } + }, + "additionalProperties": false, + "type": "object", + "definitions": { + "toolbarItem": { + "properties": { + "name": { + "title": "Unique name", + "type": "string" + }, + "args": { + "title": "Command arguments", + "type": "object" + }, + "command": { + "title": "Command id", + "type": "string", + "default": "" + }, + "disabled": { + "title": "Whether the item is ignored or not", + "type": "boolean", + "default": false + }, + "icon": { + "title": "Item icon id", + "description": "If defined, it will override the command icon", + "type": "string" + }, + "label": { + "title": "Item label", + "description": "If defined, it will override the command label", + "type": "string" + }, + "caption": { + "title": "Item caption", + "description": "If defined, it will override the command caption", + "type": "string" + }, + "type": { + "title": "Item type", + "type": "string", + "enum": ["command", "spacer"] + }, + "rank": { + "title": "Item rank", + "type": "number", + "minimum": 0, + "default": 50 + } + }, + "required": ["name"], + "additionalProperties": false, + "type": "object" + } + } +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/fileeditor-extension/completer.json b/share/jupyter/lab/schemas/@jupyterlab/fileeditor-extension/completer.json new file mode 100644 index 0000000..80c4f21 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/fileeditor-extension/completer.json @@ -0,0 +1,14 @@ +{ + "title": "File Editor Completer", + "description": "File editor completer settings.", + "jupyter.lab.shortcuts": [ + { + "command": "completer:invoke-file", + "keys": ["Tab"], + "selector": ".jp-FileEditor .jp-mod-completer-enabled:not(.jp-mod-at-line-beginning)" + } + ], + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/fileeditor-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/fileeditor-extension/package.json.orig new file mode 100644 index 0000000..179fd14 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/fileeditor-extension/package.json.orig @@ -0,0 +1,83 @@ +{ + "name": "@jupyterlab/fileeditor-extension", + "version": "4.5.1", + "description": "JupyterLab - Editor Widget 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": { + "@codemirror/commands": "^6.8.1", + "@codemirror/search": "^6.5.10", + "@jupyterlab/application": "^4.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/codeeditor": "^4.5.1", + "@jupyterlab/codemirror": "^4.5.1", + "@jupyterlab/completer": "^4.5.1", + "@jupyterlab/console": "^4.5.1", + "@jupyterlab/coreutils": "^6.5.1", + "@jupyterlab/docregistry": "^4.5.1", + "@jupyterlab/documentsearch": "^4.5.1", + "@jupyterlab/filebrowser": "^4.5.1", + "@jupyterlab/fileeditor": "^4.5.1", + "@jupyterlab/launcher": "^4.5.1", + "@jupyterlab/lsp": "^4.5.1", + "@jupyterlab/mainmenu": "^4.5.1", + "@jupyterlab/observables": "^5.5.1", + "@jupyterlab/rendermime": "^4.5.1", + "@jupyterlab/rendermime-interfaces": "^3.13.1", + "@jupyterlab/services": "^7.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/statusbar": "^4.5.1", + "@jupyterlab/toc": "^6.5.1", + "@jupyterlab/translation": "^4.5.1", + "@jupyterlab/ui-components": "^4.5.1", + "@lumino/algorithm": "^2.0.4", + "@lumino/commands": "^2.3.3", + "@lumino/coreutils": "^2.2.2", + "@lumino/disposable": "^2.1.5", + "@lumino/widgets": "^2.7.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/share/jupyter/lab/schemas/@jupyterlab/fileeditor-extension/plugin.json b/share/jupyter/lab/schemas/@jupyterlab/fileeditor-extension/plugin.json new file mode 100644 index 0000000..4ad2168 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/fileeditor-extension/plugin.json @@ -0,0 +1,257 @@ +{ + "title": "Text Editor", + "description": "Text editor settings.", + "jupyter.lab.setting-icon": "ui-components:text-editor", + "jupyter.lab.setting-icon-label": "Editor", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "items": [ + { + "type": "submenu", + "submenu": { + "id": "jp-mainmenu-file-new", + "items": [ + { + "command": "fileeditor:create-new", + "rank": 30 + }, + { + "command": "fileeditor:create-new-markdown-file", + "rank": 30 + } + ] + } + } + ] + }, + { + "id": "jp-mainmenu-view", + "items": [ + { + "type": "separator", + "rank": 40 + }, + { + "type": "submenu", + "submenu": { + "id": "jp-mainmenu-view-codemirror-language", + "label": "Text Editor Syntax Highlighting" + }, + "rank": 40 + }, + { + "type": "separator", + "rank": 40 + } + ] + }, + { + "id": "jp-mainmenu-settings", + "items": [ + { + "type": "separator", + "rank": 30 + }, + { + "type": "submenu", + "submenu": { + "id": "jp-mainmenu-settings-fileeditorindent", + "label": "Text Editor Indentation", + "items": [ + { + "command": "fileeditor:change-tabs" + }, + { + "command": "fileeditor:change-tabs", + "args": { + "size": "1" + } + }, + { + "command": "fileeditor:change-tabs", + "args": { + "size": "2" + } + }, + { + "command": "fileeditor:change-tabs", + "args": { + "size": "4" + } + }, + { + "command": "fileeditor:change-tabs", + "args": { + "size": "8" + } + } + ] + }, + "rank": 30 + }, + { + "command": "fileeditor:toggle-autoclosing-brackets-universal", + "rank": 30 + }, + { + "command": "fileeditor:change-font-size", + "rank": 30, + "args": { + "delta": 1, + "isMenu": true + } + }, + { + "command": "fileeditor:change-font-size", + "rank": 30, + "args": { + "delta": -1, + "isMenu": true + } + }, + { + "type": "submenu", + "submenu": { + "id": "jp-mainmenu-settings-codemirror-theme", + "label": "Text Editor Theme", + "items": [] + }, + "rank": 31 + }, + { + "type": "separator", + "rank": 39 + } + ] + } + ], + "context": [ + { + "command": "fileeditor:undo", + "selector": ".jp-FileEditor", + "rank": 1 + }, + { + "command": "fileeditor:redo", + "selector": ".jp-FileEditor", + "rank": 2 + }, + { + "command": "fileeditor:cut", + "selector": ".jp-FileEditor", + "rank": 3 + }, + { + "command": "fileeditor:copy", + "selector": ".jp-FileEditor", + "rank": 4 + }, + { + "command": "fileeditor:paste", + "selector": ".jp-FileEditor", + "rank": 5 + }, + { + "command": "fileeditor:select-all", + "selector": ".jp-FileEditor", + "rank": 6 + }, + { + "command": "fileeditor:create-console", + "selector": ".jp-FileEditor", + "rank": 10 + }, + { + "command": "fileeditor:markdown-preview", + "selector": ".jp-FileEditor", + "rank": 11 + } + ] + }, + "jupyter.lab.toolbars": { + "Editor": [] + }, + "jupyter.lab.transform": true, + "properties": { + "editorConfig": { + "title": "Editor Configuration", + "description": "The configuration for all text editors; it will override the CodeMirror default configuration.\nIf `fontFamily`, `fontSize` or `lineHeight` are `null`,\nvalues from current theme are used.", + "type": "object", + "default": { + "lineNumbers": true + } + }, + "scrollPastEnd": { + "title": "Scroll behavior", + "description": "Whether to scroll past the end of text document.", + "type": "boolean", + "default": true + }, + "toolbar": { + "title": "Text editor toolbar items", + "description": "Note: To disable a toolbar item,\ncopy it to User Preferences and add the\n\"disabled\" key. Toolbar description:", + "items": { + "$ref": "#/definitions/toolbarItem" + }, + "type": "array", + "default": [] + } + }, + "additionalProperties": false, + "type": "object", + "definitions": { + "toolbarItem": { + "properties": { + "name": { + "title": "Unique name", + "type": "string" + }, + "args": { + "title": "Command arguments", + "type": "object" + }, + "command": { + "title": "Command id", + "type": "string", + "default": "" + }, + "disabled": { + "title": "Whether the item is ignored or not", + "type": "boolean", + "default": false + }, + "icon": { + "title": "Item icon id", + "description": "If defined, it will override the command icon", + "type": "string" + }, + "label": { + "title": "Item label", + "description": "If defined, it will override the command label", + "type": "string" + }, + "caption": { + "title": "Item caption", + "description": "If defined, it will override the command caption", + "type": "string" + }, + "type": { + "title": "Item type", + "type": "string", + "enum": ["command", "spacer"] + }, + "rank": { + "title": "Item rank", + "type": "number", + "minimum": 0, + "default": 50 + } + }, + "required": ["name"], + "additionalProperties": false, + "type": "object" + } + } +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/help-extension/about.json b/share/jupyter/lab/schemas/@jupyterlab/help-extension/about.json new file mode 100644 index 0000000..a7bd397 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/help-extension/about.json @@ -0,0 +1,24 @@ +{ + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-help", + "items": [ + { + "command": "help:about", + "rank": 0 + }, + { + "type": "separator", + "rank": 0 + } + ] + } + ] + }, + "title": "Help", + "description": "Help settings.", + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/help-extension/jupyter-forum.json b/share/jupyter/lab/schemas/@jupyterlab/help-extension/jupyter-forum.json new file mode 100644 index 0000000..69a44d1 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/help-extension/jupyter-forum.json @@ -0,0 +1,26 @@ +{ + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-help", + "items": [ + { + "type": "separator", + "rank": 2 + }, + { + "command": "help:jupyter-forum", + "rank": 2 + }, + { + "type": "separator", + "rank": 2 + } + ] + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/help-extension/launch-classic.json b/share/jupyter/lab/schemas/@jupyterlab/help-extension/launch-classic.json new file mode 100644 index 0000000..5765281 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/help-extension/launch-classic.json @@ -0,0 +1,22 @@ +{ + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-help", + "items": [ + { + "type": "separator", + "rank": 1 + }, + { + "type": "separator", + "rank": 1 + } + ] + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/help-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/help-extension/package.json.orig new file mode 100644 index 0000000..8ba8cbb --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/help-extension/package.json.orig @@ -0,0 +1,62 @@ +{ + "name": "@jupyterlab/help-extension", + "version": "4.5.1", + "description": "JupyterLab - Help 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.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/coreutils": "^6.5.1", + "@jupyterlab/mainmenu": "^4.5.1", + "@jupyterlab/services": "^7.5.1", + "@jupyterlab/translation": "^4.5.1", + "@jupyterlab/ui-components": "^4.5.1", + "@lumino/widgets": "^2.7.2", + "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/share/jupyter/lab/schemas/@jupyterlab/htmlviewer-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/htmlviewer-extension/package.json.orig new file mode 100644 index 0000000..139ed35 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/htmlviewer-extension/package.json.orig @@ -0,0 +1,59 @@ +{ + "name": "@jupyterlab/htmlviewer-extension", + "version": "4.5.1", + "description": "JupyterLab extension to render HTML files", + "keywords": [ + "jupyter", + "jupyterlab" + ], + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter Contributors", + "sideEffects": [ + "style/**/*" + ], + "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 -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "watch": "tsc -w" + }, + "dependencies": { + "@jupyterlab/application": "^4.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/docregistry": "^4.5.1", + "@jupyterlab/htmlviewer": "^4.5.1", + "@jupyterlab/observables": "^5.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@jupyterlab/ui-components": "^4.5.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/share/jupyter/lab/schemas/@jupyterlab/htmlviewer-extension/plugin.json b/share/jupyter/lab/schemas/@jupyterlab/htmlviewer-extension/plugin.json new file mode 100644 index 0000000..da61797 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/htmlviewer-extension/plugin.json @@ -0,0 +1,85 @@ +{ + "title": "HTML Viewer", + "description": "HTML Viewer settings.", + "jupyter.lab.setting-icon": "ui-components:html5", + "jupyter.lab.setting-icon-label": "HTML Viewer", + "jupyter.lab.toolbars": { + "HTML Viewer": [ + { "name": "refresh", "rank": 10 }, + { "name": "trust", "rank": 20 } + ] + }, + "jupyter.lab.transform": true, + "properties": { + "toolbar": { + "title": "HTML viewer toolbar items", + "description": "Note: To disable a toolbar item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable the refresh item:\n{\n \"toolbar\": [\n {\n \"name\": \"refresh\",\n \"disabled\": true\n }\n ]\n}\n\nToolbar description:", + "items": { + "$ref": "#/definitions/toolbarItem" + }, + "type": "array", + "default": [] + }, + "trustByDefault": { + "type": "boolean", + "title": "Trust HTML by default", + "description": "Whether to trust HTML files upon opening", + "default": false + } + }, + "additionalProperties": false, + "type": "object", + "definitions": { + "toolbarItem": { + "properties": { + "name": { + "title": "Unique name", + "type": "string" + }, + "args": { + "title": "Command arguments", + "type": "object" + }, + "command": { + "title": "Command id", + "type": "string", + "default": "" + }, + "disabled": { + "title": "Whether the item is ignored or not", + "type": "boolean", + "default": false + }, + "icon": { + "title": "Item icon id", + "description": "If defined, it will override the command icon", + "type": "string" + }, + "label": { + "title": "Item label", + "description": "If defined, it will override the command label", + "type": "string" + }, + "caption": { + "title": "Item caption", + "description": "If defined, it will override the command caption", + "type": "string" + }, + "type": { + "title": "Item type", + "type": "string", + "enum": ["command", "spacer"] + }, + "rank": { + "title": "Item rank", + "type": "number", + "minimum": 0, + "default": 50 + } + }, + "required": ["name"], + "additionalProperties": false, + "type": "object" + } + } +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/hub-extension/menu.json b/share/jupyter/lab/schemas/@jupyterlab/hub-extension/menu.json new file mode 100644 index 0000000..4e4620e --- /dev/null +++ b/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/share/jupyter/lab/schemas/@jupyterlab/hub-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/hub-extension/package.json.orig new file mode 100644 index 0000000..f9a25eb --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/hub-extension/package.json.orig @@ -0,0 +1,62 @@ +{ + "name": "@jupyterlab/hub-extension", + "version": "4.5.1", + "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.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/coreutils": "^6.5.1", + "@jupyterlab/services": "^7.5.1", + "@jupyterlab/translation": "^4.5.1" + }, + "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/share/jupyter/lab/schemas/@jupyterlab/imageviewer-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/imageviewer-extension/package.json.orig new file mode 100644 index 0000000..2cb4aad --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/imageviewer-extension/package.json.orig @@ -0,0 +1,58 @@ +{ + "name": "@jupyterlab/imageviewer-extension", + "version": "4.5.1", + "description": "JupyterLab - Image Widget 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.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/docregistry": "^4.5.1", + "@jupyterlab/imageviewer": "^4.5.1", + "@jupyterlab/translation": "^4.5.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/share/jupyter/lab/schemas/@jupyterlab/imageviewer-extension/plugin.json b/share/jupyter/lab/schemas/@jupyterlab/imageviewer-extension/plugin.json new file mode 100644 index 0000000..bb4da91 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/imageviewer-extension/plugin.json @@ -0,0 +1,49 @@ +{ + "title": "Image Viewer", + "description": "Image viewer settings.", + "jupyter.lab.shortcuts": [ + { + "command": "imageviewer:flip-horizontal", + "keys": ["H"], + "selector": ".jp-ImageViewer" + }, + { + "command": "imageviewer:flip-vertical", + "keys": ["V"], + "selector": ".jp-ImageViewer" + }, + { + "command": "imageviewer:invert-colors", + "keys": ["I"], + "selector": ".jp-ImageViewer" + }, + { + "command": "imageviewer:reset-image", + "keys": ["0"], + "selector": ".jp-ImageViewer" + }, + { + "command": "imageviewer:rotate-clockwise", + "keys": ["]"], + "selector": ".jp-ImageViewer" + }, + { + "command": "imageviewer:rotate-counterclockwise", + "keys": ["["], + "selector": ".jp-ImageViewer" + }, + { + "command": "imageviewer:zoom-in", + "keys": ["="], + "selector": ".jp-ImageViewer" + }, + { + "command": "imageviewer:zoom-out", + "keys": ["-"], + "selector": ".jp-ImageViewer" + } + ], + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/consoles.json b/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/consoles.json new file mode 100644 index 0000000..006fbd5 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/consoles.json @@ -0,0 +1,16 @@ +{ + "title": "Inspector Notebook", + "description": "Inspector Notebook settings.", + "jupyter.lab.menus": { + "context": [ + { + "command": "inspector:open", + "selector": ".jp-CodeConsole-promptCell", + "rank": 5 + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/inspector.json b/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/inspector.json new file mode 100644 index 0000000..f79a60d --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/inspector.json @@ -0,0 +1,40 @@ +{ + "title": "Inspector", + "description": "Inspector settings.", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-help", + "items": [ + { + "type": "separator", + "rank": 0.1 + }, + { + "command": "inspector:open", + "rank": 0.1 + }, + { + "type": "separator", + "rank": 0.1 + } + ] + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "inspector:open", + "keys": ["Accel I"], + "selector": "body" + }, + { + "command": "inspector:close", + "keys": ["Accel I"], + "selector": "body[data-jp-inspector='open']" + } + ], + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/notebooks.json b/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/notebooks.json new file mode 100644 index 0000000..75b3747 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/notebooks.json @@ -0,0 +1,16 @@ +{ + "title": "Inspector Notebook", + "description": "Inspector Notebook settings.", + "jupyter.lab.menus": { + "context": [ + { + "command": "inspector:open", + "selector": ".jp-Notebook", + "rank": 50 + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/package.json.orig new file mode 100644 index 0000000..6903c16 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/package.json.orig @@ -0,0 +1,62 @@ +{ + "name": "@jupyterlab/inspector-extension", + "version": "4.5.1", + "description": "JupyterLab - Code Inspector 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.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/console": "^4.5.1", + "@jupyterlab/inspector": "^4.5.1", + "@jupyterlab/launcher": "^4.5.1", + "@jupyterlab/notebook": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@jupyterlab/ui-components": "^4.5.1", + "@lumino/widgets": "^2.7.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/share/jupyter/lab/schemas/@jupyterlab/launcher-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/launcher-extension/package.json.orig new file mode 100644 index 0000000..a11c30b --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/launcher-extension/package.json.orig @@ -0,0 +1,62 @@ +{ + "name": "@jupyterlab/launcher-extension", + "version": "4.5.1", + "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.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/filebrowser": "^4.5.1", + "@jupyterlab/launcher": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@jupyterlab/ui-components": "^4.5.1", + "@lumino/algorithm": "^2.0.4", + "@lumino/coreutils": "^2.2.2", + "@lumino/widgets": "^2.7.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/share/jupyter/lab/schemas/@jupyterlab/launcher-extension/plugin.json b/share/jupyter/lab/schemas/@jupyterlab/launcher-extension/plugin.json new file mode 100644 index 0000000..748cdb3 --- /dev/null +++ b/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/share/jupyter/lab/schemas/@jupyterlab/logconsole-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/logconsole-extension/package.json.orig new file mode 100644 index 0000000..c240272 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/logconsole-extension/package.json.orig @@ -0,0 +1,64 @@ +{ + "name": "@jupyterlab/logconsole-extension", + "version": "4.5.1", + "description": "JupyterLab - Log Console 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/**/*" + ], + "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", + "watch": "tsc -w --listEmittedFiles" + }, + "dependencies": { + "@jupyterlab/application": "^4.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/coreutils": "^6.5.1", + "@jupyterlab/docregistry": "^4.5.1", + "@jupyterlab/logconsole": "^4.5.1", + "@jupyterlab/rendermime": "^4.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/statusbar": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@jupyterlab/ui-components": "^4.5.1", + "@lumino/coreutils": "^2.2.2", + "@lumino/signaling": "^2.1.5", + "@lumino/widgets": "^2.7.2", + "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/share/jupyter/lab/schemas/@jupyterlab/logconsole-extension/plugin.json b/share/jupyter/lab/schemas/@jupyterlab/logconsole-extension/plugin.json new file mode 100644 index 0000000..9504d50 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/logconsole-extension/plugin.json @@ -0,0 +1,133 @@ +{ + "jupyter.lab.setting-icon": "ui-components:list", + "jupyter.lab.setting-icon-label": "Log Console", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-view", + "items": [ + { + "type": "separator", + "rank": 9.9 + }, + { + "command": "logconsole:open", + "rank": 9.95 + }, + { + "type": "separator", + "rank": 9.99 + } + ] + } + ], + "context": [ + { "command": "logconsole:open", "selector": ".jp-Notebook", "rank": 60 } + ] + }, + "title": "Log Console", + "description": "Log Console settings.", + "jupyter.lab.toolbars": { + "LogConsole": [ + { + "name": "add-checkpoint", + "command": "logconsole:add-checkpoint", + "rank": 10 + }, + { "name": "clear", "command": "logconsole:clear", "rank": 20 }, + { "name": "set-level", "command": "logconsole:set-level", "rank": 30 } + ] + }, + "jupyter.lab.transform": true, + "properties": { + "maxLogEntries": { + "type": "number", + "title": "Log entry count limit", + "description": "Maximum number of log entries to store in memory", + "default": 1000 + }, + "flash": { + "type": "boolean", + "title": "Status Bar Item flash", + "description": "Whether to flash on new log message or not", + "default": true + }, + "defaultLogLevel": { + "type": "string", + "title": "Default Log Level", + "description": "Default log level for loggers", + "oneOf": [ + { "const": "critical", "title": "Critical" }, + { "const": "error", "title": "Error" }, + { "const": "warning", "title": "Warning" }, + { "const": "info", "title": "Info" }, + { "const": "debug", "title": "Debug" } + ], + "default": "warning" + }, + "toolbar": { + "title": "Log console toolbar items", + "description": "Note: To disable a toolbar item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable the clear button:\n{\n \"toolbar\": [\n {\n \"name\": \"clear\",\n \"disabled\": true\n }\n ]\n}\n\nToolbar description:", + "items": { + "$ref": "#/definitions/toolbarItem" + }, + "type": "array", + "default": [] + } + }, + "additionalProperties": false, + "type": "object", + "definitions": { + "toolbarItem": { + "properties": { + "name": { + "title": "Unique name", + "type": "string" + }, + "args": { + "title": "Command arguments", + "type": "object" + }, + "command": { + "title": "Command id", + "type": "string", + "default": "" + }, + "disabled": { + "title": "Whether the item is ignored or not", + "type": "boolean", + "default": false + }, + "icon": { + "title": "Item icon id", + "description": "If defined, it will override the command icon", + "type": "string" + }, + "label": { + "title": "Item label", + "description": "If defined, it will override the command label", + "type": "string" + }, + "caption": { + "title": "Item caption", + "description": "If defined, it will override the command caption", + "type": "string" + }, + "type": { + "title": "Item type", + "type": "string", + "enum": ["command", "spacer"] + }, + "rank": { + "title": "Item rank", + "type": "number", + "minimum": 0, + "default": 50 + } + }, + "required": ["name"], + "additionalProperties": false, + "type": "object" + } + } +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/lsp-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/lsp-extension/package.json.orig new file mode 100644 index 0000000..331def5 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/lsp-extension/package.json.orig @@ -0,0 +1,64 @@ +{ + "name": "@jupyterlab/lsp-extension", + "version": "4.5.1", + "description": "", + "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,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 -b", + "build:all": "npm run build", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/lsp": "^4.5.1", + "@jupyterlab/running": "^4.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@jupyterlab/ui-components": "^4.5.1", + "@lumino/coreutils": "^2.2.2", + "@lumino/polling": "^2.1.5", + "@lumino/signaling": "^2.1.5", + "@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/share/jupyter/lab/schemas/@jupyterlab/lsp-extension/plugin.json b/share/jupyter/lab/schemas/@jupyterlab/lsp-extension/plugin.json new file mode 100644 index 0000000..b6c2282 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/lsp-extension/plugin.json @@ -0,0 +1,69 @@ +{ + "jupyter.lab.setting-icon": "ui-components:code-check", + "jupyter.lab.setting-icon-label": "Language integration", + "jupyter.lab.transform": true, + "title": "Language Servers (Experimental)", + "description": "Language Server Protocol settings.", + "type": "object", + "definitions": { + "languageServer": { + "type": "object", + "default": { + "configuration": {}, + "rank": 50 + }, + "properties": { + "configuration": { + "title": "Language Server Configurations", + "description": "Configuration to be sent to language server over LSP when initialized: see the specific language server's documentation for more", + "type": "object", + "default": {}, + "patternProperties": { + ".*": { + "type": ["number", "string", "boolean", "object", "array"] + } + }, + "additionalProperties": true + }, + "rank": { + "title": "Rank of the server", + "description": "When multiple servers match specific document/language, the server with the highest rank will be used", + "type": "number", + "default": 50, + "minimum": 1 + } + } + } + }, + "properties": { + "activate": { + "title": "Activate", + "description": "Enable or disable the language server services.", + "enum": ["off", "on"], + "default": "off" + }, + "languageServers": { + "title": "Language Server", + "description": "Language-server specific configuration, keyed by implementation", + "type": "object", + "default": {}, + "patternProperties": { + ".*": { + "$ref": "#/definitions/languageServer" + } + } + }, + "setTrace": { + "title": "Ask servers to send trace notifications", + "enum": ["off", "messages", "verbose"], + "default": "off", + "description": "Whether to ask server to send logs with execution trace (for debugging). Accepted values are: \"off\", \"messages\", \"verbose\". Servers are allowed to ignore this request." + }, + "logAllCommunication": { + "title": "Log communication", + "type": "boolean", + "default": false, + "description": "Enable or disable the logging feature of the language servers." + } + } +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/mainmenu-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/mainmenu-extension/package.json.orig new file mode 100644 index 0000000..e85228d --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/mainmenu-extension/package.json.orig @@ -0,0 +1,68 @@ +{ + "name": "@jupyterlab/mainmenu-extension", + "version": "4.5.1", + "description": "JupyterLab - Main Menu 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.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/coreutils": "^6.5.1", + "@jupyterlab/docmanager": "^4.5.1", + "@jupyterlab/filebrowser": "^4.5.1", + "@jupyterlab/mainmenu": "^4.5.1", + "@jupyterlab/services": "^7.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@jupyterlab/ui-components": "^4.5.1", + "@lumino/algorithm": "^2.0.4", + "@lumino/coreutils": "^2.2.2", + "@lumino/disposable": "^2.1.5", + "@lumino/messaging": "^2.0.4", + "@lumino/widgets": "^2.7.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/share/jupyter/lab/schemas/@jupyterlab/mainmenu-extension/plugin.json b/share/jupyter/lab/schemas/@jupyterlab/mainmenu-extension/plugin.json new file mode 100644 index 0000000..efebf49 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/mainmenu-extension/plugin.json @@ -0,0 +1,439 @@ +{ + "title": "Main Menu", + "description": "Main JupyterLab menu settings.", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "label": "File", + "items": [ + { + "type": "submenu", + "submenu": { + "id": "jp-mainmenu-file-new", + "label": "New", + "items": [] + }, + "rank": 0 + }, + { + "type": "separator", + "rank": 2 + }, + { + "command": "filemenu:create-console", + "rank": 2.1 + }, + { + "command": "filemenu:close-and-cleanup", + "rank": 3.1 + }, + { + "type": "separator", + "rank": 99 + }, + { + "command": "filemenu:logout", + "rank": 99 + }, + { + "command": "filemenu:shutdown", + "rank": 99 + } + ], + "rank": 1 + }, + { + "id": "jp-mainmenu-edit", + "label": "Edit", + "items": [ + { + "command": "editmenu:undo", + "rank": 0 + }, + { + "command": "editmenu:redo", + "rank": 0 + }, + { + "type": "separator", + "rank": 10 + }, + { + "command": "editmenu:clear-current", + "rank": 10 + }, + { + "command": "editmenu:clear-all", + "rank": 10 + }, + { + "type": "separator", + "rank": 200 + }, + { + "command": "editmenu:go-to-line", + "rank": 200 + } + ], + "rank": 2 + }, + { + "id": "jp-mainmenu-view", + "label": "View", + "items": [ + { + "type": "submenu", + "rank": 1, + "submenu": { + "id": "jp-mainmenu-view-appearance", + "label": "Appearance", + "items": [ + { + "command": "viewmenu:show-minimap", + "rank": 50 + }, + { + "type": "separator", + "rank": 50 + } + ] + } + }, + { + "type": "separator", + "rank": 10 + }, + { + "command": "viewmenu:line-numbering", + "rank": 10 + }, + { + "command": "viewmenu:match-brackets", + "rank": 10 + }, + { + "command": "viewmenu:word-wrap", + "rank": 10 + } + ], + "rank": 3 + }, + { + "id": "jp-mainmenu-run", + "label": "Run", + "items": [ + { + "command": "runmenu:run", + "rank": 0 + }, + { + "type": "separator" + }, + { + "command": "runmenu:run-all", + "rank": 999 + }, + { + "command": "runmenu:restart-and-run-all", + "rank": 999 + } + ], + "rank": 4 + }, + { + "id": "jp-mainmenu-kernel", + "label": "Kernel", + "items": [ + { + "command": "kernelmenu:interrupt", + "rank": 0 + }, + { + "type": "separator", + "rank": 1 + }, + { + "command": "kernelmenu:restart", + "rank": 1 + }, + { + "command": "kernelmenu:restart-and-clear", + "rank": 1 + }, + { + "command": "runmenu:restart-and-run-all", + "rank": 1.1 + }, + { + "type": "separator", + "rank": 1.5 + }, + { + "command": "kernelmenu:reconnect-to-kernel", + "rank": 1.5 + }, + { + "type": "separator", + "rank": 2 + }, + { + "command": "kernelmenu:shutdown", + "rank": 2 + }, + { + "command": "kernelmenu:shutdownAll", + "rank": 2 + }, + { + "type": "separator", + "rank": 3 + }, + { + "command": "kernelmenu:change", + "rank": 3 + } + ], + "rank": 5 + }, + { + "id": "jp-mainmenu-tabs", + "label": "Tabs", + "items": [ + { + "command": "application:activate-next-tab", + "rank": 0 + }, + { + "command": "application:activate-previous-tab", + "rank": 0 + }, + { + "command": "application:activate-next-tab-bar", + "rank": 0 + }, + { + "command": "application:activate-previous-tab-bar", + "rank": 0 + }, + { + "command": "tabsmenu:activate-previously-used-tab", + "rank": 0 + } + ], + "rank": 500 + }, + { + "id": "jp-mainmenu-settings", + "label": "Settings", + "items": [ + { + "command": "settingeditor:open", + "rank": 1000 + } + ], + "rank": 999 + }, + { + "id": "jp-mainmenu-help", + "label": "Help", + "items": [], + "rank": 1000 + } + ], + "context": [ + { + "command": "filemenu:create-console", + "selector": "[data-type=\"document-title\"].jp-mod-current", + "rank": 10 + }, + { + "command": "recentmenu:reopen-last", + "selector": "#jp-main-dock-panel .lm-DockPanel-tabBar .lm-TabBar-tab", + "rank": 6 + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "editmenu:clear-all", + "keys": [""], + "selector": "[data-jp-undoer]" + }, + { + "command": "editmenu:clear-current", + "keys": [""], + "selector": "[data-jp-undoer]" + }, + { + "command": "editmenu:find", + "keys": [""], + "selector": "[data-jp-undoer]" + }, + { + "command": "editmenu:find-and-replace", + "keys": [""], + "selector": "[data-jp-undoer]" + }, + { + "command": "editmenu:redo", + "keys": ["Accel Shift Z"], + "selector": "[data-jp-undoer]" + }, + { + "command": "editmenu:undo", + "keys": ["Accel Z"], + "selector": "[data-jp-undoer]" + }, + { + "command": "filemenu:close-and-cleanup", + "keys": ["Ctrl Shift Q"], + "selector": ".jp-Activity" + }, + { + "command": "kernelmenu:interrupt", + "keys": ["I", "I"], + "selector": "[data-jp-kernel-user]:not(.jp-mod-readWrite) :focus:not(:read-write)" + }, + { + "command": "kernelmenu:restart", + "keys": ["0", "0"], + "selector": "[data-jp-kernel-user]:not(.jp-mod-readWrite) :focus:not(:read-write)" + }, + { + "command": "kernelmenu:restart-and-clear", + "keys": [""], + "selector": "[data-jp-kernel-user]:not(.jp-mod-readWrite) :focus:not(:read-write)" + }, + { + "command": "kernelmenu:shutdown", + "keys": [""], + "selector": "[data-jp-kernel-user]:not(.jp-mod-readWrite) :focus:not(:read-write)" + }, + { + "command": "runmenu:restart-and-run-all", + "keys": [""], + "selector": "[data-jp-code-runner]" + }, + { + "command": "runmenu:run", + "keys": ["Shift Enter"], + "selector": "[data-jp-code-runner]" + }, + { + "command": "runmenu:run-all", + "keys": [""], + "selector": "[data-jp-code-runner]" + }, + { + "command": "tabsmenu:activate-previously-used-tab", + "keys": ["Accel Shift '"], + "selector": "body" + }, + { + "command": "recentmenu:reopen-last", + "keys": ["Accel Shift T"], + "selector": "body" + } + ], + "jupyter.lab.transform": true, + "properties": { + "menus": { + "title": "The application menu description.", + "description": "Note: To disable a menu or a menu item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable\nthe \"Tabs\" menu and \"Restart Kernel and Run up to Selected Cell\"\nitem:\n{\n \"menus\": [\n {\n \"id\": \"jp-mainmenu-tabs\",\n \"disabled\": true\n },\n {\n \"id\": \"jp-mainmenu-kernel\",\n \"items\": [\n {\n \"command\": \"notebook:restart-and-run-to-selected\",\n \"disabled\": true\n }\n ]\n }\n ]\n}\n\nMenu description:", + "items": { + "$ref": "#/definitions/menu" + }, + "type": "array", + "default": [] + } + }, + "additionalProperties": false, + "definitions": { + "menu": { + "properties": { + "disabled": { + "description": "Whether the menu is disabled or not", + "type": "boolean", + "default": false + }, + "icon": { + "description": "Menu icon id", + "type": "string" + }, + "id": { + "description": "Menu unique id", + "type": "string", + "pattern": "[a-z][a-z0-9\\-_]+" + }, + "items": { + "description": "Menu items", + "type": "array", + "items": { + "$ref": "#/definitions/menuItem" + } + }, + "label": { + "description": "Menu label", + "type": "string" + }, + "mnemonic": { + "description": "Mnemonic index for the label", + "type": "number", + "minimum": -1, + "default": -1 + }, + "rank": { + "description": "Menu rank", + "type": "number", + "minimum": 0 + } + }, + "required": ["id"], + "additionalProperties": false, + "type": "object" + }, + "menuItem": { + "properties": { + "args": { + "description": "Command arguments", + "type": "object" + }, + "command": { + "description": "Command id", + "type": "string" + }, + "disabled": { + "description": "Whether the item is disabled or not", + "type": "boolean", + "default": false + }, + "type": { + "description": "Item type", + "type": "string", + "enum": ["command", "submenu", "separator"], + "default": "command" + }, + "rank": { + "description": "Item rank", + "type": "number", + "minimum": 0 + }, + "submenu": { + "description": "Submenu definition", + "oneOf": [ + { + "$ref": "#/definitions/menu" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "type": "object" + } + }, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/markdownviewer-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/markdownviewer-extension/package.json.orig new file mode 100644 index 0000000..a94494b --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/markdownviewer-extension/package.json.orig @@ -0,0 +1,61 @@ +{ + "name": "@jupyterlab/markdownviewer-extension", + "version": "4.5.1", + "description": "JupyterLab - Markdown Renderer 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.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/coreutils": "^6.5.1", + "@jupyterlab/markdownviewer": "^4.5.1", + "@jupyterlab/rendermime": "^4.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/toc": "^6.5.1", + "@jupyterlab/translation": "^4.5.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/share/jupyter/lab/schemas/@jupyterlab/markdownviewer-extension/plugin.json b/share/jupyter/lab/schemas/@jupyterlab/markdownviewer-extension/plugin.json new file mode 100644 index 0000000..2239d73 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/markdownviewer-extension/plugin.json @@ -0,0 +1,76 @@ +{ + "jupyter.lab.setting-icon": "ui-components:markdown", + "jupyter.lab.setting-icon-label": "Markdown Viewer", + "title": "Markdown Viewer", + "description": "Markdown viewer settings.", + "jupyter.lab.menus": { + "context": [ + { + "command": "markdownviewer:edit", + "selector": ".jp-RenderedMarkdown" + } + ] + }, + "definitions": { + "fontFamily": { + "type": ["string", "null"] + }, + "fontSize": { + "type": ["integer", "null"], + "minimum": 1, + "maximum": 100 + }, + "lineHeight": { + "type": ["number", "null"] + }, + "lineWidth": { + "type": ["number", "null"] + }, + "hideFrontMatter": { + "type": "boolean" + }, + "renderTimeout": { + "type": "number" + } + }, + "properties": { + "fontFamily": { + "title": "Font Family", + "description": "The font family used to render markdown.\nIf `null`, value from current theme is used.", + "$ref": "#/definitions/fontFamily", + "default": null + }, + "fontSize": { + "title": "Font Size", + "description": "The size in pixel of the font used to render markdown.\nIf `null`, value from current theme is used.", + "$ref": "#/definitions/fontSize", + "default": null + }, + "lineHeight": { + "title": "Line Height", + "description": "The line height used to render markdown.\nIf `null`, value from current theme is used.", + "$ref": "#/definitions/lineHeight", + "default": null + }, + "lineWidth": { + "title": "Line Width", + "description": "The text line width expressed in CSS ch units.\nIf `null`, lines fit the viewport width.", + "$ref": "#/definitions/lineWidth", + "default": null + }, + "hideFrontMatter": { + "title": "Hide Front Matter", + "description": "Whether to hide YAML front matter.\nThe YAML front matter must be placed at the top of the document,\nstarted by a line of three dashes (---) and ended by a line of\nthree dashes (---) or three points (...).", + "$ref": "#/definitions/hideFrontMatter", + "default": true + }, + "renderTimeout": { + "title": "Render Timeout", + "description": "The render timeout in milliseconds.", + "$ref": "#/definitions/renderTimeout", + "default": 1000 + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/mathjax-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/mathjax-extension/package.json.orig new file mode 100644 index 0000000..c9468fd --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/mathjax-extension/package.json.orig @@ -0,0 +1,72 @@ +{ + "name": "@jupyterlab/mathjax-extension", + "version": "4.5.1", + "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", + "build:test": "tsc --build tsconfig.test.json", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "eslint": "eslint . --ext .ts,.tsx --fix", + "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 -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.5.1", + "@jupyterlab/rendermime": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@lumino/coreutils": "^2.2.2", + "mathjax-full": "^3.2.2" + }, + "devDependencies": { + "@jupyterlab/testing": "^4.5.1", + "@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/share/jupyter/lab/schemas/@jupyterlab/mathjax-extension/plugin.json b/share/jupyter/lab/schemas/@jupyterlab/mathjax-extension/plugin.json new file mode 100644 index 0000000..e3218a1 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/mathjax-extension/plugin.json @@ -0,0 +1,38 @@ +{ + "title": "MathJax Plugin", + "description": "MathJax math renderer for JupyterLab", + "jupyter.lab.menus": { + "context": [ + { + "type": "separator", + "selector": ".MathJax", + "rank": 12 + }, + { + "command": "mathjax:clipboard", + "selector": ".MathJax", + "rank": 13 + }, + { + "command": "mathjax:scale", + "selector": ".MathJax", + "rank": 13 + }, + { + "command": "mathjax:scale", + "selector": ".MathJax", + "rank": 13, + "args": { + "scale": 1.5 + } + }, + { + "type": "separator", + "selector": ".MathJax", + "rank": 13 + } + ] + }, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/metadataform-extension/metadataforms.json b/share/jupyter/lab/schemas/@jupyterlab/metadataform-extension/metadataforms.json new file mode 100644 index 0000000..f4b12b1 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/metadataform-extension/metadataforms.json @@ -0,0 +1,100 @@ +{ + "type": "object", + "title": "Metadata Form", + "description": "Settings of the metadata form extension.", + "jupyter.lab.metadataforms": [], + "jupyter.lab.transform": true, + "additionalProperties": false, + "properties": { + "metadataforms": { + "items": { + "$ref": "#/definitions/metadataForm" + }, + "type": "array", + "default": [] + } + }, + "definitions": { + "metadataForm": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The section ID" + }, + "metadataSchema": { + "type": "object", + "items": { + "$ref": "#/definitions/metadataSchema" + } + }, + "uiSchema": { + "type": "object" + }, + "metadataOptions": { + "type": "object", + "items": { + "$ref": "#/definitions/metadataOptions" + } + }, + "label": { + "type": "string", + "description": "The section label" + }, + "rank": { + "type": "integer", + "description": "The rank of the section in the right panel" + }, + "showModified": { + "type": "boolean", + "description": "Whether to show that values have been modified from defaults" + } + }, + "required": ["id", "metadataSchema"] + }, + "metadataSchema": { + "properties": { + "properties": { + "type": "object", + "description": "The property set up by extension", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "type": { + "type": "string" + } + } + } + }, + "type": "object", + "required": ["properties"] + }, + "metadataOptions": { + "properties": { + "customRenderer": { + "type": "string" + }, + "metadataLevel": { + "type": "string", + "enum": ["cell", "notebook"], + "default": "cell" + }, + "cellTypes": { + "type": "array", + "items": { + "type": "string", + "enum": ["code", "markdown", "raw"] + } + }, + "writeDefault": { + "type": "boolean" + } + }, + "type": "object" + } + } +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/metadataform-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/metadataform-extension/package.json.orig new file mode 100644 index 0000000..7cf91fe --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/metadataform-extension/package.json.orig @@ -0,0 +1,62 @@ +{ + "name": "@jupyterlab/metadataform-extension", + "version": "4.5.1", + "description": "A helper to build form for metadata", + "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/**/*" + ], + "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", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "watch": "tsc -w --listEmittedFiles" + }, + "dependencies": { + "@jupyterlab/application": "^4.5.1", + "@jupyterlab/metadataform": "^4.5.1", + "@jupyterlab/notebook": "^4.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@jupyterlab/ui-components": "^4.5.1", + "@lumino/coreutils": "^2.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/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/completer.json b/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/completer.json new file mode 100644 index 0000000..7baf430 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/completer.json @@ -0,0 +1,14 @@ +{ + "title": "Notebook Completer", + "description": "Notebook completer settings.", + "jupyter.lab.shortcuts": [ + { + "command": "completer:invoke-notebook", + "keys": ["Tab"], + "selector": ".jp-Notebook.jp-mod-editMode .jp-mod-completer-enabled:not(.jp-mod-at-line-beginning)" + } + ], + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/export.json b/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/export.json new file mode 100644 index 0000000..d0f3517 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/export.json @@ -0,0 +1,32 @@ +{ + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "items": [ + { + "type": "separator", + "rank": 10 + }, + { + "type": "submenu", + "rank": 10, + "submenu": { + "id": "jp-mainmenu-file-notebookexport", + "label": "Save and Export Notebook As" + } + }, + { + "type": "separator", + "rank": 10 + } + ] + } + ] + }, + "title": "Notebook Export", + "description": "Notebook Export settings.", + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/package.json.orig new file mode 100644 index 0000000..fb23dbc --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/package.json.orig @@ -0,0 +1,92 @@ +{ + "name": "@jupyterlab/notebook-extension", + "version": "4.5.1", + "description": "JupyterLab - Notebook 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/**/*" + ], + "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": { + "@jupyter/ydoc": "^3.1.0", + "@jupyterlab/application": "^4.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/cell-toolbar": "^4.5.1", + "@jupyterlab/cells": "^4.5.1", + "@jupyterlab/codeeditor": "^4.5.1", + "@jupyterlab/codemirror": "^4.5.1", + "@jupyterlab/completer": "^4.5.1", + "@jupyterlab/coreutils": "^6.5.1", + "@jupyterlab/docmanager": "^4.5.1", + "@jupyterlab/docmanager-extension": "^4.5.1", + "@jupyterlab/docregistry": "^4.5.1", + "@jupyterlab/documentsearch": "^4.5.1", + "@jupyterlab/filebrowser": "^4.5.1", + "@jupyterlab/launcher": "^4.5.1", + "@jupyterlab/logconsole": "^4.5.1", + "@jupyterlab/lsp": "^4.5.1", + "@jupyterlab/mainmenu": "^4.5.1", + "@jupyterlab/metadataform": "^4.5.1", + "@jupyterlab/nbformat": "^4.5.1", + "@jupyterlab/notebook": "^4.5.1", + "@jupyterlab/observables": "^5.5.1", + "@jupyterlab/property-inspector": "^4.5.1", + "@jupyterlab/rendermime": "^4.5.1", + "@jupyterlab/services": "^7.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/statedb": "^4.5.1", + "@jupyterlab/statusbar": "^4.5.1", + "@jupyterlab/toc": "^6.5.1", + "@jupyterlab/translation": "^4.5.1", + "@jupyterlab/ui-components": "^4.5.1", + "@lumino/algorithm": "^2.0.4", + "@lumino/commands": "^2.3.3", + "@lumino/coreutils": "^2.2.2", + "@lumino/disposable": "^2.1.5", + "@lumino/messaging": "^2.0.4", + "@lumino/polling": "^2.1.5", + "@lumino/widgets": "^2.7.2", + "@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/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/panel.json b/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/panel.json new file mode 100644 index 0000000..88c5800 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/panel.json @@ -0,0 +1,105 @@ +{ + "title": "Notebook Panel", + "description": "Notebook Panel settings.", + "jupyter.lab.toolbars": { + "Notebook": [ + { "name": "save", "rank": 10 }, + { + "name": "insert", + "command": "notebook:insert-cell-below", + "icon": "ui-components:add", + "rank": 20 + }, + { "name": "cut", "command": "notebook:cut-cell", "rank": 21 }, + { "name": "copy", "command": "notebook:copy-cell", "rank": 22 }, + { "name": "paste", "command": "notebook:paste-cell-below", "rank": 23 }, + { + "name": "run", + "command": "notebook:run-cell-and-select-next", + "rank": 30 + }, + { + "name": "interrupt", + "command": "notebook:interrupt-kernel", + "rank": 31 + }, + { "name": "restart", "command": "notebook:restart-kernel", "rank": 32 }, + { + "name": "restart-and-run", + "command": "notebook:restart-run-all", + "rank": 33 + }, + { "name": "cellType", "rank": 40 }, + { "name": "spacer", "type": "spacer", "rank": 100 }, + { "name": "kernelName", "rank": 1000 }, + { "name": "executionProgress", "rank": 1002 } + ] + }, + "jupyter.lab.transform": true, + "properties": { + "toolbar": { + "title": "Notebook panel toolbar items", + "description": "Note: To disable a toolbar item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable the Interrupt button item:\n{\n \"toolbar\": [\n {\n \"name\": \"interrupt\",\n \"disabled\": true\n }\n ]\n}\n\nToolbar description:", + "items": { + "$ref": "#/definitions/toolbarItem" + }, + "type": "array", + "default": [] + } + }, + "additionalProperties": false, + "type": "object", + "definitions": { + "toolbarItem": { + "properties": { + "name": { + "title": "Unique name", + "type": "string" + }, + "args": { + "title": "Command arguments", + "type": "object" + }, + "command": { + "title": "Command id", + "type": "string", + "default": "" + }, + "disabled": { + "title": "Whether the item is ignored or not", + "type": "boolean", + "default": false + }, + "icon": { + "title": "Item icon id", + "description": "If defined, it will override the command icon", + "type": "string" + }, + "label": { + "title": "Item label", + "description": "If defined, it will override the command label", + "type": "string" + }, + "caption": { + "title": "Item caption", + "description": "If defined, it will override the command caption", + "type": "string" + }, + "type": { + "title": "Item type", + "type": "string", + "enum": ["command", "spacer"] + }, + "rank": { + "title": "Item rank", + "type": "number", + "minimum": 0, + "default": 50 + } + }, + "required": ["name"], + "additionalProperties": false, + "type": "object" + } + } +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tools.json b/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tools.json new file mode 100644 index 0000000..1b35ff6 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tools.json @@ -0,0 +1,143 @@ +{ + "type": "object", + "title": "Common tools", + "description": "Setting for the common tools", + "jupyter.lab.metadataforms": [ + { + "id": "commonToolsSection", + "label": "Common Tools", + "metadataSchema": { + "type": "object", + "properties": { + "_CELL-TOOL": { + "title": "Cell tool", + "type": "null" + }, + "/editable": { + "title": "Editable", + "type": "boolean", + "default": true, + "oneOf": [ + { + "const": true, + "title": "Editable" + }, + { + "const": false, + "title": "Read-Only" + } + ] + }, + "/slideshow/slide_type": { + "title": "Slide Type", + "type": "string", + "default": "", + "oneOf": [ + { + "const": "", + "title": "-" + }, + { + "const": "slide", + "title": "Slide" + }, + { + "const": "subslide", + "title": "Sub-Slide" + }, + { + "const": "fragment", + "title": "Fragment" + }, + { + "const": "skip", + "title": "Skip" + }, + { + "const": "notes", + "title": "Notes" + } + ] + }, + "/raw_mimetype": { + "title": "Raw NBConvert Format", + "type": "string", + "default": "", + "oneOf": [ + { + "const": "", + "title": "-" + }, + { + "const": "pdf", + "title": "PDF" + }, + { + "const": "slides", + "title": "Slides" + }, + { + "const": "script", + "title": "Script" + }, + { + "const": "notebook", + "title": "Notebook" + }, + { + "const": "custom", + "title": "Custom" + } + ] + }, + "/toc/base_numbering": { + "title": "Table of content - Base number", + "type": "integer" + } + } + }, + "uiSchema": { + "/editable": { + "ui:widget": "select" + } + }, + "metadataOptions": { + "_CELL-TOOL": { + "customRenderer": "@jupyterlab/notebook-extension:active-cell-tool.renderer" + }, + "/raw_mimetype": { + "cellTypes": ["raw"] + }, + "/toc/base_numbering": { + "metadataLevel": "notebook" + } + } + }, + { + "id": "advancedToolsSection", + "label": "Advanced Tools", + "metadataSchema": { + "type": "object", + "properties": { + "_CELL-METADATA": { + "title": "Cell metadata", + "type": "null" + }, + "_NOTEBOOK-METADATA": { + "title": "Notebook metadata", + "type": "null" + } + } + }, + "metadataOptions": { + "_CELL-METADATA": { + "customRenderer": "@jupyterlab/notebook-extension:metadata-editor.cell-metadata" + }, + "_NOTEBOOK-METADATA": { + "customRenderer": "@jupyterlab/notebook-extension:metadata-editor.notebook-metadata" + } + } + } + ], + "additionalProperties": false +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tracker.json b/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tracker.json new file mode 100644 index 0000000..6ffbbc5 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tracker.json @@ -0,0 +1,867 @@ +{ + "jupyter.lab.setting-icon": "ui-components:notebook", + "jupyter.lab.setting-icon-label": "Notebook", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "items": [ + { + "type": "submenu", + "submenu": { + "id": "jp-mainmenu-file-new", + "items": [ + { + "command": "notebook:create-new", + "rank": 10 + } + ] + } + } + ] + }, + { + "id": "jp-mainmenu-edit", + "items": [ + { + "type": "separator", + "rank": 4 + }, + { + "command": "notebook:undo-cell-action", + "rank": 4 + }, + { + "command": "notebook:redo-cell-action", + "rank": 4 + }, + { + "type": "separator", + "rank": 5 + }, + { + "command": "notebook:cut-cell", + "rank": 5 + }, + { + "command": "notebook:copy-cell", + "rank": 5 + }, + { + "command": "notebook:paste-cell-below", + "rank": 5 + }, + { + "command": "notebook:paste-cell-above", + "rank": 5 + }, + { + "command": "notebook:paste-and-replace-cell", + "rank": 5 + }, + { + "type": "separator", + "rank": 6 + }, + { + "command": "notebook:delete-cell", + "rank": 6 + }, + { + "type": "separator", + "rank": 7 + }, + { + "command": "notebook:select-all", + "rank": 7 + }, + { + "command": "notebook:deselect-all", + "rank": 7 + }, + { + "type": "separator", + "rank": 8 + }, + { + "command": "notebook:move-cell-up", + "rank": 8 + }, + { + "command": "notebook:move-cell-down", + "rank": 8 + }, + { + "type": "separator", + "rank": 9 + }, + { + "command": "notebook:split-cell-at-cursor", + "rank": 9 + }, + { + "command": "notebook:merge-cells", + "rank": 9 + }, + { + "command": "notebook:merge-cell-above", + "rank": 9 + }, + { + "command": "notebook:merge-cell-below", + "rank": 9 + }, + { + "type": "separator", + "rank": 9 + } + ] + }, + { + "id": "jp-mainmenu-view", + "items": [ + { + "type": "separator", + "rank": 10 + }, + { + "command": "notebook:hide-cell-code", + "rank": 10 + }, + { + "command": "notebook:hide-cell-outputs", + "rank": 10 + }, + { + "command": "notebook:hide-all-cell-code", + "rank": 10 + }, + { + "command": "notebook:hide-all-cell-outputs", + "rank": 10 + }, + { + "type": "separator", + "rank": 10 + }, + { + "command": "notebook:show-cell-code", + "rank": 11 + }, + { + "command": "notebook:show-cell-outputs", + "rank": 11 + }, + { + "command": "notebook:show-all-cell-code", + "rank": 11 + }, + { + "command": "notebook:show-all-cell-outputs", + "rank": 11 + }, + { + "type": "separator", + "rank": 11 + }, + { + "command": "notebook:toggle-render-side-by-side-current", + "rank": 12 + }, + { + "type": "separator", + "rank": 12 + } + ] + }, + { + "id": "jp-mainmenu-run", + "items": [ + { + "type": "separator", + "rank": 10 + }, + { + "command": "notebook:run-cell-and-insert-below", + "rank": 10 + }, + { + "command": "notebook:run-cell", + "rank": 10 + }, + { + "command": "notebook:run-in-console", + "rank": 10 + }, + { + "type": "separator", + "rank": 11 + }, + { + "command": "notebook:run-all-above", + "rank": 11 + }, + { + "command": "notebook:run-all-below", + "rank": 11 + }, + { + "type": "separator", + "rank": 12 + }, + { + "command": "notebook:render-all-markdown", + "rank": 12 + }, + { + "type": "separator", + "rank": 12 + } + ] + }, + { + "id": "jp-mainmenu-kernel", + "items": [ + { + "command": "notebook:restart-and-run-to-selected", + "rank": 1 + } + ] + } + ], + "context": [ + { + "type": "separator", + "selector": ".jp-Notebook .jp-Cell", + "rank": 0 + }, + { + "command": "notebook:cut-cell", + "selector": ".jp-Notebook .jp-Cell", + "rank": 1 + }, + { + "command": "notebook:copy-cell", + "selector": ".jp-Notebook .jp-Cell", + "rank": 2 + }, + { + "command": "notebook:paste-cell-below", + "selector": ".jp-Notebook .jp-Cell", + "rank": 3 + }, + { + "type": "separator", + "selector": ".jp-Notebook .jp-Cell", + "rank": 4 + }, + { + "command": "notebook:delete-cell", + "selector": ".jp-Notebook .jp-Cell", + "rank": 5 + }, + { + "type": "separator", + "selector": ".jp-Notebook .jp-Cell", + "rank": 6 + }, + { + "command": "notebook:split-cell-at-cursor", + "selector": ".jp-Notebook .jp-Cell", + "rank": 7 + }, + { + "command": "notebook:merge-cells", + "selector": ".jp-Notebook .jp-Cell", + "rank": 8 + }, + { + "command": "notebook:merge-cell-above", + "selector": ".jp-Notebook .jp-Cell", + "rank": 8 + }, + { + "command": "notebook:merge-cell-below", + "selector": ".jp-Notebook .jp-Cell", + "rank": 8 + }, + { + "type": "separator", + "selector": ".jp-Notebook .jp-Cell", + "rank": 9 + }, + { + "command": "notebook:create-output-view", + "selector": ".jp-Notebook .jp-CodeCell", + "rank": 10 + }, + { + "type": "separator", + "selector": ".jp-Notebook .jp-CodeCell", + "rank": 11 + }, + { + "command": "notebook:clear-cell-output", + "selector": ".jp-Notebook .jp-CodeCell", + "rank": 12 + }, + { + "command": "notebook:clear-all-cell-outputs", + "selector": ".jp-Notebook", + "rank": 13 + }, + { + "type": "separator", + "selector": ".jp-Notebook", + "rank": 20 + }, + { + "command": "notebook:enable-output-scrolling", + "selector": ".jp-Notebook", + "rank": 21 + }, + { + "command": "notebook:disable-output-scrolling", + "selector": ".jp-Notebook", + "rank": 22 + }, + { + "type": "separator", + "selector": ".jp-Notebook", + "rank": 30 + }, + { + "command": "notebook:undo-cell-action", + "selector": ".jp-Notebook", + "rank": 31 + }, + { + "command": "notebook:redo-cell-action", + "selector": ".jp-Notebook", + "rank": 32 + }, + { + "command": "notebook:restart-kernel", + "selector": ".jp-Notebook", + "rank": 33 + }, + { + "type": "separator", + "selector": ".jp-Notebook", + "rank": 40 + }, + { + "command": "notebook:create-console", + "selector": ".jp-Notebook", + "rank": 41 + }, + { + "command": "notebook:create-subshell-console", + "selector": ".jp-Notebook", + "rank": 42 + }, + { + "command": "notebook:create-new", + "selector": ".jp-DirListing-content", + "rank": 52, + "args": { + "isContextMenu": true + } + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "notebook:change-cell-to-code", + "keys": ["Y"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:change-cell-to-heading-1", + "keys": ["1"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:change-cell-to-heading-2", + "keys": ["2"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:change-cell-to-heading-3", + "keys": ["3"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:change-cell-to-heading-4", + "keys": ["4"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:change-cell-to-heading-5", + "keys": ["5"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:change-cell-to-heading-6", + "keys": ["6"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:change-cell-to-markdown", + "keys": ["M"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:change-cell-to-raw", + "keys": ["R"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:copy-cell", + "keys": ["C"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:cut-cell", + "keys": ["X"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:delete-cell", + "keys": ["D", "D"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:enter-command-mode", + "keys": ["Escape"], + "selector": ".jp-Notebook.jp-mod-editMode" + }, + { + "command": "notebook:enter-command-mode", + "keys": ["Ctrl M"], + "selector": ".jp-Notebook.jp-mod-editMode" + }, + { + "command": "notebook:access-previous-history-entry", + "keys": ["Alt ArrowUp"], + "selector": ".jp-Notebook.jp-mod-editMode" + }, + { + "command": "notebook:access-next-history-entry", + "keys": ["Alt ArrowDown"], + "selector": ".jp-Notebook.jp-mod-editMode" + }, + { + "command": "notebook:enter-edit-mode", + "keys": ["Enter"], + "selector": ".jp-Notebook.jp-mod-commandMode .jp-Cell:focus" + }, + { + "command": "notebook:extend-marked-cells-above", + "keys": ["Shift ArrowUp"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:extend-marked-cells-above", + "keys": ["Shift K"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:extend-marked-cells-top", + "keys": ["Shift Home"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:extend-marked-cells-below", + "keys": ["Shift ArrowDown"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:extend-marked-cells-bottom", + "keys": ["Shift End"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:extend-marked-cells-below", + "keys": ["Shift J"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:insert-cell-above", + "keys": ["A"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:insert-cell-below", + "keys": ["B"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:merge-cells", + "keys": ["Shift M"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:merge-cell-above", + "keys": ["Ctrl Backspace"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:merge-cell-below", + "keys": ["Ctrl Shift M"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:move-cursor-down", + "keys": ["ArrowDown"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:move-cursor-down", + "keys": ["J"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:move-cursor-up", + "keys": ["ArrowUp"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:move-cursor-up", + "keys": ["K"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:move-cursor-heading-above-or-collapse", + "keys": ["ArrowLeft"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:move-cursor-heading-below-or-expand", + "keys": ["ArrowRight"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:insert-heading-above", + "keys": ["Shift A"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:insert-heading-below", + "keys": ["Shift B"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:collapse-all-headings", + "keys": ["Ctrl Shift ArrowLeft"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:expand-all-headings", + "keys": ["Ctrl Shift ArrowRight"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:paste-cell-below", + "keys": ["V"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:redo-cell-action", + "keys": ["Shift Z"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:run-cell", + "macKeys": ["Ctrl Enter"], + "keys": [], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:run-cell", + "macKeys": ["Ctrl Enter"], + "keys": [], + "selector": ".jp-Notebook.jp-mod-editMode" + }, + { + "command": "notebook:run-cell", + "keys": ["Accel Enter"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:run-cell", + "keys": ["Accel Enter"], + "selector": ".jp-Notebook.jp-mod-editMode" + }, + { + "command": "notebook:run-cell-and-insert-below", + "keys": ["Alt Enter"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:run-cell-and-insert-below", + "keys": ["Alt Enter"], + "selector": ".jp-Notebook.jp-mod-editMode" + }, + { + "command": "notebook:run-in-console", + "keys": [""], + "selector": ".jp-Notebook.jp-mod-editMode" + }, + { + "command": "notebook:run-cell-and-select-next", + "keys": ["Shift Enter"], + "selector": ".jp-Notebook.jp-mod-editMode" + }, + { + "command": "viewmenu:line-numbering", + "keys": ["Shift L"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "viewmenu:match-brackets", + "keys": [""], + "selector": ".jp-Notebook.jp-mod-commandMode" + }, + { + "command": "notebook:select-all", + "keys": ["Accel A"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:split-cell-at-cursor", + "keys": ["Ctrl Shift -"], + "selector": ".jp-Notebook.jp-mod-editMode" + }, + { + "command": "notebook:undo-cell-action", + "keys": ["Z"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:toggle-render-side-by-side-current", + "keys": ["Shift R"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:move-cell-up", + "keys": ["Ctrl Shift ArrowUp"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + }, + { + "command": "notebook:move-cell-down", + "keys": ["Ctrl Shift ArrowDown"], + "selector": ".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus" + } + ], + "title": "Notebook", + "description": "Notebook settings.", + "definitions": { + "kernelStatusConfig": { + "type": "object", + "additionalProperties": false, + "properties": { + "showOnStatusBar": { + "type": "boolean", + "title": "Show kernel status on toolbar or status bar.", + "description": "If `true`, the kernel status progression will be displayed in the status bar otherwise it will be in the toolbar.", + "default": false + }, + "showProgress": { + "type": "boolean", + "title": "Show execution progress.", + "default": true + }, + "showJumpToRecentExecutionButton": { + "type": "boolean", + "title": "Show jump to most recently executed/executing cell button", + "description": "If enabled, displays a button that scrolls to the currently executing cell or, if none, the most recently executed cell. scrolls to the currently executing cell or, if none, the most recently executed cell. The button shows when hovering over the kernel execution indicator. Enabling this option automatically enables recording of execution timing metadata.", + "default": false + } + } + } + }, + "properties": { + "enableKernelInitNotification": { + "title": "Notify about code execution if kernel is initializing", + "description": "Display notification if code cells are run while kernel is initializing.", + "type": "boolean", + "default": false + }, + "codeCellConfig": { + "title": "Code Cell Configuration", + "description": "The configuration for all code cells; it will override the CodeMirror default configuration.", + "type": "object", + "default": { + "lineNumbers": false, + "lineWrap": false + } + }, + "defaultCell": { + "title": "Default cell type", + "description": "The default type (markdown, code, or raw) for new cells", + "type": "string", + "enum": ["code", "markdown", "raw"], + "default": "code" + }, + "autoStartDefaultKernel": { + "title": "Automatically Start Preferred Kernel", + "description": "Whether to automatically start the preferred kernel.", + "type": "boolean", + "default": false + }, + "showInputPlaceholder": { + "title": "Show input placeholder", + "description": "Show placeholder text for standard input fields (requires reload)", + "type": "boolean", + "default": true + }, + "inputHistoryScope": { + "type": "string", + "default": "global", + "enum": ["global", "session"], + "title": "Input History Scope", + "description": "Whether the line history for standard input (e.g. the ipdb prompt) should kept separately for different kernel sessions (`session`) or combined (`global`)." + }, + "kernelShutdown": { + "title": "Shut down kernel", + "description": "Whether to shut down or not the kernel when closing a notebook.", + "type": "boolean", + "default": false + }, + "markdownCellConfig": { + "title": "Markdown Cell Configuration", + "description": "The configuration for all markdown cells; it will override the CodeMirror default configuration.", + "type": "object", + "default": { + "lineNumbers": false, + "matchBrackets": false + } + }, + "autoRenderMarkdownCells": { + "title": "Automatically render markdown when cursor leaves markdown cells", + "description": "Whether to render markdown cells when the cursor moves out of them.", + "type": "boolean", + "default": false + }, + "rawCellConfig": { + "title": "Raw Cell Configuration", + "description": "The configuration for all raw cells; it will override the CodeMirror default configuration.", + "type": "object", + "default": { + "lineNumbers": false, + "matchBrackets": false + } + }, + "scrollPastEnd": { + "title": "Scroll past last cell", + "description": "Whether to be able to scroll so the last cell is at the top of the panel", + "type": "boolean", + "default": true + }, + "recordTiming": { + "title": "Recording timing", + "description": "Should timing data be recorded in cell metadata", + "type": "boolean", + "default": false + }, + "overscanCount": { + "title": "Number of cells to render outside the viewport", + "description": "In 'full' windowing mode, this is the number of cells above and below the viewport.", + "type": "number", + "default": 1, + "minimum": 1 + }, + "maxNumberOutputs": { + "title": "The maximum number of output cells to be rendered in the output area.", + "description": "Defines the maximum number of output cells to be rendered in the output area for cells with many outputs. The output area will have a head and the remaining outputs will be trimmed and not displayed unless the user clicks on the information message. Set to 0 to have the complete display.", + "type": "number", + "default": 50 + }, + "scrollHeadingToTop": { + "title": "Scroll heading to top", + "description": "Whether to scroll heading to the document top when selecting it in the table of contents.", + "type": "boolean", + "default": true + }, + "showEditorForReadOnlyMarkdown": { + "title": "Show editor for read-only Markdown cells", + "description": "Should an editor be shown for read-only markdown", + "type": "boolean", + "default": true + }, + "kernelStatus": { + "title": "Kernel status icon configuration", + "description": "Defines the position and components of execution progress indicator.", + "$ref": "#/definitions/kernelStatusConfig", + "default": { + "showOnStatusBar": false, + "showProgress": true, + "showJumpToRecentExecutionButton": false + } + }, + "documentWideUndoRedo": { + "title": "Enable undo/redo actions at the notebook document level.", + "description": "Enables the undo/redo actions at the notebook document level; aka undoing within a cell may undo the latest notebook change that happen in another cell. This is deprecated and will be removed in 5.0.0.", + "type": "boolean", + "default": false + }, + "showHiddenCellsButton": { + "type": "boolean", + "title": "Show hidden cells button if collapsed", + "description": "If set to true, a button is shown below collapsed headings, indicating how many cells are hidden beneath the collapsed heading.", + "default": true + }, + "renderingLayout": { + "title": "Rendering Layout", + "description": "Global setting to define the rendering layout in notebooks. 'default' or 'side-by-side' are supported.", + "enum": ["default", "side-by-side"], + "default": "default" + }, + "sideBySideLeftMarginOverride": { + "title": "Side-by-side left margin override", + "description": "Side-by-side left margin override.", + "type": "string", + "default": "10px" + }, + "sideBySideRightMarginOverride": { + "title": "Side-by-side right margin override", + "description": "Side-by-side right margin override.", + "type": "string", + "default": "10px" + }, + "sideBySideOutputRatio": { + "title": "Side-by-side output ratio", + "description": "For the side-by-side rendering, the side-by-side output ratio defines the width of the output vs the input. Set 1 for same size, > 1 for larger output, < 1 for smaller output.", + "type": "number", + "default": 1, + "minimum": 0 + }, + "windowingMode": { + "title": "Windowing mode", + "description": "- 'defer': Improve loading time - Wait for idle CPU cycles to attach out of viewport cells\n- 'full': Best performance with side effects - Attach to the DOM only cells in viewport\n- 'none': Worst performance without side effects - Attach all cells to the viewport\n- 'contentVisibility': Browser-optimized rendering - Use content-visibility to skip offscreen cells", + "enum": ["defer", "full", "none", "contentVisibility"], + "default": "contentVisibility" + }, + "accessKernelHistory": { + "title": "Kernel history access", + "description": "Enable kernel history access from notebook cells. Enabling this allows you to scroll through kernel history from a given notebook cell.", + "type": "boolean", + "default": false + }, + "addExtraLineOnCellMerge": { + "title": "Add extra line when merging cells", + "description": "Whether to add an extra blank line between cells when merging them. When enabled, cells are joined with double newlines. When disabled, cells are joined with single newlines.", + "type": "boolean", + "default": true + }, + "showMinimap": { + "title": "Show minimap", + "description": "Whether to show the notebook minimap (virtual scrollbar) by default for all notebooks.", + "type": "boolean", + "default": false + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/running-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/running-extension/package.json.orig new file mode 100644 index 0000000..d931a17 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/running-extension/package.json.orig @@ -0,0 +1,69 @@ +{ + "name": "@jupyterlab/running-extension", + "version": "4.5.1", + "description": "JupyterLab - Running Sessions 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.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/coreutils": "^6.5.1", + "@jupyterlab/docmanager": "^4.5.1", + "@jupyterlab/docregistry": "^4.5.1", + "@jupyterlab/rendermime-interfaces": "^3.13.1", + "@jupyterlab/running": "^4.5.1", + "@jupyterlab/services": "^7.5.1", + "@jupyterlab/statedb": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@jupyterlab/ui-components": "^4.5.1", + "@lumino/commands": "^2.3.3", + "@lumino/polling": "^2.1.5", + "@lumino/signaling": "^2.1.5", + "@lumino/widgets": "^2.7.2", + "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/share/jupyter/lab/schemas/@jupyterlab/running-extension/plugin.json b/share/jupyter/lab/schemas/@jupyterlab/running-extension/plugin.json new file mode 100644 index 0000000..03901a3 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/running-extension/plugin.json @@ -0,0 +1,69 @@ +{ + "title": "Sessions", + "description": "Sessions Settings", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-view", + "items": [ + { + "command": "running:show-panel", + "rank": 3 + } + ] + } + ], + "context": [ + { + "command": "running:kernel-new-console", + "selector": ".jp-RunningSessions-item.jp-mod-kernel", + "rank": 0 + }, + { + "command": "running:kernel-new-notebook", + "selector": ".jp-RunningSessions-item.jp-mod-kernel", + "rank": 1 + }, + { + "type": "separator", + "selector": ".jp-RunningSessions-item.jp-mod-kernel", + "rank": 2 + }, + { + "type": "submenu", + "selector": ".jp-RunningSessions-item.jp-mod-kernel", + "rank": 3, + "submenu": { + "id": "jp-contextmenu-connected-sessions", + "label": "Connected Sessions…", + "items": [] + } + }, + { + "type": "separator", + "selector": ".jp-RunningSessions-item.jp-mod-kernel", + "rank": 4 + }, + { + "command": "running:kernel-shut-down", + "selector": ".jp-RunningSessions-item.jp-mod-kernel", + "rank": 5 + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "running:show-panel", + "keys": ["Accel Shift B"], + "selector": "body" + }, + { + "command": "running:show-modal", + "keys": ["Accel Alt A"], + "selector": "body" + } + ], + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/settingeditor-extension/form-ui.json b/share/jupyter/lab/schemas/@jupyterlab/settingeditor-extension/form-ui.json new file mode 100644 index 0000000..a7c588a --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/settingeditor-extension/form-ui.json @@ -0,0 +1,25 @@ +{ + "title": "Settings Editor Form UI", + "description": "Settings editor form ui settings.", + "properties": { + "settingEditorType": { + "title": "Type of editor for the setting.", + "description": "Set the type of editor to use while editing your settings.", + "enum": ["json", "ui"], + "default": "ui" + }, + "toSkip": { + "title": "Additional plugins to skip in settings editor", + "description": "List of additional plugin IDs that should not be displayed in the settings editor. These plugins can still be configured programmatically or via overrides.json. Note: Some core plugins like context-menu and main-menu are always hidden and cannot be made visible.", + "type": "array", + "items": { + "type": "string", + "title": "Plugin ID", + "description": "Plugin ID to skip" + }, + "default": [] + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/settingeditor-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/settingeditor-extension/package.json.orig new file mode 100644 index 0000000..856afa1 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/settingeditor-extension/package.json.orig @@ -0,0 +1,67 @@ +{ + "name": "@jupyterlab/settingeditor-extension", + "version": "4.5.1", + "description": "JupyterLab - Setting Editor 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": { + "@codemirror/commands": "^6.8.1", + "@codemirror/view": "^6.38.1", + "@jupyterlab/application": "^4.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/codeeditor": "^4.5.1", + "@jupyterlab/pluginmanager": "^4.5.1", + "@jupyterlab/rendermime": "^4.5.1", + "@jupyterlab/settingeditor": "^4.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/statedb": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@jupyterlab/ui-components": "^4.5.1", + "@lumino/disposable": "^2.1.5", + "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/share/jupyter/lab/schemas/@jupyterlab/settingeditor-extension/plugin.json b/share/jupyter/lab/schemas/@jupyterlab/settingeditor-extension/plugin.json new file mode 100644 index 0000000..1bc50cb --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/settingeditor-extension/plugin.json @@ -0,0 +1,21 @@ +{ + "title": "Setting Editor", + "description": "Setting editor settings.", + "jupyter.lab.shortcuts": [ + { + "command": "settingeditor:open", + "args": {}, + "keys": ["Accel ,"], + "selector": "body" + }, + { + "command": "settingeditor:save", + "args": {}, + "keys": ["Accel S"], + "selector": ".jp-SettingEditor" + } + ], + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/shortcuts-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/shortcuts-extension/package.json.orig new file mode 100644 index 0000000..b62ae7f --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/shortcuts-extension/package.json.orig @@ -0,0 +1,71 @@ +{ + "name": "@jupyterlab/shortcuts-extension", + "version": "5.3.1", + "description": "JupyterLab - Shortcuts 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,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}", + "style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}", + "style/index.js", + "schema/*.json", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "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 -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@jupyterlab/ui-components": "^4.5.1", + "@lumino/algorithm": "^2.0.4", + "@lumino/commands": "^2.3.3", + "@lumino/coreutils": "^2.2.2", + "@lumino/disposable": "^2.1.5", + "@lumino/domutils": "^2.0.4", + "@lumino/keyboard": "^2.0.4", + "@lumino/signaling": "^2.1.5", + "react": "^18.2.0" + }, + "devDependencies": { + "@jupyterlab/testing": "^4.5.1", + "@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/share/jupyter/lab/schemas/@jupyterlab/shortcuts-extension/shortcuts.json b/share/jupyter/lab/schemas/@jupyterlab/shortcuts-extension/shortcuts.json new file mode 100644 index 0000000..fad7cf3 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/shortcuts-extension/shortcuts.json @@ -0,0 +1,74 @@ +{ + "jupyter.lab.setting-icon": "ui-components:keyboard", + "jupyter.lab.setting-icon-label": "Keyboard Shortcuts", + "jupyter.lab.transform": true, + "title": "Keyboard Shortcuts", + "description": "Keyboard shortcut settings.", + "jupyter.lab.menus": { + "context": [ + { + "command": "shortcuts:edit-keybinding", + "selector": ".jp-Shortcuts-ShortcutKeysContainer", + "rank": 0 + }, + { + "command": "shortcuts:delete-keybinding", + "selector": ".jp-Shortcuts-ShortcutKeysContainer", + "rank": 1 + }, + { + "command": "shortcuts:add-keybinding", + "selector": ".jp-Shortcuts-Row", + "rank": 2 + }, + { + "command": "shortcuts:toggle-selectors", + "selector": ".jp-Shortcuts-Top", + "rank": 3 + }, + { + "command": "shortcuts:reset-all", + "selector": ".jp-Shortcuts-Top", + "rank": 4 + } + ] + }, + "type": "object", + "additionalProperties": false, + "properties": { + "shortcuts": { + "description": "The list of keyboard shortcuts.", + "items": { "$ref": "#/definitions/shortcut" }, + "type": "array", + "default": [] + } + }, + "definitions": { + "shortcut": { + "properties": { + "args": { "type": "object" }, + "command": { "type": "string" }, + "keys": { + "items": { "type": "string" }, + "type": "array" + }, + "winKeys": { + "items": { "type": "string" }, + "type": "array" + }, + "macKeys": { + "items": { "type": "string" }, + "type": "array" + }, + "linuxKeys": { + "items": { "type": "string" }, + "type": "array" + }, + "selector": { "type": "string" }, + "preventDefault": { "type": "boolean" } + }, + "required": ["command", "keys", "selector"], + "type": "object" + } + } +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/statusbar-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/statusbar-extension/package.json.orig new file mode 100644 index 0000000..814e329 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/statusbar-extension/package.json.orig @@ -0,0 +1,59 @@ +{ + "name": "@jupyterlab/statusbar-extension", + "version": "4.5.1", + "description": "JupyterLab - Statusbar 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, Richa Gadgil, Takahiro Shimokobe, Declan Kelly", + "sideEffects": [ + "style/**/*" + ], + "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", + "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", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/statusbar": "^4.5.1", + "@jupyterlab/translation": "^4.5.1" + }, + "devDependencies": { + "@types/react": "^18.0.26", + "@types/react-dom": "^18.0.9", + "rimraf": "~5.0.5", + "typescript": "~5.5.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/statusbar-extension/plugin.json b/share/jupyter/lab/schemas/@jupyterlab/statusbar-extension/plugin.json new file mode 100644 index 0000000..3fb9234 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/statusbar-extension/plugin.json @@ -0,0 +1,37 @@ +{ + "jupyter.lab.setting-icon": "ui-components:settings", + "jupyter.lab.setting-icon-label": "Status Bar", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-view", + "items": [ + { + "type": "submenu", + "submenu": { + "id": "jp-mainmenu-view-appearance", + "items": [ + { + "command": "statusbar:toggle", + "rank": 15 + } + ] + } + } + ] + } + ] + }, + "title": "Status Bar", + "description": "Status Bar settings.", + "properties": { + "visible": { + "type": "boolean", + "title": "Status Bar Visibility", + "description": "Whether to show status bar or not", + "default": true + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/terminal-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/terminal-extension/package.json.orig new file mode 100644 index 0000000..993ce64 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/terminal-extension/package.json.orig @@ -0,0 +1,68 @@ +{ + "name": "@jupyterlab/terminal-extension", + "version": "4.5.1", + "description": "JupyterLab - Terminal Emulator 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.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/documentsearch": "^4.5.1", + "@jupyterlab/launcher": "^4.5.1", + "@jupyterlab/mainmenu": "^4.5.1", + "@jupyterlab/running": "^4.5.1", + "@jupyterlab/services": "^7.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/terminal": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@jupyterlab/ui-components": "^4.5.1", + "@lumino/widgets": "^2.7.2", + "@xterm/addon-search": "~0.15.0", + "color": "^5.0.0" + }, + "devDependencies": { + "@types/webpack-env": "^1.18.0", + "rimraf": "~5.0.5", + "typescript": "~5.5.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/terminal-extension/plugin.json b/share/jupyter/lab/schemas/@jupyterlab/terminal-extension/plugin.json new file mode 100644 index 0000000..2d5632a --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/terminal-extension/plugin.json @@ -0,0 +1,141 @@ +{ + "jupyter.lab.setting-icon": "ui-components:terminal", + "jupyter.lab.setting-icon-label": "Terminal", + "jupyter.lab.menus": { + "context": [ + { + "command": "terminal:copy", + "selector": ".jp-Terminal", + "rank": 1 + }, + { + "command": "terminal:paste", + "selector": ".jp-Terminal", + "rank": 2 + }, + { + "command": "terminal:refresh", + "selector": ".jp-Terminal", + "rank": 3 + } + ] + }, + "title": "Terminal", + "description": "Terminal settings.", + "definitions": { + "fontFamily": { + "type": "string" + }, + "fontSize": { + "type": "integer", + "minimum": 9, + "maximum": 72 + }, + "lineHeight": { + "type": "number", + "minimum": 1.0 + }, + "theme": { + "enum": ["dark", "light", "inherit"] + }, + "scrollback": { + "type": "number" + }, + "pasteWithCtrlV": { + "type": "boolean" + }, + "macOptionIsMeta": { + "type": "boolean" + } + }, + "properties": { + "fontFamily": { + "title": "Font family", + "description": "The font family used to render text.", + "$ref": "#/definitions/fontFamily", + "default": "monospace" + }, + "fontSize": { + "title": "Font size", + "description": "The font size used to render text.", + "$ref": "#/definitions/fontSize", + "default": 13 + }, + "lineHeight": { + "title": "Line height", + "description": "The line height used to render text.", + "$ref": "#/definitions/lineHeight", + "default": 1.0 + }, + "theme": { + "title": "Theme", + "description": "The theme for the terminal.", + "$ref": "#/definitions/theme", + "default": "inherit" + }, + "screenReaderMode": { + "title": "Screen Reader Mode", + "description": "Add accessibility elements for use with screen readers.", + "type": "boolean", + "default": false + }, + "scrollback": { + "title": "Scrollback Buffer", + "description": "The amount of scrollback beyond initial viewport", + "$ref": "#/definitions/lineHeight", + "default": 1000 + }, + "shutdownOnClose": { + "title": "Shut down on close", + "description": "Shut down the session when closing the terminal.", + "type": "boolean", + "default": false + }, + "closeOnExit": { + "title": "Close on exit", + "description": "Close the widget when exiting the terminal.", + "type": "boolean", + "default": true + }, + "pasteWithCtrlV": { + "title": "Paste with Ctrl+V", + "description": "Enable pasting with Ctrl+V. This can be disabled to use Ctrl+V in the vi editor, for instance. This setting has no effect on macOS, where Cmd+V is available", + "type": "boolean", + "default": true + }, + "macOptionIsMeta": { + "title": "Treat option as meta key on macOS", + "description": "Option key on macOS can be used as meta key. This enables to use shortcuts such as option + f to move cursor forward one word", + "type": "boolean", + "default": false + }, + "cursorBlink": { + "title": "Blinking cursor", + "description": "Whether to blink the cursor. Changes require reopening the terminal.", + "type": "boolean", + "default": true + }, + "showStatusBarItem": { + "type": "string", + "title": "Show the status bar item", + "description": "Whether to show the running terminals item in the status bar", + "default": "if-any", + "oneOf": [ + { + "const": "if-any", + "title": "Show if one or more" + }, + { + "const": "always", + "title": "Always show" + }, + { + "const": "never", + "title": "Don't show" + } + ] + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/toc-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/toc-extension/package.json.orig new file mode 100644 index 0000000..8448389 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/toc-extension/package.json.orig @@ -0,0 +1,61 @@ +{ + "name": "@jupyterlab/toc-extension", + "version": "6.5.1", + "description": "JupyterLab - Table of Contents widget extension", + "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", + "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 -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/toc": "^6.5.1", + "@jupyterlab/translation": "^4.5.1", + "@jupyterlab/ui-components": "^4.5.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/share/jupyter/lab/schemas/@jupyterlab/toc-extension/registry.json b/share/jupyter/lab/schemas/@jupyterlab/toc-extension/registry.json new file mode 100644 index 0000000..aeb56c4 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/toc-extension/registry.json @@ -0,0 +1,72 @@ +{ + "jupyter.lab.setting-icon": "ui-components:toc", + "jupyter.lab.setting-icon-label": "Table of Contents", + "title": "Table of Contents", + "description": "Default table of contents settings.", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-view", + "items": [ + { + "command": "toc:show-panel", + "rank": 4 + } + ] + } + ], + "context": [ + { + "command": "toc:run-cells", + "selector": ".jp-TableOfContents-content[data-document-type=\"notebook\"] .jp-tocItem" + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "toc:show-panel", + "keys": ["Accel Shift K"], + "selector": "body" + } + ], + "properties": { + "maximalDepth": { + "title": "Maximal headings depth", + "type": "integer", + "minimum": 1, + "default": 4 + }, + "numberingH1": { + "title": "Enable 1st headings numbering", + "description": "Whether to number first-level headings or not.", + "type": "boolean", + "default": true + }, + "numberHeaders": { + "title": "Enable headings numbering", + "description": "Whether to automatically number the headings or not.", + "type": "boolean", + "default": false + }, + "includeOutput": { + "title": "Include cell output in headings", + "description": "Whether to include cell output in headings or not.", + "type": "boolean", + "default": true + }, + "syncCollapseState": { + "type": "boolean", + "title": "Synchronize collapse state", + "description": "If set to true, when a heading is collapsed in the table of contents the corresponding section in the document is collapsed as well and vice versa. This inhibits the cell output headings.", + "default": false + }, + "baseNumbering": { + "title": "Base level for the highest headings", + "type": "integer", + "description": "The number headings start at.", + "default": 1 + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/consoles.json b/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/consoles.json new file mode 100644 index 0000000..e75d468 --- /dev/null +++ b/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/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/files.json b/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/files.json new file mode 100644 index 0000000..d0d8449 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/files.json @@ -0,0 +1,14 @@ +{ + "title": "File Editor Tooltips", + "description": "File editor tooltip settings.", + "jupyter.lab.shortcuts": [ + { + "command": "tooltip:launch-file", + "keys": ["Shift Tab"], + "selector": ".jp-FileEditor .jp-CodeMirrorEditor:not(.jp-mod-has-primary-selection):not(.jp-mod-in-leading-whitespace)" + } + ], + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/notebooks.json b/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/notebooks.json new file mode 100644 index 0000000..137a137 --- /dev/null +++ b/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/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/package.json.orig new file mode 100644 index 0000000..51408a3 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/package.json.orig @@ -0,0 +1,66 @@ +{ + "name": "@jupyterlab/tooltip-extension", + "version": "4.5.1", + "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.5.1", + "@jupyterlab/codeeditor": "^4.5.1", + "@jupyterlab/console": "^4.5.1", + "@jupyterlab/coreutils": "^6.5.1", + "@jupyterlab/fileeditor": "^4.5.1", + "@jupyterlab/notebook": "^4.5.1", + "@jupyterlab/rendermime": "^4.5.1", + "@jupyterlab/services": "^7.5.1", + "@jupyterlab/tooltip": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@lumino/algorithm": "^2.0.4", + "@lumino/coreutils": "^2.2.2", + "@lumino/widgets": "^2.7.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/share/jupyter/lab/schemas/@jupyterlab/translation-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/translation-extension/package.json.orig new file mode 100644 index 0000000..270852a --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/translation-extension/package.json.orig @@ -0,0 +1,58 @@ +{ + "name": "@jupyterlab/translation-extension", + "version": "4.5.1", + "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.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/mainmenu": "^4.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/translation": "^4.5.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/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json b/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json new file mode 100644 index 0000000..15d3f58 --- /dev/null +++ b/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/share/jupyter/lab/schemas/@jupyterlab/workspaces-extension/indicator.json b/share/jupyter/lab/schemas/@jupyterlab/workspaces-extension/indicator.json new file mode 100644 index 0000000..91877c3 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/workspaces-extension/indicator.json @@ -0,0 +1,37 @@ +{ + "title": "Workspace Indicator", + "description": "Workspace Indicator Settings", + "jupyter.lab.toolbars": { + "TopBar": [ + { + "name": "workspaceIndicator", + "rank": 1000, + "disabled": true + } + ] + }, + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-view", + "items": [ + { + "type": "submenu", + "submenu": { + "id": "jp-mainmenu-view-appearance", + "items": [ + { + "command": "workspace-indicator:toggle", + "rank": 16 + } + ] + } + } + ] + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/schemas/@jupyterlab/workspaces-extension/menu.json b/share/jupyter/lab/schemas/@jupyterlab/workspaces-extension/menu.json new file mode 100644 index 0000000..1337877 --- /dev/null +++ b/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/share/jupyter/lab/schemas/@jupyterlab/workspaces-extension/package.json.orig b/share/jupyter/lab/schemas/@jupyterlab/workspaces-extension/package.json.orig new file mode 100644 index 0000000..32ba119 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/workspaces-extension/package.json.orig @@ -0,0 +1,64 @@ +{ + "name": "@jupyterlab/workspaces-extension", + "version": "4.5.1", + "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.5.1", + "@jupyterlab/apputils": "^4.6.1", + "@jupyterlab/coreutils": "^6.5.1", + "@jupyterlab/filebrowser": "^4.5.1", + "@jupyterlab/running": "^4.5.1", + "@jupyterlab/services": "^7.5.1", + "@jupyterlab/settingregistry": "^4.5.1", + "@jupyterlab/statedb": "^4.5.1", + "@jupyterlab/translation": "^4.5.1", + "@jupyterlab/ui-components": "^4.5.1", + "@jupyterlab/workspaces": "^4.5.1", + "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/share/jupyter/lab/schemas/@jupyterlab/workspaces-extension/sidebar.json b/share/jupyter/lab/schemas/@jupyterlab/workspaces-extension/sidebar.json new file mode 100644 index 0000000..6fc7152 --- /dev/null +++ b/share/jupyter/lab/schemas/@jupyterlab/workspaces-extension/sidebar.json @@ -0,0 +1,51 @@ +{ + "title": "Workspaces Sidebar", + "description": "Workspaces Sidebar", + "jupyter.lab.menus": { + "context": [ + { + "command": "workspace-ui:clone", + "selector": ".jp-RunningSessions-item.jp-mod-workspace", + "rank": 0 + }, + { + "command": "workspace-ui:rename", + "selector": ".jp-RunningSessions-item.jp-mod-workspace", + "rank": 1 + }, + { + "command": "workspace-ui:reset", + "selector": ".jp-RunningSessions-item.jp-mod-workspace", + "rank": 2 + }, + { + "command": "workspace-ui:delete", + "selector": ".jp-RunningSessions-item.jp-mod-workspace", + "rank": 3 + }, + { + "command": "workspace-ui:export", + "selector": ".jp-RunningSessions-item.jp-mod-workspace", + "rank": 4 + }, + { + "type": "separator", + "selector": ".jp-RunningSessions-item.jp-mod-workspace", + "rank": 5 + }, + { + "command": "workspace-ui:import", + "selector": ".jp-RunningSessions-section:has(.jp-mod-workspace)", + "rank": 6 + }, + { + "command": "workspace-ui:create-new", + "selector": ".jp-RunningSessions-section:has(.jp-mod-workspace)", + "rank": 7 + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/share/jupyter/lab/static/100.1d14ca44a3cc8849349f.js b/share/jupyter/lab/static/100.1d14ca44a3cc8849349f.js new file mode 100644 index 0000000..7327c9a --- /dev/null +++ b/share/jupyter/lab/static/100.1d14ca44a3cc8849349f.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[100,5338,2957],{5338:(a,e,t)=>{var p;var r=t(86672);if(true){e.H=r.createRoot;p=r.hydrateRoot}else{var o}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/1039.3fe94e87219c0ed159d3.js b/share/jupyter/lab/static/1039.3fe94e87219c0ed159d3.js new file mode 100644 index 0000000..043513c --- /dev/null +++ b/share/jupyter/lab/static/1039.3fe94e87219c0ed159d3.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1039],{71471:(t,e)=>{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 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.")};Object.defineProperty(e,"__esModule",{value:true});e.HandlerList=void 0;var i=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=o(this),i=n.next();!i.done;i=n.next()){var a=i.value;var u=a.item;if(u.handlesDocument(t)){return u}}}catch(s){e={error:s}}finally{try{if(i&&!i.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}(i.PrioritizedList);e.HandlerList=a},81039:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:true});e.mathjax=void 0;var n=r(71471);var o=r(29796);var i=r(9841);e.mathjax={version:n.VERSION,handlers:new o.HandlerList,document:function(t,r){return e.mathjax.handlers.document(t,r)},handleRetriesFor:i.handleRetriesFor,retryAfter:i.retryAfter,asyncLoad:null}},82776:(t,e)=>{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(o){if(o.retry&&o.retry instanceof Promise){o.retry.then((function(){return e(r,n)})).catch((function(t){return n(t)}))}else if(o.restart&&o.restart.isCallback){MathJax.Callback.After((function(){return e(r,n)}),o.restart)}else{n(o)}}}))}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/share/jupyter/lab/static/1042.37576ba0f95d869bc96f.js b/share/jupyter/lab/static/1042.37576ba0f95d869bc96f.js new file mode 100644 index 0000000..ed0ab93 --- /dev/null +++ b/share/jupyter/lab/static/1042.37576ba0f95d869bc96f.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1042],{46884:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(70416);var s=n(1218);var r=(0,i.K2)(((e,t)=>{let n;if(t==="sandbox"){n=(0,s.Ltv)("#i"+e)}const i=t==="sandbox"?(0,s.Ltv)(n.nodes()[0].contentDocument.body):(0,s.Ltv)("body");const r=i.select(`[id="${e}"]`);return r}),"getDiagramElement")},47925:(e,t,n)=>{n.d(t,{P:()=>r});var i=n(42418);var s=n(70416);var r=(0,s.K2)(((e,t,n,r)=>{e.attr("class",n);const{width:c,height:l,x:h,y:d}=o(e,t);(0,i.a$)(e,l,c,r);const u=a(h,d,c,l,t);e.attr("viewBox",u);s.Rm.debug(`viewBox configured: ${u} with padding: ${t}`)}),"setupViewPortForSVG");var o=(0,s.K2)(((e,t)=>{const n=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:n.width+t*2,height:n.height+t*2,x:n.x,y:n.y}}),"calculateDimensionsWithPadding");var a=(0,s.K2)(((e,t,n,i,s)=>`${e-s} ${t-s} ${n} ${i}`),"createViewBox")},41042:(e,t,n)=>{n.d(t,{diagram:()=>P});var i=n(46884);var s=n(47925);var r=n(78188);var o=n(25301);var a=n(46103);var c=n(47655);var l=n(15164);var h=n(55750);var d=n(95035);var u=n(29131);var g=n(42418);var p=n(70416);const y=typeof crypto!=="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const f={randomUUID:y};let m;const b=new Uint8Array(16);function E(){if(!m){if(typeof crypto==="undefined"||!crypto.getRandomValues){throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}m=crypto.getRandomValues.bind(crypto)}return m(b)}const _=[];for(let B=0;B<256;++B){_.push((B+256).toString(16).slice(1))}function k(e,t=0){return(_[e[t+0]]+_[e[t+1]]+_[e[t+2]]+_[e[t+3]]+"-"+_[e[t+4]]+_[e[t+5]]+"-"+_[e[t+6]]+_[e[t+7]]+"-"+_[e[t+8]]+_[e[t+9]]+"-"+_[e[t+10]]+_[e[t+11]]+_[e[t+12]]+_[e[t+13]]+_[e[t+14]]+_[e[t+15]]).toLowerCase()}function v(e,t=0){const n=k(e,t);if(!validate(n)){throw TypeError("Stringified UUID is invalid")}return n}const D=null&&v;function S(e,t,n){if(f.randomUUID&&!t&&!e){return f.randomUUID()}e=e||{};const i=e.random??e.rng?.()??E();if(i.length<16){throw new Error("Random bytes length must be >= 16")}i[6]=i[6]&15|64;i[8]=i[8]&63|128;if(t){n=n||0;if(n<0||n+16>t.length){throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`)}for(let e=0;e<16;++e){t[n+e]=i[e]}return t}return k(i)}const N=S;var L=n(63170);var x=n(77470);var I=n(48750);var O=function(){var e=(0,p.K2)((function(e,t,n,i){for(n=n||{},i=e.length;i--;n[e[i]]=t);return n}),"o"),t=[1,4],n=[1,13],i=[1,12],s=[1,15],r=[1,16],o=[1,20],a=[1,19],c=[6,7,8],l=[1,26],h=[1,24],d=[1,25],u=[6,7,11],g=[1,6,13,15,16,19,22],y=[1,33],f=[1,34],m=[1,6,7,11,13,15,16,19,22];var b={trace:(0,p.K2)((function e(){}),"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:(0,p.K2)((function e(t,n,i,s,r,o,a){var c=o.length-1;switch(r){case 6:case 7:return s;break;case 8:s.getLogger().trace("Stop NL ");break;case 9:s.getLogger().trace("Stop EOF ");break;case 11:s.getLogger().trace("Stop NL2 ");break;case 12:s.getLogger().trace("Stop EOF2 ");break;case 15:s.getLogger().info("Node: ",o[c].id);s.addNode(o[c-1].length,o[c].id,o[c].descr,o[c].type);break;case 16:s.getLogger().trace("Icon: ",o[c]);s.decorateNode({icon:o[c]});break;case 17:case 21:s.decorateNode({class:o[c]});break;case 18:s.getLogger().trace("SPACELIST");break;case 19:s.getLogger().trace("Node: ",o[c].id);s.addNode(0,o[c].id,o[c].descr,o[c].type);break;case 20:s.decorateNode({icon:o[c]});break;case 25:s.getLogger().trace("node found ..",o[c-2]);this.$={id:o[c-1],descr:o[c-1],type:s.getType(o[c-2],o[c])};break;case 26:this.$={id:o[c],descr:o[c],type:s.nodeType.DEFAULT};break;case 27:s.getLogger().trace("node found ..",o[c-3]);this.$={id:o[c-3],descr:o[c-1],type:s.getType(o[c-2],o[c])};break}}),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:i,14:14,15:s,16:r,17:17,18:18,19:o,22:a},e(c,[2,3]),{1:[2,2]},e(c,[2,4]),e(c,[2,5]),{1:[2,6],6:n,12:21,13:i,14:14,15:s,16:r,17:17,18:18,19:o,22:a},{6:n,9:22,12:11,13:i,14:14,15:s,16:r,17:17,18:18,19:o,22:a},{6:l,7:h,10:23,11:d},e(u,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:o,22:a}),e(u,[2,18]),e(u,[2,19]),e(u,[2,20]),e(u,[2,21]),e(u,[2,23]),e(u,[2,24]),e(u,[2,26],{19:[1,30]}),{20:[1,31]},{6:l,7:h,10:32,11:d},{1:[2,7],6:n,12:21,13:i,14:14,15:s,16:r,17:17,18:18,19:o,22:a},e(g,[2,14],{7:y,11:f}),e(m,[2,8]),e(m,[2,9]),e(m,[2,10]),e(u,[2,15]),e(u,[2,16]),e(u,[2,17]),{20:[1,35]},{21:[1,36]},e(g,[2,13],{7:y,11:f}),e(m,[2,11]),e(m,[2,12]),{21:[1,37]},e(u,[2,25]),e(u,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:(0,p.K2)((function e(t,n){if(n.recoverable){this.trace(t)}else{var i=new Error(t);i.hash=n;throw i}}),"parseError"),parse:(0,p.K2)((function e(t){var n=this,i=[0],s=[],r=[null],o=[],a=this.table,c="",l=0,h=0,d=0,u=2,g=1;var y=o.slice.call(arguments,1);var f=Object.create(this.lexer);var m={yy:{}};for(var b in this.yy){if(Object.prototype.hasOwnProperty.call(this.yy,b)){m.yy[b]=this.yy[b]}}f.setInput(t,m.yy);m.yy.lexer=f;m.yy.parser=this;if(typeof f.yylloc=="undefined"){f.yylloc={}}var E=f.yylloc;o.push(E);var _=f.options&&f.options.ranges;if(typeof m.yy.parseError==="function"){this.parseError=m.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function k(e){i.length=i.length-2*e;r.length=r.length-e;o.length=o.length-e}(0,p.K2)(k,"popStack");function v(){var e;e=s.pop()||f.lex()||g;if(typeof e!=="number"){if(e instanceof Array){s=e;e=s.pop()}e=n.symbols_[e]||e}return e}(0,p.K2)(v,"lex");var D,S,N,L,x,I,O={},T,w,C,R;while(true){N=i[i.length-1];if(this.defaultActions[N]){L=this.defaultActions[N]}else{if(D===null||typeof D=="undefined"){D=v()}L=a[N]&&a[N][D]}if(typeof L==="undefined"||!L.length||!L[0]){var $="";R=[];for(T in a[N]){if(this.terminals_[T]&&T>u){R.push("'"+this.terminals_[T]+"'")}}if(f.showPosition){$="Parse error on line "+(l+1)+":\n"+f.showPosition()+"\nExpecting "+R.join(", ")+", got '"+(this.terminals_[D]||D)+"'"}else{$="Parse error on line "+(l+1)+": Unexpected "+(D==g?"end of input":"'"+(this.terminals_[D]||D)+"'")}this.parseError($,{text:f.match,token:this.terminals_[D]||D,line:f.yylineno,loc:E,expected:R})}if(L[0]instanceof Array&&L.length>1){throw new Error("Parse Error: multiple actions possible at state: "+N+", token: "+D)}switch(L[0]){case 1:i.push(D);r.push(f.yytext);o.push(f.yylloc);i.push(L[1]);D=null;if(!S){h=f.yyleng;c=f.yytext;l=f.yylineno;E=f.yylloc;if(d>0){d--}}else{D=S;S=null}break;case 2:w=this.productions_[L[1]][1];O.$=r[r.length-w];O._$={first_line:o[o.length-(w||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(w||1)].first_column,last_column:o[o.length-1].last_column};if(_){O._$.range=[o[o.length-(w||1)].range[0],o[o.length-1].range[1]]}I=this.performAction.apply(O,[c,h,l,m.yy,L[1],r,o].concat(y));if(typeof I!=="undefined"){return I}if(w){i=i.slice(0,-1*w*2);r=r.slice(0,-1*w);o=o.slice(0,-1*w)}i.push(this.productions_[L[1]][0]);r.push(O.$);o.push(O._$);C=a[i[i.length-2]][i[i.length-1]];i.push(C);break;case 3:return true}}return true}),"parse")};var E=function(){var e={EOF:1,parseError:(0,p.K2)((function e(t,n){if(this.yy.parser){this.yy.parser.parseError(t,n)}else{throw new Error(t)}}),"parseError"),setInput:(0,p.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,p.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,p.K2)((function(e){var t=e.length;var n=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(n.length-1){this.yylineno-=n.length-1}var s=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-t};if(this.options.ranges){this.yylloc.range=[s[0],s[0]+this.yyleng-t]}this.yyleng=this.yytext.length;return this}),"unput"),more:(0,p.K2)((function(){this._more=true;return this}),"more"),reject:(0,p.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,p.K2)((function(e){this.unput(this.match.slice(e))}),"less"),pastInput:(0,p.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,p.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,p.K2)((function(){var e=this.pastInput();var t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"}),"showPosition"),test_match:(0,p.K2)((function(e,t){var n,i,s;if(this.options.backtrack_lexer){s={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){s.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];n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input){this.done=false}if(n){return n}else if(this._backtrack){for(var r in s){this[r]=s[r]}return false}return false}),"test_match"),next:(0,p.K2)((function(){if(this.done){return this.EOF}if(!this._input){this.done=true}var e,t,n,i;if(!this._more){this.yytext="";this.match=""}var s=this._currentRules();for(var r=0;rt[0].length)){t=n;i=r;if(this.options.backtrack_lexer){e=this.test_match(n,s[r]);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,s[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,p.K2)((function e(){var t=this.next();if(t){return t}else{return this.lex()}}),"lex"),begin:(0,p.K2)((function e(t){this.conditionStack.push(t)}),"begin"),popState:(0,p.K2)((function e(){var t=this.conditionStack.length-1;if(t>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}}),"popState"),_currentRules:(0,p.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,p.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,p.K2)((function e(t){this.begin(t)}),"pushState"),stateStackSize:(0,p.K2)((function e(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":true},performAction:(0,p.K2)((function e(t,n,i,s){var r=s;switch(i){case 0:t.getLogger().trace("Found comment",n.yytext);return 6;break;case 1:return 8;break;case 2:this.begin("CLASS");break;case 3:this.popState();return 16;break;case 4:this.popState();break;case 5:t.getLogger().trace("Begin icon");this.begin("ICON");break;case 6:t.getLogger().trace("SPACELINE");return 6;break;case 7:return 7;break;case 8:return 15;break;case 9:t.getLogger().trace("end icon");this.popState();break;case 10:t.getLogger().trace("Exploding node");this.begin("NODE");return 19;break;case 11:t.getLogger().trace("Cloud");this.begin("NODE");return 19;break;case 12:t.getLogger().trace("Explosion Bang");this.begin("NODE");return 19;break;case 13:t.getLogger().trace("Cloud Bang");this.begin("NODE");return 19;break;case 14:this.begin("NODE");return 19;break;case 15:this.begin("NODE");return 19;break;case 16:this.begin("NODE");return 19;break;case 17:this.begin("NODE");return 19;break;case 18:return 13;break;case 19:return 22;break;case 20:return 11;break;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";break;case 23:this.popState();break;case 24:t.getLogger().trace("Starting NSTR");this.begin("NSTR");break;case 25:t.getLogger().trace("description:",n.yytext);return"NODE_DESCR";break;case 26:this.popState();break;case 27:this.popState();t.getLogger().trace("node end ))");return"NODE_DEND";break;case 28:this.popState();t.getLogger().trace("node end )");return"NODE_DEND";break;case 29:this.popState();t.getLogger().trace("node end ...",n.yytext);return"NODE_DEND";break;case 30:this.popState();t.getLogger().trace("node end ((");return"NODE_DEND";break;case 31:this.popState();t.getLogger().trace("node end (-");return"NODE_DEND";break;case 32:this.popState();t.getLogger().trace("node end (-");return"NODE_DEND";break;case 33:this.popState();t.getLogger().trace("node end ((");return"NODE_DEND";break;case 34:this.popState();t.getLogger().trace("node end ((");return"NODE_DEND";break;case 35:t.getLogger().trace("Long description:",n.yytext);return 20;break;case 36:t.getLogger().trace("Long description:",n.yytext);return 20;break}}),"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:false},ICON:{rules:[8,9],inclusive:false},NSTR2:{rules:[22,23],inclusive:false},NSTR:{rules:[25,26],inclusive:false},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:false},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:true}}};return e}();b.lexer=E;function _(){this.yy={}}(0,p.K2)(_,"Parser");_.prototype=b;b.Parser=_;return new _}();O.parser=O;var T=O;var w={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6};var C=class{constructor(){this.nodes=[];this.count=0;this.elements={};this.getLogger=this.getLogger.bind(this);this.nodeType=w;this.clear();this.getType=this.getType.bind(this);this.getElementById=this.getElementById.bind(this);this.getParent=this.getParent.bind(this);this.getMindmap=this.getMindmap.bind(this);this.addNode=this.addNode.bind(this);this.decorateNode=this.decorateNode.bind(this)}static{(0,p.K2)(this,"MindmapDB")}clear(){this.nodes=[];this.count=0;this.elements={};this.baseLevel=void 0}getParent(e){for(let t=this.nodes.length-1;t>=0;t--){if(this.nodes[t].level0?this.nodes[0]:null}addNode(e,t,n,i){p.Rm.info("addNode",e,t,n,i);let s=false;if(this.nodes.length===0){this.baseLevel=e;e=0;s=true}else if(this.baseLevel!==void 0){e=e-this.baseLevel;s=false}const r=(0,g.D7)();let o=r.mindmap?.padding??g.UI.mindmap.padding;switch(i){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:o*=2;break}const a={id:this.count++,nodeId:(0,g.jZ)(t,r),level:e,descr:(0,g.jZ)(n,r),type:i,children:[],width:r.mindmap?.maxNodeWidth??g.UI.mindmap.maxNodeWidth,padding:o,isRoot:s};const c=this.getParent(e);if(c){c.children.push(a);this.nodes.push(a)}else{if(s){this.nodes.push(a)}else{throw new Error(`There can be only one root. No parent could be found for ("${a.descr}")`)}}}getType(e,t){p.Rm.debug("In get type",e,t);switch(e){case"[":return this.nodeType.RECT;case"(":return t===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,t){this.elements[e]=t}getElementById(e){return this.elements[e]}decorateNode(e){if(!e){return}const t=(0,g.D7)();const n=this.nodes[this.nodes.length-1];if(e.icon){n.icon=(0,g.jZ)(e.icon,t)}if(e.class){n.class=(0,g.jZ)(e.class,t)}}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,t){if(e.level===0){e.section=void 0}else{e.section=t}if(e.children){for(const[n,i]of e.children.entries()){const s=e.level===0?n:t;this.assignSections(i,s)}}}flattenNodes(e,t){const n=["mindmap-node"];if(e.isRoot===true){n.push("section-root","section--1")}else if(e.section!==void 0){n.push(`section-${e.section}`)}if(e.class){n.push(e.class)}const i=n.join(" ");const s=(0,p.K2)((e=>{switch(e){case w.CIRCLE:return"mindmapCircle";case w.RECT:return"rect";case w.ROUNDED_RECT:return"rounded";case w.CLOUD:return"cloud";case w.BANG:return"bang";case w.HEXAGON:return"hexagon";case w.DEFAULT:return"defaultMindmapNode";case w.NO_BORDER:default:return"rect"}}),"getShapeFromType");const r={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,isGroup:false,shape:s(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:i,cssStyles:[],look:"default",icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};t.push(r);if(e.children){for(const n of e.children){this.flattenNodes(n,t)}}}generateEdges(e,t){if(!e.children){return}for(const n of e.children){let i="edge";if(n.section!==void 0){i+=` section-edge-${n.section}`}const s=e.level+1;i+=` edge-depth-${s}`;const r={id:`edge_${e.id}_${n.id}`,start:e.id.toString(),end:n.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:"default",classes:i,depth:e.level,section:n.section};t.push(r);this.generateEdges(n,t)}}getData(){const e=this.getMindmap();const t=(0,g.D7)();const n=(0,g.TM)();const i=n.layout!==void 0;const s=t;if(!i){s.layout="cose-bilkent"}if(!e){return{nodes:[],edges:[],config:s}}p.Rm.debug("getData: mindmapRoot",e,t);this.assignSections(e);const r=[];const o=[];this.flattenNodes(e,r);this.generateEdges(e,o);p.Rm.debug(`getData: processed ${r.length} nodes and ${o.length} edges`);const a=new Map;for(const c of r){a.set(c.id,{shape:c.shape,width:c.width,height:c.height,padding:c.padding})}return{nodes:r,edges:o,config:s,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(a),type:"mindmap",diagramId:"mindmap-"+N()}}getLogger(){return p.Rm}};var R=(0,p.K2)((async(e,t,n,o)=>{p.Rm.debug("Rendering mindmap diagram\n"+e);const a=o.db;const c=a.getData();const l=(0,i.A)(t,c.config.securityLevel);c.type=o.type;c.layoutAlgorithm=(0,r.q7)(c.config.layout,{fallback:"cose-bilkent"});c.diagramId=t;const h=a.getMindmap();if(!h){return}c.nodes.forEach((e=>{if(e.shape==="rounded"){e.radius=15;e.taper=15;e.stroke="none";e.width=0;e.padding=15}else if(e.shape==="circle"){e.padding=10}else if(e.shape==="rect"){e.width=0;e.padding=10}}));await(0,r.XX)(c,l);(0,s.P)(l,c.config.mindmap?.padding??g.UI.mindmap.padding,"mindmapDiagram",c.config.mindmap?.useMaxWidth??g.UI.mindmap.useMaxWidth)}),"draw");var $={draw:R};var A=(0,p.K2)((e=>{let t="";for(let n=0;n`\n .edge {\n stroke-width: 3;\n }\n ${A(e)}\n .section-root rect, .section-root path, .section-root circle, .section-root polygon {\n fill: ${e.git0};\n }\n .section-root text {\n fill: ${e.gitBranchLabel0};\n }\n .section-root span {\n color: ${e.gitBranchLabel0};\n }\n .section-2 span {\n color: ${e.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .mindmap-node-label {\n dy: 1em;\n alignment-baseline: middle;\n text-anchor: middle;\n dominant-baseline: middle;\n text-align: center;\n }\n`),"getStyles");var U=K;var P={get db(){return new C},renderer:$,parser:T,styles:U}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/1096.dd4c563e0483cbbeb9c9.js b/share/jupyter/lab/static/1096.dd4c563e0483cbbeb9c9.js new file mode 100644 index 0000000..d3d3b3e --- /dev/null +++ b/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/share/jupyter/lab/static/1109.74211c725919c045e958.js b/share/jupyter/lab/static/1109.74211c725919c045e958.js new file mode 100644 index 0000000..54e20f0 --- /dev/null +++ b/share/jupyter/lab/static/1109.74211c725919c045e958.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1109],{11109:(r,a,e)=>{e.d(a,{diagram:()=>d});var s=e(67863);var t=e(10628);var v=e(46884);var l=e(47925);var p=e(78188);var i=e(25301);var n=e(46103);var u=e(47655);var c=e(15164);var o=e(55750);var b=e(95035);var _=e(29131);var k=e(42418);var w=e(70416);var d={parser:s._$,get db(){return new s.NM},renderer:s.Lh,styles:s.tM,init:(0,w.K2)((r=>{if(!r.class){r.class={}}r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute}),"init")}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/1189.c1482e88f0e949753db6.js b/share/jupyter/lab/static/1189.c1482e88f0e949753db6.js new file mode 100644 index 0000000..fa51589 --- /dev/null +++ b/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/share/jupyter/lab/static/1208.4b9ab7b231d39ebdbc3f.js b/share/jupyter/lab/static/1208.4b9ab7b231d39ebdbc3f.js new file mode 100644 index 0000000..e3cf6bb --- /dev/null +++ b/share/jupyter/lab/static/1208.4b9ab7b231d39ebdbc3f.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1208],{91208:(e,t,r)=>{r.r(t);r.d(t,{DefaultBufferLength:()=>n,IterMode:()=>d,MountedTree:()=>o,NodeProp:()=>l,NodeSet:()=>u,NodeType:()=>h,NodeWeakMap:()=>E,Parser:()=>j,Tree:()=>c,TreeBuffer:()=>m,TreeCursor:()=>I,TreeFragment:()=>O,parseMixed:()=>D});const n=1024;let i=0;class s{constructor(e,t){this.from=e;this.to=t}}class l{constructor(e={}){this.id=i++;this.perNode=!!e.perNode;this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");if(typeof e!="function")e=h.match(e);return t=>{let r=e(t);return r===undefined?null:[this,r]}}}l.closedBy=new l({deserialize:e=>e.split(" ")});l.openedBy=new l({deserialize:e=>e.split(" ")});l.group=new l({deserialize:e=>e.split(" ")});l.isolate=new l({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});l.contextHash=new l({perNode:true});l.lookAhead=new l({perNode:true});l.mounted=new l({perNode:true});class o{constructor(e,t,r){this.tree=e;this.overlay=t;this.parser=r}static get(e){return e&&e.props&&e.props[l.mounted.id]}}const f=Object.create(null);class h{constructor(e,t,r,n=0){this.name=e;this.props=t;this.id=r;this.flags=n}static define(e){let t=e.props&&e.props.length?Object.create(null):f;let r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0);let n=new h(e.name||"",t,e.id,r);if(e.props)for(let i of e.props){if(!Array.isArray(i))i=i(n);if(i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[i[0].id]=i[1]}}return n}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return true;let t=this.prop(l.group);return t?t.indexOf(e)>-1:false}return this.id==e}static match(e){let t=Object.create(null);for(let r in e)for(let n of r.split(" "))t[n]=e[r];return e=>{for(let r=e.prop(l.group),n=-1;n<(r?r.length:0);n++){let i=t[n<0?e.name:r[n]];if(i)return i}}}}h.none=new h("",Object.create(null),0,8);class u{constructor(e){this.types=e;for(let t=0;t0;for(let o=this.cursor(s|d.IncludeAnonymous);;){let e=false;if(o.from<=i&&o.to>=n&&(!l&&o.type.isAnonymous||t(o)!==false)){if(o.firstChild())continue;e=true}for(;;){if(e&&r&&(l||!o.type.isAnonymous))r(o);if(o.nextSibling())break;if(!o.parent())return;e=true}}}prop(e){return!e.perNode?this.type.prop(e):this.props?this.props[e.id]:undefined}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:P(h.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,r)=>new c(this.type,e,t,r,this.propValues)),e.makeTree||((e,t,r)=>new c(h.none,e,t,r)))}static build(e){return T(e)}}c.empty=new c(h.none,[],[],0);class g{constructor(e,t){this.buffer=e;this.index=t}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]}get pos(){return this.index}next(){this.index-=4}fork(){return new g(this.buffer,this.index)}}class m{constructor(e,t,r){this.buffer=e;this.length=t;this.set=r}get type(){return h.none}toString(){let e=[];for(let t=0;t0)break}}return l}slice(e,t,r){let n=this.buffer;let i=new Uint16Array(t-e),s=0;for(let l=e,o=0;l=t&&rt;case 1:return r<=t&&n>t;case 2:return n>t;case 4:return true}}function x(e,t,r,n){var i;while(e.from==e.to||(r<1?e.from>=t:e.from>t)||(r>-1?e.to<=t:e.to0?l.length:-1;e!=h;e+=t){let h=l[e],u=f[e]+s.from;if(!b(n,r,u,u+h.length))continue;if(h instanceof m){if(i&d.ExcludeBuffers)continue;let l=h.findChild(0,h.buffer.length,t,r-u,n);if(l>-1)return new A(new k(s,h,e,u),null,l)}else if(i&d.IncludeAnonymous||(!h.type.isAnonymous||B(h))){let l;if(!(i&d.IgnoreMounts)&&(l=o.get(h))&&!l.overlay)return new w(l.tree,u,e,s);let f=new w(h,u,e,s);return i&d.IncludeAnonymous||!f.type.isAnonymous?f:f.nextChild(t<0?h.children.length-1:0,t,r,n)}}if(i&d.IncludeAnonymous||!s.type.isAnonymous)return null;if(s.index>=0)e=s.index+t;else e=t<0?-1:s._parent._tree.children.length;s=s._parent;if(!s)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,r=0){let n;if(!(r&d.IgnoreOverlays)&&(n=o.get(this._tree))&&n.overlay){let r=e-this.from;for(let{from:e,to:i}of n.overlay){if((t>0?e<=r:e=r:i>r))return new w(n.tree,n.overlay[0].from+this.from,-1,this)}}return this.nextChild(0,1,e,t,r)}nextSignificantParent(){let e=this;while(e.type.isAnonymous&&e._parent)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function v(e,t,r,n){let i=e.cursor(),s=[];if(!i.firstChild())return s;if(r!=null)for(let l=false;!l;){l=i.type.is(r);if(!i.nextSibling())return s}for(;;){if(n!=null&&i.type.is(n))return s;if(i.type.is(t))s.push(i.node);if(!i.nextSibling())return n==null?s:[]}}function _(e,t,r=t.length-1){for(let n=e.parent;r>=0;n=n.parent){if(!n)return false;if(!n.type.isAnonymous){if(t[r]&&t[r]!=n.name)return false;r--}}return true}class k{constructor(e,t,r,n){this.parent=e;this.buffer=t;this.index=r;this.start=n}}class A extends y{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,r){super();this.context=e;this._parent=t;this.index=r;this.type=e.buffer.set.types[e.buffer.buffer[r]]}child(e,t,r){let{buffer:n}=this.context;let i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.context.start,r);return i<0?null:new A(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,r=0){if(r&d.ExcludeBuffers)return null;let{buffer:n}=this.context;let i=n.findChild(this.index+4,n.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new A(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context;let t=e.buffer[this.index+3];if(t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length))return new A(this.context,this._parent,t);return this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context;let t=this._parent?this._parent.index+4:0;if(this.index==t)return this.externalSibling(-1);return new A(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[];let{buffer:r}=this.context;let n=this.index+4,i=r.buffer[this.index+3];if(i>n){let s=r.buffer[this.index+1];e.push(r.slice(n,i,s));t.push(0)}return new c(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function C(e){if(!e.length)return null;let t=0,r=e[0];for(let s=1;sr.from||n.to=t){let l=new w(e.tree,e.overlay[0].from+s.from,-1,s);(i||(i=[n])).push(x(l,t,r,false))}}}return i?C(i):n}class I{get name(){return this.type.name}constructor(e,t=0){this.mode=t;this.buffer=null;this.stack=[];this.index=0;this.bufferNode=null;if(e instanceof w){this.yieldNode(e)}else{this._tree=e.context.parent;this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e;this.yieldBuf(e.index)}}yieldNode(e){if(!e)return false;this._tree=e;this.type=e.type;this.from=e.from;this.to=e.to;return true}yieldBuf(e,t){this.index=e;let{start:r,buffer:n}=this.buffer;this.type=t||n.set.types[n.buffer[e]];this.from=r+n.buffer[e+1];this.to=r+n.buffer[e+2];return true}yield(e){if(!e)return false;if(e instanceof w){this.buffer=null;return this.yieldNode(e)}this.buffer=e.context;return this.yieldBuf(e.index,e.type)}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,r){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,r,this.mode));let{buffer:n}=this.buffer;let i=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.buffer.start,r);if(i<0)return false;this.stack.push(this.index);return this.yieldBuf(i)}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,r=this.mode){if(!this.buffer)return this.yield(this._tree.enter(e,t,r));return r&d.ExcludeBuffers?false:this.enterChild(1,e,t)}parent(){if(!this.buffer)return this.yieldNode(this.mode&d.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&d.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();this.buffer=null;return this.yieldNode(e)}sibling(e){if(!this.buffer)return!this._tree._parent?false:this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,r=this.stack.length-1;if(e<0){let e=r<0?0:this.stack[r]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(r<0?t.buffer.length:t.buffer[this.stack[r]+3]))return this.yieldBuf(e)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):false}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,r,{buffer:n}=this;if(n){if(e>0){if(this.index-1)for(let n=t+e,i=e<0?-1:r._tree.children.length;n!=i;n+=e){let e=r._tree.children[n];if(this.mode&d.IncludeAnonymous||e instanceof m||!e.type.isAnonymous||B(e))return false}}return true}move(e,t){if(t&&this.enterChild(e,0,4))return true;for(;;){if(this.sibling(e))return true;if(this.atLastNode(e)||!this.parent())return false}}next(e=true){return this.move(1,e)}prev(e=true){return this.move(-1,e)}moveTo(e,t=0){while(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let s=e;s;s=s._parent)if(s.index==n){if(n==this.index)return s;t=s;r=i+1;break e}n=this.stack[--i]}}for(let n=r;n=0;i--){if(i<0)return _(this.node,e,n);let s=r[t.buffer[this.stack[i]]];if(!s.isAnonymous){if(e[n]&&e[n]!=s.name)return false;n--}}return true}}function B(e){return e.children.some((e=>e instanceof m||!e.type.isAnonymous||B(e)))}function T(e){var t;let{buffer:r,nodeSet:i,maxBufferLength:s=n,reused:o=[],minRepeatType:f=i.types.length}=e;let h=Array.isArray(r)?new g(r,r.length):r;let u=i.types;let a=0,p=0;function d(e,t,r,n,l,c){let{id:g,start:k,end:A,size:C}=h;let S=p;while(C<0){h.next();if(C==-1){let t=o[g];r.push(t);n.push(k-e);return}else if(C==-3){a=g;return}else if(C==-4){p=g;return}else{throw new RangeError(`Unrecognized record size: ${C}`)}}let N=u[g],I,B;let T=k-e;if(A-k<=s&&(B=v(h.pos-t,l))){let t=new Uint16Array(B.size-B.skip);let r=h.pos-B.size,n=t.length;while(h.pos>r)n=_(B.start,t,n);I=new m(t,A-B.start,i);T=B.start-e}else{let e=h.pos-C;h.next();let t=[],r=[];let n=g>=f?g:-1;let i=0,l=A;while(h.pos>e){if(n>=0&&h.id==n&&h.size>=0){if(h.end<=l-s){y(t,r,k,i,h.end,l,n,S);i=t.length;l=h.end}h.next()}else if(c>2500){b(k,e,t,r)}else{d(k,e,t,r,n,c+1)}}if(n>=0&&i>0&&i-1&&i>0){let e=x(N);I=P(N,t,r,0,t.length,0,A-k,e,e)}else{I=w(N,t,r,A-k,S-A)}}r.push(I);n.push(T)}function b(e,t,r,n){let l=[];let o=0,f=-1;while(h.pos>t){let{id:e,start:t,end:r,size:n}=h;if(n>4){h.next()}else if(f>-1&&t=0;e-=3){t[r++]=l[e];t[r++]=l[e+1]-s;t[r++]=l[e+2]-s;t[r++]=r}r.push(new m(t,l[2]-s,i));n.push(s-e)}}function x(e){return(t,r,n)=>{let i=0,s=t.length-1,o,f;if(s>=0&&(o=t[s])instanceof c){if(!s&&o.type==e&&o.length==n)return o;if(f=o.prop(l.lookAhead))i=r[s]+o.length+f}return w(e,t,r,n,i)}}function y(e,t,r,n,s,l,o,f){let h=[],u=[];while(e.length>n){h.push(e.pop());u.push(t.pop()+r-s)}e.push(w(i.types[o],h,u,l-s,f-l));t.push(s-r)}function w(e,t,r,n,i=0,s){if(a){let e=[l.contextHash,a];s=s?[e].concat(s):[e]}if(i>25){let e=[l.lookAhead,i];s=s?[e].concat(s):[e]}return new c(e,t,r,n,s)}function v(e,t){let r=h.fork();let n=0,i=0,l=0,o=r.end-s;let u={size:0,start:0,skip:0};e:for(let s=r.pos-e;r.pos>s;){let e=r.size;if(r.id==t&&e>=0){u.size=n;u.start=i;u.skip=l;l+=4;n+=4;r.next();continue}let h=r.pos-e;if(e<0||h=f?4:0;let p=r.start;r.next();while(r.pos>h){if(r.size<0){if(r.size==-3)a+=4;else break e}else if(r.id>=f){a+=4}r.next()}i=p;n+=e;l+=a}if(t<0||n==e){u.size=n;u.start=i;u.skip=l}return u.size>4?u:undefined}function _(e,t,r){let{id:n,start:i,end:s,size:l}=h;h.next();if(l>=0&&n4){let n=h.pos-(l-4);while(h.pos>n)r=_(e,t,r)}t[--r]=o;t[--r]=s-e;t[--r]=i-e;t[--r]=n}else if(l==-3){a=n}else if(l==-4){p=n}return r}let k=[],A=[];while(h.pos>0)d(e.start||0,e.bufferStart||0,k,A,-1,0);let C=(t=e.length)!==null&&t!==void 0?t:k.length?A[0]+k[0].length:0;return new c(u[e.topID],k.reverse(),A.reverse(),C)}const M=new WeakMap;function z(e,t){if(!e.isAnonymous||t instanceof m||t.type!=e)return 1;let r=M.get(t);if(r==null){r=1;for(let n of t.children){if(n.type!=e||!(n instanceof c)){r=1;break}r+=z(e,n)}M.set(t,r)}return r}function P(e,t,r,n,i,s,l,o,f){let h=0;for(let c=n;c=u)break;c+=r}if(o==n+1){if(c>u){let e=t[n];d(e.children,e.positions,0,e.children.length,r[n]+l);continue}a.push(t[n])}else{let i=r[o-1]+t[o-1].length-h;a.push(P(e,t,r,n,o,h,i,null,f))}p.push(h+l-s)}}d(t,r,n,i,0);return(o||f)(a,p,l)}class E{constructor(){this.map=new WeakMap}setBuffer(e,t,r){let n=this.map.get(e);if(!n)this.map.set(e,n=new Map);n.set(t,r)}getBuffer(e,t){let r=this.map.get(e);return r&&r.get(t)}set(e,t){if(e instanceof A)this.setBuffer(e.context.buffer,e.index,t);else if(e instanceof w)this.map.set(e.tree,t)}get(e){return e instanceof A?this.getBuffer(e.context.buffer,e.index):e instanceof w?this.map.get(e.tree):undefined}cursorSet(e,t){if(e.buffer)this.setBuffer(e.buffer.buffer,e.index,t);else this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class O{constructor(e,t,r,n,i=false,s=false){this.from=e;this.to=t;this.tree=r;this.offset=n;this.open=(i?1:0)|(s?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],r=false){let n=[new O(0,e.length,e,0,false,r)];for(let i of t)if(i.to>e.length)n.push(i);return n}static applyChanges(e,t,r=128){if(!t.length)return e;let n=[];let i=1,s=e.length?e[0]:null;for(let l=0,o=0,f=0;;l++){let h=l=r)while(s&&s.from=t.from||u<=t.to||f){let e=Math.max(t.from,o)-f,r=Math.min(t.to,u)-f;t=e>=r?null:new O(e,r,t.tree,t.offset+f,l>0,!!h)}if(t)n.push(t);if(s.to>u)break;s=inew s(e.from,e.to))):[new s(0,0)];return this.createParse(e,t||[],r)}parse(e,t,r){let n=this.startParse(e,t,r);for(;;){let e=n.advance();if(e)return e}}}class F{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return false}read(e,t){return this.string.slice(e,t)}}function D(e){return(t,r,n,i)=>new J(t,e,r,n,i)}class R{constructor(e,t,r,n,i){this.parser=e;this.parse=t;this.overlay=r;this.target=n;this.from=i}}function W(e){if(!e.length||e.some((e=>e.from>=e.to)))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class U{constructor(e,t,r,n,i,s,l){this.parser=e;this.predicate=t;this.mounts=r;this.index=n;this.start=i;this.target=s;this.prev=l;this.depth=0;this.ranges=[]}}const L=new l({perNode:true});class J{constructor(e,t,r,n,i){this.nest=t;this.input=r;this.fragments=n;this.ranges=i;this.inner=[];this.innerDone=0;this.baseTree=null;this.stoppedAt=null;this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;this.baseParse=null;this.baseTree=e;this.startInner();if(this.stoppedAt!=null)for(let t of this.inner)t.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;if(this.stoppedAt!=null)e=new c(e.type,e.children,e.positions,e.length,e.propValues.concat([[L,this.stoppedAt]]));return e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let r=Object.assign(Object.create(null),e.target.props);r[l.mounted.id]=new o(t,e.overlay,e.parser);e.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t=this.stoppedAt){o=false}else if(e.hasNode(n)){if(t){let e=t.mounts.find((e=>e.frag.from<=n.from&&e.frag.to>=n.to&&e.mount.overlay));if(e)for(let r of e.mount.overlay){let i=r.from+e.pos,s=r.to+e.pos;if(i>=n.from&&s<=n.to&&!t.ranges.some((e=>e.fromi)))t.ranges.push({from:i,to:s})}}o=false}else if(r&&(l=V(r.ranges,n.from,n.to))){o=l!=2}else if(!n.type.isAnonymous&&(i=this.nest(n,this.input))&&(n.fromnew s(e.from-n.from,e.to-n.from))):null,n.tree,e.length?e[0].from:n.from));if(!i.overlay)o=false;else if(e.length)r={ranges:e,depth:0,prev:r}}}else if(t&&(f=t.predicate(n))){if(f===true)f=new s(n.from,n.to);if(f.fromnew s(e.from-t.start,e.to-t.start))),t.target,e[0].from))}t=t.prev}if(r&&! --r.depth)r=r.prev}}}}}function V(e,t,r){for(let n of e){if(n.from>=r)break;if(n.to>t)return n.from<=t&&n.to>=r?2:1}return 0}function H(e,t,r,n,i,s){if(t=e&&t.enter(r,1,d.IgnoreOverlays|d.ExcludeBuffers));else if(!t.next(false))this.done=true}}hasNode(e){this.moveTo(e.from);if(!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree){for(let t=this.cursor.tree;;){if(t==e.tree)return true;if(t.children.length&&t.positions[0]==0&&t.children[0]instanceof c)t=t.children[0];else break}}return false}}class q{constructor(e){var t;this.fragments=e;this.curTo=0;this.fragI=0;if(e.length){let r=this.curFrag=e[0];this.curTo=(t=r.tree.prop(L))!==null&&t!==void 0?t:r.to;this.inner=new $(r.tree,-r.offset)}else{this.curFrag=this.inner=null}}hasNode(e){while(this.curFrag&&e.from>=this.curTo)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;this.fragI++;if(this.fragI==this.fragments.length){this.curFrag=this.inner=null}else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=(e=t.tree.prop(L))!==null&&e!==void 0?e:t.to;this.inner=new $(t.tree,-t.offset)}}findMounts(e,t){var r;let n=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let i=(r=e.tree)===null||r===void 0?void 0:r.prop(l.mounted);if(i&&i.parser==t){for(let t=this.fragI;t=e.to)break;if(r.tree==this.curFrag.tree)n.push({frag:r,pos:e.from-r.offset,mount:i})}}}}return n}}function K(e,t){let r=null,n=t;for(let i=1,l=0;i=f)break;if(e.to<=o)continue;if(!r)n=r=t.slice();if(e.fromf)r.splice(l+1,0,new s(f,e.to))}else if(e.to>f){r[l--]=new s(f,e.to)}else{r.splice(l--,1)}}}return n}function Q(e,t,r,n){let i=0,l=0,o=false,f=false,h=-1e9;let u=[];for(;;){let a=i==e.length?1e9:o?e[i].to:e[i].from;let p=l==t.length?1e9:f?t[l].to:t[l].from;if(o!=f){let e=Math.max(h,r),t=Math.min(a,p,n);if(enew s(e.from+n,e.to+n)));let u=Q(t,o,f,h);for(let t=0,n=f;;t++){let s=t==u.length,o=s?h:u[t].from;if(o>n)r.push(new O(n,o,i.tree,-e,l.from>=n||l.openStart,l.to<=o||l.openEnd));if(s)break;n=u[t].to}}else{r.push(new O(f,h,i.tree,-e,l.from>=e||l.openStart,l.to<=o||l.openEnd))}}return r}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/1218.856189c1ebf3c45164d6.js b/share/jupyter/lab/static/1218.856189c1ebf3c45164d6.js new file mode 100644 index 0000000..2c37f18 --- /dev/null +++ b/share/jupyter/lab/static/1218.856189c1ebf3c45164d6.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1218],{1218:(t,n,e)=>{e.d(n,{JLW:()=>jr.A,l78:()=>g,tlR:()=>_,qrM:()=>ri.Ay,Yu4:()=>ni.A,IA3:()=>ei.A,Wi0:()=>ui,PGM:()=>ai,OEq:()=>li.A,y8u:()=>hi.Ay,olC:()=>ci.A,IrU:()=>fi.A,oDi:()=>di.A,Q7f:()=>pi.A,cVp:()=>vi.A,lUB:()=>_i.A,Lx9:()=>yi.A,nVG:()=>mi.G,uxU:()=>mi.N,Xf2:()=>gi.A,GZz:()=>wi.Ay,UPb:()=>wi.Ps,dyv:()=>wi.Ko,GPZ:()=>Pr.GP,Sk5:()=>Vr.Ay,bEH:()=>Ir.interpolateHcl,n8j:()=>Fr.A,T9B:()=>r.A,jkA:()=>i.A,rLf:()=>ti,WH:()=>Lr,m4Y:()=>Yr.A,UMr:()=>Ur.A,w7C:()=>Rr.A,zt:()=>qr,Ltv:()=>Kr,UAC:()=>zi.UA,DCK:()=>Ti.DC,TUC:()=>Mi.TU,Agd:()=>ki.Ag,t6C:()=>Ai.y,wXd:()=>xi.wX,ABi:()=>Mi.AB,Ui6:()=>Ei.Ui,rGn:()=>Mi.rG,ucG:()=>bi.R,YPH:()=>Mi.YP,Mol:()=>Mi.Mo,PGu:()=>Mi.PG,GuW:()=>Mi.Gu,hkb:()=>Br.A});var r=e(21671);var i=e(44317);function o(t){return t}var u=1,a=2,s=3,l=4,c=1e-6;function f(t){return"translate("+t+",0)"}function h(t){return"translate(0,"+t+")"}function p(t){return n=>+t(n)}function v(t,n){n=Math.max(0,t.bandwidth()-n*2)/2;if(t.round())n=Math.round(n);return e=>+t(e)+n}function d(){return!this.__axis}function y(t,n){var e=[],r=null,i=null,y=6,_=6,m=3,g=typeof window!=="undefined"&&window.devicePixelRatio>1?0:.5,w=t===u||t===l?-1:1,A=t===l||t===a?"x":"y",b=t===u||t===s?f:h;function x(f){var h=r==null?n.ticks?n.ticks.apply(n,e):n.domain():r,x=i==null?n.tickFormat?n.tickFormat.apply(n,e):o:i,k=Math.max(y,0)+m,z=n.range(),M=+z[0]+g,E=+z[z.length-1]+g,T=(n.bandwidth?v:p)(n.copy(),g),C=f.selection?f.selection():f,S=C.selectAll(".domain").data([null]),N=C.selectAll(".tick").data(h,n).order(),P=N.exit(),V=N.enter().append("g").attr("class","tick"),B=N.select("line"),I=N.select("text");S=S.merge(S.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor"));N=N.merge(V);B=B.merge(V.append("line").attr("stroke","currentColor").attr(A+"2",w*y));I=I.merge(V.append("text").attr("fill","currentColor").attr(A,w*k).attr("dy",t===u?"0em":t===s?"0.71em":"0.32em"));if(f!==C){S=S.transition(f);N=N.transition(f);B=B.transition(f);I=I.transition(f);P=P.transition(f).attr("opacity",c).attr("transform",(function(t){return isFinite(t=T(t))?b(t+g):this.getAttribute("transform")}));V.attr("opacity",c).attr("transform",(function(t){var n=this.parentNode.__axis;return b((n&&isFinite(n=n(t))?n:T(t))+g)}))}P.remove();S.attr("d",t===l||t===a?_?"M"+w*_+","+M+"H"+g+"V"+E+"H"+w*_:"M"+g+","+M+"V"+E:_?"M"+M+","+w*_+"V"+g+"H"+E+"V"+w*_:"M"+M+","+g+"H"+E);N.attr("opacity",1).attr("transform",(function(t){return b(T(t)+g)}));B.attr(A+"2",w*y);I.attr(A,w*k).text(x);C.filter(d).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===a?"start":t===l?"end":"middle");C.each((function(){this.__axis=T}))}x.scale=function(t){return arguments.length?(n=t,x):n};x.ticks=function(){return e=Array.from(arguments),x};x.tickArguments=function(t){return arguments.length?(e=t==null?[]:Array.from(t),x):e.slice()};x.tickValues=function(t){return arguments.length?(r=t==null?null:Array.from(t),x):r&&r.slice()};x.tickFormat=function(t){return arguments.length?(i=t,x):i};x.tickSize=function(t){return arguments.length?(y=_=+t,x):y};x.tickSizeInner=function(t){return arguments.length?(y=+t,x):y};x.tickSizeOuter=function(t){return arguments.length?(_=+t,x):_};x.tickPadding=function(t){return arguments.length?(m=+t,x):m};x.offset=function(t){return arguments.length?(g=+t,x):g};return x}function _(t){return y(u,t)}function m(t){return y(a,t)}function g(t){return y(s,t)}function w(t){return y(l,t)}function A(){}function b(t){return t==null?A:function(){return this.querySelector(t)}}function x(t){if(typeof t!=="function")t=b(t);for(var n=this._groups,e=n.length,r=new Array(e),i=0;i=g)g=m+1;while(!(A=y[g])&&++g=0;){if(u=r[i]){if(o&&u.compareDocumentPosition(o)^4)o.parentNode.insertBefore(u,o);o=u}}}return this}function $(t){if(!t)t=tt;function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}for(var e=this._groups,r=e.length,i=new Array(r),o=0;on?1:t>=n?0:NaN}function nt(){var t=arguments[0];arguments[0]=this;t.apply(null,arguments);return this}function et(){return Array.from(this)}function rt(){for(var t=this._groups,n=0,e=t.length;n=0&&(n=t.slice(0,e))!=="xmlns")t=t.slice(e+1);return st.hasOwnProperty(n)?{space:st[n],local:t}:t}function ct(t){return function(){this.removeAttribute(t)}}function ft(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ht(t,n){return function(){this.setAttribute(t,n)}}function pt(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function vt(t,n){return function(){var e=n.apply(this,arguments);if(e==null)this.removeAttribute(t);else this.setAttribute(t,e)}}function dt(t,n){return function(){var e=n.apply(this,arguments);if(e==null)this.removeAttributeNS(t.space,t.local);else this.setAttributeNS(t.space,t.local,e)}}function yt(t,n){var e=lt(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((n==null?e.local?ft:ct:typeof n==="function"?e.local?dt:vt:e.local?pt:ht)(e,n))}function _t(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function mt(t){return function(){this.style.removeProperty(t)}}function gt(t,n,e){return function(){this.style.setProperty(t,n,e)}}function wt(t,n,e){return function(){var r=n.apply(this,arguments);if(r==null)this.style.removeProperty(t);else this.style.setProperty(t,r,e)}}function At(t,n,e){return arguments.length>1?this.each((n==null?mt:typeof n==="function"?wt:gt)(t,n,e==null?"":e)):bt(this.node(),t)}function bt(t,n){return t.style.getPropertyValue(n)||_t(t).getComputedStyle(t,null).getPropertyValue(n)}function xt(t){return function(){delete this[t]}}function kt(t,n){return function(){this[t]=n}}function zt(t,n){return function(){var e=n.apply(this,arguments);if(e==null)delete this[t];else this[t]=e}}function Mt(t,n){return arguments.length>1?this.each((n==null?xt:typeof n==="function"?zt:kt)(t,n)):this.node()[t]}function Et(t){return t.trim().split(/^|\s+/)}function Tt(t){return t.classList||new Ct(t)}function Ct(t){this._node=t;this._names=Et(t.getAttribute("class")||"")}Ct.prototype={add:function(t){var n=this._names.indexOf(t);if(n<0){this._names.push(t);this._node.setAttribute("class",this._names.join(" "))}},remove:function(t){var n=this._names.indexOf(t);if(n>=0){this._names.splice(n,1);this._node.setAttribute("class",this._names.join(" "))}},contains:function(t){return this._names.indexOf(t)>=0}};function St(t,n){var e=Tt(t),r=-1,i=n.length;while(++r=0)n=t.slice(e+1),t=t.slice(0,e);return{type:t,name:n}}))}function ln(t){return function(){var n=this.__on;if(!n)return;for(var e=0,r=-1,i=n.length,o;e{r.stop();t(e+n)}),n,e);return r}var zn=(0,bn.A)("start","end","cancel","interrupt");var Mn=[];var En=0;var Tn=1;var Cn=2;var Sn=3;var Nn=4;var Pn=5;var Vn=6;function Bn(t,n,e,r,i,o){var u=t.__transition;if(!u)t.__transition={};else if(e in u)return;Un(t,e,{name:n,index:r,group:i,on:zn,tween:Mn,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:En})}function In(t,n){var e=Dn(t,n);if(e.state>En)throw new Error("too late; already scheduled");return e}function Gn(t,n){var e=Dn(t,n);if(e.state>Sn)throw new Error("too late; already running");return e}function Dn(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function Un(t,n,e){var r=t.__transition,i;r[n]=e;e.timer=(0,xn.O1)(o,0,e.time);function o(t){e.state=Tn;e.timer.restart(u,e.delay,e.time);if(e.delay<=t)u(t-e.delay)}function u(o){var l,c,f,h;if(e.state!==Tn)return s();for(l in r){h=r[l];if(h.name!==e.name)continue;if(h.state===Sn)return kn(u);if(h.state===Nn){h.state=Vn;h.timer.stop();h.on.call("interrupt",t,t.__data__,h.index,h.group);delete r[l]}else if(+lCn&&r.state=0)t=t.slice(0,n);return!t||t==="start"}))}function be(t,n,e){var r,i,o=Ae(n)?In:Gn;return function(){var u=o(this,t),a=u.on;if(a!==r)(i=(r=a).copy()).on(n,e);u.on=i}}function xe(t,n){var e=this._id;return arguments.length<2?Dn(this.node(),e).on.on(t):this.each(be(e,t,n))}function ke(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;if(n)n.removeChild(this)}}function ze(){return this.on("end.remove",ke(this._id))}function Me(t){var n=this._name,e=this._id;if(typeof t!=="function")t=b(t);for(var r=this._groups,i=r.length,o=new Array(i),u=0;u{const n=t.identifier;t=pointer(t,r);t.point0=t.slice();t.identifier=n;return t}));interrupt(r);var B=c(r,arguments,true).beforestart();if(o==="overlay"){if(v)C=true;const e=[V[0],V[1]||V[0]];h.selection=v=[[y=t===vr?d:cr(e[0][0],e[1][0]),g=t===pr?m:cr(e[0][1],e[1][1])],[b=t===vr?A:lr(e[0][0],e[1][0]),z=t===pr?k:lr(e[0][1],e[1][1])]];if(V.length>1)L(n)}else{y=v[0][0];g=v[0][1];b=v[1][0];z=v[1][1]}_=y;w=g;x=b;M=z;var I=select(r).attr("pointer-events","none");var G=I.selectAll(".overlay").attr("cursor",yr[o]);if(n.touches){B.moved=U;B.ended=O}else{var D=select(n.view).on("mousemove.brush",U,true).on("mouseup.brush",O,true);if(i)D.on("keydown.brush",H,true).on("keyup.brush",Y,true);dragDisable(n.view)}l.call(r);B.start(n,u.name);function U(t){for(const n of t.changedTouches||[t]){for(const t of V)if(t.identifier===n.identifier)t.cur=pointer(n,r)}if(S&&!N&&!P&&V.length===1){const t=V[0];if(sr(t.cur[0]-t[0])>sr(t.cur[1]-t[1]))P=true;else N=true}for(const n of V)if(n.cur)n[0]=n.cur[0],n[1]=n.cur[1];C=true;noevent(t);L(t)}function L(t){const n=V[0],e=n.point0;var i;E=n[0]-e[0];T=n[1]-e[1];switch(u){case or:case ir:{if(s)E=lr(d-y,cr(A-b,E)),_=y+E,x=b+E;if(f)T=lr(m-g,cr(k-z,T)),w=g+T,M=z+T;break}case ur:{if(V[1]){if(s)_=lr(d,cr(A,V[0][0])),x=lr(d,cr(A,V[1][0])),s=1;if(f)w=lr(m,cr(k,V[0][1])),M=lr(m,cr(k,V[1][1])),f=1}else{if(s<0)E=lr(d-y,cr(A-y,E)),_=y+E,x=b;else if(s>0)E=lr(d-b,cr(A-b,E)),_=y,x=b+E;if(f<0)T=lr(m-g,cr(k-g,T)),w=g+T,M=z;else if(f>0)T=lr(m-z,cr(k-z,T)),w=g,M=z+T}break}case ar:{if(s)_=lr(d,cr(A,y-E*s)),x=lr(d,cr(A,b+E*s));if(f)w=lr(m,cr(k,g-T*f)),M=lr(m,cr(k,z+T*f));break}}if(x<_){s*=-1;i=y,y=b,b=i;i=_,_=x,x=i;if(o in _r)G.attr("cursor",yr[o=_r[o]])}if(M0)y=_-E;if(f<0)z=M-T;else if(f>0)g=w-T;u=or;G.attr("cursor",yr.selection);L(t)}break}default:return}noevent(t)}function Y(t){switch(t.keyCode){case 16:{if(S){N=P=S=false;L(t)}break}case 18:{if(u===ar){if(s<0)b=x;else if(s>0)y=_;if(f<0)z=M;else if(f>0)g=w;u=ur;L(t)}break}case 32:{if(u===or){if(t.altKey){if(s)b=x-E*s,y=_+E*s;if(f)z=M-T*f,g=w+T*f;u=ar}else{if(s<0)b=x;else if(s>0)y=_;if(f<0)z=M;else if(f>0)g=w;u=ur}G.attr("cursor",yr[o]);L(t)}break}default:return}noevent(t)}}function p(t){c(this,arguments).moved(t)}function v(t){c(this,arguments).ended(t)}function d(){var e=this.__brush||{selection:null};e.extent=hr(n.apply(this,arguments));e.dim=t;return e}s.extent=function(t){return arguments.length?(n=typeof t==="function"?t:constant(hr(t)),s):n};s.filter=function(t){return arguments.length?(e=typeof t==="function"?t:constant(!!t),s):e};s.touchable=function(t){return arguments.length?(r=typeof t==="function"?t:constant(!!t),s):r};s.handleSize=function(t){return arguments.length?(u=+t,s):u};s.keyModifiers=function(t){return arguments.length?(i=!!t,s):i};s.on=function(){var t=o.on.apply(o,arguments);return t===o?s:t};return s}var Pr=e(24626);var Vr=e(59459);var Br=e(93926);var Ir=e(67360);var Gr=e(18312);var Dr=e(25758);var Ur=e(16527);function Lr(){var t=(0,Ur.A)().unknown(undefined),n=t.domain,e=t.range,r=0,i=1,o,u,a=false,s=0,l=0,c=.5;delete t.unknown;function f(){var t=n().length,f=it?1:n>=t?0:NaN}function Qr(t){return t}var $r=e(98247);function ti(){var t=Qr,n=Jr,e=null,r=(0,Zr.A)(0),i=(0,Zr.A)($r.FA),o=(0,Zr.A)(0);function u(u){var a,s=(u=(0,Wr.A)(u)).length,l,c,f=0,h=new Array(s),p=new Array(s),v=+r.apply(this,arguments),d=Math.min($r.FA,Math.max(-$r.FA,i.apply(this,arguments)-v)),y,_=Math.min(Math.abs(d)/s,o.apply(this,arguments)),m=_*(d<0?-1:1),g;for(a=0;a0){f+=g}}if(n!=null)h.sort((function(t,e){return n(p[t],p[e])}));else if(e!=null)h.sort((function(t,n){return e(u[t],u[n])}));for(a=0,c=f?(d-s*m)/f:0;a0?g*c:0)+m,p[l]={data:u[l],index:a,value:g,startAngle:v,endAngle:y,padAngle:_}}return p}u.value=function(n){return arguments.length?(t=typeof n==="function"?n:(0,Zr.A)(+n),u):t};u.sortValues=function(t){return arguments.length?(n=t,e=null,u):n};u.sort=function(t){return arguments.length?(e=t,n=null,u):e};u.startAngle=function(t){return arguments.length?(r=typeof t==="function"?t:(0,Zr.A)(+t),u):r};u.endAngle=function(t){return arguments.length?(i=typeof t==="function"?t:(0,Zr.A)(+t),u):i};u.padAngle=function(t){return arguments.length?(o=typeof t==="function"?t:(0,Zr.A)(+t),u):o};return u}var ni=e(60075);var ei=e(69683);var ri=e(24363);class ii{constructor(t,n){this._context=t;this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line}point(t,n){t=+t,n=+n;switch(this._point){case 0:{this._point=1;if(this._line)this._context.lineTo(t,n);else this._context.moveTo(t,n);break}case 1:this._point=2;default:{if(this._x)this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n);else this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}class oi{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){t=+t,n=+n;if(this._point===0){this._point=1}else{const e=pointRadial(this._x0,this._y0);const r=pointRadial(this._x0,this._y0=(this._y0+n)/2);const i=pointRadial(t,this._y0);const o=pointRadial(t,n);this._context.moveTo(...e);this._context.bezierCurveTo(...r,...i,...o)}this._x0=t,this._y0=n}}function ui(t){return new ii(t,true)}function ai(t){return new ii(t,false)}function si(t){return new oi(t)}var li=e(54545);var ci=e(13893);var fi=e(46457);var hi=e(43793);var pi=e(25633);var vi=e(13309);var di=e(76413);var yi=e(43272);var _i=e(71228);var mi=e(67694);var gi=e(29944);var wi=e(79011);var Ai=e(26530);var bi=e(61147);var xi=e(23383);var ki=e(9017);var zi=e(20293);var Mi=e(61779);var Ei=e(77849);var Ti=e(82692);function Ci(t,n,e){this.k=t;this.x=n;this.y=e}Ci.prototype={constructor:Ci,scale:function(t){return t===1?this:new Ci(this.k*t,this.x,this.y)},translate:function(t,n){return t===0&n===0?this:new Ci(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Si=new Ci(1,0,0);Ni.prototype=Ci.prototype;function Ni(t){while(!t.__zoom)if(!(t=t.parentNode))return Si;return t.__zoom}function Pi(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Vi(){var t=this;if(t instanceof SVGElement){t=t.ownerSVGElement||t;if(t.hasAttribute("viewBox")){t=t.viewBox.baseVal;return[[t.x,t.y],[t.x+t.width,t.y+t.height]]}return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}return[[0,0],[t.clientWidth,t.clientHeight]]}function Bi(){return this.__zoom||identity}function Ii(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Gi(){return navigator.maxTouchPoints||"ontouchstart"in this}function Di(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],u=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),u>o?(o+u)/2:Math.min(0,o)||Math.max(0,u))}function Ui(){var t=Pi,n=Vi,e=Di,r=Ii,i=Gi,o=[0,Infinity],u=[[-Infinity,-Infinity],[Infinity,Infinity]],a=250,s=interpolateZoom,l=dispatch("start","zoom","end"),c,f,h,p=500,v=150,d=0,y=10;function _(t){t.property("__zoom",Bi).on("wheel.zoom",k,{passive:false}).on("mousedown.zoom",z).on("dblclick.zoom",M).filter(i).on("touchstart.zoom",E).on("touchmove.zoom",T).on("touchend.zoom touchcancel.zoom",C).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}_.transform=function(t,n,e,r){var i=t.selection?t.selection():t;i.property("__zoom",Bi);if(t!==i){A(t,n,e,r)}else{i.interrupt().each((function(){b(this,arguments).event(r).start().zoom(null,typeof n==="function"?n.apply(this,arguments):n).end()}))}};_.scaleBy=function(t,n,e,r){_.scaleTo(t,(function(){var t=this.__zoom.k,e=typeof n==="function"?n.apply(this,arguments):n;return t*e}),e,r)};_.scaleTo=function(t,r,i,o){_.transform(t,(function(){var t=n.apply(this,arguments),o=this.__zoom,a=i==null?w(t):typeof i==="function"?i.apply(this,arguments):i,s=o.invert(a),l=typeof r==="function"?r.apply(this,arguments):r;return e(g(m(o,l),a,s),t,u)}),i,o)};_.translateBy=function(t,r,i,o){_.transform(t,(function(){return e(this.__zoom.translate(typeof r==="function"?r.apply(this,arguments):r,typeof i==="function"?i.apply(this,arguments):i),n.apply(this,arguments),u)}),null,o)};_.translateTo=function(t,r,i,o,a){_.transform(t,(function(){var t=n.apply(this,arguments),a=this.__zoom,s=o==null?w(t):typeof o==="function"?o.apply(this,arguments):o;return e(identity.translate(s[0],s[1]).scale(a.k).translate(typeof r==="function"?-r.apply(this,arguments):-r,typeof i==="function"?-i.apply(this,arguments):-i),t,u)}),o,a)};function m(t,n){n=Math.max(o[0],Math.min(o[1],n));return n===t.k?t:new Transform(n,t.x,t.y)}function g(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new Transform(t.k,r,i)}function w(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function A(t,e,r,i){t.on("start.zoom",(function(){b(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){b(this,arguments).event(i).end()})).tween("zoom",(function(){var t=this,o=arguments,u=b(t,o).event(i),a=n.apply(t,o),l=r==null?w(a):typeof r==="function"?r.apply(t,o):r,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),f=t.__zoom,h=typeof e==="function"?e.apply(t,o):e,p=s(f.invert(l).concat(c/f.k),h.invert(l).concat(c/h.k));return function(t){if(t===1)t=h;else{var n=p(t),e=c/n[2];t=new Transform(e,l[0]-n[0]*e,l[1]-n[1]*e)}u.zoom(null,t)}}))}function b(t,n,e){return!e&&t.__zooming||new x(t,n)}function x(t,e){this.that=t;this.args=e;this.active=0;this.sourceEvent=null;this.extent=n.apply(t,e);this.taps=0}x.prototype={event:function(t){if(t)this.sourceEvent=t;return this},start:function(){if(++this.active===1){this.that.__zooming=this;this.emit("start")}return this},zoom:function(t,n){if(this.mouse&&t!=="mouse")this.mouse[1]=n.invert(this.mouse[0]);if(this.touch0&&t!=="touch")this.touch0[1]=n.invert(this.touch0[0]);if(this.touch1&&t!=="touch")this.touch1[1]=n.invert(this.touch1[0]);this.that.__zoom=n;this.emit("zoom");return this},end:function(){if(--this.active===0){delete this.that.__zooming;this.emit("end")}return this},emit:function(t){var n=select(this.that).datum();l.call(t,this.that,new ZoomEvent(t,{sourceEvent:this.sourceEvent,target:_,type:t,transform:this.that.__zoom,dispatch:l}),n)}};function k(n,...i){if(!t.apply(this,arguments))return;var a=b(this,i).event(n),s=this.__zoom,l=Math.max(o[0],Math.min(o[1],s.k*Math.pow(2,r.apply(this,arguments)))),c=pointer(n);if(a.wheel){if(a.mouse[0][0]!==c[0]||a.mouse[0][1]!==c[1]){a.mouse[1]=s.invert(a.mouse[0]=c)}clearTimeout(a.wheel)}else if(s.k===l)return;else{a.mouse=[c,s.invert(c)];interrupt(this);a.start()}noevent(n);a.wheel=setTimeout(f,v);a.zoom("mouse",e(g(m(s,l),a.mouse[0],a.mouse[1]),a.extent,u));function f(){a.wheel=null;a.end()}}function z(n,...r){if(h||!t.apply(this,arguments))return;var i=n.currentTarget,o=b(this,r,true).event(n),a=select(n.view).on("mousemove.zoom",f,true).on("mouseup.zoom",p,true),s=pointer(n,i),l=n.clientX,c=n.clientY;dragDisable(n.view);nopropagation(n);o.mouse=[s,this.__zoom.invert(s)];interrupt(this);o.start();function f(t){noevent(t);if(!o.moved){var n=t.clientX-l,r=t.clientY-c;o.moved=n*n+r*r>d}o.event(t).zoom("mouse",e(g(o.that.__zoom,o.mouse[0]=pointer(t,i),o.mouse[1]),o.extent,u))}function p(t){a.on("mousemove.zoom mouseup.zoom",null);dragEnable(t.view,o.moved);noevent(t);o.event(t).end()}}function M(r,...i){if(!t.apply(this,arguments))return;var o=this.__zoom,s=pointer(r.changedTouches?r.changedTouches[0]:r,this),l=o.invert(s),c=o.k*(r.shiftKey?.5:2),f=e(g(m(o,c),s,l),n.apply(this,i),u);noevent(r);if(a>0)select(this).transition().duration(a).call(A,f,s,r);else select(this).call(_.transform,f,s,r)}function E(n,...e){if(!t.apply(this,arguments))return;var r=n.touches,i=r.length,o=b(this,e,n.changedTouches.length===i).event(n),u,a,s,l;nopropagation(n);for(a=0;a0?O:I)(u)};var k=function(u){if(u==undefined){throw TypeError("Can't call method on "+u)}return u};var V=function(u){return function(D,e){var r=String(k(D));var t=j(e);var n=r.length;var F,C;if(t<0||t>=n){return u?"":undefined}F=r.charCodeAt(t);return F<55296||F>56319||t+1===n||(C=r.charCodeAt(t+1))<56320||C>57343?u?r.charAt(t):F:u?r.slice(t,t+2):(F-55296<<10)+(C-56320)+65536}};var M=V(false);_(_.P,"String",{codePointAt:function u(D){return M(this,D)}});var J=e.String.codePointAt;var L=Math.max;var T=Math.min;var z=function(u,D){u=j(u);return u<0?L(u+D,0):T(u,D)};var H=String.fromCharCode;var $=String.fromCodePoint;_(_.S+_.F*(!!$&&$.length!=1),"String",{fromCodePoint:function u(D){var e=arguments;var r=[];var t=arguments.length;var n=0;var F;while(t>n){F=+e[n++];if(z(F,1114111)!==F){throw RangeError(F+" is not a valid code point")}r.push(F<65536?H(F):H(((F-=65536)>>10)+55296,F%1024+56320))}return r.join("")}});var R=e.String.fromCodePoint;var G=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;var U=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;var Z=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/;var q={Space_Separator:G,ID_Start:U,ID_Continue:Z};var W={isSpaceSeparator:function u(D){return typeof D==="string"&&q.Space_Separator.test(D)},isIdStartChar:function u(D){return typeof D==="string"&&(D>="a"&&D<="z"||D>="A"&&D<="Z"||D==="$"||D==="_"||q.ID_Start.test(D))},isIdContinueChar:function u(D){return typeof D==="string"&&(D>="a"&&D<="z"||D>="A"&&D<="Z"||D>="0"&&D<="9"||D==="$"||D==="_"||D==="‌"||D==="‍"||q.ID_Continue.test(D))},isDigit:function u(D){return typeof D==="string"&&/[0-9]/.test(D)},isHexDigit:function u(D){return typeof D==="string"&&/[0-9A-Fa-f]/.test(D)}};var X;var K;var Q;var Y;var uu;var Du;var eu;var ru;var tu;var nu=function u(D,e){X=String(D);K="start";Q=[];Y=0;uu=1;Du=0;eu=undefined;ru=undefined;tu=undefined;do{eu=ou();hu[K]()}while(eu.type!=="eof");if(typeof e==="function"){return Fu({"":tu},"",e)}return tu};function Fu(u,D,e){var r=u[D];if(r!=null&&typeof r==="object"){if(Array.isArray(r)){for(var t=0;t0){var e=cu();if(!W.isHexDigit(e)){throw yu(fu())}u+=fu()}return String.fromCodePoint(parseInt(u,16))}var hu={start:function u(){if(eu.type==="eof"){throw wu()}gu()},beforePropertyName:function u(){switch(eu.type){case"identifier":case"string":ru=eu.value;K="afterPropertyName";return;case"punctuator":mu();return;case"eof":throw wu()}},afterPropertyName:function u(){if(eu.type==="eof"){throw wu()}K="beforePropertyValue"},beforePropertyValue:function u(){if(eu.type==="eof"){throw wu()}gu()},beforeArrayValue:function u(){if(eu.type==="eof"){throw wu()}if(eu.type==="punctuator"&&eu.value==="]"){mu();return}gu()},afterPropertyValue:function u(){if(eu.type==="eof"){throw wu()}switch(eu.value){case",":K="beforePropertyName";return;case"}":mu()}},afterArrayValue:function u(){if(eu.type==="eof"){throw wu()}switch(eu.value){case",":K="beforeArrayValue";return;case"]":mu()}},end:function u(){}};function gu(){var u;switch(eu.type){case"punctuator":switch(eu.value){case"{":u={};break;case"[":u=[];break}break;case"null":case"boolean":case"numeric":case"string":u=eu.value;break}if(tu===undefined){tu=u}else{var D=Q[Q.length-1];if(Array.isArray(D)){D.push(u)}else{Object.defineProperty(D,ru,{value:u,writable:true,enumerable:true,configurable:true})}}if(u!==null&&typeof u==="object"){Q.push(u);if(Array.isArray(u)){K="beforeArrayValue"}else{K="beforePropertyName"}}else{var e=Q[Q.length-1];if(e==null){K="end"}else if(Array.isArray(e)){K="afterArrayValue"}else{K="afterPropertyValue"}}}function mu(){Q.pop();var u=Q[Q.length-1];if(u==null){K="end"}else if(Array.isArray(u)){K="afterArrayValue"}else{K="afterPropertyValue"}}function yu(u){if(u===undefined){return Nu("JSON5: invalid end of input at "+uu+":"+Du)}return Nu("JSON5: invalid character '"+xu(u)+"' at "+uu+":"+Du)}function wu(){return Nu("JSON5: invalid end of input at "+uu+":"+Du)}function bu(){Du-=5;return Nu("JSON5: invalid identifier character at "+uu+":"+Du)}function Su(u){console.warn("JSON5: '"+xu(u)+"' in strings is not valid ECMAScript; consider escaping")}function xu(u){var D={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(D[u]){return D[u]}if(u<" "){var e=u.charCodeAt(0).toString(16);return"\\x"+("00"+e).substring(e.length)}return u}function Nu(u){var D=new SyntaxError(u);D.lineNumber=uu;D.columnNumber=Du;return D}var Pu=function u(D,e,r){var t=[];var n="";var F;var C;var A="";var i;if(e!=null&&typeof e==="object"&&!Array.isArray(e)){r=e.space;i=e.quote;e=e.replacer}if(typeof e==="function"){C=e}else if(Array.isArray(e)){F=[];for(var a=0,E=e;a0){r=Math.min(10,Math.floor(r));A=" ".substr(0,r)}}else if(typeof r==="string"){A=r.substr(0,10)}return f("",{"":D});function f(u,D){var e=D[u];if(e!=null){if(typeof e.toJSON5==="function"){e=e.toJSON5(u)}else if(typeof e.toJSON==="function"){e=e.toJSON(u)}}if(C){e=C.call(D,u,e)}if(e instanceof Number){e=Number(e)}else if(e instanceof String){e=String(e)}else if(e instanceof Boolean){e=e.valueOf()}switch(e){case null:return"null";case true:return"true";case false:return"false"}if(typeof e==="string"){return B(e,false)}if(typeof e==="number"){return String(e)}if(typeof e==="object"){return Array.isArray(e)?v(e):s(e)}return undefined}function B(u){var D={"'":.1,'"':.2};var e={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};var r="";for(var t=0;t=0){throw TypeError("Converting circular structure to JSON5")}t.push(u);var D=n;n=n+A;var e=F||Object.keys(u);var r=[];for(var C=0,i=e;C=0){throw TypeError("Converting circular structure to JSON5")}t.push(u);var D=n;n=n+A;var e=[];for(var r=0;r{s.d(t,{KO:()=>us});var i=s(66575);var n=s.n(i);var r=s(27421);var l=s(65606);class a{constructor(e){this.start=e}}class o extends a{constructor(e,t,s,i,n,r,l,a,o,u,h,f,c,p,d){super(e);this.rules=t;this.topRules=s;this.tokens=i;this.localTokens=n;this.context=r;this.externalTokens=l;this.externalSpecializers=a;this.externalPropSources=o;this.precedences=u;this.mainSkip=h;this.scopedSkip=f;this.dialects=c;this.externalProps=p;this.autoDelim=d}toString(){return Object.values(this.rules).join("\n")}}class u extends a{constructor(e,t,s,i,n){super(e);this.id=t;this.props=s;this.params=i;this.expr=n}toString(){return this.id.name+(this.params.length?`<${this.params.join()}>`:"")+" -> "+this.expr}}class h extends a{constructor(e,t){super(e);this.items=t}}class f extends a{constructor(e,t){super(e);this.items=t}}class c extends a{constructor(e,t,s){super(e);this.a=t;this.b=s}}class p extends a{constructor(e,t,s,i,n){super(e);this.precedences=t;this.conflicts=s;this.rules=i;this.literals=n}}class d extends a{constructor(e,t,s,i){super(e);this.precedences=t;this.rules=s;this.fallback=i}}class m extends a{constructor(e,t,s){super(e);this.literal=t;this.props=s}}class g extends a{constructor(e,t,s){super(e);this.id=t;this.source=s}}class k extends a{constructor(e,t,s,i){super(e);this.id=t;this.source=s;this.tokens=i}}class x extends a{constructor(e,t,s,i,n,r){super(e);this.type=t;this.token=s;this.id=i;this.source=n;this.tokens=r}}class b extends a{constructor(e,t,s){super(e);this.id=t;this.source=s}}class w extends a{constructor(e,t,s,i){super(e);this.id=t;this.externalID=s;this.source=i}}class y extends a{constructor(e,t){super(e);this.name=t}toString(){return this.name}}class $ extends a{walk(e){return e(this)}eq(e){return false}}$.prototype.prec=10;class v extends ${constructor(e,t,s){super(e);this.id=t;this.args=s}toString(){return this.id.name+(this.args.length?`<${this.args.join()}>`:"")}eq(e){return this.id.name==e.id.name&&G(this.args,e.args)}walk(e){let t=C(this.args,e);return e(t==this.args?this:new v(this.start,this.id,t))}}class S extends ${constructor(e,t,s,i,n){super(e);this.type=t;this.props=s;this.token=i;this.content=n}toString(){return`@${this.type}[${this.props.join(",")}]<${this.token}, ${this.content}>`}eq(e){return this.type==e.type&&E.eqProps(this.props,e.props)&&D(this.token,e.token)&&D(this.content,e.content)}walk(e){let t=this.token.walk(e),s=this.content.walk(e);return e(t==this.token&&s==this.content?this:new S(this.start,this.type,this.props,t,s))}}class T extends ${constructor(e,t){super(e);this.rule=t}toString(){let e=this.rule;return`${e.id}${e.props.length?`[${e.props.join(",")}]`:""} { ${e.expr} }`}eq(e){let t=this.rule,s=e.rule;return D(t.expr,s.expr)&&t.id.name==s.id.name&&E.eqProps(t.props,s.props)}walk(e){let t=this.rule,s=t.expr.walk(e);return e(s==t.expr?this:new T(this.start,new u(t.start,t.id,t.props,[],s)))}}class O extends ${constructor(e,t){super(e);this.exprs=t}toString(){return this.exprs.map((e=>_(e,this))).join(" | ")}eq(e){return G(this.exprs,e.exprs)}walk(e){let t=C(this.exprs,e);return e(t==this.exprs?this:new O(this.start,t))}}O.prototype.prec=1;class R extends ${constructor(e,t,s,i=false){super(e);this.exprs=t;this.markers=s;this.empty=i}toString(){return this.empty?"()":this.exprs.map((e=>_(e,this))).join(" ")}eq(e){return G(this.exprs,e.exprs)&&this.markers.every(((t,s)=>{let i=e.markers[s];return t.length==i.length&&t.every(((e,t)=>e.eq(i[t])))}))}walk(e){let t=C(this.exprs,e);return e(t==this.exprs?this:new R(this.start,t,this.markers,this.empty&&!t.length))}}R.prototype.prec=2;class P extends a{constructor(e,t,s){super(e);this.id=t;this.type=s}toString(){return(this.type=="ambig"?"~":"!")+this.id.name}eq(e){return this.id.name==e.id.name&&this.type==e.type}}class j extends ${constructor(e,t,s){super(e);this.expr=t;this.kind=s}toString(){return _(this.expr,this)+this.kind}eq(e){return D(this.expr,e.expr)&&this.kind==e.kind}walk(e){let t=this.expr.walk(e);return e(t==this.expr?this:new j(this.start,t,this.kind))}}j.prototype.prec=3;class N extends ${constructor(e,t){super(e);this.value=t}toString(){return JSON.stringify(this.value)}eq(e){return this.value==e.value}}class A extends ${constructor(e,t,s){super(e);this.ranges=t;this.inverted=s}toString(){return`[${this.inverted?"^":""}${this.ranges.map((([e,t])=>String.fromCodePoint(e)+(t==e+1?"":"-"+String.fromCodePoint(t))))}]`}eq(e){return this.inverted==e.inverted&&this.ranges.length==e.ranges.length&&this.ranges.every((([t,s],i)=>{let[n,r]=e.ranges[i];return t==n&&s==r}))}}class z extends ${constructor(e){super(e)}toString(){return"_"}eq(){return true}}function C(e,t){let s=null;for(let i=0;iD(e,t[s])))}class E extends a{constructor(e,t,s,i){super(e);this.at=t;this.name=s;this.value=i}eq(e){return this.name==e.name&&this.value.length==e.value.length&&this.value.every(((t,s)=>t.value==e.value[s].value&&t.name==e.value[s].name))}toString(){let e=(this.at?"@":"")+this.name;if(this.value.length){e+="=";for(let{name:t,value:s}of this.value)e+=t?`{${t}}`:/[^\w-]/.test(s)?JSON.stringify(s):s}return e}static eqProps(e,t){return e.length==t.length&&e.every(((e,s)=>e.eq(t[s])))}}class J extends a{constructor(e,t,s){super(e);this.value=t;this.name=s}}function _(e,t){return e.prec0}get eof(){return(this.flags&4)>0}get error(){return"error"in this.props}get top(){return(this.flags&2)>0}get interesting(){return this.flags>0||this.nodeName!=null}get repeated(){return(this.flags&16)>0}set preserve(e){this.flags=e?this.flags|8:this.flags&~8}get preserve(){return(this.flags&8)>0}set inline(e){this.flags=e?this.flags|32:this.flags&~32}get inline(){return(this.flags&32)>0}cmp(e){return this.hash-e.hash}}class L{constructor(){this.terms=[];this.names=Object.create(null);this.tops=[];this.eof=this.term("␄",null,1|4);this.error=this.term("⚠","⚠",8)}term(e,t,s=0,i={}){let n=new F(e,s,t,i);this.terms.push(n);this.names[e]=n;return n}makeTop(e,t){const s=this.term("@top",e,2,t);this.tops.push(s);return s}makeTerminal(e,t,s={}){return this.term(e,t,1,s)}makeNonTerminal(e,t,s={}){return this.term(e,t,0,s)}makeRepeat(e){return this.term(e,null,16)}uniqueName(e){for(let t=0;;t++){let s=t?`${e}-${t}`:e;if(!this.names[s])return s}}finish(e){for(let r of e)r.name.rules.push(r);this.terms=this.terms.filter((t=>t.terminal||t.preserve||e.some((e=>e.name==t||e.parts.includes(t)))));let t={};let s=[this.error];this.error.id=0;let i=0+1;for(let r of this.terms)if(r.id<0&&r.nodeType&&!r.repeated){r.id=i++;s.push(r)}let n=i;for(let r of this.terms)if(r.repeated){r.id=i++;s.push(r)}this.eof.id=i++;for(let r of this.terms){if(r.id<0)r.id=i++;if(r.name)t[r.id]=r.name}if(i>=65534)throw new B("Too many terms");return{nodeTypes:s,names:t,minRepeatTerm:n,maxTerm:i-1}}}function W(e,t,s){if(e.length!=t.length)return e.length-t.length;for(let i=0;iet?1:0))||this.cut-e.cut}}Y.none=new Y(0);function Z(e,t){if(e.length==0||e==t)return t;if(t.length==0)return e;let s=e.slice();for(let i of t)if(!e.includes(i))s.push(i);return s.sort()}let H=0;class Q{constructor(e,t,s,i){this.name=e;this.parts=t;this.conflicts=s;this.skip=i;this.id=H++}cmp(e){return this.id-e.id}cmpNoName(e){return this.parts.length-e.parts.length||this.skip.hash-e.skip.hash||this.parts.reduce(((t,s,i)=>t||s.cmp(e.parts[i])),0)||W(this.conflicts,e.conflicts,((e,t)=>e.cmp(t)))}toString(){return this.name+" -> "+this.parts.join(" ")}get isRepeatWrap(){return this.name.repeated&&this.parts.length==2&&this.parts[0]==this.name}sameReduce(e){return this.name==e.name&&this.parts.length==e.parts.length&&this.isRepeatWrap==e.isRepeatWrap}}const V=65535;class X{constructor(e,t,s){this.from=e;this.to=t;this.target=s}toString(){return`-> ${this.target.id}[label=${JSON.stringify(this.from<0?"ε":ee(this.from)+(this.to>this.from+1?"-"+ee(this.to-1):""))}]`}}function ee(e){return e>V?"∞":e==10?"\\n":e==13?"\\r":e<32||e>=55296&&e<57343?"\\u{"+e.toString(16)+"}":String.fromCharCode(e)}function te(e,t){let s=Object.create(null);let i=Object.create(null);for(let n of e){let e=oe(n.accepting);let t=i[e]||(i[e]=[]);t.push(n);s[n.id]=t}for(;;){let i=false,n=Object.create(null);for(let t of e){if(n[t.id])continue;let e=s[t.id];if(e.length==1){n[e[0].id]=e;continue}let r=[];e:for(let t of e){for(let e of r){if(se(t,e[0],s)){e.push(t);continue e}}r.push([t])}if(r.length>1)i=true;for(let t of r)for(let e of t)n[e.id]=t}if(!i)return ie(e,t,s);s=n}}function se(e,t,s){if(e.edges.length!=t.edges.length)return false;for(let i=0;ie.id-t.id)));return te(Object.values(t),i);function n(i){let r=t[oe(i)]=new e(i.reduce(((e,t)=>Z(e,t.accepting)),[]),s++);let l=[];for(let e of i)for(let t of e.edges){if(t.from>=0)l.push(t)}let a=fe(l);for(let e of a){let s=e.targets.sort(((e,t)=>e.id-t.id));r.edge(e.from,e.to,t[oe(s)]||n(s))}return r}}closure(){let e=[],t=Object.create(null);function s(i){if(t[i.id])return;t[i.id]=true;if(i.edges.some((e=>e.from>=0))||i.accepting.length>0&&!i.edges.some((e=>ue(i.accepting,e.target.accepting))))e.push(i);for(let e of i.edges)if(e.from<0)s(e.target)}s(this);return e}findConflicts(e){let t=[],s=this.cycleTerms();function i(e,s,i,n,r){if(e.idt.a==e&&t.b==s));if(!l)t.push(new le(e,s,i,ae(n),r&&ae(r)));else if(l.soft!=i)l.soft=0}this.reachable(((t,n)=>{if(t.accepting.length==0)return;for(let e=0;e{if(r!=t)for(let a of r.accepting){let r=s.includes(a);for(let o of t.accepting)if(a!=o)i(a,o,r||s.includes(o)||!e(a,o)?0:1,n,n.concat(l))}}))}));return t}cycleTerms(){let e=[];this.reachable((t=>{for(let{target:s}of t.edges)e.push(t,s)}));let t=new Map;let s=[];for(let n=0;n{if(t.accepting.length)e+=` ${t.id} [label=${JSON.stringify(t.accepting.join())}];\n`;for(let s of t.edges)e+=` ${t.id} ${s};\n`}));return e+"}"}toArray(e,t){let s=[];let i=[];this.reachable((n=>{let r=i.length;let l=r+3+n.accepting.length*2;s[n.id]=r;i.push(n.stateMask(e),l,n.edges.length);n.accepting.sort(((e,s)=>t.indexOf(e.id)-t.indexOf(s.id)));for(let t of n.accepting)i.push(t.id,e[t.id]||65535);for(let e of n.edges)i.push(e.from,e.to,-e.target.id-1)}));for(let n=0;nMath.pow(2,16))throw new B("Tokenizer tables too big to represent with 16-bit offsets.");return Uint16Array.from(i)}stateMask(e){let t=0;this.reachable((s=>{for(let i of s.accepting)t|=e[i.id]||65535}));return t}};let le=class e{constructor(e,t,s,i,n){this.a=e;this.b=t;this.soft=s;this.exampleA=i;this.exampleB=n}};function ae(e){let t="";for(let s=0;se-t));for(let n=1;ni&&t.frome.from==65535&&e.to==65535));if(i.length){let e=[];for(let t of i)for(let s of t.target.closure())if(!e.includes(s))e.push(s);if(e.length)s.push(new he(65535,65535,e))}return s}let ce=/[\w_-]+/gy;try{ce=/[\p{Alphabetic}\d_-]+/guy}catch(ds){}const pe=[];class de{constructor(e,t=null){this.string=e;this.fileName=t;this.type="sof";this.value=null;this.start=0;this.end=0;this.next()}lineInfo(e){for(let t=1,s=0;;){let i=this.string.indexOf("\n",s);if(i>-1&&i-1){let e=this.lineInfo(t);s+=(s?" ":"")+e.line+":"+e.ch}return s?e+` (${s})`:e}raise(e,t=-1){throw new B(this.message(e,t))}match(e,t){let s=t.exec(this.string.slice(e));return s?e+s[0].length:-1}next(){let e=this.match(this.end,/^(\s|\/\/.*|\/\*[^]*?\*\/)*/);if(e==this.string.length)return this.set("eof",null,e,e);let t=this.string[e];if(t=='"'){let t=this.match(e+1,/^(\\.|[^"\\])*"/);if(t==-1)this.raise("Unterminated string literal",e);return this.set("string",Je(this.string.slice(e+1,t-1)),e,t)}else if(t=="'"){let t=this.match(e+1,/^(\\.|[^'\\])*'/);if(t==-1)this.raise("Unterminated string literal",e);return this.set("string",Je(this.string.slice(e+1,t-1)),e,t)}else if(t=="@"){ce.lastIndex=e+1;let t=ce.exec(this.string);if(!t)return this.raise("@ without a name",e);return this.set("at",t[0],e,e+1+t[0].length)}else if((t=="$"||t=="!")&&this.string[e+1]=="["){let t=this.match(e+2,/^(?:\\.|[^\]\\])*\]/);if(t==-1)this.raise("Unterminated character set",e);return this.set("set",this.string.slice(e+2,t-1),e,t)}else if(/[\[\]()!~+*?{}<>\.,|:$=]/.test(t)){return this.set(t,null,e,e+1)}else{ce.lastIndex=e;let s=ce.exec(this.string);if(!s)return this.raise("Unexpected character "+JSON.stringify(t),e);return this.set("id",s[0],e,e+s[0].length)}}set(e,t,s,i){this.type=e;this.value=t;this.start=s;this.end=i}eat(e,t=null){if(this.type==e&&(t==null||this.value===t)){this.next();return true}else{return false}}unexpected(){return this.raise(`Unexpected token '${this.string.slice(this.start,this.end)}'`,this.start)}expect(e,t=null){let s=this.value;if(this.type!=e||!(t==null||s===t))this.unexpected();this.next();return s}parse(){return me(this)}}function me(e){let t=e.start;let s=[];let i=null;let n=null;let r=[];let l=null;let a=[];let u=[];let h=null;let f=[];let c=[];let p=[];let d=[];let m=[];let k=false;let x=false;while(e.type!="eof"){let t=e.start;if(e.eat("at","top")){if(e.type!="id")e.raise(`Top rules must have a name`,e.start);m.push(ge(e,Pe(e)));k=true}else if(e.type=="at"&&e.value=="tokens"){if(n)e.raise(`Multiple @tokens declaractions`,e.start);else n=Ne(e)}else if(e.eat("at","local")){e.expect("id","tokens");r.push(Ae(e,t))}else if(e.eat("at","context")){if(h)e.raise(`Multiple @context declarations`,t);let s=Pe(e);e.expect("id","from");let i=e.expect("string");h=new g(t,s,i)}else if(e.eat("at","external")){if(e.eat("id","tokens"))f.push(qe(e,t));else if(e.eat("id","prop"))p.push(Ee(e,t));else if(e.eat("id","extend"))c.push(De(e,"extend",t));else if(e.eat("id","specialize"))c.push(De(e,"specialize",t));else if(e.eat("id","propSource"))d.push(Ge(e,t));else e.unexpected()}else if(e.eat("at","dialects")){e.expect("{");for(let t=true;!e.eat("}");t=false){if(!t)e.eat(",");u.push(Pe(e))}}else if(e.type=="at"&&e.value=="precedence"){if(i)e.raise(`Multiple precedence declarations`,e.start);i=je(e)}else if(e.eat("at","detectDelim")){x=true}else if(e.eat("at","skip")){let t=be(e);if(e.type=="{"){e.next();let s=[],i=[];while(!e.eat("}")){if(e.eat("at","top")){i.push(ge(e,Pe(e)));k=true}else{s.push(ge(e))}}a.push({expr:t,topRules:i,rules:s})}else{if(l)e.raise(`Multiple top-level skip declarations`,e.start);l=t}}else{s.push(ge(e))}}if(!k)return e.raise(`Missing @top declaration`);return new o(t,s,m,n,r,h,f,c,d,i,l,a,u,p,x)}function ge(e,t){let s=t?t.start:e.start;let i=t||Pe(e);let n=ke(e);let r=[];if(e.eat("<"))while(!e.eat(">")){if(r.length)e.expect(",");r.push(Pe(e))}let l=be(e);return new u(s,i,n,r,l)}function ke(e){if(e.type!="[")return pe;let t=[];e.expect("[");while(!e.eat("]")){if(t.length)e.expect(",");t.push(xe(e))}return t}function xe(e){let t=e.start,s=[],i=e.value,n=e.type=="at";if(!e.eat("at")&&!e.eat("id"))e.unexpected();if(e.eat("="))for(;;){if(e.type=="string"||e.type=="id"){s.push(new J(e.start,e.value,null));e.next()}else if(e.eat(".")){s.push(new J(e.start,".",null))}else if(e.eat("{")){s.push(new J(e.start,null,e.expect("id")));e.expect("}")}else{break}}return new E(t,n,i,s)}function be(e){e.expect("{");let t=Re(e);e.expect("}");return t}const we="﷚";function ye(e){let t=e.start;if(e.eat("(")){if(e.eat(")"))return new R(t,pe,[pe,pe]);let s=Re(e);e.expect(")");return s}else if(e.type=="string"){let s=e.value;e.next();if(s.length==0)return new R(t,pe,[pe,pe]);return new N(t,s)}else if(e.eat("id","_")){return new z(t)}else if(e.type=="set"){let s=e.value,i=e.string[e.start]=="!";let n=Je(s.replace(/\\.|-|"/g,(e=>e=="-"?we:e=='"'?'\\"':e)));let r=[];for(let t=0;t65535?2:1;if(t65535?3:2;if(ie[0]-t[0])),i)}else if(e.type=="at"&&(e.value=="specialize"||e.value=="extend")){let{start:t,value:s}=e;e.next();let i=ke(e);e.expect("<");let n=Re(e),r;if(e.eat(",")){r=Re(e)}else if(n instanceof N){r=n}else{e.raise(`@${s} requires two arguments when its first argument isn't a literal string`)}e.expect(">");return new S(t,s,i,n,r)}else if(e.type=="at"&&I.hasOwnProperty(e.value)){let t=new q(e.start,e.value);e.next();return t}else if(e.type=="["){let s=ge(e,new y(t,"_anon"));if(s.params.length)e.raise(`Inline rules can't have parameters`,s.start);return new T(t,s)}else{let s=Pe(e);if(e.type=="["||e.type=="{"){let i=ge(e,s);if(i.params.length)e.raise(`Inline rules can't have parameters`,i.start);return new T(t,i)}else{if(e.eat(".")&&s.name=="std"&&I.hasOwnProperty(e.value)){let s=new q(t,e.value);e.next();return s}return new v(t,s,$e(e))}}}function $e(e){let t=[];if(e.eat("<"))while(!e.eat(">")){if(t.length)e.expect(",");t.push(Re(e))}return t}function ve(e,t,s,i){if(!t.every((([e,t])=>t<=s||e>=i)))e.raise("Overlapping character range",e.start);t.push([s,i])}function Se(e){let t=e.start;let s=ye(e);for(;;){let i=e.type;if(e.eat("*")||e.eat("?")||e.eat("+"))s=new j(t,s,i);else return s}}function Te(e){return e.type=="}"||e.type==")"||e.type=="|"||e.type=="/"||e.type=="/\\"||e.type=="{"||e.type==","||e.type==">"}function Oe(e){let t=e.start,s=[],i=[pe];do{for(;;){let t=e.start,s;if(e.eat("~"))s="ambig";else if(e.eat("!"))s="prec";else break;i[i.length-1]=i[i.length-1].concat(new P(t,Pe(e),s))}if(Te(e))break;s.push(Se(e));i.push(pe)}while(!Te(e));if(s.length==1&&i.every((e=>e.length==0)))return s[0];return new R(t,s,i,!s.length)}function Re(e){let t=e.start,s=Oe(e);if(!e.eat("|"))return s;let i=[s];do{i.push(Oe(e))}while(e.eat("|"));let n=i.find((e=>e instanceof R&&e.empty));if(n)e.raise("Empty expression in choice operator. If this is intentional, use () to make it explicit.",n.start);return new O(t,i)}function Pe(e){if(e.type!="id")e.unexpected();let t=e.start,s=e.value;e.next();return new y(t,s)}function je(e){let t=e.start;e.next();e.expect("{");let s=[];while(!e.eat("}")){if(s.length)e.eat(",");s.push({id:Pe(e),type:e.eat("at","left")?"left":e.eat("at","right")?"right":e.eat("at","cut")?"cut":null})}return new h(t,s)}function Ne(e){let t=e.start;e.next();e.expect("{");let s=[];let i=[];let n=[];let r=[];while(!e.eat("}")){if(e.type=="at"&&e.value=="precedence"){n.push(ze(e))}else if(e.type=="at"&&e.value=="conflict"){r.push(Ce(e))}else if(e.type=="string"){i.push(new m(e.start,e.expect("string"),ke(e)))}else{s.push(ge(e))}}return new p(t,n,r,s,i)}function Ae(e,t){e.expect("{");let s=[];let i=[];let n=null;while(!e.eat("}")){if(e.type=="at"&&e.value=="precedence"){i.push(ze(e))}else if(e.eat("at","else")&&!n){n={id:Pe(e),props:ke(e)}}else{s.push(ge(e))}}return new d(t,i,s,n)}function ze(e){let t=e.start;e.next();e.expect("{");let s=[];while(!e.eat("}")){if(s.length)e.eat(",");let t=ye(e);if(t instanceof N||t instanceof v)s.push(t);else e.raise(`Invalid expression in token precedences`,t.start)}return new f(t,s)}function Ce(e){let t=e.start;e.next();e.expect("{");let s=ye(e);if(!(s instanceof N||s instanceof v))e.raise(`Invalid expression in token conflict`,s.start);e.eat(",");let i=ye(e);if(!(i instanceof N||i instanceof v))e.raise(`Invalid expression in token conflict`,i.start);e.expect("}");return new c(t,s,i)}function Ie(e){let t=[];e.expect("{");while(!e.eat("}")){if(t.length)e.eat(",");let s=Pe(e);let i=ke(e);t.push({id:s,props:i})}return t}function qe(e,t){let s=Pe(e);e.expect("id","from");let i=e.expect("string");return new k(t,s,i,Ie(e))}function De(e,t,s){let i=be(e);let n=Pe(e);e.expect("id","from");let r=e.expect("string");return new x(s,t,i,n,r,Ie(e))}function Ge(e,t){let s=Pe(e);e.expect("id","from");return new b(t,s,e.expect("string"))}function Ee(e,t){let s=Pe(e);let i=e.eat("id","as")?Pe(e):s;e.expect("id","from");let n=e.expect("string");return new w(t,i,s,n)}function Je(e){let t=/\\(?:u\{([\da-f]+)\}|u([\da-f]{4})|x([\da-f]{2})|([ntbrf0])|(.))|[^]/giy;let s="",i;while(i=t.exec(e)){let[e,t,n,r,l,a]=i;if(t||n||r)s+=String.fromCodePoint(parseInt(t||n||r,16));else if(l)s+=l=="n"?"\n":l=="t"?"\t":l=="0"?"\0":l=="r"?"\r":l=="f"?"\f":"\b";else if(a)s+=a;else s+=e}return s}function _e(e,t){return(e<<5)+e+t}function Be(e,t){for(let s=0;s{let s=Date.now();let i=t();console.log(`${e} (${((Date.now()-s)/1e3).toFixed(2)}s)`);return i}:(e,t)=>t();class Le{constructor(e,t,s,i,n,r){this.rule=e;this.pos=t;this.ahead=s;this.ambigAhead=i;this.skipAhead=n;this.via=r;this.hash=0}finish(){let e=_e(_e(this.rule.id,this.pos),this.skipAhead.hash);for(let t of this.ahead)e=_e(e,t.hash);for(let t of this.ambigAhead)e=Be(e,t);this.hash=e;return this}get next(){return this.pose.cmp(t)))||W(this.ambigAhead,e.ambigAhead,Ye)}eqSimple(e){return e.rule==this.rule&&e.pos==this.pos}toString(){let e=this.rule.parts.map((e=>e.name));e.splice(this.pos,0,"·");return`${this.rule.name} -> ${e.join(" ")}`}eq(e){return this==e||this.hash==e.hash&&this.rule==e.rule&&this.pos==e.pos&&this.skipAhead==e.skipAhead&&Qe(this.ahead,e.ahead)&&Qe(this.ambigAhead,e.ambigAhead)}trail(e=60){let t=[];for(let i=this;i;i=i.via){for(let e=i.pos-1;e>=0;e--)t.push(i.rule.parts[e])}let s=t.reverse().join(" ");if(s.length>e)s=s.slice(s.length-e).replace(/.*? /,"… ");return s}conflicts(e=this.pos){let t=this.rule.conflicts[e];if(e==this.rule.parts.length&&this.ambigAhead.length)t=t.join(new Y(0,this.ambigAhead));return t}static addOrigins(e,t){let s=e.slice();for(let i=0;it?1:0}function Ze(e,t,s,i){let n=[];for(let r=t+1;re.term+"="+e)).join(",")+(this.goto.length?" | "+this.goto.map((e=>e.term+"="+e)).join(","):"");return this.id+": "+this.set.filter((e=>e.pos>0)).join()+(this.defaultReduce?`\n always ${this.defaultReduce.name}(${this.defaultReduce.parts.length})`:e.length?"\n "+e:"")}addActionInner(e,t){e:for(let s=0;s0){this.actions.splice(s,1);this.actionPositions.splice(s,1);s--;continue e}else if(o<0){return null}else if(l.ambigGroups.some((e=>a.ambigGroups.includes(e)))){continue e}else{return i}}}this.actions.push(e);this.actionPositions.push(t);return null}addAction(e,t,s){let i=this.addActionInner(e,t);if(i){let n=this.actionPositions[this.actions.indexOf(i)][0];let r=[t[0].rule.name,n.rule.name];if(s.conflicts.some((e=>e.rules.some((e=>r.includes(e))))))return;let l;if(i instanceof Ve)l=`shift/reduce conflict between\n ${n}\nand\n ${t[0].rule}`;else l=`reduce/reduce conflict between\n ${n.rule}\nand\n ${t[0].rule}`;l+=`\nWith input:\n ${t[0].trail(70)} · ${e.term} …`;if(i instanceof Ve)l+=ut(t[0],i.term,s.first);l+=ot(n,t[0]);s.conflicts.push(new at(l,r))}}getGoto(e){return this.goto.find((t=>t.term==e))}hasSet(e){return He(this.set,e)}actionsByTerm(){let e=this._actionsByTerm;if(!e){this._actionsByTerm=e=Object.create(null);for(let t of this.actions)(e[t.term.id]||(e[t.term.id]=[])).push(t)}return e}finish(){if(this.actions.length){let e=this.actions[0];if(e instanceof Xe){let{rule:t}=e;if(this.actions.every((e=>e instanceof Xe&&e.rule.sameReduce(t))))this.defaultReduce=t}}this.actions.sort(((e,t)=>e.cmp(t)));this.goto.sort(((e,t)=>e.cmp(t)))}eq(e){let t=this.defaultReduce,s=e.defaultReduce;if(t||s)return t&&s?t.sameReduce(s):false;return this.skip==e.skip&&this.tokenGroup==e.tokenGroup&&He(this.actions,e.actions)&&He(this.goto,e.goto)}}function it(e,t){let s=[],i=[];function n(t,n,r,l,a){for(let o of t.rules){let t=s.find((e=>e.rule==o));if(!t){let i=e.find((e=>e.pos==0&&e.rule==o));t=i?new Le(o,0,i.ahead.slice(),i.ambigAhead,i.skipAhead,i.via):new Le(o,0,[],xt,l,a);s.push(t)}if(t.skipAhead!=l)throw new B("Inconsistent skip sets after "+a.trail());t.ambigAhead=Z(t.ambigAhead,r);for(let e of n)if(!t.ahead.includes(e)){t.ahead.push(e);if(t.rule.parts.length&&!t.rule.parts[0].terminal)nt(t,i)}}}for(let l of e){let e=l.next;if(e&&!e.terminal)n(e,Ze(l.rule,l.pos,l.ahead,t),l.conflicts(l.pos+1).ambigGroups,l.pos==l.rule.parts.length-1?l.skipAhead:l.rule.skip,l)}while(i.length){let e=i.pop();n(e.rule.parts[0],Ze(e.rule,0,e.ahead,t),Z(e.rule.conflicts[1].ambigGroups,e.rule.parts.length==1?e.ambigAhead:xt),e.rule.parts.length==1?e.skipAhead:e.rule.skip,e)}let r=e.slice();for(let l of s){l.ahead.sort(((e,t)=>e.hash-t.hash));l.finish();let t=e.findIndex((e=>e.pos==0&&e.rule==l.rule));if(t>-1)r[t]=l;else r.push(l)}return r.sort(((e,t)=>e.cmp(t)))}function nt(e,t){if(!t.includes(e))t.push(e)}function rt(e){let t=Object.create(null);for(let s of e.terms)if(!s.terminal)t[s.name]=[];for(;;){let s=false;for(let i of e.terms)if(!i.terminal)for(let e of i.rules){let n=t[i.name];let r=false,l=n.length;for(let s of e.parts){r=true;if(s.terminal){nt(s,n)}else{for(let e of t[s.name]){if(e==null)r=false;else nt(e,n)}}if(r)break}if(!r)nt(null,n);if(n.length>l)s=true}if(!s)return t}}class lt{constructor(e,t){this.set=e;this.state=t}}class at{constructor(e,t){this.error=e;this.rules=t}}function ot(e,t){if(e.eqSimple(t))return"";function s(e,t){let s=[];for(let i=t.via;!i.eqSimple(e);i=i.via)s.push(i);if(!s.length)return"";s.unshift(t);return s.reverse().map(((e,s)=>"\n"+" ".repeat(s+1)+(e==t?"":"via ")+e)).join("")}for(let i=e;i;i=i.via)for(let n=t;n;n=n.via){if(i.eqSimple(n))return"\nShared origin: "+i+s(i,e)+s(i,t)}return""}function ut(e,t,s){let i=e,n=[];for(;;){for(let e=i.pos-1;e>=0;e--)n.push(i.rule.parts[e]);if(!i.via)break;i=i.via}n.reverse();let r=new Set;function l(i,a,o){if(a==n.length&&o&&!i.next)return`\nThe reduction of ${e.rule.name} is allowed before ${t} because of this rule:\n ${o}`;for(let e;e=i.next;){if(anew Le(s,0,[e.eof],xt,t,null).finish())),u)}let o=new tt(s);for(let u=0;ue.advance()));if(i.terminal){let t=ft(r);let l=a(t);if(l)e.addAction(new Ve(i,l),n[s],o)}else{let t=a(r);if(t)e.goto.push(new Ve(i,t))}}let l=false;for(let s of r)for(let t of s.ahead){let i=e.actions.length;e.addAction(new Xe(t,s.rule),[s],o);if(e.actions.length==i)l=true}if(l)for(let i=0;ie.actions.some((e=>e.term==t&&e instanceof Ve)))))e.goto.splice(i--,1)}}if(o.conflicts.length)throw new B(o.conflicts.map((e=>e.error)).join("\n\n"));for(let u of i)u.finish();if(Me)console.log(`${i.length} states total.`);return i}function ft(e){let t=null,s=1;for(let i of e){let e=i.rule.conflicts[i.pos-1].cut;if(es){s=e;t=[]}t.push(i)}return t||e}function ct(e,t,s){for(let n of e.goto)for(let e of t.goto){if(n.term==e.term&&s[n.target.id]!=s[e.target.id])return false}let i=t.actionsByTerm();for(let n of e.actions){let t=i[n.term.id];if(t&&t.some((e=>!e.matches(n,s)))){if(t.length==1)return false;let i=e.actionsByTerm()[n.term.id];if(i.length!=t.length||i.some((e=>!t.some((t=>e.matches(t,s))))))return false}}return true}function pt(e,t){let s=[];for(let i of e){let e=t[i.id];if(!s[e]){s[e]=new st(e,i.set,0,i.skip,i.hash,i.startRule);s[e].tokenGroup=i.tokenGroup;s[e].defaultReduce=i.defaultReduce}}for(let i of e){let e=t[i.id],n=s[e];n.flags|=i.flags;for(let r=0;rt.eq(e)))){n.actions.push(e);n.actionPositions.push(i.actionPositions[r])}}for(let r of i.goto){let e=r.map(t,s);if(!n.goto.some((t=>t.eq(e))))n.goto.push(e)}}return s}class dt{constructor(e,t){this.origin=e;this.members=[t]}}function mt(e,t){if(e.length!=t.length)return false;for(let s=0;sct(l,e[s],t)))){s[o].members.push(l.id);return}}t[l.id]=s.length;s.push(new dt(r.origin,l.id))}for(let n=1;;n++){let r=false,l=Date.now();for(let n=0,a=s.length;nn.eq(e)));if(l<0){s[t]=r.length;r.push(n)}else{s[t]=l;i=true;let e=r[l],a=null;for(let t of n.set)if(!e.set.some((e=>e.eqSimple(t))))(a||(a=[])).push(t);if(a)e.set=a.concat(e.set).sort(((e,t)=>e.cmp(t)))}}if(Me)console.log(`Merge identical pass ${t}${i?"":", done"} (${((Date.now()-n)/1e3).toFixed(2)}s)`);if(!i)return e;for(let e of r)if(!e.defaultReduce){e.actions=e.actions.map((e=>e.map(s,r)));e.goto=e.goto.map((e=>e.map(s,r)))}for(let e=0;e=34)t++;if(t>=92)t++;return String.fromCharCode(t)}function yt(e,t=65535){if(e>t)throw new Error("Trying to encode a number that's too big: "+e);if(e==65535)return String.fromCharCode(126);let s="";for(let i=46;;i=0){let t=e%46,n=e-t;s=wt(t+i)+s;if(n==0)break;e=n/46}return s}function $t(e,t=65535){let s='"'+yt(e.length,4294967295);for(let i=0;i{this.input=new de(e,t.fileName);this.ast=this.input.parse()}));let s=i.NodeProp;for(let n in s){if(s[n]instanceof i.NodeProp&&!s[n].perNode)this.knownProps[n]={prop:s[n],source:{name:n,from:null}}}for(let n of this.ast.externalProps){this.knownProps[n.id.name]={prop:this.options.externalProp?this.options.externalProp(n.id.name):new i.NodeProp,source:{name:n.externalID.name,from:n.source}}}this.dialects=this.ast.dialects.map((e=>e.name));this.tokens=new Mt(this,this.ast.tokens);this.localTokens=this.ast.localTokens.map((e=>new Ft(this,e)));this.externalTokens=this.ast.externalTokens.map((e=>new ns(this,e)));this.externalSpecializers=this.ast.externalSpecializers.map((e=>new rs(this,e)));Fe("Build rules",(()=>{let e=this.newName("%noskip",true);this.defineRule(e,[]);let t=this.ast.mainSkip?this.newName("%mainskip",true):e;let s=[],i=[];for(let n of this.ast.rules)this.astRules.push({skip:t,rule:n});for(let n of this.ast.topRules)i.push({skip:t,rule:n});for(let n of this.ast.scopedSkip){let r=e,l=this.ast.scopedSkip.findIndex(((e,t)=>t-1)r=s[l];else if(this.ast.mainSkip&&D(n.expr,this.ast.mainSkip))r=t;else if(!es(n.expr))r=this.newName("%skip",true);s.push(r);for(let e of n.rules)this.astRules.push({skip:r,rule:e});for(let e of n.topRules)i.push({skip:r,rule:e})}for(let{rule:n}of this.astRules){this.unique(n.id)}this.currentSkip.push(e);this.skipRules=t==e?[t]:[e,t];if(t!=e)this.defineRule(t,this.normalizeExpr(this.ast.mainSkip));for(let n=0;ne.rule.start-t.rule.start))){this.unique(n.id);this.used(n.id.name);this.currentSkip.push(r);let{name:e,props:t}=this.nodeInfo(n.props,"a",n.id.name,vt,vt,n.expr);let s=this.terms.makeTop(e,t);this.namedTerms[e]=s;this.defineRule(s,this.normalizeExpr(n.expr));this.currentSkip.pop()}for(let n of this.externalSpecializers)n.finish();for(let{skip:n,rule:r}of this.astRules){if(this.ruleNames[r.id.name]&&ps(r)&&!r.params.length){this.buildRule(r,[],n,false);if(r.expr instanceof R&&r.expr.exprs.length==0)this.used(r.id.name)}}}));for(let i in this.ruleNames){let e=this.ruleNames[i];if(e)this.warn(`Unused rule '${e.name}'`,e.start)}this.tokens.takePrecedences();this.tokens.takeConflicts();for(let i of this.localTokens)i.takePrecedences();for(let{name:i,group:n,rule:r}of this.definedGroups)this.defineGroup(i,n,r);this.checkGroups()}unique(e){if(e.name in this.ruleNames)this.raise(`Duplicate definition of rule '${e.name}'`,e.start);this.ruleNames[e.name]=e}used(e){this.ruleNames[e]=null}newName(e,t=null,s={}){for(let i=t?0:1;;i++){let n=i?`${e}-${i}`:e;if(!this.terms.names[n])return this.terms.makeNonTerminal(n,t===true?null:t,s)}}prepareParser(){let e=Fe("Simplify rules",(()=>os(this.rules,[...this.skipRules,...this.terms.tops])));let{nodeTypes:t,names:s,minRepeatTerm:i,maxTerm:n}=this.terms.finish(e);for(let R in this.namedTerms)this.termTable[R]=this.namedTerms[R].id;if(/\bgrammar\b/.test(Ue))console.log(e.join("\n"));let r=this.terms.tops.slice();let l=rt(this.terms);let a=this.skipRules.map(((e,t)=>{let s=[],i=[],n=[];for(let r of e.rules){if(!r.parts.length)continue;let e=r.parts[0];for(let t of e.terminal?[e]:l[e.name]||[])if(t&&!i.includes(t))i.push(t);if(e.terminal&&r.parts.length==1&&!n.some((t=>t!=r&&t.parts[0]==e)))s.push(e);else n.push(r)}e.rules=n;if(n.length)r.push(e);return{skip:s,rule:n.length?e:null,startTokens:i,id:t}}));let o=Fe("Build full automaton",(()=>ht(this.terms,r,l)));let u=this.localTokens.map(((e,t)=>e.buildLocalGroup(o,a,t)));let{tokenGroups:h,tokenPrec:f,tokenData:c}=Fe("Build token groups",(()=>this.tokens.buildTokenGroups(o,a,u.length)));let p=Fe("Finish automaton",(()=>bt(o)));let d=It(p,this.terms.tops);if(/\blr\b/.test(Ue))console.log(p.join("\n"));let m=[];for(let R of this.externalSpecializers)m.push(R);for(let R in this.specialized)m.push({token:this.terms.names[R],table:At(this.specialized[R])});let g=e=>{if(e instanceof ns)return e.ast.start;return this.tokens.ast?this.tokens.ast.start:-1};let k=h.concat(this.externalTokens).sort(((e,t)=>g(e)-g(t))).concat(u);let x=new qt;let b=a.map((e=>{let t=[];for(let s of e.skip)t.push(s.id,0,262144>>16);if(e.rule){let s=p.find((t=>t.startRule==e.rule));for(let e of s.actions)t.push(e.term.id,s.id,131072>>16)}t.push(65535,0);return x.storeArray(t)}));let w=Fe("Finish states",(()=>{let e=new Uint32Array(p.length*6);let t=this.computeForceReductions(p,a);let s=new jt(k,x,e,b,a,p,this);for(let i of p)s.finish(i,d(i.id),t[i.id]);return e}));let y=Object.create(null);for(let R=0;Re.id)).concat(65535));let $=null;if(this.dynamicRulePrecedences.length){$=Object.create(null);for(let{rule:e,prec:t}of this.dynamicRulePrecedences)$[e.id]=t}let v=Object.create(null);for(let R of this.terms.tops)v[R.nodeName]=[p.find((e=>e.startRule==R)).id,R.id];let S=x.storeArray(f.concat(65535));let{nodeProps:T,skippedTypes:O}=this.gatherNodeProps(t);return{states:w,stateData:x.finish(),goto:Dt(p),nodeNames:t.filter((e=>e.ide.nodeName)).join(" "),nodeProps:T,skippedTypes:O,maxTerm:n,repeatNodeCount:t.length-i,tokenizers:k,tokenData:c,topRules:v,dialects:y,dynamicPrecedences:$,specialized:m,tokenPrec:S,termNames:s}}getParser(){let{states:e,stateData:t,goto:s,nodeNames:i,nodeProps:n,skippedTypes:l,maxTerm:a,repeatNodeCount:o,tokenizers:u,tokenData:h,topRules:f,dialects:c,dynamicPrecedences:p,specialized:d,tokenPrec:m,termNames:g}=this.prepareParser();let k=d.map((e=>{if(e instanceof rs){let t=this.options.externalSpecializer(e.ast.id.name,this.termTable);return{term:e.term.id,get:(s,i)=>t(s,i)<<1|(e.ast.type=="extend"?1:0),external:t,extend:e.ast.type=="extend"}}else{return{term:e.token.id,get:t=>e.table[t]||-1}}}));return r.U1.deserialize({version:14,states:e,stateData:t,goto:s,nodeNames:i,maxTerm:a,repeatNodeCount:o,nodeProps:n.map((({prop:e,terms:t})=>[this.knownProps[e].prop,...t])),propSources:!this.options.externalPropSource?undefined:this.ast.externalPropSources.map((e=>this.options.externalPropSource(e.id.name))),skippedNodes:l,tokenData:h,tokenizers:u.map((e=>e.create())),context:!this.ast.context?undefined:typeof this.options.contextTracker=="function"?this.options.contextTracker(this.termTable):this.options.contextTracker,topRules:f,dialects:c,dynamicPrecedences:p,specialized:k,tokenPrec:m,termNames:g})}getParserFile(){let{states:e,stateData:t,goto:s,nodeNames:i,nodeProps:n,skippedTypes:r,maxTerm:l,repeatNodeCount:a,tokenizers:o,tokenData:u,topRules:h,dialects:f,dynamicPrecedences:c,specialized:p,tokenPrec:d,termNames:m}=this.prepareParser();let g=this.options.moduleStyle||"es";let k="// This file was generated by lezer-generator. You probably shouldn't edit it.\n",x=k;let b={},w=Object.create(null);let y=Object.create(null);for(let G of hs)y[G]=true;let $=this.options.exportName||"parser";y[$]=true;let v=e=>{for(let t=0;;t++){let s=e+(t?"_"+t:"");if(!y[s])return s}};let S=(e,t,s=e)=>{let i=e+" from "+t;if(w[i])return w[i];let n=JSON.stringify(t),r=e;if(e in y){r=v(s);e+=`${g=="cjs"?":":" as"} ${r}`}y[r]=true;(b[n]||(b[n]=[])).push(e);return w[i]=r};let T=S("LRParser","@lezer/lr");let O=o.map((e=>e.createSource(S)));let R=this.ast.context?S(this.ast.context.id.name,this.ast.context.source):null;let P=n.map((({prop:e,terms:t})=>{let{source:s}=this.knownProps[e];let i=s.from?S(s.name,s.from):JSON.stringify(s.name);return`[${i}, ${t.map(C).join(",")}]`}));function j(e){return"{__proto__:null,"+Object.keys(e).map((t=>`${/^(\d+|[a-zA-Z_]\w*)$/.test(t)?t:JSON.stringify(t)}:${e[t]}`)).join(", ")+"}"}let N="";let A=p.map((e=>{if(e instanceof rs){let t=S(e.ast.id.name,e.ast.source);let s=this.options.typeScript?": any":"";return`{term: ${e.term.id}, get: (value${s}, stack${s}) => (${t}(value, stack) << 1)${e.ast.type=="extend"?` | ${1}`:""}, external: ${t}${e.ast.type=="extend"?", extend: true":""}}`}else{let t=v("spec_"+e.token.name.replace(/\W/g,""));y[t]=true;N+=`const ${t} = ${j(e.table)}\n`;let s=this.options.typeScript?`: keyof typeof ${t}`:"";return`{term: ${e.token.id}, get: (value${s}) => ${t}[value] || -1}`}}));let z=this.ast.externalPropSources.map((e=>S(e.id.name,e.source)));for(let G in b){if(g=="cjs")x+=`const {${b[G].join(", ")}} = require(${G})\n`;else x+=`import {${b[G].join(", ")}} from ${G}\n`}x+=N;function C(e){return typeof e!="string"||/^(true|false|\d+(\.\d+)?|\.\d+)$/.test(e)?e:JSON.stringify(e)}let I=Object.keys(f).map((e=>`${e}: ${f[e]}`));let q=`${T}.deserialize({\n version: ${14},\n states: ${$t(e,4294967295)},\n stateData: ${$t(t)},\n goto: ${$t(s)},\n nodeNames: ${JSON.stringify(i)},\n maxTerm: ${l}${R?`,\n context: ${R}`:""}${P.length?`,\n nodeProps: [\n ${P.join(",\n ")}\n ]`:""}${z.length?`,\n propSources: [${z.join()}]`:""}${r.length?`,\n skippedNodes: ${JSON.stringify(r)}`:""},\n repeatNodeCount: ${a},\n tokenData: ${$t(u)},\n tokenizers: [${O.join(", ")}],\n topRules: ${JSON.stringify(h)}${I.length?`,\n dialects: {${I.join(", ")}}`:""}${c?`,\n dynamicPrecedences: ${JSON.stringify(c)}`:""}${A.length?`,\n specialized: [${A.join(",")}]`:""},\n tokenPrec: ${d}${this.options.includeNames?`,\n termNames: ${JSON.stringify(m)}`:""}\n})`;let D=[];for(let G in this.termTable){let e=G;if(hs.includes(e))for(let t=1;;t++){e="_".repeat(t)+G;if(!(e in this.termTable))break}else if(!/^[\w$]+$/.test(G)){continue}D.push(`${e}${g=="cjs"?":":" ="} ${this.termTable[G]}`)}for(let G=0;G{if(!e[s.id]){e[s.id]=true;t.push(s)}};this.terms.tops.forEach(s);for(let i=0;it.prop==e));if(!s)i.push(s={prop:e,values:{}});(s.values[n.props[e]]||(s.values[n.props[e]]=[])).push(n.id)}}return{nodeProps:i.map((({prop:e,values:t})=>{let s=[];for(let i in t){let e=t[i];if(e.length==1){s.push(e[0],i)}else{s.push(-e.length);for(let t of e)s.push(t);s.push(i)}}return{prop:e,terms:s}})),skippedTypes:s}}makeTerminal(e,t,s){return this.terms.makeTerminal(this.terms.uniqueName(e),t,s)}computeForceReductions(e,t){let s=[];let i=[];let n=Object.create(null);for(let a of e){s.push(0);for(let e of a.goto){let t=n[e.term.id]||(n[e.term.id]=[]);let s=t.find((t=>t.target==e.target.id));if(s)s.parents.push(a.id);else t.push({parents:[a.id],target:e.target.id})}i[a.id]=a.set.filter((e=>e.pos>0&&!e.rule.name.top)).sort(((e,t)=>t.pos-e.pos||e.rule.parts.length-t.rule.parts.length))}let r=Object.create(null);function l(e,t,s=null){let i=n[e];if(!i)return false;return i.some((e=>{let i=s?s.filter((t=>e.parents.includes(t))):e.parents;if(i.length==0)return false;if(e.target==t)return true;let n=r[e.target];return n!=null&&l(n,t,i)}))}for(let a of e){if(a.defaultReduce&&a.defaultReduce.parts.length>0){s[a.id]=zt(a.defaultReduce,t);if(a.defaultReduce.parts.length==1)r[a.id]=a.defaultReduce.name.id}}for(let a=1;;a++){let n=true;for(let o of e){if(o.defaultReduce)continue;let e=i[o.id];if(e.length!=a){if(e.length>a)n=false;continue}for(let i of e){if(i.pos!=1||!l(i.rule.name.id,o.id)){s[o.id]=zt(i.rule,t,i.pos);if(i.pos==1)r[o.id]=i.rule.name.id;break}}}if(n)break}return s}substituteArgs(e,t,s){if(t.length==0)return e;return e.walk((e=>{let i;if(e instanceof v&&(i=s.findIndex((t=>t.name==e.id.name)))>-1){let s=t[i];if(e.args.length){if(s instanceof v&&!s.args.length)return new v(e.start,s.id,e.args);this.raise(`Passing arguments to a parameter that already has arguments`,e.start)}return s}else if(e instanceof T){let i=e.rule,n=this.substituteArgsInProps(i.props,t,s);return n==i.props?e:new T(e.start,new u(i.start,i.id,n,i.params,i.expr))}else if(e instanceof S){let i=this.substituteArgsInProps(e.props,t,s);return i==e.props?e:new S(e.start,e.type,i,e.token,e.content)}return e}))}substituteArgsInProps(e,t,s){let i=e=>{let i=e;for(let n=0;ne.name==r.name));if(l<0)continue;if(i==e)i=e.slice();let a=t[l];if(a instanceof v&&!a.args.length)i[n]=new J(r.start,a.id.name,null);else if(a instanceof N)i[n]=new J(r.start,a.value,null);else this.raise(`Trying to interpolate expression '${a}' into a prop`,r.start)}return i};let n=e;for(let r=0;re.id.name==i.id.name)):-1;if(n<0)this.raise(`Reference to unknown precedence: '${i.id.name}'`,i.id.start);let r=e.items[n],l=e.items.length-n;if(r.type=="cut"){t=t.join(new Y(0,vt,l))}else{t=t.join(new Y(l<<2));s=s.join(new Y((l<<2)+(r.type=="left"?1:r.type=="right"?-1:0)))}}}return{here:t,atEnd:s}}raise(e,t=1){return this.input.raise(e,t)}warn(e,t=-1){let s=this.input.message(e,t);if(this.options.warn)this.options.warn(s);else console.warn(s)}defineRule(e,t){let s=this.currentSkip[this.currentSkip.length-1];for(let i of t)this.rules.push(new Q(e,i.terms,i.ensureConflicts(),s))}resolve(e){for(let i of this.built)if(i.matches(e))return[Tt(i.term)];let t=this.tokens.getToken(e);if(t)return[Tt(t)];for(let i of this.localTokens){let t=i.getToken(e);if(t)return[Tt(t)]}for(let i of this.externalTokens){let t=i.getToken(e);if(t)return[Tt(t)]}for(let i of this.externalSpecializers){let t=i.getToken(e);if(t)return[Tt(t)]}let s=this.astRules.find((t=>t.rule.id.name==e.id.name));if(!s)return this.raise(`Reference to undefined rule '${e.id.name}'`,e.start);if(s.rule.params.length!=e.args.length)this.raise(`Wrong number or arguments for '${e.id.name}'`,e.start);this.used(s.rule.id.name);return[Tt(this.buildRule(s.rule,e.args,s.skip))]}normalizeRepeat(e){let t=this.built.find((t=>t.matchesRepeat(e)));if(t)return Tt(t.term);let s=e.expr.precthis.normalizeExpr(e)));let s=this;function i(n,r,l){let{here:a,atEnd:o}=s.conflictsFor(e.markers[r]);if(r==t.length)return[n.withConflicts(n.terms.length,a.join(l))];let u=[];for(let e of t[r]){for(let t of i(n.concat(e).withConflicts(n.terms.length,a),r+1,l.join(o)))u.push(t)}return u}return i(St.none,0,Y.none)}normalizeExpr(e){if(e instanceof j&&e.kind=="?"){return[St.none,...this.normalizeExpr(e.expr)]}else if(e instanceof j){let t=this.normalizeRepeat(e);return e.kind=="+"?[t]:[St.none,t]}else if(e instanceof O){return e.exprs.reduce(((e,t)=>e.concat(this.normalizeExpr(t))),[])}else if(e instanceof R){return this.normalizeSequence(e)}else if(e instanceof N){return[Tt(this.tokens.getLiteral(e))]}else if(e instanceof v){return this.resolve(e)}else if(e instanceof S){return[Tt(this.resolveSpecialization(e))]}else if(e instanceof T){return[Tt(this.buildRule(e.rule,vt,this.currentSkip[this.currentSkip.length-1],true))]}else{return this.raise(`This type of expression ('${e}') may not occur in non-token rules`,e.start)}}buildRule(e,t,s,i=false){let n=this.substituteArgs(e.expr,t,e.params);let{name:r,props:l,dynamicPrec:a,inline:o,group:u,exported:h}=this.nodeInfo(e.props||vt,i?"pg":"pgi",e.id.name,t,e.params,e.expr);if(h&&e.params.length)this.warn(`Can't export parameterized rules`,e.start);if(h&&i)this.warn(`Can't export inline rule`,e.start);let f=this.newName(e.id.name+(t.length?"<"+t.join(",")+">":""),r||true,l);if(o)f.inline=true;if(a)this.registerDynamicPrec(f,a);if((f.nodeType||h)&&e.params.length==0){if(!r)f.preserve=true;if(!i)this.namedTerms[h||e.id.name]=f}if(!i)this.built.push(new Ot(e.id.name,t,f));this.currentSkip.push(s);let c=this.normalizeExpr(n);if(c.length>100*(n instanceof O?n.exprs.length:1))this.warn(`Rule ${e.id.name} is generating a lot (${c.length}) of choices.\n Consider splitting it up or reducing the amount of ? or | operator uses.`,e.start);if(/\brulesize\b/.test(Ue)&&c.length>10)console.log(`Rule ${e.id.name}: ${c.length} variants`);this.defineRule(f,c);this.currentSkip.pop();if(u)this.definedGroups.push({name:f,group:u,rule:e});return f}nodeInfo(e,t,s=null,i=vt,n=vt,r,l){let a={};let o=s&&(t.indexOf("a")>-1||!cs(s))&&!/ /.test(s)?s:null;let u=null,h=0,f=false,c=null,p=null;for(let d of e){if(!d.at){if(!this.knownProps[d.name]){let e=["name","dialect","dynamicPrecedence","export","isGroup"].includes(d.name)?` (did you mean '@${d.name}'?)`:"";this.raise(`Unknown prop name '${d.name}'${e}`,d.start)}a[d.name]=this.finishProp(d,i,n)}else if(d.name=="name"){o=this.finishProp(d,i,n);if(/ /.test(o))this.raise(`Node names cannot have spaces ('${o}')`,d.start)}else if(d.name=="dialect"){if(t.indexOf("d")<0)this.raise("Can't specify a dialect on non-token rules",e[0].start);if(d.value.length!=1&&!d.value[0].value)this.raise("The '@dialect' rule prop must hold a plain string value");let s=this.dialects.indexOf(d.value[0].value);if(s<0)this.raise(`Unknown dialect '${d.value[0].value}'`,d.value[0].start);u=s}else if(d.name=="dynamicPrecedence"){if(t.indexOf("p")<0)this.raise("Dynamic precedence can only be specified on nonterminals");if(d.value.length!=1||!/^-?(?:10|\d)$/.test(d.value[0].value))this.raise("The '@dynamicPrecedence' rule prop must hold an integer between -10 and 10");h=+d.value[0].value}else if(d.name=="inline"){if(d.value.length)this.raise("'@inline' doesn't take a value",d.value[0].start);if(t.indexOf("i")<0)this.raise("Inline can only be specified on nonterminals");f=true}else if(d.name=="isGroup"){if(t.indexOf("g")<0)this.raise("'@isGroup' can only be specified on nonterminals");c=d.value.length?this.finishProp(d,i,n):s}else if(d.name=="export"){if(d.value.length)p=this.finishProp(d,i,n);else p=s}else{this.raise(`Unknown built-in prop name '@${d.name}'`,d.start)}}if(r&&this.ast.autoDelim&&(o||U(a))){let e=this.findDelimiters(r);if(e){Nt(e[0],"closedBy",e[1].nodeName);Nt(e[1],"openedBy",e[0].nodeName)}}if(l&&U(l)){for(let e in l)if(!(e in a))a[e]=l[e]}if(U(a)&&!o)this.raise(`Node has properties but no name`,e.length?e[0].start:r.start);if(f&&(U(a)||u||h))this.raise(`Inline nodes can't have props, dynamic precedence, or a dialect`,e[0].start);if(f&&o)o=null;return{name:o,props:a,dialect:u,dynamicPrec:h,inline:f,group:c,exported:p}}finishProp(e,t,s){return e.value.map((e=>{if(e.value)return e.value;let i=s.findIndex((t=>t.name==e.name));if(i<0)this.raise(`Property refers to '${e.name}', but no parameter by that name is in scope`,e.start);let n=t[i];if(n instanceof v&&!n.args.length)return n.id.name;if(n instanceof N)return n.value;return this.raise(`Expression '${n}' can not be used as part of a property value`,e.start)})).join("")}resolveSpecialization(e){let t=e.type;let{name:s,props:i,dialect:n,exported:r}=this.nodeInfo(e.props,"d");let l=this.normalizeExpr(e.token);if(l.length!=1||l[0].terms.length!=1||!l[0].terms[0].terminal)this.raise(`The first argument to '${t}' must resolve to a token`,e.token.start);let a;if(e.content instanceof N)a=[e.content.value];else if(e.content instanceof O&&e.content.exprs.every((e=>e instanceof N)))a=e.content.exprs.map((e=>e.value));else return this.raise(`The second argument to '${e.type}' must be a literal or choice of literals`,e.content.start);let o=l[0].terms[0],u=null;let h=this.specialized[o.name]||(this.specialized[o.name]=[]);for(let f of a){let l=h.find((e=>e.value==f));if(l==null){if(!u){u=this.makeTerminal(o.name+"/"+JSON.stringify(f),s,i);if(n!=null)(this.tokens.byDialect[n]||(this.tokens.byDialect[n]=[])).push(u)}h.push({value:f,term:u,type:t,dialect:n,name:s});this.tokenOrigins[u.name]={spec:o};if(s||r){if(!s)u.preserve=true;this.namedTerms[r||s]=u}}else{if(l.type!=t)this.raise(`Conflicting specialization types for ${JSON.stringify(f)} of ${o.name} (${t} vs ${l.type})`,e.start);if(l.dialect!=n)this.raise(`Conflicting dialects for specialization ${JSON.stringify(f)} of ${o.name}`,e.start);if(l.name!=s)this.raise(`Conflicting names for specialization ${JSON.stringify(f)} of ${o.name}`,e.start);if(u&&l.term!=u)this.raise(`Conflicting specialization tokens for ${JSON.stringify(f)} of ${o.name}`,e.start);u=l.term}}return u}findDelimiters(e){if(!(e instanceof R)||e.exprs.length<2)return null;let t=e=>{if(e instanceof N)return{term:this.tokens.getLiteral(e),str:e.value};if(e instanceof v&&e.args.length==0){let s=this.ast.rules.find((t=>t.id.name==e.id.name));if(s)return t(s.expr);let i=this.tokens.rules.find((t=>t.id.name==e.id.name));if(i&&i.expr instanceof N)return{term:this.tokens.getToken(e),str:i.expr.value}}return null};let s=t(e.exprs[e.exprs.length-1]);if(!s||!s.term.nodeName)return null;const i=["()","[]","{}","<>"];let n=i.find((e=>s.str.indexOf(e[1])>-1&&s.str.indexOf(e[0])<0));if(!n)return null;let r=t(e.exprs[0]);if(!r||!r.term.nodeName||r.str.indexOf(n[0])<0||r.str.indexOf(n[1])>-1)return null;return[r.term,s.term]}registerDynamicPrec(e,t){this.dynamicRulePrecedences.push({rule:e,prec:t});e.preserve=true}defineGroup(e,t,s){var i;let n=[];let r=e=>{if(e.nodeName)return[e];if(n.includes(e))this.raise(`Rule '${s.id.name}' cannot define a group because it contains a non-named recursive rule ('${e.name}')`,s.start);let t=[];n.push(e);for(let i of this.rules)if(i.name==e){let e=i.parts.map(r).filter((e=>e.length));if(e.length>1)this.raise(`Rule '${s.id.name}' cannot define a group because some choices produce multiple named nodes`,s.start);if(e.length==1)for(let s of e[0])t.push(s)}n.pop();return t};for(let l of r(e))l.props["group"]=(((i=l.props["group"])===null||i===void 0?void 0:i.split(" "))||[]).concat(t).sort().join(" ")}checkGroups(){let e=Object.create(null),t=Object.create(null);for(let i of this.terms.terms)if(i.nodeName){t[i.nodeName]=true;if(i.props["group"])for(let t of i.props["group"].split(" ")){(e[t]||(e[t]=[])).push(i)}}let s=Object.keys(e);for(let i=0;ii.includes(e)))&&(r.length>i.length?i.some((e=>!r.includes(e))):r.some((e=>!i.includes(e)))))this.warn(`Groups '${n}' and '${s[t]}' overlap without one being a superset of the other`)}}}}const Pt=5;class jt{constructor(e,t,s,i,n,r,l){this.tokenizers=e;this.data=t;this.stateArray=s;this.skipData=i;this.skipInfo=n;this.states=r;this.builder=l;this.sharedActions=[]}findSharedActions(e){if(e.actions.lengtht.actions.length)&&r.actions.every((t=>e.actions.some((e=>e.eq(t))))))t=r}if(t)return t;let s=null,i=[];for(let r=e.id+1;r=Pt&&(!s||s.lengthe.eq(n))))continue;if(n instanceof Ve){i.push(n.term.id,n.target.id,0)}else{let e=zt(n.rule,this.skipInfo);if(e!=t)i.push(n.term.id,e&65535,e>>16)}}i.push(65535);if(t>-1)i.push(2,t&65535,t>>16);else if(s)i.push(1,s.addr&65535,s.addr>>16);else i.push(0);return this.data.storeArray(i)}finish(e,t,s){let i=this.builder;let n=i.skipRules.indexOf(e.skip);let r=this.skipData[n],l=this.skipInfo[n].startTokens;let a=e.defaultReduce?zt(e.defaultReduce,this.skipInfo):0;let o=t?1:0;let u=-1,h=null;if(a==0){if(t)for(const t of e.actions)if(t instanceof Xe&&t.term.eof)u=zt(t.rule,this.skipInfo);if(u<0)h=this.findSharedActions(e)}if(e.set.some((e=>e.rule.name.top&&e.pos==e.rule.parts.length)))o|=2;let f=[];for(let d=0;dt.rule==e.name))?262144:0)|s<<19}function Ct(e,t){e:for(let s=0;;){let i=e.indexOf(t[0],s);if(i==-1||i+t.length>e.length)break;for(let n=1;n{if(!s[e.id]){s[e.id]=true;i.push(e)}};for(let r of e)if(r.startRule&&t.includes(r.startRule))n(r);for(let r=0;r!s[e]}class qt{constructor(){this.data=[]}storeArray(e){let t=Ct(this.data,e);if(t>-1)return t;let s=this.data.length;for(let i of e)this.data.push(i);return s}finish(){return Uint16Array.from(this.data)}}function Dt(e){let t={};let s=0;for(let l of e){for(let e of l.goto){s=Math.max(e.term.id,s);let i=t[e.term.id]||(t[e.term.id]={});(i[e.target.id]||(i[e.target.id]=[])).push(l.id)}}let i=new qt;let n=[];let r=s+2;for(let l=0;l<=s;l++){let e=t[l];if(!e){n.push(1);continue}let s=[];let a=Object.keys(e);for(let t of a){let i=e[t];s.push((t==a[a.length-1]?1:0)+(i.length<<1));s.push(+t);for(let e of i)s.push(e)}n.push(i.storeArray(s)+r)}if(n.some((e=>e>65535)))throw new B("Goto table too large");return Uint16Array.from([s+1,...n,...i.data])}class Gt{constructor(e,t){this.tokens=e;this.groupID=t}create(){return this.groupID}createSource(){return String(this.groupID)}}function Et(e,t){if(!e.includes(t))e.push(t)}function Jt(e){let t=Object.create(null);for(let s of e){let e=1<e.id.name==t));if(!s)return null;let{name:i,props:n,dialect:r,exported:l}=this.b.nodeInfo(s.props,"d",t,e.args,s.params.length!=e.args.length?vt:s.params);let a=this.b.makeTerminal(e.toString(),i,n);if(r!=null)(this.byDialect[r]||(this.byDialect[r]=[])).push(a);if((a.nodeType||l)&&s.params.length==0){if(!a.nodeType)a.preserve=true;this.b.namedTerms[l||t]=a}this.buildRule(s,e,this.startState,new re([a]));this.built.push(new Ot(t,e.args,a));return a}buildRule(e,t,s,i,n=vt){let r=t.id.name;if(e.params.length!=t.args.length)this.b.raise(`Incorrect number of arguments for token '${r}'`,t.start);let l=this.building.find((e=>e.name==r&&G(t.args,e.args)));if(l){if(l.to==i){s.nullEdge(l.start);return}let e=this.building.length-1;while(this.building[e].name!=r)e--;this.b.raise(`Invalid (non-tail) recursion in token rules: ${this.building.slice(e).map((e=>e.name)).join(" -> ")}`,t.start)}this.b.used(e.id.name);let a=new re;s.nullEdge(a);this.building.push(new Bt(r,a,i,t.args));this.build(this.b.substituteArgs(e.expr,t.args,e.params),a,i,t.args.map(((t,s)=>new _t(e.params[s].name,t,n))));this.building.pop()}build(e,t,s,i){if(e instanceof v){let n=e.id.name,r=i.find((e=>e.name==n));if(r)return this.build(r.expr,t,s,r.scope);let l;for(let e=0,t=this.b.localTokens;e<=t.length;e++){let s=e==t.length?this.b.tokens:t[e];l=s.rules.find((e=>e.id.name==n))}if(!l)return this.b.raise(`Reference to token rule '${e.id.name}', which isn't found`,e.start);this.buildRule(l,e,t,s,i)}else if(e instanceof q){for(let[i,n]of I[e.type])t.edge(i,n,s)}else if(e instanceof O){for(let n of e.exprs)this.build(n,t,s,i)}else if(es(e)){t.nullEdge(s)}else if(e instanceof R){let n=e.markers.find((e=>e.length>0));if(n)this.b.raise("Conflict marker in token expression",n[0].start);for(let r=0;rt.id==e));if(s)t.push(s.term)}if(!t.length)this.b.warn(`Precedence specified for unknown token ${i}`,i.start);for(let i of t)is(e,i,s);s=s.concat(t)}}}precededBy(e,t){let s=this.precedenceRelations.find((t=>t.term==e));return s&&s.after.includes(t)}buildPrecTable(e){let t=[],s=this.precedenceRelations.slice();for(let{a:i,b:n,soft:r}of e)if(r){if(!s.some((e=>e.term==i))||!s.some((e=>e.term==n)))continue;if(r<0)[i,n]=[n,i];is(s,n,[i]);is(s,i,[])}e:while(s.length){for(let e=0;et.includes(e.id)))){t.push(i.term.id);if(s.length==1)break e;s[e]=s.pop();continue e}}this.b.raise(`Cyclic token precedence relation between ${s.map((e=>e.term)).join(", ")}`)}return t}}class Mt extends Ut{constructor(){super(...arguments);this.explicitConflicts=[]}getLiteral(e){let t=JSON.stringify(e.value);for(let o of this.built)if(o.id==t)return o.term;let s=null,i={},n=null,r=null;let l=this.ast?this.ast.literals.find((t=>t.literal==e.value)):null;if(l)({name:s,props:i,dialect:n,exported:r}=this.b.nodeInfo(l.props,"da",e.value));let a=this.b.makeTerminal(t,s,i);if(n!=null)(this.byDialect[n]||(this.byDialect[n]=[])).push(a);if(r)this.b.namedTerms[r]=a;this.build(e,this.startState,new re([a]),vt);this.built.push(new Ot(t,vt,a));return a}takeConflicts(){var e;let t=e=>{if(e instanceof v){for(let t of this.built)if(t.matches(e))return t.term}else{let t=JSON.stringify(e.value),s=this.built.find((e=>e.id==t));if(s)return s.term}this.b.warn(`Precedence specified for unknown token ${e}`,e.start);return null};for(let s of((e=this.ast)===null||e===void 0?void 0:e.conflicts)||[]){let e=t(s.a),i=t(s.b);if(e&&i){if(e.ide.id.name==i.accepting[0].name)).start);if(/\btokens\b/.test(Ue))console.log(i.toString());let n=i.findConflicts(Lt(e,this.b,t)).filter((({a:e,b:t})=>!this.precededBy(e,t)&&!this.precededBy(t,e)));for(let{a:h,b:f}of this.explicitConflicts){if(!n.some((e=>e.a==h&&e.b==f)))n.push(new le(h,f,0,"",""))}let r=n.filter((e=>e.soft)),l=n.filter((e=>!e.soft));let a=[];let o=[];for(let h of e){if(h.defaultReduce||h.tokenGroup>-1)continue;let e=[],i=[];let n=t[this.b.skipRules.indexOf(h.skip)].startTokens;for(let t of n)if(h.actions.some((e=>e.term==t)))this.b.raise(`Use of token ${t.name} conflicts with skip rule`);let r=[];for(let t=0;te.conflict==s))){let e=s.exampleA?` (example: ${JSON.stringify(s.exampleA)}${s.exampleB?` vs ${JSON.stringify(s.exampleB)}`:""})`:"";a.push({error:`Overlapping tokens ${t.name} and ${n.name} used in same context${e}\n`+`After: ${h.set[0].trail()}`,conflict:s})}Et(e,t);Et(i,n)}}let u=null;for(let t of o){if(i.some((e=>t.tokens.includes(e))))continue;for(let s of e)Et(t.tokens,s);u=t;break}if(!u){u=new Gt(e,o.length+s);o.push(u)}h.tokenGroup=u.groupID}if(a.length)this.b.raise(a.map((e=>e.error)).join("\n\n"));if(o.length+s>16)this.b.raise(`Too many different token groups (${o.length}) to represent them as a 16-bit bitfield`);let u=this.buildPrecTable(r);return{tokenGroups:o,tokenPrec:u,tokenData:i.toArray(Jt(o),u)}}}class Ft extends Ut{constructor(e,t){super(e,t);this.fallback=null;if(t.fallback)e.unique(t.fallback.id)}getToken(e){let t=null;if(this.ast.fallback&&this.ast.fallback.id.name==e.id.name){if(e.args.length)this.b.raise(`Incorrect number of arguments for ${e.id.name}`,e.start);if(!this.fallback){let{name:t,props:s,exported:i}=this.b.nodeInfo(this.ast.fallback.props,"",e.id.name,vt,vt);let n=this.fallback=this.b.makeTerminal(e.id.name,t,s);if(n.nodeType||i){if(!n.nodeType)n.preserve=true;this.b.namedTerms[i||e.id.name]=n}this.b.used(e.id.name)}t=this.fallback}else{t=super.getToken(e)}if(t&&!this.b.tokenOrigins[t.name])this.b.tokenOrigins[t.name]={group:this};return t}buildLocalGroup(e,t,s){let i=this.startState.compile();if(i.accepting.length)this.b.raise(`Grammar contains zero-length tokens (in '${i.accepting[0].name}')`,this.rules.find((e=>e.id.name==i.accepting[0].name)).start);for(let{a:r,b:u,exampleA:h}of i.findConflicts((()=>true))){if(!this.precededBy(r,u)&&!this.precededBy(u,r))this.b.raise(`Overlapping tokens ${r.name} and ${u.name} in local token group${h?` (example: ${JSON.stringify(h)})`:""}`)}for(let r of e){if(r.defaultReduce)continue;let e=null;let i=t[this.b.skipRules.indexOf(r.skip)].startTokens[0];for(let{term:t}of r.actions){let s=this.b.tokenOrigins[t.name];if((s===null||s===void 0?void 0:s.group)==this)e=t;else i=t}if(e){if(i)this.b.raise(`Tokens from a local token group used together with other tokens (${e.name} with ${i.name})`);r.tokenGroup=s}}let n=this.buildPrecTable(vt);let l=i.toArray({[s]:65535},n);let a=l.length;let o=new Uint16Array(l.length+n.length+1);o.set(l,0);o.set(n,a);o[o.length-1]=65535;return{groupID:s,create:()=>new r.uC(o,a,this.fallback?this.fallback.id:undefined),createSource:e=>`new ${e("LocalTokenGroup","@lezer/lr")}(${$t(o)}, ${a}${this.fallback?`, ${this.fallback.id}`:""})`}}}function Lt(e,t,s){let i=Object.create(null);function n(e,i){return e.actions.some((e=>e.term==i))||s[t.skipRules.indexOf(e.skip)].startTokens.includes(i)}return(t,s)=>{if(t.idn(e,t)&&n(e,s)))}}function Wt(e){let t=0,s=[];for(let[i,n]of e){if(i>t)s.push([t,i]);t=n}if(t<=Ht)s.push([t,Ht+1]);return s}const Kt=65536,Yt=55296,Zt=57344,Ht=1114111;const Qt=56320,Vt=57343;function Xt(e,t,s,i){if(sZt)e.edge(Math.max(s,Zt),Math.min(i,V+1),t);s=Kt}if(i<=Kt)return;let n=String.fromCodePoint(s),r=String.fromCodePoint(i-1);let l=n.charCodeAt(0),a=n.charCodeAt(1);let o=r.charCodeAt(0),u=r.charCodeAt(1);if(l==o){let s=new re;e.edge(l,l+1,s);s.edge(a,u+1,t)}else{let s=l,i=o;if(a>Qt){s++;let i=new re;e.edge(l,l+1,i);i.edge(a,Vt+1,t)}if(ue.term==t));if(i<0)e.push({term:t,after:s});else e[i]={term:t,after:e[i].after.concat(s)}}class ns{constructor(e,t){this.b=e;this.ast=t;this.tokens=ts(e,t.tokens);for(let s in this.tokens)this.b.tokenOrigins[this.tokens[s].name]={external:this}}getToken(e){return ss(this.b,this.tokens,e)}create(){return this.b.options.externalTokenizer(this.ast.id.name,this.b.termTable)}createSource(e){let{source:t,id:{name:s}}=this.ast;return e(s,t)}}class rs{constructor(e,t){this.b=e;this.ast=t;this.term=null;this.tokens=ts(e,t.tokens)}finish(){let e=this.b.normalizeExpr(this.ast.token);if(e.length!=1||e[0].terms.length!=1||!e[0].terms[0].terminal)this.b.raise(`The token expression to '@external ${this.ast.type}' must resolve to a token`,this.ast.token.start);this.term=e[0].terms[0];for(let t in this.tokens)this.b.tokenOrigins[this.tokens[t].name]={spec:this.term,external:this}}getToken(e){return ss(this.b,this.tokens,e)}}function ls(e,t){for(let s=0;;s++){let i=Object.create(null),n;if(s==0)for(let l of e){if(l.name.inline&&!i[l.name.name]){let a=e.filter((e=>e.name==l.name));if(a.some((e=>e.parts.includes(l.name))))continue;n=i[l.name.name]=a}}for(let o=0;oe.skip==u.skip||!e.parts.includes(u.name))))&&!u.parts.some((e=>!!i[e.name]))&&!e.some(((e,t)=>t!=o&&e.name==u.name)))n=i[u.name.name]=[u]}if(!n)return e;let r=[];for(let h of e){if(i[h.name.name])continue;if(!h.parts.some((e=>!!i[e.name]))){r.push(h);continue}function f(e,t,s){if(e==h.parts.length){r.push(new Q(h.name,s,t,h.skip));return}let n=h.parts[e],l=i[n.name];if(!l){f(e+1,t.concat(h.conflicts[e+1]),s.concat(n));return}for(let i of l)f(e+1,t.slice(0,t.length-1).concat(t[e].join(i.conflicts[0])).concat(i.conflicts.slice(1,i.conflicts.length-1)).concat(h.conflicts[e+1].join(i.conflicts[i.conflicts.length-1])),s.concat(i.parts))}f(0,[h.conflicts[0]],[])}e=r}}function as(e){let t=Object.create(null),s;for(let n=0;n!t[e.name]))?n:new Q(n.name,n.parts.map((e=>t[e.name]||e)),n.conflicts,n.skip))}return i}function os(e,t){return as(ls(e,t))}function us(e,t={}){let s=new Rt(e,t),i=s.getParser();i.termTable=s.termTable;return i}const hs=["await","break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","while","with","null","true","false","instanceof","typeof","void","delete","new","in","this","const","class","extends","export","import","super","enum","implements","interface","let","package","private","protected","public","static","yield","require"];function fs(e,t={}){return new Rt(e,t).getParserFile()}function cs(e){let t=e[0];return t=="_"||t.toUpperCase()!=t}function ps(e){return e.props.some((e=>e.at&&e.name=="export"))}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/1423.4bcf4453e1c1d12d872f.js b/share/jupyter/lab/static/1423.4bcf4453e1c1d12d872f.js new file mode 100644 index 0000000..b35d1ee --- /dev/null +++ b/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/share/jupyter/lab/static/1445.a0e099c27d073217031a.js b/share/jupyter/lab/static/1445.a0e099c27d073217031a.js new file mode 100644 index 0000000..7acc25e --- /dev/null +++ b/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/share/jupyter/lab/static/1449.7026e8748d2a77e15d5b.js b/share/jupyter/lab/static/1449.7026e8748d2a77e15d5b.js new file mode 100644 index 0000000..bc96fc6 --- /dev/null +++ b/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/share/jupyter/lab/static/1483.c0aab21b263e7ea33653.js b/share/jupyter/lab/static/1483.c0aab21b263e7ea33653.js new file mode 100644 index 0000000..909938c --- /dev/null +++ b/share/jupyter/lab/static/1483.c0aab21b263e7ea33653.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1483],{11483:(t,e,n)=>{n.d(e,{diagram:()=>gt});var i=n(42418);var r=n(70416);var s=n(1218);function o(t,e){let n;if(e===undefined){for(const e of t){if(e!=null&&(n>e||n===undefined&&e>=e)){n=e}}}else{let i=-1;for(let r of t){if((r=e(r,++i,t))!=null&&(n>r||n===undefined&&r>=r)){n=r}}}return n}function a(t){return t.target.depth}function l(t){return t.depth}function c(t,e){return e-1-t.height}function h(t,e){return t.sourceLinks.length?t.depth:e-1}function u(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?o(t.sourceLinks,a)-1:0}function f(t,e){let n=0;if(e===undefined){for(let e of t){if(e=+e){n+=e}}}else{let i=-1;for(let r of t){if(r=+e(r,++i,t)){n+=r}}}return n}function y(t,e){let n;if(e===undefined){for(const e of t){if(e!=null&&(n=e)){n=e}}}else{let i=-1;for(let r of t){if((r=e(r,++i,t))!=null&&(n=r)){n=r}}}return n}function d(t){return function(){return t}}function p(t,e){return _(t.source,e.source)||t.index-e.index}function g(t,e){return _(t.target,e.target)||t.index-e.index}function _(t,e){return t.y0-e.y0}function k(t){return t.value}function x(t){return t.index}function m(t){return t.nodes}function v(t){return t.links}function b(t,e){const n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function w({nodes:t}){for(const e of t){let t=e.y0;let n=t;for(const i of e.sourceLinks){i.y0=t+i.width/2;t+=i.width}for(const i of e.targetLinks){i.y1=n+i.width/2;n+=i.width}}}function S(){let t=0,e=0,n=1,i=1;let r=24;let s=8,a;let l=x;let c=h;let u;let S;let L=m;let E=v;let K=6;function A(){const t={nodes:L.apply(null,arguments),links:E.apply(null,arguments)};M(t);I(t);T(t);C(t);P(t);w(t);return t}A.update=function(t){w(t);return t};A.nodeId=function(t){return arguments.length?(l=typeof t==="function"?t:d(t),A):l};A.nodeAlign=function(t){return arguments.length?(c=typeof t==="function"?t:d(t),A):c};A.nodeSort=function(t){return arguments.length?(u=t,A):u};A.nodeWidth=function(t){return arguments.length?(r=+t,A):r};A.nodePadding=function(t){return arguments.length?(s=a=+t,A):s};A.nodes=function(t){return arguments.length?(L=typeof t==="function"?t:d(t),A):L};A.links=function(t){return arguments.length?(E=typeof t==="function"?t:d(t),A):E};A.linkSort=function(t){return arguments.length?(S=t,A):S};A.size=function(r){return arguments.length?(t=e=0,n=+r[0],i=+r[1],A):[n-t,i-e]};A.extent=function(r){return arguments.length?(t=+r[0][0],n=+r[1][0],e=+r[0][1],i=+r[1][1],A):[[t,e],[n,i]]};A.iterations=function(t){return arguments.length?(K=+t,A):K};function M({nodes:t,links:e}){for(const[i,r]of t.entries()){r.index=i;r.sourceLinks=[];r.targetLinks=[]}const n=new Map(t.map(((e,n)=>[l(e,n,t),e])));for(const[i,r]of e.entries()){r.index=i;let{source:t,target:e}=r;if(typeof t!=="object")t=r.source=b(n,t);if(typeof e!=="object")e=r.target=b(n,e);t.sourceLinks.push(r);e.targetLinks.push(r)}if(S!=null){for(const{sourceLinks:e,targetLinks:n}of t){e.sort(S);n.sort(S)}}}function I({nodes:t}){for(const e of t){e.value=e.fixedValue===undefined?Math.max(f(e.sourceLinks,k),f(e.targetLinks,k)):e.fixedValue}}function T({nodes:t}){const e=t.length;let n=new Set(t);let i=new Set;let r=0;while(n.size){for(const t of n){t.depth=r;for(const{target:e}of t.sourceLinks){i.add(e)}}if(++r>e)throw new Error("circular link");n=i;i=new Set}}function C({nodes:t}){const e=t.length;let n=new Set(t);let i=new Set;let r=0;while(n.size){for(const t of n){t.height=r;for(const{source:e}of t.targetLinks){i.add(e)}}if(++r>e)throw new Error("circular link");n=i;i=new Set}}function D({nodes:e}){const i=y(e,(t=>t.depth))+1;const s=(n-t-r)/(i-1);const o=new Array(i);for(const n of e){const e=Math.max(0,Math.min(i-1,Math.floor(c.call(null,n,i))));n.layer=e;n.x0=t+e*s;n.x1=n.x0+r;if(o[e])o[e].push(n);else o[e]=[n]}if(u)for(const t of o){t.sort(u)}return o}function N(t){const n=o(t,(t=>(i-e-(t.length-1)*a)/f(t,k)));for(const r of t){let t=e;for(const e of r){e.y0=t;e.y1=t+e.value*n;t=e.y1+a;for(const t of e.sourceLinks){t.width=t.value*n}}t=(i-t+a)/(r.length+1);for(let e=0;et.length))-1));N(n);for(let e=0;e0))continue;let r=(n/i-t.y0)*e;t.y0+=r;t.y1+=r;F(t)}if(u===undefined)r.sort(_);j(r,n)}}function $(t,e,n){for(let i=t.length,r=i-2;r>=0;--r){const i=t[r];for(const t of i){let n=0;let i=0;for(const{target:e,value:s}of t.sourceLinks){let r=s*(e.layer-t.layer);n+=G(t,e)*r;i+=r}if(!(i>0))continue;let r=(n/i-t.y0)*e;t.y0+=r;t.y1+=r;F(t)}if(u===undefined)i.sort(_);j(i,n)}}function j(t,n){const r=t.length>>1;const s=t[r];U(t,s.y0-a,r-1,n);z(t,s.y1+a,r+1,n);U(t,i,t.length-1,n);z(t,e,0,n)}function z(t,e,n,i){for(;n1e-6)r.y0+=s,r.y1+=s;e=r.y1+a}}function U(t,e,n,i){for(;n>=0;--n){const r=t[n];const s=(r.y1-e)*i;if(s>1e-6)r.y0-=s,r.y1-=s;e=r.y0-a}}function F({sourceLinks:t,targetLinks:e}){if(S===undefined){for(const{source:{sourceLinks:t}}of e){t.sort(g)}for(const{target:{targetLinks:e}}of t){e.sort(p)}}}function R(t){if(S===undefined){for(const{sourceLinks:e,targetLinks:n}of t){e.sort(g);n.sort(p)}}}function W(t,e){let n=t.y0-(t.sourceLinks.length-1)*a/2;for(const{target:i,width:r}of t.sourceLinks){if(i===e)break;n+=r+a}for(const{source:i,width:r}of e.targetLinks){if(i===t)break;n-=r}return n}function G(t,e){let n=e.y0-(e.targetLinks.length-1)*a/2;for(const{source:i,width:r}of e.targetLinks){if(i===t)break;n+=r+a}for(const{target:i,width:r}of t.sourceLinks){if(i===e)break;n-=r}return n}return A}var L=Math.PI,E=2*L,K=1e-6,A=E-K;function M(){this._x0=this._y0=this._x1=this._y1=null;this._=""}function I(){return new M}M.prototype=I.prototype={constructor:M,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){if(this._x1!==null){this._x1=this._x0,this._y1=this._y0;this._+="Z"}},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,s){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+s)},arcTo:function(t,e,n,i,r){t=+t,e=+e,n=+n,i=+i,r=+r;var s=this._x1,o=this._y1,a=n-t,l=i-e,c=s-t,h=o-e,u=c*c+h*h;if(r<0)throw new Error("negative radius: "+r);if(this._x1===null){this._+="M"+(this._x1=t)+","+(this._y1=e)}else if(!(u>K));else if(!(Math.abs(h*a-l*c)>K)||!r){this._+="L"+(this._x1=t)+","+(this._y1=e)}else{var f=n-s,y=i-o,d=a*a+l*l,p=f*f+y*y,g=Math.sqrt(d),_=Math.sqrt(u),k=r*Math.tan((L-Math.acos((d+u-p)/(2*g*_)))/2),x=k/_,m=k/g;if(Math.abs(x-1)>K){this._+="L"+(t+x*c)+","+(e+x*h)}this._+="A"+r+","+r+",0,0,"+ +(h*f>c*y)+","+(this._x1=t+m*a)+","+(this._y1=e+m*l)}},arc:function(t,e,n,i,r,s){t=+t,e=+e,n=+n,s=!!s;var o=n*Math.cos(i),a=n*Math.sin(i),l=t+o,c=e+a,h=1^s,u=s?i-r:r-i;if(n<0)throw new Error("negative radius: "+n);if(this._x1===null){this._+="M"+l+","+c}else if(Math.abs(this._x1-l)>K||Math.abs(this._y1-c)>K){this._+="L"+l+","+c}if(!n)return;if(u<0)u=u%E+E;if(u>A){this._+="A"+n+","+n+",0,1,"+h+","+(t-o)+","+(e-a)+"A"+n+","+n+",0,1,"+h+","+(this._x1=l)+","+(this._y1=c)}else if(u>K){this._+="A"+n+","+n+",0,"+ +(u>=L)+","+h+","+(this._x1=t+n*Math.cos(r))+","+(this._y1=e+n*Math.sin(r))}},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};const T=I;var C=Array.prototype.slice;function D(t){return function e(){return t}}function N(t){return t[0]}function P(t){return t[1]}function O(t){return t.source}function $(t){return t.target}function j(t){var e=O,n=$,i=N,r=P,s=null;function o(){var o,a=C.call(arguments),l=e.apply(this,a),c=n.apply(this,a);if(!s)s=o=T();t(s,+i.apply(this,(a[0]=l,a)),+r.apply(this,a),+i.apply(this,(a[0]=c,a)),+r.apply(this,a));if(o)return s=null,o+""||null}o.source=function(t){return arguments.length?(e=t,o):e};o.target=function(t){return arguments.length?(n=t,o):n};o.x=function(t){return arguments.length?(i=typeof t==="function"?t:D(+t),o):i};o.y=function(t){return arguments.length?(r=typeof t==="function"?t:D(+t),o):r};o.context=function(t){return arguments.length?(s=t==null?null:t,o):s};return o}function z(t,e,n,i,r){t.moveTo(e,n);t.bezierCurveTo(e=(e+i)/2,n,e,r,i,r)}function U(t,e,n,i,r){t.moveTo(e,n);t.bezierCurveTo(e,n=(n+r)/2,i,n,i,r)}function F(t,e,n,i,r){var s=pointRadial(e,n),o=pointRadial(e,n=(n+r)/2),a=pointRadial(i,n),l=pointRadial(i,r);t.moveTo(s[0],s[1]);t.bezierCurveTo(o[0],o[1],a[0],a[1],l[0],l[1])}function R(){return j(z)}function W(){return j(U)}function G(){var t=j(F);t.angle=t.x,delete t.x;t.radius=t.y,delete t.y;return t}function V(t){return[t.source.x1,t.y0]}function X(t){return[t.target.x0,t.y1]}function Y(){return R().source(V).target(X)}var q=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=[1,9],n=[1,10],i=[1,5,10,12];var s={trace:(0,r.K2)((function t(){}),"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:(0,r.K2)((function t(e,n,i,r,s,o,a){var l=o.length-1;switch(s){case 7:const t=r.findOrCreateNode(o[l-4].trim().replaceAll('""','"'));const e=r.findOrCreateNode(o[l-2].trim().replaceAll('""','"'));const n=parseFloat(o[l].trim());r.addLink(t,e,n);break;case 8:case 9:case 11:this.$=o[l];break;case 10:this.$=o[l-1];break}}),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:n},{1:[2,6],7:11,10:[1,12]},t(n,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(i,[2,8]),t(i,[2,9]),{19:[1,16]},t(i,[2,11]),{1:[2,1]},{1:[2,5]},t(n,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:n},{15:18,16:7,17:8,18:e,20:n},{18:[1,19]},t(n,[2,3]),{12:[1,20]},t(i,[2,10]),{15:21,16:7,17:8,18:e,20:n},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},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=[],o=[null],a=[],l=this.table,c="",h=0,u=0,f=0,y=2,d=1;var p=a.slice.call(arguments,1);var g=Object.create(this.lexer);var _={yy:{}};for(var k in this.yy){if(Object.prototype.hasOwnProperty.call(this.yy,k)){_.yy[k]=this.yy[k]}}g.setInput(e,_.yy);_.yy.lexer=g;_.yy.parser=this;if(typeof g.yylloc=="undefined"){g.yylloc={}}var x=g.yylloc;a.push(x);var m=g.options&&g.options.ranges;if(typeof _.yy.parseError==="function"){this.parseError=_.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function v(t){i.length=i.length-2*t;o.length=o.length-t;a.length=a.length-t}(0,r.K2)(v,"popStack");function b(){var t;t=s.pop()||g.lex()||d;if(typeof t!=="number"){if(t instanceof Array){s=t;t=s.pop()}t=n.symbols_[t]||t}return t}(0,r.K2)(b,"lex");var w,S,L,E,K,A,M={},I,T,C,D;while(true){L=i[i.length-1];if(this.defaultActions[L]){E=this.defaultActions[L]}else{if(w===null||typeof w=="undefined"){w=b()}E=l[L]&&l[L][w]}if(typeof E==="undefined"||!E.length||!E[0]){var N="";D=[];for(I in l[L]){if(this.terminals_[I]&&I>y){D.push("'"+this.terminals_[I]+"'")}}if(g.showPosition){N="Parse error on line "+(h+1)+":\n"+g.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[w]||w)+"'"}else{N="Parse error on line "+(h+1)+": Unexpected "+(w==d?"end of input":"'"+(this.terminals_[w]||w)+"'")}this.parseError(N,{text:g.match,token:this.terminals_[w]||w,line:g.yylineno,loc:x,expected:D})}if(E[0]instanceof Array&&E.length>1){throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+w)}switch(E[0]){case 1:i.push(w);o.push(g.yytext);a.push(g.yylloc);i.push(E[1]);w=null;if(!S){u=g.yyleng;c=g.yytext;h=g.yylineno;x=g.yylloc;if(f>0){f--}}else{w=S;S=null}break;case 2:T=this.productions_[E[1]][1];M.$=o[o.length-T];M._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column};if(m){M._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]}A=this.performAction.apply(M,[c,u,h,_.yy,E[1],o,a].concat(p));if(typeof A!=="undefined"){return A}if(T){i=i.slice(0,-1*T*2);o=o.slice(0,-1*T);a=a.slice(0,-1*T)}i.push(this.productions_[E[1]][0]);o.push(M.$);a.push(M._$);C=l[i[i.length-2]][i[i.length-1]];i.push(C);break;case 3:return true}}return true}),"parse")};var o=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.pushState("csv");return 4;break;case 1:this.pushState("csv");return 4;break;case 2:return 10;break;case 3:return 5;break;case 4:return 12;break;case 5:this.pushState("escaped_text");return 18;break;case 6:return 20;break;case 7:this.popState("escaped_text");return 18;break;case 8:return 19;break}}),"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:false},escaped_text:{rules:[7,8],inclusive:false},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:true}}};return t}();s.lexer=o;function a(){this.yy={}}(0,r.K2)(a,"Parser");a.prototype=s;s.Parser=a;return new a}();q.parser=q;var Q=q;var B=[];var Z=[];var H=new Map;var J=(0,r.K2)((()=>{B=[];Z=[];H=new Map;(0,i.IU)()}),"clear");var tt=class{constructor(t,e,n=0){this.source=t;this.target=e;this.value=n}static{(0,r.K2)(this,"SankeyLink")}};var et=(0,r.K2)(((t,e,n)=>{B.push(new tt(t,e,n))}),"addLink");var nt=class{constructor(t){this.ID=t}static{(0,r.K2)(this,"SankeyNode")}};var it=(0,r.K2)((t=>{t=i.Y2.sanitizeText(t,(0,i.D7)());let e=H.get(t);if(e===void 0){e=new nt(t);H.set(t,e);Z.push(e)}return e}),"findOrCreateNode");var rt=(0,r.K2)((()=>Z),"getNodes");var st=(0,r.K2)((()=>B),"getLinks");var ot=(0,r.K2)((()=>({nodes:Z.map((t=>({id:t.ID}))),links:B.map((t=>({source:t.source.ID,target:t.target.ID,value:t.value})))})),"getGraph");var at={nodesMap:H,getConfig:(0,r.K2)((()=>(0,i.D7)().sankey),"getConfig"),getNodes:rt,getLinks:st,getGraph:ot,addLink:et,findOrCreateNode:it,getAccTitle:i.iN,setAccTitle:i.SV,getAccDescription:i.m7,setAccDescription:i.EI,getDiagramTitle:i.ab,setDiagramTitle:i.ke,clear:J};var lt=class t{static{(0,r.K2)(this,"Uid")}static{this.count=0}static next(e){return new t(e+ ++t.count)}constructor(t){this.id=t;this.href=`#${t}`}toString(){return"url("+this.href+")"}};var ct={left:l,right:c,center:u,justify:h};var ht=(0,r.K2)((function(t,e,n,o){const{securityLevel:a,sankey:l}=(0,i.D7)();const c=i.ME.sankey;let h;if(a==="sandbox"){h=(0,s.Ltv)("#i"+e)}const u=a==="sandbox"?(0,s.Ltv)(h.nodes()[0].contentDocument.body):(0,s.Ltv)("body");const f=a==="sandbox"?u.select(`[id="${e}"]`):(0,s.Ltv)(`[id="${e}"]`);const y=l?.width??c.width;const d=l?.height??c.width;const p=l?.useMaxWidth??c.useMaxWidth;const g=l?.nodeAlignment??c.nodeAlignment;const _=l?.prefix??c.prefix;const k=l?.suffix??c.suffix;const x=l?.showValues??c.showValues;const m=o.db.getGraph();const v=ct[g];const b=10;const w=S().nodeId((t=>t.id)).nodeWidth(b).nodePadding(10+(x?15:0)).nodeAlign(v).extent([[0,0],[y,d]]);w(m);const L=(0,s.UMr)(s.zt);f.append("g").attr("class","nodes").selectAll(".node").data(m.nodes).join("g").attr("class","node").attr("id",(t=>(t.uid=lt.next("node-")).id)).attr("transform",(function(t){return"translate("+t.x0+","+t.y0+")"})).attr("x",(t=>t.x0)).attr("y",(t=>t.y0)).append("rect").attr("height",(t=>t.y1-t.y0)).attr("width",(t=>t.x1-t.x0)).attr("fill",(t=>L(t.id)));const E=(0,r.K2)((({id:t,value:e})=>{if(!x){return t}return`${t}\n${_}${Math.round(e*100)/100}${k}`}),"getText");f.append("g").attr("class","node-labels").attr("font-size",14).selectAll("text").data(m.nodes).join("text").attr("x",(t=>t.x0(t.y1+t.y0)/2)).attr("dy",`${x?"0":"0.35"}em`).attr("text-anchor",(t=>t.x0(t.uid=lt.next("linearGradient-")).id)).attr("gradientUnits","userSpaceOnUse").attr("x1",(t=>t.source.x1)).attr("x2",(t=>t.target.x0));t.append("stop").attr("offset","0%").attr("stop-color",(t=>L(t.source.id)));t.append("stop").attr("offset","100%").attr("stop-color",(t=>L(t.target.id)))}let M;switch(A){case"gradient":M=(0,r.K2)((t=>t.uid),"coloring");break;case"source":M=(0,r.K2)((t=>L(t.source.id)),"coloring");break;case"target":M=(0,r.K2)((t=>L(t.target.id)),"coloring");break;default:M=A}K.append("path").attr("d",Y()).attr("stroke",M).attr("stroke-width",(t=>Math.max(1,t.width)));(0,i.ot)(void 0,f,0,p)}),"draw");var ut={draw:ht};var ft=(0,r.K2)((t=>{const e=t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,"\n").trim();return e}),"prepareTextForParsing");var yt=(0,r.K2)((t=>`.label {\n font-family: ${t.fontFamily};\n }`),"getStyles");var dt=yt;var pt=Q.parse.bind(Q);Q.parse=t=>pt(ft(t));var gt={styles:dt,parser:Q,db:at,renderer:ut}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/1491.2ba7986aa8d599fec5d0.js b/share/jupyter/lab/static/1491.2ba7986aa8d599fec5d0.js new file mode 100644 index 0000000..08bd2b4 --- /dev/null +++ b/share/jupyter/lab/static/1491.2ba7986aa8d599fec5d0.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(27518);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/share/jupyter/lab/static/1495.13603dd823bbf5eb08b3.js b/share/jupyter/lab/static/1495.13603dd823bbf5eb08b3.js new file mode 100644 index 0000000..62f2202 --- /dev/null +++ b/share/jupyter/lab/static/1495.13603dd823bbf5eb08b3.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1495],{21495:(e,t,O)=>{O.r(t);O.d(t,{autoCloseTags:()=>D,completeFromSchema:()=>Z,xml:()=>I,xmlLanguage:()=>q});var n=O(27421);var r=O(45145);const a=1,l=2,s=3,o=4,i=5,y=35,c=36,p=37,u=11,$=13;function f(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function g(e){return e==9||e==10||e==13||e==32}let S=null,m=null,d=0;function h(e,t){let O=e.pos+t;if(m==e&&d==O)return S;while(g(e.peek(t)))t++;let n="";for(;;){let O=e.peek(t);if(!f(O))break;n+=String.fromCharCode(O);t++}m=e;d=O;return S=n||null}function v(e,t){this.name=e;this.parent=t;this.hash=t?t.hash:0;for(let O=0;O{if(e.next!=60)return;e.advance();if(e.next==47){e.advance();let O=h(e,0);if(!O)return e.acceptToken(i);if(t.context&&O==t.context.name)return e.acceptToken(l);for(let n=t.context;n;n=n.parent)if(n.name==O)return e.acceptToken(s,-2);e.acceptToken(o)}else if(e.next!=33&&e.next!=63){return e.acceptToken(a)}}),{contextual:true});function _(e,t){return new n.Lu((O=>{for(let n=0,r=0;;r++){if(O.next<0){if(r)O.acceptToken(e);break}if(O.next==t.charCodeAt(n)){n++;if(n==t.length){if(r>=t.length)O.acceptToken(e,1-t.length);break}}else{n=O.next==t.charCodeAt(0)?1:0}O.advance()}}))}const C=_(y,"--\x3e");const b=_(c,"?>");const w=_(p,"]]>");const W=(0,r.styleTags)({Text:r.tags.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":r.tags.angleBracket,TagName:r.tags.tagName,"MismatchedCloseTag/Tagname":[r.tags.tagName,r.tags.invalid],AttributeName:r.tags.attributeName,AttributeValue:r.tags.attributeValue,Is:r.tags.definitionOperator,"EntityReference CharacterReference":r.tags.character,Comment:r.tags.blockComment,ProcessingInst:r.tags.processingInstruction,DoctypeDecl:r.tags.documentMeta,Cdata:r.tags.special(r.tags.string)});const V=n.U1.deserialize({version:14,states:",SOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DS'#DSOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C{'#C{O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C|'#C|O$dOrO,59^OOOP,59^,59^OOOS'#C}'#C}O$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6y-E6yOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6z-E6zOOOP1G.x1G.xOOOS-E6{-E6{OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'jO!bO,59eOOOO-E6w-E6wO'xOpO1G.uO'xOpO1G.uOOOP1G.u1G.uO(QOpO7+$fOOOP7+$f7+$fO(YO!bO<`#X;'S%y;'S;=`&_<%lO%yX>eV{WOr%ysv%yw#T%y#T#U>z#U;'S%y;'S;=`&_<%lO%yX?PV{WOr%ysv%yw#h%y#h#i?f#i;'S%y;'S;=`&_<%lO%yX?kV{WOr%ysv%yw#T%y#T#Ue.from<=O&&e.to>=O));let r=n&&n.getChild("AttributeName");return r?e.sliceString(r.from,r.to):""}function R(e){for(let t=e&&e.parent;t;t=t.parent)if(t.name=="Element")return t;return null}function Y(e,t){var O;let n=(0,x.syntaxTree)(e).resolveInner(t,-1),r=null;for(let a=n;!r&&a.parent;a=a.parent)if(a.name=="OpenTag"||a.name=="CloseTag"||a.name=="SelfClosingTag"||a.name=="MismatchedCloseTag")r=a;if(r&&(r.to>t||r.lastChild.type.isError)){let e=r.parent;if(n.name=="TagName")return r.name=="CloseTag"||r.name=="MismatchedCloseTag"?{type:"closeTag",from:n.from,context:e}:{type:"openTag",from:n.from,context:R(e)};if(n.name=="AttributeName")return{type:"attrName",from:n.from,context:r};if(n.name=="AttributeValue")return{type:"attrValue",from:n.from,context:r};let O=n==r||n.name=="Attribute"?n.childBefore(t):n;if((O===null||O===void 0?void 0:O.name)=="StartTag")return{type:"openTag",from:t,context:R(e)};if((O===null||O===void 0?void 0:O.name)=="StartCloseTag"&&O.to<=t)return{type:"closeTag",from:t,context:e};if((O===null||O===void 0?void 0:O.name)=="Is")return{type:"attrValue",from:t,context:r};if(O)return{type:"attrName",from:t,context:r};return null}else if(n.name=="StartCloseTag"){return{type:"closeTag",from:t,context:n.parent}}while(n.parent&&n.to==t&&!((O=n.lastChild)===null||O===void 0?void 0:O.type.isError))n=n.parent;if(n.name=="Element"||n.name=="Text"||n.name=="Document")return{type:"tag",from:t,context:n.name=="Element"?n:R(n)};return null}class j{constructor(e,t,O){this.attrs=t;this.attrValues=O;this.children=[];this.name=e.name;this.completion=Object.assign(Object.assign({type:"type"},e.completion||{}),{label:this.name});this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name});this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"",boost:2});this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"});this.text=e.textContent?e.textContent.map((e=>({label:e,type:"text"}))):[]}}const z=/^[:\-\.\w\u00b7-\uffff]*$/;function A(e){return Object.assign(Object.assign({type:"property"},e.completion||{}),{label:e.name})}function N(e){return typeof e=="string"?{label:`"${e}"`,type:"constant"}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{label:`"${e.label}"`})}function Z(e,t){let O=[],n=[];let r=Object.create(null);for(let o of t){let e=A(o);O.push(e);if(o.global)n.push(e);if(o.values)r[o.name]=o.values.map(N)}let a=[],l=[];let s=Object.create(null);for(let o of e){let e=n,t=r;if(o.attributes)e=e.concat(o.attributes.map((e=>{if(typeof e=="string")return O.find((t=>t.label==e))||{label:e,type:"property"};if(e.values){if(t==r)t=Object.create(t);t[e.name]=e.values.map(N)}return A(e)})));let i=new j(o,e,t);s[i.name]=i;a.push(i);if(o.top)l.push(i)}if(!l.length)l=a;for(let o=0;o{var t;let{doc:O}=e.state,o=Y(e.state,e.pos);if(!o||o.type=="tag"&&!e.explicit)return null;let{type:i,from:y,context:c}=o;if(i=="openTag"){let e=l;let t=E(O,c);if(t){let O=s[t];e=(O===null||O===void 0?void 0:O.children)||a}return{from:y,options:e.map((e=>e.completion)),validFor:z}}else if(i=="closeTag"){let n=E(O,c);return n?{from:y,to:e.pos+(O.sliceString(e.pos,e.pos+1)==">"?1:0),options:[((t=s[n])===null||t===void 0?void 0:t.closeNameCompletion)||{label:n+">",type:"type"}],validFor:z}:null}else if(i=="attrName"){let e=s[k(O,c)];return{from:y,options:(e===null||e===void 0?void 0:e.attrs)||n,validFor:z}}else if(i=="attrValue"){let t=G(O,c,y);if(!t)return null;let n=s[k(O,c)];let a=((n===null||n===void 0?void 0:n.attrValues)||r)[t];if(!a||!a.length)return null;return{from:y,to:e.pos+(O.sliceString(e.pos,e.pos+1)=='"'?1:0),options:a,validFor:/^"[^"]*"?$/}}else if(i=="tag"){let t=E(O,c),n=s[t];let r=[],o=c&&c.lastChild;if(t&&(!o||o.name!="CloseTag"||k(O,o)!=t))r.push(n?n.closeCompletion:{label:"",type:"type",boost:2});let i=r.concat(((n===null||n===void 0?void 0:n.children)||(c?a:l)).map((e=>e.openCompletion)));if(c&&(n===null||n===void 0?void 0:n.text.length)){let t=c.firstChild;if(t.to>e.pos-20&&!/\S/.test(e.state.sliceDoc(t.to,e.pos)))i=i.concat(n.text)}return{from:y,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}else{return null}}}const q=x.LRLanguage.define({name:"xml",parser:V.configure({props:[x.indentNodeProp.add({Element(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),x.foldNodeProp.add({Element(e){let t=e.firstChild,O=e.lastChild;if(!t||t.name!="OpenTag")return null;return{from:t.to,to:O.name=="CloseTag"?O.from:e.to}}}),x.bracketMatchingHandle.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/$/}});function I(e={}){let t=[q.data.of({autocomplete:Z(e.elements||[],e.attributes||[])})];if(e.autoCloseTags!==false)t.push(D);return new x.LanguageSupport(q,t)}function U(e,t,O=e.length){if(!t)return"";let n=t.firstChild;let r=n&&n.getChild("TagName");return r?e.sliceString(r.from,Math.min(r.to,O)):""}const D=Q.EditorView.inputHandler.of(((e,t,O,n,r)=>{if(e.composing||e.state.readOnly||t!=O||n!=">"&&n!="/"||!q.isActiveAt(e.state,t,-1))return false;let a=r(),{state:l}=a;let s=l.changeByRange((e=>{var t,O,r;let{head:a}=e;let s=l.doc.sliceString(a-1,a)==n;let o=(0,x.syntaxTree)(l).resolveInner(a,-1),i;if(s&&n==">"&&o.name=="EndTag"){let n=o.parent;if(((O=(t=n.parent)===null||t===void 0?void 0:t.lastChild)===null||O===void 0?void 0:O.name)!="CloseTag"&&(i=U(l.doc,n.parent,a))){let t=a+(l.doc.sliceString(a,a+1)===">"?1:0);let O=``;return{range:e,changes:{from:a,to:t,insert:O}}}}else if(s&&n=="/"&&o.name=="StartCloseTag"){let e=o.parent;if(o.from==a-2&&((r=e.lastChild)===null||r===void 0?void 0:r.name)!="CloseTag"&&(i=U(l.doc,e,a))){let e=a+(l.doc.sliceString(a,a+1)===">"?1:0);let t=`${i}>`;return{range:X.EditorSelection.cursor(a+t.length,-1),changes:{from:a,to:e,insert:t}}}}return{range:e}}));if(s.changes.empty)return false;e.dispatch([a,l.update(s,{userEvent:"input.complete",scrollIntoView:true})]);return true}))}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/1561.dae72f9e395f056aada7.js b/share/jupyter/lab/static/1561.dae72f9e395f056aada7.js new file mode 100644 index 0000000..5256bee --- /dev/null +++ b/share/jupyter/lab/static/1561.dae72f9e395f056aada7.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1561],{85054:(t,e,a)=>{a.d(e,{S:()=>n});var r=a(70416);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,r.K2)(n,"populateCommonDb")},41561:(t,e,a)=>{a.d(e,{diagram:()=>F});var r=a(29479);var n=a(85054);var s=a(29131);var i=a(42418);var o=a(70416);var c=a(24010);var l={showLegend:true,ticks:5,max:null,min:0,graticule:"circle"};var d={axes:[],curves:[],options:l};var p=structuredClone(d);var g=i.UI.radar;var u=(0,o.K2)((()=>{const t=(0,s.$t)({...g,...(0,i.zj)().radar});return t}),"getConfig");var h=(0,o.K2)((()=>p.axes),"getAxes");var x=(0,o.K2)((()=>p.curves),"getCurves");var m=(0,o.K2)((()=>p.options),"getOptions");var v=(0,o.K2)((t=>{p.axes=t.map((t=>({name:t.name,label:t.label??t.name})))}),"setAxes");var $=(0,o.K2)((t=>{p.curves=t.map((t=>({name:t.name,label:t.label??t.name,entries:f(t.entries)})))}),"setCurves");var f=(0,o.K2)((t=>{if(t[0].axis==void 0){return t.map((t=>t.value))}const e=h();if(e.length===0){throw new Error("Axes must be populated before curves for reference entries")}return e.map((e=>{const a=t.find((t=>t.axis?.$refText===e.name));if(a===void 0){throw new Error("Missing entry for axis "+e.label)}return a.value}))}),"computeCurveEntries");var y=(0,o.K2)((t=>{const e=t.reduce(((t,e)=>{t[e.name]=e;return t}),{});p.options={showLegend:e.showLegend?.value??l.showLegend,ticks:e.ticks?.value??l.ticks,max:e.max?.value??l.max,min:e.min?.value??l.min,graticule:e.graticule?.value??l.graticule}}),"setOptions");var b=(0,o.K2)((()=>{(0,i.IU)();p=structuredClone(d)}),"clear");var w={getAxes:h,getCurves:x,getOptions:m,setAxes:v,setCurves:$,setOptions:y,getConfig:u,clear:b,setAccTitle:i.SV,getAccTitle:i.iN,setDiagramTitle:i.ke,getDiagramTitle:i.ab,getAccDescription:i.m7,setAccDescription:i.EI};var C=(0,o.K2)((t=>{(0,n.S)(t,w);const{axes:e,curves:a,options:r}=t;w.setAxes(e);w.setCurves(a);w.setOptions(r)}),"populate");var M={parse:(0,o.K2)((async t=>{const e=await(0,c.qg)("radar",t);o.Rm.debug(e);C(e)}),"parse")};var K=(0,o.K2)(((t,e,a,n)=>{const s=n.db;const i=s.getAxes();const o=s.getCurves();const c=s.getOptions();const l=s.getConfig();const d=s.getDiagramTitle();const p=(0,r.D)(e);const g=L(p,l);const u=c.max??Math.max(...o.map((t=>Math.max(...t.entries))));const h=c.min;const x=Math.min(l.width,l.height)/2;T(g,i,x,c.ticks,c.graticule);k(g,i,x,l);A(g,i,o,h,u,c.graticule,l);I(g,o,c.showLegend,l);g.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-l.height/2-l.marginTop)}),"draw");var L=(0,o.K2)(((t,e)=>{const a=e.width+e.marginLeft+e.marginRight;const r=e.height+e.marginTop+e.marginBottom;const n={x:e.marginLeft+e.width/2,y:e.marginTop+e.height/2};t.attr("viewbox",`0 0 ${a} ${r}`).attr("width",a).attr("height",r);return t.append("g").attr("transform",`translate(${n.x}, ${n.y})`)}),"drawFrame");var T=(0,o.K2)(((t,e,a,r,n)=>{if(n==="circle"){for(let e=0;e{const a=2*e*Math.PI/n-Math.PI/2;const r=i*Math.cos(a);const s=i*Math.sin(a);return`${r},${s}`})).join(" ");t.append("polygon").attr("points",o).attr("class","radarGraticule")}}}),"drawGraticule");var k=(0,o.K2)(((t,e,a,r)=>{const n=e.length;for(let s=0;s{if(e.entries.length!==o){return}const l=e.entries.map(((t,e)=>{const a=2*Math.PI*e/o-Math.PI/2;const s=O(t,r,n,c);const i=s*Math.cos(a);const l=s*Math.sin(a);return{x:i,y:l}}));if(s==="circle"){t.append("path").attr("d",S(l,i.curveTension)).attr("class",`radarCurve-${a}`)}else if(s==="polygon"){t.append("polygon").attr("points",l.map((t=>`${t.x},${t.y}`)).join(" ")).attr("class",`radarCurve-${a}`)}}))}(0,o.K2)(A,"drawCurves");function O(t,e,a,r){const n=Math.min(Math.max(t,e),a);return r*(n-e)/(a-e)}(0,o.K2)(O,"relativeRadius");function S(t,e){const a=t.length;let r=`M${t[0].x},${t[0].y}`;for(let n=0;n{const r=t.append("g").attr("transform",`translate(${n}, ${s+a*i})`);r.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${a}`);r.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(e.label)}))}(0,o.K2)(I,"drawLegend");var D={draw:K};var z=(0,o.K2)(((t,e)=>{let a="";for(let r=0;r{const e=(0,i.P$)();const a=(0,i.zj)();const r=(0,s.$t)(e,a.themeVariables);const n=(0,s.$t)(r.radar,t);return{themeVariables:r,radarOptions:n}}),"buildRadarStyleOptions");var _=(0,o.K2)((({radar:t}={})=>{const{themeVariables:e,radarOptions:a}=E(t);return`\n\t.radarTitle {\n\t\tfont-size: ${e.fontSize};\n\t\tcolor: ${e.titleColor};\n\t\tdominant-baseline: hanging;\n\t\ttext-anchor: middle;\n\t}\n\t.radarAxisLine {\n\t\tstroke: ${a.axisColor};\n\t\tstroke-width: ${a.axisStrokeWidth};\n\t}\n\t.radarAxisLabel {\n\t\tdominant-baseline: middle;\n\t\ttext-anchor: middle;\n\t\tfont-size: ${a.axisLabelFontSize}px;\n\t\tcolor: ${a.axisColor};\n\t}\n\t.radarGraticule {\n\t\tfill: ${a.graticuleColor};\n\t\tfill-opacity: ${a.graticuleOpacity};\n\t\tstroke: ${a.graticuleColor};\n\t\tstroke-width: ${a.graticuleStrokeWidth};\n\t}\n\t.radarLegendText {\n\t\ttext-anchor: start;\n\t\tfont-size: ${a.legendFontSize}px;\n\t\tdominant-baseline: hanging;\n\t}\n\t${z(e,a)}\n\t`}),"styles");var F={parser:M,db:w,renderer:D,styles:_}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/1599.11abc92e77fd73c17788.js b/share/jupyter/lab/static/1599.11abc92e77fd73c17788.js new file mode 100644 index 0000000..702fc3a --- /dev/null +++ b/share/jupyter/lab/static/1599.11abc92e77fd73c17788.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1599],{81599:(a,r,e)=>{e.d(r,{diagram:()=>l});var t=e(87756);var n=e(29479);var s=e(42418);var i=e(70416);var p=e(24010);var o={parse:(0,i.K2)((async a=>{const r=await(0,p.qg)("info",a);i.Rm.debug(r)}),"parse")};var v={version:t.n.version+(true?"":0)};var d=(0,i.K2)((()=>v.version),"getVersion");var c={getVersion:d};var u=(0,i.K2)(((a,r,e)=>{i.Rm.debug("rendering info diagram\n"+a);const t=(0,n.D)(r);(0,s.a$)(t,100,400,true);const p=t.append("g");p.append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${e}`)}),"draw");var g={draw:u};var l={parser:o,db:c,renderer:g}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/161.fffb4847807ab2a6d16f.js b/share/jupyter/lab/static/161.fffb4847807ab2a6d16f.js new file mode 100644 index 0000000..153a9a9 --- /dev/null +++ b/share/jupyter/lab/static/161.fffb4847807ab2a6d16f.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[161],{60161:(n,e,t)=>{"use strict";t.r(e);t.d(e,{render:()=>f});var r=t(21148);var i=t(1218);var a=t(62954);var c=t.n(a);var u=(0,r.K)(((n,e,{parentById:t})=>{const r=new Set;let i=n;if(n===e){return t[n]||"root"}while(i){r.add(i);if(i===e){return i}i=t[i]}i=e;while(i){if(r.has(i)){return i}i=t[i]}return"root"}),"findCommonAncestor");var s=1e-4;function o(n,e){if(!n||!e){return 0}return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}(0,r.K)(o,"distance");var f=(0,r.K)((async(n,e,{common:t,getConfig:a,insertCluster:f,insertEdge:h,insertEdgeLabel:l,insertMarkers:b,insertNode:w,interpolateToCurve:d,labelHelper:g,log:v,positionEdgeLabel:p},{algorithm:m})=>{const k={};const y={};const M=(0,r.K)((async(n,e,t,r)=>{const i={width:0,height:0};const c=a();if(!r.isGroup){const t={id:r.id,width:r.width,height:r.height,label:r.label,isGroup:r.isGroup,shape:r.shape,padding:r.padding,cssClasses:r.cssClasses,cssStyles:r.cssStyles,look:r.look,parentId:r.parentId};e.children.push(t);k[r.id]=t;const i=await w(n,r,{config:c,dir:r.dir});const a=i.node().getBBox();t.domId=i;t.calcIntersect=r.calcIntersect;t.width=a.width;t.height=a.height}else{const a={...r,children:[]};e.children.push(a);k[r.id]=a;await T(n,t,a,r.id);if(r.label){const{shapeSvg:e,bbox:t}=await g(n,r,void 0,true);i.width=t.width;i.wrappingWidth=c.flowchart.wrappingWidth;i.height=t.height-2;i.labelNode=e.node();e.remove()}else{i.width=0;i.height=0}a.labelData=i;a.domId=n}}),"addVertex");const T=(0,r.K)((async function(n,e,t,r){const i=e.filter((n=>n?.parentId===r));v.info("addVertices APA12",i,r);await Promise.all(i.map((async r=>{await M(n,t,e,r)})));return t}),"addVertices");const j=(0,r.K)((async(n,e,t,r,i,a)=>{await Promise.all(t.map((async function(t){if(t){k[t.id]=t;k[t.id].offset={posX:t.x+n,posY:t.y+e,x:n,y:e,depth:a,width:Math.max(t.width,t.labels?t.labels[0]?.width||0:0),height:t.height};if(t.isGroup){v.debug("id abc88 subgraph = ",t.id,t.x,t.y,t.labelData);const n=i.insert("g").attr("class","subgraph");const e=JSON.parse(JSON.stringify(t));e.x=t.offset.posX+t.width/2;e.y=t.offset.posY+t.height/2;e.width=Math.max(e.width,t.labelData.width);await f(n,e);v.debug("id (UIO)= ",t.id,t.width,t.shape,t.labels)}else{v.info("id NODE = ",t.id,t.x,t.y,n,e,t.domId.node(),`translate(${t.x+n+t.width/2}, ${t.y+e+t.height/2})`);t.domId.attr("transform",`translate(${t.x+n+t.width/2}, ${t.y+e+t.height/2})`)}}})));await Promise.all(t.map((async function(t){if(t?.isGroup){await j(n+t.x,e+t.y,t.children,r,i,a+1)}})))}),"drawNodes");const E=(0,r.K)((n=>{const e={parentById:{},childrenById:{}};const t=n.filter((n=>n.isGroup));v.info("Subgraphs - ",t);t.forEach((t=>{const r=n.filter((n=>n.parentId===t.id));r.forEach((n=>{e.parentById[n.id]=t.id;if(e.childrenById[t.id]===void 0){e.childrenById[t.id]=[]}e.childrenById[t.id].push(n)}))}));t.forEach((function(n){const t={id:n.id};if(e.parentById[n.id]!==void 0){t.parent=e.parentById[n.id]}}));return e}),"addSubGraphs");const S=(0,r.K)((n=>{const e=n.start;const t=n.end;const r=e;const i=t;const a=k[n.start.id];const c=k[n.end.id];if(!a||!c){return{source:e,target:t}}return{source:e,target:t,sourceId:r,targetId:i}}),"getEdgeStartEndPoint");const P=(0,r.K)((function(n,e,t){const r=u(n,e,t);if(r===void 0||r==="root"){return{x:0,y:0}}const i=k[r].offset;return{x:i.posX,y:i.posY}}),"calcOffset");const C=(0,r.K)((async function(n,e,r){v.info("abc78 DAGA edges = ",n);const c=n.edges;const u=r.insert("g").attr("class","edgeLabels");const s={};const o=n.direction||"DOWN";let f;let h;await Promise.all(c.map((async function(n){const r=n.id;if(s[r]===void 0){s[r]=0;v.info("abc78 new entry",r,s[r])}else{s[r]++;v.info("abc78 new entry",r,s[r])}const b=r+"_"+s[r];n.id=b;v.info("abc78 new link id to be used is",r,b,s[r]);const w="LS_"+n.start;const g="LE_"+n.end;const p={style:"",labelStyle:""};p.minlen=n.length||1;n.text=n.label;if(n.type==="arrow_open"){p.arrowhead="none"}else{p.arrowhead="normal"}p.arrowTypeStart="arrow_open";p.arrowTypeEnd="arrow_open";switch(n.type){case"double_arrow_cross":p.arrowTypeStart="arrow_cross";case"arrow_cross":p.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":p.arrowTypeStart="arrow_point";case"arrow_point":p.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":p.arrowTypeStart="arrow_circle";case"arrow_circle":p.arrowTypeEnd="arrow_circle";break}let m="";let k="";p.startLabelRight=n.startLabelRight;p.endLabelLeft=n.endLabelLeft;switch(n.stroke){case"normal":m="fill:none;";if(f!==void 0){m=f}if(h!==void 0){k=h}p.thickness="normal";p.pattern="solid";break;case"dotted":p.thickness="normal";p.pattern="dotted";p.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":p.thickness="thick";p.pattern="solid";p.style="stroke-width: 3.5px;fill:none;";break}p.style=p.style+=m;p.labelStyle=p.labelStyle+=k;const y=a();if(n.interpolate!==void 0){p.curve=d(n.interpolate,i.lUB)}else if(c.defaultInterpolate!==void 0){p.curve=d(c.defaultInterpolate,i.lUB)}else{p.curve=d(y.curve,i.lUB)}if(n.text===void 0){if(n.style!==void 0){p.arrowheadStyle="fill: #333"}}else{p.arrowheadStyle="fill: #333";p.labelpos="c"}p.labelType=n.labelType;p.label=(n?.text||"").replace(t.lineBreakRegex,"\n");if(n.style===void 0){p.style=p.style||"stroke: #333; stroke-width: 1.5px;fill:none;"}p.labelStyle=p.labelStyle.replace("color:","fill:");p.id=b;p.classes="flowchart-link "+w+" "+g;const M=await l(u,p);const{source:T,target:j,sourceId:E,targetId:P}=S(n,o);v.debug("abc78 source and target",T,j);e.edges.push({id:"e"+n.start+n.end,...n,sources:[T],targets:[j],sourceId:E,targetId:P,labelEl:M,labels:[{width:p.width,height:p.height,orgWidth:p.width,orgHeight:p.height,text:p.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:p})})));return e}),"addEdges");function I(n){switch(n){case"LR":return"RIGHT";case"RL":return"LEFT";case"TB":return"DOWN";case"BT":return"UP";default:return"DOWN"}}(0,r.K)(I,"dir2ElkDirection");function O(n,e){const t=k[n];if(!t){return}if(t?.layoutOptions===void 0){t.layoutOptions={}}t.layoutOptions["elk.hierarchyHandling"]="INCLUDE_CHILDREN";if(t.id!==e){O(t.parentId,e)}}(0,r.K)(O,"setIncludeChildrenPolicy");const A=new(c());const L=e.select("g");b(L,n.markers,n.type,n.diagramId);let N={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","elk.layered.crossingMinimization.forceNodeModelOrder":n.config.elk?.forceNodeModelOrder,"elk.layered.considerModelOrder.strategy":n.config.elk?.considerModelOrder,"elk.algorithm":m,"nodePlacement.strategy":n.config.elk?.nodePlacementStrategy,"elk.layered.mergeEdges":n.config.elk?.mergeEdges,"elk.direction":"DOWN","spacing.baseValue":35,"elk.layered.unnecessaryBendpoints":true,"elk.layered.cycleBreaking.strategy":n.config.elk?.cycleBreakingStrategy},children:[],edges:[]};v.info("Drawing flowchart using v4 renderer",A);const $=n.direction||"DOWN";N.layoutOptions["elk.direction"]=I($);const D=E(n.nodes);const x=e.insert("g").attr("class","subgraphs");const R=e.insert("g").attr("class","nodes");N=await T(R,n.nodes,N);const K=e.insert("g").attr("class","edges edgePaths");N=await C(n,N,e);const F=n.nodes;F.forEach((e=>{const t=k[e.id];if(D.childrenById[t.id]!==void 0){t.labels=[{text:t.label,width:t?.labelData?.width||50,height:t?.labelData?.height||50},t.width=t.width+2*t.padding,v.debug("UIO node label",t?.labelData?.width,t.padding)];t.layoutOptions={"spacing.baseValue":30,"nodeLabels.placement":"[H_CENTER V_TOP, INSIDE]"};if(t.dir){t.layoutOptions={...t.layoutOptions,"elk.algorithm":m,"elk.direction":I(t.dir),"nodePlacement.strategy":n.config.elk?.nodePlacementStrategy,"elk.layered.mergeEdges":n.config.elk?.mergeEdges,"elk.hierarchyHandling":"SEPARATE_CHILDREN"}}delete t.x;delete t.y;delete t.width;delete t.height}}));v.debug("APA01 processing edges, count:",N.edges.length);N.edges.forEach(((n,e)=>{v.debug("APA01 processing edge",e,":",n);const t=n.sources[0];const r=n.targets[0];v.debug("APA01 source:",t,"target:",r);v.debug("APA01 nodeDb[source]:",k[t]);v.debug("APA01 nodeDb[target]:",k[r]);if(k[t]&&k[r]&&k[t].parentId!==k[r].parentId){const n=u(t,r,D);O(t,n);O(r,n)}}));v.debug("APA01 before");v.debug("APA01 elkGraph structure:",JSON.stringify(N,null,2));v.debug("APA01 elkGraph.children length:",N.children?.length);v.debug("APA01 elkGraph.edges length:",N.edges?.length);N.edges?.forEach(((n,e)=>{v.debug(`APA01 validating edge ${e}:`,n);if(n.sources){n.sources.forEach((n=>{const e=N.children?.some((e=>e.id===n));v.debug(`APA01 source ${n} exists:`,e)}))}if(n.targets){n.targets.forEach((n=>{const e=N.children?.some((e=>e.id===n));v.debug(`APA01 target ${n} exists:`,e)}))}}));let _;try{_=await A.layout(N);v.debug("APA01 after - success");v.debug("APA01 layout result:",JSON.stringify(_,null,2))}catch(B){v.error("APA01 ELK layout error:",B);throw B}await j(0,0,_.children,e,x,0);_.edges?.map((e=>{const t=k[e.sources[0]];const r=D[e.sources[0]];const i=k[e.targets[0]];const a=e.start;const c=e.end;const u=P(a,c,D);v.debug("APA18 offset",u,a," ==> ",c,"edge:",e,"cluster:",r,t);if(e.sections){const r=e.sections[0].startPoint;const a=e.sections[0].endPoint;const c=e.sections[0].bendPoints?e.sections[0].bendPoints:[];const f=c.map((n=>({x:n.x+u.x,y:n.y+u.y})));e.points=[{x:r.x+u.x,y:r.y+u.y},...f,{x:a.x+u.x,y:a.y+u.y}];let l=t.width;let b=i.width;if(t.isGroup){const n=t.domId.node().getBBox();l=Math.max(t.width,t.labels[0].width+t.padding);v.debug("UIO width",t.id,t.with,"bbox.width=",n.width,"lw=",t.labels[0].width,"node:",t.width,"SW = ",l)}if(i.isGroup){const n=i.domId.node().getBBox();b=Math.max(i.width,i.labels[0].width+i.padding);v.debug("UIO width",t.id,t.with,n.width,"EW = ",b,"HTML:",t.innerHTML)}if(t.calcIntersect){const n=t.calcIntersect({x:t.offset.posX+t.width/2,y:t.offset.posY+t.height/2,width:t.width,height:t.height},e.points[0]);if(o(n,e.points[0])>s){e.points.unshift(n)}}if(i.calcIntersect){const n=i.calcIntersect({x:i.offset.posX+i.width/2,y:i.offset.posY+i.height/2,width:i.width,height:i.height},e.points[e.points.length-1]);if(o(n,e.points[e.points.length-1])>s){e.points.push(n)}}const w=h(K,e,y,n.type,t,i,n.diagramId);e.x=e.labels[0].x+u.x+e.labels[0].width/2;e.y=e.labels[0].y+u.y+e.labels[0].height/2;p(e,w)}}))}),"render")},62954:(n,e,t)=>{(function(e){if(true){n.exports=e()}else{var t}})((function(){var n,e,r;return function(){function n(e,t,r){function i(c,u){if(!t[c]){if(!e[c]){var s=undefined;if(!u&&s)return require(c,!0);if(a)return a(c,!0);var o=new Error("Cannot find module '"+c+"'");throw o.code="MODULE_NOT_FOUND",o}var f=t[c]={exports:{}};e[c][0].call(f.exports,(function(n){var t=e[c][1][n];return i(t||n)}),f,f.exports,n,e,t,r)}return t[c].exports}for(var a=undefined,c=0;c0&&arguments[0]!==undefined?arguments[0]:{},r=t.defaultLayoutOptions,a=r===undefined?{}:r,u=t.algorithms,s=u===undefined?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:u,o=t.workerFactory,f=t.workerUrl;i(this,n);this.defaultLayoutOptions=a;this.initialized=false;if(typeof f==="undefined"&&typeof o==="undefined"){throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.")}var h=o;if(typeof f!=="undefined"&&typeof o==="undefined"){h=function n(e){return new Worker(e)}}var l=h(f);if(typeof l.postMessage!=="function"){throw new TypeError("Created worker does not provide"+" the required 'postMessage' function.")}this.worker=new c(l);this.worker.postMessage({cmd:"register",algorithms:s}).then((function(n){return e.initialized=true})).catch(console.err)}r(n,[{key:"layout",value:function n(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},r=t.layoutOptions,i=r===undefined?this.defaultLayoutOptions:r,a=t.logging,c=a===undefined?false:a,u=t.measureExecutionTime,s=u===undefined?false:u;if(!e){return Promise.reject(new Error("Missing mandatory parameter 'graph'."))}return this.worker.postMessage({cmd:"layout",graph:e,layoutOptions:i,options:{logging:c,measureExecutionTime:s}})}},{key:"knownLayoutAlgorithms",value:function n(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function n(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function n(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function n(){if(this.worker)this.worker.terminate()}}]);return n}();t.default=a;var c=function(){function n(e){var t=this;i(this,n);if(e===undefined){throw new Error("Missing mandatory parameter 'worker'.")}this.resolvers={};this.worker=e;this.worker.onmessage=function(n){setTimeout((function(){t.receive(t,n)}),0)}}r(n,[{key:"postMessage",value:function n(e){var t=this.id||0;this.id=t+1;e.id=t;var r=this;return new Promise((function(n,i){r.resolvers[t]=function(e,t){if(e){r.convertGwtStyleError(e);i(e)}else{n(t)}};r.worker.postMessage(e)}))}},{key:"receive",value:function n(e,t){var r=t.data;var i=e.resolvers[r.id];if(i){delete e.resolvers[r.id];if(r.error){i(r.error)}else{i(null,r.data)}}}},{key:"terminate",value:function n(){if(this.worker){this.worker.terminate()}}},{key:"convertGwtStyleError",value:function n(e){if(!e){return}var t=e["__java$exception"];if(t){if(t.cause&&t.cause.backingJsObject){e.cause=t.cause.backingJsObject;this.convertGwtStyleError(e.cause)}delete e["__java$exception"]}}}]);return n}()},{}],2:[function(n,e,r){(function(n){(function(){"use strict";var t;if(typeof window!=="undefined")t=window;else if(typeof n!=="undefined")t=n;else if(typeof self!=="undefined")t=self;var i,a;var c,u,s;function o(){}function f(){}function h(){}function l(){}function b(){}function w(){}function d(){}function g(){}function v(){}function p(){}function m(){}function k(){}function y(){}function M(){}function T(){}function j(){}function E(){}function S(){}function P(){}function C(){}function I(){}function O(){}function A(){}function L(){}function N(){}function $(){}function D(){}function x(){}function R(){}function K(){}function F(){}function _(){}function B(){}function H(){}function U(){}function G(){}function q(){}function X(){}function V(){}function z(){}function W(){}function Q(){}function J(){}function Y(){}function Z(){}function nn(){}function en(){}function tn(){}function rn(){}function an(){}function cn(){}function un(){}function sn(){}function on(){}function fn(){}function hn(){}function ln(){}function bn(){}function wn(){}function dn(){}function gn(){}function vn(){}function pn(){}function mn(){}function kn(){}function yn(){}function Mn(){}function Tn(){}function jn(){}function En(){}function Sn(){}function Pn(){}function Cn(){}function In(){}function On(){}function An(){}function Ln(){}function Nn(){}function $n(){}function Dn(){}function xn(){}function Rn(){}function Kn(){}function Fn(){}function _n(){}function Bn(){}function Hn(){}function Un(){}function Gn(){}function qn(){}function Xn(){}function Vn(){}function zn(){}function Wn(){}function Qn(){}function Jn(){}function Yn(){}function Zn(){}function ne(){}function ee(){}function te(){}function re(){}function ie(){}function ae(){}function ce(){}function ue(){}function se(){}function oe(){}function fe(){}function he(){}function le(){}function be(){}function we(){}function de(){}function ge(){}function ve(){}function pe(){}function me(){}function ke(){}function ye(){}function Me(){}function Te(){}function je(){}function Ee(){}function Se(){}function Pe(){}function Ce(){}function Ie(){}function Oe(){}function Ae(){}function Le(){}function Ne(){}function $e(){}function De(){}function xe(){}function Re(){}function Ke(){}function Fe(){}function _e(){}function Be(){}function He(){}function Ue(){}function Ge(){}function qe(){}function Xe(){}function Ve(){}function ze(){}function We(){}function Qe(){}function Je(){}function Ye(){}function Ze(){}function nt(){}function et(){}function tt(){}function rt(){}function it(){}function at(){}function ct(){}function ut(){}function st(){}function ot(){}function ft(){}function ht(){}function lt(){}function bt(){}function wt(){}function dt(){}function gt(){}function vt(){}function pt(){}function mt(){}function kt(){}function yt(){}function Mt(){}function Tt(){}function jt(){}function Et(){}function St(){}function Pt(){}function Ct(){}function It(){}function Ot(){}function At(){}function Lt(){}function Nt(){}function $t(){}function Dt(){}function xt(){}function Rt(){}function Kt(){}function Ft(){}function _t(){}function Bt(){}function Ht(){}function Ut(){}function Gt(){}function qt(){}function Xt(){}function Vt(){}function zt(){}function Wt(){}function Qt(){}function Jt(){}function Yt(){}function Zt(){}function nr(){}function er(){}function tr(){}function rr(){}function ir(){}function ar(){}function cr(){}function ur(){}function sr(){}function or(){}function fr(){}function hr(){}function lr(){}function br(){}function wr(){}function dr(){}function gr(){}function vr(){}function pr(){}function mr(){}function kr(){}function yr(){}function Mr(){}function Tr(){}function jr(){}function Er(){}function Sr(){}function Pr(){}function Cr(){}function Ir(){}function Or(){}function Ar(){}function Lr(){}function Nr(){}function $r(){}function Dr(){}function xr(){}function Rr(){}function Kr(){}function Fr(){}function _r(){}function Br(){}function Hr(){}function Ur(){}function Gr(){}function qr(){}function Xr(){}function Vr(){}function zr(){}function Wr(){}function Qr(){}function Jr(){}function Yr(){}function Zr(){}function ni(){}function ei(){}function ti(){}function ri(){}function ii(){}function ai(){}function ci(){}function ui(){}function si(){}function oi(){}function fi(){}function hi(){}function li(){}function bi(){}function wi(){}function di(){}function gi(){}function vi(){}function pi(){}function mi(){}function ki(){}function yi(){}function Mi(){}function Ti(){}function ji(){}function Ei(){}function Si(){}function Pi(){}function Ci(){}function Ii(){}function Oi(){}function Ai(){}function Li(){}function Ni(){}function $i(){}function Di(){}function xi(){}function Ri(){}function Ki(){}function Fi(){}function _i(){}function Bi(){}function Hi(){}function Ui(){}function Gi(){}function qi(){}function Xi(){}function Vi(){}function zi(){}function Wi(){}function Qi(){}function Ji(){}function Yi(){}function Zi(){}function na(){}function ea(){}function ta(){}function ra(){}function ia(){}function aa(){}function ca(){}function ua(){}function sa(){}function oa(){}function fa(){}function ha(){}function la(){}function ba(){}function wa(){}function da(){}function ga(){}function va(){}function pa(){}function ma(){}function ka(){}function ya(){}function Ma(){}function Ta(){}function ja(){}function Ea(){}function Sa(){}function Pa(){}function Ca(){}function Ia(){}function Oa(){}function Aa(){}function La(){}function Na(){}function $a(){}function Da(){}function xa(){}function Ra(){}function Ka(){}function Fa(){}function _a(){}function Ba(){}function Ha(){}function Ua(){}function Ga(){}function qa(){}function Xa(){}function Va(){}function za(){}function Wa(){}function Qa(){}function Ja(){}function Ya(){}function Za(){}function nc(){}function ec(){}function tc(){}function rc(){}function ic(){}function ac(){}function cc(){}function uc(){}function sc(){}function oc(){}function fc(){}function hc(){}function lc(){}function bc(){}function wc(){}function dc(){}function gc(){}function vc(){}function pc(){}function mc(){}function kc(){}function yc(){}function Mc(){}function Tc(){}function jc(){}function Ec(){}function Sc(){}function Pc(){}function Cc(){}function Ic(){}function Oc(){}function Ac(){}function Lc(){}function Nc(){}function $c(){}function Dc(){}function xc(){}function Rc(){}function Kc(){}function Fc(){}function _c(){}function Bc(){}function Hc(){}function Uc(){}function Gc(){}function qc(){}function Xc(){}function Vc(){}function zc(){}function Wc(){}function Qc(){}function Jc(){}function Yc(){}function Zc(){}function nu(){}function eu(){}function tu(){}function ru(){}function iu(){}function au(){}function cu(){}function uu(){}function su(){}function ou(){}function fu(){}function hu(){}function lu(){}function bu(){}function wu(){}function du(){}function gu(){}function vu(){}function pu(){}function mu(){}function ku(){}function yu(){}function Mu(){}function Tu(){}function ju(){}function Eu(){}function Su(){}function Pu(){}function Cu(){}function Iu(){}function Ou(){}function Au(){}function Lu(){}function Nu(){}function $u(){}function Du(){}function xu(){}function Ru(){}function Ku(){}function Fu(){}function _u(){}function Bu(){}function Hu(){}function Uu(){}function Gu(){}function qu(){}function Xu(){}function Vu(){}function zu(){}function Wu(){}function Qu(){}function Ju(){}function Yu(){}function Zu(){}function ns(){}function es(){}function ts(){}function rs(){}function is(){}function as(){}function cs(){}function us(){}function ss(){}function os(){}function fs(){}function hs(){}function ls(){}function bs(){}function ws(){}function ds(){}function gs(){}function vs(){}function ps(){}function ms(){}function ks(){}function ys(){}function Ms(){}function Ts(){}function js(){}function Es(){}function Ss(){}function Ps(){}function Cs(){}function Is(){}function Os(){}function As(){}function Ls(){}function Ns(){}function $s(){}function Ds(){}function xs(){}function Rs(){}function Ks(){}function Fs(){}function _s(){}function Bs(){}function Hs(){}function Us(){}function Gs(){}function qs(){}function Xs(){}function Vs(){}function zs(){}function Ws(){}function Qs(){}function Js(){}function Ys(){}function Zs(){}function no(){}function eo(){}function to(){}function ro(){}function io(){}function ao(){}function co(){}function uo(){}function so(){}function oo(){}function fo(){}function ho(){}function lo(){}function bo(){}function wo(){}function go(){}function vo(){}function po(){}function mo(){}function ko(){}function yo(){}function Mo(){}function To(){}function jo(){}function Eo(){}function So(){}function Po(){}function Co(){}function Io(){}function Oo(){}function Ao(){}function Lo(){}function No(){}function $o(){}function Do(){}function xo(){}function Ro(){}function Ko(){}function Fo(){}function _o(){}function Bo(){}function Ho(){}function Uo(){}function Go(){}function qo(){}function Xo(){}function Vo(){}function zo(){}function Wo(){}function Qo(){}function Jo(){}function Yo(){}function Zo(){}function nf(){}function ef(){}function tf(){}function rf(){}function af(){}function cf(){}function uf(){}function sf(){}function of(){}function ff(){}function hf(){}function lf(){}function bf(){}function wf(){}function df(){}function gf(){}function vf(){}function pf(){}function mf(){}function kf(){}function yf(){}function Mf(){}function Tf(){}function jf(){}function Ef(){}function Sf(){}function Pf(){}function Cf(){}function If(){}function Of(){}function Af(){}function Lf(){}function Nf(){}function $f(){}function Df(){}function xf(){}function Rf(){}function Kf(){}function Ff(){}function _f(){}function Bf(){}function Hf(){}function Uf(){}function Gf(){}function qf(){}function Xf(){}function Vf(){}function zf(){}function Wf(){}function Qf(){}function Jf(){}function Yf(){}function Zf(){}function nh(){}function eh(){}function th(){}function rh(){}function ih(){}function ah(){}function ch(){}function uh(){}function sh(){}function oh(){}function fh(){}function hh(){}function lh(){}function bh(){}function wh(){}function dh(){}function gh(){}function vh(){}function ph(){}function mh(){}function kh(){}function yh(){}function Mh(){}function Th(){}function jh(){}function Eh(){}function Sh(){}function Ph(){}function Ch(){}function Ih(){}function Oh(){}function Ah(){}function Lh(){}function Nh(){}function $h(){}function Dh(){}function xh(){}function Rh(){}function Kh(){}function Fh(){}function _h(){}function Bh(){}function Hh(n){}function Uh(n){}function Gh(){yy()}function qh(){ZS()}function Xh(){PEn()}function Vh(){Mbn()}function zh(){oyn()}function Wh(){lOn()}function Qh(){oGn()}function Jh(){Sjn()}function Yh(){Xjn()}function Zh(){nP()}function nl(){VB()}function el(){eP()}function tl(){Lsn()}function rl(){G7()}function il(){Ocn()}function al(){r2()}function cl(){Lcn()}function ul(){znn()}function sl(){e2()}function ol(){Nln()}function fl(){$cn()}function hl(){Ncn()}function ll(){f6()}function bl(){Dcn()}function wl(){IIn()}function dl(){rP()}function gl(){ZYn()}function vl(){IYn()}function pl(){xcn()}function ml(){$sn()}function kl(){i2()}function yl(){Ljn()}function Ml(){c2()}function Tl(){kUn()}function jl(){uDn()}function El(){can()}function Sl(){Udn()}function Pl(){eqn()}function Cl(){u3()}function Il(){aan()}function Ol(){OHn()}function Al(){IOn()}function Ll(){$Hn()}function Nl(){A_n()}function $l(){gIn()}function Dl(){bBn()}function xl(){IMn()}function Rl(){lB()}function Kl(){Aen()}function Fl(){vIn()}function _l(){JYn()}function Bl(){$ln()}function Hl(){nmn()}function Ul(){Dsn()}function Gl(){cXn()}function ql(){jGn()}function Xl(n){cJ(n)}function Vl(n){this.a=n}function zl(n){this.a=n}function Wl(n){this.a=n}function Ql(n){this.a=n}function Jl(n){this.a=n}function Yl(n){this.a=n}function Zl(n){this.a=n}function nb(n){this.a=n}function eb(n){this.a=n}function tb(n){this.a=n}function rb(n){this.a=n}function ib(n){this.a=n}function ab(n){this.a=n}function cb(n){this.a=n}function ub(n){this.a=n}function sb(n){this.a=n}function ob(n){this.a=n}function fb(n){this.a=n}function hb(n){this.a=n}function lb(n){this.a=n}function bb(n){this.a=n}function wb(n){this.a=n}function db(n){this.b=n}function gb(n){this.c=n}function vb(n){this.a=n}function pb(n){this.a=n}function mb(n){this.a=n}function kb(n){this.a=n}function yb(n){this.a=n}function Mb(n){this.a=n}function Tb(n){this.a=n}function jb(n){this.a=n}function Eb(n){this.a=n}function Sb(n){this.a=n}function Pb(n){this.a=n}function Cb(n){this.a=n}function Ib(n){this.a=n}function Ob(n){this.a=n}function Ab(n){this.a=n}function Lb(n){this.a=n}function Nb(n){this.a=n}function $b(){this.a=[]}function Db(n,e){n.a=e}function xb(n,e){n.a=e}function Rb(n,e){n.b=e}function Kb(n,e){n.b=e}function Fb(n,e){n.b=e}function _b(n,e){n.j=e}function Bb(n,e){n.g=e}function Hb(n,e){n.i=e}function Ub(n,e){n.c=e}function Gb(n,e){n.c=e}function qb(n,e){n.d=e}function Xb(n,e){n.d=e}function Vb(n,e){n.k=e}function zb(n,e){n.c=e}function Wb(n,e){n.c=e}function Qb(n,e){n.a=e}function Jb(n,e){n.a=e}function Yb(n,e){n.f=e}function Zb(n,e){n.a=e}function nw(n,e){n.b=e}function ew(n,e){n.d=e}function tw(n,e){n.i=e}function rw(n,e){n.o=e}function iw(n,e){n.r=e}function aw(n,e){n.a=e}function cw(n,e){n.b=e}function uw(n,e){n.e=e}function sw(n,e){n.f=e}function ow(n,e){n.g=e}function fw(n,e){n.e=e}function hw(n,e){n.f=e}function lw(n,e){n.f=e}function bw(n,e){n.a=e}function ww(n,e){n.b=e}function dw(n,e){n.n=e}function gw(n,e){n.a=e}function vw(n,e){n.c=e}function pw(n,e){n.c=e}function mw(n,e){n.c=e}function kw(n,e){n.a=e}function yw(n,e){n.a=e}function Mw(n,e){n.d=e}function Tw(n,e){n.d=e}function jw(n,e){n.e=e}function Ew(n,e){n.e=e}function Sw(n,e){n.g=e}function Pw(n,e){n.f=e}function Cw(n,e){n.j=e}function Iw(n,e){n.a=e}function Ow(n,e){n.a=e}function Aw(n,e){n.b=e}function Lw(n){n.b=n.a}function Nw(n){n.c=n.d.d}function $w(n){this.a=n}function Dw(n){this.a=n}function xw(n){this.a=n}function Rw(n){this.a=n}function Kw(n){this.a=n}function Fw(n){this.a=n}function _w(n){this.a=n}function Bw(n){this.a=n}function Hw(n){this.a=n}function Uw(n){this.a=n}function Gw(n){this.a=n}function qw(n){this.a=n}function Xw(n){this.a=n}function Vw(n){this.a=n}function zw(n){this.b=n}function Ww(n){this.b=n}function Qw(n){this.b=n}function Jw(n){this.a=n}function Yw(n){this.a=n}function Zw(n){this.c=n}function nd(n){this.c=n}function ed(n){this.c=n}function td(n){this.d=n}function rd(n){this.a=n}function id(n){this.a=n}function ad(n){this.a=n}function cd(n){this.a=n}function ud(n){this.a=n}function sd(n){this.a=n}function od(n){this.a=n}function fd(n){this.a=n}function hd(n){this.a=n}function ld(n){this.a=n}function bd(n){this.a=n}function wd(n){this.a=n}function dd(n){this.a=n}function gd(n){this.a=n}function vd(n){this.a=n}function pd(n){this.a=n}function md(n){this.a=n}function kd(n){this.a=n}function yd(n){this.a=n}function Md(n){this.a=n}function Td(n){this.a=n}function jd(n){this.a=n}function Ed(n){this.a=n}function Sd(n){this.a=n}function Pd(n){this.a=n}function Cd(n){this.a=n}function Id(n){this.a=n}function Od(n){this.a=n}function Ad(n){this.a=n}function Ld(n){this.a=n}function Nd(n){this.a=n}function $d(n){this.a=n}function Dd(n){this.a=n}function xd(n){this.a=n}function Rd(n){this.a=n}function Kd(n){this.a=n}function Fd(n){this.a=n}function _d(n){this.a=n}function Bd(n){this.a=n}function Hd(n){this.a=n}function Ud(n){this.a=n}function Gd(n){this.a=n}function qd(n){this.a=n}function Xd(n){this.a=n}function Vd(n){this.a=n}function zd(n){this.a=n}function Wd(n){this.a=n}function Qd(n){this.a=n}function Jd(n){this.e=n}function Yd(n){this.a=n}function Zd(n){this.a=n}function ng(n){this.a=n}function eg(n){this.a=n}function tg(n){this.a=n}function rg(n){this.a=n}function ig(n){this.a=n}function ag(n){this.a=n}function cg(n){this.a=n}function ug(n){this.a=n}function sg(n){this.a=n}function og(n){this.a=n}function fg(n){this.a=n}function hg(n){this.a=n}function lg(n){this.a=n}function bg(n){this.a=n}function wg(n){this.a=n}function dg(n){this.a=n}function gg(n){this.a=n}function vg(n){this.a=n}function pg(n){this.a=n}function mg(n){this.a=n}function kg(n){this.a=n}function yg(n){this.a=n}function Mg(n){this.a=n}function Tg(n){this.a=n}function jg(n){this.a=n}function Eg(n){this.a=n}function Sg(n){this.a=n}function Pg(n){this.a=n}function Cg(n){this.a=n}function Ig(n){this.a=n}function Og(n){this.a=n}function Ag(n){this.a=n}function Lg(n){this.a=n}function Ng(n){this.a=n}function $g(n){this.a=n}function Dg(n){this.a=n}function xg(n){this.a=n}function Rg(n){this.a=n}function Kg(n){this.a=n}function Fg(n){this.a=n}function _g(n){this.a=n}function Bg(n){this.a=n}function Hg(n){this.a=n}function Ug(n){this.a=n}function Gg(n){this.a=n}function qg(n){this.a=n}function Xg(n){this.a=n}function Vg(n){this.a=n}function zg(n){this.a=n}function Wg(n){this.a=n}function Qg(n){this.a=n}function Jg(n){this.a=n}function Yg(n){this.c=n}function Zg(n){this.b=n}function nv(n){this.a=n}function ev(n){this.a=n}function tv(n){this.a=n}function rv(n){this.a=n}function iv(n){this.a=n}function av(n){this.a=n}function cv(n){this.a=n}function uv(n){this.a=n}function sv(n){this.a=n}function ov(n){this.a=n}function fv(n){this.a=n}function hv(n){this.a=n}function lv(n){this.a=n}function bv(n){this.a=n}function wv(n){this.a=n}function dv(n){this.a=n}function gv(n){this.a=n}function vv(n){this.a=n}function pv(n){this.a=n}function mv(n){this.a=n}function kv(n){this.a=n}function yv(n){this.a=n}function Mv(n){this.a=n}function Tv(n){this.a=n}function jv(n){this.a=n}function Ev(n){this.a=n}function Sv(n){this.a=n}function Pv(n){this.a=n}function Cv(n){this.a=n}function Iv(n){this.a=n}function Ov(n){this.a=n}function Av(n){this.a=n}function Lv(n){this.a=n}function Nv(n){this.a=n}function $v(n){this.a=n}function Dv(n){this.a=n}function xv(n){this.a=n}function Rv(n){this.a=n}function Kv(n){this.a=n}function Fv(n){this.a=n}function _v(n){this.a=n}function Bv(n){this.a=n}function Hv(n){this.a=n}function Uv(n){this.a=n}function Gv(n){this.a=n}function qv(n){this.a=n}function Xv(n){this.a=n}function Vv(n){this.a=n}function zv(n){this.a=n}function Wv(n){this.a=n}function Qv(n){this.a=n}function Jv(n){this.a=n}function Yv(n){this.a=n}function Zv(n){this.a=n}function np(n){this.a=n}function ep(n){this.a=n}function tp(n){this.f=n}function rp(n){this.a=n}function ip(n){this.a=n}function ap(n){this.a=n}function cp(n){this.a=n}function up(n){this.a=n}function sp(n){this.a=n}function op(n){this.a=n}function fp(n){this.a=n}function hp(n){this.a=n}function lp(n){this.a=n}function bp(n){this.a=n}function wp(n){this.a=n}function dp(n){this.a=n}function gp(n){this.a=n}function vp(n){this.a=n}function pp(n){this.a=n}function mp(n){this.a=n}function kp(n){this.a=n}function yp(n){this.a=n}function Mp(n){this.a=n}function Tp(n){this.a=n}function jp(n){this.a=n}function Ep(n){this.a=n}function Sp(n){this.a=n}function Pp(n){this.a=n}function Cp(n){this.a=n}function Ip(n){this.a=n}function Op(n){this.a=n}function Ap(n){this.a=n}function Lp(n){this.a=n}function Np(n){this.b=n}function $p(n){this.a=n}function Dp(n){this.a=n}function xp(n){this.a=n}function Rp(n){this.a=n}function Kp(n){this.a=n}function Fp(n){this.a=n}function _p(n){this.a=n}function Bp(n){this.b=n}function Hp(n){this.a=n}function Up(n){this.a=n}function Gp(n){this.a=n}function qp(n){this.a=n}function Xp(n){this.c=n}function Vp(n){this.e=n}function zp(n){this.a=n}function Wp(n){this.a=n}function Qp(n){this.a=n}function Jp(n){this.d=n}function Yp(n){this.a=n}function Zp(n){this.a=n}function nm(n){this.a=n}function em(n){this.e=n}function tm(){this.a=0}function rm(){Fz(this)}function im(){$N(this)}function am(){JQ(this)}function cm(){Hh(this)}function um(){this.c=oat}function sm(n,e){n.b+=e}function om(n,e){e.Wb(n)}function fm(n){return n.a}function hm(n){return n.a}function lm(n){return n.a}function bm(n){return n.a}function wm(n){return n.a}function dm(n){return n.e}function gm(){return null}function vm(){return null}function pm(){Tj();BJn()}function mm(n){n.b.Of(n.e)}function km(n){n.b=new oT}function ym(n,e){n.b=e-n.b}function Mm(n,e){n.a=e-n.a}function Tm(n,e){n.push(e)}function jm(n,e){n.sort(e)}function Em(n,e){e.jd(n.a)}function Sm(n,e){KLn(e,n)}function Pm(n,e,t){n.Yd(t,e)}function Cm(n,e){n.e=e;e.b=n}function Im(n){wB();this.a=n}function Om(n){wB();this.a=n}function Am(n){wB();this.a=n}function Lm(n){iQ();this.a=n}function Nm(n){OZ();Qfe.le(n)}function $m(){$m=O;new rm}function Dm(){jx.call(this)}function xm(){jx.call(this)}function Rm(){Dm.call(this)}function Km(){Dm.call(this)}function Fm(){Dm.call(this)}function _m(){Dm.call(this)}function Bm(){Dm.call(this)}function Hm(){Dm.call(this)}function Um(){Dm.call(this)}function Gm(){Dm.call(this)}function qm(){Dm.call(this)}function Xm(){Dm.call(this)}function Vm(){Dm.call(this)}function zm(){this.a=this}function Wm(){this.Bb|=256}function Qm(){this.b=new dL}function Jm(n,e){n.length=e}function Ym(n,e){ED(n.a,e)}function Zm(n,e){ROn(n.c,e)}function nk(n,e){Gz(n.b,e)}function ek(n,e){pMn(n.a,e)}function tk(n,e){Zdn(n.a,e)}function rk(n,e){Pon(n.e,e)}function ik(n){N$n(n.c,n.b)}function ak(n,e){n.kc().Nb(e)}function ck(n){this.a=xgn(n)}function uk(){this.a=new rm}function sk(){this.a=new rm}function ok(){this.a=new dS}function fk(){this.a=new im}function hk(){this.a=new im}function lk(){this.a=new im}function bk(){this.a=new En}function wk(){this.a=new y7}function dk(){this.a=new ve}function gk(){this.a=new Z0}function vk(){this.a=new KF}function pk(){this.a=new im}function mk(){this.a=new im}function kk(){this.a=new im}function yk(){this.a=new im}function Mk(){this.d=new im}function Tk(){this.a=new s4}function jk(){this.a=new uk}function Ek(){this.a=new rm}function Sk(){this.b=new rm}function Pk(){this.b=new im}function Ck(){this.e=new im}function Ik(){this.a=new wl}function Ok(){this.d=new im}function Ak(){XZ.call(this)}function Lk(){XZ.call(this)}function Nk(){im.call(this)}function $k(){Rm.call(this)}function Dk(){fk.call(this)}function xk(){VF.call(this)}function Rk(){yk.call(this)}function Kk(){cm.call(this)}function Fk(){Kk.call(this)}function _k(){cm.call(this)}function Bk(){_k.call(this)}function Hk(){ly.call(this)}function Uk(){ly.call(this)}function Gk(){ly.call(this)}function qk(){dy.call(this)}function Xk(){ao.call(this)}function Vk(){ao.call(this)}function zk(){vS.call(this)}function Wk(){my.call(this)}function Qk(){my.call(this)}function Jk(){rm.call(this)}function Yk(){rm.call(this)}function Zk(){rm.call(this)}function ny(){Ucn.call(this)}function ey(){uk.call(this)}function ty(){Wm.call(this)}function ry(){FD.call(this)}function iy(){rm.call(this)}function ay(){FD.call(this)}function cy(){rm.call(this)}function uy(){rm.call(this)}function sy(){Mo.call(this)}function oy(){sy.call(this)}function fy(){Mo.call(this)}function hy(){Fh.call(this)}function ly(){this.a=new uk}function by(){this.a=new rm}function wy(){this.a=new im}function dy(){this.a=new rm}function gy(){this.a=new vS}function vy(){this.j=new im}function py(){this.a=new Yj}function my(){this.a=new yo}function ky(){this.a=new Fu}function yy(){yy=O;Tce=new f}function My(){My=O;ase=new Ey}function Ty(){Ty=O;sse=new jy}function jy(){sb.call(this,"")}function Ey(){sb.call(this,"")}function Sy(n){xin.call(this,n)}function Py(n){xin.call(this,n)}function Cy(n){eb.call(this,n)}function Iy(n){VE.call(this,n)}function Oy(n){VE.call(this,n)}function Ay(n){Iy.call(this,n)}function Ly(n){Iy.call(this,n)}function Ny(n){Iy.call(this,n)}function $y(n){f8.call(this,n)}function Dy(n){f8.call(this,n)}function xy(n){U_.call(this,n)}function Ry(n){JE.call(this,n)}function Ky(n){nS.call(this,n)}function Fy(n){nS.call(this,n)}function _y(n){nS.call(this,n)}function By(n){fOn.call(this,n)}function Hy(n){By.call(this,n)}function Uy(n){zV.call(this,n)}function Gy(n){Uy.call(this,n)}function qy(){Nb.call(this,{})}function Xy(){Xy=O;mhe=new C}function Vy(){Vy=O;Eoe=new J$}function zy(){zy=O;_fe=new o}function Wy(){Wy=O;zfe=new M}function Qy(){Qy=O;che=new E}function Jy(n){zD();this.a=n}function Yy(n){Nsn();this.a=n}function Zy(n){oV();this.f=n}function nM(n){oV();this.f=n}function eM(n){hB();this.a=n}function tM(n){n.b=null;n.c=0}function rM(n,e){n.e=e;SFn(n,e)}function iM(n,e){n.a=e;nLn(n)}function aM(n,e,t){n.a[e.g]=t}function cM(n,e,t){aSn(t,n,e)}function uM(n,e){G_(e.i,n.n)}function sM(n,e){Sln(n).Cd(e)}function oM(n,e){n.a.ec().Mc(e)}function fM(n,e){return n.g-e.g}function hM(n,e){return n*n/e}function lM(n){return cJ(n),n}function bM(n){return cJ(n),n}function wM(n){return cJ(n),n}function dM(n){return new Lb(n)}function gM(n){return new eQ(n)}function vM(n){return cJ(n),n}function pM(n){return cJ(n),n}function mM(n){Uy.call(this,n)}function kM(n){Uy.call(this,n)}function yM(n){Uy.call(this,n)}function MM(n){zV.call(this,n)}function TM(n){Uy.call(this,n)}function jM(n){Uy.call(this,n)}function EM(n){Uy.call(this,n)}function SM(n){Uy.call(this,n)}function PM(n){Uy.call(this,n)}function CM(n){Uy.call(this,n)}function IM(n){Uy.call(this,n)}function OM(n){Uy.call(this,n)}function AM(n){Uy.call(this,n)}function LM(n){Uy.call(this,n)}function NM(n){Uy.call(this,n)}function $M(n){cJ(n);this.a=n}function DM(n){dln(n);return n}function xM(n){Yz(n,n.length)}function RM(n){return n.b==n.c}function KM(n){return!!n&&n.b}function FM(n){return!!n&&n.k}function _M(n){return!!n&&n.j}function BM(n,e,t){n.c.Ef(e,t)}function HM(n,e){n.be(e);e.ae(n)}function UM(n){wB();this.a=nQ(n)}function GM(){this.a=TK(nQ(MZn))}function qM(){throw dm(new Um)}function XM(){throw dm(new Um)}function VM(){throw dm(new Um)}function zM(){throw dm(new Um)}function WM(){throw dm(new Um)}function QM(){throw dm(new Um)}function JM(){JM=O;!!(OZ(),Qfe)}function YM(){Fw.call(this,"")}function ZM(){Fw.call(this,"")}function nT(){Fw.call(this,"")}function eT(){Fw.call(this,"")}function tT(n){kM.call(this,n)}function rT(n){kM.call(this,n)}function iT(n){jM.call(this,n)}function aT(n){Qw.call(this,n)}function cT(n){aT.call(this,n)}function uT(n){yx.call(this,n)}function sT(n){eR.call(this,n,0)}function oT(){R2.call(this,12,3)}function fT(n,e){return X0(n,e)}function hT(n,e){return Ren(n,e)}function lT(n,e){return n.a-e.a}function bT(n,e){return n.a-e.a}function wT(n,e){return n.a-e.a}function dT(n,e){return e in n.a}function gT(n){return n.a?n.b:0}function vT(n){return n.a?n.b:0}function pT(n,e,t){e.Cd(n.a[t])}function mT(n,e,t){e.Pe(n.a[t])}function kT(n,e){n.b=new uN(e)}function yT(n,e){n.b=e;return n}function MT(n,e){n.c=e;return n}function TT(n,e){n.f=e;return n}function jT(n,e){n.g=e;return n}function ET(n,e){n.a=e;return n}function ST(n,e){n.f=e;return n}function PT(n,e){n.k=e;return n}function CT(n,e){n.a=e;return n}function IT(n,e){n.e=e;return n}function OT(n,e){n.e=e;return n}function AT(n,e){n.f=e;return n}function LT(n,e){n.b=true;n.d=e}function NT(n,e){return n.b-e.b}function $T(n,e){return n.g-e.g}function DT(n,e){return n?0:e-1}function xT(n,e){return n?0:e-1}function RT(n,e){return n?e-1:0}function KT(n,e){return n.s-e.s}function FT(n,e){return e.rg(n)}function _T(n,e){n.b=e;return n}function BT(n,e){n.a=e;return n}function HT(n,e){n.c=e;return n}function UT(n,e){n.d=e;return n}function GT(n,e){n.e=e;return n}function qT(n,e){n.f=e;return n}function XT(n,e){n.a=e;return n}function VT(n,e){n.b=e;return n}function zT(n,e){n.c=e;return n}function WT(n,e){n.c=e;return n}function QT(n,e){n.b=e;return n}function JT(n,e){n.d=e;return n}function YT(n,e){n.e=e;return n}function ZT(n,e){n.f=e;return n}function nj(n,e){n.g=e;return n}function ej(n,e){n.a=e;return n}function tj(n,e){n.i=e;return n}function rj(n,e){n.j=e;return n}function ij(n,e){IIn();l2(e,n)}function aj(n,e,t){hV(n.a,e,t)}function cj(n){rB.call(this,n)}function uj(n){kvn.call(this,n)}function sj(n){CY.call(this,n)}function oj(n){CY.call(this,n)}function fj(n){_in.call(this,n)}function hj(n){VY.call(this,n)}function lj(n){VY.call(this,n)}function bj(){A$.call(this,"")}function wj(){this.a=0;this.b=0}function dj(){this.b=0;this.a=0}function gj(n,e){n.b=0;Nan(n,e)}function vj(n,e){n.k=e;return n}function pj(n,e){n.j=e;return n}function mj(n,e){n.c=e;n.b=true}function kj(){kj=O;twe=uPn()}function yj(){yj=O;X7e=xEn()}function Mj(){Mj=O;W7e=ZPn()}function Tj(){Tj=O;rtt=hcn()}function jj(){jj=O;Frt=REn()}function Ej(){Ej=O;uot=KEn()}function Sj(){Sj=O;sot=QAn()}function Pj(n){return n.e&&n.e()}function Cj(n){return n.l|n.m<<22}function Ij(n,e){return n.c._b(e)}function Oj(n,e){return zwn(n.b,e)}function Aj(n){return!n?null:n.d}function Lj(n){return!n?null:n.g}function Nj(n){return!n?null:n.i}function $j(n){jK(n);return n.o}function Dj(n,e){n.a+=e;return n}function xj(n,e){n.a+=e;return n}function Rj(n,e){n.a+=e;return n}function Kj(n,e){n.a+=e;return n}function Fj(n,e){while(n.Bd(e));}function _j(n){this.a=new wS(n)}function Bj(){throw dm(new Um)}function Hj(){throw dm(new Um)}function Uj(){throw dm(new Um)}function Gj(){throw dm(new Um)}function qj(){throw dm(new Um)}function Xj(){throw dm(new Um)}function Vj(n){this.a=new VV(n)}function zj(){this.a=new TKn(HQe)}function Wj(){this.b=new TKn(hVe)}function Qj(){this.a=new TKn(EYe)}function Jj(){this.b=new TKn(K1e)}function Yj(){this.b=new TKn(K1e)}function Zj(n){this.a=0;this.b=n}function nE(n){NQn();bYn(this,n)}function eE(n){WQ(n);return n.a}function tE(n){return n.b!=n.d.c}function rE(n,e){return n.d[e.p]}function iE(n,e){return jFn(n,e)}function aE(n,e,t){n.splice(e,t)}function cE(n,e){while(n.Re(e));}function uE(n){n.c?L_n(n):N_n(n)}function sE(){throw dm(new Um)}function oE(){throw dm(new Um)}function fE(){throw dm(new Um)}function hE(){throw dm(new Um)}function lE(){throw dm(new Um)}function bE(){throw dm(new Um)}function wE(){throw dm(new Um)}function dE(){throw dm(new Um)}function gE(){throw dm(new Um)}function vE(){throw dm(new Um)}function pE(){throw dm(new Xm)}function mE(){throw dm(new Xm)}function kE(n){this.a=new yE(n)}function yE(n){iun(this,n,gOn())}function ME(n){return!n||GQ(n)}function TE(n){return Hft[n]!=-1}function jE(){qfe!=0&&(qfe=0);Vfe=-1}function EE(){wce==null&&(wce=[])}function SE(n,e){HD.call(this,n,e)}function PE(n,e){SE.call(this,n,e)}function CE(n,e){this.a=n;this.b=e}function IE(n,e){this.a=n;this.b=e}function OE(n,e){this.a=n;this.b=e}function AE(n,e){this.a=n;this.b=e}function LE(n,e){this.a=n;this.b=e}function NE(n,e){this.a=n;this.b=e}function $E(n,e){this.a=n;this.b=e}function DE(n,e){this.e=n;this.d=e}function xE(n,e){this.b=n;this.c=e}function RE(n,e){this.b=n;this.a=e}function KE(n,e){this.b=n;this.a=e}function FE(n,e){this.b=n;this.a=e}function _E(n,e){this.b=n;this.a=e}function BE(n,e){this.a=n;this.b=e}function HE(n,e){this.a=n;this.b=e}function UE(n,e){this.a=n;this.f=e}function GE(n,e){this.g=n;this.i=e}function qE(n,e){this.f=n;this.g=e}function XE(n,e){this.b=n;this.c=e}function VE(n){GD(n.dc());this.c=n}function zE(n,e){this.a=n;this.b=e}function WE(n,e){this.a=n;this.b=e}function QE(n){this.a=bG(nQ(n),15)}function JE(n){this.a=bG(nQ(n),15)}function YE(n){this.a=bG(nQ(n),85)}function ZE(n){this.b=bG(nQ(n),85)}function nS(n){this.b=bG(nQ(n),51)}function eS(){this.q=new t.Date}function tS(n,e){this.a=n;this.b=e}function rS(n,e){return Lz(n.b,e)}function iS(n,e){return n.b.Hc(e)}function aS(n,e){return n.b.Ic(e)}function cS(n,e){return n.b.Qc(e)}function uS(n,e){return n.b.Hc(e)}function sS(n,e){return n.c.uc(e)}function oS(n,e){return bdn(n.c,e)}function fS(n,e){return n.a._b(e)}function hS(n,e){return n>e&&e0}function FP(n,e){return kwn(n,e)<0}function _P(n,e){return HX(n.a,e)}function BP(n,e){z0.call(this,n,e)}function HP(n){aQ();U_.call(this,n)}function UP(n,e){YX(n,n.length,e)}function GP(n,e){kW(n,n.length,e)}function qP(n,e){return n.a.get(e)}function XP(n,e){return Lz(n.e,e)}function VP(n){return cJ(n),false}function zP(n){this.a=bG(nQ(n),229)}function WP(n){d3.call(this,n,21)}function QP(n,e){qE.call(this,n,e)}function JP(n,e){qE.call(this,n,e)}function YP(n,e){this.b=n;this.a=e}function ZP(n,e){this.d=n;this.e=e}function nC(n,e){this.a=n;this.b=e}function eC(n,e){this.a=n;this.b=e}function tC(n,e){this.a=n;this.b=e}function rC(n,e){this.a=n;this.b=e}function iC(n,e){this.a=n;this.b=e}function aC(n,e){this.b=n;this.a=e}function cC(n,e){this.b=n;this.a=e}function uC(n,e){qE.call(this,n,e)}function sC(n,e){qE.call(this,n,e)}function oC(n,e){qE.call(this,n,e)}function fC(n,e){qE.call(this,n,e)}function hC(n,e){qE.call(this,n,e)}function lC(n,e){qE.call(this,n,e)}function bC(n,e){qE.call(this,n,e)}function wC(n,e){this.b=n;this.a=e}function dC(n,e){qE.call(this,n,e)}function gC(n,e){this.b=n;this.a=e}function vC(n,e){qE.call(this,n,e)}function pC(n,e){this.b=n;this.a=e}function mC(n,e){qE.call(this,n,e)}function kC(n,e){qE.call(this,n,e)}function yC(n,e){qE.call(this,n,e)}function MC(n,e,t){n.splice(e,0,t)}function TC(n,e,t){n.Mb(t)&&e.Cd(t)}function jC(n,e,t){e.Pe(n.a.Ye(t))}function EC(n,e,t){e.Dd(n.a.Ze(t))}function SC(n,e,t){e.Cd(n.a.Kb(t))}function PC(n,e){return Fx(n.c,e)}function CC(n,e){return Fx(n.e,e)}function IC(n,e){qE.call(this,n,e)}function OC(n,e){qE.call(this,n,e)}function AC(n,e){qE.call(this,n,e)}function LC(n,e){qE.call(this,n,e)}function NC(n,e){qE.call(this,n,e)}function $C(n,e){qE.call(this,n,e)}function DC(n,e){this.a=n;this.b=e}function xC(n,e){this.a=n;this.b=e}function RC(n,e){this.a=n;this.b=e}function KC(n,e){this.a=n;this.b=e}function FC(n,e){this.a=n;this.b=e}function _C(n,e){this.a=n;this.b=e}function BC(n,e){this.b=n;this.a=e}function HC(n,e){this.b=n;this.a=e}function UC(n,e){this.b=n;this.a=e}function GC(n,e){this.c=n;this.d=e}function qC(n,e){this.e=n;this.d=e}function XC(n,e){this.a=n;this.b=e}function VC(n,e){this.a=n;this.b=e}function zC(n,e){this.a=n;this.b=e}function WC(n,e){this.b=n;this.a=e}function QC(n,e){this.b=e;this.c=n}function JC(n,e){qE.call(this,n,e)}function YC(n,e){qE.call(this,n,e)}function ZC(n,e){qE.call(this,n,e)}function nI(n,e){qE.call(this,n,e)}function eI(n,e){qE.call(this,n,e)}function tI(n,e){qE.call(this,n,e)}function rI(n,e){qE.call(this,n,e)}function iI(n,e){qE.call(this,n,e)}function aI(n,e){qE.call(this,n,e)}function cI(n,e){qE.call(this,n,e)}function uI(n,e){qE.call(this,n,e)}function sI(n,e){qE.call(this,n,e)}function oI(n,e){qE.call(this,n,e)}function fI(n,e){qE.call(this,n,e)}function hI(n,e){qE.call(this,n,e)}function lI(n,e){qE.call(this,n,e)}function bI(n,e){qE.call(this,n,e)}function wI(n,e){qE.call(this,n,e)}function dI(n,e){qE.call(this,n,e)}function gI(n,e){qE.call(this,n,e)}function vI(n,e){qE.call(this,n,e)}function pI(n,e){qE.call(this,n,e)}function mI(n,e){qE.call(this,n,e)}function kI(n,e){qE.call(this,n,e)}function yI(n,e){qE.call(this,n,e)}function MI(n,e){qE.call(this,n,e)}function TI(n,e){qE.call(this,n,e)}function jI(n,e){qE.call(this,n,e)}function EI(n,e){qE.call(this,n,e)}function SI(n,e){qE.call(this,n,e)}function PI(n,e){qE.call(this,n,e)}function CI(n,e){qE.call(this,n,e)}function II(n,e){qE.call(this,n,e)}function OI(n,e){this.b=n;this.a=e}function AI(n,e){qE.call(this,n,e)}function LI(n,e){this.a=n;this.b=e}function NI(n,e){this.a=n;this.b=e}function $I(n,e){this.a=n;this.b=e}function DI(n,e){qE.call(this,n,e)}function xI(n,e){qE.call(this,n,e)}function RI(n,e){this.a=n;this.b=e}function KI(n,e){LU();return e!=n}function FI(n){PK(n.a);return n.b}function _I(n){U$n(n,n.c);return n}function BI(){kj();return new twe}function HI(){zB();this.a=new BF}function UI(){lFn();this.a=new uk}function GI(){u2();this.b=new uk}function qI(n,e){this.b=n;this.d=e}function XI(n,e){this.a=n;this.b=e}function VI(n,e){this.a=n;this.b=e}function zI(n,e){this.a=n;this.b=e}function WI(n,e){this.b=n;this.a=e}function QI(n,e){qE.call(this,n,e)}function JI(n,e){qE.call(this,n,e)}function YI(n,e){qE.call(this,n,e)}function ZI(n,e){qE.call(this,n,e)}function nO(n,e){qE.call(this,n,e)}function eO(n,e){qE.call(this,n,e)}function tO(n,e){qE.call(this,n,e)}function rO(n,e){qE.call(this,n,e)}function iO(n,e){qE.call(this,n,e)}function aO(n,e){qE.call(this,n,e)}function cO(n,e){qE.call(this,n,e)}function uO(n,e){qE.call(this,n,e)}function sO(n,e){qE.call(this,n,e)}function oO(n,e){qE.call(this,n,e)}function fO(n,e){qE.call(this,n,e)}function hO(n,e){qE.call(this,n,e)}function lO(n,e){qE.call(this,n,e)}function bO(n,e){qE.call(this,n,e)}function wO(n,e){qE.call(this,n,e)}function dO(n,e){qE.call(this,n,e)}function gO(n,e){qE.call(this,n,e)}function vO(n,e){qE.call(this,n,e)}function pO(n,e){qE.call(this,n,e)}function mO(n,e){qE.call(this,n,e)}function kO(n,e){this.b=n;this.a=e}function yO(n,e){this.b=n;this.a=e}function MO(n,e){this.b=n;this.a=e}function TO(n,e){this.b=n;this.a=e}function jO(n,e){this.a=n;this.b=e}function EO(n,e){this.a=n;this.b=e}function SO(n,e){this.a=n;this.b=e}function PO(n,e){this.a=n;this.b=e}function CO(n,e){qE.call(this,n,e)}function IO(n,e){qE.call(this,n,e)}function OO(n,e){qE.call(this,n,e)}function AO(n,e){qE.call(this,n,e)}function LO(n,e){qE.call(this,n,e)}function NO(n,e){qE.call(this,n,e)}function $O(n,e){qE.call(this,n,e)}function DO(n,e){qE.call(this,n,e)}function xO(n,e){qE.call(this,n,e)}function RO(n,e){qE.call(this,n,e)}function KO(n,e){qE.call(this,n,e)}function FO(n,e){qE.call(this,n,e)}function _O(n,e){qE.call(this,n,e)}function BO(n,e){qE.call(this,n,e)}function HO(n,e){qE.call(this,n,e)}function UO(n,e){qE.call(this,n,e)}function GO(n,e){qE.call(this,n,e)}function qO(n,e){qE.call(this,n,e)}function XO(n,e){qE.call(this,n,e)}function VO(n,e){qE.call(this,n,e)}function zO(n,e){this.a=n;this.b=e}function WO(n,e){this.a=n;this.b=e}function QO(n,e){this.a=n;this.b=e}function JO(n,e){this.a=n;this.b=e}function YO(n,e){this.a=n;this.b=e}function ZO(n,e){this.a=n;this.b=e}function nA(n,e){this.a=n;this.b=e}function eA(n,e){this.a=n;this.b=e}function tA(n,e){this.a=n;this.b=e}function rA(n,e){this.a=n;this.b=e}function iA(n,e){this.a=n;this.b=e}function aA(n,e){this.a=n;this.b=e}function cA(n,e){this.a=n;this.b=e}function uA(n,e){this.b=n;this.a=e}function sA(n,e){this.b=n;this.a=e}function oA(n,e){this.b=n;this.a=e}function fA(n,e){this.b=n;this.a=e}function hA(n,e){this.a=n;this.b=e}function lA(n,e){this.a=n;this.b=e}function bA(n,e){qE.call(this,n,e)}function wA(n,e){this.a=n;this.b=e}function dA(n,e){this.a=n;this.b=e}function gA(n,e){qE.call(this,n,e)}function vA(n,e){this.f=n;this.c=e}function pA(n,e){return Fx(n.g,e)}function mA(n,e){return Fx(e.b,n)}function kA(n,e){return Spn(n.a,e)}function yA(n,e){return-n.b.af(e)}function MA(n,e){!!n&&jJ(Zet,n,e)}function TA(n,e){n.i=null;vun(n,e)}function jA(n,e,t){PSn(e,IAn(n,t))}function EA(n,e,t){PSn(e,IAn(n,t))}function SA(n,e){XRn(n.a,bG(e,58))}function PA(n,e){htn(n.a,bG(e,12))}function CA(n,e){this.a=n;this.b=e}function IA(n,e){this.a=n;this.b=e}function OA(n,e){this.a=n;this.b=e}function AA(n,e){this.a=n;this.b=e}function LA(n,e){this.a=n;this.b=e}function NA(n,e){this.d=n;this.b=e}function $A(n,e){this.e=n;this.a=e}function DA(n,e){this.b=n;this.c=e}function xA(n,e){this.i=n;this.g=e}function RA(n,e){this.d=n;this.e=e}function KA(n,e){$rn(new _D(n),e)}function FA(n){return Epn(n.c,n.b)}function _A(n){return!n?null:n.md()}function BA(n){return n==null?null:n}function HA(n){return typeof n===gZn}function UA(n){return typeof n===wZn}function GA(n){return typeof n===dZn}function qA(n,e){return kwn(n,e)==0}function XA(n,e){return kwn(n,e)>=0}function VA(n,e){return kwn(n,e)!=0}function zA(n,e){return ion(n.Kc(),e)}function WA(n,e){return n.Rd().Xb(e)}function QA(n){pvn(n);return n.d.gc()}function JA(n){Gq(n==null);return n}function YA(n,e){n.a+=""+e;return n}function ZA(n,e){n.a+=""+e;return n}function nL(n,e){n.a+=""+e;return n}function eL(n,e){n.a+=""+e;return n}function tL(n,e){n.a+=""+e;return n}function rL(n,e){return n.a+=""+e,n}function iL(n){return""+(cJ(n),n)}function aL(n){Fz(this);Bsn(this,n)}function cL(){t2();uV.call(this)}function uL(n,e){XV.call(this,n,e)}function sL(n,e){XV.call(this,n,e)}function oL(n,e){XV.call(this,n,e)}function fL(n,e){w8(n,e,n.c.b,n.c)}function hL(n,e){w8(n,e,n.a,n.a.a)}function lL(n){b3(n,0);return null}function bL(){this.b=0;this.a=false}function wL(){this.b=0;this.a=false}function dL(){this.b=new wS(lin(12))}function gL(){gL=O;nme=xbn(Kkn())}function vL(){vL=O;hCe=xbn(pKn())}function pL(){pL=O;hze=xbn(bon())}function mL(){mL=O;$m();the=new rm}function kL(n){n.a=0;n.b=0;return n}function yL(n,e){n.a=e.g+1;return n}function ML(n,e){m_.call(this,n,e)}function TL(n,e){bF.call(this,n,e)}function jL(n,e){xA.call(this,n,e)}function EL(n,e){Yx.call(this,n,e)}function SL(n,e){ifn.call(this,n,e)}function PL(n,e){CP();jJ(Qtt,n,e)}function CL(n,e){n.q.setTime(n6(e))}function IL(n){t.clearTimeout(n)}function OL(n){return nQ(n),new sN(n)}function AL(n,e){return BA(n)===BA(e)}function LL(n,e){return n.a.a.a.cc(e)}function NL(n,e){return o1(n.a,0,e)}function $L(n){return IW(bG(n,74))}function DL(n){return c0((cJ(n),n))}function xL(n){return c0((cJ(n),n))}function RL(n){return M$(n.l,n.m,n.h)}function KL(n,e){return k$(n.a,e.a)}function FL(n,e){return oW(n.a,e.a)}function _L(n,e){return bgn(n.a,e.a)}function BL(n,e){return n.indexOf(e)}function HL(n,e){return n.j[e.p]==2}function UL(n,e){return n==e?0:n?1:-1}function GL(n){return n<10?"0"+n:""+n}function qL(n){return typeof n===dZn}function XL(n){return n==DTe||n==KTe}function VL(n){return n==DTe||n==xTe}function zL(n,e){return k$(n.g,e.g)}function WL(n){return Ctn(n.b.b,n,0)}function QL(){vX.call(this,0,0,0,0)}function JL(){cd.call(this,new b8)}function YL(n,e){Ken(n,0,n.length,e)}function ZL(n,e){ED(n.a,e);return e}function nN(n,e){WB();return e.a+=n}function eN(n,e){WB();return e.a+=n}function tN(n,e){WB();return e.c+=n}function rN(n,e){ED(n.c,e);return n}function iN(n,e){yon(n.a,e);return n}function aN(n){this.a=BI();this.b=n}function cN(n){this.a=BI();this.b=n}function uN(n){this.a=n.a;this.b=n.b}function sN(n){this.a=n;Gh.call(this)}function oN(n){this.a=n;Gh.call(this)}function fN(){yY.call(this,0,0,0,0)}function hN(n){return yon(new mJ,n)}function lN(n){return BJ(bG(n,123))}function bN(n){return n.vh()&&n.wh()}function wN(n){return n!=M8e&&n!=T8e}function dN(n){return n==o5e||n==f5e}function gN(n){return n==l5e||n==s5e}function vN(n){return n==_Be||n==FBe}function pN(n,e){return k$(n.g,e.g)}function mN(n,e){return new ifn(e,n)}function kN(n,e){return new ifn(e,n)}function yN(n){return aG(n.b.Kc(),n.a)}function MN(n,e){wbn(n,e);Dan(n,n.D)}function TN(n,e,t){Aan(n,e);Man(n,t)}function jN(n,e,t){Ean(n,e);jan(n,t)}function EN(n,e,t){San(n,e);Pan(n,t)}function SN(n,e,t){Tan(n,e);Ian(n,t)}function PN(n,e,t){Can(n,e);Oan(n,t)}function CN(n,e,t){xK.call(this,n,e,t)}function IN(n){vA.call(this,n,true)}function ON(){QP.call(this,"Tail",3)}function AN(){QP.call(this,"Head",1)}function LN(n){fHn();Xsn.call(this,n)}function NN(n){vX.call(this,n,n,n,n)}function $N(n){n.c=$nn(kce,jZn,1,0,5,1)}function DN(n){n.b&&wXn(n);return n.a}function xN(n){n.b&&wXn(n);return n.c}function RN(n,e){if(Sde){return}n.b=e}function KN(n,e){return n[n.length]=e}function FN(n,e){return n[n.length]=e}function _N(n,e){return Oin(e,d0(n))}function BN(n,e){return Oin(e,d0(n))}function HN(n,e){return Ecn(zW(n.d),e)}function UN(n,e){return Ecn(zW(n.g),e)}function GN(n,e){return Ecn(zW(n.j),e)}function qN(n,e){bF.call(this,n.b,e)}function XN(n,e){cen(Y5(n.a),j2(e))}function VN(n,e){cen(xtn(n.a),E2(e))}function zN(n,e,t){EN(t,t.i+n,t.j+e)}function WN(n,e,t){bQ(n.c[e.g],e.g,t)}function QN(n,e,t){bG(n.c,71).Gi(e,t)}function JN(n,e,t){bQ(n,e,t);return t}function YN(n){Lin(n.Sf(),new Dd(n))}function ZN(n){return n!=null?Vun(n):0}function n$(n){return n==null?0:Vun(n)}function e$(n){eZn();em.call(this,n)}function t$(n){this.a=n;nG.call(this,n)}function r$(){r$=O;t.Math.log(2)}function i$(){i$=O;Fat=(EP(),lnt)}function a$(){a$=O;Vqe=new ovn(j5e)}function c$(){c$=O;new u$;new im}function u$(){new rm;new rm;new rm}function s$(){throw dm(new CM(sce))}function o$(){throw dm(new CM(sce))}function f$(){throw dm(new CM(oce))}function h$(){throw dm(new CM(oce))}function l$(n){this.a=n;ZE.call(this,n)}function b$(n){this.a=n;ZE.call(this,n)}function w$(n,e){iQ();this.a=n;this.b=e}function d$(n,e){nQ(e);bY(n).Jc(new p)}function g$(n,e){zX(n.c,n.c.length,e)}function v$(n){return n.ae?1:0}function y$(n,e){return kwn(n,e)>0?n:e}function M$(n,e,t){return{l:n,m:e,h:t}}function T$(n,e){n.a!=null&&PA(e,n.a)}function j$(n){f2(n,null);b2(n,null)}function E$(n,e,t){return jJ(n.g,t,e)}function S$(n,e,t){return hmn(e,t,n.c)}function P$(n,e,t){return jJ(n.k,t,e)}function C$(n,e,t){yWn(n,e,t);return t}function I$(n,e){a2();return e.n.b+=n}function O$(n){VZ.call(this);this.b=n}function A$(n){RF.call(this);this.a=n}function L$(){QP.call(this,"Range",2)}function N$(n){this.b=n;this.a=new im}function $$(n){this.b=new ce;this.a=n}function D$(n){n.a=new H;n.c=new H}function x$(n){n.a=new rm;n.d=new rm}function R$(n){w2(n,null);d2(n,null)}function K$(n,e){return EWn(n.a,e,null)}function F$(n,e){return jJ(n.a,e.a,e)}function _$(n){return new PO(n.a,n.b)}function B$(n){return new PO(n.c,n.d)}function H$(n){return new PO(n.c,n.d)}function U$(n,e){return ozn(n.c,n.b,e)}function G$(n,e){return n!=null&&Oyn(n,e)}function q$(n,e){return rhn(n.Kc(),e)!=-1}function X$(n){return n.Ob()?n.Pb():null}function V$(n){this.b=(dZ(),new Zw(n))}function z$(n){this.a=n;rm.call(this)}function W$(){Yx.call(this,null,null)}function Q$(){Zx.call(this,null,null)}function J$(){qE.call(this,"INSTANCE",0)}function Y$(){GEn();this.a=new TKn(sTe)}function Z$(n){return Tmn(n,0,n.length)}function nD(n,e){return new ux(n.Kc(),e)}function eD(n,e){return n.a.Bc(e)!=null}function tD(n,e){NVn(n);n.Gc(bG(e,15))}function rD(n,e,t){n.c.bd(e,bG(t,136))}function iD(n,e,t){n.c.Ui(e,bG(t,136))}function aD(n,e){if(n.c){fq(e);X1(e)}}function cD(n,e){n.q.setHours(e);$qn(n,e)}function uD(n,e){UR(e,n.a.a.a,n.a.a.b)}function sD(n,e,t,r){bQ(n.a[e.g],t.g,r)}function oD(n,e,t){return n.a[e.g][t.g]}function fD(n,e){return n.e[e.c.p][e.p]}function hD(n,e){return n.c[e.c.p][e.p]}function lD(n,e){return n.a[e.c.p][e.p]}function bD(n,e){return n.j[e.p]=lRn(e)}function wD(n,e){return n.a.Bc(e)!=null}function dD(n,e){return bM(MK(e.a))<=n}function gD(n,e){return bM(MK(e.a))>=n}function vD(n,e){return o7(n.f,e.Pg())}function pD(n,e){return n.a*e.a+n.b*e.b}function mD(n,e){return n.a0?e/(n*n):e*100}function IR(n,e){return n>0?e*e/n:e*e*100}function OR(n,e){return bG(hrn(n.a,e),34)}function AR(n,e){IIn();return zNn(n,e.e,e)}function LR(n,e,t){iP();return t.Mg(n,e)}function NR(n){can();return n.e.a+n.f.a/2}function $R(n,e,t){can();return t.e.a-n*e}function DR(n){can();return n.e.b+n.f.b/2}function xR(n,e,t){can();return t.e.b-n*e}function RR(n){n.d=new pR(n);n.e=new rm}function KR(){this.a=new U1;this.b=new U1}function FR(n){this.c=n;this.a=1;this.b=1}function _R(n){hYn();km(this);this.Ff(n)}function BR(n,e,t){Aen();n.pf(e)&&t.Cd(n)}function HR(n,e,t){return ED(e,Bvn(n,t))}function UR(n,e,t){n.a+=e;n.b+=t;return n}function GR(n,e,t){n.a*=e;n.b*=t;return n}function qR(n,e){n.a=e.a;n.b=e.b;return n}function XR(n){n.a=-n.a;n.b=-n.b;return n}function VR(n,e,t){n.a-=e;n.b-=t;return n}function zR(n){vS.call(this);kcn(this,n)}function WR(){qE.call(this,"GROW_TREE",0)}function QR(){qE.call(this,"POLYOMINO",0)}function JR(n,e,t){ven.call(this,n,e,t,2)}function YR(n,e,t){Fdn(Y5(n.a),e,j2(t))}function ZR(n,e){IP();Yx.call(this,n,e)}function nK(n,e){OP();Zx.call(this,n,e)}function eK(n,e){OP();nK.call(this,n,e)}function tK(n,e){OP();Zx.call(this,n,e)}function rK(n,e){return n.c.Fc(bG(e,136))}function iK(n,e,t){Fdn(xtn(n.a),e,E2(t))}function aK(n){this.c=n;San(n,0);Pan(n,0)}function cK(n,e){i$();DX.call(this,n,e)}function uK(n,e){i$();cK.call(this,n,e)}function sK(n,e){i$();cK.call(this,n,e)}function oK(n,e){i$();DX.call(this,n,e)}function fK(n,e){i$();sK.call(this,n,e)}function hK(n,e){i$();oK.call(this,n,e)}function lK(n,e){i$();DX.call(this,n,e)}function bK(n,e,t){return e.zl(n.e,n.c,t)}function wK(n,e,t){return e.Al(n.e,n.c,t)}function dK(n,e,t){return eVn(Rtn(n,e),t)}function gK(n,e){return Twn(n.e,bG(e,54))}function vK(n){return n==null?null:xQn(n)}function pK(n){return n==null?null:TOn(n)}function mK(n){return n==null?null:fvn(n)}function kK(n){return n==null?null:fvn(n)}function yK(n){Gq(n==null||UA(n));return n}function MK(n){Gq(n==null||GA(n));return n}function TK(n){Gq(n==null||HA(n));return n}function jK(n){if(n.o!=null){return}hxn(n)}function EK(n){if(!n){throw dm(new _m)}}function SK(n){if(!n){throw dm(new Km)}}function PK(n){if(!n){throw dm(new Xm)}}function CK(n){if(!n){throw dm(new Bm)}}function IK(n){if(!n){throw dm(new Gm)}}function OK(){OK=O;Gtt=new Wk;new Qk}function AK(){AK=O;FQe=new Np("root")}function LK(){Ucn.call(this);this.Bb|=S0n}function NK(n,e){this.d=n;Nw(this);this.b=e}function $K(n,e){Gnn.call(this,n);this.a=e}function DK(n,e){Gnn.call(this,n);this.a=e}function xK(n,e,t){x7.call(this,n,e,t,null)}function RK(n,e,t){x7.call(this,n,e,t,null)}function KK(n,e){this.c=n;DE.call(this,n,e)}function FK(n,e){this.a=n;KK.call(this,n,e)}function _K(n){this.q=new t.Date(n6(n))}function BK(n){if(n>8){return 0}return n+1}function HK(n,e){if(Sde){return}ED(n.a,e)}function UK(n,e){nP();return Ion(e.d.i,n)}function GK(n,e){Lsn();return new lHn(e,n)}function qK(n,e,t){return n.Ne(e,t)<=0?t:e}function XK(n,e,t){return n.Ne(e,t)<=0?e:t}function VK(n,e){return bG(hrn(n.b,e),143)}function zK(n,e){return bG(hrn(n.c,e),233)}function WK(n){return bG(Yq(n.a,n.b),294)}function QK(n){return new PO(n.c,n.d+n.a)}function JK(n){return(cJ(n),n)?1231:1237}function YK(n){return a2(),vN(bG(n,203))}function ZK(){ZK=O;ame=ygn((emn(),b9e))}function nF(n,e){e.a?nDn(n,e):wD(n.a,e.b)}function eF(n,e,t){++n.j;n.tj();xnn(n,e,t)}function tF(n,e,t){++n.j;n.qj(e,n.Zi(e,t))}function rF(n,e,t){var r;r=n.fd(e);r.Rb(t)}function iF(n,e,t){t=FUn(n,e,6,t);return t}function aF(n,e,t){t=FUn(n,e,3,t);return t}function cF(n,e,t){t=FUn(n,e,9,t);return t}function uF(n,e){i1(e,z2n);n.f=e;return n}function sF(n,e){return(e&pZn)%n.d.length}function oF(n,e,t){return gXn(n.c,n.b,e,t)}function fF(n,e){this.c=n;_in.call(this,e)}function hF(n,e){this.a=n;Bp.call(this,e)}function lF(n,e){this.a=n;Bp.call(this,e)}function bF(n,e){Np.call(this,n);this.a=e}function wF(n,e){Xp.call(this,n);this.a=e}function dF(n,e){Xp.call(this,n);this.a=e}function gF(n){wpn.call(this,0,0);this.f=n}function vF(n,e,t){n.a+=Tmn(e,0,t);return n}function pF(n){!n.a&&(n.a=new P);return n.a}function mF(n,e){var t;t=n.e;n.e=e;return t}function kF(n,e){var t;t=e;return!!n.Fe(t)}function yF(n,e){Qx();return n==e?0:n?1:-1}function MF(n,e){n.a.bd(n.b,e);++n.b;n.c=-1}function TF(n){n.b?TF(n.b):n.f.c.zc(n.e,n.d)}function jF(n){Fz(n.e);n.d.b=n.d;n.d.a=n.d}function EF(n,e,t){jS();Db(n,e.Ve(n.a,t))}function SF(n,e,t){return zz(n,bG(e,22),t)}function PF(n,e){return hT(new Array(e),n)}function CF(n){return MV(_V(n,32))^MV(n)}function IF(n){return String.fromCharCode(n)}function OF(n){return n==null?null:n.message}function AF(n,e,t){return n.apply(e,t);var r}function LF(n,e){var t;t=n[H0n];t.call(n,e)}function NF(n,e){var t;t=n[H0n];t.call(n,e)}function $F(n,e){nP();return!Ion(e.d.i,n)}function DF(n,e,t,r){vX.call(this,n,e,t,r)}function xF(){VF.call(this);this.a=new wj}function RF(){this.n=new wj;this.o=new wj}function KF(){this.b=new wj;this.c=new im}function FF(){this.a=new im;this.b=new im}function _F(){this.a=new ve;this.b=new Qm}function BF(){this.b=new b8;this.a=new b8}function HF(){this.b=new uk;this.a=new uk}function UF(){this.b=new rm;this.a=new rm}function GF(){this.b=new Wj;this.a=new Pc}function qF(){this.a=new dl;this.b=new la}function XF(){this.a=new im;this.d=new im}function VF(){this.n=new _k;this.i=new fN}function zF(n){this.a=(Tcn(n,d1n),new H7(n))}function WF(n){this.a=(Tcn(n,d1n),new H7(n))}function QF(n){return n<100?null:new fj(n)}function JF(n,e){return n.n.a=(cJ(e),e)+10}function YF(n,e){return n.n.a=(cJ(e),e)+10}function ZF(n,e){return e==n||wSn(TRn(e),n)}function n_(n,e){return jJ(n.a,e,"")==null}function e_(n,e){var t;t=e.qi(n.a);return t}function t_(n,e){n.a+=e.a;n.b+=e.b;return n}function r_(n,e){n.a-=e.a;n.b-=e.b;return n}function i_(n){Jm(n.j.c,0);n.a=-1;return n}function a_(n,e,t){t=FUn(n,e,11,t);return t}function c_(n,e,t){t!=null&&Jcn(e,yTn(n,t))}function u_(n,e,t){t!=null&&Ycn(e,yTn(n,t))}function s_(n,e,t,r){gz.call(this,n,e,t,r)}function o_(n,e,t,r){gz.call(this,n,e,t,r)}function f_(n,e,t,r){o_.call(this,n,e,t,r)}function h_(n,e,t,r){mz.call(this,n,e,t,r)}function l_(n,e,t,r){mz.call(this,n,e,t,r)}function b_(n,e,t,r){mz.call(this,n,e,t,r)}function w_(n,e,t,r){l_.call(this,n,e,t,r)}function d_(n,e,t,r){l_.call(this,n,e,t,r)}function g_(n,e,t,r){b_.call(this,n,e,t,r)}function v_(n,e,t,r){d_.call(this,n,e,t,r)}function p_(n,e,t,r){Ez.call(this,n,e,t,r)}function m_(n,e){kM.call(this,_re+n+Xte+e)}function k_(n,e){return n.jk().wi().ri(n,e)}function y_(n,e){return n.jk().wi().ti(n,e)}function M_(n,e){return cJ(n),BA(n)===BA(e)}function T_(n,e){return cJ(n),BA(n)===BA(e)}function j_(n,e){return n.b.Bd(new eC(n,e))}function E_(n,e){return n.b.Bd(new tC(n,e))}function S_(n,e){return n.b.Bd(new rC(n,e))}function P_(n,e){return n.e=bG(n.d.Kb(e),159)}function C_(n,e,t){return n.lastIndexOf(e,t)}function I_(n,e,t){return bgn(n[e.a],n[t.a])}function O_(n,e){return Ehn(e,(IYn(),YKe),n)}function A_(n,e){return k$(e.a.d.p,n.a.d.p)}function L_(n,e){return k$(n.a.d.p,e.a.d.p)}function N_(n,e){return bgn(n.c-n.s,e.c-e.s)}function $_(n,e){return bgn(n.b.e.a,e.b.e.a)}function D_(n,e){return bgn(n.c.e.a,e.c.e.a)}function x_(n){return!n.c?-1:Ctn(n.c.a,n,0)}function R_(n){return n==p8e||n==k8e||n==m8e}function K_(n,e){this.c=n;eW.call(this,n,e)}function F_(n,e,t){this.a=n;eR.call(this,e,t)}function __(n){this.c=n;oL.call(this,JZn,0)}function B_(n,e,t){this.c=e;this.b=t;this.a=n}function H_(n){LU();this.d=n;this.a=new KD}function U_(n){wB();this.a=(dZ(),new aT(n))}function G_(n,e){dN(n.f)?txn(n,e):mCn(n,e)}function q_(n,e){wG.call(this,n,n.length,e)}function X_(n,e){if(Sde){return}!!e&&(n.d=e)}function V_(n,e){return G$(e,15)&&W_n(n.c,e)}function z_(n,e,t){return bG(n.c,71).Wk(e,t)}function W_(n,e,t){return bG(n.c,71).Xk(e,t)}function Q_(n,e,t){return bK(n,bG(e,343),t)}function J_(n,e,t){return wK(n,bG(e,343),t)}function Y_(n,e,t){return SPn(n,bG(e,343),t)}function Z_(n,e,t){return GCn(n,bG(e,343),t)}function nB(n,e){return e==null?null:Jwn(n.b,e)}function eB(n){return GA(n)?(cJ(n),n):n.ue()}function tB(n){return!isNaN(n)&&!isFinite(n)}function rB(n){D$(this);XY(this);esn(this,n)}function iB(n){$N(this);kG(this.c,0,n.Pc())}function aB(n,e,t){this.a=n;this.b=e;this.c=t}function cB(n,e,t){this.a=n;this.b=e;this.c=t}function uB(n,e,t){this.d=n;this.b=t;this.a=e}function sB(n){this.a=n;pS();Xon(Date.now())}function oB(n){RQ(n.a);Rnn(n.c,n.b);n.b=null}function fB(){fB=O;wwe=new U;dwe=new G}function hB(){hB=O;jtt=$nn(kce,jZn,1,0,5,1)}function lB(){lB=O;bit=$nn(kce,jZn,1,0,5,1)}function bB(){bB=O;vit=$nn(kce,jZn,1,0,5,1)}function wB(){wB=O;new Im((dZ(),dZ(),lbe))}function dB(n){Hen();return Gan((Ben(),hde),n)}function gB(n){Sbn();return Gan((pnn(),Dde),n)}function vB(n){qkn();return Gan((E8(),yve),n)}function pB(n){Jrn();return Gan((S8(),Eve),n)}function mB(n){nBn();return Gan((bfn(),qve),n)}function kB(n){ran();return Gan((gnn(),upe),n)}function yB(n){Uen();return Gan((dnn(),gpe),n)}function MB(n){rrn();return Gan((vnn(),Ppe),n)}function TB(n){tZn();return Gan((gL(),nme),n)}function jB(n){ufn();return Gan((qen(),kme),n)}function EB(n){jyn();return Gan((Ven(),Xme),n)}function SB(n){Tyn();return Gan((Xen(),jke),n)}function PB(n){XS();return Gan((o6(),Oke),n)}function CB(n){Yrn();return Gan((P8(),xye),n)}function IB(n){trn();return Gan((mnn(),GMe),n)}function OB(n){bIn();return Gan((Frn(),oTe),n)}function AB(n){Jfn();return Gan((Wen(),_Te),n)}function LB(n){zmn();return Gan((zen(),bje),n)}function NB(n,e){if(!n){throw dm(new jM(e))}}function $B(n){if(!n){throw dm(new EM(SZn))}}function DB(n,e){if(n!=e){throw dm(new Gm)}}function xB(n,e,t){this.a=n;this.b=e;this.c=t}function RB(n,e,t){this.a=n;this.b=e;this.c=t}function KB(n,e,t){this.a=n;this.b=e;this.c=t}function FB(n,e,t){this.b=n;this.a=e;this.c=t}function _B(n,e,t){this.b=n;this.c=e;this.a=t}function BB(n,e,t){this.a=n;this.b=e;this.c=t}function HB(n,e,t){this.e=e;this.b=n;this.d=t}function UB(n,e,t){this.b=n;this.a=e;this.c=t}function GB(n,e,t){jS();n.a.Yd(e,t);return e}function qB(n){var e;e=new Sn;e.e=n;return e}function XB(n){var e;e=new Mk;e.b=n;return e}function VB(){VB=O;_Se=new Ft;BSe=new _t}function zB(){zB=O;qCe=new br;GCe=new wr}function WB(){WB=O;$Oe=new Ti;DOe=new ji}function QB(n){yun();return Gan((Q7(),VAe),n)}function JB(n){YYn();return Gan((vL(),hCe),n)}function YB(n){Wfn();return Gan((Jen(),_Ce),n)}function ZB(n){Qfn();return Gan((Qen(),EAe),n)}function nH(n){yPn();return Gan((_rn(),RAe),n)}function eH(n){d_n();return Gan((lon(),gLe),n)}function tH(n){jAn();return Gan((uan(),wNe),n)}function rH(n){V7();return Gan(($8(),pNe),n)}function iH(n){Icn();return Gan((z7(),TNe),n)}function aH(n){ocn();return Gan((W7(),CNe),n)}function cH(n){Emn();return Gan((Brn(),DNe),n)}function uH(n){Zrn();return Gan((O8(),FNe),n)}function sH(n){HIn();return Gan((fan(),p$e),n)}function oH(n){o_n();return Gan((Ohn(),O$e),n)}function fH(n){sfn();return Gan((Y7(),D$e),n)}function hH(n){irn();return Gan((Z7(),_$e),n)}function lH(n){r5();return Gan((I8(),G$e),n)}function bH(n){OSn();return Gan((oan(),f$e),n)}function wH(n){Lhn();return Gan((J7(),GNe),n)}function dH(n){cOn();return Gan((san(),YNe),n)}function gH(n){ntn();return Gan((A8(),t$e),n)}function vH(n){Wvn();return Gan((Urn(),exe),n)}function pH(n){PKn();return Gan((ffn(),NBe),n)}function mH(n){Nwn();return Gan((nnn(),KBe),n)}function kH(n){rMn();return Gan((Yen(),GBe),n)}function yH(n){Myn();return Gan((Hrn(),JBe),n)}function MH(n){CHn();return Gan((Ahn(),oHe),n)}function TH(n){Smn();return Gan((Zen(),dHe),n)}function jH(n){arn();return Gan((L8(),mHe),n)}function EH(n){fcn();return Gan((rnn(),jHe),n)}function SH(n){son();return Gan((enn(),IHe),n)}function PH(n){Aln();return Gan((tnn(),$He),n)}function CH(n){Ebn();return Gan((inn(),_He),n)}function IH(n){scn();return Gan((ann(),qHe),n)}function OH(n){Yfn();return Gan((cnn(),QHe),n)}function AH(n){ucn();return Gan((wnn(),YUe),n)}function LH(n){i5();return Gan((N8(),AGe),n)}function NH(n){p0();return Gan((R8(),Oqe),n)}function $H(n){m0();return Gan((K8(),$qe),n)}function DH(n){q7();return Gan((F8(),TXe),n)}function xH(n){v0();return Gan((_8(),JXe),n)}function RH(n){Njn();return Gan((wtn(),lVe),n)}function KH(n){DHn();return Gan((pL(),hze),n)}function FH(n){Lln();return Gan((unn(),Sze),n)}function _H(n){Tbn();return Gan((btn(),WWe),n)}function BH(n){s3();return Gan((D8(),ZWe),n)}function HH(n){Mun();return Gan((x8(),UQe),n)}function UH(n){YPn();return Gan((Grn(),nJe),n)}function GH(n){jbn();return Gan((snn(),pJe),n)}function qH(n){Len();return Gan((B8(),bJe),n)}function XH(n){kTn();return Gan((ltn(),oYe),n)}function VH(n){uon();return Gan((onn(),wYe),n)}function zH(n){tmn();return Gan((fnn(),SYe),n)}function WH(n){iMn();return Gan((hnn(),$Ye),n)}function QH(n){Xgn();return Gan((lnn(),YYe),n)}function JH(n){h9();return Gan((H8(),ZZe),n)}function YH(n){xsn();return Gan((C8(),ASe),n)}function ZH(n){YIn();return Gan((han(),cEe),n)}function nU(n){ktn();return Gan((bnn(),c1e),n)}function eU(n){ofn();return Gan((U8(),w1e),n)}function tU(n){qRn();return Gan((qrn(),E1e),n)}function rU(n){aP();return Gan((F6(),q1e),n)}function iU(n){Hdn();return Gan((ynn(),F1e),n)}function aU(n){cP();return Gan((_6(),z1e),n)}function cU(n){X7();return Gan((G8(),Y1e),n)}function uU(n){MOn();return Gan((Xrn(),a0e),n)}function sU(n){uP();return Gan((B6(),V0e),n)}function oU(n){Zfn();return Gan((q8(),J0e),n)}function fU(n){Hkn();return Gan((zrn(),y3e),n)}function hU(n){vAn();return Gan((fon(),A3e),n)}function lU(n){aMn();return Gan((lan(),G3e),n)}function bU(n){iPn();return Gan((ban(),l4e),n)}function wU(n){Bdn();return Gan((Vrn(),w5e),n)}function dU(n){ian();return Gan((Mnn(),m5e),n)}function gU(n){qgn();return Gan((dtn(),E5e),n)}function vU(n){HCn();return Gan((wan(),N5e),n)}function pU(n){Dwn();return Gan((knn(),V5e),n)}function mU(n){xjn();return Gan((gtn(),Z5e),n)}function kU(n){ZDn();return Gan((lfn(),f8e),n)}function yU(n){Zkn();return Gan((Wrn(),v8e),n)}function MU(n){FPn();return Gan((dan(),E8e),n)}function TU(n){uNn();return Gan((gan(),N8e),n)}function jU(n){UQn();return Gan((Qrn(),t9e),n)}function EU(n){emn();return Gan((vtn(),d9e),n)}function SU(n){hUn();return Gan((hfn(),S9e),n)}function PU(n){$wn();return Gan((Tnn(),A9e),n)}function CU(n,e){return(cJ(n),n)+(cJ(e),e)}function IU(n){NU();return Gan((X8(),R9e),n)}function OU(n){Qvn();return Gan((ptn(),V9e),n)}function AU(n){Oln();return Gan((mtn(),k7e),n)}function LU(){LU=O;bGe=(UQn(),n9e);wGe=$8e}function NU(){NU=O;L9e=new Lq;N9e=new yz}function $U(n){!n.e&&(n.e=new im);return n.e}function DU(n,e){this.c=n;this.a=e;this.b=e-n}function xU(n,e,t){this.a=n;this.b=e;this.c=t}function RU(n,e,t){this.a=n;this.b=e;this.c=t}function KU(n,e,t){this.a=n;this.b=e;this.c=t}function FU(n,e,t){this.a=n;this.b=e;this.c=t}function _U(n,e,t){this.a=n;this.b=e;this.c=t}function BU(n,e,t){this.a=n;this.b=e;this.c=t}function HU(n,e,t){this.e=n;this.a=e;this.c=t}function UU(n,e,t){i$();q1.call(this,n,e,t)}function GU(n,e,t){i$();NQ.call(this,n,e,t)}function qU(n,e,t){i$();NQ.call(this,n,e,t)}function XU(n,e,t){i$();NQ.call(this,n,e,t)}function VU(n,e,t){i$();GU.call(this,n,e,t)}function zU(n,e,t){i$();GU.call(this,n,e,t)}function WU(n,e,t){i$();zU.call(this,n,e,t)}function QU(n,e,t){i$();qU.call(this,n,e,t)}function JU(n,e,t){i$();XU.call(this,n,e,t)}function YU(n){vX.call(this,n.d,n.c,n.a,n.b)}function ZU(n){vX.call(this,n.d,n.c,n.a,n.b)}function nG(n){this.d=n;Nw(this);this.b=OV(n.d)}function eG(n){oDn();return Gan((hon(),Het),n)}function tG(n,e){nQ(n);nQ(e);return new IE(n,e)}function rG(n,e){nQ(n);nQ(e);return new nq(n,e)}function iG(n,e){nQ(n);nQ(e);return new eq(n,e)}function aG(n,e){nQ(n);nQ(e);return new _E(n,e)}function cG(n){PK(n.b!=0);return Rin(n,n.a.a)}function uG(n){PK(n.b!=0);return Rin(n,n.c.b)}function sG(n){!n.c&&(n.c=new Uo);return n.c}function oG(n){var e;e=new im;frn(e,n);return e}function fG(n){var e;e=new uk;frn(e,n);return e}function hG(n){var e;e=new ok;Gun(e,n);return e}function lG(n){var e;e=new vS;Gun(e,n);return e}function bG(n,e){Gq(n==null||Oyn(n,e));return n}function wG(n,e,t){qV.call(this,e,t);this.a=n}function dG(n,e){this.c=n;this.b=e;this.a=false}function gG(){this.a=";,;";this.b="";this.c=""}function vG(n,e,t){this.b=n;uL.call(this,e,t)}function pG(n,e,t){this.c=n;ZP.call(this,e,t)}function mG(n,e,t){GC.call(this,n,e);this.b=t}function kG(n,e,t){p$n(t,0,n,e,t.length,false)}function yG(n,e,t,r,i){n.b=e;n.c=t;n.d=r;n.a=i}function MG(n,e,t,r,i){n.d=e;n.c=t;n.a=r;n.b=i}function TG(n,e){if(e){n.b=e;n.a=(WQ(e),e.a)}}function jG(n,e){if(!n){throw dm(new jM(e))}}function EG(n,e){if(!n){throw dm(new EM(e))}}function SG(n,e){if(!n){throw dm(new yM(e))}}function PG(n,e){rP();return k$(n.d.p,e.d.p)}function CG(n,e){can();return bgn(n.e.b,e.e.b)}function IG(n,e){can();return bgn(n.e.a,e.e.a)}function OG(n,e){return k$(mq(n.d),mq(e.d))}function AG(n,e){return!!e&&FQ(n,e.d)?e:null}function LG(n,e){return e==(UQn(),n9e)?n.c:n.d}function NG(n){return Oon(Rz(qL(n)?Won(n):n))}function $G(n){return new PO(n.c+n.b,n.d+n.a)}function DG(n){return n!=null&&!Tvn(n,urt,srt)}function xG(n,e){return(vdn(n)<<4|vdn(e))&$1n}function RG(n,e,t,r,i){n.c=e;n.d=t;n.b=r;n.a=i}function KG(n){var e,t;e=n.b;t=n.c;n.b=t;n.c=e}function FG(n){var e,t;t=n.d;e=n.a;n.d=e;n.a=t}function _G(n,e){var t;t=n.c;tun(n,e);return t}function BG(n,e){e<0?n.g=-1:n.g=e;return n}function HG(n,e){Xin(n);n.a*=e;n.b*=e;return n}function UG(n,e,t){Din.call(this,e,t);this.d=n}function GG(n,e,t){RA.call(this,n,e);this.c=t}function qG(n,e,t){RA.call(this,n,e);this.c=t}function XG(n){bB();Mo.call(this);this.ci(n)}function VG(){K7();DQ.call(this,(PP(),Ort))}function zG(n){eZn();++Tht;return new $X(0,n)}function WG(){WG=O;Gst=(dZ(),new Jw(hae))}function QG(){QG=O;new Wyn((Ty(),sse),(My(),ase))}function JG(){JG=O;rle=$nn(tle,XZn,17,256,0,1)}function YG(){this.b=bM(MK(tyn((oGn(),iMe))))}function ZG(n){this.b=n;this.a=PV(this.b.a).Od()}function nq(n,e){this.b=n;this.a=e;Gh.call(this)}function eq(n,e){this.a=n;this.b=e;Gh.call(this)}function tq(n,e,t){this.a=n;jL.call(this,e,t)}function rq(n,e,t){this.a=n;jL.call(this,e,t)}function iq(n,e,t){var r;r=new eQ(t);ain(n,e,r)}function aq(n,e,t){var r;r=n[e];n[e]=t;return r}function cq(n){var e;e=n.slice();return Ren(e,n)}function uq(n){var e;e=n.n;return n.a.b+e.d+e.a}function sq(n){var e;e=n.n;return n.e.b+e.d+e.a}function oq(n){var e;e=n.n;return n.e.a+e.b+e.c}function fq(n){n.a.b=n.b;n.b.a=n.a;n.a=n.b=null}function hq(n,e){w8(n,e,n.c.b,n.c);return true}function lq(n){if(n.a){return n.a}return wY(n)}function bq(n){vZ();return pIn(n)==H0(yIn(n))}function wq(n){vZ();return yIn(n)==H0(pIn(n))}function dq(n,e){return NEn(n,new GC(e.a,e.b))}function gq(n,e){return CJ(),$Mn(n,e),new pJ(n,e)}function vq(n,e){return n.c=e){throw dm(new $k)}}function nz(n,e){return fdn(n,(cJ(e),new bd(e)))}function ez(n,e){return fdn(n,(cJ(e),new wd(e)))}function tz(n,e,t){return XYn(n,bG(e,12),bG(t,12))}function rz(n){return Rsn(),bG(n,12).g.c.length!=0}function iz(n){return Rsn(),bG(n,12).e.c.length!=0}function az(n,e){Lsn();return bgn(e.a.o.a,n.a.o.a)}function cz(n,e){(e.Bb&Wee)!=0&&!n.a.o&&(n.a.o=e)}function uz(n,e){e.Ug("General 'Rotator",1);vQn(n)}function sz(n,e,t){e.qf(t,bM(MK(fQ(n.b,t)))*n.a)}function oz(n,e,t){v_n();return Qsn(n,e)&&Qsn(n,t)}function fz(n){uNn();return!n.Hc(C8e)&&!n.Hc(O8e)}function hz(n){if(n.e){return C7(n.e)}return null}function lz(n){if(qL(n)){return""+n}return U_n(n)}function bz(n){var e;e=n;while(e.f){e=e.f}return e}function wz(n,e,t){bQ(e,0,aX(e[0],t[0]));return e}function dz(n,e,t,r){var i;i=n.i;i.i=e;i.a=t;i.b=r}function gz(n,e,t,r){PD.call(this,n,e,t);this.b=r}function vz(n,e,t,r,i){pen.call(this,n,e,t,r,i,-1)}function pz(n,e,t,r,i){men.call(this,n,e,t,r,i,-1)}function mz(n,e,t,r){GG.call(this,n,e,t);this.b=r}function kz(n){vA.call(this,n,false);this.a=false}function yz(){XO.call(this,"LOOKAHEAD_LAYOUT",1)}function Mz(n){this.b=n;iR.call(this,n);QD(this)}function Tz(n){this.b=n;cR.call(this,n);JD(this)}function jz(n,e,t){this.a=n;s_.call(this,e,t,5,6)}function Ez(n,e,t,r){this.b=n;PD.call(this,e,t,r)}function Sz(n,e){this.b=n;gb.call(this,n.b);this.a=e}function Pz(n){this.a=Gyn(n.a);this.b=new iB(n.b)}function Cz(n,e){iQ();zE.call(this,n,_wn(new $M(e)))}function Iz(n,e){eZn();++Tht;return new LQ(n,e,0)}function Oz(n,e){eZn();++Tht;return new LQ(6,n,e)}function Az(n,e){cJ(e);while(n.Ob()){e.Cd(n.Pb())}}function Lz(n,e){return HA(e)?xZ(n,e):!!GX(n.f,e)}function Nz(n,e){return e.Vh()?Twn(n.b,bG(e,54)):e}function $z(n,e){return T_(n.substr(0,e.length),e)}function Dz(n){return new GV(new rx(n.a.length,n.a))}function xz(n){return new PO(n.c+n.b/2,n.d+n.a/2)}function Rz(n){return M$(~n.l&f0n,~n.m&f0n,~n.h&h0n)}function Kz(n){return typeof n===bZn||typeof n===vZn}function Fz(n){n.f=new aN(n);n.i=new cN(n);++n.g}function _z(n){if(!n){throw dm(new Xm)}return n.d}function Bz(n){var e;e=Hhn(n);PK(e!=null);return e}function Hz(n){var e;e=wgn(n);PK(e!=null);return e}function Uz(n,e){var t;t=n.a.gc();u7(e,t);return t-e}function Gz(n,e){var t;t=n.a.zc(e,n);return t==null}function qz(n,e){return n.a.zc(e,(Qx(),Bhe))==null}function Xz(n){return new gX(null,lW(n,n.length))}function Vz(n,e,t){return VXn(n,bG(e,42),bG(t,176))}function zz(n,e,t){Pun(n.a,e);return aq(n.b,e.g,t)}function Wz(n,e,t){ZV(t,n.a.c.length);r9(n.a,t,e)}function Qz(n,e,t,r){bbn(e,t,n.length);Jz(n,e,t,r)}function Jz(n,e,t,r){var i;for(i=e;i0?t.Math.log(n/e):-100}function oW(n,e){return kwn(n,e)<0?-1:kwn(n,e)>0?1:0}function fW(n,e){tD(n,G$(e,160)?e:bG(e,2036).Rl())}function hW(n,e){if(n==null){throw dm(new PM(e))}}function lW(n,e){return Fin(e,n.length),new Aq(n,e)}function bW(n,e){if(!e){return false}return esn(n,e)}function wW(){Vy();return zfn(fT(Soe,1),g1n,549,0,[Eoe])}function dW(n){return n.e==0?n:new Zz(-n.e,n.d,n.a)}function gW(n,e){return bgn(n.c.c+n.c.b,e.c.c+e.c.b)}function vW(n,e){w8(n.d,e,n.b.b,n.b);++n.a;n.c=null}function pW(n,e){!n.c?ED(n.b,e):pW(n.c,e);return n}function mW(n,e,t){var r;r=brn(n,e);n8(n,e,t);return r}function kW(n,e,t){var r;for(r=0;r=n.g}function bQ(n,e,t){SK(t==null||fGn(n,t));return n[e]=t}function wQ(n,e){w3(e,n.length+1);return n.substr(e)}function dQ(n,e){cJ(e);while(n.c=n){return new TS}return cun(n-1)}function VQ(n){if(!n.a&&!!n.c){return n.c.b}return n.a}function zQ(n){if(G$(n,616)){return n}return new u0(n)}function WQ(n){if(!n.c){jgn(n);n.d=true}else{WQ(n.c)}}function QQ(n){if(!n.c){n.d=true;bKn(n)}else{n.c.$e()}}function JQ(n){n.b=false;n.c=false;n.d=false;n.a=false}function YQ(n){var e,t;e=n.c.i.c;t=n.d.i.c;return e==t}function ZQ(n,e){var t;t=n.Ih(e);t>=0?n.ki(t):YLn(n,e)}function nJ(n,e){n.c<0||n.b.b0){n=n<<1|(n<0?1:0)}return n}function NJ(n,e){var t;t=new pQ(n);Tm(e.c,t);return t}function $J(n,e){n.u.Hc((uNn(),C8e))&&jNn(n,e);Enn(n,e)}function DJ(n,e){return BA(n)===BA(e)||n!=null&&bdn(n,e)}function xJ(n,e){return HX(n.a,e)?n.b[bG(e,22).g]:null}function RJ(){XS();return zfn(fT(Ike,1),g1n,489,0,[Cke])}function KJ(){aP();return zfn(fT(G1e,1),g1n,490,0,[U1e])}function FJ(){cP();return zfn(fT(V1e,1),g1n,558,0,[X1e])}function _J(){uP();return zfn(fT(X0e,1),g1n,539,0,[q0e])}function BJ(n){!n.n&&(n.n=new gz(unt,n,1,7));return n.n}function HJ(n){!n.c&&(n.c=new gz(ont,n,9,9));return n.c}function UJ(n){!n.c&&(n.c=new g_(B7e,n,5,8));return n.c}function GJ(n){!n.b&&(n.b=new g_(B7e,n,4,7));return n.b}function qJ(n){n.j.c.length=0;lY(n.c);i_(n.a);return n}function XJ(n){n.e==lae&&Ew(n,hkn(n.g,n.b));return n.e}function VJ(n){n.f==lae&&Pw(n,cEn(n.g,n.b));return n.f}function zJ(n,e,t,r){_on(n,e,t,false);Mdn(n,r);return n}function WJ(n,e){this.b=n;eW.call(this,n,e);QD(this)}function QJ(n,e){this.b=n;K_.call(this,n,e);JD(this)}function JJ(n){this.d=n;this.a=this.d.b;this.b=this.d.c}function YJ(n,e){this.b=n;this.c=e;this.a=new gS(this.b)}function ZJ(n,e){w3(e,n.length);return n.charCodeAt(e)}function nY(n,e){Ign(n,bM(Fan(e,"x")),bM(Fan(e,"y")))}function eY(n,e){Ign(n,bM(Fan(e,"x")),bM(Fan(e,"y")))}function tY(n,e){jgn(n);return new gX(n,new stn(e,n.a))}function rY(n,e){jgn(n);return new gX(n,new g7(e,n.a))}function iY(n,e){jgn(n);return new $K(n,new w7(e,n.a))}function aY(n,e){jgn(n);return new DK(n,new d7(e,n.a))}function cY(n,e){return new PZ(bG(nQ(n),50),bG(nQ(e),50))}function uY(n,e){return bgn(n.d.c+n.d.b/2,e.d.c+e.d.b/2)}function sY(n,e,t){t.a?Pan(n,e.b-n.f/2):San(n,e.a-n.g/2)}function oY(n,e){return bgn(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}function fY(n,e){QS();return bgn((cJ(n),n),(cJ(e),e))}function hY(n){return n!=null&&iS(hrt,n.toLowerCase())}function lY(n){var e;for(e=n.Kc();e.Ob();){e.Pb();e.Qb()}}function bY(n){var e;e=n.b;!e&&(n.b=e=new rb(n));return e}function wY(n){var e;e=fun(n);if(e){return e}return null}function dY(n,e){var t,r;t=n/e;r=c0(t);t>r&&++r;return r}function gY(n,e,t){var r;r=bG(n.d.Kb(t),159);!!r&&r.Nb(e)}function vY(n,e,t){UXn(n.a,t);Ifn(t);ODn(n.b,t);PVn(e,t)}function pY(n,e,t,r){this.a=n;this.c=e;this.b=t;this.d=r}function mY(n,e,t,r){this.c=n;this.b=e;this.a=t;this.d=r}function kY(n,e,t,r){this.c=n;this.b=e;this.d=t;this.a=r}function yY(n,e,t,r){this.c=n;this.d=e;this.b=t;this.a=r}function MY(n,e,t,r){this.a=n;this.d=e;this.c=t;this.b=r}function TY(n,e,t,r){this.a=n;this.e=e;this.d=t;this.c=r}function jY(n,e,t,r){this.a=n;this.c=e;this.d=t;this.b=r}function EY(n,e,t){this.a=A1n;this.d=n;this.b=e;this.c=t}function SY(n,e,t,r){qE.call(this,n,e);this.a=t;this.b=r}function PY(n,e){this.d=(cJ(n),n);this.a=16449;this.c=e}function CY(n){this.a=new im;this.e=$nn(Ght,XZn,53,n,0,2)}function IY(n){n.Ug("No crossing minimization",1);n.Vg()}function OY(){Uy.call(this,"There is no more element.")}function AY(n,e,t,r){this.a=n;this.b=e;this.c=t;this.d=r}function LY(n,e,t,r){this.a=n;this.b=e;this.c=t;this.d=r}function NY(n,e,t,r){this.e=n;this.a=e;this.c=t;this.d=r}function $Y(n,e,t,r){this.a=n;this.c=e;this.d=t;this.b=r}function DY(n,e,t,r){i$();v7.call(this,e,t,r);this.a=n}function xY(n,e,t,r){i$();v7.call(this,e,t,r);this.a=n}function RY(n,e,t){var r,i;r=uJn(n);i=e.ti(t,r);return i}function KY(n){var e,t;t=(e=new um,e);zin(t,n);return t}function FY(n){var e,t;t=(e=new um,e);PIn(t,n);return t}function _Y(n,e){var t;t=fQ(n.f,e);eon(e,t);return null}function BY(n){!n.b&&(n.b=new gz(H7e,n,12,3));return n.b}function HY(n){Gq(n==null||Kz(n)&&!(n.Tm===I));return n}function UY(n){if(n.n){n.e!==j1n&&n.je();n.j=null}return n}function GY(n){pvn(n.d);if(n.d.d!=n.c){throw dm(new Gm)}}function qY(n){PK(n.b0&&JEn(this)}function zY(n,e){this.a=n;NK.call(this,n,bG(n.d,15).fd(e))}function WY(n,e){return bgn(OX(n)*IX(n),OX(e)*IX(e))}function QY(n,e){return bgn(OX(n)*IX(n),OX(e)*IX(e))}function JY(n){return XNn(n)&&lM(yK(YDn(n,(IYn(),LFe))))}function YY(n,e){return zNn(n,bG(lIn(e,(IYn(),h_e)),17),e)}function ZY(n,e){bG(lIn(n,(WYn(),dDe)),15).Fc(e);return e}function nZ(n,e){n.b=e.b;n.c=e.c;n.d=e.d;n.a=e.a;return n}function eZ(n,e,t,r){this.b=n;this.c=r;oL.call(this,e,t)}function tZ(n,e,t){n.i=0;n.e=0;if(e==t){return}cln(n,e,t)}function rZ(n,e,t){n.i=0;n.e=0;if(e==t){return}uln(n,e,t)}function iZ(n,e,t){tP();return lvn(bG(fQ(n.e,e),529),t)}function aZ(n){var e;return e=n.f,!e?n.f=new DE(n,n.c):e}function cZ(n,e){return Vwn(n.j,e.s,e.c)+Vwn(e.e,n.s,n.c)}function uZ(n,e){if(!!n.e&&!n.e.a){sm(n.e,e);uZ(n.e,e)}}function sZ(n,e){if(!!n.d&&!n.d.a){sm(n.d,e);sZ(n.d,e)}}function oZ(n,e){return-bgn(OX(n)*IX(n),OX(e)*IX(e))}function fZ(n){return bG(n.ld(),149).Pg()+":"+fvn(n.md())}function hZ(){VIn(this,new Gl);this.wb=(cQ(),_rt);jj()}function lZ(n){this.b=new im;Dfn(this.b,this.b);this.a=n}function bZ(n,e){new vS;this.a=new zk;this.b=n;this.c=e}function wZ(){wZ=O;Nbe=new K;$be=new K;Dbe=new F}function dZ(){dZ=O;lbe=new N;bbe=new D;wbe=new x}function gZ(){gZ=O;ave=new kn;uve=new cV;cve=new yn}function vZ(){vZ=O;nye=new im;Zke=new rm;Yke=new im}function pZ(n,e){if(n==null){throw dm(new PM(e))}return n}function mZ(n){!n.a&&(n.a=new gz(snt,n,10,11));return n.a}function kZ(n){!n.q&&(n.q=new gz(Irt,n,11,10));return n.q}function yZ(n){!n.s&&(n.s=new gz(mrt,n,21,17));return n.s}function MZ(n){nQ(n);return UMn(new GV(sx(n.a.Kc(),new d)))}function TZ(n,e){Cbn(n);Cbn(e);return fM(bG(n,22),bG(e,22))}function jZ(n,e,t){var r,i;r=eB(t);i=new Lb(r);ain(n,e,i)}function EZ(n,e,t,r,i,a){men.call(this,n,e,t,r,i,a?-2:-1)}function SZ(n,e,t,r){RA.call(this,e,t);this.b=n;this.a=r}function PZ(n,e){Ay.call(this,new VV(n));this.a=n;this.b=e}function CZ(n){this.b=n;this.c=n;n.e=null;n.c=null;this.a=1}function IZ(n){WB();var e;e=bG(n.g,10);e.n.a=n.d.c+e.d.b}function OZ(){OZ=O;var n,e;e=!lmn();n=new j;Qfe=e?new T:n}function AZ(n){dZ();return G$(n,59)?new uT(n):new yx(n)}function LZ(n){return G$(n,16)?new lX(bG(n,16)):fG(n.Kc())}function NZ(n){return new nx(n,n.e.Rd().gc()*n.c.Rd().gc())}function $Z(n){return new ex(n,n.e.Rd().gc()*n.c.Rd().gc())}function DZ(n){return!!n&&!!n.hashCode?n.hashCode():Bx(n)}function xZ(n,e){return e==null?!!GX(n.f,null):qX(n.i,e)}function RZ(n,e){var t;t=eD(n.a,e);t&&(e.d=null);return t}function KZ(n,e,t){if(n.f){return n.f.ef(e,t)}return false}function FZ(n,e,t,r){bQ(n.c[e.g],t.g,r);bQ(n.c[t.g],e.g,r)}function _Z(n,e,t,r){bQ(n.c[e.g],e.g,t);bQ(n.b[e.g],e.g,r)}function BZ(n,e,t){return bM(MK(t.a))<=n&&bM(MK(t.b))>=e}function HZ(n,e){this.g=n;this.d=zfn(fT(Yje,1),e6n,10,0,[e])}function UZ(n){this.c=n;this.b=new Vj(bG(nQ(new Mn),50))}function GZ(n){this.c=n;this.b=new Vj(bG(nQ(new Ie),50))}function qZ(n){this.b=n;this.a=new Vj(bG(nQ(new ae),50))}function XZ(){this.b=new uk;this.d=new vS;this.e=new Dk}function VZ(){this.c=new wj;this.d=new wj;this.e=new wj}function zZ(){this.a=new zk;this.b=(Tcn(3,d1n),new H7(3))}function WZ(n,e){this.e=n;this.a=kce;this.b=FBn(e);this.c=e}function QZ(n){this.c=n.c;this.d=n.d;this.b=n.b;this.a=n.a}function JZ(n,e,t,r,i,a){this.a=n;Hcn.call(this,e,t,r,i,a)}function YZ(n,e,t,r,i,a){this.a=n;Hcn.call(this,e,t,r,i,a)}function ZZ(n,e,t,r,i,a,c){return new s8(n.e,e,t,r,i,a,c)}function n1(n,e,t){return t>=0&&T_(n.substr(t,e.length),e)}function e1(n,e){return G$(e,149)&&T_(n.b,bG(e,149).Pg())}function t1(n,e){return n.a?e.Gh().Kc():bG(e.Gh(),71).Ii()}function r1(n,e){var t;t=n.b.Qc(e);m8(t,n.b.gc());return t}function i1(n,e){if(n==null){throw dm(new PM(e))}return n}function a1(n){if(!n.u){S9(n);n.u=new hF(n,n)}return n.u}function c1(n){this.a=(dZ(),G$(n,59)?new uT(n):new yx(n))}function u1(n){var e;e=bG(Ron(n,16),29);return!e?n.ii():e}function s1(n,e){var t;t=$j(n.Rm);return e==null?t:t+": "+e}function o1(n,e,t){Unn(e,t,n.length);return n.substr(e,t-e)}function f1(n,e){VF.call(this);ean(this);this.a=n;this.c=e}function h1(n){!n?CZn:s1(n,n.ie());String.fromCharCode(10)}function l1(n){JM();t.setTimeout((function(){throw n}),0)}function b1(){qkn();return zfn(fT(kve,1),g1n,436,0,[mve,pve])}function w1(){Jrn();return zfn(fT(jve,1),g1n,435,0,[Mve,Tve])}function d1(){Yrn();return zfn(fT(Dye,1),g1n,432,0,[Nye,$ye])}function g1(){xsn();return zfn(fT(OSe,1),g1n,517,0,[ISe,CSe])}function v1(){r5();return zfn(fT(U$e,1),g1n,429,0,[B$e,H$e])}function p1(){Zrn();return zfn(fT(KNe,1),g1n,428,0,[xNe,RNe])}function m1(){V7();return zfn(fT(vNe,1),g1n,431,0,[dNe,gNe])}function k1(){arn();return zfn(fT(pHe,1),g1n,430,0,[gHe,vHe])}function y1(){i5();return zfn(fT(OGe,1),g1n,531,0,[IGe,CGe])}function M1(){Mun();return zfn(fT(HQe,1),g1n,501,0,[_Qe,BQe])}function T1(){p0();return zfn(fT(Iqe,1),g1n,523,0,[Cqe,Pqe])}function j1(){m0();return zfn(fT(Nqe,1),g1n,522,0,[Aqe,Lqe])}function E1(){q7();return zfn(fT(MXe,1),g1n,528,0,[yXe,kXe])}function S1(){ntn();return zfn(fT(e$e,1),g1n,488,0,[n$e,ZNe])}function P1(){h9();return zfn(fT(YZe,1),g1n,491,0,[QZe,JZe])}function C1(){ofn();return zfn(fT(b1e,1),g1n,492,0,[h1e,l1e])}function I1(){s3();return zfn(fT(YWe,1),g1n,433,0,[JWe,QWe])}function O1(){Len();return zfn(fT(lJe,1),g1n,434,0,[fJe,hJe])}function A1(){v0();return zfn(fT(QXe,1),g1n,465,0,[zXe,WXe])}function L1(){X7();return zfn(fT(J1e,1),g1n,438,0,[Q1e,W1e])}function N1(){Zfn();return zfn(fT(Q0e,1),g1n,437,0,[W0e,z0e])}function $1(){NU();return zfn(fT($9e,1),g1n,347,0,[L9e,N9e])}function D1(n,e,t,r){return t>=0?n.Uh(e,t,r):n.Ch(null,t,r)}function x1(n){if(n.b.b==0){return n.a.sf()}return cG(n.b)}function R1(n){if(n.p!=5)throw dm(new Bm);return MV(n.f)}function K1(n){if(n.p!=5)throw dm(new Bm);return MV(n.k)}function F1(n){BA(n.a)===BA((Dsn(),Oit))&&uzn(n);return n.a}function _1(n,e){n.b=e;n.c>0&&n.b>0&&(n.g=TX(n.c,n.b,n.a))}function B1(n,e){n.c=e;n.c>0&&n.b>0&&(n.g=TX(n.c,n.b,n.a))}function H1(n,e){aw(this,new PO(n.a,n.b));cw(this,lG(e))}function U1(){Ly.call(this,new wS(lin(12)));GD(true);this.a=2}function G1(n,e,t){eZn();em.call(this,n);this.b=e;this.a=t}function q1(n,e,t){i$();Vp.call(this,e);this.a=n;this.b=t}function X1(n){var e;e=n.c.d.b;n.b=e;n.a=n.c.d;e.a=n.c.d.b=n}function V1(n){return n.b==0?null:(PK(n.b!=0),Rin(n,n.a.a))}function z1(n,e){return e==null?_A(GX(n.f,null)):qP(n.i,e)}function W1(n,e,t,r,i){return new xOn(n,(Hen(),ade),e,t,r,i)}function Q1(n,e){Z5(e);return tcn(n,$nn(Ght,z1n,28,e,15,1),e)}function J1(n,e){pZ(n,"set1");pZ(e,"set2");return new WE(n,e)}function Y1(n,e){var t=Ufe[n.charCodeAt(0)];return t==null?n:t}function Z1(n,e){var t,r;t=e;r=new X;MWn(n,t,r);return r.d}function n0(n,e,t,r){var i;i=new xF;e.a[t.g]=i;zz(n.b,r,i)}function e0(n,e){var t;t=Ran(n.f,e);return t_(XR(t),n.f.d)}function t0(n){var e;Rcn(n.a);YN(n.a);e=new xd(n.a);xvn(e)}function r0(n,e){sBn(n,true);Lin(n.e.Rf(),new _B(n,true,e))}function i0(n,e){vZ();return n==H0(pIn(e))||n==H0(yIn(e))}function a0(n,e){can();return bG(lIn(e,(eqn(),_We)),17).a==n}function c0(n){return Math.max(Math.min(n,pZn),-2147483648)|0}function u0(n){this.a=bG(nQ(n),277);this.b=(dZ(),new Tx(n))}function s0(n,e,t){this.i=new im;this.b=n;this.g=e;this.a=t}function o0(n,e,t){this.a=new im;this.e=n;this.f=e;this.c=t}function f0(n,e,t){this.c=new im;this.e=n;this.f=e;this.b=t}function h0(n){VF.call(this);ean(this);this.a=n;this.c=true}function l0(n){function e(){}e.prototype=n||{};return new e}function b0(n){if(n.Ae()){return null}var e=n.n;return bce[e]}function w0(n){if(n.Db>>16!=3)return null;return bG(n.Cb,27)}function d0(n){if(n.Db>>16!=9)return null;return bG(n.Cb,27)}function g0(n){if(n.Db>>16!=6)return null;return bG(n.Cb,74)}function v0(){v0=O;zXe=new JI(X2n,0);WXe=new JI(V2n,1)}function p0(){p0=O;Cqe=new DI(V2n,0);Pqe=new DI(X2n,1)}function m0(){m0=O;Aqe=new xI(i3n,0);Lqe=new xI("UP",1)}function k0(){k0=O;Poe=xbn((Vy(),zfn(fT(Soe,1),g1n,549,0,[Eoe])))}function y0(n){var e;e=new _j(lin(n.length));_hn(e,n);return e}function M0(n,e){n.b+=e.b;n.c+=e.c;n.d+=e.d;n.a+=e.a;return n}function T0(n,e){if(Nfn(n,e)){vcn(n);return true}return false}function j0(n,e){if(e==null){throw dm(new Hm)}return Cmn(n,e)}function E0(n,e){var t;t=n.q.getHours();n.q.setDate(e);$qn(n,t)}function S0(n,e,t){var r;r=n.Ih(e);r>=0?n.bi(r,t):vRn(n,e,t)}function P0(n,e){var t;t=n.Ih(e);return t>=0?n.Wh(t):FNn(n,e)}function C0(n,e){var t;nQ(e);for(t=n.a;t;t=t.c){e.Yd(t.g,t.i)}}function I0(n,e,t){var r;r=zhn(n,e,t);n.b=new _un(r.c.length)}function O0(n,e,t){n2();!!n&&jJ(ntt,n,e);!!n&&jJ(Zet,n,t)}function A0(n,e){zB();return Qx(),bG(e.a,17).a0}function D0(n){var e;e=n.d;e=n.bj(n.f);cen(n,e);return e.Ob()}function x0(n,e){var t;t=new hX(e);YCn(t,n);return new iB(t)}function R0(n){if(n.p!=0)throw dm(new Bm);return VA(n.f,0)}function K0(n){if(n.p!=0)throw dm(new Bm);return VA(n.k,0)}function F0(n){if(n.Db>>16!=7)return null;return bG(n.Cb,241)}function _0(n){if(n.Db>>16!=6)return null;return bG(n.Cb,241)}function B0(n){if(n.Db>>16!=7)return null;return bG(n.Cb,167)}function H0(n){if(n.Db>>16!=11)return null;return bG(n.Cb,27)}function U0(n){if(n.Db>>16!=17)return null;return bG(n.Cb,29)}function G0(n){if(n.Db>>16!=3)return null;return bG(n.Cb,155)}function q0(n){var e;jgn(n);e=new uk;return tY(n,new Pd(e))}function X0(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.ve(e))}function V0(n,e){var t;t=n.q.getHours();n.q.setMonth(e);$qn(n,t)}function z0(n,e){RD(this);this.f=e;this.g=n;UY(this);this.je()}function W0(n,e){this.a=n;this.c=_$(this.a);this.b=new QZ(e)}function Q0(n,e,t){this.a=e;this.c=n;this.b=(nQ(t),new iB(t))}function J0(n,e,t){this.a=e;this.c=n;this.b=(nQ(t),new iB(t))}function Y0(n){this.a=n;this.b=$nn(eGe,XZn,2043,n.e.length,0,2)}function Z0(){this.a=new JL;this.e=new uk;this.g=0;this.i=0}function n2(){n2=O;ntt=new rm;Zet=new rm;MA(zbe,new go)}function e2(){e2=O;JHe=mV(new mJ,(bIn(),uTe),(YYn(),eCe))}function t2(){t2=O;ZHe=mV(new mJ,(bIn(),uTe),(YYn(),eCe))}function r2(){r2=O;iUe=mV(new mJ,(bIn(),uTe),(YYn(),eCe))}function i2(){i2=O;LGe=xq(new mJ,(bIn(),uTe),(YYn(),PPe))}function a2(){a2=O;FGe=xq(new mJ,(bIn(),uTe),(YYn(),PPe))}function c2(){c2=O;jqe=xq(new mJ,(bIn(),uTe),(YYn(),PPe))}function u2(){u2=O;Fqe=xq(new mJ,(bIn(),uTe),(YYn(),PPe))}function s2(n,e,t,r,i,a){return new Utn(n.e,e,n.Lj(),t,r,i,a)}function o2(n,e,t){return e==null?ZAn(n.f,null,t):Egn(n.i,e,t)}function f2(n,e){!!n.c&&Ttn(n.c.g,n);n.c=e;!!n.c&&ED(n.c.g,n)}function h2(n,e){!!n.c&&Ttn(n.c.a,n);n.c=e;!!n.c&&ED(n.c.a,n)}function l2(n,e){!!n.i&&Ttn(n.i.j,n);n.i=e;!!n.i&&ED(n.i.j,n)}function b2(n,e){!!n.d&&Ttn(n.d.e,n);n.d=e;!!n.d&&ED(n.d.e,n)}function w2(n,e){!!n.a&&Ttn(n.a.k,n);n.a=e;!!n.a&&ED(n.a.k,n)}function d2(n,e){!!n.b&&Ttn(n.b.f,n);n.b=e;!!n.b&&ED(n.b.f,n)}function g2(n,e){kQ(n,n.b,n.c);bG(n.b.b,68);!!e&&bG(e.b,68).b}function v2(n,e){return bgn(bG(n.c,65).c.e.b,bG(e.c,65).c.e.b)}function p2(n,e){return bgn(bG(n.c,65).c.e.a,bG(e.c,65).c.e.a)}function m2(n){Pbn();return Qx(),bG(n.a,86).d.e!=0?true:false}function k2(n,e){G$(n.Cb,184)&&(bG(n.Cb,184).tb=null);Qun(n,e)}function y2(n,e){G$(n.Cb,90)&&SLn(S9(bG(n.Cb,90)),4);Qun(n,e)}function M2(n,e){Lgn(n,e);G$(n.Cb,90)&&SLn(S9(bG(n.Cb,90)),2)}function T2(n,e){var t,r;t=e.c;r=t!=null;r&&MQ(n,new eQ(e.c))}function j2(n){var e,t;t=(jj(),e=new um,e);zin(t,n);return t}function E2(n){var e,t;t=(jj(),e=new um,e);zin(t,n);return t}function S2(n){var e;while(true){e=n.Pb();if(!n.Ob()){return e}}}function P2(n,e,t){ED(n.a,(CJ(),$Mn(e,t),new GE(e,t)));return n}function C2(n,e){return LP(),urn(e)?new Nq(e,n):new DA(e,n)}function I2(n){fHn();return kwn(n,0)>=0?Hpn(n):dW(Hpn(Ptn(n)))}function O2(n){var e;e=bG(cq(n.b),9);return new aB(n.a,e,n.c)}function A2(n,e){var t;t=bG(Jwn(aZ(n.a),e),16);return!t?0:t.gc()}function L2(n,e,t){var r;ddn(e,t,n.c.length);r=t-e;aE(n.c,e,r)}function N2(n,e,t){ddn(e,t,n.gc());this.c=n;this.a=e;this.b=t-e}function $2(n){this.c=new vS;this.b=n.b;this.d=n.c;this.a=n.a}function D2(n){this.a=t.Math.cos(n);this.b=t.Math.sin(n)}function x2(n,e,t,r){this.c=n;this.d=r;w2(this,e);d2(this,t)}function R2(n,e){Oy.call(this,new wS(lin(n)));Tcn(e,qZn);this.a=e}function K2(n,e,t){return new xOn(n,(Hen(),ide),null,false,e,t)}function F2(n,e,t){return new xOn(n,(Hen(),cde),e,t,null,false)}function _2(){Sbn();return zfn(fT($de,1),g1n,108,0,[Ade,Lde,Nde])}function B2(){rrn();return zfn(fT(Spe,1),g1n,472,0,[Epe,jpe,Tpe])}function H2(){Uen();return zfn(fT(dpe,1),g1n,471,0,[bpe,lpe,wpe])}function U2(){ran();return zfn(fT(cpe,1),g1n,237,0,[rpe,ipe,ape])}function G2(){trn();return zfn(fT(UMe,1),g1n,391,0,[BMe,_Me,HMe])}function q2(){yun();return zfn(fT(XAe,1),g1n,372,0,[qAe,GAe,UAe])}function X2(){Icn();return zfn(fT(MNe,1),g1n,322,0,[kNe,mNe,yNe])}function V2(){ocn();return zfn(fT(PNe,1),g1n,351,0,[jNe,SNe,ENe])}function z2(){Lhn();return zfn(fT(UNe,1),g1n,460,0,[BNe,_Ne,HNe])}function W2(){sfn();return zfn(fT($$e,1),g1n,299,0,[L$e,N$e,A$e])}function Q2(){irn();return zfn(fT(F$e,1),g1n,311,0,[R$e,K$e,x$e])}function J2(){Nwn();return zfn(fT(RBe,1),g1n,390,0,[$Be,DBe,xBe])}function Y2(){fcn();return zfn(fT(THe,1),g1n,463,0,[MHe,kHe,yHe])}function Z2(){son();return zfn(fT(CHe,1),g1n,387,0,[EHe,SHe,PHe])}function n3(){Aln();return zfn(fT(NHe,1),g1n,349,0,[LHe,OHe,AHe])}function e3(){Ebn();return zfn(fT(FHe,1),g1n,350,0,[xHe,RHe,KHe])}function t3(){scn();return zfn(fT(GHe,1),g1n,352,0,[UHe,BHe,HHe])}function r3(){Yfn();return zfn(fT(WHe,1),g1n,388,0,[VHe,zHe,XHe])}function i3(){ucn();return zfn(fT(JUe,1),g1n,464,0,[zUe,WUe,QUe])}function a3(n){return Whn(zfn(fT(D3e,1),XZn,8,0,[n.i.n,n.n,n.a]))}function c3(){Lln();return zfn(fT(Eze,1),g1n,392,0,[jze,Tze,Mze])}function u3(){u3=O;nQe=mV(new mJ,(Njn(),oVe),(DHn(),nze))}function s3(){s3=O;JWe=new tO("DFS",0);QWe=new tO("BFS",1)}function o3(n,e,t){var r;r=new sc;r.b=e;r.a=t;++e.b;ED(n.d,r)}function f3(n,e,t){var r;r=new uN(t.d);t_(r,n);Ign(e,r.a,r.b)}function h3(n,e){MD(n,MV(O3(FV(e,24),z0n)),MV(O3(e,z0n)))}function l3(n,e){if(n<0||n>e){throw dm(new kM(o2n+n+f2n+e))}}function b3(n,e){if(n<0||n>=e){throw dm(new kM(o2n+n+f2n+e))}}function w3(n,e){if(n<0||n>=e){throw dm(new tT(o2n+n+f2n+e))}}function d3(n,e){this.b=(cJ(n),n);this.a=(e&T0n)==0?e|64|VZn:e}function g3(n){var e;jgn(n);e=(wZ(),wZ(),$be);return Ein(n,e)}function v3(n,e,t){var r;r=bXn(n,e,false);return r.b<=e&&r.a<=t}function p3(){ktn();return zfn(fT(a1e,1),g1n,439,0,[t1e,i1e,r1e])}function m3(){Xgn();return zfn(fT(JYe,1),g1n,394,0,[WYe,QYe,zYe])}function k3(){tmn();return zfn(fT(EYe,1),g1n,445,0,[MYe,TYe,jYe])}function y3(){iMn();return zfn(fT(NYe,1),g1n,456,0,[OYe,LYe,AYe])}function M3(){jbn();return zfn(fT(vJe,1),g1n,393,0,[wJe,dJe,gJe])}function T3(){uon();return zfn(fT(bYe,1),g1n,300,0,[hYe,lYe,fYe])}function j3(){Dwn();return zfn(fT(X5e,1),g1n,346,0,[G5e,U5e,q5e])}function E3(){Hdn();return zfn(fT(K1e,1),g1n,444,0,[D1e,x1e,R1e])}function S3(){ian();return zfn(fT(p5e,1),g1n,278,0,[d5e,g5e,v5e])}function P3(){$wn();return zfn(fT(O9e,1),g1n,280,0,[C9e,P9e,I9e])}function C3(n){nQ(n);return G$(n,16)?new iB(bG(n,16)):oG(n.Kc())}function I3(n,e){return!!n&&!!n.equals?n.equals(e):BA(n)===BA(e)}function O3(n,e){return Oon(DV(qL(n)?Won(n):n,qL(e)?Won(e):e))}function A3(n,e){return Oon(xV(qL(n)?Won(n):n,qL(e)?Won(e):e))}function L3(n,e){return Oon(RV(qL(n)?Won(n):n,qL(e)?Won(e):e))}function N3(n,e){var t;t=(cJ(n),n).g;EK(!!t);cJ(e);return t(e)}function $3(n,e){var t,r;r=Uz(n,e);t=n.a.fd(r);return new XE(n,t)}function D3(n){if(n.Db>>16!=6)return null;return bG(tDn(n),241)}function x3(n){if(n.p!=2)throw dm(new Bm);return MV(n.f)&$1n}function R3(n){if(n.p!=2)throw dm(new Bm);return MV(n.k)&$1n}function K3(n){PK(n.ar?1:0}function r4(n,e){var t,r;t=Itn(e);r=t;return bG(fQ(n.c,r),17).a}function i4(n,e,t){var r;r=n.d[e.p];n.d[e.p]=n.d[t.p];n.d[t.p]=r}function a4(n,e,t){var r;if(n.n&&!!e&&!!t){r=new to;ED(n.e,r)}}function c4(n,e){Gz(n.a,e);if(e.d){throw dm(new Uy(g2n))}e.d=n}function u4(n,e){this.a=new im;this.d=new im;this.f=n;this.c=e}function s4(){this.c=new Y$;this.a=new M7;this.b=new Sk;JS()}function o4(){nhn();this.b=new rm;this.a=new rm;this.c=new im}function f4(n,e,t){this.d=n;this.j=e;this.e=t;this.o=-1;this.p=3}function h4(n,e,t){this.d=n;this.k=e;this.f=t;this.o=-1;this.p=5}function l4(n,e,t,r,i,a){Xan.call(this,n,e,t,r,i);a&&(this.o=-2)}function b4(n,e,t,r,i,a){Van.call(this,n,e,t,r,i);a&&(this.o=-2)}function w4(n,e,t,r,i,a){O9.call(this,n,e,t,r,i);a&&(this.o=-2)}function d4(n,e,t,r,i,a){Qan.call(this,n,e,t,r,i);a&&(this.o=-2)}function g4(n,e,t,r,i,a){A9.call(this,n,e,t,r,i);a&&(this.o=-2)}function v4(n,e,t,r,i,a){zan.call(this,n,e,t,r,i);a&&(this.o=-2)}function p4(n,e,t,r,i,a){Wan.call(this,n,e,t,r,i);a&&(this.o=-2)}function m4(n,e,t,r,i,a){L9.call(this,n,e,t,r,i);a&&(this.o=-2)}function k4(n,e,t,r){Vp.call(this,t);this.b=n;this.c=e;this.d=r}function y4(n,e){this.f=n;this.a=(K7(),Wut);this.c=Wut;this.b=e}function M4(n,e){this.g=n;this.d=(K7(),Qut);this.a=Qut;this.b=e}function T4(n,e){!n.c&&(n.c=new mon(n,0));XXn(n.c,(bzn(),Eot),e)}function j4(n,e){return vxn(n,e,G$(e,102)&&(bG(e,19).Bb&S0n)!=0)}function E4(n,e){return oW(Xon(n.q.getTime()),Xon(e.q.getTime()))}function S4(n){return _q(n.e.Rd().gc()*n.c.Rd().gc(),16,new Yl(n))}function P4(n){return!!n.u&&Y5(n.u.a).i!=0&&!(!!n.n&&SMn(n.n))}function C4(n){return!!n.a&&xtn(n.a.a).i!=0&&!(!!n.b&&PMn(n.b))}function I4(n,e){if(e==0){return!!n.o&&n.o.f!=0}return nyn(n,e)}function O4(n,e,t){var r;r=bG(n.Zb().xc(e),16);return!!r&&r.Hc(t)}function A4(n,e,t){var r;r=bG(n.Zb().xc(e),16);return!!r&&r.Mc(t)}function L4(n,e){var t;t=1-e;n.a[t]=Cun(n.a[t],t);return Cun(n,e)}function N4(n,e){var t,r;r=O3(n,A0n);t=KV(e,32);return A3(t,r)}function $4(n,e,t){var r;r=(nQ(n),new iB(n));Tjn(new Q0(r,e,t))}function D4(n,e,t){var r;r=(nQ(n),new iB(n));jjn(new J0(r,e,t))}function x4(n,e,t,r,i,a){_on(n,e,t,a);ydn(n,r);jdn(n,i);return n}function R4(n,e,t,r){n.a+=""+o1(e==null?CZn:fvn(e),t,r);return n}function K4(n,e){this.a=n;td.call(this,n);l3(e,n.gc());this.b=e}function F4(n){this.a=$nn(kce,jZn,1,Mhn(t.Math.max(8,n))<<1,5,1)}function _4(n){return bG(Okn(n,$nn(Yje,e6n,10,n.c.length,0,1)),199)}function B4(n){return bG(Okn(n,$nn(xje,n6n,18,n.c.length,0,1)),483)}function H4(n){return!n.a?n.c:n.e.length==0?n.a.a:n.a.a+(""+n.e)}function U4(n){while(n.d>0&&n.a[--n.d]==0);n.a[n.d++]==0&&(n.e=0)}function G4(n){PK(n.b.b!=n.d.a);n.c=n.b=n.b.b;--n.a;return n.c.c}function q4(n,e,t){n.a=e;n.c=t;n.b.a.$b();XY(n.d);Jm(n.e.a.c,0)}function X4(n,e){var t;n.e=new ky;t=WFn(e);g$(t,n.c);C_n(n,t,0)}function V4(n,e,t,r){var i;i=new ks;i.a=e;i.b=t;i.c=r;hq(n.a,i)}function z4(n,e,t,r){var i;i=new ks;i.a=e;i.b=t;i.c=r;hq(n.b,i)}function W4(n,e,t){if(n<0||et){throw dm(new kM(eAn(n,e,t)))}}function Q4(n,e){if(n<0||n>=e){throw dm(new kM(CLn(n,e)))}return n}function J4(n){if(!("stack"in n)){try{throw n}catch(e){}}return n}function Y4(n){tP();if(G$(n.g,10)){return bG(n.g,10)}return null}function Z4(n){if(bY(n).dc()){return false}d$(n,new m);return true}function n6(n){var e;if(qL(n)){e=n;return e==-0?0:e}return Wtn(n)}function e6(n,e){if(G$(e,44)){return wTn(n.a,bG(e,44))}return false}function t6(n,e){if(G$(e,44)){return wTn(n.a,bG(e,44))}return false}function r6(n,e){if(G$(e,44)){return wTn(n.a,bG(e,44))}return false}function i6(n){var e;WQ(n);e=new _;cE(n.a,new jd(e));return e}function a6(){var n,e,t;e=(t=(n=new um,n),t);ED(Hct,e);return e}function c6(n){var e;WQ(n);e=new B;cE(n.a,new Ed(e));return e}function u6(n,e){if(n.a<=n.b){e.Dd(n.a++);return true}return false}function s6(n){ksn.call(this,n,(Hen(),rde),null,false,null,false)}function o6(){o6=O;Oke=xbn((XS(),zfn(fT(Ike,1),g1n,489,0,[Cke])))}function f6(){f6=O;TUe=PJ(Bwn(1),Bwn(4));MUe=PJ(Bwn(1),Bwn(2))}function h6(n,e){return new RU(e,VR(_$(e.e),n,n),(Qx(),true))}function l6(n){return new H7((Tcn(n,p1n),hin(Rgn(Rgn(5,n),n/10|0))))}function b6(n){return _q(n.e.Rd().gc()*n.c.Rd().gc(),273,new Jl(n))}function w6(n){return bG(Okn(n,$nn(gEe,t6n,12,n.c.length,0,1)),2042)}function d6(n){a2();return!j9(n)&&!(!j9(n)&&n.c.i.c==n.d.i.c)}function g6(n,e){aan();return bG(lIn(e,(eqn(),IWe)),17).a>=n.gc()}function v6(n,e){qJn(e,n);KG(n.d);KG(bG(lIn(n,(IYn(),zFe)),214))}function p6(n,e){XJn(e,n);FG(n.d);FG(bG(lIn(n,(IYn(),zFe)),214))}function m6(n,e,t){!!n.d&&Ttn(n.d.e,n);n.d=e;!!n.d&&WX(n.d.e,t,n)}function k6(n,e,t){return t.f.c.length>0?Vz(n.a,e,t):Vz(n.b,e,t)}function y6(n,e,t){var r;r=pkn();try{return AF(n,e,t)}finally{T8(r)}}function M6(n,e){var t,r;t=j0(n,e);r=null;!!t&&(r=t.pe());return r}function T6(n,e){var t,r;t=j0(n,e);r=null;!!t&&(r=t.se());return r}function j6(n,e){var t,r;t=brn(n,e);r=null;!!t&&(r=t.se());return r}function E6(n,e){var t,r;t=j0(n,e);r=null;!!t&&(r=bAn(t));return r}function S6(n,e,t){var r;r=Imn(t);SHn(n.g,r,e);SHn(n.i,e,t);return e}function P6(n,e,t){this.d=new Qg(this);this.e=n;this.i=e;this.f=t}function C6(n,e,t,r){this.e=null;this.c=n;this.d=e;this.a=t;this.b=r}function I6(n,e,t,r){x$(this);this.c=n;this.e=e;this.f=t;this.b=r}function O6(n,e,t,r){this.d=n;this.n=e;this.g=t;this.o=r;this.p=-1}function A6(n,e,t,r){return G$(t,59)?new rR(n,e,t,r):new QV(n,e,t,r)}function L6(n){if(G$(n,16)){return bG(n,16).dc()}return!n.Kc().Ob()}function N6(n){if(n.e.g!=n.b){throw dm(new Gm)}return!!n.c&&n.d>0}function $6(n){PK(n.b!=n.d.c);n.c=n.b;n.b=n.b.a;++n.a;return n.c.c}function D6(n,e){cJ(e);bQ(n.a,n.c,e);n.c=n.c+1&n.a.length-1;tjn(n)}function x6(n,e){cJ(e);n.b=n.b-1&n.a.length-1;bQ(n.a,n.b,e);tjn(n)}function R6(n){var e;e=n.Gh();this.a=G$(e,71)?bG(e,71).Ii():e.Kc()}function K6(n){return new d3(Zin(bG(n.a.md(),16).gc(),n.a.ld()),16)}function F6(){F6=O;q1e=xbn((aP(),zfn(fT(G1e,1),g1n,490,0,[U1e])))}function _6(){_6=O;z1e=xbn((cP(),zfn(fT(V1e,1),g1n,558,0,[X1e])))}function B6(){B6=O;V0e=xbn((uP(),zfn(fT(X0e,1),g1n,539,0,[q0e])))}function H6(){zmn();return zfn(fT(lje,1),g1n,389,0,[hje,oje,sje,fje])}function U6(){Hen();return zfn(fT(ude,1),g1n,304,0,[rde,ide,ade,cde])}function G6(){jyn();return zfn(fT(qme,1),g1n,332,0,[Hme,Bme,Ume,Gme])}function q6(){Tyn();return zfn(fT(Tke,1),g1n,406,0,[kke,mke,yke,Mke])}function X6(){ufn();return zfn(fT(mme,1),g1n,417,0,[pme,dme,gme,vme])}function V6(){Jfn();return zfn(fT(FTe,1),g1n,416,0,[DTe,KTe,xTe,RTe])}function z6(){Qfn();return zfn(fT(jAe,1),g1n,421,0,[kAe,yAe,MAe,TAe])}function W6(){Wfn();return zfn(fT(FCe,1),g1n,371,0,[KCe,xCe,RCe,DCe])}function Q6(){rMn();return zfn(fT(UBe,1),g1n,203,0,[BBe,HBe,_Be,FBe])}function J6(){Smn();return zfn(fT(wHe,1),g1n,284,0,[hHe,fHe,lHe,bHe])}function Y6(n){var e;return n.j==(UQn(),Y8e)&&(e=q$n(n),Fx(e,$8e))}function Z6(n,e){var t;t=e.a;f2(t,e.c.d);b2(t,e.d.d);Jsn(t.a,n.n)}function n5(n,e){var t;t=bG(hrn(n.b,e),67);!t&&(t=new vS);return t}function e5(n){tP();if(G$(n.g,154)){return bG(n.g,154)}return null}function t5(n){n.a=null;n.e=null;Jm(n.b.c,0);Jm(n.f.c,0);n.c=null}function r5(){r5=O;B$e=new wI(U2n,0);H$e=new wI("TOP_LEFT",1)}function i5(){i5=O;IGe=new AI("UPPER",0);CGe=new AI("LOWER",1)}function a5(n,e){return pD(new PO(e.e.a+e.f.a/2,e.e.b+e.f.b/2),n)}function c5(n,e){return bG(Sx(nz(bG(r7(n.k,e),15).Oc(),ALe)),113)}function u5(n,e){return bG(Sx(ez(bG(r7(n.k,e),15).Oc(),ALe)),113)}function s5(){Njn();return zfn(fT(hVe,1),g1n,405,0,[uVe,sVe,oVe,fVe])}function o5(){Tbn();return zfn(fT(zWe,1),g1n,353,0,[VWe,qWe,XWe,GWe])}function f5(){kTn();return zfn(fT(sYe,1),g1n,354,0,[uYe,aYe,cYe,iYe])}function h5(){emn();return zfn(fT(w9e,1),g1n,386,0,[l9e,b9e,h9e,f9e])}function l5(){xjn();return zfn(fT(Y5e,1),g1n,291,0,[J5e,z5e,W5e,Q5e])}function b5(){qgn();return zfn(fT(j5e,1),g1n,223,0,[T5e,y5e,k5e,M5e])}function w5(){Qvn();return zfn(fT(X9e,1),g1n,320,0,[q9e,H9e,G9e,U9e])}function d5(){Oln();return zfn(fT(m7e,1),g1n,415,0,[g7e,v7e,d7e,p7e])}function g5(n){n2();return Lz(ntt,n)?bG(fQ(ntt,n),341).Qg():null}function v5(n,e,t){return e<0?FNn(n,t):bG(t,69).wk().Bk(n,n.hi(),e)}function p5(n,e,t){var r;r=Imn(t);SHn(n.j,r,e);jJ(n.k,e,t);return e}function m5(n,e,t){var r;r=Imn(t);SHn(n.d,r,e);jJ(n.e,e,t);return e}function k5(n){var e,t;e=(yj(),t=new co,t);!!n&&xRn(e,n);return e}function y5(n){var e;e=n.aj(n.i);n.i>0&&QGn(n.g,0,e,0,n.i);return e}function M5(n,e){var t;for(t=n.j.c.length;t>24}function S5(n){if(n.p!=1)throw dm(new Bm);return MV(n.k)<<24>>24}function P5(n){if(n.p!=7)throw dm(new Bm);return MV(n.k)<<16>>16}function C5(n){if(n.p!=7)throw dm(new Bm);return MV(n.f)<<16>>16}function I5(n,e){if(e.e==0||n.e==0){return Rle}return p_n(),SKn(n,e)}function O5(n,e){return BA(e)===BA(n)?"(this Map)":e==null?CZn:fvn(e)}function A5(n,e,t){return HV(MK(_A(GX(n.f,e))),MK(_A(GX(n.f,t))))}function L5(n,e,t){var r;r=bG(fQ(n.g,t),60);ED(n.a.c,new nA(e,r))}function N5(n,e,t){n.i=0;n.e=0;if(e==t){return}uln(n,e,t);cln(n,e,t)}function $5(n,e,t,r,i){var a;a=Xxn(i,t,r);ED(e,bLn(i,a));RIn(n,i,e)}function D5(n,e,t,r,i){this.i=n;this.a=e;this.e=t;this.j=r;this.f=i}function x5(n,e){VZ.call(this);this.a=n;this.b=e;ED(this.a.b,this)}function R5(n){this.b=new rm;this.c=new rm;this.d=new rm;this.a=n}function K5(n,e){var t;t=new eT;n.Gd(t);t.a+="..";e.Hd(t);return t.a}function F5(n,e){var t;t=e;while(t){UR(n,t.i,t.j);t=H0(t)}return n}function _5(n,e,t){var r;r=Imn(t);jJ(n.b,r,e);jJ(n.c,e,t);return e}function B5(n){var e;e=0;while(n.Ob()){n.Pb();e=Rgn(e,1)}return hin(e)}function H5(n,e){LP();var t;t=bG(n,69).vk();bOn(t,e);return t.xl(e)}function U5(n,e,t){if(t){var r=t.oe();n.a[e]=r(t)}else{delete n.a[e]}}function G5(n,e){var t;t=n.q.getHours();n.q.setFullYear(e+V1n);$qn(n,t)}function q5(n,e){return bG(e==null?_A(GX(n.f,null)):qP(n.i,e),288)}function X5(n,e){return n==(YIn(),rEe)&&e==rEe?4:n==rEe||e==rEe?8:32}function V5(n,e,t){return hqn(n,e,t,G$(e,102)&&(bG(e,19).Bb&S0n)!=0)}function z5(n,e,t){return _qn(n,e,t,G$(e,102)&&(bG(e,19).Bb&S0n)!=0)}function W5(n,e,t){return Nxn(n,e,t,G$(e,102)&&(bG(e,19).Bb&S0n)!=0)}function Q5(n){if(n.b==n.c){return}n.a=$nn(kce,jZn,1,8,5,1);n.b=0;n.c=0}function J5(n){PK(n.a=0&&n.a[t]===e[t];t--);return t<0}function y8(n){var e;if(n){return new hX(n)}e=new JL;Gun(e,n);return e}function M8(n,e){var t,r;r=false;do{t=Chn(n,e);r=r|t}while(t);return r}function T8(n){n&&Nrn((Wy(),zfe));--qfe;if(n){if(Vfe!=-1){IL(Vfe);Vfe=-1}}}function j8(n){hCn();MD(this,MV(O3(FV(n,24),z0n)),MV(O3(n,z0n)))}function E8(){E8=O;yve=xbn((qkn(),zfn(fT(kve,1),g1n,436,0,[mve,pve])))}function S8(){S8=O;Eve=xbn((Jrn(),zfn(fT(jve,1),g1n,435,0,[Mve,Tve])))}function P8(){P8=O;xye=xbn((Yrn(),zfn(fT(Dye,1),g1n,432,0,[Nye,$ye])))}function C8(){C8=O;ASe=xbn((xsn(),zfn(fT(OSe,1),g1n,517,0,[ISe,CSe])))}function I8(){I8=O;G$e=xbn((r5(),zfn(fT(U$e,1),g1n,429,0,[B$e,H$e])))}function O8(){O8=O;FNe=xbn((Zrn(),zfn(fT(KNe,1),g1n,428,0,[xNe,RNe])))}function A8(){A8=O;t$e=xbn((ntn(),zfn(fT(e$e,1),g1n,488,0,[n$e,ZNe])))}function L8(){L8=O;mHe=xbn((arn(),zfn(fT(pHe,1),g1n,430,0,[gHe,vHe])))}function N8(){N8=O;AGe=xbn((i5(),zfn(fT(OGe,1),g1n,531,0,[IGe,CGe])))}function $8(){$8=O;pNe=xbn((V7(),zfn(fT(vNe,1),g1n,431,0,[dNe,gNe])))}function D8(){D8=O;ZWe=xbn((s3(),zfn(fT(YWe,1),g1n,433,0,[JWe,QWe])))}function x8(){x8=O;UQe=xbn((Mun(),zfn(fT(HQe,1),g1n,501,0,[_Qe,BQe])))}function R8(){R8=O;Oqe=xbn((p0(),zfn(fT(Iqe,1),g1n,523,0,[Cqe,Pqe])))}function K8(){K8=O;$qe=xbn((m0(),zfn(fT(Nqe,1),g1n,522,0,[Aqe,Lqe])))}function F8(){F8=O;TXe=xbn((q7(),zfn(fT(MXe,1),g1n,528,0,[yXe,kXe])))}function _8(){_8=O;JXe=xbn((v0(),zfn(fT(QXe,1),g1n,465,0,[zXe,WXe])))}function B8(){B8=O;bJe=xbn((Len(),zfn(fT(lJe,1),g1n,434,0,[fJe,hJe])))}function H8(){H8=O;ZZe=xbn((h9(),zfn(fT(YZe,1),g1n,491,0,[QZe,JZe])))}function U8(){U8=O;w1e=xbn((ofn(),zfn(fT(b1e,1),g1n,492,0,[h1e,l1e])))}function G8(){G8=O;Y1e=xbn((X7(),zfn(fT(J1e,1),g1n,438,0,[Q1e,W1e])))}function q8(){q8=O;J0e=xbn((Zfn(),zfn(fT(Q0e,1),g1n,437,0,[W0e,z0e])))}function X8(){X8=O;R9e=xbn((NU(),zfn(fT($9e,1),g1n,347,0,[L9e,N9e])))}function V8(){Bdn();return zfn(fT(b5e,1),g1n,88,0,[h5e,f5e,o5e,s5e,l5e])}function z8(){UQn();return zfn(fT(e9e,1),X4n,64,0,[Z8e,D8e,$8e,Y8e,n9e])}function W8(n,e,t){return bG(e==null?ZAn(n.f,null,t):Egn(n.i,e,t),288)}function Q8(n){return(n.k==(YIn(),rEe)||n.k==nEe)&&jR(n,(WYn(),eDe))}function J8(n){return!!n.c&&!!n.d?Y3(n.c)+"->"+Y3(n.d):"e_"+Bx(n)}function Y8(n,e){var t,r;cJ(e);for(r=n.Kc();r.Ob();){t=r.Pb();e.Cd(t)}}function Z8(n,e){var t;t=new qy;jZ(t,"x",e.a);jZ(t,"y",e.b);MQ(n,t)}function n9(n,e){var t;t=new qy;jZ(t,"x",e.a);jZ(t,"y",e.b);MQ(n,t)}function e9(n,e){var t;t=e;while(t){UR(n,-t.i,-t.j);t=H0(t)}return n}function t9(n,e){var t,r;t=e;r=0;while(t>0){r+=n.a[t];t-=t&-t}return r}function r9(n,e,t){var r;r=(b3(e,n.c.length),n.c[e]);n.c[e]=t;return r}function i9(n,e,t){n.a.c.length=0;wzn(n,e,t);n.a.c.length==0||MUn(n,e)}function a9(n){n.i=0;GP(n.b,null);GP(n.c,null);n.a=null;n.e=null;++n.g}function c9(){c9=O;Sde=true;jde=false;Ede=false;Cde=false;Pde=false}function u9(n){c9();if(Sde){return}this.c=n;this.e=true;this.a=new im}function s9(n,e){this.c=0;this.b=e;sL.call(this,n,17493);this.a=this.c}function o9(n){KYn();km(this);this.a=new vS;Rln(this,n);hq(this.a,n)}function f9(){$N(this);this.b=new PO(y0n,y0n);this.a=new PO(M0n,M0n)}function h9(){h9=O;QZe=new lO(D6n,0);JZe=new lO("TARGET_WIDTH",1)}function l9(n,e){return(jgn(n),eE(new gX(n,new stn(e,n.a)))).Bd(gge)}function b9(){bIn();return zfn(fT(sTe,1),g1n,367,0,[rTe,iTe,aTe,cTe,uTe])}function w9(){yPn();return zfn(fT(xAe,1),g1n,375,0,[LAe,$Ae,DAe,NAe,AAe])}function d9(){Emn();return zfn(fT($Ne,1),g1n,348,0,[ONe,INe,LNe,NNe,ANe])}function g9(){Myn();return zfn(fT(QBe,1),g1n,323,0,[WBe,XBe,VBe,qBe,zBe])}function v9(){Wvn();return zfn(fT(nxe,1),g1n,171,0,[ZDe,WDe,QDe,JDe,YDe])}function p9(){YPn();return zfn(fT(ZQe,1),g1n,368,0,[JQe,zQe,YQe,WQe,QQe])}function m9(){qRn();return zfn(fT(j1e,1),g1n,373,0,[k1e,m1e,M1e,y1e,T1e])}function k9(){MOn();return zfn(fT(i0e,1),g1n,324,0,[Z1e,n0e,r0e,e0e,t0e])}function y9(){Hkn();return zfn(fT(k3e,1),g1n,170,0,[p3e,v3e,d3e,m3e,g3e])}function M9(){Zkn();return zfn(fT(g8e,1),g1n,256,0,[b8e,d8e,h8e,l8e,w8e])}function T9(n){JM();return function(){return y6(n,this,arguments);var e}}function j9(n){if(!n.c||!n.d){return false}return!!n.c.i&&n.c.i==n.d.i}function E9(n,e){if(G$(e,143)){return T_(n.c,bG(e,143).c)}return false}function S9(n){if(!n.t){n.t=new Fp(n);Fdn(new eM(n),0,n.t)}return n.t}function P9(n){this.b=n;_D.call(this,n);this.a=bG(Ron(this.b.a,4),129)}function C9(n){this.b=n;aR.call(this,n);this.a=bG(Ron(this.b.a,4),129)}function I9(n,e,t,r,i){p7.call(this,e,r,i);Uh(this);this.c=n;this.b=t}function O9(n,e,t,r,i){f4.call(this,e,r,i);Uh(this);this.c=n;this.a=t}function A9(n,e,t,r,i){h4.call(this,e,r,i);Uh(this);this.c=n;this.a=t}function L9(n,e,t,r,i){p7.call(this,e,r,i);Uh(this);this.c=n;this.a=t}function N9(n,e){var t;t=bG(hrn(n.d,e),23);return t?t:bG(hrn(n.e,e),23)}function $9(n,e){var t,r;t=e.ld();r=n.Fe(t);return!!r&&DJ(r.e,e.md())}function D9(n,e){var t;t=e.ld();return new GE(t,n.e.pc(t,bG(e.md(),16)))}function x9(n,e){var t;t=n.a.get(e);return t==null?$nn(kce,jZn,1,0,5,1):t}function R9(n){var e;e=n.length;return T_(E0n.substr(E0n.length-e,e),n)}function K9(n){if(dDn(n)){n.c=n.a;return n.a.Pb()}else{throw dm(new Xm)}}function F9(n,e){if(e==0||n.e==0){return n}return e>0?PFn(n,e):omn(n,-e)}function _9(n,e){if(e==0||n.e==0){return n}return e>0?omn(n,e):PFn(n,-e)}function B9(n){BP.call(this,n==null?CZn:fvn(n),G$(n,82)?bG(n,82):null)}function H9(n){var e;if(!n.c){e=n.r;G$(e,90)&&(n.c=bG(e,29))}return n.c}function U9(n){var e;e=new zZ;Yon(e,n);Ehn(e,(IYn(),DFe),null);return e}function G9(n){var e,t;e=n.c.i;t=n.d.i;return e.k==(YIn(),nEe)&&t.k==nEe}function q9(n){var e,t,r;e=n&f0n;t=n>>22&f0n;r=n<0?h0n:0;return M$(e,t,r)}function X9(n){var e,t,r,i;for(t=n,r=0,i=t.length;r=0?n.Lh(r,t,true):r$n(n,e,t)}function W9(n,e,t){return bgn(pD(Fkn(n),_$(e.b)),pD(Fkn(n),_$(t.b)))}function Q9(n,e,t){return bgn(pD(Fkn(n),_$(e.e)),pD(Fkn(n),_$(t.e)))}function J9(n,e){return t.Math.min(hen(e.a,n.d.d.c),hen(e.b,n.d.d.c))}function Y9(n,e){n._i(n.i+1);SD(n,n.i,n.Zi(n.i,e));n.Mi(n.i++,e);n.Ni()}function Z9(n){var e,t;++n.j;e=n.g;t=n.i;n.g=null;n.i=0;n.Oi(t,e);n.Ni()}function n7(n,e,t){var r;r=new z$(n.a);Bsn(r,n.a.a);ZAn(r.f,e,t);n.a.a=r}function e7(n,e,t,r){var i;for(i=0;ie){throw dm(new kM(sLn(n,e,"index")))}return n}function s7(n,e){var t;t=(b3(e,n.c.length),n.c[e]);aE(n.c,e,1);return t}function o7(n,e){var t,r;t=(cJ(n),n);r=(cJ(e),e);return t==r?0:te.p){return-1}return 0}function O7(n){var e;if(!n.a){e=n.r;G$(e,156)&&(n.a=bG(e,156))}return n.a}function A7(n,e,t){var r;++n.e;--n.f;r=bG(n.d[e].gd(t),136);return r.md()}function L7(n){var e,t;e=n.ld();t=bG(n.md(),16);return tG(t.Nc(),new nb(e))}function N7(n,e){if(Lz(n.a,e)){b7(n.a,e);return true}else{return false}}function $7(n,e,t){Q4(e,n.e.Rd().gc());Q4(t,n.c.Rd().gc());return n.a[e][t]}function D7(n,e,t){this.a=n;this.b=e;this.c=t;ED(n.t,this);ED(e.i,this)}function x7(n,e,t,r){this.f=n;this.e=e;this.d=t;this.b=r;this.c=!r?null:r.d}function R7(){this.b=new vS;this.a=new vS;this.b=new vS;this.a=new vS}function K7(){K7=O;var n,e;Wut=(jj(),e=new Wm,e);Qut=(n=new ny,n)}function F7(n){var e;jgn(n);e=new vG(n,n.a.e,n.a.d|4);return new $K(n,e)}function _7(n){var e;WQ(n);e=0;while(n.a.Bd(new dn)){e=Rgn(e,1)}return e}function B7(n,e){cJ(e);if(n.c=0,"Initial capacity must not be negative")}function U7(){U7=O;L3e=new Np("org.eclipse.elk.labels.labelManager")}function G7(){G7=O;NCe=new bF("separateLayerConnections",(Wfn(),KCe))}function q7(){q7=O;yXe=new QI("REGULAR",0);kXe=new QI("CRITICAL",1)}function X7(){X7=O;Q1e=new vO("FIXED",0);W1e=new vO("CENTER_NODE",1)}function V7(){V7=O;dNe=new nI("QUADRATIC",0);gNe=new nI("SCANLINE",1)}function z7(){z7=O;TNe=xbn((Icn(),zfn(fT(MNe,1),g1n,322,0,[kNe,mNe,yNe])))}function W7(){W7=O;CNe=xbn((ocn(),zfn(fT(PNe,1),g1n,351,0,[jNe,SNe,ENe])))}function Q7(){Q7=O;VAe=xbn((yun(),zfn(fT(XAe,1),g1n,372,0,[qAe,GAe,UAe])))}function J7(){J7=O;GNe=xbn((Lhn(),zfn(fT(UNe,1),g1n,460,0,[BNe,_Ne,HNe])))}function Y7(){Y7=O;D$e=xbn((sfn(),zfn(fT($$e,1),g1n,299,0,[L$e,N$e,A$e])))}function Z7(){Z7=O;_$e=xbn((irn(),zfn(fT(F$e,1),g1n,311,0,[R$e,K$e,x$e])))}function nnn(){nnn=O;KBe=xbn((Nwn(),zfn(fT(RBe,1),g1n,390,0,[$Be,DBe,xBe])))}function enn(){enn=O;IHe=xbn((son(),zfn(fT(CHe,1),g1n,387,0,[EHe,SHe,PHe])))}function tnn(){tnn=O;$He=xbn((Aln(),zfn(fT(NHe,1),g1n,349,0,[LHe,OHe,AHe])))}function rnn(){rnn=O;jHe=xbn((fcn(),zfn(fT(THe,1),g1n,463,0,[MHe,kHe,yHe])))}function inn(){inn=O;_He=xbn((Ebn(),zfn(fT(FHe,1),g1n,350,0,[xHe,RHe,KHe])))}function ann(){ann=O;qHe=xbn((scn(),zfn(fT(GHe,1),g1n,352,0,[UHe,BHe,HHe])))}function cnn(){cnn=O;QHe=xbn((Yfn(),zfn(fT(WHe,1),g1n,388,0,[VHe,zHe,XHe])))}function unn(){unn=O;Sze=xbn((Lln(),zfn(fT(Eze,1),g1n,392,0,[jze,Tze,Mze])))}function snn(){snn=O;pJe=xbn((jbn(),zfn(fT(vJe,1),g1n,393,0,[wJe,dJe,gJe])))}function onn(){onn=O;wYe=xbn((uon(),zfn(fT(bYe,1),g1n,300,0,[hYe,lYe,fYe])))}function fnn(){fnn=O;SYe=xbn((tmn(),zfn(fT(EYe,1),g1n,445,0,[MYe,TYe,jYe])))}function hnn(){hnn=O;$Ye=xbn((iMn(),zfn(fT(NYe,1),g1n,456,0,[OYe,LYe,AYe])))}function lnn(){lnn=O;YYe=xbn((Xgn(),zfn(fT(JYe,1),g1n,394,0,[WYe,QYe,zYe])))}function bnn(){bnn=O;c1e=xbn((ktn(),zfn(fT(a1e,1),g1n,439,0,[t1e,i1e,r1e])))}function wnn(){wnn=O;YUe=xbn((ucn(),zfn(fT(JUe,1),g1n,464,0,[zUe,WUe,QUe])))}function dnn(){dnn=O;gpe=xbn((Uen(),zfn(fT(dpe,1),g1n,471,0,[bpe,lpe,wpe])))}function gnn(){gnn=O;upe=xbn((ran(),zfn(fT(cpe,1),g1n,237,0,[rpe,ipe,ape])))}function vnn(){vnn=O;Ppe=xbn((rrn(),zfn(fT(Spe,1),g1n,472,0,[Epe,jpe,Tpe])))}function pnn(){pnn=O;Dde=xbn((Sbn(),zfn(fT($de,1),g1n,108,0,[Ade,Lde,Nde])))}function mnn(){mnn=O;GMe=xbn((trn(),zfn(fT(UMe,1),g1n,391,0,[BMe,_Me,HMe])))}function knn(){knn=O;V5e=xbn((Dwn(),zfn(fT(X5e,1),g1n,346,0,[G5e,U5e,q5e])))}function ynn(){ynn=O;F1e=xbn((Hdn(),zfn(fT(K1e,1),g1n,444,0,[D1e,x1e,R1e])))}function Mnn(){Mnn=O;m5e=xbn((ian(),zfn(fT(p5e,1),g1n,278,0,[d5e,g5e,v5e])))}function Tnn(){Tnn=O;A9e=xbn(($wn(),zfn(fT(O9e,1),g1n,280,0,[C9e,P9e,I9e])))}function jnn(n,e){return!n.o&&(n.o=new ven((cYn(),int),Rnt,n,0)),Spn(n.o,e)}function Enn(n,e){var t;if(n.C){t=bG(xJ(n.b,e),127).n;t.d=n.C.d;t.a=n.C.a}}function Snn(n){var e,t,r,i;i=n.d;e=n.a;t=n.b;r=n.c;n.d=t;n.a=r;n.b=i;n.c=e}function Pnn(n){!n.g&&(n.g=new ko);!n.g.b&&(n.g.b=new Dp(n));return n.g.b}function Cnn(n){!n.g&&(n.g=new ko);!n.g.c&&(n.g.c=new Kp(n));return n.g.c}function Inn(n){!n.g&&(n.g=new ko);!n.g.d&&(n.g.d=new xp(n));return n.g.d}function Onn(n){!n.g&&(n.g=new ko);!n.g.a&&(n.g.a=new Rp(n));return n.g.a}function Ann(n,e,t,r){!!t&&(r=t.Rh(e,upn(t.Dh(),n.c.uk()),null,r));return r}function Lnn(n,e,t,r){!!t&&(r=t.Th(e,upn(t.Dh(),n.c.uk()),null,r));return r}function Nnn(n,e,t,r){var i;i=$nn(Ght,z1n,28,e+1,15,1);UGn(i,n,e,t,r);return i}function $nn(n,e,t,r,i,a){var c;c=LTn(i,r);i!=10&&zfn(fT(n,a),e,t,i,c);return c}function Dnn(n,e,t){var r,i;i=new ifn(e,n);for(r=0;rt||e=0?n.Lh(t,true,true):r$n(n,e,true)}function Een(n,e,t){var r;r=zhn(n,e,t);n.b=new _un(r.c.length);return i_n(n,r)}function Sen(n){if(n.b<=0)throw dm(new Xm);--n.b;n.a-=n.c.c;return Bwn(n.a)}function Pen(n){var e;if(!n.a){throw dm(new OY)}e=n.a;n.a=H0(n.a);return e}function Cen(n){while(!n.a){if(!S_(n.c,new Sd(n))){return false}}return true}function Ien(n){var e;nQ(n);if(G$(n,204)){e=bG(n,204);return e}return new wb(n)}function Oen(n){Aen();bG(n.of((JYn(),j6e)),181).Fc((uNn(),I8e));n.qf(T6e,null)}function Aen(){Aen=O;O2e=new ws;L2e=new ds;A2e=Hln((JYn(),T6e),O2e,t6e,L2e)}function Len(){Len=O;fJe=new aO("LEAF_NUMBER",0);hJe=new aO("NODE_SIZE",1)}function Nen(n){n.a=$nn(Ght,z1n,28,n.b+1,15,1);n.c=$nn(Ght,z1n,28,n.b,15,1);n.d=0}function $en(n,e){if(n.a.Ne(e.d,n.b)>0){ED(n.c,new mG(e.c,e.d,n.d));n.b=e.d}}function Den(n,e){if(n.g==null||e>=n.i)throw dm(new ML(e,n.i));return n.g[e]}function xen(n,e,t){yln(n,t);if(t!=null&&!n.fk(t)){throw dm(new Km)}return t}function Ren(n,e){Prn(e)!=10&&zfn(Cbn(e),e.Sm,e.__elementTypeId$,Prn(e),n);return n}function Ken(n,e,t,r){var i;r=(wZ(),!r?Nbe:r);i=n.slice(e,t);oLn(i,n,e,t,-e,r)}function Fen(n,e,t,r,i){return e<0?r$n(n,t,r):bG(t,69).wk().yk(n,n.hi(),e,r,i)}function _en(n,e){return bgn(bM(MK(lIn(n,(WYn(),$De)))),bM(MK(lIn(e,$De))))}function Ben(){Ben=O;hde=xbn((Hen(),zfn(fT(ude,1),g1n,304,0,[rde,ide,ade,cde])))}function Hen(){Hen=O;rde=new QP("All",0);ide=new AN;ade=new L$;cde=new ON}function Uen(){Uen=O;bpe=new hC(X2n,0);lpe=new hC(U2n,1);wpe=new hC(V2n,2)}function Gen(){Gen=O;cXn();Kot=y0n;Rot=M0n;_ot=new Hw(y0n);Fot=new Hw(M0n)}function qen(){qen=O;kme=xbn((ufn(),zfn(fT(mme,1),g1n,417,0,[pme,dme,gme,vme])))}function Xen(){Xen=O;jke=xbn((Tyn(),zfn(fT(Tke,1),g1n,406,0,[kke,mke,yke,Mke])))}function Ven(){Ven=O;Xme=xbn((jyn(),zfn(fT(qme,1),g1n,332,0,[Hme,Bme,Ume,Gme])))}function zen(){zen=O;bje=xbn((zmn(),zfn(fT(lje,1),g1n,389,0,[hje,oje,sje,fje])))}function Wen(){Wen=O;_Te=xbn((Jfn(),zfn(fT(FTe,1),g1n,416,0,[DTe,KTe,xTe,RTe])))}function Qen(){Qen=O;EAe=xbn((Qfn(),zfn(fT(jAe,1),g1n,421,0,[kAe,yAe,MAe,TAe])))}function Jen(){Jen=O;_Ce=xbn((Wfn(),zfn(fT(FCe,1),g1n,371,0,[KCe,xCe,RCe,DCe])))}function Yen(){Yen=O;GBe=xbn((rMn(),zfn(fT(UBe,1),g1n,203,0,[BBe,HBe,_Be,FBe])))}function Zen(){Zen=O;dHe=xbn((Smn(),zfn(fT(wHe,1),g1n,284,0,[hHe,fHe,lHe,bHe])))}function ntn(){ntn=O;n$e=new sI(G4n,0);ZNe=new sI("IMPROVE_STRAIGHTNESS",1)}function etn(n,e){var t,r;r=e/n.c.Rd().gc()|0;t=e%n.c.Rd().gc();return $7(n,r,t)}function ttn(n){var e;if(n.nl()){for(e=n.i-1;e>=0;--e){Yin(n,e)}}return y5(n)}function rtn(n){var e,t;if(!n.b){return null}t=n.b;while(e=t.a[0]){t=e}return t}function itn(n){var e,t;if(!n.b){return null}t=n.b;while(e=t.a[1]){t=e}return t}function atn(n){if(G$(n,180)){return""+bG(n,180).a}return n==null?null:fvn(n)}function ctn(n){if(G$(n,180)){return""+bG(n,180).a}return n==null?null:fvn(n)}function utn(n,e){if(e.a){throw dm(new Uy(g2n))}Gz(n.a,e);e.a=n;!n.j&&(n.j=e)}function stn(n,e){oL.call(this,e.zd(),e.yd()&-16449);cJ(n);this.a=n;this.c=e}function otn(n,e){return new RU(e,UR(_$(e.e),e.f.a+n,e.f.b+n),(Qx(),false))}function ftn(n,e){LU();return ED(n,new nA(e,Bwn(e.e.c.length+e.g.c.length)))}function htn(n,e){LU();return ED(n,new nA(e,Bwn(e.e.c.length+e.g.c.length)))}function ltn(){ltn=O;oYe=xbn((kTn(),zfn(fT(sYe,1),g1n,354,0,[uYe,aYe,cYe,iYe])))}function btn(){btn=O;WWe=xbn((Tbn(),zfn(fT(zWe,1),g1n,353,0,[VWe,qWe,XWe,GWe])))}function wtn(){wtn=O;lVe=xbn((Njn(),zfn(fT(hVe,1),g1n,405,0,[uVe,sVe,oVe,fVe])))}function dtn(){dtn=O;E5e=xbn((qgn(),zfn(fT(j5e,1),g1n,223,0,[T5e,y5e,k5e,M5e])))}function gtn(){gtn=O;Z5e=xbn((xjn(),zfn(fT(Y5e,1),g1n,291,0,[J5e,z5e,W5e,Q5e])))}function vtn(){vtn=O;d9e=xbn((emn(),zfn(fT(w9e,1),g1n,386,0,[l9e,b9e,h9e,f9e])))}function ptn(){ptn=O;V9e=xbn((Qvn(),zfn(fT(X9e,1),g1n,320,0,[q9e,H9e,G9e,U9e])))}function mtn(){mtn=O;k7e=xbn((Oln(),zfn(fT(m7e,1),g1n,415,0,[g7e,v7e,d7e,p7e])))}function ktn(){ktn=O;t1e=new bO(d7n,0);i1e=new bO(m9n,1);r1e=new bO(G4n,2)}function ytn(n,e,t,r,i){cJ(n);cJ(e);cJ(t);cJ(r);cJ(i);return new nW(n,e,r)}function Mtn(n,e){var t;t=bG(b7(n.e,e),400);if(t){fq(t);return t.e}return null}function Ttn(n,e){var t;t=Ctn(n,e,0);if(t==-1){return false}s7(n,t);return true}function jtn(n,e,t){var r;WQ(n);r=new bn;r.a=e;n.a.Nb(new aC(r,t));return r.a}function Etn(n){var e;WQ(n);e=$nn(zht,C0n,28,0,15,1);cE(n.a,new Td(e));return e}function Stn(n){var e;if(!lun(n)){throw dm(new Xm)}n.e=1;e=n.d;n.d=null;return e}function Ptn(n){var e;if(qL(n)){e=0-n;if(!isNaN(e)){return e}}return Oon(yhn(n))}function Ctn(n,e,t){for(;t=0?_yn(n,t,true,true):r$n(n,e,true)}function Ztn(n){var e;e=Uan(Ron(n,32));if(e==null){Fmn(n);e=Uan(Ron(n,32))}return e}function nrn(n){var e;if(!n.Oh()){e=sQ(n.Dh())-n.ji();n.$h().Mk(e)}return n.zh()}function ern(n,e){eke=new ue;Zme=e;nke=n;bG(nke.b,68);Hnn(nke,eke,null);AVn(nke)}function trn(){trn=O;BMe=new kC("XY",0);_Me=new kC("X",1);HMe=new kC("Y",2)}function rrn(){rrn=O;Epe=new lC("TOP",0);jpe=new lC(U2n,1);Tpe=new lC(W2n,2)}function irn(){irn=O;R$e=new bI(G4n,0);K$e=new bI("TOP",1);x$e=new bI(W2n,2)}function arn(){arn=O;gHe=new MI("INPUT_ORDER",0);vHe=new MI("PORT_DEGREE",1)}function crn(){crn=O;Phe=M$(f0n,f0n,524287);Che=M$(0,0,l0n);Ihe=q9(1);q9(2);Ohe=q9(0)}function urn(n){var e;if(n.d!=n.r){e=pEn(n);n.e=!!e&&e.lk()==uie;n.d=e}return n.e}function srn(n,e,t){var r;r=n.g[e];SD(n,e,n.Zi(e,t));n.Ri(e,t,r);n.Ni();return r}function orn(n,e){var t;t=n.dd(e);if(t>=0){n.gd(t);return true}else{return false}}function frn(n,e){var t;nQ(n);nQ(e);t=false;while(e.Ob()){t=t|n.Fc(e.Pb())}return t}function hrn(n,e){var t;t=bG(fQ(n.e,e),400);if(t){aD(n,t);return t.e}return null}function lrn(n){var e,t;e=n/60|0;t=n%60;if(t==0){return""+e}return""+e+":"+(""+t)}function brn(n,e){var t=n.a[e];var r=(Nhn(),jhe)[typeof t];return r?r(t):Zbn(typeof t)}function wrn(n,e){var t,r;jgn(n);r=new g7(e,n.a);t=new __(r);return new gX(n,t)}function drn(n){var e;e=n.b.c.length==0?null:Yq(n.b,0);e!=null&&Nun(n,0);return e}function grn(n,e){var t,r,i;i=e.c.i;t=bG(fQ(n.f,i),60);r=t.d.c-t.e.c;gsn(e.a,r,0)}function vrn(n,e){var t;++n.d;++n.c[e];t=e+1;while(t=0){++e[0]}}function krn(n,e){San(n,e==null||tB((cJ(e),e))||isNaN((cJ(e),e))?0:(cJ(e),e))}function yrn(n,e){Pan(n,e==null||tB((cJ(e),e))||isNaN((cJ(e),e))?0:(cJ(e),e))}function Mrn(n,e){Ean(n,e==null||tB((cJ(e),e))||isNaN((cJ(e),e))?0:(cJ(e),e))}function Trn(n,e){jan(n,e==null||tB((cJ(e),e))||isNaN((cJ(e),e))?0:(cJ(e),e))}function jrn(n,e,t){return pD(new PO(t.e.a+t.f.a/2,t.e.b+t.f.b/2),n)==(cJ(e),e)}function Ern(n,e){return G$(e,102)&&(bG(e,19).Bb&S0n)!=0?new SL(e,n):new ifn(e,n)}function Srn(n,e){return G$(e,102)&&(bG(e,19).Bb&S0n)!=0?new SL(e,n):new ifn(e,n)}function Prn(n){return n.__elementTypeCategory$==null?10:n.__elementTypeCategory$}function Crn(n,e){return e==(fB(),fB(),dwe)?n.toLocaleLowerCase():n.toLowerCase()}function Irn(n){if(!n.e){throw dm(new Xm)}n.c=n.a=n.e;n.e=n.e.e;--n.d;return n.a.f}function Orn(n){if(!n.c){throw dm(new Xm)}n.e=n.a=n.c;n.c=n.c.c;++n.d;return n.a.f}function Arn(n){var e;++n.a;for(e=n.c.a.length;n.an.a[r]&&(r=t)}return r}function Rrn(n){var e;e=bG(lIn(n,(WYn(),V$e)),313);if(e){return e.a==n}return false}function Krn(n){var e;e=bG(lIn(n,(WYn(),V$e)),313);if(e){return e.i==n}return false}function Frn(){Frn=O;oTe=xbn((bIn(),zfn(fT(sTe,1),g1n,367,0,[rTe,iTe,aTe,cTe,uTe])))}function _rn(){_rn=O;RAe=xbn((yPn(),zfn(fT(xAe,1),g1n,375,0,[LAe,$Ae,DAe,NAe,AAe])))}function Brn(){Brn=O;DNe=xbn((Emn(),zfn(fT($Ne,1),g1n,348,0,[ONe,INe,LNe,NNe,ANe])))}function Hrn(){Hrn=O;JBe=xbn((Myn(),zfn(fT(QBe,1),g1n,323,0,[WBe,XBe,VBe,qBe,zBe])))}function Urn(){Urn=O;exe=xbn((Wvn(),zfn(fT(nxe,1),g1n,171,0,[ZDe,WDe,QDe,JDe,YDe])))}function Grn(){Grn=O;nJe=xbn((YPn(),zfn(fT(ZQe,1),g1n,368,0,[JQe,zQe,YQe,WQe,QQe])))}function qrn(){qrn=O;E1e=xbn((qRn(),zfn(fT(j1e,1),g1n,373,0,[k1e,m1e,M1e,y1e,T1e])))}function Xrn(){Xrn=O;a0e=xbn((MOn(),zfn(fT(i0e,1),g1n,324,0,[Z1e,n0e,r0e,e0e,t0e])))}function Vrn(){Vrn=O;w5e=xbn((Bdn(),zfn(fT(b5e,1),g1n,88,0,[h5e,f5e,o5e,s5e,l5e])))}function zrn(){zrn=O;y3e=xbn((Hkn(),zfn(fT(k3e,1),g1n,170,0,[p3e,v3e,d3e,m3e,g3e])))}function Wrn(){Wrn=O;v8e=xbn((Zkn(),zfn(fT(g8e,1),g1n,256,0,[b8e,d8e,h8e,l8e,w8e])))}function Qrn(){Qrn=O;t9e=xbn((UQn(),zfn(fT(e9e,1),X4n,64,0,[Z8e,D8e,$8e,Y8e,n9e])))}function Jrn(){Jrn=O;Mve=new sC("BY_SIZE",0);Tve=new sC("BY_SIZE_AND_SHAPE",1)}function Yrn(){Yrn=O;Nye=new mC("EADES",0);$ye=new mC("FRUCHTERMAN_REINGOLD",1)}function Zrn(){Zrn=O;xNe=new aI("READING_DIRECTION",0);RNe=new aI("ROTATION",1)}function nin(){nin=O;UTe=new Le;GTe=new xe;BTe=new Re;HTe=new De;qTe=new Ke}function ein(n){this.b=new im;this.a=new im;this.c=new im;this.d=new im;this.e=n}function tin(n){this.g=n;this.f=new im;this.a=t.Math.min(this.g.c.c,this.g.d.c)}function rin(n,e,t){VF.call(this);ean(this);this.a=n;this.c=t;this.b=e.d;this.f=e.e}function iin(n,e,t){var r,i;for(i=new nd(t);i.a=0&&e0?e-1:e;return vj(pj(Ban(BG(new gy,t),n.n),n.j),n.k)}function oin(n){var e,t;t=(e=new ry,e);cen((!n.q&&(n.q=new gz(Irt,n,11,10)),n.q),t)}function fin(n){return((n.i&2)!=0?"interface ":(n.i&1)!=0?"":"class ")+(jK(n),n.o)}function hin(n){if(kwn(n,pZn)>0){return pZn}if(kwn(n,T1n)<0){return T1n}return MV(n)}function lin(n){if(n<3){Tcn(n,l1n);return n+1}if(n=-.01&&n.a<=Y2n&&(n.a=0);n.b>=-.01&&n.b<=Y2n&&(n.b=0);return n}function Cin(n){v_n();var e,t;t=U9n;for(e=0;et&&(t=n[e])}return t}function Iin(n,e){var t;t=OKn(n.Dh(),e);if(!t){throw dm(new jM(Uee+e+Xee))}return t}function Oin(n,e){var t;t=n;while(H0(t)){t=H0(t);if(t==e){return true}}return false}function Ain(n,e){var t,r,i;r=e.a.ld();t=bG(e.a.md(),16).gc();for(i=0;in||n>e){throw dm(new rT("fromIndex: 0, toIndex: "+n+W0n+e))}}function _in(n){if(n<0){throw dm(new jM("Illegal Capacity: "+n))}this.g=this.aj(n)}function Bin(n,e){r$();lcn(M1n);return t.Math.abs(n-e)<=M1n||n==e||isNaN(n)&&isNaN(e)}function Hin(n,e){var t,r,i,a;for(r=n.d,i=0,a=r.length;i0){n.a/=e;n.b/=e}return n}function Vin(n){var e;if(n.w){return n.w}else{e=D3(n);!!e&&!e.Vh()&&(n.w=e);return e}}function zin(n,e){var t,r;r=n.a;t=Edn(n,e,null);r!=e&&!n.e&&(t=LWn(n,e,t));!!t&&t.oj()}function Win(n,e,t){var r,i;r=e;do{i=bM(n.p[r.p])+t;n.p[r.p]=i;r=n.a[r.p]}while(r!=e)}function Qin(n,e,t){var r=function(){return n.apply(r,arguments)};e.apply(r,t);return r}function Jin(n){var e;if(n==null){return null}else{e=bG(n,195);return KCn(e,e.length)}}function Yin(n,e){if(n.g==null||e>=n.i)throw dm(new ML(e,n.i));return n.Wi(e,n.g[e])}function Zin(n,e){dZ();var t,r;r=new im;for(t=0;t=14&&e<=16)));return n}function Gan(n,e){var t;cJ(e);t=n[":"+e];jG(!!t,"Enum constant undefined: "+e);return t}function qan(n,e,t,r,i,a){var c;c=ZW(n,e);Han(t,c);c.i=i?8:0;c.f=r;c.e=i;c.g=a;return c}function Xan(n,e,t,r,i){this.d=e;this.k=r;this.f=i;this.o=-1;this.p=1;this.c=n;this.a=t}function Van(n,e,t,r,i){this.d=e;this.k=r;this.f=i;this.o=-1;this.p=2;this.c=n;this.a=t}function zan(n,e,t,r,i){this.d=e;this.k=r;this.f=i;this.o=-1;this.p=6;this.c=n;this.a=t}function Wan(n,e,t,r,i){this.d=e;this.k=r;this.f=i;this.o=-1;this.p=7;this.c=n;this.a=t}function Qan(n,e,t,r,i){this.d=e;this.j=r;this.e=i;this.o=-1;this.p=4;this.c=n;this.a=t}function Jan(n,e){var t,r,i,a;for(r=e,i=0,a=r.length;i=0)){throw dm(new jM("tolerance ("+n+") must be >= 0"))}return n}function bcn(n,e){var t;if(G$(e,44)){return n.c.Mc(e)}else{t=Spn(n,e);Amn(n,e);return t}}function wcn(n,e,t){Ubn(n,e);Qun(n,t);Lan(n,0);Nan(n,1);Tdn(n,true);kdn(n,true);return n}function dcn(n,e){var t;t=n.gc();if(e<0||e>t)throw dm(new m_(e,t));return new K_(n,e)}function gcn(n,e){n.b=t.Math.max(n.b,e.d);n.e+=e.r+(n.a.c.length==0?0:n.c);ED(n.a,e)}function vcn(n){CK(n.c>=0);if(Hmn(n.d,n.c)<0){n.a=n.a-1&n.d.a.length-1;n.b=n.d.c}n.c=-1}function pcn(n){var e,t;for(t=n.c.Cc().Kc();t.Ob();){e=bG(t.Pb(),16);e.$b()}n.c.$b();n.d=0}function mcn(n){var e,t,r,i;for(t=n.a,r=0,i=t.length;r=0}function Xcn(n,e){if(n.r>0&&n.c0&&n.g!=0&&Xcn(n.i,e/n.r*n.i.d)}}function Vcn(n,e){var t;t=n.c;n.c=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,1,t,n.c))}function zcn(n,e){var t;t=n.c;n.c=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,4,t,n.c))}function Wcn(n,e){var t;t=n.k;n.k=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,2,t,n.k))}function Qcn(n,e){var t;t=n.D;n.D=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,2,t,n.D))}function Jcn(n,e){var t;t=n.f;n.f=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,8,t,n.f))}function Ycn(n,e){var t;t=n.i;n.i=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,7,t,n.i))}function Zcn(n,e){var t;t=n.a;n.a=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,8,t,n.a))}function nun(n,e){var t;t=n.b;n.b=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,0,t,n.b))}function eun(n,e){var t;t=n.b;n.b=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,0,t,n.b))}function tun(n,e){var t;t=n.c;n.c=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,1,t,n.c))}function run(n,e){var t;t=n.d;n.d=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,1,t,n.d))}function iun(n,e,t){var r;n.b=e;n.a=t;r=(n.a&512)==512?new hy:new Fh;n.c=QFn(r,n.b,n.a)}function aun(n,e){return OFn(n.e,e)?(LP(),urn(e)?new Nq(e,n):new DA(e,n)):new LA(e,n)}function cun(n){var e,t;if(0>n){return new TS}e=n+1;t=new s9(e,n);return new DK(null,t)}function uun(n,e){dZ();var t;t=new wS(1);HA(n)?o2(t,n,e):ZAn(t.f,n,e);return new Zw(t)}function sun(n,e){var t,r;t=n.c;r=e.e[n.p];if(r>0){return bG(Yq(t.a,r-1),10)}return null}function oun(n,e){var t,r;t=n.o+n.p;r=e.o+e.p;if(te){e<<=1;return e>0?e:w1n}return e}function lun(n){qD(n.e!=3);switch(n.e){case 2:return false;case 0:return true}return h7(n)}function bun(n,e){var t;if(G$(e,8)){t=bG(e,8);return n.a==t.a&&n.b==t.b}else{return false}}function wun(n,e){var t;t=new ue;bG(e.b,68);bG(e.b,68);bG(e.b,68);Lin(e.a,new FU(n,t,e))}function dun(n,e){var t,r;for(r=e.vc().Kc();r.Ob();){t=bG(r.Pb(),44);oSn(n,t.ld(),t.md())}}function gun(n,e){var t;t=n.d;n.d=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,11,t,n.d))}function vun(n,e){var t;t=n.j;n.j=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,13,t,n.j))}function pun(n,e){var t;t=n.b;n.b=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,21,t,n.b))}function mun(n,e){((c9(),Sde)?null:e.c).length==0&&HK(e,new W);o2(n.a,Sde?null:e.c,e)}function kun(n,e){e.Ug("Hierarchical port constraint processing",1);hyn(n);SYn(n);e.Vg()}function yun(){yun=O;qAe=new ZC("START",0);GAe=new ZC("MIDDLE",1);UAe=new ZC("END",2)}function Mun(){Mun=O;_Qe=new rO("P1_NODE_PLACEMENT",0);BQe=new rO("P2_EDGE_ROUTING",1)}function Tun(){Tun=O;wMe=new Np(j4n);dMe=new Np(E4n);bMe=new Np(S4n);lMe=new Np(P4n)}function jun(n){var e;DB(n.f.g,n.d);PK(n.b);n.c=n.a;e=bG(n.a.Pb(),44);n.b=Lfn(n);return e}function Eun(n){var e;if(n.b==null){return OP(),OP(),dat}e=n.ul()?n.tl():n.sl();return e}function Sun(n,e){var t;t=e==null?-1:Ctn(n.b,e,0);if(t<0){return false}Nun(n,t);return true}function Pun(n,e){var t;cJ(e);t=e.g;if(!n.b[t]){bQ(n.b,t,e);++n.c;return true}return false}function Cun(n,e){var t,r;t=1-e;r=n.a[t];n.a[t]=r.a[e];r.a[e]=n;n.b=true;r.b=false;return r}function Iun(n,e){var t,r;for(r=e.Kc();r.Ob();){t=bG(r.Pb(),272);n.b=true;Gz(n.e,t);t.b=n}}function Oun(n,e){var t,r;t=bG(lIn(n,(IYn(),S_e)),8);r=bG(lIn(e,S_e),8);return bgn(t.b,r.b)}function Aun(n,e,t){var r,i,a;a=e>>5;i=e&31;r=O3(_V(n.n[t][a],MV(KV(i,1))),3);return r}function Lun(n,e,t){var r,i,a;a=n.a.length-1;for(i=n.b,r=0;r0?1:0}return(!n.c&&(n.c=I2(Xon(n.f))),n.c).e}function csn(n,e){if(e){if(n.B==null){n.B=n.D;n.D=null}}else if(n.B!=null){n.D=n.B;n.B=null}}function usn(n,e){Jfn();return n==DTe&&e==KTe||n==KTe&&e==DTe||n==RTe&&e==xTe||n==xTe&&e==RTe}function ssn(n,e){Jfn();return n==DTe&&e==xTe||n==DTe&&e==RTe||n==KTe&&e==RTe||n==KTe&&e==xTe}function osn(n,e){return r$(),lcn(Y2n),t.Math.abs(0-e)<=Y2n||0==e||isNaN(0)&&isNaN(e)?0:n/e}function fsn(n,e){return bM(MK(Sx(fdn(rY(new gX(null,new d3(n.c.b,16)),new qg(n)),e))))}function hsn(n,e){return bM(MK(Sx(fdn(rY(new gX(null,new d3(n.c.b,16)),new Gg(n)),e))))}function lsn(){o_n();return zfn(fT(I$e,1),g1n,259,0,[k$e,M$e,T$e,j$e,E$e,S$e,C$e,m$e,y$e,P$e])}function bsn(){CHn();return zfn(fT(sHe,1),g1n,243,0,[cHe,eHe,iHe,tHe,rHe,YBe,aHe,uHe,ZBe,nHe])}function wsn(n,e){var t;e.Ug("General Compactor",1);t=Xvn(bG(YDn(n,(IOn(),KJe)),393));t.Cg(n)}function dsn(n,e){var t,r;t=bG(YDn(n,(IOn(),qJe)),17);r=bG(YDn(e,qJe),17);return k$(t.a,r.a)}function gsn(n,e,t){var r,i;for(i=Gkn(n,0);i.b!=i.d.c;){r=bG($6(i),8);r.a+=e;r.b+=t}return n}function vsn(n,e,t){var r;for(r=n.b[t&n.f];r;r=r.b){if(t==r.a&&BQ(e,r.g)){return r}}return null}function psn(n,e,t){var r;for(r=n.c[t&n.f];r;r=r.d){if(t==r.f&&BQ(e,r.i)){return r}}return null}function msn(n,e,t){var r,i,a;r=0;for(i=0;i>>31}r!=0&&(n[t]=r)}function ksn(n,e,t,r,i,a){var c;this.c=n;c=new im;cTn(n,c,e,n.b,t,r,i,a);this.a=new K4(c,0)}function ysn(){this.c=new Zj(0);this.b=new Zj(K9n);this.d=new Zj(R9n);this.a=new Zj(F3n)}function Msn(n,e,t,r,i,a,c){qE.call(this,n,e);this.d=t;this.e=r;this.c=i;this.b=a;this.a=a7(c)}function Tsn(n,e,t,r,i,a,c,u,s,o,f,h,l){uLn(n,e,t,r,i,a,c,u,s,o,f,h,l);Agn(n,false);return n}function jsn(n){if(n.b.c.i.k==(YIn(),nEe)){return bG(lIn(n.b.c.i,(WYn(),EDe)),12)}return n.b.c}function Esn(n){if(n.b.d.i.k==(YIn(),nEe)){return bG(lIn(n.b.d.i,(WYn(),EDe)),12)}return n.b.d}function Ssn(n){var e;e=c6(n);if(qA(e.a,0)){return yS(),yS(),jwe}return yS(),new kR(e.b)}function Psn(n){var e;e=i6(n);if(qA(e.a,0)){return kS(),kS(),Mwe}return kS(),new mR(e.b)}function Csn(n){var e;e=i6(n);if(qA(e.a,0)){return kS(),kS(),Mwe}return kS(),new mR(e.c)}function Isn(n){switch(n.g){case 2:return UQn(),n9e;case 4:return UQn(),$8e;default:return n}}function Osn(n){switch(n.g){case 1:return UQn(),Y8e;case 3:return UQn(),D8e;default:return n}}function Asn(n){switch(n.g){case 0:return new Zu;case 1:return new ns;default:return null}}function Lsn(){Lsn=O;MCe=new bF("edgelabelcenterednessanalysis.includelabel",(Qx(),Bhe))}function Nsn(){Nsn=O;UUe=Rmn(yL(xq(xq(new mJ,(bIn(),aTe),(YYn(),qPe)),cTe,DPe),uTe),GPe)}function $sn(){$sn=O;uGe=Rmn(yL(xq(xq(new mJ,(bIn(),aTe),(YYn(),qPe)),cTe,DPe),uTe),GPe)}function Dsn(){Dsn=O;Cit=new ey;Oit=zfn(fT(mrt,1),pie,179,0,[]);Iit=zfn(fT(Irt,1),mie,62,0,[])}function xsn(){xsn=O;ISe=new LC("TO_INTERNAL_LTR",0);CSe=new LC("TO_INPUT_DIRECTION",1)}function Rsn(){Rsn=O;bEe=new Xe;hEe=new Ve;lEe=new ze;fEe=new We;wEe=new Qe;dEe=new Je}function Ksn(n,e){e.Ug(d6n,1);xvn(GS(new xd((YS(),new TY(n,false,false,new Ge)))));e.Vg()}function Fsn(n,e,t){t.Ug("DFS Treeifying phase",1);Qpn(n,e);QKn(n,e);n.a=null;n.b=null;t.Vg()}function _sn(n,e){Qx();return HA(n)?o7(n,TK(e)):GA(n)?HV(n,MK(e)):UA(n)?BV(n,yK(e)):n.Fd(e)}function Bsn(n,e){var t,r;cJ(e);for(r=e.vc().Kc();r.Ob();){t=bG(r.Pb(),44);n.zc(t.ld(),t.md())}}function Hsn(n,e,t){var r;for(r=t.Kc();r.Ob();){if(!V5(n,e,r.Pb())){return false}}return true}function Usn(n,e,t,r,i){var a;if(t){a=upn(e.Dh(),n.c);i=t.Rh(e,-1-(a==-1?r:a),null,i)}return i}function Gsn(n,e,t,r,i){var a;if(t){a=upn(e.Dh(),n.c);i=t.Th(e,-1-(a==-1?r:a),null,i)}return i}function qsn(n){var e;if(n.b==-2){if(n.e==0){e=-1}else{for(e=0;n.a[e]==0;e++);}n.b=e}return n.b}function Xsn(n){cJ(n);if(n.length==0){throw dm(new iT("Zero length BigInteger"))}QHn(this,n)}function Vsn(n){this.i=n.gc();if(this.i>0){this.g=this.aj(this.i+(this.i/8|0)+1);n.Qc(this.g)}}function zsn(n,e,t){this.g=n;this.d=e;this.e=t;this.a=new im;HLn(this);dZ();g$(this.a,null)}function Wsn(n,e){e.q=n;n.d=t.Math.max(n.d,e.r);n.b+=e.d+(n.a.c.length==0?0:n.c);ED(n.a,e)}function Qsn(n,e){var t,r,i,a;i=n.c;t=n.c+n.b;a=n.d;r=n.d+n.a;return e.a>i&&e.aa&&e.bi?t=i:w3(e,t+1);n.a=o1(n.a,0,e)+(""+r)+wQ(n.a,t)}function Ton(n,e){n.a=Rgn(n.a,1);n.c=t.Math.min(n.c,e);n.b=t.Math.max(n.b,e);n.d=Rgn(n.d,e)}function jon(n,e){return e1||n.Ob()){++n.a;n.g=0;e=n.i;n.Ob();return e}else{throw dm(new Xm)}}function Gon(n){switch(n.a.g){case 1:return new UI;case 3:return new YTn;default:return new Tl}}function qon(n,e){switch(e){case 1:return!!n.n&&n.n.i!=0;case 2:return n.k!=null}return I4(n,e)}function Xon(n){if(g0n>22);i=n.h+e.h+(r>>22);return M$(t&f0n,r&f0n,i&h0n)}function Cfn(n,e){var t,r,i;t=n.l-e.l;r=n.m-e.m+(t>>22);i=n.h-e.h+(r>>22);return M$(t&f0n,r&f0n,i&h0n)}function Ifn(n){var e,t;XQn(n);for(t=new nd(n.d);t.ar)throw dm(new m_(e,r));n.Si()&&(t=x0(n,t));return n.Ei(e,t)}function mhn(n,e,t,r,i){var a,c;for(c=t;c<=i;c++){for(a=e;a<=r;a++){uTn(n,a,c)||VBn(n,a,c,true,false)}}}function khn(n){v_n();var e,t,r;t=$nn(D3e,XZn,8,2,0,1);r=0;for(e=0;e<2;e++){r+=.5;t[e]=nTn(r,n)}return t}function yhn(n){var e,t,r;e=~n.l+1&f0n;t=~n.m+(e==0?1:0)&f0n;r=~n.h+(e==0&&t==0?1:0)&h0n;return M$(e,t,r)}function Mhn(n){var e;if(n<0){return T1n}else if(n==0){return 0}else{for(e=w1n;(e&n)==0;e>>=1);return e}}function Thn(n,e,t){if(n>=128)return false;return n<64?VA(O3(KV(1,n),t),0):VA(O3(KV(1,n-64),e),0)}function jhn(n,e,t){return t==null?(!n.q&&(n.q=new rm),b7(n.q,e)):(!n.q&&(n.q=new rm),jJ(n.q,e,t)),n}function Ehn(n,e,t){t==null?(!n.q&&(n.q=new rm),b7(n.q,e)):(!n.q&&(n.q=new rm),jJ(n.q,e,t));return n}function Shn(n){var e,t;t=new k7;Yon(t,n);Ehn(t,(Tun(),wMe),n);e=new rm;Eqn(n,t,e);YWn(n,t,e);return t}function Phn(n){var e,t;e=n.t-n.k[n.o.p]*n.d+n.j[n.o.p]>n.f;t=n.u+n.e[n.o.p]*n.d>n.f*n.s*n.d;return e||t}function Chn(n,e){var t,r,i,a;t=false;r=n.a[e].length;for(a=0;a=0,"Negative initial capacity");jG(e>=0,"Non-positive load factor");Fz(this)}function Fhn(n,e,t,r,i){var a,c;c=n.length;a=t.length;if(e<0||r<0||i<0||e+i>c||r+i>a){throw dm(new Rm)}}function _hn(n,e){dZ();var t,r,i,a,c;c=false;for(r=e,i=0,a=r.length;i1||e>=0&&n.b<3}function rln(n){var e,t,r;e=~n.l+1&f0n;t=~n.m+(e==0?1:0)&f0n;r=~n.h+(e==0&&t==0?1:0)&h0n;n.l=e;n.m=t;n.h=r}function iln(n){dZ();var e,t,r;r=1;for(t=n.Kc();t.Ob();){e=t.Pb();r=31*r+(e!=null?Vun(e):0);r=r|0}return r}function aln(n,e,t,r,i){var a;a=yDn(n,e);t&&rln(a);if(i){n=dTn(n,e);r?She=yhn(n):She=M$(n.l,n.m,n.h)}return a}function cln(n,e,t){n.g=TAn(n,e,(UQn(),$8e),n.b);n.d=TAn(n,t,$8e,n.b);if(n.g.c==0||n.d.c==0){return}xIn(n)}function uln(n,e,t){n.g=TAn(n,e,(UQn(),n9e),n.j);n.d=TAn(n,t,n9e,n.j);if(n.g.c==0||n.d.c==0){return}xIn(n)}function sln(n,e){switch(e){case 7:return!!n.e&&n.e.i!=0;case 8:return!!n.d&&n.d.i!=0}return Uvn(n,e)}function oln(n,e){switch(e.g){case 0:G$(n.b,641)||(n.b=new von);break;case 1:G$(n.b,642)||(n.b=new YG)}}function fln(n){switch(n.g){case 0:return new cs;default:throw dm(new jM(hne+(n.f!=null?n.f:""+n.g)))}}function hln(n){switch(n.g){case 0:return new is;default:throw dm(new jM(hne+(n.f!=null?n.f:""+n.g)))}}function lln(n,e,t){return!eE(tY(new gX(null,new d3(n.c,16)),new dd(new WO(e,t)))).Bd((jS(),gge))}function bln(n,e){return pD(Fkn(bG(lIn(e,(eqn(),wWe)),88)),new PO(n.c.e.a-n.b.e.a,n.c.e.b-n.b.e.b))<=0}function wln(n,e){while(n.g==null&&!n.c?D0(n):n.g==null||n.i!=0&&bG(n.g[n.i-1],51).Ob()){SA(e,nRn(n))}}function dln(n){var e,t;for(t=new nd(n.a.b);t.ar?1:0}function Sln(n){ED(n.c,(nhn(),f2e));if(Bin(n.a,bM(MK(tyn((vpn(),kBe)))))){return new Js}return new Yv(n)}function Pln(n){while(!n.d||!n.d.Ob()){if(!!n.b&&!RM(n.b)){n.d=bG(Bz(n.b),51)}else{return null}}return n.d}function Cln(n){switch(n.g){case 1:return R9n;default:case 2:return 0;case 3:return F3n;case 4:return K9n}}function Iln(){eZn();var n;if(aht)return aht;n=uR(EJn("M",true));n=NX(EJn("M",false),n);aht=n;return aht}function Oln(){Oln=O;g7e=new bA("ELK",0);v7e=new bA("JSON",1);d7e=new bA("DOT",2);p7e=new bA("SVG",3)}function Aln(){Aln=O;LHe=new EI("STACKED",0);OHe=new EI("REVERSE_STACKED",1);AHe=new EI("SEQUENCED",2)}function Lln(){Lln=O;jze=new nO(G4n,0);Tze=new nO("MIDDLE_TO_MIDDLE",1);Mze=new nO("AVOID_OVERLAP",2)}function Nln(){Nln=O;wIe=new Ir;dIe=new Or;bIe=new Pr;lIe=new Ar;hIe=new Cr;fIe=(cJ(hIe),new R)}function $ln(){$ln=O;F5e=new NN(15);K5e=new qN((JYn(),c6e),F5e);_5e=I6e;$5e=v4e;D5e=J4e;R5e=n6e;x5e=Z4e}function Dln(n,e){var t,r,i,a,c;for(r=e,i=0,a=r.length;i=n.b.c.length){return}qln(n,2*e+1);t=2*e+2;t0){e.Cd(t);t.i&&ign(t)}}}function Vln(n,e,t){var r;for(r=t-1;r>=0&&n[r]===e[r];r--);return r<0?0:FP(O3(n[r],A0n),O3(e[r],A0n))?-1:1}function zln(n,e,t){var r,i;this.g=n;this.c=e;this.a=this;this.d=this;i=hun(t);r=$nn(Loe,h1n,227,i,0,1);this.b=r}function Wln(n,e,t,r,i){var a,c;for(c=t;c<=i;c++){for(a=e;a<=r;a++){if(uTn(n,a,c)){return true}}}return false}function Qln(n,e){var t,r;for(r=n.Zb().Cc().Kc();r.Ob();){t=bG(r.Pb(),16);if(t.Hc(e)){return true}}return false}function Jln(n,e,t){var r,i,a,c;cJ(t);c=false;a=n.fd(e);for(i=t.Kc();i.Ob();){r=i.Pb();a.Rb(r);c=true}return c}function Yln(n,e){var t,r;r=bG(Ron(n.a,4),129);t=$nn(utt,Bre,424,e,0,1);r!=null&&QGn(r,0,t,0,r.length);return t}function Zln(n,e){var t;t=new iBn((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,e);n.e!=null||(t.c=n);return t}function nbn(n,e){var t;if(n===e){return true}else if(G$(e,85)){t=bG(e,85);return DOn(PV(n),t.vc())}return false}function ebn(n,e,t){var r,i;for(i=t.Kc();i.Ob();){r=bG(i.Pb(),44);if(n.Be(e,r.md())){return true}}return false}function tbn(n,e,t){if(!n.d[e.p][t.p]){Uyn(n,e,t);n.d[e.p][t.p]=true;n.d[t.p][e.p]=true}return n.a[e.p][t.p]}function rbn(n,e){var t;if(!n||n==e||!jR(e,(WYn(),wDe))){return false}t=bG(lIn(e,(WYn(),wDe)),10);return t!=n}function ibn(n){switch(n.i){case 2:{return true}case 1:{return false}case-1:{++n.c}default:{return n.$l()}}}function abn(n){switch(n.i){case-2:{return true}case-1:{return false}case 1:{--n.c}default:{return n._l()}}}function cbn(n){z0.call(this,"The given string does not match the expected format for individual spacings.",n)}function ubn(n,e){var t;e.Ug("Min Size Preprocessing",1);t=BAn(n);Pyn(n,(vBn(),qYe),t.a);Pyn(n,HYe,t.b);e.Vg()}function sbn(n){var e,t,r;e=0;r=$nn(D3e,XZn,8,n.b,0,1);t=Gkn(n,0);while(t.b!=t.d.c){r[e++]=bG($6(t),8)}return r}function obn(n,e,t){var r,i,a;r=new vS;for(a=Gkn(t,0);a.b!=a.d.c;){i=bG($6(a),8);hq(r,new uN(i))}Jln(n,e,r)}function fbn(n,e){var t;t=Rgn(n,e);if(FP(L3(n,e),0)|XA(L3(n,t),0)){return t}return Rgn(JZn,L3(_V(t,63),1))}function hbn(n,e){var t,r;t=bG(n.d.Bc(e),16);if(!t){return null}r=n.e.hc();r.Gc(t);n.e.d-=t.gc();t.$b();return r}function lbn(n){var e;e=n.a.c.length;if(e>0){return ZV(e-1,n.a.c.length),s7(n.a,e-1)}else{throw dm(new qm)}}function bbn(n,e,t){if(n>e){throw dm(new jM(c2n+n+u2n+e))}if(n<0||e>t){throw dm(new rT(c2n+n+s2n+e+W0n+t))}}function wbn(n,e){if(n.D==null&&n.B!=null){n.D=n.B;n.B=null}Qcn(n,e==null?null:(cJ(e),e));!!n.C&&n.hl(null)}function dbn(n,e){var t;t=tyn((vpn(),kBe))!=null&&e.Sg()!=null?bM(MK(e.Sg()))/bM(MK(tyn(kBe))):1;jJ(n.b,e,t)}function gbn(n,e){var t,r;r=n.c[e];if(r==0){return}n.c[e]=0;n.d-=r;t=e+1;while(tx9n?n-r>x9n:r-n>x9n}function ewn(n,e){var t;for(t=0;ti){zSn(e.q,i);r=t!=e.q.d}}return r}function iwn(n,e){var r,i,a,c,u,s,o,f;o=e.i;f=e.j;i=n.f;a=i.i;c=i.j;u=o-a;s=f-c;r=t.Math.sqrt(u*u+s*s);return r}function awn(n,e){var t,r;r=Umn(n);if(!r){!Int&&(Int=new Lo);t=(rVn(),wxn(e));r=new Jp(t);cen(r.El(),n)}return r}function cwn(n,e){var t,r;t=bG(n.c.Bc(e),16);if(!t){return n.jc()}r=n.hc();r.Gc(t);n.d-=t.gc();t.$b();return n.mc(r)}function uwn(n,e){var t,r;r=bRn(n.d,1)!=0;t=true;while(t){t=false;t=e.c.mg(e.e,r);t=t|LKn(n,e,r,false);r=!r}Wun(n)}function swn(n,e,t,r){var i,a;n.a=e;a=r?0:1;n.f=(i=new qOn(n.c,n.a,t,a),new uBn(t,n.a,i,n.e,n.b,n.c==(ucn(),WUe)))}function own(n){var e;PK(n.a!=n.b);e=n.d.a[n.a];IK(n.b==n.d.c&&e!=null);n.c=n.a;n.a=n.a+1&n.d.a.length-1;return e}function fwn(n){var e;if(n.c!=0){return n.c}for(e=0;e=n.c.b:n.a<=n.c.b)){throw dm(new Xm)}e=n.a;n.a+=n.c.c;++n.b;return Bwn(e)}function lwn(n){var e;e=new A$(n.a);Yon(e,n);Ehn(e,(WYn(),EDe),n);e.o.a=n.g;e.o.b=n.f;e.n.a=n.i;e.n.b=n.j;return e}function bwn(n){return(UQn(),X8e).Hc(n.j)?bM(MK(lIn(n,(WYn(),UDe)))):Whn(zfn(fT(D3e,1),XZn,8,0,[n.i.n,n.n,n.a])).b}function wwn(n){var e;e=hN(_Ue);bG(lIn(n,(WYn(),oDe)),21).Hc((o_n(),E$e))&&xq(e,(bIn(),aTe),(YYn(),ZPe));return e}function dwn(n){var e,t,r,i;i=new uk;for(r=new nd(n);r.a=0?e:-e;while(r>0){if(r%2==0){t*=t;r=r/2|0}else{i*=t;r-=1}}return e<0?1/i:i}function Mwn(n,e){var t,r,i;i=1;t=n;r=e>=0?e:-e;while(r>0){if(r%2==0){t*=t;r=r/2|0}else{i*=t;r-=1}}return e<0?1/i:i}function Twn(n,e){var t,r,i,a;a=(i=n?Umn(n):null,gLn((r=e,i?i.Gl():null,r)));if(a==e){t=Umn(n);!!t&&t.Gl()}return a}function jwn(n,e,t){var r,i;i=n.f;n.f=e;if((n.Db&4)!=0&&(n.Db&1)==0){r=new vz(n,1,0,i,e);!t?t=r:t.nj(r)}return t}function Ewn(n,e,t){var r,i;i=n.b;n.b=e;if((n.Db&4)!=0&&(n.Db&1)==0){r=new vz(n,1,3,i,e);!t?t=r:t.nj(r)}return t}function Swn(n,e,t){var r,i;i=n.a;n.a=e;if((n.Db&4)!=0&&(n.Db&1)==0){r=new vz(n,1,1,i,e);!t?t=r:t.nj(r)}return t}function Pwn(n){var e,t,r,i;if(n!=null){for(t=0;t=r||e-129&&n<128){return JG(),e=n+128,t=rle[e],!t&&(t=rle[e]=new $w(n)),t}return new $w(n)}function Hwn(n){var e,t;if(n>-129&&n<128){return uX(),e=n+128,t=dle[e],!t&&(t=dle[e]=new xw(n)),t}return new xw(n)}function Uwn(n,e){var t;if(n.a.c.length>0){t=bG(Yq(n.a,n.a.c.length-1),579);if(Rln(t,e)){return}}ED(n.a,new o9(e))}function Gwn(n){WB();var e,t;e=n.d.c-n.e.c;t=bG(n.g,154);Lin(t.b,new Lg(e));Lin(t.c,new Ng(e));Y8(t.i,new $g(e))}function qwn(n){var e;e=new nT;e.a+="VerticalSegment ";eL(e,n.e);e.a+=" ";tL(e,UD(new GM,new nd(n.k)));return e.a}function Xwn(n,e){var t,r,i;t=0;for(i=_gn(n,e).Kc();i.Ob();){r=bG(i.Pb(),12);t+=lIn(r,(WYn(),NDe))!=null?1:0}return t}function Vwn(n,e,t){var r,i,a;r=0;for(a=Gkn(n,0);a.b!=a.d.c;){i=bM(MK($6(a)));if(i>t){break}else i>=e&&++r}return r}function zwn(n,e){nQ(n);try{return n._b(e)}catch(t){t=Ofn(t);if(G$(t,212)||G$(t,169)){return false}else throw dm(t)}}function Wwn(n,e){nQ(n);try{return n.Hc(e)}catch(t){t=Ofn(t);if(G$(t,212)||G$(t,169)){return false}else throw dm(t)}}function Qwn(n,e){nQ(n);try{return n.Mc(e)}catch(t){t=Ofn(t);if(G$(t,212)||G$(t,169)){return false}else throw dm(t)}}function Jwn(n,e){nQ(n);try{return n.xc(e)}catch(t){t=Ofn(t);if(G$(t,212)||G$(t,169)){return null}else throw dm(t)}}function Ywn(n,e){nQ(n);try{return n.Bc(e)}catch(t){t=Ofn(t);if(G$(t,212)||G$(t,169)){return null}else throw dm(t)}}function Zwn(n,e){switch(e.g){case 2:case 1:return _gn(n,e);case 3:case 4:return Avn(_gn(n,e))}return dZ(),dZ(),lbe}function ndn(n){var e;if((n.Db&64)!=0)return jxn(n);e=new gx(jxn(n));e.a+=" (name: ";ZA(e,n.zb);e.a+=")";return e.a}function edn(n){var e;e=bG(hrn(n.c.c,""),233);if(!e){e=new $2(zT(VT(new ms,""),"Other"));xkn(n.c.c,"",e)}return e}function tdn(n,e,t){var r,i;i=n.sb;n.sb=e;if((n.Db&4)!=0&&(n.Db&1)==0){r=new vz(n,1,4,i,e);!t?t=r:t.nj(r)}return t}function rdn(n,e,t){var r,i;i=n.r;n.r=e;if((n.Db&4)!=0&&(n.Db&1)==0){r=new vz(n,1,8,i,n.r);!t?t=r:t.nj(r)}return t}function idn(n,e,t){var r,i;r=new Utn(n.e,4,13,(i=e.c,i?i:(rZn(),Jrt)),null,Vyn(n,e),false);!t?t=r:t.nj(r);return t}function adn(n,e,t){var r,i;r=new Utn(n.e,3,13,null,(i=e.c,i?i:(rZn(),Jrt)),Vyn(n,e),false);!t?t=r:t.nj(r);return t}function cdn(n,e){var t,r;t=bG(e,691);r=t.el();!r&&t.fl(r=G$(e,90)?new NA(n,bG(e,29)):new y4(n,bG(e,156)));return r}function udn(n,e,t){var r;n._i(n.i+1);r=n.Zi(e,t);e!=n.i&&QGn(n.g,e,n.g,e+1,n.i-e);bQ(n.g,e,r);++n.i;n.Mi(e,t);n.Ni()}function sdn(n,e){var t;if(e.a){t=e.a.a.length;!n.a?n.a=new vx(n.d):tL(n.a,n.b);R4(n.a,e.a,e.d.length,t)}return n}function odn(n,e){var t;n.c=e;n.a=tpn(e);n.a<54&&(n.f=(t=e.d>1?N4(e.a[0],e.a[1]):N4(e.a[0],0),n6(e.e>0?t:Ptn(t))))}function fdn(n,e){var t;t=new bn;if(!n.a.Bd(t)){WQ(n);return zD(),zD(),kwe}return zD(),new Jy(cJ(jtn(n,t.a,e)))}function hdn(n,e){var t;if(n.c.length==0){return}t=bG(Okn(n,$nn(Yje,e6n,10,n.c.length,0,1)),199);YL(t,new Dt);n$n(t,e)}function ldn(n,e){var t;if(n.c.length==0){return}t=bG(Okn(n,$nn(Yje,e6n,10,n.c.length,0,1)),199);YL(t,new xt);n$n(t,e)}function bdn(n,e){return HA(n)?T_(n,e):GA(n)?M_(n,e):UA(n)?(cJ(n),BA(n)===BA(e)):NV(n)?n.Fb(e):BX(n)?AL(n,e):I3(n,e)}function wdn(n,e,t){if(e<0){YLn(n,t)}else{if(!t.rk()){throw dm(new jM(Uee+t.xe()+Gee))}bG(t,69).wk().Ek(n,n.hi(),e)}}function ddn(n,e,t){if(n<0||e>t){throw dm(new kM(c2n+n+s2n+e+", size: "+t))}if(n>e){throw dm(new jM(c2n+n+u2n+e))}}function gdn(n){var e;if((n.Db&64)!=0)return jxn(n);e=new gx(jxn(n));e.a+=" (source: ";ZA(e,n.d);e.a+=")";return e.a}function vdn(n){if(n>=65&&n<=70){return n-65+10}if(n>=97&&n<=102){return n-97+10}if(n>=48&&n<=57){return n-48}return 0}function pdn(n){tZn();var e,t,r,i;for(t=Kkn(),r=0,i=t.length;r=0?Hpn(n):dW(Hpn(Ptn(n))))}function Adn(n,e,t,r,i,a){this.e=new im;this.f=(fcn(),MHe);ED(this.e,n);this.d=e;this.a=t;this.b=r;this.f=i;this.c=a}function Ldn(n,e,r){n.n=tX(Xht,[XZn,j0n],[376,28],14,[r,c0(t.Math.ceil(e/32))],2);n.o=e;n.p=r;n.j=e-1>>1;n.k=r-1>>1}function Ndn(n){n-=n>>1&1431655765;n=(n>>2&858993459)+(n&858993459);n=(n>>4)+n&252645135;n+=n>>8;n+=n>>16;return n&63}function $dn(n,e){var t,r;for(r=new _D(n);r.e!=r.i.gc();){t=bG(iyn(r),142);if(BA(e)===BA(t)){return true}}return false}function Ddn(n,e,t){var r,i,a;a=(i=Ixn(n.b,e),i);if(a){r=bG(eVn(Rtn(n,a),""),29);if(r){return dxn(n,r,e,t)}}return null}function xdn(n,e,t){var r,i,a;a=(i=Ixn(n.b,e),i);if(a){r=bG(eVn(Rtn(n,a),""),29);if(r){return gxn(n,r,e,t)}}return null}function Rdn(n,e){var t;t=kan(n.i,e);if(t==null){throw dm(new AM("Node did not exist in input."))}eon(e,t);return null}function Kdn(n,e){var t;t=OKn(n,e);if(G$(t,331)){return bG(t,35)}throw dm(new jM(Uee+e+"' is not a valid attribute"))}function Fdn(n,e,t){var r;r=n.gc();if(e>r)throw dm(new m_(e,r));if(n.Si()&&n.Hc(t)){throw dm(new jM(Gte))}n.Gi(e,t)}function _dn(n,e){e.Ug("Sort end labels",1);ES(tY(wrn(new gX(null,new d3(n.b,16)),new mt),new kt),new yt);e.Vg()}function Bdn(){Bdn=O;h5e=new LO(J2n,0);f5e=new LO(V2n,1);o5e=new LO(X2n,2);s5e=new LO(i3n,3);l5e=new LO("UP",4)}function Hdn(){Hdn=O;D1e=new gO("P1_STRUCTURE",0);x1e=new gO("P2_PROCESSING_ORDER",1);R1e=new gO("P3_EXECUTION",2)}function Udn(){Udn=O;hQe=Rmn(Rmn(yP(Rmn(Rmn(yP(xq(new mJ,(Njn(),sVe),(DHn(),oze)),oVe),aze),uze),fVe),eze),sze)}function Gdn(n){switch(bG(lIn(n,(WYn(),bDe)),311).g){case 1:Ehn(n,bDe,(irn(),x$e));break;case 2:Ehn(n,bDe,(irn(),K$e))}}function qdn(n){switch(n){case 0:return new Gk;case 1:return new Hk;case 2:return new Uk;default:throw dm(new _m)}}function Xdn(n){switch(n.g){case 2:return f5e;case 1:return o5e;case 4:return s5e;case 3:return l5e;default:return h5e}}function Vdn(n,e){switch(n.b.g){case 0:case 1:return e;case 2:case 3:return new yY(e.d,0,e.a,e.b);default:return null}}function zdn(n){switch(n.g){case 1:return n9e;case 2:return D8e;case 3:return $8e;case 4:return Y8e;default:return Z8e}}function Wdn(n){switch(n.g){case 1:return Y8e;case 2:return n9e;case 3:return D8e;case 4:return $8e;default:return Z8e}}function Qdn(n){switch(n.g){case 1:return $8e;case 2:return Y8e;case 3:return n9e;case 4:return D8e;default:return Z8e}}function Jdn(n,e,t,r){switch(e){case 1:return!n.n&&(n.n=new gz(unt,n,1,7)),n.n;case 2:return n.k}return hjn(n,e,t,r)}function Ydn(n,e,t){var r,i;if(n.Pj()){i=n.Qj();r=VNn(n,e,t);n.Jj(n.Ij(7,Bwn(t),r,e,i));return r}else{return VNn(n,e,t)}}function Zdn(n,e){var t,r,i;if(n.d==null){++n.e;--n.f}else{i=e.ld();t=e.Bi();r=(t&pZn)%n.d.length;A7(n,r,Cxn(n,r,t,i))}}function ngn(n,e){var t;t=(n.Bb&b1n)!=0;e?n.Bb|=b1n:n.Bb&=-1025;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new I9(n,1,10,t,e))}function egn(n,e){var t;t=(n.Bb&T0n)!=0;e?n.Bb|=T0n:n.Bb&=-4097;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new I9(n,1,12,t,e))}function tgn(n,e){var t;t=(n.Bb&sie)!=0;e?n.Bb|=sie:n.Bb&=-8193;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new I9(n,1,15,t,e))}function rgn(n,e){var t;t=(n.Bb&oie)!=0;e?n.Bb|=oie:n.Bb&=-2049;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new I9(n,1,11,t,e))}function ign(n){var e;if(n.g){e=n.c.kg()?n.f:n.a;NFn(e.a,n.o,true);NFn(e.a,n.o,false);Ehn(n.o,(IYn(),m_e),(FPn(),p8e))}}function agn(n){var e;if(!n.a){throw dm(new EM("Cannot offset an unassigned cut."))}e=n.c-n.b;n.b+=e;sZ(n,e);uZ(n,e)}function cgn(n,e){var t;t=fQ(n.k,e);if(t==null){throw dm(new AM("Port did not exist in input."))}eon(e,t);return null}function ugn(n){var e,t;for(t=pxn(Vin(n)).Kc();t.Ob();){e=TK(t.Pb());if(WUn(n,e)){return d8((SP(),jrt),e)}}return null}function sgn(n){var e,t;for(t=n.p.a.ec().Kc();t.Ob();){e=bG(t.Pb(),218);if(e.f&&n.b[e.c]<-1e-10){return e}}return null}function ogn(n){var e,t;t=IQ(new nT,91);e=true;while(n.Ob()){e||(t.a+=MZn,t);e=false;eL(t,n.Pb())}return(t.a+="]",t).a}function fgn(n){var e,t,r;e=new im;for(r=new nd(n.b);r.ae){return 1}if(n==e){return n==0?bgn(1/n,1/e):0}return isNaN(n)?isNaN(e)?0:1:-1}function wgn(n){var e;e=n.a[n.c-1&n.a.length-1];if(e==null){return null}n.c=n.c-1&n.a.length-1;bQ(n.a,n.c,null);return e}function dgn(n){var e,t,r;r=0;t=n.length;for(e=0;e=1?f5e:s5e}return t}function Tgn(n){switch(bG(lIn(n,(IYn(),gFe)),223).g){case 1:return new sa;case 3:return new ba;default:return new ua}}function jgn(n){if(n.c){jgn(n.c)}else if(n.d){throw dm(new EM("Stream already terminated, can't be modified or used"))}}function Egn(n,e,t){var r;r=n.a.get(e);n.a.set(e,t===undefined?null:t);if(r===undefined){++n.c;++n.b.g}else{++n.d}return r}function Sgn(n,e,t){var r,i;for(i=n.a.ec().Kc();i.Ob();){r=bG(i.Pb(),10);if(Sfn(t,bG(Yq(e,r.p),16))){return r}}return null}function Pgn(n,e,t){var r;r=0;!!e&&(gN(n.a)?r+=e.f.a/2:r+=e.f.b/2);!!t&&(gN(n.a)?r+=t.f.a/2:r+=t.f.b/2);return r}function Cgn(n,e,t){var r;r=t;!r&&(r=BG(new gy,0));r.Ug(R4n,2);Yyn(n.b,e,r.eh(1));JVn(n,e,r.eh(1));dJn(e,r.eh(1));r.Vg()}function Ign(n,e,t){var r,i;r=(yj(),i=new io,i);Aan(r,e);Man(r,t);!!n&&cen((!n.a&&(n.a=new PD(K7e,n,5)),n.a),r);return r}function Ogn(n){var e;if((n.Db&64)!=0)return jxn(n);e=new gx(jxn(n));e.a+=" (identifier: ";ZA(e,n.k);e.a+=")";return e.a}function Agn(n,e){var t;t=(n.Bb&Wee)!=0;e?n.Bb|=Wee:n.Bb&=-32769;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new I9(n,1,18,t,e))}function Lgn(n,e){var t;t=(n.Bb&Wee)!=0;e?n.Bb|=Wee:n.Bb&=-32769;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new I9(n,1,18,t,e))}function Ngn(n,e){var t;t=(n.Bb&VZn)!=0;e?n.Bb|=VZn:n.Bb&=-16385;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new I9(n,1,16,t,e))}function $gn(n,e){var t;t=(n.Bb&S0n)!=0;e?n.Bb|=S0n:n.Bb&=-65537;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new I9(n,1,20,t,e))}function Dgn(n){var e;e=$nn(Uht,L1n,28,2,15,1);n-=S0n;e[0]=(n>>10)+P0n&$1n;e[1]=(n&1023)+56320&$1n;return Tmn(e,0,e.length)}function xgn(n){var e;e=rOn(n);if(e>34028234663852886e22){return y0n}else if(e<-34028234663852886e22){return M0n}return e}function Rgn(n,e){var t;if(qL(n)&&qL(e)){t=n+e;if(g0n"+Z3(e.c):"e_"+Vun(e),!!n.b&&!!n.c?Z3(n.b)+"->"+Z3(n.c):"e_"+Vun(n))}function Ugn(n,e){return T_(!!e.b&&!!e.c?Z3(e.b)+"->"+Z3(e.c):"e_"+Vun(e),!!n.b&&!!n.c?Z3(n.b)+"->"+Z3(n.c):"e_"+Vun(n))}function Ggn(n,e){r$();return lcn(M1n),t.Math.abs(n-e)<=M1n||n==e||isNaN(n)&&isNaN(e)?0:ne?1:UL(isNaN(n),isNaN(e))}function qgn(){qgn=O;T5e=new $O(J2n,0);y5e=new $O("POLYLINE",1);k5e=new $O("ORTHOGONAL",2);M5e=new $O("SPLINES",3)}function Xgn(){Xgn=O;WYe=new hO("ASPECT_RATIO_DRIVEN",0);QYe=new hO("MAX_SCALE_DRIVEN",1);zYe=new hO("AREA_DRIVEN",2)}function Vgn(n,e,t){var r;try{Zhn(n,e,t)}catch(i){i=Ofn(i);if(G$(i,606)){r=i;throw dm(new B9(r))}else throw dm(i)}return e}function zgn(n){var e,t,r;for(t=0,r=n.length;te&&r.Ne(n[a-1],n[a])>0;--a){c=n[a];bQ(n,a,n[a-1]);bQ(n,a-1,c)}}}function ivn(n,e){var t,r,i,a,c;t=e.f;xkn(n.c.d,t,e);if(e.g!=null){for(i=e.g,a=0,c=i.length;ae){G4(t);break}}vW(t,e)}function cvn(n,e){var r,i,a;i=Y4(e);a=bM(MK(Dpn(i,(IYn(),R_e))));r=t.Math.max(0,a/2-.5);CEn(e,r,1);ED(n,new BC(e,r))}function uvn(n,e,t){var r;t.Ug("Straight Line Edge Routing",1);t.dh(e,h7n);r=bG(YDn(e,(AK(),FQe)),27);_Xn(n,r);t.dh(e,b7n)}function svn(n,e){n.n.c.length==0&&ED(n.n,new f0(n.s,n.t,n.i));ED(n.b,e);YMn(bG(Yq(n.n,n.n.c.length-1),209),e);aqn(n,e)}function ovn(n){var e;this.a=(e=bG(n.e&&n.e(),9),new aB(e,bG(PF(e,e.length),9),0));this.b=$nn(kce,jZn,1,this.a.a.length,5,1)}function fvn(n){var e;if(Array.isArray(n)&&n.Tm===I){return $j(Cbn(n))+"@"+(e=Vun(n)>>>0,e.toString(16))}return n.toString()}function hvn(n,e){if(n.h==l0n&&n.m==0&&n.l==0){e&&(She=M$(0,0,0));return RL((crn(),Ihe))}e&&(She=M$(n.l,n.m,n.h));return M$(0,0,0)}function lvn(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return false}}function bvn(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return false}}function wvn(n,e,t,r){switch(e){case 3:return n.f;case 4:return n.g;case 5:return n.i;case 6:return n.j}return Jdn(n,e,t,r)}function dvn(n,e){if(e==n.d){return n.e}else if(e==n.e){return n.d}else{throw dm(new jM("Node "+e+" not part of edge "+n))}}function gvn(n,e){var t;t=OKn(n.Dh(),e);if(G$(t,102)){return bG(t,19)}throw dm(new jM(Uee+e+"' is not a valid reference"))}function vvn(n,e,t,r){if(e<0){vRn(n,t,r)}else{if(!t.rk()){throw dm(new jM(Uee+t.xe()+Gee))}bG(t,69).wk().Ck(n,n.hi(),e,r)}}function pvn(n){var e;if(n.b){pvn(n.b);if(n.b.d!=n.c){throw dm(new Gm)}}else if(n.d.dc()){e=bG(n.f.c.xc(n.e),16);!!e&&(n.d=e)}}function mvn(n){ZK();var e,t,r,i;e=n.o.b;for(r=bG(bG(r7(n.r,(UQn(),Y8e)),21),87).Kc();r.Ob();){t=bG(r.Pb(),117);i=t.e;i.b+=e}}function kvn(n){var e,t,r;this.a=new JL;for(r=new nd(n);r.a=i){return e.c+t}}return e.c+e.b.gc()}function Mvn(n,e){OK();var t,r,i,a;r=ttn(n);i=e;Ken(r,0,r.length,i);for(t=0;t0){r+=i;++t}}t>1&&(r+=n.d*(t-1));return r}function Pvn(n){var e,t,r,i,a;a=yCn(n);t=ME(n.c);r=!t;if(r){i=new $b;ain(a,"knownLayouters",i);e=new Ip(i);Y8(n.c,e)}return a}function Cvn(n){var e,t,r;r=new YM;r.a+="[";for(e=0,t=n.gc();e0&&(w3(e-1,n.length),n.charCodeAt(e-1)==58)&&!Tvn(n,urt,srt)}function Nvn(n,e){var t;if(BA(n)===BA(e)){return true}if(G$(e,92)){t=bG(e,92);return n.e==t.e&&n.d==t.d&&k8(n,t.a)}return false}function $vn(n){UQn();switch(n.g){case 4:return D8e;case 1:return $8e;case 3:return Y8e;case 2:return n9e;default:return Z8e}}function Dvn(n){var e,t;if(n.b){return n.b}t=Sde?null:n.d;while(t){e=Sde?null:t.b;if(e){return e}t=Sde?null:t.d}return MS(),pde}function xvn(n){var e,t,r;r=bM(MK(n.a.of((JYn(),U6e))));for(t=new nd(n.a.Sf());t.a>5;e=n&31;r=$nn(Ght,z1n,28,t+1,15,1);r[t]=1<3){i*=10;--a}n=(n+(i>>1))/i|0}r.i=n;return true}function upn(n,e){var t,r,i;t=(n.i==null&&uqn(n),n.i);r=e.Lj();if(r!=-1){for(i=t.length;r=0;--r){e=t[r];for(i=0;i>1;this.k=e-1>>1}function dpn(n){Aen();if(bG(n.of((JYn(),t6e)),181).Hc((hUn(),T9e))){bG(n.of(j6e),181).Fc((uNn(),A8e));bG(n.of(t6e),181).Mc(T9e)}}function gpn(n){var e,t;e=n.d==(jAn(),sNe);t=kPn(n);e&&!t||!e&&t?Ehn(n.a,(IYn(),DKe),(aMn(),B3e)):Ehn(n.a,(IYn(),DKe),(aMn(),_3e))}function vpn(){vpn=O;iP();kBe=(IYn(),V_e);yBe=a7(zfn(fT(l3e,1),v9n,149,0,[x_e,R_e,F_e,__e,U_e,G_e,q_e,X_e,W_e,J_e,K_e,B_e,z_e]))}function ppn(n,e){var t;t=bG(v8(n,gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[(Sbn(),Lde)]))),15);return t.Qc(Kq(t.gc()))}function mpn(n,e){var t,r;r=new ld(n.a.ad(e,true));if(r.a.gc()<=1){throw dm(new Hm)}t=r.a.ec().Kc();t.Pb();return bG(t.Pb(),40)}function kpn(n,e,t){var r,i;r=bM(n.p[e.i.p])+bM(n.d[e.i.p])+e.n.b+e.a.b;i=bM(n.p[t.i.p])+bM(n.d[t.i.p])+t.n.b+t.a.b;return i-r}function ypn(n,e){var t;if(n.i>0){if(e.lengthn.i&&bQ(e,n.i,null);return e}function Mpn(n){var e;if((n.Db&64)!=0)return ndn(n);e=new gx(ndn(n));e.a+=" (instanceClassName: ";ZA(e,n.D);e.a+=")";return e.a}function Tpn(n){var e,t,r,i;i=0;for(t=0,r=n.length;t0){n._j();r=e==null?0:Vun(e);i=(r&pZn)%n.d.length;t=Cxn(n,i,r,e);return t!=-1}else{return false}}function Ppn(n,e){var r,i;n.a=Rgn(n.a,1);n.c=t.Math.min(n.c,e);n.b=t.Math.max(n.b,e);n.d+=e;r=e-n.f;i=n.e+r;n.f=i-n.e-r;n.e=i}function Cpn(n,e){switch(e){case 3:jan(n,0);return;case 4:Ean(n,0);return;case 5:San(n,0);return;case 6:Pan(n,0);return}xwn(n,e)}function Ipn(n,e){switch(e.g){case 1:return rG(n.j,(Rsn(),hEe));case 2:return rG(n.j,(Rsn(),bEe));default:return dZ(),dZ(),lbe}}function Opn(n){iQ();var e;e=n.Pc();switch(e.length){case 0:return mse;case 1:return new zq(nQ(e[0]));default:return new c1(zgn(e))}}function Apn(n,e){n.Xj();try{n.d.bd(n.e++,e);n.f=n.d.j;n.g=-1}catch(t){t=Ofn(t);if(G$(t,77)){throw dm(new Gm)}else throw dm(t)}}function Lpn(){Lpn=O;Yat=new $o;qat=new Do;Xat=new xo;Vat=new Ro;zat=new Ko;Wat=new Fo;Qat=new _o;Jat=new Bo;Zat=new Ho}function Npn(n,e){mL();var t,r;t=pF((Qy(),Qy(),che));r=null;e==t&&(r=bG(z1(the,n),624));if(!r){r=new tQ(n);e==t&&o2(the,n,r)}return r}function $pn(n){rMn();var e;(!n.q?(dZ(),dZ(),bbe):n.q)._b((IYn(),n_e))?e=bG(lIn(n,n_e),203):e=bG(lIn(VQ(n),e_e),203);return e}function Dpn(n,e){var t,r;r=null;if(jR(n,(IYn(),H_e))){t=bG(lIn(n,H_e),96);t.pf(e)&&(r=t.of(e))}r==null&&(r=lIn(VQ(n),e));return r}function xpn(n,e){var t,r,i;if(G$(e,44)){t=bG(e,44);r=t.ld();i=Jwn(n.Rc(),r);return BQ(i,t.md())&&(i!=null||n.Rc()._b(r))}return false}function Rpn(n,e){var t,r,i;if(n.f>0){n._j();r=e==null?0:Vun(e);i=(r&pZn)%n.d.length;t=i$n(n,i,r,e);if(t){return t.md()}}return null}function Kpn(n,e,t){var r,i,a;if(n.Pj()){r=n.i;a=n.Qj();udn(n,r,e);i=n.Ij(3,null,e,r,a);!t?t=i:t.nj(i)}else{udn(n,n.i,e)}return t}function Fpn(n,e,t){var r,i;r=new Utn(n.e,4,10,(i=e.c,G$(i,90)?bG(i,29):(rZn(),nit)),null,Vyn(n,e),false);!t?t=r:t.nj(r);return t}function _pn(n,e,t){var r,i;r=new Utn(n.e,3,10,null,(i=e.c,G$(i,90)?bG(i,29):(rZn(),nit)),Vyn(n,e),false);!t?t=r:t.nj(r);return t}function Bpn(n){ZK();var e;e=new uN(bG(n.e.of((JYn(),n6e)),8));if(n.B.Hc((hUn(),p9e))){e.a<=0&&(e.a=20);e.b<=0&&(e.b=20)}return e}function Hpn(n){fHn();var e,t;t=MV(n);e=MV(_V(n,32));if(e!=0){return new B3(t,e)}if(t>10||t<0){return new i8(1,t)}return $le[t]}function Upn(n,e){var t;if(qL(n)&&qL(e)){t=n%e;if(g0n=0){a=a.a[1]}else{i=a;a=a.a[0]}}return i}function amn(n,e,t){var r,i,a;i=null;a=n.b;while(a){r=n.a.Ne(e,a.d);if(t&&r==0){return a}if(r<=0){a=a.a[0]}else{i=a;a=a.a[1]}}return i}function cmn(n,e,t,r){var i,a,c;i=false;if(aWn(n.f,t,r)){dkn(n.f,n.a[e][t],n.a[e][r]);a=n.a[e];c=a[r];a[r]=a[t];a[t]=c;i=true}return i}function umn(n,e,t){var r,i,a,c;i=bG(fQ(n.b,t),183);r=0;for(c=new nd(e.j);c.a>5;e&=31;i=n.d+t+(e==0?0:1);r=$nn(Ght,z1n,28,i,15,1);ECn(r,n.a,t,e);a=new Zz(n.e,i,r);U4(a);return a}function fmn(n,e){var t,r,i;for(r=new GV(sx(Jgn(n).a.Kc(),new d));dDn(r);){t=bG(K9(r),18);i=t.d.i;if(i.c==e){return false}}return true}function hmn(n,e,r){var i,a,c,u,s;u=n.k;s=e.k;i=r[u.g][s.g];a=MK(Dpn(n,i));c=MK(Dpn(e,i));return t.Math.max((cJ(a),a),(cJ(c),c))}function lmn(){if(Error.stackTraceLimit>0){t.Error.stackTraceLimit=Error.stackTraceLimit=64;return true}return"stack"in new Error}function bmn(n,e){return r$(),r$(),lcn(M1n),(t.Math.abs(n-e)<=M1n||n==e||isNaN(n)&&isNaN(e)?0:ne?1:UL(isNaN(n),isNaN(e)))>0}function wmn(n,e){return r$(),r$(),lcn(M1n),(t.Math.abs(n-e)<=M1n||n==e||isNaN(n)&&isNaN(e)?0:ne?1:UL(isNaN(n),isNaN(e)))<0}function dmn(n,e){return r$(),r$(),lcn(M1n),(t.Math.abs(n-e)<=M1n||n==e||isNaN(n)&&isNaN(e)?0:ne?1:UL(isNaN(n),isNaN(e)))<=0}function gmn(n,e){var t=0;while(!e[t]||e[t]==""){t++}var r=e[t++];for(;t0&&this.b>0&&(this.g=TX(this.c,this.b,this.a))}function Cmn(n,e){var t=n.a;var r;e=String(e);t.hasOwnProperty(e)&&(r=t[e]);var i=(Nhn(),jhe)[typeof r];var a=i?i(r):Zbn(typeof r);return a}function Imn(n){var e,t,r;r=null;e=Pte in n.a;t=!e;if(t){throw dm(new AM("Every element must have an id."))}r=gNn(j0(n,Pte));return r}function Omn(n){var e,t;t=nAn(n);e=null;while(n.c==2){OYn(n);if(!e){e=(eZn(),eZn(),++Tht,new e$(2));jVn(e,t);t=e}t.Jm(nAn(n))}return t}function Amn(n,e){var t,r,i;n._j();r=e==null?0:Vun(e);i=(r&pZn)%n.d.length;t=i$n(n,i,r,e);if(t){bcn(n,t);return t.md()}else{return null}}function Lmn(n,e){if(n.e>e.e){return 1}if(n.ee.d){return n.e}if(n.d=48&&n<48+t.Math.min(10,10)){return n-48}if(n>=97&&n<97){return n-97+10}if(n>=65&&n<65){return n-65+10}return-1}function $mn(n,e){if(e.c==n){return e.d}else if(e.d==n){return e.c}throw dm(new jM("Input edge is not connected to the input port."))}function Dmn(n){if(Xmn(Kne,n)){return Qx(),Hhe}else if(Xmn(Fne,n)){return Qx(),Bhe}else{throw dm(new jM("Expecting true or false"))}}function xmn(n){switch(typeof n){case gZn:return Mln(n);case dZn:return DL(n);case wZn:return JK(n);default:return n==null?0:Bx(n)}}function Rmn(n,e){if(n.a<0){throw dm(new EM("Did not call before(...) or after(...) before calling add(...)."))}dR(n,n.a,e);return n}function Kmn(n){n2();if(G$(n,162)){return bG(fQ(Zet,zbe),295).Rg(n)}if(Lz(Zet,Cbn(n))){return bG(fQ(Zet,Cbn(n)),295).Rg(n)}return null}function Fmn(n){var e,t;if((n.Db&32)==0){t=(e=bG(Ron(n,16),29),sQ(!e?n.ii():e)-sQ(n.ii()));t!=0&&_mn(n,32,$nn(kce,jZn,1,t,5,1))}return n}function _mn(n,e,t){var r;if((n.Db&e)!=0){if(t==null){V$n(n,e)}else{r=ITn(n,e);r==-1?n.Eb=t:bQ(Uan(n.Eb),r,t)}}else t!=null&&vFn(n,e,t)}function Bmn(n,e,t,r){var i,a;if(e.c.length==0){return}i=yRn(t,r);a=nNn(e);ES(Ein(new gX(null,new d3(a,1)),new pc),new MY(n,t,i,r))}function Hmn(n,e){var t,r,i,a;r=n.a.length-1;t=e-n.b&r;a=n.c-e&r;i=n.c-n.b&r;IK(t=a){Lbn(n,e);return-1}else{Abn(n,e);return 1}}function Umn(n){var e,t,r;r=n.Jh();if(!r){e=0;for(t=n.Ph();t;t=t.Ph()){if(++e>I0n){return t.Qh()}r=t.Jh();if(!!r||t==n){break}}}return r}function Gmn(n,e){var t;if(BA(e)===BA(n)){return true}if(!G$(e,21)){return false}t=bG(e,21);if(t.gc()!=n.gc()){return false}return n.Ic(t)}function qmn(n,e){if(n.ee.e){return 1}else if(n.fe.f){return 1}return Vun(n)-Vun(e)}function Xmn(n,e){cJ(n);if(e==null){return false}if(T_(n,e)){return true}return n.length==e.length&&T_(n.toLowerCase(),e.toLowerCase())}function Vmn(n){var e,t;if(kwn(n,-129)>0&&kwn(n,128)<0){return cX(),e=MV(n)+128,t=cle[e],!t&&(t=cle[e]=new Dw(n)),t}return new Dw(n)}function zmn(){zmn=O;hje=new OC(G4n,0);oje=new OC("INSIDE_PORT_SIDE_GROUPS",1);sje=new OC("GROUP_MODEL_ORDER",2);fje=new OC(q4n,3)}function Wmn(n){var e;n.b||mj(n,(e=e_(n.e,n.a),!e||!T_(Fne,Rpn((!e.b&&(e.b=new JR((rZn(),cit),Nat,e)),e.b),"qualified"))));return n.c}function Qmn(n,e){var t,r;t=(w3(e,n.length),n.charCodeAt(e));r=e+1;while(r2e3){Xfe=n;Vfe=t.setTimeout(jE,10)}}if(qfe++==0){Lrn((Wy(),zfe));return true}return false}function mkn(n,e,t){var r;(jde?(Dvn(n),true):Ede?(MS(),true):Cde?(MS(),true):Pde&&(MS(),false))&&(r=new sB(e),r.b=t,QIn(n,r),undefined)}function kkn(n,e){var t;t=!n.A.Hc((emn(),b9e))||n.q==(FPn(),m8e);n.u.Hc((uNn(),C8e))?t?eJn(n,e):PQn(n,e):n.u.Hc(O8e)&&(t?rQn(n,e):PJn(n,e))}function ykn(n){var e;if(BA(YDn(n,(JYn(),x4e)))===BA((Dwn(),G5e))){if(!H0(n)){Pyn(n,x4e,q5e)}else{e=bG(YDn(H0(n),x4e),346);Pyn(n,x4e,e)}}}function Mkn(n){var e,t;if(jR(n.d.i,(IYn(),h_e))){e=bG(lIn(n.c.i,h_e),17);t=bG(lIn(n.d.i,h_e),17);return k$(e.a,t.a)>0}else{return false}}function Tkn(n,e,r){return new yY(t.Math.min(n.a,e.a)-r/2,t.Math.min(n.b,e.b)-r/2,t.Math.abs(n.a-e.a)+r,t.Math.abs(n.b-e.b)+r)}function jkn(n){var e;this.d=new im;this.j=new wj;this.g=new wj;e=n.g.b;this.f=bG(lIn(VQ(e),(IYn(),oFe)),88);this.e=bM(MK(uyn(e,U_e)))}function Ekn(n){this.d=new im;this.e=new b8;this.c=$nn(Ght,z1n,28,(UQn(),zfn(fT(e9e,1),X4n,64,0,[Z8e,D8e,$8e,Y8e,n9e])).length,15,1);this.b=n}function Skn(n,e,t){var r;r=t[n.g][e];switch(n.g){case 1:case 3:return new PO(0,r);case 2:case 4:return new PO(r,0);default:return null}}function Pkn(n,e,t){var r,i;i=bG(x1(e.f),205);try{i.rf(n,t);nJ(e.f,i)}catch(a){a=Ofn(a);if(G$(a,103)){r=a;throw dm(r)}else throw dm(a)}}function Ckn(n,e,t){var r,i,a,c,u,s;r=null;u=_zn(hcn(),e);a=null;if(u){i=null;s=jzn(u,t);c=null;s!=null&&(c=n.qf(u,s));i=c;a=i}r=a;return r}function Ikn(n,e,t,r){var i;i=n.length;if(e>=i)return i;for(e=e>0?e:0;er&&bQ(e,r,null);return e}function Akn(n,e){var t,r;r=n.a.length;e.lengthr&&bQ(e,r,null);return e}function Lkn(n,e){var t,r;++n.j;if(e!=null){t=(r=n.a.Cb,G$(r,99)?bG(r,99).th():null);if(u$n(e,t)){_mn(n.a,4,t);return}}_mn(n.a,4,bG(e,129))}function Nkn(n){var e;if(n==null)return null;e=Oxn(SXn(n,true));if(e==null){throw dm(new LM("Invalid hexBinary value: '"+n+"'"))}return e}function $kn(n,e,t){var r;if(e.a.length>0){ED(n.b,new dG(e.a,t));r=e.a.length;0r&&(e.a+=Z$($nn(Uht,L1n,28,-r,15,1)))}}function Dkn(n,e,t){var r,i,a;if(t[e.d]){return}t[e.d]=true;for(i=new nd(Obn(e));i.a=n.b>>1){r=n.c;for(t=n.b;t>e;--t){r=r.b}}else{r=n.a.a;for(t=0;t=0?n.Wh(i):FNn(n,r)):t<0?FNn(n,r):bG(r,69).wk().Bk(n,n.hi(),t)}function eyn(n){var e,t,r;r=(!n.o&&(n.o=new ven((cYn(),int),Rnt,n,0)),n.o);for(t=r.c.Kc();t.e!=t.i.gc();){e=bG(t.Yj(),44);e.md()}return Cnn(r)}function tyn(n){var e;if(G$(n.a,4)){e=Kmn(n.a);if(e==null){throw dm(new EM(_ne+n.b+"'. "+xne+(jK(ett),ett.k)+Rne))}return e}else{return n.a}}function ryn(n,e){var t,r;if(n.j.length!=e.j.length)return false;for(t=0,r=n.j.length;t=64&&e<128&&(i=A3(i,KV(1,e-64)))}return i}function uyn(n,e){var t,r;r=null;if(jR(n,(JYn(),B6e))){t=bG(lIn(n,B6e),96);t.pf(e)&&(r=t.of(e))}r==null&&!!VQ(n)&&(r=lIn(VQ(n),e));return r}function syn(n,e){var t;t=bG(lIn(n,(IYn(),DFe)),75);if(q$(e,Ije)){if(!t){t=new zk;Ehn(n,DFe,t)}else{XY(t)}}else!!t&&Ehn(n,DFe,null);return t}function oyn(){oyn=O;zke=(JYn(),R6e);Hke=N4e;Rke=g4e;Uke=c6e;Xke=(PEn(),Ove);qke=Cve;Vke=Lve;Gke=Pve;Fke=(Mbn(),Lke);Kke=Ake;_ke=$ke;Bke=Dke}function fyn(n){QS();this.c=new im;this.d=n;switch(n.g){case 0:case 2:this.a=EJ(VTe);this.b=y0n;break;case 3:case 1:this.a=VTe;this.b=M0n}}function hyn(n){var e;if(!R_(bG(lIn(n,(IYn(),m_e)),101))){return}e=n.b;f$n((b3(0,e.c.length),bG(e.c[0],30)));f$n(bG(Yq(e,e.c.length-1),30))}function lyn(n,e){e.Ug("Self-Loop post-processing",1);ES(tY(tY(wrn(new gX(null,new d3(n.b,16)),new _r),new Br),new Hr),new Ur);e.Vg()}function byn(n,e,t){var r,i;if(n.c){San(n.c,n.c.i+e);Pan(n.c,n.c.j+t)}else{for(i=new nd(n.b);i.a=0&&(t.d=n.t);break;case 3:n.t>=0&&(t.a=n.t)}if(n.C){t.b=n.C.b;t.c=n.C.c}}function Myn(){Myn=O;WBe=new mI(m9n,0);XBe=new mI($6n,1);VBe=new mI("LINEAR_SEGMENTS",2);qBe=new mI("BRANDES_KOEPF",3);zBe=new mI(p9n,4)}function Tyn(){Tyn=O;kke=new vC(c3n,0);mke=new vC(u3n,1);yke=new vC(s3n,2);Mke=new vC(o3n,3);kke.a=false;mke.a=true;yke.a=false;Mke.a=true}function jyn(){jyn=O;Hme=new dC(c3n,0);Bme=new dC(u3n,1);Ume=new dC(s3n,2);Gme=new dC(o3n,3);Hme.a=false;Bme.a=true;Ume.a=false;Gme.a=true}function Eyn(n,e,t,r){var i;if(t>=0){return n.Sh(e,t,r)}else{!!n.Ph()&&(r=(i=n.Fh(),i>=0?n.Ah(r):n.Ph().Th(n,-1-i,null,r)));return n.Ch(e,t,r)}}function Syn(n,e){switch(e){case 7:!n.e&&(n.e=new g_(H7e,n,7,4));NVn(n.e);return;case 8:!n.d&&(n.d=new g_(H7e,n,8,5));NVn(n.d);return}Cpn(n,e)}function Pyn(n,e,t){t==null?(!n.o&&(n.o=new ven((cYn(),int),Rnt,n,0)),Amn(n.o,e)):(!n.o&&(n.o=new ven((cYn(),int),Rnt,n,0)),oSn(n.o,e,t));return n}function Cyn(n,e){dZ();var t,r,i,a;t=n;a=e;if(G$(n,21)&&!G$(e,21)){t=e;a=n}for(i=t.Kc();i.Ob();){r=i.Pb();if(a.Hc(r)){return false}}return true}function Iyn(n,e,t,r){if(e.at.b){return true}}}return false}function Oyn(n,e){if(HA(n)){return!!pce[e]}else if(n.Sm){return!!n.Sm[e]}else if(GA(n)){return!!vce[e]}else if(UA(n)){return!!gce[e]}return false}function Ayn(n){var e;e=n.a;do{e=bG(K9(new GV(sx(Qgn(e).a.Kc(),new d))),18).c.i;e.k==(YIn(),tEe)&&n.b.Fc(e)}while(e.k==(YIn(),tEe));n.b=Avn(n.b)}function Lyn(n,e){var r,i,a;a=n;for(i=new GV(sx(Qgn(e).a.Kc(),new d));dDn(i);){r=bG(K9(i),18);!!r.c.i.c&&(a=t.Math.max(a,r.c.i.c.p))}return a}function Nyn(n,e){var t,r,i;i=0;r=bG(bG(r7(n.r,e),21),87).Kc();while(r.Ob()){t=bG(r.Pb(),117);i+=t.d.d+t.b.Mf().b+t.d.a;r.Ob()&&(i+=n.w)}return i}function $yn(n,e){var t,r,i;i=0;r=bG(bG(r7(n.r,e),21),87).Kc();while(r.Ob()){t=bG(r.Pb(),117);i+=t.d.b+t.b.Mf().a+t.d.c;r.Ob()&&(i+=n.w)}return i}function Dyn(n){var e,t,r,i;r=0;i=WFn(n);if(i.c.length==0){return 1}else{for(t=new nd(i);t.a=0?n.Lh(c,t,true):r$n(n,a,t)):bG(a,69).wk().yk(n,n.hi(),i,t,r)}function Byn(n,e,t,r){var i,a;a=e.pf((JYn(),W4e))?bG(e.of(W4e),21):n.j;i=pdn(a);if(i==(tZn(),Ype)){return}if(t&&!jmn(i)){return}ROn(Axn(n,i,r),e)}function Hyn(n){switch(n.g){case 1:return ufn(),pme;case 3:return ufn(),dme;case 2:return ufn(),vme;case 4:return ufn(),gme;default:return null}}function Uyn(n,e,t){if(n.e){switch(n.b){case 1:tZ(n.c,e,t);break;case 0:rZ(n.c,e,t)}}else{N5(n.c,e,t)}n.a[e.p][t.p]=n.c.i;n.a[t.p][e.p]=n.c.e}function Gyn(n){var e,t;if(n==null){return null}t=$nn(Yje,XZn,199,n.length,0,2);for(e=0;e=0)return i;if(n.ol()){for(r=0;r=i)throw dm(new m_(e,i));if(n.Si()){r=n.dd(t);if(r>=0&&r!=e){throw dm(new jM(Gte))}}return n.Xi(e,t)}function Wyn(n,e){this.a=bG(nQ(n),253);this.b=bG(nQ(e),253);if(n.Ed(e)>0||n==(My(),ase)||e==(Ty(),sse)){throw dm(new jM("Invalid range: "+K5(n,e)))}}function Qyn(n){var e,t;this.b=new im;this.c=n;this.a=false;for(t=new nd(n.a);t.a0);if((e&-e)==e){return c0(e*bRn(n,31)*4.656612873077393e-10)}do{t=bRn(n,31);r=t%e}while(t-r+(e-1)<0);return c0(r)}function oMn(n,e,t){switch(t.g){case 1:n.a=e.a/2;n.b=0;break;case 2:n.a=e.a;n.b=e.b/2;break;case 3:n.a=e.a/2;n.b=e.b;break;case 4:n.a=0;n.b=e.b/2}}function fMn(n,e,t,r){var i,a;for(i=e;i1&&(a=Jyn(n,e));return a}function wMn(n){var e;e=bM(MK(YDn(n,(JYn(),Y6e))))*t.Math.sqrt((!n.a&&(n.a=new gz(snt,n,10,11)),n.a).i);return new PO(e,e/bM(MK(YDn(n,J6e))))}function dMn(n){var e;if(!!n.f&&n.f.Vh()){e=bG(n.f,54);n.f=bG(Twn(n,e),84);n.f!=e&&(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,9,8,e,n.f))}return n.f}function gMn(n){var e;if(!!n.i&&n.i.Vh()){e=bG(n.i,54);n.i=bG(Twn(n,e),84);n.i!=e&&(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,9,7,e,n.i))}return n.i}function vMn(n){var e;if(!!n.b&&(n.b.Db&64)!=0){e=n.b;n.b=bG(Twn(n,e),19);n.b!=e&&(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,9,21,e,n.b))}return n.b}function pMn(n,e){var t,r,i;if(n.d==null){++n.e;++n.f}else{r=e.Bi();uKn(n,n.f+1);i=(r&pZn)%n.d.length;t=n.d[i];!t&&(t=n.d[i]=n.dk());t.Fc(e);++n.f}}function mMn(n,e,t){var r;if(e.tk()){return false}else if(e.Ik()!=-2){r=e.ik();return r==null?t==null:bdn(r,t)}else return e.qk()==n.e.Dh()&&t==null}function kMn(){var n;Tcn(16,l1n);n=hun(16);this.b=$nn(Dse,h1n,303,n,0,1);this.c=$nn(Dse,h1n,303,n,0,1);this.a=null;this.e=null;this.i=0;this.f=n-1;this.g=0}function yMn(n){RF.call(this);this.k=(YIn(),rEe);this.j=(Tcn(6,d1n),new H7(6));this.b=(Tcn(2,d1n),new H7(2));this.d=new Fk;this.f=new Bk;this.a=n}function MMn(n){var e,t;if(n.c.length<=1){return}e=m_n(n,(UQn(),Y8e));sAn(n,bG(e.a,17).a,bG(e.b,17).a);t=m_n(n,n9e);sAn(n,bG(t.a,17).a,bG(t.b,17).a)}function TMn(n,e,t){var r,i;i=n.a.b;for(r=i.c.length;r102)return-1;if(n<=57)return n-48;if(n<65)return-1;if(n<=70)return n-65+10;if(n<97)return-1;return n-97+10}function $Mn(n,e){if(n==null){throw dm(new PM("null key in entry: null="+e))}else if(e==null){throw dm(new PM("null value in entry: "+n+"=null"))}}function DMn(n,e){var t,r;while(n.Ob()){if(!e.Ob()){return false}t=n.Pb();r=e.Pb();if(!(BA(t)===BA(r)||t!=null&&bdn(t,r))){return false}}return!e.Ob()}function xMn(n,e){var r;r=zfn(fT(zht,1),C0n,28,15,[Kbn(n.a[0],e),Kbn(n.a[1],e),Kbn(n.a[2],e)]);if(n.d){r[0]=t.Math.max(r[0],r[2]);r[2]=r[0]}return r}function RMn(n,e){var r;r=zfn(fT(zht,1),C0n,28,15,[Fbn(n.a[0],e),Fbn(n.a[1],e),Fbn(n.a[2],e)]);if(n.d){r[0]=t.Math.max(r[0],r[2]);r[2]=r[0]}return r}function KMn(n,e,t){if(!R_(bG(lIn(e,(IYn(),m_e)),101))){i9(n,e,SOn(e,t));i9(n,e,SOn(e,(UQn(),Y8e)));i9(n,e,SOn(e,D8e));dZ();g$(e.j,new Wg(n))}}function FMn(n){var e,t;n.c||lzn(n);t=new zk;e=new nd(n.a);K3(e);while(e.a0&&(w3(0,e.length),e.charCodeAt(0)==43)?(w3(1,e.length+1),e.substr(1)):e))}function aTn(n){var e;return n==null?null:new LN((e=SXn(n,true),e.length>0&&(w3(0,e.length),e.charCodeAt(0)==43)?(w3(1,e.length+1),e.substr(1)):e))}function cTn(n,e,t,r,i,a,c,u){var s,o;if(!r){return}s=r.a[0];!!s&&cTn(n,e,t,s,i,a,c,u);vjn(n,t,r.d,i,a,c,u)&&e.Fc(r);o=r.a[1];!!o&&cTn(n,e,t,o,i,a,c,u)}function uTn(n,e,t){try{return qA(Aun(n,e,t),1)}catch(r){r=Ofn(r);if(G$(r,333)){throw dm(new kM(l3n+n.o+"*"+n.p+b3n+e+MZn+t+w3n))}else throw dm(r)}}function sTn(n,e,t){try{return qA(Aun(n,e,t),0)}catch(r){r=Ofn(r);if(G$(r,333)){throw dm(new kM(l3n+n.o+"*"+n.p+b3n+e+MZn+t+w3n))}else throw dm(r)}}function oTn(n,e,t){try{return qA(Aun(n,e,t),2)}catch(r){r=Ofn(r);if(G$(r,333)){throw dm(new kM(l3n+n.o+"*"+n.p+b3n+e+MZn+t+w3n))}else throw dm(r)}}function fTn(n,e){if(n.g==-1){throw dm(new Bm)}n.Xj();try{n.d.hd(n.g,e);n.f=n.d.j}catch(t){t=Ofn(t);if(G$(t,77)){throw dm(new Gm)}else throw dm(t)}}function hTn(n){var e,t,r,i,a;for(r=new nd(n.b);r.aa&&bQ(e,a,null);return e}function bTn(n,e){var t,r;r=n.gc();if(e==null){for(t=0;t0&&(s+=i);o[f]=c;c+=u*(s+r)}}function CTn(n){var e,t,r;r=n.f;n.n=$nn(zht,C0n,28,r,15,1);n.d=$nn(zht,C0n,28,r,15,1);for(e=0;e0?n.c:0);++a}n.b=i;n.d=c}function xTn(n,e){var r;r=zfn(fT(zht,1),C0n,28,15,[uMn(n,(ran(),rpe),e),uMn(n,ipe,e),uMn(n,ape,e)]);if(n.f){r[0]=t.Math.max(r[0],r[2]);r[2]=r[0]}return r}function RTn(n,e,t){var r;try{VBn(n,e+n.j,t+n.k,false,true)}catch(i){i=Ofn(i);if(G$(i,77)){r=i;throw dm(new kM(r.g+d3n+e+MZn+t+")."))}else throw dm(i)}}function KTn(n,e,t){var r;try{VBn(n,e+n.j,t+n.k,true,false)}catch(i){i=Ofn(i);if(G$(i,77)){r=i;throw dm(new kM(r.g+d3n+e+MZn+t+")."))}else throw dm(i)}}function FTn(n){var e;if(!jR(n,(IYn(),WFe))){return}e=bG(lIn(n,WFe),21);if(e.Hc((ZDn(),e8e))){e.Mc(e8e);e.Fc(r8e)}else if(e.Hc(r8e)){e.Mc(r8e);e.Fc(e8e)}}function _Tn(n){var e;if(!jR(n,(IYn(),WFe))){return}e=bG(lIn(n,WFe),21);if(e.Hc((ZDn(),s8e))){e.Mc(s8e);e.Fc(c8e)}else if(e.Hc(c8e)){e.Mc(c8e);e.Fc(s8e)}}function BTn(n,e,t,r){var i,a,c,u;n.a==null&&aOn(n,e);c=e.b.j.c.length;a=t.d.p;u=r.d.p;i=u-1;i<0&&(i=c-1);return a<=i?n.a[i]-n.a[a]:n.a[c-1]-n.a[a]+n.a[i]}function HTn(n){var e,t;if(!n.b){n.b=l6(bG(n.f,27).kh().i);for(t=new _D(bG(n.f,27).kh());t.e!=t.i.gc();){e=bG(iyn(t),135);ED(n.b,new nM(e))}}return n.b}function UTn(n){var e,t;if(!n.e){n.e=l6(HJ(bG(n.f,27)).i);for(t=new _D(HJ(bG(n.f,27)));t.e!=t.i.gc();){e=bG(iyn(t),123);ED(n.e,new tp(e))}}return n.e}function GTn(n){var e,t;if(!n.a){n.a=l6(mZ(bG(n.f,27)).i);for(t=new _D(mZ(bG(n.f,27)));t.e!=t.i.gc();){e=bG(iyn(t),27);ED(n.a,new nR(n,e))}}return n.a}function qTn(n){var e;if(!n.C&&(n.D!=null||n.B!=null)){e=UWn(n);if(e){n.hl(e)}else{try{n.hl(null)}catch(t){t=Ofn(t);if(!G$(t,63))throw dm(t)}}}return n.C}function XTn(n){switch(n.q.g){case 5:eSn(n,(UQn(),D8e));eSn(n,Y8e);break;case 4:Czn(n,(UQn(),D8e));Czn(n,Y8e);break;default:LAn(n,(UQn(),D8e));LAn(n,Y8e)}}function VTn(n){switch(n.q.g){case 5:tSn(n,(UQn(),$8e));tSn(n,n9e);break;case 4:Izn(n,(UQn(),$8e));Izn(n,n9e);break;default:NAn(n,(UQn(),$8e));NAn(n,n9e)}}function zTn(n,e){var r,i,a;a=new wj;for(i=n.Kc();i.Ob();){r=bG(i.Pb(),36);cHn(r,a.a,0);a.a+=r.f.a+e;a.b=t.Math.max(a.b,r.f.b)}a.b>0&&(a.b+=e);return a}function WTn(n,e){var r,i,a;a=new wj;for(i=n.Kc();i.Ob();){r=bG(i.Pb(),36);cHn(r,0,a.b);a.b+=r.f.b+e;a.a=t.Math.max(a.a,r.f.a)}a.a>0&&(a.a+=e);return a}function QTn(n){var e,r,i;i=pZn;for(r=new nd(n.a);r.a>16==6){return n.Cb.Th(n,5,z7e,e)}return r=vMn(bG(uin((t=bG(Ron(n,16),29),!t?n.ii():t),n.Db>>16),19)),n.Cb.Th(n,r.n,r.f,e)}function njn(n){OZ();var e=n.e;if(e&&e.stack){var t=e.stack;var r=e+"\n";t.substring(0,r.length)==r&&(t=t.substring(r.length));return t.split("\n")}return[]}function ejn(n){var e;e=(Ccn(),ile);return e[n>>>28]|e[n>>24&15]<<4|e[n>>20&15]<<8|e[n>>16&15]<<12|e[n>>12&15]<<16|e[n>>8&15]<<20|e[n>>4&15]<<24|e[n&15]<<28}function tjn(n){var e,r,i;if(n.b!=n.c){return}i=n.a.length;r=Mhn(t.Math.max(8,i))<<1;if(n.b!=0){e=PF(n.a,r);Lun(n,e,i);n.a=e;n.b=0}else{Jm(n.a,r)}n.c=i}function rjn(n,e){var t;t=n.b;return t.pf((JYn(),m6e))?t.ag()==(UQn(),n9e)?-t.Mf().a-bM(MK(t.of(m6e))):e+bM(MK(t.of(m6e))):t.ag()==(UQn(),n9e)?-t.Mf().a:e}function ijn(n){var e;if(n.b.c.length!=0&&!!bG(Yq(n.b,0),72).a){return bG(Yq(n.b,0),72).a}e=wY(n);if(e!=null){return e}return""+(!n.c?-1:Ctn(n.c.a,n,0))}function ajn(n){var e;if(n.f.c.length!=0&&!!bG(Yq(n.f,0),72).a){return bG(Yq(n.f,0),72).a}e=wY(n);if(e!=null){return e}return""+(!n.i?-1:Ctn(n.i.j,n,0))}function cjn(n,e){var t,r;if(e<0||e>=n.gc()){return null}for(t=e;t0?n.c:0);a=t.Math.max(a,e.d);++i}n.e=c;n.b=a}function ojn(n){var e,t;if(!n.b){n.b=l6(bG(n.f,123).kh().i);for(t=new _D(bG(n.f,123).kh());t.e!=t.i.gc();){e=bG(iyn(t),135);ED(n.b,new nM(e))}}return n.b}function fjn(n,e){var t,r,i;if(e.dc()){return OK(),OK(),Gtt}else{t=new fF(n,e.gc());for(i=new _D(n);i.e!=i.i.gc();){r=iyn(i);e.Hc(r)&&cen(t,r)}return t}}function hjn(n,e,t,r){if(e==0){return r?(!n.o&&(n.o=new ven((cYn(),int),Rnt,n,0)),n.o):(!n.o&&(n.o=new ven((cYn(),int),Rnt,n,0)),Cnn(n.o))}return _yn(n,e,t,r)}function ljn(n){var e,t;if(n.rb){for(e=0,t=n.rb.i;e>22);i+=r>>22;if(i<0){return false}n.l=t&f0n;n.m=r&f0n;n.h=i&h0n;return true}function vjn(n,e,t,r,i,a,c){var u,s;if(e.Te()&&(s=n.a.Ne(t,r),s<0||!i&&s==0)){return false}if(e.Ue()&&(u=n.a.Ne(t,a),u>0||!c&&u==0)){return false}return true}function pjn(n,e){Nln();var t;t=n.j.g-e.j.g;if(t!=0){return 0}switch(n.j.g){case 2:return nvn(e,dIe)-nvn(n,dIe);case 4:return nvn(n,wIe)-nvn(e,wIe)}return 0}function mjn(n){switch(n.g){case 0:return qNe;case 1:return XNe;case 2:return VNe;case 3:return zNe;case 4:return WNe;case 5:return QNe;default:return null}}function kjn(n,e,t){var r,i;r=(i=new ay,Ubn(i,e),Qun(i,t),cen((!n.c&&(n.c=new gz(Art,n,12,10)),n.c),i),i);Lan(r,0);Nan(r,1);Tdn(r,true);kdn(r,true);return r}function yjn(n,e){var t,r;if(e>=n.i)throw dm(new ML(e,n.i));++n.j;t=n.g[e];r=n.i-e-1;r>0&&QGn(n.g,e+1,n.g,e,r);bQ(n.g,--n.i,null);n.Qi(e,t);n.Ni();return t}function Mjn(n,e){var t,r;if(n.Db>>16==17){return n.Cb.Th(n,21,Mrt,e)}return r=vMn(bG(uin((t=bG(Ron(n,16),29),!t?n.ii():t),n.Db>>16),19)),n.Cb.Th(n,r.n,r.f,e)}function Tjn(n){var e,t,r,i;dZ();g$(n.c,n.a);for(i=new nd(n.c);i.at.a.c.length)){throw dm(new jM("index must be >= 0 and <= layer node count"))}!!n.c&&Ttn(n.c.a,n);n.c=t;!!t&&WX(t.a,e,n)}function _jn(n,e){var t,r,i;for(r=new GV(sx(Wgn(n).a.Kc(),new d));dDn(r);){t=bG(K9(r),18);i=bG(e.Kb(t),10);return new zl(nQ(i.n.b+i.o.b/2))}return yy(),yy(),Tce}function Bjn(n,e){this.c=new rm;this.a=n;this.b=e;this.d=bG(lIn(n,(WYn(),BDe)),312);BA(lIn(n,(IYn(),QFe)))===BA((ntn(),ZNe))?this.e=new Lk:this.e=new Ak}function Hjn(n,e){var t,r;r=null;if(n.pf((JYn(),B6e))){t=bG(n.of(B6e),96);t.pf(e)&&(r=t.of(e))}r==null&&!!n.Tf()&&(r=n.Tf().of(e));r==null&&(r=tyn(e));return r}function Ujn(n,e){var t,r;t=n.fd(e);try{r=t.Pb();t.Qb();return r}catch(i){i=Ofn(i);if(G$(i,112)){throw dm(new kM("Can't remove element "+e))}else throw dm(i)}}function Gjn(n,e){var t,r,i;r=new eS;i=new Rhn(r.q.getFullYear()-V1n,r.q.getMonth(),r.q.getDate());t=nXn(n,e,i);if(t==0||t0?e:0);++r}return new PO(i,a)}function Yjn(n,e){var t,r;if(n.Db>>16==6){return n.Cb.Th(n,6,H7e,e)}return r=vMn(bG(uin((t=bG(Ron(n,16),29),!t?(cYn(),Z7e):t),n.Db>>16),19)),n.Cb.Th(n,r.n,r.f,e)}function Zjn(n,e){var t,r;if(n.Db>>16==7){return n.Cb.Th(n,1,F7e,e)}return r=vMn(bG(uin((t=bG(Ron(n,16),29),!t?(cYn(),ent):t),n.Db>>16),19)),n.Cb.Th(n,r.n,r.f,e)}function nEn(n,e){var t,r;if(n.Db>>16==9){return n.Cb.Th(n,9,snt,e)}return r=vMn(bG(uin((t=bG(Ron(n,16),29),!t?(cYn(),rnt):t),n.Db>>16),19)),n.Cb.Th(n,r.n,r.f,e)}function eEn(n,e){var t,r;if(n.Db>>16==5){return n.Cb.Th(n,9,Srt,e)}return r=vMn(bG(uin((t=bG(Ron(n,16),29),!t?(rZn(),zrt):t),n.Db>>16),19)),n.Cb.Th(n,r.n,r.f,e)}function tEn(n,e){var t,r;if(n.Db>>16==7){return n.Cb.Th(n,6,z7e,e)}return r=vMn(bG(uin((t=bG(Ron(n,16),29),!t?(rZn(),rit):t),n.Db>>16),19)),n.Cb.Th(n,r.n,r.f,e)}function rEn(n,e){var t,r;if(n.Db>>16==3){return n.Cb.Th(n,0,G7e,e)}return r=vMn(bG(uin((t=bG(Ron(n,16),29),!t?(rZn(),Brt):t),n.Db>>16),19)),n.Cb.Th(n,r.n,r.f,e)}function iEn(){this.a=new bo;this.g=new kMn;this.j=new kMn;this.b=new rm;this.d=new kMn;this.i=new kMn;this.k=new rm;this.c=new rm;this.e=new rm;this.f=new rm}function aEn(n,e,t){var r,i,a;t<0&&(t=0);a=n.i;for(i=t;iI0n){return uEn(n,r)}if(r==n){return true}}}return false}function sEn(n){Wx();switch(n.q.g){case 5:bNn(n,(UQn(),D8e));bNn(n,Y8e);break;case 4:Uxn(n,(UQn(),D8e));Uxn(n,Y8e);break;default:FQn(n,(UQn(),D8e));FQn(n,Y8e)}}function oEn(n){Wx();switch(n.q.g){case 5:E$n(n,(UQn(),$8e));E$n(n,n9e);break;case 4:gyn(n,(UQn(),$8e));gyn(n,n9e);break;default:_Qn(n,(UQn(),$8e));_Qn(n,n9e)}}function fEn(n){var e,t;e=bG(lIn(n,(oGn(),Yye)),17);if(e){t=e.a;t==0?Ehn(n,(Tun(),dMe),new zvn):Ehn(n,(Tun(),dMe),new j8(t))}else{Ehn(n,(Tun(),dMe),new j8(1))}}function hEn(n,e){var t;t=n.i;switch(e.g){case 1:return-(n.n.b+n.o.b);case 2:return n.n.a-t.o.a;case 3:return n.n.b-t.o.b;case 4:return-(n.n.a+n.o.a)}return 0}function lEn(n,e){switch(n.g){case 0:return e==(Wvn(),QDe)?xCe:RCe;case 1:return e==(Wvn(),QDe)?xCe:DCe;case 2:return e==(Wvn(),QDe)?DCe:RCe;default:return DCe}}function bEn(n,e){var r,i,a;Ttn(n.a,e);n.e-=e.r+(n.a.c.length==0?0:n.c);a=l7n;for(i=new nd(n.a);i.a>16==3){return n.Cb.Th(n,12,snt,e)}return r=vMn(bG(uin((t=bG(Ron(n,16),29),!t?(cYn(),Y7e):t),n.Db>>16),19)),n.Cb.Th(n,r.n,r.f,e)}function dEn(n,e){var t,r;if(n.Db>>16==11){return n.Cb.Th(n,10,snt,e)}return r=vMn(bG(uin((t=bG(Ron(n,16),29),!t?(cYn(),tnt):t),n.Db>>16),19)),n.Cb.Th(n,r.n,r.f,e)}function gEn(n,e){var t,r;if(n.Db>>16==10){return n.Cb.Th(n,11,Mrt,e)}return r=vMn(bG(uin((t=bG(Ron(n,16),29),!t?(rZn(),eit):t),n.Db>>16),19)),n.Cb.Th(n,r.n,r.f,e)}function vEn(n,e){var t,r;if(n.Db>>16==10){return n.Cb.Th(n,12,Irt,e)}return r=vMn(bG(uin((t=bG(Ron(n,16),29),!t?(rZn(),iit):t),n.Db>>16),19)),n.Cb.Th(n,r.n,r.f,e)}function pEn(n){var e;if((n.Bb&1)==0&&!!n.r&&n.r.Vh()){e=bG(n.r,54);n.r=bG(Twn(n,e),142);n.r!=e&&(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,9,8,e,n.r))}return n.r}function mEn(n,e,r){var i;i=zfn(fT(zht,1),C0n,28,15,[XCn(n,(ran(),rpe),e,r),XCn(n,ipe,e,r),XCn(n,ape,e,r)]);if(n.f){i[0]=t.Math.max(i[0],i[2]);i[2]=i[0]}return i}function kEn(n,e){var t,r,i;i=vyn(n,e);if(i.c.length==0){return}g$(i,new cr);t=i.c.length;for(r=0;r>19;o=e.h>>19;if(s!=o){return o-s}i=n.h;u=e.h;if(i!=u){return i-u}r=n.m;c=e.m;if(r!=c){return r-c}t=n.l;a=e.l;return t-a}function PEn(){PEn=O;Nve=(nBn(),Bve);Lve=new TL(N2n,Nve);Ave=(Jrn(),Tve);Ove=new TL($2n,Ave);Ive=(qkn(),mve);Cve=new TL(D2n,Ive);Pve=new TL(x2n,(Qx(),true))}function CEn(n,e,t){var r,i;r=e*t;if(G$(n.g,154)){i=e5(n);if(i.f.d){i.f.a||(n.d.a+=r+Y2n)}else{n.d.d-=r+Y2n;n.d.a+=r+Y2n}}else if(G$(n.g,10)){n.d.d-=r;n.d.a+=2*r}}function IEn(n,e,r){var i,a,c,u,s;a=n[r.g];for(s=new nd(e.d);s.a0?n.b:0);++r}e.b=i;e.e=a}function AEn(n){var e,t,r;r=n.b;if(hS(n.i,r.length)){t=r.length*2;n.b=$nn(Dse,h1n,303,t,0,1);n.c=$nn(Dse,h1n,303,t,0,1);n.f=t-1;n.i=0;for(e=n.a;e;e=e.c){VLn(n,e,e)}++n.g}}function LEn(n,e,t,r){var i,a,c,u;for(i=0;iu&&(s=u/i);a>c&&(o=c/a);jD(n,t.Math.min(s,o));return n}function xEn(){cXn();var n,e;try{e=bG(xSn((PP(),Ort),ate),2113);if(e){return e}}catch(t){t=Ofn(t);if(G$(t,103)){n=t;xW((c$(),n))}else throw dm(t)}return new so}function REn(){cXn();var n,e;try{e=bG(xSn((PP(),Ort),Nie),2040);if(e){return e}}catch(t){t=Ofn(t);if(G$(t,103)){n=t;xW((c$(),n))}else throw dm(t)}return new qo}function KEn(){Gen();var n,e;try{e=bG(xSn((PP(),Ort),fae),2122);if(e){return e}}catch(t){t=Ofn(t);if(G$(t,103)){n=t;xW((c$(),n))}else throw dm(t)}return new Ff}function FEn(n,e,t){var r,i;i=n.e;n.e=e;if((n.Db&4)!=0&&(n.Db&1)==0){r=new vz(n,1,4,i,e);!t?t=r:t.nj(r)}i!=e&&(e?t=LWn(n,pRn(n,e),t):t=LWn(n,n.a,t));return t}function _En(){eS.call(this);this.e=-1;this.a=false;this.p=T1n;this.k=-1;this.c=-1;this.b=-1;this.g=false;this.f=-1;this.j=-1;this.n=-1;this.i=-1;this.d=-1;this.o=T1n}function BEn(n,e){var t,r,i;r=n.b.d.d;n.a||(r+=n.b.d.a);i=e.b.d.d;e.a||(i+=e.b.d.a);t=bgn(r,i);if(t==0){if(!n.a&&e.a){return-1}else if(!e.a&&n.a){return 1}}return t}function HEn(n,e){var t,r,i;r=n.b.b.d;n.a||(r+=n.b.b.a);i=e.b.b.d;e.a||(i+=e.b.b.a);t=bgn(r,i);if(t==0){if(!n.a&&e.a){return-1}else if(!e.a&&n.a){return 1}}return t}function UEn(n,e){var t,r,i;r=n.b.g.d;n.a||(r+=n.b.g.a);i=e.b.g.d;e.a||(i+=e.b.g.a);t=bgn(r,i);if(t==0){if(!n.a&&e.a){return-1}else if(!e.a&&n.a){return 1}}return t}function GEn(){GEn=O;WMe=mV(xq(xq(xq(new mJ,(bIn(),cTe),(YYn(),LPe)),cTe,xPe),uTe,UPe),uTe,kPe);JMe=xq(xq(new mJ,cTe,fPe),cTe,yPe);QMe=mV(new mJ,uTe,TPe)}function qEn(n){var e,t,r,i,a;e=bG(lIn(n,(WYn(),eDe)),85);a=n.n;for(r=e.Cc().Kc();r.Ob();){t=bG(r.Pb(),314);i=t.i;i.c+=a.a;i.d+=a.b;t.c?L_n(t):N_n(t)}Ehn(n,eDe,null)}function XEn(n,e,t){var r,i;i=n.b;r=i.d;switch(e.g){case 1:return-r.d-t;case 2:return i.o.a+r.c+t;case 3:return i.o.b+r.a+t;case 4:return-r.b-t;default:return-1}}function VEn(n,e,t){var r,i;t.Ug("Interactive node placement",1);n.a=bG(lIn(e,(WYn(),BDe)),312);for(i=new nd(e.b);i.a0){c=(a&pZn)%n.d.length;i=i$n(n,c,a,e);if(i){u=i.nd(t);return u}}r=n.ck(a,e,t);n.c.Fc(r);return null}function fSn(n,e){var t,r,i,a;switch(cdn(n,e).Kl()){case 3:case 2:{t=dXn(e);for(i=0,a=t.i;i=0;i--){if(T_(n[i].d,e)||T_(n[i].d,r)){n.length>=i+1&&n.splice(0,i+1);break}}return n}function pSn(n,e){var r;if(qL(n)&&qL(e)){r=n/e;if(g0n0){n.b+=2;n.a+=i}}else{n.b+=1;n.a+=t.Math.min(i,a)}}function SSn(n){var e;e=bG(lIn(bG(dyn(n.b,0),40),(eqn(),SWe)),107);Ehn(n,(DQn(),Cze),new PO(0,0));sUn(new R7,n,e.b+e.c-bM(MK(lIn(n,Dze))),e.d+e.a-bM(MK(lIn(n,Rze))))}function PSn(n,e){var t,r;r=false;if(HA(e)){r=true;MQ(n,new eQ(TK(e)))}if(!r){if(G$(e,242)){r=true;MQ(n,(t=eB(bG(e,242)),new Lb(t)))}}if(!r){throw dm(new MM(Ste))}}function CSn(n,e,t,r){var i,a,c;i=new Utn(n.e,1,10,(c=e.c,G$(c,90)?bG(c,29):(rZn(),nit)),(a=t.c,G$(a,90)?bG(a,29):(rZn(),nit)),Vyn(n,e),false);!r?r=i:r.nj(i);return r}function ISn(n){var e,t;switch(bG(lIn(VQ(n),(IYn(),$Fe)),429).g){case 0:e=n.n;t=n.o;return new PO(e.a+t.a/2,e.b+t.b/2);case 1:return new uN(n.n);default:return null}}function OSn(){OSn=O;c$e=new oI(G4n,0);a$e=new oI("LEFTUP",1);s$e=new oI("RIGHTUP",2);i$e=new oI("LEFTDOWN",3);u$e=new oI("RIGHTDOWN",4);r$e=new oI("BALANCED",5)}function ASn(n,e,t){var r,i,a;r=bgn(n.a[e.p],n.a[t.p]);if(r==0){i=bG(lIn(e,(WYn(),dDe)),15);a=bG(lIn(t,dDe),15);if(i.Hc(t)){return-1}else if(a.Hc(e)){return 1}}return r}function LSn(n){switch(n.g){case 1:return new Ou;case 2:return new Au;case 3:return new Iu;case 0:return null;default:throw dm(new jM(m7n+(n.f!=null?n.f:""+n.g)))}}function NSn(n,e,t){switch(e){case 1:!n.n&&(n.n=new gz(unt,n,1,7));NVn(n.n);!n.n&&(n.n=new gz(unt,n,1,7));NW(n.n,bG(t,16));return;case 2:Wcn(n,TK(t));return}pln(n,e,t)}function $Sn(n,e,t){switch(e){case 3:jan(n,bM(MK(t)));return;case 4:Ean(n,bM(MK(t)));return;case 5:San(n,bM(MK(t)));return;case 6:Pan(n,bM(MK(t)));return}NSn(n,e,t)}function DSn(n,e,t){var r,i,a;a=(r=new ay,r);i=NCn(a,e,null);!!i&&i.oj();Qun(a,t);cen((!n.c&&(n.c=new gz(Art,n,12,10)),n.c),a);Lan(a,0);Nan(a,1);Tdn(a,true);kdn(a,true)}function xSn(n,e){var t,r,i;t=qP(n.i,e);if(G$(t,241)){i=bG(t,241);i.zi()==null&&undefined;return i.wi()}else if(G$(t,507)){r=bG(t,2037);i=r.b;return i}else{return null}}function RSn(n,e,t,r){var i,a;nQ(e);nQ(t);a=bG(nB(n.d,e),17);Htn(!!a,"Row %s not in %s",e,n.e);i=bG(nB(n.b,t),17);Htn(!!i,"Column %s not in %s",t,n.c);return Vfn(n,a.a,i.a,r)}function KSn(n,e,t,r,i,a,c){var u,s,o,f,h;f=i[a];o=a==c-1;u=o?r:0;h=LTn(u,f);r!=10&&zfn(fT(n,c-a),e[a],t[a],u,h);if(!o){++a;for(s=0;s1||u==-1){a=bG(s,15);i.Wb(Zvn(n,a))}else{i.Wb(lUn(n,bG(s,58)))}}}}function YSn(n,e,t,r){EE();var c=wce;i=e;a=t;dce=r;function u(){for(var n=0;n0){return false}}return true}function ePn(n){var e,t,r,i,a;for(r=new pon(new Kw(n.b).a);r.b;){t=jun(r);e=bG(t.ld(),10);a=bG(bG(t.md(),42).a,10);i=bG(bG(t.md(),42).b,8);t_(kL(e.n),t_(_$(a.n),i))}}function tPn(n){switch(bG(lIn(n.b,(IYn(),mFe)),387).g){case 1:ES(rY(wrn(new gX(null,new d3(n.d,16)),new Zi),new na),new ea);break;case 2:yBn(n);break;case 0:TLn(n)}}function rPn(n,e,t){var r,i,a;r=t;!r&&(r=new gy);r.Ug("Layout",n.a.c.length);for(a=new nd(n.a);a.aN9n){return t}else i>-1e-6&&++t}return t}function oPn(n,e){var t;if(e!=n.b){t=null;!!n.b&&(t=D1(n.b,n,-4,t));!!e&&(t=Eyn(e,n,-4,t));t=Ewn(n,e,t);!!t&&t.oj()}else(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,3,e,e))}function fPn(n,e){var t;if(e!=n.f){t=null;!!n.f&&(t=D1(n.f,n,-1,t));!!e&&(t=Eyn(e,n,-1,t));t=jwn(n,e,t);!!t&&t.oj()}else(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,0,e,e))}function hPn(n,e,t,r){var i,a,c,u;if(bN(n.e)){i=e.Lk();u=e.md();a=t.md();c=ZZ(n,1,i,u,a,i.Jk()?_qn(n,i,a,G$(i,102)&&(bG(i,19).Bb&S0n)!=0):-1,true);r?r.nj(c):r=c}return r}function lPn(n){var e,t,r;if(n==null)return null;t=bG(n,15);if(t.dc())return"";r=new YM;for(e=t.Kc();e.Ob();){ZA(r,(bzn(),TK(e.Pb())));r.a+=" "}return NL(r,r.a.length-1)}function bPn(n){var e,t,r;if(n==null)return null;t=bG(n,15);if(t.dc())return"";r=new YM;for(e=t.Kc();e.Ob();){ZA(r,(bzn(),TK(e.Pb())));r.a+=" "}return NL(r,r.a.length-1)}function wPn(n,e,t){var r,i;r=n.c[e.c.p][e.p];i=n.c[t.c.p][t.p];if(r.a!=null&&i.a!=null){return HV(r.a,i.a)}else if(r.a!=null){return-1}else if(i.a!=null){return 1}return 0}function dPn(n,e,t){t.Ug("Tree layout",1);qJ(n.b);tW(n.b,(Njn(),uVe),uVe);tW(n.b,sVe,sVe);tW(n.b,oVe,oVe);tW(n.b,fVe,fVe);n.a=ezn(n.b,e);rPn(n,e,t.eh(1));t.Vg();return e}function gPn(n,e){var t,r,i,a,c,u;if(e){a=e.a.length;t=new WV(a);for(u=(t.b-t.a)*t.c<0?(NP(),Fht):new BD(t);u.Ob();){c=bG(u.Pb(),17);i=j6(e,c.a);r=new lp(n);eY(r.a,i)}}}function vPn(n,e){var t,r,i,a,c,u;if(e){a=e.a.length;t=new WV(a);for(u=(t.b-t.a)*t.c<0?(NP(),Fht):new BD(t);u.Ob();){c=bG(u.Pb(),17);i=j6(e,c.a);r=new rp(n);nY(r.a,i)}}}function pPn(n){var e;if(n!=null&&n.length>0&&ZJ(n,n.length-1)==33){try{e=wxn(o1(n,0,n.length-1));return e.e==null}catch(t){t=Ofn(t);if(!G$(t,33))throw dm(t)}}return false}function mPn(n,e,t){var r,i,a;r=VQ(e);i=Mgn(r);a=new vOn;l2(a,e);switch(t.g){case 1:KLn(a,Wdn($vn(i)));break;case 2:KLn(a,$vn(i))}Ehn(a,(IYn(),p_e),MK(lIn(n,p_e)));return a}function kPn(n){var e,t;e=bG(K9(new GV(sx(Qgn(n.a).a.Kc(),new d))),18);t=bG(K9(new GV(sx(Jgn(n.a).a.Kc(),new d))),18);return lM(yK(lIn(e,(WYn(),KDe))))||lM(yK(lIn(t,KDe)))}function yPn(){yPn=O;LAe=new YC("ONE_SIDE",0);$Ae=new YC("TWO_SIDES_CORNER",1);DAe=new YC("TWO_SIDES_OPPOSING",2);NAe=new YC("THREE_SIDES",3);AAe=new YC("FOUR_SIDES",4)}function MPn(n,e){var t,r,i,a;a=new im;i=0;r=e.Kc();while(r.Ob()){t=Bwn(bG(r.Pb(),17).a+i);while(t.a=n.f){break}Tm(a.c,t)}return a}function TPn(n,e){var t,r,i,a,c;for(a=new nd(e.a);a.a0&&Pjn(this,this.c-1,(UQn(),$8e));this.c0&&n[0].length>0&&(this.c=lM(yK(lIn(VQ(n[0][0]),(WYn(),gDe)))));this.a=$nn(NUe,XZn,2117,n.length,0,2);this.b=$nn(xUe,XZn,2118,n.length,0,2);this.d=new Ybn}function RPn(n){if(n.c.length==0){return false}if((b3(0,n.c.length),bG(n.c[0],18)).c.i.k==(YIn(),tEe)){return true}return l9(rY(new gX(null,new d3(n,16)),new Ba),new Ha)}function KPn(n,e){var r,i,a,c,u,s,o;s=WFn(e);c=e.f;o=e.g;u=t.Math.sqrt(c*c+o*o);a=0;for(i=new nd(s);i.a=0){t=pSn(n,d0n);r=Upn(n,d0n)}else{e=_V(n,1);t=pSn(e,5e8);r=Upn(e,5e8);r=Rgn(KV(r,1),O3(n,1))}return A3(KV(r,32),O3(t,A0n))}function rCn(n,e,t){var r,i;r=(PK(e.b!=0),bG(Rin(e,e.a.a),8));switch(t.g){case 0:r.b=0;break;case 2:r.b=n.f;break;case 3:r.a=0;break;default:r.a=n.g}i=Gkn(e,0);vW(i,r);return e}function iCn(n,e,t,r){var i,a,c,u,s;s=n.b;a=e.d;c=a.j;u=Skn(c,s.d[c.g],t);i=t_(_$(a.n),a.a);switch(a.j.g){case 1:case 3:u.a+=i.a;break;case 2:case 4:u.b+=i.b}w8(r,u,r.c.b,r.c)}function aCn(n,e,t){var r,i,a,c;c=Ctn(n.e,e,0);a=new Ck;a.b=t;r=new K4(n.e,c);while(r.b1;e>>=1){(e&1)!=0&&(r=I5(r,t));t.d==1?t=I5(t,t):t=new akn(GUn(t.a,t.d,$nn(Ght,z1n,28,t.d<<1,15,1)))}r=I5(r,t);return r}function hCn(){hCn=O;var n,e,t,r;Cwe=$nn(zht,C0n,28,25,15,1);Iwe=$nn(zht,C0n,28,33,15,1);r=152587890625e-16;for(e=32;e>=0;e--){Iwe[e]=r;r*=.5}t=1;for(n=24;n>=0;n--){Cwe[n]=t;t*=.5}}function lCn(n){var e,t;if(lM(yK(YDn(n,(IYn(),AFe))))){for(t=new GV(sx(uRn(n).a.Kc(),new d));dDn(t);){e=bG(K9(t),74);if(XNn(e)){if(lM(yK(YDn(e,LFe)))){return true}}}}return false}function bCn(n,e){var t,r,i;if(Gz(n.f,e)){e.b=n;r=e.c;Ctn(n.j,r,0)!=-1||ED(n.j,r);i=e.d;Ctn(n.j,i,0)!=-1||ED(n.j,i);t=e.a.b;if(t.c.length!=0){!n.i&&(n.i=new jkn(n));Lon(n.i,t)}}}function wCn(n){var e,t,r,i,a;t=n.c.d;r=t.j;i=n.d.d;a=i.j;if(r==a){return t.p=0&&T_(n.substr(e,"GMT".length),"GMT")){t[0]=e+3;return AUn(n,t,r)}if(e>=0&&T_(n.substr(e,"UTC".length),"UTC")){t[0]=e+3;return AUn(n,t,r)}return AUn(n,t,r)}function mCn(n,e){var t,r,i,a,c;a=n.g.a;c=n.g.b;for(r=new nd(n.d);r.at;a--){n[a]|=e[a-t-1]>>>c;n[a-1]=e[a-t-1]<0&&QGn(n.g,e,n.g,e+r,u);c=t.Kc();n.i+=r;for(i=0;i>4&15;a=n[r]&15;c[i++]=jnt[t];c[i++]=jnt[a]}return Tmn(c,0,c.length)}}function FCn(n){var e,t;if(n>=S0n){e=P0n+(n-S0n>>10&1023)&$1n;t=56320+(n-S0n&1023)&$1n;return String.fromCharCode(e)+(""+String.fromCharCode(t))}else{return String.fromCharCode(n&$1n)}}function _Cn(n,e){ZK();var t,r,i,a;i=bG(bG(r7(n.r,e),21),87);if(i.gc()>=2){r=bG(i.Kc().Pb(),117);t=n.u.Hc((uNn(),P8e));a=n.u.Hc(A8e);return!r.a&&!t&&(i.gc()==2||a)}else{return false}}function BCn(n,e,t,r,i){var a,c,u;a=YFn(n,e,t,r,i);u=false;while(!a){yxn(n,i,true);u=true;a=YFn(n,e,t,r,i)}u&&yxn(n,i,false);c=thn(i);if(c.c.length!=0){!!n.d&&n.d.Gg(c);BCn(n,i,t,r,c)}}function HCn(){HCn=O;O5e=new DO(G4n,0);C5e=new DO("DIRECTED",1);A5e=new DO("UNDIRECTED",2);S5e=new DO("ASSOCIATION",3);I5e=new DO("GENERALIZATION",4);P5e=new DO("DEPENDENCY",5)}function UCn(n,e){var t;if(!d0(n)){throw dm(new EM(Eee))}t=d0(n);switch(e.g){case 1:return-(n.j+n.f);case 2:return n.i-t.g;case 3:return n.j-t.f;case 4:return-(n.i+n.g)}return 0}function GCn(n,e,t){var r,i,a;r=e.Lk();a=e.md();i=r.Jk()?ZZ(n,4,r,a,null,_qn(n,r,a,G$(r,102)&&(bG(r,19).Bb&S0n)!=0),true):ZZ(n,r.tk()?2:1,r,a,r.ik(),-1,true);t?t.nj(i):t=i;return t}function qCn(n,e){var t,r;cJ(e);r=n.b.c.length;ED(n.b,e);while(r>0){t=r;r=(r-1)/2|0;if(n.a.Ne(Yq(n.b,r),e)<=0){r9(n.b,t,e);return true}r9(n.b,t,Yq(n.b,r))}r9(n.b,r,e);return true}function XCn(n,e,r,i){var a,c;a=0;if(!r){for(c=0;c=u}function zCn(n){switch(n.g){case 0:return new Vu;case 1:return new Wu;default:throw dm(new jM("No implementation is available for the width approximator "+(n.f!=null?n.f:""+n.g)))}}function WCn(n,e,t,r){var i;i=false;if(HA(r)){i=true;iq(e,t,TK(r))}if(!i){if(UA(r)){i=true;WCn(n,e,t,r)}}if(!i){if(G$(r,242)){i=true;jZ(e,t,bG(r,242))}}if(!i){throw dm(new MM(Ste))}}function QCn(n,e){var t,r,i;t=e.qi(n.a);if(t){i=Rpn((!t.b&&(t.b=new JR((rZn(),cit),Nat,t)),t.b),jie);if(i!=null){for(r=1;r<(yAn(),qut).length;++r){if(T_(qut[r],i)){return r}}}}return 0}function JCn(n,e){var t,r,i;t=e.qi(n.a);if(t){i=Rpn((!t.b&&(t.b=new JR((rZn(),cit),Nat,t)),t.b),jie);if(i!=null){for(r=1;r<(yAn(),Xut).length;++r){if(T_(Xut[r],i)){return r}}}}return 0}function YCn(n,e){var t,r,i,a;cJ(e);a=n.a.gc();if(a0?1:0;while(a.a[i]!=t){a=a.a[i];i=n.a.Ne(t.d,a.d)>0?1:0}a.a[i]=r;r.b=t.b;r.a[0]=t.a[0];r.a[1]=t.a[1];t.a[0]=null;t.a[1]=null}function iIn(n){var e,t,r,i;e=new im;t=$nn(qht,_2n,28,n.a.c.length,16,1);Yz(t,t.length);for(i=new nd(n.a);i.a0&&gUn((b3(0,t.c.length),bG(t.c[0],30)),n);t.c.length>1&&gUn(bG(Yq(t,t.c.length-1),30),n);e.Vg()}function uIn(n){uNn();var e,t;e=nV(C8e,zfn(fT(L8e,1),g1n,279,0,[O8e]));if(Qon(J1(e,n))>1){return false}t=nV(P8e,zfn(fT(L8e,1),g1n,279,0,[S8e,A8e]));if(Qon(J1(t,n))>1){return false}return true}function sIn(n,e){var t;t=z1((PP(),Ort),n);G$(t,507)?o2(Ort,n,new OA(this,e)):o2(Ort,n,this);VIn(this,e);if(e==(jj(),Frt)){this.wb=bG(this,2038);bG(e,2040)}else{this.wb=(cQ(),_rt)}}function oIn(n){var e,t,r;if(n==null){return null}e=null;for(t=0;t=N1n?"error":r>=900?"warn":r>=800?"info":"log");TQ(t,n.a);!!n.b&&AKn(e,t,n.b,"Exception: ",true)}function lIn(n,e){var t,r;r=(!n.q&&(n.q=new rm),fQ(n.q,e));if(r!=null){return r}t=e.Sg();G$(t,4)&&(t==null?(!n.q&&(n.q=new rm),b7(n.q,e)):(!n.q&&(n.q=new rm),jJ(n.q,e,t)),n);return t}function bIn(){bIn=O;rTe=new yC("P1_CYCLE_BREAKING",0);iTe=new yC("P2_LAYERING",1);aTe=new yC("P3_NODE_ORDERING",2);cTe=new yC("P4_NODE_PLACEMENT",3);uTe=new yC("P5_EDGE_ROUTING",4)}function wIn(n,e){nin();var t;if(n.c==e.c){if(n.b==e.b||usn(n.b,e.b)){t=XL(n.b)?1:-1;if(n.a&&!e.a){return t}else if(!n.a&&e.a){return-t}}return k$(n.b.g,e.b.g)}else{return bgn(n.c,e.c)}}function dIn(n,e){var t,r,i;if(EIn(n,e)){return true}for(r=new nd(e);r.a=i||e<0)throw dm(new kM(qte+e+Xte+i));if(t>=i||t<0)throw dm(new kM(Vte+t+Xte+i));e!=t?r=(a=n.Cj(t),n.qj(e,a),a):r=n.xj(t);return r}function TIn(n){var e,t,r;r=n;if(n){e=0;for(t=n.Eh();t;t=t.Eh()){if(++e>I0n){return TIn(t)}r=t;if(t==n){throw dm(new EM("There is a cycle in the containment hierarchy of "+n))}}}return r}function jIn(n){var e,t,r;r=new rfn(MZn,"[","]");for(t=n.Kc();t.Ob();){e=t.Pb();l7(r,BA(e)===BA(n)?"(this Collection)":e==null?CZn:fvn(e))}return!r.a?r.c:r.e.length==0?r.a.a:r.a.a+(""+r.e)}function EIn(n,e){var t,r;r=false;if(e.gc()<2){return false}for(t=0;t1&&(n.j.b+=n.e)}else{n.j.a+=r.a;n.j.b=t.Math.max(n.j.b,r.b);n.d.c.length>1&&(n.j.a+=n.e)}}function IIn(){IIn=O;FAe=zfn(fT(e9e,1),X4n,64,0,[(UQn(),D8e),$8e,Y8e]);KAe=zfn(fT(e9e,1),X4n,64,0,[$8e,Y8e,n9e]);_Ae=zfn(fT(e9e,1),X4n,64,0,[Y8e,n9e,D8e]);BAe=zfn(fT(e9e,1),X4n,64,0,[n9e,D8e,$8e])}function OIn(n,e,t,r){var i,a,c,u,s,o,f;c=n.c.d;u=n.d.d;if(c.j==u.j){return}f=n.b;i=c.j;s=null;while(i!=u.j){s=e==0?Qdn(i):zdn(i);a=Skn(i,f.d[i.g],t);o=Skn(s,f.d[s.g],t);hq(r,t_(a,o));i=s}}function AIn(n,e,t,r){var i,a,c,u,s;c=Ajn(n.a,e,t);u=bG(c.a,17).a;a=bG(c.b,17).a;if(r){s=bG(lIn(e,(WYn(),NDe)),10);i=bG(lIn(t,NDe),10);if(!!s&&!!i){N5(n.b,s,i);u+=n.b.i;a+=n.b.e}}return u>a}function LIn(n){var e,t,r,i,a,c,u,s,o;this.a=Gyn(n);this.b=new im;for(t=n,r=0,i=t.length;rWK(n.d).c){n.i+=n.g.c;Xpn(n.d)}else if(WK(n.d).c>WK(n.g).c){n.e+=n.d.c;Xpn(n.g)}else{n.i+=CX(n.g);n.e+=CX(n.d);Xpn(n.g);Xpn(n.d)}}}function RIn(n,e,t){var r,i,a,c;a=e.q;c=e.r;new x2((q7(),kXe),e,a,1);new x2(kXe,a,c,1);for(i=new nd(t);i.as&&(o=s/i);a>c&&(f=c/a);u=t.Math.min(o,f);n.a+=u*(e.a-n.a);n.b+=u*(e.b-n.b)}function GIn(n,e,t,r,i){var a,c;c=false;a=bG(Yq(t.b,0),27);while(Aqn(n,e,a,r,i)){c=true;VSn(t,a);if(t.b.c.length==0){break}a=bG(Yq(t.b,0),27)}t.b.c.length==0&&bEn(t.j,t);c&&DTn(e.q);return c}function qIn(n,e){v_n();var t,r,i,a;if(e.b<2){return false}a=Gkn(e,0);t=bG($6(a),8);r=t;while(a.b!=a.d.c){i=bG($6(a),8);if(ZRn(n,r,i)){return true}r=i}if(ZRn(n,r,t)){return true}return false}function XIn(n,e,t,r){var i,a;if(t==0){return!n.o&&(n.o=new ven((cYn(),int),Rnt,n,0)),W_(n.o,e,r)}return a=bG(uin((i=bG(Ron(n,16),29),!i?n.ii():i),t),69),a.wk().Ak(n,Fmn(n),t-sQ(n.ii()),e,r)}function VIn(n,e){var t;if(e!=n.sb){t=null;!!n.sb&&(t=bG(n.sb,54).Th(n,1,q7e,t));!!e&&(t=bG(e,54).Rh(n,1,q7e,t));t=tdn(n,e,t);!!t&&t.oj()}else(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,4,e,e))}function zIn(n,e){var t,r,i,a;if(e){i=Fan(e,"x");t=new op(n);Tan(t.a,(cJ(i),i));a=Fan(e,"y");r=new fp(n);Ian(r.a,(cJ(a),a))}else{throw dm(new AM("All edge sections need an end point."))}}function WIn(n,e){var t,r,i,a;if(e){i=Fan(e,"x");t=new cp(n);Can(t.a,(cJ(i),i));a=Fan(e,"y");r=new up(n);Oan(r.a,(cJ(a),a))}else{throw dm(new AM("All edge sections need a start point."))}}function QIn(n,e){var t,r,i,a,c,u,s;for(r=Bln(n),a=0,u=r.length;a>22-e;i=n.h<>22-e}else if(e<44){t=0;r=n.l<>44-e}else{t=0;r=0;i=n.l<n){throw dm(new jM("k must be smaller than n"))}else return e==0||e==n?1:n==0?0:bSn(n)/(bSn(e)*bSn(n-e))}function sOn(n,e){var t,r,i,a;t=new IN(n);while(t.g==null&&!t.c?D0(t):t.g==null||t.i!=0&&bG(t.g[t.i-1],51).Ob()){a=bG(nRn(t),58);if(G$(a,167)){r=bG(a,167);for(i=0;i>4];e[t*2+1]=qft[a&15]}return Tmn(e,0,e.length)}function jOn(n){CJ();var e,t,r;r=n.c.length;switch(r){case 0:return Mse;case 1:e=bG(zLn(new nd(n)),44);return gq(e.ld(),e.md());default:t=bG(Okn(n,$nn(vue,i1n,44,n.c.length,0,1)),173);return new By(t)}}function EOn(n){var e,t,r,i,a,c;e=new KD;t=new KD;x6(e,n);x6(t,n);while(t.b!=t.c){i=bG(Bz(t),36);for(c=new nd(i.a);c.a0&&wHn(n,t,e);return i}return I$n(n,e,t)}function IOn(){IOn=O;VJe=(JYn(),I6e);nYe=X6e;_Je=J4e;BJe=n6e;HJe=t6e;FJe=W4e;UJe=a6e;XJe=j6e;RJe=(OHn(),kJe);KJe=yJe;WJe=PJe;YJe=OJe;QJe=CJe;JJe=IJe;GJe=TJe;qJe=EJe;zJe=SJe;ZJe=AJe;eYe=NJe;xJe=mJe}function OOn(n,e){var t,r,i,a,c;if(n.e<=e){return n.g}if(v3(n,n.g,e)){return n.g}a=n.r;r=n.g;c=n.r;i=(a-r)/2+r;while(r+11&&(n.e.b+=n.a)}else{n.e.a+=r.a;n.e.b=t.Math.max(n.e.b,r.b);n.d.c.length>1&&(n.e.a+=n.a)}}function KOn(n){var e,t,r,i;i=n.i;e=i.b;r=i.j;t=i.g;switch(i.a.g){case 0:t.a=(n.g.b.o.a-r.a)/2;break;case 1:t.a=e.d.n.a+e.d.a.a;break;case 2:t.a=e.d.n.a+e.d.a.a-r.a;break;case 3:t.b=e.d.n.b+e.d.a.b}}function FOn(n,e,t){var r,i,a;for(i=new GV(sx(Wgn(t).a.Kc(),new d));dDn(i);){r=bG(K9(i),18);if(!(!j9(r)&&!(!j9(r)&&r.c.i.c==r.d.i.c))){continue}a=hRn(n,r,t,new Nk);a.c.length>1&&(Tm(e.c,a),true)}}function _On(n,e,t,r,i){if(rr&&(n.a=r);n.bi&&(n.b=i);return n}function BOn(n){if(G$(n,143)){return kKn(bG(n,143))}else if(G$(n,233)){return Pvn(bG(n,233))}else if(G$(n,23)){return nOn(bG(n,23))}else{throw dm(new jM(Ite+jIn(new $M(zfn(fT(kce,1),jZn,1,5,[n])))))}}function HOn(n,e,t,r,i){var a,c,u;a=true;for(c=0;c>>i|t[c+r+1]<>>i;++c}return a}function UOn(n,e,t,r){var i,a,c;if(e.k==(YIn(),tEe)){for(a=new GV(sx(Qgn(e).a.Kc(),new d));dDn(a);){i=bG(K9(a),18);c=i.c.i.k;if(c==tEe&&n.c.a[i.c.i.c.p]==r&&n.c.a[e.c.p]==t){return true}}}return false}function GOn(n,e){var t,r,i,a;e&=63;t=n.h&h0n;if(e<22){a=t>>>e;i=n.m>>e|t<<22-e;r=n.l>>e|n.m<<22-e}else if(e<44){a=0;i=t>>>e-22;r=n.m>>e-22|n.h<<44-e}else{a=0;i=0;r=t>>>e-44}return M$(r&f0n,i&f0n,a&h0n)}function qOn(n,e,t,r){var i;this.b=r;this.e=n==(ucn(),WUe);i=e[t];this.d=tX(qht,[XZn,_2n],[183,28],16,[i.length,i.length],2);this.a=tX(Ght,[XZn,z1n],[53,28],15,[i.length,i.length],2);this.c=new $Pn(e,t)}function XOn(n){var e,t,r;n.k=new R2((UQn(),zfn(fT(e9e,1),X4n,64,0,[Z8e,D8e,$8e,Y8e,n9e])).length,n.j.c.length);for(r=new nd(n.j);r.a=t){rAn(n,e,r.p);return true}}return false}function JOn(n,e,t,r){var i,a,c,u,s,o;c=t.length;a=0;i=-1;o=Crn((w3(e,n.length+1),n.substr(e)),(fB(),wwe));for(u=0;ua&&$z(o,Crn(t[u],wwe))){i=u;a=s}}i>=0&&(r[0]=e+a);return i}function YOn(n){var e;if((n.Db&64)!=0)return oOn(n);e=new vx(Kee);!n.a||tL(tL((e.a+=' "',e),n.a),'"');tL(Kj(tL(Kj(tL(Kj(tL(Kj((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")");return e.a}function ZOn(n,e,t){var r,i,a,c,u;u=ZKn(n.e.Dh(),e);i=bG(n.g,124);r=0;for(c=0;ct){return sLn(n,t,"start index")}if(e<0||e>t){return sLn(e,t,"end index")}return RBn("end index (%s) must not be less than start index (%s)",zfn(fT(kce,1),jZn,1,5,[Bwn(e),Bwn(n)]))}function tAn(n,e){var t,r,i,a;for(r=0,i=n.length;r0&&aAn(n,a,t))}}e.p=0}function cAn(n){var e;this.c=new vS;this.f=n.e;this.e=n.d;this.i=n.g;this.d=n.c;this.b=n.b;this.k=n.j;this.a=n.a;!n.i?this.j=(e=bG(Pj(k3e),9),new aB(e,bG(PF(e,e.length),9),0)):this.j=n.i;this.g=n.f}function uAn(n){var e,t,r,i;e=IQ(tL(new vx("Predicates."),"and"),40);t=true;for(i=new td(n);i.b0?u[c-1]:$nn(Yje,e6n,10,0,0,1);i=u[c];o=c=0?n.ki(i):YLn(n,r)}else{throw dm(new jM(Uee+r.xe()+Gee))}}else{wdn(n,t,r)}}function bAn(n){var e,t;t=null;e=false;if(G$(n,211)){e=true;t=bG(n,211).a}if(!e){if(G$(n,263)){e=true;t=""+bG(n,263).a}}if(!e){if(G$(n,493)){e=true;t=""+bG(n,493).a}}if(!e){throw dm(new MM(Ste))}return t}function wAn(n,e,t){var r,i,a,c,u,s;s=ZKn(n.e.Dh(),e);r=0;u=n.i;i=bG(n.g,124);for(c=0;c=n.d.b.c.length){e=new pQ(n.d);e.p=r.p-1;ED(n.d.b,e);t=new pQ(n.d);t.p=r.p;ED(n.d.b,t)}h2(r,bG(Yq(n.d.b,r.p),30))}}function SAn(n,e,t){var r,i,a;if(!n.b[e.g]){n.b[e.g]=true;r=t;!r&&(r=new R7);hq(r.b,e);for(a=n.a[e.g].Kc();a.Ob();){i=bG(a.Pb(),65);i.b!=e&&SAn(n,i.b,r);i.c!=e&&SAn(n,i.c,r);hq(r.a,i)}return r}return null}function PAn(n){switch(n.g){case 0:case 1:case 2:return UQn(),D8e;case 3:case 4:case 5:return UQn(),Y8e;case 6:case 7:case 8:return UQn(),n9e;case 9:case 10:case 11:return UQn(),$8e;default:return UQn(),Z8e}}function CAn(n,e){var t;if(n.c.length==0){return false}t=$pn((b3(0,n.c.length),bG(n.c[0],18)).c.i);a2();if(t==(rMn(),_Be)||t==FBe){return true}return l9(rY(new gX(null,new d3(n,16)),new Ua),new bv(e))}function IAn(n,e){if(G$(e,207)){return UN(n,bG(e,27))}else if(G$(e,193)){return GN(n,bG(e,123))}else if(G$(e,452)){return HN(n,bG(e,166))}else{throw dm(new jM(Ite+jIn(new $M(zfn(fT(kce,1),jZn,1,5,[e])))))}}function OAn(n,e,t){var r,i;this.f=n;r=bG(fQ(n.b,e),260);i=!r?0:r.a;u7(t,i);if(t>=(i/2|0)){this.e=!r?null:r.c;this.d=i;while(t++0){Orn(this)}}this.b=e;this.a=null}function AAn(n,e){var t,r;e.a?nFn(n,e):(t=bG(IS(n.b,e.b),60),!!t&&t==n.a[e.b.f]&&!!t.a&&t.a!=e.b.a&&t.c.Fc(e.b),r=bG(CS(n.b,e.b),60),!!r&&n.a[r.f]==e.b&&!!r.a&&r.a!=e.b.a&&e.b.c.Fc(r),wD(n.b,e.b),undefined)}function LAn(n,e){var t,r;t=bG(xJ(n.b,e),127);if(bG(bG(r7(n.r,e),21),87).dc()){t.n.b=0;t.n.c=0;return}t.n.b=n.C.b;t.n.c=n.C.c;n.A.Hc((emn(),b9e))&&jBn(n,e);r=$yn(n,e);P_n(n,e)==(Zkn(),b8e)&&(r+=2*n.w);t.a.a=r}function NAn(n,e){var t,r;t=bG(xJ(n.b,e),127);if(bG(bG(r7(n.r,e),21),87).dc()){t.n.d=0;t.n.a=0;return}t.n.d=n.C.d;t.n.a=n.C.a;n.A.Hc((emn(),b9e))&&EBn(n,e);r=Nyn(n,e);P_n(n,e)==(Zkn(),b8e)&&(r+=2*n.w);t.a.b=r}function $An(n,e){var t,r,i,a;a=new im;for(r=new nd(e);r.ar&&(w3(e-1,n.length),n.charCodeAt(e-1)<=32)){--e}return r>0||et.a&&(r.Hc((iPn(),a4e))?i=(e.a-t.a)/2:r.Hc(u4e)&&(i=e.a-t.a));e.b>t.b&&(r.Hc((iPn(),o4e))?a=(e.b-t.b)/2:r.Hc(s4e)&&(a=e.b-t.b));tIn(n,i,a)}function uLn(n,e,t,r,i,a,c,u,s,o,f,h,l){G$(n.Cb,90)&&SLn(S9(bG(n.Cb,90)),4);Qun(n,t);n.f=c;egn(n,u);rgn(n,s);ngn(n,o);tgn(n,f);Tdn(n,h);Ngn(n,l);kdn(n,true);Lan(n,i);n.Zk(a);Ubn(n,e);r!=null&&(n.i=null,vun(n,r))}function sLn(n,e,t){if(n<0){return RBn(TZn,zfn(fT(kce,1),jZn,1,5,[t,Bwn(n)]))}else if(e<0){throw dm(new jM(EZn+e))}else{return RBn("%s (%s) must not be greater than size (%s)",zfn(fT(kce,1),jZn,1,5,[t,Bwn(n),Bwn(e)]))}}function oLn(n,e,t,r,i,a){var c,u,s,o;c=r-t;if(c<7){rvn(e,t,r,a);return}s=t+i;u=r+i;o=s+(u-s>>1);oLn(e,n,s,o,-i,a);oLn(e,n,o,u,-i,a);if(a.Ne(n[o-1],n[o])<=0){while(t=0?n.bi(a,t):vRn(n,i,t)}else{throw dm(new jM(Uee+i.xe()+Gee))}}else{vvn(n,r,i,t)}}function dLn(n){var e,t;if(n.f){while(n.n>0){e=bG(n.k.Xb(n.n-1),76);t=e.Lk();if(G$(t,102)&&(bG(t,19).Bb&Wee)!=0&&(!n.e||t.pk()!=R7e||t.Lj()!=0)&&e.md()!=null){return true}else{--n.n}}return false}else{return n.n>0}}function gLn(n){var e,t,r,i;t=bG(n,54)._h();if(t){try{r=null;e=Ixn((PP(),Ort),_Un(Ivn(t)));if(e){i=e.ai();!!i&&(r=i.Fl(pM(t.e)))}if(!!r&&r!=n){return gLn(r)}}catch(a){a=Ofn(a);if(!G$(a,63))throw dm(a)}}return n}function vLn(n,e,t){var r,i,a;t.Ug("Remove overlaps",1);t.dh(e,h7n);r=bG(YDn(e,(AK(),FQe)),27);n.f=r;n.a=hMn(bG(YDn(e,(IOn(),ZJe)),300));i=MK(YDn(e,(JYn(),X6e)));ow(n,(cJ(i),i));a=WFn(r);BWn(n,e,a,t);t.dh(e,b7n)}function pLn(n){var e,t,r;if(lM(yK(YDn(n,(JYn(),F4e))))){r=new im;for(t=new GV(sx(uRn(n).a.Kc(),new d));dDn(t);){e=bG(K9(t),74);XNn(e)&&lM(yK(YDn(e,_4e)))&&(Tm(r.c,e),true)}return r}else{return dZ(),dZ(),lbe}}function mLn(n){if(!n){return Xy(),mhe}var e=n.valueOf?n.valueOf():n;if(e!==n){var r=jhe[typeof e];return r?r(e):Zbn(typeof e)}else if(n instanceof Array||n instanceof t.Array){return new Ob(n)}else{return new Nb(n)}}function kLn(n,e,r){var i,a,c;c=n.o;i=bG(xJ(n.p,r),252);a=i.i;a.b=yNn(i);a.a=kNn(i);a.b=t.Math.max(a.b,c.a);a.b>c.a&&!e&&(a.b=c.a);a.c=-(a.b-c.a)/2;switch(r.g){case 1:a.d=-a.a;break;case 3:a.d=c.b}rqn(i);oqn(i)}function yLn(n,e,r){var i,a,c;c=n.o;i=bG(xJ(n.p,r),252);a=i.i;a.b=yNn(i);a.a=kNn(i);a.a=t.Math.max(a.a,c.b);a.a>c.b&&!e&&(a.a=c.b);a.d=-(a.a-c.b)/2;switch(r.g){case 4:a.c=-a.b;break;case 2:a.c=c.a}rqn(i);oqn(i)}function MLn(n,e){var t,r,i,a,c;if(e.dc()){return}i=bG(e.Xb(0),131);if(e.gc()==1){mFn(n,i,i,1,0,e);return}t=1;while(t0){try{i=TUn(e,T1n,pZn)}catch(a){a=Ofn(a);if(G$(a,130)){r=a;throw dm(new Ltn(r))}else throw dm(a)}}t=(!n.a&&(n.a=new Qp(n)),n.a);return i=0?bG(Yin(t,i),58):null}function CLn(n,e){if(n<0){return RBn(TZn,zfn(fT(kce,1),jZn,1,5,["index",Bwn(n)]))}else if(e<0){throw dm(new jM(EZn+e))}else{return RBn("%s (%s) must be less than size (%s)",zfn(fT(kce,1),jZn,1,5,["index",Bwn(n),Bwn(e)]))}}function ILn(n){var e,t,r,i,a;if(n==null){return CZn}a=new rfn(MZn,"[","]");for(t=n,r=0,i=t.length;r=0?n.Lh(t,true,true):r$n(n,i,true),160));bG(r,220).Zl(e)}else{throw dm(new jM(Uee+e.xe()+Gee))}}function ZLn(n){var e,r;if(n>-0x800000000000&&n<0x800000000000){if(n==0){return 0}e=n<0;e&&(n=-n);r=c0(t.Math.floor(t.Math.log(n)/.6931471805599453));(!e||n!=t.Math.pow(2,r))&&++r;return r}return kfn(Xon(n))}function nNn(n){var e,t,r,i,a,c,u;a=new JL;for(t=new nd(n);t.a2&&u.e.b+u.j.b<=2){i=u;r=c}a.a.zc(i,a);i.q=r}return a}function eNn(n,e,t){t.Ug("Eades radial",1);t.dh(e,b7n);n.d=bG(YDn(e,(AK(),FQe)),27);n.c=bM(MK(YDn(e,(IOn(),zJe))));n.e=hMn(bG(YDn(e,ZJe),300));n.a=qvn(bG(YDn(e,eYe),434));n.b=LSn(bG(YDn(e,GJe),354));zEn(n);t.dh(e,b7n)}function tNn(n,e){e.Ug("Target Width Setter",1);if(jnn(n,(A_n(),_Ze))){Pyn(n,(vBn(),VYe),MK(YDn(n,_Ze)))}else{throw dm(new IM("A target width has to be set if the TargetWidthWidthApproximator should be used."))}e.Vg()}function rNn(n,e){var t,r,i;r=new yMn(n);Yon(r,e);Ehn(r,(WYn(),aDe),e);Ehn(r,(IYn(),m_e),(FPn(),m8e));Ehn(r,DKe,(aMn(),F3e));Vb(r,(YIn(),nEe));t=new vOn;l2(t,r);KLn(t,(UQn(),n9e));i=new vOn;l2(i,r);KLn(i,$8e);return r}function iNn(n){switch(n.g){case 0:return new Yy((ucn(),zUe));case 1:return new pl;case 2:return new ml;default:throw dm(new jM("No implementation is available for the crossing minimizer "+(n.f!=null?n.f:""+n.g)))}}function aNn(n,e){var t,r,i,a,c;n.c[e.p]=true;ED(n.a,e);for(c=new nd(e.j);c.a=a){c.$b()}else{i=c.Kc();for(r=0;r0?VM():c<0&&pNn(n,e,-c);return true}else{return false}}function kNn(n){var e,t,r,i,a,c,u;u=0;if(n.b==0){c=xMn(n,true);e=0;for(r=c,i=0,a=r.length;i0){u+=t;++e}}e>1&&(u+=n.c*(e-1))}else{u=gT(Psn(iY(tY(Xz(n.a),new In),new On)))}return u>0?u+n.n.d+n.n.a:0}function yNn(n){var e,t,r,i,a,c,u;u=0;if(n.b==0){u=gT(Psn(iY(tY(Xz(n.a),new Pn),new Cn)))}else{c=RMn(n,true);e=0;for(r=c,i=0,a=r.length;i0){u+=t;++e}}e>1&&(u+=n.c*(e-1))}return u>0?u+n.n.b+n.n.c:0}function MNn(n){var e,t;if(n.c.length!=2){throw dm(new EM("Order only allowed for two paths."))}e=(b3(0,n.c.length),bG(n.c[0],18));t=(b3(1,n.c.length),bG(n.c[1],18));if(e.d.i!=t.c.i){n.c.length=0;Tm(n.c,t);Tm(n.c,e)}}function TNn(n,e,t){var r;jN(t,e.g,e.f);EN(t,e.i,e.j);for(r=0;r<(!e.a&&(e.a=new gz(snt,e,10,11)),e.a).i;r++){TNn(n,bG(Yin((!e.a&&(e.a=new gz(snt,e,10,11)),e.a),r),27),bG(Yin((!t.a&&(t.a=new gz(snt,t,10,11)),t.a),r),27))}}function jNn(n,e){var r,i,a,c;c=bG(xJ(n.b,e),127);r=c.a;for(a=bG(bG(r7(n.r,e),21),87).Kc();a.Ob();){i=bG(a.Pb(),117);!!i.c&&(r.a=t.Math.max(r.a,oq(i.c)))}if(r.a>0){switch(e.g){case 2:c.n.c=n.s;break;case 4:c.n.b=n.s}}}function ENn(n,e){var t,r,i;t=bG(lIn(e,(oGn(),Jye)),17).a-bG(lIn(n,Jye),17).a;if(t==0){r=r_(_$(bG(lIn(n,(Tun(),lMe)),8)),bG(lIn(n,bMe),8));i=r_(_$(bG(lIn(e,lMe),8)),bG(lIn(e,bMe),8));return bgn(r.a*r.b,i.a*i.b)}return t}function SNn(n,e){var t,r,i;t=bG(lIn(e,(eqn(),OWe)),17).a-bG(lIn(n,OWe),17).a;if(t==0){r=r_(_$(bG(lIn(n,(DQn(),Pze)),8)),bG(lIn(n,Cze),8));i=r_(_$(bG(lIn(e,Pze),8)),bG(lIn(e,Cze),8));return bgn(r.a*r.b,i.a*i.b)}return t}function PNn(n){var e,t;t=new nT;t.a+="e_";e=pfn(n);e!=null&&(t.a+=""+e,t);if(!!n.c&&!!n.d){tL((t.a+=" ",t),ajn(n.c));tL(eL((t.a+="[",t),n.c.i),"]");tL((t.a+=J4n,t),ajn(n.d));tL(eL((t.a+="[",t),n.d.i),"]")}return t.a}function CNn(n){switch(n.g){case 0:return new Cl;case 1:return new Il;case 2:return new Sl;case 3:return new El;default:throw dm(new jM("No implementation is available for the layout phase "+(n.f!=null?n.f:""+n.g)))}}function INn(n,e,r,i,a){var c;c=0;switch(a.g){case 1:c=t.Math.max(0,e.b+n.b-(r.b+i));break;case 3:c=t.Math.max(0,-n.b-i);break;case 2:c=t.Math.max(0,-n.a-i);break;case 4:c=t.Math.max(0,e.a+n.a-(r.a+i))}return c}function ONn(n,e,t){var r,i,a,c,u;if(t){i=t.a.length;r=new WV(i);for(u=(r.b-r.a)*r.c<0?(NP(),Fht):new BD(r);u.Ob();){c=bG(u.Pb(),17);a=j6(t,c.a);vte in a.a||pte in a.a?pHn(n,a,e):tYn(n,a,e);WD(bG(fQ(n.b,Imn(a)),74))}}}function ANn(n){var e,t;switch(n.b){case-1:{return true}case 0:{t=n.t;if(t>1||t==-1){n.b=-1;return true}else{e=pEn(n);if(!!e&&(LP(),e.lk()==uie)){n.b=-1;return true}else{n.b=1;return false}}}default:case 1:{return false}}}function LNn(n,e){var t,r,i,a;OYn(n);if(n.c!=0||n.a!=123)throw dm(new NM(oZn((c$(),hre))));a=e==112;r=n.d;t=hR(n.i,125,r);if(t<0)throw dm(new NM(oZn((c$(),lre))));i=o1(n.i,r,t);n.d=t+1;return sen(i,a,(n.e&512)==512)}function NNn(n){var e,t,r,i,a,c,u;r=n.a.c.length;if(r>0){c=n.c.d;u=n.d.d;i=jD(r_(new PO(u.a,u.b),c),1/(r+1));a=new PO(c.a,c.b);for(t=new nd(n.a);t.a=0&&r=0?n.Lh(t,true,true):r$n(n,i,true),160));return bG(r,220).Wl(e)}else{throw dm(new jM(Uee+e.xe()+Xee))}}function _Nn(){$P();var n;if(Uct)return bG(Ixn((PP(),Ort),Nie),2038);PL(vue,new Af);SWn();n=bG(G$(z1((PP(),Ort),Nie),560)?z1(Ort,Nie):new kJ,560);Uct=true;VYn(n);lZn(n);jJ((MP(),Krt),n,new Xo);o2(Ort,Nie,n);return n}function BNn(n,e){var t,r,i,a;n.j=-1;if(bN(n.e)){t=n.i;a=n.i!=0;Y9(n,e);r=new Utn(n.e,3,n.c,null,e,t,a);i=e.zl(n.e,n.c,null);i=SPn(n,e,i);if(!i){Pon(n.e,r)}else{i.nj(r);i.oj()}}else{Y9(n,e);i=e.zl(n.e,n.c,null);!!i&&i.oj()}}function HNn(n,e){var t,r,i;i=0;r=e[0];if(r>=n.length){return-1}t=(w3(r,n.length),n.charCodeAt(r));while(t>=48&&t<=57){i=i*10+(t-48);++r;if(r>=n.length){break}t=(w3(r,n.length),n.charCodeAt(r))}r>e[0]?e[0]=r:i=-1;return i}function UNn(n){var e,r,i,a,c;a=bG(n.a,17).a;c=bG(n.b,17).a;r=a;i=c;e=t.Math.max(t.Math.abs(a),t.Math.abs(c));if(a<=0&&a==c){r=0;i=c-1}else{if(a==-e&&c!=e){r=c;i=a;c>=0&&++r}else{r=-c;i=a}}return new nA(Bwn(r),Bwn(i))}function GNn(n,e,t,r){var i,a,c,u,s,o;for(i=0;i=0&&o>=0&&s=n.i)throw dm(new kM(qte+e+Xte+n.i));if(t>=n.i)throw dm(new kM(Vte+t+Xte+n.i));r=n.g[t];if(e!=t){e>16);e=r>>16&16;t=16-e;n=n>>e;r=n-256;e=r>>16&8;t+=e;n<<=e;r=n-T0n;e=r>>16&4;t+=e;n<<=e;r=n-VZn;e=r>>16&2;t+=e;n<<=e;r=n>>14;e=r&~(r>>1);return t+2-e}}function QNn(n){vZ();var e,t,r,i;nye=new im;Zke=new rm;Yke=new im;e=(!n.a&&(n.a=new gz(snt,n,10,11)),n.a);tJn(e);for(i=new _D(e);i.e!=i.i.gc();){r=bG(iyn(i),27);if(Ctn(nye,r,0)==-1){t=new im;ED(Yke,t);wkn(r,t)}}return Yke}function JNn(n,e,t){var r,i,a,c;n.a=t.b.d;if(G$(e,326)){i=t_n(bG(e,74),false,false);a=NOn(i);r=new Ud(n);Y8(a,r);wqn(a,i);e.of((JYn(),U4e))!=null&&Y8(bG(e.of(U4e),75),r)}else{c=bG(e,422);c.rh(c.nh()+n.a.a);c.sh(c.oh()+n.a.b)}}function YNn(n,e){var t,r,i;i=new im;for(r=Gkn(e.a,0);r.b!=r.d.c;){t=bG($6(r),65);t.c.g==n.g&&BA(lIn(t.b,(eqn(),_We)))!==BA(lIn(t.c,_We))&&!l9(new gX(null,new d3(i,16)),new Ev(t))&&(Tm(i.c,t),true)}g$(i,new Ic);return i}function ZNn(n,e,t){var r,i,a,c;if(G$(e,153)&&G$(t,153)){a=bG(e,153);c=bG(t,153);return n.a[a.a][c.a]+n.a[c.a][a.a]}else if(G$(e,250)&&G$(t,250)){r=bG(e,250);i=bG(t,250);if(r.a==i.a){return bG(lIn(i.a,(oGn(),Jye)),17).a}}return 0}function n$n(n,e){var r,i,a,c,u,s,o,f;f=bM(MK(lIn(e,(IYn(),J_e))));o=n[0].n.a+n[0].o.a+n[0].d.c+f;for(s=1;s=0){return t}u=KQ(r_(new PO(c.c+c.b/2,c.d+c.a/2),new PO(a.c+a.b/2,a.d+a.a/2)));return-(lGn(a,c)-1)*u}function t$n(n,e,t){var r;ES(new gX(null,(!t.a&&(t.a=new gz(U7e,t,6,6)),new d3(t.a,16))),new YO(n,e));ES(new gX(null,(!t.n&&(t.n=new gz(unt,t,1,7)),new d3(t.n,16))),new ZO(n,e));r=bG(YDn(t,(JYn(),U4e)),75);!!r&&gsn(r,n,e)}function r$n(n,e,t){var r,i,a;a=szn((yAn(),Vut),n.Dh(),e);if(a){LP();bG(a,69).xk()||(a=q3(Ktn(Vut,a)));i=(r=n.Ih(a),bG(r>=0?n.Lh(r,true,true):r$n(n,a,true),160));return bG(i,220).Sl(e,t)}else{throw dm(new jM(Uee+e.xe()+Xee))}}function i$n(n,e,t,r){var i,a,c,u,s;i=n.d[e];if(i){a=i.g;s=i.i;if(r!=null){for(u=0;u=t){r=e;o=(s.c+s.a)/2;c=o-t;if(s.c<=o-t){i=new DU(s.c,c);WX(n,r++,i)}u=o+t;if(u<=s.a){a=new DU(u,s.a);l3(r,n.c.length);MC(n.c,r,a)}}}function l$n(n,e,t){var r,i,a,c,u,s;if(!e.dc()){i=new vS;for(s=e.Kc();s.Ob();){u=bG(s.Pb(),40);jJ(n.a,Bwn(u.g),Bwn(t));for(c=(r=Gkn(new Pv(u).a.d,0),new Cv(r));tE(c.a);){a=bG($6(c.a),65).c;w8(i,a,i.c.b,i.c)}}l$n(n,i,t+1)}}function b$n(n){var e;if(!n.c&&n.g==null){n.d=n.bj(n.f);cen(n,n.d);e=n.d}else{if(n.g==null){return true}else if(n.i==0){return false}else{e=bG(n.g[n.i-1],51)}}if(e==n.b&&null.Vm>=null.Um()){nRn(n);return b$n(n)}else{return e.Ob()}}function w$n(n){this.a=n;if(n.c.i.k==(YIn(),nEe)){this.c=n.c;this.d=bG(lIn(n.c.i,(WYn(),cDe)),64)}else if(n.d.i.k==nEe){this.c=n.d;this.d=bG(lIn(n.d.i,(WYn(),cDe)),64)}else{throw dm(new jM("Edge "+n+" is not an external edge."))}}function d$n(n,e){var t,r,i;i=n.b;n.b=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,3,i,n.b));if(!e){Qun(n,null);$an(n,0);zcn(n,null)}else if(e!=n){Qun(n,e.zb);$an(n,e.d);t=(r=e.c,r==null?e.zb:r);zcn(n,t==null||T_(t,e.zb)?null:t)}}function g$n(n,e){var t;this.e=(iQ(),nQ(n),iQ(),Opn(n));this.c=(nQ(e),Opn(e));GD(this.e.Rd().dc()==this.c.Rd().dc());this.d=evn(this.e);this.b=evn(this.c);t=tX(kce,[XZn,jZn],[5,1],5,[this.e.Rd().gc(),this.c.Rd().gc()],2);this.a=t;mcn(this)}function v$n(n){var e=(!Ufe&&(Ufe=TJn()),Ufe);var t=n.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,(function(n){return Y1(n,e)}));return'"'+t+'"'}function p$n(n,e,r,i,a,c){var u,s,o,f,h;if(a==0){return}if(BA(n)===BA(r)){n=n.slice(e,e+a);e=0}o=r;for(s=e,f=e+a;s=c)throw dm(new m_(e,c));i=t[e];if(c==1){r=null}else{r=$nn(utt,Bre,424,c-1,0,1);QGn(t,0,r,0,e);a=c-e-1;a>0&&QGn(t,e+1,r,e,a)}Lkn(n,r);WAn(n,e,i);return i}function M$n(n){var e,t;if(n.f){while(n.n0?a=$vn(t):a=Wdn($vn(t))}Pyn(e,j_e,a)}function P$n(n,e){var t;e.Ug("Partition preprocessing",1);t=bG(v8(tY(wrn(tY(new gX(null,new d3(n.a,16)),new Tr),new jr),new Er),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[(Sbn(),Lde)]))),15);ES(t.Oc(),new Sr);e.Vg()}function C$n(n,e){var t,r,i,a,c;c=n.j;e.a!=e.b&&g$(c,new ra);i=c.c.length/2|0;for(r=0;r0&&wHn(n,t,e);return a}else if(r.a!=null){wHn(n,e,t);return-1}else if(i.a!=null){wHn(n,t,e);return 1}return 0}function O$n(n,e){var t,r,i,a,c;i=e.b.b;n.a=$nn(uue,B3n,15,i,0,1);n.b=$nn(qht,_2n,28,i,16,1);for(c=Gkn(e.b,0);c.b!=c.d.c;){a=bG($6(c),40);n.a[a.g]=new vS}for(r=Gkn(e.a,0);r.b!=r.d.c;){t=bG($6(r),65);n.a[t.b.g].Fc(t);n.a[t.c.g].Fc(t)}}function A$n(n,e){var t,r,i,a;if(n.Pj()){t=n.Ej();a=n.Qj();++n.j;n.qj(t,n.Zi(t,e));r=n.Ij(3,null,e,t,a);if(n.Mj()){i=n.Nj(e,null);if(!i){n.Jj(r)}else{i.nj(r);i.oj()}}else{n.Jj(r)}}else{jQ(n,e);if(n.Mj()){i=n.Nj(e,null);!!i&&i.oj()}}}function L$n(n,e,t){var r,i,a;if(n.Pj()){a=n.Qj();udn(n,e,t);r=n.Ij(3,null,t,e,a);if(n.Mj()){i=n.Nj(t,null);n.Tj()&&(i=n.Uj(t,i));if(!i){n.Jj(r)}else{i.nj(r);i.oj()}}else{n.Jj(r)}}else{udn(n,e,t);if(n.Mj()){i=n.Nj(t,null);!!i&&i.oj()}}}function N$n(n,e){var t,r,i,a,c;c=ZKn(n.e.Dh(),e);i=new vo;t=bG(n.g,124);for(a=n.i;--a>=0;){r=t[a];c.am(r.Lk())&&cen(i,r)}!LJn(n,i)&&bN(n.e)&&rk(n,e.Jk()?ZZ(n,6,e,(dZ(),lbe),null,-1,false):ZZ(n,e.tk()?2:1,e,null,null,-1,false))}function $$n(n,e){var t,r,i,a,c;if(n.a==(HIn(),d$e)){return true}a=e.a.c;t=e.a.c+e.a.b;if(e.j){r=e.A;c=r.c.c.a-r.o.a/2;i=a-(r.n.a+r.o.a);if(i>c){return false}}if(e.q){r=e.C;c=r.c.c.a-r.o.a/2;i=r.n.a-t;if(i>c){return false}}return true}function D$n(n){u2();var e,t,r,i,a,c,u;t=new b8;for(i=new nd(n.e.b);i.a1?n.e*=bM(n.a):n.f/=bM(n.a);qbn(n);Zmn(n);OBn(n);Ehn(n.b,(oyn(),Bke),n.g)}function B$n(n,e,t){var r,i,a,c,u,s;r=0;s=t;if(!e){r=t*(n.c.length-1);s*=-1}for(a=new nd(n);a.a=0?n.Ah(null):n.Ph().Th(n,-1-e,null,null));n.Bh(bG(i,54),t);!!r&&r.oj();n.vh()&&n.wh()&&t>-1&&Pon(n,new vz(n,9,t,a,i));return i}}}return a}function rDn(n,e){var t,r,i,a,c;a=n.b.Ce(e);r=(t=n.a.get(a),t==null?$nn(kce,jZn,1,0,5,1):t);for(c=0;c>5;if(i>=n.d){return n.e<0}t=n.a[i];e=1<<(e&31);if(n.e<0){r=qsn(n);if(i>16)),15).dd(a);if(u0){!(dN(n.a.c)&&e.n.d)&&!(gN(n.a.c)&&e.n.b)&&(e.g.d+=t.Math.max(0,i/2-.5));!(dN(n.a.c)&&e.n.a)&&!(gN(n.a.c)&&e.n.c)&&(e.g.a-=i-1)}}}function pDn(n){var e,r,i,a,c;a=new im;c=YUn(n,a);e=bG(lIn(n,(WYn(),NDe)),10);if(e){for(i=new nd(e.j);i.a>e;a=n.m>>e|t<<22-e;i=n.l>>e|n.m<<22-e}else if(e<44){c=r?h0n:0;a=t>>e-22;i=n.m>>e-22|t<<44-e}else{c=r?h0n:0;a=r?f0n:0;i=t>>e-44}return M$(i&f0n,a&f0n,c&h0n)}function MDn(n){var e,r,i,a,c,u;this.c=new im;this.d=n;i=y0n;a=y0n;e=M0n;r=M0n;for(u=Gkn(n,0);u.b!=u.d.c;){c=bG($6(u),8);i=t.Math.min(i,c.a);a=t.Math.min(a,c.b);e=t.Math.max(e,c.a);r=t.Math.max(r,c.b)}this.a=new yY(i,a,e-i,r-a)}function TDn(n,e){var t,r,i,a,c,u;for(a=new nd(n.b);a.a0&&G$(e,44)){n.a._j();o=bG(e,44);s=o.ld();a=s==null?0:Vun(s);c=sF(n.a,a);t=n.a.d[c];if(t){r=bG(t.g,379);f=t.i;for(u=0;u=2){r=a.Kc();e=MK(r.Pb());while(r.Ob()){c=e;e=MK(r.Pb());i=t.Math.min(i,(cJ(e),e)-(cJ(c),c))}}return i}function BDn(n,e){var t,r,i;i=new im;for(r=Gkn(e.a,0);r.b!=r.d.c;){t=bG($6(r),65);t.b.g==n.g&&!T_(t.b.c,B9n)&&BA(lIn(t.b,(eqn(),_We)))!==BA(lIn(t.c,_We))&&!l9(new gX(null,new d3(i,16)),new Sv(t))&&(Tm(i.c,t),true)}g$(i,new Nc);return i}function HDn(n,e){var t,r,i;if(BA(e)===BA(nQ(n))){return true}if(!G$(e,15)){return false}r=bG(e,15);i=n.gc();if(i!=r.gc()){return false}if(G$(r,59)){for(t=0;t0&&(i=t);for(c=new nd(n.f.e);c.a0){e-=1;t-=1}else{if(r>=0&&i<0){e+=1;t+=1}else{if(r>0&&i>=0){e-=1;t+=1}else{e+=1;t-=1}}}}}return new nA(Bwn(e),Bwn(t))}function uxn(n,e){if(n.ce.c){return 1}else if(n.be.b){return 1}else if(n.a!=e.a){return Vun(n.a)-Vun(e.a)}else if(n.d==(i5(),IGe)&&e.d==CGe){return-1}else if(n.d==CGe&&e.d==IGe){return 1}return 0}function sxn(n,e){var t,r,i,a,c;a=e.a;a.c.i==e.b?c=a.d:c=a.c;a.c.i==e.b?r=a.c:r=a.d;i=kpn(n.a,c,r);if(i>0&&i<_3n){t=WDn(n.a,r.i,i,n.c);Win(n.a,r.i,-t);return t>0}else if(i<0&&-i<_3n){t=QDn(n.a,r.i,-i,n.c);Win(n.a,r.i,t);return t>0}return false}function oxn(n,e,t,r){var i,a,c,u,s,o,f,h;i=(e-n.d)/n.c.c.length;a=0;n.a+=t;n.d=e;for(h=new nd(n.c);h.a>24}return c}function hxn(n){if(n.ze()){var e=n.c;e.Ae()?n.o="["+e.n:!e.ze()?n.o="[L"+e.xe()+";":n.o="["+e.xe();n.b=e.we()+"[]";n.k=e.ye()+"[]";return}var t=n.j;var r=n.d;r=r.split("/");n.o=gmn(".",[t,gmn("$",r)]);n.b=gmn(".",[t,gmn(".",r)]);n.k=r[r.length-1]}function lxn(n,e){var t,r,i,a,c;c=null;for(a=new nd(n.e.a);a.a=0;e-=2){for(t=0;t<=e;t+=2){if(n.b[t]>n.b[t+2]||n.b[t]===n.b[t+2]&&n.b[t+1]>n.b[t+3]){r=n.b[t+2];n.b[t+2]=n.b[t];n.b[t]=r;r=n.b[t+3];n.b[t+3]=n.b[t+1];n.b[t+1]=r}}}n.c=true}function Txn(n,e){var t,r,i,a,c,u,s,o,f;o=-1;f=0;for(c=n,u=0,s=c.length;u0&&++f}}++o}return f}function jxn(n){var e,t;t=new vx($j(n.Rm));t.a+="@";tL(t,(e=Vun(n)>>>0,e.toString(16)));if(n.Vh()){t.a+=" (eProxyURI: ";eL(t,n._h());if(n.Kh()){t.a+=" eClass: ";eL(t,n.Kh())}t.a+=")"}else if(n.Kh()){t.a+=" (eClass: ";eL(t,n.Kh());t.a+=")"}return t.a}function Exn(n){var e,t,r,i;if(n.e){throw dm(new EM((jK(sve),p2n+sve.k+m2n)))}n.d==(Bdn(),h5e)&&WWn(n,o5e);for(t=new nd(n.a.a);t.a>24}return t}function Axn(n,e,t){var r,i,a;i=bG(xJ(n.i,e),314);if(!i){i=new rin(n.d,e,t);zz(n.i,e,i);if(jmn(e)){sD(n.a,e.c,e.b,i)}else{a=PAn(e);r=bG(xJ(n.p,a),252);switch(a.g){case 1:case 3:i.j=true;aM(r,e.b,i);break;case 4:case 2:i.k=true;aM(r,e.c,i)}}}return i}function Lxn(n,e){var t,r,i,a,c,u,s,o,f;s=sR(n.c-n.b&n.a.length-1);o=null;f=null;for(a=new JJ(n);a.a!=a.b;){i=bG(own(a),10);t=(u=bG(lIn(i,(WYn(),kDe)),12),!u?null:u.i);r=(c=bG(lIn(i,yDe),12),!c?null:c.i);if(o!=t||f!=r){G$n(s,e);o=t;f=r}Tm(s.c,i)}G$n(s,e)}function Nxn(n,e,t,r){var i,a,c,u,s,o;u=new vo;s=ZKn(n.e.Dh(),e);i=bG(n.g,124);LP();if(bG(e,69).xk()){for(c=0;c=0){return a}else{c=1;for(s=new nd(e.j);s.a=0){return a}else{c=1;for(s=new nd(e.j);s.a0&&e.Ne((b3(i-1,n.c.length),bG(n.c[i-1],10)),a)>0){r9(n,i,(b3(i-1,n.c.length),bG(n.c[i-1],10)));--i}b3(i,n.c.length);n.c[i]=a}t.a=new rm;t.b=new rm}function Rxn(n,e,t){var r,i,a,c,u,s,o,f;f=(r=bG(e.e&&e.e(),9),new aB(r,bG(PF(r,r.length),9),0));s=nqn(t,"[\\[\\]\\s,]+");for(a=s,c=0,u=a.length;c=0){if(!e){e=new ZM;r>0&&ZA(e,(Unn(0,r,n.length),n.substr(0,r)))}e.a+="\\";CQ(e,t&$1n)}else!!e&&CQ(e,t&$1n)}return e?e.a:n}function Fxn(n){var e,r,i;for(r=new nd(n.a.a.b);r.a0){!(dN(n.a.c)&&e.n.d)&&!(gN(n.a.c)&&e.n.b)&&(e.g.d-=t.Math.max(0,i/2-.5));!(dN(n.a.c)&&e.n.a)&&!(gN(n.a.c)&&e.n.c)&&(e.g.a+=t.Math.max(0,i-1))}}}function _xn(n,e,t){var r,i;if((n.c-n.b&n.a.length-1)==2){if(e==(UQn(),D8e)||e==$8e){Min(bG(Hhn(n),15),(xjn(),z5e));Min(bG(Hhn(n),15),W5e)}else{Min(bG(Hhn(n),15),(xjn(),W5e));Min(bG(Hhn(n),15),z5e)}}else{for(i=new JJ(n);i.a!=i.b;){r=bG(own(i),15);Min(r,t)}}}function Bxn(n,e){var t,r,i,a,c,u,s;i=oG(new Lp(n));u=new K4(i,i.c.length);a=oG(new Lp(e));s=new K4(a,a.c.length);c=null;while(u.b>0&&s.b>0){t=(PK(u.b>0),bG(u.a.Xb(u.c=--u.b),27));r=(PK(s.b>0),bG(s.a.Xb(s.c=--s.b),27));if(t==r){c=t}else{break}}return c}function Hxn(n,e,t){var r,i,a,c;if(r4(n,e)>r4(n,t)){r=_gn(t,(UQn(),$8e));n.d=r.dc()?0:kq(bG(r.Xb(0),12));c=_gn(e,n9e);n.b=c.dc()?0:kq(bG(c.Xb(0),12))}else{i=_gn(t,(UQn(),n9e));n.d=i.dc()?0:kq(bG(i.Xb(0),12));a=_gn(e,$8e);n.b=a.dc()?0:kq(bG(a.Xb(0),12))}}function Uxn(n,e){var t,r,i,a;t=n.o.a;for(a=bG(bG(r7(n.r,e),21),87).Kc();a.Ob();){i=bG(a.Pb(),117);i.e.a=t*bM(MK(i.b.of(ome)));i.e.b=(r=i.b,r.pf((JYn(),m6e))?r.ag()==(UQn(),D8e)?-r.Mf().b-bM(MK(r.of(m6e))):bM(MK(r.of(m6e))):r.ag()==(UQn(),D8e)?-r.Mf().b:0)}}function Gxn(n,e){var t,r,i,a;e.Ug("Self-Loop pre-processing",1);for(r=new nd(n.a);r.an.c){break}else if(i.a>=n.s){a<0&&(a=c);u=c}}s=(n.s+n.c)/2;if(a>=0){r=gHn(n,e,a,u);s=mP((b3(r,e.c.length),bG(e.c[r],339)));h$n(e,r,t)}return s}function Vxn(n,e,t){var r,i,a,c,u,s,o;c=(a=new jo,a);run(c,(cJ(e),e));o=(!c.b&&(c.b=new JR((rZn(),cit),Nat,c)),c.b);for(s=1;s0&&czn(this,i)}}function Wxn(n,e,t,r,i,a){var c,u,s;if(!i[e.a]){i[e.a]=true;c=r;!c&&(c=new k7);ED(c.e,e);for(s=a[e.a].Kc();s.Ob();){u=bG(s.Pb(),290);if(u.d==t||u.c==t){continue}u.c!=e&&Wxn(n,u.c,e,c,i,a);u.d!=e&&Wxn(n,u.d,e,c,i,a);ED(c.c,u);Dfn(c.d,u.b)}return c}return null}function Qxn(n){var e,t,r,i,a,c,u;e=0;for(i=new nd(n.e);i.a=2}function Jxn(n,e,t,r,i){var a,c,u,s,o,f;a=n.c.d.j;c=bG(dyn(t,0),8);for(f=1;f1){return false}e=nV(e8e,zfn(fT(o8e,1),g1n,95,0,[n8e,r8e]));if(Qon(J1(e,n))>1){return false}r=nV(s8e,zfn(fT(o8e,1),g1n,95,0,[u8e,c8e]));if(Qon(J1(r,n))>1){return false}return true}function Zxn(n,e,t){var r,i,a;for(a=new nd(n.t);a.a0){r.b.n-=r.c;r.b.n<=0&&r.b.u>0&&hq(e,r.b)}}for(i=new nd(n.i);i.a0){r.a.u-=r.c;r.a.u<=0&&r.a.n>0&&hq(t,r.a)}}}function nRn(n){var e,t,r,i,a;if(n.g==null){n.d=n.bj(n.f);cen(n,n.d);if(n.c){a=n.f;return a}}e=bG(n.g[n.i-1],51);i=e.Pb();n.e=e;t=n.bj(i);if(t.Ob()){n.d=t;cen(n,t)}else{n.d=null;while(!e.Ob()){bQ(n.g,--n.i,null);if(n.i==0){break}r=bG(n.g[n.i-1],51);e=r}}return i}function eRn(n,e){var t,r,i,a,c,u;r=e;i=r.Lk();if(OFn(n.e,i)){if(i.Si()&&V5(n,i,r.md())){return false}}else{u=ZKn(n.e.Dh(),i);t=bG(n.g,124);for(a=0;a1||t>1){return 2}}if(e+t==1){return 2}return 0}function bRn(n,e){var r,i,a,c,u,s;c=n.a*q0n+n.b*1502;s=n.b*q0n+11;r=t.Math.floor(s*X0n);c+=r;s-=r*V0n;c%=V0n;n.a=c;n.b=s;if(e<=24){return t.Math.floor(n.a*Cwe[e])}else{a=n.a*(1<=2147483648&&(i-=4294967296);return i}}function wRn(n,e,t){var r,i,a,c,u,s,o;a=new im;o=new vS;c=new vS;zqn(n,o,c,e);Hzn(n,o,c,e,t);for(s=new nd(n);s.ar.b.g&&(Tm(a.c,r),true)}}return a}function dRn(n,e,t){var r,i,a,c,u,s;u=n.c;for(c=(!t.q?(dZ(),dZ(),bbe):t.q).vc().Kc();c.Ob();){a=bG(c.Pb(),44);r=!eE(tY(new gX(null,new d3(u,16)),new dd(new EO(e,a)))).Bd((jS(),gge));if(r){s=a.md();if(G$(s,4)){i=Kmn(s);i!=null&&(s=i)}e.qf(bG(a.ld(),149),s)}}}function gRn(n,e,t){var r,i;qJ(n.b);tW(n.b,(Hdn(),D1e),(uP(),q0e));tW(n.b,x1e,e.g);tW(n.b,R1e,e.a);n.a=ezn(n.b,e);t.Ug("Compaction by shrinking a tree",n.a.c.length);if(e.i.c.length>1){for(i=new nd(n.a);i.a=0?n.Lh(r,true,true):r$n(n,a,true),160));bG(i,220).Xl(e,t)}else{throw dm(new jM(Uee+e.xe()+Gee))}}function pRn(n,e){var t,r,i,a,c;if(!e){return null}else{a=G$(n.Cb,90)||G$(n.Cb,102);c=!a&&G$(n.Cb,331);for(r=new _D((!e.a&&(e.a=new xX(e,Crt,e)),e.a));r.e!=r.i.gc();){t=bG(iyn(r),89);i=PGn(t);if(a?G$(i,90):c?G$(i,156):!!i){return i}}return a?(rZn(),nit):(rZn(),Jrt)}}function mRn(n,e){var t,r,i,a;e.Ug("Resize child graph to fit parent.",1);for(r=new nd(n.b);r.a=2*e&&ED(t,new DU(c[r-1]+e,c[r]-e))}return t}function MRn(n,e,t){var r,i,a,c,s,o,f,h;if(t){a=t.a.length;r=new WV(a);for(s=(r.b-r.a)*r.c<0?(NP(),Fht):new BD(r);s.Ob();){c=bG(s.Pb(),17);i=j6(t,c.a);!!i&&(u=null,o=p5(n,(f=(yj(),h=new Vk,h),!!e&&RRn(f,e),f),i),Wcn(o,E6(i,Pte)),gCn(i,o),ELn(i,o),Qhn(n,i,o))}}}function TRn(n){var e,t,r,i,a,c;if(!n.j){c=new Ao;e=Cit;a=e.a.zc(n,e);if(a==null){for(r=new _D(a1(n));r.e!=r.i.gc();){t=bG(iyn(r),29);i=TRn(t);NW(c,i);cen(c,t)}e.a.Bc(n)!=null}vbn(c);n.j=new jL((bG(Yin(yZ((cQ(),_rt).o),11),19),c.i),c.g);S9(n).b&=-33}return n.j}function jRn(n){var e,t,r,i;if(n==null){return null}else{r=SXn(n,true);i=mae.length;if(T_(r.substr(r.length-i,i),mae)){t=r.length;if(t==4){e=(w3(0,r.length),r.charCodeAt(0));if(e==43){return _ot}else if(e==45){return Fot}}else if(t==3){return _ot}}return new ck(r)}}function ERn(n){var e,t,r;t=n.l;if((t&t-1)!=0){return-1}r=n.m;if((r&r-1)!=0){return-1}e=n.h;if((e&e-1)!=0){return-1}if(e==0&&r==0&&t==0){return-1}if(e==0&&r==0&&t!=0){return Mcn(t)}if(e==0&&r!=0&&t==0){return Mcn(r)+22}if(e!=0&&r==0&&t==0){return Mcn(e)+44}return-1}function SRn(n,e){var t,r,i,a,c;i=e.a&n.f;a=null;for(r=n.b[i];true;r=r.b){if(r==e){!a?n.b[i]=e.b:a.b=e.b;break}a=r}c=e.f&n.f;a=null;for(t=n.c[c];true;t=t.d){if(t==e){!a?n.c[c]=e.d:a.d=e.d;break}a=t}!e.e?n.a=e.c:e.e.c=e.c;!e.c?n.e=e.e:e.c.e=e.e;--n.i;++n.g}function PRn(n,e){var t;e.d?e.d.b=e.b:n.a=e.b;e.b?e.b.d=e.d:n.e=e.d;if(!e.e&&!e.c){t=bG(aJ(bG(b7(n.b,e.a),260)),260);t.a=0;++n.c}else{t=bG(aJ(bG(fQ(n.b,e.a),260)),260);--t.a;!e.e?t.b=bG(aJ(e.c),511):e.e.c=e.c;!e.c?t.c=bG(aJ(e.e),511):e.c.e=e.e}--n.d}function CRn(n){var e,r,i,a,c,u,s,o,f,h;r=n.o;e=n.p;u=pZn;a=T1n;s=pZn;c=T1n;for(f=0;f0);a.a.Xb(a.c=--a.b);MF(a,i);PK(a.b3&&Gtn(n,0,e-3)}}function NRn(n){var e,t,r,i;if(BA(lIn(n,(IYn(),SFe)))===BA((Dwn(),U5e))){return!n.e&&BA(lIn(n,YKe))!==BA((sfn(),A$e))}r=bG(lIn(n,ZKe),299);i=lM(yK(lIn(n,aFe)))||BA(lIn(n,cFe))===BA((Icn(),mNe));e=bG(lIn(n,JKe),17).a;t=n.a.c.length;return!i&&r!=(sfn(),A$e)&&(e==0||e>t)}function $Rn(n){var e,t;t=0;for(;t0){break}}if(t>0&&t0){break}}if(e>0&&t>16!=6&&!!e){if(uEn(n,e))throw dm(new jM(Zee+x$n(n)));r=null;!!n.Cb&&(r=(t=n.Db>>16,t>=0?Yjn(n,r):n.Cb.Th(n,-1-t,null,r)));!!e&&(r=Eyn(e,n,6,r));r=iF(n,e,r);!!r&&r.oj()}else(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,6,e,e))}function xRn(n,e){var t,r;if(e!=n.Cb||n.Db>>16!=3&&!!e){if(uEn(n,e))throw dm(new jM(Zee+AXn(n)));r=null;!!n.Cb&&(r=(t=n.Db>>16,t>=0?wEn(n,r):n.Cb.Th(n,-1-t,null,r)));!!e&&(r=Eyn(e,n,12,r));r=aF(n,e,r);!!r&&r.oj()}else(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,3,e,e))}function RRn(n,e){var t,r;if(e!=n.Cb||n.Db>>16!=9&&!!e){if(uEn(n,e))throw dm(new jM(Zee+ZBn(n)));r=null;!!n.Cb&&(r=(t=n.Db>>16,t>=0?nEn(n,r):n.Cb.Th(n,-1-t,null,r)));!!e&&(r=Eyn(e,n,9,r));r=cF(n,e,r);!!r&&r.oj()}else(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,9,e,e))}function KRn(n){var e,t,r,i,a;r=pEn(n);a=n.j;if(a==null&&!!r){return n.Jk()?null:r.ik()}else if(G$(r,156)){t=r.jk();if(t){i=t.wi();if(i!=n.i){e=bG(r,156);if(e.nk()){try{n.g=i.ti(e,a)}catch(c){c=Ofn(c);if(G$(c,82)){n.g=null}else throw dm(c)}}n.i=i}}return n.g}return null}function FRn(n){var e;e=new im;ED(e,new iC(new PO(n.c,n.d),new PO(n.c+n.b,n.d)));ED(e,new iC(new PO(n.c,n.d),new PO(n.c,n.d+n.a)));ED(e,new iC(new PO(n.c+n.b,n.d+n.a),new PO(n.c+n.b,n.d)));ED(e,new iC(new PO(n.c+n.b,n.d+n.a),new PO(n.c,n.d+n.a)));return e}function _Rn(n){var e,t,r;if(n==null){return CZn}try{return fvn(n)}catch(i){i=Ofn(i);if(G$(i,103)){e=i;r=$j(Cbn(n))+"@"+(t=(pS(),xmn(n))>>>0,t.toString(16));mkn(yfn(),(MS(),"Exception during lenientFormat for "+r),e);return"<"+r+" threw "+$j(e.Rm)+">"}else throw dm(i)}}function BRn(n,e,t){var r,i,a;for(a=e.a.ec().Kc();a.Ob();){i=bG(a.Pb(),74);r=bG(fQ(n.b,i),272);!r&&(H0(pIn(i))==H0(yIn(i))?eFn(n,i,t):pIn(i)==H0(yIn(i))?fQ(n.c,i)==null&&fQ(n.b,yIn(i))!=null&&pWn(n,i,t,false):fQ(n.d,i)==null&&fQ(n.b,pIn(i))!=null&&pWn(n,i,t,true))}}function HRn(n,e){var t,r,i,a,c,u,s;for(i=n.Kc();i.Ob();){r=bG(i.Pb(),10);u=new vOn;l2(u,r);KLn(u,(UQn(),$8e));Ehn(u,(WYn(),LDe),(Qx(),true));for(c=e.Kc();c.Ob();){a=bG(c.Pb(),10);s=new vOn;l2(s,a);KLn(s,n9e);Ehn(s,LDe,true);t=new zZ;Ehn(t,LDe,true);f2(t,u);b2(t,s)}}}function URn(n,e,t,r){var i,a,c,u;i=umn(n,e,t);a=umn(n,t,e);c=bG(fQ(n.c,e),118);u=bG(fQ(n.c,t),118);if(i1){e=Ix((t=new wk,++n.b,t),n.d);for(u=Gkn(a,0);u.b!=u.d.c;){c=bG($6(u),125);HKn(BS(_S(HS(FS(new bk,1),0),e),c))}}}function zRn(n,e,t){var r,i,a,c,u;t.Ug("Breaking Point Removing",1);n.a=bG(lIn(e,(IYn(),gFe)),223);for(a=new nd(e.b);a.a>16!=11&&!!e){if(uEn(n,e))throw dm(new jM(Zee+YBn(n)));r=null;!!n.Cb&&(r=(t=n.Db>>16,t>=0?dEn(n,r):n.Cb.Th(n,-1-t,null,r)));!!e&&(r=Eyn(e,n,10,r));r=a_(n,e,r);!!r&&r.oj()}else(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,11,e,e))}function QRn(n){var e,t,r,i;for(r=new pon(new Kw(n.b).a);r.b;){t=jun(r);i=bG(t.ld(),12);e=bG(t.md(),10);Ehn(e,(WYn(),EDe),i);Ehn(i,NDe,e);Ehn(i,lDe,(Qx(),true));KLn(i,bG(lIn(e,cDe),64));lIn(e,cDe);Ehn(i.i,(IYn(),m_e),(FPn(),y8e));bG(lIn(VQ(i.i),oDe),21).Fc((o_n(),E$e))}}function JRn(n,e,t){var r,i,a,c,u,s;a=0;c=0;if(n.c){for(s=new nd(n.d.i.j);s.aa.a){return-1}else if(i.as){f=n.d;n.d=$nn(zet,Ure,66,2*s+4,0,1);for(a=0;a=0x8000000000000000){return crn(),Phe}i=false;if(n<0){i=true;n=-n}r=0;if(n>=w0n){r=c0(n/w0n);n-=r*w0n}t=0;if(n>=b0n){t=c0(n/b0n);n-=t*b0n}e=c0(n);a=M$(e,t,r);i&&rln(a);return a}function bKn(n){var e,t,r,i,a;a=new im;Lin(n.b,new Od(a));n.b.c.length=0;if(a.c.length!=0){e=(b3(0,a.c.length),bG(a.c[0],82));for(t=1,r=a.c.length;t=-e&&i==e){return new nA(Bwn(r-1),Bwn(i))}return new nA(Bwn(r),Bwn(i-1))}function pKn(){YYn();return zfn(fT(fCe,1),g1n,81,0,[gPe,bPe,vPe,NPe,YPe,RPe,iCe,HPe,QPe,CPe,XPe,BPe,JPe,jPe,cCe,uPe,qPe,nCe,$Pe,ZPe,sCe,zPe,sPe,WPe,oCe,tCe,uCe,DPe,yPe,xPe,LPe,aCe,hPe,mPe,FPe,fPe,_Pe,OPe,EPe,UPe,PPe,wPe,lPe,APe,SPe,GPe,rCe,oPe,VPe,IPe,KPe,MPe,kPe,eCe,pPe,TPe,dPe])}function mKn(n,e,t){n.d=0;n.b=0;e.k==(YIn(),iEe)&&t.k==iEe&&bG(lIn(e,(WYn(),EDe)),10)==bG(lIn(t,EDe),10)&&(Itn(e).j==(UQn(),D8e)?Hxn(n,e,t):Hxn(n,t,e));e.k==iEe&&t.k==tEe?Itn(e).j==(UQn(),D8e)?n.d=1:n.b=1:t.k==iEe&&e.k==tEe&&(Itn(t).j==(UQn(),D8e)?n.b=1:n.d=1);WMn(n,e,t)}function kKn(n){var e,t,r,i,a,c,u,s,o,f,h;h=yCn(n);e=n.a;s=e!=null;s&&iq(h,"category",n.a);i=ME(new Rw(n.d));c=!i;if(c){o=new $b;ain(h,"knownOptions",o);t=new Pp(o);Y8(new Rw(n.d),t)}a=ME(n.g);u=!a;if(u){f=new $b;ain(h,"supportedFeatures",f);r=new Cp(f);Y8(n.g,r)}return h}function yKn(n){var e,t,r,i,a,c,u,s,o;r=false;e=336;t=0;a=new zF(n.length);for(u=n,s=0,o=u.length;s>16!=7&&!!e){if(uEn(n,e))throw dm(new jM(Zee+YOn(n)));r=null;!!n.Cb&&(r=(t=n.Db>>16,t>=0?Zjn(n,r):n.Cb.Th(n,-1-t,null,r)));!!e&&(r=bG(e,54).Rh(n,1,F7e,r));r=kV(n,e,r);!!r&&r.oj()}else(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,7,e,e))}function EKn(n,e){var t,r;if(e!=n.Cb||n.Db>>16!=3&&!!e){if(uEn(n,e))throw dm(new jM(Zee+gdn(n)));r=null;!!n.Cb&&(r=(t=n.Db>>16,t>=0?rEn(n,r):n.Cb.Th(n,-1-t,null,r)));!!e&&(r=bG(e,54).Rh(n,0,G7e,r));r=yV(n,e,r);!!r&&r.oj()}else(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,3,e,e))}function SKn(n,e){p_n();var t,r,i,a,c,u,s,o,f;if(e.d>n.d){u=n;n=e;e=u}if(e.d<63){return UFn(n,e)}c=(n.d&-2)<<4;o=F9(n,c);f=F9(e,c);r=TXn(n,_9(o,c));i=TXn(e,_9(f,c));s=SKn(o,f);t=SKn(r,i);a=SKn(TXn(o,r),TXn(i,f));a=izn(izn(a,s),t);a=_9(a,c);s=_9(s,c<<1);return izn(izn(s,a),t)}function PKn(){PKn=O;OBe=new gI(p9n,0);PBe=new gI("LONGEST_PATH",1);CBe=new gI("LONGEST_PATH_SOURCE",2);jBe=new gI("COFFMAN_GRAHAM",3);SBe=new gI($6n,4);ABe=new gI("STRETCH_WIDTH",5);IBe=new gI("MIN_WIDTH",6);TBe=new gI("BF_MODEL_ORDER",7);EBe=new gI("DF_MODEL_ORDER",8)}function CKn(n,e,t){var r,i,a,c,u;c=Zwn(n,t);u=$nn(Yje,e6n,10,e.length,0,1);r=0;for(a=c.Kc();a.Ob();){i=bG(a.Pb(),12);lM(yK(lIn(i,(WYn(),lDe))))&&(u[r++]=bG(lIn(i,NDe),10))}if(r=0;a+=t?1:-1){c=c|e.c.lg(s,a,t,r&&!lM(yK(lIn(e.j,(WYn(),sDe))))&&!lM(yK(lIn(e.j,(WYn(),FDe)))));c=c|e.q.ug(s,a,t);c=c|mBn(n,s[a],t,r)}Gz(n.c,e);return c}function NKn(n,e,t){var r,i,a,c,u,s,o,f,h,l;for(f=w6(n.j),h=0,l=f.length;h1&&(n.a=true);rV(bG(t.b,68),t_(_$(bG(e.b,68).c),jD(r_(_$(bG(t.b,68).a),bG(e.b,68).a),i)));g2(n,e);xKn(n,t)}}function RKn(n){var e,t,r,i,a,c,u;for(a=new nd(n.a.a);a.a0&&a>0?c.p=e++:r>0?c.p=t++:a>0?c.p=i++:c.p=t++}}dZ();g$(n.j,new pr)}function FKn(n){var e,t;t=null;e=bG(Yq(n.g,0),18);do{t=e.d.i;if(jR(t,(WYn(),yDe))){return bG(lIn(t,yDe),12).i}if(t.k!=(YIn(),rEe)&&dDn(new GV(sx(Jgn(t).a.Kc(),new d)))){e=bG(K9(new GV(sx(Jgn(t).a.Kc(),new d))),18)}else if(t.k!=rEe){return null}}while(!!t&&t.k!=(YIn(),rEe));return t}function _Kn(n,e){var t,r,i,a,c,u,s,o,f;u=e.j;c=e.g;s=bG(Yq(u,u.c.length-1),113);f=(b3(0,u.c.length),bG(u.c[0],113));o=BTn(n,c,s,f);for(a=1;ao){s=t;f=i;o=r}}e.a=f;e.c=s}function BKn(n,e,t){var r,i,a,c,u,s,o;o=new Vj(new sv(n));for(c=zfn(fT(gEe,1),t6n,12,0,[e,t]),u=0,s=c.length;us-n.b&&us-n.a&&u0){if(a.a){u=a.b.Mf().a;if(t>u){i=(t-u)/2;a.d.b=i;a.d.c=i}}else{a.d.c=n.s+t}}else if(fz(n.u)){r=OCn(a.b);r.c<0&&(a.d.b=-r.c);r.c+r.b>a.b.Mf().a&&(a.d.c=r.c+r.b-a.b.Mf().a)}}}function oFn(n,e){var t,r,i,a,c;c=new im;t=e;do{a=bG(fQ(n.b,t),131);a.B=t.c;a.D=t.d;Tm(c.c,a);t=bG(fQ(n.k,t),18)}while(t);r=(b3(0,c.c.length),bG(c.c[0],131));r.j=true;r.A=bG(r.d.a.ec().Kc().Pb(),18).c.i;i=bG(Yq(c,c.c.length-1),131);i.q=true;i.C=bG(i.d.a.ec().Kc().Pb(),18).d.i;return c}function fFn(n){var e,r;e=bG(n.a,17).a;r=bG(n.b,17).a;if(e>=0){if(e==r){return new nA(Bwn(-e-1),Bwn(-e-1))}if(e==-r){return new nA(Bwn(-e),Bwn(r+1))}}if(t.Math.abs(e)>t.Math.abs(r)){if(e<0){return new nA(Bwn(-e),Bwn(r))}return new nA(Bwn(-e),Bwn(r+1))}return new nA(Bwn(e+1),Bwn(r))}function hFn(n){var e,t;t=bG(lIn(n,(IYn(),KFe)),171);e=bG(lIn(n,(WYn(),bDe)),311);if(t==(Wvn(),QDe)){Ehn(n,KFe,ZDe);Ehn(n,bDe,(irn(),K$e))}else if(t==YDe){Ehn(n,KFe,ZDe);Ehn(n,bDe,(irn(),x$e))}else if(e==(irn(),K$e)){Ehn(n,KFe,QDe);Ehn(n,bDe,R$e)}else if(e==x$e){Ehn(n,KFe,YDe);Ehn(n,bDe,R$e)}}function lFn(){lFn=O;sXe=new lc;iXe=xq(new mJ,(bIn(),aTe),(YYn(),$Pe));uXe=mV(xq(new mJ,aTe,zPe),uTe,VPe);oXe=Rmn(Rmn(yP(mV(xq(new mJ,rTe,iCe),uTe,rCe),cTe),tCe),aCe);aXe=mV(xq(xq(xq(new mJ,iTe,RPe),cTe,FPe),cTe,_Pe),uTe,KPe);cXe=mV(xq(xq(new mJ,cTe,_Pe),cTe,mPe),uTe,pPe)}function bFn(){bFn=O;BXe=xq(mV(new mJ,(bIn(),uTe),(YYn(),MPe)),aTe,$Pe);qXe=Rmn(Rmn(yP(mV(xq(new mJ,rTe,iCe),uTe,rCe),cTe),tCe),aCe);HXe=mV(xq(xq(xq(new mJ,iTe,RPe),cTe,FPe),cTe,_Pe),uTe,KPe);GXe=xq(xq(new mJ,aTe,zPe),uTe,VPe);UXe=mV(xq(xq(new mJ,cTe,_Pe),cTe,mPe),uTe,pPe)}function wFn(n,e,t,r,i){var a,c;if((!j9(e)&&e.c.i.c==e.d.i.c||!bun(Whn(zfn(fT(D3e,1),XZn,8,0,[i.i.n,i.n,i.a])),t))&&!j9(e)){e.c==i?wR(e.a,0,new uN(t)):hq(e.a,new uN(t));if(r&&!fS(n.a,t)){c=bG(lIn(e,(IYn(),DFe)),75);if(!c){c=new zk;Ehn(e,DFe,c)}a=new uN(t);w8(c,a,c.c.b,c.c);Gz(n.a,a)}}}function dFn(n,e){var t,r,i,a;a=MV(Kgn(o1n,LJ(MV(Kgn(e==null?0:Vun(e),f1n)),15)));t=a&n.b.length-1;i=null;for(r=n.b[t];r;i=r,r=r.a){if(r.d==a&&BQ(r.i,e)){!i?n.b[t]=r.a:i.a=r.a;HM(bG(aJ(r.c),604),bG(aJ(r.f),604));Cm(bG(aJ(r.b),227),bG(aJ(r.e),227));--n.f;++n.e;return true}}return false}function gFn(n){var e,t;for(t=new GV(sx(Qgn(n).a.Kc(),new d));dDn(t);){e=bG(K9(t),18);if(e.c.i.k!=(YIn(),eEe)){throw dm(new IM(k6n+ijn(n)+"' has its layer constraint set to FIRST, but has at least one incoming edge that "+" does not come from a FIRST_SEPARATE node. That must not happen."))}}}function vFn(n,e,t){var r,i,a,c,u,s,o;i=Ndn(n.Db&254);if(i==0){n.Eb=t}else{if(i==1){u=$nn(kce,jZn,1,2,5,1);a=ITn(n,e);if(a==0){u[0]=t;u[1]=n.Eb}else{u[0]=n.Eb;u[1]=t}}else{u=$nn(kce,jZn,1,i+1,5,1);c=Uan(n.Eb);for(r=2,s=0,o=0;r<=128;r<<=1){r==e?u[o++]=t:(n.Db&r)!=0&&(u[o++]=c[s++])}}n.Eb=u}n.Db|=e}function pFn(n,e,r){var i,a,c,u;this.b=new im;a=0;i=0;for(u=new nd(n);u.a0){c=bG(Yq(this.b,0),176);a+=c.o;i+=c.p}a*=2;i*=2;e>1?a=c0(t.Math.ceil(a*e)):i=c0(t.Math.ceil(i/e));this.a=new wpn(a,i)}function mFn(n,e,r,i,a,c){var u,s,o,f,h,l,b,w,d,g,v,p;h=i;if(e.j&&e.o){w=bG(fQ(n.f,e.A),60);g=w.d.c+w.d.b;--h}else{g=e.a.c+e.a.b}l=a;if(r.q&&r.o){w=bG(fQ(n.f,r.C),60);f=w.d.c;++l}else{f=r.a.c}v=f-g;o=t.Math.max(2,l-h);s=v/o;d=g+s;for(b=h;b=0;c+=i?1:-1){u=e[c];s=r==(UQn(),$8e)?i?_gn(u,r):Avn(_gn(u,r)):i?Avn(_gn(u,r)):_gn(u,r);a&&(n.c[u.p]=s.gc());for(h=s.Kc();h.Ob();){f=bG(h.Pb(),12);n.d[f.p]=o++}Dfn(t,s)}}function MFn(n,e,t){var r,i,a,c,u,s,o,f;a=bM(MK(n.b.Kc().Pb()));o=bM(MK(mfn(e.b)));r=jD(_$(n.a),o-t);i=jD(_$(e.a),t-a);f=t_(r,i);jD(f,1/(o-a));this.a=f;this.b=new im;u=true;c=n.b.Kc();c.Pb();while(c.Ob()){s=bM(MK(c.Pb()));if(u&&s-t>N9n){this.b.Fc(t);u=false}this.b.Fc(s)}u&&this.b.Fc(t)}function TFn(n){var e,t,r,i;mHn(n,n.n);if(n.d.c.length>0){xM(n.c);while(gDn(n,bG(K3(new nd(n.e.a)),125))>5;e&=31;if(r>=n.d){return n.e<0?(fHn(),Lle):(fHn(),Rle)}a=n.d-r;i=$nn(Ght,z1n,28,a+1,15,1);HOn(i,a,n.a,r,e);if(n.e<0){for(t=0;t0&&n.a[t]<<32-e!=0){for(t=0;t=0){return false}else{t=szn((yAn(),Vut),i,e);if(!t){return true}else{r=t.Ik();return(r>1||r==-1)&&wJ(Ktn(Vut,t))!=3}}}}else{return false}}function AFn(n,e,t,r){var i,a,c,u,s;u=vCn(bG(Yin((!e.b&&(e.b=new g_(B7e,e,4,7)),e.b),0),84));s=vCn(bG(Yin((!e.c&&(e.c=new g_(B7e,e,5,8)),e.c),0),84));if(H0(u)==H0(s)){return null}if(Oin(s,u)){return null}c=w0(e);if(c==t){return r}else{a=bG(fQ(n.a,c),10);if(a){i=a.e;if(i){return i}}}return null}function LFn(n,e,t){var r,i,a,c,u;t.Ug("Longest path to source layering",1);n.a=e;u=n.a.a;n.b=$nn(Ght,z1n,28,u.c.length,15,1);r=0;for(c=new nd(u);c.a0){r[0]+=n.d;u-=r[0]}if(r[2]>0){r[2]+=n.d;u-=r[2]}c=t.Math.max(0,u);r[1]=t.Math.max(r[1],u);e7(n,ipe,a.c+i.b+r[0]-(r[1]-u)/2,r);if(e==ipe){n.c.b=c;n.c.c=a.c+i.b+(c-u)/2}}function XFn(){this.c=$nn(zht,C0n,28,(UQn(),zfn(fT(e9e,1),X4n,64,0,[Z8e,D8e,$8e,Y8e,n9e])).length,15,1);this.b=$nn(zht,C0n,28,zfn(fT(e9e,1),X4n,64,0,[Z8e,D8e,$8e,Y8e,n9e]).length,15,1);this.a=$nn(zht,C0n,28,zfn(fT(e9e,1),X4n,64,0,[Z8e,D8e,$8e,Y8e,n9e]).length,15,1);UP(this.c,y0n);UP(this.b,M0n);UP(this.a,M0n)}function VFn(n,e,t){var r,i,a,c;if(e<=t){i=e;a=t}else{i=t;a=e}r=0;if(n.b==null){n.b=$nn(Ght,z1n,28,2,15,1);n.b[0]=i;n.b[1]=a;n.c=true}else{r=n.b.length;if(n.b[r-1]+1==i){n.b[r-1]=a;return}c=$nn(Ght,z1n,28,r+2,15,1);QGn(n.b,0,c,0,r);n.b=c;n.b[r-1]>=i&&(n.c=false,n.a=false);n.b[r++]=i;n.b[r]=a;n.c||Mxn(n)}}function zFn(n,e,t){var r,i,a,c,u,s,o;o=e.d;n.a=new H7(o.c.length);n.c=new rm;for(u=new nd(o);u.a=0?n.Lh(o,false,true):r$n(n,t,false),61));n:for(a=h.Kc();a.Ob();){i=bG(a.Pb(),58);for(f=0;f1){u_n(i,i.i-1)}}return r}}function r_n(n,e){var t,r,i,a,c,u,s;t=new KD;for(a=new nd(n.b);a.an.d[c.p]){t+=t9(n.b,a);x6(n.a,Bwn(a))}}while(!RM(n.a)){vrn(n.b,bG(Bz(n.a),17).a)}}return t}function a_n(n){var e,t,r,i,a,c,u,s,o;n.a=new BF;o=0;i=0;for(r=new nd(n.i.b);r.as.d&&(h=s.d+s.a+f)}}r.c.d=h;e.a.zc(r,e);o=t.Math.max(o,r.c.d+r.c.a)}return o}function o_n(){o_n=O;k$e=new hI("COMMENTS",0);M$e=new hI("EXTERNAL_PORTS",1);T$e=new hI("HYPEREDGES",2);j$e=new hI("HYPERNODES",3);E$e=new hI("NON_FREE_PORTS",4);S$e=new hI("NORTH_SOUTH_PORTS",5);C$e=new hI(K6n,6);m$e=new hI("CENTER_LABELS",7);y$e=new hI("END_LABELS",8);P$e=new hI("PARTITIONS",9)}function f_n(n,e,t,r,i){if(r<0){r=JOn(n,i,zfn(fT(vle,1),XZn,2,6,[D1n,x1n,R1n,K1n,F1n,_1n,B1n,H1n,U1n,G1n,q1n,X1n]),e);r<0&&(r=JOn(n,i,zfn(fT(vle,1),XZn,2,6,["Jan","Feb","Mar","Apr",F1n,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e));if(r<0){return false}t.k=r;return true}else if(r>0){t.k=r-1;return true}return false}function h_n(n,e,t,r,i){if(r<0){r=JOn(n,i,zfn(fT(vle,1),XZn,2,6,[D1n,x1n,R1n,K1n,F1n,_1n,B1n,H1n,U1n,G1n,q1n,X1n]),e);r<0&&(r=JOn(n,i,zfn(fT(vle,1),XZn,2,6,["Jan","Feb","Mar","Apr",F1n,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e));if(r<0){return false}t.k=r;return true}else if(r>0){t.k=r-1;return true}return false}function l_n(n,e,t,r,i,a){var c,u,s,o;u=32;if(r<0){if(e[0]>=n.length){return false}u=ZJ(n,e[0]);if(u!=43&&u!=45){return false}++e[0];r=HNn(n,e);if(r<0){return false}u==45&&(r=-r)}if(u==32&&e[0]-t==2&&i.b==2){s=new eS;o=s.q.getFullYear()-V1n+V1n-80;c=o%100;a.a=r==c;r+=(o/100|0)*100+(r=0?Hpn(n):dW(Hpn(Ptn(n))));Hle[e]=XA(KV(n,e),0)?Hpn(KV(n,e)):dW(Hpn(Ptn(KV(n,e))));n=Kgn(n,5)}for(;e=f&&(o=i)}!!o&&(h=t.Math.max(h,o.a.o.a));if(h>b){l=f;b=h}}return l}function j_n(n){var e,t,r,i,a,c,u;a=new Vj(bG(nQ(new _n),50));u=M0n;for(t=new nd(n.d);t.aK7n?g$(o,n.b):i<=K7n&&i>F7n?g$(o,n.d):i<=F7n&&i>_7n?g$(o,n.c):i<=_7n&&g$(o,n.a);c=C_n(n,o,c)}return a}function I_n(n,e,t,r){var i,a,c,u,s,o;i=(r.c+r.a)/2;XY(e.j);hq(e.j,i);XY(t.e);hq(t.e,i);o=new dj;for(u=new nd(n.f);u.a1;if(u){r=new PO(i,t.b);hq(e.a,r)}kcn(e.a,zfn(fT(D3e,1),XZn,8,0,[l,h]))}function D_n(n,e,t){var r,i;if(e=48;t--){Gft[t]=t-48<<24>>24}for(r=70;r>=65;r--){Gft[r]=r-65+10<<24>>24}for(i=102;i>=97;i--){Gft[i]=i-97+10<<24>>24}for(a=0;a<10;a++)qft[a]=48+a&$1n;for(n=10;n<=15;n++)qft[n]=65+n-10&$1n}function K_n(n,e){e.Ug("Process graph bounds",1);Ehn(n,(DQn(),Dze),FI(Csn(iY(new gX(null,new d3(n.b,16)),new Uc))));Ehn(n,Rze,FI(Csn(iY(new gX(null,new d3(n.b,16)),new Gc))));Ehn(n,$ze,FI(Psn(iY(new gX(null,new d3(n.b,16)),new qc))));Ehn(n,xze,FI(Psn(iY(new gX(null,new d3(n.b,16)),new Xc))));e.Vg()}function F_n(n){var e,r,i,a,c;a=bG(lIn(n,(IYn(),r_e)),21);c=bG(lIn(n,c_e),21);r=new PO(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a);e=new uN(r);if(a.Hc((emn(),f9e))){i=bG(lIn(n,a_e),8);if(c.Hc((hUn(),p9e))){i.a<=0&&(i.a=20);i.b<=0&&(i.b=20)}e.a=t.Math.max(r.a,i.a);e.b=t.Math.max(r.b,i.b)}lM(yK(lIn(n,i_e)))||fXn(n,r,e)}function __n(n,e){var t,r,i,a;for(a=_gn(e,(UQn(),Y8e)).Kc();a.Ob();){r=bG(a.Pb(),12);t=bG(lIn(r,(WYn(),NDe)),10);!!t&&HKn(BS(_S(HS(FS(new bk,0),.1),n.i[e.p].d),n.i[t.p].a))}for(i=_gn(e,D8e).Kc();i.Ob();){r=bG(i.Pb(),12);t=bG(lIn(r,(WYn(),NDe)),10);!!t&&HKn(BS(_S(HS(FS(new bk,0),.1),n.i[t.p].d),n.i[e.p].a))}}function B_n(n){var e,t,r,i,a,c;if(!n.c){c=new Eo;e=Cit;a=e.a.zc(n,e);if(a==null){for(r=new _D(Y5(n));r.e!=r.i.gc();){t=bG(iyn(r),89);i=PGn(t);G$(i,90)&&NW(c,B_n(bG(i,29)));cen(c,t)}e.a.Bc(n)!=null;e.a.gc()==0&&undefined}spn(c);vbn(c);n.c=new jL((bG(Yin(yZ((cQ(),_rt).o),15),19),c.i),c.g);S9(n).b&=-33}return n.c}function H_n(n){var e;if(n.c!=10)throw dm(new NM(oZn((c$(),nre))));e=n.a;switch(e){case 110:e=10;break;case 114:e=13;break;case 116:e=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw dm(new NM(oZn((c$(),Ore))))}return e}function U_n(n){var e,t,r,i,a;if(n.l==0&&n.m==0&&n.h==0){return"0"}if(n.h==l0n&&n.m==0&&n.l==0){return"-9223372036854775808"}if(n.h>>19!=0){return"-"+U_n(yhn(n))}t=n;r="";while(!(t.l==0&&t.m==0&&t.h==0)){i=q9(d0n);t=rzn(t,i,true);e=""+Cj(She);if(!(t.l==0&&t.m==0&&t.h==0)){a=9-e.length;for(;a>0;a--){e="0"+e}}r=e+r}return r}function G_n(n){var e,t,r,i,a,c,u;e=false;t=0;for(i=new nd(n.d.b);i.a=n.a){return-1}if(!qPn(e,r)){return-1}if(L6(bG(i.Kb(e),20))){return 1}a=0;for(u=bG(i.Kb(e),20).Kc();u.Ob();){c=bG(u.Pb(),18);o=c.c.i==e?c.d.i:c.c.i;s=z_n(n,o,r,i);if(s==-1){return-1}a=t.Math.max(a,s);if(a>n.c-1){return-1}}return a+1}function W_n(n,e){var t,r,i,a,c,u;if(BA(e)===BA(n)){return true}if(!G$(e,15)){return false}r=bG(e,15);u=n.gc();if(r.gc()!=u){return false}c=r.Kc();if(n.Yi()){for(t=0;t0){n._j();if(e!=null){for(a=0;a>24}case 97:case 98:case 99:case 100:case 101:case 102:{return n-97+10<<24>>24}case 65:case 66:case 67:case 68:case 69:case 70:{return n-65+10<<24>>24}default:{throw dm(new iT("Invalid hexadecimal"))}}}function nBn(){nBn=O;Uve=new oC("SPIRAL",0);Kve=new oC("LINE_BY_LINE",1);Fve=new oC("MANHATTAN",2);Rve=new oC("JITTER",3);Bve=new oC("QUADRANTS_LINE_BY_LINE",4);Hve=new oC("QUADRANTS_MANHATTAN",5);_ve=new oC("QUADRANTS_JITTER",6);xve=new oC("COMBINE_LINE_BY_LINE_MANHATTAN",7);Dve=new oC("COMBINE_JITTER_MANHATTAN",8)}function eBn(n,e,t,r){var i,a,c,u,s,o;s=MSn(n,t);o=MSn(e,t);i=false;while(!!s&&!!o){if(r||ujn(s,o,t)){c=MSn(s,t);u=MSn(o,t);$tn(e);$tn(n);a=s.c;Mzn(s,false);Mzn(o,false);if(t){Fjn(e,o.p,a);e.p=o.p;Fjn(n,s.p+1,a);n.p=s.p}else{Fjn(n,s.p,a);n.p=s.p;Fjn(e,o.p+1,a);e.p=o.p}h2(s,null);h2(o,null);s=c;o=u;i=true}else{break}}return i}function tBn(n){switch(n.g){case 0:return new bl;case 1:return new hl;case 3:return new sP;case 4:return new Aa;case 5:return new HF;case 6:return new ll;case 2:return new fl;case 7:return new il;case 8:return new cl;default:throw dm(new jM("No implementation is available for the layerer "+(n.f!=null?n.f:""+n.g)))}}function rBn(n,e,t,r){var i,a,c,u,s;i=false;a=false;for(u=new nd(r.j);u.a=e.length){throw dm(new kM("Greedy SwitchDecider: Free layer not in graph."))}this.c=e[n];this.e=new H_(r);xun(this.e,this.c,(UQn(),n9e));this.i=new H_(r);xun(this.i,this.c,$8e);this.f=new wX(this.c);this.a=!a&&i.i&&!i.s&&this.c[0].k==(YIn(),nEe);this.a&&oAn(this,n,e.length)}function sBn(n,e){var t,r,i,a,c,u;a=!n.B.Hc((hUn(),g9e));c=n.B.Hc(m9e);n.a=new bpn(c,a,n.c);!!n.n&&nZ(n.a.n,n.n);aM(n.g,(ran(),ipe),n.a);if(!e){r=new ckn(1,a,n.c);r.n.a=n.k;zz(n.p,(UQn(),D8e),r);i=new ckn(1,a,n.c);i.n.d=n.k;zz(n.p,Y8e,i);u=new ckn(0,a,n.c);u.n.c=n.k;zz(n.p,n9e,u);t=new ckn(0,a,n.c);t.n.b=n.k;zz(n.p,$8e,t)}}function oBn(n){var e,t,r;e=bG(lIn(n.d,(IYn(),gFe)),223);switch(e.g){case 2:t=zJn(n);break;case 3:t=(r=new im,ES(tY(rY(wrn(wrn(new gX(null,new d3(n.d.b,16)),new Di),new xi),new Ri),new Mi),new Kg(r)),r);break;default:throw dm(new EM("Compaction not supported for "+e+" edges."))}BVn(n,t);Y8(new Rw(n.g),new xg(n))}function fBn(n,e){var t,r,i,a,c,u,s;e.Ug("Process directions",1);t=bG(lIn(n,(eqn(),wWe)),88);if(t!=(Bdn(),s5e)){for(i=Gkn(n.b,0);i.b!=i.d.c;){r=bG($6(i),40);u=bG(lIn(r,(DQn(),Yze)),17).a;s=bG(lIn(r,Zze),17).a;switch(t.g){case 4:s*=-1;break;case 1:a=u;u=s;s=a;break;case 2:c=u;u=-s;s=c}Ehn(r,Yze,Bwn(u));Ehn(r,Zze,Bwn(s))}}e.Vg()}function hBn(n,e){var t;t=new re;!!e&&Yon(t,bG(fQ(n.a,F7e),96));G$(e,422)&&Yon(t,bG(fQ(n.a,_7e),96));if(G$(e,366)){Yon(t,bG(fQ(n.a,unt),96));return t}G$(e,84)&&Yon(t,bG(fQ(n.a,B7e),96));if(G$(e,207)){Yon(t,bG(fQ(n.a,snt),96));return t}if(G$(e,193)){Yon(t,bG(fQ(n.a,ont),96));return t}G$(e,326)&&Yon(t,bG(fQ(n.a,H7e),96));return t}function lBn(n){var e,t,r,i,a,c,u,s;s=new f9;for(u=new nd(n.a);u.a0&&e=0){return false}else{e.p=t.b;ED(t.e,e)}if(i==(YIn(),tEe)||i==iEe){for(c=new nd(e.j);c.an.d[u.p]){t+=t9(n.b,a);x6(n.a,Bwn(a))}}else{++c}}t+=n.b.d*c;while(!RM(n.a)){vrn(n.b,bG(Bz(n.a),17).a)}}return t}function FBn(n){var e,t,r,i,a,c;a=0;e=pEn(n);!!e.kk()&&(a|=4);(n.Bb&sie)!=0&&(a|=2);if(G$(n,102)){t=bG(n,19);i=vMn(t);(t.Bb&Wee)!=0&&(a|=32);if(i){sQ(U0(i));a|=8;c=i.t;(c>1||c==-1)&&(a|=16);(i.Bb&Wee)!=0&&(a|=64)}(t.Bb&S0n)!=0&&(a|=oie);a|=b1n}else{if(G$(e,469)){a|=512}else{r=e.kk();!!r&&(r.i&1)!=0&&(a|=256)}}(n.Bb&512)!=0&&(a|=128);return a}function _Bn(n,e){var t;if(n.f==Gst){t=wJ(Ktn((yAn(),Vut),e));return n.e?t==4&&e!=(T$n(),not)&&e!=(T$n(),Jst)&&e!=(T$n(),Yst)&&e!=(T$n(),Zst):t==2}if(!!n.d&&(n.d.Hc(e)||n.d.Hc(q3(Ktn((yAn(),Vut),e)))||n.d.Hc(szn((yAn(),Vut),n.b,e)))){return true}if(n.f){if(nKn((yAn(),n.f),VJ(Ktn(Vut,e)))){t=wJ(Ktn(Vut,e));return n.e?t==4:t==2}}return false}function BBn(n){var e,t,r,i,a,c,u,s,o,f,h,l,b;l=-1;b=0;for(o=n,f=0,h=o.length;f0&&++b}}}++l}return b}function HBn(n,e,r,i){var a,c,u,s,o,f,h,l;u=bG(YDn(r,(JYn(),I6e)),8);o=u.a;h=u.b+n;a=t.Math.atan2(h,o);a<0&&(a+=f7n);a+=e;a>f7n&&(a-=f7n);s=bG(YDn(i,I6e),8);f=s.a;l=s.b+n;c=t.Math.atan2(l,f);c<0&&(c+=f7n);c+=e;c>f7n&&(c-=f7n);return r$(),lcn(1e-10),t.Math.abs(a-c)<=1e-10||a==c||isNaN(a)&&isNaN(c)?0:ac?1:UL(isNaN(a),isNaN(c))}function UBn(n){var e,t,r,i,a,c,u;u=new rm;for(r=new nd(n.a.b);r.a=n.o){throw dm(new $k)}u=e>>5;c=e&31;a=KV(1,MV(KV(c,1)));i?n.n[t][u]=A3(n.n[t][u],a):n.n[t][u]=O3(n.n[t][u],NG(a));a=KV(a,1);r?n.n[t][u]=A3(n.n[t][u],a):n.n[t][u]=O3(n.n[t][u],NG(a))}catch(s){s=Ofn(s);if(G$(s,333)){throw dm(new kM(l3n+n.o+"*"+n.p+b3n+e+MZn+t+w3n))}else throw dm(s)}}function zBn(n,e,t,r){var i,a,c,u,s,o,f,h,l;l=new Vj(new uv(n));for(u=zfn(fT(Yje,1),e6n,10,0,[e,t]),s=0,o=u.length;s0){r=(!n.n&&(n.n=new gz(unt,n,1,7)),bG(Yin(n.n,0),135)).a;!r||tL(tL((e.a+=' "',e),r),'"')}}else{tL(tL((e.a+=' "',e),t),'"')}tL(Kj(tL(Kj(tL(Kj(tL(Kj((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")");return e.a}function ZBn(n){var e,t,r;if((n.Db&64)!=0)return oOn(n);e=new vx(_ee);t=n.k;if(!t){!n.n&&(n.n=new gz(unt,n,1,7));if(n.n.i>0){r=(!n.n&&(n.n=new gz(unt,n,1,7)),bG(Yin(n.n,0),135)).a;!r||tL(tL((e.a+=' "',e),r),'"')}}else{tL(tL((e.a+=' "',e),t),'"')}tL(Kj(tL(Kj(tL(Kj(tL(Kj((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")");return e.a}function nHn(n,e){var t,r,i,a,c;e==(Aln(),OHe)&&qAn(bG(r7(n.a,(yPn(),LAe)),15));for(i=bG(r7(n.a,(yPn(),LAe)),15).Kc();i.Ob();){r=bG(i.Pb(),105);t=bG(Yq(r.j,0),113).d.j;a=new iB(r.j);g$(a,new Gi);switch(e.g){case 2:CCn(n,a,t,(yun(),GAe),1);break;case 1:case 0:c=$Rn(a);CCn(n,new N2(a,0,c),t,(yun(),GAe),0);CCn(n,new N2(a,c,a.c.length),t,GAe,1)}}}function eHn(n,e){var t,r,i,a,c,u,s;if(e==null||e.length==0){return null}i=bG(z1(n.a,e),143);if(!i){for(r=(u=new Gw(n.b).a.vc().Kc(),new qw(u));r.a.Ob();){t=(a=bG(r.a.Pb(),44),bG(a.md(),143));c=t.c;s=e.length;if(T_(c.substr(c.length-s,s),e)&&(e.length==c.length||ZJ(c,c.length-e.length-1)==46)){if(i){return null}i=t}}!!i&&o2(n.a,e,i)}return i}function tHn(n,e){var t,r,i,a;t=new Xn;r=bG(v8(rY(new gX(null,new d3(n.f,16)),t),ytn(new nn,new en,new on,new fn,zfn(fT($de,1),g1n,108,0,[(Sbn(),Nde),Lde]))),21);i=r.gc();r=bG(v8(rY(new gX(null,new d3(e.f,16)),t),ytn(new nn,new en,new on,new fn,zfn(fT($de,1),g1n,108,0,[Nde,Lde]))),21);a=r.gc();if(ii.p){KLn(a,Y8e);if(a.d){u=a.o.b;e=a.a.b;a.a.b=u-e}}else if(a.j==Y8e&&i.p>n.p){KLn(a,D8e);if(a.d){u=a.o.b;e=a.a.b;a.a.b=-(u-e)}}break}}return i}function aHn(n,e,t,r,i){var a,c,u,s,o,f,h;if(!(G$(e,207)||G$(e,366)||G$(e,193))){throw dm(new jM("Method only works for ElkNode-, ElkLabel and ElkPort-objects."))}c=n.a/2;s=e.i+r-c;f=e.j+i-c;o=s+e.g+n.a;h=f+e.f+n.a;a=new zk;hq(a,new PO(s,f));hq(a,new PO(s,h));hq(a,new PO(o,h));hq(a,new PO(o,f));u=new MDn(a);Yon(u,e);t&&jJ(n.b,e,u);return u}function cHn(n,e,t){var r,i,a,c,u,s,o,f,h,l;a=new PO(e,t);for(f=new nd(n.a);f.a1;if(u){r=new PO(i,t.b);hq(e.a,r)}kcn(e.a,zfn(fT(D3e,1),XZn,8,0,[l,h]))}function CHn(){CHn=O;cHe=new kI(G4n,0);eHe=new kI("NIKOLOV",1);iHe=new kI("NIKOLOV_PIXEL",2);tHe=new kI("NIKOLOV_IMPROVED",3);rHe=new kI("NIKOLOV_IMPROVED_PIXEL",4);YBe=new kI("DUMMYNODE_PERCENTAGE",5);aHe=new kI("NODECOUNT_PERCENTAGE",6);uHe=new kI("NO_BOUNDARY",7);ZBe=new kI("MODEL_ORDER_LEFT_TO_RIGHT",8);nHe=new kI("MODEL_ORDER_RIGHT_TO_LEFT",9)}function IHn(n){var e,t,r,i,a;r=n.length;e=new ZM;a=0;while(a=40;c&&$Gn(n);sVn(n);TFn(n);t=sgn(n);r=0;while(!!t&&r0&&hq(n.f,a)}else{n.c[c]-=o+1;n.c[c]<=0&&n.a[c]>0&&hq(n.e,a)}}}}}function sUn(n,e,t,r){var i,a,c,u,s,o,f;s=new PO(t,r);r_(s,bG(lIn(e,(DQn(),Cze)),8));for(f=Gkn(e.b,0);f.b!=f.d.c;){o=bG($6(f),40);t_(o.e,s);hq(n.b,o)}for(u=bG(v8(q0(new gX(null,new d3(e.a,16))),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[(Sbn(),Lde)]))),15).Kc();u.Ob();){c=bG(u.Pb(),65);for(a=Gkn(c.a,0);a.b!=a.d.c;){i=bG($6(a),8);i.a+=s.a;i.b+=s.b}hq(n.a,c)}}function oUn(n,e){var t,r,i,a;if(0<(G$(n,16)?bG(n,16).gc():B5(n.Kc()))){i=e;if(1=0&&sa*2){f=new tan(h);o=OX(c)/IX(c);s=UJn(f,e,new _k,t,r,i,o);t_(kL(f.e),s);h.c.length=0;a=0;Tm(h.c,f);Tm(h.c,c);a=OX(f)*IX(f)+OX(c)*IX(c)}else{Tm(h.c,c);a+=OX(c)*IX(c)}}return h}function gUn(n,e){var t,r,i,a,c,u;u=bG(lIn(e,(IYn(),m_e)),101);if(!(u==(FPn(),k8e)||u==m8e)){return}i=new PO(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a).b;for(c=new nd(n.a);c.at?e:t;o<=h;++o){if(o==t){u=r++}else{a=i[o];f=w.am(a.Lk());o==e&&(s=o==h&&!f?r-1:r);f&&++r}}l=bG(Ydn(n,e,t),76);u!=s&&rk(n,new men(n.e,7,c,Bwn(u),b.md(),s));return l}}}else{return bG(VNn(n,e,t),76)}return bG(Ydn(n,e,t),76)}function pUn(n,e){var t,r,i,a,c,u,s;e.Ug("Port order processing",1);s=bG(lIn(n,(IYn(),E_e)),430);for(r=new nd(n.b);r.a=0){u=gjn(n,c);if(u){o<22?(s.l|=1<>>1;c.m=f>>>1|(h&1)<<21;c.l=l>>>1|(f&1)<<21;--o}t&&rln(s);if(a){if(r){She=yhn(n);i&&(She=Cfn(She,(crn(),Ihe)))}else{She=M$(n.l,n.m,n.h)}}return s}function MUn(n,e){var t,r,i,a,c,u,s,o,f,h;o=n.e[e.c.p][e.p]+1;s=e.c.a.c.length+1;for(u=new nd(n.a);u.a0&&(w3(0,n.length),n.charCodeAt(0)==45||(w3(0,n.length),n.charCodeAt(0)==43))?1:0;for(r=c;rt){throw dm(new iT(k0n+n+'"'))}return u}function jUn(n){var e,r,i,a,c,u,s;u=new vS;for(c=new nd(n.a);c.a1)&&e==1&&bG(n.a[n.b],10).k==(YIn(),eEe)){Wqn(bG(n.a[n.b],10),(xjn(),z5e))}else if(r&&(!t||(n.c-n.b&n.a.length-1)>1)&&e==1&&bG(n.a[n.c-1&n.a.length-1],10).k==(YIn(),eEe)){Wqn(bG(n.a[n.c-1&n.a.length-1],10),(xjn(),W5e))}else if((n.c-n.b&n.a.length-1)==2){Wqn(bG(Hhn(n),10),(xjn(),z5e));Wqn(bG(Hhn(n),10),W5e)}else{Lxn(n,i)}Q5(n)}function IUn(n,e,r){var i,a,c,u,s;c=0;for(a=new _D((!n.a&&(n.a=new gz(snt,n,10,11)),n.a));a.e!=a.i.gc();){i=bG(iyn(a),27);u="";(!i.n&&(i.n=new gz(unt,i,1,7)),i.n).i==0||(u=bG(Yin((!i.n&&(i.n=new gz(unt,i,1,7)),i.n),0),135).a);s=new mln(c++,e,u);Yon(s,i);Ehn(s,(DQn(),qze),i);s.e.b=i.j+i.f/2;s.f.a=t.Math.max(i.g,1);s.e.a=i.i+i.g/2;s.f.b=t.Math.max(i.f,1);hq(e.b,s);ZAn(r.f,i,s)}}function OUn(n){var e,t,r,i,a;r=bG(lIn(n,(WYn(),EDe)),27);a=bG(YDn(r,(IYn(),r_e)),181).Hc((emn(),b9e));if(!n.e){i=bG(lIn(n,oDe),21);e=new PO(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a);if(i.Hc((o_n(),M$e))){Pyn(r,m_e,(FPn(),m8e));iJn(r,e.a,e.b,false,true)}else{lM(yK(YDn(r,i_e)))||iJn(r,e.a,e.b,true,true)}}a?Pyn(r,r_e,ygn(b9e)):Pyn(r,r_e,(t=bG(Pj(w9e),9),new aB(t,bG(PF(t,t.length),9),0)))}function AUn(n,e,t){var r,i,a,c;if(e[0]>=n.length){t.o=0;return true}switch(ZJ(n,e[0])){case 43:i=1;break;case 45:i=-1;break;default:t.o=0;return true}++e[0];a=e[0];c=HNn(n,e);if(c==0&&e[0]==a){return false}if(e[0]u){u=i;f.c.length=0}i==u&&ED(f,new nA(t.c.i,t))}dZ();g$(f,n.c);WX(n.b,s.p,f)}}}function DUn(n,e){var t,r,i,a,c,u,s,o,f;for(c=new nd(e.b);c.au){u=i;f.c.length=0}i==u&&ED(f,new nA(t.d.i,t))}dZ();g$(f,n.c);WX(n.f,s.p,f)}}}function xUn(n,e){var t,r,i,a,c,u,s,o;o=yK(lIn(e,(eqn(),LWe)));if(o==null||(cJ(o),o)){O$n(n,e);i=new im;for(s=Gkn(e.b,0);s.b!=s.d.c;){c=bG($6(s),40);t=SAn(n,c,null);if(t){Yon(t,e);Tm(i.c,t)}}n.a=null;n.b=null;if(i.c.length>1){for(r=new nd(i);r.a=0&&u!=t){a=new vz(n,1,u,c,null);!r?r=a:r.nj(a)}if(t>=0){a=new vz(n,1,t,u==t?c:null,e);!r?r=a:r.nj(a)}}return r}function _Un(n){var e,t,r;if(n.b==null){r=new YM;if(n.i!=null){ZA(r,n.i);r.a+=":"}if((n.f&256)!=0){if((n.f&256)!=0&&n.a!=null){hY(n.i)||(r.a+="//",r);ZA(r,n.a)}if(n.d!=null){r.a+="/";ZA(r,n.d)}(n.f&16)!=0&&(r.a+="/",r);for(e=0,t=n.j.length;el){return false}h=(s=bXn(r,l,false),s.a);if(f+u+h<=e.b){ken(t,a-t.s);t.c=true;ken(r,a-t.s);lMn(r,t.s,t.t+t.d+u);r.k=true;Wsn(t.q,r);b=true;if(i){gcn(e,r);r.j=e;if(n.c.length>c){bEn((b3(c,n.c.length),bG(n.c[c],186)),r);(b3(c,n.c.length),bG(n.c[c],186)).a.c.length==0&&s7(n,c)}}}return b}function VUn(n,e){var t,r,i,a,c,u;e.Ug("Partition midprocessing",1);i=new U1;ES(tY(new gX(null,new d3(n.a,16)),new kr),new Eg(i));if(i.d==0){return}u=bG(v8(g3((a=i.i,new gX(null,(!a?i.i=new HD(i,i.c):a).Nc()))),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[(Sbn(),Lde)]))),15);r=u.Kc();t=bG(r.Pb(),17);while(r.Ob()){c=bG(r.Pb(),17);HRn(bG(r7(i,t),21),bG(r7(i,c),21));t=c}e.Vg()}function zUn(n,e,t){var r,i,a,c,u,s,o,f;if(e.p==0){e.p=1;c=t;if(!c){i=new im;a=(r=bG(Pj(e9e),9),new aB(r,bG(PF(r,r.length),9),0));c=new nA(i,a)}bG(c.a,15).Fc(e);e.k==(YIn(),nEe)&&bG(c.b,21).Fc(bG(lIn(e,(WYn(),cDe)),64));for(s=new nd(e.j);s.a0){i=bG(n.Ab.g,2033);if(e==null){for(a=0;ar.s&&sc){return UQn(),$8e}break;case 4:case 3:if(f<0){return UQn(),D8e}else if(f+t>a){return UQn(),Y8e}}s=(o+u/2)/c;r=(f+t/2)/a;return s+r<=1&&s-r<=0?(UQn(),n9e):s+r>=1&&s-r>=0?(UQn(),$8e):r<.5?(UQn(),D8e):(UQn(),Y8e)}function aGn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w,d;t=false;f=bM(MK(lIn(e,(IYn(),V_e))));w=M1n*f;for(i=new nd(e.b);i.as+w){d=h.g+l.g;l.a=(l.g*l.a+h.g*h.a)/d;l.g=d;h.f=l;t=true}}a=u;h=l}}return t}function cGn(n,e,t,r,i,a,c){var u,s,o,f,h,l;l=new fN;for(o=e.Kc();o.Ob();){u=bG(o.Pb(),853);for(h=new nd(u.Rf());h.a0){if(s.a){f=s.b.Mf().b;if(a>f){if(n.v||s.c.d.c.length==1){u=(a-f)/2;s.d.d=u;s.d.a=u}else{r=bG(Yq(s.c.d,0),187).Mf().b;i=(r-f)/2;s.d.d=t.Math.max(0,i);s.d.a=a-i-f}}}else{s.d.a=n.t+a}}else if(fz(n.u)){c=OCn(s.b);c.d<0&&(s.d.d=-c.d);c.d+c.a>s.b.Mf().b&&(s.d.a=c.d+c.a-s.b.Mf().b)}}}function oGn(){oGn=O;Jye=new qN((JYn(),O6e),Bwn(1));rMe=new qN(X6e,80);tMe=new qN(F6e,5);Rye=new qN(g4e,r4n);Yye=new qN(A6e,Bwn(1));eMe=new qN($6e,(Qx(),true));zye=new NN(50);Vye=new qN(c6e,zye);Fye=B4e;Wye=k6e;Kye=new qN(C4e,false);Xye=a6e;Gye=Z4e;qye=t6e;Uye=J4e;Hye=W4e;Qye=j6e;Bye=(lOn(),Eye);iMe=Oye;_ye=jye;Zye=Pye;nMe=Iye;uMe=Z6e;oMe=r5e;cMe=Y6e;aMe=J6e;sMe=($wn(),P9e);new qN(n5e,sMe)}function fGn(n,e){var t;switch(Prn(n)){case 6:return HA(e);case 7:return GA(e);case 8:return UA(e);case 3:return Array.isArray(e)&&(t=Prn(e),!(t>=14&&t<=16));case 11:return e!=null&&typeof e===vZn;case 12:return e!=null&&(typeof e===bZn||typeof e==vZn);case 0:return Oyn(e,n.__elementTypeId$);case 2:return Kz(e)&&!(e.Tm===I);case 1:return Kz(e)&&!(e.Tm===I)||Oyn(e,n.__elementTypeId$);default:return true}}function hGn(n){var e,r,i,a;i=n.o;ZK();if(n.A.dc()||bdn(n.A,ame)){a=i.a}else{n.D?a=t.Math.max(i.a,yNn(n.f)):a=yNn(n.f);if(n.A.Hc((emn(),h9e))&&!n.B.Hc((hUn(),y9e))){a=t.Math.max(a,yNn(bG(xJ(n.p,(UQn(),D8e)),252)));a=t.Math.max(a,yNn(bG(xJ(n.p,Y8e),252)))}e=gon(n);!!e&&(a=t.Math.max(a,e.a))}lM(yK(n.e.Tf().of((JYn(),Z4e))))?i.a=t.Math.max(i.a,a):i.a=a;r=n.f.i;r.c=0;r.b=a;rqn(n.f)}function lGn(n,e){var r,i,a,c;i=t.Math.min(t.Math.abs(n.c-(e.c+e.b)),t.Math.abs(n.c+n.b-e.c));c=t.Math.min(t.Math.abs(n.d-(e.d+e.a)),t.Math.abs(n.d+n.a-e.d));r=t.Math.abs(n.c+n.b/2-(e.c+e.b/2));if(r>n.b/2+e.b/2){return 1}a=t.Math.abs(n.d+n.a/2-(e.d+e.a/2));if(a>n.a/2+e.a/2){return 1}if(r==0&&a==0){return 0}if(r==0){return c/a+1}if(a==0){return i/r+1}return t.Math.min(i/r,c/a)+1}function bGn(n,e){var t,r,i,a,c,u,s;a=0;u=0;s=0;for(i=new nd(n.f.e);i.a0&&n.d!=(trn(),HMe)&&(u+=c*(r.d.a+n.a[e.a][r.a]*(e.d.a-r.d.a)/t));t>0&&n.d!=(trn(),_Me)&&(s+=c*(r.d.b+n.a[e.a][r.a]*(e.d.b-r.d.b)/t))}switch(n.d.g){case 1:return new PO(u/a,e.d.b);case 2:return new PO(e.d.a,s/a);default:return new PO(u/a,s/a)}}function wGn(n){var e,t,r,i,a,c;t=(!n.a&&(n.a=new PD(K7e,n,5)),n.a).i+2;c=new H7(t);ED(c,new PO(n.j,n.k));ES(new gX(null,(!n.a&&(n.a=new PD(K7e,n,5)),new d3(n.a,16))),new Zv(c));ED(c,new PO(n.b,n.c));e=1;while(e0){dhn(s,false,(Bdn(),o5e));dhn(s,true,f5e)}Lin(e.g,new zC(n,t));jJ(n.g,e,t)}function vGn(){vGn=O;var n;ole=zfn(fT(Ght,1),z1n,28,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]);fle=$nn(Ght,z1n,28,37,15,1);hle=zfn(fT(Ght,1),z1n,28,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]);lle=$nn(Xht,j0n,28,37,14,1);for(n=2;n<=36;n++){fle[n]=c0(t.Math.pow(n,ole[n]));lle[n]=pSn(JZn,fle[n])}}function pGn(n){var e;if((!n.a&&(n.a=new gz(U7e,n,6,6)),n.a).i!=1){throw dm(new jM(See+(!n.a&&(n.a=new gz(U7e,n,6,6)),n.a).i))}e=new zk;!!Afn(bG(Yin((!n.b&&(n.b=new g_(B7e,n,4,7)),n.b),0),84))&&esn(e,MYn(n,Afn(bG(Yin((!n.b&&(n.b=new g_(B7e,n,4,7)),n.b),0),84)),false));!!Afn(bG(Yin((!n.c&&(n.c=new g_(B7e,n,5,8)),n.c),0),84))&&esn(e,MYn(n,Afn(bG(Yin((!n.c&&(n.c=new g_(B7e,n,5,8)),n.c),0),84)),true));return e}function mGn(n,e){var t,r,i,a,c;e.d?i=n.a.c==(p0(),Cqe)?Qgn(e.b):Jgn(e.b):i=n.a.c==(p0(),Pqe)?Qgn(e.b):Jgn(e.b);a=false;for(r=new GV(sx(i.a.Kc(),new d));dDn(r);){t=bG(K9(r),18);c=lM(n.a.f[n.a.g[e.b.p].p]);if(!c&&!j9(t)&&t.c.i.c==t.d.i.c){continue}if(lM(n.a.n[n.a.g[e.b.p].p])||lM(n.a.n[n.a.g[e.b.p].p])){continue}a=true;if(fS(n.b,n.a.g[jTn(t,e.b).p])){e.c=true;e.a=t;return e}}e.c=a;e.a=null;return e}function kGn(n,e,t){var r,i,a,c,u,s,o;r=t.gc();if(r==0){return false}else{if(n.Pj()){s=n.Qj();apn(n,e,t);c=r==1?n.Ij(3,null,t.Kc().Pb(),e,s):n.Ij(5,null,t,e,s);if(n.Mj()){u=r<100?null:new fj(r);a=e+r;for(i=e;i0){for(u=0;u>16==-15&&n.Cb.Yh()&&Ntn(new pen(n.Cb,9,13,t,n.c,Vyn(xtn(bG(n.Cb,62)),n)))}else if(G$(n.Cb,90)){if(n.Db>>16==-23&&n.Cb.Yh()){e=n.c;G$(e,90)||(e=(rZn(),nit));G$(t,90)||(t=(rZn(),nit));Ntn(new pen(n.Cb,9,10,t,e,Vyn(Y5(bG(n.Cb,29)),n)))}}}}return n.c}function CGn(n,e,t){var r,i,a,c,u,s,o,f,h;t.Ug("Hyperedge merging",1);NDn(n,e);s=new K4(e.b,0);while(s.b0;u=dvn(e,a);t?Lx(u.b,e):Lx(u.g,e);Obn(u).c.length==1&&(w8(r,u,r.c.b,r.c),true);i=new nA(a,e);x6(n.o,i);Ttn(n.e.a,a)}}function DGn(n,e){var r,i,a,c,u,s,o;i=t.Math.abs(xz(n.b).a-xz(e.b).a);s=t.Math.abs(xz(n.b).b-xz(e.b).b);a=0;o=0;r=1;u=1;if(i>n.b.b/2+e.b.b/2){a=t.Math.min(t.Math.abs(n.b.c-(e.b.c+e.b.b)),t.Math.abs(n.b.c+n.b.b-e.b.c));r=1-a/i}if(s>n.b.a/2+e.b.a/2){o=t.Math.min(t.Math.abs(n.b.d-(e.b.d+e.b.a)),t.Math.abs(n.b.d+n.b.a-e.b.d));u=1-o/s}c=t.Math.min(r,u);return(1-c)*t.Math.sqrt(i*i+s*s)}function xGn(n){var e,t,r,i;mQn(n,n.e,n.f,(v0(),zXe),true,n.c,n.i);mQn(n,n.e,n.f,zXe,false,n.c,n.i);mQn(n,n.e,n.f,WXe,true,n.c,n.i);mQn(n,n.e,n.f,WXe,false,n.c,n.i);SGn(n,n.c,n.e,n.f,n.i);r=new K4(n.i,0);while(r.b=65;t--){Hft[t]=t-65<<24>>24}for(r=122;r>=97;r--){Hft[r]=r-97+26<<24>>24}for(i=57;i>=48;i--){Hft[i]=i-48+52<<24>>24}Hft[43]=62;Hft[47]=63;for(a=0;a<=25;a++)Uft[a]=65+a&$1n;for(c=26,s=0;c<=51;++c,s++)Uft[c]=97+s&$1n;for(n=52,u=0;n<=61;++n,u++)Uft[n]=48+u&$1n;Uft[62]=43;Uft[63]=47}function FGn(n,e){var r,i,a,c,u,s;a=asn(n);s=asn(e);if(a==s){if(n.e==e.e&&n.a<54&&e.a<54){return n.fe.f?1:0}i=n.e-e.e;r=(n.d>0?n.d:t.Math.floor((n.a-1)*O0n)+1)-(e.d>0?e.d:t.Math.floor((e.a-1)*O0n)+1);if(r>i+1){return a}else if(r0&&(u=I5(u,qqn(i)));return Lmn(c,u)}}else return af){b=0;w+=o+e;o=0}cHn(u,b,w);r=t.Math.max(r,b+h.a);o=t.Math.max(o,h.b);b+=h.a+e}return new PO(r+e,w+o+e)}function HGn(n,e){var t,r,i,a,c,u,s;if(!d0(n)){throw dm(new EM(Eee))}r=d0(n);a=r.g;i=r.f;if(a<=0&&i<=0){return UQn(),Z8e}u=n.i;s=n.j;switch(e.g){case 2:case 1:if(u<0){return UQn(),n9e}else if(u+n.g>a){return UQn(),$8e}break;case 4:case 3:if(s<0){return UQn(),D8e}else if(s+n.f>i){return UQn(),Y8e}}c=(u+n.g/2)/a;t=(s+n.f/2)/i;return c+t<=1&&c-t<=0?(UQn(),n9e):c+t>=1&&c-t>=0?(UQn(),$8e):t<.5?(UQn(),D8e):(UQn(),Y8e)}function UGn(n,e,t,r,i){var a,c;a=Rgn(O3(e[0],A0n),O3(r[0],A0n));n[0]=MV(a);a=FV(a,32);if(t>=i){for(c=1;c0){i.b[c++]=0;i.b[c++]=a.b[0]-1}for(e=1;e0){ew(s,s.d-i.d);i.c==(q7(),kXe)&&Zb(s,s.a-i.d);s.d<=0&&s.i>0&&(w8(e,s,e.c.b,e.c),true)}}}for(a=new nd(n.f);a.a0){tw(u,u.i-i.d);i.c==(q7(),kXe)&&nw(u,u.b-i.d);u.i<=0&&u.d>0&&(w8(t,u,t.c.b,t.c),true)}}}}function WGn(n,e,t,r,i){var a,c,u,s,o,f,h,l,b;dZ();g$(n,new qs);c=lG(n);b=new im;l=new im;u=null;s=0;while(c.b!=0){a=bG(c.b==0?null:(PK(c.b!=0),Rin(c,c.a.a)),163);if(!u||OX(u)*IX(u)/21&&(s>OX(u)*IX(u)/2||c.b==0)){h=new tan(l);f=OX(u)/IX(u);o=UJn(h,e,new _k,t,r,i,f);t_(kL(h.e),o);u=h;Tm(b.c,h);s=0;l.c.length=0}}}Dfn(b,l);return b}function QGn(n,e,t,r,i){pS();var a,c,u,s,o,f,h;hW(n,"src");hW(t,"dest");h=Cbn(n);s=Cbn(t);SG((h.i&4)!=0,"srcType is not an array");SG((s.i&4)!=0,"destType is not an array");f=h.c;c=s.c;SG((f.i&1)!=0?f==c:(c.i&1)==0,"Array types don't match");Fhn(n,e,t,r,i);if((f.i&1)==0&&h!=s){o=Uan(n);a=Uan(t);if(BA(n)===BA(t)&&er;){bQ(a,u,o[--e])}}else{for(u=r+i;r0);r.a.Xb(r.c=--r.b);h>l+s&&RQ(r)}for(c=new nd(b);c.a0);r.a.Xb(r.c=--r.b)}}}}function ZGn(){eZn();var n,e,t,r,i,a;if(sht)return sht;n=(++Tht,new U3(4));CXn(n,EJn(ece,true));vWn(n,EJn("M",true));vWn(n,EJn("C",true));a=(++Tht,new U3(4));for(r=0;r<11;r++){VFn(a,r,r)}e=(++Tht,new U3(4));CXn(e,EJn("M",true));VFn(e,4448,4607);VFn(e,65438,65439);i=(++Tht,new e$(2));jVn(i,n);jVn(i,uht);t=(++Tht,new e$(2));t.Jm(NX(a,EJn("L",true)));t.Jm(e);t=(++Tht,new a8(3,t));t=(++Tht,new uW(i,t));sht=t;return sht}function nqn(n,e){var t,r,i,a,c,u,s,o;t=new RegExp(e,"g");s=$nn(vle,XZn,2,0,6,1);r=0;o=n;a=null;while(true){u=t.exec(o);if(u==null||o==""){s[r]=o;break}else{c=u.index;s[r]=(Unn(0,c,o.length),o.substr(0,c));o=o1(o,c+u[0].length,o.length);t.lastIndex=0;if(a==o){s[r]=(Unn(0,1,o.length),o.substr(0,1));o=(w3(1,o.length+1),o.substr(1))}a=o;++r}}if(n.length>0){i=s.length;while(i>0&&s[i-1]==""){--i}i0){l-=i[0]+n.c;i[0]+=n.c}i[2]>0&&(l-=i[2]+n.c);i[1]=t.Math.max(i[1],l);QX(n.a[1],r.c+e.b+i[0]-(i[1]-l)/2,i[1])}for(c=n.a,s=0,f=c.length;s0?(n.n.c.length-1)*n.i:0;for(i=new nd(n.n);i.a1){for(r=Gkn(i,0);r.b!=r.d.c;){t=bG($6(r),235);a=0;for(s=new nd(t.e);s.a0){e[0]+=n.c;l-=e[0]}e[2]>0&&(l-=e[2]+n.c);e[1]=t.Math.max(e[1],l);JX(n.a[1],i.d+r.d+e[0]-(e[1]-l)/2,e[1])}else{d=i.d+r.d;w=i.a-r.d-r.a;for(u=n.a,o=0,h=u.length;o0||Ggn(a.b.d,n.b.d+n.b.a)==0&&i.b<0||Ggn(a.b.d+a.b.a,n.b.d)==0&&i.b>0){s=0;break}}else{s=t.Math.min(s,RLn(n,a,i))}s=t.Math.min(s,bqn(n,c,s,i))}return s}function wqn(n,e){var t,r,i,a,c,u,s;if(n.b<2){throw dm(new jM("The vector chain must contain at least a source and a target point."))}i=(PK(n.b!=0),bG(n.a.a.c,8));PN(e,i.a,i.b);s=new iR((!e.a&&(e.a=new PD(K7e,e,5)),e.a));c=Gkn(n,1);while(c.a=0&&a!=t){throw dm(new jM(Gte))}}i=0;for(s=0;sbM(lD(c.g,c.d[0]).a)){PK(s.b>0);s.a.Xb(s.c=--s.b);MF(s,c);i=true}else if(!!u.e&&u.e.gc()>0){a=(!u.e&&(u.e=new im),u.e).Mc(e);o=(!u.e&&(u.e=new im),u.e).Mc(t);if(a||o){(!u.e&&(u.e=new im),u.e).Fc(c);++c.c}}}i||(Tm(r.c,c),true)}function pqn(n,e,t){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v;h=n.a.i+n.a.g/2;l=n.a.i+n.a.g/2;w=e.i+e.g/2;g=e.j+e.f/2;u=new PO(w,g);o=bG(YDn(e,(JYn(),I6e)),8);o.a=o.a+h;o.b=o.b+l;a=(u.b-o.b)/(u.a-o.a);r=u.b-a*u.a;d=t.i+t.g/2;v=t.j+t.f/2;s=new PO(d,v);f=bG(YDn(t,I6e),8);f.a=f.a+h;f.b=f.b+l;c=(s.b-f.b)/(s.a-f.a);i=s.b-c*s.a;b=(r-i)/(c-a);if(o.a>>0,"0"+e.toString(16));r="\\x"+o1(t,t.length-2,t.length)}else if(n>=S0n){t=(e=n>>>0,"0"+e.toString(16));r="\\v"+o1(t,t.length-6,t.length)}else r=""+String.fromCharCode(n&$1n)}return r}function Cqn(n){var e,t,r;if(wN(bG(lIn(n,(IYn(),m_e)),101))){for(t=new nd(n.j);t.a=e.o&&t.f<=e.f||e.a*.5<=t.f&&e.a*1.5>=t.f){c=bG(Yq(e.n,e.n.c.length-1),209);if(c.e+c.d+t.g+i<=r&&(a=bG(Yq(e.n,e.n.c.length-1),209),a.f-n.f+t.f<=n.b||n.a.c.length==1)){svn(e,t);return true}else if(e.s+t.g<=r&&(e.t+e.d+t.f+i<=n.b||n.a.c.length==1)){ED(e.b,t);u=bG(Yq(e.n,e.n.c.length-1),209);ED(e.n,new f0(e.s,u.f+u.a+e.i,e.i));YMn(bG(Yq(e.n,e.n.c.length-1),209),t);aqn(e,t);return true}}return false}function Lqn(n,e,t){var r,i,a,c;if(n.Pj()){i=null;a=n.Qj();r=n.Ij(1,c=srn(n,e,t),t,e,a);if(n.Mj()&&!(n.Yi()&&c!=null?bdn(c,t):BA(c)===BA(t))){c!=null&&(i=n.Oj(c,i));i=n.Nj(t,i);n.Tj()&&(i=n.Wj(c,t,i));if(!i){n.Jj(r)}else{i.nj(r);i.oj()}}else{n.Tj()&&(i=n.Wj(c,t,i));if(!i){n.Jj(r)}else{i.nj(r);i.oj()}}return c}else{c=srn(n,e,t);if(n.Mj()&&!(n.Yi()&&c!=null?bdn(c,t):BA(c)===BA(t))){i=null;c!=null&&(i=n.Oj(c,null));i=n.Nj(t,i);!!i&&i.oj()}return c}}function Nqn(n,e){var t,r,i,a,c;e.Ug("Path-Like Graph Wrapping",1);if(n.b.c.length==0){e.Vg();return}i=new kDn(n);c=(i.i==null&&(i.i=hsn(i,new Ma)),bM(i.i)*i.f);t=c/(i.i==null&&(i.i=hsn(i,new Ma)),bM(i.i));if(i.b>t){e.Vg();return}switch(bG(lIn(n,(IYn(),oBe)),351).g){case 2:a=new Ea;break;case 0:a=new da;break;default:a=new Sa}r=a.og(n,i);if(!a.pg()){switch(bG(lIn(n,dBe),352).g){case 2:r=ULn(i,r);break;case 1:r=MPn(i,r)}}EVn(n,i,r);e.Vg()}function $qn(n,e){var r,i,a,c,u,s,o,f;e%=24;if(n.q.getHours()!=e){i=new t.Date(n.q.getTime());i.setDate(i.getDate()+1);s=n.q.getTimezoneOffset()-i.getTimezoneOffset();if(s>0){o=s/60|0;f=s%60;a=n.q.getDate();r=n.q.getHours();r+o>=24&&++a;c=new t.Date(n.q.getFullYear(),n.q.getMonth(),a,e+o,n.q.getMinutes()+f,n.q.getSeconds(),n.q.getMilliseconds());n.q.setTime(c.getTime())}}u=n.q.getTime();n.q.setTime(u+36e5);n.q.getHours()!=e&&n.q.setTime(u)}function Dqn(n,e){var t,r,i,a;h3(n.d,n.e);n.c.a.$b();if(bM(MK(lIn(e.j,(IYn(),UKe))))!=0||bM(MK(lIn(e.j,UKe)))!=0){t=_3n;BA(lIn(e.j,zKe))!==BA((Smn(),hHe))&&Ehn(e.j,(WYn(),sDe),(Qx(),true));a=bG(lIn(e.j,Y_e),17).a;for(i=0;ii&&++o;ED(c,(b3(u+o,e.c.length),bG(e.c[u+o],17)));s+=(b3(u+o,e.c.length),bG(e.c[u+o],17)).a-r;++t;while(t=v&&n.e[o.p]>d*n.b||k>=r*v){Tm(b.c,s);s=new im;esn(u,c);c.a.$b();f-=h;w=t.Math.max(w,f*n.b+g);f+=k;m=k;k=0;h=0;g=0}}return new nA(w,b)}function Fqn(n){var e,t,r,i,a,c,u;if(!n.d){u=new Io;e=Cit;a=e.a.zc(n,e);if(a==null){for(r=new _D(a1(n));r.e!=r.i.gc();){t=bG(iyn(r),29);NW(u,Fqn(t))}e.a.Bc(n)!=null;e.a.gc()==0&&undefined}c=u.i;for(i=(!n.q&&(n.q=new gz(Irt,n,11,10)),new _D(n.q));i.e!=i.i.gc();++c){bG(iyn(i),411)}NW(u,(!n.q&&(n.q=new gz(Irt,n,11,10)),n.q));vbn(u);n.d=new jL((bG(Yin(yZ((cQ(),_rt).o),9),19),u.i),u.g);n.e=bG(u.g,688);n.e==null&&(n.e=Iit);S9(n).b&=-17}return n.d}function _qn(n,e,t,r){var i,a,c,u,s,o;o=ZKn(n.e.Dh(),e);s=0;i=bG(n.g,124);LP();if(bG(e,69).xk()){for(c=0;c1||w==-1){h=bG(d,71);l=bG(f,71);if(h.dc()){l.$b()}else{c=!!vMn(e);a=0;for(u=n.a?h.Kc():h.Ii();u.Ob();){o=bG(u.Pb(),58);i=bG(hrn(n,o),58);if(!i){if(n.b&&!c){l.Gi(a,o);++a}}else{if(c){s=l.dd(i);s==-1?l.Gi(a,i):a!=s&&l.Ui(a,i)}else{l.Gi(a,i)}++a}}}}else{if(d==null){f.Wb(null)}else{i=hrn(n,d);i==null?n.b&&!vMn(e)&&f.Wb(d):f.Wb(i)}}}}}function Hqn(n,e){var r,i,a,c,u,s,o,f;r=new Kt;for(a=new GV(sx(Qgn(e).a.Kc(),new d));dDn(a);){i=bG(K9(a),18);if(j9(i)){continue}s=i.c.i;if(qPn(s,BSe)){f=z_n(n,s,BSe,_Se);if(f==-1){continue}r.b=t.Math.max(r.b,f);!r.a&&(r.a=new im);ED(r.a,s)}}for(u=new GV(sx(Jgn(e).a.Kc(),new d));dDn(u);){c=bG(K9(u),18);if(j9(c)){continue}o=c.d.i;if(qPn(o,_Se)){f=z_n(n,o,_Se,BSe);if(f==-1){continue}r.d=t.Math.max(r.d,f);!r.c&&(r.c=new im);ED(r.c,o)}}return r}function Uqn(n,e,t,r){var i,a,c,u,s,o,f;if(t.d.i==e.i){return}i=new yMn(n);Vb(i,(YIn(),tEe));Ehn(i,(WYn(),EDe),t);Ehn(i,(IYn(),m_e),(FPn(),m8e));Tm(r.c,i);c=new vOn;l2(c,i);KLn(c,(UQn(),n9e));u=new vOn;l2(u,i);KLn(u,$8e);f=t.d;b2(t,c);a=new zZ;Yon(a,t);Ehn(a,DFe,null);f2(a,u);b2(a,f);o=new K4(t.b,0);while(o.b1e6){throw dm(new mM("power of ten too big"))}if(n<=pZn){return _9(c$n(Ble[1],e),e)}r=c$n(Ble[1],pZn);i=r;t=Xon(n-pZn);e=c0(n%pZn);while(kwn(t,pZn)>0){i=I5(i,r);t=Fgn(t,pZn)}i=I5(i,c$n(Ble[1],e));i=_9(i,pZn);t=Xon(n-pZn);while(kwn(t,pZn)>0){i=_9(i,pZn);t=Fgn(t,pZn)}i=_9(i,e);return i}function Xqn(n){var e,t,r,i,a,c,u,s,o,f;for(s=new nd(n.a);s.ao&&r>o){f=u;o=bM(e.p[u.p])+bM(e.d[u.p])+u.o.b+u.d.a}else{i=false;t._g()&&t.bh("bk node placement breaks on "+u+" which should have been after "+f);break}}if(!i){break}}t._g()&&t.bh(e+" is feasible: "+i);return i}function Jqn(n,e,t,r){var i,a,c,u,s,o,f,h,l;a=new yMn(n);Vb(a,(YIn(),iEe));Ehn(a,(IYn(),m_e),(FPn(),m8e));i=0;if(e){c=new vOn;Ehn(c,(WYn(),EDe),e);Ehn(a,EDe,e.i);KLn(c,(UQn(),n9e));l2(c,a);l=B4(e.e);for(o=l,f=0,h=o.length;f0){if(i<0&&f.a){i=s;a=o[0];r=0}if(i>=0){u=f.b;if(s==i){u-=r++;if(u==0){return 0}}if(!oJn(e,o,f,u,c)){s=i-1;o[0]=a;continue}}else{i=-1;if(!oJn(e,o,f,0,c)){return 0}}}else{i=-1;if(ZJ(f.c,0)==32){h=o[0];mrn(e,o);if(o[0]>h){continue}}else if(n1(e,f.c,o[0])){o[0]+=f.c.length;continue}return 0}}if(!RQn(c,t)){return 0}return o[0]}function eXn(n,e,t){var r,i,a,c,u,s,o,f,h,l;f=new UV(new Gd(t));u=$nn(qht,_2n,28,n.f.e.c.length,16,1);Yz(u,u.length);t[e.a]=0;for(o=new nd(n.f.e);o.a=0&&!uTn(n,f,h)){--h}i[f]=h}for(b=0;b=0&&!uTn(n,u,w)){--u}a[w]=u}for(s=0;se[l]&&lr[s]&&VBn(n,s,l,false,true)}}}function rXn(n){var e,t,r,i,a,c,u,s;t=lM(yK(lIn(n,(oGn(),Kye))));a=n.a.c.d;u=n.a.d.d;if(t){c=jD(r_(new PO(u.a,u.b),a),.5);s=jD(_$(n.e),.5);e=r_(t_(new PO(a.a,a.b),c),s);qR(n.d,e)}else{i=bM(MK(lIn(n.a,tMe)));r=n.d;if(a.a>=u.a){if(a.b>=u.b){r.a=u.a+(a.a-u.a)/2+i;r.b=u.b+(a.b-u.b)/2-i-n.e.b}else{r.a=u.a+(a.a-u.a)/2+i;r.b=a.b+(u.b-a.b)/2+i}}else{if(a.b>=u.b){r.a=a.a+(u.a-a.a)/2+i;r.b=u.b+(a.b-u.b)/2+i}else{r.a=a.a+(u.a-a.a)/2+i;r.b=a.b+(u.b-a.b)/2-i-n.e.b}}}}function iXn(n){var e,t,r,i,a,c,u,s;if(!n.f){s=new Po;u=new Po;e=Cit;c=e.a.zc(n,e);if(c==null){for(a=new _D(a1(n));a.e!=a.i.gc();){i=bG(iyn(a),29);NW(s,iXn(i))}e.a.Bc(n)!=null;e.a.gc()==0&&undefined}for(r=(!n.s&&(n.s=new gz(mrt,n,21,17)),new _D(n.s));r.e!=r.i.gc();){t=bG(iyn(r),179);G$(t,102)&&cen(u,bG(t,19))}vbn(u);n.r=new tq(n,(bG(Yin(yZ((cQ(),_rt).o),6),19),u.i),u.g);NW(s,n.r);vbn(s);n.f=new jL((bG(Yin(yZ(_rt.o),5),19),s.i),s.g);S9(n).b&=-3}return n.f}function aXn(n){dP(n,new dCn(GT(_T(UT(HT(new vs,N3n),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new fe)));z4(n,N3n,$3n,tyn(zke));z4(n,N3n,D3n,tyn(Hke));z4(n,N3n,x3n,tyn(Rke));z4(n,N3n,R3n,tyn(Uke));z4(n,N3n,$2n,tyn(Xke));z4(n,N3n,D2n,tyn(qke));z4(n,N3n,N2n,tyn(Vke));z4(n,N3n,x2n,tyn(Gke));z4(n,N3n,C3n,tyn(Fke));z4(n,N3n,I3n,tyn(Kke));z4(n,N3n,O3n,tyn(_ke));z4(n,N3n,A3n,tyn(Bke))}function cXn(){cXn=O;jnt=zfn(fT(Uht,1),L1n,28,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]);Ent=new RegExp("[ \t\n\r\f]+");try{Tnt=zfn(fT(uat,1),jZn,2114,0,[new Up((mL(),Npn("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",pF((Qy(),Qy(),che))))),new Up(Npn("yyyy-MM-dd'T'HH:mm:ss'.'SSS",pF((null,che)))),new Up(Npn("yyyy-MM-dd'T'HH:mm:ss",pF((null,che)))),new Up(Npn("yyyy-MM-dd'T'HH:mm",pF((null,che)))),new Up(Npn("yyyy-MM-dd",pF((null,che))))])}catch(n){n=Ofn(n);if(!G$(n,82))throw dm(n)}}function uXn(n,e){var t,r,i,a;i=bRn(n.d,1)!=0;r=oHn(n,e);if(r==0&&lM(yK(lIn(e.j,(WYn(),sDe))))){return 0}!lM(yK(lIn(e.j,(WYn(),sDe))))&&!lM(yK(lIn(e.j,FDe)))||BA(lIn(e.j,(IYn(),zKe)))===BA((Smn(),hHe))?e.c.mg(e.e,i):i=lM(yK(lIn(e.j,sDe)));LKn(n,e,i,true);lM(yK(lIn(e.j,FDe)))&&Ehn(e.j,FDe,(Qx(),false));if(lM(yK(lIn(e.j,sDe)))){Ehn(e.j,sDe,(Qx(),false));Ehn(e.j,FDe,true)}t=oHn(n,e);do{Wun(n);if(t==0){return 0}i=!i;a=t;LKn(n,e,i,false);t=oHn(n,e)}while(a>t);return a}function sXn(n,e){var t,r,i,a;i=bRn(n.d,1)!=0;r=XAn(n,e);if(r==0&&lM(yK(lIn(e.j,(WYn(),sDe))))){return 0}!lM(yK(lIn(e.j,(WYn(),sDe))))&&!lM(yK(lIn(e.j,FDe)))||BA(lIn(e.j,(IYn(),zKe)))===BA((Smn(),hHe))?e.c.mg(e.e,i):i=lM(yK(lIn(e.j,sDe)));LKn(n,e,i,true);lM(yK(lIn(e.j,FDe)))&&Ehn(e.j,FDe,(Qx(),false));if(lM(yK(lIn(e.j,sDe)))){Ehn(e.j,sDe,(Qx(),false));Ehn(e.j,FDe,true)}t=XAn(n,e);do{Wun(n);if(t==0){return 0}i=!i;a=t;LKn(n,e,i,false);t=XAn(n,e)}while(a>t);return a}function oXn(n,e,r,i){var a,c,u,s,o,f,h,l,b;o=r_(new PO(r.a,r.b),n);f=o.a*e.b-o.b*e.a;h=e.a*i.b-e.b*i.a;l=(o.a*i.b-o.b*i.a)/h;b=f/h;if(h==0){if(f==0){a=t_(new PO(r.a,r.b),jD(new PO(i.a,i.b),.5));c=hen(n,a);u=hen(t_(new PO(n.a,n.b),e),a);s=t.Math.sqrt(i.a*i.a+i.b*i.b)*.5;if(c=0&&l<=1&&b>=0&&b<=1?t_(new PO(n.a,n.b),jD(new PO(e.a,e.b),l)):null}}function fXn(n,e,t){var r,i,a,c,u;r=bG(lIn(n,(IYn(),WKe)),21);t.a>e.a&&(r.Hc((iPn(),a4e))?n.c.a+=(t.a-e.a)/2:r.Hc(u4e)&&(n.c.a+=t.a-e.a));t.b>e.b&&(r.Hc((iPn(),o4e))?n.c.b+=(t.b-e.b)/2:r.Hc(s4e)&&(n.c.b+=t.b-e.b));if(bG(lIn(n,(WYn(),oDe)),21).Hc((o_n(),M$e))&&(t.a>e.a||t.b>e.b)){for(u=new nd(n.a);u.ae.a&&(r.Hc((iPn(),a4e))?n.c.a+=(t.a-e.a)/2:r.Hc(u4e)&&(n.c.a+=t.a-e.a));t.b>e.b&&(r.Hc((iPn(),o4e))?n.c.b+=(t.b-e.b)/2:r.Hc(s4e)&&(n.c.b+=t.b-e.b));if(bG(lIn(n,(WYn(),oDe)),21).Hc((o_n(),M$e))&&(t.a>e.a||t.b>e.b)){for(c=new nd(n.a);c.a0?n.i:0)>e&&o>0){c=0;u+=o+n.i;a=t.Math.max(a,b);i+=o+n.i;o=0;b=0;if(r){++l;ED(n.n,new f0(n.s,u,n.i))}s=0}b+=f.g+(s>0?n.i:0);o=t.Math.max(o,f.f);r&&YMn(bG(Yq(n.n,l),209),f);c+=f.g+(s>0?n.i:0);++s}a=t.Math.max(a,b);i+=o;if(r){n.r=a;n.d=i;sjn(n.j)}return new yY(n.s,n.t,a,i)}function wXn(n){var e,r,i,a,c,u,s,o,f,h,l,b;n.b=false;l=y0n;o=M0n;b=y0n;f=M0n;for(i=n.e.a.ec().Kc();i.Ob();){r=bG(i.Pb(),272);a=r.a;l=t.Math.min(l,a.c);o=t.Math.max(o,a.c+a.b);b=t.Math.min(b,a.d);f=t.Math.max(f,a.d+a.a);for(u=new nd(r.c);u.an.o.a){h=(o-n.o.a)/2;s.b=t.Math.max(s.b,h);s.c=t.Math.max(s.c,h)}}function mXn(n){var e,t,r,i,a,c,u,s;a=new o4;rN(a,(nhn(),o2e));for(r=(i=rsn(n,$nn(vle,XZn,2,0,6,1)),new td(new $M(new tS(n,i).b)));r.bu?1:-1:Vln(n.a,e.a,a);if(i==-1){h=-s;f=c==s?c7(e.a,u,n.a,a):Nnn(e.a,u,n.a,a)}else{h=c;if(c==s){if(i==0){return fHn(),Rle}f=c7(n.a,a,e.a,u)}else{f=Nnn(n.a,a,e.a,u)}}o=new Zz(h,f.length,f);U4(o);return o}function jXn(n,e){var t,r,i,a;a=LGn(e);!e.c&&(e.c=new gz(ont,e,9,9));ES(new gX(null,(!e.c&&(e.c=new gz(ont,e,9,9)),new d3(e.c,16))),new tg(a));i=bG(lIn(a,(WYn(),oDe)),21);NWn(e,i);if(i.Hc((o_n(),M$e))){for(r=new _D((!e.c&&(e.c=new gz(ont,e,9,9)),e.c));r.e!=r.i.gc();){t=bG(iyn(r),123);MQn(n,e,a,t)}}bG(YDn(e,(IYn(),r_e)),181).gc()!=0&&b_n(e,a);lM(yK(lIn(a,f_e)))&&i.Fc(P$e);jR(a,N_e)&&sM(new lpn(bM(MK(lIn(a,N_e)))),a);BA(YDn(e,SFe))===BA((Dwn(),U5e))?zYn(n,e,a):kYn(n,e,a);return a}function EXn(n){var e,t,r,i,a,c,u,s;for(i=new nd(n.b);i.a0?o1(t.a,0,a-1):""}}else{return!t?n:t.a}}function PXn(n,e){var t,r,i,a,c,u,s;e.Ug("Sort By Input Model "+lIn(n,(IYn(),zKe)),1);i=0;for(r=new nd(n.b);r.a=n.b.length){a[i++]=c.b[r++];a[i++]=c.b[r++]}else if(r>=c.b.length){a[i++]=n.b[t++];a[i++]=n.b[t++]}else if(c.b[r]0?n.i:0)}++e}kgn(n.n,o);n.d=r;n.r=i;n.g=0;n.f=0;n.e=0;n.o=y0n;n.p=y0n;for(c=new nd(n.b);c.a0){i=(!n.n&&(n.n=new gz(unt,n,1,7)),bG(Yin(n.n,0),135)).a;!i||tL(tL((e.a+=' "',e),i),'"')}}else{tL(tL((e.a+=' "',e),r),'"')}t=(!n.b&&(n.b=new g_(B7e,n,4,7)),!(n.b.i<=1&&(!n.c&&(n.c=new g_(B7e,n,5,8)),n.c.i<=1)));t?(e.a+=" [",e):(e.a+=" ",e);tL(e,UD(new GM,new _D(n.b)));t&&(e.a+="]",e);e.a+=J4n;t&&(e.a+="[",e);tL(e,UD(new GM,new _D(n.c)));t&&(e.a+="]",e);return e.a}function LXn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S;y=n.c;M=e.c;t=Ctn(y.a,n,0);r=Ctn(M.a,e,0);m=bG(Ipn(n,(fcn(),kHe)).Kc().Pb(),12);E=bG(Ipn(n,yHe).Kc().Pb(),12);k=bG(Ipn(e,kHe).Kc().Pb(),12);S=bG(Ipn(e,yHe).Kc().Pb(),12);v=B4(m.e);T=B4(E.g);p=B4(k.e);j=B4(S.g);Fjn(n,r,M);for(c=p,f=0,w=c.length;fh){new x2((q7(),yXe),r,e,f-h)}else if(f>0&&h>0){new x2((q7(),yXe),e,r,0);new x2(yXe,r,e,0)}}return u}function xXn(n,e,t){var r,i,a;n.a=new im;for(a=Gkn(e.b,0);a.b!=a.d.c;){i=bG($6(a),40);while(bG(lIn(i,(eqn(),_We)),17).a>n.a.c.length-1){ED(n.a,new nA(_3n,U9n))}r=bG(lIn(i,_We),17).a;if(t==(Bdn(),o5e)||t==f5e){i.e.abM(MK(bG(Yq(n.a,r),42).b))&&ww(bG(Yq(n.a,r),42),i.e.a+i.f.a)}else{i.e.bbM(MK(bG(Yq(n.a,r),42).b))&&ww(bG(Yq(n.a,r),42),i.e.b+i.f.b)}}}function RXn(n,e,t,r){var i,a,c,u,s,o,f;a=Mgn(r);u=lM(yK(lIn(r,(IYn(),XFe))));if((u||lM(yK(lIn(n,OFe))))&&!wN(bG(lIn(n,m_e),101))){i=$vn(a);s=JUn(n,t,t==(fcn(),yHe)?i:Wdn(i))}else{s=new vOn;l2(s,n);if(e){f=s.n;f.a=e.a-n.n.a;f.b=e.b-n.n.b;_On(f,0,0,n.o.a,n.o.b);KLn(s,iGn(s,a))}else{i=$vn(a);KLn(s,t==(fcn(),yHe)?i:Wdn(i))}c=bG(lIn(r,(WYn(),oDe)),21);o=s.j;switch(a.g){case 2:case 1:(o==(UQn(),D8e)||o==Y8e)&&c.Fc((o_n(),S$e));break;case 4:case 3:(o==(UQn(),$8e)||o==n9e)&&c.Fc((o_n(),S$e))}}return s}function KXn(n,e){var r,i,a,c,u,s;for(u=new pon(new Kw(n.f.b).a);u.b;){c=jun(u);a=bG(c.ld(),602);if(e==1){if(a.Af()!=(Bdn(),l5e)&&a.Af()!=s5e){continue}}else{if(a.Af()!=(Bdn(),o5e)&&a.Af()!=f5e){continue}}i=bG(bG(c.md(),42).b,86);s=bG(bG(c.md(),42).a,194);r=s.c;switch(a.Af().g){case 2:i.g.c=n.e.a;i.g.b=t.Math.max(1,i.g.b+r);break;case 1:i.g.c=i.g.c+r;i.g.b=t.Math.max(1,i.g.b-r);break;case 4:i.g.d=n.e.b;i.g.a=t.Math.max(1,i.g.a+r);break;case 3:i.g.d=i.g.d+r;i.g.a=t.Math.max(1,i.g.a-r)}}}function FXn(n,e){var r,i,a,c,u,s,o,f,h,l,b,w,d,g;s=$nn(Ght,z1n,28,e.b.c.length,15,1);f=$nn(aEe,g1n,273,e.b.c.length,0,1);o=$nn(Yje,e6n,10,e.b.c.length,0,1);for(l=n.a,b=0,w=l.length;b0&&!!o[i]&&(d=S$(n.b,o[i],a));g=t.Math.max(g,a.c.c.b+d)}for(c=new nd(h.e);c.a1){throw dm(new jM(bae))}if(!s){a=H5(e,r.Kc().Pb());c.Fc(a)}}return phn(n,wAn(n,e,t),c)}function XXn(n,e,t){var r,i,a,c,u,s,o,f;if(OFn(n.e,e)){s=(LP(),bG(e,69).xk()?new Nq(e,n):new DA(e,n));N$n(s.c,s.b);U$(s,bG(t,16))}else{f=ZKn(n.e.Dh(),e);r=bG(n.g,124);for(c=0;c"}s!=null&&(e.a+=""+s,e)}else if(n.e){u=n.e.zb;u!=null&&(e.a+=""+u,e)}else{e.a+="?";if(n.b){e.a+=" super ";QXn(n.b,e)}else{if(n.f){e.a+=" extends ";QXn(n.f,e)}}}}function JXn(n){n.b=null;n.a=null;n.o=null;n.q=null;n.v=null;n.w=null;n.B=null;n.p=null;n.Q=null;n.R=null;n.S=null;n.T=null;n.U=null;n.V=null;n.W=null;n.bb=null;n.eb=null;n.ab=null;n.H=null;n.db=null;n.c=null;n.d=null;n.f=null;n.n=null;n.r=null;n.s=null;n.u=null;n.G=null;n.J=null;n.e=null;n.j=null;n.i=null;n.g=null;n.k=null;n.t=null;n.F=null;n.I=null;n.L=null;n.M=null;n.O=null;n.P=null;n.$=null;n.N=null;n.Z=null;n.cb=null;n.K=null;n.D=null;n.A=null;n.C=null;n._=null;n.fb=null;n.X=null;n.Y=null;n.gb=false;n.hb=false}function YXn(n){var e,r,i,a;i=pYn((!n.c&&(n.c=I2(Xon(n.f))),n.c),0);if(n.e==0||n.a==0&&n.f!=-1&&n.e<0){return i}e=asn(n)<0?1:0;r=n.e;a=(i.length+1+t.Math.abs(c0(n.e)),new eT);e==1&&(a.a+="-",a);if(n.e>0){r-=i.length-e;if(r>=0){a.a+="0.";for(;r>jle.length;r-=jle.length){Jq(a,jle)}vF(a,jle,c0(r));tL(a,(w3(e,i.length+1),i.substr(e)))}else{r=e-r;tL(a,o1(i,e,c0(r)));a.a+=".";tL(a,wQ(i,c0(r)))}}else{tL(a,(w3(e,i.length+1),i.substr(e)));for(;r<-jle.length;r+=jle.length){Jq(a,jle)}vF(a,jle,c0(-r))}return a.a}function ZXn(n){var e,t,r,i,a,c,u,s,o;if(n.k!=(YIn(),rEe)){return false}if(n.j.c.length<=1){return false}a=bG(lIn(n,(IYn(),m_e)),101);if(a==(FPn(),m8e)){return false}i=(rMn(),(!n.q?(dZ(),dZ(),bbe):n.q)._b(n_e)?r=bG(lIn(n,n_e),203):r=bG(lIn(VQ(n),e_e),203),r);if(i==BBe){return false}if(!(i==_Be||i==FBe)){c=bM(MK(Dpn(n,J_e)));e=bG(lIn(n,Q_e),140);!e&&(e=new DF(c,c,c,c));o=_gn(n,(UQn(),n9e));s=e.d+e.a+(o.gc()-1)*c;if(s>n.o.b){return false}t=_gn(n,$8e);u=e.d+e.a+(t.gc()-1)*c;if(u>n.o.b){return false}}return true}function nVn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w,d,g;e.Ug("Orthogonal edge routing",1);o=bM(MK(lIn(n,(IYn(),z_e))));t=bM(MK(lIn(n,K_e)));r=bM(MK(lIn(n,B_e)));l=new KW(0,t);g=0;c=new K4(n.b,0);u=null;f=null;s=null;h=null;do{f=c.b0){b=(w-1)*t;!!u&&(b+=r);!!f&&(b+=r);be||lM(yK(YDn(s,(A_n(),yZe))))){i=0;a+=f.b+t;Tm(h.c,f);f=new u4(a,t);r=new kln(0,f.f,f,t);gcn(f,r);i=0}if(r.b.c.length==0||!lM(yK(YDn(H0(s),(A_n(),IZe))))&&(s.f>=r.o&&s.f<=r.f||r.a*.5<=s.f&&r.a*1.5>=s.f)){svn(r,s)}else{c=new kln(r.s+r.r+t,f.f,f,t);gcn(f,c);svn(c,s)}i=s.i+s.g}Tm(h.c,f);return h}function bVn(n){var e,t,r,i;if(n.b==null||n.b.length<=2)return;if(n.a)return;e=0;i=0;while(i=n.b[i+1]){i+=2}else if(t0){r=new iB(bG(r7(n.a,a),21));dZ();g$(r,new Wd(e));i=new K4(a.b,0);while(i.b0&&r>=-6){if(r>=0){Ox(a,t-c0(n.e),String.fromCharCode(46))}else{Mon(a,e-1,e-1,"0.");Ox(a,e+1,Tmn(jle,0,-c0(r)-1))}}else{if(t-e>=1){Ox(a,e,String.fromCharCode(46));++t}Ox(a,t,String.fromCharCode(69));r>0&&Ox(a,++t,String.fromCharCode(43));Ox(a,++t,""+lz(Xon(r)))}n.g=a.a;return n.g}function kVn(n,e){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j;i=bM(MK(lIn(e,(IYn(),ZFe))));M=bG(lIn(e,Y_e),17).a;b=4;a=3;T=20/M;w=false;o=0;u=pZn;do{c=o!=1;l=o!=0;j=0;for(v=n.a,m=0,y=v.length;mM)){o=2;u=pZn}else if(o==0){o=1;u=j}else{o=0;u=j}}else{w=j>=u||u-j0?1:UL(isNaN(i),isNaN(0)))>=0^(null,lcn(C9n),(t.Math.abs(s)<=C9n||s==0||isNaN(s)&&isNaN(0)?0:s<0?-1:s>0?1:UL(isNaN(s),isNaN(0)))>=0)){return t.Math.max(s,i)}lcn(C9n);if((t.Math.abs(i)<=C9n||i==0||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:UL(isNaN(i),isNaN(0)))>0){return t.Math.sqrt(s*s+i*i)}return-t.Math.sqrt(s*s+i*i)}function jVn(n,e){var t,r,i,a,c,u;if(!e)return;!n.a&&(n.a=new fk);if(n.e==2){Ym(n.a,e);return}if(e.e==1){for(i=0;i=S0n?ZA(t,Dgn(r)):CQ(t,r&$1n);c=(++Tht,new G1(10,null,0));Wz(n.a,c,u-1)}else{t=(c.Mm().length+a,new ZM);ZA(t,c.Mm())}if(e.e==0){r=e.Km();r>=S0n?ZA(t,Dgn(r)):CQ(t,r&$1n)}else{ZA(t,e.Mm())}bG(c,530).b=t.a}function EVn(n,e,t){var r,i,a,c,u,s,o,f,h,l,b,w,d,g;if(t.dc()){return}u=0;l=0;r=t.Kc();w=bG(r.Pb(),17).a;while(u1&&(s=o.Hg(s,n.a,u))}if(s.c.length==1){return bG(Yq(s,s.c.length-1),238)}if(s.c.length==2){return cVn((b3(0,s.c.length),bG(s.c[0],238)),(b3(1,s.c.length),bG(s.c[1],238)),c,a)}return null}function OVn(n,e,t){var r,i,a,c,u,s,o;t.Ug("Find roots",1);n.a.c.length=0;for(i=Gkn(e.b,0);i.b!=i.d.c;){r=bG($6(i),40);if(r.b.b==0){Ehn(r,(DQn(),Jze),(Qx(),true));ED(n.a,r)}}switch(n.a.c.length){case 0:a=new mln(0,e,"DUMMY_ROOT");Ehn(a,(DQn(),Jze),(Qx(),true));Ehn(a,Lze,true);hq(e.b,a);break;case 1:break;default:c=new mln(0,e,B9n);for(s=new nd(n.a);s.a=t.Math.abs(i.b)){i.b=0;c.d+c.a>u.d&&c.du.c&&c.c0){e=new xA(n.i,n.g);t=n.i;a=t<100?null:new fj(t);if(n.Tj()){for(r=0;r0){u=n.g;o=n.i;Z9(n);a=o<100?null:new fj(o);for(r=0;r>13|(n.m&15)<<9;i=n.m>>4&8191;a=n.m>>17|(n.h&255)<<5;c=(n.h&1048320)>>8;u=e.l&8191;s=e.l>>13|(e.m&15)<<9;o=e.m>>4&8191;f=e.m>>17|(e.h&255)<<5;h=(e.h&1048320)>>8;j=t*u;E=r*u;S=i*u;P=a*u;C=c*u;if(s!=0){E+=t*s;S+=r*s;P+=i*s;C+=a*s}if(o!=0){S+=t*o;P+=r*o;C+=i*o}if(f!=0){P+=t*f;C+=r*f}h!=0&&(C+=t*h);b=j&f0n;w=(E&511)<<13;l=b+w;g=j>>22;v=E>>9;p=(S&262143)<<4;m=(P&31)<<17;d=g+v+p+m;y=S>>18;M=P>>5;T=(C&4095)<<8;k=y+M+T;d+=l>>22;l&=f0n;k+=d>>22;d&=f0n;k&=h0n;return M$(l,d,k)}function xVn(n){var e,r,i,a,c,u,s;s=bG(Yq(n.j,0),12);if(s.g.c.length!=0&&s.e.c.length!=0){throw dm(new EM("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."))}if(s.g.c.length!=0){c=y0n;for(r=new nd(s.g);r.a4){if(n.fk(e)){if(n.al()){i=bG(e,54);r=i.Eh();s=r==n.e&&(n.ml()?i.yh(i.Fh(),n.il())==n.jl():-1-i.Fh()==n.Lj());if(n.nl()&&!s&&!r&&!!i.Jh()){for(a=0;a0&&aAn(n,u,h)}for(i=new nd(h);i.an.d[c.p]){t+=t9(n.b,a)*bG(s.b,17).a;x6(n.a,Bwn(a))}}while(!RM(n.a)){vrn(n.b,bG(Bz(n.a),17).a)}}return t}function _Vn(n,e){var t,r,i,a,c,u,s,o,f,h;f=bG(lIn(n,(WYn(),cDe)),64);r=bG(Yq(n.j,0),12);f==(UQn(),D8e)?KLn(r,Y8e):f==Y8e&&KLn(r,D8e);if(bG(lIn(e,(IYn(),r_e)),181).Hc((emn(),b9e))){s=bM(MK(lIn(n,q_e)));o=bM(MK(lIn(n,X_e)));c=bM(MK(lIn(n,U_e)));u=bG(lIn(e,M_e),21);if(u.Hc((uNn(),C8e))){t=o;h=n.o.a/2-r.n.a;for(a=new nd(r.f);a.a0&&(o=n.n.a/a);break;case 2:case 4:i=n.i.o.b;i>0&&(o=n.n.b/i)}Ehn(n,(WYn(),$De),o)}s=n.o;c=n.a;if(r){c.a=r.a;c.b=r.b;n.d=true}else if(e!=M8e&&e!=T8e&&u!=Z8e){switch(u.g){case 1:c.a=s.a/2;break;case 2:c.a=s.a;c.b=s.b/2;break;case 3:c.a=s.a/2;c.b=s.b;break;case 4:c.b=s.b/2}}else{c.a=s.a/2;c.b=s.b/2}}function qVn(n){var e,t,r,i,a,c,u,s,o,f;if(n.Pj()){f=n.Ej();s=n.Qj();if(f>0){e=new Vsn(n.pj());t=f;a=t<100?null:new fj(t);eF(n,t,e.g);i=t==1?n.Ij(4,Yin(e,0),null,0,s):n.Ij(6,e,null,-1,s);if(n.Mj()){for(r=new _D(e);r.e!=r.i.gc();){a=n.Oj(iyn(r),a)}if(!a){n.Jj(i)}else{a.nj(i);a.oj()}}else{if(!a){n.Jj(i)}else{a.nj(i);a.oj()}}}else{eF(n,n.Ej(),n.Fj());n.Jj(n.Ij(6,(dZ(),lbe),null,-1,s))}}else if(n.Mj()){f=n.Ej();if(f>0){u=n.Fj();o=f;eF(n,f,u);a=o<100?null:new fj(o);for(r=0;r1&&OX(c)*IX(c)/2>u[0]){a=0;while(au[a]){++a}w=new N2(d,0,a+1);h=new tan(w);f=OX(c)/IX(c);s=UJn(h,e,new _k,t,r,i,f);t_(kL(h.e),s);EG(qCn(l,h),$0n);b=new N2(d,a+1,d.c.length);qjn(l,b);d.c.length=0;o=0;YX(u,u.length,0)}else{g=l.b.c.length==0?null:Yq(l.b,0);g!=null&&Nun(l,0);o>0&&(u[o]=u[o-1]);u[o]+=OX(c)*IX(c);++o;Tm(d.c,c)}}return d}function VVn(n,e){var t,r,i,a;t=e.b;a=new iB(t.j);i=0;r=t.j;r.c.length=0;TW(bG(won(n.b,(UQn(),D8e),(yun(),qAe)),15),t);i=fMn(a,i,new Xi,r);TW(bG(won(n.b,D8e,GAe),15),t);i=fMn(a,i,new Fi,r);TW(bG(won(n.b,D8e,UAe),15),t);TW(bG(won(n.b,$8e,qAe),15),t);TW(bG(won(n.b,$8e,GAe),15),t);i=fMn(a,i,new Vi,r);TW(bG(won(n.b,$8e,UAe),15),t);TW(bG(won(n.b,Y8e,qAe),15),t);i=fMn(a,i,new zi,r);TW(bG(won(n.b,Y8e,GAe),15),t);i=fMn(a,i,new Wi,r);TW(bG(won(n.b,Y8e,UAe),15),t);TW(bG(won(n.b,n9e,qAe),15),t);i=fMn(a,i,new Hi,r);TW(bG(won(n.b,n9e,GAe),15),t);TW(bG(won(n.b,n9e,UAe),15),t)}function zVn(n,e,t){var r,i,a,c,u,s,o,f,h,l,b;for(u=new nd(e);u.a.5?p-=u*2*(d-.5):d<.5&&(p+=c*2*(.5-d));a=s.d.b;pv.a-g-h&&(p=v.a-g-h);s.n.a=e+p}}function nzn(n){var e,t,r,i,a;r=bG(lIn(n,(IYn(),KFe)),171);if(r==(Wvn(),QDe)){for(t=new GV(sx(Qgn(n).a.Kc(),new d));dDn(t);){e=bG(K9(t),18);if(!G9(e)){throw dm(new IM(k6n+ijn(n)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. "+"FIRST_SEPARATE nodes must not have incoming edges."))}}}else if(r==YDe){for(a=new GV(sx(Jgn(n).a.Kc(),new d));dDn(a);){i=bG(K9(a),18);if(!G9(i)){throw dm(new IM(k6n+ijn(n)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. "+"LAST_SEPARATE nodes must not have outgoing edges."))}}}}function ezn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w;if(n.e&&n.c.c>19!=0){e=yhn(e);s=!s}c=ERn(e);a=false;i=false;r=false;if(n.h==l0n&&n.m==0&&n.l==0){i=true;a=true;if(c==-1){n=RL((crn(),Phe));r=true;s=!s}else{u=yDn(n,c);s&&rln(u);t&&(She=M$(0,0,0));return u}}else if(n.h>>19!=0){a=true;n=yhn(n);r=true;s=!s}if(c!=-1){return aln(n,c,s,a,t)}if(SEn(n,e)<0){t&&(a?She=yhn(n):She=M$(n.l,n.m,n.h));return M$(0,0,0)}return yUn(r?n:M$(n.l,n.m,n.h),e,s,a,i,t)}function izn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w;c=n.e;s=e.e;if(c==0){return e}if(s==0){return n}a=n.d;u=e.d;if(a+u==2){t=O3(n.a[0],A0n);r=O3(e.a[0],A0n);if(c==s){f=Rgn(t,r);w=MV(f);b=MV(_V(f,32));return b==0?new i8(c,w):new Zz(c,2,zfn(fT(Ght,1),z1n,28,15,[w,b]))}return fHn(),XA(c<0?Fgn(r,t):Fgn(t,r),0)?Hpn(c<0?Fgn(r,t):Fgn(t,r)):dW(Hpn(Ptn(c<0?Fgn(r,t):Fgn(t,r))))}else if(c==s){l=c;h=a>=u?Nnn(n.a,a,e.a,u):Nnn(e.a,u,n.a,a)}else{i=a!=u?a>u?1:-1:Vln(n.a,e.a,a);if(i==0){return fHn(),Rle}if(i==1){l=c;h=c7(n.a,a,e.a,u)}else{l=s;h=c7(e.a,u,n.a,a)}}o=new Zz(l,h.length,h);U4(o);return o}function azn(n,e){var t,r,i,a,c,u,s;if(n.g>e.f||e.g>n.f){return}t=0;r=0;for(c=n.w.a.ec().Kc();c.Ob();){i=bG(c.Pb(),12);nwn(Whn(zfn(fT(D3e,1),XZn,8,0,[i.i.n,i.n,i.a])).b,e.g,e.f)&&++t}for(u=n.r.a.ec().Kc();u.Ob();){i=bG(u.Pb(),12);nwn(Whn(zfn(fT(D3e,1),XZn,8,0,[i.i.n,i.n,i.a])).b,e.g,e.f)&&--t}for(s=e.w.a.ec().Kc();s.Ob();){i=bG(s.Pb(),12);nwn(Whn(zfn(fT(D3e,1),XZn,8,0,[i.i.n,i.n,i.a])).b,n.g,n.f)&&++r}for(a=e.r.a.ec().Kc();a.Ob();){i=bG(a.Pb(),12);nwn(Whn(zfn(fT(D3e,1),XZn,8,0,[i.i.n,i.n,i.a])).b,n.g,n.f)&&--r}if(t=0){return t}switch(wJ(Ktn(n,t))){case 2:{if(T_("",cdn(n,t.qk()).xe())){s=VJ(Ktn(n,t));u=XJ(Ktn(n,t));f=dxn(n,e,s,u);if(f){return f}i=xHn(n,e);for(c=0,h=i.gc();c1){throw dm(new jM(bae))}f=ZKn(n.e.Dh(),e);r=bG(n.g,124);for(c=0;c1;for(f=new m7(b.b);v$(f.a)||v$(f.b);){o=bG(v$(f.a)?K3(f.a):K3(f.b),18);l=o.c==b?o.d:o.c;t.Math.abs(Whn(zfn(fT(D3e,1),XZn,8,0,[l.i.n,l.n,l.a])).b-u.b)>1&&wFn(n,o,u,c,b)}}}function lzn(n){var e,r,i,a,c,u;a=new K4(n.e,0);i=new K4(n.a,0);if(n.d){for(r=0;rN9n){c=e;u=0;while(t.Math.abs(e-c)0);a.a.Xb(a.c=--a.b);YGn(n,n.b-u,c,i,a);PK(a.b0);i.a.Xb(i.c=--i.b)}if(!n.d){for(r=0;r0){n.f[h.p]=w/(h.e.c.length+h.g.c.length);n.c=t.Math.min(n.c,n.f[h.p]);n.b=t.Math.max(n.b,n.f[h.p])}else s&&(n.f[h.p]=w)}}function dzn(n){n.b=null;n.bb=null;n.fb=null;n.qb=null;n.a=null;n.c=null;n.d=null;n.e=null;n.f=null;n.n=null;n.M=null;n.L=null;n.Q=null;n.R=null;n.K=null;n.db=null;n.eb=null;n.g=null;n.i=null;n.j=null;n.k=null;n.gb=null;n.o=null;n.p=null;n.q=null;n.r=null;n.$=null;n.ib=null;n.S=null;n.T=null;n.t=null;n.s=null;n.u=null;n.v=null;n.w=null;n.B=null;n.A=null;n.C=null;n.D=null;n.F=null;n.G=null;n.H=null;n.I=null;n.J=null;n.P=null;n.Z=null;n.U=null;n.V=null;n.W=null;n.X=null;n.Y=null;n._=null;n.ab=null;n.cb=null;n.hb=null;n.nb=null;n.lb=null;n.mb=null;n.ob=null;n.pb=null;n.jb=null;n.kb=null;n.N=false;n.O=false}function gzn(n,e,t){var r,i,a,c;t.Ug("Graph transformation ("+n.a+")",1);c=C3(e.a);for(a=new nd(e.b);a.a=u.b.c)&&(u.b=e);if(!u.c||e.c<=u.c.c){u.d=u.c;u.c=e}(!u.e||e.d>=u.e.d)&&(u.e=e);(!u.f||e.d<=u.f.d)&&(u.f=e)}r=new fyn((Jfn(),DTe));D4(n,GTe,new $M(zfn(fT(ITe,1),jZn,382,0,[r])));c=new fyn(KTe);D4(n,UTe,new $M(zfn(fT(ITe,1),jZn,382,0,[c])));i=new fyn(xTe);D4(n,HTe,new $M(zfn(fT(ITe,1),jZn,382,0,[i])));a=new fyn(RTe);D4(n,BTe,new $M(zfn(fT(ITe,1),jZn,382,0,[a])));IRn(r.c,DTe);IRn(i.c,xTe);IRn(a.c,RTe);IRn(c.c,KTe);u.a.c.length=0;Dfn(u.a,r.c);Dfn(u.a,Avn(i.c));Dfn(u.a,a.c);Dfn(u.a,Avn(c.c));return u}function mzn(n,e){var r,i,a,c,u,s,o,f,h,l,b,w,d;e.Ug(sne,1);w=bM(MK(YDn(n,(vBn(),VYe))));u=bM(MK(YDn(n,(A_n(),$Ze))));s=bG(YDn(n,AZe),107);Kun((!n.a&&(n.a=new gz(snt,n,10,11)),n.a));h=lVn((!n.a&&(n.a=new gz(snt,n,10,11)),n.a),w,u);!n.a&&(n.a=new gz(snt,n,10,11));for(f=new nd(h);f.a0){n.a=s+(b-1)*a;e.c.b+=n.a;e.f.b+=n.a}}if(w.a.gc()!=0){l=new KW(1,a);b=rWn(l,e,w,g,e.f.b+s-e.c.b);b>0&&(e.f.b+=s+(b-1)*a)}}function yzn(n,e,r){var i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y;h=bM(MK(lIn(n,(IYn(),__e))));i=bM(MK(lIn(n,aBe)));b=new no;Ehn(b,__e,h+i);f=e;p=f.d;g=f.c.i;m=f.d.i;v=WL(g.c);k=WL(m.c);a=new im;for(l=v;l<=k;l++){s=new yMn(n);Vb(s,(YIn(),tEe));Ehn(s,(WYn(),EDe),f);Ehn(s,m_e,(FPn(),m8e));Ehn(s,H_e,b);w=bG(Yq(n.b,l),30);l==v?Fjn(s,w.a.c.length-r,w):h2(s,w);y=bM(MK(lIn(f,TFe)));if(y<0){y=0;Ehn(f,TFe,y)}s.o.b=y;d=t.Math.floor(y/2);u=new vOn;KLn(u,(UQn(),n9e));l2(u,s);u.n.b=d;o=new vOn;KLn(o,$8e);l2(o,s);o.n.b=d;b2(f,u);c=new zZ;Yon(c,f);Ehn(c,DFe,null);f2(c,o);b2(c,p);$En(s,f,c);Tm(a.c,c);f=c}return a}function Mzn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m;s=bG(SOn(n,(UQn(),n9e)).Kc().Pb(),12).e;b=bG(SOn(n,$8e).Kc().Pb(),12).g;u=s.c.length;m=a3(bG(Yq(n.j,0),12));while(u-- >0){d=(b3(0,s.c.length),bG(s.c[0],18));i=(b3(0,b.c.length),bG(b.c[0],18));p=i.d.e;a=Ctn(p,i,0);m6(d,i.d,a);f2(i,null);b2(i,null);w=d.a;e&&hq(w,new uN(m));for(r=Gkn(i.a,0);r.b!=r.d.c;){t=bG($6(r),8);hq(w,new uN(t))}v=d.b;for(l=new nd(i.b);l.ac)&&Gz(n.b,bG(g.b,18))}}++u}a=c}}}}function jzn(n,e){var t;if(e==null||T_(e,CZn)){return null}if(e.length==0&&n.k!=(vAn(),E3e)){return null}switch(n.k.g){case 1:return Xmn(e,Kne)?(Qx(),Hhe):Xmn(e,Fne)?(Qx(),Bhe):null;case 2:try{return Bwn(TUn(e,T1n,pZn))}catch(r){r=Ofn(r);if(G$(r,130)){return null}else throw dm(r)}case 4:try{return rOn(e)}catch(r){r=Ofn(r);if(G$(r,130)){return null}else throw dm(r)}case 3:return e;case 5:mbn(n);return KNn(n,e);case 6:mbn(n);return Rxn(n,n.a,e);case 7:try{t=eDn(n);t.cg(e);return t}catch(r){r=Ofn(r);if(G$(r,33)){return null}else throw dm(r)}default:throw dm(new EM("Invalid type set for this layout option."))}}function Ezn(n){var e;switch(n.d){case 1:{if(n.Sj()){return n.o!=-2}break}case 2:{if(n.Sj()){return n.o==-2}break}case 3:case 5:case 4:case 6:case 7:{return n.o>-2}default:{return false}}e=n.Rj();switch(n.p){case 0:return e!=null&&lM(yK(e))!=VA(n.k,0);case 1:return e!=null&&bG(e,222).a!=MV(n.k)<<24>>24;case 2:return e!=null&&bG(e,180).a!=(MV(n.k)&$1n);case 6:return e!=null&&VA(bG(e,168).a,n.k);case 5:return e!=null&&bG(e,17).a!=MV(n.k);case 7:return e!=null&&bG(e,191).a!=MV(n.k)<<16>>16;case 3:return e!=null&&bM(MK(e))!=n.j;case 4:return e!=null&&bG(e,161).a!=n.j;default:return e==null?n.n!=null:!bdn(e,n.n)}}function Szn(n,e,t){var r,i,a,c;if(n.ol()&&n.nl()){c=Nz(n,bG(t,58));if(BA(c)!==BA(t)){n.xj(e);n.Dj(e,xen(n,e,c));if(n.al()){a=(i=bG(t,54),n.ml()?n.kl()?i.Th(n.b,vMn(bG(uin(u1(n.b),n.Lj()),19)).n,bG(uin(u1(n.b),n.Lj()).Hk(),29).kk(),null):i.Th(n.b,upn(i.Dh(),vMn(bG(uin(u1(n.b),n.Lj()),19))),null,null):i.Th(n.b,-1-n.Lj(),null,null));!bG(c,54).Ph()&&(a=(r=bG(c,54),n.ml()?n.kl()?r.Rh(n.b,vMn(bG(uin(u1(n.b),n.Lj()),19)).n,bG(uin(u1(n.b),n.Lj()).Hk(),29).kk(),a):r.Rh(n.b,upn(r.Dh(),vMn(bG(uin(u1(n.b),n.Lj()),19))),null,a):r.Rh(n.b,-1-n.Lj(),null,a)));!!a&&a.oj()}bN(n.b)&&n.Jj(n.Ij(9,t,c,e,false));return c}}return t}function Pzn(n){var e,t,r,i,a,c,u,s,o,f;r=new im;for(c=new nd(n.e.a);c.a0&&(u=t.Math.max(u,osn(n.C.b+i.d.b,a)))}else{w=b+h.d.c+n.w+i.d.b;u=t.Math.max(u,(r$(),lcn(Y2n),t.Math.abs(l-a)<=Y2n||l==a||isNaN(l)&&isNaN(a)?0:w/(a-l)))}h=i;l=a;b=c}if(!!n.C&&n.C.c>0){w=b+n.C.c;f&&(w+=h.d.c);u=t.Math.max(u,(r$(),lcn(Y2n),t.Math.abs(l-1)<=Y2n||l==1||isNaN(l)&&isNaN(1)?0:w/(1-l)))}r.n.b=0;r.a.a=u}function Izn(n,e){var r,i,a,c,u,s,o,f,h,l,b,w;r=bG(xJ(n.b,e),127);o=bG(bG(r7(n.r,e),21),87);if(o.dc()){r.n.d=0;r.n.a=0;return}f=n.u.Hc((uNn(),C8e));u=0;n.A.Hc((emn(),b9e))&&EBn(n,e);s=o.Kc();h=null;b=0;l=0;while(s.Ob()){i=bG(s.Pb(),117);c=bM(MK(i.b.of((Wx(),ome))));a=i.b.Mf().b;if(!h){!!n.C&&n.C.d>0&&(u=t.Math.max(u,osn(n.C.d+i.d.d,c)))}else{w=l+h.d.a+n.w+i.d.d;u=t.Math.max(u,(r$(),lcn(Y2n),t.Math.abs(b-c)<=Y2n||b==c||isNaN(b)&&isNaN(c)?0:w/(c-b)))}h=i;b=c;l=a}if(!!n.C&&n.C.a>0){w=l+n.C.a;f&&(w+=h.d.a);u=t.Math.max(u,(r$(),lcn(Y2n),t.Math.abs(b-1)<=Y2n||b==1||isNaN(b)&&isNaN(1)?0:w/(1-b)))}r.n.d=0;r.a.b=u}function Ozn(n,e,t,r,i,a,c,u){var s,o,f,h,l,b,w,d,g,v;w=false;o=fKn(t.q,e.f+e.b-t.q.f);b=r.f>e.b&&u;v=i-(t.q.e+o-c);h=(s=bXn(r,v,false),s.a);if(b&&h>r.f){return false}if(b){l=0;for(g=new nd(e.d);g.a=(b3(a,n.c.length),bG(n.c[a],186)).e;if(!b&&h>e.b&&!f){return false}if(f||b||h<=e.b){if(f&&h>e.b){t.d=h;ken(t,OOn(t,h))}else{zSn(t.q,o);t.c=true}ken(r,i-(t.s+t.r));lMn(r,t.q.e+t.q.d,e.f);gcn(e,r);if(n.c.length>a){bEn((b3(a,n.c.length),bG(n.c[a],186)),r);(b3(a,n.c.length),bG(n.c[a],186)).a.c.length==0&&s7(n,a)}w=true}return w}function Azn(n,e,t){var r,i,a,c,u,s;this.g=n;u=e.d.length;s=t.d.length;this.d=$nn(Yje,e6n,10,u+s,0,1);for(c=0;c0?Hin(this,this.f/this.a):lD(e.g,e.d[0]).a!=null&&lD(t.g,t.d[0]).a!=null?Hin(this,(bM(lD(e.g,e.d[0]).a)+bM(lD(t.g,t.d[0]).a))/2):lD(e.g,e.d[0]).a!=null?Hin(this,lD(e.g,e.d[0]).a):lD(t.g,t.d[0]).a!=null&&Hin(this,lD(t.g,t.d[0]).a)}function Lzn(n,e){var t,r,i,a,c,u,s,o,f,h;n.a=new mQ(uhn(b5e));for(r=new nd(e.a);r.a=1){if(g-c>0&&h>=0){s.n.a+=d;s.n.b+=a*c}else if(g-c<0&&f>=0){s.n.a+=d*g;s.n.b+=a}}}n.o.a=e.a;n.o.b=e.b;Ehn(n,(IYn(),r_e),(emn(),r=bG(Pj(w9e),9),new aB(r,bG(PF(r,r.length),9),0)))}function Rzn(n,e,t,r,i,a){var c;if(!(e==null||!Tvn(e,irt,art))){throw dm(new jM("invalid scheme: "+e))}if(!n&&!(t!=null&&BL(t,FCn(35))==-1&&t.length>0&&(w3(0,t.length),t.charCodeAt(0)!=47))){throw dm(new jM("invalid opaquePart: "+t))}if(n&&!(e!=null&&iS(hrt,e.toLowerCase()))&&!(t==null||!Tvn(t,urt,srt))){throw dm(new jM(Xre+t))}if(n&&e!=null&&iS(hrt,e.toLowerCase())&&!pPn(t)){throw dm(new jM(Xre+t))}if(!Lvn(r)){throw dm(new jM("invalid device: "+r))}if(!twn(i)){c=i==null?"invalid segments: null":"invalid segment: "+Rbn(i);throw dm(new jM(c))}if(!(a==null||BL(a,FCn(35))==-1)){throw dm(new jM("invalid query: "+a))}}function Kzn(n,e,r){var i,a,c,u,s,o,f,h,l,b,w,d,g,v,p;r.Ug("Network simplex layering",1);n.b=e;p=bG(lIn(e,(IYn(),Y_e)),17).a*4;v=n.b.a;if(v.c.length<1){r.Vg();return}c=BHn(n,v);g=null;for(a=Gkn(c,0);a.b!=a.d.c;){i=bG($6(a),15);s=p*c0(t.Math.sqrt(i.gc()));u=mUn(i);tUn(ET(PT(ST(qB(u),s),g),true),r.eh(1));b=n.b.b;for(d=new nd(u.a);d.a1){g=$nn(Ght,z1n,28,n.b.b.c.length,15,1);l=0;for(f=new nd(n.b.b);f.a0){$kn(n,t,0);t.a+=String.fromCharCode(r);i=Qmn(e,a);$kn(n,t,i);a+=i-1;continue}if(r==39){if(a+10&&w.a<=0){s.c.length=0;Tm(s.c,w);break}b=w.i-w.d;if(b>=u){if(b>u){s.c.length=0;u=b}Tm(s.c,w)}}if(s.c.length!=0){c=bG(Yq(s,sMn(i,s.c.length)),118);m.a.Bc(c)!=null;c.g=f++;zGn(c,e,t,r);s.c.length=0}}g=n.c.length+1;for(l=new nd(n);l.aM0n||e.o==Aqe&&f=u&&i<=s){if(u<=i&&a<=s){t[f++]=i;t[f++]=a;r+=2}else if(u<=i){t[f++]=i;t[f++]=s;n.b[r]=s+1;c+=2}else if(a<=s){t[f++]=u;t[f++]=a;r+=2}else{t[f++]=u;t[f++]=s;n.b[r]=s+1}}else if(sM1n)&&s<10);OT(n.c,new Se);qzn(n);rW(n.c);vzn(n.f)}function Jzn(n,e){var r,i,a,c,u,s,o,f,h,l,b,w,d,g;r=bG(lIn(n,(IYn(),m_e)),101);u=n.f;c=n.d;s=u.a+c.b+c.c;o=0-c.d-n.c.b;h=u.b+c.d+c.a-n.c.b;f=new im;l=new im;for(a=new nd(e);a.a=2){s=Gkn(t,0);c=bG($6(s),8);u=bG($6(s),8);while(u.a0&&dhn(o,true,(Bdn(),f5e));u.k==(YIn(),nEe)&&JQ(o);jJ(n.f,u,e)}}}function nWn(n){var e,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y;a=bG(lIn(n,(DQn(),qze)),27);f=pZn;h=pZn;s=T1n;o=T1n;for(k=Gkn(n.b,0);k.b!=k.d.c;){p=bG($6(k),40);w=p.e;d=p.f;f=t.Math.min(f,w.a-d.a/2);h=t.Math.min(h,w.b-d.b/2);s=t.Math.max(s,w.a+d.a/2);o=t.Math.max(o,w.b+d.b/2)}b=bG(YDn(a,(eqn(),SWe)),107);for(m=Gkn(n.b,0);m.b!=m.d.c;){p=bG($6(m),40);l=lIn(p,qze);if(G$(l,207)){c=bG(l,27);EN(c,p.e.a,p.e.b);hKn(c,p)}}for(v=Gkn(n.a,0);v.b!=v.d.c;){g=bG($6(v),65);i=bG(lIn(g,qze),74);if(i){e=g.a;r=t_n(i,true,true);wqn(e,r)}}y=s-f+(b.b+b.c);u=o-h+(b.d+b.a);lM(yK(YDn(a,(JYn(),Z4e))))||iJn(a,y,u,false,false);Pyn(a,y4e,y-(b.b+b.c));Pyn(a,k4e,u-(b.d+b.a))}function eWn(n,e){var t,r,i,a,c,u,s,o,f,h;s=true;i=0;o=n.g[e.p];f=e.o.b+n.o;t=n.d[e.p][2];r9(n.b,o,Bwn(bG(Yq(n.b,o),17).a-1+t));r9(n.c,o,bM(MK(Yq(n.c,o)))-f+t*n.f);++o;if(o>=n.j){++n.j;ED(n.b,Bwn(1));ED(n.c,f)}else{r=n.d[e.p][1];r9(n.b,o,Bwn(bG(Yq(n.b,o),17).a+1-r));r9(n.c,o,bM(MK(Yq(n.c,o)))+f-r*n.f)}(n.r==(CHn(),eHe)&&(bG(Yq(n.b,o),17).a>n.k||bG(Yq(n.b,o-1),17).a>n.k)||n.r==iHe&&(bM(MK(Yq(n.c,o)))>n.n||bM(MK(Yq(n.c,o-1)))>n.n))&&(s=false);for(c=new GV(sx(Qgn(e).a.Kc(),new d));dDn(c);){a=bG(K9(c),18);u=a.c.i;if(n.g[u.p]==o){h=eWn(n,u);i=i+bG(h.a,17).a;s=s&&lM(yK(h.b))}}n.g[e.p]=o;i=i+n.d[e.p][0];return new nA(Bwn(i),(Qx(),s?true:false))}function tWn(n,e){var t,r,i,a,c;t=bM(MK(lIn(e,(IYn(),R_e))));t<2&&Ehn(e,R_e,2);r=bG(lIn(e,oFe),88);r==(Bdn(),h5e)&&Ehn(e,oFe,Mgn(e));i=bG(lIn(e,A_e),17);i.a==0?Ehn(e,(WYn(),xDe),new zvn):Ehn(e,(WYn(),xDe),new j8(i.a));a=yK(lIn(e,YFe));a==null&&Ehn(e,YFe,(Qx(),BA(lIn(e,gFe))===BA((qgn(),k5e))?true:false));ES(new gX(null,new d3(e.a,16)),new Vd(n));ES(wrn(new gX(null,new d3(e.b,16)),new ke),new zd(n));c=new Nzn(e);Ehn(e,(WYn(),BDe),c);qJ(n.a);tW(n.a,(bIn(),rTe),bG(lIn(e,uFe),188));tW(n.a,iTe,bG(lIn(e,GFe),188));tW(n.a,aTe,bG(lIn(e,cFe),188));tW(n.a,cTe,bG(lIn(e,t_e),188));tW(n.a,uTe,Hon(bG(lIn(e,gFe),223)));iN(n.a,sYn(e));Ehn(e,DDe,ezn(n.a,e))}function rWn(n,e,r,i,a){var c,u,s,o,f,h,l,b,w,d,g,v,p;l=new rm;u=new im;VAn(n,r,n.d.Ag(),u,l);VAn(n,i,n.d.Bg(),u,l);n.b=.2*(g=_Dn(wrn(new gX(null,new d3(u,16)),new Mc)),v=_Dn(wrn(new gX(null,new d3(u,16)),new Tc)),t.Math.min(g,v));c=0;for(s=0;s=2&&(p=wRn(u,true,b),!n.e&&(n.e=new Mv(n)),Bmn(n.e,p,u,n.b),undefined);XPn(u,b);lWn(u);w=-1;for(h=new nd(u);h.au}function cWn(n,e){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m;f=y0n;h=y0n;s=M0n;o=M0n;for(b=new nd(e.i);b.a-1){for(a=Gkn(s,0);a.b!=a.d.c;){i=bG($6(a),131);i.v=u}while(s.b!=0){i=bG(Ujn(s,0),131);for(r=new nd(i.i);r.a-1){for(c=new nd(s);c.a0){continue}rw(o,t.Math.min(o.o,a.o-1));tw(o,o.i-1);o.i==0&&(Tm(s.c,o),true)}}}}function bWn(n,e,r,i,a){var c,u,s,o;o=y0n;u=false;s=oXn(n,r_(new PO(e.a,e.b),n),t_(new PO(r.a,r.b),a),r_(new PO(i.a,i.b),r));c=!!s&&!(t.Math.abs(s.a-n.a)<=Bne&&t.Math.abs(s.b-n.b)<=Bne||t.Math.abs(s.a-e.a)<=Bne&&t.Math.abs(s.b-e.b)<=Bne);s=oXn(n,r_(new PO(e.a,e.b),n),r,a);!!s&&((t.Math.abs(s.a-n.a)<=Bne&&t.Math.abs(s.b-n.b)<=Bne)==(t.Math.abs(s.a-e.a)<=Bne&&t.Math.abs(s.b-e.b)<=Bne)||c?o=t.Math.min(o,KQ(r_(s,r))):u=true);s=oXn(n,r_(new PO(e.a,e.b),n),i,a);!!s&&(u||(t.Math.abs(s.a-n.a)<=Bne&&t.Math.abs(s.b-n.b)<=Bne)==(t.Math.abs(s.a-e.a)<=Bne&&t.Math.abs(s.b-e.b)<=Bne)||c)&&(o=t.Math.min(o,KQ(r_(s,i))));return o}function wWn(n){dP(n,new dCn(BT(GT(_T(UT(HT(new vs,N4n),$4n),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new ye),i4n)));z4(n,N4n,f4n,tyn(PMe));z4(n,N4n,l4n,(Qx(),true));z4(n,N4n,g4n,tyn(OMe));z4(n,N4n,D4n,tyn(AMe));z4(n,N4n,d4n,tyn(LMe));z4(n,N4n,v4n,tyn(IMe));z4(n,N4n,b4n,tyn(NMe));z4(n,N4n,p4n,tyn($Me));z4(n,N4n,C4n,tyn(SMe));z4(n,N4n,O4n,tyn(jMe));z4(n,N4n,A4n,tyn(EMe));z4(n,N4n,L4n,tyn(CMe));z4(n,N4n,I4n,tyn(TMe))}function dWn(n){var e,t,r,i,a,c,u,s;e=null;for(r=new nd(n);r.a0&&t.c==0){!e&&(e=new im);Tm(e.c,t)}}if(e){while(e.c.length!=0){t=bG(s7(e,0),239);if(!!t.b&&t.b.c.length>0){for(a=(!t.b&&(t.b=new im),new nd(t.b));a.aCtn(n,t,0)){return new nA(i,t)}}else if(bM(lD(i.g,i.d[0]).a)>bM(lD(t.g,t.d[0]).a)){return new nA(i,t)}}}for(u=(!t.e&&(t.e=new im),t.e).Kc();u.Ob();){c=bG(u.Pb(),239);s=(!c.b&&(c.b=new im),c.b);l3(0,s.c.length);MC(s.c,0,t);c.c==s.c.length&&(Tm(e.c,c),true)}}}return null}function gWn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v;e.Ug("Interactive crossing minimization",1);c=0;for(a=new nd(n.b);a.a0){t+=s.n.a+s.o.a/2;++h}for(w=new nd(s.j);w.a0&&(t/=h);v=$nn(zht,C0n,28,r.a.c.length,15,1);u=0;for(o=new nd(r.a);o.a=u&&i<=s){if(u<=i&&a<=s){r+=2}else if(u<=i){n.b[r]=s+1;c+=2}else if(a<=s){t[f++]=i;t[f++]=u-1;r+=2}else{t[f++]=i;t[f++]=u-1;n.b[r]=s+1;c+=2}}else if(s2){h=new im;Dfn(h,new N2(p,1,p.b));c=jYn(h,k+n.a);m=new MDn(c);Yon(m,e);Tm(r.c,m)}else{i?m=bG(fQ(n.b,pIn(e)),272):m=bG(fQ(n.b,yIn(e)),272)}o=pIn(e);i&&(o=yIn(e));u=WOn(v,o);f=k+n.a;if(u.a){f+=t.Math.abs(v.b-l.b);g=new PO(l.a,(l.b+v.b)/2)}else{f+=t.Math.abs(v.a-l.a);g=new PO((l.a+v.a)/2,l.b)}i?jJ(n.d,e,new pTn(m,u,g,f)):jJ(n.c,e,new pTn(m,u,g,f));jJ(n.b,e,m);d=(!e.n&&(e.n=new gz(unt,e,1,7)),e.n);for(w=new _D(d);w.e!=w.i.gc();){b=bG(iyn(w),135);a=aHn(n,b,true,0,0);Tm(r.c,a)}}function mWn(n){var e,t,r,i,a,c,u;if(n.A.dc()){return}if(n.A.Hc((emn(),l9e))){bG(xJ(n.b,(UQn(),D8e)),127).k=true;bG(xJ(n.b,Y8e),127).k=true;e=n.q!=(FPn(),k8e)&&n.q!=m8e;_b(bG(xJ(n.b,$8e),127),e);_b(bG(xJ(n.b,n9e),127),e);_b(n.g,e);if(n.A.Hc(b9e)){bG(xJ(n.b,D8e),127).j=true;bG(xJ(n.b,Y8e),127).j=true;bG(xJ(n.b,$8e),127).k=true;bG(xJ(n.b,n9e),127).k=true;n.g.k=true}}if(n.A.Hc(h9e)){n.a.j=true;n.a.k=true;n.g.j=true;n.g.k=true;u=n.B.Hc((hUn(),y9e));for(i=Kkn(),a=0,c=i.length;a0),bG(f.a.Xb(f.c=--f.b),18));while(a!=r&&f.b>0){n.a[a.p]=true;n.a[r.p]=true;a=(PK(f.b>0),bG(f.a.Xb(f.c=--f.b),18))}f.b>0&&RQ(f)}}}}}function MWn(n,e,t){var r,i,a,c,u,s,o,f,h,l,b;if(!n.b){return false}c=null;l=null;s=new qnn(null,null);i=1;s.a[1]=n.b;h=s;while(h.a[i]){o=i;u=l;l=h;h=h.a[i];r=n.a.Ne(e,h.d);i=r<0?0:1;r==0&&(!t.c||DJ(h.e,t.d))&&(c=h);if(!(!!h&&h.b)&&!KM(h.a[i])){if(KM(h.a[1-i])){l=l.a[o]=Cun(h,i)}else if(!KM(h.a[1-i])){b=l.a[1-o];if(b){if(!KM(b.a[1-o])&&!KM(b.a[o])){l.b=false;b.b=true;h.b=true}else{a=u.a[1]==l?1:0;KM(b.a[o])?u.a[a]=L4(l,o):KM(b.a[1-o])&&(u.a[a]=Cun(l,o));h.b=u.a[a].b=true;u.a[a].a[0].b=false;u.a[a].a[1].b=false}}}}}if(c){t.b=true;t.d=c.e;if(h!=c){f=new qnn(h.d,h.e);rIn(n,s,c,f);l==c&&(l=f)}l.a[l.a[1]==h?1:0]=h.a[!h.a[0]?1:0];--n.c}n.b=s.a[1];!!n.b&&(n.b.b=false);return t.b}function TWn(n){var e,r,i,a,c,u,s,o,f,h,l,b;for(a=new nd(n.a.a.b);a.a0?i-=864e5:i+=864e5;s=new _K(Rgn(Xon(e.q.getTime()),i))}f=new eT;o=n.a.length;for(a=0;a=97&&r<=122||r>=65&&r<=90){for(c=a+1;c=o){throw dm(new jM("Missing trailing '"))}c+1=14&&f<=16))){if(e.a._b(r)){!t.a?t.a=new vx(t.d):tL(t.a,t.b);nL(t.a,"[...]")}else{u=Uan(r);o=new lX(e);l7(t,PWn(u,o))}}else G$(r,183)?l7(t,LLn(bG(r,183))):G$(r,195)?l7(t,BPn(bG(r,195))):G$(r,201)?l7(t,hOn(bG(r,201))):G$(r,2111)?l7(t,HPn(bG(r,2111))):G$(r,53)?l7(t,ALn(bG(r,53))):G$(r,376)?l7(t,hNn(bG(r,376))):G$(r,846)?l7(t,OLn(bG(r,846))):G$(r,109)&&l7(t,ILn(bG(r,109)))}else{l7(t,r==null?CZn:fvn(r))}}return!t.a?t.c:t.e.length==0?t.a.a:t.a.a+(""+t.e)}function CWn(n,e){var t,r,i,a;a=n.F;if(e==null){n.F=null;wbn(n,null)}else{n.F=(cJ(e),e);r=BL(e,FCn(60));if(r!=-1){i=(Unn(0,r,e.length),e.substr(0,r));BL(e,FCn(46))==-1&&!T_(i,wZn)&&!T_(i,fie)&&!T_(i,hie)&&!T_(i,lie)&&!T_(i,bie)&&!T_(i,wie)&&!T_(i,die)&&!T_(i,gie)&&(i=vie);t=hx(e,FCn(62));t!=-1&&(i+=""+(w3(t+1,e.length+1),e.substr(t+1)));wbn(n,i)}else{i=e;if(BL(e,FCn(46))==-1){r=BL(e,FCn(91));r!=-1&&(i=(Unn(0,r,e.length),e.substr(0,r)));if(!T_(i,wZn)&&!T_(i,fie)&&!T_(i,hie)&&!T_(i,lie)&&!T_(i,bie)&&!T_(i,wie)&&!T_(i,die)&&!T_(i,gie)){i=vie;r!=-1&&(i+=""+(w3(r,e.length+1),e.substr(r)))}else{i=e}}wbn(n,i);i==e&&(n.F=n.D)}}(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,5,a,e))}function IWn(n,e){var t,r,i,a,c,u,s,o,f,h;s=e.length-1;u=(w3(s,e.length),e.charCodeAt(s));if(u==93){c=BL(e,FCn(91));if(c>=0){i=gvn(n,(Unn(1,c,e.length),e.substr(1,c-1)));f=(Unn(c+1,s,e.length),e.substr(c+1,s-(c+1)));return WJn(n,f,i)}}else{t=-1;zhe==null&&(zhe=new RegExp("\\d"));if(zhe.test(String.fromCharCode(u))){t=C_(e,FCn(46),s-1);if(t>=0){r=bG(z9(n,Iin(n,(Unn(1,t,e.length),e.substr(1,t-1))),false),61);o=0;try{o=TUn((w3(t+1,e.length+1),e.substr(t+1)),T1n,pZn)}catch(l){l=Ofn(l);if(G$(l,130)){a=l;throw dm(new Ltn(a))}else throw dm(l)}if(o>16==-10){t=bG(n.Cb,292).Yk(e,t)}else if(n.Db>>16==-15){!e&&(e=(rZn(),Jrt));!o&&(o=(rZn(),Jrt));if(n.Cb.Yh()){s=new Utn(n.Cb,1,13,o,e,Vyn(xtn(bG(n.Cb,62)),n),false);!t?t=s:t.nj(s)}}}else if(G$(n.Cb,90)){if(n.Db>>16==-23){G$(e,90)||(e=(rZn(),nit));G$(o,90)||(o=(rZn(),nit));if(n.Cb.Yh()){s=new Utn(n.Cb,1,10,o,e,Vyn(Y5(bG(n.Cb,29)),n),false);!t?t=s:t.nj(s)}}}else if(G$(n.Cb,457)){u=bG(n.Cb,850);c=(!u.b&&(u.b=new zp(new cy)),u.b);for(a=(r=new pon(new Kw(c.a).a),new Wp(r));a.a.b;){i=bG(jun(a.a).ld(),89);t=LWn(i,pRn(i,u),t)}}}return t}function NWn(n,e){var t,r,i,a,c,u,s,o,f,h,l;c=lM(yK(YDn(n,(IYn(),AFe))));l=bG(YDn(n,M_e),21);s=false;o=false;h=new _D((!n.c&&(n.c=new gz(ont,n,9,9)),n.c));while(h.e!=h.i.gc()&&(!s||!o)){a=bG(iyn(h),123);u=0;for(i=Dz(Yan(zfn(fT(Gce,1),jZn,20,0,[(!a.d&&(a.d=new g_(H7e,a,8,5)),a.d),(!a.e&&(a.e=new g_(H7e,a,7,4)),a.e)])));dDn(i);){r=bG(K9(i),74);f=c&&XNn(r)&&lM(yK(YDn(r,LFe)));t=RVn((!r.b&&(r.b=new g_(B7e,r,4,7)),r.b),a)?n==H0(vCn(bG(Yin((!r.c&&(r.c=new g_(B7e,r,5,8)),r.c),0),84))):n==H0(vCn(bG(Yin((!r.b&&(r.b=new g_(B7e,r,4,7)),r.b),0),84)));if(f||t){++u;if(u>1){break}}}u>0?s=true:l.Hc((uNn(),C8e))&&(!a.n&&(a.n=new gz(unt,a,1,7)),a.n).i>0&&(s=true);u>1&&(o=true)}s&&e.Fc((o_n(),M$e));o&&e.Fc((o_n(),T$e))}function $Wn(n){var e,r,i,a,c,u,s,o,f,h,l,b;b=bG(YDn(n,(JYn(),J4e)),21);if(b.dc()){return null}s=0;u=0;if(b.Hc((emn(),l9e))){h=bG(YDn(n,k6e),101);i=2;r=2;a=2;c=2;e=!H0(n)?bG(YDn(n,S4e),88):bG(YDn(H0(n),S4e),88);for(f=new _D((!n.c&&(n.c=new gz(ont,n,9,9)),n.c));f.e!=f.i.gc();){o=bG(iyn(f),123);l=bG(YDn(o,P6e),64);if(l==(UQn(),Z8e)){l=HGn(o,e);Pyn(o,P6e,l)}if(h==(FPn(),m8e)){switch(l.g){case 1:i=t.Math.max(i,o.i+o.g);break;case 2:r=t.Math.max(r,o.j+o.f);break;case 3:a=t.Math.max(a,o.i+o.g);break;case 4:c=t.Math.max(c,o.j+o.f)}}else{switch(l.g){case 1:i+=o.g+2;break;case 2:r+=o.f+2;break;case 3:a+=o.g+2;break;case 4:c+=o.f+2}}}s=t.Math.max(i,a);u=t.Math.max(r,c)}return iJn(n,s,u,true,true)}function DWn(n,e,r,i,a){var c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y;m=bG(v8(Ein(tY(new gX(null,new d3(e.d,16)),new Hg(r)),new Ug(r)),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[(Sbn(),Lde)]))),15);l=pZn;h=T1n;for(o=new nd(e.b.j);o.a0;if(o){if(o){l=v.p;c?++l:--l;h=bG(Yq(v.c.a,l),10);r=hhn(h);b=!(ZRn(r,M,t[0])||oz(r,M,t[0]))}}else{b=true}}w=false;y=e.D.i;if(!!y&&!!y.c&&u.e){f=c&&y.p>0||!c&&y.p=0){s=null;u=new K4(f.a,o+1);while(u.bu?1:UL(isNaN(0),isNaN(u)))<0&&(null,lcn(C9n),(t.Math.abs(u-1)<=C9n||u==1||isNaN(u)&&isNaN(1)?0:u<1?-1:u>1?1:UL(isNaN(u),isNaN(1)))<0)&&(null,lcn(C9n),(t.Math.abs(0-s)<=C9n||0==s||isNaN(0)&&isNaN(s)?0:0s?1:UL(isNaN(0),isNaN(s)))<0)&&(null,lcn(C9n),(t.Math.abs(s-1)<=C9n||s==1||isNaN(s)&&isNaN(1)?0:s<1?-1:s>1?1:UL(isNaN(s),isNaN(1)))<0));return c}function UWn(n){var e,t,r,i;t=n.D!=null?n.D:n.B;e=BL(t,FCn(91));if(e!=-1){r=(Unn(0,e,t.length),t.substr(0,e));i=new YM;do{i.a+="["}while((e=hR(t,91,++e))!=-1);if(T_(r,wZn))i.a+="Z";else if(T_(r,fie))i.a+="B";else if(T_(r,hie))i.a+="C";else if(T_(r,lie))i.a+="D";else if(T_(r,bie))i.a+="F";else if(T_(r,wie))i.a+="I";else if(T_(r,die))i.a+="J";else if(T_(r,gie))i.a+="S";else{i.a+="L";i.a+=""+r;i.a+=";"}try{return null}catch(a){a=Ofn(a);if(!G$(a,63))throw dm(a)}}else if(BL(t,FCn(46))==-1){if(T_(t,wZn))return qht;else if(T_(t,fie))return Vht;else if(T_(t,hie))return Uht;else if(T_(t,lie))return zht;else if(T_(t,bie))return Wht;else if(T_(t,wie))return Ght;else if(T_(t,die))return Xht;else if(T_(t,gie))return Qht}return null}function GWn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T;n.e=e;u=QNn(e);M=new im;for(r=new nd(u);r.a=0&&d=f.c.c.length?h=X5((YIn(),rEe),tEe):h=X5((YIn(),tEe),tEe);h*=2;c=r.a.g;r.a.g=t.Math.max(c,c+(h-c));u=r.b.g;r.b.g=t.Math.max(u,u+(h-u));a=e}}}function zWn(n){var e,r,i,a;ES(tY(new gX(null,new d3(n.a.b,16)),new Ei),new Si);ePn(n);ES(tY(new gX(null,new d3(n.a.b,16)),new Pi),new Ci);if(n.c==(qgn(),M5e)){ES(tY(wrn(new gX(null,new d3(new Rw(n.f),1)),new Ii),new Oi),new Dg(n));ES(tY(rY(wrn(wrn(new gX(null,new d3(n.d.b,16)),new Ai),new Li),new Ni),new $i),new Rg(n))}a=new PO(y0n,y0n);e=new PO(M0n,M0n);for(i=new nd(n.a.b);i.a0&&(e.a+=MZn,e);JWn(bG(iyn(u),167),e)}e.a+=J4n;s=new iR((!r.c&&(r.c=new g_(B7e,r,5,8)),r.c));while(s.e!=s.i.gc()){s.e>0&&(e.a+=MZn,e);JWn(bG(iyn(s),167),e)}e.a+=")"}}}function YWn(n,e,r){var i,a,c,u,s,o,f,h;for(o=new _D((!n.a&&(n.a=new gz(snt,n,10,11)),n.a));o.e!=o.i.gc();){s=bG(iyn(o),27);for(a=new GV(sx(uRn(s).a.Kc(),new d));dDn(a);){i=bG(K9(a),74);!i.b&&(i.b=new g_(B7e,i,4,7));if(!(i.b.i<=1&&(!i.c&&(i.c=new g_(B7e,i,5,8)),i.c.i<=1))){throw dm(new OM("Graph must not contain hyperedges."))}if(!Y$n(i)&&s!=vCn(bG(Yin((!i.c&&(i.c=new g_(B7e,i,5,8)),i.c),0),84))){f=new FF;Yon(f,i);Ehn(f,(Tun(),wMe),i);Ub(f,bG(_A(GX(r.f,s)),153));Xb(f,bG(fQ(r,vCn(bG(Yin((!i.c&&(i.c=new g_(B7e,i,5,8)),i.c),0),84))),153));ED(e.c,f);for(u=new _D((!i.n&&(i.n=new gz(unt,i,1,7)),i.n));u.e!=u.i.gc();){c=bG(iyn(u),135);h=new x5(f,c.a);Yon(h,c);Ehn(h,wMe,c);h.e.a=t.Math.max(c.g,1);h.e.b=t.Math.max(c.f,1);rXn(h);ED(e.d,h)}}}}}function ZWn(n,e,r){var i,a,c,u,s,o,f,h,l,b;r.Ug("Node promotion heuristic",1);n.i=e;n.r=bG(lIn(e,(IYn(),UFe)),243);n.r!=(CHn(),ZBe)&&n.r!=nHe?HQn(n):a_n(n);h=bG(lIn(n.i,HFe),17).a;c=new dr;switch(n.r.g){case 2:case 1:aVn(n,c);break;case 3:n.r=uHe;aVn(n,c);o=0;for(s=new nd(n.b);s.an.k){n.r=eHe;aVn(n,c)}break;case 4:n.r=uHe;aVn(n,c);f=0;for(a=new nd(n.c);a.an.n){n.r=iHe;aVn(n,c)}break;case 6:b=c0(t.Math.ceil(n.g.length*h/100));aVn(n,new Tg(b));break;case 5:l=c0(t.Math.ceil(n.e*h/100));aVn(n,new jg(l));break;case 8:$Yn(n,true);break;case 9:$Yn(n,false);break;default:aVn(n,c)}n.r!=ZBe&&n.r!=nHe?tFn(n,e):XBn(n,e);r.Vg()}function nQn(n){var e,t,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m;h=n.b;f=new K4(h,0);MF(f,new pQ(n));p=false;c=1;while(f.b0){b.d+=h.n.d;b.d+=h.d}if(b.a>0){b.a+=h.n.a;b.a+=h.d}if(b.b>0){b.b+=h.n.b;b.b+=h.d}if(b.c>0){b.c+=h.n.c;b.c+=h.d}return b}function tQn(n,e,r){var i,a,c,u,s,o,f,h,l,b,w,d;b=r.d;l=r.c;c=new PO(r.f.a+r.d.b+r.d.c,r.f.b+r.d.d+r.d.a);u=c.b;for(f=new nd(n.a);f.a0){n.c[e.c.p][e.p].d+=bRn(n.i,24)*X0n*.07000000029802322-.03500000014901161;n.c[e.c.p][e.p].a=n.c[e.c.p][e.p].d/n.c[e.c.p][e.p].b}}function cQn(n){var e,t,r,i,a,c,u,s,o,f,h,l,b,w,d,g;for(w=new nd(n);w.ai.d;i.d=t.Math.max(i.d,e);if(s&&r){i.d=t.Math.max(i.d,i.a);i.a=i.d+a}break;case 3:r=e>i.a;i.a=t.Math.max(i.a,e);if(s&&r){i.a=t.Math.max(i.a,i.d);i.d=i.a+a}break;case 2:r=e>i.c;i.c=t.Math.max(i.c,e);if(s&&r){i.c=t.Math.max(i.b,i.c);i.b=i.c+a}break;case 4:r=e>i.b;i.b=t.Math.max(i.b,e);if(s&&r){i.b=t.Math.max(i.b,i.c);i.c=i.b+a}}}}}function oQn(n,e){var t,r,i,a,c,u,s,o,f;o="";if(e.length==0){return n.ne(A1n,I1n,-1,-1)}f=UAn(e);T_(f.substr(0,3),"at ")&&(f=(w3(3,f.length+1),f.substr(3)));f=f.replace(/\[.*?\]/g,"");c=f.indexOf("(");if(c==-1){c=f.indexOf("@");if(c==-1){o=f;f=""}else{o=UAn((w3(c+1,f.length+1),f.substr(c+1)));f=UAn((Unn(0,c,f.length),f.substr(0,c)))}}else{t=f.indexOf(")",c);o=(Unn(c+1,t,f.length),f.substr(c+1,t-(c+1)));f=UAn((Unn(0,c,f.length),f.substr(0,c)))}c=BL(f,FCn(46));c!=-1&&(f=(w3(c+1,f.length+1),f.substr(c+1)));(f.length==0||T_(f,"Anonymous function"))&&(f=I1n);u=hx(o,FCn(58));i=C_(o,FCn(58),u-1);s=-1;r=-1;a=A1n;if(u!=-1&&i!=-1){a=(Unn(0,i,o.length),o.substr(0,i));s=oR((Unn(i+1,u,o.length),o.substr(i+1,u-(i+1))));r=oR((w3(u+1,o.length+1),o.substr(u+1)))}return n.ne(a,f,s,r)}function fQn(n){var e,t,r,i,a,c,u,s,o,f,h;for(o=new nd(n);o.a0||f.j==n9e&&f.e.c.length-f.g.c.length<0)){e=false;break}for(i=new nd(f.g);i.a=f&&M>=v){b+=d.n.b+g.n.b+g.a.b-y;++s}}}}if(r){for(u=new nd(m.e);u.a=f&&M>=v){b+=d.n.b+g.n.b+g.a.b-y;++s}}}}}if(s>0){T+=b/s;++w}}if(w>0){e.a=a*T/w;e.g=w}else{e.a=0;e.g=0}}function lQn(n){var e,t,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T;a=n.f.b;l=a.a;f=a.b;w=n.e.g;b=n.e.f;jN(n.e,a.a,a.b);M=l/w;T=f/b;for(o=new _D(BJ(n.e));o.e!=o.i.gc();){s=bG(iyn(o),135);San(s,s.i*M);Pan(s,s.j*T)}for(p=new _D(HJ(n.e));p.e!=p.i.gc();){v=bG(iyn(p),123);k=v.i;y=v.j;k>0&&San(v,k*M);y>0&&Pan(v,y*T)}ron(n.b,new ge);e=new im;for(u=new pon(new Kw(n.c).a);u.b;){c=jun(u);r=bG(c.ld(),74);t=bG(c.md(),407).a;i=t_n(r,false,false);h=rCn(pIn(r),NOn(i),t);wqn(h,i);m=mIn(r);if(!!m&&Ctn(e,m,0)==-1){Tm(e.c,m);sY(m,(PK(h.b!=0),bG(h.a.a.c,8)),t)}}for(g=new pon(new Kw(n.d).a);g.b;){d=jun(g);r=bG(d.ld(),74);t=bG(d.md(),407).a;i=t_n(r,false,false);h=rCn(yIn(r),gln(NOn(i)),t);h=gln(h);wqn(h,i);m=kIn(r);if(!!m&&Ctn(e,m,0)==-1){Tm(e.c,m);sY(m,(PK(h.b!=0),bG(h.c.b.c,8)),t)}}}function bQn(n,e,t,r){var i,a,c,u,s;u=new OQn(e);wKn(u,r);i=true;if(!!n&&n.pf((JYn(),S4e))){a=bG(n.of((JYn(),S4e)),88);i=a==(Bdn(),h5e)||a==o5e||a==f5e}sBn(u,false);Lin(u.e.Rf(),new _B(u,false,i));n0(u,u.f,(ran(),rpe),(UQn(),D8e));n0(u,u.f,ape,Y8e);n0(u,u.g,rpe,n9e);n0(u,u.g,ape,$8e);yyn(u,D8e);yyn(u,Y8e);$J(u,$8e);$J(u,n9e);ZK();c=u.A.Hc((emn(),f9e))&&u.B.Hc((hUn(),k9e))?Bpn(u):null;!!c&&kT(u.a,c);sQn(u);XTn(u);VTn(u);mWn(u);hGn(u);sEn(u);kkn(u,D8e);kkn(u,Y8e);$Bn(u);CVn(u);if(!t){return u.o}mvn(u);oEn(u);kkn(u,$8e);kkn(u,n9e);s=u.B.Hc((hUn(),y9e));kLn(u,s,D8e);kLn(u,s,Y8e);yLn(u,s,$8e);yLn(u,s,n9e);ES(new gX(null,new d3(new Gw(u.i),0)),new Nn);ES(tY(new gX(null,GW(u.r).a.oc()),new $n),new Dn);IPn(u);u.e.Pf(u.o);ES(new gX(null,GW(u.r).a.oc()),new xn);return u.o}function wQn(n){var e,r,i,a,c,u,s,o,f,h,l,b,w,d,g;f=y0n;for(i=new nd(n.a.b);i.a1){w=new $Vn(d,k,i);Y8(k,new XI(n,w));Tm(u.c,w);for(l=k.a.ec().Kc();l.Ob();){h=bG(l.Pb(),42);Ttn(c,h.b)}}if(s.a.gc()>1){w=new $Vn(d,s,i);Y8(s,new VI(n,w));Tm(u.c,w);for(l=s.a.ec().Kc();l.Ob();){h=bG(l.Pb(),42);Ttn(c,h.b)}}}}function kQn(n,e,r){var i,a,c,u,s,o,f,h,l,b,w,d,g,v,p;g=n.n;v=n.o;b=n.d;l=bM(MK(Dpn(n,(IYn(),$_e))));if(e){h=l*(e.gc()-1);w=0;for(o=e.Kc();o.Ob();){u=bG(o.Pb(),10);h+=u.o.a;w=t.Math.max(w,u.o.b)}p=g.a-(h-v.a)/2;c=g.b-b.d+w;i=v.a/(e.gc()+1);a=i;for(s=e.Kc();s.Ob();){u=bG(s.Pb(),10);u.n.a=p;u.n.b=c-u.o.b;p+=u.o.a+l;f=ORn(u);f.n.a=u.o.a/2-f.a.a;f.n.b=u.o.b;d=bG(lIn(u,(WYn(),z$e)),12);if(d.e.c.length+d.g.c.length==1){d.n.a=a-d.a.a;d.n.b=0;l2(d,n)}a+=i}}if(r){h=l*(r.gc()-1);w=0;for(o=r.Kc();o.Ob();){u=bG(o.Pb(),10);h+=u.o.a;w=t.Math.max(w,u.o.b)}p=g.a-(h-v.a)/2;c=g.b+v.b+b.a-w;i=v.a/(r.gc()+1);a=i;for(s=r.Kc();s.Ob();){u=bG(s.Pb(),10);u.n.a=p;u.n.b=c;p+=u.o.a+l;f=ORn(u);f.n.a=u.o.a/2-f.a.a;f.n.b=0;d=bG(lIn(u,(WYn(),z$e)),12);if(d.e.c.length+d.g.c.length==1){d.n.a=a-d.a.a;d.n.b=v.b;l2(d,n)}a+=i}}}function yQn(n,e){var r,i,a,c,u,s;if(!bG(lIn(e,(WYn(),oDe)),21).Hc((o_n(),M$e))){return}for(s=new nd(e.a);s.a=0&&c0&&(bG(xJ(n.b,e),127).a.b=r)}function CQn(n,e,t,r){var i,a,c,u,s,o,f,h,l,b,w,d;l=bM(MK(lIn(n,(IYn(),q_e))));b=bM(MK(lIn(n,X_e)));h=bM(MK(lIn(n,U_e)));u=n.o;a=bG(Yq(n.j,0),12);c=a.n;d=dAn(a,h);if(!d){return}if(e.Hc((uNn(),C8e))){switch(bG(lIn(n,(WYn(),cDe)),64).g){case 1:d.c=(u.a-d.b)/2-c.a;d.d=b;break;case 3:d.c=(u.a-d.b)/2-c.a;d.d=-b-d.a;break;case 2:if(t&&a.e.c.length==0&&a.g.c.length==0){f=r?d.a:bG(Yq(a.f,0),72).o.b;d.d=(u.b-f)/2-c.b}else{d.d=u.b+b-c.b}d.c=-l-d.b;break;case 4:if(t&&a.e.c.length==0&&a.g.c.length==0){f=r?d.a:bG(Yq(a.f,0),72).o.b;d.d=(u.b-f)/2-c.b}else{d.d=u.b+b-c.b}d.c=l}}else if(e.Hc(O8e)){switch(bG(lIn(n,(WYn(),cDe)),64).g){case 1:case 3:d.c=c.a+l;break;case 2:case 4:if(t&&!a.c){f=r?d.a:bG(Yq(a.f,0),72).o.b;d.d=(u.b-f)/2-c.b}else{d.d=c.b+b}}}i=d.d;for(o=new nd(a.f);o.a=n.length)return{done:true};var r=n[t++];return{value:[r,e.get(r)],done:false}}}};if(!q_n()){n.prototype.createObject=function(){return{}};n.prototype.get=function(n){return this.obj[":"+n]};n.prototype.set=function(n,e){this.obj[":"+n]=e};n.prototype[H0n]=function(n){delete this.obj[":"+n]};n.prototype.keys=function(){var n=[];for(var e in this.obj){e.charCodeAt(0)==58&&n.push(e.substring(1))}return n}}return n}function DQn(){DQn=O;qze=new Np(j4n);new Np(E4n);new bF("DEPTH",Bwn(0));Nze=new bF("FAN",Bwn(0));Aze=new bF(W9n,Bwn(0));Jze=new bF("ROOT",(Qx(),false));Fze=new bF("LEFTNEIGHBOR",null);Wze=new bF("RIGHTNEIGHBOR",null);_ze=new bF("LEFTSIBLING",null);Qze=new bF("RIGHTSIBLING",null);Lze=new bF("DUMMY",false);new bF("LEVEL",Bwn(0));zze=new bF("REMOVABLE_EDGES",new vS);Yze=new bF("XCOOR",Bwn(0));Zze=new bF("YCOOR",Bwn(0));Bze=new bF("LEVELHEIGHT",0);Uze=new bF("LEVELMIN",0);Hze=new bF("LEVELMAX",0);Dze=new bF("GRAPH_XMIN",0);Rze=new bF("GRAPH_YMIN",0);$ze=new bF("GRAPH_XMAX",0);xze=new bF("GRAPH_YMAX",0);Oze=new bF("COMPACT_LEVEL_ASCENSION",false);Ize=new bF("COMPACT_CONSTRAINTS",new im);Kze=new bF("ID","");Xze=new bF("POSITION",Bwn(0));Vze=new bF("PRELIM",0);Gze=new bF("MODIFIER",0);Cze=new Np(S4n);Pze=new Np(P4n)}function xQn(n){KGn();var e,t,r,i,a,c,u,s,o,f,h,l,b,w,d,g;if(n==null)return null;h=n.length*8;if(h==0){return""}u=h%24;b=h/24|0;l=u!=0?b+1:b;a=null;a=$nn(Uht,L1n,28,l*4,15,1);o=0;f=0;e=0;t=0;r=0;c=0;i=0;for(s=0;s>24;o=(e&3)<<24>>24;w=(e&-128)==0?e>>2<<24>>24:(e>>2^192)<<24>>24;d=(t&-128)==0?t>>4<<24>>24:(t>>4^240)<<24>>24;g=(r&-128)==0?r>>6<<24>>24:(r>>6^252)<<24>>24;a[c++]=Uft[w];a[c++]=Uft[d|o<<4];a[c++]=Uft[f<<2|g];a[c++]=Uft[r&63]}if(u==8){e=n[i];o=(e&3)<<24>>24;w=(e&-128)==0?e>>2<<24>>24:(e>>2^192)<<24>>24;a[c++]=Uft[w];a[c++]=Uft[o<<4];a[c++]=61;a[c++]=61}else if(u==16){e=n[i];t=n[i+1];f=(t&15)<<24>>24;o=(e&3)<<24>>24;w=(e&-128)==0?e>>2<<24>>24:(e>>2^192)<<24>>24;d=(t&-128)==0?t>>4<<24>>24:(t>>4^240)<<24>>24;a[c++]=Uft[w];a[c++]=Uft[d|o<<4];a[c++]=Uft[f<<2];a[c++]=61}return Tmn(a,0,a.length)}function RQn(n,e){var r,i,a,c,u,s,o;n.e==0&&n.p>0&&(n.p=-(n.p-1));n.p>T1n&&G5(e,n.p-V1n);u=e.q.getDate();E0(e,1);n.k>=0&&V0(e,n.k);if(n.c>=0){E0(e,n.c)}else if(n.k>=0){o=new Rhn(e.q.getFullYear()-V1n,e.q.getMonth(),35);i=35-o.q.getDate();E0(e,t.Math.min(i,u))}else{E0(e,u)}n.f<0&&(n.f=e.q.getHours());n.b>0&&n.f<12&&(n.f+=12);cD(e,n.f==24&&n.g?0:n.f);n.j>=0&&S7(e,n.j);n.n>=0&&Knn(e,n.n);n.i>=0&&CL(e,Rgn(Kgn(pSn(Xon(e.q.getTime()),N1n),N1n),n.i));if(n.a){a=new eS;G5(a,a.q.getFullYear()-V1n-80);FP(Xon(e.q.getTime()),Xon(a.q.getTime()))&&G5(e,a.q.getFullYear()-V1n+100)}if(n.d>=0){if(n.c==-1){r=(7+n.d-e.q.getDay())%7;r>3&&(r-=7);s=e.q.getMonth();E0(e,e.q.getDate()+r);e.q.getMonth()!=s&&E0(e,e.q.getDate()+(r>0?-7:7))}else{if(e.q.getDay()!=n.d){return false}}}if(n.o>T1n){c=e.q.getTimezoneOffset();CL(e,Rgn(Xon(e.q.getTime()),(n.o-c)*60*N1n))}return true}function KQn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k;i=lIn(e,(WYn(),EDe));if(!G$(i,207)){return}w=bG(i,27);d=e.e;l=new uN(e.c);a=e.d;l.a+=a.b;l.b+=a.d;k=bG(YDn(w,(IYn(),c_e)),181);if(Fx(k,(hUn(),v9e))){b=bG(YDn(w,s_e),107);xb(b,a.a);qb(b,a.d);Rb(b,a.b);Gb(b,a.c)}t=new im;for(f=new nd(e.a);f.ar.c.length-1){ED(r,new nA(_3n,U9n))}t=bG(lIn(i,_We),17).a;if(dN(bG(lIn(n,wWe),88))){i.e.abM(MK((b3(t,r.c.length),bG(r.c[t],42)).b))&&ww((b3(t,r.c.length),bG(r.c[t],42)),i.e.a+i.f.a)}else{i.e.bbM(MK((b3(t,r.c.length),bG(r.c[t],42)).b))&&ww((b3(t,r.c.length),bG(r.c[t],42)),i.e.b+i.f.b)}}for(a=Gkn(n.b,0);a.b!=a.d.c;){i=bG($6(a),40);t=bG(lIn(i,(eqn(),_We)),17).a;Ehn(i,(DQn(),Uze),MK((b3(t,r.c.length),bG(r.c[t],42)).a));Ehn(i,Hze,MK((b3(t,r.c.length),bG(r.c[t],42)).b))}e.Vg()}function HQn(n){var e,r,i,a,c,u,s,o,f,h,l,b,w,g,v;n.o=bM(MK(lIn(n.i,(IYn(),V_e))));n.f=bM(MK(lIn(n.i,B_e)));n.j=n.i.b.c.length;s=n.j-1;b=0;n.k=0;n.n=0;n.b=a7($nn(tle,XZn,17,n.j,0,1));n.c=a7($nn(Yhe,XZn,345,n.j,7,1));for(u=new nd(n.i.b);u.a0&&ED(n.q,h);ED(n.p,h)}e-=i;w=o+e;f+=e*n.f;r9(n.b,s,Bwn(w));r9(n.c,s,f);n.k=t.Math.max(n.k,w);n.n=t.Math.max(n.n,f);n.e+=e;e+=v}}function UQn(){UQn=O;var n;Z8e=new HO(J2n,0);D8e=new HO(c3n,1);$8e=new HO(u3n,2);Y8e=new HO(s3n,3);n9e=new HO(o3n,4);_8e=(dZ(),new aT((n=bG(Pj(e9e),9),new aB(n,bG(PF(n,n.length),9),0))));B8e=Kwn(nV(D8e,zfn(fT(e9e,1),X4n,64,0,[])));x8e=Kwn(nV($8e,zfn(fT(e9e,1),X4n,64,0,[])));W8e=Kwn(nV(Y8e,zfn(fT(e9e,1),X4n,64,0,[])));J8e=Kwn(nV(n9e,zfn(fT(e9e,1),X4n,64,0,[])));X8e=Kwn(nV(D8e,zfn(fT(e9e,1),X4n,64,0,[Y8e])));F8e=Kwn(nV($8e,zfn(fT(e9e,1),X4n,64,0,[n9e])));z8e=Kwn(nV(D8e,zfn(fT(e9e,1),X4n,64,0,[n9e])));H8e=Kwn(nV(D8e,zfn(fT(e9e,1),X4n,64,0,[$8e])));Q8e=Kwn(nV(Y8e,zfn(fT(e9e,1),X4n,64,0,[n9e])));R8e=Kwn(nV($8e,zfn(fT(e9e,1),X4n,64,0,[Y8e])));q8e=Kwn(nV(D8e,zfn(fT(e9e,1),X4n,64,0,[$8e,n9e])));K8e=Kwn(nV($8e,zfn(fT(e9e,1),X4n,64,0,[Y8e,n9e])));V8e=Kwn(nV(D8e,zfn(fT(e9e,1),X4n,64,0,[Y8e,n9e])));U8e=Kwn(nV(D8e,zfn(fT(e9e,1),X4n,64,0,[$8e,Y8e])));G8e=Kwn(nV(D8e,zfn(fT(e9e,1),X4n,64,0,[$8e,Y8e,n9e])))}function GQn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T;e.Ug(T6n,1);d=new im;M=new im;for(o=new nd(n.b);o.a0&&(y-=w);ZVn(u,y);h=0;for(b=new nd(u.a);b.a0);s.a.Xb(s.c=--s.b)}o=.4*i*h;!c&&s.b0){s=(w3(0,e.length),e.charCodeAt(0));if(s!=64){if(s==37){h=e.lastIndexOf("%");o=false;if(h!=0&&(h==l-1||(o=(w3(h+1,e.length),e.charCodeAt(h+1)==46)))){c=(Unn(1,h,e.length),e.substr(1,h-1));m=T_("%",c)?null:uJn(c);r=0;if(o){try{r=TUn((w3(h+2,e.length+1),e.substr(h+2)),T1n,pZn)}catch(k){k=Ofn(k);if(G$(k,130)){u=k;throw dm(new Ltn(u))}else throw dm(k)}}for(g=Eun(n.Gh());g.Ob();){w=Uon(g);if(G$(w,519)){i=bG(w,598);p=i.d;if((m==null?p==null:T_(m,p))&&r--==0){return i}}}return null}}f=e.lastIndexOf(".");b=f==-1?e:(Unn(0,f,e.length),e.substr(0,f));t=0;if(f!=-1){try{t=TUn((w3(f+1,e.length+1),e.substr(f+1)),T1n,pZn)}catch(k){k=Ofn(k);if(G$(k,130)){b=e}else throw dm(k)}}b=T_("%",b)?null:uJn(b);for(d=Eun(n.Gh());d.Ob();){w=Uon(d);if(G$(w,197)){a=bG(w,197);v=a.xe();if((b==null?v==null:T_(b,v))&&t--==0){return a}}}return null}}return IWn(n,e)}function nJn(n){var e,t,r,i,a,c,u,s,o,f,h,l,b,w,g,v,p,m;f=new rm;s=new U1;for(r=new nd(n.a.a.b);r.ae.d.c){b=n.c[e.a.d];v=n.c[h.a.d];if(b==v){continue}HKn(BS(_S(HS(FS(new bk,1),100),b),v))}}}}}}}function eJn(n,e){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T;b=bG(bG(r7(n.r,e),21),87);if(e==(UQn(),$8e)||e==n9e){PQn(n,e);return}c=e==D8e?(ufn(),dme):(ufn(),pme);y=e==D8e?(rrn(),Epe):(rrn(),Tpe);r=bG(xJ(n.b,e),127);i=r.i;a=i.c+Cin(zfn(fT(zht,1),C0n,28,15,[r.n.b,n.C.b,n.k]));p=i.c+i.b-Cin(zfn(fT(zht,1),C0n,28,15,[r.n.c,n.C.c,n.k]));u=CT(XB(c),n.t);m=e==D8e?M0n:y0n;for(l=b.Kc();l.Ob();){f=bG(l.Pb(),117);if(!f.c||f.c.d.c.length<=0){continue}v=f.b.Mf();g=f.e;w=f.c;d=w.i;d.b=(o=w.n,w.e.a+o.b+o.c);d.a=(s=w.n,w.e.b+s.d+s.a);i1(y,z2n);w.f=y;uen(w,(Uen(),wpe));d.c=g.a-(d.b-v.a)/2;M=t.Math.min(a,g.a);T=t.Math.max(p,g.a+v.a);d.cT&&(d.c=T-d.b);ED(u.d,new iV(d,Vdn(u,d)));m=e==D8e?t.Math.max(m,g.b+f.b.Mf().b):t.Math.min(m,g.b)}m+=e==D8e?n.t:-n.t;k=fpn((u.e=m,u));k>0&&(bG(xJ(n.b,e),127).a.b=k);for(h=b.Kc();h.Ob();){f=bG(h.Pb(),117);if(!f.c||f.c.d.c.length<=0){continue}d=f.c.i;d.c-=f.e.a;d.d-=f.e.b}}function tJn(n){var e,t,r,i,a,c,u,s,o,f,h,l,b;e=new rm;for(s=new _D(n);s.e!=s.i.gc();){u=bG(iyn(s),27);t=new uk;jJ(Zke,u,t);b=new he;i=bG(v8(new gX(null,new RW(new GV(sx(cRn(u).a.Kc(),new d)))),VX(b,gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[(Sbn(),Lde)])))),85);rcn(t,bG(i.xc((Qx(),true)),16),new le);r=bG(v8(tY(bG(i.xc(false),15).Lc(),new be),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[Lde]))),15);for(c=r.Kc();c.Ob();){a=bG(c.Pb(),74);l=mIn(a);if(l){o=bG(_A(GX(e.f,l)),21);if(!o){o=CFn(l);ZAn(e.f,l,o)}esn(t,o)}}i=bG(v8(new gX(null,new RW(new GV(sx(uRn(u).a.Kc(),new d)))),VX(b,gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[Lde])))),85);rcn(t,bG(i.xc(true),16),new we);r=bG(v8(tY(bG(i.xc(false),15).Lc(),new de),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[Lde]))),15);for(h=r.Kc();h.Ob();){f=bG(h.Pb(),74);l=kIn(f);if(l){o=bG(_A(GX(e.f,l)),21);if(!o){o=CFn(l);ZAn(e.f,l,o)}esn(t,o)}}}}function rJn(n,e){MXn();var t,r,i,a,c,u,s,o,f,h,l,b,w,d;s=kwn(n,0)<0;s&&(n=Ptn(n));if(kwn(n,0)==0){switch(e){case 0:return"0";case 1:return L0n;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:b=new nT;e<0?(b.a+="0E+",b):(b.a+="0E",b);b.a+=e==T1n?"2147483648":""+-e;return b.a}}f=18;h=$nn(Uht,L1n,28,f+1,15,1);t=f;d=n;do{o=d;d=pSn(d,10);h[--t]=MV(Rgn(48,Fgn(o,Kgn(d,10))))&$1n}while(kwn(d,0)!=0);i=Fgn(Fgn(Fgn(f,t),e),1);if(e==0){s&&(h[--t]=45);return Tmn(h,t,f-t)}if(e>0&&kwn(i,-6)>=0){if(kwn(i,0)>=0){a=t+MV(i);for(u=f-1;u>=a;u--){h[u+1]=h[u]}h[++a]=46;s&&(h[--t]=45);return Tmn(h,t,f-t+1)}for(c=2;FP(c,Rgn(Ptn(i),1));c++){h[--t]=48}h[--t]=46;h[--t]=48;s&&(h[--t]=45);return Tmn(h,t,f-t)}w=t+1;r=f;l=new eT;s&&(l.a+="-",l);if(r-w>=1){IQ(l,h[t]);l.a+=".";l.a+=Tmn(h,t+1,f-t-1)}else{l.a+=Tmn(h,t,f-t)}l.a+="E";kwn(i,0)>0&&(l.a+="+",l);l.a+=""+lz(i);return l.a}function iJn(n,e,r,i,a){var c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T;v=new PO(n.g,n.f);g=BAn(n);g.a=t.Math.max(g.a,e);g.b=t.Math.max(g.b,r);T=g.a/v.a;h=g.b/v.b;y=g.a-v.a;o=g.b-v.b;if(i){u=!H0(n)?bG(YDn(n,(JYn(),S4e)),88):bG(YDn(H0(n),(JYn(),S4e)),88);s=BA(YDn(n,(JYn(),k6e)))===BA((FPn(),m8e));for(m=new _D((!n.c&&(n.c=new gz(ont,n,9,9)),n.c));m.e!=m.i.gc();){p=bG(iyn(m),123);k=bG(YDn(p,P6e),64);if(k==(UQn(),Z8e)){k=HGn(p,u);Pyn(p,P6e,k)}switch(k.g){case 1:s||San(p,p.i*T);break;case 2:San(p,p.i+y);s||Pan(p,p.j*h);break;case 3:s||San(p,p.i*T);Pan(p,p.j+o);break;case 4:s||Pan(p,p.j*h)}}}jN(n,g.a,g.b);if(a){for(b=new _D((!n.n&&(n.n=new gz(unt,n,1,7)),n.n));b.e!=b.i.gc();){l=bG(iyn(b),135);w=l.i+l.g/2;d=l.j+l.f/2;M=w/v.a;f=d/v.b;if(M+f>=1){if(M-f>0&&d>=0){San(l,l.i+y);Pan(l,l.j+o*f)}else if(M-f<0&&w>=0){San(l,l.i+y*M);Pan(l,l.j+o)}}}}Pyn(n,(JYn(),J4e),(emn(),c=bG(Pj(w9e),9),new aB(c,bG(PF(c,c.length),9),0)));return new PO(T,h)}function aJn(n){dP(n,new dCn(BT(GT(_T(UT(HT(new vs,D7n),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new $u),D7n)));z4(n,D7n,l9n,tyn(VJe));z4(n,D7n,c4n,tyn(nYe));z4(n,D7n,g4n,tyn(_Je));z4(n,D7n,D4n,tyn(BJe));z4(n,D7n,d4n,tyn(HJe));z4(n,D7n,v4n,tyn(FJe));z4(n,D7n,b4n,tyn(UJe));z4(n,D7n,p4n,tyn(XJe));z4(n,D7n,S7n,tyn(RJe));z4(n,D7n,E7n,tyn(KJe));z4(n,D7n,j7n,tyn(WJe));z4(n,D7n,O7n,tyn(YJe));z4(n,D7n,A7n,tyn(QJe));z4(n,D7n,L7n,tyn(JJe));z4(n,D7n,I7n,tyn(GJe));z4(n,D7n,M7n,tyn(qJe));z4(n,D7n,T7n,tyn(zJe));z4(n,D7n,P7n,tyn(ZJe));z4(n,D7n,C7n,tyn(eYe));z4(n,D7n,y7n,tyn(xJe))}function cJn(n){var e,t,r,i,a,c,u,s,o,f,h;if(n==null){throw dm(new iT(CZn))}o=n;a=n.length;s=false;if(a>0){e=(w3(0,n.length),n.charCodeAt(0));if(e==45||e==43){n=(w3(1,n.length+1),n.substr(1));--a;s=e==45}}if(a==0){throw dm(new iT(k0n+o+'"'))}while(n.length>0&&(w3(0,n.length),n.charCodeAt(0)==48)){n=(w3(1,n.length+1),n.substr(1));--a}if(a>(vGn(),hle)[10]){throw dm(new iT(k0n+o+'"'))}for(i=0;i0){h=-parseInt((Unn(0,r,n.length),n.substr(0,r)),10);n=(w3(r,n.length+1),n.substr(r));a-=r;t=false}while(a>=c){r=parseInt((Unn(0,c,n.length),n.substr(0,c)),10);n=(w3(c,n.length+1),n.substr(c));a-=c;if(t){t=false}else{if(kwn(h,u)<0){throw dm(new iT(k0n+o+'"'))}h=Kgn(h,f)}h=Fgn(h,r)}if(kwn(h,0)>0){throw dm(new iT(k0n+o+'"'))}if(!s){h=Ptn(h);if(kwn(h,0)<0){throw dm(new iT(k0n+o+'"'))}}return h}function uJn(n){rVn();var e,t,r,i,a,c,u,s;if(n==null)return null;i=BL(n,FCn(37));if(i<0){return n}else{s=new vx((Unn(0,i,n.length),n.substr(0,i)));e=$nn(Vht,rte,28,4,15,1);u=0;r=0;for(c=n.length;ii+2&&Thn((w3(i+1,n.length),n.charCodeAt(i+1)),trt,rrt)&&Thn((w3(i+2,n.length),n.charCodeAt(i+2)),trt,rrt)){t=xG((w3(i+1,n.length),n.charCodeAt(i+1)),(w3(i+2,n.length),n.charCodeAt(i+2)));i+=2;if(r>0){(t&192)==128?e[u++]=t<<24>>24:r=0}else if(t>=128){if((t&224)==192){e[u++]=t<<24>>24;r=2}else if((t&240)==224){e[u++]=t<<24>>24;r=3}else if((t&248)==240){e[u++]=t<<24>>24;r=4}}if(r>0){if(u==r){switch(u){case 2:{IQ(s,((e[0]&31)<<6|e[1]&63)&$1n);break}case 3:{IQ(s,((e[0]&15)<<12|(e[1]&63)<<6|e[2]&63)&$1n);break}}u=0;r=0}}else{for(a=0;a=2){if((!n.a&&(n.a=new gz(U7e,n,6,6)),n.a).i==0){r=(yj(),a=new uo,a);cen((!n.a&&(n.a=new gz(U7e,n,6,6)),n.a),r)}else if((!n.a&&(n.a=new gz(U7e,n,6,6)),n.a).i>1){b=new iR((!n.a&&(n.a=new gz(U7e,n,6,6)),n.a));while(b.e!=b.i.gc()){FSn(b)}}wqn(e,bG(Yin((!n.a&&(n.a=new gz(U7e,n,6,6)),n.a),0),166))}if(l){for(i=new _D((!n.a&&(n.a=new gz(U7e,n,6,6)),n.a));i.e!=i.i.gc();){r=bG(iyn(i),166);for(f=new _D((!r.a&&(r.a=new PD(K7e,r,5)),r.a));f.e!=f.i.gc();){o=bG(iyn(f),377);s.a=t.Math.max(s.a,o.a);s.b=t.Math.max(s.b,o.b)}}}for(u=new _D((!n.n&&(n.n=new gz(unt,n,1,7)),n.n));u.e!=u.i.gc();){c=bG(iyn(u),135);h=bG(YDn(c,_5e),8);!!h&&EN(c,h.a,h.b);if(l){s.a=t.Math.max(s.a,c.i+c.g);s.b=t.Math.max(s.b,c.j+c.f)}}return s}function oJn(n,e,t,r,i){var a,c,u;mrn(n,e);c=e[0];a=ZJ(t.c,0);u=-1;if(tln(t)){if(r>0){if(c+r>n.length){return false}u=HNn((Unn(0,c+r,n.length),n.substr(0,c+r)),e)}else{u=HNn(n,e)}}switch(a){case 71:u=JOn(n,c,zfn(fT(vle,1),XZn,2,6,[W1n,Q1n]),e);i.e=u;return true;case 77:return f_n(n,e,i,u,c);case 76:return h_n(n,e,i,u,c);case 69:return JAn(n,e,c,i);case 99:return YAn(n,e,c,i);case 97:u=JOn(n,c,zfn(fT(vle,1),XZn,2,6,["AM","PM"]),e);i.b=u;return true;case 121:return l_n(n,e,c,u,t,i);case 100:if(u<=0){return false}i.c=u;return true;case 83:if(u<0){return false}return cpn(u,c,e[0],i);case 104:u==12&&(u=0);case 75:case 72:if(u<0){return false}i.f=u;i.g=false;return true;case 107:if(u<0){return false}i.f=u;i.g=true;return true;case 109:if(u<0){return false}i.j=u;return true;case 115:if(u<0){return false}i.n=u;return true;case 90:if(cE[o]&&(v=o);for(l=new nd(n.a.b);l.a1){a=aKn(e);l=c.g;d=bG(YDn(e,AZe),107);g=bM(MK(YDn(e,dZe)));(!e.a&&(e.a=new gz(snt,e,10,11)),e.a).i>1&&bM(MK(YDn(e,(vBn(),GYe))))!=y0n&&(c.c+(d.b+d.c))/(c.b+(d.d+d.a))1&&bM(MK(YDn(e,(vBn(),UYe))))!=y0n&&(c.c+(d.b+d.c))/(c.b+(d.d+d.a))>g&&Pyn(a,(vBn(),VYe),t.Math.max(bM(MK(YDn(e,qYe))),bM(MK(YDn(a,VYe)))-bM(MK(YDn(e,UYe)))));w=new jO(i,h);o=EYn(w,a,b);f=o.g;if(f>=l&&f==f){for(u=0;u<(!a.a&&(a.a=new gz(snt,a,10,11)),a.a).i;u++){TNn(n,bG(Yin((!a.a&&(a.a=new gz(snt,a,10,11)),a.a),u),27),bG(Yin((!e.a&&(e.a=new gz(snt,e,10,11)),e.a),u),27))}$in(e,w);B1(c,o.c);_1(c,o.b)}--s}Pyn(e,(vBn(),KYe),c.b);Pyn(e,FYe,c.c);r.Vg()}function bJn(n,e){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m;e.Ug("Interactive node layering",1);r=new im;for(b=new nd(n.a);b.a=s){PK(m.b>0);m.a.Xb(m.c=--m.b);break}else if(v.a>o){if(!i){ED(v.b,h);v.c=t.Math.min(v.c,o);v.a=t.Math.max(v.a,s);i=v}else{Dfn(i.b,v.b);i.a=t.Math.max(i.a,v.a);RQ(m)}}}if(!i){i=new Pk;i.c=o;i.a=s;MF(m,i);ED(i.b,h)}}u=n.b;f=0;for(p=new nd(r);p.aw){if(c){fL(T,b);fL(E,Bwn(f.b-1))}O=r.b;A+=b+e;b=0;h=t.Math.max(h,r.b+r.c+I)}San(s,O);Pan(s,A);h=t.Math.max(h,O+I+r.c);b=t.Math.max(b,l);O+=I+e}h=t.Math.max(h,i);C=A+b+r.a;if(Cn4n;S=t.Math.abs(b.b-d.b)>n4n;(!r&&E&&S||r&&(E||S))&&hq(v.a,y)}esn(v.a,i);i.b==0?b=y:b=(PK(i.b!=0),bG(i.c.b.c,8));dfn(w,l,g);if(Esn(a)==j){if(VQ(j.i)!=a.a){g=new wj;MAn(g,VQ(j.i),m)}Ehn(v,VDe,g)}wOn(w,v,m);h.a.zc(w,h)}f2(v,M);b2(v,j)}for(f=h.a.ec().Kc();f.Ob();){o=bG(f.Pb(),18);f2(o,null);b2(o,null)}e.Vg()}function gJn(n,e){var t,r,i,a,c,u,s,o,f,h,l;i=bG(lIn(n,(eqn(),wWe)),88);f=i==(Bdn(),o5e)||i==f5e?s5e:f5e;t=bG(v8(tY(new gX(null,new d3(n.b,16)),new Fc),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[(Sbn(),Lde)]))),15);s=bG(v8(rY(t.Oc(),new Lv(e)),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[Lde]))),15);s.Gc(bG(v8(rY(t.Oc(),new Nv(e)),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[Lde]))),16));s.jd(new $v(f));l=new Vj(new Dv(i));r=new rm;for(u=s.Kc();u.Ob();){c=bG(u.Pb(),240);o=bG(c.a,40);if(lM(yK(c.c))){l.a.zc(o,(Qx(),Bhe))==null;new ld(l.a.Zc(o,false)).a.gc()>0&&jJ(r,o,bG(new ld(l.a.Zc(o,false)).a.Vc(),40));new ld(l.a.ad(o,true)).a.gc()>1&&jJ(r,mpn(l,o),o)}else{if(new ld(l.a.Zc(o,false)).a.gc()>0){a=bG(new ld(l.a.Zc(o,false)).a.Vc(),40);BA(a)===BA(_A(GX(r.f,o)))&&bG(lIn(o,(DQn(),Ize)),15).Fc(a)}if(new ld(l.a.ad(o,true)).a.gc()>1){h=mpn(l,o);BA(_A(GX(r.f,h)))===BA(o)&&bG(lIn(h,(DQn(),Ize)),15).Fc(o)}l.a.Bc(o)!=null}}}function vJn(n){var e,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y;if(n.gc()==1){return bG(n.Xb(0),235)}else if(n.gc()<=0){return new k7}for(a=n.Kc();a.Ob();){r=bG(a.Pb(),235);d=0;h=pZn;l=pZn;o=T1n;f=T1n;for(w=new nd(r.e);w.as){k=0;y+=u+p;u=0}cUn(g,r,k,y);e=t.Math.max(e,k+v.a);u=t.Math.max(u,v.b);k+=v.a+p}return g}function pJn(n){KGn();var e,t,r,i,a,c,u,s,o,f,h,l,b,w,d,g;if(n==null)return null;a=qtn(n);w=dgn(a);if(w%4!=0){return null}d=w/4|0;if(d==0)return $nn(Vht,rte,28,0,15,1);h=null;e=0;t=0;r=0;i=0;c=0;u=0;s=0;o=0;b=0;l=0;f=0;h=$nn(Vht,rte,28,d*3,15,1);for(;b>4)<<24>>24;h[l++]=((t&15)<<4|r>>2&15)<<24>>24;h[l++]=(r<<6|i)<<24>>24}if(!TE(c=a[f++])||!TE(u=a[f++])){return null}e=Hft[c];t=Hft[u];s=a[f++];o=a[f++];if(Hft[s]==-1||Hft[o]==-1){if(s==61&&o==61){if((t&15)!=0)return null;g=$nn(Vht,rte,28,b*3+1,15,1);QGn(h,0,g,0,b*3);g[l]=(e<<2|t>>4)<<24>>24;return g}else if(s!=61&&o==61){r=Hft[s];if((r&3)!=0)return null;g=$nn(Vht,rte,28,b*3+2,15,1);QGn(h,0,g,0,b*3);g[l++]=(e<<2|t>>4)<<24>>24;g[l]=((t&15)<<4|r>>2&15)<<24>>24;return g}else{return null}}else{r=Hft[s];i=Hft[o];h[l++]=(e<<2|t>>4)<<24>>24;h[l++]=((t&15)<<4|r>>2&15)<<24>>24;h[l++]=(r<<6|i)<<24>>24}return h}function mJn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y;e.Ug(T6n,1);w=bG(lIn(n,(IYn(),gFe)),223);for(i=new nd(n.b);i.a=2){d=true;l=new nd(a.j);t=bG(K3(l),12);b=null;while(l.a0){i=l.gc();f=c0(t.Math.floor((i+1)/2))-1;a=c0(t.Math.ceil((i+1)/2))-1;if(e.o==Lqe){for(h=a;h>=f;h--){if(e.a[y.p]==y){g=bG(l.Xb(h),42);d=bG(g.a,10);if(!fS(r,g.b)&&w>n.b.e[d.p]){e.a[d.p]=y;e.g[y.p]=e.g[d.p];e.a[y.p]=e.g[y.p];e.f[e.g[y.p].p]=(Qx(),lM(e.f[e.g[y.p].p])&y.k==(YIn(),tEe)?true:false);w=n.b.e[d.p]}}}}else{for(h=f;h<=a;h++){if(e.a[y.p]==y){p=bG(l.Xb(h),42);v=bG(p.a,10);if(!fS(r,p.b)&&w0){a=bG(Yq(v.c.a,T-1),10);u=n.i[a.p];E=t.Math.ceil(S$(n.n,a,v));c=M.a.e-v.d.d-(u.a.e+a.o.b+a.d.a)-E}f=y0n;if(T0&&j.a.e.e-j.a.a-(j.b.e.e-j.b.a)<0;d=k.a.e.e-k.a.a-(k.b.e.e-k.b.a)<0&&j.a.e.e-j.a.a-(j.b.e.e-j.b.a)>0;w=k.a.e.e+k.b.aj.b.e.e+j.a.a;y=0;!g&&!d&&(b?c+l>0?y=l:f-i>0&&(y=i):w&&(c+s>0?y=s:f-m>0&&(y=m)));M.a.e+=y;M.b&&(M.d.e+=y);return false}function MJn(n,e,r){var i,a,c,u,s,o,f,h,l,b;i=new yY(e.Lf().a,e.Lf().b,e.Mf().a,e.Mf().b);a=new fN;if(n.c){for(u=new nd(e.Rf());u.ao&&(r.a+=Z$($nn(Uht,L1n,28,-o,15,1)));r.a+="Is";if(BL(s,FCn(32))>=0){for(i=0;i=r.o.b/2}else{p=!h}if(p){v=bG(lIn(r,(WYn(),zDe)),15);if(!v){a=new im;Ehn(r,zDe,a)}else if(l){a=v}else{i=bG(lIn(r,X$e),15);if(!i){a=new im;Ehn(r,X$e,a)}else{v.gc()<=i.gc()?a=v:a=i}}}else{i=bG(lIn(r,(WYn(),X$e)),15);if(!i){a=new im;Ehn(r,X$e,a)}else if(h){a=i}else{v=bG(lIn(r,zDe),15);if(!v){a=new im;Ehn(r,zDe,a)}else{i.gc()<=v.gc()?a=i:a=v}}}a.Fc(n);Ehn(n,(WYn(),z$e),t);if(e.d==t){b2(e,null);t.e.c.length+t.g.c.length==0&&l2(t,null);Kln(t)}else{f2(e,null);t.e.c.length+t.g.c.length==0&&l2(t,null)}XY(e.a)}function IJn(n,e,r){var i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S,P,C,I,O,A;r.Ug("MinWidth layering",1);w=e.b;j=e.a;A=bG(lIn(e,(IYn(),_Fe)),17).a;s=bG(lIn(e,BFe),17).a;n.b=bM(MK(lIn(e,R_e)));n.d=y0n;for(y=new nd(j);y.a0){f=0;!!v&&(f+=s);f+=(S-1)*u;!!k&&(f+=s);E&&!!k&&(f=t.Math.max(f,WKn(k,u,m,j)));if(f=n.a){i=Hqn(n,k);h=t.Math.max(h,i.b);M=t.Math.max(M,i.d);ED(s,new nA(k,i))}}S=new im;for(f=0;f0),p.a.Xb(p.c=--p.b),P=new pQ(n.b),MF(p,P),PK(p.b0){l=f<100?null:new fj(f);o=new Vsn(e);w=o.g;v=$nn(Ght,z1n,28,f,15,1);r=0;k=new _in(f);for(i=0;i=0;){if(b!=null?bdn(b,w[s]):BA(b)===BA(w[s])){if(v.length<=r){g=v;v=$nn(Ght,z1n,28,2*v.length,15,1);QGn(g,0,v,0,r)}v[r++]=i;cen(k,w[s]);break n}}b=b;if(BA(b)===BA(u)){break}}}o=k;w=k.g;f=r;if(r>v.length){g=v;v=$nn(Ght,z1n,28,r,15,1);QGn(g,0,v,0,r)}if(r>0){m=true;for(a=0;a=0;){yjn(n,v[c])}if(r!=f){for(i=f;--i>=r;){yjn(o,i)}g=v;v=$nn(Ght,z1n,28,r,15,1);QGn(g,0,v,0,r)}e=o}}}else{e=fjn(n,e);for(i=n.i;--i>=0;){if(e.Hc(n.g[i])){yjn(n,i);m=true}}}if(m){if(v!=null){t=e.gc();h=t==1?s2(n,4,e.Kc().Pb(),null,v[0],d):s2(n,6,e,v,v[0],d);l=t<100?null:new fj(t);for(i=e.Kc();i.Ob();){b=i.Pb();l=J_(n,bG(b,76),l)}if(!l){Pon(n.e,h)}else{l.nj(h);l.oj()}}else{l=QF(e.gc());for(i=e.Kc();i.Ob();){b=i.Pb();l=J_(n,bG(b,76),l)}!!l&&l.oj()}return true}else{return false}}function NJn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w,g,v,p,m,k;t=new Qyn(e);t.a||PUn(e);o=lBn(e);s=new U1;v=new XFn;for(g=new nd(e.a);g.a0||r.o==Lqe&&a=t}function xJn(n,e,t){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S,P,C;m=e;p=new U1;k=new U1;f=M6(m,mte);r=new AY(n,t,p,k);$On(r.a,r.b,r.c,r.d,f);s=(T=p.i,!T?p.i=new HD(p,p.c):T);for(E=s.Kc();E.Ob();){j=bG(E.Pb(),166);i=bG(r7(p,j),21);for(d=i.Kc();d.Ob();){w=d.Pb();y=bG(kan(n.d,w),166);if(y){u=(!j.e&&(j.e=new g_(U7e,j,10,9)),j.e);cen(u,y)}else{c=E6(m,Pte);l=Nte+w+$te+c;b=l+Lte;throw dm(new AM(b))}}}o=(M=k.i,!M?k.i=new HD(k,k.c):M);for(P=o.Kc();P.Ob();){S=bG(P.Pb(),166);a=bG(r7(k,S),21);for(v=a.Kc();v.Ob();){g=v.Pb();y=bG(kan(n.d,g),166);if(y){h=(!S.g&&(S.g=new g_(U7e,S,9,10)),S.g);cen(h,y)}else{c=E6(m,Pte);l=Nte+g+$te+c;b=l+Lte;throw dm(new AM(b))}}}!t.b&&(t.b=new g_(B7e,t,4,7));if(t.b.i!=0&&(!t.c&&(t.c=new g_(B7e,t,5,8)),t.c.i!=0)&&(!t.b&&(t.b=new g_(B7e,t,4,7)),t.b.i<=1&&(!t.c&&(t.c=new g_(B7e,t,5,8)),t.c.i<=1))&&(!t.a&&(t.a=new gz(U7e,t,6,6)),t.a).i==1){C=bG(Yin((!t.a&&(t.a=new gz(U7e,t,6,6)),t.a),0),166);if(!dMn(C)&&!gMn(C)){Jcn(C,bG(Yin((!t.b&&(t.b=new g_(B7e,t,4,7)),t.b),0),84));Ycn(C,bG(Yin((!t.c&&(t.c=new g_(B7e,t,5,8)),t.c),0),84))}}}function RJn(n){var e,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S,P;for(k=n.a,y=0,M=k.length;y0){l=bG(Yq(b.c.a,u-1),10);E=S$(n.b,b,l);v=b.n.b-b.d.d-(l.n.b+l.o.b+l.d.a+E)}else{v=b.n.b-b.d.d}f=t.Math.min(v,f);if(u1&&(u=t.Math.min(u,t.Math.abs(bG(dyn(s.a,1),8).b-h.b)))}}}}}else{for(g=new nd(e.j);g.aa){c=b.a-a;u=pZn;i.c.length=0;a=b.a}if(b.a>=a){Tm(i.c,s);s.a.b>1&&(u=t.Math.min(u,t.Math.abs(bG(dyn(s.a,s.a.b-2),8).b-b.b)))}}}}}if(i.c.length!=0&&c>e.o.a/2&&u>e.o.b/2){w=new vOn;l2(w,e);KLn(w,(UQn(),D8e));w.n.a=e.o.a/2;p=new vOn;l2(p,e);KLn(p,Y8e);p.n.a=e.o.a/2;p.n.b=e.o.b;for(o=new nd(i);o.a=f.b?f2(s,p):f2(s,w)}else{f=bG(uG(s.a),8);v=s.a.b==0?a3(s.c):bG(MR(s.a),8);v.b>=f.b?b2(s,p):b2(s,w)}l=bG(lIn(s,(IYn(),DFe)),75);!!l&&npn(l,f,true)}e.n.a=a-e.o.a/2}}function FJn(n,e,r){var i,a,c,u,s,o,f,h,l,b;for(s=Gkn(n.b,0);s.b!=s.d.c;){u=bG($6(s),40);if(T_(u.c,B9n)){continue}f=BDn(u,n);e==(Bdn(),o5e)||e==f5e?g$(f,new fu):g$(f,new hu);o=f.c.length;for(i=0;i=0?b=$vn(u):b=Wdn($vn(u));n.qf(j_e,b)}o=new wj;l=false;if(n.pf(v_e)){qR(o,bG(n.of(v_e),8));l=true}else{TD(o,c.a/2,c.b/2)}switch(b.g){case 4:Ehn(f,KFe,(Wvn(),QDe));Ehn(f,nDe,(Lhn(),HNe));f.o.b=c.b;d<0&&(f.o.a=-d);KLn(h,(UQn(),$8e));l||(o.a=c.a);o.a-=c.a;break;case 2:Ehn(f,KFe,(Wvn(),YDe));Ehn(f,nDe,(Lhn(),_Ne));f.o.b=c.b;d<0&&(f.o.a=-d);KLn(h,(UQn(),n9e));l||(o.a=0);break;case 1:Ehn(f,bDe,(irn(),K$e));f.o.a=c.a;d<0&&(f.o.b=-d);KLn(h,(UQn(),Y8e));l||(o.b=c.b);o.b-=c.b;break;case 3:Ehn(f,bDe,(irn(),x$e));f.o.a=c.a;d<0&&(f.o.b=-d);KLn(h,(UQn(),D8e));l||(o.b=0)}qR(h.n,o);Ehn(f,v_e,o);if(e==p8e||e==k8e||e==m8e){w=0;if(e==p8e&&n.pf(k_e)){switch(b.g){case 1:case 2:w=bG(n.of(k_e),17).a;break;case 3:case 4:w=-bG(n.of(k_e),17).a}}else{switch(b.g){case 4:case 2:w=a.b;e==k8e&&(w/=i.b);break;case 1:case 3:w=a.a;e==k8e&&(w/=i.a)}}Ehn(f,$De,w)}Ehn(f,cDe,b);return f}function BJn(){Tj();function n(n){var e=this;this.dispatch=function(e){var t=e.data;switch(t.cmd){case"algorithms":var r=opn((dZ(),new Qw(new Gw(rtt.b))));n.postMessage({id:t.id,data:r});break;case"categories":var i=opn((dZ(),new Qw(new Gw(rtt.c))));n.postMessage({id:t.id,data:i});break;case"options":var a=opn((dZ(),new Qw(new Gw(rtt.d))));n.postMessage({id:t.id,data:a});break;case"register":Dzn(t.algorithms);n.postMessage({id:t.id});break;case"layout":Zqn(t.graph,t.layoutOptions||{},t.options||{});n.postMessage({id:t.id,data:t.graph});break}};this.saveDispatch=function(t){try{e.dispatch(t)}catch(r){n.postMessage({id:t.data.id,error:r})}}}function t(e){var t=this;this.dispatcher=new n({postMessage:function(n){t.onmessage({data:n})}});this.postMessage=function(n){setTimeout((function(){t.dispatcher.saveDispatch({data:n})}),0)}}if(typeof document===r2n&&typeof self!==r2n){var i=new n(self);self.onmessage=i.saveDispatch}else if(typeof e!==r2n&&e.exports){Object.defineProperty(r,"__esModule",{value:true});e.exports={default:t,Worker:t}}}function HJn(n,e,t){var r,i,a,c,u,s,o,f,h,l;f=new yMn(t);Yon(f,e);Ehn(f,(WYn(),EDe),e);f.o.a=e.g;f.o.b=e.f;f.n.a=e.i;f.n.b=e.j;ED(t.a,f);jJ(n.a,e,f);((!e.a&&(e.a=new gz(snt,e,10,11)),e.a).i!=0||lM(yK(YDn(e,(IYn(),AFe)))))&&Ehn(f,W$e,(Qx(),true));o=bG(lIn(t,oDe),21);h=bG(lIn(f,(IYn(),m_e)),101);h==(FPn(),T8e)?Ehn(f,m_e,M8e):h!=M8e&&o.Fc((o_n(),E$e));l=0;r=bG(lIn(t,oFe),88);for(s=new _D((!e.c&&(e.c=new gz(ont,e,9,9)),e.c));s.e!=s.i.gc();){u=bG(iyn(s),123);i=H0(e);(BA(YDn(i,zKe))!==BA((Smn(),hHe))||BA(YDn(i,uFe))===BA((Emn(),NNe))||BA(YDn(i,uFe))===BA((Emn(),ANe))||lM(yK(YDn(i,QKe)))||BA(YDn(i,HKe))!==BA((zmn(),hje))||BA(YDn(i,UFe))===BA((CHn(),ZBe))||BA(YDn(i,UFe))===BA((CHn(),nHe))||BA(YDn(i,GFe))===BA((PKn(),TBe))||BA(YDn(i,GFe))===BA((PKn(),EBe)))&&!lM(yK(YDn(e,XKe)))&&Pyn(u,jDe,Bwn(l++));lM(yK(YDn(u,u_e)))||TQn(n,u,f,o,r,h)}for(c=new _D((!e.n&&(e.n=new gz(unt,e,1,7)),e.n));c.e!=c.i.gc();){a=bG(iyn(c),135);!lM(yK(YDn(a,u_e)))&&!!a.a&&ED(f.b,lwn(a))}lM(yK(lIn(f,KKe)))&&o.Fc((o_n(),k$e));if(lM(yK(lIn(f,OFe)))){o.Fc((o_n(),j$e));o.Fc(T$e);Ehn(f,m_e,M8e)}return f}function UJn(n,e,r,i,a,c,u){var s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S,P,C,I,O,A;g=0;P=0;for(f=new nd(n.b);f.ag){if(c){fL(T,w);fL(E,Bwn(h.b-1));ED(n.d,d);s.c.length=0}O=r.b;A+=w+e;w=0;l=t.Math.max(l,r.b+r.c+I)}Tm(s.c,o);byn(o,O,A);l=t.Math.max(l,O+I+r.c);w=t.Math.max(w,b);O+=I+e;d=o}Dfn(n.a,s);ED(n.d,bG(Yq(s,s.c.length-1),163));l=t.Math.max(l,i);C=A+w+r.a;if(Ci.d.d+i.d.a){f.f.d=true}else{f.f.d=true;f.f.a=true}}}r.b!=r.d.c&&(e=t)}if(f){a=bG(fQ(n.f,c.d.i),60);if(e.ba.d.d+a.d.a){f.f.d=true}else{f.f.d=true;f.f.a=true}}}}for(u=new GV(sx(Qgn(b).a.Kc(),new d));dDn(u);){c=bG(K9(u),18);if(c.a.b!=0){e=bG(MR(c.a),8);if(c.d.j==(UQn(),D8e)){v=new Vqn(e,new PO(e.a,i.d.d),i,c);v.f.a=true;v.a=c.d;Tm(g.c,v)}if(c.d.j==Y8e){v=new Vqn(e,new PO(e.a,i.d.d+i.d.a),i,c);v.f.d=true;v.a=c.d;Tm(g.c,v)}}}}}return g}function WJn(n,e,t){var r,i,a,c,u,s,o,f,h,l;s=new im;h=e.length;c=Ghn(t);for(o=0;o=w){if(p>w){b.c.length=0;w=p}Tm(b.c,c)}}if(b.c.length!=0){l=bG(Yq(b,sMn(e,b.c.length)),131);P.a.Bc(l)!=null;l.s=d++;Zxn(l,E,M);b.c.length=0}}k=n.c.length+1;for(u=new nd(n);u.aS.s){RQ(t);Ttn(S.i,r);if(r.c>0){r.a=S;ED(S.t,r);r.b=T;ED(T.i,r)}}}}}function YJn(n,e,t,r,i){var a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S,P;d=new H7(e.b);k=new H7(e.b);l=new H7(e.b);j=new H7(e.b);g=new H7(e.b);for(T=Gkn(e,0);T.b!=T.d.c;){y=bG($6(T),12);for(u=new nd(y.g);u.a0;v=y.g.c.length>0;o&&v?(Tm(l.c,y),true):o?(Tm(d.c,y),true):v&&(Tm(k.c,y),true)}for(w=new nd(d);w.am.nh()-f.b&&(b=m.nh()-f.b);w>m.oh()-f.d&&(w=m.oh()-f.d);h0){for(y=Gkn(n.f,0);y.b!=y.d.c;){k=bG($6(y),10);k.p+=b-n.e}EAn(n);XY(n.f);D_n(n,i,w)}else{hq(n.f,w);w.p=i;n.e=t.Math.max(n.e,i);for(c=new GV(sx(Qgn(w).a.Kc(),new d));dDn(c);){a=bG(K9(c),18);if(!a.c.i.c&&a.c.i.k==(YIn(),eEe)){hq(n.f,a.c.i);a.c.i.p=i-1}}n.c=i}}}else{EAn(n);XY(n.f);i=0;if(dDn(new GV(sx(Qgn(w).a.Kc(),new d)))){b=0;b=Lyn(b,w);i=b+2;D_n(n,i,w)}else{hq(n.f,w);w.p=0;n.e=t.Math.max(n.e,0);n.b=bG(Yq(n.d.b,0),30);n.c=0}}}}n.f.b==0||EAn(n);n.d.a.c.length=0;m=new im;for(f=new nd(n.d.b);f.a=48&&e<=57){r=e-48;while(i=48&&e<=57){r=r*10+e-48;if(r<0)throw dm(new NM(oZn((c$(),Dre))))}}else{throw dm(new NM(oZn((c$(),Are))))}t=r;if(e==44){if(i>=n.j){throw dm(new NM(oZn((c$(),Nre))))}else if((e=ZJ(n.i,i++))>=48&&e<=57){t=e-48;while(i=48&&e<=57){t=t*10+e-48;if(t<0)throw dm(new NM(oZn((c$(),Dre))))}if(r>t)throw dm(new NM(oZn((c$(),$re))))}else{t=-1}}if(e!=125)throw dm(new NM(oZn((c$(),Lre))));if(n.bm(i)){a=(eZn(),eZn(),++Tht,new a8(9,a));n.d=i+1}else{a=(eZn(),eZn(),++Tht,new a8(3,a));n.d=i}a.Om(r);a.Nm(t);OYn(n)}}return a}function sYn(n){var e,t,r,i,a;t=bG(lIn(n,(WYn(),oDe)),21);e=hN(WMe);i=bG(lIn(n,(IYn(),SFe)),346);i==(Dwn(),U5e)&&yon(e,QMe);lM(yK(lIn(n,jFe)))?xq(e,(bIn(),rTe),(YYn(),nCe)):xq(e,(bIn(),aTe),(YYn(),nCe));lIn(n,(U7(),L3e))!=null&&yon(e,JMe);(lM(yK(lIn(n,NFe)))||lM(yK(lIn(n,EFe))))&&mV(e,(bIn(),uTe),(YYn(),wPe));switch(bG(lIn(n,oFe),88).g){case 2:case 3:case 4:mV(xq(e,(bIn(),rTe),(YYn(),gPe)),uTe,dPe)}t.Hc((o_n(),k$e))&&mV(xq(xq(e,(bIn(),rTe),(YYn(),bPe)),cTe,hPe),uTe,lPe);BA(lIn(n,UFe))!==BA((CHn(),cHe))&&xq(e,(bIn(),aTe),(YYn(),XPe));if(t.Hc(P$e)){xq(e,(bIn(),rTe),(YYn(),YPe));xq(e,iTe,QPe);xq(e,aTe,JPe)}BA(lIn(n,BKe))!==BA((HIn(),d$e))&&BA(lIn(n,gFe))!==BA((qgn(),y5e))&&mV(e,(bIn(),uTe),(YYn(),IPe));lM(yK(lIn(n,CFe)))&&xq(e,(bIn(),aTe),(YYn(),CPe));lM(yK(lIn(n,aFe)))&&xq(e,(bIn(),aTe),(YYn(),cCe));if(NRn(n)){BA(lIn(n,SFe))===BA(U5e)?r=bG(lIn(n,YKe),299):r=bG(lIn(n,ZKe),299);a=r==(sfn(),L$e)?(YYn(),WPe):(YYn(),oCe);xq(e,(bIn(),cTe),a)}switch(bG(lIn(n,bBe),388).g){case 1:xq(e,(bIn(),cTe),(YYn(),uCe));break;case 2:mV(xq(xq(e,(bIn(),aTe),(YYn(),uPe)),cTe,sPe),uTe,oPe)}BA(lIn(n,zKe))!==BA((Smn(),hHe))&&xq(e,(bIn(),aTe),(YYn(),sCe));return e}function oYn(n,e,t){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m;if(Lz(n.a,e)){if(fS(bG(fQ(n.a,e),49),t)){return 1}}else{jJ(n.a,e,new uk)}if(Lz(n.a,t)){if(fS(bG(fQ(n.a,t),49),e)){return-1}}else{jJ(n.a,t,new uk)}if(Lz(n.e,e)){if(fS(bG(fQ(n.e,e),49),t)){return-1}}else{jJ(n.e,e,new uk)}if(Lz(n.e,t)){if(fS(bG(fQ(n.a,t),49),e)){return 1}}else{jJ(n.e,t,new uk)}if(n.c==(Smn(),lHe)||!jR(e,(WYn(),jDe))||!jR(t,(WYn(),jDe))){h=null;for(o=new nd(e.j);o.ac?bHn(n,e,t):bHn(n,t,e);return ic?1:0}}r=bG(lIn(e,(WYn(),jDe)),17).a;a=bG(lIn(t,jDe),17).a;r>a?bHn(n,e,t):bHn(n,t,e);return ra?1:0}function fYn(n,e,t){var r,i,a,c,u,s,o,f,h,l,b,w,d,g;if(t==null){return null}if(n.a!=e.jk()){throw dm(new jM(nte+e.xe()+ete))}if(G$(e,469)){g=S_n(bG(e,685),t);if(!g){throw dm(new jM(tte+t+"' is not a valid enumerator of '"+e.xe()+"'"))}return g}switch(cdn((yAn(),Vut),e).Nl()){case 2:{t=SXn(t,false);break}case 3:{t=SXn(t,true);break}}r=cdn(Vut,e).Jl();if(r){return r.jk().wi().ti(r,t)}l=cdn(Vut,e).Ll();if(l){g=new im;for(o=Gln(t),f=0,h=o.length;f1){d=new iR((!n.a&&(n.a=new gz(U7e,n,6,6)),n.a));while(d.e!=d.i.gc()){FSn(d)}}u=bG(Yin((!n.a&&(n.a=new gz(U7e,n,6,6)),n.a),0),166);v=O;O>M+y?v=M+y:OT+g?p=T+g:AM-y&&vT-g&&pO+I?E=O+I:MA+j?S=A+j:TO-I&&EA-j&&Sr&&(b=r-1);w=x+bRn(e,24)*X0n*l-l/2;w<0?w=1:w>i&&(w=i-1);a=(yj(),o=new io,o);Aan(a,b);Man(a,w);cen((!u.a&&(u.a=new PD(K7e,u,5)),u.a),a)}}function vYn(n){dP(n,new dCn(GT(_T(UT(HT(new vs,ane),"ELK Rectangle Packing"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces."),new Gu)));z4(n,ane,x3n,1.3);z4(n,ane,w4n,(Qx(),false));z4(n,ane,R3n,LZe);z4(n,ane,c4n,15);z4(n,ane,r9n,tyn(gZe));z4(n,ane,g4n,tyn(TZe));z4(n,ane,D4n,tyn(EZe));z4(n,ane,d4n,tyn(SZe));z4(n,ane,v4n,tyn(MZe));z4(n,ane,b4n,tyn(PZe));z4(n,ane,p4n,tyn(NZe));z4(n,ane,Q7n,tyn(KZe));z4(n,ane,J7n,tyn(RZe));z4(n,ane,W7n,tyn(_Ze));z4(n,ane,z7n,tyn(FZe));z4(n,ane,Y7n,tyn(OZe));z4(n,ane,Z7n,tyn(IZe));z4(n,ane,nne,tyn(CZe));z4(n,ane,ene,tyn(xZe));z4(n,ane,f4n,tyn(mZe));z4(n,ane,d9n,tyn(kZe));z4(n,ane,X7n,tyn(pZe));z4(n,ane,q7n,tyn(vZe));z4(n,ane,V7n,tyn(yZe));z4(n,ane,G7n,tyn(DZe))}function pYn(n,e){MXn();var t,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S,P,C,I;j=n.e;w=n.d;i=n.a;if(j==0){switch(e){case 0:return"0";case 1:return L0n;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:M=new nT;e<0?(M.a+="0E+",M):(M.a+="0E",M);M.a+=-e;return M.a}}m=w*10+1+7;k=$nn(Uht,L1n,28,m+1,15,1);t=m;if(w==1){u=i[0];if(u<0){I=O3(u,A0n);do{d=I;I=pSn(I,10);k[--t]=48+MV(Fgn(d,Kgn(I,10)))&$1n}while(kwn(I,0)!=0)}else{I=u;do{d=I;I=I/10|0;k[--t]=48+(d-I*10)&$1n}while(I!=0)}}else{S=$nn(Ght,z1n,28,w,15,1);C=w;QGn(i,0,S,0,C);n:while(true){T=0;for(o=C-1;o>=0;o--){P=Rgn(KV(T,32),O3(S[o],A0n));v=tCn(P);S[o]=MV(v);T=MV(FV(v,32))}p=MV(T);g=t;do{k[--t]=48+p%10&$1n}while((p=p/10|0)!=0&&t!=0);r=9-g+t;for(s=0;s0;s++){k[--t]=48}h=C-1;for(;S[h]==0;h--){if(h==0){break n}}C=h+1}while(k[t]==48){++t}}b=j<0;c=m-t-e-1;if(e==0){b&&(k[--t]=45);return Tmn(k,t,m-t)}if(e>0&&c>=-6){if(c>=0){f=t+c;for(l=m-1;l>=f;l--){k[l+1]=k[l]}k[++f]=46;b&&(k[--t]=45);return Tmn(k,t,m-t+1)}for(h=2;h<-c+1;h++){k[--t]=48}k[--t]=46;k[--t]=48;b&&(k[--t]=45);return Tmn(k,t,m-t)}E=t+1;a=m;y=new eT;b&&(y.a+="-",y);if(a-E>=1){IQ(y,k[t]);y.a+=".";y.a+=Tmn(k,t+1,m-t-1)}else{y.a+=Tmn(k,t,m-t)}y.a+="E";c>0&&(y.a+="+",y);y.a+=""+c;return y.a}function mYn(n,e){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T;n.c=e;n.g=new rm;r=(jP(),new Zy(n.c));i=new xd(r);xvn(i);k=TK(YDn(n.c,(gIn(),h0e)));o=bG(YDn(n.c,b0e),324);M=bG(YDn(n.c,w0e),437);u=bG(YDn(n.c,c0e),490);y=bG(YDn(n.c,l0e),438);n.j=bM(MK(YDn(n.c,d0e)));s=n.a;switch(o.g){case 0:s=n.a;break;case 1:s=n.b;break;case 2:s=n.i;break;case 3:s=n.e;break;case 4:s=n.f;break;default:throw dm(new jM(hne+(o.f!=null?o.f:""+o.g)))}n.d=new s0(s,M,u);Ehn(n.d,(oon(),ake),yK(YDn(n.c,s0e)));n.d.c=lM(yK(YDn(n.c,u0e)));if(mZ(n.c).i==0){return n.d}for(l=new _D(mZ(n.c));l.e!=l.i.gc();){h=bG(iyn(l),27);w=h.g/2;b=h.f/2;T=new PO(h.i+w,h.j+b);while(Lz(n.g,T)){UR(T,(t.Math.random()-.5)*n4n,(t.Math.random()-.5)*n4n)}g=bG(YDn(h,(JYn(),q4e)),140);v=new W0(T,new yY(T.a-w-n.j/2-g.b,T.b-b-n.j/2-g.d,h.g+n.j+(g.b+g.c),h.f+n.j+(g.d+g.a)));ED(n.d.i,v);jJ(n.g,T,new nA(v,h))}switch(y.g){case 0:if(k==null){n.d.d=bG(Yq(n.d.i,0),68)}else{for(m=new nd(n.d.i);m.a0?C+1:1}for(c=new nd(M.g);c.a0?C+1:1}}n.c[o]==0?hq(n.e,d):n.a[o]==0&&hq(n.f,d);++o}w=-1;b=1;h=new im;n.d=bG(lIn(e,(WYn(),xDe)),234);while(N>0){while(n.e.b!=0){O=bG(cG(n.e),10);n.b[O.p]=w--;uUn(n,O);--N}while(n.f.b!=0){A=bG(cG(n.f),10);n.b[A.p]=b++;uUn(n,A);--N}if(N>0){l=T1n;for(p=new nd(m);p.a=l){if(k>l){h.c.length=0;l=k}Tm(h.c,d)}}}f=n.sg(h);n.b[f.p]=b++;uUn(n,f);--N}}I=m.c.length+1;for(o=0;on.b[L]){Mqn(r,true);Ehn(e,Z$e,(Qx(),true))}}}}n.a=null;n.c=null;n.b=null;XY(n.f);XY(n.e);t.Vg()}function MYn(n,e,r){var i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T;M=bG(Yin((!n.a&&(n.a=new gz(U7e,n,6,6)),n.a),0),166);h=new zk;y=new rm;T=wGn(M);ZAn(y.f,M,T);b=new rm;i=new vS;for(d=Dz(Yan(zfn(fT(Gce,1),jZn,20,0,[(!e.d&&(e.d=new g_(H7e,e,8,5)),e.d),(!e.e&&(e.e=new g_(H7e,e,7,4)),e.e)])));dDn(d);){w=bG(K9(d),74);if((!n.a&&(n.a=new gz(U7e,n,6,6)),n.a).i!=1){throw dm(new jM(See+(!n.a&&(n.a=new gz(U7e,n,6,6)),n.a).i))}if(w!=n){v=bG(Yin((!w.a&&(w.a=new gz(U7e,w,6,6)),w.a),0),166);w8(i,v,i.c.b,i.c);g=bG(_A(GX(y.f,v)),13);if(!g){g=wGn(v);ZAn(y.f,v,g)}l=r?r_(new uN(bG(Yq(T,T.c.length-1),8)),bG(Yq(g,g.c.length-1),8)):r_(new uN((b3(0,T.c.length),bG(T.c[0],8))),(b3(0,g.c.length),bG(g.c[0],8)));ZAn(b.f,v,l)}}if(i.b!=0){p=bG(Yq(T,r?T.c.length-1:0),8);for(f=1;f1&&(w8(h,p,h.c.b,h.c),true);Sin(a)}}}p=m}}return h}function TYn(n,e,t){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S;t.Ug(c7n,1);S=bG(v8(tY(new gX(null,new d3(e,16)),new mu),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[(Sbn(),Lde)]))),15);f=bG(v8(tY(new gX(null,new d3(e,16)),new Rv(e)),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[Lde]))),15);w=bG(v8(tY(new gX(null,new d3(e,16)),new xv(e)),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[Lde]))),15);d=$nn(IVe,X9n,40,e.gc(),0,1);for(c=0;c=0&&E=0&&!d[b]){d[b]=i;f.gd(u);--u;break}b=E-l;if(b=0&&!d[b]){d[b]=i;f.gd(u);--u;break}}}w.jd(new ku);for(s=d.length-1;s>=0;s--){if(!d[s]&&!w.dc()){d[s]=bG(w.Xb(0),40);w.gd(0)}}for(o=0;o=0;s--){hq(t,(b3(s,c.c.length),bG(c.c[s],8)))}return t}function EYn(n,e,r){var i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y;k=bM(MK(YDn(e,(vBn(),VYe))));w=bM(MK(YDn(e,qYe)));b=bM(MK(YDn(e,HYe)));Kun((!e.a&&(e.a=new gz(snt,e,10,11)),e.a));p=lVn((!e.a&&(e.a=new gz(snt,e,10,11)),e.a),k,n.b);for(v=0;vl&&bEn((b3(l,e.c.length),bG(e.c[l],186)),f);f=null;while(e.c.length>l&&(b3(l,e.c.length),bG(e.c[l],186)).a.c.length==0){Ttn(e,(b3(l,e.c.length),e.c[l]))}}if(!f){--c;continue}if(!lM(yK(bG(Yq(f.b,0),27).of((A_n(),yZe))))&&XUn(e,w,a,f,g,t,l,r)){d=true;continue}if(g){b=w.b;h=f.f;if(!lM(yK(bG(Yq(f.b,0),27).of(yZe)))&&Ozn(e,w,a,f,t,l,r,i)){d=true;if(b=n.j){n.a=-1;n.c=1;return}e=ZJ(n.i,n.d++);n.a=e;if(n.b==1){switch(e){case 92:r=10;if(n.d>=n.j)throw dm(new NM(oZn((c$(),nre))));n.a=ZJ(n.i,n.d++);break;case 45:if((n.e&512)==512&&n.d=n.j)break;if(ZJ(n.i,n.d)!=63)break;if(++n.d>=n.j)throw dm(new NM(oZn((c$(),ere))));e=ZJ(n.i,n.d++);switch(e){case 58:r=13;break;case 61:r=14;break;case 33:r=15;break;case 91:r=19;break;case 62:r=18;break;case 60:if(n.d>=n.j)throw dm(new NM(oZn((c$(),ere))));e=ZJ(n.i,n.d++);if(e==61){r=16}else if(e==33){r=17}else throw dm(new NM(oZn((c$(),tre))));break;case 35:while(n.d=n.j)throw dm(new NM(oZn((c$(),nre))));n.a=ZJ(n.i,n.d++);break;default:r=0}n.c=r}function AYn(n,e,t){var r,i,a,c,u,s,o,f,h,l,b,w,d,g;t.Ug("Process compaction",1);if(!lM(yK(lIn(e,(eqn(),lWe))))){return}i=bG(lIn(e,wWe),88);b=bM(MK(lIn(e,$We)));xXn(n,e,i);gJn(e,b/2/2);w=e.b;Run(w,new Iv(i));for(o=Gkn(w,0);o.b!=o.d.c;){s=bG($6(o),40);if(!lM(yK(lIn(s,(DQn(),Jze))))){r=dBn(s,i);d=Tqn(s,e);h=0;l=0;if(r){g=r.e;switch(i.g){case 2:h=g.a-b-s.f.a;d.e.a-b-s.f.ah&&(h=d.e.a+d.f.a+b);l=h+s.f.a;break;case 4:h=g.b-b-s.f.b;d.e.b-b-s.f.bh&&(h=d.e.b+d.f.b+b);l=h+s.f.b}}else if(d){switch(i.g){case 2:h=d.e.a-b-s.f.a;l=h+s.f.a;break;case 1:h=d.e.a+d.f.a+b;l=h+s.f.a;break;case 4:h=d.e.b-b-s.f.b;l=h+s.f.b;break;case 3:h=d.e.b+d.f.b+b;l=h+s.f.b}}if(BA(lIn(e,vWe))===BA((Lln(),Mze))){a=h;c=l;u=vln(tY(new gX(null,new d3(n.a,16)),new WI(a,c)));if(u.a!=null){i==(Bdn(),o5e)||i==f5e?s.e.a=h:s.e.b=h}else{i==(Bdn(),o5e)||i==l5e?u=vln(tY(nan(new gX(null,new d3(n.a,16))),new Ov(a))):u=vln(tY(nan(new gX(null,new d3(n.a,16))),new Av(a)));u.a!=null&&(i==o5e||i==f5e?s.e.a=bM(MK((PK(u.a!=null),bG(u.a,42)).a)):s.e.b=bM(MK((PK(u.a!=null),bG(u.a,42)).a)))}if(u.a!=null){f=Ctn(n.a,(PK(u.a!=null),u.a),0);if(f>0&&f!=bG(lIn(s,_We),17).a){Ehn(s,Oze,(Qx(),true));Ehn(s,_We,Bwn(f))}}}else{i==(Bdn(),o5e)||i==f5e?s.e.a=h:s.e.b=h}}}t.Vg()}function LYn(n){var e,t,r,i,a,c,u,s,o;n.b=1;OYn(n);e=null;if(n.c==0&&n.a==94){OYn(n);e=(eZn(),eZn(),++Tht,new U3(4));VFn(e,0,qae);u=(null,++Tht,new U3(4))}else{u=(eZn(),eZn(),++Tht,new U3(4))}i=true;while((o=n.c)!=1){if(o==0&&n.a==93&&!i){if(e){vWn(e,u);u=e}break}t=n.a;r=false;if(o==10){switch(t){case 100:case 68:case 119:case 87:case 115:case 83:CXn(u,SUn(t));r=true;break;case 105:case 73:case 99:case 67:t=(CXn(u,SUn(t)),-1);t<0&&(r=true);break;case 112:case 80:s=LNn(n,t);if(!s)throw dm(new NM(oZn((c$(),wre))));CXn(u,s);r=true;break;default:t=H_n(n)}}else if(o==24&&!i){if(e){vWn(e,u);u=e}a=LYn(n);vWn(u,a);if(n.c!=0||n.a!=93)throw dm(new NM(oZn((c$(),pre))));break}OYn(n);if(!r){if(o==0){if(t==91)throw dm(new NM(oZn((c$(),mre))));if(t==93)throw dm(new NM(oZn((c$(),kre))));if(t==45&&!i&&n.a!=93)throw dm(new NM(oZn((c$(),yre))))}if(n.c!=0||n.a!=45||t==45&&i){VFn(u,t,t)}else{OYn(n);if((o=n.c)==1)throw dm(new NM(oZn((c$(),gre))));if(o==0&&n.a==93){VFn(u,t,t);VFn(u,45,45)}else if(o==0&&n.a==93||o==24){throw dm(new NM(oZn((c$(),yre))))}else{c=n.a;if(o==0){if(c==91)throw dm(new NM(oZn((c$(),mre))));if(c==93)throw dm(new NM(oZn((c$(),kre))));if(c==45)throw dm(new NM(oZn((c$(),yre))))}else o==10&&(c=H_n(n));OYn(n);if(t>c)throw dm(new NM(oZn((c$(),jre))));VFn(u,t,c)}}}i=false}if(n.c==1)throw dm(new NM(oZn((c$(),gre))));Mxn(u);bVn(u);n.b=0;OYn(n);return u}function NYn(n,e,t){var r,i,a,c,u,s,o,f,h,l,b,w,g,v,p,m,k,y,M;t.Ug("Coffman-Graham Layering",1);if(e.a.c.length==0){t.Vg();return}M=bG(lIn(e,(IYn(),xFe)),17).a;s=0;c=0;for(l=new nd(e.a);l.a=M||!fmn(p,r))&&(r=NJ(e,f));h2(p,r);for(a=new GV(sx(Qgn(p).a.Kc(),new d));dDn(a);){i=bG(K9(a),18);if(n.a[i.p]){continue}g=i.c.i;--n.e[g.p];n.e[g.p]==0&&(EG(qCn(b,g),$0n),true)}}for(o=f.c.length-1;o>=0;--o){ED(e.b,(b3(o,f.c.length),bG(f.c[o],30)))}e.a.c.length=0;t.Vg()}function $Yn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w,g,v,p,m,k,y;y=false;do{y=false;for(a=e?new Rw(n.a.b).a.gc()-2:1;e?a>=0:abG(lIn(v,jDe),17).a)&&(k=false)}if(!k){continue}s=e?a+1:a-1;u=n5(n.a,Bwn(s));c=false;m=true;r=false;for(f=Gkn(u,0);f.b!=f.d.c;){o=bG($6(f),10);if(jR(o,jDe)){if(o.p!=h.p){c=c|(e?bG(lIn(o,jDe),17).abG(lIn(h,jDe),17).a);m=false}}else if(!c&&m){if(o.k==(YIn(),eEe)){r=true;e?l=bG(K9(new GV(sx(Qgn(o).a.Kc(),new d))),18).c.i:l=bG(K9(new GV(sx(Jgn(o).a.Kc(),new d))),18).d.i;if(l==h){e?t=bG(K9(new GV(sx(Jgn(o).a.Kc(),new d))),18).d.i:t=bG(K9(new GV(sx(Qgn(o).a.Kc(),new d))),18).c.i;(e?bG(OR(n.a,t),17).a-bG(OR(n.a,l),17).a:bG(OR(n.a,l),17).a-bG(OR(n.a,t),17).a)<=2&&(m=false)}}}}if(r&&m){e?t=bG(K9(new GV(sx(Jgn(h).a.Kc(),new d))),18).d.i:t=bG(K9(new GV(sx(Qgn(h).a.Kc(),new d))),18).c.i;(e?bG(OR(n.a,t),17).a-bG(OR(n.a,h),17).a:bG(OR(n.a,h),17).a-bG(OR(n.a,t),17).a)<=2&&t.k==(YIn(),rEe)&&(m=false)}if(c||m){g=ARn(n,h,e);while(g.a.gc()!=0){w=bG(g.a.ec().Kc().Pb(),10);g.a.Bc(w)!=null;esn(g,ARn(n,w,e))}--b;y=true}}}}while(y)}function DYn(n){Vxn(n.c,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"http://www.w3.org/2001/XMLSchema#decimal"]));Vxn(n.d,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"http://www.w3.org/2001/XMLSchema#integer"]));Vxn(n.e,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"http://www.w3.org/2001/XMLSchema#boolean"]));Vxn(n.f,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"EBoolean",Fte,"EBoolean:Object"]));Vxn(n.i,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"http://www.w3.org/2001/XMLSchema#byte"]));Vxn(n.g,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"http://www.w3.org/2001/XMLSchema#hexBinary"]));Vxn(n.j,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"EByte",Fte,"EByte:Object"]));Vxn(n.n,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"EChar",Fte,"EChar:Object"]));Vxn(n.t,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"http://www.w3.org/2001/XMLSchema#double"]));Vxn(n.u,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"EDouble",Fte,"EDouble:Object"]));Vxn(n.F,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"http://www.w3.org/2001/XMLSchema#float"]));Vxn(n.G,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"EFloat",Fte,"EFloat:Object"]));Vxn(n.I,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"http://www.w3.org/2001/XMLSchema#int"]));Vxn(n.J,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"EInt",Fte,"EInt:Object"]));Vxn(n.N,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"http://www.w3.org/2001/XMLSchema#long"]));Vxn(n.O,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"ELong",Fte,"ELong:Object"]));Vxn(n.Z,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"http://www.w3.org/2001/XMLSchema#short"]));Vxn(n.$,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"EShort",Fte,"EShort:Object"]));Vxn(n._,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"http://www.w3.org/2001/XMLSchema#string"]))}function xYn(n,e,t,r,i,a,c){var u,s,o,f,h,l,b,w;l=bG(r.a,17).a;b=bG(r.b,17).a;h=n.b;w=n.c;u=0;f=0;if(e==(Bdn(),o5e)||e==f5e){f=FI(Idn(iY(rY(new gX(null,new d3(t.b,16)),new Mu),new ru)));if(h.e.b+h.f.b/2>f){o=++b;u=bM(MK(Sx(nz(rY(new gX(null,new d3(t.b,16)),new MO(i,o)),new iu))))}else{s=++l;u=bM(MK(Sx(ez(rY(new gX(null,new d3(t.b,16)),new TO(i,s)),new au))))}}else{f=FI(Idn(iY(rY(new gX(null,new d3(t.b,16)),new ou),new tu)));if(h.e.a+h.f.a/2>f){o=++b;u=bM(MK(Sx(nz(rY(new gX(null,new d3(t.b,16)),new kO(i,o)),new cu))))}else{s=++l;u=bM(MK(Sx(ez(rY(new gX(null,new d3(t.b,16)),new yO(i,s)),new uu))))}}if(e==o5e){fL(n.a,new PO(bM(MK(lIn(h,(DQn(),Uze))))-i,u));fL(n.a,new PO(w.e.a+w.f.a+i+a,u));fL(n.a,new PO(w.e.a+w.f.a+i+a,w.e.b+w.f.b/2));fL(n.a,new PO(w.e.a+w.f.a,w.e.b+w.f.b/2))}else if(e==f5e){fL(n.a,new PO(bM(MK(lIn(h,(DQn(),Hze))))+i,h.e.b+h.f.b/2));fL(n.a,new PO(h.e.a+h.f.a+i,u));fL(n.a,new PO(w.e.a-i-a,u));fL(n.a,new PO(w.e.a-i-a,w.e.b+w.f.b/2));fL(n.a,new PO(w.e.a,w.e.b+w.f.b/2))}else if(e==l5e){fL(n.a,new PO(u,bM(MK(lIn(h,(DQn(),Uze))))-i));fL(n.a,new PO(u,w.e.b+w.f.b+i+a));fL(n.a,new PO(w.e.a+w.f.a/2,w.e.b+w.f.b+i+a));fL(n.a,new PO(w.e.a+w.f.a/2,w.e.b+w.f.b+i))}else{n.a.b==0||(bG(MR(n.a),8).b=bM(MK(lIn(h,(DQn(),Hze))))+i*bG(c.b,17).a);fL(n.a,new PO(u,bM(MK(lIn(h,(DQn(),Hze))))+i*bG(c.b,17).a));fL(n.a,new PO(u,w.e.b-i*bG(c.a,17).a-a))}return new nA(Bwn(l),Bwn(b))}function RYn(n){var e,t,r,i,a,c,u,s,o,f,h,l,b;c=true;h=null;r=null;i=null;e=false;b=crt;o=null;a=null;u=0;s=Ikn(n,u,irt,art);if(s=0&&T_(n.substr(u,"//".length),"//")){u+=2;s=Ikn(n,u,urt,srt);r=(Unn(u,s,n.length),n.substr(u,s-u));u=s}else if(h!=null&&(u==n.length||(w3(u,n.length),n.charCodeAt(u)!=47))){c=false;s=fx(n,FCn(35),u);s==-1&&(s=n.length);r=(Unn(u,s,n.length),n.substr(u,s-u));u=s}if(!t&&u0&&ZJ(f,f.length-1)==58){i=f;u=s}}if(ubxn(a))&&(h=a)}}!h&&(h=(b3(0,g.c.length),bG(g.c[0],185)));for(d=new nd(e.b);d.al){C=0;I+=h+j;h=0}sUn(M,u,C,I);e=t.Math.max(e,C+T.a);h=t.Math.max(h,T.b);C+=T.a+j}y=new rm;r=new rm;for(S=new nd(n);S.a=-1900?1:0;t>=4?tL(n,zfn(fT(vle,1),XZn,2,6,[W1n,Q1n])[u]):tL(n,zfn(fT(vle,1),XZn,2,6,["BC","AD"])[u]);break;case 121:Ukn(n,t,r);break;case 77:aUn(n,t,r);break;case 107:s=i.q.getHours();s==0?Gtn(n,24,t):Gtn(n,s,t);break;case 83:LRn(n,t,i);break;case 69:f=r.q.getDay();t==5?tL(n,zfn(fT(vle,1),XZn,2,6,["S","M","T","W","T","F","S"])[f]):t==4?tL(n,zfn(fT(vle,1),XZn,2,6,[J1n,Y1n,Z1n,n0n,e0n,t0n,r0n])[f]):tL(n,zfn(fT(vle,1),XZn,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[f]);break;case 97:i.q.getHours()>=12&&i.q.getHours()<24?tL(n,zfn(fT(vle,1),XZn,2,6,["AM","PM"])[1]):tL(n,zfn(fT(vle,1),XZn,2,6,["AM","PM"])[0]);break;case 104:h=i.q.getHours()%12;h==0?Gtn(n,12,t):Gtn(n,h,t);break;case 75:l=i.q.getHours()%12;Gtn(n,l,t);break;case 72:b=i.q.getHours();Gtn(n,b,t);break;case 99:w=r.q.getDay();t==5?tL(n,zfn(fT(vle,1),XZn,2,6,["S","M","T","W","T","F","S"])[w]):t==4?tL(n,zfn(fT(vle,1),XZn,2,6,[J1n,Y1n,Z1n,n0n,e0n,t0n,r0n])[w]):t==3?tL(n,zfn(fT(vle,1),XZn,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[w]):Gtn(n,w,1);break;case 76:d=r.q.getMonth();t==5?tL(n,zfn(fT(vle,1),XZn,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[d]):t==4?tL(n,zfn(fT(vle,1),XZn,2,6,[D1n,x1n,R1n,K1n,F1n,_1n,B1n,H1n,U1n,G1n,q1n,X1n])[d]):t==3?tL(n,zfn(fT(vle,1),XZn,2,6,["Jan","Feb","Mar","Apr",F1n,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[d]):Gtn(n,d+1,t);break;case 81:g=r.q.getMonth()/3|0;t<4?tL(n,zfn(fT(vle,1),XZn,2,6,["Q1","Q2","Q3","Q4"])[g]):tL(n,zfn(fT(vle,1),XZn,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[g]);break;case 100:v=r.q.getDate();Gtn(n,v,t);break;case 109:o=i.q.getMinutes();Gtn(n,o,t);break;case 115:c=i.q.getSeconds();Gtn(n,c,t);break;case 122:t<4?tL(n,a.c[0]):tL(n,a.c[1]);break;case 118:tL(n,a.b);break;case 90:t<3?tL(n,WLn(a)):t==3?tL(n,oNn(a)):tL(n,fNn(a.a));break;default:return false}return true}function GYn(n,e,t,r){var i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S,P,C,I;sHn(e);s=bG(Yin((!e.b&&(e.b=new g_(B7e,e,4,7)),e.b),0),84);f=bG(Yin((!e.c&&(e.c=new g_(B7e,e,5,8)),e.c),0),84);u=vCn(s);o=vCn(f);c=(!e.a&&(e.a=new gz(U7e,e,6,6)),e.a).i==0?null:bG(Yin((!e.a&&(e.a=new gz(U7e,e,6,6)),e.a),0),166);T=bG(fQ(n.a,u),10);P=bG(fQ(n.a,o),10);j=null;C=null;if(G$(s,193)){M=bG(fQ(n.a,s),305);if(G$(M,12)){j=bG(M,12)}else if(G$(M,10)){T=bG(M,10);j=bG(Yq(T.j,0),12)}}if(G$(f,193)){S=bG(fQ(n.a,f),305);if(G$(S,12)){C=bG(S,12)}else if(G$(S,10)){P=bG(S,10);C=bG(Yq(P.j,0),12)}}if(!T||!P){throw dm(new OM("The source or the target of edge "+e+" could not be found. "+"This usually happens when an edge connects a node laid out by ELK Layered to a node in "+"another level of hierarchy laid out by either another instance of ELK Layered or another "+"layout algorithm alltogether. The former can be solved by setting the hierarchyHandling "+"option to INCLUDE_CHILDREN."))}d=new zZ;Yon(d,e);Ehn(d,(WYn(),EDe),e);Ehn(d,(IYn(),DFe),null);b=bG(lIn(r,oDe),21);T==P&&b.Fc((o_n(),C$e));if(!j){y=(fcn(),yHe);E=null;if(!!c&&wN(bG(lIn(T,m_e),101))){E=new PO(c.j,c.k);F5(E,w0(e));e9(E,t);if(Oin(o,u)){y=kHe;t_(E,T.n)}}j=RXn(T,E,y,r)}if(!C){y=(fcn(),kHe);I=null;if(!!c&&wN(bG(lIn(P,m_e),101))){I=new PO(c.b,c.c);F5(I,w0(e));e9(I,t)}C=RXn(P,I,y,VQ(P))}f2(d,j);b2(d,C);(j.e.c.length>1||j.g.c.length>1||C.e.c.length>1||C.g.c.length>1)&&b.Fc((o_n(),T$e));for(l=new _D((!e.n&&(e.n=new gz(unt,e,1,7)),e.n));l.e!=l.i.gc();){h=bG(iyn(l),135);if(!lM(yK(YDn(h,u_e)))&&!!h.a){g=lwn(h);ED(d.b,g);switch(bG(lIn(g,wFe),278).g){case 1:case 2:b.Fc((o_n(),y$e));break;case 0:b.Fc((o_n(),m$e));Ehn(g,wFe,(ian(),d5e))}}}a=bG(lIn(r,cFe),322);v=bG(lIn(r,t_e),323);i=a==(Icn(),mNe)||v==(Myn(),XBe);if(!!c&&(!c.a&&(c.a=new PD(K7e,c,5)),c.a).i!=0&&i){p=NOn(c);w=new zk;for(k=Gkn(p,0);k.b!=k.d.c;){m=bG($6(k),8);hq(w,new uN(m))}Ehn(d,SDe,w)}return d}function qYn(n,e,t,r){var i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S,P,C,I,O;E=0;S=0;T=new rm;y=bG(Sx(nz(rY(new gX(null,new d3(n.b,16)),new su),new gu)),17).a+1;j=$nn(Ght,z1n,28,y,15,1);g=$nn(Ght,z1n,28,y,15,1);for(d=0;d1){for(u=C+1;uo.b.e.b*(1-v)+o.c.e.b*v){break}}if(M.gc()>0){I=o.a.b==0?_$(o.b.e):bG(MR(o.a),8);m=t_(_$(bG(M.Xb(M.gc()-1),40).e),bG(M.Xb(M.gc()-1),40).f);l=t_(_$(bG(M.Xb(0),40).e),bG(M.Xb(0),40).f);if(w>=M.gc()-1&&I.b>m.b&&o.c.e.b>m.b){continue}if(w<=0&&I.bo.b.e.a*(1-v)+o.c.e.a*v){break}}if(M.gc()>0){I=o.a.b==0?_$(o.b.e):bG(MR(o.a),8);m=t_(_$(bG(M.Xb(M.gc()-1),40).e),bG(M.Xb(M.gc()-1),40).f);l=t_(_$(bG(M.Xb(0),40).e),bG(M.Xb(0),40).f);if(w>=M.gc()-1&&I.a>m.a&&o.c.e.a>m.a){continue}if(w<=0&&I.a=bM(MK(lIn(n,(DQn(),xze))))&&++S}else{b.f&&b.d.e.a<=bM(MK(lIn(n,(DQn(),Dze))))&&++E;b.g&&b.c.e.a+b.c.f.a>=bM(MK(lIn(n,(DQn(),$ze))))&&++S}}}else if(k==0){dNn(o)}else if(k<0){++j[C];++g[O];P=xYn(o,e,n,new nA(Bwn(E),Bwn(S)),t,r,new nA(Bwn(g[O]),Bwn(j[C])));E=bG(P.a,17).a;S=bG(P.b,17).a}}}function XYn(n,e,t){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p;r=e;s=t;if(n.b&&r.j==(UQn(),n9e)&&s.j==(UQn(),n9e)){p=r;r=s;s=p}if(Lz(n.a,r)){if(fS(bG(fQ(n.a,r),49),s)){return 1}}else{jJ(n.a,r,new uk)}if(Lz(n.a,s)){if(fS(bG(fQ(n.a,s),49),r)){return-1}}else{jJ(n.a,s,new uk)}if(Lz(n.d,r)){if(fS(bG(fQ(n.d,r),49),s)){return-1}}else{jJ(n.d,r,new uk)}if(Lz(n.d,s)){if(fS(bG(fQ(n.a,s),49),r)){return 1}}else{jJ(n.d,s,new uk)}if(r.j!=s.j){v=pN(r.j,s.j);v==-1?dHn(n,s,r):dHn(n,r,s);return v}if(r.e.c.length!=0&&s.e.c.length!=0){if(n.b){v=_bn(r,s);if(v!=0){v==-1?dHn(n,s,r):v==1&&dHn(n,r,s);return v}}a=bG(Yq(r.e,0),18).c.i;f=bG(Yq(s.e,0),18).c.i;if(a==f){i=bG(lIn(bG(Yq(r.e,0),18),(WYn(),jDe)),17).a;o=bG(lIn(bG(Yq(s.e,0),18),jDe),17).a;i>o?dHn(n,r,s):dHn(n,s,r);return io?1:0}for(w=n.c,d=0,g=w.length;do?dHn(n,r,s):dHn(n,s,r);return io?1:0}if(n.b){v=_bn(r,s);if(v!=0){v==-1?dHn(n,s,r):v==1&&dHn(n,r,s);return v}}c=0;h=0;jR(bG(Yq(r.g,0),18),jDe)&&(c=bG(lIn(bG(Yq(r.g,0),18),jDe),17).a);jR(bG(Yq(s.g,0),18),jDe)&&(h=bG(lIn(bG(Yq(r.g,0),18),jDe),17).a);if(!!u&&u==l){if(lM(yK(lIn(bG(Yq(r.g,0),18),KDe)))&&!lM(yK(lIn(bG(Yq(s.g,0),18),KDe)))){dHn(n,r,s);return 1}else if(!lM(yK(lIn(bG(Yq(r.g,0),18),KDe)))&&lM(yK(lIn(bG(Yq(s.g,0),18),KDe)))){dHn(n,s,r);return-1}c>h?dHn(n,r,s):dHn(n,s,r);return ch?1:0}if(n.f){n.f._b(u)&&(c=bG(n.f.xc(u),17).a);n.f._b(l)&&(h=bG(n.f.xc(l),17).a)}c>h?dHn(n,r,s):dHn(n,s,r);return ch?1:0}if(r.e.c.length!=0&&s.g.c.length!=0){dHn(n,r,s);return 1}else if(r.g.c.length!=0&&s.e.c.length!=0){dHn(n,s,r);return-1}else if(jR(r,(WYn(),jDe))&&jR(s,jDe)){i=bG(lIn(r,jDe),17).a;o=bG(lIn(s,jDe),17).a;i>o?dHn(n,r,s):dHn(n,s,r);return io?1:0}else{dHn(n,s,r);return-1}}function VYn(n){if(n.gb)return;n.gb=true;n.b=Kon(n,0);Zun(n.b,18);nsn(n.b,19);n.a=Kon(n,1);Zun(n.a,1);nsn(n.a,2);nsn(n.a,3);nsn(n.a,4);nsn(n.a,5);n.o=Kon(n,2);Zun(n.o,8);Zun(n.o,9);nsn(n.o,10);nsn(n.o,11);nsn(n.o,12);nsn(n.o,13);nsn(n.o,14);nsn(n.o,15);nsn(n.o,16);nsn(n.o,17);nsn(n.o,18);nsn(n.o,19);nsn(n.o,20);nsn(n.o,21);nsn(n.o,22);nsn(n.o,23);oin(n.o);oin(n.o);oin(n.o);oin(n.o);oin(n.o);oin(n.o);oin(n.o);oin(n.o);oin(n.o);oin(n.o);n.p=Kon(n,3);Zun(n.p,2);Zun(n.p,3);Zun(n.p,4);Zun(n.p,5);nsn(n.p,6);nsn(n.p,7);oin(n.p);oin(n.p);n.q=Kon(n,4);Zun(n.q,8);n.v=Kon(n,5);nsn(n.v,9);oin(n.v);oin(n.v);oin(n.v);n.w=Kon(n,6);Zun(n.w,2);Zun(n.w,3);Zun(n.w,4);nsn(n.w,5);n.B=Kon(n,7);nsn(n.B,1);oin(n.B);oin(n.B);oin(n.B);n.Q=Kon(n,8);nsn(n.Q,0);oin(n.Q);n.R=Kon(n,9);Zun(n.R,1);n.S=Kon(n,10);oin(n.S);oin(n.S);oin(n.S);oin(n.S);oin(n.S);oin(n.S);oin(n.S);oin(n.S);oin(n.S);oin(n.S);oin(n.S);oin(n.S);oin(n.S);oin(n.S);oin(n.S);n.T=Kon(n,11);nsn(n.T,10);nsn(n.T,11);nsn(n.T,12);nsn(n.T,13);nsn(n.T,14);oin(n.T);oin(n.T);n.U=Kon(n,12);Zun(n.U,2);Zun(n.U,3);nsn(n.U,4);nsn(n.U,5);nsn(n.U,6);nsn(n.U,7);oin(n.U);n.V=Kon(n,13);nsn(n.V,10);n.W=Kon(n,14);Zun(n.W,18);Zun(n.W,19);Zun(n.W,20);nsn(n.W,21);nsn(n.W,22);nsn(n.W,23);n.bb=Kon(n,15);Zun(n.bb,10);Zun(n.bb,11);Zun(n.bb,12);Zun(n.bb,13);Zun(n.bb,14);Zun(n.bb,15);Zun(n.bb,16);nsn(n.bb,17);oin(n.bb);oin(n.bb);n.eb=Kon(n,16);Zun(n.eb,2);Zun(n.eb,3);Zun(n.eb,4);Zun(n.eb,5);Zun(n.eb,6);Zun(n.eb,7);nsn(n.eb,8);nsn(n.eb,9);n.ab=Kon(n,17);Zun(n.ab,0);Zun(n.ab,1);n.H=Kon(n,18);nsn(n.H,0);nsn(n.H,1);nsn(n.H,2);nsn(n.H,3);nsn(n.H,4);nsn(n.H,5);oin(n.H);n.db=Kon(n,19);nsn(n.db,2);n.c=Fon(n,20);n.d=Fon(n,21);n.e=Fon(n,22);n.f=Fon(n,23);n.i=Fon(n,24);n.g=Fon(n,25);n.j=Fon(n,26);n.k=Fon(n,27);n.n=Fon(n,28);n.r=Fon(n,29);n.s=Fon(n,30);n.t=Fon(n,31);n.u=Fon(n,32);n.fb=Fon(n,33);n.A=Fon(n,34);n.C=Fon(n,35);n.D=Fon(n,36);n.F=Fon(n,37);n.G=Fon(n,38);n.I=Fon(n,39);n.J=Fon(n,40);n.L=Fon(n,41);n.M=Fon(n,42);n.N=Fon(n,43);n.O=Fon(n,44);n.P=Fon(n,45);n.X=Fon(n,46);n.Y=Fon(n,47);n.Z=Fon(n,48);n.$=Fon(n,49);n._=Fon(n,50);n.cb=Fon(n,51);n.K=Fon(n,52)}function zYn(n,e,t){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S,P,C;c=new vS;M=bG(lIn(t,(IYn(),oFe)),88);d=0;esn(c,(!e.a&&(e.a=new gz(snt,e,10,11)),e.a));while(c.b!=0){f=bG(c.b==0?null:(PK(c.b!=0),Rin(c,c.a.a)),27);o=H0(f);(BA(YDn(o,zKe))!==BA((Smn(),hHe))||BA(YDn(o,uFe))===BA((Emn(),NNe))||BA(YDn(o,uFe))===BA((Emn(),ANe))||lM(yK(YDn(o,QKe)))||BA(YDn(o,HKe))!==BA((zmn(),hje))||BA(YDn(o,UFe))===BA((CHn(),ZBe))||BA(YDn(o,UFe))===BA((CHn(),nHe))||BA(YDn(o,GFe))===BA((PKn(),TBe))||BA(YDn(o,GFe))===BA((PKn(),EBe)))&&!lM(yK(YDn(f,XKe)))&&Pyn(f,(WYn(),jDe),Bwn(d++));v=!lM(yK(YDn(f,u_e)));if(v){l=(!f.a&&(f.a=new gz(snt,f,10,11)),f.a).i!=0;w=lCn(f);b=BA(YDn(f,SFe))===BA((Dwn(),U5e));C=!jnn(f,(JYn(),b4e))||R9(TK(YDn(f,b4e)));k=null;if(C&&b&&(l||w)){k=LGn(f);Ehn(k,oFe,M);jR(k,N_e)&&sM(new lpn(bM(MK(lIn(k,N_e)))),k);if(bG(YDn(f,r_e),181).gc()!=0){h=k;ES(new gX(null,(!f.c&&(f.c=new gz(ont,f,9,9)),new d3(f.c,16))),new rg(h));b_n(f,k)}}T=t;j=bG(fQ(n.a,H0(f)),10);!!j&&(T=j.e);m=HJn(n,f,T);if(k){m.e=k;k.e=m;esn(c,(!f.a&&(f.a=new gz(snt,f,10,11)),f.a))}}}d=0;w8(c,e,c.c.b,c.c);while(c.b!=0){a=bG(c.b==0?null:(PK(c.b!=0),Rin(c,c.a.a)),27);for(s=new _D((!a.b&&(a.b=new gz(H7e,a,12,3)),a.b));s.e!=s.i.gc();){u=bG(iyn(s),74);sHn(u);(BA(YDn(e,zKe))!==BA((Smn(),hHe))||BA(YDn(e,uFe))===BA((Emn(),NNe))||BA(YDn(e,uFe))===BA((Emn(),ANe))||lM(yK(YDn(e,QKe)))||BA(YDn(e,HKe))!==BA((zmn(),hje))||BA(YDn(e,UFe))===BA((CHn(),ZBe))||BA(YDn(e,UFe))===BA((CHn(),nHe))||BA(YDn(e,GFe))===BA((PKn(),TBe))||BA(YDn(e,GFe))===BA((PKn(),EBe)))&&Pyn(u,(WYn(),jDe),Bwn(d++));S=vCn(bG(Yin((!u.b&&(u.b=new g_(B7e,u,4,7)),u.b),0),84));P=vCn(bG(Yin((!u.c&&(u.c=new g_(B7e,u,5,8)),u.c),0),84));if(lM(yK(YDn(u,u_e)))||lM(yK(YDn(S,u_e)))||lM(yK(YDn(P,u_e)))){continue}g=XNn(u)&&lM(yK(YDn(S,AFe)))&&lM(yK(YDn(u,LFe)));y=a;g||Oin(P,S)?y=S:Oin(S,P)&&(y=P);T=t;j=bG(fQ(n.a,y),10);!!j&&(T=j.e);p=GYn(n,u,y,T);Ehn(p,(WYn(),Q$e),AFn(n,u,e,t))}b=BA(YDn(a,SFe))===BA((Dwn(),U5e));if(b){for(i=new _D((!a.a&&(a.a=new gz(snt,a,10,11)),a.a));i.e!=i.i.gc();){r=bG(iyn(i),27);C=!jnn(r,(JYn(),b4e))||R9(TK(YDn(r,b4e)));E=BA(YDn(r,SFe))===BA(U5e);C&&E&&(w8(c,r,c.c.b,c.c),true)}}}}function WYn(){WYn=O;var n,e;EDe=new Np(j4n);Q$e=new Np("coordinateOrigin");DDe=new Np("processors");W$e=new bF("compoundNode",(Qx(),false));lDe=new bF("insideConnections",false);SDe=new Np("originalBendpoints");PDe=new Np("originalDummyNodePosition");CDe=new Np("originalLabelEdge");RDe=new Np("representedLabels");eDe=new Np("endLabels");tDe=new Np("endLabel.origin");vDe=new bF("labelSide",(xjn(),J5e));TDe=new bF("maxEdgeThickness",0);KDe=new bF("reversed",false);xDe=new Np(E4n);kDe=new bF("longEdgeSource",null);yDe=new bF("longEdgeTarget",null);mDe=new bF("longEdgeHasLabelDummies",false);pDe=new bF("longEdgeBeforeLabelDummy",false);nDe=new bF("edgeConstraint",(Lhn(),BNe));wDe=new Np("inLayerLayoutUnit");bDe=new bF("inLayerConstraint",(irn(),R$e));dDe=new bF("inLayerSuccessorConstraint",new im);gDe=new bF("inLayerSuccessorConstraintBetweenNonDummies",false);NDe=new Np("portDummy");J$e=new bF("crossingHint",Bwn(0));oDe=new bF("graphProperties",(e=bG(Pj(I$e),9),new aB(e,bG(PF(e,e.length),9),0)));cDe=new bF("externalPortSide",(UQn(),Z8e));uDe=new bF("externalPortSize",new wj);iDe=new Np("externalPortReplacedDummies");aDe=new Np("externalPortReplacedDummy");rDe=new bF("externalPortConnections",(n=bG(Pj(e9e),9),new aB(n,bG(PF(n,n.length),9),0)));$De=new bF(t3n,0);q$e=new Np("barycenterAssociates");zDe=new Np("TopSideComments");X$e=new Np("BottomSideComments");z$e=new Np("CommentConnectionPort");hDe=new bF("inputCollect",false);ADe=new bF("outputCollect",false);Z$e=new bF("cyclic",false);Y$e=new Np("crossHierarchyMap");VDe=new Np("targetOffset");new bF("splineLabelSize",new wj);BDe=new Np("spacings");LDe=new bF("partitionConstraint",false);V$e=new Np("breakingPoint.info");qDe=new Np("splines.survivingEdge");GDe=new Np("splines.route.start");HDe=new Np("splines.edgeChain");ODe=new Np("originalPortConstraints");_De=new Np("selfLoopHolder");UDe=new Np("splines.nsPortY");jDe=new Np("modelOrder");MDe=new Np("longEdgeTargetNode");sDe=new bF(F6n,false);FDe=new bF(F6n,false);fDe=new Np("layerConstraints.hiddenNodes");IDe=new Np("layerConstraints.opposidePort");XDe=new Np("targetNode.modelOrder")}function QYn(n,e,r,i){var a,c,u,s,o,f,h,l,b,w,d;for(l=Gkn(n.b,0);l.b!=l.d.c;){h=bG($6(l),40);if(T_(h.c,B9n)){continue}c=bG(v8(new gX(null,new d3(YNn(h,n),16)),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[(Sbn(),Lde)]))),15);e==(Bdn(),o5e)||e==f5e?c.jd(new lu):c.jd(new bu);d=c.gc();for(a=0;a0){s=bG(MR(bG(c.Xb(a),65).a),8).a;b=h.e.a+h.f.a/2;o=bG(MR(bG(c.Xb(a),65).a),8).b;w=h.e.b+h.f.b/2;i>0&&t.Math.abs(o-w)/(t.Math.abs(s-b)/40)>50&&(w>o?fL(bG(c.Xb(a),65).a,new PO(h.e.a+h.f.a+i/5.3,h.e.b+h.f.b*u-i/2)):fL(bG(c.Xb(a),65).a,new PO(h.e.a+h.f.a+i/5.3,h.e.b+h.f.b*u+i/2)))}fL(bG(c.Xb(a),65).a,new PO(h.e.a+h.f.a,h.e.b+h.f.b*u))}else if(e==f5e){f=bM(MK(lIn(h,(DQn(),Uze))));if(h.e.a-i>f){fL(bG(c.Xb(a),65).a,new PO(f-r,h.e.b+h.f.b*u))}else if(bG(c.Xb(a),65).a.b>0){s=bG(MR(bG(c.Xb(a),65).a),8).a;b=h.e.a+h.f.a/2;o=bG(MR(bG(c.Xb(a),65).a),8).b;w=h.e.b+h.f.b/2;i>0&&t.Math.abs(o-w)/(t.Math.abs(s-b)/40)>50&&(w>o?fL(bG(c.Xb(a),65).a,new PO(h.e.a-i/5.3,h.e.b+h.f.b*u-i/2)):fL(bG(c.Xb(a),65).a,new PO(h.e.a-i/5.3,h.e.b+h.f.b*u+i/2)))}fL(bG(c.Xb(a),65).a,new PO(h.e.a,h.e.b+h.f.b*u))}else if(e==l5e){f=bM(MK(lIn(h,(DQn(),Hze))));if(h.e.b+h.f.b+i0){s=bG(MR(bG(c.Xb(a),65).a),8).a;b=h.e.a+h.f.a/2;o=bG(MR(bG(c.Xb(a),65).a),8).b;w=h.e.b+h.f.b/2;i>0&&t.Math.abs(s-b)/(t.Math.abs(o-w)/40)>50&&(b>s?fL(bG(c.Xb(a),65).a,new PO(h.e.a+h.f.a*u-i/2,h.e.b+i/5.3+h.f.b)):fL(bG(c.Xb(a),65).a,new PO(h.e.a+h.f.a*u+i/2,h.e.b+i/5.3+h.f.b)))}fL(bG(c.Xb(a),65).a,new PO(h.e.a+h.f.a*u,h.e.b+h.f.b))}else{f=bM(MK(lIn(h,(DQn(),Uze))));if(bln(bG(c.Xb(a),65),n)){fL(bG(c.Xb(a),65).a,new PO(h.e.a+h.f.a*u,bG(MR(bG(c.Xb(a),65).a),8).b))}else if(h.e.b-i>f){fL(bG(c.Xb(a),65).a,new PO(h.e.a+h.f.a*u,f-r))}else if(bG(c.Xb(a),65).a.b>0){s=bG(MR(bG(c.Xb(a),65).a),8).a;b=h.e.a+h.f.a/2;o=bG(MR(bG(c.Xb(a),65).a),8).b;w=h.e.b+h.f.b/2;i>0&&t.Math.abs(s-b)/(t.Math.abs(o-w)/40)>50&&(b>s?fL(bG(c.Xb(a),65).a,new PO(h.e.a+h.f.a*u-i/2,h.e.b-i/5.3)):fL(bG(c.Xb(a),65).a,new PO(h.e.a+h.f.a*u+i/2,h.e.b-i/5.3)))}fL(bG(c.Xb(a),65).a,new PO(h.e.a+h.f.a*u,h.e.b))}}}}function JYn(){JYn=O;var n,e;b4e=new Np(Vne);L6e=new Np(zne);d4e=(aMn(),R3e);w4e=new TL(q8n,d4e);new tm;g4e=new TL(x3n,null);v4e=new Np(Wne);j4e=(iPn(),nV(f4e,zfn(fT(h4e,1),g1n,298,0,[c4e])));T4e=new TL(r9n,j4e);E4e=new TL(G8n,(Qx(),false));P4e=(Bdn(),h5e);S4e=new TL(z8n,P4e);L4e=(qgn(),T5e);A4e=new TL(v8n,L4e);D4e=new TL(qne,false);R4e=(Dwn(),G5e);x4e=new TL(l8n,R4e);u6e=new NN(12);c6e=new TL(R3n,u6e);B4e=new TL(f4n,false);H4e=new TL(d9n,false);a6e=new TL(b4n,false);y6e=(FPn(),T8e);k6e=new TL(h4n,y6e);I6e=new Np(l9n);O6e=new Np(a4n);A6e=new Np(s4n);$6e=new Np(o4n);G4e=new zk;U4e=new TL(i9n,G4e);M4e=new TL(u9n,false);K4e=new TL(s9n,false);new Np(Qne);X4e=new Kk;q4e=new TL(b9n,X4e);i6e=new TL(H8n,false);new tm;N6e=new TL(Jne,1);y4e=new Np(Yne);k4e=new Np(Zne);Z6e=new TL(m4n,false);new TL(nee,true);Bwn(0);new TL(eee,Bwn(100));new TL(tee,false);Bwn(0);new TL(ree,Bwn(4e3));Bwn(0);new TL(iee,Bwn(400));new TL(aee,false);new TL(cee,false);new TL(uee,true);new TL(see,false);m4e=(Qvn(),q9e);p4e=new TL(Xne,m4e);D6e=new TL(O8n,10);x6e=new TL(A8n,10);R6e=new TL($3n,20);K6e=new TL(L8n,10);F6e=new TL(u4n,2);_6e=new TL(N8n,10);H6e=new TL($8n,0);U6e=new TL(R8n,5);G6e=new TL(D8n,1);q6e=new TL(x8n,1);X6e=new TL(c4n,20);V6e=new TL(K8n,10);Q6e=new TL(F8n,10);B6e=new Np(_8n);W6e=new QL;z6e=new TL(w9n,W6e);f6e=new Np(h9n);o6e=false;s6e=new TL(f9n,o6e);z4e=new NN(5);V4e=new TL(W8n,z4e);Q4e=(ZDn(),e=bG(Pj(o8e),9),new aB(e,bG(PF(e,e.length),9),0));W4e=new TL(v4n,Q4e);b6e=(Zkn(),b8e);l6e=new TL(Y8n,b6e);d6e=new Np(Z8n);g6e=new Np(n9n);v6e=new Np(e9n);w6e=new Np(t9n);Y4e=(n=bG(Pj(w9e),9),new aB(n,bG(PF(n,n.length),9),0));J4e=new TL(g4n,Y4e);r6e=ygn((hUn(),p9e));t6e=new TL(d4n,r6e);e6e=new PO(0,0);n6e=new TL(D4n,e6e);Z4e=new TL(w4n,false);O4e=(ian(),d5e);I4e=new TL(a9n,O4e);C4e=new TL(l4n,false);new Np(oee);Bwn(1);new TL(fee,null);p6e=new Np(o9n);M6e=new Np(c9n);C6e=(UQn(),Z8e);P6e=new TL(U8n,C6e);m6e=new Np(B8n);E6e=(uNn(),ygn(O8e));j6e=new TL(p4n,E6e);T6e=new TL(Q8n,false);S6e=new TL(J8n,true);new tm;r5e=new TL(k4n,1);a5e=new TL(hee,null);Y6e=new TL(y4n,150);J6e=new TL(M4n,1.414);n5e=new TL(T4n,null);e5e=new TL(lee,1);F4e=new TL(X8n,false);_4e=new TL(V8n,false);N4e=new TL(D3n,1);$4e=(HCn(),O5e);new TL(bee,$4e);h6e=true;i5e=($wn(),P9e);c5e=P9e;t5e=P9e}function YYn(){YYn=O;gPe=new NC("DIRECTION_PREPROCESSOR",0);bPe=new NC("COMMENT_PREPROCESSOR",1);vPe=new NC("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2);NPe=new NC("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3);YPe=new NC("PARTITION_PREPROCESSOR",4);RPe=new NC("LABEL_DUMMY_INSERTER",5);iCe=new NC("SELF_LOOP_PREPROCESSOR",6);HPe=new NC("LAYER_CONSTRAINT_PREPROCESSOR",7);QPe=new NC("PARTITION_MIDPROCESSOR",8);CPe=new NC("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9);XPe=new NC("NODE_PROMOTION",10);BPe=new NC("LAYER_CONSTRAINT_POSTPROCESSOR",11);JPe=new NC("PARTITION_POSTPROCESSOR",12);jPe=new NC("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13);cCe=new NC("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14);uPe=new NC("BREAKING_POINT_INSERTER",15);qPe=new NC("LONG_EDGE_SPLITTER",16);nCe=new NC("PORT_SIDE_PROCESSOR",17);$Pe=new NC("INVERTED_PORT_PROCESSOR",18);ZPe=new NC("PORT_LIST_SORTER",19);sCe=new NC("SORT_BY_INPUT_ORDER_OF_MODEL",20);zPe=new NC("NORTH_SOUTH_PORT_PREPROCESSOR",21);sPe=new NC("BREAKING_POINT_PROCESSOR",22);WPe=new NC(g6n,23);oCe=new NC(v6n,24);tCe=new NC("SELF_LOOP_PORT_RESTORER",25);uCe=new NC("SINGLE_EDGE_GRAPH_WRAPPER",26);DPe=new NC("IN_LAYER_CONSTRAINT_PROCESSOR",27);yPe=new NC("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28);xPe=new NC("LABEL_AND_NODE_SIZE_PROCESSOR",29);LPe=new NC("INNERMOST_NODE_MARGIN_CALCULATOR",30);aCe=new NC("SELF_LOOP_ROUTER",31);hPe=new NC("COMMENT_NODE_MARGIN_CALCULATOR",32);mPe=new NC("END_LABEL_PREPROCESSOR",33);FPe=new NC("LABEL_DUMMY_SWITCHER",34);fPe=new NC("CENTER_LABEL_MANAGEMENT_PROCESSOR",35);_Pe=new NC("LABEL_SIDE_SELECTOR",36);OPe=new NC("HYPEREDGE_DUMMY_MERGER",37);EPe=new NC("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38);UPe=new NC("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39);PPe=new NC("HIERARCHICAL_PORT_POSITION_PROCESSOR",40);wPe=new NC("CONSTRAINTS_POSTPROCESSOR",41);lPe=new NC("COMMENT_POSTPROCESSOR",42);APe=new NC("HYPERNODE_PROCESSOR",43);SPe=new NC("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44);GPe=new NC("LONG_EDGE_JOINER",45);rCe=new NC("SELF_LOOP_POSTPROCESSOR",46);oPe=new NC("BREAKING_POINT_REMOVER",47);VPe=new NC("NORTH_SOUTH_PORT_POSTPROCESSOR",48);IPe=new NC("HORIZONTAL_COMPACTOR",49);KPe=new NC("LABEL_DUMMY_REMOVER",50);MPe=new NC("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51);kPe=new NC("END_LABEL_SORTER",52);eCe=new NC("REVERSED_EDGE_RESTORER",53);pPe=new NC("END_LABEL_POSTPROCESSOR",54);TPe=new NC("HIERARCHICAL_NODE_RESIZER",55);dPe=new NC("DIRECTION_POSTPROCESSOR",56)}function ZYn(){ZYn=O;_xe=(Zrn(),xNe);Fxe=new TL(_6n,_xe);rRe=new TL(B6n,(Qx(),false));oRe=(r5(),B$e);sRe=new TL(H6n,oRe);PRe=new TL(U6n,false);CRe=new TL(G6n,true);txe=new TL(q6n,false);zRe=(arn(),gHe);VRe=new TL(X6n,zRe);Bwn(1);tKe=new TL(V6n,Bwn(7));rKe=new TL(z6n,false);iRe=new TL(W6n,false);Kxe=(Emn(),ONe);Rxe=new TL(Q6n,Kxe);SRe=(PKn(),OBe);ERe=new TL(J6n,SRe);gRe=(Wvn(),ZDe);dRe=new TL(Y6n,gRe);Bwn(-1);wRe=new TL(Z6n,null);Bwn(-1);vRe=new TL(n5n,Bwn(-1));Bwn(-1);pRe=new TL(e5n,Bwn(4));Bwn(-1);kRe=new TL(t5n,Bwn(2));jRe=(CHn(),cHe);TRe=new TL(r5n,jRe);Bwn(0);MRe=new TL(i5n,Bwn(0));lRe=new TL(a5n,Bwn(pZn));xxe=(Icn(),kNe);Dxe=new TL(c5n,xxe);pxe=new TL(u5n,false);Pxe=new TL(s5n,.1);Nxe=new TL(o5n,false);Ixe=new TL(f5n,null);Oxe=new TL(h5n,null);Bwn(-1);Axe=new TL(l5n,null);Bwn(-1);Lxe=new TL(b5n,Bwn(-1));Bwn(0);mxe=new TL(w5n,Bwn(40));Exe=(sfn(),N$e);jxe=new TL(d5n,Exe);yxe=A$e;kxe=new TL(g5n,yxe);XRe=(Myn(),qBe);qRe=new TL(v5n,XRe);DRe=new Np(p5n);ORe=(ntn(),ZNe);IRe=new TL(m5n,ORe);NRe=(OSn(),c$e);LRe=new TL(k5n,NRe);new tm;KRe=new TL(y5n,.3);_Re=new Np(M5n);HRe=(rMn(),BBe);BRe=new TL(T5n,HRe);zxe=(son(),SHe);Vxe=new TL(j5n,zxe);Qxe=(Aln(),LHe);Wxe=new TL(E5n,Qxe);Yxe=(Ebn(),KHe);Jxe=new TL(S5n,Yxe);nRe=new TL(P5n,.2);qxe=new TL(C5n,2);YRe=new TL(I5n,null);nKe=new TL(O5n,10);ZRe=new TL(A5n,10);eKe=new TL(L5n,20);Bwn(0);WRe=new TL(N5n,Bwn(0));Bwn(0);QRe=new TL($5n,Bwn(0));Bwn(0);JRe=new TL(D5n,Bwn(0));rxe=new TL(x5n,false);uxe=(HIn(),d$e);cxe=new TL(R5n,uxe);axe=(V7(),gNe);ixe=new TL(K5n,axe);cRe=new TL(F5n,false);Bwn(0);aRe=new TL(_5n,Bwn(16));Bwn(0);uRe=new TL(B5n,Bwn(5));SKe=(Yfn(),VHe);EKe=new TL(H5n,SKe);iKe=new TL(U5n,10);uKe=new TL(G5n,1);gKe=(ocn(),SNe);dKe=new TL(q5n,gKe);fKe=new Np(X5n);bKe=Bwn(1);Bwn(0);lKe=new TL(V5n,bKe);AKe=(scn(),BHe);OKe=new TL(z5n,AKe);PKe=new Np(W5n);yKe=new TL(Q5n,true);mKe=new TL(J5n,2);TKe=new TL(Y5n,true);Gxe=(cOn(),WNe);Uxe=new TL(Z5n,Gxe);Hxe=(jAn(),oNe);Bxe=new TL(n8n,Hxe);vxe=(Smn(),hHe);gxe=new TL(e8n,vxe);dxe=new TL(t8n,false);wxe=new TL(r8n,false);oxe=(zmn(),hje);sxe=new TL(i8n,oxe);bxe=(Nwn(),$Be);lxe=new TL(a8n,bxe);fxe=new TL(c8n,0);hxe=new TL(u8n,0);hRe=LNe;fRe=mNe;mRe=IBe;yRe=IBe;bRe=jBe;Cxe=(Dwn(),U5e);$xe=kNe;Sxe=kNe;Mxe=kNe;Txe=U5e;xRe=zBe;RRe=qBe;ARe=qBe;$Re=qBe;FRe=VBe;GRe=zBe;URe=zBe;Zxe=(qgn(),M5e);eRe=M5e;tRe=KHe;Xxe=y5e;aKe=zHe;cKe=XHe;sKe=zHe;oKe=XHe;vKe=zHe;pKe=XHe;hKe=ENe;wKe=SNe;LKe=zHe;NKe=XHe;CKe=zHe;IKe=XHe;MKe=XHe;kKe=XHe;jKe=XHe}function nZn(n,e,r){var i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S,P,C,I,O,A,L,N,$,D,x,R,K,F,_,B,H,U,G,q,X,V,z,W,Q,J,Y,Z,nn,en,tn,rn,an,cn,un,sn;Y=0;for(O=e,N=0,x=O.length;N0&&(n.a[U.p]=Y++)}}rn=0;for(A=r,$=0,R=A.length;$0){U=(PK(V.b>0),bG(V.a.Xb(V.c=--V.b),12));X=0;for(s=new nd(U.e);s.a0){if(U.j==(UQn(),D8e)){n.a[U.p]=rn;++rn}else{n.a[U.p]=rn+K+_;++_}}}rn+=_}q=new rm;d=new JL;for(I=e,L=0,D=I.length;Lf.b&&(f.b=z)}else if(U.i.c==J){zf.c&&(f.c=z)}}}Ken(g,0,g.length,null);tn=$nn(Ght,z1n,28,g.length,15,1);i=$nn(Ght,z1n,28,rn+1,15,1);for(p=0;p0){j%2>0&&(a+=un[j+1]);j=(j-1)/2|0;++un[j]}}S=$nn(PGe,jZn,374,g.length*2,0,1);for(y=0;y0&&(x1(L.f),false)){if(bG(YDn(p,n5e),280)==P9e){throw dm(new IM("Topdown Layout Providers should only be used on parallel nodes."))}JA(x1(L.f));null.Um();jN(p,t.Math.max(p.g,null.Vm),t.Math.max(p.f,null.Vm))}else if(YDn(p,a5e)!=null){s=bG(YDn(p,a5e),347);q=s.Tg(p);jN(p,t.Math.max(p.g,q.a),t.Math.max(p.f,q.b))}}}R=bG(YDn(e,c6e),107);w=e.g-(R.b+R.c);b=e.f-(R.d+R.a);z.bh("Available Child Area: ("+w+"|"+b+")");Pyn(e,g4e,w/b);Pkn(e,a,i.eh(D));if(bG(YDn(e,n5e),280)==I9e){ZJn(e);jN(e,R.b+bM(MK(YDn(e,y4e)))+R.c,R.d+bM(MK(YDn(e,k4e)))+R.a)}z.bh("Executed layout algorithm: "+TK(YDn(e,b4e))+" on node "+e.k);if(bG(YDn(e,n5e),280)==P9e){if(w<0||b<0){throw dm(new IM("The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. "+e.k))}jnn(e,y4e)||jnn(e,k4e)||ZJn(e);g=bM(MK(YDn(e,y4e)));d=bM(MK(YDn(e,k4e)));z.bh("Desired Child Area: ("+g+"|"+d+")");F=w/g;_=b/d;K=t.Math.min(F,t.Math.min(_,bM(MK(YDn(e,e5e)))));Pyn(e,r5e,K);z.bh(e.k+" -- Local Scale Factor (X|Y): ("+F+"|"+_+")");y=bG(YDn(e,T4e),21);c=0;u=0;K'?":T_(tre,n)?"'(?<' or '(? toIndex: ",s2n=", toIndex: ",o2n="Index: ",f2n=", Size: ",h2n="org.eclipse.elk.alg.common",l2n={50:1},b2n="org.eclipse.elk.alg.common.compaction",w2n="Scanline/EventHandler",d2n="org.eclipse.elk.alg.common.compaction.oned",g2n="CNode belongs to another CGroup.",v2n="ISpacingsHandler/1",p2n="The ",m2n=" instance has been finished already.",k2n="The direction ",y2n=" is not supported by the CGraph instance.",M2n="OneDimensionalCompactor",T2n="OneDimensionalCompactor/lambda$0$Type",j2n="Quadruplet",E2n="ScanlineConstraintCalculator",S2n="ScanlineConstraintCalculator/ConstraintsScanlineHandler",P2n="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",C2n="ScanlineConstraintCalculator/Timestamp",I2n="ScanlineConstraintCalculator/lambda$0$Type",O2n={178:1,46:1},A2n="org.eclipse.elk.alg.common.compaction.options",L2n="org.eclipse.elk.core.data",N2n="org.eclipse.elk.polyomino.traversalStrategy",$2n="org.eclipse.elk.polyomino.lowLevelSort",D2n="org.eclipse.elk.polyomino.highLevelSort",x2n="org.eclipse.elk.polyomino.fill",R2n={134:1},K2n="polyomino",F2n="org.eclipse.elk.alg.common.networksimplex",_2n={183:1,3:1,4:1},B2n="org.eclipse.elk.alg.common.nodespacing",H2n="org.eclipse.elk.alg.common.nodespacing.cellsystem",U2n="CENTER",G2n={217:1,336:1},q2n={3:1,4:1,5:1,603:1},X2n="LEFT",V2n="RIGHT",z2n="Vertical alignment cannot be null",W2n="BOTTOM",Q2n="org.eclipse.elk.alg.common.nodespacing.internal",J2n="UNDEFINED",Y2n=.01,Z2n="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",n3n="LabelPlacer/lambda$0$Type",e3n="LabelPlacer/lambda$1$Type",t3n="portRatioOrPosition",r3n="org.eclipse.elk.alg.common.overlaps",i3n="DOWN",a3n="org.eclipse.elk.alg.common.polyomino",c3n="NORTH",u3n="EAST",s3n="SOUTH",o3n="WEST",f3n="org.eclipse.elk.alg.common.polyomino.structures",h3n="Direction",l3n="Grid is only of size ",b3n=". Requested point (",w3n=") is out of bounds.",d3n=" Given center based coordinates were (",g3n="org.eclipse.elk.graph.properties",v3n="IPropertyHolder",p3n={3:1,96:1,137:1},m3n="org.eclipse.elk.alg.common.spore",k3n="org.eclipse.elk.alg.common.utils",y3n={205:1},M3n="org.eclipse.elk.core",T3n="Connected Components Compaction",j3n="org.eclipse.elk.alg.disco",E3n="org.eclipse.elk.alg.disco.graph",S3n="org.eclipse.elk.alg.disco.options",P3n="CompactionStrategy",C3n="org.eclipse.elk.disco.componentCompaction.strategy",I3n="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",O3n="org.eclipse.elk.disco.debug.discoGraph",A3n="org.eclipse.elk.disco.debug.discoPolys",L3n="componentCompaction",N3n="org.eclipse.elk.disco",$3n="org.eclipse.elk.spacing.componentComponent",D3n="org.eclipse.elk.edge.thickness",x3n="org.eclipse.elk.aspectRatio",R3n="org.eclipse.elk.padding",K3n="org.eclipse.elk.alg.disco.transform",F3n=1.5707963267948966,_3n=17976931348623157e292,B3n={3:1,4:1,5:1,198:1},H3n={3:1,6:1,4:1,5:1,100:1,115:1},U3n="org.eclipse.elk.alg.force",G3n="ComponentsProcessor",q3n="ComponentsProcessor/1",X3n="ElkGraphImporter/lambda$0$Type",V3n="org.eclipse.elk.alg.force.graph",z3n="Component Layout",W3n="org.eclipse.elk.alg.force.model",Q3n="org.eclipse.elk.force.model",J3n="org.eclipse.elk.force.iterations",Y3n="org.eclipse.elk.force.repulsivePower",Z3n="org.eclipse.elk.force.temperature",n4n=.001,e4n="org.eclipse.elk.force.repulsion",t4n="org.eclipse.elk.alg.force.options",r4n=1.600000023841858,i4n="org.eclipse.elk.force",a4n="org.eclipse.elk.priority",c4n="org.eclipse.elk.spacing.nodeNode",u4n="org.eclipse.elk.spacing.edgeLabel",s4n="org.eclipse.elk.randomSeed",o4n="org.eclipse.elk.separateConnectedComponents",f4n="org.eclipse.elk.interactive",h4n="org.eclipse.elk.portConstraints",l4n="org.eclipse.elk.edgeLabels.inline",b4n="org.eclipse.elk.omitNodeMicroLayout",w4n="org.eclipse.elk.nodeSize.fixedGraphSize",d4n="org.eclipse.elk.nodeSize.options",g4n="org.eclipse.elk.nodeSize.constraints",v4n="org.eclipse.elk.nodeLabels.placement",p4n="org.eclipse.elk.portLabels.placement",m4n="org.eclipse.elk.topdownLayout",k4n="org.eclipse.elk.topdown.scaleFactor",y4n="org.eclipse.elk.topdown.hierarchicalNodeWidth",M4n="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",T4n="org.eclipse.elk.topdown.nodeType",j4n="origin",E4n="random",S4n="boundingBox.upLeft",P4n="boundingBox.lowRight",C4n="org.eclipse.elk.stress.fixed",I4n="org.eclipse.elk.stress.desiredEdgeLength",O4n="org.eclipse.elk.stress.dimension",A4n="org.eclipse.elk.stress.epsilon",L4n="org.eclipse.elk.stress.iterationLimit",N4n="org.eclipse.elk.stress",$4n="ELK Stress",D4n="org.eclipse.elk.nodeSize.minimum",x4n="org.eclipse.elk.alg.force.stress",R4n="Layered layout",K4n="org.eclipse.elk.alg.layered",F4n="org.eclipse.elk.alg.layered.compaction.components",_4n="org.eclipse.elk.alg.layered.compaction.oned",B4n="org.eclipse.elk.alg.layered.compaction.oned.algs",H4n="org.eclipse.elk.alg.layered.compaction.recthull",U4n="org.eclipse.elk.alg.layered.components",G4n="NONE",q4n="MODEL_ORDER",X4n={3:1,6:1,4:1,9:1,5:1,126:1},V4n={3:1,6:1,4:1,5:1,150:1,100:1,115:1},z4n="org.eclipse.elk.alg.layered.compound",W4n={47:1},Q4n="org.eclipse.elk.alg.layered.graph",J4n=" -> ",Y4n="Not supported by LGraph",Z4n="Port side is undefined",n6n={3:1,6:1,4:1,5:1,483:1,150:1,100:1,115:1},e6n={3:1,6:1,4:1,5:1,150:1,199:1,210:1,100:1,115:1},t6n={3:1,6:1,4:1,5:1,150:1,2042:1,210:1,100:1,115:1},r6n="([{\"' \t\r\n",i6n=")]}\"' \t\r\n",a6n="The given string contains parts that cannot be parsed as numbers.",c6n="org.eclipse.elk.core.math",u6n={3:1,4:1,140:1,214:1,423:1},s6n={3:1,4:1,107:1,214:1,423:1},o6n="org.eclipse.elk.alg.layered.graph.transform",f6n="ElkGraphImporter",h6n="ElkGraphImporter/lambda$1$Type",l6n="ElkGraphImporter/lambda$2$Type",b6n="ElkGraphImporter/lambda$4$Type",w6n="org.eclipse.elk.alg.layered.intermediate",d6n="Node margin calculation",g6n="ONE_SIDED_GREEDY_SWITCH",v6n="TWO_SIDED_GREEDY_SWITCH",p6n="No implementation is available for the layout processor ",m6n="IntermediateProcessorStrategy",k6n="Node '",y6n="FIRST_SEPARATE",M6n="LAST_SEPARATE",T6n="Odd port side processing",j6n="org.eclipse.elk.alg.layered.intermediate.compaction",E6n="org.eclipse.elk.alg.layered.intermediate.greedyswitch",S6n="org.eclipse.elk.alg.layered.p3order.counting",P6n={230:1},C6n="org.eclipse.elk.alg.layered.intermediate.loops",I6n="org.eclipse.elk.alg.layered.intermediate.loops.ordering",O6n="org.eclipse.elk.alg.layered.intermediate.loops.routing",A6n="org.eclipse.elk.alg.layered.intermediate.preserveorder",L6n="org.eclipse.elk.alg.layered.intermediate.wrapping",N6n="org.eclipse.elk.alg.layered.options",$6n="INTERACTIVE",D6n="GREEDY",x6n="DEPTH_FIRST",R6n="EDGE_LENGTH",K6n="SELF_LOOPS",F6n="firstTryWithInitialOrder",_6n="org.eclipse.elk.layered.directionCongruency",B6n="org.eclipse.elk.layered.feedbackEdges",H6n="org.eclipse.elk.layered.interactiveReferencePoint",U6n="org.eclipse.elk.layered.mergeEdges",G6n="org.eclipse.elk.layered.mergeHierarchyEdges",q6n="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",X6n="org.eclipse.elk.layered.portSortingStrategy",V6n="org.eclipse.elk.layered.thoroughness",z6n="org.eclipse.elk.layered.unnecessaryBendpoints",W6n="org.eclipse.elk.layered.generatePositionAndLayerIds",Q6n="org.eclipse.elk.layered.cycleBreaking.strategy",J6n="org.eclipse.elk.layered.layering.strategy",Y6n="org.eclipse.elk.layered.layering.layerConstraint",Z6n="org.eclipse.elk.layered.layering.layerChoiceConstraint",n5n="org.eclipse.elk.layered.layering.layerId",e5n="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",t5n="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",r5n="org.eclipse.elk.layered.layering.nodePromotion.strategy",i5n="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",a5n="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",c5n="org.eclipse.elk.layered.crossingMinimization.strategy",u5n="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",s5n="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",o5n="org.eclipse.elk.layered.crossingMinimization.semiInteractive",f5n="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",h5n="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",l5n="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",b5n="org.eclipse.elk.layered.crossingMinimization.positionId",w5n="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",d5n="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",g5n="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",v5n="org.eclipse.elk.layered.nodePlacement.strategy",p5n="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",m5n="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",k5n="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",y5n="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",M5n="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",T5n="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",j5n="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",E5n="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",S5n="org.eclipse.elk.layered.edgeRouting.splines.mode",P5n="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",C5n="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",I5n="org.eclipse.elk.layered.spacing.baseValue",O5n="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",A5n="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",L5n="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",N5n="org.eclipse.elk.layered.priority.direction",$5n="org.eclipse.elk.layered.priority.shortness",D5n="org.eclipse.elk.layered.priority.straightness",x5n="org.eclipse.elk.layered.compaction.connectedComponents",R5n="org.eclipse.elk.layered.compaction.postCompaction.strategy",K5n="org.eclipse.elk.layered.compaction.postCompaction.constraints",F5n="org.eclipse.elk.layered.highDegreeNodes.treatment",_5n="org.eclipse.elk.layered.highDegreeNodes.threshold",B5n="org.eclipse.elk.layered.highDegreeNodes.treeHeight",H5n="org.eclipse.elk.layered.wrapping.strategy",U5n="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",G5n="org.eclipse.elk.layered.wrapping.correctionFactor",q5n="org.eclipse.elk.layered.wrapping.cutting.strategy",X5n="org.eclipse.elk.layered.wrapping.cutting.cuts",V5n="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",z5n="org.eclipse.elk.layered.wrapping.validify.strategy",W5n="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",Q5n="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",J5n="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",Y5n="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",Z5n="org.eclipse.elk.layered.edgeLabels.sideSelection",n8n="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",e8n="org.eclipse.elk.layered.considerModelOrder.strategy",t8n="org.eclipse.elk.layered.considerModelOrder.portModelOrder",r8n="org.eclipse.elk.layered.considerModelOrder.noModelOrder",i8n="org.eclipse.elk.layered.considerModelOrder.components",a8n="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",c8n="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",u8n="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",s8n="layering",o8n="layering.minWidth",f8n="layering.nodePromotion",h8n="crossingMinimization",l8n="org.eclipse.elk.hierarchyHandling",b8n="crossingMinimization.greedySwitch",w8n="nodePlacement",d8n="nodePlacement.bk",g8n="edgeRouting",v8n="org.eclipse.elk.edgeRouting",p8n="spacing",m8n="priority",k8n="compaction",y8n="compaction.postCompaction",M8n="Specifies whether and how post-process compaction is applied.",T8n="highDegreeNodes",j8n="wrapping",E8n="wrapping.cutting",S8n="wrapping.validify",P8n="wrapping.multiEdge",C8n="edgeLabels",I8n="considerModelOrder",O8n="org.eclipse.elk.spacing.commentComment",A8n="org.eclipse.elk.spacing.commentNode",L8n="org.eclipse.elk.spacing.edgeEdge",N8n="org.eclipse.elk.spacing.edgeNode",$8n="org.eclipse.elk.spacing.labelLabel",D8n="org.eclipse.elk.spacing.labelPortHorizontal",x8n="org.eclipse.elk.spacing.labelPortVertical",R8n="org.eclipse.elk.spacing.labelNode",K8n="org.eclipse.elk.spacing.nodeSelfLoop",F8n="org.eclipse.elk.spacing.portPort",_8n="org.eclipse.elk.spacing.individual",B8n="org.eclipse.elk.port.borderOffset",H8n="org.eclipse.elk.noLayout",U8n="org.eclipse.elk.port.side",G8n="org.eclipse.elk.debugMode",q8n="org.eclipse.elk.alignment",X8n="org.eclipse.elk.insideSelfLoops.activate",V8n="org.eclipse.elk.insideSelfLoops.yo",z8n="org.eclipse.elk.direction",W8n="org.eclipse.elk.nodeLabels.padding",Q8n="org.eclipse.elk.portLabels.nextToPortIfPossible",J8n="org.eclipse.elk.portLabels.treatAsGroup",Y8n="org.eclipse.elk.portAlignment.default",Z8n="org.eclipse.elk.portAlignment.north",n9n="org.eclipse.elk.portAlignment.south",e9n="org.eclipse.elk.portAlignment.west",t9n="org.eclipse.elk.portAlignment.east",r9n="org.eclipse.elk.contentAlignment",i9n="org.eclipse.elk.junctionPoints",a9n="org.eclipse.elk.edgeLabels.placement",c9n="org.eclipse.elk.port.index",u9n="org.eclipse.elk.commentBox",s9n="org.eclipse.elk.hypernode",o9n="org.eclipse.elk.port.anchor",f9n="org.eclipse.elk.partitioning.activate",h9n="org.eclipse.elk.partitioning.partition",l9n="org.eclipse.elk.position",b9n="org.eclipse.elk.margins",w9n="org.eclipse.elk.spacing.portsSurrounding",d9n="org.eclipse.elk.interactiveLayout",g9n="org.eclipse.elk.core.util",v9n={3:1,4:1,5:1,601:1},p9n="NETWORK_SIMPLEX",m9n="SIMPLE",k9n={106:1,47:1},y9n="org.eclipse.elk.alg.layered.p1cycles",M9n="org.eclipse.elk.alg.layered.p2layers",T9n={413:1,230:1},j9n={846:1,3:1,4:1},E9n="org.eclipse.elk.alg.layered.p3order",S9n="org.eclipse.elk.alg.layered.p4nodes",P9n={3:1,4:1,5:1,854:1},C9n=1e-5,I9n="org.eclipse.elk.alg.layered.p4nodes.bk",O9n="org.eclipse.elk.alg.layered.p5edges",A9n="org.eclipse.elk.alg.layered.p5edges.orthogonal",L9n="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",N9n=1e-6,$9n="org.eclipse.elk.alg.layered.p5edges.splines",D9n=.09999999999999998,x9n=1e-8,R9n=4.71238898038469,K9n=3.141592653589793,F9n="org.eclipse.elk.alg.mrtree",_9n=.10000000149011612,B9n="SUPER_ROOT",H9n="org.eclipse.elk.alg.mrtree.graph",U9n=-17976931348623157e292,G9n="org.eclipse.elk.alg.mrtree.intermediate",q9n="Processor compute fanout",X9n={3:1,6:1,4:1,5:1,534:1,100:1,115:1},V9n="Set neighbors in level",z9n="org.eclipse.elk.alg.mrtree.options",W9n="DESCENDANTS",Q9n="org.eclipse.elk.mrtree.compaction",J9n="org.eclipse.elk.mrtree.edgeEndTextureLength",Y9n="org.eclipse.elk.mrtree.treeLevel",Z9n="org.eclipse.elk.mrtree.positionConstraint",n7n="org.eclipse.elk.mrtree.weighting",e7n="org.eclipse.elk.mrtree.edgeRoutingMode",t7n="org.eclipse.elk.mrtree.searchOrder",r7n="Position Constraint",i7n="org.eclipse.elk.mrtree",a7n="org.eclipse.elk.tree",c7n="Processor arrange level",u7n="org.eclipse.elk.alg.mrtree.p2order",s7n="org.eclipse.elk.alg.mrtree.p4route",o7n="org.eclipse.elk.alg.radial",f7n=6.283185307179586,h7n="Before",l7n=5e-324,b7n="After",w7n="org.eclipse.elk.alg.radial.intermediate",d7n="COMPACTION",g7n="org.eclipse.elk.alg.radial.intermediate.compaction",v7n={3:1,4:1,5:1,100:1},p7n="org.eclipse.elk.alg.radial.intermediate.optimization",m7n="No implementation is available for the layout option ",k7n="org.eclipse.elk.alg.radial.options",y7n="org.eclipse.elk.radial.centerOnRoot",M7n="org.eclipse.elk.radial.orderId",T7n="org.eclipse.elk.radial.radius",j7n="org.eclipse.elk.radial.rotate",E7n="org.eclipse.elk.radial.compactor",S7n="org.eclipse.elk.radial.compactionStepSize",P7n="org.eclipse.elk.radial.sorter",C7n="org.eclipse.elk.radial.wedgeCriteria",I7n="org.eclipse.elk.radial.optimizationCriteria",O7n="org.eclipse.elk.radial.rotation.targetAngle",A7n="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",L7n="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",N7n="Compaction",$7n="rotation",D7n="org.eclipse.elk.radial",x7n="org.eclipse.elk.alg.radial.p1position.wedge",R7n="org.eclipse.elk.alg.radial.sorting",K7n=5.497787143782138,F7n=3.9269908169872414,_7n=2.356194490192345,B7n="org.eclipse.elk.alg.rectpacking",H7n="org.eclipse.elk.alg.rectpacking.intermediate",U7n="org.eclipse.elk.alg.rectpacking.options",G7n="org.eclipse.elk.rectpacking.trybox",q7n="org.eclipse.elk.rectpacking.currentPosition",X7n="org.eclipse.elk.rectpacking.desiredPosition",V7n="org.eclipse.elk.rectpacking.inNewRow",z7n="org.eclipse.elk.rectpacking.widthApproximation.strategy",W7n="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",Q7n="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",J7n="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",Y7n="org.eclipse.elk.rectpacking.packing.strategy",Z7n="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",nne="org.eclipse.elk.rectpacking.packing.compaction.iterations",ene="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",tne="widthApproximation",rne="Compaction Strategy",ine="packing.compaction",ane="org.eclipse.elk.rectpacking",cne="org.eclipse.elk.alg.rectpacking.p1widthapproximation",une="org.eclipse.elk.alg.rectpacking.p2packing",sne="No Compaction",one="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",fne="org.eclipse.elk.alg.rectpacking.util",hne="No implementation available for ",lne="org.eclipse.elk.alg.spore",bne="org.eclipse.elk.alg.spore.options",wne="org.eclipse.elk.sporeCompaction",dne="org.eclipse.elk.underlyingLayoutAlgorithm",gne="org.eclipse.elk.processingOrder.treeConstruction",vne="org.eclipse.elk.processingOrder.spanningTreeCostFunction",pne="org.eclipse.elk.processingOrder.preferredRoot",mne="org.eclipse.elk.processingOrder.rootSelection",kne="org.eclipse.elk.structure.structureExtractionStrategy",yne="org.eclipse.elk.compaction.compactionStrategy",Mne="org.eclipse.elk.compaction.orthogonal",Tne="org.eclipse.elk.overlapRemoval.maxIterations",jne="org.eclipse.elk.overlapRemoval.runScanline",Ene="processingOrder",Sne="overlapRemoval",Pne="org.eclipse.elk.sporeOverlap",Cne="org.eclipse.elk.alg.spore.p1structure",Ine="org.eclipse.elk.alg.spore.p2processingorder",One="org.eclipse.elk.alg.spore.p3execution",Ane="Topdown Layout",Lne="Invalid index: ",Nne="org.eclipse.elk.core.alg",$ne={341:1},Dne={295:1},xne="Make sure its type is registered with the ",Rne=" utility class.",Kne="true",Fne="false",_ne="Couldn't clone property '",Bne=.05,Hne="org.eclipse.elk.core.options",Une=1.2999999523162842,Gne="org.eclipse.elk.box",qne="org.eclipse.elk.expandNodes",Xne="org.eclipse.elk.box.packingMode",Vne="org.eclipse.elk.algorithm",zne="org.eclipse.elk.resolvedAlgorithm",Wne="org.eclipse.elk.bendPoints",Qne="org.eclipse.elk.labelManager",Jne="org.eclipse.elk.scaleFactor",Yne="org.eclipse.elk.childAreaWidth",Zne="org.eclipse.elk.childAreaHeight",nee="org.eclipse.elk.animate",eee="org.eclipse.elk.animTimeFactor",tee="org.eclipse.elk.layoutAncestors",ree="org.eclipse.elk.maxAnimTime",iee="org.eclipse.elk.minAnimTime",aee="org.eclipse.elk.progressBar",cee="org.eclipse.elk.validateGraph",uee="org.eclipse.elk.validateOptions",see="org.eclipse.elk.zoomToFit",oee="org.eclipse.elk.font.name",fee="org.eclipse.elk.font.size",hee="org.eclipse.elk.topdown.sizeApproximator",lee="org.eclipse.elk.topdown.scaleCap",bee="org.eclipse.elk.edge.type",wee="partitioning",dee="nodeLabels",gee="portAlignment",vee="nodeSize",pee="port",mee="portLabels",kee="topdown",yee="insideSelfLoops",Mee="org.eclipse.elk.fixed",Tee="org.eclipse.elk.random",jee={3:1,34:1,22:1,347:1},Eee="port must have a parent node to calculate the port side",See="The edge needs to have exactly one edge section. Found: ",Pee="org.eclipse.elk.core.util.adapters",Cee="org.eclipse.emf.ecore",Iee="org.eclipse.elk.graph",Oee="EMapPropertyHolder",Aee="ElkBendPoint",Lee="ElkGraphElement",Nee="ElkConnectableShape",$ee="ElkEdge",Dee="ElkEdgeSection",xee="EModelElement",Ree="ENamedElement",Kee="ElkLabel",Fee="ElkNode",_ee="ElkPort",Bee={94:1,93:1},Hee="org.eclipse.emf.common.notify.impl",Uee="The feature '",Gee="' is not a valid changeable feature",qee="Expecting null",Xee="' is not a valid feature",Vee="The feature ID",zee=" is not a valid feature ID",Wee=32768,Qee={110:1,94:1,93:1,58:1,54:1,99:1},Jee="org.eclipse.emf.ecore.impl",Yee="org.eclipse.elk.graph.impl",Zee="Recursive containment not allowed for ",nte="The datatype '",ete="' is not a valid classifier",tte="The value '",rte={195:1,3:1,4:1},ite="The class '",ate="http://www.eclipse.org/elk/ElkGraph",cte="property",ute="value",ste="source",ote="properties",fte="identifier",hte="height",lte="width",bte="parent",wte="text",dte="children",gte="hierarchical",vte="sources",pte="targets",mte="sections",kte="bendPoints",yte="outgoingShape",Mte="incomingShape",Tte="outgoingSections",jte="incomingSections",Ete="org.eclipse.emf.common.util",Ste="Severe implementation error in the Json to ElkGraph importer.",Pte="id",Cte="org.eclipse.elk.graph.json",Ite="Unhandled parameter types: ",Ote="startPoint",Ate="An edge must have at least one source and one target (edge id: '",Lte="').",Nte="Referenced edge section does not exist: ",$te=" (edge id: '",Dte="target",xte="sourcePoint",Rte="targetPoint",Kte="group",Fte="name",_te="connectableShape cannot be null",Bte="edge cannot be null",Hte="Passed edge is not 'simple'.",Ute="org.eclipse.elk.graph.util",Gte="The 'no duplicates' constraint is violated",qte="targetIndex=",Xte=", size=",Vte="sourceIndex=",zte={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1},Wte={3:1,4:1,20:1,31:1,56:1,16:1,51:1,15:1,59:1,70:1,66:1,61:1,596:1},Qte="logging",Jte="measureExecutionTime",Yte="parser.parse.1",Zte="parser.parse.2",nre="parser.next.1",ere="parser.next.2",tre="parser.next.3",rre="parser.next.4",ire="parser.factor.1",are="parser.factor.2",cre="parser.factor.3",ure="parser.factor.4",sre="parser.factor.5",ore="parser.factor.6",fre="parser.atom.1",hre="parser.atom.2",lre="parser.atom.3",bre="parser.atom.4",wre="parser.atom.5",dre="parser.cc.1",gre="parser.cc.2",vre="parser.cc.3",pre="parser.cc.5",mre="parser.cc.6",kre="parser.cc.7",yre="parser.cc.8",Mre="parser.ope.1",Tre="parser.ope.2",jre="parser.ope.3",Ere="parser.descape.1",Sre="parser.descape.2",Pre="parser.descape.3",Cre="parser.descape.4",Ire="parser.descape.5",Ore="parser.process.1",Are="parser.quantifier.1",Lre="parser.quantifier.2",Nre="parser.quantifier.3",$re="parser.quantifier.4",Dre="parser.quantifier.5",xre="org.eclipse.emf.common.notify",Rre={424:1,686:1},Kre={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1},Fre={378:1,152:1},_re="index=",Bre={3:1,4:1,5:1,129:1},Hre={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,61:1},Ure={3:1,6:1,4:1,5:1,198:1},Gre={3:1,4:1,5:1,173:1,379:1},qre=";/?:@&=+$,",Xre="invalid authority: ",Vre="EAnnotation",zre="ETypedElement",Wre="EStructuralFeature",Qre="EAttribute",Jre="EClassifier",Yre="EEnumLiteral",Zre="EGenericType",nie="EOperation",eie="EParameter",tie="EReference",rie="ETypeParameter",iie="org.eclipse.emf.ecore.util",aie={79:1},cie={3:1,20:1,16:1,15:1,61:1,597:1,79:1,71:1,97:1},uie="org.eclipse.emf.ecore.util.FeatureMap$Entry",sie=8192,oie=2048,fie="byte",hie="char",lie="double",bie="float",wie="int",die="long",gie="short",vie="java.lang.Object",pie={3:1,4:1,5:1,254:1},mie={3:1,4:1,5:1,688:1},kie={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,71:1},yie={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,71:1,97:1},Mie="mixed",Tie="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",jie="kind",Eie={3:1,4:1,5:1,689:1},Sie={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,79:1,71:1,97:1},Pie={20:1,31:1,56:1,16:1,15:1,61:1,71:1},Cie={51:1,128:1,287:1},Iie={76:1,343:1},Oie="The value of type '",Aie="' must be of type '",Lie=1352,Nie="http://www.eclipse.org/emf/2002/Ecore",$ie=-32768,Die="constraints",xie="baseType",Rie="getEStructuralFeature",Kie="getFeatureID",Fie="feature",_ie="getOperationID",Bie="operation",Hie="defaultValue",Uie="eTypeParameters",Gie="isInstance",qie="getEEnumLiteral",Xie="eContainingClass",Vie={57:1},zie={3:1,4:1,5:1,124:1},Wie="org.eclipse.emf.ecore.resource",Qie={94:1,93:1,599:1,2034:1},Jie="org.eclipse.emf.ecore.resource.impl",Yie="unspecified",Zie="simple",nae="attribute",eae="attributeWildcard",tae="element",rae="elementWildcard",iae="collapse",aae="itemType",cae="namespace",uae="##targetNamespace",sae="whiteSpace",oae="wildcards",fae="http://www.eclipse.org/emf/2003/XMLType",hae="##any",lae="uninitialized",bae="The multiplicity constraint is violated",wae="org.eclipse.emf.ecore.xml.type",dae="ProcessingInstruction",gae="SimpleAnyType",vae="XMLTypeDocumentRoot",pae="org.eclipse.emf.ecore.xml.type.impl",mae="INF",kae="processing",yae="ENTITIES_._base",Mae="minLength",Tae="ENTITY",jae="NCName",Eae="IDREFS_._base",Sae="integer",Pae="token",Cae="pattern",Iae="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",Oae="\\i\\c*",Aae="[\\i-[:]][\\c-[:]]*",Lae="nonPositiveInteger",Nae="maxInclusive",$ae="NMTOKEN",Dae="NMTOKENS_._base",xae="nonNegativeInteger",Rae="minInclusive",Kae="normalizedString",Fae="unsignedByte",_ae="unsignedInt",Bae="18446744073709551615",Hae="unsignedShort",Uae="processingInstruction",Gae="org.eclipse.emf.ecore.xml.type.internal",qae=1114111,Xae="Internal Error: shorthands: \\u",Vae="xml:isDigit",zae="xml:isWord",Wae="xml:isSpace",Qae="xml:isNameChar",Jae="xml:isInitialNameChar",Yae="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",Zae="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",nce="Private Use",ece="ASSIGNED",tce="\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\ufeff\ufeff＀￯",rce="UNASSIGNED",ice={3:1,122:1},ace="org.eclipse.emf.ecore.xml.type.util",cce={3:1,4:1,5:1,381:1},uce="org.eclipse.xtext.xbase.lib",sce="Cannot add elements to a Range",oce="Cannot set elements in a Range",fce="Cannot remove elements from a Range",hce="user.agent";var lce,bce,wce,dce=-1;t.goog=t.goog||{};t.goog.global=t.goog.global||t;bce={};wDn(1,null,{},o);lce.Fb=function n(e){return AL(this,e)};lce.Gb=function n(){return this.Rm};lce.Hb=function n(){return Bx(this)};lce.Ib=function n(){var e;return $j(Cbn(this))+"@"+(e=Vun(this)>>>0,e.toString(16))};lce.equals=function(n){return this.Fb(n)};lce.hashCode=function(){return this.Hb()};lce.toString=function(){return this.Ib()};var gce,vce,pce;wDn(297,1,{297:1,2124:1},$hn);lce.ve=function n(e){var t;t=new $hn;t.i=4;e>1?t.c=X0(this,e-1):t.c=this;return t};lce.we=function n(){jK(this);return this.b};lce.xe=function n(){return $j(this)};lce.ye=function n(){return jK(this),this.k};lce.ze=function n(){return(this.i&4)!=0};lce.Ae=function n(){return(this.i&1)!=0};lce.Ib=function n(){return fin(this)};lce.i=0;var mce=1;var kce=YW(mZn,"Object",1);var yce=YW(mZn,"Class",297);wDn(2096,1,kZn);var Mce=YW(yZn,"Optional",2096);wDn(1191,2096,kZn,f);lce.Fb=function n(e){return e===this};lce.Hb=function n(){return 2040732332};lce.Ib=function n(){return"Optional.absent()"};lce.Jb=function n(e){nQ(e);return yy(),Tce};var Tce;var jce=YW(yZn,"Absent",1191);wDn(636,1,{},GM);var Ece=YW(yZn,"Joiner",636);var Sce=$q(yZn,"Predicate");wDn(589,1,{178:1,589:1,3:1,46:1},Vl);lce.Mb=function n(e){return nln(this,e)};lce.Lb=function n(e){return nln(this,e)};lce.Fb=function n(e){var t;if(G$(e,589)){t=bG(e,589);return LDn(this.a,t.a)}return false};lce.Hb=function n(){return iln(this.a)+306654252};lce.Ib=function n(){return uAn(this.a)};var Pce=YW(yZn,"Predicates/AndPredicate",589);wDn(419,2096,{419:1,3:1},zl);lce.Fb=function n(e){var t;if(G$(e,419)){t=bG(e,419);return bdn(this.a,t.a)}return false};lce.Hb=function n(){return 1502476572+Vun(this.a)};lce.Ib=function n(){return PZn+this.a+")"};lce.Jb=function n(e){return new zl(pZ(e.Kb(this.a),"the Function passed to Optional.transform() must not return null."))};var Cce=YW(yZn,"Present",419);wDn(204,1,IZn);lce.Nb=function n(e){Az(this,e)};lce.Qb=function n(){qM()};var Ice=YW(OZn,"UnmodifiableIterator",204);wDn(2076,204,AZn);lce.Qb=function n(){qM()};lce.Rb=function n(e){throw dm(new Um)};lce.Wb=function n(e){throw dm(new Um)};var Oce=YW(OZn,"UnmodifiableListIterator",2076);wDn(399,2076,AZn);lce.Ob=function n(){return this.c0};lce.Pb=function n(){if(this.c>=this.d){throw dm(new Xm)}return this.Xb(this.c++)};lce.Tb=function n(){return this.c};lce.Ub=function n(){if(this.c<=0){throw dm(new Xm)}return this.Xb(--this.c)};lce.Vb=function n(){return this.c-1};lce.c=0;lce.d=0;var Ace=YW(OZn,"AbstractIndexedListIterator",399);wDn(713,204,IZn);lce.Ob=function n(){return lun(this)};lce.Pb=function n(){return Stn(this)};lce.e=1;var Lce=YW(OZn,"AbstractIterator",713);wDn(2084,1,{229:1});lce.Zb=function n(){var e;return e=this.f,!e?this.f=this.ac():e};lce.Fb=function n(e){return xln(this,e)};lce.Hb=function n(){return Vun(this.Zb())};lce.dc=function n(){return this.gc()==0};lce.ec=function n(){return EV(this)};lce.Ib=function n(){return fvn(this.Zb())};var Nce=YW(OZn,"AbstractMultimap",2084);wDn(742,2084,LZn);lce.$b=function n(){pcn(this)};lce._b=function n(e){return Ij(this,e)};lce.ac=function n(){return new DE(this,this.c)};lce.ic=function n(e){return this.hc()};lce.bc=function n(){return new HD(this,this.c)};lce.jc=function n(){return this.mc(this.hc())};lce.kc=function n(){return new Py(this)};lce.lc=function n(){return $Cn(this.c.vc().Nc(),new l,64,this.d)};lce.cc=function n(e){return r7(this,e)};lce.fc=function n(e){return cwn(this,e)};lce.gc=function n(){return this.d};lce.mc=function n(e){return dZ(),new Qw(e)};lce.nc=function n(){return new Sy(this)};lce.oc=function n(){return $Cn(this.c.Cc().Nc(),new h,64,this.d)};lce.pc=function n(e,t){return new x7(this,e,t,null)};lce.d=0;var $ce=YW(OZn,"AbstractMapBasedMultimap",742);wDn(1696,742,LZn);lce.hc=function n(){return new H7(this.a)};lce.jc=function n(){return dZ(),dZ(),lbe};lce.cc=function n(e){return bG(r7(this,e),15)};lce.fc=function n(e){return bG(cwn(this,e),15)};lce.Zb=function n(){return aZ(this)};lce.Fb=function n(e){return xln(this,e)};lce.qc=function n(e){return bG(r7(this,e),15)};lce.rc=function n(e){return bG(cwn(this,e),15)};lce.mc=function n(e){return AZ(bG(e,15))};lce.pc=function n(e,t){return A6(this,e,bG(t,15),null)};var Dce=YW(OZn,"AbstractListMultimap",1696);wDn(748,1,NZn);lce.Nb=function n(e){Az(this,e)};lce.Ob=function n(){return this.c.Ob()||this.e.Ob()};lce.Pb=function n(){var e;if(!this.e.Ob()){e=bG(this.c.Pb(),44);this.b=e.ld();this.a=bG(e.md(),16);this.e=this.a.Kc()}return this.sc(this.b,this.e.Pb())};lce.Qb=function n(){this.e.Qb();bG(aJ(this.a),16).dc()&&this.c.Qb();--this.d.d};var xce=YW(OZn,"AbstractMapBasedMultimap/Itr",748);wDn(1129,748,NZn,Sy);lce.sc=function n(e,t){return t};var Rce=YW(OZn,"AbstractMapBasedMultimap/1",1129);wDn(1130,1,{},h);lce.Kb=function n(e){return bG(e,16).Nc()};var Kce=YW(OZn,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1130);wDn(1131,748,NZn,Py);lce.sc=function n(e,t){return new GE(e,t)};var Fce=YW(OZn,"AbstractMapBasedMultimap/2",1131);var _ce=$q($Zn,"Map");wDn(2065,1,DZn);lce.wc=function n(e){ron(this,e)};lce.yc=function n(e,t,r){return tvn(this,e,t,r)};lce.$b=function n(){this.vc().$b()};lce.tc=function n(e){return wTn(this,e)};lce._b=function n(e){return!!CPn(this,e,false)};lce.uc=function n(e){var t,r,i;for(r=this.vc().Kc();r.Ob();){t=bG(r.Pb(),44);i=t.md();if(BA(e)===BA(i)||e!=null&&bdn(e,i)){return true}}return false};lce.Fb=function n(e){var t,r,i;if(e===this){return true}if(!G$(e,85)){return false}i=bG(e,85);if(this.gc()!=i.gc()){return false}for(r=i.vc().Kc();r.Ob();){t=bG(r.Pb(),44);if(!this.tc(t)){return false}}return true};lce.xc=function n(e){return _A(CPn(this,e,false))};lce.Hb=function n(){return chn(this.vc())};lce.dc=function n(){return this.gc()==0};lce.ec=function n(){return new Rw(this)};lce.zc=function n(e,t){throw dm(new CM("Put not supported on this map"))};lce.Ac=function n(e){Bsn(this,e)};lce.Bc=function n(e){return _A(CPn(this,e,true))};lce.gc=function n(){return this.vc().gc()};lce.Ib=function n(){return UPn(this)};lce.Cc=function n(){return new Gw(this)};var Bce=YW($Zn,"AbstractMap",2065);wDn(2085,2065,DZn);lce.bc=function n(){return new ZE(this)};lce.vc=function n(){return jV(this)};lce.ec=function n(){var e;e=this.g;return!e?this.g=this.bc():e};lce.Cc=function n(){var e;e=this.i;return!e?this.i=new YE(this):e};var Hce=YW(OZn,"Maps/ViewCachingAbstractMap",2085);wDn(402,2085,DZn,DE);lce.xc=function n(e){return win(this,e)};lce.Bc=function n(e){return hbn(this,e)};lce.$b=function n(){this.d==this.e.c?this.e.$b():Vq(new Wq(this))};lce._b=function n(e){return zwn(this.d,e)};lce.Ec=function n(){return new Wl(this)};lce.Dc=function(){return this.Ec()};lce.Fb=function n(e){return this===e||bdn(this.d,e)};lce.Hb=function n(){return Vun(this.d)};lce.ec=function n(){return this.e.ec()};lce.gc=function n(){return this.d.gc()};lce.Ib=function n(){return fvn(this.d)};var Uce=YW(OZn,"AbstractMapBasedMultimap/AsMap",402);var Gce=$q(mZn,"Iterable");wDn(31,1,xZn);lce.Jc=function n(e){Y8(this,e)};lce.Lc=function n(){return this.Oc()};lce.Nc=function n(){return new d3(this,0)};lce.Oc=function n(){return new gX(null,this.Nc())};lce.Fc=function n(e){throw dm(new CM("Add not supported on this collection"))};lce.Gc=function n(e){return esn(this,e)};lce.$b=function n(){lY(this)};lce.Hc=function n(e){return npn(this,e,false)};lce.Ic=function n(e){return Sfn(this,e)};lce.dc=function n(){return this.gc()==0};lce.Mc=function n(e){return npn(this,e,true)};lce.Pc=function n(){return AV(this)};lce.Qc=function n(e){return lTn(this,e)};lce.Ib=function n(){return jIn(this)};var qce=YW($Zn,"AbstractCollection",31);var Xce=$q($Zn,"Set");wDn(RZn,31,KZn);lce.Nc=function n(){return new d3(this,1)};lce.Fb=function n(e){return Gmn(this,e)};lce.Hb=function n(){return chn(this)};var Vce=YW($Zn,"AbstractSet",RZn);wDn(2068,RZn,KZn);var zce=YW(OZn,"Sets/ImprovedAbstractSet",2068);wDn(2069,2068,KZn);lce.$b=function n(){this.Rc().$b()};lce.Hc=function n(e){return xpn(this,e)};lce.dc=function n(){return this.Rc().dc()};lce.Mc=function n(e){var t;if(this.Hc(e)&&G$(e,44)){t=bG(e,44);return this.Rc().ec().Mc(t.ld())}return false};lce.gc=function n(){return this.Rc().gc()};var Wce=YW(OZn,"Maps/EntrySet",2069);wDn(1127,2069,KZn,Wl);lce.Hc=function n(e){return Wwn(this.a.d.vc(),e)};lce.Kc=function n(){return new Wq(this.a)};lce.Rc=function n(){return this.a};lce.Mc=function n(e){var t;if(!Wwn(this.a.d.vc(),e)){return false}t=bG(aJ(bG(e,44)),44);V9(this.a.e,t.ld());return true};lce.Nc=function n(){return tG(this.a.d.vc().Nc(),new Ql(this.a))};var Qce=YW(OZn,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1127);wDn(1128,1,{},Ql);lce.Kb=function n(e){return D9(this.a,bG(e,44))};var Jce=YW(OZn,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1128);wDn(746,1,NZn,Wq);lce.Nb=function n(e){Az(this,e)};lce.Pb=function n(){var e;return e=bG(this.b.Pb(),44),this.a=bG(e.md(),16),D9(this.c,e)};lce.Ob=function n(){return this.b.Ob()};lce.Qb=function n(){$B(!!this.a);this.b.Qb();this.c.e.d-=this.a.gc();this.a.$b();this.a=null};var Yce=YW(OZn,"AbstractMapBasedMultimap/AsMap/AsMapIterator",746);wDn(542,2068,KZn,ZE);lce.$b=function n(){this.b.$b()};lce.Hc=function n(e){return this.b._b(e)};lce.Jc=function n(e){nQ(e);this.b.wc(new kb(e))};lce.dc=function n(){return this.b.dc()};lce.Kc=function n(){return new Ky(this.b.vc().Kc())};lce.Mc=function n(e){if(this.b._b(e)){this.b.Bc(e);return true}return false};lce.gc=function n(){return this.b.gc()};var Zce=YW(OZn,"Maps/KeySet",542);wDn(327,542,KZn,HD);lce.$b=function n(){var e;Vq((e=this.b.vc().Kc(),new xE(this,e)))};lce.Ic=function n(e){return this.b.ec().Ic(e)};lce.Fb=function n(e){return this===e||bdn(this.b.ec(),e)};lce.Hb=function n(){return Vun(this.b.ec())};lce.Kc=function n(){var e;return e=this.b.vc().Kc(),new xE(this,e)};lce.Mc=function n(e){var t,r;r=0;t=bG(this.b.Bc(e),16);if(t){r=t.gc();t.$b();this.a.d-=r}return r>0};lce.Nc=function n(){return this.b.ec().Nc()};var nue=YW(OZn,"AbstractMapBasedMultimap/KeySet",327);wDn(747,1,NZn,xE);lce.Nb=function n(e){Az(this,e)};lce.Ob=function n(){return this.c.Ob()};lce.Pb=function n(){this.a=bG(this.c.Pb(),44);return this.a.ld()};lce.Qb=function n(){var e;$B(!!this.a);e=bG(this.a.md(),16);this.c.Qb();this.b.a.d-=e.gc();e.$b();this.a=null};var eue=YW(OZn,"AbstractMapBasedMultimap/KeySet/1",747);wDn(503,402,{85:1,133:1},KK);lce.bc=function n(){return this.Sc()};lce.ec=function n(){return this.Uc()};lce.Sc=function n(){return new SE(this.c,this.Wc())};lce.Tc=function n(){return this.Wc().Tc()};lce.Uc=function n(){var e;return e=this.b,!e?this.b=this.Sc():e};lce.Vc=function n(){return this.Wc().Vc()};lce.Wc=function n(){return bG(this.d,133)};var tue=YW(OZn,"AbstractMapBasedMultimap/SortedAsMap",503);wDn(446,503,FZn,FK);lce.bc=function n(){return new PE(this.a,bG(bG(this.d,133),139))};lce.Sc=function n(){return new PE(this.a,bG(bG(this.d,133),139))};lce.ec=function n(){var e;return e=this.b,bG(!e?this.b=new PE(this.a,bG(bG(this.d,133),139)):e,277)};lce.Uc=function n(){var e;return e=this.b,bG(!e?this.b=new PE(this.a,bG(bG(this.d,133),139)):e,277)};lce.Wc=function n(){return bG(bG(this.d,133),139)};lce.Xc=function n(e){return bG(bG(this.d,133),139).Xc(e)};lce.Yc=function n(e){return bG(bG(this.d,133),139).Yc(e)};lce.Zc=function n(e,t){return new FK(this.a,bG(bG(this.d,133),139).Zc(e,t))};lce.$c=function n(e){return bG(bG(this.d,133),139).$c(e)};lce._c=function n(e){return bG(bG(this.d,133),139)._c(e)};lce.ad=function n(e,t){return new FK(this.a,bG(bG(this.d,133),139).ad(e,t))};var rue=YW(OZn,"AbstractMapBasedMultimap/NavigableAsMap",446);wDn(502,327,_Zn,SE);lce.Nc=function n(){return this.b.ec().Nc()};var iue=YW(OZn,"AbstractMapBasedMultimap/SortedKeySet",502);wDn(401,502,BZn,PE);var aue=YW(OZn,"AbstractMapBasedMultimap/NavigableKeySet",401);wDn(551,31,xZn,x7);lce.Fc=function n(e){var t,r;pvn(this);r=this.d.dc();t=this.d.Fc(e);if(t){++this.f.d;r&&TF(this)}return t};lce.Gc=function n(e){var t,r,i;if(e.dc()){return false}i=(pvn(this),this.d.gc());t=this.d.Gc(e);if(t){r=this.d.gc();this.f.d+=r-i;i==0&&TF(this)}return t};lce.$b=function n(){var e;e=(pvn(this),this.d.gc());if(e==0){return}this.d.$b();this.f.d-=e;_X(this)};lce.Hc=function n(e){pvn(this);return this.d.Hc(e)};lce.Ic=function n(e){pvn(this);return this.d.Ic(e)};lce.Fb=function n(e){if(e===this){return true}pvn(this);return bdn(this.d,e)};lce.Hb=function n(){pvn(this);return Vun(this.d)};lce.Kc=function n(){pvn(this);return new nG(this)};lce.Mc=function n(e){var t;pvn(this);t=this.d.Mc(e);if(t){--this.f.d;_X(this)}return t};lce.gc=function n(){return QA(this)};lce.Nc=function n(){return pvn(this),this.d.Nc()};lce.Ib=function n(){pvn(this);return fvn(this.d)};var cue=YW(OZn,"AbstractMapBasedMultimap/WrappedCollection",551);var uue=$q($Zn,"List");wDn(744,551,{20:1,31:1,16:1,15:1},QV);lce.jd=function n(e){Run(this,e)};lce.Nc=function n(){return pvn(this),this.d.Nc()};lce.bd=function n(e,t){var r;pvn(this);r=this.d.dc();bG(this.d,15).bd(e,t);++this.a.d;r&&TF(this)};lce.cd=function n(e,t){var r,i,a;if(t.dc()){return false}a=(pvn(this),this.d.gc());r=bG(this.d,15).cd(e,t);if(r){i=this.d.gc();this.a.d+=i-a;a==0&&TF(this)}return r};lce.Xb=function n(e){pvn(this);return bG(this.d,15).Xb(e)};lce.dd=function n(e){pvn(this);return bG(this.d,15).dd(e)};lce.ed=function n(){pvn(this);return new t$(this)};lce.fd=function n(e){pvn(this);return new zY(this,e)};lce.gd=function n(e){var t;pvn(this);t=bG(this.d,15).gd(e);--this.a.d;_X(this);return t};lce.hd=function n(e,t){pvn(this);return bG(this.d,15).hd(e,t)};lce.kd=function n(e,t){pvn(this);return A6(this.a,this.e,bG(this.d,15).kd(e,t),!this.b?this:this.b)};var sue=YW(OZn,"AbstractMapBasedMultimap/WrappedList",744);wDn(1126,744,{20:1,31:1,16:1,15:1,59:1},rR);var oue=YW(OZn,"AbstractMapBasedMultimap/RandomAccessWrappedList",1126);wDn(628,1,NZn,nG);lce.Nb=function n(e){Az(this,e)};lce.Ob=function n(){GY(this);return this.b.Ob()};lce.Pb=function n(){GY(this);return this.b.Pb()};lce.Qb=function n(){YD(this)};var fue=YW(OZn,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",628);wDn(745,628,HZn,t$,zY);lce.Qb=function n(){YD(this)};lce.Rb=function n(e){var t;t=QA(this.a)==0;(GY(this),bG(this.b,128)).Rb(e);++this.a.a.d;t&&TF(this.a)};lce.Sb=function n(){return(GY(this),bG(this.b,128)).Sb()};lce.Tb=function n(){return(GY(this),bG(this.b,128)).Tb()};lce.Ub=function n(){return(GY(this),bG(this.b,128)).Ub()};lce.Vb=function n(){return(GY(this),bG(this.b,128)).Vb()};lce.Wb=function n(e){(GY(this),bG(this.b,128)).Wb(e)};var hue=YW(OZn,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",745);wDn(743,551,_Zn,xK);lce.Nc=function n(){return pvn(this),this.d.Nc()};var lue=YW(OZn,"AbstractMapBasedMultimap/WrappedSortedSet",743);wDn(1125,743,BZn,CN);var bue=YW(OZn,"AbstractMapBasedMultimap/WrappedNavigableSet",1125);wDn(1124,551,KZn,RK);lce.Nc=function n(){return pvn(this),this.d.Nc()};var wue=YW(OZn,"AbstractMapBasedMultimap/WrappedSet",1124);wDn(1133,1,{},l);lce.Kb=function n(e){return L7(bG(e,44))};var due=YW(OZn,"AbstractMapBasedMultimap/lambda$1$Type",1133);wDn(1132,1,{},nb);lce.Kb=function n(e){return new GE(this.a,e)};var gue=YW(OZn,"AbstractMapBasedMultimap/lambda$2$Type",1132);var vue=$q($Zn,"Map/Entry");wDn(358,1,UZn);lce.Fb=function n(e){var t;if(G$(e,44)){t=bG(e,44);return BQ(this.ld(),t.ld())&&BQ(this.md(),t.md())}return false};lce.Hb=function n(){var e,t;e=this.ld();t=this.md();return(e==null?0:Vun(e))^(t==null?0:Vun(t))};lce.nd=function n(e){throw dm(new Um)};lce.Ib=function n(){return this.ld()+"="+this.md()};var pue=YW(OZn,GZn,358);wDn(2086,31,xZn);lce.$b=function n(){this.od().$b()};lce.Hc=function n(e){var t;if(G$(e,44)){t=bG(e,44);return O4(this.od(),t.ld(),t.md())}return false};lce.Mc=function n(e){var t;if(G$(e,44)){t=bG(e,44);return A4(this.od(),t.ld(),t.md())}return false};lce.gc=function n(){return this.od().d};var mue=YW(OZn,"Multimaps/Entries",2086);wDn(749,2086,xZn,eb);lce.Kc=function n(){return this.a.kc()};lce.od=function n(){return this.a};lce.Nc=function n(){return this.a.lc()};var kue=YW(OZn,"AbstractMultimap/Entries",749);wDn(750,749,KZn,Cy);lce.Nc=function n(){return this.a.lc()};lce.Fb=function n(e){return DOn(this,e)};lce.Hb=function n(){return tsn(this)};var yue=YW(OZn,"AbstractMultimap/EntrySet",750);wDn(751,31,xZn,tb);lce.$b=function n(){this.a.$b()};lce.Hc=function n(e){return Qln(this.a,e)};lce.Kc=function n(){return this.a.nc()};lce.gc=function n(){return this.a.d};lce.Nc=function n(){return this.a.oc()};var Mue=YW(OZn,"AbstractMultimap/Values",751);wDn(2087,31,{849:1,20:1,31:1,16:1});lce.Jc=function n(e){nQ(e);bY(this).Jc(new Sb(e))};lce.Nc=function n(){var e;return e=bY(this).Nc(),$Cn(e,new k,64|e.yd()&1296,this.a.d)};lce.Fc=function n(e){VM();return true};lce.Gc=function n(e){return nQ(this),nQ(e),G$(e,552)?Z4(bG(e,849)):!e.dc()&&frn(this,e.Kc())};lce.Hc=function n(e){var t;return t=bG(Jwn(aZ(this.a),e),16),(!t?0:t.gc())>0};lce.Fb=function n(e){return axn(this,e)};lce.Hb=function n(){return Vun(bY(this))};lce.dc=function n(){return bY(this).dc()};lce.Mc=function n(e){return pNn(this,e,1)>0};lce.Ib=function n(){return fvn(bY(this))};var Tue=YW(OZn,"AbstractMultiset",2087);wDn(2089,2068,KZn);lce.$b=function n(){pcn(this.a.a)};lce.Hc=function n(e){var t,r;if(G$(e,504)){r=bG(e,425);if(bG(r.a.md(),16).gc()<=0){return false}t=A2(this.a,r.a.ld());return t==bG(r.a.md(),16).gc()}return false};lce.Mc=function n(e){var t,r,i,a;if(G$(e,504)){r=bG(e,425);t=r.a.ld();i=bG(r.a.md(),16).gc();if(i!=0){a=this.a;return mNn(a,t,i)}}return false};var jue=YW(OZn,"Multisets/EntrySet",2089);wDn(1139,2089,KZn,rb);lce.Kc=function n(){return new _y(jV(aZ(this.a.a)).Kc())};lce.gc=function n(){return aZ(this.a.a).gc()};var Eue=YW(OZn,"AbstractMultiset/EntrySet",1139);wDn(627,742,LZn);lce.hc=function n(){return this.pd()};lce.jc=function n(){return this.qd()};lce.cc=function n(e){return this.rd(e)};lce.fc=function n(e){return this.sd(e)};lce.Zb=function n(){var e;return e=this.f,!e?this.f=this.ac():e};lce.qd=function n(){return dZ(),dZ(),wbe};lce.Fb=function n(e){return xln(this,e)};lce.rd=function n(e){return bG(r7(this,e),21)};lce.sd=function n(e){return bG(cwn(this,e),21)};lce.mc=function n(e){return dZ(),new aT(bG(e,21))};lce.pc=function n(e,t){return new RK(this,e,bG(t,21))};var Sue=YW(OZn,"AbstractSetMultimap",627);wDn(1723,627,LZn);lce.hc=function n(){return new Vj(this.b)};lce.pd=function n(){return new Vj(this.b)};lce.jc=function n(){return zQ(new Vj(this.b))};lce.qd=function n(){return zQ(new Vj(this.b))};lce.cc=function n(e){return bG(bG(r7(this,e),21),87)};lce.rd=function n(e){return bG(bG(r7(this,e),21),87)};lce.fc=function n(e){return bG(bG(cwn(this,e),21),87)};lce.sd=function n(e){return bG(bG(cwn(this,e),21),87)};lce.mc=function n(e){return G$(e,277)?zQ(bG(e,277)):(dZ(),new Tx(bG(e,87)))};lce.Zb=function n(){var e;return e=this.f,!e?this.f=G$(this.c,139)?new FK(this,bG(this.c,139)):G$(this.c,133)?new KK(this,bG(this.c,133)):new DE(this,this.c):e};lce.pc=function n(e,t){return G$(t,277)?new CN(this,e,bG(t,277)):new xK(this,e,bG(t,87))};var Pue=YW(OZn,"AbstractSortedSetMultimap",1723);wDn(1724,1723,LZn);lce.Zb=function n(){var e;return e=this.f,bG(bG(!e?this.f=G$(this.c,139)?new FK(this,bG(this.c,139)):G$(this.c,133)?new KK(this,bG(this.c,133)):new DE(this,this.c):e,133),139)};lce.ec=function n(){var e;return e=this.i,bG(bG(!e?this.i=G$(this.c,139)?new PE(this,bG(this.c,139)):G$(this.c,133)?new SE(this,bG(this.c,133)):new HD(this,this.c):e,87),277)};lce.bc=function n(){return G$(this.c,139)?new PE(this,bG(this.c,139)):G$(this.c,133)?new SE(this,bG(this.c,133)):new HD(this,this.c)};var Cue=YW(OZn,"AbstractSortedKeySortedSetMultimap",1724);wDn(2109,1,{2046:1});lce.Fb=function n(e){return gSn(this,e)};lce.Hb=function n(){var e;return chn((e=this.g,!e?this.g=new ab(this):e))};lce.Ib=function n(){var e;return UPn((e=this.f,!e?this.f=new ZD(this):e))};var Iue=YW(OZn,"AbstractTable",2109);wDn(679,RZn,KZn,ab);lce.$b=function n(){zM()};lce.Hc=function n(e){var t,r;if(G$(e,479)){t=bG(e,697);r=bG(Jwn(XW(this.a),WA(t.c.e,t.b)),85);return!!r&&Wwn(r.vc(),new GE(WA(t.c.c,t.a),$7(t.c,t.b,t.a)))}return false};lce.Kc=function n(){return NZ(this.a)};lce.Mc=function n(e){var t,r;if(G$(e,479)){t=bG(e,697);r=bG(Jwn(XW(this.a),WA(t.c.e,t.b)),85);return!!r&&Qwn(r.vc(),new GE(WA(t.c.c,t.a),$7(t.c,t.b,t.a)))}return false};lce.gc=function n(){return Fq(this.a)};lce.Nc=function n(){return b6(this.a)};var Oue=YW(OZn,"AbstractTable/CellSet",679);wDn(2025,31,xZn,cb);lce.$b=function n(){zM()};lce.Hc=function n(e){return eCn(this.a,e)};lce.Kc=function n(){return $Z(this.a)};lce.gc=function n(){return Fq(this.a)};lce.Nc=function n(){return S4(this.a)};var Aue=YW(OZn,"AbstractTable/Values",2025);wDn(1697,1696,LZn);var Lue=YW(OZn,"ArrayListMultimapGwtSerializationDependencies",1697);wDn(520,1697,LZn,oT,R2);lce.hc=function n(){return new H7(this.a)};lce.a=0;var Nue=YW(OZn,"ArrayListMultimap",520);wDn(678,2109,{678:1,2046:1,3:1},g$n);var $ue=YW(OZn,"ArrayTable",678);wDn(2021,399,AZn,nx);lce.Xb=function n(e){return new Dhn(this.a,e)};var Due=YW(OZn,"ArrayTable/1",2021);wDn(2022,1,{},Jl);lce.td=function n(e){return new Dhn(this.a,e)};var xue=YW(OZn,"ArrayTable/1methodref$getCell$Type",2022);wDn(2110,1,{697:1});lce.Fb=function n(e){var t;if(e===this){return true}if(G$(e,479)){t=bG(e,697);return BQ(WA(this.c.e,this.b),WA(t.c.e,t.b))&&BQ(WA(this.c.c,this.a),WA(t.c.c,t.a))&&BQ($7(this.c,this.b,this.a),$7(t.c,t.b,t.a))}return false};lce.Hb=function n(){return Dbn(zfn(fT(kce,1),jZn,1,5,[WA(this.c.e,this.b),WA(this.c.c,this.a),$7(this.c,this.b,this.a)]))};lce.Ib=function n(){return"("+WA(this.c.e,this.b)+","+WA(this.c.c,this.a)+")="+$7(this.c,this.b,this.a)};var Rue=YW(OZn,"Tables/AbstractCell",2110);wDn(479,2110,{479:1,697:1},Dhn);lce.a=0;lce.b=0;lce.d=0;var Kue=YW(OZn,"ArrayTable/2",479);wDn(2024,1,{},Yl);lce.td=function n(e){return etn(this.a,e)};var Fue=YW(OZn,"ArrayTable/2methodref$getValue$Type",2024);wDn(2023,399,AZn,ex);lce.Xb=function n(e){return etn(this.a,e)};var _ue=YW(OZn,"ArrayTable/3",2023);wDn(2077,2065,DZn);lce.$b=function n(){Vq(this.kc())};lce.vc=function n(){return new mb(this)};lce.lc=function n(){return new PY(this.kc(),this.gc())};var Bue=YW(OZn,"Maps/IteratorBasedAbstractMap",2077);wDn(842,2077,DZn);lce.$b=function n(){throw dm(new Um)};lce._b=function n(e){return Oj(this.c,e)};lce.kc=function n(){return new tx(this,this.c.b.c.gc())};lce.lc=function n(){return _q(this.c.b.c.gc(),16,new Zl(this))};lce.xc=function n(e){var t;t=bG(nB(this.c,e),17);return!t?null:this.vd(t.a)};lce.dc=function n(){return this.c.b.c.dc()};lce.ec=function n(){return CV(this.c)};lce.zc=function n(e,t){var r;r=bG(nB(this.c,e),17);if(!r){throw dm(new jM(this.ud()+" "+e+" not in "+CV(this.c)))}return this.wd(r.a,t)};lce.Bc=function n(e){throw dm(new Um)};lce.gc=function n(){return this.c.b.c.gc()};var Hue=YW(OZn,"ArrayTable/ArrayMap",842);wDn(2020,1,{},Zl);lce.td=function n(e){return QW(this.a,e)};var Uue=YW(OZn,"ArrayTable/ArrayMap/0methodref$getEntry$Type",2020);wDn(2018,358,UZn,CE);lce.ld=function n(){return bR(this.a,this.b)};lce.md=function n(){return this.a.vd(this.b)};lce.nd=function n(e){return this.a.wd(this.b,e)};lce.b=0;var Gue=YW(OZn,"ArrayTable/ArrayMap/1",2018);wDn(2019,399,AZn,tx);lce.Xb=function n(e){return QW(this.a,e)};var que=YW(OZn,"ArrayTable/ArrayMap/2",2019);wDn(2017,842,DZn,Sz);lce.ud=function n(){return"Column"};lce.vd=function n(e){return $7(this.b,this.a,e)};lce.wd=function n(e,t){return Vfn(this.b,this.a,e,t)};lce.a=0;var Xue=YW(OZn,"ArrayTable/Row",2017);wDn(843,842,DZn,ZD);lce.vd=function n(e){return new Sz(this.a,e)};lce.zc=function n(e,t){return bG(t,85),WM()};lce.wd=function n(e,t){return bG(t,85),QM()};lce.ud=function n(){return"Row"};var Vue=YW(OZn,"ArrayTable/RowMap",843);wDn(1157,1,zZn,IE);lce.Ad=function n(e){return(this.a.yd()&-262&e)!=0};lce.yd=function n(){return this.a.yd()&-262};lce.zd=function n(){return this.a.zd()};lce.Nb=function n(e){this.a.Nb(new AE(e,this.b))};lce.Bd=function n(e){return this.a.Bd(new OE(e,this.b))};var zue=YW(OZn,"CollectSpliterators/1",1157);wDn(1158,1,WZn,OE);lce.Cd=function n(e){this.a.Cd(this.b.Kb(e))};var Wue=YW(OZn,"CollectSpliterators/1/lambda$0$Type",1158);wDn(1159,1,WZn,AE);lce.Cd=function n(e){this.a.Cd(this.b.Kb(e))};var Que=YW(OZn,"CollectSpliterators/1/lambda$1$Type",1159);wDn(1154,1,zZn,B_);lce.Ad=function n(e){return((16464|this.b)&e)!=0};lce.yd=function n(){return 16464|this.b};lce.zd=function n(){return this.a.zd()};lce.Nb=function n(e){this.a.Qe(new NE(e,this.c))};lce.Bd=function n(e){return this.a.Re(new LE(e,this.c))};lce.b=0;var Jue=YW(OZn,"CollectSpliterators/1WithCharacteristics",1154);wDn(1155,1,QZn,LE);lce.Dd=function n(e){this.a.Cd(this.b.td(e))};var Yue=YW(OZn,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1155);wDn(1156,1,QZn,NE);lce.Dd=function n(e){this.a.Cd(this.b.td(e))};var Zue=YW(OZn,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1156);wDn(1150,1,zZn);lce.Ad=function n(e){return(this.a&e)!=0};lce.yd=function n(){return this.a};lce.zd=function n(){!!this.e&&(this.b=y$(this.b,this.e.zd()));return y$(this.b,0)};lce.Nb=function n(e){if(this.e){this.e.Nb(e);this.e=null}this.c.Nb(new $E(this,e));this.b=0};lce.Bd=function n(e){while(true){if(!!this.e&&this.e.Bd(e)){VA(this.b,JZn)&&(this.b=Fgn(this.b,1));return true}else{this.e=null}if(!this.c.Bd(new ub(this))){return false}}};lce.a=0;lce.b=0;var nse=YW(OZn,"CollectSpliterators/FlatMapSpliterator",1150);wDn(1152,1,WZn,ub);lce.Cd=function n(e){P_(this.a,e)};var ese=YW(OZn,"CollectSpliterators/FlatMapSpliterator/lambda$0$Type",1152);wDn(1153,1,WZn,$E);lce.Cd=function n(e){gY(this.a,this.b,e)};var tse=YW(OZn,"CollectSpliterators/FlatMapSpliterator/lambda$1$Type",1153);wDn(1151,1150,zZn,C6);var rse=YW(OZn,"CollectSpliterators/FlatMapSpliteratorOfObject",1151);wDn(253,1,YZn);lce.Fd=function n(e){return this.Ed(bG(e,253))};lce.Ed=function n(e){var t;if(e==(Ty(),sse)){return 1}if(e==(My(),ase)){return-1}t=(QG(),_sn(this.a,e.a));if(t!=0){return t}return G$(this,526)==G$(e,526)?0:G$(this,526)?1:-1};lce.Id=function n(){return this.a};lce.Fb=function n(e){return MTn(this,e)};var ise=YW(OZn,"Cut",253);wDn(1823,253,YZn,Ey);lce.Ed=function n(e){return e==this?0:1};lce.Gd=function n(e){throw dm(new xm)};lce.Hd=function n(e){e.a+="+∞)"};lce.Id=function n(){throw dm(new EM(ZZn))};lce.Hb=function n(){return pS(),xmn(this)};lce.Jd=function n(e){return false};lce.Ib=function n(){return"+∞"};var ase;var cse=YW(OZn,"Cut/AboveAll",1823);wDn(526,253,{253:1,526:1,3:1,34:1},px);lce.Gd=function n(e){eL((e.a+="(",e),this.a)};lce.Hd=function n(e){IQ(eL(e,this.a),93)};lce.Hb=function n(){return~Vun(this.a)};lce.Jd=function n(e){return QG(),_sn(this.a,e)<0};lce.Ib=function n(){return"/"+this.a+"\\"};var use=YW(OZn,"Cut/AboveValue",526);wDn(1822,253,YZn,jy);lce.Ed=function n(e){return e==this?0:-1};lce.Gd=function n(e){e.a+="(-∞"};lce.Hd=function n(e){throw dm(new xm)};lce.Id=function n(){throw dm(new EM(ZZn))};lce.Hb=function n(){return pS(),xmn(this)};lce.Jd=function n(e){return true};lce.Ib=function n(){return"-∞"};var sse;var ose=YW(OZn,"Cut/BelowAll",1822);wDn(1824,253,YZn,mx);lce.Gd=function n(e){eL((e.a+="[",e),this.a)};lce.Hd=function n(e){IQ(eL(e,this.a),41)};lce.Hb=function n(){return Vun(this.a)};lce.Jd=function n(e){return QG(),_sn(this.a,e)<=0};lce.Ib=function n(){return"\\"+this.a+"/"};var fse=YW(OZn,"Cut/BelowValue",1824);wDn(547,1,n1n);lce.Jc=function n(e){Y8(this,e)};lce.Ib=function n(){return ogn(bG(pZ(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())};var hse=YW(OZn,"FluentIterable",547);wDn(442,547,n1n,sN);lce.Kc=function n(){return new GV(sx(this.a.Kc(),new d))};var lse=YW(OZn,"FluentIterable/2",442);wDn(1059,547,n1n,oN);lce.Kc=function n(){return Dz(this)};var bse=YW(OZn,"FluentIterable/3",1059);wDn(724,399,AZn,rx);lce.Xb=function n(e){return this.a[e].Kc()};var wse=YW(OZn,"FluentIterable/3/1",724);wDn(2070,1,{});lce.Ib=function n(){return fvn(this.Kd().b)};var dse=YW(OZn,"ForwardingObject",2070);wDn(2071,2070,e1n);lce.Kd=function n(){return this.Ld()};lce.Jc=function n(e){Y8(this,e)};lce.Lc=function n(){return this.Oc()};lce.Nc=function n(){return new d3(this,0)};lce.Oc=function n(){return new gX(null,this.Nc())};lce.Fc=function n(e){return this.Ld(),Hj()};lce.Gc=function n(e){return this.Ld(),Uj()};lce.$b=function n(){this.Ld(),Gj()};lce.Hc=function n(e){return this.Ld().Hc(e)};lce.Ic=function n(e){return this.Ld().Ic(e)};lce.dc=function n(){return this.Ld().b.dc()};lce.Kc=function n(){return this.Ld().Kc()};lce.Mc=function n(e){return this.Ld(),qj()};lce.gc=function n(){return this.Ld().b.gc()};lce.Pc=function n(){return this.Ld().Pc()};lce.Qc=function n(e){return this.Ld().Qc(e)};var gse=YW(OZn,"ForwardingCollection",2071);wDn(2078,31,t1n);lce.Kc=function n(){return this.Od()};lce.Fc=function n(e){throw dm(new Um)};lce.Gc=function n(e){throw dm(new Um)};lce.Md=function n(){var e;e=this.c;return!e?this.c=this.Nd():e};lce.$b=function n(){throw dm(new Um)};lce.Hc=function n(e){return e!=null&&npn(this,e,false)};lce.Nd=function n(){switch(this.gc()){case 0:return iQ(),iQ(),mse;case 1:return iQ(),new zq(nQ(this.Od().Pb()));default:return new Cz(this,this.Pc())}};lce.Mc=function n(e){throw dm(new Um)};var vse=YW(OZn,"ImmutableCollection",2078);wDn(727,2078,t1n,Im);lce.Kc=function n(){return Ien(this.a.Kc())};lce.Hc=function n(e){return e!=null&&this.a.Hc(e)};lce.Ic=function n(e){return this.a.Ic(e)};lce.dc=function n(){return this.a.dc()};lce.Od=function n(){return Ien(this.a.Kc())};lce.gc=function n(){return this.a.gc()};lce.Pc=function n(){return this.a.Pc()};lce.Qc=function n(e){return this.a.Qc(e)};lce.Ib=function n(){return fvn(this.a)};var pse=YW(OZn,"ForwardingImmutableCollection",727);wDn(307,2078,r1n);lce.Kc=function n(){return this.Od()};lce.ed=function n(){return this.Pd(0)};lce.fd=function n(e){return this.Pd(e)};lce.jd=function n(e){Run(this,e)};lce.Nc=function n(){return new d3(this,16)};lce.kd=function n(e,t){return this.Qd(e,t)};lce.bd=function n(e,t){throw dm(new Um)};lce.cd=function n(e,t){throw dm(new Um)};lce.Md=function n(){return this};lce.Fb=function n(e){return HDn(this,e)};lce.Hb=function n(){return Jon(this)};lce.dd=function n(e){return e==null?-1:bTn(this,e)};lce.Od=function n(){return this.Pd(0)};lce.Pd=function n(e){return lR(this,e)};lce.gd=function n(e){throw dm(new Um)};lce.hd=function n(e,t){throw dm(new Um)};lce.Qd=function n(e,t){var r;return _wn((r=new QE(this),new N2(r,e,t)))};var mse;var kse=YW(OZn,"ImmutableList",307);wDn(2105,307,r1n);lce.Kc=function n(){return Ien(this.Rd().Kc())};lce.kd=function n(e,t){return _wn(this.Rd().kd(e,t))};lce.Hc=function n(e){return e!=null&&this.Rd().Hc(e)};lce.Ic=function n(e){return this.Rd().Ic(e)};lce.Fb=function n(e){return bdn(this.Rd(),e)};lce.Xb=function n(e){return WA(this,e)};lce.Hb=function n(){return Vun(this.Rd())};lce.dd=function n(e){return this.Rd().dd(e)};lce.dc=function n(){return this.Rd().dc()};lce.Od=function n(){return Ien(this.Rd().Kc())};lce.gc=function n(){return this.Rd().gc()};lce.Qd=function n(e,t){return _wn(this.Rd().kd(e,t))};lce.Pc=function n(){return this.Rd().Qc($nn(kce,jZn,1,this.Rd().gc(),5,1))};lce.Qc=function n(e){return this.Rd().Qc(e)};lce.Ib=function n(){return fvn(this.Rd())};var yse=YW(OZn,"ForwardingImmutableList",2105);wDn(729,1,a1n);lce.vc=function n(){return PV(this)};lce.wc=function n(e){ron(this,e)};lce.ec=function n(){return CV(this)};lce.yc=function n(e,t,r){return tvn(this,e,t,r)};lce.Cc=function n(){return this.Vd()};lce.$b=function n(){throw dm(new Um)};lce._b=function n(e){return this.xc(e)!=null};lce.uc=function n(e){return this.Vd().Hc(e)};lce.Td=function n(){return new Om(this)};lce.Ud=function n(){return new Am(this)};lce.Fb=function n(e){return nbn(this,e)};lce.Hb=function n(){return PV(this).Hb()};lce.dc=function n(){return this.gc()==0};lce.zc=function n(e,t){return XM()};lce.Bc=function n(e){throw dm(new Um)};lce.Ib=function n(){return eOn(this)};lce.Vd=function n(){if(this.e){return this.e}return this.e=this.Ud()};lce.c=null;lce.d=null;lce.e=null;var Mse;var Tse=YW(OZn,"ImmutableMap",729);wDn(730,729,a1n);lce._b=function n(e){return Oj(this,e)};lce.uc=function n(e){return sS(this.b,e)};lce.Sd=function n(){return Fwn(new ib(this))};lce.Td=function n(){return Fwn(AJ(this.b))};lce.Ud=function n(){return wB(),new Im(IJ(this.b))};lce.Fb=function n(e){return oS(this.b,e)};lce.xc=function n(e){return nB(this,e)};lce.Hb=function n(){return Vun(this.b.c)};lce.dc=function n(){return this.b.c.dc()};lce.gc=function n(){return this.b.c.gc()};lce.Ib=function n(){return fvn(this.b.c)};var jse=YW(OZn,"ForwardingImmutableMap",730);wDn(2072,2071,c1n);lce.Kd=function n(){return this.Wd()};lce.Ld=function n(){return this.Wd()};lce.Nc=function n(){return new d3(this,1)};lce.Fb=function n(e){return e===this||this.Wd().Fb(e)};lce.Hb=function n(){return this.Wd().Hb()};var Ese=YW(OZn,"ForwardingSet",2072);wDn(1085,2072,c1n,ib);lce.Kd=function n(){return OJ(this.a.b)};lce.Ld=function n(){return OJ(this.a.b)};lce.Hc=function n(e){if(G$(e,44)&&bG(e,44).ld()==null){return false}try{return uS(OJ(this.a.b),e)}catch(t){t=Ofn(t);if(G$(t,212)){return false}else throw dm(t)}};lce.Wd=function n(){return OJ(this.a.b)};lce.Qc=function n(e){var t;t=r1(OJ(this.a.b),e);OJ(this.a.b).b.gc()=0?"+":"")+(i/60|0);r=GL(t.Math.abs(i)%60);return(fIn(),_be)[this.q.getDay()]+" "+Bbe[this.q.getMonth()]+" "+GL(this.q.getDate())+" "+GL(this.q.getHours())+":"+GL(this.q.getMinutes())+":"+GL(this.q.getSeconds())+" GMT"+e+r+" "+this.q.getFullYear()};var hhe=YW($Zn,"Date",206);wDn(2015,206,s0n,_En);lce.a=false;lce.b=0;lce.c=0;lce.d=0;lce.e=0;lce.f=0;lce.g=false;lce.i=0;lce.j=0;lce.k=0;lce.n=0;lce.o=0;lce.p=0;var lhe=YW("com.google.gwt.i18n.shared.impl","DateRecord",2015);wDn(2064,1,{});lce.pe=function n(){return null};lce.qe=function n(){return null};lce.re=function n(){return null};lce.se=function n(){return null};lce.te=function n(){return null};var bhe=YW(o0n,"JSONValue",2064);wDn(221,2064,{221:1},$b,Ob);lce.Fb=function n(e){if(!G$(e,221)){return false}return I3(this.a,bG(e,221).a)};lce.oe=function n(){return bm};lce.Hb=function n(){return DZ(this.a)};lce.pe=function n(){return this};lce.Ib=function n(){var e,t,r;r=new vx("[");for(t=0,e=this.a.length;t0&&(r.a+=",",r);eL(r,brn(this,t))}r.a+="]";return r.a};var whe=YW(o0n,"JSONArray",221);wDn(493,2064,{493:1},Ab);lce.oe=function n(){return wm};lce.qe=function n(){return this};lce.Ib=function n(){return Qx(),""+this.a};lce.a=false;var dhe,ghe;var vhe=YW(o0n,"JSONBoolean",493);wDn(997,63,E1n,Gy);var phe=YW(o0n,"JSONException",997);wDn(1036,2064,{},C);lce.oe=function n(){return gm};lce.Ib=function n(){return CZn};var mhe;var khe=YW(o0n,"JSONNull",1036);wDn(263,2064,{263:1},Lb);lce.Fb=function n(e){if(!G$(e,263)){return false}return this.a==bG(e,263).a};lce.oe=function n(){return hm};lce.Hb=function n(){return DL(this.a)};lce.re=function n(){return this};lce.Ib=function n(){return this.a+""};lce.a=0;var yhe=YW(o0n,"JSONNumber",263);wDn(190,2064,{190:1},qy,Nb);lce.Fb=function n(e){if(!G$(e,190)){return false}return I3(this.a,bG(e,190).a)};lce.oe=function n(){return lm};lce.Hb=function n(){return DZ(this.a)};lce.se=function n(){return this};lce.Ib=function n(){var e,t,r,i,a,c,u;u=new vx("{");e=true;c=rsn(this,$nn(vle,XZn,2,0,6,1));for(r=c,i=0,a=r.length;i=0?":"+this.c:"")+")"};lce.c=0;var gle=YW(mZn,"StackTraceElement",319);pce={3:1,484:1,34:1,2:1};var vle=YW(mZn,P1n,2);wDn(111,427,{484:1},YM,ZM,gx);var ple=YW(mZn,"StringBuffer",111);wDn(104,427,{484:1},nT,eT,vx);var mle=YW(mZn,"StringBuilder",104);wDn(702,77,p0n,tT);var kle=YW(mZn,"StringIndexOutOfBoundsException",702);wDn(2145,1,{});var yle;wDn(48,63,{3:1,103:1,63:1,82:1,48:1},Um,CM);var Mle=YW(mZn,"UnsupportedOperationException",48);wDn(247,242,{3:1,34:1,242:1,247:1},Odn,nE);lce.Fd=function n(e){return FGn(this,bG(e,247))};lce.ue=function n(){return rOn(mVn(this))};lce.Fb=function n(e){var t;if(this===e){return true}if(G$(e,247)){t=bG(e,247);return this.e==t.e&&FGn(this,t)==0}return false};lce.Hb=function n(){var e;if(this.b!=0){return this.b}if(this.a<54){e=Xon(this.f);this.b=MV(O3(e,-1));this.b=33*this.b+MV(O3(FV(e,32),-1));this.b=17*this.b+c0(this.e);return this.b}this.b=17*fwn(this.c)+c0(this.e);return this.b};lce.Ib=function n(){return mVn(this)};lce.a=0;lce.b=0;lce.d=0;lce.e=0;lce.f=0;var Tle,jle,Ele,Sle,Ple,Cle,Ile,Ole;var Ale=YW("java.math","BigDecimal",247);wDn(92,242,{3:1,34:1,242:1,92:1},i8,B3,Zz,akn,LN);lce.Fd=function n(e){return Lmn(this,bG(e,92))};lce.ue=function n(){return rOn(pYn(this,0))};lce.Fb=function n(e){return Nvn(this,e)};lce.Hb=function n(){return fwn(this)};lce.Ib=function n(){return pYn(this,0)};lce.b=-2;lce.c=0;lce.d=0;lce.e=0;var Lle,Nle,$le,Dle,xle,Rle;var Kle=YW("java.math","BigInteger",92);var Fle,_le;var Ble,Hle;wDn(498,2065,DZn);lce.$b=function n(){Fz(this)};lce._b=function n(e){return Lz(this,e)};lce.uc=function n(e){return ebn(this,e,this.i)||ebn(this,e,this.f)};lce.vc=function n(){return new Kw(this)};lce.xc=function n(e){return fQ(this,e)};lce.zc=function n(e,t){return jJ(this,e,t)};lce.Bc=function n(e){return b7(this,e)};lce.gc=function n(){return lS(this)};lce.g=0;var Ule=YW($Zn,"AbstractHashMap",498);wDn(267,RZn,KZn,Kw);lce.$b=function n(){this.a.$b()};lce.Hc=function n(e){return e6(this,e)};lce.Kc=function n(){return new pon(this.a)};lce.Mc=function n(e){var t;if(e6(this,e)){t=bG(e,44).ld();this.a.Bc(t);return true}return false};lce.gc=function n(){return this.a.gc()};var Gle=YW($Zn,"AbstractHashMap/EntrySet",267);wDn(268,1,NZn,pon);lce.Nb=function n(e){Az(this,e)};lce.Pb=function n(){return jun(this)};lce.Ob=function n(){return this.b};lce.Qb=function n(){Dtn(this)};lce.b=false;lce.d=0;var qle=YW($Zn,"AbstractHashMap/EntrySetIterator",268);wDn(426,1,NZn,td);lce.Nb=function n(e){Az(this,e)};lce.Ob=function n(){return xP(this)};lce.Pb=function n(){return qY(this)};lce.Qb=function n(){RQ(this)};lce.b=0;lce.c=-1;var Xle=YW($Zn,"AbstractList/IteratorImpl",426);wDn(98,426,HZn,K4);lce.Qb=function n(){RQ(this)};lce.Rb=function n(e){MF(this,e)};lce.Sb=function n(){return this.b>0};lce.Tb=function n(){return this.b};lce.Ub=function n(){return PK(this.b>0),this.a.Xb(this.c=--this.b)};lce.Vb=function n(){return this.b-1};lce.Wb=function n(e){CK(this.c!=-1);this.a.hd(this.c,e)};var Vle=YW($Zn,"AbstractList/ListIteratorImpl",98);wDn(244,56,v1n,N2);lce.bd=function n(e,t){l3(e,this.b);this.c.bd(this.a+e,t);++this.b};lce.Xb=function n(e){b3(e,this.b);return this.c.Xb(this.a+e)};lce.gd=function n(e){var t;b3(e,this.b);t=this.c.gd(this.a+e);--this.b;return t};lce.hd=function n(e,t){b3(e,this.b);return this.c.hd(this.a+e,t)};lce.gc=function n(){return this.b};lce.a=0;lce.b=0;var zle=YW($Zn,"AbstractList/SubList",244);wDn(266,RZn,KZn,Rw);lce.$b=function n(){this.a.$b()};lce.Hc=function n(e){return this.a._b(e)};lce.Kc=function n(){var e;return e=this.a.vc().Kc(),new Uw(e)};lce.Mc=function n(e){if(this.a._b(e)){this.a.Bc(e);return true}return false};lce.gc=function n(){return this.a.gc()};var Wle=YW($Zn,"AbstractMap/1",266);wDn(541,1,NZn,Uw);lce.Nb=function n(e){Az(this,e)};lce.Ob=function n(){return this.a.Ob()};lce.Pb=function n(){var e;return e=bG(this.a.Pb(),44),e.ld()};lce.Qb=function n(){this.a.Qb()};var Qle=YW($Zn,"AbstractMap/1/1",541);wDn(231,31,xZn,Gw);lce.$b=function n(){this.a.$b()};lce.Hc=function n(e){return this.a.uc(e)};lce.Kc=function n(){var e;return e=this.a.vc().Kc(),new qw(e)};lce.gc=function n(){return this.a.gc()};var Jle=YW($Zn,"AbstractMap/2",231);wDn(301,1,NZn,qw);lce.Nb=function n(e){Az(this,e)};lce.Ob=function n(){return this.a.Ob()};lce.Pb=function n(){var e;return e=bG(this.a.Pb(),44),e.md()};lce.Qb=function n(){this.a.Qb()};var Yle=YW($Zn,"AbstractMap/2/1",301);wDn(494,1,{494:1,44:1});lce.Fb=function n(e){var t;if(!G$(e,44)){return false}t=bG(e,44);return DJ(this.d,t.ld())&&DJ(this.e,t.md())};lce.ld=function n(){return this.d};lce.md=function n(){return this.e};lce.Hb=function n(){return ZN(this.d)^ZN(this.e)};lce.nd=function n(e){return mF(this,e)};lce.Ib=function n(){return this.d+"="+this.e};var Zle=YW($Zn,"AbstractMap/AbstractEntry",494);wDn(397,494,{494:1,397:1,44:1},ZP);var nbe=YW($Zn,"AbstractMap/SimpleEntry",397);wDn(2082,1,N0n);lce.Fb=function n(e){var t;if(!G$(e,44)){return false}t=bG(e,44);return DJ(this.ld(),t.ld())&&DJ(this.md(),t.md())};lce.Hb=function n(){return ZN(this.ld())^ZN(this.md())};lce.Ib=function n(){return this.ld()+"="+this.md()};var ebe=YW($Zn,GZn,2082);wDn(2090,2065,FZn);lce.Xc=function n(e){return Aj(this.Ee(e))};lce.tc=function n(e){return $9(this,e)};lce._b=function n(e){return kF(this,e)};lce.vc=function n(){return new zw(this)};lce.Tc=function n(){return _z(this.Ge())};lce.Yc=function n(e){return Aj(this.He(e))};lce.xc=function n(e){var t;t=e;return _A(this.Fe(t))};lce.$c=function n(e){return Aj(this.Ie(e))};lce.ec=function n(){return new Xw(this)};lce.Vc=function n(){return _z(this.Je())};lce._c=function n(e){return Aj(this.Ke(e))};var tbe=YW($Zn,"AbstractNavigableMap",2090);wDn(629,RZn,KZn,zw);lce.Hc=function n(e){return G$(e,44)&&$9(this.b,bG(e,44))};lce.Kc=function n(){return this.b.De()};lce.Mc=function n(e){var t;if(G$(e,44)){t=bG(e,44);return this.b.Le(t)}return false};lce.gc=function n(){return this.b.gc()};var rbe=YW($Zn,"AbstractNavigableMap/EntrySet",629);wDn(1146,RZn,BZn,Xw);lce.Nc=function n(){return new WP(this)};lce.$b=function n(){this.a.$b()};lce.Hc=function n(e){return kF(this.a,e)};lce.Kc=function n(){var e;e=this.a.vc().b.De();return new Vw(e)};lce.Mc=function n(e){if(kF(this.a,e)){this.a.Bc(e);return true}return false};lce.gc=function n(){return this.a.gc()};var ibe=YW($Zn,"AbstractNavigableMap/NavigableKeySet",1146);wDn(1147,1,NZn,Vw);lce.Nb=function n(e){Az(this,e)};lce.Ob=function n(){return xP(this.a.a)};lce.Pb=function n(){var e;e=ER(this.a);return e.ld()};lce.Qb=function n(){oB(this.a)};var abe=YW($Zn,"AbstractNavigableMap/NavigableKeySet/1",1147);wDn(2103,31,xZn);lce.Fc=function n(e){return EG(qCn(this,e),$0n),true};lce.Gc=function n(e){cJ(e);jG(e!=this,"Can't add a queue to itself");return esn(this,e)};lce.$b=function n(){while(drn(this)!=null);};var cbe=YW($Zn,"AbstractQueue",2103);wDn(310,31,{4:1,20:1,31:1,16:1},KD,F4);lce.Fc=function n(e){return D6(this,e),true};lce.$b=function n(){Q5(this)};lce.Hc=function n(e){return Nfn(new JJ(this),e)};lce.dc=function n(){return RM(this)};lce.Kc=function n(){return new JJ(this)};lce.Mc=function n(e){return T0(new JJ(this),e)};lce.gc=function n(){return this.c-this.b&this.a.length-1};lce.Nc=function n(){return new d3(this,272)};lce.Qc=function n(e){var t;t=this.c-this.b&this.a.length-1;e.lengtht&&bQ(e,t,null);return e};lce.b=0;lce.c=0;var ube=YW($Zn,"ArrayDeque",310);wDn(459,1,NZn,JJ);lce.Nb=function n(e){Az(this,e)};lce.Ob=function n(){return this.a!=this.b};lce.Pb=function n(){return own(this)};lce.Qb=function n(){vcn(this)};lce.a=0;lce.b=0;lce.c=-1;var sbe=YW($Zn,"ArrayDeque/IteratorImpl",459);wDn(13,56,D0n,im,H7,iB);lce.bd=function n(e,t){WX(this,e,t)};lce.Fc=function n(e){return ED(this,e)};lce.cd=function n(e,t){return Nbn(this,e,t)};lce.Gc=function n(e){return Dfn(this,e)};lce.$b=function n(){Jm(this.c,0)};lce.Hc=function n(e){return Ctn(this,e,0)!=-1};lce.Jc=function n(e){Lin(this,e)};lce.Xb=function n(e){return Yq(this,e)};lce.dd=function n(e){return Ctn(this,e,0)};lce.dc=function n(){return this.c.length==0};lce.Kc=function n(){return new nd(this)};lce.gd=function n(e){return s7(this,e)};lce.Mc=function n(e){return Ttn(this,e)};lce.ce=function n(e,t){L2(this,e,t)};lce.hd=function n(e,t){return r9(this,e,t)};lce.gc=function n(){return this.c.length};lce.jd=function n(e){g$(this,e)};lce.Pc=function n(){return cq(this.c)};lce.Qc=function n(e){return Okn(this,e)};var obe=YW($Zn,"ArrayList",13);wDn(7,1,NZn,nd);lce.Nb=function n(e){Az(this,e)};lce.Ob=function n(){return v$(this)};lce.Pb=function n(){return K3(this)};lce.Qb=function n(){cW(this)};lce.a=0;lce.b=-1;var fbe=YW($Zn,"ArrayList/1",7);wDn(2112,t.Function,{},L);lce.Me=function n(e,t){return bgn(e,t)};wDn(151,56,x0n,$M);lce.Hc=function n(e){return ycn(this,e)!=-1};lce.Jc=function n(e){var t,r,i,a;cJ(e);for(r=this.a,i=0,a=r.length;i0){throw dm(new jM(J0n+e+" greater than "+this.e))}return this.f.Te()?W1(this.c,this.b,this.a,e,t):K2(this.c,e,t)};lce.zc=function n(e,t){if(!vjn(this.c,this.f,e,this.b,this.a,this.e,this.d)){throw dm(new jM(e+" outside the range "+this.b+" to "+this.e))}return Bhn(this.c,e,t)};lce.Bc=function n(e){var t;t=e;if(!vjn(this.c,this.f,t,this.b,this.a,this.e,this.d)){return null}return Z1(this.c,t)};lce.Le=function n(e){return FQ(this,e.ld())&&Rnn(this.c,e)};lce.gc=function n(){var e,t,r;this.f.Te()?this.a?t=imn(this.c,this.b,true):t=imn(this.c,this.b,false):t=rtn(this.c);if(!(!!t&&FQ(this,t.d)?t:null)){return 0}e=0;for(r=new ksn(this.c,this.f,this.b,this.a,this.e,this.d);xP(r.a);r.b=bG(qY(r.a),44)){++e}return e};lce.ad=function n(e,t){if(this.f.Te()&&this.c.a.Ne(e,this.b)<0){throw dm(new jM(J0n+e+Y0n+this.b))}return this.f.Ue()?W1(this.c,e,t,this.e,this.d):F2(this.c,e,t)};lce.a=false;lce.d=false;var tde=YW($Zn,"TreeMap/SubMap",631);wDn(304,22,Z0n,QP);lce.Te=function n(){return false};lce.Ue=function n(){return false};var rde,ide,ade,cde;var ude=qan($Zn,"TreeMap/SubMapType",304,joe,U6,dB);wDn(1143,304,Z0n,AN);lce.Ue=function n(){return true};var sde=qan($Zn,"TreeMap/SubMapType/1",1143,ude,null,null);wDn(1144,304,Z0n,L$);lce.Te=function n(){return true};lce.Ue=function n(){return true};var ode=qan($Zn,"TreeMap/SubMapType/2",1144,ude,null,null);wDn(1145,304,Z0n,ON);lce.Te=function n(){return true};var fde=qan($Zn,"TreeMap/SubMapType/3",1145,ude,null,null);var hde;wDn(157,RZn,{3:1,20:1,31:1,16:1,277:1,21:1,87:1,157:1},ok,Vj,ld);lce.Nc=function n(){return new WP(this)};lce.Fc=function n(e){return qz(this,e)};lce.$b=function n(){this.a.$b()};lce.Hc=function n(e){return this.a._b(e)};lce.Kc=function n(){return this.a.ec().Kc()};lce.Mc=function n(e){return wD(this,e)};lce.gc=function n(){return this.a.gc()};var lde=YW($Zn,"TreeSet",157);wDn(1082,1,{},bd);lce.Ve=function n(e,t){return qK(this.a,e,t)};var bde=YW(n2n,"BinaryOperator/lambda$0$Type",1082);wDn(1083,1,{},wd);lce.Ve=function n(e,t){return XK(this.a,e,t)};var wde=YW(n2n,"BinaryOperator/lambda$1$Type",1083);wDn(952,1,{},V);lce.Kb=function n(e){return e};var dde=YW(n2n,"Function/lambda$0$Type",952);wDn(395,1,k1n,dd);lce.Mb=function n(e){return!this.a.Mb(e)};var gde=YW(n2n,"Predicate/lambda$2$Type",395);wDn(581,1,{581:1});var vde=YW(e2n,"Handler",581);wDn(2107,1,kZn);lce.xe=function n(){return"DUMMY"};lce.Ib=function n(){return this.xe()};var pde;var mde=YW(e2n,"Level",2107);wDn(1706,2107,kZn,z);lce.xe=function n(){return"INFO"};var kde=YW(e2n,"Level/LevelInfo",1706);wDn(1843,1,{},sk);var yde;var Mde=YW(e2n,"LogManager",1843);wDn(1896,1,kZn,sB);lce.b=null;var Tde=YW(e2n,"LogRecord",1896);wDn(525,1,{525:1},u9);lce.e=false;var jde=false,Ede=false,Sde=false,Pde=false,Cde=false;var Ide=YW(e2n,"Logger",525);wDn(835,581,{581:1},W);var Ode=YW(e2n,"SimpleConsoleLogHandler",835);wDn(108,22,{3:1,34:1,22:1,108:1},JP);var Ade,Lde,Nde;var $de=qan(i2n,"Collector/Characteristics",108,joe,_2,gB);var Dde;wDn(758,1,{},nW);var xde=YW(i2n,"CollectorImpl",758);wDn(1074,1,{},Q);lce.Ve=function n(e,t){return sdn(bG(e,213),bG(t,213))};var Rde=YW(i2n,"Collectors/10methodref$merge$Type",1074);wDn(1075,1,{},J);lce.Kb=function n(e){return H4(bG(e,213))};var Kde=YW(i2n,"Collectors/11methodref$toString$Type",1075);wDn(1076,1,{},gd);lce.Kb=function n(e){return Qx(),$L(e)?true:false};var Fde=YW(i2n,"Collectors/12methodref$test$Type",1076);wDn(144,1,{},Y);lce.Yd=function n(e,t){bG(e,16).Fc(t)};var _de=YW(i2n,"Collectors/20methodref$add$Type",144);wDn(146,1,{},Z);lce.Xe=function n(){return new im};var Bde=YW(i2n,"Collectors/21methodref$ctor$Type",146);wDn(359,1,{},nn);lce.Xe=function n(){return new uk};var Hde=YW(i2n,"Collectors/23methodref$ctor$Type",359);wDn(360,1,{},en);lce.Yd=function n(e,t){Gz(bG(e,49),t)};var Ude=YW(i2n,"Collectors/24methodref$add$Type",360);wDn(1069,1,{},tn);lce.Ve=function n(e,t){return $S(bG(e,15),bG(t,16))};var Gde=YW(i2n,"Collectors/4methodref$addAll$Type",1069);wDn(1073,1,{},rn);lce.Yd=function n(e,t){l7(bG(e,213),bG(t,484))};var qde=YW(i2n,"Collectors/9methodref$add$Type",1073);wDn(1072,1,{},gG);lce.Xe=function n(){return new rfn(this.a,this.b,this.c)};var Xde=YW(i2n,"Collectors/lambda$15$Type",1072);wDn(1077,1,{},an);lce.Xe=function n(){var e;return e=new b8,xkn(e,(Qx(),false),new im),xkn(e,true,new im),e};var Vde=YW(i2n,"Collectors/lambda$22$Type",1077);wDn(1078,1,{},vd);lce.Xe=function n(){return zfn(fT(kce,1),jZn,1,5,[this.a])};var zde=YW(i2n,"Collectors/lambda$25$Type",1078);wDn(1079,1,{},pd);lce.Yd=function n(e,t){rX(this.a,Uan(e))};var Wde=YW(i2n,"Collectors/lambda$26$Type",1079);wDn(1080,1,{},md);lce.Ve=function n(e,t){return wz(this.a,Uan(e),Uan(t))};var Qde=YW(i2n,"Collectors/lambda$27$Type",1080);wDn(1081,1,{},cn);lce.Kb=function n(e){return Uan(e)[0]};var Jde=YW(i2n,"Collectors/lambda$28$Type",1081);wDn(728,1,{},un);lce.Ve=function n(e,t){return aX(e,t)};var Yde=YW(i2n,"Collectors/lambda$4$Type",728);wDn(145,1,{},sn);lce.Ve=function n(e,t){return OS(bG(e,16),bG(t,16))};var Zde=YW(i2n,"Collectors/lambda$42$Type",145);wDn(361,1,{},on);lce.Ve=function n(e,t){return AS(bG(e,49),bG(t,49))};var nge=YW(i2n,"Collectors/lambda$50$Type",361);wDn(362,1,{},fn);lce.Kb=function n(e){return bG(e,49)};var ege=YW(i2n,"Collectors/lambda$51$Type",362);wDn(1068,1,{},kd);lce.Yd=function n(e,t){jln(this.a,bG(e,85),t)};var tge=YW(i2n,"Collectors/lambda$7$Type",1068);wDn(1070,1,{},hn);lce.Ve=function n(e,t){return xfn(bG(e,85),bG(t,85),new tn)};var rge=YW(i2n,"Collectors/lambda$8$Type",1070);wDn(1071,1,{},yd);lce.Kb=function n(e){return Ygn(this.a,bG(e,85))};var ige=YW(i2n,"Collectors/lambda$9$Type",1071);wDn(550,1,{});lce.$e=function n(){QQ(this)};lce.d=false;var age=YW(i2n,"TerminatableStream",550);wDn(827,550,a2n,$K);lce.$e=function n(){QQ(this)};var cge=YW(i2n,"DoubleStreamImpl",827);wDn(1847,736,zZn,vG);lce.Re=function n(e){return GMn(this,bG(e,189))};lce.a=null;var uge=YW(i2n,"DoubleStreamImpl/2",1847);wDn(1848,1,F0n,Md);lce.Pe=function n(e){FN(this.a,e)};var sge=YW(i2n,"DoubleStreamImpl/2/lambda$0$Type",1848);wDn(1845,1,F0n,Td);lce.Pe=function n(e){KN(this.a,e)};var oge=YW(i2n,"DoubleStreamImpl/lambda$0$Type",1845);wDn(1846,1,F0n,jd);lce.Pe=function n(e){Ppn(this.a,e)};var fge=YW(i2n,"DoubleStreamImpl/lambda$2$Type",1846);wDn(1397,735,zZn,s9);lce.Re=function n(e){return u6(this,bG(e,202))};lce.a=0;lce.b=0;lce.c=0;var hge=YW(i2n,"IntStream/5",1397);wDn(806,550,a2n,DK);lce.$e=function n(){QQ(this)};lce._e=function n(){return WQ(this),this.a};var lge=YW(i2n,"IntStreamImpl",806);wDn(807,550,a2n,TS);lce.$e=function n(){QQ(this)};lce._e=function n(){return WQ(this),XD(),qwe};var bge=YW(i2n,"IntStreamImpl/Empty",807);wDn(1687,1,QZn,Ed);lce.Dd=function n(e){Ton(this.a,e)};var wge=YW(i2n,"IntStreamImpl/lambda$4$Type",1687);var dge=$q(i2n,"Stream");wDn(26,550,{533:1,687:1,848:1},gX);lce.$e=function n(){QQ(this)};var gge;var vge=YW(i2n,"StreamImpl",26);wDn(1102,500,zZn,__);lce.Bd=function n(e){while(Cen(this)){if(this.a.Bd(e)){return true}else{QQ(this.b);this.b=null;this.a=null}}return false};var pge=YW(i2n,"StreamImpl/1",1102);wDn(1103,1,WZn,Sd);lce.Cd=function n(e){TG(this.a,bG(e,848))};var mge=YW(i2n,"StreamImpl/1/lambda$0$Type",1103);wDn(1104,1,k1n,Pd);lce.Mb=function n(e){return Gz(this.a,e)};var kge=YW(i2n,"StreamImpl/1methodref$add$Type",1104);wDn(1105,500,zZn,eZ);lce.Bd=function n(e){var t;if(!this.a){t=new im;this.b.a.Nb(new Cd(t));dZ();g$(t,this.c);this.a=new d3(t,16)}return bin(this.a,e)};lce.a=null;var yge=YW(i2n,"StreamImpl/5",1105);wDn(1106,1,WZn,Cd);lce.Cd=function n(e){ED(this.a,e)};var Mge=YW(i2n,"StreamImpl/5/2methodref$add$Type",1106);wDn(737,500,zZn,stn);lce.Bd=function n(e){this.b=false;while(!this.b&&this.c.Bd(new nC(this,e)));return this.b};lce.b=false;var Tge=YW(i2n,"StreamImpl/FilterSpliterator",737);wDn(1096,1,WZn,nC);lce.Cd=function n(e){JV(this.a,this.b,e)};var jge=YW(i2n,"StreamImpl/FilterSpliterator/lambda$0$Type",1096);wDn(1091,736,zZn,w7);lce.Re=function n(e){return j_(this,bG(e,189))};var Ege=YW(i2n,"StreamImpl/MapToDoubleSpliterator",1091);wDn(1095,1,WZn,eC);lce.Cd=function n(e){jC(this.a,this.b,e)};var Sge=YW(i2n,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1095);wDn(1090,735,zZn,d7);lce.Re=function n(e){return E_(this,bG(e,202))};var Pge=YW(i2n,"StreamImpl/MapToIntSpliterator",1090);wDn(1094,1,WZn,tC);lce.Cd=function n(e){EC(this.a,this.b,e)};var Cge=YW(i2n,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1094);wDn(734,500,zZn,g7);lce.Bd=function n(e){return S_(this,e)};var Ige=YW(i2n,"StreamImpl/MapToObjSpliterator",734);wDn(1093,1,WZn,rC);lce.Cd=function n(e){SC(this.a,this.b,e)};var Oge=YW(i2n,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1093);wDn(1092,500,zZn,Gcn);lce.Bd=function n(e){while(KP(this.b,0)){if(!this.a.Bd(new ln)){return false}this.b=Fgn(this.b,1)}return this.a.Bd(e)};lce.b=0;var Age=YW(i2n,"StreamImpl/SkipSpliterator",1092);wDn(1097,1,WZn,ln);lce.Cd=function n(e){};var Lge=YW(i2n,"StreamImpl/SkipSpliterator/lambda$0$Type",1097);wDn(626,1,WZn,bn);lce.Cd=function n(e){Db(this,e)};var Nge=YW(i2n,"StreamImpl/ValueConsumer",626);wDn(1098,1,WZn,wn);lce.Cd=function n(e){jS()};var $ge=YW(i2n,"StreamImpl/lambda$0$Type",1098);wDn(1099,1,WZn,dn);lce.Cd=function n(e){jS()};var Dge=YW(i2n,"StreamImpl/lambda$1$Type",1099);wDn(1100,1,{},Id);lce.Ve=function n(e,t){return GB(this.a,e,t)};var xge=YW(i2n,"StreamImpl/lambda$4$Type",1100);wDn(1101,1,WZn,aC);lce.Cd=function n(e){EF(this.b,this.a,e)};var Rge=YW(i2n,"StreamImpl/lambda$5$Type",1101);wDn(1107,1,WZn,Od);lce.Cd=function n(e){zon(this.a,bG(e,380))};var Kge=YW(i2n,"TerminatableStream/lambda$0$Type",1107);wDn(2142,1,{});wDn(2014,1,{},gn);var Fge=YW("javaemul.internal","ConsoleLogger",2014);var _ge=0;wDn(2134,1,{});wDn(1830,1,WZn,vn);lce.Cd=function n(e){bG(e,317)};var Bge=YW(h2n,"BowyerWatsonTriangulation/lambda$0$Type",1830);wDn(1831,1,WZn,Ld);lce.Cd=function n(e){esn(this.a,bG(e,317).e)};var Hge=YW(h2n,"BowyerWatsonTriangulation/lambda$1$Type",1831);wDn(1832,1,WZn,pn);lce.Cd=function n(e){bG(e,177)};var Uge=YW(h2n,"BowyerWatsonTriangulation/lambda$2$Type",1832);wDn(1827,1,l2n,Nd);lce.Ne=function n(e,t){return A5(this.a,bG(e,177),bG(t,177))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Gge=YW(h2n,"NaiveMinST/lambda$0$Type",1827);wDn(449,1,{},Ad);var qge=YW(h2n,"NodeMicroLayout",449);wDn(177,1,{177:1},iC);lce.Fb=function n(e){var t;if(G$(e,177)){t=bG(e,177);return DJ(this.a,t.a)&&DJ(this.b,t.b)||DJ(this.a,t.b)&&DJ(this.b,t.a)}else{return false}};lce.Hb=function n(){return ZN(this.a)+ZN(this.b)};var Xge=YW(h2n,"TEdge",177);wDn(317,1,{317:1},yqn);lce.Fb=function n(e){var t;if(G$(e,317)){t=bG(e,317);return _tn(this,t.a)&&_tn(this,t.b)&&_tn(this,t.c)}else{return false}};lce.Hb=function n(){return ZN(this.a)+ZN(this.b)+ZN(this.c)};var Vge=YW(h2n,"TTriangle",317);wDn(225,1,{225:1},N$);var zge=YW(h2n,"Tree",225);wDn(1218,1,{},Q0);var Wge=YW(b2n,"Scanline",1218);var Qge=$q(b2n,w2n);wDn(1758,1,{},ein);var Jge=YW(d2n,"CGraph",1758);wDn(316,1,{316:1},Z0);lce.b=0;lce.c=0;lce.d=0;lce.g=0;lce.i=0;lce.k=M0n;var Yge=YW(d2n,"CGroup",316);wDn(830,1,{},gk);var Zge=YW(d2n,"CGroup/CGroupBuilder",830);wDn(60,1,{60:1},KF);lce.Ib=function n(){var e;if(this.j){return TK(this.j.Kb(this))}return jK(nve),nve.o+"@"+(e=Bx(this)>>>0,e.toString(16))};lce.f=0;lce.i=M0n;var nve=YW(d2n,"CNode",60);wDn(829,1,{},vk);var eve=YW(d2n,"CNode/CNodeBuilder",829);var tve;wDn(1590,1,{},mn);lce.ff=function n(e,t){return 0};lce.gf=function n(e,t){return 0};var rve=YW(d2n,v2n,1590);wDn(1853,1,{},kn);lce.cf=function n(e){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v;h=y0n;for(a=new nd(e.a.b);a.ai.d.c||i.d.c==c.d.c&&i.d.b0?e+this.n.d+this.n.a:0};lce.kf=function n(){var e,r,i,a,c;c=0;if(this.e){this.b?c=this.b.a:!!this.a[1][1]&&(c=this.a[1][1].kf())}else if(this.g){c=Svn(this,mEn(this,null,true))}else{for(r=(ran(),zfn(fT(cpe,1),g1n,237,0,[rpe,ipe,ape])),i=0,a=r.length;i0?c+this.n.b+this.n.c:0};lce.lf=function n(){var e,t,r,i,a;if(this.g){e=mEn(this,null,false);for(r=(ran(),zfn(fT(cpe,1),g1n,237,0,[rpe,ipe,ape])),i=0,a=r.length;i0){a[0]+=this.d;i-=a[0]}if(a[2]>0){a[2]+=this.d;i-=a[2]}this.c.a=t.Math.max(0,i);this.c.d=r.d+e.d+(this.c.a-i)/2;a[1]=t.Math.max(a[1],i);t7(this,ipe,r.d+e.d+a[0]-(a[1]-i)/2,a)};lce.b=null;lce.d=0;lce.e=false;lce.f=false;lce.g=false;var ope=0,fpe=0;var hpe=YW(H2n,"GridContainerCell",1538);wDn(471,22,{3:1,34:1,22:1,471:1},hC);var lpe,bpe,wpe;var dpe=qan(H2n,"HorizontalLabelAlignment",471,joe,H2,yB);var gpe;wDn(314,217,{217:1,314:1},h0,rin,f1);lce.jf=function n(){return sq(this)};lce.kf=function n(){return oq(this)};lce.a=0;lce.c=false;var vpe=YW(H2n,"LabelCell",314);wDn(252,336,{217:1,336:1,252:1},ckn);lce.jf=function n(){return kNn(this)};lce.kf=function n(){return yNn(this)};lce.lf=function n(){rqn(this)};lce.mf=function n(){oqn(this)};lce.b=0;lce.c=0;lce.d=false;var ppe=YW(H2n,"StripContainerCell",252);wDn(1691,1,k1n,Pn);lce.Mb=function n(e){return FM(bG(e,217))};var mpe=YW(H2n,"StripContainerCell/lambda$0$Type",1691);wDn(1692,1,{},Cn);lce.Ye=function n(e){return bG(e,217).kf()};var kpe=YW(H2n,"StripContainerCell/lambda$1$Type",1692);wDn(1693,1,k1n,In);lce.Mb=function n(e){return _M(bG(e,217))};var ype=YW(H2n,"StripContainerCell/lambda$2$Type",1693);wDn(1694,1,{},On);lce.Ye=function n(e){return bG(e,217).jf()};var Mpe=YW(H2n,"StripContainerCell/lambda$3$Type",1694);wDn(472,22,{3:1,34:1,22:1,472:1},lC);var Tpe,jpe,Epe;var Spe=qan(H2n,"VerticalLabelAlignment",472,joe,B2,MB);var Ppe;wDn(800,1,{},OQn);lce.c=0;lce.d=0;lce.k=0;lce.s=0;lce.t=0;lce.v=false;lce.w=0;lce.D=false;lce.F=false;var Cpe=YW(Q2n,"NodeContext",800);wDn(1536,1,l2n,An);lce.Ne=function n(e,t){return zL(bG(e,64),bG(t,64))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Ipe=YW(Q2n,"NodeContext/0methodref$comparePortSides$Type",1536);wDn(1537,1,l2n,Ln);lce.Ne=function n(e,t){return xCn(bG(e,117),bG(t,117))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Ope=YW(Q2n,"NodeContext/1methodref$comparePortContexts$Type",1537);wDn(164,22,{3:1,34:1,22:1,164:1},Msn);var Ape,Lpe,Npe,$pe,Dpe,xpe,Rpe,Kpe,Fpe,_pe,Bpe,Hpe,Upe,Gpe,qpe,Xpe,Vpe,zpe,Wpe,Qpe,Jpe,Ype;var Zpe=qan(Q2n,"NodeLabelLocation",164,joe,Kkn,TB);var nme;wDn(117,1,{117:1},j$n);lce.a=false;var eme=YW(Q2n,"PortContext",117);wDn(1541,1,WZn,Nn);lce.Cd=function n(e){uE(bG(e,314))};var tme=YW(Z2n,n3n,1541);wDn(1542,1,k1n,$n);lce.Mb=function n(e){return!!bG(e,117).c};var rme=YW(Z2n,e3n,1542);wDn(1543,1,WZn,Dn);lce.Cd=function n(e){uE(bG(e,117).c)};var ime=YW(Z2n,"LabelPlacer/lambda$2$Type",1543);var ame;wDn(1540,1,WZn,xn);lce.Cd=function n(e){ZK();mm(bG(e,117))};var cme=YW(Z2n,"NodeLabelAndSizeUtilities/lambda$0$Type",1540);wDn(801,1,WZn,_B);lce.Cd=function n(e){hP(this.b,this.c,this.a,bG(e,187))};lce.a=false;lce.c=false;var ume=YW(Z2n,"NodeLabelCellCreator/lambda$0$Type",801);wDn(1539,1,WZn,Rd);lce.Cd=function n(e){Zm(this.a,bG(e,187))};var sme=YW(Z2n,"PortContextCreator/lambda$0$Type",1539);var ome;wDn(1902,1,{},Rn);var fme=YW(r3n,"GreedyRectangleStripOverlapRemover",1902);wDn(1903,1,l2n,Kn);lce.Ne=function n(e,t){return Nx(bG(e,226),bG(t,226))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var hme=YW(r3n,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1903);wDn(1849,1,{},Mk);lce.a=5;lce.e=0;var lme=YW(r3n,"RectangleStripOverlapRemover",1849);wDn(1850,1,l2n,Fn);lce.Ne=function n(e,t){return $x(bG(e,226),bG(t,226))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var bme=YW(r3n,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1850);wDn(1852,1,l2n,_n);lce.Ne=function n(e,t){return gW(bG(e,226),bG(t,226))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var wme=YW(r3n,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1852);wDn(417,22,{3:1,34:1,22:1,417:1},bC);var dme,gme,vme,pme;var mme=qan(r3n,"RectangleStripOverlapRemover/OverlapRemovalDirection",417,joe,X6,jB);var kme;wDn(226,1,{226:1},iV);var yme=YW(r3n,"RectangleStripOverlapRemover/RectangleNode",226);wDn(1851,1,WZn,Kd);lce.Cd=function n(e){vTn(this.a,bG(e,226))};var Mme=YW(r3n,"RectangleStripOverlapRemover/lambda$1$Type",1851);wDn(1323,1,l2n,Bn);lce.Ne=function n(e,t){return dVn(bG(e,176),bG(t,176))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Tme=YW(a3n,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1323);wDn(1326,1,{},Hn);lce.Kb=function n(e){return bG(e,334).a};var jme=YW(a3n,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1326);wDn(1327,1,k1n,Un);lce.Mb=function n(e){return bG(e,332).a};var Eme=YW(a3n,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1327);wDn(1328,1,k1n,Gn);lce.Mb=function n(e){return bG(e,332).a};var Sme=YW(a3n,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1328);wDn(1321,1,l2n,qn);lce.Ne=function n(e,t){return tHn(bG(e,176),bG(t,176))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Pme=YW(a3n,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1321);wDn(1324,1,{},Xn);lce.Kb=function n(e){return bG(e,334).a};var Cme=YW(a3n,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1324);wDn(781,1,l2n,Vn);lce.Ne=function n(e,t){return vfn(bG(e,176),bG(t,176))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Ime=YW(a3n,"PolyominoCompactor/MinNumOfExtensionsComparator",781);wDn(1319,1,l2n,zn);lce.Ne=function n(e,t){return oun(bG(e,330),bG(t,330))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Ome=YW(a3n,"PolyominoCompactor/MinPerimeterComparator",1319);wDn(1320,1,l2n,Wn);lce.Ne=function n(e,t){return Xyn(bG(e,330),bG(t,330))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Ame=YW(a3n,"PolyominoCompactor/MinPerimeterComparatorWithShape",1320);wDn(1322,1,l2n,Qn);lce.Ne=function n(e,t){return JHn(bG(e,176),bG(t,176))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Lme=YW(a3n,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1322);wDn(1325,1,{},Jn);lce.Kb=function n(e){return bG(e,334).a};var Nme=YW(a3n,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1325);wDn(782,1,{},wC);lce.Ve=function n(e,t){return k6(this,bG(e,42),bG(t,176))};var $me=YW(a3n,"SuccessorCombination",782);wDn(649,1,{},Yn);lce.Ve=function n(e,t){var r;return UNn((r=bG(e,42),bG(t,176),r))};var Dme=YW(a3n,"SuccessorJitter",649);wDn(648,1,{},Zn);lce.Ve=function n(e,t){var r;return fFn((r=bG(e,42),bG(t,176),r))};var xme=YW(a3n,"SuccessorLineByLine",648);wDn(573,1,{},ne);lce.Ve=function n(e,t){var r;return cxn((r=bG(e,42),bG(t,176),r))};var Rme=YW(a3n,"SuccessorManhattan",573);wDn(1344,1,{},ee);lce.Ve=function n(e,t){var r;return vKn((r=bG(e,42),bG(t,176),r))};var Kme=YW(a3n,"SuccessorMaxNormWindingInMathPosSense",1344);wDn(409,1,{},Fd);lce.Ve=function n(e,t){return Vz(this,e,t)};lce.c=false;lce.d=false;lce.e=false;lce.f=false;var Fme=YW(a3n,"SuccessorQuadrantsGeneric",409);wDn(1345,1,{},te);lce.Kb=function n(e){return bG(e,334).a};var _me=YW(a3n,"SuccessorQuadrantsGeneric/lambda$0$Type",1345);wDn(332,22,{3:1,34:1,22:1,332:1},dC);lce.a=false;var Bme,Hme,Ume,Gme;var qme=qan(f3n,h3n,332,joe,G6,EB);var Xme;wDn(1317,1,{});lce.Ib=function n(){var e,t,r,i,a,c;r=" ";e=Bwn(0);for(a=0;a=0?"b"+e+"["+J8(this.a)+"]":"b["+J8(this.a)+"]"}return"b_"+Bx(this)};var gye=YW(V3n,"FBendpoint",250);wDn(290,137,{3:1,290:1,96:1,137:1},FF);lce.Ib=function n(){return J8(this)};var vye=YW(V3n,"FEdge",290);wDn(235,137,{3:1,235:1,96:1,137:1},k7);var pye=YW(V3n,"FGraph",235);wDn(454,309,{3:1,454:1,309:1,96:1,137:1},x5);lce.Ib=function n(){return this.b==null||this.b.length==0?"l["+J8(this.a)+"]":"l_"+this.b};var mye=YW(V3n,"FLabel",454);wDn(153,309,{3:1,153:1,309:1,96:1,137:1},O$);lce.Ib=function n(){return Y3(this)};lce.a=0;var kye=YW(V3n,"FNode",153);wDn(2100,1,{});lce.vf=function n(e){MGn(this,e)};lce.wf=function n(){$Tn(this)};lce.d=0;var yye=YW(W3n,"AbstractForceModel",2100);wDn(641,2100,{641:1},von);lce.uf=function n(e,r){var i,a,c,u,s;QVn(this.f,e,r);c=r_(_$(r.d),e.d);s=t.Math.sqrt(c.a*c.a+c.b*c.b);a=t.Math.max(0,s-KQ(e.e)/2-KQ(r.e)/2);i=ZNn(this.e,e,r);i>0?u=-sW(a,this.c)*i:u=CR(a,this.b)*bG(lIn(e,(oGn(),Jye)),17).a;jD(c,u/s);return c};lce.vf=function n(e){MGn(this,e);this.a=bG(lIn(e,(oGn(),_ye)),17).a;this.c=bM(MK(lIn(e,rMe)));this.b=bM(MK(lIn(e,Zye)))};lce.xf=function n(e){return e0&&(u-=hM(a,this.a)*i);jD(c,u*this.b/s);return c};lce.vf=function n(e){var r,i,a,c,u,s,o;MGn(this,e);this.b=bM(MK(lIn(e,(oGn(),iMe))));this.c=this.b/bG(lIn(e,_ye),17).a;a=e.e.c.length;u=0;c=0;for(o=new nd(e.e);o.a0};lce.a=0;lce.b=0;lce.c=0;var Tye=YW(W3n,"FruchtermanReingoldModel",642);wDn(860,1,R2n,Wh);lce.hf=function n(e){ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Q3n),""),"Force Model"),"Determines the model for force calculation."),Sye),(vAn(),j3e)),Dye),ygn((Hkn(),p3e)))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,J3n),""),"Iterations"),"The number of iterations on the force model."),Bwn(300)),S3e),tle),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Y3n),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),Bwn(0)),S3e),tle),ygn(d3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Z3n),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),n4n),T3e),Yhe),ygn(p3e))));V4(e,Z3n,Q3n,Aye);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,e4n),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),T3e),Yhe),ygn(p3e))));V4(e,e4n,Q3n,Cye);jJn((new Qh,e))};var jye,Eye,Sye,Pye,Cye,Iye,Oye,Aye;var Lye=YW(t4n,"ForceMetaDataProvider",860);wDn(432,22,{3:1,34:1,22:1,432:1},mC);var Nye,$ye;var Dye=qan(t4n,"ForceModelStrategy",432,joe,d1,CB);var xye;wDn(N1n,1,R2n,Qh);lce.hf=function n(e){jJn(e)};var Rye,Kye,Fye,_ye,Bye,Hye,Uye,Gye,qye,Xye,Vye,zye,Wye,Qye,Jye,Yye,Zye,nMe,eMe,tMe,rMe,iMe,aMe,cMe,uMe,sMe,oMe;var fMe=YW(t4n,"ForceOptions",N1n);wDn(1001,1,{},Te);lce.sf=function n(){var e;return e=new dk,e};lce.tf=function n(e){};var hMe=YW(t4n,"ForceOptions/ForceFactory",1001);var lMe,bMe,wMe,dMe;wDn(861,1,R2n,Jh);lce.hf=function n(e){ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,C4n),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(Qx(),false)),(vAn(),M3e)),Uhe),ygn((Hkn(),v3e)))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,I4n),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),T3e),Yhe),nV(p3e,zfn(fT(k3e,1),g1n,170,0,[d3e])))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,O4n),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),pMe),j3e),UMe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,A4n),""),"Stress Epsilon"),"Termination criterion for the iterative process."),n4n),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,L4n),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),Bwn(pZn)),S3e),tle),ygn(p3e))));wWn((new Yh,e))};var gMe,vMe,pMe,mMe,kMe,yMe;var MMe=YW(t4n,"StressMetaDataProvider",861);wDn(1004,1,R2n,Yh);lce.hf=function n(e){wWn(e)};var TMe,jMe,EMe,SMe,PMe,CMe,IMe,OMe,AMe,LMe,NMe,$Me;var DMe=YW(t4n,"StressOptions",1004);wDn(1005,1,{},ye);lce.sf=function n(){var e;return e=new _F,e};lce.tf=function n(e){};var xMe=YW(t4n,"StressOptions/StressFactory",1005);wDn(1110,205,y3n,_F);lce.rf=function n(e,t){var r,i,a,c,u;t.Ug($4n,1);lM(yK(YDn(e,(Xjn(),PMe))))?lM(yK(YDn(e,NMe)))||t0((r=new Ad((jP(),new Zy(e))),r)):iRn(new dk,e,t.eh(1));a=Shn(e);i=cqn(this.a,a);for(u=i.Kc();u.Ob();){c=bG(u.Pb(),235);if(c.e.c.length<=1){continue}oVn(this.b,c);exn(this.b);Lin(c.d,new Me)}a=vJn(i);rYn(a);t.Vg()};var RMe=YW(x4n,"StressLayoutProvider",1110);wDn(1111,1,WZn,Me);lce.Cd=function n(e){rXn(bG(e,454))};var KMe=YW(x4n,"StressLayoutProvider/lambda$0$Type",1111);wDn(1002,1,{},Qm);lce.c=0;lce.e=0;lce.g=0;var FMe=YW(x4n,"StressMajorization",1002);wDn(391,22,{3:1,34:1,22:1,391:1},kC);var _Me,BMe,HMe;var UMe=qan(x4n,"StressMajorization/Dimension",391,joe,G2,IB);var GMe;wDn(1003,1,l2n,Gd);lce.Ne=function n(e,t){return I_(this.a,bG(e,153),bG(t,153))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var qMe=YW(x4n,"StressMajorization/lambda$0$Type",1003);wDn(1192,1,{},s4);var XMe=YW(K4n,"ElkLayered",1192);wDn(1193,1,WZn,qd);lce.Cd=function n(e){DLn(this.a,bG(e,36))};var VMe=YW(K4n,"ElkLayered/lambda$0$Type",1193);wDn(1194,1,WZn,Xd);lce.Cd=function n(e){O_(this.a,bG(e,36))};var zMe=YW(K4n,"ElkLayered/lambda$1$Type",1194);wDn(1281,1,{},Y$);var WMe,QMe,JMe;var YMe=YW(K4n,"GraphConfigurator",1281);wDn(770,1,WZn,Vd);lce.Cd=function n(e){JIn(this.a,bG(e,10))};var ZMe=YW(K4n,"GraphConfigurator/lambda$0$Type",770);wDn(771,1,{},ke);lce.Kb=function n(e){return GEn(),new gX(null,new d3(bG(e,30).a,16))};var nTe=YW(K4n,"GraphConfigurator/lambda$1$Type",771);wDn(772,1,WZn,zd);lce.Cd=function n(e){JIn(this.a,bG(e,10))};var eTe=YW(K4n,"GraphConfigurator/lambda$2$Type",772);wDn(1109,205,y3n,Tk);lce.rf=function n(e,t){var r;r=jXn(new Ek,e);BA(YDn(e,(IYn(),SFe)))===BA((Dwn(),U5e))?Cgn(this.a,r,t):XDn(this.a,r,t);t.$g()||KQn(new Zh,r)};var tTe=YW(K4n,"LayeredLayoutProvider",1109);wDn(367,22,{3:1,34:1,22:1,367:1},yC);var rTe,iTe,aTe,cTe,uTe;var sTe=qan(K4n,"LayeredPhases",367,joe,b9,OB);var oTe;wDn(1717,1,{},Fcn);lce.i=0;var fTe;var hTe=YW(F4n,"ComponentsToCGraphTransformer",1717);var lTe;wDn(1718,1,{},me);lce.yf=function n(e,r){return t.Math.min(e.a!=null?bM(e.a):e.c.i,r.a!=null?bM(r.a):r.c.i)};lce.zf=function n(e,r){return t.Math.min(e.a!=null?bM(e.a):e.c.i,r.a!=null?bM(r.a):r.c.i)};var bTe=YW(F4n,"ComponentsToCGraphTransformer/1",1718);wDn(86,1,{86:1});lce.i=0;lce.k=true;lce.o=M0n;var wTe=YW(_4n,"CNode",86);wDn(470,86,{470:1,86:1},tR,rkn);lce.Ib=function n(){return""};var dTe=YW(F4n,"ComponentsToCGraphTransformer/CRectNode",470);wDn(1688,1,{},je);var gTe,vTe;var pTe=YW(F4n,"OneDimensionalComponentsCompaction",1688);wDn(1689,1,{},Ee);lce.Kb=function n(e){return m2(bG(e,42))};lce.Fb=function n(e){return this===e};var mTe=YW(F4n,"OneDimensionalComponentsCompaction/lambda$0$Type",1689);wDn(1690,1,{},Se);lce.Kb=function n(e){return Bgn(bG(e,42))};lce.Fb=function n(e){return this===e};var kTe=YW(F4n,"OneDimensionalComponentsCompaction/lambda$1$Type",1690);wDn(1720,1,{},mQ);var yTe=YW(_4n,"CGraph",1720);wDn(194,1,{194:1},ikn);lce.b=0;lce.c=0;lce.e=0;lce.g=true;lce.i=M0n;var MTe=YW(_4n,"CGroup",194);wDn(1719,1,{},Pe);lce.yf=function n(e,r){return t.Math.max(e.a!=null?bM(e.a):e.c.i,r.a!=null?bM(r.a):r.c.i)};lce.zf=function n(e,r){return t.Math.max(e.a!=null?bM(e.a):e.c.i,r.a!=null?bM(r.a):r.c.i)};var TTe=YW(_4n,v2n,1719);wDn(1721,1,{},s$n);lce.d=false;var jTe;var ETe=YW(_4n,M2n,1721);wDn(1722,1,{},Ce);lce.Kb=function n(e){return WS(),Qx(),bG(bG(e,42).a,86).d.e!=0?true:false};lce.Fb=function n(e){return this===e};var STe=YW(_4n,T2n,1722);wDn(833,1,{},fX);lce.a=false;lce.b=false;lce.c=false;lce.d=false;var PTe=YW(_4n,j2n,833);wDn(1898,1,{},aV);var CTe=YW(B4n,E2n,1898);var ITe=$q(H4n,w2n);wDn(1899,1,{382:1},GZ);lce.bf=function n(e){_Fn(this,bG(e,476))};var OTe=YW(B4n,S2n,1899);wDn(V1n,1,l2n,Ie);lce.Ne=function n(e,t){return oY(bG(e,86),bG(t,86))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var ATe=YW(B4n,P2n,V1n);wDn(476,1,{476:1},UC);lce.a=false;var LTe=YW(B4n,C2n,476);wDn(1901,1,l2n,Oe);lce.Ne=function n(e,t){return UEn(bG(e,476),bG(t,476))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var NTe=YW(B4n,I2n,1901);wDn(148,1,{148:1},GC,mG);lce.Fb=function n(e){var t;if(e==null){return false}if($Te!=Cbn(e)){return false}t=bG(e,148);return DJ(this.c,t.c)&&DJ(this.d,t.d)};lce.Hb=function n(){return Dbn(zfn(fT(kce,1),jZn,1,5,[this.c,this.d]))};lce.Ib=function n(){return"("+this.c+MZn+this.d+(this.a?"cx":"")+this.b+")"};lce.a=true;lce.c=0;lce.d=0;var $Te=YW(H4n,"Point",148);wDn(416,22,{3:1,34:1,22:1,416:1},IC);var DTe,xTe,RTe,KTe;var FTe=qan(H4n,"Point/Quadrant",416,joe,V6,AB);var _Te;wDn(1708,1,{},kk);lce.b=null;lce.c=null;lce.d=null;lce.e=null;lce.f=null;var BTe,HTe,UTe,GTe,qTe;var XTe=YW(H4n,"RectilinearConvexHull",1708);wDn(583,1,{382:1},fyn);lce.bf=function n(e){$en(this,bG(e,148))};lce.b=0;var VTe;var zTe=YW(H4n,"RectilinearConvexHull/MaximalElementsEventHandler",583);wDn(1710,1,l2n,Ae);lce.Ne=function n(e,t){return fY(MK(e),MK(t))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var WTe=YW(H4n,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1710);wDn(1709,1,{382:1},tin);lce.bf=function n(e){MKn(this,bG(e,148))};lce.a=0;lce.b=null;lce.c=null;lce.d=null;lce.e=null;var QTe=YW(H4n,"RectilinearConvexHull/RectangleEventHandler",1709);wDn(1711,1,l2n,Le);lce.Ne=function n(e,t){return V3(bG(e,148),bG(t,148))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var JTe=YW(H4n,"RectilinearConvexHull/lambda$0$Type",1711);wDn(1712,1,l2n,xe);lce.Ne=function n(e,t){return z3(bG(e,148),bG(t,148))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var YTe=YW(H4n,"RectilinearConvexHull/lambda$1$Type",1712);wDn(1713,1,l2n,Re);lce.Ne=function n(e,t){return X3(bG(e,148),bG(t,148))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var ZTe=YW(H4n,"RectilinearConvexHull/lambda$2$Type",1713);wDn(1714,1,l2n,De);lce.Ne=function n(e,t){return W3(bG(e,148),bG(t,148))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var nje=YW(H4n,"RectilinearConvexHull/lambda$3$Type",1714);wDn(1715,1,l2n,Ke);lce.Ne=function n(e,t){return wIn(bG(e,148),bG(t,148))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var eje=YW(H4n,"RectilinearConvexHull/lambda$4$Type",1715);wDn(1716,1,{},J0);var tje=YW(H4n,"Scanline",1716);wDn(2104,1,{});var rje=YW(U4n,"AbstractGraphPlacer",2104);wDn(335,1,{335:1},_R);lce.Ff=function n(e){if(this.Gf(e)){zNn(this.b,bG(lIn(e,(WYn(),rDe)),21),e);return true}else{return false}};lce.Gf=function n(e){var t,r,i,a;t=bG(lIn(e,(WYn(),rDe)),21);a=bG(r7(ije,t),21);for(i=a.Kc();i.Ob();){r=bG(i.Pb(),21);if(!bG(r7(this.b,r),15).dc()){return false}}return true};var ije;var aje=YW(U4n,"ComponentGroup",335);wDn(779,2104,{},yk);lce.Hf=function n(e){var t,r;for(r=new nd(this.a);r.ai){l=0;b+=o+a;o=0}f=u.c;cHn(u,l+f.a,b+f.b);kL(f);c=t.Math.max(c,l+h.a);o=t.Math.max(o,h.b);l+=h.a+a}r.f.a=c;r.f.b=b+o};lce.Jf=function n(e,t){var r,i,a,c,u;if(BA(lIn(t,(IYn(),HKe)))===BA((zmn(),hje))){for(i=e.Kc();i.Ob();){r=bG(i.Pb(),36);u=0;for(c=new nd(r.a);c.ai&&!bG(lIn(u,(WYn(),rDe)),21).Hc((UQn(),D8e))||!!f&&bG(lIn(f,(WYn(),rDe)),21).Hc((UQn(),$8e))||bG(lIn(u,(WYn(),rDe)),21).Hc((UQn(),n9e))){w=b;d+=o+a;o=0}h=u.c;bG(lIn(u,(WYn(),rDe)),21).Hc((UQn(),D8e))&&(w=c+a);cHn(u,w+h.a,d+h.b);c=t.Math.max(c,w+l.a);bG(lIn(u,rDe),21).Hc(Y8e)&&(b=t.Math.max(b,w+l.a+a));kL(h);o=t.Math.max(o,l.b);w+=l.a+a;f=u}r.f.a=c;r.f.b=d+o};lce.Jf=function n(e,t){};var Pje=YW(U4n,"ModelOrderRowGraphPlacer",1313);wDn(1311,1,l2n,Be);lce.Ne=function n(e,t){return nfn(bG(e,36),bG(t,36))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Cje=YW(U4n,"SimpleRowGraphPlacer/1",1311);var Ije;wDn(1280,1,O2n,He);lce.Lb=function n(e){var t;return t=bG(lIn(bG(e,249).b,(IYn(),DFe)),75),!!t&&t.b!=0};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){var t;return t=bG(lIn(bG(e,249).b,(IYn(),DFe)),75),!!t&&t.b!=0};var Oje=YW(z4n,"CompoundGraphPostprocessor/1",1280);wDn(1279,1,W4n,Sk);lce.Kf=function n(e,t){Yyn(this,bG(e,36),t)};var Aje=YW(z4n,"CompoundGraphPreprocessor",1279);wDn(453,1,{453:1},Adn);lce.c=false;var Lje=YW(z4n,"CompoundGraphPreprocessor/ExternalPort",453);wDn(249,1,{249:1},FB);lce.Ib=function n(){return PR(this.c)+":"+PNn(this.b)};var Nje=YW(z4n,"CrossHierarchyEdge",249);wDn(777,1,l2n,Wd);lce.Ne=function n(e,t){return Kjn(this,bG(e,249),bG(t,249))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var $je=YW(z4n,"CrossHierarchyEdgeComparator",777);wDn(305,137,{3:1,305:1,96:1,137:1});lce.p=0;var Dje=YW(Q4n,"LGraphElement",305);wDn(18,305,{3:1,18:1,305:1,96:1,137:1},zZ);lce.Ib=function n(){return PNn(this)};var xje=YW(Q4n,"LEdge",18);wDn(36,305,{3:1,20:1,36:1,305:1,96:1,137:1},_cn);lce.Jc=function n(e){Y8(this,e)};lce.Kc=function n(){return new nd(this.b)};lce.Ib=function n(){if(this.b.c.length==0){return"G-unlayered"+jIn(this.a)}else if(this.a.c.length==0){return"G-layered"+jIn(this.b)}return"G[layerless"+jIn(this.a)+", layers"+jIn(this.b)+"]"};var Rje=YW(Q4n,"LGraph",36);var Kje;wDn(666,1,{});lce.Lf=function n(){return this.e.n};lce.of=function n(e){return lIn(this.e,e)};lce.Mf=function n(){return this.e.o};lce.Nf=function n(){return this.e.p};lce.pf=function n(e){return jR(this.e,e)};lce.Of=function n(e){this.e.n.a=e.a;this.e.n.b=e.b};lce.Pf=function n(e){this.e.o.a=e.a;this.e.o.b=e.b};lce.Qf=function n(e){this.e.p=e};var Fje=YW(Q4n,"LGraphAdapters/AbstractLShapeAdapter",666);wDn(474,1,{853:1},Qd);lce.Rf=function n(){var e,t;if(!this.b){this.b=sR(this.a.b.c.length);for(t=new nd(this.a.b);t.a0&&Vbn((w3(t-1,e.length),e.charCodeAt(t-1)),i6n)){--t}if(c> ",e),ajn(r));tL(eL((e.a+="[",e),r.i),"]")}return e.a};lce.c=true;lce.d=false;var fEe,hEe,lEe,bEe,wEe,dEe;var gEe=YW(Q4n,"LPort",12);wDn(408,1,n1n,Yd);lce.Jc=function n(e){Y8(this,e)};lce.Kc=function n(){var e;e=new nd(this.a.e);return new Zd(e)};var vEe=YW(Q4n,"LPort/1",408);wDn(1309,1,NZn,Zd);lce.Nb=function n(e){Az(this,e)};lce.Pb=function n(){return bG(K3(this.a),18).c};lce.Ob=function n(){return v$(this.a)};lce.Qb=function n(){cW(this.a)};var pEe=YW(Q4n,"LPort/1/1",1309);wDn(369,1,n1n,ng);lce.Jc=function n(e){Y8(this,e)};lce.Kc=function n(){var e;return e=new nd(this.a.g),new eg(e)};var mEe=YW(Q4n,"LPort/2",369);wDn(776,1,NZn,eg);lce.Nb=function n(e){Az(this,e)};lce.Pb=function n(){return bG(K3(this.a),18).d};lce.Ob=function n(){return v$(this.a)};lce.Qb=function n(){cW(this.a)};var kEe=YW(Q4n,"LPort/2/1",776);wDn(1302,1,n1n,RC);lce.Jc=function n(e){Y8(this,e)};lce.Kc=function n(){return new m7(this)};var yEe=YW(Q4n,"LPort/CombineIter",1302);wDn(208,1,NZn,m7);lce.Nb=function n(e){Az(this,e)};lce.Qb=function n(){Bj()};lce.Ob=function n(){return _x(this)};lce.Pb=function n(){return v$(this.a)?K3(this.a):K3(this.b)};var MEe=YW(Q4n,"LPort/CombineIter/1",208);wDn(1303,1,O2n,Xe);lce.Lb=function n(e){return rz(e)};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return Rsn(),bG(e,12).g.c.length!=0};var TEe=YW(Q4n,"LPort/lambda$0$Type",1303);wDn(1304,1,O2n,Ve);lce.Lb=function n(e){return iz(e)};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return Rsn(),bG(e,12).e.c.length!=0};var jEe=YW(Q4n,"LPort/lambda$1$Type",1304);wDn(1305,1,O2n,ze);lce.Lb=function n(e){return Rsn(),bG(e,12).j==(UQn(),D8e)};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return Rsn(),bG(e,12).j==(UQn(),D8e)};var EEe=YW(Q4n,"LPort/lambda$2$Type",1305);wDn(1306,1,O2n,We);lce.Lb=function n(e){return Rsn(),bG(e,12).j==(UQn(),$8e)};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return Rsn(),bG(e,12).j==(UQn(),$8e)};var SEe=YW(Q4n,"LPort/lambda$3$Type",1306);wDn(1307,1,O2n,Qe);lce.Lb=function n(e){return Rsn(),bG(e,12).j==(UQn(),Y8e)};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return Rsn(),bG(e,12).j==(UQn(),Y8e)};var PEe=YW(Q4n,"LPort/lambda$4$Type",1307);wDn(1308,1,O2n,Je);lce.Lb=function n(e){return Rsn(),bG(e,12).j==(UQn(),n9e)};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return Rsn(),bG(e,12).j==(UQn(),n9e)};var CEe=YW(Q4n,"LPort/lambda$5$Type",1308);wDn(30,305,{3:1,20:1,305:1,30:1,96:1,137:1},pQ);lce.Jc=function n(e){Y8(this,e)};lce.Kc=function n(){return new nd(this.a)};lce.Ib=function n(){return"L_"+Ctn(this.b.b,this,0)+jIn(this.a)};var IEe=YW(Q4n,"Layer",30);wDn(1330,1,{},Ek);var OEe=YW(o6n,f6n,1330);wDn(1334,1,{},Ye);lce.Kb=function n(e){return vCn(bG(e,84))};var AEe=YW(o6n,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1334);wDn(1337,1,{},Ze);lce.Kb=function n(e){return vCn(bG(e,84))};var LEe=YW(o6n,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1337);wDn(1331,1,WZn,tg);lce.Cd=function n(e){S$n(this.a,bG(e,123))};var NEe=YW(o6n,X3n,1331);wDn(1332,1,WZn,rg);lce.Cd=function n(e){S$n(this.a,bG(e,123))};var $Ee=YW(o6n,h6n,1332);wDn(1333,1,{},nt);lce.Kb=function n(e){return new gX(null,new d3(UJ(bG(e,74)),16))};var DEe=YW(o6n,l6n,1333);wDn(1335,1,k1n,ig);lce.Mb=function n(e){return _N(this.a,bG(e,27))};var xEe=YW(o6n,b6n,1335);wDn(1336,1,{},et);lce.Kb=function n(e){return new gX(null,new d3(GJ(bG(e,74)),16))};var REe=YW(o6n,"ElkGraphImporter/lambda$5$Type",1336);wDn(1338,1,k1n,ag);lce.Mb=function n(e){return BN(this.a,bG(e,27))};var KEe=YW(o6n,"ElkGraphImporter/lambda$7$Type",1338);wDn(1339,1,k1n,tt);lce.Mb=function n(e){return JY(bG(e,74))};var FEe=YW(o6n,"ElkGraphImporter/lambda$8$Type",1339);wDn(1297,1,{},Zh);var _Ee;var BEe=YW(o6n,"ElkGraphLayoutTransferrer",1297);wDn(1298,1,k1n,cg);lce.Mb=function n(e){return $F(this.a,bG(e,18))};var HEe=YW(o6n,"ElkGraphLayoutTransferrer/lambda$0$Type",1298);wDn(1299,1,WZn,ug);lce.Cd=function n(e){nP();ED(this.a,bG(e,18))};var UEe=YW(o6n,"ElkGraphLayoutTransferrer/lambda$1$Type",1299);wDn(1300,1,k1n,sg);lce.Mb=function n(e){return UK(this.a,bG(e,18))};var GEe=YW(o6n,"ElkGraphLayoutTransferrer/lambda$2$Type",1300);wDn(1301,1,WZn,og);lce.Cd=function n(e){nP();ED(this.a,bG(e,18))};var qEe=YW(o6n,"ElkGraphLayoutTransferrer/lambda$3$Type",1301);wDn(819,1,{},BF);var XEe=YW(w6n,"BiLinkedHashMultiMap",819);wDn(1550,1,W4n,rt);lce.Kf=function n(e,t){Xun(bG(e,36),t)};var VEe=YW(w6n,"CommentNodeMarginCalculator",1550);wDn(1551,1,{},it);lce.Kb=function n(e){return new gX(null,new d3(bG(e,30).a,16))};var zEe=YW(w6n,"CommentNodeMarginCalculator/lambda$0$Type",1551);wDn(1552,1,WZn,at);lce.Cd=function n(e){pXn(bG(e,10))};var WEe=YW(w6n,"CommentNodeMarginCalculator/lambda$1$Type",1552);wDn(1553,1,W4n,ct);lce.Kf=function n(e,t){n_n(bG(e,36),t)};var QEe=YW(w6n,"CommentPostprocessor",1553);wDn(1554,1,W4n,ut);lce.Kf=function n(e,t){EQn(bG(e,36),t)};var JEe=YW(w6n,"CommentPreprocessor",1554);wDn(1555,1,W4n,st);lce.Kf=function n(e,t){UKn(bG(e,36),t)};var YEe=YW(w6n,"ConstraintsPostprocessor",1555);wDn(1556,1,W4n,ot);lce.Kf=function n(e,t){Non(bG(e,36),t)};var ZEe=YW(w6n,"EdgeAndLayerConstraintEdgeReverser",1556);wDn(1557,1,W4n,ft);lce.Kf=function n(e,t){hpn(bG(e,36),t)};var nSe=YW(w6n,"EndLabelPostprocessor",1557);wDn(1558,1,{},ht);lce.Kb=function n(e){return new gX(null,new d3(bG(e,30).a,16))};var eSe=YW(w6n,"EndLabelPostprocessor/lambda$0$Type",1558);wDn(1559,1,k1n,lt);lce.Mb=function n(e){return Q8(bG(e,10))};var tSe=YW(w6n,"EndLabelPostprocessor/lambda$1$Type",1559);wDn(1560,1,WZn,bt);lce.Cd=function n(e){qEn(bG(e,10))};var rSe=YW(w6n,"EndLabelPostprocessor/lambda$2$Type",1560);wDn(1561,1,W4n,wt);lce.Kf=function n(e,t){xAn(bG(e,36),t)};var iSe=YW(w6n,"EndLabelPreprocessor",1561);wDn(1562,1,{},dt);lce.Kb=function n(e){return new gX(null,new d3(bG(e,30).a,16))};var aSe=YW(w6n,"EndLabelPreprocessor/lambda$0$Type",1562);wDn(1563,1,WZn,KB);lce.Cd=function n(e){lP(this.a,this.b,this.c,bG(e,10))};lce.a=0;lce.b=0;lce.c=false;var cSe=YW(w6n,"EndLabelPreprocessor/lambda$1$Type",1563);wDn(1564,1,k1n,gt);lce.Mb=function n(e){return BA(lIn(bG(e,72),(IYn(),wFe)))===BA((ian(),v5e))};var uSe=YW(w6n,"EndLabelPreprocessor/lambda$2$Type",1564);wDn(1565,1,WZn,fg);lce.Cd=function n(e){hq(this.a,bG(e,72))};var sSe=YW(w6n,"EndLabelPreprocessor/lambda$3$Type",1565);wDn(1566,1,k1n,vt);lce.Mb=function n(e){return BA(lIn(bG(e,72),(IYn(),wFe)))===BA((ian(),g5e))};var oSe=YW(w6n,"EndLabelPreprocessor/lambda$4$Type",1566);wDn(1567,1,WZn,hg);lce.Cd=function n(e){hq(this.a,bG(e,72))};var fSe=YW(w6n,"EndLabelPreprocessor/lambda$5$Type",1567);wDn(1615,1,W4n,qh);lce.Kf=function n(e,t){_dn(bG(e,36),t)};var hSe;var lSe=YW(w6n,"EndLabelSorter",1615);wDn(1616,1,l2n,pt);lce.Ne=function n(e,t){return lkn(bG(e,466),bG(t,466))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var bSe=YW(w6n,"EndLabelSorter/1",1616);wDn(466,1,{466:1},lZ);var wSe=YW(w6n,"EndLabelSorter/LabelGroup",466);wDn(1617,1,{},mt);lce.Kb=function n(e){return ZS(),new gX(null,new d3(bG(e,30).a,16))};var dSe=YW(w6n,"EndLabelSorter/lambda$0$Type",1617);wDn(1618,1,k1n,kt);lce.Mb=function n(e){return ZS(),bG(e,10).k==(YIn(),rEe)};var gSe=YW(w6n,"EndLabelSorter/lambda$1$Type",1618);wDn(1619,1,WZn,yt);lce.Cd=function n(e){ZIn(bG(e,10))};var vSe=YW(w6n,"EndLabelSorter/lambda$2$Type",1619);wDn(1620,1,k1n,Mt);lce.Mb=function n(e){return ZS(),BA(lIn(bG(e,72),(IYn(),wFe)))===BA((ian(),g5e))};var pSe=YW(w6n,"EndLabelSorter/lambda$3$Type",1620);wDn(1621,1,k1n,Tt);lce.Mb=function n(e){return ZS(),BA(lIn(bG(e,72),(IYn(),wFe)))===BA((ian(),v5e))};var mSe=YW(w6n,"EndLabelSorter/lambda$4$Type",1621);wDn(1568,1,W4n,jt);lce.Kf=function n(e,t){WXn(this,bG(e,36))};lce.b=0;lce.c=0;var kSe=YW(w6n,"FinalSplineBendpointsCalculator",1568);wDn(1569,1,{},Et);lce.Kb=function n(e){return new gX(null,new d3(bG(e,30).a,16))};var ySe=YW(w6n,"FinalSplineBendpointsCalculator/lambda$0$Type",1569);wDn(1570,1,{},St);lce.Kb=function n(e){return new gX(null,new RW(new GV(sx(Jgn(bG(e,10)).a.Kc(),new d))))};var MSe=YW(w6n,"FinalSplineBendpointsCalculator/lambda$1$Type",1570);wDn(1571,1,k1n,Pt);lce.Mb=function n(e){return!j9(bG(e,18))};var TSe=YW(w6n,"FinalSplineBendpointsCalculator/lambda$2$Type",1571);wDn(1572,1,k1n,Ct);lce.Mb=function n(e){return jR(bG(e,18),(WYn(),GDe))};var jSe=YW(w6n,"FinalSplineBendpointsCalculator/lambda$3$Type",1572);wDn(1573,1,WZn,lg);lce.Cd=function n(e){rUn(this.a,bG(e,131))};var ESe=YW(w6n,"FinalSplineBendpointsCalculator/lambda$4$Type",1573);wDn(1574,1,WZn,It);lce.Cd=function n(e){qAn(bG(e,18).a)};var SSe=YW(w6n,"FinalSplineBendpointsCalculator/lambda$5$Type",1574);wDn(803,1,W4n,bg);lce.Kf=function n(e,t){gzn(this,bG(e,36),t)};var PSe=YW(w6n,"GraphTransformer",803);wDn(517,22,{3:1,34:1,22:1,517:1},LC);var CSe,ISe;var OSe=qan(w6n,"GraphTransformer/Mode",517,joe,g1,YH);var ASe;wDn(1575,1,W4n,Ot);lce.Kf=function n(e,t){mRn(bG(e,36),t)};var LSe=YW(w6n,"HierarchicalNodeResizingProcessor",1575);wDn(1576,1,W4n,At);lce.Kf=function n(e,t){kun(bG(e,36),t)};var NSe=YW(w6n,"HierarchicalPortConstraintProcessor",1576);wDn(1577,1,l2n,Lt);lce.Ne=function n(e,t){return myn(bG(e,10),bG(t,10))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var $Se=YW(w6n,"HierarchicalPortConstraintProcessor/NodeComparator",1577);wDn(1578,1,W4n,Nt);lce.Kf=function n(e,t){VGn(bG(e,36),t)};var DSe=YW(w6n,"HierarchicalPortDummySizeProcessor",1578);wDn(1579,1,W4n,$t);lce.Kf=function n(e,t){Y_n(this,bG(e,36),t)};lce.a=0;var xSe=YW(w6n,"HierarchicalPortOrthogonalEdgeRouter",1579);wDn(1580,1,l2n,Dt);lce.Ne=function n(e,t){return Dx(bG(e,10),bG(t,10))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var RSe=YW(w6n,"HierarchicalPortOrthogonalEdgeRouter/1",1580);wDn(1581,1,l2n,xt);lce.Ne=function n(e,t){return _en(bG(e,10),bG(t,10))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var KSe=YW(w6n,"HierarchicalPortOrthogonalEdgeRouter/2",1581);wDn(1582,1,W4n,Rt);lce.Kf=function n(e,t){cIn(bG(e,36),t)};var FSe=YW(w6n,"HierarchicalPortPositionProcessor",1582);wDn(1583,1,W4n,nl);lce.Kf=function n(e,t){AJn(this,bG(e,36))};lce.a=0;lce.c=0;var _Se,BSe;var HSe=YW(w6n,"HighDegreeNodeLayeringProcessor",1583);wDn(580,1,{580:1},Kt);lce.b=-1;lce.d=-1;var USe=YW(w6n,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",580);wDn(1584,1,{},Ft);lce.Kb=function n(e){return VB(),Qgn(bG(e,10))};lce.Fb=function n(e){return this===e};var GSe=YW(w6n,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1584);wDn(1585,1,{},_t);lce.Kb=function n(e){return VB(),Jgn(bG(e,10))};lce.Fb=function n(e){return this===e};var qSe=YW(w6n,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1585);wDn(1591,1,W4n,Bt);lce.Kf=function n(e,t){CGn(this,bG(e,36),t)};var XSe=YW(w6n,"HyperedgeDummyMerger",1591);wDn(804,1,{},BB);lce.a=false;lce.b=false;lce.c=false;var VSe=YW(w6n,"HyperedgeDummyMerger/MergeState",804);wDn(1592,1,{},Ht);lce.Kb=function n(e){return new gX(null,new d3(bG(e,30).a,16))};var zSe=YW(w6n,"HyperedgeDummyMerger/lambda$0$Type",1592);wDn(1593,1,{},Ut);lce.Kb=function n(e){return new gX(null,new d3(bG(e,10).j,16))};var WSe=YW(w6n,"HyperedgeDummyMerger/lambda$1$Type",1593);wDn(1594,1,WZn,Gt);lce.Cd=function n(e){bG(e,12).p=-1};var QSe=YW(w6n,"HyperedgeDummyMerger/lambda$2$Type",1594);wDn(1595,1,W4n,qt);lce.Kf=function n(e,t){EGn(bG(e,36),t)};var JSe=YW(w6n,"HypernodesProcessor",1595);wDn(1596,1,W4n,Xt);lce.Kf=function n(e,t){qGn(bG(e,36),t)};var YSe=YW(w6n,"InLayerConstraintProcessor",1596);wDn(1597,1,W4n,Vt);lce.Kf=function n(e,t){Ksn(bG(e,36),t)};var ZSe=YW(w6n,"InnermostNodeMarginCalculator",1597);wDn(1598,1,W4n,zt);lce.Kf=function n(e,t){yQn(this,bG(e,36))};lce.a=M0n;lce.b=M0n;lce.c=y0n;lce.d=y0n;var nPe=YW(w6n,"InteractiveExternalPortPositioner",1598);wDn(1599,1,{},Wt);lce.Kb=function n(e){return bG(e,18).d.i};lce.Fb=function n(e){return this===e};var ePe=YW(w6n,"InteractiveExternalPortPositioner/lambda$0$Type",1599);wDn(1600,1,{},wg);lce.Kb=function n(e){return Rx(this.a,MK(e))};lce.Fb=function n(e){return this===e};var tPe=YW(w6n,"InteractiveExternalPortPositioner/lambda$1$Type",1600);wDn(1601,1,{},Qt);lce.Kb=function n(e){return bG(e,18).c.i};lce.Fb=function n(e){return this===e};var rPe=YW(w6n,"InteractiveExternalPortPositioner/lambda$2$Type",1601);wDn(1602,1,{},dg);lce.Kb=function n(e){return Kx(this.a,MK(e))};lce.Fb=function n(e){return this===e};var iPe=YW(w6n,"InteractiveExternalPortPositioner/lambda$3$Type",1602);wDn(1603,1,{},gg);lce.Kb=function n(e){return JF(this.a,MK(e))};lce.Fb=function n(e){return this===e};var aPe=YW(w6n,"InteractiveExternalPortPositioner/lambda$4$Type",1603);wDn(1604,1,{},vg);lce.Kb=function n(e){return YF(this.a,MK(e))};lce.Fb=function n(e){return this===e};var cPe=YW(w6n,"InteractiveExternalPortPositioner/lambda$5$Type",1604);wDn(81,22,{3:1,34:1,22:1,81:1,196:1},NC);lce.dg=function n(){switch(this.g){case 15:return new ga;case 22:return new va;case 47:return new ka;case 28:case 35:return new ur;case 32:return new rt;case 42:return new ct;case 1:return new ut;case 41:return new st;case 56:return new bg((xsn(),ISe));case 0:return new bg((xsn(),CSe));case 2:return new ot;case 54:return new ft;case 33:return new wt;case 51:return new jt;case 55:return new Ot;case 13:return new At;case 38:return new Nt;case 44:return new $t;case 40:return new Rt;case 9:return new nl;case 49:return new zx;case 37:return new Bt;case 43:return new qt;case 27:return new Xt;case 30:return new Vt;case 3:return new zt;case 18:return new Yt;case 29:return new Zt;case 5:return new el;case 50:return new Jt;case 34:return new tl;case 36:return new sr;case 52:return new qh;case 11:return new or;case 7:return new rl;case 39:return new fr;case 45:return new hr;case 16:return new lr;case 10:return new HI;case 48:return new gr;case 21:return new vr;case 23:return new Yy((ucn(),WUe));case 8:return new mr;case 12:return new yr;case 4:return new Mr;case 19:return new ol;case 17:return new Lr;case 53:return new Nr;case 6:return new Xr;case 25:return new Ik;case 46:return new Fr;case 31:return new qF;case 14:return new ni;case 26:return new Pa;case 20:return new ai;case 24:return new Yy((ucn(),QUe));default:throw dm(new jM(p6n+(this.f!=null?this.f:""+this.g)))}};var uPe,sPe,oPe,fPe,hPe,lPe,bPe,wPe,dPe,gPe,vPe,pPe,mPe,kPe,yPe,MPe,TPe,jPe,EPe,SPe,PPe,CPe,IPe,OPe,APe,LPe,NPe,$Pe,DPe,xPe,RPe,KPe,FPe,_Pe,BPe,HPe,UPe,GPe,qPe,XPe,VPe,zPe,WPe,QPe,JPe,YPe,ZPe,nCe,eCe,tCe,rCe,iCe,aCe,cCe,uCe,sCe,oCe;var fCe=qan(w6n,m6n,81,joe,pKn,JB);var hCe;wDn(1605,1,W4n,Yt);lce.Kf=function n(e,t){pQn(bG(e,36),t)};var lCe=YW(w6n,"InvertedPortProcessor",1605);wDn(1606,1,W4n,Zt);lce.Kf=function n(e,t){_Hn(bG(e,36),t)};var bCe=YW(w6n,"LabelAndNodeSizeProcessor",1606);wDn(1607,1,k1n,nr);lce.Mb=function n(e){return bG(e,10).k==(YIn(),rEe)};var wCe=YW(w6n,"LabelAndNodeSizeProcessor/lambda$0$Type",1607);wDn(1608,1,k1n,er);lce.Mb=function n(e){return bG(e,10).k==(YIn(),nEe)};var dCe=YW(w6n,"LabelAndNodeSizeProcessor/lambda$1$Type",1608);wDn(1609,1,WZn,UB);lce.Cd=function n(e){bP(this.b,this.a,this.c,bG(e,10))};lce.a=false;lce.c=false;var gCe=YW(w6n,"LabelAndNodeSizeProcessor/lambda$2$Type",1609);wDn(1610,1,W4n,el);lce.Kf=function n(e,t){OWn(bG(e,36),t)};var vCe;var pCe=YW(w6n,"LabelDummyInserter",1610);wDn(1611,1,O2n,tr);lce.Lb=function n(e){return BA(lIn(bG(e,72),(IYn(),wFe)))===BA((ian(),d5e))};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return BA(lIn(bG(e,72),(IYn(),wFe)))===BA((ian(),d5e))};var mCe=YW(w6n,"LabelDummyInserter/1",1611);wDn(1612,1,W4n,Jt);lce.Kf=function n(e,t){uWn(bG(e,36),t)};var kCe=YW(w6n,"LabelDummyRemover",1612);wDn(1613,1,k1n,rr);lce.Mb=function n(e){return lM(yK(lIn(bG(e,72),(IYn(),bFe))))};var yCe=YW(w6n,"LabelDummyRemover/lambda$0$Type",1613);wDn(1378,1,W4n,tl);lce.Kf=function n(e,t){zzn(this,bG(e,36),t)};lce.a=null;var MCe;var TCe=YW(w6n,"LabelDummySwitcher",1378);wDn(293,1,{293:1},lHn);lce.c=0;lce.d=null;lce.f=0;var jCe=YW(w6n,"LabelDummySwitcher/LabelDummyInfo",293);wDn(1379,1,{},ir);lce.Kb=function n(e){return Lsn(),new gX(null,new d3(bG(e,30).a,16))};var ECe=YW(w6n,"LabelDummySwitcher/lambda$0$Type",1379);wDn(1380,1,k1n,ar);lce.Mb=function n(e){return Lsn(),bG(e,10).k==(YIn(),eEe)};var SCe=YW(w6n,"LabelDummySwitcher/lambda$1$Type",1380);wDn(1381,1,{},pg);lce.Kb=function n(e){return GK(this.a,bG(e,10))};var PCe=YW(w6n,"LabelDummySwitcher/lambda$2$Type",1381);wDn(1382,1,WZn,mg);lce.Cd=function n(e){yQ(this.a,bG(e,293))};var CCe=YW(w6n,"LabelDummySwitcher/lambda$3$Type",1382);wDn(1383,1,l2n,cr);lce.Ne=function n(e,t){return az(bG(e,293),bG(t,293))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var ICe=YW(w6n,"LabelDummySwitcher/lambda$4$Type",1383);wDn(802,1,W4n,ur);lce.Kf=function n(e,t){_nn(bG(e,36),t)};var OCe=YW(w6n,"LabelManagementProcessor",802);wDn(1614,1,W4n,sr);lce.Kf=function n(e,t){IFn(bG(e,36),t)};var ACe=YW(w6n,"LabelSideSelector",1614);wDn(1622,1,W4n,or);lce.Kf=function n(e,t){Sqn(bG(e,36),t)};var LCe=YW(w6n,"LayerConstraintPostprocessor",1622);wDn(1623,1,W4n,rl);lce.Kf=function n(e,t){jDn(bG(e,36),t)};var NCe;var $Ce=YW(w6n,"LayerConstraintPreprocessor",1623);wDn(371,22,{3:1,34:1,22:1,371:1},$C);var DCe,xCe,RCe,KCe;var FCe=qan(w6n,"LayerConstraintPreprocessor/HiddenNodeConnections",371,joe,W6,YB);var _Ce;wDn(1624,1,W4n,fr);lce.Kf=function n(e,t){YVn(bG(e,36),t)};var BCe=YW(w6n,"LayerSizeAndGraphHeightCalculator",1624);wDn(1625,1,W4n,hr);lce.Kf=function n(e,t){kRn(bG(e,36),t)};var HCe=YW(w6n,"LongEdgeJoiner",1625);wDn(1626,1,W4n,lr);lce.Kf=function n(e,t){vVn(bG(e,36),t)};var UCe=YW(w6n,"LongEdgeSplitter",1626);wDn(1627,1,W4n,HI);lce.Kf=function n(e,t){ZWn(this,bG(e,36),t)};lce.e=0;lce.f=0;lce.j=0;lce.k=0;lce.n=0;lce.o=0;var GCe,qCe;var XCe=YW(w6n,"NodePromotion",1627);wDn(1628,1,l2n,br);lce.Ne=function n(e,t){return Fln(bG(e,10),bG(t,10))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var VCe=YW(w6n,"NodePromotion/1",1628);wDn(1629,1,l2n,wr);lce.Ne=function n(e,t){return _ln(bG(e,10),bG(t,10))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var zCe=YW(w6n,"NodePromotion/2",1629);wDn(1630,1,{},dr);lce.Kb=function n(e){return bG(e,42),zB(),Qx(),true};lce.Fb=function n(e){return this===e};var WCe=YW(w6n,"NodePromotion/lambda$0$Type",1630);wDn(1631,1,{},Tg);lce.Kb=function n(e){return L0(this.a,bG(e,42))};lce.Fb=function n(e){return this===e};lce.a=0;var QCe=YW(w6n,"NodePromotion/lambda$1$Type",1631);wDn(1632,1,{},jg);lce.Kb=function n(e){return A0(this.a,bG(e,42))};lce.Fb=function n(e){return this===e};lce.a=0;var JCe=YW(w6n,"NodePromotion/lambda$2$Type",1632);wDn(1633,1,W4n,gr);lce.Kf=function n(e,t){mJn(bG(e,36),t)};var YCe=YW(w6n,"NorthSouthPortPostprocessor",1633);wDn(1634,1,W4n,vr);lce.Kf=function n(e,t){GQn(bG(e,36),t)};var ZCe=YW(w6n,"NorthSouthPortPreprocessor",1634);wDn(1635,1,l2n,pr);lce.Ne=function n(e,t){return efn(bG(e,12),bG(t,12))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var nIe=YW(w6n,"NorthSouthPortPreprocessor/lambda$0$Type",1635);wDn(1636,1,W4n,mr);lce.Kf=function n(e,t){VUn(bG(e,36),t)};var eIe=YW(w6n,"PartitionMidprocessor",1636);wDn(1637,1,k1n,kr);lce.Mb=function n(e){return jR(bG(e,10),(IYn(),h_e))};var tIe=YW(w6n,"PartitionMidprocessor/lambda$0$Type",1637);wDn(1638,1,WZn,Eg);lce.Cd=function n(e){YY(this.a,bG(e,10))};var rIe=YW(w6n,"PartitionMidprocessor/lambda$1$Type",1638);wDn(1639,1,W4n,yr);lce.Kf=function n(e,t){tKn(bG(e,36),t)};var iIe=YW(w6n,"PartitionPostprocessor",1639);wDn(1640,1,W4n,Mr);lce.Kf=function n(e,t){P$n(bG(e,36),t)};var aIe=YW(w6n,"PartitionPreprocessor",1640);wDn(1641,1,k1n,Tr);lce.Mb=function n(e){return jR(bG(e,10),(IYn(),h_e))};var cIe=YW(w6n,"PartitionPreprocessor/lambda$0$Type",1641);wDn(1642,1,{},jr);lce.Kb=function n(e){return new gX(null,new RW(new GV(sx(Jgn(bG(e,10)).a.Kc(),new d))))};var uIe=YW(w6n,"PartitionPreprocessor/lambda$1$Type",1642);wDn(1643,1,k1n,Er);lce.Mb=function n(e){return Mkn(bG(e,18))};var sIe=YW(w6n,"PartitionPreprocessor/lambda$2$Type",1643);wDn(1644,1,WZn,Sr);lce.Cd=function n(e){ohn(bG(e,18))};var oIe=YW(w6n,"PartitionPreprocessor/lambda$3$Type",1644);wDn(1645,1,W4n,ol);lce.Kf=function n(e,t){pUn(bG(e,36),t)};var fIe,hIe,lIe,bIe,wIe,dIe;var gIe=YW(w6n,"PortListSorter",1645);wDn(1648,1,l2n,Pr);lce.Ne=function n(e,t){return e8(bG(e,12),bG(t,12))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var vIe=YW(w6n,"PortListSorter/lambda$0$Type",1648);wDn(1650,1,l2n,Cr);lce.Ne=function n(e,t){return dGn(bG(e,12),bG(t,12))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var pIe=YW(w6n,"PortListSorter/lambda$1$Type",1650);wDn(1646,1,{},Ir);lce.Kb=function n(e){return Nln(),bG(e,12).e};var mIe=YW(w6n,"PortListSorter/lambda$2$Type",1646);wDn(1647,1,{},Or);lce.Kb=function n(e){return Nln(),bG(e,12).g};var kIe=YW(w6n,"PortListSorter/lambda$3$Type",1647);wDn(1649,1,l2n,Ar);lce.Ne=function n(e,t){return pjn(bG(e,12),bG(t,12))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var yIe=YW(w6n,"PortListSorter/lambda$4$Type",1649);wDn(1651,1,W4n,Lr);lce.Kf=function n(e,t){GDn(bG(e,36),t)};var MIe=YW(w6n,"PortSideProcessor",1651);wDn(1652,1,W4n,Nr);lce.Kf=function n(e,t){ABn(bG(e,36),t)};var TIe=YW(w6n,"ReversedEdgeRestorer",1652);wDn(1657,1,W4n,Ik);lce.Kf=function n(e,t){ETn(this,bG(e,36),t)};var jIe=YW(w6n,"SelfLoopPortRestorer",1657);wDn(1658,1,{},$r);lce.Kb=function n(e){return new gX(null,new d3(bG(e,30).a,16))};var EIe=YW(w6n,"SelfLoopPortRestorer/lambda$0$Type",1658);wDn(1659,1,k1n,Dr);lce.Mb=function n(e){return bG(e,10).k==(YIn(),rEe)};var SIe=YW(w6n,"SelfLoopPortRestorer/lambda$1$Type",1659);wDn(1660,1,k1n,xr);lce.Mb=function n(e){return jR(bG(e,10),(WYn(),_De))};var PIe=YW(w6n,"SelfLoopPortRestorer/lambda$2$Type",1660);wDn(1661,1,{},Rr);lce.Kb=function n(e){return bG(lIn(bG(e,10),(WYn(),_De)),337)};var CIe=YW(w6n,"SelfLoopPortRestorer/lambda$3$Type",1661);wDn(1662,1,WZn,yg);lce.Cd=function n(e){yOn(this.a,bG(e,337))};var IIe=YW(w6n,"SelfLoopPortRestorer/lambda$4$Type",1662);wDn(805,1,WZn,Kr);lce.Cd=function n(e){XOn(bG(e,105))};var OIe=YW(w6n,"SelfLoopPortRestorer/lambda$5$Type",805);wDn(1663,1,W4n,Fr);lce.Kf=function n(e,t){lyn(bG(e,36),t)};var AIe=YW(w6n,"SelfLoopPostProcessor",1663);wDn(1664,1,{},_r);lce.Kb=function n(e){return new gX(null,new d3(bG(e,30).a,16))};var LIe=YW(w6n,"SelfLoopPostProcessor/lambda$0$Type",1664);wDn(1665,1,k1n,Br);lce.Mb=function n(e){return bG(e,10).k==(YIn(),rEe)};var NIe=YW(w6n,"SelfLoopPostProcessor/lambda$1$Type",1665);wDn(1666,1,k1n,Hr);lce.Mb=function n(e){return jR(bG(e,10),(WYn(),_De))};var $Ie=YW(w6n,"SelfLoopPostProcessor/lambda$2$Type",1666);wDn(1667,1,WZn,Ur);lce.Cd=function n(e){ySn(bG(e,10))};var DIe=YW(w6n,"SelfLoopPostProcessor/lambda$3$Type",1667);wDn(1668,1,{},Gr);lce.Kb=function n(e){return new gX(null,new d3(bG(e,105).f,1))};var xIe=YW(w6n,"SelfLoopPostProcessor/lambda$4$Type",1668);wDn(1669,1,WZn,kg);lce.Cd=function n(e){Z6(this.a,bG(e,340))};var RIe=YW(w6n,"SelfLoopPostProcessor/lambda$5$Type",1669);wDn(1670,1,k1n,qr);lce.Mb=function n(e){return!!bG(e,105).i};var KIe=YW(w6n,"SelfLoopPostProcessor/lambda$6$Type",1670);wDn(1671,1,WZn,Mg);lce.Cd=function n(e){uM(this.a,bG(e,105))};var FIe=YW(w6n,"SelfLoopPostProcessor/lambda$7$Type",1671);wDn(1653,1,W4n,Xr);lce.Kf=function n(e,t){Gxn(bG(e,36),t)};var _Ie=YW(w6n,"SelfLoopPreProcessor",1653);wDn(1654,1,{},Vr);lce.Kb=function n(e){return new gX(null,new d3(bG(e,105).f,1))};var BIe=YW(w6n,"SelfLoopPreProcessor/lambda$0$Type",1654);wDn(1655,1,{},zr);lce.Kb=function n(e){return bG(e,340).a};var HIe=YW(w6n,"SelfLoopPreProcessor/lambda$1$Type",1655);wDn(1656,1,WZn,Wr);lce.Cd=function n(e){j$(bG(e,18))};var UIe=YW(w6n,"SelfLoopPreProcessor/lambda$2$Type",1656);wDn(1672,1,W4n,qF);lce.Kf=function n(e,t){BIn(this,bG(e,36),t)};var GIe=YW(w6n,"SelfLoopRouter",1672);wDn(1673,1,{},Qr);lce.Kb=function n(e){return new gX(null,new d3(bG(e,30).a,16))};var qIe=YW(w6n,"SelfLoopRouter/lambda$0$Type",1673);wDn(1674,1,k1n,Jr);lce.Mb=function n(e){return bG(e,10).k==(YIn(),rEe)};var XIe=YW(w6n,"SelfLoopRouter/lambda$1$Type",1674);wDn(1675,1,k1n,Yr);lce.Mb=function n(e){return jR(bG(e,10),(WYn(),_De))};var VIe=YW(w6n,"SelfLoopRouter/lambda$2$Type",1675);wDn(1676,1,{},Zr);lce.Kb=function n(e){return bG(lIn(bG(e,10),(WYn(),_De)),337)};var zIe=YW(w6n,"SelfLoopRouter/lambda$3$Type",1676);wDn(1677,1,WZn,DC);lce.Cd=function n(e){vY(this.a,this.b,bG(e,337))};var WIe=YW(w6n,"SelfLoopRouter/lambda$4$Type",1677);wDn(1678,1,W4n,ni);lce.Kf=function n(e,t){cFn(bG(e,36),t)};var QIe=YW(w6n,"SemiInteractiveCrossMinProcessor",1678);wDn(1679,1,k1n,ei);lce.Mb=function n(e){return bG(e,10).k==(YIn(),rEe)};var JIe=YW(w6n,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1679);wDn(1680,1,k1n,ti);lce.Mb=function n(e){return PX(bG(e,10))._b((IYn(),S_e))};var YIe=YW(w6n,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1680);wDn(1681,1,l2n,ri);lce.Ne=function n(e,t){return Oun(bG(e,10),bG(t,10))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var ZIe=YW(w6n,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1681);wDn(1682,1,{},ii);lce.Ve=function n(e,t){return ZY(bG(e,10),bG(t,10))};var nOe=YW(w6n,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1682);wDn(1684,1,W4n,ai);lce.Kf=function n(e,t){PXn(bG(e,36),t)};var eOe=YW(w6n,"SortByInputModelProcessor",1684);wDn(1685,1,k1n,ci);lce.Mb=function n(e){return bG(e,12).g.c.length!=0};var tOe=YW(w6n,"SortByInputModelProcessor/lambda$0$Type",1685);wDn(1686,1,WZn,Sg);lce.Cd=function n(e){iAn(this.a,bG(e,12))};var rOe=YW(w6n,"SortByInputModelProcessor/lambda$1$Type",1686);wDn(1759,817,{},Uun);lce.df=function n(e){var t,r,i,a;this.c=e;switch(this.a.g){case 2:t=new im;ES(tY(new gX(null,new d3(this.c.a.b,16)),new ki),new XC(this,t));eLn(this,new si);Lin(t,new oi);t.c.length=0;ES(tY(new gX(null,new d3(this.c.a.b,16)),new fi),new Cg(t));eLn(this,new hi);Lin(t,new li);t.c.length=0;r=m$(Csn(iY(new gX(null,new d3(this.c.a.b,16)),new Ig(this))),new bi);ES(new gX(null,new d3(this.c.a.a,16)),new KC(r,t));eLn(this,new di);Lin(t,new gi);t.c.length=0;break;case 3:i=new im;eLn(this,new ui);a=m$(Csn(iY(new gX(null,new d3(this.c.a.b,16)),new Pg(this))),new wi);ES(tY(new gX(null,new d3(this.c.a.b,16)),new vi),new _C(a,i));eLn(this,new pi);Lin(i,new mi);i.c.length=0;break;default:throw dm(new Vm)}};lce.b=0;var iOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation",1759);wDn(1760,1,O2n,ui);lce.Lb=function n(e){return G$(bG(e,60).g,154)};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return G$(bG(e,60).g,154)};var aOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1760);wDn(1761,1,{},Pg);lce.Ye=function n(e){return FLn(this.a,bG(e,60))};var cOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1761);wDn(1769,1,y1n,xC);lce.de=function n(){CEn(this.a,this.b,-1)};lce.b=0;var uOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1769);wDn(1771,1,O2n,si);lce.Lb=function n(e){return G$(bG(e,60).g,154)};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return G$(bG(e,60).g,154)};var sOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1771);wDn(1772,1,WZn,oi);lce.Cd=function n(e){bG(e,380).de()};var oOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1772);wDn(1773,1,k1n,fi);lce.Mb=function n(e){return G$(bG(e,60).g,10)};var fOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1773);wDn(1775,1,WZn,Cg);lce.Cd=function n(e){cvn(this.a,bG(e,60))};var hOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1775);wDn(1774,1,y1n,BC);lce.de=function n(){CEn(this.b,this.a,-1)};lce.a=0;var lOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1774);wDn(1776,1,O2n,hi);lce.Lb=function n(e){return G$(bG(e,60).g,10)};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return G$(bG(e,60).g,10)};var bOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1776);wDn(1777,1,WZn,li);lce.Cd=function n(e){bG(e,380).de()};var wOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1777);wDn(1778,1,{},Ig);lce.Ye=function n(e){return _Ln(this.a,bG(e,60))};var dOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1778);wDn(1779,1,{},bi);lce.We=function n(){return 0};var gOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1779);wDn(1762,1,{},wi);lce.We=function n(){return 0};var vOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1762);wDn(1781,1,WZn,KC);lce.Cd=function n(e){bV(this.a,this.b,bG(e,316))};lce.a=0;var pOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1781);wDn(1780,1,y1n,FC);lce.de=function n(){VDn(this.a,this.b,-1)};lce.b=0;var mOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1780);wDn(1782,1,O2n,di);lce.Lb=function n(e){return bG(e,60),true};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return bG(e,60),true};var kOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1782);wDn(1783,1,WZn,gi);lce.Cd=function n(e){bG(e,380).de()};var yOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1783);wDn(1763,1,k1n,vi);lce.Mb=function n(e){return G$(bG(e,60).g,10)};var MOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1763);wDn(1765,1,WZn,_C);lce.Cd=function n(e){wV(this.a,this.b,bG(e,60))};lce.a=0;var TOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1765);wDn(1764,1,y1n,HC);lce.de=function n(){CEn(this.b,this.a,-1)};lce.a=0;var jOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1764);wDn(1766,1,O2n,pi);lce.Lb=function n(e){return bG(e,60),true};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return bG(e,60),true};var EOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1766);wDn(1767,1,WZn,mi);lce.Cd=function n(e){bG(e,380).de()};var SOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1767);wDn(1768,1,k1n,ki);lce.Mb=function n(e){return G$(bG(e,60).g,154)};var POe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1768);wDn(1770,1,WZn,XC);lce.Cd=function n(e){Tin(this.a,this.b,bG(e,60))};var COe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1770);wDn(1586,1,W4n,zx);lce.Kf=function n(e,t){SVn(this,bG(e,36),t)};var IOe;var OOe=YW(j6n,"HorizontalGraphCompactor",1586);wDn(1587,1,{},Og);lce.ff=function n(e,t){var r,i,a;if(Ftn(e,t)){return 0}r=Y4(e);i=Y4(t);if(!!r&&r.k==(YIn(),nEe)||!!i&&i.k==(YIn(),nEe)){return 0}a=bG(lIn(this.a.a,(WYn(),BDe)),312);return qx(a,r?r.k:(YIn(),tEe),i?i.k:(YIn(),tEe))};lce.gf=function n(e,t){var r,i,a;if(Ftn(e,t)){return 1}r=Y4(e);i=Y4(t);a=bG(lIn(this.a.a,(WYn(),BDe)),312);return Xx(a,r?r.k:(YIn(),tEe),i?i.k:(YIn(),tEe))};var AOe=YW(j6n,"HorizontalGraphCompactor/1",1587);wDn(1588,1,{},yi);lce.ef=function n(e,t){return tP(),e.a.i==0};var LOe=YW(j6n,"HorizontalGraphCompactor/lambda$0$Type",1588);wDn(1589,1,{},Ag);lce.ef=function n(e,t){return iZ(this.a,e,t)};var NOe=YW(j6n,"HorizontalGraphCompactor/lambda$1$Type",1589);wDn(1730,1,{},Atn);var $Oe,DOe;var xOe=YW(j6n,"LGraphToCGraphTransformer",1730);wDn(1738,1,k1n,Mi);lce.Mb=function n(e){return e!=null};var ROe=YW(j6n,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1738);wDn(1731,1,{},Ti);lce.Kb=function n(e){return WB(),fvn(lIn(bG(bG(e,60).g,10),(WYn(),EDe)))};var KOe=YW(j6n,"LGraphToCGraphTransformer/lambda$0$Type",1731);wDn(1732,1,{},ji);lce.Kb=function n(e){return WB(),qwn(bG(bG(e,60).g,154))};var FOe=YW(j6n,"LGraphToCGraphTransformer/lambda$1$Type",1732);wDn(1741,1,k1n,Ei);lce.Mb=function n(e){return WB(),G$(bG(e,60).g,10)};var _Oe=YW(j6n,"LGraphToCGraphTransformer/lambda$10$Type",1741);wDn(1742,1,WZn,Si);lce.Cd=function n(e){IZ(bG(e,60))};var BOe=YW(j6n,"LGraphToCGraphTransformer/lambda$11$Type",1742);wDn(1743,1,k1n,Pi);lce.Mb=function n(e){return WB(),G$(bG(e,60).g,154)};var HOe=YW(j6n,"LGraphToCGraphTransformer/lambda$12$Type",1743);wDn(1747,1,WZn,Ci);lce.Cd=function n(e){Gwn(bG(e,60))};var UOe=YW(j6n,"LGraphToCGraphTransformer/lambda$13$Type",1747);wDn(1744,1,WZn,Lg);lce.Cd=function n(e){nN(this.a,bG(e,8))};lce.a=0;var GOe=YW(j6n,"LGraphToCGraphTransformer/lambda$14$Type",1744);wDn(1745,1,WZn,Ng);lce.Cd=function n(e){tN(this.a,bG(e,116))};lce.a=0;var qOe=YW(j6n,"LGraphToCGraphTransformer/lambda$15$Type",1745);wDn(1746,1,WZn,$g);lce.Cd=function n(e){eN(this.a,bG(e,8))};lce.a=0;var XOe=YW(j6n,"LGraphToCGraphTransformer/lambda$16$Type",1746);wDn(1748,1,{},Ii);lce.Kb=function n(e){return WB(),new gX(null,new RW(new GV(sx(Jgn(bG(e,10)).a.Kc(),new d))))};var VOe=YW(j6n,"LGraphToCGraphTransformer/lambda$17$Type",1748);wDn(1749,1,k1n,Oi);lce.Mb=function n(e){return WB(),j9(bG(e,18))};var zOe=YW(j6n,"LGraphToCGraphTransformer/lambda$18$Type",1749);wDn(1750,1,WZn,Dg);lce.Cd=function n(e){grn(this.a,bG(e,18))};var WOe=YW(j6n,"LGraphToCGraphTransformer/lambda$19$Type",1750);wDn(1734,1,WZn,xg);lce.Cd=function n(e){e4(this.a,bG(e,154))};var QOe=YW(j6n,"LGraphToCGraphTransformer/lambda$2$Type",1734);wDn(1751,1,{},Ai);lce.Kb=function n(e){return WB(),new gX(null,new d3(bG(e,30).a,16))};var JOe=YW(j6n,"LGraphToCGraphTransformer/lambda$20$Type",1751);wDn(1752,1,{},Li);lce.Kb=function n(e){return WB(),new gX(null,new RW(new GV(sx(Jgn(bG(e,10)).a.Kc(),new d))))};var YOe=YW(j6n,"LGraphToCGraphTransformer/lambda$21$Type",1752);wDn(1753,1,{},Ni);lce.Kb=function n(e){return WB(),bG(lIn(bG(e,18),(WYn(),GDe)),15)};var ZOe=YW(j6n,"LGraphToCGraphTransformer/lambda$22$Type",1753);wDn(1754,1,k1n,$i);lce.Mb=function n(e){return Vx(bG(e,15))};var nAe=YW(j6n,"LGraphToCGraphTransformer/lambda$23$Type",1754);wDn(1755,1,WZn,Rg);lce.Cd=function n(e){MLn(this.a,bG(e,15))};var eAe=YW(j6n,"LGraphToCGraphTransformer/lambda$24$Type",1755);wDn(1733,1,WZn,VC);lce.Cd=function n(e){L5(this.a,this.b,bG(e,154))};var tAe=YW(j6n,"LGraphToCGraphTransformer/lambda$3$Type",1733);wDn(1735,1,{},Di);lce.Kb=function n(e){return WB(),new gX(null,new d3(bG(e,30).a,16))};var rAe=YW(j6n,"LGraphToCGraphTransformer/lambda$4$Type",1735);wDn(1736,1,{},xi);lce.Kb=function n(e){return WB(),new gX(null,new RW(new GV(sx(Jgn(bG(e,10)).a.Kc(),new d))))};var iAe=YW(j6n,"LGraphToCGraphTransformer/lambda$5$Type",1736);wDn(1737,1,{},Ri);lce.Kb=function n(e){return WB(),bG(lIn(bG(e,18),(WYn(),GDe)),15)};var aAe=YW(j6n,"LGraphToCGraphTransformer/lambda$6$Type",1737);wDn(1739,1,WZn,Kg);lce.Cd=function n(e){BLn(this.a,bG(e,15))};var cAe=YW(j6n,"LGraphToCGraphTransformer/lambda$8$Type",1739);wDn(1740,1,WZn,zC);lce.Cd=function n(e){E$(this.a,this.b,bG(e,154))};var uAe=YW(j6n,"LGraphToCGraphTransformer/lambda$9$Type",1740);wDn(1729,1,{},Ki);lce.cf=function n(e){var t,r,i,a,c;this.a=e;this.d=new hk;this.c=$nn(Wve,jZn,125,this.a.a.a.c.length,0,1);this.b=0;for(r=new nd(this.a.a.a);r.a=v){ED(u,Bwn(l));k=t.Math.max(k,y[l-1]-b);o+=g;p+=y[l-1]-p;b=y[l-1];g=f[l]}g=t.Math.max(g,f[l]);++l}o+=g}d=t.Math.min(1/k,1/r.b/o);if(d>a){a=d;i=u}}return i};lce.pg=function n(){return false};var aNe=YW(L6n,"MSDCutIndexHeuristic",816);wDn(1683,1,W4n,Pa);lce.Kf=function n(e,t){Nqn(bG(e,36),t)};var cNe=YW(L6n,"SingleEdgeGraphWrapper",1683);wDn(232,22,{3:1,34:1,22:1,232:1},eI);var uNe,sNe,oNe,fNe,hNe,lNe;var bNe=qan(N6n,"CenterEdgeLabelPlacementStrategy",232,joe,Ynn,tH);var wNe;wDn(431,22,{3:1,34:1,22:1,431:1},nI);var dNe,gNe;var vNe=qan(N6n,"ConstraintCalculationStrategy",431,joe,m1,rH);var pNe;wDn(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},tI);lce.dg=function n(){return iNn(this)};lce.qg=function n(){return iNn(this)};var mNe,kNe,yNe;var MNe=qan(N6n,"CrossingMinimizationStrategy",322,joe,X2,iH);var TNe;wDn(351,22,{3:1,34:1,22:1,351:1},rI);var jNe,ENe,SNe;var PNe=qan(N6n,"CuttingStrategy",351,joe,V2,aH);var CNe;wDn(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},iI);lce.dg=function n(){return DDn(this)};lce.qg=function n(){return DDn(this)};var INe,ONe,ANe,LNe,NNe;var $Ne=qan(N6n,"CycleBreakingStrategy",348,joe,d9,cH);var DNe;wDn(428,22,{3:1,34:1,22:1,428:1},aI);var xNe,RNe;var KNe=qan(N6n,"DirectionCongruency",428,joe,p1,uH);var FNe;wDn(460,22,{3:1,34:1,22:1,460:1},cI);var _Ne,BNe,HNe;var UNe=qan(N6n,"EdgeConstraint",460,joe,z2,wH);var GNe;wDn(283,22,{3:1,34:1,22:1,283:1},uI);var qNe,XNe,VNe,zNe,WNe,QNe;var JNe=qan(N6n,"EdgeLabelSideSelection",283,joe,Wnn,dH);var YNe;wDn(488,22,{3:1,34:1,22:1,488:1},sI);var ZNe,n$e;var e$e=qan(N6n,"EdgeStraighteningStrategy",488,joe,S1,gH);var t$e;wDn(281,22,{3:1,34:1,22:1,281:1},oI);var r$e,i$e,a$e,c$e,u$e,s$e;var o$e=qan(N6n,"FixedAlignment",281,joe,Qnn,bH);var f$e;wDn(282,22,{3:1,34:1,22:1,282:1},fI);var h$e,l$e,b$e,w$e,d$e,g$e;var v$e=qan(N6n,"GraphCompactionStrategy",282,joe,Jnn,sH);var p$e;wDn(259,22,{3:1,34:1,22:1,259:1},hI);var m$e,k$e,y$e,M$e,T$e,j$e,E$e,S$e,P$e,C$e;var I$e=qan(N6n,"GraphProperties",259,joe,lsn,oH);var O$e;wDn(299,22,{3:1,34:1,22:1,299:1},lI);var A$e,L$e,N$e;var $$e=qan(N6n,"GreedySwitchType",299,joe,W2,fH);var D$e;wDn(311,22,{3:1,34:1,22:1,311:1},bI);var x$e,R$e,K$e;var F$e=qan(N6n,"InLayerConstraint",311,joe,Q2,hH);var _$e;wDn(429,22,{3:1,34:1,22:1,429:1},wI);var B$e,H$e;var U$e=qan(N6n,"InteractiveReferencePoint",429,joe,v1,lH);var G$e;var q$e,X$e,V$e,z$e,W$e,Q$e,J$e,Y$e,Z$e,nDe,eDe,tDe,rDe,iDe,aDe,cDe,uDe,sDe,oDe,fDe,hDe,lDe,bDe,wDe,dDe,gDe,vDe,pDe,mDe,kDe,yDe,MDe,TDe,jDe,EDe,SDe,PDe,CDe,IDe,ODe,ADe,LDe,NDe,$De,DDe,xDe,RDe,KDe,FDe,_De,BDe,HDe,UDe,GDe,qDe,XDe,VDe,zDe;wDn(171,22,{3:1,34:1,22:1,171:1},dI);var WDe,QDe,JDe,YDe,ZDe;var nxe=qan(N6n,"LayerConstraint",171,joe,v9,vH);var exe;wDn(859,1,R2n,gl);lce.hf=function n(e){ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,_6n),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),_xe),(vAn(),j3e)),KNe),ygn((Hkn(),p3e)))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,B6n),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(Qx(),false)),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,H6n),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),oRe),j3e),U$e),ygn(p3e))));V4(e,H6n,Q6n,hRe);V4(e,H6n,c5n,fRe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,U6n),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,G6n),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),true),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(ZT(tj(ej(rj(QT(WT(nj(JT(YT(new _s,q6n),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),false),M3e),Uhe),ygn(m3e)),zfn(fT(vle,1),XZn,2,6,["org.eclipse.elk.layered.northOrSouthPort"]))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,X6n),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),zRe),j3e),pHe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,V6n),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),Bwn(7)),S3e),tle),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,z6n),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,W6n),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Q6n),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),Kxe),j3e),$Ne),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,J6n),s8n),"Node Layering Strategy"),"Strategy for node layering."),SRe),j3e),LBe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Y6n),s8n),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),gRe),j3e),nxe),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Z6n),s8n),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),S3e),tle),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,n5n),s8n),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Bwn(-1)),S3e),tle),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,e5n),o8n),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),Bwn(4)),S3e),tle),ygn(p3e))));V4(e,e5n,J6n,mRe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,t5n),o8n),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),Bwn(2)),S3e),tle),ygn(p3e))));V4(e,t5n,J6n,yRe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,r5n),f8n),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),jRe),j3e),sHe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,i5n),f8n),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Bwn(0)),S3e),tle),ygn(p3e))));V4(e,i5n,r5n,null);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,a5n),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Bwn(pZn)),S3e),tle),ygn(p3e))));V4(e,a5n,J6n,bRe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,c5n),h8n),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),xxe),j3e),MNe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,u5n),h8n),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,s5n),h8n),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),T3e),Yhe),ygn(p3e))));V4(e,s5n,l8n,Cxe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,o5n),h8n),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),false),M3e),Uhe),ygn(p3e))));V4(e,o5n,c5n,$xe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,f5n),h8n),"In Layer Predecessor of"),"Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer"),null),C3e),vle),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,h5n),h8n),"In Layer Successor of"),"Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer"),null),C3e),vle),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,l5n),h8n),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),S3e),tle),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,b5n),h8n),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Bwn(-1)),S3e),tle),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,w5n),b8n),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),Bwn(40)),S3e),tle),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,d5n),b8n),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),Exe),j3e),$$e),ygn(p3e))));V4(e,d5n,c5n,Sxe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,g5n),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),yxe),j3e),$$e),ygn(p3e))));V4(e,g5n,c5n,Mxe);V4(e,g5n,l8n,Txe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,v5n),w8n),"Node Placement Strategy"),"Strategy for node placement."),XRe),j3e),QBe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,p5n),w8n),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),M3e),Uhe),ygn(p3e))));V4(e,p5n,v5n,xRe);V4(e,p5n,v5n,RRe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,m5n),d8n),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),ORe),j3e),e$e),ygn(p3e))));V4(e,m5n,v5n,ARe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,k5n),d8n),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),NRe),j3e),o$e),ygn(p3e))));V4(e,k5n,v5n,$Re);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,y5n),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),T3e),Yhe),ygn(p3e))));V4(e,y5n,v5n,FRe);ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,M5n),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),j3e),UBe),ygn(v3e))));V4(e,M5n,v5n,GRe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,T5n),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),HRe),j3e),UBe),ygn(p3e))));V4(e,T5n,v5n,URe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,j5n),g8n),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),zxe),j3e),CHe),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,E5n),g8n),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),Qxe),j3e),NHe),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,S5n),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),Yxe),j3e),FHe),ygn(p3e))));V4(e,S5n,v8n,Zxe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,P5n),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),T3e),Yhe),ygn(p3e))));V4(e,P5n,v8n,eRe);V4(e,P5n,S5n,tRe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,C5n),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),T3e),Yhe),ygn(p3e))));V4(e,C5n,v8n,Xxe);ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,I5n),p8n),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,O5n),p8n),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,A5n),p8n),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,L5n),p8n),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,N5n),m8n),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),Bwn(0)),S3e),tle),ygn(d3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,$5n),m8n),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),Bwn(0)),S3e),tle),ygn(d3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,D5n),m8n),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),Bwn(0)),S3e),tle),ygn(d3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,x5n),k8n),T3n),"Tries to further compact components (disconnected sub-graphs)."),false),M3e),Uhe),ygn(p3e))));V4(e,x5n,o4n,true);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,R5n),y8n),"Post Compaction Strategy"),M8n),uxe),j3e),v$e),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,K5n),y8n),"Post Compaction Constraint Calculation"),M8n),axe),j3e),vNe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,F5n),T8n),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,_5n),T8n),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Bwn(16)),S3e),tle),ygn(p3e))));V4(e,_5n,F5n,true);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,B5n),T8n),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),Bwn(5)),S3e),tle),ygn(p3e))));V4(e,B5n,F5n,true);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,H5n),j8n),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),SKe),j3e),WHe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,U5n),j8n),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),T3e),Yhe),ygn(p3e))));V4(e,U5n,H5n,aKe);V4(e,U5n,H5n,cKe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,G5n),j8n),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),T3e),Yhe),ygn(p3e))));V4(e,G5n,H5n,sKe);V4(e,G5n,H5n,oKe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,q5n),E8n),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),gKe),j3e),PNe),ygn(p3e))));V4(e,q5n,H5n,vKe);V4(e,q5n,H5n,pKe);ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,X5n),E8n),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),P3e),uue),ygn(p3e))));V4(e,X5n,q5n,hKe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,V5n),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),bKe),S3e),tle),ygn(p3e))));V4(e,V5n,q5n,wKe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,z5n),S8n),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),AKe),j3e),GHe),ygn(p3e))));V4(e,z5n,H5n,LKe);V4(e,z5n,H5n,NKe);ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,W5n),S8n),"Valid Indices for Wrapping"),null),P3e),uue),ygn(p3e))));V4(e,W5n,H5n,CKe);V4(e,W5n,H5n,IKe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Q5n),P8n),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),true),M3e),Uhe),ygn(p3e))));V4(e,Q5n,H5n,MKe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,J5n),P8n),"Distance Penalty When Improving Cuts"),null),2),T3e),Yhe),ygn(p3e))));V4(e,J5n,H5n,kKe);V4(e,J5n,Q5n,true);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Y5n),P8n),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),true),M3e),Uhe),ygn(p3e))));V4(e,Y5n,H5n,jKe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Z5n),C8n),"Edge Label Side Selection"),"Method to decide on edge label sides."),Gxe),j3e),JNe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,n8n),C8n),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),Hxe),j3e),bNe),nV(p3e,zfn(fT(k3e,1),g1n,170,0,[g3e])))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,e8n),I8n),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),vxe),j3e),wHe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,t8n),I8n),"Consider Port Order"),"If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,r8n),I8n),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),false),M3e),Uhe),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,i8n),I8n),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),oxe),j3e),lje),ygn(p3e))));V4(e,i8n,o4n,null);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,a8n),I8n),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),bxe),j3e),RBe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,c8n),I8n),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),T3e),Yhe),ygn(p3e))));V4(e,c8n,e8n,null);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,u8n),I8n),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),T3e),Yhe),ygn(p3e))));V4(e,u8n,e8n,null);uZn((new vl,e))};var txe,rxe,ixe,axe,cxe,uxe,sxe,oxe,fxe,hxe,lxe,bxe,wxe,dxe,gxe,vxe,pxe,mxe,kxe,yxe,Mxe,Txe,jxe,Exe,Sxe,Pxe,Cxe,Ixe,Oxe,Axe,Lxe,Nxe,$xe,Dxe,xxe,Rxe,Kxe,Fxe,_xe,Bxe,Hxe,Uxe,Gxe,qxe,Xxe,Vxe,zxe,Wxe,Qxe,Jxe,Yxe,Zxe,nRe,eRe,tRe,rRe,iRe,aRe,cRe,uRe,sRe,oRe,fRe,hRe,lRe,bRe,wRe,dRe,gRe,vRe,pRe,mRe,kRe,yRe,MRe,TRe,jRe,ERe,SRe,PRe,CRe,IRe,ORe,ARe,LRe,NRe,$Re,DRe,xRe,RRe,KRe,FRe,_Re,BRe,HRe,URe,GRe,qRe,XRe,VRe,zRe,WRe,QRe,JRe,YRe,ZRe,nKe,eKe,tKe,rKe,iKe,aKe,cKe,uKe,sKe,oKe,fKe,hKe,lKe,bKe,wKe,dKe,gKe,vKe,pKe,mKe,kKe,yKe,MKe,TKe,jKe,EKe,SKe,PKe,CKe,IKe,OKe,AKe,LKe,NKe;var $Ke=YW(N6n,"LayeredMetaDataProvider",859);wDn(998,1,R2n,vl);lce.hf=function n(e){uZn(e)};var DKe,xKe,RKe,KKe,FKe,_Ke,BKe,HKe,UKe,GKe,qKe,XKe,VKe,zKe,WKe,QKe,JKe,YKe,ZKe,nFe,eFe,tFe,rFe,iFe,aFe,cFe,uFe,sFe,oFe,fFe,hFe,lFe,bFe,wFe,dFe,gFe,vFe,pFe,mFe,kFe,yFe,MFe,TFe,jFe,EFe,SFe,PFe,CFe,IFe,OFe,AFe,LFe,NFe,$Fe,DFe,xFe,RFe,KFe,FFe,_Fe,BFe,HFe,UFe,GFe,qFe,XFe,VFe,zFe,WFe,QFe,JFe,YFe,ZFe,n_e,e_e,t_e,r_e,i_e,a_e,c_e,u_e,s_e,o_e,f_e,h_e,l_e,b_e,w_e,d_e,g_e,v_e,p_e,m_e,k_e,y_e,M_e,T_e,j_e,E_e,S_e,P_e,C_e,I_e,O_e,A_e,L_e,N_e,$_e,D_e,x_e,R_e,K_e,F_e,__e,B_e,H_e,U_e,G_e,q_e,X_e,V_e,z_e,W_e,Q_e,J_e,Y_e,Z_e,nBe,eBe,tBe,rBe,iBe,aBe,cBe,uBe,sBe,oBe,fBe,hBe,lBe,bBe,wBe,dBe;var gBe=YW(N6n,"LayeredOptions",998);wDn(999,1,{},Ca);lce.sf=function n(){var e;return e=new Tk,e};lce.tf=function n(e){};var vBe=YW(N6n,"LayeredOptions/LayeredFactory",999);wDn(1391,1,{});lce.a=0;var pBe;var mBe=YW(g9n,"ElkSpacings/AbstractSpacingsBuilder",1391);wDn(792,1391,{},lpn);var kBe,yBe;var MBe=YW(N6n,"LayeredSpacings/LayeredSpacingsBuilder",792);wDn(265,22,{3:1,34:1,22:1,265:1,188:1,196:1},gI);lce.dg=function n(){return tBn(this)};lce.qg=function n(){return tBn(this)};var TBe,jBe,EBe,SBe,PBe,CBe,IBe,OBe,ABe;var LBe=qan(N6n,"LayeringStrategy",265,joe,ccn,pH);var NBe;wDn(390,22,{3:1,34:1,22:1,390:1},vI);var $Be,DBe,xBe;var RBe=qan(N6n,"LongEdgeOrderingStrategy",390,joe,J2,mH);var KBe;wDn(203,22,{3:1,34:1,22:1,203:1},pI);var FBe,_Be,BBe,HBe;var UBe=qan(N6n,"NodeFlexibility",203,joe,Q6,kH);var GBe;wDn(323,22,{3:1,34:1,22:1,323:1,188:1,196:1},mI);lce.dg=function n(){return $Dn(this)};lce.qg=function n(){return $Dn(this)};var qBe,XBe,VBe,zBe,WBe;var QBe=qan(N6n,"NodePlacementStrategy",323,joe,g9,yH);var JBe;wDn(243,22,{3:1,34:1,22:1,243:1},kI);var YBe,ZBe,nHe,eHe,tHe,rHe,iHe,aHe,cHe,uHe;var sHe=qan(N6n,"NodePromotionStrategy",243,joe,bsn,MH);var oHe;wDn(284,22,{3:1,34:1,22:1,284:1},yI);var fHe,hHe,lHe,bHe;var wHe=qan(N6n,"OrderingStrategy",284,joe,J6,TH);var dHe;wDn(430,22,{3:1,34:1,22:1,430:1},MI);var gHe,vHe;var pHe=qan(N6n,"PortSortingStrategy",430,joe,k1,jH);var mHe;wDn(463,22,{3:1,34:1,22:1,463:1},TI);var kHe,yHe,MHe;var THe=qan(N6n,"PortType",463,joe,Y2,EH);var jHe;wDn(387,22,{3:1,34:1,22:1,387:1},jI);var EHe,SHe,PHe;var CHe=qan(N6n,"SelfLoopDistributionStrategy",387,joe,Z2,SH);var IHe;wDn(349,22,{3:1,34:1,22:1,349:1},EI);var OHe,AHe,LHe;var NHe=qan(N6n,"SelfLoopOrderingStrategy",349,joe,n3,PH);var $He;wDn(312,1,{312:1},Nzn);var DHe=YW(N6n,"Spacings",312);wDn(350,22,{3:1,34:1,22:1,350:1},SI);var xHe,RHe,KHe;var FHe=qan(N6n,"SplineRoutingMode",350,joe,e3,CH);var _He;wDn(352,22,{3:1,34:1,22:1,352:1},PI);var BHe,HHe,UHe;var GHe=qan(N6n,"ValidifyStrategy",352,joe,t3,IH);var qHe;wDn(388,22,{3:1,34:1,22:1,388:1},CI);var XHe,VHe,zHe;var WHe=qan(N6n,"WrappingStrategy",388,joe,r3,OH);var QHe;wDn(1398,1,k9n,sl);lce.rg=function n(e){return bG(e,36),JHe};lce.Kf=function n(e,t){MVn(this,bG(e,36),t)};var JHe;var YHe=YW(y9n,"DepthFirstCycleBreaker",1398);wDn(793,1,k9n,uV);lce.rg=function n(e){return bG(e,36),ZHe};lce.Kf=function n(e,t){yYn(this,bG(e,36),t)};lce.sg=function n(e){return bG(Yq(e,sMn(this.d,e.c.length)),10)};var ZHe;var nUe=YW(y9n,"GreedyCycleBreaker",793);wDn(1401,793,k9n,cL);lce.sg=function n(e){var t,r,i,a;a=null;t=pZn;for(i=new nd(e);i.a1){lM(yK(lIn(VQ((b3(0,e.c.length),bG(e.c[0],10))),(IYn(),QKe))))?xxn(e,this.d,bG(this,669)):(dZ(),g$(e,this.d));Bon(this.e,e)}};lce.lg=function n(e,t,r,i){var a,c,u,s,o,f,h;if(t!=jX(r,e.length)){c=e[t-(r?1:-1)];j7(this.f,c,r?(fcn(),yHe):(fcn(),kHe))}a=e[t][0];h=!i||a.k==(YIn(),nEe);f=a7(e[t]);this.vg(f,h,false,r);u=0;for(o=new nd(f);o.a");e0?(I0(this.a,e[t-1],e[t]),undefined):!r&&t1){lM(yK(lIn(VQ((b3(0,e.c.length),bG(e.c[0],10))),(IYn(),QKe))))?xxn(e,this.d,this):(dZ(),g$(e,this.d));lM(yK(lIn(VQ((b3(0,e.c.length),bG(e.c[0],10))),QKe)))||Bon(this.e,e)}};var aGe=YW(E9n,"ModelOrderBarycenterHeuristic",669);wDn(1866,1,l2n,iv);lce.Ne=function n(e,t){return COn(this.a,bG(e,10),bG(t,10))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var cGe=YW(E9n,"ModelOrderBarycenterHeuristic/lambda$0$Type",1866);wDn(1423,1,k9n,ml);lce.rg=function n(e){var t;return bG(e,36),t=hN(uGe),xq(t,(bIn(),aTe),(YYn(),ZPe)),t};lce.Kf=function n(e,t){IY((bG(e,36),t))};var uGe;var sGe=YW(E9n,"NoCrossingMinimizer",1423);wDn(809,413,T9n,oj);lce.tg=function n(e,t,r){var i,a,c,u,s,o,f,h,l,b,w;l=this.g;switch(r.g){case 1:{a=0;c=0;for(h=new nd(e.j);h.a1&&(a.j==(UQn(),$8e)?this.b[e]=true:a.j==n9e&&e>0&&(this.b[e-1]=true))};lce.f=0;var hGe=YW(S6n,"AllCrossingsCounter",1861);wDn(595,1,{},_un);lce.b=0;lce.d=0;var lGe=YW(S6n,"BinaryIndexedTree",595);wDn(532,1,{},H_);var bGe,wGe;var dGe=YW(S6n,"CrossingsCounter",532);wDn(1950,1,l2n,av);lce.Ne=function n(e,t){return mX(this.a,bG(e,12),bG(t,12))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var gGe=YW(S6n,"CrossingsCounter/lambda$0$Type",1950);wDn(1951,1,l2n,cv);lce.Ne=function n(e,t){return kX(this.a,bG(e,12),bG(t,12))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var vGe=YW(S6n,"CrossingsCounter/lambda$1$Type",1951);wDn(1952,1,l2n,uv);lce.Ne=function n(e,t){return yX(this.a,bG(e,12),bG(t,12))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var pGe=YW(S6n,"CrossingsCounter/lambda$2$Type",1952);wDn(1953,1,l2n,sv);lce.Ne=function n(e,t){return MX(this.a,bG(e,12),bG(t,12))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var mGe=YW(S6n,"CrossingsCounter/lambda$3$Type",1953);wDn(1954,1,WZn,ov);lce.Cd=function n(e){ftn(this.a,bG(e,12))};var kGe=YW(S6n,"CrossingsCounter/lambda$4$Type",1954);wDn(1955,1,k1n,fv);lce.Mb=function n(e){return KI(this.a,bG(e,12))};var yGe=YW(S6n,"CrossingsCounter/lambda$5$Type",1955);wDn(1956,1,WZn,hv);lce.Cd=function n(e){PA(this,e)};var MGe=YW(S6n,"CrossingsCounter/lambda$6$Type",1956);wDn(1957,1,WZn,OI);lce.Cd=function n(e){var t;LU();x6(this.b,(t=this.a,bG(e,12),t))};var TGe=YW(S6n,"CrossingsCounter/lambda$7$Type",1957);wDn(839,1,O2n,Ka);lce.Lb=function n(e){return LU(),jR(bG(e,12),(WYn(),NDe))};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return LU(),jR(bG(e,12),(WYn(),NDe))};var jGe=YW(S6n,"CrossingsCounter/lambda$8$Type",839);wDn(1949,1,{},lv);var EGe=YW(S6n,"HyperedgeCrossingsCounter",1949);wDn(478,1,{34:1,478:1},XF);lce.Fd=function n(e){return qmn(this,bG(e,478))};lce.b=0;lce.c=0;lce.e=0;lce.f=0;var SGe=YW(S6n,"HyperedgeCrossingsCounter/Hyperedge",478);wDn(374,1,{34:1,374:1},pY);lce.Fd=function n(e){return uxn(this,bG(e,374))};lce.b=0;lce.c=0;var PGe=YW(S6n,"HyperedgeCrossingsCounter/HyperedgeCorner",374);wDn(531,22,{3:1,34:1,22:1,531:1},AI);var CGe,IGe;var OGe=qan(S6n,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",531,joe,y1,LH);var AGe;wDn(1425,1,k9n,kl);lce.rg=function n(e){return bG(lIn(bG(e,36),(WYn(),oDe)),21).Hc((o_n(),M$e))?LGe:null};lce.Kf=function n(e,t){VEn(this,bG(e,36),t)};var LGe;var NGe=YW(S9n,"InteractiveNodePlacer",1425);wDn(1426,1,k9n,yl);lce.rg=function n(e){return bG(lIn(bG(e,36),(WYn(),oDe)),21).Hc((o_n(),M$e))?$Ge:null};lce.Kf=function n(e,t){JMn(this,bG(e,36),t)};var $Ge,DGe,xGe;var RGe=YW(S9n,"LinearSegmentsNodePlacer",1426);wDn(261,1,{34:1,261:1},Ck);lce.Fd=function n(e){return NT(this,bG(e,261))};lce.Fb=function n(e){var t;if(G$(e,261)){t=bG(e,261);return this.b==t.b}return false};lce.Hb=function n(){return this.b};lce.Ib=function n(){return"ls"+jIn(this.e)};lce.a=0;lce.b=0;lce.c=-1;lce.d=-1;lce.g=0;var KGe=YW(S9n,"LinearSegmentsNodePlacer/LinearSegment",261);wDn(1428,1,k9n,sV);lce.rg=function n(e){return bG(lIn(bG(e,36),(WYn(),oDe)),21).Hc((o_n(),M$e))?FGe:null};lce.Kf=function n(e,t){nYn(this,bG(e,36),t)};lce.b=0;lce.g=0;var FGe;var _Ge=YW(S9n,"NetworkSimplexPlacer",1428);wDn(1447,1,l2n,Fa);lce.Ne=function n(e,t){return k$(bG(e,17).a,bG(t,17).a)};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var BGe=YW(S9n,"NetworkSimplexPlacer/0methodref$compare$Type",1447);wDn(1449,1,l2n,_a);lce.Ne=function n(e,t){return k$(bG(e,17).a,bG(t,17).a)};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var HGe=YW(S9n,"NetworkSimplexPlacer/1methodref$compare$Type",1449);wDn(655,1,{655:1},LI);var UGe=YW(S9n,"NetworkSimplexPlacer/EdgeRep",655);wDn(412,1,{412:1},mY);lce.b=false;var GGe=YW(S9n,"NetworkSimplexPlacer/NodeRep",412);wDn(515,13,{3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1,515:1},Nk);var qGe=YW(S9n,"NetworkSimplexPlacer/Path",515);wDn(1429,1,{},Ba);lce.Kb=function n(e){return bG(e,18).d.i.k};var XGe=YW(S9n,"NetworkSimplexPlacer/Path/lambda$0$Type",1429);wDn(1430,1,k1n,Ha);lce.Mb=function n(e){return bG(e,273)==(YIn(),tEe)};var VGe=YW(S9n,"NetworkSimplexPlacer/Path/lambda$1$Type",1430);wDn(1431,1,{},Ua);lce.Kb=function n(e){return bG(e,18).d.i};var zGe=YW(S9n,"NetworkSimplexPlacer/Path/lambda$2$Type",1431);wDn(1432,1,k1n,bv);lce.Mb=function n(e){return YK($pn(bG(e,10)))};var WGe=YW(S9n,"NetworkSimplexPlacer/Path/lambda$3$Type",1432);wDn(1433,1,k1n,Ga);lce.Mb=function n(e){return Tq(bG(e,12))};var QGe=YW(S9n,"NetworkSimplexPlacer/lambda$0$Type",1433);wDn(1434,1,WZn,NI);lce.Cd=function n(e){P$(this.a,this.b,bG(e,12))};var JGe=YW(S9n,"NetworkSimplexPlacer/lambda$1$Type",1434);wDn(1443,1,WZn,wv);lce.Cd=function n(e){GLn(this.a,bG(e,18))};var YGe=YW(S9n,"NetworkSimplexPlacer/lambda$10$Type",1443);wDn(1444,1,{},qa);lce.Kb=function n(e){return a2(),new gX(null,new d3(bG(e,30).a,16))};var ZGe=YW(S9n,"NetworkSimplexPlacer/lambda$11$Type",1444);wDn(1445,1,WZn,dv);lce.Cd=function n(e){__n(this.a,bG(e,10))};var nqe=YW(S9n,"NetworkSimplexPlacer/lambda$12$Type",1445);wDn(1446,1,{},Xa);lce.Kb=function n(e){return a2(),Bwn(bG(e,125).e)};var eqe=YW(S9n,"NetworkSimplexPlacer/lambda$13$Type",1446);wDn(1448,1,{},Va);lce.Kb=function n(e){return a2(),Bwn(bG(e,125).e)};var tqe=YW(S9n,"NetworkSimplexPlacer/lambda$15$Type",1448);wDn(1450,1,k1n,za);lce.Mb=function n(e){return a2(),bG(e,412).c.k==(YIn(),rEe)};var rqe=YW(S9n,"NetworkSimplexPlacer/lambda$17$Type",1450);wDn(1451,1,k1n,Wa);lce.Mb=function n(e){return a2(),bG(e,412).c.j.c.length>1};var iqe=YW(S9n,"NetworkSimplexPlacer/lambda$18$Type",1451);wDn(1452,1,WZn,kY);lce.Cd=function n(e){_vn(this.c,this.b,this.d,this.a,bG(e,412))};lce.c=0;lce.d=0;var aqe=YW(S9n,"NetworkSimplexPlacer/lambda$19$Type",1452);wDn(1435,1,{},Qa);lce.Kb=function n(e){return a2(),new gX(null,new d3(bG(e,30).a,16))};var cqe=YW(S9n,"NetworkSimplexPlacer/lambda$2$Type",1435);wDn(1453,1,WZn,gv);lce.Cd=function n(e){I$(this.a,bG(e,12))};lce.a=0;var uqe=YW(S9n,"NetworkSimplexPlacer/lambda$20$Type",1453);wDn(1454,1,{},Ja);lce.Kb=function n(e){return a2(),new gX(null,new d3(bG(e,30).a,16))};var sqe=YW(S9n,"NetworkSimplexPlacer/lambda$21$Type",1454);wDn(1455,1,WZn,vv);lce.Cd=function n(e){bD(this.a,bG(e,10))};var oqe=YW(S9n,"NetworkSimplexPlacer/lambda$22$Type",1455);wDn(1456,1,k1n,Ya);lce.Mb=function n(e){return YK(e)};var fqe=YW(S9n,"NetworkSimplexPlacer/lambda$23$Type",1456);wDn(1457,1,{},Za);lce.Kb=function n(e){return a2(),new gX(null,new d3(bG(e,30).a,16))};var hqe=YW(S9n,"NetworkSimplexPlacer/lambda$24$Type",1457);wDn(1458,1,k1n,pv);lce.Mb=function n(e){return HL(this.a,bG(e,10))};var lqe=YW(S9n,"NetworkSimplexPlacer/lambda$25$Type",1458);wDn(1459,1,WZn,$I);lce.Cd=function n(e){FOn(this.a,this.b,bG(e,10))};var bqe=YW(S9n,"NetworkSimplexPlacer/lambda$26$Type",1459);wDn(1460,1,k1n,nc);lce.Mb=function n(e){return a2(),!j9(bG(e,18))};var wqe=YW(S9n,"NetworkSimplexPlacer/lambda$27$Type",1460);wDn(1461,1,k1n,ec);lce.Mb=function n(e){return a2(),!j9(bG(e,18))};var dqe=YW(S9n,"NetworkSimplexPlacer/lambda$28$Type",1461);wDn(1462,1,{},mv);lce.Ve=function n(e,t){return C$(this.a,bG(e,30),bG(t,30))};var gqe=YW(S9n,"NetworkSimplexPlacer/lambda$29$Type",1462);wDn(1436,1,{},tc);lce.Kb=function n(e){return a2(),new gX(null,new RW(new GV(sx(Jgn(bG(e,10)).a.Kc(),new d))))};var vqe=YW(S9n,"NetworkSimplexPlacer/lambda$3$Type",1436);wDn(1437,1,k1n,rc);lce.Mb=function n(e){return a2(),d6(bG(e,18))};var pqe=YW(S9n,"NetworkSimplexPlacer/lambda$4$Type",1437);wDn(1438,1,WZn,kv);lce.Cd=function n(e){jqn(this.a,bG(e,18))};var mqe=YW(S9n,"NetworkSimplexPlacer/lambda$5$Type",1438);wDn(1439,1,{},ic);lce.Kb=function n(e){return a2(),new gX(null,new d3(bG(e,30).a,16))};var kqe=YW(S9n,"NetworkSimplexPlacer/lambda$6$Type",1439);wDn(1440,1,k1n,ac);lce.Mb=function n(e){return a2(),bG(e,10).k==(YIn(),rEe)};var yqe=YW(S9n,"NetworkSimplexPlacer/lambda$7$Type",1440);wDn(1441,1,{},cc);lce.Kb=function n(e){return a2(),new gX(null,new RW(new GV(sx(Wgn(bG(e,10)).a.Kc(),new d))))};var Mqe=YW(S9n,"NetworkSimplexPlacer/lambda$8$Type",1441);wDn(1442,1,k1n,uc);lce.Mb=function n(e){return a2(),Mq(bG(e,18))};var Tqe=YW(S9n,"NetworkSimplexPlacer/lambda$9$Type",1442);wDn(1424,1,k9n,Ml);lce.rg=function n(e){return bG(lIn(bG(e,36),(WYn(),oDe)),21).Hc((o_n(),M$e))?jqe:null};lce.Kf=function n(e,t){HXn(bG(e,36),t)};var jqe;var Eqe=YW(S9n,"SimpleNodePlacer",1424);wDn(185,1,{185:1},ZHn);lce.Ib=function n(){var e;e="";this.c==(p0(),Cqe)?e+=V2n:this.c==Pqe&&(e+=X2n);this.o==(m0(),Aqe)?e+=i3n:this.o==Lqe?e+="UP":e+="BALANCED";return e};var Sqe=YW(I9n,"BKAlignedLayout",185);wDn(523,22,{3:1,34:1,22:1,523:1},DI);var Pqe,Cqe;var Iqe=qan(I9n,"BKAlignedLayout/HDirection",523,joe,T1,NH);var Oqe;wDn(522,22,{3:1,34:1,22:1,522:1},xI);var Aqe,Lqe;var Nqe=qan(I9n,"BKAlignedLayout/VDirection",522,joe,j1,$H);var $qe;wDn(1699,1,{},RI);var Dqe=YW(I9n,"BKAligner",1699);wDn(1702,1,{},Bjn);var xqe=YW(I9n,"BKCompactor",1702);wDn(663,1,{663:1},sc);lce.a=0;var Rqe=YW(I9n,"BKCompactor/ClassEdge",663);wDn(467,1,{467:1},Ok);lce.a=null;lce.b=0;var Kqe=YW(I9n,"BKCompactor/ClassNode",467);wDn(1427,1,k9n,GI);lce.rg=function n(e){return bG(lIn(bG(e,36),(WYn(),oDe)),21).Hc((o_n(),M$e))?Fqe:null};lce.Kf=function n(e,t){FYn(this,bG(e,36),t)};lce.d=false;var Fqe;var _qe=YW(I9n,"BKNodePlacer",1427);wDn(1700,1,{},oc);lce.d=0;var Bqe=YW(I9n,"NeighborhoodInformation",1700);wDn(1701,1,l2n,yv);lce.Ne=function n(e,t){return jin(this,bG(e,42),bG(t,42))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Hqe=YW(I9n,"NeighborhoodInformation/NeighborComparator",1701);wDn(823,1,{});var Uqe=YW(I9n,"ThresholdStrategy",823);wDn(1825,823,{},Ak);lce.wg=function n(e,t,r){return this.a.o==(m0(),Lqe)?y0n:M0n};lce.xg=function n(){};var Gqe=YW(I9n,"ThresholdStrategy/NullThresholdStrategy",1825);wDn(587,1,{587:1},qI);lce.c=false;lce.d=false;var qqe=YW(I9n,"ThresholdStrategy/Postprocessable",587);wDn(1826,823,{},Lk);lce.wg=function n(e,t,r){var i,a,c;a=t==r;i=this.a.a[r.p]==t;if(!(a||i)){return e}c=e;if(this.a.c==(p0(),Cqe)){a&&(c=GXn(this,t,true));!isNaN(c)&&!isFinite(c)&&i&&(c=GXn(this,r,false))}else{a&&(c=GXn(this,t,true));!isNaN(c)&&!isFinite(c)&&i&&(c=GXn(this,r,false))}return c};lce.xg=function n(){var e,t,r,i,a;while(this.d.b!=0){a=bG(V1(this.d),587);i=mGn(this,a);if(!i.a){continue}e=i.a;r=lM(this.a.f[this.a.g[a.b.p].p]);if(!r&&!j9(e)&&e.c.i.c==e.d.i.c){continue}t=sxn(this,a);t||ZL(this.e,a)}while(this.e.a.c.length!=0){sxn(this,bG(lbn(this.e),587))}};var Xqe=YW(I9n,"ThresholdStrategy/SimpleThresholdStrategy",1826);wDn(645,1,{645:1,188:1,196:1},fc);lce.dg=function n(){return Gon(this)};lce.qg=function n(){return Gon(this)};var Vqe;var zqe=YW(O9n,"EdgeRouterFactory",645);wDn(1485,1,k9n,Tl);lce.rg=function n(e){return HFn(bG(e,36))};lce.Kf=function n(e,t){nVn(bG(e,36),t)};var Wqe,Qqe,Jqe,Yqe,Zqe,nXe,eXe,tXe;var rXe=YW(O9n,"OrthogonalEdgeRouter",1485);wDn(1478,1,k9n,UI);lce.rg=function n(e){return lSn(bG(e,36))};lce.Kf=function n(e,t){JQn(this,bG(e,36),t)};var iXe,aXe,cXe,uXe,sXe,oXe;var fXe=YW(O9n,"PolylineEdgeRouter",1478);wDn(1479,1,O2n,lc);lce.Lb=function n(e){return wfn(bG(e,10))};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return wfn(bG(e,10))};var hXe=YW(O9n,"PolylineEdgeRouter/1",1479);wDn(1872,1,k1n,bc);lce.Mb=function n(e){return bG(e,132).c==(q7(),kXe)};var lXe=YW(A9n,"HyperEdgeCycleDetector/lambda$0$Type",1872);wDn(1873,1,{},wc);lce.Ze=function n(e){return bG(e,132).d};var bXe=YW(A9n,"HyperEdgeCycleDetector/lambda$1$Type",1873);wDn(1874,1,k1n,dc);lce.Mb=function n(e){return bG(e,132).c==(q7(),kXe)};var wXe=YW(A9n,"HyperEdgeCycleDetector/lambda$2$Type",1874);wDn(1875,1,{},gc);lce.Ze=function n(e){return bG(e,132).d};var dXe=YW(A9n,"HyperEdgeCycleDetector/lambda$3$Type",1875);wDn(1876,1,{},vc);lce.Ze=function n(e){return bG(e,132).d};var gXe=YW(A9n,"HyperEdgeCycleDetector/lambda$4$Type",1876);wDn(1877,1,{},hc);lce.Ze=function n(e){return bG(e,132).d};var vXe=YW(A9n,"HyperEdgeCycleDetector/lambda$5$Type",1877);wDn(118,1,{34:1,118:1},afn);lce.Fd=function n(e){return $T(this,bG(e,118))};lce.Fb=function n(e){var t;if(G$(e,118)){t=bG(e,118);return this.g==t.g}return false};lce.Hb=function n(){return this.g};lce.Ib=function n(){var e,t,r,i;e=new vx("{");i=new nd(this.n);while(i.a"+this.b+" ("+SR(this.c)+")"};lce.d=0;var mXe=YW(A9n,"HyperEdgeSegmentDependency",132);wDn(528,22,{3:1,34:1,22:1,528:1},QI);var kXe,yXe;var MXe=qan(A9n,"HyperEdgeSegmentDependency/DependencyType",528,joe,E1,DH);var TXe;wDn(1878,1,{},Mv);var jXe=YW(A9n,"HyperEdgeSegmentSplitter",1878);wDn(1879,1,{},dj);lce.a=0;lce.b=0;var EXe=YW(A9n,"HyperEdgeSegmentSplitter/AreaRating",1879);wDn(339,1,{339:1},DU);lce.a=0;lce.b=0;lce.c=0;var SXe=YW(A9n,"HyperEdgeSegmentSplitter/FreeArea",339);wDn(1880,1,l2n,pc);lce.Ne=function n(e,t){return N_(bG(e,118),bG(t,118))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var PXe=YW(A9n,"HyperEdgeSegmentSplitter/lambda$0$Type",1880);wDn(1881,1,WZn,MY);lce.Cd=function n(e){$5(this.a,this.d,this.c,this.b,bG(e,118))};lce.b=0;var CXe=YW(A9n,"HyperEdgeSegmentSplitter/lambda$1$Type",1881);wDn(1882,1,{},mc);lce.Kb=function n(e){return new gX(null,new d3(bG(e,118).e,16))};var IXe=YW(A9n,"HyperEdgeSegmentSplitter/lambda$2$Type",1882);wDn(1883,1,{},kc);lce.Kb=function n(e){return new gX(null,new d3(bG(e,118).j,16))};var OXe=YW(A9n,"HyperEdgeSegmentSplitter/lambda$3$Type",1883);wDn(1884,1,{},yc);lce.Ye=function n(e){return bM(MK(e))};var AXe=YW(A9n,"HyperEdgeSegmentSplitter/lambda$4$Type",1884);wDn(664,1,{},KW);lce.a=0;lce.b=0;lce.c=0;var LXe=YW(A9n,"OrthogonalRoutingGenerator",664);wDn(1703,1,{},Mc);lce.Kb=function n(e){return new gX(null,new d3(bG(e,118).e,16))};var NXe=YW(A9n,"OrthogonalRoutingGenerator/lambda$0$Type",1703);wDn(1704,1,{},Tc);lce.Kb=function n(e){return new gX(null,new d3(bG(e,118).j,16))};var $Xe=YW(A9n,"OrthogonalRoutingGenerator/lambda$1$Type",1704);wDn(670,1,{});var DXe=YW(L9n,"BaseRoutingDirectionStrategy",670);wDn(1870,670,{},Hk);lce.yg=function n(e,r,i){var a,c,u,s,o,f,h,l,b,w,d,g,v;if(!!e.r&&!e.q){return}l=r+e.o*i;for(h=new nd(e.n);h.an4n){u=l;c=e;a=new PO(b,u);hq(s.a,a);ZUn(this,s,c,a,false);w=e.r;if(w){d=bM(MK(dyn(w.e,0)));a=new PO(d,u);hq(s.a,a);ZUn(this,s,c,a,false);u=r+w.o*i;c=w;a=new PO(d,u);hq(s.a,a);ZUn(this,s,c,a,false)}a=new PO(v,u);hq(s.a,a);ZUn(this,s,c,a,false)}}}}};lce.zg=function n(e){return e.i.n.a+e.n.a+e.a.a};lce.Ag=function n(){return UQn(),Y8e};lce.Bg=function n(){return UQn(),D8e};var xXe=YW(L9n,"NorthToSouthRoutingStrategy",1870);wDn(1871,670,{},Uk);lce.yg=function n(e,r,i){var a,c,u,s,o,f,h,l,b,w,d,g,v;if(!!e.r&&!e.q){return}l=r-e.o*i;for(h=new nd(e.n);h.an4n){u=l;c=e;a=new PO(b,u);hq(s.a,a);ZUn(this,s,c,a,false);w=e.r;if(w){d=bM(MK(dyn(w.e,0)));a=new PO(d,u);hq(s.a,a);ZUn(this,s,c,a,false);u=r-w.o*i;c=w;a=new PO(d,u);hq(s.a,a);ZUn(this,s,c,a,false)}a=new PO(v,u);hq(s.a,a);ZUn(this,s,c,a,false)}}}}};lce.zg=function n(e){return e.i.n.a+e.n.a+e.a.a};lce.Ag=function n(){return UQn(),D8e};lce.Bg=function n(){return UQn(),Y8e};var RXe=YW(L9n,"SouthToNorthRoutingStrategy",1871);wDn(1869,670,{},Gk);lce.yg=function n(e,r,i){var a,c,u,s,o,f,h,l,b,w,d,g,v;if(!!e.r&&!e.q){return}l=r+e.o*i;for(h=new nd(e.n);h.an4n){u=l;c=e;a=new PO(u,b);hq(s.a,a);ZUn(this,s,c,a,true);w=e.r;if(w){d=bM(MK(dyn(w.e,0)));a=new PO(u,d);hq(s.a,a);ZUn(this,s,c,a,true);u=r+w.o*i;c=w;a=new PO(u,d);hq(s.a,a);ZUn(this,s,c,a,true)}a=new PO(u,v);hq(s.a,a);ZUn(this,s,c,a,true)}}}}};lce.zg=function n(e){return e.i.n.b+e.n.b+e.a.b};lce.Ag=function n(){return UQn(),$8e};lce.Bg=function n(){return UQn(),n9e};var KXe=YW(L9n,"WestToEastRoutingStrategy",1869);wDn(828,1,{},Iqn);lce.Ib=function n(){return jIn(this.a)};lce.b=0;lce.c=false;lce.d=false;lce.f=0;var FXe=YW($9n,"NubSpline",828);wDn(418,1,{418:1},MFn,H1);var _Xe=YW($9n,"NubSpline/PolarCP",418);wDn(1480,1,k9n,YTn);lce.rg=function n(e){return VPn(bG(e,36))};lce.Kf=function n(e,t){OJn(this,bG(e,36),t)};var BXe,HXe,UXe,GXe,qXe;var XXe=YW($9n,"SplineEdgeRouter",1480);wDn(274,1,{274:1},D7);lce.Ib=function n(){return this.a+" ->("+this.c+") "+this.b};lce.c=0;var VXe=YW($9n,"SplineEdgeRouter/Dependency",274);wDn(465,22,{3:1,34:1,22:1,465:1},JI);var zXe,WXe;var QXe=qan($9n,"SplineEdgeRouter/SideToProcess",465,joe,A1,xH);var JXe;wDn(1481,1,k1n,jc);lce.Mb=function n(e){return bFn(),!bG(e,131).o};var YXe=YW($9n,"SplineEdgeRouter/lambda$0$Type",1481);wDn(1482,1,{},Ec);lce.Ze=function n(e){return bFn(),bG(e,131).v+1};var ZXe=YW($9n,"SplineEdgeRouter/lambda$1$Type",1482);wDn(1483,1,WZn,XI);lce.Cd=function n(e){Sq(this.a,this.b,bG(e,42))};var nVe=YW($9n,"SplineEdgeRouter/lambda$2$Type",1483);wDn(1484,1,WZn,VI);lce.Cd=function n(e){Pq(this.a,this.b,bG(e,42))};var eVe=YW($9n,"SplineEdgeRouter/lambda$3$Type",1484);wDn(131,1,{34:1,131:1},zAn,$Vn);lce.Fd=function n(e){return KT(this,bG(e,131))};lce.b=0;lce.e=false;lce.f=0;lce.g=0;lce.j=false;lce.k=false;lce.n=0;lce.o=false;lce.p=false;lce.q=false;lce.s=0;lce.u=0;lce.v=0;lce.F=0;var tVe=YW($9n,"SplineSegment",131);wDn(468,1,{468:1},Sc);lce.a=0;lce.b=false;lce.c=false;lce.d=false;lce.e=false;lce.f=0;var rVe=YW($9n,"SplineSegment/EdgeInformation",468);wDn(1198,1,{},Pc);var iVe=YW(F9n,G3n,1198);wDn(1199,1,l2n,Cc);lce.Ne=function n(e,t){return SNn(bG(e,121),bG(t,121))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var aVe=YW(F9n,q3n,1199);wDn(1197,1,{},Wj);var cVe=YW(F9n,"MrTree",1197);wDn(405,22,{3:1,34:1,22:1,405:1,188:1,196:1},YI);lce.dg=function n(){return CNn(this)};lce.qg=function n(){return CNn(this)};var uVe,sVe,oVe,fVe;var hVe=qan(F9n,"TreeLayoutPhases",405,joe,s5,RH);var lVe;wDn(1112,205,y3n,GF);lce.rf=function n(e,t){var r,i,a,c,u,s,o,f;lM(yK(YDn(e,(eqn(),EWe))))||t0((r=new Ad((jP(),new Zy(e))),r));u=t.eh(_9n);u.Ug("build tGraph",1);s=(o=new R7,Yon(o,e),Ehn(o,(DQn(),qze),e),f=new rm,IUn(e,o,f),uGn(e,o,f),o);u.Vg();u=t.eh(_9n);u.Ug("Split graph",1);c=xUn(this.a,s);u.Vg();for(a=new nd(c);a.a"+Z3(this.c):"e_"+Vun(this)};var SVe=YW(H9n,"TEdge",65);wDn(121,137,{3:1,121:1,96:1,137:1},R7);lce.Ib=function n(){var e,t,r,i,a;a=null;for(i=Gkn(this.b,0);i.b!=i.d.c;){r=bG($6(i),40);a+=(r.c==null||r.c.length==0?"n_"+r.g:"n_"+r.c)+"\n"}for(t=Gkn(this.a,0);t.b!=t.d.c;){e=bG($6(t),65);a+=(!!e.b&&!!e.c?Z3(e.b)+"->"+Z3(e.c):"e_"+Vun(e))+"\n"}return a};var PVe=YW(H9n,"TGraph",121);wDn(643,508,{3:1,508:1,643:1,96:1,137:1});var CVe=YW(H9n,"TShape",643);wDn(40,643,{3:1,508:1,40:1,643:1,96:1,137:1},mln);lce.Ib=function n(){return Z3(this)};var IVe=YW(H9n,"TNode",40);wDn(236,1,n1n,Pv);lce.Jc=function n(e){Y8(this,e)};lce.Kc=function n(){var e;return e=Gkn(this.a.d,0),new Cv(e)};var OVe=YW(H9n,"TNode/2",236);wDn(329,1,NZn,Cv);lce.Nb=function n(e){Az(this,e)};lce.Pb=function n(){return bG($6(this.a),65).c};lce.Ob=function n(){return tE(this.a)};lce.Qb=function n(){Sin(this.a)};var AVe=YW(H9n,"TNode/2/1",329);wDn(1923,1,W4n,Dc);lce.Kf=function n(e,t){AYn(this,bG(e,121),t)};var LVe=YW(G9n,"CompactionProcessor",1923);wDn(1924,1,l2n,Iv);lce.Ne=function n(e,t){return Eon(this.a,bG(e,40),bG(t,40))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var NVe=YW(G9n,"CompactionProcessor/lambda$0$Type",1924);wDn(1925,1,k1n,WI);lce.Mb=function n(e){return BZ(this.b,this.a,bG(e,42))};lce.a=0;lce.b=0;var $Ve=YW(G9n,"CompactionProcessor/lambda$1$Type",1925);wDn(1934,1,l2n,xc);lce.Ne=function n(e,t){return jW(bG(e,40),bG(t,40))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var DVe=YW(G9n,"CompactionProcessor/lambda$10$Type",1934);wDn(1935,1,l2n,Rc);lce.Ne=function n(e,t){return Ux(bG(e,40),bG(t,40))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var xVe=YW(G9n,"CompactionProcessor/lambda$11$Type",1935);wDn(1936,1,l2n,Kc);lce.Ne=function n(e,t){return EW(bG(e,40),bG(t,40))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var RVe=YW(G9n,"CompactionProcessor/lambda$12$Type",1936);wDn(1926,1,k1n,Ov);lce.Mb=function n(e){return dD(this.a,bG(e,42))};lce.a=0;var KVe=YW(G9n,"CompactionProcessor/lambda$2$Type",1926);wDn(1927,1,k1n,Av);lce.Mb=function n(e){return gD(this.a,bG(e,42))};lce.a=0;var FVe=YW(G9n,"CompactionProcessor/lambda$3$Type",1927);wDn(1928,1,k1n,Fc);lce.Mb=function n(e){return bG(e,40).c.indexOf(B9n)==-1};var _Ve=YW(G9n,"CompactionProcessor/lambda$4$Type",1928);wDn(1929,1,{},Lv);lce.Kb=function n(e){return h6(this.a,bG(e,40))};lce.a=0;var BVe=YW(G9n,"CompactionProcessor/lambda$5$Type",1929);wDn(1930,1,{},Nv);lce.Kb=function n(e){return otn(this.a,bG(e,40))};lce.a=0;var HVe=YW(G9n,"CompactionProcessor/lambda$6$Type",1930);wDn(1931,1,l2n,$v);lce.Ne=function n(e,t){return W9(this.a,bG(e,240),bG(t,240))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var UVe=YW(G9n,"CompactionProcessor/lambda$7$Type",1931);wDn(1932,1,l2n,Dv);lce.Ne=function n(e,t){return Q9(this.a,bG(e,40),bG(t,40))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var GVe=YW(G9n,"CompactionProcessor/lambda$8$Type",1932);wDn(1933,1,l2n,_c);lce.Ne=function n(e,t){return Gx(bG(e,40),bG(t,40))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var qVe=YW(G9n,"CompactionProcessor/lambda$9$Type",1933);wDn(1921,1,W4n,Bc);lce.Kf=function n(e,t){fBn(bG(e,121),t)};var XVe=YW(G9n,"DirectionProcessor",1921);wDn(1913,1,W4n,UF);lce.Kf=function n(e,t){tGn(this,bG(e,121),t)};var VVe=YW(G9n,"FanProcessor",1913);wDn(1937,1,W4n,Hc);lce.Kf=function n(e,t){K_n(bG(e,121),t)};var zVe=YW(G9n,"GraphBoundsProcessor",1937);wDn(1938,1,{},Uc);lce.Ye=function n(e){return bG(e,40).e.a};var WVe=YW(G9n,"GraphBoundsProcessor/lambda$0$Type",1938);wDn(1939,1,{},Gc);lce.Ye=function n(e){return bG(e,40).e.b};var QVe=YW(G9n,"GraphBoundsProcessor/lambda$1$Type",1939);wDn(1940,1,{},qc);lce.Ye=function n(e){return vP(bG(e,40))};var JVe=YW(G9n,"GraphBoundsProcessor/lambda$2$Type",1940);wDn(1941,1,{},Xc);lce.Ye=function n(e){return gP(bG(e,40))};var YVe=YW(G9n,"GraphBoundsProcessor/lambda$3$Type",1941);wDn(262,22,{3:1,34:1,22:1,262:1,196:1},ZI);lce.dg=function n(){switch(this.g){case 0:return new wy;case 1:return new UF;case 2:return new by;case 3:return new Jc;case 4:return new zc;case 8:return new Vc;case 5:return new Bc;case 6:return new Zc;case 7:return new Dc;case 9:return new Hc;case 10:return new nu;default:throw dm(new jM(p6n+(this.f!=null?this.f:""+this.g)))}};var ZVe,nze,eze,tze,rze,ize,aze,cze,uze,sze,oze;var fze=qan(G9n,m6n,262,joe,bon,KH);var hze;wDn(1920,1,W4n,Vc);lce.Kf=function n(e,t){BQn(bG(e,121),t)};var lze=YW(G9n,"LevelCoordinatesProcessor",1920);wDn(1918,1,W4n,zc);lce.Kf=function n(e,t){iKn(this,bG(e,121),t)};lce.a=0;var bze=YW(G9n,"LevelHeightProcessor",1918);wDn(1919,1,n1n,Wc);lce.Jc=function n(e){Y8(this,e)};lce.Kc=function n(){return dZ(),mS(),gbe};var wze=YW(G9n,"LevelHeightProcessor/1",1919);wDn(1914,1,W4n,by);lce.Kf=function n(e,t){y_n(this,bG(e,121),t)};var dze=YW(G9n,"LevelProcessor",1914);wDn(1915,1,k1n,Qc);lce.Mb=function n(e){return lM(yK(lIn(bG(e,40),(DQn(),Jze))))};var gze=YW(G9n,"LevelProcessor/lambda$0$Type",1915);wDn(1916,1,W4n,Jc);lce.Kf=function n(e,t){_An(this,bG(e,121),t)};lce.a=0;var vze=YW(G9n,"NeighborsProcessor",1916);wDn(1917,1,n1n,Yc);lce.Jc=function n(e){Y8(this,e)};lce.Kc=function n(){return dZ(),mS(),gbe};var pze=YW(G9n,"NeighborsProcessor/1",1917);wDn(1922,1,W4n,Zc);lce.Kf=function n(e,t){eGn(this,bG(e,121),t)};lce.a=0;var mze=YW(G9n,"NodePositionProcessor",1922);wDn(1912,1,W4n,wy);lce.Kf=function n(e,t){OVn(this,bG(e,121),t)};var kze=YW(G9n,"RootProcessor",1912);wDn(1942,1,W4n,nu);lce.Kf=function n(e,t){nMn(bG(e,121),t)};var yze=YW(G9n,"Untreeifyer",1942);wDn(392,22,{3:1,34:1,22:1,392:1},nO);var Mze,Tze,jze;var Eze=qan(z9n,"EdgeRoutingMode",392,joe,c3,FH);var Sze;var Pze,Cze,Ize,Oze,Aze,Lze,Nze,$ze,Dze,xze,Rze,Kze,Fze,_ze,Bze,Hze,Uze,Gze,qze,Xze,Vze,zze,Wze,Qze,Jze,Yze,Zze;wDn(862,1,R2n,jl);lce.hf=function n(e){ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Q9n),""),r7n),"Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"),(Qx(),false)),(vAn(),M3e)),Uhe),ygn((Hkn(),p3e)))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,J9n),""),"Edge End Texture Length"),"Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing."),7),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Y9n),""),"Tree Level"),"The index for the tree level the node is in"),Bwn(0)),S3e),tle),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Z9n),""),r7n),"When set to a positive number this option will force the algorithm to place the node to the specified position within the trees layer if weighting is set to constraint"),Bwn(-1)),S3e),tle),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,n7n),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),oWe),j3e),zWe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,e7n),""),"Edge Routing Mode"),"Chooses an Edge Routing algorithm."),rWe),j3e),Eze),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,t7n),""),"Search Order"),"Which search order to use when computing a spanning tree."),cWe),j3e),YWe),ygn(p3e))));SJn((new Pl,e))};var nWe,eWe,tWe,rWe,iWe,aWe,cWe,uWe,sWe,oWe;var fWe=YW(z9n,"MrTreeMetaDataProvider",862);wDn(1006,1,R2n,Pl);lce.hf=function n(e){SJn(e)};var hWe,lWe,bWe,wWe,dWe,gWe,vWe,pWe,mWe,kWe,yWe,MWe,TWe,jWe,EWe,SWe,PWe,CWe,IWe,OWe,AWe,LWe,NWe,$We,DWe,xWe,RWe,KWe,FWe,_We,BWe;var HWe=YW(z9n,"MrTreeOptions",1006);wDn(1007,1,{},eu);lce.sf=function n(){var e;return e=new GF,e};lce.tf=function n(e){};var UWe=YW(z9n,"MrTreeOptions/MrtreeFactory",1007);wDn(353,22,{3:1,34:1,22:1,353:1},eO);var GWe,qWe,XWe,VWe;var zWe=qan(z9n,"OrderWeighting",353,joe,o5,_H);var WWe;wDn(433,22,{3:1,34:1,22:1,433:1},tO);var QWe,JWe;var YWe=qan(z9n,"TreeifyingOrder",433,joe,I1,BH);var ZWe;wDn(1486,1,k9n,Cl);lce.rg=function n(e){return bG(e,121),nQe};lce.Kf=function n(e,t){Fsn(this,bG(e,121),t)};var nQe;var eQe=YW("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1486);wDn(1487,1,k9n,Il);lce.rg=function n(e){return bG(e,121),tQe};lce.Kf=function n(e,t){O_n(this,bG(e,121),t)};var tQe;var rQe=YW(u7n,"NodeOrderer",1487);wDn(1494,1,{},vu);lce.td=function n(e){return Kq(e)};var iQe=YW(u7n,"NodeOrderer/0methodref$lambda$6$Type",1494);wDn(1488,1,k1n,pu);lce.Mb=function n(e){return aan(),lM(yK(lIn(bG(e,40),(DQn(),Jze))))};var aQe=YW(u7n,"NodeOrderer/lambda$0$Type",1488);wDn(1489,1,k1n,mu);lce.Mb=function n(e){return aan(),bG(lIn(bG(e,40),(eqn(),IWe)),17).a<0};var cQe=YW(u7n,"NodeOrderer/lambda$1$Type",1489);wDn(1490,1,k1n,Rv);lce.Mb=function n(e){return qcn(this.a,bG(e,40))};var uQe=YW(u7n,"NodeOrderer/lambda$2$Type",1490);wDn(1491,1,k1n,xv);lce.Mb=function n(e){return g6(this.a,bG(e,40))};var sQe=YW(u7n,"NodeOrderer/lambda$3$Type",1491);wDn(1492,1,l2n,ku);lce.Ne=function n(e,t){return gin(bG(e,40),bG(t,40))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var oQe=YW(u7n,"NodeOrderer/lambda$4$Type",1492);wDn(1493,1,k1n,yu);lce.Mb=function n(e){return aan(),bG(lIn(bG(e,40),(DQn(),Nze)),17).a!=0};var fQe=YW(u7n,"NodeOrderer/lambda$5$Type",1493);wDn(1495,1,k9n,Sl);lce.rg=function n(e){return bG(e,121),hQe};lce.Kf=function n(e,t){fUn(this,bG(e,121),t)};lce.b=0;var hQe;var lQe=YW("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1495);wDn(1496,1,k9n,El);lce.rg=function n(e){return bG(e,121),bQe};lce.Kf=function n(e,t){yHn(bG(e,121),t)};var bQe;var wQe=YW(s7n,"EdgeRouter",1496);wDn(1498,1,l2n,gu);lce.Ne=function n(e,t){return k$(bG(e,17).a,bG(t,17).a)};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var dQe=YW(s7n,"EdgeRouter/0methodref$compare$Type",1498);wDn(1503,1,{},ru);lce.Ye=function n(e){return bM(MK(e))};var gQe=YW(s7n,"EdgeRouter/1methodref$doubleValue$Type",1503);wDn(1505,1,l2n,iu);lce.Ne=function n(e,t){return bgn(bM(MK(e)),bM(MK(t)))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var vQe=YW(s7n,"EdgeRouter/2methodref$compare$Type",1505);wDn(1507,1,l2n,au);lce.Ne=function n(e,t){return bgn(bM(MK(e)),bM(MK(t)))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var pQe=YW(s7n,"EdgeRouter/3methodref$compare$Type",1507);wDn(1509,1,{},tu);lce.Ye=function n(e){return bM(MK(e))};var mQe=YW(s7n,"EdgeRouter/4methodref$doubleValue$Type",1509);wDn(1511,1,l2n,cu);lce.Ne=function n(e,t){return bgn(bM(MK(e)),bM(MK(t)))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var kQe=YW(s7n,"EdgeRouter/5methodref$compare$Type",1511);wDn(1513,1,l2n,uu);lce.Ne=function n(e,t){return bgn(bM(MK(e)),bM(MK(t)))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var yQe=YW(s7n,"EdgeRouter/6methodref$compare$Type",1513);wDn(1497,1,{},su);lce.Kb=function n(e){return can(),bG(lIn(bG(e,40),(eqn(),_We)),17)};var MQe=YW(s7n,"EdgeRouter/lambda$0$Type",1497);wDn(1508,1,{},ou);lce.Kb=function n(e){return NR(bG(e,40))};var TQe=YW(s7n,"EdgeRouter/lambda$11$Type",1508);wDn(1510,1,{},kO);lce.Kb=function n(e){return jq(this.b,this.a,bG(e,40))};lce.a=0;lce.b=0;var jQe=YW(s7n,"EdgeRouter/lambda$13$Type",1510);wDn(1512,1,{},yO);lce.Kb=function n(e){return $R(this.b,this.a,bG(e,40))};lce.a=0;lce.b=0;var EQe=YW(s7n,"EdgeRouter/lambda$15$Type",1512);wDn(1514,1,l2n,fu);lce.Ne=function n(e,t){return Wkn(bG(e,65),bG(t,65))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var SQe=YW(s7n,"EdgeRouter/lambda$17$Type",1514);wDn(1515,1,l2n,hu);lce.Ne=function n(e,t){return Qkn(bG(e,65),bG(t,65))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var PQe=YW(s7n,"EdgeRouter/lambda$18$Type",1515);wDn(1516,1,l2n,lu);lce.Ne=function n(e,t){return Ykn(bG(e,65),bG(t,65))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var CQe=YW(s7n,"EdgeRouter/lambda$19$Type",1516);wDn(1499,1,k1n,Kv);lce.Mb=function n(e){return a0(this.a,bG(e,40))};lce.a=0;var IQe=YW(s7n,"EdgeRouter/lambda$2$Type",1499);wDn(1517,1,l2n,bu);lce.Ne=function n(e,t){return Jkn(bG(e,65),bG(t,65))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var OQe=YW(s7n,"EdgeRouter/lambda$20$Type",1517);wDn(1500,1,l2n,wu);lce.Ne=function n(e,t){return CG(bG(e,40),bG(t,40))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var AQe=YW(s7n,"EdgeRouter/lambda$3$Type",1500);wDn(1501,1,l2n,du);lce.Ne=function n(e,t){return IG(bG(e,40),bG(t,40))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var LQe=YW(s7n,"EdgeRouter/lambda$4$Type",1501);wDn(1502,1,{},Mu);lce.Kb=function n(e){return DR(bG(e,40))};var NQe=YW(s7n,"EdgeRouter/lambda$5$Type",1502);wDn(1504,1,{},MO);lce.Kb=function n(e){return Eq(this.b,this.a,bG(e,40))};lce.a=0;lce.b=0;var $Qe=YW(s7n,"EdgeRouter/lambda$7$Type",1504);wDn(1506,1,{},TO);lce.Kb=function n(e){return xR(this.b,this.a,bG(e,40))};lce.a=0;lce.b=0;var DQe=YW(s7n,"EdgeRouter/lambda$9$Type",1506);wDn(675,1,{675:1},mTn);lce.e=0;lce.f=false;lce.g=false;var xQe=YW(s7n,"MultiLevelEdgeNodeNodeGap",675);wDn(1943,1,l2n,Tu);lce.Ne=function n(e,t){return v2(bG(e,240),bG(t,240))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var RQe=YW(s7n,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1943);wDn(1944,1,l2n,ju);lce.Ne=function n(e,t){return p2(bG(e,240),bG(t,240))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var KQe=YW(s7n,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1944);var FQe;wDn(501,22,{3:1,34:1,22:1,501:1,188:1,196:1},rO);lce.dg=function n(){return Gvn(this)};lce.qg=function n(){return Gvn(this)};var _Qe,BQe;var HQe=qan(o7n,"RadialLayoutPhases",501,joe,M1,HH);var UQe;wDn(1113,205,y3n,zj);lce.rf=function n(e,t){var r,i,a,c,u,s;r=qKn(this,e);t.Ug("Radial layout",r.c.length);lM(yK(YDn(e,(IOn(),UJe))))||t0((i=new Ad((jP(),new Zy(e))),i));s=JPn(e);Pyn(e,(AK(),FQe),s);if(!s){throw dm(new jM("The given graph is not a tree!"))}a=bM(MK(YDn(e,zJe)));a==0&&(a=cNn(e));Pyn(e,zJe,a);for(u=new nd(qKn(this,e));u.a=3){T=bG(Yin(y,0),27);j=bG(Yin(y,1),27);u=0;while(u+2=T.f+j.f+l||j.f>=M.f+T.f+l){S=true;break}else{++u}}}else{S=true}if(!S){w=y.i;for(o=new _D(y);o.e!=o.i.gc();){s=bG(iyn(o),27);Pyn(s,(JYn(),O6e),Bwn(w));--w}JGn(e,new gy);r.Vg();return}i=(qJ(this.a),tW(this.a,(tmn(),MYe),bG(YDn(e,FZe),188)),tW(this.a,TYe,bG(YDn(e,OZe),188)),tW(this.a,jYe,bG(YDn(e,xZe),188)),iN(this.a,(C=new mJ,xq(C,MYe,(iMn(),LYe)),xq(C,TYe,AYe),lM(yK(YDn(e,mZe)))&&xq(C,MYe,OYe),C)),ezn(this.a,e));h=1/i.c.length;E=0;for(g=new nd(i);g.a0&&ewn((w3(t-1,e.length),e.charCodeAt(t-1)),i6n)){--t}if(i>=t){throw dm(new jM("The given string does not contain any numbers."))}a=nqn((Unn(i,t,e.length),e.substr(i,t-i)),",|;|\r|\n");if(a.length!=2){throw dm(new jM("Exactly two numbers are expected, "+a.length+" were found."))}try{this.a=rOn(UAn(a[0]));this.b=rOn(UAn(a[1]))}catch(c){c=Ofn(c);if(G$(c,130)){r=c;throw dm(new jM(a6n+r))}else throw dm(c)}};lce.Ib=function n(){return"("+this.a+","+this.b+")"};lce.a=0;lce.b=0;var D3e=YW(c6n,"KVector",8);wDn(75,67,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1,75:1,423:1},zk,cj,zR);lce.Pc=function n(){return sbn(this)};lce.cg=function n(e){var t,r,i,a,c,u;i=nqn(e,",|;|\\(|\\)|\\[|\\]|\\{|\\}| |\t|\n");XY(this);try{r=0;c=0;a=0;u=0;while(r0){c%2==0?a=rOn(i[r]):u=rOn(i[r]);c>0&&c%2!=0&&hq(this,new PO(a,u));++c}++r}}catch(s){s=Ofn(s);if(G$(s,130)){t=s;throw dm(new jM("The given string does not match the expected format for vectors."+t))}else throw dm(s)}};lce.Ib=function n(){var e,t,r;e=new vx("(");t=Gkn(this,0);while(t.b!=t.d.c){r=bG($6(t),8);tL(e,r.a+","+r.b);t.b!=t.d.c&&(e.a+="; ",e)}return(e.a+=")",e).a};var x3e=YW(c6n,"KVectorChain",75);wDn(255,22,{3:1,34:1,22:1,255:1},CO);var R3e,K3e,F3e,_3e,B3e,H3e;var U3e=qan(Hne,"Alignment",255,joe,ren,lU);var G3e;wDn(991,1,R2n,Fl);lce.hf=function n(e){rGn(e)};var q3e,X3e,V3e,z3e,W3e,Q3e,J3e,Y3e,Z3e,n4e,e4e,t4e;var r4e=YW(Hne,"BoxLayouterOptions",991);wDn(992,1,{},Bs);lce.sf=function n(){var e;return e=new Gs,e};lce.tf=function n(e){};var i4e=YW(Hne,"BoxLayouterOptions/BoxFactory",992);wDn(298,22,{3:1,34:1,22:1,298:1},AO);var a4e,c4e,u4e,s4e,o4e,f4e;var h4e=qan(Hne,"ContentAlignment",298,joe,ien,bU);var l4e;wDn(699,1,R2n,_l);lce.hf=function n(e){ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,Vne),""),"Layout Algorithm"),"Select a specific layout algorithm."),(vAn(),C3e)),vle),ygn((Hkn(),p3e)))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,zne),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),P3e),R2e),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,q8n),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),d4e),j3e),U3e),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,x3n),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,Wne),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),P3e),x3e),ygn(d3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,r9n),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),j4e),E3e),h4e),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,G8n),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Qx(),false)),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,z8n),""),h3n),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),P4e),j3e),b5e),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,v8n),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),L4e),j3e),j5e),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,qne),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,l8n),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),R4e),j3e),X5e),nV(p3e,zfn(fT(k3e,1),g1n,170,0,[v3e])))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,R3n),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),u6e),P3e),sEe),nV(p3e,zfn(fT(k3e,1),g1n,170,0,[v3e])))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,f4n),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,d9n),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,b4n),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,h4n),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),y6e),j3e),j8e),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,l9n),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),P3e),D3e),nV(v3e,zfn(fT(k3e,1),g1n,170,0,[m3e,g3e])))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,a4n),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),S3e),tle),nV(v3e,zfn(fT(k3e,1),g1n,170,0,[d3e])))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,s4n),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),S3e),tle),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,o4n),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,i9n),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),G4e),P3e),x3e),ygn(d3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,u9n),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),false),M3e),Uhe),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,s9n),""),"Hypernode"),"Whether the node should be handled as a hypernode."),false),M3e),Uhe),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,Qne),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),P3e),Jht),nV(p3e,zfn(fT(k3e,1),g1n,170,0,[g3e])))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,b9n),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),X4e),P3e),Qje),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,H8n),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),false),M3e),Uhe),nV(v3e,zfn(fT(k3e,1),g1n,170,0,[d3e,m3e,g3e])))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Jne),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),T3e),Yhe),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,Yne),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,Zne),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,m4n),""),Ane),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),false),M3e),Uhe),ygn(p3e))));V4(e,m4n,T4n,null);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,nee),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),true),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,eee),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),Bwn(100)),S3e),tle),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,tee),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,ree),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Bwn(4e3)),S3e),tle),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,iee),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Bwn(400)),S3e),tle),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,aee),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,cee),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,uee),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),true),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,see),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Xne),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),m4e),j3e),X9e),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,O8n),p8n),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,A8n),p8n),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,$3n),p8n),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,L8n),p8n),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,u4n),p8n),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,N8n),p8n),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,$8n),p8n),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,R8n),p8n),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,D8n),p8n),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,x8n),p8n),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,c4n),p8n),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,K8n),p8n),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,F8n),p8n),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),T3e),Yhe),nV(p3e,zfn(fT(k3e,1),g1n,170,0,[v3e])))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,_8n),p8n),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),P3e),h7e),nV(v3e,zfn(fT(k3e,1),g1n,170,0,[d3e,m3e,g3e])))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,w9n),p8n),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),W6e),P3e),Qje),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,h9n),wee),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),S3e),tle),nV(p3e,zfn(fT(k3e,1),g1n,170,0,[v3e])))));V4(e,h9n,f9n,h6e);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,f9n),wee),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),o6e),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,W8n),dee),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),z4e),P3e),sEe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,v4n),dee),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),Q4e),E3e),o8e),nV(v3e,zfn(fT(k3e,1),g1n,170,0,[g3e])))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Y8n),gee),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),b6e),j3e),g8e),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,Z8n),gee),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),j3e),g8e),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,n9n),gee),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),j3e),g8e),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,e9n),gee),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),j3e),g8e),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,t9n),gee),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),j3e),g8e),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,g4n),vee),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),Y4e),E3e),w9e),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,d4n),vee),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),r6e),E3e),E9e),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,D4n),vee),"Node Size Minimum"),"The minimal size to which a node can be reduced."),e6e),P3e),D3e),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,w4n),vee),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,a9n),C8n),"Edge Label Placement"),"Gives a hint on where to put edge labels."),O4e),j3e),p5e),ygn(g3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,l4n),C8n),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),false),M3e),Uhe),ygn(g3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,oee),"font"),"Font Name"),"Font name used for a label."),C3e),vle),ygn(g3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,fee),"font"),"Font Size"),"Font size used for a label."),S3e),tle),ygn(g3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,o9n),pee),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),P3e),D3e),ygn(m3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,c9n),pee),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),S3e),tle),ygn(m3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,U8n),pee),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),C6e),j3e),e9e),ygn(m3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,B8n),pee),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),T3e),Yhe),ygn(m3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,p4n),mee),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),E6e),E3e),L8e),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Q8n),mee),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),false),M3e),Uhe),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,J8n),mee),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),true),M3e),Uhe),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,k4n),kee),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),T3e),Yhe),ygn(p3e))));V4(e,k4n,T4n,i5e);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,hee),kee),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),j3e),$9e),ygn(v3e))));V4(e,hee,T4n,c5e);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,y4n),kee),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),T3e),Yhe),nV(p3e,zfn(fT(k3e,1),g1n,170,0,[v3e])))));V4(e,y4n,T4n,null);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,M4n),kee),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),T3e),Yhe),nV(p3e,zfn(fT(k3e,1),g1n,170,0,[v3e])))));V4(e,M4n,T4n,null);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,T4n),kee),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),j3e),O9e),ygn(v3e))));V4(e,T4n,w4n,null);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,lee),kee),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),T3e),Yhe),ygn(p3e))));V4(e,lee,T4n,t5e);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,X8n),yee),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),false),M3e),Uhe),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,V8n),yee),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),false),M3e),Uhe),ygn(d3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,D3n),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),T3e),Yhe),ygn(d3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,bee),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),$4e),j3e),L5e),ygn(d3e))));wP(e,new $2(XT(zT(VT(new ms,E0n),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.')));wP(e,new $2(XT(zT(VT(new ms,"org.eclipse.elk.orthogonal"),"Orthogonal"),'Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia \'86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.')));wP(e,new $2(XT(zT(VT(new ms,i4n),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984.")));wP(e,new $2(XT(zT(VT(new ms,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph.")));wP(e,new $2(XT(zT(VT(new ms,a7n),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type.")));wP(e,new $2(XT(zT(VT(new ms,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable.")));wP(e,new $2(XT(zT(VT(new ms,D7n),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles.")));EHn((new Bl,e));rGn((new Fl,e));x_n((new Hl,e))};var b4e,w4e,d4e,g4e,v4e,p4e,m4e,k4e,y4e,M4e,T4e,j4e,E4e,S4e,P4e,C4e,I4e,O4e,A4e,L4e,N4e,$4e,D4e,x4e,R4e,K4e,F4e,_4e,B4e,H4e,U4e,G4e,q4e,X4e,V4e,z4e,W4e,Q4e,J4e,Y4e,Z4e,n6e,e6e,t6e,r6e,i6e,a6e,c6e,u6e,s6e,o6e,f6e,h6e,l6e,b6e,w6e,d6e,g6e,v6e,p6e,m6e,k6e,y6e,M6e,T6e,j6e,E6e,S6e,P6e,C6e,I6e,O6e,A6e,L6e,N6e,$6e,D6e,x6e,R6e,K6e,F6e,_6e,B6e,H6e,U6e,G6e,q6e,X6e,V6e,z6e,W6e,Q6e,J6e,Y6e,Z6e,n5e,e5e,t5e,r5e,i5e,a5e,c5e;var u5e=YW(Hne,"CoreOptions",699);wDn(88,22,{3:1,34:1,22:1,88:1},LO);var s5e,o5e,f5e,h5e,l5e;var b5e=qan(Hne,h3n,88,joe,V8,wU);var w5e;wDn(278,22,{3:1,34:1,22:1,278:1},NO);var d5e,g5e,v5e;var p5e=qan(Hne,"EdgeLabelPlacement",278,joe,S3,dU);var m5e;wDn(223,22,{3:1,34:1,22:1,223:1},$O);var k5e,y5e,M5e,T5e;var j5e=qan(Hne,"EdgeRouting",223,joe,b5,gU);var E5e;wDn(321,22,{3:1,34:1,22:1,321:1},DO);var S5e,P5e,C5e,I5e,O5e,A5e;var L5e=qan(Hne,"EdgeType",321,joe,ten,vU);var N5e;wDn(989,1,R2n,Bl);lce.hf=function n(e){EHn(e)};var $5e,D5e,x5e,R5e,K5e,F5e,_5e;var B5e=YW(Hne,"FixedLayouterOptions",989);wDn(990,1,{},Hs);lce.sf=function n(){var e;return e=new Zs,e};lce.tf=function n(e){};var H5e=YW(Hne,"FixedLayouterOptions/FixedFactory",990);wDn(346,22,{3:1,34:1,22:1,346:1},xO);var U5e,G5e,q5e;var X5e=qan(Hne,"HierarchyHandling",346,joe,j3,pU);var V5e;wDn(291,22,{3:1,34:1,22:1,291:1},RO);var z5e,W5e,Q5e,J5e;var Y5e=qan(Hne,"LabelSide",291,joe,l5,mU);var Z5e;wDn(95,22,{3:1,34:1,22:1,95:1},KO);var n8e,e8e,t8e,r8e,i8e,a8e,c8e,u8e,s8e;var o8e=qan(Hne,"NodeLabelPlacement",95,joe,pan,kU);var f8e;wDn(256,22,{3:1,34:1,22:1,256:1},FO);var h8e,l8e,b8e,w8e,d8e;var g8e=qan(Hne,"PortAlignment",256,joe,M9,yU);var v8e;wDn(101,22,{3:1,34:1,22:1,101:1},_O);var p8e,m8e,k8e,y8e,M8e,T8e;var j8e=qan(Hne,"PortConstraints",101,joe,een,MU);var E8e;wDn(279,22,{3:1,34:1,22:1,279:1},BO);var S8e,P8e,C8e,I8e,O8e,A8e;var L8e=qan(Hne,"PortLabelPlacement",279,joe,nen,TU);var N8e;wDn(64,22,{3:1,34:1,22:1,64:1},HO);var $8e,D8e,x8e,R8e,K8e,F8e,_8e,B8e,H8e,U8e,G8e,q8e,X8e,V8e,z8e,W8e,Q8e,J8e,Y8e,Z8e,n9e;var e9e=qan(Hne,"PortSide",64,joe,z8,jU);var t9e;wDn(993,1,R2n,Hl);lce.hf=function n(e){x_n(e)};var r9e,i9e,a9e,c9e,u9e;var s9e=YW(Hne,"RandomLayouterOptions",993);wDn(994,1,{},Us);lce.sf=function n(){var e;return e=new Qs,e};lce.tf=function n(e){};var o9e=YW(Hne,"RandomLayouterOptions/RandomFactory",994);wDn(386,22,{3:1,34:1,22:1,386:1},UO);var f9e,h9e,l9e,b9e;var w9e=qan(Hne,"SizeConstraint",386,joe,h5,EU);var d9e;wDn(264,22,{3:1,34:1,22:1,264:1},GO);var g9e,v9e,p9e,m9e,k9e,y9e,M9e,T9e,j9e;var E9e=qan(Hne,"SizeOptions",264,joe,Pcn,SU);var S9e;wDn(280,22,{3:1,34:1,22:1,280:1},qO);var P9e,C9e,I9e;var O9e=qan(Hne,"TopdownNodeTypes",280,joe,P3,PU);var A9e;wDn(347,22,jee);var L9e,N9e;var $9e=qan(Hne,"TopdownSizeApproximator",347,joe,$1,IU);wDn(987,347,jee,Lq);lce.Tg=function n(e){return wMn(e)};var D9e=qan(Hne,"TopdownSizeApproximator/1",987,$9e,null,null);wDn(988,347,jee,yz);lce.Tg=function n(e){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S,P;r=bG(YDn(e,(JYn(),L6e)),143);j=(yj(),d=new Xk,d);hKn(j,e);E=new rm;for(u=new _D((!e.a&&(e.a=new gz(snt,e,10,11)),e.a));u.e!=u.i.gc();){a=bG(iyn(u),27);k=(w=new Xk,w);WRn(k,j);hKn(k,a);P=wMn(a);jN(k,t.Math.max(a.g,P.a),t.Math.max(a.f,P.b));ZAn(E.f,a,k)}for(c=new _D((!e.a&&(e.a=new gz(snt,e,10,11)),e.a));c.e!=c.i.gc();){a=bG(iyn(c),27);for(l=new _D((!a.e&&(a.e=new g_(H7e,a,7,4)),a.e));l.e!=l.i.gc();){h=bG(iyn(l),74);M=bG(_A(GX(E.f,a)),27);T=bG(fQ(E,Yin((!h.c&&(h.c=new g_(B7e,h,5,8)),h.c),0)),27);y=(b=new co,b);cen((!y.b&&(y.b=new g_(B7e,y,4,7)),y.b),M);cen((!y.c&&(y.c=new g_(B7e,y,5,8)),y.c),T);xRn(y,H0(M));hKn(y,h)}}v=bG(x1(r.f),205);try{v.rf(j,new ro);nJ(r.f,v)}catch(C){C=Ofn(C);if(G$(C,103)){g=C;throw dm(g)}else throw dm(C)}jnn(j,y4e)||jnn(j,k4e)||ZJn(j);f=bM(MK(YDn(j,y4e)));o=bM(MK(YDn(j,k4e)));s=f/o;i=bM(MK(YDn(j,Y6e)))*t.Math.sqrt((!j.a&&(j.a=new gz(snt,j,10,11)),j.a).i);S=bG(YDn(j,c6e),107);m=S.b+S.c+1;p=S.d+S.a+1;return new PO(t.Math.max(m,i),t.Math.max(p,i/s))};var x9e=qan(Hne,"TopdownSizeApproximator/2",988,$9e,null,null);var R9e;wDn(344,1,{871:1},gy);lce.Ug=function n(e,t){return kCn(this,e,t)};lce.Vg=function n(){LOn(this)};lce.Wg=function n(){return this.q};lce.Xg=function n(){return!this.f?null:AZ(this.f)};lce.Yg=function n(){return AZ(this.a)};lce.Zg=function n(){return this.p};lce.$g=function n(){return false};lce._g=function n(){return this.n};lce.ah=function n(){return this.p!=null&&!this.b};lce.bh=function n(e){var t;if(this.n){t=e;ED(this.f,t)}};lce.dh=function n(e,t){var r,i;this.n&&!!e&&a4(this,(r=new _W,i=lUn(r,e),qWn(r),i),(Oln(),g7e))};lce.eh=function n(e){var t;if(this.b){return null}else{t=sin(this,this.g);hq(this.a,t);t.i=this;this.d=e;return t}};lce.fh=function n(e){e>0&&!this.b&&Xcn(this,e)};lce.b=false;lce.c=0;lce.d=-1;lce.e=null;lce.f=null;lce.g=-1;lce.j=false;lce.k=false;lce.n=false;lce.o=0;lce.q=0;lce.r=0;var K9e=YW(g9n,"BasicProgressMonitor",344);wDn(717,205,y3n,Gs);lce.rf=function n(e,t){JGn(e,t)};var F9e=YW(g9n,"BoxLayoutProvider",717);wDn(983,1,l2n,Qv);lce.Ne=function n(e,t){return cKn(this,bG(e,27),bG(t,27))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};lce.a=false;var _9e=YW(g9n,"BoxLayoutProvider/1",983);wDn(163,1,{163:1},tan,aK);lce.Ib=function n(){return this.c?YBn(this.c):jIn(this.b)};var B9e=YW(g9n,"BoxLayoutProvider/Group",163);wDn(320,22,{3:1,34:1,22:1,320:1},VO);var H9e,U9e,G9e,q9e;var X9e=qan(g9n,"BoxLayoutProvider/PackingMode",320,joe,w5,OU);var V9e;wDn(984,1,l2n,qs);lce.Ne=function n(e,t){return oZ(bG(e,163),bG(t,163))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var z9e=YW(g9n,"BoxLayoutProvider/lambda$0$Type",984);wDn(985,1,l2n,Xs);lce.Ne=function n(e,t){return WY(bG(e,163),bG(t,163))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var W9e=YW(g9n,"BoxLayoutProvider/lambda$1$Type",985);wDn(986,1,l2n,Vs);lce.Ne=function n(e,t){return QY(bG(e,163),bG(t,163))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Q9e=YW(g9n,"BoxLayoutProvider/lambda$2$Type",986);wDn(1384,1,{845:1},zs);lce.Mg=function n(e,t){return iP(),!G$(t,167)||iE((nhn(),h2e,bG(e,167)),t)};var J9e=YW(g9n,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1384);wDn(1385,1,WZn,Jv);lce.Cd=function n(e){dbn(this.a,bG(e,149))};var Y9e=YW(g9n,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1385);wDn(1386,1,WZn,Js);lce.Cd=function n(e){bG(e,96);iP()};var Z9e=YW(g9n,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1386);wDn(1390,1,WZn,Yv);lce.Cd=function n(e){qun(this.a,bG(e,96))};var n7e=YW(g9n,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1390);wDn(1388,1,k1n,zO);lce.Mb=function n(e){return lln(this.a,this.b,bG(e,149))};var e7e=YW(g9n,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1388);wDn(1387,1,k1n,WO);lce.Mb=function n(e){return LR(this.a,this.b,bG(e,845))};var t7e=YW(g9n,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1387);wDn(1389,1,WZn,QO);lce.Cd=function n(e){sz(this.a,this.b,bG(e,149))};var r7e=YW(g9n,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1389);wDn(947,1,{},Ys);lce.Kb=function n(e){return lN(e)};lce.Fb=function n(e){return this===e};var i7e=YW(g9n,"ElkUtil/lambda$0$Type",947);wDn(948,1,WZn,JO);lce.Cd=function n(e){t$n(this.a,this.b,bG(e,74))};lce.a=0;lce.b=0;var a7e=YW(g9n,"ElkUtil/lambda$1$Type",948);wDn(949,1,WZn,YO);lce.Cd=function n(e){cM(this.a,this.b,bG(e,166))};lce.a=0;lce.b=0;var c7e=YW(g9n,"ElkUtil/lambda$2$Type",949);wDn(950,1,WZn,ZO);lce.Cd=function n(e){zN(this.a,this.b,bG(e,135))};lce.a=0;lce.b=0;var u7e=YW(g9n,"ElkUtil/lambda$3$Type",950);wDn(951,1,WZn,Zv);lce.Cd=function n(e){Rq(this.a,bG(e,377))};var s7e=YW(g9n,"ElkUtil/lambda$4$Type",951);wDn(325,1,{34:1,325:1},tm);lce.Fd=function n(e){return mD(this,bG(e,242))};lce.Fb=function n(e){var t;if(G$(e,325)){t=bG(e,325);return this.a==t.a}return false};lce.Hb=function n(){return c0(this.a)};lce.Ib=function n(){return this.a+" (exclusive)"};lce.a=0;var o7e=YW(g9n,"ExclusiveBounds/ExclusiveLowerBound",325);wDn(1119,205,y3n,Zs);lce.rf=function n(e,r){var i,a,c,u,s,o,f,h,l,b,w,g,v,p,m,k,y,M,T,j,E,S,P;r.Ug("Fixed Layout",1);u=bG(YDn(e,(JYn(),A4e)),223);b=0;w=0;for(y=new _D((!e.a&&(e.a=new gz(snt,e,10,11)),e.a));y.e!=y.i.gc();){m=bG(iyn(y),27);P=bG(YDn(m,($ln(),_5e)),8);if(P){EN(m,P.a,P.b);if(bG(YDn(m,D5e),181).Hc((emn(),f9e))){g=bG(YDn(m,R5e),8);g.a>0&&g.b>0&&iJn(m,g.a,g.b,true,true)}}b=t.Math.max(b,m.i+m.g);w=t.Math.max(w,m.j+m.f);for(h=new _D((!m.n&&(m.n=new gz(unt,m,1,7)),m.n));h.e!=h.i.gc();){o=bG(iyn(h),135);P=bG(YDn(o,_5e),8);!!P&&EN(o,P.a,P.b);b=t.Math.max(b,m.i+o.i+o.g);w=t.Math.max(w,m.j+o.j+o.f)}for(j=new _D((!m.c&&(m.c=new gz(ont,m,9,9)),m.c));j.e!=j.i.gc();){T=bG(iyn(j),123);P=bG(YDn(T,_5e),8);!!P&&EN(T,P.a,P.b);E=m.i+T.i;S=m.j+T.j;b=t.Math.max(b,E+T.g);w=t.Math.max(w,S+T.f);for(f=new _D((!T.n&&(T.n=new gz(unt,T,1,7)),T.n));f.e!=f.i.gc();){o=bG(iyn(f),135);P=bG(YDn(o,_5e),8);!!P&&EN(o,P.a,P.b);b=t.Math.max(b,E+o.i+o.g);w=t.Math.max(w,S+o.j+o.f)}}for(c=new GV(sx(uRn(m).a.Kc(),new d));dDn(c);){i=bG(K9(c),74);l=sJn(i);b=t.Math.max(b,l.a);w=t.Math.max(w,l.b)}for(a=new GV(sx(cRn(m).a.Kc(),new d));dDn(a);){i=bG(K9(a),74);if(H0(pIn(i))!=e){l=sJn(i);b=t.Math.max(b,l.a);w=t.Math.max(w,l.b)}}}if(u==(qgn(),k5e)){for(k=new _D((!e.a&&(e.a=new gz(snt,e,10,11)),e.a));k.e!=k.i.gc();){m=bG(iyn(k),27);for(a=new GV(sx(uRn(m).a.Kc(),new d));dDn(a);){i=bG(K9(a),74);s=pGn(i);s.b==0?Pyn(i,U4e,null):Pyn(i,U4e,s)}}}if(!lM(yK(YDn(e,($ln(),x5e))))){M=bG(YDn(e,K5e),107);p=b+M.b+M.c;v=w+M.d+M.a;iJn(e,p,v,true,true)}r.Vg()};var f7e=YW(g9n,"FixedLayoutProvider",1119);wDn(385,137,{3:1,423:1,385:1,96:1,137:1},no,Qtn);lce.cg=function n(e){var t,r,i,a,c,u,s,o,f;if(!e){return}try{o=nqn(e,";,;");for(c=o,u=0,s=c.length;u>16&$1n|t^i<<16};lce.Kc=function n(){return new np(this)};lce.Ib=function n(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+fvn(this.b)+")":this.b==null?"pair("+fvn(this.a)+",null)":"pair("+fvn(this.a)+","+fvn(this.b)+")"};var M7e=YW(g9n,"Pair",42);wDn(995,1,NZn,np);lce.Nb=function n(e){Az(this,e)};lce.Ob=function n(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)};lce.Pb=function n(){if(!this.c&&!this.b&&this.a.a!=null){this.b=true;return this.a.a}else if(!this.c&&this.a.b!=null){this.c=true;return this.a.b}throw dm(new Xm)};lce.Qb=function n(){this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null);throw dm(new Bm)};lce.b=false;lce.c=false;var T7e=YW(g9n,"Pair/1",995);wDn(455,1,{455:1},jY);lce.Fb=function n(e){return DJ(this.a,bG(e,455).a)&&DJ(this.c,bG(e,455).c)&&DJ(this.d,bG(e,455).d)&&DJ(this.b,bG(e,455).b)};lce.Hb=function n(){return Dbn(zfn(fT(kce,1),jZn,1,5,[this.a,this.c,this.d,this.b]))};lce.Ib=function n(){return"("+this.a+MZn+this.c+MZn+this.d+MZn+this.b+")"};var j7e=YW(g9n,"Quadruple",455);wDn(1108,205,y3n,Qs);lce.rf=function n(e,t){var r,i,a,c,u;t.Ug("Random Layout",1);if((!e.a&&(e.a=new gz(snt,e,10,11)),e.a).i==0){t.Vg();return}c=bG(YDn(e,(nmn(),c9e)),17);!!c&&c.a!=0?a=new j8(c.a):a=new zvn;r=wM(MK(YDn(e,r9e)));u=wM(MK(YDn(e,u9e)));i=bG(YDn(e,i9e),107);jQn(e,a,r,u,i);t.Vg()};var E7e=YW(g9n,"RandomLayoutProvider",1108);wDn(240,1,{240:1},RU);lce.Fb=function n(e){return DJ(this.a,bG(e,240).a)&&DJ(this.b,bG(e,240).b)&&DJ(this.c,bG(e,240).c)};lce.Hb=function n(){return Dbn(zfn(fT(kce,1),jZn,1,5,[this.a,this.b,this.c]))};lce.Ib=function n(){return"("+this.a+MZn+this.b+MZn+this.c+")"};var S7e=YW(g9n,"Triple",240);var P7e;wDn(562,1,{});lce.Lf=function n(){return new PO(this.f.i,this.f.j)};lce.of=function n(e){if(e1(e,(JYn(),m6e))){return YDn(this.f,C7e)}return YDn(this.f,e)};lce.Mf=function n(){return new PO(this.f.g,this.f.f)};lce.Nf=function n(){return this.g};lce.pf=function n(e){return jnn(this.f,e)};lce.Of=function n(e){San(this.f,e.a);Pan(this.f,e.b)};lce.Pf=function n(e){Ean(this.f,e.a);jan(this.f,e.b)};lce.Qf=function n(e){this.g=e};lce.g=0;var C7e;var I7e=YW(Pee,"ElkGraphAdapters/AbstractElkGraphElementAdapter",562);wDn(563,1,{853:1},ep);lce.Rf=function n(){var e,t;if(!this.b){this.b=l6(BJ(this.a).i);for(t=new _D(BJ(this.a));t.e!=t.i.gc();){e=bG(iyn(t),135);ED(this.b,new nM(e))}}return this.b};lce.b=null;var O7e=YW(Pee,"ElkGraphAdapters/ElkEdgeAdapter",563);wDn(289,562,{},Zy);lce.Sf=function n(){return GTn(this)};lce.a=null;var A7e=YW(Pee,"ElkGraphAdapters/ElkGraphAdapter",289);wDn(640,562,{187:1},nM);var L7e=YW(Pee,"ElkGraphAdapters/ElkLabelAdapter",640);wDn(639,562,{695:1},nR);lce.Rf=function n(){return HTn(this)};lce.Vf=function n(){var e;return e=bG(YDn(this.f,(JYn(),q4e)),140),!e&&(e=new Kk),e};lce.Xf=function n(){return UTn(this)};lce.Zf=function n(e){var t;t=new YU(e);Pyn(this.f,(JYn(),q4e),t)};lce.$f=function n(e){Pyn(this.f,(JYn(),c6e),new ZU(e))};lce.Tf=function n(){return this.d};lce.Uf=function n(){var e,t;if(!this.a){this.a=new im;for(t=new GV(sx(cRn(bG(this.f,27)).a.Kc(),new d));dDn(t);){e=bG(K9(t),74);ED(this.a,new ep(e))}}return this.a};lce.Wf=function n(){var e,t;if(!this.c){this.c=new im;for(t=new GV(sx(uRn(bG(this.f,27)).a.Kc(),new d));dDn(t);){e=bG(K9(t),74);ED(this.c,new ep(e))}}return this.c};lce.Yf=function n(){return mZ(bG(this.f,27)).i!=0||lM(yK(bG(this.f,27).of((JYn(),F4e))))};lce._f=function n(){Jtn(this,(jP(),P7e))};lce.a=null;lce.b=null;lce.c=null;lce.d=null;lce.e=null;var N7e=YW(Pee,"ElkGraphAdapters/ElkNodeAdapter",639);wDn(1284,562,{852:1},tp);lce.Rf=function n(){return ojn(this)};lce.Uf=function n(){var e,t;if(!this.a){this.a=sR(bG(this.f,123).hh().i);for(t=new _D(bG(this.f,123).hh());t.e!=t.i.gc();){e=bG(iyn(t),74);ED(this.a,new ep(e))}}return this.a};lce.Wf=function n(){var e,t;if(!this.c){this.c=sR(bG(this.f,123).ih().i);for(t=new _D(bG(this.f,123).ih());t.e!=t.i.gc();){e=bG(iyn(t),74);ED(this.c,new ep(e))}}return this.c};lce.ag=function n(){return bG(bG(this.f,123).of((JYn(),P6e)),64)};lce.bg=function n(){var e,t,r,i,a,c,u,s;i=d0(bG(this.f,123));for(r=new _D(bG(this.f,123).ih());r.e!=r.i.gc();){e=bG(iyn(r),74);for(s=new _D((!e.c&&(e.c=new g_(B7e,e,5,8)),e.c));s.e!=s.i.gc();){u=bG(iyn(s),84);if(Oin(vCn(u),i)){return true}else if(vCn(u)==i&&lM(yK(YDn(e,(JYn(),_4e))))){return true}}}for(t=new _D(bG(this.f,123).hh());t.e!=t.i.gc();){e=bG(iyn(t),74);for(c=new _D((!e.b&&(e.b=new g_(B7e,e,4,7)),e.b));c.e!=c.i.gc();){a=bG(iyn(c),84);if(Oin(vCn(a),i)){return true}}}return false};lce.a=null;lce.b=null;lce.c=null;var $7e=YW(Pee,"ElkGraphAdapters/ElkPortAdapter",1284);wDn(1285,1,l2n,Ws);lce.Ne=function n(e,t){return JBn(bG(e,123),bG(t,123))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var D7e=YW(Pee,"ElkGraphAdapters/PortComparator",1285);var x7e=$q(Cee,"EObject");var R7e=$q(Iee,Oee);var K7e=$q(Iee,Aee);var F7e=$q(Iee,Lee);var _7e=$q(Iee,"ElkShape");var B7e=$q(Iee,Nee);var H7e=$q(Iee,$ee);var U7e=$q(Iee,Dee);var G7e=$q(Cee,xee);var q7e=$q(Cee,"EFactory");var X7e;var V7e=$q(Cee,Ree);var z7e=$q(Cee,"EPackage");var W7e;var Q7e,J7e,Y7e,Z7e,nnt,ent,tnt,rnt,int,ant,cnt;var unt=$q(Iee,Kee);var snt=$q(Iee,Fee);var ont=$q(Iee,_ee);wDn(93,1,Bee);lce.th=function n(){this.uh();return null};lce.uh=function n(){return null};lce.vh=function n(){return this.uh(),false};lce.wh=function n(){return false};lce.xh=function n(e){Pon(this,e)};var fnt=YW(Hee,"BasicNotifierImpl",93);wDn(99,93,Qee);lce.Yh=function n(){return bN(this)};lce.yh=function n(e,t){return e};lce.zh=function n(){throw dm(new Um)};lce.Ah=function n(e){var t;return t=vMn(bG(uin(this.Dh(),this.Fh()),19)),this.Ph().Th(this,t.n,t.f,e)};lce.Bh=function n(e,t){throw dm(new Um)};lce.Ch=function n(e,t,r){return FUn(this,e,t,r)};lce.Dh=function n(){var e;if(this.zh()){e=this.zh().Nk();if(e){return e}}return this.ii()};lce.Eh=function n(){return tDn(this)};lce.Fh=function n(){throw dm(new Um)};lce.Gh=function n(){var e,t;t=this.$h().Ok();!t&&this.zh().Tk(t=(IP(),e=F1(uqn(this.Dh())),e==null?lat:new Yx(this,e)));return t};lce.Hh=function n(e,t){return e};lce.Ih=function n(e){var t;t=e.pk();return!t?upn(this.Dh(),e):e.Lj()};lce.Jh=function n(){var e;e=this.zh();return!e?null:e.Qk()};lce.Kh=function n(){return!this.zh()?null:this.zh().Nk()};lce.Lh=function n(e,t,r){return _yn(this,e,t,r)};lce.Mh=function n(e){return jen(this,e)};lce.Nh=function n(e,t){return z9(this,e,t)};lce.Oh=function n(){var e;e=this.zh();return!!e&&e.Rk()};lce.Ph=function n(){throw dm(new Um)};lce.Qh=function n(){return Umn(this)};lce.Rh=function n(e,t,r,i){return Eyn(this,e,t,i)};lce.Sh=function n(e,t,r){var i;return i=bG(uin(this.Dh(),t),69),i.wk().zk(this,this.hi(),t-this.ji(),e,r)};lce.Th=function n(e,t,r,i){return D1(this,e,t,i)};lce.Uh=function n(e,t,r){var i;return i=bG(uin(this.Dh(),t),69),i.wk().Ak(this,this.hi(),t-this.ji(),e,r)};lce.Vh=function n(){return!!this.zh()&&!!this.zh().Pk()};lce.Wh=function n(e){return nyn(this,e)};lce.Xh=function n(e){return P0(this,e)};lce.Zh=function n(e){return IWn(this,e)};lce.$h=function n(){throw dm(new Um)};lce._h=function n(){return!this.zh()?null:this.zh().Pk()};lce.ai=function n(){return Umn(this)};lce.bi=function n(e,t){wLn(this,e,t)};lce.ci=function n(e){this.$h().Sk(e)};lce.di=function n(e){this.$h().Vk(e)};lce.ei=function n(e){this.$h().Uk(e)};lce.fi=function n(e,t){var r,i,a,c;c=this.Jh();if(!!c&&!!e){t=Kyn(c.El(),this,t);c.Il(this)}i=this.Ph();if(i){if((LHn(this,this.Ph(),this.Fh()).Bb&S0n)!=0){a=i.Qh();!!a&&(!e?a.Hl(this):!c&&a.Il(this))}else{t=(r=this.Fh(),r>=0?this.Ah(t):this.Ph().Th(this,-1-r,null,t));t=this.Ch(null,-1,t)}}this.di(e);return t};lce.gi=function n(e){var t,r,i,a,c,u,s,o;r=this.Dh();c=upn(r,e);t=this.ji();if(c>=t){return bG(e,69).wk().Dk(this,this.hi(),c-t)}else if(c<=-1){u=szn((yAn(),Vut),r,e);if(u){LP();bG(u,69).xk()||(u=q3(Ktn(Vut,u)));a=(i=this.Ih(u),bG(i>=0?this.Lh(i,true,true):r$n(this,u,true),160));o=u.Ik();if(o>1||o==-1){return bG(bG(a,220).Sl(e,false),79)}}else{throw dm(new jM(Uee+e.xe()+Xee))}}else if(e.Jk()){return i=this.Ih(e),bG(i>=0?this.Lh(i,false,true):r$n(this,e,false),79)}s=new IA(this,e);return s};lce.hi=function n(){return nrn(this)};lce.ii=function n(){return(cQ(),_rt).S};lce.ji=function n(){return sQ(this.ii())};lce.ki=function n(e){lAn(this,e)};lce.Ib=function n(){return jxn(this)};var hnt=YW(Jee,"BasicEObjectImpl",99);var lnt;wDn(119,99,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1});lce.li=function n(e){var t;t=Ztn(this);return t[e]};lce.mi=function n(e,t){var r;r=Ztn(this);bQ(r,e,t)};lce.ni=function n(e){var t;t=Ztn(this);bQ(t,e,null)};lce.th=function n(){return bG(Ron(this,4),129)};lce.uh=function n(){throw dm(new Um)};lce.vh=function n(){return(this.Db&4)!=0};lce.zh=function n(){throw dm(new Um)};lce.oi=function n(e){_mn(this,2,e)};lce.Bh=function n(e,t){this.Db=t<<16|this.Db&255;this.oi(e)};lce.Dh=function n(){return u1(this)};lce.Fh=function n(){return this.Db>>16};lce.Gh=function n(){var e,t;return IP(),t=F1(uqn((e=bG(Ron(this,16),29),!e?this.ii():e))),t==null?(null,lat):new Yx(this,t)};lce.wh=function n(){return(this.Db&1)==0};lce.Jh=function n(){return bG(Ron(this,128),2034)};lce.Kh=function n(){return bG(Ron(this,16),29)};lce.Oh=function n(){return(this.Db&32)!=0};lce.Ph=function n(){return bG(Ron(this,2),54)};lce.Vh=function n(){return(this.Db&64)!=0};lce.$h=function n(){throw dm(new Um)};lce._h=function n(){return bG(Ron(this,64),288)};lce.ci=function n(e){_mn(this,16,e)};lce.di=function n(e){_mn(this,128,e)};lce.ei=function n(e){_mn(this,64,e)};lce.hi=function n(){return Fmn(this)};lce.Db=0;var bnt=YW(Jee,"MinimalEObjectImpl",119);wDn(120,119,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1});lce.oi=function n(e){this.Cb=e};lce.Ph=function n(){return this.Cb};var wnt=YW(Jee,"MinimalEObjectImpl/Container",120);wDn(2083,120,{110:1,342:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1});lce.Lh=function n(e,t,r){return hjn(this,e,t,r)};lce.Uh=function n(e,t,r){return XIn(this,e,t,r)};lce.Wh=function n(e){return I4(this,e)};lce.bi=function n(e,t){pln(this,e,t)};lce.ii=function n(){return cYn(),cnt};lce.ki=function n(e){ghn(this,e)};lce.nf=function n(){return eyn(this)};lce.gh=function n(){return!this.o&&(this.o=new ven((cYn(),int),Rnt,this,0)),this.o};lce.of=function n(e){return YDn(this,e)};lce.pf=function n(e){return jnn(this,e)};lce.qf=function n(e,t){return Pyn(this,e,t)};var dnt=YW(Yee,"EMapPropertyHolderImpl",2083);wDn(572,120,{110:1,377:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},io);lce.Lh=function n(e,t,r){switch(e){case 0:return this.a;case 1:return this.b}return _yn(this,e,t,r)};lce.Wh=function n(e){switch(e){case 0:return this.a!=0;case 1:return this.b!=0}return nyn(this,e)};lce.bi=function n(e,t){switch(e){case 0:Aan(this,bM(MK(t)));return;case 1:Man(this,bM(MK(t)));return}wLn(this,e,t)};lce.ii=function n(){return cYn(),Q7e};lce.ki=function n(e){switch(e){case 0:Aan(this,0);return;case 1:Man(this,0);return}lAn(this,e)};lce.Ib=function n(){var e;if((this.Db&64)!=0)return jxn(this);e=new gx(jxn(this));e.a+=" (x: ";Dj(e,this.a);e.a+=", y: ";Dj(e,this.b);e.a+=")";return e.a};lce.a=0;lce.b=0;var gnt=YW(Yee,"ElkBendPointImpl",572);wDn(739,2083,{110:1,342:1,167:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1});lce.Lh=function n(e,t,r){return Jdn(this,e,t,r)};lce.Sh=function n(e,t,r){return ACn(this,e,t,r)};lce.Uh=function n(e,t,r){return Mfn(this,e,t,r)};lce.Wh=function n(e){return qon(this,e)};lce.bi=function n(e,t){NSn(this,e,t)};lce.ii=function n(){return cYn(),nnt};lce.ki=function n(e){xwn(this,e)};lce.jh=function n(){return this.k};lce.kh=function n(){return BJ(this)};lce.Ib=function n(){return Ogn(this)};lce.k=null;var vnt=YW(Yee,"ElkGraphElementImpl",739);wDn(740,739,{110:1,342:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1});lce.Lh=function n(e,t,r){return wvn(this,e,t,r)};lce.Wh=function n(e){return Uvn(this,e)};lce.bi=function n(e,t){$Sn(this,e,t)};lce.ii=function n(){return cYn(),ant};lce.ki=function n(e){Cpn(this,e)};lce.lh=function n(){return this.f};lce.mh=function n(){return this.g};lce.nh=function n(){return this.i};lce.oh=function n(){return this.j};lce.ph=function n(e,t){jN(this,e,t)};lce.qh=function n(e,t){EN(this,e,t)};lce.rh=function n(e){San(this,e)};lce.sh=function n(e){Pan(this,e)};lce.Ib=function n(){return oOn(this)};lce.f=0;lce.g=0;lce.i=0;lce.j=0;var pnt=YW(Yee,"ElkShapeImpl",740);wDn(741,740,{110:1,342:1,84:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1});lce.Lh=function n(e,t,r){return AMn(this,e,t,r)};lce.Sh=function n(e,t,r){return cSn(this,e,t,r)};lce.Uh=function n(e,t,r){return uSn(this,e,t,r)};lce.Wh=function n(e){return sln(this,e)};lce.bi=function n(e,t){ADn(this,e,t)};lce.ii=function n(){return cYn(),J7e};lce.ki=function n(e){Syn(this,e)};lce.hh=function n(){return!this.d&&(this.d=new g_(H7e,this,8,5)),this.d};lce.ih=function n(){return!this.e&&(this.e=new g_(H7e,this,7,4)),this.e};var mnt=YW(Yee,"ElkConnectableShapeImpl",741);wDn(326,739,{110:1,342:1,74:1,167:1,326:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},co);lce.Ah=function n(e){return wEn(this,e)};lce.Lh=function n(e,t,r){switch(e){case 3:return w0(this);case 4:return!this.b&&(this.b=new g_(B7e,this,4,7)),this.b;case 5:return!this.c&&(this.c=new g_(B7e,this,5,8)),this.c;case 6:return!this.a&&(this.a=new gz(U7e,this,6,6)),this.a;case 7:return Qx(),!this.b&&(this.b=new g_(B7e,this,4,7)),this.b.i<=1&&(!this.c&&(this.c=new g_(B7e,this,5,8)),this.c.i<=1)?false:true;case 8:return Qx(),Y$n(this)?true:false;case 9:return Qx(),XNn(this)?true:false;case 10:return Qx(),!this.b&&(this.b=new g_(B7e,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new g_(B7e,this,5,8)),this.c.i!=0)?true:false}return Jdn(this,e,t,r)};lce.Sh=function n(e,t,r){var i;switch(t){case 3:!!this.Cb&&(r=(i=this.Db>>16,i>=0?wEn(this,r):this.Cb.Th(this,-1-i,null,r)));return aF(this,bG(e,27),r);case 4:return!this.b&&(this.b=new g_(B7e,this,4,7)),Kpn(this.b,e,r);case 5:return!this.c&&(this.c=new g_(B7e,this,5,8)),Kpn(this.c,e,r);case 6:return!this.a&&(this.a=new gz(U7e,this,6,6)),Kpn(this.a,e,r)}return ACn(this,e,t,r)};lce.Uh=function n(e,t,r){switch(t){case 3:return aF(this,null,r);case 4:return!this.b&&(this.b=new g_(B7e,this,4,7)),Kyn(this.b,e,r);case 5:return!this.c&&(this.c=new g_(B7e,this,5,8)),Kyn(this.c,e,r);case 6:return!this.a&&(this.a=new gz(U7e,this,6,6)),Kyn(this.a,e,r)}return Mfn(this,e,t,r)};lce.Wh=function n(e){switch(e){case 3:return!!w0(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new g_(B7e,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new g_(B7e,this,5,8)),this.c.i<=1));case 8:return Y$n(this);case 9:return XNn(this);case 10:return!this.b&&(this.b=new g_(B7e,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new g_(B7e,this,5,8)),this.c.i!=0)}return qon(this,e)};lce.bi=function n(e,t){switch(e){case 3:xRn(this,bG(t,27));return;case 4:!this.b&&(this.b=new g_(B7e,this,4,7));NVn(this.b);!this.b&&(this.b=new g_(B7e,this,4,7));NW(this.b,bG(t,16));return;case 5:!this.c&&(this.c=new g_(B7e,this,5,8));NVn(this.c);!this.c&&(this.c=new g_(B7e,this,5,8));NW(this.c,bG(t,16));return;case 6:!this.a&&(this.a=new gz(U7e,this,6,6));NVn(this.a);!this.a&&(this.a=new gz(U7e,this,6,6));NW(this.a,bG(t,16));return}NSn(this,e,t)};lce.ii=function n(){return cYn(),Y7e};lce.ki=function n(e){switch(e){case 3:xRn(this,null);return;case 4:!this.b&&(this.b=new g_(B7e,this,4,7));NVn(this.b);return;case 5:!this.c&&(this.c=new g_(B7e,this,5,8));NVn(this.c);return;case 6:!this.a&&(this.a=new gz(U7e,this,6,6));NVn(this.a);return}xwn(this,e)};lce.Ib=function n(){return AXn(this)};var knt=YW(Yee,"ElkEdgeImpl",326);wDn(452,2083,{110:1,342:1,166:1,452:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},uo);lce.Ah=function n(e){return Yjn(this,e)};lce.Lh=function n(e,t,r){switch(e){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new PD(K7e,this,5)),this.a;case 6:return g0(this);case 7:if(t)return gMn(this);return this.i;case 8:if(t)return dMn(this);return this.f;case 9:return!this.g&&(this.g=new g_(U7e,this,9,10)),this.g;case 10:return!this.e&&(this.e=new g_(U7e,this,10,9)),this.e;case 11:return this.d}return hjn(this,e,t,r)};lce.Sh=function n(e,t,r){var i,a,c;switch(t){case 6:!!this.Cb&&(r=(a=this.Db>>16,a>=0?Yjn(this,r):this.Cb.Th(this,-1-a,null,r)));return iF(this,bG(e,74),r);case 9:return!this.g&&(this.g=new g_(U7e,this,9,10)),Kpn(this.g,e,r);case 10:return!this.e&&(this.e=new g_(U7e,this,10,9)),Kpn(this.e,e,r)}return c=bG(uin((i=bG(Ron(this,16),29),!i?(cYn(),Z7e):i),t),69),c.wk().zk(this,Fmn(this),t-sQ((cYn(),Z7e)),e,r)};lce.Uh=function n(e,t,r){switch(t){case 5:return!this.a&&(this.a=new PD(K7e,this,5)),Kyn(this.a,e,r);case 6:return iF(this,null,r);case 9:return!this.g&&(this.g=new g_(U7e,this,9,10)),Kyn(this.g,e,r);case 10:return!this.e&&(this.e=new g_(U7e,this,10,9)),Kyn(this.e,e,r)}return XIn(this,e,t,r)};lce.Wh=function n(e){switch(e){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!g0(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return I4(this,e)};lce.bi=function n(e,t){switch(e){case 1:Can(this,bM(MK(t)));return;case 2:Oan(this,bM(MK(t)));return;case 3:Tan(this,bM(MK(t)));return;case 4:Ian(this,bM(MK(t)));return;case 5:!this.a&&(this.a=new PD(K7e,this,5));NVn(this.a);!this.a&&(this.a=new PD(K7e,this,5));NW(this.a,bG(t,16));return;case 6:DRn(this,bG(t,74));return;case 7:Ycn(this,bG(t,84));return;case 8:Jcn(this,bG(t,84));return;case 9:!this.g&&(this.g=new g_(U7e,this,9,10));NVn(this.g);!this.g&&(this.g=new g_(U7e,this,9,10));NW(this.g,bG(t,16));return;case 10:!this.e&&(this.e=new g_(U7e,this,10,9));NVn(this.e);!this.e&&(this.e=new g_(U7e,this,10,9));NW(this.e,bG(t,16));return;case 11:gun(this,TK(t));return}pln(this,e,t)};lce.ii=function n(){return cYn(),Z7e};lce.ki=function n(e){switch(e){case 1:Can(this,0);return;case 2:Oan(this,0);return;case 3:Tan(this,0);return;case 4:Ian(this,0);return;case 5:!this.a&&(this.a=new PD(K7e,this,5));NVn(this.a);return;case 6:DRn(this,null);return;case 7:Ycn(this,null);return;case 8:Jcn(this,null);return;case 9:!this.g&&(this.g=new g_(U7e,this,9,10));NVn(this.g);return;case 10:!this.e&&(this.e=new g_(U7e,this,10,9));NVn(this.e);return;case 11:gun(this,null);return}ghn(this,e)};lce.Ib=function n(){return x$n(this)};lce.b=0;lce.c=0;lce.d=null;lce.j=0;lce.k=0;var ynt=YW(Yee,"ElkEdgeSectionImpl",452);wDn(158,120,{110:1,94:1,93:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1});lce.Lh=function n(e,t,r){var i;if(e==0){return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab}return Fen(this,e-sQ(this.ii()),uin((i=bG(Ron(this,16),29),!i?this.ii():i),e),t,r)};lce.Sh=function n(e,t,r){var i,a;if(t==0){return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kpn(this.Ab,e,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?this.ii():i),t),69),a.wk().zk(this,Fmn(this),t-sQ(this.ii()),e,r)};lce.Uh=function n(e,t,r){var i,a;if(t==0){return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?this.ii():i),t),69),a.wk().Ak(this,Fmn(this),t-sQ(this.ii()),e,r)};lce.Wh=function n(e){var t;if(e==0){return!!this.Ab&&this.Ab.i!=0}return v5(this,e-sQ(this.ii()),uin((t=bG(Ron(this,16),29),!t?this.ii():t),e))};lce.Zh=function n(e){return ZQn(this,e)};lce.bi=function n(e,t){var r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return}vvn(this,e-sQ(this.ii()),uin((r=bG(Ron(this,16),29),!r?this.ii():r),e),t)};lce.di=function n(e){_mn(this,128,e)};lce.ii=function n(){return rZn(),Yrt};lce.ki=function n(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return}wdn(this,e-sQ(this.ii()),uin((t=bG(Ron(this,16),29),!t?this.ii():t),e))};lce.pi=function n(){this.Bb|=1};lce.qi=function n(e){return WUn(this,e)};lce.Bb=0;var Mnt=YW(Jee,"EModelElementImpl",158);wDn(720,158,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},Gl);lce.ri=function n(e,t){return fWn(this,e,t)};lce.si=function n(e){var t,r,i,a,c;if(this.a!=Vin(e)||(e.Bb&256)!=0){throw dm(new jM(ite+e.zb+ete))}for(i=a1(e);Y5(i.a).i!=0;){r=bG(Szn(i,0,(t=bG(Yin(Y5(i.a),0),89),c=t.c,G$(c,90)?bG(c,29):(rZn(),nit))),29);if(qTn(r)){a=Vin(r).wi().si(r);bG(a,54).ci(e);return a}i=a1(r)}return(e.D!=null?e.D:e.B)=="java.util.Map$Entry"?new Oq(e):new XG(e)};lce.ti=function n(e,t){return fYn(this,e,t)};lce.Lh=function n(e,t,r){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.a}return Fen(this,e-sQ((rZn(),Wrt)),uin((i=bG(Ron(this,16),29),!i?Wrt:i),e),t,r)};lce.Sh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kpn(this.Ab,e,r);case 1:!!this.a&&(r=bG(this.a,54).Th(this,4,z7e,r));return Swn(this,bG(e,241),r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),Wrt):i),t),69),a.wk().zk(this,Fmn(this),t-sQ((rZn(),Wrt)),e,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r);case 1:return Swn(this,null,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),Wrt):i),t),69),a.wk().Ak(this,Fmn(this),t-sQ((rZn(),Wrt)),e,r)};lce.Wh=function n(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return v5(this,e-sQ((rZn(),Wrt)),uin((t=bG(Ron(this,16),29),!t?Wrt:t),e))};lce.bi=function n(e,t){var r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:SIn(this,bG(t,241));return}vvn(this,e-sQ((rZn(),Wrt)),uin((r=bG(Ron(this,16),29),!r?Wrt:r),e),t)};lce.ii=function n(){return rZn(),Wrt};lce.ki=function n(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:SIn(this,null);return}wdn(this,e-sQ((rZn(),Wrt)),uin((t=bG(Ron(this,16),29),!t?Wrt:t),e))};var Tnt,jnt,Ent;var Snt=YW(Jee,"EFactoryImpl",720);wDn(1037,720,{110:1,2113:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},so);lce.ri=function n(e,t){switch(e.hk()){case 12:return bG(t,149).Pg();case 13:return fvn(t);default:throw dm(new jM(nte+e.xe()+ete))}};lce.si=function n(e){var t,r,i,a,c,u,s,o;switch(e.G==-1&&(e.G=(t=Vin(e),t?Vyn(t.vi(),e):-1)),e.G){case 4:return c=new oo,c;case 6:return u=new Xk,u;case 7:return s=new Vk,s;case 8:return i=new co,i;case 9:return r=new io,r;case 10:return a=new uo,a;case 11:return o=new fo,o;default:throw dm(new jM(ite+e.zb+ete))}};lce.ti=function n(e,t){switch(e.hk()){case 13:case 12:return null;default:throw dm(new jM(nte+e.xe()+ete))}};var Pnt=YW(Yee,"ElkGraphFactoryImpl",1037);wDn(448,158,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1});lce.Gh=function n(){var e,t;t=(e=bG(Ron(this,16),29),F1(uqn(!e?this.ii():e)));return t==null?(IP(),IP(),lat):new ZR(this,t)};lce.Lh=function n(e,t,r){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.xe()}return Fen(this,e-sQ(this.ii()),uin((i=bG(Ron(this,16),29),!i?this.ii():i),e),t,r)};lce.Wh=function n(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return v5(this,e-sQ(this.ii()),uin((t=bG(Ron(this,16),29),!t?this.ii():t),e))};lce.bi=function n(e,t){var r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:this.ui(TK(t));return}vvn(this,e-sQ(this.ii()),uin((r=bG(Ron(this,16),29),!r?this.ii():r),e),t)};lce.ii=function n(){return rZn(),Zrt};lce.ki=function n(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:this.ui(null);return}wdn(this,e-sQ(this.ii()),uin((t=bG(Ron(this,16),29),!t?this.ii():t),e))};lce.xe=function n(){return this.zb};lce.ui=function n(e){Qun(this,e)};lce.Ib=function n(){return ndn(this)};lce.zb=null;var Cnt=YW(Jee,"ENamedElementImpl",448);wDn(184,448,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},hZ);lce.Ah=function n(e){return tEn(this,e)};lce.Lh=function n(e,t,r){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new jz(this,yrt,this)),this.rb;case 6:return!this.vb&&(this.vb=new s_(z7e,this,6,7)),this.vb;case 7:if(t)return this.Db>>16==7?bG(this.Cb,241):null;return F0(this)}return Fen(this,e-sQ((rZn(),rit)),uin((i=bG(Ron(this,16),29),!i?rit:i),e),t,r)};lce.Sh=function n(e,t,r){var i,a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kpn(this.Ab,e,r);case 4:!!this.sb&&(r=bG(this.sb,54).Th(this,1,q7e,r));return tdn(this,bG(e,480),r);case 5:return!this.rb&&(this.rb=new jz(this,yrt,this)),Kpn(this.rb,e,r);case 6:return!this.vb&&(this.vb=new s_(z7e,this,6,7)),Kpn(this.vb,e,r);case 7:!!this.Cb&&(r=(a=this.Db>>16,a>=0?tEn(this,r):this.Cb.Th(this,-1-a,null,r)));return FUn(this,e,7,r)}return c=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),rit):i),t),69),c.wk().zk(this,Fmn(this),t-sQ((rZn(),rit)),e,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r);case 4:return tdn(this,null,r);case 5:return!this.rb&&(this.rb=new jz(this,yrt,this)),Kyn(this.rb,e,r);case 6:return!this.vb&&(this.vb=new s_(z7e,this,6,7)),Kyn(this.vb,e,r);case 7:return FUn(this,null,7,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),rit):i),t),69),a.wk().Ak(this,Fmn(this),t-sQ((rZn(),rit)),e,r)};lce.Wh=function n(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!F0(this)}return v5(this,e-sQ((rZn(),rit)),uin((t=bG(Ron(this,16),29),!t?rit:t),e))};lce.Zh=function n(e){var t;t=IKn(this,e);return t?t:ZQn(this,e)};lce.bi=function n(e,t){var r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:Qun(this,TK(t));return;case 2:Yun(this,TK(t));return;case 3:Jun(this,TK(t));return;case 4:VIn(this,bG(t,480));return;case 5:!this.rb&&(this.rb=new jz(this,yrt,this));NVn(this.rb);!this.rb&&(this.rb=new jz(this,yrt,this));NW(this.rb,bG(t,16));return;case 6:!this.vb&&(this.vb=new s_(z7e,this,6,7));NVn(this.vb);!this.vb&&(this.vb=new s_(z7e,this,6,7));NW(this.vb,bG(t,16));return}vvn(this,e-sQ((rZn(),rit)),uin((r=bG(Ron(this,16),29),!r?rit:r),e),t)};lce.ei=function n(e){var t,r;if(!!e&&!!this.rb){for(r=new _D(this.rb);r.e!=r.i.gc();){t=iyn(r);G$(t,364)&&(bG(t,364).w=null)}}_mn(this,64,e)};lce.ii=function n(){return rZn(),rit};lce.ki=function n(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:Qun(this,null);return;case 2:Yun(this,null);return;case 3:Jun(this,null);return;case 4:VIn(this,null);return;case 5:!this.rb&&(this.rb=new jz(this,yrt,this));NVn(this.rb);return;case 6:!this.vb&&(this.vb=new s_(z7e,this,6,7));NVn(this.vb);return}wdn(this,e-sQ((rZn(),rit)),uin((t=bG(Ron(this,16),29),!t?rit:t),e))};lce.pi=function n(){ljn(this)};lce.vi=function n(){return!this.rb&&(this.rb=new jz(this,yrt,this)),this.rb};lce.wi=function n(){return this.sb};lce.xi=function n(){return this.ub};lce.yi=function n(){return this.xb};lce.zi=function n(){return this.yb};lce.Ai=function n(e){this.ub=e};lce.Ib=function n(){var e;if((this.Db&64)!=0)return ndn(this);e=new gx(ndn(this));e.a+=" (nsURI: ";ZA(e,this.yb);e.a+=", nsPrefix: ";ZA(e,this.xb);e.a+=")";return e.a};lce.xb=null;lce.yb=null;var Int;var Ont=YW(Jee,"EPackageImpl",184);wDn(569,184,{110:1,2115:1,569:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},sDn);lce.q=false;lce.r=false;var Ant=false;var Lnt=YW(Yee,"ElkGraphPackageImpl",569);wDn(366,740,{110:1,342:1,167:1,135:1,422:1,366:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},oo);lce.Ah=function n(e){return Zjn(this,e)};lce.Lh=function n(e,t,r){switch(e){case 7:return B0(this);case 8:return this.a}return wvn(this,e,t,r)};lce.Sh=function n(e,t,r){var i;switch(t){case 7:!!this.Cb&&(r=(i=this.Db>>16,i>=0?Zjn(this,r):this.Cb.Th(this,-1-i,null,r)));return kV(this,bG(e,167),r)}return ACn(this,e,t,r)};lce.Uh=function n(e,t,r){if(t==7){return kV(this,null,r)}return Mfn(this,e,t,r)};lce.Wh=function n(e){switch(e){case 7:return!!B0(this);case 8:return!T_("",this.a)}return Uvn(this,e)};lce.bi=function n(e,t){switch(e){case 7:jKn(this,bG(t,167));return;case 8:Zcn(this,TK(t));return}$Sn(this,e,t)};lce.ii=function n(){return cYn(),ent};lce.ki=function n(e){switch(e){case 7:jKn(this,null);return;case 8:Zcn(this,"");return}Cpn(this,e)};lce.Ib=function n(){return YOn(this)};lce.a="";var Nnt=YW(Yee,"ElkLabelImpl",366);wDn(207,741,{110:1,342:1,84:1,167:1,27:1,422:1,207:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Xk);lce.Ah=function n(e){return dEn(this,e)};lce.Lh=function n(e,t,r){switch(e){case 9:return!this.c&&(this.c=new gz(ont,this,9,9)),this.c;case 10:return!this.a&&(this.a=new gz(snt,this,10,11)),this.a;case 11:return H0(this);case 12:return!this.b&&(this.b=new gz(H7e,this,12,3)),this.b;case 13:return Qx(),!this.a&&(this.a=new gz(snt,this,10,11)),this.a.i>0?true:false}return AMn(this,e,t,r)};lce.Sh=function n(e,t,r){var i;switch(t){case 9:return!this.c&&(this.c=new gz(ont,this,9,9)),Kpn(this.c,e,r);case 10:return!this.a&&(this.a=new gz(snt,this,10,11)),Kpn(this.a,e,r);case 11:!!this.Cb&&(r=(i=this.Db>>16,i>=0?dEn(this,r):this.Cb.Th(this,-1-i,null,r)));return a_(this,bG(e,27),r);case 12:return!this.b&&(this.b=new gz(H7e,this,12,3)),Kpn(this.b,e,r)}return cSn(this,e,t,r)};lce.Uh=function n(e,t,r){switch(t){case 9:return!this.c&&(this.c=new gz(ont,this,9,9)),Kyn(this.c,e,r);case 10:return!this.a&&(this.a=new gz(snt,this,10,11)),Kyn(this.a,e,r);case 11:return a_(this,null,r);case 12:return!this.b&&(this.b=new gz(H7e,this,12,3)),Kyn(this.b,e,r)}return uSn(this,e,t,r)};lce.Wh=function n(e){switch(e){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!H0(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new gz(snt,this,10,11)),this.a.i>0}return sln(this,e)};lce.bi=function n(e,t){switch(e){case 9:!this.c&&(this.c=new gz(ont,this,9,9));NVn(this.c);!this.c&&(this.c=new gz(ont,this,9,9));NW(this.c,bG(t,16));return;case 10:!this.a&&(this.a=new gz(snt,this,10,11));NVn(this.a);!this.a&&(this.a=new gz(snt,this,10,11));NW(this.a,bG(t,16));return;case 11:WRn(this,bG(t,27));return;case 12:!this.b&&(this.b=new gz(H7e,this,12,3));NVn(this.b);!this.b&&(this.b=new gz(H7e,this,12,3));NW(this.b,bG(t,16));return}ADn(this,e,t)};lce.ii=function n(){return cYn(),tnt};lce.ki=function n(e){switch(e){case 9:!this.c&&(this.c=new gz(ont,this,9,9));NVn(this.c);return;case 10:!this.a&&(this.a=new gz(snt,this,10,11));NVn(this.a);return;case 11:WRn(this,null);return;case 12:!this.b&&(this.b=new gz(H7e,this,12,3));NVn(this.b);return}Syn(this,e)};lce.Ib=function n(){return YBn(this)};var $nt=YW(Yee,"ElkNodeImpl",207);wDn(193,741,{110:1,342:1,84:1,167:1,123:1,422:1,193:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Vk);lce.Ah=function n(e){return nEn(this,e)};lce.Lh=function n(e,t,r){if(e==9){return d0(this)}return AMn(this,e,t,r)};lce.Sh=function n(e,t,r){var i;switch(t){case 9:!!this.Cb&&(r=(i=this.Db>>16,i>=0?nEn(this,r):this.Cb.Th(this,-1-i,null,r)));return cF(this,bG(e,27),r)}return cSn(this,e,t,r)};lce.Uh=function n(e,t,r){if(t==9){return cF(this,null,r)}return uSn(this,e,t,r)};lce.Wh=function n(e){if(e==9){return!!d0(this)}return sln(this,e)};lce.bi=function n(e,t){switch(e){case 9:RRn(this,bG(t,27));return}ADn(this,e,t)};lce.ii=function n(){return cYn(),rnt};lce.ki=function n(e){switch(e){case 9:RRn(this,null);return}Syn(this,e)};lce.Ib=function n(){return ZBn(this)};var Dnt=YW(Yee,"ElkPortImpl",193);var xnt=$q(Ete,"BasicEMap/Entry");wDn(1122,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,119:1,120:1},fo);lce.Fb=function n(e){return this===e};lce.ld=function n(){return this.b};lce.Hb=function n(){return Bx(this)};lce.Di=function n(e){nun(this,bG(e,149))};lce.Lh=function n(e,t,r){switch(e){case 0:return this.b;case 1:return this.c}return _yn(this,e,t,r)};lce.Wh=function n(e){switch(e){case 0:return!!this.b;case 1:return this.c!=null}return nyn(this,e)};lce.bi=function n(e,t){switch(e){case 0:nun(this,bG(t,149));return;case 1:Vcn(this,t);return}wLn(this,e,t)};lce.ii=function n(){return cYn(),int};lce.ki=function n(e){switch(e){case 0:nun(this,null);return;case 1:Vcn(this,null);return}lAn(this,e)};lce.Bi=function n(){var e;if(this.a==-1){e=this.b;this.a=!e?0:Vun(e)}return this.a};lce.md=function n(){return this.c};lce.Ci=function n(e){this.a=e};lce.nd=function n(e){var t;t=this.c;Vcn(this,e);return t};lce.Ib=function n(){var e;if((this.Db&64)!=0)return jxn(this);e=new nT;tL(tL(tL(e,this.b?this.b.Pg():CZn),J4n),lx(this.c));return e.a};lce.a=-1;lce.c=null;var Rnt=YW(Yee,"ElkPropertyToValueMapEntryImpl",1122);wDn(996,1,{},bo);var Knt=YW(Cte,"JsonAdapter",996);wDn(216,63,E1n,AM);var Fnt=YW(Cte,"JsonImportException",216);wDn(868,1,{},iEn);var _nt=YW(Cte,"JsonImporter",868);wDn(903,1,{},eA);var Bnt=YW(Cte,"JsonImporter/lambda$0$Type",903);wDn(904,1,{},tA);var Hnt=YW(Cte,"JsonImporter/lambda$1$Type",904);wDn(912,1,{},rp);var Unt=YW(Cte,"JsonImporter/lambda$10$Type",912);wDn(914,1,{},rA);var Gnt=YW(Cte,"JsonImporter/lambda$11$Type",914);wDn(915,1,{},iA);var qnt=YW(Cte,"JsonImporter/lambda$12$Type",915);wDn(921,1,{},AY);var Xnt=YW(Cte,"JsonImporter/lambda$13$Type",921);wDn(920,1,{},LY);var Vnt=YW(Cte,"JsonImporter/lambda$14$Type",920);wDn(916,1,{},aA);var znt=YW(Cte,"JsonImporter/lambda$15$Type",916);wDn(917,1,{},cA);var Wnt=YW(Cte,"JsonImporter/lambda$16$Type",917);wDn(918,1,{},uA);var Qnt=YW(Cte,"JsonImporter/lambda$17$Type",918);wDn(919,1,{},sA);var Jnt=YW(Cte,"JsonImporter/lambda$18$Type",919);wDn(924,1,{},ip);var Ynt=YW(Cte,"JsonImporter/lambda$19$Type",924);wDn(905,1,{},ap);var Znt=YW(Cte,"JsonImporter/lambda$2$Type",905);wDn(922,1,{},cp);var net=YW(Cte,"JsonImporter/lambda$20$Type",922);wDn(923,1,{},up);var eet=YW(Cte,"JsonImporter/lambda$21$Type",923);wDn(927,1,{},sp);var tet=YW(Cte,"JsonImporter/lambda$22$Type",927);wDn(925,1,{},op);var ret=YW(Cte,"JsonImporter/lambda$23$Type",925);wDn(926,1,{},fp);var iet=YW(Cte,"JsonImporter/lambda$24$Type",926);wDn(929,1,{},hp);var aet=YW(Cte,"JsonImporter/lambda$25$Type",929);wDn(928,1,{},lp);var cet=YW(Cte,"JsonImporter/lambda$26$Type",928);wDn(930,1,WZn,oA);lce.Cd=function n(e){Men(this.b,this.a,TK(e))};var uet=YW(Cte,"JsonImporter/lambda$27$Type",930);wDn(931,1,WZn,fA);lce.Cd=function n(e){Ten(this.b,this.a,TK(e))};var set=YW(Cte,"JsonImporter/lambda$28$Type",931);wDn(932,1,{},hA);var oet=YW(Cte,"JsonImporter/lambda$29$Type",932);wDn(908,1,{},bp);var fet=YW(Cte,"JsonImporter/lambda$3$Type",908);wDn(933,1,{},lA);var het=YW(Cte,"JsonImporter/lambda$30$Type",933);wDn(934,1,{},wp);var bet=YW(Cte,"JsonImporter/lambda$31$Type",934);wDn(935,1,{},dp);var wet=YW(Cte,"JsonImporter/lambda$32$Type",935);wDn(936,1,{},gp);var det=YW(Cte,"JsonImporter/lambda$33$Type",936);wDn(937,1,{},vp);var get=YW(Cte,"JsonImporter/lambda$34$Type",937);wDn(870,1,{},pp);var vet=YW(Cte,"JsonImporter/lambda$35$Type",870);wDn(941,1,{},_U);var pet=YW(Cte,"JsonImporter/lambda$36$Type",941);wDn(938,1,WZn,mp);lce.Cd=function n(e){Z8(this.a,bG(e,377))};var met=YW(Cte,"JsonImporter/lambda$37$Type",938);wDn(939,1,WZn,wA);lce.Cd=function n(e){jA(this.a,this.b,bG(e,166))};var ket=YW(Cte,"JsonImporter/lambda$38$Type",939);wDn(940,1,WZn,dA);lce.Cd=function n(e){EA(this.a,this.b,bG(e,166))};var yet=YW(Cte,"JsonImporter/lambda$39$Type",940);wDn(906,1,{},kp);var Met=YW(Cte,"JsonImporter/lambda$4$Type",906);wDn(942,1,WZn,yp);lce.Cd=function n(e){n9(this.a,bG(e,8))};var Tet=YW(Cte,"JsonImporter/lambda$40$Type",942);wDn(907,1,{},Mp);var jet=YW(Cte,"JsonImporter/lambda$5$Type",907);wDn(911,1,{},Tp);var Eet=YW(Cte,"JsonImporter/lambda$6$Type",911);wDn(909,1,{},jp);var Set=YW(Cte,"JsonImporter/lambda$7$Type",909);wDn(910,1,{},Ep);var Pet=YW(Cte,"JsonImporter/lambda$8$Type",910);wDn(913,1,{},Sp);var Cet=YW(Cte,"JsonImporter/lambda$9$Type",913);wDn(961,1,WZn,Pp);lce.Cd=function n(e){MQ(this.a,new eQ(TK(e)))};var Iet=YW(Cte,"JsonMetaDataConverter/lambda$0$Type",961);wDn(962,1,WZn,Cp);lce.Cd=function n(e){AW(this.a,bG(e,245))};var Oet=YW(Cte,"JsonMetaDataConverter/lambda$1$Type",962);wDn(963,1,WZn,Ip);lce.Cd=function n(e){T2(this.a,bG(e,143))};var Aet=YW(Cte,"JsonMetaDataConverter/lambda$2$Type",963);wDn(964,1,WZn,Op);lce.Cd=function n(e){LW(this.a,bG(e,170))};var Let=YW(Cte,"JsonMetaDataConverter/lambda$3$Type",964);wDn(245,22,{3:1,34:1,22:1,245:1},gA);var Net,$et,Det,xet,Ret,Ket,Fet,_et;var Bet=qan(g3n,"GraphFeature",245,joe,pin,eG);var Het;wDn(11,1,{34:1,149:1},Np,bF,TL,qN);lce.Fd=function n(e){return kD(this,bG(e,149))};lce.Fb=function n(e){return e1(this,e)};lce.Sg=function n(){return tyn(this)};lce.Pg=function n(){return this.b};lce.Hb=function n(){return Mln(this.b)};lce.Ib=function n(){return this.b};var Uet=YW(g3n,"Property",11);wDn(671,1,l2n,Ap);lce.Ne=function n(e,t){return mgn(this,bG(e,96),bG(t,96))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Get=YW(g3n,"PropertyHolderComparator",671);wDn(709,1,NZn,Lp);lce.Nb=function n(e){Az(this,e)};lce.Pb=function n(){return Pen(this)};lce.Qb=function n(){Bj()};lce.Ob=function n(){return!!this.a};var qet=YW(Ute,"ElkGraphUtil/AncestorIterator",709);var Xet=$q(Ete,"EList");wDn(70,56,{20:1,31:1,56:1,16:1,15:1,70:1,61:1});lce.bd=function n(e,t){Fdn(this,e,t)};lce.Fc=function n(e){return cen(this,e)};lce.cd=function n(e,t){return phn(this,e,t)};lce.Gc=function n(e){return NW(this,e)};lce.Ii=function n(){return new aR(this)};lce.Ji=function n(){return new cR(this)};lce.Ki=function n(e){return dcn(this,e)};lce.Li=function n(){return true};lce.Mi=function n(e,t){};lce.Ni=function n(){};lce.Oi=function n(e,t){xnn(this,e,t)};lce.Pi=function n(e,t,r){};lce.Qi=function n(e,t){};lce.Ri=function n(e,t,r){};lce.Fb=function n(e){return W_n(this,e)};lce.Hb=function n(){return Xfn(this)};lce.Si=function n(){return false};lce.Kc=function n(){return new _D(this)};lce.ed=function n(){return new iR(this)};lce.fd=function n(e){var t;t=this.gc();if(e<0||e>t)throw dm(new m_(e,t));return new eW(this,e)};lce.Ui=function n(e,t){this.Ti(e,this.dd(t))};lce.Mc=function n(e){return orn(this,e)};lce.Wi=function n(e,t){return t};lce.hd=function n(e,t){return zyn(this,e,t)};lce.Ib=function n(){return Cvn(this)};lce.Yi=function n(){return true};lce.Zi=function n(e,t){return yln(this,t)};var Vet=YW(Ete,"AbstractEList",70);wDn(66,70,zte,vo,_in,Vsn);lce.Ei=function n(e,t){return LCn(this,e,t)};lce.Fi=function n(e){return eTn(this,e)};lce.Gi=function n(e,t){udn(this,e,t)};lce.Hi=function n(e){Y9(this,e)};lce.$i=function n(e){return Den(this,e)};lce.$b=function n(){Z9(this)};lce.Hc=function n(e){return wSn(this,e)};lce.Xb=function n(e){return Yin(this,e)};lce._i=function n(e){var t,r,i;++this.j;r=this.g==null?0:this.g.length;if(e>r){i=this.g;t=r+(r/2|0)+4;t=0){this.gd(t);return true}else{return false}};lce.Xi=function n(e,t){return this.Dj(e,this.Zi(e,t))};lce.gc=function n(){return this.Ej()};lce.Pc=function n(){return this.Fj()};lce.Qc=function n(e){return this.Gj(e)};lce.Ib=function n(){return this.Hj()};var ftt=YW(Ete,"DelegatingEList",2093);wDn(2094,2093,Kre);lce.Ei=function n(e,t){return kGn(this,e,t)};lce.Fi=function n(e){return this.Ei(this.Ej(),e)};lce.Gi=function n(e,t){fDn(this,e,t)};lce.Hi=function n(e){A$n(this,e)};lce.Li=function n(){return!this.Mj()};lce.$b=function n(){qVn(this)};lce.Ij=function n(e,t,r,i,a){return new YZ(this,e,t,r,i,a)};lce.Jj=function n(e){Pon(this.jj(),e)};lce.Kj=function n(){return null};lce.Lj=function n(){return-1};lce.jj=function n(){return null};lce.Mj=function n(){return false};lce.Nj=function n(e,t){return t};lce.Oj=function n(e,t){return t};lce.Pj=function n(){return false};lce.Qj=function n(){return!this.Aj()};lce.Ti=function n(e,t){var r,i;if(this.Pj()){i=this.Qj();r=MIn(this,e,t);this.Jj(this.Ij(7,Bwn(t),r,e,i));return r}else{return MIn(this,e,t)}};lce.gd=function n(e){var t,r,i,a;if(this.Pj()){r=null;i=this.Qj();t=this.Ij(4,a=Dq(this,e),null,e,i);if(this.Mj()&&!!a){r=this.Oj(a,r);if(!r){this.Jj(t)}else{r.nj(t);r.oj()}}else{if(!r){this.Jj(t)}else{r.nj(t);r.oj()}}return a}else{a=Dq(this,e);if(this.Mj()&&!!a){r=this.Oj(a,null);!!r&&r.oj()}return a}};lce.Xi=function n(e,t){return yGn(this,e,t)};var htt=YW(Hee,"DelegatingNotifyingListImpl",2094);wDn(152,1,Fre);lce.nj=function n(e){return EPn(this,e)};lce.oj=function n(){Ntn(this)};lce.gj=function n(){return this.d};lce.Kj=function n(){return null};lce.Rj=function n(){return null};lce.hj=function n(e){return-1};lce.ij=function n(){return DFn(this)};lce.jj=function n(){return null};lce.kj=function n(){return xFn(this)};lce.lj=function n(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o};lce.Sj=function n(){return false};lce.mj=function n(e){var t,r,i,a,c,u,s,o,f,h,l;switch(this.d){case 1:case 2:{a=e.gj();switch(a){case 1:case 2:{c=e.jj();if(BA(c)===BA(this.jj())&&this.hj(null)==e.hj(null)){this.g=e.ij();e.gj()==1&&(this.d=1);return true}}}}case 4:{a=e.gj();switch(a){case 4:{c=e.jj();if(BA(c)===BA(this.jj())&&this.hj(null)==e.hj(null)){f=Ezn(this);o=this.o<0?this.o<-2?-2-this.o-1:-1:this.o;u=e.lj();this.d=6;l=new _in(2);if(o<=u){cen(l,this.n);cen(l,e.kj());this.g=zfn(fT(Ght,1),z1n,28,15,[this.o=o,u+1])}else{cen(l,e.kj());cen(l,this.n);this.g=zfn(fT(Ght,1),z1n,28,15,[this.o=u,o])}this.n=l;f||(this.o=-2-this.o-1);return true}break}}break}case 6:{a=e.gj();switch(a){case 4:{c=e.jj();if(BA(c)===BA(this.jj())&&this.hj(null)==e.hj(null)){f=Ezn(this);u=e.lj();h=bG(this.g,53);i=$nn(Ght,z1n,28,h.length+1,15,1);t=0;while(t>>0,t.toString(16)));i.a+=" (eventType: ";switch(this.d){case 1:{i.a+="SET";break}case 2:{i.a+="UNSET";break}case 3:{i.a+="ADD";break}case 5:{i.a+="ADD_MANY";break}case 4:{i.a+="REMOVE";break}case 6:{i.a+="REMOVE_MANY";break}case 7:{i.a+="MOVE";break}case 8:{i.a+="REMOVING_ADAPTER";break}case 9:{i.a+="RESOLVE";break}default:{xj(i,this.d);break}}MHn(this)&&(i.a+=", touch: true",i);i.a+=", position: ";xj(i,this.o<0?this.o<-2?-2-this.o-1:-1:this.o);i.a+=", notifier: ";YA(i,this.jj());i.a+=", feature: ";YA(i,this.Kj());i.a+=", oldValue: ";YA(i,xFn(this));i.a+=", newValue: ";if(this.d==6&&G$(this.g,53)){r=bG(this.g,53);i.a+="[";for(e=0;e10){if(!this.b||this.c.j!=this.a){this.b=new lX(this);this.a=this.j}return fS(this.b,e)}else{return wSn(this,e)}};lce.Yi=function n(){return true};lce.a=0;var ptt=YW(Ete,"AbstractEList/1",966);wDn(302,77,p0n,m_);var mtt=YW(Ete,"AbstractEList/BasicIndexOutOfBoundsException",302);wDn(37,1,NZn,_D);lce.Nb=function n(e){Az(this,e)};lce.Xj=function n(){if(this.i.j!=this.f){throw dm(new Gm)}};lce.Yj=function n(){return iyn(this)};lce.Ob=function n(){return this.e!=this.i.gc()};lce.Pb=function n(){return this.Yj()};lce.Qb=function n(){FSn(this)};lce.e=0;lce.f=0;lce.g=-1;var ktt=YW(Ete,"AbstractEList/EIterator",37);wDn(286,37,HZn,iR,eW);lce.Qb=function n(){FSn(this)};lce.Rb=function n(e){Apn(this,e)};lce.Zj=function n(){var e;try{e=this.d.Xb(--this.e);this.Xj();this.g=this.e;return e}catch(t){t=Ofn(t);if(G$(t,77)){this.Xj();throw dm(new Xm)}else throw dm(t)}};lce.$j=function n(e){fTn(this,e)};lce.Sb=function n(){return this.e!=0};lce.Tb=function n(){return this.e};lce.Ub=function n(){return this.Zj()};lce.Vb=function n(){return this.e-1};lce.Wb=function n(e){this.$j(e)};var ytt=YW(Ete,"AbstractEList/EListIterator",286);wDn(355,37,NZn,aR);lce.Yj=function n(){return ayn(this)};lce.Qb=function n(){throw dm(new Um)};var Mtt=YW(Ete,"AbstractEList/NonResolvingEIterator",355);wDn(398,286,HZn,cR,K_);lce.Rb=function n(e){throw dm(new Um)};lce.Yj=function n(){var e;try{e=this.c.Vi(this.e);this.Xj();this.g=this.e++;return e}catch(t){t=Ofn(t);if(G$(t,77)){this.Xj();throw dm(new Xm)}else throw dm(t)}};lce.Zj=function n(){var e;try{e=this.c.Vi(--this.e);this.Xj();this.g=this.e;return e}catch(t){t=Ofn(t);if(G$(t,77)){this.Xj();throw dm(new Xm)}else throw dm(t)}};lce.Qb=function n(){throw dm(new Um)};lce.Wb=function n(e){throw dm(new Um)};var Ttt=YW(Ete,"AbstractEList/NonResolvingEListIterator",398);wDn(2080,70,Hre);lce.Ei=function n(e,t){var r,i,a,c,u,s,o,f,h,l,b;a=t.gc();if(a!=0){f=bG(Ron(this.a,4),129);h=f==null?0:f.length;b=h+a;i=Yln(this,b);l=h-e;l>0&&QGn(f,e,i,e+a,l);o=t.Kc();for(u=0;ur)throw dm(new m_(e,r));return new QJ(this,e)};lce.$b=function n(){var e,t;++this.j;e=bG(Ron(this.a,4),129);t=e==null?0:e.length;Lkn(this,null);xnn(this,t,e)};lce.Hc=function n(e){var t,r,i,a,c;t=bG(Ron(this.a,4),129);if(t!=null){if(e!=null){for(i=t,a=0,c=i.length;a=r)throw dm(new m_(e,r));return t[e]};lce.dd=function n(e){var t,r,i;t=bG(Ron(this.a,4),129);if(t!=null){if(e!=null){for(r=0,i=t.length;rr)throw dm(new m_(e,r));return new WJ(this,e)};lce.Ti=function n(e,t){var r,i,a;r=vmn(this);a=r==null?0:r.length;if(e>=a)throw dm(new kM(qte+e+Xte+a));if(t>=a)throw dm(new kM(Vte+t+Xte+a));i=r[t];if(e!=t){e0&&QGn(e,0,t,0,r);return t};lce.Qc=function n(e){var t,r,i;t=bG(Ron(this.a,4),129);i=t==null?0:t.length;if(i>0){if(e.lengthi&&bQ(e,i,null);return e};var jtt;var Ett=YW(Ete,"ArrayDelegatingEList",2080);wDn(1051,37,NZn,P9);lce.Xj=function n(){if(this.b.j!=this.f||BA(bG(Ron(this.b.a,4),129))!==BA(this.a)){throw dm(new Gm)}};lce.Qb=function n(){FSn(this);this.a=bG(Ron(this.b.a,4),129)};var Stt=YW(Ete,"ArrayDelegatingEList/EIterator",1051);wDn(722,286,HZn,Mz,WJ);lce.Xj=function n(){if(this.b.j!=this.f||BA(bG(Ron(this.b.a,4),129))!==BA(this.a)){throw dm(new Gm)}};lce.$j=function n(e){fTn(this,e);this.a=bG(Ron(this.b.a,4),129)};lce.Qb=function n(){FSn(this);this.a=bG(Ron(this.b.a,4),129)};var Ptt=YW(Ete,"ArrayDelegatingEList/EListIterator",722);wDn(1052,355,NZn,C9);lce.Xj=function n(){if(this.b.j!=this.f||BA(bG(Ron(this.b.a,4),129))!==BA(this.a)){throw dm(new Gm)}};var Ctt=YW(Ete,"ArrayDelegatingEList/NonResolvingEIterator",1052);wDn(723,398,HZn,Tz,QJ);lce.Xj=function n(){if(this.b.j!=this.f||BA(bG(Ron(this.b.a,4),129))!==BA(this.a)){throw dm(new Gm)}};var Itt=YW(Ete,"ArrayDelegatingEList/NonResolvingEListIterator",723);wDn(615,302,p0n,ML);var Ott=YW(Ete,"BasicEList/BasicIndexOutOfBoundsException",615);wDn(710,66,zte,xA);lce.bd=function n(e,t){throw dm(new Um)};lce.Fc=function n(e){throw dm(new Um)};lce.cd=function n(e,t){throw dm(new Um)};lce.Gc=function n(e){throw dm(new Um)};lce.$b=function n(){throw dm(new Um)};lce._i=function n(e){throw dm(new Um)};lce.Kc=function n(){return this.Ii()};lce.ed=function n(){return this.Ji()};lce.fd=function n(e){return this.Ki(e)};lce.Ti=function n(e,t){throw dm(new Um)};lce.Ui=function n(e,t){throw dm(new Um)};lce.gd=function n(e){throw dm(new Um)};lce.Mc=function n(e){throw dm(new Um)};lce.hd=function n(e,t){throw dm(new Um)};var Att=YW(Ete,"BasicEList/UnmodifiableEList",710);wDn(721,1,{3:1,20:1,16:1,15:1,61:1,597:1});lce.bd=function n(e,t){rD(this,e,bG(t,44))};lce.Fc=function n(e){return rK(this,bG(e,44))};lce.Jc=function n(e){Y8(this,e)};lce.Xb=function n(e){return bG(Yin(this.c,e),136)};lce.Ti=function n(e,t){return bG(this.c.Ti(e,t),44)};lce.Ui=function n(e,t){iD(this,e,bG(t,44))};lce.Lc=function n(){return new gX(null,new d3(this,16))};lce.gd=function n(e){return bG(this.c.gd(e),44)};lce.hd=function n(e,t){return OW(this,e,bG(t,44))};lce.jd=function n(e){Run(this,e)};lce.Nc=function n(){return new d3(this,16)};lce.Oc=function n(){return new gX(null,new d3(this,16))};lce.cd=function n(e,t){return this.c.cd(e,t)};lce.Gc=function n(e){return this.c.Gc(e)};lce.$b=function n(){this.c.$b()};lce.Hc=function n(e){return this.c.Hc(e)};lce.Ic=function n(e){return Sfn(this.c,e)};lce._j=function n(){var e,t,r;if(this.d==null){this.d=$nn(zet,Ure,66,2*this.f+1,0,1);r=this.e;this.f=0;for(t=this.c.Kc();t.e!=t.i.gc();){e=bG(t.Yj(),136);pMn(this,e)}this.e=r}};lce.Fb=function n(e){return V_(this,e)};lce.Hb=function n(){return Xfn(this.c)};lce.dd=function n(e){return this.c.dd(e)};lce.ak=function n(){this.c=new $p(this)};lce.dc=function n(){return this.f==0};lce.Kc=function n(){return this.c.Kc()};lce.ed=function n(){return this.c.ed()};lce.fd=function n(e){return this.c.fd(e)};lce.bk=function n(){return Cnn(this)};lce.ck=function n(e,t,r){return new BU(e,t,r)};lce.dk=function n(){return new mo};lce.Mc=function n(e){return bcn(this,e)};lce.gc=function n(){return this.f};lce.kd=function n(e,t){return new N2(this.c,e,t)};lce.Pc=function n(){return this.c.Pc()};lce.Qc=function n(e){return this.c.Qc(e)};lce.Ib=function n(){return Cvn(this.c)};lce.e=0;lce.f=0;var Ltt=YW(Ete,"BasicEMap",721);wDn(1046,66,zte,$p);lce.Mi=function n(e,t){ek(this,bG(t,136))};lce.Pi=function n(e,t,r){var i;++(i=this,bG(t,136),i).a.e};lce.Qi=function n(e,t){tk(this,bG(t,136))};lce.Ri=function n(e,t,r){gR(this,bG(t,136),bG(r,136))};lce.Oi=function n(e,t){Don(this.a)};var Ntt=YW(Ete,"BasicEMap/1",1046);wDn(1047,66,zte,mo);lce.aj=function n(e){return $nn(Htt,Gre,621,e,0,1)};var $tt=YW(Ete,"BasicEMap/2",1047);wDn(1048,RZn,KZn,Dp);lce.$b=function n(){this.a.c.$b()};lce.Hc=function n(e){return Spn(this.a,e)};lce.Kc=function n(){return this.a.f==0?(OK(),Gtt.a):new hj(this.a)};lce.Mc=function n(e){var t;t=this.a.f;Amn(this.a,e);return this.a.f!=t};lce.gc=function n(){return this.a.f};var Dtt=YW(Ete,"BasicEMap/3",1048);wDn(1049,31,xZn,xp);lce.$b=function n(){this.a.c.$b()};lce.Hc=function n(e){return Q_n(this.a,e)};lce.Kc=function n(){return this.a.f==0?(OK(),Gtt.a):new lj(this.a)};lce.gc=function n(){return this.a.f};var xtt=YW(Ete,"BasicEMap/4",1049);wDn(1050,RZn,KZn,Rp);lce.$b=function n(){this.a.c.$b()};lce.Hc=function n(e){var t,r,i,a,c,u,s,o,f;if(this.a.f>0&&G$(e,44)){this.a._j();o=bG(e,44);s=o.ld();a=s==null?0:Vun(s);c=sF(this.a,a);t=this.a.d[c];if(t){r=bG(t.g,379);f=t.i;for(u=0;u"+this.c};lce.a=0;var Htt=YW(Ete,"BasicEMap/EntryImpl",621);wDn(546,1,{},ko);var Utt=YW(Ete,"BasicEMap/View",546);var Gtt;wDn(783,1,{});lce.Fb=function n(e){return LDn((dZ(),lbe),e)};lce.Hb=function n(){return iln((dZ(),lbe))};lce.Ib=function n(){return jIn((dZ(),lbe))};var qtt=YW(Ete,"ECollections/BasicEmptyUnmodifiableEList",783);wDn(1348,1,HZn,yo);lce.Nb=function n(e){Az(this,e)};lce.Rb=function n(e){throw dm(new Um)};lce.Ob=function n(){return false};lce.Sb=function n(){return false};lce.Pb=function n(){throw dm(new Xm)};lce.Tb=function n(){return 0};lce.Ub=function n(){throw dm(new Xm)};lce.Vb=function n(){return-1};lce.Qb=function n(){throw dm(new Um)};lce.Wb=function n(e){throw dm(new Um)};var Xtt=YW(Ete,"ECollections/BasicEmptyUnmodifiableEList/1",1348);wDn(1346,783,{20:1,16:1,15:1,61:1},Wk);lce.bd=function n(e,t){sE()};lce.Fc=function n(e){return oE()};lce.cd=function n(e,t){return fE()};lce.Gc=function n(e){return hE()};lce.$b=function n(){lE()};lce.Hc=function n(e){return false};lce.Ic=function n(e){return false};lce.Jc=function n(e){Y8(this,e)};lce.Xb=function n(e){return lL((dZ(),lbe,e)),null};lce.dd=function n(e){return-1};lce.dc=function n(){return true};lce.Kc=function n(){return this.a};lce.ed=function n(){return this.a};lce.fd=function n(e){return this.a};lce.Ti=function n(e,t){return bE()};lce.Ui=function n(e,t){wE()};lce.Lc=function n(){return new gX(null,new d3(this,16))};lce.gd=function n(e){return dE()};lce.Mc=function n(e){return gE()};lce.hd=function n(e,t){return vE()};lce.gc=function n(){return 0};lce.jd=function n(e){Run(this,e)};lce.Nc=function n(){return new d3(this,16)};lce.Oc=function n(){return new gX(null,new d3(this,16))};lce.kd=function n(e,t){return dZ(),new N2(lbe,e,t)};lce.Pc=function n(){return AV((dZ(),lbe))};lce.Qc=function n(e){return dZ(),lTn(lbe,e)};var Vtt=YW(Ete,"ECollections/EmptyUnmodifiableEList",1346);wDn(1347,783,{20:1,16:1,15:1,61:1,597:1},Qk);lce.bd=function n(e,t){sE()};lce.Fc=function n(e){return oE()};lce.cd=function n(e,t){return fE()};lce.Gc=function n(e){return hE()};lce.$b=function n(){lE()};lce.Hc=function n(e){return false};lce.Ic=function n(e){return false};lce.Jc=function n(e){Y8(this,e)};lce.Xb=function n(e){return lL((dZ(),lbe,e)),null};lce.dd=function n(e){return-1};lce.dc=function n(){return true};lce.Kc=function n(){return this.a};lce.ed=function n(){return this.a};lce.fd=function n(e){return this.a};lce.Ti=function n(e,t){return bE()};lce.Ui=function n(e,t){wE()};lce.Lc=function n(){return new gX(null,new d3(this,16))};lce.gd=function n(e){return dE()};lce.Mc=function n(e){return gE()};lce.hd=function n(e,t){return vE()};lce.gc=function n(){return 0};lce.jd=function n(e){Run(this,e)};lce.Nc=function n(){return new d3(this,16)};lce.Oc=function n(){return new gX(null,new d3(this,16))};lce.kd=function n(e,t){return dZ(),new N2(lbe,e,t)};lce.Pc=function n(){return AV((dZ(),lbe))};lce.Qc=function n(e){return dZ(),lTn(lbe,e)};lce.bk=function n(){return dZ(),dZ(),bbe};var ztt=YW(Ete,"ECollections/EmptyUnmodifiableEMap",1347);var Wtt=$q(Ete,"Enumerator");var Qtt;wDn(288,1,{288:1},iBn);lce.Fb=function n(e){var t;if(this===e)return true;if(!G$(e,288))return false;t=bG(e,288);return this.f==t.f&&SX(this.i,t.i)&&EX(this.a,(this.f&256)!=0?(t.f&256)!=0?t.a:null:(t.f&256)!=0?null:t.a)&&EX(this.d,t.d)&&EX(this.g,t.g)&&EX(this.e,t.e)&&ryn(this,t)};lce.Hb=function n(){return this.f};lce.Ib=function n(){return _Un(this)};lce.f=0;var Jtt=0,Ytt=0,Ztt=0,nrt=0,ert=0,trt=0,rrt=0,irt=0,art=0,crt,urt=0,srt=0,ort=0,frt=0,hrt,lrt;var brt=YW(Ete,"URI",288);wDn(1121,45,_0n,Jk);lce.zc=function n(e,t){return bG(o2(this,TK(e),bG(t,288)),288)};var wrt=YW(Ete,"URI/URICache",1121);wDn(506,66,zte,lo,FX);lce.Si=function n(){return true};var drt=YW(Ete,"UniqueEList",506);wDn(590,63,E1n,Ltn);var grt=YW(Ete,"WrappedException",590);var vrt=$q(Cee,Vre);var prt=$q(Cee,zre);var mrt=$q(Cee,Wre);var krt=$q(Cee,Qre);var yrt=$q(Cee,Jre);var Mrt=$q(Cee,"EClass");var Trt=$q(Cee,"EDataType");var jrt;wDn(1233,45,_0n,Yk);lce.xc=function n(e){return HA(e)?z1(this,e):_A(GX(this.f,e))};var Ert=YW(Cee,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1233);var Srt=$q(Cee,"EEnum");var Prt=$q(Cee,Yre);var Crt=$q(Cee,Zre);var Irt=$q(Cee,nie);var Ort;var Art=$q(Cee,eie);var Lrt=$q(Cee,tie);wDn(1042,1,{},ho);lce.Ib=function n(){return"NIL"};var Nrt=YW(Cee,"EStructuralFeature/Internal/DynamicValueHolder/1",1042);var $rt;wDn(1041,45,_0n,Zk);lce.xc=function n(e){return HA(e)?z1(this,e):_A(GX(this.f,e))};var Drt=YW(Cee,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1041);var xrt=$q(Cee,rie);var Rrt=$q(Cee,"EValidator/PatternMatcher");var Krt;var Frt;var _rt;var Brt,Hrt,Urt,Grt,qrt,Xrt,Vrt,zrt,Wrt,Qrt,Jrt,Yrt,Zrt,nit,eit,tit,rit,iit,ait,cit,uit,sit,oit;var fit=$q(iie,"FeatureMap/Entry");wDn(545,1,{76:1},CA);lce.Lk=function n(){return this.a};lce.md=function n(){return this.b};var hit=YW(Jee,"BasicEObjectImpl/1",545);wDn(1040,1,aie,IA);lce.Fk=function n(e){return z9(this.a,this.b,e)};lce.Qj=function n(){return P0(this.a,this.b)};lce.Wb=function n(e){S0(this.a,this.b,e)};lce.Gk=function n(){ZQ(this.a,this.b)};var lit=YW(Jee,"BasicEObjectImpl/4",1040);wDn(2081,1,{114:1});lce.Mk=function n(e){this.e=e==0?bit:$nn(kce,jZn,1,e,5,1)};lce.li=function n(e){return this.e[e]};lce.mi=function n(e,t){this.e[e]=t};lce.ni=function n(e){this.e[e]=null};lce.Nk=function n(){return this.c};lce.Ok=function n(){throw dm(new Um)};lce.Pk=function n(){throw dm(new Um)};lce.Qk=function n(){return this.d};lce.Rk=function n(){return this.e!=null};lce.Sk=function n(e){this.c=e};lce.Tk=function n(e){throw dm(new Um)};lce.Uk=function n(e){throw dm(new Um)};lce.Vk=function n(e){this.d=e};var bit;var wit=YW(Jee,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2081);wDn(192,2081,{114:1},Rl);lce.Ok=function n(){return this.a};lce.Pk=function n(){return this.b};lce.Tk=function n(e){this.a=e};lce.Uk=function n(e){this.b=e};var dit=YW(Jee,"BasicEObjectImpl/EPropertiesHolderImpl",192);wDn(516,99,Qee,Mo);lce.uh=function n(){return this.f};lce.zh=function n(){return this.k};lce.Bh=function n(e,t){this.g=e;this.i=t};lce.Dh=function n(){return(this.j&2)==0?this.ii():this.$h().Nk()};lce.Fh=function n(){return this.i};lce.wh=function n(){return(this.j&1)!=0};lce.Ph=function n(){return this.g};lce.Vh=function n(){return(this.j&4)!=0};lce.$h=function n(){return!this.k&&(this.k=new Rl),this.k};lce.ci=function n(e){this.$h().Sk(e);e?this.j|=2:this.j&=-3};lce.ei=function n(e){this.$h().Uk(e);e?this.j|=4:this.j&=-5};lce.ii=function n(){return(cQ(),_rt).S};lce.i=0;lce.j=1;var git=YW(Jee,"EObjectImpl",516);wDn(798,516,{110:1,94:1,93:1,58:1,114:1,54:1,99:1},XG);lce.li=function n(e){return this.e[e]};lce.mi=function n(e,t){this.e[e]=t};lce.ni=function n(e){this.e[e]=null};lce.Dh=function n(){return this.d};lce.Ih=function n(e){return upn(this.d,e)};lce.Kh=function n(){return this.d};lce.Oh=function n(){return this.e!=null};lce.$h=function n(){!this.k&&(this.k=new To);return this.k};lce.ci=function n(e){this.d=e};lce.hi=function n(){var e;if(this.e==null){e=sQ(this.d);this.e=e==0?vit:$nn(kce,jZn,1,e,5,1)}return this};lce.ji=function n(){return 0};var vit;var pit=YW(Jee,"DynamicEObjectImpl",798);wDn(1522,798,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1},Oq);lce.Fb=function n(e){return this===e};lce.Hb=function n(){return Bx(this)};lce.ci=function n(e){this.d=e;this.b=OKn(e,"key");this.c=OKn(e,ute)};lce.Bi=function n(){var e;if(this.a==-1){e=Ytn(this,this.b);this.a=e==null?0:Vun(e)}return this.a};lce.ld=function n(){return Ytn(this,this.b)};lce.md=function n(){return Ytn(this,this.c)};lce.Ci=function n(e){this.a=e};lce.Di=function n(e){S0(this,this.b,e)};lce.nd=function n(e){var t;t=Ytn(this,this.c);S0(this,this.c,e);return t};lce.a=0;var mit=YW(Jee,"DynamicEObjectImpl/BasicEMapEntry",1522);wDn(1523,1,{114:1},To);lce.Mk=function n(e){throw dm(new Um)};lce.li=function n(e){throw dm(new Um)};lce.mi=function n(e,t){throw dm(new Um)};lce.ni=function n(e){throw dm(new Um)};lce.Nk=function n(){throw dm(new Um)};lce.Ok=function n(){return this.a};lce.Pk=function n(){return this.b};lce.Qk=function n(){return this.c};lce.Rk=function n(){throw dm(new Um)};lce.Sk=function n(e){throw dm(new Um)};lce.Tk=function n(e){this.a=e};lce.Uk=function n(e){this.b=e};lce.Vk=function n(e){this.c=e};var kit=YW(Jee,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1523);wDn(519,158,{110:1,94:1,93:1,598:1,155:1,58:1,114:1,54:1,99:1,519:1,158:1,119:1,120:1},jo);lce.Ah=function n(e){return rEn(this,e)};lce.Lh=function n(e,t,r){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.d;case 2:return r?(!this.b&&(this.b=new JR((rZn(),cit),Nat,this)),this.b):(!this.b&&(this.b=new JR((rZn(),cit),Nat,this)),Cnn(this.b));case 3:return G0(this);case 4:return!this.a&&(this.a=new PD(x7e,this,4)),this.a;case 5:return!this.c&&(this.c=new DD(x7e,this,5)),this.c}return Fen(this,e-sQ((rZn(),Brt)),uin((i=bG(Ron(this,16),29),!i?Brt:i),e),t,r)};lce.Sh=function n(e,t,r){var i,a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kpn(this.Ab,e,r);case 3:!!this.Cb&&(r=(a=this.Db>>16,a>=0?rEn(this,r):this.Cb.Th(this,-1-a,null,r)));return yV(this,bG(e,155),r)}return c=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),Brt):i),t),69),c.wk().zk(this,Fmn(this),t-sQ((rZn(),Brt)),e,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r);case 2:return!this.b&&(this.b=new JR((rZn(),cit),Nat,this)),W_(this.b,e,r);case 3:return yV(this,null,r);case 4:return!this.a&&(this.a=new PD(x7e,this,4)),Kyn(this.a,e,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),Brt):i),t),69),a.wk().Ak(this,Fmn(this),t-sQ((rZn(),Brt)),e,r)};lce.Wh=function n(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!G0(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return v5(this,e-sQ((rZn(),Brt)),uin((t=bG(Ron(this,16),29),!t?Brt:t),e))};lce.bi=function n(e,t){var r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:Bq(this,TK(t));return;case 2:!this.b&&(this.b=new JR((rZn(),cit),Nat,this));ton(this.b,t);return;case 3:EKn(this,bG(t,155));return;case 4:!this.a&&(this.a=new PD(x7e,this,4));NVn(this.a);!this.a&&(this.a=new PD(x7e,this,4));NW(this.a,bG(t,16));return;case 5:!this.c&&(this.c=new DD(x7e,this,5));NVn(this.c);!this.c&&(this.c=new DD(x7e,this,5));NW(this.c,bG(t,16));return}vvn(this,e-sQ((rZn(),Brt)),uin((r=bG(Ron(this,16),29),!r?Brt:r),e),t)};lce.ii=function n(){return rZn(),Brt};lce.ki=function n(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:run(this,null);return;case 2:!this.b&&(this.b=new JR((rZn(),cit),Nat,this));this.b.c.$b();return;case 3:EKn(this,null);return;case 4:!this.a&&(this.a=new PD(x7e,this,4));NVn(this.a);return;case 5:!this.c&&(this.c=new DD(x7e,this,5));NVn(this.c);return}wdn(this,e-sQ((rZn(),Brt)),uin((t=bG(Ron(this,16),29),!t?Brt:t),e))};lce.Ib=function n(){return gdn(this)};lce.d=null;var yit=YW(Jee,"EAnnotationImpl",519);wDn(141,721,cie,ven);lce.Gi=function n(e,t){QN(this,e,bG(t,44))};lce.Wk=function n(e,t){return z_(this,bG(e,44),t)};lce.$i=function n(e){return bG(bG(this.c,71).$i(e),136)};lce.Ii=function n(){return bG(this.c,71).Ii()};lce.Ji=function n(){return bG(this.c,71).Ji()};lce.Ki=function n(e){return bG(this.c,71).Ki(e)};lce.Xk=function n(e,t){return W_(this,e,t)};lce.Fk=function n(e){return bG(this.c,79).Fk(e)};lce.ak=function n(){};lce.Qj=function n(){return bG(this.c,79).Qj()};lce.ck=function n(e,t,r){var i;i=bG(Vin(this.b).wi().si(this.b),136);i.Ci(e);i.Di(t);i.nd(r);return i};lce.dk=function n(){return new Zp(this)};lce.Wb=function n(e){ton(this,e)};lce.Gk=function n(){bG(this.c,79).Gk()};var Mit=YW(iie,"EcoreEMap",141);wDn(165,141,cie,JR);lce._j=function n(){var e,t,r,i,a,c;if(this.d==null){c=$nn(zet,Ure,66,2*this.f+1,0,1);for(r=this.c.Kc();r.e!=r.i.gc();){t=bG(r.Yj(),136);i=t.Bi();a=(i&pZn)%c.length;e=c[a];!e&&(e=c[a]=new Zp(this));e.Fc(t)}this.d=c}};var Tit=YW(Jee,"EAnnotationImpl/1",165);wDn(292,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,481:1,54:1,99:1,158:1,292:1,119:1,120:1});lce.Lh=function n(e,t,r){var i,a;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Qx(),(this.Bb&256)!=0?true:false;case 3:return Qx(),(this.Bb&512)!=0?true:false;case 4:return Bwn(this.s);case 5:return Bwn(this.t);case 6:return Qx(),this.Jk()?true:false;case 7:return Qx(),a=this.s,a>=1?true:false;case 8:if(t)return pEn(this);return this.r;case 9:return this.q}return Fen(this,e-sQ(this.ii()),uin((i=bG(Ron(this,16),29),!i?this.ii():i),e),t,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r);case 9:return $W(this,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?this.ii():i),t),69),a.wk().Ak(this,Fmn(this),t-sQ(this.ii()),e,r)};lce.Wh=function n(e){var t,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return r=this.s,r>=1;case 8:return!!this.r&&!this.q.e&&SQ(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&SQ(this.q).i==0)}return v5(this,e-sQ(this.ii()),uin((t=bG(Ron(this,16),29),!t?this.ii():t),e))};lce.bi=function n(e,t){var r,i;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:this.ui(TK(t));return;case 2:kdn(this,lM(yK(t)));return;case 3:Tdn(this,lM(yK(t)));return;case 4:Lan(this,bG(t,17).a);return;case 5:this.Zk(bG(t,17).a);return;case 8:Ubn(this,bG(t,142));return;case 9:i=NCn(this,bG(t,89),null);!!i&&i.oj();return}vvn(this,e-sQ(this.ii()),uin((r=bG(Ron(this,16),29),!r?this.ii():r),e),t)};lce.ii=function n(){return rZn(),sit};lce.ki=function n(e){var t,r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:this.ui(null);return;case 2:kdn(this,true);return;case 3:Tdn(this,true);return;case 4:Lan(this,0);return;case 5:this.Zk(1);return;case 8:Ubn(this,null);return;case 9:r=NCn(this,null,null);!!r&&r.oj();return}wdn(this,e-sQ(this.ii()),uin((t=bG(Ron(this,16),29),!t?this.ii():t),e))};lce.pi=function n(){pEn(this);this.Bb|=1};lce.Hk=function n(){return pEn(this)};lce.Ik=function n(){return this.t};lce.Jk=function n(){var e;return e=this.t,e>1||e==-1};lce.Si=function n(){return(this.Bb&512)!=0};lce.Yk=function n(e,t){return rdn(this,e,t)};lce.Zk=function n(e){Nan(this,e)};lce.Ib=function n(){return R$n(this)};lce.s=0;lce.t=1;var jit=YW(Jee,"ETypedElementImpl",292);wDn(462,292,{110:1,94:1,93:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,462:1,292:1,119:1,120:1,692:1});lce.Ah=function n(e){return Mjn(this,e)};lce.Lh=function n(e,t,r){var i,a;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Qx(),(this.Bb&256)!=0?true:false;case 3:return Qx(),(this.Bb&512)!=0?true:false;case 4:return Bwn(this.s);case 5:return Bwn(this.t);case 6:return Qx(),this.Jk()?true:false;case 7:return Qx(),a=this.s,a>=1?true:false;case 8:if(t)return pEn(this);return this.r;case 9:return this.q;case 10:return Qx(),(this.Bb&b1n)!=0?true:false;case 11:return Qx(),(this.Bb&oie)!=0?true:false;case 12:return Qx(),(this.Bb&T0n)!=0?true:false;case 13:return this.j;case 14:return KRn(this);case 15:return Qx(),(this.Bb&sie)!=0?true:false;case 16:return Qx(),(this.Bb&VZn)!=0?true:false;case 17:return U0(this)}return Fen(this,e-sQ(this.ii()),uin((i=bG(Ron(this,16),29),!i?this.ii():i),e),t,r)};lce.Sh=function n(e,t,r){var i,a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kpn(this.Ab,e,r);case 17:!!this.Cb&&(r=(a=this.Db>>16,a>=0?Mjn(this,r):this.Cb.Th(this,-1-a,null,r)));return FUn(this,e,17,r)}return c=bG(uin((i=bG(Ron(this,16),29),!i?this.ii():i),t),69),c.wk().zk(this,Fmn(this),t-sQ(this.ii()),e,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r);case 9:return $W(this,r);case 17:return FUn(this,null,17,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?this.ii():i),t),69),a.wk().Ak(this,Fmn(this),t-sQ(this.ii()),e,r)};lce.Wh=function n(e){var t,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return r=this.s,r>=1;case 8:return!!this.r&&!this.q.e&&SQ(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&SQ(this.q).i==0);case 10:return(this.Bb&b1n)==0;case 11:return(this.Bb&oie)!=0;case 12:return(this.Bb&T0n)!=0;case 13:return this.j!=null;case 14:return KRn(this)!=null;case 15:return(this.Bb&sie)!=0;case 16:return(this.Bb&VZn)!=0;case 17:return!!U0(this)}return v5(this,e-sQ(this.ii()),uin((t=bG(Ron(this,16),29),!t?this.ii():t),e))};lce.bi=function n(e,t){var r,i;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:y2(this,TK(t));return;case 2:kdn(this,lM(yK(t)));return;case 3:Tdn(this,lM(yK(t)));return;case 4:Lan(this,bG(t,17).a);return;case 5:this.Zk(bG(t,17).a);return;case 8:Ubn(this,bG(t,142));return;case 9:i=NCn(this,bG(t,89),null);!!i&&i.oj();return;case 10:ngn(this,lM(yK(t)));return;case 11:rgn(this,lM(yK(t)));return;case 12:egn(this,lM(yK(t)));return;case 13:TA(this,TK(t));return;case 15:tgn(this,lM(yK(t)));return;case 16:Ngn(this,lM(yK(t)));return}vvn(this,e-sQ(this.ii()),uin((r=bG(Ron(this,16),29),!r?this.ii():r),e),t)};lce.ii=function n(){return rZn(),uit};lce.ki=function n(e){var t,r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:G$(this.Cb,90)&&SLn(S9(bG(this.Cb,90)),4);Qun(this,null);return;case 2:kdn(this,true);return;case 3:Tdn(this,true);return;case 4:Lan(this,0);return;case 5:this.Zk(1);return;case 8:Ubn(this,null);return;case 9:r=NCn(this,null,null);!!r&&r.oj();return;case 10:ngn(this,true);return;case 11:rgn(this,false);return;case 12:egn(this,false);return;case 13:this.i=null;vun(this,null);return;case 15:tgn(this,false);return;case 16:Ngn(this,false);return}wdn(this,e-sQ(this.ii()),uin((t=bG(Ron(this,16),29),!t?this.ii():t),e))};lce.pi=function n(){XJ(Ktn((yAn(),Vut),this));pEn(this);this.Bb|=1};lce.pk=function n(){return this.f};lce.ik=function n(){return KRn(this)};lce.qk=function n(){return U0(this)};lce.uk=function n(){return null};lce.$k=function n(){return this.k};lce.Lj=function n(){return this.n};lce.vk=function n(){return QSn(this)};lce.wk=function n(){var e,t,r,i,a,c,u,s,o;if(!this.p){r=U0(this);(r.i==null&&uqn(r),r.i).length;i=this.uk();!!i&&sQ(U0(i));a=pEn(this);u=a.kk();e=!u?null:(u.i&1)!=0?u==qht?Uhe:u==Ght?tle:u==Wht?Zhe:u==zht?Yhe:u==Xht?ale:u==Qht?wle:u==Vht?Xhe:Whe:u;t=KRn(this);s=a.ik();Zgn(this);(this.Bb&VZn)!=0&&(!!(c=fSn((yAn(),Vut),r))&&c!=this||!!(c=q3(Ktn(Vut,this))))?this.p=new AA(this,c):this.Jk()?this.al()?!i?(this.Bb&sie)!=0?!e?this.bl()?this.p=new WZ(42,this):this.p=new WZ(0,this):e==vue?this.p=new HU(50,xnt,this):this.bl()?this.p=new HU(43,e,this):this.p=new HU(1,e,this):!e?this.bl()?this.p=new WZ(44,this):this.p=new WZ(2,this):e==vue?this.p=new HU(41,xnt,this):this.bl()?this.p=new HU(45,e,this):this.p=new HU(3,e,this):(this.Bb&sie)!=0?!e?this.bl()?this.p=new o8(46,this,i):this.p=new o8(4,this,i):this.bl()?this.p=new NY(47,e,this,i):this.p=new NY(5,e,this,i):!e?this.bl()?this.p=new o8(48,this,i):this.p=new o8(6,this,i):this.bl()?this.p=new NY(49,e,this,i):this.p=new NY(7,e,this,i):G$(a,156)?e==fit?this.p=new WZ(40,this):(this.Bb&512)!=0?(this.Bb&sie)!=0?!e?this.p=new WZ(8,this):this.p=new HU(9,e,this):!e?this.p=new WZ(10,this):this.p=new HU(11,e,this):(this.Bb&sie)!=0?!e?this.p=new WZ(12,this):this.p=new HU(13,e,this):!e?this.p=new WZ(14,this):this.p=new HU(15,e,this):!i?this.bl()?(this.Bb&sie)!=0?!e?this.p=new WZ(16,this):this.p=new HU(17,e,this):!e?this.p=new WZ(18,this):this.p=new HU(19,e,this):(this.Bb&sie)!=0?!e?this.p=new WZ(20,this):this.p=new HU(21,e,this):!e?this.p=new WZ(22,this):this.p=new HU(23,e,this):(o=i.t,o>1||o==-1?this.bl()?(this.Bb&sie)!=0?!e?this.p=new o8(24,this,i):this.p=new NY(25,e,this,i):!e?this.p=new o8(26,this,i):this.p=new NY(27,e,this,i):(this.Bb&sie)!=0?!e?this.p=new o8(28,this,i):this.p=new NY(29,e,this,i):!e?this.p=new o8(30,this,i):this.p=new NY(31,e,this,i):this.bl()?(this.Bb&sie)!=0?!e?this.p=new o8(32,this,i):this.p=new NY(33,e,this,i):!e?this.p=new o8(34,this,i):this.p=new NY(35,e,this,i):(this.Bb&sie)!=0?!e?this.p=new o8(36,this,i):this.p=new NY(37,e,this,i):!e?this.p=new o8(38,this,i):this.p=new NY(39,e,this,i)):this._k()?this.bl()?this.p=new UU(bG(a,29),this,i):this.p=new q1(bG(a,29),this,i):G$(a,156)?e==fit?this.p=new WZ(40,this):(this.Bb&sie)!=0?!e?this.p=new xY(bG(a,156),t,s,this):this.p=new pV(t,s,this,(Lpn(),u==Ght?Qat:u==qht?qat:u==Xht?Jat:u==Wht?Wat:u==zht?zat:u==Qht?Zat:u==Vht?Xat:u==Uht?Vat:Yat)):!e?this.p=new DY(bG(a,156),t,s,this):this.p=new vV(t,s,this,(Lpn(),u==Ght?Qat:u==qht?qat:u==Xht?Jat:u==Wht?Wat:u==zht?zat:u==Qht?Zat:u==Vht?Xat:u==Uht?Vat:Yat)):this.al()?!i?(this.Bb&sie)!=0?this.bl()?this.p=new fK(bG(a,29),this):this.p=new sK(bG(a,29),this):this.bl()?this.p=new uK(bG(a,29),this):this.p=new cK(bG(a,29),this):(this.Bb&sie)!=0?this.bl()?this.p=new WU(bG(a,29),this,i):this.p=new zU(bG(a,29),this,i):this.bl()?this.p=new VU(bG(a,29),this,i):this.p=new GU(bG(a,29),this,i):this.bl()?!i?(this.Bb&sie)!=0?this.p=new hK(bG(a,29),this):this.p=new oK(bG(a,29),this):(this.Bb&sie)!=0?this.p=new QU(bG(a,29),this,i):this.p=new qU(bG(a,29),this,i):!i?(this.Bb&sie)!=0?this.p=new lK(bG(a,29),this):this.p=new DX(bG(a,29),this):(this.Bb&sie)!=0?this.p=new JU(bG(a,29),this,i):this.p=new XU(bG(a,29),this,i)}return this.p};lce.rk=function n(){return(this.Bb&b1n)!=0};lce._k=function n(){return false};lce.al=function n(){return false};lce.sk=function n(){return(this.Bb&VZn)!=0};lce.xk=function n(){return urn(this)};lce.bl=function n(){return false};lce.tk=function n(){return(this.Bb&sie)!=0};lce.cl=function n(e){this.k=e};lce.ui=function n(e){y2(this,e)};lce.Ib=function n(){return PBn(this)};lce.e=false;lce.n=0;var Eit=YW(Jee,"EStructuralFeatureImpl",462);wDn(331,462,{110:1,94:1,93:1,35:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,331:1,158:1,462:1,292:1,119:1,120:1,692:1},ny);lce.Lh=function n(e,t,r){var i,a;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Qx(),(this.Bb&256)!=0?true:false;case 3:return Qx(),(this.Bb&512)!=0?true:false;case 4:return Bwn(this.s);case 5:return Bwn(this.t);case 6:return Qx(),ANn(this)?true:false;case 7:return Qx(),a=this.s,a>=1?true:false;case 8:if(t)return pEn(this);return this.r;case 9:return this.q;case 10:return Qx(),(this.Bb&b1n)!=0?true:false;case 11:return Qx(),(this.Bb&oie)!=0?true:false;case 12:return Qx(),(this.Bb&T0n)!=0?true:false;case 13:return this.j;case 14:return KRn(this);case 15:return Qx(),(this.Bb&sie)!=0?true:false;case 16:return Qx(),(this.Bb&VZn)!=0?true:false;case 17:return U0(this);case 18:return Qx(),(this.Bb&Wee)!=0?true:false;case 19:if(t)return Efn(this);return O7(this)}return Fen(this,e-sQ((rZn(),Hrt)),uin((i=bG(Ron(this,16),29),!i?Hrt:i),e),t,r)};lce.Wh=function n(e){var t,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return ANn(this);case 7:return r=this.s,r>=1;case 8:return!!this.r&&!this.q.e&&SQ(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&SQ(this.q).i==0);case 10:return(this.Bb&b1n)==0;case 11:return(this.Bb&oie)!=0;case 12:return(this.Bb&T0n)!=0;case 13:return this.j!=null;case 14:return KRn(this)!=null;case 15:return(this.Bb&sie)!=0;case 16:return(this.Bb&VZn)!=0;case 17:return!!U0(this);case 18:return(this.Bb&Wee)!=0;case 19:return!!O7(this)}return v5(this,e-sQ((rZn(),Hrt)),uin((t=bG(Ron(this,16),29),!t?Hrt:t),e))};lce.bi=function n(e,t){var r,i;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:y2(this,TK(t));return;case 2:kdn(this,lM(yK(t)));return;case 3:Tdn(this,lM(yK(t)));return;case 4:Lan(this,bG(t,17).a);return;case 5:gj(this,bG(t,17).a);return;case 8:Ubn(this,bG(t,142));return;case 9:i=NCn(this,bG(t,89),null);!!i&&i.oj();return;case 10:ngn(this,lM(yK(t)));return;case 11:rgn(this,lM(yK(t)));return;case 12:egn(this,lM(yK(t)));return;case 13:TA(this,TK(t));return;case 15:tgn(this,lM(yK(t)));return;case 16:Ngn(this,lM(yK(t)));return;case 18:Agn(this,lM(yK(t)));return}vvn(this,e-sQ((rZn(),Hrt)),uin((r=bG(Ron(this,16),29),!r?Hrt:r),e),t)};lce.ii=function n(){return rZn(),Hrt};lce.ki=function n(e){var t,r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:G$(this.Cb,90)&&SLn(S9(bG(this.Cb,90)),4);Qun(this,null);return;case 2:kdn(this,true);return;case 3:Tdn(this,true);return;case 4:Lan(this,0);return;case 5:this.b=0;Nan(this,1);return;case 8:Ubn(this,null);return;case 9:r=NCn(this,null,null);!!r&&r.oj();return;case 10:ngn(this,true);return;case 11:rgn(this,false);return;case 12:egn(this,false);return;case 13:this.i=null;vun(this,null);return;case 15:tgn(this,false);return;case 16:Ngn(this,false);return;case 18:Agn(this,false);return}wdn(this,e-sQ((rZn(),Hrt)),uin((t=bG(Ron(this,16),29),!t?Hrt:t),e))};lce.pi=function n(){Efn(this);XJ(Ktn((yAn(),Vut),this));pEn(this);this.Bb|=1};lce.Jk=function n(){return ANn(this)};lce.Yk=function n(e,t){this.b=0;this.a=null;return rdn(this,e,t)};lce.Zk=function n(e){gj(this,e)};lce.Ib=function n(){var e;if((this.Db&64)!=0)return PBn(this);e=new gx(PBn(this));e.a+=" (iD: ";Rj(e,(this.Bb&Wee)!=0);e.a+=")";return e.a};lce.b=0;var Sit=YW(Jee,"EAttributeImpl",331);wDn(364,448,{110:1,94:1,93:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1});lce.dl=function n(e){return e.Dh()==this};lce.Ah=function n(e){return ZTn(this,e)};lce.Bh=function n(e,t){this.w=null;this.Db=t<<16|this.Db&255;this.Cb=e};lce.Lh=function n(e,t,r){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return qTn(this);case 4:return this.ik();case 5:return this.F;case 6:if(t)return Vin(this);return _0(this);case 7:return!this.A&&(this.A=new LD(xrt,this,7)),this.A}return Fen(this,e-sQ(this.ii()),uin((i=bG(Ron(this,16),29),!i?this.ii():i),e),t,r)};lce.Sh=function n(e,t,r){var i,a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kpn(this.Ab,e,r);case 6:!!this.Cb&&(r=(a=this.Db>>16,a>=0?ZTn(this,r):this.Cb.Th(this,-1-a,null,r)));return FUn(this,e,6,r)}return c=bG(uin((i=bG(Ron(this,16),29),!i?this.ii():i),t),69),c.wk().zk(this,Fmn(this),t-sQ(this.ii()),e,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r);case 6:return FUn(this,null,6,r);case 7:return!this.A&&(this.A=new LD(xrt,this,7)),Kyn(this.A,e,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?this.ii():i),t),69),a.wk().Ak(this,Fmn(this),t-sQ(this.ii()),e,r)};lce.Wh=function n(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!qTn(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!_0(this);case 7:return!!this.A&&this.A.i!=0}return v5(this,e-sQ(this.ii()),uin((t=bG(Ron(this,16),29),!t?this.ii():t),e))};lce.bi=function n(e,t){var r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:k2(this,TK(t));return;case 2:MN(this,TK(t));return;case 5:CWn(this,TK(t));return;case 7:!this.A&&(this.A=new LD(xrt,this,7));NVn(this.A);!this.A&&(this.A=new LD(xrt,this,7));NW(this.A,bG(t,16));return}vvn(this,e-sQ(this.ii()),uin((r=bG(Ron(this,16),29),!r?this.ii():r),e),t)};lce.ii=function n(){return rZn(),Grt};lce.ki=function n(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:G$(this.Cb,184)&&(bG(this.Cb,184).tb=null);Qun(this,null);return;case 2:wbn(this,null);Dan(this,this.D);return;case 5:CWn(this,null);return;case 7:!this.A&&(this.A=new LD(xrt,this,7));NVn(this.A);return}wdn(this,e-sQ(this.ii()),uin((t=bG(Ron(this,16),29),!t?this.ii():t),e))};lce.hk=function n(){var e;return this.G==-1&&(this.G=(e=Vin(this),e?Vyn(e.vi(),this):-1)),this.G};lce.ik=function n(){return null};lce.jk=function n(){return Vin(this)};lce.el=function n(){return this.v};lce.kk=function n(){return qTn(this)};lce.lk=function n(){return this.D!=null?this.D:this.B};lce.mk=function n(){return this.F};lce.fk=function n(e){return RGn(this,e)};lce.fl=function n(e){this.v=e};lce.gl=function n(e){csn(this,e)};lce.hl=function n(e){this.C=e};lce.ui=function n(e){k2(this,e)};lce.Ib=function n(){return Mpn(this)};lce.C=null;lce.D=null;lce.G=-1;var Pit=YW(Jee,"EClassifierImpl",364);wDn(90,364,{110:1,94:1,93:1,29:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,90:1,364:1,158:1,482:1,119:1,120:1,691:1},Ul);lce.dl=function n(e){return ZF(this,e.Dh())};lce.Lh=function n(e,t,r){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return qTn(this);case 4:return null;case 5:return this.F;case 6:if(t)return Vin(this);return _0(this);case 7:return!this.A&&(this.A=new LD(xrt,this,7)),this.A;case 8:return Qx(),(this.Bb&256)!=0?true:false;case 9:return Qx(),(this.Bb&512)!=0?true:false;case 10:return a1(this);case 11:return!this.q&&(this.q=new gz(Irt,this,11,10)),this.q;case 12:return dXn(this);case 13:return iXn(this);case 14:return iXn(this),this.r;case 15:return dXn(this),this.k;case 16:return HAn(this);case 17:return Fqn(this);case 18:return uqn(this);case 19:return TRn(this);case 20:return dXn(this),this.o;case 21:return!this.s&&(this.s=new gz(mrt,this,21,17)),this.s;case 22:return Y5(this);case 23:return B_n(this)}return Fen(this,e-sQ((rZn(),Urt)),uin((i=bG(Ron(this,16),29),!i?Urt:i),e),t,r)};lce.Sh=function n(e,t,r){var i,a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kpn(this.Ab,e,r);case 6:!!this.Cb&&(r=(a=this.Db>>16,a>=0?ZTn(this,r):this.Cb.Th(this,-1-a,null,r)));return FUn(this,e,6,r);case 11:return!this.q&&(this.q=new gz(Irt,this,11,10)),Kpn(this.q,e,r);case 21:return!this.s&&(this.s=new gz(mrt,this,21,17)),Kpn(this.s,e,r)}return c=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),Urt):i),t),69),c.wk().zk(this,Fmn(this),t-sQ((rZn(),Urt)),e,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r);case 6:return FUn(this,null,6,r);case 7:return!this.A&&(this.A=new LD(xrt,this,7)),Kyn(this.A,e,r);case 11:return!this.q&&(this.q=new gz(Irt,this,11,10)),Kyn(this.q,e,r);case 21:return!this.s&&(this.s=new gz(mrt,this,21,17)),Kyn(this.s,e,r);case 22:return Kyn(Y5(this),e,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),Urt):i),t),69),a.wk().Ak(this,Fmn(this),t-sQ((rZn(),Urt)),e,r)};lce.Wh=function n(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!qTn(this);case 4:return false;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!_0(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&Y5(this.u.a).i!=0&&!(!!this.n&&SMn(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return dXn(this).i!=0;case 13:return iXn(this).i!=0;case 14:return iXn(this),this.r.i!=0;case 15:return dXn(this),this.k.i!=0;case 16:return HAn(this).i!=0;case 17:return Fqn(this).i!=0;case 18:return uqn(this).i!=0;case 19:return TRn(this).i!=0;case 20:return dXn(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&SMn(this.n);case 23:return B_n(this).i!=0}return v5(this,e-sQ((rZn(),Urt)),uin((t=bG(Ron(this,16),29),!t?Urt:t),e))};lce.Zh=function n(e){var t;t=this.i==null||!!this.q&&this.q.i!=0?null:OKn(this,e);return t?t:ZQn(this,e)};lce.bi=function n(e,t){var r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:k2(this,TK(t));return;case 2:MN(this,TK(t));return;case 5:CWn(this,TK(t));return;case 7:!this.A&&(this.A=new LD(xrt,this,7));NVn(this.A);!this.A&&(this.A=new LD(xrt,this,7));NW(this.A,bG(t,16));return;case 8:ydn(this,lM(yK(t)));return;case 9:jdn(this,lM(yK(t)));return;case 10:qVn(a1(this));NW(a1(this),bG(t,16));return;case 11:!this.q&&(this.q=new gz(Irt,this,11,10));NVn(this.q);!this.q&&(this.q=new gz(Irt,this,11,10));NW(this.q,bG(t,16));return;case 21:!this.s&&(this.s=new gz(mrt,this,21,17));NVn(this.s);!this.s&&(this.s=new gz(mrt,this,21,17));NW(this.s,bG(t,16));return;case 22:NVn(Y5(this));NW(Y5(this),bG(t,16));return}vvn(this,e-sQ((rZn(),Urt)),uin((r=bG(Ron(this,16),29),!r?Urt:r),e),t)};lce.ii=function n(){return rZn(),Urt};lce.ki=function n(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:G$(this.Cb,184)&&(bG(this.Cb,184).tb=null);Qun(this,null);return;case 2:wbn(this,null);Dan(this,this.D);return;case 5:CWn(this,null);return;case 7:!this.A&&(this.A=new LD(xrt,this,7));NVn(this.A);return;case 8:ydn(this,false);return;case 9:jdn(this,false);return;case 10:!!this.u&&qVn(this.u);return;case 11:!this.q&&(this.q=new gz(Irt,this,11,10));NVn(this.q);return;case 21:!this.s&&(this.s=new gz(mrt,this,21,17));NVn(this.s);return;case 22:!!this.n&&NVn(this.n);return}wdn(this,e-sQ((rZn(),Urt)),uin((t=bG(Ron(this,16),29),!t?Urt:t),e))};lce.pi=function n(){var e,t;dXn(this);iXn(this);HAn(this);Fqn(this);uqn(this);TRn(this);B_n(this);Z9(sG(S9(this)));if(this.s){for(e=0,t=this.s.i;e=0;--t){Yin(this,t)}}return ypn(this,e)};lce.Gk=function n(){NVn(this)};lce.Zi=function n(e,t){return _an(this,e,t)};var Nit=YW(iie,"EcoreEList",632);wDn(505,632,yie,GG);lce.Li=function n(){return false};lce.Lj=function n(){return this.c};lce.Mj=function n(){return false};lce.ol=function n(){return true};lce.Si=function n(){return true};lce.Wi=function n(e,t){return t};lce.Yi=function n(){return false};lce.c=0;var $it=YW(iie,"EObjectEList",505);wDn(83,505,yie,PD);lce.Mj=function n(){return true};lce.ml=function n(){return false};lce.al=function n(){return true};var Dit=YW(iie,"EObjectContainmentEList",83);wDn(555,83,yie,CD);lce.Ni=function n(){this.b=true};lce.Qj=function n(){return this.b};lce.Gk=function n(){var e;NVn(this);if(bN(this.e)){e=this.b;this.b=false;Pon(this.e,new I9(this.e,2,this.c,e,false))}else{this.b=false}};lce.b=false;var xit=YW(iie,"EObjectContainmentEList/Unsettable",555);wDn(1161,555,yie,dV);lce.Ti=function n(e,t){var r,i;return r=bG(Ydn(this,e,t),89),bN(this.e)&&rk(this,new men(this.a,7,(rZn(),qrt),Bwn(t),(i=r.c,G$(i,90)?bG(i,29):nit),e)),r};lce.Uj=function n(e,t){return _pn(this,bG(e,89),t)};lce.Vj=function n(e,t){return Fpn(this,bG(e,89),t)};lce.Wj=function n(e,t,r){return CSn(this,bG(e,89),bG(t,89),r)};lce.Ij=function n(e,t,r,i,a){switch(e){case 3:{return s2(this,e,t,r,i,this.i>1)}case 5:{return s2(this,e,t,r,i,this.i-bG(r,15).gc()>0)}default:{return new Utn(this.e,e,this.c,t,r,i,true)}}};lce.Tj=function n(){return true};lce.Qj=function n(){return SMn(this)};lce.Gk=function n(){NVn(this)};var Rit=YW(Jee,"EClassImpl/1",1161);wDn(1175,1174,Rre);lce.dj=function n(e){var t,r,i,a,c,u,s;r=e.gj();if(r!=8){i=Bkn(e);if(i==0){switch(r){case 1:case 9:{s=e.kj();if(s!=null){t=S9(bG(s,482));!t.c&&(t.c=new Uo);orn(t.c,e.jj())}u=e.ij();if(u!=null){a=bG(u,482);if((a.Bb&1)==0){t=S9(a);!t.c&&(t.c=new Uo);cen(t.c,bG(e.jj(),29))}}break}case 3:{u=e.ij();if(u!=null){a=bG(u,482);if((a.Bb&1)==0){t=S9(a);!t.c&&(t.c=new Uo);cen(t.c,bG(e.jj(),29))}}break}case 5:{u=e.ij();if(u!=null){for(c=bG(u,16).Kc();c.Ob();){a=bG(c.Pb(),482);if((a.Bb&1)==0){t=S9(a);!t.c&&(t.c=new Uo);cen(t.c,bG(e.jj(),29))}}}break}case 4:{s=e.kj();if(s!=null){a=bG(s,482);if((a.Bb&1)==0){t=S9(a);!t.c&&(t.c=new Uo);orn(t.c,e.jj())}}break}case 6:{s=e.kj();if(s!=null){for(c=bG(s,16).Kc();c.Ob();){a=bG(c.Pb(),482);if((a.Bb&1)==0){t=S9(a);!t.c&&(t.c=new Uo);orn(t.c,e.jj())}}}break}}}this.ql(i)}};lce.ql=function n(e){pBn(this,e)};lce.b=63;var Kit=YW(Jee,"ESuperAdapter",1175);wDn(1176,1175,Rre,Fp);lce.ql=function n(e){SLn(this,e)};var Fit=YW(Jee,"EClassImpl/10",1176);wDn(1165,710,yie);lce.Ei=function n(e,t){return LCn(this,e,t)};lce.Fi=function n(e){return eTn(this,e)};lce.Gi=function n(e,t){udn(this,e,t)};lce.Hi=function n(e){Y9(this,e)};lce.$i=function n(e){return Den(this,e)};lce.Xi=function n(e,t){return srn(this,e,t)};lce.Wk=function n(e,t){throw dm(new Um)};lce.Ii=function n(){return new aR(this)};lce.Ji=function n(){return new cR(this)};lce.Ki=function n(e){return dcn(this,e)};lce.Xk=function n(e,t){throw dm(new Um)};lce.Fk=function n(e){return this};lce.Qj=function n(){return this.i!=0};lce.Wb=function n(e){throw dm(new Um)};lce.Gk=function n(){throw dm(new Um)};var _it=YW(iie,"EcoreEList/UnmodifiableEList",1165);wDn(328,1165,yie,jL);lce.Yi=function n(){return false};var Bit=YW(iie,"EcoreEList/UnmodifiableEList/FastCompare",328);wDn(1168,328,yie,xhn);lce.dd=function n(e){var t,r,i;if(G$(e,179)){t=bG(e,179);r=t.Lj();if(r!=-1){for(i=this.i;r4){if(this.fk(e)){if(this.al()){i=bG(e,54);r=i.Eh();s=r==this.b&&(this.ml()?i.yh(i.Fh(),bG(uin(u1(this.b),this.Lj()).Hk(),29).kk())==vMn(bG(uin(u1(this.b),this.Lj()),19)).n:-1-i.Fh()==this.Lj());if(this.nl()&&!s&&!r&&!!i.Jh()){for(a=0;a1||i==-1)}else{return false}};lce.ml=function n(){var e,t,r;t=uin(u1(this.b),this.Lj());if(G$(t,102)){e=bG(t,19);r=vMn(e);return!!r}else{return false}};lce.nl=function n(){var e,t;t=uin(u1(this.b),this.Lj());if(G$(t,102)){e=bG(t,19);return(e.Bb&S0n)!=0}else{return false}};lce.dd=function n(e){var t,r,i,a;i=this.zj(e);if(i>=0)return i;if(this.ol()){for(r=0,a=this.Ej();r=0;--e){Szn(this,e,this.xj(e))}}return this.Fj()};lce.Qc=function n(e){var t;if(this.nl()){for(t=this.Ej()-1;t>=0;--t){Szn(this,t,this.xj(t))}}return this.Gj(e)};lce.Gk=function n(){qVn(this)};lce.Zi=function n(e,t){return xen(this,e,t)};var Zit=YW(iie,"DelegatingEcoreEList",756);wDn(1171,756,Sie,hF);lce.qj=function n(e,t){YR(this,e,bG(t,29))};lce.rj=function n(e){XN(this,bG(e,29))};lce.xj=function n(e){var t,r;return t=bG(Yin(Y5(this.a),e),89),r=t.c,G$(r,90)?bG(r,29):(rZn(),nit)};lce.Cj=function n(e){var t,r;return t=bG(u_n(Y5(this.a),e),89),r=t.c,G$(r,90)?bG(r,29):(rZn(),nit)};lce.Dj=function n(e,t){return rTn(this,e,bG(t,29))};lce.Li=function n(){return false};lce.Ij=function n(e,t,r,i,a){return null};lce.sj=function n(){return new Hp(this)};lce.tj=function n(){NVn(Y5(this.a))};lce.uj=function n(e){return Pdn(this,e)};lce.vj=function n(e){var t,r;for(r=e.Kc();r.Ob();){t=r.Pb();if(!Pdn(this,t)){return false}}return true};lce.wj=function n(e){var t,r,i;if(G$(e,15)){i=bG(e,15);if(i.gc()==Y5(this.a).i){for(t=i.Kc(),r=new _D(this);t.Ob();){if(BA(t.Pb())!==BA(iyn(r))){return false}}return true}}return false};lce.yj=function n(){var e,t,r,i,a;r=1;for(t=new _D(Y5(this.a));t.e!=t.i.gc();){e=bG(iyn(t),89);i=(a=e.c,G$(a,90)?bG(a,29):(rZn(),nit));r=31*r+(!i?0:Bx(i))}return r};lce.zj=function n(e){var t,r,i,a;i=0;for(r=new _D(Y5(this.a));r.e!=r.i.gc();){t=bG(iyn(r),89);if(BA(e)===BA((a=t.c,G$(a,90)?bG(a,29):(rZn(),nit)))){return i}++i}return-1};lce.Aj=function n(){return Y5(this.a).i==0};lce.Bj=function n(){return null};lce.Ej=function n(){return Y5(this.a).i};lce.Fj=function n(){var e,t,r,i,a,c;c=Y5(this.a).i;a=$nn(kce,jZn,1,c,5,1);r=0;for(t=new _D(Y5(this.a));t.e!=t.i.gc();){e=bG(iyn(t),89);a[r++]=(i=e.c,G$(i,90)?bG(i,29):(rZn(),nit))}return a};lce.Gj=function n(e){var t,r,i,a,c,u,s;s=Y5(this.a).i;if(e.lengths&&bQ(e,s,null);i=0;for(r=new _D(Y5(this.a));r.e!=r.i.gc();){t=bG(iyn(r),89);c=(u=t.c,G$(u,90)?bG(u,29):(rZn(),nit));bQ(e,i++,c)}return e};lce.Hj=function n(){var e,t,r,i,a;a=new YM;a.a+="[";e=Y5(this.a);for(t=0,i=Y5(this.a).i;t>16,a>=0?ZTn(this,r):this.Cb.Th(this,-1-a,null,r)));return FUn(this,e,6,r);case 9:return!this.a&&(this.a=new gz(Prt,this,9,5)),Kpn(this.a,e,r)}return c=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),Vrt):i),t),69),c.wk().zk(this,Fmn(this),t-sQ((rZn(),Vrt)),e,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r);case 6:return FUn(this,null,6,r);case 7:return!this.A&&(this.A=new LD(xrt,this,7)),Kyn(this.A,e,r);case 9:return!this.a&&(this.a=new gz(Prt,this,9,5)),Kyn(this.a,e,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),Vrt):i),t),69),a.wk().Ak(this,Fmn(this),t-sQ((rZn(),Vrt)),e,r)};lce.Wh=function n(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!qTn(this);case 4:return!!kbn(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!_0(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return v5(this,e-sQ((rZn(),Vrt)),uin((t=bG(Ron(this,16),29),!t?Vrt:t),e))};lce.bi=function n(e,t){var r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:k2(this,TK(t));return;case 2:MN(this,TK(t));return;case 5:CWn(this,TK(t));return;case 7:!this.A&&(this.A=new LD(xrt,this,7));NVn(this.A);!this.A&&(this.A=new LD(xrt,this,7));NW(this.A,bG(t,16));return;case 8:Mdn(this,lM(yK(t)));return;case 9:!this.a&&(this.a=new gz(Prt,this,9,5));NVn(this.a);!this.a&&(this.a=new gz(Prt,this,9,5));NW(this.a,bG(t,16));return}vvn(this,e-sQ((rZn(),Vrt)),uin((r=bG(Ron(this,16),29),!r?Vrt:r),e),t)};lce.ii=function n(){return rZn(),Vrt};lce.ki=function n(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:G$(this.Cb,184)&&(bG(this.Cb,184).tb=null);Qun(this,null);return;case 2:wbn(this,null);Dan(this,this.D);return;case 5:CWn(this,null);return;case 7:!this.A&&(this.A=new LD(xrt,this,7));NVn(this.A);return;case 8:Mdn(this,true);return;case 9:!this.a&&(this.a=new gz(Prt,this,9,5));NVn(this.a);return}wdn(this,e-sQ((rZn(),Vrt)),uin((t=bG(Ron(this,16),29),!t?Vrt:t),e))};lce.pi=function n(){var e,t;if(this.a){for(e=0,t=this.a.i;e>16==5?bG(this.Cb,685):null}return Fen(this,e-sQ((rZn(),zrt)),uin((i=bG(Ron(this,16),29),!i?zrt:i),e),t,r)};lce.Sh=function n(e,t,r){var i,a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kpn(this.Ab,e,r);case 5:!!this.Cb&&(r=(a=this.Db>>16,a>=0?eEn(this,r):this.Cb.Th(this,-1-a,null,r)));return FUn(this,e,5,r)}return c=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),zrt):i),t),69),c.wk().zk(this,Fmn(this),t-sQ((rZn(),zrt)),e,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r);case 5:return FUn(this,null,5,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),zrt):i),t),69),a.wk().Ak(this,Fmn(this),t-sQ((rZn(),zrt)),e,r)};lce.Wh=function n(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5?bG(this.Cb,685):null)}return v5(this,e-sQ((rZn(),zrt)),uin((t=bG(Ron(this,16),29),!t?zrt:t),e))};lce.bi=function n(e,t){var r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:Qun(this,TK(t));return;case 2:$an(this,bG(t,17).a);return;case 3:d$n(this,bG(t,2039));return;case 4:zcn(this,TK(t));return}vvn(this,e-sQ((rZn(),zrt)),uin((r=bG(Ron(this,16),29),!r?zrt:r),e),t)};lce.ii=function n(){return rZn(),zrt};lce.ki=function n(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:Qun(this,null);return;case 2:$an(this,0);return;case 3:d$n(this,null);return;case 4:zcn(this,null);return}wdn(this,e-sQ((rZn(),zrt)),uin((t=bG(Ron(this,16),29),!t?zrt:t),e))};lce.Ib=function n(){var e;return e=this.c,e==null?this.zb:e};lce.b=null;lce.c=null;lce.d=0;var cat=YW(Jee,"EEnumLiteralImpl",582);var uat=$q(Jee,"EFactoryImpl/InternalEDateTimeFormat");wDn(499,1,{2114:1},Up);var sat=YW(Jee,"EFactoryImpl/1ClientInternalEDateTimeFormat",499);wDn(248,120,{110:1,94:1,93:1,89:1,58:1,114:1,54:1,99:1,248:1,119:1,120:1},um);lce.Ch=function n(e,t,r){var i;r=FUn(this,e,t,r);if(!!this.e&&G$(e,179)){i=pRn(this,this.e);i!=this.c&&(r=LWn(this,i,r))}return r};lce.Lh=function n(e,t,r){var i;switch(e){case 0:return this.f;case 1:return!this.d&&(this.d=new PD(Crt,this,1)),this.d;case 2:if(t)return PGn(this);return this.c;case 3:return this.b;case 4:return this.e;case 5:if(t)return LMn(this);return this.a}return Fen(this,e-sQ((rZn(),Qrt)),uin((i=bG(Ron(this,16),29),!i?Qrt:i),e),t,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return jwn(this,null,r);case 1:return!this.d&&(this.d=new PD(Crt,this,1)),Kyn(this.d,e,r);case 3:return Ewn(this,null,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),Qrt):i),t),69),a.wk().Ak(this,Fmn(this),t-sQ((rZn(),Qrt)),e,r)};lce.Wh=function n(e){var t;switch(e){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return v5(this,e-sQ((rZn(),Qrt)),uin((t=bG(Ron(this,16),29),!t?Qrt:t),e))};lce.bi=function n(e,t){var r;switch(e){case 0:fPn(this,bG(t,89));return;case 1:!this.d&&(this.d=new PD(Crt,this,1));NVn(this.d);!this.d&&(this.d=new PD(Crt,this,1));NW(this.d,bG(t,16));return;case 3:oPn(this,bG(t,89));return;case 4:PIn(this,bG(t,850));return;case 5:zin(this,bG(t,142));return}vvn(this,e-sQ((rZn(),Qrt)),uin((r=bG(Ron(this,16),29),!r?Qrt:r),e),t)};lce.ii=function n(){return rZn(),Qrt};lce.ki=function n(e){var t;switch(e){case 0:fPn(this,null);return;case 1:!this.d&&(this.d=new PD(Crt,this,1));NVn(this.d);return;case 3:oPn(this,null);return;case 4:PIn(this,null);return;case 5:zin(this,null);return}wdn(this,e-sQ((rZn(),Qrt)),uin((t=bG(Ron(this,16),29),!t?Qrt:t),e))};lce.Ib=function n(){var e;e=new vx(jxn(this));e.a+=" (expression: ";QXn(this,e);e.a+=")";return e.a};var oat;var fat=YW(Jee,"EGenericTypeImpl",248);wDn(2067,2062,Pie);lce.Gi=function n(e,t){rF(this,e,t)};lce.Wk=function n(e,t){rF(this,this.gc(),e);return t};lce.$i=function n(e){return dyn(this.pj(),e)};lce.Ii=function n(){return this.Ji()};lce.pj=function n(){return new Yp(this)};lce.Ji=function n(){return this.Ki(0)};lce.Ki=function n(e){return this.pj().fd(e)};lce.Xk=function n(e,t){npn(this,e,true);return t};lce.Ti=function n(e,t){var r,i;i=Ujn(this,t);r=this.fd(e);r.Rb(i);return i};lce.Ui=function n(e,t){var r;npn(this,t,true);r=this.fd(e);r.Rb(t)};var hat=YW(iie,"AbstractSequentialInternalEList",2067);wDn(496,2067,Pie,Yx);lce.$i=function n(e){return dyn(this.pj(),e)};lce.Ii=function n(){if(this.b==null){return OP(),OP(),dat}return this.sl()};lce.pj=function n(){return new EL(this.a,this.b)};lce.Ji=function n(){if(this.b==null){return OP(),OP(),dat}return this.sl()};lce.Ki=function n(e){var t,r;if(this.b==null){if(e<0||e>1){throw dm(new kM(_re+e+", size=0"))}return OP(),OP(),dat}r=this.sl();for(t=0;t0){t=this.c[--this.d];if((!this.e||t.pk()!=R7e||t.Lj()!=0)&&(!this.vl()||this.b.Xh(t))){c=this.b.Nh(t,this.ul());this.f=(LP(),bG(t,69).xk());if(this.f||t.Jk()){if(this.ul()){i=bG(c,15);this.k=i}else{i=bG(c,71);this.k=this.j=i}if(G$(this.k,59)){this.o=this.k.gc();this.n=this.o}else{this.p=!this.j?this.k.fd(this.k.gc()):this.j.Ki(this.k.gc())}if(!this.p?dLn(this):kAn(this,this.p)){a=!this.p?!this.j?this.k.Xb(--this.n):this.j.$i(--this.n):this.p.Ub();if(this.f){e=bG(a,76);e.Lk();r=e.md();this.i=r}else{r=a;this.i=r}this.g=-3;return true}}else if(c!=null){this.k=null;this.p=null;r=c;this.i=r;this.g=-2;return true}}}this.k=null;this.p=null;this.g=-1;return false}else{a=!this.p?!this.j?this.k.Xb(--this.n):this.j.$i(--this.n):this.p.Ub();if(this.f){e=bG(a,76);e.Lk();r=e.md();this.i=r}else{r=a;this.i=r}this.g=-3;return true}}}};lce.Pb=function n(){return Uon(this)};lce.Tb=function n(){return this.a};lce.Ub=function n(){var e;if(this.g<-1||this.Sb()){--this.a;this.g=0;e=this.i;this.Sb();return e}else{throw dm(new Xm)}};lce.Vb=function n(){return this.a-1};lce.Qb=function n(){throw dm(new Um)};lce.ul=function n(){return false};lce.Wb=function n(e){throw dm(new Um)};lce.vl=function n(){return true};lce.a=0;lce.d=0;lce.f=false;lce.g=0;lce.n=0;lce.o=0;var dat;var gat=YW(iie,"EContentsEList/FeatureIteratorImpl",287);wDn(711,287,Cie,nK);lce.ul=function n(){return true};var vat=YW(iie,"EContentsEList/ResolvingFeatureIteratorImpl",711);wDn(1178,711,Cie,eK);lce.vl=function n(){return false};var pat=YW(Jee,"ENamedElementImpl/1/1",1178);wDn(1179,287,Cie,tK);lce.vl=function n(){return false};var mat=YW(Jee,"ENamedElementImpl/1/2",1179);wDn(39,152,Fre,c8,u8,vz,pen,Utn,I9,Xan,l4,Van,b4,O9,w4,Qan,d4,A9,g4,zan,v4,pz,men,EZ,Wan,p4,L9,m4);lce.Kj=function n(){return aen(this)};lce.Rj=function n(){var e;e=aen(this);if(e){return e.ik()}return null};lce.hj=function n(e){this.b==-1&&!!this.a&&(this.b=this.c.Hh(this.a.Lj(),this.a.pk()));return this.c.yh(this.b,e)};lce.jj=function n(){return this.c};lce.Sj=function n(){var e;e=aen(this);if(e){return e.tk()}return false};lce.b=-1;var kat=YW(Jee,"ENotificationImpl",39);wDn(411,292,{110:1,94:1,93:1,155:1,197:1,58:1,62:1,114:1,481:1,54:1,99:1,158:1,411:1,292:1,119:1,120:1},ry);lce.Ah=function n(e){return gEn(this,e)};lce.Lh=function n(e,t,r){var i,a,c;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Qx(),(this.Bb&256)!=0?true:false;case 3:return Qx(),(this.Bb&512)!=0?true:false;case 4:return Bwn(this.s);case 5:return Bwn(this.t);case 6:return Qx(),c=this.t,c>1||c==-1?true:false;case 7:return Qx(),a=this.s,a>=1?true:false;case 8:if(t)return pEn(this);return this.r;case 9:return this.q;case 10:return this.Db>>16==10?bG(this.Cb,29):null;case 11:return!this.d&&(this.d=new LD(xrt,this,11)),this.d;case 12:return!this.c&&(this.c=new gz(Art,this,12,10)),this.c;case 13:return!this.a&&(this.a=new lF(this,this)),this.a;case 14:return xtn(this)}return Fen(this,e-sQ((rZn(),eit)),uin((i=bG(Ron(this,16),29),!i?eit:i),e),t,r)};lce.Sh=function n(e,t,r){var i,a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kpn(this.Ab,e,r);case 10:!!this.Cb&&(r=(a=this.Db>>16,a>=0?gEn(this,r):this.Cb.Th(this,-1-a,null,r)));return FUn(this,e,10,r);case 12:return!this.c&&(this.c=new gz(Art,this,12,10)),Kpn(this.c,e,r)}return c=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),eit):i),t),69),c.wk().zk(this,Fmn(this),t-sQ((rZn(),eit)),e,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r);case 9:return $W(this,r);case 10:return FUn(this,null,10,r);case 11:return!this.d&&(this.d=new LD(xrt,this,11)),Kyn(this.d,e,r);case 12:return!this.c&&(this.c=new gz(Art,this,12,10)),Kyn(this.c,e,r);case 14:return Kyn(xtn(this),e,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),eit):i),t),69),a.wk().Ak(this,Fmn(this),t-sQ((rZn(),eit)),e,r)};lce.Wh=function n(e){var t,r,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return i=this.t,i>1||i==-1;case 7:return r=this.s,r>=1;case 8:return!!this.r&&!this.q.e&&SQ(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&SQ(this.q).i==0);case 10:return!!(this.Db>>16==10?bG(this.Cb,29):null);case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&xtn(this.a.a).i!=0&&!(!!this.b&&PMn(this.b));case 14:return!!this.b&&PMn(this.b)}return v5(this,e-sQ((rZn(),eit)),uin((t=bG(Ron(this,16),29),!t?eit:t),e))};lce.bi=function n(e,t){var r,i;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:Qun(this,TK(t));return;case 2:kdn(this,lM(yK(t)));return;case 3:Tdn(this,lM(yK(t)));return;case 4:Lan(this,bG(t,17).a);return;case 5:Nan(this,bG(t,17).a);return;case 8:Ubn(this,bG(t,142));return;case 9:i=NCn(this,bG(t,89),null);!!i&&i.oj();return;case 11:!this.d&&(this.d=new LD(xrt,this,11));NVn(this.d);!this.d&&(this.d=new LD(xrt,this,11));NW(this.d,bG(t,16));return;case 12:!this.c&&(this.c=new gz(Art,this,12,10));NVn(this.c);!this.c&&(this.c=new gz(Art,this,12,10));NW(this.c,bG(t,16));return;case 13:!this.a&&(this.a=new lF(this,this));qVn(this.a);!this.a&&(this.a=new lF(this,this));NW(this.a,bG(t,16));return;case 14:NVn(xtn(this));NW(xtn(this),bG(t,16));return}vvn(this,e-sQ((rZn(),eit)),uin((r=bG(Ron(this,16),29),!r?eit:r),e),t)};lce.ii=function n(){return rZn(),eit};lce.ki=function n(e){var t,r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:Qun(this,null);return;case 2:kdn(this,true);return;case 3:Tdn(this,true);return;case 4:Lan(this,0);return;case 5:Nan(this,1);return;case 8:Ubn(this,null);return;case 9:r=NCn(this,null,null);!!r&&r.oj();return;case 11:!this.d&&(this.d=new LD(xrt,this,11));NVn(this.d);return;case 12:!this.c&&(this.c=new gz(Art,this,12,10));NVn(this.c);return;case 13:!!this.a&&qVn(this.a);return;case 14:!!this.b&&NVn(this.b);return}wdn(this,e-sQ((rZn(),eit)),uin((t=bG(Ron(this,16),29),!t?eit:t),e))};lce.pi=function n(){var e,t;if(this.c){for(e=0,t=this.c.i;es&&bQ(e,s,null);i=0;for(r=new _D(xtn(this.a));r.e!=r.i.gc();){t=bG(iyn(r),89);c=(u=t.c,u?u:(rZn(),Jrt));bQ(e,i++,c)}return e};lce.Hj=function n(){var e,t,r,i,a;a=new YM;a.a+="[";e=xtn(this.a);for(t=0,i=xtn(this.a).i;t1)}case 5:{return s2(this,e,t,r,i,this.i-bG(r,15).gc()>0)}default:{return new Utn(this.e,e,this.c,t,r,i,true)}}};lce.Tj=function n(){return true};lce.Qj=function n(){return PMn(this)};lce.Gk=function n(){NVn(this)};var jat=YW(Jee,"EOperationImpl/2",1377);wDn(507,1,{2037:1,507:1},OA);var Eat=YW(Jee,"EPackageImpl/1",507);wDn(14,83,yie,gz);lce.il=function n(){return this.d};lce.jl=function n(){return this.b};lce.ml=function n(){return true};lce.b=0;var Sat=YW(iie,"EObjectContainmentWithInverseEList",14);wDn(365,14,yie,s_);lce.nl=function n(){return true};lce.Wi=function n(e,t){return H$n(this,e,bG(t,58))};var Pat=YW(iie,"EObjectContainmentWithInverseEList/Resolving",365);wDn(308,365,yie,jz);lce.Ni=function n(){this.a.tb=null};var Cat=YW(Jee,"EPackageImpl/2",308);wDn(1278,1,{},Lo);var Iat=YW(Jee,"EPackageImpl/3",1278);wDn(733,45,_0n,iy);lce._b=function n(e){return HA(e)?xZ(this,e):!!GX(this.f,e)};var Oat=YW(Jee,"EPackageRegistryImpl",733);wDn(518,292,{110:1,94:1,93:1,155:1,197:1,58:1,2116:1,114:1,481:1,54:1,99:1,158:1,518:1,292:1,119:1,120:1},ay);lce.Ah=function n(e){return vEn(this,e)};lce.Lh=function n(e,t,r){var i,a,c;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Qx(),(this.Bb&256)!=0?true:false;case 3:return Qx(),(this.Bb&512)!=0?true:false;case 4:return Bwn(this.s);case 5:return Bwn(this.t);case 6:return Qx(),c=this.t,c>1||c==-1?true:false;case 7:return Qx(),a=this.s,a>=1?true:false;case 8:if(t)return pEn(this);return this.r;case 9:return this.q;case 10:return this.Db>>16==10?bG(this.Cb,62):null}return Fen(this,e-sQ((rZn(),iit)),uin((i=bG(Ron(this,16),29),!i?iit:i),e),t,r)};lce.Sh=function n(e,t,r){var i,a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kpn(this.Ab,e,r);case 10:!!this.Cb&&(r=(a=this.Db>>16,a>=0?vEn(this,r):this.Cb.Th(this,-1-a,null,r)));return FUn(this,e,10,r)}return c=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),iit):i),t),69),c.wk().zk(this,Fmn(this),t-sQ((rZn(),iit)),e,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r);case 9:return $W(this,r);case 10:return FUn(this,null,10,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),iit):i),t),69),a.wk().Ak(this,Fmn(this),t-sQ((rZn(),iit)),e,r)};lce.Wh=function n(e){var t,r,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return i=this.t,i>1||i==-1;case 7:return r=this.s,r>=1;case 8:return!!this.r&&!this.q.e&&SQ(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&SQ(this.q).i==0);case 10:return!!(this.Db>>16==10?bG(this.Cb,62):null)}return v5(this,e-sQ((rZn(),iit)),uin((t=bG(Ron(this,16),29),!t?iit:t),e))};lce.ii=function n(){return rZn(),iit};var Aat=YW(Jee,"EParameterImpl",518);wDn(102,462,{110:1,94:1,93:1,155:1,197:1,58:1,19:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,102:1,462:1,292:1,119:1,120:1,692:1},LK);lce.Lh=function n(e,t,r){var i,a,c,u;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Qx(),(this.Bb&256)!=0?true:false;case 3:return Qx(),(this.Bb&512)!=0?true:false;case 4:return Bwn(this.s);case 5:return Bwn(this.t);case 6:return Qx(),u=this.t,u>1||u==-1?true:false;case 7:return Qx(),a=this.s,a>=1?true:false;case 8:if(t)return pEn(this);return this.r;case 9:return this.q;case 10:return Qx(),(this.Bb&b1n)!=0?true:false;case 11:return Qx(),(this.Bb&oie)!=0?true:false;case 12:return Qx(),(this.Bb&T0n)!=0?true:false;case 13:return this.j;case 14:return KRn(this);case 15:return Qx(),(this.Bb&sie)!=0?true:false;case 16:return Qx(),(this.Bb&VZn)!=0?true:false;case 17:return U0(this);case 18:return Qx(),(this.Bb&Wee)!=0?true:false;case 19:return Qx(),c=vMn(this),!!c&&(c.Bb&Wee)!=0?true:false;case 20:return Qx(),(this.Bb&S0n)!=0?true:false;case 21:if(t)return vMn(this);return this.b;case 22:if(t)return Ghn(this);return H9(this);case 23:return!this.a&&(this.a=new DD(krt,this,23)),this.a}return Fen(this,e-sQ((rZn(),ait)),uin((i=bG(Ron(this,16),29),!i?ait:i),e),t,r)};lce.Wh=function n(e){var t,r,i,a;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return a=this.t,a>1||a==-1;case 7:return r=this.s,r>=1;case 8:return!!this.r&&!this.q.e&&SQ(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&SQ(this.q).i==0);case 10:return(this.Bb&b1n)==0;case 11:return(this.Bb&oie)!=0;case 12:return(this.Bb&T0n)!=0;case 13:return this.j!=null;case 14:return KRn(this)!=null;case 15:return(this.Bb&sie)!=0;case 16:return(this.Bb&VZn)!=0;case 17:return!!U0(this);case 18:return(this.Bb&Wee)!=0;case 19:return i=vMn(this),!!i&&(i.Bb&Wee)!=0;case 20:return(this.Bb&S0n)==0;case 21:return!!this.b;case 22:return!!H9(this);case 23:return!!this.a&&this.a.i!=0}return v5(this,e-sQ((rZn(),ait)),uin((t=bG(Ron(this,16),29),!t?ait:t),e))};lce.bi=function n(e,t){var r,i;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:y2(this,TK(t));return;case 2:kdn(this,lM(yK(t)));return;case 3:Tdn(this,lM(yK(t)));return;case 4:Lan(this,bG(t,17).a);return;case 5:Nan(this,bG(t,17).a);return;case 8:Ubn(this,bG(t,142));return;case 9:i=NCn(this,bG(t,89),null);!!i&&i.oj();return;case 10:ngn(this,lM(yK(t)));return;case 11:rgn(this,lM(yK(t)));return;case 12:egn(this,lM(yK(t)));return;case 13:TA(this,TK(t));return;case 15:tgn(this,lM(yK(t)));return;case 16:Ngn(this,lM(yK(t)));return;case 18:M2(this,lM(yK(t)));return;case 20:$gn(this,lM(yK(t)));return;case 21:pun(this,bG(t,19));return;case 23:!this.a&&(this.a=new DD(krt,this,23));NVn(this.a);!this.a&&(this.a=new DD(krt,this,23));NW(this.a,bG(t,16));return}vvn(this,e-sQ((rZn(),ait)),uin((r=bG(Ron(this,16),29),!r?ait:r),e),t)};lce.ii=function n(){return rZn(),ait};lce.ki=function n(e){var t,r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:G$(this.Cb,90)&&SLn(S9(bG(this.Cb,90)),4);Qun(this,null);return;case 2:kdn(this,true);return;case 3:Tdn(this,true);return;case 4:Lan(this,0);return;case 5:Nan(this,1);return;case 8:Ubn(this,null);return;case 9:r=NCn(this,null,null);!!r&&r.oj();return;case 10:ngn(this,true);return;case 11:rgn(this,false);return;case 12:egn(this,false);return;case 13:this.i=null;vun(this,null);return;case 15:tgn(this,false);return;case 16:Ngn(this,false);return;case 18:Lgn(this,false);G$(this.Cb,90)&&SLn(S9(bG(this.Cb,90)),2);return;case 20:$gn(this,true);return;case 21:pun(this,null);return;case 23:!this.a&&(this.a=new DD(krt,this,23));NVn(this.a);return}wdn(this,e-sQ((rZn(),ait)),uin((t=bG(Ron(this,16),29),!t?ait:t),e))};lce.pi=function n(){Ghn(this);XJ(Ktn((yAn(),Vut),this));pEn(this);this.Bb|=1};lce.uk=function n(){return vMn(this)};lce._k=function n(){var e;return e=vMn(this),!!e&&(e.Bb&Wee)!=0};lce.al=function n(){return(this.Bb&Wee)!=0};lce.bl=function n(){return(this.Bb&S0n)!=0};lce.Yk=function n(e,t){this.c=null;return rdn(this,e,t)};lce.Ib=function n(){var e;if((this.Db&64)!=0)return PBn(this);e=new gx(PBn(this));e.a+=" (containment: ";Rj(e,(this.Bb&Wee)!=0);e.a+=", resolveProxies: ";Rj(e,(this.Bb&S0n)!=0);e.a+=")";return e.a};var Lat=YW(Jee,"EReferenceImpl",102);wDn(561,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,561:1,119:1,120:1},No);lce.Fb=function n(e){return this===e};lce.ld=function n(){return this.b};lce.md=function n(){return this.c};lce.Hb=function n(){return Bx(this)};lce.Di=function n(e){Hq(this,TK(e))};lce.nd=function n(e){return _G(this,TK(e))};lce.Lh=function n(e,t,r){var i;switch(e){case 0:return this.b;case 1:return this.c}return Fen(this,e-sQ((rZn(),cit)),uin((i=bG(Ron(this,16),29),!i?cit:i),e),t,r)};lce.Wh=function n(e){var t;switch(e){case 0:return this.b!=null;case 1:return this.c!=null}return v5(this,e-sQ((rZn(),cit)),uin((t=bG(Ron(this,16),29),!t?cit:t),e))};lce.bi=function n(e,t){var r;switch(e){case 0:Uq(this,TK(t));return;case 1:tun(this,TK(t));return}vvn(this,e-sQ((rZn(),cit)),uin((r=bG(Ron(this,16),29),!r?cit:r),e),t)};lce.ii=function n(){return rZn(),cit};lce.ki=function n(e){var t;switch(e){case 0:eun(this,null);return;case 1:tun(this,null);return}wdn(this,e-sQ((rZn(),cit)),uin((t=bG(Ron(this,16),29),!t?cit:t),e))};lce.Bi=function n(){var e;if(this.a==-1){e=this.b;this.a=e==null?0:Mln(e)}return this.a};lce.Ci=function n(e){this.a=e};lce.Ib=function n(){var e;if((this.Db&64)!=0)return jxn(this);e=new gx(jxn(this));e.a+=" (key: ";ZA(e,this.b);e.a+=", value: ";ZA(e,this.c);e.a+=")";return e.a};lce.a=-1;lce.b=null;lce.c=null;var Nat=YW(Jee,"EStringToStringMapEntryImpl",561);var $at=$q(iie,"FeatureMap/Entry/Internal");wDn(576,1,Iie);lce.xl=function n(e){return this.yl(bG(e,54))};lce.yl=function n(e){return this.xl(e)};lce.Fb=function n(e){var t,r;if(this===e){return true}else if(G$(e,76)){t=bG(e,76);if(t.Lk()==this.c){r=this.md();return r==null?t.md()==null:bdn(r,t.md())}else{return false}}else{return false}};lce.Lk=function n(){return this.c};lce.Hb=function n(){var e;e=this.md();return Vun(this.c)^(e==null?0:Vun(e))};lce.Ib=function n(){var e,t;e=this.c;t=Vin(e.qk()).yi();e.xe();return(t!=null&&t.length!=0?t+":"+e.xe():e.xe())+"="+this.md()};var Dat=YW(Jee,"EStructuralFeatureImpl/BasicFeatureMapEntry",576);wDn(791,576,Iie,wF);lce.yl=function n(e){return new wF(this.c,e)};lce.md=function n(){return this.a};lce.zl=function n(e,t,r){return Usn(this,e,this.a,t,r)};lce.Al=function n(e,t,r){return Gsn(this,e,this.a,t,r)};var xat=YW(Jee,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",791);wDn(1350,1,{},AA);lce.yk=function n(e,t,r,i,a){var c;c=bG(jen(e,this.b),220);return c.Yl(this.a).Fk(i)};lce.zk=function n(e,t,r,i,a){var c;c=bG(jen(e,this.b),220);return c.Pl(this.a,i,a)};lce.Ak=function n(e,t,r,i,a){var c;c=bG(jen(e,this.b),220);return c.Ql(this.a,i,a)};lce.Bk=function n(e,t,r){var i;i=bG(jen(e,this.b),220);return i.Yl(this.a).Qj()};lce.Ck=function n(e,t,r,i){var a;a=bG(jen(e,this.b),220);a.Yl(this.a).Wb(i)};lce.Dk=function n(e,t,r){return bG(jen(e,this.b),220).Yl(this.a)};lce.Ek=function n(e,t,r){var i;i=bG(jen(e,this.b),220);i.Yl(this.a).Gk()};var Rat=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1350);wDn(91,1,{},HU,NY,WZ,o8);lce.yk=function n(e,t,r,i,a){var c;c=t.li(r);c==null&&t.mi(r,c=BYn(this,e));if(!a){switch(this.e){case 50:case 41:return bG(c,597).bk();case 40:return bG(c,220).Vl()}}return c};lce.zk=function n(e,t,r,i,a){var c,u;u=t.li(r);u==null&&t.mi(r,u=BYn(this,e));c=bG(u,71).Wk(i,a);return c};lce.Ak=function n(e,t,r,i,a){var c;c=t.li(r);c!=null&&(a=bG(c,71).Xk(i,a));return a};lce.Bk=function n(e,t,r){var i;i=t.li(r);return i!=null&&bG(i,79).Qj()};lce.Ck=function n(e,t,r,i){var a;a=bG(t.li(r),79);!a&&t.mi(r,a=BYn(this,e));a.Wb(i)};lce.Dk=function n(e,t,r){var i,a;a=t.li(r);a==null&&t.mi(r,a=BYn(this,e));if(G$(a,79)){return bG(a,79)}else{i=bG(t.li(r),15);return new qp(i)}};lce.Ek=function n(e,t,r){var i;i=bG(t.li(r),79);!i&&t.mi(r,i=BYn(this,e));i.Gk()};lce.b=0;lce.e=0;var Kat=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateMany",91);wDn(512,1,{});lce.zk=function n(e,t,r,i,a){throw dm(new Um)};lce.Ak=function n(e,t,r,i,a){throw dm(new Um)};lce.Dk=function n(e,t,r){return new $Y(this,e,t,r)};var Fat;var _at=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingle",512);wDn(1367,1,aie,$Y);lce.Fk=function n(e){return this.a.yk(this.c,this.d,this.b,e,true)};lce.Qj=function n(){return this.a.Bk(this.c,this.d,this.b)};lce.Wb=function n(e){this.a.Ck(this.c,this.d,this.b,e)};lce.Gk=function n(){this.a.Ek(this.c,this.d,this.b)};lce.b=0;var Bat=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1367);wDn(784,512,{},q1);lce.yk=function n(e,t,r,i,a){return LHn(e,e.Ph(),e.Fh())==this.b?this.bl()&&i?tDn(e):e.Ph():null};lce.zk=function n(e,t,r,i,a){var c,u;!!e.Ph()&&(a=(c=e.Fh(),c>=0?e.Ah(a):e.Ph().Th(e,-1-c,null,a)));u=upn(e.Dh(),this.e);return e.Ch(i,u,a)};lce.Ak=function n(e,t,r,i,a){var c;c=upn(e.Dh(),this.e);return e.Ch(null,c,a)};lce.Bk=function n(e,t,r){var i;i=upn(e.Dh(),this.e);return!!e.Ph()&&e.Fh()==i};lce.Ck=function n(e,t,r,i){var a,c,u,s,o;if(i!=null&&!RGn(this.a,i)){throw dm(new TM(Oie+(G$(i,58)?aPn(bG(i,58).Dh()):fin(Cbn(i)))+Aie+this.a+"'"))}a=e.Ph();u=upn(e.Dh(),this.e);if(BA(i)!==BA(a)||e.Fh()!=u&&i!=null){if(uEn(e,bG(i,58)))throw dm(new jM(Zee+e.Ib()));o=null;!!a&&(o=(c=e.Fh(),c>=0?e.Ah(o):e.Ph().Th(e,-1-c,null,o)));s=bG(i,54);!!s&&(o=s.Rh(e,upn(s.Dh(),this.b),null,o));o=e.Ch(s,u,o);!!o&&o.oj()}else{e.vh()&&e.wh()&&Pon(e,new vz(e,1,u,i,i))}};lce.Ek=function n(e,t,r){var i,a,c,u;i=e.Ph();if(i){u=(a=e.Fh(),a>=0?e.Ah(null):e.Ph().Th(e,-1-a,null,null));c=upn(e.Dh(),this.e);u=e.Ch(null,c,u);!!u&&u.oj()}else{e.vh()&&e.wh()&&Pon(e,new pz(e,1,this.e,null,null))}};lce.bl=function n(){return false};var Hat=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",784);wDn(1351,784,{},UU);lce.bl=function n(){return true};var Uat=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1351);wDn(574,512,{});lce.yk=function n(e,t,r,i,a){var c;return c=t.li(r),c==null?this.b:BA(c)===BA(Fat)?null:c};lce.Bk=function n(e,t,r){var i;i=t.li(r);return i!=null&&(BA(i)===BA(Fat)||!bdn(i,this.b))};lce.Ck=function n(e,t,r,i){var a,c;if(e.vh()&&e.wh()){a=(c=t.li(r),c==null?this.b:BA(c)===BA(Fat)?null:c);if(i==null){if(this.c!=null){t.mi(r,null);i=this.b}else this.b!=null?t.mi(r,Fat):t.mi(r,null)}else{this.Bl(i);t.mi(r,i)}Pon(e,this.d.Cl(e,1,this.e,a,i))}else{if(i==null){this.c!=null?t.mi(r,null):this.b!=null?t.mi(r,Fat):t.mi(r,null)}else{this.Bl(i);t.mi(r,i)}}};lce.Ek=function n(e,t,r){var i,a;if(e.vh()&&e.wh()){i=(a=t.li(r),a==null?this.b:BA(a)===BA(Fat)?null:a);t.ni(r);Pon(e,this.d.Cl(e,1,this.e,i,this.b))}else{t.ni(r)}};lce.Bl=function n(e){throw dm(new Fm)};var Gat=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",574);wDn(Lie,1,{},$o);lce.Cl=function n(e,t,r,i,a){return new pz(e,t,r,i,a)};lce.Dl=function n(e,t,r,i,a,c){return new EZ(e,t,r,i,a,c)};var qat,Xat,Vat,zat,Wat,Qat,Jat,Yat,Zat;var nct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",Lie);wDn(1368,Lie,{},Do);lce.Cl=function n(e,t,r,i,a){return new L9(e,t,r,lM(yK(i)),lM(yK(a)))};lce.Dl=function n(e,t,r,i,a,c){return new m4(e,t,r,lM(yK(i)),lM(yK(a)),c)};var ect=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1368);wDn(1369,Lie,{},xo);lce.Cl=function n(e,t,r,i,a){return new Xan(e,t,r,bG(i,222).a,bG(a,222).a)};lce.Dl=function n(e,t,r,i,a,c){return new l4(e,t,r,bG(i,222).a,bG(a,222).a,c)};var tct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1369);wDn(1370,Lie,{},Ro);lce.Cl=function n(e,t,r,i,a){return new Van(e,t,r,bG(i,180).a,bG(a,180).a)};lce.Dl=function n(e,t,r,i,a,c){return new b4(e,t,r,bG(i,180).a,bG(a,180).a,c)};var rct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1370);wDn(1371,Lie,{},Ko);lce.Cl=function n(e,t,r,i,a){return new O9(e,t,r,bM(MK(i)),bM(MK(a)))};lce.Dl=function n(e,t,r,i,a,c){return new w4(e,t,r,bM(MK(i)),bM(MK(a)),c)};var ict=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1371);wDn(1372,Lie,{},Fo);lce.Cl=function n(e,t,r,i,a){return new Qan(e,t,r,bG(i,161).a,bG(a,161).a)};lce.Dl=function n(e,t,r,i,a,c){return new d4(e,t,r,bG(i,161).a,bG(a,161).a,c)};var act=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1372);wDn(1373,Lie,{},_o);lce.Cl=function n(e,t,r,i,a){return new A9(e,t,r,bG(i,17).a,bG(a,17).a)};lce.Dl=function n(e,t,r,i,a,c){return new g4(e,t,r,bG(i,17).a,bG(a,17).a,c)};var cct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1373);wDn(1374,Lie,{},Bo);lce.Cl=function n(e,t,r,i,a){return new zan(e,t,r,bG(i,168).a,bG(a,168).a)};lce.Dl=function n(e,t,r,i,a,c){return new v4(e,t,r,bG(i,168).a,bG(a,168).a,c)};var uct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1374);wDn(1375,Lie,{},Ho);lce.Cl=function n(e,t,r,i,a){return new Wan(e,t,r,bG(i,191).a,bG(a,191).a)};lce.Dl=function n(e,t,r,i,a,c){return new p4(e,t,r,bG(i,191).a,bG(a,191).a,c)};var sct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1375);wDn(1353,574,{},DY);lce.Bl=function n(e){if(!this.a.fk(e)){throw dm(new TM(Oie+Cbn(e)+Aie+this.a+"'"))}};var oct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1353);wDn(1354,574,{},vV);lce.Bl=function n(e){};var fct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1354);wDn(785,574,{});lce.Bk=function n(e,t,r){var i;i=t.li(r);return i!=null};lce.Ck=function n(e,t,r,i){var a,c;if(e.vh()&&e.wh()){a=true;c=t.li(r);if(c==null){a=false;c=this.b}else BA(c)===BA(Fat)&&(c=null);if(i==null){if(this.c!=null){t.mi(r,null);i=this.b}else{t.mi(r,Fat)}}else{this.Bl(i);t.mi(r,i)}Pon(e,this.d.Dl(e,1,this.e,c,i,!a))}else{if(i==null){this.c!=null?t.mi(r,null):t.mi(r,Fat)}else{this.Bl(i);t.mi(r,i)}}};lce.Ek=function n(e,t,r){var i,a;if(e.vh()&&e.wh()){i=true;a=t.li(r);if(a==null){i=false;a=this.b}else BA(a)===BA(Fat)&&(a=null);t.ni(r);Pon(e,this.d.Dl(e,2,this.e,a,this.b,i))}else{t.ni(r)}};var hct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",785);wDn(1355,785,{},xY);lce.Bl=function n(e){if(!this.a.fk(e)){throw dm(new TM(Oie+Cbn(e)+Aie+this.a+"'"))}};var lct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1355);wDn(1356,785,{},pV);lce.Bl=function n(e){};var bct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1356);wDn(410,512,{},DX);lce.yk=function n(e,t,r,i,a){var c,u,s,o,f;f=t.li(r);if(this.tk()&&BA(f)===BA(Fat)){return null}else if(this.bl()&&i&&f!=null){s=bG(f,54);if(s.Vh()){o=Twn(e,s);if(s!=o){if(!RGn(this.a,o)){throw dm(new TM(Oie+Cbn(o)+Aie+this.a+"'"))}t.mi(r,f=o);if(this.al()){c=bG(o,54);u=s.Th(e,!this.b?-1-upn(e.Dh(),this.e):upn(s.Dh(),this.b),null,null);!c.Ph()&&(u=c.Rh(e,!this.b?-1-upn(e.Dh(),this.e):upn(c.Dh(),this.b),null,u));!!u&&u.oj()}e.vh()&&e.wh()&&Pon(e,new pz(e,9,this.e,s,o))}}return f}else{return f}};lce.zk=function n(e,t,r,i,a){var c,u;u=t.li(r);BA(u)===BA(Fat)&&(u=null);t.mi(r,i);if(this.Mj()){if(BA(u)!==BA(i)&&u!=null){c=bG(u,54);a=c.Th(e,upn(c.Dh(),this.b),null,a)}}else this.al()&&u!=null&&(a=bG(u,54).Th(e,-1-upn(e.Dh(),this.e),null,a));if(e.vh()&&e.wh()){!a&&(a=new fj(4));a.nj(new pz(e,1,this.e,u,i))}return a};lce.Ak=function n(e,t,r,i,a){var c;c=t.li(r);BA(c)===BA(Fat)&&(c=null);t.ni(r);if(e.vh()&&e.wh()){!a&&(a=new fj(4));this.tk()?a.nj(new pz(e,2,this.e,c,null)):a.nj(new pz(e,1,this.e,c,null))}return a};lce.Bk=function n(e,t,r){var i;i=t.li(r);return i!=null};lce.Ck=function n(e,t,r,i){var a,c,u,s,o;if(i!=null&&!RGn(this.a,i)){throw dm(new TM(Oie+(G$(i,58)?aPn(bG(i,58).Dh()):fin(Cbn(i)))+Aie+this.a+"'"))}o=t.li(r);s=o!=null;this.tk()&&BA(o)===BA(Fat)&&(o=null);u=null;if(this.Mj()){if(BA(o)!==BA(i)){if(o!=null){a=bG(o,54);u=a.Th(e,upn(a.Dh(),this.b),null,u)}if(i!=null){a=bG(i,54);u=a.Rh(e,upn(a.Dh(),this.b),null,u)}}}else if(this.al()){if(BA(o)!==BA(i)){o!=null&&(u=bG(o,54).Th(e,-1-upn(e.Dh(),this.e),null,u));i!=null&&(u=bG(i,54).Rh(e,-1-upn(e.Dh(),this.e),null,u))}}i==null&&this.tk()?t.mi(r,Fat):t.mi(r,i);if(e.vh()&&e.wh()){c=new EZ(e,1,this.e,o,i,this.tk()&&!s);if(!u){Pon(e,c)}else{u.nj(c);u.oj()}}else!!u&&u.oj()};lce.Ek=function n(e,t,r){var i,a,c,u,s;s=t.li(r);u=s!=null;this.tk()&&BA(s)===BA(Fat)&&(s=null);c=null;if(s!=null){if(this.Mj()){i=bG(s,54);c=i.Th(e,upn(i.Dh(),this.b),null,c)}else this.al()&&(c=bG(s,54).Th(e,-1-upn(e.Dh(),this.e),null,c))}t.ni(r);if(e.vh()&&e.wh()){a=new EZ(e,this.tk()?2:1,this.e,s,null,u);if(!c){Pon(e,a)}else{c.nj(a);c.oj()}}else!!c&&c.oj()};lce.Mj=function n(){return false};lce.al=function n(){return false};lce.bl=function n(){return false};lce.tk=function n(){return false};var wct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",410);wDn(575,410,{},cK);lce.al=function n(){return true};var dct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",575);wDn(1359,575,{},uK);lce.bl=function n(){return true};var gct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1359);wDn(787,575,{},sK);lce.tk=function n(){return true};var vct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",787);wDn(1361,787,{},fK);lce.bl=function n(){return true};var pct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1361);wDn(650,575,{},GU);lce.Mj=function n(){return true};var mct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",650);wDn(1360,650,{},VU);lce.bl=function n(){return true};var kct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1360);wDn(788,650,{},zU);lce.tk=function n(){return true};var yct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",788);wDn(1362,788,{},WU);lce.bl=function n(){return true};var Mct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1362);wDn(651,410,{},oK);lce.bl=function n(){return true};var Tct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",651);wDn(1363,651,{},hK);lce.tk=function n(){return true};var jct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1363);wDn(789,651,{},qU);lce.Mj=function n(){return true};var Ect=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",789);wDn(1364,789,{},QU);lce.tk=function n(){return true};var Sct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1364);wDn(1357,410,{},lK);lce.tk=function n(){return true};var Pct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1357);wDn(786,410,{},XU);lce.Mj=function n(){return true};var Cct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",786);wDn(1358,786,{},JU);lce.tk=function n(){return true};var Ict=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1358);wDn(790,576,Iie,OQ);lce.yl=function n(e){return new OQ(this.a,this.c,e)};lce.md=function n(){return this.b};lce.zl=function n(e,t,r){return Ann(this,e,this.b,r)};lce.Al=function n(e,t,r){return Lnn(this,e,this.b,r)};var Oct=YW(Jee,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",790);wDn(1365,1,aie,qp);lce.Fk=function n(e){return this.a};lce.Qj=function n(){return G$(this.a,97)?bG(this.a,97).Qj():!this.a.dc()};lce.Wb=function n(e){this.a.$b();this.a.Gc(bG(e,15))};lce.Gk=function n(){G$(this.a,97)?bG(this.a,97).Gk():this.a.$b()};var Act=YW(Jee,"EStructuralFeatureImpl/SettingMany",1365);wDn(1366,576,Iie,l8);lce.xl=function n(e){return new dF((bzn(),Lot),this.b.ri(this.a,e))};lce.md=function n(){return null};lce.zl=function n(e,t,r){return r};lce.Al=function n(e,t,r){return r};var Lct=YW(Jee,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1366);wDn(652,576,Iie,dF);lce.xl=function n(e){return new dF(this.c,e)};lce.md=function n(){return this.a};lce.zl=function n(e,t,r){return r};lce.Al=function n(e,t,r){return r};var Nct=YW(Jee,"EStructuralFeatureImpl/SimpleFeatureMapEntry",652);wDn(403,506,zte,Uo);lce.aj=function n(e){return $nn(Mrt,jZn,29,e,0,1)};lce.Yi=function n(){return false};var $ct=YW(Jee,"ESuperAdapter/1",403);wDn(457,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,850:1,54:1,99:1,158:1,457:1,119:1,120:1},Go);lce.Lh=function n(e,t,r){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new xX(this,Crt,this)),this.a}return Fen(this,e-sQ((rZn(),oit)),uin((i=bG(Ron(this,16),29),!i?oit:i),e),t,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r);case 2:return!this.a&&(this.a=new xX(this,Crt,this)),Kyn(this.a,e,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),oit):i),t),69),a.wk().Ak(this,Fmn(this),t-sQ((rZn(),oit)),e,r)};lce.Wh=function n(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return v5(this,e-sQ((rZn(),oit)),uin((t=bG(Ron(this,16),29),!t?oit:t),e))};lce.bi=function n(e,t){var r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:Qun(this,TK(t));return;case 2:!this.a&&(this.a=new xX(this,Crt,this));NVn(this.a);!this.a&&(this.a=new xX(this,Crt,this));NW(this.a,bG(t,16));return}vvn(this,e-sQ((rZn(),oit)),uin((r=bG(Ron(this,16),29),!r?oit:r),e),t)};lce.ii=function n(){return rZn(),oit};lce.ki=function n(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:Qun(this,null);return;case 2:!this.a&&(this.a=new xX(this,Crt,this));NVn(this.a);return}wdn(this,e-sQ((rZn(),oit)),uin((t=bG(Ron(this,16),29),!t?oit:t),e))};var Dct=YW(Jee,"ETypeParameterImpl",457);wDn(458,83,yie,xX);lce.Nj=function n(e,t){return TCn(this,bG(e,89),t)};lce.Oj=function n(e,t){return jCn(this,bG(e,89),t)};var xct=YW(Jee,"ETypeParameterImpl/1",458);wDn(647,45,_0n,cy);lce.ec=function n(){return new zp(this)};var Rct=YW(Jee,"ETypeParameterImpl/2",647);wDn(570,RZn,KZn,zp);lce.Fc=function n(e){return n_(this,bG(e,89))};lce.Gc=function n(e){var t,r,i;i=false;for(r=e.Kc();r.Ob();){t=bG(r.Pb(),89);jJ(this.a,t,"")==null&&(i=true)}return i};lce.$b=function n(){Fz(this.a)};lce.Hc=function n(e){return Lz(this.a,e)};lce.Kc=function n(){var e;return e=new pon(new Kw(this.a).a),new Wp(e)};lce.Mc=function n(e){return N7(this,e)};lce.gc=function n(){return lS(this.a)};var Kct=YW(Jee,"ETypeParameterImpl/2/1",570);wDn(571,1,NZn,Wp);lce.Nb=function n(e){Az(this,e)};lce.Pb=function n(){return bG(jun(this.a).ld(),89)};lce.Ob=function n(){return this.a.b};lce.Qb=function n(){Dtn(this.a)};var Fct=YW(Jee,"ETypeParameterImpl/2/1/1",571);wDn(1329,45,_0n,uy);lce._b=function n(e){return HA(e)?xZ(this,e):!!GX(this.f,e)};lce.xc=function n(e){var t,r;t=HA(e)?z1(this,e):_A(GX(this.f,e));if(G$(t,851)){r=bG(t,851);t=r.Kk();jJ(this,bG(e,241),t);return t}else return t!=null?t:e==null?(AP(),yst):null};var _ct=YW(Jee,"EValidatorRegistryImpl",1329);wDn(1349,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,2040:1,54:1,99:1,158:1,119:1,120:1},qo);lce.ri=function n(e,t){switch(e.hk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return t==null?null:fvn(t);case 25:return Jin(t);case 27:return atn(t);case 28:return ctn(t);case 29:return t==null?null:K$(Tnt[0],bG(t,206));case 41:return t==null?"":$j(bG(t,297));case 42:return fvn(t);case 50:return TK(t);default:throw dm(new jM(nte+e.xe()+ete))}};lce.si=function n(e){var t,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v;switch(e.G==-1&&(e.G=(b=Vin(e),b?Vyn(b.vi(),e):-1)),e.G){case 0:return r=new ny,r;case 1:return t=new jo,t;case 2:return i=new Ul,i;case 4:return a=new Wm,a;case 5:return c=new ty,c;case 6:return u=new zm,u;case 7:return s=new Gl,s;case 10:return f=new Mo,f;case 11:return h=new ry,h;case 12:return l=new hZ,l;case 13:return w=new ay,w;case 14:return d=new LK,d;case 17:return g=new No,g;case 18:return o=new um,o;case 19:return v=new Go,v;default:throw dm(new jM(ite+e.zb+ete))}};lce.ti=function n(e,t){switch(e.hk()){case 20:return t==null?null:new nE(t);case 21:return t==null?null:new LN(t);case 23:case 22:return t==null?null:Dmn(t);case 26:case 24:return t==null?null:Xtn(TUn(t,-128,127)<<24>>24);case 25:return fxn(t);case 27:return wjn(t);case 28:return djn(t);case 29:return oIn(t);case 32:case 31:return t==null?null:rOn(t);case 38:case 37:return t==null?null:new ck(t);case 40:case 39:return t==null?null:Bwn(TUn(t,T1n,pZn));case 41:return null;case 42:return t==null?null:null;case 44:case 43:return t==null?null:Vmn(cJn(t));case 49:case 48:return t==null?null:Hwn(TUn(t,$ie,32767)<<16>>16);case 50:return t;default:throw dm(new jM(nte+e.xe()+ete))}};var Bct=YW(Jee,"EcoreFactoryImpl",1349);wDn(560,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,2038:1,54:1,99:1,158:1,184:1,560:1,119:1,120:1,690:1},kJ);lce.gb=false;lce.hb=false;var Hct,Uct=false;var Gct=YW(Jee,"EcorePackageImpl",560);wDn(1234,1,{851:1},Xo);lce.Kk=function n(){return VD(),Fst};var qct=YW(Jee,"EcorePackageImpl/1",1234);wDn(1243,1,Vie,Vo);lce.fk=function n(e){return G$(e,155)};lce.gk=function n(e){return $nn(G7e,jZn,155,e,0,1)};var Xct=YW(Jee,"EcorePackageImpl/10",1243);wDn(1244,1,Vie,zo);lce.fk=function n(e){return G$(e,197)};lce.gk=function n(e){return $nn(V7e,jZn,197,e,0,1)};var Vct=YW(Jee,"EcorePackageImpl/11",1244);wDn(1245,1,Vie,Wo);lce.fk=function n(e){return G$(e,58)};lce.gk=function n(e){return $nn(x7e,jZn,58,e,0,1)};var zct=YW(Jee,"EcorePackageImpl/12",1245);wDn(1246,1,Vie,Qo);lce.fk=function n(e){return G$(e,411)};lce.gk=function n(e){return $nn(Irt,mie,62,e,0,1)};var Wct=YW(Jee,"EcorePackageImpl/13",1246);wDn(1247,1,Vie,Jo);lce.fk=function n(e){return G$(e,241)};lce.gk=function n(e){return $nn(z7e,jZn,241,e,0,1)};var Qct=YW(Jee,"EcorePackageImpl/14",1247);wDn(1248,1,Vie,Yo);lce.fk=function n(e){return G$(e,518)};lce.gk=function n(e){return $nn(Art,jZn,2116,e,0,1)};var Jct=YW(Jee,"EcorePackageImpl/15",1248);wDn(1249,1,Vie,Zo);lce.fk=function n(e){return G$(e,102)};lce.gk=function n(e){return $nn(Lrt,pie,19,e,0,1)};var Yct=YW(Jee,"EcorePackageImpl/16",1249);wDn(1250,1,Vie,nf);lce.fk=function n(e){return G$(e,179)};lce.gk=function n(e){return $nn(mrt,pie,179,e,0,1)};var Zct=YW(Jee,"EcorePackageImpl/17",1250);wDn(1251,1,Vie,ef);lce.fk=function n(e){return G$(e,481)};lce.gk=function n(e){return $nn(prt,jZn,481,e,0,1)};var nut=YW(Jee,"EcorePackageImpl/18",1251);wDn(1252,1,Vie,tf);lce.fk=function n(e){return G$(e,561)};lce.gk=function n(e){return $nn(Nat,Gre,561,e,0,1)};var eut=YW(Jee,"EcorePackageImpl/19",1252);wDn(1235,1,Vie,rf);lce.fk=function n(e){return G$(e,331)};lce.gk=function n(e){return $nn(krt,pie,35,e,0,1)};var tut=YW(Jee,"EcorePackageImpl/2",1235);wDn(1253,1,Vie,af);lce.fk=function n(e){return G$(e,248)};lce.gk=function n(e){return $nn(Crt,Eie,89,e,0,1)};var rut=YW(Jee,"EcorePackageImpl/20",1253);wDn(1254,1,Vie,cf);lce.fk=function n(e){return G$(e,457)};lce.gk=function n(e){return $nn(xrt,jZn,850,e,0,1)};var iut=YW(Jee,"EcorePackageImpl/21",1254);wDn(1255,1,Vie,uf);lce.fk=function n(e){return UA(e)};lce.gk=function n(e){return $nn(Uhe,XZn,485,e,8,1)};var aut=YW(Jee,"EcorePackageImpl/22",1255);wDn(1256,1,Vie,sf);lce.fk=function n(e){return G$(e,195)};lce.gk=function n(e){return $nn(Vht,XZn,195,e,0,2)};var cut=YW(Jee,"EcorePackageImpl/23",1256);wDn(1257,1,Vie,of);lce.fk=function n(e){return G$(e,222)};lce.gk=function n(e){return $nn(Xhe,XZn,222,e,0,1)};var uut=YW(Jee,"EcorePackageImpl/24",1257);wDn(1258,1,Vie,ff);lce.fk=function n(e){return G$(e,180)};lce.gk=function n(e){return $nn(Whe,XZn,180,e,0,1)};var sut=YW(Jee,"EcorePackageImpl/25",1258);wDn(1259,1,Vie,hf);lce.fk=function n(e){return G$(e,206)};lce.gk=function n(e){return $nn(hhe,XZn,206,e,0,1)};var out=YW(Jee,"EcorePackageImpl/26",1259);wDn(1260,1,Vie,lf);lce.fk=function n(e){return false};lce.gk=function n(e){return $nn(Yht,jZn,2215,e,0,1)};var fut=YW(Jee,"EcorePackageImpl/27",1260);wDn(1261,1,Vie,bf);lce.fk=function n(e){return GA(e)};lce.gk=function n(e){return $nn(Yhe,XZn,345,e,7,1)};var hut=YW(Jee,"EcorePackageImpl/28",1261);wDn(1262,1,Vie,wf);lce.fk=function n(e){return G$(e,61)};lce.gk=function n(e){return $nn(Xet,B3n,61,e,0,1)};var lut=YW(Jee,"EcorePackageImpl/29",1262);wDn(1236,1,Vie,df);lce.fk=function n(e){return G$(e,519)};lce.gk=function n(e){return $nn(vrt,{3:1,4:1,5:1,2033:1},598,e,0,1)};var but=YW(Jee,"EcorePackageImpl/3",1236);wDn(1263,1,Vie,gf);lce.fk=function n(e){return G$(e,582)};lce.gk=function n(e){return $nn(Wtt,jZn,2039,e,0,1)};var wut=YW(Jee,"EcorePackageImpl/30",1263);wDn(1264,1,Vie,vf);lce.fk=function n(e){return G$(e,160)};lce.gk=function n(e){return $nn(rst,B3n,160,e,0,1)};var dut=YW(Jee,"EcorePackageImpl/31",1264);wDn(1265,1,Vie,pf);lce.fk=function n(e){return G$(e,76)};lce.gk=function n(e){return $nn(fit,zie,76,e,0,1)};var gut=YW(Jee,"EcorePackageImpl/32",1265);wDn(1266,1,Vie,mf);lce.fk=function n(e){return G$(e,161)};lce.gk=function n(e){return $nn(Zhe,XZn,161,e,0,1)};var vut=YW(Jee,"EcorePackageImpl/33",1266);wDn(1267,1,Vie,kf);lce.fk=function n(e){return G$(e,17)};lce.gk=function n(e){return $nn(tle,XZn,17,e,0,1)};var put=YW(Jee,"EcorePackageImpl/34",1267);wDn(1268,1,Vie,yf);lce.fk=function n(e){return G$(e,297)};lce.gk=function n(e){return $nn(yce,jZn,297,e,0,1)};var mut=YW(Jee,"EcorePackageImpl/35",1268);wDn(1269,1,Vie,Mf);lce.fk=function n(e){return G$(e,168)};lce.gk=function n(e){return $nn(ale,XZn,168,e,0,1)};var kut=YW(Jee,"EcorePackageImpl/36",1269);wDn(1270,1,Vie,Tf);lce.fk=function n(e){return G$(e,85)};lce.gk=function n(e){return $nn(_ce,jZn,85,e,0,1)};var yut=YW(Jee,"EcorePackageImpl/37",1270);wDn(1271,1,Vie,jf);lce.fk=function n(e){return G$(e,599)};lce.gk=function n(e){return $nn(Kut,jZn,599,e,0,1)};var Mut=YW(Jee,"EcorePackageImpl/38",1271);wDn(1272,1,Vie,Ef);lce.fk=function n(e){return false};lce.gk=function n(e){return $nn(Zht,jZn,2216,e,0,1)};var Tut=YW(Jee,"EcorePackageImpl/39",1272);wDn(1237,1,Vie,Sf);lce.fk=function n(e){return G$(e,90)};lce.gk=function n(e){return $nn(Mrt,jZn,29,e,0,1)};var jut=YW(Jee,"EcorePackageImpl/4",1237);wDn(1273,1,Vie,Pf);lce.fk=function n(e){return G$(e,191)};lce.gk=function n(e){return $nn(wle,XZn,191,e,0,1)};var Eut=YW(Jee,"EcorePackageImpl/40",1273);wDn(1274,1,Vie,Cf);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Sut=YW(Jee,"EcorePackageImpl/41",1274);wDn(1275,1,Vie,If);lce.fk=function n(e){return G$(e,596)};lce.gk=function n(e){return $nn(Wet,jZn,596,e,0,1)};var Put=YW(Jee,"EcorePackageImpl/42",1275);wDn(1276,1,Vie,Of);lce.fk=function n(e){return false};lce.gk=function n(e){return $nn(nlt,XZn,2217,e,0,1)};var Cut=YW(Jee,"EcorePackageImpl/43",1276);wDn(1277,1,Vie,Af);lce.fk=function n(e){return G$(e,44)};lce.gk=function n(e){return $nn(vue,i1n,44,e,0,1)};var Iut=YW(Jee,"EcorePackageImpl/44",1277);wDn(1238,1,Vie,Lf);lce.fk=function n(e){return G$(e,142)};lce.gk=function n(e){return $nn(yrt,jZn,142,e,0,1)};var Out=YW(Jee,"EcorePackageImpl/5",1238);wDn(1239,1,Vie,Nf);lce.fk=function n(e){return G$(e,156)};lce.gk=function n(e){return $nn(Trt,jZn,156,e,0,1)};var Aut=YW(Jee,"EcorePackageImpl/6",1239);wDn(1240,1,Vie,$f);lce.fk=function n(e){return G$(e,469)};lce.gk=function n(e){return $nn(Srt,jZn,685,e,0,1)};var Lut=YW(Jee,"EcorePackageImpl/7",1240);wDn(1241,1,Vie,Df);lce.fk=function n(e){return G$(e,582)};lce.gk=function n(e){return $nn(Prt,jZn,694,e,0,1)};var Nut=YW(Jee,"EcorePackageImpl/8",1241);wDn(1242,1,Vie,xf);lce.fk=function n(e){return G$(e,480)};lce.gk=function n(e){return $nn(q7e,jZn,480,e,0,1)};var $ut=YW(Jee,"EcorePackageImpl/9",1242);wDn(1038,2080,Hre,eM);lce.Mi=function n(e,t){mdn(this,bG(t,424))};lce.Qi=function n(e,t){WAn(this,e,bG(t,424))};var Dut=YW(Jee,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1038);wDn(1039,152,Fre,AQ);lce.jj=function n(){return this.a.a};var xut=YW(Jee,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1039);wDn(1067,1066,{},u$);var Rut=YW("org.eclipse.emf.ecore.plugin","EcorePlugin",1067);var Kut=$q(Wie,"Resource");wDn(799,1524,Qie);lce.Hl=function n(e){};lce.Il=function n(e){};lce.El=function n(){return!this.a&&(this.a=new Qp(this)),this.a};lce.Fl=function n(e){var t,r,i,a,c;i=e.length;if(i>0){w3(0,e.length);if(e.charCodeAt(0)==47){c=new H7(4);a=1;for(t=1;t0&&(e=(Unn(0,r,e.length),e.substr(0,r)))}}}return vNn(this,e)};lce.Gl=function n(){return this.c};lce.Ib=function n(){var e;return $j(this.Rm)+"@"+(e=Vun(this)>>>0,e.toString(16))+" uri='"+this.d+"'"};lce.b=false;var Fut=YW(Jie,"ResourceImpl",799);wDn(1525,799,Qie,Jp);var _ut=YW(Jie,"BinaryResourceImpl",1525);wDn(1190,708,Wte);lce.bj=function n(e){return G$(e,58)?t1(this,bG(e,58)):G$(e,599)?new _D(bG(e,599).El()):BA(e)===BA(this.f)?bG(e,16).Kc():(OK(),Gtt.a)};lce.Ob=function n(){return b$n(this)};lce.a=false;var But=YW(iie,"EcoreUtil/ContentTreeIterator",1190);wDn(1526,1190,Wte,kz);lce.bj=function n(e){return BA(e)===BA(this.f)?bG(e,15).Kc():new R6(bG(e,58))};var Hut=YW(Jie,"ResourceImpl/5",1526);wDn(658,2092,kie,Qp);lce.Hc=function n(e){return this.i<=4?wSn(this,e):G$(e,54)&&bG(e,54).Jh()==this.a};lce.Mi=function n(e,t){e==this.i-1&&(this.a.b||(this.a.b=true,null))};lce.Oi=function n(e,t){e==0?this.a.b||(this.a.b=true,null):xnn(this,e,t)};lce.Qi=function n(e,t){};lce.Ri=function n(e,t,r){};lce.Lj=function n(){return 2};lce.jj=function n(){return this.a};lce.Mj=function n(){return true};lce.Nj=function n(e,t){var r;r=bG(e,54);t=r.fi(this.a,t);return t};lce.Oj=function n(e,t){var r;r=bG(e,54);return r.fi(null,t)};lce.Pj=function n(){return false};lce.Si=function n(){return true};lce.aj=function n(e){return $nn(x7e,jZn,58,e,0,1)};lce.Yi=function n(){return false};var Uut=YW(Jie,"ResourceImpl/ContentsEList",658);wDn(970,2062,v1n,Yp);lce.fd=function n(e){return this.a.Ki(e)};lce.gc=function n(){return this.a.gc()};var Gut=YW(iie,"AbstractSequentialInternalEList/1",970);var qut,Xut,Vut,zut;wDn(634,1,{},VG);var Wut,Qut;var Jut=YW(iie,"BasicExtendedMetaData",634);wDn(1181,1,{},NA);lce.Jl=function n(){return null};lce.Kl=function n(){this.a==-2&&gw(this,QCn(this.d,this.b));return this.a};lce.Ll=function n(){return null};lce.Ml=function n(){return dZ(),dZ(),lbe};lce.xe=function n(){this.c==lae&&vw(this,fkn(this.d,this.b));return this.c};lce.Nl=function n(){return 0};lce.a=-2;lce.c=lae;var Yut=YW(iie,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1181);wDn(1182,1,{},y4);lce.Jl=function n(){this.a==(K7(),Wut)&&kw(this,CBn(this.f,this.b));return this.a};lce.Kl=function n(){return 0};lce.Ll=function n(){this.c==(K7(),Wut)&&pw(this,IBn(this.f,this.b));return this.c};lce.Ml=function n(){!this.d&&Mw(this,sqn(this.f,this.b));return this.d};lce.xe=function n(){this.e==lae&&jw(this,fkn(this.f,this.b));return this.e};lce.Nl=function n(){this.g==-2&&Sw(this,_Pn(this.f,this.b));return this.g};lce.e=lae;lce.g=-2;var Zut=YW(iie,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1182);wDn(1180,1,{},$A);lce.b=false;lce.c=false;var nst=YW(iie,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1180);wDn(1183,1,{},M4);lce.c=-2;lce.e=lae;lce.f=lae;var est=YW(iie,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1183);wDn(593,632,yie,qG);lce.Lj=function n(){return this.c};lce.ol=function n(){return false};lce.Wi=function n(e,t){return t};lce.c=0;var tst=YW(iie,"EDataTypeEList",593);var rst=$q(iie,"FeatureMap");wDn(78,593,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},mon);lce.bd=function n(e,t){sKn(this,e,bG(t,76))};lce.Fc=function n(e){return eRn(this,bG(e,76))};lce.Hi=function n(e){DW(this,bG(e,76))};lce.Nj=function n(e,t){return Q_(this,bG(e,76),t)};lce.Oj=function n(e,t){return J_(this,bG(e,76),t)};lce.Ti=function n(e,t){return vUn(this,e,t)};lce.Wi=function n(e,t){return $zn(this,e,bG(t,76))};lce.hd=function n(e,t){return EFn(this,e,bG(t,76))};lce.Uj=function n(e,t){return Y_(this,bG(e,76),t)};lce.Vj=function n(e,t){return Z_(this,bG(e,76),t)};lce.Wj=function n(e,t,r){return hPn(this,bG(e,76),bG(t,76),r)};lce.Zi=function n(e,t){return nCn(this,e,bG(t,76))};lce.Ol=function n(e,t){return zHn(this,e,t)};lce.cd=function n(e,t){var r,i,a,c,u,s,o,f,h;f=new _in(t.gc());for(a=t.Kc();a.Ob();){i=bG(a.Pb(),76);c=i.Lk();if(OFn(this.e,c)){(!c.Si()||!V5(this,c,i.md())&&!wSn(f,i))&&cen(f,i)}else{h=ZKn(this.e.Dh(),c);r=bG(this.g,124);u=true;for(s=0;s=0){t=e[this.c];if(this.k.am(t.Lk())){this.j=this.f?t:t.md();this.i=-2;return true}}this.i=-1;this.g=-1;return false};var cst=YW(iie,"BasicFeatureMap/FeatureEIterator",420);wDn(676,420,HZn,SL);lce.ul=function n(){return true};var ust=YW(iie,"BasicFeatureMap/ResolvingFeatureEIterator",676);wDn(968,496,Pie,W$);lce.pj=function n(){return this};var sst=YW(iie,"EContentsEList/1",968);wDn(969,496,Pie,EL);lce.ul=function n(){return false};var ost=YW(iie,"EContentsEList/2",969);wDn(967,287,Cie,Q$);lce.wl=function n(e){};lce.Ob=function n(){return false};lce.Sb=function n(){return false};var fst=YW(iie,"EContentsEList/FeatureIteratorImpl/1",967);wDn(840,593,yie,ID);lce.Ni=function n(){this.a=true};lce.Qj=function n(){return this.a};lce.Gk=function n(){var e;NVn(this);if(bN(this.e)){e=this.a;this.a=false;Pon(this.e,new I9(this.e,2,this.c,e,false))}else{this.a=false}};lce.a=false;var hst=YW(iie,"EDataTypeEList/Unsettable",840);wDn(1958,593,yie,OD);lce.Si=function n(){return true};var lst=YW(iie,"EDataTypeUniqueEList",1958);wDn(1959,840,yie,AD);lce.Si=function n(){return true};var bst=YW(iie,"EDataTypeUniqueEList/Unsettable",1959);wDn(147,83,yie,LD);lce.nl=function n(){return true};lce.Wi=function n(e,t){return H$n(this,e,bG(t,58))};var wst=YW(iie,"EObjectContainmentEList/Resolving",147);wDn(1184,555,yie,ND);lce.nl=function n(){return true};lce.Wi=function n(e,t){return H$n(this,e,bG(t,58))};var dst=YW(iie,"EObjectContainmentEList/Unsettable/Resolving",1184);wDn(766,14,yie,o_);lce.Ni=function n(){this.a=true};lce.Qj=function n(){return this.a};lce.Gk=function n(){var e;NVn(this);if(bN(this.e)){e=this.a;this.a=false;Pon(this.e,new I9(this.e,2,this.c,e,false))}else{this.a=false}};lce.a=false;var gst=YW(iie,"EObjectContainmentWithInverseEList/Unsettable",766);wDn(1222,766,yie,f_);lce.nl=function n(){return true};lce.Wi=function n(e,t){return H$n(this,e,bG(t,58))};var vst=YW(iie,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1222);wDn(757,505,yie,$D);lce.Ni=function n(){this.a=true};lce.Qj=function n(){return this.a};lce.Gk=function n(){var e;NVn(this);if(bN(this.e)){e=this.a;this.a=false;Pon(this.e,new I9(this.e,2,this.c,e,false))}else{this.a=false}};lce.a=false;var pst=YW(iie,"EObjectEList/Unsettable",757);wDn(338,505,yie,DD);lce.nl=function n(){return true};lce.Wi=function n(e,t){return H$n(this,e,bG(t,58))};var mst=YW(iie,"EObjectResolvingEList",338);wDn(1844,757,yie,xD);lce.nl=function n(){return true};lce.Wi=function n(e,t){return H$n(this,e,bG(t,58))};var kst=YW(iie,"EObjectResolvingEList/Unsettable",1844);wDn(1527,1,{},Rf);var yst;var Mst=YW(iie,"EObjectValidator",1527);wDn(559,505,yie,mz);lce.il=function n(){return this.d};lce.jl=function n(){return this.b};lce.Mj=function n(){return true};lce.ml=function n(){return true};lce.b=0;var Tst=YW(iie,"EObjectWithInverseEList",559);wDn(1225,559,yie,h_);lce.ll=function n(){return true};var jst=YW(iie,"EObjectWithInverseEList/ManyInverse",1225);wDn(635,559,yie,l_);lce.Ni=function n(){this.a=true};lce.Qj=function n(){return this.a};lce.Gk=function n(){var e;NVn(this);if(bN(this.e)){e=this.a;this.a=false;Pon(this.e,new I9(this.e,2,this.c,e,false))}else{this.a=false}};lce.a=false;var Est=YW(iie,"EObjectWithInverseEList/Unsettable",635);wDn(1224,635,yie,w_);lce.ll=function n(){return true};var Sst=YW(iie,"EObjectWithInverseEList/Unsettable/ManyInverse",1224);wDn(767,559,yie,b_);lce.nl=function n(){return true};lce.Wi=function n(e,t){return H$n(this,e,bG(t,58))};var Pst=YW(iie,"EObjectWithInverseResolvingEList",767);wDn(32,767,yie,g_);lce.ll=function n(){return true};var Cst=YW(iie,"EObjectWithInverseResolvingEList/ManyInverse",32);wDn(768,635,yie,d_);lce.nl=function n(){return true};lce.Wi=function n(e,t){return H$n(this,e,bG(t,58))};var Ist=YW(iie,"EObjectWithInverseResolvingEList/Unsettable",768);wDn(1223,768,yie,v_);lce.ll=function n(){return true};var Ost=YW(iie,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1223);wDn(1185,632,yie);lce.Li=function n(){return(this.b&1792)==0};lce.Ni=function n(){this.b|=1};lce.kl=function n(){return(this.b&4)!=0};lce.Mj=function n(){return(this.b&40)!=0};lce.ll=function n(){return(this.b&16)!=0};lce.ml=function n(){return(this.b&8)!=0};lce.nl=function n(){return(this.b&oie)!=0};lce.al=function n(){return(this.b&32)!=0};lce.ol=function n(){return(this.b&b1n)!=0};lce.fk=function n(e){return!this.d?this.Lk().Hk().fk(e):j5(this.d,e)};lce.Qj=function n(){return(this.b&2)!=0?(this.b&1)!=0:this.i!=0};lce.Si=function n(){return(this.b&128)!=0};lce.Gk=function n(){var e;NVn(this);if((this.b&2)!=0){if(bN(this.e)){e=(this.b&1)!=0;this.b&=-2;rk(this,new I9(this.e,2,upn(this.e.Dh(),this.Lk()),e,false))}else{this.b&=-2}}};lce.Yi=function n(){return(this.b&1536)==0};lce.b=0;var Ast=YW(iie,"EcoreEList/Generic",1185);wDn(1186,1185,yie,SZ);lce.Lk=function n(){return this.a};var Lst=YW(iie,"EcoreEList/Dynamic",1186);wDn(765,66,zte,Zp);lce.aj=function n(e){return xan(this.a.a,e)};var Nst=YW(iie,"EcoreEMap/1",765);wDn(764,83,yie,Ez);lce.Mi=function n(e,t){pMn(this.b,bG(t,136))};lce.Oi=function n(e,t){Don(this.b)};lce.Pi=function n(e,t,r){var i;++(i=this.b,bG(t,136),i).e};lce.Qi=function n(e,t){Zdn(this.b,bG(t,136))};lce.Ri=function n(e,t,r){Zdn(this.b,bG(r,136));BA(r)===BA(t)&&bG(r,136).Ci(n$(bG(t,136).ld()));pMn(this.b,bG(t,136))};var $st=YW(iie,"EcoreEMap/DelegateEObjectContainmentEList",764);wDn(1220,141,cie,Bcn);var Dst=YW(iie,"EcoreEMap/Unsettable",1220);wDn(1221,764,yie,p_);lce.Ni=function n(){this.a=true};lce.Qj=function n(){return this.a};lce.Gk=function n(){var e;NVn(this);if(bN(this.e)){e=this.a;this.a=false;Pon(this.e,new I9(this.e,2,this.c,e,false))}else{this.a=false}};lce.a=false;var xst=YW(iie,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1221);wDn(1189,215,_0n,_W);lce.a=false;lce.b=false;var Rst=YW(iie,"EcoreUtil/Copier",1189);wDn(759,1,NZn,R6);lce.Nb=function n(e){Az(this,e)};lce.Ob=function n(){return rmn(this)};lce.Pb=function n(){var e;rmn(this);e=this.b;this.b=null;return e};lce.Qb=function n(){this.a.Qb()};var Kst=YW(iie,"EcoreUtil/ProperContentIterator",759);wDn(1528,1527,{},ql);var Fst;var _st=YW(iie,"EcoreValidator",1528);var Bst;var Hst=$q(iie,"FeatureMapUtil/Validator");wDn(1295,1,{2041:1},Kf);lce.am=function n(e){return true};var Ust=YW(iie,"FeatureMapUtil/1",1295);wDn(773,1,{2041:1},SQn);lce.am=function n(e){var t;if(this.c==e)return true;t=yK(fQ(this.a,e));if(t==null){if(_Bn(this,e)){n7(this.a,e,(Qx(),Hhe));return true}else{n7(this.a,e,(Qx(),Bhe));return false}}else{return t==(Qx(),Hhe)}};lce.e=false;var Gst;var qst=YW(iie,"FeatureMapUtil/BasicValidator",773);wDn(774,45,_0n,z$);var Xst=YW(iie,"FeatureMapUtil/BasicValidator/Cache",774);wDn(509,56,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,71:1,97:1},DA);lce.bd=function n(e,t){RFn(this.c,this.b,e,t)};lce.Fc=function n(e){return zHn(this.c,this.b,e)};lce.cd=function n(e,t){return qXn(this.c,this.b,e,t)};lce.Gc=function n(e){return U$(this,e)};lce.Gi=function n(e,t){din(this.c,this.b,e,t)};lce.Wk=function n(e,t){return DBn(this.c,this.b,e,t)};lce.$i=function n(e){return yXn(this.c,this.b,e,false)};lce.Ii=function n(){return mN(this.c,this.b)};lce.Ji=function n(){return kN(this.c,this.b)};lce.Ki=function n(e){return Dnn(this.c,this.b,e)};lce.Xk=function n(e,t){return oF(this,e,t)};lce.$b=function n(){ik(this)};lce.Hc=function n(e){return V5(this.c,this.b,e)};lce.Ic=function n(e){return Hsn(this.c,this.b,e)};lce.Xb=function n(e){return yXn(this.c,this.b,e,true)};lce.Fk=function n(e){return this};lce.dd=function n(e){return z5(this.c,this.b,e)};lce.dc=function n(){return FA(this)};lce.Qj=function n(){return!Epn(this.c,this.b)};lce.Kc=function n(){return Ern(this.c,this.b)};lce.ed=function n(){return Srn(this.c,this.b)};lce.fd=function n(e){return vgn(this.c,this.b,e)};lce.Ti=function n(e,t){return OGn(this.c,this.b,e,t)};lce.Ui=function n(e,t){Bnn(this.c,this.b,e,t)};lce.gd=function n(e){return ZOn(this.c,this.b,e)};lce.Mc=function n(e){return FHn(this.c,this.b,e)};lce.hd=function n(e,t){return dqn(this.c,this.b,e,t)};lce.Wb=function n(e){N$n(this.c,this.b);U$(this,bG(e,15))};lce.gc=function n(){return ggn(this.c,this.b)};lce.Pc=function n(){return j4(this.c,this.b)};lce.Qc=function n(e){return W5(this.c,this.b,e)};lce.Ib=function n(){var e,t;t=new YM;t.a+="[";for(e=mN(this.c,this.b);ibn(e);){ZA(t,lx(qyn(e)));ibn(e)&&(t.a+=MZn,t)}t.a+="]";return t.a};lce.Gk=function n(){N$n(this.c,this.b)};var Vst=YW(iie,"FeatureMapUtil/FeatureEList",509);wDn(644,39,Fre,s8);lce.hj=function n(e){return Sdn(this,e)};lce.mj=function n(e){var t,r,i,a,c,u,s;switch(this.d){case 1:case 2:{c=e.jj();if(BA(c)===BA(this.c)&&Sdn(this,null)==e.hj(null)){this.g=e.ij();e.gj()==1&&(this.d=1);return true}break}case 3:{a=e.gj();switch(a){case 3:{c=e.jj();if(BA(c)===BA(this.c)&&Sdn(this,null)==e.hj(null)){this.d=5;t=new _in(2);cen(t,this.g);cen(t,e.ij());this.g=t;return true}break}}break}case 5:{a=e.gj();switch(a){case 3:{c=e.jj();if(BA(c)===BA(this.c)&&Sdn(this,null)==e.hj(null)){r=bG(this.g,16);r.Fc(e.ij());return true}break}}break}case 4:{a=e.gj();switch(a){case 3:{c=e.jj();if(BA(c)===BA(this.c)&&Sdn(this,null)==e.hj(null)){this.d=1;this.g=e.ij();return true}break}case 4:{c=e.jj();if(BA(c)===BA(this.c)&&Sdn(this,null)==e.hj(null)){this.d=6;s=new _in(2);cen(s,this.n);cen(s,e.kj());this.n=s;u=zfn(fT(Ght,1),z1n,28,15,[this.o,e.lj()]);this.g=u;return true}break}}break}case 6:{a=e.gj();switch(a){case 4:{c=e.jj();if(BA(c)===BA(this.c)&&Sdn(this,null)==e.hj(null)){r=bG(this.n,16);r.Fc(e.kj());u=bG(this.g,53);i=$nn(Ght,z1n,28,u.length+1,15,1);QGn(u,0,i,0,u.length);i[u.length]=e.lj();this.g=i;return true}break}}break}}return false};var zst=YW(iie,"FeatureMapUtil/FeatureENotificationImpl",644);wDn(564,509,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},Nq);lce.Ol=function n(e,t){return zHn(this.c,e,t)};lce.Pl=function n(e,t,r){return DBn(this.c,e,t,r)};lce.Ql=function n(e,t,r){return gXn(this.c,e,t,r)};lce.Rl=function n(){return this};lce.Sl=function n(e,t){return kXn(this.c,e,t)};lce.Tl=function n(e){return bG(yXn(this.c,this.b,e,false),76).Lk()};lce.Ul=function n(e){return bG(yXn(this.c,this.b,e,false),76).md()};lce.Vl=function n(){return this.a};lce.Wl=function n(e){return!Epn(this.c,e)};lce.Xl=function n(e,t){XXn(this.c,e,t)};lce.Yl=function n(e){return aun(this.c,e)};lce.Zl=function n(e){OTn(this.c,e)};var Wst=YW(iie,"FeatureMapUtil/FeatureFeatureMap",564);wDn(1294,1,aie,LA);lce.Fk=function n(e){return yXn(this.b,this.a,-1,e)};lce.Qj=function n(){return!Epn(this.b,this.a)};lce.Wb=function n(e){XXn(this.b,this.a,e)};lce.Gk=function n(){N$n(this.b,this.a)};var Qst=YW(iie,"FeatureMapUtil/FeatureValue",1294);var Jst,Yst,Zst,not,eot;var tot=$q(wae,"AnyType");wDn(680,63,E1n,LM);var rot=YW(wae,"InvalidDatatypeValueException",680);var iot=$q(wae,dae);var aot=$q(wae,gae);var cot=$q(wae,vae);var uot;var sot;var oot,fot,hot,lot,bot,wot,dot,got,vot,pot,mot,kot,yot,Mot,Tot,jot,Eot,Sot,Pot,Cot,Iot,Oot,Aot,Lot;wDn(844,516,{110:1,94:1,93:1,58:1,54:1,99:1,857:1},sy);lce.Lh=function n(e,t,r){switch(e){case 0:if(r)return!this.c&&(this.c=new mon(this,0)),this.c;return!this.c&&(this.c=new mon(this,0)),this.c.b;case 1:if(r)return!this.c&&(this.c=new mon(this,0)),bG(C2(this.c,(bzn(),fot)),160);return(!this.c&&(this.c=new mon(this,0)),bG(bG(C2(this.c,(bzn(),fot)),160),220)).Vl();case 2:if(r)return!this.b&&(this.b=new mon(this,2)),this.b;return!this.b&&(this.b=new mon(this,2)),this.b.b}return Fen(this,e-sQ(this.ii()),uin((this.j&2)==0?this.ii():(!this.k&&(this.k=new Rl),this.k).Nk(),e),t,r)};lce.Uh=function n(e,t,r){var i;switch(t){case 0:return!this.c&&(this.c=new mon(this,0)),KHn(this.c,e,r);case 1:return(!this.c&&(this.c=new mon(this,0)),bG(bG(C2(this.c,(bzn(),fot)),160),71)).Xk(e,r);case 2:return!this.b&&(this.b=new mon(this,2)),KHn(this.b,e,r)}return i=bG(uin((this.j&2)==0?this.ii():(!this.k&&(this.k=new Rl),this.k).Nk(),t),69),i.wk().Ak(this,nrn(this),t-sQ(this.ii()),e,r)};lce.Wh=function n(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new mon(this,0)),bG(C2(this.c,(bzn(),fot)),160)).dc();case 2:return!!this.b&&this.b.i!=0}return v5(this,e-sQ(this.ii()),uin((this.j&2)==0?this.ii():(!this.k&&(this.k=new Rl),this.k).Nk(),e))};lce.bi=function n(e,t){switch(e){case 0:!this.c&&(this.c=new mon(this,0));fW(this.c,t);return;case 1:(!this.c&&(this.c=new mon(this,0)),bG(bG(C2(this.c,(bzn(),fot)),160),220)).Wb(t);return;case 2:!this.b&&(this.b=new mon(this,2));fW(this.b,t);return}vvn(this,e-sQ(this.ii()),uin((this.j&2)==0?this.ii():(!this.k&&(this.k=new Rl),this.k).Nk(),e),t)};lce.ii=function n(){return bzn(),oot};lce.ki=function n(e){switch(e){case 0:!this.c&&(this.c=new mon(this,0));NVn(this.c);return;case 1:(!this.c&&(this.c=new mon(this,0)),bG(C2(this.c,(bzn(),fot)),160)).$b();return;case 2:!this.b&&(this.b=new mon(this,2));NVn(this.b);return}wdn(this,e-sQ(this.ii()),uin((this.j&2)==0?this.ii():(!this.k&&(this.k=new Rl),this.k).Nk(),e))};lce.Ib=function n(){var e;if((this.j&4)!=0)return jxn(this);e=new gx(jxn(this));e.a+=" (mixed: ";YA(e,this.c);e.a+=", anyAttribute: ";YA(e,this.b);e.a+=")";return e.a};var Not=YW(pae,"AnyTypeImpl",844);wDn(681,516,{110:1,94:1,93:1,58:1,54:1,99:1,2119:1,681:1},Wf);lce.Lh=function n(e,t,r){switch(e){case 0:return this.a;case 1:return this.b}return Fen(this,e-sQ((bzn(),Mot)),uin((this.j&2)==0?Mot:(!this.k&&(this.k=new Rl),this.k).Nk(),e),t,r)};lce.Wh=function n(e){switch(e){case 0:return this.a!=null;case 1:return this.b!=null}return v5(this,e-sQ((bzn(),Mot)),uin((this.j&2)==0?Mot:(!this.k&&(this.k=new Rl),this.k).Nk(),e))};lce.bi=function n(e,t){switch(e){case 0:Iw(this,TK(t));return;case 1:Aw(this,TK(t));return}vvn(this,e-sQ((bzn(),Mot)),uin((this.j&2)==0?Mot:(!this.k&&(this.k=new Rl),this.k).Nk(),e),t)};lce.ii=function n(){return bzn(),Mot};lce.ki=function n(e){switch(e){case 0:this.a=null;return;case 1:this.b=null;return}wdn(this,e-sQ((bzn(),Mot)),uin((this.j&2)==0?Mot:(!this.k&&(this.k=new Rl),this.k).Nk(),e))};lce.Ib=function n(){var e;if((this.j&4)!=0)return jxn(this);e=new gx(jxn(this));e.a+=" (data: ";ZA(e,this.a);e.a+=", target: ";ZA(e,this.b);e.a+=")";return e.a};lce.a=null;lce.b=null;var $ot=YW(pae,"ProcessingInstructionImpl",681);wDn(682,844,{110:1,94:1,93:1,58:1,54:1,99:1,857:1,2120:1,682:1},oy);lce.Lh=function n(e,t,r){switch(e){case 0:if(r)return!this.c&&(this.c=new mon(this,0)),this.c;return!this.c&&(this.c=new mon(this,0)),this.c.b;case 1:if(r)return!this.c&&(this.c=new mon(this,0)),bG(C2(this.c,(bzn(),fot)),160);return(!this.c&&(this.c=new mon(this,0)),bG(bG(C2(this.c,(bzn(),fot)),160),220)).Vl();case 2:if(r)return!this.b&&(this.b=new mon(this,2)),this.b;return!this.b&&(this.b=new mon(this,2)),this.b.b;case 3:return!this.c&&(this.c=new mon(this,0)),TK(kXn(this.c,(bzn(),Eot),true));case 4:return y_(this.a,(!this.c&&(this.c=new mon(this,0)),TK(kXn(this.c,(bzn(),Eot),true))));case 5:return this.a}return Fen(this,e-sQ((bzn(),jot)),uin((this.j&2)==0?jot:(!this.k&&(this.k=new Rl),this.k).Nk(),e),t,r)};lce.Wh=function n(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new mon(this,0)),bG(C2(this.c,(bzn(),fot)),160)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new mon(this,0)),TK(kXn(this.c,(bzn(),Eot),true))!=null;case 4:return y_(this.a,(!this.c&&(this.c=new mon(this,0)),TK(kXn(this.c,(bzn(),Eot),true))))!=null;case 5:return!!this.a}return v5(this,e-sQ((bzn(),jot)),uin((this.j&2)==0?jot:(!this.k&&(this.k=new Rl),this.k).Nk(),e))};lce.bi=function n(e,t){switch(e){case 0:!this.c&&(this.c=new mon(this,0));fW(this.c,t);return;case 1:(!this.c&&(this.c=new mon(this,0)),bG(bG(C2(this.c,(bzn(),fot)),160),220)).Wb(t);return;case 2:!this.b&&(this.b=new mon(this,2));fW(this.b,t);return;case 3:T4(this,TK(t));return;case 4:T4(this,k_(this.a,t));return;case 5:Ow(this,bG(t,156));return}vvn(this,e-sQ((bzn(),jot)),uin((this.j&2)==0?jot:(!this.k&&(this.k=new Rl),this.k).Nk(),e),t)};lce.ii=function n(){return bzn(),jot};lce.ki=function n(e){switch(e){case 0:!this.c&&(this.c=new mon(this,0));NVn(this.c);return;case 1:(!this.c&&(this.c=new mon(this,0)),bG(C2(this.c,(bzn(),fot)),160)).$b();return;case 2:!this.b&&(this.b=new mon(this,2));NVn(this.b);return;case 3:!this.c&&(this.c=new mon(this,0));XXn(this.c,(bzn(),Eot),null);return;case 4:T4(this,k_(this.a,null));return;case 5:this.a=null;return}wdn(this,e-sQ((bzn(),jot)),uin((this.j&2)==0?jot:(!this.k&&(this.k=new Rl),this.k).Nk(),e))};var Dot=YW(pae,"SimpleAnyTypeImpl",682);wDn(683,516,{110:1,94:1,93:1,58:1,54:1,99:1,2121:1,683:1},fy);lce.Lh=function n(e,t,r){switch(e){case 0:if(r)return!this.a&&(this.a=new mon(this,0)),this.a;return!this.a&&(this.a=new mon(this,0)),this.a.b;case 1:return r?(!this.b&&(this.b=new ven((rZn(),cit),Nat,this,1)),this.b):(!this.b&&(this.b=new ven((rZn(),cit),Nat,this,1)),Cnn(this.b));case 2:return r?(!this.c&&(this.c=new ven((rZn(),cit),Nat,this,2)),this.c):(!this.c&&(this.c=new ven((rZn(),cit),Nat,this,2)),Cnn(this.c));case 3:return!this.a&&(this.a=new mon(this,0)),C2(this.a,(bzn(),Cot));case 4:return!this.a&&(this.a=new mon(this,0)),C2(this.a,(bzn(),Iot));case 5:return!this.a&&(this.a=new mon(this,0)),C2(this.a,(bzn(),Aot));case 6:return!this.a&&(this.a=new mon(this,0)),C2(this.a,(bzn(),Lot))}return Fen(this,e-sQ((bzn(),Pot)),uin((this.j&2)==0?Pot:(!this.k&&(this.k=new Rl),this.k).Nk(),e),t,r)};lce.Uh=function n(e,t,r){var i;switch(t){case 0:return!this.a&&(this.a=new mon(this,0)),KHn(this.a,e,r);case 1:return!this.b&&(this.b=new ven((rZn(),cit),Nat,this,1)),W_(this.b,e,r);case 2:return!this.c&&(this.c=new ven((rZn(),cit),Nat,this,2)),W_(this.c,e,r);case 5:return!this.a&&(this.a=new mon(this,0)),oF(C2(this.a,(bzn(),Aot)),e,r)}return i=bG(uin((this.j&2)==0?(bzn(),Pot):(!this.k&&(this.k=new Rl),this.k).Nk(),t),69),i.wk().Ak(this,nrn(this),t-sQ((bzn(),Pot)),e,r)};lce.Wh=function n(e){switch(e){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new mon(this,0)),!FA(C2(this.a,(bzn(),Cot)));case 4:return!this.a&&(this.a=new mon(this,0)),!FA(C2(this.a,(bzn(),Iot)));case 5:return!this.a&&(this.a=new mon(this,0)),!FA(C2(this.a,(bzn(),Aot)));case 6:return!this.a&&(this.a=new mon(this,0)),!FA(C2(this.a,(bzn(),Lot)))}return v5(this,e-sQ((bzn(),Pot)),uin((this.j&2)==0?Pot:(!this.k&&(this.k=new Rl),this.k).Nk(),e))};lce.bi=function n(e,t){switch(e){case 0:!this.a&&(this.a=new mon(this,0));fW(this.a,t);return;case 1:!this.b&&(this.b=new ven((rZn(),cit),Nat,this,1));ton(this.b,t);return;case 2:!this.c&&(this.c=new ven((rZn(),cit),Nat,this,2));ton(this.c,t);return;case 3:!this.a&&(this.a=new mon(this,0));ik(C2(this.a,(bzn(),Cot)));!this.a&&(this.a=new mon(this,0));U$(C2(this.a,Cot),bG(t,16));return;case 4:!this.a&&(this.a=new mon(this,0));ik(C2(this.a,(bzn(),Iot)));!this.a&&(this.a=new mon(this,0));U$(C2(this.a,Iot),bG(t,16));return;case 5:!this.a&&(this.a=new mon(this,0));ik(C2(this.a,(bzn(),Aot)));!this.a&&(this.a=new mon(this,0));U$(C2(this.a,Aot),bG(t,16));return;case 6:!this.a&&(this.a=new mon(this,0));ik(C2(this.a,(bzn(),Lot)));!this.a&&(this.a=new mon(this,0));U$(C2(this.a,Lot),bG(t,16));return}vvn(this,e-sQ((bzn(),Pot)),uin((this.j&2)==0?Pot:(!this.k&&(this.k=new Rl),this.k).Nk(),e),t)};lce.ii=function n(){return bzn(),Pot};lce.ki=function n(e){switch(e){case 0:!this.a&&(this.a=new mon(this,0));NVn(this.a);return;case 1:!this.b&&(this.b=new ven((rZn(),cit),Nat,this,1));this.b.c.$b();return;case 2:!this.c&&(this.c=new ven((rZn(),cit),Nat,this,2));this.c.c.$b();return;case 3:!this.a&&(this.a=new mon(this,0));ik(C2(this.a,(bzn(),Cot)));return;case 4:!this.a&&(this.a=new mon(this,0));ik(C2(this.a,(bzn(),Iot)));return;case 5:!this.a&&(this.a=new mon(this,0));ik(C2(this.a,(bzn(),Aot)));return;case 6:!this.a&&(this.a=new mon(this,0));ik(C2(this.a,(bzn(),Lot)));return}wdn(this,e-sQ((bzn(),Pot)),uin((this.j&2)==0?Pot:(!this.k&&(this.k=new Rl),this.k).Nk(),e))};lce.Ib=function n(){var e;if((this.j&4)!=0)return jxn(this);e=new gx(jxn(this));e.a+=" (mixed: ";YA(e,this.a);e.a+=")";return e.a};var xot=YW(pae,"XMLTypeDocumentRootImpl",683);wDn(2028,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1,2122:1},Ff);lce.ri=function n(e,t){switch(e.hk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return t==null?null:fvn(t);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return TK(t);case 6:return vK(bG(t,195));case 12:case 47:case 49:case 11:return fWn(this,e,t);case 13:return t==null?null:YXn(bG(t,247));case 15:case 14:return t==null?null:PW(bM(MK(t)));case 17:return lPn((bzn(),t));case 18:return lPn(t);case 21:case 20:return t==null?null:CW(bG(t,161).a);case 27:return pK(bG(t,195));case 30:return ATn((bzn(),bG(t,15)));case 31:return ATn(bG(t,15));case 40:return kK((bzn(),t));case 42:return bPn((bzn(),t));case 43:return bPn(t);case 59:case 48:return mK((bzn(),t));default:throw dm(new jM(nte+e.xe()+ete))}};lce.si=function n(e){var t,r,i,a,c;switch(e.G==-1&&(e.G=(r=Vin(e),r?Vyn(r.vi(),e):-1)),e.G){case 0:return t=new sy,t;case 1:return i=new Wf,i;case 2:return a=new oy,a;case 3:return c=new fy,c;default:throw dm(new jM(ite+e.zb+ete))}};lce.ti=function n(e,t){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p;switch(e.hk()){case 5:case 52:case 4:return t;case 6:return wyn(t);case 8:case 7:return t==null?null:PPn(t);case 9:return t==null?null:Xtn(TUn((i=SXn(t,true),i.length>0&&(w3(0,i.length),i.charCodeAt(0)==43)?(w3(1,i.length+1),i.substr(1)):i),-128,127)<<24>>24);case 10:return t==null?null:Xtn(TUn((a=SXn(t,true),a.length>0&&(w3(0,a.length),a.charCodeAt(0)==43)?(w3(1,a.length+1),a.substr(1)):a),-128,127)<<24>>24);case 11:return TK(fYn(this,(bzn(),bot),t));case 12:return TK(fYn(this,(bzn(),wot),t));case 13:return t==null?null:new nE(SXn(t,true));case 15:case 14:return sRn(t);case 16:return TK(fYn(this,(bzn(),dot),t));case 17:return pmn((bzn(),t));case 18:return pmn(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return SXn(t,true);case 21:case 20:return jRn(t);case 22:return TK(fYn(this,(bzn(),got),t));case 23:return TK(fYn(this,(bzn(),vot),t));case 24:return TK(fYn(this,(bzn(),pot),t));case 25:return TK(fYn(this,(bzn(),mot),t));case 26:return TK(fYn(this,(bzn(),kot),t));case 27:return Nkn(t);case 30:return mmn((bzn(),t));case 31:return mmn(t);case 32:return t==null?null:Bwn(TUn((h=SXn(t,true),h.length>0&&(w3(0,h.length),h.charCodeAt(0)==43)?(w3(1,h.length+1),h.substr(1)):h),T1n,pZn));case 33:return t==null?null:new LN((l=SXn(t,true),l.length>0&&(w3(0,l.length),l.charCodeAt(0)==43)?(w3(1,l.length+1),l.substr(1)):l));case 34:return t==null?null:Bwn(TUn((b=SXn(t,true),b.length>0&&(w3(0,b.length),b.charCodeAt(0)==43)?(w3(1,b.length+1),b.substr(1)):b),T1n,pZn));case 36:return t==null?null:Vmn(cJn((w=SXn(t,true),w.length>0&&(w3(0,w.length),w.charCodeAt(0)==43)?(w3(1,w.length+1),w.substr(1)):w)));case 37:return t==null?null:Vmn(cJn((d=SXn(t,true),d.length>0&&(w3(0,d.length),d.charCodeAt(0)==43)?(w3(1,d.length+1),d.substr(1)):d)));case 40:return aTn((bzn(),t));case 42:return kmn((bzn(),t));case 43:return kmn(t);case 44:return t==null?null:new LN((g=SXn(t,true),g.length>0&&(w3(0,g.length),g.charCodeAt(0)==43)?(w3(1,g.length+1),g.substr(1)):g));case 45:return t==null?null:new LN((v=SXn(t,true),v.length>0&&(w3(0,v.length),v.charCodeAt(0)==43)?(w3(1,v.length+1),v.substr(1)):v));case 46:return SXn(t,false);case 47:return TK(fYn(this,(bzn(),yot),t));case 59:case 48:return iTn((bzn(),t));case 49:return TK(fYn(this,(bzn(),Tot),t));case 50:return t==null?null:Hwn(TUn((p=SXn(t,true),p.length>0&&(w3(0,p.length),p.charCodeAt(0)==43)?(w3(1,p.length+1),p.substr(1)):p),$ie,32767)<<16>>16);case 51:return t==null?null:Hwn(TUn((c=SXn(t,true),c.length>0&&(w3(0,c.length),c.charCodeAt(0)==43)?(w3(1,c.length+1),c.substr(1)):c),$ie,32767)<<16>>16);case 53:return TK(fYn(this,(bzn(),Sot),t));case 55:return t==null?null:Hwn(TUn((u=SXn(t,true),u.length>0&&(w3(0,u.length),u.charCodeAt(0)==43)?(w3(1,u.length+1),u.substr(1)):u),$ie,32767)<<16>>16);case 56:return t==null?null:Hwn(TUn((s=SXn(t,true),s.length>0&&(w3(0,s.length),s.charCodeAt(0)==43)?(w3(1,s.length+1),s.substr(1)):s),$ie,32767)<<16>>16);case 57:return t==null?null:Vmn(cJn((o=SXn(t,true),o.length>0&&(w3(0,o.length),o.charCodeAt(0)==43)?(w3(1,o.length+1),o.substr(1)):o)));case 58:return t==null?null:Vmn(cJn((f=SXn(t,true),f.length>0&&(w3(0,f.length),f.charCodeAt(0)==43)?(w3(1,f.length+1),f.substr(1)):f)));case 60:return t==null?null:Bwn(TUn((r=SXn(t,true),r.length>0&&(w3(0,r.length),r.charCodeAt(0)==43)?(w3(1,r.length+1),r.substr(1)):r),T1n,pZn));case 61:return t==null?null:Bwn(TUn(SXn(t,true),T1n,pZn));default:throw dm(new jM(nte+e.xe()+ete))}};var Rot,Kot,Fot,_ot;var Bot=YW(pae,"XMLTypeFactoryImpl",2028);wDn(594,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1,2044:1,594:1},yJ);lce.N=false;lce.O=false;var Hot=false;var Uot=YW(pae,"XMLTypePackageImpl",594);wDn(1961,1,{851:1},_f);lce.Kk=function n(){return jGn(),Rht};var Got=YW(pae,"XMLTypePackageImpl/1",1961);wDn(1970,1,Vie,Bf);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var qot=YW(pae,"XMLTypePackageImpl/10",1970);wDn(1971,1,Vie,Hf);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Xot=YW(pae,"XMLTypePackageImpl/11",1971);wDn(1972,1,Vie,Uf);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Vot=YW(pae,"XMLTypePackageImpl/12",1972);wDn(1973,1,Vie,Gf);lce.fk=function n(e){return GA(e)};lce.gk=function n(e){return $nn(Yhe,XZn,345,e,7,1)};var zot=YW(pae,"XMLTypePackageImpl/13",1973);wDn(1974,1,Vie,qf);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Wot=YW(pae,"XMLTypePackageImpl/14",1974);wDn(1975,1,Vie,Xf);lce.fk=function n(e){return G$(e,15)};lce.gk=function n(e){return $nn(uue,B3n,15,e,0,1)};var Qot=YW(pae,"XMLTypePackageImpl/15",1975);wDn(1976,1,Vie,Vf);lce.fk=function n(e){return G$(e,15)};lce.gk=function n(e){return $nn(uue,B3n,15,e,0,1)};var Jot=YW(pae,"XMLTypePackageImpl/16",1976);wDn(1977,1,Vie,zf);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Yot=YW(pae,"XMLTypePackageImpl/17",1977);wDn(1978,1,Vie,Qf);lce.fk=function n(e){return G$(e,161)};lce.gk=function n(e){return $nn(Zhe,XZn,161,e,0,1)};var Zot=YW(pae,"XMLTypePackageImpl/18",1978);wDn(1979,1,Vie,Jf);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var nft=YW(pae,"XMLTypePackageImpl/19",1979);wDn(1962,1,Vie,Yf);lce.fk=function n(e){return G$(e,857)};lce.gk=function n(e){return $nn(tot,jZn,857,e,0,1)};var eft=YW(pae,"XMLTypePackageImpl/2",1962);wDn(1980,1,Vie,Zf);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var tft=YW(pae,"XMLTypePackageImpl/20",1980);wDn(1981,1,Vie,nh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var rft=YW(pae,"XMLTypePackageImpl/21",1981);wDn(1982,1,Vie,eh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var ift=YW(pae,"XMLTypePackageImpl/22",1982);wDn(1983,1,Vie,th);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var aft=YW(pae,"XMLTypePackageImpl/23",1983);wDn(1984,1,Vie,rh);lce.fk=function n(e){return G$(e,195)};lce.gk=function n(e){return $nn(Vht,XZn,195,e,0,2)};var cft=YW(pae,"XMLTypePackageImpl/24",1984);wDn(1985,1,Vie,ih);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var uft=YW(pae,"XMLTypePackageImpl/25",1985);wDn(1986,1,Vie,ah);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var sft=YW(pae,"XMLTypePackageImpl/26",1986);wDn(1987,1,Vie,ch);lce.fk=function n(e){return G$(e,15)};lce.gk=function n(e){return $nn(uue,B3n,15,e,0,1)};var oft=YW(pae,"XMLTypePackageImpl/27",1987);wDn(1988,1,Vie,uh);lce.fk=function n(e){return G$(e,15)};lce.gk=function n(e){return $nn(uue,B3n,15,e,0,1)};var fft=YW(pae,"XMLTypePackageImpl/28",1988);wDn(1989,1,Vie,sh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var hft=YW(pae,"XMLTypePackageImpl/29",1989);wDn(1963,1,Vie,oh);lce.fk=function n(e){return G$(e,681)};lce.gk=function n(e){return $nn(iot,jZn,2119,e,0,1)};var lft=YW(pae,"XMLTypePackageImpl/3",1963);wDn(1990,1,Vie,fh);lce.fk=function n(e){return G$(e,17)};lce.gk=function n(e){return $nn(tle,XZn,17,e,0,1)};var bft=YW(pae,"XMLTypePackageImpl/30",1990);wDn(1991,1,Vie,hh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var wft=YW(pae,"XMLTypePackageImpl/31",1991);wDn(1992,1,Vie,lh);lce.fk=function n(e){return G$(e,168)};lce.gk=function n(e){return $nn(ale,XZn,168,e,0,1)};var dft=YW(pae,"XMLTypePackageImpl/32",1992);wDn(1993,1,Vie,bh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var gft=YW(pae,"XMLTypePackageImpl/33",1993);wDn(1994,1,Vie,wh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var vft=YW(pae,"XMLTypePackageImpl/34",1994);wDn(1995,1,Vie,dh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var pft=YW(pae,"XMLTypePackageImpl/35",1995);wDn(1996,1,Vie,gh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var mft=YW(pae,"XMLTypePackageImpl/36",1996);wDn(1997,1,Vie,vh);lce.fk=function n(e){return G$(e,15)};lce.gk=function n(e){return $nn(uue,B3n,15,e,0,1)};var kft=YW(pae,"XMLTypePackageImpl/37",1997);wDn(1998,1,Vie,ph);lce.fk=function n(e){return G$(e,15)};lce.gk=function n(e){return $nn(uue,B3n,15,e,0,1)};var yft=YW(pae,"XMLTypePackageImpl/38",1998);wDn(1999,1,Vie,mh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Mft=YW(pae,"XMLTypePackageImpl/39",1999);wDn(1964,1,Vie,kh);lce.fk=function n(e){return G$(e,682)};lce.gk=function n(e){return $nn(aot,jZn,2120,e,0,1)};var Tft=YW(pae,"XMLTypePackageImpl/4",1964);wDn(2e3,1,Vie,yh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var jft=YW(pae,"XMLTypePackageImpl/40",2e3);wDn(2001,1,Vie,Mh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Eft=YW(pae,"XMLTypePackageImpl/41",2001);wDn(2002,1,Vie,Th);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Sft=YW(pae,"XMLTypePackageImpl/42",2002);wDn(2003,1,Vie,jh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Pft=YW(pae,"XMLTypePackageImpl/43",2003);wDn(2004,1,Vie,Eh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Cft=YW(pae,"XMLTypePackageImpl/44",2004);wDn(2005,1,Vie,Sh);lce.fk=function n(e){return G$(e,191)};lce.gk=function n(e){return $nn(wle,XZn,191,e,0,1)};var Ift=YW(pae,"XMLTypePackageImpl/45",2005);wDn(2006,1,Vie,Ph);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Oft=YW(pae,"XMLTypePackageImpl/46",2006);wDn(2007,1,Vie,Ch);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Aft=YW(pae,"XMLTypePackageImpl/47",2007);wDn(2008,1,Vie,Ih);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Lft=YW(pae,"XMLTypePackageImpl/48",2008);wDn(2009,1,Vie,Oh);lce.fk=function n(e){return G$(e,191)};lce.gk=function n(e){return $nn(wle,XZn,191,e,0,1)};var Nft=YW(pae,"XMLTypePackageImpl/49",2009);wDn(1965,1,Vie,Ah);lce.fk=function n(e){return G$(e,683)};lce.gk=function n(e){return $nn(cot,jZn,2121,e,0,1)};var $ft=YW(pae,"XMLTypePackageImpl/5",1965);wDn(2010,1,Vie,Lh);lce.fk=function n(e){return G$(e,168)};lce.gk=function n(e){return $nn(ale,XZn,168,e,0,1)};var Dft=YW(pae,"XMLTypePackageImpl/50",2010);wDn(2011,1,Vie,Nh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var xft=YW(pae,"XMLTypePackageImpl/51",2011);wDn(2012,1,Vie,$h);lce.fk=function n(e){return G$(e,17)};lce.gk=function n(e){return $nn(tle,XZn,17,e,0,1)};var Rft=YW(pae,"XMLTypePackageImpl/52",2012);wDn(1966,1,Vie,Dh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Kft=YW(pae,"XMLTypePackageImpl/6",1966);wDn(1967,1,Vie,xh);lce.fk=function n(e){return G$(e,195)};lce.gk=function n(e){return $nn(Vht,XZn,195,e,0,2)};var Fft=YW(pae,"XMLTypePackageImpl/7",1967);wDn(1968,1,Vie,Rh);lce.fk=function n(e){return UA(e)};lce.gk=function n(e){return $nn(Uhe,XZn,485,e,8,1)};var _ft=YW(pae,"XMLTypePackageImpl/8",1968);wDn(1969,1,Vie,Kh);lce.fk=function n(e){return G$(e,222)};lce.gk=function n(e){return $nn(Xhe,XZn,222,e,0,1)};var Bft=YW(pae,"XMLTypePackageImpl/9",1969);var Hft,Uft;var Gft,qft;var Xft;wDn(55,63,E1n,NM);var Vft=YW(Gae,"RegEx/ParseException",55);wDn(836,1,{},Fh);lce.bm=function n(e){return er*16)throw dm(new NM(oZn((c$(),Sre))));r=r*16+a}while(true);if(this.a!=125)throw dm(new NM(oZn((c$(),Pre))));if(r>qae)throw dm(new NM(oZn((c$(),Cre))));e=r}else{a=0;if(this.c!=0||(a=NMn(this.a))<0)throw dm(new NM(oZn((c$(),Ere))));r=a;OYn(this);if(this.c!=0||(a=NMn(this.a))<0)throw dm(new NM(oZn((c$(),Ere))));r=r*16+a;e=r}break;case 117:i=0;OYn(this);if(this.c!=0||(i=NMn(this.a))<0)throw dm(new NM(oZn((c$(),Ere))));t=i;OYn(this);if(this.c!=0||(i=NMn(this.a))<0)throw dm(new NM(oZn((c$(),Ere))));t=t*16+i;OYn(this);if(this.c!=0||(i=NMn(this.a))<0)throw dm(new NM(oZn((c$(),Ere))));t=t*16+i;OYn(this);if(this.c!=0||(i=NMn(this.a))<0)throw dm(new NM(oZn((c$(),Ere))));t=t*16+i;e=t;break;case 118:OYn(this);if(this.c!=0||(i=NMn(this.a))<0)throw dm(new NM(oZn((c$(),Ere))));t=i;OYn(this);if(this.c!=0||(i=NMn(this.a))<0)throw dm(new NM(oZn((c$(),Ere))));t=t*16+i;OYn(this);if(this.c!=0||(i=NMn(this.a))<0)throw dm(new NM(oZn((c$(),Ere))));t=t*16+i;OYn(this);if(this.c!=0||(i=NMn(this.a))<0)throw dm(new NM(oZn((c$(),Ere))));t=t*16+i;OYn(this);if(this.c!=0||(i=NMn(this.a))<0)throw dm(new NM(oZn((c$(),Ere))));t=t*16+i;OYn(this);if(this.c!=0||(i=NMn(this.a))<0)throw dm(new NM(oZn((c$(),Ere))));t=t*16+i;if(t>qae)throw dm(new NM(oZn((c$(),"parser.descappe.4"))));e=t;break;case 65:case 90:case 122:throw dm(new NM(oZn((c$(),Ire))))}return e};lce.dm=function n(e){var t,r;switch(e){case 100:r=(this.e&32)==32?EJn("Nd",true):(eZn(),iht);break;case 68:r=(this.e&32)==32?EJn("Nd",false):(eZn(),hht);break;case 119:r=(this.e&32)==32?EJn("IsWord",true):(eZn(),kht);break;case 87:r=(this.e&32)==32?EJn("IsWord",false):(eZn(),bht);break;case 115:r=(this.e&32)==32?EJn("IsSpace",true):(eZn(),dht);break;case 83:r=(this.e&32)==32?EJn("IsSpace",false):(eZn(),lht);break;default:throw dm(new Uy((t=e,Xae+t.toString(16))))}return r};lce.em=function n(e){var t,r,i,a,c,u,s,o,f,h,l,b;this.b=1;OYn(this);t=null;if(this.c==0&&this.a==94){OYn(this);if(e){h=(eZn(),eZn(),++Tht,new U3(5))}else{t=(eZn(),eZn(),++Tht,new U3(4));VFn(t,0,qae);h=(null,++Tht,new U3(4))}}else{h=(eZn(),eZn(),++Tht,new U3(4))}a=true;while((b=this.c)!=1){if(b==0&&this.a==93&&!a)break;a=false;r=this.a;i=false;if(b==10){switch(r){case 100:case 68:case 119:case 87:case 115:case 83:CXn(h,this.dm(r));i=true;break;case 105:case 73:case 99:case 67:r=this.um(h,r);r<0&&(i=true);break;case 112:case 80:l=LNn(this,r);if(!l)throw dm(new NM(oZn((c$(),wre))));CXn(h,l);i=true;break;default:r=this.cm()}}else if(b==20){u=hR(this.i,58,this.d);if(u<0)throw dm(new NM(oZn((c$(),dre))));s=true;if(ZJ(this.i,this.d)==94){++this.d;s=false}c=o1(this.i,this.d,u);o=sen(c,s,(this.e&512)==512);if(!o)throw dm(new NM(oZn((c$(),vre))));CXn(h,o);i=true;if(u+1>=this.j||ZJ(this.i,u+1)!=93)throw dm(new NM(oZn((c$(),dre))));this.d=u+2}OYn(this);if(!i){if(this.c!=0||this.a!=45){VFn(h,r,r)}else{OYn(this);if((b=this.c)==1)throw dm(new NM(oZn((c$(),gre))));if(b==0&&this.a==93){VFn(h,r,r);VFn(h,45,45)}else{f=this.a;b==10&&(f=this.cm());OYn(this);VFn(h,r,f)}}}(this.e&b1n)==b1n&&this.c==0&&this.a==44&&OYn(this)}if(this.c==1)throw dm(new NM(oZn((c$(),gre))));if(t){vWn(t,h);h=t}Mxn(h);bVn(h);this.b=0;OYn(this);return h};lce.fm=function n(){var e,t,r,i;r=this.em(false);while((i=this.c)!=7){e=this.a;if(i==0&&(e==45||e==38)||i==4){OYn(this);if(this.c!=9)throw dm(new NM(oZn((c$(),Mre))));t=this.em(false);if(i==4)CXn(r,t);else if(e==45)vWn(r,t);else if(e==38)Wzn(r,t);else throw dm(new Uy("ASSERT"))}else{throw dm(new NM(oZn((c$(),Tre))))}}OYn(this);return r};lce.gm=function n(){var e,t;e=this.a-48;t=(eZn(),eZn(),++Tht,new G1(12,null,e));!this.g&&(this.g=new fk);Ym(this.g,new nm(e));OYn(this);return t};lce.hm=function n(){OYn(this);return eZn(),ght};lce.im=function n(){OYn(this);return eZn(),wht};lce.jm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.km=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.lm=function n(){OYn(this);return Iln()};lce.mm=function n(){OYn(this);return eZn(),pht};lce.nm=function n(){OYn(this);return eZn(),yht};lce.om=function n(){var e;if(this.d>=this.j||((e=ZJ(this.i,this.d++))&65504)!=64)throw dm(new NM(oZn((c$(),fre))));OYn(this);return eZn(),eZn(),++Tht,new $X(0,e-64)};lce.pm=function n(){OYn(this);return ZGn()};lce.qm=function n(){OYn(this);return eZn(),Mht};lce.rm=function n(){var e;e=(eZn(),eZn(),++Tht,new $X(0,105));OYn(this);return e};lce.sm=function n(){OYn(this);return eZn(),mht};lce.tm=function n(){OYn(this);return eZn(),vht};lce.um=function n(e,t){return this.cm()};lce.vm=function n(){OYn(this);return eZn(),oht};lce.wm=function n(){var e,t,r,i,a;if(this.d+1>=this.j)throw dm(new NM(oZn((c$(),ure))));i=-1;t=null;e=ZJ(this.i,this.d);if(49<=e&&e<=57){i=e-48;!this.g&&(this.g=new fk);Ym(this.g,new nm(i));++this.d;if(ZJ(this.i,this.d)!=41)throw dm(new NM(oZn((c$(),ire))));++this.d}else{e==63&&--this.d;OYn(this);t=uYn(this);switch(t.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw dm(new NM(oZn((c$(),ire))));break;default:throw dm(new NM(oZn((c$(),sre))))}}OYn(this);a=Omn(this);r=null;if(a.e==2){if(a.Pm()!=2)throw dm(new NM(oZn((c$(),ore))));r=a.Lm(1);a=a.Lm(0)}if(this.c!=7)throw dm(new NM(oZn((c$(),ire))));OYn(this);return eZn(),eZn(),++Tht,new prn(i,t,a,r)};lce.xm=function n(){OYn(this);return eZn(),fht};lce.ym=function n(){var e;OYn(this);e=Iz(24,Omn(this));if(this.c!=7)throw dm(new NM(oZn((c$(),ire))));OYn(this);return e};lce.zm=function n(){var e;OYn(this);e=Iz(20,Omn(this));if(this.c!=7)throw dm(new NM(oZn((c$(),ire))));OYn(this);return e};lce.Am=function n(){var e;OYn(this);e=Iz(22,Omn(this));if(this.c!=7)throw dm(new NM(oZn((c$(),ire))));OYn(this);return e};lce.Bm=function n(){var e,t,r,i,a;e=0;r=0;t=-1;while(this.d=this.j)throw dm(new NM(oZn((c$(),are))));if(t==45){++this.d;while(this.d=this.j)throw dm(new NM(oZn((c$(),are))))}if(t==58){++this.d;OYn(this);i=WW(Omn(this),e,r);if(this.c!=7)throw dm(new NM(oZn((c$(),ire))));OYn(this)}else if(t==41){++this.d;OYn(this);i=WW(Omn(this),e,r)}else throw dm(new NM(oZn((c$(),cre))));return i};lce.Cm=function n(){var e;OYn(this);e=Iz(21,Omn(this));if(this.c!=7)throw dm(new NM(oZn((c$(),ire))));OYn(this);return e};lce.Dm=function n(){var e;OYn(this);e=Iz(23,Omn(this));if(this.c!=7)throw dm(new NM(oZn((c$(),ire))));OYn(this);return e};lce.Em=function n(){var e,t;OYn(this);e=this.f++;t=Oz(Omn(this),e);if(this.c!=7)throw dm(new NM(oZn((c$(),ire))));OYn(this);return t};lce.Fm=function n(){var e;OYn(this);e=Oz(Omn(this),0);if(this.c!=7)throw dm(new NM(oZn((c$(),ire))));OYn(this);return e};lce.Gm=function n(e){OYn(this);if(this.c==5){OYn(this);return NX(e,(eZn(),eZn(),++Tht,new a8(9,e)))}else return NX(e,(eZn(),eZn(),++Tht,new a8(3,e)))};lce.Hm=function n(e){var t;OYn(this);t=(eZn(),eZn(),++Tht,new e$(2));if(this.c==5){OYn(this);jVn(t,(null,uht));jVn(t,e)}else{jVn(t,e);jVn(t,(null,uht))}return t};lce.Im=function n(e){OYn(this);if(this.c==5){OYn(this);return eZn(),eZn(),++Tht,new a8(9,e)}else return eZn(),eZn(),++Tht,new a8(3,e)};lce.a=0;lce.b=0;lce.c=0;lce.d=0;lce.e=0;lce.f=1;lce.g=null;lce.j=0;var zft=YW(Gae,"RegEx/RegexParser",836);wDn(1947,836,{},hy);lce.bm=function n(e){return false};lce.cm=function n(){return H_n(this)};lce.dm=function n(e){return SUn(e)};lce.em=function n(e){return LYn(this)};lce.fm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.gm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.hm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.im=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.jm=function n(){OYn(this);return SUn(67)};lce.km=function n(){OYn(this);return SUn(73)};lce.lm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.mm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.nm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.om=function n(){OYn(this);return SUn(99)};lce.pm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.qm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.rm=function n(){OYn(this);return SUn(105)};lce.sm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.tm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.um=function n(e,t){return CXn(e,SUn(t)),-1};lce.vm=function n(){OYn(this);return eZn(),eZn(),++Tht,new $X(0,94)};lce.wm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.xm=function n(){OYn(this);return eZn(),eZn(),++Tht,new $X(0,36)};lce.ym=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.zm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.Am=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.Bm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.Cm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.Dm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.Em=function n(){var e;OYn(this);e=Oz(Omn(this),0);if(this.c!=7)throw dm(new NM(oZn((c$(),ire))));OYn(this);return e};lce.Fm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.Gm=function n(e){OYn(this);return NX(e,(eZn(),eZn(),++Tht,new a8(3,e)))};lce.Hm=function n(e){var t;OYn(this);t=(eZn(),eZn(),++Tht,new e$(2));jVn(t,e);jVn(t,(null,uht));return t};lce.Im=function n(e){OYn(this);return eZn(),eZn(),++Tht,new a8(3,e)};var Wft=null,Qft=null;var Jft=YW(Gae,"RegEx/ParserForXMLSchema",1947);wDn(122,1,ice,em);lce.Jm=function n(e){throw dm(new Uy("Not supported."))};lce.Km=function n(){return-1};lce.Lm=function n(e){return null};lce.Mm=function n(){return null};lce.Nm=function n(e){};lce.Om=function n(e){};lce.Pm=function n(){return 0};lce.Ib=function n(){return this.Qm(0)};lce.Qm=function n(e){return this.e==11?".":""};lce.e=0;var Yft,Zft,nht,eht,tht,rht=null,iht,aht=null,cht,uht,sht=null,oht,fht,hht,lht,bht,wht,dht,ght,vht,pht,mht,kht,yht,Mht,Tht=0;var jht=YW(Gae,"RegEx/Token",122);wDn(138,122,{3:1,138:1,122:1},U3);lce.Qm=function n(e){var t,r,i;if(this.e==4){if(this==cht)r=".";else if(this==iht)r="\\d";else if(this==kht)r="\\w";else if(this==dht)r="\\s";else{i=new YM;i.a+="[";for(t=0;t0&&(i.a+=",",i);if(this.b[t]===this.b[t+1]){ZA(i,Pqn(this.b[t]))}else{ZA(i,Pqn(this.b[t]));i.a+="-";ZA(i,Pqn(this.b[t+1]))}}i.a+="]";r=i.a}}else{if(this==hht)r="\\D";else if(this==bht)r="\\W";else if(this==lht)r="\\S";else{i=new YM;i.a+="[^";for(t=0;t0&&(i.a+=",",i);if(this.b[t]===this.b[t+1]){ZA(i,Pqn(this.b[t]))}else{ZA(i,Pqn(this.b[t]));i.a+="-";ZA(i,Pqn(this.b[t+1]))}}i.a+="]";r=i.a}}return r};lce.a=false;lce.c=false;var Eht=YW(Gae,"RegEx/RangeToken",138);wDn(592,1,{592:1},nm);lce.a=0;var Sht=YW(Gae,"RegEx/RegexParser/ReferencePosition",592);wDn(591,1,{3:1,591:1},yE);lce.Fb=function n(e){var t;if(e==null)return false;if(!G$(e,591))return false;t=bG(e,591);return T_(this.b,t.b)&&this.a==t.a};lce.Hb=function n(){return Mln(this.b+"/"+JKn(this.a))};lce.Ib=function n(){return this.c.Qm(this.a)};lce.a=0;var Pht=YW(Gae,"RegEx/RegularExpression",591);wDn(228,122,ice,$X);lce.Km=function n(){return this.a};lce.Qm=function n(e){var t,r,i;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:i="\\"+IF(this.a&$1n);break;case 12:i="\\f";break;case 10:i="\\n";break;case 13:i="\\r";break;case 9:i="\\t";break;case 27:i="\\e";break;default:if(this.a>=S0n){r=(t=this.a>>>0,"0"+t.toString(16));i="\\v"+o1(r,r.length-6,r.length)}else i=""+IF(this.a&$1n)}break;case 8:this==oht||this==fht?i=""+IF(this.a&$1n):i="\\"+IF(this.a&$1n);break;default:i=null}return i};lce.a=0;var Cht=YW(Gae,"RegEx/Token/CharToken",228);wDn(318,122,ice,a8);lce.Lm=function n(e){return this.a};lce.Nm=function n(e){this.b=e};lce.Om=function n(e){this.c=e};lce.Pm=function n(){return 1};lce.Qm=function n(e){var t;if(this.e==3){if(this.c<0&&this.b<0){t=this.a.Qm(e)+"*"}else if(this.c==this.b){t=this.a.Qm(e)+"{"+this.c+"}"}else if(this.c>=0&&this.b>=0){t=this.a.Qm(e)+"{"+this.c+","+this.b+"}"}else if(this.c>=0&&this.b<0){t=this.a.Qm(e)+"{"+this.c+",}"}else throw dm(new Uy("Token#toString(): CLOSURE "+this.c+MZn+this.b))}else{if(this.c<0&&this.b<0){t=this.a.Qm(e)+"*?"}else if(this.c==this.b){t=this.a.Qm(e)+"{"+this.c+"}?"}else if(this.c>=0&&this.b>=0){t=this.a.Qm(e)+"{"+this.c+","+this.b+"}?"}else if(this.c>=0&&this.b<0){t=this.a.Qm(e)+"{"+this.c+",}?"}else throw dm(new Uy("Token#toString(): NONGREEDYCLOSURE "+this.c+MZn+this.b))}return t};lce.b=0;lce.c=0;var Iht=YW(Gae,"RegEx/Token/ClosureToken",318);wDn(837,122,ice,uW);lce.Lm=function n(e){return e==0?this.a:this.b};lce.Pm=function n(){return 2};lce.Qm=function n(e){var t;this.b.e==3&&this.b.Lm(0)==this.a?t=this.a.Qm(e)+"+":this.b.e==9&&this.b.Lm(0)==this.a?t=this.a.Qm(e)+"+?":t=this.a.Qm(e)+(""+this.b.Qm(e));return t};var Oht=YW(Gae,"RegEx/Token/ConcatToken",837);wDn(1945,122,ice,prn);lce.Lm=function n(e){if(e==0)return this.d;if(e==1)return this.b;throw dm(new Uy("Internal Error: "+e))};lce.Pm=function n(){return!this.b?1:2};lce.Qm=function n(e){var t;this.c>0?t="(?("+this.c+")":this.a.e==8?t="(?("+this.a+")":t="(?"+this.a;!this.b?t+=this.d+")":t+=this.d+"|"+this.b+")";return t};lce.c=0;var Aht=YW(Gae,"RegEx/Token/ConditionToken",1945);wDn(1946,122,ice,H3);lce.Lm=function n(e){return this.b};lce.Pm=function n(){return 1};lce.Qm=function n(e){return"(?"+(this.a==0?"":JKn(this.a))+(this.c==0?"":JKn(this.c))+":"+this.b.Qm(e)+")"};lce.a=0;lce.c=0;var Lht=YW(Gae,"RegEx/Token/ModifierToken",1946);wDn(838,122,ice,LQ);lce.Lm=function n(e){return this.a};lce.Pm=function n(){return 1};lce.Qm=function n(e){var t;t=null;switch(this.e){case 6:this.b==0?t="(?:"+this.a.Qm(e)+")":t="("+this.a.Qm(e)+")";break;case 20:t="(?="+this.a.Qm(e)+")";break;case 21:t="(?!"+this.a.Qm(e)+")";break;case 22:t="(?<="+this.a.Qm(e)+")";break;case 23:t="(?"+this.a.Qm(e)+")"}return t};lce.b=0;var Nht=YW(Gae,"RegEx/Token/ParenToken",838);wDn(530,122,{3:1,122:1,530:1},G1);lce.Mm=function n(){return this.b};lce.Qm=function n(e){return this.e==12?"\\"+this.a:Kxn(this.b)};lce.a=0;var $ht=YW(Gae,"RegEx/Token/StringToken",530);wDn(477,122,ice,e$);lce.Jm=function n(e){jVn(this,e)};lce.Lm=function n(e){return bG(_Q(this.a,e),122)};lce.Pm=function n(){return!this.a?0:this.a.a.c.length};lce.Qm=function n(e){var t,r,i,a,c;if(this.e==1){if(this.a.a.c.length==2){t=bG(_Q(this.a,0),122);r=bG(_Q(this.a,1),122);r.e==3&&r.Lm(0)==t?a=t.Qm(e)+"+":r.e==9&&r.Lm(0)==t?a=t.Qm(e)+"+?":a=t.Qm(e)+(""+r.Qm(e))}else{c=new YM;for(i=0;i=this.c.b:this.a<=this.c.b};lce.Sb=function n(){return this.b>0};lce.Tb=function n(){return this.b};lce.Vb=function n(){return this.b-1};lce.Qb=function n(){throw dm(new CM(fce))};lce.a=0;lce.b=0;var Hht=YW(uce,"ExclusiveRange/RangeIterator",258);var Uht=dJ(hie,"C");var Ght=dJ(wie,"I");var qht=dJ(wZn,"Z");var Xht=dJ(die,"J");var Vht=dJ(fie,"B");var zht=dJ(lie,"D");var Wht=dJ(bie,"F");var Qht=dJ(gie,"S");var Jht=$q("org.eclipse.elk.core.labels","ILabelManager");var Yht=$q(Ete,"DiagnosticChain");var Zht=$q(Wie,"ResourceSet");var nlt=YW(Ete,"InvocationTargetException",null);var elt=(JM(),T9);var tlt=tlt=YSn;Kcn(pm);jcn("permProps",[[["locale","default"],[hce,"gecko1_8"]],[["locale","default"],[hce,"safari"]]]);tlt(null,"elk",null)}).call(this)}).call(this,typeof t.g!=="undefined"?t.g:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],3:[function(n,e,t){"use strict";function r(n,e){if(!(n instanceof e)){throw new TypeError("Cannot call a class as a function")}}function i(n,e){if(!n){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e&&(typeof e==="object"||typeof e==="function")?e:n}function a(n,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof e)}n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:false,writable:true,configurable:true}});if(e)Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e}var c=n("./elk-api.js").default;var u=function(e){a(t,e);function t(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};r(this,t);var a=Object.assign({},e);var c=false;try{n.resolve("web-worker");c=true}catch(f){}if(e.workerUrl){if(c){var u=n("web-worker");a.workerFactory=function(n){return new u(n)}}else{console.warn("Web worker requested but 'web-worker' package not installed. \nConsider installing the package or pass your own 'workerFactory' to ELK's constructor.\n... Falling back to non-web worker version.")}}if(!a.workerFactory){var s=n("./elk-worker.min.js"),o=s.Worker;a.workerFactory=function(n){return new o(n)}}return i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a))}return t}(c);Object.defineProperty(e.exports,"__esModule",{value:true});e.exports=u;u.default=u},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(n,e,t){e.exports=Worker},{}]},{},[3])(3)}))}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/1673.b0ee25168543434bdbca.js b/share/jupyter/lab/static/1673.b0ee25168543434bdbca.js new file mode 100644 index 0000000..8510e63 --- /dev/null +++ b/share/jupyter/lab/static/1673.b0ee25168543434bdbca.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1673],{92952:function(c,t,e){var i=this&&this.__extends||function(){var c=function(t,e){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,t){c.__proto__=t}||function(c,t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))c[e]=t[e]};return c(t,e)};return function(t,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();var f=this&&this.__assign||function(){f=Object.assign||function(c){for(var t,e=1,i=arguments.length;e=c.length)c=void 0;return{value:c&&c[i++],done:!c}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__read||function(c,t){var e=typeof Symbol==="function"&&c[Symbol.iterator];if(!e)return c;var i=e.call(c),f,r=[],s;try{while((t===void 0||t-- >0)&&!(f=i.next()).done)r.push(f.value)}catch(a){s={error:a}}finally{try{if(f&&!f.done&&(e=i["return"]))e.call(i)}finally{if(s)throw s.error}}return r};Object.defineProperty(t,"__esModule",{value:true});t.AddCSS=t.CHTMLFontData=void 0;var n=e(30861);var l=e(60854);var d=e(86810);s(e(30861),t);var S=function(c){i(t,c);function t(){var t=c!==null&&c.apply(this,arguments)||this;t.charUsage=new l.Usage;t.delimUsage=new l.Usage;return t}t.charOptions=function(t,e){return c.charOptions.call(this,t,e)};t.prototype.adaptiveCSS=function(c){this.options.adaptiveCSS=c};t.prototype.clearCache=function(){if(this.options.adaptiveCSS){this.charUsage.clear();this.delimUsage.clear()}};t.prototype.createVariant=function(t,e,i){if(e===void 0){e=null}if(i===void 0){i=null}c.prototype.createVariant.call(this,t,e,i);var f=this.constructor;this.variant[t].classes=f.defaultVariantClasses[t];this.variant[t].letter=f.defaultVariantLetters[t]};t.prototype.defineChars=function(e,i){var f,r;c.prototype.defineChars.call(this,e,i);var s=this.variant[e].letter;try{for(var o=a(Object.keys(i)),n=o.next();!n.done;n=o.next()){var l=n.value;var d=t.charOptions(i,parseInt(l));if(d.f===undefined){d.f=s}}}catch(S){f={error:S}}finally{try{if(n&&!n.done&&(r=o.return))r.call(o)}finally{if(f)throw f.error}}};Object.defineProperty(t.prototype,"styles",{get:function(){var c=this.constructor;var t=f({},c.defaultStyles);this.addFontURLs(t,c.defaultFonts,this.options.fontURL);if(this.options.adaptiveCSS){this.updateStyles(t)}else{this.allStyles(t)}return t},enumerable:false,configurable:true});t.prototype.updateStyles=function(c){var t,e,i,f;try{for(var r=a(this.delimUsage.update()),s=r.next();!s.done;s=r.next()){var n=s.value;this.addDelimiterStyles(c,n,this.delimiters[n])}}catch(p){t={error:p}}finally{try{if(s&&!s.done&&(e=r.return))e.call(r)}finally{if(t)throw t.error}}try{for(var l=a(this.charUsage.update()),d=l.next();!d.done;d=l.next()){var S=o(d.value,2),u=S[0],n=S[1];var h=this.variant[u];this.addCharStyles(c,h.letter,n,h.chars[n])}}catch(B){i={error:B}}finally{try{if(d&&!d.done&&(f=l.return))f.call(l)}finally{if(i)throw i.error}}return c};t.prototype.allStyles=function(c){var t,e,i,f,r,s;try{for(var o=a(Object.keys(this.delimiters)),n=o.next();!n.done;n=o.next()){var l=n.value;var d=parseInt(l);this.addDelimiterStyles(c,d,this.delimiters[d])}}catch(y){t={error:y}}finally{try{if(n&&!n.done&&(e=o.return))e.call(o)}finally{if(t)throw t.error}}try{for(var S=a(Object.keys(this.variant)),u=S.next();!u.done;u=S.next()){var h=u.value;var p=this.variant[h];var B=p.letter;try{for(var v=(r=void 0,a(Object.keys(p.chars))),m=v.next();!m.done;m=v.next()){var l=m.value;var d=parseInt(l);var k=p.chars[d];if((k[3]||{}).smp)continue;if(k.length<4){k[3]={}}this.addCharStyles(c,B,d,k)}}catch(I){r={error:I}}finally{try{if(m&&!m.done&&(s=v.return))s.call(v)}finally{if(r)throw r.error}}}}catch(A){i={error:A}}finally{try{if(u&&!u.done&&(f=S.return))f.call(S)}finally{if(i)throw i.error}}};t.prototype.addFontURLs=function(c,t,e){var i,r;try{for(var s=a(Object.keys(t)),o=s.next();!o.done;o=s.next()){var n=o.value;var l=f({},t[n]);l.src=l.src.replace(/%%URL%%/,e);c[n]=l}}catch(d){i={error:d}}finally{try{if(o&&!o.done&&(r=s.return))r.call(s)}finally{if(i)throw i.error}}};t.prototype.addDelimiterStyles=function(c,t,e){var i=this.charSelector(t);if(e.c&&e.c!==t){i=this.charSelector(e.c);c[".mjx-stretched mjx-c"+i+"::before"]={content:this.charContent(e.c)}}if(!e.stretch)return;if(e.dir===1){this.addDelimiterVStyles(c,i,e)}else{this.addDelimiterHStyles(c,i,e)}};t.prototype.addDelimiterVStyles=function(c,t,e){var i=e.HDW;var f=o(e.stretch,4),r=f[0],s=f[1],a=f[2],n=f[3];var l=this.addDelimiterVPart(c,t,"beg",r,i);this.addDelimiterVPart(c,t,"ext",s,i);var d=this.addDelimiterVPart(c,t,"end",a,i);var S={};if(n){var u=this.addDelimiterVPart(c,t,"mid",n,i);S.height="50%";c["mjx-stretchy-v"+t+" > mjx-mid"]={"margin-top":this.em(-u/2),"margin-bottom":this.em(-u/2)}}if(l){S["border-top-width"]=this.em0(l-.03)}if(d){S["border-bottom-width"]=this.em0(d-.03);c["mjx-stretchy-v"+t+" > mjx-end"]={"margin-top":this.em(-d)}}if(Object.keys(S).length){c["mjx-stretchy-v"+t+" > mjx-ext"]=S}};t.prototype.addDelimiterVPart=function(c,t,e,i,f){if(!i)return 0;var r=this.getDelimiterData(i);var s=(f[2]-r[2])/2;var a={content:this.charContent(i)};if(e!=="ext"){a.padding=this.padding(r,s)}else{a.width=this.em0(f[2]);if(s){a["padding-left"]=this.em0(s)}}c["mjx-stretchy-v"+t+" mjx-"+e+" mjx-c::before"]=a;return r[0]+r[1]};t.prototype.addDelimiterHStyles=function(c,t,e){var i=o(e.stretch,4),f=i[0],r=i[1],s=i[2],a=i[3];var n=e.HDW;this.addDelimiterHPart(c,t,"beg",f,n);this.addDelimiterHPart(c,t,"ext",r,n);this.addDelimiterHPart(c,t,"end",s,n);if(a){this.addDelimiterHPart(c,t,"mid",a,n);c["mjx-stretchy-h"+t+" > mjx-ext"]={width:"50%"}}};t.prototype.addDelimiterHPart=function(c,t,e,i,f){if(!i)return;var r=this.getDelimiterData(i);var s=r[3];var a={content:s&&s.c?'"'+s.c+'"':this.charContent(i)};a.padding=this.padding(f,0,-f[2]);c["mjx-stretchy-h"+t+" mjx-"+e+" mjx-c::before"]=a};t.prototype.addCharStyles=function(c,t,e,i){var f=i[3];var r=f.f!==undefined?f.f:t;var s="mjx-c"+this.charSelector(e)+(r?".TEX-"+r:"");c[s+"::before"]={padding:this.padding(i,0,f.ic||0),content:f.c!=null?'"'+f.c+'"':this.charContent(e)}};t.prototype.getDelimiterData=function(c){return this.getChar("-smallop",c)};t.prototype.em=function(c){return(0,d.em)(c)};t.prototype.em0=function(c){return(0,d.em)(Math.max(0,c))};t.prototype.padding=function(c,t,e){var i=o(c,3),f=i[0],r=i[1],s=i[2];if(t===void 0){t=0}if(e===void 0){e=0}return[f,s+e,r,t].map(this.em0).join(" ")};t.prototype.charContent=function(c){return'"'+(c>=32&&c<=126&&c!==34&&c!==39&&c!==92?String.fromCharCode(c):"\\"+c.toString(16).toUpperCase())+'"'};t.prototype.charSelector=function(c){return".mjx-c"+c.toString(16).toUpperCase()};t.OPTIONS=f(f({},n.FontData.OPTIONS),{fontURL:"js/output/chtml/fonts/tex-woff-v2"});t.JAX="CHTML";t.defaultVariantClasses={};t.defaultVariantLetters={};t.defaultStyles={"mjx-c::before":{display:"block",width:0}};t.defaultFonts={"@font-face /* 0 */":{"font-family":"MJXZERO",src:'url("%%URL%%/MathJax_Zero.woff") format("woff")'}};return t}(n.FontData);t.CHTMLFontData=S;function u(c,t){var e,i;try{for(var f=a(Object.keys(t)),r=f.next();!r.done;r=f.next()){var s=r.value;var o=parseInt(s);Object.assign(n.FontData.charOptions(c,o),t[o])}}catch(l){e={error:l}}finally{try{if(r&&!r.done&&(i=f.return))i.call(f)}finally{if(e)throw e.error}}return c}t.AddCSS=u},60854:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Usage=void 0;var e=function(){function c(){this.used=new Set;this.needsUpdate=[]}c.prototype.add=function(c){var t=JSON.stringify(c);if(!this.used.has(t)){this.needsUpdate.push(c)}this.used.add(t)};c.prototype.has=function(c){return this.used.has(JSON.stringify(c))};c.prototype.clear=function(){this.used.clear();this.needsUpdate=[]};c.prototype.update=function(){var c=this.needsUpdate;this.needsUpdate=[];return c};return c}();t.Usage=e},1673:function(c,t,e){var i=this&&this.__extends||function(){var c=function(t,e){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,t){c.__proto__=t}||function(c,t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))c[e]=t[e]};return c(t,e)};return function(t,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();var f=this&&this.__assign||function(){f=Object.assign||function(c){for(var t,e=1,i=arguments.length;e{Object.defineProperty(t,"__esModule",{value:true});t.boldItalic=void 0;var i=e(92952);var f=e(51091);t.boldItalic=(0,i.AddCSS)(f.boldItalic,{305:{f:"B"},567:{f:"B"},8260:{c:"/"},8710:{c:"\\394"},10744:{c:"/"}})},78451:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.bold=void 0;var i=e(92952);var f=e(95746);t.bold=(0,i.AddCSS)(f.bold,{183:{c:"\\22C5"},305:{f:""},567:{f:""},697:{c:"\\2032"},8194:{c:""},8195:{c:""},8196:{c:""},8197:{c:""},8198:{c:""},8201:{c:""},8202:{c:""},8213:{c:"\\2014"},8214:{c:"\\2225"},8215:{c:"_"},8226:{c:"\\2219"},8243:{c:"\\2032\\2032"},8244:{c:"\\2032\\2032\\2032"},8254:{c:"\\2C9"},8260:{c:"/"},8279:{c:"\\2032\\2032\\2032\\2032"},8407:{c:"\\2192",f:"VB"},8602:{c:"\\2190\\338"},8603:{c:"\\2192\\338"},8622:{c:"\\2194\\338"},8653:{c:"\\21D0\\338"},8654:{c:"\\21D4\\338"},8655:{c:"\\21D2\\338"},8708:{c:"\\2203\\338"},8710:{c:"\\394"},8716:{c:"\\220B\\338"},8740:{c:"\\2223\\338"},8742:{c:"\\2225\\338"},8769:{c:"\\223C\\338"},8772:{c:"\\2243\\338"},8775:{c:"\\2245\\338"},8777:{c:"\\2248\\338"},8802:{c:"\\2261\\338"},8813:{c:"\\224D\\338"},8814:{c:"<\\338"},8815:{c:">\\338"},8816:{c:"\\2264\\338"},8817:{c:"\\2265\\338"},8832:{c:"\\227A\\338"},8833:{c:"\\227B\\338"},8836:{c:"\\2282\\338"},8837:{c:"\\2283\\338"},8840:{c:"\\2286\\338"},8841:{c:"\\2287\\338"},8876:{c:"\\22A2\\338"},8877:{c:"\\22A8\\338"},8930:{c:"\\2291\\338"},8931:{c:"\\2292\\338"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},9653:{c:"\\25B3"},9663:{c:"\\25BD"},10072:{c:"\\2223"},10744:{c:"/",f:"BI"},10799:{c:"\\D7"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}})},18018:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.doubleStruck=void 0;var i=e(32249);Object.defineProperty(t,"doubleStruck",{enumerable:true,get:function(){return i.doubleStruck}})},74141:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.frakturBold=void 0;var i=e(92952);var f=e(45600);t.frakturBold=(0,i.AddCSS)(f.frakturBold,{8260:{c:"/"}})},3785:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.fraktur=void 0;var i=e(92952);var f=e(59534);t.fraktur=(0,i.AddCSS)(f.fraktur,{8260:{c:"/"}})},74868:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.italic=void 0;var i=e(92952);var f=e(14141);t.italic=(0,i.AddCSS)(f.italic,{47:{f:"I"},989:{c:"\\E008",f:"A"},8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/",f:"I"},8710:{c:"\\394",f:"I"},10744:{c:"/",f:"I"}})},87434:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.largeop=void 0;var i=e(92952);var f=e(63969);t.largeop=(0,i.AddCSS)(f.largeop,{8214:{f:"S1"},8260:{c:"/"},8593:{f:"S1"},8595:{f:"S1"},8657:{f:"S1"},8659:{f:"S1"},8739:{f:"S1"},8741:{f:"S1"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},9168:{f:"S1"},10072:{c:"\\2223",f:"S1"},10764:{c:"\\222C\\222C"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}})},82621:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.monospace=void 0;var i=e(92952);var f=e(58626);t.monospace=(0,i.AddCSS)(f.monospace,{697:{c:"\\2032"},913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8215:{c:"_"},8243:{c:"\\2032\\2032"},8244:{c:"\\2032\\2032\\2032"},8260:{c:"/"},8279:{c:"\\2032\\2032\\2032\\2032"},8710:{c:"\\394"}})},56979:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.normal=void 0;var i=e(92952);var f=e(25190);t.normal=(0,i.AddCSS)(f.normal,{163:{f:"MI"},165:{f:"A"},174:{f:"A"},183:{c:"\\22C5"},240:{f:"A"},697:{c:"\\2032"},913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8192:{c:""},8193:{c:""},8194:{c:""},8195:{c:""},8196:{c:""},8197:{c:""},8198:{c:""},8201:{c:""},8202:{c:""},8203:{c:""},8204:{c:""},8213:{c:"\\2014"},8214:{c:"\\2225"},8215:{c:"_"},8226:{c:"\\2219"},8243:{c:"\\2032\\2032"},8244:{c:"\\2032\\2032\\2032"},8245:{f:"A"},8246:{c:"\\2035\\2035",f:"A"},8247:{c:"\\2035\\2035\\2035",f:"A"},8254:{c:"\\2C9"},8260:{c:"/"},8279:{c:"\\2032\\2032\\2032\\2032"},8288:{c:""},8289:{c:""},8290:{c:""},8291:{c:""},8292:{c:""},8407:{c:"\\2192",f:"V"},8450:{c:"C",f:"A"},8459:{c:"H",f:"SC"},8460:{c:"H",f:"FR"},8461:{c:"H",f:"A"},8462:{c:"h",f:"I"},8463:{f:"A"},8464:{c:"I",f:"SC"},8465:{c:"I",f:"FR"},8466:{c:"L",f:"SC"},8469:{c:"N",f:"A"},8473:{c:"P",f:"A"},8474:{c:"Q",f:"A"},8475:{c:"R",f:"SC"},8476:{c:"R",f:"FR"},8477:{c:"R",f:"A"},8484:{c:"Z",f:"A"},8486:{c:"\\3A9"},8487:{f:"A"},8488:{c:"Z",f:"FR"},8492:{c:"B",f:"SC"},8493:{c:"C",f:"FR"},8496:{c:"E",f:"SC"},8497:{c:"F",f:"SC"},8498:{f:"A"},8499:{c:"M",f:"SC"},8502:{f:"A"},8503:{f:"A"},8504:{f:"A"},8513:{f:"A"},8602:{f:"A"},8603:{f:"A"},8606:{f:"A"},8608:{f:"A"},8610:{f:"A"},8611:{f:"A"},8619:{f:"A"},8620:{f:"A"},8621:{f:"A"},8622:{f:"A"},8624:{f:"A"},8625:{f:"A"},8630:{f:"A"},8631:{f:"A"},8634:{f:"A"},8635:{f:"A"},8638:{f:"A"},8639:{f:"A"},8642:{f:"A"},8643:{f:"A"},8644:{f:"A"},8646:{f:"A"},8647:{f:"A"},8648:{f:"A"},8649:{f:"A"},8650:{f:"A"},8651:{f:"A"},8653:{f:"A"},8654:{f:"A"},8655:{f:"A"},8666:{f:"A"},8667:{f:"A"},8669:{f:"A"},8672:{f:"A"},8674:{f:"A"},8705:{f:"A"},8708:{c:"\\2203\\338"},8710:{c:"\\394"},8716:{c:"\\220B\\338"},8717:{f:"A"},8719:{f:"S1"},8720:{f:"S1"},8721:{f:"S1"},8724:{f:"A"},8737:{f:"A"},8738:{f:"A"},8740:{f:"A"},8742:{f:"A"},8748:{f:"S1"},8749:{f:"S1"},8750:{f:"S1"},8756:{f:"A"},8757:{f:"A"},8765:{f:"A"},8769:{f:"A"},8770:{f:"A"},8772:{c:"\\2243\\338"},8775:{c:"\\2246",f:"A"},8777:{c:"\\2248\\338"},8778:{f:"A"},8782:{f:"A"},8783:{f:"A"},8785:{f:"A"},8786:{f:"A"},8787:{f:"A"},8790:{f:"A"},8791:{f:"A"},8796:{f:"A"},8802:{c:"\\2261\\338"},8806:{f:"A"},8807:{f:"A"},8808:{f:"A"},8809:{f:"A"},8812:{f:"A"},8813:{c:"\\224D\\338"},8814:{f:"A"},8815:{f:"A"},8816:{f:"A"},8817:{f:"A"},8818:{f:"A"},8819:{f:"A"},8820:{c:"\\2272\\338"},8821:{c:"\\2273\\338"},8822:{f:"A"},8823:{f:"A"},8824:{c:"\\2276\\338"},8825:{c:"\\2277\\338"},8828:{f:"A"},8829:{f:"A"},8830:{f:"A"},8831:{f:"A"},8832:{f:"A"},8833:{f:"A"},8836:{c:"\\2282\\338"},8837:{c:"\\2283\\338"},8840:{f:"A"},8841:{f:"A"},8842:{f:"A"},8843:{f:"A"},8847:{f:"A"},8848:{f:"A"},8858:{f:"A"},8859:{f:"A"},8861:{f:"A"},8862:{f:"A"},8863:{f:"A"},8864:{f:"A"},8865:{f:"A"},8873:{f:"A"},8874:{f:"A"},8876:{f:"A"},8877:{f:"A"},8878:{f:"A"},8879:{f:"A"},8882:{f:"A"},8883:{f:"A"},8884:{f:"A"},8885:{f:"A"},8888:{f:"A"},8890:{f:"A"},8891:{f:"A"},8892:{f:"A"},8896:{f:"S1"},8897:{f:"S1"},8898:{f:"S1"},8899:{f:"S1"},8903:{f:"A"},8905:{f:"A"},8906:{f:"A"},8907:{f:"A"},8908:{f:"A"},8909:{f:"A"},8910:{f:"A"},8911:{f:"A"},8912:{f:"A"},8913:{f:"A"},8914:{f:"A"},8915:{f:"A"},8916:{f:"A"},8918:{f:"A"},8919:{f:"A"},8920:{f:"A"},8921:{f:"A"},8922:{f:"A"},8923:{f:"A"},8926:{f:"A"},8927:{f:"A"},8928:{f:"A"},8929:{f:"A"},8930:{c:"\\2291\\338"},8931:{c:"\\2292\\338"},8934:{f:"A"},8935:{f:"A"},8936:{f:"A"},8937:{f:"A"},8938:{f:"A"},8939:{f:"A"},8940:{f:"A"},8941:{f:"A"},8965:{c:"\\22BC",f:"A"},8966:{c:"\\2A5E",f:"A"},8988:{c:"\\250C",f:"A"},8989:{c:"\\2510",f:"A"},8990:{c:"\\2514",f:"A"},8991:{c:"\\2518",f:"A"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},9168:{f:"S1"},9416:{f:"A"},9484:{f:"A"},9488:{f:"A"},9492:{f:"A"},9496:{f:"A"},9585:{f:"A"},9586:{f:"A"},9632:{f:"A"},9633:{f:"A"},9642:{c:"\\25A0",f:"A"},9650:{f:"A"},9652:{c:"\\25B2",f:"A"},9653:{c:"\\25B3"},9654:{f:"A"},9656:{c:"\\25B6",f:"A"},9660:{f:"A"},9662:{c:"\\25BC",f:"A"},9663:{c:"\\25BD"},9664:{f:"A"},9666:{c:"\\25C0",f:"A"},9674:{f:"A"},9723:{c:"\\25A1",f:"A"},9724:{c:"\\25A0",f:"A"},9733:{f:"A"},10003:{f:"A"},10016:{f:"A"},10072:{c:"\\2223"},10731:{f:"A"},10744:{c:"/",f:"I"},10752:{f:"S1"},10753:{f:"S1"},10754:{f:"S1"},10756:{f:"S1"},10758:{f:"S1"},10764:{c:"\\222C\\222C",f:"S1"},10799:{c:"\\D7"},10846:{f:"A"},10877:{f:"A"},10878:{f:"A"},10885:{f:"A"},10886:{f:"A"},10887:{f:"A"},10888:{f:"A"},10889:{f:"A"},10890:{f:"A"},10891:{f:"A"},10892:{f:"A"},10901:{f:"A"},10902:{f:"A"},10933:{f:"A"},10934:{f:"A"},10935:{f:"A"},10936:{f:"A"},10937:{f:"A"},10938:{f:"A"},10949:{f:"A"},10950:{f:"A"},10955:{f:"A"},10956:{f:"A"},12296:{c:"\\27E8"},12297:{c:"\\27E9"},57350:{f:"A"},57351:{f:"A"},57352:{f:"A"},57353:{f:"A"},57356:{f:"A"},57357:{f:"A"},57358:{f:"A"},57359:{f:"A"},57360:{f:"A"},57361:{f:"A"},57366:{f:"A"},57367:{f:"A"},57368:{f:"A"},57369:{f:"A"},57370:{f:"A"},57371:{f:"A"},119808:{c:"A",f:"B"},119809:{c:"B",f:"B"},119810:{c:"C",f:"B"},119811:{c:"D",f:"B"},119812:{c:"E",f:"B"},119813:{c:"F",f:"B"},119814:{c:"G",f:"B"},119815:{c:"H",f:"B"},119816:{c:"I",f:"B"},119817:{c:"J",f:"B"},119818:{c:"K",f:"B"},119819:{c:"L",f:"B"},119820:{c:"M",f:"B"},119821:{c:"N",f:"B"},119822:{c:"O",f:"B"},119823:{c:"P",f:"B"},119824:{c:"Q",f:"B"},119825:{c:"R",f:"B"},119826:{c:"S",f:"B"},119827:{c:"T",f:"B"},119828:{c:"U",f:"B"},119829:{c:"V",f:"B"},119830:{c:"W",f:"B"},119831:{c:"X",f:"B"},119832:{c:"Y",f:"B"},119833:{c:"Z",f:"B"},119834:{c:"a",f:"B"},119835:{c:"b",f:"B"},119836:{c:"c",f:"B"},119837:{c:"d",f:"B"},119838:{c:"e",f:"B"},119839:{c:"f",f:"B"},119840:{c:"g",f:"B"},119841:{c:"h",f:"B"},119842:{c:"i",f:"B"},119843:{c:"j",f:"B"},119844:{c:"k",f:"B"},119845:{c:"l",f:"B"},119846:{c:"m",f:"B"},119847:{c:"n",f:"B"},119848:{c:"o",f:"B"},119849:{c:"p",f:"B"},119850:{c:"q",f:"B"},119851:{c:"r",f:"B"},119852:{c:"s",f:"B"},119853:{c:"t",f:"B"},119854:{c:"u",f:"B"},119855:{c:"v",f:"B"},119856:{c:"w",f:"B"},119857:{c:"x",f:"B"},119858:{c:"y",f:"B"},119859:{c:"z",f:"B"},119860:{c:"A",f:"I"},119861:{c:"B",f:"I"},119862:{c:"C",f:"I"},119863:{c:"D",f:"I"},119864:{c:"E",f:"I"},119865:{c:"F",f:"I"},119866:{c:"G",f:"I"},119867:{c:"H",f:"I"},119868:{c:"I",f:"I"},119869:{c:"J",f:"I"},119870:{c:"K",f:"I"},119871:{c:"L",f:"I"},119872:{c:"M",f:"I"},119873:{c:"N",f:"I"},119874:{c:"O",f:"I"},119875:{c:"P",f:"I"},119876:{c:"Q",f:"I"},119877:{c:"R",f:"I"},119878:{c:"S",f:"I"},119879:{c:"T",f:"I"},119880:{c:"U",f:"I"},119881:{c:"V",f:"I"},119882:{c:"W",f:"I"},119883:{c:"X",f:"I"},119884:{c:"Y",f:"I"},119885:{c:"Z",f:"I"},119886:{c:"a",f:"I"},119887:{c:"b",f:"I"},119888:{c:"c",f:"I"},119889:{c:"d",f:"I"},119890:{c:"e",f:"I"},119891:{c:"f",f:"I"},119892:{c:"g",f:"I"},119894:{c:"i",f:"I"},119895:{c:"j",f:"I"},119896:{c:"k",f:"I"},119897:{c:"l",f:"I"},119898:{c:"m",f:"I"},119899:{c:"n",f:"I"},119900:{c:"o",f:"I"},119901:{c:"p",f:"I"},119902:{c:"q",f:"I"},119903:{c:"r",f:"I"},119904:{c:"s",f:"I"},119905:{c:"t",f:"I"},119906:{c:"u",f:"I"},119907:{c:"v",f:"I"},119908:{c:"w",f:"I"},119909:{c:"x",f:"I"},119910:{c:"y",f:"I"},119911:{c:"z",f:"I"},119912:{c:"A",f:"BI"},119913:{c:"B",f:"BI"},119914:{c:"C",f:"BI"},119915:{c:"D",f:"BI"},119916:{c:"E",f:"BI"},119917:{c:"F",f:"BI"},119918:{c:"G",f:"BI"},119919:{c:"H",f:"BI"},119920:{c:"I",f:"BI"},119921:{c:"J",f:"BI"},119922:{c:"K",f:"BI"},119923:{c:"L",f:"BI"},119924:{c:"M",f:"BI"},119925:{c:"N",f:"BI"},119926:{c:"O",f:"BI"},119927:{c:"P",f:"BI"},119928:{c:"Q",f:"BI"},119929:{c:"R",f:"BI"},119930:{c:"S",f:"BI"},119931:{c:"T",f:"BI"},119932:{c:"U",f:"BI"},119933:{c:"V",f:"BI"},119934:{c:"W",f:"BI"},119935:{c:"X",f:"BI"},119936:{c:"Y",f:"BI"},119937:{c:"Z",f:"BI"},119938:{c:"a",f:"BI"},119939:{c:"b",f:"BI"},119940:{c:"c",f:"BI"},119941:{c:"d",f:"BI"},119942:{c:"e",f:"BI"},119943:{c:"f",f:"BI"},119944:{c:"g",f:"BI"},119945:{c:"h",f:"BI"},119946:{c:"i",f:"BI"},119947:{c:"j",f:"BI"},119948:{c:"k",f:"BI"},119949:{c:"l",f:"BI"},119950:{c:"m",f:"BI"},119951:{c:"n",f:"BI"},119952:{c:"o",f:"BI"},119953:{c:"p",f:"BI"},119954:{c:"q",f:"BI"},119955:{c:"r",f:"BI"},119956:{c:"s",f:"BI"},119957:{c:"t",f:"BI"},119958:{c:"u",f:"BI"},119959:{c:"v",f:"BI"},119960:{c:"w",f:"BI"},119961:{c:"x",f:"BI"},119962:{c:"y",f:"BI"},119963:{c:"z",f:"BI"},119964:{c:"A",f:"SC"},119966:{c:"C",f:"SC"},119967:{c:"D",f:"SC"},119970:{c:"G",f:"SC"},119973:{c:"J",f:"SC"},119974:{c:"K",f:"SC"},119977:{c:"N",f:"SC"},119978:{c:"O",f:"SC"},119979:{c:"P",f:"SC"},119980:{c:"Q",f:"SC"},119982:{c:"S",f:"SC"},119983:{c:"T",f:"SC"},119984:{c:"U",f:"SC"},119985:{c:"V",f:"SC"},119986:{c:"W",f:"SC"},119987:{c:"X",f:"SC"},119988:{c:"Y",f:"SC"},119989:{c:"Z",f:"SC"},120068:{c:"A",f:"FR"},120069:{c:"B",f:"FR"},120071:{c:"D",f:"FR"},120072:{c:"E",f:"FR"},120073:{c:"F",f:"FR"},120074:{c:"G",f:"FR"},120077:{c:"J",f:"FR"},120078:{c:"K",f:"FR"},120079:{c:"L",f:"FR"},120080:{c:"M",f:"FR"},120081:{c:"N",f:"FR"},120082:{c:"O",f:"FR"},120083:{c:"P",f:"FR"},120084:{c:"Q",f:"FR"},120086:{c:"S",f:"FR"},120087:{c:"T",f:"FR"},120088:{c:"U",f:"FR"},120089:{c:"V",f:"FR"},120090:{c:"W",f:"FR"},120091:{c:"X",f:"FR"},120092:{c:"Y",f:"FR"},120094:{c:"a",f:"FR"},120095:{c:"b",f:"FR"},120096:{c:"c",f:"FR"},120097:{c:"d",f:"FR"},120098:{c:"e",f:"FR"},120099:{c:"f",f:"FR"},120100:{c:"g",f:"FR"},120101:{c:"h",f:"FR"},120102:{c:"i",f:"FR"},120103:{c:"j",f:"FR"},120104:{c:"k",f:"FR"},120105:{c:"l",f:"FR"},120106:{c:"m",f:"FR"},120107:{c:"n",f:"FR"},120108:{c:"o",f:"FR"},120109:{c:"p",f:"FR"},120110:{c:"q",f:"FR"},120111:{c:"r",f:"FR"},120112:{c:"s",f:"FR"},120113:{c:"t",f:"FR"},120114:{c:"u",f:"FR"},120115:{c:"v",f:"FR"},120116:{c:"w",f:"FR"},120117:{c:"x",f:"FR"},120118:{c:"y",f:"FR"},120119:{c:"z",f:"FR"},120120:{c:"A",f:"A"},120121:{c:"B",f:"A"},120123:{c:"D",f:"A"},120124:{c:"E",f:"A"},120125:{c:"F",f:"A"},120126:{c:"G",f:"A"},120128:{c:"I",f:"A"},120129:{c:"J",f:"A"},120130:{c:"K",f:"A"},120131:{c:"L",f:"A"},120132:{c:"M",f:"A"},120134:{c:"O",f:"A"},120138:{c:"S",f:"A"},120139:{c:"T",f:"A"},120140:{c:"U",f:"A"},120141:{c:"V",f:"A"},120142:{c:"W",f:"A"},120143:{c:"X",f:"A"},120144:{c:"Y",f:"A"},120172:{c:"A",f:"FRB"},120173:{c:"B",f:"FRB"},120174:{c:"C",f:"FRB"},120175:{c:"D",f:"FRB"},120176:{c:"E",f:"FRB"},120177:{c:"F",f:"FRB"},120178:{c:"G",f:"FRB"},120179:{c:"H",f:"FRB"},120180:{c:"I",f:"FRB"},120181:{c:"J",f:"FRB"},120182:{c:"K",f:"FRB"},120183:{c:"L",f:"FRB"},120184:{c:"M",f:"FRB"},120185:{c:"N",f:"FRB"},120186:{c:"O",f:"FRB"},120187:{c:"P",f:"FRB"},120188:{c:"Q",f:"FRB"},120189:{c:"R",f:"FRB"},120190:{c:"S",f:"FRB"},120191:{c:"T",f:"FRB"},120192:{c:"U",f:"FRB"},120193:{c:"V",f:"FRB"},120194:{c:"W",f:"FRB"},120195:{c:"X",f:"FRB"},120196:{c:"Y",f:"FRB"},120197:{c:"Z",f:"FRB"},120198:{c:"a",f:"FRB"},120199:{c:"b",f:"FRB"},120200:{c:"c",f:"FRB"},120201:{c:"d",f:"FRB"},120202:{c:"e",f:"FRB"},120203:{c:"f",f:"FRB"},120204:{c:"g",f:"FRB"},120205:{c:"h",f:"FRB"},120206:{c:"i",f:"FRB"},120207:{c:"j",f:"FRB"},120208:{c:"k",f:"FRB"},120209:{c:"l",f:"FRB"},120210:{c:"m",f:"FRB"},120211:{c:"n",f:"FRB"},120212:{c:"o",f:"FRB"},120213:{c:"p",f:"FRB"},120214:{c:"q",f:"FRB"},120215:{c:"r",f:"FRB"},120216:{c:"s",f:"FRB"},120217:{c:"t",f:"FRB"},120218:{c:"u",f:"FRB"},120219:{c:"v",f:"FRB"},120220:{c:"w",f:"FRB"},120221:{c:"x",f:"FRB"},120222:{c:"y",f:"FRB"},120223:{c:"z",f:"FRB"},120224:{c:"A",f:"SS"},120225:{c:"B",f:"SS"},120226:{c:"C",f:"SS"},120227:{c:"D",f:"SS"},120228:{c:"E",f:"SS"},120229:{c:"F",f:"SS"},120230:{c:"G",f:"SS"},120231:{c:"H",f:"SS"},120232:{c:"I",f:"SS"},120233:{c:"J",f:"SS"},120234:{c:"K",f:"SS"},120235:{c:"L",f:"SS"},120236:{c:"M",f:"SS"},120237:{c:"N",f:"SS"},120238:{c:"O",f:"SS"},120239:{c:"P",f:"SS"},120240:{c:"Q",f:"SS"},120241:{c:"R",f:"SS"},120242:{c:"S",f:"SS"},120243:{c:"T",f:"SS"},120244:{c:"U",f:"SS"},120245:{c:"V",f:"SS"},120246:{c:"W",f:"SS"},120247:{c:"X",f:"SS"},120248:{c:"Y",f:"SS"},120249:{c:"Z",f:"SS"},120250:{c:"a",f:"SS"},120251:{c:"b",f:"SS"},120252:{c:"c",f:"SS"},120253:{c:"d",f:"SS"},120254:{c:"e",f:"SS"},120255:{c:"f",f:"SS"},120256:{c:"g",f:"SS"},120257:{c:"h",f:"SS"},120258:{c:"i",f:"SS"},120259:{c:"j",f:"SS"},120260:{c:"k",f:"SS"},120261:{c:"l",f:"SS"},120262:{c:"m",f:"SS"},120263:{c:"n",f:"SS"},120264:{c:"o",f:"SS"},120265:{c:"p",f:"SS"},120266:{c:"q",f:"SS"},120267:{c:"r",f:"SS"},120268:{c:"s",f:"SS"},120269:{c:"t",f:"SS"},120270:{c:"u",f:"SS"},120271:{c:"v",f:"SS"},120272:{c:"w",f:"SS"},120273:{c:"x",f:"SS"},120274:{c:"y",f:"SS"},120275:{c:"z",f:"SS"},120276:{c:"A",f:"SSB"},120277:{c:"B",f:"SSB"},120278:{c:"C",f:"SSB"},120279:{c:"D",f:"SSB"},120280:{c:"E",f:"SSB"},120281:{c:"F",f:"SSB"},120282:{c:"G",f:"SSB"},120283:{c:"H",f:"SSB"},120284:{c:"I",f:"SSB"},120285:{c:"J",f:"SSB"},120286:{c:"K",f:"SSB"},120287:{c:"L",f:"SSB"},120288:{c:"M",f:"SSB"},120289:{c:"N",f:"SSB"},120290:{c:"O",f:"SSB"},120291:{c:"P",f:"SSB"},120292:{c:"Q",f:"SSB"},120293:{c:"R",f:"SSB"},120294:{c:"S",f:"SSB"},120295:{c:"T",f:"SSB"},120296:{c:"U",f:"SSB"},120297:{c:"V",f:"SSB"},120298:{c:"W",f:"SSB"},120299:{c:"X",f:"SSB"},120300:{c:"Y",f:"SSB"},120301:{c:"Z",f:"SSB"},120302:{c:"a",f:"SSB"},120303:{c:"b",f:"SSB"},120304:{c:"c",f:"SSB"},120305:{c:"d",f:"SSB"},120306:{c:"e",f:"SSB"},120307:{c:"f",f:"SSB"},120308:{c:"g",f:"SSB"},120309:{c:"h",f:"SSB"},120310:{c:"i",f:"SSB"},120311:{c:"j",f:"SSB"},120312:{c:"k",f:"SSB"},120313:{c:"l",f:"SSB"},120314:{c:"m",f:"SSB"},120315:{c:"n",f:"SSB"},120316:{c:"o",f:"SSB"},120317:{c:"p",f:"SSB"},120318:{c:"q",f:"SSB"},120319:{c:"r",f:"SSB"},120320:{c:"s",f:"SSB"},120321:{c:"t",f:"SSB"},120322:{c:"u",f:"SSB"},120323:{c:"v",f:"SSB"},120324:{c:"w",f:"SSB"},120325:{c:"x",f:"SSB"},120326:{c:"y",f:"SSB"},120327:{c:"z",f:"SSB"},120328:{c:"A",f:"SSI"},120329:{c:"B",f:"SSI"},120330:{c:"C",f:"SSI"},120331:{c:"D",f:"SSI"},120332:{c:"E",f:"SSI"},120333:{c:"F",f:"SSI"},120334:{c:"G",f:"SSI"},120335:{c:"H",f:"SSI"},120336:{c:"I",f:"SSI"},120337:{c:"J",f:"SSI"},120338:{c:"K",f:"SSI"},120339:{c:"L",f:"SSI"},120340:{c:"M",f:"SSI"},120341:{c:"N",f:"SSI"},120342:{c:"O",f:"SSI"},120343:{c:"P",f:"SSI"},120344:{c:"Q",f:"SSI"},120345:{c:"R",f:"SSI"},120346:{c:"S",f:"SSI"},120347:{c:"T",f:"SSI"},120348:{c:"U",f:"SSI"},120349:{c:"V",f:"SSI"},120350:{c:"W",f:"SSI"},120351:{c:"X",f:"SSI"},120352:{c:"Y",f:"SSI"},120353:{c:"Z",f:"SSI"},120354:{c:"a",f:"SSI"},120355:{c:"b",f:"SSI"},120356:{c:"c",f:"SSI"},120357:{c:"d",f:"SSI"},120358:{c:"e",f:"SSI"},120359:{c:"f",f:"SSI"},120360:{c:"g",f:"SSI"},120361:{c:"h",f:"SSI"},120362:{c:"i",f:"SSI"},120363:{c:"j",f:"SSI"},120364:{c:"k",f:"SSI"},120365:{c:"l",f:"SSI"},120366:{c:"m",f:"SSI"},120367:{c:"n",f:"SSI"},120368:{c:"o",f:"SSI"},120369:{c:"p",f:"SSI"},120370:{c:"q",f:"SSI"},120371:{c:"r",f:"SSI"},120372:{c:"s",f:"SSI"},120373:{c:"t",f:"SSI"},120374:{c:"u",f:"SSI"},120375:{c:"v",f:"SSI"},120376:{c:"w",f:"SSI"},120377:{c:"x",f:"SSI"},120378:{c:"y",f:"SSI"},120379:{c:"z",f:"SSI"},120432:{c:"A",f:"T"},120433:{c:"B",f:"T"},120434:{c:"C",f:"T"},120435:{c:"D",f:"T"},120436:{c:"E",f:"T"},120437:{c:"F",f:"T"},120438:{c:"G",f:"T"},120439:{c:"H",f:"T"},120440:{c:"I",f:"T"},120441:{c:"J",f:"T"},120442:{c:"K",f:"T"},120443:{c:"L",f:"T"},120444:{c:"M",f:"T"},120445:{c:"N",f:"T"},120446:{c:"O",f:"T"},120447:{c:"P",f:"T"},120448:{c:"Q",f:"T"},120449:{c:"R",f:"T"},120450:{c:"S",f:"T"},120451:{c:"T",f:"T"},120452:{c:"U",f:"T"},120453:{c:"V",f:"T"},120454:{c:"W",f:"T"},120455:{c:"X",f:"T"},120456:{c:"Y",f:"T"},120457:{c:"Z",f:"T"},120458:{c:"a",f:"T"},120459:{c:"b",f:"T"},120460:{c:"c",f:"T"},120461:{c:"d",f:"T"},120462:{c:"e",f:"T"},120463:{c:"f",f:"T"},120464:{c:"g",f:"T"},120465:{c:"h",f:"T"},120466:{c:"i",f:"T"},120467:{c:"j",f:"T"},120468:{c:"k",f:"T"},120469:{c:"l",f:"T"},120470:{c:"m",f:"T"},120471:{c:"n",f:"T"},120472:{c:"o",f:"T"},120473:{c:"p",f:"T"},120474:{c:"q",f:"T"},120475:{c:"r",f:"T"},120476:{c:"s",f:"T"},120477:{c:"t",f:"T"},120478:{c:"u",f:"T"},120479:{c:"v",f:"T"},120480:{c:"w",f:"T"},120481:{c:"x",f:"T"},120482:{c:"y",f:"T"},120483:{c:"z",f:"T"},120488:{c:"A",f:"B"},120489:{c:"B",f:"B"},120490:{c:"\\393",f:"B"},120491:{c:"\\394",f:"B"},120492:{c:"E",f:"B"},120493:{c:"Z",f:"B"},120494:{c:"H",f:"B"},120495:{c:"\\398",f:"B"},120496:{c:"I",f:"B"},120497:{c:"K",f:"B"},120498:{c:"\\39B",f:"B"},120499:{c:"M",f:"B"},120500:{c:"N",f:"B"},120501:{c:"\\39E",f:"B"},120502:{c:"O",f:"B"},120503:{c:"\\3A0",f:"B"},120504:{c:"P",f:"B"},120506:{c:"\\3A3",f:"B"},120507:{c:"T",f:"B"},120508:{c:"\\3A5",f:"B"},120509:{c:"\\3A6",f:"B"},120510:{c:"X",f:"B"},120511:{c:"\\3A8",f:"B"},120512:{c:"\\3A9",f:"B"},120513:{c:"\\2207",f:"B"},120546:{c:"A",f:"I"},120547:{c:"B",f:"I"},120548:{c:"\\393",f:"I"},120549:{c:"\\394",f:"I"},120550:{c:"E",f:"I"},120551:{c:"Z",f:"I"},120552:{c:"H",f:"I"},120553:{c:"\\398",f:"I"},120554:{c:"I",f:"I"},120555:{c:"K",f:"I"},120556:{c:"\\39B",f:"I"},120557:{c:"M",f:"I"},120558:{c:"N",f:"I"},120559:{c:"\\39E",f:"I"},120560:{c:"O",f:"I"},120561:{c:"\\3A0",f:"I"},120562:{c:"P",f:"I"},120564:{c:"\\3A3",f:"I"},120565:{c:"T",f:"I"},120566:{c:"\\3A5",f:"I"},120567:{c:"\\3A6",f:"I"},120568:{c:"X",f:"I"},120569:{c:"\\3A8",f:"I"},120570:{c:"\\3A9",f:"I"},120572:{c:"\\3B1",f:"I"},120573:{c:"\\3B2",f:"I"},120574:{c:"\\3B3",f:"I"},120575:{c:"\\3B4",f:"I"},120576:{c:"\\3B5",f:"I"},120577:{c:"\\3B6",f:"I"},120578:{c:"\\3B7",f:"I"},120579:{c:"\\3B8",f:"I"},120580:{c:"\\3B9",f:"I"},120581:{c:"\\3BA",f:"I"},120582:{c:"\\3BB",f:"I"},120583:{c:"\\3BC",f:"I"},120584:{c:"\\3BD",f:"I"},120585:{c:"\\3BE",f:"I"},120586:{c:"\\3BF",f:"I"},120587:{c:"\\3C0",f:"I"},120588:{c:"\\3C1",f:"I"},120589:{c:"\\3C2",f:"I"},120590:{c:"\\3C3",f:"I"},120591:{c:"\\3C4",f:"I"},120592:{c:"\\3C5",f:"I"},120593:{c:"\\3C6",f:"I"},120594:{c:"\\3C7",f:"I"},120595:{c:"\\3C8",f:"I"},120596:{c:"\\3C9",f:"I"},120597:{c:"\\2202"},120598:{c:"\\3F5",f:"I"},120599:{c:"\\3D1",f:"I"},120600:{c:"\\E009",f:"A"},120601:{c:"\\3D5",f:"I"},120602:{c:"\\3F1",f:"I"},120603:{c:"\\3D6",f:"I"},120604:{c:"A",f:"BI"},120605:{c:"B",f:"BI"},120606:{c:"\\393",f:"BI"},120607:{c:"\\394",f:"BI"},120608:{c:"E",f:"BI"},120609:{c:"Z",f:"BI"},120610:{c:"H",f:"BI"},120611:{c:"\\398",f:"BI"},120612:{c:"I",f:"BI"},120613:{c:"K",f:"BI"},120614:{c:"\\39B",f:"BI"},120615:{c:"M",f:"BI"},120616:{c:"N",f:"BI"},120617:{c:"\\39E",f:"BI"},120618:{c:"O",f:"BI"},120619:{c:"\\3A0",f:"BI"},120620:{c:"P",f:"BI"},120622:{c:"\\3A3",f:"BI"},120623:{c:"T",f:"BI"},120624:{c:"\\3A5",f:"BI"},120625:{c:"\\3A6",f:"BI"},120626:{c:"X",f:"BI"},120627:{c:"\\3A8",f:"BI"},120628:{c:"\\3A9",f:"BI"},120630:{c:"\\3B1",f:"BI"},120631:{c:"\\3B2",f:"BI"},120632:{c:"\\3B3",f:"BI"},120633:{c:"\\3B4",f:"BI"},120634:{c:"\\3B5",f:"BI"},120635:{c:"\\3B6",f:"BI"},120636:{c:"\\3B7",f:"BI"},120637:{c:"\\3B8",f:"BI"},120638:{c:"\\3B9",f:"BI"},120639:{c:"\\3BA",f:"BI"},120640:{c:"\\3BB",f:"BI"},120641:{c:"\\3BC",f:"BI"},120642:{c:"\\3BD",f:"BI"},120643:{c:"\\3BE",f:"BI"},120644:{c:"\\3BF",f:"BI"},120645:{c:"\\3C0",f:"BI"},120646:{c:"\\3C1",f:"BI"},120647:{c:"\\3C2",f:"BI"},120648:{c:"\\3C3",f:"BI"},120649:{c:"\\3C4",f:"BI"},120650:{c:"\\3C5",f:"BI"},120651:{c:"\\3C6",f:"BI"},120652:{c:"\\3C7",f:"BI"},120653:{c:"\\3C8",f:"BI"},120654:{c:"\\3C9",f:"BI"},120655:{c:"\\2202",f:"B"},120656:{c:"\\3F5",f:"BI"},120657:{c:"\\3D1",f:"BI"},120658:{c:"\\E009",f:"A"},120659:{c:"\\3D5",f:"BI"},120660:{c:"\\3F1",f:"BI"},120661:{c:"\\3D6",f:"BI"},120662:{c:"A",f:"SSB"},120663:{c:"B",f:"SSB"},120664:{c:"\\393",f:"SSB"},120665:{c:"\\394",f:"SSB"},120666:{c:"E",f:"SSB"},120667:{c:"Z",f:"SSB"},120668:{c:"H",f:"SSB"},120669:{c:"\\398",f:"SSB"},120670:{c:"I",f:"SSB"},120671:{c:"K",f:"SSB"},120672:{c:"\\39B",f:"SSB"},120673:{c:"M",f:"SSB"},120674:{c:"N",f:"SSB"},120675:{c:"\\39E",f:"SSB"},120676:{c:"O",f:"SSB"},120677:{c:"\\3A0",f:"SSB"},120678:{c:"P",f:"SSB"},120680:{c:"\\3A3",f:"SSB"},120681:{c:"T",f:"SSB"},120682:{c:"\\3A5",f:"SSB"},120683:{c:"\\3A6",f:"SSB"},120684:{c:"X",f:"SSB"},120685:{c:"\\3A8",f:"SSB"},120686:{c:"\\3A9",f:"SSB"},120782:{c:"0",f:"B"},120783:{c:"1",f:"B"},120784:{c:"2",f:"B"},120785:{c:"3",f:"B"},120786:{c:"4",f:"B"},120787:{c:"5",f:"B"},120788:{c:"6",f:"B"},120789:{c:"7",f:"B"},120790:{c:"8",f:"B"},120791:{c:"9",f:"B"},120802:{c:"0",f:"SS"},120803:{c:"1",f:"SS"},120804:{c:"2",f:"SS"},120805:{c:"3",f:"SS"},120806:{c:"4",f:"SS"},120807:{c:"5",f:"SS"},120808:{c:"6",f:"SS"},120809:{c:"7",f:"SS"},120810:{c:"8",f:"SS"},120811:{c:"9",f:"SS"},120812:{c:"0",f:"SSB"},120813:{c:"1",f:"SSB"},120814:{c:"2",f:"SSB"},120815:{c:"3",f:"SSB"},120816:{c:"4",f:"SSB"},120817:{c:"5",f:"SSB"},120818:{c:"6",f:"SSB"},120819:{c:"7",f:"SSB"},120820:{c:"8",f:"SSB"},120821:{c:"9",f:"SSB"},120822:{c:"0",f:"T"},120823:{c:"1",f:"T"},120824:{c:"2",f:"T"},120825:{c:"3",f:"T"},120826:{c:"4",f:"T"},120827:{c:"5",f:"T"},120828:{c:"6",f:"T"},120829:{c:"7",f:"T"},120830:{c:"8",f:"T"},120831:{c:"9",f:"T"}})},83356:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.sansSerifBoldItalic=void 0;var i=e(92952);var f=e(47033);t.sansSerifBoldItalic=(0,i.AddCSS)(f.sansSerifBoldItalic,{305:{f:"SSB"},567:{f:"SSB"}})},11211:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.sansSerifBold=void 0;var i=e(92952);var f=e(94872);t.sansSerifBold=(0,i.AddCSS)(f.sansSerifBold,{8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/"},8710:{c:"\\394"}})},76316:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.sansSerifItalic=void 0;var i=e(92952);var f=e(9255);t.sansSerifItalic=(0,i.AddCSS)(f.sansSerifItalic,{913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/"},8710:{c:"\\394"}})},16651:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.sansSerif=void 0;var i=e(92952);var f=e(83366);t.sansSerif=(0,i.AddCSS)(f.sansSerif,{913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/"},8710:{c:"\\394"}})},56755:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.scriptBold=void 0;var i=e(21616);Object.defineProperty(t,"scriptBold",{enumerable:true,get:function(){return i.scriptBold}})},45491:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.script=void 0;var i=e(24062);Object.defineProperty(t,"script",{enumerable:true,get:function(){return i.script}})},7598:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.smallop=void 0;var i=e(92952);var f=e(22578);t.smallop=(0,i.AddCSS)(f.smallop,{8260:{c:"/"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},10072:{c:"\\2223"},10764:{c:"\\222C\\222C"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}})},83085:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.texCalligraphicBold=void 0;var i=e(92952);var f=e(70286);t.texCalligraphicBold=(0,i.AddCSS)(f.texCalligraphicBold,{305:{f:"B"},567:{f:"B"}})},74681:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.texCalligraphic=void 0;var i=e(57552);Object.defineProperty(t,"texCalligraphic",{enumerable:true,get:function(){return i.texCalligraphic}})},91611:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.texMathit=void 0;var i=e(24398);Object.defineProperty(t,"texMathit",{enumerable:true,get:function(){return i.texMathit}})},56848:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.texOldstyleBold=void 0;var i=e(20628);Object.defineProperty(t,"texOldstyleBold",{enumerable:true,get:function(){return i.texOldstyleBold}})},74878:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.texOldstyle=void 0;var i=e(41855);Object.defineProperty(t,"texOldstyle",{enumerable:true,get:function(){return i.texOldstyle}})},99652:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.texSize3=void 0;var i=e(92952);var f=e(75431);t.texSize3=(0,i.AddCSS)(f.texSize3,{8260:{c:"/"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}})},39729:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.texSize4=void 0;var i=e(92952);var f=e(98278);t.texSize4=(0,i.AddCSS)(f.texSize4,{8260:{c:"/"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},12296:{c:"\\27E8"},12297:{c:"\\27E9"},57685:{c:"\\E153\\E152"},57686:{c:"\\E151\\E150"}})},82599:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.texVariant=void 0;var i=e(92952);var f=e(90456);t.texVariant=(0,i.AddCSS)(f.texVariant,{1008:{c:"\\E009"},8463:{f:""},8740:{c:"\\E006"},8742:{c:"\\E007"},8808:{c:"\\E00C"},8809:{c:"\\E00D"},8816:{c:"\\E011"},8817:{c:"\\E00E"},8840:{c:"\\E016"},8841:{c:"\\E018"},8842:{c:"\\E01A"},8843:{c:"\\E01B"},10887:{c:"\\E010"},10888:{c:"\\E00F"},10955:{c:"\\E017"},10956:{c:"\\E019"}})},30861:function(c,t,e){var i=this&&this.__assign||function(){i=Object.assign||function(c){for(var t,e=1,i=arguments.length;e0)&&!(f=i.next()).done)r.push(f.value)}catch(a){s={error:a}}finally{try{if(f&&!f.done&&(e=i["return"]))e.call(i)}finally{if(s)throw s.error}}return r};var r=this&&this.__spreadArray||function(c,t,e){if(e||arguments.length===2)for(var i=0,f=t.length,r;i=c.length)c=void 0;return{value:c&&c[i++],done:!c}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:true});t.FontData=t.NOSTRETCH=t.H=t.V=void 0;var a=e(34981);t.V=1;t.H=2;t.NOSTRETCH={dir:0};var o=function(){function c(c){var t,e,o,n;if(c===void 0){c=null}this.variant={};this.delimiters={};this.cssFontMap={};this.remapChars={};this.skewIcFactor=.75;var l=this.constructor;this.options=(0,a.userOptions)((0,a.defaultOptions)({},l.OPTIONS),c);this.params=i({},l.defaultParams);this.sizeVariants=r([],f(l.defaultSizeVariants),false);this.stretchVariants=r([],f(l.defaultStretchVariants),false);this.cssFontMap=i({},l.defaultCssFonts);try{for(var d=s(Object.keys(this.cssFontMap)),S=d.next();!S.done;S=d.next()){var u=S.value;if(this.cssFontMap[u][0]==="unknown"){this.cssFontMap[u][0]=this.options.unknownFamily}}}catch(v){t={error:v}}finally{try{if(S&&!S.done&&(e=d.return))e.call(d)}finally{if(t)throw t.error}}this.cssFamilyPrefix=l.defaultCssFamilyPrefix;this.createVariants(l.defaultVariants);this.defineDelimiters(l.defaultDelimiters);try{for(var h=s(Object.keys(l.defaultChars)),p=h.next();!p.done;p=h.next()){var B=p.value;this.defineChars(B,l.defaultChars[B])}}catch(m){o={error:m}}finally{try{if(p&&!p.done&&(n=h.return))n.call(h)}finally{if(o)throw o.error}}this.defineRemap("accent",l.defaultAccentMap);this.defineRemap("mo",l.defaultMoMap);this.defineRemap("mn",l.defaultMnMap)}c.charOptions=function(c,t){var e=c[t];if(e.length===3){e[3]={}}return e[3]};Object.defineProperty(c.prototype,"styles",{get:function(){return this._styles},set:function(c){this._styles=c},enumerable:false,configurable:true});c.prototype.createVariant=function(c,t,e){if(t===void 0){t=null}if(e===void 0){e=null}var i={linked:[],chars:t?Object.create(this.variant[t].chars):{}};if(e&&this.variant[e]){Object.assign(i.chars,this.variant[e].chars);this.variant[e].linked.push(i.chars);i.chars=Object.create(i.chars)}this.remapSmpChars(i.chars,c);this.variant[c]=i};c.prototype.remapSmpChars=function(c,t){var e,i,r,a;var o=this.constructor;if(o.VariantSmp[t]){var n=o.SmpRemap;var l=[null,null,o.SmpRemapGreekU,o.SmpRemapGreekL];try{for(var d=s(o.SmpRanges),S=d.next();!S.done;S=d.next()){var u=f(S.value,3),h=u[0],p=u[1],B=u[2];var v=o.VariantSmp[t][h];if(!v)continue;for(var m=p;m<=B;m++){if(m===930)continue;var k=v+m-p;c[m]=this.smpChar(n[k]||k)}if(l[h]){try{for(var y=(r=void 0,s(Object.keys(l[h]).map((function(c){return parseInt(c)})))),I=y.next();!I.done;I=y.next()){var m=I.value;c[m]=this.smpChar(v+l[h][m])}}catch(A){r={error:A}}finally{try{if(I&&!I.done&&(a=y.return))a.call(y)}finally{if(r)throw r.error}}}}}catch(b){e={error:b}}finally{try{if(S&&!S.done&&(i=d.return))i.call(d)}finally{if(e)throw e.error}}}if(t==="bold"){c[988]=this.smpChar(120778);c[989]=this.smpChar(120779)}};c.prototype.smpChar=function(c){return[,,,{smp:c}]};c.prototype.createVariants=function(c){var t,e;try{for(var i=s(c),f=i.next();!f.done;f=i.next()){var r=f.value;this.createVariant(r[0],r[1],r[2])}}catch(a){t={error:a}}finally{try{if(f&&!f.done&&(e=i.return))e.call(i)}finally{if(t)throw t.error}}};c.prototype.defineChars=function(c,t){var e,i;var f=this.variant[c];Object.assign(f.chars,t);try{for(var r=s(f.linked),a=r.next();!a.done;a=r.next()){var o=a.value;Object.assign(o,t)}}catch(n){e={error:n}}finally{try{if(a&&!a.done&&(i=r.return))i.call(r)}finally{if(e)throw e.error}}};c.prototype.defineDelimiters=function(c){Object.assign(this.delimiters,c)};c.prototype.defineRemap=function(c,t){if(!this.remapChars.hasOwnProperty(c)){this.remapChars[c]={}}Object.assign(this.remapChars[c],t)};c.prototype.getDelimiter=function(c){return this.delimiters[c]};c.prototype.getSizeVariant=function(c,t){if(this.delimiters[c].variants){t=this.delimiters[c].variants[t]}return this.sizeVariants[t]};c.prototype.getStretchVariant=function(c,t){return this.stretchVariants[this.delimiters[c].stretchv?this.delimiters[c].stretchv[t]:0]};c.prototype.getChar=function(c,t){return this.variant[c].chars[t]};c.prototype.getVariant=function(c){return this.variant[c]};c.prototype.getCssFont=function(c){return this.cssFontMap[c]||["serif",false,false]};c.prototype.getFamily=function(c){return this.cssFamilyPrefix?this.cssFamilyPrefix+", "+c:c};c.prototype.getRemappedChar=function(c,t){var e=this.remapChars[c]||{};return e[t]};c.OPTIONS={unknownFamily:"serif"};c.JAX="common";c.NAME="";c.defaultVariants=[["normal"],["bold","normal"],["italic","normal"],["bold-italic","italic","bold"],["double-struck","bold"],["fraktur","normal"],["bold-fraktur","bold","fraktur"],["script","italic"],["bold-script","bold-italic","script"],["sans-serif","normal"],["bold-sans-serif","bold","sans-serif"],["sans-serif-italic","italic","sans-serif"],["sans-serif-bold-italic","bold-italic","bold-sans-serif"],["monospace","normal"]];c.defaultCssFonts={normal:["unknown",false,false],bold:["unknown",false,true],italic:["unknown",true,false],"bold-italic":["unknown",true,true],"double-struck":["unknown",false,true],fraktur:["unknown",false,false],"bold-fraktur":["unknown",false,true],script:["cursive",false,false],"bold-script":["cursive",false,true],"sans-serif":["sans-serif",false,false],"bold-sans-serif":["sans-serif",false,true],"sans-serif-italic":["sans-serif",true,false],"sans-serif-bold-italic":["sans-serif",true,true],monospace:["monospace",false,false]};c.defaultCssFamilyPrefix="";c.VariantSmp={bold:[119808,119834,120488,120514,120782],italic:[119860,119886,120546,120572],"bold-italic":[119912,119938,120604,120630],script:[119964,119990],"bold-script":[120016,120042],fraktur:[120068,120094],"double-struck":[120120,120146,,,120792],"bold-fraktur":[120172,120198],"sans-serif":[120224,120250,,,120802],"bold-sans-serif":[120276,120302,120662,120688,120812],"sans-serif-italic":[120328,120354],"sans-serif-bold-italic":[120380,120406,120720,120746],monospace:[120432,120458,,,120822]};c.SmpRanges=[[0,65,90],[1,97,122],[2,913,937],[3,945,969],[4,48,57]];c.SmpRemap={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484};c.SmpRemapGreekU={8711:25,1012:17};c.SmpRemapGreekL={977:27,981:29,982:31,1008:28,1009:30,1013:26,8706:25};c.defaultAccentMap={768:"ˋ",769:"ˊ",770:"ˆ",771:"˜",772:"ˉ",774:"˘",775:"˙",776:"¨",778:"˚",780:"ˇ",8594:"⃗",8242:"'",8243:"''",8244:"'''",8245:"`",8246:"``",8247:"```",8279:"''''",8400:"↼",8401:"⇀",8406:"←",8417:"↔",8432:"*",8411:"...",8412:"....",8428:"⇁",8429:"↽",8430:"←",8431:"→"};c.defaultMoMap={45:"−"};c.defaultMnMap={45:"−"};c.defaultParams={x_height:.442,quad:1,num1:.676,num2:.394,num3:.444,denom1:.686,denom2:.345,sup1:.413,sup2:.363,sup3:.289,sub1:.15,sub2:.247,sup_drop:.386,sub_drop:.05,delim1:2.39,delim2:1,axis_height:.25,rule_thickness:.06,big_op_spacing1:.111,big_op_spacing2:.167,big_op_spacing3:.2,big_op_spacing4:.6,big_op_spacing5:.1,surd_height:.075,scriptspace:.05,nulldelimiterspace:.12,delimiterfactor:901,delimitershortfall:.3,min_rule_thickness:1.25,separation_factor:1.75,extra_ic:.033};c.defaultDelimiters={};c.defaultChars={};c.defaultSizeVariants=[];c.defaultStretchVariants=[];return c}();t.FontData=o},6382:function(c,t){var e=this&&this.__extends||function(){var c=function(t,e){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,t){c.__proto__=t}||function(c,t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))c[e]=t[e]};return c(t,e)};return function(t,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();var i=this&&this.__assign||function(){i=Object.assign||function(c){for(var t,e=1,i=arguments.length;e0)&&!(f=i.next()).done)r.push(f.value)}catch(a){s={error:a}}finally{try{if(f&&!f.done&&(e=i["return"]))e.call(i)}finally{if(s)throw s.error}}return r};var r=this&&this.__spreadArray||function(c,t,e){if(e||arguments.length===2)for(var i=0,f=t.length,r;i{Object.defineProperty(t,"__esModule",{value:true});t.boldItalic=void 0;t.boldItalic={47:[.711,.21,.894],305:[.452,.008,.394,{sk:.0319}],567:[.451,.201,.439,{sk:.0958}],8260:[.711,.21,.894],8710:[.711,0,.958,{sk:.192}],10744:[.711,.21,.894]}},95746:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.bold=void 0;t.bold={33:[.705,0,.35],34:[.694,-.329,.603],35:[.694,.193,.958],36:[.75,.056,.575],37:[.75,.056,.958],38:[.705,.011,.894],39:[.694,-.329,.319],40:[.75,.249,.447],41:[.75,.249,.447],42:[.75,-.306,.575],43:[.633,.131,.894],44:[.171,.194,.319],45:[.278,-.166,.383],46:[.171,0,.319],47:[.75,.25,.575],58:[.444,0,.319],59:[.444,.194,.319],60:[.587,.085,.894],61:[.393,-.109,.894],62:[.587,.085,.894],63:[.7,0,.543],64:[.699,.006,.894],91:[.75,.25,.319],92:[.75,.25,.575],93:[.75,.25,.319],94:[.694,-.52,.575],95:[-.01,.061,.575],96:[.706,-.503,.575],123:[.75,.25,.575],124:[.75,.249,.319],125:[.75,.25,.575],126:[.344,-.202,.575],168:[.695,-.535,.575],172:[.371,-.061,.767],175:[.607,-.54,.575],176:[.702,-.536,.575],177:[.728,.035,.894],180:[.706,-.503,.575],183:[.336,-.166,.319],215:[.53,.028,.894],247:[.597,.096,.894],305:[.442,0,.278,{sk:.0278}],567:[.442,.205,.306,{sk:.0833}],697:[.563,-.033,.344],710:[.694,-.52,.575],711:[.66,-.515,.575],713:[.607,-.54,.575],714:[.706,-.503,.575],715:[.706,-.503,.575],728:[.694,-.5,.575],729:[.695,-.525,.575],730:[.702,-.536,.575],732:[.694,-.552,.575],768:[.706,-.503,0],769:[.706,-.503,0],770:[.694,-.52,0],771:[.694,-.552,0],772:[.607,-.54,0],774:[.694,-.5,0],775:[.695,-.525,0],776:[.695,-.535,0],778:[.702,-.536,0],779:[.714,-.511,0],780:[.66,-.515,0],824:[.711,.21,0],8194:[0,0,.5],8195:[0,0,.999],8196:[0,0,.333],8197:[0,0,.25],8198:[0,0,.167],8201:[0,0,.167],8202:[0,0,.083],8211:[.3,-.249,.575],8212:[.3,-.249,1.15],8213:[.3,-.249,1.15],8214:[.75,.248,.575],8215:[-.01,.061,.575],8216:[.694,-.329,.319],8217:[.694,-.329,.319],8220:[.694,-.329,.603],8221:[.694,-.329,.603],8224:[.702,.211,.511],8225:[.702,.202,.511],8226:[.474,-.028,.575],8230:[.171,0,1.295],8242:[.563,-.033,.344],8243:[.563,0,.688],8244:[.563,0,1.032],8254:[.607,-.54,.575],8260:[.75,.25,.575],8279:[.563,0,1.376],8407:[.723,-.513,.575],8463:[.694,.008,.668,{sk:-.0319}],8467:[.702,.019,.474,{sk:.128}],8472:[.461,.21,.74],8501:[.694,0,.703],8592:[.518,.017,1.15],8593:[.694,.193,.575],8594:[.518,.017,1.15],8595:[.694,.194,.575],8596:[.518,.017,1.15],8597:[.767,.267,.575],8598:[.724,.194,1.15],8599:[.724,.193,1.15],8600:[.694,.224,1.15],8601:[.694,.224,1.15],8602:[.711,.21,1.15],8603:[.711,.21,1.15],8614:[.518,.017,1.15],8617:[.518,.017,1.282],8618:[.518,.017,1.282],8622:[.711,.21,1.15],8636:[.518,-.22,1.15],8637:[.281,.017,1.15],8640:[.518,-.22,1.15],8641:[.281,.017,1.15],8652:[.718,.017,1.15],8653:[.711,.21,1.15],8654:[.711,.21,1.15],8655:[.711,.21,1.15],8656:[.547,.046,1.15],8657:[.694,.193,.703],8658:[.547,.046,1.15],8659:[.694,.194,.703],8660:[.547,.046,1.15],8661:[.767,.267,.703],8704:[.694,.016,.639],8707:[.694,0,.639],8708:[.711,.21,.639],8709:[.767,.073,.575],8710:[.698,0,.958],8712:[.587,.086,.767],8713:[.711,.21,.767],8715:[.587,.086,.767],8716:[.711,.21,.767],8722:[.281,-.221,.894],8723:[.537,.227,.894],8725:[.75,.25,.575],8726:[.75,.25,.575],8727:[.472,-.028,.575],8728:[.474,-.028,.575],8729:[.474,-.028,.575],8730:[.82,.18,.958,{ic:.03}],8733:[.451,.008,.894],8734:[.452,.008,1.15],8736:[.714,0,.722],8739:[.75,.249,.319],8740:[.75,.249,.319],8741:[.75,.248,.575],8742:[.75,.248,.575],8743:[.604,.017,.767],8744:[.604,.016,.767],8745:[.603,.016,.767],8746:[.604,.016,.767],8747:[.711,.211,.569,{ic:.063}],8764:[.391,-.109,.894],8768:[.583,.082,.319],8769:[.711,.21,.894],8771:[.502,0,.894],8772:[.711,.21,.894],8773:[.638,.027,.894],8775:[.711,.21,.894],8776:[.524,-.032,.894],8777:[.711,.21,.894],8781:[.533,.032,.894],8784:[.721,-.109,.894],8800:[.711,.21,.894],8801:[.505,0,.894],8802:[.711,.21,.894],8804:[.697,.199,.894],8805:[.697,.199,.894],8810:[.617,.116,1.15],8811:[.618,.116,1.15],8813:[.711,.21,.894],8814:[.711,.21,.894],8815:[.711,.21,.894],8816:[.711,.21,.894],8817:[.711,.21,.894],8826:[.585,.086,.894],8827:[.586,.086,.894],8832:[.711,.21,.894],8833:[.711,.21,.894],8834:[.587,.085,.894],8835:[.587,.086,.894],8836:[.711,.21,.894],8837:[.711,.21,.894],8838:[.697,.199,.894],8839:[.697,.199,.894],8840:[.711,.21,.894],8841:[.711,.21,.894],8846:[.604,.016,.767],8849:[.697,.199,.894],8850:[.697,.199,.894],8851:[.604,0,.767],8852:[.604,0,.767],8853:[.632,.132,.894],8854:[.632,.132,.894],8855:[.632,.132,.894],8856:[.632,.132,.894],8857:[.632,.132,.894],8866:[.693,0,.703],8867:[.693,0,.703],8868:[.694,0,.894],8869:[.693,0,.894],8872:[.75,.249,.974],8876:[.711,.21,.703],8877:[.75,.249,.974],8900:[.523,.021,.575],8901:[.336,-.166,.319],8902:[.502,0,.575],8904:[.54,.039,1],8930:[.711,.21,.894],8931:[.711,.21,.894],8942:[.951,.029,.319],8943:[.336,-.166,1.295],8945:[.871,-.101,1.323],8968:[.75,.248,.511],8969:[.75,.248,.511],8970:[.749,.248,.511],8971:[.749,.248,.511],8994:[.405,-.108,1.15],8995:[.392,-.126,1.15],9001:[.75,.249,.447],9002:[.75,.249,.447],9651:[.711,0,1.022],9653:[.711,0,1.022],9657:[.54,.039,.575],9661:[.5,.21,1.022],9663:[.5,.21,1.022],9667:[.539,.038,.575],9711:[.711,.211,1.15],9824:[.719,.129,.894],9825:[.711,.024,.894],9826:[.719,.154,.894],9827:[.719,.129,.894],9837:[.75,.017,.447],9838:[.741,.223,.447],9839:[.724,.224,.447],10072:[.75,.249,.319],10216:[.75,.249,.447],10217:[.75,.249,.447],10229:[.518,.017,1.805],10230:[.518,.017,1.833],10231:[.518,.017,2.126],10232:[.547,.046,1.868],10233:[.547,.046,1.87],10234:[.547,.046,2.126],10236:[.518,.017,1.833],10744:[.711,.21,.894],10799:[.53,.028,.894],10815:[.686,0,.9],10927:[.696,.199,.894],10928:[.697,.199,.894],12296:[.75,.249,.447],12297:[.75,.249,.447]}},6987:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.delimiters=t.VSIZES=t.HDW3=t.HDW2=t.HDW1=void 0;var i=e(30861);t.HDW1=[.75,.25,.875];t.HDW2=[.85,.349,.667];t.HDW3=[.583,.082,.5];t.VSIZES=[1,1.2,1.8,2.4,3];var f={c:47,dir:i.V,sizes:t.VSIZES};var r={c:175,dir:i.H,sizes:[.5],stretch:[0,175],HDW:[.59,-.544,.5]};var s={c:710,dir:i.H,sizes:[.5,.556,1,1.444,1.889]};var a={c:732,dir:i.H,sizes:[.5,.556,1,1.444,1.889]};var o={c:8211,dir:i.H,sizes:[.5],stretch:[0,8211],HDW:[.285,-.248,.5]};var n={c:8592,dir:i.H,sizes:[1],stretch:[8592,8722],HDW:t.HDW3};var l={c:8594,dir:i.H,sizes:[1],stretch:[0,8722,8594],HDW:t.HDW3};var d={c:8596,dir:i.H,sizes:[1],stretch:[8592,8722,8594],HDW:t.HDW3};var S={c:8612,dir:i.H,stretch:[8592,8722,8739],HDW:t.HDW3,min:1.278};var u={c:8614,dir:i.H,sizes:[1],stretch:[8739,8722,8594],HDW:t.HDW3};var h={c:8656,dir:i.H,sizes:[1],stretch:[8656,61],HDW:t.HDW3};var p={c:8658,dir:i.H,sizes:[1],stretch:[0,61,8658],HDW:t.HDW3};var B={c:8660,dir:i.H,sizes:[1],stretch:[8656,61,8658],HDW:t.HDW3};var v={c:8722,dir:i.H,sizes:[.778],stretch:[0,8722],HDW:t.HDW3};var m={c:8739,dir:i.V,sizes:[1],stretch:[0,8739],HDW:[.627,.015,.333]};var k={c:9180,dir:i.H,sizes:[.778,1],schar:[8994,8994],variants:[5,0],stretch:[57680,57684,57681],HDW:[.32,.2,.5]};var y={c:9181,dir:i.H,sizes:[.778,1],schar:[8995,8995],variants:[5,0],stretch:[57682,57684,57683],HDW:[.32,.2,.5]};var I={c:9182,dir:i.H,stretch:[57680,57684,57681,57685],HDW:[.32,.2,.5],min:1.8};var A={c:9183,dir:i.H,stretch:[57682,57684,57683,57686],HDW:[.32,.2,.5],min:1.8};var b={c:10216,dir:i.V,sizes:t.VSIZES};var x={c:10217,dir:i.V,sizes:t.VSIZES};var M={c:10502,dir:i.H,stretch:[8656,61,8739],HDW:t.HDW3,min:1.278};var _={c:10503,dir:i.H,stretch:[8872,61,8658],HDW:t.HDW3,min:1.278};t.delimiters={40:{dir:i.V,sizes:t.VSIZES,stretch:[9115,9116,9117],HDW:[.85,.349,.875]},41:{dir:i.V,sizes:t.VSIZES,stretch:[9118,9119,9120],HDW:[.85,.349,.875]},45:v,47:f,61:{dir:i.H,sizes:[.778],stretch:[0,61],HDW:t.HDW3},91:{dir:i.V,sizes:t.VSIZES,stretch:[9121,9122,9123],HDW:t.HDW2},92:{dir:i.V,sizes:t.VSIZES},93:{dir:i.V,sizes:t.VSIZES,stretch:[9124,9125,9126],HDW:t.HDW2},94:s,95:o,123:{dir:i.V,sizes:t.VSIZES,stretch:[9127,9130,9129,9128],HDW:[.85,.349,.889]},124:{dir:i.V,sizes:[1],stretch:[0,8739],HDW:[.75,.25,.333]},125:{dir:i.V,sizes:t.VSIZES,stretch:[9131,9130,9133,9132],HDW:[.85,.349,.889]},126:a,175:r,710:s,713:r,732:a,770:s,771:a,818:o,8211:o,8212:o,8213:o,8214:{dir:i.V,sizes:[.602,1],schar:[0,8741],variants:[1,0],stretch:[0,8741],HDW:[.602,0,.556]},8215:o,8254:r,8407:l,8592:n,8593:{dir:i.V,sizes:[.888],stretch:[8593,9168],HDW:[.6,0,.667]},8594:l,8595:{dir:i.V,sizes:[.888],stretch:[0,9168,8595],HDW:[.6,0,.667]},8596:d,8597:{dir:i.V,sizes:[1.044],stretch:[8593,9168,8595],HDW:t.HDW1},8606:{dir:i.H,sizes:[1],stretch:[8606,8722],HDW:t.HDW3},8608:{dir:i.H,sizes:[1],stretch:[0,8722,8608],HDW:t.HDW3},8612:S,8613:{dir:i.V,stretch:[8593,9168,8869],HDW:t.HDW1,min:1.555},8614:u,8615:{dir:i.V,stretch:[8868,9168,8595],HDW:t.HDW1,min:1.555},8624:{dir:i.V,sizes:[.722],stretch:[8624,9168],HDW:t.HDW1},8625:{dir:i.V,sizes:[.722],stretch:[8625,9168],HDW:t.HDW1},8636:{dir:i.H,sizes:[1],stretch:[8636,8722],HDW:t.HDW3},8637:{dir:i.H,sizes:[1],stretch:[8637,8722],HDW:t.HDW3},8638:{dir:i.V,sizes:[.888],stretch:[8638,9168],HDW:t.HDW1},8639:{dir:i.V,sizes:[.888],stretch:[8639,9168],HDW:t.HDW1},8640:{dir:i.H,sizes:[1],stretch:[0,8722,8640],HDW:t.HDW3},8641:{dir:i.H,sizes:[1],stretch:[0,8722,8641],HDW:t.HDW3},8642:{dir:i.V,sizes:[.888],stretch:[0,9168,8642],HDW:t.HDW1},8643:{dir:i.V,sizes:[.888],stretch:[0,9168,8643],HDW:t.HDW1},8656:h,8657:{dir:i.V,sizes:[.888],stretch:[8657,8214],HDW:[.599,0,.778]},8658:p,8659:{dir:i.V,sizes:[.888],stretch:[0,8214,8659],HDW:[.6,0,.778]},8660:B,8661:{dir:i.V,sizes:[1.044],stretch:[8657,8214,8659],HDW:[.75,.25,.778]},8666:{dir:i.H,sizes:[1],stretch:[8666,8801],HDW:[.464,-.036,.5]},8667:{dir:i.H,sizes:[1],stretch:[0,8801,8667],HDW:[.464,-.036,.5]},8722:v,8725:f,8730:{dir:i.V,sizes:t.VSIZES,stretch:[57345,57344,9143],fullExt:[.65,2.3],HDW:[.85,.35,1.056]},8739:m,8741:{dir:i.V,sizes:[1],stretch:[0,8741],HDW:[.627,.015,.556]},8968:{dir:i.V,sizes:t.VSIZES,stretch:[9121,9122],HDW:t.HDW2},8969:{dir:i.V,sizes:t.VSIZES,stretch:[9124,9125],HDW:t.HDW2},8970:{dir:i.V,sizes:t.VSIZES,stretch:[0,9122,9123],HDW:t.HDW2},8971:{dir:i.V,sizes:t.VSIZES,stretch:[0,9125,9126],HDW:t.HDW2},8978:k,8994:k,8995:y,9001:b,9002:x,9130:{dir:i.V,sizes:[.32],stretch:[9130,9130,9130],HDW:[.29,.015,.889]},9135:o,9136:{dir:i.V,sizes:[.989],stretch:[9127,9130,9133],HDW:[.75,.25,.889]},9137:{dir:i.V,sizes:[.989],stretch:[9131,9130,9129],HDW:[.75,.25,.889]},9140:{dir:i.H,stretch:[9484,8722,9488],HDW:t.HDW3,min:1},9141:{dir:i.H,stretch:[9492,8722,9496],HDW:t.HDW3,min:1},9168:{dir:i.V,sizes:[.602,1],schar:[0,8739],variants:[1,0],stretch:[0,8739],HDW:[.602,0,.333]},9180:k,9181:y,9182:I,9183:A,9184:{dir:i.H,stretch:[714,713,715],HDW:[.59,-.544,.5],min:1},9185:{dir:i.H,stretch:[715,713,714],HDW:[.59,-.544,.5],min:1},9472:o,10072:m,10216:b,10217:x,10222:{dir:i.V,sizes:[.989],stretch:[9127,9130,9129],HDW:[.75,.25,.889]},10223:{dir:i.V,sizes:[.989],stretch:[9131,9130,9133],HDW:[.75,.25,.889]},10229:n,10230:l,10231:d,10232:h,10233:p,10234:B,10235:S,10236:u,10237:M,10238:_,10502:M,10503:_,10574:{dir:i.H,stretch:[8636,8722,8640],HDW:t.HDW3,min:2},10575:{dir:i.V,stretch:[8638,9168,8642],HDW:t.HDW1,min:1.776},10576:{dir:i.H,stretch:[8637,8722,8641],HDW:t.HDW3,min:2},10577:{dir:i.V,stretch:[8639,9168,8643],HDW:t.HDW1,min:.5},10586:{dir:i.H,stretch:[8636,8722,8739],HDW:t.HDW3,min:1.278},10587:{dir:i.H,stretch:[8739,8722,8640],HDW:t.HDW3,min:1.278},10588:{dir:i.V,stretch:[8638,9168,8869],HDW:t.HDW1,min:1.556},10589:{dir:i.V,stretch:[8868,9168,8642],HDW:t.HDW1,min:1.556},10590:{dir:i.H,stretch:[8637,8722,8739],HDW:t.HDW3,min:1.278},10591:{dir:i.H,stretch:[8739,8722,8641],HDW:t.HDW3,min:1.278},10592:{dir:i.V,stretch:[8639,9168,8869],HDW:t.HDW1,min:1.776},10593:{dir:i.V,stretch:[8868,9168,8643],HDW:t.HDW1,min:1.776},12296:b,12297:x,65079:I,65080:A}},32249:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.doubleStruck=void 0;t.doubleStruck={}},45600:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.frakturBold=void 0;t.frakturBold={33:[.689,.012,.349],34:[.695,-.432,.254],38:[.696,.016,.871],39:[.695,-.436,.25],40:[.737,.186,.459],41:[.735,.187,.459],42:[.692,-.449,.328],43:[.598,.082,.893],44:[.107,.191,.328],45:[.275,-.236,.893],46:[.102,.015,.328],47:[.721,.182,.593],48:[.501,.012,.593],49:[.489,0,.593],50:[.491,0,.593],51:[.487,.193,.593],52:[.495,.196,.593],53:[.481,.19,.593],54:[.704,.012,.593],55:[.479,.197,.593],56:[.714,.005,.593],57:[.487,.195,.593],58:[.457,.012,.255],59:[.458,.19,.255],61:[.343,-.168,.582],63:[.697,.014,.428],91:[.74,.13,.257],93:[.738,.132,.257],94:[.734,-.452,.59],8216:[.708,-.411,.254],8217:[.692,-.394,.254],8260:[.721,.182,.593],58113:[.63,.027,.587],58114:[.693,.212,.394,{ic:.014}],58115:[.681,.219,.387],58116:[.473,.212,.593],58117:[.684,.027,.393],58120:[.679,.22,.981],58121:[.717,.137,.727]}},59534:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.fraktur=void 0;t.fraktur={33:[.689,.012,.296],34:[.695,-.432,.215],38:[.698,.011,.738],39:[.695,-.436,.212],40:[.737,.186,.389],41:[.735,.187,.389],42:[.692,-.449,.278],43:[.598,.082,.756],44:[.107,.191,.278],45:[.275,-.236,.756],46:[.102,.015,.278],47:[.721,.182,.502],48:[.492,.013,.502],49:[.468,0,.502],50:[.474,0,.502],51:[.473,.182,.502],52:[.476,.191,.502],53:[.458,.184,.502],54:[.7,.013,.502],55:[.468,.181,.502],56:[.705,.01,.502],57:[.469,.182,.502],58:[.457,.012,.216],59:[.458,.189,.216],61:[.368,-.132,.756],63:[.693,.011,.362],91:[.74,.13,.278],93:[.738,.131,.278],94:[.734,-.452,.5],8216:[.708,-.41,.215],8217:[.692,-.395,.215],8260:[.721,.182,.502],58112:[.683,.032,.497],58113:[.616,.03,.498],58114:[.68,.215,.333],58115:[.679,.224,.329],58116:[.471,.214,.503],58117:[.686,.02,.333],58118:[.577,.021,.334,{ic:.013}],58119:[.475,.022,.501,{ic:.013}]}},14141:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.italic=void 0;t.italic={33:[.716,0,.307,{ic:.073}],34:[.694,-.379,.514,{ic:.024}],35:[.694,.194,.818,{ic:.01}],37:[.75,.056,.818,{ic:.029}],38:[.716,.022,.767,{ic:.035}],39:[.694,-.379,.307,{ic:.07}],40:[.75,.25,.409,{ic:.108}],41:[.75,.25,.409],42:[.75,-.32,.511,{ic:.073}],43:[.557,.057,.767],44:[.121,.194,.307],45:[.251,-.18,.358],46:[.121,0,.307],47:[.716,.215,.778],48:[.665,.021,.511,{ic:.051}],49:[.666,0,.511],50:[.666,.022,.511,{ic:.04}],51:[.666,.022,.511,{ic:.051}],52:[.666,.194,.511],53:[.666,.022,.511,{ic:.056}],54:[.665,.022,.511,{ic:.054}],55:[.666,.022,.511,{ic:.123}],56:[.666,.021,.511,{ic:.042}],57:[.666,.022,.511,{ic:.042}],58:[.431,0,.307],59:[.431,.194,.307],61:[.367,-.133,.767],63:[.716,0,.511,{ic:.04}],64:[.705,.011,.767,{ic:.022}],91:[.75,.25,.307,{ic:.139}],93:[.75,.25,.307,{ic:.052}],94:[.694,-.527,.511,{ic:.017}],95:[-.025,.062,.511,{ic:.043}],126:[.318,-.208,.511,{ic:.06}],305:[.441,.01,.307,{ic:.033}],567:[.442,.204,.332],768:[.697,-.5,0],769:[.697,-.5,0,{ic:.039}],770:[.694,-.527,0,{ic:.017}],771:[.668,-.558,0,{ic:.06}],772:[.589,-.544,0,{ic:.054}],774:[.694,-.515,0,{ic:.062}],775:[.669,-.548,0],776:[.669,-.554,0,{ic:.045}],778:[.716,-.542,0],779:[.697,-.503,0,{ic:.065}],780:[.638,-.502,0,{ic:.029}],989:[.605,.085,.778],8211:[.285,-.248,.511,{ic:.043}],8212:[.285,-.248,1.022,{ic:.016}],8213:[.285,-.248,1.022,{ic:.016}],8215:[-.025,.062,.511,{ic:.043}],8216:[.694,-.379,.307,{ic:.055}],8217:[.694,-.379,.307,{ic:.07}],8220:[.694,-.379,.514,{ic:.092}],8221:[.694,-.379,.514,{ic:.024}],8260:[.716,.215,.778],8463:[.695,.013,.54,{ic:.022}],8710:[.716,0,.833,{sk:.167}],10744:[.716,.215,.778]}},63969:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.largeop=void 0;t.largeop={40:[1.15,.649,.597],41:[1.15,.649,.597],47:[1.15,.649,.811],91:[1.15,.649,.472],92:[1.15,.649,.811],93:[1.15,.649,.472],123:[1.15,.649,.667],125:[1.15,.649,.667],710:[.772,-.565,1],732:[.75,-.611,1],770:[.772,-.565,0],771:[.75,-.611,0],8214:[.602,0,.778],8260:[1.15,.649,.811],8593:[.6,0,.667],8595:[.6,0,.667],8657:[.599,0,.778],8659:[.6,0,.778],8719:[.95,.45,1.278],8720:[.95,.45,1.278],8721:[.95,.45,1.444],8730:[1.15,.65,1,{ic:.02}],8739:[.627,.015,.333],8741:[.627,.015,.556],8747:[1.36,.862,.556,{ic:.388}],8748:[1.36,.862,1.084,{ic:.388}],8749:[1.36,.862,1.592,{ic:.388}],8750:[1.36,.862,.556,{ic:.388}],8896:[.95,.45,1.111],8897:[.95,.45,1.111],8898:[.949,.45,1.111],8899:[.95,.449,1.111],8968:[1.15,.649,.528],8969:[1.15,.649,.528],8970:[1.15,.649,.528],8971:[1.15,.649,.528],9001:[1.15,.649,.611],9002:[1.15,.649,.611],9168:[.602,0,.667],10072:[.627,.015,.333],10216:[1.15,.649,.611],10217:[1.15,.649,.611],10752:[.949,.449,1.511],10753:[.949,.449,1.511],10754:[.949,.449,1.511],10756:[.95,.449,1.111],10758:[.95,.45,1.111],10764:[1.36,.862,2.168,{ic:.388}],12296:[1.15,.649,.611],12297:[1.15,.649,.611]}},58626:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.monospace=void 0;t.monospace={32:[0,0,.525],33:[.622,0,.525],34:[.623,-.333,.525],35:[.611,0,.525],36:[.694,.082,.525],37:[.694,.083,.525],38:[.622,.011,.525],39:[.611,-.287,.525],40:[.694,.082,.525],41:[.694,.082,.525],42:[.52,-.09,.525],43:[.531,-.081,.525],44:[.14,.139,.525],45:[.341,-.271,.525],46:[.14,0,.525],47:[.694,.083,.525],58:[.431,0,.525],59:[.431,.139,.525],60:[.557,-.055,.525],61:[.417,-.195,.525],62:[.557,-.055,.525],63:[.617,0,.525],64:[.617,.006,.525],91:[.694,.082,.525],92:[.694,.083,.525],93:[.694,.082,.525],94:[.611,-.46,.525],95:[-.025,.095,.525],96:[.681,-.357,.525],123:[.694,.083,.525],124:[.694,.082,.525],125:[.694,.083,.525],126:[.611,-.466,.525],127:[.612,-.519,.525],160:[0,0,.525],305:[.431,0,.525],567:[.431,.228,.525],697:[.623,-.334,.525],768:[.611,-.485,0],769:[.611,-.485,0],770:[.611,-.46,0],771:[.611,-.466,0],772:[.577,-.5,0],774:[.611,-.504,0],776:[.612,-.519,0],778:[.619,-.499,0],780:[.577,-.449,0],913:[.623,0,.525],914:[.611,0,.525],915:[.611,0,.525],916:[.623,0,.525],917:[.611,0,.525],918:[.611,0,.525],919:[.611,0,.525],920:[.621,.01,.525],921:[.611,0,.525],922:[.611,0,.525],923:[.623,0,.525],924:[.611,0,.525],925:[.611,0,.525],926:[.611,0,.525],927:[.621,.01,.525],928:[.611,0,.525],929:[.611,0,.525],931:[.611,0,.525],932:[.611,0,.525],933:[.622,0,.525],934:[.611,0,.525],935:[.611,0,.525],936:[.611,0,.525],937:[.622,0,.525],8215:[-.025,.095,.525],8242:[.623,-.334,.525],8243:[.623,0,1.05],8244:[.623,0,1.575],8260:[.694,.083,.525],8279:[.623,0,2.1],8710:[.623,0,.525]}},25190:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.normal=void 0;t.normal={32:[0,0,.25],33:[.716,0,.278],34:[.694,-.379,.5],35:[.694,.194,.833],36:[.75,.056,.5],37:[.75,.056,.833],38:[.716,.022,.778],39:[.694,-.379,.278],40:[.75,.25,.389],41:[.75,.25,.389],42:[.75,-.32,.5],43:[.583,.082,.778],44:[.121,.194,.278],45:[.252,-.179,.333],46:[.12,0,.278],47:[.75,.25,.5],48:[.666,.022,.5],49:[.666,0,.5],50:[.666,0,.5],51:[.665,.022,.5],52:[.677,0,.5],53:[.666,.022,.5],54:[.666,.022,.5],55:[.676,.022,.5],56:[.666,.022,.5],57:[.666,.022,.5],58:[.43,0,.278],59:[.43,.194,.278],60:[.54,.04,.778],61:[.583,.082,.778],62:[.54,.04,.778],63:[.705,0,.472],64:[.705,.011,.778],65:[.716,0,.75],66:[.683,0,.708],67:[.705,.021,.722],68:[.683,0,.764],69:[.68,0,.681],70:[.68,0,.653],71:[.705,.022,.785],72:[.683,0,.75],73:[.683,0,.361],74:[.683,.022,.514],75:[.683,0,.778],76:[.683,0,.625],77:[.683,0,.917],78:[.683,0,.75],79:[.705,.022,.778],80:[.683,0,.681],81:[.705,.193,.778],82:[.683,.022,.736],83:[.705,.022,.556],84:[.677,0,.722],85:[.683,.022,.75],86:[.683,.022,.75],87:[.683,.022,1.028],88:[.683,0,.75],89:[.683,0,.75],90:[.683,0,.611],91:[.75,.25,.278],92:[.75,.25,.5],93:[.75,.25,.278],94:[.694,-.531,.5],95:[-.025,.062,.5],96:[.699,-.505,.5],97:[.448,.011,.5],98:[.694,.011,.556],99:[.448,.011,.444],100:[.694,.011,.556],101:[.448,.011,.444],102:[.705,0,.306,{ic:.066}],103:[.453,.206,.5],104:[.694,0,.556],105:[.669,0,.278],106:[.669,.205,.306],107:[.694,0,.528],108:[.694,0,.278],109:[.442,0,.833],110:[.442,0,.556],111:[.448,.01,.5],112:[.442,.194,.556],113:[.442,.194,.528],114:[.442,0,.392],115:[.448,.011,.394],116:[.615,.01,.389],117:[.442,.011,.556],118:[.431,.011,.528],119:[.431,.011,.722],120:[.431,0,.528],121:[.431,.204,.528],122:[.431,0,.444],123:[.75,.25,.5],124:[.75,.249,.278],125:[.75,.25,.5],126:[.318,-.215,.5],160:[0,0,.25],163:[.714,.011,.769],165:[.683,0,.75],168:[.669,-.554,.5],172:[.356,-.089,.667],174:[.709,.175,.947],175:[.59,-.544,.5],176:[.715,-.542,.5],177:[.666,0,.778],180:[.699,-.505,.5],183:[.31,-.19,.278],215:[.491,-.009,.778],240:[.749,.021,.556],247:[.537,.036,.778],305:[.442,0,.278,{sk:.0278}],567:[.442,.205,.306,{sk:.0833}],697:[.56,-.043,.275],710:[.694,-.531,.5],711:[.644,-.513,.5],713:[.59,-.544,.5],714:[.699,-.505,.5],715:[.699,-.505,.5],728:[.694,-.515,.5],729:[.669,-.549,.5],730:[.715,-.542,.5],732:[.668,-.565,.5],768:[.699,-.505,0],769:[.699,-.505,0],770:[.694,-.531,0],771:[.668,-.565,0],772:[.59,-.544,0],774:[.694,-.515,0],775:[.669,-.549,0],776:[.669,-.554,0],778:[.715,-.542,0],779:[.701,-.51,0],780:[.644,-.513,0],824:[.716,.215,0],913:[.716,0,.75],914:[.683,0,.708],915:[.68,0,.625],916:[.716,0,.833],917:[.68,0,.681],918:[.683,0,.611],919:[.683,0,.75],920:[.705,.022,.778],921:[.683,0,.361],922:[.683,0,.778],923:[.716,0,.694],924:[.683,0,.917],925:[.683,0,.75],926:[.677,0,.667],927:[.705,.022,.778],928:[.68,0,.75],929:[.683,0,.681],931:[.683,0,.722],932:[.677,0,.722],933:[.705,0,.778],934:[.683,0,.722],935:[.683,0,.75],936:[.683,0,.778],937:[.704,0,.722],8192:[0,0,.5],8193:[0,0,1],8194:[0,0,.5],8195:[0,0,1],8196:[0,0,.333],8197:[0,0,.25],8198:[0,0,.167],8201:[0,0,.167],8202:[0,0,.1],8203:[0,0,0],8204:[0,0,0],8211:[.285,-.248,.5],8212:[.285,-.248,1],8213:[.285,-.248,1],8214:[.75,.25,.5],8215:[-.025,.062,.5],8216:[.694,-.379,.278],8217:[.694,-.379,.278],8220:[.694,-.379,.5],8221:[.694,-.379,.5],8224:[.705,.216,.444],8225:[.705,.205,.444],8226:[.444,-.055,.5],8230:[.12,0,1.172],8242:[.56,-.043,.275],8243:[.56,0,.55],8244:[.56,0,.825],8245:[.56,-.043,.275],8246:[.56,0,.55],8247:[.56,0,.825],8254:[.59,-.544,.5],8260:[.75,.25,.5],8279:[.56,0,1.1],8288:[0,0,0],8289:[0,0,0],8290:[0,0,0],8291:[0,0,0],8292:[0,0,0],8407:[.714,-.516,.5],8450:[.702,.019,.722],8459:[.717,.036,.969,{ic:.272,sk:.333}],8460:[.666,.133,.72],8461:[.683,0,.778],8462:[.694,.011,.576,{sk:-.0278}],8463:[.695,.013,.54,{ic:.022}],8464:[.717,.017,.809,{ic:.137,sk:.333}],8465:[.686,.026,.554],8466:[.717,.017,.874,{ic:.161,sk:.306}],8467:[.705,.02,.417,{sk:.111}],8469:[.683,.02,.722],8472:[.453,.216,.636,{sk:.111}],8473:[.683,0,.611],8474:[.701,.181,.778],8475:[.717,.017,.85,{ic:.037,sk:.194}],8476:[.686,.026,.828],8477:[.683,0,.722],8484:[.683,0,.667],8486:[.704,0,.722],8487:[.684,.022,.722],8488:[.729,.139,.602],8492:[.708,.028,.908,{ic:.02,sk:.194}],8493:[.685,.024,.613],8496:[.707,.008,.562,{ic:.156,sk:.139}],8497:[.735,.036,.895,{ic:.095,sk:.222}],8498:[.695,0,.556],8499:[.721,.05,1.08,{ic:.136,sk:.444}],8501:[.694,0,.611],8502:[.763,.021,.667,{ic:.02}],8503:[.764,.043,.444],8504:[.764,.043,.667],8513:[.705,.023,.639],8592:[.511,.011,1],8593:[.694,.193,.5],8594:[.511,.011,1],8595:[.694,.194,.5],8596:[.511,.011,1],8597:[.772,.272,.5],8598:[.72,.195,1],8599:[.72,.195,1],8600:[.695,.22,1],8601:[.695,.22,1],8602:[.437,-.06,1],8603:[.437,-.06,1],8606:[.417,-.083,1],8608:[.417,-.083,1],8610:[.417,-.083,1.111],8611:[.417,-.083,1.111],8614:[.511,.011,1],8617:[.511,.011,1.126],8618:[.511,.011,1.126],8619:[.575,.041,1],8620:[.575,.041,1],8621:[.417,-.083,1.389],8622:[.437,-.06,1],8624:[.722,0,.5],8625:[.722,0,.5],8630:[.461,0,1],8631:[.46,0,1],8634:[.65,.083,.778],8635:[.65,.083,.778],8636:[.511,-.23,1],8637:[.27,.011,1],8638:[.694,.194,.417],8639:[.694,.194,.417],8640:[.511,-.23,1],8641:[.27,.011,1],8642:[.694,.194,.417],8643:[.694,.194,.417],8644:[.667,0,1],8646:[.667,0,1],8647:[.583,.083,1],8648:[.694,.193,.833],8649:[.583,.083,1],8650:[.694,.194,.833],8651:[.514,.014,1],8652:[.671,.011,1],8653:[.534,.035,1],8654:[.534,.037,1],8655:[.534,.035,1],8656:[.525,.024,1],8657:[.694,.194,.611],8658:[.525,.024,1],8659:[.694,.194,.611],8660:[.526,.025,1],8661:[.772,.272,.611],8666:[.611,.111,1],8667:[.611,.111,1],8669:[.417,-.083,1],8672:[.437,-.064,1.334],8674:[.437,-.064,1.334],8704:[.694,.022,.556],8705:[.846,.021,.5],8706:[.715,.022,.531,{ic:.035,sk:.0833}],8707:[.694,0,.556],8708:[.716,.215,.556],8709:[.772,.078,.5],8710:[.716,0,.833],8711:[.683,.033,.833],8712:[.54,.04,.667],8713:[.716,.215,.667],8715:[.54,.04,.667],8716:[.716,.215,.667],8717:[.44,0,.429,{ic:.027}],8719:[.75,.25,.944],8720:[.75,.25,.944],8721:[.75,.25,1.056],8722:[.583,.082,.778],8723:[.5,.166,.778],8724:[.766,.093,.778],8725:[.75,.25,.5],8726:[.75,.25,.5],8727:[.465,-.035,.5],8728:[.444,-.055,.5],8729:[.444,-.055,.5],8730:[.8,.2,.833,{ic:.02}],8733:[.442,.011,.778],8734:[.442,.011,1],8736:[.694,0,.722],8737:[.714,.02,.722],8738:[.551,.051,.722],8739:[.75,.249,.278],8740:[.75,.252,.278,{ic:.019}],8741:[.75,.25,.5],8742:[.75,.25,.5,{ic:.018}],8743:[.598,.022,.667],8744:[.598,.022,.667],8745:[.598,.022,.667],8746:[.598,.022,.667],8747:[.716,.216,.417,{ic:.055}],8748:[.805,.306,.819,{ic:.138}],8749:[.805,.306,1.166,{ic:.138}],8750:[.805,.306,.472,{ic:.138}],8756:[.471,.082,.667],8757:[.471,.082,.667],8764:[.367,-.133,.778],8765:[.367,-.133,.778],8768:[.583,.083,.278],8769:[.467,-.032,.778],8770:[.463,-.034,.778],8771:[.464,-.036,.778],8772:[.716,.215,.778],8773:[.589,-.022,.778],8775:[.652,.155,.778],8776:[.483,-.055,.778],8777:[.716,.215,.778],8778:[.579,.039,.778],8781:[.484,-.016,.778],8782:[.492,-.008,.778],8783:[.492,-.133,.778],8784:[.67,-.133,.778],8785:[.609,.108,.778],8786:[.601,.101,.778],8787:[.601,.102,.778],8790:[.367,-.133,.778],8791:[.721,-.133,.778],8796:[.859,-.133,.778],8800:[.716,.215,.778],8801:[.464,-.036,.778],8802:[.716,.215,.778],8804:[.636,.138,.778],8805:[.636,.138,.778],8806:[.753,.175,.778],8807:[.753,.175,.778],8808:[.752,.286,.778],8809:[.752,.286,.778],8810:[.568,.067,1],8811:[.567,.067,1],8812:[.75,.25,.5],8813:[.716,.215,.778],8814:[.708,.209,.778],8815:[.708,.209,.778],8816:[.801,.303,.778],8817:[.801,.303,.778],8818:[.732,.228,.778],8819:[.732,.228,.778],8820:[.732,.228,.778],8821:[.732,.228,.778],8822:[.681,.253,.778],8823:[.681,.253,.778],8824:[.716,.253,.778],8825:[.716,.253,.778],8826:[.539,.041,.778],8827:[.539,.041,.778],8828:[.58,.153,.778],8829:[.58,.154,.778],8830:[.732,.228,.778],8831:[.732,.228,.778],8832:[.705,.208,.778],8833:[.705,.208,.778],8834:[.54,.04,.778],8835:[.54,.04,.778],8836:[.716,.215,.778],8837:[.716,.215,.778],8838:[.636,.138,.778],8839:[.636,.138,.778],8840:[.801,.303,.778],8841:[.801,.303,.778],8842:[.635,.241,.778],8843:[.635,.241,.778],8846:[.598,.022,.667],8847:[.539,.041,.778],8848:[.539,.041,.778],8849:[.636,.138,.778],8850:[.636,.138,.778],8851:[.598,0,.667],8852:[.598,0,.667],8853:[.583,.083,.778],8854:[.583,.083,.778],8855:[.583,.083,.778],8856:[.583,.083,.778],8857:[.583,.083,.778],8858:[.582,.082,.778],8859:[.582,.082,.778],8861:[.582,.082,.778],8862:[.689,0,.778],8863:[.689,0,.778],8864:[.689,0,.778],8865:[.689,0,.778],8866:[.694,0,.611],8867:[.694,0,.611],8868:[.668,0,.778],8869:[.668,0,.778],8872:[.75,.249,.867],8873:[.694,0,.722],8874:[.694,0,.889],8876:[.695,0,.611],8877:[.695,0,.611],8878:[.695,0,.722],8879:[.695,0,.722],8882:[.539,.041,.778],8883:[.539,.041,.778],8884:[.636,.138,.778],8885:[.636,.138,.778],8888:[.408,-.092,1.111],8890:[.431,.212,.556],8891:[.716,0,.611],8892:[.716,0,.611],8896:[.75,.249,.833],8897:[.75,.249,.833],8898:[.75,.249,.833],8899:[.75,.249,.833],8900:[.488,-.012,.5],8901:[.31,-.19,.278],8902:[.486,-.016,.5],8903:[.545,.044,.778],8904:[.505,.005,.9],8905:[.492,-.008,.778],8906:[.492,-.008,.778],8907:[.694,.022,.778],8908:[.694,.022,.778],8909:[.464,-.036,.778],8910:[.578,.021,.76],8911:[.578,.022,.76],8912:[.54,.04,.778],8913:[.54,.04,.778],8914:[.598,.022,.667],8915:[.598,.022,.667],8916:[.736,.022,.667],8918:[.541,.041,.778],8919:[.541,.041,.778],8920:[.568,.067,1.333],8921:[.568,.067,1.333],8922:[.886,.386,.778],8923:[.886,.386,.778],8926:[.734,0,.778],8927:[.734,0,.778],8928:[.801,.303,.778],8929:[.801,.303,.778],8930:[.716,.215,.778],8931:[.716,.215,.778],8934:[.73,.359,.778],8935:[.73,.359,.778],8936:[.73,.359,.778],8937:[.73,.359,.778],8938:[.706,.208,.778],8939:[.706,.208,.778],8940:[.802,.303,.778],8941:[.801,.303,.778],8942:[1.3,.03,.278],8943:[.31,-.19,1.172],8945:[1.52,-.1,1.282],8965:[.716,0,.611],8966:[.813,.097,.611],8968:[.75,.25,.444],8969:[.75,.25,.444],8970:[.75,.25,.444],8971:[.75,.25,.444],8988:[.694,-.306,.5],8989:[.694,-.306,.5],8990:[.366,.022,.5],8991:[.366,.022,.5],8994:[.388,-.122,1],8995:[.378,-.134,1],9001:[.75,.25,.389],9002:[.75,.25,.389],9136:[.744,.244,.412],9137:[.744,.244,.412],9168:[.602,0,.667],9416:[.709,.175,.902],9484:[.694,-.306,.5],9488:[.694,-.306,.5],9492:[.366,.022,.5],9496:[.366,.022,.5],9585:[.694,.195,.889],9586:[.694,.195,.889],9632:[.689,0,.778],9633:[.689,0,.778],9642:[.689,0,.778],9650:[.575,.02,.722],9651:[.716,0,.889],9652:[.575,.02,.722],9653:[.716,0,.889],9654:[.539,.041,.778],9656:[.539,.041,.778],9657:[.505,.005,.5],9660:[.576,.019,.722],9661:[.5,.215,.889],9662:[.576,.019,.722],9663:[.5,.215,.889],9664:[.539,.041,.778],9666:[.539,.041,.778],9667:[.505,.005,.5],9674:[.716,.132,.667],9711:[.715,.215,1],9723:[.689,0,.778],9724:[.689,0,.778],9733:[.694,.111,.944],9824:[.727,.13,.778],9825:[.716,.033,.778],9826:[.727,.162,.778],9827:[.726,.13,.778],9837:[.75,.022,.389],9838:[.734,.223,.389],9839:[.723,.223,.389],10003:[.706,.034,.833],10016:[.716,.022,.833],10072:[.75,.249,.278],10216:[.75,.25,.389],10217:[.75,.25,.389],10222:[.744,.244,.412],10223:[.744,.244,.412],10229:[.511,.011,1.609],10230:[.511,.011,1.638],10231:[.511,.011,1.859],10232:[.525,.024,1.609],10233:[.525,.024,1.638],10234:[.525,.024,1.858],10236:[.511,.011,1.638],10731:[.716,.132,.667],10744:[.716,.215,.778],10752:[.75,.25,1.111],10753:[.75,.25,1.111],10754:[.75,.25,1.111],10756:[.75,.249,.833],10758:[.75,.249,.833],10764:[.805,.306,1.638,{ic:.138}],10799:[.491,-.009,.778],10815:[.683,0,.75],10846:[.813,.097,.611],10877:[.636,.138,.778],10878:[.636,.138,.778],10885:[.762,.29,.778],10886:[.762,.29,.778],10887:[.635,.241,.778],10888:[.635,.241,.778],10889:[.761,.387,.778],10890:[.761,.387,.778],10891:[1.003,.463,.778],10892:[1.003,.463,.778],10901:[.636,.138,.778],10902:[.636,.138,.778],10927:[.636,.138,.778],10928:[.636,.138,.778],10933:[.752,.286,.778],10934:[.752,.286,.778],10935:[.761,.294,.778],10936:[.761,.294,.778],10937:[.761,.337,.778],10938:[.761,.337,.778],10949:[.753,.215,.778],10950:[.753,.215,.778],10955:[.783,.385,.778],10956:[.783,.385,.778],12296:[.75,.25,.389],12297:[.75,.25,.389],57350:[.43,.023,.222,{ic:.018}],57351:[.431,.024,.389,{ic:.018}],57352:[.605,.085,.778],57353:[.434,.006,.667,{ic:.067}],57356:[.752,.284,.778],57357:[.752,.284,.778],57358:[.919,.421,.778],57359:[.801,.303,.778],57360:[.801,.303,.778],57361:[.919,.421,.778],57366:[.828,.33,.778],57367:[.752,.332,.778],57368:[.828,.33,.778],57369:[.752,.333,.778],57370:[.634,.255,.778],57371:[.634,.254,.778],119808:[.698,0,.869],119809:[.686,0,.818],119810:[.697,.011,.831],119811:[.686,0,.882],119812:[.68,0,.756],119813:[.68,0,.724],119814:[.697,.01,.904],119815:[.686,0,.9],119816:[.686,0,.436],119817:[.686,.011,.594],119818:[.686,0,.901],119819:[.686,0,.692],119820:[.686,0,1.092],119821:[.686,0,.9],119822:[.696,.01,.864],119823:[.686,0,.786],119824:[.696,.193,.864],119825:[.686,.011,.862],119826:[.697,.011,.639],119827:[.675,0,.8],119828:[.686,.011,.885],119829:[.686,.007,.869],119830:[.686,.007,1.189],119831:[.686,0,.869],119832:[.686,0,.869],119833:[.686,0,.703],119834:[.453,.006,.559],119835:[.694,.006,.639],119836:[.453,.006,.511],119837:[.694,.006,.639],119838:[.452,.006,.527],119839:[.7,0,.351,{ic:.101}],119840:[.455,.201,.575],119841:[.694,0,.639],119842:[.695,0,.319],119843:[.695,.2,.351],119844:[.694,0,.607],119845:[.694,0,.319],119846:[.45,0,.958],119847:[.45,0,.639],119848:[.452,.005,.575],119849:[.45,.194,.639],119850:[.45,.194,.607],119851:[.45,0,.474],119852:[.453,.006,.454],119853:[.635,.005,.447],119854:[.45,.006,.639],119855:[.444,0,.607],119856:[.444,0,.831],119857:[.444,0,.607],119858:[.444,.2,.607],119859:[.444,0,.511],119860:[.716,0,.75,{sk:.139}],119861:[.683,0,.759,{sk:.0833}],119862:[.705,.022,.715,{ic:.045,sk:.0833}],119863:[.683,0,.828,{sk:.0556}],119864:[.68,0,.738,{ic:.026,sk:.0833}],119865:[.68,0,.643,{ic:.106,sk:.0833}],119866:[.705,.022,.786,{sk:.0833}],119867:[.683,0,.831,{ic:.057,sk:.0556}],119868:[.683,0,.44,{ic:.064,sk:.111}],119869:[.683,.022,.555,{ic:.078,sk:.167}],119870:[.683,0,.849,{ic:.04,sk:.0556}],119871:[.683,0,.681,{sk:.0278}],119872:[.683,0,.97,{ic:.081,sk:.0833}],119873:[.683,0,.803,{ic:.085,sk:.0833}],119874:[.704,.022,.763,{sk:.0833}],119875:[.683,0,.642,{ic:.109,sk:.0833}],119876:[.704,.194,.791,{sk:.0833}],119877:[.683,.021,.759,{sk:.0833}],119878:[.705,.022,.613,{ic:.032,sk:.0833}],119879:[.677,0,.584,{ic:.12,sk:.0833}],119880:[.683,.022,.683,{ic:.084,sk:.0278}],119881:[.683,.022,.583,{ic:.186}],119882:[.683,.022,.944,{ic:.104}],119883:[.683,0,.828,{ic:.024,sk:.0833}],119884:[.683,0,.581,{ic:.182}],119885:[.683,0,.683,{ic:.04,sk:.0833}],119886:[.441,.01,.529],119887:[.694,.011,.429],119888:[.442,.011,.433,{sk:.0556}],119889:[.694,.01,.52,{sk:.167}],119890:[.442,.011,.466,{sk:.0556}],119891:[.705,.205,.49,{ic:.06,sk:.167}],119892:[.442,.205,.477,{sk:.0278}],119894:[.661,.011,.345],119895:[.661,.204,.412],119896:[.694,.011,.521],119897:[.694,.011,.298,{sk:.0833}],119898:[.442,.011,.878],119899:[.442,.011,.6],119900:[.441,.011,.485,{sk:.0556}],119901:[.442,.194,.503,{sk:.0833}],119902:[.442,.194,.446,{ic:.014,sk:.0833}],119903:[.442,.011,.451,{sk:.0556}],119904:[.442,.01,.469,{sk:.0556}],119905:[.626,.011,.361,{sk:.0833}],119906:[.442,.011,.572,{sk:.0278}],119907:[.443,.011,.485,{sk:.0278}],119908:[.443,.011,.716,{sk:.0833}],119909:[.442,.011,.572,{sk:.0278}],119910:[.442,.205,.49,{sk:.0556}],119911:[.442,.011,.465,{sk:.0556}],119912:[.711,0,.869,{sk:.16}],119913:[.686,0,.866,{sk:.0958}],119914:[.703,.017,.817,{ic:.038,sk:.0958}],119915:[.686,0,.938,{sk:.0639}],119916:[.68,0,.81,{ic:.015,sk:.0958}],119917:[.68,0,.689,{ic:.12,sk:.0958}],119918:[.703,.016,.887,{sk:.0958}],119919:[.686,0,.982,{ic:.045,sk:.0639}],119920:[.686,0,.511,{ic:.062,sk:.128}],119921:[.686,.017,.631,{ic:.063,sk:.192}],119922:[.686,0,.971,{ic:.032,sk:.0639}],119923:[.686,0,.756,{sk:.0319}],119924:[.686,0,1.142,{ic:.077,sk:.0958}],119925:[.686,0,.95,{ic:.077,sk:.0958}],119926:[.703,.017,.837,{sk:.0958}],119927:[.686,0,.723,{ic:.124,sk:.0958}],119928:[.703,.194,.869,{sk:.0958}],119929:[.686,.017,.872,{sk:.0958}],119930:[.703,.017,.693,{ic:.021,sk:.0958}],119931:[.675,0,.637,{ic:.135,sk:.0958}],119932:[.686,.016,.8,{ic:.077,sk:.0319}],119933:[.686,.016,.678,{ic:.208}],119934:[.686,.017,1.093,{ic:.114}],119935:[.686,0,.947,{sk:.0958}],119936:[.686,0,.675,{ic:.201}],119937:[.686,0,.773,{ic:.032,sk:.0958}],119938:[.452,.008,.633],119939:[.694,.008,.521],119940:[.451,.008,.513,{sk:.0639}],119941:[.694,.008,.61,{sk:.192}],119942:[.452,.008,.554,{sk:.0639}],119943:[.701,.201,.568,{ic:.056,sk:.192}],119944:[.452,.202,.545,{sk:.0319}],119945:[.694,.008,.668,{sk:-.0319}],119946:[.694,.008,.405],119947:[.694,.202,.471],119948:[.694,.008,.604],119949:[.694,.008,.348,{sk:.0958}],119950:[.452,.008,1.032],119951:[.452,.008,.713],119952:[.452,.008,.585,{sk:.0639}],119953:[.452,.194,.601,{sk:.0958}],119954:[.452,.194,.542,{sk:.0958}],119955:[.452,.008,.529,{sk:.0639}],119956:[.451,.008,.531,{sk:.0639}],119957:[.643,.007,.415,{sk:.0958}],119958:[.452,.008,.681,{sk:.0319}],119959:[.453,.008,.567,{sk:.0319}],119960:[.453,.008,.831,{sk:.0958}],119961:[.452,.008,.659,{sk:.0319}],119962:[.452,.202,.59,{sk:.0639}],119963:[.452,.008,.555,{sk:.0639}],119964:[.717,.008,.803,{ic:.213,sk:.389}],119966:[.728,.026,.666,{ic:.153,sk:.278}],119967:[.708,.031,.774,{ic:.081,sk:.111}],119970:[.717,.037,.61,{ic:.128,sk:.25}],119973:[.717,.314,1.052,{ic:.081,sk:.417}],119974:[.717,.037,.914,{ic:.29,sk:.361}],119977:[.726,.036,.902,{ic:.306,sk:.389}],119978:[.707,.008,.738,{ic:.067,sk:.167}],119979:[.716,.037,1.013,{ic:.018,sk:.222}],119980:[.717,.017,.883,{sk:.278}],119982:[.708,.036,.868,{ic:.148,sk:.333}],119983:[.735,.037,.747,{ic:.249,sk:.222}],119984:[.717,.017,.8,{ic:.16,sk:.25}],119985:[.717,.017,.622,{ic:.228,sk:.222}],119986:[.717,.017,.805,{ic:.221,sk:.25}],119987:[.717,.017,.944,{ic:.187,sk:.278}],119988:[.716,.017,.71,{ic:.249,sk:.194}],119989:[.717,.016,.821,{ic:.211,sk:.306}],120068:[.696,.026,.718],120069:[.691,.027,.884],120071:[.685,.027,.832],120072:[.685,.024,.663],120073:[.686,.153,.611],120074:[.69,.026,.785],120077:[.686,.139,.552],120078:[.68,.027,.668,{ic:.014}],120079:[.686,.026,.666],120080:[.692,.027,1.05],120081:[.686,.025,.832],120082:[.729,.027,.827],120083:[.692,.218,.828],120084:[.729,.069,.827],120086:[.692,.027,.829],120087:[.701,.027,.669],120088:[.697,.027,.646,{ic:.019}],120089:[.686,.026,.831],120090:[.686,.027,1.046],120091:[.688,.027,.719],120092:[.686,.218,.833],120094:[.47,.035,.5],120095:[.685,.031,.513],120096:[.466,.029,.389],120097:[.609,.033,.499],120098:[.467,.03,.401],120099:[.681,.221,.326],120100:[.47,.209,.504],120101:[.688,.205,.521],120102:[.673,.02,.279],120103:[.672,.208,.281],120104:[.689,.025,.389],120105:[.685,.02,.28],120106:[.475,.026,.767],120107:[.475,.022,.527],120108:[.48,.028,.489],120109:[.541,.212,.5],120110:[.479,.219,.489],120111:[.474,.021,.389],120112:[.478,.029,.443],120113:[.64,.02,.333,{ic:.015}],120114:[.474,.023,.517],120115:[.53,.028,.512],120116:[.532,.028,.774],120117:[.472,.188,.389],120118:[.528,.218,.499],120119:[.471,.214,.391],120120:[.701,0,.722],120121:[.683,0,.667],120123:[.683,0,.722],120124:[.683,0,.667],120125:[.683,0,.611],120126:[.702,.019,.778],120128:[.683,0,.389],120129:[.683,.077,.5],120130:[.683,0,.778],120131:[.683,0,.667],120132:[.683,0,.944],120134:[.701,.019,.778],120138:[.702,.012,.556],120139:[.683,0,.667],120140:[.683,.019,.722],120141:[.683,.02,.722],120142:[.683,.019,1],120143:[.683,0,.722],120144:[.683,0,.722],120172:[.686,.031,.847],120173:[.684,.031,1.044],120174:[.676,.032,.723],120175:[.683,.029,.982],120176:[.686,.029,.783],120177:[.684,.146,.722],120178:[.687,.029,.927],120179:[.683,.126,.851],120180:[.681,.025,.655],120181:[.68,.141,.652],120182:[.681,.026,.789,{ic:.017}],120183:[.683,.028,.786],120184:[.683,.032,1.239],120185:[.679,.03,.983],120186:[.726,.03,.976],120187:[.688,.223,.977],120188:[.726,.083,.976],120189:[.688,.028,.978],120190:[.685,.031,.978],120191:[.686,.03,.79,{ic:.012}],120192:[.688,.039,.851,{ic:.02}],120193:[.685,.029,.982],120194:[.683,.03,1.235],120195:[.681,.035,.849],120196:[.688,.214,.984],120197:[.677,.148,.711],120198:[.472,.032,.603],120199:[.69,.032,.59],120200:[.473,.026,.464],120201:[.632,.028,.589],120202:[.471,.027,.472],120203:[.687,.222,.388],120204:[.472,.208,.595],120205:[.687,.207,.615],120206:[.686,.025,.331],120207:[.682,.203,.332],120208:[.682,.025,.464],120209:[.681,.024,.337],120210:[.476,.031,.921],120211:[.473,.028,.654],120212:[.482,.034,.609],120213:[.557,.207,.604],120214:[.485,.211,.596],120215:[.472,.026,.46],120216:[.479,.034,.523],120217:[.648,.027,.393,{ic:.014}],120218:[.472,.032,.589,{ic:.014}],120219:[.546,.027,.604],120220:[.549,.032,.918],120221:[.471,.188,.459],120222:[.557,.221,.589],120223:[.471,.214,.461],120224:[.694,0,.667],120225:[.694,0,.667],120226:[.705,.011,.639],120227:[.694,0,.722],120228:[.691,0,.597],120229:[.691,0,.569],120230:[.704,.011,.667],120231:[.694,0,.708],120232:[.694,0,.278],120233:[.694,.022,.472],120234:[.694,0,.694],120235:[.694,0,.542],120236:[.694,0,.875],120237:[.694,0,.708],120238:[.715,.022,.736],120239:[.694,0,.639],120240:[.715,.125,.736],120241:[.694,0,.646],120242:[.716,.022,.556],120243:[.688,0,.681],120244:[.694,.022,.688],120245:[.694,0,.667],120246:[.694,0,.944],120247:[.694,0,.667],120248:[.694,0,.667],120249:[.694,0,.611],120250:[.46,.01,.481],120251:[.694,.011,.517],120252:[.46,.01,.444],120253:[.694,.01,.517],120254:[.461,.01,.444],120255:[.705,0,.306,{ic:.041}],120256:[.455,.206,.5],120257:[.694,0,.517],120258:[.68,0,.239],120259:[.68,.205,.267],120260:[.694,0,.489],120261:[.694,0,.239],120262:[.455,0,.794],120263:[.455,0,.517],120264:[.46,.01,.5],120265:[.455,.194,.517],120266:[.455,.194,.517],120267:[.455,0,.342],120268:[.46,.01,.383],120269:[.571,.01,.361],120270:[.444,.01,.517],120271:[.444,0,.461],120272:[.444,0,.683],120273:[.444,0,.461],120274:[.444,.204,.461],120275:[.444,0,.435],120276:[.694,0,.733],120277:[.694,0,.733],120278:[.704,.011,.703],120279:[.694,0,.794],120280:[.691,0,.642],120281:[.691,0,.611],120282:[.705,.011,.733],120283:[.694,0,.794],120284:[.694,0,.331],120285:[.694,.022,.519],120286:[.694,0,.764],120287:[.694,0,.581],120288:[.694,0,.978],120289:[.694,0,.794],120290:[.716,.022,.794],120291:[.694,0,.703],120292:[.716,.106,.794],120293:[.694,0,.703],120294:[.716,.022,.611],120295:[.688,0,.733],120296:[.694,.022,.764],120297:[.694,0,.733],120298:[.694,0,1.039],120299:[.694,0,.733],120300:[.694,0,.733],120301:[.694,0,.672],120302:[.475,.011,.525],120303:[.694,.01,.561],120304:[.475,.011,.489],120305:[.694,.011,.561],120306:[.474,.01,.511],120307:[.705,0,.336,{ic:.045}],120308:[.469,.206,.55],120309:[.694,0,.561],120310:[.695,0,.256],120311:[.695,.205,.286],120312:[.694,0,.531],120313:[.694,0,.256],120314:[.469,0,.867],120315:[.468,0,.561],120316:[.474,.011,.55],120317:[.469,.194,.561],120318:[.469,.194,.561],120319:[.469,0,.372],120320:[.474,.01,.422],120321:[.589,.01,.404],120322:[.458,.011,.561],120323:[.458,0,.5],120324:[.458,0,.744],120325:[.458,0,.5],120326:[.458,.205,.5],120327:[.458,0,.476],120328:[.694,0,.667],120329:[.694,0,.667,{ic:.029}],120330:[.705,.01,.639,{ic:.08}],120331:[.694,0,.722,{ic:.025}],120332:[.691,0,.597,{ic:.091}],120333:[.691,0,.569,{ic:.104}],120334:[.705,.011,.667,{ic:.063}],120335:[.694,0,.708,{ic:.06}],120336:[.694,0,.278,{ic:.06}],120337:[.694,.022,.472,{ic:.063}],120338:[.694,0,.694,{ic:.091}],120339:[.694,0,.542],120340:[.694,0,.875,{ic:.054}],120341:[.694,0,.708,{ic:.058}],120342:[.716,.022,.736,{ic:.027}],120343:[.694,0,.639,{ic:.051}],120344:[.716,.125,.736,{ic:.027}],120345:[.694,0,.646,{ic:.052}],120346:[.716,.022,.556,{ic:.053}],120347:[.688,0,.681,{ic:.109}],120348:[.694,.022,.688,{ic:.059}],120349:[.694,0,.667,{ic:.132}],120350:[.694,0,.944,{ic:.132}],120351:[.694,0,.667,{ic:.091}],120352:[.694,0,.667,{ic:.143}],120353:[.694,0,.611,{ic:.091}],120354:[.461,.01,.481],120355:[.694,.011,.517,{ic:.022}],120356:[.46,.011,.444,{ic:.055}],120357:[.694,.01,.517,{ic:.071}],120358:[.46,.011,.444,{ic:.028}],120359:[.705,0,.306,{ic:.188}],120360:[.455,.206,.5,{ic:.068}],120361:[.694,0,.517],120362:[.68,0,.239,{ic:.076}],120363:[.68,.204,.267,{ic:.069}],120364:[.694,0,.489,{ic:.054}],120365:[.694,0,.239,{ic:.072}],120366:[.455,0,.794],120367:[.454,0,.517],120368:[.461,.011,.5,{ic:.023}],120369:[.455,.194,.517,{ic:.021}],120370:[.455,.194,.517,{ic:.021}],120371:[.455,0,.342,{ic:.082}],120372:[.461,.011,.383,{ic:.053}],120373:[.571,.011,.361,{ic:.049}],120374:[.444,.01,.517,{ic:.02}],120375:[.444,0,.461,{ic:.079}],120376:[.444,0,.683,{ic:.079}],120377:[.444,0,.461,{ic:.076}],120378:[.444,.205,.461,{ic:.079}],120379:[.444,0,.435,{ic:.059}],120432:[.623,0,.525],120433:[.611,0,.525],120434:[.622,.011,.525],120435:[.611,0,.525],120436:[.611,0,.525],120437:[.611,0,.525],120438:[.622,.011,.525],120439:[.611,0,.525],120440:[.611,0,.525],120441:[.611,.011,.525],120442:[.611,0,.525],120443:[.611,0,.525],120444:[.611,0,.525],120445:[.611,0,.525],120446:[.621,.01,.525],120447:[.611,0,.525],120448:[.621,.138,.525],120449:[.611,.011,.525],120450:[.622,.011,.525],120451:[.611,0,.525],120452:[.611,.011,.525],120453:[.611,.007,.525],120454:[.611,.007,.525],120455:[.611,0,.525],120456:[.611,0,.525],120457:[.611,0,.525],120458:[.439,.006,.525],120459:[.611,.006,.525],120460:[.44,.006,.525],120461:[.611,.006,.525],120462:[.44,.006,.525],120463:[.617,0,.525],120464:[.442,.229,.525],120465:[.611,0,.525],120466:[.612,0,.525],120467:[.612,.228,.525],120468:[.611,0,.525],120469:[.611,0,.525],120470:[.436,0,.525,{ic:.011}],120471:[.436,0,.525],120472:[.44,.006,.525],120473:[.437,.221,.525],120474:[.437,.221,.525,{ic:.02}],120475:[.437,0,.525],120476:[.44,.006,.525],120477:[.554,.006,.525],120478:[.431,.005,.525],120479:[.431,0,.525],120480:[.431,0,.525],120481:[.431,0,.525],120482:[.431,.228,.525],120483:[.431,0,.525],120488:[.698,0,.869],120489:[.686,0,.818],120490:[.68,0,.692],120491:[.698,0,.958],120492:[.68,0,.756],120493:[.686,0,.703],120494:[.686,0,.9],120495:[.696,.01,.894],120496:[.686,0,.436],120497:[.686,0,.901],120498:[.698,0,.806],120499:[.686,0,1.092],120500:[.686,0,.9],120501:[.675,0,.767],120502:[.696,.01,.864],120503:[.68,0,.9],120504:[.686,0,.786],120506:[.686,0,.831],120507:[.675,0,.8],120508:[.697,0,.894],120509:[.686,0,.831],120510:[.686,0,.869],120511:[.686,0,.894],120512:[.696,0,.831],120513:[.686,.024,.958],120546:[.716,0,.75,{sk:.139}],120547:[.683,0,.759,{sk:.0833}],120548:[.68,0,.615,{ic:.106,sk:.0833}],120549:[.716,0,.833,{sk:.167}],120550:[.68,0,.738,{ic:.026,sk:.0833}],120551:[.683,0,.683,{ic:.04,sk:.0833}],120552:[.683,0,.831,{ic:.057,sk:.0556}],120553:[.704,.022,.763,{sk:.0833}],120554:[.683,0,.44,{ic:.064,sk:.111}],120555:[.683,0,.849,{ic:.04,sk:.0556}],120556:[.716,0,.694,{sk:.167}],120557:[.683,0,.97,{ic:.081,sk:.0833}],120558:[.683,0,.803,{ic:.085,sk:.0833}],120559:[.677,0,.742,{ic:.035,sk:.0833}],120560:[.704,.022,.763,{sk:.0833}],120561:[.68,0,.831,{ic:.056,sk:.0556}],120562:[.683,0,.642,{ic:.109,sk:.0833}],120564:[.683,0,.78,{ic:.026,sk:.0833}],120565:[.677,0,.584,{ic:.12,sk:.0833}],120566:[.705,0,.583,{ic:.117,sk:.0556}],120567:[.683,0,.667,{sk:.0833}],120568:[.683,0,.828,{ic:.024,sk:.0833}],120569:[.683,0,.612,{ic:.08,sk:.0556}],120570:[.704,0,.772,{ic:.014,sk:.0833}],120572:[.442,.011,.64,{sk:.0278}],120573:[.705,.194,.566,{sk:.0833}],120574:[.441,.216,.518,{ic:.025}],120575:[.717,.01,.444,{sk:.0556}],120576:[.452,.022,.466,{sk:.0833}],120577:[.704,.204,.438,{ic:.033,sk:.0833}],120578:[.442,.216,.497,{sk:.0556}],120579:[.705,.01,.469,{sk:.0833}],120580:[.442,.01,.354,{sk:.0556}],120581:[.442,.011,.576],120582:[.694,.012,.583],120583:[.442,.216,.603,{sk:.0278}],120584:[.442,0,.494,{ic:.036,sk:.0278}],120585:[.704,.205,.438,{sk:.111}],120586:[.441,.011,.485,{sk:.0556}],120587:[.431,.011,.57],120588:[.442,.216,.517,{sk:.0833}],120589:[.442,.107,.363,{ic:.042,sk:.0833}],120590:[.431,.011,.571],120591:[.431,.013,.437,{ic:.08,sk:.0278}],120592:[.443,.01,.54,{sk:.0278}],120593:[.442,.218,.654,{sk:.0833}],120594:[.442,.204,.626,{sk:.0556}],120595:[.694,.205,.651,{sk:.111}],120596:[.443,.011,.622],120597:[.715,.022,.531,{ic:.035,sk:.0833}],120598:[.431,.011,.406,{sk:.0556}],120599:[.705,.011,.591,{sk:.0833}],120600:[.434,.006,.667,{ic:.067}],120601:[.694,.205,.596,{sk:.0833}],120602:[.442,.194,.517,{sk:.0833}],120603:[.431,.01,.828],120604:[.711,0,.869,{sk:.16}],120605:[.686,0,.866,{sk:.0958}],120606:[.68,0,.657,{ic:.12,sk:.0958}],120607:[.711,0,.958,{sk:.192}],120608:[.68,0,.81,{ic:.015,sk:.0958}],120609:[.686,0,.773,{ic:.032,sk:.0958}],120610:[.686,0,.982,{ic:.045,sk:.0639}],120611:[.702,.017,.867,{sk:.0958}],120612:[.686,0,.511,{ic:.062,sk:.128}],120613:[.686,0,.971,{ic:.032,sk:.0639}],120614:[.711,0,.806,{sk:.192}],120615:[.686,0,1.142,{ic:.077,sk:.0958}],120616:[.686,0,.95,{ic:.077,sk:.0958}],120617:[.675,0,.841,{ic:.026,sk:.0958}],120618:[.703,.017,.837,{sk:.0958}],120619:[.68,0,.982,{ic:.044,sk:.0639}],120620:[.686,0,.723,{ic:.124,sk:.0958}],120622:[.686,0,.885,{ic:.017,sk:.0958}],120623:[.675,0,.637,{ic:.135,sk:.0958}],120624:[.703,0,.671,{ic:.131,sk:.0639}],120625:[.686,0,.767,{sk:.0958}],120626:[.686,0,.947,{sk:.0958}],120627:[.686,0,.714,{ic:.076,sk:.0639}],120628:[.703,0,.879,{sk:.0958}],120630:[.452,.008,.761,{sk:.0319}],120631:[.701,.194,.66,{sk:.0958}],120632:[.451,.211,.59,{ic:.027}],120633:[.725,.008,.522,{sk:.0639}],120634:[.461,.017,.529,{sk:.0958}],120635:[.711,.202,.508,{ic:.013,sk:.0958}],120636:[.452,.211,.6,{sk:.0639}],120637:[.702,.008,.562,{sk:.0958}],120638:[.452,.008,.412,{sk:.0639}],120639:[.452,.008,.668],120640:[.694,.013,.671],120641:[.452,.211,.708,{sk:.0319}],120642:[.452,0,.577,{ic:.031,sk:.0319}],120643:[.711,.201,.508,{sk:.128}],120644:[.452,.008,.585,{sk:.0639}],120645:[.444,.008,.682],120646:[.451,.211,.612,{sk:.0958}],120647:[.451,.105,.424,{ic:.033,sk:.0958}],120648:[.444,.008,.686],120649:[.444,.013,.521,{ic:.089,sk:.0319}],120650:[.453,.008,.631,{sk:.0319}],120651:[.452,.216,.747,{sk:.0958}],120652:[.452,.201,.718,{sk:.0639}],120653:[.694,.202,.758,{sk:.128}],120654:[.453,.008,.718],120655:[.71,.017,.628,{ic:.029,sk:.0958}],120656:[.444,.007,.483,{sk:.0639}],120657:[.701,.008,.692,{sk:.0958}],120658:[.434,.006,.667,{ic:.067}],120659:[.694,.202,.712,{sk:.0958}],120660:[.451,.194,.612,{sk:.0958}],120661:[.444,.008,.975],120662:[.694,0,.733],120663:[.694,0,.733],120664:[.691,0,.581],120665:[.694,0,.917],120666:[.691,0,.642],120667:[.694,0,.672],120668:[.694,0,.794],120669:[.716,.022,.856],120670:[.694,0,.331],120671:[.694,0,.764],120672:[.694,0,.672],120673:[.694,0,.978],120674:[.694,0,.794],120675:[.688,0,.733],120676:[.716,.022,.794],120677:[.691,0,.794],120678:[.694,0,.703],120680:[.694,0,.794],120681:[.688,0,.733],120682:[.715,0,.856],120683:[.694,0,.794],120684:[.694,0,.733],120685:[.694,0,.856],120686:[.716,0,.794],120782:[.654,.01,.575],120783:[.655,0,.575],120784:[.654,0,.575],120785:[.655,.011,.575],120786:[.656,0,.575],120787:[.655,.011,.575],120788:[.655,.011,.575],120789:[.676,.011,.575],120790:[.654,.011,.575],120791:[.654,.011,.575],120802:[.678,.022,.5],120803:[.678,0,.5],120804:[.677,0,.5],120805:[.678,.022,.5],120806:[.656,0,.5],120807:[.656,.021,.5],120808:[.677,.022,.5],120809:[.656,.011,.5],120810:[.678,.022,.5],120811:[.677,.022,.5],120812:[.715,.022,.55],120813:[.716,0,.55],120814:[.716,0,.55],120815:[.716,.022,.55],120816:[.694,0,.55],120817:[.694,.022,.55],120818:[.716,.022,.55],120819:[.695,.011,.55],120820:[.715,.022,.55],120821:[.716,.022,.55],120822:[.621,.01,.525],120823:[.622,0,.525],120824:[.622,0,.525],120825:[.622,.011,.525],120826:[.624,0,.525],120827:[.611,.01,.525],120828:[.622,.011,.525],120829:[.627,.01,.525],120830:[.621,.01,.525],120831:[.622,.011,.525]}},47033:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.sansSerifBoldItalic=void 0;t.sansSerifBoldItalic={305:[.458,0,.256],567:[.458,.205,.286]}},94872:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.sansSerifBold=void 0;t.sansSerifBold={33:[.694,0,.367],34:[.694,-.442,.558],35:[.694,.193,.917],36:[.75,.056,.55],37:[.75,.056,1.029],38:[.716,.022,.831],39:[.694,-.442,.306],40:[.75,.249,.428],41:[.75,.25,.428],42:[.75,-.293,.55],43:[.617,.116,.856],44:[.146,.106,.306],45:[.273,-.186,.367],46:[.146,0,.306],47:[.75,.249,.55],58:[.458,0,.306],59:[.458,.106,.306],61:[.407,-.094,.856],63:[.705,0,.519],64:[.704,.011,.733],91:[.75,.25,.343],93:[.75,.25,.343],94:[.694,-.537,.55],95:[-.023,.11,.55],126:[.344,-.198,.55],305:[.458,0,.256],567:[.458,.205,.286],768:[.694,-.537,0],769:[.694,-.537,0],770:[.694,-.537,0],771:[.694,-.548,0],772:[.66,-.56,0],774:[.694,-.552,0],775:[.695,-.596,0],776:[.695,-.595,0],778:[.694,-.538,0],779:[.694,-.537,0],780:[.657,-.5,0],8211:[.327,-.24,.55],8212:[.327,-.24,1.1],8213:[.327,-.24,1.1],8215:[-.023,.11,.55],8216:[.694,-.443,.306],8217:[.694,-.442,.306],8220:[.694,-.443,.558],8221:[.694,-.442,.558],8260:[.75,.249,.55],8710:[.694,0,.917]}},9255:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.sansSerifItalic=void 0;t.sansSerifItalic={33:[.694,0,.319,{ic:.036}],34:[.694,-.471,.5],35:[.694,.194,.833,{ic:.018}],36:[.75,.056,.5,{ic:.065}],37:[.75,.056,.833],38:[.716,.022,.758],39:[.694,-.471,.278,{ic:.057}],40:[.75,.25,.389,{ic:.102}],41:[.75,.25,.389],42:[.75,-.306,.5,{ic:.068}],43:[.583,.083,.778],44:[.098,.125,.278],45:[.259,-.186,.333],46:[.098,0,.278],47:[.75,.25,.5,{ic:.1}],48:[.678,.022,.5,{ic:.049}],49:[.678,0,.5],50:[.678,0,.5,{ic:.051}],51:[.678,.022,.5,{ic:.044}],52:[.656,0,.5,{ic:.021}],53:[.656,.022,.5,{ic:.055}],54:[.678,.022,.5,{ic:.048}],55:[.656,.011,.5,{ic:.096}],56:[.678,.022,.5,{ic:.054}],57:[.677,.022,.5,{ic:.045}],58:[.444,0,.278],59:[.444,.125,.278],61:[.37,-.13,.778,{ic:.018}],63:[.704,0,.472,{ic:.064}],64:[.705,.01,.667,{ic:.04}],91:[.75,.25,.289,{ic:.136}],93:[.75,.25,.289,{ic:.064}],94:[.694,-.527,.5,{ic:.033}],95:[-.038,.114,.5,{ic:.065}],126:[.327,-.193,.5,{ic:.06}],305:[.444,0,.239,{ic:.019}],567:[.444,.204,.267,{ic:.019}],768:[.694,-.527,0],769:[.694,-.527,0,{ic:.063}],770:[.694,-.527,0,{ic:.033}],771:[.677,-.543,0,{ic:.06}],772:[.631,-.552,0,{ic:.064}],774:[.694,-.508,0,{ic:.073}],775:[.68,-.576,0],776:[.68,-.582,0,{ic:.04}],778:[.693,-.527,0],779:[.694,-.527,0,{ic:.063}],780:[.654,-.487,0,{ic:.06}],913:[.694,0,.667],914:[.694,0,.667,{ic:.029}],915:[.691,0,.542,{ic:.104}],916:[.694,0,.833],917:[.691,0,.597,{ic:.091}],918:[.694,0,.611,{ic:.091}],919:[.694,0,.708,{ic:.06}],920:[.715,.022,.778,{ic:.026}],921:[.694,0,.278,{ic:.06}],922:[.694,0,.694,{ic:.091}],923:[.694,0,.611],924:[.694,0,.875,{ic:.054}],925:[.694,0,.708,{ic:.058}],926:[.688,0,.667,{ic:.098}],927:[.716,.022,.736,{ic:.027}],928:[.691,0,.708,{ic:.06}],929:[.694,0,.639,{ic:.051}],931:[.694,0,.722,{ic:.091}],932:[.688,0,.681,{ic:.109}],933:[.716,0,.778,{ic:.065}],934:[.694,0,.722,{ic:.021}],935:[.694,0,.667,{ic:.091}],936:[.694,0,.778,{ic:.076}],937:[.716,0,.722,{ic:.047}],8211:[.312,-.236,.5,{ic:.065}],8212:[.312,-.236,1,{ic:.065}],8213:[.312,-.236,1,{ic:.065}],8215:[-.038,.114,.5,{ic:.065}],8216:[.694,-.471,.278,{ic:.058}],8217:[.694,-.471,.278,{ic:.057}],8220:[.694,-.471,.5,{ic:.114}],8221:[.694,-.471,.5],8260:[.75,.25,.5,{ic:.1}],8710:[.694,0,.833]}},83366:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.sansSerif=void 0;t.sansSerif={33:[.694,0,.319],34:[.694,-.471,.5],35:[.694,.194,.833],36:[.75,.056,.5],37:[.75,.056,.833],38:[.716,.022,.758],39:[.694,-.471,.278],40:[.75,.25,.389],41:[.75,.25,.389],42:[.75,-.306,.5],43:[.583,.082,.778],44:[.098,.125,.278],45:[.259,-.186,.333],46:[.098,0,.278],47:[.75,.25,.5],58:[.444,0,.278],59:[.444,.125,.278],61:[.37,-.13,.778],63:[.704,0,.472],64:[.704,.011,.667],91:[.75,.25,.289],93:[.75,.25,.289],94:[.694,-.527,.5],95:[-.038,.114,.5],126:[.327,-.193,.5],305:[.444,0,.239],567:[.444,.205,.267],768:[.694,-.527,0],769:[.694,-.527,0],770:[.694,-.527,0],771:[.677,-.543,0],772:[.631,-.552,0],774:[.694,-.508,0],775:[.68,-.576,0],776:[.68,-.582,0],778:[.694,-.527,0],779:[.694,-.527,0],780:[.654,-.487,0],913:[.694,0,.667],914:[.694,0,.667],915:[.691,0,.542],916:[.694,0,.833],917:[.691,0,.597],918:[.694,0,.611],919:[.694,0,.708],920:[.716,.021,.778],921:[.694,0,.278],922:[.694,0,.694],923:[.694,0,.611],924:[.694,0,.875],925:[.694,0,.708],926:[.688,0,.667],927:[.715,.022,.736],928:[.691,0,.708],929:[.694,0,.639],931:[.694,0,.722],932:[.688,0,.681],933:[.716,0,.778],934:[.694,0,.722],935:[.694,0,.667],936:[.694,0,.778],937:[.716,0,.722],8211:[.312,-.236,.5],8212:[.312,-.236,1],8213:[.312,-.236,1],8215:[-.038,.114,.5],8216:[.694,-.471,.278],8217:[.694,-.471,.278],8220:[.694,-.471,.5],8221:[.694,-.471,.5],8260:[.75,.25,.5],8710:[.694,0,.833]}},21616:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.scriptBold=void 0;t.scriptBold={}},24062:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.script=void 0;t.script={}},22578:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.smallop=void 0;t.smallop={40:[.85,.349,.458],41:[.85,.349,.458],47:[.85,.349,.578],91:[.85,.349,.417],92:[.85,.349,.578],93:[.85,.349,.417],123:[.85,.349,.583],125:[.85,.349,.583],710:[.744,-.551,.556],732:[.722,-.597,.556],770:[.744,-.551,0],771:[.722,-.597,0],8214:[.602,0,.778],8260:[.85,.349,.578],8593:[.6,0,.667],8595:[.6,0,.667],8657:[.599,0,.778],8659:[.6,0,.778],8719:[.75,.25,.944],8720:[.75,.25,.944],8721:[.75,.25,1.056],8730:[.85,.35,1,{ic:.02}],8739:[.627,.015,.333],8741:[.627,.015,.556],8747:[.805,.306,.472,{ic:.138}],8748:[.805,.306,.819,{ic:.138}],8749:[.805,.306,1.166,{ic:.138}],8750:[.805,.306,.472,{ic:.138}],8896:[.75,.249,.833],8897:[.75,.249,.833],8898:[.75,.249,.833],8899:[.75,.249,.833],8968:[.85,.349,.472],8969:[.85,.349,.472],8970:[.85,.349,.472],8971:[.85,.349,.472],9001:[.85,.35,.472],9002:[.85,.35,.472],9168:[.602,0,.667],10072:[.627,.015,.333],10216:[.85,.35,.472],10217:[.85,.35,.472],10752:[.75,.25,1.111],10753:[.75,.25,1.111],10754:[.75,.25,1.111],10756:[.75,.249,.833],10758:[.75,.249,.833],10764:[.805,.306,1.638,{ic:.138}],12296:[.85,.35,.472],12297:[.85,.35,.472]}},70286:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.texCalligraphicBold=void 0;t.texCalligraphicBold={65:[.751,.049,.921,{ic:.068,sk:.224}],66:[.705,.017,.748,{sk:.16}],67:[.703,.02,.613,{sk:.16}],68:[.686,0,.892,{sk:.0958}],69:[.703,.016,.607,{ic:.02,sk:.128}],70:[.686,.03,.814,{ic:.116,sk:.128}],71:[.703,.113,.682,{sk:.128}],72:[.686,.048,.987,{sk:.128}],73:[.686,0,.642,{ic:.104,sk:.0319}],74:[.686,.114,.779,{ic:.158,sk:.192}],75:[.703,.017,.871,{sk:.0639}],76:[.703,.017,.788,{sk:.16}],77:[.703,.049,1.378,{sk:.16}],78:[.84,.049,.937,{ic:.168,sk:.0958}],79:[.703,.017,.906,{sk:.128}],80:[.686,.067,.81,{ic:.036,sk:.0958}],81:[.703,.146,.939,{sk:.128}],82:[.686,.017,.99,{sk:.0958}],83:[.703,.016,.696,{ic:.025,sk:.16}],84:[.72,.069,.644,{ic:.303,sk:.0319}],85:[.686,.024,.715,{ic:.056,sk:.0958}],86:[.686,.077,.737,{ic:.037,sk:.0319}],87:[.686,.077,1.169,{ic:.037,sk:.0958}],88:[.686,0,.817,{ic:.089,sk:.16}],89:[.686,.164,.759,{ic:.038,sk:.0958}],90:[.686,0,.818,{ic:.035,sk:.16}],305:[.452,.008,.394,{sk:.0319}],567:[.451,.201,.439,{sk:.0958}]}},57552:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.texCalligraphic=void 0;t.texCalligraphic={65:[.728,.05,.798,{ic:.021,sk:.194}],66:[.705,.022,.657,{sk:.139}],67:[.705,.025,.527,{sk:.139}],68:[.683,0,.771,{sk:.0833}],69:[.705,.022,.528,{ic:.036,sk:.111}],70:[.683,.032,.719,{ic:.11,sk:.111}],71:[.704,.119,.595,{sk:.111}],72:[.683,.048,.845,{sk:.111}],73:[.683,0,.545,{ic:.097,sk:.0278}],74:[.683,.119,.678,{ic:.161,sk:.167}],75:[.705,.022,.762,{sk:.0556}],76:[.705,.022,.69,{sk:.139}],77:[.705,.05,1.201,{sk:.139}],78:[.789,.05,.82,{ic:.159,sk:.0833}],79:[.705,.022,.796,{sk:.111}],80:[.683,.057,.696,{ic:.037,sk:.0833}],81:[.705,.131,.817,{sk:.111}],82:[.682,.022,.848,{sk:.0833}],83:[.705,.022,.606,{ic:.036,sk:.139}],84:[.717,.068,.545,{ic:.288,sk:.0278}],85:[.683,.028,.626,{ic:.061,sk:.0833}],86:[.683,.052,.613,{ic:.045,sk:.0278}],87:[.683,.053,.988,{ic:.046,sk:.0833}],88:[.683,0,.713,{ic:.094,sk:.139}],89:[.683,.143,.668,{ic:.046,sk:.0833}],90:[.683,0,.725,{ic:.042,sk:.139}]}},24398:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.texMathit=void 0;t.texMathit={65:[.716,0,.743],66:[.683,0,.704],67:[.705,.021,.716],68:[.683,0,.755],69:[.68,0,.678],70:[.68,0,.653],71:[.705,.022,.774],72:[.683,0,.743],73:[.683,0,.386],74:[.683,.021,.525],75:[.683,0,.769],76:[.683,0,.627],77:[.683,0,.897],78:[.683,0,.743],79:[.704,.022,.767],80:[.683,0,.678],81:[.704,.194,.767],82:[.683,.022,.729],83:[.705,.022,.562],84:[.677,0,.716],85:[.683,.022,.743],86:[.683,.022,.743],87:[.683,.022,.999],88:[.683,0,.743],89:[.683,0,.743],90:[.683,0,.613],97:[.442,.011,.511],98:[.694,.011,.46],99:[.441,.01,.46],100:[.694,.011,.511],101:[.442,.01,.46],102:[.705,.204,.307],103:[.442,.205,.46],104:[.694,.011,.511],105:[.656,.01,.307],106:[.656,.204,.307],107:[.694,.011,.46],108:[.694,.011,.256],109:[.442,.011,.818],110:[.442,.011,.562],111:[.442,.011,.511],112:[.442,.194,.511],113:[.442,.194,.46],114:[.442,.011,.422],115:[.442,.011,.409],116:[.626,.011,.332],117:[.441,.011,.537],118:[.443,.01,.46],119:[.443,.011,.664],120:[.442,.011,.464],121:[.441,.205,.486],122:[.442,.011,.409]}},20628:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.texOldstyleBold=void 0;t.texOldstyleBold={48:[.46,.017,.575],49:[.461,0,.575],50:[.46,0,.575],51:[.461,.211,.575],52:[.469,.194,.575],53:[.461,.211,.575],54:[.66,.017,.575],55:[.476,.211,.575],56:[.661,.017,.575],57:[.461,.21,.575],65:[.751,.049,.921,{ic:.068,sk:.224}],66:[.705,.017,.748,{sk:.16}],67:[.703,.02,.613,{sk:.16}],68:[.686,0,.892,{sk:.0958}],69:[.703,.016,.607,{ic:.02,sk:.128}],70:[.686,.03,.814,{ic:.116,sk:.128}],71:[.703,.113,.682,{sk:.128}],72:[.686,.048,.987,{sk:.128}],73:[.686,0,.642,{ic:.104,sk:.0319}],74:[.686,.114,.779,{ic:.158,sk:.192}],75:[.703,.017,.871,{sk:.0639}],76:[.703,.017,.788,{sk:.16}],77:[.703,.049,1.378,{sk:.16}],78:[.84,.049,.937,{ic:.168,sk:.0958}],79:[.703,.017,.906,{sk:.128}],80:[.686,.067,.81,{ic:.036,sk:.0958}],81:[.703,.146,.939,{sk:.128}],82:[.686,.017,.99,{sk:.0958}],83:[.703,.016,.696,{ic:.025,sk:.16}],84:[.72,.069,.644,{ic:.303,sk:.0319}],85:[.686,.024,.715,{ic:.056,sk:.0958}],86:[.686,.077,.737,{ic:.037,sk:.0319}],87:[.686,.077,1.169,{ic:.037,sk:.0958}],88:[.686,0,.817,{ic:.089,sk:.16}],89:[.686,.164,.759,{ic:.038,sk:.0958}],90:[.686,0,.818,{ic:.035,sk:.16}]}},41855:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.texOldstyle=void 0;t.texOldstyle={48:[.452,.022,.5],49:[.453,0,.5],50:[.453,0,.5],51:[.452,.216,.5],52:[.464,.194,.5],53:[.453,.216,.5],54:[.665,.022,.5],55:[.463,.216,.5],56:[.666,.021,.5],57:[.453,.216,.5],65:[.728,.05,.798,{ic:.021,sk:.194}],66:[.705,.022,.657,{sk:.139}],67:[.705,.025,.527,{sk:.139}],68:[.683,0,.771,{sk:.0833}],69:[.705,.022,.528,{ic:.036,sk:.111}],70:[.683,.032,.719,{ic:.11,sk:.111}],71:[.704,.119,.595,{sk:.111}],72:[.683,.048,.845,{sk:.111}],73:[.683,0,.545,{ic:.097,sk:.0278}],74:[.683,.119,.678,{ic:.161,sk:.167}],75:[.705,.022,.762,{sk:.0556}],76:[.705,.022,.69,{sk:.139}],77:[.705,.05,1.201,{sk:.139}],78:[.789,.05,.82,{ic:.159,sk:.0833}],79:[.705,.022,.796,{sk:.111}],80:[.683,.057,.696,{ic:.037,sk:.0833}],81:[.705,.131,.817,{sk:.111}],82:[.682,.022,.848,{sk:.0833}],83:[.705,.022,.606,{ic:.036,sk:.139}],84:[.717,.068,.545,{ic:.288,sk:.0278}],85:[.683,.028,.626,{ic:.061,sk:.0833}],86:[.683,.052,.613,{ic:.045,sk:.0278}],87:[.683,.053,.988,{ic:.046,sk:.0833}],88:[.683,0,.713,{ic:.094,sk:.139}],89:[.683,.143,.668,{ic:.046,sk:.0833}],90:[.683,0,.725,{ic:.042,sk:.139}]}},75431:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.texSize3=void 0;t.texSize3={40:[1.45,.949,.736],41:[1.45,.949,.736],47:[1.45,.949,1.044],91:[1.45,.949,.528],92:[1.45,.949,1.044],93:[1.45,.949,.528],123:[1.45,.949,.75],125:[1.45,.949,.75],710:[.772,-.564,1.444],732:[.749,-.61,1.444],770:[.772,-.564,0],771:[.749,-.61,0],8260:[1.45,.949,1.044],8730:[1.45,.95,1,{ic:.02}],8968:[1.45,.949,.583],8969:[1.45,.949,.583],8970:[1.45,.949,.583],8971:[1.45,.949,.583],9001:[1.45,.95,.75],9002:[1.45,.949,.75],10216:[1.45,.95,.75],10217:[1.45,.949,.75],12296:[1.45,.95,.75],12297:[1.45,.949,.75]}},98278:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.texSize4=void 0;t.texSize4={40:[1.75,1.249,.792],41:[1.75,1.249,.792],47:[1.75,1.249,1.278],91:[1.75,1.249,.583],92:[1.75,1.249,1.278],93:[1.75,1.249,.583],123:[1.75,1.249,.806],125:[1.75,1.249,.806],710:[.845,-.561,1.889,{ic:.013}],732:[.823,-.583,1.889],770:[.845,-.561,0,{ic:.013}],771:[.823,-.583,0],8260:[1.75,1.249,1.278],8730:[1.75,1.25,1,{ic:.02}],8968:[1.75,1.249,.639],8969:[1.75,1.249,.639],8970:[1.75,1.249,.639],8971:[1.75,1.249,.639],9001:[1.75,1.248,.806],9002:[1.75,1.248,.806],9115:[1.154,.655,.875],9116:[.61,.01,.875],9117:[1.165,.644,.875],9118:[1.154,.655,.875],9119:[.61,.01,.875],9120:[1.165,.644,.875],9121:[1.154,.645,.667],9122:[.602,0,.667],9123:[1.155,.644,.667],9124:[1.154,.645,.667],9125:[.602,0,.667],9126:[1.155,.644,.667],9127:[.899,.01,.889],9128:[1.16,.66,.889],9129:[.01,.899,.889],9130:[.29,.015,.889],9131:[.899,.01,.889],9132:[1.16,.66,.889],9133:[.01,.899,.889],9143:[.935,.885,1.056],10216:[1.75,1.248,.806],10217:[1.75,1.248,.806],12296:[1.75,1.248,.806],12297:[1.75,1.248,.806],57344:[.625,.014,1.056],57345:[.605,.014,1.056,{ic:.02}],57680:[.12,.213,.45,{ic:.01}],57681:[.12,.213,.45,{ic:.024}],57682:[.333,0,.45,{ic:.01}],57683:[.333,0,.45,{ic:.024}],57684:[.32,.2,.4,{ic:.01}],57685:[.333,0,.9,{ic:.01}],57686:[.12,.213,.9,{ic:.01}]}},90456:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.texVariant=void 0;t.texVariant={710:[.845,-.561,2.333,{ic:.013}],732:[.899,-.628,2.333],770:[.845,-.561,0,{ic:.013}],771:[.899,-.628,0],1008:[.434,.006,.667,{ic:.067}],8463:[.695,.013,.54,{ic:.022}],8592:[.437,-.064,.5],8594:[.437,-.064,.5],8652:[.514,.014,1],8708:[.86,.166,.556],8709:[.587,0,.778],8722:[.27,-.23,.5],8726:[.43,.023,.778],8733:[.472,-.028,.778],8739:[.43,.023,.222],8740:[.43,.023,.222,{ic:.018}],8741:[.431,.023,.389],8742:[.431,.024,.389,{ic:.018}],8764:[.365,-.132,.778],8776:[.481,-.05,.778],8808:[.752,.284,.778],8809:[.752,.284,.778],8816:[.919,.421,.778],8817:[.919,.421,.778],8840:[.828,.33,.778],8841:[.828,.33,.778],8842:[.634,.255,.778],8843:[.634,.254,.778],8872:[.694,0,.611],8901:[.189,0,.278],8994:[.378,-.122,.778],8995:[.378,-.143,.778],9651:[.575,.02,.722],9661:[.576,.019,.722],10887:[.801,.303,.778],10888:[.801,.303,.778],10955:[.752,.332,.778],10956:[.752,.333,.778]}},86810:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.px=t.emRounded=t.em=t.percent=t.length2em=t.MATHSPACE=t.RELUNITS=t.UNITS=t.BIGDIMEN=void 0;t.BIGDIMEN=1e6;t.UNITS={px:1,in:96,cm:96/2.54,mm:96/25.4};t.RELUNITS={em:1,ex:.431,pt:1/10,pc:12/10,mu:1/18};t.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:t.BIGDIMEN};function e(c,e,i,f){if(e===void 0){e=0}if(i===void 0){i=1}if(f===void 0){f=16}if(typeof c!=="string"){c=String(c)}if(c===""||c==null){return e}if(t.MATHSPACE[c]){return t.MATHSPACE[c]}var r=c.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/);if(!r){return e}var s=parseFloat(r[1]||"1"),a=r[2];if(t.UNITS.hasOwnProperty(a)){return s*t.UNITS[a]/f/i}if(t.RELUNITS.hasOwnProperty(a)){return s*t.RELUNITS[a]}if(a==="%"){return s/100*e}return s*e}t.length2em=e;function i(c){return(100*c).toFixed(1).replace(/\.?0+$/,"")+"%"}t.percent=i;function f(c){if(Math.abs(c)<.001)return"0";return c.toFixed(3).replace(/\.?0+$/,"")+"em"}t.em=f;function r(c,t){if(t===void 0){t=16}c=(Math.round(c*t)+.05)/t;if(Math.abs(c)<.001)return"0em";return c.toFixed(3).replace(/\.?0+$/,"")+"em"}t.emRounded=r;function s(c,e,i){if(e===void 0){e=-t.BIGDIMEN}if(i===void 0){i=16}c*=i;if(e&&c{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/share/jupyter/lab/static/1740.ea85a6b11ee65c009b96.js b/share/jupyter/lab/static/1740.ea85a6b11ee65c009b96.js new file mode 100644 index 0000000..8e58192 --- /dev/null +++ b/share/jupyter/lab/static/1740.ea85a6b11ee65c009b96.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1740],{71740:e=>{!function(t,i){true?e.exports=i():0}(self,(()=>(()=>{"use strict";var e={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)}}}},t={};function i(s){var r=t[s];if(void 0!==r)return r.exports;var o=t[s]={exports:{}};return e[s](o,o.exports,i),o.exports}var s={};return(()=>{var e=s;Object.defineProperty(e,"__esModule",{value:!0}),e.SearchAddon=void 0;const t=i(345),r=i(859),o=" ~!@#$%^&*()+`-=[]{}|\\;:\"',./<>?";class n extends r.Disposable{constructor(e){super(),this._highlightedLines=new Set,this._highlightDecorations=[],this._selectedDecoration=this.register(new r.MutableDisposable),this._linesCacheTimeoutId=0,this._linesCacheDisposables=new r.MutableDisposable,this._onDidChangeResults=this.register(new t.EventEmitter),this.onDidChangeResults=this._onDidChangeResults.event,this._highlightLimit=e?.highlightLimit??1e3}activate(e){this._terminal=e,this.register(this._terminal.onWriteParsed((()=>this._updateMatches()))),this.register(this._terminal.onResize((()=>this._updateMatches()))),this.register((0,r.toDisposable)((()=>this.clearDecorations())))}_updateMatches(){this._highlightTimeout&&window.clearTimeout(this._highlightTimeout),this._cachedSearchTerm&&this._lastSearchOptions?.decorations&&(this._highlightTimeout=setTimeout((()=>{const e=this._cachedSearchTerm;this._cachedSearchTerm=void 0,this.findPrevious(e,{...this._lastSearchOptions,incremental:!0,noScroll:!0})}),200))}clearDecorations(e){this._selectedDecoration.clear(),(0,r.disposeArray)(this._highlightDecorations),this._highlightDecorations=[],this._highlightedLines.clear(),e||(this._cachedSearchTerm=void 0)}clearActiveDecoration(){this._selectedDecoration.clear()}findNext(e,t){if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");const i=!this._lastSearchOptions||this._didOptionsChange(this._lastSearchOptions,t);this._lastSearchOptions=t,t?.decorations&&(void 0===this._cachedSearchTerm||e!==this._cachedSearchTerm||i)&&this._highlightAllMatches(e,t);const s=this._findNextAndSelect(e,t);return this._fireResults(t),this._cachedSearchTerm=e,s}_highlightAllMatches(e,t){if(!this._terminal)throw new Error("Cannot use addon until it has been loaded");if(!e||0===e.length)return void this.clearDecorations();t=t||{},this.clearDecorations(!0);const i=[];let s,r=this._find(e,0,0,t);for(;r&&(s?.row!==r.row||s?.col!==r.col)&&!(i.length>=this._highlightLimit);)s=r,i.push(s),r=this._find(e,s.col+s.term.length>=this._terminal.cols?s.row+1:s.row,s.col+s.term.length>=this._terminal.cols?0:s.col+1,t);for(const o of i){const e=this._createResultDecoration(o,t.decorations);e&&(this._highlightedLines.add(e.marker.line),this._highlightDecorations.push({decoration:e,match:o,dispose(){e.dispose()}}))}}_find(e,t,i,s){if(!this._terminal||!e||0===e.length)return this._terminal?.clearSelection(),void this.clearDecorations();if(i>this._terminal.cols)throw new Error(`Invalid col: ${i} to search in terminal of ${this._terminal.cols} cols`);let r;this._initLinesCache();const o={startRow:t,startCol:i};if(r=this._findInLine(e,o,s),!r)for(let n=t+1;n=0&&(n.startRow=i,h=this._findInLine(e,n,t,o),!h);i--);}if(!h&&s!==this._terminal.buffer.active.baseY+this._terminal.rows-1)for(let a=this._terminal.buffer.active.baseY+this._terminal.rows-1;a>=s&&(n.startRow=a,h=this._findInLine(e,n,t,o),!h);a--);return this._selectResult(h,t?.decorations,t?.noScroll)}_initLinesCache(){const e=this._terminal;this._linesCache||(this._linesCache=new Array(e.buffer.active.length),this._linesCacheDisposables.value=(0,r.getDisposeArrayDisposable)([e.onLineFeed((()=>this._destroyLinesCache())),e.onCursorMove((()=>this._destroyLinesCache())),e.onResize((()=>this._destroyLinesCache()))])),window.clearTimeout(this._linesCacheTimeoutId),this._linesCacheTimeoutId=window.setTimeout((()=>this._destroyLinesCache()),15e3)}_destroyLinesCache(){this._linesCache=void 0,this._linesCacheDisposables.clear(),this._linesCacheTimeoutId&&(window.clearTimeout(this._linesCacheTimeoutId),this._linesCacheTimeoutId=0)}_isWholeWord(e,t,i){return(0===e||o.includes(t[e-1]))&&(e+i.length===t.length||o.includes(t[e+i.length]))}_findInLine(e,t,i={},s=!1){const r=this._terminal,o=t.startRow,n=t.startCol,h=r.buffer.active.getLine(o);if(h?.isWrapped)return s?void(t.startCol+=r.cols):(t.startRow--,t.startCol+=r.cols,this._findInLine(e,t,i));let a=this._linesCache?.[o];a||(a=this._translateBufferLineToStringWithWrap(o,!0),this._linesCache&&(this._linesCache[o]=a));const[l,c]=a,d=this._bufferColsToStringOffset(o,n),_=i.caseSensitive?e:e.toLowerCase(),u=i.caseSensitive?l:l.toLowerCase();let f=-1;if(i.regex){const t=RegExp(_,"g");let i;if(s)for(;i=t.exec(u.slice(0,d));)f=t.lastIndex-i[0].length,e=i[0],t.lastIndex-=e.length-1;else i=t.exec(u.slice(d)),i&&i[0].length>0&&(f=d+(t.lastIndex-i[0].length),e=i[0])}else s?d-_.length>=0&&(f=u.lastIndexOf(_,d-_.length)):f=u.indexOf(_,d);if(f>=0){if(i.wholeWord&&!this._isWholeWord(f,u,e))return;let t=0;for(;t=c[t+1];)t++;let s=t;for(;s=c[s+1];)s++;const n=f-c[t],h=f+e.length-c[s],a=this._stringLengthToBufferSize(o+t,n);return{term:e,col:a,row:o+t,size:this._stringLengthToBufferSize(o+s,h)-a+r.cols*(s-t)}}}_stringLengthToBufferSize(e,t){const i=this._terminal.buffer.active.getLine(e);if(!i)return 0;for(let s=0;s1&&(t-=r.length-1);const o=i.getCell(s+1);o&&0===o.getWidth()&&t++}return t}_bufferColsToStringOffset(e,t){const i=this._terminal;let s=e,r=0,o=i.buffer.active.getLine(s);for(;t>0&&o;){for(let e=0;ethis._applyStyles(e,t.activeMatchBorder,!0)))),s.push(o.onDispose((()=>(0,r.disposeArray)(s)))),this._selectedDecoration.value={decoration:o,match:e,dispose(){o.dispose()}}}}}if(!i&&(e.row>=s.buffer.active.viewportY+s.rows||e.rowthis._applyStyles(e,t.matchBorder,!1)))),e.push(o.onDispose((()=>(0,r.disposeArray)(e))))}return o}}e.SearchAddon=n})(),s})()))}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/1832.b1ede2fe899bdec88938.js b/share/jupyter/lab/static/1832.b1ede2fe899bdec88938.js new file mode 100644 index 0000000..c68f710 --- /dev/null +++ b/share/jupyter/lab/static/1832.b1ede2fe899bdec88938.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1832],{31832:e=>{!function(t,n){true?e.exports=n():0}(self,(()=>(()=>{"use strict";var e={6:(e,t)=>{function n(e){try{const t=new URL(e),n=t.password&&t.username?`${t.protocol}//${t.username}:${t.password}@${t.host}`:t.username?`${t.protocol}//${t.username}@${t.host}`:`${t.protocol}//${t.host}`;return e.toLocaleLowerCase().startsWith(n.toLocaleLowerCase())}catch(e){return!1}}Object.defineProperty(t,"__esModule",{value:!0}),t.LinkComputer=t.WebLinkProvider=void 0,t.WebLinkProvider=class{constructor(e,t,n,r={}){this._terminal=e,this._regex=t,this._handler=n,this._options=r}provideLinks(e,t){const n=r.computeLink(e,this._regex,this._terminal,this._handler);t(this._addCallbacks(n))}_addCallbacks(e){return e.map((e=>(e.leave=this._options.leave,e.hover=(t,n)=>{if(this._options.hover){const{range:r}=e;this._options.hover(t,n,r)}},e)))}};class r{static computeLink(e,t,i,o){const s=new RegExp(t.source,(t.flags||"")+"g"),[a,l]=r._getWindowedLineStrings(e-1,i),c=a.join("");let p;const d=[];for(;p=s.exec(c);){const e=p[0];if(!n(e))continue;const[t,s]=r._mapStrIdx(i,l,0,p.index),[a,c]=r._mapStrIdx(i,t,s,e.length);if(-1===t||-1===s||-1===a||-1===c)continue;const h={start:{x:s+1,y:t+1},end:{x:c,y:a+1}};d.push({range:h,text:e,activate:o})}return d}static _getWindowedLineStrings(e,t){let n,r=e,i=e,o=0,s="";const a=[];if(n=t.buffer.active.getLine(e)){const e=n.translateToString(!0);if(n.isWrapped&&" "!==e[0]){for(o=0;(n=t.buffer.active.getLine(--r))&&o<2048&&(s=n.translateToString(!0),o+=s.length,a.push(s),n.isWrapped&&-1===s.indexOf(" ")););a.reverse()}for(a.push(e),o=0;(n=t.buffer.active.getLine(++i))&&n.isWrapped&&o<2048&&(s=n.translateToString(!0),o+=s.length,a.push(s),-1===s.indexOf(" ")););}return[a,r]}static _mapStrIdx(e,t,n,r){const i=e.buffer.active,o=i.getNullCell();let s=n;for(;r;){const e=i.getLine(t);if(!e)return[-1,-1];for(let n=s;n{var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.WebLinksAddon=void 0;const t=n(6),i=/(https?|HTTPS?):[/]{2}[^\s"'!*(){}|\\\^<>`]*[^\s"':,.!?{}|\\\^~\[\]`()<>]/;function o(e,t){const n=window.open();if(n){try{n.opener=null}catch{}n.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}e.WebLinksAddon=class{constructor(e=o,t={}){this._handler=e,this._options=t}activate(e){this._terminal=e;const n=this._options,r=n.urlRegex||i;this._linkProvider=this._terminal.registerLinkProvider(new t.WebLinkProvider(this._terminal,r,this._handler,n))}dispose(){this._linkProvider?.dispose()}}})(),r})()))}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/1834.7445ad0c82371ac40737.js b/share/jupyter/lab/static/1834.7445ad0c82371ac40737.js new file mode 100644 index 0000000..014fe29 --- /dev/null +++ b/share/jupyter/lab/static/1834.7445ad0c82371ac40737.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1834],{11834:(e,t,r)=>{r.r(t);r.d(t,{asciiArmor:()=>s});function a(e){var t=e.match(/^\s*\S/);e.skipToEnd();return t?"error":null}const s={name:"asciiarmor",token:function(e,t){var r;if(t.state=="top"){if(e.sol()&&(r=e.match(/^-----BEGIN (.*)?-----\s*$/))){t.state="headers";t.type=r[1];return"tag"}return a(e)}else if(t.state=="headers"){if(e.sol()&&e.match(/^\w+:/)){t.state="header";return"atom"}else{var s=a(e);if(s)t.state="body";return s}}else if(t.state=="header"){e.skipToEnd();t.state="headers";return"string"}else if(t.state=="body"){if(e.sol()&&(r=e.match(/^-----END (.*)?-----\s*$/))){if(r[1]!=t.type)return"error";t.state="end";return"tag"}else{if(e.eatWhile(/[A-Za-z0-9+\/=]/)){return null}else{e.next();return"error"}}}else if(t.state=="end"){return a(e)}},blankLine:function(e){if(e.state=="headers")e.state="body"},startState:function(){return{state:"top",type:null}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/1838.9f8063fe6e262e0db079.js b/share/jupyter/lab/static/1838.9f8063fe6e262e0db079.js new file mode 100644 index 0000000..879776e --- /dev/null +++ b/share/jupyter/lab/static/1838.9f8063fe6e262e0db079.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/share/jupyter/lab/static/1887.56f83f163a18c61efb16.js b/share/jupyter/lab/static/1887.56f83f163a18c61efb16.js new file mode 100644 index 0000000..7e8c3e7 --- /dev/null +++ b/share/jupyter/lab/static/1887.56f83f163a18c61efb16.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1887],{81887:(e,t,r)=>{r.r(t);r.d(t,{eiffel:()=>s});function n(e){var t={};for(var r=0,n=e.length;r>"]);function u(e,t,r){r.tokenize.push(e);return e(t,r)}function l(e,t){if(e.eatSpace())return null;var r=e.next();if(r=='"'||r=="'"){return u(o(r,"string"),e,t)}else if(r=="-"&&e.eat("-")){e.skipToEnd();return"comment"}else if(r==":"&&e.eat("=")){return"operator"}else if(/[0-9]/.test(r)){e.eatWhile(/[xXbBCc0-9\.]/);e.eat(/[\?\!]/);return"variable"}else if(/[a-zA-Z_0-9]/.test(r)){e.eatWhile(/[a-zA-Z_0-9]/);e.eat(/[\?\!]/);return"variable"}else if(/[=+\-\/*^%<>~]/.test(r)){e.eatWhile(/[=+\-\/*^%<>~]/);return"operator"}else{return null}}function o(e,t,r){return function(n,a){var i=false,u;while((u=n.next())!=null){if(u==e&&(r||!i)){a.tokenize.pop();break}i=!i&&u=="%"}return t}}const s={name:"eiffel",startState:function(){return{tokenize:[l]}},token:function(e,t){var r=t.tokenize[t.tokenize.length-1](e,t);if(r=="variable"){var n=e.current();r=a.propertyIsEnumerable(e.current())?"keyword":i.propertyIsEnumerable(e.current())?"operator":/^[A-Z][A-Z_0-9]*$/g.test(n)?"tag":/^0[bB][0-1]+$/g.test(n)?"number":/^0[cC][0-7]+$/g.test(n)?"number":/^0[xX][a-fA-F0-9]+$/g.test(n)?"number":/^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(n)?"number":/^[0-9]+$/g.test(n)?"number":"variable"}return r},languageData:{commentTokens:{line:"--"}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/1909.7487a09fefbe7f9eabb6.js b/share/jupyter/lab/static/1909.7487a09fefbe7f9eabb6.js new file mode 100644 index 0000000..cbbd9a0 --- /dev/null +++ b/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/share/jupyter/lab/static/1909.7487a09fefbe7f9eabb6.js.LICENSE.txt b/share/jupyter/lab/static/1909.7487a09fefbe7f9eabb6.js.LICENSE.txt new file mode 100644 index 0000000..48da700 --- /dev/null +++ b/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/share/jupyter/lab/static/1954.f1c519cb1415c7da3e8c.js b/share/jupyter/lab/static/1954.f1c519cb1415c7da3e8c.js new file mode 100644 index 0000000..90006b7 --- /dev/null +++ b/share/jupyter/lab/static/1954.f1c519cb1415c7da3e8c.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1954],{21954:(e,r,o)=>{o.r(r);o.d(r,{fSharp:()=>n,oCaml:()=>i,sml:()=>d});function t(e){var r={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"};var o=e.extraWords||{};for(var t in o){if(o.hasOwnProperty(t)){r[t]=e.extraWords[t]}}var i=[];for(var n in r){i.push(n)}function d(o,t){var i=o.next();if(i==='"'){t.tokenize=w;return t.tokenize(o,t)}if(i==="{"){if(o.eat("|")){t.longString=true;t.tokenize=l;return t.tokenize(o,t)}}if(i==="("){if(o.match(/^\*(?!\))/)){t.commentLevel++;t.tokenize=k;return t.tokenize(o,t)}}if(i==="~"||i==="?"){o.eatWhile(/\w/);return"variableName.special"}if(i==="`"){o.eatWhile(/\w/);return"quote"}if(i==="/"&&e.slashComments&&o.eat("/")){o.skipToEnd();return"comment"}if(/\d/.test(i)){if(i==="0"&&o.eat(/[bB]/)){o.eatWhile(/[01]/)}if(i==="0"&&o.eat(/[xX]/)){o.eatWhile(/[0-9a-fA-F]/)}if(i==="0"&&o.eat(/[oO]/)){o.eatWhile(/[0-7]/)}else{o.eatWhile(/[\d_]/);if(o.eat(".")){o.eatWhile(/[\d]/)}if(o.eat(/[eE]/)){o.eatWhile(/[\d\-+]/)}}return"number"}if(/[+\-*&%=<>!?|@\.~:]/.test(i)){return"operator"}if(/[\w\xa1-\uffff]/.test(i)){o.eatWhile(/[\w\xa1-\uffff]/);var n=o.current();return r.hasOwnProperty(n)?r[n]:"variable"}return null}function w(e,r){var o,t=false,i=false;while((o=e.next())!=null){if(o==='"'&&!i){t=true;break}i=!i&&o==="\\"}if(t&&!i){r.tokenize=d}return"string"}function k(e,r){var o,t;while(r.commentLevel>0&&(t=e.next())!=null){if(o==="("&&t==="*")r.commentLevel++;if(o==="*"&&t===")")r.commentLevel--;o=t}if(r.commentLevel<=0){r.tokenize=d}return"comment"}function l(e,r){var o,t;while(r.longString&&(t=e.next())!=null){if(o==="|"&&t==="}")r.longString=false;o=t}if(!r.longString){r.tokenize=d}return"string"}return{startState:function(){return{tokenize:d,commentLevel:0,longString:false}},token:function(e,r){if(e.eatSpace())return null;return r.tokenize(e,r)},languageData:{autocomplete:i,commentTokens:{line:e.slashComments?"//":undefined,block:{open:"(*",close:"*)"}}}}}const i=t({name:"ocaml",extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}});const n=t({name:"fsharp",extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:true});const d=t({name:"sml",extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:true})}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/1960.f8d8ef8a91360e60f0b9.js b/share/jupyter/lab/static/1960.f8d8ef8a91360e60f0b9.js new file mode 100644 index 0000000..cb8a49a --- /dev/null +++ b/share/jupyter/lab/static/1960.f8d8ef8a91360e60f0b9.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1960],{41960:(e,t,n)=>{n.r(t);n.d(t,{lua:()=>d});function a(e){return new RegExp("^(?:"+e.join("|")+")","i")}function r(e){return new RegExp("^(?:"+e.join("|")+")$","i")}var i=r(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]);var o=r(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]);var u=r(["function","if","repeat","do","\\(","{"]);var l=r(["end","until","\\)","}"]);var s=a(["end","until","\\)","}","else","elseif"]);function c(e){var t=0;while(e.eat("="))++t;e.eat("[");return t}function g(e,t){var n=e.next();if(n=="-"&&e.eat("-")){if(e.eat("[")&&e.eat("["))return(t.cur=m(c(e),"comment"))(e,t);e.skipToEnd();return"comment"}if(n=='"'||n=="'")return(t.cur=p(n))(e,t);if(n=="["&&/[\[=]/.test(e.peek()))return(t.cur=m(c(e),"string"))(e,t);if(/\d/.test(n)){e.eatWhile(/[\w.%]/);return"number"}if(/[\w_]/.test(n)){e.eatWhile(/[\w\\\-_.]/);return"variable"}return null}function m(e,t){return function(n,a){var r=null,i;while((i=n.next())!=null){if(r==null){if(i=="]")r=0}else if(i=="=")++r;else if(i=="]"&&r==e){a.cur=g;break}else r=null}return t}}function p(e){return function(t,n){var a=false,r;while((r=t.next())!=null){if(r==e&&!a)break;a=!a&&r=="\\"}if(!a)n.cur=g;return"string"}}const d={name:"lua",startState:function(){return{basecol:0,indentDepth:0,cur:g}},token:function(e,t){if(e.eatSpace())return null;var n=t.cur(e,t);var a=e.current();if(n=="variable"){if(o.test(a))n="keyword";else if(i.test(a))n="builtin"}if(n!="comment"&&n!="string"){if(u.test(a))++t.indentDepth;else if(l.test(a))--t.indentDepth}return n},indent:function(e,t,n){var a=s.test(t);return e.basecol+n.unit*(e.indentDepth-(a?1:0))},languageData:{indentOnInput:/^\s*(?:end|until|else|\)|\})$/,commentTokens:{line:"--",block:{open:"--[[",close:"]]--"}}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/1962.6a7da74e809b70d5200d.js b/share/jupyter/lab/static/1962.6a7da74e809b70d5200d.js new file mode 100644 index 0000000..3e74972 --- /dev/null +++ b/share/jupyter/lab/static/1962.6a7da74e809b70d5200d.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1962],{91962:(e,t,a)=>{a.r(t);a.d(t,{autoCloseTags:()=>ze,html:()=>Je,htmlCompletionSource:()=>Re,htmlCompletionSourceWith:()=>We,htmlLanguage:()=>Ue,htmlPlain:()=>je});var n=a(27421);var l=a(45145);var r=a(66575);const s=54,o=1,u=55,O=2,i=56,p=3,c=4,d=5,f=6,h=7,m=8,S=9,g=10,P=11,x=12,b=13,V=57,v=14,_=58,y=20,T=22,q=23,w=24,$=26,Q=27,X=28,A=31,C=34,k=36,Y=37,M=0,B=1;const G={area:true,base:true,br:true,col:true,command:true,embed:true,frame:true,hr:true,img:true,input:true,keygen:true,link:true,meta:true,param:true,source:true,track:true,wbr:true,menuitem:true};const E={dd:true,li:true,optgroup:true,option:true,p:true,rp:true,rt:true,tbody:true,td:true,tfoot:true,th:true,tr:true};const Z={dd:{dd:true,dt:true},dt:{dd:true,dt:true},li:{li:true},option:{option:true,optgroup:true},optgroup:{optgroup:true},p:{address:true,article:true,aside:true,blockquote:true,dir:true,div:true,dl:true,fieldset:true,footer:true,form:true,h1:true,h2:true,h3:true,h4:true,h5:true,h6:true,header:true,hgroup:true,hr:true,menu:true,nav:true,ol:true,p:true,pre:true,section:true,table:true,ul:true},rp:{rp:true,rt:true},rt:{rp:true,rt:true},tbody:{tbody:true,tfoot:true},td:{td:true,th:true},tfoot:{tbody:true},th:{td:true,th:true},thead:{tbody:true,tfoot:true},tr:{tr:true}};function D(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function R(e){return e==9||e==10||e==13||e==32}let W=null,H=null,N=0;function I(e,t){let a=e.pos+t;if(N==a&&H==e)return W;let n=e.peek(t);while(R(n))n=e.peek(++t);let l="";for(;;){if(!D(n))break;l+=String.fromCharCode(n);n=e.peek(++t)}H=e;N=a;return W=l?l.toLowerCase():n==L||n==z?undefined:null}const j=60,U=62,J=47,L=63,z=33,F=45;function K(e,t){this.name=e;this.parent=t;this.hash=t?t.hash:0;for(let a=0;a-1?new K(I(n,1)||"",e):e},reduce(e,t){return t==y&&e?e.parent:e},reuse(e,t,a,n){let l=t.type.id;return l==f||l==k?new K(I(n,1)||"",e):e},hash(e){return e?e.hash:0},strict:false});const ae=new n.Lu(((e,t)=>{if(e.next!=j){if(e.next<0&&t.context)e.acceptToken(V);return}e.advance();let a=e.next==J;if(a)e.advance();let n=I(e,0);if(n===undefined)return;if(!n)return e.acceptToken(a?v:f);let l=t.context?t.context.name:null;if(a){if(n==l)return e.acceptToken(P);if(l&&E[l])return e.acceptToken(V,-2);if(t.dialectEnabled(M))return e.acceptToken(x);for(let e=t.context;e;e=e.parent)if(e.name==n)return;e.acceptToken(b)}else{if(n=="script")return e.acceptToken(h);if(n=="style")return e.acceptToken(m);if(n=="textarea")return e.acceptToken(S);if(G.hasOwnProperty(n))return e.acceptToken(g);if(l&&Z[l]&&Z[l][n])e.acceptToken(V,-1);else e.acceptToken(f)}}),{contextual:true});const ne=new n.Lu((e=>{for(let t=0,a=0;;a++){if(e.next<0){if(a)e.acceptToken(_);break}if(e.next==F){t++}else if(e.next==U&&t>=2){if(a>3)e.acceptToken(_,-2);break}else{t=0}e.advance()}}));function le(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return true;return false}const re=new n.Lu(((e,t)=>{if(e.next==J&&e.peek(1)==U){let a=t.dialectEnabled(B)||le(t.context);e.acceptToken(a?d:c,2)}else if(e.next==U){e.acceptToken(c,1)}}));function se(e,t,a){let l=2+e.length;return new n.Lu((n=>{for(let r=0,s=0,o=0;;o++){if(n.next<0){if(o)n.acceptToken(t);break}if(r==0&&n.next==j||r==1&&n.next==J||r>=2&&rs)n.acceptToken(t,-s);else n.acceptToken(a,-(s-2));break}else if((n.next==10||n.next==13)&&o){n.acceptToken(t,1);break}else{r=s=0}n.advance()}}))}const oe=se("script",s,o);const ue=se("style",u,O);const Oe=se("textarea",i,p);const ie=(0,l.styleTags)({"Text RawText":l.tags.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":l.tags.angleBracket,TagName:l.tags.tagName,"MismatchedCloseTag/TagName":[l.tags.tagName,l.tags.invalid],AttributeName:l.tags.attributeName,"AttributeValue UnquotedAttributeValue":l.tags.attributeValue,Is:l.tags.definitionOperator,"EntityReference CharacterReference":l.tags.character,Comment:l.tags.blockComment,ProcessingInst:l.tags.processingInstruction,DoctypeDecl:l.tags.documentMeta});const pe=n.U1.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:"+s~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:te,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"]],propSources:[ie],skippedNodes:[0],repeatNodeCount:9,tokenData:"#%g!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs4ysv-_vw5iwxJ^x}-_}!OKP!O!P-_!P!Q$q!Q![-_![!]!!O!]!^-_!^!_!&W!_!`#$o!`!a&X!a!c-_!c!}!!O!}#R-_#R#S!!O#S#T3V#T#o!!O#o#s-_#s$f$q$f%W-_%W%o!!O%o%p-_%p&a!!O&a&b-_&b1p!!O1p4U-_4U4d!!O4d4e-_4e$IS!!O$IS$I`-_$I`$Ib!!O$Ib$Kh-_$Kh%#t!!O%#t&/x-_&/x&Et!!O&Et&FV-_&FV;'S!!O;'S;:j!&Q;:j;=`4s<%l?&r-_?&r?Ah!!O?Ah?BY$q?BY?Mn!!O?MnO$q!Z$|c`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bX`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UV`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pT`POv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!cpOv(Vx;'S(V;'S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({W`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t`)jT!a`Or)esv)ew;'S)e;'S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!a`!cpOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!Q*vP;=`<%l*V!R*|P;=`<%l&XW+UYkWOX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+PW+wP;=`<%l+P!Z+}P;=`<%l$q!a,]``P!a`!cp!^^OX&XXY,QYZ,QZ]&X]^,Q^p&Xpq,Qqr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!_-ljhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_1n!_!a&X!a#S-_#S#T3V#T#s-_#s$f$q$f;'S-_;'S;=`4s<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q[/echSkWOX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!^!_0p!a#S/^#S#T0p#T#s/^#s$f+P$f;'S/^;'S;=`1h<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+PS0uXhSqr0psw0px!P0p!Q!_0p!a#s0p$f;'S0p;'S;=`1b<%l?Ah0p?BY?Mn0pS1eP;=`<%l0p[1kP;=`<%l/^!U1wbhS!a`!cpOq*Vqr1nrs(Vsv1nvw0pwx)ex!P1n!P!Q*V!Q!_1n!_!a*V!a#s1n#s$f*V$f;'S1n;'S;=`3P<%l?Ah1n?Ah?BY*V?BY?Mn1n?MnO*V!U3SP;=`<%l1n!V3bchS`P!a`!cpOq&Xqr3Vrs&}sv3Vvw0pwx(tx!P3V!P!Q&X!Q!^3V!^!_1n!_!a&X!a#s3V#s$f&X$f;'S3V;'S;=`4m<%l?Ah3V?Ah?BY&X?BY?Mn3V?MnO&X!V4pP;=`<%l3V!_4vP;=`<%l-_!Z5SV!`h`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}!_5rjhSkWc!ROX7dXZ8qZ[7d[^8q^p7dqr:crs8qst@Ttw:cwx8qx!P:c!P!Q7d!Q!]:c!]!^/^!^!_=p!_!a8q!a#S:c#S#T=p#T#s:c#s$f7d$f;'S:c;'S;=`?}<%l?Ah:c?Ah?BY7d?BY?Mn:c?MnO7d!Z7ibkWOX7dXZ8qZ[7d[^8q^p7dqr7drs8qst+Ptw7dwx8qx!]7d!]!^9f!^!a8q!a#S7d#S#T8q#T;'S7d;'S;=`:]<%lO7d!R8tVOp8qqs8qt!]8q!]!^9Z!^;'S8q;'S;=`9`<%lO8q!R9`Oa!R!R9cP;=`<%l8q!Z9mYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z:`P;=`<%l7d!_:jjhSkWOX7dXZ8qZ[7d[^8q^p7dqr:crs8qst/^tw:cwx8qx!P:c!P!Q7d!Q!]:c!]!^<[!^!_=p!_!a8q!a#S:c#S#T=p#T#s:c#s$f7d$f;'S:c;'S;=`?}<%l?Ah:c?Ah?BY7d?BY?Mn:c?MnO7d!_b#d#s1n#s$f*V$f;'S1n;'S;=`3P<%l?Ah1n?Ah?BY*V?BY?Mn1n?MnO*V!V!>kdhS!a`!cpOq*Vqr1nrs(Vsv1nvw0pwx)ex!P1n!P!Q*V!Q!_1n!_!a*V!a#V1n#V#W!?y#W#s1n#s$f*V$f;'S1n;'S;=`3P<%l?Ah1n?Ah?BY*V?BY?Mn1n?MnO*V!V!@SdhS!a`!cpOq*Vqr1nrs(Vsv1nvw0pwx)ex!P1n!P!Q*V!Q!_1n!_!a*V!a#h1n#h#i!Ab#i#s1n#s$f*V$f;'S1n;'S;=`3P<%l?Ah1n?Ah?BY*V?BY?Mn1n?MnO*V!V!AkdhS!a`!cpOq*Vqr1nrs(Vsv1nvw0pwx)ex!P1n!P!Q*V!Q!_1n!_!a*V!a#m1n#m#n!By#n#s1n#s$f*V$f;'S1n;'S;=`3P<%l?Ah1n?Ah?BY*V?BY?Mn1n?MnO*V!V!CSdhS!a`!cpOq*Vqr1nrs(Vsv1nvw0pwx)ex!P1n!P!Q*V!Q!_1n!_!a*V!a#d1n#d#e!Db#e#s1n#s$f*V$f;'S1n;'S;=`3P<%l?Ah1n?Ah?BY*V?BY?Mn1n?MnO*V!V!DkdhS!a`!cpOq*Vqr1nrs(Vsv1nvw0pwx)ex!P1n!P!Q*V!Q!_1n!_!a*V!a#X1n#X#Y!5]#Y#s1n#s$f*V$f;'S1n;'S;=`3P<%l?Ah1n?Ah?BY*V?BY?Mn1n?MnO*V!V!FSchS!a`!cpOq!G_qr!Eyrs!HUsv!Eyvw!Ncwx!Jvx!P!Ey!P!Q!G_!Q!_!Ey!_!a!G_!a!b##T!b#s!Ey#s$f!G_$f;'S!Ey;'S;=`#$i<%l?Ah!Ey?Ah?BY!G_?BY?Mn!Ey?MnO!G_!R!GfY!a`!cpOr!G_rs!HUsv!G_vw!Hpwx!Jvx!a!G_!a!b!Lv!b;'S!G_;'S;=`!N]<%lO!G_q!HZV!cpOv!HUvx!Hpx!a!HU!a!b!Iq!b;'S!HU;'S;=`!Jp<%lO!HUP!HsTO!a!Hp!a!b!IS!b;'S!Hp;'S;=`!Ik<%lO!HpP!IVTO!`!Hp!`!a!If!a;'S!Hp;'S;=`!Ik<%lO!HpP!IkOxPP!InP;=`<%l!Hpq!IvV!cpOv!HUvx!Hpx!`!HU!`!a!J]!a;'S!HU;'S;=`!Jp<%lO!HUq!JdS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!JsP;=`<%l!HUa!J{X!a`Or!Jvrs!Hpsv!Jvvw!Hpw!a!Jv!a!b!Kh!b;'S!Jv;'S;=`!Lp<%lO!Jva!KmX!a`Or!Jvrs!Hpsv!Jvvw!Hpw!`!Jv!`!a!LY!a;'S!Jv;'S;=`!Lp<%lO!Jva!LaT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!LsP;=`<%l!Jv!R!L}Y!a`!cpOr!G_rs!HUsv!G_vw!Hpwx!Jvx!`!G_!`!a!Mm!a;'S!G_;'S;=`!N]<%lO!G_!R!MvV!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!N`P;=`<%l!G_T!NhbhSOq!Hpqr!Ncrs!Hpsw!Ncwx!Hpx!P!Nc!P!Q!Hp!Q!_!Nc!_!a!Hp!a!b# p!b#s!Nc#s$f!Hp$f;'S!Nc;'S;=`#!}<%l?Ah!Nc?Ah?BY!Hp?BY?Mn!Nc?MnO!HpT# ubhSOq!Hpqr!Ncrs!Hpsw!Ncwx!Hpx!P!Nc!P!Q!Hp!Q!_!Nc!_!`!Hp!`!a!If!a#s!Nc#s$f!Hp$f;'S!Nc;'S;=`#!}<%l?Ah!Nc?Ah?BY!Hp?BY?Mn!Nc?MnO!HpT##QP;=`<%l!Nc!V##^chS!a`!cpOq!G_qr!Eyrs!HUsv!Eyvw!Ncwx!Jvx!P!Ey!P!Q!G_!Q!_!Ey!_!`!G_!`!a!Mm!a#s!Ey#s$f!G_$f;'S!Ey;'S;=`#$i<%l?Ah!Ey?Ah?BY!G_?BY?Mn!Ey?MnO!G_!V#$lP;=`<%l!Ey!V#$zXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[oe,ue,Oe,re,ae,ne,0,1,2,3,4,5],topRules:{Document:[0,15]},dialects:{noMatch:0,selfClosing:485},tokenPrec:487});function ce(e,t){let a=Object.create(null);for(let n of e.getChildren(q)){let e=n.getChild(w),l=n.getChild($)||n.getChild(Q);if(e)a[t.read(e.from,e.to)]=!l?"":l.type.id==$?t.read(l.from+1,l.to-1):t.read(l.from,l.to)}return a}function de(e,t){let a=e.getChild(T);return a?t.read(a.from,a.to):" "}function fe(e,t,a){let n;for(let l of a){if(!l.attrs||l.attrs(n||(n=ce(e.node.parent.firstChild,t))))return{parser:l.parser}}return null}function he(e=[],t=[]){let a=[],n=[],l=[],s=[];for(let r of e){let e=r.tag=="script"?a:r.tag=="style"?n:r.tag=="textarea"?l:s;e.push(r)}let o=t.length?Object.create(null):null;for(let r of t)(o[r.name]||(o[r.name]=[])).push(r);return(0,r.parseMixed)(((e,t)=>{let r=e.type.id;if(r==X)return fe(e,t,a);if(r==A)return fe(e,t,n);if(r==C)return fe(e,t,l);if(r==k&&s.length){let a=e.node,n=de(a,t),l;for(let r of s){if(r.tag==n&&(!r.attrs||r.attrs(l||(l=ce(a,t))))){let t=a.parent.lastChild;return{parser:r.parser,overlay:[{from:e.to,to:t.type.id==Y?t.from:a.parent.to}]}}}}if(o&&r==q){let a=e.node,n;if(n=a.firstChild){let e=o[t.read(n.from,n.to)];if(e)for(let n of e){if(n.tagName&&n.tagName!=de(a.parent,t))continue;let e=a.lastChild;if(e.type.id==$){let t=e.from+1;let a=e.lastChild,l=e.to-(a&&a.isError?0:1);if(l>t)return{parser:n.parser,overlay:[{from:t,to:l}]}}else if(e.type.id==Q){return{parser:n.parser,overlay:[{from:e.from,to:e.to}]}}}}}return null}))}var me=a(37425);var Se=a(88103);var ge=a(22819);var Pe=a(71674);var xe=a(4452);const be=["_blank","_self","_top","_parent"];const Ve=["ascii","utf-8","utf-16","latin1","latin1"];const ve=["get","post","put","delete"];const _e=["application/x-www-form-urlencoded","multipart/form-data","text/plain"];const ye=["true","false"];const Te={};const qe={a:{attrs:{href:null,ping:null,type:null,media:null,target:be,hreflang:null}},abbr:Te,address:Te,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Te,aside:Te,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Te,base:{attrs:{href:null,target:be}},bdi:Te,bdo:Te,blockquote:{attrs:{cite:null}},body:Te,br:Te,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:_e,formmethod:ve,formnovalidate:["novalidate"],formtarget:be,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Te,center:Te,cite:Te,code:Te,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Te,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Te,div:Te,dl:Te,dt:Te,em:Te,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Te,figure:Te,footer:Te,form:{attrs:{action:null,name:null,"accept-charset":Ve,autocomplete:["on","off"],enctype:_e,method:ve,novalidate:["novalidate"],target:be}},h1:Te,h2:Te,h3:Te,h4:Te,h5:Te,h6:Te,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Te,hgroup:Te,hr:Te,html:{attrs:{manifest:null}},i:Te,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:_e,formmethod:ve,formnovalidate:["novalidate"],formtarget:be,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Te,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Te,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Te,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Ve,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Te,noscript:Te,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Te,param:{attrs:{name:null,value:null}},pre:Te,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Te,rt:Te,ruby:Te,samp:Te,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Ve}},section:Te,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Te,source:{attrs:{src:null,type:null,media:null}},span:Te,strong:Te,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Te,summary:Te,sup:Te,table:Te,tbody:Te,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Te,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Te,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Te,time:{attrs:{datetime:null}},title:Te,tr:Te,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Te,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Te};const we={accesskey:null,class:null,contenteditable:ye,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:ye,autocorrect:ye,autocapitalize:ye,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":ye,"aria-autocomplete":["inline","list","both","none"],"aria-busy":ye,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":ye,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":ye,"aria-hidden":ye,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":ye,"aria-multiselectable":ye,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":ye,"aria-relevant":null,"aria-required":ye,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null};const $e=("beforeunload copy cut dragstart dragover dragleave dragenter dragend "+"drag paste focus blur change click load mousedown mouseenter mouseleave "+"mouseup keydown keyup resize scroll unload").split(" ").map((e=>"on"+e));for(let Fe of $e)we[Fe]=null;class Qe{constructor(e,t){this.tags=Object.assign(Object.assign({},qe),e);this.globalAttrs=Object.assign(Object.assign({},we),t);this.allTags=Object.keys(this.tags);this.globalAttrNames=Object.keys(this.globalAttrs)}}Qe.default=new Qe;function Xe(e,t,a=e.length){if(!t)return"";let n=t.firstChild;let l=n&&n.getChild("TagName");return l?e.sliceString(l.from,Math.min(l.to,a)):""}function Ae(e,t=false){for(;e;e=e.parent)if(e.name=="Element"){if(t)t=false;else return e}return null}function Ce(e,t,a){let n=a.tags[Xe(e,Ae(t))];return(n===null||n===void 0?void 0:n.children)||a.allTags}function ke(e,t){let a=[];for(let n=Ae(t);n&&!n.type.isTop;n=Ae(n.parent)){let l=Xe(e,n);if(l&&n.lastChild.name=="CloseTag")break;if(l&&a.indexOf(l)<0&&(t.name=="EndTag"||t.from>=n.firstChild.to))a.push(l)}return a}const Ye=/^[:\-\.\w\u00b7-\uffff]*$/;function Me(e,t,a,n,l){let r=/\s*>/.test(e.sliceDoc(l,l+5))?"":">";let s=Ae(a,true);return{from:n,to:l,options:Ce(e.doc,s,t).map((e=>({label:e,type:"type"}))).concat(ke(e.doc,a).map(((e,t)=>({label:"/"+e,apply:"/"+e+r,type:"type",boost:99-t})))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function Be(e,t,a,n){let l=/\s*>/.test(e.sliceDoc(n,n+5))?"":">";return{from:a,to:n,options:ke(e.doc,t).map(((e,t)=>({label:e,apply:e+l,type:"type",boost:99-t}))),validFor:Ye}}function Ge(e,t,a,n){let l=[],r=0;for(let s of Ce(e.doc,a,t))l.push({label:"<"+s,type:"type"});for(let s of ke(e.doc,a))l.push({label:"",type:"type",boost:99-r++});return{from:n,to:n,options:l,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function Ee(e,t,a,n,l){let r=Ae(a),s=r?t.tags[Xe(e.doc,r)]:null;let o=s&&s.attrs?Object.keys(s.attrs):[];let u=s&&s.globalAttrs===false?o:o.length?o.concat(t.globalAttrNames):t.globalAttrNames;return{from:n,to:l,options:u.map((e=>({label:e,type:"property"}))),validFor:Ye}}function Ze(e,t,a,n,l){var r;let s=(r=a.parent)===null||r===void 0?void 0:r.getChild("AttributeName");let o=[],u=undefined;if(s){let r=e.sliceDoc(s.from,s.to);let O=t.globalAttrs[r];if(!O){let n=Ae(a),l=n?t.tags[Xe(e.doc,n)]:null;O=(l===null||l===void 0?void 0:l.attrs)&&l.attrs[r]}if(O){let t=e.sliceDoc(n,l).toLowerCase(),a='"',r='"';if(/^['"]/.test(t)){u=t[0]=='"'?/^[^"]*$/:/^[^']*$/;a="";r=e.sliceDoc(l,l+1)==t[0]?"":t[0];t=t.slice(1);n++}else{u=/^[^\s<>='"]*$/}for(let e of O)o.push({label:e,apply:a+e+r,type:"constant"})}}return{from:n,to:l,options:o,validFor:u}}function De(e,t){let{state:a,pos:n}=t,l=(0,xe.syntaxTree)(a).resolveInner(n,-1),r=l.resolve(n);for(let s=n,o;r==l&&(o=l.childBefore(s));){let e=o.lastChild;if(!e||!e.type.isError||e.fromDe(n,e)}const He=Se.javascriptLanguage.parser.configure({top:"SingleExpression"});const Ne=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:Se.typescriptLanguage.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:Se.jsxLanguage.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:Se.tsxLanguage.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:He},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:Se.javascriptLanguage.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:me.cssLanguage.parser}];const Ie=[{name:"style",parser:me.cssLanguage.parser.configure({top:"Styles"})}].concat($e.map((e=>({name:e,parser:Se.javascriptLanguage.parser}))));const je=xe.LRLanguage.define({name:"html",parser:pe.configure({props:[xe.indentNodeProp.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);if(e.node.to<=e.pos+t[0].length)return e.continue();return e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].lengthe.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}});const Ue=je.configure({wrap:he(Ne,Ie)});function Je(e={}){let t="",a;if(e.matchClosingTags===false)t="noMatch";if(e.selfClosingTags===true)t=(t?t+" ":"")+"selfClosing";if(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)a=he((e.nestedLanguages||[]).concat(Ne),(e.nestedAttributes||[]).concat(Ie));let n=a?je.configure({wrap:a,dialect:t}):t?Ue.configure({dialect:t}):Ue;return new xe.LanguageSupport(n,[Ue.data.of({autocomplete:We(e)}),e.autoCloseTags!==false?ze:[],(0,Se.javascript)().support,(0,me.css)().support])}const Le=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" "));const ze=ge.EditorView.inputHandler.of(((e,t,a,n,l)=>{if(e.composing||e.state.readOnly||t!=a||n!=">"&&n!="/"||!Ue.isActiveAt(e.state,t,-1))return false;let r=l(),{state:s}=r;let o=s.changeByRange((e=>{var t,a,l;let r=s.doc.sliceString(e.from-1,e.to)==n;let{head:o}=e,u=(0,xe.syntaxTree)(s).resolveInner(o,-1),O;if(r&&n==">"&&u.name=="EndTag"){let n=u.parent;if(((a=(t=n.parent)===null||t===void 0?void 0:t.lastChild)===null||a===void 0?void 0:a.name)!="CloseTag"&&(O=Xe(s.doc,n.parent,o))&&!Le.has(O)){let t=o+(s.doc.sliceString(o,o+1)===">"?1:0);let a=``;return{range:e,changes:{from:o,to:t,insert:a}}}}else if(r&&n=="/"&&u.name=="IncompleteCloseTag"){let e=u.parent;if(u.from==o-2&&((l=e.lastChild)===null||l===void 0?void 0:l.name)!="CloseTag"&&(O=Xe(s.doc,e,o))&&!Le.has(O)){let e=o+(s.doc.sliceString(o,o+1)===">"?1:0);let t=`${O}>`;return{range:Pe.EditorSelection.cursor(o+t.length,-1),changes:{from:o,to:e,insert:t}}}}return{range:e}}));if(o.changes.empty)return false;e.dispatch([r,s.update(o,{userEvent:"input.complete",scrollIntoView:true})]);return true}))}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/1969.86e3168e52802569d650.js b/share/jupyter/lab/static/1969.86e3168e52802569d650.js new file mode 100644 index 0000000..69da843 --- /dev/null +++ b/share/jupyter/lab/static/1969.86e3168e52802569d650.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1969],{50780: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)}}();Object.defineProperty(e,"__esModule",{value:true});e.AbstractHandler=void 0;var i=r(10497);var o=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(i.AbstractMathDocument);var a=function(){function t(t,e){if(e===void 0){e=5}this.documentClass=o;this.adaptor=t;this.priority=e}Object.defineProperty(t.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:false,configurable:true});t.prototype.handlesDocument=function(t){return false};t.prototype.create=function(t,e){return new this.documentClass(t,this.adaptor,e)};t.NAME="generic";return t}();e.AbstractHandler=a},77137:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:true});e.AbstractInputJax=void 0;var n=r(34981);var i=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,n.userOptions)((0,n.defaultOptions)({},e.OPTIONS),t);this.preFilters=new i.FunctionList;this.postFilters=new i.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=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=e){if(s.item.renderDoc(t))return}}}catch(l){r={error:l}}finally{try{if(a&&!a.done&&(n=o.return))n.call(o)}finally{if(r)throw r.error}}};e.prototype.renderMath=function(t,e,r){var n,o;if(r===void 0){r=p.STATE.UNPROCESSED}try{for(var a=i(this.items),s=a.next();!s.done;s=a.next()){var l=s.value;if(l.priority>=r){if(l.item.renderMath(t,e))return}}}catch(u){n={error:u}}finally{try{if(s&&!s.done&&(o=a.return))o.call(a)}finally{if(n)throw n.error}}};e.prototype.renderConvert=function(t,e,r){var n,o;if(r===void 0){r=p.STATE.LAST}try{for(var a=i(this.items),s=a.next();!s.done;s=a.next()){var l=s.value;if(l.priority>r)return;if(l.item.convert){if(l.item.renderMath(t,e))return}}}catch(u){n={error:u}}finally{try{if(s&&!s.done&&(o=a.return))o.call(a)}finally{if(n)throw n.error}}};e.prototype.findID=function(t){var e,r;try{for(var n=i(this.items),o=n.next();!o.done;o=n.next()){var a=o.value;if(a.item.id===t){return a.item}}}catch(s){e={error:s}}finally{try{if(o&&!o.done&&(r=n.return))r.call(n)}finally{if(e)throw e.error}}return null};return e}(d.PrioritizedList);e.RenderList=y;e.resetOptions={all:false,processed:false,inputJax:null,outputJax:null};e.resetAllOptions={all:true,processed:true,inputJax:[],outputJax:[]};var v=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.compile=function(t){return null};return e}(l.AbstractInputJax);var m=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.typeset=function(t,e){if(e===void 0){e=null}return null};e.prototype.escaped=function(t,e){return null};return e}(u.AbstractOutputJax);var x=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(c.AbstractMathList);var b=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(p.AbstractMathItem);var g=function(){function t(e,r,n){var i=this;var o=this.constructor;this.document=e;this.options=(0,s.userOptions)((0,s.defaultOptions)({},o.OPTIONS),n);this.math=new(this.options["MathList"]||x);this.renderActions=y.create(this.options["renderActions"]);this.processed=new t.ProcessBits;this.outputJax=this.options["OutputJax"]||new m;var a=this.options["InputJax"]||[new v];if(!Array.isArray(a)){a=[a]}this.inputJax=a;this.adaptor=r;this.outputJax.setAdaptor(r);this.inputJax.map((function(t){return t.setAdaptor(r)}));this.mmlFactory=this.options["MmlFactory"]||new f.MmlFactory;this.inputJax.map((function(t){return t.setMmlFactory(i.mmlFactory)}));this.outputJax.initialize();this.inputJax.map((function(t){return t.initialize()}))}Object.defineProperty(t.prototype,"kind",{get:function(){return this.constructor.KIND},enumerable:false,configurable:true});t.prototype.addRenderAction=function(t){var e=[];for(var r=1;r{Object.defineProperty(e,"__esModule",{value:true});e.AbstractOutputJax=void 0;var n=r(34981);var i=r(43899);var o=function(){function t(t){if(t===void 0){t={}}this.adaptor=null;var e=this.constructor;this.options=(0,n.userOptions)((0,n.defaultOptions)({},e.OPTIONS),t);this.postFilters=new i.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.initialize=function(){};t.prototype.reset=function(){var t=[];for(var e=0;e0)&&!(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.__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.HTMLDocument=void 0;var s=r(10497);var l=r(34981);var u=r(72680);var c=r(16499);var p=r(15391);var f=r(24971);var h=function(t){n(e,t);function e(e,r,n){var i=this;var a=o((0,l.separateOptions)(n,p.HTMLDomStrings.OPTIONS),2),s=a[0],u=a[1];i=t.call(this,e,r,s)||this;i.domStrings=i.options["DomStrings"]||new p.HTMLDomStrings(u);i.domStrings.adaptor=r;i.styles=[];return i}e.prototype.findPosition=function(t,e,r,n){var i,s;var l=this.adaptor;try{for(var u=a(n[t]),c=u.next();!c.done;c=u.next()){var p=c.value;var f=o(p,2),h=f[0],d=f[1];if(e<=d&&l.kind(h)==="#text"){return{node:h,n:Math.max(e,0),delim:r}}e-=d}}catch(y){i={error:y}}finally{try{if(c&&!c.done&&(s=u.return))s.call(u)}finally{if(i)throw i.error}}return{node:null,n:0,delim:r}};e.prototype.mathItem=function(t,e,r){var n=t.math;var i=this.findPosition(t.n,t.start.n,t.open,r);var o=this.findPosition(t.n,t.end.n,t.close,r);return new this.options.MathItem(n,e,t.display,i,o)};e.prototype.findMath=function(t){var e,r,n,i,s,u,c,p,f;if(!this.processed.isSet("findMath")){this.adaptor.document=this.document;t=(0,l.userOptions)({elements:this.options.elements||[this.adaptor.body(this.document)]},t);try{for(var h=a(this.adaptor.getElements(t["elements"],this.document)),d=h.next();!d.done;d=h.next()){var y=d.value;var v=o([null,null],2),m=v[0],x=v[1];try{for(var b=(n=void 0,a(this.inputJax)),g=b.next();!g.done;g=b.next()){var _=g.value;var w=new this.options["MathList"];if(_.processStrings){if(m===null){s=o(this.domStrings.find(y),2),m=s[0],x=s[1]}try{for(var S=(u=void 0,a(_.findMath(m))),O=S.next();!O.done;O=S.next()){var T=O.value;w.push(this.mathItem(T,_,x))}}catch(D){u={error:D}}finally{try{if(O&&!O.done&&(c=S.return))c.call(S)}finally{if(u)throw u.error}}}else{try{for(var M=(p=void 0,a(_.findMath(y))),E=M.next();!E.done;E=M.next()){var T=E.value;var A=new this.options.MathItem(T.math,_,T.display,T.start,T.end);w.push(A)}}catch(P){p={error:P}}finally{try{if(E&&!E.done&&(f=M.return))f.call(M)}finally{if(p)throw p.error}}}this.math.merge(w)}}catch(j){n={error:j}}finally{try{if(g&&!g.done&&(i=b.return))i.call(b)}finally{if(n)throw n.error}}}}catch(I){e={error:I}}finally{try{if(d&&!d.done&&(r=h.return))r.call(h)}finally{if(e)throw e.error}}this.processed.set("findMath")}return this};e.prototype.updateDocument=function(){if(!this.processed.isSet("updateDocument")){this.addPageElements();this.addStyleSheet();t.prototype.updateDocument.call(this);this.processed.set("updateDocument")}return this};e.prototype.addPageElements=function(){var t=this.adaptor.body(this.document);var e=this.documentPageElements();if(e){this.adaptor.append(t,e)}};e.prototype.addStyleSheet=function(){var t=this.documentStyleSheet();var e=this.adaptor;if(t&&!e.parent(t)){var r=e.head(this.document);var n=this.findSheet(r,e.getAttribute(t,"id"));if(n){e.replace(t,n)}else{e.append(r,t)}}};e.prototype.findSheet=function(t,e){var r,n;if(e){try{for(var i=a(this.adaptor.tags(t,"style")),o=i.next();!o.done;o=i.next()){var s=o.value;if(this.adaptor.getAttribute(s,"id")===e){return s}}}catch(l){r={error:l}}finally{try{if(o&&!o.done&&(n=i.return))n.call(i)}finally{if(r)throw r.error}}}return null};e.prototype.removeFromDocument=function(t){var e,r;if(t===void 0){t=false}if(this.processed.isSet("updateDocument")){try{for(var n=a(this.math),i=n.next();!i.done;i=n.next()){var o=i.value;if(o.state()>=f.STATE.INSERTED){o.state(f.STATE.TYPESET,t)}}}catch(s){e={error:s}}finally{try{if(i&&!i.done&&(r=n.return))r.call(n)}finally{if(e)throw e.error}}}this.processed.clear("updateDocument");return this};e.prototype.documentStyleSheet=function(){return this.outputJax.styleSheet(this)};e.prototype.documentPageElements=function(){return this.outputJax.pageElements(this)};e.prototype.addStyles=function(t){this.styles.push(t)};e.prototype.getStyles=function(){return this.styles};e.KIND="HTML";e.OPTIONS=i(i({},s.AbstractMathDocument.OPTIONS),{renderActions:(0,l.expandable)(i(i({},s.AbstractMathDocument.OPTIONS.renderActions),{styles:[f.STATE.INSERTED+1,"","updateStyleSheet",false]})),MathList:c.HTMLMathList,MathItem:u.HTMLMathItem,DomStrings:null});return e}(s.AbstractMathDocument);e.HTMLDocument=h},15391:function(t,e,r){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,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.HTMLDomStrings=void 0;var i=r(34981);var o=function(){function t(t){if(t===void 0){t=null}var e=this.constructor;this.options=(0,i.userOptions)((0,i.defaultOptions)({},e.OPTIONS),t);this.init();this.getPatterns()}t.prototype.init=function(){this.strings=[];this.string="";this.snodes=[];this.nodes=[];this.stack=[]};t.prototype.getPatterns=function(){var t=(0,i.makeArray)(this.options["skipHtmlTags"]);var e=(0,i.makeArray)(this.options["ignoreHtmlClass"]);var r=(0,i.makeArray)(this.options["processHtmlClass"]);this.skipHtmlTags=new RegExp("^(?:"+t.join("|")+")$","i");this.ignoreHtmlClass=new RegExp("(?:^| )(?:"+e.join("|")+")(?: |$)");this.processHtmlClass=new RegExp("(?:^| )(?:"+r+")(?: |$)")};t.prototype.pushString=function(){if(this.string.match(/\S/)){this.strings.push(this.string);this.nodes.push(this.snodes)}this.string="";this.snodes=[]};t.prototype.extendString=function(t,e){this.snodes.push([t,e.length]);this.string+=e};t.prototype.handleText=function(t,e){if(!e){this.extendString(t,this.adaptor.value(t))}return this.adaptor.next(t)};t.prototype.handleTag=function(t,e){if(!e){var r=this.options["includeHtmlTags"][this.adaptor.kind(t)];this.extendString(t,r)}return this.adaptor.next(t)};t.prototype.handleContainer=function(t,e){this.pushString();var r=this.adaptor.getAttribute(t,"class")||"";var n=this.adaptor.kind(t)||"";var i=this.processHtmlClass.exec(r);var o=t;if(this.adaptor.firstChild(t)&&!this.adaptor.getAttribute(t,"data-MJX")&&(i||!this.skipHtmlTags.exec(n))){if(this.adaptor.next(t)){this.stack.push([this.adaptor.next(t),e])}o=this.adaptor.firstChild(t);e=(e||this.ignoreHtmlClass.exec(r))&&!i}else{o=this.adaptor.next(t)}return[o,e]};t.prototype.handleOther=function(t,e){this.pushString();return this.adaptor.next(t)};t.prototype.find=function(t){var e,r;this.init();var i=this.adaptor.next(t);var o=false;var a=this.options["includeHtmlTags"];while(t&&t!==i){var s=this.adaptor.kind(t);if(s==="#text"){t=this.handleText(t,o)}else if(a.hasOwnProperty(s)){t=this.handleTag(t,o)}else if(s){e=n(this.handleContainer(t,o),2),t=e[0],o=e[1]}else{t=this.handleOther(t,o)}if(!t&&this.stack.length){this.pushString();r=n(this.stack.pop(),2),t=r[0],o=r[1]}}this.pushString();var l=[this.strings,this.nodes];this.init();return l};t.OPTIONS={skipHtmlTags:["script","noscript","style","textarea","pre","code","annotation","annotation-xml"],includeHtmlTags:{br:"\n",wbr:"","#comment":""},ignoreHtmlClass:"mathjax_ignore",processHtmlClass:"mathjax_process"};return t}();e.HTMLDomStrings=o},1969: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)}}();Object.defineProperty(e,"__esModule",{value:true});e.HTMLHandler=void 0;var i=r(50780);var o=r(78608);var a=function(t){n(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e.documentClass=o.HTMLDocument;return e}e.prototype.handlesDocument=function(t){var e=this.adaptor;if(typeof t==="string"){try{t=e.parse(t,"text/html")}catch(r){}}if(t instanceof e.window.Document||t instanceof e.window.HTMLElement||t instanceof e.window.DocumentFragment){return true}return false};e.prototype.create=function(e,r){var n=this.adaptor;if(typeof e==="string"){e=n.parse(e,"text/html")}else if(e instanceof n.window.HTMLElement||e instanceof n.window.DocumentFragment){var i=e;e=n.parse("","text/html");n.append(n.body(e),i)}return t.prototype.create.call(this,e,r)};return e}(i.AbstractHandler);e.HTMLHandler=a},72680: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)}}();Object.defineProperty(e,"__esModule",{value:true});e.HTMLMathItem=void 0;var i=r(24971);var o=function(t){n(e,t);function e(e,r,n,i,o){if(n===void 0){n=true}if(i===void 0){i={node:null,n:0,delim:""}}if(o===void 0){o={node:null,n:0,delim:""}}return t.call(this,e,r,n,i,o)||this}Object.defineProperty(e.prototype,"adaptor",{get:function(){return this.inputJax.adaptor},enumerable:false,configurable:true});e.prototype.updateDocument=function(t){if(this.state()=i.STATE.TYPESET){var e=this.adaptor;var r=this.start.node;var n=e.text("");if(t){var o=this.start.delim+this.math+this.end.delim;if(this.inputJax.processStrings){n=e.text(o)}else{var a=e.parse(o,"text/html");n=e.firstChild(e.body(a))}}if(e.parent(r)){e.replace(n,r)}this.start.node=this.end.node=n;this.start.n=this.end.n=0}};return e}(i.AbstractMathItem);e.HTMLMathItem=o},16499: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)}}();Object.defineProperty(e,"__esModule",{value:true});e.HTMLMathList=void 0;var i=r(76808);var o=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(i.AbstractMathList);e.HTMLMathList=o},58578:function(t,e){var r=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 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=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;n0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]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 i=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.")};Object.defineProperty(e,"__esModule",{value:true});e.LinkedList=e.ListItem=e.END=void 0;e.END=Symbol();var a=function(){function t(t){if(t===void 0){t=null}this.next=null;this.prev=null;this.data=t}return t}();e.ListItem=a;var s=function(){function t(){var t=[];for(var r=0;r1){var u=i.shift();var c=i.shift();u.merge(c,e);i.push(u)}if(i.length){this.list=i[0].list}return this};t.prototype.merge=function(t,r){var i,o,a,s,l;if(r===void 0){r=null}if(r===null){r=this.isBefore.bind(this)}var u=this.list.next;var c=t.list.next;while(u.data!==e.END&&c.data!==e.END){if(r(c.data,u.data)){i=n([u,c],2),c.prev.next=i[0],u.prev.next=i[1];o=n([u.prev,c.prev],2),c.prev=o[0],u.prev=o[1];a=n([t.list,this.list],2),this.list.prev.next=a[0],t.list.prev.next=a[1];s=n([t.list.prev,this.list.prev],2),this.list.prev=s[0],t.list.prev=s[1];l=n([c.next,u],2),u=l[0],c=l[1]}else{u=u.next}}if(c.data!==e.END){this.list.prev.next=t.list.next;t.list.next.prev=this.list.prev;t.list.prev.next=this.list;this.list.prev=t.list.prev;t.list.next=t.list.prev=t.list}return this};return t}();e.LinkedList=s},82776:(t,e)=>{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}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/1986.26029e99ef54a5652df8.js b/share/jupyter/lab/static/1986.26029e99ef54a5652df8.js new file mode 100644 index 0000000..abdf57f --- /dev/null +++ b/share/jupyter/lab/static/1986.26029e99ef54a5652df8.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1986],{1986:(e,r,t)=>{t.r(r);t.d(r,{haskell:()=>w});function n(e,r,t){r(t);return t(e,r)}var a=/[a-z_]/;var i=/[A-Z]/;var o=/\d/;var l=/[0-9A-Fa-f]/;var u=/[0-7]/;var s=/[a-z_A-Z0-9'\xa1-\uffff]/;var f=/[-!#$%&*+.\/<=>?@\\^|~:]/;var c=/[(),;[\]`{}]/;var d=/[ \t\v\f]/;function p(e,r){if(e.eatWhile(d)){return null}var t=e.next();if(c.test(t)){if(t=="{"&&e.eat("-")){var p="comment";if(e.eat("#")){p="meta"}return n(e,r,m(p,1))}return null}if(t=="'"){if(e.eat("\\")){e.next()}else{e.next()}if(e.eat("'")){return"string"}return"error"}if(t=='"'){return n(e,r,h)}if(i.test(t)){e.eatWhile(s);if(e.eat(".")){return"qualifier"}return"type"}if(a.test(t)){e.eatWhile(s);return"variable"}if(o.test(t)){if(t=="0"){if(e.eat(/[xX]/)){e.eatWhile(l);return"integer"}if(e.eat(/[oO]/)){e.eatWhile(u);return"number"}}e.eatWhile(o);var p="number";if(e.match(/^\.\d+/)){p="number"}if(e.eat(/[eE]/)){p="number";e.eat(/[-+]/);e.eatWhile(o)}return p}if(t=="."&&e.eat("."))return"keyword";if(f.test(t)){if(t=="-"&&e.eat(/-/)){e.eatWhile(/-/);if(!e.eat(f)){e.skipToEnd();return"comment"}}e.eatWhile(f);return"variable"}return"error"}function m(e,r){if(r==0){return p}return function(t,n){var a=r;while(!t.eol()){var i=t.next();if(i=="{"&&t.eat("-")){++a}else if(i=="-"&&t.eat("}")){--a;if(a==0){n(p);return e}}}n(m(e,a));return e}}function h(e,r){while(!e.eol()){var t=e.next();if(t=='"'){r(p);return"string"}if(t=="\\"){if(e.eol()||e.eat(d)){r(g);return"string"}if(e.eat("&")){}else{e.next()}}}r(p);return"error"}function g(e,r){if(e.eat("\\")){return n(e,r,h)}e.next();r(p);return"error"}var v=function(){var e={};function r(r){return function(){for(var t=0;t","@","~","=>");r("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<*","<=","<$>","<*>","=<<","==",">",">=",">>",">>=","^","^^","||","*","*>","**");r("builtin")("Applicative","Bool","Bounded","Char","Double","EQ","Either","Enum","Eq","False","FilePath","Float","Floating","Fractional","Functor","GT","IO","IOError","Int","Integer","Integral","Just","LT","Left","Maybe","Monad","Nothing","Num","Ord","Ordering","Rational","Read","ReadS","Real","RealFloat","RealFrac","Right","Show","ShowS","String","True");r("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","pure","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3");return e}();const w={name:"haskell",startState:function(){return{f:p}},copyState:function(e){return{f:e.f}},token:function(e,r){var t=r.f(e,(function(e){r.f=e}));var n=e.current();return v.hasOwnProperty(n)?v[n]:t},languageData:{commentTokens:{line:"--",block:{open:"{-",close:"-}"}}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/1991.84fc123d7cfe8ae2948e.js b/share/jupyter/lab/static/1991.84fc123d7cfe8ae2948e.js new file mode 100644 index 0000000..8bf412b --- /dev/null +++ b/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/share/jupyter/lab/static/1cb1c39ea642f26a4dfe.woff b/share/jupyter/lab/static/1cb1c39ea642f26a4dfe.woff new file mode 100644 index 0000000..c28398e Binary files /dev/null and b/share/jupyter/lab/static/1cb1c39ea642f26a4dfe.woff differ diff --git a/share/jupyter/lab/static/2089.b46fb224dcf021a15dbf.js b/share/jupyter/lab/static/2089.b46fb224dcf021a15dbf.js new file mode 100644 index 0000000..06b9bba --- /dev/null +++ b/share/jupyter/lab/static/2089.b46fb224dcf021a15dbf.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2089],{85054:(t,e,a)=>{a.d(e,{S:()=>i});var r=a(70416);function i(t,e){if(t.accDescr){e.setAccDescription?.(t.accDescr)}if(t.accTitle){e.setAccTitle?.(t.accTitle)}if(t.title){e.setDiagramTitle?.(t.title)}}(0,r.K2)(i,"populateCommonDb")},74470:(t,e,a)=>{a.d(e,{diagram:()=>m});var r=a(29479);var i=a(85054);var n=a(29131);var o=a(42418);var s=a(70416);var l=a(24010);var c=o.UI.packet;var d=class{constructor(){this.packet=[];this.setAccTitle=o.SV;this.getAccTitle=o.iN;this.setDiagramTitle=o.ke;this.getDiagramTitle=o.ab;this.getAccDescription=o.m7;this.setAccDescription=o.EI}static{(0,s.K2)(this,"PacketDB")}getConfig(){const t=(0,n.$t)({...c,...(0,o.zj)().packet});if(t.showBits){t.paddingY+=10}return t}getPacket(){return this.packet}pushWord(t){if(t.length>0){this.packet.push(t)}}clear(){(0,o.IU)();this.packet=[]}};var p=1e4;var b=(0,s.K2)(((t,e)=>{(0,i.S)(t,e);let a=-1;let r=[];let n=1;const{bitsPerRow:o}=e.getConfig();for(let{start:i,end:l,bits:c,label:d}of t.blocks){if(i!==void 0&&l!==void 0&&l{if(t.start===void 0){throw new Error("start should have been set during first phase")}if(t.end===void 0){throw new Error("end should have been set during first phase")}if(t.start>t.end){throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`)}if(t.end+1<=e*a){return[t,void 0]}const r=e*a-1;const i=e*a;return[{start:t.start,end:r,label:t.label,bits:r-t.start},{start:i,end:t.end,label:t.label,bits:t.end-i}]}),"getNextFittingBlock");var k={parser:{yy:void 0},parse:(0,s.K2)((async t=>{const e=await(0,l.qg)("packet",t);const a=k.parser?.yy;if(!(a instanceof d)){throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.")}s.Rm.debug(e);b(e,a)}),"parse")};var f=(0,s.K2)(((t,e,a,i)=>{const n=i.db;const s=n.getConfig();const{rowHeight:l,paddingY:c,bitWidth:d,bitsPerRow:p}=s;const b=n.getPacket();const h=n.getDiagramTitle();const k=l+c;const f=k*(b.length+1)-(h?0:l);const u=d*p+2;const w=(0,r.D)(e);w.attr("viewbox",`0 0 ${u} ${f}`);(0,o.a$)(w,f,u,s.useMaxWidth);for(const[r,o]of b.entries()){g(w,o,r,s)}w.append("text").text(h).attr("x",u/2).attr("y",f-k/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")}),"draw");var g=(0,s.K2)(((t,e,a,{rowHeight:r,paddingX:i,paddingY:n,bitWidth:o,bitsPerRow:s,showBits:l})=>{const c=t.append("g");const d=a*(r+n)+n;for(const p of e){const t=p.start%s*o+1;const e=(p.end-p.start+1)*o-i;c.append("rect").attr("x",t).attr("y",d).attr("width",e).attr("height",r).attr("class","packetBlock");c.append("text").attr("x",t+e/2).attr("y",d+r/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(p.label);if(!l){continue}const a=p.end===p.start;const n=d-2;c.append("text").attr("x",t+(a?e/2:0)).attr("y",n).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",a?"middle":"start").text(p.start);if(!a){c.append("text").attr("x",t+e).attr("y",n).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(p.end)}}}),"drawWord");var u={draw:f};var w={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"};var v=(0,s.K2)((({packet:t}={})=>{const e=(0,n.$t)(w,t);return`\n\t.packetByte {\n\t\tfont-size: ${e.byteFontSize};\n\t}\n\t.packetByte.start {\n\t\tfill: ${e.startByteColor};\n\t}\n\t.packetByte.end {\n\t\tfill: ${e.endByteColor};\n\t}\n\t.packetLabel {\n\t\tfill: ${e.labelColor};\n\t\tfont-size: ${e.labelFontSize};\n\t}\n\t.packetTitle {\n\t\tfill: ${e.titleColor};\n\t\tfont-size: ${e.titleFontSize};\n\t}\n\t.packetBlock {\n\t\tstroke: ${e.blockStrokeColor};\n\t\tstroke-width: ${e.blockStrokeWidth};\n\t\tfill: ${e.blockFillColor};\n\t}\n\t`}),"styles");var m={parser:k,get db(){return new d},renderer:u,styles:v}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/2211.067e46096434d8c02ab9.js b/share/jupyter/lab/static/2211.067e46096434d8c02ab9.js new file mode 100644 index 0000000..df1e0ca --- /dev/null +++ b/share/jupyter/lab/static/2211.067e46096434d8c02ab9.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2211],{82211:(e,r,n)=>{n.d(r,{Zp:()=>Qt});var t=n(69769);var i=n(92911);var o=0;function a(e){var r=++o;return(0,i.A)(e)+r}const u=a;var s=n(33659);var d=n(74033);var f=n(8937);var c=Math.ceil,v=Math.max;function h(e,r,n,t){var i=-1,o=v(c((r-e)/(n||1)),0),a=Array(o);while(o--){a[t?o:++i]=e;e+=n}return a}const l=h;var g=n(31943);var p=n(52712);function A(e){return function(r,n,t){if(t&&typeof t!="number"&&(0,g.A)(r,n,t)){n=t=undefined}r=(0,p.A)(r);if(n===undefined){n=r;r=0}else{n=(0,p.A)(n)}t=t===undefined?r0;--u){a=r[u].dequeue();if(a){t=t.concat(P(e,r,n,a,true));break}}}}return t}function P(e,r,n,i,o){var a=o?[]:undefined;t.A(e.inEdges(i.v),(function(t){var i=e.edge(t);var u=e.node(t.v);if(o){a.push({v:t.v,w:t.w})}u.out-=i;C(r,n,u)}));t.A(e.outEdges(i.v),(function(t){var i=e.edge(t);var o=t.w;var a=e.node(o);a["in"]-=i;C(r,n,a)}));e.removeNode(i.v);return a}function j(e,r){var n=new y.T;var i=0;var o=0;t.A(e.nodes(),(function(e){n.setNode(e,{v:e,in:0,out:0})}));t.A(e.edges(),(function(e){var t=n.edge(e.v,e.w)||0;var a=r(e);var u=t+a;n.setEdge(e.v,e.w,u);o=Math.max(o,n.node(e.v).out+=a);i=Math.max(i,n.node(e.w)["in"]+=a)}));var a=m(o+i+3).map((function(){return new E}));var u=i+1;t.A(n.nodes(),(function(e){C(a,u,n.node(e))}));return{graph:n,buckets:a,zeroIdx:u}}function C(e,r,n){if(!n.out){e[0].enqueue(n)}else if(!n["in"]){e[e.length-1].enqueue(n)}else{e[n.out-n["in"]+r].enqueue(n)}}function T(e){var r=e.graph().acyclicer==="greedy"?x(e,n(e)):L(e);t.A(r,(function(r){var n=e.edge(r);e.removeEdge(r);n.forwardName=r.name;n.reversed=true;e.setEdge(r.w,r.v,n,u("rev"))}));function n(e){return function(r){return e.edge(r).weight}}}function L(e){var r=[];var n={};var i={};function o(a){if(Object.prototype.hasOwnProperty.call(i,a)){return}i[a]=true;n[a]=true;t.A(e.outEdges(a),(function(e){if(Object.prototype.hasOwnProperty.call(n,e.w)){r.push(e)}else{o(e.w)}}));delete n[a]}t.A(e.nodes(),o);return r}function M(e){t.A(e.edges(),(function(r){var n=e.edge(r);if(n.reversed){e.removeEdge(r);var t=n.forwardName;delete n.reversed;delete n.forwardName;e.setEdge(r.w,r.v,n,t)}}))}var R=n(96901);var F=n(44835);var S=n(78307);function D(e,r){return(0,F.A)(e,r,(function(r,n){return(0,S.A)(e,n)}))}const V=D;var G=n(27401);var Y=n(4596);function z(e){return(0,Y.A)((0,G.A)(e,undefined,d.A),e+"")}const B=z;var q=B((function(e,r){return e==null?{}:V(e,r)}));const $=q;var Q=n(38693);var J=n(95852);function W(e,r){return e>r}const Z=W;var H=n(63077);function K(e){return e&&e.length?(0,J.A)(e,H.A,Z):undefined}const U=K;var X=n(80359);var ee=n(48657);var re=n(27477);var ne=n(1121);function te(e,r){var n={};r=(0,ne.A)(r,3);(0,re.A)(e,(function(e,t,i){(0,ee.A)(n,t,r(e,t,i))}));return n}const ie=te;var oe=n(89523);var ae=n(963);var ue=n(2850);var se=n(24606);var de=function(){return se.A.Date.now()};const fe=de;function ce(e,r,n,t){var i;do{i=u(t)}while(e.hasNode(i));n.dummy=r;e.setNode(i,n);return i}function ve(e){var r=(new y.T).setGraph(e.graph());t.A(e.nodes(),(function(n){r.setNode(n,e.node(n))}));t.A(e.edges(),(function(n){var t=r.edge(n.v,n.w)||{weight:0,minlen:1};var i=e.edge(n);r.setEdge(n.v,n.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}));return r}function he(e){var r=new y.T({multigraph:e.isMultigraph()}).setGraph(e.graph());t.A(e.nodes(),(function(n){if(!e.children(n).length){r.setNode(n,e.node(n))}}));t.A(e.edges(),(function(n){r.setEdge(n,e.edge(n))}));return r}function le(e){var r=_.map(e.nodes(),(function(r){var n={};_.forEach(e.outEdges(r),(function(r){n[r.w]=(n[r.w]||0)+e.edge(r).weight}));return n}));return _.zipObject(e.nodes(),r)}function ge(e){var r=_.map(e.nodes(),(function(r){var n={};_.forEach(e.inEdges(r),(function(r){n[r.v]=(n[r.v]||0)+e.edge(r).weight}));return n}));return _.zipObject(e.nodes(),r)}function pe(e,r){var n=e.x;var t=e.y;var i=r.x-n;var o=r.y-t;var a=e.width/2;var u=e.height/2;if(!i&&!o){throw new Error("Not possible to find intersection inside of the rectangle")}var s,d;if(Math.abs(o)*a>Math.abs(i)*u){if(o<0){u=-u}s=u*i/o;d=u}else{if(i<0){a=-a}s=a;d=a*o/i}return{x:n+s,y:t+d}}function Ae(e){var r=f.A(m(ye(e)+1),(function(){return[]}));t.A(e.nodes(),(function(n){var t=e.node(n);var i=t.rank;if(!oe.A(i)){r[i][t.order]=n}}));return r}function we(e){var r=ae.A(f.A(e.nodes(),(function(r){return e.node(r).rank})));t.A(e.nodes(),(function(n){var t=e.node(n);if(ue.A(t,"rank")){t.rank-=r}}))}function be(e){var r=ae.A(f.A(e.nodes(),(function(r){return e.node(r).rank})));var n=[];t.A(e.nodes(),(function(t){var i=e.node(t).rank-r;if(!n[i]){n[i]=[]}n[i].push(t)}));var i=0;var o=e.graph().nodeRankFactor;t.A(n,(function(r,n){if(oe.A(r)&&n%o!==0){--i}else if(i){t.A(r,(function(r){e.node(r).rank+=i}))}}))}function me(e,r,n,t){var i={width:0,height:0};if(arguments.length>=4){i.rank=n;i.order=t}return ce(e,"border",i,r)}function ye(e){return U(f.A(e.nodes(),(function(r){var n=e.node(r).rank;if(!oe.A(n)){return n}})))}function _e(e,r){var n={lhs:[],rhs:[]};t.A(e,(function(e){if(r(e)){n.lhs.push(e)}else{n.rhs.push(e)}}));return n}function Ee(e,r){var n=fe();try{return r()}finally{console.log(e+" time: "+(fe()-n)+"ms")}}function Oe(e,r){return r()}function ke(e){function r(n){var i=e.children(n);var o=e.node(n);if(i.length){t.A(i,r)}if(Object.prototype.hasOwnProperty.call(o,"minRank")){o.borderLeft=[];o.borderRight=[];for(var a=o.minRank,u=o.maxRank+1;a0){a=o.removeMin();u=i[a];if(u.distance===Number.POSITIVE_INFINITY){break}t(a).forEach(s)}return i}function Ue(e,r,n){return _.transform(e.nodes(),(function(t,i){t[i]=dijkstra(e,i,r,n)}),{})}var Xe=s.A(1);function er(e,r,n){return rr(e,r||Xe,n||function(r){return e.outEdges(r)})}function rr(e,r,n){var t={};var i=e.nodes();i.forEach((function(e){t[e]={};t[e][e]={distance:0};i.forEach((function(r){if(e!==r){t[e][r]={distance:Number.POSITIVE_INFINITY}}}));n(e).forEach((function(n){var i=n.v===e?n.w:n.v;var o=r(n);t[e][i]={distance:o,predecessor:e}}))}));i.forEach((function(e){var r=t[e];i.forEach((function(n){var o=t[n];i.forEach((function(n){var t=o[e];var i=r[n];var a=o[n];var u=t.distance+i.distance;if(u0){o=i.removeMin();if(Object.prototype.hasOwnProperty.call(t,o)){n.setEdge(o,t[o])}else if(u){throw new Error("Input graph is not connected: "+e)}else{u=true}e.nodeEdges(o).forEach(a)}return n}tn.initLowLimValues=sn;tn.initCutValues=on;tn.calcCutValue=un;tn.leaveEdge=fn;tn.enterEdge=cn;tn.exchangeEdges=vn;function tn(e){e=ve(e);Ye(e);var r=Be(e);sn(r);on(r,e);var n,t;while(n=fn(r)){t=cn(r,e,n);vn(r,e,n,t)}}function on(e,r){var n=Xr(e,e.nodes());n=n.slice(0,n.length-1);t.A(n,(function(n){an(e,r,n)}))}function an(e,r,n){var t=e.node(n);var i=t.parent;e.edge(n,i).cutvalue=un(e,r,n)}function un(e,r,n){var i=e.node(n);var o=i.parent;var a=true;var u=r.edge(n,o);var s=0;if(!u){a=false;u=r.edge(o,n)}s=u.weight;t.A(r.nodeEdges(n),(function(t){var i=t.v===n,u=i?t.w:t.v;if(u!==o){var d=i===a,f=r.edge(t).weight;s+=d?f:-f;if(ln(e,n,u)){var c=e.edge(n,u).cutvalue;s+=d?-c:c}}}));return s}function sn(e,r){if(arguments.length<2){r=e.nodes()[0]}dn(e,{},1,r)}function dn(e,r,n,i,o){var a=n;var u=e.node(i);r[i]=true;t.A(e.neighbors(i),(function(t){if(!Object.prototype.hasOwnProperty.call(r,t)){n=dn(e,r,n,t,i)}}));u.low=a;u.lim=n++;if(o){u.parent=o}else{delete u.parent}return n}function fn(e){return Je.A(e.edges(),(function(r){return e.edge(r).cutvalue<0}))}function cn(e,r,n){var t=n.v;var i=n.w;if(!r.hasEdge(t,i)){t=n.w;i=n.v}var o=e.node(t);var a=e.node(i);var u=o;var s=false;if(o.lim>a.lim){u=a;s=true}var d=We.A(r.edges(),(function(r){return s===gn(e,e.node(r.v),u)&&s!==gn(e,e.node(r.w),u)}));return Ge(d,(function(e){return ze(r,e)}))}function vn(e,r,n,t){var i=n.v;var o=n.w;e.removeEdge(i,o);e.setEdge(t.v,t.w,{});sn(e);on(e,r);hn(e,r)}function hn(e,r){var n=Je.A(e.nodes(),(function(e){return!r.node(e).parent}));var i=en(e,n);i=i.slice(1);t.A(i,(function(n){var t=e.node(n).parent,i=r.edge(n,t),o=false;if(!i){i=r.edge(t,n);o=true}r.node(n).rank=r.node(t).rank+(o?i.minlen:-i.minlen)}))}function ln(e,r,n){return e.hasEdge(r,n)}function gn(e,r,n){return n.low<=r.lim&&r.lim<=n.lim}function pn(e){switch(e.graph().ranker){case"network-simplex":bn(e);break;case"tight-tree":wn(e);break;case"longest-path":An(e);break;default:bn(e)}}var An=Ye;function wn(e){Ye(e);Be(e)}function bn(e){tn(e)}var mn=n(44882);var yn=n(65339);function _n(e){var r=ce(e,"root",{},"_root");var n=On(e);var i=U(mn.A(n))-1;var o=2*i+1;e.graph().nestingRoot=r;t.A(e.edges(),(function(r){e.edge(r).minlen*=o}));var a=kn(e)+1;t.A(e.children(),(function(t){En(e,r,o,a,i,n,t)}));e.graph().nodeRankFactor=o}function En(e,r,n,i,o,a,u){var s=e.children(u);if(!s.length){if(u!==r){e.setEdge(r,u,{weight:0,minlen:n})}return}var d=me(e,"_bt");var f=me(e,"_bb");var c=e.node(u);e.setParent(d,u);c.borderTop=d;e.setParent(f,u);c.borderBottom=f;t.A(s,(function(t){En(e,r,n,i,o,a,t);var s=e.node(t);var c=s.borderTop?s.borderTop:t;var v=s.borderBottom?s.borderBottom:t;var h=s.borderTop?i:2*i;var l=c!==v?1:o-a[u]+1;e.setEdge(d,c,{weight:h,minlen:l,nestingEdge:true});e.setEdge(v,f,{weight:h,minlen:l,nestingEdge:true})}));if(!e.parent(u)){e.setEdge(r,d,{weight:0,minlen:o+a[u]})}}function On(e){var r={};function n(i,o){var a=e.children(i);if(a&&a.length){t.A(a,(function(e){n(e,o+1)}))}r[i]=o}t.A(e.children(),(function(e){n(e,1)}));return r}function kn(e){return yn.A(e.edges(),(function(r,n){return r+e.edge(n).weight}),0)}function Nn(e){var r=e.graph();e.removeNode(r.nestingRoot);delete r.nestingRoot;t.A(e.edges(),(function(r){var n=e.edge(r);if(n.nestingEdge){e.removeEdge(r)}}))}var xn=n(37005);var In=1,Pn=4;function jn(e){return(0,xn.A)(e,In|Pn)}const Cn=jn;function Tn(e,r,n){var i={},o;t.A(n,(function(n){var t=e.parent(n),a,u;while(t){a=e.parent(t);if(a){u=i[a];i[a]=t}else{u=o;o=t}if(u&&u!==t){r.setEdge(u,t);return}t=a}}))}function Ln(e,r,n){var i=Mn(e),o=new y.T({compound:true}).setGraph({root:i}).setDefaultNodeLabel((function(r){return e.node(r)}));t.A(e.nodes(),(function(a){var u=e.node(a),s=e.parent(a);if(u.rank===r||u.minRank<=r&&r<=u.maxRank){o.setNode(a);o.setParent(a,s||i);t.A(e[n](a),(function(r){var n=r.v===a?r.w:r.v,t=o.edge(n,a),i=!oe.A(t)?t.weight:0;o.setEdge(n,a,{weight:e.edge(r).weight+i})}));if(Object.prototype.hasOwnProperty.call(u,"minRank")){o.setNode(a,{borderLeft:u.borderLeft[r],borderRight:u.borderRight[r]})}}}));return o}function Mn(e){var r;while(e.hasNode(r=u("_root")));return r}var Rn=n(16542);function Fn(e,r,n){var t=-1,i=e.length,o=r.length,a={};while(++tr||o&&a&&s&&!u&&!d||t&&a&&s||!n&&s||!i){return 1}if(!t&&!o&&!d&&e=u){return s}var d=n[t];return s*(d=="desc"?-1:1)}}return e.index-r.index}const Kn=Hn;function Un(e,r,n){if(r.length){r=(0,Yn.A)(r,(function(e){if((0,Hr.A)(e)){return function(r){return(0,zn.A)(r,e.length===1?e[0]:e)}}return e}))}else{r=[H.A]}var t=-1;r=(0,Yn.A)(r,(0,Qn.A)(ne.A));var i=(0,Bn.A)(e,(function(e,n,i){var o=(0,Yn.A)(r,(function(r){return r(e)}));return{criteria:o,index:++t,value:e}}));return $n(i,(function(e,r){return Kn(e,r,n)}))}const Xn=Un;var et=n(55881);var rt=(0,et.A)((function(e,r){if(e==null){return[]}var n=r.length;if(n>1&&(0,g.A)(e,r[0],r[1])){r=[]}else if(n>2&&(0,g.A)(r[0],r[1],r[2])){r=[r[0]]}return Xn(e,(0,Gn.A)(r,1),[])}));const nt=rt;function tt(e,r){var n=0;for(var t=1;t0){if(r%2){n+=s[r+1]}r=r-1>>1;s[r]+=e.weight}c+=e.weight*n})));return c}function ot(e){var r={};var n=We.A(e.nodes(),(function(r){return!e.children(r).length}));var i=U(f.A(n,(function(r){return e.node(r).rank})));var o=f.A(m(i+1),(function(){return[]}));function a(n){if(ue.A(r,n))return;r[n]=true;var i=e.node(n);o[i.rank].push(n);t.A(e.successors(n),a)}var u=nt(n,(function(r){return e.node(r).rank}));t.A(u,a);return o}function at(e,r){return f.A(r,(function(r){var n=e.inEdges(r);if(!n.length){return{v:r}}else{var t=yn.A(n,(function(r,n){var t=e.edge(n),i=e.node(n.v);return{sum:r.sum+t.weight*i.order,weight:r.weight+t.weight}}),{sum:0,weight:0});return{v:r,barycenter:t.sum/t.weight,weight:t.weight}}}))}function ut(e,r){var n={};t.A(e,(function(e,r){var t=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:r};if(!oe.A(e.barycenter)){t.barycenter=e.barycenter;t.weight=e.weight}}));t.A(r.edges(),(function(e){var r=n[e.v];var t=n[e.w];if(!oe.A(r)&&!oe.A(t)){t.indegree++;r.out.push(n[e.w])}}));var i=We.A(n,(function(e){return!e.indegree}));return st(i)}function st(e){var r=[];function n(e){return function(r){if(r.merged){return}if(oe.A(r.barycenter)||oe.A(e.barycenter)||r.barycenter>=e.barycenter){dt(e,r)}}}function i(r){return function(n){n["in"].push(r);if(--n.indegree===0){e.push(n)}}}while(e.length){var o=e.pop();r.push(o);t.A(o["in"].reverse(),n(o));t.A(o.out,i(o))}return f.A(We.A(r,(function(e){return!e.merged})),(function(e){return $(e,["vs","i","barycenter","weight"])}))}function dt(e,r){var n=0;var t=0;if(e.weight){n+=e.barycenter*e.weight;t+=e.weight}if(r.weight){n+=r.barycenter*r.weight;t+=r.weight}e.vs=r.vs.concat(e.vs);e.barycenter=n/t;e.weight=t;e.i=Math.min(r.i,e.i);r.merged=true}function ft(e,r){var n=_e(e,(function(e){return Object.prototype.hasOwnProperty.call(e,"barycenter")}));var i=n.lhs,o=nt(n.rhs,(function(e){return-e.i})),a=[],u=0,s=0,f=0;i.sort(vt(!!r));f=ct(a,o,f);t.A(i,(function(e){f+=e.vs.length;a.push(e.vs);u+=e.barycenter*e.weight;s+=e.weight;f=ct(a,o,f)}));var c={vs:d.A(a)};if(s){c.barycenter=u/s;c.weight=s}return c}function ct(e,r,n){var t;while(r.length&&(t=X.A(r)).i<=n){r.pop();e.push(t.vs);n++}return n}function vt(e){return function(r,n){if(r.barycentern.barycenter){return 1}return!e?r.i-n.i:n.i-r.i}}function ht(e,r,n,i){var o=e.children(r);var a=e.node(r);var u=a?a.borderLeft:undefined;var s=a?a.borderRight:undefined;var f={};if(u){o=We.A(o,(function(e){return e!==u&&e!==s}))}var c=at(e,o);t.A(c,(function(r){if(e.children(r.v).length){var t=ht(e,r.v,n,i);f[r.v]=t;if(Object.prototype.hasOwnProperty.call(t,"barycenter")){gt(r,t)}}}));var v=ut(c,n);lt(v,f);var h=ft(v,i);if(u){h.vs=d.A([u,h.vs,s]);if(e.predecessors(u).length){var l=e.node(e.predecessors(u)[0]),g=e.node(e.predecessors(s)[0]);if(!Object.prototype.hasOwnProperty.call(h,"barycenter")){h.barycenter=0;h.weight=0}h.barycenter=(h.barycenter*h.weight+l.order+g.order)/(h.weight+2);h.weight+=2}}return h}function lt(e,r){t.A(e,(function(e){e.vs=d.A(e.vs.map((function(e){if(r[e]){return r[e].vs}return e})))}))}function gt(e,r){if(!oe.A(e.barycenter)){e.barycenter=(e.barycenter*e.weight+r.barycenter*r.weight)/(e.weight+r.weight);e.weight+=r.weight}else{e.barycenter=r.barycenter;e.weight=r.weight}}function pt(e){var r=ye(e),n=At(e,m(1,r+1),"inEdges"),t=At(e,m(r-1,-1,-1),"outEdges");var i=ot(e);bt(e,i);var o=Number.POSITIVE_INFINITY,a;for(var u=0,s=0;s<4;++u,++s){wt(u%2?n:t,u%4>=2);i=Ae(e);var d=tt(e,i);if(da||u>r[s].lim));d=s;s=t;while((s=e.parent(s))!==d){o.push(s)}return{path:i.concat(o.reverse()),lca:d}}function _t(e){var r={};var n=0;function i(o){var a=n;t.A(e.children(o),i);r[o]={low:a,lim:n++}}t.A(e.children(),i);return r}var Et=n(76253);function Ot(e,r){return e&&(0,re.A)(e,(0,Et.A)(r))}const kt=Ot;var Nt=n(40283);var xt=n(13839);function It(e,r){return e==null?e:(0,Nt.A)(e,(0,Et.A)(r),xt.A)}const Pt=It;function jt(e,r){var n={};function i(r,i){var o=0,a=0,u=r.length,s=X.A(i);t.A(i,(function(r,d){var f=Tt(e,r),c=f?e.node(f).order:u;if(f||r===s){t.A(i.slice(a,d+1),(function(r){t.A(e.predecessors(r),(function(t){var i=e.node(t),a=i.order;if((au)){Lt(n,r,s)}}))}}))}function o(r,n){var o=-1,a,u=0;t.A(n,(function(t,s){if(e.node(t).dummy==="border"){var d=e.predecessors(t);if(d.length){a=e.node(d[0]).order;i(n,u,s,o,a);u=s;o=a}}i(n,u,n.length,a,r.length)}));return n}yn.A(r,o);return n}function Tt(e,r){if(e.node(r).dummy){return Je.A(e.predecessors(r),(function(r){return e.node(r).dummy}))}}function Lt(e,r,n){if(r>n){var t=r;r=n;n=t}if(!Object.prototype.hasOwnProperty.call(e,r)){Object.defineProperty(e,r,{enumerable:true,configurable:true,value:{},writable:true})}var i=e[r];Object.defineProperty(i,n,{enumerable:true,configurable:true,value:true,writable:true})}function Mt(e,r,n){if(r>n){var t=r;r=n;n=t}return!!e[r]&&Object.prototype.hasOwnProperty.call(e[r],n)}function Rt(e,r,n,i){var o={},a={},u={};t.A(r,(function(e){t.A(e,(function(e,r){o[e]=e;a[e]=e;u[e]=r}))}));t.A(r,(function(e){var r=-1;t.A(e,(function(e){var t=i(e);if(t.length){t=nt(t,(function(e){return u[e]}));var s=(t.length-1)/2;for(var d=Math.floor(s),f=Math.ceil(s);d<=f;++d){var c=t[d];if(a[e]===e&&r{var r=n(" buildLayoutGraph",(()=>ti(e)));n(" runLayout",(()=>Jt(r,n)));n(" updateInputGraph",(()=>Wt(e,r)))}))}function Jt(e,r){r(" makeSpaceForEdgeLabels",(()=>ii(e)));r(" removeSelfEdges",(()=>hi(e)));r(" acyclic",(()=>T(e)));r(" nestingGraph.run",(()=>_n(e)));r(" rank",(()=>pn(he(e))));r(" injectEdgeLabelProxies",(()=>oi(e)));r(" removeEmptyRanks",(()=>be(e)));r(" nestingGraph.cleanup",(()=>Nn(e)));r(" normalizeRanks",(()=>we(e)));r(" assignRankMinMax",(()=>ai(e)));r(" removeEdgeLabelProxies",(()=>ui(e)));r(" normalize.run",(()=>Re(e)));r(" parentDummyChains",(()=>mt(e)));r(" addBorderSegments",(()=>ke(e)));r(" order",(()=>pt(e)));r(" insertSelfEdges",(()=>li(e)));r(" adjustCoordinateSystem",(()=>xe(e)));r(" position",(()=>qt(e)));r(" positionSelfEdges",(()=>gi(e)));r(" removeBorderNodes",(()=>vi(e)));r(" normalize.undo",(()=>Se(e)));r(" fixupEdgeLabelCoords",(()=>fi(e)));r(" undoCoordinateSystem",(()=>Ie(e)));r(" translateGraph",(()=>si(e)));r(" assignNodeIntersects",(()=>di(e)));r(" reversePoints",(()=>ci(e)));r(" acyclic.undo",(()=>M(e)))}function Wt(e,r){t.A(e.nodes(),(function(n){var t=e.node(n);var i=r.node(n);if(t){t.x=i.x;t.y=i.y;if(r.children(n).length){t.width=i.width;t.height=i.height}}}));t.A(e.edges(),(function(n){var t=e.edge(n);var i=r.edge(n);t.points=i.points;if(Object.prototype.hasOwnProperty.call(i,"x")){t.x=i.x;t.y=i.y}}));e.graph().width=r.graph().width;e.graph().height=r.graph().height}var Zt=["nodesep","edgesep","ranksep","marginx","marginy"];var Ht={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"};var Kt=["acyclicer","ranker","rankdir","align"];var Ut=["width","height"];var Xt={width:0,height:0};var ei=["minlen","weight","width","height","labeloffset"];var ri={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"};var ni=["labelpos"];function ti(e){var r=new y.T({multigraph:true,compound:true});var n=Ai(e.graph());r.setGraph(R.A({},Ht,pi(n,Zt),$(n,Kt)));t.A(e.nodes(),(function(n){var t=Ai(e.node(n));r.setNode(n,Q.A(pi(t,Ut),Xt));r.setParent(n,e.parent(n))}));t.A(e.edges(),(function(n){var t=Ai(e.edge(n));r.setEdge(n,R.A({},ri,pi(t,ei),$(t,ni)))}));return r}function ii(e){var r=e.graph();r.ranksep/=2;t.A(e.edges(),(function(n){var t=e.edge(n);t.minlen*=2;if(t.labelpos.toLowerCase()!=="c"){if(r.rankdir==="TB"||r.rankdir==="BT"){t.width+=t.labeloffset}else{t.height+=t.labeloffset}}}))}function oi(e){t.A(e.edges(),(function(r){var n=e.edge(r);if(n.width&&n.height){var t=e.node(r.v);var i=e.node(r.w);var o={rank:(i.rank-t.rank)/2+t.rank,e:r};ce(e,"edge-proxy",o,"_ep")}}))}function ai(e){var r=0;t.A(e.nodes(),(function(n){var t=e.node(n);if(t.borderTop){t.minRank=e.node(t.borderTop).rank;t.maxRank=e.node(t.borderBottom).rank;r=U(r,t.maxRank)}}));e.graph().maxRank=r}function ui(e){t.A(e.nodes(),(function(r){var n=e.node(r);if(n.dummy==="edge-proxy"){e.edge(n.e).labelRank=n.rank;e.removeNode(r)}}))}function si(e){var r=Number.POSITIVE_INFINITY;var n=0;var i=Number.POSITIVE_INFINITY;var o=0;var a=e.graph();var u=a.marginx||0;var s=a.marginy||0;function d(e){var t=e.x;var a=e.y;var u=e.width;var s=e.height;r=Math.min(r,t-u/2);n=Math.max(n,t+u/2);i=Math.min(i,a-s/2);o=Math.max(o,a+s/2)}t.A(e.nodes(),(function(r){d(e.node(r))}));t.A(e.edges(),(function(r){var n=e.edge(r);if(Object.prototype.hasOwnProperty.call(n,"x")){d(n)}}));r-=u;i-=s;t.A(e.nodes(),(function(n){var t=e.node(n);t.x-=r;t.y-=i}));t.A(e.edges(),(function(n){var o=e.edge(n);t.A(o.points,(function(e){e.x-=r;e.y-=i}));if(Object.prototype.hasOwnProperty.call(o,"x")){o.x-=r}if(Object.prototype.hasOwnProperty.call(o,"y")){o.y-=i}}));a.width=n-r+u;a.height=o-i+s}function di(e){t.A(e.edges(),(function(r){var n=e.edge(r);var t=e.node(r.v);var i=e.node(r.w);var o,a;if(!n.points){n.points=[];o=i;a=t}else{o=n.points[0];a=n.points[n.points.length-1]}n.points.unshift(pe(t,o));n.points.push(pe(i,a))}))}function fi(e){t.A(e.edges(),(function(r){var n=e.edge(r);if(Object.prototype.hasOwnProperty.call(n,"x")){if(n.labelpos==="l"||n.labelpos==="r"){n.width-=n.labeloffset}switch(n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset;break}}}))}function ci(e){t.A(e.edges(),(function(r){var n=e.edge(r);if(n.reversed){n.points.reverse()}}))}function vi(e){t.A(e.nodes(),(function(r){if(e.children(r).length){var n=e.node(r);var t=e.node(n.borderTop);var i=e.node(n.borderBottom);var o=e.node(X.A(n.borderLeft));var a=e.node(X.A(n.borderRight));n.width=Math.abs(a.x-o.x);n.height=Math.abs(i.y-t.y);n.x=o.x+n.width/2;n.y=t.y+n.height/2}}));t.A(e.nodes(),(function(r){if(e.node(r).dummy==="border"){e.removeNode(r)}}))}function hi(e){t.A(e.edges(),(function(r){if(r.v===r.w){var n=e.node(r.v);if(!n.selfEdges){n.selfEdges=[]}n.selfEdges.push({e:r,label:e.edge(r)});e.removeEdge(r)}}))}function li(e){var r=Ae(e);t.A(r,(function(r){var n=0;t.A(r,(function(r,i){var o=e.node(r);o.order=i+n;t.A(o.selfEdges,(function(r){ce(e,"selfedge",{width:r.label.width,height:r.label.height,rank:o.rank,order:i+ ++n,e:r.e,label:r.label},"_se")}));delete o.selfEdges}))}))}function gi(e){t.A(e.nodes(),(function(r){var n=e.node(r);if(n.dummy==="selfedge"){var t=e.node(n.e.v);var i=t.x+t.width/2;var o=t.y;var a=n.x-i;var u=t.height/2;e.setEdge(n.e,n.label);e.removeNode(r);n.label.points=[{x:i+2*a/3,y:o-u},{x:i+5*a/6,y:o-u},{x:i+a,y:o},{x:i+5*a/6,y:o+u},{x:i+2*a/3,y:o+u}];n.label.x=n.x;n.label.y=n.y}}))}function pi(e,r){return ie($(e,r),Number)}function Ai(e){var r={};t.A(e,(function(e,n){r[n.toLowerCase()]=e}));return r}},65791:(e,r,n)=>{n.d(r,{T:()=>y});var t=n(33659);var i=n(58807);var o=n(37947);var a=n(97133);var u=n(74650);var s=n(69769);var d=n(89523);var f=n(62040);var c=n(55881);var v=n(19363);var h=n(10654);var l=(0,c.A)((function(e){return(0,v.A)((0,f.A)(e,1,h.A,true))}));const g=l;var p=n(44882);var A=n(65339);var w="\0";var b="\0";var m="";class y{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:true;this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:false;this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:false;this._label=undefined;this._defaultNodeLabelFn=t.A(undefined);this._defaultEdgeLabelFn=t.A(undefined);this._nodes={};if(this._isCompound){this._parent={};this._children={};this._children[b]={}}this._in={};this._preds={};this._out={};this._sucs={};this._edgeObjs={};this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){this._label=e;return this}graph(){return this._label}setDefaultNodeLabel(e){if(!i.A(e)){e=t.A(e)}this._defaultNodeLabelFn=e;return this}nodeCount(){return this._nodeCount}nodes(){return o.A(this._nodes)}sources(){var e=this;return a.A(this.nodes(),(function(r){return u.A(e._in[r])}))}sinks(){var e=this;return a.A(this.nodes(),(function(r){return u.A(e._out[r])}))}setNodes(e,r){var n=arguments;var t=this;s.A(e,(function(e){if(n.length>1){t.setNode(e,r)}else{t.setNode(e)}}));return this}setNode(e,r){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){if(arguments.length>1){this._nodes[e]=r}return this}this._nodes[e]=arguments.length>1?r:this._defaultNodeLabelFn(e);if(this._isCompound){this._parent[e]=b;this._children[e]={};this._children[b][e]=true}this._in[e]={};this._preds[e]={};this._out[e]={};this._sucs[e]={};++this._nodeCount;return this}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var r=e=>this.removeEdge(this._edgeObjs[e]);delete this._nodes[e];if(this._isCompound){this._removeFromParentsChildList(e);delete this._parent[e];s.A(this.children(e),(e=>{this.setParent(e)}));delete this._children[e]}s.A(o.A(this._in[e]),r);delete this._in[e];delete this._preds[e];s.A(o.A(this._out[e]),r);delete this._out[e];delete this._sucs[e];--this._nodeCount}return this}setParent(e,r){if(!this._isCompound){throw new Error("Cannot set parent in a non-compound graph")}if(d.A(r)){r=b}else{r+="";for(var n=r;!d.A(n);n=this.parent(n)){if(n===e){throw new Error("Setting "+r+" as parent of "+e+" would create a cycle")}}this.setNode(r)}this.setNode(e);this._removeFromParentsChildList(e);this._parent[e]=r;this._children[r][e]=true;return this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var r=this._parent[e];if(r!==b){return r}}}children(e){if(d.A(e)){e=b}if(this._isCompound){var r=this._children[e];if(r){return o.A(r)}}else if(e===b){return this.nodes()}else if(this.hasNode(e)){return[]}}predecessors(e){var r=this._preds[e];if(r){return o.A(r)}}successors(e){var r=this._sucs[e];if(r){return o.A(r)}}neighbors(e){var r=this.predecessors(e);if(r){return g(r,this.successors(e))}}isLeaf(e){var r;if(this.isDirected()){r=this.successors(e)}else{r=this.neighbors(e)}return r.length===0}filterNodes(e){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var n=this;s.A(this._nodes,(function(n,t){if(e(t)){r.setNode(t,n)}}));s.A(this._edgeObjs,(function(e){if(r.hasNode(e.v)&&r.hasNode(e.w)){r.setEdge(e,n.edge(e))}}));var t={};function i(e){var o=n.parent(e);if(o===undefined||r.hasNode(o)){t[e]=o;return o}else if(o in t){return t[o]}else{return i(o)}}if(this._isCompound){s.A(r.nodes(),(function(e){r.setParent(e,i(e))}))}return r}setDefaultEdgeLabel(e){if(!i.A(e)){e=t.A(e)}this._defaultEdgeLabelFn=e;return this}edgeCount(){return this._edgeCount}edges(){return p.A(this._edgeObjs)}setPath(e,r){var n=this;var t=arguments;A.A(e,(function(e,i){if(t.length>1){n.setEdge(e,i,r)}else{n.setEdge(e,i)}return i}));return this}setEdge(){var e,r,n,t;var i=false;var o=arguments[0];if(typeof o==="object"&&o!==null&&"v"in o){e=o.v;r=o.w;n=o.name;if(arguments.length===2){t=arguments[1];i=true}}else{e=o;r=arguments[1];n=arguments[3];if(arguments.length>2){t=arguments[2];i=true}}e=""+e;r=""+r;if(!d.A(n)){n=""+n}var a=O(this._isDirected,e,r,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,a)){if(i){this._edgeLabels[a]=t}return this}if(!d.A(n)&&!this._isMultigraph){throw new Error("Cannot set a named edge when isMultigraph = false")}this.setNode(e);this.setNode(r);this._edgeLabels[a]=i?t:this._defaultEdgeLabelFn(e,r,n);var u=k(this._isDirected,e,r,n);e=u.v;r=u.w;Object.freeze(u);this._edgeObjs[a]=u;_(this._preds[r],e);_(this._sucs[e],r);this._in[r][a]=u;this._out[e][a]=u;this._edgeCount++;return this}edge(e,r,n){var t=arguments.length===1?N(this._isDirected,arguments[0]):O(this._isDirected,e,r,n);return this._edgeLabels[t]}hasEdge(e,r,n){var t=arguments.length===1?N(this._isDirected,arguments[0]):O(this._isDirected,e,r,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,t)}removeEdge(e,r,n){var t=arguments.length===1?N(this._isDirected,arguments[0]):O(this._isDirected,e,r,n);var i=this._edgeObjs[t];if(i){e=i.v;r=i.w;delete this._edgeLabels[t];delete this._edgeObjs[t];E(this._preds[r],e);E(this._sucs[e],r);delete this._in[r][t];delete this._out[e][t];this._edgeCount--}return this}inEdges(e,r){var n=this._in[e];if(n){var t=p.A(n);if(!r){return t}return a.A(t,(function(e){return e.v===r}))}}outEdges(e,r){var n=this._out[e];if(n){var t=p.A(n);if(!r){return t}return a.A(t,(function(e){return e.w===r}))}}nodeEdges(e,r){var n=this.inEdges(e,r);if(n){return n.concat(this.outEdges(e,r))}}}y.prototype._nodeCount=0;y.prototype._edgeCount=0;function _(e,r){if(e[r]){e[r]++}else{e[r]=1}}function E(e,r){if(! --e[r]){delete e[r]}}function O(e,r,n,t){var i=""+r;var o=""+n;if(!e&&i>o){var a=i;i=o;o=a}return i+m+o+m+(d.A(t)?w:t)}function k(e,r,n,t){var i=""+r;var o=""+n;if(!e&&i>o){var a=i;i=o;o=a}var u={v:i,w:o};if(t){u.name=t}return u}function N(e,r){return O(e,r.v,r.w,r.name)}},84416:(e,r,n)=>{n.d(r,{T:()=>t.T});var t=n(65791);const i="2.1.9-pre"},95852:(e,r,n)=>{n.d(r,{A:()=>o});var t=n(62579);function i(e,r,n){var i=-1,o=e.length;while(++i{n.d(r,{A:()=>i});function t(e,r){return e{n.d(r,{A:()=>a});var t=n(15912);var i=n(21585);function o(e,r){var n=-1,o=(0,i.A)(e)?Array(e.length):[];(0,t.A)(e,(function(e,t,i){o[++n]=r(e,t,i)}));return o}const a=o},44835:(e,r,n)=>{n.d(r,{A:()=>v});var t=n(22883);var i=n(16542);var o=n(65900);var a=n(78912);var u=n(85356);var s=n(43512);function d(e,r,n,t){if(!(0,u.A)(e)){return e}r=(0,o.A)(r,e);var d=-1,f=r.length,c=f-1,v=e;while(v!=null&&++d{n.d(r,{A:()=>f});var t=n(55881);var i=n(24461);var o=n(31943);var a=n(13839);var u=Object.prototype;var s=u.hasOwnProperty;var d=(0,t.A)((function(e,r){e=Object(e);var n=-1;var t=r.length;var d=t>2?r[2]:undefined;if(d&&(0,o.A)(r[0],r[1],d)){t=1}while(++n{n.d(r,{A:()=>l});var t=n(1121);var i=n(21585);var o=n(37947);function a(e){return function(r,n,a){var u=Object(r);if(!(0,i.A)(r)){var s=(0,t.A)(n,3);r=(0,o.A)(r);n=function(e){return s(u[e],e,u)}}var d=e(r,n,a);return d>-1?u[s?r[d]:d]:undefined}}const u=a;var s=n(97314);var d=n(29914);var f=Math.max;function c(e,r,n){var i=e==null?0:e.length;if(!i){return-1}var o=n==null?0:(0,d.A)(n);if(o<0){o=f(i+o,0)}return(0,s.A)(e,(0,t.A)(r,3),o)}const v=c;var h=u(v);const l=h},74033:(e,r,n)=>{n.d(r,{A:()=>o});var t=n(62040);function i(e){var r=e==null?0:e.length;return r?(0,t.A)(e,1):[]}const o=i},2850:(e,r,n)=>{n.d(r,{A:()=>d});var t=Object.prototype;var i=t.hasOwnProperty;function o(e,r){return e!=null&&i.call(e,r)}const a=o;var u=n(64491);function s(e,r){return e!=null&&(0,u.A)(e,r,a)}const d=s},86378:(e,r,n)=>{n.d(r,{A:()=>s});var t=n(64128);var i=n(39990);var o=n(53315);var a="[object String]";function u(e){return typeof e=="string"||!(0,i.A)(e)&&(0,o.A)(e)&&(0,t.A)(e)==a}const s=u},80359:(e,r,n)=>{n.d(r,{A:()=>i});function t(e){var r=e==null?0:e.length;return r?e[r-1]:undefined}const i=t},8937:(e,r,n)=>{n.d(r,{A:()=>s});var t=n(98519);var i=n(1121);var o=n(97457);var a=n(39990);function u(e,r){var n=(0,a.A)(e)?t.A:o.A;return n(e,(0,i.A)(r,3))}const s=u},963:(e,r,n)=>{n.d(r,{A:()=>u});var t=n(95852);var i=n(51135);var o=n(63077);function a(e){return e&&e.length?(0,t.A)(e,o.A,i.A):undefined}const u=a},52712:(e,r,n)=>{n.d(r,{A:()=>y});var t=/\s/;function i(e){var r=e.length;while(r--&&t.test(e.charAt(r))){}return r}const o=i;var a=/^\s+/;function u(e){return e?e.slice(0,o(e)+1).replace(a,""):e}const s=u;var d=n(85356);var f=n(62579);var c=0/0;var v=/^[-+]0x[0-9a-f]+$/i;var h=/^0b[01]+$/i;var l=/^0o[0-7]+$/i;var g=parseInt;function p(e){if(typeof e=="number"){return e}if((0,f.A)(e)){return c}if((0,d.A)(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=(0,d.A)(r)?r+"":r}if(typeof e!="string"){return e===0?e:+e}e=s(e);var n=h.test(e);return n||l.test(e)?g(e.slice(2),n?2:8):v.test(e)?c:+e}const A=p;var w=1/0,b=17976931348623157e292;function m(e){if(!e){return e===0?e:0}e=A(e);if(e===w||e===-w){var r=e<0?-1:1;return r*b}return e===e?e:0}const y=m},29914:(e,r,n)=>{n.d(r,{A:()=>o});var t=n(52712);function i(e){var r=(0,t.A)(e),n=r%1;return r===r?n?r-n:r:0}const o=i}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/227.4c50874f32ac408174fc.js b/share/jupyter/lab/static/227.4c50874f32ac408174fc.js new file mode 100644 index 0000000..1665615 --- /dev/null +++ b/share/jupyter/lab/static/227.4c50874f32ac408174fc.js @@ -0,0 +1,2 @@ +/*! For license information please see 227.4c50874f32ac408174fc.js.LICENSE.txt */ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[227],{69119:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0;e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;e.htmlCtrlEntityRegex=/&(newline|tab);/gi;e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;e.urlSchemeRegex=/^.+(:|:)/gim;e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;e.relativeFirstCharacters=[".","/"];e.BLANK_URL="about:blank"},16750:(t,e,r)=>{"use strict";var i;i={value:true};e.J=void 0;var a=r(69119);function n(t){return a.relativeFirstCharacters.indexOf(t[0])>-1}function o(t){var e=t.replace(a.ctrlCharactersRegex,"");return e.replace(a.htmlEntitiesRegex,(function(t,e){return String.fromCharCode(e)}))}function s(t){return URL.canParse(t)}function l(t){try{return decodeURIComponent(t)}catch(e){return t}}function c(t){if(!t){return a.BLANK_URL}var e;var r=l(t.trim());do{r=o(r).replace(a.htmlCtrlEntityRegex,"").replace(a.ctrlCharactersRegex,"").replace(a.whitespaceEscapeCharsRegex,"").trim();r=l(r);e=r.match(a.ctrlCharactersRegex)||r.match(a.htmlEntitiesRegex)||r.match(a.htmlCtrlEntityRegex)||r.match(a.whitespaceEscapeCharsRegex)}while(e&&e.length>0);var i=r;if(!i){return a.BLANK_URL}if(n(i)){return i}var c=i.trimStart();var h=c.match(a.urlSchemeRegex);if(!h){return i}var d=h[0].toLowerCase().trim();if(a.invalidProtocolRegex.test(d)){return a.BLANK_URL}var u=c.replace(/\\/g,"/");if(d==="mailto:"||d.includes("://")){return u}if(d==="http:"||d==="https:"){if(!s(u)){return a.BLANK_URL}var f=new URL(u);f.protocol=f.protocol.toLowerCase();f.hostname=f.hostname.toLowerCase();return f.toString()}return u}e.J=c},84997:(t,e,r)=>{"use strict";r.d(e,{A:()=>ot});const{entries:i,setPrototypeOf:a,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:s}=Object;let{freeze:l,seal:c,create:h}=Object;let{apply:d,construct:u}=typeof Reflect!=="undefined"&&Reflect;if(!l){l=function t(e){return e}}if(!c){c=function t(e){return e}}if(!d){d=function t(e,r,i){return e.apply(r,i)}}if(!u){u=function t(e,r){return new e(...r)}}const f=B(Array.prototype.forEach);const p=B(Array.prototype.lastIndexOf);const g=B(Array.prototype.pop);const m=B(Array.prototype.push);const y=B(Array.prototype.splice);const b=B(String.prototype.toLowerCase);const x=B(String.prototype.toString);const C=B(String.prototype.match);const v=B(String.prototype.replace);const k=B(String.prototype.indexOf);const w=B(String.prototype.trim);const S=B(Object.prototype.hasOwnProperty);const A=B(RegExp.prototype.test);const T=L(TypeError);function B(t){return function(e){if(e instanceof RegExp){e.lastIndex=0}for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a2&&arguments[2]!==undefined?arguments[2]:b;if(a){a(t,null)}let i=e.length;while(i--){let a=e[i];if(typeof a==="string"){const t=r(a);if(t!==a){if(!n(e)){e[i]=t}a=t}}t[a]=true}return t}function F(t){for(let e=0;e/gm);const G=c(/\$\{[\w\W]*/gm);const U=c(/^data-[\-\w.\u00B7-\uFFFF]+$/);const Y=c(/^aria-[\-\w]+$/);const X=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i);const V=c(/^(?:\w+script|data):/i);const Z=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g);const Q=c(/^html$/i);const J=c(/^[a-z][.\w]*(-[.\w]+)+$/i);var tt=Object.freeze({__proto__:null,ARIA_ATTR:Y,ATTR_WHITESPACE:Z,CUSTOM_ELEMENT:J,DATA_ATTR:U,DOCTYPE_NAME:Q,ERB_EXPR:H,IS_ALLOWED_URI:X,IS_SCRIPT_OR_DATA:V,MUSTACHE_EXPR:j,TMPLIT_EXPR:G});const et={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12};const rt=function t(){return typeof window==="undefined"?null:window};const it=function t(e,r){if(typeof e!=="object"||typeof e.createPolicy!=="function"){return null}let i=null;const a="data-tt-policy-suffix";if(r&&r.hasAttribute(a)){i=r.getAttribute(a)}const n="dompurify"+(i?"#"+i:"");try{return e.createPolicy(n,{createHTML(t){return t},createScriptURL(t){return t}})}catch(o){console.warn("TrustedTypes policy "+n+" could not be created.");return null}};const at=function t(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function nt(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:rt();const e=t=>nt(t);e.version="3.2.6";e.removed=[];if(!t||!t.document||t.document.nodeType!==et.document||!t.Element){e.isSupported=false;return e}let{document:r}=t;const a=r;const n=a.currentScript;const{DocumentFragment:o,HTMLTemplateElement:s,Node:c,Element:d,NodeFilter:u,NamedNodeMap:B=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:L,DOMParser:F,trustedTypes:j}=t;const H=d.prototype;const G=$(H,"cloneNode");const U=$(H,"remove");const Y=$(H,"nextSibling");const V=$(H,"childNodes");const Z=$(H,"parentNode");if(typeof s==="function"){const t=r.createElement("template");if(t.content&&t.content.ownerDocument){r=t.content.ownerDocument}}let J;let ot="";const{implementation:st,createNodeIterator:lt,createDocumentFragment:ct,getElementsByTagName:ht}=r;const{importNode:dt}=a;let ut=at();e.isSupported=typeof i==="function"&&typeof Z==="function"&&st&&st.createHTMLDocument!==undefined;const{MUSTACHE_EXPR:ft,ERB_EXPR:pt,TMPLIT_EXPR:gt,DATA_ATTR:mt,ARIA_ATTR:yt,IS_SCRIPT_OR_DATA:bt,ATTR_WHITESPACE:xt,CUSTOM_ELEMENT:Ct}=tt;let{IS_ALLOWED_URI:vt}=tt;let kt=null;const wt=M({},[...E,...O,...D,...I,...P]);let St=null;const At=M({},[...q,...z,...N,...W]);let Tt=Object.seal(h(null,{tagNameCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeNameCheck:{writable:true,configurable:false,enumerable:true,value:null},allowCustomizedBuiltInElements:{writable:true,configurable:false,enumerable:true,value:false}}));let Bt=null;let Lt=null;let Mt=true;let Ft=true;let _t=false;let $t=true;let Et=false;let Ot=true;let Dt=false;let Kt=false;let It=false;let Rt=false;let Pt=false;let qt=false;let zt=true;let Nt=false;const Wt="user-content-";let jt=true;let Ht=false;let Gt={};let Ut=null;const Yt=M({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Xt=null;const Vt=M({},["audio","video","img","source","image","track"]);let Zt=null;const Qt=M({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]);const Jt="http://www.w3.org/1998/Math/MathML";const te="http://www.w3.org/2000/svg";const ee="http://www.w3.org/1999/xhtml";let re=ee;let ie=false;let ae=null;const ne=M({},[Jt,te,ee],x);let oe=M({},["mi","mo","mn","ms","mtext"]);let se=M({},["annotation-xml"]);const le=M({},["title","style","font","a","script"]);let ce=null;const he=["application/xhtml+xml","text/html"];const de="text/html";let ue=null;let fe=null;const pe=r.createElement("form");const ge=function t(e){return e instanceof RegExp||e instanceof Function};const me=function t(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(fe&&fe===e){return}if(!e||typeof e!=="object"){e={}}e=_(e);ce=he.indexOf(e.PARSER_MEDIA_TYPE)===-1?de:e.PARSER_MEDIA_TYPE;ue=ce==="application/xhtml+xml"?x:b;kt=S(e,"ALLOWED_TAGS")?M({},e.ALLOWED_TAGS,ue):wt;St=S(e,"ALLOWED_ATTR")?M({},e.ALLOWED_ATTR,ue):At;ae=S(e,"ALLOWED_NAMESPACES")?M({},e.ALLOWED_NAMESPACES,x):ne;Zt=S(e,"ADD_URI_SAFE_ATTR")?M(_(Qt),e.ADD_URI_SAFE_ATTR,ue):Qt;Xt=S(e,"ADD_DATA_URI_TAGS")?M(_(Vt),e.ADD_DATA_URI_TAGS,ue):Vt;Ut=S(e,"FORBID_CONTENTS")?M({},e.FORBID_CONTENTS,ue):Yt;Bt=S(e,"FORBID_TAGS")?M({},e.FORBID_TAGS,ue):_({});Lt=S(e,"FORBID_ATTR")?M({},e.FORBID_ATTR,ue):_({});Gt=S(e,"USE_PROFILES")?e.USE_PROFILES:false;Mt=e.ALLOW_ARIA_ATTR!==false;Ft=e.ALLOW_DATA_ATTR!==false;_t=e.ALLOW_UNKNOWN_PROTOCOLS||false;$t=e.ALLOW_SELF_CLOSE_IN_ATTR!==false;Et=e.SAFE_FOR_TEMPLATES||false;Ot=e.SAFE_FOR_XML!==false;Dt=e.WHOLE_DOCUMENT||false;Rt=e.RETURN_DOM||false;Pt=e.RETURN_DOM_FRAGMENT||false;qt=e.RETURN_TRUSTED_TYPE||false;It=e.FORCE_BODY||false;zt=e.SANITIZE_DOM!==false;Nt=e.SANITIZE_NAMED_PROPS||false;jt=e.KEEP_CONTENT!==false;Ht=e.IN_PLACE||false;vt=e.ALLOWED_URI_REGEXP||X;re=e.NAMESPACE||ee;oe=e.MATHML_TEXT_INTEGRATION_POINTS||oe;se=e.HTML_INTEGRATION_POINTS||se;Tt=e.CUSTOM_ELEMENT_HANDLING||{};if(e.CUSTOM_ELEMENT_HANDLING&&ge(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)){Tt.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck}if(e.CUSTOM_ELEMENT_HANDLING&&ge(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)){Tt.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck}if(e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==="boolean"){Tt.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements}if(Et){Ft=false}if(Pt){Rt=true}if(Gt){kt=M({},P);St=[];if(Gt.html===true){M(kt,E);M(St,q)}if(Gt.svg===true){M(kt,O);M(St,z);M(St,W)}if(Gt.svgFilters===true){M(kt,D);M(St,z);M(St,W)}if(Gt.mathMl===true){M(kt,I);M(St,N);M(St,W)}}if(e.ADD_TAGS){if(kt===wt){kt=_(kt)}M(kt,e.ADD_TAGS,ue)}if(e.ADD_ATTR){if(St===At){St=_(St)}M(St,e.ADD_ATTR,ue)}if(e.ADD_URI_SAFE_ATTR){M(Zt,e.ADD_URI_SAFE_ATTR,ue)}if(e.FORBID_CONTENTS){if(Ut===Yt){Ut=_(Ut)}M(Ut,e.FORBID_CONTENTS,ue)}if(jt){kt["#text"]=true}if(Dt){M(kt,["html","head","body"])}if(kt.table){M(kt,["tbody"]);delete Bt.tbody}if(e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=="function"){throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.')}if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=="function"){throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.')}J=e.TRUSTED_TYPES_POLICY;ot=J.createHTML("")}else{if(J===undefined){J=it(j,n)}if(J!==null&&typeof ot==="string"){ot=J.createHTML("")}}if(l){l(e)}fe=e};const ye=M({},[...O,...D,...K]);const be=M({},[...I,...R]);const xe=function t(e){let r=Z(e);if(!r||!r.tagName){r={namespaceURI:re,tagName:"template"}}const i=b(e.tagName);const a=b(r.tagName);if(!ae[e.namespaceURI]){return false}if(e.namespaceURI===te){if(r.namespaceURI===ee){return i==="svg"}if(r.namespaceURI===Jt){return i==="svg"&&(a==="annotation-xml"||oe[a])}return Boolean(ye[i])}if(e.namespaceURI===Jt){if(r.namespaceURI===ee){return i==="math"}if(r.namespaceURI===te){return i==="math"&&se[a]}return Boolean(be[i])}if(e.namespaceURI===ee){if(r.namespaceURI===te&&!se[a]){return false}if(r.namespaceURI===Jt&&!oe[a]){return false}return!be[i]&&(le[i]||!ye[i])}if(ce==="application/xhtml+xml"&&ae[e.namespaceURI]){return true}return false};const Ce=function t(r){m(e.removed,{element:r});try{Z(r).removeChild(r)}catch(i){U(r)}};const ve=function t(r,i){try{m(e.removed,{attribute:i.getAttributeNode(r),from:i})}catch(a){m(e.removed,{attribute:null,from:i})}i.removeAttribute(r);if(r==="is"){if(Rt||Pt){try{Ce(i)}catch(a){}}else{try{i.setAttribute(r,"")}catch(a){}}}};const ke=function t(e){let i=null;let a=null;if(It){e=""+e}else{const t=C(e,/^[\r\n\t ]+/);a=t&&t[0]}if(ce==="application/xhtml+xml"&&re===ee){e=''+e+""}const n=J?J.createHTML(e):e;if(re===ee){try{i=(new F).parseFromString(n,ce)}catch(s){}}if(!i||!i.documentElement){i=st.createDocument(re,"template",null);try{i.documentElement.innerHTML=ie?ot:n}catch(s){}}const o=i.body||i.documentElement;if(e&&a){o.insertBefore(r.createTextNode(a),o.childNodes[0]||null)}if(re===ee){return ht.call(i,Dt?"html":"body")[0]}return Dt?i.documentElement:o};const we=function t(e){return lt.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)};const Se=function t(e){return e instanceof L&&(typeof e.nodeName!=="string"||typeof e.textContent!=="string"||typeof e.removeChild!=="function"||!(e.attributes instanceof B)||typeof e.removeAttribute!=="function"||typeof e.setAttribute!=="function"||typeof e.namespaceURI!=="string"||typeof e.insertBefore!=="function"||typeof e.hasChildNodes!=="function")};const Ae=function t(e){return typeof c==="function"&&e instanceof c};function Te(t,r,i){f(t,(t=>{t.call(e,r,i,fe)}))}const Be=function t(r){let i=null;Te(ut.beforeSanitizeElements,r,null);if(Se(r)){Ce(r);return true}const a=ue(r.nodeName);Te(ut.uponSanitizeElement,r,{tagName:a,allowedTags:kt});if(Ot&&r.hasChildNodes()&&!Ae(r.firstElementChild)&&A(/<[/\w!]/g,r.innerHTML)&&A(/<[/\w!]/g,r.textContent)){Ce(r);return true}if(r.nodeType===et.progressingInstruction){Ce(r);return true}if(Ot&&r.nodeType===et.comment&&A(/<[/\w]/g,r.data)){Ce(r);return true}if(!kt[a]||Bt[a]){if(!Bt[a]&&Me(a)){if(Tt.tagNameCheck instanceof RegExp&&A(Tt.tagNameCheck,a)){return false}if(Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(a)){return false}}if(jt&&!Ut[a]){const t=Z(r)||r.parentNode;const e=V(r)||r.childNodes;if(e&&t){const i=e.length;for(let a=i-1;a>=0;--a){const i=G(e[a],true);i.__removalCount=(r.__removalCount||0)+1;t.insertBefore(i,Y(r))}}}Ce(r);return true}if(r instanceof d&&!xe(r)){Ce(r);return true}if((a==="noscript"||a==="noembed"||a==="noframes")&&A(/<\/no(script|embed|frames)/i,r.innerHTML)){Ce(r);return true}if(Et&&r.nodeType===et.text){i=r.textContent;f([ft,pt,gt],(t=>{i=v(i,t," ")}));if(r.textContent!==i){m(e.removed,{element:r.cloneNode()});r.textContent=i}}Te(ut.afterSanitizeElements,r,null);return false};const Le=function t(e,i,a){if(zt&&(i==="id"||i==="name")&&(a in r||a in pe)){return false}if(Ft&&!Lt[i]&&A(mt,i));else if(Mt&&A(yt,i));else if(!St[i]||Lt[i]){if(Me(e)&&(Tt.tagNameCheck instanceof RegExp&&A(Tt.tagNameCheck,e)||Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(e))&&(Tt.attributeNameCheck instanceof RegExp&&A(Tt.attributeNameCheck,i)||Tt.attributeNameCheck instanceof Function&&Tt.attributeNameCheck(i))||i==="is"&&Tt.allowCustomizedBuiltInElements&&(Tt.tagNameCheck instanceof RegExp&&A(Tt.tagNameCheck,a)||Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(a)));else{return false}}else if(Zt[i]);else if(A(vt,v(a,xt,"")));else if((i==="src"||i==="xlink:href"||i==="href")&&e!=="script"&&k(a,"data:")===0&&Xt[e]);else if(_t&&!A(bt,v(a,xt,"")));else if(a){return false}else;return true};const Me=function t(e){return e!=="annotation-xml"&&C(e,Ct)};const Fe=function t(r){Te(ut.beforeSanitizeAttributes,r,null);const{attributes:i}=r;if(!i||Se(r)){return}const a={attrName:"",attrValue:"",keepAttr:true,allowedAttributes:St,forceKeepAttr:undefined};let n=i.length;while(n--){const t=i[n];const{name:s,namespaceURI:l,value:c}=t;const h=ue(s);const d=c;let u=s==="value"?d:w(d);a.attrName=h;a.attrValue=u;a.keepAttr=true;a.forceKeepAttr=undefined;Te(ut.uponSanitizeAttribute,r,a);u=a.attrValue;if(Nt&&(h==="id"||h==="name")){ve(s,r);u=Wt+u}if(Ot&&A(/((--!?|])>)|<\/(style|title)/i,u)){ve(s,r);continue}if(a.forceKeepAttr){continue}if(!a.keepAttr){ve(s,r);continue}if(!$t&&A(/\/>/i,u)){ve(s,r);continue}if(Et){f([ft,pt,gt],(t=>{u=v(u,t," ")}))}const p=ue(r.nodeName);if(!Le(p,h,u)){ve(s,r);continue}if(J&&typeof j==="object"&&typeof j.getAttributeType==="function"){if(l);else{switch(j.getAttributeType(p,h)){case"TrustedHTML":{u=J.createHTML(u);break}case"TrustedScriptURL":{u=J.createScriptURL(u);break}}}}if(u!==d){try{if(l){r.setAttributeNS(l,s,u)}else{r.setAttribute(s,u)}if(Se(r)){Ce(r)}else{g(e.removed)}}catch(o){ve(s,r)}}}Te(ut.afterSanitizeAttributes,r,null)};const _e=function t(e){let r=null;const i=we(e);Te(ut.beforeSanitizeShadowDOM,e,null);while(r=i.nextNode()){Te(ut.uponSanitizeShadowNode,r,null);Be(r);Fe(r);if(r.content instanceof o){t(r.content)}}Te(ut.afterSanitizeShadowDOM,e,null)};e.sanitize=function(t){let r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let i=null;let n=null;let s=null;let l=null;ie=!t;if(ie){t="\x3c!--\x3e"}if(typeof t!=="string"&&!Ae(t)){if(typeof t.toString==="function"){t=t.toString();if(typeof t!=="string"){throw T("dirty is not a string, aborting")}}else{throw T("toString is not a function")}}if(!e.isSupported){return t}if(!Kt){me(r)}e.removed=[];if(typeof t==="string"){Ht=false}if(Ht){if(t.nodeName){const e=ue(t.nodeName);if(!kt[e]||Bt[e]){throw T("root node is forbidden and cannot be sanitized in-place")}}}else if(t instanceof c){i=ke("\x3c!----\x3e");n=i.ownerDocument.importNode(t,true);if(n.nodeType===et.element&&n.nodeName==="BODY"){i=n}else if(n.nodeName==="HTML"){i=n}else{i.appendChild(n)}}else{if(!Rt&&!Et&&!Dt&&t.indexOf("<")===-1){return J&&qt?J.createHTML(t):t}i=ke(t);if(!i){return Rt?null:qt?ot:""}}if(i&&It){Ce(i.firstChild)}const h=we(Ht?t:i);while(s=h.nextNode()){Be(s);Fe(s);if(s.content instanceof o){_e(s.content)}}if(Ht){return t}if(Rt){if(Pt){l=ct.call(i.ownerDocument);while(i.firstChild){l.appendChild(i.firstChild)}}else{l=i}if(St.shadowroot||St.shadowrootmode){l=dt.call(a,l,true)}return l}let d=Dt?i.outerHTML:i.innerHTML;if(Dt&&kt["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&A(Q,i.ownerDocument.doctype.name)){d="\n"+d}if(Et){f([ft,pt,gt],(t=>{d=v(d,t," ")}))}return J&&qt?J.createHTML(d):d};e.setConfig=function(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};me(t);Kt=true};e.clearConfig=function(){fe=null;Kt=false};e.isValidAttribute=function(t,e,r){if(!fe){me({})}const i=ue(t);const a=ue(e);return Le(i,a,r)};e.addHook=function(t,e){if(typeof e!=="function"){return}m(ut[t],e)};e.removeHook=function(t,e){if(e!==undefined){const r=p(ut[t],e);return r===-1?undefined:y(ut[t],r,1)[0]}return g(ut[t])};e.removeHooks=function(t){ut[t]=[]};e.removeAllHooks=function(){ut=at()};return e}var ot=nt()},25e3:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var i=r(57991);var a=r(59773);class n{constructor(){this.type=a.Z.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=a.Z.ALL}is(t){return this.type===t}}const o=n;class s{constructor(t,e){this.color=e;this.changed=false;this.data=t;this.type=new o}set(t,e){this.color=e;this.changed=false;this.data=t;this.type.type=a.Z.ALL;return this}_ensureHSL(){const t=this.data;const{h:e,s:r,l:a}=t;if(e===undefined)t.h=i.A.channel.rgb2hsl(t,"h");if(r===undefined)t.s=i.A.channel.rgb2hsl(t,"s");if(a===undefined)t.l=i.A.channel.rgb2hsl(t,"l")}_ensureRGB(){const t=this.data;const{r:e,g:r,b:a}=t;if(e===undefined)t.r=i.A.channel.hsl2rgb(t,"r");if(r===undefined)t.g=i.A.channel.hsl2rgb(t,"g");if(a===undefined)t.b=i.A.channel.hsl2rgb(t,"b")}get r(){const t=this.data;const e=t.r;if(!this.type.is(a.Z.HSL)&&e!==undefined)return e;this._ensureHSL();return i.A.channel.hsl2rgb(t,"r")}get g(){const t=this.data;const e=t.g;if(!this.type.is(a.Z.HSL)&&e!==undefined)return e;this._ensureHSL();return i.A.channel.hsl2rgb(t,"g")}get b(){const t=this.data;const e=t.b;if(!this.type.is(a.Z.HSL)&&e!==undefined)return e;this._ensureHSL();return i.A.channel.hsl2rgb(t,"b")}get h(){const t=this.data;const e=t.h;if(!this.type.is(a.Z.RGB)&&e!==undefined)return e;this._ensureRGB();return i.A.channel.rgb2hsl(t,"h")}get s(){const t=this.data;const e=t.s;if(!this.type.is(a.Z.RGB)&&e!==undefined)return e;this._ensureRGB();return i.A.channel.rgb2hsl(t,"s")}get l(){const t=this.data;const e=t.l;if(!this.type.is(a.Z.RGB)&&e!==undefined)return e;this._ensureRGB();return i.A.channel.rgb2hsl(t,"l")}get a(){return this.data.a}set r(t){this.type.set(a.Z.RGB);this.changed=true;this.data.r=t}set g(t){this.type.set(a.Z.RGB);this.changed=true;this.data.g=t}set b(t){this.type.set(a.Z.RGB);this.changed=true;this.data.b=t}set h(t){this.type.set(a.Z.HSL);this.changed=true;this.data.h=t}set s(t){this.type.set(a.Z.HSL);this.changed=true;this.data.s=t}set l(t){this.type.set(a.Z.HSL);this.changed=true;this.data.l=t}set a(t){this.changed=true;this.data.a=t}}const l=s;const c=new l({r:0,g:0,b:0,a:0},"transparent");const h=c},63221:(t,e,r)=>{"use strict";r.d(e,{A:()=>g});var i=r(25e3);var a=r(59773);const n={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(n.re);if(!e)return;const r=e[1];const a=parseInt(r,16);const o=r.length;const s=o%4===0;const l=o>4;const c=l?1:17;const h=l?8:4;const d=s?0:-1;const u=l?255:15;return i.A.set({r:(a>>h*(d+3)&u)*c,g:(a>>h*(d+2)&u)*c,b:(a>>h*(d+1)&u)*c,a:s?(a&u)*c/255:1},t)},stringify:t=>{const{r:e,g:r,b:i,a:n}=t;if(n<1){return`#${a.Y[Math.round(e)]}${a.Y[Math.round(r)]}${a.Y[Math.round(i)]}${a.Y[Math.round(n*255)]}`}else{return`#${a.Y[Math.round(e)]}${a.Y[Math.round(r)]}${a.Y[Math.round(i)]}`}}};const o=n;var s=r(57991);const l={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(l.hueRe);if(e){const[,t,r]=e;switch(r){case"grad":return s.A.channel.clamp.h(parseFloat(t)*.9);case"rad":return s.A.channel.clamp.h(parseFloat(t)*180/Math.PI);case"turn":return s.A.channel.clamp.h(parseFloat(t)*360)}}return s.A.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const r=t.match(l.re);if(!r)return;const[,a,n,o,c,h]=r;return i.A.set({h:l._hue2deg(a),s:s.A.channel.clamp.s(parseFloat(n)),l:s.A.channel.clamp.l(parseFloat(o)),a:c?s.A.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{h:e,s:r,l:i,a}=t;if(a<1){return`hsla(${s.A.lang.round(e)}, ${s.A.lang.round(r)}%, ${s.A.lang.round(i)}%, ${a})`}else{return`hsl(${s.A.lang.round(e)}, ${s.A.lang.round(r)}%, ${s.A.lang.round(i)}%)`}}};const c=l;const h={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=h.colors[t];if(!e)return;return o.parse(e)},stringify:t=>{const e=o.stringify(t);for(const r in h.colors){if(h.colors[r]===e)return r}return}};const d=h;const u={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const r=t.match(u.re);if(!r)return;const[,a,n,o,l,c,h,d,f]=r;return i.A.set({r:s.A.channel.clamp.r(n?parseFloat(a)*2.55:parseFloat(a)),g:s.A.channel.clamp.g(l?parseFloat(o)*2.55:parseFloat(o)),b:s.A.channel.clamp.b(h?parseFloat(c)*2.55:parseFloat(c)),a:d?s.A.channel.clamp.a(f?parseFloat(d)/100:parseFloat(d)):1},t)},stringify:t=>{const{r:e,g:r,b:i,a}=t;if(a<1){return`rgba(${s.A.lang.round(e)}, ${s.A.lang.round(r)}, ${s.A.lang.round(i)}, ${s.A.lang.round(a)})`}else{return`rgb(${s.A.lang.round(e)}, ${s.A.lang.round(r)}, ${s.A.lang.round(i)})`}}};const f=u;const p={format:{keyword:d,hex:o,rgb:f,rgba:f,hsl:c,hsla:c},parse:t=>{if(typeof t!=="string")return t;const e=o.parse(t)||f.parse(t)||c.parse(t)||d.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>{if(!t.changed&&t.color)return t.color;if(t.type.is(a.Z.HSL)||t.data.r===undefined){return c.stringify(t)}else if(t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)){return f.stringify(t)}else{return o.stringify(t)}}};const g=p},59773:(t,e,r)=>{"use strict";r.d(e,{Y:()=>a,Z:()=>n});var i=r(57991);const a={};for(let o=0;o<=255;o++)a[o]=i.A.unit.dec2hex(o);const n={ALL:0,RGB:1,HSL:2}},42198:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=r(57991);var a=r(63221);const n=(t,e,r)=>{const n=a.A.parse(t);const o=n[e];const s=i.A.channel.clamp[e](o+r);if(o!==s)n[e]=s;return a.A.stringify(n)};const o=n},69745:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=r(57991);var a=r(63221);const n=(t,e)=>{const r=a.A.parse(t);for(const a in e){r[a]=i.A.channel.clamp[a](e[a])}return a.A.stringify(r)};const o=n},48750:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var i=r(42198);const a=(t,e)=>(0,i.A)(t,"l",-e);const n=a},63170:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var i=r(57991);var a=r(63221);const n=t=>{const{r:e,g:r,b:n}=a.A.parse(t);const o=.2126*i.A.channel.toLinear(e)+.7152*i.A.channel.toLinear(r)+.0722*i.A.channel.toLinear(n);return i.A.lang.round(o)};const o=n;const s=t=>o(t)>=.5;const l=s;const c=t=>!l(t);const h=c},77470:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var i=r(42198);const a=(t,e)=>(0,i.A)(t,"l",e);const n=a},3635:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var i=r(57991);var a=r(25e3);var n=r(63221);var o=r(69745);const s=(t,e,r=0,s=1)=>{if(typeof t!=="number")return(0,o.A)(t,{a:e});const l=a.A.set({r:i.A.channel.clamp.r(t),g:i.A.channel.clamp.g(e),b:i.A.channel.clamp.b(r),a:i.A.channel.clamp.a(s)});return n.A.stringify(l)};const l=s},57991:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});const i={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>{if(r<0)r+=1;if(r>1)r-=1;if(r<1/6)return t+(e-t)*6*r;if(r<1/2)return e;if(r<2/3)return t+(e-t)*(2/3-r)*6;return t},hsl2rgb:({h:t,s:e,l:r},a)=>{if(!e)return r*2.55;t/=360;e/=100;r/=100;const n=r<.5?r*(1+e):r+e-r*e;const o=2*r-n;switch(a){case"r":return i.hue2rgb(o,n,t+1/3)*255;case"g":return i.hue2rgb(o,n,t)*255;case"b":return i.hue2rgb(o,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:r},i)=>{t/=255;e/=255;r/=255;const a=Math.max(t,e,r);const n=Math.min(t,e,r);const o=(a+n)/2;if(i==="l")return o*100;if(a===n)return 0;const s=a-n;const l=o>.5?s/(2-a-n):s/(a+n);if(i==="s")return l*100;switch(a){case t:return((e-r)/s+(e{if(e>r)return Math.min(e,Math.max(r,t));return Math.min(r,Math.max(e,t))},round:t=>Math.round(t*1e10)/1e10};const o=n;const s={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}};const l=s;const c={channel:a,lang:o,unit:l};const h=c},54951:(t,e,r)=>{"use strict";r.d(e,{A:()=>x});function i(){this.__data__=[];this.size=0}const a=i;var n=r(24461);function o(t,e){var r=t.length;while(r--){if((0,n.A)(t[r][0],e)){return r}}return-1}const s=o;var l=Array.prototype;var c=l.splice;function h(t){var e=this.__data__,r=s(e,t);if(r<0){return false}var i=e.length-1;if(r==i){e.pop()}else{c.call(e,r,1)}--this.size;return true}const d=h;function u(t){var e=this.__data__,r=s(e,t);return r<0?undefined:e[r][1]}const f=u;function p(t){return s(this.__data__,t)>-1}const g=p;function m(t,e){var r=this.__data__,i=s(r,t);if(i<0){++this.size;r.push([t,e])}else{r[i][1]=e}return this}const y=m;function b(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e{"use strict";r.d(e,{A:()=>o});var i=r(39023);var a=r(24606);var n=(0,i.A)(a.A,"Map");const o=n},9883:(t,e,r)=>{"use strict";r.d(e,{A:()=>z});var i=r(39023);var a=(0,i.A)(Object,"create");const n=a;function o(){this.__data__=n?n(null):{};this.size=0}const s=o;function l(t){var e=this.has(t)&&delete this.__data__[t];this.size-=e?1:0;return e}const c=l;var h="__lodash_hash_undefined__";var d=Object.prototype;var u=d.hasOwnProperty;function f(t){var e=this.__data__;if(n){var r=e[t];return r===h?undefined:r}return u.call(e,t)?e[t]:undefined}const p=f;var g=Object.prototype;var m=g.hasOwnProperty;function y(t){var e=this.__data__;return n?e[t]!==undefined:m.call(e,t)}const b=y;var x="__lodash_hash_undefined__";function C(t,e){var r=this.__data__;this.size+=this.has(t)?0:1;r[t]=n&&e===undefined?x:e;return this}const v=C;function k(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e{"use strict";r.d(e,{A:()=>o});var i=r(39023);var a=r(24606);var n=(0,i.A)(a.A,"Set");const o=n},28478:(t,e,r)=>{"use strict";r.d(e,{A:()=>b});var i=r(54951);function a(){this.__data__=new i.A;this.size=0}const n=a;function o(t){var e=this.__data__,r=e["delete"](t);this.size=e.size;return r}const s=o;function l(t){return this.__data__.get(t)}const c=l;function h(t){return this.__data__.has(t)}const d=h;var u=r(51482);var f=r(9883);var p=200;function g(t,e){var r=this.__data__;if(r instanceof i.A){var a=r.__data__;if(!u.A||a.length{"use strict";r.d(e,{A:()=>n});var i=r(24606);var a=i.A.Symbol;const n=a},92615:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var i=r(24606);var a=i.A.Uint8Array;const n=a},74578:(t,e,r)=>{"use strict";r.d(e,{A:()=>f});function i(t,e){var r=-1,i=Array(t);while(++r{"use strict";r.d(e,{A:()=>l});var i=r(48657);var a=r(24461);var n=Object.prototype;var o=n.hasOwnProperty;function s(t,e,r){var n=t[e];if(!(o.call(t,e)&&(0,a.A)(n,r))||r===undefined&&!(e in t)){(0,i.A)(t,e,r)}}const l=s},48657:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var i=r(51348);function a(t,e,r){if(e=="__proto__"&&i.A){(0,i.A)(t,e,{configurable:true,enumerable:true,value:r,writable:true})}else{t[e]=r}}const n=a},40283:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});function i(t){return function(e,r,i){var a=-1,n=Object(e),o=i(e),s=o.length;while(s--){var l=o[t?s:++a];if(r(n[l],l,n)===false){break}}return e}}const a=i;var n=a();const o=n},64128:(t,e,r)=>{"use strict";r.d(e,{A:()=>b});var i=r(38066);var a=Object.prototype;var n=a.hasOwnProperty;var o=a.toString;var s=i.A?i.A.toStringTag:undefined;function l(t){var e=n.call(t,s),r=t[s];try{t[s]=undefined;var i=true}catch(l){}var a=o.call(t);if(i){if(e){t[s]=r}else{delete t[s]}}return a}const c=l;var h=Object.prototype;var d=h.toString;function u(t){return d.call(t)}const f=u;var p="[object Null]",g="[object Undefined]";var m=i.A?i.A.toStringTag:undefined;function y(t){if(t==null){return t===undefined?g:p}return m&&m in Object(t)?c(t):f(t)}const b=y},30568:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var i=r(690);var a=r(24630);var n=(0,a.A)(Object.keys,Object);const o=n;var s=Object.prototype;var l=s.hasOwnProperty;function c(t){if(!(0,i.A)(t)){return o(t)}var e=[];for(var r in Object(t)){if(l.call(t,r)&&r!="constructor"){e.push(r)}}return e}const h=c},55881:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var i=r(63077);var a=r(27401);var n=r(4596);function o(t,e){return(0,n.A)((0,a.A)(t,e,i.A),t+"")}const s=o},26132:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});function i(t){return function(e){return t(e)}}const a=i},53458:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var i=r(92615);function a(t){var e=new t.constructor(t.byteLength);new i.A(e).set(new i.A(t));return e}const n=a},65963:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var i=r(24606);t=r.hmd(t);var a=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var n=a&&"object"=="object"&&t&&!t.nodeType&&t;var o=n&&n.exports===a;var s=o?i.A.Buffer:undefined,l=s?s.allocUnsafe:undefined;function c(t,e){if(e){return t.slice()}var r=t.length,i=l?l(r):new t.constructor(r);t.copy(i);return i}const h=c},93672:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var i=r(53458);function a(t,e){var r=e?(0,i.A)(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}const n=a},91810:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});function i(t,e){var r=-1,i=t.length;e||(e=Array(i));while(++r{"use strict";r.d(e,{A:()=>o});var i=r(16542);var a=r(48657);function n(t,e,r,n){var o=!r;r||(r={});var s=-1,l=e.length;while(++s{"use strict";r.d(e,{A:()=>o});var i=r(55881);var a=r(31943);function n(t){return(0,i.A)((function(e,r){var i=-1,n=r.length,o=n>1?r[n-1]:undefined,s=n>2?r[2]:undefined;o=t.length>3&&typeof o=="function"?(n--,o):undefined;if(s&&(0,a.A)(r[0],r[1],s)){o=n<3?undefined:o;n=1}e=Object(e);while(++i{"use strict";r.d(e,{A:()=>n});var i=r(39023);var a=function(){try{var t=(0,i.A)(Object,"defineProperty");t({},"",{});return t}catch(e){}}();const n=a},7767:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var i=typeof r.g=="object"&&r.g&&r.g.Object===Object&&r.g;const a=i},39023:(t,e,r)=>{"use strict";r.d(e,{A:()=>S});var i=r(58807);var a=r(24606);var n=a.A["__core-js_shared__"];const o=n;var s=function(){var t=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function l(t){return!!s&&s in t}const c=l;var h=r(85356);var d=r(62210);var u=/[\\^$.*+?()[\]{}|]/g;var f=/^\[object .+?Constructor\]$/;var p=Function.prototype,g=Object.prototype;var m=p.toString;var y=g.hasOwnProperty;var b=RegExp("^"+m.call(y).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function x(t){if(!(0,h.A)(t)||c(t)){return false}var e=(0,i.A)(t)?b:f;return e.test((0,d.A)(t))}const C=x;function v(t,e){return t==null?undefined:t[e]}const k=v;function w(t,e){var r=k(t,e);return C(r)?r:undefined}const S=w},86848:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var i=r(24630);var a=(0,i.A)(Object.getPrototypeOf,Object);const n=a},88753:(t,e,r)=>{"use strict";r.d(e,{A:()=>B});var i=r(39023);var a=r(24606);var n=(0,i.A)(a.A,"DataView");const o=n;var s=r(51482);var l=(0,i.A)(a.A,"Promise");const c=l;var h=r(88224);var d=(0,i.A)(a.A,"WeakMap");const u=d;var f=r(64128);var p=r(62210);var g="[object Map]",m="[object Object]",y="[object Promise]",b="[object Set]",x="[object WeakMap]";var C="[object DataView]";var v=(0,p.A)(o),k=(0,p.A)(s.A),w=(0,p.A)(c),S=(0,p.A)(h.A),A=(0,p.A)(u);var T=f.A;if(o&&T(new o(new ArrayBuffer(1)))!=C||s.A&&T(new s.A)!=g||c&&T(c.resolve())!=y||h.A&&T(new h.A)!=b||u&&T(new u)!=x){T=function(t){var e=(0,f.A)(t),r=e==m?t.constructor:undefined,i=r?(0,p.A)(r):"";if(i){switch(i){case v:return C;case k:return g;case w:return y;case S:return b;case A:return x}}return e}}const B=T},92768:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var i=r(85356);var a=Object.create;var n=function(){function t(){}return function(e){if(!(0,i.A)(e)){return{}}if(a){return a(e)}t.prototype=e;var r=new t;t.prototype=undefined;return r}}();const o=n;var s=r(86848);var l=r(690);function c(t){return typeof t.constructor=="function"&&!(0,l.A)(t)?o((0,s.A)(t)):{}}const h=c},78912:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=9007199254740991;var a=/^(?:0|[1-9]\d*)$/;function n(t,e){var r=typeof t;e=e==null?i:e;return!!e&&(r=="number"||r!="symbol"&&a.test(t))&&(t>-1&&t%1==0&&t{"use strict";r.d(e,{A:()=>l});var i=r(24461);var a=r(21585);var n=r(78912);var o=r(85356);function s(t,e,r){if(!(0,o.A)(r)){return false}var s=typeof e;if(s=="number"?(0,a.A)(r)&&(0,n.A)(e,r.length):s=="string"&&e in r){return(0,i.A)(r[e],t)}return false}const l=s},690:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var i=Object.prototype;function a(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||i;return t===r}const n=a},89986:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var i=r(7767);t=r.hmd(t);var a=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var n=a&&"object"=="object"&&t&&!t.nodeType&&t;var o=n&&n.exports===a;var s=o&&i.A.process;var l=function(){try{var t=n&&n.require&&n.require("util").types;if(t){return t}return s&&s.binding&&s.binding("util")}catch(e){}}();const c=l},24630:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});function i(t,e){return function(r){return t(e(r))}}const a=i},27401:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});function i(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}const a=i;var n=Math.max;function o(t,e,r){e=n(e===undefined?t.length-1:e,0);return function(){var i=arguments,o=-1,s=n(i.length-e,0),l=Array(s);while(++o{"use strict";r.d(e,{A:()=>o});var i=r(7767);var a=typeof self=="object"&&self&&self.Object===Object&&self;var n=i.A||a||Function("return this")();const o=n},4596:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var i=r(33659);var a=r(51348);var n=r(63077);var o=!a.A?n.A:function(t,e){return(0,a.A)(t,"toString",{configurable:true,enumerable:false,value:(0,i.A)(e),writable:true})};const s=o;var l=800,c=16;var h=Date.now;function d(t){var e=0,r=0;return function(){var i=h(),a=c-(i-r);r=i;if(a>0){if(++e>=l){return arguments[0]}}else{e=0}return t.apply(undefined,arguments)}}const u=d;var f=u(s);const p=f},62210:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=Function.prototype;var a=i.toString;function n(t){if(t!=null){try{return a.call(t)}catch(e){}try{return t+""}catch(e){}}return""}const o=n},33659:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});function i(t){return function(){return t}}const a=i},24461:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});function i(t,e){return t===e||t!==t&&e!==e}const a=i},63077:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});function i(t){return t}const a=i},71528:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var i=r(64128);var a=r(53315);var n="[object Arguments]";function o(t){return(0,a.A)(t)&&(0,i.A)(t)==n}const s=o;var l=Object.prototype;var c=l.hasOwnProperty;var h=l.propertyIsEnumerable;var d=s(function(){return arguments}())?s:function(t){return(0,a.A)(t)&&c.call(t,"callee")&&!h.call(t,"callee")};const u=d},39990:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var i=Array.isArray;const a=i},21585:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=r(58807);var a=r(43627);function n(t){return t!=null&&(0,a.A)(t.length)&&!(0,i.A)(t)}const o=n},10654:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=r(21585);var a=r(53315);function n(t){return(0,a.A)(t)&&(0,i.A)(t)}const o=n},50895:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var i=r(24606);function a(){return false}const n=a;t=r.hmd(t);var o=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var s=o&&"object"=="object"&&t&&!t.nodeType&&t;var l=s&&s.exports===o;var c=l?i.A.Buffer:undefined;var h=c?c.isBuffer:undefined;var d=h||n;const u=d},74650:(t,e,r)=>{"use strict";r.d(e,{A:()=>m});var i=r(30568);var a=r(88753);var n=r(71528);var o=r(39990);var s=r(21585);var l=r(50895);var c=r(690);var h=r(82818);var d="[object Map]",u="[object Set]";var f=Object.prototype;var p=f.hasOwnProperty;function g(t){if(t==null){return true}if((0,s.A)(t)&&((0,o.A)(t)||typeof t=="string"||typeof t.splice=="function"||(0,l.A)(t)||(0,h.A)(t)||(0,n.A)(t))){return!t.length}var e=(0,a.A)(t);if(e==d||e==u){return!t.size}if((0,c.A)(t)){return!(0,i.A)(t).length}for(var r in t){if(p.call(t,r)){return false}}return true}const m=g},58807:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var i=r(64128);var a=r(85356);var n="[object AsyncFunction]",o="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";function c(t){if(!(0,a.A)(t)){return false}var e=(0,i.A)(t);return e==o||e==s||e==n||e==l}const h=c},43627:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var i=9007199254740991;function a(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=i}const n=a},85356:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});function i(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}const a=i},53315:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});function i(t){return t!=null&&typeof t=="object"}const a=i},82818:(t,e,r)=>{"use strict";r.d(e,{A:()=>I});var i=r(64128);var a=r(43627);var n=r(53315);var o="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",h="[object Error]",d="[object Function]",u="[object Map]",f="[object Number]",p="[object Object]",g="[object RegExp]",m="[object Set]",y="[object String]",b="[object WeakMap]";var x="[object ArrayBuffer]",C="[object DataView]",v="[object Float32Array]",k="[object Float64Array]",w="[object Int8Array]",S="[object Int16Array]",A="[object Int32Array]",T="[object Uint8Array]",B="[object Uint8ClampedArray]",L="[object Uint16Array]",M="[object Uint32Array]";var F={};F[v]=F[k]=F[w]=F[S]=F[A]=F[T]=F[B]=F[L]=F[M]=true;F[o]=F[s]=F[x]=F[l]=F[C]=F[c]=F[h]=F[d]=F[u]=F[f]=F[p]=F[g]=F[m]=F[y]=F[b]=false;function _(t){return(0,n.A)(t)&&(0,a.A)(t.length)&&!!F[(0,i.A)(t)]}const $=_;var E=r(26132);var O=r(89986);var D=O.A&&O.A.isTypedArray;var K=D?(0,E.A)(D):$;const I=K},13839:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var i=r(74578);var a=r(85356);var n=r(690);function o(t){var e=[];if(t!=null){for(var r in Object(t)){e.push(r)}}return e}const s=o;var l=Object.prototype;var c=l.hasOwnProperty;function h(t){if(!(0,a.A)(t)){return s(t)}var e=(0,n.A)(t),r=[];for(var i in t){if(!(i=="constructor"&&(e||!c.call(t,i)))){r.push(i)}}return r}const d=h;var u=r(21585);function f(t){return(0,u.A)(t)?(0,i.A)(t,true):d(t)}const p=f},307:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=r(9883);var a="Expected a function";function n(t,e){if(typeof t!="function"||e!=null&&typeof e!="function"){throw new TypeError(a)}var r=function(){var i=arguments,a=e?e.apply(this,i):i[0],n=r.cache;if(n.has(a)){return n.get(a)}var o=t.apply(this,i);r.cache=n.set(a,o)||n;return o};r.cache=new(n.Cache||i.A);return r}n.Cache=i.A;const o=n},96901:(t,e,r)=>{"use strict";r.d(e,{A:()=>W});var i=r(28478);var a=r(48657);var n=r(24461);function o(t,e,r){if(r!==undefined&&!(0,n.A)(t[e],r)||r===undefined&&!(e in t)){(0,a.A)(t,e,r)}}const s=o;var l=r(40283);var c=r(65963);var h=r(93672);var d=r(91810);var u=r(92768);var f=r(71528);var p=r(39990);var g=r(10654);var m=r(50895);var y=r(58807);var b=r(85356);var x=r(64128);var C=r(86848);var v=r(53315);var k="[object Object]";var w=Function.prototype,S=Object.prototype;var A=w.toString;var T=S.hasOwnProperty;var B=A.call(Object);function L(t){if(!(0,v.A)(t)||(0,x.A)(t)!=k){return false}var e=(0,C.A)(t);if(e===null){return true}var r=T.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&A.call(r)==B}const M=L;var F=r(82818);function _(t,e){if(e==="constructor"&&typeof t[e]==="function"){return}if(e=="__proto__"){return}return t[e]}const $=_;var E=r(376);var O=r(13839);function D(t){return(0,E.A)(t,(0,O.A)(t))}const K=D;function I(t,e,r,i,a,n,o){var l=$(t,r),x=$(e,r),C=o.get(x);if(C){s(t,r,C);return}var v=n?n(l,x,r+"",t,e,o):undefined;var k=v===undefined;if(k){var w=(0,p.A)(x),S=!w&&(0,m.A)(x),A=!w&&!S&&(0,F.A)(x);v=x;if(w||S||A){if((0,p.A)(l)){v=l}else if((0,g.A)(l)){v=(0,d.A)(l)}else if(S){k=false;v=(0,c.A)(x,true)}else if(A){k=false;v=(0,h.A)(x,true)}else{v=[]}}else if(M(x)||(0,f.A)(x)){v=l;if((0,f.A)(l)){v=K(l)}else if(!(0,b.A)(l)||(0,y.A)(l)){v=(0,u.A)(x)}}else{k=false}}if(k){o.set(x,v);a(v,x,i,n,o);o["delete"](x)}s(t,r,v)}const R=I;function P(t,e,r,a,n){if(t===e){return}(0,l.A)(e,(function(o,l){n||(n=new i.A);if((0,b.A)(o)){R(t,e,l,r,P,a,n)}else{var c=a?a($(t,l),o,l+"",t,e,n):undefined;if(c===undefined){c=o}s(t,l,c)}}),O.A)}const q=P;var z=r(56280);var N=(0,z.A)((function(t,e,r){q(t,e,r)}));const W=N},87756:(t,e,r)=>{"use strict";r.d(e,{n:()=>i});var i={name:"mermaid",version:"11.12.1",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"],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",prepublishOnly:"pnpm docs:verify-version"},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.1.1","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@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.13",dayjs:"^1.11.18",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.2.1",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.5","@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",canvas:"^3.1.2",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.1.0",jison:"^0.4.18","js-base64":"^3.7.8",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.3",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.13","type-fest":"^4.35.0",typedoc:"^0.28.12","typedoc-plugin-markdown":"^4.8.1",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.6.4","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}}},42418:(t,e,r)=>{"use strict";r.d(e,{C0:()=>C,xA:()=>lt,hH:()=>B,Dl:()=>Rt,IU:()=>ee,Wt:()=>Vt,Y2:()=>zt,a$:()=>jt,sb:()=>X,ME:()=>ue,UI:()=>G,Ch:()=>k,mW:()=>v,DB:()=>b,_3:()=>Lt,EJ:()=>y,m7:()=>ne,iN:()=>ie,zj:()=>ot,D7:()=>he,Gs:()=>be,J$:()=>A,ab:()=>se,Q2:()=>at,P$:()=>K,ID:()=>Bt,TM:()=>pt,Wi:()=>It,H1:()=>gt,QO:()=>_t,Js:()=>ye,Xd:()=>w,dj:()=>qt,cL:()=>ct,$i:()=>U,jZ:()=>vt,oB:()=>fe,wZ:()=>rt,EI:()=>ae,SV:()=>re,Nk:()=>nt,XV:()=>de,ke:()=>oe,UU:()=>et,ot:()=>Ht,mj:()=>pe,tM:()=>Xt,H$:()=>z,B6:()=>it});var i=r(70416);var a=r(63221);var n=r(69745);const o=(t,e)=>{const r=a.A.parse(t);const i={};for(const a in e){if(!e[a])continue;i[a]=r[a]+e[a]}return(0,n.A)(t,i)};const s=o;var l=r(3635);const c=(t,e,r=50)=>{const{r:i,g:n,b:o,a:s}=a.A.parse(t);const{r:c,g:h,b:d,a:u}=a.A.parse(e);const f=r/100;const p=f*2-1;const g=s-u;const m=p*g===-1?p:(p+g)/(1+p*g);const y=(m+1)/2;const b=1-y;const x=i*y+c*b;const C=n*y+h*b;const v=o*y+d*b;const k=s*f+u*(1-f);return(0,l.A)(x,C,v,k)};const h=c;const d=(t,e=100)=>{const r=a.A.parse(t);r.r=255-r.r;r.g=255-r.g;r.b=255-r.b;return h(r,t,e)};const u=d;var f=r(48750);var p=r(77470);var g=r(63170);var m=r(84997);var y=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s;var b=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi;var x=/\s*%%.*\n/gm;var C=class extends Error{static{(0,i.K2)(this,"UnknownDiagramError")}constructor(t){super(t);this.name="UnknownDiagramError"}};var v={};var k=(0,i.K2)((function(t,e){t=t.replace(y,"").replace(b,"").replace(x,"\n");for(const[r,{detector:i}]of Object.entries(v)){const a=i(t,e);if(a){return r}}throw new C(`No diagram type detected matching given configuration for text: ${t}`)}),"detectType");var w=(0,i.K2)(((...t)=>{for(const{id:e,detector:r,loader:i}of t){S(e,r,i)}}),"registerLazyLoadedDiagrams");var S=(0,i.K2)(((t,e,r)=>{if(v[t]){i.Rm.warn(`Detector with key ${t} already exists. Overwriting.`)}v[t]={detector:e,loader:r};i.Rm.debug(`Detector with key ${t} added${r?" with loader":""}`)}),"addDetector");var A=(0,i.K2)((t=>v[t].loader),"getDiagramLoader");var T=(0,i.K2)(((t,e,{depth:r=2,clobber:i=false}={})=>{const a={depth:r,clobber:i};if(Array.isArray(e)&&!Array.isArray(t)){e.forEach((e=>T(t,e,a)));return t}else if(Array.isArray(e)&&Array.isArray(t)){e.forEach((e=>{if(!t.includes(e)){t.push(e)}}));return t}if(t===void 0||r<=0){if(t!==void 0&&t!==null&&typeof t==="object"&&typeof e==="object"){return Object.assign(t,e)}else{return e}}if(e!==void 0&&typeof t==="object"&&typeof e==="object"){Object.keys(e).forEach((a=>{if(typeof e[a]==="object"&&(t[a]===void 0||typeof t[a]==="object")){if(t[a]===void 0){t[a]=Array.isArray(e[a])?[]:{}}t[a]=T(t[a],e[a],{depth:r-1,clobber:i})}else if(i||typeof t[a]!=="object"&&typeof e[a]!=="object"){t[a]=e[a]}}))}return t}),"assignWithDepth");var B=T;var L="#ffffff";var M="#f2f2f2";var F=(0,i.K2)(((t,e)=>e?s(t,{s:-40,l:10}):s(t,{s:-40,l:-10})),"mkBorder");var _=class{static{(0,i.K2)(this,"Theme")}constructor(){this.background="#f4f4f4";this.primaryColor="#fff4dd";this.noteBkgColor="#fff5ad";this.noteTextColor="#333";this.THEME_COLOR_LIMIT=12;this.fontFamily='"trebuchet ms", verdana, arial, sans-serif';this.fontSize="16px"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333");this.secondaryColor=this.secondaryColor||s(this.primaryColor,{h:-120});this.tertiaryColor=this.tertiaryColor||s(this.primaryColor,{h:180,l:5});this.primaryBorderColor=this.primaryBorderColor||F(this.primaryColor,this.darkMode);this.secondaryBorderColor=this.secondaryBorderColor||F(this.secondaryColor,this.darkMode);this.tertiaryBorderColor=this.tertiaryBorderColor||F(this.tertiaryColor,this.darkMode);this.noteBorderColor=this.noteBorderColor||F(this.noteBkgColor,this.darkMode);this.noteBkgColor=this.noteBkgColor||"#fff5ad";this.noteTextColor=this.noteTextColor||"#333";this.secondaryTextColor=this.secondaryTextColor||u(this.secondaryColor);this.tertiaryTextColor=this.tertiaryTextColor||u(this.tertiaryColor);this.lineColor=this.lineColor||u(this.background);this.arrowheadColor=this.arrowheadColor||u(this.background);this.textColor=this.textColor||this.primaryTextColor;this.border2=this.border2||this.tertiaryBorderColor;this.nodeBkg=this.nodeBkg||this.primaryColor;this.mainBkg=this.mainBkg||this.primaryColor;this.nodeBorder=this.nodeBorder||this.primaryBorderColor;this.clusterBkg=this.clusterBkg||this.tertiaryColor;this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor;this.defaultLinkColor=this.defaultLinkColor||this.lineColor;this.titleColor=this.titleColor||this.tertiaryTextColor;this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,f.A)(this.secondaryColor,30):this.secondaryColor);this.nodeTextColor=this.nodeTextColor||this.primaryTextColor;this.actorBorder=this.actorBorder||this.primaryBorderColor;this.actorBkg=this.actorBkg||this.mainBkg;this.actorTextColor=this.actorTextColor||this.primaryTextColor;this.actorLineColor=this.actorLineColor||this.actorBorder;this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg;this.signalColor=this.signalColor||this.textColor;this.signalTextColor=this.signalTextColor||this.textColor;this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder;this.labelTextColor=this.labelTextColor||this.actorTextColor;this.loopTextColor=this.loopTextColor||this.actorTextColor;this.activationBorderColor=this.activationBorderColor||(0,f.A)(this.secondaryColor,10);this.activationBkgColor=this.activationBkgColor||this.secondaryColor;this.sequenceNumberColor=this.sequenceNumberColor||u(this.lineColor);this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor;this.altSectionBkgColor=this.altSectionBkgColor||"white";this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor;this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor;this.excludeBkgColor=this.excludeBkgColor||"#eeeeee";this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor;this.taskBkgColor=this.taskBkgColor||this.primaryColor;this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor;this.activeTaskBkgColor=this.activeTaskBkgColor||(0,p.A)(this.primaryColor,23);this.gridColor=this.gridColor||"lightgrey";this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey";this.doneTaskBorderColor=this.doneTaskBorderColor||"grey";this.critBorderColor=this.critBorderColor||"#ff8888";this.critBkgColor=this.critBkgColor||"red";this.todayLineColor=this.todayLineColor||"red";this.vertLineColor=this.vertLineColor||"navy";this.taskTextColor=this.taskTextColor||this.textColor;this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor;this.taskTextLightColor=this.taskTextLightColor||this.textColor;this.taskTextColor=this.taskTextColor||this.primaryTextColor;this.taskTextDarkColor=this.taskTextDarkColor||this.textColor;this.taskTextClickableColor=this.taskTextClickableColor||"#003163";this.personBorder=this.personBorder||this.primaryBorderColor;this.personBkg=this.personBkg||this.mainBkg;if(this.darkMode){this.rowOdd=this.rowOdd||(0,f.A)(this.mainBkg,5)||"#ffffff";this.rowEven=this.rowEven||(0,f.A)(this.mainBkg,10)}else{this.rowOdd=this.rowOdd||(0,p.A)(this.mainBkg,75)||"#ffffff";this.rowEven=this.rowEven||(0,p.A)(this.mainBkg,5)}this.transitionColor=this.transitionColor||this.lineColor;this.transitionLabelColor=this.transitionLabelColor||this.textColor;this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor;this.stateBkg=this.stateBkg||this.mainBkg;this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg;this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor;this.altBackground=this.altBackground||this.tertiaryColor;this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg;this.compositeBorder=this.compositeBorder||this.nodeBorder;this.innerEndBackground=this.nodeBorder;this.errorBkgColor=this.errorBkgColor||this.tertiaryColor;this.errorTextColor=this.errorTextColor||this.tertiaryTextColor;this.transitionColor=this.transitionColor||this.lineColor;this.specialStateColor=this.lineColor;this.cScale0=this.cScale0||this.primaryColor;this.cScale1=this.cScale1||this.secondaryColor;this.cScale2=this.cScale2||this.tertiaryColor;this.cScale3=this.cScale3||s(this.primaryColor,{h:30});this.cScale4=this.cScale4||s(this.primaryColor,{h:60});this.cScale5=this.cScale5||s(this.primaryColor,{h:90});this.cScale6=this.cScale6||s(this.primaryColor,{h:120});this.cScale7=this.cScale7||s(this.primaryColor,{h:150});this.cScale8=this.cScale8||s(this.primaryColor,{h:210,l:150});this.cScale9=this.cScale9||s(this.primaryColor,{h:270});this.cScale10=this.cScale10||s(this.primaryColor,{h:300});this.cScale11=this.cScale11||s(this.primaryColor,{h:330});if(this.darkMode){for(let t=0;t{this[e]=t[e]}));this.updateColors();e.forEach((e=>{this[e]=t[e]}))}};var $=(0,i.K2)((t=>{const e=new _;e.calculate(t);return e}),"getThemeVariables");var E=class{static{(0,i.K2)(this,"Theme")}constructor(){this.background="#333";this.primaryColor="#1f2020";this.secondaryColor=(0,p.A)(this.primaryColor,16);this.tertiaryColor=s(this.primaryColor,{h:-160});this.primaryBorderColor=u(this.background);this.secondaryBorderColor=F(this.secondaryColor,this.darkMode);this.tertiaryBorderColor=F(this.tertiaryColor,this.darkMode);this.primaryTextColor=u(this.primaryColor);this.secondaryTextColor=u(this.secondaryColor);this.tertiaryTextColor=u(this.tertiaryColor);this.lineColor=u(this.background);this.textColor=u(this.background);this.mainBkg="#1f2020";this.secondBkg="calculated";this.mainContrastColor="lightgrey";this.darkTextColor=(0,p.A)(u("#323D47"),10);this.lineColor="calculated";this.border1="#ccc";this.border2=(0,l.A)(255,255,255,.25);this.arrowheadColor="calculated";this.fontFamily='"trebuchet ms", verdana, arial, sans-serif';this.fontSize="16px";this.labelBackground="#181818";this.textColor="#ccc";this.THEME_COLOR_LIMIT=12;this.nodeBkg="calculated";this.nodeBorder="calculated";this.clusterBkg="calculated";this.clusterBorder="calculated";this.defaultLinkColor="calculated";this.titleColor="#F9FFFE";this.edgeLabelBackground="calculated";this.actorBorder="calculated";this.actorBkg="calculated";this.actorTextColor="calculated";this.actorLineColor="calculated";this.signalColor="calculated";this.signalTextColor="calculated";this.labelBoxBkgColor="calculated";this.labelBoxBorderColor="calculated";this.labelTextColor="calculated";this.loopTextColor="calculated";this.noteBorderColor="calculated";this.noteBkgColor="#fff5ad";this.noteTextColor="calculated";this.activationBorderColor="calculated";this.activationBkgColor="calculated";this.sequenceNumberColor="black";this.sectionBkgColor=(0,f.A)("#EAE8D9",30);this.altSectionBkgColor="calculated";this.sectionBkgColor2="#EAE8D9";this.excludeBkgColor=(0,f.A)(this.sectionBkgColor,10);this.taskBorderColor=(0,l.A)(255,255,255,70);this.taskBkgColor="calculated";this.taskTextColor="calculated";this.taskTextLightColor="calculated";this.taskTextOutsideColor="calculated";this.taskTextClickableColor="#003163";this.activeTaskBorderColor=(0,l.A)(255,255,255,50);this.activeTaskBkgColor="#81B1DB";this.gridColor="calculated";this.doneTaskBkgColor="calculated";this.doneTaskBorderColor="grey";this.critBorderColor="#E83737";this.critBkgColor="#E83737";this.taskTextDarkColor="calculated";this.todayLineColor="#DB5757";this.vertLineColor="#00BFFF";this.personBorder=this.primaryBorderColor;this.personBkg=this.mainBkg;this.archEdgeColor="calculated";this.archEdgeArrowColor="calculated";this.archEdgeWidth="3";this.archGroupBorderColor=this.primaryBorderColor;this.archGroupBorderWidth="2px";this.rowOdd=this.rowOdd||(0,p.A)(this.mainBkg,5)||"#ffffff";this.rowEven=this.rowEven||(0,f.A)(this.mainBkg,10);this.labelColor="calculated";this.errorBkgColor="#a44141";this.errorTextColor="#ddd"}updateColors(){this.secondBkg=(0,p.A)(this.mainBkg,16);this.lineColor=this.mainContrastColor;this.arrowheadColor=this.mainContrastColor;this.nodeBkg=this.mainBkg;this.nodeBorder=this.border1;this.clusterBkg=this.secondBkg;this.clusterBorder=this.border2;this.defaultLinkColor=this.lineColor;this.edgeLabelBackground=(0,p.A)(this.labelBackground,25);this.actorBorder=this.border1;this.actorBkg=this.mainBkg;this.actorTextColor=this.mainContrastColor;this.actorLineColor=this.actorBorder;this.signalColor=this.mainContrastColor;this.signalTextColor=this.mainContrastColor;this.labelBoxBkgColor=this.actorBkg;this.labelBoxBorderColor=this.actorBorder;this.labelTextColor=this.mainContrastColor;this.loopTextColor=this.mainContrastColor;this.noteBorderColor=this.secondaryBorderColor;this.noteBkgColor=this.secondBkg;this.noteTextColor=this.secondaryTextColor;this.activationBorderColor=this.border1;this.activationBkgColor=this.secondBkg;this.altSectionBkgColor=this.background;this.taskBkgColor=(0,p.A)(this.mainBkg,23);this.taskTextColor=this.darkTextColor;this.taskTextLightColor=this.mainContrastColor;this.taskTextOutsideColor=this.taskTextLightColor;this.gridColor=this.mainContrastColor;this.doneTaskBkgColor=this.mainContrastColor;this.taskTextDarkColor=this.darkTextColor;this.archEdgeColor=this.lineColor;this.archEdgeArrowColor=this.lineColor;this.transitionColor=this.transitionColor||this.lineColor;this.transitionLabelColor=this.transitionLabelColor||this.textColor;this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor;this.stateBkg=this.stateBkg||this.mainBkg;this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg;this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor;this.altBackground=this.altBackground||"#555";this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg;this.compositeBorder=this.compositeBorder||this.nodeBorder;this.innerEndBackground=this.primaryBorderColor;this.specialStateColor="#f4f4f4";this.errorBkgColor=this.errorBkgColor||this.tertiaryColor;this.errorTextColor=this.errorTextColor||this.tertiaryTextColor;this.fillType0=this.primaryColor;this.fillType1=this.secondaryColor;this.fillType2=s(this.primaryColor,{h:64});this.fillType3=s(this.secondaryColor,{h:64});this.fillType4=s(this.primaryColor,{h:-64});this.fillType5=s(this.secondaryColor,{h:-64});this.fillType6=s(this.primaryColor,{h:128});this.fillType7=s(this.secondaryColor,{h:128});this.cScale1=this.cScale1||"#0b0000";this.cScale2=this.cScale2||"#4d1037";this.cScale3=this.cScale3||"#3f5258";this.cScale4=this.cScale4||"#4f2f1b";this.cScale5=this.cScale5||"#6e0a0a";this.cScale6=this.cScale6||"#3b0048";this.cScale7=this.cScale7||"#995a01";this.cScale8=this.cScale8||"#154706";this.cScale9=this.cScale9||"#161722";this.cScale10=this.cScale10||"#00296f";this.cScale11=this.cScale11||"#01629c";this.cScale12=this.cScale12||"#010029";this.cScale0=this.cScale0||this.primaryColor;this.cScale1=this.cScale1||this.secondaryColor;this.cScale2=this.cScale2||this.tertiaryColor;this.cScale3=this.cScale3||s(this.primaryColor,{h:30});this.cScale4=this.cScale4||s(this.primaryColor,{h:60});this.cScale5=this.cScale5||s(this.primaryColor,{h:90});this.cScale6=this.cScale6||s(this.primaryColor,{h:120});this.cScale7=this.cScale7||s(this.primaryColor,{h:150});this.cScale8=this.cScale8||s(this.primaryColor,{h:210});this.cScale9=this.cScale9||s(this.primaryColor,{h:270});this.cScale10=this.cScale10||s(this.primaryColor,{h:300});this.cScale11=this.cScale11||s(this.primaryColor,{h:330});for(let t=0;t{this[e]=t[e]}));this.updateColors();e.forEach((e=>{this[e]=t[e]}))}};var O=(0,i.K2)((t=>{const e=new E;e.calculate(t);return e}),"getThemeVariables");var D=class{static{(0,i.K2)(this,"Theme")}constructor(){this.background="#f4f4f4";this.primaryColor="#ECECFF";this.secondaryColor=s(this.primaryColor,{h:120});this.secondaryColor="#ffffde";this.tertiaryColor=s(this.primaryColor,{h:-160});this.primaryBorderColor=F(this.primaryColor,this.darkMode);this.secondaryBorderColor=F(this.secondaryColor,this.darkMode);this.tertiaryBorderColor=F(this.tertiaryColor,this.darkMode);this.primaryTextColor=u(this.primaryColor);this.secondaryTextColor=u(this.secondaryColor);this.tertiaryTextColor=u(this.tertiaryColor);this.lineColor=u(this.background);this.textColor=u(this.background);this.background="white";this.mainBkg="#ECECFF";this.secondBkg="#ffffde";this.lineColor="#333333";this.border1="#9370DB";this.border2="#aaaa33";this.arrowheadColor="#333333";this.fontFamily='"trebuchet ms", verdana, arial, sans-serif';this.fontSize="16px";this.labelBackground="rgba(232,232,232, 0.8)";this.textColor="#333";this.THEME_COLOR_LIMIT=12;this.nodeBkg="calculated";this.nodeBorder="calculated";this.clusterBkg="calculated";this.clusterBorder="calculated";this.defaultLinkColor="calculated";this.titleColor="calculated";this.edgeLabelBackground="calculated";this.actorBorder="calculated";this.actorBkg="calculated";this.actorTextColor="black";this.actorLineColor="calculated";this.signalColor="calculated";this.signalTextColor="calculated";this.labelBoxBkgColor="calculated";this.labelBoxBorderColor="calculated";this.labelTextColor="calculated";this.loopTextColor="calculated";this.noteBorderColor="calculated";this.noteBkgColor="#fff5ad";this.noteTextColor="calculated";this.activationBorderColor="#666";this.activationBkgColor="#f4f4f4";this.sequenceNumberColor="white";this.sectionBkgColor="calculated";this.altSectionBkgColor="calculated";this.sectionBkgColor2="calculated";this.excludeBkgColor="#eeeeee";this.taskBorderColor="calculated";this.taskBkgColor="calculated";this.taskTextLightColor="calculated";this.taskTextColor=this.taskTextLightColor;this.taskTextDarkColor="calculated";this.taskTextOutsideColor=this.taskTextDarkColor;this.taskTextClickableColor="calculated";this.activeTaskBorderColor="calculated";this.activeTaskBkgColor="calculated";this.gridColor="calculated";this.doneTaskBkgColor="calculated";this.doneTaskBorderColor="calculated";this.critBorderColor="calculated";this.critBkgColor="calculated";this.todayLineColor="calculated";this.vertLineColor="calculated";this.sectionBkgColor=(0,l.A)(102,102,255,.49);this.altSectionBkgColor="white";this.sectionBkgColor2="#fff400";this.taskBorderColor="#534fbc";this.taskBkgColor="#8a90dd";this.taskTextLightColor="white";this.taskTextColor="calculated";this.taskTextDarkColor="black";this.taskTextOutsideColor="calculated";this.taskTextClickableColor="#003163";this.activeTaskBorderColor="#534fbc";this.activeTaskBkgColor="#bfc7ff";this.gridColor="lightgrey";this.doneTaskBkgColor="lightgrey";this.doneTaskBorderColor="grey";this.critBorderColor="#ff8888";this.critBkgColor="red";this.todayLineColor="red";this.vertLineColor="navy";this.personBorder=this.primaryBorderColor;this.personBkg=this.mainBkg;this.archEdgeColor="calculated";this.archEdgeArrowColor="calculated";this.archEdgeWidth="3";this.archGroupBorderColor=this.primaryBorderColor;this.archGroupBorderWidth="2px";this.rowOdd="calculated";this.rowEven="calculated";this.labelColor="black";this.errorBkgColor="#552222";this.errorTextColor="#552222";this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor;this.cScale1=this.cScale1||this.secondaryColor;this.cScale2=this.cScale2||this.tertiaryColor;this.cScale3=this.cScale3||s(this.primaryColor,{h:30});this.cScale4=this.cScale4||s(this.primaryColor,{h:60});this.cScale5=this.cScale5||s(this.primaryColor,{h:90});this.cScale6=this.cScale6||s(this.primaryColor,{h:120});this.cScale7=this.cScale7||s(this.primaryColor,{h:150});this.cScale8=this.cScale8||s(this.primaryColor,{h:210});this.cScale9=this.cScale9||s(this.primaryColor,{h:270});this.cScale10=this.cScale10||s(this.primaryColor,{h:300});this.cScale11=this.cScale11||s(this.primaryColor,{h:330});this["cScalePeer1"]=this["cScalePeer1"]||(0,f.A)(this.secondaryColor,45);this["cScalePeer2"]=this["cScalePeer2"]||(0,f.A)(this.tertiaryColor,40);for(let t=0;t{if(this[t]==="calculated"){this[t]=void 0}}));if(typeof t!=="object"){this.updateColors();return}const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]}));this.updateColors();e.forEach((e=>{this[e]=t[e]}))}};var K=(0,i.K2)((t=>{const e=new D;e.calculate(t);return e}),"getThemeVariables");var I=class{static{(0,i.K2)(this,"Theme")}constructor(){this.background="#f4f4f4";this.primaryColor="#cde498";this.secondaryColor="#cdffb2";this.background="white";this.mainBkg="#cde498";this.secondBkg="#cdffb2";this.lineColor="green";this.border1="#13540c";this.border2="#6eaa49";this.arrowheadColor="green";this.fontFamily='"trebuchet ms", verdana, arial, sans-serif';this.fontSize="16px";this.tertiaryColor=(0,p.A)("#cde498",10);this.primaryBorderColor=F(this.primaryColor,this.darkMode);this.secondaryBorderColor=F(this.secondaryColor,this.darkMode);this.tertiaryBorderColor=F(this.tertiaryColor,this.darkMode);this.primaryTextColor=u(this.primaryColor);this.secondaryTextColor=u(this.secondaryColor);this.tertiaryTextColor=u(this.primaryColor);this.lineColor=u(this.background);this.textColor=u(this.background);this.THEME_COLOR_LIMIT=12;this.nodeBkg="calculated";this.nodeBorder="calculated";this.clusterBkg="calculated";this.clusterBorder="calculated";this.defaultLinkColor="calculated";this.titleColor="#333";this.edgeLabelBackground="#e8e8e8";this.actorBorder="calculated";this.actorBkg="calculated";this.actorTextColor="black";this.actorLineColor="calculated";this.signalColor="#333";this.signalTextColor="#333";this.labelBoxBkgColor="calculated";this.labelBoxBorderColor="#326932";this.labelTextColor="calculated";this.loopTextColor="calculated";this.noteBorderColor="calculated";this.noteBkgColor="#fff5ad";this.noteTextColor="calculated";this.activationBorderColor="#666";this.activationBkgColor="#f4f4f4";this.sequenceNumberColor="white";this.sectionBkgColor="#6eaa49";this.altSectionBkgColor="white";this.sectionBkgColor2="#6eaa49";this.excludeBkgColor="#eeeeee";this.taskBorderColor="calculated";this.taskBkgColor="#487e3a";this.taskTextLightColor="white";this.taskTextColor="calculated";this.taskTextDarkColor="black";this.taskTextOutsideColor="calculated";this.taskTextClickableColor="#003163";this.activeTaskBorderColor="calculated";this.activeTaskBkgColor="calculated";this.gridColor="lightgrey";this.doneTaskBkgColor="lightgrey";this.doneTaskBorderColor="grey";this.critBorderColor="#ff8888";this.critBkgColor="red";this.todayLineColor="red";this.vertLineColor="#00BFFF";this.personBorder=this.primaryBorderColor;this.personBkg=this.mainBkg;this.archEdgeColor="calculated";this.archEdgeArrowColor="calculated";this.archEdgeWidth="3";this.archGroupBorderColor=this.primaryBorderColor;this.archGroupBorderWidth="2px";this.labelColor="black";this.errorBkgColor="#552222";this.errorTextColor="#552222"}updateColors(){this.actorBorder=(0,f.A)(this.mainBkg,20);this.actorBkg=this.mainBkg;this.labelBoxBkgColor=this.actorBkg;this.labelTextColor=this.actorTextColor;this.loopTextColor=this.actorTextColor;this.noteBorderColor=this.border2;this.noteTextColor=this.actorTextColor;this.actorLineColor=this.actorBorder;this.cScale0=this.cScale0||this.primaryColor;this.cScale1=this.cScale1||this.secondaryColor;this.cScale2=this.cScale2||this.tertiaryColor;this.cScale3=this.cScale3||s(this.primaryColor,{h:30});this.cScale4=this.cScale4||s(this.primaryColor,{h:60});this.cScale5=this.cScale5||s(this.primaryColor,{h:90});this.cScale6=this.cScale6||s(this.primaryColor,{h:120});this.cScale7=this.cScale7||s(this.primaryColor,{h:150});this.cScale8=this.cScale8||s(this.primaryColor,{h:210});this.cScale9=this.cScale9||s(this.primaryColor,{h:270});this.cScale10=this.cScale10||s(this.primaryColor,{h:300});this.cScale11=this.cScale11||s(this.primaryColor,{h:330});this["cScalePeer1"]=this["cScalePeer1"]||(0,f.A)(this.secondaryColor,45);this["cScalePeer2"]=this["cScalePeer2"]||(0,f.A)(this.tertiaryColor,40);for(let t=0;t{this[e]=t[e]}));this.updateColors();e.forEach((e=>{this[e]=t[e]}))}};var R=(0,i.K2)((t=>{const e=new I;e.calculate(t);return e}),"getThemeVariables");var P=class{static{(0,i.K2)(this,"Theme")}constructor(){this.primaryColor="#eee";this.contrast="#707070";this.secondaryColor=(0,p.A)(this.contrast,55);this.background="#ffffff";this.tertiaryColor=s(this.primaryColor,{h:-160});this.primaryBorderColor=F(this.primaryColor,this.darkMode);this.secondaryBorderColor=F(this.secondaryColor,this.darkMode);this.tertiaryBorderColor=F(this.tertiaryColor,this.darkMode);this.primaryTextColor=u(this.primaryColor);this.secondaryTextColor=u(this.secondaryColor);this.tertiaryTextColor=u(this.tertiaryColor);this.lineColor=u(this.background);this.textColor=u(this.background);this.mainBkg="#eee";this.secondBkg="calculated";this.lineColor="#666";this.border1="#999";this.border2="calculated";this.note="#ffa";this.text="#333";this.critical="#d42";this.done="#bbb";this.arrowheadColor="#333333";this.fontFamily='"trebuchet ms", verdana, arial, sans-serif';this.fontSize="16px";this.THEME_COLOR_LIMIT=12;this.nodeBkg="calculated";this.nodeBorder="calculated";this.clusterBkg="calculated";this.clusterBorder="calculated";this.defaultLinkColor="calculated";this.titleColor="calculated";this.edgeLabelBackground="white";this.actorBorder="calculated";this.actorBkg="calculated";this.actorTextColor="calculated";this.actorLineColor=this.actorBorder;this.signalColor="calculated";this.signalTextColor="calculated";this.labelBoxBkgColor="calculated";this.labelBoxBorderColor="calculated";this.labelTextColor="calculated";this.loopTextColor="calculated";this.noteBorderColor="calculated";this.noteBkgColor="calculated";this.noteTextColor="calculated";this.activationBorderColor="#666";this.activationBkgColor="#f4f4f4";this.sequenceNumberColor="white";this.sectionBkgColor="calculated";this.altSectionBkgColor="white";this.sectionBkgColor2="calculated";this.excludeBkgColor="#eeeeee";this.taskBorderColor="calculated";this.taskBkgColor="calculated";this.taskTextLightColor="white";this.taskTextColor="calculated";this.taskTextDarkColor="calculated";this.taskTextOutsideColor="calculated";this.taskTextClickableColor="#003163";this.activeTaskBorderColor="calculated";this.activeTaskBkgColor="calculated";this.gridColor="calculated";this.doneTaskBkgColor="calculated";this.doneTaskBorderColor="calculated";this.critBkgColor="calculated";this.critBorderColor="calculated";this.todayLineColor="calculated";this.vertLineColor="calculated";this.personBorder=this.primaryBorderColor;this.personBkg=this.mainBkg;this.archEdgeColor="calculated";this.archEdgeArrowColor="calculated";this.archEdgeWidth="3";this.archGroupBorderColor=this.primaryBorderColor;this.archGroupBorderWidth="2px";this.rowOdd=this.rowOdd||(0,p.A)(this.mainBkg,75)||"#ffffff";this.rowEven=this.rowEven||"#f4f4f4";this.labelColor="black";this.errorBkgColor="#552222";this.errorTextColor="#552222"}updateColors(){this.secondBkg=(0,p.A)(this.contrast,55);this.border2=this.contrast;this.actorBorder=(0,p.A)(this.border1,23);this.actorBkg=this.mainBkg;this.actorTextColor=this.text;this.actorLineColor=this.actorBorder;this.signalColor=this.text;this.signalTextColor=this.text;this.labelBoxBkgColor=this.actorBkg;this.labelBoxBorderColor=this.actorBorder;this.labelTextColor=this.text;this.loopTextColor=this.text;this.noteBorderColor="#999";this.noteBkgColor="#666";this.noteTextColor="#fff";this.cScale0=this.cScale0||"#555";this.cScale1=this.cScale1||"#F4F4F4";this.cScale2=this.cScale2||"#555";this.cScale3=this.cScale3||"#BBB";this.cScale4=this.cScale4||"#777";this.cScale5=this.cScale5||"#999";this.cScale6=this.cScale6||"#DDD";this.cScale7=this.cScale7||"#FFF";this.cScale8=this.cScale8||"#DDD";this.cScale9=this.cScale9||"#BBB";this.cScale10=this.cScale10||"#999";this.cScale11=this.cScale11||"#777";for(let t=0;t{this[e]=t[e]}));this.updateColors();e.forEach((e=>{this[e]=t[e]}))}};var q=(0,i.K2)((t=>{const e=new P;e.calculate(t);return e}),"getThemeVariables");var z={base:{getThemeVariables:$},dark:{getThemeVariables:O},default:{getThemeVariables:K},forest:{getThemeVariables:R},neutral:{getThemeVariables:q}};var N={flowchart:{useMaxWidth:true,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:true,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:false},sequence:{useMaxWidth:true,hideUnusedParticipants:false,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:true,forceMenus:false,bottomMarginAdj:1,rightAngles:false,showSequenceNumbers:false,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:false,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:true,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:false,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:true,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:false,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:true,titleTopMargin:25,arrowMarkerAbsolute:false,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:false,hideEmptyMembersBox:false},state:{useMaxWidth:true,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:true,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:true,textPosition:.75},quadrantChart:{useMaxWidth:true,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:true,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:false,showTitle:true,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:true,labelFontSize:14,labelPadding:5,showTitle:true,titleFontSize:16,titlePadding:5,showTick:true,tickLength:5,tickWidth:2,showAxisLine:true,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:true,labelFontSize:14,labelPadding:5,showTitle:true,titleFontSize:16,titlePadding:5,showTick:true,tickLength:5,tickWidth:2,showAxisLine:true,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:true,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:true,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},kanban:{useMaxWidth:true,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:true,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:false,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:false},gitGraph:{useMaxWidth:true,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:true,showBranches:true,rotateCommitLabel:true,parallelCommits:false,arrowMarkerAbsolute:false},c4:{useMaxWidth:true,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:true,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:true,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:true,prefix:"",suffix:""},block:{useMaxWidth:true,padding:8},packet:{useMaxWidth:true,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:true,paddingX:5,paddingY:5},architecture:{useMaxWidth:true,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:true,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:false,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:true,arrowMarkerAbsolute:false,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:false,forceLegacyMathML:false,deterministicIds:false,fontSize:16,markdownAutoWrap:true,suppressErrorRendering:false};var W={...N,deterministicIDSeed:void 0,elk:{mergeEdges:false,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:false,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:z.default.getThemeVariables(),sequence:{...N.sequence,messageFont:(0,i.K2)((function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}),"messageFont"),noteFont:(0,i.K2)((function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}}),"noteFont"),actorFont:(0,i.K2)((function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}),"actorFont")},class:{hideEmptyMembersBox:false},gantt:{...N.gantt,tickInterval:void 0,useWidth:void 0},c4:{...N.c4,useWidth:void 0,personFont:(0,i.K2)((function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}}),"personFont"),flowchart:{...N.flowchart,inheritDir:false},external_personFont:(0,i.K2)((function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}}),"external_personFont"),systemFont:(0,i.K2)((function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}}),"systemFont"),external_systemFont:(0,i.K2)((function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}}),"external_systemFont"),system_dbFont:(0,i.K2)((function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}}),"system_dbFont"),external_system_dbFont:(0,i.K2)((function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}}),"external_system_dbFont"),system_queueFont:(0,i.K2)((function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}}),"system_queueFont"),external_system_queueFont:(0,i.K2)((function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}}),"external_system_queueFont"),containerFont:(0,i.K2)((function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}}),"containerFont"),external_containerFont:(0,i.K2)((function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}}),"external_containerFont"),container_dbFont:(0,i.K2)((function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}}),"container_dbFont"),external_container_dbFont:(0,i.K2)((function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}}),"external_container_dbFont"),container_queueFont:(0,i.K2)((function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}}),"container_queueFont"),external_container_queueFont:(0,i.K2)((function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}}),"external_container_queueFont"),componentFont:(0,i.K2)((function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}}),"componentFont"),external_componentFont:(0,i.K2)((function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}}),"external_componentFont"),component_dbFont:(0,i.K2)((function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}}),"component_dbFont"),external_component_dbFont:(0,i.K2)((function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}}),"external_component_dbFont"),component_queueFont:(0,i.K2)((function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}}),"component_queueFont"),external_component_queueFont:(0,i.K2)((function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}}),"external_component_queueFont"),boundaryFont:(0,i.K2)((function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}}),"boundaryFont"),messageFont:(0,i.K2)((function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}),"messageFont")},pie:{...N.pie,useWidth:984},xyChart:{...N.xyChart,useWidth:void 0},requirement:{...N.requirement,useWidth:void 0},packet:{...N.packet},radar:{...N.radar},treemap:{useMaxWidth:true,padding:10,diagramPadding:8,showValues:true,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","}};var j=(0,i.K2)(((t,e="")=>Object.keys(t).reduce(((r,i)=>{if(Array.isArray(t[i])){return r}else if(typeof t[i]==="object"&&t[i]!==null){return[...r,e+i,...j(t[i],"")]}return[...r,e+i]}),[])),"keyify");var H=new Set(j(W,""));var G=W;var U=(0,i.K2)((t=>{i.Rm.debug("sanitizeDirective called with",t);if(typeof t!=="object"||t==null){return}if(Array.isArray(t)){t.forEach((t=>U(t)));return}for(const e of Object.keys(t)){i.Rm.debug("Checking key",e);if(e.startsWith("__")||e.includes("proto")||e.includes("constr")||!H.has(e)||t[e]==null){i.Rm.debug("sanitize deleting key: ",e);delete t[e];continue}if(typeof t[e]==="object"){i.Rm.debug("sanitizing object",e);U(t[e]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const a of r){if(e.includes(a)){i.Rm.debug("sanitizing css option",e);t[e]=Y(t[e])}}}if(t.themeVariables){for(const e of Object.keys(t.themeVariables)){const r=t.themeVariables[e];if(r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)){t.themeVariables[e]=""}}}i.Rm.debug("After sanitization",t)}),"sanitizeDirective");var Y=(0,i.K2)((t=>{let e=0;let r=0;for(const i of t){if(e{let r=B({},t);let i={};for(const a of e){st(a);i=B(i,a)}r=B(r,i);if(i.theme&&i.theme in z){const t=B({},Z);const e=B(t.themeVariables||{},i.themeVariables);if(r.theme&&r.theme in z){r.themeVariables=z[r.theme].getThemeVariables(e)}}J=r;ft(J);return J}),"updateCurrentConfig");var et=(0,i.K2)((t=>{V=B({},X);V=B(V,t);if(t.theme&&z[t.theme]){V.themeVariables=z[t.theme].getThemeVariables(t.themeVariables)}tt(V,Q);return V}),"setSiteConfig");var rt=(0,i.K2)((t=>{Z=B({},t)}),"saveConfigFromInitialize");var it=(0,i.K2)((t=>{V=B(V,t);tt(V,Q);return V}),"updateSiteConfig");var at=(0,i.K2)((()=>B({},V)),"getSiteConfig");var nt=(0,i.K2)((t=>{ft(t);B(J,t);return ot()}),"setConfig");var ot=(0,i.K2)((()=>B({},J)),"getConfig");var st=(0,i.K2)((t=>{if(!t){return}["secure",...V.secure??[]].forEach((e=>{if(Object.hasOwn(t,e)){i.Rm.debug(`Denied attempt to modify a secure key ${e}`,t[e]);delete t[e]}}));Object.keys(t).forEach((e=>{if(e.startsWith("__")){delete t[e]}}));Object.keys(t).forEach((e=>{if(typeof t[e]==="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))){delete t[e]}if(typeof t[e]==="object"){st(t[e])}}))}),"sanitize");var lt=(0,i.K2)((t=>{U(t);if(t.fontFamily&&!t.themeVariables?.fontFamily){t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}}Q.push(t);tt(V,Q)}),"addDirective");var ct=(0,i.K2)(((t=V)=>{Q=[];tt(t,Q)}),"reset");var ht={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."};var dt={};var ut=(0,i.K2)((t=>{if(dt[t]){return}i.Rm.warn(ht[t]);dt[t]=true}),"issueWarning");var ft=(0,i.K2)((t=>{if(!t){return}if(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup){ut("LAZY_LOAD_DEPRECATED")}}),"checkConfig");var pt=(0,i.K2)((()=>{let t={};if(Z){t=B(t,Z)}for(const e of Q){t=B(t,e)}return t}),"getUserDefinedConfig");var gt=//gi;var mt=(0,i.K2)((t=>{if(!t){return[""]}const e=Tt(t).replace(/\\n/g,"#br#");return e.split("#br#")}),"getRows");var yt=(()=>{let t=false;return()=>{if(!t){bt();t=true}}})();function bt(){const t="data-temp-href-target";m.A.addHook("beforeSanitizeAttributes",(e=>{if(e.tagName==="A"&&e.hasAttribute("target")){e.setAttribute(t,e.getAttribute("target")??"")}}));m.A.addHook("afterSanitizeAttributes",(e=>{if(e.tagName==="A"&&e.hasAttribute(t)){e.setAttribute("target",e.getAttribute(t)??"");e.removeAttribute(t);if(e.getAttribute("target")==="_blank"){e.setAttribute("rel","noopener")}}}))}(0,i.K2)(bt,"setupDompurifyHooks");var xt=(0,i.K2)((t=>{yt();const e=m.A.sanitize(t);return e}),"removeScript");var Ct=(0,i.K2)(((t,e)=>{if(e.flowchart?.htmlLabels!==false){const r=e.securityLevel;if(r==="antiscript"||r==="strict"){t=xt(t)}else if(r!=="loose"){t=Tt(t);t=t.replace(//g,">");t=t.replace(/=/g,"=");t=At(t)}}return t}),"sanitizeMore");var vt=(0,i.K2)(((t,e)=>{if(!t){return t}if(e.dompurifyConfig){t=m.A.sanitize(Ct(t,e),e.dompurifyConfig).toString()}else{t=m.A.sanitize(Ct(t,e),{FORBID_TAGS:["style"]}).toString()}return t}),"sanitizeText");var kt=(0,i.K2)(((t,e)=>{if(typeof t==="string"){return vt(t,e)}return t.flat().map((t=>vt(t,e)))}),"sanitizeTextOrArray");var wt=(0,i.K2)((t=>gt.test(t)),"hasBreaks");var St=(0,i.K2)((t=>t.split(gt)),"splitBreaks");var At=(0,i.K2)((t=>t.replace(/#br#/g,"
")),"placeholderToBreak");var Tt=(0,i.K2)((t=>t.replace(gt,"#br#")),"breakToPlaceholder");var Bt=(0,i.K2)((t=>{let e="";if(t){e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search;e=CSS.escape(e)}return e}),"getUrl");var Lt=(0,i.K2)((t=>t===false||["false","null","0"].includes(String(t).trim().toLowerCase())?false:true),"evaluate");var Mt=(0,i.K2)((function(...t){const e=t.filter((t=>!isNaN(t)));return Math.max(...e)}),"getMax");var Ft=(0,i.K2)((function(...t){const e=t.filter((t=>!isNaN(t)));return Math.min(...e)}),"getMin");var _t=(0,i.K2)((function(t){const e=t.split(/(,)/);const r=[];for(let i=0;i0&&i+1Math.max(0,t.split(e).length-1)),"countOccurrence");var Et=(0,i.K2)(((t,e)=>{const r=$t(t,"~");const i=$t(e,"~");return r===1&&i===1}),"shouldCombineSets");var Ot=(0,i.K2)((t=>{const e=$t(t,"~");let r=false;if(e<=1){return t}if(e%2!==0&&t.startsWith("~")){t=t.substring(1);r=true}const i=[...t];let a=i.indexOf("~");let n=i.lastIndexOf("~");while(a!==-1&&n!==-1&&a!==n){i[a]="<";i[n]=">";a=i.indexOf("~");n=i.lastIndexOf("~")}if(r){i.unshift("~")}return i.join("")}),"processSet");var Dt=(0,i.K2)((()=>window.MathMLElement!==void 0),"isMathMLSupported");var Kt=/\$\$(.*)\$\$/g;var It=(0,i.K2)((t=>(t.match(Kt)?.length??0)>0),"hasKatex");var Rt=(0,i.K2)((async(t,e)=>{const r=document.createElement("div");r.innerHTML=await qt(t,e);r.id="katex-temp";r.style.visibility="hidden";r.style.position="absolute";r.style.top="0";const i=document.querySelector("body");i?.insertAdjacentElement("beforeend",r);const a={width:r.clientWidth,height:r.clientHeight};r.remove();return a}),"calculateMathMLDimensions");var Pt=(0,i.K2)((async(t,e)=>{if(!It(t)){return t}if(!(Dt()||e.legacyMathML||e.forceLegacyMathML)){return t.replace(Kt,"MathML is unsupported in this environment.")}if(true){const{default:i}=await r.e(5489).then(r.bind(r,25489));const a=e.forceLegacyMathML||!Dt()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(gt).map((t=>It(t)?`
${t}
`:`
${t}
`)).join("").replace(Kt,((t,e)=>i.renderToString(e,{throwOnError:true,displayMode:true,output:a}).replace(/\n/g," ").replace(//g,"")))}return t.replace(Kt,"Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.")}),"renderKatexUnsanitized");var qt=(0,i.K2)((async(t,e)=>vt(await Pt(t,e),e)),"renderKatexSanitized");var zt={getRows:mt,sanitizeText:vt,sanitizeTextOrArray:kt,hasBreaks:wt,splitBreaks:St,lineBreakRegex:gt,removeScript:xt,getUrl:Bt,evaluate:Lt,getMax:Mt,getMin:Ft};var Nt=(0,i.K2)((function(t,e){for(let r of e){t.attr(r[0],r[1])}}),"d3Attrs");var Wt=(0,i.K2)((function(t,e,r){let i=new Map;if(r){i.set("width","100%");i.set("style",`max-width: ${e}px;`)}else{i.set("height",t);i.set("width",e)}return i}),"calculateSvgSizeAttrs");var jt=(0,i.K2)((function(t,e,r,i){const a=Wt(e,r,i);Nt(t,a)}),"configureSvgSize");var Ht=(0,i.K2)((function(t,e,r,a){const n=e.node().getBBox();const o=n.width;const s=n.height;i.Rm.info(`SVG bounds: ${o}x${s}`,n);let l=0;let c=0;i.Rm.info(`Graph bounds: ${l}x${c}`,t);l=o+r*2;c=s+r*2;i.Rm.info(`Calculated bounds: ${l}x${c}`);jt(e,c,l,a);const h=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;e.attr("viewBox",h)}),"setupGraphViewbox");var Gt={};var Ut=(0,i.K2)(((t,e,r)=>{let a="";if(t in Gt&&Gt[t]){a=Gt[t](r)}else{i.Rm.warn(`No theme found for ${t}`)}return` & {\n font-family: ${r.fontFamily};\n font-size: ${r.fontSize};\n fill: ${r.textColor}\n }\n @keyframes edge-animation-frame {\n from {\n stroke-dashoffset: 0;\n }\n }\n @keyframes dash {\n to {\n stroke-dashoffset: 0;\n }\n }\n & .edge-animation-slow {\n stroke-dasharray: 9,5 !important;\n stroke-dashoffset: 900;\n animation: dash 50s linear infinite;\n stroke-linecap: round;\n }\n & .edge-animation-fast {\n stroke-dasharray: 9,5 !important;\n stroke-dashoffset: 900;\n animation: dash 20s linear infinite;\n stroke-linecap: round;\n }\n /* Classes common for multiple diagrams */\n\n & .error-icon {\n fill: ${r.errorBkgColor};\n }\n & .error-text {\n fill: ${r.errorTextColor};\n stroke: ${r.errorTextColor};\n }\n\n & .edge-thickness-normal {\n stroke-width: 1px;\n }\n & .edge-thickness-thick {\n stroke-width: 3.5px\n }\n & .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n & .edge-thickness-invisible {\n stroke-width: 0;\n fill: none;\n }\n & .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n & .marker {\n fill: ${r.lineColor};\n stroke: ${r.lineColor};\n }\n & .marker.cross {\n stroke: ${r.lineColor};\n }\n\n & svg {\n font-family: ${r.fontFamily};\n font-size: ${r.fontSize};\n }\n & p {\n margin: 0\n }\n\n ${a}\n\n ${e}\n`}),"getStyles");var Yt=(0,i.K2)(((t,e)=>{if(e!==void 0){Gt[t]=e}}),"addStylesForDiagram");var Xt=Ut;var Vt={};(0,i.VA)(Vt,{clear:()=>ee,getAccDescription:()=>ne,getAccTitle:()=>ie,getDiagramTitle:()=>se,setAccDescription:()=>ae,setAccTitle:()=>re,setDiagramTitle:()=>oe});var Zt="";var Qt="";var Jt="";var te=(0,i.K2)((t=>vt(t,ot())),"sanitizeText");var ee=(0,i.K2)((()=>{Zt="";Jt="";Qt=""}),"clear");var re=(0,i.K2)((t=>{Zt=te(t).replace(/^\s+/g,"")}),"setAccTitle");var ie=(0,i.K2)((()=>Zt),"getAccTitle");var ae=(0,i.K2)((t=>{Jt=te(t).replace(/\n\s+/g,"\n")}),"setAccDescription");var ne=(0,i.K2)((()=>Jt),"getAccDescription");var oe=(0,i.K2)((t=>{Qt=te(t)}),"setDiagramTitle");var se=(0,i.K2)((()=>Qt),"getDiagramTitle");var le=i.Rm;var ce=i.He;var he=ot;var de=nt;var ue=X;var fe=(0,i.K2)((t=>vt(t,he())),"sanitizeText");var pe=Ht;var ge=(0,i.K2)((()=>Vt),"getCommonDb");var me={};var ye=(0,i.K2)(((t,e,r)=>{if(me[t]){le.warn(`Diagram with id ${t} already registered. Overwriting.`)}me[t]=e;if(r){S(t,r)}Yt(t,e.styles);e.injectUtils?.(le,ce,he,fe,pe,ge(),(()=>{}))}),"registerDiagram");var be=(0,i.K2)((t=>{if(t in me){return me[t]}throw new xe(t)}),"getDiagram");var xe=class extends Error{static{(0,i.K2)(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}}},70416:(t,e,r)=>{"use strict";r.d(e,{He:()=>h,K2:()=>o,Rm:()=>c,VA:()=>s});var i=r(78474);var a=r.n(i);var n=Object.defineProperty;var o=(t,e)=>n(t,"name",{value:e,configurable:true});var s=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:true})};var l={trace:0,debug:1,info:2,warn:3,error:4,fatal:5};var c={trace:o(((...t)=>{}),"trace"),debug:o(((...t)=>{}),"debug"),info:o(((...t)=>{}),"info"),warn:o(((...t)=>{}),"warn"),error:o(((...t)=>{}),"error"),fatal:o(((...t)=>{}),"fatal")};var h=o((function(t="fatal"){let e=l.fatal;if(typeof t==="string"){if(t.toLowerCase()in l){e=l[t]}}else if(typeof t==="number"){e=t}c.trace=()=>{};c.debug=()=>{};c.info=()=>{};c.warn=()=>{};c.error=()=>{};c.fatal=()=>{};if(e<=l.fatal){c.fatal=console.error?console.error.bind(console,d("FATAL"),"color: orange"):console.log.bind(console,"",d("FATAL"))}if(e<=l.error){c.error=console.error?console.error.bind(console,d("ERROR"),"color: orange"):console.log.bind(console,"",d("ERROR"))}if(e<=l.warn){c.warn=console.warn?console.warn.bind(console,d("WARN"),"color: orange"):console.log.bind(console,``,d("WARN"))}if(e<=l.info){c.info=console.info?console.info.bind(console,d("INFO"),"color: lightblue"):console.log.bind(console,"",d("INFO"))}if(e<=l.debug){c.debug=console.debug?console.debug.bind(console,d("DEBUG"),"color: lightgreen"):console.log.bind(console,"",d("DEBUG"))}if(e<=l.trace){c.trace=console.debug?console.debug.bind(console,d("TRACE"),"color: lightgreen"):console.log.bind(console,"",d("TRACE"))}}),"setLogLevel");var d=o((t=>{const e=a()().format("ss.SSS");return`%c${e} : ${t} : `}),"format")},55750:(t,e,r)=>{"use strict";r.d(e,{Fr:()=>h,GX:()=>c,KX:()=>l,WW:()=>o,ue:()=>n});var i=r(42418);var a=r(70416);var n=(0,a.K2)((t=>{const{handDrawnSeed:e}=(0,i.D7)();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}}),"solidStateFill");var o=(0,a.K2)((t=>{const e=s([...t.cssCompiledStyles||[],...t.cssStyles||[],...t.labelStyle||[]]);return{stylesMap:e,stylesArray:[...e]}}),"compileStyles");var s=(0,a.K2)((t=>{const e=new Map;t.forEach((t=>{const[r,i]=t.split(":");e.set(r.trim(),i?.trim())}));return e}),"styles2Map");var l=(0,a.K2)((t=>t==="color"||t==="font-size"||t==="font-family"||t==="font-weight"||t==="font-style"||t==="text-decoration"||t==="text-align"||t==="text-transform"||t==="line-height"||t==="letter-spacing"||t==="word-spacing"||t==="text-shadow"||t==="text-overflow"||t==="white-space"||t==="word-wrap"||t==="word-break"||t==="overflow-wrap"||t==="hyphens"),"isLabelStyle");var c=(0,a.K2)((t=>{const{stylesArray:e}=o(t);const r=[];const i=[];const a=[];const n=[];e.forEach((t=>{const e=t[0];if(l(e)){r.push(t.join(":")+" !important")}else{i.push(t.join(":")+" !important");if(e.includes("stroke")){a.push(t.join(":")+" !important")}if(e==="fill"){n.push(t.join(":")+" !important")}}}));return{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:e,borderStyles:a,backgroundStyles:n}}),"styles2String");var h=(0,a.K2)(((t,e)=>{const{themeVariables:r,handDrawnSeed:a}=(0,i.D7)();const{nodeBorder:n,mainBkg:s}=r;const{stylesMap:l}=o(t);const c=Object.assign({roughness:.7,fill:l.get("fill")||s,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:l.get("stroke")||n,seed:a,strokeWidth:l.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:d(l.get("stroke-dasharray"))},e);return c}),"userNodeOverrides");var d=(0,a.K2)((t=>{if(!t){return[0,0]}const e=t.trim().split(/\s+/).map(Number);if(e.length===1){const t=isNaN(e[0])?0:e[0];return[t,t]}const r=isNaN(e[0])?0:e[0];const i=isNaN(e[1])?0:e[1];return[r,i]}),"getStrokeDashArray")},15164:(t,e,r)=>{"use strict";r.d(e,{O:()=>a});var i=r(70416);var a=(0,i.K2)((({flowchart:t})=>{const e=t?.subGraphTitleMargin?.top??0;const r=t?.subGraphTitleMargin?.bottom??0;const i=e+r;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}}),"getSubGraphTitleMargins")},29479:(t,e,r)=>{"use strict";r.d(e,{D:()=>o});var i=r(42418);var a=r(70416);var n=r(1218);var o=(0,a.K2)((t=>{const{securityLevel:e}=(0,i.D7)();let r=(0,n.Ltv)("body");if(e==="sandbox"){const e=(0,n.Ltv)(`#i${t}`);const i=e.node()?.contentDocument??document;r=(0,n.Ltv)(i.body)}const a=r.select(`#${t}`);return a}),"selectSvgElement")},46103:(t,e,r)=>{"use strict";r.d(e,{Nq:()=>n,RI:()=>l,hq:()=>a});var i=r(70416);var a={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4};var n={arrow_point:9,arrow_cross:12.5,arrow_circle:12.5};function o(t,e){if(t===void 0||e===void 0){return{angle:0,deltaX:0,deltaY:0}}t=s(t);e=s(e);const[r,i]=[t.x,t.y];const[a,n]=[e.x,e.y];const o=a-r;const l=n-i;return{angle:Math.atan(l/o),deltaX:o,deltaY:l}}(0,i.K2)(o,"calculateDeltaAndAngle");var s=(0,i.K2)((t=>{if(Array.isArray(t)){return{x:t[0],y:t[1]}}return t}),"pointTransformer");var l=(0,i.K2)((t=>({x:(0,i.K2)((function(e,r,i){let n=0;const l=s(i[0]).x=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(a,t.arrowTypeEnd)){const{angle:e,deltaX:r}=o(i[i.length-1],i[i.length-2]);n=a[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}const c=Math.abs(s(e).x-s(i[i.length-1]).x);const h=Math.abs(s(e).y-s(i[i.length-1]).y);const d=Math.abs(s(e).x-s(i[0]).x);const u=Math.abs(s(e).y-s(i[0]).y);const f=a[t.arrowTypeStart];const p=a[t.arrowTypeEnd];const g=1;if(c0&&h0&&u=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(a,t.arrowTypeEnd)){const{angle:e,deltaY:r}=o(i[i.length-1],i[i.length-2]);n=a[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}const c=Math.abs(s(e).y-s(i[i.length-1]).y);const h=Math.abs(s(e).x-s(i[i.length-1]).x);const d=Math.abs(s(e).y-s(i[0]).y);const u=Math.abs(s(e).x-s(i[0]).x);const f=a[t.arrowTypeStart];const p=a[t.arrowTypeEnd];const g=1;if(c0&&h0&&u{t("should calculate the angle and deltas between two points",(()=>{e(o([0,0],[0,1])).toStrictEqual({angle:1.5707963267948966,deltaX:0,deltaY:1});e(o([1,0],[0,-1])).toStrictEqual({angle:.7853981633974483,deltaX:-1,deltaY:-1});e(o({x:1,y:0},[0,-1])).toStrictEqual({angle:.7853981633974483,deltaX:-1,deltaY:-1});e(o({x:1,y:0},{x:1,y:0})).toStrictEqual({angle:NaN,deltaX:0,deltaY:0})}));t("should calculate the angle and deltas if one point in undefined",(()=>{e(o(void 0,[0,1])).toStrictEqual({angle:0,deltaX:0,deltaY:0});e(o([0,1],void 0)).toStrictEqual({angle:0,deltaX:0,deltaY:0})}))}))}},95035:(t,e,r)=>{"use strict";r.d(e,{W6:()=>et,GZ:()=>nt,WY:()=>N,pC:()=>P,hE:()=>at,Gc:()=>K});var i=r(29131);var a=r(42418);var n=r(70416);const o=/^[a-z0-9]+(-[a-z0-9]+)*$/;const s=(t,e,r,i="")=>{const a=t.split(":");if(t.slice(0,1)==="@"){if(a.length<2||a.length>3)return null;i=a.shift().slice(1)}if(a.length>3||!a.length)return null;if(a.length>1){const t=a.pop();const r=a.pop();const n={provider:a.length>0?a[0]:i,prefix:r,name:t};return e&&!l(n)?null:n}const n=a[0];const o=n.split("-");if(o.length>1){const t={provider:i,prefix:o.shift(),name:o.join("-")};return e&&!l(t)?null:t}if(r&&i===""){const t={provider:i,prefix:"",name:n};return e&&!l(t,r)?null:t}return null};const l=(t,e)=>{if(!t)return false;return!!((e&&t.prefix===""||!!t.prefix)&&!!t.name)};const c=Object.freeze({left:0,top:0,width:16,height:16});const h=Object.freeze({rotate:0,vFlip:false,hFlip:false});const d=Object.freeze({...c,...h});const u=Object.freeze({...d,body:"",hidden:false});function f(t,e){const r={};if(!t.hFlip!==!e.hFlip)r.hFlip=true;if(!t.vFlip!==!e.vFlip)r.vFlip=true;const i=((t.rotate||0)+(e.rotate||0))%4;if(i)r.rotate=i;return r}function p(t,e){const r=f(t,e);for(const i in u)if(i in h){if(i in t&&!(i in r))r[i]=h[i]}else if(i in e)r[i]=e[i];else if(i in t)r[i]=t[i];return r}function g(t,e){const r=t.icons;const i=t.aliases||Object.create(null);const a=Object.create(null);function n(t){if(r[t])return a[t]=[];if(!(t in a)){a[t]=null;const e=i[t]&&i[t].parent;const r=e&&n(e);if(r)a[t]=[e].concat(r)}return a[t]}(e||Object.keys(r).concat(Object.keys(i))).forEach(n);return a}function m(t,e,r){const i=t.icons;const a=t.aliases||Object.create(null);let n={};function o(t){n=p(i[t]||a[t],n)}o(e);r.forEach(o);return p(t,n)}function y(t,e){if(t.icons[e])return m(t,e,[]);const r=g(t,[e])[e];return r?m(t,e,r):null}const b=Object.freeze({width:null,height:null});const x=Object.freeze({...b,...h});const C=/(-?[0-9.]*[0-9]+[0-9.]*)/g;const v=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function k(t,e,r){if(e===1)return t;r=r||100;if(typeof t==="number")return Math.ceil(t*e*r)/r;if(typeof t!=="string")return t;const i=t.split(C);if(i===null||!i.length)return t;const a=[];let n=i.shift();let o=v.test(n);while(true){if(o){const t=parseFloat(n);if(isNaN(t))a.push(n);else a.push(Math.ceil(t*e*r)/r)}else a.push(n);n=i.shift();if(n===void 0)return a.join("");o=!o}}function w(t,e="defs"){let r="";const i=t.indexOf("<"+e);while(i>=0){const a=t.indexOf(">",i);const n=t.indexOf("",n);if(o===-1)break;r+=t.slice(a+1,n).trim();t=t.slice(0,i).trim()+t.slice(o+1)}return{defs:r,content:t}}function S(t,e){return t?""+t+""+e:e}function A(t,e,r){const i=w(t);return S(i.defs,e+i.content+r)}const T=t=>t==="unset"||t==="undefined"||t==="none";function B(t,e){const r={...d,...t};const i={...x,...e};const a={left:r.left,top:r.top,width:r.width,height:r.height};let n=r.body;[r,i].forEach((t=>{const e=[];const r=t.hFlip;const i=t.vFlip;let o=t.rotate;if(r)if(i)o+=2;else{e.push("translate("+(a.width+a.left).toString()+" "+(0-a.top).toString()+")");e.push("scale(-1 1)");a.top=a.left=0}else if(i){e.push("translate("+(0-a.left).toString()+" "+(a.height+a.top).toString()+")");e.push("scale(1 -1)");a.top=a.left=0}let s;if(o<0)o-=Math.floor(o/4)*4;o=o%4;switch(o){case 1:s=a.height/2+a.top;e.unshift("rotate(90 "+s.toString()+" "+s.toString()+")");break;case 2:e.unshift("rotate(180 "+(a.width/2+a.left).toString()+" "+(a.height/2+a.top).toString()+")");break;case 3:s=a.width/2+a.left;e.unshift("rotate(-90 "+s.toString()+" "+s.toString()+")");break}if(o%2===1){if(a.left!==a.top){s=a.left;a.left=a.top;a.top=s}if(a.width!==a.height){s=a.width;a.width=a.height;a.height=s}}if(e.length)n=A(n,'',"")}));const o=i.width;const s=i.height;const l=a.width;const c=a.height;let h;let u;if(o===null){u=s===null?"1em":s==="auto"?c:s;h=k(u,l/c)}else{h=o==="auto"?l:o;u=s===null?k(h,c/l):s==="auto"?c:s}const f={};const p=(t,e)=>{if(!T(e))f[t]=e.toString()};p("width",h);p("height",u);const g=[a.left,a.top,l,c];f.viewBox=g.join(" ");return{attributes:f,viewBox:g,body:n}}function L(t,e){let r=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in e)r+=" "+i+'="'+e[i]+'"';return'"+t+""}const M=/\sid="(\S+)"/g;const F="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let _=0;function $(t,e=F){const r=[];let i;while(i=M.exec(t))r.push(i[1]);if(!r.length)return t;const a="suffix"+(Math.random()*16777216|Date.now()).toString(16);r.forEach((r=>{const i=typeof e==="function"?e(r):e+(_++).toString();const n=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+n+')([")]|\\.[a-z])',"g"),"$1"+i+a+"$3")}));t=t.replace(new RegExp(a,"g"),"");return t}var E=r(1218);var O=r(50926);var D=r(60513);var K={body:'?',height:80,width:80};var I=new Map;var R=new Map;var P=(0,n.K2)((t=>{for(const e of t){if(!e.name){throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.')}n.Rm.debug("Registering icon pack:",e.name);if("loader"in e){R.set(e.name,e.loader)}else if("icons"in e){I.set(e.name,e.icons)}else{n.Rm.error("Invalid icon loader:",e);throw new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}}}),"registerIconPacks");var q=(0,n.K2)((async(t,e)=>{const r=s(t,true,e!==void 0);if(!r){throw new Error(`Invalid icon name: ${t}`)}const i=r.prefix||e;if(!i){throw new Error(`Icon name must contain a prefix: ${t}`)}let a=I.get(i);if(!a){const t=R.get(i);if(!t){throw new Error(`Icon set not found: ${r.prefix}`)}try{const e=await t();a={...e,prefix:i};I.set(i,a)}catch(l){n.Rm.error(l);throw new Error(`Failed to load icon set: ${r.prefix}`)}}const o=y(a,r.name);if(!o){throw new Error(`Icon not found: ${t}`)}return o}),"getRegisteredIconData");var z=(0,n.K2)((async t=>{try{await q(t);return true}catch{return false}}),"isIconAvailable");var N=(0,n.K2)((async(t,e,r)=>{let i;try{i=await q(t,e?.fallbackPrefix)}catch(l){n.Rm.error(l);i=K}const o=B(i,e);const s=L($(o.body),{...o.attributes,...r});return(0,a.jZ)(s,(0,a.zj)())}),"getIconSVG");function W(t,{markdownAutoWrap:e}){const r=t.replace(//g,"\n");const i=r.replace(/\n{2,}/g,"\n");const a=(0,D.T)(i);if(e===false){return a.replace(/ /g," ")}return a}(0,n.K2)(W,"preprocessMarkdown");function j(t,e={}){const r=W(t,e);const i=O.marked.lexer(r);const a=[[]];let o=0;function s(t,e="normal"){if(t.type==="text"){const r=t.text.split("\n");r.forEach(((t,r)=>{if(r!==0){o++;a.push([])}t.split(" ").forEach((t=>{t=t.replace(/'/g,`'`);if(t){a[o].push({content:t,type:e})}}))}))}else if(t.type==="strong"||t.type==="em"){t.tokens.forEach((e=>{s(e,t.type)}))}else if(t.type==="html"){a[o].push({content:t.text,type:"normal"})}}(0,n.K2)(s,"processNode");i.forEach((t=>{if(t.type==="paragraph"){t.tokens?.forEach((t=>{s(t)}))}else if(t.type==="html"){a[o].push({content:t.text,type:"normal"})}else{a[o].push({content:t.raw,type:"normal"})}}));return a}(0,n.K2)(j,"markdownToLines");function H(t,{markdownAutoWrap:e}={}){const r=O.marked.lexer(t);function i(t){if(t.type==="text"){if(e===false){return t.text.replace(/\n */g,"
").replace(/ /g," ")}return t.text.replace(/\n */g,"
")}else if(t.type==="strong"){return`${t.tokens?.map(i).join("")}`}else if(t.type==="em"){return`${t.tokens?.map(i).join("")}`}else if(t.type==="paragraph"){return`

${t.tokens?.map(i).join("")}

`}else if(t.type==="space"){return""}else if(t.type==="html"){return`${t.text}`}else if(t.type==="escape"){return t.text}n.Rm.warn(`Unsupported markdown: ${t.type}`);return t.raw}(0,n.K2)(i,"output");return r.map(i).join("")}(0,n.K2)(H,"markdownToHTML");function G(t){if(Intl.Segmenter){return[...(new Intl.Segmenter).segment(t)].map((t=>t.segment))}return[...t]}(0,n.K2)(G,"splitTextToChars");function U(t,e){const r=G(e.content);return Y(t,[],r,e.type)}(0,n.K2)(U,"splitWordToFitWidth");function Y(t,e,r,i){if(r.length===0){return[{content:e.join(""),type:i},{content:"",type:i}]}const[a,...n]=r;const o=[...e,a];if(t([{content:o.join(""),type:i}])){return Y(t,o,n,i)}if(e.length===0&&a){e.push(a);r.shift()}return[{content:e.join(""),type:i},{content:r.join(""),type:i}]}(0,n.K2)(Y,"splitWordToFitWidthRecursion");function X(t,e){if(t.some((({content:t})=>t.includes("\n")))){throw new Error("splitLineToFitWidth does not support newlines in the line")}return V(t,e)}(0,n.K2)(X,"splitLineToFitWidth");function V(t,e,r=[],i=[]){if(t.length===0){if(i.length>0){r.push(i)}return r.length>0?r:[]}let a="";if(t[0].content===" "){a=" ";t.shift()}const n=t.shift()??{content:" ",type:"normal"};const o=[...i];if(a!==""){o.push({content:a,type:"normal"})}o.push(n);if(e(o)){return V(t,e,r,o)}if(i.length>0){r.push(i);t.unshift(n)}else if(n.content){const[i,a]=U(e,n);r.push([i]);if(a.content){t.unshift(a)}}return V(t,e,r)}(0,n.K2)(V,"splitLineToFitWidthRecursion");function Z(t,e){if(e){t.attr("style",e)}}(0,n.K2)(Z,"applyStyle");async function Q(t,e,r,i,n=false,o=(0,a.zj)()){const s=t.append("foreignObject");s.attr("width",`${10*r}px`);s.attr("height",`${10*r}px`);const l=s.append("xhtml:div");const c=(0,a.Wi)(e.label)?await(0,a.dj)(e.label.replace(a.Y2.lineBreakRegex,"\n"),o):(0,a.jZ)(e.label,o);const h=e.isNode?"nodeLabel":"edgeLabel";const d=l.append("span");d.html(c);Z(d,e.labelStyle);d.attr("class",`${h} ${i}`);Z(l,e.labelStyle);l.style("display","table-cell");l.style("white-space","nowrap");l.style("line-height","1.5");l.style("max-width",r+"px");l.style("text-align","center");l.attr("xmlns","http://www.w3.org/1999/xhtml");if(n){l.attr("class","labelBkg")}let u=l.node().getBoundingClientRect();if(u.width===r){l.style("display","table");l.style("white-space","break-spaces");l.style("width",r+"px");u=l.node().getBoundingClientRect()}return s.node()}(0,n.K2)(Q,"addHtmlSpan");function J(t,e,r){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em")}(0,n.K2)(J,"createTspan");function tt(t,e,r){const i=t.append("text");const a=J(i,1,e);it(a,r);const n=a.node().getComputedTextLength();i.remove();return n}(0,n.K2)(tt,"computeWidthOfText");function et(t,e,r){const i=t.append("text");const a=J(i,1,e);it(a,[{content:r,type:"normal"}]);const n=a.node()?.getBoundingClientRect();if(n){i.remove()}return n}(0,n.K2)(et,"computeDimensionOfText");function rt(t,e,r,i=false){const a=1.1;const o=e.append("g");const s=o.insert("rect").attr("class","background").attr("style","stroke: none");const l=o.append("text").attr("y","-10.1");let c=0;for(const h of r){const e=(0,n.K2)((e=>tt(o,a,e)<=t),"checkWidth");const r=e(h)?[h]:X(h,e);for(const t of r){const e=J(l,c,a);it(e,t);c++}}if(i){const t=l.node().getBBox();const e=2;s.attr("x",t.x-e).attr("y",t.y-e).attr("width",t.width+2*e).attr("height",t.height+2*e);return o.node()}else{return l.node()}}(0,n.K2)(rt,"createFormattedText");function it(t,e){t.text("");e.forEach(((e,r)=>{const i=t.append("tspan").attr("font-style",e.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",e.type==="strong"?"bold":"normal");if(r===0){i.text(e.content)}else{i.text(" "+e.content)}}))}(0,n.K2)(it,"updateTextContentAndStyles");async function at(t,e={}){const r=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,((t,i,n)=>{r.push((async()=>{const r=`${i}:${n}`;if(await z(r)){return await N(r,void 0,{class:"label-icon"})}else{return``}})());return t}));const i=await Promise.all(r);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(()=>i.shift()??""))}(0,n.K2)(at,"replaceIconSubstring");var nt=(0,n.K2)((async(t,e="",{style:r="",isTitle:o=false,classes:s="",useHtmlLabels:l=true,isNode:c=true,width:h=200,addSvgBackground:d=false}={},u)=>{n.Rm.debug("XYZ createText",e,r,o,s,l,c,"addSvgBackground: ",d);if(l){const n=H(e,u);const o=await at((0,i.Sm)(n),u);const l=e.replace(/\\\\/g,"\\");const f={isNode:c,label:(0,a.Wi)(e)?l:o,labelStyle:r.replace("fill:","color:")};const p=await Q(t,f,h,s,d,u);return p}else{const i=e.replace(//g,"
");const a=j(i.replace("
","
"),u);const n=rt(h,t,a,e?d:false);if(c){if(/stroke:/.exec(r)){r=r.replace("stroke:","lineColor:")}const t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,E.Ltv)(n).attr("style",t)}else{const t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");(0,E.Ltv)(n).select("rect").attr("style",t.replace(/background:/g,"fill:"));const e=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,E.Ltv)(n).select("text").attr("style",e)}return n}}),"createText")},47655:(t,e,r)=>{"use strict";r.d(e,{DA:()=>w,IU:()=>O,U:()=>E,U7:()=>$e,U_:()=>Oe,Zk:()=>d,aP:()=>Me,gh:()=>Ee,lC:()=>f,on:()=>_e});var i=r(15164);var a=r(55750);var n=r(95035);var o=r(29131);var s=r(42418);var l=r(70416);var c=r(1218);var h=r(52274);var d=(0,l.K2)((async(t,e,r)=>{let i;const a=e.useHtmlLabels||(0,s._3)((0,s.D7)()?.htmlLabels);if(!r){i="node default"}else{i=r}const h=t.insert("g").attr("class",i).attr("id",e.domId||e.id);const d=h.insert("g").attr("class","label").attr("style",(0,o.KL)(e.labelStyle));let u;if(e.label===void 0){u=""}else{u=typeof e.label==="string"?e.label:e.label[0]}const f=await(0,n.GZ)(d,(0,s.jZ)((0,o.Sm)(u),(0,s.D7)()),{useHtmlLabels:a,width:e.width||(0,s.D7)().flowchart?.wrappingWidth,cssClasses:"markdown-node-label",style:e.labelStyle,addSvgBackground:!!e.icon||!!e.img});let p=f.getBBox();const g=(e?.padding??0)/2;if(a){const t=f.children[0];const e=(0,c.Ltv)(f);const r=t.getElementsByTagName("img");if(r){const t=u.replace(/]*>/g,"").trim()==="";await Promise.all([...r].map((e=>new Promise((r=>{function i(){e.style.display="flex";e.style.flexDirection="column";if(t){const t=(0,s.D7)().fontSize?(0,s.D7)().fontSize:window.getComputedStyle(document.body).fontSize;const r=5;const[i=s.UI.fontSize]=(0,o.I5)(t);const a=i*r+"px";e.style.minWidth=a;e.style.maxWidth=a}else{e.style.width="100%"}r(e)}(0,l.K2)(i,"setupImage");setTimeout((()=>{if(e.complete){i()}}));e.addEventListener("error",i);e.addEventListener("load",i)})))))}p=t.getBoundingClientRect();e.attr("width",p.width);e.attr("height",p.height)}if(a){d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")")}else{d.attr("transform","translate(0, "+-p.height/2+")")}if(e.centerLabel){d.attr("transform","translate("+-p.width/2+", "+-p.height/2+")")}d.insert("rect",":first-child");return{shapeSvg:h,bbox:p,halfPadding:g,label:d}}),"labelHelper");var u=(0,l.K2)((async(t,e,r)=>{const i=r.useHtmlLabels||(0,s._3)((0,s.D7)()?.flowchart?.htmlLabels);const a=t.insert("g").attr("class","label").attr("style",r.labelStyle||"");const l=await(0,n.GZ)(a,(0,s.jZ)((0,o.Sm)(e),(0,s.D7)()),{useHtmlLabels:i,width:r.width||(0,s.D7)()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let h=l.getBBox();const d=r.padding/2;if((0,s._3)((0,s.D7)()?.flowchart?.htmlLabels)){const t=l.children[0];const e=(0,c.Ltv)(l);h=t.getBoundingClientRect();e.attr("width",h.width);e.attr("height",h.height)}if(i){a.attr("transform","translate("+-h.width/2+", "+-h.height/2+")")}else{a.attr("transform","translate(0, "+-h.height/2+")")}if(r.centerLabel){a.attr("transform","translate("+-h.width/2+", "+-h.height/2+")")}a.insert("rect",":first-child");return{shapeSvg:t,bbox:h,halfPadding:d,label:a}}),"insertLabel");var f=(0,l.K2)(((t,e)=>{const r=e.node().getBBox();t.width=r.width;t.height=r.height}),"updateNodeBounds");var p=(0,l.K2)(((t,e)=>(t.look==="handDrawn"?"rough-node":"node")+" "+t.cssClasses+" "+(e||"")),"getNodeClasses");function g(t){const e=t.map(((t,e)=>`${e===0?"M":"L"}${t.x},${t.y}`));e.push("Z");return e.join(" ")}(0,l.K2)(g,"createPathFromPoints");function m(t,e,r,i,a,n){const o=[];const s=50;const l=r-t;const c=i-e;const h=l/n;const d=2*Math.PI/h;const u=e+c/2;for(let f=0;f<=s;f++){const e=f/s;const r=t+e*l;const i=u+a*Math.sin(d*(r-t));o.push({x:r,y:i})}return o}(0,l.K2)(m,"generateFullSineWavePoints");function y(t,e,r,i,a,n){const o=[];const s=a*Math.PI/180;const l=n*Math.PI/180;const c=l-s;const h=c/(i-1);for(let d=0;d{var r=t.x;var i=t.y;var a=e.x-r;var n=e.y-i;var o=t.width/2;var s=t.height/2;var l,c;if(Math.abs(n)*o>Math.abs(a)*s){if(n<0){s=-s}l=n===0?0:s*a/n;c=s}else{if(a<0){o=-o}l=o;c=a===0?0:o*n/a}return{x:r+l,y:i+c}}),"intersectRect");var x=b;function C(t,e){if(e){t.attr("style",e)}}(0,l.K2)(C,"applyStyle");async function v(t){const e=(0,c.Ltv)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject"));const r=e.append("xhtml:div");const i=(0,s.D7)();let a=t.label;if(t.label&&(0,s.Wi)(t.label)){a=await(0,s.dj)(t.label.replace(s.Y2.lineBreakRegex,"\n"),i)}const n=t.isNode?"nodeLabel":"edgeLabel";const o='"+a+"";r.html((0,s.jZ)(o,i));C(r,t.labelStyle);r.style("display","inline-block");r.style("padding-right","1px");r.style("white-space","nowrap");r.attr("xmlns","http://www.w3.org/1999/xhtml");return e.node()}(0,l.K2)(v,"addHtmlLabel");var k=(0,l.K2)((async(t,e,r,i)=>{let a=t||"";if(typeof a==="object"){a=a[0]}if((0,s._3)((0,s.D7)().flowchart.htmlLabels)){a=a.replace(/\\n|\n/g,"
");l.Rm.info("vertexText"+a);const t={isNode:i,label:(0,o.Sm)(a).replace(/fa[blrs]?:fa-[\w-]+/g,(t=>``)),labelStyle:e?e.replace("fill:","color:"):e};let r=await v(t);return r}else{const t=document.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",e.replace("color:","fill:"));let i=[];if(typeof a==="string"){i=a.split(/\\n|\n|/gi)}else if(Array.isArray(a)){i=a}else{i=[]}for(const e of i){const i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");i.setAttribute("dy","1em");i.setAttribute("x","0");if(r){i.setAttribute("class","title-row")}else{i.setAttribute("class","row")}i.textContent=e.trim();t.appendChild(i)}return t}}),"createLabel");var w=k;var S=(0,l.K2)(((t,e,r,i,a)=>["M",t+a,e,"H",t+r-a,"A",a,a,0,0,1,t+r,e+a,"V",e+i-a,"A",a,a,0,0,1,t+r-a,e+i,"H",t+a,"A",a,a,0,0,1,t,e+i-a,"V",e+a,"A",a,a,0,0,1,t+a,e,"Z"].join(" ")),"createRoundedRectPathD");var A=(0,l.K2)((async(t,e)=>{l.Rm.info("Creating subgraph rect for ",e.id,e);const r=(0,s.D7)();const{themeVariables:o,handDrawnSeed:d}=r;const{clusterBkg:u,clusterBorder:f}=o;const{labelStyles:p,nodeStyles:g,borderStyles:m,backgroundStyles:y}=(0,a.GX)(e);const b=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look);const C=(0,s._3)(r.flowchart.htmlLabels);const v=b.insert("g").attr("class","cluster-label ");const k=await(0,n.GZ)(v,e.label,{style:e.labelStyle,useHtmlLabels:C,isNode:true});let w=k.getBBox();if((0,s._3)(r.flowchart.htmlLabels)){const t=k.children[0];const e=(0,c.Ltv)(k);w=t.getBoundingClientRect();e.attr("width",w.width);e.attr("height",w.height)}const A=e.width<=w.width+e.padding?w.width+e.padding:e.width;if(e.width<=w.width+e.padding){e.diff=(A-e.width)/2-e.padding}else{e.diff=-e.padding}const T=e.height;const B=e.x-A/2;const L=e.y-T/2;l.Rm.trace("Data ",e,JSON.stringify(e));let M;if(e.look==="handDrawn"){const t=h.A.svg(b);const r=(0,a.Fr)(e,{roughness:.7,fill:u,stroke:f,fillWeight:3,seed:d});const i=t.path(S(B,L,A,T,0),r);M=b.insert((()=>{l.Rm.debug("Rough node insert CXC",i);return i}),":first-child");M.select("path:nth-child(2)").attr("style",m.join(";"));M.select("path").attr("style",y.join(";").replace("fill","stroke"))}else{M=b.insert("rect",":first-child");M.attr("style",g).attr("rx",e.rx).attr("ry",e.ry).attr("x",B).attr("y",L).attr("width",A).attr("height",T)}const{subGraphTitleTopMargin:F}=(0,i.O)(r);v.attr("transform",`translate(${e.x-w.width/2}, ${e.y-e.height/2+F})`);if(p){const t=v.select("span");if(t){t.attr("style",p)}}const _=M.node().getBBox();e.offsetX=0;e.width=_.width;e.height=_.height;e.offsetY=w.height-e.padding/2;e.intersect=function(t){return x(e,t)};return{cluster:b,labelBBox:w}}),"rect");var T=(0,l.K2)(((t,e)=>{const r=t.insert("g").attr("class","note-cluster").attr("id",e.id);const i=r.insert("rect",":first-child");const a=0*e.padding;const n=a/2;i.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-n).attr("y",e.y-e.height/2-n).attr("width",e.width+a).attr("height",e.height+a).attr("fill","none");const o=i.node().getBBox();e.width=o.width;e.height=o.height;e.intersect=function(t){return x(e,t)};return{cluster:r,labelBBox:{width:0,height:0}}}),"noteGroup");var B=(0,l.K2)((async(t,e)=>{const r=(0,s.D7)();const{themeVariables:i,handDrawnSeed:a}=r;const{altBackground:n,compositeBackground:o,compositeTitleBackground:l,nodeBorder:d}=i;const u=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-id",e.id).attr("data-look",e.look);const f=u.insert("g",":first-child");const p=u.insert("g").attr("class","cluster-label");let g=u.append("rect");const m=p.node().appendChild(await w(e.label,e.labelStyle,void 0,true));let y=m.getBBox();if((0,s._3)(r.flowchart.htmlLabels)){const t=m.children[0];const e=(0,c.Ltv)(m);y=t.getBoundingClientRect();e.attr("width",y.width);e.attr("height",y.height)}const b=0*e.padding;const C=b/2;const v=(e.width<=y.width+e.padding?y.width+e.padding:e.width)+b;if(e.width<=y.width+e.padding){e.diff=(v-e.width)/2-e.padding}else{e.diff=-e.padding}const k=e.height+b;const A=e.height+b-y.height-6;const T=e.x-v/2;const B=e.y-k/2;e.width=v;const L=e.y-e.height/2-C+y.height+2;let M;if(e.look==="handDrawn"){const t=e.cssClasses.includes("statediagram-cluster-alt");const r=h.A.svg(u);const i=e.rx||e.ry?r.path(S(T,B,v,k,10),{roughness:.7,fill:l,fillStyle:"solid",stroke:d,seed:a}):r.rectangle(T,B,v,k,{seed:a});M=u.insert((()=>i),":first-child");const s=r.rectangle(T,L,v,A,{fill:t?n:o,fillStyle:t?"hachure":"solid",stroke:d,seed:a});M=u.insert((()=>i),":first-child");g=u.insert((()=>s))}else{M=f.insert("rect",":first-child");const t="outer";M.attr("class",t).attr("x",T).attr("y",B).attr("width",v).attr("height",k).attr("data-look",e.look);g.attr("class","inner").attr("x",T).attr("y",L).attr("width",v).attr("height",A)}p.attr("transform",`translate(${e.x-y.width/2}, ${B+1-((0,s._3)(r.flowchart.htmlLabels)?0:3)})`);const F=M.node().getBBox();e.height=F.height;e.offsetX=0;e.offsetY=y.height-e.padding/2;e.labelBBox=y;e.intersect=function(t){return x(e,t)};return{cluster:u,labelBBox:y}}),"roundedWithTitle");var L=(0,l.K2)((async(t,e)=>{l.Rm.info("Creating subgraph rect for ",e.id,e);const r=(0,s.D7)();const{themeVariables:o,handDrawnSeed:d}=r;const{clusterBkg:u,clusterBorder:f}=o;const{labelStyles:p,nodeStyles:g,borderStyles:m,backgroundStyles:y}=(0,a.GX)(e);const b=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look);const C=(0,s._3)(r.flowchart.htmlLabels);const v=b.insert("g").attr("class","cluster-label ");const k=await(0,n.GZ)(v,e.label,{style:e.labelStyle,useHtmlLabels:C,isNode:true,width:e.width});let w=k.getBBox();if((0,s._3)(r.flowchart.htmlLabels)){const t=k.children[0];const e=(0,c.Ltv)(k);w=t.getBoundingClientRect();e.attr("width",w.width);e.attr("height",w.height)}const A=e.width<=w.width+e.padding?w.width+e.padding:e.width;if(e.width<=w.width+e.padding){e.diff=(A-e.width)/2-e.padding}else{e.diff=-e.padding}const T=e.height;const B=e.x-A/2;const L=e.y-T/2;l.Rm.trace("Data ",e,JSON.stringify(e));let M;if(e.look==="handDrawn"){const t=h.A.svg(b);const r=(0,a.Fr)(e,{roughness:.7,fill:u,stroke:f,fillWeight:4,seed:d});const i=t.path(S(B,L,A,T,e.rx),r);M=b.insert((()=>{l.Rm.debug("Rough node insert CXC",i);return i}),":first-child");M.select("path:nth-child(2)").attr("style",m.join(";"));M.select("path").attr("style",y.join(";").replace("fill","stroke"))}else{M=b.insert("rect",":first-child");M.attr("style",g).attr("rx",e.rx).attr("ry",e.ry).attr("x",B).attr("y",L).attr("width",A).attr("height",T)}const{subGraphTitleTopMargin:F}=(0,i.O)(r);v.attr("transform",`translate(${e.x-w.width/2}, ${e.y-e.height/2+F})`);if(p){const t=v.select("span");if(t){t.attr("style",p)}}const _=M.node().getBBox();e.offsetX=0;e.width=_.width;e.height=_.height;e.offsetY=w.height-e.padding/2;e.intersect=function(t){return x(e,t)};return{cluster:b,labelBBox:w}}),"kanbanSection");var M=(0,l.K2)(((t,e)=>{const r=(0,s.D7)();const{themeVariables:i,handDrawnSeed:a}=r;const{nodeBorder:n}=i;const o=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-look",e.look);const l=o.insert("g",":first-child");const c=0*e.padding;const d=e.width+c;e.diff=-e.padding;const u=e.height+c;const f=e.x-d/2;const p=e.y-u/2;e.width=d;let g;if(e.look==="handDrawn"){const t=h.A.svg(o);const e=t.rectangle(f,p,d,u,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:n,seed:a});g=o.insert((()=>e),":first-child")}else{g=l.insert("rect",":first-child");const t="divider";g.attr("class",t).attr("x",f).attr("y",p).attr("width",d).attr("height",u).attr("data-look",e.look)}const m=g.node().getBBox();e.height=m.height;e.offsetX=0;e.offsetY=0;e.intersect=function(t){return x(e,t)};return{cluster:o,labelBBox:{}}}),"divider");var F=A;var _={rect:A,squareRect:F,roundedWithTitle:B,noteGroup:T,divider:M,kanbanSection:L};var $=new Map;var E=(0,l.K2)((async(t,e)=>{const r=e.shape||"rect";const i=await _[r](t,e);$.set(e.id,i);return i}),"insertCluster");var O=(0,l.K2)((()=>{$=new Map}),"clear");function D(t,e){return t.intersect(e)}(0,l.K2)(D,"intersectNode");var K=D;function I(t,e,r,i){var a=t.x;var n=t.y;var o=a-i.x;var s=n-i.y;var l=Math.sqrt(e*e*s*s+r*r*o*o);var c=Math.abs(e*r*o/l);if(i.x0}(0,l.K2)(N,"sameSign");var W=z;function j(t,e,r){let i=t.x;let a=t.y;let n=[];let o=Number.POSITIVE_INFINITY;let s=Number.POSITIVE_INFINITY;if(typeof e.forEach==="function"){e.forEach((function(t){o=Math.min(o,t.x);s=Math.min(s,t.y)}))}else{o=Math.min(o,e.x);s=Math.min(s,e.y)}let l=i-t.width/2-o;let c=a-t.height/2-s;for(let h=0;h1){n.sort((function(t,e){let i=t.x-r.x;let a=t.y-r.y;let n=Math.sqrt(i*i+a*a);let o=e.x-r.x;let s=e.y-r.y;let l=Math.sqrt(o*o+s*s);return nm),":first-child");y.attr("class","anchor").attr("style",(0,o.KL)(d));f(e,y);e.intersect=function(t){l.Rm.info("Circle intersect",e,c,t);return G.circle(e,c,t)};return s}(0,l.K2)(U,"anchor");function Y(t,e,r,i,a,n,o){const s=20;const l=(t+r)/2;const c=(e+i)/2;const h=Math.atan2(i-e,r-t);const d=(r-t)/2;const u=(i-e)/2;const f=d/a;const p=u/n;const g=Math.sqrt(f**2+p**2);if(g>1){throw new Error("The given radii are too small to create an arc between the points.")}const m=Math.sqrt(1-g**2);const y=l+m*n*Math.sin(h)*(o?-1:1);const b=c-m*a*Math.cos(h)*(o?-1:1);const x=Math.atan2((e-b)/n,(t-y)/a);const C=Math.atan2((i-b)/n,(r-y)/a);let v=C-x;if(o&&v<0){v+=2*Math.PI}if(!o&&v>0){v-=2*Math.PI}const k=[];for(let w=0;wv),":first-child");k.attr("class","basic label-container");if(m&&e.look!=="handDrawn"){k.selectAll("path").attr("style",m)}if(i&&e.look!=="handDrawn"){k.selectAll("path").attr("style",i)}k.attr("transform",`translate(${u/2}, 0)`);f(e,k);e.intersect=function(t){const r=G.polygon(e,y,t);return r};return n}(0,l.K2)(X,"bowTieRect");function V(t,e,r,i){return t.insert("polygon",":first-child").attr("points",i.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}(0,l.K2)(V,"insertPolygonShape");async function Z(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:o}=await d(t,e,p(e));const s=o.height+e.padding;const l=12;const c=o.width+e.padding+l;const u=0;const m=c;const y=-s;const b=0;const x=[{x:u+l,y},{x:m,y},{x:m,y:b},{x:u,y:b},{x:u,y:y+l},{x:u+l,y}];let C;const{cssStyles:v}=e;if(e.look==="handDrawn"){const t=h.A.svg(n);const r=(0,a.Fr)(e,{});const i=g(x);const o=t.path(i,r);C=n.insert((()=>o),":first-child").attr("transform",`translate(${-c/2}, ${s/2})`);if(v){C.attr("style",v)}}else{C=V(n,c,s,x)}if(i){C.attr("style",i)}f(e,C);e.intersect=function(t){return G.polygon(e,x,t)};return n}(0,l.K2)(Z,"card");function Q(t,e){const{nodeStyles:r}=(0,a.GX)(e);e.label="";const i=t.insert("g").attr("class",p(e)).attr("id",e.domId??e.id);const{cssStyles:n}=e;const o=Math.max(28,e.width??0);const s=[{x:0,y:o/2},{x:o/2,y:0},{x:0,y:-o/2},{x:-o/2,y:0}];const l=h.A.svg(i);const c=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){c.roughness=0;c.fillStyle="solid"}const d=g(s);const u=l.path(d,c);const f=i.insert((()=>u),":first-child");if(n&&e.look!=="handDrawn"){f.selectAll("path").attr("style",n)}if(r&&e.look!=="handDrawn"){f.selectAll("path").attr("style",r)}e.width=28;e.height=28;e.intersect=function(t){return G.polygon(e,s,t)};return i}(0,l.K2)(Q,"choice");async function J(t,e,r){const{labelStyles:i,nodeStyles:n}=(0,a.GX)(e);e.labelStyle=i;const{shapeSvg:s,bbox:c,halfPadding:u}=await d(t,e,p(e));const g=r?.padding??u;const m=c.width/2+g;let y;const{cssStyles:b}=e;if(e.look==="handDrawn"){const t=h.A.svg(s);const r=(0,a.Fr)(e,{});const i=t.circle(0,0,m*2,r);y=s.insert((()=>i),":first-child");y.attr("class","basic label-container").attr("style",(0,o.KL)(b))}else{y=s.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",m).attr("cx",0).attr("cy",0)}f(e,y);e.calcIntersect=function(t,e){const r=t.width/2;return G.circle(t,r,e)};e.intersect=function(t){l.Rm.info("Circle intersect",e,m,t);return G.circle(e,m,t)};return s}(0,l.K2)(J,"circle");function tt(t){const e=Math.cos(Math.PI/4);const r=Math.sin(Math.PI/4);const i=t*2;const a={x:i/2*e,y:i/2*r};const n={x:-(i/2)*e,y:i/2*r};const o={x:-(i/2)*e,y:-(i/2)*r};const s={x:i/2*e,y:-(i/2)*r};return`M ${n.x},${n.y} L ${s.x},${s.y}\n M ${a.x},${a.y} L ${o.x},${o.y}`}(0,l.K2)(tt,"createLine");function et(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;e.label="";const n=t.insert("g").attr("class",p(e)).attr("id",e.domId??e.id);const o=Math.max(30,e?.width??0);const{cssStyles:s}=e;const c=h.A.svg(n);const d=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){d.roughness=0;d.fillStyle="solid"}const u=c.circle(0,0,o*2,d);const g=tt(o);const m=c.path(g,d);const y=n.insert((()=>u),":first-child");y.insert((()=>m));if(s&&e.look!=="handDrawn"){y.selectAll("path").attr("style",s)}if(i&&e.look!=="handDrawn"){y.selectAll("path").attr("style",i)}f(e,y);e.intersect=function(t){l.Rm.info("crossedCircle intersect",e,{radius:o,point:t});const r=G.circle(e,o,t);return r};return n}(0,l.K2)(et,"crossedCircle");function rt(t,e,r,i=100,a=0,n=180){const o=[];const s=a*Math.PI/180;const l=n*Math.PI/180;const c=l-s;const h=c/(i-1);for(let d=0;dA),":first-child").attr("stroke-opacity",0);T.insert((()=>w),":first-child");T.attr("class","text");if(m&&e.look!=="handDrawn"){T.selectAll("path").attr("style",m)}if(i&&e.look!=="handDrawn"){T.selectAll("path").attr("style",i)}T.attr("transform",`translate(${u}, 0)`);s.attr("transform",`translate(${-l/2+u-(o.x-(o.left??0))},${-c/2+(e.padding??0)/2-(o.y-(o.top??0))})`);f(e,T);e.intersect=function(t){const r=G.polygon(e,b,t);return r};return n}(0,l.K2)(it,"curlyBraceLeft");function at(t,e,r,i=100,a=0,n=180){const o=[];const s=a*Math.PI/180;const l=n*Math.PI/180;const c=l-s;const h=c/(i-1);for(let d=0;dA),":first-child").attr("stroke-opacity",0);T.insert((()=>w),":first-child");T.attr("class","text");if(m&&e.look!=="handDrawn"){T.selectAll("path").attr("style",m)}if(i&&e.look!=="handDrawn"){T.selectAll("path").attr("style",i)}T.attr("transform",`translate(${-u}, 0)`);s.attr("transform",`translate(${-l/2+(e.padding??0)/2-(o.x-(o.left??0))},${-c/2+(e.padding??0)/2-(o.y-(o.top??0))})`);f(e,T);e.intersect=function(t){const r=G.polygon(e,b,t);return r};return n}(0,l.K2)(nt,"curlyBraceRight");function ot(t,e,r,i=100,a=0,n=180){const o=[];const s=a*Math.PI/180;const l=n*Math.PI/180;const c=l-s;const h=c/(i-1);for(let d=0;dM),":first-child").attr("stroke-opacity",0);F.insert((()=>S),":first-child");F.insert((()=>B),":first-child");F.attr("class","text");if(m&&e.look!=="handDrawn"){F.selectAll("path").attr("style",m)}if(i&&e.look!=="handDrawn"){F.selectAll("path").attr("style",i)}F.attr("transform",`translate(${u-u/4}, 0)`);s.attr("transform",`translate(${-l/2+(e.padding??0)/2-(o.x-(o.left??0))},${-c/2+(e.padding??0)/2-(o.y-(o.top??0))})`);f(e,F);e.intersect=function(t){const r=G.polygon(e,x,t);return r};return n}(0,l.K2)(st,"curlyBraces");async function lt(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:o}=await d(t,e,p(e));const s=80,l=20;const c=Math.max(s,(o.width+(e.padding??0)*2)*1.25,e?.width??0);const u=Math.max(l,o.height+(e.padding??0)*2,e?.height??0);const m=u/2;const{cssStyles:b}=e;const x=h.A.svg(n);const C=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){C.roughness=0;C.fillStyle="solid"}const v=c,k=u;const w=v-m;const S=k/4;const A=[{x:w,y:0},{x:S,y:0},{x:0,y:k/2},{x:S,y:k},{x:w,y:k},...y(-w,-k/2,m,50,270,90)];const T=g(A);const B=x.path(T,C);const L=n.insert((()=>B),":first-child");L.attr("class","basic label-container");if(b&&e.look!=="handDrawn"){L.selectChildren("path").attr("style",b)}if(i&&e.look!=="handDrawn"){L.selectChildren("path").attr("style",i)}L.attr("transform",`translate(${-c/2}, ${-u/2})`);f(e,L);e.intersect=function(t){const r=G.polygon(e,A,t);return r};return n}(0,l.K2)(lt,"curvedTrapezoid");var ct=(0,l.K2)(((t,e,r,i,a,n)=>[`M${t},${e+n}`,`a${a},${n} 0,0,0 ${r},0`,`a${a},${n} 0,0,0 ${-r},0`,`l0,${i}`,`a${a},${n} 0,0,0 ${r},0`,`l0,${-i}`].join(" ")),"createCylinderPathD");var ht=(0,l.K2)(((t,e,r,i,a,n)=>[`M${t},${e+n}`,`M${t+r},${e+n}`,`a${a},${n} 0,0,0 ${-r},0`,`l0,${i}`,`a${a},${n} 0,0,0 ${r},0`,`l0,${-i}`].join(" ")),"createOuterCylinderPathD");var dt=(0,l.K2)(((t,e,r,i,a,n)=>[`M${t-r/2},${-i/2}`,`a${a},${n} 0,0,0 ${r},0`].join(" ")),"createInnerCylinderPathD");async function ut(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:s,label:l}=await d(t,e,p(e));const c=Math.max(s.width+e.padding,e.width??0);const u=c/2;const g=u/(2.5+c/50);const m=Math.max(s.height+g+e.padding,e.height??0);let y;const{cssStyles:b}=e;if(e.look==="handDrawn"){const t=h.A.svg(n);const r=ht(0,0,c,m,u,g);const i=dt(0,g,c,m,u,g);const o=t.path(r,(0,a.Fr)(e,{}));const s=t.path(i,(0,a.Fr)(e,{fill:"none"}));y=n.insert((()=>s),":first-child");y=n.insert((()=>o),":first-child");y.attr("class","basic label-container");if(b){y.attr("style",b)}}else{const t=ct(0,0,c,m,u,g);y=n.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,o.KL)(b)).attr("style",i)}y.attr("label-offset-y",g);y.attr("transform",`translate(${-c/2}, ${-(m/2+g)})`);f(e,y);l.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${-(s.height/2)+(e.padding??0)/1.5-(s.y-(s.top??0))})`);e.intersect=function(t){const r=G.rect(e,t);const i=r.x-(e.x??0);if(u!=0&&(Math.abs(i)<(e.width??0)/2||Math.abs(i)==(e.width??0)/2&&Math.abs(r.y-(e.y??0))>(e.height??0)/2-g)){let a=g*g*(1-i*i/(u*u));if(a>0){a=Math.sqrt(a)}a=g-a;if(t.y-(e.y??0)>0){a=-a}r.y+=a}return r};return n}(0,l.K2)(ut,"cylinder");async function ft(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:o,label:s}=await d(t,e,p(e));const l=o.width+e.padding;const c=o.height+e.padding;const u=c*.2;const g=-l/2;const m=-c/2-u/2;const{cssStyles:y}=e;const b=h.A.svg(n);const x=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){x.roughness=0;x.fillStyle="solid"}const C=[{x:g,y:m+u},{x:-g,y:m+u},{x:-g,y:-m},{x:g,y:-m},{x:g,y:m},{x:-g,y:m},{x:-g,y:m+u}];const v=b.polygon(C.map((t=>[t.x,t.y])),x);const k=n.insert((()=>v),":first-child");k.attr("class","basic label-container");if(y&&e.look!=="handDrawn"){k.selectAll("path").attr("style",y)}if(i&&e.look!=="handDrawn"){k.selectAll("path").attr("style",i)}s.attr("transform",`translate(${g+(e.padding??0)/2-(o.x-(o.left??0))}, ${m+u+(e.padding??0)/2-(o.y-(o.top??0))})`);f(e,k);e.intersect=function(t){const r=G.rect(e,t);return r};return n}(0,l.K2)(ft,"dividedRectangle");async function pt(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:s,halfPadding:c}=await d(t,e,p(e));const u=5;const g=s.width/2+c+u;const m=s.width/2+c;let y;const{cssStyles:b}=e;if(e.look==="handDrawn"){const t=h.A.svg(n);const r=(0,a.Fr)(e,{roughness:.2,strokeWidth:2.5});const i=(0,a.Fr)(e,{roughness:.2,strokeWidth:1.5});const s=t.circle(0,0,g*2,r);const l=t.circle(0,0,m*2,i);y=n.insert("g",":first-child");y.attr("class",(0,o.KL)(e.cssClasses)).attr("style",(0,o.KL)(b));y.node()?.appendChild(s);y.node()?.appendChild(l)}else{y=n.insert("g",":first-child");const t=y.insert("circle",":first-child");const e=y.insert("circle");y.attr("class","basic label-container").attr("style",i);t.attr("class","outer-circle").attr("style",i).attr("r",g).attr("cx",0).attr("cy",0);e.attr("class","inner-circle").attr("style",i).attr("r",m).attr("cx",0).attr("cy",0)}f(e,y);e.intersect=function(t){l.Rm.info("DoubleCircle intersect",e,g,t);return G.circle(e,g,t)};return n}(0,l.K2)(pt,"doublecircle");function gt(t,e,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=(0,a.GX)(e);e.label="";e.labelStyle=i;const o=t.insert("g").attr("class",p(e)).attr("id",e.domId??e.id);const s=7;const{cssStyles:c}=e;const d=h.A.svg(o);const{nodeBorder:u}=r;const g=(0,a.Fr)(e,{fillStyle:"solid"});if(e.look!=="handDrawn"){g.roughness=0}const m=d.circle(0,0,s*2,g);const y=o.insert((()=>m),":first-child");y.selectAll("path").attr("style",`fill: ${u} !important;`);if(c&&c.length>0&&e.look!=="handDrawn"){y.selectAll("path").attr("style",c)}if(n&&e.look!=="handDrawn"){y.selectAll("path").attr("style",n)}f(e,y);e.intersect=function(t){l.Rm.info("filledCircle intersect",e,{radius:s,point:t});const r=G.circle(e,s,t);return r};return o}(0,l.K2)(gt,"filledCircle");async function mt(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:o,label:s}=await d(t,e,p(e));const c=o.width+(e.padding??0);const u=c+o.height;const m=c+o.height;const y=[{x:0,y:-u},{x:m,y:-u},{x:m/2,y:0}];const{cssStyles:b}=e;const x=h.A.svg(n);const C=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){C.roughness=0;C.fillStyle="solid"}const v=g(y);const k=x.path(v,C);const w=n.insert((()=>k),":first-child").attr("transform",`translate(${-u/2}, ${u/2})`);if(b&&e.look!=="handDrawn"){w.selectChildren("path").attr("style",b)}if(i&&e.look!=="handDrawn"){w.selectChildren("path").attr("style",i)}e.width=c;e.height=u;f(e,w);s.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-u/2+(e.padding??0)/2+(o.y-(o.top??0))})`);e.intersect=function(t){l.Rm.info("Triangle intersect",e,y,t);return G.polygon(e,y,t)};return n}(0,l.K2)(mt,"flippedTriangle");function yt(t,e,{dir:r,config:{state:i,themeVariables:n}}){const{nodeStyles:o}=(0,a.GX)(e);e.label="";const s=t.insert("g").attr("class",p(e)).attr("id",e.domId??e.id);const{cssStyles:l}=e;let c=Math.max(70,e?.width??0);let d=Math.max(10,e?.height??0);if(r==="LR"){c=Math.max(10,e?.width??0);d=Math.max(70,e?.height??0)}const u=-1*c/2;const g=-1*d/2;const m=h.A.svg(s);const y=(0,a.Fr)(e,{stroke:n.lineColor,fill:n.lineColor});if(e.look!=="handDrawn"){y.roughness=0;y.fillStyle="solid"}const b=m.rectangle(u,g,c,d,y);const x=s.insert((()=>b),":first-child");if(l&&e.look!=="handDrawn"){x.selectAll("path").attr("style",l)}if(o&&e.look!=="handDrawn"){x.selectAll("path").attr("style",o)}f(e,x);const C=i?.padding??0;if(e.width&&e.height){e.width+=C/2||0;e.height+=C/2||0}e.intersect=function(t){return G.rect(e,t)};return s}(0,l.K2)(yt,"forkJoin");async function bt(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const n=80,o=50;const{shapeSvg:s,bbox:c}=await d(t,e,p(e));const u=Math.max(n,c.width+(e.padding??0)*2,e?.width??0);const m=Math.max(o,c.height+(e.padding??0)*2,e?.height??0);const b=m/2;const{cssStyles:x}=e;const C=h.A.svg(s);const v=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){v.roughness=0;v.fillStyle="solid"}const k=[{x:-u/2,y:-m/2},{x:u/2-b,y:-m/2},...y(-u/2+b,0,b,50,90,270),{x:u/2-b,y:m/2},{x:-u/2,y:m/2}];const w=g(k);const S=C.path(w,v);const A=s.insert((()=>S),":first-child");A.attr("class","basic label-container");if(x&&e.look!=="handDrawn"){A.selectChildren("path").attr("style",x)}if(i&&e.look!=="handDrawn"){A.selectChildren("path").attr("style",i)}f(e,A);e.intersect=function(t){l.Rm.info("Pill intersect",e,{radius:b,point:t});const r=G.polygon(e,k,t);return r};return s}(0,l.K2)(bt,"halfRoundedRectangle");async function xt(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:o}=await d(t,e,p(e));const s=o.height+(e.padding??0);const l=o.width+(e.padding??0)*2.5;const{cssStyles:c}=e;const u=h.A.svg(n);const m=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){m.roughness=0;m.fillStyle="solid"}let y=l/2;const b=y/6;y=y+b;const x=s/2;const C=x/2;const v=y-C;const k=[{x:-v,y:-x},{x:0,y:-x},{x:v,y:-x},{x:y,y:0},{x:v,y:x},{x:0,y:x},{x:-v,y:x},{x:-y,y:0}];const w=g(k);const S=u.path(w,m);const A=n.insert((()=>S),":first-child");A.attr("class","basic label-container");if(c&&e.look!=="handDrawn"){A.selectChildren("path").attr("style",c)}if(i&&e.look!=="handDrawn"){A.selectChildren("path").attr("style",i)}e.width=l;e.height=s;f(e,A);e.intersect=function(t){return G.polygon(e,k,t)};return n}(0,l.K2)(xt,"hexagon");async function Ct(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.label="";e.labelStyle=r;const{shapeSvg:n}=await d(t,e,p(e));const o=Math.max(30,e?.width??0);const s=Math.max(30,e?.height??0);const{cssStyles:c}=e;const u=h.A.svg(n);const m=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){m.roughness=0;m.fillStyle="solid"}const y=[{x:0,y:0},{x:o,y:0},{x:0,y:s},{x:o,y:s}];const b=g(y);const x=u.path(b,m);const C=n.insert((()=>x),":first-child");C.attr("class","basic label-container");if(c&&e.look!=="handDrawn"){C.selectChildren("path").attr("style",c)}if(i&&e.look!=="handDrawn"){C.selectChildren("path").attr("style",i)}C.attr("transform",`translate(${-o/2}, ${-s/2})`);f(e,C);e.intersect=function(t){l.Rm.info("Pill intersect",e,{points:y});const r=G.polygon(e,y,t);return r};return n}(0,l.K2)(Ct,"hourglass");async function vt(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:o}=(0,a.GX)(e);e.labelStyle=o;const s=e.assetHeight??48;const c=e.assetWidth??48;const u=Math.max(s,c);const p=i?.wrappingWidth;e.width=Math.max(u,p??0);const{shapeSvg:g,bbox:m,label:y}=await d(t,e,"icon-shape default");const b=e.pos==="t";const x=u;const C=u;const{nodeBorder:v}=r;const{stylesMap:k}=(0,a.WW)(e);const w=-C/2;const S=-x/2;const A=e.label?8:0;const T=h.A.svg(g);const B=(0,a.Fr)(e,{stroke:"none",fill:"none"});if(e.look!=="handDrawn"){B.roughness=0;B.fillStyle="solid"}const L=T.rectangle(w,S,C,x,B);const M=Math.max(C,m.width);const F=x+m.height+A;const _=T.rectangle(-M/2,-F/2,M,F,{...B,fill:"transparent",stroke:"none"});const $=g.insert((()=>L),":first-child");const E=g.insert((()=>_));if(e.icon){const t=g.append("g");t.html(`${await(0,n.WY)(e.icon,{height:u,width:u,fallbackPrefix:""})}`);const r=t.node().getBBox();const i=r.width;const a=r.height;const o=r.x;const s=r.y;t.attr("transform",`translate(${-i/2-o},${b?m.height/2+A/2-a/2-s:-m.height/2-A/2-a/2-s})`);t.attr("style",`color: ${k.get("stroke")??v};`)}y.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${b?-F/2:F/2-m.height})`);$.attr("transform",`translate(${0},${b?m.height/2+A/2:-m.height/2-A/2})`);f(e,E);e.intersect=function(t){l.Rm.info("iconSquare intersect",e,t);if(!e.label){return G.rect(e,t)}const r=e.x??0;const i=e.y??0;const a=e.height??0;let n=[];if(b){n=[{x:r-m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2+m.height+A},{x:r+C/2,y:i-a/2+m.height+A},{x:r+C/2,y:i+a/2},{x:r-C/2,y:i+a/2},{x:r-C/2,y:i-a/2+m.height+A},{x:r-m.width/2,y:i-a/2+m.height+A}]}else{n=[{x:r-C/2,y:i-a/2},{x:r+C/2,y:i-a/2},{x:r+C/2,y:i-a/2+x},{x:r+m.width/2,y:i-a/2+x},{x:r+m.width/2/2,y:i+a/2},{x:r-m.width/2,y:i+a/2},{x:r-m.width/2,y:i-a/2+x},{x:r-C/2,y:i-a/2+x}]}const o=G.polygon(e,n,t);return o};return g}(0,l.K2)(vt,"icon");async function kt(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:o}=(0,a.GX)(e);e.labelStyle=o;const s=e.assetHeight??48;const c=e.assetWidth??48;const u=Math.max(s,c);const p=i?.wrappingWidth;e.width=Math.max(u,p??0);const{shapeSvg:g,bbox:m,label:y}=await d(t,e,"icon-shape default");const b=20;const x=e.label?8:0;const C=e.pos==="t";const{nodeBorder:v,mainBkg:k}=r;const{stylesMap:w}=(0,a.WW)(e);const S=h.A.svg(g);const A=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){A.roughness=0;A.fillStyle="solid"}const T=w.get("fill");A.stroke=T??k;const B=g.append("g");if(e.icon){B.html(`${await(0,n.WY)(e.icon,{height:u,width:u,fallbackPrefix:""})}`)}const L=B.node().getBBox();const M=L.width;const F=L.height;const _=L.x;const $=L.y;const E=Math.max(M,F)*Math.SQRT2+b*2;const O=S.circle(0,0,E,A);const D=Math.max(E,m.width);const K=E+m.height+x;const I=S.rectangle(-D/2,-K/2,D,K,{...A,fill:"transparent",stroke:"none"});const R=g.insert((()=>O),":first-child");const P=g.insert((()=>I));B.attr("transform",`translate(${-M/2-_},${C?m.height/2+x/2-F/2-$:-m.height/2-x/2-F/2-$})`);B.attr("style",`color: ${w.get("stroke")??v};`);y.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${C?-K/2:K/2-m.height})`);R.attr("transform",`translate(${0},${C?m.height/2+x/2:-m.height/2-x/2})`);f(e,P);e.intersect=function(t){l.Rm.info("iconSquare intersect",e,t);const r=G.rect(e,t);return r};return g}(0,l.K2)(kt,"iconCircle");async function wt(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:o}=(0,a.GX)(e);e.labelStyle=o;const s=e.assetHeight??48;const c=e.assetWidth??48;const u=Math.max(s,c);const p=i?.wrappingWidth;e.width=Math.max(u,p??0);const{shapeSvg:g,bbox:m,halfPadding:y,label:b}=await d(t,e,"icon-shape default");const x=e.pos==="t";const C=u+y*2;const v=u+y*2;const{nodeBorder:k,mainBkg:w}=r;const{stylesMap:A}=(0,a.WW)(e);const T=-v/2;const B=-C/2;const L=e.label?8:0;const M=h.A.svg(g);const F=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){F.roughness=0;F.fillStyle="solid"}const _=A.get("fill");F.stroke=_??w;const $=M.path(S(T,B,v,C,5),F);const E=Math.max(v,m.width);const O=C+m.height+L;const D=M.rectangle(-E/2,-O/2,E,O,{...F,fill:"transparent",stroke:"none"});const K=g.insert((()=>$),":first-child").attr("class","icon-shape2");const I=g.insert((()=>D));if(e.icon){const t=g.append("g");t.html(`${await(0,n.WY)(e.icon,{height:u,width:u,fallbackPrefix:""})}`);const r=t.node().getBBox();const i=r.width;const a=r.height;const o=r.x;const s=r.y;t.attr("transform",`translate(${-i/2-o},${x?m.height/2+L/2-a/2-s:-m.height/2-L/2-a/2-s})`);t.attr("style",`color: ${A.get("stroke")??k};`)}b.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${x?-O/2:O/2-m.height})`);K.attr("transform",`translate(${0},${x?m.height/2+L/2:-m.height/2-L/2})`);f(e,I);e.intersect=function(t){l.Rm.info("iconSquare intersect",e,t);if(!e.label){return G.rect(e,t)}const r=e.x??0;const i=e.y??0;const a=e.height??0;let n=[];if(x){n=[{x:r-m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2+m.height+L},{x:r+v/2,y:i-a/2+m.height+L},{x:r+v/2,y:i+a/2},{x:r-v/2,y:i+a/2},{x:r-v/2,y:i-a/2+m.height+L},{x:r-m.width/2,y:i-a/2+m.height+L}]}else{n=[{x:r-v/2,y:i-a/2},{x:r+v/2,y:i-a/2},{x:r+v/2,y:i-a/2+C},{x:r+m.width/2,y:i-a/2+C},{x:r+m.width/2/2,y:i+a/2},{x:r-m.width/2,y:i+a/2},{x:r-m.width/2,y:i-a/2+C},{x:r-v/2,y:i-a/2+C}]}const o=G.polygon(e,n,t);return o};return g}(0,l.K2)(wt,"iconRounded");async function St(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:o}=(0,a.GX)(e);e.labelStyle=o;const s=e.assetHeight??48;const c=e.assetWidth??48;const u=Math.max(s,c);const p=i?.wrappingWidth;e.width=Math.max(u,p??0);const{shapeSvg:g,bbox:m,halfPadding:y,label:b}=await d(t,e,"icon-shape default");const x=e.pos==="t";const C=u+y*2;const v=u+y*2;const{nodeBorder:k,mainBkg:w}=r;const{stylesMap:A}=(0,a.WW)(e);const T=-v/2;const B=-C/2;const L=e.label?8:0;const M=h.A.svg(g);const F=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){F.roughness=0;F.fillStyle="solid"}const _=A.get("fill");F.stroke=_??w;const $=M.path(S(T,B,v,C,.1),F);const E=Math.max(v,m.width);const O=C+m.height+L;const D=M.rectangle(-E/2,-O/2,E,O,{...F,fill:"transparent",stroke:"none"});const K=g.insert((()=>$),":first-child");const I=g.insert((()=>D));if(e.icon){const t=g.append("g");t.html(`${await(0,n.WY)(e.icon,{height:u,width:u,fallbackPrefix:""})}`);const r=t.node().getBBox();const i=r.width;const a=r.height;const o=r.x;const s=r.y;t.attr("transform",`translate(${-i/2-o},${x?m.height/2+L/2-a/2-s:-m.height/2-L/2-a/2-s})`);t.attr("style",`color: ${A.get("stroke")??k};`)}b.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${x?-O/2:O/2-m.height})`);K.attr("transform",`translate(${0},${x?m.height/2+L/2:-m.height/2-L/2})`);f(e,I);e.intersect=function(t){l.Rm.info("iconSquare intersect",e,t);if(!e.label){return G.rect(e,t)}const r=e.x??0;const i=e.y??0;const a=e.height??0;let n=[];if(x){n=[{x:r-m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2+m.height+L},{x:r+v/2,y:i-a/2+m.height+L},{x:r+v/2,y:i+a/2},{x:r-v/2,y:i+a/2},{x:r-v/2,y:i-a/2+m.height+L},{x:r-m.width/2,y:i-a/2+m.height+L}]}else{n=[{x:r-v/2,y:i-a/2},{x:r+v/2,y:i-a/2},{x:r+v/2,y:i-a/2+C},{x:r+m.width/2,y:i-a/2+C},{x:r+m.width/2/2,y:i+a/2},{x:r-m.width/2,y:i+a/2},{x:r-m.width/2,y:i-a/2+C},{x:r-v/2,y:i-a/2+C}]}const o=G.polygon(e,n,t);return o};return g}(0,l.K2)(St,"iconSquare");async function At(t,e,{config:{flowchart:r}}){const i=new Image;i.src=e?.img??"";await i.decode();const n=Number(i.naturalWidth.toString().replace("px",""));const o=Number(i.naturalHeight.toString().replace("px",""));e.imageAspectRatio=n/o;const{labelStyles:s}=(0,a.GX)(e);e.labelStyle=s;const c=r?.wrappingWidth;e.defaultWidth=r?.wrappingWidth;const u=Math.max(e.label?c??0:0,e?.assetWidth??n);const p=e.constraint==="on"?e?.assetHeight?e.assetHeight*e.imageAspectRatio:u:u;const g=e.constraint==="on"?p/e.imageAspectRatio:e?.assetHeight??o;e.width=Math.max(p,c??0);const{shapeSvg:m,bbox:y,label:b}=await d(t,e,"image-shape default");const x=e.pos==="t";const C=-p/2;const v=-g/2;const k=e.label?8:0;const w=h.A.svg(m);const S=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){S.roughness=0;S.fillStyle="solid"}const A=w.rectangle(C,v,p,g,S);const T=Math.max(p,y.width);const B=g+y.height+k;const L=w.rectangle(-T/2,-B/2,T,B,{...S,fill:"none",stroke:"none"});const M=m.insert((()=>A),":first-child");const F=m.insert((()=>L));if(e.img){const t=m.append("image");t.attr("href",e.img);t.attr("width",p);t.attr("height",g);t.attr("preserveAspectRatio","none");t.attr("transform",`translate(${-p/2},${x?B/2-g:-B/2})`)}b.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${x?-g/2-y.height/2-k/2:g/2-y.height/2+k/2})`);M.attr("transform",`translate(${0},${x?y.height/2+k/2:-y.height/2-k/2})`);f(e,F);e.intersect=function(t){l.Rm.info("iconSquare intersect",e,t);if(!e.label){return G.rect(e,t)}const r=e.x??0;const i=e.y??0;const a=e.height??0;let n=[];if(x){n=[{x:r-y.width/2,y:i-a/2},{x:r+y.width/2,y:i-a/2},{x:r+y.width/2,y:i-a/2+y.height+k},{x:r+p/2,y:i-a/2+y.height+k},{x:r+p/2,y:i+a/2},{x:r-p/2,y:i+a/2},{x:r-p/2,y:i-a/2+y.height+k},{x:r-y.width/2,y:i-a/2+y.height+k}]}else{n=[{x:r-p/2,y:i-a/2},{x:r+p/2,y:i-a/2},{x:r+p/2,y:i-a/2+g},{x:r+y.width/2,y:i-a/2+g},{x:r+y.width/2/2,y:i+a/2},{x:r-y.width/2,y:i+a/2},{x:r-y.width/2,y:i-a/2+g},{x:r-p/2,y:i-a/2+g}]}const o=G.polygon(e,n,t);return o};return m}(0,l.K2)(At,"imageSquare");async function Tt(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:o}=await d(t,e,p(e));const s=Math.max(o.width+(e.padding??0)*2,e?.width??0);const l=Math.max(o.height+(e.padding??0)*2,e?.height??0);const c=[{x:0,y:0},{x:s,y:0},{x:s+3*l/6,y:-l},{x:-3*l/6,y:-l}];let u;const{cssStyles:m}=e;if(e.look==="handDrawn"){const t=h.A.svg(n);const r=(0,a.Fr)(e,{});const i=g(c);const o=t.path(i,r);u=n.insert((()=>o),":first-child").attr("transform",`translate(${-s/2}, ${l/2})`);if(m){u.attr("style",m)}}else{u=V(n,s,l,c)}if(i){u.attr("style",i)}e.width=s;e.height=l;f(e,u);e.intersect=function(t){return G.polygon(e,c,t)};return n}(0,l.K2)(Tt,"inv_trapezoid");async function Bt(t,e,r){const{labelStyles:i,nodeStyles:n}=(0,a.GX)(e);e.labelStyle=i;const{shapeSvg:s,bbox:l}=await d(t,e,p(e));const c=Math.max(l.width+r.labelPaddingX*2,e?.width||0);const u=Math.max(l.height+r.labelPaddingY*2,e?.height||0);const g=-c/2;const m=-u/2;let y;let{rx:b,ry:x}=e;const{cssStyles:C}=e;if(r?.rx&&r.ry){b=r.rx;x=r.ry}if(e.look==="handDrawn"){const t=h.A.svg(s);const r=(0,a.Fr)(e,{});const i=b||x?t.path(S(g,m,c,u,b||0),r):t.rectangle(g,m,c,u,r);y=s.insert((()=>i),":first-child");y.attr("class","basic label-container").attr("style",(0,o.KL)(C))}else{y=s.insert("rect",":first-child");y.attr("class","basic label-container").attr("style",n).attr("rx",(0,o.KL)(b)).attr("ry",(0,o.KL)(x)).attr("x",g).attr("y",m).attr("width",c).attr("height",u)}f(e,y);e.calcIntersect=function(t,e){return G.rect(t,e)};e.intersect=function(t){return G.rect(e,t)};return s}(0,l.K2)(Bt,"drawRect");async function Lt(t,e){const{shapeSvg:r,bbox:i,label:a}=await d(t,e,"label");const n=r.insert("rect",":first-child");const o=.1;const s=.1;n.attr("width",o).attr("height",s);r.attr("class","label edgeLabel");a.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`);f(e,n);e.intersect=function(t){return G.rect(e,t)};return r}(0,l.K2)(Lt,"labelRect");async function Mt(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:o}=await d(t,e,p(e));const s=Math.max(o.width+(e.padding??0),e?.width??0);const l=Math.max(o.height+(e.padding??0),e?.height??0);const c=[{x:0,y:0},{x:s+3*l/6,y:0},{x:s,y:-l},{x:-(3*l)/6,y:-l}];let u;const{cssStyles:m}=e;if(e.look==="handDrawn"){const t=h.A.svg(n);const r=(0,a.Fr)(e,{});const i=g(c);const o=t.path(i,r);u=n.insert((()=>o),":first-child").attr("transform",`translate(${-s/2}, ${l/2})`);if(m){u.attr("style",m)}}else{u=V(n,s,l,c)}if(i){u.attr("style",i)}e.width=s;e.height=l;f(e,u);e.intersect=function(t){return G.polygon(e,c,t)};return n}(0,l.K2)(Mt,"lean_left");async function Ft(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:o}=await d(t,e,p(e));const s=Math.max(o.width+(e.padding??0),e?.width??0);const l=Math.max(o.height+(e.padding??0),e?.height??0);const c=[{x:-3*l/6,y:0},{x:s,y:0},{x:s+3*l/6,y:-l},{x:0,y:-l}];let u;const{cssStyles:m}=e;if(e.look==="handDrawn"){const t=h.A.svg(n);const r=(0,a.Fr)(e,{});const i=g(c);const o=t.path(i,r);u=n.insert((()=>o),":first-child").attr("transform",`translate(${-s/2}, ${l/2})`);if(m){u.attr("style",m)}}else{u=V(n,s,l,c)}if(i){u.attr("style",i)}e.width=s;e.height=l;f(e,u);e.intersect=function(t){return G.polygon(e,c,t)};return n}(0,l.K2)(Ft,"lean_right");function _t(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.label="";e.labelStyle=r;const n=t.insert("g").attr("class",p(e)).attr("id",e.domId??e.id);const{cssStyles:o}=e;const s=Math.max(35,e?.width??0);const c=Math.max(35,e?.height??0);const d=7;const u=[{x:s,y:0},{x:0,y:c+d/2},{x:s-2*d,y:c+d/2},{x:0,y:2*c},{x:s,y:c-d/2},{x:2*d,y:c-d/2}];const m=h.A.svg(n);const y=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){y.roughness=0;y.fillStyle="solid"}const b=g(u);const x=m.path(b,y);const C=n.insert((()=>x),":first-child");if(o&&e.look!=="handDrawn"){C.selectAll("path").attr("style",o)}if(i&&e.look!=="handDrawn"){C.selectAll("path").attr("style",i)}C.attr("transform",`translate(-${s/2},${-c})`);f(e,C);e.intersect=function(t){l.Rm.info("lightningBolt intersect",e,t);const r=G.polygon(e,u,t);return r};return n}(0,l.K2)(_t,"lightningBolt");var $t=(0,l.K2)(((t,e,r,i,a,n,o)=>[`M${t},${e+n}`,`a${a},${n} 0,0,0 ${r},0`,`a${a},${n} 0,0,0 ${-r},0`,`l0,${i}`,`a${a},${n} 0,0,0 ${r},0`,`l0,${-i}`,`M${t},${e+n+o}`,`a${a},${n} 0,0,0 ${r},0`].join(" ")),"createCylinderPathD");var Et=(0,l.K2)(((t,e,r,i,a,n,o)=>[`M${t},${e+n}`,`M${t+r},${e+n}`,`a${a},${n} 0,0,0 ${-r},0`,`l0,${i}`,`a${a},${n} 0,0,0 ${r},0`,`l0,${-i}`,`M${t},${e+n+o}`,`a${a},${n} 0,0,0 ${r},0`].join(" ")),"createOuterCylinderPathD");var Ot=(0,l.K2)(((t,e,r,i,a,n)=>[`M${t-r/2},${-i/2}`,`a${a},${n} 0,0,0 ${r},0`].join(" ")),"createInnerCylinderPathD");async function Dt(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:s,label:l}=await d(t,e,p(e));const c=Math.max(s.width+(e.padding??0),e.width??0);const u=c/2;const g=u/(2.5+c/50);const m=Math.max(s.height+g+(e.padding??0),e.height??0);const y=m*.1;let b;const{cssStyles:x}=e;if(e.look==="handDrawn"){const t=h.A.svg(n);const r=Et(0,0,c,m,u,g,y);const i=Ot(0,g,c,m,u,g);const o=(0,a.Fr)(e,{});const s=t.path(r,o);const l=t.path(i,o);const d=n.insert((()=>l),":first-child");d.attr("class","line");b=n.insert((()=>s),":first-child");b.attr("class","basic label-container");if(x){b.attr("style",x)}}else{const t=$t(0,0,c,m,u,g,y);b=n.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,o.KL)(x)).attr("style",i)}b.attr("label-offset-y",g);b.attr("transform",`translate(${-c/2}, ${-(m/2+g)})`);f(e,b);l.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${-(s.height/2)+g-(s.y-(s.top??0))})`);e.intersect=function(t){const r=G.rect(e,t);const i=r.x-(e.x??0);if(u!=0&&(Math.abs(i)<(e.width??0)/2||Math.abs(i)==(e.width??0)/2&&Math.abs(r.y-(e.y??0))>(e.height??0)/2-g)){let a=g*g*(1-i*i/(u*u));if(a>0){a=Math.sqrt(a)}a=g-a;if(t.y-(e.y??0)>0){a=-a}r.y+=a}return r};return n}(0,l.K2)(Dt,"linedCylinder");async function Kt(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:o,label:s}=await d(t,e,p(e));const l=Math.max(o.width+(e.padding??0)*2,e?.width??0);const c=Math.max(o.height+(e.padding??0)*2,e?.height??0);const u=c/4;const g=c+u;const{cssStyles:y}=e;const b=h.A.svg(n);const x=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){x.roughness=0;x.fillStyle="solid"}const C=[{x:-l/2-l/2*.1,y:-g/2},{x:-l/2-l/2*.1,y:g/2},...m(-l/2-l/2*.1,g/2,l/2+l/2*.1,g/2,u,.8),{x:l/2+l/2*.1,y:-g/2},{x:-l/2-l/2*.1,y:-g/2},{x:-l/2,y:-g/2},{x:-l/2,y:g/2*1.1},{x:-l/2,y:-g/2}];const v=b.polygon(C.map((t=>[t.x,t.y])),x);const k=n.insert((()=>v),":first-child");k.attr("class","basic label-container");if(y&&e.look!=="handDrawn"){k.selectAll("path").attr("style",y)}if(i&&e.look!=="handDrawn"){k.selectAll("path").attr("style",i)}k.attr("transform",`translate(0,${-u/2})`);s.attr("transform",`translate(${-l/2+(e.padding??0)+l/2*.1/2-(o.x-(o.left??0))},${-c/2+(e.padding??0)-u/2-(o.y-(o.top??0))})`);f(e,k);e.intersect=function(t){const r=G.polygon(e,C,t);return r};return n}(0,l.K2)(Kt,"linedWaveEdgedRect");async function It(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:o,label:s}=await d(t,e,p(e));const l=Math.max(o.width+(e.padding??0)*2,e?.width??0);const c=Math.max(o.height+(e.padding??0)*2,e?.height??0);const u=5;const m=-l/2;const y=-c/2;const{cssStyles:b}=e;const x=h.A.svg(n);const C=(0,a.Fr)(e,{});const v=[{x:m-u,y:y+u},{x:m-u,y:y+c+u},{x:m+l-u,y:y+c+u},{x:m+l-u,y:y+c},{x:m+l,y:y+c},{x:m+l,y:y+c-u},{x:m+l+u,y:y+c-u},{x:m+l+u,y:y-u},{x:m+u,y:y-u},{x:m+u,y},{x:m,y},{x:m,y:y+u}];const k=[{x:m,y:y+u},{x:m+l-u,y:y+u},{x:m+l-u,y:y+c},{x:m+l,y:y+c},{x:m+l,y},{x:m,y}];if(e.look!=="handDrawn"){C.roughness=0;C.fillStyle="solid"}const w=g(v);const S=x.path(w,C);const A=g(k);const T=x.path(A,{...C,fill:"none"});const B=n.insert((()=>T),":first-child");B.insert((()=>S),":first-child");B.attr("class","basic label-container");if(b&&e.look!=="handDrawn"){B.selectAll("path").attr("style",b)}if(i&&e.look!=="handDrawn"){B.selectAll("path").attr("style",i)}s.attr("transform",`translate(${-(o.width/2)-u-(o.x-(o.left??0))}, ${-(o.height/2)+u-(o.y-(o.top??0))})`);f(e,B);e.intersect=function(t){const r=G.polygon(e,v,t);return r};return n}(0,l.K2)(It,"multiRect");async function Rt(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:o,label:s}=await d(t,e,p(e));const l=Math.max(o.width+(e.padding??0)*2,e?.width??0);const c=Math.max(o.height+(e.padding??0)*2,e?.height??0);const u=c/4;const y=c+u;const b=-l/2;const x=-y/2;const C=5;const{cssStyles:v}=e;const k=m(b-C,x+y+C,b+l-C,x+y+C,u,.8);const w=k?.[k.length-1];const S=[{x:b-C,y:x+C},{x:b-C,y:x+y+C},...k,{x:b+l-C,y:w.y-C},{x:b+l,y:w.y-C},{x:b+l,y:w.y-2*C},{x:b+l+C,y:w.y-2*C},{x:b+l+C,y:x-C},{x:b+C,y:x-C},{x:b+C,y:x},{x:b,y:x},{x:b,y:x+C}];const A=[{x:b,y:x+C},{x:b+l-C,y:x+C},{x:b+l-C,y:w.y-C},{x:b+l,y:w.y-C},{x:b+l,y:x},{x:b,y:x}];const T=h.A.svg(n);const B=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){B.roughness=0;B.fillStyle="solid"}const L=g(S);const M=T.path(L,B);const F=g(A);const _=T.path(F,B);const $=n.insert((()=>M),":first-child");$.insert((()=>_));$.attr("class","basic label-container");if(v&&e.look!=="handDrawn"){$.selectAll("path").attr("style",v)}if(i&&e.look!=="handDrawn"){$.selectAll("path").attr("style",i)}$.attr("transform",`translate(0,${-u/2})`);s.attr("transform",`translate(${-(o.width/2)-C-(o.x-(o.left??0))}, ${-(o.height/2)+C-u/2-(o.y-(o.top??0))})`);f(e,$);e.intersect=function(t){const r=G.polygon(e,S,t);return r};return n}(0,l.K2)(Rt,"multiWaveEdgedRectangle");async function Pt(t,e,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=(0,a.GX)(e);e.labelStyle=i;const o=e.useHtmlLabels||(0,s.zj)().flowchart?.htmlLabels!==false;if(!o){e.centerLabel=true}const{shapeSvg:l,bbox:c,label:u}=await d(t,e,p(e));const g=Math.max(c.width+(e.padding??0)*2,e?.width??0);const m=Math.max(c.height+(e.padding??0)*2,e?.height??0);const y=-g/2;const b=-m/2;const{cssStyles:x}=e;const C=h.A.svg(l);const v=(0,a.Fr)(e,{fill:r.noteBkgColor,stroke:r.noteBorderColor});if(e.look!=="handDrawn"){v.roughness=0;v.fillStyle="solid"}const k=C.rectangle(y,b,g,m,v);const w=l.insert((()=>k),":first-child");w.attr("class","basic label-container");if(x&&e.look!=="handDrawn"){w.selectAll("path").attr("style",x)}if(n&&e.look!=="handDrawn"){w.selectAll("path").attr("style",n)}u.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))}, ${-(c.height/2)-(c.y-(c.top??0))})`);f(e,w);e.intersect=function(t){return G.rect(e,t)};return l}(0,l.K2)(Pt,"note");var qt=(0,l.K2)(((t,e,r)=>[`M${t+r/2},${e}`,`L${t+r},${e-r/2}`,`L${t+r/2},${e-r}`,`L${t},${e-r/2}`,"Z"].join(" ")),"createDecisionBoxPathD");async function zt(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:o}=await d(t,e,p(e));const s=o.width+e.padding;const l=o.height+e.padding;const c=s+l;const u=.5;const g=[{x:c/2,y:0},{x:c,y:-c/2},{x:c/2,y:-c},{x:0,y:-c/2}];let m;const{cssStyles:y}=e;if(e.look==="handDrawn"){const t=h.A.svg(n);const r=(0,a.Fr)(e,{});const i=qt(0,0,c);const o=t.path(i,r);m=n.insert((()=>o),":first-child").attr("transform",`translate(${-c/2+u}, ${c/2})`);if(y){m.attr("style",y)}}else{m=V(n,c,c,g);m.attr("transform",`translate(${-c/2+u}, ${c/2})`)}if(i){m.attr("style",i)}f(e,m);e.calcIntersect=function(t,e){const r=t.width;const i=[{x:r/2,y:0},{x:r,y:-r/2},{x:r/2,y:-r},{x:0,y:-r/2}];const a=G.polygon(t,i,e);return{x:a.x-.5,y:a.y-.5}};e.intersect=function(t){return this.calcIntersect(e,t)};return n}(0,l.K2)(zt,"question");async function Nt(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:o,label:s}=await d(t,e,p(e));const l=Math.max(o.width+(e.padding??0),e?.width??0);const c=Math.max(o.height+(e.padding??0),e?.height??0);const u=-l/2;const m=-c/2;const y=m/2;const b=[{x:u+y,y:m},{x:u,y:0},{x:u+y,y:-m},{x:-u,y:-m},{x:-u,y:m}];const{cssStyles:x}=e;const C=h.A.svg(n);const v=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){v.roughness=0;v.fillStyle="solid"}const k=g(b);const w=C.path(k,v);const S=n.insert((()=>w),":first-child");S.attr("class","basic label-container");if(x&&e.look!=="handDrawn"){S.selectAll("path").attr("style",x)}if(i&&e.look!=="handDrawn"){S.selectAll("path").attr("style",i)}S.attr("transform",`translate(${-y/2},0)`);s.attr("transform",`translate(${-y/2-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`);f(e,S);e.intersect=function(t){return G.polygon(e,b,t)};return n}(0,l.K2)(Nt,"rect_left_inv_arrow");async function Wt(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;let n;if(!e.cssClasses){n="node default"}else{n="node "+e.cssClasses}const o=t.insert("g").attr("class",n).attr("id",e.domId||e.id);const d=o.insert("g");const u=o.insert("g").attr("class","label").attr("style",i);const p=e.description;const g=e.label;const m=u.node().appendChild(await w(g,e.labelStyle,true,true));let y={width:0,height:0};if((0,s._3)((0,s.D7)()?.flowchart?.htmlLabels)){const t=m.children[0];const e=(0,c.Ltv)(m);y=t.getBoundingClientRect();e.attr("width",y.width);e.attr("height",y.height)}l.Rm.info("Text 2",p);const b=p||[];const x=m.getBBox();const C=u.node().appendChild(await w(b.join?b.join("
"):b,e.labelStyle,true,true));const v=C.children[0];const k=(0,c.Ltv)(C);y=v.getBoundingClientRect();k.attr("width",y.width);k.attr("height",y.height);const A=(e.padding||0)/2;(0,c.Ltv)(C).attr("transform","translate( "+(y.width>x.width?0:(x.width-y.width)/2)+", "+(x.height+A+5)+")");(0,c.Ltv)(m).attr("transform","translate( "+(y.width{l.Rm.debug("Rough node insert CXC",i);return n}),":first-child");F=o.insert((()=>{l.Rm.debug("Rough node insert CXC",i);return i}),":first-child")}else{F=d.insert("rect",":first-child");_=d.insert("line");F.attr("class","outer title-state").attr("style",i).attr("x",-y.width/2-A).attr("y",-y.height/2-A).attr("width",y.width+(e.padding||0)).attr("height",y.height+(e.padding||0));_.attr("class","divider").attr("x1",-y.width/2-A).attr("x2",y.width/2+A).attr("y1",-y.height/2-A+x.height+A).attr("y2",-y.height/2-A+x.height+A)}f(e,F);e.intersect=function(t){return G.rect(e,t)};return o}(0,l.K2)(Wt,"rectWithTitle");function jt(t,e,r,i,a,n,o){const s=20;const l=(t+r)/2;const c=(e+i)/2;const h=Math.atan2(i-e,r-t);const d=(r-t)/2;const u=(i-e)/2;const f=d/a;const p=u/n;const g=Math.sqrt(f**2+p**2);if(g>1){throw new Error("The given radii are too small to create an arc between the points.")}const m=Math.sqrt(1-g**2);const y=l+m*n*Math.sin(h)*(o?-1:1);const b=c-m*a*Math.cos(h)*(o?-1:1);const x=Math.atan2((e-b)/n,(t-y)/a);const C=Math.atan2((i-b)/n,(r-y)/a);let v=C-x;if(o&&v<0){v+=2*Math.PI}if(!o&&v>0){v-=2*Math.PI}const k=[];for(let w=0;ww),":first-child");S.attr("class","basic label-container outer-path");if(b&&e.look!=="handDrawn"){S.selectChildren("path").attr("style",b)}if(i&&e.look!=="handDrawn"){S.selectChildren("path").attr("style",i)}f(e,S);e.intersect=function(t){const r=G.polygon(e,v,t);return r};return n}(0,l.K2)(Ht,"roundedRect");async function Gt(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:s,label:l}=await d(t,e,p(e));const c=e?.padding??0;const u=Math.max(s.width+(e.padding??0)*2,e?.width??0);const g=Math.max(s.height+(e.padding??0)*2,e?.height??0);const m=-s.width/2-c;const y=-s.height/2-c;const{cssStyles:b}=e;const x=h.A.svg(n);const C=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){C.roughness=0;C.fillStyle="solid"}const v=[{x:m,y},{x:m+u+8,y},{x:m+u+8,y:y+g},{x:m-8,y:y+g},{x:m-8,y},{x:m,y},{x:m,y:y+g}];const k=x.polygon(v.map((t=>[t.x,t.y])),C);const w=n.insert((()=>k),":first-child");w.attr("class","basic label-container").attr("style",(0,o.KL)(b));if(i&&e.look!=="handDrawn"){w.selectAll("path").attr("style",i)}if(b&&e.look!=="handDrawn"){w.selectAll("path").attr("style",i)}l.attr("transform",`translate(${-u/2+4+(e.padding??0)-(s.x-(s.left??0))},${-g/2+(e.padding??0)-(s.y-(s.top??0))})`);f(e,w);e.intersect=function(t){return G.rect(e,t)};return n}(0,l.K2)(Gt,"shadedProcess");async function Ut(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:o,label:s}=await d(t,e,p(e));const l=Math.max(o.width+(e.padding??0)*2,e?.width??0);const c=Math.max(o.height+(e.padding??0)*2,e?.height??0);const u=-l/2;const m=-c/2;const{cssStyles:y}=e;const b=h.A.svg(n);const x=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){x.roughness=0;x.fillStyle="solid"}const C=[{x:u,y:m},{x:u,y:m+c},{x:u+l,y:m+c},{x:u+l,y:m-c/2}];const v=g(C);const k=b.path(v,x);const w=n.insert((()=>k),":first-child");w.attr("class","basic label-container");if(y&&e.look!=="handDrawn"){w.selectChildren("path").attr("style",y)}if(i&&e.look!=="handDrawn"){w.selectChildren("path").attr("style",i)}w.attr("transform",`translate(0, ${c/4})`);s.attr("transform",`translate(${-l/2+(e.padding??0)-(o.x-(o.left??0))}, ${-c/4+(e.padding??0)-(o.y-(o.top??0))})`);f(e,w);e.intersect=function(t){const r=G.polygon(e,C,t);return r};return n}(0,l.K2)(Ut,"slopedRect");async function Yt(t,e){const r={rx:0,ry:0,classes:"",labelPaddingX:e.labelPaddingX??(e?.padding||0)*2,labelPaddingY:(e?.padding||0)*1};return Bt(t,e,r)}(0,l.K2)(Yt,"squareRect");async function Xt(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:o}=await d(t,e,p(e));const s=o.height+e.padding;const l=o.width+s/4+e.padding;const c=s/2;const{cssStyles:u}=e;const m=h.A.svg(n);const b=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){b.roughness=0;b.fillStyle="solid"}const x=[{x:-l/2+c,y:-s/2},{x:l/2-c,y:-s/2},...y(-l/2+c,0,c,50,90,270),{x:l/2-c,y:s/2},...y(l/2-c,0,c,50,270,450)];const C=g(x);const v=m.path(C,b);const k=n.insert((()=>v),":first-child");k.attr("class","basic label-container outer-path");if(u&&e.look!=="handDrawn"){k.selectChildren("path").attr("style",u)}if(i&&e.look!=="handDrawn"){k.selectChildren("path").attr("style",i)}f(e,k);e.intersect=function(t){const r=G.polygon(e,x,t);return r};return n}(0,l.K2)(Xt,"stadium");async function Vt(t,e){const r={rx:5,ry:5,classes:"flowchart-node"};return Bt(t,e,r)}(0,l.K2)(Vt,"state");function Zt(t,e,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=(0,a.GX)(e);e.labelStyle=i;const{cssStyles:o}=e;const{lineColor:s,stateBorder:l,nodeBorder:c}=r;const d=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);const u=h.A.svg(d);const p=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){p.roughness=0;p.fillStyle="solid"}const g=u.circle(0,0,14,{...p,stroke:s,strokeWidth:2});const m=l??c;const y=u.circle(0,0,5,{...p,fill:m,stroke:m,strokeWidth:2,fillStyle:"solid"});const b=d.insert((()=>g),":first-child");b.insert((()=>y));if(o){b.selectAll("path").attr("style",o)}if(n){b.selectAll("path").attr("style",n)}f(e,b);e.intersect=function(t){return G.circle(e,7,t)};return d}(0,l.K2)(Zt,"stateEnd");function Qt(t,e,{config:{themeVariables:r}}){const{lineColor:i}=r;const n=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let o;if(e.look==="handDrawn"){const t=h.A.svg(n);const e=t.circle(0,0,14,(0,a.ue)(i));o=n.insert((()=>e));o.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else{o=n.insert("circle",":first-child");o.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}f(e,o);e.intersect=function(t){return G.circle(e,7,t)};return n}(0,l.K2)(Qt,"stateStart");async function Jt(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:s}=await d(t,e,p(e));const l=(e?.padding||0)/2;const c=s.width+e.padding;const u=s.height+e.padding;const g=-s.width/2-l;const m=-s.height/2-l;const y=[{x:0,y:0},{x:c,y:0},{x:c,y:-u},{x:0,y:-u},{x:0,y:0},{x:-8,y:0},{x:c+8,y:0},{x:c+8,y:-u},{x:-8,y:-u},{x:-8,y:0}];if(e.look==="handDrawn"){const t=h.A.svg(n);const r=(0,a.Fr)(e,{});const i=t.rectangle(g-8,m,c+16,u,r);const s=t.line(g,m,g,m+u,r);const l=t.line(g+c,m,g+c,m+u,r);n.insert((()=>s),":first-child");n.insert((()=>l),":first-child");const d=n.insert((()=>i),":first-child");const{cssStyles:p}=e;d.attr("class","basic label-container").attr("style",(0,o.KL)(p));f(e,d)}else{const t=V(n,c,u,y);if(i){t.attr("style",i)}f(e,t)}e.intersect=function(t){return G.polygon(e,y,t)};return n}(0,l.K2)(Jt,"subroutine");async function te(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:o}=await d(t,e,p(e));const s=Math.max(o.width+(e.padding??0)*2,e?.width??0);const l=Math.max(o.height+(e.padding??0)*2,e?.height??0);const c=-s/2;const u=-l/2;const m=.2*l;const y=.2*l;const{cssStyles:b}=e;const x=h.A.svg(n);const C=(0,a.Fr)(e,{});const v=[{x:c-m/2,y:u},{x:c+s+m/2,y:u},{x:c+s+m/2,y:u+l},{x:c-m/2,y:u+l}];const k=[{x:c+s-m/2,y:u+l},{x:c+s+m/2,y:u+l},{x:c+s+m/2,y:u+l-y}];if(e.look!=="handDrawn"){C.roughness=0;C.fillStyle="solid"}const w=g(v);const S=x.path(w,C);const A=g(k);const T=x.path(A,{...C,fillStyle:"solid"});const B=n.insert((()=>T),":first-child");B.insert((()=>S),":first-child");B.attr("class","basic label-container");if(b&&e.look!=="handDrawn"){B.selectAll("path").attr("style",b)}if(i&&e.look!=="handDrawn"){B.selectAll("path").attr("style",i)}f(e,B);e.intersect=function(t){const r=G.polygon(e,v,t);return r};return n}(0,l.K2)(te,"taggedRect");async function ee(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:o,label:s}=await d(t,e,p(e));const l=Math.max(o.width+(e.padding??0)*2,e?.width??0);const c=Math.max(o.height+(e.padding??0)*2,e?.height??0);const u=c/4;const y=.2*l;const b=.2*c;const x=c+u;const{cssStyles:C}=e;const v=h.A.svg(n);const k=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){k.roughness=0;k.fillStyle="solid"}const w=[{x:-l/2-l/2*.1,y:x/2},...m(-l/2-l/2*.1,x/2,l/2+l/2*.1,x/2,u,.8),{x:l/2+l/2*.1,y:-x/2},{x:-l/2-l/2*.1,y:-x/2}];const S=-l/2+l/2*.1;const A=-x/2-b*.4;const T=[{x:S+l-y,y:(A+c)*1.4},{x:S+l,y:A+c-b},{x:S+l,y:(A+c)*.9},...m(S+l,(A+c)*1.3,S+l-y,(A+c)*1.5,-c*.03,.5)];const B=g(w);const L=v.path(B,k);const M=g(T);const F=v.path(M,{...k,fillStyle:"solid"});const _=n.insert((()=>F),":first-child");_.insert((()=>L),":first-child");_.attr("class","basic label-container");if(C&&e.look!=="handDrawn"){_.selectAll("path").attr("style",C)}if(i&&e.look!=="handDrawn"){_.selectAll("path").attr("style",i)}_.attr("transform",`translate(0,${-u/2})`);s.attr("transform",`translate(${-l/2+(e.padding??0)-(o.x-(o.left??0))},${-c/2+(e.padding??0)-u/2-(o.y-(o.top??0))})`);f(e,_);e.intersect=function(t){const r=G.polygon(e,w,t);return r};return n}(0,l.K2)(ee,"taggedWaveEdgedRectangle");async function re(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:o}=await d(t,e,p(e));const s=Math.max(o.width+e.padding,e?.width||0);const l=Math.max(o.height+e.padding,e?.height||0);const c=-s/2;const h=-l/2;const u=n.insert("rect",":first-child");u.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",c).attr("y",h).attr("width",s).attr("height",l);f(e,u);e.intersect=function(t){return G.rect(e,t)};return n}(0,l.K2)(re,"text");var ie=(0,l.K2)(((t,e,r,i,a,n)=>`M${t},${e}\n a${a},${n} 0,0,1 ${0},${-i}\n l${r},${0}\n a${a},${n} 0,0,1 ${0},${i}\n M${r},${-i}\n a${a},${n} 0,0,0 ${0},${i}\n l${-r},${0}`),"createCylinderPathD");var ae=(0,l.K2)(((t,e,r,i,a,n)=>[`M${t},${e}`,`M${t+r},${e}`,`a${a},${n} 0,0,0 ${0},${-i}`,`l${-r},0`,`a${a},${n} 0,0,0 ${0},${i}`,`l${r},0`].join(" ")),"createOuterCylinderPathD");var ne=(0,l.K2)(((t,e,r,i,a,n)=>[`M${t+r/2},${-i/2}`,`a${a},${n} 0,0,0 0,${i}`].join(" ")),"createInnerCylinderPathD");async function oe(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:s,label:l,halfPadding:c}=await d(t,e,p(e));const u=e.look==="neo"?c*2:c;const g=s.height+u;const m=g/2;const y=m/(2.5+g/50);const b=s.width+y+u;const{cssStyles:x}=e;let C;if(e.look==="handDrawn"){const t=h.A.svg(n);const r=ae(0,0,b,g,y,m);const i=ne(0,0,b,g,y,m);const o=t.path(r,(0,a.Fr)(e,{}));const s=t.path(i,(0,a.Fr)(e,{fill:"none"}));C=n.insert((()=>s),":first-child");C=n.insert((()=>o),":first-child");C.attr("class","basic label-container");if(x){C.attr("style",x)}}else{const t=ie(0,0,b,g,y,m);C=n.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,o.KL)(x)).attr("style",i);C.attr("class","basic label-container");if(x){C.selectAll("path").attr("style",x)}if(i){C.selectAll("path").attr("style",i)}}C.attr("label-offset-x",y);C.attr("transform",`translate(${-b/2}, ${g/2} )`);l.attr("transform",`translate(${-(s.width/2)-y-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`);f(e,C);e.intersect=function(t){const r=G.rect(e,t);const i=r.y-(e.y??0);if(m!=0&&(Math.abs(i)<(e.height??0)/2||Math.abs(i)==(e.height??0)/2&&Math.abs(r.x-(e.x??0))>(e.width??0)/2-y)){let a=y*y*(1-i*i/(m*m));if(a!=0){a=Math.sqrt(Math.abs(a))}a=y-a;if(t.x-(e.x??0)>0){a=-a}r.x+=a}return r};return n}(0,l.K2)(oe,"tiltedCylinder");async function se(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:o}=await d(t,e,p(e));const s=o.width+e.padding;const l=o.height+e.padding;const c=[{x:-3*l/6,y:0},{x:s+3*l/6,y:0},{x:s,y:-l},{x:0,y:-l}];let u;const{cssStyles:m}=e;if(e.look==="handDrawn"){const t=h.A.svg(n);const r=(0,a.Fr)(e,{});const i=g(c);const o=t.path(i,r);u=n.insert((()=>o),":first-child").attr("transform",`translate(${-s/2}, ${l/2})`);if(m){u.attr("style",m)}}else{u=V(n,s,l,c)}if(i){u.attr("style",i)}e.width=s;e.height=l;f(e,u);e.intersect=function(t){return G.polygon(e,c,t)};return n}(0,l.K2)(se,"trapezoid");async function le(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:o}=await d(t,e,p(e));const s=60,l=20;const c=Math.max(s,o.width+(e.padding??0)*2,e?.width??0);const u=Math.max(l,o.height+(e.padding??0)*2,e?.height??0);const{cssStyles:m}=e;const y=h.A.svg(n);const b=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){b.roughness=0;b.fillStyle="solid"}const x=[{x:-c/2*.8,y:-u/2},{x:c/2*.8,y:-u/2},{x:c/2,y:-u/2*.6},{x:c/2,y:u/2},{x:-c/2,y:u/2},{x:-c/2,y:-u/2*.6}];const C=g(x);const v=y.path(C,b);const k=n.insert((()=>v),":first-child");k.attr("class","basic label-container");if(m&&e.look!=="handDrawn"){k.selectChildren("path").attr("style",m)}if(i&&e.look!=="handDrawn"){k.selectChildren("path").attr("style",i)}f(e,k);e.intersect=function(t){const r=G.polygon(e,x,t);return r};return n}(0,l.K2)(le,"trapezoidalPentagon");async function ce(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:o,label:c}=await d(t,e,p(e));const u=(0,s._3)((0,s.D7)().flowchart?.htmlLabels);const m=o.width+(e.padding??0);const y=m+o.height;const b=m+o.height;const x=[{x:0,y:0},{x:b,y:0},{x:b/2,y:-y}];const{cssStyles:C}=e;const v=h.A.svg(n);const k=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){k.roughness=0;k.fillStyle="solid"}const w=g(x);const S=v.path(w,k);const A=n.insert((()=>S),":first-child").attr("transform",`translate(${-y/2}, ${y/2})`);if(C&&e.look!=="handDrawn"){A.selectChildren("path").attr("style",C)}if(i&&e.look!=="handDrawn"){A.selectChildren("path").attr("style",i)}e.width=m;e.height=y;f(e,A);c.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${y/2-(o.height+(e.padding??0)/(u?2:1)-(o.y-(o.top??0)))})`);e.intersect=function(t){l.Rm.info("Triangle intersect",e,x,t);return G.polygon(e,x,t)};return n}(0,l.K2)(ce,"triangle");async function he(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:o,label:s}=await d(t,e,p(e));const l=Math.max(o.width+(e.padding??0)*2,e?.width??0);const c=Math.max(o.height+(e.padding??0)*2,e?.height??0);const u=c/8;const y=c+u;const{cssStyles:b}=e;const x=70;const C=x-l;const v=C>0?C/2:0;const k=h.A.svg(n);const w=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){w.roughness=0;w.fillStyle="solid"}const S=[{x:-l/2-v,y:y/2},...m(-l/2-v,y/2,l/2+v,y/2,u,.8),{x:l/2+v,y:-y/2},{x:-l/2-v,y:-y/2}];const A=g(S);const T=k.path(A,w);const B=n.insert((()=>T),":first-child");B.attr("class","basic label-container");if(b&&e.look!=="handDrawn"){B.selectAll("path").attr("style",b)}if(i&&e.look!=="handDrawn"){B.selectAll("path").attr("style",i)}B.attr("transform",`translate(0,${-u/2})`);s.attr("transform",`translate(${-l/2+(e.padding??0)-(o.x-(o.left??0))},${-c/2+(e.padding??0)-u-(o.y-(o.top??0))})`);f(e,B);e.intersect=function(t){const r=G.polygon(e,S,t);return r};return n}(0,l.K2)(he,"waveEdgedRectangle");async function de(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:o}=await d(t,e,p(e));const s=100;const l=50;const c=Math.max(o.width+(e.padding??0)*2,e?.width??0);const u=Math.max(o.height+(e.padding??0)*2,e?.height??0);const y=c/u;let b=c;let x=u;if(b>x*y){x=b/y}else{b=x*y}b=Math.max(b,s);x=Math.max(x,l);const C=Math.min(x*.2,x/4);const v=x+C*2;const{cssStyles:k}=e;const w=h.A.svg(n);const S=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){S.roughness=0;S.fillStyle="solid"}const A=[{x:-b/2,y:v/2},...m(-b/2,v/2,b/2,v/2,C,1),{x:b/2,y:-v/2},...m(b/2,-v/2,-b/2,-v/2,C,-1)];const T=g(A);const B=w.path(T,S);const L=n.insert((()=>B),":first-child");L.attr("class","basic label-container");if(k&&e.look!=="handDrawn"){L.selectAll("path").attr("style",k)}if(i&&e.look!=="handDrawn"){L.selectAll("path").attr("style",i)}f(e,L);e.intersect=function(t){const r=G.polygon(e,A,t);return r};return n}(0,l.K2)(de,"waveRectangle");async function ue(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:o,label:s}=await d(t,e,p(e));const l=Math.max(o.width+(e.padding??0)*2,e?.width??0);const c=Math.max(o.height+(e.padding??0)*2,e?.height??0);const u=5;const g=-l/2;const m=-c/2;const{cssStyles:y}=e;const b=h.A.svg(n);const x=(0,a.Fr)(e,{});const C=[{x:g-u,y:m-u},{x:g-u,y:m+c},{x:g+l,y:m+c},{x:g+l,y:m-u}];const v=`M${g-u},${m-u} L${g+l},${m-u} L${g+l},${m+c} L${g-u},${m+c} L${g-u},${m-u}\n M${g-u},${m} L${g+l},${m}\n M${g},${m-u} L${g},${m+c}`;if(e.look!=="handDrawn"){x.roughness=0;x.fillStyle="solid"}const k=b.path(v,x);const w=n.insert((()=>k),":first-child");w.attr("transform",`translate(${u/2}, ${u/2})`);w.attr("class","basic label-container");if(y&&e.look!=="handDrawn"){w.selectAll("path").attr("style",y)}if(i&&e.look!=="handDrawn"){w.selectAll("path").attr("style",i)}s.attr("transform",`translate(${-(o.width/2)+u/2-(o.x-(o.left??0))}, ${-(o.height/2)+u/2-(o.y-(o.top??0))})`);f(e,w);e.intersect=function(t){const r=G.polygon(e,C,t);return r};return n}(0,l.K2)(ue,"windowPane");async function fe(t,e){const r=e;if(r.alias){e.label=r.alias}if(e.look==="handDrawn"){const{themeVariables:r}=(0,s.zj)();const{background:i}=r;const a={...e,id:e.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${i}`]};await fe(t,a)}const i=(0,s.zj)();e.useHtmlLabels=i.htmlLabels;let n=i.er?.diagramPadding??10;let l=i.er?.entityPadding??6;const{cssStyles:d}=e;const{labelStyles:u,nodeStyles:g}=(0,a.GX)(e);if(r.attributes.length===0&&e.label){const r={rx:0,ry:0,labelPaddingX:n,labelPaddingY:n*1.5,classes:""};if((0,o.Un)(e.label,i)+r.labelPaddingX*20){const t=b.width+n*2-(k+w+S+A);k+=t/L;w+=t/L;if(S>0){S+=t/L}if(A>0){A+=t/L}}const F=k+w+S+A;const _=h.A.svg(y);const $=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){$.roughness=0;$.fillStyle="solid"}let E=0;if(v.length>0){E=v.reduce(((t,e)=>t+(e?.rowHeight??0)),0)}const O=Math.max(M.width+n*2,e?.width||0,F);const D=Math.max((E??0)+b.height,e?.height||0);const K=-O/2;const I=-D/2;y.selectAll("g:not(:first-child)").each(((t,e,r)=>{const i=(0,c.Ltv)(r[e]);const a=i.attr("transform");let o=0;let s=0;if(a){const t=RegExp(/translate\(([^,]+),([^)]+)\)/);const e=t.exec(a);if(e){o=parseFloat(e[1]);s=parseFloat(e[2]);if(i.attr("class").includes("attribute-name")){o+=k}else if(i.attr("class").includes("attribute-keys")){o+=k+w}else if(i.attr("class").includes("attribute-comment")){o+=k+w+S}}}i.attr("transform",`translate(${K+n/2+o}, ${s+I+b.height+l/2})`)}));y.select(".name").attr("transform","translate("+-b.width/2+", "+(I+l/2)+")");const R=_.rectangle(K,I,O,D,$);const P=y.insert((()=>R),":first-child").attr("style",d.join(""));const{themeVariables:q}=(0,s.zj)();const{rowEven:z,rowOdd:N,nodeBorder:W}=q;C.push(0);for(const[a,o]of v.entries()){const t=a+1;const e=t%2===0&&o.yOffset!==0;const r=_.rectangle(K,b.height+I+o?.yOffset,O,o?.rowHeight,{...$,fill:e?z:N,stroke:W});y.insert((()=>r),"g.label").attr("style",d.join("")).attr("class",`row-rect-${e?"even":"odd"}`)}let j=_.line(K,b.height+I,O+K,b.height+I,$);y.insert((()=>j)).attr("class","divider");j=_.line(k+K,b.height+I,k+K,D+I,$);y.insert((()=>j)).attr("class","divider");if(T){j=_.line(k+w+K,b.height+I,k+w+K,D+I,$);y.insert((()=>j)).attr("class","divider")}if(B){j=_.line(k+w+S+K,b.height+I,k+w+S+K,D+I,$);y.insert((()=>j)).attr("class","divider")}for(const a of C){j=_.line(K,b.height+I+a,O+K,b.height+I+a,$);y.insert((()=>j)).attr("class","divider")}f(e,P);if(g&&e.look!=="handDrawn"){const t=g.split(";");const e=t?.filter((t=>t.includes("stroke")))?.map((t=>`${t}`)).join("; ");y.selectAll("path").attr("style",e??"");y.selectAll(".row-rect-even path").attr("style",g)}e.intersect=function(t){return G.rect(e,t)};return y}(0,l.K2)(fe,"erBox");async function pe(t,e,r,i=0,a=0,l=[],h=""){const d=t.insert("g").attr("class",`label ${l.join(" ")}`).attr("transform",`translate(${i}, ${a})`).attr("style",h);if(e!==(0,s.QO)(e)){e=(0,s.QO)(e);e=e.replaceAll("<","<").replaceAll(">",">")}const u=d.node().appendChild(await(0,n.GZ)(d,e,{width:(0,o.Un)(e,r)+100,style:h,useHtmlLabels:r.htmlLabels},r));if(e.includes("<")||e.includes(">")){let t=u.children[0];t.textContent=t.textContent.replaceAll("<","<").replaceAll(">",">");while(t.childNodes[0]){t=t.childNodes[0];t.textContent=t.textContent.replaceAll("<","<").replaceAll(">",">")}}let f=u.getBBox();if((0,s._3)(r.htmlLabels)){const t=u.children[0];t.style.textAlign="start";const e=(0,c.Ltv)(u);f=t.getBoundingClientRect();e.attr("width",f.width);e.attr("height",f.height)}return f}(0,l.K2)(pe,"addText");async function ge(t,e,r,i,a=r.class.padding??12){const n=!i?3:0;const o=t.insert("g").attr("class",p(e)).attr("id",e.domId||e.id);let s=null;let l=null;let c=null;let h=null;let d=0;let u=0;let f=0;s=o.insert("g").attr("class","annotation-group text");if(e.annotations.length>0){const t=e.annotations[0];await me(s,{text:`«${t}»`},0);const r=s.node().getBBox();d=r.height}l=o.insert("g").attr("class","label-group text");await me(l,e,0,["font-weight: bolder"]);const g=l.node().getBBox();u=g.height;c=o.insert("g").attr("class","members-group text");let m=0;for(const p of e.members){const t=await me(c,p,m,[p.parseClassifier()]);m+=t+n}f=c.node().getBBox().height;if(f<=0){f=a/2}h=o.insert("g").attr("class","methods-group text");let y=0;for(const p of e.methods){const t=await me(h,p,y,[p.parseClassifier()]);y+=t+n}let b=o.node().getBBox();if(s!==null){const t=s.node().getBBox();s.attr("transform",`translate(${-t.width/2})`)}l.attr("transform",`translate(${-g.width/2}, ${d})`);b=o.node().getBBox();c.attr("transform",`translate(${0}, ${d+u+a*2})`);b=o.node().getBBox();h.attr("transform",`translate(${0}, ${d+u+(f?f+a*4:a*2)})`);b=o.node().getBBox();return{shapeSvg:o,bbox:b}}(0,l.K2)(ge,"textHelper");async function me(t,e,r,i=[]){const a=t.insert("g").attr("class","label").attr("style",i.join("; "));const h=(0,s.zj)();let d="useHtmlLabels"in e?e.useHtmlLabels:(0,s._3)(h.htmlLabels)??true;let u="";if("text"in e){u=e.text}else{u=e.label}if(!d&&u.startsWith("\\")){u=u.substring(1)}if((0,s.Wi)(u)){d=true}const f=await(0,n.GZ)(a,(0,s.oB)((0,o.Sm)(u)),{width:(0,o.Un)(u,h)+50,classes:"markdown-node-label",useHtmlLabels:d},h);let p;let g=1;if(!d){if(i.includes("font-weight: bolder")){(0,c.Ltv)(f).selectAll("tspan").attr("font-weight","")}g=f.children.length;const t=f.children[0];if(f.textContent===""||f.textContent.includes(">")){t.textContent=u[0]+u.substring(1).replaceAll(">",">").replaceAll("<","<").trim();const e=u[1]===" ";if(e){t.textContent=t.textContent[0]+" "+t.textContent.substring(1)}}if(t.textContent==="undefined"){t.textContent=""}p=f.getBBox()}else{const t=f.children[0];const e=(0,c.Ltv)(f);g=t.innerHTML.split("
").length;if(t.innerHTML.includes("")){g+=t.innerHTML.split("").length-1}const r=t.getElementsByTagName("img");if(r){const t=u.replace(/]*>/g,"").trim()==="";await Promise.all([...r].map((e=>new Promise((r=>{function i(){e.style.display="flex";e.style.flexDirection="column";if(t){const t=h.fontSize?.toString()??window.getComputedStyle(document.body).fontSize;const r=5;const i=parseInt(t,10)*r+"px";e.style.minWidth=i;e.style.maxWidth=i}else{e.style.width="100%"}r(e)}(0,l.K2)(i,"setupImage");setTimeout((()=>{if(e.complete){i()}}));e.addEventListener("error",i);e.addEventListener("load",i)})))))}p=t.getBoundingClientRect();e.attr("width",p.width);e.attr("height",p.height)}a.attr("transform","translate(0,"+(-p.height/(2*g)+r)+")");return p.height}(0,l.K2)(me,"addText");async function ye(t,e){const r=(0,s.D7)();const i=r.class.padding??12;const n=i;const o=e.useHtmlLabels??(0,s._3)(r.htmlLabels)??true;const l=e;l.annotations=l.annotations??[];l.members=l.members??[];l.methods=l.methods??[];const{shapeSvg:d,bbox:u}=await ge(t,e,r,o,n);const{labelStyles:p,nodeStyles:g}=(0,a.GX)(e);e.labelStyle=p;e.cssStyles=l.styles||"";const m=l.styles?.join(";")||g||"";if(!e.cssStyles){e.cssStyles=m.replaceAll("!important","").split(";")}const y=l.members.length===0&&l.methods.length===0&&!r.class?.hideEmptyMembersBox;const b=h.A.svg(d);const x=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){x.roughness=0;x.fillStyle="solid"}const C=u.width;let v=u.height;if(l.members.length===0&&l.methods.length===0){v+=n}else if(l.members.length>0&&l.methods.length===0){v+=n*2}const k=-C/2;const w=-v/2;const S=b.rectangle(k-i,w-i-(y?i:l.members.length===0&&l.methods.length===0?-i/2:0),C+2*i,v+2*i+(y?i*2:l.members.length===0&&l.methods.length===0?-i:0),x);const A=d.insert((()=>S),":first-child");A.attr("class","basic label-container");const T=A.node().getBBox();d.selectAll(".text").each(((t,e,r)=>{const a=(0,c.Ltv)(r[e]);const n=a.attr("transform");let s=0;if(n){const t=RegExp(/translate\(([^,]+),([^)]+)\)/);const e=t.exec(n);if(e){s=parseFloat(e[2])}}let h=s+w+i-(y?i:l.members.length===0&&l.methods.length===0?-i/2:0);if(!o){h-=4}let u=k;if(a.attr("class").includes("label-group")||a.attr("class").includes("annotation-group")){u=-a.node()?.getBBox().width/2||0;d.selectAll("text").each((function(t,e,r){if(window.getComputedStyle(r[e]).textAnchor==="middle"){u=0}}))}a.attr("transform",`translate(${u}, ${h})`)}));const B=d.select(".annotation-group").node().getBBox().height-(y?i/2:0)||0;const L=d.select(".label-group").node().getBBox().height-(y?i/2:0)||0;const M=d.select(".members-group").node().getBBox().height-(y?i/2:0)||0;if(l.members.length>0||l.methods.length>0||y){const t=b.line(T.x,B+L+w+i,T.x+T.width,B+L+w+i,x);const e=d.insert((()=>t));e.attr("class","divider").attr("style",m)}if(y||l.members.length>0||l.methods.length>0){const t=b.line(T.x,B+L+M+w+n*2+i,T.x+T.width,B+L+M+w+i+n*2,x);const e=d.insert((()=>t));e.attr("class","divider").attr("style",m)}if(l.look!=="handDrawn"){d.selectAll("path").attr("style",m)}A.select(":nth-child(2)").attr("style",m);d.selectAll(".divider").select("path").attr("style",m);if(e.labelStyle){d.selectAll("span").attr("style",e.labelStyle)}else{d.selectAll("span").attr("style",m)}if(!o){const t=RegExp(/color\s*:\s*([^;]*)/);const e=t.exec(m);if(e){const t=e[0].replace("color","fill");d.selectAll("tspan").attr("style",t)}else if(p){const e=t.exec(p);if(e){const t=e[0].replace("color","fill");d.selectAll("tspan").attr("style",t)}}}f(e,A);e.intersect=function(t){return G.rect(e,t)};return d}(0,l.K2)(ye,"classBox");async function be(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const n=e;const o=e;const s=20;const l=20;const d="verifyMethod"in e;const u=p(e);const g=t.insert("g").attr("class",u).attr("id",e.domId??e.id);let m;if(d){m=await xe(g,`<<${n.type}>>`,0,e.labelStyle)}else{m=await xe(g,"<<Element>>",0,e.labelStyle)}let y=m;const b=await xe(g,n.name,y,e.labelStyle+"; font-weight: bold;");y+=b+l;if(d){const t=await xe(g,`${n.requirementId?`ID: ${n.requirementId}`:""}`,y,e.labelStyle);y+=t;const r=await xe(g,`${n.text?`Text: ${n.text}`:""}`,y,e.labelStyle);y+=r;const i=await xe(g,`${n.risk?`Risk: ${n.risk}`:""}`,y,e.labelStyle);y+=i;await xe(g,`${n.verifyMethod?`Verification: ${n.verifyMethod}`:""}`,y,e.labelStyle)}else{const t=await xe(g,`${o.type?`Type: ${o.type}`:""}`,y,e.labelStyle);y+=t;await xe(g,`${o.docRef?`Doc Ref: ${o.docRef}`:""}`,y,e.labelStyle)}const x=(g.node()?.getBBox().width??200)+s;const C=(g.node()?.getBBox().height??200)+s;const v=-x/2;const k=-C/2;const w=h.A.svg(g);const S=(0,a.Fr)(e,{});if(e.look!=="handDrawn"){S.roughness=0;S.fillStyle="solid"}const A=w.rectangle(v,k,x,C,S);const T=g.insert((()=>A),":first-child");T.attr("class","basic label-container").attr("style",i);g.selectAll(".label").each(((t,e,r)=>{const i=(0,c.Ltv)(r[e]);const a=i.attr("transform");let n=0;let o=0;if(a){const t=RegExp(/translate\(([^,]+),([^)]+)\)/);const e=t.exec(a);if(e){n=parseFloat(e[1]);o=parseFloat(e[2])}}const l=o-C/2;let h=v+s/2;if(e===0||e===1){h=n}i.attr("transform",`translate(${h}, ${l+s})`)}));if(y>m+b+l){const t=w.line(v,k+m+b+l,v+x,k+m+b+l,S);const e=g.insert((()=>t));e.attr("style",i)}f(e,T);e.intersect=function(t){return G.rect(e,t)};return g}(0,l.K2)(be,"requirementBox");async function xe(t,e,r,i=""){if(e===""){return 0}const a=t.insert("g").attr("class","label").attr("style",i);const l=(0,s.D7)();const h=l.htmlLabels??true;const d=await(0,n.GZ)(a,(0,s.oB)((0,o.Sm)(e)),{width:(0,o.Un)(e,l)+50,classes:"markdown-node-label",useHtmlLabels:h,style:i},l);let u;if(!h){const t=d.children[0];for(const e of t.children){e.textContent=e.textContent.replaceAll(">",">").replaceAll("<","<");if(i){e.setAttribute("style",i)}}u=d.getBBox();u.height+=6}else{const t=d.children[0];const e=(0,c.Ltv)(d);u=t.getBoundingClientRect();e.attr("width",u.width);e.attr("height",u.height)}a.attr("transform",`translate(${-u.width/2},${-u.height/2+r})`);return u.height}(0,l.K2)(xe,"addText");var Ce=(0,l.K2)((t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}}),"colorFromPriority");async function ve(t,e,{config:r}){const{labelStyles:i,nodeStyles:n}=(0,a.GX)(e);e.labelStyle=i||"";const o=10;const s=e.width;e.width=(e.width??200)-10;const{shapeSvg:l,bbox:c,label:g}=await d(t,e,p(e));const m=e.padding||10;let y="";let b;if("ticket"in e&&e.ticket&&r?.kanban?.ticketBaseUrl){y=r?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket);b=l.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",y).attr("target","_blank")}const x={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:false};let C,v;if(b){({label:C,bbox:v}=await u(b,"ticket"in e&&e.ticket||"",x))}else{({label:C,bbox:v}=await u(l,"ticket"in e&&e.ticket||"",x))}const{label:k,bbox:w}=await u(l,"assigned"in e&&e.assigned||"",x);e.width=s;const A=10;const T=e?.width||0;const B=Math.max(v.height,w.height)/2;const L=Math.max(c.height+A*2,e?.height||0)+B;const M=-T/2;const F=-L/2;g.attr("transform","translate("+(m-T/2)+", "+(-B-c.height/2)+")");C.attr("transform","translate("+(m-T/2)+", "+(-B+c.height/2)+")");k.attr("transform","translate("+(m+T/2-w.width-2*o)+", "+(-B+c.height/2)+")");let _;const{rx:$,ry:E}=e;const{cssStyles:O}=e;if(e.look==="handDrawn"){const t=h.A.svg(l);const r=(0,a.Fr)(e,{});const i=$||E?t.path(S(M,F,T,L,$||0),r):t.rectangle(M,F,T,L,r);_=l.insert((()=>i),":first-child");_.attr("class","basic label-container").attr("style",O?O:null)}else{_=l.insert("rect",":first-child");_.attr("class","basic label-container __APA__").attr("style",n).attr("rx",$??5).attr("ry",E??5).attr("x",M).attr("y",F).attr("width",T).attr("height",L);const t="priority"in e&&e.priority;if(t){const e=l.append("line");const r=M+2;const i=F+Math.floor(($??0)/2);const a=F+L-Math.floor(($??0)/2);e.attr("x1",r).attr("y1",i).attr("x2",r).attr("y2",a).attr("stroke-width","4").attr("stroke",Ce(t))}}f(e,_);e.height=L;e.intersect=function(t){return G.rect(e,t)};return l}(0,l.K2)(ve,"kanbanItem");async function ke(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:s,halfPadding:c,label:u}=await d(t,e,p(e));const g=s.width+10*c;const m=s.height+8*c;const y=.15*g;const{cssStyles:b}=e;const x=s.width+20;const C=s.height+20;const v=Math.max(g,x);const k=Math.max(m,C);u.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`);let w;const S=`M0 0 \n a${y},${y} 1 0,0 ${v*.25},${-1*k*.1}\n a${y},${y} 1 0,0 ${v*.25},${0}\n a${y},${y} 1 0,0 ${v*.25},${0}\n a${y},${y} 1 0,0 ${v*.25},${k*.1}\n\n a${y},${y} 1 0,0 ${v*.15},${k*.33}\n a${y*.8},${y*.8} 1 0,0 0,${k*.34}\n a${y},${y} 1 0,0 ${-1*v*.15},${k*.33}\n\n a${y},${y} 1 0,0 ${-1*v*.25},${k*.15}\n a${y},${y} 1 0,0 ${-1*v*.25},0\n a${y},${y} 1 0,0 ${-1*v*.25},0\n a${y},${y} 1 0,0 ${-1*v*.25},${-1*k*.15}\n\n a${y},${y} 1 0,0 ${-1*v*.1},${-1*k*.33}\n a${y*.8},${y*.8} 1 0,0 0,${-1*k*.34}\n a${y},${y} 1 0,0 ${v*.1},${-1*k*.33}\n H0 V0 Z`;if(e.look==="handDrawn"){const t=h.A.svg(n);const r=(0,a.Fr)(e,{});const i=t.path(S,r);w=n.insert((()=>i),":first-child");w.attr("class","basic label-container").attr("style",(0,o.KL)(b))}else{w=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",S)}w.attr("transform",`translate(${-v/2}, ${-k/2})`);f(e,w);e.calcIntersect=function(t,e){return G.rect(t,e)};e.intersect=function(t){l.Rm.info("Bang intersect",e,t);return G.rect(e,t)};return n}(0,l.K2)(ke,"bang");async function we(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:s,halfPadding:c,label:u}=await d(t,e,p(e));const g=s.width+2*c;const m=s.height+2*c;const y=.15*g;const b=.25*g;const x=.35*g;const C=.2*g;const{cssStyles:v}=e;let k;const w=`M0 0 \n a${y},${y} 0 0,1 ${g*.25},${-1*g*.1}\n a${x},${x} 1 0,1 ${g*.4},${-1*g*.1}\n a${b},${b} 1 0,1 ${g*.35},${g*.2}\n\n a${y},${y} 1 0,1 ${g*.15},${m*.35}\n a${C},${C} 1 0,1 ${-1*g*.15},${m*.65}\n\n a${b},${y} 1 0,1 ${-1*g*.25},${g*.15}\n a${x},${x} 1 0,1 ${-1*g*.5},0\n a${y},${y} 1 0,1 ${-1*g*.25},${-1*g*.15}\n\n a${y},${y} 1 0,1 ${-1*g*.1},${-1*m*.35}\n a${C},${C} 1 0,1 ${g*.1},${-1*m*.65}\n H0 V0 Z`;if(e.look==="handDrawn"){const t=h.A.svg(n);const r=(0,a.Fr)(e,{});const i=t.path(w,r);k=n.insert((()=>i),":first-child");k.attr("class","basic label-container").attr("style",(0,o.KL)(v))}else{k=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",w)}u.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`);k.attr("transform",`translate(${-g/2}, ${-m/2})`);f(e,k);e.calcIntersect=function(t,e){return G.rect(t,e)};e.intersect=function(t){l.Rm.info("Cloud intersect",e,t);return G.rect(e,t)};return n}(0,l.K2)(we,"cloud");async function Se(t,e){const{labelStyles:r,nodeStyles:i}=(0,a.GX)(e);e.labelStyle=r;const{shapeSvg:n,bbox:o,halfPadding:s,label:l}=await d(t,e,p(e));const c=o.width+8*s;const h=o.height+2*s;const u=5;const g=`\n M${-c/2} ${h/2-u}\n v${-h+2*u}\n q0,-${u} ${u},-${u}\n h${c-2*u}\n q${u},0 ${u},${u}\n v${h-2*u}\n q0,${u} -${u},${u}\n h${-c+2*u}\n q-${u},0 -${u},-${u}\n Z\n `;const m=n.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+e.type).attr("style",i).attr("d",g);n.append("line").attr("class","node-line-").attr("x1",-c/2).attr("y1",h/2).attr("x2",c/2).attr("y2",h/2);l.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`);n.append((()=>l.node()));f(e,m);e.calcIntersect=function(t,e){return G.rect(t,e)};e.intersect=function(t){return G.rect(e,t)};return n}(0,l.K2)(Se,"defaultMindmapNode");async function Ae(t,e){const r={padding:e.padding??0};return J(t,e,r)}(0,l.K2)(Ae,"mindmapCircle");var Te=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:Yt},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:Ht},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:Xt},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:Jt},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:ut},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:J},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:ke},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:we},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:zt},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:xt},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:Ft},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Mt},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:se},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:Tt},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:pt},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:re},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:Z},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:Gt},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:Qt},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:Zt},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:yt},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:Ct},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:it},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:nt},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:st},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:_t},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:he},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:bt},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:oe},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:Dt},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:lt},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:ft},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:ce},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:ue},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:gt},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:le},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:mt},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:Ut},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Rt},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:It},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:X},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:et},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:ee},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:te},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:de},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Nt},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:Kt}];var Be=(0,l.K2)((()=>{const t={state:Vt,choice:Q,note:Pt,rectWithTitle:Wt,labelRect:Lt,iconSquare:St,iconCircle:kt,icon:vt,iconRounded:wt,imageSquare:At,anchor:U,kanbanItem:ve,mindmapCircle:Ae,defaultMindmapNode:Se,classBox:ye,erBox:fe,requirementBox:be};const e=[...Object.entries(t),...Te.flatMap((t=>{const e=[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]];return e.map((e=>[e,t.handler]))}))];return Object.fromEntries(e)}),"generateShapeMap");var Le=Be();function Me(t){return t in Le}(0,l.K2)(Me,"isValidShape");var Fe=new Map;async function _e(t,e,r){let i;let a;if(e.shape==="rect"){if(e.rx&&e.ry){e.shape="roundedRect"}else{e.shape="squareRect"}}const n=e.shape?Le[e.shape]:void 0;if(!n){throw new Error(`No such shape: ${e.shape}. Please check your syntax.`)}if(e.link){let o;if(r.config.securityLevel==="sandbox"){o="_top"}else if(e.linkTarget){o=e.linkTarget||"_blank"}i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",o??null);a=await n(i,e,r)}else{a=await n(t,e,r);i=a}if(e.tooltip){a.attr("title",e.tooltip)}Fe.set(e.id,i);if(e.haveCallback){i.attr("class",i.attr("class")+" clickable")}return i}(0,l.K2)(_e,"insertNode");var $e=(0,l.K2)(((t,e)=>{Fe.set(e.id,t)}),"setNodeElem");var Ee=(0,l.K2)((()=>{Fe.clear()}),"clear");var Oe=(0,l.K2)((t=>{const e=Fe.get(t.id);l.Rm.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const r=8;const i=t.diff||0;if(t.clusterNode){e.attr("transform","translate("+(t.x+i-t.width/2)+", "+(t.y-t.height/2-r)+")")}else{e.attr("transform","translate("+t.x+", "+t.y+")")}return i}),"positionNode")},57028:(t,e,r)=>{"use strict";r.d(e,{H:()=>ti,r:()=>Jr});var i=r(70416);function a(t){return typeof t==="undefined"||t===null}(0,i.K2)(a,"isNothing");function n(t){return typeof t==="object"&&t!==null}(0,i.K2)(n,"isObject");function o(t){if(Array.isArray(t))return t;else if(a(t))return[];return[t]}(0,i.K2)(o,"toArray");function s(t,e){var r,i,a,n;if(e){n=Object.keys(e);for(r=0,i=n.length;rs){n=" ... ";e=i-s+n.length}if(r-i>s){o=" ...";r=i+s-o.length}return{str:n+t.slice(e,r).replace(/\t/g,"→")+o,pos:i-e+n.length}}(0,i.K2)(C,"getLine");function v(t,e){return m.repeat(" ",e-t.length)+t}(0,i.K2)(v,"padStart");function k(t,e){e=Object.create(e||null);if(!t.buffer)return null;if(!e.maxLength)e.maxLength=79;if(typeof e.indent!=="number")e.indent=1;if(typeof e.linesBefore!=="number")e.linesBefore=3;if(typeof e.linesAfter!=="number")e.linesAfter=2;var r=/\r?\n|\r|\0/g;var i=[0];var a=[];var n;var o=-1;while(n=r.exec(t.buffer)){a.push(n.index);i.push(n.index+n[0].length);if(t.position<=n.index&&o<0){o=i.length-2}}if(o<0)o=i.length-1;var s="",l,c;var h=Math.min(t.line+e.linesAfter,a.length).toString().length;var d=e.maxLength-(e.indent+h+3);for(l=1;l<=e.linesBefore;l++){if(o-l<0)break;c=C(t.buffer,i[o-l],a[o-l],t.position-(i[o]-i[o-l]),d);s=m.repeat(" ",e.indent)+v((t.line-l+1).toString(),h)+" | "+c.str+"\n"+s}c=C(t.buffer,i[o],a[o],t.position,d);s+=m.repeat(" ",e.indent)+v((t.line+1).toString(),h)+" | "+c.str+"\n";s+=m.repeat("-",e.indent+h+3+c.pos)+"^\n";for(l=1;l<=e.linesAfter;l++){if(o+l>=a.length)break;c=C(t.buffer,i[o+l],a[o+l],t.position-(i[o]-i[o+l]),d);s+=m.repeat(" ",e.indent)+v((t.line+l+1).toString(),h)+" | "+c.str+"\n"}return s.replace(/\n$/,"")}(0,i.K2)(k,"makeSnippet");var w=k;var S=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var A=["scalar","sequence","mapping"];function T(t){var e={};if(t!==null){Object.keys(t).forEach((function(r){t[r].forEach((function(t){e[String(t)]=r}))}))}return e}(0,i.K2)(T,"compileStyleAliases");function B(t,e){e=e||{};Object.keys(e).forEach((function(e){if(S.indexOf(e)===-1){throw new x('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')}}));this.options=e;this.tag=t;this.kind=e["kind"]||null;this.resolve=e["resolve"]||function(){return true};this.construct=e["construct"]||function(t){return t};this.instanceOf=e["instanceOf"]||null;this.predicate=e["predicate"]||null;this.represent=e["represent"]||null;this.representName=e["representName"]||null;this.defaultStyle=e["defaultStyle"]||null;this.multi=e["multi"]||false;this.styleAliases=T(e["styleAliases"]||null);if(A.indexOf(this.kind)===-1){throw new x('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}}(0,i.K2)(B,"Type$1");var L=B;function M(t,e){var r=[];t[e].forEach((function(t){var e=r.length;r.forEach((function(r,i){if(r.tag===t.tag&&r.kind===t.kind&&r.multi===t.multi){e=i}}));r[e]=t}));return r}(0,i.K2)(M,"compileList");function F(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function a(e){if(e.multi){t.multi[e.kind].push(e);t.multi["fallback"].push(e)}else{t[e.kind][e.tag]=t["fallback"][e.tag]=e}}(0,i.K2)(a,"collectType");for(e=0,r=arguments.length;e=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)}),"binary"),octal:(0,i.K2)((function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)}),"octal"),decimal:(0,i.K2)((function(t){return t.toString(10)}),"decimal"),hexadecimal:(0,i.K2)((function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}),"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}});var Q=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function J(t){if(t===null)return false;if(!Q.test(t)||t[t.length-1]==="_"){return false}return true}(0,i.K2)(J,"resolveYamlFloat");function tt(t){var e,r;e=t.replace(/_/g,"").toLowerCase();r=e[0]==="-"?-1:1;if("+-".indexOf(e[0])>=0){e=e.slice(1)}if(e===".inf"){return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(e===".nan"){return NaN}return r*parseFloat(e,10)}(0,i.K2)(tt,"constructYamlFloat");var et=/^[-+]?[0-9]+e/;function rt(t,e){var r;if(isNaN(t)){switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===t){switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===t){switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(m.isNegativeZero(t)){return"-0.0"}r=t.toString(10);return et.test(r)?r.replace("e",".e"):r}(0,i.K2)(rt,"representYamlFloat");function it(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||m.isNegativeZero(t))}(0,i.K2)(it,"isFloat");var at=new L("tag:yaml.org,2002:float",{kind:"scalar",resolve:J,construct:tt,predicate:it,represent:rt,defaultStyle:"lowercase"});var nt=K.extend({implicit:[q,j,Z,at]});var ot=nt;var st=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");var lt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function ct(t){if(t===null)return false;if(st.exec(t)!==null)return true;if(lt.exec(t)!==null)return true;return false}(0,i.K2)(ct,"resolveYamlTimestamp");function ht(t){var e,r,i,a,n,o,s,l=0,c=null,h,d,u;e=st.exec(t);if(e===null)e=lt.exec(t);if(e===null)throw new Error("Date resolve error");r=+e[1];i=+e[2]-1;a=+e[3];if(!e[4]){return new Date(Date.UTC(r,i,a))}n=+e[4];o=+e[5];s=+e[6];if(e[7]){l=e[7].slice(0,3);while(l.length<3){l+="0"}l=+l}if(e[9]){h=+e[10];d=+(e[11]||0);c=(h*60+d)*6e4;if(e[9]==="-")c=-c}u=new Date(Date.UTC(r,i,a,n,o,s,l));if(c)u.setTime(u.getTime()-c);return u}(0,i.K2)(ht,"constructYamlTimestamp");function dt(t){return t.toISOString()}(0,i.K2)(dt,"representYamlTimestamp");var ut=new L("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:ct,construct:ht,instanceOf:Date,represent:dt});function ft(t){return t==="<<"||t===null}(0,i.K2)(ft,"resolveYamlMerge");var pt=new L("tag:yaml.org,2002:merge",{kind:"scalar",resolve:ft});var gt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function mt(t){if(t===null)return false;var e,r,i=0,a=t.length,n=gt;for(r=0;r64)continue;if(e<0)return false;i+=6}return i%8===0}(0,i.K2)(mt,"resolveYamlBinary");function yt(t){var e,r,i=t.replace(/[\r\n=]/g,""),a=i.length,n=gt,o=0,s=[];for(e=0;e>16&255);s.push(o>>8&255);s.push(o&255)}o=o<<6|n.indexOf(i.charAt(e))}r=a%4*6;if(r===0){s.push(o>>16&255);s.push(o>>8&255);s.push(o&255)}else if(r===18){s.push(o>>10&255);s.push(o>>2&255)}else if(r===12){s.push(o>>4&255)}return new Uint8Array(s)}(0,i.K2)(yt,"constructYamlBinary");function bt(t){var e="",r=0,i,a,n=t.length,o=gt;for(i=0;i>18&63];e+=o[r>>12&63];e+=o[r>>6&63];e+=o[r&63]}r=(r<<8)+t[i]}a=n%3;if(a===0){e+=o[r>>18&63];e+=o[r>>12&63];e+=o[r>>6&63];e+=o[r&63]}else if(a===2){e+=o[r>>10&63];e+=o[r>>4&63];e+=o[r<<2&63];e+=o[64]}else if(a===1){e+=o[r>>2&63];e+=o[r<<4&63];e+=o[64];e+=o[64]}return e}(0,i.K2)(bt,"representYamlBinary");function xt(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}(0,i.K2)(xt,"isBinary");var Ct=new L("tag:yaml.org,2002:binary",{kind:"scalar",resolve:mt,construct:yt,predicate:xt,represent:bt});var vt=Object.prototype.hasOwnProperty;var kt=Object.prototype.toString;function wt(t){if(t===null)return true;var e=[],r,i,a,n,o,s=t;for(r=0,i=s.length;r>10)+55296,(t-65536&1023)+56320)}(0,i.K2)(ie,"charFromCodepoint");var ae=new Array(256);var ne=new Array(256);for(oe=0;oe<256;oe++){ae[oe]=re(oe)?1:0;ne[oe]=re(oe)}var oe;function se(t,e){this.input=t;this.filename=e["filename"]||null;this.schema=e["schema"]||Ot;this.onWarning=e["onWarning"]||null;this.legacy=e["legacy"]||false;this.json=e["json"]||false;this.listener=e["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=t.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}(0,i.K2)(se,"State$1");function le(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};r.snippet=w(r);return new x(e,r)}(0,i.K2)(le,"generateError");function ce(t,e){throw le(t,e)}(0,i.K2)(ce,"throwError");function he(t,e){if(t.onWarning){t.onWarning.call(null,le(t,e))}}(0,i.K2)(he,"throwWarning");var de={YAML:(0,i.K2)((function t(e,r,i){var a,n,o;if(e.version!==null){ce(e,"duplication of %YAML directive")}if(i.length!==1){ce(e,"YAML directive accepts exactly one argument")}a=/^([0-9]+)\.([0-9]+)$/.exec(i[0]);if(a===null){ce(e,"ill-formed argument of the YAML directive")}n=parseInt(a[1],10);o=parseInt(a[2],10);if(n!==1){ce(e,"unacceptable YAML version of the document")}e.version=i[0];e.checkLineBreaks=o<2;if(o!==1&&o!==2){he(e,"unsupported YAML version of the document")}}),"handleYamlDirective"),TAG:(0,i.K2)((function t(e,r,i){var a,n;if(i.length!==2){ce(e,"TAG directive accepts exactly two arguments")}a=i[0];n=i[1];if(!Gt.test(a)){ce(e,"ill-formed tag handle (first argument) of the TAG directive")}if(Dt.call(e.tagMap,a)){ce(e,'there is a previously declared suffix for "'+a+'" tag handle')}if(!Ut.test(n)){ce(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{n=decodeURIComponent(n)}catch(o){ce(e,"tag prefix is malformed: "+n)}e.tagMap[a]=n}),"handleTagDirective")};function ue(t,e,r,i){var a,n,o,s;if(e1){t.result+=m.repeat("\n",e-1)}}(0,i.K2)(be,"writeFoldedLines");function xe(t,e,r){var i,a,n,o,s,l,c,h,d=t.kind,u=t.result,f;f=t.input.charCodeAt(t.position);if(Zt(f)||Qt(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96){return false}if(f===63||f===45){a=t.input.charCodeAt(t.position+1);if(Zt(a)||r&&Qt(a)){return false}}t.kind="scalar";t.result="";n=o=t.position;s=false;while(f!==0){if(f===58){a=t.input.charCodeAt(t.position+1);if(Zt(a)||r&&Qt(a)){break}}else if(f===35){i=t.input.charCodeAt(t.position-1);if(Zt(i)){break}}else if(t.position===t.lineStart&&ye(t)||r&&Qt(f)){break}else if(Xt(f)){l=t.line;c=t.lineStart;h=t.lineIndent;me(t,false,-1);if(t.lineIndent>=e){s=true;f=t.input.charCodeAt(t.position);continue}else{t.position=o;t.line=l;t.lineStart=c;t.lineIndent=h;break}}if(s){ue(t,n,o,false);be(t,t.line-l);n=o=t.position;s=false}if(!Vt(f)){o=t.position+1}f=t.input.charCodeAt(++t.position)}ue(t,n,o,false);if(t.result){return true}t.kind=d;t.result=u;return false}(0,i.K2)(xe,"readPlainScalar");function Ce(t,e){var r,i,a;r=t.input.charCodeAt(t.position);if(r!==39){return false}t.kind="scalar";t.result="";t.position++;i=a=t.position;while((r=t.input.charCodeAt(t.position))!==0){if(r===39){ue(t,i,t.position,true);r=t.input.charCodeAt(++t.position);if(r===39){i=t.position;t.position++;a=t.position}else{return true}}else if(Xt(r)){ue(t,i,a,true);be(t,me(t,false,e));i=a=t.position}else if(t.position===t.lineStart&&ye(t)){ce(t,"unexpected end of the document within a single quoted scalar")}else{t.position++;a=t.position}}ce(t,"unexpected end of the stream within a single quoted scalar")}(0,i.K2)(Ce,"readSingleQuotedScalar");function ve(t,e){var r,i,a,n,o,s;s=t.input.charCodeAt(t.position);if(s!==34){return false}t.kind="scalar";t.result="";t.position++;r=i=t.position;while((s=t.input.charCodeAt(t.position))!==0){if(s===34){ue(t,r,t.position,true);t.position++;return true}else if(s===92){ue(t,r,t.position,true);s=t.input.charCodeAt(++t.position);if(Xt(s)){me(t,false,e)}else if(s<256&&ae[s]){t.result+=ne[s];t.position++}else if((o=te(s))>0){a=o;n=0;for(;a>0;a--){s=t.input.charCodeAt(++t.position);if((o=Jt(s))>=0){n=(n<<4)+o}else{ce(t,"expected hexadecimal character")}}t.result+=ie(n);t.position++}else{ce(t,"unknown escape sequence")}r=i=t.position}else if(Xt(s)){ue(t,r,i,true);be(t,me(t,false,e));r=i=t.position}else if(t.position===t.lineStart&&ye(t)){ce(t,"unexpected end of the document within a double quoted scalar")}else{t.position++;i=t.position}}ce(t,"unexpected end of the stream within a double quoted scalar")}(0,i.K2)(ve,"readDoubleQuotedScalar");function ke(t,e){var r=true,i,a,n,o=t.tag,s,l=t.anchor,c,h,d,u,f,p=Object.create(null),g,m,y,b;b=t.input.charCodeAt(t.position);if(b===91){h=93;f=false;s=[]}else if(b===123){h=125;f=true;s={}}else{return false}if(t.anchor!==null){t.anchorMap[t.anchor]=s}b=t.input.charCodeAt(++t.position);while(b!==0){me(t,true,e);b=t.input.charCodeAt(t.position);if(b===h){t.position++;t.tag=o;t.anchor=l;t.kind=f?"mapping":"sequence";t.result=s;return true}else if(!r){ce(t,"missed comma between flow collection entries")}else if(b===44){ce(t,"expected the node content, but found ','")}m=g=y=null;d=u=false;if(b===63){c=t.input.charCodeAt(t.position+1);if(Zt(c)){d=u=true;t.position++;me(t,true,e)}}i=t.line;a=t.lineStart;n=t.position;Me(t,e,Kt,false,true);m=t.tag;g=t.result;me(t,true,e);b=t.input.charCodeAt(t.position);if((u||t.line===i)&&b===58){d=true;b=t.input.charCodeAt(++t.position);me(t,true,e);Me(t,e,Kt,false,true);y=t.result}if(f){pe(t,s,p,m,g,y,i,a,n)}else if(d){s.push(pe(t,null,p,m,g,y,i,a,n))}else{s.push(g)}me(t,true,e);b=t.input.charCodeAt(t.position);if(b===44){r=true;b=t.input.charCodeAt(++t.position)}else{r=false}}ce(t,"unexpected end of the stream within a flow collection")}(0,i.K2)(ke,"readFlowCollection");function we(t,e){var r,i,a=qt,n=false,o=false,s=e,l=0,c=false,h,d;d=t.input.charCodeAt(t.position);if(d===124){i=false}else if(d===62){i=true}else{return false}t.kind="scalar";t.result="";while(d!==0){d=t.input.charCodeAt(++t.position);if(d===43||d===45){if(qt===a){a=d===43?Nt:zt}else{ce(t,"repeat of a chomping mode identifier")}}else if((h=ee(d))>=0){if(h===0){ce(t,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!o){s=e+h-1;o=true}else{ce(t,"repeat of an indentation width identifier")}}else{break}}if(Vt(d)){do{d=t.input.charCodeAt(++t.position)}while(Vt(d));if(d===35){do{d=t.input.charCodeAt(++t.position)}while(!Xt(d)&&d!==0)}}while(d!==0){ge(t);t.lineIndent=0;d=t.input.charCodeAt(t.position);while((!o||t.lineIndents){s=t.lineIndent}if(Xt(d)){l++;continue}if(t.lineIndente)&&l!==0){ce(t,"bad indentation of a sequence entry")}else if(t.lineIndente){if(m){o=t.line;s=t.lineStart;l=t.position}if(Me(t,e,Pt,true,a)){if(m){p=t.result}else{g=t.result}}if(!m){pe(t,d,u,f,p,g,o,s,l);f=p=g=null}me(t,true,-1);b=t.input.charCodeAt(t.position)}if((t.line===n||t.lineIndent>e)&&b!==0){ce(t,"bad indentation of a mapping entry")}else if(t.lineIndente){l=1}else if(t.lineIndent===e){l=0}else if(t.lineIndente){l=1}else if(t.lineIndent===e){l=0}else if(t.lineIndent tag; it should be "scalar", not "'+t.kind+'"')}for(d=0,u=t.implicitTypes.length;d")}if(t.result!==null&&p.kind!==t.kind){ce(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+p.kind+'", not "'+t.kind+'"')}if(!p.resolve(t.result,t.tag)){ce(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}else{t.result=p.construct(t.result,t.tag);if(t.anchor!==null){t.anchorMap[t.anchor]=t.result}}}if(t.listener!==null){t.listener("close",t)}return t.tag!==null||t.anchor!==null||h}(0,i.K2)(Me,"composeNode");function Fe(t){var e=t.position,r,i,a,n=false,o;t.version=null;t.checkLineBreaks=t.legacy;t.tagMap=Object.create(null);t.anchorMap=Object.create(null);while((o=t.input.charCodeAt(t.position))!==0){me(t,true,-1);o=t.input.charCodeAt(t.position);if(t.lineIndent>0||o!==37){break}n=true;o=t.input.charCodeAt(++t.position);r=t.position;while(o!==0&&!Zt(o)){o=t.input.charCodeAt(++t.position)}i=t.input.slice(r,t.position);a=[];if(i.length<1){ce(t,"directive name must not be less than one character in length")}while(o!==0){while(Vt(o)){o=t.input.charCodeAt(++t.position)}if(o===35){do{o=t.input.charCodeAt(++t.position)}while(o!==0&&!Xt(o));break}if(Xt(o))break;r=t.position;while(o!==0&&!Zt(o)){o=t.input.charCodeAt(++t.position)}a.push(t.input.slice(r,t.position))}if(o!==0)ge(t);if(Dt.call(de,i)){de[i](t,i,a)}else{he(t,'unknown document directive "'+i+'"')}}me(t,true,-1);if(t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45){t.position+=3;me(t,true,-1)}else if(n){ce(t,"directives end mark is expected")}Me(t,t.lineIndent-1,Pt,false,true);me(t,true,-1);if(t.checkLineBreaks&&jt.test(t.input.slice(e,t.position))){he(t,"non-ASCII line breaks are interpreted as content")}t.documents.push(t.result);if(t.position===t.lineStart&&ye(t)){if(t.input.charCodeAt(t.position)===46){t.position+=3;me(t,true,-1)}return}if(t.position=55296&&r<=56319&&e+1=56320&&i<=57343){return(r-55296)*1024+i-56320+65536}}return r}(0,i.K2)(Br,"codePointAt");function Lr(t){var e=/^\n* /;return e.test(t)}(0,i.K2)(Lr,"needIndentIndicator");var Mr=1;var Fr=2;var _r=3;var $r=4;var Er=5;function Or(t,e,r,i,a,n,o,s){var l;var c=0;var h=null;var d=false;var u=false;var f=i!==-1;var p=-1;var g=Ar(Br(t,0))&&Tr(Br(t,t.length-1));if(e||o){for(l=0;l=65536?l+=2:l++){c=Br(t,l);if(!kr(c)){return Er}g=g&&Sr(c,h,s);h=c}}else{for(l=0;l=65536?l+=2:l++){c=Br(t,l);if(c===ze){d=true;if(f){u=u||l-p-1>i&&t[p+1]!==" ";p=l}}else if(!kr(c)){return Er}g=g&&Sr(c,h,s);h=c}u=u||f&&(l-p-1>i&&t[p+1]!==" ")}if(!d&&!u){if(g&&!o&&!a(t)){return Mr}return n===mr?Er:Fr}if(r>9&&Lr(t)){return Er}if(!o){return u?$r:_r}return n===mr?Er:Fr}(0,i.K2)(Or,"chooseScalarStyle");function Dr(t,e,r,a,n){t.dump=function(){if(e.length===0){return t.quotingType===mr?'""':"''"}if(!t.noCompatMode){if(dr.indexOf(e)!==-1||ur.test(e)){return t.quotingType===mr?'"'+e+'"':"'"+e+"'"}}var o=t.indent*Math.max(1,r);var s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-o);var l=a||t.flowLevel>-1&&r>=t.flowLevel;function c(e){return Cr(t,e)}(0,i.K2)(c,"testAmbiguity");switch(Or(e,l,t.indent,s,c,t.quotingType,t.forceQuotes&&!a,n)){case Mr:return e;case Fr:return"'"+e.replace(/'/g,"''")+"'";case _r:return"|"+Kr(e,t.indent)+Ir(br(e,o));case $r:return">"+Kr(e,t.indent)+Ir(br(Rr(e,s),o));case Er:return'"'+qr(e)+'"';default:throw new x("impossible error: invalid scalar style")}}()}(0,i.K2)(Dr,"writeScalar");function Kr(t,e){var r=Lr(t)?String(e):"";var i=t[t.length-1]==="\n";var a=i&&(t[t.length-2]==="\n"||t==="\n");var n=a?"+":i?"":"-";return r+n+"\n"}(0,i.K2)(Kr,"blockHeader");function Ir(t){return t[t.length-1]==="\n"?t.slice(0,-1):t}(0,i.K2)(Ir,"dropEndingNewline");function Rr(t,e){var r=/(\n+)([^\n]*)/g;var i=function(){var i=t.indexOf("\n");i=i!==-1?i:t.length;r.lastIndex=i;return Pr(t.slice(0,i),e)}();var a=t[0]==="\n"||t[0]===" ";var n;var o;while(o=r.exec(t)){var s=o[1],l=o[2];n=l[0]===" ";i+=s+(!a&&!n&&l!==""?"\n":"")+Pr(l,e);a=n}return i}(0,i.K2)(Rr,"foldString");function Pr(t,e){if(t===""||t[0]===" ")return t;var r=/ [^ ]/g;var i;var a=0,n,o=0,s=0;var l="";while(i=r.exec(t)){s=i.index;if(s-a>e){n=o>a?o:s;l+="\n"+t.slice(a,n);a=n+1}o=s}l+="\n";if(t.length-a>e&&o>a){l+=t.slice(a,o)+"\n"+t.slice(o+1)}else{l+=t.slice(a)}return l.slice(1)}(0,i.K2)(Pr,"foldLine");function qr(t){var e="";var r=0;var i;for(var a=0;a=65536?a+=2:a++){r=Br(t,a);i=hr[r];if(!i&&kr(r)){e+=t[a];if(r>=65536)e+=t[a+1]}else{e+=i||pr(r)}}return e}(0,i.K2)(qr,"escapeString");function zr(t,e,r){var i="",a=t.tag,n,o,s;for(n=0,o=r.length;n1024)h+="? ";h+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" ");if(!Gr(t,e,c,false,false)){continue}h+=t.dump;i+=h}t.tag=a;t.dump="{"+i+"}"}(0,i.K2)(Wr,"writeFlowMapping");function jr(t,e,r,i){var a="",n=t.tag,o=Object.keys(r),s,l,c,h,d,u;if(t.sortKeys===true){o.sort()}else if(typeof t.sortKeys==="function"){o.sort(t.sortKeys)}else if(t.sortKeys){throw new x("sortKeys must be a boolean or a function")}for(s=0,l=o.length;s1024;if(d){if(t.dump&&ze===t.dump.charCodeAt(0)){u+="?"}else{u+="? "}}u+=t.dump;if(d){u+=xr(t,e)}if(!Gr(t,e+1,h,true,d)){continue}if(t.dump&&ze===t.dump.charCodeAt(0)){u+=":"}else{u+=": "}u+=t.dump;a+=u}t.tag=n;t.dump=a||"{}"}(0,i.K2)(jr,"writeBlockMapping");function Hr(t,e,r){var i,a,n,o,s,l;a=r?t.explicitTypes:t.implicitTypes;for(n=0,o=a.length;n tag resolver accepts not "'+l+'" style')}t.dump=i}return true}}return false}(0,i.K2)(Hr,"detectType");function Gr(t,e,r,i,a,n,o){t.tag=null;t.dump=r;if(!Hr(t,r,false)){Hr(t,r,true)}var s=Ie.call(t.dump);var l=i;var c;if(i){i=t.flowLevel<0||t.flowLevel>e}var h=s==="[object Object]"||s==="[object Array]",d,u;if(h){d=t.duplicates.indexOf(r);u=d!==-1}if(t.tag!==null&&t.tag!=="?"||u||t.indent!==2&&e>0){a=false}if(u&&t.usedDuplicates[d]){t.dump="*ref_"+d}else{if(h&&u&&!t.usedDuplicates[d]){t.usedDuplicates[d]=true}if(s==="[object Object]"){if(i&&Object.keys(t.dump).length!==0){jr(t,e,t.dump,a);if(u){t.dump="&ref_"+d+t.dump}}else{Wr(t,e,t.dump);if(u){t.dump="&ref_"+d+" "+t.dump}}}else if(s==="[object Array]"){if(i&&t.dump.length!==0){if(t.noArrayIndent&&!o&&e>0){Nr(t,e-1,t.dump,a)}else{Nr(t,e,t.dump,a)}if(u){t.dump="&ref_"+d+t.dump}}else{zr(t,e,t.dump);if(u){t.dump="&ref_"+d+" "+t.dump}}}else if(s==="[object String]"){if(t.tag!=="?"){Dr(t,t.dump,e,n,l)}}else if(s==="[object Undefined]"){return false}else{if(t.skipInvalid)return false;throw new x("unacceptable kind of an object to dump "+s)}if(t.tag!==null&&t.tag!=="?"){c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21");if(t.tag[0]==="!"){c="!"+c}else if(c.slice(0,18)==="tag:yaml.org,2002:"){c="!!"+c.slice(18)}else{c="!<"+c+">"}t.dump=c+" "+t.dump}}return true}(0,i.K2)(Gr,"writeNode");function Ur(t,e){var r=[],i=[],a,n;Yr(t,r,i);for(a=0,n=i.length;a{"use strict";r.d(e,{XX:()=>u,q7:()=>f,sO:()=>h});var i=r(25301);var a=r(47655);var n=r(29131);var o=r(42418);var s=r(70416);var l={common:o.Y2,getConfig:o.zj,insertCluster:a.U,insertEdge:i.Jo,insertEdgeLabel:i.jP,insertMarkers:i.g0,insertNode:a.on,interpolateToCurve:n.Ib,labelHelper:a.Zk,log:s.Rm,positionEdgeLabel:i.T_};var c={};var h=(0,s.K2)((t=>{for(const e of t){c[e.name]=e}}),"registerLayoutLoaders");var d=(0,s.K2)((()=>{h([{name:"dagre",loader:(0,s.K2)((async()=>await Promise.all([r.e(1838),r.e(2211),r.e(7476)]).then(r.bind(r,67476))),"loader")},...true?[{name:"cose-bilkent",loader:(0,s.K2)((async()=>await Promise.all([r.e(8786),r.e(5007)]).then(r.bind(r,95007))),"loader")}]:0])}),"registerDefaultLayoutLoaders");d();var u=(0,s.K2)((async(t,e)=>{if(!(t.layoutAlgorithm in c)){throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`)}const r=c[t.layoutAlgorithm];const i=await r.loader();return i.render(t,e,l,{algorithm:r.algorithm})}),"render");var f=(0,s.K2)(((t="",{fallback:e="dagre"}={})=>{if(t in c){return t}if(e in c){s.Rm.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`);return e}throw new Error(`Both layout algorithms ${t} and ${e} are not registered.`)}),"getRegisteredLayoutAlgorithm")},25301:(t,e,r)=>{"use strict";r.d(e,{IU:()=>b,Jo:()=>F,T_:()=>k,g0:()=>Z,jP:()=>C});var i=r(46103);var a=r(47655);var n=r(15164);var o=r(55750);var s=r(95035);var l=r(29131);var c=r(42418);var h=r(70416);var d=r(1218);var u=r(52274);var f=(0,h.K2)(((t,e,r,i,a,n)=>{if(e.arrowTypeStart){g(t,"start",e.arrowTypeStart,r,i,a,n)}if(e.arrowTypeEnd){g(t,"end",e.arrowTypeEnd,r,i,a,n)}}),"addEdgeMarkers");var p={arrow_cross:{type:"cross",fill:false},arrow_point:{type:"point",fill:true},arrow_barb:{type:"barb",fill:true},arrow_circle:{type:"circle",fill:false},aggregation:{type:"aggregation",fill:false},extension:{type:"extension",fill:false},composition:{type:"composition",fill:true},dependency:{type:"dependency",fill:true},lollipop:{type:"lollipop",fill:false},only_one:{type:"onlyOne",fill:false},zero_or_one:{type:"zeroOrOne",fill:false},one_or_more:{type:"oneOrMore",fill:false},zero_or_more:{type:"zeroOrMore",fill:false},requirement_arrow:{type:"requirement_arrow",fill:false},requirement_contains:{type:"requirement_contains",fill:false}};var g=(0,h.K2)(((t,e,r,i,a,n,o)=>{const s=p[r];if(!s){h.Rm.warn(`Unknown arrow type: ${r}`);return}const l=s.type;const c=e==="start"?"Start":"End";const d=`${a}_${n}-${l}${c}`;if(o&&o.trim()!==""){const r=o.replace(/[^\dA-Za-z]/g,"_");const a=`${d}_${r}`;if(!document.getElementById(a)){const t=document.getElementById(d);if(t){const e=t.cloneNode(true);e.id=a;const r=e.querySelectorAll("path, circle, line");r.forEach((t=>{t.setAttribute("stroke",o);if(s.fill){t.setAttribute("fill",o)}}));t.parentNode?.appendChild(e)}}t.attr(`marker-${e}`,`url(${i}#${a})`)}else{t.attr(`marker-${e}`,`url(${i}#${d})`)}}),"addEdgeMarker");var m=new Map;var y=new Map;var b=(0,h.K2)((()=>{m.clear();y.clear()}),"clear");var x=(0,h.K2)((t=>{let e=t?t.reduce(((t,e)=>t+";"+e),""):"";return e}),"getLabelStyles");var C=(0,h.K2)((async(t,e)=>{let r=(0,c._3)((0,c.D7)().flowchart.htmlLabels);const{labelStyles:i}=(0,o.GX)(e);e.labelStyle=i;const n=await(0,s.GZ)(t,e.label,{style:e.labelStyle,useHtmlLabels:r,addSvgBackground:true,isNode:false});h.Rm.info("abc82",e,e.labelType);const l=t.insert("g").attr("class","edgeLabel");const u=l.insert("g").attr("class","label").attr("data-id",e.id);u.node().appendChild(n);let f=n.getBBox();if(r){const t=n.children[0];const e=(0,d.Ltv)(n);f=t.getBoundingClientRect();e.attr("width",f.width);e.attr("height",f.height)}u.attr("transform","translate("+-f.width/2+", "+-f.height/2+")");m.set(e.id,l);e.width=f.width;e.height=f.height;let p;if(e.startLabelLeft){const r=await(0,a.DA)(e.startLabelLeft,x(e.labelStyle));const i=t.insert("g").attr("class","edgeTerminals");const n=i.insert("g").attr("class","inner");p=n.node().appendChild(r);const o=r.getBBox();n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")");if(!y.get(e.id)){y.set(e.id,{})}y.get(e.id).startLeft=i;v(p,e.startLabelLeft)}if(e.startLabelRight){const r=await(0,a.DA)(e.startLabelRight,x(e.labelStyle));const i=t.insert("g").attr("class","edgeTerminals");const n=i.insert("g").attr("class","inner");p=i.node().appendChild(r);n.node().appendChild(r);const o=r.getBBox();n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")");if(!y.get(e.id)){y.set(e.id,{})}y.get(e.id).startRight=i;v(p,e.startLabelRight)}if(e.endLabelLeft){const r=await(0,a.DA)(e.endLabelLeft,x(e.labelStyle));const i=t.insert("g").attr("class","edgeTerminals");const n=i.insert("g").attr("class","inner");p=n.node().appendChild(r);const o=r.getBBox();n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")");i.node().appendChild(r);if(!y.get(e.id)){y.set(e.id,{})}y.get(e.id).endLeft=i;v(p,e.endLabelLeft)}if(e.endLabelRight){const r=await(0,a.DA)(e.endLabelRight,x(e.labelStyle));const i=t.insert("g").attr("class","edgeTerminals");const n=i.insert("g").attr("class","inner");p=n.node().appendChild(r);const o=r.getBBox();n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")");i.node().appendChild(r);if(!y.get(e.id)){y.set(e.id,{})}y.get(e.id).endRight=i;v(p,e.endLabelRight)}return n}),"insertEdgeLabel");function v(t,e){if((0,c.D7)().flowchart.htmlLabels&&t){t.style.width=e.length*9+"px";t.style.height="12px"}}(0,h.K2)(v,"setTerminalWidth");var k=(0,h.K2)(((t,e)=>{h.Rm.debug("Moving label abc88 ",t.id,t.label,m.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath;const i=(0,c.D7)();const{subGraphTitleTotalMargin:a}=(0,n.O)(i);if(t.label){const i=m.get(t.id);let n=t.x;let o=t.y;if(r){const i=l._K.calcLabelPosition(r);h.Rm.debug("Moving label "+t.label+" from (",n,",",o,") to (",i.x,",",i.y,") abc88");if(e.updatedPath){n=i.x;o=i.y}}i.attr("transform",`translate(${n}, ${o+a/2})`)}if(t.startLabelLeft){const e=y.get(t.id).startLeft;let i=t.x;let a=t.y;if(r){const e=l._K.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);i=e.x;a=e.y}e.attr("transform",`translate(${i}, ${a})`)}if(t.startLabelRight){const e=y.get(t.id).startRight;let i=t.x;let a=t.y;if(r){const e=l._K.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);i=e.x;a=e.y}e.attr("transform",`translate(${i}, ${a})`)}if(t.endLabelLeft){const e=y.get(t.id).endLeft;let i=t.x;let a=t.y;if(r){const e=l._K.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);i=e.x;a=e.y}e.attr("transform",`translate(${i}, ${a})`)}if(t.endLabelRight){const e=y.get(t.id).endRight;let i=t.x;let a=t.y;if(r){const e=l._K.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);i=e.x;a=e.y}e.attr("transform",`translate(${i}, ${a})`)}}),"positionEdgeLabel");var w=(0,h.K2)(((t,e)=>{const r=t.x;const i=t.y;const a=Math.abs(e.x-r);const n=Math.abs(e.y-i);const o=t.width/2;const s=t.height/2;return a>=o||n>=s}),"outsideNode");var S=(0,h.K2)(((t,e,r)=>{h.Rm.debug(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(e)}\n insidePoint : ${JSON.stringify(r)}\n node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const i=t.x;const a=t.y;const n=Math.abs(i-r.x);const o=t.width/2;let s=r.xMath.abs(i-e.x)*l){let t=r.y{h.Rm.warn("abc88 cutPathAtIntersect",t,e);let r=[];let i=t[0];let a=false;t.forEach((t=>{h.Rm.info("abc88 checking point",t,e);if(!w(e,t)&&!a){const n=S(e,i,t);h.Rm.debug("abc88 inside",t,i,n);h.Rm.debug("abc88 intersection",n,e);let o=false;r.forEach((t=>{o=o||t.x===n.x&&t.y===n.y}));if(!r.some((t=>t.x===n.x&&t.y===n.y))){r.push(n)}else{h.Rm.warn("abc88 no intersect",n,r)}a=true}else{h.Rm.warn("abc88 outside",t,i);i=t;if(!a){r.push(t)}}}));h.Rm.debug("returning points",r);return r}),"cutPathAtIntersect");function T(t){const e=[];const r=[];for(let i=1;i5&&Math.abs(n.y-a.y)>5){e.push(n);r.push(i)}else if(a.y===n.y&&n.x===o.x&&Math.abs(n.x-a.x)>5&&Math.abs(n.y-o.y)>5){e.push(n);r.push(i)}}return{cornerPoints:e,cornerPointPositions:r}}(0,h.K2)(T,"extractCornerPoints");var B=(0,h.K2)((function(t,e,r){const i=e.x-t.x;const a=e.y-t.y;const n=Math.sqrt(i*i+a*a);const o=r/n;return{x:e.x-o*i,y:e.y-o*a}}),"findAdjacentPoint");var L=(0,h.K2)((function(t){const{cornerPointPositions:e}=T(t);const r=[];for(let i=0;i10&&Math.abs(a.y-e.y)>=10){h.Rm.debug("Corner point fixing",Math.abs(a.x-e.x),Math.abs(a.y-e.y));const t=5;if(n.x===o.x){u={x:l<0?o.x-t+d:o.x+t-d,y:c<0?o.y-d:o.y+d}}else{u={x:l<0?o.x-d:o.x+d,y:c<0?o.y-t+d:o.y+t-d}}}else{h.Rm.debug("Corner point skipping fixing",Math.abs(a.x-e.x),Math.abs(a.y-e.y))}r.push(u,s)}else{r.push(t[i])}}return r}),"fixCorners");var M=(0,h.K2)(((t,e,r)=>{const i=t-e-r;const a=2;const n=2;const o=a+n;const s=Math.floor(i/o);const l=Array(s).fill(`${a} ${n}`).join(" ");const c=`0 ${e} ${l} ${r}`;return c}),"generateDashArray");var F=(0,h.K2)((function(t,e,r,a,n,s,p,g=false){const{handDrawnSeed:m}=(0,c.D7)();let y=e.points;let b=false;const x=n;var C=s;const v=[];for(const i in e.cssCompiledStyles){if((0,o.KX)(i)){continue}v.push(e.cssCompiledStyles[i])}h.Rm.debug("UIO intersect check",e.points,C.x,x.x);if(C.intersect&&x.intersect&&!g){y=y.slice(1,e.points.length-1);y.unshift(x.intersect(y[0]));h.Rm.debug("Last point UIO",e.start,"--\x3e",e.end,y[y.length-1],C,C.intersect(y[y.length-1]));y.push(C.intersect(y[y.length-1]))}const k=btoa(JSON.stringify(y));if(e.toCluster){h.Rm.info("to cluster abc88",r.get(e.toCluster));y=A(e.points,r.get(e.toCluster).node);b=true}if(e.fromCluster){h.Rm.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(y,null,2));y=A(y.reverse(),r.get(e.fromCluster).node).reverse();b=true}let w=y.filter((t=>!Number.isNaN(t.y)));w=L(w);let S=d.qrM;S=d.lUB;switch(e.curve){case"linear":S=d.lUB;break;case"basis":S=d.qrM;break;case"cardinal":S=d.y8u;break;case"bumpX":S=d.Wi0;break;case"bumpY":S=d.PGM;break;case"catmullRom":S=d.oDi;break;case"monotoneX":S=d.nVG;break;case"monotoneY":S=d.uxU;break;case"natural":S=d.Xf2;break;case"step":S=d.GZz;break;case"stepAfter":S=d.UPb;break;case"stepBefore":S=d.dyv;break;default:S=d.qrM}const{x:T,y:B}=(0,i.RI)(e);const F=(0,d.n8j)().x(T).y(B).curve(S);let $;switch(e.thickness){case"normal":$="edge-thickness-normal";break;case"thick":$="edge-thickness-thick";break;case"invisible":$="edge-thickness-invisible";break;default:$="edge-thickness-normal"}switch(e.pattern){case"solid":$+=" edge-pattern-solid";break;case"dotted":$+=" edge-pattern-dotted";break;case"dashed":$+=" edge-pattern-dashed";break;default:$+=" edge-pattern-solid"}let O;let D=e.curve==="rounded"?_(E(w,e),5):F(w);const K=Array.isArray(e.style)?e.style:[e.style];let I=K.find((t=>t?.startsWith("stroke:")));let R=false;if(e.look==="handDrawn"){const r=u.A.svg(t);Object.assign([],w);const i=r.path(D,{roughness:.3,seed:m});$+=" transition";O=(0,d.Ltv)(i).select("path").attr("id",e.id).attr("class"," "+$+(e.classes?" "+e.classes:"")).attr("style",K?K.reduce(((t,e)=>t+";"+e),""):"");let a=O.attr("d");O.attr("d",a);t.node().appendChild(O.node())}else{const r=v.join(";");const a=K?K.reduce(((t,e)=>t+e+";"),""):"";let n="";if(e.animate){n=" edge-animation-fast"}if(e.animation){n=" edge-animation-"+e.animation}const o=(r?r+";"+a+";":a)+";"+(K?K.reduce(((t,e)=>t+";"+e),""):"");O=t.append("path").attr("d",D).attr("id",e.id).attr("class"," "+$+(e.classes?" "+e.classes:"")+(n??"")).attr("style",o);I=o.match(/stroke:([^;]+)/)?.[1];R=e.animate===true||!!e.animation||r.includes("animation");const s=O.node();const l=typeof s.getTotalLength==="function"?s.getTotalLength():0;const c=i.Nq[e.arrowTypeStart]||0;const h=i.Nq[e.arrowTypeEnd]||0;if(e.look==="neo"&&!R){const t=e.pattern==="dotted"||e.pattern==="dashed"?M(l,c,h):`0 ${c} ${l-c-h} ${h}`;const r=`stroke-dasharray: ${t}; stroke-dashoffset: 0;`;O.attr("style",r+O.attr("style"))}}O.attr("data-edge",true);O.attr("data-et","edge");O.attr("data-id",e.id);O.attr("data-points",k);if(e.showPoints){w.forEach((e=>{t.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",e.x).attr("cy",e.y)}))}let P="";if((0,c.D7)().flowchart.arrowMarkerAbsolute||(0,c.D7)().state.arrowMarkerAbsolute){P=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search;P=P.replace(/\(/g,"\\(").replace(/\)/g,"\\)")}h.Rm.info("arrowTypeStart",e.arrowTypeStart);h.Rm.info("arrowTypeEnd",e.arrowTypeEnd);f(O,e,P,p,a,I);const q=Math.floor(y.length/2);const z=y[q];if(!l._K.isLabelCoordinateInPath(z,O.attr("d"))){b=true}let N={};if(b){N.updatedPath=y}N.originalPath=e.points;return N}),"insertEdge");function _(t,e){if(t.length<2){return""}let r="";const i=t.length;const a=1e-5;for(let n=0;n({...t})));if(t.length>=2&&i.hq[e.arrowTypeStart]){const a=i.hq[e.arrowTypeStart];const n=t[0];const o=t[1];const{angle:s}=$(n,o);const l=a*Math.cos(s);const c=a*Math.sin(s);r[0].x=n.x+l;r[0].y=n.y+c}const a=t.length;if(a>=2&&i.hq[e.arrowTypeEnd]){const n=i.hq[e.arrowTypeEnd];const o=t[a-1];const s=t[a-2];const{angle:l}=$(s,o);const c=n*Math.cos(l);const h=n*Math.sin(l);r[a-1].x=o.x-c;r[a-1].y=o.y-h}return r}(0,h.K2)(E,"applyMarkerOffsetsToPoints");var O=(0,h.K2)(((t,e,r,i)=>{e.forEach((e=>{V[e](t,r,i)}))}),"insertMarkers");var D=(0,h.K2)(((t,e,r)=>{h.Rm.trace("Making markers for ",r);t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z");t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")}),"extension");var K=(0,h.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z");t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")}),"composition");var I=(0,h.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z");t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")}),"aggregation");var R=(0,h.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z");t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).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")}),"dependency");var P=(0,h.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6);t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)}),"lollipop");var q=(0,h.K2)(((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0");t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")}),"point");var z=(0,h.K2)(((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0");t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")}),"circle");var N=(0,h.K2)(((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0");t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")}),"cross");var W=(0,h.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}),"barb");var j=(0,h.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18");t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")}),"only_one");var H=(0,h.K2)(((t,e,r)=>{const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6);i.append("path").attr("d","M9,0 L9,18");const a=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6);a.append("path").attr("d","M21,0 L21,18")}),"zero_or_one");var G=(0,h.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27");t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")}),"one_or_more");var U=(0,h.K2)(((t,e,r)=>{const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6);i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const a=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6);a.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")}),"zero_or_more");var Y=(0,h.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0\n L20,10\n M20,10\n L0,20`)}),"requirement_arrow");var X=(0,h.K2)(((t,e,r)=>{const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none");i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10);i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)}),"requirement_contains");var V={extension:D,composition:K,aggregation:I,dependency:R,lollipop:P,point:q,circle:z,cross:N,barb:W,only_one:j,zero_or_one:H,one_or_more:G,zero_or_more:U,requirement_arrow:Y,requirement_contains:X};var Z=O},29131:(t,e,r)=>{"use strict";r.d(e,{$C:()=>L,$t:()=>j,C4:()=>G,I5:()=>W,Ib:()=>m,KL:()=>X,Sm:()=>U,Un:()=>K,_K:()=>H,bH:()=>E,dq:()=>z,pe:()=>c,rY:()=>Y,ru:()=>D,sM:()=>T,vU:()=>p,yT:()=>F});var i=r(42418);var a=r(70416);var n=r(16750);var o=r(1218);var s=r(307);var l=r(96901);var c="​";var h={curveBasis:o.qrM,curveBasisClosed:o.Yu4,curveBasisOpen:o.IA3,curveBumpX:o.Wi0,curveBumpY:o.PGM,curveBundle:o.OEq,curveCardinalClosed:o.olC,curveCardinalOpen:o.IrU,curveCardinal:o.y8u,curveCatmullRomClosed:o.Q7f,curveCatmullRomOpen:o.cVp,curveCatmullRom:o.oDi,curveLinear:o.lUB,curveLinearClosed:o.Lx9,curveMonotoneX:o.nVG,curveMonotoneY:o.uxU,curveNatural:o.Xf2,curveStep:o.GZz,curveStepAfter:o.UPb,curveStepBefore:o.dyv};var d=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi;var u=(0,a.K2)((function(t,e){const r=f(t,/(?:init\b)|(?:initialize\b)/);let a={};if(Array.isArray(r)){const t=r.map((t=>t.args));(0,i.$i)(t);a=(0,i.hH)(a,[...t])}else{a=r.args}if(!a){return}let n=(0,i.Ch)(t,e);const o="config";if(a[o]!==void 0){if(n==="flowchart-v2"){n="flowchart"}a[n]=a[o];delete a[o]}return a}),"detectInit");var f=(0,a.K2)((function(t,e=null){try{const r=new RegExp(`[%]{2}(?![{]${d.source})(?=[}][%]{2}).*\n`,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"');a.Rm.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let n;const o=[];while((n=i.DB.exec(t))!==null){if(n.index===i.DB.lastIndex){i.DB.lastIndex++}if(n&&!e||e&&n[1]?.match(e)||e&&n[2]?.match(e)){const t=n[1]?n[1]:n[2];const e=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;o.push({type:t,args:e})}}if(o.length===0){return{type:t,args:null}}return o.length===1?o[0]:o}catch(r){a.Rm.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`);return{type:void 0,args:null}}}),"detectDirective");var p=(0,a.K2)((function(t){return t.replace(i.DB,"")}),"removeDirectives");var g=(0,a.K2)((function(t,e){for(const[r,i]of e.entries()){if(i.match(t)){return r}}return-1}),"isSubstringInArray");function m(t,e){if(!t){return e}const r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return h[r]??e}(0,a.K2)(m,"interpolateToCurve");function y(t,e){const r=t.trim();if(!r){return void 0}if(e.securityLevel!=="loose"){return(0,n.J)(r)}return r}(0,a.K2)(y,"formatUrl");var b=(0,a.K2)(((t,...e)=>{const r=t.split(".");const i=r.length-1;const n=r[i];let o=window;for(let s=0;s{r+=x(t,e);e=t}));const i=r/2;return w(t,i)}(0,a.K2)(C,"traverseEdge");function v(t){if(t.length===1){return t[0]}return C(t)}(0,a.K2)(v,"calcLabelPosition");var k=(0,a.K2)(((t,e=2)=>{const r=Math.pow(10,e);return Math.round(t*r)/r}),"roundNumber");var w=(0,a.K2)(((t,e)=>{let r=void 0;let i=e;for(const a of t){if(r){const t=x(a,r);if(t===0){return r}if(t=1){return{x:a.x,y:a.y}}if(e>0&&e<1){return{x:k((1-e)*r.x+e*a.x,5),y:k((1-e)*r.y+e*a.y,5)}}}}r=a}throw new Error("Could not find a suitable point for the given distance")}),"calculatePoint");var S=(0,a.K2)(((t,e,r)=>{a.Rm.info(`our points ${JSON.stringify(e)}`);if(e[0]!==r){e=e.reverse()}const i=25;const n=w(e,i);const o=t?10:5;const s=Math.atan2(e[0].y-n.y,e[0].x-n.x);const l={x:0,y:0};l.x=Math.sin(s)*o+(e[0].x+n.x)/2;l.y=-Math.cos(s)*o+(e[0].y+n.y)/2;return l}),"calcCardinalityPosition");function A(t,e,r){const i=structuredClone(r);a.Rm.info("our points",i);if(e!=="start_left"&&e!=="start_right"){i.reverse()}const n=25+t;const o=w(i,n);const s=10+t*.5;const l=Math.atan2(i[0].y-o.y,i[0].x-o.x);const c={x:0,y:0};if(e==="start_left"){c.x=Math.sin(l+Math.PI)*s+(i[0].x+o.x)/2;c.y=-Math.cos(l+Math.PI)*s+(i[0].y+o.y)/2}else if(e==="end_right"){c.x=Math.sin(l-Math.PI)*s+(i[0].x+o.x)/2-5;c.y=-Math.cos(l-Math.PI)*s+(i[0].y+o.y)/2-5}else if(e==="end_left"){c.x=Math.sin(l)*s+(i[0].x+o.x)/2-5;c.y=-Math.cos(l)*s+(i[0].y+o.y)/2-5}else{c.x=Math.sin(l)*s+(i[0].x+o.x)/2;c.y=-Math.cos(l)*s+(i[0].y+o.y)/2}return c}(0,a.K2)(A,"calcTerminalLabelPosition");function T(t){let e="";let r="";for(const i of t){if(i!==void 0){if(i.startsWith("color:")||i.startsWith("text-align:")){r=r+i+";"}else{e=e+i+";"}}}return{style:e,labelStyle:r}}(0,a.K2)(T,"getStylesFromArray");var B=0;var L=(0,a.K2)((()=>{B++;return"id-"+Math.random().toString(36).substr(2,12)+"-"+B}),"generateId");function M(t){let e="";const r="0123456789abcdef";const i=r.length;for(let a=0;aM(t.length)),"random");var _=(0,a.K2)((function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}}),"getTextObj");var $=(0,a.K2)((function(t,e){const r=e.text.replace(i.Y2.lineBreakRegex," ");const[,a]=W(e.fontSize);const n=t.append("text");n.attr("x",e.x);n.attr("y",e.y);n.style("text-anchor",e.anchor);n.style("font-family",e.fontFamily);n.style("font-size",a);n.style("font-weight",e.fontWeight);n.attr("fill",e.fill);if(e.class!==void 0){n.attr("class",e.class)}const o=n.append("tspan");o.attr("x",e.x+e.textMargin*2);o.attr("fill",e.fill);o.text(r);return n}),"drawSimpleText");var E=(0,s.A)(((t,e,r)=>{if(!t){return t}r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},r);if(i.Y2.lineBreakRegex.test(t)){return t}const a=t.split(" ").filter(Boolean);const n=[];let o="";a.forEach(((t,i)=>{const s=K(`${t} `,r);const l=K(o,r);if(s>e){const{hyphenatedStrings:i,remainingWord:a}=O(t,e,"-",r);n.push(o,...i);o=a}else if(l+s>=e){n.push(o);o=t}else{o=[o,t].filter(Boolean).join(" ")}const c=i+1;const h=c===a.length;if(h){n.push(o)}}));return n.filter((t=>t!=="")).join(r.joinWith)}),((t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`));var O=(0,s.A)(((t,e,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const a=[...t];const n=[];let o="";a.forEach(((t,s)=>{const l=`${o}${t}`;const c=K(l,i);if(c>=e){const t=s+1;const e=a.length===t;const i=`${l}${r}`;n.push(e?l:i);o=""}else{o=l}}));return{hyphenatedStrings:n,remainingWord:o}}),((t,e,r="-",i)=>`${t}${e}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`));function D(t,e){return I(t,e).height}(0,a.K2)(D,"calculateTextHeight");function K(t,e){return I(t,e).width}(0,a.K2)(K,"calculateTextWidth");var I=(0,s.A)(((t,e)=>{const{fontSize:r=12,fontFamily:a="Arial",fontWeight:n=400}=e;if(!t){return{width:0,height:0}}const[,s]=W(r);const l=["sans-serif",a];const h=t.split(i.Y2.lineBreakRegex);const d=[];const u=(0,o.Ltv)("body");if(!u.remove){return{width:0,height:0,lineHeight:0}}const f=u.append("svg");for(const i of l){let t=0;const e={width:0,height:0,lineHeight:0};for(const r of h){const a=_();a.text=r||c;const o=$(f,a).style("font-size",s).style("font-weight",n).style("font-family",i);const l=(o._groups||o)[0][0].getBBox();if(l.width===0&&l.height===0){throw new Error("svg element not in render tree")}e.width=Math.round(Math.max(e.width,l.width));t=Math.round(l.height);e.height+=t;e.lineHeight=Math.round(Math.max(e.lineHeight,t))}d.push(e)}f.remove();const p=isNaN(d[1].height)||isNaN(d[1].width)||isNaN(d[1].lineHeight)||d[0].height>d[1].height&&d[0].width>d[1].width&&d[0].lineHeight>d[1].lineHeight?0:1;return d[p]}),((t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`));var R=class{constructor(t=false,e){this.count=0;this.count=e?e.length:0;this.next=t?()=>this.count++:()=>Date.now()}static{(0,a.K2)(this,"InitIDGenerator")}};var P;var q=(0,a.K2)((function(t){P=P||document.createElement("div");t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";");P.innerHTML=t;return unescape(P.textContent)}),"entityDecode");function z(t){return"str"in t}(0,a.K2)(z,"isDetailedError");var N=(0,a.K2)(((t,e,r,i)=>{if(!i){return}const a=t.node()?.getBBox();if(!a){return}t.append("text").text(i).attr("text-anchor","middle").attr("x",a.x+a.width/2).attr("y",-r).attr("class",e)}),"insertTitle");var W=(0,a.K2)((t=>{if(typeof t==="number"){return[t,t+"px"]}const e=parseInt(t??"",10);if(Number.isNaN(e)){return[void 0,void 0]}else if(t===String(e)){return[e,t+"px"]}else{return[e,t]}}),"parseFontSize");function j(t,e){return(0,l.A)({},t,e)}(0,a.K2)(j,"cleanAndMerge");var H={assignWithDepth:i.hH,wrapLabel:E,calculateTextHeight:D,calculateTextWidth:K,calculateTextDimensions:I,cleanAndMerge:j,detectInit:u,detectDirective:f,isSubstringInArray:g,interpolateToCurve:m,calcLabelPosition:v,calcCardinalityPosition:S,calcTerminalLabelPosition:A,formatUrl:y,getStylesFromArray:T,generateId:L,random:F,runFunc:b,entityDecode:q,insertTitle:N,isLabelCoordinateInPath:V,parseFontSize:W,InitIDGenerator:R};var G=(0,a.K2)((function(t){let e=t;e=e.replace(/style.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)}));e=e.replace(/classDef.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)}));e=e.replace(/#\w+;/g,(function(t){const e=t.substring(1,t.length-1);const r=/^\+?\d+$/.test(e);if(r){return"fl°°"+e+"¶ß"}else{return"fl°"+e+"¶ß"}}));return e}),"encodeEntities");var U=(0,a.K2)((function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")}),"decodeEntities");var Y=(0,a.K2)(((t,e,{counter:r=0,prefix:i,suffix:a},n)=>{if(n){return n}return`${i?`${i}_`:""}${t}_${e}_${r}${a?`_${a}`:""}`}),"getEdgeId");function X(t){return t??null}(0,a.K2)(X,"handleUndefinedAttr");function V(t,e){const r=Math.round(t.x);const i=Math.round(t.y);const a=e.replace(/(\d+\.\d+)/g,(t=>Math.round(parseFloat(t)).toString()));return a.includes(r.toString())||a.includes(i.toString())}(0,a.K2)(V,"isLabelCoordinateInPath")},90227:(t,e,r)=>{"use strict";r.r(e);r.d(e,{default:()=>pa});var i=r(87756);var a=r(29479);var n=r(57028);var o=r(78188);var s=r(25301);var l=r(46103);var c=r(47655);var h=r(15164);var d=r(55750);var u=r(95035);var f=r(29131);var p=r(42418);var g=r(70416);var m=r(60513);var y=r(1218);var b="-ms-";var x="-moz-";var C="-webkit-";var v="comm";var k="rule";var w="decl";var S="@page";var A="@media";var T="@import";var B="@charset";var L="@viewport";var M="@supports";var F="@document";var _="@namespace";var $="@keyframes";var E="@font-face";var O="@counter-style";var D="@font-feature-values";var K="@layer";var I="@scope";var R=Math.abs;var P=String.fromCharCode;var q=Object.assign;function z(t,e){return G(t,0)^45?(((e<<2^G(t,0))<<2^G(t,1))<<2^G(t,2))<<2^G(t,3):0}function N(t){return t.trim()}function W(t,e){return(t=e.exec(t))?t[0]:t}function j(t,e,r){return t.replace(e,r)}function H(t,e,r){return t.indexOf(e,r)}function G(t,e){return t.charCodeAt(e)|0}function U(t,e,r){return t.slice(e,r)}function Y(t){return t.length}function X(t){return t.length}function V(t,e){return e.push(t),t}function Z(t,e){return t.map(e).join("")}function Q(t,e){return t.filter((function(t){return!W(t,e)}))}function J(t,e){var r="";for(var i=0;i0?G(ot,--at):0;if(rt--,nt===10)rt=1,et--;return nt}function ut(){nt=at2||mt(nt)>3?"":" "}function kt(t){while(ut())switch(mt(nt)){case 0:append(Tt(at-1),t);break;case 2:append(xt(nt),t);break;default:append(from(nt),t)}return t}function wt(t,e){while(--e&&ut())if(nt<48||nt>102||nt>57&&nt<65||nt>70&&nt<97)break;return gt(t,pt()+(e<6&&ft()==32&&ut()==32))}function St(t){while(ut())switch(nt){case t:return at;case 34:case 39:if(t!==34&&t!==39)St(nt);break;case 40:if(t===41)St(t);break;case 92:ut();break}return at}function At(t,e){while(ut())if(t+nt===47+10)break;else if(t+nt===42+42&&ft()===47)break;return"/*"+gt(e,at-1)+"*"+P(t===47?t:ut())}function Tt(t){while(!mt(ft()))ut();return gt(t,at)}function Bt(t){return bt(Lt("",null,null,null,[""],t=yt(t),0,[0],t))}function Lt(t,e,r,i,a,n,o,s,l){var c=0;var h=0;var d=o;var u=0;var f=0;var p=0;var g=1;var m=1;var y=1;var b=0;var x="";var C=a;var v=n;var k=i;var w=x;while(m)switch(p=b,b=ut()){case 40:if(p!=108&&G(w,d-1)==58){if(H(w+=j(xt(b),"&","&\f"),"&\f",R(c?s[c-1]:0))!=-1)y=-1;break}case 34:case 39:case 91:w+=xt(b);break;case 9:case 10:case 13:case 32:w+=vt(p);break;case 92:w+=wt(pt()-1,7);continue;case 47:switch(ft()){case 42:case 47:V(Ft(At(ut(),pt()),e,r,l),l);if((mt(p||1)==5||mt(ft()||1)==5)&&Y(w)&&U(w,-1,void 0)!==" ")w+=" ";break;default:w+="/"}break;case 123*g:s[c++]=Y(w)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+h:if(y==-1)w=j(w,/\f/g,"");if(f>0&&(Y(w)-d||g===0&&p===47))V(f>32?_t(w+";",i,r,d-1,l):_t(j(w," ","")+";",i,r,d-2,l),l);break;case 59:w+=";";default:V(k=Mt(w,e,r,c,h,a,s,x,C=[],v=[],d,n),n);if(b===123)if(h===0)Lt(w,e,k,k,C,n,d,s,v);else{switch(u){case 99:if(G(w,3)===110)break;case 108:if(G(w,2)===97)break;default:h=0;case 100:case 109:case 115:}if(h)Lt(t,k,k,i&&V(Mt(t,k,k,0,0,a,s,x,a,C=[],d,v),v),a,v,d,s,i?C:v);else Lt(w,k,k,k,[""],v,0,s,v)}}c=h=f=0,g=y=1,x=w="",d=o;break;case 58:d=1+Y(w),f=p;default:if(g<1)if(b==123)--g;else if(b==125&&g++==0&&dt()==125)continue;switch(w+=P(b),b*g){case 38:y=h>0?1:(w+="\f",-1);break;case 44:s[c++]=(Y(w)-1)*y,y=1;break;case 64:if(ft()===45)w+=xt(ut());u=ft(),h=d=Y(x=w+=Tt(pt())),b++;break;case 45:if(p===45&&Y(w)==2)g=0}}return n}function Mt(t,e,r,i,a,n,o,s,l,c,h,d){var u=a-1;var f=a===0?n:[""];var p=X(f);for(var g=0,m=0,y=0;g0?f[b]+" "+x:j(x,/&\f/g,f[b])))l[y++]=C;return st(t,e,r,a===0?k:s,l,c,h,d)}function Ft(t,e,r,i){return st(t,e,r,v,P(ht()),U(t,2,-2),0,i)}function _t(t,e,r,i,a){return st(t,e,r,w,U(t,0,i),U(t,i+1,-1),i,a)}var $t=r(84997);var Et=r(74650);var Ot="c4";var Dt=(0,g.K2)((t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t)),"detector");var Kt=(0,g.K2)((async()=>{const{diagram:t}=await r.e(7356).then(r.bind(r,27356));return{id:Ot,diagram:t}}),"loader");var It={id:Ot,detector:Dt,loader:Kt};var Rt=It;var Pt="flowchart";var qt=(0,g.K2)(((t,e)=>{if(e?.flowchart?.defaultRenderer==="dagre-wrapper"||e?.flowchart?.defaultRenderer==="elk"){return false}return/^\s*graph/.test(t)}),"detector");var zt=(0,g.K2)((async()=>{const{diagram:t}=await r.e(2434).then(r.bind(r,2434));return{id:Pt,diagram:t}}),"loader");var Nt={id:Pt,detector:qt,loader:zt};var Wt=Nt;var jt="flowchart-v2";var Ht=(0,g.K2)(((t,e)=>{if(e?.flowchart?.defaultRenderer==="dagre-d3"){return false}if(e?.flowchart?.defaultRenderer==="elk"){e.layout="elk"}if(/^\s*graph/.test(t)&&e?.flowchart?.defaultRenderer==="dagre-wrapper"){return true}return/^\s*flowchart/.test(t)}),"detector");var Gt=(0,g.K2)((async()=>{const{diagram:t}=await r.e(2434).then(r.bind(r,2434));return{id:jt,diagram:t}}),"loader");var Ut={id:jt,detector:Ht,loader:Gt};var Yt=Ut;var Xt="er";var Vt=(0,g.K2)((t=>/^\s*erDiagram/.test(t)),"detector");var Zt=(0,g.K2)((async()=>{const{diagram:t}=await r.e(6405).then(r.bind(r,86405));return{id:Xt,diagram:t}}),"loader");var Qt={id:Xt,detector:Vt,loader:Zt};var Jt=Qt;var te="gitGraph";var ee=(0,g.K2)((t=>/^\s*gitGraph/.test(t)),"detector");var re=(0,g.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(1838),r.e(4010),r.e(2709)]).then(r.bind(r,95090));return{id:te,diagram:t}}),"loader");var ie={id:te,detector:ee,loader:re};var ae=ie;var ne="gantt";var oe=(0,g.K2)((t=>/^\s*gantt/.test(t)),"detector");var se=(0,g.K2)((async()=>{const{diagram:t}=await r.e(7828).then(r.bind(r,15447));return{id:ne,diagram:t}}),"loader");var le={id:ne,detector:oe,loader:se};var ce=le;var he="info";var de=(0,g.K2)((t=>/^\s*info/.test(t)),"detector");var ue=(0,g.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(1838),r.e(4010),r.e(1599)]).then(r.bind(r,81599));return{id:he,diagram:t}}),"loader");var fe={id:he,detector:de,loader:ue};var pe="pie";var ge=(0,g.K2)((t=>/^\s*pie/.test(t)),"detector");var me=(0,g.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(1838),r.e(4010),r.e(4483)]).then(r.bind(r,14483));return{id:pe,diagram:t}}),"loader");var ye={id:pe,detector:ge,loader:me};var be="quadrantChart";var xe=(0,g.K2)((t=>/^\s*quadrantChart/.test(t)),"detector");var Ce=(0,g.K2)((async()=>{const{diagram:t}=await r.e(5834).then(r.bind(r,65834));return{id:be,diagram:t}}),"loader");var ve={id:be,detector:xe,loader:Ce};var ke=ve;var we="xychart";var Se=(0,g.K2)((t=>/^\s*xychart(-beta)?/.test(t)),"detector");var Ae=(0,g.K2)((async()=>{const{diagram:t}=await r.e(7680).then(r.bind(r,37680));return{id:we,diagram:t}}),"loader");var Te={id:we,detector:Se,loader:Ae};var Be=Te;var Le="requirement";var Me=(0,g.K2)((t=>/^\s*requirement(Diagram)?/.test(t)),"detector");var Fe=(0,g.K2)((async()=>{const{diagram:t}=await r.e(8259).then(r.bind(r,78259));return{id:Le,diagram:t}}),"loader");var _e={id:Le,detector:Me,loader:Fe};var $e=_e;var Ee="sequence";var Oe=(0,g.K2)((t=>/^\s*sequenceDiagram/.test(t)),"detector");var De=(0,g.K2)((async()=>{const{diagram:t}=await r.e(8310).then(r.bind(r,65929));return{id:Ee,diagram:t}}),"loader");var Ke={id:Ee,detector:Oe,loader:De};var Ie=Ke;var Re="class";var Pe=(0,g.K2)(((t,e)=>{if(e?.class?.defaultRenderer==="dagre-wrapper"){return false}return/^\s*classDiagram/.test(t)}),"detector");var qe=(0,g.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(7863),r.e(1109)]).then(r.bind(r,11109));return{id:Re,diagram:t}}),"loader");var ze={id:Re,detector:Pe,loader:qe};var Ne=ze;var We="classDiagram";var je=(0,g.K2)(((t,e)=>{if(/^\s*classDiagram/.test(t)&&e?.class?.defaultRenderer==="dagre-wrapper"){return true}return/^\s*classDiagram-v2/.test(t)}),"detector");var He=(0,g.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(7863),r.e(8398)]).then(r.bind(r,78398));return{id:We,diagram:t}}),"loader");var Ge={id:We,detector:je,loader:He};var Ue=Ge;var Ye="state";var Xe=(0,g.K2)(((t,e)=>{if(e?.state?.defaultRenderer==="dagre-wrapper"){return false}return/^\s*stateDiagram/.test(t)}),"detector");var Ve=(0,g.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(1838),r.e(2211),r.e(6901),r.e(3053)]).then(r.bind(r,53053));return{id:Ye,diagram:t}}),"loader");var Ze={id:Ye,detector:Xe,loader:Ve};var Qe=Ze;var Je="stateDiagram";var tr=(0,g.K2)(((t,e)=>{if(/^\s*stateDiagram-v2/.test(t)){return true}if(/^\s*stateDiagram/.test(t)&&e?.state?.defaultRenderer==="dagre-wrapper"){return true}return false}),"detector");var er=(0,g.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(6901),r.e(7879)]).then(r.bind(r,87879));return{id:Je,diagram:t}}),"loader");var rr={id:Je,detector:tr,loader:er};var ir=rr;var ar="journey";var nr=(0,g.K2)((t=>/^\s*journey/.test(t)),"detector");var or=(0,g.K2)((async()=>{const{diagram:t}=await r.e(3339).then(r.bind(r,3339));return{id:ar,diagram:t}}),"loader");var sr={id:ar,detector:nr,loader:or};var lr=sr;var cr=(0,g.K2)(((t,e,r)=>{g.Rm.debug("rendering svg for syntax error\n");const i=(0,a.D)(e);const n=i.append("g");i.attr("viewBox","0 0 2412 512");(0,p.a$)(i,100,512,true);n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z");n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z");n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z");n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z");n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z");n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z");n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text");n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)}),"draw");var hr={draw:cr};var dr=hr;var ur={db:{},renderer:hr,parser:{parse:(0,g.K2)((()=>{}),"parse")}};var fr=ur;var pr="flowchart-elk";var gr=(0,g.K2)(((t,e={})=>{if(/^\s*flowchart-elk/.test(t)||/^\s*(flowchart|graph)/.test(t)&&e?.flowchart?.defaultRenderer==="elk"){e.layout="elk";return true}return false}),"detector");var mr=(0,g.K2)((async()=>{const{diagram:t}=await r.e(2434).then(r.bind(r,2434));return{id:pr,diagram:t}}),"loader");var yr={id:pr,detector:gr,loader:mr};var br=yr;var xr="timeline";var Cr=(0,g.K2)((t=>/^\s*timeline/.test(t)),"detector");var vr=(0,g.K2)((async()=>{const{diagram:t}=await r.e(6894).then(r.bind(r,16894));return{id:xr,diagram:t}}),"loader");var kr={id:xr,detector:Cr,loader:vr};var wr=kr;var Sr="mindmap";var Ar=(0,g.K2)((t=>/^\s*mindmap/.test(t)),"detector");var Tr=(0,g.K2)((async()=>{const{diagram:t}=await r.e(1042).then(r.bind(r,41042));return{id:Sr,diagram:t}}),"loader");var Br={id:Sr,detector:Ar,loader:Tr};var Lr=Br;var Mr="kanban";var Fr=(0,g.K2)((t=>/^\s*kanban/.test(t)),"detector");var _r=(0,g.K2)((async()=>{const{diagram:t}=await r.e(9524).then(r.bind(r,49524));return{id:Mr,diagram:t}}),"loader");var $r={id:Mr,detector:Fr,loader:_r};var Er=$r;var Or="sankey";var Dr=(0,g.K2)((t=>/^\s*sankey(-beta)?/.test(t)),"detector");var Kr=(0,g.K2)((async()=>{const{diagram:t}=await r.e(1483).then(r.bind(r,11483));return{id:Or,diagram:t}}),"loader");var Ir={id:Or,detector:Dr,loader:Kr};var Rr=Ir;var Pr="packet";var qr=(0,g.K2)((t=>/^\s*packet(-beta)?/.test(t)),"detector");var zr=(0,g.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(1838),r.e(4010),r.e(2089)]).then(r.bind(r,74470));return{id:Pr,diagram:t}}),"loader");var Nr={id:Pr,detector:qr,loader:zr};var Wr="radar";var jr=(0,g.K2)((t=>/^\s*radar-beta/.test(t)),"detector");var Hr=(0,g.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(1838),r.e(4010),r.e(1561)]).then(r.bind(r,41561));return{id:Wr,diagram:t}}),"loader");var Gr={id:Wr,detector:jr,loader:Hr};var Ur="block";var Yr=(0,g.K2)((t=>/^\s*block(-beta)?/.test(t)),"detector");var Xr=(0,g.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(1838),r.e(5763)]).then(r.bind(r,25763));return{id:Ur,diagram:t}}),"loader");var Vr={id:Ur,detector:Yr,loader:Xr};var Zr=Vr;var Qr="architecture";var Jr=(0,g.K2)((t=>/^\s*architecture/.test(t)),"detector");var ti=(0,g.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(1838),r.e(4010),r.e(8786),r.e(5880)]).then(r.bind(r,25880));return{id:Qr,diagram:t}}),"loader");var ei={id:Qr,detector:Jr,loader:ti};var ri=ei;var ii="treemap";var ai=(0,g.K2)((t=>/^\s*treemap/.test(t)),"detector");var ni=(0,g.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(1838),r.e(4010),r.e(872)]).then(r.bind(r,8491));return{id:ii,diagram:t}}),"loader");var oi={id:ii,detector:ai,loader:ni};var si=false;var li=(0,g.K2)((()=>{if(si){return}si=true;(0,p.Js)("error",fr,(t=>t.toLowerCase().trim()==="error"));(0,p.Js)("---",{db:{clear:(0,g.K2)((()=>{}),"clear")},styles:{},renderer:{draw:(0,g.K2)((()=>{}),"draw")},parser:{parse:(0,g.K2)((()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}),"parse")},init:(0,g.K2)((()=>null),"init")},(t=>t.toLowerCase().trimStart().startsWith("---")));if(true){(0,p.Xd)(br,Lr,ri)}(0,p.Xd)(Rt,Er,Ue,Ne,Jt,ce,fe,ye,$e,Ie,Yt,Wt,wr,ae,ir,Qe,lr,ke,Rr,Nr,Be,Zr,Gr,oi)}),"addDiagrams");var ci=(0,g.K2)((async()=>{g.Rm.debug(`Loading registered diagrams`);const t=await Promise.allSettled(Object.entries(p.mW).map((async([t,{detector:e,loader:r}])=>{if(!r){return}try{(0,p.Gs)(t)}catch{try{const{diagram:t,id:i}=await r();(0,p.Js)(i,t,e)}catch(i){g.Rm.error(`Failed to load external diagram with key ${t}. Removing from detectors.`);delete p.mW[t];throw i}}})));const e=t.filter((t=>t.status==="rejected"));if(e.length>0){g.Rm.error(`Failed to load ${e.length} external diagrams`);for(const t of e){g.Rm.error(t)}throw new Error(`Failed to load ${e.length} external diagrams`)}}),"loadRegisteredDiagrams");var hi="graphics-document document";function di(t,e){t.attr("role",hi);if(e!==""){t.attr("aria-roledescription",e)}}(0,g.K2)(di,"setA11yDiagramInfo");function ui(t,e,r,i){if(t.insert===void 0){return}if(r){const e=`chart-desc-${i}`;t.attr("aria-describedby",e);t.insert("desc",":first-child").attr("id",e).text(r)}if(e){const r=`chart-title-${i}`;t.attr("aria-labelledby",r);t.insert("title",":first-child").attr("id",r).text(e)}}(0,g.K2)(ui,"addSVGa11yTitleDescription");var fi=class t{constructor(t,e,r,i,a){this.type=t;this.text=e;this.db=r;this.parser=i;this.renderer=a}static{(0,g.K2)(this,"Diagram")}static async fromText(e,r={}){const i=(0,p.zj)();const a=(0,p.Ch)(e,i);e=(0,f.C4)(e)+"\n";try{(0,p.Gs)(a)}catch{const t=(0,p.J$)(a);if(!t){throw new p.C0(`Diagram ${a} not found.`)}const{id:e,diagram:r}=await t();(0,p.Js)(e,r)}const{db:n,parser:o,renderer:s,init:l}=(0,p.Gs)(a);if(o.parser){o.parser.yy=n}n.clear?.();l?.(i);if(r.title){n.setDiagramTitle?.(r.title)}await o.parse(e);return new t(a,e,n,o,s)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}};var pi=[];var gi=(0,g.K2)((()=>{pi.forEach((t=>{t()}));pi=[]}),"attachFunctions");var mi=(0,g.K2)((t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart()),"cleanupComments");function yi(t){const e=t.match(p.EJ);if(!e){return{text:t,metadata:{}}}let r=(0,n.H)(e[1],{schema:n.r})??{};r=typeof r==="object"&&!Array.isArray(r)?r:{};const i={};if(r.displayMode){i.displayMode=r.displayMode.toString()}if(r.title){i.title=r.title.toString()}if(r.config){i.config=r.config}return{text:t.slice(e[0].length),metadata:i}}(0,g.K2)(yi,"extractFrontMatter");var bi=(0,g.K2)((t=>t.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,((t,e,r)=>"<"+e+r.replace(/="([^"]*)"/g,"='$1'")+">"))),"cleanupText");var xi=(0,g.K2)((t=>{const{text:e,metadata:r}=yi(t);const{displayMode:i,title:a,config:n={}}=r;if(i){if(!n.gantt){n.gantt={}}n.gantt.displayMode=i}return{title:a,config:n,text:e}}),"processFrontmatter");var Ci=(0,g.K2)((t=>{const e=f._K.detectInit(t)??{};const r=f._K.detectDirective(t,"wrap");if(Array.isArray(r)){e.wrap=r.some((({type:t})=>t==="wrap"))}else if(r?.type==="wrap"){e.wrap=true}return{text:(0,f.vU)(t),directive:e}}),"processDirectives");function vi(t){const e=bi(t);const r=xi(e);const i=Ci(r.text);const a=(0,f.$t)(r.config,i.directive);t=mi(i.text);return{code:t,title:r.title,config:a}}(0,g.K2)(vi,"preprocessDiagram");function ki(t){const e=(new TextEncoder).encode(t);const r=Array.from(e,(t=>String.fromCodePoint(t))).join("");return btoa(r)}(0,g.K2)(ki,"toBase64");var wi=5e4;var Si="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa";var Ai="sandbox";var Ti="loose";var Bi="http://www.w3.org/2000/svg";var Li="http://www.w3.org/1999/xlink";var Mi="http://www.w3.org/1999/xhtml";var Fi="100%";var _i="100%";var $i="border:0;margin:0;";var Ei="margin:0";var Oi="allow-top-navigation-by-user-activation allow-popups";var Di='The "iframe" tag is not supported by your browser.';var Ki=["foreignobject"];var Ii=["dominant-baseline"];function Ri(t){const e=vi(t);(0,p.cL)();(0,p.xA)(e.config??{});return e}(0,g.K2)(Ri,"processAndSetConfigs");async function Pi(t,e){li();try{const{code:e,config:r}=Ri(t);const i=await Vi(e);return{diagramType:i.type,config:r}}catch(r){if(e?.suppressErrors){return false}throw r}}(0,g.K2)(Pi,"parse");var qi=(0,g.K2)(((t,e,r=[])=>`\n.${t} ${e} { ${r.join(" !important; ")} !important; }`),"cssImportantStyles");var zi=(0,g.K2)(((t,e=new Map)=>{let r="";if(t.themeCSS!==void 0){r+=`\n${t.themeCSS}`}if(t.fontFamily!==void 0){r+=`\n:root { --mermaid-font-family: ${t.fontFamily}}`}if(t.altFontFamily!==void 0){r+=`\n:root { --mermaid-alt-font-family: ${t.altFontFamily}}`}if(e instanceof Map){const i=t.htmlLabels??t.flowchart?.htmlLabels;const a=["> *","span"];const n=["rect","polygon","ellipse","circle","path"];const o=i?a:n;e.forEach((t=>{if(!(0,Et.A)(t.styles)){o.forEach((e=>{r+=qi(t.id,e,t.styles)}))}if(!(0,Et.A)(t.textStyles)){r+=qi(t.id,"tspan",(t?.textStyles||[]).map((t=>t.replace("color","fill"))))}}))}return r}),"createCssStyles");var Ni=(0,g.K2)(((t,e,r,i)=>{const a=zi(t,r);const n=(0,p.tM)(e,a,t.themeVariables);return J(Bt(`${i}{${n}}`),tt)}),"createUserStyles");var Wi=(0,g.K2)(((t="",e,r)=>{let i=t;if(!r&&!e){i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')}i=(0,f.Sm)(i);i=i.replace(/
/g,"
");return i}),"cleanUpSvgCode");var ji=(0,g.K2)(((t="",e)=>{const r=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":_i;const i=ki(`${t}`);return``}),"putIntoIFrame");var Hi=(0,g.K2)(((t,e,r,i,a)=>{const n=t.append("div");n.attr("id",r);if(i){n.attr("style",i)}const o=n.append("svg").attr("id",e).attr("width","100%").attr("xmlns",Bi);if(a){o.attr("xmlns:xlink",a)}o.append("g");return t}),"appendDivSvgG");function Gi(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,g.K2)(Gi,"sandboxedIframe");var Ui=(0,g.K2)(((t,e,r,i)=>{t.getElementById(e)?.remove();t.getElementById(r)?.remove();t.getElementById(i)?.remove()}),"removeExistingElements");var Yi=(0,g.K2)((async function(t,e,r){li();const a=Ri(e);e=a.code;const n=(0,p.zj)();g.Rm.debug(n);if(e.length>(n?.maxTextSize??wi)){e=Si}const o="#"+t;const s="i"+t;const l="#"+s;const c="d"+t;const h="#"+c;const d=(0,g.K2)((()=>{const t=f?l:h;const e=(0,y.Ltv)(t).node();if(e&&"remove"in e){e.remove()}}),"removeTempElements");let u=(0,y.Ltv)("body");const f=n.securityLevel===Ai;const m=n.securityLevel===Ti;const b=n.fontFamily;if(r!==void 0){if(r){r.innerHTML=""}if(f){const t=Gi((0,y.Ltv)(r),s);u=(0,y.Ltv)(t.nodes()[0].contentDocument.body);u.node().style.margin=0}else{u=(0,y.Ltv)(r)}Hi(u,t,c,`font-family: ${b}`,Li)}else{Ui(document,t,c,s);if(f){const t=Gi((0,y.Ltv)("body"),s);u=(0,y.Ltv)(t.nodes()[0].contentDocument.body);u.node().style.margin=0}else{u=(0,y.Ltv)("body")}Hi(u,t,c)}let x;let C;try{x=await fi.fromText(e,{title:a.title})}catch($){if(n.suppressErrorRendering){d();throw $}x=await fi.fromText("error");C=$}const v=u.select(h).node();const k=x.type;const w=v.firstChild;const S=w.firstChild;const A=x.renderer.getClasses?.(e,x);const T=Ni(n,k,A,o);const B=document.createElement("style");B.innerHTML=T;w.insertBefore(B,S);try{await x.renderer.draw(e,t,i.n.version,x)}catch(E){if(n.suppressErrorRendering){d()}else{dr.draw(e,t,i.n.version)}throw E}const L=u.select(`${h} svg`);const M=x.db.getAccTitle?.();const F=x.db.getAccDescription?.();Zi(k,L,M,F);u.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",Mi);let _=u.select(h).node().innerHTML;g.Rm.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute);_=Wi(_,f,(0,p._3)(n.arrowMarkerAbsolute));if(f){const t=u.select(h+" svg").node();_=ji(_,t)}else if(!m){_=$t.A.sanitize(_,{ADD_TAGS:Ki,ADD_ATTR:Ii,HTML_INTEGRATION_POINTS:{foreignobject:true}})}gi();if(C){throw C}d();return{diagramType:k,svg:_,bindFunctions:x.db.bindFunctions}}),"render");function Xi(t={}){const e=(0,p.hH)({},t);if(e?.fontFamily&&!e.themeVariables?.fontFamily){if(!e.themeVariables){e.themeVariables={}}e.themeVariables.fontFamily=e.fontFamily}(0,p.wZ)(e);if(e?.theme&&e.theme in p.H$){e.themeVariables=p.H$[e.theme].getThemeVariables(e.themeVariables)}else if(e){e.themeVariables=p.H$.default.getThemeVariables(e.themeVariables)}const r=typeof e==="object"?(0,p.UU)(e):(0,p.Q2)();(0,g.He)(r.logLevel);li()}(0,g.K2)(Xi,"initialize");var Vi=(0,g.K2)(((t,e={})=>{const{code:r}=vi(t);return fi.fromText(r,e)}),"getDiagramFromText");function Zi(t,e,r,i){di(e,t);ui(e,r,i,e.attr("id"))}(0,g.K2)(Zi,"addA11yInfo");var Qi=Object.freeze({render:Yi,parse:Pi,getDiagramFromText:Vi,initialize:Xi,getConfig:p.zj,setConfig:p.Nk,getSiteConfig:p.Q2,updateSiteConfig:p.B6,reset:(0,g.K2)((()=>{(0,p.cL)()}),"reset"),globalReset:(0,g.K2)((()=>{(0,p.cL)(p.sb)}),"globalReset"),defaultConfig:p.sb});(0,g.He)((0,p.zj)().logLevel);(0,p.cL)((0,p.zj)());var Ji=(0,g.K2)(((t,e,r)=>{g.Rm.warn(t);if((0,f.dq)(t)){if(r){r(t.str,t.hash)}e.push({...t,message:t.str,error:t})}else{if(r){r(t)}if(t instanceof Error){e.push({str:t.message,message:t.message,hash:t.name,error:t})}}}),"handleError");var ta=(0,g.K2)((async function(t={querySelector:".mermaid"}){try{await ea(t)}catch(e){if((0,f.dq)(e)){g.Rm.error(e.str)}if(fa.parseError){fa.parseError(e)}if(!t.suppressErrors){g.Rm.error("Use the suppressErrors option to suppress these errors");throw e}}}),"run");var ea=(0,g.K2)((async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){const i=Qi.getConfig();g.Rm.debug(`${!t?"No ":""}Callback function found`);let a;if(r){a=r}else if(e){a=document.querySelectorAll(e)}else{throw new Error("Nodes and querySelector are both undefined")}g.Rm.debug(`Found ${a.length} diagrams`);if(i?.startOnLoad!==void 0){g.Rm.debug("Start On Load: "+i?.startOnLoad);Qi.updateSiteConfig({startOnLoad:i?.startOnLoad})}const n=new f._K.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let o;const s=[];for(const c of Array.from(a)){g.Rm.info("Rendering diagram: "+c.id);if(c.getAttribute("data-processed")){continue}c.setAttribute("data-processed","true");const e=`mermaid-${n.next()}`;o=c.innerHTML;o=(0,m.T)(f._K.entityDecode(o)).trim().replace(//gi,"
");const r=f._K.detectInit(o);if(r){g.Rm.debug("Detected early reinit: ",r)}try{const{svg:r,bindFunctions:i}=await da(e,o,c);c.innerHTML=r;if(t){await t(e)}if(i){i(c)}}catch(l){Ji(l,s,fa.parseError)}}if(s.length>0){throw s[0]}}),"runThrowsErrors");var ra=(0,g.K2)((function(t){Qi.initialize(t)}),"initialize");var ia=(0,g.K2)((async function(t,e,r){g.Rm.warn("mermaid.init is deprecated. Please use run instead.");if(t){ra(t)}const i={postRenderCallback:r,querySelector:".mermaid"};if(typeof e==="string"){i.querySelector=e}else if(e){if(e instanceof HTMLElement){i.nodes=[e]}else{i.nodes=e}}await ta(i)}),"init");var aa=(0,g.K2)((async(t,{lazyLoad:e=true}={})=>{li();(0,p.Xd)(...t);if(e===false){await ci()}}),"registerExternalDiagrams");var na=(0,g.K2)((function(){if(fa.startOnLoad){const{startOnLoad:t}=Qi.getConfig();if(t){fa.run().catch((t=>g.Rm.error("Mermaid failed to initialize",t)))}}}),"contentLoaded");if(typeof document!=="undefined"){window.addEventListener("load",na,false)}var oa=(0,g.K2)((function(t){fa.parseError=t}),"setParseErrorHandler");var sa=[];var la=false;var ca=(0,g.K2)((async()=>{if(la){return}la=true;while(sa.length>0){const e=sa.shift();if(e){try{await e()}catch(t){g.Rm.error("Error executing queue",t)}}}la=false}),"executeQueue");var ha=(0,g.K2)((async(t,e)=>new Promise(((r,i)=>{const a=(0,g.K2)((()=>new Promise(((a,n)=>{Qi.parse(t,e).then((t=>{a(t);r(t)}),(t=>{g.Rm.error("Error parsing",t);fa.parseError?.(t);n(t);i(t)}))}))),"performCall");sa.push(a);ca().catch(i)}))),"parse");var da=(0,g.K2)(((t,e,r)=>new Promise(((i,a)=>{const n=(0,g.K2)((()=>new Promise(((n,o)=>{Qi.render(t,e,r).then((t=>{n(t);i(t)}),(t=>{g.Rm.error("Error parsing",t);fa.parseError?.(t);o(t);a(t)}))}))),"performCall");sa.push(n);ca().catch(a)}))),"render");var ua=(0,g.K2)((()=>Object.keys(p.mW).map((t=>({id:t})))),"getRegisteredDiagramsMetadata");var fa={startOnLoad:true,mermaidAPI:Qi,parse:ha,render:da,init:ia,run:ta,registerExternalDiagrams:aa,registerLayoutLoaders:o.sO,initialize:ra,parseError:void 0,contentLoaded:na,setParseErrorHandler:oa,detectType:p.Ch,registerIconPacks:u.pC,getRegisteredDiagramsMetadata:ua};var pa=fa},78474:function(t){!function(e,r){true?t.exports=r():0}(this,(function(){"use strict";var t=1e3,e=6e4,r=36e5,i="millisecond",a="second",n="minute",o="hour",s="day",l="week",c="month",h="quarter",d="year",u="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},y=function(t,e,r){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(r)+t},b={s:y,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),i=Math.floor(r/60),a=r%60;return(e<=0?"+":"-")+y(i,2,"0")+":"+y(a,2,"0")},m:function t(e,r){if(e.date()1)return t(o[0])}else{var s=e.name;C[s]=e,a=s}return!i&&a&&(x=a),a||!i&&x},S=function(t,e){if(k(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new T(r)},A=b;A.l=w,A.i=k,A.w=function(t,e){return S(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var T=function(){function m(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[v]=!0}var y=m.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(A.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(p);if(i){var a=i[2]-1||0,n=(i[7]||"0").substring(0,3);return r?new Date(Date.UTC(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,n)):new Date(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,n)}}return new Date(e)}(t),this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return A},y.isValid=function(){return!(this.$d.toString()===f)},y.isSame=function(t,e){var r=S(t);return this.startOf(e)<=r&&r<=this.endOf(e)},y.isAfter=function(t,e){return S(t){"use strict";r.d(e,{A:()=>lt});function i(t,e,r){if(t&&t.length){const[i,a]=e,n=Math.PI/180*r,o=Math.cos(n),s=Math.sin(n);for(const e of t){const[t,r]=e;e[0]=(t-i)*o-(r-a)*s+i,e[1]=(t-i)*s+(r-a)*o+a}}}function a(t,e){return t[0]===e[0]&&t[1]===e[1]}function n(t,e,r,n=1){const o=r,s=Math.max(e,.1),l=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,c=[0,0];if(o)for(const a of l)i(a,c,o);const h=function(t,e,r){const i=[];for(const h of t){const t=[...h];a(t[0],t[t.length-1])||t.push([t[0][0],t[0][1]]),t.length>2&&i.push(t)}const n=[];e=Math.max(e,.1);const o=[];for(const a of i)for(let t=0;tt.ymine.ymin?1:t.xe.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax))),!o.length)return n;let s=[],l=o[0].ymin,c=0;for(;s.length||o.length;){if(o.length){let t=-1;for(let e=0;el);e++)t=e;o.splice(0,t+1).forEach((t=>{s.push({s:l,edge:t})}))}if(s=s.filter((t=>!(t.edge.ymax<=l))),s.sort(((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x))),(1!==r||c%e==0)&&s.length>1)for(let t=0;t=s.length)break;const r=s[t].edge,i=s[e].edge;n.push([[Math.round(r.x),l],[Math.round(i.x),l]])}l+=r,s.forEach((t=>{t.edge.x=t.edge.x+r*t.edge.islope})),c++}return n}(l,s,n);if(o){for(const t of l)i(t,c,-o);!function(t,e,r){const a=[];t.forEach((t=>a.push(...t))),i(a,e,r)}(h,c,-o)}return h}function o(t,e){var r;const i=e.hachureAngle+90;let a=e.hachureGap;a<0&&(a=4*e.strokeWidth),a=Math.round(Math.max(a,.1));let o=1;return e.roughness>=1&&((null===(r=e.randomizer)||void 0===r?void 0:r.next())||Math.random())>.7&&(o=a),n(t,a,i,o||1)}class s{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){const r=o(t,e);return{type:"fillSketch",ops:this.renderLines(r,e)}}renderLines(t,e){const r=[];for(const i of t)r.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],e));return r}}function l(t){const e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class c extends s{fillPolygons(t,e){let r=e.hachureGap;r<0&&(r=4*e.strokeWidth),r=Math.max(r,.1);const i=o(t,Object.assign({},e,{hachureGap:r})),a=Math.PI/180*e.hachureAngle,n=[],s=.5*r*Math.cos(a),c=.5*r*Math.sin(a);for(const[o,h]of i)l([o,h])&&n.push([[o[0]-s,o[1]+c],[...h]],[[o[0]+s,o[1]-c],[...h]]);return{type:"fillSketch",ops:this.renderLines(n,e)}}}class h extends s{fillPolygons(t,e){const r=this._fillPolygons(t,e),i=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),a=this._fillPolygons(t,i);return r.ops=r.ops.concat(a.ops),r}}class d{constructor(t){this.helper=t}fillPolygons(t,e){const r=o(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(r,e)}dotsOnLines(t,e){const r=[];let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.max(i,.1);let a=e.fillWeight;a<0&&(a=e.strokeWidth/2);const n=i/4;for(const o of t){const t=l(o),s=t/i,c=Math.ceil(s)-1,h=t-c*i,d=(o[0][0]+o[1][0])/2-i/4,u=Math.min(o[0][1],o[1][1]);for(let o=0;o{const n=l(t),o=Math.floor(n/(r+i)),s=(n+i-o*(r+i))/2;let c=t[0],h=t[1];c[0]>h[0]&&(c=t[1],h=t[0]);const d=Math.atan((h[1]-c[1])/(h[0]-c[0]));for(let l=0;l{const a=l(t),n=Math.round(a/(2*e));let o=t[0],s=t[1];o[0]>s[0]&&(o=t[1],s=t[0]);const c=Math.atan((s[1]-o[1])/(s[0]-o[0]));for(let l=0;li%2?t+r:t+e));n.push({key:"C",data:t}),e=t[4],r=t[5];break}case"Q":n.push({key:"Q",data:[...s]}),e=s[2],r=s[3];break;case"q":{const t=s.map(((t,i)=>i%2?t+r:t+e));n.push({key:"Q",data:t}),e=t[2],r=t[3];break}case"A":n.push({key:"A",data:[...s]}),e=s[5],r=s[6];break;case"a":e+=s[5],r+=s[6],n.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],e,r]});break;case"H":n.push({key:"H",data:[...s]}),e=s[0];break;case"h":e+=s[0],n.push({key:"H",data:[e]});break;case"V":n.push({key:"V",data:[...s]}),r=s[0];break;case"v":r+=s[0],n.push({key:"V",data:[r]});break;case"S":n.push({key:"S",data:[...s]}),e=s[2],r=s[3];break;case"s":{const t=s.map(((t,i)=>i%2?t+r:t+e));n.push({key:"S",data:t}),e=t[2],r=t[3];break}case"T":n.push({key:"T",data:[...s]}),e=s[0],r=s[1];break;case"t":e+=s[0],r+=s[1],n.push({key:"T",data:[e,r]});break;case"Z":case"z":n.push({key:"Z",data:[]}),e=i,r=a}return n}function w(t){const e=[];let r="",i=0,a=0,n=0,o=0,s=0,l=0;for(const{key:c,data:h}of t){switch(c){case"M":e.push({key:"M",data:[...h]}),[i,a]=h,[n,o]=h;break;case"C":e.push({key:"C",data:[...h]}),i=h[4],a=h[5],s=h[2],l=h[3];break;case"L":e.push({key:"L",data:[...h]}),[i,a]=h;break;case"H":i=h[0],e.push({key:"L",data:[i,a]});break;case"V":a=h[0],e.push({key:"L",data:[i,a]});break;case"S":{let t=0,n=0;"C"===r||"S"===r?(t=i+(i-s),n=a+(a-l)):(t=i,n=a),e.push({key:"C",data:[t,n,...h]}),s=h[0],l=h[1],i=h[2],a=h[3];break}case"T":{const[t,n]=h;let o=0,c=0;"Q"===r||"T"===r?(o=i+(i-s),c=a+(a-l)):(o=i,c=a);const d=i+2*(o-i)/3,u=a+2*(c-a)/3,f=t+2*(o-t)/3,p=n+2*(c-n)/3;e.push({key:"C",data:[d,u,f,p,t,n]}),s=o,l=c,i=t,a=n;break}case"Q":{const[t,r,n,o]=h,c=i+2*(t-i)/3,d=a+2*(r-a)/3,u=n+2*(t-n)/3,f=o+2*(r-o)/3;e.push({key:"C",data:[c,d,u,f,n,o]}),s=t,l=r,i=n,a=o;break}case"A":{const t=Math.abs(h[0]),r=Math.abs(h[1]),n=h[2],o=h[3],s=h[4],l=h[5],c=h[6];if(0===t||0===r)e.push({key:"C",data:[i,a,l,c,l,c]}),i=l,a=c;else if(i!==l||a!==c){A(i,a,l,c,t,r,n,o,s).forEach((function(t){e.push({key:"C",data:t})})),i=l,a=c}break}case"Z":e.push({key:"Z",data:[]}),i=n,a=o}r=c}return e}function S(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}function A(t,e,r,i,a,n,o,s,l,c){const h=(d=o,Math.PI*d/180);var d;let u=[],f=0,p=0,g=0,m=0;if(c)[f,p,g,m]=c;else{[t,e]=S(t,e,-h),[r,i]=S(r,i,-h);const o=(t-r)/2,c=(e-i)/2;let d=o*o/(a*a)+c*c/(n*n);d>1&&(d=Math.sqrt(d),a*=d,n*=d);const u=a*a,y=n*n,b=u*y-u*c*c-y*o*o,x=u*c*c+y*o*o,C=(s===l?-1:1)*Math.sqrt(Math.abs(b/x));g=C*a*c/n+(t+r)/2,m=C*-n*o/a+(e+i)/2,f=Math.asin(parseFloat(((e-m)/n).toFixed(9))),p=Math.asin(parseFloat(((i-m)/n).toFixed(9))),tp&&(f-=2*Math.PI),!l&&p>f&&(p-=2*Math.PI)}let y=p-f;if(Math.abs(y)>120*Math.PI/180){const t=p,e=r,s=i;p=l&&p>f?f+120*Math.PI/180*1:f+120*Math.PI/180*-1,u=A(r=g+a*Math.cos(p),i=m+n*Math.sin(p),e,s,a,n,o,0,l,[p,t,g,m])}y=p-f;const b=Math.cos(f),x=Math.sin(f),C=Math.cos(p),v=Math.sin(p),k=Math.tan(y/4),w=4/3*a*k,T=4/3*n*k,B=[t,e],L=[t+w*x,e-T*b],M=[r+w*v,i-T*C],F=[r,i];if(L[0]=2*B[0]-L[0],L[1]=2*B[1]-L[1],c)return[L,M,F].concat(u);{u=[L,M,F].concat(u);const t=[];for(let e=0;e2){const a=[];for(let e=0;e2*Math.PI&&(f=0,p=2*Math.PI);const g=2*Math.PI/l.curveStepCount,m=Math.min(g/2,(p-f)/2),y=G(m,c,h,d,u,f,p,1,l);if(!l.disableMultiStroke){const t=G(m,c,h,d,u,f,p,1.5,l);y.push(...t)}return o&&(s?y.push(...z(c,h,c+d*Math.cos(f),h+u*Math.sin(f),l),...z(c,h,c+d*Math.cos(p),h+u*Math.sin(p),l)):y.push({op:"lineTo",data:[c,h]},{op:"lineTo",data:[c+d*Math.cos(f),h+u*Math.sin(f)]})),{type:"path",ops:y}}function O(t,e){const r=w(k(v(t))),i=[];let a=[0,0],n=[0,0];for(const{key:o,data:s}of r)switch(o){case"M":n=[s[0],s[1]],a=[s[0],s[1]];break;case"L":i.push(...z(n[0],n[1],s[0],s[1],e)),n=[s[0],s[1]];break;case"C":{const[t,r,a,o,l,c]=s;i.push(...U(t,r,a,o,l,c,n,e)),n=[l,c];break}case"Z":i.push(...z(n[0],n[1],a[0],a[1],e)),n=[a[0],a[1]]}return{type:"path",ops:i}}function D(t,e){const r=[];for(const i of t)if(i.length){const t=e.maxRandomnessOffset||0,a=i.length;if(a>2){r.push({op:"move",data:[i[0][0]+q(t,e),i[0][1]+q(t,e)]});for(let n=1;n500?.4:-.0016668*l+1.233334;let h=a.maxRandomnessOffset||0;h*h*100>s&&(h=l/10);const d=h/2,u=.2+.2*R(a);let f=a.bowing*a.maxRandomnessOffset*(i-e)/200,p=a.bowing*a.maxRandomnessOffset*(t-r)/200;f=q(f,a,c),p=q(p,a,c);const g=[],m=()=>q(d,a,c),y=()=>q(h,a,c),b=a.preserveVertices;return n&&(o?g.push({op:"move",data:[t+(b?0:m()),e+(b?0:m())]}):g.push({op:"move",data:[t+(b?0:q(h,a,c)),e+(b?0:q(h,a,c))]})),o?g.push({op:"bcurveTo",data:[f+t+(r-t)*u+m(),p+e+(i-e)*u+m(),f+t+2*(r-t)*u+m(),p+e+2*(i-e)*u+m(),r+(b?0:m()),i+(b?0:m())]}):g.push({op:"bcurveTo",data:[f+t+(r-t)*u+y(),p+e+(i-e)*u+y(),f+t+2*(r-t)*u+y(),p+e+2*(i-e)*u+y(),r+(b?0:y()),i+(b?0:y())]}),g}function W(t,e,r){if(!t.length)return[];const i=[];i.push([t[0][0]+q(e,r),t[0][1]+q(e,r)]),i.push([t[0][0]+q(e,r),t[0][1]+q(e,r)]);for(let a=1;a3){const n=[],o=1-r.curveTightness;a.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+21&&a.push(r)}else a.push(r);a.push(t[e+3])}else{const i=.5,n=t[e+0],o=t[e+1],s=t[e+2],l=t[e+3],c=Q(n,o,i),h=Q(o,s,i),d=Q(s,l,i),u=Q(c,h,i),f=Q(h,d,i),p=Q(u,f,i);J([n,c,u,p],0,r,a),J([p,f,d,l],0,r,a)}var n,o;return a}function tt(t,e){return et(t,0,t.length,e)}function et(t,e,r,i,a){const n=a||[],o=t[e],s=t[r-1];let l=0,c=1;for(let h=e+1;hl&&(l=e,c=h)}return Math.sqrt(l)>i?(et(t,e,c+1,i,n),et(t,c,r,i,n)):(n.length||n.push(o),n.push(s)),n}function rt(t,e=.15,r){const i=[],a=(t.length-1)/3;for(let n=0;n0?et(i,0,i.length,r):i}const it="none";class at{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,e,r){return{shape:t,sets:e||[],options:r||this.defaultOptions}}line(t,e,r,i,a){const n=this._o(a);return this._d("line",[B(t,e,r,i,n)],n)}rectangle(t,e,r,i,a){const n=this._o(a),o=[],s=M(t,e,r,i,n);if(n.fill){const a=[[t,e],[t+r,e],[t+r,e+i],[t,e+i]];"solid"===n.fillStyle?o.push(D([a],n)):o.push(K([a],n))}return n.stroke!==it&&o.push(s),this._d("rectangle",o,n)}ellipse(t,e,r,i,a){const n=this._o(a),o=[],s=_(r,i,n),l=$(t,e,n,s);if(n.fill)if("solid"===n.fillStyle){const r=$(t,e,n,s).opset;r.type="fillPath",o.push(r)}else o.push(K([l.estimatedPoints],n));return n.stroke!==it&&o.push(l.opset),this._d("ellipse",o,n)}circle(t,e,r,i){const a=this.ellipse(t,e,r,r,i);return a.shape="circle",a}linearPath(t,e){const r=this._o(e);return this._d("linearPath",[L(t,!1,r)],r)}arc(t,e,r,i,a,n,o=!1,s){const l=this._o(s),c=[],h=E(t,e,r,i,a,n,o,!0,l);if(o&&l.fill)if("solid"===l.fillStyle){const o=Object.assign({},l);o.disableMultiStroke=!0;const s=E(t,e,r,i,a,n,!0,!1,o);s.type="fillPath",c.push(s)}else c.push(function(t,e,r,i,a,n,o){const s=t,l=e;let c=Math.abs(r/2),h=Math.abs(i/2);c+=q(.01*c,o),h+=q(.01*h,o);let d=a,u=n;for(;d<0;)d+=2*Math.PI,u+=2*Math.PI;u-d>2*Math.PI&&(d=0,u=2*Math.PI);const f=(u-d)/o.curveStepCount,p=[];for(let g=d;g<=u;g+=f)p.push([s+c*Math.cos(g),l+h*Math.sin(g)]);return p.push([s+c*Math.cos(u),l+h*Math.sin(u)]),p.push([s,l]),K([p],o)}(t,e,r,i,a,n,l));return l.stroke!==it&&c.push(h),this._d("arc",c,l)}curve(t,e){const r=this._o(e),i=[],a=F(t,r);if(r.fill&&r.fill!==it)if("solid"===r.fillStyle){const e=F(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{const e=[],a=t;if(a.length){const t="number"==typeof a[0][0]?[a]:a;for(const i of t)i.length<3?e.push(...i):3===i.length?e.push(...rt(X([i[0],i[0],i[1],i[2]]),10,(1+r.roughness)/2)):e.push(...rt(X(i),10,(1+r.roughness)/2))}e.length&&i.push(K([e],r))}return r.stroke!==it&&i.push(a),this._d("curve",i,r)}polygon(t,e){const r=this._o(e),i=[],a=L(t,!0,r);return r.fill&&("solid"===r.fillStyle?i.push(D([t],r)):i.push(K([t],r))),r.stroke!==it&&i.push(a),this._d("polygon",i,r)}path(t,e){const r=this._o(e),i=[];if(!t)return this._d("path",i,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const a=r.fill&&"transparent"!==r.fill&&r.fill!==it,n=r.stroke!==it,o=!!(r.simplification&&r.simplification<1),s=function(t,e,r){const i=w(k(v(t))),a=[];let n=[],o=[0,0],s=[];const l=()=>{s.length>=4&&n.push(...rt(s,e)),s=[]},c=()=>{l(),n.length&&(a.push(n),n=[])};for(const{key:d,data:u}of i)switch(d){case"M":c(),o=[u[0],u[1]],n.push(o);break;case"L":l(),n.push([u[0],u[1]]);break;case"C":if(!s.length){const t=n.length?n[n.length-1]:o;s.push([t[0],t[1]])}s.push([u[0],u[1]]),s.push([u[2],u[3]]),s.push([u[4],u[5]]);break;case"Z":l(),n.push([o[0],o[1]])}if(c(),!r)return a;const h=[];for(const d of a){const t=tt(d,r);t.length&&h.push(t)}return h}(t,1,o?4-4*(r.simplification||1):(1+r.roughness)/2),l=O(t,r);if(a)if("solid"===r.fillStyle)if(1===s.length){const e=O(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else i.push(D(s,r));else i.push(K(s,r));return n&&(o?s.forEach((t=>{i.push(L(t,!1,r))})):i.push(l)),this._d("path",i,r)}opsToPath(t,e){let r="";for(const i of t.ops){const t="number"==typeof e&&e>=0?i.data.map((t=>+t.toFixed(e))):i.data;switch(i.op){case"move":r+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":r+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":r+=`L${t[0]} ${t[1]} `}}return r.trim()}toPaths(t){const e=t.sets||[],r=t.options||this.defaultOptions,i=[];for(const a of e){let t=null;switch(a.type){case"path":t={d:this.opsToPath(a),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:it};break;case"fillPath":t={d:this.opsToPath(a),stroke:it,strokeWidth:0,fill:r.fill||it};break;case"fillSketch":t=this.fillSketch(a,r)}t&&i.push(t)}return i}fillSketch(t,e){let r=e.fillWeight;return r<0&&(r=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||it,strokeWidth:r,fill:it}}_mergedShape(t){return t.filter(((t,e)=>0===e||"move"!==t.op))}}class nt{constructor(t,e){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new at(e)}draw(t){const e=t.sets||[],r=t.options||this.getDefaultOptions(),i=this.ctx,a=t.options.fixedDecimalPlaceDigits;for(const n of e)switch(n.type){case"path":i.save(),i.strokeStyle="none"===r.stroke?"transparent":r.stroke,i.lineWidth=r.strokeWidth,r.strokeLineDash&&i.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(i.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(i,n,a),i.restore();break;case"fillPath":{i.save(),i.fillStyle=r.fill||"";const e="curve"===t.shape||"polygon"===t.shape||"path"===t.shape?"evenodd":"nonzero";this._drawToContext(i,n,a,e),i.restore();break}case"fillSketch":this.fillSketch(i,n,r)}}fillSketch(t,e,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2),t.save(),r.fillLineDash&&t.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(t.lineDashOffset=r.fillLineDashOffset),t.strokeStyle=r.fill||"",t.lineWidth=i,this._drawToContext(t,e,r.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,e,r,i="nonzero"){t.beginPath();for(const a of e.ops){const e="number"==typeof r&&r>=0?a.data.map((t=>+t.toFixed(r))):a.data;switch(a.op){case"move":t.moveTo(e[0],e[1]);break;case"bcurveTo":t.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);break;case"lineTo":t.lineTo(e[0],e[1])}}"fillPath"===e.type?t.fill(i):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,e,r,i,a){const n=this.gen.line(t,e,r,i,a);return this.draw(n),n}rectangle(t,e,r,i,a){const n=this.gen.rectangle(t,e,r,i,a);return this.draw(n),n}ellipse(t,e,r,i,a){const n=this.gen.ellipse(t,e,r,i,a);return this.draw(n),n}circle(t,e,r,i){const a=this.gen.circle(t,e,r,i);return this.draw(a),a}linearPath(t,e){const r=this.gen.linearPath(t,e);return this.draw(r),r}polygon(t,e){const r=this.gen.polygon(t,e);return this.draw(r),r}arc(t,e,r,i,a,n,o=!1,s){const l=this.gen.arc(t,e,r,i,a,n,o,s);return this.draw(l),l}curve(t,e){const r=this.gen.curve(t,e);return this.draw(r),r}path(t,e){const r=this.gen.path(t,e);return this.draw(r),r}}const ot="http://www.w3.org/2000/svg";class st{constructor(t,e){this.svg=t,this.gen=new at(e)}draw(t){const e=t.sets||[],r=t.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,a=i.createElementNS(ot,"g"),n=t.options.fixedDecimalPlaceDigits;for(const o of e){let e=null;switch(o.type){case"path":e=i.createElementNS(ot,"path"),e.setAttribute("d",this.opsToPath(o,n)),e.setAttribute("stroke",r.stroke),e.setAttribute("stroke-width",r.strokeWidth+""),e.setAttribute("fill","none"),r.strokeLineDash&&e.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":e=i.createElementNS(ot,"path"),e.setAttribute("d",this.opsToPath(o,n)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",r.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(i,o,r)}e&&a.appendChild(e)}return a}fillSketch(t,e,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2);const a=t.createElementNS(ot,"path");return a.setAttribute("d",this.opsToPath(e,r.fixedDecimalPlaceDigits)),a.setAttribute("stroke",r.fill||""),a.setAttribute("stroke-width",i+""),a.setAttribute("fill","none"),r.fillLineDash&&a.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,r,i,a){const n=this.gen.line(t,e,r,i,a);return this.draw(n)}rectangle(t,e,r,i,a){const n=this.gen.rectangle(t,e,r,i,a);return this.draw(n)}ellipse(t,e,r,i,a){const n=this.gen.ellipse(t,e,r,i,a);return this.draw(n)}circle(t,e,r,i){const a=this.gen.circle(t,e,r,i);return this.draw(a)}linearPath(t,e){const r=this.gen.linearPath(t,e);return this.draw(r)}polygon(t,e){const r=this.gen.polygon(t,e);return this.draw(r)}arc(t,e,r,i,a,n,o=!1,s){const l=this.gen.arc(t,e,r,i,a,n,o,s);return this.draw(l)}curve(t,e){const r=this.gen.curve(t,e);return this.draw(r)}path(t,e){const r=this.gen.path(t,e);return this.draw(r)}}var lt={canvas:(t,e)=>new nt(t,e),svg:(t,e)=>new st(t,e),generator:t=>new at(t),newSeed:()=>at.newSeed()}},60513:(t,e,r)=>{"use strict";r.d(e,{T:()=>i});function i(t){var e=[];for(var r=1;r{n.r(t);n.d(t,{solr:()=>p});var r=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/;var i=/[\|\!\+\-\*\?\~\^\&]/;var o=/^(OR|AND|NOT|TO)$/;function u(e){return parseFloat(e).toString()===e}function a(e){return function(t,n){var r=false,i;while((i=t.next())!=null){if(i==e&&!r)break;r=!r&&i=="\\"}if(!r)n.tokenize=s;return"string"}}function l(e){return function(t,n){if(e=="|")t.eat(/\|/);else if(e=="&")t.eat(/\&/);n.tokenize=s;return"operator"}}function f(e){return function(t,n){var i=e;while((e=t.peek())&&e.match(r)!=null){i+=t.next()}n.tokenize=s;if(o.test(i))return"operator";else if(u(i))return"number";else if(t.peek()==":")return"propertyName";else return"string"}}function s(e,t){var n=e.next();if(n=='"')t.tokenize=a(n);else if(i.test(n))t.tokenize=l(n);else if(r.test(n))t.tokenize=f(n);return t.tokenize!=s?t.tokenize(e,t):null}const p={name:"solr",startState:function(){return{tokenize:s}},token:function(e,t){if(e.eatSpace())return null;return t.tokenize(e,t)}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/232.5419cbec68e3fd0cf431.js b/share/jupyter/lab/static/232.5419cbec68e3fd0cf431.js new file mode 100644 index 0000000..ddda5a0 --- /dev/null +++ b/share/jupyter/lab/static/232.5419cbec68e3fd0cf431.js @@ -0,0 +1,1465 @@ +/*! For license information please see 232.5419cbec68e3fd0cf431.js.LICENSE.txt */ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[232],{50232:(e,t,i)=>{i.r(t);i.d(t,{ARIAGlobalStatesAndProperties:()=>je,Accordion:()=>qe,AccordionExpandMode:()=>Be,AccordionItem:()=>He,Anchor:()=>_e,AnchoredRegion:()=>Os,Avatar:()=>Ms,Badge:()=>Hs,BaseProgress:()=>zr,Breadcrumb:()=>Bs,BreadcrumbItem:()=>zs,Button:()=>Qs,Calendar:()=>eo,CalendarTitleTemplate:()=>ho,Card:()=>go,CheckableFormAssociated:()=>Gs,Checkbox:()=>wo,Combobox:()=>Zo,ComboboxAutocomplete:()=>Qo,ComponentPresentation:()=>Se,Container:()=>U,ContainerConfiguration:()=>V,ContainerImpl:()=>ge,DI:()=>q,DataGrid:()=>lo,DataGridCell:()=>ro,DataGridCellTypes:()=>io,DataGridRow:()=>ao,DataGridRowTypes:()=>so,DateFormatter:()=>Js,DefaultComponentPresentation:()=>Ae,DefaultResolver:()=>H,DelegatesARIAButton:()=>Zs,DelegatesARIACombobox:()=>Jo,DelegatesARIALink:()=>Ke,DelegatesARIAListbox:()=>Wo,DelegatesARIAListboxOption:()=>_o,DelegatesARIASearch:()=>ea,DelegatesARIASelect:()=>oa,DelegatesARIATextbox:()=>Fr,DelegatesARIAToolbar:()=>Ha,DesignSystem:()=>Pn,DesignToken:()=>Dn,Dialog:()=>qn,Disclosure:()=>Gn,Divider:()=>Zn,DividerRole:()=>Qn,ElementDisambiguation:()=>Sn,FactoryImpl:()=>de,Flipper:()=>tr,FlipperDirection:()=>Jn,FlyoutPosBottom:()=>Rs,FlyoutPosBottomFill:()=>As,FlyoutPosTallest:()=>Ds,FlyoutPosTallestFill:()=>Fs,FlyoutPosTop:()=>Es,FlyoutPosTopFill:()=>Ss,FormAssociated:()=>Ws,FoundationElement:()=>Fe,FoundationElementRegistry:()=>Me,GenerateHeaderOptions:()=>to,HorizontalScroll:()=>Wr,Listbox:()=>Ko,ListboxElement:()=>sr,ListboxOption:()=>jo,MatchMediaBehavior:()=>Ka,MatchMediaStyleSheetBehavior:()=>Wa,Menu:()=>Tr,MenuItem:()=>kr,MenuItemRole:()=>wr,NumberField:()=>Pr,Picker:()=>br,PickerList:()=>lr,PickerListItem:()=>hr,PickerMenu:()=>nr,PickerMenuOption:()=>ar,PropertyStyleSheetBehavior:()=>Qa,Radio:()=>Kr,RadioGroup:()=>qr,Registration:()=>xe,ResolverBuilder:()=>M,ResolverImpl:()=>re,Search:()=>Jr,Select:()=>sa,SelectPosition:()=>Go,ServiceLocator:()=>j,Skeleton:()=>aa,Slider:()=>va,SliderLabel:()=>ca,SliderMode:()=>ma,StartEnd:()=>o,Switch:()=>Ca,Tab:()=>Ia,TabPanel:()=>wa,Tabs:()=>Ta,TabsOrientation:()=>Oa,TextArea:()=>Aa,TextAreaResize:()=>Ea,TextField:()=>Ar,TextFieldType:()=>Sr,Toolbar:()=>Pa,Tooltip:()=>Na,TooltipPosition:()=>za,TreeItem:()=>Ua,TreeView:()=>_a,accordionItemTemplate:()=>d,accordionTemplate:()=>Ve,all:()=>J,anchorTemplate:()=>Ue,anchoredRegionTemplate:()=>We,applyMixins:()=>Pe,avatarTemplate:()=>Ls,badgeTemplate:()=>Ps,breadcrumbItemTemplate:()=>Vs,breadcrumbTemplate:()=>Ns,buttonTemplate:()=>qs,calendarCellTemplate:()=>uo,calendarRowTemplate:()=>po,calendarTemplate:()=>vo,calendarWeekdayTemplate:()=>co,cardTemplate:()=>bo,checkboxTemplate:()=>yo,comboboxTemplate:()=>en,composedContains:()=>dn,composedParent:()=>ln,darkModeStylesheetBehavior:()=>Xa,dataGridCellTemplate:()=>an,dataGridRowTemplate:()=>rn,dataGridTemplate:()=>sn,dialogTemplate:()=>Nn,disabledCursor:()=>Za,disclosureTemplate:()=>Wn,display:()=>el,dividerTemplate:()=>Xn,endSlotTemplate:()=>n,endTemplate:()=>a,flipperTemplate:()=>er,focusVisible:()=>tl,forcedColorsStylesheetBehavior:()=>Ga,getDirection:()=>Is,hidden:()=>Ja,horizontalScrollTemplate:()=>Gr,ignore:()=>ie,inject:()=>K,interactiveCalendarGridTemplate:()=>fo,isListboxOption:()=>Uo,isTreeItemElement:()=>qa,lazy:()=>ee,lightModeStylesheetBehavior:()=>Ya,listboxOptionTemplate:()=>ir,listboxTemplate:()=>or,menuItemTemplate:()=>Ir,menuTemplate:()=>Or,newInstanceForScope:()=>se,newInstanceOf:()=>oe,noninteractiveCalendarTemplate:()=>mo,numberFieldTemplate:()=>Er,optional:()=>te,pickerListItemTemplate:()=>xr,pickerListTemplate:()=>Cr,pickerMenuOptionTemplate:()=>yr,pickerMenuTemplate:()=>gr,pickerTemplate:()=>pr,progressRingTemplate:()=>Vr,progressTemplate:()=>Nr,radioGroupTemplate:()=>Br,radioTemplate:()=>Ur,reflectAttributes:()=>Kn,roleForMenuItem:()=>$r,searchTemplate:()=>Yr,selectTemplate:()=>na,singleton:()=>Q,skeletonTemplate:()=>ra,sliderLabelTemplate:()=>la,sliderTemplate:()=>ua,startSlotTemplate:()=>r,startTemplate:()=>l,supportsElementInternals:()=>_s,switchTemplate:()=>ba,tabPanelTemplate:()=>xa,tabTemplate:()=>$a,tabsTemplate:()=>ka,textAreaTemplate:()=>Ra,textFieldTemplate:()=>Fa,toolbarTemplate:()=>La,tooltipTemplate:()=>Va,transient:()=>G,treeItemTemplate:()=>Ba,treeViewTemplate:()=>ja,validateKey:()=>we,whitespaceFilter:()=>Xr});var s=i(29690);class o{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const n=(e,t)=>(0,s.html)` + t.end?"end":void 0} + > + + ${t.end||""} + + +`;const r=(e,t)=>(0,s.html)` + + + ${t.start||""} + + +`;const a=(0,s.html)` + + + +`;const l=(0,s.html)` + + + +`;const d=(e,t)=>(0,s.html)` + +`;var h=function(e,t){h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)if(t.hasOwnProperty(i))e[i]=t[i]};return h(e,t)};function c(e,t){h(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}var u=function(){u=Object.assign||function e(t){for(var i,s=1,o=arguments.length;s=0;a--)if(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}function m(e,t){return function(i,s){t(i,s,e)}}function v(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)}function b(e,t,i,s){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function r(e){try{l(s.next(e))}catch(t){n(t)}}function a(e){try{l(s["throw"](e))}catch(t){n(t)}}function l(e){e.done?i(e.value):o(e.value).then(r,a)}l((s=s.apply(e,t||[])).next())}))}function g(e,t){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},s,o,n,r;return r={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return l([e,t])}}function l(r){if(s)throw new TypeError("Generator is already executing.");while(i)try{if(s=1,o&&(n=r[0]&2?o["return"]:r[0]?o["throw"]||((n=o["return"])&&n.call(o),0):o.next)&&!(n=n.call(o,r[1])).done)return n;if(o=0,n)r=[r[0]&2,n.value];switch(r[0]){case 0:case 1:n=r;break;case 4:i.label++;return{value:r[1],done:false};case 5:i.label++;o=r[1];r=[0];continue;case 7:r=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!n||r[1]>n[0]&&r[1]=e.length)e=void 0;return{value:e&&e[s++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function w(e,t){var i=typeof Symbol==="function"&&e[Symbol.iterator];if(!i)return e;var s=i.call(e),o,n=[],r;try{while((t===void 0||t-- >0)&&!(o=s.next()).done)n.push(o.value)}catch(a){r={error:a}}finally{try{if(o&&!o.done&&(i=s["return"]))i.call(s)}finally{if(r)throw r.error}}return n}function $(){for(var e=[],t=0;t1||a(e,t)}))}}function a(e,t){try{l(s[e](t))}catch(i){c(n[0][3],i)}}function l(e){e.value instanceof k?Promise.resolve(e.value.v).then(d,h):c(n[0][2],e)}function d(e){a("next",e)}function h(e){a("throw",e)}function c(e,t){if(e(t),n.shift(),n.length)a(n[0][0],n[0][1])}}function T(e){var t,i;return t={},s("next"),s("throw",(function(e){throw e})),s("return"),t[Symbol.iterator]=function(){return this},t;function s(s,o){t[s]=e[s]?function(t){return(i=!i)?{value:k(e[s](t)),done:s==="return"}:o?o(t):t}:o}}function E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],i;return t?t.call(e):(e=typeof x==="function"?x(e):e[Symbol.iterator](),i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i);function s(t){i[t]=e[t]&&function(i){return new Promise((function(s,n){i=e[t](i),o(s,n,i.done,i.value)}))}}function o(e,t,i,s){Promise.resolve(s).then((function(t){e({value:t,done:i})}),t)}}function R(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e}function D(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))t[i]=e[i];t.default=e;return t}function S(e){return e&&e.__esModule?e:{default:e}}function A(e,t){if(!t.has(e)){throw new TypeError("attempted to get private field on non-instance")}return t.get(e)}function F(e,t,i){if(!t.has(e)){throw new TypeError("attempted to set private field on non-instance")}t.set(e,i);return i}const L=new Map;if(!("metadata"in Reflect)){Reflect.metadata=function(e,t){return function(i){Reflect.defineMetadata(e,t,i)}};Reflect.defineMetadata=function(e,t,i){let s=L.get(i);if(s===void 0){L.set(i,s=new Map)}s.set(e,t)};Reflect.getOwnMetadata=function(e,t){const i=L.get(t);if(i!==void 0){return i.get(e)}return void 0}}class M{constructor(e,t){this.container=e;this.key=t}instance(e){return this.registerResolver(0,e)}singleton(e){return this.registerResolver(1,e)}transient(e){return this.registerResolver(2,e)}callback(e){return this.registerResolver(3,e)}cachedCallback(e){return this.registerResolver(3,Ce(e))}aliasTo(e){return this.registerResolver(5,e)}registerResolver(e,t){const{container:i,key:s}=this;this.container=this.key=void 0;return i.registerResolver(s,new re(s,e,t))}}function P(e){const t=e.slice();const i=Object.keys(e);const s=i.length;let o;for(let n=0;nnull,responsibleForOwnerRequests:false,defaultResolver:H.singleton})});const z=new Map;function N(e){return t=>Reflect.getOwnMetadata(e,t)}let B=null;const q=Object.freeze({createContainer(e){return new ge(null,Object.assign({},V.default,e))},findResponsibleContainer(e){const t=e.$$container$$;if(t&&t.responsibleForOwnerRequests){return t}return q.findParentContainer(e)},findParentContainer(e){const t=new CustomEvent(ve,{bubbles:true,composed:true,cancelable:true,detail:{container:void 0}});e.dispatchEvent(t);return t.detail.container||q.getOrCreateDOMContainer()},getOrCreateDOMContainer(e,t){if(!e){return B||(B=new ge(null,Object.assign({},V.default,t,{parentLocator:()=>null})))}return e.$$container$$||new ge(e,Object.assign({},V.default,t,{parentLocator:q.findParentContainer}))},getDesignParamtypes:N("design:paramtypes"),getAnnotationParamtypes:N("di:paramtypes"),getOrCreateAnnotationParamTypes(e){let t=this.getAnnotationParamtypes(e);if(t===void 0){Reflect.defineMetadata("di:paramtypes",t=[],e)}return t},getDependencies(e){let t=z.get(e);if(t===void 0){const i=e.inject;if(i===void 0){const i=q.getDesignParamtypes(e);const s=q.getAnnotationParamtypes(e);if(i===void 0){if(s===void 0){const i=Object.getPrototypeOf(e);if(typeof i==="function"&&i!==Function.prototype){t=P(q.getDependencies(i))}else{t=[]}}else{t=P(s)}}else if(s===void 0){t=P(i)}else{t=P(i);let e=s.length;let o;for(let i=0;i{const o=q.findResponsibleContainer(this);const r=o.get(i);const a=this[n];if(r!==a){this[n]=e;s.notify(t)}};s.subscribe({handleChange:o},"isConnected")}}return e}})},createInterface(e,t){const i=typeof e==="function"?e:t;const s=typeof e==="string"?e:e&&"friendlyName"in e?e.friendlyName||Ie:Ie;const o=typeof e==="string"?false:e&&"respectConnection"in e?e.respectConnection||false:false;const n=function(e,t,i){if(e==null||new.target!==undefined){throw new Error(`No registration for interface: '${n.friendlyName}'`)}if(t){q.defineProperty(e,t,n,o)}else{const t=q.getOrCreateAnnotationParamTypes(e);t[i]=n}};n.$isInterface=true;n.friendlyName=s==null?"(anonymous)":s;if(i!=null){n.register=function(e,t){return i(new M(e,t!==null&&t!==void 0?t:n))}}n.toString=function e(){return`InterfaceSymbol<${n.friendlyName}>`};return n},inject(...e){return function(t,i,s){if(typeof s==="number"){const i=q.getOrCreateAnnotationParamTypes(t);const o=e[0];if(o!==void 0){i[s]=o}}else if(i){q.defineProperty(t,i,e[0])}else{const i=s?q.getOrCreateAnnotationParamTypes(s.value):q.getOrCreateAnnotationParamTypes(t);let o;for(let t=0;ti.getAll(e,s)));const ee=_(((e,t,i)=>()=>i.get(e)));const te=_(((e,t,i)=>{if(i.has(e,true)){return i.get(e)}else{return undefined}}));function ie(e,t,i){q.inject(ie)(e,t,i)}ie.$isResolver=true;ie.resolve=()=>undefined;const se=_(((e,t,i)=>{const s=ne(e,t);const o=new re(e,0,s);i.registerResolver(e,o);return s}));const oe=_(((e,t,i)=>ne(e,t)));function ne(e,t){return t.getFactory(e).construct(t)}class re{constructor(e,t,i){this.key=e;this.strategy=t;this.state=i;this.resolving=false}get $isResolver(){return true}register(e){return e.registerResolver(this.key,this)}resolve(e,t){switch(this.strategy){case 0:return this.state;case 1:{if(this.resolving){throw new Error(`Cyclic dependency found: ${this.state.name}`)}this.resolving=true;this.state=e.getFactory(this.state).construct(t);this.strategy=0;this.resolving=false;return this.state}case 2:{const i=e.getFactory(this.state);if(i===null){throw new Error(`Resolver for ${String(this.key)} returned a null factory`)}return i.construct(t)}case 3:return this.state(e,t,this);case 4:return this.state[0].resolve(e,t);case 5:return t.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(e){var t,i,s;switch(this.strategy){case 1:case 2:return e.getFactory(this.state);case 5:return(s=(i=(t=e.getResolver(this.state))===null||t===void 0?void 0:t.getFactory)===null||i===void 0?void 0:i.call(t,e))!==null&&s!==void 0?s:null;default:return null}}}function ae(e){return this.get(e)}function le(e,t){return t(e)}class de{constructor(e,t){this.Type=e;this.dependencies=t;this.transformers=null}construct(e,t){let i;if(t===void 0){i=new this.Type(...this.dependencies.map(ae,e))}else{i=new this.Type(...this.dependencies.map(ae,e),...t)}if(this.transformers==null){return i}return this.transformers.reduce(le,i)}registerTransformer(e){(this.transformers||(this.transformers=[])).push(e)}}const he={$isResolver:true,resolve(e,t){return t}};function ce(e){return typeof e.register==="function"}function ue(e){return ce(e)&&typeof e.registerInRequestor==="boolean"}function pe(e){return ue(e)&&e.registerInRequestor}function fe(e){return e.prototype!==void 0}const me=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]);const ve="__DI_LOCATE_PARENT__";const be=new Map;class ge{constructor(e,t){this.owner=e;this.config=t;this._parent=void 0;this.registerDepth=0;this.context=null;if(e!==null){e.$$container$$=this}this.resolvers=new Map;this.resolvers.set(U,he);if(e instanceof Node){e.addEventListener(ve,(e=>{if(e.composedPath()[0]!==this.owner){e.detail.container=this;e.stopImmediatePropagation()}}))}}get parent(){if(this._parent===void 0){this._parent=this.config.parentLocator(this.owner)}return this._parent}get depth(){return this.parent===null?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(e,...t){this.context=e;this.register(...t);this.context=null;return this}register(...e){if(++this.registerDepth===100){throw new Error("Unable to autoregister dependency")}let t;let i;let s;let o;let n;const r=this.context;for(let a=0,l=e.length;athis}))}jitRegister(e,t){if(typeof e!=="function"){throw new Error(`Attempted to jitRegister something that is not a constructor: '${e}'. Did you forget to register this dependency?`)}if(me.has(e.name)){throw new Error(`Attempted to jitRegister an intrinsic type: ${e.name}. Did you forget to add @inject(Key)`)}if(ce(e)){const i=e.register(t);if(!(i instanceof Object)||i.resolve==null){const i=t.resolvers.get(e);if(i!=void 0){return i}throw new Error("A valid resolver was not returned from the static register method")}return i}else if(e.$isInterface){throw new Error(`Attempted to jitRegister an interface: ${e.friendlyName}`)}else{const i=this.config.defaultResolver(e,t);t.resolvers.set(e,i);return i}}}const ye=new WeakMap;function Ce(e){return function(t,i,s){if(ye.has(s)){return ye.get(s)}const o=e(t,i,s);ye.set(s,o);return o}}const xe=Object.freeze({instance(e,t){return new re(e,0,t)},singleton(e,t){return new re(e,1,t)},transient(e,t){return new re(e,2,t)},callback(e,t){return new re(e,3,t)},cachedCallback(e,t){return new re(e,3,Ce(t))},aliasTo(e,t){return new re(t,5,e)}});function we(e){if(e===null||e===void 0){throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}}function $e(e,t,i){if(e instanceof re&&e.strategy===4){const s=e.state;let o=s.length;const n=new Array(o);while(o--){n[o]=s[o].resolve(t,i)}return n}return[e.resolve(t,i)]}const Ie="(anonymous)";function ke(e){return typeof e==="object"&&e!==null||typeof e==="function"}const Oe=function(){const e=new WeakMap;let t=false;let i="";let s=0;return function(o){t=e.get(o);if(t===void 0){i=o.toString();s=i.length;t=s>=29&&s<=100&&i.charCodeAt(s-1)===125&&i.charCodeAt(s-2)<=32&&i.charCodeAt(s-3)===93&&i.charCodeAt(s-4)===101&&i.charCodeAt(s-5)===100&&i.charCodeAt(s-6)===111&&i.charCodeAt(s-7)===99&&i.charCodeAt(s-8)===32&&i.charCodeAt(s-9)===101&&i.charCodeAt(s-10)===118&&i.charCodeAt(s-11)===105&&i.charCodeAt(s-12)===116&&i.charCodeAt(s-13)===97&&i.charCodeAt(s-14)===110&&i.charCodeAt(s-15)===88;e.set(o,t)}return t}}();const Te={};function Ee(e){switch(typeof e){case"number":return e>=0&&(e|0)===e;case"string":{const t=Te[e];if(t!==void 0){return t}const i=e.length;if(i===0){return Te[e]=false}let s=0;for(let o=0;o1||s<48||s>57){return Te[e]=false}}return Te[e]=true}default:return false}}function Re(e){return`${e.toLowerCase()}:presentation`}const De=new Map;const Se=Object.freeze({define(e,t,i){const s=Re(e);const o=De.get(s);if(o===void 0){De.set(s,t)}else{De.set(s,false)}i.register(xe.instance(s,t))},forTag(e,t){const i=Re(e);const s=De.get(i);if(s===false){const e=q.findResponsibleContainer(t);return e.get(i)}return s||null}});class Ae{constructor(e,t){this.template=e||null;this.styles=t===void 0?null:Array.isArray(t)?s.ElementStyles.create(t):t instanceof s.ElementStyles?t:s.ElementStyles.create([t])}applyTo(e){const t=e.$fastController;if(t.template===null){t.template=this.template}if(t.styles===null){t.styles=this.styles}}}class Fe extends s.FASTElement{constructor(){super(...arguments);this._presentation=void 0}get $presentation(){if(this._presentation===void 0){this._presentation=Se.forTag(this.tagName,this)}return this._presentation}templateChanged(){if(this.template!==undefined){this.$fastController.template=this.template}}stylesChanged(){if(this.styles!==undefined){this.$fastController.styles=this.styles}}connectedCallback(){if(this.$presentation!==null){this.$presentation.applyTo(this)}super.connectedCallback()}static compose(e){return(t={})=>new Me(this===Fe?class extends Fe{}:this,e,t)}}f([s.observable],Fe.prototype,"template",void 0);f([s.observable],Fe.prototype,"styles",void 0);function Le(e,t,i){if(typeof e==="function"){return e(t,i)}return e}class Me{constructor(e,t,i){this.type=e;this.elementDefinition=t;this.overrideDefinition=i;this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(e,t){const i=this.definition;const s=this.overrideDefinition;const o=i.prefix||t.elementPrefix;const n=`${o}-${i.baseName}`;t.tryDefineElement({name:n,type:this.type,baseClass:this.elementDefinition.baseClass,callback:e=>{const t=new Ae(Le(i.template,e,i),Le(i.styles,e,i));e.definePresentation(t);let o=Le(i.shadowOptions,e,i);if(e.shadowRootMode){if(o){if(!s.shadowOptions){o.mode=e.shadowRootMode}}else if(o!==null){o={mode:e.shadowRootMode}}}e.defineElement({elementOptions:Le(i.elementOptions,e,i),shadowOptions:o,attributes:Le(i.attributes,e,i)})}})}}function Pe(e,...t){const i=s.AttributeConfiguration.locate(e);t.forEach((t=>{Object.getOwnPropertyNames(t.prototype).forEach((i=>{if(i!=="constructor"){Object.defineProperty(e.prototype,i,Object.getOwnPropertyDescriptor(t.prototype,i))}}));const o=s.AttributeConfiguration.locate(t);o.forEach((e=>i.push(e)))}))}class He extends Fe{constructor(){super(...arguments);this.headinglevel=2;this.expanded=false;this.clickHandler=e=>{this.expanded=!this.expanded;this.change()};this.change=()=>{this.$emit("change")}}}f([(0,s.attr)({attribute:"heading-level",mode:"fromView",converter:s.nullableNumberConverter})],He.prototype,"headinglevel",void 0);f([(0,s.attr)({mode:"boolean"})],He.prototype,"expanded",void 0);f([s.attr],He.prototype,"id",void 0);Pe(He,o);const Ve=(e,t)=>(0,s.html)` + +`;var ze=i(74291);var Ne=i(83021);const Be={single:"single",multi:"multi"};class qe extends Fe{constructor(){super(...arguments);this.expandmode=Be.multi;this.activeItemIndex=0;this.change=()=>{this.$emit("change",this.activeid)};this.setItems=()=>{var e;if(this.accordionItems.length===0){return}this.accordionIds=this.getItemIds();this.accordionItems.forEach(((e,t)=>{if(e instanceof He){e.addEventListener("change",this.activeItemChange);if(this.isSingleExpandMode()){this.activeItemIndex!==t?e.expanded=false:e.expanded=true}}const i=this.accordionIds[t];e.setAttribute("id",typeof i!=="string"?`accordion-${t+1}`:i);this.activeid=this.accordionIds[this.activeItemIndex];e.addEventListener("keydown",this.handleItemKeyDown);e.addEventListener("focus",this.handleItemFocus)}));if(this.isSingleExpandMode()){const t=(e=this.findExpandedItem())!==null&&e!==void 0?e:this.accordionItems[0];t.setAttribute("aria-disabled","true")}};this.removeItemListeners=e=>{e.forEach(((e,t)=>{e.removeEventListener("change",this.activeItemChange);e.removeEventListener("keydown",this.handleItemKeyDown);e.removeEventListener("focus",this.handleItemFocus)}))};this.activeItemChange=e=>{if(e.defaultPrevented||e.target!==e.currentTarget){return}e.preventDefault();const t=e.target;this.activeid=t.getAttribute("id");if(this.isSingleExpandMode()){this.resetItems();t.expanded=true;t.setAttribute("aria-disabled","true");this.accordionItems.forEach((e=>{if(!e.hasAttribute("disabled")&&e.id!==this.activeid){e.removeAttribute("aria-disabled")}}))}this.activeItemIndex=Array.from(this.accordionItems).indexOf(t);this.change()};this.handleItemKeyDown=e=>{if(e.target!==e.currentTarget){return}this.accordionIds=this.getItemIds();switch(e.key){case ze.I5:e.preventDefault();this.adjust(-1);break;case ze.HX:e.preventDefault();this.adjust(1);break;case ze.Tg:this.activeItemIndex=0;this.focusItem();break;case ze.FM:this.activeItemIndex=this.accordionItems.length-1;this.focusItem();break}};this.handleItemFocus=e=>{if(e.target===e.currentTarget){const t=e.target;const i=this.activeItemIndex=Array.from(this.accordionItems).indexOf(t);if(this.activeItemIndex!==i&&i!==-1){this.activeItemIndex=i;this.activeid=this.accordionIds[this.activeItemIndex]}}}}accordionItemsChanged(e,t){if(this.$fastController.isConnected){this.removeItemListeners(e);this.setItems()}}findExpandedItem(){for(let e=0;e{e.expanded=false}))}getItemIds(){return this.accordionItems.map((e=>e.getAttribute("id")))}isSingleExpandMode(){return this.expandmode===Be.single}adjust(e){this.activeItemIndex=(0,Ne.Vf)(0,this.accordionItems.length-1,this.activeItemIndex+e);this.focusItem()}focusItem(){const e=this.accordionItems[this.activeItemIndex];if(e instanceof He){e.expandbutton.focus()}}}f([(0,s.attr)({attribute:"expand-mode"})],qe.prototype,"expandmode",void 0);f([s.observable],qe.prototype,"accordionItems",void 0);const Ue=(e,t)=>(0,s.html)` + + ${r(e,t)} + + + + ${n(e,t)} + +`;class je{}f([(0,s.attr)({attribute:"aria-atomic"})],je.prototype,"ariaAtomic",void 0);f([(0,s.attr)({attribute:"aria-busy"})],je.prototype,"ariaBusy",void 0);f([(0,s.attr)({attribute:"aria-controls"})],je.prototype,"ariaControls",void 0);f([(0,s.attr)({attribute:"aria-current"})],je.prototype,"ariaCurrent",void 0);f([(0,s.attr)({attribute:"aria-describedby"})],je.prototype,"ariaDescribedby",void 0);f([(0,s.attr)({attribute:"aria-details"})],je.prototype,"ariaDetails",void 0);f([(0,s.attr)({attribute:"aria-disabled"})],je.prototype,"ariaDisabled",void 0);f([(0,s.attr)({attribute:"aria-errormessage"})],je.prototype,"ariaErrormessage",void 0);f([(0,s.attr)({attribute:"aria-flowto"})],je.prototype,"ariaFlowto",void 0);f([(0,s.attr)({attribute:"aria-haspopup"})],je.prototype,"ariaHaspopup",void 0);f([(0,s.attr)({attribute:"aria-hidden"})],je.prototype,"ariaHidden",void 0);f([(0,s.attr)({attribute:"aria-invalid"})],je.prototype,"ariaInvalid",void 0);f([(0,s.attr)({attribute:"aria-keyshortcuts"})],je.prototype,"ariaKeyshortcuts",void 0);f([(0,s.attr)({attribute:"aria-label"})],je.prototype,"ariaLabel",void 0);f([(0,s.attr)({attribute:"aria-labelledby"})],je.prototype,"ariaLabelledby",void 0);f([(0,s.attr)({attribute:"aria-live"})],je.prototype,"ariaLive",void 0);f([(0,s.attr)({attribute:"aria-owns"})],je.prototype,"ariaOwns",void 0);f([(0,s.attr)({attribute:"aria-relevant"})],je.prototype,"ariaRelevant",void 0);f([(0,s.attr)({attribute:"aria-roledescription"})],je.prototype,"ariaRoledescription",void 0);class _e extends Fe{constructor(){super(...arguments);this.handleUnsupportedDelegatesFocus=()=>{var e;if(window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&((e=this.$fastController.definition.shadowOptions)===null||e===void 0?void 0:e.delegatesFocus)){this.focus=()=>{var e;(e=this.control)===null||e===void 0?void 0:e.focus()}}}}connectedCallback(){super.connectedCallback();this.handleUnsupportedDelegatesFocus()}}f([s.attr],_e.prototype,"download",void 0);f([s.attr],_e.prototype,"href",void 0);f([s.attr],_e.prototype,"hreflang",void 0);f([s.attr],_e.prototype,"ping",void 0);f([s.attr],_e.prototype,"referrerpolicy",void 0);f([s.attr],_e.prototype,"rel",void 0);f([s.attr],_e.prototype,"target",void 0);f([s.attr],_e.prototype,"type",void 0);f([s.observable],_e.prototype,"defaultSlottedContent",void 0);class Ke{}f([(0,s.attr)({attribute:"aria-expanded"})],Ke.prototype,"ariaExpanded",void 0);Pe(Ke,je);Pe(_e,o,Ke);const We=(e,t)=>(0,s.html)` + +`;var Ge=i(30086);const Xe="abort";const Ye="afterprint";const Qe="animationcancel";const Ze="animationend";const Je="animationiteration";const et="animationstart";const tt="appinstalled";const it="beforeprint";const st="beforeunload";const ot="beginEvent";const nt="blocked";const rt="blur";const at="canplay";const lt="canplaythrough";const dt="change";const ht="chargingchange";const ct="chargingtimechange";const ut="click";const pt="close";const ft="complete";const mt="compositionend";const vt="compositionstart";const bt="compositionupdate";const gt="contextmenu";const yt="copy";const Ct="cut";const xt="dblclick";const wt="devicechange";const $t="devicemotion";const It="deviceorientation";const kt="dischargingtimechange";const Ot="drag";const Tt="dragend";const Et="dragenter";const Rt="dragleave";const Dt="dragover";const St="dragstart";const At="drop";const Ft="durationchange";const Lt="emptied";const Mt="ended";const Pt="endevent";const Ht="error";const Vt="focus";const zt="focusin";const Nt="focusout";const Bt="fullscreenchange";const qt="fullscreenerror";const Ut="gamepadconnected";const jt="gamepaddisconnected";const _t="gotpointercapture";const Kt="hashchange";const Wt="lostpointercapture";const Gt="input";const Xt="invalid";const Yt="keydown";const Qt="keyup";const Zt="levelchange";const Jt="load";const ei="loadeddata";const ti="loadedmetadata";const ii="loadend";const si="loadstart";const oi="message";const ni="messageerror";const ri="mousedown";const ai="mouseenter";const li="mouseleave";const di="mousemove";const hi="mouseout";const ci="mouseover";const ui="mouseup";const pi="notificationclick";const fi="offline";const mi="online";const vi="open";const bi="orientationchange";const gi="pagehide";const yi="pageshow";const Ci="paste";const xi="pause";const wi="pointercancel";const $i="pointerdown";const Ii="pointerenter";const ki="pointerleave";const Oi="pointerlockchange";const Ti="pointerlockerror";const Ei="pointermove";const Ri="pointerout";const Di="pointerover";const Si="pointerup";const Ai="play";const Fi="playing";const Li="popstate";const Mi="progress";const Pi="push";const Hi="pushsubscriptionchange";const Vi="ratechange";const zi="readystatechange";const Ni="repeatevent";const Bi="reset";const qi="resize";const Ui="resourcetimingbufferfull";const ji="scroll";const _i="seeked";const Ki="seeking";const Wi="select";const Gi="show";const Xi="slotchange";const Yi="stalled";const Qi="start";const Zi="storage";const Ji="submit";const es="success";const ts="suspend";const is="SVGAbort";const ss="SVGError";const os="SVGLoad";const ns="SVGResize";const rs="SVGScroll";const as="SVGUnload";const ls="SVGZoom";const ds="timeout";const hs="timeupdate";const cs="touchcancel";const us="touchend";const ps="touchmove";const fs="touchstart";const ms="transitionend";const vs="unload";const bs="upgradeneeded";const gs="userproximity";const ys="versionchange";const Cs="visibilitychange";const xs="volumechange";const ws="waiting";const $s="wheel";const Is=e=>{const t=e.closest("[dir]");return t!==null&&t.dir==="rtl"?Ge.O.rtl:Ge.O.ltr};class ks{constructor(){this.intersectionDetector=null;this.observedElements=new Map;this.requestPosition=(e,t)=>{var i;if(this.intersectionDetector===null){return}if(this.observedElements.has(e)){(i=this.observedElements.get(e))===null||i===void 0?void 0:i.push(t);return}this.observedElements.set(e,[t]);this.intersectionDetector.observe(e)};this.cancelRequestPosition=(e,t)=>{const i=this.observedElements.get(e);if(i!==undefined){const e=i.indexOf(t);if(e!==-1){i.splice(e,1)}}};this.initializeIntersectionDetector=()=>{if(!s.$global.IntersectionObserver){return}this.intersectionDetector=new IntersectionObserver(this.handleIntersection,{root:null,rootMargin:"0px",threshold:[0,1]})};this.handleIntersection=e=>{if(this.intersectionDetector===null){return}const t=[];const i=[];e.forEach((e=>{var s;(s=this.intersectionDetector)===null||s===void 0?void 0:s.unobserve(e.target);const o=this.observedElements.get(e.target);if(o!==undefined){o.forEach((s=>{let o=t.indexOf(s);if(o===-1){o=t.length;t.push(s);i.push([])}i[o].push(e)}));this.observedElements.delete(e.target)}}));t.forEach(((e,t)=>{e(i[t])}))};this.initializeIntersectionDetector()}}class Os extends Fe{constructor(){super(...arguments);this.anchor="";this.viewport="";this.horizontalPositioningMode="uncontrolled";this.horizontalDefaultPosition="unset";this.horizontalViewportLock=false;this.horizontalInset=false;this.horizontalScaling="content";this.verticalPositioningMode="uncontrolled";this.verticalDefaultPosition="unset";this.verticalViewportLock=false;this.verticalInset=false;this.verticalScaling="content";this.fixedPlacement=false;this.autoUpdateMode="anchor";this.anchorElement=null;this.viewportElement=null;this.initialLayoutComplete=false;this.resizeDetector=null;this.baseHorizontalOffset=0;this.baseVerticalOffset=0;this.pendingPositioningUpdate=false;this.pendingReset=false;this.currentDirection=Ge.O.ltr;this.regionVisible=false;this.forceUpdate=false;this.updateThreshold=.5;this.update=()=>{if(!this.pendingPositioningUpdate){this.requestPositionUpdates()}};this.startObservers=()=>{this.stopObservers();if(this.anchorElement===null){return}this.requestPositionUpdates();if(this.resizeDetector!==null){this.resizeDetector.observe(this.anchorElement);this.resizeDetector.observe(this)}};this.requestPositionUpdates=()=>{if(this.anchorElement===null||this.pendingPositioningUpdate){return}Os.intersectionService.requestPosition(this,this.handleIntersection);Os.intersectionService.requestPosition(this.anchorElement,this.handleIntersection);if(this.viewportElement!==null){Os.intersectionService.requestPosition(this.viewportElement,this.handleIntersection)}this.pendingPositioningUpdate=true};this.stopObservers=()=>{if(this.pendingPositioningUpdate){this.pendingPositioningUpdate=false;Os.intersectionService.cancelRequestPosition(this,this.handleIntersection);if(this.anchorElement!==null){Os.intersectionService.cancelRequestPosition(this.anchorElement,this.handleIntersection)}if(this.viewportElement!==null){Os.intersectionService.cancelRequestPosition(this.viewportElement,this.handleIntersection)}}if(this.resizeDetector!==null){this.resizeDetector.disconnect()}};this.getViewport=()=>{if(typeof this.viewport!=="string"||this.viewport===""){return document.documentElement}return document.getElementById(this.viewport)};this.getAnchor=()=>document.getElementById(this.anchor);this.handleIntersection=e=>{if(!this.pendingPositioningUpdate){return}this.pendingPositioningUpdate=false;if(!this.applyIntersectionEntries(e)){return}this.updateLayout()};this.applyIntersectionEntries=e=>{const t=e.find((e=>e.target===this));const i=e.find((e=>e.target===this.anchorElement));const s=e.find((e=>e.target===this.viewportElement));if(t===undefined||s===undefined||i===undefined){return false}if(!this.regionVisible||this.forceUpdate||this.regionRect===undefined||this.anchorRect===undefined||this.viewportRect===undefined||this.isRectDifferent(this.anchorRect,i.boundingClientRect)||this.isRectDifferent(this.viewportRect,s.boundingClientRect)||this.isRectDifferent(this.regionRect,t.boundingClientRect)){this.regionRect=t.boundingClientRect;this.anchorRect=i.boundingClientRect;if(this.viewportElement===document.documentElement){this.viewportRect=new DOMRectReadOnly(s.boundingClientRect.x+document.documentElement.scrollLeft,s.boundingClientRect.y+document.documentElement.scrollTop,s.boundingClientRect.width,s.boundingClientRect.height)}else{this.viewportRect=s.boundingClientRect}this.updateRegionOffset();this.forceUpdate=false;return true}return false};this.updateRegionOffset=()=>{if(this.anchorRect&&this.regionRect){this.baseHorizontalOffset=this.baseHorizontalOffset+(this.anchorRect.left-this.regionRect.left)+(this.translateX-this.baseHorizontalOffset);this.baseVerticalOffset=this.baseVerticalOffset+(this.anchorRect.top-this.regionRect.top)+(this.translateY-this.baseVerticalOffset)}};this.isRectDifferent=(e,t)=>{if(Math.abs(e.top-t.top)>this.updateThreshold||Math.abs(e.right-t.right)>this.updateThreshold||Math.abs(e.bottom-t.bottom)>this.updateThreshold||Math.abs(e.left-t.left)>this.updateThreshold){return true}return false};this.handleResize=e=>{this.update()};this.reset=()=>{if(!this.pendingReset){return}this.pendingReset=false;if(this.anchorElement===null){this.anchorElement=this.getAnchor()}if(this.viewportElement===null){this.viewportElement=this.getViewport()}this.currentDirection=Is(this);this.startObservers()};this.updateLayout=()=>{let e=undefined;let t=undefined;if(this.horizontalPositioningMode!=="uncontrolled"){const e=this.getPositioningOptions(this.horizontalInset);if(this.horizontalDefaultPosition==="center"){t="center"}else if(this.horizontalDefaultPosition!=="unset"){let e=this.horizontalDefaultPosition;if(e==="start"||e==="end"){const t=Is(this);if(t!==this.currentDirection){this.currentDirection=t;this.initialize();return}if(this.currentDirection===Ge.O.ltr){e=e==="start"?"left":"right"}else{e=e==="start"?"right":"left"}}switch(e){case"left":t=this.horizontalInset?"insetStart":"start";break;case"right":t=this.horizontalInset?"insetEnd":"end";break}}const i=this.horizontalThreshold!==undefined?this.horizontalThreshold:this.regionRect!==undefined?this.regionRect.width:0;const s=this.anchorRect!==undefined?this.anchorRect.left:0;const o=this.anchorRect!==undefined?this.anchorRect.right:0;const n=this.anchorRect!==undefined?this.anchorRect.width:0;const r=this.viewportRect!==undefined?this.viewportRect.left:0;const a=this.viewportRect!==undefined?this.viewportRect.right:0;if(t===undefined||!(this.horizontalPositioningMode==="locktodefault")&&this.getAvailableSpace(t,s,o,n,r,a)this.getAvailableSpace(e[1],s,o,n,r,a)?e[0]:e[1]}}if(this.verticalPositioningMode!=="uncontrolled"){const t=this.getPositioningOptions(this.verticalInset);if(this.verticalDefaultPosition==="center"){e="center"}else if(this.verticalDefaultPosition!=="unset"){switch(this.verticalDefaultPosition){case"top":e=this.verticalInset?"insetStart":"start";break;case"bottom":e=this.verticalInset?"insetEnd":"end";break}}const i=this.verticalThreshold!==undefined?this.verticalThreshold:this.regionRect!==undefined?this.regionRect.height:0;const s=this.anchorRect!==undefined?this.anchorRect.top:0;const o=this.anchorRect!==undefined?this.anchorRect.bottom:0;const n=this.anchorRect!==undefined?this.anchorRect.height:0;const r=this.viewportRect!==undefined?this.viewportRect.top:0;const a=this.viewportRect!==undefined?this.viewportRect.bottom:0;if(e===undefined||!(this.verticalPositioningMode==="locktodefault")&&this.getAvailableSpace(e,s,o,n,r,a)this.getAvailableSpace(t[1],s,o,n,r,a)?t[0]:t[1]}}const i=this.getNextRegionDimension(t,e);const s=this.horizontalPosition!==t||this.verticalPosition!==e;this.setHorizontalPosition(t,i);this.setVerticalPosition(e,i);this.updateRegionStyle();if(!this.initialLayoutComplete){this.initialLayoutComplete=true;this.requestPositionUpdates();return}if(!this.regionVisible){this.regionVisible=true;this.style.removeProperty("pointer-events");this.style.removeProperty("opacity");this.classList.toggle("loaded",true);this.$emit("loaded",this,{bubbles:false})}this.updatePositionClasses();if(s){this.$emit("positionchange",this,{bubbles:false})}};this.updateRegionStyle=()=>{this.style.width=this.regionWidth;this.style.height=this.regionHeight;this.style.transform=`translate(${this.translateX}px, ${this.translateY}px)`};this.updatePositionClasses=()=>{this.classList.toggle("top",this.verticalPosition==="start");this.classList.toggle("bottom",this.verticalPosition==="end");this.classList.toggle("inset-top",this.verticalPosition==="insetStart");this.classList.toggle("inset-bottom",this.verticalPosition==="insetEnd");this.classList.toggle("vertical-center",this.verticalPosition==="center");this.classList.toggle("left",this.horizontalPosition==="start");this.classList.toggle("right",this.horizontalPosition==="end");this.classList.toggle("inset-left",this.horizontalPosition==="insetStart");this.classList.toggle("inset-right",this.horizontalPosition==="insetEnd");this.classList.toggle("horizontal-center",this.horizontalPosition==="center")};this.setHorizontalPosition=(e,t)=>{if(e===undefined||this.regionRect===undefined||this.anchorRect===undefined||this.viewportRect===undefined){return}let i=0;switch(this.horizontalScaling){case"anchor":case"fill":i=this.horizontalViewportLock?this.viewportRect.width:t.width;this.regionWidth=`${i}px`;break;case"content":i=this.regionRect.width;this.regionWidth="unset";break}let s=0;switch(e){case"start":this.translateX=this.baseHorizontalOffset-i;if(this.horizontalViewportLock&&this.anchorRect.left>this.viewportRect.right){this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.right)}break;case"insetStart":this.translateX=this.baseHorizontalOffset-i+this.anchorRect.width;if(this.horizontalViewportLock&&this.anchorRect.right>this.viewportRect.right){this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.right)}break;case"insetEnd":this.translateX=this.baseHorizontalOffset;if(this.horizontalViewportLock&&this.anchorRect.leftthis.viewportRect.right)){this.translateX=this.translateX-(e-this.viewportRect.left)}else if(t>this.viewportRect.right&&!(e{if(e===undefined||this.regionRect===undefined||this.anchorRect===undefined||this.viewportRect===undefined){return}let i=0;switch(this.verticalScaling){case"anchor":case"fill":i=this.verticalViewportLock?this.viewportRect.height:t.height;this.regionHeight=`${i}px`;break;case"content":i=this.regionRect.height;this.regionHeight="unset";break}let s=0;switch(e){case"start":this.translateY=this.baseVerticalOffset-i;if(this.verticalViewportLock&&this.anchorRect.top>this.viewportRect.bottom){this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.bottom)}break;case"insetStart":this.translateY=this.baseVerticalOffset-i+this.anchorRect.height;if(this.verticalViewportLock&&this.anchorRect.bottom>this.viewportRect.bottom){this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.bottom)}break;case"insetEnd":this.translateY=this.baseVerticalOffset;if(this.verticalViewportLock&&this.anchorRect.topthis.viewportRect.bottom)){this.translateY=this.translateY-(e-this.viewportRect.top)}else if(t>this.viewportRect.bottom&&!(e{if(e){return["insetStart","insetEnd"]}return["start","end"]};this.getAvailableSpace=(e,t,i,s,o,n)=>{const r=t-o;const a=n-(t+s);switch(e){case"start":return r;case"insetStart":return r+s;case"insetEnd":return a+s;case"end":return a;case"center":return Math.min(r,a)*2+s}};this.getNextRegionDimension=(e,t)=>{const i={height:this.regionRect!==undefined?this.regionRect.height:0,width:this.regionRect!==undefined?this.regionRect.width:0};if(e!==undefined&&this.horizontalScaling==="fill"){i.width=this.getAvailableSpace(e,this.anchorRect!==undefined?this.anchorRect.left:0,this.anchorRect!==undefined?this.anchorRect.right:0,this.anchorRect!==undefined?this.anchorRect.width:0,this.viewportRect!==undefined?this.viewportRect.left:0,this.viewportRect!==undefined?this.viewportRect.right:0)}else if(this.horizontalScaling==="anchor"){i.width=this.anchorRect!==undefined?this.anchorRect.width:0}if(t!==undefined&&this.verticalScaling==="fill"){i.height=this.getAvailableSpace(t,this.anchorRect!==undefined?this.anchorRect.top:0,this.anchorRect!==undefined?this.anchorRect.bottom:0,this.anchorRect!==undefined?this.anchorRect.height:0,this.viewportRect!==undefined?this.viewportRect.top:0,this.viewportRect!==undefined?this.viewportRect.bottom:0)}else if(this.verticalScaling==="anchor"){i.height=this.anchorRect!==undefined?this.anchorRect.height:0}return i};this.startAutoUpdateEventListeners=()=>{window.addEventListener(qi,this.update,{passive:true});window.addEventListener(ji,this.update,{passive:true,capture:true});if(this.resizeDetector!==null&&this.viewportElement!==null){this.resizeDetector.observe(this.viewportElement)}};this.stopAutoUpdateEventListeners=()=>{window.removeEventListener(qi,this.update);window.removeEventListener(ji,this.update);if(this.resizeDetector!==null&&this.viewportElement!==null){this.resizeDetector.unobserve(this.viewportElement)}}}anchorChanged(){if(this.initialLayoutComplete){this.anchorElement=this.getAnchor()}}viewportChanged(){if(this.initialLayoutComplete){this.viewportElement=this.getViewport()}}horizontalPositioningModeChanged(){this.requestReset()}horizontalDefaultPositionChanged(){this.updateForAttributeChange()}horizontalViewportLockChanged(){this.updateForAttributeChange()}horizontalInsetChanged(){this.updateForAttributeChange()}horizontalThresholdChanged(){this.updateForAttributeChange()}horizontalScalingChanged(){this.updateForAttributeChange()}verticalPositioningModeChanged(){this.requestReset()}verticalDefaultPositionChanged(){this.updateForAttributeChange()}verticalViewportLockChanged(){this.updateForAttributeChange()}verticalInsetChanged(){this.updateForAttributeChange()}verticalThresholdChanged(){this.updateForAttributeChange()}verticalScalingChanged(){this.updateForAttributeChange()}fixedPlacementChanged(){if(this.$fastController.isConnected&&this.initialLayoutComplete){this.initialize()}}autoUpdateModeChanged(e,t){if(this.$fastController.isConnected&&this.initialLayoutComplete){if(e==="auto"){this.stopAutoUpdateEventListeners()}if(t==="auto"){this.startAutoUpdateEventListeners()}}}anchorElementChanged(){this.requestReset()}viewportElementChanged(){if(this.$fastController.isConnected&&this.initialLayoutComplete){this.initialize()}}connectedCallback(){super.connectedCallback();if(this.autoUpdateMode==="auto"){this.startAutoUpdateEventListeners()}this.initialize()}disconnectedCallback(){super.disconnectedCallback();if(this.autoUpdateMode==="auto"){this.stopAutoUpdateEventListeners()}this.stopObservers();this.disconnectResizeDetector()}adoptedCallback(){this.initialize()}disconnectResizeDetector(){if(this.resizeDetector!==null){this.resizeDetector.disconnect();this.resizeDetector=null}}initializeResizeDetector(){this.disconnectResizeDetector();this.resizeDetector=new window.ResizeObserver(this.handleResize)}updateForAttributeChange(){if(this.$fastController.isConnected&&this.initialLayoutComplete){this.forceUpdate=true;this.update()}}initialize(){this.initializeResizeDetector();if(this.anchorElement===null){this.anchorElement=this.getAnchor()}this.requestReset()}requestReset(){if(this.$fastController.isConnected&&this.pendingReset===false){this.setInitialState();s.DOM.queueUpdate((()=>this.reset()));this.pendingReset=true}}setInitialState(){this.initialLayoutComplete=false;this.regionVisible=false;this.translateX=0;this.translateY=0;this.baseHorizontalOffset=0;this.baseVerticalOffset=0;this.viewportRect=undefined;this.regionRect=undefined;this.anchorRect=undefined;this.verticalPosition=undefined;this.horizontalPosition=undefined;this.style.opacity="0";this.style.pointerEvents="none";this.forceUpdate=false;this.style.position=this.fixedPlacement?"fixed":"absolute";this.updatePositionClasses();this.updateRegionStyle()}}Os.intersectionService=new ks;f([s.attr],Os.prototype,"anchor",void 0);f([s.attr],Os.prototype,"viewport",void 0);f([(0,s.attr)({attribute:"horizontal-positioning-mode"})],Os.prototype,"horizontalPositioningMode",void 0);f([(0,s.attr)({attribute:"horizontal-default-position"})],Os.prototype,"horizontalDefaultPosition",void 0);f([(0,s.attr)({attribute:"horizontal-viewport-lock",mode:"boolean"})],Os.prototype,"horizontalViewportLock",void 0);f([(0,s.attr)({attribute:"horizontal-inset",mode:"boolean"})],Os.prototype,"horizontalInset",void 0);f([(0,s.attr)({attribute:"horizontal-threshold"})],Os.prototype,"horizontalThreshold",void 0);f([(0,s.attr)({attribute:"horizontal-scaling"})],Os.prototype,"horizontalScaling",void 0);f([(0,s.attr)({attribute:"vertical-positioning-mode"})],Os.prototype,"verticalPositioningMode",void 0);f([(0,s.attr)({attribute:"vertical-default-position"})],Os.prototype,"verticalDefaultPosition",void 0);f([(0,s.attr)({attribute:"vertical-viewport-lock",mode:"boolean"})],Os.prototype,"verticalViewportLock",void 0);f([(0,s.attr)({attribute:"vertical-inset",mode:"boolean"})],Os.prototype,"verticalInset",void 0);f([(0,s.attr)({attribute:"vertical-threshold"})],Os.prototype,"verticalThreshold",void 0);f([(0,s.attr)({attribute:"vertical-scaling"})],Os.prototype,"verticalScaling",void 0);f([(0,s.attr)({attribute:"fixed-placement",mode:"boolean"})],Os.prototype,"fixedPlacement",void 0);f([(0,s.attr)({attribute:"auto-update-mode"})],Os.prototype,"autoUpdateMode",void 0);f([s.observable],Os.prototype,"anchorElement",void 0);f([s.observable],Os.prototype,"viewportElement",void 0);f([s.observable],Os.prototype,"initialLayoutComplete",void 0);const Ts={horizontalDefaultPosition:"center",horizontalPositioningMode:"locktodefault",horizontalInset:false,horizontalScaling:"anchor"};const Es=Object.assign(Object.assign({},Ts),{verticalDefaultPosition:"top",verticalPositioningMode:"locktodefault",verticalInset:false,verticalScaling:"content"});const Rs=Object.assign(Object.assign({},Ts),{verticalDefaultPosition:"bottom",verticalPositioningMode:"locktodefault",verticalInset:false,verticalScaling:"content"});const Ds=Object.assign(Object.assign({},Ts),{verticalPositioningMode:"dynamic",verticalInset:false,verticalScaling:"content"});const Ss=Object.assign(Object.assign({},Es),{verticalScaling:"fill"});const As=Object.assign(Object.assign({},Rs),{verticalScaling:"fill"});const Fs=Object.assign(Object.assign({},Ds),{verticalScaling:"fill"});const Ls=(e,t)=>(0,s.html)` + + +`;class Ms extends Fe{connectedCallback(){super.connectedCallback();if(!this.shape){this.shape="circle"}}}f([s.attr],Ms.prototype,"fill",void 0);f([s.attr],Ms.prototype,"color",void 0);f([s.attr],Ms.prototype,"link",void 0);f([s.attr],Ms.prototype,"shape",void 0);const Ps=(e,t)=>(0,s.html)` + +`;class Hs extends Fe{constructor(){super(...arguments);this.generateBadgeStyle=()=>{if(!this.fill&&!this.color){return}const e=`background-color: var(--badge-fill-${this.fill});`;const t=`color: var(--badge-color-${this.color});`;if(this.fill&&!this.color){return e}else if(this.color&&!this.fill){return t}else{return`${t} ${e}`}}}}f([(0,s.attr)({attribute:"fill"})],Hs.prototype,"fill",void 0);f([(0,s.attr)({attribute:"color"})],Hs.prototype,"color",void 0);f([(0,s.attr)({mode:"boolean"})],Hs.prototype,"circular",void 0);const Vs=(e,t)=>(0,s.html)` +
+ ${(0,s.when)((e=>e.href&&e.href.length>0),(0,s.html)` + ${Ue(e,t)} + `)} + ${(0,s.when)((e=>!e.href),(0,s.html)` + ${r(e,t)} + + ${n(e,t)} + `)} + ${(0,s.when)((e=>e.separator),(0,s.html)` + + `)} +
+`;class zs extends _e{constructor(){super(...arguments);this.separator=true}}f([s.observable],zs.prototype,"separator",void 0);Pe(zs,o,Ke);const Ns=(e,t)=>(0,s.html)` + +`;class Bs extends Fe{slottedBreadcrumbItemsChanged(){if(this.$fastController.isConnected){if(this.slottedBreadcrumbItems===undefined||this.slottedBreadcrumbItems.length===0){return}const e=this.slottedBreadcrumbItems[this.slottedBreadcrumbItems.length-1];this.slottedBreadcrumbItems.forEach((t=>{const i=t===e;this.setItemSeparator(t,i);this.setAriaCurrent(t,i)}))}}setItemSeparator(e,t){if(e instanceof zs){e.separator=!t}}findChildWithHref(e){var t,i;if(e.childElementCount>0){return e.querySelector("a[href]")}else if((t=e.shadowRoot)===null||t===void 0?void 0:t.childElementCount){return(i=e.shadowRoot)===null||i===void 0?void 0:i.querySelector("a[href]")}else return null}setAriaCurrent(e,t){const i=this.findChildWithHref(e);if(i===null&&e.hasAttribute("href")&&e instanceof zs){t?e.setAttribute("aria-current","page"):e.removeAttribute("aria-current")}else if(i!==null){t?i.setAttribute("aria-current","page"):i.removeAttribute("aria-current")}}}f([s.observable],Bs.prototype,"slottedBreadcrumbItems",void 0);const qs=(e,t)=>(0,s.html)` + +`;const Us="form-associated-proxy";const js="ElementInternals";const _s=js in window&&"setFormValue"in window[js].prototype;const Ks=new WeakMap;function Ws(e){const t=class extends e{constructor(...e){super(...e);this.dirtyValue=false;this.disabled=false;this.proxyEventsToBlock=["change","click"];this.proxyInitialized=false;this.required=false;this.initialValue=this.initialValue||"";if(!this.elementInternals){this.formResetCallback=this.formResetCallback.bind(this)}}static get formAssociated(){return _s}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals){return Object.freeze(Array.from(this.elementInternals.labels))}else if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const e=this.proxy.labels;const t=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`));const i=e?t.concat(Array.from(e)):t;return Object.freeze(i)}else{return s.emptyArray}}valueChanged(e,t){this.dirtyValue=true;if(this.proxy instanceof HTMLElement){this.proxy.value=this.value}this.currentValue=this.value;this.setFormValue(this.value);this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(e,t){if(!this.dirtyValue){this.value=this.initialValue;this.dirtyValue=false}}disabledChanged(e,t){if(this.proxy instanceof HTMLElement){this.proxy.disabled=this.disabled}s.DOM.queueUpdate((()=>this.classList.toggle("disabled",this.disabled)))}nameChanged(e,t){if(this.proxy instanceof HTMLElement){this.proxy.name=this.name}}requiredChanged(e,t){if(this.proxy instanceof HTMLElement){this.proxy.required=this.required}s.DOM.queueUpdate((()=>this.classList.toggle("required",this.required)));this.validate()}get elementInternals(){if(!_s){return null}let e=Ks.get(this);if(!e){e=this.attachInternals();Ks.set(this,e)}return e}connectedCallback(){super.connectedCallback();this.addEventListener("keypress",this._keypressHandler);if(!this.value){this.value=this.initialValue;this.dirtyValue=false}if(!this.elementInternals){this.attachProxy();if(this.form){this.form.addEventListener("reset",this.formResetCallback)}}}disconnectedCallback(){super.disconnectedCallback();this.proxyEventsToBlock.forEach((e=>this.proxy.removeEventListener(e,this.stopPropagation)));if(!this.elementInternals&&this.form){this.form.removeEventListener("reset",this.formResetCallback)}}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(e,t,i){if(this.elementInternals){this.elementInternals.setValidity(e,t,i)}else if(typeof t==="string"){this.proxy.setCustomValidity(t)}}formDisabledCallback(e){this.disabled=e}formResetCallback(){this.value=this.initialValue;this.dirtyValue=false}attachProxy(){var e;if(!this.proxyInitialized){this.proxyInitialized=true;this.proxy.style.display="none";this.proxyEventsToBlock.forEach((e=>this.proxy.addEventListener(e,this.stopPropagation)));this.proxy.disabled=this.disabled;this.proxy.required=this.required;if(typeof this.name==="string"){this.proxy.name=this.name}if(typeof this.value==="string"){this.proxy.value=this.value}this.proxy.setAttribute("slot",Us);this.proxySlot=document.createElement("slot");this.proxySlot.setAttribute("name",Us)}(e=this.shadowRoot)===null||e===void 0?void 0:e.appendChild(this.proxySlot);this.appendChild(this.proxy)}detachProxy(){var e;this.removeChild(this.proxy);(e=this.shadowRoot)===null||e===void 0?void 0:e.removeChild(this.proxySlot)}validate(e){if(this.proxy instanceof HTMLElement){this.setValidity(this.proxy.validity,this.proxy.validationMessage,e)}}setFormValue(e,t){if(this.elementInternals){this.elementInternals.setFormValue(e,t||e)}}_keypressHandler(e){switch(e.key){case ze.Mm:if(this.form instanceof HTMLFormElement){const e=this.form.querySelector("[type=submit]");e===null||e===void 0?void 0:e.click()}break}}stopPropagation(e){e.stopPropagation()}};(0,s.attr)({mode:"boolean"})(t.prototype,"disabled");(0,s.attr)({mode:"fromView",attribute:"value"})(t.prototype,"initialValue");(0,s.attr)({attribute:"current-value"})(t.prototype,"currentValue");(0,s.attr)(t.prototype,"name");(0,s.attr)({mode:"boolean"})(t.prototype,"required");(0,s.observable)(t.prototype,"value");return t}function Gs(e){class t extends(Ws(e)){}class i extends t{constructor(...e){super(e);this.dirtyChecked=false;this.checkedAttribute=false;this.checked=false;this.dirtyChecked=false}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){if(!this.dirtyChecked){this.checked=this.defaultChecked;this.dirtyChecked=false}}checkedChanged(e,t){if(!this.dirtyChecked){this.dirtyChecked=true}this.currentChecked=this.checked;this.updateForm();if(this.proxy instanceof HTMLInputElement){this.proxy.checked=this.checked}if(e!==undefined){this.$emit("change")}this.validate()}currentCheckedChanged(e,t){this.checked=this.currentChecked}updateForm(){const e=this.checked?this.value:null;this.setFormValue(e,e)}connectedCallback(){super.connectedCallback();this.updateForm()}formResetCallback(){super.formResetCallback();this.checked=!!this.checkedAttribute;this.dirtyChecked=false}}(0,s.attr)({attribute:"checked",mode:"boolean"})(i.prototype,"checkedAttribute");(0,s.attr)({attribute:"current-checked",converter:s.booleanConverter})(i.prototype,"currentChecked");(0,s.observable)(i.prototype,"defaultChecked");(0,s.observable)(i.prototype,"checked");return i}class Xs extends Fe{}class Ys extends(Ws(Xs)){constructor(){super(...arguments);this.proxy=document.createElement("input")}}class Qs extends Ys{constructor(){super(...arguments);this.handleClick=e=>{var t;if(this.disabled&&((t=this.defaultSlottedContent)===null||t===void 0?void 0:t.length)<=1){e.stopPropagation()}};this.handleSubmission=()=>{if(!this.form){return}const e=this.proxy.isConnected;if(!e){this.attachProxy()}typeof this.form.requestSubmit==="function"?this.form.requestSubmit(this.proxy):this.proxy.click();if(!e){this.detachProxy()}};this.handleFormReset=()=>{var e;(e=this.form)===null||e===void 0?void 0:e.reset()};this.handleUnsupportedDelegatesFocus=()=>{var e;if(window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&((e=this.$fastController.definition.shadowOptions)===null||e===void 0?void 0:e.delegatesFocus)){this.focus=()=>{this.control.focus()}}}}formactionChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.formAction=this.formaction}}formenctypeChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.formEnctype=this.formenctype}}formmethodChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.formMethod=this.formmethod}}formnovalidateChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.formNoValidate=this.formnovalidate}}formtargetChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.formTarget=this.formtarget}}typeChanged(e,t){if(this.proxy instanceof HTMLInputElement){this.proxy.type=this.type}t==="submit"&&this.addEventListener("click",this.handleSubmission);e==="submit"&&this.removeEventListener("click",this.handleSubmission);t==="reset"&&this.addEventListener("click",this.handleFormReset);e==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var e;super.connectedCallback();this.proxy.setAttribute("type",this.type);this.handleUnsupportedDelegatesFocus();const t=Array.from((e=this.control)===null||e===void 0?void 0:e.children);if(t){t.forEach((e=>{e.addEventListener("click",this.handleClick)}))}}disconnectedCallback(){var e;super.disconnectedCallback();const t=Array.from((e=this.control)===null||e===void 0?void 0:e.children);if(t){t.forEach((e=>{e.removeEventListener("click",this.handleClick)}))}}}f([(0,s.attr)({mode:"boolean"})],Qs.prototype,"autofocus",void 0);f([(0,s.attr)({attribute:"form"})],Qs.prototype,"formId",void 0);f([s.attr],Qs.prototype,"formaction",void 0);f([s.attr],Qs.prototype,"formenctype",void 0);f([s.attr],Qs.prototype,"formmethod",void 0);f([(0,s.attr)({mode:"boolean"})],Qs.prototype,"formnovalidate",void 0);f([s.attr],Qs.prototype,"formtarget",void 0);f([s.attr],Qs.prototype,"type",void 0);f([s.observable],Qs.prototype,"defaultSlottedContent",void 0);class Zs{}f([(0,s.attr)({attribute:"aria-expanded"})],Zs.prototype,"ariaExpanded",void 0);f([(0,s.attr)({attribute:"aria-pressed"})],Zs.prototype,"ariaPressed",void 0);Pe(Zs,je);Pe(Qs,o,Zs);class Js{constructor(e){this.dayFormat="numeric";this.weekdayFormat="long";this.monthFormat="long";this.yearFormat="numeric";this.date=new Date;if(e){for(const t in e){const i=e[t];if(t==="date"){this.date=this.getDateObject(i)}else{this[t]=i}}}}getDateObject(e){if(typeof e==="string"){const t=e.split(/[/-]/);if(t.length<3){return new Date}return new Date(parseInt(t[2],10),parseInt(t[0],10)-1,parseInt(t[1],10))}else if("day"in e&&"month"in e&&"year"in e){const{day:t,month:i,year:s}=e;return new Date(s,i-1,t)}return e}getDate(e=this.date,t={weekday:this.weekdayFormat,month:this.monthFormat,day:this.dayFormat,year:this.yearFormat},i=this.locale){const s=this.getDateObject(e);if(!s.getTime()){return""}const o=Object.assign({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},t);return new Intl.DateTimeFormat(i,o).format(s)}getDay(e=this.date.getDate(),t=this.dayFormat,i=this.locale){return this.getDate({month:1,day:e,year:2020},{day:t},i)}getMonth(e=this.date.getMonth()+1,t=this.monthFormat,i=this.locale){return this.getDate({month:e,day:2,year:2020},{month:t},i)}getYear(e=this.date.getFullYear(),t=this.yearFormat,i=this.locale){return this.getDate({month:2,day:2,year:e},{year:t},i)}getWeekday(e=0,t=this.weekdayFormat,i=this.locale){const s=`1-${e+1}-2017`;return this.getDate(s,{weekday:t},i)}getWeekdays(e=this.weekdayFormat,t=this.locale){return Array(7).fill(null).map(((i,s)=>this.getWeekday(s,e,t)))}}class eo extends Fe{constructor(){super(...arguments);this.dateFormatter=new Js;this.readonly=false;this.locale="en-US";this.month=(new Date).getMonth()+1;this.year=(new Date).getFullYear();this.dayFormat="numeric";this.weekdayFormat="short";this.monthFormat="long";this.yearFormat="numeric";this.minWeeks=0;this.disabledDates="";this.selectedDates="";this.oneDayInMs=864e5}localeChanged(){this.dateFormatter.locale=this.locale}dayFormatChanged(){this.dateFormatter.dayFormat=this.dayFormat}weekdayFormatChanged(){this.dateFormatter.weekdayFormat=this.weekdayFormat}monthFormatChanged(){this.dateFormatter.monthFormat=this.monthFormat}yearFormatChanged(){this.dateFormatter.yearFormat=this.yearFormat}getMonthInfo(e=this.month,t=this.year){const i=e=>new Date(e.getFullYear(),e.getMonth(),1).getDay();const s=e=>{const t=new Date(e.getFullYear(),e.getMonth()+1,1);return new Date(t.getTime()-this.oneDayInMs).getDate()};const o=new Date(t,e-1);const n=new Date(t,e);const r=new Date(t,e-2);return{length:s(o),month:e,start:i(o),year:t,previous:{length:s(r),month:r.getMonth()+1,start:i(r),year:r.getFullYear()},next:{length:s(n),month:n.getMonth()+1,start:i(n),year:n.getFullYear()}}}getDays(e=this.getMonthInfo(),t=this.minWeeks){t=t>10?10:t;const{start:i,length:s,previous:o,next:n}=e;const r=[];let a=1-i;while(as?n:e;const l=a<1?o.length+a:a>s?a-s:a;const d=`${t}-${l}-${i}`;const h=this.dateInString(d,this.disabledDates);const c=this.dateInString(d,this.selectedDates);const u={day:l,month:t,year:i,disabled:h,selected:c};const p=r[r.length-1];if(r.length===0||p.length%7===0){r.push([u])}else{p.push(u)}a++}return r}dateInString(e,t){const i=t.split(",").map((e=>e.trim()));e=typeof e==="string"?e:`${e.getMonth()+1}-${e.getDate()}-${e.getFullYear()}`;return i.some((t=>t===e))}getDayClassNames(e,t){const{day:i,month:s,year:o,disabled:n,selected:r}=e;const a=t===`${s}-${i}-${o}`;const l=this.month!==s;return["day",a&&"today",l&&"inactive",n&&"disabled",r&&"selected"].filter(Boolean).join(" ")}getWeekdayText(){const e=this.dateFormatter.getWeekdays().map((e=>({text:e})));if(this.weekdayFormat!=="long"){const t=this.dateFormatter.getWeekdays("long");e.forEach(((e,i)=>{e.abbr=t[i]}))}return e}handleDateSelect(e,t){e.preventDefault;this.$emit("dateselected",t)}handleKeydown(e,t){if(e.key===ze.Mm){this.handleDateSelect(e,t)}return true}}f([(0,s.attr)({mode:"boolean"})],eo.prototype,"readonly",void 0);f([s.attr],eo.prototype,"locale",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],eo.prototype,"month",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],eo.prototype,"year",void 0);f([(0,s.attr)({attribute:"day-format",mode:"fromView"})],eo.prototype,"dayFormat",void 0);f([(0,s.attr)({attribute:"weekday-format",mode:"fromView"})],eo.prototype,"weekdayFormat",void 0);f([(0,s.attr)({attribute:"month-format",mode:"fromView"})],eo.prototype,"monthFormat",void 0);f([(0,s.attr)({attribute:"year-format",mode:"fromView"})],eo.prototype,"yearFormat",void 0);f([(0,s.attr)({attribute:"min-weeks",converter:s.nullableNumberConverter})],eo.prototype,"minWeeks",void 0);f([(0,s.attr)({attribute:"disabled-dates"})],eo.prototype,"disabledDates",void 0);f([(0,s.attr)({attribute:"selected-dates"})],eo.prototype,"selectedDates",void 0);const to={none:"none",default:"default",sticky:"sticky"};const io={default:"default",columnHeader:"columnheader",rowHeader:"rowheader"};const so={default:"default",header:"header",stickyHeader:"sticky-header"};const oo=(0,s.html)` + +`;const no=(0,s.html)` + +`;class ro extends Fe{constructor(){super(...arguments);this.cellType=io.default;this.rowData=null;this.columnDefinition=null;this.isActiveCell=false;this.customCellView=null;this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){if(this.$fastController.isConnected){this.updateCellView()}}gridColumnChanged(){if(this.$fastController.isConnected){this.updateCellStyle()}}columnDefinitionChanged(e,t){if(this.$fastController.isConnected){this.updateCellView()}}connectedCallback(){var e;super.connectedCallback();this.addEventListener(zt,this.handleFocusin);this.addEventListener(Nt,this.handleFocusout);this.addEventListener(Yt,this.handleKeydown);this.style.gridColumn=`${((e=this.columnDefinition)===null||e===void 0?void 0:e.gridColumn)===undefined?0:this.columnDefinition.gridColumn}`;this.updateCellView();this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback();this.removeEventListener(zt,this.handleFocusin);this.removeEventListener(Nt,this.handleFocusout);this.removeEventListener(Yt,this.handleKeydown);this.disconnectCellView()}handleFocusin(e){if(this.isActiveCell){return}this.isActiveCell=true;switch(this.cellType){case io.columnHeader:if(this.columnDefinition!==null&&this.columnDefinition.headerCellInternalFocusQueue!==true&&typeof this.columnDefinition.headerCellFocusTargetCallback==="function"){const e=this.columnDefinition.headerCellFocusTargetCallback(this);if(e!==null){e.focus()}}break;default:if(this.columnDefinition!==null&&this.columnDefinition.cellInternalFocusQueue!==true&&typeof this.columnDefinition.cellFocusTargetCallback==="function"){const e=this.columnDefinition.cellFocusTargetCallback(this);if(e!==null){e.focus()}}break}this.$emit("cell-focused",this)}handleFocusout(e){if(this!==document.activeElement&&!this.contains(document.activeElement)){this.isActiveCell=false}}handleKeydown(e){if(e.defaultPrevented||this.columnDefinition===null||this.cellType===io.default&&this.columnDefinition.cellInternalFocusQueue!==true||this.cellType===io.columnHeader&&this.columnDefinition.headerCellInternalFocusQueue!==true){return}switch(e.key){case ze.Mm:case ze.Ac:if(this.contains(document.activeElement)&&document.activeElement!==this){return}switch(this.cellType){case io.columnHeader:if(this.columnDefinition.headerCellFocusTargetCallback!==undefined){const t=this.columnDefinition.headerCellFocusTargetCallback(this);if(t!==null){t.focus()}e.preventDefault()}break;default:if(this.columnDefinition.cellFocusTargetCallback!==undefined){const t=this.columnDefinition.cellFocusTargetCallback(this);if(t!==null){t.focus()}e.preventDefault()}break}break;case ze.F9:if(this.contains(document.activeElement)&&document.activeElement!==this){this.focus();e.preventDefault()}break}}updateCellView(){this.disconnectCellView();if(this.columnDefinition===null){return}switch(this.cellType){case io.columnHeader:if(this.columnDefinition.headerCellTemplate!==undefined){this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this)}else{this.customCellView=no.render(this,this)}break;case undefined:case io.rowHeader:case io.default:if(this.columnDefinition.cellTemplate!==undefined){this.customCellView=this.columnDefinition.cellTemplate.render(this,this)}else{this.customCellView=oo.render(this,this)}break}}disconnectCellView(){if(this.customCellView!==null){this.customCellView.dispose();this.customCellView=null}}}f([(0,s.attr)({attribute:"cell-type"})],ro.prototype,"cellType",void 0);f([(0,s.attr)({attribute:"grid-column"})],ro.prototype,"gridColumn",void 0);f([s.observable],ro.prototype,"rowData",void 0);f([s.observable],ro.prototype,"columnDefinition",void 0);class ao extends Fe{constructor(){super(...arguments);this.rowType=so.default;this.rowData=null;this.columnDefinitions=null;this.isActiveRow=false;this.cellsRepeatBehavior=null;this.cellsPlaceholder=null;this.focusColumnIndex=0;this.refocusOnLoad=false;this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){if(this.$fastController.isConnected){this.updateRowStyle()}}rowTypeChanged(){if(this.$fastController.isConnected){this.updateItemTemplate()}}rowDataChanged(){if(this.rowData!==null&&this.isActiveRow){this.refocusOnLoad=true;return}}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback();if(this.cellsRepeatBehavior===null){this.cellsPlaceholder=document.createComment("");this.appendChild(this.cellsPlaceholder);this.updateItemTemplate();this.cellsRepeatBehavior=new s.RepeatDirective((e=>e.columnDefinitions),(e=>e.activeCellItemTemplate),{positioning:true}).createBehavior(this.cellsPlaceholder);this.$fastController.addBehaviors([this.cellsRepeatBehavior])}this.addEventListener("cell-focused",this.handleCellFocus);this.addEventListener(Nt,this.handleFocusout);this.addEventListener(Yt,this.handleKeydown);this.updateRowStyle();if(this.refocusOnLoad){this.refocusOnLoad=false;if(this.cellElements.length>this.focusColumnIndex){this.cellElements[this.focusColumnIndex].focus()}}}disconnectedCallback(){super.disconnectedCallback();this.removeEventListener("cell-focused",this.handleCellFocus);this.removeEventListener(Nt,this.handleFocusout);this.removeEventListener(Yt,this.handleKeydown)}handleFocusout(e){if(!this.contains(e.target)){this.isActiveRow=false;this.focusColumnIndex=0}}handleCellFocus(e){this.isActiveRow=true;this.focusColumnIndex=this.cellElements.indexOf(e.target);this.$emit("row-focused",this)}handleKeydown(e){if(e.defaultPrevented){return}let t=0;switch(e.key){case ze.kT:t=Math.max(0,this.focusColumnIndex-1);this.cellElements[t].focus();e.preventDefault();break;case ze.bb:t=Math.min(this.cellElements.length-1,this.focusColumnIndex+1);this.cellElements[t].focus();e.preventDefault();break;case ze.Tg:if(!e.ctrlKey){this.cellElements[0].focus();e.preventDefault()}break;case ze.FM:if(!e.ctrlKey){this.cellElements[this.cellElements.length-1].focus();e.preventDefault()}break}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===so.default&&this.cellItemTemplate!==undefined?this.cellItemTemplate:this.rowType===so.default&&this.cellItemTemplate===undefined?this.defaultCellItemTemplate:this.headerCellItemTemplate!==undefined?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}}f([(0,s.attr)({attribute:"grid-template-columns"})],ao.prototype,"gridTemplateColumns",void 0);f([(0,s.attr)({attribute:"row-type"})],ao.prototype,"rowType",void 0);f([s.observable],ao.prototype,"rowData",void 0);f([s.observable],ao.prototype,"columnDefinitions",void 0);f([s.observable],ao.prototype,"cellItemTemplate",void 0);f([s.observable],ao.prototype,"headerCellItemTemplate",void 0);f([s.observable],ao.prototype,"rowIndex",void 0);f([s.observable],ao.prototype,"isActiveRow",void 0);f([s.observable],ao.prototype,"activeCellItemTemplate",void 0);f([s.observable],ao.prototype,"defaultCellItemTemplate",void 0);f([s.observable],ao.prototype,"defaultHeaderCellItemTemplate",void 0);f([s.observable],ao.prototype,"cellElements",void 0);class lo extends Fe{constructor(){super();this.noTabbing=false;this.generateHeader=to.default;this.rowsData=[];this.columnDefinitions=null;this.focusRowIndex=0;this.focusColumnIndex=0;this.rowsPlaceholder=null;this.generatedHeader=null;this.isUpdatingFocus=false;this.pendingFocusUpdate=false;this.rowindexUpdateQueued=false;this.columnDefinitionsStale=true;this.generatedGridTemplateColumns="";this.focusOnCell=(e,t,i)=>{if(this.rowElements.length===0){this.focusRowIndex=0;this.focusColumnIndex=0;return}const s=Math.max(0,Math.min(this.rowElements.length-1,e));const o=this.rowElements[s];const n=o.querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]');const r=Math.max(0,Math.min(n.length-1,t));const a=n[r];if(i&&this.scrollHeight!==this.clientHeight&&(s0||s>this.focusRowIndex&&this.scrollTop{if(e&&e.length){e.forEach((e=>{e.addedNodes.forEach((e=>{if(e.nodeType===1&&e.getAttribute("role")==="row"){e.columnDefinitions=this.columnDefinitions}}))}));this.queueRowIndexUpdate()}};this.queueRowIndexUpdate=()=>{if(!this.rowindexUpdateQueued){this.rowindexUpdateQueued=true;s.DOM.queueUpdate(this.updateRowIndexes)}};this.updateRowIndexes=()=>{let e=this.gridTemplateColumns;if(e===undefined){if(this.generatedGridTemplateColumns===""&&this.rowElements.length>0){const e=this.rowElements[0];this.generatedGridTemplateColumns=new Array(e.cellElements.length).fill("1fr").join(" ")}e=this.generatedGridTemplateColumns}this.rowElements.forEach(((t,i)=>{const s=t;s.rowIndex=i;s.gridTemplateColumns=e;if(this.columnDefinitionsStale){s.columnDefinitions=this.columnDefinitions}}));this.rowindexUpdateQueued=false;this.columnDefinitionsStale=false}}static generateTemplateColumns(e){let t="";e.forEach((e=>{t=`${t}${t===""?"":" "}${"1fr"}`}));return t}noTabbingChanged(){if(this.$fastController.isConnected){if(this.noTabbing){this.setAttribute("tabIndex","-1")}else{this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0")}}}generateHeaderChanged(){if(this.$fastController.isConnected){this.toggleGeneratedHeader()}}gridTemplateColumnsChanged(){if(this.$fastController.isConnected){this.updateRowIndexes()}}rowsDataChanged(){if(this.columnDefinitions===null&&this.rowsData.length>0){this.columnDefinitions=lo.generateColumns(this.rowsData[0])}if(this.$fastController.isConnected){this.toggleGeneratedHeader()}}columnDefinitionsChanged(){if(this.columnDefinitions===null){this.generatedGridTemplateColumns="";return}this.generatedGridTemplateColumns=lo.generateTemplateColumns(this.columnDefinitions);if(this.$fastController.isConnected){this.columnDefinitionsStale=true;this.queueRowIndexUpdate()}}headerCellItemTemplateChanged(){if(this.$fastController.isConnected){if(this.generatedHeader!==null){this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate}}}focusRowIndexChanged(){if(this.$fastController.isConnected){this.queueFocusUpdate()}}focusColumnIndexChanged(){if(this.$fastController.isConnected){this.queueFocusUpdate()}}connectedCallback(){super.connectedCallback();if(this.rowItemTemplate===undefined){this.rowItemTemplate=this.defaultRowItemTemplate}this.rowsPlaceholder=document.createComment("");this.appendChild(this.rowsPlaceholder);this.toggleGeneratedHeader();this.rowsRepeatBehavior=new s.RepeatDirective((e=>e.rowsData),(e=>e.rowItemTemplate),{positioning:true}).createBehavior(this.rowsPlaceholder);this.$fastController.addBehaviors([this.rowsRepeatBehavior]);this.addEventListener("row-focused",this.handleRowFocus);this.addEventListener(Vt,this.handleFocus);this.addEventListener(Yt,this.handleKeydown);this.addEventListener(Nt,this.handleFocusOut);this.observer=new MutationObserver(this.onChildListChange);this.observer.observe(this,{childList:true});if(this.noTabbing){this.setAttribute("tabindex","-1")}s.DOM.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback();this.removeEventListener("row-focused",this.handleRowFocus);this.removeEventListener(Vt,this.handleFocus);this.removeEventListener(Yt,this.handleKeydown);this.removeEventListener(Nt,this.handleFocusOut);this.observer.disconnect();this.rowsPlaceholder=null;this.generatedHeader=null}handleRowFocus(e){this.isUpdatingFocus=true;const t=e.target;this.focusRowIndex=this.rowElements.indexOf(t);this.focusColumnIndex=t.focusColumnIndex;this.setAttribute("tabIndex","-1");this.isUpdatingFocus=false}handleFocus(e){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,true)}handleFocusOut(e){if(e.relatedTarget===null||!this.contains(e.relatedTarget)){this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}}handleKeydown(e){if(e.defaultPrevented){return}let t;const i=this.rowElements.length-1;const s=this.offsetHeight+this.scrollTop;const o=this.rowElements[i];switch(e.key){case ze.I5:e.preventDefault();this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,true);break;case ze.HX:e.preventDefault();this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,true);break;case ze.oK:e.preventDefault();if(this.rowElements.length===0){this.focusOnCell(0,0,false);break}if(this.focusRowIndex===0){this.focusOnCell(0,this.focusColumnIndex,false);return}t=this.focusRowIndex-1;for(t;t>=0;t--){const e=this.rowElements[t];if(e.offsetTop=i||o.offsetTop+o.offsetHeight<=s){this.focusOnCell(i,this.focusColumnIndex,false);return}t=this.focusRowIndex+1;for(t;t<=i;t++){const e=this.rowElements[t];if(e.offsetTop+e.offsetHeight>s){let t=0;if(this.generateHeader===to.sticky&&this.generatedHeader!==null){t=this.generatedHeader.clientHeight}this.scrollTop=e.offsetTop-t;break}}this.focusOnCell(t,this.focusColumnIndex,false);break;case ze.Tg:if(e.ctrlKey){e.preventDefault();this.focusOnCell(0,0,true)}break;case ze.FM:if(e.ctrlKey&&this.columnDefinitions!==null){e.preventDefault();this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,true)}break}}queueFocusUpdate(){if(this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)){return}if(this.pendingFocusUpdate===false){this.pendingFocusUpdate=true;s.DOM.queueUpdate((()=>this.updateFocus()))}}updateFocus(){this.pendingFocusUpdate=false;this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,true)}toggleGeneratedHeader(){if(this.generatedHeader!==null){this.removeChild(this.generatedHeader);this.generatedHeader=null}if(this.generateHeader!==to.none&&this.rowsData.length>0){const e=document.createElement(this.rowElementTag);this.generatedHeader=e;this.generatedHeader.columnDefinitions=this.columnDefinitions;this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns;this.generatedHeader.rowType=this.generateHeader===to.sticky?so.stickyHeader:so.header;if(this.firstChild!==null||this.rowsPlaceholder!==null){this.insertBefore(e,this.firstChild!==null?this.firstChild:this.rowsPlaceholder)}return}}}lo.generateColumns=e=>Object.getOwnPropertyNames(e).map(((e,t)=>({columnDataKey:e,gridColumn:`${t}`})));f([(0,s.attr)({attribute:"no-tabbing",mode:"boolean"})],lo.prototype,"noTabbing",void 0);f([(0,s.attr)({attribute:"generate-header"})],lo.prototype,"generateHeader",void 0);f([(0,s.attr)({attribute:"grid-template-columns"})],lo.prototype,"gridTemplateColumns",void 0);f([s.observable],lo.prototype,"rowsData",void 0);f([s.observable],lo.prototype,"columnDefinitions",void 0);f([s.observable],lo.prototype,"rowItemTemplate",void 0);f([s.observable],lo.prototype,"cellItemTemplate",void 0);f([s.observable],lo.prototype,"headerCellItemTemplate",void 0);f([s.observable],lo.prototype,"focusRowIndex",void 0);f([s.observable],lo.prototype,"focusColumnIndex",void 0);f([s.observable],lo.prototype,"defaultRowItemTemplate",void 0);f([s.observable],lo.prototype,"rowElementTag",void 0);f([s.observable],lo.prototype,"rowElements",void 0);const ho=(0,s.html)` +
+ + ${e=>e.dateFormatter.getMonth(e.month)} + + ${e=>e.dateFormatter.getYear(e.year)} +
+`;const co=e=>{const t=e.tagFor(ro);return(0,s.html)` + <${t} + class="week-day" + part="week-day" + tabindex="-1" + grid-column="${(e,t)=>t.index+1}" + abbr="${e=>e.abbr}" + > + ${e=>e.text} + + `};const uo=(e,t)=>{const i=e.tagFor(ro);return(0,s.html)` + <${i} + class="${(e,i)=>i.parentContext.parent.getDayClassNames(e,t)}" + part="day" + tabindex="-1" + role="gridcell" + grid-column="${(e,t)=>t.index+1}" + @click="${(e,t)=>t.parentContext.parent.handleDateSelect(t.event,e)}" + @keydown="${(e,t)=>t.parentContext.parent.handleKeydown(t.event,e)}" + aria-label="${(e,t)=>t.parentContext.parent.dateFormatter.getDate(`${e.month}-${e.day}-${e.year}`,{month:"long",day:"numeric"})}" + > +
+ ${(e,t)=>t.parentContext.parent.dateFormatter.getDay(e.day)} +
+ + + `};const po=(e,t)=>{const i=e.tagFor(ao);return(0,s.html)` + <${i} + class="week" + part="week" + role="row" + role-type="default" + grid-template-columns="1fr 1fr 1fr 1fr 1fr 1fr 1fr" + > + ${(0,s.repeat)((e=>e),uo(e,t),{positioning:true})} + + `};const fo=(e,t)=>{const i=e.tagFor(lo);const o=e.tagFor(ao);return(0,s.html)` + <${i} class="days interact" part="days" generate-header="none"> + <${o} + class="week-days" + part="week-days" + role="row" + row-type="header" + grid-template-columns="1fr 1fr 1fr 1fr 1fr 1fr 1fr" + > + ${(0,s.repeat)((e=>e.getWeekdayText()),co(e),{positioning:true})} + + ${(0,s.repeat)((e=>e.getDays()),po(e,t))} + +`};const mo=e=>(0,s.html)` +
+
+ ${(0,s.repeat)((e=>e.getWeekdayText()),(0,s.html)` +
+ ${e=>e.text} +
+ `)} +
+ ${(0,s.repeat)((e=>e.getDays()),(0,s.html)` +
+ ${(0,s.repeat)((e=>e),(0,s.html)` +
+
+ ${(e,t)=>t.parentContext.parent.dateFormatter.getDay(e.day)} +
+ +
+ `)} +
+ `)} +
+ `;const vo=(e,t)=>{var i;const o=new Date;const n=`${o.getMonth()+1}-${o.getDate()}-${o.getFullYear()}`;return(0,s.html)` + + `};const bo=(e,t)=>(0,s.html)` + +`;class go extends Fe{}const yo=(e,t)=>(0,s.html)` + +`;class Co extends Fe{}class xo extends(Gs(Co)){constructor(){super(...arguments);this.proxy=document.createElement("input")}}class wo extends xo{constructor(){super();this.initialValue="on";this.indeterminate=false;this.keypressHandler=e=>{if(this.readOnly){return}switch(e.key){case ze.gG:if(this.indeterminate){this.indeterminate=false}this.checked=!this.checked;break}};this.clickHandler=e=>{if(!this.disabled&&!this.readOnly){if(this.indeterminate){this.indeterminate=false}this.checked=!this.checked}};this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.readOnly=this.readOnly}}}f([(0,s.attr)({attribute:"readonly",mode:"boolean"})],wo.prototype,"readOnly",void 0);f([s.observable],wo.prototype,"defaultSlottedNodes",void 0);f([s.observable],wo.prototype,"indeterminate",void 0);let $o=0;function Io(e=""){return`${e}${$o++}`}function ko(e,...t){return e.replace(/{(\d+)}/g,(function(e,i){if(i>=t.length){return e}const s=t[i];if(typeof s!=="number"&&!s){return""}return s}))}function Oo(e,t,i=0){if(!e||!t){return false}return e.substr(i,t.length)===t}function To(e){return!e||!e.trim()}function Eo(e){let t=`${e}`.replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(/^\s+|\s+$|\s+(?=\s)/g,"").replace(new RegExp(/\s+(.)(\w*)/,"g"),((e,t,i)=>`${t.toUpperCase()+i.toLowerCase()}`)).replace(new RegExp(/\w/),(e=>e.toUpperCase()));let i=0;for(let s=0;s1){t=`${t.charAt(0).toUpperCase()}${t.slice(1,i-1).toLowerCase()}`+t.slice(i-1)}return t}function Ro(e){const t=`${e.charAt(0).toLowerCase()}${e.slice(1)}`;return t.replace(/([A-Z]|[0-9])/g,(function(e,t){return`-${t.toLowerCase()}`}))}function Do(e,t){let i=e.length;while(i--){if(t(e[i],i,e)){return i}}return-1}function So(){return!!(typeof window!=="undefined"&&window.document&&window.document.createElement)}function Ao(...e){return e.every((e=>e instanceof HTMLElement))}function Fo(e,t){if(!e||!t||!Ao(e)){return}const i=Array.from(e.querySelectorAll(t));return i.filter((e=>e.offsetParent!==null))}function Lo(e){return e===null?null:e.which||e.keyCode||e.charCode}function Mo(){const e=document.querySelector('meta[property="csp-nonce"]');if(e){return e.getAttribute("content")}else{return null}}let Po;function Ho(){if(typeof Po==="boolean"){return Po}if(!So()){Po=false;return Po}const e=document.createElement("style");const t=Mo();if(t!==null){e.setAttribute("nonce",t)}document.head.appendChild(e);try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0);Po=true}catch(i){Po=false}finally{document.head.removeChild(e)}return Po}let Vo;function zo(){if(typeof Vo==="boolean"){return Vo}try{Vo=CSS.supports("display","grid")}catch(e){Vo=false}return Vo}function No(){return canUseDOM()&&(window.matchMedia("(forced-colors: none)").matches||window.matchMedia("(forced-colors: active)").matches)}function Bo(){Vo=undefined;Po=undefined}const qo=null&&No;function Uo(e){return Ao(e)&&(e.getAttribute("role")==="option"||e instanceof HTMLOptionElement)}class jo extends Fe{constructor(e,t,i,s){super();this.defaultSelected=false;this.dirtySelected=false;this.selected=this.defaultSelected;this.dirtyValue=false;if(e){this.textContent=e}if(t){this.initialValue=t}if(i){this.defaultSelected=i}if(s){this.selected=s}this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected);this.proxy.disabled=this.disabled}checkedChanged(e,t){if(typeof t==="boolean"){this.ariaChecked=t?"true":"false";return}this.ariaChecked=null}contentChanged(e,t){if(this.proxy instanceof HTMLOptionElement){this.proxy.textContent=this.textContent}this.$emit("contentchange",null,{bubbles:true})}defaultSelectedChanged(){if(!this.dirtySelected){this.selected=this.defaultSelected;if(this.proxy instanceof HTMLOptionElement){this.proxy.selected=this.defaultSelected}}}disabledChanged(e,t){this.ariaDisabled=this.disabled?"true":"false";if(this.proxy instanceof HTMLOptionElement){this.proxy.disabled=this.disabled}}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute;if(this.proxy instanceof HTMLOptionElement){this.proxy.defaultSelected=this.defaultSelected}}selectedChanged(){this.ariaSelected=this.selected?"true":"false";if(!this.dirtySelected){this.dirtySelected=true}if(this.proxy instanceof HTMLOptionElement){this.proxy.selected=this.selected}}initialValueChanged(e,t){if(!this.dirtyValue){this.value=this.initialValue;this.dirtyValue=false}}get label(){var e;return(e=this.value)!==null&&e!==void 0?e:this.text}get text(){var e,t;return(t=(e=this.textContent)===null||e===void 0?void 0:e.replace(/\s+/g," ").trim())!==null&&t!==void 0?t:""}set value(e){const t=`${e!==null&&e!==void 0?e:""}`;this._value=t;this.dirtyValue=true;if(this.proxy instanceof HTMLOptionElement){this.proxy.value=t}s.Observable.notify(this,"value")}get value(){var e;s.Observable.track(this,"value");return(e=this._value)!==null&&e!==void 0?e:this.text}get form(){return this.proxy?this.proxy.form:null}}f([s.observable],jo.prototype,"checked",void 0);f([s.observable],jo.prototype,"content",void 0);f([s.observable],jo.prototype,"defaultSelected",void 0);f([(0,s.attr)({mode:"boolean"})],jo.prototype,"disabled",void 0);f([(0,s.attr)({attribute:"selected",mode:"boolean"})],jo.prototype,"selectedAttribute",void 0);f([s.observable],jo.prototype,"selected",void 0);f([(0,s.attr)({attribute:"value",mode:"fromView"})],jo.prototype,"initialValue",void 0);class _o{}f([s.observable],_o.prototype,"ariaChecked",void 0);f([s.observable],_o.prototype,"ariaPosInSet",void 0);f([s.observable],_o.prototype,"ariaSelected",void 0);f([s.observable],_o.prototype,"ariaSetSize",void 0);Pe(_o,je);Pe(jo,o,_o);class Ko extends Fe{constructor(){super(...arguments);this._options=[];this.selectedIndex=-1;this.selectedOptions=[];this.shouldSkipFocus=false;this.typeaheadBuffer="";this.typeaheadExpired=true;this.typeaheadTimeout=-1}get firstSelectedOption(){var e;return(e=this.selectedOptions[0])!==null&&e!==void 0?e:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every((e=>e.disabled))}get length(){var e,t;return(t=(e=this.options)===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:0}get options(){s.Observable.track(this,"options");return this._options}set options(e){this._options=e;s.Observable.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(e){this.typeaheadExpired=e}clickHandler(e){const t=e.target.closest(`option,[role=option]`);if(t&&!t.disabled){this.selectedIndex=this.options.indexOf(t);return true}}focusAndScrollOptionIntoView(e=this.firstSelectedOption){if(this.contains(document.activeElement)&&e!==null){e.focus();requestAnimationFrame((()=>{e.scrollIntoView({block:"nearest"})}))}}focusinHandler(e){if(!this.shouldSkipFocus&&e.target===e.currentTarget){this.setSelectedOptions();this.focusAndScrollOptionIntoView()}this.shouldSkipFocus=false}getTypeaheadMatches(){const e=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&");const t=new RegExp(`^${e}`,"gi");return this.options.filter((e=>e.text.trim().match(t)))}getSelectableIndex(e=this.selectedIndex,t){const i=e>t?-1:e!e&&!t.disabled&&i!e&&!t.disabled&&i>s?t:e),o);break}}return this.options.indexOf(o)}handleChange(e,t){switch(t){case"selected":{if(Ko.slottedOptionFilter(e)){this.selectedIndex=this.options.indexOf(e)}this.setSelectedOptions();break}}}handleTypeAhead(e){if(this.typeaheadTimeout){window.clearTimeout(this.typeaheadTimeout)}this.typeaheadTimeout=window.setTimeout((()=>this.typeaheadExpired=true),Ko.TYPE_AHEAD_TIMEOUT_MS);if(e.length>1){return}this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${e}`}keydownHandler(e){if(this.disabled){return true}this.shouldSkipFocus=false;const t=e.key;switch(t){case ze.Tg:{if(!e.shiftKey){e.preventDefault();this.selectFirstOption()}break}case ze.HX:{if(!e.shiftKey){e.preventDefault();this.selectNextOption()}break}case ze.I5:{if(!e.shiftKey){e.preventDefault();this.selectPreviousOption()}break}case ze.FM:{e.preventDefault();this.selectLastOption();break}case ze.J9:{this.focusAndScrollOptionIntoView();return true}case ze.Mm:case ze.F9:{return true}case ze.gG:{if(this.typeaheadExpired){return true}}default:{if(t.length===1){this.handleTypeAhead(`${t}`)}return true}}}mousedownHandler(e){this.shouldSkipFocus=!this.contains(document.activeElement);return true}multipleChanged(e,t){this.ariaMultiSelectable=t?"true":null}selectedIndexChanged(e,t){var i;if(!this.hasSelectableOptions){this.selectedIndex=-1;return}if(((i=this.options[this.selectedIndex])===null||i===void 0?void 0:i.disabled)&&typeof e==="number"){const i=this.getSelectableIndex(e,t);const s=i>-1?i:e;this.selectedIndex=s;if(t===s){this.selectedIndexChanged(t,s)}return}this.setSelectedOptions()}selectedOptionsChanged(e,t){var i;const o=t.filter(Ko.slottedOptionFilter);(i=this.options)===null||i===void 0?void 0:i.forEach((e=>{const t=s.Observable.getNotifier(e);t.unsubscribe(this,"selected");e.selected=o.includes(e);t.subscribe(this,"selected")}))}selectFirstOption(){var e,t;if(!this.disabled){this.selectedIndex=(t=(e=this.options)===null||e===void 0?void 0:e.findIndex((e=>!e.disabled)))!==null&&t!==void 0?t:-1}}selectLastOption(){if(!this.disabled){this.selectedIndex=Do(this.options,(e=>!e.disabled))}}selectNextOption(){if(!this.disabled&&this.selectedIndex0){this.selectedIndex=this.selectedIndex-1}}setDefaultSelectedOption(){var e,t;this.selectedIndex=(t=(e=this.options)===null||e===void 0?void 0:e.findIndex((e=>e.defaultSelected)))!==null&&t!==void 0?t:-1}setSelectedOptions(){var e,t,i;if((e=this.options)===null||e===void 0?void 0:e.length){this.selectedOptions=[this.options[this.selectedIndex]];this.ariaActiveDescendant=(i=(t=this.firstSelectedOption)===null||t===void 0?void 0:t.id)!==null&&i!==void 0?i:"";this.focusAndScrollOptionIntoView()}}slottedOptionsChanged(e,t){this.options=t.reduce(((e,t)=>{if(Uo(t)){e.push(t)}return e}),[]);const i=`${this.options.length}`;this.options.forEach(((e,t)=>{if(!e.id){e.id=Io("option-")}e.ariaPosInSet=`${t+1}`;e.ariaSetSize=i}));if(this.$fastController.isConnected){this.setSelectedOptions();this.setDefaultSelectedOption()}}typeaheadBufferChanged(e,t){if(this.$fastController.isConnected){const e=this.getTypeaheadMatches();if(e.length){const t=this.options.indexOf(e[0]);if(t>-1){this.selectedIndex=t}}this.typeaheadExpired=false}}}Ko.slottedOptionFilter=e=>Uo(e)&&!e.hidden;Ko.TYPE_AHEAD_TIMEOUT_MS=1e3;f([(0,s.attr)({mode:"boolean"})],Ko.prototype,"disabled",void 0);f([s.observable],Ko.prototype,"selectedIndex",void 0);f([s.observable],Ko.prototype,"selectedOptions",void 0);f([s.observable],Ko.prototype,"slottedOptions",void 0);f([s.observable],Ko.prototype,"typeaheadBuffer",void 0);class Wo{}f([s.observable],Wo.prototype,"ariaActiveDescendant",void 0);f([s.observable],Wo.prototype,"ariaDisabled",void 0);f([s.observable],Wo.prototype,"ariaExpanded",void 0);f([s.observable],Wo.prototype,"ariaMultiSelectable",void 0);Pe(Wo,je);Pe(Ko,Wo);const Go={above:"above",below:"below"};class Xo extends Ko{}class Yo extends(Ws(Xo)){constructor(){super(...arguments);this.proxy=document.createElement("input")}}const Qo={inline:"inline",list:"list",both:"both",none:"none"};class Zo extends Yo{constructor(){super(...arguments);this._value="";this.filteredOptions=[];this.filter="";this.forcedPosition=false;this.listboxId=Io("listbox-");this.maxHeight=0;this.open=false}formResetCallback(){super.formResetCallback();this.setDefaultSelectedOption();this.updateValue()}validate(){super.validate(this.control)}get isAutocompleteInline(){return this.autocomplete===Qo.inline||this.isAutocompleteBoth}get isAutocompleteList(){return this.autocomplete===Qo.list||this.isAutocompleteBoth}get isAutocompleteBoth(){return this.autocomplete===Qo.both}openChanged(){if(this.open){this.ariaControls=this.listboxId;this.ariaExpanded="true";this.setPositioning();this.focusAndScrollOptionIntoView();s.DOM.queueUpdate((()=>this.focus()));return}this.ariaControls="";this.ariaExpanded="false"}get options(){s.Observable.track(this,"options");return this.filteredOptions.length?this.filteredOptions:this._options}set options(e){this._options=e;s.Observable.notify(this,"options")}placeholderChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.placeholder=this.placeholder}}positionChanged(e,t){this.positionAttribute=t;this.setPositioning()}get value(){s.Observable.track(this,"value");return this._value}set value(e){var t,i,o;const n=`${this._value}`;if(this.$fastController.isConnected&&this.options){const s=this.options.findIndex((t=>t.text.toLowerCase()===e.toLowerCase()));const n=(t=this.options[this.selectedIndex])===null||t===void 0?void 0:t.text;const r=(i=this.options[s])===null||i===void 0?void 0:i.text;this.selectedIndex=n!==r?s:this.selectedIndex;e=((o=this.firstSelectedOption)===null||o===void 0?void 0:o.text)||e}if(n!==e){this._value=e;super.valueChanged(n,e);s.Observable.notify(this,"value")}}clickHandler(e){if(this.disabled){return}if(this.open){const t=e.target.closest(`option,[role=option]`);if(!t||t.disabled){return}this.selectedOptions=[t];this.control.value=t.text;this.clearSelectionRange();this.updateValue(true)}this.open=!this.open;if(this.open){this.control.focus()}return true}connectedCallback(){super.connectedCallback();this.forcedPosition=!!this.positionAttribute;if(this.value){this.initialValue=this.value}}disabledChanged(e,t){if(super.disabledChanged){super.disabledChanged(e,t)}this.ariaDisabled=this.disabled?"true":"false"}filterOptions(){if(!this.autocomplete||this.autocomplete===Qo.none){this.filter=""}const e=this.filter.toLowerCase();this.filteredOptions=this._options.filter((e=>e.text.toLowerCase().startsWith(this.filter.toLowerCase())));if(this.isAutocompleteList){if(!this.filteredOptions.length&&!e){this.filteredOptions=this._options}this._options.forEach((e=>{e.hidden=!this.filteredOptions.includes(e)}))}}focusAndScrollOptionIntoView(){if(this.contains(document.activeElement)){this.control.focus();if(this.firstSelectedOption){requestAnimationFrame((()=>{var e;(e=this.firstSelectedOption)===null||e===void 0?void 0:e.scrollIntoView({block:"nearest"})}))}}}focusoutHandler(e){this.syncValue();if(!this.open){return true}const t=e.relatedTarget;if(this.isSameNode(t)){this.focus();return}if(!this.options||!this.options.includes(t)){this.open=false}}inputHandler(e){this.filter=this.control.value;this.filterOptions();if(!this.isAutocompleteInline){this.selectedIndex=this.options.map((e=>e.text)).indexOf(this.control.value)}if(e.inputType.includes("deleteContent")||!this.filter.length){return true}if(this.isAutocompleteList&&!this.open){this.open=true}if(this.isAutocompleteInline){if(this.filteredOptions.length){this.selectedOptions=[this.filteredOptions[0]];this.selectedIndex=this.options.indexOf(this.firstSelectedOption);this.setInlineSelection()}else{this.selectedIndex=-1}}return}keydownHandler(e){const t=e.key;if(e.ctrlKey||e.shiftKey){return true}switch(t){case"Enter":{this.syncValue();if(this.isAutocompleteInline){this.filter=this.value}this.open=false;this.clearSelectionRange();break}case"Escape":{if(!this.isAutocompleteInline){this.selectedIndex=-1}if(this.open){this.open=false;break}this.value="";this.control.value="";this.filter="";this.filterOptions();break}case"Tab":{this.setInputToSelection();if(!this.open){return true}e.preventDefault();this.open=false;break}case"ArrowUp":case"ArrowDown":{this.filterOptions();if(!this.open){this.open=true;break}if(this.filteredOptions.length>0){super.keydownHandler(e)}if(this.isAutocompleteInline){this.setInlineSelection()}break}default:{return true}}}keyupHandler(e){const t=e.key;switch(t){case"ArrowLeft":case"ArrowRight":case"Backspace":case"Delete":case"Home":case"End":{this.filter=this.control.value;this.selectedIndex=-1;this.filterOptions();break}}}selectedIndexChanged(e,t){if(this.$fastController.isConnected){t=(0,Ne.AB)(-1,this.options.length-1,t);if(t!==this.selectedIndex){this.selectedIndex=t;return}super.selectedIndexChanged(e,t)}}selectPreviousOption(){if(!this.disabled&&this.selectedIndex>=0){this.selectedIndex=this.selectedIndex-1}}setDefaultSelectedOption(){if(this.$fastController.isConnected&&this.options){const e=this.options.findIndex((e=>e.getAttribute("selected")!==null||e.selected));this.selectedIndex=e;if(!this.dirtyValue&&this.firstSelectedOption){this.value=this.firstSelectedOption.text}this.setSelectedOptions()}}setInputToSelection(){if(this.firstSelectedOption){this.control.value=this.firstSelectedOption.text;this.control.focus()}}setInlineSelection(){if(this.firstSelectedOption){this.setInputToSelection();this.control.setSelectionRange(this.filter.length,this.control.value.length,"backward")}}syncValue(){var e;const t=this.selectedIndex>-1?(e=this.firstSelectedOption)===null||e===void 0?void 0:e.text:this.control.value;this.updateValue(this.value!==t)}setPositioning(){const e=this.getBoundingClientRect();const t=window.innerHeight;const i=t-e.bottom;this.position=this.forcedPosition?this.positionAttribute:e.top>i?Go.above:Go.below;this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position;this.maxHeight=this.position===Go.above?~~e.top:~~i}selectedOptionsChanged(e,t){if(this.$fastController.isConnected){this._options.forEach((e=>{e.selected=t.includes(e)}))}}slottedOptionsChanged(e,t){super.slottedOptionsChanged(e,t);this.updateValue()}updateValue(e){var t;if(this.$fastController.isConnected){this.value=((t=this.firstSelectedOption)===null||t===void 0?void 0:t.text)||this.control.value;this.control.value=this.value}if(e){this.$emit("change")}}clearSelectionRange(){const e=this.control.value.length;this.control.setSelectionRange(e,e)}}f([(0,s.attr)({attribute:"autocomplete",mode:"fromView"})],Zo.prototype,"autocomplete",void 0);f([s.observable],Zo.prototype,"maxHeight",void 0);f([(0,s.attr)({attribute:"open",mode:"boolean"})],Zo.prototype,"open",void 0);f([s.attr],Zo.prototype,"placeholder",void 0);f([(0,s.attr)({attribute:"position"})],Zo.prototype,"positionAttribute",void 0);f([s.observable],Zo.prototype,"position",void 0);class Jo{}f([s.observable],Jo.prototype,"ariaAutoComplete",void 0);f([s.observable],Jo.prototype,"ariaControls",void 0);Pe(Jo,Wo);Pe(Zo,o,Jo);const en=(e,t)=>(0,s.html)` + +`;function tn(e){const t=e.tagFor(ao);return(0,s.html)` + <${t} + :rowData="${e=>e}" + :cellItemTemplate="${(e,t)=>t.parent.cellItemTemplate}" + :headerCellItemTemplate="${(e,t)=>t.parent.headerCellItemTemplate}" + > +`}const sn=(e,t)=>{const i=tn(e);const o=e.tagFor(ao);return(0,s.html)` + + `};function on(e){const t=e.tagFor(ro);return(0,s.html)` + <${t} + cell-type="${e=>e.isRowHeader?"rowheader":undefined}" + grid-column="${(e,t)=>t.index+1}" + :rowData="${(e,t)=>t.parent.rowData}" + :columnDefinition="${e=>e}" + > +`}function nn(e){const t=e.tagFor(ro);return(0,s.html)` + <${t} + cell-type="columnheader" + grid-column="${(e,t)=>t.index+1}" + :columnDefinition="${e=>e}" + > +`}const rn=(e,t)=>{const i=on(e);const o=nn(e);return(0,s.html)` + + `};const an=(e,t)=>(0,s.html)` + + `;function ln(e){const t=e.parentElement;if(t){return t}else{const t=e.getRootNode();if(t.host instanceof HTMLElement){return t.host}}return null}function dn(e,t){let i=t;while(i!==null){if(i===e){return true}i=ln(i)}return false}const hn=document.createElement("div");function cn(e){return e instanceof s.FASTElement}class un{setProperty(e,t){s.DOM.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){s.DOM.queueUpdate((()=>this.target.removeProperty(e)))}}class pn extends un{constructor(e){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":host{}")].style;e.$fastController.addStyles(s.ElementStyles.create([t]))}}class fn extends un{constructor(){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":root{}")].style;document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}}class mn extends un{constructor(){super();this.style=document.createElement("style");document.head.appendChild(this.style);const{sheet:e}=this.style;if(e){const t=e.insertRule(":root{}",e.cssRules.length);this.target=e.cssRules[t].style}}}class vn{constructor(e){this.store=new Map;this.target=null;const t=e.$fastController;this.style=document.createElement("style");t.addStyles(this.style);s.Observable.getNotifier(t).subscribe(this,"isConnected");this.handleChange(t,"isConnected")}targetChanged(){if(this.target!==null){for(const[e,t]of this.store.entries()){this.target.setProperty(e,t)}}}setProperty(e,t){this.store.set(e,t);s.DOM.queueUpdate((()=>{if(this.target!==null){this.target.setProperty(e,t)}}))}removeProperty(e){this.store.delete(e);s.DOM.queueUpdate((()=>{if(this.target!==null){this.target.removeProperty(e)}}))}handleChange(e,t){const{sheet:i}=this.style;if(i){const e=i.insertRule(":host{}",i.cssRules.length);this.target=i.cssRules[e].style}else{this.target=null}}}f([s.observable],vn.prototype,"target",void 0);class bn{constructor(e){this.target=e.style}setProperty(e,t){s.DOM.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){s.DOM.queueUpdate((()=>this.target.removeProperty(e)))}}class gn{setProperty(e,t){gn.properties[e]=t;for(const i of gn.roots.values()){xn.getOrCreate(gn.normalizeRoot(i)).setProperty(e,t)}}removeProperty(e){delete gn.properties[e];for(const t of gn.roots.values()){xn.getOrCreate(gn.normalizeRoot(t)).removeProperty(e)}}static registerRoot(e){const{roots:t}=gn;if(!t.has(e)){t.add(e);const i=xn.getOrCreate(this.normalizeRoot(e));for(const e in gn.properties){i.setProperty(e,gn.properties[e])}}}static unregisterRoot(e){const{roots:t}=gn;if(t.has(e)){t.delete(e);const i=xn.getOrCreate(gn.normalizeRoot(e));for(const e in gn.properties){i.removeProperty(e)}}}static normalizeRoot(e){return e===hn?document:e}}gn.roots=new Set;gn.properties={};const yn=new WeakMap;const Cn=s.DOM.supportsAdoptedStyleSheets?pn:vn;const xn=Object.freeze({getOrCreate(e){if(yn.has(e)){return yn.get(e)}let t;if(e===hn){t=new gn}else if(e instanceof Document){t=s.DOM.supportsAdoptedStyleSheets?new fn:new mn}else if(cn(e)){t=new Cn(e)}else{t=new bn(e)}yn.set(e,t);return t}});class wn extends s.CSSDirective{constructor(e){super();this.subscribers=new WeakMap;this._appliedTo=new Set;this.name=e.name;if(e.cssCustomPropertyName!==null){this.cssCustomProperty=`--${e.cssCustomPropertyName}`;this.cssVar=`var(${this.cssCustomProperty})`}this.id=wn.uniqueId();wn.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(e){return new wn({name:typeof e==="string"?e:e.name,cssCustomPropertyName:typeof e==="string"?e:e.cssCustomPropertyName===void 0?e.name:e.cssCustomPropertyName})}static isCSSDesignToken(e){return typeof e.cssCustomProperty==="string"}static isDerivedDesignTokenValue(e){return typeof e==="function"}static getTokenById(e){return wn.tokensById.get(e)}getOrCreateSubscriberSet(e=this){return this.subscribers.get(e)||this.subscribers.set(e,new Set)&&this.subscribers.get(e)}createCSS(){return this.cssVar||""}getValueFor(e){const t=En.getOrCreate(e).get(this);if(t!==undefined){return t}throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${e} or an ancestor of ${e}.`)}setValueFor(e,t){this._appliedTo.add(e);if(t instanceof wn){t=this.alias(t)}En.getOrCreate(e).set(this,t);return this}deleteValueFor(e){this._appliedTo.delete(e);if(En.existsFor(e)){En.getOrCreate(e).delete(this)}return this}withDefault(e){this.setValueFor(hn,e);return this}subscribe(e,t){const i=this.getOrCreateSubscriberSet(t);if(t&&!En.existsFor(t)){En.getOrCreate(t)}if(!i.has(e)){i.add(e)}}unsubscribe(e,t){const i=this.subscribers.get(t||this);if(i&&i.has(e)){i.delete(e)}}notify(e){const t=Object.freeze({token:this,target:e});if(this.subscribers.has(this)){this.subscribers.get(this).forEach((e=>e.handleChange(t)))}if(this.subscribers.has(e)){this.subscribers.get(e).forEach((e=>e.handleChange(t)))}}alias(e){return t=>e.getValueFor(t)}}wn.uniqueId=(()=>{let e=0;return()=>{e++;return e.toString(16)}})();wn.tokensById=new Map;class $n{startReflection(e,t){e.subscribe(this,t);this.handleChange({token:e,target:t})}stopReflection(e,t){e.unsubscribe(this,t);this.remove(e,t)}handleChange(e){const{token:t,target:i}=e;this.add(t,i)}add(e,t){xn.getOrCreate(t).setProperty(e.cssCustomProperty,this.resolveCSSValue(En.getOrCreate(t).get(e)))}remove(e,t){xn.getOrCreate(t).removeProperty(e.cssCustomProperty)}resolveCSSValue(e){return e&&typeof e.createCSS==="function"?e.createCSS():e}}class In{constructor(e,t,i){this.source=e;this.token=t;this.node=i;this.dependencies=new Set;this.observer=s.Observable.binding(e,this,false);this.observer.handleChange=this.observer.call;this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,s.defaultExecutionContext))}}class kn{constructor(){this.values=new Map}set(e,t){if(this.values.get(e)!==t){this.values.set(e,t);s.Observable.getNotifier(this).notify(e.id)}}get(e){s.Observable.track(this,e.id);return this.values.get(e)}delete(e){this.values.delete(e)}all(){return this.values.entries()}}const On=new WeakMap;const Tn=new WeakMap;class En{constructor(e){this.target=e;this.store=new kn;this.children=[];this.assignedValues=new Map;this.reflecting=new Set;this.bindingObservers=new Map;this.tokenValueChangeHandler={handleChange:(e,t)=>{const i=wn.getTokenById(t);if(i){i.notify(this.target);if(wn.isCSSDesignToken(i)){const t=this.parent;const s=this.isReflecting(i);if(t){const o=t.get(i);const n=e.get(i);if(o!==n&&!s){this.reflectToCSS(i)}else if(o===n&&s){this.stopReflectToCSS(i)}}else if(!s){this.reflectToCSS(i)}}}}};On.set(e,this);s.Observable.getNotifier(this.store).subscribe(this.tokenValueChangeHandler);if(e instanceof s.FASTElement){e.$fastController.addBehaviors([this])}else if(e.isConnected){this.bind()}}static getOrCreate(e){return On.get(e)||new En(e)}static existsFor(e){return On.has(e)}static findParent(e){if(!(hn===e.target)){let t=ln(e.target);while(t!==null){if(On.has(t)){return On.get(t)}t=ln(t)}return En.getOrCreate(hn)}return null}static findClosestAssignedNode(e,t){let i=t;do{if(i.has(e)){return i}i=i.parent?i.parent:i.target!==hn?En.getOrCreate(hn):null}while(i!==null);return null}get parent(){return Tn.get(this)||null}has(e){return this.assignedValues.has(e)}get(e){const t=this.store.get(e);if(t!==undefined){return t}const i=this.getRaw(e);if(i!==undefined){this.hydrate(e,i);return this.get(e)}}getRaw(e){var t;if(this.assignedValues.has(e)){return this.assignedValues.get(e)}return(t=En.findClosestAssignedNode(e,this))===null||t===void 0?void 0:t.getRaw(e)}set(e,t){if(wn.isDerivedDesignTokenValue(this.assignedValues.get(e))){this.tearDownBindingObserver(e)}this.assignedValues.set(e,t);if(wn.isDerivedDesignTokenValue(t)){this.setupBindingObserver(e,t)}else{this.store.set(e,t)}}delete(e){this.assignedValues.delete(e);this.tearDownBindingObserver(e);const t=this.getRaw(e);if(t){this.hydrate(e,t)}else{this.store.delete(e)}}bind(){const e=En.findParent(this);if(e){e.appendChild(this)}for(const t of this.assignedValues.keys()){t.notify(this.target)}}unbind(){if(this.parent){const e=Tn.get(this);e.removeChild(this)}}appendChild(e){if(e.parent){Tn.get(e).removeChild(e)}const t=this.children.filter((t=>e.contains(t)));Tn.set(e,this);this.children.push(e);t.forEach((t=>e.appendChild(t)));s.Observable.getNotifier(this.store).subscribe(e);for(const[i,s]of this.store.all()){e.hydrate(i,this.bindingObservers.has(i)?this.getRaw(i):s)}}removeChild(e){const t=this.children.indexOf(e);if(t!==-1){this.children.splice(t,1)}s.Observable.getNotifier(this.store).unsubscribe(e);return e.parent===this?Tn.delete(e):false}contains(e){return dn(this.target,e.target)}reflectToCSS(e){if(!this.isReflecting(e)){this.reflecting.add(e);En.cssCustomPropertyReflector.startReflection(e,this.target)}}stopReflectToCSS(e){if(this.isReflecting(e)){this.reflecting.delete(e);En.cssCustomPropertyReflector.stopReflection(e,this.target)}}isReflecting(e){return this.reflecting.has(e)}handleChange(e,t){const i=wn.getTokenById(t);if(!i){return}this.hydrate(i,this.getRaw(i))}hydrate(e,t){if(!this.has(e)){const i=this.bindingObservers.get(e);if(wn.isDerivedDesignTokenValue(t)){if(i){if(i.source!==t){this.tearDownBindingObserver(e);this.setupBindingObserver(e,t)}}else{this.setupBindingObserver(e,t)}}else{if(i){this.tearDownBindingObserver(e)}this.store.set(e,t)}}}setupBindingObserver(e,t){const i=new In(t,e,this);this.bindingObservers.set(e,i);return i}tearDownBindingObserver(e){if(this.bindingObservers.has(e)){this.bindingObservers.get(e).disconnect();this.bindingObservers.delete(e);return true}return false}}En.cssCustomPropertyReflector=new $n;f([s.observable],En.prototype,"children",void 0);function Rn(e){return wn.from(e)}const Dn=Object.freeze({create:Rn,notifyConnection(e){if(!e.isConnected||!En.existsFor(e)){return false}En.getOrCreate(e).bind();return true},notifyDisconnection(e){if(e.isConnected||!En.existsFor(e)){return false}En.getOrCreate(e).unbind();return true},registerRoot(e=hn){gn.registerRoot(e)},unregisterRoot(e=hn){gn.unregisterRoot(e)}});const Sn=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()});const An=new Map;const Fn=new Map;let Ln=null;const Mn=q.createInterface((e=>e.cachedCallback((e=>{if(Ln===null){Ln=new Vn(null,e)}return Ln}))));const Pn=Object.freeze({tagFor(e){return Fn.get(e)},responsibleFor(e){const t=e.$$designSystem$$;if(t){return t}const i=q.findResponsibleContainer(e);return i.get(Mn)},getOrCreate(e){if(!e){if(Ln===null){Ln=q.getOrCreateDOMContainer().get(Mn)}return Ln}const t=e.$$designSystem$$;if(t){return t}const i=q.getOrCreateDOMContainer(e);if(i.has(Mn,false)){return i.get(Mn)}else{const t=new Vn(e,i);i.register(xe.instance(Mn,t));return t}}});function Hn(e,t,i){if(typeof e==="string"){return{name:e,type:t,callback:i}}else{return e}}class Vn{constructor(e,t){this.owner=e;this.container=t;this.designTokensInitialized=false;this.prefix="fast";this.shadowRootMode=undefined;this.disambiguate=()=>Sn.definitionCallbackOnly;if(e!==null){e.$$designSystem$$=this}}withPrefix(e){this.prefix=e;return this}withShadowRootMode(e){this.shadowRootMode=e;return this}withElementDisambiguation(e){this.disambiguate=e;return this}withDesignTokenRoot(e){this.designTokenRoot=e;return this}register(...e){const t=this.container;const i=[];const s=this.disambiguate;const o=this.shadowRootMode;const n={elementPrefix:this.prefix,tryDefineElement(e,n,r){const a=Hn(e,n,r);const{name:l,callback:d,baseClass:h}=a;let{type:c}=a;let u=l;let p=An.get(u);let f=true;while(p){const e=s(u,c,p);switch(e){case Sn.ignoreDuplicate:return;case Sn.definitionCallbackOnly:f=false;p=void 0;break;default:u=e;p=An.get(u);break}}if(f){if(Fn.has(c)||c===Fe){c=class extends c{}}An.set(u,c);Fn.set(c,u);if(h){Fn.set(h,u)}}i.push(new zn(t,u,c,o,d,f))}};if(!this.designTokensInitialized){this.designTokensInitialized=true;if(this.designTokenRoot!==null){Dn.registerRoot(this.designTokenRoot)}}t.registerWithContext(n,...e);for(const r of i){r.callback(r);if(r.willDefine&&r.definition!==null){r.definition.define()}}return this}}class zn{constructor(e,t,i,s,o,n){this.container=e;this.name=t;this.type=i;this.shadowRootMode=s;this.callback=o;this.willDefine=n;this.definition=null}definePresentation(e){Se.define(this.name,e,this.container)}defineElement(e){this.definition=new s.FASTElementDefinition(this.type,Object.assign(Object.assign({},e),{name:this.name}))}tagFor(e){return Pn.tagFor(e)}}const Nn=(e,t)=>(0,s.html)` +
+ ${(0,s.when)((e=>e.modal),(0,s.html)` + + `)} + +
+`;var Bn=i(49054);class qn extends Fe{constructor(){super(...arguments);this.modal=true;this.hidden=false;this.trapFocus=true;this.trapFocusChanged=()=>{if(this.$fastController.isConnected){this.updateTrapFocus()}};this.isTrappingFocus=false;this.handleDocumentKeydown=e=>{if(!e.defaultPrevented&&!this.hidden){switch(e.key){case ze.F9:this.dismiss();e.preventDefault();break;case ze.J9:this.handleTabKeyDown(e);break}}};this.handleDocumentFocus=e=>{if(!e.defaultPrevented&&this.shouldForceFocus(e.target)){this.focusFirstElement();e.preventDefault()}};this.handleTabKeyDown=e=>{if(!this.trapFocus||this.hidden){return}const t=this.getTabQueueBounds();if(t.length===0){return}if(t.length===1){t[0].focus();e.preventDefault();return}if(e.shiftKey&&e.target===t[0]){t[t.length-1].focus();e.preventDefault()}else if(!e.shiftKey&&e.target===t[t.length-1]){t[0].focus();e.preventDefault()}return};this.getTabQueueBounds=()=>{const e=[];return qn.reduceTabbableItems(e,this)};this.focusFirstElement=()=>{const e=this.getTabQueueBounds();if(e.length>0){e[0].focus()}else{if(this.dialog instanceof HTMLElement){this.dialog.focus()}}};this.shouldForceFocus=e=>this.isTrappingFocus&&!this.contains(e);this.shouldTrapFocus=()=>this.trapFocus&&!this.hidden;this.updateTrapFocus=e=>{const t=e===undefined?this.shouldTrapFocus():e;if(t&&!this.isTrappingFocus){this.isTrappingFocus=true;document.addEventListener("focusin",this.handleDocumentFocus);s.DOM.queueUpdate((()=>{if(this.shouldForceFocus(document.activeElement)){this.focusFirstElement()}}))}else if(!t&&this.isTrappingFocus){this.isTrappingFocus=false;document.removeEventListener("focusin",this.handleDocumentFocus)}}}dismiss(){this.$emit("dismiss");this.$emit("cancel")}show(){this.hidden=false}hide(){this.hidden=true;this.$emit("close")}connectedCallback(){super.connectedCallback();document.addEventListener("keydown",this.handleDocumentKeydown);this.notifier=s.Observable.getNotifier(this);this.notifier.subscribe(this,"hidden");this.updateTrapFocus()}disconnectedCallback(){super.disconnectedCallback();document.removeEventListener("keydown",this.handleDocumentKeydown);this.updateTrapFocus(false);this.notifier.unsubscribe(this,"hidden")}handleChange(e,t){switch(t){case"hidden":this.updateTrapFocus();break;default:break}}static reduceTabbableItems(e,t){if(t.getAttribute("tabindex")==="-1"){return e}if((0,Bn.AO)(t)||qn.isFocusableFastElement(t)&&qn.hasTabbableShadow(t)){e.push(t);return e}if(t.childElementCount){return e.concat(Array.from(t.children).reduce(qn.reduceTabbableItems,[]))}return e}static isFocusableFastElement(e){var t,i;return!!((i=(t=e.$fastController)===null||t===void 0?void 0:t.definition.shadowOptions)===null||i===void 0?void 0:i.delegatesFocus)}static hasTabbableShadow(e){var t,i;return Array.from((i=(t=e.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("*"))!==null&&i!==void 0?i:[]).some((e=>(0,Bn.AO)(e)))}}f([(0,s.attr)({mode:"boolean"})],qn.prototype,"modal",void 0);f([(0,s.attr)({mode:"boolean"})],qn.prototype,"hidden",void 0);f([(0,s.attr)({attribute:"trap-focus",mode:"boolean"})],qn.prototype,"trapFocus",void 0);f([(0,s.attr)({attribute:"aria-describedby"})],qn.prototype,"ariaDescribedby",void 0);f([(0,s.attr)({attribute:"aria-labelledby"})],qn.prototype,"ariaLabelledby",void 0);f([(0,s.attr)({attribute:"aria-label"})],qn.prototype,"ariaLabel",void 0);const Un=new MutationObserver((e=>{for(const t of e){jn.getOrCreateFor(t.target).notify(t.attributeName)}}));class jn extends s.SubscriberSet{constructor(e){super(e);this.watchedAttributes=new Set;jn.subscriberCache.set(e,this)}subscribe(e){super.subscribe(e);if(!this.watchedAttributes.has(e.attributes)){this.watchedAttributes.add(e.attributes);this.observe()}}unsubscribe(e){super.unsubscribe(e);if(this.watchedAttributes.has(e.attributes)){this.watchedAttributes.delete(e.attributes);this.observe()}}static getOrCreateFor(e){return this.subscriberCache.get(e)||new jn(e)}observe(){const e=[];for(const t of this.watchedAttributes.values()){for(let i=0;i(0,s.html)` +
+ + + ${e=>e.title} + + +
+
+`;class Gn extends Fe{connectedCallback(){super.connectedCallback();this.setup()}disconnectedCallback(){super.disconnectedCallback();this.details.removeEventListener("toggle",this.onToggle)}show(){this.details.open=true}hide(){this.details.open=false}toggle(){this.details.open=!this.details.open}setup(){this.onToggle=this.onToggle.bind(this);this.details.addEventListener("toggle",this.onToggle);if(this.expanded){this.show()}}onToggle(){this.expanded=this.details.open;this.$emit("toggle")}}f([(0,s.attr)({mode:"boolean"})],Gn.prototype,"expanded",void 0);f([s.attr],Gn.prototype,"title",void 0);const Xn=(e,t)=>(0,s.html)` + +`;var Yn=i(67002);const Qn={separator:"separator",presentation:"presentation"};class Zn extends Fe{constructor(){super(...arguments);this.role=Qn.separator;this.orientation=Yn.t.horizontal}}f([s.attr],Zn.prototype,"role",void 0);f([s.attr],Zn.prototype,"orientation",void 0);const Jn={next:"next",previous:"previous"};const er=(e,t)=>(0,s.html)` + +`;class tr extends Fe{constructor(){super(...arguments);this.hiddenFromAT=true;this.direction=Jn.next}keyupHandler(e){if(!this.hiddenFromAT){const t=e.key;if(t==="Enter"||t==="Space"){this.$emit("click",e)}if(t==="Escape"){this.blur()}}}}f([(0,s.attr)({mode:"boolean"})],tr.prototype,"disabled",void 0);f([(0,s.attr)({attribute:"aria-hidden",converter:s.booleanConverter})],tr.prototype,"hiddenFromAT",void 0);f([s.attr],tr.prototype,"direction",void 0);const ir=(e,t)=>(0,s.html)` + +`;class sr extends Ko{constructor(){super(...arguments);this.activeIndex=-1;this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var e;return(e=this.options)===null||e===void 0?void 0:e.filter((e=>e.checked))}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(e,t){var i,s;this.ariaActiveDescendant=(s=(i=this.options[t])===null||i===void 0?void 0:i.id)!==null&&s!==void 0?s:"";this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple){return}const e=this.activeOption;if(e){e.checked=true}}checkFirstOption(e=false){if(e){if(this.rangeStartIndex===-1){this.rangeStartIndex=this.activeIndex+1}this.options.forEach(((e,t)=>{e.checked=(0,Ne.r4)(t,this.rangeStartIndex)}))}else{this.uncheckAllOptions()}this.activeIndex=0;this.checkActiveIndex()}checkLastOption(e=false){if(e){if(this.rangeStartIndex===-1){this.rangeStartIndex=this.activeIndex}this.options.forEach(((e,t)=>{e.checked=(0,Ne.r4)(t,this.rangeStartIndex,this.options.length)}))}else{this.uncheckAllOptions()}this.activeIndex=this.options.length-1;this.checkActiveIndex()}connectedCallback(){super.connectedCallback();this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler);super.disconnectedCallback()}checkNextOption(e=false){if(e){if(this.rangeStartIndex===-1){this.rangeStartIndex=this.activeIndex}this.options.forEach(((e,t)=>{e.checked=(0,Ne.r4)(t,this.rangeStartIndex,this.activeIndex+1)}))}else{this.uncheckAllOptions()}this.activeIndex+=this.activeIndex{e.checked=(0,Ne.r4)(t,this.activeIndex,this.rangeStartIndex)}))}else{this.uncheckAllOptions()}this.activeIndex-=this.activeIndex>0?1:0;this.checkActiveIndex()}clickHandler(e){var t;if(!this.multiple){return super.clickHandler(e)}const i=(t=e.target)===null||t===void 0?void 0:t.closest(`[role=option]`);if(!i||i.disabled){return}this.uncheckAllOptions();this.activeIndex=this.options.indexOf(i);this.checkActiveIndex();this.toggleSelectedForAllCheckedOptions();return true}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(e){if(!this.multiple){return super.focusinHandler(e)}if(!this.shouldSkipFocus&&e.target===e.currentTarget){this.uncheckAllOptions();if(this.activeIndex===-1){this.activeIndex=this.firstSelectedOptionIndex!==-1?this.firstSelectedOptionIndex:0}this.checkActiveIndex();this.setSelectedOptions();this.focusAndScrollOptionIntoView()}this.shouldSkipFocus=false}focusoutHandler(e){if(this.multiple){this.uncheckAllOptions()}}keydownHandler(e){if(!this.multiple){return super.keydownHandler(e)}if(this.disabled){return true}const{key:t,shiftKey:i}=e;this.shouldSkipFocus=false;switch(t){case ze.Tg:{this.checkFirstOption(i);return}case ze.HX:{this.checkNextOption(i);return}case ze.I5:{this.checkPreviousOption(i);return}case ze.FM:{this.checkLastOption(i);return}case ze.J9:{this.focusAndScrollOptionIntoView();return true}case ze.F9:{this.uncheckAllOptions();this.checkActiveIndex();return true}case ze.gG:{e.preventDefault();if(this.typeAheadExpired){this.toggleSelectedForAllCheckedOptions();return}}default:{if(t.length===1){this.handleTypeAhead(`${t}`)}return true}}}mousedownHandler(e){if(e.offsetX>=0&&e.offsetX<=this.scrollWidth){return super.mousedownHandler(e)}}multipleChanged(e,t){var i;this.ariaMultiSelectable=t?"true":null;(i=this.options)===null||i===void 0?void 0:i.forEach((e=>{e.checked=t?false:undefined}));this.setSelectedOptions()}setSelectedOptions(){if(!this.multiple){super.setSelectedOptions();return}if(this.$fastController.isConnected&&this.options){this.selectedOptions=this.options.filter((e=>e.selected));this.focusAndScrollOptionIntoView()}}sizeChanged(e,t){var i;const o=Math.max(0,parseInt((i=t===null||t===void 0?void 0:t.toFixed())!==null&&i!==void 0?i:"",10));if(o!==t){s.DOM.queueUpdate((()=>{this.size=o}))}}toggleSelectedForAllCheckedOptions(){const e=this.checkedOptions.filter((e=>!e.disabled));const t=!e.every((e=>e.selected));e.forEach((e=>e.selected=t));this.selectedIndex=this.options.indexOf(e[e.length-1]);this.setSelectedOptions()}typeaheadBufferChanged(e,t){if(!this.multiple){super.typeaheadBufferChanged(e,t);return}if(this.$fastController.isConnected){const e=this.getTypeaheadMatches();const t=this.options.indexOf(e[0]);if(t>-1){this.activeIndex=t;this.uncheckAllOptions();this.checkActiveIndex()}this.typeAheadExpired=false}}uncheckAllOptions(e=false){this.options.forEach((e=>e.checked=this.multiple?false:undefined));if(!e){this.rangeStartIndex=-1}}}f([s.observable],sr.prototype,"activeIndex",void 0);f([(0,s.attr)({mode:"boolean"})],sr.prototype,"multiple",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],sr.prototype,"size",void 0);const or=(e,t)=>(0,s.html)` + +`;class nr extends Fe{constructor(){super(...arguments);this.optionElements=[]}menuElementsChanged(){this.updateOptions()}headerElementsChanged(){this.updateOptions()}footerElementsChanged(){this.updateOptions()}updateOptions(){this.optionElements.splice(0,this.optionElements.length);this.addSlottedListItems(this.headerElements);this.addSlottedListItems(this.menuElements);this.addSlottedListItems(this.footerElements);this.$emit("optionsupdated",{bubbles:false})}addSlottedListItems(e){if(e===undefined){return}e.forEach((e=>{if(e.nodeType===1&&e.getAttribute("role")==="listitem"){e.id=e.id||Io("option-");this.optionElements.push(e)}}))}}f([s.observable],nr.prototype,"menuElements",void 0);f([s.observable],nr.prototype,"headerElements",void 0);f([s.observable],nr.prototype,"footerElements",void 0);f([s.observable],nr.prototype,"suggestionsAvailableText",void 0);const rr=(0,s.html)` + +`;class ar extends Fe{contentsTemplateChanged(){if(this.$fastController.isConnected){this.updateView()}}connectedCallback(){super.connectedCallback();this.updateView()}disconnectedCallback(){super.disconnectedCallback();this.disconnectView()}handleClick(e){if(e.defaultPrevented){return false}this.handleInvoked();return false}handleInvoked(){this.$emit("pickeroptioninvoked")}updateView(){var e,t;this.disconnectView();this.customView=(t=(e=this.contentsTemplate)===null||e===void 0?void 0:e.render(this,this))!==null&&t!==void 0?t:rr.render(this,this)}disconnectView(){var e;(e=this.customView)===null||e===void 0?void 0:e.dispose();this.customView=undefined}}f([(0,s.attr)({attribute:"value"})],ar.prototype,"value",void 0);f([s.observable],ar.prototype,"contentsTemplate",void 0);class lr extends Fe{}const dr=(0,s.html)` + +`;class hr extends Fe{contentsTemplateChanged(){if(this.$fastController.isConnected){this.updateView()}}connectedCallback(){super.connectedCallback();this.updateView()}disconnectedCallback(){this.disconnectView();super.disconnectedCallback()}handleKeyDown(e){if(e.defaultPrevented){return false}if(e.key===ze.Mm){this.handleInvoke();return false}return true}handleClick(e){if(!e.defaultPrevented){this.handleInvoke()}return false}handleInvoke(){this.$emit("pickeriteminvoked")}updateView(){var e,t;this.disconnectView();this.customView=(t=(e=this.contentsTemplate)===null||e===void 0?void 0:e.render(this,this))!==null&&t!==void 0?t:dr.render(this,this)}disconnectView(){var e;(e=this.customView)===null||e===void 0?void 0:e.dispose();this.customView=undefined}}f([(0,s.attr)({attribute:"value"})],hr.prototype,"value",void 0);f([s.observable],hr.prototype,"contentsTemplate",void 0);function cr(e){const t=e.tagFor(hr);return(0,s.html)` + <${t} + value="${e=>e}" + :contentsTemplate="${(e,t)=>t.parent.listItemContentsTemplate}" + > + + `}function ur(e){const t=e.tagFor(ar);return(0,s.html)` + <${t} + value="${e=>e}" + :contentsTemplate="${(e,t)=>t.parent.menuOptionContentsTemplate}" + > + + `}const pr=(e,t)=>{const i=e.tagFor(Os);const o=e.tagFor(nr);const n=e.tagFor(lr);const r=e.tagFor(lr);const a=cr(e);const l=ur(e);return(0,s.html)` + + `};class fr extends Fe{}class mr extends(Ws(fr)){constructor(){super(...arguments);this.proxy=document.createElement("input")}}const vr=(0,s.html)` + +`;class br extends mr{constructor(){super(...arguments);this.selection="";this.filterSelected=true;this.filterQuery=true;this.noSuggestionsText="No suggestions available";this.suggestionsAvailableText="Suggestions available";this.loadingText="Loading suggestions";this.menuPlacement="bottom-fill";this.showLoading=false;this.optionsList=[];this.filteredOptionsList=[];this.flyoutOpen=false;this.menuFocusIndex=-1;this.showNoOptions=false;this.selectedItems=[];this.inputElementView=null;this.handleTextInput=e=>{this.query=this.inputElement.value};this.handleInputClick=e=>{e.preventDefault();this.toggleFlyout(true)};this.setRegionProps=()=>{if(!this.flyoutOpen){return}if(this.region===null||this.region===undefined){s.DOM.queueUpdate(this.setRegionProps);return}this.region.anchorElement=this.inputElement};this.configLookup={top:Es,bottom:Rs,tallest:Ds,"top-fill":Ss,"bottom-fill":As,"tallest-fill":Fs}}selectionChanged(){if(this.$fastController.isConnected){this.handleSelectionChange();if(this.proxy instanceof HTMLInputElement){this.proxy.value=this.selection;this.validate()}}}optionsChanged(){this.optionsList=this.options.split(",").map((e=>e.trim())).filter((e=>e!==""))}menuPlacementChanged(){if(this.$fastController.isConnected){this.updateMenuConfig()}}showLoadingChanged(){if(this.$fastController.isConnected){s.DOM.queueUpdate((()=>{this.setFocusedOption(0)}))}}listItemTemplateChanged(){this.updateListItemTemplate()}defaultListItemTemplateChanged(){this.updateListItemTemplate()}menuOptionTemplateChanged(){this.updateOptionTemplate()}defaultMenuOptionTemplateChanged(){this.updateOptionTemplate()}optionsListChanged(){this.updateFilteredOptions()}queryChanged(){if(this.$fastController.isConnected){if(this.inputElement.value!==this.query){this.inputElement.value=this.query}this.updateFilteredOptions();this.$emit("querychange",{bubbles:false})}}filteredOptionsListChanged(){if(this.$fastController.isConnected){this.showNoOptions=this.filteredOptionsList.length===0&&this.menuElement.querySelectorAll('[role="listitem"]').length===0;this.setFocusedOption(this.showNoOptions?-1:0)}}flyoutOpenChanged(){if(this.flyoutOpen){s.DOM.queueUpdate(this.setRegionProps);this.$emit("menuopening",{bubbles:false})}else{this.$emit("menuclosing",{bubbles:false})}}showNoOptionsChanged(){if(this.$fastController.isConnected){s.DOM.queueUpdate((()=>{this.setFocusedOption(0)}))}}connectedCallback(){super.connectedCallback();this.listElement=document.createElement(this.selectedListTag);this.appendChild(this.listElement);this.itemsPlaceholderElement=document.createComment("");this.listElement.append(this.itemsPlaceholderElement);this.inputElementView=vr.render(this,this.listElement);const e=this.menuTag.toUpperCase();this.menuElement=Array.from(this.children).find((t=>t.tagName===e));if(this.menuElement===undefined){this.menuElement=document.createElement(this.menuTag);this.appendChild(this.menuElement)}if(this.menuElement.id===""){this.menuElement.id=Io("listbox-")}this.menuId=this.menuElement.id;this.optionsPlaceholder=document.createComment("");this.menuElement.append(this.optionsPlaceholder);this.updateMenuConfig();s.DOM.queueUpdate((()=>this.initialize()))}disconnectedCallback(){super.disconnectedCallback();this.toggleFlyout(false);this.inputElement.removeEventListener("input",this.handleTextInput);this.inputElement.removeEventListener("click",this.handleInputClick);if(this.inputElementView!==null){this.inputElementView.dispose();this.inputElementView=null}}focus(){this.inputElement.focus()}initialize(){this.updateListItemTemplate();this.updateOptionTemplate();this.itemsRepeatBehavior=new s.RepeatDirective((e=>e.selectedItems),(e=>e.activeListItemTemplate),{positioning:true}).createBehavior(this.itemsPlaceholderElement);this.inputElement.addEventListener("input",this.handleTextInput);this.inputElement.addEventListener("click",this.handleInputClick);this.$fastController.addBehaviors([this.itemsRepeatBehavior]);this.menuElement.suggestionsAvailableText=this.suggestionsAvailableText;this.menuElement.addEventListener("optionsupdated",this.handleMenuOptionsUpdated);this.optionsRepeatBehavior=new s.RepeatDirective((e=>e.filteredOptionsList),(e=>e.activeMenuOptionTemplate),{positioning:true}).createBehavior(this.optionsPlaceholder);this.$fastController.addBehaviors([this.optionsRepeatBehavior]);this.handleSelectionChange()}toggleFlyout(e){if(this.flyoutOpen===e){return}if(e&&document.activeElement===this.inputElement){this.flyoutOpen=e;s.DOM.queueUpdate((()=>{if(this.menuElement!==undefined){this.setFocusedOption(0)}else{this.disableMenu()}}));return}this.flyoutOpen=false;this.disableMenu();return}handleMenuOptionsUpdated(e){e.preventDefault();if(this.flyoutOpen){this.setFocusedOption(0)}}handleKeyDown(e){if(e.defaultPrevented){return false}switch(e.key){case ze.HX:{if(!this.flyoutOpen){this.toggleFlyout(true)}else{const e=this.flyoutOpen?Math.min(this.menuFocusIndex+1,this.menuElement.optionElements.length-1):0;this.setFocusedOption(e)}return false}case ze.I5:{if(!this.flyoutOpen){this.toggleFlyout(true)}else{const e=this.flyoutOpen?Math.max(this.menuFocusIndex-1,0):0;this.setFocusedOption(e)}return false}case ze.F9:{this.toggleFlyout(false);return false}case ze.Mm:{if(this.menuFocusIndex!==-1&&this.menuElement.optionElements.length>this.menuFocusIndex){this.menuElement.optionElements[this.menuFocusIndex].click()}return false}case ze.bb:{if(document.activeElement!==this.inputElement){this.incrementFocusedItem(1);return false}return true}case ze.kT:{if(this.inputElement.selectionStart===0){this.incrementFocusedItem(-1);return false}return true}case ze.De:case ze.R9:{if(document.activeElement===null){return true}if(document.activeElement===this.inputElement){if(this.inputElement.selectionStart===0){this.selection=this.selectedItems.slice(0,this.selectedItems.length-1).toString();this.toggleFlyout(false);return false}return true}const e=Array.from(this.listElement.children);const t=e.indexOf(document.activeElement);if(t>-1){this.selection=this.selectedItems.splice(t,1).toString();s.DOM.queueUpdate((()=>{e[Math.min(e.length,t)].focus()}));return false}return true}}this.toggleFlyout(true);return true}handleFocusIn(e){return false}handleFocusOut(e){if(this.menuElement===undefined||!this.menuElement.contains(e.relatedTarget)){this.toggleFlyout(false)}return false}handleSelectionChange(){if(this.selectedItems.toString()===this.selection){return}this.selectedItems=this.selection===""?[]:this.selection.split(",");this.updateFilteredOptions();s.DOM.queueUpdate((()=>{this.checkMaxItems()}));this.$emit("selectionchange",{bubbles:false})}handleRegionLoaded(e){s.DOM.queueUpdate((()=>{this.setFocusedOption(0);this.$emit("menuloaded",{bubbles:false})}))}checkMaxItems(){if(this.inputElement===undefined){return}if(this.maxSelected!==undefined&&this.selectedItems.length>=this.maxSelected){if(document.activeElement===this.inputElement){const e=Array.from(this.listElement.querySelectorAll("[role='listitem']"));e[e.length-1].focus()}this.inputElement.hidden=true}else{this.inputElement.hidden=false}}handleItemInvoke(e){if(e.defaultPrevented){return false}if(e.target instanceof hr){const t=Array.from(this.listElement.querySelectorAll("[role='listitem']"));const i=t.indexOf(e.target);if(i!==-1){const e=this.selectedItems.slice();e.splice(i,1);this.selection=e.toString();s.DOM.queueUpdate((()=>this.incrementFocusedItem(0)))}return false}return true}handleOptionInvoke(e){if(e.defaultPrevented){return false}if(e.target instanceof ar){if(e.target.value!==undefined){this.selection=`${this.selection}${this.selection===""?"":","}${e.target.value}`}this.inputElement.value="";this.query="";this.inputElement.focus();this.toggleFlyout(false);return false}return true}incrementFocusedItem(e){if(this.selectedItems.length===0){this.inputElement.focus();return}const t=Array.from(this.listElement.querySelectorAll("[role='listitem']"));if(document.activeElement!==null){let i=t.indexOf(document.activeElement);if(i===-1){i=t.length}const s=Math.min(t.length,Math.max(0,i+e));if(s===t.length){if(this.maxSelected!==undefined&&this.selectedItems.length>=this.maxSelected){t[s-1].focus()}else{this.inputElement.focus()}}else{t[s].focus()}}}disableMenu(){var e,t,i;this.menuFocusIndex=-1;this.menuFocusOptionId=undefined;(e=this.inputElement)===null||e===void 0?void 0:e.removeAttribute("aria-activedescendant");(t=this.inputElement)===null||t===void 0?void 0:t.removeAttribute("aria-owns");(i=this.inputElement)===null||i===void 0?void 0:i.removeAttribute("aria-expanded")}setFocusedOption(e){if(!this.flyoutOpen||e===-1||this.showNoOptions||this.showLoading){this.disableMenu();return}if(this.menuElement.optionElements.length===0){return}this.menuElement.optionElements.forEach((e=>{e.setAttribute("aria-selected","false")}));this.menuFocusIndex=e;if(this.menuFocusIndex>this.menuElement.optionElements.length-1){this.menuFocusIndex=this.menuElement.optionElements.length-1}this.menuFocusOptionId=this.menuElement.optionElements[this.menuFocusIndex].id;this.inputElement.setAttribute("aria-owns",this.menuId);this.inputElement.setAttribute("aria-expanded","true");this.inputElement.setAttribute("aria-activedescendant",this.menuFocusOptionId);const t=this.menuElement.optionElements[this.menuFocusIndex];t.setAttribute("aria-selected","true");this.menuElement.scrollTo(0,t.offsetTop)}updateListItemTemplate(){var e;this.activeListItemTemplate=(e=this.listItemTemplate)!==null&&e!==void 0?e:this.defaultListItemTemplate}updateOptionTemplate(){var e;this.activeMenuOptionTemplate=(e=this.menuOptionTemplate)!==null&&e!==void 0?e:this.defaultMenuOptionTemplate}updateFilteredOptions(){this.filteredOptionsList=this.optionsList.slice(0);if(this.filterSelected){this.filteredOptionsList=this.filteredOptionsList.filter((e=>this.selectedItems.indexOf(e)===-1))}if(this.filterQuery&&this.query!==""&&this.query!==undefined){this.filteredOptionsList=this.filteredOptionsList.filter((e=>e.indexOf(this.query)!==-1))}}updateMenuConfig(){let e=this.configLookup[this.menuPlacement];if(e===null){e=As}this.menuConfig=Object.assign(Object.assign({},e),{autoUpdateMode:"auto",fixedPlacement:true,horizontalViewportLock:false,verticalViewportLock:false})}}f([(0,s.attr)({attribute:"selection"})],br.prototype,"selection",void 0);f([(0,s.attr)({attribute:"options"})],br.prototype,"options",void 0);f([(0,s.attr)({attribute:"filter-selected",mode:"boolean"})],br.prototype,"filterSelected",void 0);f([(0,s.attr)({attribute:"filter-query",mode:"boolean"})],br.prototype,"filterQuery",void 0);f([(0,s.attr)({attribute:"max-selected"})],br.prototype,"maxSelected",void 0);f([(0,s.attr)({attribute:"no-suggestions-text"})],br.prototype,"noSuggestionsText",void 0);f([(0,s.attr)({attribute:"suggestions-available-text"})],br.prototype,"suggestionsAvailableText",void 0);f([(0,s.attr)({attribute:"loading-text"})],br.prototype,"loadingText",void 0);f([(0,s.attr)({attribute:"label"})],br.prototype,"label",void 0);f([(0,s.attr)({attribute:"labelledby"})],br.prototype,"labelledBy",void 0);f([(0,s.attr)({attribute:"placeholder"})],br.prototype,"placeholder",void 0);f([(0,s.attr)({attribute:"menu-placement"})],br.prototype,"menuPlacement",void 0);f([s.observable],br.prototype,"showLoading",void 0);f([s.observable],br.prototype,"listItemTemplate",void 0);f([s.observable],br.prototype,"defaultListItemTemplate",void 0);f([s.observable],br.prototype,"activeListItemTemplate",void 0);f([s.observable],br.prototype,"menuOptionTemplate",void 0);f([s.observable],br.prototype,"defaultMenuOptionTemplate",void 0);f([s.observable],br.prototype,"activeMenuOptionTemplate",void 0);f([s.observable],br.prototype,"listItemContentsTemplate",void 0);f([s.observable],br.prototype,"menuOptionContentsTemplate",void 0);f([s.observable],br.prototype,"optionsList",void 0);f([s.observable],br.prototype,"query",void 0);f([s.observable],br.prototype,"filteredOptionsList",void 0);f([s.observable],br.prototype,"flyoutOpen",void 0);f([s.observable],br.prototype,"menuId",void 0);f([s.observable],br.prototype,"selectedListTag",void 0);f([s.observable],br.prototype,"menuTag",void 0);f([s.observable],br.prototype,"menuFocusIndex",void 0);f([s.observable],br.prototype,"menuFocusOptionId",void 0);f([s.observable],br.prototype,"showNoOptions",void 0);f([s.observable],br.prototype,"menuConfig",void 0);f([s.observable],br.prototype,"selectedItems",void 0);const gr=(e,t)=>(0,s.html)` + + `;const yr=(e,t)=>(0,s.html)` + + `;const Cr=(e,t)=>(0,s.html)` + + `;const xr=(e,t)=>(0,s.html)` + + `;const wr={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};const $r={[wr.menuitem]:"menuitem",[wr.menuitemcheckbox]:"menuitemcheckbox",[wr.menuitemradio]:"menuitemradio"};const Ir=(e,t)=>(0,s.html)` + +`;class kr extends Fe{constructor(){super(...arguments);this.role=wr.menuitem;this.hasSubmenu=false;this.currentDirection=Ge.O.ltr;this.focusSubmenuOnLoad=false;this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented){return false}switch(e.key){case ze.Mm:case ze.gG:this.invoke();return false;case ze.bb:this.expandAndFocus();return false;case ze.kT:if(this.expanded){this.expanded=false;this.focus();return false}}return true};this.handleMenuItemClick=e=>{if(e.defaultPrevented||this.disabled){return false}this.invoke();return false};this.submenuLoaded=()=>{if(!this.focusSubmenuOnLoad){return}this.focusSubmenuOnLoad=false;if(this.hasSubmenu){this.submenu.focus();this.setAttribute("tabindex","-1")}};this.handleMouseOver=e=>{if(this.disabled||!this.hasSubmenu||this.expanded){return false}this.expanded=true;return false};this.handleMouseOut=e=>{if(!this.expanded||this.contains(document.activeElement)){return false}this.expanded=false;return false};this.expandAndFocus=()=>{if(!this.hasSubmenu){return}this.focusSubmenuOnLoad=true;this.expanded=true};this.invoke=()=>{if(this.disabled){return}switch(this.role){case wr.menuitemcheckbox:this.checked=!this.checked;break;case wr.menuitem:this.updateSubmenu();if(this.hasSubmenu){this.expandAndFocus()}else{this.$emit("change")}break;case wr.menuitemradio:if(!this.checked){this.checked=true}break}};this.updateSubmenu=()=>{this.submenu=this.domChildren().find((e=>e.getAttribute("role")==="menu"));this.hasSubmenu=this.submenu===undefined?false:true}}expandedChanged(e){if(this.$fastController.isConnected){if(this.submenu===undefined){return}if(this.expanded===false){this.submenu.collapseExpandedItem()}else{this.currentDirection=Is(this)}this.$emit("expanded-change",this,{bubbles:false})}}checkedChanged(e,t){if(this.$fastController.isConnected){this.$emit("change")}}connectedCallback(){super.connectedCallback();s.DOM.queueUpdate((()=>{this.updateSubmenu()}));if(!this.startColumnCount){this.startColumnCount=1}this.observer=new MutationObserver(this.updateSubmenu)}disconnectedCallback(){super.disconnectedCallback();this.submenu=undefined;if(this.observer!==undefined){this.observer.disconnect();this.observer=undefined}}domChildren(){return Array.from(this.children).filter((e=>!e.hasAttribute("hidden")))}}f([(0,s.attr)({mode:"boolean"})],kr.prototype,"disabled",void 0);f([(0,s.attr)({mode:"boolean"})],kr.prototype,"expanded",void 0);f([s.observable],kr.prototype,"startColumnCount",void 0);f([s.attr],kr.prototype,"role",void 0);f([(0,s.attr)({mode:"boolean"})],kr.prototype,"checked",void 0);f([s.observable],kr.prototype,"submenuRegion",void 0);f([s.observable],kr.prototype,"hasSubmenu",void 0);f([s.observable],kr.prototype,"currentDirection",void 0);f([s.observable],kr.prototype,"submenu",void 0);Pe(kr,o);const Or=(e,t)=>(0,s.html)` + +`;class Tr extends Fe{constructor(){super(...arguments);this.expandedItem=null;this.focusIndex=-1;this.isNestedMenu=()=>this.parentElement!==null&&Ao(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem";this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&this.menuItems!==undefined){this.collapseExpandedItem();const e=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1");this.menuItems[e].setAttribute("tabindex","0");this.focusIndex=e}};this.handleItemFocus=e=>{const t=e.target;if(this.menuItems!==undefined&&t!==this.menuItems[this.focusIndex]){this.menuItems[this.focusIndex].setAttribute("tabindex","-1");this.focusIndex=this.menuItems.indexOf(t);t.setAttribute("tabindex","0")}};this.handleExpandedChanged=e=>{if(e.defaultPrevented||e.target===null||this.menuItems===undefined||this.menuItems.indexOf(e.target)<0){return}e.preventDefault();const t=e.target;if(this.expandedItem!==null&&t===this.expandedItem&&t.expanded===false){this.expandedItem=null;return}if(t.expanded){if(this.expandedItem!==null&&this.expandedItem!==t){this.expandedItem.expanded=false}this.menuItems[this.focusIndex].setAttribute("tabindex","-1");this.expandedItem=t;this.focusIndex=this.menuItems.indexOf(t);t.setAttribute("tabindex","0")}};this.removeItemListeners=()=>{if(this.menuItems!==undefined){this.menuItems.forEach((e=>{e.removeEventListener("expanded-change",this.handleExpandedChanged);e.removeEventListener("focus",this.handleItemFocus)}))}};this.setItems=()=>{const e=this.domChildren();this.removeItemListeners();this.menuItems=e;const t=this.menuItems.filter(this.isMenuItemElement);if(t.length){this.focusIndex=0}function i(e){const t=e.getAttribute("role");const i=e.querySelector("[slot=start]");if(t!==wr.menuitem&&i===null){return 1}else if(t===wr.menuitem&&i!==null){return 1}else if(t!==wr.menuitem&&i!==null){return 2}else{return 0}}const s=t.reduce(((e,t)=>{const s=i(t);return e>s?e:s}),0);t.forEach(((e,t)=>{e.setAttribute("tabindex",t===0?"0":"-1");e.addEventListener("expanded-change",this.handleExpandedChanged);e.addEventListener("focus",this.handleItemFocus);if(e instanceof kr){e.startColumnCount=s}}))};this.changeHandler=e=>{if(this.menuItems===undefined){return}const t=e.target;const i=this.menuItems.indexOf(t);if(i===-1){return}if(t.role==="menuitemradio"&&t.checked===true){for(let t=i-1;t>=0;--t){const e=this.menuItems[t];const i=e.getAttribute("role");if(i===wr.menuitemradio){e.checked=false}if(i==="separator"){break}}const e=this.menuItems.length-1;for(let t=i+1;t<=e;++t){const e=this.menuItems[t];const i=e.getAttribute("role");if(i===wr.menuitemradio){e.checked=false}if(i==="separator"){break}}}};this.isMenuItemElement=e=>Ao(e)&&Tr.focusableElementRoles.hasOwnProperty(e.getAttribute("role"));this.isFocusableElement=e=>this.isMenuItemElement(e)}itemsChanged(e,t){if(this.$fastController.isConnected&&this.menuItems!==undefined){this.setItems()}}connectedCallback(){super.connectedCallback();s.DOM.queueUpdate((()=>{this.setItems()}));this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback();this.removeItemListeners();this.menuItems=undefined;this.removeEventListener("change",this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){if(this.expandedItem!==null){this.expandedItem.expanded=false;this.expandedItem=null}}handleMenuKeyDown(e){if(e.defaultPrevented||this.menuItems===undefined){return}switch(e.key){case ze.HX:this.setFocus(this.focusIndex+1,1);return;case ze.I5:this.setFocus(this.focusIndex-1,-1);return;case ze.FM:this.setFocus(this.menuItems.length-1,-1);return;case ze.Tg:this.setFocus(0,1);return;default:return true}}domChildren(){return Array.from(this.children).filter((e=>!e.hasAttribute("hidden")))}setFocus(e,t){if(this.menuItems===undefined){return}while(e>=0&&e-1&&this.menuItems.length>=this.focusIndex-1){this.menuItems[this.focusIndex].setAttribute("tabindex","-1")}this.focusIndex=e;i.setAttribute("tabindex","0");i.focus();break}e+=t}}}Tr.focusableElementRoles=$r;f([s.observable],Tr.prototype,"items",void 0);const Er=(e,t)=>(0,s.html)` + +`;class Rr extends Fe{}class Dr extends(Ws(Rr)){constructor(){super(...arguments);this.proxy=document.createElement("input")}}const Sr={email:"email",password:"password",tel:"tel",text:"text",url:"url"};class Ar extends Dr{constructor(){super(...arguments);this.type=Sr.text}readOnlyChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.readOnly=this.readOnly;this.validate()}}autofocusChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.autofocus=this.autofocus;this.validate()}}placeholderChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.placeholder=this.placeholder}}typeChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.type=this.type;this.validate()}}listChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.setAttribute("list",this.list);this.validate()}}maxlengthChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.maxLength=this.maxlength;this.validate()}}minlengthChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.minLength=this.minlength;this.validate()}}patternChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.pattern=this.pattern;this.validate()}}sizeChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.size=this.size}}spellcheckChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.spellcheck=this.spellcheck}}connectedCallback(){super.connectedCallback();this.proxy.setAttribute("type",this.type);this.validate();if(this.autofocus){s.DOM.queueUpdate((()=>{this.focus()}))}}select(){this.control.select();this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}}f([(0,s.attr)({attribute:"readonly",mode:"boolean"})],Ar.prototype,"readOnly",void 0);f([(0,s.attr)({mode:"boolean"})],Ar.prototype,"autofocus",void 0);f([s.attr],Ar.prototype,"placeholder",void 0);f([s.attr],Ar.prototype,"type",void 0);f([s.attr],Ar.prototype,"list",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Ar.prototype,"maxlength",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Ar.prototype,"minlength",void 0);f([s.attr],Ar.prototype,"pattern",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Ar.prototype,"size",void 0);f([(0,s.attr)({mode:"boolean"})],Ar.prototype,"spellcheck",void 0);f([s.observable],Ar.prototype,"defaultSlottedNodes",void 0);class Fr{}Pe(Fr,je);Pe(Ar,o,Fr);class Lr extends Fe{}class Mr extends(Ws(Lr)){constructor(){super(...arguments);this.proxy=document.createElement("input")}}class Pr extends Mr{constructor(){super(...arguments);this.hideStep=false;this.step=1;this.isUserInput=false}maxChanged(e,t){var i;this.max=Math.max(t,(i=this.min)!==null&&i!==void 0?i:t);const s=Math.min(this.min,this.max);if(this.min!==undefined&&this.min!==s){this.min=s}this.value=this.getValidValue(this.value)}minChanged(e,t){var i;this.min=Math.min(t,(i=this.max)!==null&&i!==void 0?i:t);const s=Math.max(this.min,this.max);if(this.max!==undefined&&this.max!==s){this.max=s}this.value=this.getValidValue(this.value)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(e){this.value=e.toString()}valueChanged(e,t){this.value=this.getValidValue(t);if(t!==this.value){return}if(this.control&&!this.isUserInput){this.control.value=this.value}super.valueChanged(e,this.value);if(e!==undefined&&!this.isUserInput){this.$emit("input");this.$emit("change")}this.isUserInput=false}validate(){super.validate(this.control)}getValidValue(e){var t,i;let s=parseFloat(parseFloat(e).toPrecision(12));if(isNaN(s)){s=""}else{s=Math.min(s,(t=this.max)!==null&&t!==void 0?t:s);s=Math.max(s,(i=this.min)!==null&&i!==void 0?i:s).toString()}return s}stepUp(){const e=parseFloat(this.value);const t=!isNaN(e)?e+this.step:this.min>0?this.min:this.max<0?this.max:!this.min?this.step:0;this.value=t.toString()}stepDown(){const e=parseFloat(this.value);const t=!isNaN(e)?e-this.step:this.min>0?this.min:this.max<0?this.max:!this.min?0-this.step:0;this.value=t.toString()}connectedCallback(){super.connectedCallback();this.proxy.setAttribute("type","number");this.validate();this.control.value=this.value;if(this.autofocus){s.DOM.queueUpdate((()=>{this.focus()}))}}select(){this.control.select();this.$emit("select")}handleTextInput(){this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,"");this.isUserInput=true;this.value=this.control.value}handleChange(){this.$emit("change")}handleKeyDown(e){const t=e.key;switch(t){case ze.I5:this.stepUp();return false;case ze.HX:this.stepDown();return false}return true}handleBlur(){this.control.value=this.value}}f([(0,s.attr)({attribute:"readonly",mode:"boolean"})],Pr.prototype,"readOnly",void 0);f([(0,s.attr)({mode:"boolean"})],Pr.prototype,"autofocus",void 0);f([(0,s.attr)({attribute:"hide-step",mode:"boolean"})],Pr.prototype,"hideStep",void 0);f([s.attr],Pr.prototype,"placeholder",void 0);f([s.attr],Pr.prototype,"list",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Pr.prototype,"maxlength",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Pr.prototype,"minlength",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Pr.prototype,"size",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Pr.prototype,"step",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Pr.prototype,"max",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Pr.prototype,"min",void 0);f([s.observable],Pr.prototype,"defaultSlottedNodes",void 0);Pe(Pr,o,Fr);const Hr=44;const Vr=(e,t)=>(0,s.html)` + +`;class zr extends Fe{constructor(){super(...arguments);this.percentComplete=0}valueChanged(){if(this.$fastController.isConnected){this.updatePercentComplete()}}minChanged(){if(this.$fastController.isConnected){this.updatePercentComplete()}}maxChanged(){if(this.$fastController.isConnected){this.updatePercentComplete()}}connectedCallback(){super.connectedCallback();this.updatePercentComplete()}updatePercentComplete(){const e=typeof this.min==="number"?this.min:0;const t=typeof this.max==="number"?this.max:100;const i=typeof this.value==="number"?this.value:0;const s=t-e;this.percentComplete=s===0?0:Math.fround((i-e)/s*100)}}f([(0,s.attr)({converter:s.nullableNumberConverter})],zr.prototype,"value",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],zr.prototype,"min",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],zr.prototype,"max",void 0);f([(0,s.attr)({mode:"boolean"})],zr.prototype,"paused",void 0);f([s.observable],zr.prototype,"percentComplete",void 0);const Nr=(e,t)=>(0,s.html)` + +`;const Br=(e,t)=>(0,s.html)` + +`;class qr extends Fe{constructor(){super(...arguments);this.orientation=Yn.t.horizontal;this.radioChangeHandler=e=>{const t=e.target;if(t.checked){this.slottedRadioButtons.forEach((e=>{if(e!==t){e.checked=false;if(!this.isInsideFoundationToolbar){e.setAttribute("tabindex","-1")}}}));this.selectedRadio=t;this.value=t.value;t.setAttribute("tabindex","0");this.focusedRadio=t}e.stopPropagation()};this.moveToRadioByIndex=(e,t)=>{const i=e[t];if(!this.isInsideToolbar){i.setAttribute("tabindex","0");if(i.readOnly){this.slottedRadioButtons.forEach((e=>{if(e!==i){e.setAttribute("tabindex","-1")}}))}else{i.checked=true;this.selectedRadio=i}}this.focusedRadio=i;i.focus()};this.moveRightOffGroup=()=>{var e;(e=this.nextElementSibling)===null||e===void 0?void 0:e.focus()};this.moveLeftOffGroup=()=>{var e;(e=this.previousElementSibling)===null||e===void 0?void 0:e.focus()};this.focusOutHandler=e=>{const t=this.slottedRadioButtons;const i=e.target;const s=i!==null?t.indexOf(i):0;const o=this.focusedRadio?t.indexOf(this.focusedRadio):-1;if(o===0&&s===o||o===t.length-1&&o===s){if(!this.selectedRadio){this.focusedRadio=t[0];this.focusedRadio.setAttribute("tabindex","0");t.forEach((e=>{if(e!==this.focusedRadio){e.setAttribute("tabindex","-1")}}))}else{this.focusedRadio=this.selectedRadio;if(!this.isInsideFoundationToolbar){this.selectedRadio.setAttribute("tabindex","0");t.forEach((e=>{if(e!==this.selectedRadio){e.setAttribute("tabindex","-1")}}))}}}return true};this.clickHandler=e=>{const t=e.target;if(t){const e=this.slottedRadioButtons;if(t.checked||e.indexOf(t)===0){t.setAttribute("tabindex","0");this.selectedRadio=t}else{t.setAttribute("tabindex","-1");this.selectedRadio=null}this.focusedRadio=t}e.preventDefault()};this.shouldMoveOffGroupToTheRight=(e,t,i)=>e===t.length&&this.isInsideToolbar&&i===ze.bb;this.shouldMoveOffGroupToTheLeft=(e,t)=>{const i=this.focusedRadio?e.indexOf(this.focusedRadio)-1:0;return i<0&&this.isInsideToolbar&&t===ze.kT};this.checkFocusedRadio=()=>{if(this.focusedRadio!==null&&!this.focusedRadio.readOnly&&!this.focusedRadio.checked){this.focusedRadio.checked=true;this.focusedRadio.setAttribute("tabindex","0");this.focusedRadio.focus();this.selectedRadio=this.focusedRadio}};this.moveRight=e=>{const t=this.slottedRadioButtons;let i=0;i=this.focusedRadio?t.indexOf(this.focusedRadio)+1:1;if(this.shouldMoveOffGroupToTheRight(i,t,e.key)){this.moveRightOffGroup();return}else if(i===t.length){i=0}while(i1){if(!t[i].disabled){this.moveToRadioByIndex(t,i);break}else if(this.focusedRadio&&i===t.indexOf(this.focusedRadio)){break}else if(i+1>=t.length){if(this.isInsideToolbar){break}else{i=0}}else{i+=1}}};this.moveLeft=e=>{const t=this.slottedRadioButtons;let i=0;i=this.focusedRadio?t.indexOf(this.focusedRadio)-1:0;i=i<0?t.length-1:i;if(this.shouldMoveOffGroupToTheLeft(t,e.key)){this.moveLeftOffGroup();return}while(i>=0&&t.length>1){if(!t[i].disabled){this.moveToRadioByIndex(t,i);break}else if(this.focusedRadio&&i===t.indexOf(this.focusedRadio)){break}else if(i-1<0){i=t.length-1}else{i-=1}}};this.keydownHandler=e=>{const t=e.key;if(t in ze.Is&&this.isInsideFoundationToolbar){return true}switch(t){case ze.Mm:{this.checkFocusedRadio();break}case ze.bb:case ze.HX:{if(this.direction===Ge.O.ltr){this.moveRight(e)}else{this.moveLeft(e)}break}case ze.kT:case ze.I5:{if(this.direction===Ge.O.ltr){this.moveLeft(e)}else{this.moveRight(e)}break}default:{return true}}}}readOnlyChanged(){if(this.slottedRadioButtons!==undefined){this.slottedRadioButtons.forEach((e=>{if(this.readOnly){e.readOnly=true}else{e.readOnly=false}}))}}disabledChanged(){if(this.slottedRadioButtons!==undefined){this.slottedRadioButtons.forEach((e=>{if(this.disabled){e.disabled=true}else{e.disabled=false}}))}}nameChanged(){if(this.slottedRadioButtons){this.slottedRadioButtons.forEach((e=>{e.setAttribute("name",this.name)}))}}valueChanged(){if(this.slottedRadioButtons){this.slottedRadioButtons.forEach((e=>{if(e.value===this.value){e.checked=true;this.selectedRadio=e}}))}this.$emit("change")}slottedRadioButtonsChanged(e,t){if(this.slottedRadioButtons&&this.slottedRadioButtons.length>0){this.setupRadioButtons()}}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var e;return(e=this.parentToolbar)!==null&&e!==void 0?e:false}get isInsideFoundationToolbar(){var e;return!!((e=this.parentToolbar)===null||e===void 0?void 0:e["$fastController"])}connectedCallback(){super.connectedCallback();this.direction=Is(this);this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach((e=>{e.removeEventListener("change",this.radioChangeHandler)}))}setupRadioButtons(){const e=this.slottedRadioButtons.filter((e=>e.hasAttribute("checked")));const t=e?e.length:0;if(t>1){const i=e[t-1];i.checked=true}let i=false;this.slottedRadioButtons.forEach((e=>{if(this.name!==undefined){e.setAttribute("name",this.name)}if(this.disabled){e.disabled=true}if(this.readOnly){e.readOnly=true}if(this.value&&this.value===e.value){this.selectedRadio=e;this.focusedRadio=e;e.checked=true;e.setAttribute("tabindex","0");i=true}else{if(!this.isInsideFoundationToolbar){e.setAttribute("tabindex","-1")}e.checked=false}e.addEventListener("change",this.radioChangeHandler)}));if(this.value===undefined&&this.slottedRadioButtons.length>0){const e=this.slottedRadioButtons.filter((e=>e.hasAttribute("checked")));const t=e!==null?e.length:0;if(t>0&&!i){const i=e[t-1];i.checked=true;this.focusedRadio=i;i.setAttribute("tabindex","0")}else{this.slottedRadioButtons[0].setAttribute("tabindex","0");this.focusedRadio=this.slottedRadioButtons[0]}}}}f([(0,s.attr)({attribute:"readonly",mode:"boolean"})],qr.prototype,"readOnly",void 0);f([(0,s.attr)({attribute:"disabled",mode:"boolean"})],qr.prototype,"disabled",void 0);f([s.attr],qr.prototype,"name",void 0);f([s.attr],qr.prototype,"value",void 0);f([s.attr],qr.prototype,"orientation",void 0);f([s.observable],qr.prototype,"childItems",void 0);f([s.observable],qr.prototype,"slottedRadioButtons",void 0);const Ur=(e,t)=>(0,s.html)` + +`;class jr extends Fe{}class _r extends(Gs(jr)){constructor(){super(...arguments);this.proxy=document.createElement("input")}}class Kr extends _r{constructor(){super();this.initialValue="on";this.keypressHandler=e=>{switch(e.key){case ze.gG:if(!this.checked&&!this.readOnly){this.checked=true}return}return true};this.proxy.setAttribute("type","radio")}readOnlyChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.readOnly=this.readOnly}}defaultCheckedChanged(){var e;if(this.$fastController.isConnected&&!this.dirtyChecked){if(!this.isInsideRadioGroup()){this.checked=(e=this.defaultChecked)!==null&&e!==void 0?e:false;this.dirtyChecked=false}}}connectedCallback(){var e,t;super.connectedCallback();this.validate();if(((e=this.parentElement)===null||e===void 0?void 0:e.getAttribute("role"))!=="radiogroup"&&this.getAttribute("tabindex")===null){if(!this.disabled){this.setAttribute("tabindex","0")}}if(this.checkedAttribute){if(!this.dirtyChecked){if(!this.isInsideRadioGroup()){this.checked=(t=this.defaultChecked)!==null&&t!==void 0?t:false;this.dirtyChecked=false}}}}isInsideRadioGroup(){const e=this.closest("[role=radiogroup]");return e!==null}clickHandler(e){if(!this.disabled&&!this.readOnly&&!this.checked){this.checked=true}}}f([(0,s.attr)({attribute:"readonly",mode:"boolean"})],Kr.prototype,"readOnly",void 0);f([s.observable],Kr.prototype,"name",void 0);f([s.observable],Kr.prototype,"defaultSlottedNodes",void 0);class Wr extends Fe{constructor(){super(...arguments);this.framesPerSecond=60;this.updatingItems=false;this.speed=600;this.easing="ease-in-out";this.flippersHiddenFromAT=false;this.scrolling=false;this.resizeDetector=null}get frameTime(){return 1e3/this.framesPerSecond}scrollingChanged(e,t){if(this.scrollContainer){const e=this.scrolling==true?"scrollstart":"scrollend";this.$emit(e,this.scrollContainer.scrollLeft)}}get isRtl(){return this.scrollItems.length>1&&this.scrollItems[0].offsetLeft>this.scrollItems[1].offsetLeft}connectedCallback(){super.connectedCallback();this.initializeResizeDetector()}disconnectedCallback(){this.disconnectResizeDetector();super.disconnectedCallback()}scrollItemsChanged(e,t){if(t&&!this.updatingItems){s.DOM.queueUpdate((()=>this.setStops()))}}disconnectResizeDetector(){if(this.resizeDetector){this.resizeDetector.disconnect();this.resizeDetector=null}}initializeResizeDetector(){this.disconnectResizeDetector();this.resizeDetector=new window.ResizeObserver(this.resized.bind(this));this.resizeDetector.observe(this)}updateScrollStops(){this.updatingItems=true;const e=this.scrollItems.reduce(((e,t)=>{if(t instanceof HTMLSlotElement){return e.concat(t.assignedElements())}e.push(t);return e}),[]);this.scrollItems=e;this.updatingItems=false}setStops(){this.updateScrollStops();const{scrollContainer:e}=this;const{scrollLeft:t}=e;const{width:i,left:s}=e.getBoundingClientRect();this.width=i;let o=0;let n=this.scrollItems.map(((e,i)=>{const{left:n,width:r}=e.getBoundingClientRect();const a=Math.round(n+t-s);const l=Math.round(a+r);if(this.isRtl){return-l}o=l;return i===0?0:a})).concat(o);n=this.fixScrollMisalign(n);n.sort(((e,t)=>Math.abs(e)-Math.abs(t)));this.scrollStops=n;this.setFlippers()}validateStops(e=true){const t=()=>!!this.scrollStops.find((e=>e>0));if(!t()&&e){this.setStops()}return t()}fixScrollMisalign(e){if(this.isRtl&&e.some((e=>e>0))){e.sort(((e,t)=>t-e));const t=e[0];e=e.map((e=>e-t))}return e}setFlippers(){var e,t;const i=this.scrollContainer.scrollLeft;(e=this.previousFlipperContainer)===null||e===void 0?void 0:e.classList.toggle("disabled",i===0);if(this.scrollStops){const e=Math.abs(this.scrollStops[this.scrollStops.length-1]);(t=this.nextFlipperContainer)===null||t===void 0?void 0:t.classList.toggle("disabled",this.validateStops(false)&&Math.abs(i)+this.width>=e)}}scrollInView(e,t=0,i){var s;if(typeof e!=="number"&&e){e=this.scrollItems.findIndex((t=>t===e||t.contains(e)))}if(e!==undefined){i=i!==null&&i!==void 0?i:t;const{scrollContainer:o,scrollStops:n,scrollItems:r}=this;const{scrollLeft:a}=this.scrollContainer;const{width:l}=o.getBoundingClientRect();const d=n[e];const{width:h}=r[e].getBoundingClientRect();const c=d+h;const u=a+t>d;if(u||a+l-iu?t-e:e-t));const o=(s=e.find((e=>u?e+tc)))!==null&&s!==void 0?s:0;this.scrollToPosition(o)}}}keyupHandler(e){const t=e.key;switch(t){case"ArrowLeft":this.scrollToPrevious();break;case"ArrowRight":this.scrollToNext();break}}scrollToPrevious(){this.validateStops();const e=this.scrollContainer.scrollLeft;const t=this.scrollStops.findIndex(((t,i)=>t>=e&&(this.isRtl||i===this.scrollStops.length-1||this.scrollStops[i+1]>e)));const i=Math.abs(this.scrollStops[t+1]);let s=this.scrollStops.findIndex((e=>Math.abs(e)+this.width>i));if(s>=t||s===-1){s=t>0?t-1:0}this.scrollToPosition(this.scrollStops[s],e)}scrollToNext(){this.validateStops();const e=this.scrollContainer.scrollLeft;const t=this.scrollStops.findIndex((t=>Math.abs(t)>=Math.abs(e)));const i=this.scrollStops.findIndex((t=>Math.abs(e)+this.width<=Math.abs(t)));let s=t;if(i>t+2){s=i-2}else if(t{if(t&&t.target!==t.currentTarget){return}this.content.style.setProperty("transition-duration","0s");this.content.style.removeProperty("transform");this.scrollContainer.style.setProperty("scroll-behavior","auto");this.scrollContainer.scrollLeft=e;this.setFlippers();this.content.removeEventListener("transitionend",n);this.scrolling=false};if(o===0){n();return}this.content.addEventListener("transitionend",n);const r=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth;let a=this.scrollContainer.scrollLeft-Math.min(e,r);if(this.isRtl){a=this.scrollContainer.scrollLeft+Math.min(Math.abs(e),r)}this.content.style.setProperty("transition-property","transform");this.content.style.setProperty("transition-timing-function",this.easing);this.content.style.setProperty("transform",`translateX(${a}px)`)}resized(){if(this.resizeTimeout){this.resizeTimeout=clearTimeout(this.resizeTimeout)}this.resizeTimeout=setTimeout((()=>{this.width=this.scrollContainer.offsetWidth;this.setFlippers()}),this.frameTime)}scrolled(){if(this.scrollTimeout){this.scrollTimeout=clearTimeout(this.scrollTimeout)}this.scrollTimeout=setTimeout((()=>{this.setFlippers()}),this.frameTime)}}f([(0,s.attr)({converter:s.nullableNumberConverter})],Wr.prototype,"speed",void 0);f([s.attr],Wr.prototype,"duration",void 0);f([s.attr],Wr.prototype,"easing",void 0);f([(0,s.attr)({attribute:"flippers-hidden-from-at",converter:s.booleanConverter})],Wr.prototype,"flippersHiddenFromAT",void 0);f([s.observable],Wr.prototype,"scrolling",void 0);f([s.observable],Wr.prototype,"scrollItems",void 0);f([(0,s.attr)({attribute:"view"})],Wr.prototype,"view",void 0);const Gr=(e,t)=>{var i,o;return(0,s.html)` + +`};function Xr(e,t,i){return e.nodeType!==Node.TEXT_NODE?true:typeof e.nodeValue==="string"&&!!e.nodeValue.trim().length}const Yr=(e,t)=>(0,s.html)` + +`;class Qr extends Fe{}class Zr extends(Ws(Qr)){constructor(){super(...arguments);this.proxy=document.createElement("input")}}class Jr extends Zr{readOnlyChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.readOnly=this.readOnly;this.validate()}}autofocusChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.autofocus=this.autofocus;this.validate()}}placeholderChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.placeholder=this.placeholder}}listChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.setAttribute("list",this.list);this.validate()}}maxlengthChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.maxLength=this.maxlength;this.validate()}}minlengthChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.minLength=this.minlength;this.validate()}}patternChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.pattern=this.pattern;this.validate()}}sizeChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.size=this.size}}spellcheckChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.spellcheck=this.spellcheck}}connectedCallback(){super.connectedCallback();this.validate();if(this.autofocus){s.DOM.queueUpdate((()=>{this.focus()}))}}validate(){super.validate(this.control)}handleTextInput(){this.value=this.control.value}handleClearInput(){this.value="";this.control.focus();this.handleChange()}handleChange(){this.$emit("change")}}f([(0,s.attr)({attribute:"readonly",mode:"boolean"})],Jr.prototype,"readOnly",void 0);f([(0,s.attr)({mode:"boolean"})],Jr.prototype,"autofocus",void 0);f([s.attr],Jr.prototype,"placeholder",void 0);f([s.attr],Jr.prototype,"list",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Jr.prototype,"maxlength",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Jr.prototype,"minlength",void 0);f([s.attr],Jr.prototype,"pattern",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Jr.prototype,"size",void 0);f([(0,s.attr)({mode:"boolean"})],Jr.prototype,"spellcheck",void 0);f([s.observable],Jr.prototype,"defaultSlottedNodes",void 0);class ea{}Pe(ea,je);Pe(Jr,o,ea);class ta extends sr{}class ia extends(Ws(ta)){constructor(){super(...arguments);this.proxy=document.createElement("select")}}class sa extends ia{constructor(){super(...arguments);this.open=false;this.forcedPosition=false;this.listboxId=Io("listbox-");this.maxHeight=0}openChanged(e,t){if(!this.collapsible){return}if(this.open){this.ariaControls=this.listboxId;this.ariaExpanded="true";this.setPositioning();this.focusAndScrollOptionIntoView();this.indexWhenOpened=this.selectedIndex;s.DOM.queueUpdate((()=>this.focus()));return}this.ariaControls="";this.ariaExpanded="false"}get collapsible(){return!(this.multiple||typeof this.size==="number")}get value(){s.Observable.track(this,"value");return this._value}set value(e){var t,i,o,n,r,a,l;const d=`${this._value}`;if((t=this._options)===null||t===void 0?void 0:t.length){const t=this._options.findIndex((t=>t.value===e));const s=(o=(i=this._options[this.selectedIndex])===null||i===void 0?void 0:i.value)!==null&&o!==void 0?o:null;const d=(r=(n=this._options[t])===null||n===void 0?void 0:n.value)!==null&&r!==void 0?r:null;if(t===-1||s!==d){e="";this.selectedIndex=t}e=(l=(a=this.firstSelectedOption)===null||a===void 0?void 0:a.value)!==null&&l!==void 0?l:e}if(d!==e){this._value=e;super.valueChanged(d,e);s.Observable.notify(this,"value");this.updateDisplayValue()}}updateValue(e){var t,i;if(this.$fastController.isConnected){this.value=(i=(t=this.firstSelectedOption)===null||t===void 0?void 0:t.value)!==null&&i!==void 0?i:""}if(e){this.$emit("input");this.$emit("change",this,{bubbles:true,composed:undefined})}}selectedIndexChanged(e,t){super.selectedIndexChanged(e,t);this.updateValue()}positionChanged(e,t){this.positionAttribute=t;this.setPositioning()}setPositioning(){const e=this.getBoundingClientRect();const t=window.innerHeight;const i=t-e.bottom;this.position=this.forcedPosition?this.positionAttribute:e.top>i?Go.above:Go.below;this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position;this.maxHeight=this.position===Go.above?~~e.top:~~i}get displayValue(){var e,t;s.Observable.track(this,"displayValue");return(t=(e=this.firstSelectedOption)===null||e===void 0?void 0:e.text)!==null&&t!==void 0?t:""}disabledChanged(e,t){if(super.disabledChanged){super.disabledChanged(e,t)}this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions();super.setDefaultSelectedOption();if(this.selectedIndex===-1){this.selectedIndex=0}}clickHandler(e){if(this.disabled){return}if(this.open){const t=e.target.closest(`option,[role=option]`);if(t&&t.disabled){return}}super.clickHandler(e);this.open=this.collapsible&&!this.open;if(!this.open&&this.indexWhenOpened!==this.selectedIndex){this.updateValue(true)}return true}focusoutHandler(e){var t;super.focusoutHandler(e);if(!this.open){return true}const i=e.relatedTarget;if(this.isSameNode(i)){this.focus();return}if(!((t=this.options)===null||t===void 0?void 0:t.includes(i))){this.open=false;if(this.indexWhenOpened!==this.selectedIndex){this.updateValue(true)}}}handleChange(e,t){super.handleChange(e,t);if(t==="value"){this.updateValue()}}slottedOptionsChanged(e,t){this.options.forEach((e=>{const t=s.Observable.getNotifier(e);t.unsubscribe(this,"value")}));super.slottedOptionsChanged(e,t);this.options.forEach((e=>{const t=s.Observable.getNotifier(e);t.subscribe(this,"value")}));this.setProxyOptions();this.updateValue()}mousedownHandler(e){var t;if(e.offsetX>=0&&e.offsetX<=((t=this.listbox)===null||t===void 0?void 0:t.scrollWidth)){return super.mousedownHandler(e)}return this.collapsible}multipleChanged(e,t){super.multipleChanged(e,t);if(this.proxy){this.proxy.multiple=t}}selectedOptionsChanged(e,t){var i;super.selectedOptionsChanged(e,t);(i=this.options)===null||i===void 0?void 0:i.forEach(((e,t)=>{var i;const s=(i=this.proxy)===null||i===void 0?void 0:i.options.item(t);if(s){s.selected=e.selected}}))}setDefaultSelectedOption(){var e;const t=(e=this.options)!==null&&e!==void 0?e:Array.from(this.children).filter(Ko.slottedOptionFilter);const i=t===null||t===void 0?void 0:t.findIndex((e=>e.hasAttribute("selected")||e.selected||e.value===this.value));if(i!==-1){this.selectedIndex=i;return}this.selectedIndex=0}setProxyOptions(){if(this.proxy instanceof HTMLSelectElement&&this.options){this.proxy.options.length=0;this.options.forEach((e=>{const t=e.proxy||(e instanceof HTMLOptionElement?e.cloneNode():null);if(t){this.proxy.options.add(t)}}))}}keydownHandler(e){super.keydownHandler(e);const t=e.key||e.key.charCodeAt(0);switch(t){case ze.gG:{e.preventDefault();if(this.collapsible&&this.typeAheadExpired){this.open=!this.open}break}case ze.Tg:case ze.FM:{e.preventDefault();break}case ze.Mm:{e.preventDefault();this.open=!this.open;break}case ze.F9:{if(this.collapsible&&this.open){e.preventDefault();this.open=false}break}case ze.J9:{if(this.collapsible&&this.open){e.preventDefault();this.open=false}return true}}if(!this.open&&this.indexWhenOpened!==this.selectedIndex){this.updateValue(true);this.indexWhenOpened=this.selectedIndex}return!(t===ze.HX||t===ze.I5)}connectedCallback(){super.connectedCallback();this.forcedPosition=!!this.positionAttribute;this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue);super.disconnectedCallback()}sizeChanged(e,t){super.sizeChanged(e,t);if(this.proxy){this.proxy.size=t}}updateDisplayValue(){if(this.collapsible){s.Observable.notify(this,"displayValue")}}}f([(0,s.attr)({attribute:"open",mode:"boolean"})],sa.prototype,"open",void 0);f([s.volatile],sa.prototype,"collapsible",null);f([s.observable],sa.prototype,"control",void 0);f([(0,s.attr)({attribute:"position"})],sa.prototype,"positionAttribute",void 0);f([s.observable],sa.prototype,"position",void 0);f([s.observable],sa.prototype,"maxHeight",void 0);class oa{}f([s.observable],oa.prototype,"ariaControls",void 0);Pe(oa,Wo);Pe(sa,o,oa);const na=(e,t)=>(0,s.html)` + +`;const ra=(e,t)=>(0,s.html)` + +`;class aa extends Fe{constructor(){super(...arguments);this.shape="rect"}}f([s.attr],aa.prototype,"fill",void 0);f([s.attr],aa.prototype,"shape",void 0);f([s.attr],aa.prototype,"pattern",void 0);f([(0,s.attr)({mode:"boolean"})],aa.prototype,"shimmer",void 0);const la=(e,t)=>(0,s.html)` + +`;function da(e,t,i,s){let o=(0,Ne.AB)(0,1,(e-t)/(i-t));if(s===Ge.O.rtl){o=1-o}return o}const ha={min:0,max:0,direction:Ge.O.ltr,orientation:Yn.t.horizontal,disabled:false};class ca extends Fe{constructor(){super(...arguments);this.hideMark=false;this.sliderDirection=Ge.O.ltr;this.getSliderConfiguration=()=>{if(!this.isSliderConfig(this.parentNode)){this.sliderDirection=ha.direction||Ge.O.ltr;this.sliderOrientation=ha.orientation||Yn.t.horizontal;this.sliderMaxPosition=ha.max;this.sliderMinPosition=ha.min}else{const e=this.parentNode;const{min:t,max:i,direction:s,orientation:o,disabled:n}=e;if(n!==undefined){this.disabled=n}this.sliderDirection=s||Ge.O.ltr;this.sliderOrientation=o||Yn.t.horizontal;this.sliderMaxPosition=i;this.sliderMinPosition=t}};this.positionAsStyle=()=>{const e=this.sliderDirection?this.sliderDirection:Ge.O.ltr;const t=da(Number(this.position),Number(this.sliderMinPosition),Number(this.sliderMaxPosition));let i=Math.round((1-t)*100);let s=Math.round(t*100);if(Number.isNaN(s)&&Number.isNaN(i)){i=50;s=50}if(this.sliderOrientation===Yn.t.horizontal){return e===Ge.O.rtl?`right: ${s}%; left: ${i}%;`:`left: ${s}%; right: ${i}%;`}else{return`top: ${s}%; bottom: ${i}%;`}}}positionChanged(){this.positionStyle=this.positionAsStyle()}sliderOrientationChanged(){void 0}connectedCallback(){super.connectedCallback();this.getSliderConfiguration();this.positionStyle=this.positionAsStyle();this.notifier=s.Observable.getNotifier(this.parentNode);this.notifier.subscribe(this,"orientation");this.notifier.subscribe(this,"direction");this.notifier.subscribe(this,"max");this.notifier.subscribe(this,"min")}disconnectedCallback(){super.disconnectedCallback();this.notifier.unsubscribe(this,"orientation");this.notifier.unsubscribe(this,"direction");this.notifier.unsubscribe(this,"max");this.notifier.unsubscribe(this,"min")}handleChange(e,t){switch(t){case"direction":this.sliderDirection=e.direction;break;case"orientation":this.sliderOrientation=e.orientation;break;case"max":this.sliderMaxPosition=e.max;break;case"min":this.sliderMinPosition=e.min;break;default:break}this.positionStyle=this.positionAsStyle()}isSliderConfig(e){return e.max!==undefined&&e.min!==undefined}}f([s.observable],ca.prototype,"positionStyle",void 0);f([s.attr],ca.prototype,"position",void 0);f([(0,s.attr)({attribute:"hide-mark",mode:"boolean"})],ca.prototype,"hideMark",void 0);f([(0,s.attr)({attribute:"disabled",mode:"boolean"})],ca.prototype,"disabled",void 0);f([s.observable],ca.prototype,"sliderOrientation",void 0);f([s.observable],ca.prototype,"sliderMinPosition",void 0);f([s.observable],ca.prototype,"sliderMaxPosition",void 0);f([s.observable],ca.prototype,"sliderDirection",void 0);const ua=(e,t)=>(0,s.html)` + +`;class pa extends Fe{}class fa extends(Ws(pa)){constructor(){super(...arguments);this.proxy=document.createElement("input")}}const ma={singleValue:"single-value"};class va extends fa{constructor(){super(...arguments);this.direction=Ge.O.ltr;this.isDragging=false;this.trackWidth=0;this.trackMinWidth=0;this.trackHeight=0;this.trackLeft=0;this.trackMinHeight=0;this.valueTextFormatter=()=>null;this.min=0;this.max=10;this.step=1;this.orientation=Yn.t.horizontal;this.mode=ma.singleValue;this.keypressHandler=e=>{if(this.readOnly){return}if(e.key===ze.Tg){e.preventDefault();this.value=`${this.min}`}else if(e.key===ze.FM){e.preventDefault();this.value=`${this.max}`}else if(!e.shiftKey){switch(e.key){case ze.bb:case ze.I5:e.preventDefault();this.increment();break;case ze.kT:case ze.HX:e.preventDefault();this.decrement();break}}};this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth;this.trackMinWidth=this.track.clientLeft;this.trackHeight=e.bottom;this.trackMinHeight=e.top;this.trackLeft=this.getBoundingClientRect().left;if(this.trackWidth===0){this.trackWidth=1}};this.setupListeners=(e=false)=>{const t=`${e?"remove":"add"}EventListener`;this[t]("keydown",this.keypressHandler);this[t]("mousedown",this.handleMouseDown);this.thumb[t]("mousedown",this.handleThumbMouseDown,{passive:true});this.thumb[t]("touchstart",this.handleThumbMouseDown,{passive:true});if(e){this.handleMouseDown(null);this.handleThumbMouseDown(null)}};this.initialValue="";this.handleThumbMouseDown=e=>{if(e){if(this.readOnly||this.disabled||e.defaultPrevented){return}e.target.focus()}const t=`${e!==null?"add":"remove"}EventListener`;window[t]("mouseup",this.handleWindowMouseUp);window[t]("mousemove",this.handleMouseMove,{passive:true});window[t]("touchmove",this.handleMouseMove,{passive:true});window[t]("touchend",this.handleWindowMouseUp);this.isDragging=e!==null};this.handleMouseMove=e=>{if(this.readOnly||this.disabled||e.defaultPrevented){return}const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e;const i=this.orientation===Yn.t.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(i)}`};this.calculateNewValue=e=>{const t=da(e,this.orientation===Yn.t.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===Yn.t.horizontal?this.trackWidth:this.trackHeight,this.direction);const i=(this.max-this.min)*t+this.min;return this.convertToConstrainedValue(i)};this.handleWindowMouseUp=e=>{this.stopDragging()};this.stopDragging=()=>{this.isDragging=false;this.handleMouseDown(null);this.handleThumbMouseDown(null)};this.handleMouseDown=e=>{const t=`${e!==null?"add":"remove"}EventListener`;if(e===null||!this.disabled&&!this.readOnly){window[t]("mouseup",this.handleWindowMouseUp);window.document[t]("mouseleave",this.handleWindowMouseUp);window[t]("mousemove",this.handleMouseMove);if(e){e.preventDefault();this.setupTrackConstraints();e.target.focus();const t=this.orientation===Yn.t.horizontal?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(t)}`}}};this.convertToConstrainedValue=e=>{if(isNaN(e)){e=this.min}let t=e-this.min;const i=Math.round(t/this.step);const s=t-i*(this.stepMultiplier*this.step)/this.stepMultiplier;t=s>=Number(this.step)/2?t-s+Number(this.step):t-s;return t+this.min}}readOnlyChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.readOnly=this.readOnly}}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(e){this.value=e.toString()}valueChanged(e,t){super.valueChanged(e,t);if(this.$fastController.isConnected){this.setThumbPositionForOrientation(this.direction)}this.$emit("change")}minChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.min=`${this.min}`}this.validate()}maxChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.max=`${this.max}`}this.validate()}stepChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.step=`${this.step}`}this.updateStepMultiplier();this.validate()}orientationChanged(){if(this.$fastController.isConnected){this.setThumbPositionForOrientation(this.direction)}}connectedCallback(){super.connectedCallback();this.proxy.setAttribute("type","range");this.direction=Is(this);this.updateStepMultiplier();this.setupTrackConstraints();this.setupListeners();this.setupDefaultValue();this.setThumbPositionForOrientation(this.direction)}disconnectedCallback(){this.setupListeners(true)}increment(){const e=this.direction!==Ge.O.rtl&&this.orientation!==Yn.t.vertical?Number(this.value)+Number(this.step):Number(this.value)-Number(this.step);const t=this.convertToConstrainedValue(e);const i=tNumber(this.min)?`${t}`:`${this.min}`;this.value=i}setThumbPositionForOrientation(e){const t=da(Number(this.value),Number(this.min),Number(this.max),e);const i=(1-t)*100;if(this.orientation===Yn.t.horizontal){this.position=this.isDragging?`right: ${i}%; transition: none;`:`right: ${i}%; transition: all 0.2s ease;`}else{this.position=this.isDragging?`bottom: ${i}%; transition: none;`:`bottom: ${i}%; transition: all 0.2s ease;`}}updateStepMultiplier(){const e=this.step+"";const t=!!(this.step%1)?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.max+this.min)/2)}`}setupDefaultValue(){if(typeof this.value==="string"){if(this.value.length===0){this.initialValue=this.midpoint}else{const e=parseFloat(this.value);if(!Number.isNaN(e)&&(ethis.max)){this.value=this.midpoint}}}}}f([(0,s.attr)({attribute:"readonly",mode:"boolean"})],va.prototype,"readOnly",void 0);f([s.observable],va.prototype,"direction",void 0);f([s.observable],va.prototype,"isDragging",void 0);f([s.observable],va.prototype,"position",void 0);f([s.observable],va.prototype,"trackWidth",void 0);f([s.observable],va.prototype,"trackMinWidth",void 0);f([s.observable],va.prototype,"trackHeight",void 0);f([s.observable],va.prototype,"trackLeft",void 0);f([s.observable],va.prototype,"trackMinHeight",void 0);f([s.observable],va.prototype,"valueTextFormatter",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],va.prototype,"min",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],va.prototype,"max",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],va.prototype,"step",void 0);f([s.attr],va.prototype,"orientation",void 0);f([s.attr],va.prototype,"mode",void 0);const ba=(e,t)=>(0,s.html)` + +`;class ga extends Fe{}class ya extends(Gs(ga)){constructor(){super(...arguments);this.proxy=document.createElement("input")}}class Ca extends ya{constructor(){super();this.initialValue="on";this.keypressHandler=e=>{if(this.readOnly){return}switch(e.key){case ze.Mm:case ze.gG:this.checked=!this.checked;break}};this.clickHandler=e=>{if(!this.disabled&&!this.readOnly){this.checked=!this.checked}};this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.readOnly=this.readOnly}this.readOnly?this.classList.add("readonly"):this.classList.remove("readonly")}checkedChanged(e,t){super.checkedChanged(e,t);this.checked?this.classList.add("checked"):this.classList.remove("checked")}}f([(0,s.attr)({attribute:"readonly",mode:"boolean"})],Ca.prototype,"readOnly",void 0);f([s.observable],Ca.prototype,"defaultSlottedNodes",void 0);const xa=(e,t)=>(0,s.html)` + +`;class wa extends Fe{}const $a=(e,t)=>(0,s.html)` + +`;class Ia extends Fe{}f([(0,s.attr)({mode:"boolean"})],Ia.prototype,"disabled",void 0);const ka=(e,t)=>(0,s.html)` + +`;const Oa={vertical:"vertical",horizontal:"horizontal"};class Ta extends Fe{constructor(){super(...arguments);this.orientation=Oa.horizontal;this.activeindicator=true;this.showActiveIndicator=true;this.prevActiveTabIndex=0;this.activeTabIndex=0;this.ticking=false;this.change=()=>{this.$emit("change",this.activetab)};this.isDisabledElement=e=>e.getAttribute("aria-disabled")==="true";this.isHiddenElement=e=>e.hasAttribute("hidden");this.isFocusableElement=e=>!this.isDisabledElement(e)&&!this.isHiddenElement(e);this.setTabs=()=>{const e="gridColumn";const t="gridRow";const i=this.isHorizontal()?e:t;this.activeTabIndex=this.getActiveIndex();this.showActiveIndicator=false;this.tabs.forEach(((s,o)=>{if(s.slot==="tab"){const e=this.activeTabIndex===o&&this.isFocusableElement(s);if(this.activeindicator&&this.isFocusableElement(s)){this.showActiveIndicator=true}const t=this.tabIds[o];const i=this.tabpanelIds[o];s.setAttribute("id",t);s.setAttribute("aria-selected",e?"true":"false");s.setAttribute("aria-controls",i);s.addEventListener("click",this.handleTabClick);s.addEventListener("keydown",this.handleTabKeyDown);s.setAttribute("tabindex",e?"0":"-1");if(e){this.activetab=s;this.activeid=t}}s.style[e]="";s.style[t]="";s.style[i]=`${o+1}`;!this.isHorizontal()?s.classList.add("vertical"):s.classList.remove("vertical")}))};this.setTabPanels=()=>{this.tabpanels.forEach(((e,t)=>{const i=this.tabIds[t];const s=this.tabpanelIds[t];e.setAttribute("id",s);e.setAttribute("aria-labelledby",i);this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")}))};this.handleTabClick=e=>{const t=e.currentTarget;if(t.nodeType===1&&this.isFocusableElement(t)){this.prevActiveTabIndex=this.activeTabIndex;this.activeTabIndex=this.tabs.indexOf(t);this.setComponent()}};this.handleTabKeyDown=e=>{if(this.isHorizontal()){switch(e.key){case ze.kT:e.preventDefault();this.adjustBackward(e);break;case ze.bb:e.preventDefault();this.adjustForward(e);break}}else{switch(e.key){case ze.I5:e.preventDefault();this.adjustBackward(e);break;case ze.HX:e.preventDefault();this.adjustForward(e);break}}switch(e.key){case ze.Tg:e.preventDefault();this.adjust(-this.activeTabIndex);break;case ze.FM:e.preventDefault();this.adjust(this.tabs.length-this.activeTabIndex-1);break}};this.adjustForward=e=>{const t=this.tabs;let i=0;i=this.activetab?t.indexOf(this.activetab)+1:1;if(i===t.length){i=0}while(i1){if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}else if(this.activetab&&i===t.indexOf(this.activetab)){break}else if(i+1>=t.length){i=0}else{i+=1}}};this.adjustBackward=e=>{const t=this.tabs;let i=0;i=this.activetab?t.indexOf(this.activetab)-1:0;i=i<0?t.length-1:i;while(i>=0&&t.length>1){if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}else if(i-1<0){i=t.length-1}else{i-=1}}};this.moveToTabByIndex=(e,t)=>{const i=e[t];this.activetab=i;this.prevActiveTabIndex=this.activeTabIndex;this.activeTabIndex=t;i.focus();this.setComponent()}}orientationChanged(){if(this.$fastController.isConnected){this.setTabs();this.setTabPanels();this.handleActiveIndicatorPosition()}}activeidChanged(e,t){if(this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length){this.prevActiveTabIndex=this.tabs.findIndex((t=>t.id===e));this.setTabs();this.setTabPanels();this.handleActiveIndicatorPosition()}}tabsChanged(){if(this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length){this.tabIds=this.getTabIds();this.tabpanelIds=this.getTabPanelIds();this.setTabs();this.setTabPanels();this.handleActiveIndicatorPosition()}}tabpanelsChanged(){if(this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length){this.tabIds=this.getTabIds();this.tabpanelIds=this.getTabPanelIds();this.setTabs();this.setTabPanels();this.handleActiveIndicatorPosition()}}getActiveIndex(){const e=this.activeid;if(e!==undefined){return this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid)}else{return 0}}getTabIds(){return this.tabs.map((e=>{var t;return(t=e.getAttribute("id"))!==null&&t!==void 0?t:`tab-${Io()}`}))}getTabPanelIds(){return this.tabpanels.map((e=>{var t;return(t=e.getAttribute("id"))!==null&&t!==void 0?t:`panel-${Io()}`}))}setComponent(){if(this.activeTabIndex!==this.prevActiveTabIndex){this.activeid=this.tabIds[this.activeTabIndex];this.focusTab();this.change()}}isHorizontal(){return this.orientation===Oa.horizontal}handleActiveIndicatorPosition(){if(this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex){if(this.ticking){this.ticking=false}else{this.ticking=true;this.animateActiveIndicator()}}}animateActiveIndicator(){this.ticking=true;const e=this.isHorizontal()?"gridColumn":"gridRow";const t=this.isHorizontal()?"translateX":"translateY";const i=this.isHorizontal()?"offsetLeft":"offsetTop";const s=this.activeIndicatorRef[i];this.activeIndicatorRef.style[e]=`${this.activeTabIndex+1}`;const o=this.activeIndicatorRef[i];this.activeIndicatorRef.style[e]=`${this.prevActiveTabIndex+1}`;const n=o-s;this.activeIndicatorRef.style.transform=`${t}(${n}px)`;this.activeIndicatorRef.classList.add("activeIndicatorTransition");this.activeIndicatorRef.addEventListener("transitionend",(()=>{this.ticking=false;this.activeIndicatorRef.style[e]=`${this.activeTabIndex+1}`;this.activeIndicatorRef.style.transform=`${t}(0px)`;this.activeIndicatorRef.classList.remove("activeIndicatorTransition")}))}adjust(e){const t=this.tabs.filter((e=>this.isFocusableElement(e)));const i=t.indexOf(this.activetab);const s=(0,Ne.AB)(0,t.length-1,i+e);const o=this.tabs.indexOf(t[s]);if(o>-1){this.moveToTabByIndex(this.tabs,o)}}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback();this.tabIds=this.getTabIds();this.tabpanelIds=this.getTabPanelIds();this.activeTabIndex=this.getActiveIndex()}}f([s.attr],Ta.prototype,"orientation",void 0);f([s.attr],Ta.prototype,"activeid",void 0);f([s.observable],Ta.prototype,"tabs",void 0);f([s.observable],Ta.prototype,"tabpanels",void 0);f([(0,s.attr)({mode:"boolean"})],Ta.prototype,"activeindicator",void 0);f([s.observable],Ta.prototype,"activeIndicatorRef",void 0);f([s.observable],Ta.prototype,"showActiveIndicator",void 0);Pe(Ta,o);const Ea={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};const Ra=(e,t)=>(0,s.html)` + +`;class Da extends Fe{}class Sa extends(Ws(Da)){constructor(){super(...arguments);this.proxy=document.createElement("textarea")}}class Aa extends Sa{constructor(){super(...arguments);this.resize=Ea.none;this.cols=20;this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){if(this.proxy instanceof HTMLTextAreaElement){this.proxy.readOnly=this.readOnly}}autofocusChanged(){if(this.proxy instanceof HTMLTextAreaElement){this.proxy.autofocus=this.autofocus}}listChanged(){if(this.proxy instanceof HTMLTextAreaElement){this.proxy.setAttribute("list",this.list)}}maxlengthChanged(){if(this.proxy instanceof HTMLTextAreaElement){this.proxy.maxLength=this.maxlength}}minlengthChanged(){if(this.proxy instanceof HTMLTextAreaElement){this.proxy.minLength=this.minlength}}spellcheckChanged(){if(this.proxy instanceof HTMLTextAreaElement){this.proxy.spellcheck=this.spellcheck}}select(){this.control.select();this.$emit("select")}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}}f([(0,s.attr)({mode:"boolean"})],Aa.prototype,"readOnly",void 0);f([s.attr],Aa.prototype,"resize",void 0);f([(0,s.attr)({mode:"boolean"})],Aa.prototype,"autofocus",void 0);f([(0,s.attr)({attribute:"form"})],Aa.prototype,"formId",void 0);f([s.attr],Aa.prototype,"list",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Aa.prototype,"maxlength",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Aa.prototype,"minlength",void 0);f([s.attr],Aa.prototype,"name",void 0);f([s.attr],Aa.prototype,"placeholder",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter,mode:"fromView"})],Aa.prototype,"cols",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter,mode:"fromView"})],Aa.prototype,"rows",void 0);f([(0,s.attr)({mode:"boolean"})],Aa.prototype,"spellcheck",void 0);f([s.observable],Aa.prototype,"defaultSlottedNodes",void 0);Pe(Aa,Fr);const Fa=(e,t)=>(0,s.html)` + +`;const La=(e,t)=>(0,s.html)` + +`;const Ma=Object.freeze({[ze.Is.ArrowUp]:{[Yn.t.vertical]:-1},[ze.Is.ArrowDown]:{[Yn.t.vertical]:1},[ze.Is.ArrowLeft]:{[Yn.t.horizontal]:{[Ge.O.ltr]:-1,[Ge.O.rtl]:1}},[ze.Is.ArrowRight]:{[Yn.t.horizontal]:{[Ge.O.ltr]:1,[Ge.O.rtl]:-1}}});class Pa extends Fe{constructor(){super(...arguments);this._activeIndex=0;this.direction=Ge.O.ltr;this.orientation=Yn.t.horizontal}get activeIndex(){s.Observable.track(this,"activeIndex");return this._activeIndex}set activeIndex(e){if(this.$fastController.isConnected){this._activeIndex=(0,Ne.AB)(0,this.focusableElements.length-1,e);s.Observable.notify(this,"activeIndex")}}slottedItemsChanged(){if(this.$fastController.isConnected){this.reduceFocusableElements()}}mouseDownHandler(e){var t;const i=(t=this.focusableElements)===null||t===void 0?void 0:t.findIndex((t=>t.contains(e.target)));if(i>-1&&this.activeIndex!==i){this.setFocusedElement(i)}return true}childItemsChanged(e,t){if(this.$fastController.isConnected){this.reduceFocusableElements()}}connectedCallback(){super.connectedCallback();this.direction=Is(this)}focusinHandler(e){const t=e.relatedTarget;if(!t||this.contains(t)){return}this.setFocusedElement()}getDirectionalIncrementer(e){var t,i,s,o,n;return(n=(s=(i=(t=Ma[e])===null||t===void 0?void 0:t[this.orientation])===null||i===void 0?void 0:i[this.direction])!==null&&s!==void 0?s:(o=Ma[e])===null||o===void 0?void 0:o[this.orientation])!==null&&n!==void 0?n:0}keydownHandler(e){const t=e.key;if(!(t in ze.Is)||e.defaultPrevented||e.shiftKey){return true}const i=this.getDirectionalIncrementer(t);if(!i){return!e.target.closest("[role=radiogroup]")}const s=this.activeIndex+i;if(this.focusableElements[s]){e.preventDefault()}this.setFocusedElement(s);return true}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){var e;const t=(e=this.focusableElements)===null||e===void 0?void 0:e[this.activeIndex];this.focusableElements=this.allSlottedItems.reduce(Pa.reduceFocusableItems,[]);const i=this.focusableElements.indexOf(t);this.activeIndex=Math.max(0,i);this.setFocusableElements()}setFocusedElement(e=this.activeIndex){var t;this.activeIndex=e;this.setFocusableElements();(t=this.focusableElements[this.activeIndex])===null||t===void 0?void 0:t.focus()}static reduceFocusableItems(e,t){var i,s,o,n;const r=t.getAttribute("role")==="radio";const a=(s=(i=t.$fastController)===null||i===void 0?void 0:i.definition.shadowOptions)===null||s===void 0?void 0:s.delegatesFocus;const l=Array.from((n=(o=t.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("*"))!==null&&n!==void 0?n:[]).some((e=>(0,Bn.tp)(e)));if(!t.hasAttribute("disabled")&&!t.hasAttribute("hidden")&&((0,Bn.tp)(t)||r||a||l)){e.push(t);return e}if(t.childElementCount){return e.concat(Array.from(t.children).reduce(Pa.reduceFocusableItems,[]))}return e}setFocusableElements(){if(this.$fastController.isConnected&&this.focusableElements.length>0){this.focusableElements.forEach(((e,t)=>{e.tabIndex=this.activeIndex===t?0:-1}))}}}f([s.observable],Pa.prototype,"direction",void 0);f([s.attr],Pa.prototype,"orientation",void 0);f([s.observable],Pa.prototype,"slottedItems",void 0);f([s.observable],Pa.prototype,"slottedLabel",void 0);f([s.observable],Pa.prototype,"childItems",void 0);class Ha{}f([(0,s.attr)({attribute:"aria-labelledby"})],Ha.prototype,"ariaLabelledby",void 0);f([(0,s.attr)({attribute:"aria-label"})],Ha.prototype,"ariaLabel",void 0);Pe(Ha,je);Pe(Pa,o,Ha);const Va=(e,t)=>(0,s.html)` + ${(0,s.when)((e=>e.tooltipVisible),(0,s.html)` + <${e.tagFor(Os)} + fixed-placement="true" + auto-update-mode="${e=>e.autoUpdateMode}" + vertical-positioning-mode="${e=>e.verticalPositioningMode}" + vertical-default-position="${e=>e.verticalDefaultPosition}" + vertical-inset="${e=>e.verticalInset}" + vertical-scaling="${e=>e.verticalScaling}" + horizontal-positioning-mode="${e=>e.horizontalPositioningMode}" + horizontal-default-position="${e=>e.horizontalDefaultPosition}" + horizontal-scaling="${e=>e.horizontalScaling}" + horizontal-inset="${e=>e.horizontalInset}" + vertical-viewport-lock="${e=>e.horizontalViewportLock}" + horizontal-viewport-lock="${e=>e.verticalViewportLock}" + dir="${e=>e.currentDirection}" + ${(0,s.ref)("region")} + > + + + `)} + `;const za={top:"top",right:"right",bottom:"bottom",left:"left",start:"start",end:"end",topLeft:"top-left",topRight:"top-right",bottomLeft:"bottom-left",bottomRight:"bottom-right",topStart:"top-start",topEnd:"top-end",bottomStart:"bottom-start",bottomEnd:"bottom-end"};class Na extends Fe{constructor(){super(...arguments);this.anchor="";this.delay=300;this.autoUpdateMode="anchor";this.anchorElement=null;this.viewportElement=null;this.verticalPositioningMode="dynamic";this.horizontalPositioningMode="dynamic";this.horizontalInset="false";this.verticalInset="false";this.horizontalScaling="content";this.verticalScaling="content";this.verticalDefaultPosition=undefined;this.horizontalDefaultPosition=undefined;this.tooltipVisible=false;this.currentDirection=Ge.O.ltr;this.showDelayTimer=null;this.hideDelayTimer=null;this.isAnchorHoveredFocused=false;this.isRegionHovered=false;this.handlePositionChange=e=>{this.classList.toggle("top",this.region.verticalPosition==="start");this.classList.toggle("bottom",this.region.verticalPosition==="end");this.classList.toggle("inset-top",this.region.verticalPosition==="insetStart");this.classList.toggle("inset-bottom",this.region.verticalPosition==="insetEnd");this.classList.toggle("center-vertical",this.region.verticalPosition==="center");this.classList.toggle("left",this.region.horizontalPosition==="start");this.classList.toggle("right",this.region.horizontalPosition==="end");this.classList.toggle("inset-left",this.region.horizontalPosition==="insetStart");this.classList.toggle("inset-right",this.region.horizontalPosition==="insetEnd");this.classList.toggle("center-horizontal",this.region.horizontalPosition==="center")};this.handleRegionMouseOver=e=>{this.isRegionHovered=true};this.handleRegionMouseOut=e=>{this.isRegionHovered=false;this.startHideDelayTimer()};this.handleAnchorMouseOver=e=>{if(this.tooltipVisible){this.isAnchorHoveredFocused=true;return}this.startShowDelayTimer()};this.handleAnchorMouseOut=e=>{this.isAnchorHoveredFocused=false;this.clearShowDelayTimer();this.startHideDelayTimer()};this.handleAnchorFocusIn=e=>{this.startShowDelayTimer()};this.handleAnchorFocusOut=e=>{this.isAnchorHoveredFocused=false;this.clearShowDelayTimer();this.startHideDelayTimer()};this.startHideDelayTimer=()=>{this.clearHideDelayTimer();if(!this.tooltipVisible){return}this.hideDelayTimer=window.setTimeout((()=>{this.updateTooltipVisibility()}),60)};this.clearHideDelayTimer=()=>{if(this.hideDelayTimer!==null){clearTimeout(this.hideDelayTimer);this.hideDelayTimer=null}};this.startShowDelayTimer=()=>{if(this.isAnchorHoveredFocused){return}if(this.delay>1){if(this.showDelayTimer===null)this.showDelayTimer=window.setTimeout((()=>{this.startHover()}),this.delay);return}this.startHover()};this.startHover=()=>{this.isAnchorHoveredFocused=true;this.updateTooltipVisibility()};this.clearShowDelayTimer=()=>{if(this.showDelayTimer!==null){clearTimeout(this.showDelayTimer);this.showDelayTimer=null}};this.getAnchor=()=>{const e=this.getRootNode();if(e instanceof ShadowRoot){return e.getElementById(this.anchor)}return document.getElementById(this.anchor)};this.handleDocumentKeydown=e=>{if(!e.defaultPrevented&&this.tooltipVisible){switch(e.key){case ze.F9:this.isAnchorHoveredFocused=false;this.updateTooltipVisibility();this.$emit("dismiss");break}}};this.updateTooltipVisibility=()=>{if(this.visible===false){this.hideTooltip()}else if(this.visible===true){this.showTooltip();return}else{if(this.isAnchorHoveredFocused||this.isRegionHovered){this.showTooltip();return}this.hideTooltip()}};this.showTooltip=()=>{if(this.tooltipVisible){return}this.currentDirection=Is(this);this.tooltipVisible=true;document.addEventListener("keydown",this.handleDocumentKeydown);s.DOM.queueUpdate(this.setRegionProps)};this.hideTooltip=()=>{if(!this.tooltipVisible){return}this.clearHideDelayTimer();if(this.region!==null&&this.region!==undefined){this.region.removeEventListener("positionchange",this.handlePositionChange);this.region.viewportElement=null;this.region.anchorElement=null;this.region.removeEventListener("mouseover",this.handleRegionMouseOver);this.region.removeEventListener("mouseout",this.handleRegionMouseOut)}document.removeEventListener("keydown",this.handleDocumentKeydown);this.tooltipVisible=false};this.setRegionProps=()=>{if(!this.tooltipVisible){return}this.region.viewportElement=this.viewportElement;this.region.anchorElement=this.anchorElement;this.region.addEventListener("positionchange",this.handlePositionChange);this.region.addEventListener("mouseover",this.handleRegionMouseOver,{passive:true});this.region.addEventListener("mouseout",this.handleRegionMouseOut,{passive:true})}}visibleChanged(){if(this.$fastController.isConnected){this.updateTooltipVisibility();this.updateLayout()}}anchorChanged(){if(this.$fastController.isConnected){this.anchorElement=this.getAnchor()}}positionChanged(){if(this.$fastController.isConnected){this.updateLayout()}}anchorElementChanged(e){if(this.$fastController.isConnected){if(e!==null&&e!==undefined){e.removeEventListener("mouseover",this.handleAnchorMouseOver);e.removeEventListener("mouseout",this.handleAnchorMouseOut);e.removeEventListener("focusin",this.handleAnchorFocusIn);e.removeEventListener("focusout",this.handleAnchorFocusOut)}if(this.anchorElement!==null&&this.anchorElement!==undefined){this.anchorElement.addEventListener("mouseover",this.handleAnchorMouseOver,{passive:true});this.anchorElement.addEventListener("mouseout",this.handleAnchorMouseOut,{passive:true});this.anchorElement.addEventListener("focusin",this.handleAnchorFocusIn,{passive:true});this.anchorElement.addEventListener("focusout",this.handleAnchorFocusOut,{passive:true});const e=this.anchorElement.id;if(this.anchorElement.parentElement!==null){this.anchorElement.parentElement.querySelectorAll(":hover").forEach((t=>{if(t.id===e){this.startShowDelayTimer()}}))}}if(this.region!==null&&this.region!==undefined&&this.tooltipVisible){this.region.anchorElement=this.anchorElement}this.updateLayout()}}viewportElementChanged(){if(this.region!==null&&this.region!==undefined){this.region.viewportElement=this.viewportElement}this.updateLayout()}connectedCallback(){super.connectedCallback();this.anchorElement=this.getAnchor();this.updateTooltipVisibility()}disconnectedCallback(){this.hideTooltip();this.clearShowDelayTimer();this.clearHideDelayTimer();super.disconnectedCallback()}updateLayout(){this.verticalPositioningMode="locktodefault";this.horizontalPositioningMode="locktodefault";switch(this.position){case za.top:case za.bottom:this.verticalDefaultPosition=this.position;this.horizontalDefaultPosition="center";break;case za.right:case za.left:case za.start:case za.end:this.verticalDefaultPosition="center";this.horizontalDefaultPosition=this.position;break;case za.topLeft:this.verticalDefaultPosition="top";this.horizontalDefaultPosition="left";break;case za.topRight:this.verticalDefaultPosition="top";this.horizontalDefaultPosition="right";break;case za.bottomLeft:this.verticalDefaultPosition="bottom";this.horizontalDefaultPosition="left";break;case za.bottomRight:this.verticalDefaultPosition="bottom";this.horizontalDefaultPosition="right";break;case za.topStart:this.verticalDefaultPosition="top";this.horizontalDefaultPosition="start";break;case za.topEnd:this.verticalDefaultPosition="top";this.horizontalDefaultPosition="end";break;case za.bottomStart:this.verticalDefaultPosition="bottom";this.horizontalDefaultPosition="start";break;case za.bottomEnd:this.verticalDefaultPosition="bottom";this.horizontalDefaultPosition="end";break;default:this.verticalPositioningMode="dynamic";this.horizontalPositioningMode="dynamic";this.verticalDefaultPosition=void 0;this.horizontalDefaultPosition="center";break}}}f([(0,s.attr)({mode:"boolean"})],Na.prototype,"visible",void 0);f([s.attr],Na.prototype,"anchor",void 0);f([s.attr],Na.prototype,"delay",void 0);f([s.attr],Na.prototype,"position",void 0);f([(0,s.attr)({attribute:"auto-update-mode"})],Na.prototype,"autoUpdateMode",void 0);f([(0,s.attr)({attribute:"horizontal-viewport-lock"})],Na.prototype,"horizontalViewportLock",void 0);f([(0,s.attr)({attribute:"vertical-viewport-lock"})],Na.prototype,"verticalViewportLock",void 0);f([s.observable],Na.prototype,"anchorElement",void 0);f([s.observable],Na.prototype,"viewportElement",void 0);f([s.observable],Na.prototype,"verticalPositioningMode",void 0);f([s.observable],Na.prototype,"horizontalPositioningMode",void 0);f([s.observable],Na.prototype,"horizontalInset",void 0);f([s.observable],Na.prototype,"verticalInset",void 0);f([s.observable],Na.prototype,"horizontalScaling",void 0);f([s.observable],Na.prototype,"verticalScaling",void 0);f([s.observable],Na.prototype,"verticalDefaultPosition",void 0);f([s.observable],Na.prototype,"horizontalDefaultPosition",void 0);f([s.observable],Na.prototype,"tooltipVisible",void 0);f([s.observable],Na.prototype,"currentDirection",void 0);const Ba=(e,t)=>(0,s.html)` + +`;function qa(e){return Ao(e)&&e.getAttribute("role")==="treeitem"}class Ua extends Fe{constructor(){super(...arguments);this.expanded=false;this.focusable=false;this.isNestedItem=()=>qa(this.parentElement);this.handleExpandCollapseButtonClick=e=>{if(!this.disabled&&!e.defaultPrevented){this.expanded=!this.expanded}};this.handleFocus=e=>{this.setAttribute("tabindex","0")};this.handleBlur=e=>{this.setAttribute("tabindex","-1")}}expandedChanged(){if(this.$fastController.isConnected){this.$emit("expanded-change",this)}}selectedChanged(){if(this.$fastController.isConnected){this.$emit("selected-change",this)}}itemsChanged(e,t){if(this.$fastController.isConnected){this.items.forEach((e=>{if(qa(e)){e.nested=true}}))}}static focusItem(e){e.focusable=true;e.focus()}childItemLength(){const e=this.childItems.filter((e=>qa(e)));return e?e.length:0}}f([(0,s.attr)({mode:"boolean"})],Ua.prototype,"expanded",void 0);f([(0,s.attr)({mode:"boolean"})],Ua.prototype,"selected",void 0);f([(0,s.attr)({mode:"boolean"})],Ua.prototype,"disabled",void 0);f([s.observable],Ua.prototype,"focusable",void 0);f([s.observable],Ua.prototype,"childItems",void 0);f([s.observable],Ua.prototype,"items",void 0);f([s.observable],Ua.prototype,"nested",void 0);f([s.observable],Ua.prototype,"renderCollapsedChildren",void 0);Pe(Ua,o);const ja=(e,t)=>(0,s.html)` + +`;class _a extends Fe{constructor(){super(...arguments);this.currentFocused=null;this.handleFocus=e=>{if(this.slottedTreeItems.length<1){return}if(e.target===this){if(this.currentFocused===null){this.currentFocused=this.getValidFocusableItem()}if(this.currentFocused!==null){Ua.focusItem(this.currentFocused)}return}if(this.contains(e.target)){this.setAttribute("tabindex","-1");this.currentFocused=e.target}};this.handleBlur=e=>{if(e.target instanceof HTMLElement&&(e.relatedTarget===null||!this.contains(e.relatedTarget))){this.setAttribute("tabindex","0")}};this.handleKeyDown=e=>{if(e.defaultPrevented){return}if(this.slottedTreeItems.length<1){return true}const t=this.getVisibleNodes();switch(e.key){case ze.Tg:if(t.length){Ua.focusItem(t[0])}return;case ze.FM:if(t.length){Ua.focusItem(t[t.length-1])}return;case ze.kT:if(e.target&&this.isFocusableElement(e.target)){const t=e.target;if(t instanceof Ua&&t.childItemLength()>0&&t.expanded){t.expanded=false}else if(t instanceof Ua&&t.parentElement instanceof Ua){Ua.focusItem(t.parentElement)}}return false;case ze.bb:if(e.target&&this.isFocusableElement(e.target)){const t=e.target;if(t instanceof Ua&&t.childItemLength()>0&&!t.expanded){t.expanded=true}else if(t instanceof Ua&&t.childItemLength()>0){this.focusNextNode(1,e.target)}}return;case ze.HX:if(e.target&&this.isFocusableElement(e.target)){this.focusNextNode(1,e.target)}return;case ze.I5:if(e.target&&this.isFocusableElement(e.target)){this.focusNextNode(-1,e.target)}return;case ze.Mm:this.handleClick(e);return}return true};this.handleSelectedChange=e=>{if(e.defaultPrevented){return}if(!(e.target instanceof Element)||!qa(e.target)){return true}const t=e.target;if(t.selected){if(this.currentSelected&&this.currentSelected!==t){this.currentSelected.selected=false}this.currentSelected=t}else if(!t.selected&&this.currentSelected===t){this.currentSelected=null}return};this.setItems=()=>{const e=this.treeView.querySelector("[aria-selected='true']");this.currentSelected=e;if(this.currentFocused===null||!this.contains(this.currentFocused)){this.currentFocused=this.getValidFocusableItem()}this.nested=this.checkForNestedItems();const t=this.getVisibleNodes();t.forEach((e=>{if(qa(e)){e.nested=this.nested}}))};this.isFocusableElement=e=>qa(e);this.isSelectedElement=e=>e.selected}slottedTreeItemsChanged(){if(this.$fastController.isConnected){this.setItems()}}connectedCallback(){super.connectedCallback();this.setAttribute("tabindex","0");s.DOM.queueUpdate((()=>{this.setItems()}))}handleClick(e){if(e.defaultPrevented){return}if(!(e.target instanceof Element)||!qa(e.target)){return true}const t=e.target;if(!t.disabled){t.selected=!t.selected}return}focusNextNode(e,t){const i=this.getVisibleNodes();if(!i){return}const s=i[i.indexOf(t)+e];if(Ao(s)){Ua.focusItem(s)}}getValidFocusableItem(){const e=this.getVisibleNodes();let t=e.findIndex(this.isSelectedElement);if(t===-1){t=e.findIndex(this.isFocusableElement)}if(t!==-1){return e[t]}return null}checkForNestedItems(){return this.slottedTreeItems.some((e=>qa(e)&&e.querySelector("[role='treeitem']")))}getVisibleNodes(){return Fo(this,"[role='treeitem']")||[]}}f([(0,s.attr)({attribute:"render-collapsed-nodes"})],_a.prototype,"renderCollapsedNodes",void 0);f([s.observable],_a.prototype,"currentSelected",void 0);f([s.observable],_a.prototype,"slottedTreeItems",void 0);class Ka{constructor(e){this.listenerCache=new WeakMap;this.query=e}bind(e){const{query:t}=this;const i=this.constructListener(e);i.bind(t)();t.addListener(i);this.listenerCache.set(e,i)}unbind(e){const t=this.listenerCache.get(e);if(t){this.query.removeListener(t);this.listenerCache.delete(e)}}}class Wa extends Ka{constructor(e,t){super(e);this.styles=t}static with(e){return t=>new Wa(e,t)}constructListener(e){let t=false;const i=this.styles;return function s(){const{matches:o}=this;if(o&&!t){e.$fastController.addStyles(i);t=o}else if(!o&&t){e.$fastController.removeStyles(i);t=o}}}unbind(e){super.unbind(e);e.$fastController.removeStyles(this.styles)}}const Ga=Wa.with(window.matchMedia("(forced-colors)"));const Xa=Wa.with(window.matchMedia("(prefers-color-scheme: dark)"));const Ya=Wa.with(window.matchMedia("(prefers-color-scheme: light)"));class Qa{constructor(e,t,i){this.propertyName=e;this.value=t;this.styles=i}bind(e){s.Observable.getNotifier(e).subscribe(this,this.propertyName);this.handleChange(e,this.propertyName)}unbind(e){s.Observable.getNotifier(e).unsubscribe(this,this.propertyName);e.$fastController.removeStyles(this.styles)}handleChange(e,t){if(e[t]===this.value){e.$fastController.addStyles(this.styles)}else{e.$fastController.removeStyles(this.styles)}}}const Za="not-allowed";const Ja=`:host([hidden]){display:none}`;function el(e){return`${Ja}:host{display:${e}}`}const tl=Ho()?"focus-visible":"focus"}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/232.5419cbec68e3fd0cf431.js.LICENSE.txt b/share/jupyter/lab/static/232.5419cbec68e3fd0cf431.js.LICENSE.txt new file mode 100644 index 0000000..c18ab1d --- /dev/null +++ b/share/jupyter/lab/static/232.5419cbec68e3fd0cf431.js.LICENSE.txt @@ -0,0 +1,14 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ diff --git a/share/jupyter/lab/static/2353.ab70488f07a7c0a7a3fd.js b/share/jupyter/lab/static/2353.ab70488f07a7c0a7a3fd.js new file mode 100644 index 0000000..d9a9ad2 --- /dev/null +++ b/share/jupyter/lab/static/2353.ab70488f07a7c0a7a3fd.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2353,4981],{98128:function(t,e){var r=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.")};Object.defineProperty(e,"__esModule",{value:true});e.Attributes=e.INHERIT=void 0;e.INHERIT="_inherit_";var i=function(){function t(t,e){this.global=e;this.defaults=Object.create(e);this.inherited=Object.create(this.defaults);this.attributes=Object.create(this.inherited);Object.assign(this.defaults,t)}t.prototype.set=function(t,e){this.attributes[t]=e};t.prototype.setList=function(t){Object.assign(this.attributes,t)};t.prototype.get=function(t){var r=this.attributes[t];if(r===e.INHERIT){r=this.global[t]}return r};t.prototype.getExplicit=function(t){if(!this.attributes.hasOwnProperty(t)){return undefined}return this.attributes[t]};t.prototype.getList=function(){var t,e;var i=[];for(var n=0;n=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 o=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,O=[],o;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)O.push(n.value)}catch(E){o={error:E}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(o)throw o.error}}return O};Object.defineProperty(e,"__esModule",{value:true});e.XMLNode=e.TextNode=e.AbstractMmlEmptyNode=e.AbstractMmlBaseNode=e.AbstractMmlLayoutNode=e.AbstractMmlTokenNode=e.AbstractMmlNode=e.indentAttributes=e.TEXCLASSNAMES=e.TEXCLASS=void 0;var E=r(98128);var s=r(84465);e.TEXCLASS={ORD:0,OP:1,BIN:2,REL:3,OPEN:4,CLOSE:5,PUNCT:6,INNER:7,VCENTER:8,NONE:-1};e.TEXCLASSNAMES=["ORD","OP","BIN","REL","OPEN","CLOSE","PUNCT","INNER","VCENTER"];var a=["","thinmathspace","mediummathspace","thickmathspace"];var M=[[0,-1,2,3,0,0,0,1],[-1,-1,0,3,0,0,0,1],[2,2,0,0,2,0,0,2],[3,3,0,0,3,0,0,3],[0,0,0,0,0,0,0,0],[0,-1,2,3,0,0,0,1],[1,1,0,1,1,1,1,1],[1,-1,2,3,1,0,1,1]];e.indentAttributes=["indentalign","indentalignfirst","indentshift","indentshiftfirst"];var l=function(t){i(r,t);function r(e,r,i){if(r===void 0){r={}}if(i===void 0){i=[]}var n=t.call(this,e)||this;n.prevClass=null;n.prevLevel=null;n.texclass=null;if(n.arity<0){n.childNodes=[e.create("inferredMrow")];n.childNodes[0].parent=n}n.setChildren(i);n.attributes=new E.Attributes(e.getNodeClass(n.kind).defaults,e.getNodeClass("math").defaults);n.attributes.setList(r);return n}r.prototype.copy=function(t){var e,r,i,o;if(t===void 0){t=false}var E=this.factory.create(this.kind);E.properties=n({},this.properties);if(this.attributes){var s=this.attributes.getAllAttributes();try{for(var a=O(Object.keys(s)),M=a.next();!M.done;M=a.next()){var l=M.value;if(l!=="id"||t){E.attributes.set(l,s[l])}}}catch(R){e={error:R}}finally{try{if(M&&!M.done&&(r=a.return))r.call(a)}finally{if(e)throw e.error}}}if(this.childNodes&&this.childNodes.length){var u=this.childNodes;if(u.length===1&&u[0].isInferred){u=u[0].childNodes}try{for(var c=O(u),f=c.next();!f.done;f=c.next()){var L=f.value;if(L){E.appendChild(L.copy())}else{E.childNodes.push(null)}}}catch(p){i={error:p}}finally{try{if(f&&!f.done&&(o=c.return))o.call(c)}finally{if(i)throw i.error}}}return E};Object.defineProperty(r.prototype,"texClass",{get:function(){return this.texclass},set:function(t){this.texclass=t},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"isToken",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"isEmbellished",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"isSpacelike",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"linebreakContainer",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"hasNewLine",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"arity",{get:function(){return Infinity},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"isInferred",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"Parent",{get:function(){var t=this.parent;while(t&&t.notParent){t=t.Parent}return t},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"notParent",{get:function(){return false},enumerable:false,configurable:true});r.prototype.setChildren=function(e){if(this.arity<0){return this.childNodes[0].setChildren(e)}return t.prototype.setChildren.call(this,e)};r.prototype.appendChild=function(e){var r,i;var n=this;if(this.arity<0){this.childNodes[0].appendChild(e);return e}if(e.isInferred){if(this.arity===Infinity){e.childNodes.forEach((function(e){return t.prototype.appendChild.call(n,e)}));return e}var o=e;e=this.factory.create("mrow");e.setChildren(o.childNodes);e.attributes=o.attributes;try{for(var E=O(o.getPropertyNames()),s=E.next();!s.done;s=E.next()){var a=s.value;e.setProperty(a,o.getProperty(a))}}catch(M){r={error:M}}finally{try{if(s&&!s.done&&(i=E.return))i.call(E)}finally{if(r)throw r.error}}}return t.prototype.appendChild.call(this,e)};r.prototype.replaceChild=function(e,r){if(this.arity<0){this.childNodes[0].replaceChild(e,r);return e}return t.prototype.replaceChild.call(this,e,r)};r.prototype.core=function(){return this};r.prototype.coreMO=function(){return this};r.prototype.coreIndex=function(){return 0};r.prototype.childPosition=function(){var t,e;var r=this;var i=r.parent;while(i&&i.notParent){r=i;i=i.parent}if(i){var n=0;try{for(var o=O(i.childNodes),E=o.next();!E.done;E=o.next()){var s=E.value;if(s===r){return n}n++}}catch(a){t={error:a}}finally{try{if(E&&!E.done&&(e=o.return))e.call(o)}finally{if(t)throw t.error}}}return null};r.prototype.setTeXclass=function(t){this.getPrevClass(t);return this.texClass!=null?this:t};r.prototype.updateTeXclass=function(t){if(t){this.prevClass=t.prevClass;this.prevLevel=t.prevLevel;t.prevClass=t.prevLevel=null;this.texClass=t.texClass}};r.prototype.getPrevClass=function(t){if(t){this.prevClass=t.texClass;this.prevLevel=t.attributes.get("scriptlevel")}};r.prototype.texSpacing=function(){var t=this.prevClass!=null?this.prevClass:e.TEXCLASS.NONE;var r=this.texClass||e.TEXCLASS.ORD;if(t===e.TEXCLASS.NONE||r===e.TEXCLASS.NONE){return""}if(t===e.TEXCLASS.VCENTER){t=e.TEXCLASS.ORD}if(r===e.TEXCLASS.VCENTER){r=e.TEXCLASS.ORD}var i=M[t][r];if((this.prevLevel>0||this.attributes.get("scriptlevel")>0)&&i>=0){return""}return a[Math.abs(i)]};r.prototype.hasSpacingAttributes=function(){return this.isEmbellished&&this.coreMO().hasSpacingAttributes()};r.prototype.setInheritedAttributes=function(t,e,i,n){var E,s;if(t===void 0){t={}}if(e===void 0){e=false}if(i===void 0){i=0}if(n===void 0){n=false}var a=this.attributes.getAllDefaults();try{for(var M=O(Object.keys(t)),l=M.next();!l.done;l=M.next()){var u=l.value;if(a.hasOwnProperty(u)||r.alwaysInherit.hasOwnProperty(u)){var c=o(t[u],2),f=c[0],L=c[1];var R=(r.noInherit[f]||{})[this.kind]||{};if(!R[u]){this.attributes.setInherited(u,L)}}}}catch(C){E={error:C}}finally{try{if(l&&!l.done&&(s=M.return))s.call(M)}finally{if(E)throw E.error}}var p=this.attributes.getExplicit("displaystyle");if(p===undefined){this.attributes.setInherited("displaystyle",e)}var h=this.attributes.getExplicit("scriptlevel");if(h===undefined){this.attributes.setInherited("scriptlevel",i)}if(n){this.setProperty("texprimestyle",n)}var N=this.arity;if(N>=0&&N!==Infinity&&(N===1&&this.childNodes.length===0||N!==1&&this.childNodes.length!==N)){if(N=0&&e!==Infinity&&(e===1&&this.childNodes.length===0||e!==1&&this.childNodes.length!==e)){this.mError('Wrong number of children for "'+this.kind+'" node',t,true)}}this.verifyChildren(t)};r.prototype.verifyAttributes=function(t){var e,r;if(t["checkAttributes"]){var i=this.attributes;var n=[];try{for(var o=O(i.getExplicitNames()),E=o.next();!E.done;E=o.next()){var s=E.value;if(s.substr(0,5)!=="data-"&&i.getDefault(s)===undefined&&!s.match(/^(?:class|style|id|(?:xlink:)?href)$/)){n.push(s)}}}catch(a){e={error:a}}finally{try{if(E&&!E.done&&(r=o.return))r.call(o)}finally{if(e)throw e.error}}if(n.length){this.mError("Unknown attributes for "+this.kind+" node: "+n.join(", "),t)}}};r.prototype.verifyChildren=function(t){var e,r;try{for(var i=O(this.childNodes),n=i.next();!n.done;n=i.next()){var o=n.value;o.verifyTree(t)}}catch(E){e={error:E}}finally{try{if(n&&!n.done&&(r=i.return))r.call(i)}finally{if(e)throw e.error}}};r.prototype.mError=function(t,e,r){if(r===void 0){r=false}if(this.parent&&this.parent.isKind("merror")){return null}var i=this.factory.create("merror");i.attributes.set("data-mjx-message",t);if(e["fullErrors"]||r){var n=this.factory.create("mtext");var O=this.factory.create("text");O.setText(e["fullErrors"]?t:this.kind);n.appendChild(O);i.appendChild(n);this.parent.replaceChild(i,this)}else{this.parent.replaceChild(i,this);i.appendChild(this)}return i};r.defaults={mathbackground:E.INHERIT,mathcolor:E.INHERIT,mathsize:E.INHERIT,dir:E.INHERIT};r.noInherit={mstyle:{mpadded:{width:true,height:true,depth:true,lspace:true,voffset:true},mtable:{width:true,height:true,depth:true,align:true}},maligngroup:{mrow:{groupalign:true},mtable:{groupalign:true}}};r.alwaysInherit={scriptminsize:true,scriptsizemultiplier:true};r.verifyDefaults={checkArity:true,checkAttributes:false,fullErrors:false,fixMmultiscripts:true,fixMtables:true};return r}(s.AbstractNode);e.AbstractMmlNode=l;var u=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"isToken",{get:function(){return true},enumerable:false,configurable:true});e.prototype.getText=function(){var t,e;var r="";try{for(var i=O(this.childNodes),n=i.next();!n.done;n=i.next()){var o=n.value;if(o instanceof R){r+=o.getText()}}}catch(E){t={error:E}}finally{try{if(n&&!n.done&&(e=i.return))e.call(i)}finally{if(t)throw t.error}}return r};e.prototype.setChildInheritedAttributes=function(t,e,r,i){var n,o;try{for(var E=O(this.childNodes),s=E.next();!s.done;s=E.next()){var a=s.value;if(a instanceof l){a.setInheritedAttributes(t,e,r,i)}}}catch(M){n={error:M}}finally{try{if(s&&!s.done&&(o=E.return))o.call(E)}finally{if(n)throw n.error}}};e.prototype.walkTree=function(t,e){var r,i;t(this,e);try{for(var n=O(this.childNodes),o=n.next();!o.done;o=n.next()){var E=o.value;if(E instanceof l){E.walkTree(t,e)}}}catch(s){r={error:s}}finally{try{if(o&&!o.done&&(i=n.return))i.call(n)}finally{if(r)throw r.error}}return e};e.defaults=n(n({},l.defaults),{mathvariant:"normal",mathsize:E.INHERIT});return e}(l);e.AbstractMmlTokenNode=u;var c=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"isSpacelike",{get:function(){return this.childNodes[0].isSpacelike},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"arity",{get:function(){return-1},enumerable:false,configurable:true});e.prototype.core=function(){return this.childNodes[0]};e.prototype.coreMO=function(){return this.childNodes[0].coreMO()};e.prototype.setTeXclass=function(t){t=this.childNodes[0].setTeXclass(t);this.updateTeXclass(this.childNodes[0]);return t};e.defaults=l.defaults;return e}(l);e.AbstractMmlLayoutNode=c;var f=function(t){i(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(r.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:false,configurable:true});r.prototype.core=function(){return this.childNodes[0]};r.prototype.coreMO=function(){return this.childNodes[0].coreMO()};r.prototype.setTeXclass=function(t){var r,i;this.getPrevClass(t);this.texClass=e.TEXCLASS.ORD;var n=this.childNodes[0];if(n){if(this.isEmbellished||n.isKind("mi")){t=n.setTeXclass(t);this.updateTeXclass(this.core())}else{n.setTeXclass(null);t=this}}else{t=this}try{for(var o=O(this.childNodes.slice(1)),E=o.next();!E.done;E=o.next()){var s=E.value;if(s){s.setTeXclass(null)}}}catch(a){r={error:a}}finally{try{if(E&&!E.done&&(i=o.return))i.call(o)}finally{if(r)throw r.error}}return t};r.defaults=l.defaults;return r}(l);e.AbstractMmlBaseNode=f;var L=function(t){i(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(r.prototype,"isToken",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"isEmbellished",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"isSpacelike",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"linebreakContainer",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"hasNewLine",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"arity",{get:function(){return 0},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"isInferred",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"notParent",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"Parent",{get:function(){return this.parent},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"texClass",{get:function(){return e.TEXCLASS.NONE},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"prevClass",{get:function(){return e.TEXCLASS.NONE},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"prevLevel",{get:function(){return 0},enumerable:false,configurable:true});r.prototype.hasSpacingAttributes=function(){return false};Object.defineProperty(r.prototype,"attributes",{get:function(){return null},enumerable:false,configurable:true});r.prototype.core=function(){return this};r.prototype.coreMO=function(){return this};r.prototype.coreIndex=function(){return 0};r.prototype.childPosition=function(){return 0};r.prototype.setTeXclass=function(t){return t};r.prototype.texSpacing=function(){return""};r.prototype.setInheritedAttributes=function(t,e,r,i){};r.prototype.inheritAttributesFrom=function(t){};r.prototype.verifyTree=function(t){};r.prototype.mError=function(t,e,r){if(r===void 0){r=false}return null};return r}(s.AbstractEmptyNode);e.AbstractMmlEmptyNode=L;var R=function(t){i(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e.text="";return e}Object.defineProperty(e.prototype,"kind",{get:function(){return"text"},enumerable:false,configurable:true});e.prototype.getText=function(){return this.text};e.prototype.setText=function(t){this.text=t;return this};e.prototype.copy=function(){return this.factory.create(this.kind).setText(this.getText())};e.prototype.toString=function(){return this.text};return e}(L);e.TextNode=R;var p=function(t){i(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e.xml=null;e.adaptor=null;return e}Object.defineProperty(e.prototype,"kind",{get:function(){return"XML"},enumerable:false,configurable:true});e.prototype.getXML=function(){return this.xml};e.prototype.setXML=function(t,e){if(e===void 0){e=null}this.xml=t;this.adaptor=e;return this};e.prototype.getSerializedXML=function(){return this.adaptor.serializeXML(this.xml)};e.prototype.copy=function(){return this.factory.create(this.kind).setXML(this.adaptor.clone(this.xml))};e.prototype.toString=function(){return"XML data"};return e}(L);e.XMLNode=p},38669: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(E){o={error:E}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(o)throw o.error}}return O};var o=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.")};Object.defineProperty(e,"__esModule",{value:true});e.MmlMo=void 0;var E=r(80747);var s=r(56893);var a=r(41278);var M=function(t){i(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e._texClass=null;e.lspace=5/18;e.rspace=5/18;return e}Object.defineProperty(e.prototype,"texClass",{get:function(){if(this._texClass===null){var t=this.getText();var e=O(this.handleExplicitForm(this.getForms()),3),r=e[0],i=e[1],n=e[2];var o=this.constructor.OPTABLE;var s=o[r][t]||o[i][t]||o[n][t];return s?s[2]:E.TEXCLASS.REL}return this._texClass},set:function(t){this._texClass=t},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"kind",{get:function(){return"mo"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isEmbellished",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"hasNewLine",{get:function(){return this.attributes.get("linebreak")==="newline"},enumerable:false,configurable:true});e.prototype.coreParent=function(){var t=this;var e=this;var r=this.factory.getNodeClass("math");while(e&&e.isEmbellished&&e.coreMO()===this&&!(e instanceof r)){t=e;e=e.parent}return t};e.prototype.coreText=function(t){if(!t){return""}if(t.isEmbellished){return t.coreMO().getText()}while(((t.isKind("mrow")||t.isKind("TeXAtom")&&t.texClass!==E.TEXCLASS.VCENTER||t.isKind("mstyle")||t.isKind("mphantom"))&&t.childNodes.length===1||t.isKind("munderover"))&&t.childNodes[0]){t=t.childNodes[0]}return t.isToken?t.getText():""};e.prototype.hasSpacingAttributes=function(){return this.attributes.isSet("lspace")||this.attributes.isSet("rspace")};Object.defineProperty(e.prototype,"isAccent",{get:function(){var t=false;var e=this.coreParent().parent;if(e){var r=e.isKind("mover")?e.childNodes[e.over].coreMO()?"accent":"":e.isKind("munder")?e.childNodes[e.under].coreMO()?"accentunder":"":e.isKind("munderover")?this===e.childNodes[e.over].coreMO()?"accent":this===e.childNodes[e.under].coreMO()?"accentunder":"":"";if(r){var i=e.attributes.getExplicit(r);t=i!==undefined?t:this.attributes.get("accent")}}return t},enumerable:false,configurable:true});e.prototype.setTeXclass=function(t){var e=this.attributes.getList("form","fence"),r=e.form,i=e.fence;if(this.getProperty("texClass")===undefined&&(this.attributes.isSet("lspace")||this.attributes.isSet("rspace"))){return null}if(i&&this.texClass===E.TEXCLASS.REL){if(r==="prefix"){this.texClass=E.TEXCLASS.OPEN}if(r==="postfix"){this.texClass=E.TEXCLASS.CLOSE}}return this.adjustTeXclass(t)};e.prototype.adjustTeXclass=function(t){var e=this.texClass;var r=this.prevClass;if(e===E.TEXCLASS.NONE){return t}if(t){if(t.getProperty("autoOP")&&(e===E.TEXCLASS.BIN||e===E.TEXCLASS.REL)){r=t.texClass=E.TEXCLASS.ORD}r=this.prevClass=t.texClass||E.TEXCLASS.ORD;this.prevLevel=this.attributes.getInherited("scriptlevel")}else{r=this.prevClass=E.TEXCLASS.NONE}if(e===E.TEXCLASS.BIN&&(r===E.TEXCLASS.NONE||r===E.TEXCLASS.BIN||r===E.TEXCLASS.OP||r===E.TEXCLASS.REL||r===E.TEXCLASS.OPEN||r===E.TEXCLASS.PUNCT)){this.texClass=E.TEXCLASS.ORD}else if(r===E.TEXCLASS.BIN&&(e===E.TEXCLASS.REL||e===E.TEXCLASS.CLOSE||e===E.TEXCLASS.PUNCT)){t.texClass=this.prevClass=E.TEXCLASS.ORD}else if(e===E.TEXCLASS.BIN){var i=this;var n=this.parent;while(n&&n.parent&&n.isEmbellished&&(n.childNodes.length===1||!n.isKind("mrow")&&n.core()===i)){i=n;n=n.parent}if(n.childNodes[n.childNodes.length-1]===i){this.texClass=E.TEXCLASS.ORD}}return this};e.prototype.setInheritedAttributes=function(e,r,i,n){if(e===void 0){e={}}if(r===void 0){r=false}if(i===void 0){i=0}if(n===void 0){n=false}t.prototype.setInheritedAttributes.call(this,e,r,i,n);var O=this.getText();this.checkOperatorTable(O);this.checkPseudoScripts(O);this.checkPrimes(O);this.checkMathAccent(O)};e.prototype.checkOperatorTable=function(t){var e,r;var i=O(this.handleExplicitForm(this.getForms()),3),n=i[0],E=i[1],a=i[2];this.attributes.setInherited("form",n);var M=this.constructor.OPTABLE;var l=M[n][t]||M[E][t]||M[a][t];if(l){if(this.getProperty("texClass")===undefined){this.texClass=l[2]}try{for(var u=o(Object.keys(l[3]||{})),c=u.next();!c.done;c=u.next()){var f=c.value;this.attributes.setInherited(f,l[3][f])}}catch(p){e={error:p}}finally{try{if(c&&!c.done&&(r=u.return))r.call(u)}finally{if(e)throw e.error}}this.lspace=(l[0]+1)/18;this.rspace=(l[1]+1)/18}else{var L=(0,s.getRange)(t);if(L){if(this.getProperty("texClass")===undefined){this.texClass=L[2]}var R=this.constructor.MMLSPACING[L[2]];this.lspace=(R[0]+1)/18;this.rspace=(R[1]+1)/18}}};e.prototype.getForms=function(){var t=this;var e=this.parent;var r=this.Parent;while(r&&r.isEmbellished){t=e;e=r.parent;r=r.Parent}if(e&&e.isKind("mrow")&&e.nonSpaceLength()!==1){if(e.firstNonSpace()===t){return["prefix","infix","postfix"]}if(e.lastNonSpace()===t){return["postfix","infix","prefix"]}}return["infix","prefix","postfix"]};e.prototype.handleExplicitForm=function(t){if(this.attributes.isSet("form")){var e=this.attributes.get("form");t=[e].concat(t.filter((function(t){return t!==e})))}return t};e.prototype.checkPseudoScripts=function(t){var e=this.constructor.pseudoScripts;if(!t.match(e))return;var r=this.coreParent().Parent;var i=!r||!(r.isKind("msubsup")&&!r.isKind("msub"));this.setProperty("pseudoscript",i);if(i){this.attributes.setInherited("lspace",0);this.attributes.setInherited("rspace",0)}};e.prototype.checkPrimes=function(t){var e=this.constructor.primes;if(!t.match(e))return;var r=this.constructor.remapPrimes;var i=(0,a.unicodeString)((0,a.unicodeChars)(t).map((function(t){return r[t]})));this.setProperty("primes",i)};e.prototype.checkMathAccent=function(t){var e=this.Parent;if(this.getProperty("mathaccent")!==undefined||!e||!e.isKind("munderover"))return;var r=e.childNodes[0];if(r.isEmbellished&&r.coreMO()===this)return;var i=this.constructor.mathaccents;if(t.match(i)){this.setProperty("mathaccent",true)}};e.defaults=n(n({},E.AbstractMmlTokenNode.defaults),{form:"infix",fence:false,separator:false,lspace:"thickmathspace",rspace:"thickmathspace",stretchy:false,symmetric:false,maxsize:"infinity",minsize:"0em",largeop:false,movablelimits:false,accent:false,linebreak:"auto",lineleading:"1ex",linebreakstyle:"before",indentalign:"auto",indentshift:"0",indenttarget:"",indentalignfirst:"indentalign",indentshiftfirst:"indentshift",indentalignlast:"indentalign",indentshiftlast:"indentshift"});e.MMLSPACING=s.MMLSPACING;e.OPTABLE=s.OPTABLE;e.pseudoScripts=new RegExp(["^[\"'*`","ª","°","²-´","¹","º","‘-‟","′-‷⁗","⁰ⁱ","⁴-ⁿ","₀-₎","]+$"].join(""));e.primes=new RegExp(["^[\"'`","‘-‟","]+$"].join(""));e.remapPrimes={34:8243,39:8242,96:8245,8216:8245,8217:8242,8218:8242,8219:8245,8220:8246,8221:8243,8222:8243,8223:8246};e.mathaccents=new RegExp(["^[","´́ˊ","`̀ˋ","¨̈","~̃˜","¯̄ˉ","˘̆","ˇ̌","^̂ˆ","→⃗","˙̇","˚̊","⃛","⃜","]$"].join(""));return e}(E.AbstractMmlTokenNode);e.MmlMo=M},56893: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.")};Object.defineProperty(e,"__esModule",{value:true});e.OPTABLE=e.MMLSPACING=e.getRange=e.RANGES=e.MO=e.OPDEF=void 0;var n=r(80747);function O(t,e,r,i){if(r===void 0){r=n.TEXCLASS.BIN}if(i===void 0){i=null}return[t,e,r,i]}e.OPDEF=O;e.MO={ORD:O(0,0,n.TEXCLASS.ORD),ORD11:O(1,1,n.TEXCLASS.ORD),ORD21:O(2,1,n.TEXCLASS.ORD),ORD02:O(0,2,n.TEXCLASS.ORD),ORD55:O(5,5,n.TEXCLASS.ORD),NONE:O(0,0,n.TEXCLASS.NONE),OP:O(1,2,n.TEXCLASS.OP,{largeop:true,movablelimits:true,symmetric:true}),OPFIXED:O(1,2,n.TEXCLASS.OP,{largeop:true,movablelimits:true}),INTEGRAL:O(0,1,n.TEXCLASS.OP,{largeop:true,symmetric:true}),INTEGRAL2:O(1,2,n.TEXCLASS.OP,{largeop:true,symmetric:true}),BIN3:O(3,3,n.TEXCLASS.BIN),BIN4:O(4,4,n.TEXCLASS.BIN),BIN01:O(0,1,n.TEXCLASS.BIN),BIN5:O(5,5,n.TEXCLASS.BIN),TALLBIN:O(4,4,n.TEXCLASS.BIN,{stretchy:true}),BINOP:O(4,4,n.TEXCLASS.BIN,{largeop:true,movablelimits:true}),REL:O(5,5,n.TEXCLASS.REL),REL1:O(1,1,n.TEXCLASS.REL,{stretchy:true}),REL4:O(4,4,n.TEXCLASS.REL),RELSTRETCH:O(5,5,n.TEXCLASS.REL,{stretchy:true}),RELACCENT:O(5,5,n.TEXCLASS.REL,{accent:true}),WIDEREL:O(5,5,n.TEXCLASS.REL,{accent:true,stretchy:true}),OPEN:O(0,0,n.TEXCLASS.OPEN,{fence:true,stretchy:true,symmetric:true}),CLOSE:O(0,0,n.TEXCLASS.CLOSE,{fence:true,stretchy:true,symmetric:true}),INNER:O(0,0,n.TEXCLASS.INNER),PUNCT:O(0,3,n.TEXCLASS.PUNCT),ACCENT:O(0,0,n.TEXCLASS.ORD,{accent:true}),WIDEACCENT:O(0,0,n.TEXCLASS.ORD,{accent:true,stretchy:true})};e.RANGES=[[32,127,n.TEXCLASS.REL,"mo"],[160,191,n.TEXCLASS.ORD,"mo"],[192,591,n.TEXCLASS.ORD,"mi"],[688,879,n.TEXCLASS.ORD,"mo"],[880,6688,n.TEXCLASS.ORD,"mi"],[6832,6911,n.TEXCLASS.ORD,"mo"],[6912,7615,n.TEXCLASS.ORD,"mi"],[7616,7679,n.TEXCLASS.ORD,"mo"],[7680,8191,n.TEXCLASS.ORD,"mi"],[8192,8303,n.TEXCLASS.ORD,"mo"],[8304,8351,n.TEXCLASS.ORD,"mo"],[8448,8527,n.TEXCLASS.ORD,"mi"],[8528,8591,n.TEXCLASS.ORD,"mn"],[8592,8703,n.TEXCLASS.REL,"mo"],[8704,8959,n.TEXCLASS.BIN,"mo"],[8960,9215,n.TEXCLASS.ORD,"mo"],[9312,9471,n.TEXCLASS.ORD,"mn"],[9472,10223,n.TEXCLASS.ORD,"mo"],[10224,10239,n.TEXCLASS.REL,"mo"],[10240,10495,n.TEXCLASS.ORD,"mtext"],[10496,10623,n.TEXCLASS.REL,"mo"],[10624,10751,n.TEXCLASS.ORD,"mo"],[10752,11007,n.TEXCLASS.BIN,"mo"],[11008,11055,n.TEXCLASS.ORD,"mo"],[11056,11087,n.TEXCLASS.REL,"mo"],[11088,11263,n.TEXCLASS.ORD,"mo"],[11264,11744,n.TEXCLASS.ORD,"mi"],[11776,11903,n.TEXCLASS.ORD,"mo"],[11904,12255,n.TEXCLASS.ORD,"mi","normal"],[12272,12351,n.TEXCLASS.ORD,"mo"],[12352,42143,n.TEXCLASS.ORD,"mi","normal"],[42192,43055,n.TEXCLASS.ORD,"mi"],[43056,43071,n.TEXCLASS.ORD,"mn"],[43072,55295,n.TEXCLASS.ORD,"mi"],[63744,64255,n.TEXCLASS.ORD,"mi","normal"],[64256,65023,n.TEXCLASS.ORD,"mi"],[65024,65135,n.TEXCLASS.ORD,"mo"],[65136,65791,n.TEXCLASS.ORD,"mi"],[65792,65935,n.TEXCLASS.ORD,"mn"],[65936,74751,n.TEXCLASS.ORD,"mi","normal"],[74752,74879,n.TEXCLASS.ORD,"mn"],[74880,113823,n.TEXCLASS.ORD,"mi","normal"],[113824,119391,n.TEXCLASS.ORD,"mo"],[119648,119679,n.TEXCLASS.ORD,"mn"],[119808,120781,n.TEXCLASS.ORD,"mi"],[120782,120831,n.TEXCLASS.ORD,"mn"],[122624,129023,n.TEXCLASS.ORD,"mo"],[129024,129279,n.TEXCLASS.REL,"mo"],[129280,129535,n.TEXCLASS.ORD,"mo"],[131072,195103,n.TEXCLASS.ORD,"mi","normnal"]];function o(t){var r,n;var O=t.codePointAt(0);try{for(var o=i(e.RANGES),E=o.next();!E.done;E=o.next()){var s=E.value;if(O<=s[1]){if(O>=s[0]){return s}break}}}catch(a){r={error:a}}finally{try{if(E&&!E.done&&(n=o.return))n.call(o)}finally{if(r)throw r.error}}return null}e.getRange=o;e.MMLSPACING=[[0,0],[1,2],[3,3],[4,4],[0,0],[0,0],[0,3]];e.OPTABLE={prefix:{"(":e.MO.OPEN,"+":e.MO.BIN01,"-":e.MO.BIN01,"[":e.MO.OPEN,"{":e.MO.OPEN,"|":e.MO.OPEN,"||":[0,0,n.TEXCLASS.BIN,{fence:true,stretchy:true,symmetric:true}],"|||":[0,0,n.TEXCLASS.ORD,{fence:true,stretchy:true,symmetric:true}],"¬":e.MO.ORD21,"±":e.MO.BIN01,"‖":[0,0,n.TEXCLASS.ORD,{fence:true,stretchy:true}],"‘":[0,0,n.TEXCLASS.OPEN,{fence:true}],"“":[0,0,n.TEXCLASS.OPEN,{fence:true}],"ⅅ":e.MO.ORD21,"ⅆ":O(2,0,n.TEXCLASS.ORD),"∀":e.MO.ORD21,"∂":e.MO.ORD21,"∃":e.MO.ORD21,"∄":e.MO.ORD21,"∇":e.MO.ORD21,"∏":e.MO.OP,"∐":e.MO.OP,"∑":e.MO.OP,"−":e.MO.BIN01,"∓":e.MO.BIN01,"√":[1,1,n.TEXCLASS.ORD,{stretchy:true}],"∛":e.MO.ORD11,"∜":e.MO.ORD11,"∠":e.MO.ORD,"∡":e.MO.ORD,"∢":e.MO.ORD,"∫":e.MO.INTEGRAL,"∬":e.MO.INTEGRAL,"∭":e.MO.INTEGRAL,"∮":e.MO.INTEGRAL,"∯":e.MO.INTEGRAL,"∰":e.MO.INTEGRAL,"∱":e.MO.INTEGRAL,"∲":e.MO.INTEGRAL,"∳":e.MO.INTEGRAL,"⋀":e.MO.OP,"⋁":e.MO.OP,"⋂":e.MO.OP,"⋃":e.MO.OP,"⌈":e.MO.OPEN,"⌊":e.MO.OPEN,"〈":e.MO.OPEN,"❲":e.MO.OPEN,"⟦":e.MO.OPEN,"⟨":e.MO.OPEN,"⟪":e.MO.OPEN,"⟬":e.MO.OPEN,"⟮":e.MO.OPEN,"⦀":[0,0,n.TEXCLASS.ORD,{fence:true,stretchy:true}],"⦃":e.MO.OPEN,"⦅":e.MO.OPEN,"⦇":e.MO.OPEN,"⦉":e.MO.OPEN,"⦋":e.MO.OPEN,"⦍":e.MO.OPEN,"⦏":e.MO.OPEN,"⦑":e.MO.OPEN,"⦓":e.MO.OPEN,"⦕":e.MO.OPEN,"⦗":e.MO.OPEN,"⧼":e.MO.OPEN,"⨀":e.MO.OP,"⨁":e.MO.OP,"⨂":e.MO.OP,"⨃":e.MO.OP,"⨄":e.MO.OP,"⨅":e.MO.OP,"⨆":e.MO.OP,"⨇":e.MO.OP,"⨈":e.MO.OP,"⨉":e.MO.OP,"⨊":e.MO.OP,"⨋":e.MO.INTEGRAL2,"⨌":e.MO.INTEGRAL,"⨍":e.MO.INTEGRAL2,"⨎":e.MO.INTEGRAL2,"⨏":e.MO.INTEGRAL2,"⨐":e.MO.OP,"⨑":e.MO.OP,"⨒":e.MO.OP,"⨓":e.MO.OP,"⨔":e.MO.OP,"⨕":e.MO.INTEGRAL2,"⨖":e.MO.INTEGRAL2,"⨗":e.MO.INTEGRAL2,"⨘":e.MO.INTEGRAL2,"⨙":e.MO.INTEGRAL2,"⨚":e.MO.INTEGRAL2,"⨛":e.MO.INTEGRAL2,"⨜":e.MO.INTEGRAL2,"⫼":e.MO.OP,"⫿":e.MO.OP},postfix:{"!!":O(1,0),"!":[1,0,n.TEXCLASS.CLOSE,null],'"':e.MO.ACCENT,"&":e.MO.ORD,")":e.MO.CLOSE,"++":O(0,0),"--":O(0,0),"..":O(0,0),"...":e.MO.ORD,"'":e.MO.ACCENT,"]":e.MO.CLOSE,"^":e.MO.WIDEACCENT,_:e.MO.WIDEACCENT,"`":e.MO.ACCENT,"|":e.MO.CLOSE,"}":e.MO.CLOSE,"~":e.MO.WIDEACCENT,"||":[0,0,n.TEXCLASS.BIN,{fence:true,stretchy:true,symmetric:true}],"|||":[0,0,n.TEXCLASS.ORD,{fence:true,stretchy:true,symmetric:true}],"¨":e.MO.ACCENT,"ª":e.MO.ACCENT,"¯":e.MO.WIDEACCENT,"°":e.MO.ORD,"²":e.MO.ACCENT,"³":e.MO.ACCENT,"´":e.MO.ACCENT,"¸":e.MO.ACCENT,"¹":e.MO.ACCENT,"º":e.MO.ACCENT,"ˆ":e.MO.WIDEACCENT,"ˇ":e.MO.WIDEACCENT,"ˉ":e.MO.WIDEACCENT,"ˊ":e.MO.ACCENT,"ˋ":e.MO.ACCENT,"ˍ":e.MO.WIDEACCENT,"˘":e.MO.ACCENT,"˙":e.MO.ACCENT,"˚":e.MO.ACCENT,"˜":e.MO.WIDEACCENT,"˝":e.MO.ACCENT,"˷":e.MO.WIDEACCENT,"̂":e.MO.WIDEACCENT,"̑":e.MO.ACCENT,"϶":e.MO.REL,"‖":[0,0,n.TEXCLASS.ORD,{fence:true,stretchy:true}],"’":[0,0,n.TEXCLASS.CLOSE,{fence:true}],"‚":e.MO.ACCENT,"‛":e.MO.ACCENT,"”":[0,0,n.TEXCLASS.CLOSE,{fence:true}],"„":e.MO.ACCENT,"‟":e.MO.ACCENT,"′":e.MO.ORD,"″":e.MO.ACCENT,"‴":e.MO.ACCENT,"‵":e.MO.ACCENT,"‶":e.MO.ACCENT,"‷":e.MO.ACCENT,"‾":e.MO.WIDEACCENT,"⁗":e.MO.ACCENT,"⃛":e.MO.ACCENT,"⃜":e.MO.ACCENT,"⌉":e.MO.CLOSE,"⌋":e.MO.CLOSE,"〉":e.MO.CLOSE,"⎴":e.MO.WIDEACCENT,"⎵":e.MO.WIDEACCENT,"⏜":e.MO.WIDEACCENT,"⏝":e.MO.WIDEACCENT,"⏞":e.MO.WIDEACCENT,"⏟":e.MO.WIDEACCENT,"⏠":e.MO.WIDEACCENT,"⏡":e.MO.WIDEACCENT,"■":e.MO.BIN3,"□":e.MO.BIN3,"▪":e.MO.BIN3,"▫":e.MO.BIN3,"▭":e.MO.BIN3,"▮":e.MO.BIN3,"▯":e.MO.BIN3,"▰":e.MO.BIN3,"▱":e.MO.BIN3,"▲":e.MO.BIN4,"▴":e.MO.BIN4,"▶":e.MO.BIN4,"▷":e.MO.BIN4,"▸":e.MO.BIN4,"▼":e.MO.BIN4,"▾":e.MO.BIN4,"◀":e.MO.BIN4,"◁":e.MO.BIN4,"◂":e.MO.BIN4,"◄":e.MO.BIN4,"◅":e.MO.BIN4,"◆":e.MO.BIN4,"◇":e.MO.BIN4,"◈":e.MO.BIN4,"◉":e.MO.BIN4,"◌":e.MO.BIN4,"◍":e.MO.BIN4,"◎":e.MO.BIN4,"●":e.MO.BIN4,"◖":e.MO.BIN4,"◗":e.MO.BIN4,"◦":e.MO.BIN4,"♭":e.MO.ORD02,"♮":e.MO.ORD02,"♯":e.MO.ORD02,"❳":e.MO.CLOSE,"⟧":e.MO.CLOSE,"⟩":e.MO.CLOSE,"⟫":e.MO.CLOSE,"⟭":e.MO.CLOSE,"⟯":e.MO.CLOSE,"⦀":[0,0,n.TEXCLASS.ORD,{fence:true,stretchy:true}],"⦄":e.MO.CLOSE,"⦆":e.MO.CLOSE,"⦈":e.MO.CLOSE,"⦊":e.MO.CLOSE,"⦌":e.MO.CLOSE,"⦎":e.MO.CLOSE,"⦐":e.MO.CLOSE,"⦒":e.MO.CLOSE,"⦔":e.MO.CLOSE,"⦖":e.MO.CLOSE,"⦘":e.MO.CLOSE,"⧽":e.MO.CLOSE},infix:{"!=":e.MO.BIN4,"#":e.MO.ORD,$:e.MO.ORD,"%":[3,3,n.TEXCLASS.ORD,null],"&&":e.MO.BIN4,"":e.MO.ORD,"*":e.MO.BIN3,"**":O(1,1),"*=":e.MO.BIN4,"+":e.MO.BIN4,"+=":e.MO.BIN4,",":[0,3,n.TEXCLASS.PUNCT,{linebreakstyle:"after",separator:true}],"-":e.MO.BIN4,"-=":e.MO.BIN4,"->":e.MO.BIN5,".":[0,3,n.TEXCLASS.PUNCT,{separator:true}],"/":e.MO.ORD11,"//":O(1,1),"/=":e.MO.BIN4,":":[1,2,n.TEXCLASS.REL,null],":=":e.MO.BIN4,";":[0,3,n.TEXCLASS.PUNCT,{linebreakstyle:"after",separator:true}],"<":e.MO.REL,"<=":e.MO.BIN5,"<>":O(1,1),"=":e.MO.REL,"==":e.MO.BIN4,">":e.MO.REL,">=":e.MO.BIN5,"?":[1,1,n.TEXCLASS.CLOSE,null],"@":e.MO.ORD11,"\\":e.MO.ORD,"^":e.MO.ORD11,_:e.MO.ORD11,"|":[2,2,n.TEXCLASS.ORD,{fence:true,stretchy:true,symmetric:true}],"||":[2,2,n.TEXCLASS.BIN,{fence:true,stretchy:true,symmetric:true}],"|||":[2,2,n.TEXCLASS.ORD,{fence:true,stretchy:true,symmetric:true}],"±":e.MO.BIN4,"·":e.MO.BIN4,"×":e.MO.BIN4,"÷":e.MO.BIN4,"ʹ":e.MO.ORD,"̀":e.MO.ACCENT,"́":e.MO.ACCENT,"̃":e.MO.WIDEACCENT,"̄":e.MO.ACCENT,"̆":e.MO.ACCENT,"̇":e.MO.ACCENT,"̈":e.MO.ACCENT,"̌":e.MO.ACCENT,"̲":e.MO.WIDEACCENT,"̸":e.MO.REL4,"―":[0,0,n.TEXCLASS.ORD,{stretchy:true}],"‗":[0,0,n.TEXCLASS.ORD,{stretchy:true}],"†":e.MO.BIN3,"‡":e.MO.BIN3,"•":e.MO.BIN4,"…":e.MO.INNER,"⁃":e.MO.BIN4,"⁄":e.MO.TALLBIN,"⁡":e.MO.NONE,"⁢":e.MO.NONE,"⁣":[0,0,n.TEXCLASS.NONE,{linebreakstyle:"after",separator:true}],"⁤":e.MO.NONE,"⃗":e.MO.ACCENT,"ℑ":e.MO.ORD,"ℓ":e.MO.ORD,"℘":e.MO.ORD,"ℜ":e.MO.ORD,"←":e.MO.WIDEREL,"↑":e.MO.RELSTRETCH,"→":e.MO.WIDEREL,"↓":e.MO.RELSTRETCH,"↔":e.MO.WIDEREL,"↕":e.MO.RELSTRETCH,"↖":e.MO.RELSTRETCH,"↗":e.MO.RELSTRETCH,"↘":e.MO.RELSTRETCH,"↙":e.MO.RELSTRETCH,"↚":e.MO.RELACCENT,"↛":e.MO.RELACCENT,"↜":e.MO.WIDEREL,"↝":e.MO.WIDEREL,"↞":e.MO.WIDEREL,"↟":e.MO.WIDEREL,"↠":e.MO.WIDEREL,"↡":e.MO.RELSTRETCH,"↢":e.MO.WIDEREL,"↣":e.MO.WIDEREL,"↤":e.MO.WIDEREL,"↥":e.MO.RELSTRETCH,"↦":e.MO.WIDEREL,"↧":e.MO.RELSTRETCH,"↨":e.MO.RELSTRETCH,"↩":e.MO.WIDEREL,"↪":e.MO.WIDEREL,"↫":e.MO.WIDEREL,"↬":e.MO.WIDEREL,"↭":e.MO.WIDEREL,"↮":e.MO.RELACCENT,"↯":e.MO.RELSTRETCH,"↰":e.MO.RELSTRETCH,"↱":e.MO.RELSTRETCH,"↲":e.MO.RELSTRETCH,"↳":e.MO.RELSTRETCH,"↴":e.MO.RELSTRETCH,"↵":e.MO.RELSTRETCH,"↶":e.MO.RELACCENT,"↷":e.MO.RELACCENT,"↸":e.MO.REL,"↹":e.MO.WIDEREL,"↺":e.MO.REL,"↻":e.MO.REL,"↼":e.MO.WIDEREL,"↽":e.MO.WIDEREL,"↾":e.MO.RELSTRETCH,"↿":e.MO.RELSTRETCH,"⇀":e.MO.WIDEREL,"⇁":e.MO.WIDEREL,"⇂":e.MO.RELSTRETCH,"⇃":e.MO.RELSTRETCH,"⇄":e.MO.WIDEREL,"⇅":e.MO.RELSTRETCH,"⇆":e.MO.WIDEREL,"⇇":e.MO.WIDEREL,"⇈":e.MO.RELSTRETCH,"⇉":e.MO.WIDEREL,"⇊":e.MO.RELSTRETCH,"⇋":e.MO.WIDEREL,"⇌":e.MO.WIDEREL,"⇍":e.MO.RELACCENT,"⇎":e.MO.RELACCENT,"⇏":e.MO.RELACCENT,"⇐":e.MO.WIDEREL,"⇑":e.MO.RELSTRETCH,"⇒":e.MO.WIDEREL,"⇓":e.MO.RELSTRETCH,"⇔":e.MO.WIDEREL,"⇕":e.MO.RELSTRETCH,"⇖":e.MO.RELSTRETCH,"⇗":e.MO.RELSTRETCH,"⇘":e.MO.RELSTRETCH,"⇙":e.MO.RELSTRETCH,"⇚":e.MO.WIDEREL,"⇛":e.MO.WIDEREL,"⇜":e.MO.WIDEREL,"⇝":e.MO.WIDEREL,"⇞":e.MO.REL,"⇟":e.MO.REL,"⇠":e.MO.WIDEREL,"⇡":e.MO.RELSTRETCH,"⇢":e.MO.WIDEREL,"⇣":e.MO.RELSTRETCH,"⇤":e.MO.WIDEREL,"⇥":e.MO.WIDEREL,"⇦":e.MO.WIDEREL,"⇧":e.MO.RELSTRETCH,"⇨":e.MO.WIDEREL,"⇩":e.MO.RELSTRETCH,"⇪":e.MO.RELSTRETCH,"⇫":e.MO.RELSTRETCH,"⇬":e.MO.RELSTRETCH,"⇭":e.MO.RELSTRETCH,"⇮":e.MO.RELSTRETCH,"⇯":e.MO.RELSTRETCH,"⇰":e.MO.WIDEREL,"⇱":e.MO.REL,"⇲":e.MO.REL,"⇳":e.MO.RELSTRETCH,"⇴":e.MO.RELACCENT,"⇵":e.MO.RELSTRETCH,"⇶":e.MO.WIDEREL,"⇷":e.MO.RELACCENT,"⇸":e.MO.RELACCENT,"⇹":e.MO.RELACCENT,"⇺":e.MO.RELACCENT,"⇻":e.MO.RELACCENT,"⇼":e.MO.RELACCENT,"⇽":e.MO.WIDEREL,"⇾":e.MO.WIDEREL,"⇿":e.MO.WIDEREL,"∁":O(1,2,n.TEXCLASS.ORD),"∅":e.MO.ORD,"∆":e.MO.BIN3,"∈":e.MO.REL,"∉":e.MO.REL,"∊":e.MO.REL,"∋":e.MO.REL,"∌":e.MO.REL,"∍":e.MO.REL,"∎":e.MO.BIN3,"−":e.MO.BIN4,"∓":e.MO.BIN4,"∔":e.MO.BIN4,"∕":e.MO.TALLBIN,"∖":e.MO.BIN4,"∗":e.MO.BIN4,"∘":e.MO.BIN4,"∙":e.MO.BIN4,"∝":e.MO.REL,"∞":e.MO.ORD,"∟":e.MO.REL,"∣":e.MO.REL,"∤":e.MO.REL,"∥":e.MO.REL,"∦":e.MO.REL,"∧":e.MO.BIN4,"∨":e.MO.BIN4,"∩":e.MO.BIN4,"∪":e.MO.BIN4,"∴":e.MO.REL,"∵":e.MO.REL,"∶":e.MO.REL,"∷":e.MO.REL,"∸":e.MO.BIN4,"∹":e.MO.REL,"∺":e.MO.BIN4,"∻":e.MO.REL,"∼":e.MO.REL,"∽":e.MO.REL,"∽̱":e.MO.BIN3,"∾":e.MO.REL,"∿":e.MO.BIN3,"≀":e.MO.BIN4,"≁":e.MO.REL,"≂":e.MO.REL,"≂̸":e.MO.REL,"≃":e.MO.REL,"≄":e.MO.REL,"≅":e.MO.REL,"≆":e.MO.REL,"≇":e.MO.REL,"≈":e.MO.REL,"≉":e.MO.REL,"≊":e.MO.REL,"≋":e.MO.REL,"≌":e.MO.REL,"≍":e.MO.REL,"≎":e.MO.REL,"≎̸":e.MO.REL,"≏":e.MO.REL,"≏̸":e.MO.REL,"≐":e.MO.REL,"≑":e.MO.REL,"≒":e.MO.REL,"≓":e.MO.REL,"≔":e.MO.REL,"≕":e.MO.REL,"≖":e.MO.REL,"≗":e.MO.REL,"≘":e.MO.REL,"≙":e.MO.REL,"≚":e.MO.REL,"≛":e.MO.REL,"≜":e.MO.REL,"≝":e.MO.REL,"≞":e.MO.REL,"≟":e.MO.REL,"≠":e.MO.REL,"≡":e.MO.REL,"≢":e.MO.REL,"≣":e.MO.REL,"≤":e.MO.REL,"≥":e.MO.REL,"≦":e.MO.REL,"≦̸":e.MO.REL,"≧":e.MO.REL,"≨":e.MO.REL,"≩":e.MO.REL,"≪":e.MO.REL,"≪̸":e.MO.REL,"≫":e.MO.REL,"≫̸":e.MO.REL,"≬":e.MO.REL,"≭":e.MO.REL,"≮":e.MO.REL,"≯":e.MO.REL,"≰":e.MO.REL,"≱":e.MO.REL,"≲":e.MO.REL,"≳":e.MO.REL,"≴":e.MO.REL,"≵":e.MO.REL,"≶":e.MO.REL,"≷":e.MO.REL,"≸":e.MO.REL,"≹":e.MO.REL,"≺":e.MO.REL,"≻":e.MO.REL,"≼":e.MO.REL,"≽":e.MO.REL,"≾":e.MO.REL,"≿":e.MO.REL,"≿̸":e.MO.REL,"⊀":e.MO.REL,"⊁":e.MO.REL,"⊂":e.MO.REL,"⊂⃒":e.MO.REL,"⊃":e.MO.REL,"⊃⃒":e.MO.REL,"⊄":e.MO.REL,"⊅":e.MO.REL,"⊆":e.MO.REL,"⊇":e.MO.REL,"⊈":e.MO.REL,"⊉":e.MO.REL,"⊊":e.MO.REL,"⊋":e.MO.REL,"⊌":e.MO.BIN4,"⊍":e.MO.BIN4,"⊎":e.MO.BIN4,"⊏":e.MO.REL,"⊏̸":e.MO.REL,"⊐":e.MO.REL,"⊐̸":e.MO.REL,"⊑":e.MO.REL,"⊒":e.MO.REL,"⊓":e.MO.BIN4,"⊔":e.MO.BIN4,"⊕":e.MO.BIN4,"⊖":e.MO.BIN4,"⊗":e.MO.BIN4,"⊘":e.MO.BIN4,"⊙":e.MO.BIN4,"⊚":e.MO.BIN4,"⊛":e.MO.BIN4,"⊜":e.MO.BIN4,"⊝":e.MO.BIN4,"⊞":e.MO.BIN4,"⊟":e.MO.BIN4,"⊠":e.MO.BIN4,"⊡":e.MO.BIN4,"⊢":e.MO.REL,"⊣":e.MO.REL,"⊤":e.MO.ORD55,"⊥":e.MO.REL,"⊦":e.MO.REL,"⊧":e.MO.REL,"⊨":e.MO.REL,"⊩":e.MO.REL,"⊪":e.MO.REL,"⊫":e.MO.REL,"⊬":e.MO.REL,"⊭":e.MO.REL,"⊮":e.MO.REL,"⊯":e.MO.REL,"⊰":e.MO.REL,"⊱":e.MO.REL,"⊲":e.MO.REL,"⊳":e.MO.REL,"⊴":e.MO.REL,"⊵":e.MO.REL,"⊶":e.MO.REL,"⊷":e.MO.REL,"⊸":e.MO.REL,"⊹":e.MO.REL,"⊺":e.MO.BIN4,"⊻":e.MO.BIN4,"⊼":e.MO.BIN4,"⊽":e.MO.BIN4,"⊾":e.MO.BIN3,"⊿":e.MO.BIN3,"⋄":e.MO.BIN4,"⋅":e.MO.BIN4,"⋆":e.MO.BIN4,"⋇":e.MO.BIN4,"⋈":e.MO.REL,"⋉":e.MO.BIN4,"⋊":e.MO.BIN4,"⋋":e.MO.BIN4,"⋌":e.MO.BIN4,"⋍":e.MO.REL,"⋎":e.MO.BIN4,"⋏":e.MO.BIN4,"⋐":e.MO.REL,"⋑":e.MO.REL,"⋒":e.MO.BIN4,"⋓":e.MO.BIN4,"⋔":e.MO.REL,"⋕":e.MO.REL,"⋖":e.MO.REL,"⋗":e.MO.REL,"⋘":e.MO.REL,"⋙":e.MO.REL,"⋚":e.MO.REL,"⋛":e.MO.REL,"⋜":e.MO.REL,"⋝":e.MO.REL,"⋞":e.MO.REL,"⋟":e.MO.REL,"⋠":e.MO.REL,"⋡":e.MO.REL,"⋢":e.MO.REL,"⋣":e.MO.REL,"⋤":e.MO.REL,"⋥":e.MO.REL,"⋦":e.MO.REL,"⋧":e.MO.REL,"⋨":e.MO.REL,"⋩":e.MO.REL,"⋪":e.MO.REL,"⋫":e.MO.REL,"⋬":e.MO.REL,"⋭":e.MO.REL,"⋮":e.MO.ORD55,"⋯":e.MO.INNER,"⋰":e.MO.REL,"⋱":[5,5,n.TEXCLASS.INNER,null],"⋲":e.MO.REL,"⋳":e.MO.REL,"⋴":e.MO.REL,"⋵":e.MO.REL,"⋶":e.MO.REL,"⋷":e.MO.REL,"⋸":e.MO.REL,"⋹":e.MO.REL,"⋺":e.MO.REL,"⋻":e.MO.REL,"⋼":e.MO.REL,"⋽":e.MO.REL,"⋾":e.MO.REL,"⋿":e.MO.REL,"⌅":e.MO.BIN3,"⌆":e.MO.BIN3,"⌢":e.MO.REL4,"⌣":e.MO.REL4,"〈":e.MO.OPEN,"〉":e.MO.CLOSE,"⎪":e.MO.ORD,"⎯":[0,0,n.TEXCLASS.ORD,{stretchy:true}],"⎰":e.MO.OPEN,"⎱":e.MO.CLOSE,"─":e.MO.ORD,"△":e.MO.BIN4,"▵":e.MO.BIN4,"▹":e.MO.BIN4,"▽":e.MO.BIN4,"▿":e.MO.BIN4,"◃":e.MO.BIN4,"◯":e.MO.BIN3,"♠":e.MO.ORD,"♡":e.MO.ORD,"♢":e.MO.ORD,"♣":e.MO.ORD,"❘":e.MO.REL,"⟰":e.MO.RELSTRETCH,"⟱":e.MO.RELSTRETCH,"⟵":e.MO.WIDEREL,"⟶":e.MO.WIDEREL,"⟷":e.MO.WIDEREL,"⟸":e.MO.WIDEREL,"⟹":e.MO.WIDEREL,"⟺":e.MO.WIDEREL,"⟻":e.MO.WIDEREL,"⟼":e.MO.WIDEREL,"⟽":e.MO.WIDEREL,"⟾":e.MO.WIDEREL,"⟿":e.MO.WIDEREL,"⤀":e.MO.RELACCENT,"⤁":e.MO.RELACCENT,"⤂":e.MO.RELACCENT,"⤃":e.MO.RELACCENT,"⤄":e.MO.RELACCENT,"⤅":e.MO.RELACCENT,"⤆":e.MO.RELACCENT,"⤇":e.MO.RELACCENT,"⤈":e.MO.REL,"⤉":e.MO.REL,"⤊":e.MO.RELSTRETCH,"⤋":e.MO.RELSTRETCH,"⤌":e.MO.WIDEREL,"⤍":e.MO.WIDEREL,"⤎":e.MO.WIDEREL,"⤏":e.MO.WIDEREL,"⤐":e.MO.WIDEREL,"⤑":e.MO.RELACCENT,"⤒":e.MO.RELSTRETCH,"⤓":e.MO.RELSTRETCH,"⤔":e.MO.RELACCENT,"⤕":e.MO.RELACCENT,"⤖":e.MO.RELACCENT,"⤗":e.MO.RELACCENT,"⤘":e.MO.RELACCENT,"⤙":e.MO.RELACCENT,"⤚":e.MO.RELACCENT,"⤛":e.MO.RELACCENT,"⤜":e.MO.RELACCENT,"⤝":e.MO.RELACCENT,"⤞":e.MO.RELACCENT,"⤟":e.MO.RELACCENT,"⤠":e.MO.RELACCENT,"⤡":e.MO.RELSTRETCH,"⤢":e.MO.RELSTRETCH,"⤣":e.MO.REL,"⤤":e.MO.REL,"⤥":e.MO.REL,"⤦":e.MO.REL,"⤧":e.MO.REL,"⤨":e.MO.REL,"⤩":e.MO.REL,"⤪":e.MO.REL,"⤫":e.MO.REL,"⤬":e.MO.REL,"⤭":e.MO.REL,"⤮":e.MO.REL,"⤯":e.MO.REL,"⤰":e.MO.REL,"⤱":e.MO.REL,"⤲":e.MO.REL,"⤳":e.MO.RELACCENT,"⤴":e.MO.REL,"⤵":e.MO.REL,"⤶":e.MO.REL,"⤷":e.MO.REL,"⤸":e.MO.REL,"⤹":e.MO.REL,"⤺":e.MO.RELACCENT,"⤻":e.MO.RELACCENT,"⤼":e.MO.RELACCENT,"⤽":e.MO.RELACCENT,"⤾":e.MO.REL,"⤿":e.MO.REL,"⥀":e.MO.REL,"⥁":e.MO.REL,"⥂":e.MO.RELACCENT,"⥃":e.MO.RELACCENT,"⥄":e.MO.RELACCENT,"⥅":e.MO.RELACCENT,"⥆":e.MO.RELACCENT,"⥇":e.MO.RELACCENT,"⥈":e.MO.RELACCENT,"⥉":e.MO.REL,"⥊":e.MO.RELACCENT,"⥋":e.MO.RELACCENT,"⥌":e.MO.REL,"⥍":e.MO.REL,"⥎":e.MO.WIDEREL,"⥏":e.MO.RELSTRETCH,"⥐":e.MO.WIDEREL,"⥑":e.MO.RELSTRETCH,"⥒":e.MO.WIDEREL,"⥓":e.MO.WIDEREL,"⥔":e.MO.RELSTRETCH,"⥕":e.MO.RELSTRETCH,"⥖":e.MO.RELSTRETCH,"⥗":e.MO.RELSTRETCH,"⥘":e.MO.RELSTRETCH,"⥙":e.MO.RELSTRETCH,"⥚":e.MO.WIDEREL,"⥛":e.MO.WIDEREL,"⥜":e.MO.RELSTRETCH,"⥝":e.MO.RELSTRETCH,"⥞":e.MO.WIDEREL,"⥟":e.MO.WIDEREL,"⥠":e.MO.RELSTRETCH,"⥡":e.MO.RELSTRETCH,"⥢":e.MO.RELACCENT,"⥣":e.MO.REL,"⥤":e.MO.RELACCENT,"⥥":e.MO.REL,"⥦":e.MO.RELACCENT,"⥧":e.MO.RELACCENT,"⥨":e.MO.RELACCENT,"⥩":e.MO.RELACCENT,"⥪":e.MO.RELACCENT,"⥫":e.MO.RELACCENT,"⥬":e.MO.RELACCENT,"⥭":e.MO.RELACCENT,"⥮":e.MO.RELSTRETCH,"⥯":e.MO.RELSTRETCH,"⥰":e.MO.RELACCENT,"⥱":e.MO.RELACCENT,"⥲":e.MO.RELACCENT,"⥳":e.MO.RELACCENT,"⥴":e.MO.RELACCENT,"⥵":e.MO.RELACCENT,"⥶":e.MO.RELACCENT,"⥷":e.MO.RELACCENT,"⥸":e.MO.RELACCENT,"⥹":e.MO.RELACCENT,"⥺":e.MO.RELACCENT,"⥻":e.MO.RELACCENT,"⥼":e.MO.RELACCENT,"⥽":e.MO.RELACCENT,"⥾":e.MO.REL,"⥿":e.MO.REL,"⦁":e.MO.BIN3,"⦂":e.MO.BIN3,"⦙":e.MO.BIN3,"⦚":e.MO.BIN3,"⦛":e.MO.BIN3,"⦜":e.MO.BIN3,"⦝":e.MO.BIN3,"⦞":e.MO.BIN3,"⦟":e.MO.BIN3,"⦠":e.MO.BIN3,"⦡":e.MO.BIN3,"⦢":e.MO.BIN3,"⦣":e.MO.BIN3,"⦤":e.MO.BIN3,"⦥":e.MO.BIN3,"⦦":e.MO.BIN3,"⦧":e.MO.BIN3,"⦨":e.MO.BIN3,"⦩":e.MO.BIN3,"⦪":e.MO.BIN3,"⦫":e.MO.BIN3,"⦬":e.MO.BIN3,"⦭":e.MO.BIN3,"⦮":e.MO.BIN3,"⦯":e.MO.BIN3,"⦰":e.MO.BIN3,"⦱":e.MO.BIN3,"⦲":e.MO.BIN3,"⦳":e.MO.BIN3,"⦴":e.MO.BIN3,"⦵":e.MO.BIN3,"⦶":e.MO.BIN4,"⦷":e.MO.BIN4,"⦸":e.MO.BIN4,"⦹":e.MO.BIN4,"⦺":e.MO.BIN4,"⦻":e.MO.BIN4,"⦼":e.MO.BIN4,"⦽":e.MO.BIN4,"⦾":e.MO.BIN4,"⦿":e.MO.BIN4,"⧀":e.MO.REL,"⧁":e.MO.REL,"⧂":e.MO.BIN3,"⧃":e.MO.BIN3,"⧄":e.MO.BIN4,"⧅":e.MO.BIN4,"⧆":e.MO.BIN4,"⧇":e.MO.BIN4,"⧈":e.MO.BIN4,"⧉":e.MO.BIN3,"⧊":e.MO.BIN3,"⧋":e.MO.BIN3,"⧌":e.MO.BIN3,"⧍":e.MO.BIN3,"⧎":e.MO.REL,"⧏":e.MO.REL,"⧏̸":e.MO.REL,"⧐":e.MO.REL,"⧐̸":e.MO.REL,"⧑":e.MO.REL,"⧒":e.MO.REL,"⧓":e.MO.REL,"⧔":e.MO.REL,"⧕":e.MO.REL,"⧖":e.MO.BIN4,"⧗":e.MO.BIN4,"⧘":e.MO.BIN3,"⧙":e.MO.BIN3,"⧛":e.MO.BIN3,"⧜":e.MO.BIN3,"⧝":e.MO.BIN3,"⧞":e.MO.REL,"⧟":e.MO.BIN3,"⧠":e.MO.BIN3,"⧡":e.MO.REL,"⧢":e.MO.BIN4,"⧣":e.MO.REL,"⧤":e.MO.REL,"⧥":e.MO.REL,"⧦":e.MO.REL,"⧧":e.MO.BIN3,"⧨":e.MO.BIN3,"⧩":e.MO.BIN3,"⧪":e.MO.BIN3,"⧫":e.MO.BIN3,"⧬":e.MO.BIN3,"⧭":e.MO.BIN3,"⧮":e.MO.BIN3,"⧯":e.MO.BIN3,"⧰":e.MO.BIN3,"⧱":e.MO.BIN3,"⧲":e.MO.BIN3,"⧳":e.MO.BIN3,"⧴":e.MO.REL,"⧵":e.MO.BIN4,"⧶":e.MO.BIN4,"⧷":e.MO.BIN4,"⧸":e.MO.BIN3,"⧹":e.MO.BIN3,"⧺":e.MO.BIN3,"⧻":e.MO.BIN3,"⧾":e.MO.BIN4,"⧿":e.MO.BIN4,"⨝":e.MO.BIN3,"⨞":e.MO.BIN3,"⨟":e.MO.BIN3,"⨠":e.MO.BIN3,"⨡":e.MO.BIN3,"⨢":e.MO.BIN4,"⨣":e.MO.BIN4,"⨤":e.MO.BIN4,"⨥":e.MO.BIN4,"⨦":e.MO.BIN4,"⨧":e.MO.BIN4,"⨨":e.MO.BIN4,"⨩":e.MO.BIN4,"⨪":e.MO.BIN4,"⨫":e.MO.BIN4,"⨬":e.MO.BIN4,"⨭":e.MO.BIN4,"⨮":e.MO.BIN4,"⨯":e.MO.BIN4,"⨰":e.MO.BIN4,"⨱":e.MO.BIN4,"⨲":e.MO.BIN4,"⨳":e.MO.BIN4,"⨴":e.MO.BIN4,"⨵":e.MO.BIN4,"⨶":e.MO.BIN4,"⨷":e.MO.BIN4,"⨸":e.MO.BIN4,"⨹":e.MO.BIN4,"⨺":e.MO.BIN4,"⨻":e.MO.BIN4,"⨼":e.MO.BIN4,"⨽":e.MO.BIN4,"⨾":e.MO.BIN4,"⨿":e.MO.BIN4,"⩀":e.MO.BIN4,"⩁":e.MO.BIN4,"⩂":e.MO.BIN4,"⩃":e.MO.BIN4,"⩄":e.MO.BIN4,"⩅":e.MO.BIN4,"⩆":e.MO.BIN4,"⩇":e.MO.BIN4,"⩈":e.MO.BIN4,"⩉":e.MO.BIN4,"⩊":e.MO.BIN4,"⩋":e.MO.BIN4,"⩌":e.MO.BIN4,"⩍":e.MO.BIN4,"⩎":e.MO.BIN4,"⩏":e.MO.BIN4,"⩐":e.MO.BIN4,"⩑":e.MO.BIN4,"⩒":e.MO.BIN4,"⩓":e.MO.BIN4,"⩔":e.MO.BIN4,"⩕":e.MO.BIN4,"⩖":e.MO.BIN4,"⩗":e.MO.BIN4,"⩘":e.MO.BIN4,"⩙":e.MO.REL,"⩚":e.MO.BIN4,"⩛":e.MO.BIN4,"⩜":e.MO.BIN4,"⩝":e.MO.BIN4,"⩞":e.MO.BIN4,"⩟":e.MO.BIN4,"⩠":e.MO.BIN4,"⩡":e.MO.BIN4,"⩢":e.MO.BIN4,"⩣":e.MO.BIN4,"⩤":e.MO.BIN4,"⩥":e.MO.BIN4,"⩦":e.MO.REL,"⩧":e.MO.REL,"⩨":e.MO.REL,"⩩":e.MO.REL,"⩪":e.MO.REL,"⩫":e.MO.REL,"⩬":e.MO.REL,"⩭":e.MO.REL,"⩮":e.MO.REL,"⩯":e.MO.REL,"⩰":e.MO.REL,"⩱":e.MO.BIN4,"⩲":e.MO.BIN4,"⩳":e.MO.REL,"⩴":e.MO.REL,"⩵":e.MO.REL,"⩶":e.MO.REL,"⩷":e.MO.REL,"⩸":e.MO.REL,"⩹":e.MO.REL,"⩺":e.MO.REL,"⩻":e.MO.REL,"⩼":e.MO.REL,"⩽":e.MO.REL,"⩽̸":e.MO.REL,"⩾":e.MO.REL,"⩾̸":e.MO.REL,"⩿":e.MO.REL,"⪀":e.MO.REL,"⪁":e.MO.REL,"⪂":e.MO.REL,"⪃":e.MO.REL,"⪄":e.MO.REL,"⪅":e.MO.REL,"⪆":e.MO.REL,"⪇":e.MO.REL,"⪈":e.MO.REL,"⪉":e.MO.REL,"⪊":e.MO.REL,"⪋":e.MO.REL,"⪌":e.MO.REL,"⪍":e.MO.REL,"⪎":e.MO.REL,"⪏":e.MO.REL,"⪐":e.MO.REL,"⪑":e.MO.REL,"⪒":e.MO.REL,"⪓":e.MO.REL,"⪔":e.MO.REL,"⪕":e.MO.REL,"⪖":e.MO.REL,"⪗":e.MO.REL,"⪘":e.MO.REL,"⪙":e.MO.REL,"⪚":e.MO.REL,"⪛":e.MO.REL,"⪜":e.MO.REL,"⪝":e.MO.REL,"⪞":e.MO.REL,"⪟":e.MO.REL,"⪠":e.MO.REL,"⪡":e.MO.REL,"⪡̸":e.MO.REL,"⪢":e.MO.REL,"⪢̸":e.MO.REL,"⪣":e.MO.REL,"⪤":e.MO.REL,"⪥":e.MO.REL,"⪦":e.MO.REL,"⪧":e.MO.REL,"⪨":e.MO.REL,"⪩":e.MO.REL,"⪪":e.MO.REL,"⪫":e.MO.REL,"⪬":e.MO.REL,"⪭":e.MO.REL,"⪮":e.MO.REL,"⪯":e.MO.REL,"⪯̸":e.MO.REL,"⪰":e.MO.REL,"⪰̸":e.MO.REL,"⪱":e.MO.REL,"⪲":e.MO.REL,"⪳":e.MO.REL,"⪴":e.MO.REL,"⪵":e.MO.REL,"⪶":e.MO.REL,"⪷":e.MO.REL,"⪸":e.MO.REL,"⪹":e.MO.REL,"⪺":e.MO.REL,"⪻":e.MO.REL,"⪼":e.MO.REL,"⪽":e.MO.REL,"⪾":e.MO.REL,"⪿":e.MO.REL,"⫀":e.MO.REL,"⫁":e.MO.REL,"⫂":e.MO.REL,"⫃":e.MO.REL,"⫄":e.MO.REL,"⫅":e.MO.REL,"⫆":e.MO.REL,"⫇":e.MO.REL,"⫈":e.MO.REL,"⫉":e.MO.REL,"⫊":e.MO.REL,"⫋":e.MO.REL,"⫌":e.MO.REL,"⫍":e.MO.REL,"⫎":e.MO.REL,"⫏":e.MO.REL,"⫐":e.MO.REL,"⫑":e.MO.REL,"⫒":e.MO.REL,"⫓":e.MO.REL,"⫔":e.MO.REL,"⫕":e.MO.REL,"⫖":e.MO.REL,"⫗":e.MO.REL,"⫘":e.MO.REL,"⫙":e.MO.REL,"⫚":e.MO.REL,"⫛":e.MO.REL,"⫝":e.MO.REL,"⫝̸":e.MO.REL,"⫞":e.MO.REL,"⫟":e.MO.REL,"⫠":e.MO.REL,"⫡":e.MO.REL,"⫢":e.MO.REL,"⫣":e.MO.REL,"⫤":e.MO.REL,"⫥":e.MO.REL,"⫦":e.MO.REL,"⫧":e.MO.REL,"⫨":e.MO.REL,"⫩":e.MO.REL,"⫪":e.MO.REL,"⫫":e.MO.REL,"⫬":e.MO.REL,"⫭":e.MO.REL,"⫮":e.MO.REL,"⫯":e.MO.REL,"⫰":e.MO.REL,"⫱":e.MO.REL,"⫲":e.MO.REL,"⫳":e.MO.REL,"⫴":e.MO.BIN4,"⫵":e.MO.BIN4,"⫶":e.MO.BIN4,"⫷":e.MO.REL,"⫸":e.MO.REL,"⫹":e.MO.REL,"⫺":e.MO.REL,"⫻":e.MO.BIN4,"⫽":e.MO.BIN4,"⫾":e.MO.BIN3,"⭅":e.MO.RELSTRETCH,"⭆":e.MO.RELSTRETCH,"〈":e.MO.OPEN,"〉":e.MO.CLOSE,"︷":e.MO.WIDEACCENT,"︸":e.MO.WIDEACCENT}};e.OPTABLE.infix["^"]=e.MO.WIDEREL;e.OPTABLE.infix._=e.MO.WIDEREL;e.OPTABLE.infix["⫝̸"]=e.MO.REL},84465:function(t,e){var r=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 i=this&&this.__assign||function(){i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r=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.")};Object.defineProperty(e,"__esModule",{value:true});e.AbstractEmptyNode=e.AbstractNode=void 0;var O=function(){function t(t,e,r){var i,O;if(e===void 0){e={}}if(r===void 0){r=[]}this.factory=t;this.parent=null;this.properties={};this.childNodes=[];try{for(var o=n(Object.keys(e)),E=o.next();!E.done;E=o.next()){var s=E.value;this.setProperty(s,e[s])}}catch(a){i={error:a}}finally{try{if(E&&!E.done&&(O=o.return))O.call(o)}finally{if(i)throw i.error}}if(r.length){this.setChildren(r)}}Object.defineProperty(t.prototype,"kind",{get:function(){return"unknown"},enumerable:false,configurable:true});t.prototype.setProperty=function(t,e){this.properties[t]=e};t.prototype.getProperty=function(t){return this.properties[t]};t.prototype.getPropertyNames=function(){return Object.keys(this.properties)};t.prototype.getAllProperties=function(){return this.properties};t.prototype.removeProperty=function(){var t,e;var r=[];for(var i=0;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 i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,O=[],o;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)O.push(n.value)}catch(E){o={error:E}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(o)throw o.error}}return O};var n=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,O;i0)&&!(n=i.next()).done)O.push(n.value)}catch(E){o={error:E}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(o)throw o.error}}return O};var i=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,O;i{s.d(t,{A:()=>a});var i=s(57991);var r=s(63221);const n=(e,t)=>i.A.lang.round(r.A.parse(e)[t]);const a=n},46884:(e,t,s)=>{s.d(t,{A:()=>n});var i=s(70416);var r=s(1218);var n=(0,i.K2)(((e,t)=>{let s;if(t==="sandbox"){s=(0,r.Ltv)("#i"+e)}const i=t==="sandbox"?(0,r.Ltv)(s.nodes()[0].contentDocument.body):(0,r.Ltv)("body");const n=i.select(`[id="${e}"]`);return n}),"getDiagramElement")},10628:(e,t,s)=>{s.d(t,{o:()=>r});var i=s(70416);var r=(0,i.K2)((()=>`\n /* Font Awesome icon styling - consolidated */\n .label-icon {\n display: inline-block;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n }\n \n .node .label-icon path {\n fill: currentColor;\n stroke: revert;\n stroke-width: revert;\n }\n`),"getIconStyles")},47925:(e,t,s)=>{s.d(t,{P:()=>n});var i=s(42418);var r=s(70416);var n=(0,r.K2)(((e,t,s,n)=>{e.attr("class",s);const{width:o,height:l,x:c,y:h}=a(e,t);(0,i.a$)(e,l,o,n);const d=u(c,h,o,l,t);e.attr("viewBox",d);r.Rm.debug(`viewBox configured: ${d} with padding: ${t}`)}),"setupViewPortForSVG");var a=(0,r.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 u=(0,r.K2)(((e,t,s,i,r)=>`${e-r} ${t-r} ${s} ${i}`),"createViewBox")},2434:(e,t,s)=>{s.d(t,{diagram:()=>L});var i=s(10628);var r=s(57028);var n=s(46884);var a=s(47925);var u=s(78188);var o=s(25301);var l=s(46103);var c=s(47655);var h=s(15164);var d=s(55750);var p=s(95035);var f=s(29131);var b=s(42418);var k=s(70416);var g=s(1218);var A=s(27574);var y=s(3635);var m="flowchart-";var E=class{constructor(){this.vertexCounter=0;this.config=(0,b.D7)();this.vertices=new Map;this.edges=[];this.classes=new Map;this.subGraphs=[];this.subGraphLookup=new Map;this.tooltips=new Map;this.subCount=0;this.firstGraphFlag=true;this.secCount=-1;this.posCrossRef=[];this.funs=[];this.setAccTitle=b.SV;this.setAccDescription=b.EI;this.setDiagramTitle=b.ke;this.getAccTitle=b.iN;this.getAccDescription=b.m7;this.getDiagramTitle=b.ab;this.funs.push(this.setupToolTips.bind(this));this.addVertex=this.addVertex.bind(this);this.firstGraph=this.firstGraph.bind(this);this.setDirection=this.setDirection.bind(this);this.addSubGraph=this.addSubGraph.bind(this);this.addLink=this.addLink.bind(this);this.setLink=this.setLink.bind(this);this.updateLink=this.updateLink.bind(this);this.addClass=this.addClass.bind(this);this.setClass=this.setClass.bind(this);this.destructLink=this.destructLink.bind(this);this.setClickEvent=this.setClickEvent.bind(this);this.setTooltip=this.setTooltip.bind(this);this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this);this.setClickFun=this.setClickFun.bind(this);this.bindFunctions=this.bindFunctions.bind(this);this.lex={firstGraph:this.firstGraph.bind(this)};this.clear();this.setGen("gen-2")}static{(0,k.K2)(this,"FlowDB")}sanitizeText(e){return b.Y2.sanitizeText(e,this.config)}lookUpDomId(e){for(const t of this.vertices.values()){if(t.id===e){return t.domId}}return e}addVertex(e,t,s,i,n,a,u={},o){if(!e||e.trim().length===0){return}let l;if(o!==void 0){let e;if(!o.includes("\n")){e="{\n"+o+"\n}"}else{e=o+"\n"}l=(0,r.H)(e,{schema:r.r})}const h=this.edges.find((t=>t.id===e));if(h){const e=l;if(e?.animate!==void 0){h.animate=e.animate}if(e?.animation!==void 0){h.animation=e.animation}if(e?.curve!==void 0){h.interpolate=e.curve}return}let d;let p=this.vertices.get(e);if(p===void 0){p={id:e,labelType:"text",domId:m+e+"-"+this.vertexCounter,styles:[],classes:[]};this.vertices.set(e,p)}this.vertexCounter++;if(t!==void 0){this.config=(0,b.D7)();d=this.sanitizeText(t.text.trim());p.labelType=t.type;if(d.startsWith('"')&&d.endsWith('"')){d=d.substring(1,d.length-1)}p.text=d}else{if(p.text===void 0){p.text=e}}if(s!==void 0){p.type=s}if(i!==void 0&&i!==null){i.forEach((e=>{p.styles.push(e)}))}if(n!==void 0&&n!==null){n.forEach((e=>{p.classes.push(e)}))}if(a!==void 0){p.dir=a}if(p.props===void 0){p.props=u}else if(u!==void 0){Object.assign(p.props,u)}if(l!==void 0){if(l.shape){if(l.shape!==l.shape.toLowerCase()||l.shape.includes("_")){throw new Error(`No such shape: ${l.shape}. Shape names should be lowercase.`)}else if(!(0,c.aP)(l.shape)){throw new Error(`No such shape: ${l.shape}.`)}p.type=l?.shape}if(l?.label){p.text=l?.label}if(l?.icon){p.icon=l?.icon;if(!l.label?.trim()&&p.text===e){p.text=""}}if(l?.form){p.form=l?.form}if(l?.pos){p.pos=l?.pos}if(l?.img){p.img=l?.img;if(!l.label?.trim()&&p.text===e){p.text=""}}if(l?.constraint){p.constraint=l.constraint}if(l.w){p.assetWidth=Number(l.w)}if(l.h){p.assetHeight=Number(l.h)}}}addSingleLink(e,t,s,i){const r=e;const n=t;const a={start:r,end:n,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:false,interpolate:this.edges.defaultInterpolate};k.Rm.info("abc78 Got edge...",a);const u=s.text;if(u!==void 0){a.text=this.sanitizeText(u.text.trim());if(a.text.startsWith('"')&&a.text.endsWith('"')){a.text=a.text.substring(1,a.text.length-1)}a.labelType=u.type}if(s!==void 0){a.type=s.type;a.stroke=s.stroke;a.length=s.length>10?10:s.length}if(i&&!this.edges.some((e=>e.id===i))){a.id=i;a.isUserDefinedId=true}else{const e=this.edges.filter((e=>e.start===a.start&&e.end===a.end));if(e.length===0){a.id=(0,f.rY)(a.start,a.end,{counter:0,prefix:"L"})}else{a.id=(0,f.rY)(a.start,a.end,{counter:e.length+1,prefix:"L"})}}if(this.edges.length<(this.config.maxEdges??500)){k.Rm.info("Pushing edge...");this.edges.push(a)}else{throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.\n\nInitialize mermaid with maxEdges set to a higher number to allow more edges.\nYou cannot set this config via configuration inside the diagram as it is a secure config.\nYou have to call mermaid.initialize.`)}}isLinkData(e){return e!==null&&typeof e==="object"&&"id"in e&&typeof e.id==="string"}addLink(e,t,s){const i=this.isLinkData(s)?s.id.replace("@",""):void 0;k.Rm.info("addLink",e,t,i);for(const r of e){for(const n of t){const a=r===e[e.length-1];const u=n===t[0];if(a&&u){this.addSingleLink(r,n,s,i)}else{this.addSingleLink(r,n,s,void 0)}}}}updateLinkInterpolate(e,t){e.forEach((e=>{if(e==="default"){this.edges.defaultInterpolate=t}else{this.edges[e].interpolate=t}}))}updateLink(e,t){e.forEach((e=>{if(typeof e==="number"&&e>=this.edges.length){throw new Error(`The index ${e} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`)}if(e==="default"){this.edges.defaultStyle=t}else{this.edges[e].style=t;if((this.edges[e]?.style?.length??0)>0&&!this.edges[e]?.style?.some((e=>e?.startsWith("fill")))){this.edges[e]?.style?.push("fill:none")}}}))}addClass(e,t){const s=t.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach((e=>{let t=this.classes.get(e);if(t===void 0){t={id:e,styles:[],textStyles:[]};this.classes.set(e,t)}if(s!==void 0&&s!==null){s.forEach((e=>{if(/color/.exec(e)){const s=e.replace("fill","bgFill");t.textStyles.push(s)}t.styles.push(e)}))}}))}setDirection(e){this.direction=e.trim();if(/.*/.exec(this.direction)){this.direction="LR"}if(/.*v/.exec(this.direction)){this.direction="TB"}if(this.direction==="TD"){this.direction="TB"}}setClass(e,t){for(const s of e.split(",")){const e=this.vertices.get(s);if(e){e.classes.push(t)}const i=this.edges.find((e=>e.id===s));if(i){i.classes.push(t)}const r=this.subGraphLookup.get(s);if(r){r.classes.push(t)}}}setTooltip(e,t){if(t===void 0){return}t=this.sanitizeText(t);for(const s of e.split(",")){this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(s):s,t)}}setClickFun(e,t,s){const i=this.lookUpDomId(e);if((0,b.D7)().securityLevel!=="loose"){return}if(t===void 0){return}let r=[];if(typeof s==="string"){r=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e{const e=document.querySelector(`[id="${i}"]`);if(e!==null){e.addEventListener("click",(()=>{f._K.runFunc(t,...r)}),false)}}))}}setLink(e,t,s){e.split(",").forEach((e=>{const i=this.vertices.get(e);if(i!==void 0){i.link=f._K.formatUrl(t,this.config);i.linkTarget=s}}));this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,t,s){e.split(",").forEach((e=>{this.setClickFun(e,t,s)}));this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach((t=>{t(e)}))}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){let t=(0,g.Ltv)(".mermaidTooltip");if((t._groups||t)[0][0]===null){t=(0,g.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)}const s=(0,g.Ltv)(e).select("svg");const i=s.selectAll("g.node");i.on("mouseover",(e=>{const s=(0,g.Ltv)(e.currentTarget);const i=s.attr("title");if(i===null){return}const r=e.currentTarget?.getBoundingClientRect();t.transition().duration(200).style("opacity",".9");t.text(s.attr("title")).style("left",window.scrollX+r.left+(r.right-r.left)/2+"px").style("top",window.scrollY+r.bottom+"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,g.Ltv)(e.currentTarget);s.classed("hover",false)}))}clear(e="gen-2"){this.vertices=new Map;this.classes=new Map;this.edges=[];this.funs=[this.setupToolTips.bind(this)];this.subGraphs=[];this.subGraphLookup=new Map;this.subCount=0;this.tooltips=new Map;this.firstGraphFlag=true;this.version=e;this.config=(0,b.D7)();(0,b.IU)()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,t,s){let i=e.text.trim();let r=s.text;if(e===s&&/\s/.exec(s.text)){i=void 0}const n=(0,k.K2)((e=>{const t={boolean:{},number:{},string:{}};const s=[];let i;const r=e.filter((function(e){const r=typeof e;if(e.stmt&&e.stmt==="dir"){i=e.value;return false}if(e.trim()===""){return false}if(r in t){return t[r].hasOwnProperty(e)?false:t[r][e]=true}else{return s.includes(e)?false:s.push(e)}}));return{nodeList:r,dir:i}}),"uniq");const a=n(t.flat());const u=a.nodeList;let o=a.dir;const l=(0,b.D7)().flowchart??{};o=o??(l.inheritDir?this.getDirection()??(0,b.D7)().direction??void 0:void 0);if(this.version==="gen-1"){for(let e=0;e2e3){return{result:false,count:0}}this.posCrossRef[this.secCount]=t;if(this.subGraphs[t].id===e){return{result:true,count:0}}let i=0;let r=1;while(i=0){const s=this.indexNodes2(e,t);if(s.result){return{result:true,count:r+s.count}}else{r=r+s.count}}i=i+1}return{result:false,count:r}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1;if(this.subGraphs.length>0){this.indexNodes2("none",this.subGraphs.length-1)}}getSubGraphs(){return this.subGraphs}firstGraph(){if(this.firstGraphFlag){this.firstGraphFlag=false;return true}return false}destructStartLink(e){let t=e.trim();let s="arrow_open";switch(t[0]){case"<":s="arrow_point";t=t.slice(1);break;case"x":s="arrow_cross";t=t.slice(1);break;case"o":s="arrow_circle";t=t.slice(1);break}let i="normal";if(t.includes("=")){i="thick"}if(t.includes(".")){i="dotted"}return{type:s,stroke:i}}countChar(e,t){const s=t.length;let i=0;for(let r=0;r":i="arrow_point";if(t.startsWith("<")){i="double_"+i;s=s.slice(1)}break;case"o":i="arrow_circle";if(t.startsWith("o")){i="double_"+i;s=s.slice(1)}break}let r="normal";let n=s.length-1;if(s.startsWith("=")){r="thick"}if(s.startsWith("~")){r="invisible"}const a=this.countChar(".",s);if(a){r="dotted";n=a}return{type:i,stroke:r,length:n}}destructLink(e,t){const s=this.destructEndLink(e);let i;if(t){i=this.destructStartLink(t);if(i.stroke!==s.stroke){return{type:"INVALID",stroke:"INVALID"}}if(i.type==="arrow_open"){i.type=s.type}else{if(i.type!==s.type){return{type:"INVALID",stroke:"INVALID"}}i.type="double_"+i.type}if(i.type==="double_arrow"){i.type="double_arrow_point"}i.length=s.length;return i}return s}exists(e,t){for(const s of e){if(s.nodes.includes(t)){return true}}return false}makeUniq(e,t){const s=[];e.nodes.forEach(((i,r)=>{if(!this.exists(t,i)){s.push(e.nodes[r])}}));return{nodes:s}}getTypeFromVertex(e){if(e.img){return"imageSquare"}if(e.icon){if(e.form==="circle"){return"iconCircle"}if(e.form==="square"){return"iconSquare"}if(e.form==="rounded"){return"iconRounded"}return"icon"}switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}}findNode(e,t){return e.find((e=>e.id===t))}destructEdgeType(e){let t="none";let s="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":s=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":t=e.replace("double_","");s=t;break}return{arrowTypeStart:t,arrowTypeEnd:s}}addNodeFromVertex(e,t,s,i,r,n){const a=s.get(e.id);const u=i.get(e.id)??false;const o=this.findNode(t,e.id);if(o){o.cssStyles=e.styles;o.cssCompiledStyles=this.getCompiledStyles(e.classes);o.cssClasses=e.classes.join(" ")}else{const s={id:e.id,label:e.text,labelStyle:"",parentId:a,padding:r.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:n,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};if(u){t.push({...s,isGroup:true,shape:"rect"})}else{t.push({...s,isGroup:false,shape:this.getTypeFromVertex(e)})}}}getCompiledStyles(e){let t=[];for(const s of e){const e=this.classes.get(s);if(e?.styles){t=[...t,...e.styles??[]].map((e=>e.trim()))}if(e?.textStyles){t=[...t,...e.textStyles??[]].map((e=>e.trim()))}}return t}getData(){const e=(0,b.D7)();const t=[];const s=[];const i=this.getSubGraphs();const r=new Map;const n=new Map;for(let o=i.length-1;o>=0;o--){const e=i[o];if(e.nodes.length>0){n.set(e.id,true)}for(const t of e.nodes){r.set(t,e.id)}}for(let o=i.length-1;o>=0;o--){const s=i[o];t.push({id:s.id,label:s.title,labelStyle:"",parentId:r.get(s.id),padding:8,cssCompiledStyles:this.getCompiledStyles(s.classes),cssClasses:s.classes.join(" "),shape:"rect",dir:s.dir,isGroup:true,look:e.look})}const a=this.getVertices();a.forEach((s=>{this.addNodeFromVertex(s,t,r,n,e,e.look||"classic")}));const u=this.getEdges();u.forEach(((t,i)=>{const{arrowTypeStart:r,arrowTypeEnd:n}=this.destructEdgeType(t.type);const a=[...u.defaultStyle??[]];if(t.style){a.push(...t.style)}const o={id:(0,f.rY)(t.start,t.end,{counter:i,prefix:"L"},t.id),isUserDefinedId:t.isUserDefinedId,start:t.start,end:t.end,type:t.type??"normal",label:t.text,labelpos:"c",thickness:t.stroke,minlen:t.length,classes:t?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:t?.stroke==="invisible"||t?.type==="arrow_open"?"none":r,arrowTypeEnd:t?.stroke==="invisible"||t?.type==="arrow_open"?"none":n,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(t.classes),labelStyle:a,style:a,pattern:t.stroke,look:e.look,animate:t.animate,animation:t.animation,curve:t.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};s.push(o)}));return{nodes:t,edges:s,other:{},config:e}}defaultConfig(){return b.ME.flowchart}};var x=(0,k.K2)((function(e,t){return t.db.getClasses()}),"getClasses");var D=(0,k.K2)((async function(e,t,s,i){k.Rm.info("REF0:");k.Rm.info("Drawing state diagram (v2)",t);const{securityLevel:r,flowchart:o,layout:l}=(0,b.D7)();let c;if(r==="sandbox"){c=(0,g.Ltv)("#i"+t)}const h=r==="sandbox"?c.nodes()[0].contentDocument:document;k.Rm.debug("Before getData: ");const d=i.db.getData();k.Rm.debug("Data: ",d);const p=(0,n.A)(t,r);const A=i.db.getDirection();d.type=i.type;d.layoutAlgorithm=(0,u.q7)(l);if(d.layoutAlgorithm==="dagre"&&l==="elk"){k.Rm.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback.")}d.direction=A;d.nodeSpacing=o?.nodeSpacing||50;d.rankSpacing=o?.rankSpacing||50;d.markers=["point","circle","cross"];d.diagramId=t;k.Rm.debug("REF1:",d);await(0,u.XX)(d,p);const y=d.config.flowchart?.diagramPadding??8;f._K.insertTitle(p,"flowchartTitleText",o?.titleTopMargin||0,i.db.getDiagramTitle());(0,a.P)(p,y,"flowchart",o?.useMaxWidth||false);for(const n of d.nodes){const e=(0,g.Ltv)(`#${t} [id="${n.id}"]`);if(!e||!n.link){continue}const s=h.createElementNS("http://www.w3.org/2000/svg","a");s.setAttributeNS("http://www.w3.org/2000/svg","class",n.cssClasses);s.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener");if(r==="sandbox"){s.setAttributeNS("http://www.w3.org/2000/svg","target","_top")}else if(n.linkTarget){s.setAttributeNS("http://www.w3.org/2000/svg","target",n.linkTarget)}const i=e.insert((function(){return s}),":first-child");const a=e.select(".label-container");if(a){i.append((function(){return a.node()}))}const u=e.select(".label");if(u){i.append((function(){return u.node()}))}}}),"draw");var C={getClasses:x,draw:D};var v=function(){var e=(0,k.K2)((function(e,t,s,i){for(s=s||{},i=e.length;i--;s[e[i]]=t);return s}),"o"),t=[1,4],s=[1,3],i=[1,5],r=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],n=[2,2],a=[1,13],u=[1,14],o=[1,15],l=[1,16],c=[1,23],h=[1,25],d=[1,26],p=[1,27],f=[1,49],b=[1,48],g=[1,29],A=[1,30],y=[1,31],m=[1,32],E=[1,33],x=[1,44],D=[1,46],C=[1,42],v=[1,47],S=[1,43],T=[1,50],F=[1,45],_=[1,51],B=[1,52],w=[1,34],L=[1,35],$=[1,36],I=[1,37],R=[1,57],N=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],P=[1,61],K=[1,60],G=[1,62],O=[8,9,11,75,77,78],V=[1,78],M=[1,91],U=[1,96],W=[1,95],j=[1,92],Y=[1,88],z=[1,94],X=[1,90],H=[1,97],q=[1,93],Q=[1,98],Z=[1,89],J=[8,9,10,11,40,75,77,78],ee=[8,9,10,11,40,46,75,77,78],te=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],se=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],ie=[44,60,89,102,105,106,109,111,114,115,116],re=[1,121],ne=[1,122],ae=[1,124],ue=[1,123],oe=[44,60,62,74,89,102,105,106,109,111,114,115,116],le=[1,133],ce=[1,147],he=[1,148],de=[1,149],pe=[1,150],fe=[1,135],be=[1,137],ke=[1,141],ge=[1,142],Ae=[1,143],ye=[1,144],me=[1,145],Ee=[1,146],xe=[1,151],De=[1,152],Ce=[1,131],ve=[1,132],Se=[1,139],Te=[1,134],Fe=[1,138],_e=[1,136],Be=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],we=[1,154],Le=[1,156],$e=[8,9,11],Ie=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],Re=[1,176],Ne=[1,172],Pe=[1,173],Ke=[1,177],Ge=[1,174],Oe=[1,175],Ve=[77,116,119],Me=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Ue=[10,106],We=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],je=[1,247],Ye=[1,245],ze=[1,249],Xe=[1,243],He=[1,244],qe=[1,246],Qe=[1,248],Ze=[1,250],Je=[1,268],et=[8,9,11,106],tt=[8,9,10,11,60,84,105,106,109,110,111,112];var st={trace:(0,k.K2)((function e(){}),"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1]],performAction:(0,k.K2)((function e(t,s,i,r,n,a,u){var o=a.length-1;switch(n){case 2:this.$=[];break;case 3:if(!Array.isArray(a[o])||a[o].length>0){a[o-1].push(a[o])}this.$=a[o-1];break;case 4:case 183:this.$=a[o];break;case 11:r.setDirection("TB");this.$="TB";break;case 12:r.setDirection(a[o-1]);this.$=a[o-1];break;case 27:this.$=a[o-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(a[o-6],a[o-1],a[o-4]);break;case 34:this.$=r.addSubGraph(a[o-3],a[o-1],a[o-3]);break;case 35:this.$=r.addSubGraph(void 0,a[o-1],void 0);break;case 37:this.$=a[o].trim();r.setAccTitle(this.$);break;case 38:case 39:this.$=a[o].trim();r.setAccDescription(this.$);break;case 43:this.$=a[o-1]+a[o];break;case 44:this.$=a[o];break;case 45:r.addVertex(a[o-1][a[o-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[o]);r.addLink(a[o-3].stmt,a[o-1],a[o-2]);this.$={stmt:a[o-1],nodes:a[o-1].concat(a[o-3].nodes)};break;case 46:r.addLink(a[o-2].stmt,a[o],a[o-1]);this.$={stmt:a[o],nodes:a[o].concat(a[o-2].nodes)};break;case 47:r.addLink(a[o-3].stmt,a[o-1],a[o-2]);this.$={stmt:a[o-1],nodes:a[o-1].concat(a[o-3].nodes)};break;case 48:this.$={stmt:a[o-1],nodes:a[o-1]};break;case 49:r.addVertex(a[o-1][a[o-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[o]);this.$={stmt:a[o-1],nodes:a[o-1],shapeData:a[o]};break;case 50:this.$={stmt:a[o],nodes:a[o]};break;case 51:this.$=[a[o]];break;case 52:r.addVertex(a[o-5][a[o-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[o-4]);this.$=a[o-5].concat(a[o]);break;case 53:this.$=a[o-4].concat(a[o]);break;case 54:this.$=a[o];break;case 55:this.$=a[o-2];r.setClass(a[o-2],a[o]);break;case 56:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"square");break;case 57:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"doublecircle");break;case 58:this.$=a[o-5];r.addVertex(a[o-5],a[o-2],"circle");break;case 59:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"ellipse");break;case 60:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"stadium");break;case 61:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"subroutine");break;case 62:this.$=a[o-7];r.addVertex(a[o-7],a[o-1],"rect",void 0,void 0,void 0,Object.fromEntries([[a[o-5],a[o-3]]]));break;case 63:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"cylinder");break;case 64:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"round");break;case 65:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"diamond");break;case 66:this.$=a[o-5];r.addVertex(a[o-5],a[o-2],"hexagon");break;case 67:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"odd");break;case 68:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"trapezoid");break;case 69:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"inv_trapezoid");break;case 70:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"lean_right");break;case 71:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"lean_left");break;case 72:this.$=a[o];r.addVertex(a[o]);break;case 73:a[o-1].text=a[o];this.$=a[o-1];break;case 74:case 75:a[o-2].text=a[o-1];this.$=a[o-2];break;case 76:this.$=a[o];break;case 77:var l=r.destructLink(a[o],a[o-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:a[o-1]};break;case 78:var l=r.destructLink(a[o],a[o-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:a[o-1],id:a[o-3]};break;case 79:this.$={text:a[o],type:"text"};break;case 80:this.$={text:a[o-1].text+""+a[o],type:a[o-1].type};break;case 81:this.$={text:a[o],type:"string"};break;case 82:this.$={text:a[o],type:"markdown"};break;case 83:var l=r.destructLink(a[o]);this.$={type:l.type,stroke:l.stroke,length:l.length};break;case 84:var l=r.destructLink(a[o]);this.$={type:l.type,stroke:l.stroke,length:l.length,id:a[o-1]};break;case 85:this.$=a[o-1];break;case 86:this.$={text:a[o],type:"text"};break;case 87:this.$={text:a[o-1].text+""+a[o],type:a[o-1].type};break;case 88:this.$={text:a[o],type:"string"};break;case 89:case 104:this.$={text:a[o],type:"markdown"};break;case 101:this.$={text:a[o],type:"text"};break;case 102:this.$={text:a[o-1].text+""+a[o],type:a[o-1].type};break;case 103:this.$={text:a[o],type:"text"};break;case 105:this.$=a[o-4];r.addClass(a[o-2],a[o]);break;case 106:this.$=a[o-4];r.setClass(a[o-2],a[o]);break;case 107:case 115:this.$=a[o-1];r.setClickEvent(a[o-1],a[o]);break;case 108:case 116:this.$=a[o-3];r.setClickEvent(a[o-3],a[o-2]);r.setTooltip(a[o-3],a[o]);break;case 109:this.$=a[o-2];r.setClickEvent(a[o-2],a[o-1],a[o]);break;case 110:this.$=a[o-4];r.setClickEvent(a[o-4],a[o-3],a[o-2]);r.setTooltip(a[o-4],a[o]);break;case 111:this.$=a[o-2];r.setLink(a[o-2],a[o]);break;case 112:this.$=a[o-4];r.setLink(a[o-4],a[o-2]);r.setTooltip(a[o-4],a[o]);break;case 113:this.$=a[o-4];r.setLink(a[o-4],a[o-2],a[o]);break;case 114:this.$=a[o-6];r.setLink(a[o-6],a[o-4],a[o]);r.setTooltip(a[o-6],a[o-2]);break;case 117:this.$=a[o-1];r.setLink(a[o-1],a[o]);break;case 118:this.$=a[o-3];r.setLink(a[o-3],a[o-2]);r.setTooltip(a[o-3],a[o]);break;case 119:this.$=a[o-3];r.setLink(a[o-3],a[o-2],a[o]);break;case 120:this.$=a[o-5];r.setLink(a[o-5],a[o-4],a[o]);r.setTooltip(a[o-5],a[o-2]);break;case 121:this.$=a[o-4];r.addVertex(a[o-2],void 0,void 0,a[o]);break;case 122:this.$=a[o-4];r.updateLink([a[o-2]],a[o]);break;case 123:this.$=a[o-4];r.updateLink(a[o-2],a[o]);break;case 124:this.$=a[o-8];r.updateLinkInterpolate([a[o-6]],a[o-2]);r.updateLink([a[o-6]],a[o]);break;case 125:this.$=a[o-8];r.updateLinkInterpolate(a[o-6],a[o-2]);r.updateLink(a[o-6],a[o]);break;case 126:this.$=a[o-6];r.updateLinkInterpolate([a[o-4]],a[o]);break;case 127:this.$=a[o-6];r.updateLinkInterpolate(a[o-4],a[o]);break;case 128:case 130:this.$=[a[o]];break;case 129:case 131:a[o-2].push(a[o]);this.$=a[o-2];break;case 133:this.$=a[o-1]+a[o];break;case 181:this.$=a[o];break;case 182:this.$=a[o-1]+""+a[o];break;case 184:this.$=a[o-1]+""+a[o];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break}}),"anonymous"),table:[{3:1,4:2,9:t,10:s,12:i},{1:[3]},e(r,n,{5:6}),{4:7,9:t,10:s,12:i},{4:8,9:t,10:s,12:i},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:a,9:u,10:o,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:c,33:24,34:h,36:d,38:p,42:28,43:38,44:f,45:39,47:40,60:b,84:g,85:A,86:y,87:m,88:E,89:x,102:D,105:C,106:v,109:S,111:T,113:41,114:F,115:_,116:B,121:w,122:L,123:$,124:I},e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),{8:[1,54],9:[1,55],10:R,15:53,18:56},e(N,[2,3]),e(N,[2,4]),e(N,[2,5]),e(N,[2,6]),e(N,[2,7]),e(N,[2,8]),{8:P,9:K,11:G,21:58,41:59,72:63,75:[1,64],77:[1,66],78:[1,65]},{8:P,9:K,11:G,21:67},{8:P,9:K,11:G,21:68},{8:P,9:K,11:G,21:69},{8:P,9:K,11:G,21:70},{8:P,9:K,11:G,21:71},{8:P,9:K,10:[1,72],11:G,21:73},e(N,[2,36]),{35:[1,74]},{37:[1,75]},e(N,[2,39]),e(O,[2,50],{18:76,39:77,10:R,40:V}),{10:[1,79]},{10:[1,80]},{10:[1,81]},{10:[1,82]},{14:M,44:U,60:W,80:[1,86],89:j,95:[1,83],97:[1,84],101:85,105:Y,106:z,109:X,111:H,114:q,115:Q,116:Z,120:87},e(N,[2,185]),e(N,[2,186]),e(N,[2,187]),e(N,[2,188]),e(J,[2,51]),e(J,[2,54],{46:[1,99]}),e(ee,[2,72],{113:112,29:[1,100],44:f,48:[1,101],50:[1,102],52:[1,103],54:[1,104],56:[1,105],58:[1,106],60:b,63:[1,107],65:[1,108],67:[1,109],68:[1,110],70:[1,111],89:x,102:D,105:C,106:v,109:S,111:T,114:F,115:_,116:B}),e(te,[2,181]),e(te,[2,142]),e(te,[2,143]),e(te,[2,144]),e(te,[2,145]),e(te,[2,146]),e(te,[2,147]),e(te,[2,148]),e(te,[2,149]),e(te,[2,150]),e(te,[2,151]),e(te,[2,152]),e(r,[2,12]),e(r,[2,18]),e(r,[2,19]),{9:[1,113]},e(se,[2,26],{18:114,10:R}),e(N,[2,27]),{42:115,43:38,44:f,45:39,47:40,60:b,89:x,102:D,105:C,106:v,109:S,111:T,113:41,114:F,115:_,116:B},e(N,[2,40]),e(N,[2,41]),e(N,[2,42]),e(ie,[2,76],{73:116,62:[1,118],74:[1,117]}),{76:119,79:120,80:re,81:ne,116:ae,119:ue},{75:[1,125],77:[1,126]},e(oe,[2,83]),e(N,[2,28]),e(N,[2,29]),e(N,[2,30]),e(N,[2,31]),e(N,[2,32]),{10:le,12:ce,14:he,27:de,28:127,32:pe,44:fe,60:be,75:ke,80:[1,129],81:[1,130],83:140,84:ge,85:Ae,86:ye,87:me,88:Ee,89:xe,90:De,91:128,105:Ce,109:ve,111:Se,114:Te,115:Fe,116:_e},e(Be,n,{5:153}),e(N,[2,37]),e(N,[2,38]),e(O,[2,48],{44:we}),e(O,[2,49],{18:155,10:R,40:Le}),e(J,[2,44]),{44:f,47:157,60:b,89:x,102:D,105:C,106:v,109:S,111:T,113:41,114:F,115:_,116:B},{102:[1,158],103:159,105:[1,160]},{44:f,47:161,60:b,89:x,102:D,105:C,106:v,109:S,111:T,113:41,114:F,115:_,116:B},{44:f,47:162,60:b,89:x,102:D,105:C,106:v,109:S,111:T,113:41,114:F,115:_,116:B},e($e,[2,107],{10:[1,163],96:[1,164]}),{80:[1,165]},e($e,[2,115],{120:167,10:[1,166],14:M,44:U,60:W,89:j,105:Y,106:z,109:X,111:H,114:q,115:Q,116:Z}),e($e,[2,117],{10:[1,168]}),e(Ie,[2,183]),e(Ie,[2,170]),e(Ie,[2,171]),e(Ie,[2,172]),e(Ie,[2,173]),e(Ie,[2,174]),e(Ie,[2,175]),e(Ie,[2,176]),e(Ie,[2,177]),e(Ie,[2,178]),e(Ie,[2,179]),e(Ie,[2,180]),{44:f,47:169,60:b,89:x,102:D,105:C,106:v,109:S,111:T,113:41,114:F,115:_,116:B},{30:170,67:Re,80:Ne,81:Pe,82:171,116:Ke,117:Ge,118:Oe},{30:178,67:Re,80:Ne,81:Pe,82:171,116:Ke,117:Ge,118:Oe},{30:180,50:[1,179],67:Re,80:Ne,81:Pe,82:171,116:Ke,117:Ge,118:Oe},{30:181,67:Re,80:Ne,81:Pe,82:171,116:Ke,117:Ge,118:Oe},{30:182,67:Re,80:Ne,81:Pe,82:171,116:Ke,117:Ge,118:Oe},{30:183,67:Re,80:Ne,81:Pe,82:171,116:Ke,117:Ge,118:Oe},{109:[1,184]},{30:185,67:Re,80:Ne,81:Pe,82:171,116:Ke,117:Ge,118:Oe},{30:186,65:[1,187],67:Re,80:Ne,81:Pe,82:171,116:Ke,117:Ge,118:Oe},{30:188,67:Re,80:Ne,81:Pe,82:171,116:Ke,117:Ge,118:Oe},{30:189,67:Re,80:Ne,81:Pe,82:171,116:Ke,117:Ge,118:Oe},{30:190,67:Re,80:Ne,81:Pe,82:171,116:Ke,117:Ge,118:Oe},e(te,[2,182]),e(r,[2,20]),e(se,[2,25]),e(O,[2,46],{39:191,18:192,10:R,40:V}),e(ie,[2,73],{10:[1,193]}),{10:[1,194]},{30:195,67:Re,80:Ne,81:Pe,82:171,116:Ke,117:Ge,118:Oe},{77:[1,196],79:197,116:ae,119:ue},e(Ve,[2,79]),e(Ve,[2,81]),e(Ve,[2,82]),e(Ve,[2,168]),e(Ve,[2,169]),{76:198,79:120,80:re,81:ne,116:ae,119:ue},e(oe,[2,84]),{8:P,9:K,10:le,11:G,12:ce,14:he,21:200,27:de,29:[1,199],32:pe,44:fe,60:be,75:ke,83:140,84:ge,85:Ae,86:ye,87:me,88:Ee,89:xe,90:De,91:201,105:Ce,109:ve,111:Se,114:Te,115:Fe,116:_e},e(Me,[2,101]),e(Me,[2,103]),e(Me,[2,104]),e(Me,[2,157]),e(Me,[2,158]),e(Me,[2,159]),e(Me,[2,160]),e(Me,[2,161]),e(Me,[2,162]),e(Me,[2,163]),e(Me,[2,164]),e(Me,[2,165]),e(Me,[2,166]),e(Me,[2,167]),e(Me,[2,90]),e(Me,[2,91]),e(Me,[2,92]),e(Me,[2,93]),e(Me,[2,94]),e(Me,[2,95]),e(Me,[2,96]),e(Me,[2,97]),e(Me,[2,98]),e(Me,[2,99]),e(Me,[2,100]),{6:11,7:12,8:a,9:u,10:o,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:c,32:[1,202],33:24,34:h,36:d,38:p,42:28,43:38,44:f,45:39,47:40,60:b,84:g,85:A,86:y,87:m,88:E,89:x,102:D,105:C,106:v,109:S,111:T,113:41,114:F,115:_,116:B,121:w,122:L,123:$,124:I},{10:R,18:203},{44:[1,204]},e(J,[2,43]),{10:[1,205],44:f,60:b,89:x,102:D,105:C,106:v,109:S,111:T,113:112,114:F,115:_,116:B},{10:[1,206]},{10:[1,207],106:[1,208]},e(Ue,[2,128]),{10:[1,209],44:f,60:b,89:x,102:D,105:C,106:v,109:S,111:T,113:112,114:F,115:_,116:B},{10:[1,210],44:f,60:b,89:x,102:D,105:C,106:v,109:S,111:T,113:112,114:F,115:_,116:B},{80:[1,211]},e($e,[2,109],{10:[1,212]}),e($e,[2,111],{10:[1,213]}),{80:[1,214]},e(Ie,[2,184]),{80:[1,215],98:[1,216]},e(J,[2,55],{113:112,44:f,60:b,89:x,102:D,105:C,106:v,109:S,111:T,114:F,115:_,116:B}),{31:[1,217],67:Re,82:218,116:Ke,117:Ge,118:Oe},e(We,[2,86]),e(We,[2,88]),e(We,[2,89]),e(We,[2,153]),e(We,[2,154]),e(We,[2,155]),e(We,[2,156]),{49:[1,219],67:Re,82:218,116:Ke,117:Ge,118:Oe},{30:220,67:Re,80:Ne,81:Pe,82:171,116:Ke,117:Ge,118:Oe},{51:[1,221],67:Re,82:218,116:Ke,117:Ge,118:Oe},{53:[1,222],67:Re,82:218,116:Ke,117:Ge,118:Oe},{55:[1,223],67:Re,82:218,116:Ke,117:Ge,118:Oe},{57:[1,224],67:Re,82:218,116:Ke,117:Ge,118:Oe},{60:[1,225]},{64:[1,226],67:Re,82:218,116:Ke,117:Ge,118:Oe},{66:[1,227],67:Re,82:218,116:Ke,117:Ge,118:Oe},{30:228,67:Re,80:Ne,81:Pe,82:171,116:Ke,117:Ge,118:Oe},{31:[1,229],67:Re,82:218,116:Ke,117:Ge,118:Oe},{67:Re,69:[1,230],71:[1,231],82:218,116:Ke,117:Ge,118:Oe},{67:Re,69:[1,233],71:[1,232],82:218,116:Ke,117:Ge,118:Oe},e(O,[2,45],{18:155,10:R,40:Le}),e(O,[2,47],{44:we}),e(ie,[2,75]),e(ie,[2,74]),{62:[1,234],67:Re,82:218,116:Ke,117:Ge,118:Oe},e(ie,[2,77]),e(Ve,[2,80]),{77:[1,235],79:197,116:ae,119:ue},{30:236,67:Re,80:Ne,81:Pe,82:171,116:Ke,117:Ge,118:Oe},e(Be,n,{5:237}),e(Me,[2,102]),e(N,[2,35]),{43:238,44:f,45:39,47:40,60:b,89:x,102:D,105:C,106:v,109:S,111:T,113:41,114:F,115:_,116:B},{10:R,18:239},{10:je,60:Ye,84:ze,92:240,105:Xe,107:241,108:242,109:He,110:qe,111:Qe,112:Ze},{10:je,60:Ye,84:ze,92:251,104:[1,252],105:Xe,107:241,108:242,109:He,110:qe,111:Qe,112:Ze},{10:je,60:Ye,84:ze,92:253,104:[1,254],105:Xe,107:241,108:242,109:He,110:qe,111:Qe,112:Ze},{105:[1,255]},{10:je,60:Ye,84:ze,92:256,105:Xe,107:241,108:242,109:He,110:qe,111:Qe,112:Ze},{44:f,47:257,60:b,89:x,102:D,105:C,106:v,109:S,111:T,113:41,114:F,115:_,116:B},e($e,[2,108]),{80:[1,258]},{80:[1,259],98:[1,260]},e($e,[2,116]),e($e,[2,118],{10:[1,261]}),e($e,[2,119]),e(ee,[2,56]),e(We,[2,87]),e(ee,[2,57]),{51:[1,262],67:Re,82:218,116:Ke,117:Ge,118:Oe},e(ee,[2,64]),e(ee,[2,59]),e(ee,[2,60]),e(ee,[2,61]),{109:[1,263]},e(ee,[2,63]),e(ee,[2,65]),{66:[1,264],67:Re,82:218,116:Ke,117:Ge,118:Oe},e(ee,[2,67]),e(ee,[2,68]),e(ee,[2,70]),e(ee,[2,69]),e(ee,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(ie,[2,78]),{31:[1,265],67:Re,82:218,116:Ke,117:Ge,118:Oe},{6:11,7:12,8:a,9:u,10:o,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:c,32:[1,266],33:24,34:h,36:d,38:p,42:28,43:38,44:f,45:39,47:40,60:b,84:g,85:A,86:y,87:m,88:E,89:x,102:D,105:C,106:v,109:S,111:T,113:41,114:F,115:_,116:B,121:w,122:L,123:$,124:I},e(J,[2,53]),{43:267,44:f,45:39,47:40,60:b,89:x,102:D,105:C,106:v,109:S,111:T,113:41,114:F,115:_,116:B},e($e,[2,121],{106:Je}),e(et,[2,130],{108:269,10:je,60:Ye,84:ze,105:Xe,109:He,110:qe,111:Qe,112:Ze}),e(tt,[2,132]),e(tt,[2,134]),e(tt,[2,135]),e(tt,[2,136]),e(tt,[2,137]),e(tt,[2,138]),e(tt,[2,139]),e(tt,[2,140]),e(tt,[2,141]),e($e,[2,122],{106:Je}),{10:[1,270]},e($e,[2,123],{106:Je}),{10:[1,271]},e(Ue,[2,129]),e($e,[2,105],{106:Je}),e($e,[2,106],{113:112,44:f,60:b,89:x,102:D,105:C,106:v,109:S,111:T,114:F,115:_,116:B}),e($e,[2,110]),e($e,[2,112],{10:[1,272]}),e($e,[2,113]),{98:[1,273]},{51:[1,274]},{62:[1,275]},{66:[1,276]},{8:P,9:K,11:G,21:277},e(N,[2,34]),e(J,[2,52]),{10:je,60:Ye,84:ze,105:Xe,107:278,108:242,109:He,110:qe,111:Qe,112:Ze},e(tt,[2,133]),{14:M,44:U,60:W,89:j,101:279,105:Y,106:z,109:X,111:H,114:q,115:Q,116:Z,120:87},{14:M,44:U,60:W,89:j,101:280,105:Y,106:z,109:X,111:H,114:q,115:Q,116:Z,120:87},{98:[1,281]},e($e,[2,120]),e(ee,[2,58]),{30:282,67:Re,80:Ne,81:Pe,82:171,116:Ke,117:Ge,118:Oe},e(ee,[2,66]),e(Be,n,{5:283}),e(et,[2,131],{108:269,10:je,60:Ye,84:ze,105:Xe,109:He,110:qe,111:Qe,112:Ze}),e($e,[2,126],{120:167,10:[1,284],14:M,44:U,60:W,89:j,105:Y,106:z,109:X,111:H,114:q,115:Q,116:Z}),e($e,[2,127],{120:167,10:[1,285],14:M,44:U,60:W,89:j,105:Y,106:z,109:X,111:H,114:q,115:Q,116:Z}),e($e,[2,114]),{31:[1,286],67:Re,82:218,116:Ke,117:Ge,118:Oe},{6:11,7:12,8:a,9:u,10:o,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:c,32:[1,287],33:24,34:h,36:d,38:p,42:28,43:38,44:f,45:39,47:40,60:b,84:g,85:A,86:y,87:m,88:E,89:x,102:D,105:C,106:v,109:S,111:T,113:41,114:F,115:_,116:B,121:w,122:L,123:$,124:I},{10:je,60:Ye,84:ze,92:288,105:Xe,107:241,108:242,109:He,110:qe,111:Qe,112:Ze},{10:je,60:Ye,84:ze,92:289,105:Xe,107:241,108:242,109:He,110:qe,111:Qe,112:Ze},e(ee,[2,62]),e(N,[2,33]),e($e,[2,124],{106:Je}),e($e,[2,125],{106:Je})],defaultActions:{},parseError:(0,k.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,k.K2)((function e(t){var s=this,i=[0],r=[],n=[null],a=[],u=this.table,o="",l=0,c=0,h=0,d=2,p=1;var f=a.slice.call(arguments,1);var b=Object.create(this.lexer);var g={yy:{}};for(var A in this.yy){if(Object.prototype.hasOwnProperty.call(this.yy,A)){g.yy[A]=this.yy[A]}}b.setInput(t,g.yy);g.yy.lexer=b;g.yy.parser=this;if(typeof b.yylloc=="undefined"){b.yylloc={}}var y=b.yylloc;a.push(y);var m=b.options&&b.options.ranges;if(typeof g.yy.parseError==="function"){this.parseError=g.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function E(e){i.length=i.length-2*e;n.length=n.length-e;a.length=a.length-e}(0,k.K2)(E,"popStack");function x(){var e;e=r.pop()||b.lex()||p;if(typeof e!=="number"){if(e instanceof Array){r=e;e=r.pop()}e=s.symbols_[e]||e}return e}(0,k.K2)(x,"lex");var D,C,v,S,T,F,_={},B,w,L,$;while(true){v=i[i.length-1];if(this.defaultActions[v]){S=this.defaultActions[v]}else{if(D===null||typeof D=="undefined"){D=x()}S=u[v]&&u[v][D]}if(typeof S==="undefined"||!S.length||!S[0]){var I="";$=[];for(B in u[v]){if(this.terminals_[B]&&B>d){$.push("'"+this.terminals_[B]+"'")}}if(b.showPosition){I="Parse error on line "+(l+1)+":\n"+b.showPosition()+"\nExpecting "+$.join(", ")+", got '"+(this.terminals_[D]||D)+"'"}else{I="Parse error on line "+(l+1)+": Unexpected "+(D==p?"end of input":"'"+(this.terminals_[D]||D)+"'")}this.parseError(I,{text:b.match,token:this.terminals_[D]||D,line:b.yylineno,loc:y,expected:$})}if(S[0]instanceof Array&&S.length>1){throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+D)}switch(S[0]){case 1:i.push(D);n.push(b.yytext);a.push(b.yylloc);i.push(S[1]);D=null;if(!C){c=b.yyleng;o=b.yytext;l=b.yylineno;y=b.yylloc;if(h>0){h--}}else{D=C;C=null}break;case 2:w=this.productions_[S[1]][1];_.$=n[n.length-w];_._$={first_line:a[a.length-(w||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(w||1)].first_column,last_column:a[a.length-1].last_column};if(m){_._$.range=[a[a.length-(w||1)].range[0],a[a.length-1].range[1]]}F=this.performAction.apply(_,[o,c,l,g.yy,S[1],n,a].concat(f));if(typeof F!=="undefined"){return F}if(w){i=i.slice(0,-1*w*2);n=n.slice(0,-1*w);a=a.slice(0,-1*w)}i.push(this.productions_[S[1]][0]);n.push(_.$);a.push(_._$);L=u[i[i.length-2]][i[i.length-1]];i.push(L);break;case 3:return true}}return true}),"parse")};var it=function(){var e={EOF:1,parseError:(0,k.K2)((function e(t,s){if(this.yy.parser){this.yy.parser.parseError(t,s)}else{throw new Error(t)}}),"parseError"),setInput:(0,k.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,k.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,k.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 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: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=[r[0],r[0]+this.yyleng-t]}this.yyleng=this.yytext.length;return this}),"unput"),more:(0,k.K2)((function(){this._more=true;return this}),"more"),reject:(0,k.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,k.K2)((function(e){this.unput(this.match.slice(e))}),"less"),pastInput:(0,k.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,k.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,k.K2)((function(){var e=this.pastInput();var t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"}),"showPosition"),test_match:(0,k.K2)((function(e,t){var s,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=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 n in r){this[n]=r[n]}return false}return false}),"test_match"),next:(0,k.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 r=this._currentRules();for(var n=0;nt[0].length)){t=s;i=n;if(this.options.backtrack_lexer){e=this.test_match(s,r[n]);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,r[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,k.K2)((function e(){var t=this.next();if(t){return t}else{return this.lex()}}),"lex"),begin:(0,k.K2)((function e(t){this.conditionStack.push(t)}),"begin"),popState:(0,k.K2)((function e(){var t=this.conditionStack.length-1;if(t>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}}),"popState"),_currentRules:(0,k.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,k.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,k.K2)((function e(t){this.begin(t)}),"pushState"),stateStackSize:(0,k.K2)((function e(){return this.conditionStack.length}),"stateStackSize"),options:{},performAction:(0,k.K2)((function e(t,s,i,r){var n=r;switch(i){case 0:this.begin("acc_title");return 34;break;case 1:this.popState();return"acc_title_value";break;case 2:this.begin("acc_descr");return 36;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:this.pushState("shapeData");s.yytext="";return 40;break;case 8:this.pushState("shapeDataStr");return 40;break;case 9:this.popState();return 40;break;case 10:const e=/\n\s*/g;s.yytext=s.yytext.replace(e,"
");return 40;break;case 11:return 40;break;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState();this.begin("callbackargs");break;case 16:return 95;break;case 17:this.popState();break;case 18:return 96;break;case 19:return"MD_STR";break;case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";break;case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;break;case 26:return 102;break;case 27:return 85;break;case 28:return 104;break;case 29:return 86;break;case 30:return 87;break;case 31:return 97;break;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;break;case 35:if(t.lex.firstGraph()){this.begin("dir")}return 12;break;case 36:if(t.lex.firstGraph()){this.begin("dir")}return 12;break;case 37:if(t.lex.firstGraph()){this.begin("dir")}return 12;break;case 38:return 27;break;case 39:return 32;break;case 40:return 98;break;case 41:return 98;break;case 42:return 98;break;case 43:return 98;break;case 44:this.popState();return 13;break;case 45:this.popState();return 14;break;case 46:this.popState();return 14;break;case 47:this.popState();return 14;break;case 48:this.popState();return 14;break;case 49:this.popState();return 14;break;case 50:this.popState();return 14;break;case 51:this.popState();return 14;break;case 52:this.popState();return 14;break;case 53:this.popState();return 14;break;case 54:this.popState();return 14;break;case 55:return 121;break;case 56:return 122;break;case 57:return 123;break;case 58:return 124;break;case 59:return 78;break;case 60:return 105;break;case 61:return 111;break;case 62:return 46;break;case 63:return 60;break;case 64:return 44;break;case 65:return 8;break;case 66:return 106;break;case 67:return 115;break;case 68:this.popState();return 77;break;case 69:this.pushState("edgeText");return 75;break;case 70:return 119;break;case 71:this.popState();return 77;break;case 72:this.pushState("thickEdgeText");return 75;break;case 73:return 119;break;case 74:this.popState();return 77;break;case 75:this.pushState("dottedEdgeText");return 75;break;case 76:return 119;break;case 77:return 77;break;case 78:this.popState();return 53;break;case 79:return"TEXT";break;case 80:this.pushState("ellipseText");return 52;break;case 81:this.popState();return 55;break;case 82:this.pushState("text");return 54;break;case 83:this.popState();return 57;break;case 84:this.pushState("text");return 56;break;case 85:return 58;break;case 86:this.pushState("text");return 67;break;case 87:this.popState();return 64;break;case 88:this.pushState("text");return 63;break;case 89:this.popState();return 49;break;case 90:this.pushState("text");return 48;break;case 91:this.popState();return 69;break;case 92:this.popState();return 71;break;case 93:return 117;break;case 94:this.pushState("trapText");return 68;break;case 95:this.pushState("trapText");return 70;break;case 96:return 118;break;case 97:return 67;break;case 98:return 90;break;case 99:return"SEP";break;case 100:return 89;break;case 101:return 115;break;case 102:return 111;break;case 103:return 44;break;case 104:return 109;break;case 105:return 114;break;case 106:return 116;break;case 107:this.popState();return 62;break;case 108:this.pushState("text");return 62;break;case 109:this.popState();return 51;break;case 110:this.pushState("text");return 50;break;case 111:this.popState();return 31;break;case 112:this.pushState("text");return 29;break;case 113:this.popState();return 66;break;case 114:this.pushState("text");return 65;break;case 115:return"TEXT";break;case 116:return"QUOTE";break;case 117:return 9;break;case 118:return 10;break;case 119:return 11;break}}),"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-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])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},shapeDataStr:{rules:[9,10,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},shapeData:{rules:[8,11,12,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},callbackargs:{rules:[17,18,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},callbackname:{rules:[14,15,16,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},href:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},click:{rules:[21,24,33,34,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},dottedEdgeText:{rules:[21,24,74,76,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},thickEdgeText:{rules:[21,24,71,73,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},edgeText:{rules:[21,24,68,70,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},trapText:{rules:[21,24,77,80,82,84,88,90,91,92,93,94,95,108,110,112,114],inclusive:false},ellipseText:{rules:[21,24,77,78,79,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},text:{rules:[21,24,77,80,81,82,83,84,87,88,89,90,94,95,107,108,109,110,111,112,113,114,115],inclusive:false},vertex:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},acc_descr_multiline:{rules:[5,6,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},acc_descr:{rules:[3,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},acc_title:{rules:[1,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},md_string:{rules:[19,20,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},string:{rules:[21,22,23,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,71,72,74,75,77,80,82,84,85,86,88,90,94,95,96,97,98,99,100,101,102,103,104,105,106,108,110,112,114,116,117,118,119],inclusive:true}}};return e}();st.lexer=it;function rt(){this.yy={}}(0,k.K2)(rt,"Parser");rt.prototype=st;st.Parser=rt;return new rt}();v.parser=v;var S=v;var T=Object.assign({},S);T.parse=e=>{const t=e.replace(/}\s*\n/g,"}\n");return S.parse(t)};var F=T;var _=(0,k.K2)(((e,t)=>{const s=A.A;const i=s(e,"r");const r=s(e,"g");const n=s(e,"b");return y.A(i,r,n,t)}),"fade");var B=(0,k.K2)((e=>`.label {\n font-family: ${e.fontFamily};\n color: ${e.nodeTextColor||e.textColor};\n }\n .cluster-label text {\n fill: ${e.titleColor};\n }\n .cluster-label span {\n color: ${e.titleColor};\n }\n .cluster-label span p {\n background-color: transparent;\n }\n\n .label text,span {\n fill: ${e.nodeTextColor||e.textColor};\n color: ${e.nodeTextColor||e.textColor};\n }\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 .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .katex path {\n fill: #000;\n stroke: #000;\n stroke-width: 1px;\n }\n\n .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n\n .root .anchor path {\n fill: ${e.lineColor} !important;\n stroke-width: 0;\n stroke: ${e.lineColor};\n }\n\n .arrowheadPath {\n fill: ${e.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${e.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${e.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${e.edgeLabelBackground};\n p {\n background-color: ${e.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${_(e.edgeLabelBackground,.5)};\n // background-color:\n }\n\n .cluster rect {\n fill: ${e.clusterBkg};\n stroke: ${e.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${e.titleColor};\n }\n\n .cluster span {\n color: ${e.titleColor};\n }\n /* .cluster div {\n color: ${e.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${e.fontFamily};\n font-size: 12px;\n background: ${e.tertiaryColor};\n border: 1px solid ${e.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n }\n\n rect.text {\n fill: none;\n stroke-width: 0;\n }\n\n .icon-shape, .image-shape {\n background-color: ${e.edgeLabelBackground};\n p {\n background-color: ${e.edgeLabelBackground};\n padding: 2px;\n }\n rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n }\n ${(0,i.o)()}\n`),"getStyles");var w=B;var L={parser:F,get db(){return new E},renderer:C,styles:w,init:(0,k.K2)((e=>{if(!e.flowchart){e.flowchart={}}if(e.layout){(0,b.XV)({layout:e.layout})}e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute;(0,b.XV)({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})}),"init")}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/246.326a6482593e8a7bcd58.js b/share/jupyter/lab/static/246.326a6482593e8a7bcd58.js new file mode 100644 index 0000000..389f061 --- /dev/null +++ b/share/jupyter/lab/static/246.326a6482593e8a7bcd58.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[246],{30246:(e,t,n)=>{n.r(t);n.d(t,{dtd:()=>f});var r;function l(e,t){r=t;return e}function a(e,t){var n=e.next();if(n=="<"&&e.eat("!")){if(e.eatWhile(/[\-]/)){t.tokenize=i;return i(e,t)}else if(e.eatWhile(/[\w]/))return l("keyword","doindent")}else if(n=="<"&&e.eat("?")){t.tokenize=s("meta","?>");return l("meta",n)}else if(n=="#"&&e.eatWhile(/[\w]/))return l("atom","tag");else if(n=="|")return l("keyword","separator");else if(n.match(/[\(\)\[\]\-\.,\+\?>]/))return l(null,n);else if(n.match(/[\[\]]/))return l("rule",n);else if(n=='"'||n=="'"){t.tokenize=u(n);return t.tokenize(e,t)}else if(e.eatWhile(/[a-zA-Z\?\+\d]/)){var r=e.current();if(r.substr(r.length-1,r.length).match(/\?|\+/)!==null)e.backUp(1);return l("tag","tag")}else if(n=="%"||n=="*")return l("number","number");else{e.eatWhile(/[\w\\\-_%.{,]/);return l(null,null)}}function i(e,t){var n=0,r;while((r=e.next())!=null){if(n>=2&&r==">"){t.tokenize=a;break}n=r=="-"?n+1:0}return l("comment","comment")}function u(e){return function(t,n){var r=false,i;while((i=t.next())!=null){if(i==e&&!r){n.tokenize=a;break}r=!r&&i=="\\"}return l("string","tag")}}function s(e,t){return function(n,r){while(!n.eol()){if(n.match(t)){r.tokenize=a;break}n.next()}return e}}const f={name:"dtd",startState:function(){return{tokenize:a,baseIndent:0,stack:[]}},token:function(e,t){if(e.eatSpace())return null;var n=t.tokenize(e,t);var l=t.stack[t.stack.length-1];if(e.current()=="["||r==="doindent"||r=="[")t.stack.push("rule");else if(r==="endtag")t.stack[t.stack.length-1]="endtag";else if(e.current()=="]"||r=="]"||r==">"&&l=="rule")t.stack.pop();else if(r=="[")t.stack.push("[");return n},indent:function(e,t,n){var l=e.stack.length;if(t.charAt(0)==="]")l--;else if(t.substr(t.length-1,t.length)===">"){if(t.substr(0,1)==="<"){}else if(r=="doindent"&&t.length>1){}else if(r=="doindent")l--;else if(r==">"&&t.length>1){}else if(r=="tag"&&t!==">"){}else if(r=="tag"&&e.stack[e.stack.length-1]=="rule")l--;else if(r=="tag")l++;else if(t===">"&&e.stack[e.stack.length-1]=="rule"&&r===">")l--;else if(t===">"&&e.stack[e.stack.length-1]=="rule"){}else if(t.substr(0,1)!=="<"&&t.substr(0,1)===">")l=l-1;else if(t===">"){}else l=l-1;if(r==null||r=="]")l--}return e.baseIndent+l*n.unit},languageData:{indentOnInput:/^\s*[\]>]$/}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/2467.4227742ac4b60289f222.js b/share/jupyter/lab/static/2467.4227742ac4b60289f222.js new file mode 100644 index 0000000..b92148c --- /dev/null +++ b/share/jupyter/lab/static/2467.4227742ac4b60289f222.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2467],{2467:(e,t,r)=>{r.r(t);r.d(t,{velocity:()=>p});function n(e){var t={},r=e.split(" ");for(var n=0;n!?:\/|]/;function o(e,t,r){t.tokenize=r;return r(e,t)}function u(e,t){var r=t.beforeParams;t.beforeParams=false;var n=e.next();if(n=="'"&&!t.inString&&t.inParams){t.lastTokenWasBuiltin=false;return o(e,t,f(n))}else if(n=='"'){t.lastTokenWasBuiltin=false;if(t.inString){t.inString=false;return"string"}else if(t.inParams)return o(e,t,f(n))}else if(/[\[\]{}\(\),;\.]/.test(n)){if(n=="("&&r)t.inParams=true;else if(n==")"){t.inParams=false;t.lastTokenWasBuiltin=true}return null}else if(/\d/.test(n)){t.lastTokenWasBuiltin=false;e.eatWhile(/[\w\.]/);return"number"}else if(n=="#"&&e.eat("*")){t.lastTokenWasBuiltin=false;return o(e,t,c)}else if(n=="#"&&e.match(/ *\[ *\[/)){t.lastTokenWasBuiltin=false;return o(e,t,k)}else if(n=="#"&&e.eat("#")){t.lastTokenWasBuiltin=false;e.skipToEnd();return"comment"}else if(n=="$"){e.eat("!");e.eatWhile(/[\w\d\$_\.{}-]/);if(s&&s.propertyIsEnumerable(e.current())){return"keyword"}else{t.lastTokenWasBuiltin=true;t.beforeParams=true;return"builtin"}}else if(l.test(n)){t.lastTokenWasBuiltin=false;e.eatWhile(l);return"operator"}else{e.eatWhile(/[\w\$_{}@]/);var u=e.current();if(a&&a.propertyIsEnumerable(u))return"keyword";if(i&&i.propertyIsEnumerable(u)||e.current().match(/^#@?[a-z0-9_]+ *$/i)&&e.peek()=="("&&!(i&&i.propertyIsEnumerable(u.toLowerCase()))){t.beforeParams=true;t.lastTokenWasBuiltin=false;return"keyword"}if(t.inString){t.lastTokenWasBuiltin=false;return"string"}if(e.pos>u.length&&e.string.charAt(e.pos-u.length-1)=="."&&t.lastTokenWasBuiltin)return"builtin";t.lastTokenWasBuiltin=false;return null}}function f(e){return function(t,r){var n=false,a,i=false;while((a=t.next())!=null){if(a==e&&!n){i=true;break}if(e=='"'&&t.peek()=="$"&&!n){r.inString=true;i=true;break}n=!n&&a=="\\"}if(i)r.tokenize=u;return"string"}}function c(e,t){var r=false,n;while(n=e.next()){if(n=="#"&&r){t.tokenize=u;break}r=n=="*"}return"comment"}function k(e,t){var r=0,n;while(n=e.next()){if(n=="#"&&r==2){t.tokenize=u;break}if(n=="]")r++;else if(n!=" ")r=0}return"meta"}const p={name:"velocity",startState:function(){return{tokenize:u,beforeParams:false,inParams:false,inString:false,lastTokenWasBuiltin:false}},token:function(e,t){if(e.eatSpace())return null;return t.tokenize(e,t)},languageData:{commentTokens:{line:"##",block:{open:"#*",close:"*#"}}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/247.84259ab142dd8c151fc2.js b/share/jupyter/lab/static/247.84259ab142dd8c151fc2.js new file mode 100644 index 0000000..3893e31 --- /dev/null +++ b/share/jupyter/lab/static/247.84259ab142dd8c151fc2.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[247],{90247:(e,t,n)=>{n.r(t);n.d(t,{sas:()=>c});var r={};var s={eq:"operator",lt:"operator",le:"operator",gt:"operator",ge:"operator",in:"operator",ne:"operator",or:"operator"};var a=/(<=|>=|!=|<>)/;var o=/[=\(:\),{}.*<>+\-\/^\[\]]/;function i(e,t,n){if(n){var s=t.split(" ");for(var a=0;a{i.r(t);i.d(t,{RegExpCursor:()=>f,SearchCursor:()=>c,SearchQuery:()=>z,closeSearchPanel:()=>pe,findNext:()=>re,findPrevious:()=>ne,getSearchQuery:()=>J,gotoLine:()=>b,highlightSelectionMatches:()=>M,openSearchPanel:()=>de,replaceAll:()=>ae,replaceNext:()=>le,search:()=>I,searchKeymap:()=>me,searchPanelOpen:()=>X,selectMatches:()=>se,selectNextOccurrence:()=>R,selectSelectionMatches:()=>oe,setSearchQuery:()=>G});var r=i(22819);var n=i.n(r);var s=i(71674);var o=i.n(s);var l=i(41107);const a=typeof String.prototype.normalize=="function"?e=>e.normalize("NFKD"):e=>e;class c{constructor(e,t,i=0,r=e.length,n,s){this.test=s;this.value={from:0,to:0};this.done=false;this.matches=[];this.buffer="";this.bufferPos=0;this.iter=e.iterRange(i,r);this.bufferStart=i;this.normalize=n?e=>n(a(e)):a;this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){this.bufferStart+=this.buffer.length;this.iter.next();if(this.iter.done)return-1;this.bufferPos=0;this.buffer=this.iter.value}return(0,s.codePointAt)(this.buffer,this.bufferPos)}next(){while(this.matches.length)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0){this.done=true;return this}let t=(0,s.fromCodePoint)(e),i=this.bufferStart+this.bufferPos;this.bufferPos+=(0,s.codePointSize)(e);let r=this.normalize(t);if(r.length)for(let n=0,s=i;;n++){let e=r.charCodeAt(n);let o=this.match(e,s,this.bufferPos+this.bufferStart);if(n==r.length-1){if(o){this.value=o;return this}break}if(s==i&&nthis.to)this.curLine=this.curLine.slice(0,this.to-this.curLineStart);this.iter.next()}}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1;if(this.curLineStart>this.to)this.curLine="";else this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let i=this.curLineStart+t.index,r=i+t[0].length;this.matchPos=v(this.text,r+(i==r?1:0));if(i==this.curLineStart+this.curLine.length)this.nextLine();if((ithis.value.to)&&(!this.test||this.test(i,r,t))){this.value={from:i,to:r,match:t};return this}e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=i||r.to<=t){let r=new p(t,e.sliceString(t,i));d.set(e,r);return r}if(r.from==t&&r.to==i)return r;let{text:n,from:s}=r;if(s>t){n=e.sliceString(t,s)+n;s=t}if(r.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from;let t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e){this.re.lastIndex=e+1;t=this.re.exec(this.flat.text)}if(t){let e=this.flat.from+t.index,i=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,i,t))){this.value={from:e,to:i,match:t};this.matchPos=v(this.text,i+(e==i?1:0));return this}}if(this.flat.to==this.to){this.done=true;return this}this.flat=p.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}if(typeof Symbol!="undefined"){f.prototype[Symbol.iterator]=m.prototype[Symbol.iterator]=function(){return this}}function g(e){try{new RegExp(e,u);return true}catch(t){return false}}function v(e,t){if(t>=e.length)return t;let i=e.lineAt(t),r;while(t=56320&&r<57344)t++;return t}function x(e){let t=String(e.state.doc.lineAt(e.state.selection.main.head).number);let i=(0,l.A)("input",{class:"cm-textfield",name:"line",value:t});let n=(0,l.A)("form",{class:"cm-gotoLine",onkeydown:t=>{if(t.keyCode==27){t.preventDefault();e.dispatch({effects:y.of(false)});e.focus()}else if(t.keyCode==13){t.preventDefault();o()}},onsubmit:e=>{e.preventDefault();o()}},(0,l.A)("label",e.state.phrase("Go to line"),": ",i)," ",(0,l.A)("button",{class:"cm-button",type:"submit"},e.state.phrase("go")),(0,l.A)("button",{name:"close",onclick:()=>{e.dispatch({effects:y.of(false)});e.focus()},"aria-label":e.state.phrase("close"),type:"button"},["×"]));function o(){let t=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(i.value);if(!t)return;let{state:n}=e,o=n.doc.lineAt(n.selection.main.head);let[,l,a,c,h]=t;let u=c?+c.slice(1):0;let f=a?+a:o.number;if(a&&h){let e=f/100;if(l)e=e*(l=="-"?-1:1)+o.number/n.doc.lines;f=Math.round(n.doc.lines*e)}else if(a&&l){f=f*(l=="-"?-1:1)+o.number}let d=n.doc.line(Math.max(1,Math.min(n.doc.lines,f)));let p=s.EditorSelection.cursor(d.from+Math.max(0,Math.min(u,d.length)));e.dispatch({effects:[y.of(false),r.EditorView.scrollIntoView(p.from,{y:"center"})],selection:p});e.focus()}return{dom:n}}const y=s.StateEffect.define();const w=s.StateField.define({create(){return true},update(e,t){for(let i of t.effects)if(i.is(y))e=i.value;return e},provide:e=>r.showPanel.from(e,(e=>e?x:null))});const b=e=>{let t=(0,r.getPanel)(e,x);if(!t){let i=[y.of(true)];if(e.state.field(w,false)==null)i.push(s.StateEffect.appendConfig.of([w,S]));e.dispatch({effects:i});t=(0,r.getPanel)(e,x)}if(t)t.dom.querySelector("input").select();return true};const S=r.EditorView.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px",position:"relative","& label":{fontSize:"80%"},"& [name=close]":{position:"absolute",top:"0",bottom:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:"0"}}});const C={highlightWordAroundCursor:false,minSelectionLength:1,maxMatches:100,wholeWords:false};const k=s.Facet.define({combine(e){return(0,s.combineConfig)(e,C,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function M(e){let t=[P,L];if(e)t.push(k.of(e));return t}const A=r.Decoration.mark({class:"cm-selectionMatch"});const E=r.Decoration.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function q(e,t,i,r){return(i==0||e(t.sliceDoc(i-1,i))!=s.CharCategory.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=s.CharCategory.Word)}function D(e,t,i,r){return e(t.sliceDoc(i,i+1))==s.CharCategory.Word&&e(t.sliceDoc(r-1,r))==s.CharCategory.Word}const L=r.ViewPlugin.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){if(e.selectionSet||e.docChanged||e.viewportChanged)this.decorations=this.getDeco(e.view)}getDeco(e){let t=e.state.facet(k);let{state:i}=e,n=i.selection;if(n.ranges.length>1)return r.Decoration.none;let s=n.main,o,l=null;if(s.empty){if(!t.highlightWordAroundCursor)return r.Decoration.none;let e=i.wordAt(s.head);if(!e)return r.Decoration.none;l=i.charCategorizer(s.head);o=i.sliceDoc(e.from,e.to)}else{let e=s.to-s.from;if(e200)return r.Decoration.none;if(t.wholeWords){o=i.sliceDoc(s.from,s.to);l=i.charCategorizer(s.head);if(!(q(l,i,s.from,s.to)&&D(l,i,s.from,s.to)))return r.Decoration.none}else{o=i.sliceDoc(s.from,s.to);if(!o)return r.Decoration.none}}let a=[];for(let h of e.visibleRanges){let e=new c(i.doc,o,h.from,h.to);while(!e.next().done){let{from:n,to:o}=e.value;if(!l||q(l,i,n,o)){if(s.empty&&n<=s.from&&o>=s.to)a.push(E.range(n,o));else if(n>=s.to||o<=s.from)a.push(A.range(n,o));if(a.length>t.maxMatches)return r.Decoration.none}}}return r.Decoration.set(a)}},{decorations:e=>e.decorations});const P=r.EditorView.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}});const W=({state:e,dispatch:t})=>{let{selection:i}=e;let r=s.EditorSelection.create(i.ranges.map((t=>e.wordAt(t.head)||s.EditorSelection.cursor(t.head))),i.mainIndex);if(r.eq(i))return false;t(e.update({selection:r}));return true};function F(e,t){let{main:i,ranges:r}=e.selection;let n=e.wordAt(i.head),s=n&&n.from==i.from&&n.to==i.to;for(let o=false,l=new c(e.doc,t,r[r.length-1].to);;){l.next();if(l.done){if(o)return null;l=new c(e.doc,t,0,Math.max(0,r[r.length-1].from-1));o=true}else{if(o&&r.some((e=>e.from==l.value.from)))continue;if(s){let t=e.wordAt(l.value.from);if(!t||t.from!=l.value.from||t.to!=l.value.to)continue}return l.value}}}const R=({state:e,dispatch:t})=>{let{ranges:i}=e.selection;if(i.some((e=>e.from===e.to)))return W({state:e,dispatch:t});let n=e.sliceDoc(i[0].from,i[0].to);if(e.selection.ranges.some((t=>e.sliceDoc(t.from,t.to)!=n)))return false;let o=F(e,n);if(!o)return false;t(e.update({selection:e.selection.addRange(s.EditorSelection.range(o.from,o.to),false),effects:r.EditorView.scrollIntoView(o.to)}));return true};const V=s.Facet.define({combine(e){return(0,s.combineConfig)(e,{top:false,caseSensitive:false,literal:false,regexp:false,wholeWord:false,createPanel:e=>new ge(e),scrollToMatch:e=>r.EditorView.scrollIntoView(e)})}});function I(e){return e?[V.of(e),Se]:Se}class z{constructor(e){this.search=e.search;this.caseSensitive=!!e.caseSensitive;this.literal=!!e.literal;this.regexp=!!e.regexp;this.replace=e.replace||"";this.valid=!!this.search&&(!this.regexp||g(this.search));this.unquoted=this.unquote(this.search);this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,((e,t)=>t=="n"?"\n":t=="r"?"\r":t=="t"?"\t":"\\"))}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new K(this):new _(this)}getCursor(e,t=0,i){let r=e.doc?e:s.EditorState.create({doc:e});if(i==null)i=r.doc.length;return this.regexp?N(this,r,t,i):T(this,r,t,i)}}class O{constructor(e){this.spec=e}}function T(e,t,i,r){return new c(t.doc,e.unquoted,i,r,e.caseSensitive?undefined:e=>e.toLowerCase(),e.wholeWord?$(t.doc,t.charCategorizer(t.selection.main.head)):undefined)}function $(e,t){return(i,r,n,o)=>{if(o>i||o+n.length=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let n=T(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));while(!n.next().done)r(n.value.from,n.value.to)}}function N(e,t,i,r){return new f(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?B(t.charCategorizer(t.selection.main.head)):undefined},i,r)}function Q(e,t){return e.slice((0,s.findClusterBreak)(e,t,false),t)}function j(e,t){return e.slice(t,(0,s.findClusterBreak)(e,t))}function B(e){return(t,i,r)=>!r[0].length||(e(Q(r.input,r.index))!=s.CharCategory.Word||e(j(r.input,r.index))!=s.CharCategory.Word)&&(e(j(r.input,r.index+r[0].length))!=s.CharCategory.Word||e(Q(r.input,r.index+r[0].length))!=s.CharCategory.Word)}class K extends O{nextMatch(e,t,i){let r=N(this.spec,e,i,e.doc.length).next();if(r.done)r=N(this.spec,e,0,t).next();return r.done?null:r.value}prevMatchInRange(e,t,i){for(let r=1;;r++){let n=Math.max(t,i-r*1e4);let s=N(this.spec,e,n,i),o=null;while(!s.next().done)o=s.value;if(o&&(n==t||o.from>n+10))return o;if(n==t)return null}}prevMatch(e,t,i){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,((t,i)=>{if(i=="&")return e.match[0];if(i=="$")return"$";for(let r=i.length;r>0;r--){let t=+i.slice(0,r);if(t>0&&t=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let n=N(this.spec,e,Math.max(0,t-250),Math.min(i+250,e.doc.length));while(!n.next().done)r(n.value.from,n.value.to)}}const G=s.StateEffect.define();const H=s.StateEffect.define();const U=s.StateField.define({create(e){return new Y(he(e).create(),null)},update(e,t){for(let i of t.effects){if(i.is(G))e=new Y(i.value.create(),e.panel);else if(i.is(H))e=new Y(e.query,i.value?ce:null)}return e},provide:e=>r.showPanel.from(e,(e=>e.panel))});function J(e){let t=e.field(U,false);return t?t.query.spec:he(e)}function X(e){var t;return((t=e.field(U,false))===null||t===void 0?void 0:t.panel)!=null}class Y{constructor(e,t){this.query=e;this.panel=t}}const Z=r.Decoration.mark({class:"cm-searchMatch"}),ee=r.Decoration.mark({class:"cm-searchMatch cm-searchMatch-selected"});const te=r.ViewPlugin.fromClass(class{constructor(e){this.view=e;this.decorations=this.highlight(e.state.field(U))}update(e){let t=e.state.field(U);if(t!=e.startState.field(U)||e.docChanged||e.selectionSet||e.viewportChanged)this.decorations=this.highlight(t)}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return r.Decoration.none;let{view:i}=this;let n=new s.RangeSetBuilder;for(let r=0,s=i.visibleRanges,o=s.length;rs[r+1].from-2*250)l=s[++r].to;e.highlight(i.state,t,l,((e,t)=>{let r=i.state.selection.ranges.some((i=>i.from==e&&i.to==t));n.add(e,t,r?ee:Z)}))}return n.finish()}},{decorations:e=>e.decorations});function ie(e){return t=>{let i=t.state.field(U,false);return i&&i.query.spec.valid?e(t,i):de(t)}}const re=ie(((e,{query:t})=>{let{to:i}=e.state.selection.main;let r=t.nextMatch(e.state,i,i);if(!r)return false;let n=s.EditorSelection.single(r.from,r.to);let o=e.state.facet(V);e.dispatch({selection:n,effects:[we(e,r),o.scrollToMatch(n.main,e)],userEvent:"select.search"});fe(e);return true}));const ne=ie(((e,{query:t})=>{let{state:i}=e,{from:r}=i.selection.main;let n=t.prevMatch(i,r,r);if(!n)return false;let o=s.EditorSelection.single(n.from,n.to);let l=e.state.facet(V);e.dispatch({selection:o,effects:[we(e,n),l.scrollToMatch(o.main,e)],userEvent:"select.search"});fe(e);return true}));const se=ie(((e,{query:t})=>{let i=t.matchAll(e.state,1e3);if(!i||!i.length)return false;e.dispatch({selection:s.EditorSelection.create(i.map((e=>s.EditorSelection.range(e.from,e.to)))),userEvent:"select.search.matches"});return true}));const oe=({state:e,dispatch:t})=>{let i=e.selection;if(i.ranges.length>1||i.main.empty)return false;let{from:r,to:n}=i.main;let o=[],l=0;for(let a=new c(e.doc,e.sliceDoc(r,n));!a.next().done;){if(o.length>1e3)return false;if(a.value.from==r)l=o.length;o.push(s.EditorSelection.range(a.value.from,a.value.to))}t(e.update({selection:s.EditorSelection.create(o,l),userEvent:"select.search.matches"}));return true};const le=ie(((e,{query:t})=>{let{state:i}=e,{from:n,to:o}=i.selection.main;if(i.readOnly)return false;let l=t.nextMatch(i,n,n);if(!l)return false;let a=l;let c=[],h,u;let f=[];if(a.from==n&&a.to==o){u=i.toText(t.getReplacement(a));c.push({from:a.from,to:a.to,insert:u});a=t.nextMatch(i,a.from,a.to);f.push(r.EditorView.announce.of(i.phrase("replaced match on line $",i.doc.lineAt(n).number)+"."))}if(a){let t=c.length==0||c[0].from>=l.to?0:l.to-l.from-u.length;h=s.EditorSelection.single(a.from-t,a.to-t);f.push(we(e,a));f.push(i.facet(V).scrollToMatch(h.main,e))}e.dispatch({changes:c,selection:h,effects:f,userEvent:"input.replace"});return true}));const ae=ie(((e,{query:t})=>{if(e.state.readOnly)return false;let i=t.matchAll(e.state,1e9).map((e=>{let{from:i,to:r}=e;return{from:i,to:r,insert:t.getReplacement(e)}}));if(!i.length)return false;let n=e.state.phrase("replaced $ matches",i.length)+".";e.dispatch({changes:i,effects:r.EditorView.announce.of(n),userEvent:"input.replace.all"});return true}));function ce(e){return e.state.facet(V).createPanel(e)}function he(e,t){var i,r,n,s,o;let l=e.selection.main;let a=l.empty||l.to>l.from+100?"":e.sliceDoc(l.from,l.to);if(t&&!a)return t;let c=e.facet(V);return new z({search:((i=t===null||t===void 0?void 0:t.literal)!==null&&i!==void 0?i:c.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:(r=t===null||t===void 0?void 0:t.caseSensitive)!==null&&r!==void 0?r:c.caseSensitive,literal:(n=t===null||t===void 0?void 0:t.literal)!==null&&n!==void 0?n:c.literal,regexp:(s=t===null||t===void 0?void 0:t.regexp)!==null&&s!==void 0?s:c.regexp,wholeWord:(o=t===null||t===void 0?void 0:t.wholeWord)!==null&&o!==void 0?o:c.wholeWord})}function ue(e){let t=(0,r.getPanel)(e,ce);return t&&t.dom.querySelector("[main-field]")}function fe(e){let t=ue(e);if(t&&t==e.root.activeElement)t.select()}const de=e=>{let t=e.state.field(U,false);if(t&&t.panel){let i=ue(e);if(i&&i!=e.root.activeElement){let r=he(e.state,t.query.spec);if(r.valid)e.dispatch({effects:G.of(r)});i.focus();i.select()}}else{e.dispatch({effects:[H.of(true),t?G.of(he(e.state,t.query.spec)):s.StateEffect.appendConfig.of(Se)]})}return true};const pe=e=>{let t=e.state.field(U,false);if(!t||!t.panel)return false;let i=(0,r.getPanel)(e,ce);if(i&&i.dom.contains(e.root.activeElement))e.focus();e.dispatch({effects:H.of(false)});return true};const me=[{key:"Mod-f",run:de,scope:"editor search-panel"},{key:"F3",run:re,shift:ne,scope:"editor search-panel",preventDefault:true},{key:"Mod-g",run:re,shift:ne,scope:"editor search-panel",preventDefault:true},{key:"Escape",run:pe,scope:"editor search-panel"},{key:"Mod-Shift-l",run:oe},{key:"Mod-Alt-g",run:b},{key:"Mod-d",run:R,preventDefault:true}];class ge{constructor(e){this.view=e;let t=this.query=e.state.field(U).query.spec;this.commit=this.commit.bind(this);this.searchField=(0,l.A)("input",{value:t.search,placeholder:ve(e,"Find"),"aria-label":ve(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit});this.replaceField=(0,l.A)("input",{value:t.replace,placeholder:ve(e,"Replace"),"aria-label":ve(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit});this.caseField=(0,l.A)("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit});this.reField=(0,l.A)("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit});this.wordField=(0,l.A)("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit});function i(e,t,i){return(0,l.A)("button",{class:"cm-button",name:e,onclick:t,type:"button"},i)}this.dom=(0,l.A)("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,i("next",(()=>re(e)),[ve(e,"next")]),i("prev",(()=>ne(e)),[ve(e,"previous")]),i("select",(()=>se(e)),[ve(e,"all")]),(0,l.A)("label",null,[this.caseField,ve(e,"match case")]),(0,l.A)("label",null,[this.reField,ve(e,"regexp")]),(0,l.A)("label",null,[this.wordField,ve(e,"by word")]),...e.state.readOnly?[]:[(0,l.A)("br"),this.replaceField,i("replace",(()=>le(e)),[ve(e,"replace")]),i("replaceAll",(()=>ae(e)),[ve(e,"replace all")])],(0,l.A)("button",{name:"close",onclick:()=>pe(e),"aria-label":ve(e,"close"),type:"button"},["×"])])}commit(){let e=new z({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});if(!e.eq(this.query)){this.query=e;this.view.dispatch({effects:G.of(e)})}}keydown(e){if((0,r.runScopeHandlers)(this.view,e,"search-panel")){e.preventDefault()}else if(e.keyCode==13&&e.target==this.searchField){e.preventDefault();(e.shiftKey?ne:re)(this.view)}else if(e.keyCode==13&&e.target==this.replaceField){e.preventDefault();le(this.view)}}update(e){for(let t of e.transactions)for(let e of t.effects){if(e.is(G)&&!e.value.eq(this.query))this.setQuery(e.value)}}setQuery(e){this.query=e;this.searchField.value=e.search;this.replaceField.value=e.replace;this.caseField.checked=e.caseSensitive;this.reField.checked=e.regexp;this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(V).top}}function ve(e,t){return e.state.phrase(t)}const xe=30;const ye=/[\s\.,:;?!]/;function we(e,{from:t,to:i}){let n=e.state.doc.lineAt(t),s=e.state.doc.lineAt(i).to;let o=Math.max(n.from,t-xe),l=Math.min(s,i+xe);let a=e.state.sliceDoc(o,l);if(o!=n.from){for(let e=0;ea.length-xe;e--)if(!ye.test(a[e-1])&&ye.test(a[e])){a=a.slice(0,e);break}}return r.EditorView.announce.of(`${e.state.phrase("current match")}. ${a} ${e.state.phrase("on line")} ${n.number}.`)}const be=r.EditorView.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}});const Se=[U,s.Prec.low(te),be]},41107:(e,t,i)=>{i.d(t,{A:()=>r});function r(){var e=arguments[0];if(typeof e=="string")e=document.createElement(e);var t=1,i=arguments[1];if(i&&typeof i=="object"&&i.nodeType==null&&!Array.isArray(i)){for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r)){var s=i[r];if(typeof s=="string")e.setAttribute(r,s);else if(s!=null)e[r]=s}t++}for(;t{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{o.r(t);o.d(t,{Accordion:()=>oi,AccordionItem:()=>ei,Anchor:()=>_i,AnchoredRegion:()=>Ui,Avatar:()=>en,Badge:()=>an,Breadcrumb:()=>sn,BreadcrumbItem:()=>un,Button:()=>gn,Card:()=>xn,Checkbox:()=>Fn,Combobox:()=>Dn,DataGrid:()=>Rn,DataGridCell:()=>On,DataGridRow:()=>Nn,DateField:()=>qn,DelegatesARIAToolbar:()=>Ds,DesignSystemProvider:()=>Qn,Dialog:()=>al,DirectionalStyleSheetBehavior:()=>Zi,Disclosure:()=>ll,Divider:()=>dl,FoundationToolbar:()=>Vs,Listbox:()=>hl,Menu:()=>bl,MenuItem:()=>vl,NumberField:()=>yl,Option:()=>Fl,PaletteRGB:()=>nt,Picker:()=>Js,PickerList:()=>rc,PickerListItem:()=>ic,PickerMenu:()=>Qs,PickerMenuOption:()=>tc,Progress:()=>Tl,ProgressRing:()=>jl,Radio:()=>Ol,RadioGroup:()=>Pl,Search:()=>Gl,Select:()=>_l,Skeleton:()=>Ul,Slider:()=>Kl,SliderLabel:()=>as,StandardLuminance:()=>he,SwatchRGB:()=>se,Switch:()=>ls,Tab:()=>ps,TabPanel:()=>ds,Tabs:()=>fs,TextArea:()=>$s,TextField:()=>ws,Toolbar:()=>js,Tooltip:()=>Ls,TreeItem:()=>Ms,TreeView:()=>_s,accentColor:()=>Xo,accentFillActive:()=>pr,accentFillActiveDelta:()=>vo,accentFillFocus:()=>gr,accentFillFocusDelta:()=>$o,accentFillHover:()=>hr,accentFillHoverDelta:()=>mo,accentFillRecipe:()=>dr,accentFillRest:()=>ur,accentFillRestDelta:()=>fo,accentForegroundActive:()=>jr,accentForegroundActiveDelta:()=>wo,accentForegroundFocus:()=>zr,accentForegroundFocusDelta:()=>ko,accentForegroundHover:()=>Dr,accentForegroundHoverDelta:()=>yo,accentForegroundRecipe:()=>Tr,accentForegroundRest:()=>Vr,accentForegroundRestDelta:()=>xo,accentPalette:()=>Zo,accordionItemStyles:()=>Qa,accordionStyles:()=>Ya,addJupyterLabThemeChangeListener:()=>_a,allComponents:()=>lc,anchorStyles:()=>Ei,anchoredRegionStyles:()=>Wi,applyJupyterTheme:()=>Xa,avatarStyles:()=>Qi,badgeStyles:()=>rn,baseHeightMultiplier:()=>At,baseHorizontalSpacingMultiplier:()=>Mt,baseLayerLuminance:()=>Gt,bodyFont:()=>It,breadcrumbItemStyles:()=>dn,breadcrumbStyles:()=>ln,buttonStyles:()=>pn,cardStyles:()=>$n,checkboxStyles:()=>wn,checkboxTemplate:()=>kn,comboboxStyles:()=>Vn,controlCornerRadius:()=>Et,dataGridCellStyles:()=>Ln,dataGridRowStyles:()=>Bn,dataGridStyles:()=>zn,dateFieldStyles:()=>Un,dateFieldTemplate:()=>Xn,density:()=>_t,designSystemProviderStyles:()=>tl,designSystemProviderTemplate:()=>el,designUnit:()=>qt,dialogStyles:()=>rl,direction:()=>Ut,disabledOpacity:()=>Xt,disclosureStyles:()=>nl,dividerStyles:()=>cl,elementScale:()=>Wt,errorColor:()=>fa,errorFillActive:()=>ya,errorFillFocus:()=>wa,errorFillHover:()=>xa,errorFillRecipe:()=>va,errorFillRest:()=>$a,errorForegroundActive:()=>Ra,errorForegroundFocus:()=>Ia,errorForegroundHover:()=>Pa,errorForegroundRecipe:()=>Ha,errorForegroundRest:()=>Na,errorPalette:()=>ma,fillColor:()=>sr,focusStrokeInner:()=>ra,focusStrokeInnerRecipe:()=>oa,focusStrokeOuter:()=>ta,focusStrokeOuterRecipe:()=>ea,focusStrokeWidth:()=>Yt,foregroundOnAccentActive:()=>$r,foregroundOnAccentActiveLarge:()=>Fr,foregroundOnAccentFocus:()=>xr,foregroundOnAccentFocusLarge:()=>Cr,foregroundOnAccentHover:()=>vr,foregroundOnAccentHoverLarge:()=>kr,foregroundOnAccentLargeRecipe:()=>yr,foregroundOnAccentRecipe:()=>fr,foregroundOnAccentRest:()=>mr,foregroundOnAccentRestLarge:()=>wr,foregroundOnErrorActive:()=>Ta,foregroundOnErrorActiveLarge:()=>Ba,foregroundOnErrorFocus:()=>Va,foregroundOnErrorFocusLarge:()=>La,foregroundOnErrorHover:()=>Sa,foregroundOnErrorHoverLarge:()=>za,foregroundOnErrorLargeRecipe:()=>Da,foregroundOnErrorRecipe:()=>Fa,foregroundOnErrorRest:()=>Ca,foregroundOnErrorRestLarge:()=>ja,heightNumberAsToken:()=>ba,horizontalSliderLabelStyles:()=>ts,imgTemplate:()=>tn,isDark:()=>ge,jpAccordion:()=>ri,jpAccordionItem:()=>ti,jpAnchor:()=>qi,jpAnchoredRegion:()=>Xi,jpAvatar:()=>on,jpBadge:()=>nn,jpBreadcrumb:()=>cn,jpBreadcrumbItem:()=>hn,jpButton:()=>bn,jpCard:()=>yn,jpCheckbox:()=>Cn,jpCombobox:()=>jn,jpDataGrid:()=>In,jpDataGridCell:()=>Hn,jpDataGridRow:()=>Pn,jpDateField:()=>Zn,jpDesignSystemProvider:()=>ol,jpDialog:()=>il,jpDisclosure:()=>sl,jpDivider:()=>ul,jpListbox:()=>pl,jpMenu:()=>fl,jpMenuItem:()=>$l,jpNumberField:()=>wl,jpOption:()=>Cl,jpPicker:()=>Ks,jpPickerList:()=>ac,jpPickerListItem:()=>nc,jpPickerMenu:()=>ec,jpPickerMenuOption:()=>oc,jpProgress:()=>Vl,jpProgressRing:()=>zl,jpRadio:()=>Hl,jpRadioGroup:()=>Rl,jpSearch:()=>El,jpSelect:()=>ql,jpSkeleton:()=>Xl,jpSlider:()=>Ql,jpSliderLabel:()=>is,jpSwitch:()=>ss,jpTab:()=>gs,jpTabPanel:()=>us,jpTabs:()=>ms,jpTextArea:()=>xs,jpTextField:()=>ks,jpToolbar:()=>zs,jpTooltip:()=>Os,jpTreeItem:()=>Gs,jpTreeView:()=>qs,listboxStyles:()=>Sn,menuItemStyles:()=>ml,menuStyles:()=>gl,neutralColor:()=>Wo,neutralFillActive:()=>Hr,neutralFillActiveDelta:()=>So,neutralFillFocus:()=>Nr,neutralFillFocusDelta:()=>To,neutralFillHover:()=>Or,neutralFillHoverDelta:()=>Co,neutralFillInputActive:()=>Ar,neutralFillInputActiveDelta:()=>jo,neutralFillInputFocus:()=>Mr,neutralFillInputFocusDelta:()=>zo,neutralFillInputHover:()=>Ir,neutralFillInputHoverDelta:()=>Do,neutralFillInputRecipe:()=>Pr,neutralFillInputRest:()=>Rr,neutralFillInputRestDelta:()=>Vo,neutralFillLayerRecipe:()=>Kr,neutralFillLayerRest:()=>Qr,neutralFillLayerRestDelta:()=>Ao,neutralFillRecipe:()=>Br,neutralFillRest:()=>Lr,neutralFillRestDelta:()=>Fo,neutralFillStealthActive:()=>qr,neutralFillStealthActiveDelta:()=>Oo,neutralFillStealthFocus:()=>Wr,neutralFillStealthFocusDelta:()=>Ho,neutralFillStealthHover:()=>_r,neutralFillStealthHoverDelta:()=>Lo,neutralFillStealthRecipe:()=>Gr,neutralFillStealthRest:()=>Er,neutralFillStealthRestDelta:()=>Bo,neutralFillStrongActive:()=>Yr,neutralFillStrongActiveDelta:()=>Ro,neutralFillStrongFocus:()=>Jr,neutralFillStrongFocusDelta:()=>Io,neutralFillStrongHover:()=>Zr,neutralFillStrongHoverDelta:()=>Po,neutralFillStrongRecipe:()=>Ur,neutralFillStrongRest:()=>Xr,neutralFillStrongRestDelta:()=>No,neutralForegroundHint:()=>ia,neutralForegroundHintRecipe:()=>aa,neutralForegroundRecipe:()=>na,neutralForegroundRest:()=>la,neutralLayer1:()=>tr,neutralLayer1Recipe:()=>er,neutralLayer2:()=>rr,neutralLayer2Recipe:()=>or,neutralLayer3:()=>ir,neutralLayer3Recipe:()=>ar,neutralLayer4:()=>lr,neutralLayer4Recipe:()=>nr,neutralLayerCardContainer:()=>Jo,neutralLayerCardContainerRecipe:()=>Yo,neutralLayerFloating:()=>Qo,neutralLayerFloatingRecipe:()=>Ko,neutralPalette:()=>Uo,neutralStrokeActive:()=>ua,neutralStrokeActiveDelta:()=>Eo,neutralStrokeDividerRecipe:()=>pa,neutralStrokeDividerRest:()=>ga,neutralStrokeDividerRestDelta:()=>qo,neutralStrokeFocus:()=>ha,neutralStrokeFocusDelta:()=>_o,neutralStrokeHover:()=>da,neutralStrokeHoverDelta:()=>Go,neutralStrokeRecipe:()=>sa,neutralStrokeRest:()=>ca,neutralStrokeRestDelta:()=>Mo,numberFieldStyles:()=>xl,optionStyles:()=>kl,pickerListItemStyles:()=>Ys,pickerMenuOptionStyles:()=>Xs,pickerMenuStyles:()=>Us,pickerStyles:()=>Ws,progressRingStyles:()=>Dl,progressStyles:()=>Sl,provideJupyterDesignSystem:()=>sc,radioGroupStyles:()=>Nl,radioStyles:()=>Bl,radioTemplate:()=>Ll,searchStyles:()=>Ml,selectStyles:()=>Tn,skeletonStyles:()=>Wl,sliderLabelStyles:()=>rs,sliderStyles:()=>Jl,strokeWidth:()=>Zt,switchStyles:()=>ns,tabPanelStyles:()=>cs,tabStyles:()=>hs,tabsStyles:()=>bs,textAreaStyles:()=>vs,textFieldStyles:()=>ys,toolbarStyles:()=>Ss,tooltipStyles:()=>Bs,treeItemStyles:()=>As,treeViewStyles:()=>Es,typeRampBaseFontSize:()=>Jt,typeRampBaseLineHeight:()=>Kt,typeRampMinus1FontSize:()=>Qt,typeRampMinus1LineHeight:()=>eo,typeRampMinus2FontSize:()=>to,typeRampMinus2LineHeight:()=>oo,typeRampPlus1FontSize:()=>ro,typeRampPlus1LineHeight:()=>ao,typeRampPlus2FontSize:()=>io,typeRampPlus2LineHeight:()=>no,typeRampPlus3FontSize:()=>lo,typeRampPlus3LineHeight:()=>so,typeRampPlus4FontSize:()=>co,typeRampPlus4LineHeight:()=>uo,typeRampPlus5FontSize:()=>ho,typeRampPlus5LineHeight:()=>po,typeRampPlus6FontSize:()=>go,typeRampPlus6LineHeight:()=>bo,verticalSliderLabelStyles:()=>os});function r(e,t,o){if(isNaN(e)||e<=t){return t}else if(e>=o){return o}return e}function a(e,t,o){if(isNaN(e)||e<=t){return 0}else if(e>=o){return 1}return e/(o-t)}function i(e,t,o){if(isNaN(e)){return t}return t+e*(o-t)}function n(e){return e*(Math.PI/180)}function l(e){return e*(180/Math.PI)}function s(e){const t=Math.round(r(e,0,255)).toString(16);if(t.length===1){return"0"+t}return t}function c(e,t,o){if(isNaN(e)||e<=0){return t}else if(e>=1){return o}return t+e*(o-t)}function d(e,t,o){if(e<=0){return t%360}else if(e>=1){return o%360}const r=(t-o+360)%360;const a=(o-t+360)%360;if(r<=a){return(t-r*e+360)%360}return(t+r*e+360)%360}const u=Math.PI*2;function h(e,t,o){if(isNaN(e)||e<=0){return t%u}else if(e>=1){return o%u}const r=(t-o+u)%u;const a=(o-t+u)%u;if(r<=a){return(t-r*e+u)%u}return(t+r*e+u)%u}function p(e,t){const o=Math.pow(10,t);return Math.round(e*o)/o}class g{constructor(e,t,o,r){this.r=e;this.g=t;this.b=o;this.a=typeof r==="number"&&!isNaN(r)?r:1}static fromObject(e){return e&&!isNaN(e.r)&&!isNaN(e.g)&&!isNaN(e.b)?new g(e.r,e.g,e.b,e.a):null}equalValue(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(i(this.r,0,255))},${Math.round(i(this.g,0,255))},${Math.round(i(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(i(this.r,0,255))},${Math.round(i(this.g,0,255))},${Math.round(i(this.b,0,255))},${r(this.a,0,1)})`}roundToPrecision(e){return new g(p(this.r,e),p(this.g,e),p(this.b,e),p(this.a,e))}clamp(){return new g(r(this.r,0,1),r(this.g,0,1),r(this.b,0,1),r(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(e){return s(i(e,0,255))}}const b={aliceblue:{r:.941176,g:.972549,b:1},antiquewhite:{r:.980392,g:.921569,b:.843137},aqua:{r:0,g:1,b:1},aquamarine:{r:.498039,g:1,b:.831373},azure:{r:.941176,g:1,b:1},beige:{r:.960784,g:.960784,b:.862745},bisque:{r:1,g:.894118,b:.768627},black:{r:0,g:0,b:0},blanchedalmond:{r:1,g:.921569,b:.803922},blue:{r:0,g:0,b:1},blueviolet:{r:.541176,g:.168627,b:.886275},brown:{r:.647059,g:.164706,b:.164706},burlywood:{r:.870588,g:.721569,b:.529412},cadetblue:{r:.372549,g:.619608,b:.627451},chartreuse:{r:.498039,g:1,b:0},chocolate:{r:.823529,g:.411765,b:.117647},coral:{r:1,g:.498039,b:.313725},cornflowerblue:{r:.392157,g:.584314,b:.929412},cornsilk:{r:1,g:.972549,b:.862745},crimson:{r:.862745,g:.078431,b:.235294},cyan:{r:0,g:1,b:1},darkblue:{r:0,g:0,b:.545098},darkcyan:{r:0,g:.545098,b:.545098},darkgoldenrod:{r:.721569,g:.52549,b:.043137},darkgray:{r:.662745,g:.662745,b:.662745},darkgreen:{r:0,g:.392157,b:0},darkgrey:{r:.662745,g:.662745,b:.662745},darkkhaki:{r:.741176,g:.717647,b:.419608},darkmagenta:{r:.545098,g:0,b:.545098},darkolivegreen:{r:.333333,g:.419608,b:.184314},darkorange:{r:1,g:.54902,b:0},darkorchid:{r:.6,g:.196078,b:.8},darkred:{r:.545098,g:0,b:0},darksalmon:{r:.913725,g:.588235,b:.478431},darkseagreen:{r:.560784,g:.737255,b:.560784},darkslateblue:{r:.282353,g:.239216,b:.545098},darkslategray:{r:.184314,g:.309804,b:.309804},darkslategrey:{r:.184314,g:.309804,b:.309804},darkturquoise:{r:0,g:.807843,b:.819608},darkviolet:{r:.580392,g:0,b:.827451},deeppink:{r:1,g:.078431,b:.576471},deepskyblue:{r:0,g:.74902,b:1},dimgray:{r:.411765,g:.411765,b:.411765},dimgrey:{r:.411765,g:.411765,b:.411765},dodgerblue:{r:.117647,g:.564706,b:1},firebrick:{r:.698039,g:.133333,b:.133333},floralwhite:{r:1,g:.980392,b:.941176},forestgreen:{r:.133333,g:.545098,b:.133333},fuchsia:{r:1,g:0,b:1},gainsboro:{r:.862745,g:.862745,b:.862745},ghostwhite:{r:.972549,g:.972549,b:1},gold:{r:1,g:.843137,b:0},goldenrod:{r:.854902,g:.647059,b:.12549},gray:{r:.501961,g:.501961,b:.501961},green:{r:0,g:.501961,b:0},greenyellow:{r:.678431,g:1,b:.184314},grey:{r:.501961,g:.501961,b:.501961},honeydew:{r:.941176,g:1,b:.941176},hotpink:{r:1,g:.411765,b:.705882},indianred:{r:.803922,g:.360784,b:.360784},indigo:{r:.294118,g:0,b:.509804},ivory:{r:1,g:1,b:.941176},khaki:{r:.941176,g:.901961,b:.54902},lavender:{r:.901961,g:.901961,b:.980392},lavenderblush:{r:1,g:.941176,b:.960784},lawngreen:{r:.486275,g:.988235,b:0},lemonchiffon:{r:1,g:.980392,b:.803922},lightblue:{r:.678431,g:.847059,b:.901961},lightcoral:{r:.941176,g:.501961,b:.501961},lightcyan:{r:.878431,g:1,b:1},lightgoldenrodyellow:{r:.980392,g:.980392,b:.823529},lightgray:{r:.827451,g:.827451,b:.827451},lightgreen:{r:.564706,g:.933333,b:.564706},lightgrey:{r:.827451,g:.827451,b:.827451},lightpink:{r:1,g:.713725,b:.756863},lightsalmon:{r:1,g:.627451,b:.478431},lightseagreen:{r:.12549,g:.698039,b:.666667},lightskyblue:{r:.529412,g:.807843,b:.980392},lightslategray:{r:.466667,g:.533333,b:.6},lightslategrey:{r:.466667,g:.533333,b:.6},lightsteelblue:{r:.690196,g:.768627,b:.870588},lightyellow:{r:1,g:1,b:.878431},lime:{r:0,g:1,b:0},limegreen:{r:.196078,g:.803922,b:.196078},linen:{r:.980392,g:.941176,b:.901961},magenta:{r:1,g:0,b:1},maroon:{r:.501961,g:0,b:0},mediumaquamarine:{r:.4,g:.803922,b:.666667},mediumblue:{r:0,g:0,b:.803922},mediumorchid:{r:.729412,g:.333333,b:.827451},mediumpurple:{r:.576471,g:.439216,b:.858824},mediumseagreen:{r:.235294,g:.701961,b:.443137},mediumslateblue:{r:.482353,g:.407843,b:.933333},mediumspringgreen:{r:0,g:.980392,b:.603922},mediumturquoise:{r:.282353,g:.819608,b:.8},mediumvioletred:{r:.780392,g:.082353,b:.521569},midnightblue:{r:.098039,g:.098039,b:.439216},mintcream:{r:.960784,g:1,b:.980392},mistyrose:{r:1,g:.894118,b:.882353},moccasin:{r:1,g:.894118,b:.709804},navajowhite:{r:1,g:.870588,b:.678431},navy:{r:0,g:0,b:.501961},oldlace:{r:.992157,g:.960784,b:.901961},olive:{r:.501961,g:.501961,b:0},olivedrab:{r:.419608,g:.556863,b:.137255},orange:{r:1,g:.647059,b:0},orangered:{r:1,g:.270588,b:0},orchid:{r:.854902,g:.439216,b:.839216},palegoldenrod:{r:.933333,g:.909804,b:.666667},palegreen:{r:.596078,g:.984314,b:.596078},paleturquoise:{r:.686275,g:.933333,b:.933333},palevioletred:{r:.858824,g:.439216,b:.576471},papayawhip:{r:1,g:.937255,b:.835294},peachpuff:{r:1,g:.854902,b:.72549},peru:{r:.803922,g:.521569,b:.247059},pink:{r:1,g:.752941,b:.796078},plum:{r:.866667,g:.627451,b:.866667},powderblue:{r:.690196,g:.878431,b:.901961},purple:{r:.501961,g:0,b:.501961},red:{r:1,g:0,b:0},rosybrown:{r:.737255,g:.560784,b:.560784},royalblue:{r:.254902,g:.411765,b:.882353},saddlebrown:{r:.545098,g:.270588,b:.07451},salmon:{r:.980392,g:.501961,b:.447059},sandybrown:{r:.956863,g:.643137,b:.376471},seagreen:{r:.180392,g:.545098,b:.341176},seashell:{r:1,g:.960784,b:.933333},sienna:{r:.627451,g:.321569,b:.176471},silver:{r:.752941,g:.752941,b:.752941},skyblue:{r:.529412,g:.807843,b:.921569},slateblue:{r:.415686,g:.352941,b:.803922},slategray:{r:.439216,g:.501961,b:.564706},slategrey:{r:.439216,g:.501961,b:.564706},snow:{r:1,g:.980392,b:.980392},springgreen:{r:0,g:1,b:.498039},steelblue:{r:.27451,g:.509804,b:.705882},tan:{r:.823529,g:.705882,b:.54902},teal:{r:0,g:.501961,b:.501961},thistle:{r:.847059,g:.74902,b:.847059},tomato:{r:1,g:.388235,b:.278431},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:.25098,g:.878431,b:.815686},violet:{r:.933333,g:.509804,b:.933333},wheat:{r:.960784,g:.870588,b:.701961},white:{r:1,g:1,b:1},whitesmoke:{r:.960784,g:.960784,b:.960784},yellow:{r:1,g:1,b:0},yellowgreen:{r:.603922,g:.803922,b:.196078}};const f=/^rgb\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){2}(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*)\)$/i;const m=/^rgba\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){3}(?:0|1|0?\.\d*)\s*)\)$/i;const v=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i;const $=/^#((?:[0-9a-f]{8}|[0-9a-f]{4}))$/i;function x(e){return v.test(e)}function y(e){return $.test(e)}function w(e){return y(e)}function k(e){return f.test(e)}function F(e){return m.test(e)}function C(e){return b.hasOwnProperty(e)}function S(e){const t=v.exec(e);if(t===null){return null}let o=t[1];if(o.length===3){const e=o.charAt(0);const t=o.charAt(1);const r=o.charAt(2);o=e.concat(e,t,t,r,r)}const r=parseInt(o,16);if(isNaN(r)){return null}return new g(a((r&16711680)>>>16,0,255),a((r&65280)>>>8,0,255),a(r&255,0,255),1)}function T(e){const t=$.exec(e);if(t===null){return null}let o=t[1];if(o.length===4){const e=o.charAt(0);const t=o.charAt(1);const r=o.charAt(2);const a=o.charAt(3);o=e.concat(e,t,t,r,r,a,a)}const r=parseInt(o,16);if(isNaN(r)){return null}return new g(a((r&16711680)>>>16,0,255),a((r&65280)>>>8,0,255),a(r&255,0,255),a((r&4278190080)>>>24,0,255))}function V(e){const t=$.exec(e);if(t===null){return null}let o=t[1];if(o.length===4){const e=o.charAt(0);const t=o.charAt(1);const r=o.charAt(2);const a=o.charAt(3);o=e.concat(e,t,t,r,r,a,a)}const r=parseInt(o,16);if(isNaN(r)){return null}return new ColorRGBA64(normalize((r&4278190080)>>>24,0,255),normalize((r&16711680)>>>16,0,255),normalize((r&65280)>>>8,0,255),normalize(r&255,0,255))}function D(e){const t=f.exec(e);if(t===null){return null}const o=t[1].split(",");return new g(a(Number(o[0]),0,255),a(Number(o[1]),0,255),a(Number(o[2]),0,255),1)}function j(e){const t=m.exec(e);if(t===null){return null}const o=t[1].split(",");if(o.length===4){return new g(a(Number(o[0]),0,255),a(Number(o[1]),0,255),a(Number(o[2]),0,255),Number(o[3]))}return null}function z(e){const t=b[e.toLowerCase()];return t?new g(t.r,t.g,t.b,t.hasOwnProperty("a")?t.a:void 0):null}function B(e){const t=e.toLowerCase();return x(t)?S(t):w(t)?T(t):k(t)?D(t):F(t)?j(t):C(t)?z(t):null}class L{constructor(e,t,o){this.h=e;this.s=t;this.l=o}static fromObject(e){if(e&&!isNaN(e.h)&&!isNaN(e.s)&&!isNaN(e.l)){return new L(e.h,e.s,e.l)}return null}equalValue(e){return this.h===e.h&&this.s===e.s&&this.l===e.l}roundToPrecision(e){return new L(p(this.h,e),p(this.s,e),p(this.l,e))}toObject(){return{h:this.h,s:this.s,l:this.l}}}class O{constructor(e,t,o){this.h=e;this.s=t;this.v=o}static fromObject(e){if(e&&!isNaN(e.h)&&!isNaN(e.s)&&!isNaN(e.v)){return new O(e.h,e.s,e.v)}return null}equalValue(e){return this.h===e.h&&this.s===e.s&&this.v===e.v}roundToPrecision(e){return new O(p(this.h,e),p(this.s,e),p(this.v,e))}toObject(){return{h:this.h,s:this.s,v:this.v}}}class H{constructor(e,t,o){this.l=e;this.a=t;this.b=o}static fromObject(e){if(e&&!isNaN(e.l)&&!isNaN(e.a)&&!isNaN(e.b)){return new H(e.l,e.a,e.b)}return null}equalValue(e){return this.l===e.l&&this.a===e.a&&this.b===e.b}roundToPrecision(e){return new H(p(this.l,e),p(this.a,e),p(this.b,e))}toObject(){return{l:this.l,a:this.a,b:this.b}}}H.epsilon=216/24389;H.kappa=24389/27;class N{constructor(e,t,o){this.l=e;this.c=t;this.h=o}static fromObject(e){if(e&&!isNaN(e.l)&&!isNaN(e.c)&&!isNaN(e.h)){return new N(e.l,e.c,e.h)}return null}equalValue(e){return this.l===e.l&&this.c===e.c&&this.h===e.h}roundToPrecision(e){return new N(p(this.l,e),p(this.c,e),p(this.h,e))}toObject(){return{l:this.l,c:this.c,h:this.h}}}class P{constructor(e,t,o){this.x=e;this.y=t;this.z=o}static fromObject(e){if(e&&!isNaN(e.x)&&!isNaN(e.y)&&!isNaN(e.z)){return new P(e.x,e.y,e.z)}return null}equalValue(e){return this.x===e.x&&this.y===e.y&&this.z===e.z}roundToPrecision(e){return new P(p(this.x,e),p(this.y,e),p(this.z,e))}toObject(){return{x:this.x,y:this.y,z:this.z}}}P.whitePoint=new P(.95047,1,1.08883);function R(e){return e.r*.2126+e.g*.7152+e.b*.0722}function I(e){function t(e){if(e<=.03928){return e/12.92}return Math.pow((e+.055)/1.055,2.4)}return R(new g(t(e.r),t(e.g),t(e.b),1))}const A=(e,t)=>(e+.05)/(t+.05);function M(e,t){const o=I(e);const r=I(t);return o>r?A(o,r):A(r,o)}function G(e,t,o){if(o-t===0){return 0}else{return(e-t)/(o-t)}}function E(e,t,o){const r=G(e.r,t.r,o.r);const a=G(e.g,t.g,o.g);const i=G(e.b,t.b,o.b);return(r+a+i)/3}function _(e,t,o=null){let r=0;let a=o;if(a!==null){r=E(e,t,a)}else{a=new ColorRGBA64(0,0,0,1);r=E(e,t,a);if(r<=0){a=new ColorRGBA64(1,1,1,1);r=E(e,t,a)}}r=Math.round(r*1e3)/1e3;return new ColorRGBA64(a.r,a.g,a.b,r)}function q(e){const t=Math.max(e.r,e.g,e.b);const o=Math.min(e.r,e.g,e.b);const r=t-o;let a=0;if(r!==0){if(t===e.r){a=60*((e.g-e.b)/r%6)}else if(t===e.g){a=60*((e.b-e.r)/r+2)}else{a=60*((e.r-e.g)/r+4)}}if(a<0){a+=360}const i=(t+o)/2;let n=0;if(r!==0){n=r/(1-Math.abs(2*i-1))}return new L(a,n,i)}function W(e,t=1){const o=(1-Math.abs(2*e.l-1))*e.s;const r=o*(1-Math.abs(e.h/60%2-1));const a=e.l-o/2;let i=0;let n=0;let l=0;if(e.h<60){i=o;n=r;l=0}else if(e.h<120){i=r;n=o;l=0}else if(e.h<180){i=0;n=o;l=r}else if(e.h<240){i=0;n=r;l=o}else if(e.h<300){i=r;n=0;l=o}else if(e.h<360){i=o;n=0;l=r}return new g(i+a,n+a,l+a,t)}function U(e){const t=Math.max(e.r,e.g,e.b);const o=Math.min(e.r,e.g,e.b);const r=t-o;let a=0;if(r!==0){if(t===e.r){a=60*((e.g-e.b)/r%6)}else if(t===e.g){a=60*((e.b-e.r)/r+2)}else{a=60*((e.r-e.g)/r+4)}}if(a<0){a+=360}let i=0;if(t!==0){i=r/t}return new O(a,i,t)}function X(e,t=1){const o=e.s*e.v;const r=o*(1-Math.abs(e.h/60%2-1));const a=e.v-o;let i=0;let n=0;let l=0;if(e.h<60){i=o;n=r;l=0}else if(e.h<120){i=r;n=o;l=0}else if(e.h<180){i=0;n=o;l=r}else if(e.h<240){i=0;n=r;l=o}else if(e.h<300){i=r;n=0;l=o}else if(e.h<360){i=o;n=0;l=r}return new g(i+a,n+a,l+a,t)}function Z(e){let t=0;let o=0;if(e.h!==0){t=Math.cos(n(e.h))*e.c;o=Math.sin(n(e.h))*e.c}return new H(e.l,t,o)}function Y(e){let t=0;if(Math.abs(e.b)>.001||Math.abs(e.a)>.001){t=l(Math.atan2(e.b,e.a))}if(t<0){t+=360}const o=Math.sqrt(e.a*e.a+e.b*e.b);return new N(e.l,o,t)}function J(e){const t=(e.l+16)/116;const o=t+e.a/500;const r=t-e.b/200;const a=Math.pow(o,3);const i=Math.pow(t,3);const n=Math.pow(r,3);let l=0;if(a>H.epsilon){l=a}else{l=(116*o-16)/H.kappa}let s=0;if(e.l>H.epsilon*H.kappa){s=i}else{s=e.l/H.kappa}let c=0;if(n>H.epsilon){c=n}else{c=(116*r-16)/H.kappa}l=P.whitePoint.x*l;s=P.whitePoint.y*s;c=P.whitePoint.z*c;return new P(l,s,c)}function K(e){function t(e){if(e>H.epsilon){return Math.pow(e,1/3)}return(H.kappa*e+16)/116}const o=t(e.x/P.whitePoint.x);const r=t(e.y/P.whitePoint.y);const a=t(e.z/P.whitePoint.z);const i=116*r-16;const n=500*(o-r);const l=200*(r-a);return new H(i,n,l)}function Q(e){function t(e){if(e<=.04045){return e/12.92}return Math.pow((e+.055)/1.055,2.4)}const o=t(e.r);const r=t(e.g);const a=t(e.b);const i=o*.4124564+r*.3575761+a*.1804375;const n=o*.2126729+r*.7151522+a*.072175;const l=o*.0193339+r*.119192+a*.9503041;return new P(i,n,l)}function ee(e,t=1){function o(e){if(e<=.0031308){return e*12.92}return 1.055*Math.pow(e,1/2.4)-.055}const r=o(e.x*3.2404542-e.y*1.5371385-e.z*.4985314);const a=o(e.x*-.969266+e.y*1.8760108+e.z*.041556);const i=o(e.x*.0556434-e.y*.2040259+e.z*1.0572252);return new g(r,a,i,t)}function te(e){return K(Q(e))}function oe(e,t=1){return ee(J(e),t)}function re(e){return Y(te(e))}function ae(e,t=1){return oe(Z(e),t)}function ie(e,t=1){let o=0;let r=0;let a=0;if(e<=1e3){e=1e3}else if(e>=4e4){e=4e4}if(e<6600){o=255;r=e/100-2;r=-155.25485562709179-.44596950469579133*r+104.49216199393888*Math.log(r)}else{o=e/100-55;o=351.97690566805693+.114206453784165*o-40.25366309332127*Math.log(o);r=e/100-50;r=325.4494125711974+.07943456536662342*r-28.0852963507957*Math.log(r)}if(e>=6600){a=255}else if(e<2e3){a=0}else{a=e/100-10;a=-254.76935184120902+.8274096064007395*a+115.67994401066147*Math.log(a)}return new ColorRGBA64(o/255,r/255,a/255,t)}function ne(e){let t=0;let o=1e3;let r=4e4;while(r-o>.4){t=(r+o)/2;const a=ie(t);if(a.b/a.r>=e.b/e.r){r=t}else{o=t}}return Math.round(t)}function le(e,t){const o=e.relativeLuminance>t.relativeLuminance?e:t;const r=e.relativeLuminance>t.relativeLuminance?t:e;return(o.relativeLuminance+.05)/(r.relativeLuminance+.05)}const se=Object.freeze({create(e,t,o){return new de(e,t,o)},from(e){return new de(e.r,e.g,e.b)}});function ce(e){const t={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(const o in t){if(typeof t[o]!==typeof e[o]){return false}}return true}class de extends g{constructor(e,t,o){super(e,t,o,1);this.toColorString=this.toStringHexRGB;this.contrast=le.bind(null,this);this.createCSS=this.toColorString;this.relativeLuminance=I(this)}static fromObject(e){return new de(e.r,e.g,e.b)}}function ue(e){return se.create(e,e,e)}const he={LightMode:1,DarkMode:.23};const pe=(-.1+Math.sqrt(.21))/2;function ge(e){return e.relativeLuminance<=pe}var be=o(63073);var fe=o(30086);function me(e,t,o=18){const r=re(e);let a=r.c+t*o;if(a<0){a=0}return ae(new N(r.l,a,r.h))}function ve(e,t,o=18){return me(e,-1*t,o)}function $e(e,t,o=18){const r=rgbToLAB(e);const a=r.l-t*o;return labToRGB(new ColorLAB(a,r.a,r.b))}function xe(e,t,o=18){return $e(e,-1*t,o)}function ye(e,t){if(t===0){return 0}return 1-(1-e)/t}function we(e,t){return new ColorRGBA64(ye(e.r,t.r),ye(e.g,t.g),ye(e.b,t.b),1)}function ke(e,t){const o=rgbToHSL(e);const r=rgbToHSL(t);if(r.s===0){return new ColorRGBA64(o.l,o.l,o.l,1)}return hslToRGB(new ColorHSL(r.h,r.s,o.l))}function Fe(e,t){return Math.min(e,t)}function Ce(e,t){return new ColorRGBA64(Fe(e.r,t.r),Fe(e.g,t.g),Fe(e.b,t.b),1)}function Se(e,t){if(t>=1){return 1}const o=e/(1-t);if(o>=1){return 1}return o}function Te(e,t){return new ColorRGBA64(Se(e.r,t.r),Se(e.g,t.g),Se(e.b,t.b),1)}function Ve(e,t){return Math.max(e,t)}function De(e,t){return new ColorRGBA64(Ve(e.r,t.r),Ve(e.g,t.g),Ve(e.b,t.b),1)}function je(e,t){return e*t}function ze(e,t){return new g(je(e.r,t.r),je(e.g,t.g),je(e.b,t.b),1)}function Be(e,t){if(e<.5){return r(2*t*e,0,1)}return r(1-2*(1-t)*(1-e),0,1)}function Le(e,t){return new g(Be(e.r,t.r),Be(e.g,t.g),Be(e.b,t.b),1)}function Oe(e,t){return 1-(1-t)*(1-e)}function He(e,t){return new ColorRGBA64(Oe(e.r,t.r),Oe(e.g,t.g),Oe(e.b,t.b),1)}var Ne;(function(e){e[e["Burn"]=0]="Burn";e[e["Color"]=1]="Color";e[e["Darken"]=2]="Darken";e[e["Dodge"]=3]="Dodge";e[e["Lighten"]=4]="Lighten";e[e["Multiply"]=5]="Multiply";e[e["Overlay"]=6]="Overlay";e[e["Screen"]=7]="Screen"})(Ne||(Ne={}));function Pe(e,t,o){switch(e){case Ne.Burn:return we(t,o);case Ne.Color:return ke(t,o);case Ne.Darken:return Ce(t,o);case Ne.Dodge:return Te(t,o);case Ne.Lighten:return De(t,o);case Ne.Multiply:return ze(t,o);case Ne.Overlay:return Le(t,o);case Ne.Screen:return He(t,o);default:throw new Error("Unknown blend mode")}}function Re(e,t){if(t.a>=1){return t}else if(t.a<=0){return new ColorRGBA64(e.r,e.g,e.b,1)}const o=t.a*t.r+(1-t.a)*e.r;const r=t.a*t.g+(1-t.a)*e.g;const a=t.a*t.b+(1-t.a)*e.b;return new ColorRGBA64(o,r,a,1)}function Ie(e,t,o){if(isNaN(e)||e<=0){return t}else if(e>=1){return o}return new g(c(e,t.r,o.r),c(e,t.g,o.g),c(e,t.b,o.b),c(e,t.a,o.a))}function Ae(e,t,o){if(isNaN(e)||e<=0){return t}else if(e>=1){return o}return new L(d(e,t.h,o.h),c(e,t.s,o.s),c(e,t.l,o.l))}function Me(e,t,o){if(isNaN(e)||e<=0){return t}else if(e>=1){return o}return new O(d(e,t.h,o.h),c(e,t.s,o.s),c(e,t.v,o.v))}function Ge(e,t,o){if(isNaN(e)||e<=0){return t}else if(e>=1){return o}return new P(c(e,t.x,o.x),c(e,t.y,o.y),c(e,t.z,o.z))}function Ee(e,t,o){if(isNaN(e)||e<=0){return t}else if(e>=1){return o}return new H(c(e,t.l,o.l),c(e,t.a,o.a),c(e,t.b,o.b))}function _e(e,t,o){if(isNaN(e)||e<=0){return t}else if(e>=1){return o}return new N(c(e,t.l,o.l),c(e,t.c,o.c),d(e,t.h,o.h))}var qe;(function(e){e[e["RGB"]=0]="RGB";e[e["HSL"]=1]="HSL";e[e["HSV"]=2]="HSV";e[e["XYZ"]=3]="XYZ";e[e["LAB"]=4]="LAB";e[e["LCH"]=5]="LCH"})(qe||(qe={}));function We(e,t,o,r){if(isNaN(e)||e<=0){return o}else if(e>=1){return r}switch(t){case qe.HSL:return W(Ae(e,q(o),q(r)));case qe.HSV:return X(Me(e,U(o),U(r)));case qe.XYZ:return ee(Ge(e,Q(o),Q(r)));case qe.LAB:return oe(Ee(e,te(o),te(r)));case qe.LCH:return ae(_e(e,re(o),re(r)));default:return Ie(e,o,r)}}class Ue{constructor(e){if(e==null||e.length===0){throw new Error("The stops argument must be non-empty")}else{this.stops=this.sortColorScaleStops(e)}}static createBalancedColorScale(e){if(e==null||e.length===0){throw new Error("The colors argument must be non-empty")}const t=new Array(e.length);for(let o=0;o=1){return this.stops[this.stops.length-1].color}let o=0;for(let i=0;i=this.stops.length){r=this.stops.length-1}const a=(e-this.stops[o].position)*(1/(this.stops[r].position-this.stops[o].position));return We(a,t,this.stops[o].color,this.stops[r].color)}trim(e,t,o=qe.RGB){if(e<0||t>1||t=e&&this.stops[n].position<=t){r.push(this.stops[n])}}if(r.length===0){return new Ue([{color:this.getColor(e),position:e},{color:this.getColor(t),position:t}])}if(r[0].position!==e){r.unshift({color:this.getColor(e),position:e})}if(r[r.length-1].position!==t){r.push({color:this.getColor(t),position:t})}const a=t-e;const i=new Array(r.length);for(let n=0;n=1){e=1}const n=this.getColor(e,r);const l=o?0:1;const s=this.getColor(l,r);const c=M(n,s);if(c<=t){return l}let d=o?0:e;let u=o?e:0;let h=l;let p=0;while(p<=i){h=Math.abs(u-d)/2+d;const e=this.getColor(h,r);const i=M(n,e);if(Math.abs(i-t)<=a){return h}else if(i>t){if(o){d=h}else{u=h}}else{if(o){u=h}else{d=h}}p++}return h}clone(){const e=new Array(this.stops.length);for(let t=0;t{const o=e.position;const r=t.position;if(or){return 1}else{return 0}}))}}class Xe{constructor(e){this.config=Object.assign({},Xe.defaultPaletteConfig,e);this.palette=[];this.updatePaletteColors()}updatePaletteGenerationValues(e){let t=false;for(const o in e){if(this.config[o]){if(this.config[o].equalValue){if(!this.config[o].equalValue(e[o])){this.config[o]=e[o];t=true}}else{if(e[o]!==this.config[o]){this.config[o]=e[o];t=true}}}}if(t){this.updatePaletteColors()}return t}updatePaletteColors(){const e=this.generatePaletteColorScale();for(let t=0;t=this.config.saturationAdjustmentCutoff){i=me(i,this.config.saturationLight);n=me(n,this.config.saturationDark)}if(this.config.multiplyLight!==0){const e=ze(this.config.baseColor,i);i=We(this.config.multiplyLight,this.config.interpolationMode,i,e)}if(this.config.multiplyDark!==0){const e=ze(this.config.baseColor,n);n=We(this.config.multiplyDark,this.config.interpolationMode,n,e)}if(this.config.overlayLight!==0){const e=Le(this.config.baseColor,i);i=We(this.config.overlayLight,this.config.interpolationMode,i,e)}if(this.config.overlayDark!==0){const e=Le(this.config.baseColor,n);n=We(this.config.overlayDark,this.config.interpolationMode,n,e)}if(this.config.baseScalePosition){if(this.config.baseScalePosition<=0){return new Ue([{position:0,color:this.config.baseColor},{position:1,color:n.clamp()}])}else if(this.config.baseScalePosition>=1){return new Ue([{position:0,color:i.clamp()},{position:1,color:this.config.baseColor}])}return new Ue([{position:0,color:i.clamp()},{position:this.config.baseScalePosition,color:this.config.baseColor},{position:1,color:n.clamp()}])}return new Ue([{position:0,color:i.clamp()},{position:.5,color:this.config.baseColor},{position:1,color:n.clamp()}])}}Xe.defaultPaletteConfig={baseColor:S("#808080"),steps:11,interpolationMode:qe.RGB,scaleColorLight:new g(1,1,1,1),scaleColorDark:new g(0,0,0,1),clipLight:.185,clipDark:.16,saturationAdjustmentCutoff:.05,saturationLight:.35,saturationDark:1.25,overlayLight:0,overlayDark:.25,multiplyLight:0,multiplyDark:0,baseScalePosition:.5};Xe.greyscalePaletteConfig={baseColor:S("#808080"),steps:11,interpolationMode:qe.RGB,scaleColorLight:new g(1,1,1,1),scaleColorDark:new g(0,0,0,1),clipLight:0,clipDark:0,saturationAdjustmentCutoff:0,saturationLight:0,saturationDark:0,overlayLight:0,overlayDark:0,multiplyLight:0,multiplyDark:0,baseScalePosition:.5};function Ze(e,t){const o=rgbToHSL(e);let r=Number.MAX_VALUE;let a=0;for(let i=0;i= 0")}const r=new Array(e.length+2);r[0]={position:0,color:t.scaleColorLight};r[r.length-1]={position:1,color:t.scaleColorDark};for(let n=0;nle(e,o)>=t;if(r===-1){a=this.reversedSwatches;n=i-n}return ot(a,l,n,i)}get(e){return this.swatches[e]||this.swatches[r(e,0,this.lastIndex)]}closestIndexOf(e){if(this.closestIndexCache.has(e.relativeLuminance)){return this.closestIndexCache.get(e.relativeLuminance)}let t=this.swatches.indexOf(e);if(t!==-1){this.closestIndexCache.set(e.relativeLuminance,t);return t}const o=this.swatches.reduce(((t,o)=>Math.abs(o.relativeLuminance-e.relativeLuminance){const t=S(e.toStringHexRGB());return se.create(t.r,t.g,t.b)}))))}}function st(e,t,o,r,a,i,n,l,s){const c=e.source;const d=t.closestIndexOf(o);const u=Math.max(n,l,s);const h=d>=u?-1:1;const p=e.closestIndexOf(c);const g=p;const b=g+h*-1*r;const f=b+h*a;const m=b+h*i;return{rest:e.get(b),hover:e.get(g),active:e.get(f),focus:e.get(m)}}function ct(e,t,o,r,a,i,n){const l=e.source;const s=e.closestIndexOf(l);const c=rt(t);const d=s+(c===1?Math.min(r,a):Math.max(c*r,c*a));const u=e.colorContrast(t,o,d,c);const h=e.closestIndexOf(u);const p=h+c*Math.abs(r-a);const g=c===1?rc*a;let b;let f;if(g){b=h;f=p}else{b=p;f=h}return{rest:e.get(b),hover:e.get(f),active:e.get(b+c*i),focus:e.get(b+c*n)}}const dt=se.create(1,1,1);const ut=se.create(0,0,0);const ht=se.from(S("#808080"));const pt=se.from(S("#DA1A5F"));const gt=se.from(S("#D32F2F"));function bt(e,t){return e.contrast(dt)>=t?dt:ut}function ft(e,t,o,r,a,i){const n=e.closestIndexOf(t);const l=Math.max(o,r,a,i);const s=n>=l?-1:1;return{rest:e.get(n+s*o),hover:e.get(n+s*r),active:e.get(n+s*a),focus:e.get(n+s*i)}}function mt(e,t,o,r,a,i){const n=rt(t);const l=e.closestIndexOf(t);return{rest:e.get(l-n*o),hover:e.get(l-n*r),active:e.get(l-n*a),focus:e.get(l-n*i)}}function vt(e,t,o){const r=e.closestIndexOf(t);return e.get(r-(r=d?-1:1;return{rest:e.get(u+h*o),hover:e.get(u+h*r),active:e.get(u+h*a),focus:e.get(u+h*i)}}function xt(e,t,o,r,a,i){const n=rt(t);const l=e.closestIndexOf(e.colorContrast(t,4.5));const s=l+n*Math.abs(o-r);const c=n===1?on*r;let d;let u;if(c){d=l;u=s}else{d=s;u=l}return{rest:e.get(d),hover:e.get(u),active:e.get(d+n*a),focus:e.get(d+n*i)}}function yt(e,t){return e.colorContrast(t,3.5)}function wt(e,t,o){return e.colorContrast(o,3.5,e.closestIndexOf(e.source),rt(t)*-1)}function kt(e,t){return e.colorContrast(t,14)}function Ft(e,t){return e.colorContrast(t,4.5)}function Ct(e,t,o){return e.get(e.closestIndexOf(ue(t))+o)}function St(e,t,o){const r=e.closestIndexOf(ue(t))-o;return e.get(r-o)}function Tt(e,t){return e.get(e.closestIndexOf(ue(t)))}function Vt(e,t,o,r,a,i){return Math.max(e.closestIndexOf(ue(t))+o,r,a,i)}function Dt(e,t,o,r,a,i){return e.get(Vt(e,t,o,r,a,i))}function jt(e,t,o,r,a,i){return e.get(Vt(e,t,o,r,a,i)+o)}function zt(e,t,o,r,a,i){return e.get(Vt(e,t,o,r,a,i)+o*2)}function Bt(e,t,o,r,a,i){const n=e.closestIndexOf(t);const l=rt(t);const s=n+l*o;const c=s+l*(r-o);const d=s+l*(a-o);const u=s+l*(i-o);return{rest:e.get(s),hover:e.get(c),active:e.get(d),focus:e.get(u)}}function Lt(e,t,o){return e.get(e.closestIndexOf(t)+rt(t)*o)}function Ot(e,t,o,r,a,i,n,l,s){const c=e.source;const d=t.closestIndexOf(o);const u=Math.max(n,l,s);const h=d>=u?-1:1;const p=e.closestIndexOf(c);const g=p;const b=g+h*-1*r;const f=b+h*a;const m=b+h*i;return{rest:e.get(b),hover:e.get(g),active:e.get(f),focus:e.get(m)}}function Ht(e,t,o,r,a,i,n){const l=e.source;const s=e.closestIndexOf(l);const c=ge(t)?-1:1;const d=s+(c===1?Math.min(r,a):Math.max(c*r,c*a));const u=e.colorContrast(t,o,d,c);const h=e.closestIndexOf(u);const p=h+c*Math.abs(r-a);const g=c===1?rc*a;let b;let f;if(g){b=h;f=p}else{b=p;f=h}return{rest:e.get(b),hover:e.get(f),active:e.get(b+c*i),focus:e.get(b+c*n)}}function Nt(e,t){return e.contrast(dt)>=t?dt:ut}const{create:Pt}=be.DesignToken;function Rt(e){return be.DesignToken.create({name:e,cssCustomPropertyName:null})}const It=Pt("body-font").withDefault('aktiv-grotesk, "Segoe UI", Arial, Helvetica, sans-serif');const At=Pt("base-height-multiplier").withDefault(10);const Mt=Pt("base-horizontal-spacing-multiplier").withDefault(3);const Gt=Pt("base-layer-luminance").withDefault(he.DarkMode);const Et=Pt("control-corner-radius").withDefault(4);const _t=Pt("density").withDefault(0);const qt=Pt("design-unit").withDefault(4);const Wt=Pt("element-scale").withDefault(0);const Ut=Pt("direction").withDefault(fe.O.ltr);const Xt=Pt("disabled-opacity").withDefault(.4);const Zt=Pt("stroke-width").withDefault(1);const Yt=Pt("focus-stroke-width").withDefault(2);const Jt=Pt("type-ramp-base-font-size").withDefault("14px");const Kt=Pt("type-ramp-base-line-height").withDefault("20px");const Qt=Pt("type-ramp-minus-1-font-size").withDefault("12px");const eo=Pt("type-ramp-minus-1-line-height").withDefault("16px");const to=Pt("type-ramp-minus-2-font-size").withDefault("10px");const oo=Pt("type-ramp-minus-2-line-height").withDefault("16px");const ro=Pt("type-ramp-plus-1-font-size").withDefault("16px");const ao=Pt("type-ramp-plus-1-line-height").withDefault("24px");const io=Pt("type-ramp-plus-2-font-size").withDefault("20px");const no=Pt("type-ramp-plus-2-line-height").withDefault("28px");const lo=Pt("type-ramp-plus-3-font-size").withDefault("28px");const so=Pt("type-ramp-plus-3-line-height").withDefault("36px");const co=Pt("type-ramp-plus-4-font-size").withDefault("34px");const uo=Pt("type-ramp-plus-4-line-height").withDefault("44px");const ho=Pt("type-ramp-plus-5-font-size").withDefault("46px");const po=Pt("type-ramp-plus-5-line-height").withDefault("56px");const go=Pt("type-ramp-plus-6-font-size").withDefault("60px");const bo=Pt("type-ramp-plus-6-line-height").withDefault("72px");const fo=Rt("accent-fill-rest-delta").withDefault(0);const mo=Rt("accent-fill-hover-delta").withDefault(4);const vo=Rt("accent-fill-active-delta").withDefault(-5);const $o=Rt("accent-fill-focus-delta").withDefault(0);const xo=Rt("accent-foreground-rest-delta").withDefault(0);const yo=Rt("accent-foreground-hover-delta").withDefault(6);const wo=Rt("accent-foreground-active-delta").withDefault(-4);const ko=Rt("accent-foreground-focus-delta").withDefault(0);const Fo=Rt("neutral-fill-rest-delta").withDefault(7);const Co=Rt("neutral-fill-hover-delta").withDefault(10);const So=Rt("neutral-fill-active-delta").withDefault(5);const To=Rt("neutral-fill-focus-delta").withDefault(0);const Vo=Rt("neutral-fill-input-rest-delta").withDefault(0);const Do=Rt("neutral-fill-input-hover-delta").withDefault(0);const jo=Rt("neutral-fill-input-active-delta").withDefault(0);const zo=Rt("neutral-fill-input-focus-delta").withDefault(0);const Bo=Rt("neutral-fill-stealth-rest-delta").withDefault(0);const Lo=Rt("neutral-fill-stealth-hover-delta").withDefault(5);const Oo=Rt("neutral-fill-stealth-active-delta").withDefault(3);const Ho=Rt("neutral-fill-stealth-focus-delta").withDefault(0);const No=Rt("neutral-fill-strong-rest-delta").withDefault(0);const Po=Rt("neutral-fill-strong-hover-delta").withDefault(8);const Ro=Rt("neutral-fill-strong-active-delta").withDefault(-5);const Io=Rt("neutral-fill-strong-focus-delta").withDefault(0);const Ao=Rt("neutral-fill-layer-rest-delta").withDefault(3);const Mo=Rt("neutral-stroke-rest-delta").withDefault(25);const Go=Rt("neutral-stroke-hover-delta").withDefault(40);const Eo=Rt("neutral-stroke-active-delta").withDefault(16);const _o=Rt("neutral-stroke-focus-delta").withDefault(25);const qo=Rt("neutral-stroke-divider-rest-delta").withDefault(8);const Wo=Pt("neutral-color").withDefault(ht);const Uo=Rt("neutral-palette").withDefault((e=>nt.from(Wo.getValueFor(e))));const Xo=Pt("accent-color").withDefault(pt);const Zo=Rt("accent-palette").withDefault((e=>nt.from(Xo.getValueFor(e))));const Yo=Rt("neutral-layer-card-container-recipe").withDefault({evaluate:e=>Ct(Uo.getValueFor(e),Gt.getValueFor(e),Ao.getValueFor(e))});const Jo=Pt("neutral-layer-card-container").withDefault((e=>Yo.getValueFor(e).evaluate(e)));const Ko=Rt("neutral-layer-floating-recipe").withDefault({evaluate:e=>St(Uo.getValueFor(e),Gt.getValueFor(e),Ao.getValueFor(e))});const Qo=Pt("neutral-layer-floating").withDefault((e=>Ko.getValueFor(e).evaluate(e)));const er=Rt("neutral-layer-1-recipe").withDefault({evaluate:e=>Tt(Uo.getValueFor(e),Gt.getValueFor(e))});const tr=Pt("neutral-layer-1").withDefault((e=>er.getValueFor(e).evaluate(e)));const or=Rt("neutral-layer-2-recipe").withDefault({evaluate:e=>Dt(Uo.getValueFor(e),Gt.getValueFor(e),Ao.getValueFor(e),Fo.getValueFor(e),Co.getValueFor(e),So.getValueFor(e))});const rr=Pt("neutral-layer-2").withDefault((e=>or.getValueFor(e).evaluate(e)));const ar=Rt("neutral-layer-3-recipe").withDefault({evaluate:e=>jt(Uo.getValueFor(e),Gt.getValueFor(e),Ao.getValueFor(e),Fo.getValueFor(e),Co.getValueFor(e),So.getValueFor(e))});const ir=Pt("neutral-layer-3").withDefault((e=>ar.getValueFor(e).evaluate(e)));const nr=Rt("neutral-layer-4-recipe").withDefault({evaluate:e=>zt(Uo.getValueFor(e),Gt.getValueFor(e),Ao.getValueFor(e),Fo.getValueFor(e),Co.getValueFor(e),So.getValueFor(e))});const lr=Pt("neutral-layer-4").withDefault((e=>nr.getValueFor(e).evaluate(e)));const sr=Pt("fill-color").withDefault((e=>tr.getValueFor(e)));var cr;(function(e){e[e["normal"]=4.5]="normal";e[e["large"]=7]="large"})(cr||(cr={}));const dr=Pt({name:"accent-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>st(Zo.getValueFor(e),Uo.getValueFor(e),t||sr.getValueFor(e),mo.getValueFor(e),vo.getValueFor(e),$o.getValueFor(e),Fo.getValueFor(e),Co.getValueFor(e),So.getValueFor(e))});const ur=Pt("accent-fill-rest").withDefault((e=>dr.getValueFor(e).evaluate(e).rest));const hr=Pt("accent-fill-hover").withDefault((e=>dr.getValueFor(e).evaluate(e).hover));const pr=Pt("accent-fill-active").withDefault((e=>dr.getValueFor(e).evaluate(e).active));const gr=Pt("accent-fill-focus").withDefault((e=>dr.getValueFor(e).evaluate(e).focus));const br=e=>(t,o)=>bt(o||ur.getValueFor(t),e);const fr=Rt("foreground-on-accent-recipe").withDefault({evaluate:(e,t)=>br(cr.normal)(e,t)});const mr=Pt("foreground-on-accent-rest").withDefault((e=>fr.getValueFor(e).evaluate(e,ur.getValueFor(e))));const vr=Pt("foreground-on-accent-hover").withDefault((e=>fr.getValueFor(e).evaluate(e,hr.getValueFor(e))));const $r=Pt("foreground-on-accent-active").withDefault((e=>fr.getValueFor(e).evaluate(e,pr.getValueFor(e))));const xr=Pt("foreground-on-accent-focus").withDefault((e=>fr.getValueFor(e).evaluate(e,gr.getValueFor(e))));const yr=Rt("foreground-on-accent-large-recipe").withDefault({evaluate:(e,t)=>br(cr.large)(e,t)});const wr=Pt("foreground-on-accent-rest-large").withDefault((e=>yr.getValueFor(e).evaluate(e,ur.getValueFor(e))));const kr=Pt("foreground-on-accent-hover-large").withDefault((e=>yr.getValueFor(e).evaluate(e,hr.getValueFor(e))));const Fr=Pt("foreground-on-accent-active-large").withDefault((e=>yr.getValueFor(e).evaluate(e,pr.getValueFor(e))));const Cr=Pt("foreground-on-accent-focus-large").withDefault((e=>yr.getValueFor(e).evaluate(e,gr.getValueFor(e))));const Sr=e=>(t,o)=>ct(Zo.getValueFor(t),o||sr.getValueFor(t),e,xo.getValueFor(t),yo.getValueFor(t),wo.getValueFor(t),ko.getValueFor(t));const Tr=Pt({name:"accent-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>Sr(cr.normal)(e,t)});const Vr=Pt("accent-foreground-rest").withDefault((e=>Tr.getValueFor(e).evaluate(e).rest));const Dr=Pt("accent-foreground-hover").withDefault((e=>Tr.getValueFor(e).evaluate(e).hover));const jr=Pt("accent-foreground-active").withDefault((e=>Tr.getValueFor(e).evaluate(e).active));const zr=Pt("accent-foreground-focus").withDefault((e=>Tr.getValueFor(e).evaluate(e).focus));const Br=Pt({name:"neutral-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>ft(Uo.getValueFor(e),t||sr.getValueFor(e),Fo.getValueFor(e),Co.getValueFor(e),So.getValueFor(e),To.getValueFor(e))});const Lr=Pt("neutral-fill-rest").withDefault((e=>Br.getValueFor(e).evaluate(e).rest));const Or=Pt("neutral-fill-hover").withDefault((e=>Br.getValueFor(e).evaluate(e).hover));const Hr=Pt("neutral-fill-active").withDefault((e=>Br.getValueFor(e).evaluate(e).active));const Nr=Pt("neutral-fill-focus").withDefault((e=>Br.getValueFor(e).evaluate(e).focus));const Pr=Pt({name:"neutral-fill-input-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>mt(Uo.getValueFor(e),t||sr.getValueFor(e),Vo.getValueFor(e),Do.getValueFor(e),jo.getValueFor(e),zo.getValueFor(e))});const Rr=Pt("neutral-fill-input-rest").withDefault((e=>Pr.getValueFor(e).evaluate(e).rest));const Ir=Pt("neutral-fill-input-hover").withDefault((e=>Pr.getValueFor(e).evaluate(e).hover));const Ar=Pt("neutral-fill-input-active").withDefault((e=>Pr.getValueFor(e).evaluate(e).active));const Mr=Pt("neutral-fill-input-focus").withDefault((e=>Pr.getValueFor(e).evaluate(e).focus));const Gr=Pt({name:"neutral-fill-stealth-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>$t(Uo.getValueFor(e),t||sr.getValueFor(e),Bo.getValueFor(e),Lo.getValueFor(e),Oo.getValueFor(e),Ho.getValueFor(e),Fo.getValueFor(e),Co.getValueFor(e),So.getValueFor(e),To.getValueFor(e))});const Er=Pt("neutral-fill-stealth-rest").withDefault((e=>Gr.getValueFor(e).evaluate(e).rest));const _r=Pt("neutral-fill-stealth-hover").withDefault((e=>Gr.getValueFor(e).evaluate(e).hover));const qr=Pt("neutral-fill-stealth-active").withDefault((e=>Gr.getValueFor(e).evaluate(e).active));const Wr=Pt("neutral-fill-stealth-focus").withDefault((e=>Gr.getValueFor(e).evaluate(e).focus));const Ur=Pt({name:"neutral-fill-strong-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>xt(Uo.getValueFor(e),t||sr.getValueFor(e),No.getValueFor(e),Po.getValueFor(e),Ro.getValueFor(e),Io.getValueFor(e))});const Xr=Pt("neutral-fill-strong-rest").withDefault((e=>Ur.getValueFor(e).evaluate(e).rest));const Zr=Pt("neutral-fill-strong-hover").withDefault((e=>Ur.getValueFor(e).evaluate(e).hover));const Yr=Pt("neutral-fill-strong-active").withDefault((e=>Ur.getValueFor(e).evaluate(e).active));const Jr=Pt("neutral-fill-strong-focus").withDefault((e=>Ur.getValueFor(e).evaluate(e).focus));const Kr=Rt("neutral-fill-layer-recipe").withDefault({evaluate:(e,t)=>vt(Uo.getValueFor(e),t||sr.getValueFor(e),Ao.getValueFor(e))});const Qr=Pt("neutral-fill-layer-rest").withDefault((e=>Kr.getValueFor(e).evaluate(e)));const ea=Rt("focus-stroke-outer-recipe").withDefault({evaluate:e=>yt(Uo.getValueFor(e),sr.getValueFor(e))});const ta=Pt("focus-stroke-outer").withDefault((e=>ea.getValueFor(e).evaluate(e)));const oa=Rt("focus-stroke-inner-recipe").withDefault({evaluate:e=>wt(Zo.getValueFor(e),sr.getValueFor(e),ta.getValueFor(e))});const ra=Pt("focus-stroke-inner").withDefault((e=>oa.getValueFor(e).evaluate(e)));const aa=Rt("neutral-foreground-hint-recipe").withDefault({evaluate:e=>Ft(Uo.getValueFor(e),sr.getValueFor(e))});const ia=Pt("neutral-foreground-hint").withDefault((e=>aa.getValueFor(e).evaluate(e)));const na=Rt("neutral-foreground-recipe").withDefault({evaluate:e=>kt(Uo.getValueFor(e),sr.getValueFor(e))});const la=Pt("neutral-foreground-rest").withDefault((e=>na.getValueFor(e).evaluate(e)));const sa=Pt({name:"neutral-stroke-recipe",cssCustomPropertyName:null}).withDefault({evaluate:e=>Bt(Uo.getValueFor(e),sr.getValueFor(e),Mo.getValueFor(e),Go.getValueFor(e),Eo.getValueFor(e),_o.getValueFor(e))});const ca=Pt("neutral-stroke-rest").withDefault((e=>sa.getValueFor(e).evaluate(e).rest));const da=Pt("neutral-stroke-hover").withDefault((e=>sa.getValueFor(e).evaluate(e).hover));const ua=Pt("neutral-stroke-active").withDefault((e=>sa.getValueFor(e).evaluate(e).active));const ha=Pt("neutral-stroke-focus").withDefault((e=>sa.getValueFor(e).evaluate(e).focus));const pa=Rt("neutral-stroke-divider-recipe").withDefault({evaluate:(e,t)=>Lt(Uo.getValueFor(e),t||sr.getValueFor(e),qo.getValueFor(e))});const ga=Pt("neutral-stroke-divider-rest").withDefault((e=>pa.getValueFor(e).evaluate(e)));const ba=be.DesignToken.create({name:"height-number",cssCustomPropertyName:null}).withDefault((e=>(At.getValueFor(e)+_t.getValueFor(e))*qt.getValueFor(e)));const fa=Pt("error-color").withDefault(gt);const ma=Rt("error-palette").withDefault((e=>nt.from(fa.getValueFor(e))));const va=Pt({name:"error-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>Ot(ma.getValueFor(e),Uo.getValueFor(e),t||sr.getValueFor(e),mo.getValueFor(e),vo.getValueFor(e),$o.getValueFor(e),Fo.getValueFor(e),Co.getValueFor(e),So.getValueFor(e))});const $a=Pt("error-fill-rest").withDefault((e=>va.getValueFor(e).evaluate(e).rest));const xa=Pt("error-fill-hover").withDefault((e=>va.getValueFor(e).evaluate(e).hover));const ya=Pt("error-fill-active").withDefault((e=>va.getValueFor(e).evaluate(e).active));const wa=Pt("error-fill-focus").withDefault((e=>va.getValueFor(e).evaluate(e).focus));const ka=e=>(t,o)=>Nt(o||$a.getValueFor(t),e);const Fa=Pt({name:"foreground-on-error-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>ka(cr.normal)(e,t)});const Ca=Pt("foreground-on-error-rest").withDefault((e=>Fa.getValueFor(e).evaluate(e,$a.getValueFor(e))));const Sa=Pt("foreground-on-error-hover").withDefault((e=>Fa.getValueFor(e).evaluate(e,xa.getValueFor(e))));const Ta=Pt("foreground-on-error-active").withDefault((e=>Fa.getValueFor(e).evaluate(e,ya.getValueFor(e))));const Va=Pt("foreground-on-error-focus").withDefault((e=>Fa.getValueFor(e).evaluate(e,wa.getValueFor(e))));const Da=Pt({name:"foreground-on-error-large-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>ka(cr.large)(e,t)});const ja=Pt("foreground-on-error-rest-large").withDefault((e=>Da.getValueFor(e).evaluate(e,$a.getValueFor(e))));const za=Pt("foreground-on-error-hover-large").withDefault((e=>Da.getValueFor(e).evaluate(e,xa.getValueFor(e))));const Ba=Pt("foreground-on-error-active-large").withDefault((e=>Da.getValueFor(e).evaluate(e,ya.getValueFor(e))));const La=Pt("foreground-on-error-focus-large").withDefault((e=>Da.getValueFor(e).evaluate(e,wa.getValueFor(e))));const Oa=e=>(t,o)=>Ht(ma.getValueFor(t),o||sr.getValueFor(t),e,xo.getValueFor(t),yo.getValueFor(t),wo.getValueFor(t),ko.getValueFor(t));const Ha=Pt({name:"error-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>Oa(cr.normal)(e,t)});const Na=Pt("error-foreground-rest").withDefault((e=>Ha.getValueFor(e).evaluate(e).rest));const Pa=Pt("error-foreground-hover").withDefault((e=>Ha.getValueFor(e).evaluate(e).hover));const Ra=Pt("error-foreground-active").withDefault((e=>Ha.getValueFor(e).evaluate(e).active));const Ia=Pt("error-foreground-focus").withDefault((e=>Ha.getValueFor(e).evaluate(e).focus));const Aa="data-jp-theme-name";const Ma="data-jp-theme-light";const Ga="--jp-layout-color1";let Ea=false;function _a(){if(!Ea){Ea=true;qa()}}function qa(){const e=()=>{const e=new MutationObserver((()=>{Xa()}));e.observe(document.body,{attributes:true,attributeFilter:[Aa],childList:false,characterData:false});Xa()};if(document.readyState==="complete"){e()}else{window.addEventListener("load",e)}}const Wa=e=>{const t=parseInt(e,10);return isNaN(t)?null:t};const Ua={"--jp-border-width":{converter:Wa,token:Zt},"--jp-border-radius":{converter:Wa,token:Et},[Ga]:{converter:(e,t)=>{const o=B(e);if(o){const e=q(o);const t=L.fromObject({h:e.h,s:e.s,l:.5});const r=W(t);return se.create(r.r,r.g,r.b)}else{return null}},token:Wo},"--jp-brand-color1":{converter:(e,t)=>{const o=B(e);if(o){const e=q(o);const r=t?1:-1;const a=L.fromObject({h:e.h,s:e.s,l:e.l+r*mo.getValueFor(document.body)/94});const i=W(a);return se.create(i.r,i.g,i.b)}else{return null}},token:Xo},"--jp-error-color1":{converter:(e,t)=>{const o=B(e);if(o){const e=q(o);const r=t?1:-1;const a=L.fromObject({h:e.h,s:e.s,l:e.l+r*mo.getValueFor(document.body)/94});const i=W(a);return se.create(i.r,i.g,i.b)}else{return null}},token:fa},"--jp-ui-font-family":{token:It},"--jp-ui-font-size1":{token:Jt}};function Xa(){var e;const t=getComputedStyle(document.body);const o=document.body.getAttribute(Ma);let r=false;if(o){r=o==="false"}else{const e=t.getPropertyValue(Ga).toString();if(e){const t=B(e);if(t){r=ge(se.create(t.r,t.g,t.b));console.debug(`Theme is ${r?"dark":"light"} based on '${Ga}' value: ${e}.`)}}}Gt.setValueFor(document.body,r?he.DarkMode:he.LightMode);for(const a in Ua){const o=Ua[a];const i=t.getPropertyValue(a).toString();if(document.body&&i!==""){const t=((e=o.converter)!==null&&e!==void 0?e:e=>e)(i.trim(),r);if(t!==null){o.token.setValueFor(document.body,t)}else{console.error(`Fail to parse value '${i}' for '${a}' as FAST design token.`)}}}}var Za=o(29690);const Ya=(e,t)=>(0,Za.css)` + ${(0,be.display)("flex")} :host { + box-sizing: border-box; + flex-direction: column; + font-family: ${It}; + font-size: ${Qt}; + line-height: ${eo}; + color: ${la}; + border-top: calc(${Zt} * 1px) solid ${ga}; + } +`;var Ja;(function(e){e["Canvas"]="Canvas";e["CanvasText"]="CanvasText";e["LinkText"]="LinkText";e["VisitedText"]="VisitedText";e["ActiveText"]="ActiveText";e["ButtonFace"]="ButtonFace";e["ButtonText"]="ButtonText";e["Field"]="Field";e["FieldText"]="FieldText";e["Highlight"]="Highlight";e["HighlightText"]="HighlightText";e["GrayText"]="GrayText"})(Ja||(Ja={}));const Ka=(0,Za.cssPartial)`(${At} + ${_t} + ${Wt}) * ${qt}`;const Qa=(e,t)=>(0,Za.css)` + ${(0,be.display)("flex")} :host { + box-sizing: border-box; + font-family: ${It}; + flex-direction: column; + font-size: ${Qt}; + line-height: ${eo}; + border-bottom: calc(${Zt} * 1px) solid + ${ga}; + } + + .region { + display: none; + padding: calc((6 + (${qt} * 2 * ${_t})) * 1px); + } + + div.heading { + display: grid; + position: relative; + grid-template-columns: calc(${Ka} * 1px) auto 1fr auto; + color: ${la}; + } + + .button { + appearance: none; + border: none; + background: none; + grid-column: 3; + outline: none; + padding: 0 calc((6 + (${qt} * 2 * ${_t})) * 1px); + text-align: left; + height: calc(${Ka} * 1px); + color: currentcolor; + cursor: pointer; + font-family: inherit; + } + + .button:hover { + color: currentcolor; + } + + .button:active { + color: currentcolor; + } + + .button::before { + content: ''; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + cursor: pointer; + } + + /* prettier-ignore */ + .button:${be.focusVisible}::before { + outline: none; + border: calc(${Yt} * 1px) solid ${gr}; + border-radius: calc(${Et} * 1px); + } + + :host([expanded]) .region { + display: block; + } + + .icon { + display: flex; + align-items: center; + justify-content: center; + grid-column: 1; + grid-row: 1; + pointer-events: none; + position: relative; + } + + slot[name='expanded-icon'], + slot[name='collapsed-icon'] { + fill: currentcolor; + } + + slot[name='collapsed-icon'] { + display: flex; + } + + :host([expanded]) slot[name='collapsed-icon'] { + display: none; + } + + slot[name='expanded-icon'] { + display: none; + } + + :host([expanded]) slot[name='expanded-icon'] { + display: flex; + } + + .start { + display: flex; + align-items: center; + padding-inline-start: calc(${qt} * 1px); + justify-content: center; + grid-column: 2; + position: relative; + } + + .end { + display: flex; + align-items: center; + justify-content: center; + grid-column: 4; + position: relative; + } + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + /* prettier-ignore */ + .button:${be.focusVisible}::before { + border-color: ${Ja.Highlight}; + } + :host slot[name='collapsed-icon'], + :host([expanded]) slot[name='expanded-icon'] { + fill: ${Ja.ButtonText}; + } + `));class ei extends be.AccordionItem{}const ti=ei.compose({baseName:"accordion-item",baseClass:be.AccordionItem,template:be.accordionItemTemplate,styles:Qa,collapsedIcon:`\n \n \n \n `,expandedIcon:`\n \n \n \n `});class oi extends be.Accordion{}const ri=oi.compose({baseName:"accordion",baseClass:be.Accordion,template:be.accordionTemplate,styles:Ya});var ai=function(e,t){ai=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]};return ai(e,t)};function ii(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ai(e,t);function o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}var ni=function(){ni=Object.assign||function e(t){for(var o,r=1,a=arguments.length;r=0;l--)if(n=e[l])i=(a<3?n(i):a>3?n(t,o,i):n(t,o))||i;return a>3&&i&&Object.defineProperty(t,o,i),i}function ci(e,t){return function(o,r){t(o,r,e)}}function di(e,t,o,r,a,i){function n(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var l=r.kind,s=l==="getter"?"get":l==="setter"?"set":"value";var c=!t&&e?r["static"]?e:e.prototype:null;var d=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{});var u,h=false;for(var p=o.length-1;p>=0;p--){var g={};for(var b in r)g[b]=b==="access"?{}:r[b];for(var b in r.access)g.access[b]=r.access[b];g.addInitializer=function(e){if(h)throw new TypeError("Cannot add initializers after decoration has completed");i.push(n(e||null))};var f=(0,o[p])(l==="accessor"?{get:d.get,set:d.set}:d[s],g);if(l==="accessor"){if(f===void 0)continue;if(f===null||typeof f!=="object")throw new TypeError("Object expected");if(u=n(f.get))d.get=u;if(u=n(f.set))d.set=u;if(u=n(f.init))a.push(u)}else if(u=n(f)){if(l==="field")a.push(u);else d[s]=u}}if(c)Object.defineProperty(c,r.name,d);h=true}function ui(e,t,o){var r=arguments.length>2;for(var a=0;a0&&i[i.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=e.length)e=void 0;return{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function xi(e,t){var o=typeof Symbol==="function"&&e[Symbol.iterator];if(!o)return e;var r=o.call(e),a,i=[],n;try{while((t===void 0||t-- >0)&&!(a=r.next()).done)i.push(a.value)}catch(l){n={error:l}}finally{try{if(a&&!a.done&&(o=r["return"]))o.call(r)}finally{if(n)throw n.error}}return i}function yi(){for(var e=[],t=0;t1||l(e,t)}))}}function l(e,t){try{s(r[e](t))}catch(o){u(i[0][3],o)}}function s(e){e.value instanceof Fi?Promise.resolve(e.value.v).then(c,d):u(i[0][2],e)}function c(e){l("next",e)}function d(e){l("throw",e)}function u(e,t){if(e(t),i.shift(),i.length)l(i[0][0],i[0][1])}}function Si(e){var t,o;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,a){t[r]=e[r]?function(t){return(o=!o)?{value:Fi(e[r](t)),done:false}:a?a(t):t}:a}}function Ti(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],o;return t?t.call(e):(e=typeof $i==="function"?$i(e):e[Symbol.iterator](),o={},r("next"),r("throw"),r("return"),o[Symbol.asyncIterator]=function(){return this},o);function r(t){o[t]=e[t]&&function(o){return new Promise((function(r,i){o=e[t](o),a(r,i,o.done,o.value)}))}}function a(e,t,o,r){Promise.resolve(r).then((function(t){e({value:t,done:o})}),t)}}function Vi(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e}var Di=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};function ji(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o))mi(t,e,o);Di(t,e);return t}function zi(e){return e&&e.__esModule?e:{default:e}}function Bi(e,t,o,r){if(o==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?r:o==="a"?r.call(e):r?r.value:t.get(e)}function Li(e,t,o,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(e,o):a?a.value=o:t.set(e,o),o}function Oi(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)}const Hi=(0,Za.css)` + ${(0,be.display)("inline-flex")} :host { + font-family: ${It}; + outline: none; + font-size: ${Jt}; + line-height: ${Kt}; + height: calc(${Ka} * 1px); + min-width: calc(${Ka} * 1px); + background-color: ${Lr}; + color: ${la}; + border-radius: calc(${Et} * 1px); + fill: currentcolor; + cursor: pointer; + margin: calc((${Yt} + 2) * 1px); + } + + .control { + background: transparent; + height: inherit; + flex-grow: 1; + box-sizing: border-box; + display: inline-flex; + justify-content: center; + align-items: center; + padding: 0 + max( + 1px, + calc((10 + (${qt} * 2 * (${_t} + ${Wt})))) * 1px + ); + white-space: nowrap; + outline: none; + text-decoration: none; + border: calc(${Zt} * 1px) solid transparent; + color: inherit; + border-radius: inherit; + fill: inherit; + cursor: inherit; + font-family: inherit; + font-size: inherit; + line-height: inherit; + } + + :host(:hover) { + background-color: ${Or}; + } + + :host(:active) { + background-color: ${Hr}; + } + + :host([aria-pressed='true']) { + box-shadow: inset 0px 0px 2px 2px ${Yr}; + } + + :host([minimal]), + :host([scale='xsmall']) { + --element-scale: -4; + } + + :host([scale='small']) { + --element-scale: -2; + } + + :host([scale='medium']) { + --element-scale: 0; + } + + :host([scale='large']) { + --element-scale: 2; + } + + :host([scale='xlarge']) { + --element-scale: 4; + } + + /* prettier-ignore */ + .control:${be.focusVisible} { + outline: calc(${Yt} * 1px) solid ${Jr}; + outline-offset: 2px; + -moz-outline-radius: 0px; + } + + .control::-moz-focus-inner { + border: 0; + } + + .start, + .end { + display: flex; + } + + .control.icon-only { + padding: 0; + line-height: 0; + } + + ::slotted(svg) { + ${""} width: 16px; + height: 16px; + pointer-events: none; + } + + .start { + margin-inline-end: 11px; + } + + .end { + margin-inline-start: 11px; + } +`.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host .control { + background-color: ${Ja.ButtonFace}; + border-color: ${Ja.ButtonText}; + color: ${Ja.ButtonText}; + fill: currentColor; + } + + :host(:hover) .control { + forced-color-adjust: none; + background-color: ${Ja.Highlight}; + color: ${Ja.HighlightText}; + } + + /* prettier-ignore */ + .control:${be.focusVisible} { + forced-color-adjust: none; + background-color: ${Ja.Highlight}; + outline-color: ${Ja.ButtonText}; + color: ${Ja.HighlightText}; + } + + .control:hover, + :host([appearance='outline']) .control:hover { + border-color: ${Ja.ButtonText}; + } + + :host([href]) .control { + border-color: ${Ja.LinkText}; + color: ${Ja.LinkText}; + } + + :host([href]) .control:hover, + :host([href]) .control:${be.focusVisible} { + forced-color-adjust: none; + background: ${Ja.ButtonFace}; + outline-color: ${Ja.LinkText}; + color: ${Ja.LinkText}; + fill: currentColor; + } + `));const Ni=(0,Za.css)` + :host([appearance='accent']) { + background: ${ur}; + color: ${mr}; + } + + :host([appearance='accent']:hover) { + background: ${hr}; + color: ${vr}; + } + + :host([appearance='accent'][aria-pressed='true']) { + box-shadow: inset 0px 0px 2px 2px ${jr}; + } + + :host([appearance='accent']:active) .control:active { + background: ${pr}; + color: ${$r}; + } + + :host([appearance="accent"]) .control:${be.focusVisible} { + outline-color: ${gr}; + } +`.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host([appearance='accent']) .control { + forced-color-adjust: none; + background: ${Ja.Highlight}; + color: ${Ja.HighlightText}; + } + + :host([appearance='accent']) .control:hover, + :host([appearance='accent']:active) .control:active { + background: ${Ja.HighlightText}; + border-color: ${Ja.Highlight}; + color: ${Ja.Highlight}; + } + + :host([appearance="accent"]) .control:${be.focusVisible} { + outline-color: ${Ja.Highlight}; + } + + :host([appearance='accent'][href]) .control { + background: ${Ja.LinkText}; + color: ${Ja.HighlightText}; + } + + :host([appearance='accent'][href]) .control:hover { + background: ${Ja.ButtonFace}; + border-color: ${Ja.LinkText}; + box-shadow: none; + color: ${Ja.LinkText}; + fill: currentColor; + } + + :host([appearance="accent"][href]) .control:${be.focusVisible} { + outline-color: ${Ja.HighlightText}; + } + `));const Pi=(0,Za.css)` + :host([appearance='error']) { + background: ${$a}; + color: ${mr}; + } + + :host([appearance='error']:hover) { + background: ${xa}; + color: ${vr}; + } + + :host([appearance='error'][aria-pressed='true']) { + box-shadow: inset 0px 0px 2px 2px ${Ra}; + } + + :host([appearance='error']:active) .control:active { + background: ${ya}; + color: ${$r}; + } + + :host([appearance="error"]) .control:${be.focusVisible} { + outline-color: ${wa}; + } +`.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host([appearance='error']) .control { + forced-color-adjust: none; + background: ${Ja.Highlight}; + color: ${Ja.HighlightText}; + } + + :host([appearance='error']) .control:hover, + :host([appearance='error']:active) .control:active { + background: ${Ja.HighlightText}; + border-color: ${Ja.Highlight}; + color: ${Ja.Highlight}; + } + + :host([appearance="error"]) .control:${be.focusVisible} { + outline-color: ${Ja.Highlight}; + } + + :host([appearance='error'][href]) .control { + background: ${Ja.LinkText}; + color: ${Ja.HighlightText}; + } + + :host([appearance='error'][href]) .control:hover { + background: ${Ja.ButtonFace}; + border-color: ${Ja.LinkText}; + box-shadow: none; + color: ${Ja.LinkText}; + fill: currentColor; + } + + :host([appearance="error"][href]) .control:${be.focusVisible} { + outline-color: ${Ja.HighlightText}; + } + `));const Ri=(0,Za.css)` + :host([appearance='hypertext']) { + font-size: inherit; + line-height: inherit; + height: auto; + min-width: 0; + background: transparent; + } + + :host([appearance='hypertext']) .control { + display: inline; + padding: 0; + border: none; + box-shadow: none; + border-radius: 0; + line-height: 1; + } + + :host a.control:not(:link) { + background-color: transparent; + cursor: default; + } + :host([appearance='hypertext']) .control:link, + :host([appearance='hypertext']) .control:visited { + background: transparent; + color: ${Vr}; + border-bottom: calc(${Zt} * 1px) solid ${Vr}; + } + + :host([appearance='hypertext']:hover), + :host([appearance='hypertext']) .control:hover { + background: transparent; + border-bottom-color: ${Dr}; + } + + :host([appearance='hypertext']:active), + :host([appearance='hypertext']) .control:active { + background: transparent; + border-bottom-color: ${jr}; + } + + :host([appearance="hypertext"]) .control:${be.focusVisible} { + outline-color: transparent; + border-bottom: calc(${Yt} * 1px) solid ${ta}; + margin-bottom: calc(calc(${Zt} - ${Yt}) * 1px); + } +`.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host([appearance='hypertext']:hover) { + background-color: ${Ja.ButtonFace}; + color: ${Ja.ButtonText}; + } + :host([appearance="hypertext"][href]) .control:hover, + :host([appearance="hypertext"][href]) .control:active, + :host([appearance="hypertext"][href]) .control:${be.focusVisible} { + color: ${Ja.LinkText}; + border-bottom-color: ${Ja.LinkText}; + box-shadow: none; + } + `));const Ii=(0,Za.css)` + :host([appearance='lightweight']) { + background: transparent; + color: ${Vr}; + } + + :host([appearance='lightweight']) .control { + padding: 0; + height: initial; + border: none; + box-shadow: none; + border-radius: 0; + } + + :host([appearance='lightweight']:hover) { + background: transparent; + color: ${Dr}; + } + + :host([appearance='lightweight']:active) { + background: transparent; + color: ${jr}; + } + + :host([appearance='lightweight']) .content { + position: relative; + } + + :host([appearance='lightweight']) .content::before { + content: ''; + display: block; + height: calc(${Zt} * 1px); + position: absolute; + top: calc(1em + 4px); + width: 100%; + } + + :host([appearance='lightweight']:hover) .content::before { + background: ${Dr}; + } + + :host([appearance='lightweight']:active) .content::before { + background: ${jr}; + } + + :host([appearance="lightweight"]) .control:${be.focusVisible} { + outline-color: transparent; + } + + :host([appearance="lightweight"]) .control:${be.focusVisible} .content::before { + background: ${la}; + height: calc(${Yt} * 1px); + } +`.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host([appearance="lightweight"]) .control:hover, + :host([appearance="lightweight"]) .control:${be.focusVisible} { + forced-color-adjust: none; + background: ${Ja.ButtonFace}; + color: ${Ja.Highlight}; + } + :host([appearance="lightweight"]) .control:hover .content::before, + :host([appearance="lightweight"]) .control:${be.focusVisible} .content::before { + background: ${Ja.Highlight}; + } + + :host([appearance="lightweight"][href]) .control:hover, + :host([appearance="lightweight"][href]) .control:${be.focusVisible} { + background: ${Ja.ButtonFace}; + box-shadow: none; + color: ${Ja.LinkText}; + } + + :host([appearance="lightweight"][href]) .control:hover .content::before, + :host([appearance="lightweight"][href]) .control:${be.focusVisible} .content::before { + background: ${Ja.LinkText}; + } + `));const Ai=(0,Za.css)` + :host([appearance='outline']) { + background: transparent; + border-color: ${ur}; + } + + :host([appearance='outline']:hover) { + border-color: ${hr}; + } + + :host([appearance='outline']:active) { + border-color: ${pr}; + } + + :host([appearance='outline']) .control { + border-color: inherit; + } + + :host([appearance="outline"]) .control:${be.focusVisible} { + outline-color: ${gr}; + } +`.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host([appearance='outline']) .control { + border-color: ${Ja.ButtonText}; + } + :host([appearance="outline"]) .control:${be.focusVisible} { + forced-color-adjust: none; + background-color: ${Ja.Highlight}; + outline-color: ${Ja.ButtonText}; + color: ${Ja.HighlightText}; + fill: currentColor; + } + :host([appearance='outline'][href]) .control { + background: ${Ja.ButtonFace}; + border-color: ${Ja.LinkText}; + color: ${Ja.LinkText}; + fill: currentColor; + } + :host([appearance="outline"][href]) .control:hover, + :host([appearance="outline"][href]) .control:${be.focusVisible} { + forced-color-adjust: none; + outline-color: ${Ja.LinkText}; + } + `));const Mi=(0,Za.css)` + :host([appearance='stealth']), + :host([appearance='stealth'][disabled]:active), + :host([appearance='stealth'][disabled]:hover) { + background: transparent; + } + + :host([appearance='stealth']:hover) { + background: ${_r}; + } + + :host([appearance='stealth']:active) { + background: ${qr}; + } + + :host([appearance='stealth']) .control:${be.focusVisible} { + outline-color: ${gr}; + } + + /* Make the focus outline displayed within the button if + it is in a start or end slot; e.g. in a tree item + This will make the focus outline bounded within the container. + */ + :host([appearance='stealth'][slot="end"]) .control:${be.focusVisible}, + :host([appearance='stealth'][slot="start"]) .control:${be.focusVisible} { + outline-offset: -2px; + } +`.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host([appearance='stealth']), + :host([appearance='stealth']) .control { + forced-color-adjust: none; + background: ${Ja.ButtonFace}; + border-color: transparent; + color: ${Ja.ButtonText}; + fill: currentColor; + } + + :host([appearance='stealth']:hover) .control { + background: ${Ja.Highlight}; + border-color: ${Ja.Highlight}; + color: ${Ja.HighlightText}; + fill: currentColor; + } + + :host([appearance="stealth"]:${be.focusVisible}) .control { + outline-color: ${Ja.Highlight}; + color: ${Ja.HighlightText}; + fill: currentColor; + } + + :host([appearance='stealth'][href]) .control { + color: ${Ja.LinkText}; + } + + :host([appearance="stealth"][href]:hover) .control, + :host([appearance="stealth"][href]:${be.focusVisible}) .control { + background: ${Ja.LinkText}; + border-color: ${Ja.LinkText}; + color: ${Ja.HighlightText}; + fill: currentColor; + } + + :host([appearance="stealth"][href]:${be.focusVisible}) .control { + forced-color-adjust: none; + box-shadow: 0 0 0 1px ${Ja.LinkText}; + } + `));function Gi(e,t){return new be.PropertyStyleSheetBehavior("appearance",e,t)}const Ei=(e,t)=>(0,Za.css)` + ${Hi} + `.withBehaviors(Gi("accent",Ni),Gi("hypertext",Ri),Gi("lightweight",Ii),Gi("outline",Ai),Gi("stealth",Mi));class _i extends be.Anchor{appearanceChanged(e,t){if(this.$fastController.isConnected){this.classList.remove(e);this.classList.add(t)}}connectedCallback(){super.connectedCallback();if(!this.appearance){this.appearance="neutral"}}defaultSlottedContentChanged(e,t){const o=this.defaultSlottedContent.filter((e=>e.nodeType===Node.ELEMENT_NODE));if(o.length===1&&o[0]instanceof SVGElement){this.control.classList.add("icon-only")}else{this.control.classList.remove("icon-only")}}}si([Za.attr],_i.prototype,"appearance",void 0);const qi=_i.compose({baseName:"anchor",baseClass:be.Anchor,template:be.anchorTemplate,styles:Ei,shadowOptions:{delegatesFocus:true}});const Wi=(e,t)=>(0,Za.css)` + :host { + contain: layout; + display: block; + } +`;class Ui extends be.AnchoredRegion{}const Xi=Ui.compose({baseName:"anchored-region",baseClass:be.AnchoredRegion,template:be.anchoredRegionTemplate,styles:Wi});class Zi{constructor(e,t){this.cache=new WeakMap;this.ltr=e;this.rtl=t}bind(e){this.attach(e)}unbind(e){const t=this.cache.get(e);if(t){Ut.unsubscribe(t)}}attach(e){const t=this.cache.get(e)||new Yi(this.ltr,this.rtl,e);const o=Ut.getValueFor(e);Ut.subscribe(t);t.attach(o);this.cache.set(e,t)}}class Yi{constructor(e,t,o){this.ltr=e;this.rtl=t;this.source=o;this.attached=null}handleChange({target:e,token:t}){this.attach(t.getValueFor(e))}attach(e){if(this.attached!==this[e]){if(this.attached!==null){this.source.$fastController.removeStyles(this.attached)}this.attached=this[e];if(this.attached!==null){this.source.$fastController.addStyles(this.attached)}}}}const Ji=(e,t)=>(0,Za.css)` + ::slotted(${e.tagFor(be.Badge)}) { + left: 0; + } +`;const Ki=(e,t)=>(0,Za.css)` + ::slotted(${e.tagFor(be.Badge)}) { + right: 0; + } +`;const Qi=(e,t)=>(0,Za.css)` + ${(0,be.display)("flex")} :host { + position: relative; + height: var(--avatar-size, var(--avatar-size-default)); + width: var(--avatar-size, var(--avatar-size-default)); + --avatar-size-default: calc( + ( + (${At} + ${_t}) * ${qt} + + ((${qt} * 8) - 40) + ) * 1px + ); + --avatar-text-size: ${Jt}; + --avatar-text-ratio: ${qt}; + } + + .link { + text-decoration: none; + color: ${la}; + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + min-width: 100%; + } + + .square { + border-radius: calc(${Et} * 1px); + min-width: 100%; + overflow: hidden; + } + + .circle { + border-radius: 100%; + min-width: 100%; + overflow: hidden; + } + + .backplate { + position: relative; + display: flex; + background-color: ${ur}; + } + + .media, + ::slotted(img) { + max-width: 100%; + position: absolute; + display: block; + } + + .content { + font-size: calc( + ( + var(--avatar-text-size) + + var(--avatar-size, var(--avatar-size-default)) + ) / var(--avatar-text-ratio) + ); + line-height: var(--avatar-size, var(--avatar-size-default)); + display: block; + min-height: var(--avatar-size, var(--avatar-size-default)); + } + + ::slotted(${e.tagFor(be.Badge)}) { + position: absolute; + display: block; + } + `.withBehaviors(new Zi(Ki(e,t),Ji(e,t)));class en extends be.Avatar{}si([(0,Za.attr)({attribute:"src"})],en.prototype,"imgSrc",void 0);si([Za.attr],en.prototype,"alt",void 0);const tn=(0,Za.html)` + ${(0,Za.when)((e=>e.imgSrc),(0,Za.html)` + ${e=>e.alt} + `)} +`;const on=en.compose({baseName:"avatar",baseClass:be.Avatar,template:be.avatarTemplate,styles:Qi,media:tn,shadowOptions:{delegatesFocus:true}});const rn=(e,t)=>(0,Za.css)` + ${(0,be.display)("inline-block")} :host { + box-sizing: border-box; + font-family: ${It}; + font-size: ${Qt}; + line-height: ${eo}; + } + + .control { + border-radius: calc(${Et} * 1px); + padding: calc(((${qt} * 0.5) - ${Zt}) * 1px) + calc((${qt} - ${Zt}) * 1px); + color: ${la}; + font-weight: 600; + border: calc(${Zt} * 1px) solid transparent; + background-color: ${Lr}; + } + + .control[style] { + font-weight: 400; + } + + :host([circular]) .control { + border-radius: 100px; + padding: 0 calc(${qt} * 1px); + height: calc((${Ka} - (${qt} * 3)) * 1px); + min-width: calc((${Ka} - (${qt} * 3)) * 1px); + display: flex; + align-items: center; + justify-content: center; + box-sizing: border-box; + } +`;class an extends be.Badge{}const nn=an.compose({baseName:"badge",baseClass:be.Badge,template:be.badgeTemplate,styles:rn});const ln=(e,t)=>(0,Za.css)` + ${(0,be.display)("inline-block")} :host { + box-sizing: border-box; + font-family: ${It}; + font-size: ${Jt}; + line-height: ${Kt}; + } + + .list { + display: flex; + flex-wrap: wrap; + } +`;class sn extends be.Breadcrumb{}const cn=sn.compose({baseName:"breadcrumb",baseClass:be.Breadcrumb,template:be.breadcrumbTemplate,styles:ln});const dn=(e,t)=>(0,Za.css)` + ${(0,be.display)("inline-flex")} :host { + background: transparent; + box-sizing: border-box; + font-family: ${It}; + font-size: ${Jt}; + fill: currentColor; + line-height: ${Kt}; + min-width: calc(${Ka} * 1px); + outline: none; + color: ${la} + } + + .listitem { + display: flex; + align-items: center; + width: max-content; + } + + .separator { + margin: 0 6px; + display: flex; + } + + .control { + align-items: center; + box-sizing: border-box; + color: ${Vr}; + cursor: pointer; + display: flex; + fill: inherit; + outline: none; + text-decoration: none; + white-space: nowrap; + } + + .control:hover { + color: ${Dr}; + } + + .control:active { + color: ${jr}; + } + + .control .content { + position: relative; + } + + .control .content::before { + content: ""; + display: block; + height: calc(${Zt} * 1px); + left: 0; + position: absolute; + right: 0; + top: calc(1em + 4px); + width: 100%; + } + + .control:hover .content::before { + background: ${Dr}; + } + + .control:active .content::before { + background: ${jr}; + } + + .control:${be.focusVisible} .content::before { + background: ${zr}; + height: calc(${Yt} * 1px); + } + + .control:not([href]) { + color: ${la}; + cursor: default; + } + + .control:not([href]) .content::before { + background: none; + } + + .start, + .end { + display: flex; + } + + ::slotted(svg) { + /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ + width: 16px; + height: 16px; + } + + .start { + margin-inline-end: 6px; + } + + .end { + margin-inline-start: 6px; + } +`.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + .control:hover .content::before, + .control:${be.focusVisible} .content::before { + background: ${Ja.LinkText}; + } + .start, + .end { + fill: ${Ja.ButtonText}; + } + `));class un extends be.BreadcrumbItem{}const hn=un.compose({baseName:"breadcrumb-item",baseClass:be.BreadcrumbItem,template:be.breadcrumbItemTemplate,styles:dn,separator:"/",shadowOptions:{delegatesFocus:true}});const pn=(e,t)=>(0,Za.css)` + :host([disabled]), + :host([disabled]:hover), + :host([disabled]:active) { + opacity: ${Xt}; + background-color: ${Lr}; + cursor: ${be.disabledCursor}; + } + + ${Hi} + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host([disabled]), + :host([disabled]) .control, + :host([disabled]:hover), + :host([disabled]:active) { + forced-color-adjust: none; + background-color: ${Ja.ButtonFace}; + outline-color: ${Ja.GrayText}; + color: ${Ja.GrayText}; + cursor: ${be.disabledCursor}; + opacity: 1; + } + `),Gi("accent",(0,Za.css)` + :host([appearance='accent'][disabled]), + :host([appearance='accent'][disabled]:hover), + :host([appearance='accent'][disabled]:active) { + background: ${ur}; + } + + ${Ni} + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host([appearance='accent'][disabled]) .control, + :host([appearance='accent'][disabled]) .control:hover { + background: ${Ja.ButtonFace}; + border-color: ${Ja.GrayText}; + color: ${Ja.GrayText}; + } + `))),Gi("error",(0,Za.css)` + :host([appearance='error'][disabled]), + :host([appearance='error'][disabled]:hover), + :host([appearance='error'][disabled]:active) { + background: ${$a}; + } + + ${Pi} + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host([appearance='error'][disabled]) .control, + :host([appearance='error'][disabled]) .control:hover { + background: ${Ja.ButtonFace}; + border-color: ${Ja.GrayText}; + color: ${Ja.GrayText}; + } + `))),Gi("lightweight",(0,Za.css)` + :host([appearance='lightweight'][disabled]:hover), + :host([appearance='lightweight'][disabled]:active) { + background-color: transparent; + color: ${Vr}; + } + + :host([appearance='lightweight'][disabled]) .content::before, + :host([appearance='lightweight'][disabled]:hover) .content::before, + :host([appearance='lightweight'][disabled]:active) .content::before { + background: transparent; + } + + ${Ii} + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host([appearance='lightweight'].disabled) .control { + forced-color-adjust: none; + color: ${Ja.GrayText}; + } + + :host([appearance='lightweight'].disabled) + .control:hover + .content::before { + background: none; + } + `))),Gi("outline",(0,Za.css)` + :host([appearance='outline'][disabled]), + :host([appearance='outline'][disabled]:hover), + :host([appearance='outline'][disabled]:active) { + background: transparent; + border-color: ${ur}; + } + + ${Ai} + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host([appearance='outline'][disabled]) .control { + border-color: ${Ja.GrayText}; + } + `))),Gi("stealth",(0,Za.css)` + ${Mi} + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host([appearance='stealth'][disabled]) { + background: ${Ja.ButtonFace}; + } + + :host([appearance='stealth'][disabled]) .control { + background: ${Ja.ButtonFace}; + border-color: transparent; + color: ${Ja.GrayText}; + } + `))));class gn extends be.Button{constructor(){super(...arguments);this.appearance="neutral"}defaultSlottedContentChanged(e,t){const o=this.defaultSlottedContent.filter((e=>e.nodeType===Node.ELEMENT_NODE));if(o.length===1&&(o[0]instanceof SVGElement||o[0].classList.contains("fa")||o[0].classList.contains("fas"))){this.control.classList.add("icon-only")}else{this.control.classList.remove("icon-only")}}}si([Za.attr],gn.prototype,"appearance",void 0);si([(0,Za.attr)({attribute:"minimal",mode:"boolean"})],gn.prototype,"minimal",void 0);si([Za.attr],gn.prototype,"scale",void 0);const bn=gn.compose({baseName:"button",baseClass:be.Button,template:be.buttonTemplate,styles:pn,shadowOptions:{delegatesFocus:true}});const fn="0 0 calc((var(--elevation) * 0.225px) + 2px) rgba(0, 0, 0, calc(.11 * (2 - var(--background-luminance, 1))))";const mn="0 calc(var(--elevation) * 0.4px) calc((var(--elevation) * 0.9px)) rgba(0, 0, 0, calc(.13 * (2 - var(--background-luminance, 1))))";const vn=`box-shadow: ${fn}, ${mn};`;const $n=(e,t)=>(0,Za.css)` + ${(0,be.display)("block")} :host { + --elevation: 4; + display: block; + contain: content; + height: var(--card-height, 100%); + width: var(--card-width, 100%); + box-sizing: border-box; + background: ${sr}; + border-radius: calc(${Et} * 1px); + ${vn} + } + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host { + forced-color-adjust: none; + background: ${Ja.Canvas}; + box-shadow: 0 0 0 1px ${Ja.CanvasText}; + } + `));class xn extends be.Card{connectedCallback(){super.connectedCallback();const e=(0,be.composedParent)(this);if(e){sr.setValueFor(this,(t=>Kr.getValueFor(t).evaluate(t,sr.getValueFor(e))))}}}const yn=xn.compose({baseName:"card",baseClass:be.Card,template:be.cardTemplate,styles:$n});const wn=(e,t)=>(0,Za.css)` + ${(0,be.display)("inline-flex")} :host { + align-items: center; + outline: none; + margin: calc(${qt} * 1px) 0; + /* Chromium likes to select label text or the default slot when the checkbox is + clicked. Maybe there is a better solution here? */ + user-select: none; + } + + .control { + position: relative; + width: calc((${Ka} / 2 + ${qt}) * 1px); + height: calc((${Ka} / 2 + ${qt}) * 1px); + box-sizing: border-box; + border-radius: calc(${Et} * 1px); + border: calc(${Zt} * 1px) solid ${ca}; + background: ${Rr}; + outline: none; + cursor: pointer; + } + + :host([aria-invalid='true']) .control { + border-color: ${$a}; + } + + .label { + font-family: ${It}; + color: ${la}; + /* Need to discuss with Brian how HorizontalSpacingNumber can work. + https://github.com/microsoft/fast/issues/2766 */ + padding-inline-start: calc(${qt} * 2px + 2px); + margin-inline-end: calc(${qt} * 2px + 2px); + cursor: pointer; + font-size: ${Jt}; + line-height: ${Kt}; + } + + .label__hidden { + display: none; + visibility: hidden; + } + + .checked-indicator { + width: 100%; + height: 100%; + display: block; + fill: ${mr}; + opacity: 0; + pointer-events: none; + } + + .indeterminate-indicator { + border-radius: calc(${Et} * 1px); + background: ${mr}; + position: absolute; + top: 50%; + left: 50%; + width: 50%; + height: 50%; + transform: translate(-50%, -50%); + opacity: 0; + } + + :host(:not([disabled])) .control:hover { + background: ${Ir}; + border-color: ${da}; + } + + :host(:not([disabled])) .control:active { + background: ${Ar}; + border-color: ${ua}; + } + + :host([aria-invalid='true']:not([disabled])) .control:hover { + border-color: ${xa}; + } + + :host([aria-invalid='true']:not([disabled])) .control:active { + border-color: ${ya}; + } + + :host(:${be.focusVisible}) .control { + outline: calc(${Yt} * 1px) solid ${gr}; + outline-offset: 2px; + } + + :host([aria-invalid='true']:${be.focusVisible}) .control { + outline-color: ${wa}; + } + + :host([aria-checked='true']) .control { + background: ${ur}; + border: calc(${Zt} * 1px) solid ${ur}; + } + + :host([aria-checked='true']:not([disabled])) .control:hover { + background: ${hr}; + border: calc(${Zt} * 1px) solid ${hr}; + } + + :host([aria-invalid='true'][aria-checked='true']) .control { + background-color: ${$a}; + border-color: ${$a}; + } + + :host([aria-invalid='true'][aria-checked='true']:not([disabled])) + .control:hover { + background-color: ${xa}; + border-color: ${xa}; + } + + :host([aria-checked='true']:not([disabled])) + .control:hover + .checked-indicator { + fill: ${vr}; + } + + :host([aria-checked='true']:not([disabled])) + .control:hover + .indeterminate-indicator { + background: ${vr}; + } + + :host([aria-checked='true']:not([disabled])) .control:active { + background: ${pr}; + border: calc(${Zt} * 1px) solid ${pr}; + } + + :host([aria-invalid='true'][aria-checked='true']:not([disabled])) + .control:active { + background-color: ${ya}; + border-color: ${ya}; + } + + :host([aria-checked='true']:not([disabled])) + .control:active + .checked-indicator { + fill: ${$r}; + } + + :host([aria-checked='true']:not([disabled])) + .control:active + .indeterminate-indicator { + background: ${$r}; + } + + :host([aria-checked="true"]:${be.focusVisible}:not([disabled])) .control { + outline: calc(${Yt} * 1px) solid ${gr}; + outline-offset: 2px; + } + + :host([aria-invalid='true'][aria-checked="true"]:${be.focusVisible}:not([disabled])) .control { + outline-color: ${wa}; + } + + :host([disabled]) .label, + :host([readonly]) .label, + :host([readonly]) .control, + :host([disabled]) .control { + cursor: ${be.disabledCursor}; + } + + :host([aria-checked='true']:not(.indeterminate)) .checked-indicator, + :host(.indeterminate) .indeterminate-indicator { + opacity: 1; + } + + :host([disabled]) { + opacity: ${Xt}; + } + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + .control { + forced-color-adjust: none; + border-color: ${Ja.FieldText}; + background: ${Ja.Field}; + } + :host([aria-invalid='true']) .control { + border-style: dashed; + } + .checked-indicator { + fill: ${Ja.FieldText}; + } + .indeterminate-indicator { + background: ${Ja.FieldText}; + } + :host(:not([disabled])) .control:hover, + .control:active { + border-color: ${Ja.Highlight}; + background: ${Ja.Field}; + } + :host(:${be.focusVisible}) .control { + outline: calc(${Yt} * 1px) solid ${Ja.FieldText}; + outline-offset: 2px; + } + :host([aria-checked="true"]:${be.focusVisible}:not([disabled])) .control { + outline: calc(${Yt} * 1px) solid ${Ja.FieldText}; + outline-offset: 2px; + } + :host([aria-checked='true']) .control { + background: ${Ja.Highlight}; + border-color: ${Ja.Highlight}; + } + :host([aria-checked='true']:not([disabled])) .control:hover, + .control:active { + border-color: ${Ja.Highlight}; + background: ${Ja.HighlightText}; + } + :host([aria-checked='true']) .checked-indicator { + fill: ${Ja.HighlightText}; + } + :host([aria-checked='true']:not([disabled])) + .control:hover + .checked-indicator { + fill: ${Ja.Highlight}; + } + :host([aria-checked='true']) .indeterminate-indicator { + background: ${Ja.HighlightText}; + } + :host([aria-checked='true']) .control:hover .indeterminate-indicator { + background: ${Ja.Highlight}; + } + :host([disabled]) { + opacity: 1; + } + :host([disabled]) .control { + forced-color-adjust: none; + border-color: ${Ja.GrayText}; + background: ${Ja.Field}; + } + :host([disabled]) .indeterminate-indicator, + :host([aria-checked='true'][disabled]) + .control:hover + .indeterminate-indicator { + forced-color-adjust: none; + background: ${Ja.GrayText}; + } + :host([disabled]) .checked-indicator, + :host([aria-checked='true'][disabled]) .control:hover .checked-indicator { + forced-color-adjust: none; + fill: ${Ja.GrayText}; + } + `));const kn=(e,t)=>(0,Za.html)` + +`;class Fn extends be.Checkbox{indeterminateChanged(e,t){if(this.indeterminate){this.classList.add("indeterminate")}else{this.classList.remove("indeterminate")}}}const Cn=Fn.compose({baseName:"checkbox",baseClass:be.Checkbox,template:kn,styles:wn,checkedIndicator:`\n \n \n \n `,indeterminateIndicator:`\n
\n `});const Sn=(e,t)=>{const o=e.tagFor(be.ListboxOption);const r=e.name===e.tagFor(be.ListboxElement)?"":".listbox";return(0,Za.css)` + ${!r?(0,be.display)("inline-flex"):""} + + :host ${r} { + background: ${sr}; + border: calc(${Zt} * 1px) solid ${ca}; + border-radius: calc(${Et} * 1px); + box-sizing: border-box; + flex-direction: column; + padding: calc(${qt} * 1px) 0; + } + + ${!r?(0,Za.css)` +:host(:${be.focusVisible}:not([disabled])) { + outline: none; + } + + :host(:focus-within:not([disabled])) { + border-color: ${ta}; + box-shadow: 0 0 0 + calc((${Yt} - ${Zt}) * 1px) + ${ta} inset; + } + + :host([disabled]) ::slotted(*) { + cursor: ${be.disabledCursor}; + opacity: ${Xt}; + pointer-events: none; + } + `:""} + + ${r||":host([size])"} { + max-height: calc( + (var(--size) * ${Ka} + (${qt} * ${Zt} * 2)) * 1px + ); + overflow-y: auto; + } + + :host([size="0"]) ${r} { + max-height: none; + } + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host(:not([multiple]):${be.focusVisible}) ::slotted(${o}[aria-selected="true"]), + :host([multiple]:${be.focusVisible}) ::slotted(${o}[aria-checked="true"]) { + border-color: ${Ja.ButtonText}; + box-shadow: 0 0 0 calc(${Yt} * 1px) inset ${Ja.HighlightText}; + } + + :host(:not([multiple]):${be.focusVisible}) ::slotted(${o}[aria-selected="true"]) { + background: ${Ja.Highlight}; + color: ${Ja.HighlightText}; + fill: currentcolor; + } + + ::slotted(${o}[aria-selected="true"]:not([aria-checked="true"])) { + background: ${Ja.Highlight}; + border-color: ${Ja.HighlightText}; + color: ${Ja.HighlightText}; + } + `))};const Tn=(e,t)=>{const o=e.name===e.tagFor(be.Select);return(0,Za.css)` + ${(0,be.display)("inline-flex")} + + :host { + --elevation: 14; + background: ${Rr}; + border-radius: calc(${Et} * 1px); + border: calc(${Zt} * 1px) solid ${Xr}; + box-sizing: border-box; + color: ${la}; + font-family: ${It}; + height: calc(${Ka} * 1px); + position: relative; + user-select: none; + min-width: 250px; + outline: none; + vertical-align: top; + } + + :host([aria-invalid='true']) { + border-color: ${$a}; + } + + :host(:not([autowidth])) { + min-width: 250px; + } + + ${o?(0,Za.css)` + :host(:not([aria-haspopup])) { + --elevation: 0; + border: 0; + height: auto; + min-width: 0; + } + `:""} + + ${Sn(e,t)} + + :host .listbox { + ${vn} + border: none; + display: flex; + left: 0; + position: absolute; + width: 100%; + z-index: 1; + } + + .control + .listbox { + --stroke-size: calc(${qt} * ${Zt} * 2); + max-height: calc( + (var(--listbox-max-height) * ${Ka} + var(--stroke-size)) * 1px + ); + } + + ${o?(0,Za.css)` + :host(:not([aria-haspopup])) .listbox { + left: auto; + position: static; + z-index: auto; + } + `:""} + + :host(:not([autowidth])) .listbox { + width: 100%; + } + + :host([autowidth]) ::slotted([role='option']), + :host([autowidth]) ::slotted(option) { + padding: 0 calc(1em + ${qt} * 1.25px + 1px); + } + + .listbox[hidden] { + display: none; + } + + .control { + align-items: center; + box-sizing: border-box; + cursor: pointer; + display: flex; + font-size: ${Jt}; + font-family: inherit; + line-height: ${Kt}; + min-height: 100%; + padding: 0 calc(${qt} * 2.25px); + width: 100%; + } + + :host([minimal]), + :host([scale='xsmall']) { + --element-scale: -4; + } + + :host([scale='small']) { + --element-scale: -2; + } + + :host([scale='medium']) { + --element-scale: 0; + } + + :host([scale='large']) { + --element-scale: 2; + } + + :host([scale='xlarge']) { + --element-scale: 4; + } + + :host(:not([disabled]):hover) { + background: ${Ir}; + border-color: ${Zr}; + } + + :host([aria-invalid='true']:not([disabled]):hover) { + border-color: ${xa}; + } + + :host(:${be.focusVisible}) { + border-color: ${gr}; + box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px) + ${gr}; + } + + :host([aria-invalid='true']:${be.focusVisible}) { + border-color: ${wa}; + box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px) + ${wa}; + } + + :host(:not([size]):not([multiple]):not([open]):${be.focusVisible}), + :host([multiple]:${be.focusVisible}), + :host([size]:${be.focusVisible}) { + box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px) + ${gr}; + } + + :host([aria-invalid='true']:not([size]):not([multiple]):not([open]):${be.focusVisible}), + :host([aria-invalid='true'][multiple]:${be.focusVisible}), + :host([aria-invalid='true'][size]:${be.focusVisible}) { + box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px) + ${wa}; + } + + :host(:not([multiple]):not([size]):${be.focusVisible}) ::slotted(${e.tagFor(be.ListboxOption)}[aria-selected="true"]:not([disabled])) { + box-shadow: 0 0 0 calc(${Yt} * 1px) inset ${gr}; + border-color: ${gr}; + background: ${gr}; + color: ${xr}; + } + + :host([disabled]) { + cursor: ${be.disabledCursor}; + opacity: ${Xt}; + } + + :host([disabled]) .control { + cursor: ${be.disabledCursor}; + user-select: none; + } + + :host([disabled]:hover) { + background: ${Er}; + color: ${la}; + fill: currentcolor; + } + + :host(:not([disabled])) .control:active { + background: ${Ar}; + border-color: ${pr}; + border-radius: calc(${Et} * 1px); + } + + :host([open][position="above"]) .listbox { + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; + border-bottom: 0; + bottom: calc(${Ka} * 1px); + } + + :host([open][position="below"]) .listbox { + border-top-left-radius: 0; + border-top-right-radius: 0; + border-top: 0; + top: calc(${Ka} * 1px); + } + + .selected-value { + flex: 1 1 auto; + font-family: inherit; + overflow: hidden; + text-align: start; + text-overflow: ellipsis; + white-space: nowrap; + } + + .indicator { + flex: 0 0 auto; + margin-inline-start: 1em; + } + + slot[name="listbox"] { + display: none; + width: 100%; + } + + :host([open]) slot[name="listbox"] { + display: flex; + position: absolute; + ${vn} + } + + .end { + margin-inline-start: auto; + } + + .start, + .end, + .indicator, + .select-indicator, + ::slotted(svg) { + /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ + fill: currentcolor; + height: 1em; + min-height: calc(${qt} * 4px); + min-width: calc(${qt} * 4px); + width: 1em; + } + + ::slotted([role="option"]), + ::slotted(option) { + flex: 0 0 auto; + } + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host(:not([disabled]):hover), + :host(:not([disabled]):active) { + border-color: ${Ja.Highlight}; + } + + :host([aria-invalid='true']) { + border-style: dashed; + } + + :host(:not([disabled]):${be.focusVisible}) { + background-color: ${Ja.ButtonFace}; + box-shadow: 0 0 0 calc(${Yt} * 1px) ${Ja.Highlight}; + color: ${Ja.ButtonText}; + fill: currentcolor; + forced-color-adjust: none; + } + + :host(:not([disabled]):${be.focusVisible}) .listbox { + background: ${Ja.ButtonFace}; + } + + :host([disabled]) { + border-color: ${Ja.GrayText}; + background-color: ${Ja.ButtonFace}; + color: ${Ja.GrayText}; + fill: currentcolor; + opacity: 1; + forced-color-adjust: none; + } + + :host([disabled]:hover) { + background: ${Ja.ButtonFace}; + } + + :host([disabled]) .control { + color: ${Ja.GrayText}; + border-color: ${Ja.GrayText}; + } + + :host([disabled]) .control .select-indicator { + fill: ${Ja.GrayText}; + } + + :host(:${be.focusVisible}) ::slotted([aria-selected="true"][role="option"]), + :host(:${be.focusVisible}) ::slotted(option[aria-selected="true"]), + :host(:${be.focusVisible}) ::slotted([aria-selected="true"][role="option"]:not([disabled])) { + background: ${Ja.Highlight}; + border-color: ${Ja.ButtonText}; + box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px) + ${Ja.HighlightText}; + color: ${Ja.HighlightText}; + fill: currentcolor; + } + + .start, + .end, + .indicator, + .select-indicator, + ::slotted(svg) { + color: ${Ja.ButtonText}; + fill: currentcolor; + } + `))};const Vn=(e,t)=>(0,Za.css)` + ${Tn(e,t)} + + :host(:empty) .listbox { + display: none; + } + + :host([disabled]) *, + :host([disabled]) { + cursor: ${be.disabledCursor}; + user-select: none; + } + + :host(:focus-within:not([disabled])) { + border-color: ${gr}; + box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px) + ${gr}; + } + + :host([aria-invalid='true']:focus-within:not([disabled])) { + border-color: ${wa}; + box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px) + ${wa}; + } + + .selected-value { + -webkit-appearance: none; + background: transparent; + border: none; + color: inherit; + font-size: ${Jt}; + line-height: ${Kt}; + height: calc(100% - (${Zt} * 1px)); + margin: auto 0; + width: 100%; + } + + .selected-value:hover, + .selected-value:${be.focusVisible}, + .selected-value:disabled, + .selected-value:active { + outline: none; + } +`;class Dn extends be.Combobox{connectedCallback(){super.connectedCallback();this.setAutoWidth()}slottedOptionsChanged(e,t){super.slottedOptionsChanged(e,t);this.setAutoWidth()}autoWidthChanged(e,t){if(t){this.setAutoWidth()}else{this.style.removeProperty("width")}}setAutoWidth(){if(!this.autoWidth||!this.isConnected){return}let e=this.listbox.getBoundingClientRect().width;if(e===0&&this.listbox.hidden){Object.assign(this.listbox.style,{visibility:"hidden"});this.listbox.removeAttribute("hidden");e=this.listbox.getBoundingClientRect().width;this.listbox.setAttribute("hidden","");this.listbox.style.removeProperty("visibility")}if(e>0){Object.assign(this.style,{width:`${e}px`})}}maxHeightChanged(e,t){this.updateComputedStylesheet()}updateComputedStylesheet(){if(this.computedStylesheet){this.$fastController.removeStyles(this.computedStylesheet)}const e=Math.floor(this.maxHeight/ba.getValueFor(this)).toString();this.computedStylesheet=(0,Za.css)` + :host { + --listbox-max-height: ${e}; + } + `;this.$fastController.addStyles(this.computedStylesheet)}}si([(0,Za.attr)({attribute:"autowidth",mode:"boolean"})],Dn.prototype,"autoWidth",void 0);si([(0,Za.attr)({attribute:"minimal",mode:"boolean"})],Dn.prototype,"minimal",void 0);si([Za.attr],Dn.prototype,"scale",void 0);const jn=Dn.compose({baseName:"combobox",baseClass:be.Combobox,template:be.comboboxTemplate,styles:Vn,shadowOptions:{delegatesFocus:true},indicator:`\n \n \n \n `});const zn=(e,t)=>(0,Za.css)` + :host { + display: flex; + position: relative; + flex-direction: column; + } +`;const Bn=(e,t)=>(0,Za.css)` + :host { + display: grid; + padding: 1px 0; + box-sizing: border-box; + width: 100%; + border-bottom: calc(${Zt} * 1px) solid ${ga}; + } + + :host(.header) { + } + + :host(.sticky-header) { + background: ${Lr}; + position: sticky; + top: 0; + } +`;const Ln=(e,t)=>(0,Za.css)` + :host { + padding: calc(${qt} * 1px) calc(${qt} * 3px); + color: ${la}; + box-sizing: border-box; + font-family: ${It}; + font-size: ${Jt}; + line-height: ${Kt}; + font-weight: 400; + border: transparent calc(${Yt} * 1px) solid; + overflow: hidden; + white-space: nowrap; + border-radius: calc(${Et} * 1px); + } + + :host(.column-header) { + font-weight: 600; + } + + :host(:${be.focusVisible}) { + outline: calc(${Yt} * 1px) solid ${gr}; + color: ${la}; + } + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host { + forced-color-adjust: none; + border-color: transparent; + background: ${Ja.Field}; + color: ${Ja.FieldText}; + } + + :host(:${be.focusVisible}) { + border-color: ${Ja.FieldText}; + box-shadow: 0 0 0 2px inset ${Ja.Field}; + color: ${Ja.FieldText}; + } + `));class On extends be.DataGridCell{}const Hn=On.compose({baseName:"data-grid-cell",baseClass:be.DataGridCell,template:be.dataGridCellTemplate,styles:Ln});class Nn extends be.DataGridRow{}const Pn=Nn.compose({baseName:"data-grid-row",baseClass:be.DataGridRow,template:be.dataGridRowTemplate,styles:Bn});class Rn extends be.DataGrid{}const In=Rn.compose({baseName:"data-grid",baseClass:be.DataGrid,template:be.dataGridTemplate,styles:zn});var An=o(74291);class Mn extends be.FoundationElement{}class Gn extends((0,be.FormAssociated)(Mn)){constructor(){super(...arguments);this.proxy=document.createElement("input")}}const En={toView(e){if(e===null||e===undefined){return null}const t=new Date(e);return t.toString()==="Invalid Date"?null:`${t.getFullYear().toString().padStart(4,"0")}-${(t.getMonth()+1).toString().padStart(2,"0")}-${t.getDate().toString().padStart(2,"0")}`},fromView(e){if(e===null||e===undefined){return null}const t=new Date(e);return t.toString()==="Invalid Date"?null:t}};const _n="Invalid Date";class qn extends Gn{constructor(){super(...arguments);this.step=1;this.isUserInput=false}readOnlyChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.readOnly=this.readOnly;this.validate()}}autofocusChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.autofocus=this.autofocus;this.validate()}}listChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.setAttribute("list",this.list);this.validate()}}maxChanged(e,t){var o;this.max=t<((o=this.min)!==null&&o!==void 0?o:t)?this.min:t;this.value=this.getValidValue(this.value)}minChanged(e,t){var o;this.min=t>((o=this.max)!==null&&o!==void 0?o:t)?this.max:t;this.value=this.getValidValue(this.value)}get valueAsNumber(){return new Date(super.value).valueOf()}set valueAsNumber(e){this.value=new Date(e).toString()}get valueAsDate(){return new Date(super.value)}set valueAsDate(e){this.value=e.toString()}valueChanged(e,t){this.value=this.getValidValue(t);if(t!==this.value){return}if(this.control&&!this.isUserInput){this.control.value=this.value}super.valueChanged(e,this.value);if(e!==undefined&&!this.isUserInput){this.$emit("change")}this.isUserInput=false}getValidValue(e){var t,o;let r=new Date(e);if(r.toString()===_n){r=""}else{r=r>((t=this.max)!==null&&t!==void 0?t:r)?this.max:r;r=r<((o=this.min)!==null&&o!==void 0?o:r)?this.min:r;r=`${r.getFullYear().toString().padStart(4,"0")}-${(r.getMonth()+1).toString().padStart(2,"0")}-${r.getDate().toString().padStart(2,"0")}`}return r}stepUp(){const e=864e5*this.step;const t=new Date(this.value);this.value=new Date(t.toString()!==_n?t.valueOf()+e:0).toString()}stepDown(){const e=864e5*this.step;const t=new Date(this.value);this.value=new Date(t.toString()!==_n?Math.max(t.valueOf()-e,0):0).toString()}connectedCallback(){super.connectedCallback();this.validate();this.control.value=this.value;if(this.autofocus){Za.DOM.queueUpdate((()=>{this.focus()}))}if(!this.appearance){this.appearance="outline"}}handleTextInput(){this.isUserInput=true;this.value=this.control.value}handleChange(){this.$emit("change")}handleKeyDown(e){const t=e.key;switch(t){case An.I5:this.stepUp();return false;case An.HX:this.stepDown();return false}return true}handleBlur(){this.control.value=this.value}}si([Za.attr],qn.prototype,"appearance",void 0);si([(0,Za.attr)({attribute:"readonly",mode:"boolean"})],qn.prototype,"readOnly",void 0);si([(0,Za.attr)({mode:"boolean"})],qn.prototype,"autofocus",void 0);si([Za.attr],qn.prototype,"list",void 0);si([(0,Za.attr)({converter:Za.nullableNumberConverter})],qn.prototype,"step",void 0);si([(0,Za.attr)({converter:En})],qn.prototype,"max",void 0);si([(0,Za.attr)({converter:En})],qn.prototype,"min",void 0);si([Za.observable],qn.prototype,"defaultSlottedNodes",void 0);(0,be.applyMixins)(qn,be.StartEnd,be.DelegatesARIATextbox);const Wn=(0,Za.css)` + ${(0,be.display)("inline-block")} :host { + font-family: ${It}; + outline: none; + user-select: none; + /* Ensure to display focus highlight */ + margin: calc((${Yt} - ${Zt}) * 1px); + } + + .root { + box-sizing: border-box; + position: relative; + display: flex; + flex-direction: row; + color: ${la}; + background: ${Rr}; + border-radius: calc(${Et} * 1px); + border: calc(${Zt} * 1px) solid ${Xr}; + height: calc(${Ka} * 1px); + } + + :host([aria-invalid='true']) .root { + border-color: ${$a}; + } + + .control { + -webkit-appearance: none; + font: inherit; + background: transparent; + border: 0; + color: inherit; + height: calc(100% - 4px); + width: 100%; + margin-top: auto; + margin-bottom: auto; + border: none; + padding: 0 calc(${qt} * 2px + 1px); + font-size: ${Jt}; + line-height: ${Kt}; + } + + .control:placeholder-shown { + text-overflow: ellipsis; + } + + .control:hover, + .control:${be.focusVisible}, + .control:disabled, + .control:active { + outline: none; + } + + .label { + display: block; + color: ${la}; + cursor: pointer; + font-size: ${Jt}; + line-height: ${Kt}; + margin-bottom: 4px; + } + + .label__hidden { + display: none; + visibility: hidden; + } + + .start, + .end { + margin: auto; + fill: currentcolor; + } + + ::slotted(svg) { + /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ + width: 16px; + height: 16px; + } + + .start { + margin-inline-start: 11px; + } + + .end { + margin-inline-end: 11px; + } + + :host(:hover:not([disabled])) .root { + background: ${Ir}; + border-color: ${Zr}; + } + + :host([aria-invalid='true']:hover:not([disabled])) .root { + border-color: ${xa}; + } + + :host(:active:not([disabled])) .root { + background: ${Ir}; + border-color: ${Yr}; + } + + :host([aria-invalid='true']:active:not([disabled])) .root { + border-color: ${ya}; + } + + :host(:focus-within:not([disabled])) .root { + border-color: ${gr}; + box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px) + ${gr}; + } + + :host([aria-invalid='true']:focus-within:not([disabled])) .root { + border-color: ${wa}; + box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px) + ${wa}; + } + + :host([appearance='filled']) .root { + background: ${Lr}; + } + + :host([appearance='filled']:hover:not([disabled])) .root { + background: ${Or}; + } + + :host([disabled]) .label, + :host([readonly]) .label, + :host([readonly]) .control, + :host([disabled]) .control { + cursor: ${be.disabledCursor}; + } + + :host([disabled]) { + opacity: ${Xt}; + } + + :host([disabled]) .control { + border-color: ${ca}; + } +`.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + .root, + :host([appearance='filled']) .root { + forced-color-adjust: none; + background: ${Ja.Field}; + border-color: ${Ja.FieldText}; + } + :host([aria-invalid='true']) .root { + border-style: dashed; + } + :host(:hover:not([disabled])) .root, + :host([appearance='filled']:hover:not([disabled])) .root, + :host([appearance='filled']:hover) .root { + background: ${Ja.Field}; + border-color: ${Ja.Highlight}; + } + .start, + .end { + fill: currentcolor; + } + :host([disabled]) { + opacity: 1; + } + :host([disabled]) .root, + :host([appearance='filled']:hover[disabled]) .root { + border-color: ${Ja.GrayText}; + background: ${Ja.Field}; + } + :host(:focus-within:enabled) .root { + border-color: ${Ja.Highlight}; + box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px) + ${Ja.Highlight}; + } + input::placeholder { + color: ${Ja.GrayText}; + } + `));const Un=(e,t)=>(0,Za.css)` + ${Wn} +`;const Xn=(e,t)=>(0,Za.html)` + +`;const Zn=qn.compose({baseName:"date-field",styles:Un,template:Xn,shadowOptions:{delegatesFocus:true}});const Yn={toView(e){if(e===null||e===undefined){return null}return e===null||e===void 0?void 0:e.toColorString()},fromView(e){if(e===null||e===undefined){return null}const t=S(e);return t?se.create(t.r,t.g,t.b):null}};const Jn=(0,Za.css)` + :host { + background-color: ${sr}; + color: ${la}; + } +`.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host { + background-color: ${Ja.ButtonFace}; + box-shadow: 0 0 0 1px ${Ja.CanvasText}; + color: ${Ja.ButtonText}; + } + `));function Kn(e){return(t,o)=>{t[o+"Changed"]=function(t,o){if(o!==undefined&&o!==null){e.setValueFor(this,o)}else{e.deleteValueFor(this)}}}}class Qn extends be.FoundationElement{constructor(){super();this.noPaint=false;const e={handleChange:this.noPaintChanged.bind(this)};Za.Observable.getNotifier(this).subscribe(e,"fillColor");Za.Observable.getNotifier(this).subscribe(e,"baseLayerLuminance")}noPaintChanged(){if(!this.noPaint&&(this.fillColor!==void 0||this.baseLayerLuminance)){this.$fastController.addStyles(Jn)}else{this.$fastController.removeStyles(Jn)}}}si([(0,Za.attr)({attribute:"no-paint",mode:"boolean"})],Qn.prototype,"noPaint",void 0);si([(0,Za.attr)({attribute:"fill-color",converter:Yn}),Kn(sr)],Qn.prototype,"fillColor",void 0);si([(0,Za.attr)({attribute:"accent-color",converter:Yn,mode:"fromView"}),Kn(Xo)],Qn.prototype,"accentColor",void 0);si([(0,Za.attr)({attribute:"neutral-color",converter:Yn,mode:"fromView"}),Kn(Wo)],Qn.prototype,"neutralColor",void 0);si([(0,Za.attr)({attribute:"error-color",converter:Yn,mode:"fromView"}),Kn(fa)],Qn.prototype,"errorColor",void 0);si([(0,Za.attr)({converter:Za.nullableNumberConverter}),Kn(_t)],Qn.prototype,"density",void 0);si([(0,Za.attr)({attribute:"design-unit",converter:Za.nullableNumberConverter}),Kn(qt)],Qn.prototype,"designUnit",void 0);si([(0,Za.attr)({attribute:"direction"}),Kn(Ut)],Qn.prototype,"direction",void 0);si([(0,Za.attr)({attribute:"base-height-multiplier",converter:Za.nullableNumberConverter}),Kn(At)],Qn.prototype,"baseHeightMultiplier",void 0);si([(0,Za.attr)({attribute:"base-horizontal-spacing-multiplier",converter:Za.nullableNumberConverter}),Kn(Mt)],Qn.prototype,"baseHorizontalSpacingMultiplier",void 0);si([(0,Za.attr)({attribute:"control-corner-radius",converter:Za.nullableNumberConverter}),Kn(Et)],Qn.prototype,"controlCornerRadius",void 0);si([(0,Za.attr)({attribute:"stroke-width",converter:Za.nullableNumberConverter}),Kn(Zt)],Qn.prototype,"strokeWidth",void 0);si([(0,Za.attr)({attribute:"focus-stroke-width",converter:Za.nullableNumberConverter}),Kn(Yt)],Qn.prototype,"focusStrokeWidth",void 0);si([(0,Za.attr)({attribute:"disabled-opacity",converter:Za.nullableNumberConverter}),Kn(Xt)],Qn.prototype,"disabledOpacity",void 0);si([(0,Za.attr)({attribute:"type-ramp-minus-2-font-size"}),Kn(to)],Qn.prototype,"typeRampMinus2FontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-minus-2-line-height"}),Kn(oo)],Qn.prototype,"typeRampMinus2LineHeight",void 0);si([(0,Za.attr)({attribute:"type-ramp-minus-1-font-size"}),Kn(Qt)],Qn.prototype,"typeRampMinus1FontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-minus-1-line-height"}),Kn(eo)],Qn.prototype,"typeRampMinus1LineHeight",void 0);si([(0,Za.attr)({attribute:"type-ramp-base-font-size"}),Kn(Jt)],Qn.prototype,"typeRampBaseFontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-base-line-height"}),Kn(Kt)],Qn.prototype,"typeRampBaseLineHeight",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-1-font-size"}),Kn(ro)],Qn.prototype,"typeRampPlus1FontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-1-line-height"}),Kn(ao)],Qn.prototype,"typeRampPlus1LineHeight",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-2-font-size"}),Kn(io)],Qn.prototype,"typeRampPlus2FontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-2-line-height"}),Kn(no)],Qn.prototype,"typeRampPlus2LineHeight",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-3-font-size"}),Kn(lo)],Qn.prototype,"typeRampPlus3FontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-3-line-height"}),Kn(so)],Qn.prototype,"typeRampPlus3LineHeight",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-4-font-size"}),Kn(co)],Qn.prototype,"typeRampPlus4FontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-4-line-height"}),Kn(uo)],Qn.prototype,"typeRampPlus4LineHeight",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-5-font-size"}),Kn(ho)],Qn.prototype,"typeRampPlus5FontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-5-line-height"}),Kn(po)],Qn.prototype,"typeRampPlus5LineHeight",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-6-font-size"}),Kn(go)],Qn.prototype,"typeRampPlus6FontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-6-line-height"}),Kn(bo)],Qn.prototype,"typeRampPlus6LineHeight",void 0);si([(0,Za.attr)({attribute:"accent-fill-rest-delta",converter:Za.nullableNumberConverter}),Kn(fo)],Qn.prototype,"accentFillRestDelta",void 0);si([(0,Za.attr)({attribute:"accent-fill-hover-delta",converter:Za.nullableNumberConverter}),Kn(mo)],Qn.prototype,"accentFillHoverDelta",void 0);si([(0,Za.attr)({attribute:"accent-fill-active-delta",converter:Za.nullableNumberConverter}),Kn(vo)],Qn.prototype,"accentFillActiveDelta",void 0);si([(0,Za.attr)({attribute:"accent-fill-focus-delta",converter:Za.nullableNumberConverter}),Kn($o)],Qn.prototype,"accentFillFocusDelta",void 0);si([(0,Za.attr)({attribute:"accent-foreground-rest-delta",converter:Za.nullableNumberConverter}),Kn(xo)],Qn.prototype,"accentForegroundRestDelta",void 0);si([(0,Za.attr)({attribute:"accent-foreground-hover-delta",converter:Za.nullableNumberConverter}),Kn(yo)],Qn.prototype,"accentForegroundHoverDelta",void 0);si([(0,Za.attr)({attribute:"accent-foreground-active-delta",converter:Za.nullableNumberConverter}),Kn(wo)],Qn.prototype,"accentForegroundActiveDelta",void 0);si([(0,Za.attr)({attribute:"accent-foreground-focus-delta",converter:Za.nullableNumberConverter}),Kn(ko)],Qn.prototype,"accentForegroundFocusDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-rest-delta",converter:Za.nullableNumberConverter}),Kn(Fo)],Qn.prototype,"neutralFillRestDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-hover-delta",converter:Za.nullableNumberConverter}),Kn(Co)],Qn.prototype,"neutralFillHoverDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-active-delta",converter:Za.nullableNumberConverter}),Kn(So)],Qn.prototype,"neutralFillActiveDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-focus-delta",converter:Za.nullableNumberConverter}),Kn(To)],Qn.prototype,"neutralFillFocusDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-input-rest-delta",converter:Za.nullableNumberConverter}),Kn(Vo)],Qn.prototype,"neutralFillInputRestDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-input-hover-delta",converter:Za.nullableNumberConverter}),Kn(Do)],Qn.prototype,"neutralFillInputHoverDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-input-active-delta",converter:Za.nullableNumberConverter}),Kn(jo)],Qn.prototype,"neutralFillInputActiveDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-input-focus-delta",converter:Za.nullableNumberConverter}),Kn(zo)],Qn.prototype,"neutralFillInputFocusDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-stealth-rest-delta",converter:Za.nullableNumberConverter}),Kn(Bo)],Qn.prototype,"neutralFillStealthRestDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-stealth-hover-delta",converter:Za.nullableNumberConverter}),Kn(Lo)],Qn.prototype,"neutralFillStealthHoverDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-stealth-active-delta",converter:Za.nullableNumberConverter}),Kn(Oo)],Qn.prototype,"neutralFillStealthActiveDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-stealth-focus-delta",converter:Za.nullableNumberConverter}),Kn(Ho)],Qn.prototype,"neutralFillStealthFocusDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-strong-hover-delta",converter:Za.nullableNumberConverter}),Kn(Po)],Qn.prototype,"neutralFillStrongHoverDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-strong-active-delta",converter:Za.nullableNumberConverter}),Kn(Ro)],Qn.prototype,"neutralFillStrongActiveDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-strong-focus-delta",converter:Za.nullableNumberConverter}),Kn(Io)],Qn.prototype,"neutralFillStrongFocusDelta",void 0);si([(0,Za.attr)({attribute:"base-layer-luminance",converter:Za.nullableNumberConverter}),Kn(Gt)],Qn.prototype,"baseLayerLuminance",void 0);si([(0,Za.attr)({attribute:"neutral-fill-layer-rest-delta",converter:Za.nullableNumberConverter}),Kn(Ao)],Qn.prototype,"neutralFillLayerRestDelta",void 0);si([(0,Za.attr)({attribute:"neutral-stroke-divider-rest-delta",converter:Za.nullableNumberConverter}),Kn(qo)],Qn.prototype,"neutralStrokeDividerRestDelta",void 0);si([(0,Za.attr)({attribute:"neutral-stroke-rest-delta",converter:Za.nullableNumberConverter}),Kn(Mo)],Qn.prototype,"neutralStrokeRestDelta",void 0);si([(0,Za.attr)({attribute:"neutral-stroke-hover-delta",converter:Za.nullableNumberConverter}),Kn(Go)],Qn.prototype,"neutralStrokeHoverDelta",void 0);si([(0,Za.attr)({attribute:"neutral-stroke-active-delta",converter:Za.nullableNumberConverter}),Kn(Eo)],Qn.prototype,"neutralStrokeActiveDelta",void 0);si([(0,Za.attr)({attribute:"neutral-stroke-focus-delta",converter:Za.nullableNumberConverter}),Kn(_o)],Qn.prototype,"neutralStrokeFocusDelta",void 0);const el=(e,t)=>(0,Za.html)` `;const tl=(e,t)=>(0,Za.css)` + ${(0,be.display)("block")} +`;const ol=Qn.compose({baseName:"design-system-provider",template:el,styles:tl});const rl=(e,t)=>(0,Za.css)` + :host([hidden]) { + display: none; + } + + :host { + --elevation: 14; + --dialog-height: 480px; + --dialog-width: 640px; + display: block; + } + + .overlay { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + background: rgba(0, 0, 0, 0.3); + touch-action: none; + } + + .positioning-region { + display: flex; + justify-content: center; + position: fixed; + top: 0; + bottom: 0; + left: 0; + right: 0; + overflow: auto; + } + + .control { + ${vn} + margin-top: auto; + margin-bottom: auto; + width: var(--dialog-width); + height: var(--dialog-height); + background-color: ${sr}; + z-index: 1; + border-radius: calc(${Et} * 1px); + border: calc(${Zt} * 1px) solid transparent; + } +`;class al extends be.Dialog{}const il=al.compose({baseName:"dialog",baseClass:be.Dialog,template:be.dialogTemplate,styles:rl});const nl=(e,t)=>(0,Za.css)` + .disclosure { + transition: height 0.35s; + } + + .disclosure .invoker::-webkit-details-marker { + display: none; + } + + .disclosure .invoker { + list-style-type: none; + } + + :host([appearance='accent']) .invoker { + background: ${ur}; + color: ${mr}; + font-family: ${It}; + font-size: ${Jt}; + border-radius: calc(${Et} * 1px); + outline: none; + cursor: pointer; + margin: 16px 0; + padding: 12px; + max-width: max-content; + } + + :host([appearance='accent']) .invoker:active { + background: ${pr}; + color: ${$r}; + } + + :host([appearance='accent']) .invoker:hover { + background: ${hr}; + color: ${vr}; + } + + :host([appearance='lightweight']) .invoker { + background: transparent; + color: ${Vr}; + border-bottom: calc(${Zt} * 1px) solid ${Vr}; + cursor: pointer; + width: max-content; + margin: 16px 0; + } + + :host([appearance='lightweight']) .invoker:active { + border-bottom-color: ${jr}; + } + + :host([appearance='lightweight']) .invoker:hover { + border-bottom-color: ${Dr}; + } + + .disclosure[open] .invoker ~ * { + animation: fadeIn 0.5s ease-in-out; + } + + @keyframes fadeIn { + 0% { + opacity: 0; + } + 100% { + opacity: 1; + } + } +`;class ll extends be.Disclosure{constructor(){super(...arguments);this.height=0;this.totalHeight=0}connectedCallback(){super.connectedCallback();if(!this.appearance){this.appearance="accent"}}appearanceChanged(e,t){if(e!==t){this.classList.add(t);this.classList.remove(e)}}onToggle(){super.onToggle();this.details.style.setProperty("height",`${this.disclosureHeight}px`)}setup(){super.setup();const e=()=>this.details.getBoundingClientRect().height;this.show();this.totalHeight=e();this.hide();this.height=e();if(this.expanded){this.show()}}get disclosureHeight(){return this.expanded?this.totalHeight:this.height}}si([Za.attr],ll.prototype,"appearance",void 0);const sl=ll.compose({baseName:"disclosure",baseClass:be.Disclosure,template:be.disclosureTemplate,styles:nl});const cl=(e,t)=>(0,Za.css)` + ${(0,be.display)("block")} :host { + box-sizing: content-box; + height: 0; + margin: calc(${qt} * 1px) 0; + border-top: calc(${Zt} * 1px) solid ${ga}; + border-left: none; + } + + :host([orientation='vertical']) { + height: 100%; + margin: 0 calc(${qt} * 1px); + border-top: none; + border-left: calc(${Zt} * 1px) solid ${ga}; + } +`;class dl extends be.Divider{}const ul=dl.compose({baseName:"divider",baseClass:be.Divider,template:be.dividerTemplate,styles:cl});class hl extends be.ListboxElement{sizeChanged(e,t){super.sizeChanged(e,t);this.updateComputedStylesheet()}updateComputedStylesheet(){if(this.computedStylesheet){this.$fastController.removeStyles(this.computedStylesheet)}const e=`${this.size}`;this.computedStylesheet=(0,Za.css)` + :host { + --size: ${e}; + } + `;this.$fastController.addStyles(this.computedStylesheet)}}const pl=hl.compose({baseName:"listbox",baseClass:be.ListboxElement,template:be.listboxTemplate,styles:Sn});const gl=(e,t)=>(0,Za.css)` + ${(0,be.display)("block")} :host { + --elevation: 11; + background: ${sr}; + border: calc(${Zt} * 1px) solid transparent; + ${vn} + margin: 0; + border-radius: calc(${Et} * 1px); + padding: calc(${qt} * 1px) 0; + max-width: 368px; + min-width: 64px; + } + + :host([slot='submenu']) { + width: max-content; + margin: 0 calc(${qt} * 1px); + } + + ::slotted(hr) { + box-sizing: content-box; + height: 0; + margin: 0; + border: none; + border-top: calc(${Zt} * 1px) solid ${ga}; + } + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host { + background: ${Ja.Canvas}; + border-color: ${Ja.CanvasText}; + } + `));class bl extends be.Menu{connectedCallback(){super.connectedCallback();sr.setValueFor(this,Qo)}}const fl=bl.compose({baseName:"menu",baseClass:be.Menu,template:be.menuTemplate,styles:gl});const ml=(e,t)=>(0,Za.css)` + ${(0,be.display)("grid")} :host { + contain: layout; + overflow: visible; + font-family: ${It}; + outline: none; + box-sizing: border-box; + height: calc(${Ka} * 1px); + grid-template-columns: minmax(42px, auto) 1fr minmax(42px, auto); + grid-template-rows: auto; + justify-items: center; + align-items: center; + padding: 0; + margin: 0 calc(${qt} * 1px); + white-space: nowrap; + background: ${Er}; + color: ${la}; + fill: currentcolor; + cursor: pointer; + font-size: ${Jt}; + line-height: ${Kt}; + border-radius: calc(${Et} * 1px); + border: calc(${Yt} * 1px) solid transparent; + } + + :host(:hover) { + position: relative; + z-index: 1; + } + + :host(.indent-0) { + grid-template-columns: auto 1fr minmax(42px, auto); + } + :host(.indent-0) .content { + grid-column: 1; + grid-row: 1; + margin-inline-start: 10px; + } + :host(.indent-0) .expand-collapse-glyph-container { + grid-column: 5; + grid-row: 1; + } + :host(.indent-2) { + grid-template-columns: + minmax(42px, auto) minmax(42px, auto) 1fr minmax(42px, auto) + minmax(42px, auto); + } + :host(.indent-2) .content { + grid-column: 3; + grid-row: 1; + margin-inline-start: 10px; + } + :host(.indent-2) .expand-collapse-glyph-container { + grid-column: 5; + grid-row: 1; + } + :host(.indent-2) .start { + grid-column: 2; + } + :host(.indent-2) .end { + grid-column: 4; + } + + :host(:${be.focusVisible}) { + border-color: ${gr}; + background: ${Wr}; + color: ${la}; + } + + :host(:hover) { + background: ${_r}; + color: ${la}; + } + + :host(:active) { + background: ${qr}; + } + + :host([aria-checked='true']), + :host(.expanded) { + background: ${Lr}; + color: ${la}; + } + + :host([disabled]) { + cursor: ${be.disabledCursor}; + opacity: ${Xt}; + } + + :host([disabled]:hover) { + color: ${la}; + fill: currentcolor; + background: ${Er}; + } + + :host([disabled]:hover) .start, + :host([disabled]:hover) .end, + :host([disabled]:hover)::slotted(svg) { + fill: ${la}; + } + + .expand-collapse-glyph { + /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ + width: calc((16 + ${_t}) * 1px); + height: calc((16 + ${_t}) * 1px); + fill: currentcolor; + } + + .content { + grid-column-start: 2; + justify-self: start; + overflow: hidden; + text-overflow: ellipsis; + } + + .start, + .end { + display: flex; + justify-content: center; + } + + ::slotted(svg) { + /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ + width: 16px; + height: 16px; + + /* Something like that would do if the typography is adaptive + font-size: inherit; + width: ${ro}; + height: ${ro}; + */ + } + + :host(:hover) .start, + :host(:hover) .end, + :host(:hover)::slotted(svg), + :host(:active) .start, + :host(:active) .end, + :host(:active)::slotted(svg) { + fill: ${la}; + } + + :host(.indent-0[aria-haspopup='menu']) { + display: grid; + grid-template-columns: minmax(42px, auto) auto 1fr minmax(42px, auto) minmax( + 42px, + auto + ); + align-items: center; + min-height: 32px; + } + + :host(.indent-1[aria-haspopup='menu']), + :host(.indent-1[role='menuitemcheckbox']), + :host(.indent-1[role='menuitemradio']) { + display: grid; + grid-template-columns: minmax(42px, auto) auto 1fr minmax(42px, auto) minmax( + 42px, + auto + ); + align-items: center; + min-height: 32px; + } + + :host(.indent-2:not([aria-haspopup='menu'])) .end { + grid-column: 5; + } + + :host .input-container, + :host .expand-collapse-glyph-container { + display: none; + } + + :host([aria-haspopup='menu']) .expand-collapse-glyph-container, + :host([role='menuitemcheckbox']) .input-container, + :host([role='menuitemradio']) .input-container { + display: grid; + margin-inline-end: 10px; + } + + :host([aria-haspopup='menu']) .content, + :host([role='menuitemcheckbox']) .content, + :host([role='menuitemradio']) .content { + grid-column-start: 3; + } + + :host([aria-haspopup='menu'].indent-0) .content { + grid-column-start: 1; + } + + :host([aria-haspopup='menu']) .end, + :host([role='menuitemcheckbox']) .end, + :host([role='menuitemradio']) .end { + grid-column-start: 4; + } + + :host .expand-collapse, + :host .checkbox, + :host .radio { + display: flex; + align-items: center; + justify-content: center; + position: relative; + width: 20px; + height: 20px; + box-sizing: border-box; + outline: none; + margin-inline-start: 10px; + } + + :host .checkbox, + :host .radio { + border: calc(${Zt} * 1px) solid ${la}; + } + + :host([aria-checked='true']) .checkbox, + :host([aria-checked='true']) .radio { + background: ${ur}; + border-color: ${ur}; + } + + :host .checkbox { + border-radius: calc(${Et} * 1px); + } + + :host .radio { + border-radius: 999px; + } + + :host .checkbox-indicator, + :host .radio-indicator, + :host .expand-collapse-indicator, + ::slotted([slot='checkbox-indicator']), + ::slotted([slot='radio-indicator']), + ::slotted([slot='expand-collapse-indicator']) { + display: none; + } + + ::slotted([slot='end']:not(svg)) { + margin-inline-end: 10px; + color: ${ia}; + } + + :host([aria-checked='true']) .checkbox-indicator, + :host([aria-checked='true']) ::slotted([slot='checkbox-indicator']) { + width: 100%; + height: 100%; + display: block; + fill: ${mr}; + pointer-events: none; + } + + :host([aria-checked='true']) .radio-indicator { + position: absolute; + top: 4px; + left: 4px; + right: 4px; + bottom: 4px; + border-radius: 999px; + display: block; + background: ${mr}; + pointer-events: none; + } + + :host([aria-checked='true']) ::slotted([slot='radio-indicator']) { + display: block; + pointer-events: none; + } + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host { + border-color: transparent; + color: ${Ja.ButtonText}; + forced-color-adjust: none; + } + + :host(:hover) { + background: ${Ja.Highlight}; + color: ${Ja.HighlightText}; + } + + :host(:hover) .start, + :host(:hover) .end, + :host(:hover)::slotted(svg), + :host(:active) .start, + :host(:active) .end, + :host(:active)::slotted(svg) { + fill: ${Ja.HighlightText}; + } + + :host(.expanded) { + background: ${Ja.Highlight}; + border-color: ${Ja.Highlight}; + color: ${Ja.HighlightText}; + } + + :host(:${be.focusVisible}) { + background: ${Ja.Highlight}; + border-color: ${Ja.ButtonText}; + box-shadow: 0 0 0 calc(${Yt} * 1px) inset + ${Ja.HighlightText}; + color: ${Ja.HighlightText}; + fill: currentcolor; + } + + :host([disabled]), + :host([disabled]:hover), + :host([disabled]:hover) .start, + :host([disabled]:hover) .end, + :host([disabled]:hover)::slotted(svg) { + background: ${Ja.Canvas}; + color: ${Ja.GrayText}; + fill: currentcolor; + opacity: 1; + } + + :host .expanded-toggle, + :host .checkbox, + :host .radio { + border-color: ${Ja.ButtonText}; + background: ${Ja.HighlightText}; + } + + :host([checked='true']) .checkbox, + :host([checked='true']) .radio { + background: ${Ja.HighlightText}; + border-color: ${Ja.HighlightText}; + } + + :host(:hover) .expanded-toggle, + :host(:hover) .checkbox, + :host(:hover) .radio, + :host(:${be.focusVisible}) .expanded-toggle, + :host(:${be.focusVisible}) .checkbox, + :host(:${be.focusVisible}) .radio, + :host([checked="true"]:hover) .checkbox, + :host([checked="true"]:hover) .radio, + :host([checked="true"]:${be.focusVisible}) .checkbox, + :host([checked="true"]:${be.focusVisible}) .radio { + border-color: ${Ja.HighlightText}; + } + + :host([aria-checked='true']) { + background: ${Ja.Highlight}; + color: ${Ja.HighlightText}; + } + + :host([aria-checked='true']) .checkbox-indicator, + :host([aria-checked='true']) ::slotted([slot='checkbox-indicator']), + :host([aria-checked='true']) ::slotted([slot='radio-indicator']) { + fill: ${Ja.Highlight}; + } + + :host([aria-checked='true']) .radio-indicator { + background: ${Ja.Highlight}; + } + + ::slotted([slot='end']:not(svg)) { + color: ${Ja.ButtonText}; + } + + :host(:hover) ::slotted([slot="end"]:not(svg)), + :host(:${be.focusVisible}) ::slotted([slot="end"]:not(svg)) { + color: ${Ja.HighlightText}; + } + `),new Zi((0,Za.css)` + .expand-collapse-glyph { + transform: rotate(0deg); + } + `,(0,Za.css)` + .expand-collapse-glyph { + transform: rotate(180deg); + } + `));class vl extends be.MenuItem{}const $l=vl.compose({baseName:"menu-item",baseClass:be.MenuItem,template:be.menuItemTemplate,styles:ml,checkboxIndicator:`\n \n \n \n `,expandCollapseGlyph:`\n \n \n \n `,radioIndicator:`\n \n `});const xl=(e,t)=>(0,Za.css)` + ${Wn} + + .controls { + opacity: 0; + } + + .step-up-glyph, + .step-down-glyph { + display: block; + padding: 4px 10px; + cursor: pointer; + } + + .step-up-glyph:before, + .step-down-glyph:before { + content: ''; + display: block; + border: solid transparent 6px; + } + + .step-up-glyph:before { + border-bottom-color: ${la}; + } + + .step-down-glyph:before { + border-top-color: ${la}; + } + + :host(:hover:not([disabled])) .controls, + :host(:focus-within:not([disabled])) .controls { + opacity: 1; + } +`;class yl extends be.NumberField{constructor(){super(...arguments);this.appearance="outline"}}si([Za.attr],yl.prototype,"appearance",void 0);const wl=yl.compose({baseName:"number-field",baseClass:be.NumberField,styles:xl,template:be.numberFieldTemplate,shadowOptions:{delegatesFocus:true},stepDownGlyph:`\n \n `,stepUpGlyph:`\n \n `});const kl=(e,t)=>(0,Za.css)` + ${(0,be.display)("inline-flex")} :host { + align-items: center; + font-family: ${It}; + border-radius: calc(${Et} * 1px); + border: calc(${Yt} * 1px) solid transparent; + box-sizing: border-box; + background: ${Er}; + color: ${la}; + cursor: pointer; + flex: 0 0 auto; + fill: currentcolor; + font-size: ${Jt}; + height: calc(${Ka} * 1px); + line-height: ${Kt}; + margin: 0 calc((${qt} - ${Yt}) * 1px); + outline: none; + overflow: hidden; + padding: 0 1ch; + user-select: none; + white-space: nowrap; + } + + :host(:not([disabled]):not([aria-selected='true']):hover) { + background: ${_r}; + } + + :host(:not([disabled]):not([aria-selected='true']):active) { + background: ${qr}; + } + + :host([aria-selected='true']) { + background: ${ur}; + color: ${mr}; + } + + :host(:not([disabled])[aria-selected='true']:hover) { + background: ${hr}; + color: ${vr}; + } + + :host(:not([disabled])[aria-selected='true']:active) { + background: ${pr}; + color: ${$r}; + } + + :host([disabled]) { + cursor: ${be.disabledCursor}; + opacity: ${Xt}; + } + + .content { + grid-column-start: 2; + justify-self: start; + overflow: hidden; + text-overflow: ellipsis; + } + + .start, + .end, + ::slotted(svg) { + display: flex; + } + + ::slotted(svg) { + /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ + height: calc(${qt} * 4px); + width: calc(${qt} * 4px); + } + + ::slotted([slot='end']) { + margin-inline-start: 1ch; + } + + ::slotted([slot='start']) { + margin-inline-end: 1ch; + } + + :host([aria-checked='true'][aria-selected='false']) { + border-color: ${ta}; + } + + :host([aria-checked='true'][aria-selected='true']) { + border-color: ${ta}; + box-shadow: 0 0 0 calc(${Yt} * 2 * 1px) inset + ${ra}; + } + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host { + border-color: transparent; + forced-color-adjust: none; + color: ${Ja.ButtonText}; + fill: currentcolor; + } + + :host(:not([aria-selected='true']):hover), + :host([aria-selected='true']) { + background: ${Ja.Highlight}; + color: ${Ja.HighlightText}; + } + + :host([disabled]), + :host([disabled][aria-selected='false']:hover) { + background: ${Ja.Canvas}; + color: ${Ja.GrayText}; + fill: currentcolor; + opacity: 1; + } + + :host([aria-checked='true'][aria-selected='false']) { + background: ${Ja.ButtonFace}; + color: ${Ja.ButtonText}; + border-color: ${Ja.ButtonText}; + } + + :host([aria-checked='true'][aria-selected='true']), + :host([aria-checked='true'][aria-selected='true']:hover) { + background: ${Ja.Highlight}; + color: ${Ja.HighlightText}; + border-color: ${Ja.ButtonText}; + } + `));class Fl extends be.ListboxOption{}const Cl=Fl.compose({baseName:"option",baseClass:be.ListboxOption,template:be.listboxOptionTemplate,styles:kl});const Sl=(e,t)=>(0,Za.css)` + ${(0,be.display)("flex")} :host { + align-items: center; + outline: none; + height: calc(${qt} * 1px); + margin: calc(${qt} * 1px) 0; + } + + .progress { + background-color: ${Lr}; + border-radius: calc(${qt} * 1px); + width: 100%; + height: 100%; + display: flex; + align-items: center; + position: relative; + } + + .determinate { + background-color: ${Vr}; + border-radius: calc(${qt} * 1px); + height: 100%; + transition: all 0.2s ease-in-out; + display: flex; + } + + .indeterminate { + height: 100%; + border-radius: calc(${qt} * 1px); + display: flex; + width: 100%; + position: relative; + overflow: hidden; + } + + .indeterminate-indicator-1 { + position: absolute; + opacity: 0; + height: 100%; + background-color: ${Vr}; + border-radius: calc(${qt} * 1px); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + width: 40%; + animation: indeterminate-1 2s infinite; + } + + .indeterminate-indicator-2 { + position: absolute; + opacity: 0; + height: 100%; + background-color: ${Vr}; + border-radius: calc(${qt} * 1px); + animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); + width: 60%; + animation: indeterminate-2 2s infinite; + } + + :host([paused]) .indeterminate-indicator-1, + :host([paused]) .indeterminate-indicator-2 { + animation-play-state: paused; + background-color: ${Lr}; + } + + :host([paused]) .determinate { + background-color: ${ia}; + } + + @keyframes indeterminate-1 { + 0% { + opacity: 1; + transform: translateX(-100%); + } + 70% { + opacity: 1; + transform: translateX(300%); + } + 70.01% { + opacity: 0; + } + 100% { + opacity: 0; + transform: translateX(300%); + } + } + + @keyframes indeterminate-2 { + 0% { + opacity: 0; + transform: translateX(-150%); + } + 29.99% { + opacity: 0; + } + 30% { + opacity: 1; + transform: translateX(-150%); + } + 100% { + transform: translateX(166.66%); + opacity: 1; + } + } + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + .progress { + forced-color-adjust: none; + background-color: ${Ja.Field}; + box-shadow: 0 0 0 1px inset ${Ja.FieldText}; + } + .determinate, + .indeterminate-indicator-1, + .indeterminate-indicator-2 { + forced-color-adjust: none; + background-color: ${Ja.FieldText}; + } + :host([paused]) .determinate, + :host([paused]) .indeterminate-indicator-1, + :host([paused]) .indeterminate-indicator-2 { + background-color: ${Ja.GrayText}; + } + `));class Tl extends be.BaseProgress{}const Vl=Tl.compose({baseName:"progress",baseClass:be.BaseProgress,template:be.progressTemplate,styles:Sl,indeterminateIndicator1:`\n \n `,indeterminateIndicator2:`\n \n `});const Dl=(e,t)=>(0,Za.css)` + ${(0,be.display)("flex")} :host { + align-items: center; + outline: none; + height: calc(${Ka} * 1px); + width: calc(${Ka} * 1px); + margin: calc(${Ka} * 1px) 0; + } + + .progress { + height: 100%; + width: 100%; + } + + .background { + stroke: ${Lr}; + fill: none; + stroke-width: 2px; + } + + .determinate { + stroke: ${Vr}; + fill: none; + stroke-width: 2px; + stroke-linecap: round; + transform-origin: 50% 50%; + transform: rotate(-90deg); + transition: all 0.2s ease-in-out; + } + + .indeterminate-indicator-1 { + stroke: ${Vr}; + fill: none; + stroke-width: 2px; + stroke-linecap: round; + transform-origin: 50% 50%; + transform: rotate(-90deg); + transition: all 0.2s ease-in-out; + animation: spin-infinite 2s linear infinite; + } + + :host([paused]) .indeterminate-indicator-1 { + animation-play-state: paused; + stroke: ${Lr}; + } + + :host([paused]) .determinate { + stroke: ${ia}; + } + + @keyframes spin-infinite { + 0% { + stroke-dasharray: 0.01px 43.97px; + transform: rotate(0deg); + } + 50% { + stroke-dasharray: 21.99px 21.99px; + transform: rotate(450deg); + } + 100% { + stroke-dasharray: 0.01px 43.97px; + transform: rotate(1080deg); + } + } + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + .indeterminate-indicator-1, + .determinate { + stroke: ${Ja.FieldText}; + } + .background { + stroke: ${Ja.Field}; + } + :host([paused]) .indeterminate-indicator-1 { + stroke: ${Ja.Field}; + } + :host([paused]) .determinate { + stroke: ${Ja.GrayText}; + } + `));class jl extends be.BaseProgress{}const zl=jl.compose({baseName:"progress-ring",baseClass:be.BaseProgress,template:be.progressRingTemplate,styles:Dl,indeterminateIndicator:`\n \n \n \n \n `});const Bl=(e,t)=>(0,Za.css)` + ${(0,be.display)("inline-flex")} :host { + --input-size: calc((${Ka} / 2) + ${qt}); + align-items: center; + outline: none; + margin: calc(${qt} * 1px) 0; + /* Chromium likes to select label text or the default slot when + the radio is clicked. Maybe there is a better solution here? */ + user-select: none; + position: relative; + flex-direction: row; + transition: all 0.2s ease-in-out; + } + + .control { + position: relative; + width: calc((${Ka} / 2 + ${qt}) * 1px); + height: calc((${Ka} / 2 + ${qt}) * 1px); + box-sizing: border-box; + border-radius: 999px; + border: calc(${Zt} * 1px) solid ${ca}; + background: ${Rr}; + outline: none; + cursor: pointer; + } + + :host([aria-invalid='true']) .control { + border-color: ${$a}; + } + + .label { + font-family: ${It}; + color: ${la}; + padding-inline-start: calc(${qt} * 2px + 2px); + margin-inline-end: calc(${qt} * 2px + 2px); + cursor: pointer; + font-size: ${Jt}; + line-height: ${Kt}; + } + + .label__hidden { + display: none; + visibility: hidden; + } + + .control, + .checked-indicator { + flex-shrink: 0; + } + + .checked-indicator { + position: absolute; + top: 5px; + left: 5px; + right: 5px; + bottom: 5px; + border-radius: 999px; + display: inline-block; + background: ${mr}; + fill: ${mr}; + opacity: 0; + pointer-events: none; + } + + :host(:not([disabled])) .control:hover { + background: ${Ir}; + border-color: ${da}; + } + + :host([aria-invalid='true']:not([disabled])) .control:hover { + border-color: ${xa}; + } + + :host(:not([disabled])) .control:active { + background: ${Ar}; + border-color: ${ua}; + } + + :host([aria-invalid='true']:not([disabled])) .control:active { + border-color: ${ya}; + } + + :host(:${be.focusVisible}) .control { + outline: solid calc(${Yt} * 1px) ${gr}; + } + + :host([aria-invalid='true']:${be.focusVisible}) .control { + outline-color: ${wa}; + } + + :host([aria-checked='true']) .control { + background: ${ur}; + border: calc(${Zt} * 1px) solid ${ur}; + } + + :host([aria-invalid='true'][aria-checked='true']) .control { + background-color: ${$a}; + border-color: ${$a}; + } + + :host([aria-checked='true']:not([disabled])) .control:hover { + background: ${hr}; + border: calc(${Zt} * 1px) solid ${hr}; + } + + :host([aria-invalid='true'][aria-checked='true']:not([disabled])) + .control:hover { + background-color: ${xa}; + border-color: ${xa}; + } + + :host([aria-checked='true']:not([disabled])) + .control:hover + .checked-indicator { + background: ${vr}; + fill: ${vr}; + } + + :host([aria-checked='true']:not([disabled])) .control:active { + background: ${pr}; + border: calc(${Zt} * 1px) solid ${pr}; + } + + :host([aria-invalid='true'][aria-checked='true']:not([disabled])) + .control:active { + background-color: ${ya}; + border-color: ${ya}; + } + + :host([aria-checked='true']:not([disabled])) + .control:active + .checked-indicator { + background: ${$r}; + fill: ${$r}; + } + + :host([aria-checked="true"]:${be.focusVisible}:not([disabled])) .control { + outline-offset: 2px; + outline: solid calc(${Yt} * 1px) ${gr}; + } + + :host([aria-invalid='true'][aria-checked="true"]:${be.focusVisible}:not([disabled])) .control { + outline-color: ${wa}; + } + + :host([disabled]) .label, + :host([readonly]) .label, + :host([readonly]) .control, + :host([disabled]) .control { + cursor: ${be.disabledCursor}; + } + + :host([aria-checked='true']) .checked-indicator { + opacity: 1; + } + + :host([disabled]) { + opacity: ${Xt}; + } + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + .control, + :host([aria-checked='true']:not([disabled])) .control { + forced-color-adjust: none; + border-color: ${Ja.FieldText}; + background: ${Ja.Field}; + } + :host([aria-invalid='true']) { + border-style: dashed; + } + :host(:not([disabled])) .control:hover { + border-color: ${Ja.Highlight}; + background: ${Ja.Field}; + } + :host([aria-checked='true']:not([disabled])) .control:hover, + :host([aria-checked='true']:not([disabled])) .control:active { + border-color: ${Ja.Highlight}; + background: ${Ja.Highlight}; + } + :host([aria-checked='true']) .checked-indicator { + background: ${Ja.Highlight}; + fill: ${Ja.Highlight}; + } + :host([aria-checked='true']:not([disabled])) + .control:hover + .checked-indicator, + :host([aria-checked='true']:not([disabled])) + .control:active + .checked-indicator { + background: ${Ja.HighlightText}; + fill: ${Ja.HighlightText}; + } + :host(:${be.focusVisible}) .control { + border-color: ${Ja.Highlight}; + outline-offset: 2px; + outline: solid calc(${Yt} * 1px) ${Ja.FieldText}; + } + :host([aria-checked="true"]:${be.focusVisible}:not([disabled])) .control { + border-color: ${Ja.Highlight}; + outline: solid calc(${Yt} * 1px) ${Ja.FieldText}; + } + :host([disabled]) { + forced-color-adjust: none; + opacity: 1; + } + :host([disabled]) .label { + color: ${Ja.GrayText}; + } + :host([disabled]) .control, + :host([aria-checked='true'][disabled]) .control:hover, + .control:active { + background: ${Ja.Field}; + border-color: ${Ja.GrayText}; + } + :host([disabled]) .checked-indicator, + :host([aria-checked='true'][disabled]) .control:hover .checked-indicator { + fill: ${Ja.GrayText}; + background: ${Ja.GrayText}; + } + `));const Ll=(e,t)=>(0,Za.html)` + +`;class Ol extends be.Radio{}const Hl=Ol.compose({baseName:"radio",baseClass:be.Radio,template:Ll,styles:Bl,checkedIndicator:`\n
\n `});const Nl=(e,t)=>(0,Za.css)` + ${(0,be.display)("flex")} :host { + align-items: flex-start; + margin: calc(${qt} * 1px) 0; + flex-direction: column; + } + .positioning-region { + display: flex; + flex-wrap: wrap; + } + :host([orientation='vertical']) .positioning-region { + flex-direction: column; + } + :host([orientation='horizontal']) .positioning-region { + flex-direction: row; + } +`;class Pl extends be.RadioGroup{constructor(){super();const e=Za.Observable.getNotifier(this);const t={handleChange(e,t){if(t==="slottedRadioButtons"){e.ariaInvalidChanged()}}};e.subscribe(t,"slottedRadioButtons")}ariaInvalidChanged(){if(this.slottedRadioButtons){this.slottedRadioButtons.forEach((e=>{var t;e.setAttribute("aria-invalid",(t=this.getAttribute("aria-invalid"))!==null&&t!==void 0?t:"false")}))}}}const Rl=Pl.compose({baseName:"radio-group",baseClass:be.RadioGroup,template:be.radioGroupTemplate,styles:Nl});const Il=be.DesignToken.create("clear-button-hover").withDefault((e=>{const t=Gr.getValueFor(e);const o=Br.getValueFor(e);return t.evaluate(e,o.evaluate(e).hover).hover}));const Al=be.DesignToken.create("clear-button-active").withDefault((e=>{const t=Gr.getValueFor(e);const o=Br.getValueFor(e);return t.evaluate(e,o.evaluate(e).hover).active}));const Ml=(e,t)=>(0,Za.css)` + ${Wn} + + .control::-webkit-search-cancel-button { + -webkit-appearance: none; + } + + .control:hover, + .control:${be.focusVisible}, + .control:disabled, + .control:active { + outline: none; + } + + .clear-button { + height: calc(100% - 2px); + opacity: 0; + margin: 1px; + background: transparent; + color: ${la}; + fill: currentcolor; + border: none; + border-radius: calc(${Et} * 1px); + min-width: calc(${Ka} * 1px); + font-size: ${Jt}; + line-height: ${Kt}; + outline: none; + font-family: ${It}; + padding: 0 calc((10 + (${qt} * 2 * ${_t})) * 1px); + } + + .clear-button:hover { + background: ${_r}; + } + + .clear-button:active { + background: ${qr}; + } + + :host([appearance='filled']) .clear-button:hover { + background: ${Il}; + } + + :host([appearance='filled']) .clear-button:active { + background: ${Al}; + } + + .input-wrapper { + display: flex; + position: relative; + width: 100%; + } + + .start, + .end { + display: flex; + margin: 1px; + fill: currentcolor; + } + + ::slotted([slot='end']) { + height: 100%; + } + + .end { + margin-inline-end: 1px; + height: calc(100% - 2px); + } + + ::slotted(svg) { + /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ + width: 16px; + height: 16px; + margin-inline-end: 11px; + margin-inline-start: 11px; + margin-top: auto; + margin-bottom: auto; + } + + .clear-button__hidden { + opacity: 0; + } + + :host(:hover:not([disabled], [readOnly])) .clear-button, + :host(:active:not([disabled], [readOnly])) .clear-button, + :host(:focus-within:not([disabled], [readOnly])) .clear-button { + opacity: 1; + } + + :host(:hover:not([disabled], [readOnly])) .clear-button__hidden, + :host(:active:not([disabled], [readOnly])) .clear-button__hidden, + :host(:focus-within:not([disabled], [readOnly])) .clear-button__hidden { + opacity: 0; + } +`;class Gl extends be.Search{constructor(){super(...arguments);this.appearance="outline"}}si([Za.attr],Gl.prototype,"appearance",void 0);const El=Gl.compose({baseName:"search",baseClass:be.Search,template:be.searchTemplate,styles:Ml,shadowOptions:{delegatesFocus:true}});class _l extends be.Select{constructor(){super(...arguments);this.listboxScrollWidth=""}autoWidthChanged(e,t){if(t){this.setAutoWidth()}else{this.style.removeProperty("width")}}setAutoWidth(){if(!this.autoWidth||!this.isConnected){return}let e=this.listbox.getBoundingClientRect().width;if(e===0&&this.listbox.hidden){Object.assign(this.listbox.style,{visibility:"hidden"});this.listbox.removeAttribute("hidden");e=this.listbox.getBoundingClientRect().width;this.listbox.setAttribute("hidden","");this.listbox.style.removeProperty("visibility")}if(e>0){Object.assign(this.style,{width:`${e}px`})}}connectedCallback(){super.connectedCallback();this.setAutoWidth();if(this.listbox){sr.setValueFor(this.listbox,Qo)}}slottedOptionsChanged(e,t){super.slottedOptionsChanged(e,t);this.setAutoWidth()}get listboxMaxHeight(){return Math.floor(this.maxHeight/ba.getValueFor(this)).toString()}listboxScrollWidthChanged(){this.updateComputedStylesheet()}get selectSize(){var e;return`${(e=this.size)!==null&&e!==void 0?e:this.multiple?4:0}`}multipleChanged(e,t){super.multipleChanged(e,t);this.updateComputedStylesheet()}maxHeightChanged(e,t){if(this.collapsible){this.updateComputedStylesheet()}}setPositioning(){super.setPositioning();this.updateComputedStylesheet()}sizeChanged(e,t){super.sizeChanged(e,t);this.updateComputedStylesheet();if(this.collapsible){requestAnimationFrame((()=>{this.listbox.style.setProperty("display","flex");this.listbox.style.setProperty("overflow","visible");this.listbox.style.setProperty("visibility","hidden");this.listbox.style.setProperty("width","auto");this.listbox.hidden=false;this.listboxScrollWidth=`${this.listbox.scrollWidth}`;this.listbox.hidden=true;this.listbox.style.removeProperty("display");this.listbox.style.removeProperty("overflow");this.listbox.style.removeProperty("visibility");this.listbox.style.removeProperty("width")}));return}this.listboxScrollWidth=""}updateComputedStylesheet(){if(this.computedStylesheet){this.$fastController.removeStyles(this.computedStylesheet)}this.computedStylesheet=(0,Za.css)` + :host { + --listbox-max-height: ${this.listboxMaxHeight}; + --listbox-scroll-width: ${this.listboxScrollWidth}; + --size: ${this.selectSize}; + } + `;this.$fastController.addStyles(this.computedStylesheet)}}si([(0,Za.attr)({attribute:"autowidth",mode:"boolean"})],_l.prototype,"autoWidth",void 0);si([(0,Za.attr)({attribute:"minimal",mode:"boolean"})],_l.prototype,"minimal",void 0);si([Za.attr],_l.prototype,"scale",void 0);si([Za.observable],_l.prototype,"listboxScrollWidth",void 0);const ql=_l.compose({baseName:"select",baseClass:be.Select,template:be.selectTemplate,styles:Tn,indicator:`\n \n \n \n `});const Wl=(e,t)=>(0,Za.css)` + ${(0,be.display)("block")} :host { + --skeleton-fill-default: #e1dfdd; + overflow: hidden; + width: 100%; + position: relative; + background-color: var(--skeleton-fill, var(--skeleton-fill-default)); + --skeleton-animation-gradient-default: linear-gradient( + 270deg, + var(--skeleton-fill, var(--skeleton-fill-default)) 0%, + #f3f2f1 51.13%, + var(--skeleton-fill, var(--skeleton-fill-default)) 100% + ); + --skeleton-animation-timing-default: ease-in-out; + } + + :host([shape='rect']) { + border-radius: calc(${Et} * 1px); + } + + :host([shape='circle']) { + border-radius: 100%; + overflow: hidden; + } + + object { + position: absolute; + width: 100%; + height: auto; + z-index: 2; + } + + object img { + width: 100%; + height: auto; + } + + ${(0,be.display)("block")} span.shimmer { + position: absolute; + width: 100%; + height: 100%; + background-image: var( + --skeleton-animation-gradient, + var(--skeleton-animation-gradient-default) + ); + background-size: 0px 0px / 90% 100%; + background-repeat: no-repeat; + background-color: var(--skeleton-animation-fill, ${Lr}); + animation: shimmer 2s infinite; + animation-timing-function: var( + --skeleton-animation-timing, + var(--skeleton-timing-default) + ); + animation-direction: normal; + z-index: 1; + } + + ::slotted(svg) { + z-index: 2; + } + + ::slotted(.pattern) { + width: 100%; + height: 100%; + } + + @keyframes shimmer { + 0% { + transform: translateX(-100%); + } + 100% { + transform: translateX(100%); + } + } + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host { + forced-color-adjust: none; + background-color: ${Ja.ButtonFace}; + box-shadow: 0 0 0 1px ${Ja.ButtonText}; + } + + ${(0,be.display)("block")} span.shimmer { + display: none; + } + `));class Ul extends be.Skeleton{}const Xl=Ul.compose({baseName:"skeleton",baseClass:be.Skeleton,template:be.skeletonTemplate,styles:Wl});const Zl=(0,Za.css)` + .track-start { + left: 0; + } +`;const Yl=(0,Za.css)` + .track-start { + right: 0; + } +`;const Jl=(e,t)=>(0,Za.css)` + :host([hidden]) { + display: none; + } + + ${(0,be.display)("inline-grid")} :host { + --thumb-size: calc(${Ka} * 0.5 - ${qt}); + --thumb-translate: calc( + var(--thumb-size) * -0.5 + var(--track-width) / 2 + ); + --track-overhang: calc((${qt} / 2) * -1); + --track-width: ${qt}; + --jp-slider-height: calc(var(--thumb-size) * 10); + align-items: center; + width: 100%; + margin: calc(${qt} * 1px) 0; + user-select: none; + box-sizing: border-box; + border-radius: calc(${Et} * 1px); + outline: none; + cursor: pointer; + } + :host([orientation='horizontal']) .positioning-region { + position: relative; + margin: 0 8px; + display: grid; + grid-template-rows: calc(var(--thumb-size) * 1px) 1fr; + } + :host([orientation='vertical']) .positioning-region { + position: relative; + margin: 0 8px; + display: grid; + height: 100%; + grid-template-columns: calc(var(--thumb-size) * 1px) 1fr; + } + + :host(:${be.focusVisible}) .thumb-cursor { + box-shadow: + 0 0 0 2px ${sr}, + 0 0 0 calc((2 + ${Yt}) * 1px) ${gr}; + } + + :host([aria-invalid='true']:${be.focusVisible}) .thumb-cursor { + box-shadow: + 0 0 0 2px ${sr}, + 0 0 0 calc((2 + ${Yt}) * 1px) ${wa}; + } + + .thumb-container { + position: absolute; + height: calc(var(--thumb-size) * 1px); + width: calc(var(--thumb-size) * 1px); + transition: all 0.2s ease; + color: ${la}; + fill: currentcolor; + } + .thumb-cursor { + border: none; + width: calc(var(--thumb-size) * 1px); + height: calc(var(--thumb-size) * 1px); + background: ${la}; + border-radius: calc(${Et} * 1px); + } + .thumb-cursor:hover { + background: ${la}; + border-color: ${da}; + } + .thumb-cursor:active { + background: ${la}; + } + .track-start { + background: ${Vr}; + position: absolute; + height: 100%; + left: 0; + border-radius: calc(${Et} * 1px); + } + :host([aria-invalid='true']) .track-start { + background-color: ${$a}; + } + :host([orientation='horizontal']) .thumb-container { + transform: translateX(calc(var(--thumb-size) * 0.5px)) + translateY(calc(var(--thumb-translate) * 1px)); + } + :host([orientation='vertical']) .thumb-container { + transform: translateX(calc(var(--thumb-translate) * 1px)) + translateY(calc(var(--thumb-size) * 0.5px)); + } + :host([orientation='horizontal']) { + min-width: calc(var(--thumb-size) * 1px); + } + :host([orientation='horizontal']) .track { + right: calc(var(--track-overhang) * 1px); + left: calc(var(--track-overhang) * 1px); + align-self: start; + height: calc(var(--track-width) * 1px); + } + :host([orientation='vertical']) .track { + top: calc(var(--track-overhang) * 1px); + bottom: calc(var(--track-overhang) * 1px); + width: calc(var(--track-width) * 1px); + height: 100%; + } + .track { + background: ${ca}; + position: absolute; + border-radius: calc(${Et} * 1px); + } + :host([orientation='vertical']) { + height: calc(var(--fast-slider-height) * 1px); + min-height: calc(var(--thumb-size) * 1px); + min-width: calc(${qt} * 20px); + } + :host([orientation='vertical']) .track-start { + height: auto; + width: 100%; + top: 0; + } + :host([disabled]), + :host([readonly]) { + cursor: ${be.disabledCursor}; + } + :host([disabled]) { + opacity: ${Xt}; + } + `.withBehaviors(new Zi(Zl,Yl),(0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + .thumb-cursor { + forced-color-adjust: none; + border-color: ${Ja.FieldText}; + background: ${Ja.FieldText}; + } + .thumb-cursor:hover, + .thumb-cursor:active { + background: ${Ja.Highlight}; + } + .track { + forced-color-adjust: none; + background: ${Ja.FieldText}; + } + :host(:${be.focusVisible}) .thumb-cursor { + border-color: ${Ja.Highlight}; + } + :host([disabled]) { + opacity: 1; + } + :host([disabled]) .track, + :host([disabled]) .thumb-cursor { + forced-color-adjust: none; + background: ${Ja.GrayText}; + } + + :host(:${be.focusVisible}) .thumb-cursor { + background: ${Ja.Highlight}; + border-color: ${Ja.Highlight}; + box-shadow: + 0 0 0 2px ${Ja.Field}, + 0 0 0 4px ${Ja.FieldText}; + } + `));class Kl extends be.Slider{}const Ql=Kl.compose({baseName:"slider",baseClass:be.Slider,template:be.sliderTemplate,styles:Jl,thumb:`\n
\n `});var es=o(67002);const ts=(0,Za.css)` + :host { + align-self: start; + grid-row: 2; + margin-top: -2px; + height: calc((${Ka} / 2 + ${qt}) * 1px); + width: auto; + } + .container { + grid-template-rows: auto auto; + grid-template-columns: 0; + } + .label { + margin: 2px 0; + } +`;const os=(0,Za.css)` + :host { + justify-self: start; + grid-column: 2; + margin-left: 2px; + height: auto; + width: calc((${Ka} / 2 + ${qt}) * 1px); + } + .container { + grid-template-columns: auto auto; + grid-template-rows: 0; + min-width: calc(var(--thumb-size) * 1px); + height: calc(var(--thumb-size) * 1px); + } + .mark { + transform: rotate(90deg); + align-self: center; + } + .label { + margin-left: calc((${qt} / 2) * 3px); + align-self: center; + } +`;const rs=(e,t)=>(0,Za.css)` + ${(0,be.display)("block")} :host { + font-family: ${It}; + color: ${la}; + fill: currentcolor; + } + .root { + position: absolute; + display: grid; + } + .container { + display: grid; + justify-self: center; + } + .label { + justify-self: center; + align-self: center; + white-space: nowrap; + max-width: 30px; + } + .mark { + width: calc((${qt} / 4) * 1px); + height: calc(${Ka} * 0.25 * 1px); + background: ${ca}; + justify-self: center; + } + :host(.disabled) { + opacity: ${Xt}; + } + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + .mark { + forced-color-adjust: none; + background: ${Ja.FieldText}; + } + :host(.disabled) { + forced-color-adjust: none; + opacity: 1; + } + :host(.disabled) .label { + color: ${Ja.GrayText}; + } + :host(.disabled) .mark { + background: ${Ja.GrayText}; + } + `));class as extends be.SliderLabel{sliderOrientationChanged(){if(this.sliderOrientation===es.t.horizontal){this.$fastController.addStyles(ts);this.$fastController.removeStyles(os)}else{this.$fastController.addStyles(os);this.$fastController.removeStyles(ts)}}}const is=as.compose({baseName:"slider-label",baseClass:be.SliderLabel,template:be.sliderLabelTemplate,styles:rs});const ns=(e,t)=>(0,Za.css)` + :host([hidden]) { + display: none; + } + + ${(0,be.display)("inline-flex")} :host { + align-items: center; + outline: none; + font-family: ${It}; + margin: calc(${qt} * 1px) 0; + ${""} user-select: none; + } + + :host([disabled]) { + opacity: ${Xt}; + } + + :host([disabled]) .label, + :host([readonly]) .label, + :host([readonly]) .switch, + :host([disabled]) .switch { + cursor: ${be.disabledCursor}; + } + + .switch { + position: relative; + outline: none; + box-sizing: border-box; + width: calc(${Ka} * 1px); + height: calc((${Ka} / 2 + ${qt}) * 1px); + background: ${Rr}; + border-radius: calc(${Et} * 1px); + border: calc(${Zt} * 1px) solid ${ca}; + } + + :host([aria-invalid='true']) .switch { + border-color: ${$a}; + } + + .switch:hover { + background: ${Ir}; + border-color: ${da}; + cursor: pointer; + } + + :host([disabled]) .switch:hover, + :host([readonly]) .switch:hover { + background: ${Ir}; + border-color: ${da}; + cursor: ${be.disabledCursor}; + } + + :host([aria-invalid='true'][disabled]) .switch:hover, + :host([aria-invalid='true'][readonly]) .switch:hover { + border-color: ${xa}; + } + + :host(:not([disabled])) .switch:active { + background: ${Ar}; + border-color: ${ua}; + } + + :host([aria-invalid='true']:not([disabled])) .switch:active { + border-color: ${ya}; + } + + :host(:${be.focusVisible}) .switch { + outline-offset: 2px; + outline: solid calc(${Yt} * 1px) ${gr}; + } + + :host([aria-invalid='true']:${be.focusVisible}) .switch { + outline-color: ${wa}; + } + + .checked-indicator { + position: absolute; + top: 5px; + bottom: 5px; + background: ${la}; + border-radius: calc(${Et} * 1px); + transition: all 0.2s ease-in-out; + } + + .status-message { + color: ${la}; + cursor: pointer; + font-size: ${Jt}; + line-height: ${Kt}; + } + + :host([disabled]) .status-message, + :host([readonly]) .status-message { + cursor: ${be.disabledCursor}; + } + + .label { + color: ${la}; + margin-inline-end: calc(${qt} * 2px + 2px); + font-size: ${Jt}; + line-height: ${Kt}; + cursor: pointer; + } + + .label__hidden { + display: none; + visibility: hidden; + } + + ::slotted([slot='checked-message']), + ::slotted([slot='unchecked-message']) { + margin-inline-start: calc(${qt} * 2px + 2px); + } + + :host([aria-checked='true']) .checked-indicator { + background: ${mr}; + } + + :host([aria-checked='true']) .switch { + background: ${ur}; + border-color: ${ur}; + } + + :host([aria-checked='true']:not([disabled])) .switch:hover { + background: ${hr}; + border-color: ${hr}; + } + + :host([aria-invalid='true'][aria-checked='true']) .switch { + background-color: ${$a}; + border-color: ${$a}; + } + + :host([aria-invalid='true'][aria-checked='true']:not([disabled])) + .switch:hover { + background-color: ${xa}; + border-color: ${xa}; + } + + :host([aria-checked='true']:not([disabled])) + .switch:hover + .checked-indicator { + background: ${vr}; + } + + :host([aria-checked='true']:not([disabled])) .switch:active { + background: ${pr}; + border-color: ${pr}; + } + + :host([aria-invalid='true'][aria-checked='true']:not([disabled])) + .switch:active { + background-color: ${ya}; + border-color: ${ya}; + } + + :host([aria-checked='true']:not([disabled])) + .switch:active + .checked-indicator { + background: ${$r}; + } + + :host([aria-checked="true"]:${be.focusVisible}:not([disabled])) .switch { + outline: solid calc(${Yt} * 1px) ${gr}; + } + + :host([aria-invalid='true'][aria-checked="true"]:${be.focusVisible}:not([disabled])) .switch { + outline-color: ${wa}; + } + + .unchecked-message { + display: block; + } + + .checked-message { + display: none; + } + + :host([aria-checked='true']) .unchecked-message { + display: none; + } + + :host([aria-checked='true']) .checked-message { + display: block; + } + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + .checked-indicator, + :host(:not([disabled])) .switch:active .checked-indicator { + forced-color-adjust: none; + background: ${Ja.FieldText}; + } + .switch { + forced-color-adjust: none; + background: ${Ja.Field}; + border-color: ${Ja.FieldText}; + } + :host([aria-invalid='true']) .switch { + border-style: dashed; + } + :host(:not([disabled])) .switch:hover { + background: ${Ja.HighlightText}; + border-color: ${Ja.Highlight}; + } + :host([aria-checked='true']) .switch { + background: ${Ja.Highlight}; + border-color: ${Ja.Highlight}; + } + :host([aria-checked='true']:not([disabled])) .switch:hover, + :host(:not([disabled])) .switch:active { + background: ${Ja.HighlightText}; + border-color: ${Ja.Highlight}; + } + :host([aria-checked='true']) .checked-indicator { + background: ${Ja.HighlightText}; + } + :host([aria-checked='true']:not([disabled])) + .switch:hover + .checked-indicator { + background: ${Ja.Highlight}; + } + :host([disabled]) { + opacity: 1; + } + :host(:${be.focusVisible}) .switch { + border-color: ${Ja.Highlight}; + outline-offset: 2px; + outline: solid calc(${Yt} * 1px) ${Ja.FieldText}; + } + :host([aria-checked="true"]:${be.focusVisible}:not([disabled])) .switch { + outline: solid calc(${Yt} * 1px) ${Ja.FieldText}; + } + :host([disabled]) .checked-indicator { + background: ${Ja.GrayText}; + } + :host([disabled]) .switch { + background: ${Ja.Field}; + border-color: ${Ja.GrayText}; + } + `),new Zi((0,Za.css)` + .checked-indicator { + left: 5px; + right: calc(((${Ka} / 2) + 1) * 1px); + } + + :host([aria-checked='true']) .checked-indicator { + left: calc(((${Ka} / 2) + 1) * 1px); + right: 5px; + } + `,(0,Za.css)` + .checked-indicator { + right: 5px; + left: calc(((${Ka} / 2) + 1) * 1px); + } + + :host([aria-checked='true']) .checked-indicator { + right: calc(((${Ka} / 2) + 1) * 1px); + left: 5px; + } + `));class ls extends be.Switch{}const ss=ls.compose({baseName:"switch",baseClass:be.Switch,template:be.switchTemplate,styles:ns,switch:`\n \n `});const cs=(e,t)=>(0,Za.css)` + ${(0,be.display)("block")} :host { + box-sizing: border-box; + font-size: ${Jt}; + line-height: ${Kt}; + padding: 0 calc((6 + (${qt} * 2 * ${_t})) * 1px); + } +`;class ds extends be.TabPanel{}const us=ds.compose({baseName:"tab-panel",baseClass:be.TabPanel,template:be.tabPanelTemplate,styles:cs});const hs=(e,t)=>(0,Za.css)` + ${(0,be.display)("inline-flex")} :host { + box-sizing: border-box; + font-family: ${It}; + font-size: ${Jt}; + line-height: ${Kt}; + height: calc(${Ka} * 1px); + padding: calc(${qt} * 5px) calc(${qt} * 4px); + color: ${ia}; + fill: currentcolor; + border-radius: 0 0 calc(${Et} * 1px) + calc(${Et} * 1px); + border: calc(${Zt} * 1px) solid transparent; + align-items: center; + justify-content: center; + grid-row: 2; + cursor: pointer; + } + + :host(:hover) { + color: ${la}; + fill: currentcolor; + } + + :host(:active) { + color: ${la}; + fill: currentcolor; + } + + :host([disabled]) { + cursor: ${be.disabledCursor}; + opacity: ${Xt}; + } + + :host([disabled]:hover) { + color: ${ia}; + background: ${Er}; + } + + :host([aria-selected='true']) { + background: ${Lr}; + color: ${la}; + fill: currentcolor; + } + + :host([aria-selected='true']:hover) { + background: ${Or}; + color: ${la}; + fill: currentcolor; + } + + :host([aria-selected='true']:active) { + background: ${Hr}; + color: ${la}; + fill: currentcolor; + } + + :host(:${be.focusVisible}) { + outline: none; + border-color: ${gr}; + box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px) + ${gr}; + } + + :host(:focus) { + outline: none; + } + + :host(.vertical) { + justify-content: end; + grid-column: 2; + border-bottom-left-radius: 0; + border-top-right-radius: calc(${Et} * 1px); + } + + :host(.vertical[aria-selected='true']) { + z-index: 2; + } + + :host(.vertical:hover) { + color: ${la}; + } + + :host(.vertical:active) { + color: ${la}; + } + + :host(.vertical:hover[aria-selected='true']) { + } + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host { + forced-color-adjust: none; + border-color: transparent; + color: ${Ja.ButtonText}; + fill: currentcolor; + } + :host(:hover), + :host(.vertical:hover), + :host([aria-selected='true']:hover) { + background: ${Ja.Highlight}; + color: ${Ja.HighlightText}; + fill: currentcolor; + } + :host([aria-selected='true']) { + background: ${Ja.HighlightText}; + color: ${Ja.Highlight}; + fill: currentcolor; + } + :host(:${be.focusVisible}) { + border-color: ${Ja.ButtonText}; + box-shadow: none; + } + :host([disabled]), + :host([disabled]:hover) { + opacity: 1; + color: ${Ja.GrayText}; + background: ${Ja.ButtonFace}; + } + `));class ps extends be.Tab{}const gs=ps.compose({baseName:"tab",baseClass:be.Tab,template:be.tabTemplate,styles:hs});const bs=(e,t)=>(0,Za.css)` + ${(0,be.display)("grid")} :host { + box-sizing: border-box; + font-family: ${It}; + font-size: ${Jt}; + line-height: ${Kt}; + color: ${la}; + grid-template-columns: auto 1fr auto; + grid-template-rows: auto 1fr; + } + + .tablist { + display: grid; + grid-template-rows: auto auto; + grid-template-columns: auto; + position: relative; + width: max-content; + align-self: end; + padding: calc(${qt} * 4px) calc(${qt} * 4px) 0; + box-sizing: border-box; + } + + .start, + .end { + align-self: center; + } + + .activeIndicator { + grid-row: 1; + grid-column: 1; + width: 100%; + height: 4px; + justify-self: center; + background: ${ur}; + margin-top: 0; + border-radius: calc(${Et} * 1px) + calc(${Et} * 1px) 0 0; + } + + .activeIndicatorTransition { + transition: transform 0.01s ease-in-out; + } + + .tabpanel { + grid-row: 2; + grid-column-start: 1; + grid-column-end: 4; + position: relative; + } + + :host([orientation='vertical']) { + grid-template-rows: auto 1fr auto; + grid-template-columns: auto 1fr; + } + + :host([orientation='vertical']) .tablist { + grid-row-start: 2; + grid-row-end: 2; + display: grid; + grid-template-rows: auto; + grid-template-columns: auto 1fr; + position: relative; + width: max-content; + justify-self: end; + align-self: flex-start; + width: 100%; + padding: 0 calc(${qt} * 4px) + calc((${Ka} - ${qt}) * 1px) 0; + } + + :host([orientation='vertical']) .tabpanel { + grid-column: 2; + grid-row-start: 1; + grid-row-end: 4; + } + + :host([orientation='vertical']) .end { + grid-row: 3; + } + + :host([orientation='vertical']) .activeIndicator { + grid-column: 1; + grid-row: 1; + width: 4px; + height: 100%; + margin-inline-end: 0px; + align-self: center; + background: ${ur}; + border-radius: calc(${Et} * 1px) 0 0 + calc(${Et} * 1px); + } + + :host([orientation='vertical']) .activeIndicatorTransition { + transition: transform 0.01s ease-in-out; + } + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + .activeIndicator, + :host([orientation='vertical']) .activeIndicator { + forced-color-adjust: none; + background: ${Ja.Highlight}; + } + `));class fs extends be.Tabs{}const ms=fs.compose({baseName:"tabs",baseClass:be.Tabs,template:be.tabsTemplate,styles:bs});const vs=(e,t)=>(0,Za.css)` + ${(0,be.display)("inline-block")} :host { + font-family: ${It}; + outline: none; + user-select: none; + } + + .control { + box-sizing: border-box; + position: relative; + color: ${la}; + background: ${Rr}; + border-radius: calc(${Et} * 1px); + border: calc(${Zt} * 1px) solid ${Xr}; + height: calc(${Ka} * 2px); + font: inherit; + font-size: ${Jt}; + line-height: ${Kt}; + padding: calc(${qt} * 2px + 1px); + width: 100%; + resize: none; + } + + :host([aria-invalid='true']) .control { + border-color: ${$a}; + } + + .control:hover:enabled { + background: ${Ir}; + border-color: ${Zr}; + } + + :host([aria-invalid='true']) .control:hover:enabled { + border-color: ${xa}; + } + + .control:active:enabled { + background: ${Ar}; + border-color: ${Yr}; + } + + :host([aria-invalid='true']) .control:active:enabled { + border-color: ${ya}; + } + + .control:hover, + .control:${be.focusVisible}, + .control:disabled, + .control:active { + outline: none; + } + + :host(:focus-within) .control { + border-color: ${gr}; + box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px) + ${gr}; + } + + :host([aria-invalid='true']:focus-within) .control { + border-color: ${wa}; + box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px) + ${wa}; + } + + :host([appearance='filled']) .control { + background: ${Lr}; + } + + :host([appearance='filled']:hover:not([disabled])) .control { + background: ${Or}; + } + + :host([resize='both']) .control { + resize: both; + } + + :host([resize='horizontal']) .control { + resize: horizontal; + } + + :host([resize='vertical']) .control { + resize: vertical; + } + + .label { + display: block; + color: ${la}; + cursor: pointer; + font-size: ${Jt}; + line-height: ${Kt}; + margin-bottom: 4px; + } + + .label__hidden { + display: none; + visibility: hidden; + } + + :host([disabled]) .label, + :host([readonly]) .label, + :host([readonly]) .control, + :host([disabled]) .control { + cursor: ${be.disabledCursor}; + } + :host([disabled]) { + opacity: ${Xt}; + } + :host([disabled]) .control { + border-color: ${ca}; + } + + :host([cols]) { + width: initial; + } + + :host([rows]) .control { + height: initial; + } + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host([disabled]) { + opacity: 1; + } + + :host([aria-invalid='true']) .control { + border-style: dashed; + } + `));class $s extends be.TextArea{constructor(){super(...arguments);this.appearance="outline"}}si([Za.attr],$s.prototype,"appearance",void 0);const xs=$s.compose({baseName:"text-area",baseClass:be.TextArea,template:be.textAreaTemplate,styles:vs,shadowOptions:{delegatesFocus:true}});const ys=(e,t)=>(0,Za.css)` + ${Wn} + + .start, + .end { + display: flex; + } +`;class ws extends be.TextField{constructor(){super(...arguments);this.appearance="outline"}}si([Za.attr],ws.prototype,"appearance",void 0);const ks=ws.compose({baseName:"text-field",baseClass:be.TextField,template:be.textFieldTemplate,styles:ys,shadowOptions:{delegatesFocus:true}});var Fs=o(83021);var Cs=o(49054);const Ss=(e,t)=>(0,Za.css)` + ${(0,be.display)("inline-flex")} :host { + --toolbar-item-gap: calc( + (var(--design-unit) + calc(var(--density) + 2)) * 1px + ); + background-color: ${sr}; + border-radius: calc(${Et} * 1px); + fill: currentcolor; + padding: var(--toolbar-item-gap); + } + + :host(${be.focusVisible}) { + outline: calc(${Zt} * 1px) solid ${gr}; + } + + .positioning-region { + align-items: flex-start; + display: inline-flex; + flex-flow: row wrap; + justify-content: flex-start; + width: 100%; + height: 100%; + } + + :host([orientation='vertical']) .positioning-region { + flex-direction: column; + } + + ::slotted(:not([slot])) { + flex: 0 0 auto; + margin: 0 var(--toolbar-item-gap); + } + + :host([orientation='vertical']) ::slotted(:not([slot])) { + margin: var(--toolbar-item-gap) 0; + } + + .start, + .end { + display: flex; + margin: auto; + margin-inline: 0; + } + + ::slotted(svg) { + /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ + width: 16px; + height: 16px; + } + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host(:${be.focusVisible}) { + box-shadow: 0 0 0 calc(${Yt} * 1px) + ${Ja.Highlight}; + color: ${Ja.ButtonText}; + forced-color-adjust: none; + } + `));const Ts=Object.freeze({[An.Is.ArrowUp]:{[es.t.vertical]:-1},[An.Is.ArrowDown]:{[es.t.vertical]:1},[An.Is.ArrowLeft]:{[es.t.horizontal]:{[fe.O.ltr]:-1,[fe.O.rtl]:1}},[An.Is.ArrowRight]:{[es.t.horizontal]:{[fe.O.ltr]:1,[fe.O.rtl]:-1}}});class Vs extends be.FoundationElement{constructor(){super(...arguments);this._activeIndex=0;this.direction=fe.O.ltr;this.orientation=es.t.horizontal}get activeIndex(){Za.Observable.track(this,"activeIndex");return this._activeIndex}set activeIndex(e){if(this.$fastController.isConnected){this._activeIndex=(0,Fs.AB)(0,this.focusableElements.length-1,e);Za.Observable.notify(this,"activeIndex")}}slottedItemsChanged(){if(this.$fastController.isConnected){this.reduceFocusableElements()}}mouseDownHandler(e){var t;const o=(t=this.focusableElements)===null||t===void 0?void 0:t.findIndex((t=>t.contains(e.target)));if(o>-1&&this.activeIndex!==o){this.setFocusedElement(o)}return true}childItemsChanged(e,t){if(this.$fastController.isConnected){this.reduceFocusableElements()}}connectedCallback(){super.connectedCallback();this.direction=(0,be.getDirection)(this)}focusinHandler(e){const t=e.relatedTarget;if(!t||this.contains(t)){return}this.setFocusedElement()}getDirectionalIncrementer(e){var t,o,r,a,i;return(i=(r=(o=(t=Ts[e])===null||t===void 0?void 0:t[this.orientation])===null||o===void 0?void 0:o[this.direction])!==null&&r!==void 0?r:(a=Ts[e])===null||a===void 0?void 0:a[this.orientation])!==null&&i!==void 0?i:0}keydownHandler(e){const t=e.key;if(!(t in An.Is)||e.defaultPrevented||e.shiftKey){return true}const o=this.getDirectionalIncrementer(t);if(!o){return!e.target.closest("[role=radiogroup]")}const r=this.activeIndex+o;if(this.focusableElements[r]){e.preventDefault()}this.setFocusedElement(r);return true}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){var e;const t=(e=this.focusableElements)===null||e===void 0?void 0:e[this.activeIndex];this.focusableElements=this.allSlottedItems.reduce(Vs.reduceFocusableItems,[]);const o=this.focusableElements.indexOf(t);this.activeIndex=Math.max(0,o);this.setFocusableElements()}setFocusedElement(e=this.activeIndex){this.activeIndex=e;this.setFocusableElements();if(this.focusableElements[this.activeIndex]&&this.contains(document.activeElement)){this.focusableElements[this.activeIndex].focus()}}static reduceFocusableItems(e,t){var o,r,a,i;const n=t.getAttribute("role")==="radio";const l=(r=(o=t.$fastController)===null||o===void 0?void 0:o.definition.shadowOptions)===null||r===void 0?void 0:r.delegatesFocus;const s=Array.from((i=(a=t.shadowRoot)===null||a===void 0?void 0:a.querySelectorAll("*"))!==null&&i!==void 0?i:[]).some((e=>(0,Cs.tp)(e)));if(!t.hasAttribute("disabled")&&!t.hasAttribute("hidden")&&((0,Cs.tp)(t)||n||l||s)){e.push(t);return e}if(t.childElementCount){return e.concat(Array.from(t.children).reduce(Vs.reduceFocusableItems,[]))}return e}setFocusableElements(){if(this.$fastController.isConnected&&this.focusableElements.length>0){this.focusableElements.forEach(((e,t)=>{e.tabIndex=this.activeIndex===t?0:-1}))}}}si([Za.observable],Vs.prototype,"direction",void 0);si([Za.attr],Vs.prototype,"orientation",void 0);si([Za.observable],Vs.prototype,"slottedItems",void 0);si([Za.observable],Vs.prototype,"slottedLabel",void 0);si([Za.observable],Vs.prototype,"childItems",void 0);class Ds{}si([(0,Za.attr)({attribute:"aria-labelledby"})],Ds.prototype,"ariaLabelledby",void 0);si([(0,Za.attr)({attribute:"aria-label"})],Ds.prototype,"ariaLabel",void 0);(0,be.applyMixins)(Ds,be.ARIAGlobalStatesAndProperties);(0,be.applyMixins)(Vs,be.StartEnd,Ds);class js extends Vs{connectedCallback(){super.connectedCallback();const e=(0,be.composedParent)(this);if(e){sr.setValueFor(this,(t=>Kr.getValueFor(t).evaluate(t,sr.getValueFor(e))))}}}const zs=js.compose({baseName:"toolbar",baseClass:Vs,template:be.toolbarTemplate,styles:Ss,shadowOptions:{delegatesFocus:true}});const Bs=(e,t)=>{const o=e.tagFor(be.AnchoredRegion);return(0,Za.css)` + :host { + contain: size; + overflow: visible; + height: 0; + width: 0; + } + + .tooltip { + box-sizing: border-box; + border-radius: calc(${Et} * 1px); + border: calc(${Zt} * 1px) solid ${ta}; + box-shadow: 0 0 0 1px ${ta} inset; + background: ${Lr}; + color: ${la}; + padding: 4px; + height: fit-content; + width: fit-content; + font-family: ${It}; + font-size: ${Jt}; + line-height: ${Kt}; + white-space: nowrap; + /* TODO: a mechanism to manage z-index across components + https://github.com/microsoft/fast/issues/3813 */ + z-index: 10000; + } + + ${o} { + display: flex; + justify-content: center; + align-items: center; + overflow: visible; + flex-direction: row; + } + + ${o}.right, + ${o}.left { + flex-direction: column; + } + + ${o}.top .tooltip { + margin-bottom: 4px; + } + + ${o}.bottom .tooltip { + margin-top: 4px; + } + + ${o}.left .tooltip { + margin-right: 4px; + } + + ${o}.right .tooltip { + margin-left: 4px; + } + + ${o}.top.left .tooltip, + ${o}.top.right .tooltip { + margin-bottom: 0px; + } + + ${o}.bottom.left .tooltip, + ${o}.bottom.right .tooltip { + margin-top: 0px; + } + + ${o}.top.left .tooltip, + ${o}.bottom.left .tooltip { + margin-right: 0px; + } + + ${o}.top.right .tooltip, + ${o}.bottom.right .tooltip { + margin-left: 0px; + } + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host([disabled]) { + opacity: 1; + } + `))};class Ls extends be.Tooltip{}const Os=Ls.compose({baseName:"tooltip",baseClass:be.Tooltip,template:be.tooltipTemplate,styles:Bs});const Hs=(0,Za.cssPartial)`(((${At} + ${_t}) * 0.5 + 2) * ${qt})`;const Ns=(0,Za.css)` + .expand-collapse-glyph { + transform: rotate(0deg); + } + :host(.nested) .expand-collapse-button { + left: var( + --expand-collapse-button-nested-width, + calc( + ( + ${Hs} + + ((${At} + ${_t}) * 1.25) + ) * -1px + ) + ); + } + :host([selected])::after { + left: calc(${Yt} * 1px); + } + :host([expanded]) > .positioning-region .expand-collapse-glyph { + transform: rotate(90deg); + } +`;const Ps=(0,Za.css)` + .expand-collapse-glyph { + transform: rotate(180deg); + } + :host(.nested) .expand-collapse-button { + right: var( + --expand-collapse-button-nested-width, + calc( + ( + ${Hs} + + ((${At} + ${_t}) * 1.25) + ) * -1px + ) + ); + } + :host([selected])::after { + right: calc(${Yt} * 1px); + } + :host([expanded]) > .positioning-region .expand-collapse-glyph { + transform: rotate(90deg); + } +`;const Rs=be.DesignToken.create("tree-item-expand-collapse-hover").withDefault((e=>{const t=Gr.getValueFor(e);return t.evaluate(e,t.evaluate(e).hover).hover}));const Is=be.DesignToken.create("tree-item-expand-collapse-selected-hover").withDefault((e=>{const t=Br.getValueFor(e);const o=Gr.getValueFor(e);return o.evaluate(e,t.evaluate(e).rest).hover}));const As=(e,t)=>(0,Za.css)` + /** + * This animation exists because when tree item children are conditionally loaded + * there is a visual bug where the DOM exists but styles have not yet been applied (essentially FOUC). + * This subtle animation provides a ever so slight timing adjustment for loading that solves the issue. + */ + @keyframes treeItemLoading { + 0% { + opacity: 0; + } + 100% { + opacity: 1; + } + } + + ${(0,be.display)("block")} :host { + contain: content; + position: relative; + outline: none; + color: ${la}; + background: ${Er}; + cursor: pointer; + font-family: ${It}; + --tree-item-nested-width: 0; + } + + :host(:focus) > .positioning-region { + outline: none; + } + + :host(:focus) .content-region { + outline: none; + } + + :host(:${be.focusVisible}) .positioning-region { + border-color: ${gr}; + box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px) + ${gr} inset; + color: ${la}; + } + + .positioning-region { + display: flex; + position: relative; + box-sizing: border-box; + background: ${Er}; + border: transparent calc(${Zt} * 1px) solid; + border-radius: calc(${Et} * 1px); + height: calc((${Ka} + 1) * 1px); + } + + .positioning-region::before { + content: ''; + display: block; + width: var(--tree-item-nested-width); + flex-shrink: 0; + } + + :host(:not([disabled])) .positioning-region:hover { + background: ${_r}; + } + + :host(:not([disabled])) .positioning-region:active { + background: ${qr}; + } + + .content-region { + display: inline-flex; + align-items: center; + white-space: nowrap; + width: 100%; + min-width: 0; + height: calc(${Ka} * 1px); + margin-inline-start: calc(${qt} * 2px + 8px); + font-size: ${Jt}; + line-height: ${Kt}; + font-weight: 400; + } + + .items { + /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ + font-size: calc(1em + (${qt} + 16) * 1px); + } + + .expand-collapse-button { + background: none; + border: none; + outline: none; + /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ + width: calc(${Hs} * 1px); + height: calc(${Hs} * 1px); + padding: 0; + display: flex; + justify-content: center; + align-items: center; + cursor: pointer; + margin-left: 6px; + margin-right: 6px; + } + + .expand-collapse-glyph { + /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ + width: calc((16 + ${_t}) * 1px); + height: calc((16 + ${_t}) * 1px); + transition: transform 0.1s linear; + + pointer-events: none; + fill: currentcolor; + } + + .start, + .end { + display: flex; + fill: currentcolor; + } + + ::slotted(svg) { + /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ + width: 16px; + height: 16px; + + /* Something like that would do if the typography is adaptive + font-size: inherit; + width: ${ro}; + height: ${ro}; + */ + } + + .start { + /* TODO: horizontalSpacing https://github.com/microsoft/fast/issues/2766 */ + margin-inline-end: calc(${qt} * 2px + 2px); + } + + .end { + /* TODO: horizontalSpacing https://github.com/microsoft/fast/issues/2766 */ + margin-inline-start: calc(${qt} * 2px + 2px); + } + + :host([expanded]) > .items { + animation: treeItemLoading ease-in 10ms; + animation-iteration-count: 1; + animation-fill-mode: forwards; + } + + :host([disabled]) .content-region { + opacity: ${Xt}; + cursor: ${be.disabledCursor}; + } + + :host(.nested) .content-region { + position: relative; + /* Add left margin to collapse button size */ + margin-inline-start: calc( + ( + ${Hs} + + ((${At} + ${_t}) * 1.25) + ) * 1px + ); + } + + :host(.nested) .expand-collapse-button { + position: absolute; + } + + :host(.nested:not([disabled])) .expand-collapse-button:hover { + background: ${Rs}; + } + + :host([selected]) .positioning-region { + background: ${Lr}; + } + + :host([selected]:not([disabled])) .positioning-region:hover { + background: ${Or}; + } + + :host([selected]:not([disabled])) .positioning-region:active { + background: ${Hr}; + } + + :host([selected]:not([disabled])) .expand-collapse-button:hover { + background: ${Is}; + } + + :host([selected])::after { + /* The background needs to be calculated based on the selected background state + for this control. We currently have no way of changing that, so setting to + accent-foreground-rest for the time being */ + background: ${Vr}; + border-radius: calc(${Et} * 1px); + content: ''; + display: block; + position: absolute; + top: calc((${Ka} / 4) * 1px); + width: 3px; + height: calc((${Ka} / 2) * 1px); + } + + ::slotted(${e.tagFor(be.TreeItem)}) { + --tree-item-nested-width: 1em; + --expand-collapse-button-nested-width: calc( + ( + ${Hs} + + ((${At} + ${_t}) * 1.25) + ) * -1px + ); + } + `.withBehaviors(new Zi(Ns,Ps),(0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host { + forced-color-adjust: none; + border-color: transparent; + background: ${Ja.Field}; + color: ${Ja.FieldText}; + } + :host .content-region .expand-collapse-glyph { + fill: ${Ja.FieldText}; + } + :host .positioning-region:hover, + :host([selected]) .positioning-region { + background: ${Ja.Highlight}; + } + :host .positioning-region:hover .content-region, + :host([selected]) .positioning-region .content-region { + color: ${Ja.HighlightText}; + } + :host .positioning-region:hover .content-region .expand-collapse-glyph, + :host .positioning-region:hover .content-region .start, + :host .positioning-region:hover .content-region .end, + :host([selected]) .content-region .expand-collapse-glyph, + :host([selected]) .content-region .start, + :host([selected]) .content-region .end { + fill: ${Ja.HighlightText}; + } + :host([selected])::after { + background: ${Ja.Field}; + } + :host(:${be.focusVisible}) .positioning-region { + border-color: ${Ja.FieldText}; + box-shadow: 0 0 0 2px inset ${Ja.Field}; + color: ${Ja.FieldText}; + } + :host([disabled]) .content-region, + :host([disabled]) .positioning-region:hover .content-region { + opacity: 1; + color: ${Ja.GrayText}; + } + :host([disabled]) .content-region .expand-collapse-glyph, + :host([disabled]) .content-region .start, + :host([disabled]) .content-region .end, + :host([disabled]) + .positioning-region:hover + .content-region + .expand-collapse-glyph, + :host([disabled]) .positioning-region:hover .content-region .start, + :host([disabled]) .positioning-region:hover .content-region .end { + fill: ${Ja.GrayText}; + } + :host([disabled]) .positioning-region:hover { + background: ${Ja.Field}; + } + .expand-collapse-glyph, + .start, + .end { + fill: ${Ja.FieldText}; + } + :host(.nested) .expand-collapse-button:hover { + background: ${Ja.Field}; + } + :host(.nested) .expand-collapse-button:hover .expand-collapse-glyph { + fill: ${Ja.FieldText}; + } + `));class Ms extends be.TreeItem{}const Gs=Ms.compose({baseName:"tree-item",baseClass:be.TreeItem,template:be.treeItemTemplate,styles:As,expandCollapseGlyph:`\n \n \n \n `});const Es=(e,t)=>(0,Za.css)` + ${(0,be.display)("flex")} :host { + flex-direction: column; + align-items: stretch; + min-width: fit-content; + font-size: 0; + } + + :host:focus-visible { + outline: none; + } +`;class _s extends be.TreeView{handleClick(e){if(e.defaultPrevented){return}if(!(e.target instanceof Element)){return true}let t=e.target;while(t&&!(0,be.isTreeItemElement)(t)){t=t.parentElement;if(t===this){t=null}}if(t&&!t.disabled){t.selected=true}return}}const qs=_s.compose({baseName:"tree-view",baseClass:be.TreeView,template:be.treeViewTemplate,styles:Es});const Ws=(e,t)=>(0,Za.css)` + .region { + z-index: 1000; + overflow: hidden; + display: flex; + font-family: ${It}; + font-size: ${Jt}; + } + + .loaded { + opacity: 1; + pointer-events: none; + } + + .loading-display, + .no-options-display { + background: ${sr}; + width: 100%; + min-height: calc(${Ka} * 1px); + display: flex; + flex-direction: column; + align-items: center; + justify-items: center; + padding: calc(${qt} * 1px); + } + + .loading-progress { + width: 42px; + height: 42px; + } + + .bottom { + flex-direction: column; + } + + .top { + flex-direction: column-reverse; + } +`;const Us=(e,t)=>(0,Za.css)` + :host { + background: ${sr}; + --elevation: 11; + /* TODO: a mechanism to manage z-index across components + https://github.com/microsoft/fast/issues/3813 */ + z-index: 1000; + display: flex; + width: 100%; + max-height: 100%; + min-height: 58px; + box-sizing: border-box; + flex-direction: column; + overflow-y: auto; + overflow-x: hidden; + pointer-events: auto; + border-radius: calc(${Et} * 1px); + padding: calc(${qt} * 1px) 0; + border: calc(${Zt} * 1px) solid transparent; + ${vn} + } + + .suggestions-available-alert { + height: 0; + opacity: 0; + overflow: hidden; + } + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host { + background: ${Ja.Canvas}; + border-color: ${Ja.CanvasText}; + } + `));const Xs=(e,t)=>(0,Za.css)` + :host { + display: flex; + align-items: center; + justify-items: center; + font-family: ${It}; + border-radius: calc(${Et} * 1px); + border: calc(${Yt} * 1px) solid transparent; + box-sizing: border-box; + background: ${Er}; + color: ${la}; + cursor: pointer; + fill: currentcolor; + font-size: ${Jt}; + min-height: calc(${Ka} * 1px); + line-height: ${Kt}; + margin: 0 calc(${qt} * 1px); + outline: none; + overflow: hidden; + padding: 0 calc(${qt} * 2.25px); + user-select: none; + white-space: nowrap; + } + + :host(:${be.focusVisible}[role="listitem"]) { + border-color: ${ta}; + background: ${Wr}; + } + + :host(:hover) { + background: ${_r}; + } + + :host(:active) { + background: ${qr}; + } + + :host([aria-selected='true']) { + background: ${ur}; + color: ${mr}; + } + + :host([aria-selected='true']:hover) { + background: ${hr}; + color: ${vr}; + } + + :host([aria-selected='true']:active) { + background: ${pr}; + color: ${$r}; + } + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host { + border-color: transparent; + forced-color-adjust: none; + color: ${Ja.ButtonText}; + fill: currentcolor; + } + + :host(:not([aria-selected='true']):hover), + :host([aria-selected='true']) { + background: ${Ja.Highlight}; + color: ${Ja.HighlightText}; + } + + :host([disabled]), + :host([disabled]:not([aria-selected='true']):hover) { + background: ${Ja.Canvas}; + color: ${Ja.GrayText}; + fill: currentcolor; + opacity: 1; + } + `));const Zs=(e,t)=>(0,Za.css)` + :host { + display: flex; + flex-direction: row; + column-gap: calc(${qt} * 1px); + row-gap: calc(${qt} * 1px); + flex-wrap: wrap; + } + + ::slotted([role="combobox"]) { + min-width: 260px; + width: auto; + box-sizing: border-box; + color: ${la}; + background: ${Rr}; + border-radius: calc(${Et} * 1px); + border: calc(${Zt} * 1px) solid ${ur}; + height: calc(${Ka} * 1px); + font-family: ${It}; + outline: none; + user-select: none; + font-size: ${Jt}; + line-height: ${Kt}; + padding: 0 calc(${qt} * 2px + 1px); + } + + ::slotted([role="combobox"]:active) { { + background: ${Ir}; + border-color: ${pr}; + } + + ::slotted([role="combobox"]:focus-within) { + border-color: ${ta}; + box-shadow: 0 0 0 1px ${ta} inset; + } + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + ::slotted([role='combobox']:active) { + background: ${Ja.Field}; + border-color: ${Ja.Highlight}; + } + ::slotted([role='combobox']:focus-within) { + border-color: ${Ja.Highlight}; + box-shadow: 0 0 0 1px ${Ja.Highlight} inset; + } + ::slotted(input:placeholder) { + color: ${Ja.GrayText}; + } + `));const Ys=(e,t)=>(0,Za.css)` + :host { + display: flex; + align-items: center; + justify-items: center; + font-family: ${It}; + border-radius: calc(${Et} * 1px); + border: calc(${Yt} * 1px) solid transparent; + box-sizing: border-box; + background: ${Er}; + color: ${la}; + cursor: pointer; + fill: currentcolor; + font-size: ${Jt}; + height: calc(${Ka} * 1px); + line-height: ${Kt}; + outline: none; + overflow: hidden; + padding: 0 calc(${qt} * 2.25px); + user-select: none; + white-space: nowrap; + } + + :host(:hover) { + background: ${_r}; + } + + :host(:active) { + background: ${qr}; + } + + :host(:${be.focusVisible}) { + background: ${Wr}; + border-color: ${ta}; + } + + :host([aria-selected='true']) { + background: ${ur}; + color: ${$r}; + } + `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)` + :host { + border-color: transparent; + forced-color-adjust: none; + color: ${Ja.ButtonText}; + fill: currentcolor; + } + + :host(:not([aria-selected='true']):hover), + :host([aria-selected='true']) { + background: ${Ja.Highlight}; + color: ${Ja.HighlightText}; + } + + :host([disabled]), + :host([disabled]:not([aria-selected='true']):hover) { + background: ${Ja.Canvas}; + color: ${Ja.GrayText}; + fill: currentcolor; + opacity: 1; + } + `));class Js extends be.Picker{}const Ks=Js.compose({baseName:"draft-picker",baseClass:be.Picker,template:be.pickerTemplate,styles:Ws,shadowOptions:{}});class Qs extends be.PickerMenu{connectedCallback(){sr.setValueFor(this,Qo);super.connectedCallback()}}const ec=Qs.compose({baseName:"draft-picker-menu",baseClass:be.PickerMenu,template:be.pickerMenuTemplate,styles:Us});class tc extends be.PickerMenuOption{}const oc=tc.compose({baseName:"draft-picker-menu-option",baseClass:be.PickerMenuOption,template:be.pickerMenuOptionTemplate,styles:Xs});class rc extends be.PickerList{}const ac=rc.compose({baseName:"draft-picker-list",baseClass:be.PickerList,template:be.pickerListTemplate,styles:Zs});class ic extends be.PickerListItem{}const nc=ic.compose({baseName:"draft-picker-list-item",baseClass:be.PickerListItem,template:be.pickerListItemTemplate,styles:Ys});const lc={jpAccordion:ri,jpAccordionItem:ti,jpAnchor:qi,jpAnchoredRegion:Xi,jpAvatar:on,jpBadge:nn,jpBreadcrumb:cn,jpBreadcrumbItem:hn,jpButton:bn,jpCard:yn,jpCheckbox:Cn,jpCombobox:jn,jpDataGrid:In,jpDataGridCell:Hn,jpDataGridRow:Pn,jpDateField:Zn,jpDesignSystemProvider:ol,jpDialog:il,jpDisclosure:sl,jpDivider:ul,jpListbox:pl,jpMenu:fl,jpMenuItem:$l,jpNumberField:wl,jpOption:Cl,jpPicker:Ks,jpPickerList:ac,jpPickerListItem:nc,jpPickerMenu:ec,jpPickerMenuOption:oc,jpProgress:Vl,jpProgressRing:zl,jpRadio:Hl,jpRadioGroup:Rl,jpSearch:El,jpSelect:ql,jpSkeleton:Xl,jpSlider:Ql,jpSliderLabel:is,jpSwitch:ss,jpTab:gs,jpTabPanel:us,jpTabs:ms,jpTextArea:xs,jpTextField:ks,jpToolbar:zs,jpTooltip:Os,jpTreeItem:Gs,jpTreeView:qs,register(e,...t){if(!e){return}for(const o in this){if(o==="register"){continue}this[o]().register(e,...t)}}};function sc(e){return be.DesignSystem.getOrCreate(e).withPrefix("jp")}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/2590.99e505d19b964439aa31.js b/share/jupyter/lab/static/2590.99e505d19b964439aa31.js new file mode 100644 index 0000000..6148d22 --- /dev/null +++ b/share/jupyter/lab/static/2590.99e505d19b964439aa31.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2590],{62590:(e,t,s)=>{s.r(t);s.d(t,{$global:()=>i,AttachedBehaviorHTMLDirective:()=>T,AttributeConfiguration:()=>oe,AttributeDefinition:()=>ae,BindingBehavior:()=>L,CSSDirective:()=>we,ChildrenBehavior:()=>ht,Controller:()=>me,DOM:()=>p,ElementStyles:()=>X,ExecutionContext:()=>x,FAST:()=>r,FASTElement:()=>Ce,FASTElementDefinition:()=>pe,HTMLBindingDirective:()=>E,HTMLDirective:()=>S,HTMLView:()=>W,Observable:()=>v,PropertyChangeNotifier:()=>b,RefBehavior:()=>Ue,RepeatBehavior:()=>tt,RepeatDirective:()=>st,SlottedBehavior:()=>ot,SubscriberSet:()=>g,TargetedHTMLDirective:()=>B,ViewTemplate:()=>G,attr:()=>ce,booleanConverter:()=>le,children:()=>at,compileTemplate:()=>Q,createMetadataLocator:()=>l,css:()=>Be,cssPartial:()=>Oe,customElement:()=>xe,defaultExecutionContext:()=>w,elements:()=>nt,emptyArray:()=>o,enableArrayObservation:()=>Qe,html:()=>K,nullableNumberConverter:()=>he,observable:()=>m,ref:()=>We,repeat:()=>it,slotted:()=>lt,volatile:()=>y,when:()=>Xe});const i=function(){if(typeof globalThis!=="undefined"){return globalThis}if(typeof s.g!=="undefined"){return s.g}if(typeof self!=="undefined"){return self}if(typeof window!=="undefined"){return window}try{return new Function("return this")()}catch(e){return{}}}();if(i.trustedTypes===void 0){i.trustedTypes={createPolicy:(e,t)=>t}}const n={configurable:false,enumerable:false,writable:false};if(i.FAST===void 0){Reflect.defineProperty(i,"FAST",Object.assign({value:Object.create(null)},n))}const r=i.FAST;if(r.getById===void 0){const e=Object.create(null);Reflect.defineProperty(r,"getById",Object.assign({value(t,s){let i=e[t];if(i===void 0){i=s?e[t]=s():null}return i}},n))}const o=Object.freeze([]);function l(){const e=new WeakMap;return function(t){let s=e.get(t);if(s===void 0){let i=Reflect.getPrototypeOf(t);while(s===void 0&&i!==null){s=e.get(i);i=Reflect.getPrototypeOf(i)}s=s===void 0?[]:s.slice(0);e.set(t,s)}return s}}const h=i.FAST.getById(1,(()=>{const e=[];const t=[];function s(){if(t.length){throw t.shift()}}function n(e){try{e.call()}catch(i){t.push(i);setTimeout(s,0)}}function r(){const t=1024;let s=0;while(st){for(let t=0,i=e.length-s;te});let c=a;const u=`fast-${Math.random().toString(36).substring(2,8)}`;const d=`${u}{`;const f=`}${u}`;const p=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(c!==a){throw new Error("The HTML policy can only be set once.")}c=e},createHTML(e){return c.createHTML(e)},isMarker(e){return e&&e.nodeType===8&&e.data.startsWith(u)},extractDirectiveIndexFromMarker(e){return parseInt(e.data.replace(`${u}:`,""))},createInterpolationPlaceholder(e){return`${d}${e}${f}`},createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder(e){return`\x3c!--${u}:${e}--\x3e`},queueUpdate:h.enqueue,processUpdates:h.process,nextUpdate(){return new Promise(h.enqueue)},setAttribute(e,t,s){if(s===null||s===undefined){e.removeAttribute(t)}else{e.setAttribute(t,s)}},setBooleanAttribute(e,t,s){s?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;t!==null;t=e.firstChild){e.removeChild(t)}},createTemplateWalker(e){return document.createTreeWalker(e,133,null,false)}});class g{constructor(e,t){this.sub1=void 0;this.sub2=void 0;this.spillover=void 0;this.source=e;this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){const t=this.spillover;if(t===void 0){if(this.has(e)){return}if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e];this.sub1=void 0;this.sub2=void 0}else{const s=t.indexOf(e);if(s===-1){t.push(e)}}}unsubscribe(e){const t=this.spillover;if(t===void 0){if(this.sub1===e){this.sub1=void 0}else if(this.sub2===e){this.sub2=void 0}}else{const s=t.indexOf(e);if(s!==-1){t.splice(s,1)}}}notify(e){const t=this.spillover;const s=this.source;if(t===void 0){const t=this.sub1;const i=this.sub2;if(t!==void 0){t.handleChange(s,e)}if(i!==void 0){i.handleChange(s,e)}}else{for(let i=0,n=t.length;i{const e=/(:|&&|\|\||if)/;const t=new WeakMap;const s=p.queueUpdate;let i=void 0;let n=e=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function r(e){let s=e.$fastController||t.get(e);if(s===void 0){if(Array.isArray(e)){s=n(e)}else{t.set(e,s=new b(e))}}return s}const o=l();class h{constructor(e){this.name=e;this.field=`_${e}`;this.callback=`${e}Changed`}getValue(e){if(i!==void 0){i.watch(e,this.name)}return e[this.field]}setValue(e,t){const s=this.field;const i=e[s];if(i!==t){e[s]=t;const n=e[this.callback];if(typeof n==="function"){n.call(e,i,t)}r(e).notify(this.name)}}}class a extends g{constructor(e,t,s=false){super(e,t);this.binding=e;this.isVolatileBinding=s;this.needsRefresh=true;this.needsQueue=true;this.first=this;this.last=null;this.propertySource=void 0;this.propertyName=void 0;this.notifier=void 0;this.next=void 0}observe(e,t){if(this.needsRefresh&&this.last!==null){this.disconnect()}const s=i;i=this.needsRefresh?this:void 0;this.needsRefresh=this.isVolatileBinding;const n=this.binding(e,t);i=s;return n}disconnect(){if(this.last!==null){let e=this.first;while(e!==void 0){e.notifier.unsubscribe(this,e.propertyName);e=e.next}this.last=null;this.needsRefresh=this.needsQueue=true}}watch(e,t){const s=this.last;const n=r(e);const o=s===null?this.first:{};o.propertySource=e;o.propertyName=t;o.notifier=n;n.subscribe(this,t);if(s!==null){if(!this.needsRefresh){let t;i=void 0;t=s.propertySource[s.propertyName];i=this;if(e===t){this.needsRefresh=true}}s.next=o}this.last=o}handleChange(){if(this.needsQueue){this.needsQueue=false;s(this)}}call(){if(this.last!==null){this.needsQueue=true;this.notify(this)}}records(){let e=this.first;return{next:()=>{const t=e;if(t===undefined){return{value:void 0,done:true}}else{e=e.next;return{value:t,done:false}}},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(e){n=e},getNotifier:r,track(e,t){if(i!==void 0){i.watch(e,t)}},trackVolatile(){if(i!==void 0){i.needsRefresh=true}},notify(e,t){r(e).notify(t)},defineProperty(e,t){if(typeof t==="string"){t=new h(t)}o(e).push(t);Reflect.defineProperty(e,t.name,{enumerable:true,get:function(){return t.getValue(this)},set:function(e){t.setValue(this,e)}})},getAccessors:o,binding(e,t,s=this.isVolatileBinding(e)){return new a(e,t,s)},isVolatileBinding(t){return e.test(t.toString())}})}));function m(e,t){v.defineProperty(e,t)}function y(e,t,s){return Object.assign({},s,{get:function(){v.trackVolatile();return s.get.apply(this)}})}const C=r.getById(3,(()=>{let e=null;return{get(){return e},set(t){e=t}}}));class x{constructor(){this.index=0;this.length=0;this.parent=null;this.parentContext=null}get event(){return C.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(e){C.set(e)}}v.defineProperty(x.prototype,"index");v.defineProperty(x.prototype,"length");const w=Object.seal(new x);class S{constructor(){this.targetIndex=0}}class B extends S{constructor(){super(...arguments);this.createPlaceholder=p.createInterpolationPlaceholder}}class T extends S{constructor(e,t,s){super();this.name=e;this.behavior=t;this.options=s}createPlaceholder(e){return p.createCustomAttributePlaceholder(this.name,e)}createBehavior(e){return new this.behavior(e,this.options)}}function O(e,t){this.source=e;this.context=t;if(this.bindingObserver===null){this.bindingObserver=v.binding(this.binding,this,this.isBindingVolatile)}this.updateTarget(this.bindingObserver.observe(e,t))}function A(e,t){this.source=e;this.context=t;this.target.addEventListener(this.targetName,this)}function N(){this.bindingObserver.disconnect();this.source=null;this.context=null}function k(){this.bindingObserver.disconnect();this.source=null;this.context=null;const e=this.target.$fastView;if(e!==void 0&&e.isComposed){e.unbind();e.needsBindOnly=true}}function V(){this.target.removeEventListener(this.targetName,this);this.source=null;this.context=null}function $(e){p.setAttribute(this.target,this.targetName,e)}function F(e){p.setBooleanAttribute(this.target,this.targetName,e)}function _(e){if(e===null||e===undefined){e=""}if(e.create){this.target.textContent="";let t=this.target.$fastView;if(t===void 0){t=e.create()}else{if(this.target.$fastTemplate!==e){if(t.isComposed){t.remove();t.unbind()}t=e.create()}}if(!t.isComposed){t.isComposed=true;t.bind(this.source,this.context);t.insertBefore(this.target);this.target.$fastView=t;this.target.$fastTemplate=e}else if(t.needsBindOnly){t.needsBindOnly=false;t.bind(this.source,this.context)}}else{const t=this.target.$fastView;if(t!==void 0&&t.isComposed){t.isComposed=false;t.remove();if(t.needsBindOnly){t.needsBindOnly=false}else{t.unbind()}}this.target.textContent=e}}function I(e){this.target[this.targetName]=e}function M(e){const t=this.classVersions||Object.create(null);const s=this.target;let i=this.version||0;if(e!==null&&e!==undefined&&e.length){const n=e.split(/\s+/);for(let e=0,r=n.length;ep.createHTML(e(t,s))}break;case"?":this.cleanedTargetName=e.substr(1);this.updateTarget=F;break;case"@":this.cleanedTargetName=e.substr(1);this.bind=A;this.unbind=V;break;default:this.cleanedTargetName=e;if(e==="class"){this.updateTarget=M}break}}targetAtContent(){this.updateTarget=_;this.unbind=k}createBehavior(e){return new L(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class L{constructor(e,t,s,i,n,r,o){this.source=null;this.context=null;this.bindingObserver=null;this.target=e;this.binding=t;this.isBindingVolatile=s;this.bind=i;this.unbind=n;this.updateTarget=r;this.targetName=o}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(e){x.setEvent(e);const t=this.binding(this.source,this.context);x.setEvent(null);if(t!==true){e.preventDefault()}}}let P=null;class j{addFactory(e){e.targetIndex=this.targetIndex;this.behaviorFactories.push(e)}captureContentBinding(e){e.targetAtContent();this.addFactory(e)}reset(){this.behaviorFactories=[];this.targetIndex=-1}release(){P=this}static borrow(e){const t=P||new j;t.directives=e;t.reset();P=null;return t}}function R(e){if(e.length===1){return e[0]}let t;const s=e.length;const i=e.map((e=>{if(typeof e==="string"){return()=>e}t=e.targetName||t;return e.binding}));const n=(e,t)=>{let n="";for(let r=0;rl));a.targetName=o.name}}else{a=R(h)}if(a!==null){t.removeAttributeNode(o);n--;r--;e.addFactory(a)}}}function q(e,t,s){const i=z(e,t.textContent);if(i!==null){let n=t;for(let r=0,o=i.length;r0}const t=this.fragment.cloneNode(true);const s=this.viewBehaviorFactories;const i=new Array(this.behaviorCount);const n=p.createTemplateWalker(t);let r=0;let o=this.targetOffset;let l=n.nextNode();for(let h=s.length;r=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function K(e,...t){const s=[];let i="";for(let n=0,r=e.length-1;ne}if(typeof o==="function"){o=new E(o)}if(o instanceof B){const e=J.exec(r);if(e!==null){o.targetName=e[2]}}if(o instanceof S){i+=o.createPlaceholder(s.length);s.push(o)}else{i+=o}}i+=e[e.length-1];return new G(i,s)}class X{constructor(){this.targets=new WeakSet}addStylesTo(e){this.targets.add(e)}removeStylesFrom(e){this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){this.behaviors=this.behaviors===null?e:this.behaviors.concat(e);return this}}X.create=(()=>{if(p.supportsAdoptedStyleSheets){const e=new Map;return t=>new se(t,e)}return e=>new re(e)})();function Y(e){return e.map((e=>e instanceof X?Y(e.styles):[e])).reduce(((e,t)=>e.concat(t)),[])}function Z(e){return e.map((e=>e instanceof X?e.behaviors:null)).reduce(((e,t)=>{if(t===null){return e}if(e===null){e=[]}return e.concat(t)}),null)}let ee=(e,t)=>{e.adoptedStyleSheets=[...e.adoptedStyleSheets,...t]};let te=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter((e=>t.indexOf(e)===-1))};if(p.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push();document.adoptedStyleSheets.splice();ee=(e,t)=>{e.adoptedStyleSheets.push(...t)};te=(e,t)=>{for(const s of t){const t=e.adoptedStyleSheets.indexOf(s);if(t!==-1){e.adoptedStyleSheets.splice(t,1)}}}}catch(ct){}}class se extends X{constructor(e,t){super();this.styles=e;this.styleSheetCache=t;this._styleSheets=void 0;this.behaviors=Z(e)}get styleSheets(){if(this._styleSheets===void 0){const e=this.styles;const t=this.styleSheetCache;this._styleSheets=Y(e).map((e=>{if(e instanceof CSSStyleSheet){return e}let s=t.get(e);if(s===void 0){s=new CSSStyleSheet;s.replaceSync(e);t.set(e,s)}return s}))}return this._styleSheets}addStylesTo(e){ee(e,this.styleSheets);super.addStylesTo(e)}removeStylesFrom(e){te(e,this.styleSheets);super.removeStylesFrom(e)}}let ie=0;function ne(){return`fast-style-class-${++ie}`}class re extends X{constructor(e){super();this.styles=e;this.behaviors=null;this.behaviors=Z(e);this.styleSheets=Y(e);this.styleClass=ne()}addStylesTo(e){const t=this.styleSheets;const s=this.styleClass;e=this.normalizeTarget(e);for(let i=0;i{s.add(e);const i=e[this.fieldName];switch(t){case"reflect":const t=this.converter;p.setAttribute(e,this.attribute,t!==void 0?t.toView(i):i);break;case"boolean":p.setBooleanAttribute(e,this.attribute,i);break}s.delete(e)}))}static collect(e,...t){const s=[];t.push(oe.locate(e));for(let i=0,n=t.length;i1){s.property=t}oe.locate(e.constructor).push(s)}if(arguments.length>1){s={};i(e,t);return}s=e===void 0?{}:e;return i}const ue={mode:"open"};const de={};const fe=r.getById(4,(()=>{const e=new Map;return Object.freeze({register(t){if(e.has(t.type)){return false}e.set(t.type,t);return true},getByType(t){return e.get(t)}})}));class pe{constructor(e,t=e.definition){if(typeof t==="string"){t={name:t}}this.type=e;this.name=t.name;this.template=t.template;const s=ae.collect(e,t.attributes);const i=new Array(s.length);const n={};const r={};for(let o=0,l=s.length;o0){const t=this.boundObservables=Object.create(null);for(let s=0,n=i.length;s{if(typeof t==="string"){this.css+=t}else{e.push(t)}return e}),[]);if(s.length){this.styles=X.create(s)}}createBehavior(){return this}createCSS(){return this.css}bind(e){if(this.styles){e.$fastController.addStyles(this.styles)}if(this.behaviors.length){e.$fastController.addBehaviors(this.behaviors)}}unbind(e){if(this.styles){e.$fastController.removeStyles(this.styles)}if(this.behaviors.length){e.$fastController.removeBehaviors(this.behaviors)}}}function Oe(e,...t){const{styles:s,behaviors:i}=Se(e,t);return new Te(s,i)}function Ae(e,t,s){return{index:e,removed:t,addedCount:s}}const Ne=0;const ke=1;const Ve=2;const $e=3;function Fe(e,t,s,i,n,r){const o=r-n+1;const l=s-t+1;const h=new Array(o);let a;let c;for(let u=0;u0||s>0){if(t===0){n.push(Ve);s--;continue}if(s===0){n.push($e);t--;continue}const r=e[t-1][s-1];const o=e[t-1][s];const l=e[t][s-1];let h;if(o=0){e.splice(l,1);l--;o-=t.addedCount-t.removed.length;n.addedCount+=t.addedCount-s;const i=n.removed.length+t.removed.length-s;if(!n.addedCount&&!i){r=true}else{let e=t.removed;if(n.indext.index+t.addedCount){const s=n.removed.slice(t.index+t.addedCount-n.index);Pe.apply(e,s)}n.removed=e;if(t.indexi){s=i-e.addedCount}else if(s<0){s=i+e.removed.length+s-e.addedCount}if(s<0){s=0}e.index=s;return e}class qe extends g{constructor(e){super(e);this.oldCollection=void 0;this.splices=void 0;this.needsQueue=true;this.call=this.flush;Reflect.defineProperty(e,"$fastController",{value:this,enumerable:false})}subscribe(e){this.flush();super.subscribe(e)}addSplice(e){if(this.splices===void 0){this.splices=[e]}else{this.splices.push(e)}if(this.needsQueue){this.needsQueue=false;p.queueUpdate(this)}}reset(e){this.oldCollection=e;if(this.needsQueue){this.needsQueue=false;p.queueUpdate(this)}}flush(){const e=this.splices;const t=this.oldCollection;if(e===void 0&&t===void 0){return}this.needsQueue=true;this.splices=void 0;this.oldCollection=void 0;const s=t===void 0?He(this.source,e):Le(this.source,0,this.source.length,t,0,t.length);this.notify(s)}}function Qe(){if(ze){return}ze=true;v.setArrayObserverFactory((e=>new qe(e)));const e=Array.prototype;if(e.$fastPatch){return}Reflect.defineProperty(e,"$fastPatch",{value:1,enumerable:false});const t=e.pop;const s=e.push;const i=e.reverse;const n=e.shift;const r=e.sort;const o=e.splice;const l=e.unshift;e.pop=function(){const e=this.length>0;const s=t.apply(this,arguments);const i=this.$fastController;if(i!==void 0&&e){i.addSplice(Ae(this.length,[s],0))}return s};e.push=function(){const e=s.apply(this,arguments);const t=this.$fastController;if(t!==void 0){t.addSplice(De(Ae(this.length-arguments.length,[],arguments.length),this))}return e};e.reverse=function(){let e;const t=this.$fastController;if(t!==void 0){t.flush();e=this.slice()}const s=i.apply(this,arguments);if(t!==void 0){t.reset(e)}return s};e.shift=function(){const e=this.length>0;const t=n.apply(this,arguments);const s=this.$fastController;if(s!==void 0&&e){s.addSplice(Ae(0,[t],0))}return t};e.sort=function(){let e;const t=this.$fastController;if(t!==void 0){t.flush();e=this.slice()}const s=r.apply(this,arguments);if(t!==void 0){t.reset(e)}return s};e.splice=function(){const e=o.apply(this,arguments);const t=this.$fastController;if(t!==void 0){t.addSplice(De(Ae(+arguments[0],e,arguments.length>2?arguments.length-2:0),this))}return e};e.unshift=function(){const e=l.apply(this,arguments);const t=this.$fastController;if(t!==void 0){t.addSplice(De(Ae(0,[],arguments.length),this))}return e}}class Ue{constructor(e,t){this.target=e;this.propertyName=t}bind(e){e[this.propertyName]=this.target}unbind(){}}function We(e){return new T("fast-ref",Ue,e)}const Ge=e=>typeof e==="function";const Je=()=>null;function Ke(e){return e===undefined?Je:Ge(e)?e:()=>e}function Xe(e,t,s){const i=Ge(e)?e:()=>e;const n=Ke(t);const r=Ke(s);return(e,t)=>i(e,t)?n(e,t):r(e,t)}const Ye=Object.freeze({positioning:false,recycle:true});function Ze(e,t,s,i){e.bind(t[s],i)}function et(e,t,s,i){const n=Object.create(i);n.index=s;n.length=t.length;e.bind(t[s],n)}class tt{constructor(e,t,s,i,n,r){this.location=e;this.itemsBinding=t;this.templateBinding=i;this.options=r;this.source=null;this.views=[];this.items=null;this.itemsObserver=null;this.originalContext=void 0;this.childContext=void 0;this.bindView=Ze;this.itemsBindingObserver=v.binding(t,this,s);this.templateBindingObserver=v.binding(i,this,n);if(r.positioning){this.bindView=et}}bind(e,t){this.source=e;this.originalContext=t;this.childContext=Object.create(t);this.childContext.parent=e;this.childContext.parentContext=this.originalContext;this.items=this.itemsBindingObserver.observe(e,this.originalContext);this.template=this.templateBindingObserver.observe(e,this.originalContext);this.observeItems(true);this.refreshAllViews()}unbind(){this.source=null;this.items=null;if(this.itemsObserver!==null){this.itemsObserver.unsubscribe(this)}this.unbindAllViews();this.itemsBindingObserver.disconnect();this.templateBindingObserver.disconnect()}handleChange(e,t){if(e===this.itemsBinding){this.items=this.itemsBindingObserver.observe(this.source,this.originalContext);this.observeItems();this.refreshAllViews()}else if(e===this.templateBinding){this.template=this.templateBindingObserver.observe(this.source,this.originalContext);this.refreshAllViews(true)}else{this.updateViews(t)}}observeItems(e=false){if(!this.items){this.items=o;return}const t=this.itemsObserver;const s=this.itemsObserver=v.getNotifier(this.items);const i=t!==s;if(i&&t!==null){t.unsubscribe(this)}if(i||e){s.subscribe(this)}}updateViews(e){const t=this.childContext;const s=this.views;const i=this.bindView;const n=this.items;const r=this.template;const o=this.options.recycle;const l=[];let h=0;let a=0;for(let c=0,u=e.length;c0){if(f<=v&&b.length>0){u=b[f];f++}else{u=l[h];h++}a--}else{u=r.create()}s.splice(p,0,u);i(u,n,p,t);u.insertBefore(c)}if(b[f]){l.push(...b.slice(f))}}for(let c=h,u=l.length;ct;return new st(e,i,Object.assign(Object.assign({},Ye),s))}function nt(e){if(e){return function(t,s,i){return t.nodeType===1&&t.matches(e)}}return function(e,t,s){return e.nodeType===1}}class rt{constructor(e,t){this.target=e;this.options=t;this.source=null}bind(e){const t=this.options.property;this.shouldUpdate=v.getAccessors(e).some((e=>e.name===t));this.source=e;this.updateTarget(this.computeNodes());if(this.shouldUpdate){this.observe()}}unbind(){this.updateTarget(o);this.source=null;if(this.shouldUpdate){this.disconnect()}}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let e=this.getNodes();if(this.options.filter!==void 0){e=e.filter(this.options.filter)}return e}updateTarget(e){this.source[this.options.property]=e}}class ot extends rt{constructor(e,t){super(e,t)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function lt(e){if(typeof e==="string"){e={property:e}}return new T("fast-slotted",ot,e)}class ht extends rt{constructor(e,t){super(e,t);this.observer=null;t.childList=true}observe(){if(this.observer===null){this.observer=new MutationObserver(this.handleEvent.bind(this))}this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){if("subtree"in this.options){return Array.from(this.target.querySelectorAll(this.options.selector))}return Array.from(this.target.childNodes)}}function at(e){if(typeof e==="string"){e={property:e}}return new T("fast-children",ht,e)}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/2633.ea053b40991eb5adbc69.js b/share/jupyter/lab/static/2633.ea053b40991eb5adbc69.js new file mode 100644 index 0000000..a2c46ba --- /dev/null +++ b/share/jupyter/lab/static/2633.ea053b40991eb5adbc69.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2633,1039],{71471:(t,e)=>{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/share/jupyter/lab/static/2641.e77441e7a3e0d12834c5.js b/share/jupyter/lab/static/2641.e77441e7a3e0d12834c5.js new file mode 100644 index 0000000..3a98f23 --- /dev/null +++ b/share/jupyter/lab/static/2641.e77441e7a3e0d12834c5.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2641],{8394:(e,t,r)=>{e=r.nmd(e);var n=200;var s="__lodash_hash_undefined__";var i=800,o=16;var a=9007199254740991;var c="[object Arguments]",u="[object Array]",f="[object AsyncFunction]",l="[object Boolean]",d="[object Date]",h="[object Error]",p="[object Function]",g="[object GeneratorFunction]",m="[object Map]",y="[object Number]",b="[object Null]",v="[object Object]",_="[object Proxy]",w="[object RegExp]",T="[object Set]",E="[object String]",S="[object Undefined]",k="[object WeakMap]";var C="[object ArrayBuffer]",R="[object DataView]",M="[object Float32Array]",j="[object Float64Array]",O="[object Int8Array]",P="[object Int16Array]",N="[object Int32Array]",x="[object Uint8Array]",L="[object Uint8ClampedArray]",q="[object Uint16Array]",A="[object Uint32Array]";var $=/[\\^$.*+?()[\]{}|]/g;var D=/^\[object .+?Constructor\]$/;var z=/^(?:0|[1-9]\d*)$/;var I={};I[M]=I[j]=I[O]=I[P]=I[N]=I[x]=I[L]=I[q]=I[A]=true;I[c]=I[u]=I[C]=I[l]=I[R]=I[d]=I[h]=I[p]=I[m]=I[y]=I[v]=I[w]=I[T]=I[E]=I[k]=false;var B=typeof r.g=="object"&&r.g&&r.g.Object===Object&&r.g;var W=typeof self=="object"&&self&&self.Object===Object&&self;var U=B||W||Function("return this")();var F=true&&t&&!t.nodeType&&t;var J=F&&"object"=="object"&&e&&!e.nodeType&&e;var V=J&&J.exports===F;var H=V&&B.process;var G=function(){try{var e=J&&J.require&&J.require("util").types;if(e){return e}return H&&H.binding&&H.binding("util")}catch(t){}}();var K=G&&G.isTypedArray;function Q(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function X(e,t){var r=-1,n=Array(e);while(++r-1}function De(e,t){var r=this.__data__,n=et(r,e);if(n<0){++this.size;r.push([e,t])}else{r[n][1]=t}return this}xe.prototype.clear=Le;xe.prototype["delete"]=qe;xe.prototype.get=Ae;xe.prototype.has=$e;xe.prototype.set=De;function ze(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t1?r[s-1]:undefined,o=s>2?r[2]:undefined;i=e.length>3&&typeof i=="function"?(s--,i):undefined;if(o&&St(r[0],r[1],o)){i=s<3?undefined:i;s=1}t=Object(t);while(++n-1&&e%1==0&&e0){if(++t>=i){return arguments[0]}}else{t=0}return e.apply(undefined,arguments)}}function Lt(e){if(e!=null){try{return ie.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function qt(e,t){return e===t||e!==e&&t!==t}var At=st(function(){return arguments}())?st:function(e){return Ft(e)&&oe.call(e,"callee")&&!ye.call(e,"callee")};var $t=Array.isArray;function Dt(e){return e!=null&&Wt(e.length)&&!Bt(e)}function zt(e){return Ft(e)&&Dt(e)}var It=we||Yt;function Bt(e){if(!Ut(e)){return false}var t=nt(e);return t==p||t==g||t==f||t==_}function Wt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=a}function Ut(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ft(e){return e!=null&&typeof e=="object"}function Jt(e){if(!Ft(e)||nt(e)!=v){return false}var t=ge(e);if(t===null){return true}var r=oe.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ie.call(r)==ue}var Vt=K?Y(K):ot;function Ht(e){return mt(e,Gt(e))}function Gt(e){return Dt(e)?Xe(e,true):at(e)}var Kt=yt((function(e,t,r,n){ct(e,t,r,n)}));function Qt(e){return function(){return e}}function Xt(e){return e}function Yt(){return false}e.exports=Kt},76439:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.createMessageConnection=t.BrowserMessageWriter=t.BrowserMessageReader=void 0;const i=r(54615);i.default.install();const o=r(53281);s(r(53281),t);class a extends o.AbstractMessageReader{constructor(e){super();this._onData=new o.Emitter;this._messageListener=e=>{this._onData.fire(e.data)};e.addEventListener("error",(e=>this.fireError(e)));e.onmessage=this._messageListener}listen(e){return this._onData.event(e)}}t.BrowserMessageReader=a;class c extends o.AbstractMessageWriter{constructor(e){super();this.port=e;this.errorCount=0;e.addEventListener("error",(e=>this.fireError(e)))}write(e){try{this.port.postMessage(e);return Promise.resolve()}catch(t){this.handleError(t,e);return Promise.reject(t)}}handleError(e,t){this.errorCount++;this.fireError(e,t,this.errorCount)}end(){}}t.BrowserMessageWriter=c;function u(e,t,r,n){if(r===undefined){r=o.NullLogger}if(o.ConnectionStrategy.is(n)){n={connectionStrategy:n}}return(0,o.createMessageConnection)(e,t,r,n)}t.createMessageConnection=u},54615:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(53281);class s extends n.AbstractMessageBuffer{constructor(e="utf-8"){super(e);this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return s.emptyBuffer}fromString(e,t){return(new TextEncoder).encode(e)}toString(e,t){if(t==="ascii"){return this.asciiDecoder.decode(e)}else{return new TextDecoder(t).decode(e)}}asNative(e,t){if(t===undefined){return e}else{return e.slice(0,t)}}allocNative(e){return new Uint8Array(e)}}s.emptyBuffer=new Uint8Array(0);class i{constructor(e){this.socket=e;this._onData=new n.Emitter;this._messageListener=e=>{const t=e.data;t.arrayBuffer().then((e=>{this._onData.fire(new Uint8Array(e))}),(()=>{(0,n.RAL)().console.error(`Converting blob to array buffer failed.`)}))};this.socket.addEventListener("message",this._messageListener)}onClose(e){this.socket.addEventListener("close",e);return n.Disposable.create((()=>this.socket.removeEventListener("close",e)))}onError(e){this.socket.addEventListener("error",e);return n.Disposable.create((()=>this.socket.removeEventListener("error",e)))}onEnd(e){this.socket.addEventListener("end",e);return n.Disposable.create((()=>this.socket.removeEventListener("end",e)))}onData(e){return this._onData.event(e)}}class o{constructor(e){this.socket=e}onClose(e){this.socket.addEventListener("close",e);return n.Disposable.create((()=>this.socket.removeEventListener("close",e)))}onError(e){this.socket.addEventListener("error",e);return n.Disposable.create((()=>this.socket.removeEventListener("error",e)))}onEnd(e){this.socket.addEventListener("end",e);return n.Disposable.create((()=>this.socket.removeEventListener("end",e)))}write(e,t){if(typeof e==="string"){if(t!==undefined&&t!=="utf-8"){throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t}`)}this.socket.send(e)}else{this.socket.send(e)}return Promise.resolve()}end(){this.socket.close()}}const a=new TextEncoder;const c=Object.freeze({messageBuffer:Object.freeze({create:e=>new s(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{if(t.charset!=="utf-8"){throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`)}return Promise.resolve(a.encode(JSON.stringify(e,undefined,0)))}}),decoder:Object.freeze({name:"application/json",decode:(e,t)=>{if(!(e instanceof Uint8Array)){throw new Error(`In a Browser environments only Uint8Arrays are supported.`)}return Promise.resolve(JSON.parse(new TextDecoder(t.charset).decode(e)))}})}),stream:Object.freeze({asReadableStream:e=>new i(e),asWritableStream:e=>new o(e)}),console,timer:Object.freeze({setTimeout(e,t,...r){const n=setTimeout(e,t,...r);return{dispose:()=>clearTimeout(n)}},setImmediate(e,...t){const r=setTimeout(e,0,...t);return{dispose:()=>clearTimeout(r)}},setInterval(e,t,...r){const n=setInterval(e,t,...r);return{dispose:()=>clearInterval(n)}}})});function u(){return c}(function(e){function t(){n.RAL.install(c)}e.install=t})(u||(u={}));t["default"]=u},53281:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProgressType=t.ProgressToken=t.createMessageConnection=t.NullLogger=t.ConnectionOptions=t.ConnectionStrategy=t.AbstractMessageBuffer=t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=t.CancellationToken=t.CancellationTokenSource=t.Emitter=t.Event=t.Disposable=t.LRUCache=t.Touch=t.LinkedMap=t.ParameterStructures=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.ErrorCodes=t.ResponseError=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType0=t.RequestType=t.Message=t.RAL=void 0;t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.Trace=void 0;const n=r(96177);Object.defineProperty(t,"Message",{enumerable:true,get:function(){return n.Message}});Object.defineProperty(t,"RequestType",{enumerable:true,get:function(){return n.RequestType}});Object.defineProperty(t,"RequestType0",{enumerable:true,get:function(){return n.RequestType0}});Object.defineProperty(t,"RequestType1",{enumerable:true,get:function(){return n.RequestType1}});Object.defineProperty(t,"RequestType2",{enumerable:true,get:function(){return n.RequestType2}});Object.defineProperty(t,"RequestType3",{enumerable:true,get:function(){return n.RequestType3}});Object.defineProperty(t,"RequestType4",{enumerable:true,get:function(){return n.RequestType4}});Object.defineProperty(t,"RequestType5",{enumerable:true,get:function(){return n.RequestType5}});Object.defineProperty(t,"RequestType6",{enumerable:true,get:function(){return n.RequestType6}});Object.defineProperty(t,"RequestType7",{enumerable:true,get:function(){return n.RequestType7}});Object.defineProperty(t,"RequestType8",{enumerable:true,get:function(){return n.RequestType8}});Object.defineProperty(t,"RequestType9",{enumerable:true,get:function(){return n.RequestType9}});Object.defineProperty(t,"ResponseError",{enumerable:true,get:function(){return n.ResponseError}});Object.defineProperty(t,"ErrorCodes",{enumerable:true,get:function(){return n.ErrorCodes}});Object.defineProperty(t,"NotificationType",{enumerable:true,get:function(){return n.NotificationType}});Object.defineProperty(t,"NotificationType0",{enumerable:true,get:function(){return n.NotificationType0}});Object.defineProperty(t,"NotificationType1",{enumerable:true,get:function(){return n.NotificationType1}});Object.defineProperty(t,"NotificationType2",{enumerable:true,get:function(){return n.NotificationType2}});Object.defineProperty(t,"NotificationType3",{enumerable:true,get:function(){return n.NotificationType3}});Object.defineProperty(t,"NotificationType4",{enumerable:true,get:function(){return n.NotificationType4}});Object.defineProperty(t,"NotificationType5",{enumerable:true,get:function(){return n.NotificationType5}});Object.defineProperty(t,"NotificationType6",{enumerable:true,get:function(){return n.NotificationType6}});Object.defineProperty(t,"NotificationType7",{enumerable:true,get:function(){return n.NotificationType7}});Object.defineProperty(t,"NotificationType8",{enumerable:true,get:function(){return n.NotificationType8}});Object.defineProperty(t,"NotificationType9",{enumerable:true,get:function(){return n.NotificationType9}});Object.defineProperty(t,"ParameterStructures",{enumerable:true,get:function(){return n.ParameterStructures}});const s=r(93352);Object.defineProperty(t,"LinkedMap",{enumerable:true,get:function(){return s.LinkedMap}});Object.defineProperty(t,"LRUCache",{enumerable:true,get:function(){return s.LRUCache}});Object.defineProperty(t,"Touch",{enumerable:true,get:function(){return s.Touch}});const i=r(34019);Object.defineProperty(t,"Disposable",{enumerable:true,get:function(){return i.Disposable}});const o=r(62676);Object.defineProperty(t,"Event",{enumerable:true,get:function(){return o.Event}});Object.defineProperty(t,"Emitter",{enumerable:true,get:function(){return o.Emitter}});const a=r(59850);Object.defineProperty(t,"CancellationTokenSource",{enumerable:true,get:function(){return a.CancellationTokenSource}});Object.defineProperty(t,"CancellationToken",{enumerable:true,get:function(){return a.CancellationToken}});const c=r(74996);Object.defineProperty(t,"SharedArraySenderStrategy",{enumerable:true,get:function(){return c.SharedArraySenderStrategy}});Object.defineProperty(t,"SharedArrayReceiverStrategy",{enumerable:true,get:function(){return c.SharedArrayReceiverStrategy}});const u=r(59085);Object.defineProperty(t,"MessageReader",{enumerable:true,get:function(){return u.MessageReader}});Object.defineProperty(t,"AbstractMessageReader",{enumerable:true,get:function(){return u.AbstractMessageReader}});Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:true,get:function(){return u.ReadableStreamMessageReader}});const f=r(23193);Object.defineProperty(t,"MessageWriter",{enumerable:true,get:function(){return f.MessageWriter}});Object.defineProperty(t,"AbstractMessageWriter",{enumerable:true,get:function(){return f.AbstractMessageWriter}});Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:true,get:function(){return f.WriteableStreamMessageWriter}});const l=r(89244);Object.defineProperty(t,"AbstractMessageBuffer",{enumerable:true,get:function(){return l.AbstractMessageBuffer}});const d=r(90577);Object.defineProperty(t,"ConnectionStrategy",{enumerable:true,get:function(){return d.ConnectionStrategy}});Object.defineProperty(t,"ConnectionOptions",{enumerable:true,get:function(){return d.ConnectionOptions}});Object.defineProperty(t,"NullLogger",{enumerable:true,get:function(){return d.NullLogger}});Object.defineProperty(t,"createMessageConnection",{enumerable:true,get:function(){return d.createMessageConnection}});Object.defineProperty(t,"ProgressToken",{enumerable:true,get:function(){return d.ProgressToken}});Object.defineProperty(t,"ProgressType",{enumerable:true,get:function(){return d.ProgressType}});Object.defineProperty(t,"Trace",{enumerable:true,get:function(){return d.Trace}});Object.defineProperty(t,"TraceValues",{enumerable:true,get:function(){return d.TraceValues}});Object.defineProperty(t,"TraceFormat",{enumerable:true,get:function(){return d.TraceFormat}});Object.defineProperty(t,"SetTraceNotification",{enumerable:true,get:function(){return d.SetTraceNotification}});Object.defineProperty(t,"LogTraceNotification",{enumerable:true,get:function(){return d.LogTraceNotification}});Object.defineProperty(t,"ConnectionErrors",{enumerable:true,get:function(){return d.ConnectionErrors}});Object.defineProperty(t,"ConnectionError",{enumerable:true,get:function(){return d.ConnectionError}});Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:true,get:function(){return d.CancellationReceiverStrategy}});Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:true,get:function(){return d.CancellationSenderStrategy}});Object.defineProperty(t,"CancellationStrategy",{enumerable:true,get:function(){return d.CancellationStrategy}});Object.defineProperty(t,"MessageStrategy",{enumerable:true,get:function(){return d.MessageStrategy}});const h=r(69590);t.RAL=h.default},59850:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CancellationTokenSource=t.CancellationToken=void 0;const n=r(69590);const s=r(78585);const i=r(62676);var o;(function(e){e.None=Object.freeze({isCancellationRequested:false,onCancellationRequested:i.Event.None});e.Cancelled=Object.freeze({isCancellationRequested:true,onCancellationRequested:i.Event.None});function t(t){const r=t;return r&&(r===e.None||r===e.Cancelled||s.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}e.is=t})(o||(t.CancellationToken=o={}));const a=Object.freeze((function(e,t){const r=(0,n.default)().timer.setTimeout(e.bind(t),0);return{dispose(){r.dispose()}}}));class c{constructor(){this._isCancelled=false}cancel(){if(!this._isCancelled){this._isCancelled=true;if(this._emitter){this._emitter.fire(undefined);this.dispose()}}}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){if(this._isCancelled){return a}if(!this._emitter){this._emitter=new i.Emitter}return this._emitter.event}dispose(){if(this._emitter){this._emitter.dispose();this._emitter=undefined}}}class u{get token(){if(!this._token){this._token=new c}return this._token}cancel(){if(!this._token){this._token=o.Cancelled}else{this._token.cancel()}}dispose(){if(!this._token){this._token=o.None}else if(this._token instanceof c){this._token.dispose()}}}t.CancellationTokenSource=u},90577:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createMessageConnection=t.ConnectionOptions=t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.RequestCancellationReceiverStrategy=t.IdCancellationReceiverStrategy=t.ConnectionStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.Trace=t.NullLogger=t.ProgressType=t.ProgressToken=void 0;const n=r(69590);const s=r(78585);const i=r(96177);const o=r(93352);const a=r(62676);const c=r(59850);var u;(function(e){e.type=new i.NotificationType("$/cancelRequest")})(u||(u={}));var f;(function(e){function t(e){return typeof e==="string"||typeof e==="number"}e.is=t})(f||(t.ProgressToken=f={}));var l;(function(e){e.type=new i.NotificationType("$/progress")})(l||(l={}));class d{constructor(){}}t.ProgressType=d;var h;(function(e){function t(e){return s.func(e)}e.is=t})(h||(h={}));t.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var p;(function(e){e[e["Off"]=0]="Off";e[e["Messages"]=1]="Messages";e[e["Compact"]=2]="Compact";e[e["Verbose"]=3]="Verbose"})(p||(t.Trace=p={}));var g;(function(e){e.Off="off";e.Messages="messages";e.Compact="compact";e.Verbose="verbose"})(g||(t.TraceValues=g={}));(function(e){function t(t){if(!s.string(t)){return e.Off}t=t.toLowerCase();switch(t){case"off":return e.Off;case"messages":return e.Messages;case"compact":return e.Compact;case"verbose":return e.Verbose;default:return e.Off}}e.fromString=t;function r(t){switch(t){case e.Off:return"off";case e.Messages:return"messages";case e.Compact:return"compact";case e.Verbose:return"verbose";default:return"off"}}e.toString=r})(p||(t.Trace=p={}));var m;(function(e){e["Text"]="text";e["JSON"]="json"})(m||(t.TraceFormat=m={}));(function(e){function t(t){if(!s.string(t)){return e.Text}t=t.toLowerCase();if(t==="json"){return e.JSON}else{return e.Text}}e.fromString=t})(m||(t.TraceFormat=m={}));var y;(function(e){e.type=new i.NotificationType("$/setTrace")})(y||(t.SetTraceNotification=y={}));var b;(function(e){e.type=new i.NotificationType("$/logTrace")})(b||(t.LogTraceNotification=b={}));var v;(function(e){e[e["Closed"]=1]="Closed";e[e["Disposed"]=2]="Disposed";e[e["AlreadyListening"]=3]="AlreadyListening"})(v||(t.ConnectionErrors=v={}));class _ extends Error{constructor(e,t){super(t);this.code=e;Object.setPrototypeOf(this,_.prototype)}}t.ConnectionError=_;var w;(function(e){function t(e){const t=e;return t&&s.func(t.cancelUndispatched)}e.is=t})(w||(t.ConnectionStrategy=w={}));var T;(function(e){function t(e){const t=e;return t&&(t.kind===undefined||t.kind==="id")&&s.func(t.createCancellationTokenSource)&&(t.dispose===undefined||s.func(t.dispose))}e.is=t})(T||(t.IdCancellationReceiverStrategy=T={}));var E;(function(e){function t(e){const t=e;return t&&t.kind==="request"&&s.func(t.createCancellationTokenSource)&&(t.dispose===undefined||s.func(t.dispose))}e.is=t})(E||(t.RequestCancellationReceiverStrategy=E={}));var S;(function(e){e.Message=Object.freeze({createCancellationTokenSource(e){return new c.CancellationTokenSource}});function t(e){return T.is(e)||E.is(e)}e.is=t})(S||(t.CancellationReceiverStrategy=S={}));var k;(function(e){e.Message=Object.freeze({sendCancellation(e,t){return e.sendNotification(u.type,{id:t})},cleanup(e){}});function t(e){const t=e;return t&&s.func(t.sendCancellation)&&s.func(t.cleanup)}e.is=t})(k||(t.CancellationSenderStrategy=k={}));var C;(function(e){e.Message=Object.freeze({receiver:S.Message,sender:k.Message});function t(e){const t=e;return t&&S.is(t.receiver)&&k.is(t.sender)}e.is=t})(C||(t.CancellationStrategy=C={}));var R;(function(e){function t(e){const t=e;return t&&s.func(t.handleMessage)}e.is=t})(R||(t.MessageStrategy=R={}));var M;(function(e){function t(e){const t=e;return t&&(C.is(t.cancellationStrategy)||w.is(t.connectionStrategy)||R.is(t.messageStrategy))}e.is=t})(M||(t.ConnectionOptions=M={}));var j;(function(e){e[e["New"]=1]="New";e[e["Listening"]=2]="Listening";e[e["Closed"]=3]="Closed";e[e["Disposed"]=4]="Disposed"})(j||(j={}));function O(e,r,d,g){const w=d!==undefined?d:t.NullLogger;let E=0;let S=0;let k=0;const M="2.0";let O=undefined;const P=new Map;let N=undefined;const x=new Map;const L=new Map;let q;let A=new o.LinkedMap;let $=new Map;let D=new Set;let z=new Map;let I=p.Off;let B=m.Text;let W;let U=j.New;const F=new a.Emitter;const J=new a.Emitter;const V=new a.Emitter;const H=new a.Emitter;const G=new a.Emitter;const K=g&&g.cancellationStrategy?g.cancellationStrategy:C.Message;function Q(e){if(e===null){throw new Error(`Can't send requests with id null since the response can't be correlated.`)}return"req-"+e.toString()}function X(e){if(e===null){return"res-unknown-"+(++k).toString()}else{return"res-"+e.toString()}}function Y(){return"not-"+(++S).toString()}function Z(e,t){if(i.Message.isRequest(t)){e.set(Q(t.id),t)}else if(i.Message.isResponse(t)){e.set(X(t.id),t)}else{e.set(Y(),t)}}function ee(e){return undefined}function te(){return U===j.Listening}function re(){return U===j.Closed}function ne(){return U===j.Disposed}function se(){if(U===j.New||U===j.Listening){U=j.Closed;J.fire(undefined)}}function ie(e){F.fire([e,undefined,undefined])}function oe(e){F.fire(e)}e.onClose(se);e.onError(ie);r.onClose(se);r.onError(oe);function ae(){if(q||A.size===0){return}q=(0,n.default)().timer.setImmediate((()=>{q=undefined;ue()}))}function ce(e){if(i.Message.isRequest(e)){le(e)}else if(i.Message.isNotification(e)){he(e)}else if(i.Message.isResponse(e)){de(e)}else{pe(e)}}function ue(){if(A.size===0){return}const e=A.shift();try{const t=g?.messageStrategy;if(R.is(t)){t.handleMessage(e,ce)}else{ce(e)}}finally{ae()}}const fe=e=>{try{if(i.Message.isNotification(e)&&e.method===u.type.method){const t=e.params.id;const n=Q(t);const s=A.get(n);if(i.Message.isRequest(s)){const i=g?.connectionStrategy;const o=i&&i.cancelUndispatched?i.cancelUndispatched(s,ee):ee(s);if(o&&(o.error!==undefined||o.result!==undefined)){A.delete(n);z.delete(t);o.id=s.id;be(o,e.method,Date.now());r.write(o).catch((()=>w.error(`Sending response for canceled message failed.`)));return}}const o=z.get(t);if(o!==undefined){o.cancel();_e(e);return}else{D.add(t)}}Z(A,e)}finally{ae()}};function le(e){if(ne()){return}function t(t,n,s){const o={jsonrpc:M,id:e.id};if(t instanceof i.ResponseError){o.error=t.toJson()}else{o.result=t===undefined?null:t}be(o,n,s);r.write(o).catch((()=>w.error(`Sending response failed.`)))}function n(t,n,s){const i={jsonrpc:M,id:e.id,error:t.toJson()};be(i,n,s);r.write(i).catch((()=>w.error(`Sending response failed.`)))}function o(t,n,s){if(t===undefined){t=null}const i={jsonrpc:M,id:e.id,result:t};be(i,n,s);r.write(i).catch((()=>w.error(`Sending response failed.`)))}ve(e);const a=P.get(e.method);let c;let u;if(a){c=a.type;u=a.handler}const f=Date.now();if(u||O){const r=e.id??String(Date.now());const a=T.is(K.receiver)?K.receiver.createCancellationTokenSource(r):K.receiver.createCancellationTokenSource(e);if(e.id!==null&&D.has(e.id)){a.cancel()}if(e.id!==null){z.set(r,a)}try{let l;if(u){if(e.params===undefined){if(c!==undefined&&c.numberOfParams!==0){n(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${e.method} defines ${c.numberOfParams} params but received none.`),e.method,f);return}l=u(a.token)}else if(Array.isArray(e.params)){if(c!==undefined&&c.parameterStructures===i.ParameterStructures.byName){n(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,f);return}l=u(...e.params,a.token)}else{if(c!==undefined&&c.parameterStructures===i.ParameterStructures.byPosition){n(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,f);return}l=u(e.params,a.token)}}else if(O){l=O(e.method,e.params,a.token)}const d=l;if(!l){z.delete(r);o(l,e.method,f)}else if(d.then){d.then((n=>{z.delete(r);t(n,e.method,f)}),(t=>{z.delete(r);if(t instanceof i.ResponseError){n(t,e.method,f)}else if(t&&s.string(t.message)){n(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,f)}else{n(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,f)}}))}else{z.delete(r);t(l,e.method,f)}}catch(l){z.delete(r);if(l instanceof i.ResponseError){t(l,e.method,f)}else if(l&&s.string(l.message)){n(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${l.message}`),e.method,f)}else{n(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,f)}}}else{n(new i.ResponseError(i.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,f)}}function de(e){if(ne()){return}if(e.id===null){if(e.error){w.error(`Received response message without id: Error is: \n${JSON.stringify(e.error,undefined,4)}`)}else{w.error(`Received response message without id. No further error information provided.`)}}else{const r=e.id;const n=$.get(r);we(e,n);if(n!==undefined){$.delete(r);try{if(e.error){const t=e.error;n.reject(new i.ResponseError(t.code,t.message,t.data))}else if(e.result!==undefined){n.resolve(e.result)}else{throw new Error("Should never happen.")}}catch(t){if(t.message){w.error(`Response handler '${n.method}' failed with message: ${t.message}`)}else{w.error(`Response handler '${n.method}' failed unexpectedly.`)}}}}}function he(e){if(ne()){return}let t=undefined;let r;if(e.method===u.type.method){const t=e.params.id;D.delete(t);_e(e);return}else{const n=x.get(e.method);if(n){r=n.handler;t=n.type}}if(r||N){try{_e(e);if(r){if(e.params===undefined){if(t!==undefined){if(t.numberOfParams!==0&&t.parameterStructures!==i.ParameterStructures.byName){w.error(`Notification ${e.method} defines ${t.numberOfParams} params but received none.`)}}r()}else if(Array.isArray(e.params)){const n=e.params;if(e.method===l.type.method&&n.length===2&&f.is(n[0])){r({token:n[0],value:n[1]})}else{if(t!==undefined){if(t.parameterStructures===i.ParameterStructures.byName){w.error(`Notification ${e.method} defines parameters by name but received parameters by position`)}if(t.numberOfParams!==e.params.length){w.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${n.length} arguments`)}}r(...n)}}else{if(t!==undefined&&t.parameterStructures===i.ParameterStructures.byPosition){w.error(`Notification ${e.method} defines parameters by position but received parameters by name`)}r(e.params)}}else if(N){N(e.method,e.params)}}catch(n){if(n.message){w.error(`Notification handler '${e.method}' failed with message: ${n.message}`)}else{w.error(`Notification handler '${e.method}' failed unexpectedly.`)}}}else{V.fire(e)}}function pe(e){if(!e){w.error("Received empty message.");return}w.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(e,null,4)}`);const t=e;if(s.string(t.id)||s.number(t.id)){const e=t.id;const r=$.get(e);if(r){r.reject(new Error("The received response has neither a result nor an error property."))}}}function ge(e){if(e===undefined||e===null){return undefined}switch(I){case p.Verbose:return JSON.stringify(e,null,4);case p.Compact:return JSON.stringify(e);default:return undefined}}function me(e){if(I===p.Off||!W){return}if(B===m.Text){let t=undefined;if((I===p.Verbose||I===p.Compact)&&e.params){t=`Params: ${ge(e.params)}\n\n`}W.log(`Sending request '${e.method} - (${e.id})'.`,t)}else{Te("send-request",e)}}function ye(e){if(I===p.Off||!W){return}if(B===m.Text){let t=undefined;if(I===p.Verbose||I===p.Compact){if(e.params){t=`Params: ${ge(e.params)}\n\n`}else{t="No parameters provided.\n\n"}}W.log(`Sending notification '${e.method}'.`,t)}else{Te("send-notification",e)}}function be(e,t,r){if(I===p.Off||!W){return}if(B===m.Text){let n=undefined;if(I===p.Verbose||I===p.Compact){if(e.error&&e.error.data){n=`Error data: ${ge(e.error.data)}\n\n`}else{if(e.result){n=`Result: ${ge(e.result)}\n\n`}else if(e.error===undefined){n="No result returned.\n\n"}}}W.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-r}ms`,n)}else{Te("send-response",e)}}function ve(e){if(I===p.Off||!W){return}if(B===m.Text){let t=undefined;if((I===p.Verbose||I===p.Compact)&&e.params){t=`Params: ${ge(e.params)}\n\n`}W.log(`Received request '${e.method} - (${e.id})'.`,t)}else{Te("receive-request",e)}}function _e(e){if(I===p.Off||!W||e.method===b.type.method){return}if(B===m.Text){let t=undefined;if(I===p.Verbose||I===p.Compact){if(e.params){t=`Params: ${ge(e.params)}\n\n`}else{t="No parameters provided.\n\n"}}W.log(`Received notification '${e.method}'.`,t)}else{Te("receive-notification",e)}}function we(e,t){if(I===p.Off||!W){return}if(B===m.Text){let r=undefined;if(I===p.Verbose||I===p.Compact){if(e.error&&e.error.data){r=`Error data: ${ge(e.error.data)}\n\n`}else{if(e.result){r=`Result: ${ge(e.result)}\n\n`}else if(e.error===undefined){r="No result returned.\n\n"}}}if(t){const n=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:"";W.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${n}`,r)}else{W.log(`Received response ${e.id} without active response promise.`,r)}}else{Te("receive-response",e)}}function Te(e,t){if(!W||I===p.Off){return}const r={isLSPMessage:true,type:e,message:t,timestamp:Date.now()};W.log(r)}function Ee(){if(re()){throw new _(v.Closed,"Connection is closed.")}if(ne()){throw new _(v.Disposed,"Connection is disposed.")}}function Se(){if(te()){throw new _(v.AlreadyListening,"Connection is already listening")}}function ke(){if(!te()){throw new Error("Call listen() first.")}}function Ce(e){if(e===undefined){return null}else{return e}}function Re(e){if(e===null){return undefined}else{return e}}function Me(e){return e!==undefined&&e!==null&&!Array.isArray(e)&&typeof e==="object"}function je(e,t){switch(e){case i.ParameterStructures.auto:if(Me(t)){return Re(t)}else{return[Ce(t)]}case i.ParameterStructures.byName:if(!Me(t)){throw new Error(`Received parameters by name but param is not an object literal.`)}return Re(t);case i.ParameterStructures.byPosition:return[Ce(t)];default:throw new Error(`Unknown parameter structure ${e.toString()}`)}}function Oe(e,t){let r;const n=e.numberOfParams;switch(n){case 0:r=undefined;break;case 1:r=je(e.parameterStructures,t[0]);break;default:r=[];for(let e=0;e{Ee();let n;let o;if(s.string(e)){n=e;const r=t[0];let s=0;let a=i.ParameterStructures.auto;if(i.ParameterStructures.is(r)){s=1;a=r}let c=t.length;const u=c-s;switch(u){case 0:o=undefined;break;case 1:o=je(a,t[s]);break;default:if(a===i.ParameterStructures.byName){throw new Error(`Received ${u} parameters for 'by Name' notification parameter structure.`)}o=t.slice(s,c).map((e=>Ce(e)));break}}else{const r=t;n=e.method;o=Oe(e,r)}const a={jsonrpc:M,method:n,params:o};ye(a);return r.write(a).catch((e=>{w.error(`Sending notification failed.`);throw e}))},onNotification:(e,t)=>{Ee();let r;if(s.func(e)){N=e}else if(t){if(s.string(e)){r=e;x.set(e,{type:undefined,handler:t})}else{r=e.method;x.set(e.method,{type:e,handler:t})}}return{dispose:()=>{if(r!==undefined){x.delete(r)}else{N=undefined}}}},onProgress:(e,t,r)=>{if(L.has(t)){throw new Error(`Progress handler for token ${t} already registered`)}L.set(t,r);return{dispose:()=>{L.delete(t)}}},sendProgress:(e,t,r)=>Pe.sendNotification(l.type,{token:t,value:r}),onUnhandledProgress:H.event,sendRequest:(e,...t)=>{Ee();ke();let n;let o;let a=undefined;if(s.string(e)){n=e;const r=t[0];const s=t[t.length-1];let u=0;let f=i.ParameterStructures.auto;if(i.ParameterStructures.is(r)){u=1;f=r}let l=t.length;if(c.CancellationToken.is(s)){l=l-1;a=s}const d=l-u;switch(d){case 0:o=undefined;break;case 1:o=je(f,t[u]);break;default:if(f===i.ParameterStructures.byName){throw new Error(`Received ${d} parameters for 'by Name' request parameter structure.`)}o=t.slice(u,l).map((e=>Ce(e)));break}}else{const r=t;n=e.method;o=Oe(e,r);const s=e.numberOfParams;a=c.CancellationToken.is(r[s])?r[s]:undefined}const u=E++;let f;if(a){f=a.onCancellationRequested((()=>{const e=K.sender.sendCancellation(Pe,u);if(e===undefined){w.log(`Received no promise from cancellation strategy when cancelling id ${u}`);return Promise.resolve()}else{return e.catch((()=>{w.log(`Sending cancellation messages for id ${u} failed`)}))}}))}const l={jsonrpc:M,id:u,method:n,params:o};me(l);if(typeof K.sender.enableCancellation==="function"){K.sender.enableCancellation(l)}return new Promise((async(e,t)=>{const s=t=>{e(t);K.sender.cleanup(u);f?.dispose()};const o=e=>{t(e);K.sender.cleanup(u);f?.dispose()};const a={method:n,timerStart:Date.now(),resolve:s,reject:o};try{await r.write(l);$.set(u,a)}catch(c){w.error(`Sending request failed.`);a.reject(new i.ResponseError(i.ErrorCodes.MessageWriteError,c.message?c.message:"Unknown reason"));throw c}}))},onRequest:(e,t)=>{Ee();let r=null;if(h.is(e)){r=undefined;O=e}else if(s.string(e)){r=null;if(t!==undefined){r=e;P.set(e,{handler:t,type:undefined})}}else{if(t!==undefined){r=e.method;P.set(e.method,{type:e,handler:t})}}return{dispose:()=>{if(r===null){return}if(r!==undefined){P.delete(r)}else{O=undefined}}}},hasPendingResponse:()=>$.size>0,trace:async(e,t,r)=>{let n=false;let i=m.Text;if(r!==undefined){if(s.boolean(r)){n=r}else{n=r.sendNotification||false;i=r.traceFormat||m.Text}}I=e;B=i;if(I===p.Off){W=undefined}else{W=t}if(n&&!re()&&!ne()){await Pe.sendNotification(y.type,{value:p.toString(e)})}},onError:F.event,onClose:J.event,onUnhandledNotification:V.event,onDispose:G.event,end:()=>{r.end()},dispose:()=>{if(ne()){return}U=j.Disposed;G.fire(undefined);const t=new i.ResponseError(i.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const e of $.values()){e.reject(t)}$=new Map;z=new Map;D=new Set;A=new o.LinkedMap;if(s.func(r.dispose)){r.dispose()}if(s.func(e.dispose)){e.dispose()}},listen:()=>{Ee();Se();U=j.Listening;e.listen(fe)},inspect:()=>{(0,n.default)().console.log("inspect")}};Pe.onNotification(b.type,(e=>{if(I===p.Off||!W){return}const t=I===p.Verbose||I===p.Compact;W.log(e.message,t?e.verbose:undefined)}));Pe.onNotification(l.type,(e=>{const t=L.get(e.token);if(t){t(e.value)}else{H.fire(e)}}));return Pe}t.createMessageConnection=O},34019:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Disposable=void 0;var r;(function(e){function t(e){return{dispose:e}}e.create=t})(r||(t.Disposable=r={}))},62676:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Emitter=t.Event=void 0;const n=r(69590);var s;(function(e){const t={dispose(){}};e.None=function(){return t}})(s||(t.Event=s={}));class i{add(e,t=null,r){if(!this._callbacks){this._callbacks=[];this._contexts=[]}this._callbacks.push(e);this._contexts.push(t);if(Array.isArray(r)){r.push({dispose:()=>this.remove(e,t)})}}remove(e,t=null){if(!this._callbacks){return}let r=false;for(let n=0,s=this._callbacks.length;n{if(!this._callbacks){this._callbacks=new i}if(this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()){this._options.onFirstListenerAdd(this)}this._callbacks.add(e,t);const n={dispose:()=>{if(!this._callbacks){return}this._callbacks.remove(e,t);n.dispose=o._noop;if(this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()){this._options.onLastListenerRemove(this)}}};if(Array.isArray(r)){r.push(n)}return n}}return this._event}fire(e){if(this._callbacks){this._callbacks.invoke.call(this._callbacks,e)}}dispose(){if(this._callbacks){this._callbacks.dispose();this._callbacks=undefined}}}t.Emitter=o;o._noop=function(){}},78585:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0;function r(e){return e===true||e===false}t.boolean=r;function n(e){return typeof e==="string"||e instanceof String}t.string=n;function s(e){return typeof e==="number"||e instanceof Number}t.number=s;function i(e){return e instanceof Error}t.error=i;function o(e){return typeof e==="function"}t.func=o;function a(e){return Array.isArray(e)}t.array=a;function c(e){return a(e)&&e.every((e=>n(e)))}t.stringArray=c},93352:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.LRUCache=t.LinkedMap=t.Touch=void 0;var n;(function(e){e.None=0;e.First=1;e.AsOld=e.First;e.Last=2;e.AsNew=e.Last})(n||(t.Touch=n={}));class s{constructor(){this[r]="LinkedMap";this._map=new Map;this._head=undefined;this._tail=undefined;this._size=0;this._state=0}clear(){this._map.clear();this._head=undefined;this._tail=undefined;this._size=0;this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=n.None){const r=this._map.get(e);if(!r){return undefined}if(t!==n.None){this.touch(r,t)}return r.value}set(e,t,r=n.None){let s=this._map.get(e);if(s){s.value=t;if(r!==n.None){this.touch(s,r)}}else{s={key:e,value:t,next:undefined,previous:undefined};switch(r){case n.None:this.addItemLast(s);break;case n.First:this.addItemFirst(s);break;case n.Last:this.addItemLast(s);break;default:this.addItemLast(s);break}this._map.set(e,s);this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(!t){return undefined}this._map.delete(e);this.removeItem(t);this._size--;return t.value}shift(){if(!this._head&&!this._tail){return undefined}if(!this._head||!this._tail){throw new Error("Invalid list")}const e=this._head;this._map.delete(e.key);this.removeItem(e);this._size--;return e.value}forEach(e,t){const r=this._state;let n=this._head;while(n){if(t){e.bind(t)(n.value,n.key,this)}else{e(n.value,n.key,this)}if(this._state!==r){throw new Error(`LinkedMap got modified during iteration.`)}n=n.next}}keys(){const e=this._state;let t=this._head;const r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e){throw new Error(`LinkedMap got modified during iteration.`)}if(t){const e={value:t.key,done:false};t=t.next;return e}else{return{value:undefined,done:true}}}};return r}values(){const e=this._state;let t=this._head;const r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e){throw new Error(`LinkedMap got modified during iteration.`)}if(t){const e={value:t.value,done:false};t=t.next;return e}else{return{value:undefined,done:true}}}};return r}entries(){const e=this._state;let t=this._head;const r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e){throw new Error(`LinkedMap got modified during iteration.`)}if(t){const e={value:[t.key,t.value],done:false};t=t.next;return e}else{return{value:undefined,done:true}}}};return r}[(r=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size){return}if(e===0){this.clear();return}let t=this._head;let r=this.size;while(t&&r>e){this._map.delete(t.key);t=t.next;r--}this._head=t;this._size=r;if(t){t.previous=undefined}this._state++}addItemFirst(e){if(!this._head&&!this._tail){this._tail=e}else if(!this._head){throw new Error("Invalid list")}else{e.next=this._head;this._head.previous=e}this._head=e;this._state++}addItemLast(e){if(!this._head&&!this._tail){this._head=e}else if(!this._tail){throw new Error("Invalid list")}else{e.previous=this._tail;this._tail.next=e}this._tail=e;this._state++}removeItem(e){if(e===this._head&&e===this._tail){this._head=undefined;this._tail=undefined}else if(e===this._head){if(!e.next){throw new Error("Invalid list")}e.next.previous=undefined;this._head=e.next}else if(e===this._tail){if(!e.previous){throw new Error("Invalid list")}e.previous.next=undefined;this._tail=e.previous}else{const t=e.next;const r=e.previous;if(!t||!r){throw new Error("Invalid list")}t.previous=r;r.next=t}e.next=undefined;e.previous=undefined;this._state++}touch(e,t){if(!this._head||!this._tail){throw new Error("Invalid list")}if(t!==n.First&&t!==n.Last){return}if(t===n.First){if(e===this._head){return}const t=e.next;const r=e.previous;if(e===this._tail){r.next=undefined;this._tail=r}else{t.previous=r;r.next=t}e.previous=undefined;e.next=this._head;this._head.previous=e;this._head=e;this._state++}else if(t===n.Last){if(e===this._tail){return}const t=e.next;const r=e.previous;if(e===this._head){t.previous=undefined;this._head=t}else{t.previous=r;r.next=t}e.next=undefined;e.previous=this._tail;this._tail.next=e;this._tail=e;this._state++}}toJSON(){const e=[];this.forEach(((t,r)=>{e.push([r,t])}));return e}fromJSON(e){this.clear();for(const[t,r]of e){this.set(t,r)}}}t.LinkedMap=s;class i extends s{constructor(e,t=1){super();this._limit=e;this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e;this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1);this.checkTrim()}get(e,t=n.AsNew){return super.get(e,t)}peek(e){return super.get(e,n.None)}set(e,t){super.set(e,t,n.Last);this.checkTrim();return this}checkTrim(){if(this.size>this._limit){this.trimOld(Math.round(this._limit*this._ratio))}}}t.LRUCache=i},89244:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbstractMessageBuffer=void 0;const r=13;const n=10;const s="\r\n";class i{constructor(e="utf-8"){this._encoding=e;this._chunks=[];this._totalLength=0}get encoding(){return this._encoding}append(e){const t=typeof e==="string"?this.fromString(e,this._encoding):e;this._chunks.push(t);this._totalLength+=t.byteLength}tryReadHeaders(e=false){if(this._chunks.length===0){return undefined}let t=0;let i=0;let o=0;let a=0;e:while(ithis._totalLength){throw new Error(`Cannot read so many bytes!`)}if(this._chunks[0].byteLength===e){const t=this._chunks[0];this._chunks.shift();this._totalLength-=e;return this.asNative(t)}if(this._chunks[0].byteLength>e){const t=this._chunks[0];const r=this.asNative(t,e);this._chunks[0]=t.slice(e);this._totalLength-=e;return r}const t=this.allocNative(e);let r=0;let n=0;while(e>0){const s=this._chunks[n];if(s.byteLength>e){const i=s.slice(0,e);t.set(i,r);r+=e;this._chunks[n]=s.slice(e);this._totalLength-=e;e-=e}else{t.set(s,r);r+=s.byteLength;this._chunks.shift();this._totalLength-=s.byteLength;e-=s.byteLength}}return t}}t.AbstractMessageBuffer=i},59085:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;const n=r(69590);const s=r(78585);const i=r(62676);const o=r(94323);var a;(function(e){function t(e){let t=e;return t&&s.func(t.listen)&&s.func(t.dispose)&&s.func(t.onError)&&s.func(t.onClose)&&s.func(t.onPartialMessage)}e.is=t})(a||(t.MessageReader=a={}));class c{constructor(){this.errorEmitter=new i.Emitter;this.closeEmitter=new i.Emitter;this.partialMessageEmitter=new i.Emitter}dispose(){this.errorEmitter.dispose();this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(undefined)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){if(e instanceof Error){return e}else{return new Error(`Reader received error. Reason: ${s.string(e.message)?e.message:"unknown"}`)}}}t.AbstractMessageReader=c;var u;(function(e){function t(e){let t;let r;let s;const i=new Map;let o;const a=new Map;if(e===undefined||typeof e==="string"){t=e??"utf-8"}else{t=e.charset??"utf-8";if(e.contentDecoder!==undefined){s=e.contentDecoder;i.set(s.name,s)}if(e.contentDecoders!==undefined){for(const t of e.contentDecoders){i.set(t.name,t)}}if(e.contentTypeDecoder!==undefined){o=e.contentTypeDecoder;a.set(o.name,o)}if(e.contentTypeDecoders!==undefined){for(const t of e.contentTypeDecoders){a.set(t.name,t)}}}if(o===undefined){o=(0,n.default)().applicationJson.decoder;a.set(o.name,o)}return{charset:t,contentDecoder:s,contentDecoders:i,contentTypeDecoder:o,contentTypeDecoders:a}}e.fromOptions=t})(u||(u={}));class f extends c{constructor(e,t){super();this.readable=e;this.options=u.fromOptions(t);this.buffer=(0,n.default)().messageBuffer.create(this.options.charset);this._partialMessageTimeout=1e4;this.nextMessageLength=-1;this.messageToken=0;this.readSemaphore=new o.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1;this.messageToken=0;this.partialMessageTimer=undefined;this.callback=e;const t=this.readable.onData((e=>{this.onData(e)}));this.readable.onError((e=>this.fireError(e)));this.readable.onClose((()=>this.fireClose()));return t}onData(e){try{this.buffer.append(e);while(true){if(this.nextMessageLength===-1){const e=this.buffer.tryReadHeaders(true);if(!e){return}const t=e.get("content-length");if(!t){this.fireError(new Error(`Header must provide a Content-Length property.\n${JSON.stringify(Object.fromEntries(e))}`));return}const r=parseInt(t);if(isNaN(r)){this.fireError(new Error(`Content-Length value must be a number. Got ${t}`));return}this.nextMessageLength=r}const e=this.buffer.tryReadBody(this.nextMessageLength);if(e===undefined){this.setPartialMessageTimer();return}this.clearPartialMessageTimer();this.nextMessageLength=-1;this.readSemaphore.lock((async()=>{const t=this.options.contentDecoder!==undefined?await this.options.contentDecoder.decode(e):e;const r=await this.options.contentTypeDecoder.decode(t,this.options);this.callback(r)})).catch((e=>{this.fireError(e)}))}}catch(t){this.fireError(t)}}clearPartialMessageTimer(){if(this.partialMessageTimer){this.partialMessageTimer.dispose();this.partialMessageTimer=undefined}}setPartialMessageTimer(){this.clearPartialMessageTimer();if(this._partialMessageTimeout<=0){return}this.partialMessageTimer=(0,n.default)().timer.setTimeout(((e,t)=>{this.partialMessageTimer=undefined;if(e===this.messageToken){this.firePartialMessage({messageToken:e,waitingTime:t});this.setPartialMessageTimer()}}),this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout)}}t.ReadableStreamMessageReader=f},23193:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=void 0;const n=r(69590);const s=r(78585);const i=r(94323);const o=r(62676);const a="Content-Length: ";const c="\r\n";var u;(function(e){function t(e){let t=e;return t&&s.func(t.dispose)&&s.func(t.onClose)&&s.func(t.onError)&&s.func(t.write)}e.is=t})(u||(t.MessageWriter=u={}));class f{constructor(){this.errorEmitter=new o.Emitter;this.closeEmitter=new o.Emitter}dispose(){this.errorEmitter.dispose();this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,r){this.errorEmitter.fire([this.asError(e),t,r])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(undefined)}asError(e){if(e instanceof Error){return e}else{return new Error(`Writer received error. Reason: ${s.string(e.message)?e.message:"unknown"}`)}}}t.AbstractMessageWriter=f;var l;(function(e){function t(e){if(e===undefined||typeof e==="string"){return{charset:e??"utf-8",contentTypeEncoder:(0,n.default)().applicationJson.encoder}}else{return{charset:e.charset??"utf-8",contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0,n.default)().applicationJson.encoder}}}e.fromOptions=t})(l||(l={}));class d extends f{constructor(e,t){super();this.writable=e;this.options=l.fromOptions(t);this.errorCount=0;this.writeSemaphore=new i.Semaphore(1);this.writable.onError((e=>this.fireError(e)));this.writable.onClose((()=>this.fireClose()))}async write(e){return this.writeSemaphore.lock((async()=>{const t=this.options.contentTypeEncoder.encode(e,this.options).then((e=>{if(this.options.contentEncoder!==undefined){return this.options.contentEncoder.encode(e)}else{return e}}));return t.then((t=>{const r=[];r.push(a,t.byteLength.toString(),c);r.push(c);return this.doWrite(e,r,t)}),(e=>{this.fireError(e);throw e}))}))}async doWrite(e,t,r){try{await this.writable.write(t.join(""),"ascii");return this.writable.write(r)}catch(n){this.handleError(n,e);return Promise.reject(n)}}handleError(e,t){this.errorCount++;this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}t.WriteableStreamMessageWriter=d},96177:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Message=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;const n=r(78585);var s;(function(e){e.ParseError=-32700;e.InvalidRequest=-32600;e.MethodNotFound=-32601;e.InvalidParams=-32602;e.InternalError=-32603;e.jsonrpcReservedErrorRangeStart=-32099;e.serverErrorStart=-32099;e.MessageWriteError=-32099;e.MessageReadError=-32098;e.PendingResponseRejected=-32097;e.ConnectionInactive=-32096;e.ServerNotInitialized=-32002;e.UnknownErrorCode=-32001;e.jsonrpcReservedErrorRangeEnd=-32e3;e.serverErrorEnd=-32e3})(s||(t.ErrorCodes=s={}));class i extends Error{constructor(e,t,r){super(t);this.code=n.number(e)?e:s.UnknownErrorCode;this.data=r;Object.setPrototypeOf(this,i.prototype)}toJson(){const e={code:this.code,message:this.message};if(this.data!==undefined){e.data=this.data}return e}}t.ResponseError=i;class o{constructor(e){this.kind=e}static is(e){return e===o.auto||e===o.byName||e===o.byPosition}toString(){return this.kind}}t.ParameterStructures=o;o.auto=new o("auto");o.byPosition=new o("byPosition");o.byName=new o("byName");class a{constructor(e,t){this.method=e;this.numberOfParams=t}get parameterStructures(){return o.auto}}t.AbstractMessageSignature=a;class c extends a{constructor(e){super(e,0)}}t.RequestType0=c;class u extends a{constructor(e,t=o.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}}t.RequestType=u;class f extends a{constructor(e,t=o.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}}t.RequestType1=f;class l extends a{constructor(e){super(e,2)}}t.RequestType2=l;class d extends a{constructor(e){super(e,3)}}t.RequestType3=d;class h extends a{constructor(e){super(e,4)}}t.RequestType4=h;class p extends a{constructor(e){super(e,5)}}t.RequestType5=p;class g extends a{constructor(e){super(e,6)}}t.RequestType6=g;class m extends a{constructor(e){super(e,7)}}t.RequestType7=m;class y extends a{constructor(e){super(e,8)}}t.RequestType8=y;class b extends a{constructor(e){super(e,9)}}t.RequestType9=b;class v extends a{constructor(e,t=o.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}}t.NotificationType=v;class _ extends a{constructor(e){super(e,0)}}t.NotificationType0=_;class w extends a{constructor(e,t=o.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}}t.NotificationType1=w;class T extends a{constructor(e){super(e,2)}}t.NotificationType2=T;class E extends a{constructor(e){super(e,3)}}t.NotificationType3=E;class S extends a{constructor(e){super(e,4)}}t.NotificationType4=S;class k extends a{constructor(e){super(e,5)}}t.NotificationType5=k;class C extends a{constructor(e){super(e,6)}}t.NotificationType6=C;class R extends a{constructor(e){super(e,7)}}t.NotificationType7=R;class M extends a{constructor(e){super(e,8)}}t.NotificationType8=M;class j extends a{constructor(e){super(e,9)}}t.NotificationType9=j;var O;(function(e){function t(e){const t=e;return t&&n.string(t.method)&&(n.string(t.id)||n.number(t.id))}e.isRequest=t;function r(e){const t=e;return t&&n.string(t.method)&&e.id===void 0}e.isNotification=r;function s(e){const t=e;return t&&(t.result!==void 0||!!t.error)&&(n.string(t.id)||n.number(t.id)||t.id===null)}e.isResponse=s})(O||(t.Message=O={}))},69590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});let r;function n(){if(r===undefined){throw new Error(`No runtime abstraction layer installed`)}return r}(function(e){function t(e){if(e===undefined){throw new Error(`No runtime abstraction layer provided`)}r=e}e.install=t})(n||(n={}));t["default"]=n},94323:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Semaphore=void 0;const n=r(69590);class s{constructor(e=1){if(e<=0){throw new Error("Capacity must be greater than 0")}this._capacity=e;this._active=0;this._waiting=[]}lock(e){return new Promise(((t,r)=>{this._waiting.push({thunk:e,resolve:t,reject:r});this.runNext()}))}get active(){return this._active}runNext(){if(this._waiting.length===0||this._active===this._capacity){return}(0,n.default)().timer.setImmediate((()=>this.doRunNext()))}doRunNext(){if(this._waiting.length===0||this._active===this._capacity){return}const e=this._waiting.shift();this._active++;if(this._active>this._capacity){throw new Error(`To many thunks active`)}try{const t=e.thunk();if(t instanceof Promise){t.then((t=>{this._active--;e.resolve(t);this.runNext()}),(t=>{this._active--;e.reject(t);this.runNext()}))}else{this._active--;e.resolve(t);this.runNext()}}catch(t){this._active--;e.reject(t);this.runNext()}}}t.Semaphore=s},74996:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=void 0;const n=r(59850);var s;(function(e){e.Continue=0;e.Cancelled=1})(s||(s={}));class i{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null){return}const t=new SharedArrayBuffer(4);const r=new Int32Array(t,0,1);r[0]=s.Continue;this.buffers.set(e.id,t);e.$cancellationData=t}async sendCancellation(e,t){const r=this.buffers.get(t);if(r===undefined){return}const n=new Int32Array(r,0,1);Atomics.store(n,0,s.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}}t.SharedArraySenderStrategy=i;class o{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===s.Cancelled}get onCancellationRequested(){throw new Error(`Cancellation over SharedArrayBuffer doesn't support cancellation events`)}}class a{constructor(e){this.token=new o(e)}cancel(){}dispose(){}}class c{constructor(){this.kind="request"}createCancellationTokenSource(e){const t=e.$cancellationData;if(t===undefined){return new n.CancellationTokenSource}return new a(t)}}t.SharedArrayReceiverStrategy=c},96092:(e,t,r)=>{"use strict";r.d(t,{ConsoleLogger:()=>l,listen:()=>d});var n=r(76439);var s=r(96177);class i{constructor(){this.disposables=[]}dispose(){while(this.disposables.length!==0){this.disposables.pop().dispose()}}push(e){const t=this.disposables;t.push(e);return{dispose(){const r=t.indexOf(e);if(r!==-1){t.splice(r,1)}}}}}var o=r(59085);class a extends o.AbstractMessageReader{constructor(e){super();this.socket=e;this.state="initial";this.events=[];this.socket.onMessage((e=>this.readMessage(e)));this.socket.onError((e=>this.fireError(e)));this.socket.onClose(((e,t)=>{if(e!==1e3){const r={name:""+e,message:`Error during socket reconnect: code = ${e}, reason = ${t}`};this.fireError(r)}this.fireClose()}))}listen(e){if(this.state==="initial"){this.state="listening";this.callback=e;while(this.events.length!==0){const e=this.events.pop();if(e.message){this.readMessage(e.message)}else if(e.error){this.fireError(e.error)}else{this.fireClose()}}}return{dispose:()=>{if(this.callback===e){this.callback=undefined}}}}readMessage(e){if(this.state==="initial"){this.events.splice(0,0,{message:e})}else if(this.state==="listening"){const t=JSON.parse(e);this.callback(t)}}fireError(e){if(this.state==="initial"){this.events.splice(0,0,{error:e})}else if(this.state==="listening"){super.fireError(e)}}fireClose(){if(this.state==="initial"){this.events.splice(0,0,{})}else if(this.state==="listening"){super.fireClose()}this.state="closed"}}var c=r(23193);class u extends c.AbstractMessageWriter{constructor(e){super();this.socket=e;this.errorCount=0}end(){}async write(e){try{const t=JSON.stringify(e);this.socket.send(t)}catch(t){this.errorCount++;this.fireError(t,e,this.errorCount)}}}function f(e,t){const r=new a(e);const s=new u(e);const i=(0,n.createMessageConnection)(r,s,t);i.onClose((()=>i.dispose()));return i}class l{error(e){console.error(e)}warn(e){console.warn(e)}info(e){console.info(e)}log(e){console.log(e)}debug(e){console.debug(e)}}function d(e){const{webSocket:t,onConnection:r}=e;const n=e.logger||new l;t.onopen=()=>{const e=h(t);const s=f(e,n);r(s)}}function h(e){return{send:t=>e.send(t),onMessage:t=>{e.onmessage=e=>t(e.data)},onError:t=>{e.onerror=e=>{if("message"in e){t(e.message)}}},onClose:t=>{e.onclose=e=>t(e.code,e.reason)},dispose:()=>e.close()}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/265.6f9e37c0b72db64203b1.js b/share/jupyter/lab/static/265.6f9e37c0b72db64203b1.js new file mode 100644 index 0000000..1fd7af5 --- /dev/null +++ b/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/share/jupyter/lab/static/2658.d1cae1b08b068d864368.js b/share/jupyter/lab/static/2658.d1cae1b08b068d864368.js new file mode 100644 index 0000000..d849ade --- /dev/null +++ b/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/share/jupyter/lab/static/26683bf201fb258a2237.woff b/share/jupyter/lab/static/26683bf201fb258a2237.woff new file mode 100644 index 0000000..eb66c46 Binary files /dev/null and b/share/jupyter/lab/static/26683bf201fb258a2237.woff differ diff --git a/share/jupyter/lab/static/2681.a47f40e38ecd31ccd687.js b/share/jupyter/lab/static/2681.a47f40e38ecd31ccd687.js new file mode 100644 index 0000000..5e15ae0 --- /dev/null +++ b/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/share/jupyter/lab/static/2707.61050e600b0aa9624127.js b/share/jupyter/lab/static/2707.61050e600b0aa9624127.js new file mode 100644 index 0000000..e96ee69 --- /dev/null +++ b/share/jupyter/lab/static/2707.61050e600b0aa9624127.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2707],{59171:function(e,t){var r=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 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,i=[],o;try{while((t===void 0||t-- >0)&&!(n=a.next()).done)i.push(n.value)}catch(s){o={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(o)throw o.error}}return i};var n=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var a=0,n=t.length,i;a0)&&!(n=a.next()).done)i.push(n.value)}catch(s){o={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(o)throw o.error}}return i};var n=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var a=0,n=t.length,i;a0)&&!(n=a.next()).done)i.push(n.value)}catch(s){o={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(o)throw o.error}}return i};var n=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var a=0,n=t.length,i;a1){r.autoOP=false}}var n=e.create("token","mi",r,t);e.Push(n)}e.variable=t;function r(e,t){var r;var a=e.configuration.options["digits"];var n=e.string.slice(e.i-1).match(a);var i=l.default.getFontDef(e);if(n){r=e.create("token","mn",i,n[0].replace(/[{}]/g,""));e.i+=n[0].length-1}else{r=e.create("token","mo",i,t)}e.Push(r)}e.digit=r;function i(e,t){var r=e.GetCS();e.parse("macro",[e,r])}e.controlSequence=i;function u(e,t){var r=t.attributes||{mathvariant:s.TexConstant.Variant.ITALIC};var a=e.create("token","mi",r,t.char);e.Push(a)}e.mathchar0mi=u;function c(e,t){var r=t.attributes||{};r["stretchy"]=false;var a=e.create("token","mo",r,t.char);o.default.setProperty(a,"fixStretchy",true);e.configuration.addNode("fixStretchy",a);e.Push(a)}e.mathchar0mo=c;function f(e,t){var r=t.attributes||{mathvariant:s.TexConstant.Variant.NORMAL};if(e.stack.env["font"]){r["mathvariant"]=e.stack.env["font"]}var a=e.create("token","mi",r,t.char);e.Push(a)}e.mathchar7=f;function p(e,t){var r=t.attributes||{};r=Object.assign({fence:false,stretchy:false},r);var a=e.create("token","mo",r,t.char);e.Push(a)}e.delimiter=p;function h(e,t,r,i){var o=i[0];var s=e.itemFactory.create("begin").setProperties({name:t,end:o});s=r.apply(void 0,n([e,s],a(i.slice(1)),false));e.Push(s)}e.environment=h})(u||(u={}));t["default"]=u},24404: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,i=[],o;try{while((t===void 0||t-- >0)&&!(n=a.next()).done)i.push(n.value)}catch(s){o={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(o)throw o.error}}return i};var n=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var a=0,n=t.length,i;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}};Object.defineProperty(t,"__esModule",{value:true});var s=o(r(37564));var l=r(55361);var u=o(r(72691));var c=r(34981);var f=function(){function e(e,t){if(t===void 0){t=[]}this.options={};this.packageData=new Map;this.parsers=[];this.root=null;this.nodeLists={};this.error=false;this.handlers=e.handlers;this.nodeFactory=new l.NodeFactory;this.nodeFactory.configuration=this;this.nodeFactory.setCreators(e.nodes);this.itemFactory=new s.default(e.items);this.itemFactory.configuration=this;c.defaultOptions.apply(void 0,n([this.options],a(t),false));(0,c.defaultOptions)(this.options,e.options)}e.prototype.pushParser=function(e){this.parsers.unshift(e)};e.prototype.popParser=function(){this.parsers.shift()};Object.defineProperty(e.prototype,"parser",{get:function(){return this.parsers[0]},enumerable:false,configurable:true});e.prototype.clear=function(){this.parsers=[];this.root=null;this.nodeLists={};this.error=false;this.tags.resetTag()};e.prototype.addNode=function(e,t){var r=this.nodeLists[e];if(!r){r=this.nodeLists[e]=[]}r.push(t);if(t.kind!==e){var a=u.default.getProperty(t,"in-lists")||"";var n=(a?a.split(/,/):[]).concat(e).join(",");u.default.setProperty(t,"in-lists",n)}};e.prototype.getList=function(e){var t,r;var a=this.nodeLists[e]||[];var n=[];try{for(var o=i(a),s=o.next();!s.done;s=o.next()){var l=s.value;if(this.inTree(l)){n.push(l)}}}catch(u){t={error:u}}finally{try{if(s&&!s.done&&(r=o.return))r.call(o)}finally{if(t)throw t.error}}this.nodeLists[e]=n;return n};e.prototype.removeFromList=function(e,t){var r,a;var n=this.nodeLists[e]||[];try{for(var o=i(t),s=o.next();!s.done;s=o.next()){var l=s.value;var u=n.indexOf(l);if(u>=0){n.splice(u,1)}}}catch(c){r={error:c}}finally{try{if(s&&!s.done&&(a=o.return))a.call(o)}finally{if(r)throw r.error}}};e.prototype.inTree=function(e){while(e&&e!==this.root){e=e.parent}return!!e};return e}();t["default"]=f},37720: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,i=[],o;try{while((t===void 0||t-- >0)&&!(n=a.next()).done)i.push(n.value)}catch(s){o={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(o)throw o.error}}return i};var i=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var a=0,n=t.length,i;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 s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.BaseItem=t.MmlStack=void 0;var l=s(r(98770));var u=function(){function e(e){this._nodes=e}Object.defineProperty(e.prototype,"nodes",{get:function(){return this._nodes},enumerable:false,configurable:true});e.prototype.Push=function(){var e;var t=[];for(var r=0;r{Object.defineProperty(t,"__esModule",{value:true});t.TexConstant=void 0;var r;(function(e){e.Variant={NORMAL:"normal",BOLD:"bold",ITALIC:"italic",BOLDITALIC:"bold-italic",DOUBLESTRUCK:"double-struck",FRAKTUR:"fraktur",BOLDFRAKTUR:"bold-fraktur",SCRIPT:"script",BOLDSCRIPT:"bold-script",SANSSERIF:"sans-serif",BOLDSANSSERIF:"bold-sans-serif",SANSSERIFITALIC:"sans-serif-italic",SANSSERIFBOLDITALIC:"sans-serif-bold-italic",MONOSPACE:"monospace",INITIAL:"inital",TAILED:"tailed",LOOPED:"looped",STRETCHED:"stretched",CALLIGRAPHIC:"-tex-calligraphic",BOLDCALLIGRAPHIC:"-tex-bold-calligraphic",OLDSTYLE:"-tex-oldstyle",BOLDOLDSTYLE:"-tex-bold-oldstyle",MATHITALIC:"-tex-mathit"};e.Form={PREFIX:"prefix",INFIX:"infix",POSTFIX:"postfix"};e.LineBreak={AUTO:"auto",NEWLINE:"newline",NOBREAK:"nobreak",GOODBREAK:"goodbreak",BADBREAK:"badbreak"};e.LineBreakStyle={BEFORE:"before",AFTER:"after",DUPLICATE:"duplicate",INFIXLINBREAKSTYLE:"infixlinebreakstyle"};e.IndentAlign={LEFT:"left",CENTER:"center",RIGHT:"right",AUTO:"auto",ID:"id",INDENTALIGN:"indentalign"};e.IndentShift={INDENTSHIFT:"indentshift"};e.LineThickness={THIN:"thin",MEDIUM:"medium",THICK:"thick"};e.Notation={LONGDIV:"longdiv",ACTUARIAL:"actuarial",PHASORANGLE:"phasorangle",RADICAL:"radical",BOX:"box",ROUNDEDBOX:"roundedbox",CIRCLE:"circle",LEFT:"left",RIGHT:"right",TOP:"top",BOTTOM:"bottom",UPDIAGONALSTRIKE:"updiagonalstrike",DOWNDIAGONALSTRIKE:"downdiagonalstrike",VERTICALSTRIKE:"verticalstrike",HORIZONTALSTRIKE:"horizontalstrike",NORTHEASTARROW:"northeastarrow",MADRUWB:"madruwb",UPDIAGONALARROW:"updiagonalarrow"};e.Align={TOP:"top",BOTTOM:"bottom",CENTER:"center",BASELINE:"baseline",AXIS:"axis",LEFT:"left",RIGHT:"right"};e.Lines={NONE:"none",SOLID:"solid",DASHED:"dashed"};e.Side={LEFT:"left",RIGHT:"right",LEFTOVERLAP:"leftoverlap",RIGHTOVERLAP:"rightoverlap"};e.Width={AUTO:"auto",FIT:"fit"};e.Actiontype={TOGGLE:"toggle",STATUSLINE:"statusline",TOOLTIP:"tooltip",INPUT:"input"};e.Overflow={LINBREAK:"linebreak",SCROLL:"scroll",ELIDE:"elide",TRUNCATE:"truncate",SCALE:"scale"};e.Unit={EM:"em",EX:"ex",PX:"px",IN:"in",CM:"cm",MM:"mm",PT:"pt",PC:"pc"}})(r=t.TexConstant||(t.TexConstant={}))},11252: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 i=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))n(t,e,r);i(t,e);return t};var s=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 l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var u;Object.defineProperty(t,"__esModule",{value:true});t.BaseConfiguration=t.BaseTags=t.Other=void 0;var c=r(56441);var f=r(18437);var p=l(r(98770));var h=l(r(72691));var d=r(80209);var m=o(r(94650));var v=r(17782);r(69447);var y=r(56893);new d.CharacterMap("remap",null,{"-":"−","*":"∗","`":"‘"});function g(e,t){var r=e.stack.env["font"];var a=r?{mathvariant:e.stack.env["font"]}:{};var n=f.MapHandler.getMap("remap").lookup(t);var i=(0,y.getRange)(t);var o=i?i[3]:"mo";var s=e.create("token",o,a,n?n.char:t);i[4]&&s.attributes.set("mathvariant",i[4]);if(o==="mo"){h.default.setProperty(s,"fixStretchy",true);e.configuration.addNode("fixStretchy",s)}e.Push(s)}t.Other=g;function b(e,t){throw new p.default("UndefinedControlSequence","Undefined control sequence %1","\\"+t)}function A(e,t){throw new p.default("UnknownEnv","Unknown environment '%1'",t)}function S(e){var t,r;var a=e.data;try{for(var n=s(a.getList("nonscript")),i=n.next();!i.done;i=n.next()){var o=i.value;if(o.attributes.get("scriptlevel")>0){var l=o.parent;l.childNodes.splice(l.childIndex(o),1);a.removeFromList(o.kind,[o]);if(o.isKind("mrow")){var u=o.childNodes[0];a.removeFromList("mstyle",[u]);a.removeFromList("mspace",u.childNodes[0].childNodes)}}else if(o.isKind("mrow")){o.parent.replaceChild(o.childNodes[0],o);a.removeFromList("mrow",[o])}}}catch(c){t={error:c}}finally{try{if(i&&!i.done&&(r=n.return))r.call(n)}finally{if(t)throw t.error}}}var P=function(e){a(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(v.AbstractTags);t.BaseTags=P;t.BaseConfiguration=c.Configuration.create("base",{handler:{character:["command","special","letter","digit"],delimiter:["delimiter"],macro:["delimiter","macros","mathchar0mi","mathchar0mo","mathchar7"],environment:["environment"]},fallback:{character:g,macro:b,environment:A},items:(u={},u[m.StartItem.prototype.kind]=m.StartItem,u[m.StopItem.prototype.kind]=m.StopItem,u[m.OpenItem.prototype.kind]=m.OpenItem,u[m.CloseItem.prototype.kind]=m.CloseItem,u[m.PrimeItem.prototype.kind]=m.PrimeItem,u[m.SubsupItem.prototype.kind]=m.SubsupItem,u[m.OverItem.prototype.kind]=m.OverItem,u[m.LeftItem.prototype.kind]=m.LeftItem,u[m.Middle.prototype.kind]=m.Middle,u[m.RightItem.prototype.kind]=m.RightItem,u[m.BeginItem.prototype.kind]=m.BeginItem,u[m.EndItem.prototype.kind]=m.EndItem,u[m.StyleItem.prototype.kind]=m.StyleItem,u[m.PositionItem.prototype.kind]=m.PositionItem,u[m.CellItem.prototype.kind]=m.CellItem,u[m.MmlItem.prototype.kind]=m.MmlItem,u[m.FnItem.prototype.kind]=m.FnItem,u[m.NotItem.prototype.kind]=m.NotItem,u[m.NonscriptItem.prototype.kind]=m.NonscriptItem,u[m.DotsItem.prototype.kind]=m.DotsItem,u[m.ArrayItem.prototype.kind]=m.ArrayItem,u[m.EqnArrayItem.prototype.kind]=m.EqnArrayItem,u[m.EquationItem.prototype.kind]=m.EquationItem,u),options:{maxMacros:1e3,baseURL:typeof document==="undefined"||document.getElementsByTagName("base").length===0?"":String(document.location).replace(/#.*$/,"")},tags:{base:P},postprocessors:[[S,-4]]})},94650: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,i=[],o;try{while((t===void 0||t-- >0)&&!(n=a.next()).done)i.push(n.value)}catch(s){o={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(o)throw o.error}}return i};var i=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var a=0,n=t.length,i;athis.maxrow){this.maxrow=this.row.length}var e="mtr";var t=this.factory.configuration.tags.getTag();if(t){this.row=[t].concat(this.row);e="mlabeledtr"}this.factory.configuration.tags.clearTag();var r=this.create("node",e,this.row);this.table.push(r);this.row=[]};t.prototype.EndTable=function(){e.prototype.EndTable.call(this);this.factory.configuration.tags.end();this.extendArray("columnalign",this.maxrow);this.extendArray("columnwidth",this.maxrow);this.extendArray("columnspacing",this.maxrow-1)};t.prototype.extendArray=function(e,t){if(!this.arraydef[e])return;var r=this.arraydef[e].split(/ /);var a=i([],n(r),false);if(a.length>1){while(a.length",succ:"≻",prec:"≺",approx:"≈",succeq:"⪰",preceq:"⪯",supset:"⊃",subset:"⊂",supseteq:"⊇",subseteq:"⊆",in:"∈",ni:"∋",notin:"∉",owns:"∋",gg:"≫",ll:"≪",sim:"∼",simeq:"≃",perp:"⊥",equiv:"≡",asymp:"≍",smile:"⌣",frown:"⌢",ne:"≠",neq:"≠",cong:"≅",doteq:"≐",bowtie:"⋈",models:"⊨",notChar:"⧸",Leftrightarrow:"⇔",Leftarrow:"⇐",Rightarrow:"⇒",leftrightarrow:"↔",leftarrow:"←",gets:"←",rightarrow:"→",to:["→",{accent:false}],mapsto:"↦",leftharpoonup:"↼",leftharpoondown:"↽",rightharpoonup:"⇀",rightharpoondown:"⇁",nearrow:"↗",searrow:"↘",nwarrow:"↖",swarrow:"↙",rightleftharpoons:"⇌",hookrightarrow:"↪",hookleftarrow:"↩",longleftarrow:"⟵",Longleftarrow:"⟸",longrightarrow:"⟶",Longrightarrow:"⟹",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",ldots:"…",cdots:"⋯",vdots:"⋮",ddots:"⋱",dotsc:"…",dotsb:"⋯",dotsm:"⋯",dotsi:"⋯",dotso:"…",ldotp:[".",{texClass:p.TEXCLASS.PUNCT}],cdotp:["⋅",{texClass:p.TEXCLASS.PUNCT}],colon:[":",{texClass:p.TEXCLASS.PUNCT}]});new s.CharacterMap("mathchar7",c.default.mathchar7,{Gamma:"Γ",Delta:"Δ",Theta:"Θ",Lambda:"Λ",Xi:"Ξ",Pi:"Π",Sigma:"Σ",Upsilon:"Υ",Phi:"Φ",Psi:"Ψ",Omega:"Ω",_:"_","#":"#",$:"$","%":"%","&":"&",And:"&"});new s.DelimiterMap("delimiter",c.default.delimiter,{"(":"(",")":")","[":"[","]":"]","<":"⟨",">":"⟩","\\lt":"⟨","\\gt":"⟩","/":"/","|":["|",{texClass:p.TEXCLASS.ORD}],".":"","\\\\":"\\","\\lmoustache":"⎰","\\rmoustache":"⎱","\\lgroup":"⟮","\\rgroup":"⟯","\\arrowvert":"⏐","\\Arrowvert":"‖","\\bracevert":"⎪","\\Vert":["‖",{texClass:p.TEXCLASS.ORD}],"\\|":["‖",{texClass:p.TEXCLASS.ORD}],"\\vert":["|",{texClass:p.TEXCLASS.ORD}],"\\uparrow":"↑","\\downarrow":"↓","\\updownarrow":"↕","\\Uparrow":"⇑","\\Downarrow":"⇓","\\Updownarrow":"⇕","\\backslash":"\\","\\rangle":"⟩","\\langle":"⟨","\\rbrace":"}","\\lbrace":"{","\\}":"}","\\{":"{","\\rceil":"⌉","\\lceil":"⌈","\\rfloor":"⌋","\\lfloor":"⌊","\\lbrack":"[","\\rbrack":"]"});new s.CommandMap("macros",{displaystyle:["SetStyle","D",true,0],textstyle:["SetStyle","T",false,0],scriptstyle:["SetStyle","S",false,1],scriptscriptstyle:["SetStyle","SS",false,2],rm:["SetFont",l.TexConstant.Variant.NORMAL],mit:["SetFont",l.TexConstant.Variant.ITALIC],oldstyle:["SetFont",l.TexConstant.Variant.OLDSTYLE],cal:["SetFont",l.TexConstant.Variant.CALLIGRAPHIC],it:["SetFont",l.TexConstant.Variant.MATHITALIC],bf:["SetFont",l.TexConstant.Variant.BOLD],bbFont:["SetFont",l.TexConstant.Variant.DOUBLESTRUCK],scr:["SetFont",l.TexConstant.Variant.SCRIPT],frak:["SetFont",l.TexConstant.Variant.FRAKTUR],sf:["SetFont",l.TexConstant.Variant.SANSSERIF],tt:["SetFont",l.TexConstant.Variant.MONOSPACE],mathrm:["MathFont",l.TexConstant.Variant.NORMAL],mathup:["MathFont",l.TexConstant.Variant.NORMAL],mathnormal:["MathFont",""],mathbf:["MathFont",l.TexConstant.Variant.BOLD],mathbfup:["MathFont",l.TexConstant.Variant.BOLD],mathit:["MathFont",l.TexConstant.Variant.MATHITALIC],mathbfit:["MathFont",l.TexConstant.Variant.BOLDITALIC],mathbb:["MathFont",l.TexConstant.Variant.DOUBLESTRUCK],Bbb:["MathFont",l.TexConstant.Variant.DOUBLESTRUCK],mathfrak:["MathFont",l.TexConstant.Variant.FRAKTUR],mathbffrak:["MathFont",l.TexConstant.Variant.BOLDFRAKTUR],mathscr:["MathFont",l.TexConstant.Variant.SCRIPT],mathbfscr:["MathFont",l.TexConstant.Variant.BOLDSCRIPT],mathsf:["MathFont",l.TexConstant.Variant.SANSSERIF],mathsfup:["MathFont",l.TexConstant.Variant.SANSSERIF],mathbfsf:["MathFont",l.TexConstant.Variant.BOLDSANSSERIF],mathbfsfup:["MathFont",l.TexConstant.Variant.BOLDSANSSERIF],mathsfit:["MathFont",l.TexConstant.Variant.SANSSERIFITALIC],mathbfsfit:["MathFont",l.TexConstant.Variant.SANSSERIFBOLDITALIC],mathtt:["MathFont",l.TexConstant.Variant.MONOSPACE],mathcal:["MathFont",l.TexConstant.Variant.CALLIGRAPHIC],mathbfcal:["MathFont",l.TexConstant.Variant.BOLDCALLIGRAPHIC],symrm:["MathFont",l.TexConstant.Variant.NORMAL],symup:["MathFont",l.TexConstant.Variant.NORMAL],symnormal:["MathFont",""],symbf:["MathFont",l.TexConstant.Variant.BOLD],symbfup:["MathFont",l.TexConstant.Variant.BOLD],symit:["MathFont",l.TexConstant.Variant.ITALIC],symbfit:["MathFont",l.TexConstant.Variant.BOLDITALIC],symbb:["MathFont",l.TexConstant.Variant.DOUBLESTRUCK],symfrak:["MathFont",l.TexConstant.Variant.FRAKTUR],symbffrak:["MathFont",l.TexConstant.Variant.BOLDFRAKTUR],symscr:["MathFont",l.TexConstant.Variant.SCRIPT],symbfscr:["MathFont",l.TexConstant.Variant.BOLDSCRIPT],symsf:["MathFont",l.TexConstant.Variant.SANSSERIF],symsfup:["MathFont",l.TexConstant.Variant.SANSSERIF],symbfsf:["MathFont",l.TexConstant.Variant.BOLDSANSSERIF],symbfsfup:["MathFont",l.TexConstant.Variant.BOLDSANSSERIF],symsfit:["MathFont",l.TexConstant.Variant.SANSSERIFITALIC],symbfsfit:["MathFont",l.TexConstant.Variant.SANSSERIFBOLDITALIC],symtt:["MathFont",l.TexConstant.Variant.MONOSPACE],symcal:["MathFont",l.TexConstant.Variant.CALLIGRAPHIC],symbfcal:["MathFont",l.TexConstant.Variant.BOLDCALLIGRAPHIC],textrm:["HBox",null,l.TexConstant.Variant.NORMAL],textup:["HBox",null,l.TexConstant.Variant.NORMAL],textnormal:["HBox"],textit:["HBox",null,l.TexConstant.Variant.ITALIC],textbf:["HBox",null,l.TexConstant.Variant.BOLD],textsf:["HBox",null,l.TexConstant.Variant.SANSSERIF],texttt:["HBox",null,l.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],arcsin:"NamedFn",arccos:"NamedFn",arctan:"NamedFn",arg:"NamedFn",cos:"NamedFn",cosh:"NamedFn",cot:"NamedFn",coth:"NamedFn",csc:"NamedFn",deg:"NamedFn",det:"NamedOp",dim:"NamedFn",exp:"NamedFn",gcd:"NamedOp",hom:"NamedFn",inf:"NamedOp",ker:"NamedFn",lg:"NamedFn",lim:"NamedOp",liminf:["NamedOp","lim inf"],limsup:["NamedOp","lim sup"],ln:"NamedFn",log:"NamedFn",max:"NamedOp",min:"NamedOp",Pr:"NamedOp",sec:"NamedFn",sin:"NamedFn",sinh:"NamedFn",sup:"NamedOp",tan:"NamedFn",tanh:"NamedFn",limits:["Limits",1],nolimits:["Limits",0],overline:["UnderOver","2015"],underline:["UnderOver","2015"],overbrace:["UnderOver","23DE",1],underbrace:["UnderOver","23DF",1],overparen:["UnderOver","23DC"],underparen:["UnderOver","23DD"],overrightarrow:["UnderOver","2192"],underrightarrow:["UnderOver","2192"],overleftarrow:["UnderOver","2190"],underleftarrow:["UnderOver","2190"],overleftrightarrow:["UnderOver","2194"],underleftrightarrow:["UnderOver","2194"],overset:"Overset",underset:"Underset",overunderset:"Overunderset",stackrel:["Macro","\\mathrel{\\mathop{#2}\\limits^{#1}}",2],stackbin:["Macro","\\mathbin{\\mathop{#2}\\limits^{#1}}",2],over:"Over",overwithdelims:"Over",atop:"Over",atopwithdelims:"Over",above:"Over",abovewithdelims:"Over",brace:["Over","{","}"],brack:["Over","[","]"],choose:["Over","(",")"],frac:"Frac",sqrt:"Sqrt",root:"Root",uproot:["MoveRoot","upRoot"],leftroot:["MoveRoot","leftRoot"],left:"LeftRight",right:"LeftRight",middle:"LeftRight",llap:"Lap",rlap:"Lap",raise:"RaiseLower",lower:"RaiseLower",moveleft:"MoveLeftRight",moveright:"MoveLeftRight",",":["Spacer",h.MATHSPACE.thinmathspace],":":["Spacer",h.MATHSPACE.mediummathspace],">":["Spacer",h.MATHSPACE.mediummathspace],";":["Spacer",h.MATHSPACE.thickmathspace],"!":["Spacer",h.MATHSPACE.negativethinmathspace],enspace:["Spacer",.5],quad:["Spacer",1],qquad:["Spacer",2],thinspace:["Spacer",h.MATHSPACE.thinmathspace],negthinspace:["Spacer",h.MATHSPACE.negativethinmathspace],hskip:"Hskip",hspace:"Hskip",kern:"Hskip",mskip:"Hskip",mspace:"Hskip",mkern:"Hskip",rule:"rule",Rule:["Rule"],Space:["Rule","blank"],nonscript:"Nonscript",big:["MakeBig",p.TEXCLASS.ORD,.85],Big:["MakeBig",p.TEXCLASS.ORD,1.15],bigg:["MakeBig",p.TEXCLASS.ORD,1.45],Bigg:["MakeBig",p.TEXCLASS.ORD,1.75],bigl:["MakeBig",p.TEXCLASS.OPEN,.85],Bigl:["MakeBig",p.TEXCLASS.OPEN,1.15],biggl:["MakeBig",p.TEXCLASS.OPEN,1.45],Biggl:["MakeBig",p.TEXCLASS.OPEN,1.75],bigr:["MakeBig",p.TEXCLASS.CLOSE,.85],Bigr:["MakeBig",p.TEXCLASS.CLOSE,1.15],biggr:["MakeBig",p.TEXCLASS.CLOSE,1.45],Biggr:["MakeBig",p.TEXCLASS.CLOSE,1.75],bigm:["MakeBig",p.TEXCLASS.REL,.85],Bigm:["MakeBig",p.TEXCLASS.REL,1.15],biggm:["MakeBig",p.TEXCLASS.REL,1.45],Biggm:["MakeBig",p.TEXCLASS.REL,1.75],mathord:["TeXAtom",p.TEXCLASS.ORD],mathop:["TeXAtom",p.TEXCLASS.OP],mathopen:["TeXAtom",p.TEXCLASS.OPEN],mathclose:["TeXAtom",p.TEXCLASS.CLOSE],mathbin:["TeXAtom",p.TEXCLASS.BIN],mathrel:["TeXAtom",p.TEXCLASS.REL],mathpunct:["TeXAtom",p.TEXCLASS.PUNCT],mathinner:["TeXAtom",p.TEXCLASS.INNER],vcenter:["TeXAtom",p.TEXCLASS.VCENTER],buildrel:"BuildRel",hbox:["HBox",0],text:"HBox",mbox:["HBox",0],fbox:"FBox",boxed:["Macro","\\fbox{$\\displaystyle{#1}$}",1],framebox:"FrameBox",strut:"Strut",mathstrut:["Macro","\\vphantom{(}"],phantom:"Phantom",vphantom:["Phantom",1,0],hphantom:["Phantom",0,1],smash:"Smash",acute:["Accent","00B4"],grave:["Accent","0060"],ddot:["Accent","00A8"],tilde:["Accent","007E"],bar:["Accent","00AF"],breve:["Accent","02D8"],check:["Accent","02C7"],hat:["Accent","005E"],vec:["Accent","2192"],dot:["Accent","02D9"],widetilde:["Accent","007E",1],widehat:["Accent","005E",1],matrix:"Matrix",array:"Matrix",pmatrix:["Matrix","(",")"],cases:["Matrix","{","","left left",null,".1em",null,true],eqalign:["Matrix",null,null,"right left",(0,h.em)(h.MATHSPACE.thickmathspace),".5em","D"],displaylines:["Matrix",null,null,"center",null,".5em","D"],cr:"Cr","\\":"CrLaTeX",newline:["CrLaTeX",true],hline:["HLine","solid"],hdashline:["HLine","dashed"],eqalignno:["Matrix",null,null,"right left",(0,h.em)(h.MATHSPACE.thickmathspace),".5em","D",null,"right"],leqalignno:["Matrix",null,null,"right left",(0,h.em)(h.MATHSPACE.thickmathspace),".5em","D",null,"left"],hfill:"HFill",hfil:"HFill",hfilll:"HFill",bmod:["Macro",'\\mmlToken{mo}[lspace="thickmathspace"'+' rspace="thickmathspace"]{mod}'],pmod:["Macro","\\pod{\\mmlToken{mi}{mod}\\kern 6mu #1}",1],mod:["Macro","\\mathchoice{\\kern18mu}{\\kern12mu}"+"{\\kern12mu}{\\kern12mu}\\mmlToken{mi}{mod}\\,\\,#1",1],pod:["Macro","\\mathchoice{\\kern18mu}{\\kern8mu}"+"{\\kern8mu}{\\kern8mu}(#1)",1],iff:["Macro","\\;\\Longleftrightarrow\\;"],skew:["Macro","{{#2{#3\\mkern#1mu}\\mkern-#1mu}{}}",3],pmb:["Macro","\\rlap{#1}\\kern1px{#1}",1],TeX:["Macro","T\\kern-.14em\\lower.5ex{E}\\kern-.115em X"],LaTeX:["Macro","L\\kern-.325em\\raise.21em"+"{\\scriptstyle{A}}\\kern-.17em\\TeX"]," ":["Macro","\\text{ }"],not:"Not",dots:"Dots",space:"Tilde"," ":"Tilde",begin:"BeginEnd",end:"BeginEnd",label:"HandleLabel",ref:"HandleRef",nonumber:"HandleNoTag",mathchoice:"MathChoice",mmlToken:"MmlToken"},u.default);new s.EnvironmentMap("environment",c.default.environment,{array:["AlignedArray"],equation:["Equation",null,true],eqnarray:["EqnArray",null,true,true,"rcl",f.default.cols(0,h.MATHSPACE.thickmathspace),".5em"]},u.default);new s.CharacterMap("not_remap",null,{"←":"↚","→":"↛","↔":"↮","⇐":"⇍","⇒":"⇏","⇔":"⇎","∈":"∉","∋":"∌","∣":"∤","∥":"∦","∼":"≁","~":"≁","≃":"≄","≅":"≇","≈":"≉","≍":"≭","=":"≠","≡":"≢","<":"≮",">":"≯","≤":"≰","≥":"≱","≲":"≴","≳":"≵","≶":"≸","≷":"≹","≺":"⊀","≻":"⊁","⊂":"⊄","⊃":"⊅","⊆":"⊈","⊇":"⊉","⊢":"⊬","⊨":"⊭","⊩":"⊮","⊫":"⊯","≼":"⋠","≽":"⋡","⊑":"⋢","⊒":"⋣","⊲":"⋪","⊳":"⋫","⊴":"⋬","⊵":"⋭","∃":"∄"})},38364: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)i.push(n.value)}catch(s){o={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(o)throw o.error}}return i};var l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var u=o(r(94650));var c=l(r(72691));var f=l(r(98770));var p=l(r(75845));var h=r(80469);var d=l(r(6980));var m=r(80747);var v=r(17782);var y=r(86810);var g=r(38316);var b=r(34981);var A={};var S=1.2/.85;var P={fontfamily:1,fontsize:1,fontweight:1,fontstyle:1,color:1,background:1,id:1,class:1,href:1,style:1};A.Open=function(e,t){e.Push(e.itemFactory.create("open"))};A.Close=function(e,t){e.Push(e.itemFactory.create("close"))};A.Tilde=function(e,t){e.Push(e.create("token","mtext",{},g.entities.nbsp))};A.Space=function(e,t){};A.Superscript=function(e,t){var r;if(e.GetNext().match(/\d/)){e.string=e.string.substr(0,e.i+1)+" "+e.string.substr(e.i+1)}var a;var n;var i=e.stack.Top();if(i.isKind("prime")){r=s(i.Peek(2),2),n=r[0],a=r[1];e.stack.Pop()}else{n=e.stack.Prev();if(!n){n=e.create("token","mi",{},"")}}var o=c.default.getProperty(n,"movesupsub");var l=c.default.isType(n,"msubsup")?n.sup:n.over;if(c.default.isType(n,"msubsup")&&!c.default.isType(n,"msup")&&c.default.getChildAt(n,n.sup)||c.default.isType(n,"munderover")&&!c.default.isType(n,"mover")&&c.default.getChildAt(n,n.over)&&!c.default.getProperty(n,"subsupOK")){throw new f.default("DoubleExponent","Double exponent: use braces to clarify")}if(!c.default.isType(n,"msubsup")||c.default.isType(n,"msup")){if(o){if(!c.default.isType(n,"munderover")||c.default.isType(n,"mover")||c.default.getChildAt(n,n.over)){n=e.create("node","munderover",[n],{movesupsub:true})}l=n.over}else{n=e.create("node","msubsup",[n]);l=n.sup}}e.Push(e.itemFactory.create("subsup",n).setProperties({position:l,primes:a,movesupsub:o}))};A.Subscript=function(e,t){var r;if(e.GetNext().match(/\d/)){e.string=e.string.substr(0,e.i+1)+" "+e.string.substr(e.i+1)}var a,n;var i=e.stack.Top();if(i.isKind("prime")){r=s(i.Peek(2),2),n=r[0],a=r[1];e.stack.Pop()}else{n=e.stack.Prev();if(!n){n=e.create("token","mi",{},"")}}var o=c.default.getProperty(n,"movesupsub");var l=c.default.isType(n,"msubsup")?n.sub:n.under;if(c.default.isType(n,"msubsup")&&!c.default.isType(n,"msup")&&c.default.getChildAt(n,n.sub)||c.default.isType(n,"munderover")&&!c.default.isType(n,"mover")&&c.default.getChildAt(n,n.under)&&!c.default.getProperty(n,"subsupOK")){throw new f.default("DoubleSubscripts","Double subscripts: use braces to clarify")}if(!c.default.isType(n,"msubsup")||c.default.isType(n,"msup")){if(o){if(!c.default.isType(n,"munderover")||c.default.isType(n,"mover")||c.default.getChildAt(n,n.under)){n=e.create("node","munderover",[n],{movesupsub:true})}l=n.under}else{n=e.create("node","msubsup",[n]);l=n.sub}}e.Push(e.itemFactory.create("subsup",n).setProperties({position:l,primes:a,movesupsub:o}))};A.Prime=function(e,t){var r=e.stack.Prev();if(!r){r=e.create("node","mi")}if(c.default.isType(r,"msubsup")&&!c.default.isType(r,"msup")&&c.default.getChildAt(r,r.sup)){throw new f.default("DoubleExponentPrime","Prime causes double exponent: use braces to clarify")}var a="";e.i--;do{a+=g.entities.prime;e.i++,t=e.GetNext()}while(t==="'"||t===g.entities.rsquo);a=["","′","″","‴","⁗"][a.length]||a;var n=e.create("token","mo",{variantForm:true},a);e.Push(e.itemFactory.create("prime",r,n))};A.Comment=function(e,t){while(e.i{Object.defineProperty(t,"__esModule",{value:true});t.px=t.emRounded=t.em=t.percent=t.length2em=t.MATHSPACE=t.RELUNITS=t.UNITS=t.BIGDIMEN=void 0;t.BIGDIMEN=1e6;t.UNITS={px:1,in:96,cm:96/2.54,mm:96/25.4};t.RELUNITS={em:1,ex:.431,pt:1/10,pc:12/10,mu:1/18};t.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:t.BIGDIMEN};function r(e,r,a,n){if(r===void 0){r=0}if(a===void 0){a=1}if(n===void 0){n=16}if(typeof e!=="string"){e=String(e)}if(e===""||e==null){return r}if(t.MATHSPACE[e]){return t.MATHSPACE[e]}var i=e.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/);if(!i){return r}var o=parseFloat(i[1]||"1"),s=i[2];if(t.UNITS.hasOwnProperty(s)){return o*t.UNITS[s]/n/a}if(t.RELUNITS.hasOwnProperty(s)){return o*t.RELUNITS[s]}if(s==="%"){return o/100*r}return o*r}t.length2em=r;function a(e){return(100*e).toFixed(1).replace(/\.?0+$/,"")+"%"}t.percent=a;function n(e){if(Math.abs(e)<.001)return"0";return e.toFixed(3).replace(/\.?0+$/,"")+"em"}t.em=n;function i(e,t){if(t===void 0){t=16}e=(Math.round(e*t)+.05)/t;if(Math.abs(e)<.001)return"0em";return e.toFixed(3).replace(/\.?0+$/,"")+"em"}t.emRounded=i;function o(e,r,a){if(r===void 0){r=-t.BIGDIMEN}if(a===void 0){a=16}e*=a;if(r&&e{r.d(e,{S:()=>n});var a=r(70416);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,a.K2)(n,"populateCommonDb")},75463:(t,e,r)=>{r.d(e,{m:()=>n});var a=r(70416);var n=class{constructor(t){this.init=t;this.records=this.init()}static{(0,a.K2)(this,"ImperativeState")}reset(){this.records=this.init()}}},95090:(t,e,r)=>{r.d(e,{diagram:()=>Rt});var a=r(85054);var n=r(75463);var o=r(29131);var s=r(42418);var c=r(70416);var i=r(24010);var m=r(1218);var d={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4};var h=s.UI.gitGraph;var l=(0,c.K2)((()=>{const t=(0,o.$t)({...h,...(0,s.zj)().gitGraph});return t}),"getConfig");var g=new n.m((()=>{const t=l();const e=t.mainBranchName;const r=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:r}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}}));function f(){return(0,o.yT)({length:7})}(0,c.K2)(f,"getID");function p(t,e){const r=Object.create(null);return t.reduce(((t,a)=>{const n=e(a);if(!r[n]){r[n]=true;t.push(a)}return t}),[])}(0,c.K2)(p,"uniqBy");var $=(0,c.K2)((function(t){g.records.direction=t}),"setDirection");var y=(0,c.K2)((function(t){c.Rm.debug("options str",t);t=t?.trim();t=t||"{}";try{g.records.options=JSON.parse(t)}catch(e){c.Rm.error("error while parsing gitGraph options",e.message)}}),"setOptions");var x=(0,c.K2)((function(){return g.records.options}),"getOptions");var u=(0,c.K2)((function(t){let e=t.msg;let r=t.id;const a=t.type;let n=t.tags;c.Rm.info("commit",e,r,a,n);c.Rm.debug("Entering commit:",e,r,a,n);const o=l();r=s.Y2.sanitizeText(r,o);e=s.Y2.sanitizeText(e,o);n=n?.map((t=>s.Y2.sanitizeText(t,o)));const i={id:r?r:g.records.seq+"-"+f(),message:e,seq:g.records.seq++,type:a??d.NORMAL,tags:n??[],parents:g.records.head==null?[]:[g.records.head.id],branch:g.records.currBranch};g.records.head=i;c.Rm.info("main branch",o.mainBranchName);if(g.records.commits.has(i.id)){c.Rm.warn(`Commit ID ${i.id} already exists`)}g.records.commits.set(i.id,i);g.records.branches.set(g.records.currBranch,i.id);c.Rm.debug("in pushCommit "+i.id)}),"commit");var b=(0,c.K2)((function(t){let e=t.name;const r=t.order;e=s.Y2.sanitizeText(e,l());if(g.records.branches.has(e)){throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`)}g.records.branches.set(e,g.records.head!=null?g.records.head.id:null);g.records.branchConfig.set(e,{name:e,order:r});B(e);c.Rm.debug("in createBranch")}),"branch");var w=(0,c.K2)((t=>{let e=t.branch;let r=t.id;const a=t.type;const n=t.tags;const o=l();e=s.Y2.sanitizeText(e,o);if(r){r=s.Y2.sanitizeText(r,o)}const i=g.records.branches.get(g.records.currBranch);const m=g.records.branches.get(e);const h=i?g.records.commits.get(i):void 0;const p=m?g.records.commits.get(m):void 0;if(h&&p&&h.branch===e){throw new Error(`Cannot merge branch '${e}' into itself.`)}if(g.records.currBranch===e){const t=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]};throw t}if(h===void 0||!h){const t=new Error(`Incorrect usage of "merge". Current branch (${g.records.currBranch})has no commits`);t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]};throw t}if(!g.records.branches.has(e)){const t=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]};throw t}if(p===void 0||!p){const t=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']};throw t}if(h===p){const t=new Error('Incorrect usage of "merge". Both branches have same head');t.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]};throw t}if(r&&g.records.commits.has(r)){const t=new Error('Incorrect usage of "merge". Commit with id:'+r+" already exists, use different custom id");t.hash={text:`merge ${e} ${r} ${a} ${n?.join(" ")}`,token:`merge ${e} ${r} ${a} ${n?.join(" ")}`,expected:[`merge ${e} ${r}_UNIQUE ${a} ${n?.join(" ")}`]};throw t}const $=m?m:"";const y={id:r||`${g.records.seq}-${f()}`,message:`merged branch ${e} into ${g.records.currBranch}`,seq:g.records.seq++,parents:g.records.head==null?[]:[g.records.head.id,$],branch:g.records.currBranch,type:d.MERGE,customType:a,customId:r?true:false,tags:n??[]};g.records.head=y;g.records.commits.set(y.id,y);g.records.branches.set(g.records.currBranch,y.id);c.Rm.debug(g.records.branches);c.Rm.debug("in mergeBranch")}),"merge");var v=(0,c.K2)((function(t){let e=t.id;let r=t.targetId;let a=t.tags;let n=t.parent;c.Rm.debug("Entering cherryPick:",e,r,a);const o=l();e=s.Y2.sanitizeText(e,o);r=s.Y2.sanitizeText(r,o);a=a?.map((t=>s.Y2.sanitizeText(t,o)));n=s.Y2.sanitizeText(n,o);if(!e||!g.records.commits.has(e)){const t=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]};throw t}const i=g.records.commits.get(e);if(i===void 0||!i){throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided')}if(n&&!(Array.isArray(i.parents)&&i.parents.includes(n))){const t=new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");throw t}const m=i.branch;if(i.type===d.MERGE&&!n){const t=new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");throw t}if(!r||!g.records.commits.has(r)){if(m===g.records.currBranch){const t=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]};throw t}const t=g.records.branches.get(g.records.currBranch);if(t===void 0||!t){const t=new Error(`Incorrect usage of "cherry-pick". Current branch (${g.records.currBranch})has no commits`);t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]};throw t}const o=g.records.commits.get(t);if(o===void 0||!o){const t=new Error(`Incorrect usage of "cherry-pick". Current branch (${g.records.currBranch})has no commits`);t.hash={text:`cherryPick ${e} ${r}`,token:`cherryPick ${e} ${r}`,expected:["cherry-pick abc"]};throw t}const s={id:g.records.seq+"-"+f(),message:`cherry-picked ${i?.message} into ${g.records.currBranch}`,seq:g.records.seq++,parents:g.records.head==null?[]:[g.records.head.id,i.id],branch:g.records.currBranch,type:d.CHERRY_PICK,tags:a?a.filter(Boolean):[`cherry-pick:${i.id}${i.type===d.MERGE?`|parent:${n}`:""}`]};g.records.head=s;g.records.commits.set(s.id,s);g.records.branches.set(g.records.currBranch,s.id);c.Rm.debug(g.records.branches);c.Rm.debug("in cherryPick")}}),"cherryPick");var B=(0,c.K2)((function(t){t=s.Y2.sanitizeText(t,l());if(!g.records.branches.has(t)){const e=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]};throw e}else{g.records.currBranch=t;const e=g.records.branches.get(g.records.currBranch);if(e===void 0||!e){g.records.head=null}else{g.records.head=g.records.commits.get(e)??null}}}),"checkout");function E(t,e,r){const a=t.indexOf(e);if(a===-1){t.push(r)}else{t.splice(a,1,r)}}(0,c.K2)(E,"upsert");function C(t){const e=t.reduce(((t,e)=>{if(t.seq>e.seq){return t}return e}),t[0]);let r="";t.forEach((function(t){if(t===e){r+="\t*"}else{r+="\t|"}}));const a=[r,e.id,e.seq];for(const n in g.records.branches){if(g.records.branches.get(n)===e.id){a.push(n)}}c.Rm.debug(a.join(" "));if(e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){const r=g.records.commits.get(e.parents[0]);E(t,e,r);if(e.parents[1]){t.push(g.records.commits.get(e.parents[1]))}}else if(e.parents.length==0){return}else{if(e.parents[0]){const r=g.records.commits.get(e.parents[0]);E(t,e,r)}}t=p(t,(t=>t.id));C(t)}(0,c.K2)(C,"prettyPrintCommitHistory");var k=(0,c.K2)((function(){c.Rm.debug(g.records.commits);const t=K()[0];C([t])}),"prettyPrint");var L=(0,c.K2)((function(){g.reset();(0,s.IU)()}),"clear");var T=(0,c.K2)((function(){const t=[...g.records.branchConfig.values()].map(((t,e)=>{if(t.order!==null&&t.order!==void 0){return t}return{...t,order:parseFloat(`0.${e}`)}})).sort(((t,e)=>(t.order??0)-(e.order??0))).map((({name:t})=>({name:t})));return t}),"getBranchesAsObjArray");var M=(0,c.K2)((function(){return g.records.branches}),"getBranches");var R=(0,c.K2)((function(){return g.records.commits}),"getCommits");var K=(0,c.K2)((function(){const t=[...g.records.commits.values()];t.forEach((function(t){c.Rm.debug(t.id)}));t.sort(((t,e)=>t.seq-e.seq));return t}),"getCommitsArray");var O=(0,c.K2)((function(){return g.records.currBranch}),"getCurrentBranch");var P=(0,c.K2)((function(){return g.records.direction}),"getDirection");var A=(0,c.K2)((function(){return g.records.head}),"getHead");var q={commitType:d,getConfig:l,setDirection:$,setOptions:y,getOptions:x,commit:u,branch:b,merge:w,cherryPick:v,checkout:B,prettyPrint:k,clear:L,getBranchesAsObjArray:T,getBranches:M,getCommits:R,getCommitsArray:K,getCurrentBranch:O,getDirection:P,getHead:A,setAccTitle:s.SV,getAccTitle:s.iN,getAccDescription:s.m7,setAccDescription:s.EI,setDiagramTitle:s.ke,getDiagramTitle:s.ab};var I=(0,c.K2)(((t,e)=>{(0,a.S)(t,e);if(t.dir){e.setDirection(t.dir)}for(const r of t.statements){G(r,e)}}),"populate");var G=(0,c.K2)(((t,e)=>{const r={Commit:(0,c.K2)((t=>e.commit(W(t))),"Commit"),Branch:(0,c.K2)((t=>e.branch(H(t))),"Branch"),Merge:(0,c.K2)((t=>e.merge(D(t))),"Merge"),Checkout:(0,c.K2)((t=>e.checkout(N(t))),"Checkout"),CherryPicking:(0,c.K2)((t=>e.cherryPick(_(t))),"CherryPicking")};const a=r[t.$type];if(a){a(t)}else{c.Rm.error(`Unknown statement type: ${t.$type}`)}}),"parseStatement");var W=(0,c.K2)((t=>{const e={id:t.id,msg:t.message??"",type:t.type!==void 0?d[t.type]:d.NORMAL,tags:t.tags??void 0};return e}),"parseCommit");var H=(0,c.K2)((t=>{const e={name:t.name,order:t.order??0};return e}),"parseBranch");var D=(0,c.K2)((t=>{const e={branch:t.branch,id:t.id??"",type:t.type!==void 0?d[t.type]:void 0,tags:t.tags??void 0};return e}),"parseMerge");var N=(0,c.K2)((t=>{const e=t.branch;return e}),"parseCheckout");var _=(0,c.K2)((t=>{const e={id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent};return e}),"parseCherryPicking");var S={parse:(0,c.K2)((async t=>{const e=await(0,i.qg)("gitGraph",t);c.Rm.debug(e);I(e,q)}),"parse")};if(void 0){const{it:t,expect:e,describe:r}=void 0;const a={commitType:d,setDirection:vi.fn(),commit:vi.fn(),branch:vi.fn(),merge:vi.fn(),cherryPick:vi.fn(),checkout:vi.fn()};r("GitGraph Parser",(()=>{t("should parse a commit statement",(()=>{const t={$type:"Commit",id:"1",message:"test",tags:["tag1","tag2"],type:"NORMAL"};G(t,a);e(a.commit).toHaveBeenCalledWith({id:"1",msg:"test",tags:["tag1","tag2"],type:0})}));t("should parse a branch statement",(()=>{const t={$type:"Branch",name:"newBranch",order:1};G(t,a);e(a.branch).toHaveBeenCalledWith({name:"newBranch",order:1})}));t("should parse a checkout statement",(()=>{const t={$type:"Checkout",branch:"newBranch"};G(t,a);e(a.checkout).toHaveBeenCalledWith("newBranch")}));t("should parse a merge statement",(()=>{const t={$type:"Merge",branch:"newBranch",id:"1",tags:["tag1","tag2"],type:"NORMAL"};G(t,a);e(a.merge).toHaveBeenCalledWith({branch:"newBranch",id:"1",tags:["tag1","tag2"],type:0})}));t("should parse a cherry picking statement",(()=>{const t={$type:"CherryPicking",id:"1",tags:["tag1","tag2"],parent:"2"};G(t,a);e(a.cherryPick).toHaveBeenCalledWith({id:"1",targetId:"",parent:"2",tags:["tag1","tag2"]})}));t("should parse a langium generated gitGraph ast",(()=>{const t={$type:"GitGraph",statements:[]};const r={$type:"GitGraph",statements:[{$container:t,$type:"Commit",id:"1",message:"test",tags:["tag1","tag2"],type:"NORMAL"},{$container:t,$type:"Branch",name:"newBranch",order:1},{$container:t,$type:"Merge",branch:"newBranch",id:"1",tags:["tag1","tag2"],type:"NORMAL"},{$container:t,$type:"Checkout",branch:"newBranch"},{$container:t,$type:"CherryPicking",id:"1",tags:["tag1","tag2"],parent:"2"}]};I(r,a);e(a.commit).toHaveBeenCalledWith({id:"1",msg:"test",tags:["tag1","tag2"],type:0});e(a.branch).toHaveBeenCalledWith({name:"newBranch",order:1});e(a.merge).toHaveBeenCalledWith({branch:"newBranch",id:"1",tags:["tag1","tag2"],type:0});e(a.checkout).toHaveBeenCalledWith("newBranch")}))}))}var z=(0,s.D7)();var Y=z?.gitGraph;var j=10;var Z=40;var F=4;var U=2;var V=8;var J=new Map;var Q=new Map;var X=30;var tt=new Map;var et=[];var rt=0;var at="LR";var nt=(0,c.K2)((()=>{J.clear();Q.clear();tt.clear();rt=0;et=[];at="LR"}),"clear");var ot=(0,c.K2)((t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");const r=typeof t==="string"?t.split(/\\n|\n|/gi):t;r.forEach((t=>{const r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");r.setAttribute("dy","1em");r.setAttribute("x","0");r.setAttribute("class","row");r.textContent=t.trim();e.appendChild(r)}));return e}),"drawText");var st=(0,c.K2)((t=>{let e;let r;let a;if(at==="BT"){r=(0,c.K2)(((t,e)=>t<=e),"comparisonFunc");a=Infinity}else{r=(0,c.K2)(((t,e)=>t>=e),"comparisonFunc");a=0}t.forEach((t=>{const n=at==="TB"||at=="BT"?Q.get(t)?.y:Q.get(t)?.x;if(n!==void 0&&r(n,a)){e=t;a=n}}));return e}),"findClosestParent");var ct=(0,c.K2)((t=>{let e="";let r=Infinity;t.forEach((t=>{const a=Q.get(t).y;if(a<=r){e=t;r=a}}));return e||void 0}),"findClosestParentBT");var it=(0,c.K2)(((t,e,r)=>{let a=r;let n=r;const o=[];t.forEach((t=>{const r=e.get(t);if(!r){throw new Error(`Commit not found for key ${t}`)}if(r.parents.length){a=dt(r);n=Math.max(a,n)}else{o.push(r)}ht(r,a)}));a=n;o.forEach((t=>{lt(t,a,r)}));t.forEach((t=>{const r=e.get(t);if(r?.parents.length){const t=ct(r.parents);a=Q.get(t).y-Z;if(a<=n){n=a}const e=J.get(r.branch).pos;const o=a-j;Q.set(r.id,{x:e,y:o})}}))}),"setParallelBTPos");var mt=(0,c.K2)((t=>{const e=st(t.parents.filter((t=>t!==null)));if(!e){throw new Error(`Closest parent not found for commit ${t.id}`)}const r=Q.get(e)?.y;if(r===void 0){throw new Error(`Closest parent position not found for commit ${t.id}`)}return r}),"findClosestParentPos");var dt=(0,c.K2)((t=>{const e=mt(t);return e+Z}),"calculateCommitPosition");var ht=(0,c.K2)(((t,e)=>{const r=J.get(t.branch);if(!r){throw new Error(`Branch not found for commit ${t.id}`)}const a=r.pos;const n=e+j;Q.set(t.id,{x:a,y:n});return{x:a,y:n}}),"setCommitPosition");var lt=(0,c.K2)(((t,e,r)=>{const a=J.get(t.branch);if(!a){throw new Error(`Branch not found for commit ${t.id}`)}const n=e+r;const o=a.pos;Q.set(t.id,{x:o,y:n})}),"setRootPosition");var gt=(0,c.K2)(((t,e,r,a,n,o)=>{if(o===d.HIGHLIGHT){t.append("rect").attr("x",r.x-10).attr("y",r.y-10).attr("width",20).attr("height",20).attr("class",`commit ${e.id} commit-highlight${n%V} ${a}-outer`);t.append("rect").attr("x",r.x-6).attr("y",r.y-6).attr("width",12).attr("height",12).attr("class",`commit ${e.id} commit${n%V} ${a}-inner`)}else if(o===d.CHERRY_PICK){t.append("circle").attr("cx",r.x).attr("cy",r.y).attr("r",10).attr("class",`commit ${e.id} ${a}`);t.append("circle").attr("cx",r.x-3).attr("cy",r.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${a}`);t.append("circle").attr("cx",r.x+3).attr("cy",r.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${a}`);t.append("line").attr("x1",r.x+3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${a}`);t.append("line").attr("x1",r.x-3).attr("y1",r.y+1).attr("x2",r.x).attr("y2",r.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${a}`)}else{const s=t.append("circle");s.attr("cx",r.x);s.attr("cy",r.y);s.attr("r",e.type===d.MERGE?9:10);s.attr("class",`commit ${e.id} commit${n%V}`);if(o===d.MERGE){const o=t.append("circle");o.attr("cx",r.x);o.attr("cy",r.y);o.attr("r",6);o.attr("class",`commit ${a} ${e.id} commit${n%V}`)}if(o===d.REVERSE){const o=t.append("path");o.attr("d",`M ${r.x-5},${r.y-5}L${r.x+5},${r.y+5}M${r.x-5},${r.y+5}L${r.x+5},${r.y-5}`).attr("class",`commit ${a} ${e.id} commit${n%V}`)}}}),"drawCommitBullet");var ft=(0,c.K2)(((t,e,r,a)=>{if(e.type!==d.CHERRY_PICK&&(e.customId&&e.type===d.MERGE||e.type!==d.MERGE)&&Y?.showCommitLabel){const n=t.append("g");const o=n.insert("rect").attr("class","commit-label-bkg");const s=n.append("text").attr("x",a).attr("y",r.y+25).attr("class","commit-label").text(e.id);const c=s.node()?.getBBox();if(c){o.attr("x",r.posWithOffset-c.width/2-U).attr("y",r.y+13.5).attr("width",c.width+2*U).attr("height",c.height+2*U);if(at==="TB"||at==="BT"){o.attr("x",r.x-(c.width+4*F+5)).attr("y",r.y-12);s.attr("x",r.x-(c.width+4*F)).attr("y",r.y+c.height-12)}else{s.attr("x",r.posWithOffset-c.width/2)}if(Y.rotateCommitLabel){if(at==="TB"||at==="BT"){s.attr("transform","rotate(-45, "+r.x+", "+r.y+")");o.attr("transform","rotate(-45, "+r.x+", "+r.y+")")}else{const t=-7.5-(c.width+10)/25*9.5;const e=10+c.width/25*8.5;n.attr("transform","translate("+t+", "+e+") rotate(-45, "+a+", "+r.y+")")}}}}}),"drawCommitLabel");var pt=(0,c.K2)(((t,e,r,a)=>{if(e.tags.length>0){let n=0;let o=0;let s=0;const c=[];for(const a of e.tags.reverse()){const e=t.insert("polygon");const i=t.append("circle");const m=t.append("text").attr("y",r.y-16-n).attr("class","tag-label").text(a);const d=m.node()?.getBBox();if(!d){throw new Error("Tag bbox not found")}o=Math.max(o,d.width);s=Math.max(s,d.height);m.attr("x",r.posWithOffset-d.width/2);c.push({tag:m,hole:i,rect:e,yOffset:n});n+=20}for(const{tag:t,hole:e,rect:i,yOffset:m}of c){const n=s/2;const c=r.y-19.2-m;i.attr("class","tag-label-bkg").attr("points",`\n ${a-o/2-F/2},${c+U} \n ${a-o/2-F/2},${c-U}\n ${r.posWithOffset-o/2-F},${c-n-U}\n ${r.posWithOffset+o/2+F},${c-n-U}\n ${r.posWithOffset+o/2+F},${c+n+U}\n ${r.posWithOffset-o/2-F},${c+n+U}`);e.attr("cy",c).attr("cx",a-o/2+F/2).attr("r",1.5).attr("class","tag-hole");if(at==="TB"||at==="BT"){const s=a+m;i.attr("class","tag-label-bkg").attr("points",`\n ${r.x},${s+2}\n ${r.x},${s-2}\n ${r.x+j},${s-n-2}\n ${r.x+j+o+4},${s-n-2}\n ${r.x+j+o+4},${s+n+2}\n ${r.x+j},${s+n+2}`).attr("transform","translate(12,12) rotate(45, "+r.x+","+a+")");e.attr("cx",r.x+F/2).attr("cy",s).attr("transform","translate(12,12) rotate(45, "+r.x+","+a+")");t.attr("x",r.x+5).attr("y",s+3).attr("transform","translate(14,14) rotate(45, "+r.x+","+a+")")}}}}),"drawCommitTags");var $t=(0,c.K2)((t=>{const e=t.customType??t.type;switch(e){case d.NORMAL:return"commit-normal";case d.REVERSE:return"commit-reverse";case d.HIGHLIGHT:return"commit-highlight";case d.MERGE:return"commit-merge";case d.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}}),"getCommitClassType");var yt=(0,c.K2)(((t,e,r,a)=>{const n={x:0,y:0};if(t.parents.length>0){const r=st(t.parents);if(r){const o=a.get(r)??n;if(e==="TB"){return o.y+Z}else if(e==="BT"){const e=a.get(t.id)??n;return e.y-Z}else{return o.x+Z}}}else{if(e==="TB"){return X}else if(e==="BT"){const e=a.get(t.id)??n;return e.y-Z}else{return 0}}return 0}),"calculatePosition");var xt=(0,c.K2)(((t,e,r)=>{const a=at==="BT"&&r?e:e+j;const n=at==="TB"||at==="BT"?a:J.get(t.branch)?.pos;const o=at==="TB"||at==="BT"?J.get(t.branch)?.pos:a;if(o===void 0||n===void 0){throw new Error(`Position were undefined for commit ${t.id}`)}return{x:o,y:n,posWithOffset:a}}),"getCommitPosition");var ut=(0,c.K2)(((t,e,r)=>{if(!Y){throw new Error("GitGraph config not found")}const a=t.append("g").attr("class","commit-bullets");const n=t.append("g").attr("class","commit-labels");let o=at==="TB"||at==="BT"?X:0;const s=[...e.keys()];const i=Y?.parallelCommits??false;const m=(0,c.K2)(((t,r)=>{const a=e.get(t)?.seq;const n=e.get(r)?.seq;return a!==void 0&&n!==void 0?a-n:0}),"sortKeys");let d=s.sort(m);if(at==="BT"){if(i){it(d,e,o)}d=d.reverse()}d.forEach((t=>{const s=e.get(t);if(!s){throw new Error(`Commit not found for key ${t}`)}if(i){o=yt(s,at,o,Q)}const c=xt(s,o,i);if(r){const t=$t(s);const e=s.customType??s.type;const r=J.get(s.branch)?.index??0;gt(a,s,c,t,r,e);ft(n,s,c,o);pt(n,s,c,o)}if(at==="TB"||at==="BT"){Q.set(s.id,{x:c.x,y:c.posWithOffset})}else{Q.set(s.id,{x:c.posWithOffset,y:c.y})}o=at==="BT"&&i?o+Z:o+Z+j;if(o>rt){rt=o}}))}),"drawCommits");var bt=(0,c.K2)(((t,e,r,a,n)=>{const o=at==="TB"||at==="BT"?r.xt.branch===s),"isOnBranchToGetCurve");const m=(0,c.K2)((r=>r.seq>t.seq&&r.seqm(t)&&i(t)))}),"shouldRerouteArrow");var wt=(0,c.K2)(((t,e,r=0)=>{const a=t+Math.abs(t-e)/2;if(r>5){return a}const n=et.every((t=>Math.abs(t-a)>=10));if(n){et.push(a);return a}const o=Math.abs(t-e);return wt(t,e-o/5,r+1)}),"findLane");var vt=(0,c.K2)(((t,e,r,a)=>{const n=Q.get(e.id);const o=Q.get(r.id);if(n===void 0||o===void 0){throw new Error(`Commit positions not found for commits ${e.id} and ${r.id}`)}const s=bt(e,r,n,o,a);let c="";let i="";let m=0;let h=0;let l=J.get(r.branch)?.index;if(r.type===d.MERGE&&e.id!==r.parents[0]){l=J.get(e.branch)?.index}let g;if(s){c="A 10 10, 0, 0, 0,";i="A 10 10, 0, 0, 1,";m=10;h=10;const t=n.yo.x){c="A 20 20, 0, 0, 0,";i="A 20 20, 0, 0, 1,";m=20;h=20;if(r.type===d.MERGE&&e.id!==r.parents[0]){g=`M ${n.x} ${n.y} L ${n.x} ${o.y-m} ${i} ${n.x-h} ${o.y} L ${o.x} ${o.y}`}else{g=`M ${n.x} ${n.y} L ${o.x+m} ${n.y} ${c} ${o.x} ${n.y+h} L ${o.x} ${o.y}`}}if(n.x===o.x){g=`M ${n.x} ${n.y} L ${o.x} ${o.y}`}}else if(at==="BT"){if(n.xo.x){c="A 20 20, 0, 0, 0,";i="A 20 20, 0, 0, 1,";m=20;h=20;if(r.type===d.MERGE&&e.id!==r.parents[0]){g=`M ${n.x} ${n.y} L ${n.x} ${o.y+m} ${c} ${n.x-h} ${o.y} L ${o.x} ${o.y}`}else{g=`M ${n.x} ${n.y} L ${o.x-m} ${n.y} ${c} ${o.x} ${n.y-h} L ${o.x} ${o.y}`}}if(n.x===o.x){g=`M ${n.x} ${n.y} L ${o.x} ${o.y}`}}else{if(n.yo.y){if(r.type===d.MERGE&&e.id!==r.parents[0]){g=`M ${n.x} ${n.y} L ${o.x-m} ${n.y} ${c} ${o.x} ${n.y-h} L ${o.x} ${o.y}`}else{g=`M ${n.x} ${n.y} L ${n.x} ${o.y+m} ${i} ${n.x+h} ${o.y} L ${o.x} ${o.y}`}}if(n.y===o.y){g=`M ${n.x} ${n.y} L ${o.x} ${o.y}`}}}if(g===void 0){throw new Error("Line definition not found")}t.append("path").attr("d",g).attr("class","arrow arrow"+l%V)}),"drawArrow");var Bt=(0,c.K2)(((t,e)=>{const r=t.append("g").attr("class","commit-arrows");[...e.keys()].forEach((t=>{const a=e.get(t);if(a.parents&&a.parents.length>0){a.parents.forEach((t=>{vt(r,e.get(t),a,e)}))}}))}),"drawArrows");var Et=(0,c.K2)(((t,e)=>{const r=t.append("g");e.forEach(((t,e)=>{const a=e%V;const n=J.get(t.name)?.pos;if(n===void 0){throw new Error(`Position not found for branch ${t.name}`)}const o=r.append("line");o.attr("x1",0);o.attr("y1",n);o.attr("x2",rt);o.attr("y2",n);o.attr("class","branch branch"+a);if(at==="TB"){o.attr("y1",X);o.attr("x1",n);o.attr("y2",rt);o.attr("x2",n)}else if(at==="BT"){o.attr("y1",rt);o.attr("x1",n);o.attr("y2",X);o.attr("x2",n)}et.push(n);const s=t.name;const c=ot(s);const i=r.insert("rect");const m=r.insert("g").attr("class","branchLabel");const d=m.insert("g").attr("class","label branch-label"+a);d.node().appendChild(c);const h=c.getBBox();i.attr("class","branchLabelBkg label"+a).attr("rx",4).attr("ry",4).attr("x",-h.width-4-(Y?.rotateCommitLabel===true?30:0)).attr("y",-h.height/2+8).attr("width",h.width+18).attr("height",h.height+4);d.attr("transform","translate("+(-h.width-14-(Y?.rotateCommitLabel===true?30:0))+", "+(n-h.height/2-1)+")");if(at==="TB"){i.attr("x",n-h.width/2-10).attr("y",0);d.attr("transform","translate("+(n-h.width/2-5)+", 0)")}else if(at==="BT"){i.attr("x",n-h.width/2-10).attr("y",rt);d.attr("transform","translate("+(n-h.width/2-5)+", "+rt+")")}else{i.attr("transform","translate(-19, "+(n-h.height/2)+")")}}))}),"drawBranches");var Ct=(0,c.K2)((function(t,e,r,a,n){J.set(t,{pos:e,index:r});e+=50+(n?40:0)+(at==="TB"||at==="BT"?a.width/2:0);return e}),"setBranchPosition");var kt=(0,c.K2)((function(t,e,r,a){nt();c.Rm.debug("in gitgraph renderer",t+"\n","id:",e,r);if(!Y){throw new Error("GitGraph config not found")}const n=Y.rotateCommitLabel??false;const i=a.db;tt=i.getCommits();const d=i.getBranchesAsObjArray();at=i.getDirection();const h=(0,m.Ltv)(`[id="${e}"]`);let l=0;d.forEach(((t,e)=>{const r=ot(t.name);const a=h.append("g");const o=a.insert("g").attr("class","branchLabel");const s=o.insert("g").attr("class","label branch-label");s.node()?.appendChild(r);const c=r.getBBox();l=Ct(t.name,l,e,c,n);s.remove();o.remove();a.remove()}));ut(h,tt,false);if(Y.showBranches){Et(h,d)}Bt(h,tt);ut(h,tt,true);o._K.insertTitle(h,"gitTitleText",Y.titleTopMargin??0,i.getDiagramTitle());(0,s.mj)(void 0,h,Y.diagramPadding,Y.useMaxWidth)}),"draw");var Lt={draw:kt};if(void 0){const{it:t,expect:e,describe:r}=void 0;r("drawText",(()=>{t("should drawText",(()=>{const t=ot("main");e(t).toBeDefined();e(t.children[0].innerHTML).toBe("main")}))}));r("branchPosition",(()=>{const r={x:0,y:0,width:10,height:10,top:0,right:0,bottom:0,left:0,toJSON:(0,c.K2)((()=>""),"toJSON")};t("should setBranchPositions LR with two branches",(()=>{at="LR";const t=Ct("main",0,0,r,true);e(t).toBe(90);e(J.get("main")).toEqual({pos:0,index:0});const a=Ct("develop",t,1,r,true);e(a).toBe(180);e(J.get("develop")).toEqual({pos:t,index:1})}));t("should setBranchPositions TB with two branches",(()=>{at="TB";r.width=34.9921875;const t=Ct("main",0,0,r,true);e(t).toBe(107.49609375);e(J.get("main")).toEqual({pos:0,index:0});r.width=56.421875;const a=Ct("develop",t,1,r,true);e(a).toBe(225.70703125);e(J.get("develop")).toEqual({pos:t,index:1})}))}));r("commitPosition",(()=>{const a=new Map([["commitZero",{id:"ZERO",message:"",seq:0,type:d.NORMAL,tags:[],parents:[],branch:"main"}],["commitA",{id:"A",message:"",seq:1,type:d.NORMAL,tags:[],parents:["ZERO"],branch:"feature"}],["commitB",{id:"B",message:"",seq:2,type:d.NORMAL,tags:[],parents:["A"],branch:"feature"}],["commitM",{id:"M",message:"merged branch feature into main",seq:3,type:d.MERGE,tags:[],parents:["ZERO","B"],branch:"main",customId:true}],["commitC",{id:"C",message:"",seq:4,type:d.NORMAL,tags:[],parents:["ZERO"],branch:"release"}],["commit5_8928ea0",{id:"5-8928ea0",message:"cherry-picked [object Object] into release",seq:5,type:d.CHERRY_PICK,tags:[],parents:["C","M"],branch:"release"}],["commitD",{id:"D",message:"",seq:6,type:d.NORMAL,tags:[],parents:["5-8928ea0"],branch:"release"}],["commit7_ed848ba",{id:"7-ed848ba",message:"cherry-picked [object Object] into release",seq:7,type:d.CHERRY_PICK,tags:[],parents:["D","M"],branch:"release"}]]);let n=0;J.set("main",{pos:0,index:0});J.set("feature",{pos:107.49609375,index:1});J.set("release",{pos:224.03515625,index:2});r("TB",(()=>{n=30;at="TB";const r=new Map([["commitZero",{x:0,y:40,posWithOffset:40}],["commitA",{x:107.49609375,y:90,posWithOffset:90}],["commitB",{x:107.49609375,y:140,posWithOffset:140}],["commitM",{x:0,y:190,posWithOffset:190}],["commitC",{x:224.03515625,y:240,posWithOffset:240}],["commit5_8928ea0",{x:224.03515625,y:290,posWithOffset:290}],["commitD",{x:224.03515625,y:340,posWithOffset:340}],["commit7_ed848ba",{x:224.03515625,y:390,posWithOffset:390}]]);a.forEach(((a,o)=>{t(`should give the correct position for commit ${o}`,(()=>{const t=xt(a,n,false);e(t).toEqual(r.get(o));n+=50}))}))}));r("LR",(()=>{let r=30;at="LR";const n=new Map([["commitZero",{x:0,y:40,posWithOffset:40}],["commitA",{x:107.49609375,y:90,posWithOffset:90}],["commitB",{x:107.49609375,y:140,posWithOffset:140}],["commitM",{x:0,y:190,posWithOffset:190}],["commitC",{x:224.03515625,y:240,posWithOffset:240}],["commit5_8928ea0",{x:224.03515625,y:290,posWithOffset:290}],["commitD",{x:224.03515625,y:340,posWithOffset:340}],["commit7_ed848ba",{x:224.03515625,y:390,posWithOffset:390}]]);a.forEach(((a,o)=>{t(`should give the correct position for commit ${o}`,(()=>{const t=xt(a,r,false);e(t).toEqual(n.get(o));r+=50}))}))}));r("getCommitClassType",(()=>{const r=new Map([["commitZero","commit-normal"],["commitA","commit-normal"],["commitB","commit-normal"],["commitM","commit-merge"],["commitC","commit-normal"],["commit5_8928ea0","commit-cherry-pick"],["commitD","commit-normal"],["commit7_ed848ba","commit-cherry-pick"]]);a.forEach(((a,n)=>{t(`should give the correct class type for commit ${n}`,(()=>{const t=$t(a);e(t).toBe(r.get(n))}))}))}))}));r("building BT parallel commit diagram",(()=>{const r=new Map([["1-abcdefg",{id:"1-abcdefg",message:"",seq:0,type:0,tags:[],parents:[],branch:"main"}],["2-abcdefg",{id:"2-abcdefg",message:"",seq:1,type:0,tags:[],parents:["1-abcdefg"],branch:"main"}],["3-abcdefg",{id:"3-abcdefg",message:"",seq:2,type:0,tags:[],parents:["2-abcdefg"],branch:"develop"}],["4-abcdefg",{id:"4-abcdefg",message:"",seq:3,type:0,tags:[],parents:["3-abcdefg"],branch:"develop"}],["5-abcdefg",{id:"5-abcdefg",message:"",seq:4,type:0,tags:[],parents:["2-abcdefg"],branch:"feature"}],["6-abcdefg",{id:"6-abcdefg",message:"",seq:5,type:0,tags:[],parents:["5-abcdefg"],branch:"feature"}],["7-abcdefg",{id:"7-abcdefg",message:"",seq:6,type:0,tags:[],parents:["2-abcdefg"],branch:"main"}],["8-abcdefg",{id:"8-abcdefg",message:"",seq:7,type:0,tags:[],parents:["7-abcdefg"],branch:"main"}]]);const a=new Map([["1-abcdefg",{x:0,y:40}],["2-abcdefg",{x:0,y:90}],["3-abcdefg",{x:107.49609375,y:140}],["4-abcdefg",{x:107.49609375,y:190}],["5-abcdefg",{x:225.70703125,y:140}],["6-abcdefg",{x:225.70703125,y:190}],["7-abcdefg",{x:0,y:140}],["8-abcdefg",{x:0,y:190}]]);const n=new Map([["1-abcdefg",{x:0,y:210}],["2-abcdefg",{x:0,y:160}],["3-abcdefg",{x:107.49609375,y:110}],["4-abcdefg",{x:107.49609375,y:60}],["5-abcdefg",{x:225.70703125,y:110}],["6-abcdefg",{x:225.70703125,y:60}],["7-abcdefg",{x:0,y:110}],["8-abcdefg",{x:0,y:60}]]);const o=new Map([["1-abcdefg",30],["2-abcdefg",80],["3-abcdefg",130],["4-abcdefg",180],["5-abcdefg",130],["6-abcdefg",180],["7-abcdefg",130],["8-abcdefg",180]]);const s=[...a.keys()];t("should get the correct commit position and current position",(()=>{at="BT";let t=30;Q.clear();J.clear();J.set("main",{pos:0,index:0});J.set("develop",{pos:107.49609375,index:1});J.set("feature",{pos:225.70703125,index:2});Y.parallelCommits=true;r.forEach(((r,n)=>{if(r.parents.length>0){t=dt(r)}const s=ht(r,t);e(s).toEqual(a.get(n));e(t).toEqual(o.get(n))}))}));t("should get the correct commit position after parallel commits",(()=>{Q.clear();J.clear();at="BT";const t=30;Q.clear();J.clear();J.set("main",{pos:0,index:0});J.set("develop",{pos:107.49609375,index:1});J.set("feature",{pos:225.70703125,index:2});it(s,r,t);s.forEach((t=>{const r=Q.get(t);e(r).toEqual(n.get(t))}))}))}));Y.parallelCommits=false;t("add",(()=>{Q.set("parent1",{x:1,y:1});Q.set("parent2",{x:2,y:2});Q.set("parent3",{x:3,y:3});at="LR";const t=["parent1","parent2","parent3"];const r=st(t);e(r).toBe("parent3");Q.clear()}))}var Tt=(0,c.K2)((t=>`\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n ${[0,1,2,3,4,5,6,7].map((e=>`\n .branch-label${e} { fill: ${t["gitBranchLabel"+e]}; }\n .commit${e} { stroke: ${t["git"+e]}; fill: ${t["git"+e]}; }\n .commit-highlight${e} { stroke: ${t["gitInv"+e]}; fill: ${t["gitInv"+e]}; }\n .label${e} { fill: ${t["git"+e]}; }\n .arrow${e} { stroke: ${t["git"+e]}; }\n `)).join("\n")}\n\n .branch {\n stroke-width: 1;\n stroke: ${t.lineColor};\n stroke-dasharray: 2;\n }\n .commit-label { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelColor};}\n .commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelBackground}; opacity: 0.5; }\n .tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}\n .tag-label-bkg { fill: ${t.tagLabelBackground}; stroke: ${t.tagLabelBorder}; }\n .tag-hole { fill: ${t.textColor}; }\n\n .commit-merge {\n stroke: ${t.primaryColor};\n fill: ${t.primaryColor};\n }\n .commit-reverse {\n stroke: ${t.primaryColor};\n fill: ${t.primaryColor};\n stroke-width: 3;\n }\n .commit-highlight-outer {\n }\n .commit-highlight-inner {\n stroke: ${t.primaryColor};\n fill: ${t.primaryColor};\n }\n\n .arrow { stroke-width: 8; stroke-linecap: round; fill: none}\n .gitTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n`),"getStyles");var Mt=Tt;var Rt={parser:S,db:q,renderer:Lt,styles:Mt}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/2729.cafaf0caf2c0c83ac9fe.js b/share/jupyter/lab/static/2729.cafaf0caf2c0c83ac9fe.js new file mode 100644 index 0000000..689bf77 --- /dev/null +++ b/share/jupyter/lab/static/2729.cafaf0caf2c0c83ac9fe.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2729],{22729:(O,e,t)=>{t.r(e);t.d(e,{json:()=>c,jsonLanguage:()=>i,jsonParseLinter:()=>P});var r=t(27421);var a=t(45145);const n=(0,a.styleTags)({String:a.tags.string,Number:a.tags.number,"True False":a.tags.bool,PropertyName:a.tags.propertyName,Null:a.tags.null,",":a.tags.separator,"[ ]":a.tags.squareBracket,"{ }":a.tags.brace});const s=r.U1.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[n],skippedNodes:[0],repeatNodeCount:2,tokenData:"(p~RaXY!WYZ!W]^!Wpq!Wrs!]|}$i}!O$n!Q!R$w!R![&V![!]&h!}#O&m#P#Q&r#Y#Z&w#b#c'f#h#i'}#o#p(f#q#r(k~!]Oc~~!`Upq!]qr!]rs!rs#O!]#O#P!w#P~!]~!wOe~~!zXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#g~#jR!Q![#s!c!i#s#T#Z#s~#vR!Q![$P!c!i$P#T#Z$P~$SR!Q![$]!c!i$]#T#Z$]~$`R!Q![!]!c!i!]#T#Z!]~$nOh~~$qQ!Q!R$w!R![&V~$|RT~!O!P%V!g!h%k#X#Y%k~%YP!Q![%]~%bRT~!Q![%]!g!h%k#X#Y%k~%nR{|%w}!O%w!Q![%}~%zP!Q![%}~&SPT~!Q![%}~&[ST~!O!P%V!Q![&V!g!h%k#X#Y%k~&mOg~~&rO]~~&wO[~~&zP#T#U&}~'QP#`#a'T~'WP#g#h'Z~'^P#X#Y'a~'fOR~~'iP#i#j'l~'oP#`#a'r~'uP#`#a'x~'}OS~~(QP#f#g(T~(WP#i#j(Z~(^P#X#Y(a~(fOQ~~(kOW~~(pOV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});var o=t(4452);const P=()=>O=>{try{JSON.parse(O.state.doc.toString())}catch(e){if(!(e instanceof SyntaxError))throw e;const t=Q(e,O.state.doc);return[{from:t,message:e.message,severity:"error",to:t}]}return[]};function Q(O,e){let t;if(t=O.message.match(/at position (\d+)/))return Math.min(+t[1],e.length);if(t=O.message.match(/at line (\d+) column (\d+)/))return Math.min(e.line(+t[1]).from+ +t[2]-1,e.length);return 0}const i=o.LRLanguage.define({name:"json",parser:s.configure({props:[o.indentNodeProp.add({Object:(0,o.continuedIndent)({except:/^\s*\}/}),Array:(0,o.continuedIndent)({except:/^\s*\]/})}),o.foldNodeProp.add({"Object Array":o.foldInside})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function c(){return new o.LanguageSupport(i)}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/2794.05495c139ed000b57598.js b/share/jupyter/lab/static/2794.05495c139ed000b57598.js new file mode 100644 index 0000000..9fe2f9c --- /dev/null +++ b/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/share/jupyter/lab/static/2823.0b6015b5e03c08281f41.js b/share/jupyter/lab/static/2823.0b6015b5e03c08281f41.js new file mode 100644 index 0000000..79e51c3 --- /dev/null +++ b/share/jupyter/lab/static/2823.0b6015b5e03c08281f41.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2823],{82823:(e,t,r)=>{r.r(t);r.d(t,{coffeeScript:()=>x});var n="error";function i(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var f=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/;var a=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/;var o=/^[_A-Za-z$][_A-Za-z$0-9]*/;var c=/^@[_A-Za-z$][_A-Za-z$0-9]*/;var p=i(["and","or","not","is","isnt","in","instanceof","typeof"]);var s=["for","while","loop","if","unless","else","switch","try","catch","finally","class"];var u=["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"];var l=i(s.concat(u));s=i(s);var v=/^('{3}|\"{3}|['\"])/;var d=/^(\/{3}|\/)/;var h=["Infinity","NaN","undefined","null","true","false","on","off","yes","no"];var m=i(h);function k(e,t){if(e.sol()){if(t.scope.align===null)t.scope.align=false;var r=t.scope.offset;if(e.eatSpace()){var i=e.indentation();if(i>r&&t.scope.type=="coffee"){return"indent"}else if(i0){z(e,t)}}}if(e.eatSpace()){return null}var s=e.peek();if(e.match("####")){e.skipToEnd();return"comment"}if(e.match("###")){t.tokenize=g;return t.tokenize(e,t)}if(s==="#"){e.skipToEnd();return"comment"}if(e.match(/^-?[0-9\.]/,false)){var u=false;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)){u=true}if(e.match(/^-?\d+\.\d*/)){u=true}if(e.match(/^-?\.\d+/)){u=true}if(u){if(e.peek()=="."){e.backUp(1)}return"number"}var h=false;if(e.match(/^-?0x[0-9a-f]+/i)){h=true}if(e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)){h=true}if(e.match(/^-?0(?![\dx])/i)){h=true}if(h){return"number"}}if(e.match(v)){t.tokenize=y(e.current(),false,"string");return t.tokenize(e,t)}if(e.match(d)){if(e.current()!="/"||e.match(/^.*\//,false)){t.tokenize=y(e.current(),true,"string.special");return t.tokenize(e,t)}else{e.backUp(1)}}if(e.match(f)||e.match(p)){return"operator"}if(e.match(a)){return"punctuation"}if(e.match(m)){return"atom"}if(e.match(c)||t.prop&&e.match(o)){return"property"}if(e.match(l)){return"keyword"}if(e.match(o)){return"variable"}e.next();return n}function y(e,t,r){return function(n,i){while(!n.eol()){n.eatWhile(/[^'"\/\\]/);if(n.eat("\\")){n.next();if(t&&n.eol()){return r}}else if(n.match(e)){i.tokenize=k;return r}else{n.eat(/['"\/]/)}}if(t){i.tokenize=k}return r}}function g(e,t){while(!e.eol()){e.eatWhile(/[^#]/);if(e.match("###")){t.tokenize=k;break}e.eatWhile("#")}return"comment"}function b(e,t,r="coffee"){var n=0,i=false,f=null;for(var a=t.scope;a;a=a.prev){if(a.type==="coffee"||a.type=="}"){n=a.offset+e.indentUnit;break}}if(r!=="coffee"){i=null;f=e.column()+e.current().length}else if(t.scope.align){t.scope.align=false}t.scope={offset:n,type:r,prev:t.scope,align:i,alignOffset:f}}function z(e,t){if(!t.scope.prev)return;if(t.scope.type==="coffee"){var r=e.indentation();var n=false;for(var i=t.scope;i;i=i.prev){if(r===i.offset){n=true;break}}if(!n){return true}while(t.scope.prev&&t.scope.offset!==r){t.scope=t.scope.prev}return false}else{t.scope=t.scope.prev;return false}}function w(e,t){var r=t.tokenize(e,t);var i=e.current();if(i==="return"){t.dedent=true}if((i==="->"||i==="=>")&&e.eol()||r==="indent"){b(e,t)}var f="[({".indexOf(i);if(f!==-1){b(e,t,"])}".slice(f,f+1))}if(s.exec(i)){b(e,t)}if(i=="then"){z(e,t)}if(r==="dedent"){if(z(e,t)){return n}}f="])}".indexOf(i);if(f!==-1){while(t.scope.type=="coffee"&&t.scope.prev)t.scope=t.scope.prev;if(t.scope.type==i)t.scope=t.scope.prev}if(t.dedent&&e.eol()){if(t.scope.type=="coffee"&&t.scope.prev)t.scope=t.scope.prev;t.dedent=false}return r=="indent"||r=="dedent"?null:r}const x={name:"coffeescript",startState:function(){return{tokenize:k,scope:{offset:0,type:"coffee",prev:null,align:false},prop:false,dedent:0}},token:function(e,t){var r=t.scope.align===null&&t.scope;if(r&&e.sol())r.align=false;var n=w(e,t);if(n&&n!="comment"){if(r)r.align=true;t.prop=n=="punctuation"&&e.current()=="."}return n},indent:function(e,t){if(e.tokenize!=k)return 0;var r=e.scope;var n=t&&"])}".indexOf(t.charAt(0))>-1;if(n)while(r.type=="coffee"&&r.prev)r=r.prev;var i=n&&r.type===t.charAt(0);if(r.align)return r.alignOffset-(i?1:0);else return(i?r.prev:r).offset},languageData:{commentTokens:{line:"#"}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/2880.8483d51b11998bfe8e4b.js b/share/jupyter/lab/static/2880.8483d51b11998bfe8e4b.js new file mode 100644 index 0000000..b4f503d --- /dev/null +++ b/share/jupyter/lab/static/2880.8483d51b11998bfe8e4b.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2880,5606],{52880:(e,t,i)=>{var s=i(65606);!function(t,i){true?e.exports=i():0}(self,(()=>(()=>{"use strict";var e={903:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseRenderLayer=void 0;const s=i(274),r=i(627),o=i(237),n=i(860),a=i(374),h=i(296),l=i(345),c=i(859),d=i(399),_=i(855);class u extends c.Disposable{get canvas(){return this._canvas}get cacheCanvas(){return this._charAtlas?.pages[0].canvas}constructor(e,t,i,r,o,n,a,d,_,u){super(),this._terminal=e,this._container=t,this._alpha=o,this._themeService=n,this._bufferService=a,this._optionsService=d,this._decorationService=_,this._coreBrowserService=u,this._deviceCharWidth=0,this._deviceCharHeight=0,this._deviceCellWidth=0,this._deviceCellHeight=0,this._deviceCharLeft=0,this._deviceCharTop=0,this._selectionModel=(0,h.createSelectionRenderModel)(),this._bitmapGenerator=[],this._charAtlasDisposable=this.register(new c.MutableDisposable),this._onAddTextureAtlasCanvas=this.register(new l.EventEmitter),this.onAddTextureAtlasCanvas=this._onAddTextureAtlasCanvas.event,this._cellColorResolver=new s.CellColorResolver(this._terminal,this._optionsService,this._selectionModel,this._decorationService,this._coreBrowserService,this._themeService),this._canvas=this._coreBrowserService.mainDocument.createElement("canvas"),this._canvas.classList.add(`xterm-${i}-layer`),this._canvas.style.zIndex=r.toString(),this._initCanvas(),this._container.appendChild(this._canvas),this._refreshCharAtlas(this._themeService.colors),this.register(this._themeService.onChangeColors((e=>{this._refreshCharAtlas(e),this.reset(),this.handleSelectionChanged(this._selectionModel.selectionStart,this._selectionModel.selectionEnd,this._selectionModel.columnSelectMode)}))),this.register((0,c.toDisposable)((()=>{this._canvas.remove()})))}_initCanvas(){this._ctx=(0,a.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()}handleBlur(){}handleFocus(){}handleCursorMove(){}handleGridChanged(e,t){}handleSelectionChanged(e,t,i=!1){this._selectionModel.update(this._terminal._core,e,t,i)}_setTransparency(e){if(e===this._alpha)return;const t=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,t),this._refreshCharAtlas(this._themeService.colors),this.handleGridChanged(0,this._bufferService.rows-1)}_refreshCharAtlas(e){if(!(this._deviceCharWidth<=0&&this._deviceCharHeight<=0)){this._charAtlas=(0,r.acquireTextureAtlas)(this._terminal,this._optionsService.rawOptions,e,this._deviceCellWidth,this._deviceCellHeight,this._deviceCharWidth,this._deviceCharHeight,this._coreBrowserService.dpr),this._charAtlasDisposable.value=(0,l.forwardEvent)(this._charAtlas.onAddTextureAtlasCanvas,this._onAddTextureAtlasCanvas),this._charAtlas.warmUp();for(let e=0;e1?this._charAtlas.getRasterizedGlyphCombinedChar(s,this._cellColorResolver.result.bg,this._cellColorResolver.result.fg,this._cellColorResolver.result.ext,!0):this._charAtlas.getRasterizedGlyph(e.getCode()||_.WHITESPACE_CELL_CODE,this._cellColorResolver.result.bg,this._cellColorResolver.result.fg,this._cellColorResolver.result.ext,!0),!n.size.x||!n.size.y)return;this._ctx.save(),this._clipRow(i),this._bitmapGenerator[n.texturePage]&&this._charAtlas.pages[n.texturePage].canvas!==this._bitmapGenerator[n.texturePage].canvas&&(this._bitmapGenerator[n.texturePage]?.bitmap?.close(),delete this._bitmapGenerator[n.texturePage]),this._charAtlas.pages[n.texturePage].version!==this._bitmapGenerator[n.texturePage]?.version&&(this._bitmapGenerator[n.texturePage]||(this._bitmapGenerator[n.texturePage]=new g(this._charAtlas.pages[n.texturePage].canvas)),this._bitmapGenerator[n.texturePage].refresh(),this._bitmapGenerator[n.texturePage].version=this._charAtlas.pages[n.texturePage].version);let h=n.size.x;this._optionsService.rawOptions.rescaleOverlappingGlyphs&&(0,a.allowRescaling)(r,o,n.size.x,this._deviceCellWidth)&&(h=this._deviceCellWidth-1),this._ctx.drawImage(this._bitmapGenerator[n.texturePage]?.bitmap||this._charAtlas.pages[n.texturePage].canvas,n.texturePosition.x,n.texturePosition.y,n.size.x,n.size.y,t*this._deviceCellWidth+this._deviceCharLeft-n.offset.x,i*this._deviceCellHeight+this._deviceCharTop-n.offset.y,h,n.size.y),this._ctx.restore()}_clipRow(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._deviceCellHeight,this._bufferService.cols*this._deviceCellWidth,this._deviceCellHeight),this._ctx.clip()}_getFont(e,t){return`${t?"italic":""} ${e?this._optionsService.rawOptions.fontWeightBold:this._optionsService.rawOptions.fontWeight} ${this._optionsService.rawOptions.fontSize*this._coreBrowserService.dpr}px ${this._optionsService.rawOptions.fontFamily}`}}t.BaseRenderLayer=u;class g{get bitmap(){return this._bitmap}constructor(e){this.canvas=e,this._state=0,this._commitTimeout=void 0,this._bitmap=void 0,this.version=-1}refresh(){this._bitmap?.close(),this._bitmap=void 0,d.isSafari||(void 0===this._commitTimeout&&(this._commitTimeout=window.setTimeout((()=>this._generate()),100)),1===this._state&&(this._state=2))}_generate(){0===this._state&&(this._bitmap?.close(),this._bitmap=void 0,this._state=1,window.createImageBitmap(this.canvas).then((e=>{2===this._state?this.refresh():this._bitmap=e,this._state=0})),this._commitTimeout&&(this._commitTimeout=void 0))}}},949:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasRenderer=void 0;const s=i(627),r=i(56),o=i(374),n=i(345),a=i(859),h=i(873),l=i(43),c=i(630),d=i(744);class _ extends a.Disposable{constructor(e,t,i,_,u,g,f,v,C,p,m){super(),this._terminal=e,this._screenElement=t,this._bufferService=_,this._charSizeService=u,this._optionsService=g,this._coreBrowserService=C,this._themeService=m,this._observerDisposable=this.register(new a.MutableDisposable),this._onRequestRedraw=this.register(new n.EventEmitter),this.onRequestRedraw=this._onRequestRedraw.event,this._onChangeTextureAtlas=this.register(new n.EventEmitter),this.onChangeTextureAtlas=this._onChangeTextureAtlas.event,this._onAddTextureAtlasCanvas=this.register(new n.EventEmitter),this.onAddTextureAtlasCanvas=this._onAddTextureAtlasCanvas.event;const w=this._optionsService.rawOptions.allowTransparency;this._renderLayers=[new d.TextRenderLayer(this._terminal,this._screenElement,0,w,this._bufferService,this._optionsService,f,p,this._coreBrowserService,m),new c.SelectionRenderLayer(this._terminal,this._screenElement,1,this._bufferService,this._coreBrowserService,p,this._optionsService,m),new l.LinkRenderLayer(this._terminal,this._screenElement,2,i,this._bufferService,this._optionsService,p,this._coreBrowserService,m),new h.CursorRenderLayer(this._terminal,this._screenElement,3,this._onRequestRedraw,this._bufferService,this._optionsService,v,this._coreBrowserService,p,m)];for(const s of this._renderLayers)(0,n.forwardEvent)(s.onAddTextureAtlasCanvas,this._onAddTextureAtlasCanvas);this.dimensions=(0,o.createRenderDimensions)(),this._devicePixelRatio=this._coreBrowserService.dpr,this._updateDimensions(),this._observerDisposable.value=(0,r.observeDevicePixelDimensions)(this._renderLayers[0].canvas,this._coreBrowserService.window,((e,t)=>this._setCanvasDevicePixelDimensions(e,t))),this.register(this._coreBrowserService.onWindowChange((e=>{this._observerDisposable.value=(0,r.observeDevicePixelDimensions)(this._renderLayers[0].canvas,e,((e,t)=>this._setCanvasDevicePixelDimensions(e,t)))}))),this.register((0,a.toDisposable)((()=>{for(const e of this._renderLayers)e.dispose();(0,s.removeTerminalFromCache)(this._terminal)})))}get textureAtlas(){return this._renderLayers[0].cacheCanvas}handleDevicePixelRatioChange(){this._devicePixelRatio!==this._coreBrowserService.dpr&&(this._devicePixelRatio=this._coreBrowserService.dpr,this.handleResize(this._bufferService.cols,this._bufferService.rows))}handleResize(e,t){this._updateDimensions();for(const i of this._renderLayers)i.resize(this.dimensions);this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}handleCharSizeChanged(){this.handleResize(this._bufferService.cols,this._bufferService.rows)}handleBlur(){this._runOperation((e=>e.handleBlur()))}handleFocus(){this._runOperation((e=>e.handleFocus()))}handleSelectionChanged(e,t,i=!1){this._runOperation((s=>s.handleSelectionChanged(e,t,i))),this._themeService.colors.selectionForeground&&this._onRequestRedraw.fire({start:0,end:this._bufferService.rows-1})}handleCursorMove(){this._runOperation((e=>e.handleCursorMove()))}clear(){this._runOperation((e=>e.reset()))}_runOperation(e){for(const t of this._renderLayers)e(t)}renderRows(e,t){for(const i of this._renderLayers)i.handleGridChanged(e,t)}clearTextureAtlas(){for(const e of this._renderLayers)e.clearTextureAtlas()}_updateDimensions(){if(!this._charSizeService.hasValidSize)return;const e=this._coreBrowserService.dpr;this.dimensions.device.char.width=Math.floor(this._charSizeService.width*e),this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*e),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.top=1===this._optionsService.rawOptions.lineHeight?0:Math.round((this.dimensions.device.cell.height-this.dimensions.device.char.height)/2),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.char.left=Math.floor(this._optionsService.rawOptions.letterSpacing/2),this.dimensions.device.canvas.height=this._bufferService.rows*this.dimensions.device.cell.height,this.dimensions.device.canvas.width=this._bufferService.cols*this.dimensions.device.cell.width,this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/e),this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/e),this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows,this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols}_setCanvasDevicePixelDimensions(e,t){this.dimensions.device.canvas.height=t,this.dimensions.device.canvas.width=e;for(const i of this._renderLayers)i.resize(this.dimensions);this._requestRedrawViewport()}_requestRedrawViewport(){this._onRequestRedraw.fire({start:0,end:this._bufferService.rows-1})}}t.CanvasRenderer=_},873:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CursorRenderLayer=void 0;const s=i(457),r=i(859),o=i(399),n=i(782),a=i(903);class h extends a.BaseRenderLayer{constructor(e,t,i,s,o,a,h,l,c,d){super(e,t,"cursor",i,!0,d,o,a,c,l),this._onRequestRedraw=s,this._coreService=h,this._cursorBlinkStateManager=this.register(new r.MutableDisposable),this._cell=new n.CellData,this._state={x:0,y:0,isFocused:!1,style:"",width:0},this._cursorRenderers={bar:this._renderBarCursor.bind(this),block:this._renderBlockCursor.bind(this),underline:this._renderUnderlineCursor.bind(this),outline:this._renderOutlineCursor.bind(this)},this.register(a.onOptionChange((()=>this._handleOptionsChanged()))),this._handleOptionsChanged()}resize(e){super.resize(e),this._state={x:0,y:0,isFocused:!1,style:"",width:0}}reset(){this._clearCursor(),this._cursorBlinkStateManager.value?.restartBlinkAnimation(),this._handleOptionsChanged()}handleBlur(){this._cursorBlinkStateManager.value?.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})}handleFocus(){this._cursorBlinkStateManager.value?.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})}_handleOptionsChanged(){this._optionsService.rawOptions.cursorBlink?this._cursorBlinkStateManager.value||(this._cursorBlinkStateManager.value=new s.CursorBlinkStateManager((()=>this._render(!0)),this._coreBrowserService)):this._cursorBlinkStateManager.clear(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})}handleCursorMove(){this._cursorBlinkStateManager.value?.restartBlinkAnimation()}handleGridChanged(e,t){!this._cursorBlinkStateManager.value||this._cursorBlinkStateManager.value.isPaused?this._render(!1):this._cursorBlinkStateManager.value.restartBlinkAnimation()}_render(e){if(!this._coreService.isCursorInitialized||this._coreService.isCursorHidden)return void this._clearCursor();const t=this._bufferService.buffer.ybase+this._bufferService.buffer.y,i=t-this._bufferService.buffer.ydisp;if(i<0||i>=this._bufferService.rows)return void this._clearCursor();const s=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(t).loadCell(s,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._themeService.colors.cursor.css;const e=this._optionsService.rawOptions.cursorStyle,t=this._optionsService.rawOptions.cursorInactiveStyle;return t&&"none"!==t&&this._cursorRenderers[t](s,i,this._cell),this._ctx.restore(),this._state.x=s,this._state.y=i,this._state.isFocused=!1,this._state.style=e,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager.value||this._cursorBlinkStateManager.value.isCursorVisible){if(this._state){if(this._state.x===s&&this._state.y===i&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.rawOptions.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.rawOptions.cursorStyle||"block"](s,i,this._cell),this._ctx.restore(),this._state.x=s,this._state.y=i,this._state.isFocused=!1,this._state.style=this._optionsService.rawOptions.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}_clearCursor(){this._state&&(o.isFirefox||this._coreBrowserService.dpr<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})}_renderBarCursor(e,t,i){this._ctx.save(),this._ctx.fillStyle=this._themeService.colors.cursor.css,this._fillLeftLineAtCell(e,t,this._optionsService.rawOptions.cursorWidth),this._ctx.restore()}_renderBlockCursor(e,t,i){this._ctx.save(),this._ctx.fillStyle=this._themeService.colors.cursor.css,this._fillCells(e,t,i.getWidth(),1),this._ctx.fillStyle=this._themeService.colors.cursorAccent.css,this._fillCharTrueColor(i,e,t),this._ctx.restore()}_renderUnderlineCursor(e,t,i){this._ctx.save(),this._ctx.fillStyle=this._themeService.colors.cursor.css,this._fillBottomLineAtCells(e,t),this._ctx.restore()}_renderOutlineCursor(e,t,i){this._ctx.save(),this._ctx.strokeStyle=this._themeService.colors.cursor.css,this._strokeRectAtCell(e,t,i.getWidth(),1),this._ctx.restore()}}t.CursorRenderLayer=h},574:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GridCache=void 0,t.GridCache=class{constructor(){this.cache=[]}resize(e,t){for(let i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.LinkRenderLayer=void 0;const s=i(197),r=i(237),o=i(903);class n extends o.BaseRenderLayer{constructor(e,t,i,s,r,o,n,a,h){super(e,t,"link",i,!0,h,r,o,n,a),this.register(s.onShowLinkUnderline((e=>this._handleShowLinkUnderline(e)))),this.register(s.onHideLinkUnderline((e=>this._handleHideLinkUnderline(e))))}resize(e){super.resize(e),this._state=void 0}reset(){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: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.SelectionRenderLayer=void 0;const s=i(903);class r extends s.BaseRenderLayer{constructor(e,t,i,s,r,o,n,a){super(e,t,"selection",i,!0,a,s,n,o,r),this._clearState()}_clearState(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}}resize(e){super.resize(e),this._selectionModel.selectionStart&&this._selectionModel.selectionEnd&&(this._clearState(),this._redrawSelection(this._selectionModel.selectionStart,this._selectionModel.selectionEnd,this._selectionModel.columnSelectMode))}reset(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())}handleBlur(){this.reset(),this._redrawSelection(this._selectionModel.selectionStart,this._selectionModel.selectionEnd,this._selectionModel.columnSelectMode)}handleFocus(){this.reset(),this._redrawSelection(this._selectionModel.selectionStart,this._selectionModel.selectionEnd,this._selectionModel.columnSelectMode)}handleSelectionChanged(e,t,i){super.handleSelectionChanged(e,t,i),this._redrawSelection(e,t,i)}_redrawSelection(e,t,i){if(!this._didStateChange(e,t,i,this._bufferService.buffer.ydisp))return;if(this._clearAll(),!e||!t)return void this._clearState();const s=e[1]-this._bufferService.buffer.ydisp,r=t[1]-this._bufferService.buffer.ydisp,o=Math.max(s,0),n=Math.min(r,this._bufferService.rows-1);if(o>=this._bufferService.rows||n<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=(this._coreBrowserService.isFocused?this._themeService.colors.selectionBackgroundTransparent:this._themeService.colors.selectionInactiveBackgroundTransparent).css,i){const i=e[0],s=t[0]-i,r=n-o+1;this._fillCells(i,o,s,r)}else{const i=s===o?e[0]:0,a=o===r?t[0]:this._bufferService.cols;this._fillCells(i,o,a-i,1);const h=Math.max(n-o-1,0);if(this._fillCells(0,o+1,this._bufferService.cols,h),o!==n){const e=r===n?t[0]:this._bufferService.cols;this._fillCells(0,n,e,1)}}this._state.start=[e[0],e[1]],this._state.end=[t[0],t[1]],this._state.columnSelectMode=i,this._state.ydisp=this._bufferService.buffer.ydisp}}_didStateChange(e,t,i,s){return!this._areCoordinatesEqual(e,this._state.start)||!this._areCoordinatesEqual(t,this._state.end)||i!==this._state.columnSelectMode||s!==this._state.ydisp}_areCoordinatesEqual(e,t){return!(!e||!t)&&e[0]===t[0]&&e[1]===t[1]}}t.SelectionRenderLayer=r},744:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextRenderLayer=void 0;const s=i(577),r=i(147),o=i(782),n=i(855),a=i(903),h=i(574);class l extends a.BaseRenderLayer{constructor(e,t,i,s,r,n,a,l,c,d){super(e,t,"text",i,s,d,r,n,l,c),this._characterJoinerService=a,this._characterWidth=0,this._characterFont="",this._characterOverlapCache={},this._workCell=new o.CellData,this._state=new h.GridCache,this.register(n.onSpecificOptionChange("allowTransparency",(e=>this._setTransparency(e))))}resize(e){super.resize(e);const t=this._getFont(!1,!1);this._characterWidth===e.device.char.width&&this._characterFont===t||(this._characterWidth=e.device.char.width,this._characterFont=t,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)}reset(){this._state.clear(),this._clearAll()}_forEachCell(e,t,i){for(let r=e;r<=t;r++){const e=r+this._bufferService.buffer.ydisp,t=this._bufferService.buffer.lines.get(e),o=this._characterJoinerService.getJoinedCharacters(e);for(let a=0;a0&&a===o[0][0]){h=!0;const i=o.shift();e=new s.JoinedCellData(this._workCell,t.translateToString(!0,i[0],i[1]),i[1]-i[0]),l=i[1]-1}!h&&this._isOverlapping(e)&&l{let l=null;e.isInverse()?l=e.isFgDefault()?this._themeService.colors.foreground.css:e.isFgRGB()?`rgb(${r.AttributeData.toColorRGB(e.getFgColor()).join(",")})`:this._themeService.colors.ansi[e.getFgColor()].css:e.isBgRGB()?l=`rgb(${r.AttributeData.toColorRGB(e.getBgColor()).join(",")})`:e.isBgPalette()&&(l=this._themeService.colors.ansi[e.getBgColor()].css);let c=!1;this._decorationService.forEachDecorationAtCell(t,this._bufferService.buffer.ydisp+h,void 0,(e=>{"top"!==e.options.layer&&c||(e.backgroundColorRGB&&(l=e.backgroundColorRGB.css),c="top"===e.options.layer)})),null===a&&(o=t,n=h),h!==n?(i.fillStyle=a||"",this._fillCells(o,n,s-o,1),o=t,n=h):a!==l&&(i.fillStyle=a||"",this._fillCells(o,n,t-o,1),o=t,n=h),a=l})),null!==a&&(i.fillStyle=a,this._fillCells(o,n,s-o,1)),i.restore()}_drawForeground(e,t){this._forEachCell(e,t,((e,t,i)=>this._drawChars(e,t,i)))}handleGridChanged(e,t){0!==this._state.cache.length&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,e,this._bufferService.cols,t-e+1),this._drawBackground(e,t),this._drawForeground(e,t))}_isOverlapping(e){if(1!==e.getWidth())return!1;if(e.getCode()<256)return!1;const t=e.getChars();if(this._characterOverlapCache.hasOwnProperty(t))return this._characterOverlapCache[t];this._ctx.save(),this._ctx.font=this._characterFont;const i=Math.floor(this._ctx.measureText(t).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[t]=i,i}}t.TextRenderLayer=l},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=C(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 f(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 f(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),f=n.rgba.ensureContrastRatio(u,g,this._config.minimumContrastRatio/(l?2:1));if(!f)return void d.setColor(e,s,null);const v=n.channels.toColor(f>>24&255,f>>16&255,f>>8&255);return d.setColor(e,s,v),v}_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,f=.3,v=c-h,C=Math.floor(g*v),p=Math.floor(f*v),m=v-C-p;this._tmpCtx.setLineDash([C,p,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(),!B&&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*$,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,E,E+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(E,E+t),this._tmpCtx.lineTo(E+this._config.deviceCharWidth*$,E+t),this._tmpCtx.stroke()}if(B||this._tmpCtx.fillText(h,E,E+this._config.deviceCharHeight),"_"===h&&!this._config.allowTransparency){let e=v(this._tmpCtx.getImageData(E,E,this._config.deviceCellWidth,this._config.deviceCellHeight),y,k,O);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,E,E+this._config.deviceCharHeight-t),e=v(this._tmpCtx.getImageData(E,E,this._config.deviceCellWidth,this._config.deviceCellHeight),y,k,O),e);t++);}if(w){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(E,E+Math.floor(this._config.deviceCharHeight/2)-t),this._tmpCtx.lineTo(E+this._config.deviceCharWidth*$,E+Math.floor(this._config.deviceCharHeight/2)-t),this._tmpCtx.stroke()}this._tmpCtx.restore();const P=this._tmpCtx.getImageData(0,0,this._tmpCanvas.width,this._tmpCanvas.height);let I;if(I=this._config.allowTransparency?function(e){for(let t=0;t0)return!1;return!0}(P):v(P,y,k,O),I)return _;const F=this._findGlyphBoundingBox(P,this._workBoundingBox,l,D,B,E);let W,H;for(;;){if(0===this._activePages.length){const e=this._createNewPage();W=e,H=e.currentRow,H.height=F.size.y;break}W=this._activePages[this._activePages.length-1],H=W.currentRow;for(const e of this._activePages)F.size.y<=e.currentRow.height&&(W=e,H=e.currentRow);for(let e=this._activePages.length-1;e>=0;e--)for(const t of this._activePages[e].fixedRows)t.height<=H.height&&F.size.y<=t.height&&(W=this._activePages[e],H=t);if(H.y+F.size.y>=W.canvas.height||H.height>F.size.y+2){let e=!1;if(W.currentRow.y+W.currentRow.height+F.size.y>=W.canvas.height){let t;for(const e of this._activePages)if(e.currentRow.y+e.currentRow.height+F.size.y=g.maxAtlasPages&&H.y+F.size.y<=W.canvas.height&&H.height>=F.size.y&&H.x+F.size.x<=W.canvas.width)e=!0;else{const t=this._createNewPage();W=t,H=t.currentRow,H.height=F.size.y,e=!0}}e||(W.currentRow.height>0&&W.fixedRows.push(W.currentRow),H={x:0,y:W.currentRow.y+W.currentRow.height,height:F.size.y},W.fixedRows.push(H),W.currentRow={x:0,y:H.y+H.height,height:0})}if(H.x+F.size.x<=W.canvas.width)break;H===W.currentRow?(H.x=0,H.y+=H.height,H.height=0):W.fixedRows.splice(W.fixedRows.indexOf(H),1)}return F.texturePage=this._pages.indexOf(W),F.texturePosition.x=H.x,F.texturePosition.y=H.y,F.texturePositionClipSpace.x=H.x/W.canvas.width,F.texturePositionClipSpace.y=H.y/W.canvas.height,F.sizeClipSpace.x/=W.canvas.width,F.sizeClipSpace.y/=W.canvas.height,H.height=Math.max(H.height,F.size.y),H.x+=F.size.x,W.ctx.putImageData(P,F.texturePosition.x-this._workBoundingBox.left,F.texturePosition.y-this._workBoundingBox.top,this._workBoundingBox.left,this._workBoundingBox.top,F.size.x,F.size.y),W.addGlyph(F),W.version++,F}_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;_=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.CharacterJoinerService=t.JoinedCellData=void 0;const o=i(147),n=i(855),a=i(782),h=i(97);class l extends o.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=l;let c=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,o,t,r);for(let t=0;t1){const e=this._getJoinedRanges(s,a,o,t,r);for(let t=0;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,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.CanvasAddon=void 0;const t=i(345),s=i(859),o=i(776),n=i(949);class a extends s.Disposable{constructor(){super(...arguments),this._onChangeTextureAtlas=this.register(new t.EventEmitter),this.onChangeTextureAtlas=this._onChangeTextureAtlas.event,this._onAddTextureAtlasCanvas=this.register(new t.EventEmitter),this.onAddTextureAtlasCanvas=this._onAddTextureAtlasCanvas.event}get textureAtlas(){return this._renderer?.textureAtlas}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,a=i.optionsService,h=i.screenElement,l=i.linkifier,c=i,d=c._bufferService,_=c._renderService,u=c._characterJoinerService,g=c._charSizeService,f=c._coreBrowserService,v=c._decorationService,C=c._logService,p=c._themeService;(0,o.setTraceLogger)(C),this._renderer=new n.CanvasRenderer(e,h,l,d,g,a,u,r,f,v,p),this.register((0,t.forwardEvent)(this._renderer.onChangeTextureAtlas,this._onChangeTextureAtlas)),this.register((0,t.forwardEvent)(this._renderer.onAddTextureAtlasCanvas,this._onAddTextureAtlasCanvas)),_.setRenderer(this._renderer),_.handleResize(d.cols,d.rows),this.register((0,s.toDisposable)((()=>{_.setRenderer(this._terminal._core._createRenderer()),_.handleResize(e.cols,e.rows),this._renderer?.dispose(),this._renderer=void 0})))}clearTextureAtlas(){this._renderer?.clearTextureAtlas()}}e.CanvasAddon=a})(),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{var p;var r=t(86672);if(true){e.H=r.createRoot;p=r.hydrateRoot}else{var o}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/2959.b24c9f67d639376f5ead.js b/share/jupyter/lab/static/2959.b24c9f67d639376f5ead.js new file mode 100644 index 0000000..1c5d8f1 --- /dev/null +++ b/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/share/jupyter/lab/static/3053.beb23cbacffa772207b1.js b/share/jupyter/lab/static/3053.beb23cbacffa772207b1.js new file mode 100644 index 0000000..4d9bb99 --- /dev/null +++ b/share/jupyter/lab/static/3053.beb23cbacffa772207b1.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3053],{53053:(t,e,a)=>{a.d(e,{diagram:()=>P});var i=a(76901);var r=a(46884);var n=a(47925);var s=a(78188);var d=a(25301);var o=a(46103);var c=a(47655);var g=a(15164);var p=a(55750);var h=a(95035);var l=a(29131);var f=a(42418);var x=a(70416);var u=a(1218);var D=a(82211);var y=a(84416);var v=(0,x.K2)((t=>t.append("circle").attr("class","start-state").attr("r",(0,f.D7)().state.sizeUnit).attr("cx",(0,f.D7)().state.padding+(0,f.D7)().state.sizeUnit).attr("cy",(0,f.D7)().state.padding+(0,f.D7)().state.sizeUnit)),"drawStartState");var w=(0,x.K2)((t=>t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",(0,f.D7)().state.textHeight).attr("class","divider").attr("x2",(0,f.D7)().state.textHeight*2).attr("y1",0).attr("y2",0)),"drawDivider");var m=(0,x.K2)(((t,e)=>{const a=t.append("text").attr("x",2*(0,f.D7)().state.padding).attr("y",(0,f.D7)().state.textHeight+2*(0,f.D7)().state.padding).attr("font-size",(0,f.D7)().state.fontSize).attr("class","state-title").text(e.id);const i=a.node().getBBox();t.insert("rect",":first-child").attr("x",(0,f.D7)().state.padding).attr("y",(0,f.D7)().state.padding).attr("width",i.width+2*(0,f.D7)().state.padding).attr("height",i.height+2*(0,f.D7)().state.padding).attr("rx",(0,f.D7)().state.radius);return a}),"drawSimpleState");var b=(0,x.K2)(((t,e)=>{const a=(0,x.K2)((function(t,e,a){const i=t.append("tspan").attr("x",2*(0,f.D7)().state.padding).text(e);if(!a){i.attr("dy",(0,f.D7)().state.textHeight)}}),"addTspan");const i=t.append("text").attr("x",2*(0,f.D7)().state.padding).attr("y",(0,f.D7)().state.textHeight+1.3*(0,f.D7)().state.padding).attr("font-size",(0,f.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,f.D7)().state.padding).attr("y",n+(0,f.D7)().state.padding*.4+(0,f.D7)().state.dividerMargin+(0,f.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,f.D7)().state.padding).attr("y1",(0,f.D7)().state.padding+n+(0,f.D7)().state.dividerMargin/2).attr("y2",(0,f.D7)().state.padding+n+(0,f.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,f.D7)().state.padding);t.insert("rect",":first-child").attr("x",(0,f.D7)().state.padding).attr("y",(0,f.D7)().state.padding).attr("width",p+2*(0,f.D7)().state.padding).attr("height",g.height+n+2*(0,f.D7)().state.padding).attr("rx",(0,f.D7)().state.radius);return t}),"drawDescrState");var B=(0,x.K2)(((t,e,a)=>{const i=(0,f.D7)().state.padding;const r=2*(0,f.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,f.D7)().state.titleShift).attr("font-size",(0,f.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 l=t.node().getBBox();if(e.doc){}h=d-i;if(g>s){h=(s-p)/2+i}if(Math.abs(d-l.x)s){h=d-(g-s)/2}const x=1-(0,f.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",l.height+(0,f.D7)().state.textHeight+(0,f.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,f.D7)().state.titleShift-(0,f.D7)().state.textHeight-(0,f.D7)().state.padding).attr("width",p).attr("height",(0,f.D7)().state.textHeight*3).attr("rx",(0,f.D7)().state.radius);t.insert("rect",":first-child").attr("x",h).attr("y",(0,f.D7)().state.titleShift-(0,f.D7)().state.textHeight-(0,f.D7)().state.padding).attr("width",p).attr("height",l.height+3+2*(0,f.D7)().state.textHeight).attr("rx",(0,f.D7)().state.radius);return t}),"addTitleAndBox");var k=(0,x.K2)((t=>{t.append("circle").attr("class","end-state-outer").attr("r",(0,f.D7)().state.sizeUnit+(0,f.D7)().state.miniPadding).attr("cx",(0,f.D7)().state.padding+(0,f.D7)().state.sizeUnit+(0,f.D7)().state.miniPadding).attr("cy",(0,f.D7)().state.padding+(0,f.D7)().state.sizeUnit+(0,f.D7)().state.miniPadding);return t.append("circle").attr("class","end-state-inner").attr("r",(0,f.D7)().state.sizeUnit).attr("cx",(0,f.D7)().state.padding+(0,f.D7)().state.sizeUnit+2).attr("cy",(0,f.D7)().state.padding+(0,f.D7)().state.sizeUnit+2)}),"drawEndState");var S=(0,x.K2)(((t,e)=>{let a=(0,f.D7)().state.forkWidth;let i=(0,f.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,f.D7)().state.padding).attr("y",(0,f.D7)().state.padding)}),"drawForkJoinState");var N=(0,x.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(f.Y2.lineBreakRegex);let o=1.25*(0,f.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,f.D7)().state.noteMargin);i.attr("y",a+r+1.25*(0,f.D7)().state.noteMargin)}}return{textWidth:n.node().getBBox().width,textHeight:r}}),"_drawLongText");var E=(0,x.K2)(((t,e)=>{e.attr("class","state-note");const a=e.append("rect").attr("x",0).attr("y",(0,f.D7)().state.padding);const i=e.append("g");const{textWidth:r,textHeight:n}=N(t,0,0,i);a.attr("height",n+2*(0,f.D7)().state.noteMargin);a.attr("width",r+(0,f.D7)().state.noteMargin*2);return a}),"drawNote");var M=(0,x.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"){v(r)}if(e.type==="end"){k(r)}if(e.type==="fork"||e.type==="join"){S(r,e)}if(e.type==="note"){E(e.note.text,r)}if(e.type==="divider"){w(r)}if(e.type==="default"&&e.descriptions.length===0){m(r,e)}if(e.type==="default"&&e.descriptions.length>0){b(r,e)}const n=r.node().getBBox();i.width=n.width+2*(0,f.D7)().state.padding;i.height=n.height+2*(0,f.D7)().state.padding;return i}),"drawState");var K=0;var R=(0,x.K2)((function(t,e,a){const r=(0,x.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,u.n8j)().x((function(t){return t.x})).y((function(t){return t.y})).curve(u.qrM);const d=t.append("path").attr("d",s(n)).attr("id","edge"+K).attr("class","transition");let o="";if((0,f.D7)().state.arrowMarkerAbsolute){o=(0,f.ID)(true)}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}=l._K.calcLabelPosition(e.points);const s=f.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);x.Rm.info(a.x,r,n+d);if(d===0){const t=e.node().getBBox();d=t.height;x.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 h=i.node().getBBox();i.insert("rect",":first-child").attr("class","box").attr("x",r-c/2-(0,f.D7)().state.padding/2).attr("y",n-p/2-(0,f.D7)().state.padding/2-3.5).attr("width",c+(0,f.D7)().state.padding).attr("height",p+(0,f.D7)().state.padding);x.Rm.info(h)}K++}),"drawEdge");var z;var H={};var T=(0,x.K2)((function(){}),"setConf");var L=(0,x.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 A=(0,x.K2)((function(t,e,a,i){z=(0,f.D7)().state;const r=(0,f.D7)().securityLevel;let n;if(r==="sandbox"){n=(0,u.Ltv)("#i"+e)}const s=r==="sandbox"?(0,u.Ltv)(n.nodes()[0].contentDocument.body):(0,u.Ltv)("body");const d=r==="sandbox"?n.nodes()[0].contentDocument:document;x.Rm.debug("Rendering diagram "+t);const o=s.select(`[id='${e}']`);L(o);const c=i.db.getRootDoc();C(c,o,void 0,false,s,d,i);const g=z.padding;const p=o.node().getBBox();const h=p.width+g*2;const l=p.height+g*2;const D=h*1.75;(0,f.a$)(o,l,D,z.useMaxWidth);o.attr("viewBox",`${p.x-z.padding} ${p.y-z.padding} `+h+" "+l)}),"draw");var G=(0,x.K2)((t=>t?t.length*z.fontSizeFactor:1),"getLabelWidth");var C=(0,x.K2)(((t,e,a,i,r,n,s)=>{const d=new y.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{x.Rm.debug("No Node "+t+": "+JSON.stringify(d.node(t)))}}));let w=v.getBBox();d.edges().forEach((function(t){if(t!==void 0&&d.edge(t)!==void 0){x.Rm.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(d.edge(t)));R(e,d.edge(t),d.edge(t).relation)}}));w=v.getBBox();const m={id:a?a:"root",label:a?a:"root",width:0,height:0};m.width=w.width+2*z.padding;m.height=w.height+2*z.padding;x.Rm.debug("Doc rendered",m,d);return m}),"renderDoc");var O={setConf:T,draw:A};var P={parser:i.Zk,get db(){return new i.u4(1)},renderer:O,styles:i.tM,init:(0,x.K2)((t=>{if(!t.state){t.state={}}t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute}),"init")}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/30e889b58cbc51adfbb0.woff b/share/jupyter/lab/static/30e889b58cbc51adfbb0.woff new file mode 100644 index 0000000..4048e4b Binary files /dev/null and b/share/jupyter/lab/static/30e889b58cbc51adfbb0.woff differ diff --git a/share/jupyter/lab/static/3111.33574d9124842f355bce.js b/share/jupyter/lab/static/3111.33574d9124842f355bce.js new file mode 100644 index 0000000..027f6ae --- /dev/null +++ b/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/share/jupyter/lab/static/3112.0757b31e24c5334fda73.js b/share/jupyter/lab/static/3112.0757b31e24c5334fda73.js new file mode 100644 index 0000000..81788da --- /dev/null +++ b/share/jupyter/lab/static/3112.0757b31e24c5334fda73.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3112],{3112:(r,t,n)=>{n.r(t);n.d(t,{http:()=>f});function e(r,t){r.skipToEnd();t.cur=s;return"error"}function u(r,t){if(r.match(/^HTTP\/\d\.\d/)){t.cur=c;return"keyword"}else if(r.match(/^[A-Z]+/)&&/[ \t]/.test(r.peek())){t.cur=o;return"keyword"}else{return e(r,t)}}function c(r,t){var n=r.match(/^\d+/);if(!n)return e(r,t);t.cur=i;var u=Number(n[0]);if(u>=100&&u<400){return"atom"}else{return"error"}}function i(r,t){r.skipToEnd();t.cur=s;return null}function o(r,t){r.eatWhile(/\S/);t.cur=a;return"string.special"}function a(r,t){if(r.match(/^HTTP\/\d\.\d$/)){t.cur=s;return"keyword"}else{return e(r,t)}}function s(r){if(r.sol()&&!r.eat(/[ \t]/)){if(r.match(/^.*?:/)){return"atom"}else{r.skipToEnd();return"error"}}else{r.skipToEnd();return"string"}}function l(r){r.skipToEnd();return null}const f={name:"http",token:function(r,t){var n=t.cur;if(n!=s&&n!=l&&r.eatSpace())return null;return n(r,t)},blankLine:function(r){r.cur=l},startState:function(){return{cur:u}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/321.0fb994fd384a54491584.js b/share/jupyter/lab/static/321.0fb994fd384a54491584.js new file mode 100644 index 0000000..1c61e1e --- /dev/null +++ b/share/jupyter/lab/static/321.0fb994fd384a54491584.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[321],{90321:(e,t,n)=>{n.r(t);n.d(t,{swift:()=>A});function r(e){var t={};for(var n=0;n-1){e.next();return"operator"}if(f.indexOf(r)>-1){e.next();e.match("..");return"punctuation"}var k;if(k=e.match(/("""|"|')/)){var w=y.bind(null,k[0]);t.tokenize.push(w);return w(e,t)}if(e.match(v)){var b=e.current();if(u.hasOwnProperty(b))return"type";if(o.hasOwnProperty(b))return"atom";if(i.hasOwnProperty(b)){if(a.hasOwnProperty(b))t.prev="define";return"keyword"}if(n=="define")return"def";return"variable"}e.next();return null}function w(){var e=0;return function(t,n,r){var i=k(t,n,r);if(i=="punctuation"){if(t.current()=="(")++e;else if(t.current()==")"){if(e==0){t.backUp(1);n.tokenize.pop();return n.tokenize[n.tokenize.length-1](t,n)}else--e}}return i}}function y(e,t,n){var r=e.length==1;var i,a=false;while(i=t.peek()){if(a){t.next();if(i=="("){n.tokenize.push(w());return"string"}a=false}else if(t.match(e)){n.tokenize.pop();return"string"}else{t.next();a=i=="\\"}}if(r){n.tokenize.pop()}return"string"}function x(e,t){var n;while(n=e.next()){if(n==="/"&&e.eat("*")){t.tokenize.push(x)}else if(n==="*"&&e.eat("/")){t.tokenize.pop();break}}return"comment"}function b(e,t,n){this.prev=e;this.align=t;this.indented=n}function g(e,t){var n=t.match(/^\s*($|\/[\/\*]|[)}\]])/,false)?null:t.column()+1;e.context=new b(e.context,n,e.indented)}function z(e){if(e.context){e.indented=e.context.indented;e.context=e.context.prev}}const A={name:"swift",startState:function(){return{prev:null,context:null,indented:0,tokenize:[]}},token:function(e,t){var n=t.prev;t.prev=null;var r=t.tokenize[t.tokenize.length-1]||k;var i=r(e,t,n);if(!i||i=="comment")t.prev=n;else if(!t.prev)t.prev=i;if(i=="punctuation"){var a=/[\(\[\{]|([\]\)\}])/.exec(e.current());if(a)(a[1]?z:g)(t,e)}return i},indent:function(e,t,n){var r=e.context;if(!r)return 0;var i=/^[\]\}\)]/.test(t);if(r.align!=null)return r.align-(i?1:0);return r.indented+(i?0:n.unit)},languageData:{indentOnInput:/^\s*[\)\}\]]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/3257.30af681f0c294efb65f7.js b/share/jupyter/lab/static/3257.30af681f0c294efb65f7.js new file mode 100644 index 0000000..e407a5c --- /dev/null +++ b/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{Object.defineProperty(t,"__esModule",{value:true});t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const s=r(4042);const n=r(86144);const o=r(36653);const a=r(72079);const i=["/properties"];const c="http://json-schema.org/draft-07/schema";class u extends s.default{_addVocabularies(){super._addVocabularies();n.default.forEach((e=>this.addVocabulary(e)));if(this.opts.discriminator)this.addKeyword(o.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();if(!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(e,c,false);this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:undefined)}}t.Ajv=u;e.exports=t=u;e.exports.Ajv=u;Object.defineProperty(t,"__esModule",{value:true});t["default"]=u;var d=r(62586);Object.defineProperty(t,"KeywordCxt",{enumerable:true,get:function(){return d.KeywordCxt}});var l=r(99029);Object.defineProperty(t,"_",{enumerable:true,get:function(){return l._}});Object.defineProperty(t,"str",{enumerable:true,get:function(){return l.str}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return l.stringify}});Object.defineProperty(t,"nil",{enumerable:true,get:function(){return l.nil}});Object.defineProperty(t,"Name",{enumerable:true,get:function(){return l.Name}});Object.defineProperty(t,"CodeGen",{enumerable:true,get:function(){return l.CodeGen}});var f=r(13558);Object.defineProperty(t,"ValidationError",{enumerable:true,get:function(){return f.default}});var h=r(34551);Object.defineProperty(t,"MissingRefError",{enumerable:true,get:function(){return h.default}})},41520:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class r{}t._CodeOrName=r;t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class s extends r{constructor(e){super();if(!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return false}get names(){return{[this.str]:1}}}t.Name=s;class n extends r{constructor(e){super();this._items=typeof e==="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return false;const e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce(((e,t)=>{if(t instanceof s)e[t.str]=(e[t.str]||0)+1;return e}),{})}}t._Code=n;t.nil=new n("");function o(e,...t){const r=[e[0]];let s=0;while(s{Object.defineProperty(t,"__esModule",{value:true});t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const s=r(41520);const n=r(57845);var o=r(41520);Object.defineProperty(t,"_",{enumerable:true,get:function(){return o._}});Object.defineProperty(t,"str",{enumerable:true,get:function(){return o.str}});Object.defineProperty(t,"strConcat",{enumerable:true,get:function(){return o.strConcat}});Object.defineProperty(t,"nil",{enumerable:true,get:function(){return o.nil}});Object.defineProperty(t,"getProperty",{enumerable:true,get:function(){return o.getProperty}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return o.stringify}});Object.defineProperty(t,"regexpCode",{enumerable:true,get:function(){return o.regexpCode}});Object.defineProperty(t,"Name",{enumerable:true,get:function(){return o.Name}});var a=r(57845);Object.defineProperty(t,"Scope",{enumerable:true,get:function(){return a.Scope}});Object.defineProperty(t,"ValueScope",{enumerable:true,get:function(){return a.ValueScope}});Object.defineProperty(t,"ValueScopeName",{enumerable:true,get:function(){return a.ValueScopeName}});Object.defineProperty(t,"varKinds",{enumerable:true,get:function(){return a.varKinds}});t.operators={GT:new s._Code(">"),GTE:new s._Code(">="),LT:new s._Code("<"),LTE:new s._Code("<="),EQ:new s._Code("==="),NEQ:new s._Code("!=="),NOT:new s._Code("!"),OR:new s._Code("||"),AND:new s._Code("&&"),ADD:new s._Code("+")};class i{optimizeNodes(){return this}optimizeNames(e,t){return this}}class c extends i{constructor(e,t,r){super();this.varKind=e;this.name=t;this.rhs=r}render({es5:e,_n:t}){const r=e?n.varKinds.var:this.varKind;const s=this.rhs===undefined?"":` = ${this.rhs}`;return`${r} ${this.name}${s};`+t}optimizeNames(e,t){if(!e[this.name.str])return;if(this.rhs)this.rhs=x(this.rhs,e,t);return this}get names(){return this.rhs instanceof s._CodeOrName?this.rhs.names:{}}}class u extends i{constructor(e,t,r){super();this.lhs=e;this.rhs=t;this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(this.lhs instanceof s.Name&&!e[this.lhs.str]&&!this.sideEffects)return;this.rhs=x(this.rhs,e,t);return this}get names(){const e=this.lhs instanceof s.Name?{}:{...this.lhs.names};return I(e,this.rhs)}}class d extends u{constructor(e,t,r,s){super(e,r,s);this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class l extends i{constructor(e){super();this.label=e;this.names={}}render({_n:e}){return`${this.label}:`+e}}class f extends i{constructor(e){super();this.label=e;this.names={}}render({_n:e}){const t=this.label?` ${this.label}`:"";return`break${t};`+e}}class h extends i{constructor(e){super();this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class p extends i{constructor(e){super();this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:undefined}optimizeNames(e,t){this.code=x(this.code,e,t);return this}get names(){return this.code instanceof s._CodeOrName?this.code.names:{}}}class m extends i{constructor(e=[]){super();this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;while(t--){const r=e[t].optimizeNodes();if(Array.isArray(r))e.splice(t,1,...r);else if(r)e[t]=r;else e.splice(t,1)}return e.length>0?this:undefined}optimizeNames(e,t){const{nodes:r}=this;let s=r.length;while(s--){const n=r[s];if(n.optimizeNames(e,t))continue;T(e,n.names);r.splice(s,1)}return r.length>0?this:undefined}get names(){return this.nodes.reduce(((e,t)=>C(e,t.names)),{})}}class y extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class g extends m{}class $ extends y{}$.kind="else";class v extends y{constructor(e,t){super(t);this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);if(this.else)t+="else "+this.else.render(e);return t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(e===true)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new $(e):e}if(t){if(e===false)return t instanceof v?t:t.nodes;if(this.nodes.length)return this;return new v(R(e),t instanceof v?[t]:t.nodes)}if(e===false||!this.nodes.length)return undefined;return this}optimizeNames(e,t){var r;this.else=(r=this.else)===null||r===void 0?void 0:r.optimizeNames(e,t);if(!(super.optimizeNames(e,t)||this.else))return;this.condition=x(this.condition,e,t);return this}get names(){const e=super.names;I(e,this.condition);if(this.else)C(e,this.else.names);return e}}v.kind="if";class _ extends y{}_.kind="for";class w extends _{constructor(e){super();this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(!super.optimizeNames(e,t))return;this.iteration=x(this.iteration,e,t);return this}get names(){return C(super.names,this.iteration.names)}}class b extends _{constructor(e,t,r,s){super();this.varKind=e;this.name=t;this.from=r;this.to=s}render(e){const t=e.es5?n.varKinds.var:this.varKind;const{name:r,from:s,to:o}=this;return`for(${t} ${r}=${s}; ${r}<${o}; ${r}++)`+super.render(e)}get names(){const e=I(super.names,this.from);return I(e,this.to)}}class P extends _{constructor(e,t,r,s){super();this.loop=e;this.varKind=t;this.name=r;this.iterable=s}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(!super.optimizeNames(e,t))return;this.iterable=x(this.iterable,e,t);return this}get names(){return C(super.names,this.iterable.names)}}class E extends y{constructor(e,t,r){super();this.name=e;this.args=t;this.async=r}render(e){const t=this.async?"async ":"";return`${t}function ${this.name}(${this.args})`+super.render(e)}}E.kind="func";class S extends m{render(e){return"return "+super.render(e)}}S.kind="return";class k extends y{render(e){let t="try"+super.render(e);if(this.catch)t+=this.catch.render(e);if(this.finally)t+=this.finally.render(e);return t}optimizeNodes(){var e,t;super.optimizeNodes();(e=this.catch)===null||e===void 0?void 0:e.optimizeNodes();(t=this.finally)===null||t===void 0?void 0:t.optimizeNodes();return this}optimizeNames(e,t){var r,s;super.optimizeNames(e,t);(r=this.catch)===null||r===void 0?void 0:r.optimizeNames(e,t);(s=this.finally)===null||s===void 0?void 0:s.optimizeNames(e,t);return this}get names(){const e=super.names;if(this.catch)C(e,this.catch.names);if(this.finally)C(e,this.finally.names);return e}}class N extends y{constructor(e){super();this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}N.kind="catch";class j extends y{render(e){return"finally"+super.render(e)}}j.kind="finally";class O{constructor(e,t={}){this._values={};this._blockStarts=[];this._constants={};this.opts={...t,_n:t.lines?"\n":""};this._extScope=e;this._scope=new n.Scope({parent:e});this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);const s=this._values[r.prefix]||(this._values[r.prefix]=new Set);s.add(r);return r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,s){const n=this._scope.toName(t);if(r!==undefined&&s)this._constants[n.str]=r;this._leafNode(new c(e,n,r));return n}const(e,t,r){return this._def(n.varKinds.const,e,t,r)}let(e,t,r){return this._def(n.varKinds.let,e,t,r)}var(e,t,r){return this._def(n.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new u(e,t,r))}add(e,r){return this._leafNode(new d(e,t.operators.ADD,r))}code(e){if(typeof e=="function")e();else if(e!==s.nil)this._leafNode(new p(e));return this}object(...e){const t=["{"];for(const[r,n]of e){if(t.length>1)t.push(",");t.push(r);if(r!==n||this.opts.es5){t.push(":");(0,s.addCodeArg)(t,n)}}t.push("}");return new s._Code(t)}if(e,t,r){this._blockNode(new v(e));if(t&&r){this.code(t).else().code(r).endIf()}else if(t){this.code(t).endIf()}else if(r){throw new Error('CodeGen: "else" body without "then" body')}return this}elseIf(e){return this._elseNode(new v(e))}else(){return this._elseNode(new $)}endIf(){return this._endBlockNode(v,$)}_for(e,t){this._blockNode(e);if(t)this.code(t).endFor();return this}for(e,t){return this._for(new w(e),t)}forRange(e,t,r,s,o=(this.opts.es5?n.varKinds.var:n.varKinds.let)){const a=this._scope.toName(e);return this._for(new b(o,a,t,r),(()=>s(a)))}forOf(e,t,r,o=n.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=t instanceof s.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,s._)`${e}.length`,(t=>{this.var(a,(0,s._)`${e}[${t}]`);r(a)}))}return this._for(new P("of",o,a,t),(()=>r(a)))}forIn(e,t,r,o=(this.opts.es5?n.varKinds.var:n.varKinds.const)){if(this.opts.ownProperties){return this.forOf(e,(0,s._)`Object.keys(${t})`,r)}const a=this._scope.toName(e);return this._for(new P("in",o,a,t),(()=>r(a)))}endFor(){return this._endBlockNode(_)}label(e){return this._leafNode(new l(e))}break(e){return this._leafNode(new f(e))}return(e){const t=new S;this._blockNode(t);this.code(e);if(t.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const s=new k;this._blockNode(s);this.code(e);if(t){const e=this.name("e");this._currNode=s.catch=new N(e);t(e)}if(r){this._currNode=s.finally=new j;this.code(r)}return this._endBlockNode(N,j)}throw(e){return this._leafNode(new h(e))}block(e,t){this._blockStarts.push(this._nodes.length);if(e)this.code(e).endBlock(t);return this}endBlock(e){const t=this._blockStarts.pop();if(t===undefined)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||e!==undefined&&r!==e){throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`)}this._nodes.length=t;return this}func(e,t=s.nil,r,n){this._blockNode(new E(e,t,r));if(n)this.code(n).endFunc();return this}endFunc(){return this._endBlockNode(E)}optimize(e=1){while(e-- >0){this._root.optimizeNodes();this._root.optimizeNames(this._root.names,this._constants)}}_leafNode(e){this._currNode.nodes.push(e);return this}_blockNode(e){this._currNode.nodes.push(e);this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t){this._nodes.pop();return this}throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof v)){throw new Error('CodeGen: "else" without "if"')}this._currNode=t.else=e;return this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}}t.CodeGen=O;function C(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function I(e,t){return t instanceof s._CodeOrName?C(e,t.names):e}function x(e,t,r){if(e instanceof s.Name)return n(e);if(!o(e))return e;return new s._Code(e._items.reduce(((e,t)=>{if(t instanceof s.Name)t=n(t);if(t instanceof s._Code)e.push(...t._items);else e.push(t);return e}),[]));function n(e){const s=r[e.str];if(s===undefined||t[e.str]!==1)return e;delete t[e.str];return s}function o(e){return e instanceof s._Code&&e._items.some((e=>e instanceof s.Name&&t[e.str]===1&&r[e.str]!==undefined))}}function T(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function R(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,s._)`!${q(e)}`}t.not=R;const M=z(t.operators.AND);function A(...e){return e.reduce(M)}t.and=A;const D=z(t.operators.OR);function V(...e){return e.reduce(D)}t.or=V;function z(e){return(t,r)=>t===s.nil?r:r===s.nil?t:(0,s._)`${q(t)} ${e} ${q(r)}`}function q(e){return e instanceof s.Name?e:(0,s._)`(${e})`}},57845:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const s=r(41520);class n extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`);this.value=e.value}}var o;(function(e){e[e["Started"]=0]="Started";e[e["Completed"]=1]="Completed"})(o||(t.UsedValueState=o={}));t.varKinds={const:new s.Name("const"),let:new s.Name("let"),var:new s.Name("var")};class a{constructor({prefixes:e,parent:t}={}){this._names={};this._prefixes=e;this._parent=t}toName(e){return e instanceof s.Name?e:this.name(e)}name(e){return new s.Name(this._newName(e))}_newName(e){const t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){var t,r;if(((r=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||r===void 0?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e)){throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`)}return this._names[e]={prefix:e,index:0}}}t.Scope=a;class i extends s.Name{constructor(e,t){super(t);this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e;this.scopePath=(0,s._)`.${new s.Name(t)}[${r}]`}}t.ValueScopeName=i;const c=(0,s._)`\n`;class u extends a{constructor(e){super(e);this._values={};this._scope=e.scope;this.opts={...e,_n:e.lines?c:s.nil}}get(){return this._scope}name(e){return new i(e,this._newName(e))}value(e,t){var r;if(t.ref===undefined)throw new Error("CodeGen: ref must be passed in value");const s=this.toName(e);const{prefix:n}=s;const o=(r=t.key)!==null&&r!==void 0?r:t.ref;let a=this._values[n];if(a){const e=a.get(o);if(e)return e}else{a=this._values[n]=new Map}a.set(o,s);const i=this._scope[n]||(this._scope[n]=[]);const c=i.length;i[c]=t.ref;s.setValue(t,{property:n,itemIndex:c});return s}getValue(e,t){const r=this._values[e];if(!r)return;return r.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(t.scopePath===undefined)throw new Error(`CodeGen: name "${t}" has no value`);return(0,s._)`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(e.value===undefined)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(e,r,a={},i){let c=s.nil;for(const u in e){const d=e[u];if(!d)continue;const l=a[u]=a[u]||new Map;d.forEach((e=>{if(l.has(e))return;l.set(e,o.Started);let a=r(e);if(a){const r=this.opts.es5?t.varKinds.var:t.varKinds.const;c=(0,s._)`${c}${r} ${e} = ${a};${this.opts._n}`}else if(a=i===null||i===void 0?void 0:i(e)){c=(0,s._)`${c}${a}${this.opts._n}`}else{throw new n(e)}l.set(e,o.Completed)}))}return c}}t.ValueScope=u},48708:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const s=r(99029);const n=r(94227);const o=r(42023);t.keywordError={message:({keyword:e})=>(0,s.str)`must pass "${e}" keyword validation`};t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,s.str)`"${e}" keyword must be ${t} ($data)`:(0,s.str)`"${e}" keyword is invalid ($data)`};function a(e,r=t.keywordError,n,o){const{it:a}=e;const{gen:i,compositeRule:c,allErrors:u}=a;const f=h(e,r,n);if(o!==null&&o!==void 0?o:c||u){d(i,f)}else{l(a,(0,s._)`[${f}]`)}}t.reportError=a;function i(e,r=t.keywordError,s){const{it:n}=e;const{gen:a,compositeRule:i,allErrors:c}=n;const u=h(e,r,s);d(a,u);if(!(i||c)){l(n,o.default.vErrors)}}t.reportExtraError=i;function c(e,t){e.assign(o.default.errors,t);e.if((0,s._)`${o.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign((0,s._)`${o.default.vErrors}.length`,t)),(()=>e.assign(o.default.vErrors,null)))))}t.resetErrorsCount=c;function u({gen:e,keyword:t,schemaValue:r,data:n,errsCount:a,it:i}){if(a===undefined)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",a,o.default.errors,(a=>{e.const(c,(0,s._)`${o.default.vErrors}[${a}]`);e.if((0,s._)`${c}.instancePath === undefined`,(()=>e.assign((0,s._)`${c}.instancePath`,(0,s.strConcat)(o.default.instancePath,i.errorPath))));e.assign((0,s._)`${c}.schemaPath`,(0,s.str)`${i.errSchemaPath}/${t}`);if(i.opts.verbose){e.assign((0,s._)`${c}.schema`,r);e.assign((0,s._)`${c}.data`,n)}}))}t.extendErrors=u;function d(e,t){const r=e.const("err",t);e.if((0,s._)`${o.default.vErrors} === null`,(()=>e.assign(o.default.vErrors,(0,s._)`[${r}]`)),(0,s._)`${o.default.vErrors}.push(${r})`);e.code((0,s._)`${o.default.errors}++`)}function l(e,t){const{gen:r,validateName:n,schemaEnv:o}=e;if(o.$async){r.throw((0,s._)`new ${e.ValidationError}(${t})`)}else{r.assign((0,s._)`${n}.errors`,t);r.return(false)}}const f={keyword:new s.Name("keyword"),schemaPath:new s.Name("schemaPath"),params:new s.Name("params"),propertyName:new s.Name("propertyName"),message:new s.Name("message"),schema:new s.Name("schema"),parentSchema:new s.Name("parentSchema")};function h(e,t,r){const{createErrors:n}=e.it;if(n===false)return(0,s._)`{}`;return p(e,t,r)}function p(e,t,r={}){const{gen:s,it:n}=e;const o=[m(n,r),y(e,r)];g(e,t,o);return s.object(...o)}function m({errorPath:e},{instancePath:t}){const r=t?(0,s.str)`${e}${(0,n.getErrorPath)(t,n.Type.Str)}`:e;return[o.default.instancePath,(0,s.strConcat)(o.default.instancePath,r)]}function y({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:o}){let a=o?t:(0,s.str)`${t}/${e}`;if(r){a=(0,s.str)`${a}${(0,n.getErrorPath)(r,n.Type.Str)}`}return[f.schemaPath,a]}function g(e,{params:t,message:r},n){const{keyword:a,data:i,schemaValue:c,it:u}=e;const{opts:d,propertyName:l,topSchemaRef:h,schemaPath:p}=u;n.push([f.keyword,a],[f.params,typeof t=="function"?t(e):t||(0,s._)`{}`]);if(d.messages){n.push([f.message,typeof r=="function"?r(e):r])}if(d.verbose){n.push([f.schema,c],[f.parentSchema,(0,s._)`${h}${p}`],[o.default.data,i])}if(l)n.push([f.propertyName,l])}},73835:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const s=r(99029);const n=r(13558);const o=r(42023);const a=r(66939);const i=r(94227);const c=r(62586);class u{constructor(e){var t;this.refs={};this.dynamicAnchors={};let r;if(typeof e.schema=="object")r=e.schema;this.schema=e.schema;this.schemaId=e.schemaId;this.root=e.root||this;this.baseId=(t=e.baseId)!==null&&t!==void 0?t:(0,a.normalizeId)(r===null||r===void 0?void 0:r[e.schemaId||"$id"]);this.schemaPath=e.schemaPath;this.localRefs=e.localRefs;this.meta=e.meta;this.$async=r===null||r===void 0?void 0:r.$async;this.refs={}}}t.SchemaEnv=u;function d(e){const t=h.call(this,e);if(t)return t;const r=(0,a.getFullPath)(this.opts.uriResolver,e.root.baseId);const{es5:i,lines:u}=this.opts.code;const{ownProperties:d}=this.opts;const l=new s.CodeGen(this.scope,{es5:i,lines:u,ownProperties:d});let f;if(e.$async){f=l.scopeValue("Error",{ref:n.default,code:(0,s._)`require("ajv/dist/runtime/validation_error").default`})}const p=l.scopeName("validate");e.validateName=p;const m={gen:l,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[s.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:l.scopeValue("schema",this.opts.code.source===true?{ref:e.schema,code:(0,s.stringify)(e.schema)}:{ref:e.schema}),validateName:p,ValidationError:f,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:s.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,s._)`""`,opts:this.opts,self:this};let y;try{this._compilations.add(e);(0,c.validateFunctionCode)(m);l.optimize(this.opts.code.optimize);const t=l.toString();y=`${l.scopeRefs(o.default.scope)}return ${t}`;if(this.opts.code.process)y=this.opts.code.process(y,e);const r=new Function(`${o.default.self}`,`${o.default.scope}`,y);const n=r(this,this.scope.get());this.scope.value(p,{ref:n});n.errors=null;n.schema=e.schema;n.schemaEnv=e;if(e.$async)n.$async=true;if(this.opts.code.source===true){n.source={validateName:p,validateCode:t,scopeValues:l._values}}if(this.opts.unevaluated){const{props:e,items:t}=m;n.evaluated={props:e instanceof s.Name?undefined:e,items:t instanceof s.Name?undefined:t,dynamicProps:e instanceof s.Name,dynamicItems:t instanceof s.Name};if(n.source)n.source.evaluated=(0,s.stringify)(n.evaluated)}e.validate=n;return e}catch(g){delete e.validate;delete e.validateName;if(y)this.logger.error("Error compiling schema, function code:",y);throw g}finally{this._compilations.delete(e)}}t.compileSchema=d;function l(e,t,r){var s;r=(0,a.resolveUrl)(this.opts.uriResolver,t,r);const n=e.refs[r];if(n)return n;let o=m.call(this,e,r);if(o===undefined){const n=(s=e.localRefs)===null||s===void 0?void 0:s[r];const{schemaId:a}=this.opts;if(n)o=new u({schema:n,schemaId:a,root:e,baseId:t})}if(o===undefined)return;return e.refs[r]=f.call(this,o)}t.resolveRef=l;function f(e){if((0,a.inlineRef)(e.schema,this.opts.inlineRefs))return e.schema;return e.validate?e:d.call(this,e)}function h(e){for(const t of this._compilations){if(p(t,e))return t}}t.getCompilingSchema=h;function p(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function m(e,t){let r;while(typeof(r=this.refs[t])=="string")t=r;return r||this.schemas[t]||y.call(this,e,t)}function y(e,t){const r=this.opts.uriResolver.parse(t);const s=(0,a._getFullPath)(this.opts.uriResolver,r);let n=(0,a.getFullPath)(this.opts.uriResolver,e.baseId,undefined);if(Object.keys(e.schema).length>0&&s===n){return $.call(this,r,e)}const o=(0,a.normalizeId)(s);const i=this.refs[o]||this.schemas[o];if(typeof i=="string"){const t=y.call(this,e,i);if(typeof(t===null||t===void 0?void 0:t.schema)!=="object")return;return $.call(this,r,t)}if(typeof(i===null||i===void 0?void 0:i.schema)!=="object")return;if(!i.validate)d.call(this,i);if(o===(0,a.normalizeId)(t)){const{schema:t}=i;const{schemaId:r}=this.opts;const s=t[r];if(s)n=(0,a.resolveUrl)(this.opts.uriResolver,n,s);return new u({schema:t,schemaId:r,root:e,baseId:n})}return $.call(this,r,i)}t.resolveSchema=y;const g=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function $(e,{baseId:t,schema:r,root:s}){var n;if(((n=e.fragment)===null||n===void 0?void 0:n[0])!=="/")return;for(const u of e.fragment.slice(1).split("/")){if(typeof r==="boolean")return;const e=r[(0,i.unescapeFragment)(u)];if(e===undefined)return;r=e;const s=typeof r==="object"&&r[this.opts.schemaId];if(!g.has(u)&&s){t=(0,a.resolveUrl)(this.opts.uriResolver,t,s)}}let o;if(typeof r!="boolean"&&r.$ref&&!(0,i.schemaHasRulesButRef)(r,this.RULES)){const e=(0,a.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=y.call(this,s,e)}const{schemaId:c}=this.opts;o=o||new u({schema:r,schemaId:c,root:s,baseId:t});if(o.schema!==o.root.schema)return o;return undefined}},42023:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n={data:new s.Name("data"),valCxt:new s.Name("valCxt"),instancePath:new s.Name("instancePath"),parentData:new s.Name("parentData"),parentDataProperty:new s.Name("parentDataProperty"),rootData:new s.Name("rootData"),dynamicAnchors:new s.Name("dynamicAnchors"),vErrors:new s.Name("vErrors"),errors:new s.Name("errors"),this:new s.Name("this"),self:new s.Name("self"),scope:new s.Name("scope"),json:new s.Name("json"),jsonPos:new s.Name("jsonPos"),jsonLen:new s.Name("jsonLen"),jsonPart:new s.Name("jsonPart")};t["default"]=n},34551:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(66939);class n extends Error{constructor(e,t,r,n){super(n||`can't resolve reference ${r} from id ${t}`);this.missingRef=(0,s.resolveUrl)(e,t,r);this.missingSchema=(0,s.normalizeId)((0,s.getFullPath)(e,this.missingRef))}}t["default"]=n},66939:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const s=r(94227);const n=r(32017);const o=r(7106);const a=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(e,t=true){if(typeof e=="boolean")return true;if(t===true)return!u(e);if(!t)return false;return d(e)<=t}t.inlineRef=i;const c=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function u(e){for(const t in e){if(c.has(t))return true;const r=e[t];if(Array.isArray(r)&&r.some(u))return true;if(typeof r=="object"&&u(r))return true}return false}function d(e){let t=0;for(const r in e){if(r==="$ref")return Infinity;t++;if(a.has(r))continue;if(typeof e[r]=="object"){(0,s.eachItem)(e[r],(e=>t+=d(e)))}if(t===Infinity)return Infinity}return t}function l(e,t="",r){if(r!==false)t=p(t);const s=e.parse(t);return f(e,s)}t.getFullPath=l;function f(e,t){const r=e.serialize(t);return r.split("#")[0]+"#"}t._getFullPath=f;const h=/#\/?$/;function p(e){return e?e.replace(h,""):""}t.normalizeId=p;function m(e,t,r){r=p(r);return e.resolve(t,r)}t.resolveUrl=m;const y=/^[a-z_][-a-z0-9._]*$/i;function g(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:s}=this.opts;const a=p(e[r]||t);const i={"":a};const c=l(s,a,false);const u={};const d=new Set;o(e,{allKeys:true},((e,t,s,n)=>{if(n===undefined)return;const o=c+t;let a=i[n];if(typeof e[r]=="string")a=l.call(this,e[r]);m.call(this,e.$anchor);m.call(this,e.$dynamicAnchor);i[t]=a;function l(t){const r=this.opts.uriResolver.resolve;t=p(a?r(a,t):t);if(d.has(t))throw h(t);d.add(t);let s=this.refs[t];if(typeof s=="string")s=this.refs[s];if(typeof s=="object"){f(e,s.schema,t)}else if(t!==p(o)){if(t[0]==="#"){f(e,u[t],t);u[t]=e}else{this.refs[t]=o}}return t}function m(e){if(typeof e=="string"){if(!y.test(e))throw new Error(`invalid anchor "${e}"`);l.call(this,`#${e}`)}}}));return u;function f(e,t,r){if(t!==undefined&&!n(e,t))throw h(r)}function h(e){return new Error(`reference "${e}" resolves to more than one schema`)}}t.getSchemaRefs=g},10396:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRules=t.isJSONType=void 0;const r=["string","number","integer","boolean","null","object","array"];const s=new Set(r);function n(e){return typeof e=="string"&&s.has(e)}t.isJSONType=n;function o(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:true,boolean:true,null:true},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}t.getRules=o},94227:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const s=r(99029);const n=r(41520);function o(e){const t={};for(const r of e)t[r]=true;return t}t.toHash=o;function a(e,t){if(typeof t=="boolean")return t;if(Object.keys(t).length===0)return true;i(e,t);return!c(t,e.self.RULES.all)}t.alwaysValidSchema=a;function i(e,t=e.schema){const{opts:r,self:s}=e;if(!r.strictSchema)return;if(typeof t==="boolean")return;const n=s.RULES.keywords;for(const o in t){if(!n[o])P(e,`unknown keyword: "${o}"`)}}t.checkUnknownRules=i;function c(e,t){if(typeof e=="boolean")return!e;for(const r in e)if(t[r])return true;return false}t.schemaHasRules=c;function u(e,t){if(typeof e=="boolean")return!e;for(const r in e)if(r!=="$ref"&&t.all[r])return true;return false}t.schemaHasRulesButRef=u;function d({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,s._)`${r}`}return(0,s._)`${e}${t}${(0,s.getProperty)(n)}`}t.schemaRefOrVal=d;function l(e){return p(decodeURIComponent(e))}t.unescapeFragment=l;function f(e){return encodeURIComponent(h(e))}t.escapeFragment=f;function h(e){if(typeof e=="number")return`${e}`;return e.replace(/~/g,"~0").replace(/\//g,"~1")}t.escapeJsonPointer=h;function p(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}t.unescapeJsonPointer=p;function m(e,t){if(Array.isArray(e)){for(const r of e)t(r)}else{t(e)}}t.eachItem=m;function y({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,a,i,c)=>{const u=i===undefined?a:i instanceof s.Name?(a instanceof s.Name?e(o,a,i):t(o,a,i),i):a instanceof s.Name?(t(o,i,a),a):r(a,i);return c===s.Name&&!(u instanceof s.Name)?n(o,u):u}}t.mergeEvaluated={props:y({mergeNames:(e,t,r)=>e.if((0,s._)`${r} !== true && ${t} !== undefined`,(()=>{e.if((0,s._)`${t} === true`,(()=>e.assign(r,true)),(()=>e.assign(r,(0,s._)`${r} || {}`).code((0,s._)`Object.assign(${r}, ${t})`)))})),mergeToName:(e,t,r)=>e.if((0,s._)`${r} !== true`,(()=>{if(t===true){e.assign(r,true)}else{e.assign(r,(0,s._)`${r} || {}`);$(e,r,t)}})),mergeValues:(e,t)=>e===true?true:{...e,...t},resultToName:g}),items:y({mergeNames:(e,t,r)=>e.if((0,s._)`${r} !== true && ${t} !== undefined`,(()=>e.assign(r,(0,s._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`))),mergeToName:(e,t,r)=>e.if((0,s._)`${r} !== true`,(()=>e.assign(r,t===true?true:(0,s._)`${r} > ${t} ? ${r} : ${t}`))),mergeValues:(e,t)=>e===true?true:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function g(e,t){if(t===true)return e.var("props",true);const r=e.var("props",(0,s._)`{}`);if(t!==undefined)$(e,r,t);return r}t.evaluatedPropsToName=g;function $(e,t,r){Object.keys(r).forEach((r=>e.assign((0,s._)`${t}${(0,s.getProperty)(r)}`,true)))}t.setEvaluated=$;const v={};function _(e,t){return e.scopeValue("func",{ref:t,code:v[t.code]||(v[t.code]=new n._Code(t.code))})}t.useFunc=_;var w;(function(e){e[e["Num"]=0]="Num";e[e["Str"]=1]="Str"})(w||(t.Type=w={}));function b(e,t,r){if(e instanceof s.Name){const n=t===w.Num;return r?n?(0,s._)`"[" + ${e} + "]"`:(0,s._)`"['" + ${e} + "']"`:n?(0,s._)`"/" + ${e}`:(0,s._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,s.getProperty)(e).toString():"/"+h(e)}t.getErrorPath=b;function P(e,t,r=e.opts.strictSchema){if(!r)return;t=`strict mode: ${t}`;if(r===true)throw new Error(t);e.self.logger.warn(t)}t.checkStrictMode=P},7887:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0;function r({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==true&&s(e,n)}t.schemaHasRulesForType=r;function s(e,t){return t.rules.some((t=>n(e,t)))}t.shouldUseGroup=s;function n(e,t){var r;return e[t.keyword]!==undefined||((r=t.definition.implements)===null||r===void 0?void 0:r.some((t=>e[t]!==undefined)))}t.shouldUseRule=n},28727:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const s=r(48708);const n=r(99029);const o=r(42023);const a={message:"boolean schema is false"};function i(e){const{gen:t,schema:r,validateName:s}=e;if(r===false){u(e,false)}else if(typeof r=="object"&&r.$async===true){t.return(o.default.data)}else{t.assign((0,n._)`${s}.errors`,null);t.return(true)}}t.topBoolOrEmptySchema=i;function c(e,t){const{gen:r,schema:s}=e;if(s===false){r.var(t,false);u(e)}else{r.var(t,true)}}t.boolOrEmptySchema=c;function u(e,t){const{gen:r,data:n}=e;const o={gen:r,keyword:"false schema",data:n,schema:false,schemaCode:false,schemaValue:false,params:{},it:e};(0,s.reportError)(o,a,undefined,t)}},10208:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const s=r(10396);const n=r(7887);const o=r(48708);const a=r(99029);const i=r(94227);var c;(function(e){e[e["Correct"]=0]="Correct";e[e["Wrong"]=1]="Wrong"})(c||(t.DataType=c={}));function u(e){const t=d(e.type);const r=t.includes("null");if(r){if(e.nullable===false)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==undefined){throw new Error('"nullable" cannot be used without "type"')}if(e.nullable===true)t.push("null")}return t}t.getSchemaTypes=u;function d(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(s.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}t.getJSONTypes=d;function l(e,t){const{gen:r,data:s,opts:o}=e;const a=h(t,o.coerceTypes);const i=t.length>0&&!(a.length===0&&t.length===1&&(0,n.schemaHasRulesForType)(e,t[0]));if(i){const n=g(t,s,o.strictNumbers,c.Wrong);r.if(n,(()=>{if(a.length)p(e,t,a);else v(e)}))}return i}t.coerceAndCheckDataType=l;const f=new Set(["string","number","integer","boolean","null"]);function h(e,t){return t?e.filter((e=>f.has(e)||t==="array"&&e==="array")):[]}function p(e,t,r){const{gen:s,data:n,opts:o}=e;const i=s.let("dataType",(0,a._)`typeof ${n}`);const c=s.let("coerced",(0,a._)`undefined`);if(o.coerceTypes==="array"){s.if((0,a._)`${i} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,(()=>s.assign(n,(0,a._)`${n}[0]`).assign(i,(0,a._)`typeof ${n}`).if(g(t,n,o.strictNumbers),(()=>s.assign(c,n)))))}s.if((0,a._)`${c} !== undefined`);for(const a of r){if(f.has(a)||a==="array"&&o.coerceTypes==="array"){u(a)}}s.else();v(e);s.endIf();s.if((0,a._)`${c} !== undefined`,(()=>{s.assign(n,c);m(e,c)}));function u(e){switch(e){case"string":s.elseIf((0,a._)`${i} == "number" || ${i} == "boolean"`).assign(c,(0,a._)`"" + ${n}`).elseIf((0,a._)`${n} === null`).assign(c,(0,a._)`""`);return;case"number":s.elseIf((0,a._)`${i} == "boolean" || ${n} === null + || (${i} == "string" && ${n} && ${n} == +${n})`).assign(c,(0,a._)`+${n}`);return;case"integer":s.elseIf((0,a._)`${i} === "boolean" || ${n} === null + || (${i} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(c,(0,a._)`+${n}`);return;case"boolean":s.elseIf((0,a._)`${n} === "false" || ${n} === 0 || ${n} === null`).assign(c,false).elseIf((0,a._)`${n} === "true" || ${n} === 1`).assign(c,true);return;case"null":s.elseIf((0,a._)`${n} === "" || ${n} === 0 || ${n} === false`);s.assign(c,null);return;case"array":s.elseIf((0,a._)`${i} === "string" || ${i} === "number" + || ${i} === "boolean" || ${n} === null`).assign(c,(0,a._)`[${n}]`)}}}function m({gen:e,parentData:t,parentDataProperty:r},s){e.if((0,a._)`${t} !== undefined`,(()=>e.assign((0,a._)`${t}[${r}]`,s)))}function y(e,t,r,s=c.Correct){const n=s===c.Correct?a.operators.EQ:a.operators.NEQ;let o;switch(e){case"null":return(0,a._)`${t} ${n} null`;case"array":o=(0,a._)`Array.isArray(${t})`;break;case"object":o=(0,a._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=i((0,a._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=i();break;default:return(0,a._)`typeof ${t} ${n} ${e}`}return s===c.Correct?o:(0,a.not)(o);function i(e=a.nil){return(0,a.and)((0,a._)`typeof ${t} == "number"`,e,r?(0,a._)`isFinite(${t})`:a.nil)}}t.checkDataType=y;function g(e,t,r,s){if(e.length===1){return y(e[0],t,r,s)}let n;const o=(0,i.toHash)(e);if(o.array&&o.object){const e=(0,a._)`typeof ${t} != "object"`;n=o.null?e:(0,a._)`!${t} || ${e}`;delete o.null;delete o.array;delete o.object}else{n=a.nil}if(o.number)delete o.integer;for(const i in o)n=(0,a.and)(n,y(i,t,r,s));return n}t.checkDataTypes=g;const $={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,a._)`{type: ${e}}`:(0,a._)`{type: ${t}}`};function v(e){const t=_(e);(0,o.reportError)(t,$)}t.reportTypeError=v;function _(e){const{gen:t,data:r,schema:s}=e;const n=(0,i.schemaRefOrVal)(e,s,"type");return{gen:t,keyword:"type",data:r,schema:s.type,schemaCode:n,schemaValue:n,parentSchema:s,params:{},it:e}}},7870:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assignDefaults=void 0;const s=r(99029);const n=r(94227);function o(e,t){const{properties:r,items:s}=e.schema;if(t==="object"&&r){for(const t in r){a(e,t,r[t].default)}}else if(t==="array"&&Array.isArray(s)){s.forEach(((t,r)=>a(e,r,t.default)))}}t.assignDefaults=o;function a(e,t,r){const{gen:o,compositeRule:a,data:i,opts:c}=e;if(r===undefined)return;const u=(0,s._)`${i}${(0,s.getProperty)(t)}`;if(a){(0,n.checkStrictMode)(e,`default is ignored for: ${u}`);return}let d=(0,s._)`${u} === undefined`;if(c.useDefaults==="empty"){d=(0,s._)`${d} || ${u} === null || ${u} === ""`}o.if(d,(0,s._)`${u} = ${(0,s.stringify)(r)}`)}},62586:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const s=r(28727);const n=r(10208);const o=r(7887);const a=r(10208);const i=r(7870);const c=r(33673);const u=r(24495);const d=r(99029);const l=r(42023);const f=r(66939);const h=r(94227);const p=r(48708);function m(e){if(E(e)){k(e);if(P(e)){v(e);return}}y(e,(()=>(0,s.topBoolOrEmptySchema)(e)))}t.validateFunctionCode=m;function y({gen:e,validateName:t,schema:r,schemaEnv:s,opts:n},o){if(n.code.es5){e.func(t,(0,d._)`${l.default.data}, ${l.default.valCxt}`,s.$async,(()=>{e.code((0,d._)`"use strict"; ${w(r,n)}`);$(e,n);e.code(o)}))}else{e.func(t,(0,d._)`${l.default.data}, ${g(n)}`,s.$async,(()=>e.code(w(r,n)).code(o)))}}function g(e){return(0,d._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${e.dynamicRef?(0,d._)`, ${l.default.dynamicAnchors}={}`:d.nil}}={}`}function $(e,t){e.if(l.default.valCxt,(()=>{e.var(l.default.instancePath,(0,d._)`${l.default.valCxt}.${l.default.instancePath}`);e.var(l.default.parentData,(0,d._)`${l.default.valCxt}.${l.default.parentData}`);e.var(l.default.parentDataProperty,(0,d._)`${l.default.valCxt}.${l.default.parentDataProperty}`);e.var(l.default.rootData,(0,d._)`${l.default.valCxt}.${l.default.rootData}`);if(t.dynamicRef)e.var(l.default.dynamicAnchors,(0,d._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)}),(()=>{e.var(l.default.instancePath,(0,d._)`""`);e.var(l.default.parentData,(0,d._)`undefined`);e.var(l.default.parentDataProperty,(0,d._)`undefined`);e.var(l.default.rootData,l.default.data);if(t.dynamicRef)e.var(l.default.dynamicAnchors,(0,d._)`{}`)}))}function v(e){const{schema:t,opts:r,gen:s}=e;y(e,(()=>{if(r.$comment&&t.$comment)x(e);O(e);s.let(l.default.vErrors,null);s.let(l.default.errors,0);if(r.unevaluated)_(e);N(e);T(e)}));return}function _(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,d._)`${r}.evaluated`);t.if((0,d._)`${e.evaluated}.dynamicProps`,(()=>t.assign((0,d._)`${e.evaluated}.props`,(0,d._)`undefined`)));t.if((0,d._)`${e.evaluated}.dynamicItems`,(()=>t.assign((0,d._)`${e.evaluated}.items`,(0,d._)`undefined`)))}function w(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,d._)`/*# sourceURL=${r} */`:d.nil}function b(e,t){if(E(e)){k(e);if(P(e)){S(e,t);return}}(0,s.boolOrEmptySchema)(e,t)}function P({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const r in e)if(t.RULES.all[r])return true;return false}function E(e){return typeof e.schema!="boolean"}function S(e,t){const{schema:r,gen:s,opts:n}=e;if(n.$comment&&r.$comment)x(e);C(e);I(e);const o=s.const("_errs",l.default.errors);N(e,o);s.var(t,(0,d._)`${o} === ${l.default.errors}`)}function k(e){(0,h.checkUnknownRules)(e);j(e)}function N(e,t){if(e.opts.jtd)return M(e,[],false,t);const r=(0,n.getSchemaTypes)(e.schema);const s=(0,n.coerceAndCheckDataType)(e,r);M(e,r,!s,t)}function j(e){const{schema:t,errSchemaPath:r,opts:s,self:n}=e;if(t.$ref&&s.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(t,n.RULES)){n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}}function O(e){const{schema:t,opts:r}=e;if(t.default!==undefined&&r.useDefaults&&r.strictSchema){(0,h.checkStrictMode)(e,"default is ignored in the schema root")}}function C(e){const t=e.schema[e.opts.schemaId];if(t)e.baseId=(0,f.resolveUrl)(e.opts.uriResolver,e.baseId,t)}function I(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function x({gen:e,schemaEnv:t,schema:r,errSchemaPath:s,opts:n}){const o=r.$comment;if(n.$comment===true){e.code((0,d._)`${l.default.self}.logger.log(${o})`)}else if(typeof n.$comment=="function"){const r=(0,d.str)`${s}/$comment`;const n=e.scopeValue("root",{ref:t.root});e.code((0,d._)`${l.default.self}.opts.$comment(${o}, ${r}, ${n}.schema)`)}}function T(e){const{gen:t,schemaEnv:r,validateName:s,ValidationError:n,opts:o}=e;if(r.$async){t.if((0,d._)`${l.default.errors} === 0`,(()=>t.return(l.default.data)),(()=>t.throw((0,d._)`new ${n}(${l.default.vErrors})`)))}else{t.assign((0,d._)`${s}.errors`,l.default.vErrors);if(o.unevaluated)R(e);t.return((0,d._)`${l.default.errors} === 0`)}}function R({gen:e,evaluated:t,props:r,items:s}){if(r instanceof d.Name)e.assign((0,d._)`${t}.props`,r);if(s instanceof d.Name)e.assign((0,d._)`${t}.items`,s)}function M(e,t,r,s){const{gen:n,schema:i,data:c,allErrors:u,opts:f,self:p}=e;const{RULES:m}=p;if(i.$ref&&(f.ignoreKeywordsWithRef||!(0,h.schemaHasRulesButRef)(i,m))){n.block((()=>H(e,"$ref",m.all.$ref.definition)));return}if(!f.jtd)D(e,t);n.block((()=>{for(const e of m.rules)y(e);y(m.post)}));function y(h){if(!(0,o.shouldUseGroup)(i,h))return;if(h.type){n.if((0,a.checkDataType)(h.type,c,f.strictNumbers));A(e,h);if(t.length===1&&t[0]===h.type&&r){n.else();(0,a.reportTypeError)(e)}n.endIf()}else{A(e,h)}if(!u)n.if((0,d._)`${l.default.errors} === ${s||0}`)}}function A(e,t){const{gen:r,schema:s,opts:{useDefaults:n}}=e;if(n)(0,i.assignDefaults)(e,t.type);r.block((()=>{for(const r of t.rules){if((0,o.shouldUseRule)(s,r)){H(e,r.keyword,r.definition,t.type)}}}))}function D(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;V(e,t);if(!e.opts.allowUnionTypes)z(e,t);q(e,e.dataTypes)}function V(e,t){if(!t.length)return;if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach((t=>{if(!K(e.dataTypes,t)){F(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}}));L(e,t)}function z(e,t){if(t.length>1&&!(t.length===2&&t.includes("null"))){F(e,"use allowUnionTypes to allow union type keyword")}}function q(e,t){const r=e.self.RULES.all;for(const s in r){const n=r[s];if(typeof n=="object"&&(0,o.shouldUseRule)(e.schema,n)){const{type:r}=n.definition;if(r.length&&!r.some((e=>U(t,e)))){F(e,`missing type "${r.join(",")}" for keyword "${s}"`)}}}}function U(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function K(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function L(e,t){const r=[];for(const s of e.dataTypes){if(K(t,s))r.push(s);else if(t.includes("integer")&&s==="number")r.push("integer")}e.dataTypes=r}function F(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`;(0,h.checkStrictMode)(e,t,e.opts.strictTypes)}class G{constructor(e,t,r){(0,c.validateKeywordUsage)(e,t,r);this.gen=e.gen;this.allErrors=e.allErrors;this.keyword=r;this.data=e.data;this.schema=e.schema[r];this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data;this.schemaValue=(0,h.schemaRefOrVal)(e,this.schema,r,this.$data);this.schemaType=t.schemaType;this.parentSchema=e.schema;this.params={};this.it=e;this.def=t;if(this.$data){this.schemaCode=e.gen.const("vSchema",W(this.$data,e))}else{this.schemaCode=this.schemaValue;if(!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined)){throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`)}}if("code"in t?t.trackErrors:t.errors!==false){this.errsCount=e.gen.const("_errs",l.default.errors)}}result(e,t,r){this.failResult((0,d.not)(e),t,r)}failResult(e,t,r){this.gen.if(e);if(r)r();else this.error();if(t){this.gen.else();t();if(this.allErrors)this.gen.endIf()}else{if(this.allErrors)this.gen.endIf();else this.gen.else()}}pass(e,t){this.failResult((0,d.not)(e),undefined,t)}fail(e){if(e===undefined){this.error();if(!this.allErrors)this.gen.if(false);return}this.gen.if(e);this.error();if(this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail((0,d._)`${t} !== undefined && (${(0,d.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t){this.setParams(t);this._error(e,r);this.setParams({});return}this._error(e,r)}_error(e,t){(e?p.reportExtraError:p.reportError)(this,this.def.error,t)}$dataError(){(0,p.reportError)(this,this.def.$dataError||p.keyword$DataError)}reset(){if(this.errsCount===undefined)throw new Error('add "trackErrors" to keyword definition');(0,p.resetErrorsCount)(this.gen,this.errsCount)}ok(e){if(!this.allErrors)this.gen.if(e)}setParams(e,t){if(t)Object.assign(this.params,e);else this.params=e}block$data(e,t,r=d.nil){this.gen.block((()=>{this.check$data(e,r);t()}))}check$data(e=d.nil,t=d.nil){if(!this.$data)return;const{gen:r,schemaCode:s,schemaType:n,def:o}=this;r.if((0,d.or)((0,d._)`${s} === undefined`,t));if(e!==d.nil)r.assign(e,true);if(n.length||o.validateSchema){r.elseIf(this.invalid$data());this.$dataError();if(e!==d.nil)r.assign(e,false)}r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:s,it:n}=this;return(0,d.or)(o(),i());function o(){if(r.length){if(!(t instanceof d.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return(0,d._)`${(0,a.checkDataTypes)(e,t,n.opts.strictNumbers,a.DataType.Wrong)}`}return d.nil}function i(){if(s.validateSchema){const r=e.scopeValue("validate$data",{ref:s.validateSchema});return(0,d._)`!${r}(${t})`}return d.nil}}subschema(e,t){const r=(0,u.getSubschema)(this.it,e);(0,u.extendSubschemaData)(r,this.it,e);(0,u.extendSubschemaMode)(r,e);const s={...this.it,...r,items:undefined,props:undefined};b(s,t);return s}mergeEvaluated(e,t){const{it:r,gen:s}=this;if(!r.opts.unevaluated)return;if(r.props!==true&&e.props!==undefined){r.props=h.mergeEvaluated.props(s,e.props,r.props,t)}if(r.items!==true&&e.items!==undefined){r.items=h.mergeEvaluated.items(s,e.items,r.items,t)}}mergeValidEvaluated(e,t){const{it:r,gen:s}=this;if(r.opts.unevaluated&&(r.props!==true||r.items!==true)){s.if(t,(()=>this.mergeEvaluated(e,d.Name)));return true}}}t.KeywordCxt=G;function H(e,t,r,s){const n=new G(e,r,t);if("code"in r){r.code(n,s)}else if(n.$data&&r.validate){(0,c.funcKeywordCode)(n,r)}else if("macro"in r){(0,c.macroKeywordCode)(n,r)}else if(r.compile||r.validate){(0,c.funcKeywordCode)(n,r)}}const J=/^\/(?:[^~]|~0|~1)*$/;const B=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function W(e,{dataLevel:t,dataNames:r,dataPathArr:s}){let n;let o;if(e==="")return l.default.rootData;if(e[0]==="/"){if(!J.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);n=e;o=l.default.rootData}else{const a=B.exec(e);if(!a)throw new Error(`Invalid JSON-pointer: ${e}`);const i=+a[1];n=a[2];if(n==="#"){if(i>=t)throw new Error(c("property/index",i));return s[t-i]}if(i>t)throw new Error(c("data",i));o=r[t-i];if(!n)return o}let a=o;const i=n.split("/");for(const u of i){if(u){o=(0,d._)`${o}${(0,d.getProperty)((0,h.unescapeJsonPointer)(u))}`;a=(0,d._)`${a} && ${o}`}}return a;function c(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=W},33673:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const s=r(99029);const n=r(42023);const o=r(15765);const a=r(48708);function i(e,t){const{gen:r,keyword:n,schema:o,parentSchema:a,it:i}=e;const c=t.macro.call(i.self,o,a,i);const u=f(r,n,c);if(i.opts.validateSchema!==false)i.self.validateSchema(c,true);const d=r.name("valid");e.subschema({schema:c,schemaPath:s.nil,errSchemaPath:`${i.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:true},d);e.pass(d,(()=>e.error(true)))}t.macroKeywordCode=i;function c(e,t){var r;const{gen:a,keyword:i,schema:c,parentSchema:h,$data:p,it:m}=e;l(m,t);const y=!p&&t.compile?t.compile.call(m.self,c,h,m):t.validate;const g=f(a,i,y);const $=a.let("valid");e.block$data($,v);e.ok((r=t.valid)!==null&&r!==void 0?r:$);function v(){if(t.errors===false){b();if(t.modifying)u(e);P((()=>e.error()))}else{const r=t.async?_():w();if(t.modifying)u(e);P((()=>d(e,r)))}}function _(){const e=a.let("ruleErrs",null);a.try((()=>b((0,s._)`await `)),(t=>a.assign($,false).if((0,s._)`${t} instanceof ${m.ValidationError}`,(()=>a.assign(e,(0,s._)`${t}.errors`)),(()=>a.throw(t)))));return e}function w(){const e=(0,s._)`${g}.errors`;a.assign(e,null);b(s.nil);return e}function b(r=(t.async?(0,s._)`await `:s.nil)){const i=m.opts.passContext?n.default.this:n.default.self;const c=!("compile"in t&&!p||t.schema===false);a.assign($,(0,s._)`${r}${(0,o.callValidateCode)(e,g,i,c)}`,t.modifying)}function P(e){var r;a.if((0,s.not)((r=t.valid)!==null&&r!==void 0?r:$),e)}}t.funcKeywordCode=c;function u(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,(()=>t.assign(r,(0,s._)`${n.parentData}[${n.parentDataProperty}]`)))}function d(e,t){const{gen:r}=e;r.if((0,s._)`Array.isArray(${t})`,(()=>{r.assign(n.default.vErrors,(0,s._)`${n.default.vErrors} === null ? ${t} : ${n.default.vErrors}.concat(${t})`).assign(n.default.errors,(0,s._)`${n.default.vErrors}.length`);(0,a.extendErrors)(e)}),(()=>e.error()))}function l({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function f(e,t,r){if(r===undefined)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,s.stringify)(r)})}function h(e,t,r=false){return!t.length||t.some((t=>t==="array"?Array.isArray(e):t==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==t||r&&typeof e=="undefined"))}t.validSchemaType=h;function p({schema:e,opts:t,self:r,errSchemaPath:s},n,o){if(Array.isArray(n.keyword)?!n.keyword.includes(o):n.keyword!==o){throw new Error("ajv implementation error")}const a=n.dependencies;if(a===null||a===void 0?void 0:a.some((t=>!Object.prototype.hasOwnProperty.call(e,t)))){throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`)}if(n.validateSchema){const a=n.validateSchema(e[o]);if(!a){const e=`keyword "${o}" value is invalid at path "${s}": `+r.errorsText(n.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(e);else throw new Error(e)}}}t.validateKeywordUsage=p},24495:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const s=r(99029);const n=r(94227);function o(e,{keyword:t,schemaProp:r,schema:o,schemaPath:a,errSchemaPath:i,topSchemaRef:c}){if(t!==undefined&&o!==undefined){throw new Error('both "keyword" and "schema" passed, only one allowed')}if(t!==undefined){const o=e.schema[t];return r===undefined?{schema:o,schemaPath:(0,s._)`${e.schemaPath}${(0,s.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[r],schemaPath:(0,s._)`${e.schemaPath}${(0,s.getProperty)(t)}${(0,s.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,n.escapeFragment)(r)}`}}if(o!==undefined){if(a===undefined||i===undefined||c===undefined){throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"')}return{schema:o,schemaPath:a,topSchemaRef:c,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')}t.getSubschema=o;function a(e,t,{dataProp:r,dataPropType:o,data:a,dataTypes:i,propertyName:c}){if(a!==undefined&&r!==undefined){throw new Error('both "data" and "dataProp" passed, only one allowed')}const{gen:u}=t;if(r!==undefined){const{errorPath:a,dataPathArr:i,opts:c}=t;const l=u.let("data",(0,s._)`${t.data}${(0,s.getProperty)(r)}`,true);d(l);e.errorPath=(0,s.str)`${a}${(0,n.getErrorPath)(r,o,c.jsPropertySyntax)}`;e.parentDataProperty=(0,s._)`${r}`;e.dataPathArr=[...i,e.parentDataProperty]}if(a!==undefined){const t=a instanceof s.Name?a:u.let("data",a,true);d(t);if(c!==undefined)e.propertyName=c}if(i)e.dataTypes=i;function d(r){e.data=r;e.dataLevel=t.dataLevel+1;e.dataTypes=[];t.definedProperties=new Set;e.parentData=t.data;e.dataNames=[...t.dataNames,r]}}t.extendSubschemaData=a;function i(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:s,createErrors:n,allErrors:o}){if(s!==undefined)e.compositeRule=s;if(n!==undefined)e.createErrors=n;if(o!==undefined)e.allErrors=o;e.jtdDiscriminator=t;e.jtdMetadata=r}t.extendSubschemaMode=i},4042:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var s=r(62586);Object.defineProperty(t,"KeywordCxt",{enumerable:true,get:function(){return s.KeywordCxt}});var n=r(99029);Object.defineProperty(t,"_",{enumerable:true,get:function(){return n._}});Object.defineProperty(t,"str",{enumerable:true,get:function(){return n.str}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return n.stringify}});Object.defineProperty(t,"nil",{enumerable:true,get:function(){return n.nil}});Object.defineProperty(t,"Name",{enumerable:true,get:function(){return n.Name}});Object.defineProperty(t,"CodeGen",{enumerable:true,get:function(){return n.CodeGen}});const o=r(13558);const a=r(34551);const i=r(10396);const c=r(73835);const u=r(99029);const d=r(66939);const l=r(10208);const f=r(94227);const h=r(63837);const p=r(55944);const m=(e,t)=>new RegExp(e,t);m.code="new RegExp";const y=["removeAdditional","useDefaults","coerceTypes"];const g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]);const $={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."};const v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};const _=200;function w(e){var t,r,s,n,o,a,i,c,u,d,l,f,h,y,g,$,v,w,b,P,E,S,k,N,j;const O=e.strict;const C=(t=e.code)===null||t===void 0?void 0:t.optimize;const I=C===true||C===undefined?1:C||0;const x=(s=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&s!==void 0?s:m;const T=(n=e.uriResolver)!==null&&n!==void 0?n:p.default;return{strictSchema:(a=(o=e.strictSchema)!==null&&o!==void 0?o:O)!==null&&a!==void 0?a:true,strictNumbers:(c=(i=e.strictNumbers)!==null&&i!==void 0?i:O)!==null&&c!==void 0?c:true,strictTypes:(d=(u=e.strictTypes)!==null&&u!==void 0?u:O)!==null&&d!==void 0?d:"log",strictTuples:(f=(l=e.strictTuples)!==null&&l!==void 0?l:O)!==null&&f!==void 0?f:"log",strictRequired:(y=(h=e.strictRequired)!==null&&h!==void 0?h:O)!==null&&y!==void 0?y:false,code:e.code?{...e.code,optimize:I,regExp:x}:{optimize:I,regExp:x},loopRequired:(g=e.loopRequired)!==null&&g!==void 0?g:_,loopEnum:($=e.loopEnum)!==null&&$!==void 0?$:_,meta:(v=e.meta)!==null&&v!==void 0?v:true,messages:(w=e.messages)!==null&&w!==void 0?w:true,inlineRefs:(b=e.inlineRefs)!==null&&b!==void 0?b:true,schemaId:(P=e.schemaId)!==null&&P!==void 0?P:"$id",addUsedSchema:(E=e.addUsedSchema)!==null&&E!==void 0?E:true,validateSchema:(S=e.validateSchema)!==null&&S!==void 0?S:true,validateFormats:(k=e.validateFormats)!==null&&k!==void 0?k:true,unicodeRegExp:(N=e.unicodeRegExp)!==null&&N!==void 0?N:true,int32range:(j=e.int32range)!==null&&j!==void 0?j:true,uriResolver:T}}class b{constructor(e={}){this.schemas={};this.refs={};this.formats={};this._compilations=new Set;this._loading={};this._cache=new Map;e=this.opts={...e,...w(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:g,es5:t,lines:r});this.logger=C(e.logger);const s=e.validateFormats;e.validateFormats=false;this.RULES=(0,i.getRules)();P.call(this,$,e,"NOT SUPPORTED");P.call(this,v,e,"DEPRECATED","warn");this._metaOpts=j.call(this);if(e.formats)k.call(this);this._addVocabularies();this._addDefaultMetaSchema();if(e.keywords)N.call(this,e.keywords);if(typeof e.meta=="object")this.addMetaSchema(e.meta);S.call(this);e.validateFormats=s}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let s=h;if(r==="id"){s={...h};s.id=s.$id;delete s.$id}if(t&&e)this.addMetaSchema(s,s[r],false)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[t]||e:undefined}validate(e,t){let r;if(typeof e=="string"){r=this.getSchema(e);if(!r)throw new Error(`no schema with key or ref "${e}"`)}else{r=this.compile(e)}const s=r(t);if(!("$async"in r))this.errors=r.errors;return s}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if(typeof this.opts.loadSchema!="function"){throw new Error("options.loadSchema should be a function")}const{loadSchema:r}=this.opts;return s.call(this,e,t);async function s(e,t){await n.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||o.call(this,r)}async function n(e){if(e&&!this.getSchema(e)){await s.call(this,{$ref:e},true)}}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof a.default))throw t;i.call(this,t);await c.call(this,t.missingSchema);return o.call(this,e)}}function i({missingSchema:e,missingRef:t}){if(this.refs[e]){throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}}async function c(e){const r=await u.call(this,e);if(!this.refs[e])await n.call(this,r.$schema);if(!this.refs[e])this.addSchema(r,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,s=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,undefined,r,s);return this}let n;if(typeof e==="object"){const{schemaId:t}=this.opts;n=e[t];if(n!==undefined&&typeof n!="string"){throw new Error(`schema ${t} must be string`)}}t=(0,d.normalizeId)(t||n);this._checkUnique(t);this.schemas[t]=this._addSchema(e,r,t,s,true);return this}addMetaSchema(e,t,r=this.opts.validateSchema){this.addSchema(e,t,true,r);return this}validateSchema(e,t){if(typeof e=="boolean")return true;let r;r=e.$schema;if(r!==undefined&&typeof r!="string"){throw new Error("$schema must be a string")}r=r||this.opts.defaultMeta||this.defaultMeta();if(!r){this.logger.warn("meta-schema not available");this.errors=null;return true}const s=this.validate(r,e);if(!s&&t){const e="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(e);else throw new Error(e)}return s}getSchema(e){let t;while(typeof(t=E.call(this,e))=="string")e=t;if(t===undefined){const{schemaId:r}=this.opts;const s=new c.SchemaEnv({schema:{},schemaId:r});t=c.resolveSchema.call(this,s,e);if(!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp){this._removeAllSchemas(this.schemas,e);this._removeAllSchemas(this.refs,e);return this}switch(typeof e){case"undefined":this._removeAllSchemas(this.schemas);this._removeAllSchemas(this.refs);this._cache.clear();return this;case"string":{const t=E.call(this,e);if(typeof t=="object")this._cache.delete(t.schema);delete this.schemas[e];delete this.refs[e];return this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];if(r){r=(0,d.normalizeId)(r);delete this.schemas[r];delete this.refs[r]}return this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if(typeof e=="string"){r=e;if(typeof t=="object"){this.logger.warn("these parameters are deprecated, see docs for addKeyword");t.keyword=r}}else if(typeof e=="object"&&t===undefined){t=e;r=t.keyword;if(Array.isArray(r)&&!r.length){throw new Error("addKeywords: keyword must be string or non-empty array")}}else{throw new Error("invalid addKeywords parameters")}x.call(this,r,t);if(!t){(0,f.eachItem)(r,(e=>T.call(this,e)));return this}M.call(this,t);const s={...t,type:(0,l.getJSONTypes)(t.type),schemaType:(0,l.getJSONTypes)(t.schemaType)};(0,f.eachItem)(r,s.type.length===0?e=>T.call(this,e,s):e=>s.type.forEach((t=>T.call(this,e,s,t))));return this}getKeyword(e){const t=this.RULES.all[e];return typeof t=="object"?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e];delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));if(t>=0)r.rules.splice(t,1)}return this}addFormat(e,t){if(typeof t=="string")t=new RegExp(t);this.formats[e]=t;return this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){if(!e||e.length===0)return"No errors";return e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r))}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const s of t){const t=s.split("/").slice(1);let n=e;for(const e of t)n=n[e];for(const e in r){const t=r[e];if(typeof t!="object")continue;const{$data:s}=t.definition;const o=n[e];if(s&&o)n[e]=D(o)}}return e}_removeAllSchemas(e,t){for(const r in e){const s=e[r];if(!t||t.test(r)){if(typeof s=="string"){delete e[r]}else if(s&&!s.meta){this._cache.delete(s.schema);delete e[r]}}}}_addSchema(e,t,r,s=this.opts.validateSchema,n=this.opts.addUsedSchema){let o;const{schemaId:a}=this.opts;if(typeof e=="object"){o=e[a]}else{if(this.opts.jtd)throw new Error("schema must be object");else if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let i=this._cache.get(e);if(i!==undefined)return i;r=(0,d.normalizeId)(o||r);const u=d.getSchemaRefs.call(this,e,r);i=new c.SchemaEnv({schema:e,schemaId:a,meta:t,baseId:r,localRefs:u});this._cache.set(i.schema,i);if(n&&!r.startsWith("#")){if(r)this._checkUnique(r);this.refs[r]=i}if(s)this.validateSchema(e,true);return i}_checkUnique(e){if(this.schemas[e]||this.refs[e]){throw new Error(`schema with key or id "${e}" already exists`)}}_compileSchemaEnv(e){if(e.meta)this._compileMetaSchema(e);else c.compileSchema.call(this,e);if(!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,e)}finally{this.opts=t}}}b.ValidationError=o.default;b.MissingRefError=a.default;t["default"]=b;function P(e,t,r,s="error"){for(const n in e){const o=n;if(o in t)this.logger[s](`${r}: option ${n}. ${e[o]}`)}}function E(e){e=(0,d.normalizeId)(e);return this.schemas[e]||this.refs[e]}function S(){const e=this.opts.schemas;if(!e)return;if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function k(){for(const e in this.opts.formats){const t=this.opts.formats[e];if(t)this.addFormat(e,t)}}function N(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];if(!r.keyword)r.keyword=t;this.addKeyword(r)}}function j(){const e={...this.opts};for(const t of y)delete e[t];return e}const O={log(){},warn(){},error(){}};function C(e){if(e===false)return O;if(e===undefined)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}const I=/^[a-z_$][a-z0-9_$:-]*$/i;function x(e,t){const{RULES:r}=this;(0,f.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!I.test(e))throw new Error(`Keyword ${e} has invalid name`)}));if(!t)return;if(t.$data&&!("code"in t||"validate"in t)){throw new Error('$data keyword must have "code" or "validate" function')}}function T(e,t,r){var s;const n=t===null||t===void 0?void 0:t.post;if(r&&n)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let a=n?o.post:o.rules.find((({type:e})=>e===r));if(!a){a={type:r,rules:[]};o.rules.push(a)}o.keywords[e]=true;if(!t)return;const i={keyword:e,definition:{...t,type:(0,l.getJSONTypes)(t.type),schemaType:(0,l.getJSONTypes)(t.schemaType)}};if(t.before)R.call(this,a,i,t.before);else a.rules.push(i);o.all[e]=i;(s=t.implements)===null||s===void 0?void 0:s.forEach((e=>this.addKeyword(e)))}function R(e,t,r){const s=e.rules.findIndex((e=>e.keyword===r));if(s>=0){e.rules.splice(s,0,t)}else{e.rules.push(t);this.logger.warn(`rule ${r} is not defined`)}}function M(e){let{metaSchema:t}=e;if(t===undefined)return;if(e.$data&&this.opts.$data)t=D(t);e.validateSchema=this.compile(t,true)}const A={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function D(e){return{anyOf:[e,A]}}},76250:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(32017);s.code='require("ajv/dist/runtime/equal").default';t["default"]=s},53853:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});function r(e){const t=e.length;let r=0;let s=0;let n;while(s=55296&&n<=56319&&s{Object.defineProperty(t,"__esModule",{value:true});const s=r(74488);s.code='require("ajv/dist/runtime/uri").default';t["default"]=s},13558:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});class r extends Error{constructor(e){super("validation failed");this.errors=e;this.ajv=this.validation=true}}t["default"]=r},15457:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.validateAdditionalItems=void 0;const s=r(99029);const n=r(94227);const o={message:({params:{len:e}})=>(0,s.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,s._)`{limit: ${e}}`};const a={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:o,code(e){const{parentSchema:t,it:r}=e;const{items:s}=t;if(!Array.isArray(s)){(0,n.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(e,s)}};function i(e,t){const{gen:r,schema:o,data:a,keyword:i,it:c}=e;c.items=true;const u=r.const("len",(0,s._)`${a}.length`);if(o===false){e.setParams({len:t.length});e.pass((0,s._)`${u} <= ${t.length}`)}else if(typeof o=="object"&&!(0,n.alwaysValidSchema)(c,o)){const n=r.var("valid",(0,s._)`${u} <= ${t.length}`);r.if((0,s.not)(n),(()=>d(n)));e.ok(n)}function d(o){r.forRange("i",t.length,u,(t=>{e.subschema({keyword:i,dataProp:t,dataPropType:n.Type.Num},o);if(!c.allErrors)r.if((0,s.not)(o),(()=>r.break()))}))}}t.validateAdditionalItems=i;t["default"]=a},38660:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(15765);const n=r(99029);const o=r(42023);const a=r(94227);const i={message:"must NOT have additional properties",params:({params:e})=>(0,n._)`{additionalProperty: ${e.additionalProperty}}`};const c={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:true,trackErrors:true,error:i,code(e){const{gen:t,schema:r,parentSchema:i,data:c,errsCount:u,it:d}=e;if(!u)throw new Error("ajv implementation error");const{allErrors:l,opts:f}=d;d.props=true;if(f.removeAdditional!=="all"&&(0,a.alwaysValidSchema)(d,r))return;const h=(0,s.allSchemaProperties)(i.properties);const p=(0,s.allSchemaProperties)(i.patternProperties);m();e.ok((0,n._)`${u} === ${o.default.errors}`);function m(){t.forIn("key",c,(e=>{if(!h.length&&!p.length)$(e);else t.if(y(e),(()=>$(e)))}))}function y(r){let o;if(h.length>8){const e=(0,a.schemaRefOrVal)(d,i.properties,"properties");o=(0,s.isOwnProperty)(t,e,r)}else if(h.length){o=(0,n.or)(...h.map((e=>(0,n._)`${r} === ${e}`)))}else{o=n.nil}if(p.length){o=(0,n.or)(o,...p.map((t=>(0,n._)`${(0,s.usePattern)(e,t)}.test(${r})`)))}return(0,n.not)(o)}function g(e){t.code((0,n._)`delete ${c}[${e}]`)}function $(s){if(f.removeAdditional==="all"||f.removeAdditional&&r===false){g(s);return}if(r===false){e.setParams({additionalProperty:s});e.error();if(!l)t.break();return}if(typeof r=="object"&&!(0,a.alwaysValidSchema)(d,r)){const r=t.name("valid");if(f.removeAdditional==="failing"){v(s,r,false);t.if((0,n.not)(r),(()=>{e.reset();g(s)}))}else{v(s,r);if(!l)t.if((0,n.not)(r),(()=>t.break()))}}}function v(t,r,s){const n={keyword:"additionalProperties",dataProp:t,dataPropType:a.Type.Str};if(s===false){Object.assign(n,{compositeRule:true,createErrors:false,allErrors:false})}e.subschema(n,r)}}};t["default"]=c},15844:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(94227);const n={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const o=t.name("valid");r.forEach(((t,r)=>{if((0,s.alwaysValidSchema)(n,t))return;const a=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o);e.mergeEvaluated(a)}))}};t["default"]=n},16505:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(15765);const n={keyword:"anyOf",schemaType:"array",trackErrors:true,code:s.validateUnion,error:{message:"must match a schema in anyOf"}};t["default"]=n},12661:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n=r(94227);const o={message:({params:{min:e,max:t}})=>t===undefined?(0,s.str)`must contain at least ${e} valid item(s)`:(0,s.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===undefined?(0,s._)`{minContains: ${e}}`:(0,s._)`{minContains: ${e}, maxContains: ${t}}`};const a={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:true,error:o,code(e){const{gen:t,schema:r,parentSchema:o,data:a,it:i}=e;let c;let u;const{minContains:d,maxContains:l}=o;if(i.opts.next){c=d===undefined?1:d;u=l}else{c=1}const f=t.const("len",(0,s._)`${a}.length`);e.setParams({min:c,max:u});if(u===undefined&&c===0){(0,n.checkStrictMode)(i,`"minContains" == 0 without "maxContains": "contains" keyword ignored`);return}if(u!==undefined&&c>u){(0,n.checkStrictMode)(i,`"minContains" > "maxContains" is always invalid`);e.fail();return}if((0,n.alwaysValidSchema)(i,r)){let t=(0,s._)`${f} >= ${c}`;if(u!==undefined)t=(0,s._)`${t} && ${f} <= ${u}`;e.pass(t);return}i.items=true;const h=t.name("valid");if(u===undefined&&c===1){m(h,(()=>t.if(h,(()=>t.break()))))}else if(c===0){t.let(h,true);if(u!==undefined)t.if((0,s._)`${a}.length > 0`,p)}else{t.let(h,false);p()}e.result(h,(()=>e.reset()));function p(){const e=t.name("_valid");const r=t.let("count",0);m(e,(()=>t.if(e,(()=>y(r)))))}function m(r,s){t.forRange("i",0,f,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:n.Type.Num,compositeRule:true},r);s()}))}function y(e){t.code((0,s._)`${e}++`);if(u===undefined){t.if((0,s._)`${e} >= ${c}`,(()=>t.assign(h,true).break()))}else{t.if((0,s._)`${e} > ${u}`,(()=>t.assign(h,false).break()));if(c===1)t.assign(h,true);else t.if((0,s._)`${e} >= ${c}`,(()=>t.assign(h,true)))}}}};t["default"]=a},83025:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const s=r(99029);const n=r(94227);const o=r(15765);t.error={message:({params:{property:e,depsCount:t,deps:r}})=>{const n=t===1?"property":"properties";return(0,s.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,s._)`{property: ${e}, + missingProperty: ${n}, + depsCount: ${t}, + deps: ${r}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,r]=i(e);c(e,t);u(e,r)}};function i({schema:e}){const t={};const r={};for(const s in e){if(s==="__proto__")continue;const n=Array.isArray(e[s])?t:r;n[s]=e[s]}return[t,r]}function c(e,t=e.schema){const{gen:r,data:n,it:a}=e;if(Object.keys(t).length===0)return;const i=r.let("missing");for(const c in t){const u=t[c];if(u.length===0)continue;const d=(0,o.propertyInData)(r,n,c,a.opts.ownProperties);e.setParams({property:c,depsCount:u.length,deps:u.join(", ")});if(a.allErrors){r.if(d,(()=>{for(const t of u){(0,o.checkReportMissingProp)(e,t)}}))}else{r.if((0,s._)`${d} && (${(0,o.checkMissingProp)(e,u,i)})`);(0,o.reportMissingProp)(e,i);r.else()}}}t.validatePropertyDeps=c;function u(e,t=e.schema){const{gen:r,data:s,keyword:a,it:i}=e;const c=r.name("valid");for(const u in t){if((0,n.alwaysValidSchema)(i,t[u]))continue;r.if((0,o.propertyInData)(r,s,u,i.opts.ownProperties),(()=>{const t=e.subschema({keyword:a,schemaProp:u},c);e.mergeValidEvaluated(t,c)}),(()=>r.var(c,true)));e.ok(c)}}t.validateSchemaDeps=u;t["default"]=a},1239:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n=r(94227);const o={message:({params:e})=>(0,s.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,s._)`{failingKeyword: ${e.ifClause}}`};const a={keyword:"if",schemaType:["object","boolean"],trackErrors:true,error:o,code(e){const{gen:t,parentSchema:r,it:o}=e;if(r.then===undefined&&r.else===undefined){(0,n.checkStrictMode)(o,'"if" without "then" and "else" is ignored')}const a=i(o,"then");const c=i(o,"else");if(!a&&!c)return;const u=t.let("valid",true);const d=t.name("_valid");l();e.reset();if(a&&c){const r=t.let("ifClause");e.setParams({ifClause:r});t.if(d,f("then",r),f("else",r))}else if(a){t.if(d,f("then"))}else{t.if((0,s.not)(d),f("else"))}e.pass(u,(()=>e.error(true)));function l(){const t=e.subschema({keyword:"if",compositeRule:true,createErrors:false,allErrors:false},d);e.mergeEvaluated(t)}function f(r,n){return()=>{const o=e.subschema({keyword:r},d);t.assign(u,d);e.mergeValidEvaluated(o,u);if(n)t.assign(n,(0,s._)`${r}`);else e.setParams({ifClause:r})}}}};function i(e,t){const r=e.schema[t];return r!==undefined&&!(0,n.alwaysValidSchema)(e,r)}t["default"]=a},56378:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(15457);const n=r(65354);const o=r(20494);const a=r(93966);const i=r(12661);const c=r(83025);const u=r(19713);const d=r(38660);const l=r(40117);const f=r(45333);const h=r(57923);const p=r(16505);const m=r(96163);const y=r(15844);const g=r(1239);const $=r(14426);function v(e=false){const t=[h.default,p.default,m.default,y.default,g.default,$.default,u.default,d.default,c.default,l.default,f.default];if(e)t.push(n.default,a.default);else t.push(s.default,o.default);t.push(i.default);return t}t["default"]=v},20494:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.validateTuple=void 0;const s=r(99029);const n=r(94227);const o=r(15765);const a={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return i(e,"additionalItems",t);r.items=true;if((0,n.alwaysValidSchema)(r,t))return;e.ok((0,o.validateArray)(e))}};function i(e,t,r=e.schema){const{gen:o,parentSchema:a,data:i,keyword:c,it:u}=e;f(a);if(u.opts.unevaluated&&r.length&&u.items!==true){u.items=n.mergeEvaluated.items(o,r.length,u.items)}const d=o.name("valid");const l=o.const("len",(0,s._)`${i}.length`);r.forEach(((t,r)=>{if((0,n.alwaysValidSchema)(u,t))return;o.if((0,s._)`${l} > ${r}`,(()=>e.subschema({keyword:c,schemaProp:r,dataProp:r},d)));e.ok(d)}));function f(e){const{opts:s,errSchemaPath:o}=u;const a=r.length;const i=a===e.minItems&&(a===e.maxItems||e[t]===false);if(s.strictTuples&&!i){const e=`"${c}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,n.checkStrictMode)(u,e,s.strictTuples)}}}t.validateTuple=i;t["default"]=a},93966:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n=r(94227);const o=r(15765);const a=r(15457);const i={message:({params:{len:e}})=>(0,s.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,s._)`{limit: ${e}}`};const c={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:i,code(e){const{schema:t,parentSchema:r,it:s}=e;const{prefixItems:i}=r;s.items=true;if((0,n.alwaysValidSchema)(s,t))return;if(i)(0,a.validateAdditionalItems)(e,i);else e.ok((0,o.validateArray)(e))}};t["default"]=c},57923:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(94227);const n={keyword:"not",schemaType:["object","boolean"],trackErrors:true,code(e){const{gen:t,schema:r,it:n}=e;if((0,s.alwaysValidSchema)(n,r)){e.fail();return}const o=t.name("valid");e.subschema({keyword:"not",compositeRule:true,createErrors:false,allErrors:false},o);e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t["default"]=n},96163:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n=r(94227);const o={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,s._)`{passingSchemas: ${e.passing}}`};const a={keyword:"oneOf",schemaType:"array",trackErrors:true,error:o,code(e){const{gen:t,schema:r,parentSchema:o,it:a}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(a.opts.discriminator&&o.discriminator)return;const i=r;const c=t.let("valid",false);const u=t.let("passing",null);const d=t.name("_valid");e.setParams({passing:u});t.block(l);e.result(c,(()=>e.reset()),(()=>e.error(true)));function l(){i.forEach(((r,o)=>{let i;if((0,n.alwaysValidSchema)(a,r)){t.var(d,true)}else{i=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:true},d)}if(o>0){t.if((0,s._)`${d} && ${c}`).assign(c,false).assign(u,(0,s._)`[${u}, ${o}]`).else()}t.if(d,(()=>{t.assign(c,true);t.assign(u,o);if(i)e.mergeEvaluated(i,s.Name)}))}))}}};t["default"]=a},45333:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(15765);const n=r(99029);const o=r(94227);const a=r(94227);const i={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:i,parentSchema:c,it:u}=e;const{opts:d}=u;const l=(0,s.allSchemaProperties)(r);const f=l.filter((e=>(0,o.alwaysValidSchema)(u,r[e])));if(l.length===0||f.length===l.length&&(!u.opts.unevaluated||u.props===true)){return}const h=d.strictSchema&&!d.allowMatchingProperties&&c.properties;const p=t.name("valid");if(u.props!==true&&!(u.props instanceof n.Name)){u.props=(0,a.evaluatedPropsToName)(t,u.props)}const{props:m}=u;y();function y(){for(const e of l){if(h)g(e);if(u.allErrors){$(e)}else{t.var(p,true);$(e);t.if(p)}}}function g(e){for(const t in h){if(new RegExp(e).test(t)){(0,o.checkStrictMode)(u,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}}}function $(r){t.forIn("key",i,(o=>{t.if((0,n._)`${(0,s.usePattern)(e,r)}.test(${o})`,(()=>{const s=f.includes(r);if(!s){e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:o,dataPropType:a.Type.Str},p)}if(u.opts.unevaluated&&m!==true){t.assign((0,n._)`${m}[${o}]`,true)}else if(!s&&!u.allErrors){t.if((0,n.not)(p),(()=>t.break()))}}))}))}}};t["default"]=i},65354:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(20494);const n={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,s.validateTuple)(e,"items")};t["default"]=n},40117:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(62586);const n=r(15765);const o=r(94227);const a=r(38660);const i={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:i,data:c,it:u}=e;if(u.opts.removeAdditional==="all"&&i.additionalProperties===undefined){a.default.code(new s.KeywordCxt(u,a.default,"additionalProperties"))}const d=(0,n.allSchemaProperties)(r);for(const s of d){u.definedProperties.add(s)}if(u.opts.unevaluated&&d.length&&u.props!==true){u.props=o.mergeEvaluated.props(t,(0,o.toHash)(d),u.props)}const l=d.filter((e=>!(0,o.alwaysValidSchema)(u,r[e])));if(l.length===0)return;const f=t.name("valid");for(const s of l){if(h(s)){p(s)}else{t.if((0,n.propertyInData)(t,c,s,u.opts.ownProperties));p(s);if(!u.allErrors)t.else().var(f,true);t.endIf()}e.it.definedProperties.add(s);e.ok(f)}function h(e){return u.opts.useDefaults&&!u.compositeRule&&r[e].default!==undefined}function p(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},f)}}};t["default"]=i},19713:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n=r(94227);const o={message:"property name must be valid",params:({params:e})=>(0,s._)`{propertyName: ${e.propertyName}}`};const a={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:o,code(e){const{gen:t,schema:r,data:o,it:a}=e;if((0,n.alwaysValidSchema)(a,r))return;const i=t.name("valid");t.forIn("key",o,(r=>{e.setParams({propertyName:r});e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:true},i);t.if((0,s.not)(i),(()=>{e.error(true);if(!a.allErrors)t.break()}))}));e.ok(i)}};t["default"]=a},14426:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(94227);const n={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){if(t.if===undefined)(0,s.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};t["default"]=n},15765:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const s=r(99029);const n=r(94227);const o=r(42023);const a=r(94227);function i(e,t){const{gen:r,data:n,it:o}=e;r.if(h(r,n,t,o.opts.ownProperties),(()=>{e.setParams({missingProperty:(0,s._)`${t}`},true);e.error()}))}t.checkReportMissingProp=i;function c({gen:e,data:t,it:{opts:r}},n,o){return(0,s.or)(...n.map((n=>(0,s.and)(h(e,t,n,r.ownProperties),(0,s._)`${o} = ${n}`))))}t.checkMissingProp=c;function u(e,t){e.setParams({missingProperty:t},true);e.error()}t.reportMissingProp=u;function d(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,s._)`Object.prototype.hasOwnProperty`})}t.hasPropFunc=d;function l(e,t,r){return(0,s._)`${d(e)}.call(${t}, ${r})`}t.isOwnProperty=l;function f(e,t,r,n){const o=(0,s._)`${t}${(0,s.getProperty)(r)} !== undefined`;return n?(0,s._)`${o} && ${l(e,t,r)}`:o}t.propertyInData=f;function h(e,t,r,n){const o=(0,s._)`${t}${(0,s.getProperty)(r)} === undefined`;return n?(0,s.or)(o,(0,s.not)(l(e,t,r))):o}t.noPropertyInData=h;function p(e){return e?Object.keys(e).filter((e=>e!=="__proto__")):[]}t.allSchemaProperties=p;function m(e,t){return p(t).filter((r=>!(0,n.alwaysValidSchema)(e,t[r])))}t.schemaProperties=m;function y({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:a,errorPath:i},it:c},u,d,l){const f=l?(0,s._)`${e}, ${t}, ${n}${a}`:t;const h=[[o.default.instancePath,(0,s.strConcat)(o.default.instancePath,i)],[o.default.parentData,c.parentData],[o.default.parentDataProperty,c.parentDataProperty],[o.default.rootData,o.default.rootData]];if(c.opts.dynamicRef)h.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const p=(0,s._)`${f}, ${r.object(...h)}`;return d!==s.nil?(0,s._)`${u}.call(${d}, ${p})`:(0,s._)`${u}(${p})`}t.callValidateCode=y;const g=(0,s._)`new RegExp`;function $({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"";const{regExp:o}=t.code;const i=o(r,n);return e.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,s._)`${o.code==="new RegExp"?g:(0,a.useFunc)(e,o)}(${r}, ${n})`})}t.usePattern=$;function v(e){const{gen:t,data:r,keyword:o,it:a}=e;const i=t.name("valid");if(a.allErrors){const e=t.let("valid",true);c((()=>t.assign(e,false)));return e}t.var(i,true);c((()=>t.break()));return i;function c(a){const c=t.const("len",(0,s._)`${r}.length`);t.forRange("i",0,c,(r=>{e.subschema({keyword:o,dataProp:r,dataPropType:n.Type.Num},i);t.if((0,s.not)(i),a)}))}}t.validateArray=v;function _(e){const{gen:t,schema:r,keyword:o,it:a}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const i=r.some((e=>(0,n.alwaysValidSchema)(a,e)));if(i&&!a.opts.unevaluated)return;const c=t.let("valid",false);const u=t.name("_valid");t.block((()=>r.forEach(((r,n)=>{const a=e.subschema({keyword:o,schemaProp:n,compositeRule:true},u);t.assign(c,(0,s._)`${c} || ${u}`);const i=e.mergeValidEvaluated(a,u);if(!i)t.if((0,s.not)(c))}))));e.result(c,(()=>e.reset()),(()=>e.error(true)))}t.validateUnion=_},83463:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});const r={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t["default"]=r},72128:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(83463);const n=r(13693);const o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",s.default,n.default];t["default"]=o},13693:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.callRef=t.getValidate=void 0;const s=r(34551);const n=r(15765);const o=r(99029);const a=r(42023);const i=r(73835);const c=r(94227);const u={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e;const{baseId:a,schemaEnv:c,validateName:u,opts:f,self:h}=n;const{root:p}=c;if((r==="#"||r==="#/")&&a===p.baseId)return y();const m=i.resolveRef.call(h,p,a,r);if(m===undefined)throw new s.default(n.opts.uriResolver,a,r);if(m instanceof i.SchemaEnv)return g(m);return $(m);function y(){if(c===p)return l(e,u,c,c.$async);const r=t.scopeValue("root",{ref:p});return l(e,(0,o._)`${r}.validate`,p,p.$async)}function g(t){const r=d(e,t);l(e,r,t,t.$async)}function $(s){const n=t.scopeValue("schema",f.code.source===true?{ref:s,code:(0,o.stringify)(s)}:{ref:s});const a=t.name("valid");const i=e.subschema({schema:s,dataTypes:[],schemaPath:o.nil,topSchemaRef:n,errSchemaPath:r},a);e.mergeEvaluated(i);e.ok(a)}}};function d(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,o._)`${r.scopeValue("wrapper",{ref:t})}.validate`}t.getValidate=d;function l(e,t,r,s){const{gen:i,it:u}=e;const{allErrors:d,schemaEnv:l,opts:f}=u;const h=f.passContext?a.default.this:o.nil;if(s)p();else m();function p(){if(!l.$async)throw new Error("async schema referenced by sync schema");const r=i.let("valid");i.try((()=>{i.code((0,o._)`await ${(0,n.callValidateCode)(e,t,h)}`);g(t);if(!d)i.assign(r,true)}),(e=>{i.if((0,o._)`!(${e} instanceof ${u.ValidationError})`,(()=>i.throw(e)));y(e);if(!d)i.assign(r,false)}));e.ok(r)}function m(){e.result((0,n.callValidateCode)(e,t,h),(()=>g(t)),(()=>y(t)))}function y(e){const t=(0,o._)`${e}.errors`;i.assign(a.default.vErrors,(0,o._)`${a.default.vErrors} === null ? ${t} : ${a.default.vErrors}.concat(${t})`);i.assign(a.default.errors,(0,o._)`${a.default.vErrors}.length`)}function g(e){var t;if(!u.opts.unevaluated)return;const s=(t=r===null||r===void 0?void 0:r.validate)===null||t===void 0?void 0:t.evaluated;if(u.props!==true){if(s&&!s.dynamicProps){if(s.props!==undefined){u.props=c.mergeEvaluated.props(i,s.props,u.props)}}else{const t=i.var("props",(0,o._)`${e}.evaluated.props`);u.props=c.mergeEvaluated.props(i,t,u.props,o.Name)}}if(u.items!==true){if(s&&!s.dynamicItems){if(s.items!==undefined){u.items=c.mergeEvaluated.items(i,s.items,u.items)}}else{const t=i.var("items",(0,o._)`${e}.evaluated.items`);u.items=c.mergeEvaluated.items(i,t,u.items,o.Name)}}}}t.callRef=l;t["default"]=u},36653:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n=r(97652);const o=r(73835);const a=r(34551);const i=r(94227);const c={message:({params:{discrError:e,tagName:t}})=>e===n.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,s._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`};const u={keyword:"discriminator",type:"object",schemaType:"object",error:c,code(e){const{gen:t,data:r,schema:c,parentSchema:u,it:d}=e;const{oneOf:l}=u;if(!d.opts.discriminator){throw new Error("discriminator: requires discriminator option")}const f=c.propertyName;if(typeof f!="string")throw new Error("discriminator: requires propertyName");if(c.mapping)throw new Error("discriminator: mapping is not supported");if(!l)throw new Error("discriminator: requires oneOf keyword");const h=t.let("valid",false);const p=t.const("tag",(0,s._)`${r}${(0,s.getProperty)(f)}`);t.if((0,s._)`typeof ${p} == "string"`,(()=>m()),(()=>e.error(false,{discrError:n.DiscrError.Tag,tag:p,tagName:f})));e.ok(h);function m(){const r=g();t.if(false);for(const e in r){t.elseIf((0,s._)`${p} === ${e}`);t.assign(h,y(r[e]))}t.else();e.error(false,{discrError:n.DiscrError.Mapping,tag:p,tagName:f});t.endIf()}function y(r){const n=t.name("valid");const o=e.subschema({keyword:"oneOf",schemaProp:r},n);e.mergeEvaluated(o,s.Name);return n}function g(){var e;const t={};const r=n(u);let s=true;for(let u=0;u{Object.defineProperty(t,"__esModule",{value:true});t.DiscrError=void 0;var r;(function(e){e["Tag"]="tag";e["Mapping"]="mapping"})(r||(t.DiscrError=r={}))},86144:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(72128);const n=r(67060);const o=r(56378);const a=r(97532);const i=r(69857);const c=[s.default,n.default,(0,o.default)(),a.default,i.metadataVocabulary,i.contentVocabulary];t["default"]=c},94737:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n={message:({schemaCode:e})=>(0,s.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,s._)`{format: ${e}}`};const o={keyword:"format",type:["number","string"],schemaType:"string",$data:true,error:n,code(e,t){const{gen:r,data:n,$data:o,schema:a,schemaCode:i,it:c}=e;const{opts:u,errSchemaPath:d,schemaEnv:l,self:f}=c;if(!u.validateFormats)return;if(o)h();else p();function h(){const o=r.scopeValue("formats",{ref:f.formats,code:u.code.formats});const a=r.const("fDef",(0,s._)`${o}[${i}]`);const c=r.let("fType");const d=r.let("format");r.if((0,s._)`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>r.assign(c,(0,s._)`${a}.type || "string"`).assign(d,(0,s._)`${a}.validate`)),(()=>r.assign(c,(0,s._)`"string"`).assign(d,a)));e.fail$data((0,s.or)(h(),p()));function h(){if(u.strictSchema===false)return s.nil;return(0,s._)`${i} && !${d}`}function p(){const e=l.$async?(0,s._)`(${a}.async ? await ${d}(${n}) : ${d}(${n}))`:(0,s._)`${d}(${n})`;const r=(0,s._)`(typeof ${d} == "function" ? ${e} : ${d}.test(${n}))`;return(0,s._)`${d} && ${d} !== true && ${c} === ${t} && !${r}`}}function p(){const o=f.formats[a];if(!o){p();return}if(o===true)return;const[i,c,h]=m(o);if(i===t)e.pass(y());function p(){if(u.strictSchema===false){f.logger.warn(e());return}throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${d}"`}}function m(e){const t=e instanceof RegExp?(0,s.regexpCode)(e):u.code.formats?(0,s._)`${u.code.formats}${(0,s.getProperty)(a)}`:undefined;const n=r.scopeValue("formats",{key:a,ref:e,code:t});if(typeof e=="object"&&!(e instanceof RegExp)){return[e.type||"string",e.validate,(0,s._)`${n}.validate`]}return["string",e,n]}function y(){if(typeof o=="object"&&!(o instanceof RegExp)&&o.async){if(!l.$async)throw new Error("async format in sync schema");return(0,s._)`await ${h}(${n})`}return typeof c=="function"?(0,s._)`${h}(${n})`:(0,s._)`${h}.test(${n})`}}}};t["default"]=o},97532:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(94737);const n=[s.default];t["default"]=n},69857:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.contentVocabulary=t.metadataVocabulary=void 0;t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},27935:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n=r(94227);const o=r(76250);const a={message:"must be equal to constant",params:({schemaCode:e})=>(0,s._)`{allowedValue: ${e}}`};const i={keyword:"const",$data:true,error:a,code(e){const{gen:t,data:r,$data:a,schemaCode:i,schema:c}=e;if(a||c&&typeof c=="object"){e.fail$data((0,s._)`!${(0,n.useFunc)(t,o.default)}(${r}, ${i})`)}else{e.fail((0,s._)`${c} !== ${r}`)}}};t["default"]=i},28643:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n=r(94227);const o=r(76250);const a={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,s._)`{allowedValues: ${e}}`};const i={keyword:"enum",schemaType:"array",$data:true,error:a,code(e){const{gen:t,data:r,$data:a,schema:i,schemaCode:c,it:u}=e;if(!a&&i.length===0)throw new Error("enum must have non-empty array");const d=i.length>=u.opts.loopEnum;let l;const f=()=>l!==null&&l!==void 0?l:l=(0,n.useFunc)(t,o.default);let h;if(d||a){h=t.let("valid");e.block$data(h,p)}else{if(!Array.isArray(i))throw new Error("ajv implementation error");const e=t.const("vSchema",c);h=(0,s.or)(...i.map(((t,r)=>m(e,r))))}e.pass(h);function p(){t.assign(h,false);t.forOf("v",c,(e=>t.if((0,s._)`${f()}(${r}, ${e})`,(()=>t.assign(h,true).break()))))}function m(e,t){const n=i[t];return typeof n==="object"&&n!==null?(0,s._)`${f()}(${r}, ${e}[${t}])`:(0,s._)`${r} === ${n}`}}};t["default"]=i},67060:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(75882);const n=r(63439);const o=r(77307);const a=r(90422);const i=r(34486);const c=r(34003);const u=r(61163);const d=r(60617);const l=r(27935);const f=r(28643);const h=[s.default,n.default,o.default,a.default,i.default,c.default,u.default,d.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,f.default];t["default"]=h},61163:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,s.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,s._)`{limit: ${e}}`};const o={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:true,error:n,code(e){const{keyword:t,data:r,schemaCode:n}=e;const o=t==="maxItems"?s.operators.GT:s.operators.LT;e.fail$data((0,s._)`${r}.length ${o} ${n}`)}};t["default"]=o},77307:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n=r(94227);const o=r(53853);const a={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,s.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,s._)`{limit: ${e}}`};const i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:true,error:a,code(e){const{keyword:t,data:r,schemaCode:a,it:i}=e;const c=t==="maxLength"?s.operators.GT:s.operators.LT;const u=i.opts.unicode===false?(0,s._)`${r}.length`:(0,s._)`${(0,n.useFunc)(e.gen,o.default)}(${r})`;e.fail$data((0,s._)`${u} ${c} ${a}`)}};t["default"]=i},75882:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n=s.operators;const o={maximum:{okStr:"<=",ok:n.LTE,fail:n.GT},minimum:{okStr:">=",ok:n.GTE,fail:n.LT},exclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},exclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}};const a={message:({keyword:e,schemaCode:t})=>(0,s.str)`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,s._)`{comparison: ${o[e].okStr}, limit: ${t}}`};const i={keyword:Object.keys(o),type:"number",schemaType:"number",$data:true,error:a,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,s._)`${r} ${o[t].fail} ${n} || isNaN(${r})`)}};t["default"]=i},34486:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,s.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,s._)`{limit: ${e}}`};const o={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:true,error:n,code(e){const{keyword:t,data:r,schemaCode:n}=e;const o=t==="maxProperties"?s.operators.GT:s.operators.LT;e.fail$data((0,s._)`Object.keys(${r}).length ${o} ${n}`)}};t["default"]=o},63439:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n={message:({schemaCode:e})=>(0,s.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,s._)`{multipleOf: ${e}}`};const o={keyword:"multipleOf",type:"number",schemaType:"number",$data:true,error:n,code(e){const{gen:t,data:r,schemaCode:n,it:o}=e;const a=o.opts.multipleOfPrecision;const i=t.let("res");const c=a?(0,s._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:(0,s._)`${i} !== parseInt(${i})`;e.fail$data((0,s._)`(${n} === 0 || (${i} = ${r}/${n}, ${c}))`)}};t["default"]=o},90422:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(15765);const n=r(99029);const o={message:({schemaCode:e})=>(0,n.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,n._)`{pattern: ${e}}`};const a={keyword:"pattern",type:"string",schemaType:"string",$data:true,error:o,code(e){const{data:t,$data:r,schema:o,schemaCode:a,it:i}=e;const c=i.opts.unicodeRegExp?"u":"";const u=r?(0,n._)`(new RegExp(${a}, ${c}))`:(0,s.usePattern)(e,o);e.fail$data((0,n._)`!${u}.test(${t})`)}};t["default"]=a},34003:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(15765);const n=r(99029);const o=r(94227);const a={message:({params:{missingProperty:e}})=>(0,n.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,n._)`{missingProperty: ${e}}`};const i={keyword:"required",type:"object",schemaType:"array",$data:true,error:a,code(e){const{gen:t,schema:r,schemaCode:a,data:i,$data:c,it:u}=e;const{opts:d}=u;if(!c&&r.length===0)return;const l=r.length>=d.loopRequired;if(u.allErrors)f();else h();if(d.strictRequired){const t=e.parentSchema.properties;const{definedProperties:s}=e.it;for(const e of r){if((t===null||t===void 0?void 0:t[e])===undefined&&!s.has(e)){const t=u.schemaEnv.baseId+u.errSchemaPath;const r=`required property "${e}" is not defined at "${t}" (strictRequired)`;(0,o.checkStrictMode)(u,r,u.opts.strictRequired)}}}function f(){if(l||c){e.block$data(n.nil,p)}else{for(const t of r){(0,s.checkReportMissingProp)(e,t)}}}function h(){const n=t.let("missing");if(l||c){const r=t.let("valid",true);e.block$data(r,(()=>m(n,r)));e.ok(r)}else{t.if((0,s.checkMissingProp)(e,r,n));(0,s.reportMissingProp)(e,n);t.else()}}function p(){t.forOf("prop",a,(r=>{e.setParams({missingProperty:r});t.if((0,s.noPropertyInData)(t,i,r,d.ownProperties),(()=>e.error()))}))}function m(r,o){e.setParams({missingProperty:r});t.forOf(r,a,(()=>{t.assign(o,(0,s.propertyInData)(t,i,r,d.ownProperties));t.if((0,n.not)(o),(()=>{e.error();t.break()}))}),n.nil)}}};t["default"]=i},60617:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(10208);const n=r(99029);const o=r(94227);const a=r(76250);const i={message:({params:{i:e,j:t}})=>(0,n.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,n._)`{i: ${e}, j: ${t}}`};const c={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:true,error:i,code(e){const{gen:t,data:r,$data:i,schema:c,parentSchema:u,schemaCode:d,it:l}=e;if(!i&&!c)return;const f=t.let("valid");const h=u.items?(0,s.getSchemaTypes)(u.items):[];e.block$data(f,p,(0,n._)`${d} === false`);e.ok(f);function p(){const s=t.let("i",(0,n._)`${r}.length`);const o=t.let("j");e.setParams({i:s,j:o});t.assign(f,true);t.if((0,n._)`${s} > 1`,(()=>(m()?y:g)(s,o)))}function m(){return h.length>0&&!h.some((e=>e==="object"||e==="array"))}function y(o,a){const i=t.name("item");const c=(0,s.checkDataTypes)(h,i,l.opts.strictNumbers,s.DataType.Wrong);const u=t.const("indices",(0,n._)`{}`);t.for((0,n._)`;${o}--;`,(()=>{t.let(i,(0,n._)`${r}[${o}]`);t.if(c,(0,n._)`continue`);if(h.length>1)t.if((0,n._)`typeof ${i} == "string"`,(0,n._)`${i} += "_"`);t.if((0,n._)`typeof ${u}[${i}] == "number"`,(()=>{t.assign(a,(0,n._)`${u}[${i}]`);e.error();t.assign(f,false).break()})).code((0,n._)`${u}[${i}] = ${o}`)}))}function g(s,i){const c=(0,o.useFunc)(t,a.default);const u=t.name("outer");t.label(u).for((0,n._)`;${s}--;`,(()=>t.for((0,n._)`${i} = ${s}; ${i}--;`,(()=>t.if((0,n._)`${c}(${r}[${s}], ${r}[${i}])`,(()=>{e.error();t.assign(f,false).break(u)}))))))}}};t["default"]=c},32017:e=>{e.exports=function e(t,r){if(t===r)return true;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return false;var s,n,o;if(Array.isArray(t)){s=t.length;if(s!=r.length)return false;for(n=s;n--!==0;)if(!e(t[n],r[n]))return false;return true}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();o=Object.keys(t);s=o.length;if(s!==Object.keys(r).length)return false;for(n=s;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[n]))return false;for(n=s;n--!==0;){var a=o[n];if(!e(t[a],r[a]))return false}return true}return t!==t&&r!==r}},74488:(e,t,r)=>{const{normalizeIPv6:s,normalizeIPv4:n,removeDotSegments:o,recomposeAuthority:a,normalizeComponentEncoding:i}=r(9245);const c=r(49884);function u(e,t){if(typeof e==="string"){e=h(g(e,t),t)}else if(typeof e==="object"){e=g(h(e,t),t)}return e}function d(e,t,r){const s=Object.assign({scheme:"null"},r);const n=l(g(e,s),g(t,s),s,true);return h(n,{...s,skipEscape:true})}function l(e,t,r,s){const n={};if(!s){e=g(h(e,r),r);t=g(h(t,r),r)}r=r||{};if(!r.tolerant&&t.scheme){n.scheme=t.scheme;n.userinfo=t.userinfo;n.host=t.host;n.port=t.port;n.path=o(t.path||"");n.query=t.query}else{if(t.userinfo!==undefined||t.host!==undefined||t.port!==undefined){n.userinfo=t.userinfo;n.host=t.host;n.port=t.port;n.path=o(t.path||"");n.query=t.query}else{if(!t.path){n.path=e.path;if(t.query!==undefined){n.query=t.query}else{n.query=e.query}}else{if(t.path.charAt(0)==="/"){n.path=o(t.path)}else{if((e.userinfo!==undefined||e.host!==undefined||e.port!==undefined)&&!e.path){n.path="/"+t.path}else if(!e.path){n.path=t.path}else{n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path}n.path=o(n.path)}n.query=t.query}n.userinfo=e.userinfo;n.host=e.host;n.port=e.port}n.scheme=e.scheme}n.fragment=t.fragment;return n}function f(e,t,r){if(typeof e==="string"){e=unescape(e);e=h(i(g(e,r),true),{...r,skipEscape:true})}else if(typeof e==="object"){e=h(i(e,true),{...r,skipEscape:true})}if(typeof t==="string"){t=unescape(t);t=h(i(g(t,r),true),{...r,skipEscape:true})}else if(typeof t==="object"){t=h(i(t,true),{...r,skipEscape:true})}return e.toLowerCase()===t.toLowerCase()}function h(e,t){const r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""};const s=Object.assign({},t);const n=[];const i=c[(s.scheme||r.scheme||"").toLowerCase()];if(i&&i.serialize)i.serialize(r,s);if(r.path!==undefined){if(!s.skipEscape){r.path=escape(r.path);if(r.scheme!==undefined){r.path=r.path.split("%3A").join(":")}}else{r.path=unescape(r.path)}}if(s.reference!=="suffix"&&r.scheme){n.push(r.scheme,":")}const u=a(r);if(u!==undefined){if(s.reference!=="suffix"){n.push("//")}n.push(u);if(r.path&&r.path.charAt(0)!=="/"){n.push("/")}}if(r.path!==undefined){let e=r.path;if(!s.absolutePath&&(!i||!i.absolutePath)){e=o(e)}if(u===undefined){e=e.replace(/^\/\//u,"/%2F")}n.push(e)}if(r.query!==undefined){n.push("?",r.query)}if(r.fragment!==undefined){n.push("#",r.fragment)}return n.join("")}const p=Array.from({length:127},((e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t))));function m(e){let t=0;for(let r=0,s=e.length;r126||p[t]){return true}}return false}const y=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function g(e,t){const r=Object.assign({},t);const o={scheme:undefined,userinfo:undefined,host:"",port:undefined,path:"",query:undefined,fragment:undefined};const a=e.indexOf("%")!==-1;let i=false;if(r.reference==="suffix")e=(r.scheme?r.scheme+":":"")+"//"+e;const u=e.match(y);if(u){o.scheme=u[1];o.userinfo=u[3];o.host=u[4];o.port=parseInt(u[5],10);o.path=u[6]||"";o.query=u[7];o.fragment=u[8];if(isNaN(o.port)){o.port=u[5]}if(o.host){const e=n(o.host);if(e.isIPV4===false){const t=s(e.host);o.host=t.host.toLowerCase();i=t.isIPV6}else{o.host=e.host;i=true}}if(o.scheme===undefined&&o.userinfo===undefined&&o.host===undefined&&o.port===undefined&&o.query===undefined&&!o.path){o.reference="same-document"}else if(o.scheme===undefined){o.reference="relative"}else if(o.fragment===undefined){o.reference="absolute"}else{o.reference="uri"}if(r.reference&&r.reference!=="suffix"&&r.reference!==o.reference){o.error=o.error||"URI is not a "+r.reference+" reference."}const e=c[(r.scheme||o.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!e||!e.unicodeSupport)){if(o.host&&(r.domainHost||e&&e.domainHost)&&i===false&&m(o.host)){try{o.host=URL.domainToASCII(o.host.toLowerCase())}catch(d){o.error=o.error||"Host's domain name can not be converted to ASCII: "+d}}}if(!e||e&&!e.skipNormalize){if(a&&o.scheme!==undefined){o.scheme=unescape(o.scheme)}if(a&&o.host!==undefined){o.host=unescape(o.host)}if(o.path){o.path=escape(unescape(o.path))}if(o.fragment){o.fragment=encodeURI(decodeURIComponent(o.fragment))}}if(e&&e.parse){e.parse(o,r)}}else{o.error=o.error||"URI can not be parsed."}return o}const $={SCHEMES:c,normalize:u,resolve:d,resolveComponents:l,equal:f,serialize:h,parse:g};e.exports=$;e.exports["default"]=$;e.exports.fastUri=$},49884:e=>{const t=/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu;const r=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function s(e){return typeof e.secure==="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}function n(e){if(!e.host){e.error=e.error||"HTTP URIs must have a host."}return e}function o(e){const t=String(e.scheme).toLowerCase()==="https";if(e.port===(t?443:80)||e.port===""){e.port=undefined}if(!e.path){e.path="/"}return e}function a(e){e.secure=s(e);e.resourceName=(e.path||"/")+(e.query?"?"+e.query:"");e.path=undefined;e.query=undefined;return e}function i(e){if(e.port===(s(e)?443:80)||e.port===""){e.port=undefined}if(typeof e.secure==="boolean"){e.scheme=e.secure?"wss":"ws";e.secure=undefined}if(e.resourceName){const[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:undefined;e.query=r;e.resourceName=undefined}e.fragment=undefined;return e}function c(e,t){if(!e.path){e.error="URN can not be parsed";return e}const s=e.path.match(r);if(s){const r=t.scheme||e.scheme||"urn";e.nid=s[1].toLowerCase();e.nss=s[2];const n=`${r}:${t.nid||e.nid}`;const o=$[n];e.path=undefined;if(o){e=o.parse(e,t)}}else{e.error=e.error||"URN can not be parsed."}return e}function u(e,t){const r=t.scheme||e.scheme||"urn";const s=e.nid.toLowerCase();const n=`${r}:${t.nid||s}`;const o=$[n];if(o){e=o.serialize(e,t)}const a=e;const i=e.nss;a.path=`${s||t.nid}:${i}`;t.skipEscape=true;return a}function d(e,r){const s=e;s.uuid=s.nss;s.nss=undefined;if(!r.tolerant&&(!s.uuid||!t.test(s.uuid))){s.error=s.error||"UUID is not valid."}return s}function l(e){const t=e;t.nss=(e.uuid||"").toLowerCase();return t}const f={scheme:"http",domainHost:true,parse:n,serialize:o};const h={scheme:"https",domainHost:f.domainHost,parse:n,serialize:o};const p={scheme:"ws",domainHost:true,parse:a,serialize:i};const m={scheme:"wss",domainHost:p.domainHost,parse:p.parse,serialize:p.serialize};const y={scheme:"urn",parse:c,serialize:u,skipNormalize:true};const g={scheme:"urn:uuid",parse:d,serialize:l,skipNormalize:true};const $={http:f,https:h,ws:p,wss:m,urn:y,"urn:uuid":g};e.exports=$},54249:e=>{const t={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};e.exports={HEX:t}},9245:(e,t,r)=>{const{HEX:s}=r(54249);const n=/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;function o(e){if(d(e,".")<3){return{host:e,isIPV4:false}}const t=e.match(n)||[];const[r]=t;if(r){return{host:u(r,"."),isIPV4:true}}else{return{host:e,isIPV4:false}}}function a(e,t=false){let r="";let n=true;for(const o of e){if(s[o]===undefined)return undefined;if(o!=="0"&&n===true)n=false;if(!n)r+=o}if(t&&r.length===0)r="0";return r}function i(e){let t=0;const r={error:false,address:"",zone:""};const s=[];const n=[];let o=false;let i=false;let c=false;function u(){if(n.length){if(o===false){const e=a(n);if(e!==undefined){s.push(e)}else{r.error=true;return false}}n.length=0}return true}for(let a=0;a7){r.error=true;break}if(a-1>=0&&e[a-1]===":"){i=true}continue}else if(d==="%"){if(!u()){break}o=true}else{n.push(d);continue}}if(n.length){if(o){r.zone=n.join("")}else if(c){s.push(n.join(""))}else{s.push(a(n))}}r.address=s.join("");return r}function c(e){if(d(e,":")<2){return{host:e,isIPV6:false}}const t=i(e);if(!t.error){let e=t.address;let r=t.address;if(t.zone){e+="%"+t.zone;r+="%25"+t.zone}return{host:e,escapedHost:r,isIPV6:true}}else{return{host:e,isIPV6:false}}}function u(e,t){let r="";let s=true;const n=e.length;for(let o=0;o{var t=e.exports=function(e,t,s){if(typeof t=="function"){s=t;t={}}s=t.cb||s;var n=typeof s=="function"?s:s.pre||function(){};var o=s.post||function(){};r(t,n,o,e,"",e)};t.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true,if:true,then:true,else:true};t.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};t.propsKeywords={$defs:true,definitions:true,properties:true,patternProperties:true,dependencies:true};t.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function r(e,n,o,a,i,c,u,d,l,f){if(a&&typeof a=="object"&&!Array.isArray(a)){n(a,i,c,u,d,l,f);for(var h in a){var p=a[h];if(Array.isArray(p)){if(h in t.arrayKeywords){for(var m=0;m{e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},72079:e=>{e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/3293.183fd842651c09f49ca9.js b/share/jupyter/lab/static/3293.183fd842651c09f49ca9.js new file mode 100644 index 0000000..6c3927e --- /dev/null +++ b/share/jupyter/lab/static/3293.183fd842651c09f49ca9.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3293],{18300:(e,a)=>{"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,t)=>{"use strict";a.__esModule=true;function s(e){return e&&e.__esModule?e["default"]:e}var r=t(8323);a.threezerotwofour=s(r);var n=t(18300);a.apathy=s(n);var b=t(23427);a.ashes=s(b);var o=t(74758);a.atelierDune=s(o);var c=t(62817);a.atelierForest=s(c);var i=t(97288);a.atelierHeath=s(i);var u=t(54640);a.atelierLakeside=s(u);var l=t(94698);a.atelierSeaside=s(l);var f=t(37590);a.bespin=s(f);var d=t(6016);a.brewer=s(d);var h=t(5299);a.bright=s(h);var p=t(66684);a.chalk=s(p);var m=t(84082);a.codeschool=s(m);var v=t(90811);a.colors=s(v);var y=t(69926);a["default"]=s(y);var g=t(11393);a.eighties=s(g);var E=t(9359);a.embers=s(E);var C=t(18836);a.flat=s(C);var O=t(98940);a.google=s(O);var _=t(50204);a.grayscale=s(_);var A=t(11036);a.greenscreen=s(A);var k=t(88068);a.harmonic=s(k);var w=t(82782);a.hopscotch=s(w);var x=t(99464);a.isotope=s(x);var B=t(41769);a.marrakesh=s(B);var D=t(36961);a.mocha=s(D);var j=t(97789);a.monokai=s(j);var F=t(86761);a.ocean=s(F);var S=t(62332);a.paraiso=s(S);var N=t(97828);a.pop=s(N);var M=t(30872);a.railscasts=s(M);var R=t(30275);a.shapeshifter=s(R);var L=t(51028);a.solarized=s(L);var I=t(80474);a.summerfruit=s(I);var T=t(41244);a.tomorrow=s(T);var P=t(21765);a.tube=s(P);var $=t(70475);a.twilight=s($)},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"]},60357:(e,a,t)=>{var s="Expected a function";var r="__lodash_placeholder__";var n=1,b=2,o=4,c=8,i=16,u=32,l=64,f=128,d=256,h=512;var p=1/0,m=9007199254740991,v=17976931348623157e292,y=0/0;var g=[["ary",f],["bind",n],["bindKey",b],["curry",c],["curryRight",i],["flip",h],["partial",u],["partialRight",l],["rearg",d]];var E="[object Function]",C="[object GeneratorFunction]",O="[object Symbol]";var _=/[\\^$.*+?()[\]{}|]/g;var A=/^\s+|\s+$/g;var k=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,w=/\{\n\/\* \[wrapped with (.+)\] \*/,x=/,? & /;var B=/^[-+]0x[0-9a-f]+$/i;var D=/^0b[01]+$/i;var j=/^\[object .+?Constructor\]$/;var F=/^0o[0-7]+$/i;var S=/^(?:0|[1-9]\d*)$/;var N=parseInt;var M=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g;var R=typeof self=="object"&&self&&self.Object===Object&&self;var L=M||R||Function("return this")();function I(e,a,t){switch(t.length){case 0:return e.call(a);case 1:return e.call(a,t[0]);case 2:return e.call(a,t[0],t[1]);case 3:return e.call(a,t[0],t[1],t[2])}return e.apply(a,t)}function T(e,a){var t=-1,s=e?e.length:0;while(++t-1}function $(e,a,t,s){var r=e.length,n=t+(s?1:-1);while(s?n--:++n2?e:undefined}();function ne(e){return De(e)?ae(e):{}}function be(e){if(!De(e)||Oe(e)){return false}var a=Be(e)||K(e)?ee:j;return a.test(ke(e))}function oe(e,a,t,s){var r=-1,n=e.length,b=t.length,o=-1,c=a.length,i=te(n-b,0),u=Array(c+i),l=!s;while(++o1){b.reverse()}if(m&&d1?"& ":"")+a[s];a=a.join(t>2?", ":" ");return e.replace(k,"{\n/* [wrapped with "+a+"] */\n")}function Ce(e,a){a=a==null?m:a;return!!a&&(typeof e=="number"||S.test(e))&&(e>-1&&e%1==0&&e{"use strict";t.r(a);t.d(a,{JSONTree:()=>he});var s=t(44914);var r=t.n(s);function n(){return n=Object.assign?Object.assign.bind():function(e){for(var a=1;a3&&arguments[3]!==undefined?arguments[3]:0;let r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:Infinity;let n;if(e==="Object"){let e=Object.getOwnPropertyNames(a);if(t){e.sort(t===true?undefined:t)}e=e.slice(s,r+1);n={entries:e.map((e=>({key:e,value:a[e]})))}}else if(e==="Array"){n={entries:a.slice(s,r+1).map(((e,a)=>({key:a+s,value:e})))}}else{let e=0;const t=[];let b=true;const o=i(a);for(const n of a){if(e>r){b=false;break}if(s<=e){if(o&&Array.isArray(n)){if(typeof n[0]==="string"||typeof n[0]==="number"){t.push({key:n[0],value:n[1]})}else{t.push({key:`[entry ${e}]`,value:{"[key]":n[0],"[value]":n[1]}})}}else{t.push({key:e,value:n})}}e++}n={hasMore:!b,entries:t}}return n}function l(e,a,t){const s=[];while(a-e>t*t){t=t*t}for(let r=e;r<=a;r+=t){s.push({from:r,to:Math.min(a,r+t-1)})}return s}function f(e,a,t,s){let r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:0;let n=arguments.length>5&&arguments[5]!==undefined?arguments[5]:Infinity;const b=u.bind(null,e,a,t);if(!s){return b().entries}const o=n{l(!u)}),[u]);return u?r().createElement("div",a("itemRange",u),c(e,t,b)):r().createElement("div",n({},a("itemRange",u),{onClick:f}),r().createElement(o,{nodeType:i,styling:a,expanded:false,onClick:f,arrowStyle:"double"}),`${t} ... ${b}`)}function h(e){return e.to!==undefined}function p(e,a,t){const{nodeType:s,data:b,collectionLimit:o,circularCache:c,keyPath:i,postprocessValue:u,sortObjectKeys:l}=e;const m=[];f(s,b,l,o,a,t).forEach((a=>{if(h(a)){m.push(r().createElement(d,n({},e,{key:`ItemRange--${a.from}-${a.to}`,from:a.from,to:a.to,renderChildNodes:p})))}else{const{key:t,value:s}=a;const b=c.indexOf(s)!==-1;m.push(r().createElement(A,n({},e,{postprocessValue:u,collectionLimit:o,key:`Node--${t}`,keyPath:[t,...i],value:u(s),circularCache:[...c,s],isCircular:b,hideRoot:false})))}}));return m}function m(e){const{circularCache:a=[],collectionLimit:t,createItemString:b,data:c,expandable:i,getItemString:u,hideRoot:l,isCircular:f,keyPath:d,labelRenderer:h,level:m=0,nodeType:v,nodeTypeIndicator:y,shouldExpandNodeInitially:g,styling:E}=e;const[C,O]=(0,s.useState)(f?false:g(d,c,m));const _=(0,s.useCallback)((()=>{if(i)O(!C)}),[i,C]);const A=C||l&&m===0?p({...e,circularCache:a,level:m+1}):null;const k=r().createElement("span",E("nestedNodeItemType",C),y);const w=u(v,c,k,b(c,t),d);const x=[d,v,C,i];return l?r().createElement("li",E("rootNode",...x),r().createElement("ul",E("rootNodeChildren",...x),A)):r().createElement("li",E("nestedNode",...x),i&&r().createElement(o,{styling:E,nodeType:v,expanded:C,onClick:_}),r().createElement("label",n({},E(["label","nestedNodeLabel"],...x),{onClick:_}),h(...x)),r().createElement("span",n({},E("nestedNodeItemString",...x),{onClick:_}),w),r().createElement("ul",E("nestedNodeChildren",...x),A))}function v(e){const a=Object.getOwnPropertyNames(e).length;return`${a} ${a!==1?"keys":"key"}`}function y(e){let{data:a,...t}=e;return r().createElement(m,n({},t,{data:a,nodeType:"Object",nodeTypeIndicator:t.nodeType==="Error"?"Error()":"{}",createItemString:v,expandable:Object.getOwnPropertyNames(a).length>0}))}function g(e){return`${e.length} ${e.length!==1?"items":"item"}`}function E(e){let{data:a,...t}=e;return r().createElement(m,n({},t,{data:a,nodeType:"Array",nodeTypeIndicator:"[]",createItemString:g,expandable:a.length>0}))}function C(e,a){let t=0;let s=false;if(Number.isSafeInteger(e.size)){t=e.size}else{for(const r of e){if(a&&t+1>a){s=true;break}t+=1}}return`${s?">":""}${t} ${t!==1?"entries":"entry"}`}function O(e){return r().createElement(m,n({},e,{nodeType:"Iterable",nodeTypeIndicator:"()",createItemString:C,expandable:true}))}function _(e){let{nodeType:a,styling:t,labelRenderer:s,keyPath:n,valueRenderer:b,value:o,valueGetter:c=e=>e}=e;return r().createElement("li",t("value",a,n),r().createElement("label",t(["label","valueLabel"],a,n),s(n,a,false,false)),r().createElement("span",t("valueText",a,n),b(c(o),o,...n)))}function A(e){let{getItemString:a,keyPath:t,labelRenderer:s,styling:o,value:c,valueRenderer:i,isCustomNode:u,...l}=e;const f=u(c)?"Custom":b(c);const d={getItemString:a,key:t[0],keyPath:t,labelRenderer:s,nodeType:f,styling:o,value:c,valueRenderer:i};const h={...l,...d,data:c,isCustomNode:u};switch(f){case"Object":case"Error":case"WeakMap":case"WeakSet":return r().createElement(y,h);case"Array":return r().createElement(E,h);case"Iterable":case"Map":case"Set":return r().createElement(O,h);case"String":return r().createElement(_,n({},d,{valueGetter:e=>`"${e}"`}));case"Number":return r().createElement(_,d);case"Boolean":return r().createElement(_,n({},d,{valueGetter:e=>e?"true":"false"}));case"Date":return r().createElement(_,n({},d,{valueGetter:e=>e.toISOString()}));case"Null":return r().createElement(_,n({},d,{valueGetter:()=>"null"}));case"Undefined":return r().createElement(_,n({},d,{valueGetter:()=>"undefined"}));case"Function":case"Symbol":return r().createElement(_,n({},d,{valueGetter:e=>e.toString()}));case"Custom":return r().createElement(_,d);default:return r().createElement(_,n({},d,{valueGetter:()=>`<${f}>`}))}}function k(e){"@babel/helpers - typeof";return k="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},k(e)}function w(e,a){if("object"!=k(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var s=t.call(e,a||"default");if("object"!=k(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(e)}function x(e){var a=w(e,"string");return"symbol"==k(a)?a:a+""}function B(e,a,t){return(a=x(a))in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}function D(e){if(Array.isArray(e))return e}function j(e,a){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var s,r,n,b,o=[],c=!0,i=!1;try{if(n=(t=t.call(e)).next,0===a){if(Object(t)!==t)return;c=!1}else for(;!(c=(s=n.call(t)).done)&&(o.push(s.value),o.length!==a);c=!0);}catch(e){i=!0,r=e}finally{try{if(!c&&null!=t["return"]&&(b=t["return"](),Object(b)!==b))return}finally{if(i)throw r}}return o}}function F(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,s=Array(a);t1?s-1:0),n=1;n1?s-1:0),n=1;n1?s-1:0),n=1;n1?s-1:0),n=1;n1?s-1:0),n=1;n2?s-2:0),n=2;n1&&arguments[1]!==undefined?arguments[1]:{};var t=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var s=a.defaultBase16,r=s===void 0?W:s,n=a.base16Themes,b=n===void 0?null:n;var o=ae(t,b);if(o){t=G(G({},o),t)}var c=K.reduce((function(e,a){return e[a]=t[a]||r[a],e}),{});var i=Object.keys(t).reduce((function(e,a){return K.indexOf(a)===-1?(e[a]=t[a],e):e}),{});var u=e(c);var l=Y(i,u);for(var f=arguments.length,d=new Array(f>3?f-3:0),h=3;h({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 ne=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 be=e=>{const a=re(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,t)=>{let{style:s}=e;return{style:{...s,paddingTop:"0.25em",paddingRight:0,marginLeft:"0.875em",WebkitUserSelect:"text",MozUserSelect:"text",wordWrap:"break-word",paddingLeft:t.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,t)=>{let{style:s}=e;return{style:{...s,color:ne(a)[t]}}},itemRange:(e,t)=>({style:{paddingTop:t?0:"0.25em",cursor:"pointer",color:a.LABEL_COLOR}}),arrow:(e,a,t)=>{let{style:s}=e;return{style:{...s,marginLeft:0,transition:"150ms",WebkitTransition:"150ms",MozTransition:"150ms",WebkitTransform:t?"rotateZ(90deg)":"rotateZ(0deg)",MozTransform:t?"rotateZ(90deg)":"rotateZ(0deg)",transform:t?"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:t}=e;return{style:{...t,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,t,s,r)=>{let{style:n}=e;return{style:{...n,position:"relative",paddingTop:"0.25em",marginLeft:a.length>1?"0.875em":0,paddingLeft:!r?"1.125em":0}}},rootNode:{padding:0,margin:0},nestedNodeLabel:(e,a,t,s,r)=>{let{style:n}=e;return{style:{...n,margin:0,padding:0,WebkitUserSelect:r?"inherit":"text",MozUserSelect:r?"inherit":"text",cursor:r?"pointer":"default"}}},nestedNodeItemString:(e,t,s,r)=>{let{style:n}=e;return{style:{...n,paddingLeft:"0.5em",cursor:"default",color:r?a.ITEM_STRING_EXPANDED_COLOR:a.ITEM_STRING_COLOR}}},nestedNodeItemType:{marginLeft:"0.3em",marginRight:"0.3em"},nestedNodeChildren:(e,a,t)=>{let{style:s}=e;return{style:{...s,padding:0,margin:0,listStyle:"none",display:t?"block":"none"}}},rootNodeChildren:{padding:0,margin:0,listStyle:"none"}}};const oe=Q(be,{defaultBase16:se});const ce=oe;const ie=e=>e;const ue=(e,a,t)=>t===0;const le=(e,a,t,s)=>r().createElement("span",null,t," ",s);const fe=e=>{let[a]=e;return r().createElement("span",null,a,":")};const de=()=>false;function he(e){let{data:a,theme:t,invertTheme:n,keyPath:b=["root"],labelRenderer:o=fe,valueRenderer:c=ie,shouldExpandNodeInitially:i=ue,hideRoot:u=false,getItemString:l=le,postprocessValue:f=ie,isCustomNode:d=de,collectionLimit:h=50,sortObjectKeys:p=false}=e;const m=(0,s.useMemo)((()=>ce(n?te(t):t)),[t,n]);return r().createElement("ul",m("tree"),r().createElement(A,{keyPath:u?[]:b,value:f(a),isCustomNode:d,styling:m,labelRenderer:o,valueRenderer:c,shouldExpandNodeInitially:i,hideRoot:u,getItemString:l,postprocessValue:f,collectionLimit:h,sortObjectKeys:p}))}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/3303.b5596c0715d2d58332fb.js b/share/jupyter/lab/static/3303.b5596c0715d2d58332fb.js new file mode 100644 index 0000000..e939524 --- /dev/null +++ b/share/jupyter/lab/static/3303.b5596c0715d2d58332fb.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3303],{73303:(e,t,n)=>{n.r(t);n.d(t,{protobuf:()=>p});function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var a=["package","message","import","syntax","required","optional","repeated","reserved","default","extensions","packed","bool","bytes","double","enum","float","string","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","option","service","rpc","returns"];var i=r(a);var u=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*");function o(e){if(e.eatSpace())return null;if(e.match("//")){e.skipToEnd();return"comment"}if(e.match(/^[0-9\.+-]/,false)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}if(e.match(/^"([^"]|(""))*"/)){return"string"}if(e.match(/^'([^']|(''))*'/)){return"string"}if(e.match(i)){return"keyword"}if(e.match(u)){return"variable"}e.next();return null}const p={name:"protobuf",token:o,languageData:{autocomplete:a}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/3339.dc549aef4742ebac731b.js b/share/jupyter/lab/static/3339.dc549aef4742ebac731b.js new file mode 100644 index 0000000..a4ca805 --- /dev/null +++ b/share/jupyter/lab/static/3339.dc549aef4742ebac731b.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3339],{10628:(t,e,n)=>{n.d(e,{o:()=>r});var i=n(70416);var r=(0,i.K2)((()=>`\n /* Font Awesome icon styling - consolidated */\n .label-icon {\n display: inline-block;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n }\n \n .node .label-icon path {\n fill: currentColor;\n stroke: revert;\n stroke-width: revert;\n }\n`),"getIconStyles")},30242:(t,e,n)=>{n.d(e,{CP:()=>h,HT:()=>p,PB:()=>u,aC:()=>c,lC:()=>o,m:()=>l,tk:()=>s});var i=n(42418);var r=n(70416);var a=n(16750);var s=(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 o=(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 i=s(t,n);i.lower()}),"drawBackgroundRect");var l=(0,r.K2)(((t,e)=>{const n=e.text.replace(i.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 a=r.append("tspan");a.attr("x",e.x+e.textMargin*2);a.text(n);return r}),"drawText");var c=(0,r.K2)(((t,e,n,i)=>{const r=t.append("image");r.attr("x",e);r.attr("y",n);const s=(0,a.J)(i);r.attr("xlink:href",s)}),"drawImage");var h=(0,r.K2)(((t,e,n,i)=>{const r=t.append("use");r.attr("x",e);r.attr("y",n);const s=(0,a.J)(i);r.attr("xlink:href",`#${s}`)}),"drawEmbeddedImage");var u=(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 p=(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")},3339:(t,e,n)=>{n.d(e,{diagram:()=>H});var i=n(30242);var r=n(10628);var a=n(42418);var s=n(70416);var o=n(1218);var l=function(){var t=(0,s.K2)((function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n}),"o"),e=[6,8,10,11,12,14,16,17,18],n=[1,9],i=[1,10],r=[1,11],a=[1,12],o=[1,13],l=[1,14];var c={trace:(0,s.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,s.K2)((function t(e,n,i,r,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:r.setDiagramTitle(s[l].substr(6));this.$=s[l].substr(6);break;case 9:this.$=s[l].trim();r.setAccTitle(this.$);break;case 10:case 11:this.$=s[l].trim();r.setAccDescription(this.$);break;case 12:r.addSection(s[l].substr(8));this.$=s[l].substr(8);break;case 13:r.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:i,14:r,16:a,17:o,18:l},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:n,12:i,14:r,16:a,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,s.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,s.K2)((function t(e){var n=this,i=[0],r=[],a=[null],o=[],l=this.table,c="",h=0,u=0,p=0,y=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 v=g.options&&g.options.ranges;if(typeof x.yy.parseError==="function"){this.parseError=x.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function b(t){i.length=i.length-2*t;a.length=a.length-t;o.length=o.length-t}(0,s.K2)(b,"popStack");function _(){var t;t=r.pop()||g.lex()||f;if(typeof t!=="number"){if(t instanceof Array){r=t;t=r.pop()}t=n.symbols_[t]||t}return t}(0,s.K2)(_,"lex");var w,K,$,T,M,S,C={},E,I,P,A;while(true){$=i[i.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(E in l[$]){if(this.terminals_[E]&&E>y){A.push("'"+this.terminals_[E]+"'")}}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:i.push(w);a.push(g.yytext);o.push(g.yylloc);i.push(T[1]);w=null;if(!K){u=g.yyleng;c=g.yytext;h=g.yylineno;k=g.yylloc;if(p>0){p--}}else{w=K;K=null}break;case 2:I=this.productions_[T[1]][1];C.$=a[a.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(v){C._$.range=[o[o.length-(I||1)].range[0],o[o.length-1].range[1]]}S=this.performAction.apply(C,[c,u,h,x.yy,T[1],a,o].concat(d));if(typeof S!=="undefined"){return S}if(I){i=i.slice(0,-1*I*2);a=a.slice(0,-1*I);o=o.slice(0,-1*I)}i.push(this.productions_[T[1]][0]);a.push(C.$);o.push(C._$);P=l[i[i.length-2]][i[i.length-1]];i.push(P);break;case 3:return true}}return true}),"parse")};var h=function(){var t={EOF:1,parseError:(0,s.K2)((function t(e,n){if(this.yy.parser){this.yy.parser.parseError(e,n)}else{throw new Error(e)}}),"parseError"),setInput:(0,s.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,s.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,s.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,s.K2)((function(){this._more=true;return this}),"more"),reject:(0,s.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,s.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,s.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,s.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,s.K2)((function(){var t=this.pastInput();var e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,s.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 a in r){this[a]=r[a]}return false}return false}),"test_match"),next:(0,s.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 a=0;ae[0].length)){e=n;i=a;if(this.options.backtrack_lexer){t=this.test_match(n,r[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,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,s.K2)((function t(){var e=this.next();if(e){return e}else{return this.lex()}}),"lex"),begin:(0,s.K2)((function t(e){this.conditionStack.push(e)}),"begin"),popState:(0,s.K2)((function t(){var e=this.conditionStack.length-1;if(e>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}}),"popState"),_currentRules:(0,s.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,s.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,s.K2)((function t(e){this.begin(e)}),"pushState"),stateStackSize:(0,s.K2)((function t(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":true},performAction:(0,s.K2)((function t(e,n,i,r){var a=r;switch(i){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,s.K2)(u,"Parser");u.prototype=c;c.Parser=u;return new u}();l.parser=l;var c=l;var h="";var u=[];var p=[];var y=[];var f=(0,s.K2)((function(){u.length=0;p.length=0;h="";y.length=0;(0,a.IU)()}),"clear");var d=(0,s.K2)((function(t){h=t;u.push(t)}),"addSection");var g=(0,s.K2)((function(){return u}),"getSections");var x=(0,s.K2)((function(){let t=b();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 k=(0,s.K2)((function(t,e){const n=e.substr(1).split(":");let i=0;let r=[];if(n.length===1){i=Number(n[0]);r=[]}else{i=Number(n[0]);r=n[1].split(",")}const a=r.map((t=>t.trim()));const s={section:h,type:h,people:a,task:t,score:i};y.push(s)}),"addTask");var v=(0,s.K2)((function(t){const e={section:h,type:h,description:t,task:t,classes:[]};p.push(e)}),"addTaskOrg");var b=(0,s.K2)((function(){const t=(0,s.K2)((function(t){return y[t].processed}),"compileTask");let e=true;for(const[n,i]of y.entries()){t(n);e=e&&i.processed}return e}),"compileTasks");var _=(0,s.K2)((function(){return m()}),"getActors");var w={getConfig:(0,s.K2)((()=>(0,a.D7)().journey),"getConfig"),clear:f,setDiagramTitle:a.ke,getDiagramTitle:a.ab,setAccTitle:a.SV,getAccTitle:a.iN,setAccDescription:a.EI,getAccDescription:a.m7,addSection:d,getSections:g,getTasks:x,addTask:k,addTaskOrg:v,getActors:_};var K=(0,s.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 ${(0,r.o)()}\n`),"getStyles");var $=K;var T=(0,s.K2)((function(t,e){return(0,i.tk)(t,e)}),"drawRect");var M=(0,s.K2)((function(t,e){const n=15;const i=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 r=t.append("g");r.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");r.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 a(t){const i=(0,o.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",i).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}(0,s.K2)(a,"smile");function l(t){const i=(0,o.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",i).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}(0,s.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,s.K2)(c,"ambivalent");if(e.score>3){a(r)}else if(e.score<3){l(r)}else{c(r)}return i}),"drawFace");var S=(0,s.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 C=(0,s.K2)((function(t,e){return(0,i.m)(t,e)}),"drawText");var E=(0,s.K2)((function(t,e){function n(t,e,n,i,r){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+i-r)+" "+(t+n-r*1.2)+","+(e+i)+" "+t+","+(e+i)}(0,s.K2)(n,"genPoints");const i=t.append("polygon");i.attr("points",n(e.x,e.y,50,20,7));i.attr("class","labelBox");e.y=e.y+e.labelMargin;e.x=e.x+.5*e.labelMargin;C(t,e)}),"drawLabel");var I=(0,s.K2)((function(t,e,n){const r=t.append("g");const a=(0,i.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;T(r,a);B(n)(e.text,r,a.x,a.y,a.width,a.height,{class:"journey-section section-type-"+e.num},n,e.colour)}),"drawSection");var P=-1;var A=(0,s.K2)((function(t,e,n){const r=e.x+n.width/2;const a=t.append("g");P++;const s=300+5*30;a.append("line").attr("id","task"+P).attr("x1",r).attr("y1",e.y).attr("x2",r).attr("y2",s).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666");M(a,{cx:r,cy:300+(5-e.score)*30,score:e.score});const o=(0,i.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;T(a,o);let l=e.x+14;e.people.forEach((t=>{const n=e.actors[t].color;const i={cx:l,cy:e.y,r:7,fill:n,stroke:"#000",title:t,pos:e.actors[t].position};S(a,i);l+=10}));B(n)(e.task,a,o.x,o.y,o.width,o.height,{class:"task"},n,e.colour)}),"drawTask");var j=(0,s.K2)((function(t,e){(0,i.lC)(t,e)}),"drawBackgroundRect");var B=function(){function t(t,e,n,r,a,s,o,l){const c=e.append("text").attr("x",n+a/2).attr("y",r+s/2+5).style("font-color",l).style("text-anchor","middle").text(t);i(c,o)}(0,s.K2)(t,"byText");function e(t,e,n,r,a,s,o,l,c){const{taskFontSize:h,taskFontFamily:u}=l;const p=t.split(//gi);for(let y=0;y{const a=V[r].color;const s={cx:20,cy:i,r:7,fill:a,stroke:"#000",pos:V[r].position};L.drawCircle(t,s);let o=t.append("text").attr("visibility","hidden").text(r);const l=o.node().getBoundingClientRect().width;o.remove();let c=[];if(l<=n){c=[r]}else{const e=r.split(" ");let i="";o=t.append("text").attr("visibility","hidden");e.forEach((t=>{const e=i?`${i} ${t}`:t;o.text(e);const r=o.node().getBoundingClientRect().width;if(r>n){if(i){c.push(i)}i=t;o.text(t);if(o.node().getBoundingClientRect().width>n){let e="";for(const i of t){e+=i;o.text(e+"-");if(o.node().getBoundingClientRect().width>n){c.push(e.slice(0,-1)+"-");e=i}}i=e}}else{i=e}}));if(i){c.push(i)}o.remove()}c.forEach(((n,r)=>{const a={x:40,y:i+7+r*20,fill:"#666",text:n,textMargin:e.boxTextMargin??5};const s=L.drawText(t,a);const o=s.node().getBoundingClientRect().width;if(o>R&&o>e.leftMargin-o){R=o}}));i+=Math.max(20,c.length*20)}))}(0,s.K2)(O,"drawActorLegend");var N=(0,a.D7)().journey;var z=0;var W=(0,s.K2)((function(t,e,n,i){const r=(0,a.D7)();const s=r.journey.titleColor;const l=r.journey.titleFontSize;const c=r.journey.titleFontFamily;const h=r.securityLevel;let u;if(h==="sandbox"){u=(0,o.Ltv)("#i"+e)}const p=h==="sandbox"?(0,o.Ltv)(u.nodes()[0].contentDocument.body):(0,o.Ltv)("body");Y.init();const y=p.select("#"+e);L.initGraphics(y);const f=i.db.getTasks();const d=i.db.getDiagramTitle();const g=i.db.getActors();for(const a in V){delete V[a]}let x=0;g.forEach((t=>{V[t]={color:N.actorColours[x%N.actorColours.length],position:x};x++}));O(y);z=N.leftMargin+R;Y.insert(0,0,z,Object.keys(V).length*50);X(y,f,0);const m=Y.getBounds();if(d){y.append("text").text(d).attr("x",z).attr("font-size",l).attr("font-weight","bold").attr("y",25).attr("fill",s).attr("font-family",c)}const k=m.stopy-m.starty+2*N.diagramMarginY;const v=z+m.stopx+2*N.diagramMarginX;(0,a.a$)(y,k,v,N.useMaxWidth);y.append("line").attr("x1",z).attr("y1",N.height*4).attr("x2",v-z-4).attr("y2",N.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const b=d?70:0;y.attr("viewBox",`${m.startx} -25 ${v} ${k+b}`);y.attr("preserveAspectRatio","xMinYMin meet");y.attr("height",k+b+25)}),"draw");var Y={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:(0,s.K2)((function(){this.sequenceItems=[];this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0};this.verticalPos=0}),"init"),updateVal:(0,s.K2)((function(t,e,n,i){if(t[e]===void 0){t[e]=n}else{t[e]=i(n,t[e])}}),"updateVal"),updateBounds:(0,s.K2)((function(t,e,n,i){const r=(0,a.D7)().journey;const o=this;let l=0;function c(a){return(0,s.K2)((function s(c){l++;const h=o.sequenceItems.length-l+1;o.updateVal(c,"starty",e-h*r.boxMargin,Math.min);o.updateVal(c,"stopy",i+h*r.boxMargin,Math.max);o.updateVal(Y.data,"startx",t-h*r.boxMargin,Math.min);o.updateVal(Y.data,"stopx",n+h*r.boxMargin,Math.max);if(!(a==="activation")){o.updateVal(c,"startx",t-h*r.boxMargin,Math.min);o.updateVal(c,"stopx",n+h*r.boxMargin,Math.max);o.updateVal(Y.data,"starty",e-h*r.boxMargin,Math.min);o.updateVal(Y.data,"stopy",i+h*r.boxMargin,Math.max)}}),"updateItemBounds")}(0,s.K2)(c,"updateFn");this.sequenceItems.forEach(c())}),"updateBounds"),insert:(0,s.K2)((function(t,e,n,i){const r=Math.min(t,n);const a=Math.max(t,n);const s=Math.min(e,i);const o=Math.max(e,i);this.updateVal(Y.data,"startx",r,Math.min);this.updateVal(Y.data,"starty",s,Math.min);this.updateVal(Y.data,"stopx",a,Math.max);this.updateVal(Y.data,"stopy",o,Math.max);this.updateBounds(r,s,a,o)}),"insert"),bumpVerticalPos:(0,s.K2)((function(t){this.verticalPos=this.verticalPos+t;this.data.stopy=this.verticalPos}),"bumpVerticalPos"),getVerticalPos:(0,s.K2)((function(){return this.verticalPos}),"getVerticalPos"),getBounds:(0,s.K2)((function(){return this.data}),"getBounds")};var q=N.sectionFills;var J=N.sectionColours;var X=(0,s.K2)((function(t,e,n){const i=(0,a.D7)().journey;let r="";const s=i.height*2+i.diagramMarginY;const o=n+s;let l=0;let c="#CCC";let h="black";let u=0;for(const[a,p]of e.entries()){if(r!==p.section){c=q[l%q.length];u=l%q.length;h=J[l%J.length];let n=0;const s=p.section;for(let t=a;t{if(V[e]){t[e]=V[e]}return t}),{});p.x=a*i.taskMargin+a*i.width+z;p.y=o;p.width=i.diagramMarginX;p.height=i.diagramMarginY;p.colour=h;p.fill=c;p.num=u;p.actors=n;L.drawTask(t,p,i);Y.insert(p.x,p.y,p.x+p.width+i.taskMargin,300+5*30)}}),"drawTasks");var G={setConf:D,draw:W};var H={parser:c,db:w,renderer:G,styles:$,init:(0,s.K2)((t=>{G.setConf(t.journey);w.clear()}),"init")}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/3372.8eeafd96de9a7a205f40.js b/share/jupyter/lab/static/3372.8eeafd96de9a7a205f40.js new file mode 100644 index 0000000..9e9b167 --- /dev/null +++ b/share/jupyter/lab/static/3372.8eeafd96de9a7a205f40.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3372],{43372:(e,t,n)=>{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/share/jupyter/lab/static/339.380593b40d8d41150a4e.js b/share/jupyter/lab/static/339.380593b40d8d41150a4e.js new file mode 100644 index 0000000..f79dfa6 --- /dev/null +++ b/share/jupyter/lab/static/339.380593b40d8d41150a4e.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[339],{70339:(e,t,n)=>{n.r(t);n.d(t,{nsis:()=>r});var i=n(47228);const r=(0,i.I)({start:[{regex:/(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/,token:"number"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/`(?:[^\\`]|\\.)*`?/,token:"string"},{regex:/^\s*(?:\!(addincludedir|addplugindir|appendfile|assert|cd|define|delfile|echo|error|execute|finalize|getdllversion|gettlbversion|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|uninstfinalize|verbose|warning))\b/i,token:"keyword"},{regex:/^\s*(?:\!(if(?:n?def)?|ifmacron?def|macro))\b/i,token:"keyword",indent:true},{regex:/^\s*(?:\!(else|endif|macroend))\b/i,token:"keyword",dedent:true},{regex:/^\s*(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecShellWait|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetKnownFolderPath|GetLabelAddress|GetTempFileName|GetWinVer|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfRtlLanguage|IfShellVarContextAll|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|Int64Cmp|Int64CmpU|Int64Fmt|IntCmp|IntCmpU|IntFmt|IntOp|IntPtrCmp|IntPtrCmpU|IntPtrOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadAndSetImage|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestLongPathAware|ManifestMaxVersionTested|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|PEAddResource|PEDllCharacteristics|PERemoveResource|PESubsysVer|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Target|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegMultiStr|WriteRegNone|WriteRegStr|WriteUninstaller|XPStyle)\b/i,token:"keyword"},{regex:/^\s*(?:Function|PageEx|Section(?:Group)?)\b/i,token:"keyword",indent:true},{regex:/^\s*(?:(Function|PageEx|Section(?:Group)?)End)\b/i,token:"keyword",dedent:true},{regex:/\b(?:ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HIDDEN|HKCC|HKCR(32|64)?|HKCU(32|64)?|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM(32|64)?|HKPD|HKU|IDABORT|IDCANCEL|IDD_DIR|IDD_INST|IDD_INSTFILES|IDD_LICENSE|IDD_SELCOM|IDD_UNINST|IDD_VERIFY|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SW_HIDE|SW_SHOWDEFAULT|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED|SW_SHOWNORMAL|SYSTEM|TEMPORARY)\b/i,token:"atom"},{regex:/\b(?:admin|all|amd64-unicode|auto|both|bottom|bzip2|components|current|custom|directory|false|force|hide|highest|ifdiff|ifnewer|instfiles|lastused|leave|left|license|listonly|lzma|nevershow|none|normal|notset|off|on|right|show|silent|silentlog|textonly|top|true|try|un\.components|un\.custom|un\.directory|un\.instfiles|un\.license|uninstConfirm|user|Win10|Win7|Win8|WinVista|x-86-(ansi|unicode)|zlib)\b/i,token:"builtin"},{regex:/\$\{(?:And(?:If(?:Not)?|Unless)|Break|Case(?:2|3|4|5|Else)?|Continue|Default|Do(?:Until|While)?|Else(?:If(?:Not)?|Unless)?|End(?:If|Select|Switch)|Exit(?:Do|For|While)|For(?:Each)?|If(?:Cmd|Not(?:Then)?|Then)?|Loop(?:Until|While)?|Or(?:If(?:Not)?|Unless)|Select|Switch|Unless|While)\}/i,token:"variable-2",indent:true},{regex:/\$\{(?:BannerTrimPath|DirState|DriveSpace|Get(BaseName|Drives|ExeName|ExePath|FileAttributes|FileExt|FileName|FileVersion|Options|OptionsS|Parameters|Parent|Root|Size|Time)|Locate|RefreshShellIcons)\}/i,token:"variable-2",dedent:true},{regex:/\$\{(?:Memento(?:Section(?:Done|End|Restore|Save)?|UnselectedSection))\}/i,token:"variable-2",dedent:true},{regex:/\$\{(?:Config(?:Read|ReadS|Write|WriteS)|File(?:Join|ReadFromEnd|Recode)|Line(?:Find|Read|Sum)|Text(?:Compare|CompareS)|TrimNewLines)\}/i,token:"variable-2",dedent:true},{regex:/\$\{(?:(?:At(?:Least|Most)|Is)(?:ServicePack|Win(?:7|8|10|95|98|200(?:0|3|8(?:R2)?)|ME|NT4|Vista|XP))|Is(?:NT|Server))\}/i,token:"variable",dedent:true},{regex:/\$\{(?:StrFilterS?|Version(?:Compare|Convert)|Word(?:AddS?|Find(?:(?:2|3)X)?S?|InsertS?|ReplaceS?))\}/i,token:"keyword",dedent:true},{regex:/\$\{(?:RunningX64)\}/i,token:"variable",dedent:true},{regex:/\$\{(?:Disable|Enable)X64FSRedirection\}/i,token:"keyword",dedent:true},{regex:/(#|;).*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/\$\w[\w\.]*/,token:"variable"},{regex:/\${[\!\w\.:-]+}/,token:"variableName.constant"},{regex:/\$\([\!\w\.:-]+\)/,token:"atom"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],languageData:{name:"nsis",indentOnInput:/^\s*((Function|PageEx|Section|Section(Group)?)End|(\!(endif|macroend))|\$\{(End(If|Unless|While)|Loop(Until)|Next)\})$/i,commentTokens:{line:"#",block:{open:"/*",close:"*/"}}}})},47228:(e,t,n)=>{n.d(t,{I:()=>i});function i(e){r(e,"start");var t={},n=e.languageData||{},i=false;for(var o in e)if(o!=n&&e.hasOwnProperty(o)){var a=t[o]=[],S=e[o];for(var c=0;c2&&a.token&&typeof a.token!="string"){n.pending=[];for(var d=2;d-1)return null;var r=n.indent.length-1,o=e[n.state];e:for(;;){for(var a=0;a{!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/share/jupyter/lab/static/3669.47474718289c8591e1c9.js b/share/jupyter/lab/static/3669.47474718289c8591e1c9.js new file mode 100644 index 0000000..8ced740 --- /dev/null +++ b/share/jupyter/lab/static/3669.47474718289c8591e1c9.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3669],{83669:(a,e,p)=>{p.d(e,{createRadarServices:()=>t.f});var t=p(24219);var r=p(11254)}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/36e0d72d8a7afc696a3e.woff b/share/jupyter/lab/static/36e0d72d8a7afc696a3e.woff new file mode 100644 index 0000000..ed55c4c Binary files /dev/null and b/share/jupyter/lab/static/36e0d72d8a7afc696a3e.woff differ diff --git a/share/jupyter/lab/static/3709.e33bc30c83272aa85628.js b/share/jupyter/lab/static/3709.e33bc30c83272aa85628.js new file mode 100644 index 0000000..2385c0e --- /dev/null +++ b/share/jupyter/lab/static/3709.e33bc30c83272aa85628.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3709],{73709:(e,t,r)=>{r.r(t);r.d(t,{perl:()=>_});function n(e,t){return e.string.charAt(e.pos+(t||0))}function i(e,t){if(t){var r=e.pos-t;return e.string.substr(r>=0?r:0,t)}else{return e.string.substr(0,e.pos-1)}}function s(e,t){var r=e.string.length;var n=r-e.pos+1;return e.string.substr(e.pos,t&&t=(n=e.string.length-1))e.pos=n;else e.pos=r}var a={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null};var l="string.special";var f=/[goseximacplud]/;function o(e,t,r,n,i){t.chain=null;t.style=null;t.tail=null;t.tokenize=function(e,t){var s=false,u,a=0;while(u=e.next()){if(u===r[a]&&!s){if(r[++a]!==undefined){t.chain=r[a];t.style=n;t.tail=i}else if(i)e.eatWhile(i);t.tokenize=E;return n}s=!s&&u=="\\"}return n};return t.tokenize(e,t)}function $(e,t,r){t.tokenize=function(e,t){if(e.string==r)t.tokenize=E;e.skipToEnd();return"string"};return t.tokenize(e,t)}function E(e,t){if(e.eatSpace())return null;if(t.chain)return o(e,t,t.chain,t.style,t.tail);if(e.match(/^(\-?((\d[\d_]*)?\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F_]+|0b[01_]+|\d[\d_]*(e[+-]?\d+)?)/))return"number";if(e.match(/^<<(?=[_a-zA-Z])/)){e.eatWhile(/\w/);return $(e,t,e.current().substr(2))}if(e.sol()&&e.match(/^\=item(?!\w)/)){return $(e,t,"=cut")}var r=e.next();if(r=='"'||r=="'"){if(i(e,3)=="<<"+r){var E=e.pos;e.eatWhile(/\w/);var _=e.current().substr(1);if(_&&e.eat(r))return $(e,t,_);e.pos=E}return o(e,t,[r],"string")}if(r=="q"){var p=n(e,-2);if(!(p&&/\w/.test(p))){p=n(e,0);if(p=="x"){p=n(e,1);if(p=="("){u(e,2);return o(e,t,[")"],l,f)}if(p=="["){u(e,2);return o(e,t,["]"],l,f)}if(p=="{"){u(e,2);return o(e,t,["}"],l,f)}if(p=="<"){u(e,2);return o(e,t,[">"],l,f)}if(/[\^'"!~\/]/.test(p)){u(e,1);return o(e,t,[e.eat(p)],l,f)}}else if(p=="q"){p=n(e,1);if(p=="("){u(e,2);return o(e,t,[")"],"string")}if(p=="["){u(e,2);return o(e,t,["]"],"string")}if(p=="{"){u(e,2);return o(e,t,["}"],"string")}if(p=="<"){u(e,2);return o(e,t,[">"],"string")}if(/[\^'"!~\/]/.test(p)){u(e,1);return o(e,t,[e.eat(p)],"string")}}else if(p=="w"){p=n(e,1);if(p=="("){u(e,2);return o(e,t,[")"],"bracket")}if(p=="["){u(e,2);return o(e,t,["]"],"bracket")}if(p=="{"){u(e,2);return o(e,t,["}"],"bracket")}if(p=="<"){u(e,2);return o(e,t,[">"],"bracket")}if(/[\^'"!~\/]/.test(p)){u(e,1);return o(e,t,[e.eat(p)],"bracket")}}else if(p=="r"){p=n(e,1);if(p=="("){u(e,2);return o(e,t,[")"],l,f)}if(p=="["){u(e,2);return o(e,t,["]"],l,f)}if(p=="{"){u(e,2);return o(e,t,["}"],l,f)}if(p=="<"){u(e,2);return o(e,t,[">"],l,f)}if(/[\^'"!~\/]/.test(p)){u(e,1);return o(e,t,[e.eat(p)],l,f)}}else if(/[\^'"!~\/(\[{<]/.test(p)){if(p=="("){u(e,1);return o(e,t,[")"],"string")}if(p=="["){u(e,1);return o(e,t,["]"],"string")}if(p=="{"){u(e,1);return o(e,t,["}"],"string")}if(p=="<"){u(e,1);return o(e,t,[">"],"string")}if(/[\^'"!~\/]/.test(p)){return o(e,t,[e.eat(p)],"string")}}}}if(r=="m"){var p=n(e,-2);if(!(p&&/\w/.test(p))){p=e.eat(/[(\[{<\^'"!~\/]/);if(p){if(/[\^'"!~\/]/.test(p)){return o(e,t,[p],l,f)}if(p=="("){return o(e,t,[")"],l,f)}if(p=="["){return o(e,t,["]"],l,f)}if(p=="{"){return o(e,t,["}"],l,f)}if(p=="<"){return o(e,t,[">"],l,f)}}}}if(r=="s"){var p=/[\/>\]})\w]/.test(n(e,-2));if(!p){p=e.eat(/[(\[{<\^'"!~\/]/);if(p){if(p=="[")return o(e,t,["]","]"],l,f);if(p=="{")return o(e,t,["}","}"],l,f);if(p=="<")return o(e,t,[">",">"],l,f);if(p=="(")return o(e,t,[")",")"],l,f);return o(e,t,[p,p],l,f)}}}if(r=="y"){var p=/[\/>\]})\w]/.test(n(e,-2));if(!p){p=e.eat(/[(\[{<\^'"!~\/]/);if(p){if(p=="[")return o(e,t,["]","]"],l,f);if(p=="{")return o(e,t,["}","}"],l,f);if(p=="<")return o(e,t,[">",">"],l,f);if(p=="(")return o(e,t,[")",")"],l,f);return o(e,t,[p,p],l,f)}}}if(r=="t"){var p=/[\/>\]})\w]/.test(n(e,-2));if(!p){p=e.eat("r");if(p){p=e.eat(/[(\[{<\^'"!~\/]/);if(p){if(p=="[")return o(e,t,["]","]"],l,f);if(p=="{")return o(e,t,["}","}"],l,f);if(p=="<")return o(e,t,[">",">"],l,f);if(p=="(")return o(e,t,[")",")"],l,f);return o(e,t,[p,p],l,f)}}}}if(r=="`"){return o(e,t,[r],"builtin")}if(r=="/"){if(!/~\s*$/.test(i(e)))return"operator";else return o(e,t,[r],l,f)}if(r=="$"){var E=e.pos;if(e.eatWhile(/\d/)||e.eat("{")&&e.eatWhile(/\d/)&&e.eat("}"))return"builtin";else e.pos=E}if(/[$@%]/.test(r)){var E=e.pos;if(e.eat("^")&&e.eat(/[A-Z]/)||!/[@$%&]/.test(n(e,-2))&&e.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var p=e.current();if(a[p])return"builtin"}e.pos=E}if(/[$@%&]/.test(r)){if(e.eatWhile(/[\w$]/)||e.eat("{")&&e.eatWhile(/[\w$]/)&&e.eat("}")){var p=e.current();if(a[p])return"builtin";else return"variable"}}if(r=="#"){if(n(e,-2)!="$"){e.skipToEnd();return"comment"}}if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(r)){var E=e.pos;e.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/);if(a[e.current()])return"operator";else e.pos=E}if(r=="_"){if(e.pos==1){if(s(e,6)=="_END__"){return o(e,t,["\0"],"comment")}else if(s(e,7)=="_DATA__"){return o(e,t,["\0"],"builtin")}else if(s(e,7)=="_C__"){return o(e,t,["\0"],"string")}}}if(/\w/.test(r)){var E=e.pos;if(n(e,-2)=="{"&&(n(e,0)=="}"||e.eatWhile(/\w/)&&n(e,0)=="}"))return"string";else e.pos=E}if(/[A-Z]/.test(r)){var R=n(e,-2);var E=e.pos;e.eatWhile(/[A-Z_]/);if(/[\da-z]/.test(n(e,0))){e.pos=E}else{var p=a[e.current()];if(!p)return"meta";if(p[1])p=p[0];if(R!=":"){if(p==1)return"keyword";else if(p==2)return"def";else if(p==3)return"atom";else if(p==4)return"operator";else if(p==5)return"builtin";else return"meta"}else return"meta"}}if(/[a-zA-Z_]/.test(r)){var R=n(e,-2);e.eatWhile(/\w/);var p=a[e.current()];if(!p)return"meta";if(p[1])p=p[0];if(R!=":"){if(p==1)return"keyword";else if(p==2)return"def";else if(p==3)return"atom";else if(p==4)return"operator";else if(p==5)return"builtin";else return"meta"}else return"meta"}return null}const _={name:"perl",startState:function(){return{tokenize:E,chain:null,style:null,tail:null}},token:function(e,t){return(t.tokenize||E)(e,t)},languageData:{commentTokens:{line:"#"},wordChars:"$"}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/373c04fd2418f5c77eea.eot b/share/jupyter/lab/static/373c04fd2418f5c77eea.eot new file mode 100644 index 0000000..e994171 Binary files /dev/null and b/share/jupyter/lab/static/373c04fd2418f5c77eea.eot differ diff --git a/share/jupyter/lab/static/3763.bda1d47b05d70b671f59.js b/share/jupyter/lab/static/3763.bda1d47b05d70b671f59.js new file mode 100644 index 0000000..b485375 --- /dev/null +++ b/share/jupyter/lab/static/3763.bda1d47b05d70b671f59.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.12.1","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.1.1","@iconify/utils":"^3.0.1","@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.13","dayjs":"^1.11.18","dompurify":"^3.2.5","katex":"^0.16.22","khroma":"^2.1.0","lodash-es":"^4.17.21","marked":"^16.2.1","roughjs":"^4.6.6","stylis":"^4.3.6","ts-dedent":"^2.2.0","uuid":"^11.1.0","@mermaid-js/parser":"^0.6.3"},"devDependencies":{"@adobe/jsonschema2md":"^8.0.5","@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","canvas":"^3.1.2","chokidar":"3.6.0","concurrently":"^9.1.2","csstree-validator":"^4.0.1","globby":"^14.1.0","jison":"^0.4.18","js-base64":"^3.7.8","jsdom":"^26.1.0","json-schema-to-typescript":"^15.0.4","micromatch":"^4.0.8","path-browserify":"^1.0.1","prettier":"^3.5.3","remark":"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1","rimraf":"^6.0.1","start-server-and-test":"^2.0.13","type-fest":"^4.35.0","typedoc":"^0.28.12","typedoc-plugin-markdown":"^4.8.1","typescript":"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0","vitepress":"^1.6.4","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/share/jupyter/lab/static/3780.c9294dc98ae926717741.js b/share/jupyter/lab/static/3780.c9294dc98ae926717741.js new file mode 100644 index 0000000..5e211a6 --- /dev/null +++ b/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/share/jupyter/lab/static/3799.eaa0438bc5c41bad0516.js b/share/jupyter/lab/static/3799.eaa0438bc5c41bad0516.js new file mode 100644 index 0000000..e2ec9b0 --- /dev/null +++ b/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{var n=e(56110),o=e(9325);var a=n(o,"DataView");r.exports=a},21549:(r,t,e)=>{var n=e(22032),o=e(63862),a=e(66721),i=e(12749),u=e(35749);function s(r){var t=-1,e=r==null?0:r.length;this.clear();while(++t{var n=e(63702),o=e(70080),a=e(24739),i=e(48655),u=e(31175);function s(r){var t=-1,e=r==null?0:r.length;this.clear();while(++t{var n=e(56110),o=e(9325);var a=n(o,"Map");r.exports=a},53661:(r,t,e)=>{var n=e(63040),o=e(17670),a=e(90289),i=e(4509),u=e(72949);function s(r){var t=-1,e=r==null?0:r.length;this.clear();while(++t{var n=e(56110),o=e(9325);var a=n(o,"Promise");r.exports=a},76545:(r,t,e)=>{var n=e(56110),o=e(9325);var a=n(o,"Set");r.exports=a},37217:(r,t,e)=>{var n=e(80079),o=e(51420),a=e(90938),i=e(63605),u=e(29817),s=e(80945);function c(r){var t=this.__data__=new n(r);this.size=t.size}c.prototype.clear=o;c.prototype["delete"]=a;c.prototype.get=i;c.prototype.has=u;c.prototype.set=s;r.exports=c},51873:(r,t,e)=>{var n=e(9325);var o=n.Symbol;r.exports=o},37828:(r,t,e)=>{var n=e(9325);var o=n.Uint8Array;r.exports=o},28303:(r,t,e)=>{var n=e(56110),o=e(9325);var a=n(o,"WeakMap");r.exports=a},79770:r=>{function t(r,t){var e=-1,n=r==null?0:r.length,o=0,a=[];while(++e{var n=e(78096),o=e(72428),a=e(56449),i=e(3656),u=e(30361),s=e(37167);var c=Object.prototype;var p=c.hasOwnProperty;function v(r,t){var e=a(r),c=!e&&o(r),v=!e&&!c&&i(r),f=!e&&!c&&!v&&s(r),l=e||c||v||f,h=l?n(r.length,String):[],y=h.length;for(var _ in r){if((t||p.call(r,_))&&!(l&&(_=="length"||v&&(_=="offset"||_=="parent")||f&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||u(_,y)))){h.push(_)}}return h}r.exports=v},34932:r=>{function t(r,t){var e=-1,n=r==null?0:r.length,o=Array(n);while(++e{function t(r,t){var e=-1,n=t.length,o=r.length;while(++e{var n=e(75288);function o(r,t){var e=r.length;while(e--){if(n(r[e][0],t)){return e}}return-1}r.exports=o},47422:(r,t,e)=>{var n=e(31769),o=e(77797);function a(r,t){t=n(t,r);var e=0,a=t.length;while(r!=null&&e{var n=e(14528),o=e(56449);function a(r,t,e){var a=t(r);return o(r)?a:n(a,e(r))}r.exports=a},72552:(r,t,e)=>{var n=e(51873),o=e(659),a=e(59350);var i="[object Null]",u="[object Undefined]";var s=n?n.toStringTag:undefined;function c(r){if(r==null){return r===undefined?u:i}return s&&s in Object(r)?o(r):a(r)}r.exports=c},27534:(r,t,e)=>{var n=e(72552),o=e(40346);var a="[object Arguments]";function i(r){return o(r)&&n(r)==a}r.exports=i},45083:(r,t,e)=>{var n=e(1882),o=e(87296),a=e(23805),i=e(47473);var u=/[\\^$.*+?()[\]{}|]/g;var s=/^\[object .+?Constructor\]$/;var c=Function.prototype,p=Object.prototype;var v=c.toString;var f=p.hasOwnProperty;var l=RegExp("^"+v.call(f).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(r){if(!a(r)||o(r)){return false}var t=n(r)?l:s;return t.test(i(r))}r.exports=h},4901:(r,t,e)=>{var n=e(72552),o=e(30294),a=e(40346);var i="[object Arguments]",u="[object Array]",s="[object Boolean]",c="[object Date]",p="[object Error]",v="[object Function]",f="[object Map]",l="[object Number]",h="[object Object]",y="[object RegExp]",_="[object Set]",b="[object String]",x="[object WeakMap]";var d="[object ArrayBuffer]",j="[object DataView]",g="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",m="[object Int16Array]",A="[object Int32Array]",z="[object Uint8Array]",S="[object Uint8ClampedArray]",P="[object Uint16Array]",k="[object Uint32Array]";var $={};$[g]=$[w]=$[O]=$[m]=$[A]=$[z]=$[S]=$[P]=$[k]=true;$[i]=$[u]=$[d]=$[s]=$[j]=$[c]=$[p]=$[v]=$[f]=$[l]=$[h]=$[y]=$[_]=$[b]=$[x]=false;function F(r){return a(r)&&o(r.length)&&!!$[n(r)]}r.exports=F},88984:(r,t,e)=>{var n=e(55527),o=e(3650);var a=Object.prototype;var i=a.hasOwnProperty;function u(r){if(!n(r)){return o(r)}var t=[];for(var e in Object(r)){if(i.call(r,e)&&e!="constructor"){t.push(e)}}return t}r.exports=u},78096:r=>{function t(r,t){var e=-1,n=Array(r);while(++e{var n=e(51873),o=e(34932),a=e(56449),i=e(44394);var u=1/0;var s=n?n.prototype:undefined,c=s?s.toString:undefined;function p(r){if(typeof r=="string"){return r}if(a(r)){return o(r,p)+""}if(i(r)){return c?c.call(r):""}var t=r+"";return t=="0"&&1/r==-u?"-0":t}r.exports=p},27301:r=>{function t(r){return function(t){return r(t)}}r.exports=t},31769:(r,t,e)=>{var n=e(56449),o=e(28586),a=e(61802),i=e(13222);function u(r,t){if(n(r)){return r}return o(r,t)?[r]:a(i(r))}r.exports=u},55481:(r,t,e)=>{var n=e(9325);var o=n["__core-js_shared__"];r.exports=o},34840:(r,t,e)=>{var n=typeof e.g=="object"&&e.g&&e.g.Object===Object&&e.g;r.exports=n},50002:(r,t,e)=>{var n=e(82199),o=e(4664),a=e(95950);function i(r){return n(r,a,o)}r.exports=i},12651:(r,t,e)=>{var n=e(74218);function o(r,t){var e=r.__data__;return n(t)?e[typeof t=="string"?"string":"hash"]:e.map}r.exports=o},56110:(r,t,e)=>{var n=e(45083),o=e(10392);function a(r,t){var e=o(r,t);return n(e)?e:undefined}r.exports=a},659:(r,t,e)=>{var n=e(51873);var o=Object.prototype;var a=o.hasOwnProperty;var i=o.toString;var u=n?n.toStringTag:undefined;function s(r){var t=a.call(r,u),e=r[u];try{r[u]=undefined;var n=true}catch(s){}var o=i.call(r);if(n){if(t){r[u]=e}else{delete r[u]}}return o}r.exports=s},4664:(r,t,e)=>{var n=e(79770),o=e(63345);var a=Object.prototype;var i=a.propertyIsEnumerable;var u=Object.getOwnPropertySymbols;var s=!u?o:function(r){if(r==null){return[]}r=Object(r);return n(u(r),(function(t){return i.call(r,t)}))};r.exports=s},5861:(r,t,e)=>{var n=e(55580),o=e(68223),a=e(32804),i=e(76545),u=e(28303),s=e(72552),c=e(47473);var p="[object Map]",v="[object Object]",f="[object Promise]",l="[object Set]",h="[object WeakMap]";var y="[object DataView]";var _=c(n),b=c(o),x=c(a),d=c(i),j=c(u);var g=s;if(n&&g(new n(new ArrayBuffer(1)))!=y||o&&g(new o)!=p||a&&g(a.resolve())!=f||i&&g(new i)!=l||u&&g(new u)!=h){g=function(r){var t=s(r),e=t==v?r.constructor:undefined,n=e?c(e):"";if(n){switch(n){case _:return y;case b:return p;case x:return f;case d:return l;case j:return h}}return t}}r.exports=g},10392:r=>{function t(r,t){return r==null?undefined:r[t]}r.exports=t},22032:(r,t,e)=>{var n=e(81042);function o(){this.__data__=n?n(null):{};this.size=0}r.exports=o},63862:r=>{function t(r){var t=this.has(r)&&delete this.__data__[r];this.size-=t?1:0;return t}r.exports=t},66721:(r,t,e)=>{var n=e(81042);var o="__lodash_hash_undefined__";var a=Object.prototype;var i=a.hasOwnProperty;function u(r){var t=this.__data__;if(n){var e=t[r];return e===o?undefined:e}return i.call(t,r)?t[r]:undefined}r.exports=u},12749:(r,t,e)=>{var n=e(81042);var o=Object.prototype;var a=o.hasOwnProperty;function i(r){var t=this.__data__;return n?t[r]!==undefined:a.call(t,r)}r.exports=i},35749:(r,t,e)=>{var n=e(81042);var o="__lodash_hash_undefined__";function a(r,t){var e=this.__data__;this.size+=this.has(r)?0:1;e[r]=n&&t===undefined?o:t;return this}r.exports=a},30361:r=>{var t=9007199254740991;var e=/^(?:0|[1-9]\d*)$/;function n(r,n){var o=typeof r;n=n==null?t:n;return!!n&&(o=="number"||o!="symbol"&&e.test(r))&&(r>-1&&r%1==0&&r{var n=e(56449),o=e(44394);var a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;function u(r,t){if(n(r)){return false}var e=typeof r;if(e=="number"||e=="symbol"||e=="boolean"||r==null||o(r)){return true}return i.test(r)||!a.test(r)||t!=null&&r in Object(t)}r.exports=u},74218:r=>{function t(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}r.exports=t},87296:(r,t,e)=>{var n=e(55481);var o=function(){var r=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function a(r){return!!o&&o in r}r.exports=a},55527:r=>{var t=Object.prototype;function e(r){var e=r&&r.constructor,n=typeof e=="function"&&e.prototype||t;return r===n}r.exports=e},63702:r=>{function t(){this.__data__=[];this.size=0}r.exports=t},70080:(r,t,e)=>{var n=e(26025);var o=Array.prototype;var a=o.splice;function i(r){var t=this.__data__,e=n(t,r);if(e<0){return false}var o=t.length-1;if(e==o){t.pop()}else{a.call(t,e,1)}--this.size;return true}r.exports=i},24739:(r,t,e)=>{var n=e(26025);function o(r){var t=this.__data__,e=n(t,r);return e<0?undefined:t[e][1]}r.exports=o},48655:(r,t,e)=>{var n=e(26025);function o(r){return n(this.__data__,r)>-1}r.exports=o},31175:(r,t,e)=>{var n=e(26025);function o(r,t){var e=this.__data__,o=n(e,r);if(o<0){++this.size;e.push([r,t])}else{e[o][1]=t}return this}r.exports=o},63040:(r,t,e)=>{var n=e(21549),o=e(80079),a=e(68223);function i(){this.size=0;this.__data__={hash:new n,map:new(a||o),string:new n}}r.exports=i},17670:(r,t,e)=>{var n=e(12651);function o(r){var t=n(this,r)["delete"](r);this.size-=t?1:0;return t}r.exports=o},90289:(r,t,e)=>{var n=e(12651);function o(r){return n(this,r).get(r)}r.exports=o},4509:(r,t,e)=>{var n=e(12651);function o(r){return n(this,r).has(r)}r.exports=o},72949:(r,t,e)=>{var n=e(12651);function o(r,t){var e=n(this,r),o=e.size;e.set(r,t);this.size+=e.size==o?0:1;return this}r.exports=o},62224:(r,t,e)=>{var n=e(50104);var o=500;function a(r){var t=n(r,(function(r){if(e.size===o){e.clear()}return r}));var e=t.cache;return t}r.exports=a},81042:(r,t,e)=>{var n=e(56110);var o=n(Object,"create");r.exports=o},3650:(r,t,e)=>{var n=e(74335);var o=n(Object.keys,Object);r.exports=o},86009:(r,t,e)=>{r=e.nmd(r);var n=e(34840);var o=true&&t&&!t.nodeType&&t;var a=o&&"object"=="object"&&r&&!r.nodeType&&r;var i=a&&a.exports===o;var u=i&&n.process;var s=function(){try{var r=a&&a.require&&a.require("util").types;if(r){return r}return u&&u.binding&&u.binding("util")}catch(t){}}();r.exports=s},59350:r=>{var t=Object.prototype;var e=t.toString;function n(r){return e.call(r)}r.exports=n},74335:r=>{function t(r,t){return function(e){return r(t(e))}}r.exports=t},9325:(r,t,e)=>{var n=e(34840);var o=typeof self=="object"&&self&&self.Object===Object&&self;var a=n||o||Function("return this")();r.exports=a},51420:(r,t,e)=>{var n=e(80079);function o(){this.__data__=new n;this.size=0}r.exports=o},90938:r=>{function t(r){var t=this.__data__,e=t["delete"](r);this.size=t.size;return e}r.exports=t},63605:r=>{function t(r){return this.__data__.get(r)}r.exports=t},29817:r=>{function t(r){return this.__data__.has(r)}r.exports=t},80945:(r,t,e)=>{var n=e(80079),o=e(68223),a=e(53661);var i=200;function u(r,t){var e=this.__data__;if(e instanceof n){var u=e.__data__;if(!o||u.length{var n=e(62224);var o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var a=/\\(\\)?/g;var i=n((function(r){var t=[];if(r.charCodeAt(0)===46){t.push("")}r.replace(o,(function(r,e,n,o){t.push(n?o.replace(a,"$1"):e||r)}));return t}));r.exports=i},77797:(r,t,e)=>{var n=e(44394);var o=1/0;function a(r){if(typeof r=="string"||n(r)){return r}var t=r+"";return t=="0"&&1/r==-o?"-0":t}r.exports=a},47473:r=>{var t=Function.prototype;var e=t.toString;function n(r){if(r!=null){try{return e.call(r)}catch(t){}try{return r+""}catch(t){}}return""}r.exports=n},75288:r=>{function t(r,t){return r===t||r!==r&&t!==t}r.exports=t},58156:(r,t,e)=>{var n=e(47422);function o(r,t,e){var o=r==null?undefined:n(r,t);return o===undefined?e:o}r.exports=o},72428:(r,t,e)=>{var n=e(27534),o=e(40346);var a=Object.prototype;var i=a.hasOwnProperty;var u=a.propertyIsEnumerable;var s=n(function(){return arguments}())?n:function(r){return o(r)&&i.call(r,"callee")&&!u.call(r,"callee")};r.exports=s},56449:r=>{var t=Array.isArray;r.exports=t},64894:(r,t,e)=>{var n=e(1882),o=e(30294);function a(r){return r!=null&&o(r.length)&&!n(r)}r.exports=a},3656:(r,t,e)=>{r=e.nmd(r);var n=e(9325),o=e(89935);var a=true&&t&&!t.nodeType&&t;var i=a&&"object"=="object"&&r&&!r.nodeType&&r;var u=i&&i.exports===a;var s=u?n.Buffer:undefined;var c=s?s.isBuffer:undefined;var p=c||o;r.exports=p},1882:(r,t,e)=>{var n=e(72552),o=e(23805);var a="[object AsyncFunction]",i="[object Function]",u="[object GeneratorFunction]",s="[object Proxy]";function c(r){if(!o(r)){return false}var t=n(r);return t==i||t==u||t==a||t==s}r.exports=c},30294:r=>{var t=9007199254740991;function e(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=t}r.exports=e},23805:r=>{function t(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}r.exports=t},40346:r=>{function t(r){return r!=null&&typeof r=="object"}r.exports=t},44394:(r,t,e)=>{var n=e(72552),o=e(40346);var a="[object Symbol]";function i(r){return typeof r=="symbol"||o(r)&&n(r)==a}r.exports=i},37167:(r,t,e)=>{var n=e(4901),o=e(27301),a=e(86009);var i=a&&a.isTypedArray;var u=i?o(i):n;r.exports=u},95950:(r,t,e)=>{var n=e(70695),o=e(88984),a=e(64894);function i(r){return a(r)?n(r):o(r)}r.exports=i},50104:(r,t,e)=>{var n=e(53661);var o="Expected a function";function a(r,t){if(typeof r!="function"||t!=null&&typeof t!="function"){throw new TypeError(o)}var e=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=e.cache;if(a.has(o)){return a.get(o)}var i=r.apply(this,n);e.cache=a.set(o,i)||a;return i};e.cache=new(a.Cache||n);return e}a.Cache=n;r.exports=a},63345:r=>{function t(){return[]}r.exports=t},89935:r=>{function t(){return false}r.exports=t},13222:(r,t,e)=>{var n=e(77556);function o(r){return r==null?"":n(r)}r.exports=o}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/3832.c6026c483bb46cc8e599.js b/share/jupyter/lab/static/3832.c6026c483bb46cc8e599.js new file mode 100644 index 0000000..620a545 --- /dev/null +++ b/share/jupyter/lab/static/3832.c6026c483bb46cc8e599.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3832],{83832:(e,t,n)=>{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/share/jupyter/lab/static/3974.79f68bca9a02c92dab5e.js b/share/jupyter/lab/static/3974.79f68bca9a02c92dab5e.js new file mode 100644 index 0000000..d3dd319 --- /dev/null +++ b/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{"use strict";n.d(t,{z:()=>g,H:()=>m});function r(e){return e.charCodeAt(0)}function i(e,t){if(Array.isArray(e)){e.forEach((function(e){t.push(e)}))}else{t.push(e)}}function s(e,t){if(e[t]===true){throw"duplicate flag "+t}const n=e[t];e[t]=true}function a(e){if(e===undefined){throw Error("Internal Error - Should never get here!")}return true}function o(){throw Error("Internal Error - Should never get here!")}function l(e){return e["type"]==="Character"}const c=[];for(let y=r("0");y<=r("9");y++){c.push(y)}const u=[r("_")].concat(c);for(let y=r("a");y<=r("z");y++){u.push(y)}for(let y=r("A");y<=r("Z");y++){u.push(y)}const f=[r(" "),r("\f"),r("\n"),r("\r"),r("\t"),r("\v"),r("\t"),r(" "),r(" "),r(" "),r(" "),r(" "),r(" "),r(" "),r(" "),r(" "),r(" "),r(" "),r(" "),r(" "),r("\u2028"),r("\u2029"),r(" "),r(" "),r(" "),r("\ufeff")];const d=/[0-9a-fA-F]/;const h=/[0-9]/;const p=/[1-9]/;class m{constructor(){this.idx=0;this.input="";this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx;this.input=e.input;this.groupIdx=e.groupIdx}pattern(e){this.idx=0;this.input=e;this.groupIdx=0;this.consumeChar("/");const t=this.disjunction();this.consumeChar("/");const n={type:"Flags",loc:{begin:this.idx,end:e.length},global:false,ignoreCase:false,multiLine:false,unicode:false,sticky:false};while(this.isRegExpFlag()){switch(this.popChar()){case"g":s(n,"global");break;case"i":s(n,"ignoreCase");break;case"m":s(n,"multiLine");break;case"u":s(n,"unicode");break;case"y":s(n,"sticky");break}}if(this.idx!==this.input.length){throw Error("Redundant input: "+this.input.substring(this.idx))}return{type:"Pattern",flags:n,value:t,loc:this.loc(0)}}disjunction(){const e=[];const t=this.idx;e.push(this.alternative());while(this.peekChar()==="|"){this.consumeChar("|");e.push(this.alternative())}return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){const e=[];const t=this.idx;while(this.isTerm()){e.push(this.term())}return{type:"Alternative",value:e,loc:this.loc(t)}}term(){if(this.isAssertion()){return this.assertion()}else{return this.atom()}}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let t;switch(this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break}a(t);const n=this.disjunction();this.consumeChar(")");return{type:t,value:n,loc:this.loc(e)}}return o()}quantifier(e=false){let t=undefined;const n=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:Infinity};break;case"+":t={atLeast:1,atMost:Infinity};break;case"?":t={atLeast:0,atMost:1};break;case"{":const n=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:n,atMost:n};break;case",":let e;if(this.isDigit()){e=this.integerIncludingZero();t={atLeast:n,atMost:e}}else{t={atLeast:n,atMost:Infinity}}this.consumeChar("}");break}if(e===true&&t===undefined){return undefined}a(t);break}if(e===true&&t===undefined){return undefined}if(a(t)){if(this.peekChar(0)==="?"){this.consumeChar("?");t.greedy=false}else{t.greedy=true}t.type="Quantifier";t.loc=this.loc(n);return t}}atom(){let e;const t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}if(e===undefined&&this.isPatternCharacter()){e=this.patternCharacter()}if(a(e)){e.loc=this.loc(t);if(this.isQuantifier()){e.quantifier=this.quantifier()}return e}return o()}dotAll(){this.consumeChar(".");return{type:"Set",complement:true,value:[r("\n"),r("\r"),r("\u2028"),r("\u2029")]}}atomEscape(){this.consumeChar("\\");switch(this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){const e=this.positiveInteger();return{type:"GroupBackReference",value:e}}characterClassEscape(){let e;let t=false;switch(this.popChar()){case"d":e=c;break;case"D":e=c;t=true;break;case"s":e=f;break;case"S":e=f;t=true;break;case"w":e=u;break;case"W":e=u;t=true;break}if(a(e)){return{type:"Set",value:e,complement:t}}return o()}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=r("\f");break;case"n":e=r("\n");break;case"r":e=r("\r");break;case"t":e=r("\t");break;case"v":e=r("\v");break}if(a(e)){return{type:"Character",value:e}}return o()}controlLetterEscapeAtom(){this.consumeChar("c");const e=this.popChar();if(/[a-zA-Z]/.test(e)===false){throw Error("Invalid ")}const t=e.toUpperCase().charCodeAt(0)-64;return{type:"Character",value:t}}nulCharacterAtom(){this.consumeChar("0");return{type:"Character",value:r("\0")}}hexEscapeSequenceAtom(){this.consumeChar("x");return this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){this.consumeChar("u");return this.parseHexDigits(4)}identityEscapeAtom(){const e=this.popChar();return{type:"Character",value:r(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:const e=this.popChar();return{type:"Character",value:r(e)}}}characterClass(){const e=[];let t=false;this.consumeChar("[");if(this.peekChar(0)==="^"){this.consumeChar("^");t=true}while(this.isClassAtom()){const t=this.classAtom();const n=t.type==="Character";if(l(t)&&this.isRangeDash()){this.consumeChar("-");const n=this.classAtom();const s=n.type==="Character";if(l(n)){if(n.value=this.input.length){throw Error("Unexpected end of input")}this.idx++}loc(e){return{begin:e,end:this.idx}}}class g{visitChildren(e){for(const t in e){const n=e[t];if(e.hasOwnProperty(t)){if(n.type!==undefined){this.visit(n)}else if(Array.isArray(n)){n.forEach((e=>{this.visit(e)}),this)}}}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e);break}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}}},81163:(e,t,n)=>{"use strict";n.d(t,{$:()=>c});var r=n(11254);var i=n(6052);var s=n(41281);var a=n(37810);var o=class extends r.mR{static{(0,r.K2)(this,"PacketTokenBuilder")}constructor(){super(["packet"])}};var l={parser:{TokenBuilder:(0,r.K2)((()=>new o),"TokenBuilder"),ValueConverter:(0,r.K2)((()=>new r.Tm),"ValueConverter")}};function c(e=i.D){const t=(0,s.WQ)((0,a.u)(e),r.sr);const n=(0,s.WQ)((0,a.t)({shared:t}),r.AM,l);t.ServiceRegistry.register(n);return{shared:t,Packet:n}}(0,r.K2)(c,"createPacketServices")},11254:(e,t,n)=>{"use strict";n.d(t,{mR:()=>Ge,dg:()=>Ue,jE:()=>Ne,Tm:()=>Fe,eZ:()=>Le,e5:()=>Ie,sr:()=>we,AM:()=>Ce,KX:()=>Se,YP:()=>be,eV:()=>_e,K2:()=>g});var r=n(64032);var i=n(37810);var s=n(41281);var a=n(85684);var o=n(6052);var l=n(14247);const c={Grammar:()=>undefined,LanguageMetaData:()=>({caseInsensitive:false,fileExtensions:[".langium"],languageId:"langium"})};const u={AstReflection:()=>new a.QX};function f(){const e=(0,s.WQ)((0,i.u)(o.D),u);const t=(0,s.WQ)((0,i.t)({shared:e}),c);e.ServiceRegistry.register(t);return t}function d(e){var t;const n=f();const r=n.serializer.JsonSerializer.deserialize(e);n.shared.workspace.LangiumDocumentFactory.fromModel(r,l.r.parse(`memory://${(t=r.name)!==null&&t!==void 0?t:"grammar"}.langium`));return r}var h=n(14480);var p=n(25355);var m=Object.defineProperty;var g=(e,t)=>m(e,"name",{value:t,configurable:true});var y="Statement";var T="Architecture";function v(e){return ie.isInstance(e,T)}g(v,"isArchitecture");var A="Axis";var R="Branch";function E(e){return ie.isInstance(e,R)}g(E,"isBranch");var $="Checkout";var k="CherryPicking";var x="ClassDefStatement";var w="Commit";function I(e){return ie.isInstance(e,w)}g(I,"isCommit");var C="Curve";var S="Edge";var N="Entry";var L="GitGraph";function b(e){return ie.isInstance(e,L)}g(b,"isGitGraph");var _="Group";var O="Info";function P(e){return ie.isInstance(e,O)}g(P,"isInfo");var M="Item";var D="Junction";var U="Merge";function F(e){return ie.isInstance(e,U)}g(F,"isMerge");var G="Option";var K="Packet";function B(e){return ie.isInstance(e,K)}g(B,"isPacket");var j="PacketBlock";function V(e){return ie.isInstance(e,j)}g(V,"isPacketBlock");var W="Pie";function H(e){return ie.isInstance(e,W)}g(H,"isPie");var z="PieSection";function Y(e){return ie.isInstance(e,z)}g(Y,"isPieSection");var q="Radar";var X="Service";var Q="Treemap";function Z(e){return ie.isInstance(e,Q)}g(Z,"isTreemap");var J="TreemapRow";var ee="Direction";var te="Leaf";var ne="Section";var re=class extends r.kD{static{g(this,"MermaidAstReflection")}getAllTypes(){return[T,A,R,$,k,x,w,C,ee,S,N,L,_,O,M,D,te,U,G,K,j,W,z,q,ne,X,y,Q,J]}computeIsSubtype(e,t){switch(e){case R:case $:case k:case w:case U:{return this.isSubtype(y,t)}case ee:{return this.isSubtype(L,t)}case te:case ne:{return this.isSubtype(M,t)}default:{return false}}}getReferenceType(e){const t=`${e.container.$type}:${e.property}`;switch(t){case"Entry:axis":{return A}default:{throw new Error(`${t} is not a valid reference id.`)}}}getTypeMetaData(e){switch(e){case T:{return{name:T,properties:[{name:"accDescr"},{name:"accTitle"},{name:"edges",defaultValue:[]},{name:"groups",defaultValue:[]},{name:"junctions",defaultValue:[]},{name:"services",defaultValue:[]},{name:"title"}]}}case A:{return{name:A,properties:[{name:"label"},{name:"name"}]}}case R:{return{name:R,properties:[{name:"name"},{name:"order"}]}}case $:{return{name:$,properties:[{name:"branch"}]}}case k:{return{name:k,properties:[{name:"id"},{name:"parent"},{name:"tags",defaultValue:[]}]}}case x:{return{name:x,properties:[{name:"className"},{name:"styleText"}]}}case w:{return{name:w,properties:[{name:"id"},{name:"message"},{name:"tags",defaultValue:[]},{name:"type"}]}}case C:{return{name:C,properties:[{name:"entries",defaultValue:[]},{name:"label"},{name:"name"}]}}case S:{return{name:S,properties:[{name:"lhsDir"},{name:"lhsGroup",defaultValue:false},{name:"lhsId"},{name:"lhsInto",defaultValue:false},{name:"rhsDir"},{name:"rhsGroup",defaultValue:false},{name:"rhsId"},{name:"rhsInto",defaultValue:false},{name:"title"}]}}case N:{return{name:N,properties:[{name:"axis"},{name:"value"}]}}case L:{return{name:L,properties:[{name:"accDescr"},{name:"accTitle"},{name:"statements",defaultValue:[]},{name:"title"}]}}case _:{return{name:_,properties:[{name:"icon"},{name:"id"},{name:"in"},{name:"title"}]}}case O:{return{name:O,properties:[{name:"accDescr"},{name:"accTitle"},{name:"title"}]}}case M:{return{name:M,properties:[{name:"classSelector"},{name:"name"}]}}case D:{return{name:D,properties:[{name:"id"},{name:"in"}]}}case U:{return{name:U,properties:[{name:"branch"},{name:"id"},{name:"tags",defaultValue:[]},{name:"type"}]}}case G:{return{name:G,properties:[{name:"name"},{name:"value",defaultValue:false}]}}case K:{return{name:K,properties:[{name:"accDescr"},{name:"accTitle"},{name:"blocks",defaultValue:[]},{name:"title"}]}}case j:{return{name:j,properties:[{name:"bits"},{name:"end"},{name:"label"},{name:"start"}]}}case W:{return{name:W,properties:[{name:"accDescr"},{name:"accTitle"},{name:"sections",defaultValue:[]},{name:"showData",defaultValue:false},{name:"title"}]}}case z:{return{name:z,properties:[{name:"label"},{name:"value"}]}}case q:{return{name:q,properties:[{name:"accDescr"},{name:"accTitle"},{name:"axes",defaultValue:[]},{name:"curves",defaultValue:[]},{name:"options",defaultValue:[]},{name:"title"}]}}case X:{return{name:X,properties:[{name:"icon"},{name:"iconText"},{name:"id"},{name:"in"},{name:"title"}]}}case Q:{return{name:Q,properties:[{name:"accDescr"},{name:"accTitle"},{name:"title"},{name:"TreemapRows",defaultValue:[]}]}}case J:{return{name:J,properties:[{name:"indent"},{name:"item"}]}}case ee:{return{name:ee,properties:[{name:"accDescr"},{name:"accTitle"},{name:"dir"},{name:"statements",defaultValue:[]},{name:"title"}]}}case te:{return{name:te,properties:[{name:"classSelector"},{name:"name"},{name:"value"}]}}case ne:{return{name:ne,properties:[{name:"classSelector"},{name:"name"}]}}default:{return{name:e,properties:[]}}}}};var ie=new re;var se;var ae=g((()=>se??(se=d(`{"$type":"Grammar","isDeclared":true,"name":"Info","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Info","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"?"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`))),"InfoGrammar");var oe;var le=g((()=>oe??(oe=d(`{"$type":"Grammar","isDeclared":true,"name":"Packet","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Packet","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"packet"},{"$type":"Keyword","value":"packet-beta"}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}],"cardinality":"?"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"+"},{"$type":"Assignment","feature":"bits","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]}]},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`))),"PacketGrammar");var ce;var ue=g((()=>ce??(ce=d(`{"$type":"Grammar","isDeclared":true,"name":"Pie","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Pie","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"FLOAT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?(0|[1-9][0-9]*)(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@2"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@3"}}]},"fragment":false,"hidden":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`))),"PieGrammar");var fe;var de=g((()=>fe??(fe=d(`{"$type":"Grammar","isDeclared":true,"name":"Architecture","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"Arrow","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/"},"fragment":false,"hidden":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@18"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[[\\\\w ]+\\\\]/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`))),"ArchitectureGrammar");var he;var pe=g((()=>he??(he=d(`{"$type":"Grammar","isDeclared":true,"name":"GitGraph","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"GitGraph","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[],"types":[],"usedGrammars":[]}`))),"GitGraphGrammar");var me;var ge=g((()=>me??(me=d(`{"$type":"Grammar","isDeclared":true,"name":"Radar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Radar","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":"radar-beta:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"axis"},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"curve"},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"Label","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Axis","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Curve","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Keyword","value":"}"}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"Entries","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"DetailedEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"axis","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@2"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"deprecatedSyntax":false}},{"$type":"Keyword","value":":","cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Option","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"showLegend"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"ticks"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"max"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"min"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"graticule"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"}}]},"fragment":false,"hidden":false},{"$type":"ParserRule","fragment":true,"name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"}},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|'([^'\\\\\\\\]|\\\\\\\\.)*'/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}}}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"definesHiddenTokens":false,"hiddenTokens":[],"types":[],"usedGrammars":[]}`))),"RadarGrammar");var ye;var Te=g((()=>ye??(ye=d(`{"$type":"Grammar","isDeclared":true,"name":"Treemap","rules":[{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"Treemap","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"TreemapRows","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}],"cardinality":"*"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"CLASS_DEF","definition":{"$type":"RegexToken","regex":"/classDef\\\\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\\\\s+([^;\\\\r\\\\n]*))?(?:;)?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"}},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"}},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","}},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Section","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Leaf","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"Item","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"classSelector","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"Section","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[]},{"$type":"Interface","name":"Leaf","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}]},{"$type":"Interface","name":"ClassDefStatement","attributes":[{"$type":"TypeAttribute","name":"className","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"styleText","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"Treemap","attributes":[{"$type":"TypeAttribute","name":"TreemapRows","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@14"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"definesHiddenTokens":false,"hiddenTokens":[],"imports":[],"types":[],"usedGrammars":[],"$comment":"/**\\n * Treemap grammar for Langium\\n * Converted from mindmap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treemap declaration.\\n */"}`))),"TreemapGrammar");var ve={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:false,mode:"production"};var Ae={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:false,mode:"production"};var Re={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:false,mode:"production"};var Ee={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:false,mode:"production"};var $e={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:false,mode:"production"};var ke={languageId:"radar",fileExtensions:[".mmd",".mermaid"],caseInsensitive:false,mode:"production"};var xe={languageId:"treemap",fileExtensions:[".mmd",".mermaid"],caseInsensitive:false,mode:"production"};var we={AstReflection:g((()=>new re),"AstReflection")};var Ie={Grammar:g((()=>ae()),"Grammar"),LanguageMetaData:g((()=>ve),"LanguageMetaData"),parser:{}};var Ce={Grammar:g((()=>le()),"Grammar"),LanguageMetaData:g((()=>Ae),"LanguageMetaData"),parser:{}};var Se={Grammar:g((()=>ue()),"Grammar"),LanguageMetaData:g((()=>Re),"LanguageMetaData"),parser:{}};var Ne={Grammar:g((()=>de()),"Grammar"),LanguageMetaData:g((()=>Ee),"LanguageMetaData"),parser:{}};var Le={Grammar:g((()=>pe()),"Grammar"),LanguageMetaData:g((()=>$e),"LanguageMetaData"),parser:{}};var be={Grammar:g((()=>ge()),"Grammar"),LanguageMetaData:g((()=>ke),"LanguageMetaData"),parser:{}};var _e={Grammar:g((()=>Te()),"Grammar"),LanguageMetaData:g((()=>xe),"LanguageMetaData"),parser:{}};var Oe=/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/;var Pe=/accTitle[\t ]*:([^\n\r]*)/;var Me=/title([\t ][^\n\r]*|)/;var De={ACC_DESCR:Oe,ACC_TITLE:Pe,TITLE:Me};var Ue=class extends h.d{static{g(this,"AbstractMermaidValueConverter")}runConverter(e,t,n){let r=this.runCommonConverter(e,t,n);if(r===void 0){r=this.runCustomConverter(e,t,n)}if(r===void 0){return super.runConverter(e,t,n)}return r}runCommonConverter(e,t,n){const r=De[e.name];if(r===void 0){return void 0}const i=r.exec(t);if(i===null){return void 0}if(i[1]!==void 0){return i[1].trim().replace(/[\t ]{2,}/gm," ")}if(i[2]!==void 0){return i[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,"\n")}return void 0}};var Fe=class extends Ue{static{g(this,"CommonValueConverter")}runCustomConverter(e,t,n){return void 0}};var Ge=class extends p.Q{static{g(this,"AbstractMermaidTokenBuilder")}constructor(e){super();this.keywords=new Set(e)}buildKeywordTokens(e,t,n){const r=super.buildKeywordTokens(e,t,n);r.forEach((e=>{if(this.keywords.has(e.name)&&e.PATTERN!==void 0){e.PATTERN=new RegExp(e.PATTERN.toString()+"(?:(?=%%)|(?!\\S))")}}));return r}};var Ke=class extends Ge{static{g(this,"CommonTokenBuilder")}}},33308:(e,t,n)=>{"use strict";n.d(t,{d:()=>h});var r=n(11254);var i=n(6052);var s=n(41281);var a=n(37810);var o=class extends r.mR{static{(0,r.K2)(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}};var l=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/;var c=class extends r.dg{static{(0,r.K2)(this,"TreemapValueConverter")}runCustomConverter(e,t,n){if(e.name==="NUMBER2"){return parseFloat(t.replace(/,/g,""))}else if(e.name==="SEPARATOR"){return t.substring(1,t.length-1)}else if(e.name==="STRING2"){return t.substring(1,t.length-1)}else if(e.name==="INDENTATION"){return t.length}else if(e.name==="ClassDef"){if(typeof t!=="string"){return t}const e=l.exec(t);if(e){return{$type:"ClassDefStatement",className:e[1],styleText:e[2]||void 0}}}return void 0}};function u(e){const t=e.validation.TreemapValidator;const n=e.validation.ValidationRegistry;if(n){const e={Treemap:t.checkSingleRoot.bind(t)};n.register(e,t)}}(0,r.K2)(u,"registerValidationChecks");var f=class{static{(0,r.K2)(this,"TreemapValidator")}checkSingleRoot(e,t){let n;for(const r of e.TreemapRows){if(!r.item){continue}if(n===void 0&&r.indent===void 0){n=0}else if(r.indent===void 0){t("error","Multiple root nodes are not allowed in a treemap.",{node:r,property:"item"})}else if(n!==void 0&&n>=parseInt(r.indent,10)){t("error","Multiple root nodes are not allowed in a treemap.",{node:r,property:"item"})}}}};var d={parser:{TokenBuilder:(0,r.K2)((()=>new o),"TokenBuilder"),ValueConverter:(0,r.K2)((()=>new c),"ValueConverter")},validation:{TreemapValidator:(0,r.K2)((()=>new f),"TreemapValidator")}};function h(e=i.D){const t=(0,s.WQ)((0,a.u)(e),r.sr);const n=(0,s.WQ)((0,a.t)({shared:t}),r.eV,d);t.ServiceRegistry.register(n);u(n);return{shared:t,Treemap:n}}(0,r.K2)(h,"createTreemapServices")},78572:(e,t,n)=>{"use strict";n.d(t,{v:()=>c});var r=n(11254);var i=n(6052);var s=n(41281);var a=n(37810);var o=class extends r.mR{static{(0,r.K2)(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}};var l={parser:{TokenBuilder:(0,r.K2)((()=>new o),"TokenBuilder"),ValueConverter:(0,r.K2)((()=>new r.Tm),"ValueConverter")}};function c(e=i.D){const t=(0,s.WQ)((0,a.u)(e),r.sr);const n=(0,s.WQ)((0,a.t)({shared:t}),r.e5,l);t.ServiceRegistry.register(n);return{shared:t,Info:n}}(0,r.K2)(c,"createInfoServices")},24219:(e,t,n)=>{"use strict";n.d(t,{f:()=>c});var r=n(11254);var i=n(6052);var s=n(41281);var a=n(37810);var o=class extends r.mR{static{(0,r.K2)(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}};var l={parser:{TokenBuilder:(0,r.K2)((()=>new o),"TokenBuilder"),ValueConverter:(0,r.K2)((()=>new r.Tm),"ValueConverter")}};function c(e=i.D){const t=(0,s.WQ)((0,a.u)(e),r.sr);const n=(0,s.WQ)((0,a.t)({shared:t}),r.YP,l);t.ServiceRegistry.register(n);return{shared:t,Radar:n}}(0,r.K2)(c,"createRadarServices")},31109:(e,t,n)=>{"use strict";n.d(t,{S:()=>u});var r=n(11254);var i=n(6052);var s=n(41281);var a=n(37810);var o=class extends r.mR{static{(0,r.K2)(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}};var l=class extends r.dg{static{(0,r.K2)(this,"ArchitectureValueConverter")}runCustomConverter(e,t,n){if(e.name==="ARCH_ICON"){return t.replace(/[()]/g,"").trim()}else if(e.name==="ARCH_TEXT_ICON"){return t.replace(/["()]/g,"")}else if(e.name==="ARCH_TITLE"){return t.replace(/[[\]]/g,"").trim()}return void 0}};var c={parser:{TokenBuilder:(0,r.K2)((()=>new o),"TokenBuilder"),ValueConverter:(0,r.K2)((()=>new l),"ValueConverter")}};function u(e=i.D){const t=(0,s.WQ)((0,a.u)(e),r.sr);const n=(0,s.WQ)((0,a.t)({shared:t}),r.jE,c);t.ServiceRegistry.register(n);return{shared:t,Architecture:n}}(0,r.K2)(u,"createArchitectureServices")},51454:(e,t,n)=>{"use strict";n.d(t,{b:()=>c});var r=n(11254);var i=n(6052);var s=n(41281);var a=n(37810);var o=class extends r.mR{static{(0,r.K2)(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}};var l={parser:{TokenBuilder:(0,r.K2)((()=>new o),"TokenBuilder"),ValueConverter:(0,r.K2)((()=>new r.Tm),"ValueConverter")}};function c(e=i.D){const t=(0,s.WQ)((0,a.u)(e),r.sr);const n=(0,s.WQ)((0,a.t)({shared:t}),r.eZ,l);t.ServiceRegistry.register(n);return{shared:t,GitGraph:n}}(0,r.K2)(c,"createGitGraphServices")},66623:(e,t,n)=>{"use strict";n.d(t,{f:()=>u});var r=n(11254);var i=n(6052);var s=n(41281);var a=n(37810);var o=class extends r.mR{static{(0,r.K2)(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}};var l=class extends r.dg{static{(0,r.K2)(this,"PieValueConverter")}runCustomConverter(e,t,n){if(e.name!=="PIE_SECTION_LABEL"){return void 0}return t.replace(/"/g,"").trim()}};var c={parser:{TokenBuilder:(0,r.K2)((()=>new o),"TokenBuilder"),ValueConverter:(0,r.K2)((()=>new l),"ValueConverter")}};function u(e=i.D){const t=(0,s.WQ)((0,a.u)(e),r.sr);const n=(0,s.WQ)((0,a.t)({shared:t}),r.KX,c);t.ServiceRegistry.register(n);return{shared:t,Pie:n}}(0,r.K2)(u,"createPieServices")},24010:(e,t,n)=>{"use strict";n.d(t,{qg:()=>h});var r=n(51454);var i=n(78572);var s=n(81163);var a=n(66623);var o=n(31109);var l=n(24219);var c=n(33308);var u=n(11254);var f={};var d={info:(0,u.K2)((async()=>{const{createInfoServices:e}=await n.e(7865).then(n.bind(n,77865));const t=e().Info.parser.LangiumParser;f.info=t}),"info"),packet:(0,u.K2)((async()=>{const{createPacketServices:e}=await n.e(8614).then(n.bind(n,78614));const t=e().Packet.parser.LangiumParser;f.packet=t}),"packet"),pie:(0,u.K2)((async()=>{const{createPieServices:e}=await n.e(5664).then(n.bind(n,85664));const t=e().Pie.parser.LangiumParser;f.pie=t}),"pie"),architecture:(0,u.K2)((async()=>{const{createArchitectureServices:e}=await n.e(5454).then(n.bind(n,83073));const t=e().Architecture.parser.LangiumParser;f.architecture=t}),"architecture"),gitGraph:(0,u.K2)((async()=>{const{createGitGraphServices:e}=await n.e(5362).then(n.bind(n,55362));const t=e().GitGraph.parser.LangiumParser;f.gitGraph=t}),"gitGraph"),radar:(0,u.K2)((async()=>{const{createRadarServices:e}=await n.e(3669).then(n.bind(n,83669));const t=e().Radar.parser.LangiumParser;f.radar=t}),"radar"),treemap:(0,u.K2)((async()=>{const{createTreemapServices:e}=await n.e(8968).then(n.bind(n,18968));const t=e().Treemap.parser.LangiumParser;f.treemap=t}),"treemap")};async function h(e,t){const n=d[e];if(!n){throw new Error(`Unknown diagram type: ${e}`)}if(!f[e]){await n()}const r=f[e];const i=r.parse(t);if(i.lexerErrors.length>0||i.parserErrors.length>0){throw new p(i)}return i.value}(0,u.K2)(h,"parse");var p=class extends Error{constructor(e){const t=e.lexerErrors.map((e=>e.message)).join("\n");const n=e.parserErrors.map((e=>e.message)).join("\n");super(`Parsing failed: ${t} ${n}`);this.result=e}static{(0,u.K2)(this,"MermaidParseError")}}},50450:(e,t,n)=>{"use strict";n.d(t,{ak:()=>J,mT:()=>Ds,LT:()=>sr,jr:()=>Gs,T6:()=>Xi,JG:()=>Vn,wL:()=>W,c$:()=>Y,Y2:()=>Q,$P:()=>q,Cy:()=>X,Pp:()=>Z,BK:()=>ee,PW:()=>Kn,my:()=>lr,jk:()=>Fr,Sk:()=>Wn,G:()=>or});var r=n(69769);var i=n(44882);var s=n(74650);var a=n(8937);var o=n(2850);var l=n(97134);function c(e){function t(){}t.prototype=e;const n=new t;function r(){return typeof n.bar}r();r();if(true)return e;(0,eval)(e)}function u(e,t,n){var r=-1,i=e.length;if(t<0){t=-t>i?0:i+t}n=n>i?i:n;if(n<0){n+=i}i=t>n?0:n-t>>>0;t>>>=0;var s=Array(i);while(++r{t.accept(e)}))}}class W extends V{constructor(e){super([]);this.idx=1;x(this,L(e,(e=>e!==undefined)))}set definition(e){}get definition(){if(this.referencedRule!==undefined){return this.referencedRule.definition}return[]}accept(e){e.visit(this)}}class H extends V{constructor(e){super(e.definition);this.orgText="";x(this,L(e,(e=>e!==undefined)))}}class z extends V{constructor(e){super(e.definition);this.ignoreAmbiguities=false;x(this,L(e,(e=>e!==undefined)))}}class Y extends V{constructor(e){super(e.definition);this.idx=1;x(this,L(e,(e=>e!==undefined)))}}class q extends V{constructor(e){super(e.definition);this.idx=1;x(this,L(e,(e=>e!==undefined)))}}class X extends V{constructor(e){super(e.definition);this.idx=1;x(this,L(e,(e=>e!==undefined)))}}class Q extends V{constructor(e){super(e.definition);this.idx=1;x(this,L(e,(e=>e!==undefined)))}}class Z extends V{constructor(e){super(e.definition);this.idx=1;x(this,L(e,(e=>e!==undefined)))}}class J extends V{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition);this.idx=1;this.ignoreAmbiguities=false;this.hasPredicates=false;x(this,L(e,(e=>e!==undefined)))}}class ee{constructor(e){this.idx=1;x(this,L(e,(e=>e!==undefined)))}accept(e){e.visit(this)}}function te(e){return(0,a.A)(e,ne)}function ne(e){function t(e){return(0,a.A)(e,ne)}if(e instanceof W){const t={type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if((0,m.A)(e.label)){t.label=e.label}return t}else if(e instanceof z){return{type:"Alternative",definition:t(e.definition)}}else if(e instanceof Y){return{type:"Option",idx:e.idx,definition:t(e.definition)}}else if(e instanceof q){return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)}}else if(e instanceof X){return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:ne(new ee({terminalType:e.separator})),definition:t(e.definition)}}else if(e instanceof Z){return{type:"RepetitionWithSeparator",idx:e.idx,separator:ne(new ee({terminalType:e.separator})),definition:t(e.definition)}}else if(e instanceof Q){return{type:"Repetition",idx:e.idx,definition:t(e.definition)}}else if(e instanceof J){return{type:"Alternation",idx:e.idx,definition:t(e.definition)}}else if(e instanceof ee){const t={type:"Terminal",name:e.terminalType.name,label:B(e.terminalType),idx:e.idx};if((0,m.A)(e.label)){t.terminalLabel=e.label}const n=e.terminalType.PATTERN;if(e.terminalType.PATTERN){t.pattern=K(n)?n.source:n}return t}else if(e instanceof H){return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)}}else{throw Error("non exhaustive match")}}class re{visit(e){const t=e;switch(t.constructor){case W:return this.visitNonTerminal(t);case z:return this.visitAlternative(t);case Y:return this.visitOption(t);case q:return this.visitRepetitionMandatory(t);case X:return this.visitRepetitionMandatoryWithSeparator(t);case Z:return this.visitRepetitionWithSeparator(t);case Q:return this.visitRepetition(t);case J:return this.visitAlternation(t);case ee:return this.visitTerminal(t);case H:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}var ie=n(95345);var se=n(15912);function ae(e,t){var n;(0,se.A)(e,(function(e,r,i){n=t(e,r,i);return!n}));return!!n}const oe=ae;var le=n(39990);var ce=n(31943);function ue(e,t,n){var r=(0,le.A)(e)?ie.A:oe;if(n&&(0,ce.A)(e,t,n)){t=undefined}return r(e,(0,I.A)(t,3))}const fe=ue;var de=n(54949);var he=Math.max;function pe(e,t,n,r){e=(0,v.A)(e)?e:(0,i.A)(e);n=n&&!r?(0,d.A)(n):0;var s=e.length;if(n<0){n=he(s+n,0)}return(0,m.A)(e)?n<=s&&e.indexOf(t,n)>-1:!!s&&(0,de.A)(e,t,n)>-1}const me=pe;function ge(e,t){var n=-1,r=e==null?0:e.length;while(++n$e(e,t)))}else if(e instanceof W&&me(t,e)){return false}else if(e instanceof V){if(e instanceof W){t.push(e)}return Re(e.definition,(e=>$e(e,t)))}else{return false}}function ke(e){return e instanceof J}function xe(e){if(e instanceof W){return"SUBRULE"}else if(e instanceof Y){return"OPTION"}else if(e instanceof J){return"OR"}else if(e instanceof q){return"AT_LEAST_ONE"}else if(e instanceof X){return"AT_LEAST_ONE_SEP"}else if(e instanceof Z){return"MANY_SEP"}else if(e instanceof Q){return"MANY"}else if(e instanceof ee){return"CONSUME"}else{throw Error("non exhaustive match")}}class we{walk(e,t=[]){(0,r.A)(e.definition,((n,r)=>{const i=p(e.definition,r+1);if(n instanceof W){this.walkProdRef(n,i,t)}else if(n instanceof ee){this.walkTerminal(n,i,t)}else if(n instanceof z){this.walkFlat(n,i,t)}else if(n instanceof Y){this.walkOption(n,i,t)}else if(n instanceof q){this.walkAtLeastOne(n,i,t)}else if(n instanceof X){this.walkAtLeastOneSep(n,i,t)}else if(n instanceof Z){this.walkManySep(n,i,t)}else if(n instanceof Q){this.walkMany(n,i,t)}else if(n instanceof J){this.walkOr(n,i,t)}else{throw Error("non exhaustive match")}}))}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){const r=t.concat(n);this.walk(e,r)}walkOption(e,t,n){const r=t.concat(n);this.walk(e,r)}walkAtLeastOne(e,t,n){const r=[new Y({definition:e.definition})].concat(t,n);this.walk(e,r)}walkAtLeastOneSep(e,t,n){const r=Ie(e,t,n);this.walk(e,r)}walkMany(e,t,n){const r=[new Y({definition:e.definition})].concat(t,n);this.walk(e,r)}walkManySep(e,t,n){const r=Ie(e,t,n);this.walk(e,r)}walkOr(e,t,n){const i=t.concat(n);(0,r.A)(e.definition,(e=>{const t=new z({definition:[e]});this.walk(t,i)}))}}function Ie(e,t,n){const r=[new Y({definition:[new ee({terminalType:e.separator})].concat(e.definition)})];const i=r.concat(t,n);return i}var Ce=n(19363);function Se(e){return e&&e.length?(0,Ce.A)(e):[]}const Ne=Se;var Le=n(74033);function be(e){if(e instanceof W){return be(e.referencedRule)}else if(e instanceof ee){return Pe(e)}else if(Ee(e)){return _e(e)}else if(ke(e)){return Oe(e)}else{throw Error("non exhaustive match")}}function _e(e){let t=[];const n=e.definition;let r=0;let i=n.length>r;let s;let a=true;while(i&&a){s=n[r];a=$e(s);t=t.concat(be(s));r=r+1;i=n.length>r}return Ne(t)}function Oe(e){const t=(0,a.A)(e.definition,(e=>be(e)));return Ne((0,Le.A)(t))}function Pe(e){return[e.terminalType]}const Me="_~IN~_";class De extends we{constructor(e){super();this.topProd=e;this.follows={}}startWalking(){this.walk(this.topProd);return this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){const r=Fe(e.referencedRule,e.idx)+this.topProd.name;const i=t.concat(n);const s=new z({definition:i});const a=be(s);this.follows[r]=a}}function Ue(e){const t={};(0,r.A)(e,(e=>{const n=new De(e).startWalking();x(t,n)}));return t}function Fe(e,t){return e.name+t+Me}function Ge(e){const t=e.terminalType.name;return t+e.idx+IN}var Ke=n(89523);var Be=n(83173);var je=n(38693);var Ve=n(89191);var We=n(64725);var He="Expected a function";function ze(e){if(typeof e!="function"){throw new TypeError(He)}return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}const Ye=ze;function qe(e,t){var n=(0,le.A)(e)?Ve.A:We.A;return n(e,Ye((0,I.A)(t,3)))}const Xe=qe;var Qe=n(58807);var Ze=Math.max;function Je(e,t,n){var r=e==null?0:e.length;if(!r){return-1}var i=n==null?0:(0,d.A)(n);if(i<0){i=Ze(r+i,0)}return(0,de.A)(e,t,i)}const et=Je;var tt=n(65339);var nt=n(97133);var rt=n(63344);var it=n(43212);var st=n(7348);var at=n(4832);var ot=200;function lt(e,t,n,r){var i=-1,s=it.A,a=true,o=e.length,l=[],c=t.length;if(!o){return l}if(n){t=(0,w.A)(t,(0,D.A)(n))}if(r){s=st.A;a=false}else if(t.length>=ot){s=at.A;a=false;t=new rt.A(t)}e:while(++i\n`+"\tComplement Sets cannot be automatically optimized.\n"+"\tThis will disable the lexer's first char optimizations.\n"+"\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.")}}else{let n="";if(t){n="\n\tThis will disable the lexer's first char optimizations.\n"+"\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."}At(`${It}\n`+`\tFailed parsing: < ${e.toString()} >\n`+`\tUsing the @chevrotain/regexp-to-ast library\n`+"\tPlease open an issue at: https://github.com/chevrotain/chevrotain/issues"+n)}}return[]}function St(e,t,n){switch(e.type){case"Disjunction":for(let r=0;r{if(typeof e==="number"){Nt(e,t,n)}else{const r=e;if(n===true){for(let e=r.from;e<=r.to;e++){Nt(e,t,n)}}else{for(let e=r.from;e<=r.to&&e=Tn){const e=r.from>=Tn?r.from:Tn;const n=r.to;const i=An(e);const s=An(n);for(let r=i;r<=s;r++){t[r]=r}}}}}));break;case"Group":St(a.value,t,n);break;default:throw Error("Non Exhaustive Match")}const o=a.quantifier!==undefined&&a.quantifier.atLeast===0;if(a.type==="Group"&&_t(a)===false||a.type!=="Group"&&o===false){break}}break;default:throw Error("non exhaustive match!")}return(0,i.A)(t)}function Nt(e,t,n){const r=An(e);t[r]=r;if(n===true){Lt(e,t)}}function Lt(e,t){const n=String.fromCharCode(e);const r=n.toUpperCase();if(r!==n){const e=An(r.charCodeAt(0));t[e]=e}else{const e=n.toLowerCase();if(e!==n){const n=An(e.charCodeAt(0));t[n]=n}}}function bt(e,t){return(0,vt.A)(e.value,(e=>{if(typeof e==="number"){return me(t,e)}else{const n=e;return(0,vt.A)(t,(e=>n.from<=e&&e<=n.to))!==undefined}}))}function _t(e){const t=e.quantifier;if(t&&t.atLeast===0){return true}if(!e.value){return false}return(0,le.A)(e.value)?Re(e.value,_t):_t(e.value)}class Ot extends Be.z{constructor(e){super();this.targetCharCodes=e;this.found=false}visitChildren(e){if(this.found===true){return}switch(e.type){case"Lookahead":this.visitLookahead(e);return;case"NegativeLookahead":this.visitNegativeLookahead(e);return}super.visitChildren(e)}visitCharacter(e){if(me(this.targetCharCodes,e.value)){this.found=true}}visitSet(e){if(e.complement){if(bt(e,this.targetCharCodes)===undefined){this.found=true}}else{if(bt(e,this.targetCharCodes)!==undefined){this.found=true}}}}function Pt(e,t){if(t instanceof RegExp){const n=kt(t);const r=new Ot(e);r.visit(n);return r.found}else{return(0,vt.A)(t,(t=>me(e,t.charCodeAt(0))))!==undefined}}const Mt="PATTERN";const Dt="defaultMode";const Ut="modes";let Ft=typeof new RegExp("(?:)").sticky==="boolean";function Gt(){Ft=false}function Kt(){Ft=true}function Bt(e,t){t=(0,je.A)(t,{useSticky:Ft,debug:false,safeMode:false,positionTracking:"full",lineTerminatorCharacters:["\r","\n"],tracer:(e,t)=>t()});const n=t.tracer;n("initCharCodeToOptimizedIndexMap",(()=>{Rn()}));let i;n("Reject Lexer.NA",(()=>{i=Xe(e,(e=>e[Mt]===Vn.NA))}));let l=false;let c;n("Transform Patterns",(()=>{l=false;c=(0,a.A)(i,(e=>{const n=e[Mt];if(K(n)){const e=n.source;if(e.length===1&&e!=="^"&&e!=="$"&&e!=="."&&!n.ignoreCase){return e}else if(e.length===2&&e[0]==="\\"&&!me(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],e[1])){return e[1]}else{return t.useSticky?on(n):an(n)}}else if((0,Qe.A)(n)){l=true;return{exec:n}}else if(typeof n==="object"){l=true;return n}else if(typeof n==="string"){if(n.length===1){return n}else{const e=n.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&");const r=new RegExp(e);return t.useSticky?on(r):an(r)}}else{throw Error("non exhaustive match")}}))}));let u;let f;let d;let h;let p;n("misc mapping",(()=>{u=(0,a.A)(i,(e=>e.tokenTypeIdx));f=(0,a.A)(i,(e=>{const t=e.GROUP;if(t===Vn.SKIPPED){return undefined}else if((0,m.A)(t)){return t}else if((0,Ke.A)(t)){return false}else{throw Error("non exhaustive match")}}));d=(0,a.A)(i,(e=>{const t=e.LONGER_ALT;if(t){const e=(0,le.A)(t)?(0,a.A)(t,(e=>et(i,e))):[et(i,t)];return e}}));h=(0,a.A)(i,(e=>e.PUSH_MODE));p=(0,a.A)(i,(e=>(0,o.A)(e,"POP_MODE")))}));let g;n("Line Terminator Handling",(()=>{const e=gn(t.lineTerminatorCharacters);g=(0,a.A)(i,(e=>false));if(t.positionTracking!=="onlyOffset"){g=(0,a.A)(i,(t=>{if((0,o.A)(t,"LINE_BREAKS")){return!!t.LINE_BREAKS}else{return pn(t,e)===false&&Pt(e,t.PATTERN)}}))}}));let y;let T;let v;let A;n("Misc Mapping #2",(()=>{y=(0,a.A)(i,fn);T=(0,a.A)(c,dn);v=(0,tt.A)(i,((e,t)=>{const n=t.GROUP;if((0,m.A)(n)&&!(n===Vn.SKIPPED)){e[n]=[]}return e}),{});A=(0,a.A)(c,((e,t)=>({pattern:c[t],longerAlt:d[t],canLineTerminator:g[t],isCustom:y[t],short:T[t],group:f[t],push:h[t],pop:p[t],tokenTypeIdx:u[t],tokenType:i[t]})))}));let R=true;let E=[];if(!t.safeMode){n("First Char Optimization",(()=>{E=(0,tt.A)(i,((e,n,i)=>{if(typeof n.PATTERN==="string"){const t=n.PATTERN.charCodeAt(0);const r=An(t);yn(e,r,A[i])}else if((0,le.A)(n.START_CHARS_HINT)){let t;(0,r.A)(n.START_CHARS_HINT,(n=>{const r=typeof n==="string"?n.charCodeAt(0):n;const s=An(r);if(t!==s){t=s;yn(e,s,A[i])}}))}else if(K(n.PATTERN)){if(n.PATTERN.unicode){R=false;if(t.ensureOptimizations){At(`${It}`+`\tUnable to analyze < ${n.PATTERN.toString()} > pattern.\n`+"\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n"+"\tThis will disable the lexer's first char optimizations.\n"+"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE")}}else{const a=Ct(n.PATTERN,t.ensureOptimizations);if((0,s.A)(a)){R=false}(0,r.A)(a,(t=>{yn(e,t,A[i])}))}}else{if(t.ensureOptimizations){At(`${It}`+`\tTokenType: <${n.name}> is using a custom token pattern without providing parameter.\n`+"\tThis will disable the lexer's first char optimizations.\n"+"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE")}R=false}return e}),[])}))}return{emptyGroups:v,patternIdxToConfig:A,charCodeToPatternIdxToConfig:E,hasCustom:l,canBeOptimized:R}}function jt(e,t){let n=[];const r=Wt(e);n=n.concat(r.errors);const i=Ht(r.valid);const s=i.valid;n=n.concat(i.errors);n=n.concat(Vt(s));n=n.concat(en(s));n=n.concat(tn(s,t));n=n.concat(nn(s));return n}function Vt(e){let t=[];const n=(0,nt.A)(e,(e=>K(e[Mt])));t=t.concat(Yt(n));t=t.concat(Qt(n));t=t.concat(Zt(n));t=t.concat(Jt(n));t=t.concat(qt(n));return t}function Wt(e){const t=(0,nt.A)(e,(e=>!(0,o.A)(e,Mt)));const n=(0,a.A)(t,(e=>({message:"Token Type: ->"+e.name+"<- missing static 'PATTERN' property",type:Bn.MISSING_PATTERN,tokenTypes:[e]})));const r=pt(e,t);return{errors:n,valid:r}}function Ht(e){const t=(0,nt.A)(e,(e=>{const t=e[Mt];return!K(t)&&!(0,Qe.A)(t)&&!(0,o.A)(t,"exec")&&!(0,m.A)(t)}));const n=(0,a.A)(t,(e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' can only be a RegExp, a"+" Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:Bn.INVALID_PATTERN,tokenTypes:[e]})));const r=pt(e,t);return{errors:n,valid:r}}const zt=/[^\\][$]/;function Yt(e){class t extends Be.z{constructor(){super(...arguments);this.found=false}visitEndAnchor(e){this.found=true}}const n=(0,nt.A)(e,(e=>{const n=e.PATTERN;try{const e=kt(n);const r=new t;r.visit(e);return r.found}catch(r){return zt.test(n.source)}}));const r=(0,a.A)(n,(e=>({message:"Unexpected RegExp Anchor Error:\n"+"\tToken Type: ->"+e.name+"<- static 'PATTERN' cannot contain end of input anchor '$'\n"+"\tSee chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS"+"\tfor details.",type:Bn.EOI_ANCHOR_FOUND,tokenTypes:[e]})));return r}function qt(e){const t=(0,nt.A)(e,(e=>{const t=e.PATTERN;return t.test("")}));const n=(0,a.A)(t,(e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' must not match an empty string",type:Bn.EMPTY_MATCH_PATTERN,tokenTypes:[e]})));return n}const Xt=/[^\\[][\^]|^\^/;function Qt(e){class t extends Be.z{constructor(){super(...arguments);this.found=false}visitStartAnchor(e){this.found=true}}const n=(0,nt.A)(e,(e=>{const n=e.PATTERN;try{const e=kt(n);const r=new t;r.visit(e);return r.found}catch(r){return Xt.test(n.source)}}));const r=(0,a.A)(n,(e=>({message:"Unexpected RegExp Anchor Error:\n"+"\tToken Type: ->"+e.name+"<- static 'PATTERN' cannot contain start of input anchor '^'\n"+"\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS"+"\tfor details.",type:Bn.SOI_ANCHOR_FOUND,tokenTypes:[e]})));return r}function Zt(e){const t=(0,nt.A)(e,(e=>{const t=e[Mt];return t instanceof RegExp&&(t.multiline||t.global)}));const n=(0,a.A)(t,(e=>({message:"Token Type: ->"+e.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:Bn.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[e]})));return n}function Jt(e){const t=[];let n=(0,a.A)(e,(n=>(0,tt.A)(e,((e,r)=>{if(n.PATTERN.source===r.PATTERN.source&&!me(t,r)&&r.PATTERN!==Vn.NA){t.push(r);e.push(r);return e}return e}),[])));n=gt(n);const r=(0,nt.A)(n,(e=>e.length>1));const i=(0,a.A)(r,(e=>{const t=(0,a.A)(e,(e=>e.name));const n=Tt(e).PATTERN;return{message:`The same RegExp pattern ->${n}<-`+`has been used in all of the following Token Types: ${t.join(", ")} <-`,type:Bn.DUPLICATE_PATTERNS_FOUND,tokenTypes:e}}));return i}function en(e){const t=(0,nt.A)(e,(e=>{if(!(0,o.A)(e,"GROUP")){return false}const t=e.GROUP;return t!==Vn.SKIPPED&&t!==Vn.NA&&!(0,m.A)(t)}));const n=(0,a.A)(t,(e=>({message:"Token Type: ->"+e.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:Bn.INVALID_GROUP_TYPE_FOUND,tokenTypes:[e]})));return n}function tn(e,t){const n=(0,nt.A)(e,(e=>e.PUSH_MODE!==undefined&&!me(t,e.PUSH_MODE)));const r=(0,a.A)(n,(e=>{const t=`Token Type: ->${e.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${e.PUSH_MODE}<-`+`which does not exist`;return{message:t,type:Bn.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[e]}}));return r}function nn(e){const t=[];const n=(0,tt.A)(e,((e,t,n)=>{const r=t.PATTERN;if(r===Vn.NA){return e}if((0,m.A)(r)){e.push({str:r,idx:n,tokenType:t})}else if(K(r)&&sn(r)){e.push({str:r.source,idx:n,tokenType:t})}return e}),[]);(0,r.A)(e,((e,i)=>{(0,r.A)(n,(({str:n,idx:r,tokenType:s})=>{if(i${s.name}<- can never be matched.\n`+`Because it appears AFTER the Token Type ->${e.name}<-`+`in the lexer's definition.\n`+`See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:n,type:Bn.UNREACHABLE_PATTERN,tokenTypes:[e,s]})}}))}));return t}function rn(e,t){if(K(t)){const n=t.exec(e);return n!==null&&n.index===0}else if((0,Qe.A)(t)){return t(e,0,[],{})}else if((0,o.A)(t,"exec")){return t.exec(e,0,[],{})}else if(typeof t==="string"){return t===e}else{throw Error("non exhaustive match")}}function sn(e){const t=[".","\\","[","]","|","^","$","(",")","?","*","+","{"];return(0,vt.A)(t,(t=>e.source.indexOf(t)!==-1))===undefined}function an(e){const t=e.ignoreCase?"i":"";return new RegExp(`^(?:${e.source})`,t)}function on(e){const t=e.ignoreCase?"iy":"y";return new RegExp(`${e.source}`,t)}function ln(e,t,n){const i=[];if(!(0,o.A)(e,Dt)){i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Dt+"> property in its definition\n",type:Bn.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE})}if(!(0,o.A)(e,Ut)){i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Ut+"> property in its definition\n",type:Bn.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY})}if((0,o.A)(e,Ut)&&(0,o.A)(e,Dt)&&!(0,o.A)(e.modes,e.defaultMode)){i.push({message:`A MultiMode Lexer cannot be initialized with a ${Dt}: <${e.defaultMode}>`+`which does not exist\n`,type:Bn.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST})}if((0,o.A)(e,Ut)){(0,r.A)(e.modes,((e,t)=>{(0,r.A)(e,((n,s)=>{if((0,Ke.A)(n)){i.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:`+`<${t}> at index: <${s}>\n`,type:Bn.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})}else if((0,o.A)(n,"LONGER_ALT")){const s=(0,le.A)(n.LONGER_ALT)?n.LONGER_ALT:[n.LONGER_ALT];(0,r.A)(s,(r=>{if(!(0,Ke.A)(r)&&!me(e,r)){i.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${r.name}> on token <${n.name}> outside of mode <${t}>\n`,type:Bn.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})}}))}}))}))}return i}function cn(e,t,n){const s=[];let a=false;const l=gt((0,Le.A)((0,i.A)(e.modes)));const c=Xe(l,(e=>e[Mt]===Vn.NA));const u=gn(n);if(t){(0,r.A)(c,(e=>{const t=pn(e,u);if(t!==false){const n=mn(e,t);const r={message:n,type:t.issue,tokenType:e};s.push(r)}else{if((0,o.A)(e,"LINE_BREAKS")){if(e.LINE_BREAKS===true){a=true}}else{if(Pt(u,e.PATTERN)){a=true}}}}))}if(t&&!a){s.push({message:"Warning: No LINE_BREAKS Found.\n"+"\tThis Lexer has been defined to track line and column information,\n"+"\tBut none of the Token Types can be identified as matching a line terminator.\n"+"\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n"+"\tfor details.",type:Bn.NO_LINE_BREAKS_FLAGS})}return s}function un(e){const t={};const n=(0,R.A)(e);(0,r.A)(n,(n=>{const r=e[n];if((0,le.A)(r)){t[n]=[]}else{throw Error("non exhaustive match")}}));return t}function fn(e){const t=e.PATTERN;if(K(t)){return false}else if((0,Qe.A)(t)){return true}else if((0,o.A)(t,"exec")){return true}else if((0,m.A)(t)){return false}else{throw Error("non exhaustive match")}}function dn(e){if((0,m.A)(e)&&e.length===1){return e.charCodeAt(0)}else{return false}}const hn={test:function(e){const t=e.length;for(let n=this.lastIndex;n Token Type\n`+`\t Root cause: ${t.errMsg}.\n`+"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR"}else if(t.issue===Bn.CUSTOM_LINE_BREAK){return"Warning: A Custom Token Pattern should specify the option.\n"+`\tThe problem is in the <${e.name}> Token Type\n`+"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK"}else{throw Error("non exhaustive match")}}function gn(e){const t=(0,a.A)(e,(e=>{if((0,m.A)(e)){return e.charCodeAt(0)}else{return e}}));return t}function yn(e,t,n){if(e[t]===undefined){e[t]=[n]}else{e[t].push(n)}}const Tn=256;let vn=[];function An(e){return e255?255+~~(e/255):e}}}var En=n(63077);var $n=n(42111);var kn=n(80359);function xn(e){const t=(new Date).getTime();const n=e();const r=(new Date).getTime();const i=r-t;return{time:i,value:n}}function wn(e,t){const n=e.tokenTypeIdx;if(n===t.tokenTypeIdx){return true}else{return t.isParent===true&&t.categoryMatchesMap[n]===true}}function In(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}let Cn=1;const Sn={};function Nn(e){const t=Ln(e);bn(t);On(t);_n(t);(0,r.A)(t,(e=>{e.isParent=e.categoryMatches.length>0}))}function Ln(e){let t=(0,l.A)(e);let n=e;let r=true;while(r){n=gt((0,Le.A)((0,a.A)(n,(e=>e.CATEGORIES))));const e=pt(n,t);t=t.concat(e);if((0,s.A)(e)){r=false}else{n=e}}return t}function bn(e){(0,r.A)(e,(e=>{if(!Mn(e)){Sn[Cn]=e;e.tokenTypeIdx=Cn++}if(Dn(e)&&!(0,le.A)(e.CATEGORIES)){e.CATEGORIES=[e.CATEGORIES]}if(!Dn(e)){e.CATEGORIES=[]}if(!Un(e)){e.categoryMatches=[]}if(!Fn(e)){e.categoryMatchesMap={}}}))}function _n(e){(0,r.A)(e,(e=>{e.categoryMatches=[];(0,r.A)(e.categoryMatchesMap,((t,n)=>{e.categoryMatches.push(Sn[n].tokenTypeIdx)}))}))}function On(e){(0,r.A)(e,(e=>{Pn([],e)}))}function Pn(e,t){(0,r.A)(e,(e=>{t.categoryMatchesMap[e.tokenTypeIdx]=true}));(0,r.A)(t.CATEGORIES,(n=>{const r=e.concat(t);if(!me(r,n)){Pn(r,n)}}))}function Mn(e){return(0,o.A)(e,"tokenTypeIdx")}function Dn(e){return(0,o.A)(e,"CATEGORIES")}function Un(e){return(0,o.A)(e,"categoryMatches")}function Fn(e){return(0,o.A)(e,"categoryMatchesMap")}function Gn(e){return(0,o.A)(e,"tokenTypeIdx")}const Kn={buildUnableToPopLexerModeMessage(e){return`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,t,n,r,i){return`unexpected character: ->${e.charAt(t)}<- at offset: ${t},`+` skipped ${n} characters.`}};var Bn;(function(e){e[e["MISSING_PATTERN"]=0]="MISSING_PATTERN";e[e["INVALID_PATTERN"]=1]="INVALID_PATTERN";e[e["EOI_ANCHOR_FOUND"]=2]="EOI_ANCHOR_FOUND";e[e["UNSUPPORTED_FLAGS_FOUND"]=3]="UNSUPPORTED_FLAGS_FOUND";e[e["DUPLICATE_PATTERNS_FOUND"]=4]="DUPLICATE_PATTERNS_FOUND";e[e["INVALID_GROUP_TYPE_FOUND"]=5]="INVALID_GROUP_TYPE_FOUND";e[e["PUSH_MODE_DOES_NOT_EXIST"]=6]="PUSH_MODE_DOES_NOT_EXIST";e[e["MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE"]=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE";e[e["MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY"]=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY";e[e["MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST"]=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST";e[e["LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED"]=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED";e[e["SOI_ANCHOR_FOUND"]=11]="SOI_ANCHOR_FOUND";e[e["EMPTY_MATCH_PATTERN"]=12]="EMPTY_MATCH_PATTERN";e[e["NO_LINE_BREAKS_FLAGS"]=13]="NO_LINE_BREAKS_FLAGS";e[e["UNREACHABLE_PATTERN"]=14]="UNREACHABLE_PATTERN";e[e["IDENTIFY_TERMINATOR"]=15]="IDENTIFY_TERMINATOR";e[e["CUSTOM_LINE_BREAK"]=16]="CUSTOM_LINE_BREAK";e[e["MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"]=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(Bn||(Bn={}));const jn={deferDefinitionErrorsHandling:false,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:["\n","\r"],ensureOptimizations:false,safeMode:false,errorMessageProvider:Kn,traceInitPerf:false,skipValidations:false,recoveryEnabled:true};Object.freeze(jn);class Vn{constructor(e,t=jn){this.lexerDefinition=e;this.lexerDefinitionErrors=[];this.lexerDefinitionWarning=[];this.patternIdxToConfig={};this.charCodeToPatternIdxToConfig={};this.modes=[];this.emptyGroups={};this.trackStartLines=true;this.trackEndLines=true;this.hasCustom=false;this.canModeBeOptimized={};this.TRACE_INIT=(e,t)=>{if(this.traceInitPerf===true){this.traceInitIndent++;const n=new Array(this.traceInitIndent+1).join("\t");if(this.traceInitIndent`)}const{time:r,value:i}=xn(t);const s=r>10?console.warn:console.log;if(this.traceInitIndent time: ${r}ms`)}this.traceInitIndent--;return i}else{return t()}};if(typeof t==="boolean"){throw Error("The second argument to the Lexer constructor is now an ILexerConfig Object.\n"+"a boolean 2nd argument is no longer supported")}this.config=x({},jn,t);const n=this.config.traceInitPerf;if(n===true){this.traceInitMaxIdent=Infinity;this.traceInitPerf=true}else if(typeof n==="number"){this.traceInitMaxIdent=n;this.traceInitPerf=true}this.traceInitIndent=-1;this.TRACE_INIT("Lexer Constructor",(()=>{let n;let i=true;this.TRACE_INIT("Lexer Config handling",(()=>{if(this.config.lineTerminatorsPattern===jn.lineTerminatorsPattern){this.config.lineTerminatorsPattern=hn}else{if(this.config.lineTerminatorCharacters===jn.lineTerminatorCharacters){throw Error("Error: Missing property on the Lexer config.\n"+"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS")}}if(t.safeMode&&t.ensureOptimizations){throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.')}this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking);this.trackEndLines=/full/i.test(this.config.positionTracking);if((0,le.A)(e)){n={modes:{defaultMode:(0,l.A)(e)},defaultMode:Dt}}else{i=false;n=(0,l.A)(e)}}));if(this.config.skipValidations===false){this.TRACE_INIT("performRuntimeChecks",(()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(ln(n,this.trackStartLines,this.config.lineTerminatorCharacters))}));this.TRACE_INIT("performWarningRuntimeChecks",(()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(cn(n,this.trackStartLines,this.config.lineTerminatorCharacters))}))}n.modes=n.modes?n.modes:{};(0,r.A)(n.modes,((e,t)=>{n.modes[t]=Xe(e,(e=>(0,Ke.A)(e)))}));const o=(0,R.A)(n.modes);(0,r.A)(n.modes,((e,n)=>{this.TRACE_INIT(`Mode: <${n}> processing`,(()=>{this.modes.push(n);if(this.config.skipValidations===false){this.TRACE_INIT(`validatePatterns`,(()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(jt(e,o))}))}if((0,s.A)(this.lexerDefinitionErrors)){Nn(e);let r;this.TRACE_INIT(`analyzeTokenTypes`,(()=>{r=Bt(e,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:t.positionTracking,ensureOptimizations:t.ensureOptimizations,safeMode:t.safeMode,tracer:this.TRACE_INIT})}));this.patternIdxToConfig[n]=r.patternIdxToConfig;this.charCodeToPatternIdxToConfig[n]=r.charCodeToPatternIdxToConfig;this.emptyGroups=x({},this.emptyGroups,r.emptyGroups);this.hasCustom=r.hasCustom||this.hasCustom;this.canModeBeOptimized[n]=r.canBeOptimized}}))}));this.defaultMode=n.defaultMode;if(!(0,s.A)(this.lexerDefinitionErrors)&&!this.config.deferDefinitionErrorsHandling){const e=(0,a.A)(this.lexerDefinitionErrors,(e=>e.message));const t=e.join("-----------------------\n");throw new Error("Errors detected in definition of Lexer:\n"+t)}(0,r.A)(this.lexerDefinitionWarning,(e=>{Rt(e.message)}));this.TRACE_INIT("Choosing sub-methods implementations",(()=>{if(Ft){this.chopInput=En.A;this.match=this.matchWithTest}else{this.updateLastIndex=$n.A;this.match=this.matchWithExec}if(i){this.handleModes=$n.A}if(this.trackStartLines===false){this.computeNewColumn=En.A}if(this.trackEndLines===false){this.updateTokenEndLineColumnLocation=$n.A}if(/full/i.test(this.config.positionTracking)){this.createTokenInstance=this.createFullToken}else if(/onlyStart/i.test(this.config.positionTracking)){this.createTokenInstance=this.createStartOnlyToken}else if(/onlyOffset/i.test(this.config.positionTracking)){this.createTokenInstance=this.createOffsetOnlyToken}else{throw Error(`Invalid config option: "${this.config.positionTracking}"`)}if(this.hasCustom){this.addToken=this.addTokenUsingPush;this.handlePayload=this.handlePayloadWithCustom}else{this.addToken=this.addTokenUsingMemberAccess;this.handlePayload=this.handlePayloadNoCustom}}));this.TRACE_INIT("Failed Optimization Warnings",(()=>{const e=(0,tt.A)(this.canModeBeOptimized,((e,t,n)=>{if(t===false){e.push(n)}return e}),[]);if(t.ensureOptimizations&&!(0,s.A)(e)){throw Error(`Lexer Modes: < ${e.join(", ")} > cannot be optimized.\n`+'\t Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.\n'+"\t Or inspect the console log for details on how to resolve these issues.")}}));this.TRACE_INIT("clearRegExpParserCache",(()=>{xt()}));this.TRACE_INIT("toFastProperties",(()=>{c(this)}))}))}tokenize(e,t=this.defaultMode){if(!(0,s.A)(this.lexerDefinitionErrors)){const e=(0,a.A)(this.lexerDefinitionErrors,(e=>e.message));const t=e.join("-----------------------\n");throw new Error("Unable to Tokenize because Errors detected in definition of Lexer:\n"+t)}return this.tokenizeInternal(e,t)}tokenizeInternal(e,t){let n,r,i,s,a,o,l,c,u,f,d,h,p,m,g,y;const T=e;const v=T.length;let A=0;let R=0;const E=this.hasCustom?0:Math.floor(e.length/10);const $=new Array(E);const k=[];let x=this.trackStartLines?1:undefined;let w=this.trackStartLines?1:undefined;const I=un(this.emptyGroups);const C=this.trackStartLines;const S=this.config.lineTerminatorsPattern;let N=0;let L=[];let b=[];const _=[];const O=[];Object.freeze(O);let P;function M(){return L}function D(e){const t=An(e);const n=b[t];if(n===undefined){return O}else{return n}}const U=e=>{if(_.length===1&&e.tokenType.PUSH_MODE===undefined){const t=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(e);k.push({offset:e.startOffset,line:e.startLine,column:e.startColumn,length:e.image.length,message:t})}else{_.pop();const e=(0,kn.A)(_);L=this.patternIdxToConfig[e];b=this.charCodeToPatternIdxToConfig[e];N=L.length;const t=this.canModeBeOptimized[e]&&this.config.safeMode===false;if(b&&t){P=D}else{P=M}}};function F(e){_.push(e);b=this.charCodeToPatternIdxToConfig[e];L=this.patternIdxToConfig[e];N=L.length;N=L.length;const t=this.canModeBeOptimized[e]&&this.config.safeMode===false;if(b&&t){P=D}else{P=M}}F.call(this,t);let G;const K=this.config.recoveryEnabled;while(Ao.length){o=s;l=c;G=t;break}}}break}}if(o!==null){u=o.length;f=G.group;if(f!==undefined){d=G.tokenTypeIdx;h=this.createTokenInstance(o,A,d,G.tokenType,x,w,u);this.handlePayload(h,l);if(f===false){R=this.addToken($,R,h)}else{I[f].push(h)}}e=this.chopInput(e,u);A=A+u;w=this.computeNewColumn(w,u);if(C===true&&G.canLineTerminator===true){let e=0;let t;let n;S.lastIndex=0;do{t=S.test(o);if(t===true){n=S.lastIndex-1;e++}}while(t===true);if(e!==0){x=x+e;w=u-n;this.updateTokenEndLineColumnLocation(h,f,n,e,x,w,u)}}this.handleModes(G,U,F,h)}else{const t=A;const n=x;const i=w;let s=K===false;while(s===false&&Ae.concat(t)),[]);const n=(0,a.A)(t,(e=>`[${(0,a.A)(e,(e=>Wn(e))).join(", ")}]`));const r=(0,a.A)(n,((e,t)=>` ${t+1}. ${e}`));const i=`one of these possible Token sequences:\n${r.join("\n")}`;return s+i+l}},buildEarlyExitMessage({expectedIterationPaths:e,actual:t,customUserDescription:n,ruleName:r}){const i="Expecting: ";const s=Tt(t).image;const o="\nbut found: '"+s+"'";if(n){return i+n+o}else{const t=(0,a.A)(e,(e=>`[${(0,a.A)(e,(e=>Wn(e))).join(",")}]`));const n=`expecting at least one iteration which starts with one of these possible Token sequences::\n `+`<${t.join(" ,")}>`;return i+n+o}}};Object.freeze(lr);const cr={buildRuleNotFoundError(e,t){const n="Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+"<-\n"+"inside top level rule: ->"+e.name+"<-";return n}};const ur={buildDuplicateFoundError(e,t){function n(e){if(e instanceof ee){return e.terminalType.name}else if(e instanceof W){return e.nonTerminalName}else{return""}}const r=e.name;const i=Tt(t);const s=i.idx;const a=xe(i);const o=n(i);const l=s>0;let c=`->${a}${l?s:""}<- ${o?`with argument: ->${o}<-`:""}\n appears more than once (${t.length} times) in the top level rule: ->${r}<-. \n For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES \n `;c=c.replace(/[ \t]+/g," ");c=c.replace(/\s\s+/g,"\n");return c},buildNamespaceConflictError(e){const t=`Namespace conflict found in grammar.\n`+`The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>.\n`+`To resolve this make sure each Terminal and Non-Terminal names are unique\n`+`This is easy to accomplish by using the convention that Terminal names start with an uppercase letter\n`+`and Non-Terminal names start with a lower case letter.`;return t},buildAlternationPrefixAmbiguityError(e){const t=(0,a.A)(e.prefixPath,(e=>Wn(e))).join(", ");const n=e.alternation.idx===0?"":e.alternation.idx;const r=`Ambiguous alternatives: <${e.ambiguityIndices.join(" ,")}> due to common lookahead prefix\n`+`in inside <${e.topLevelRule.name}> Rule,\n`+`<${t}> may appears as a prefix path in all these alternatives.\n`+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\n`+`For Further details.`;return r},buildAlternationAmbiguityError(e){const t=(0,a.A)(e.prefixPath,(e=>Wn(e))).join(", ");const n=e.alternation.idx===0?"":e.alternation.idx;let r=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(" ,")}> in `+` inside <${e.topLevelRule.name}> Rule,\n`+`<${t}> may appears as a prefix path in all these alternatives.\n`;r=r+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\n`+`For Further details.`;return r},buildEmptyRepetitionError(e){let t=xe(e.repetition);if(e.repetition.idx!==0){t+=e.repetition.idx}const n=`The repetition <${t}> within Rule <${e.topLevelRule.name}> can never consume any tokens.\n`+`This could lead to an infinite loop.`;return n},buildTokenNameError(e){return"deprecated"},buildEmptyAlternationError(e){const t=`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}>`+` in inside <${e.topLevelRule.name}> Rule.\n`+`Only the last alternative may be an empty alternative.`;return t},buildTooManyAlternativesError(e){const t=`An Alternation cannot have more than 256 alternatives:\n`+` inside <${e.topLevelRule.name}> Rule.\n has ${e.alternation.definition.length+1} alternatives.`;return t},buildLeftRecursionError(e){const t=e.topLevelRule.name;const n=(0,a.A)(e.leftRecursionPath,(e=>e.name));const r=`${t} --\x3e ${n.concat([t]).join(" --\x3e ")}`;const i=`Left Recursion found in grammar.\n`+`rule: <${t}> can be invoked from itself (directly or indirectly)\n`+`without consuming any Tokens. The grammar path that causes this is: \n ${r}\n`+` To fix this refactor your grammar to remove the left recursion.\n`+`see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`;return i},buildInvalidRuleNameError(e){return"deprecated"},buildDuplicateRuleNameError(e){let t;if(e.topLevelRule instanceof H){t=e.topLevelRule.name}else{t=e.topLevelRule}const n=`Duplicate definition, rule: ->${t}<- is already defined in the grammar: ->${e.grammarName}<-`;return n}};function fr(e,t){const n=new dr(e,t);n.resolveRefs();return n.errors}class dr extends re{constructor(e,t){super();this.nameToTopRule=e;this.errMsgProvider=t;this.errors=[]}resolveRefs(){(0,r.A)((0,i.A)(this.nameToTopRule),(e=>{this.currTopLevel=e;e.accept(this)}))}visitNonTerminal(e){const t=this.nameToTopRule[e.nonTerminalName];if(!t){const t=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:t,type:Ms.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}else{e.referencedRule=t}}}var hr=n(57852);var pr=n(48657);function mr(e,t,n,r){var i=-1,s=e==null?0:e.length;while(++i{if((0,s.A)(e.definition)===false){i=c(e.definition)}}));return i}else if(t instanceof ee){n.push(t.terminalType)}else{throw Error("non exhaustive match")}a++}i.push({partialPath:n,suffixDef:p(e,a)});return i}function Pr(e,t,n,r){const i="EXIT_NONE_TERMINAL";const a=[i];const o="EXIT_ALTERNATIVE";let c=false;const u=t.length;const f=u-r-1;const d=[];const h=[];h.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});while(!(0,s.A)(h)){const e=h.pop();if(e===o){if(c&&(0,kn.A)(h).idx<=f){h.pop()}continue}const r=e.def;const m=e.idx;const g=e.ruleStack;const y=e.occurrenceStack;if((0,s.A)(r)){continue}const T=r[0];if(T===i){const e={idx:m,def:p(r),ruleStack:wr(g),occurrenceStack:wr(y)};h.push(e)}else if(T instanceof ee){if(m=0;e--){const t=T.definition[e];const n={idx:m,def:t.definition.concat(p(r)),ruleStack:g,occurrenceStack:y};h.push(n);h.push(o)}}else if(T instanceof z){h.push({idx:m,def:T.definition.concat(p(r)),ruleStack:g,occurrenceStack:y})}else if(T instanceof H){h.push(Mr(T,m,g,y))}else{throw Error("non exhaustive match")}}return d}function Mr(e,t,n,r){const i=(0,l.A)(n);i.push(e.name);const s=(0,l.A)(r);s.push(1);return{idx:t,def:e.definition,ruleStack:i,occurrenceStack:s}}var Dr;(function(e){e[e["OPTION"]=0]="OPTION";e[e["REPETITION"]=1]="REPETITION";e[e["REPETITION_MANDATORY"]=2]="REPETITION_MANDATORY";e[e["REPETITION_MANDATORY_WITH_SEPARATOR"]=3]="REPETITION_MANDATORY_WITH_SEPARATOR";e[e["REPETITION_WITH_SEPARATOR"]=4]="REPETITION_WITH_SEPARATOR";e[e["ALTERNATION"]=5]="ALTERNATION"})(Dr||(Dr={}));function Ur(e){if(e instanceof Y||e==="Option"){return Dr.OPTION}else if(e instanceof Q||e==="Repetition"){return Dr.REPETITION}else if(e instanceof q||e==="RepetitionMandatory"){return Dr.REPETITION_MANDATORY}else if(e instanceof X||e==="RepetitionMandatoryWithSeparator"){return Dr.REPETITION_MANDATORY_WITH_SEPARATOR}else if(e instanceof Z||e==="RepetitionWithSeparator"){return Dr.REPETITION_WITH_SEPARATOR}else if(e instanceof J||e==="Alternation"){return Dr.ALTERNATION}else{throw Error("non exhaustive match")}}function Fr(e){const{occurrence:t,rule:n,prodType:r,maxLookahead:i}=e;const s=Ur(r);if(s===Dr.ALTERNATION){return Xr(t,n,i)}else{return Qr(t,n,s,i)}}function Gr(e,t,n,r,i,s){const a=Xr(e,t,n);const o=ei(a)?In:wn;return s(a,r,o,i)}function Kr(e,t,n,r,i,s){const a=Qr(e,t,i,n);const o=ei(a)?In:wn;return s(a[0],o,r)}function Br(e,t,n,i){const s=e.length;const l=Re(e,(e=>Re(e,(e=>e.length===1))));if(t){return function(t){const r=(0,a.A)(t,(e=>e.GATE));for(let i=0;i(0,Le.A)(e)));const n=(0,tt.A)(t,((e,t,n)=>{(0,r.A)(t,(t=>{if(!(0,o.A)(e,t.tokenTypeIdx)){e[t.tokenTypeIdx]=n}(0,r.A)(t.categoryMatches,(t=>{if(!(0,o.A)(e,t)){e[t]=n}}))}));return e}),{});return function(){const e=this.LA(1);return n[e.tokenTypeIdx]}}else{return function(){for(let t=0;te.length===1));const a=e.length;if(i&&!n){const t=(0,Le.A)(e);if(t.length===1&&(0,s.A)(t[0].categoryMatches)){const e=t[0];const n=e.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===n}}else{const e=(0,tt.A)(t,((e,t,n)=>{e[t.tokenTypeIdx]=true;(0,r.A)(t.categoryMatches,(t=>{e[t]=true}));return e}),[]);return function(){const t=this.LA(1);return e[t.tokenTypeIdx]===true}}}else{return function(){e:for(let n=0;nOr([e],1)));const i=Hr(n.length);const o=(0,a.A)(n,(e=>{const t={};(0,r.A)(e,(e=>{const n=zr(e.partialPath);(0,r.A)(n,(e=>{t[e]=true}))}));return t}));let l=n;for(let a=1;a<=t;a++){const e=l;l=Hr(e.length);for(let n=0;n{const t=zr(e.partialPath);(0,r.A)(t,(e=>{o[n][e]=true}))}))}}}}return i}function Xr(e,t,n,r){const i=new Wr(e,Dr.ALTERNATION,r);t.accept(i);return qr(i.result,n)}function Qr(e,t,n,r){const i=new Wr(e,n);t.accept(i);const s=i.result;const a=new Vr(t,e,n);const o=a.startWalking();const l=new z({definition:s});const c=new z({definition:o});return qr([l,c],r)}function Zr(e,t){e:for(let n=0;n{const r=t[n];return e===r||r.categoryMatchesMap[e.tokenTypeIdx]}))}function ei(e){return Re(e,(e=>Re(e,(e=>Re(e,(e=>(0,s.A)(e.categoryMatches)))))))}function ti(e){const t=e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName});return(0,a.A)(t,(e=>Object.assign({type:Ms.CUSTOM_LOOKAHEAD_VALIDATION},e)))}function ni(e,t,n,r){const i=(0,hr.A)(e,(e=>ri(e,n)));const s=vi(e,t,n);const a=(0,hr.A)(e,(e=>mi(e,n)));const o=(0,hr.A)(e,(t=>oi(t,e,r,n)));return i.concat(s,a,o)}function ri(e,t){const n=new ai;e.accept(n);const r=n.allProductions;const s=kr(r,ii);const o=L(s,(e=>e.length>1));const l=(0,a.A)((0,i.A)(o),(n=>{const r=Tt(n);const i=t.buildDuplicateFoundError(e,n);const s=xe(r);const a={message:i,type:Ms.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:s,occurrence:r.idx};const o=si(r);if(o){a.parameter=o}return a}));return l}function ii(e){return`${xe(e)}_#_${e.idx}_#_${si(e)}`}function si(e){if(e instanceof ee){return e.terminalType.name}else if(e instanceof W){return e.nonTerminalName}else{return""}}class ai extends re{constructor(){super(...arguments);this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}}function oi(e,t,n,r){const i=[];const s=(0,tt.A)(t,((t,n)=>{if(n.name===e.name){return t+1}return t}),0);if(s>1){const t=r.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});i.push({message:t,type:Ms.DUPLICATE_RULE_NAME,ruleName:e.name})}return i}function li(e,t,n){const r=[];let i;if(!me(t,e)){i=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${n}<-`+`as it is not defined in any of the super grammars `;r.push({message:i,type:Ms.INVALID_RULE_OVERRIDE,ruleName:e})}return r}function ci(e,t,n,r=[]){const i=[];const a=ui(t.definition);if((0,s.A)(a)){return[]}else{const t=e.name;const s=me(a,e);if(s){i.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:r}),type:Ms.LEFT_RECURSION,ruleName:t})}const o=pt(a,r.concat([e]));const c=(0,hr.A)(o,(t=>{const i=(0,l.A)(r);i.push(t);return ci(e,t,n,i)}));return i.concat(c)}}function ui(e){let t=[];if((0,s.A)(e)){return t}const n=Tt(e);if(n instanceof W){t.push(n.referencedRule)}else if(n instanceof z||n instanceof Y||n instanceof q||n instanceof X||n instanceof Z||n instanceof Q){t=t.concat(ui(n.definition))}else if(n instanceof J){t=(0,Le.A)((0,a.A)(n.definition,(e=>ui(e.definition))))}else if(n instanceof ee){}else{throw Error("non exhaustive match")}const r=$e(n);const i=e.length>1;if(r&&i){const n=p(e);return t.concat(ui(n))}else{return t}}class fi extends re{constructor(){super(...arguments);this.alternations=[]}visitAlternation(e){this.alternations.push(e)}}function di(e,t){const n=new fi;e.accept(n);const r=n.alternations;const i=(0,hr.A)(r,(n=>{const r=wr(n.definition);return(0,hr.A)(r,((r,i)=>{const a=Pr([r],[],wn,1);if((0,s.A)(a)){return[{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:n,emptyChoiceIdx:i}),type:Ms.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:n.idx,alternative:i+1}]}else{return[]}}))}));return i}function hi(e,t,n){const r=new fi;e.accept(r);let i=r.alternations;i=Xe(i,(e=>e.ignoreAmbiguities===true));const s=(0,hr.A)(i,(r=>{const i=r.idx;const s=r.maxLookahead||t;const a=Xr(i,e,s,r);const o=yi(a,r,e,n);const l=Ti(a,r,e,n);return o.concat(l)}));return s}class pi extends re{constructor(){super(...arguments);this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}}function mi(e,t){const n=new fi;e.accept(n);const r=n.alternations;const i=(0,hr.A)(r,(n=>{if(n.definition.length>255){return[{message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:n}),type:Ms.TOO_MANY_ALTS,ruleName:e.name,occurrence:n.idx}]}else{return[]}}));return i}function gi(e,t,n){const i=[];(0,r.A)(e,(e=>{const a=new pi;e.accept(a);const o=a.allProductions;(0,r.A)(o,(r=>{const a=Ur(r);const o=r.maxLookahead||t;const l=r.idx;const c=Qr(l,e,a,o);const u=c[0];if((0,s.A)((0,Le.A)(u))){const t=n.buildEmptyRepetitionError({topLevelRule:e,repetition:r});i.push({message:t,type:Ms.NO_NON_EMPTY_LOOKAHEAD,ruleName:e.name})}}))}));return i}function yi(e,t,n,i){const s=[];const o=(0,tt.A)(e,((n,i,a)=>{if(t.definition[a].ignoreAmbiguities===true){return n}(0,r.A)(i,(i=>{const o=[a];(0,r.A)(e,((e,n)=>{if(a!==n&&Zr(e,i)&&t.definition[n].ignoreAmbiguities!==true){o.push(n)}}));if(o.length>1&&!Zr(s,i)){s.push(i);n.push({alts:o,path:i})}}));return n}),[]);const l=(0,a.A)(o,(e=>{const r=(0,a.A)(e.alts,(e=>e+1));const s=i.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:r,prefixPath:e.path});return{message:s,type:Ms.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:e.alts}}));return l}function Ti(e,t,n,r){const i=(0,tt.A)(e,((e,t,n)=>{const r=(0,a.A)(t,(e=>({idx:n,path:e})));return e.concat(r)}),[]);const s=gt((0,hr.A)(i,(e=>{const s=t.definition[e.idx];if(s.ignoreAmbiguities===true){return[]}const o=e.idx;const l=e.path;const c=(0,nt.A)(i,(e=>t.definition[e.idx].ignoreAmbiguities!==true&&e.idx{const i=[e.idx+1,o+1];const s=t.idx===0?"":t.idx;const a=r.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:i,prefixPath:e.path});return{message:a,type:Ms.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:s,alternatives:i}}));return u})));return s}function vi(e,t,n){const i=[];const s=(0,a.A)(t,(e=>e.name));(0,r.A)(e,(e=>{const t=e.name;if(me(s,t)){const r=n.buildNamespaceConflictError(e);i.push({message:r,type:Ms.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:t})}}));return i}function Ai(e){const t=(0,je.A)(e,{errMsgProvider:cr});const n={};(0,r.A)(e.rules,(e=>{n[e.name]=e}));return fr(n,t.errMsgProvider)}function Ri(e){e=(0,je.A)(e,{errMsgProvider:ur});return ni(e.rules,e.tokenTypes,e.errMsgProvider,e.grammarName)}const Ei="MismatchedTokenException";const $i="NoViableAltException";const ki="EarlyExitException";const xi="NotAllInputParsedException";const wi=[Ei,$i,ki,xi];Object.freeze(wi);function Ii(e){return me(wi,e.name)}class Ci extends Error{constructor(e,t){super(e);this.token=t;this.resyncedTokens=[];Object.setPrototypeOf(this,new.target.prototype);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}}class Si extends Ci{constructor(e,t,n){super(e,t);this.previousToken=n;this.name=Ei}}class Ni extends Ci{constructor(e,t,n){super(e,t);this.previousToken=n;this.name=$i}}class Li extends Ci{constructor(e,t){super(e,t);this.name=xi}}class bi extends Ci{constructor(e,t,n){super(e,t);this.previousToken=n;this.name=ki}}const _i={};const Oi="InRuleRecoveryException";class Pi extends Error{constructor(e){super(e);this.name=Oi}}class Mi{initRecoverable(e){this.firstAfterRepMap={};this.resyncFollows={};this.recoveryEnabled=(0,o.A)(e,"recoveryEnabled")?e.recoveryEnabled:Os.recoveryEnabled;if(this.recoveryEnabled){this.attemptInRepetitionRecovery=Di}}getTokenToInsert(e){const t=ar(e,"",NaN,NaN,NaN,NaN,NaN,NaN);t.isInsertedInRecovery=true;return t}canTokenTypeBeInsertedInRecovery(e){return true}canTokenTypeBeDeletedInRecovery(e){return true}tryInRepetitionRecovery(e,t,n,r){const i=this.findReSyncTokenType();const s=this.exportLexerState();const a=[];let o=false;const l=this.LA(1);let c=this.LA(1);const u=()=>{const e=this.LA(0);const t=this.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:l,previous:e,ruleName:this.getCurrRuleFullName()});const n=new Si(t,l,this.LA(0));n.resyncedTokens=wr(a);this.SAVE_ERROR(n)};while(!o){if(this.tokenMatcher(c,r)){u();return}else if(n.call(this)){u();e.apply(this,t);return}else if(this.tokenMatcher(c,i)){o=true}else{c=this.SKIP_TOKEN();this.addToResyncTokens(c,a)}}this.importLexerState(s)}shouldInRepetitionRecoveryBeTried(e,t,n){if(n===false){return false}if(this.tokenMatcher(this.LA(1),e)){return false}if(this.isBackTracking()){return false}if(this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,t))){return false}return true}getFollowsForInRuleRecovery(e,t){const n=this.getCurrentGrammarPath(e,t);const r=this.getNextPossibleTokenTypes(n);return r}tryInRuleRecovery(e,t){if(this.canRecoverWithSingleTokenInsertion(e,t)){const t=this.getTokenToInsert(e);return t}if(this.canRecoverWithSingleTokenDeletion(e)){const e=this.SKIP_TOKEN();this.consumeToken();return e}throw new Pi("sad sad panda")}canPerformInRuleRecovery(e,t){return this.canRecoverWithSingleTokenInsertion(e,t)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,t){if(!this.canTokenTypeBeInsertedInRecovery(e)){return false}if((0,s.A)(t)){return false}const n=this.LA(1);const r=(0,vt.A)(t,(e=>this.tokenMatcher(n,e)))!==undefined;return r}canRecoverWithSingleTokenDeletion(e){if(!this.canTokenTypeBeDeletedInRecovery(e)){return false}const t=this.tokenMatcher(this.LA(2),e);return t}isInCurrentRuleReSyncSet(e){const t=this.getCurrFollowKey();const n=this.getFollowSetFromFollowKey(t);return me(n,e)}findReSyncTokenType(){const e=this.flattenFollowSet();let t=this.LA(1);let n=2;while(true){const r=(0,vt.A)(e,(e=>{const n=or(t,e);return n}));if(r!==undefined){return r}t=this.LA(n);n++}}getCurrFollowKey(){if(this.RULE_STACK.length===1){return _i}const e=this.getLastExplicitRuleShortName();const t=this.getLastExplicitRuleOccurrenceIndex();const n=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:t,inRule:this.shortRuleNameToFullName(n)}}buildFullFollowKeyStack(){const e=this.RULE_STACK;const t=this.RULE_OCCURRENCE_STACK;return(0,a.A)(e,((n,r)=>{if(r===0){return _i}return{ruleName:this.shortRuleNameToFullName(n),idxInCallingRule:t[r],inRule:this.shortRuleNameToFullName(e[r-1])}}))}flattenFollowSet(){const e=(0,a.A)(this.buildFullFollowKeyStack(),(e=>this.getFollowSetFromFollowKey(e)));return(0,Le.A)(e)}getFollowSetFromFollowKey(e){if(e===_i){return[sr]}const t=e.ruleName+e.idxInCallingRule+Me+e.inRule;return this.resyncFollows[t]}addToResyncTokens(e,t){if(!this.tokenMatcher(e,sr)){t.push(e)}return t}reSyncTo(e){const t=[];let n=this.LA(1);while(this.tokenMatcher(n,e)===false){n=this.SKIP_TOKEN();this.addToResyncTokens(n,t)}return wr(t)}attemptInRepetitionRecovery(e,t,n,r,i,s,a){}getCurrentGrammarPath(e,t){const n=this.getHumanReadableRuleStack();const r=(0,l.A)(this.RULE_OCCURRENCE_STACK);const i={ruleStack:n,occurrenceStack:r,lastTok:e,lastTokOccurrence:t};return i}getHumanReadableRuleStack(){return(0,a.A)(this.RULE_STACK,(e=>this.shortRuleNameToFullName(e)))}}function Di(e,t,n,r,i,s,a){const o=this.getKeyForAutomaticLookahead(r,i);let l=this.firstAfterRepMap[o];if(l===undefined){const e=this.getCurrRuleFullName();const t=this.getGAstProductions()[e];const n=new s(t,i);l=n.startWalking();this.firstAfterRepMap[o]=l}let c=l.token;let u=l.occurrence;const f=l.isEndOfRule;if(this.RULE_STACK.length===1&&f&&c===undefined){c=sr;u=1}if(c===undefined||u===undefined){return}if(this.shouldInRepetitionRecoveryBeTried(c,u,a)){this.tryInRepetitionRecovery(e,t,n,c)}}const Ui=4;const Fi=8;const Gi=12;const Ki=8;const Bi=1<ci(e,e,ur)))}validateEmptyOrAlternatives(e){return(0,hr.A)(e,(e=>di(e,ur)))}validateAmbiguousAlternationAlternatives(e,t){return(0,hr.A)(e,(e=>hi(e,t,ur)))}validateSomeNonEmptyLookaheadPath(e,t){return gi(e,t,ur)}buildLookaheadForAlternation(e){return Gr(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,Br)}buildLookaheadForOptional(e){return Kr(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,Ur(e.prodType),jr)}}class Qi{initLooksAhead(e){this.dynamicTokensEnabled=(0,o.A)(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:Os.dynamicTokensEnabled;this.maxLookahead=(0,o.A)(e,"maxLookahead")?e.maxLookahead:Os.maxLookahead;this.lookaheadStrategy=(0,o.A)(e,"lookaheadStrategy")?e.lookaheadStrategy:new Xi({maxLookahead:this.maxLookahead});this.lookAheadFuncsCache=new Map}preComputeLookaheadFunctions(e){(0,r.A)(e,(e=>{this.TRACE_INIT(`${e.name} Rule Lookahead`,(()=>{const{alternation:t,repetition:n,option:i,repetitionMandatory:s,repetitionMandatoryWithSeparator:a,repetitionWithSeparator:o}=es(e);(0,r.A)(t,(t=>{const n=t.idx===0?"":t.idx;this.TRACE_INIT(`${xe(t)}${n}`,(()=>{const n=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:t.idx,rule:e,maxLookahead:t.maxLookahead||this.maxLookahead,hasPredicates:t.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled});const r=Yi(this.fullRuleNameToShort[e.name],Bi,t.idx);this.setLaFuncCache(r,n)}))}));(0,r.A)(n,(t=>{this.computeLookaheadFunc(e,t.idx,Vi,"Repetition",t.maxLookahead,xe(t))}));(0,r.A)(i,(t=>{this.computeLookaheadFunc(e,t.idx,ji,"Option",t.maxLookahead,xe(t))}));(0,r.A)(s,(t=>{this.computeLookaheadFunc(e,t.idx,Wi,"RepetitionMandatory",t.maxLookahead,xe(t))}));(0,r.A)(a,(t=>{this.computeLookaheadFunc(e,t.idx,zi,"RepetitionMandatoryWithSeparator",t.maxLookahead,xe(t))}));(0,r.A)(o,(t=>{this.computeLookaheadFunc(e,t.idx,Hi,"RepetitionWithSeparator",t.maxLookahead,xe(t))}))}))}))}computeLookaheadFunc(e,t,n,r,i,s){this.TRACE_INIT(`${s}${t===0?"":t}`,(()=>{const s=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:t,rule:e,maxLookahead:i||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:r});const a=Yi(this.fullRuleNameToShort[e.name],n,t);this.setLaFuncCache(a,s)}))}getKeyForAutomaticLookahead(e,t){const n=this.getLastExplicitRuleShortName();return Yi(n,e,t)}getLaFuncFromCache(e){return this.lookAheadFuncsCache.get(e)}setLaFuncCache(e,t){this.lookAheadFuncsCache.set(e,t)}}class Zi extends re{constructor(){super(...arguments);this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}}const Ji=new Zi;function es(e){Ji.reset();e.accept(Ji);const t=Ji.dslMethods;Ji.reset();return t}function ts(e,t){if(isNaN(e.startOffset)===true){e.startOffset=t.startOffset;e.endOffset=t.endOffset}else if(e.endOffsete.msg));throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>:\n\t`+`${t.join("\n\n").replace(/\n/g,"\n\t")}`)}}};n.prototype=r;n.prototype.constructor=n;n._RULE_NAMES=t;return n}function cs(e,t,n){const i=function(){};as(i,e+"BaseSemanticsWithDefaults");const s=Object.create(n.prototype);(0,r.A)(t,(e=>{s[e]=os}));i.prototype=s;i.prototype.constructor=i;return i}var us;(function(e){e[e["REDUNDANT_METHOD"]=0]="REDUNDANT_METHOD";e[e["MISSING_METHOD"]=1]="MISSING_METHOD"})(us||(us={}));function fs(e,t){const n=ds(e,t);return n}function ds(e,t){const n=(0,nt.A)(t,(t=>(0,Qe.A)(e[t])===false));const r=(0,a.A)(n,(t=>({msg:`Missing visitor method: <${t}> on ${e.constructor.name} CST Visitor.`,type:us.MISSING_METHOD,methodName:t})));return gt(r)}class hs{initTreeBuilder(e){this.CST_STACK=[];this.outputCst=e.outputCst;this.nodeLocationTracking=(0,o.A)(e,"nodeLocationTracking")?e.nodeLocationTracking:Os.nodeLocationTracking;if(!this.outputCst){this.cstInvocationStateUpdate=$n.A;this.cstFinallyStateUpdate=$n.A;this.cstPostTerminal=$n.A;this.cstPostNonTerminal=$n.A;this.cstPostRule=$n.A}else{if(/full/i.test(this.nodeLocationTracking)){if(this.recoveryEnabled){this.setNodeLocationFromToken=ns;this.setNodeLocationFromNode=ns;this.cstPostRule=$n.A;this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery}else{this.setNodeLocationFromToken=$n.A;this.setNodeLocationFromNode=$n.A;this.cstPostRule=this.cstPostRuleFull;this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular}}else if(/onlyOffset/i.test(this.nodeLocationTracking)){if(this.recoveryEnabled){this.setNodeLocationFromToken=ts;this.setNodeLocationFromNode=ts;this.cstPostRule=$n.A;this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery}else{this.setNodeLocationFromToken=$n.A;this.setNodeLocationFromNode=$n.A;this.cstPostRule=this.cstPostRuleOnlyOffset;this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular}}else if(/none/i.test(this.nodeLocationTracking)){this.setNodeLocationFromToken=$n.A;this.setNodeLocationFromNode=$n.A;this.cstPostRule=$n.A;this.setInitialNodeLocation=$n.A}else{throw Error(`Invalid config option: "${e.nodeLocationTracking}"`)}}}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:NaN,endOffset:NaN}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA(1).startOffset,endOffset:NaN}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}}setInitialNodeLocationFullRegular(e){const t=this.LA(1);e.location={startOffset:t.startOffset,startLine:t.startLine,startColumn:t.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}}cstInvocationStateUpdate(e){const t={name:e,children:Object.create(null)};this.setInitialNodeLocation(t);this.CST_STACK.push(t)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){const t=this.LA(0);const n=e.location;if(n.startOffset<=t.startOffset===true){n.endOffset=t.endOffset;n.endLine=t.endLine;n.endColumn=t.endColumn}else{n.startOffset=NaN;n.startLine=NaN;n.startColumn=NaN}}cstPostRuleOnlyOffset(e){const t=this.LA(0);const n=e.location;if(n.startOffset<=t.startOffset===true){n.endOffset=t.endOffset}else{n.startOffset=NaN}}cstPostTerminal(e,t){const n=this.CST_STACK[this.CST_STACK.length-1];rs(n,t,e);this.setNodeLocationFromToken(n.location,t)}cstPostNonTerminal(e,t){const n=this.CST_STACK[this.CST_STACK.length-1];is(n,t,e);this.setNodeLocationFromNode(n.location,e.location)}getBaseCstVisitorConstructor(){if((0,Ke.A)(this.baseCstVisitorConstructor)){const e=ls(this.className,(0,R.A)(this.gastProductionsCache));this.baseCstVisitorConstructor=e;return e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if((0,Ke.A)(this.baseCstVisitorWithDefaultsConstructor)){const e=cs(this.className,(0,R.A)(this.gastProductionsCache),this.getBaseCstVisitorConstructor());this.baseCstVisitorWithDefaultsConstructor=e;return e}return this.baseCstVisitorWithDefaultsConstructor}getLastExplicitRuleShortName(){const e=this.RULE_STACK;return e[e.length-1]}getPreviousExplicitRuleShortName(){const e=this.RULE_STACK;return e[e.length-2]}getLastExplicitRuleOccurrenceIndex(){const e=this.RULE_OCCURRENCE_STACK;return e[e.length-1]}}class ps{initLexerAdapter(){this.tokVector=[];this.tokVectorLength=0;this.currIdx=-1}set input(e){if(this.selfAnalysisDone!==true){throw Error(`Missing invocation at the end of the Parser's constructor.`)}this.reset();this.tokVector=e;this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){if(this.currIdx<=this.tokVector.length-2){this.consumeToken();return this.LA(1)}else{return _s}}LA(e){const t=this.currIdx+e;if(t<0||this.tokVectorLength<=t){return _s}else{return this.tokVector[t]}}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVector.length-1}getLexerPosition(){return this.exportLexerState()}}class ms{ACTION(e){return e.call(this)}consume(e,t,n){return this.consumeInternal(t,e,n)}subrule(e,t,n){return this.subruleInternal(t,e,n)}option(e,t){return this.optionInternal(t,e)}or(e,t){return this.orInternal(t,e)}many(e,t){return this.manyInternal(e,t)}atLeastOne(e,t){return this.atLeastOneInternal(e,t)}CONSUME(e,t){return this.consumeInternal(e,0,t)}CONSUME1(e,t){return this.consumeInternal(e,1,t)}CONSUME2(e,t){return this.consumeInternal(e,2,t)}CONSUME3(e,t){return this.consumeInternal(e,3,t)}CONSUME4(e,t){return this.consumeInternal(e,4,t)}CONSUME5(e,t){return this.consumeInternal(e,5,t)}CONSUME6(e,t){return this.consumeInternal(e,6,t)}CONSUME7(e,t){return this.consumeInternal(e,7,t)}CONSUME8(e,t){return this.consumeInternal(e,8,t)}CONSUME9(e,t){return this.consumeInternal(e,9,t)}SUBRULE(e,t){return this.subruleInternal(e,0,t)}SUBRULE1(e,t){return this.subruleInternal(e,1,t)}SUBRULE2(e,t){return this.subruleInternal(e,2,t)}SUBRULE3(e,t){return this.subruleInternal(e,3,t)}SUBRULE4(e,t){return this.subruleInternal(e,4,t)}SUBRULE5(e,t){return this.subruleInternal(e,5,t)}SUBRULE6(e,t){return this.subruleInternal(e,6,t)}SUBRULE7(e,t){return this.subruleInternal(e,7,t)}SUBRULE8(e,t){return this.subruleInternal(e,8,t)}SUBRULE9(e,t){return this.subruleInternal(e,9,t)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,t,n=Ps){if(me(this.definedRulesNames,e)){const t=ur.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className});const n={message:t,type:Ms.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(n)}this.definedRulesNames.push(e);const r=this.defineRule(e,t,n);this[e]=r;return r}OVERRIDE_RULE(e,t,n=Ps){const r=li(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(r);const i=this.defineRule(e,t,n);this[e]=i;return i}BACKTRACK(e,t){return function(){this.isBackTrackingStack.push(1);const n=this.saveRecogState();try{e.apply(this,t);return true}catch(r){if(Ii(r)){return false}else{throw r}}finally{this.reloadRecogState(n);this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return te((0,i.A)(this.gastProductionsCache))}}var gs=n(85356);class ys{initRecognizerEngine(e,t){this.className=this.constructor.name;this.shortRuleNameToFull={};this.fullRuleNameToShort={};this.ruleShortNameIdx=256;this.tokenMatcher=In;this.subruleIdx=0;this.definedRulesNames=[];this.tokensMap={};this.isBackTrackingStack=[];this.RULE_STACK=[];this.RULE_OCCURRENCE_STACK=[];this.gastProductionsCache={};if((0,o.A)(t,"serializedGrammar")){throw Error("The Parser's configuration can no longer contain a property.\n"+"\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0\n"+"\tFor Further details.")}if((0,le.A)(e)){if((0,s.A)(e)){throw Error("A Token Vocabulary cannot be empty.\n"+"\tNote that the first argument for the parser constructor\n"+"\tis no longer a Token vector (since v4.0).")}if(typeof e[0].startOffset==="number"){throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n"+"\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n"+"\tFor Further details.")}}if((0,le.A)(e)){this.tokensMap=(0,tt.A)(e,((e,t)=>{e[t.name]=t;return e}),{})}else if((0,o.A)(e,"modes")&&Re((0,Le.A)((0,i.A)(e.modes)),Gn)){const t=(0,Le.A)((0,i.A)(e.modes));const n=Ne(t);this.tokensMap=(0,tt.A)(n,((e,t)=>{e[t.name]=t;return e}),{})}else if((0,gs.A)(e)){this.tokensMap=(0,l.A)(e)}else{throw new Error(" argument must be An Array of Token constructors,"+" A dictionary of Token constructors or an IMultiModeLexerDefinition")}this.tokensMap["EOF"]=sr;const n=(0,o.A)(e,"modes")?(0,Le.A)((0,i.A)(e.modes)):(0,i.A)(e);const r=Re(n,(e=>(0,s.A)(e.categoryMatches)));this.tokenMatcher=r?In:wn;Nn((0,i.A)(this.tokensMap))}defineRule(e,t,n){if(this.selfAnalysisDone){throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called'\n`+`Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`)}const r=(0,o.A)(n,"resyncEnabled")?n.resyncEnabled:Ps.resyncEnabled;const i=(0,o.A)(n,"recoveryValueFunc")?n.recoveryValueFunc:Ps.recoveryValueFunc;const s=this.ruleShortNameIdx<t.call(this)&&e.call(this)}}else{i=e}if(r.call(this)===true){return i.call(this)}return undefined}atLeastOneInternal(e,t){const n=this.getKeyForAutomaticLookahead(Wi,e);return this.atLeastOneInternalLogic(e,t,n)}atLeastOneInternalLogic(e,t,n){let r=this.getLaFuncFromCache(n);let i;if(typeof t!=="function"){i=t.DEF;const e=t.GATE;if(e!==undefined){const t=r;r=()=>e.call(this)&&t.call(this)}}else{i=t}if(r.call(this)===true){let e=this.doSingleRepetition(i);while(r.call(this)===true&&e===true){e=this.doSingleRepetition(i)}}else{throw this.raiseEarlyExitException(e,Dr.REPETITION_MANDATORY,t.ERR_MSG)}this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,t],r,Wi,e,br)}atLeastOneSepFirstInternal(e,t){const n=this.getKeyForAutomaticLookahead(zi,e);this.atLeastOneSepFirstInternalLogic(e,t,n)}atLeastOneSepFirstInternalLogic(e,t,n){const r=t.DEF;const i=t.SEP;const s=this.getLaFuncFromCache(n);if(s.call(this)===true){r.call(this);const t=()=>this.tokenMatcher(this.LA(1),i);while(this.tokenMatcher(this.LA(1),i)===true){this.CONSUME(i);r.call(this)}this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,_r],t,zi,e,_r)}else{throw this.raiseEarlyExitException(e,Dr.REPETITION_MANDATORY_WITH_SEPARATOR,t.ERR_MSG)}}manyInternal(e,t){const n=this.getKeyForAutomaticLookahead(Vi,e);return this.manyInternalLogic(e,t,n)}manyInternalLogic(e,t,n){let r=this.getLaFuncFromCache(n);let i;if(typeof t!=="function"){i=t.DEF;const e=t.GATE;if(e!==undefined){const t=r;r=()=>e.call(this)&&t.call(this)}}else{i=t}let s=true;while(r.call(this)===true&&s===true){s=this.doSingleRepetition(i)}this.attemptInRepetitionRecovery(this.manyInternal,[e,t],r,Vi,e,Nr,s)}manySepFirstInternal(e,t){const n=this.getKeyForAutomaticLookahead(Hi,e);this.manySepFirstInternalLogic(e,t,n)}manySepFirstInternalLogic(e,t,n){const r=t.DEF;const i=t.SEP;const s=this.getLaFuncFromCache(n);if(s.call(this)===true){r.call(this);const t=()=>this.tokenMatcher(this.LA(1),i);while(this.tokenMatcher(this.LA(1),i)===true){this.CONSUME(i);r.call(this)}this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,i,t,r,Lr],t,Hi,e,Lr)}}repetitionSepSecondInternal(e,t,n,r,i){while(n()){this.CONSUME(t);r.call(this)}this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,t,n,r,i],n,zi,e,i)}doSingleRepetition(e){const t=this.getLexerPosition();e.call(this);const n=this.getLexerPosition();return n>t}orInternal(e,t){const n=this.getKeyForAutomaticLookahead(Bi,t);const r=(0,le.A)(e)?e:e.DEF;const i=this.getLaFuncFromCache(n);const s=i.call(this,r);if(s!==undefined){const e=r[s];return e.ALT.call(this)}this.raiseNoAltException(t,e.ERR_MSG)}ruleFinallyStateUpdate(){this.RULE_STACK.pop();this.RULE_OCCURRENCE_STACK.pop();this.cstFinallyStateUpdate();if(this.RULE_STACK.length===0&&this.isAtEndOfInput()===false){const e=this.LA(1);const t=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:e,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new Li(t,e))}}subruleInternal(e,t,n){let r;try{const i=n!==undefined?n.ARGS:undefined;this.subruleIdx=t;r=e.apply(this,i);this.cstPostNonTerminal(r,n!==undefined&&n.LABEL!==undefined?n.LABEL:e.ruleName);return r}catch(i){throw this.subruleInternalError(i,n,e.ruleName)}}subruleInternalError(e,t,n){if(Ii(e)&&e.partialCstResult!==undefined){this.cstPostNonTerminal(e.partialCstResult,t!==undefined&&t.LABEL!==undefined?t.LABEL:n);delete e.partialCstResult}throw e}consumeInternal(e,t,n){let r;try{const t=this.LA(1);if(this.tokenMatcher(t,e)===true){this.consumeToken();r=t}else{this.consumeInternalError(e,t,n)}}catch(i){r=this.consumeInternalRecovery(e,t,i)}this.cstPostTerminal(n!==undefined&&n.LABEL!==undefined?n.LABEL:e.name,r);return r}consumeInternalError(e,t,n){let r;const i=this.LA(0);if(n!==undefined&&n.ERR_MSG){r=n.ERR_MSG}else{r=this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:t,previous:i,ruleName:this.getCurrRuleFullName()})}throw this.SAVE_ERROR(new Si(r,t,i))}consumeInternalRecovery(e,t,n){if(this.recoveryEnabled&&n.name==="MismatchedTokenException"&&!this.isBackTracking()){const i=this.getFollowsForInRuleRecovery(e,t);try{return this.tryInRuleRecovery(e,i)}catch(r){if(r.name===Oi){throw n}else{throw r}}}else{throw n}}saveRecogState(){const e=this.errors;const t=(0,l.A)(this.RULE_STACK);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:t,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors;this.importLexerState(e.lexerState);this.RULE_STACK=e.RULE_STACK}ruleInvocationStateUpdate(e,t,n){this.RULE_OCCURRENCE_STACK.push(n);this.RULE_STACK.push(e);this.cstInvocationStateUpdate(t)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){const e=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),sr)}reset(){this.resetLexerState();this.subruleIdx=0;this.isBackTrackingStack=[];this.errors=[];this.RULE_STACK=[];this.CST_STACK=[];this.RULE_OCCURRENCE_STACK=[]}}class Ts{initErrorHandler(e){this._errors=[];this.errorMessageProvider=(0,o.A)(e,"errorMessageProvider")?e.errorMessageProvider:Os.errorMessageProvider}SAVE_ERROR(e){if(Ii(e)){e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:(0,l.A)(this.RULE_OCCURRENCE_STACK)};this._errors.push(e);return e}else{throw Error("Trying to save an Error which is not a RecognitionException")}}get errors(){return(0,l.A)(this._errors)}set errors(e){this._errors=e}raiseEarlyExitException(e,t,n){const r=this.getCurrRuleFullName();const i=this.getGAstProductions()[r];const s=Qr(e,i,t,this.maxLookahead);const a=s[0];const o=[];for(let c=1;c<=this.maxLookahead;c++){o.push(this.LA(c))}const l=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:a,actual:o,previous:this.LA(0),customUserDescription:n,ruleName:r});throw this.SAVE_ERROR(new bi(l,this.LA(1),this.LA(0)))}raiseNoAltException(e,t){const n=this.getCurrRuleFullName();const r=this.getGAstProductions()[n];const i=Xr(e,r,this.maxLookahead);const s=[];for(let l=1;l<=this.maxLookahead;l++){s.push(this.LA(l))}const a=this.LA(0);const o=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:i,actual:s,previous:a,customUserDescription:t,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new Ni(o,this.LA(1),a))}}class vs{initContentAssist(){}computeContentAssist(e,t){const n=this.gastProductionsCache[e];if((0,Ke.A)(n)){throw Error(`Rule ->${e}<- does not exist in this grammar.`)}return Pr([n],t,this.tokenMatcher,this.maxLookahead)}getNextPossibleTokenTypes(e){const t=Tt(e.ruleStack);const n=this.getGAstProductions();const r=n[t];const i=new Cr(r,e).startWalking();return i}}const As={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(As);const Rs=true;const Es=Math.pow(2,Fi)-1;const $s=rr({name:"RECORDING_PHASE_TOKEN",pattern:Vn.NA});Nn([$s]);const ks=ar($s,"This IToken indicates the Parser is in Recording Phase\n\t"+""+"See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",-1,-1,-1,-1,-1,-1);Object.freeze(ks);const xs={name:"This CSTNode indicates the Parser is in Recording Phase\n\t"+"See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",children:{}};class ws{initGastRecorder(e){this.recordingProdStack=[];this.RECORDING_PHASE=false}enableRecording(){this.RECORDING_PHASE=true;this.TRACE_INIT("Enable Recording",(()=>{for(let e=0;e<10;e++){const t=e>0?e:"";this[`CONSUME${t}`]=function(t,n){return this.consumeInternalRecord(t,e,n)};this[`SUBRULE${t}`]=function(t,n){return this.subruleInternalRecord(t,e,n)};this[`OPTION${t}`]=function(t){return this.optionInternalRecord(t,e)};this[`OR${t}`]=function(t){return this.orInternalRecord(t,e)};this[`MANY${t}`]=function(t){this.manyInternalRecord(e,t)};this[`MANY_SEP${t}`]=function(t){this.manySepFirstInternalRecord(e,t)};this[`AT_LEAST_ONE${t}`]=function(t){this.atLeastOneInternalRecord(e,t)};this[`AT_LEAST_ONE_SEP${t}`]=function(t){this.atLeastOneSepFirstInternalRecord(e,t)}}this[`consume`]=function(e,t,n){return this.consumeInternalRecord(t,e,n)};this[`subrule`]=function(e,t,n){return this.subruleInternalRecord(t,e,n)};this[`option`]=function(e,t){return this.optionInternalRecord(t,e)};this[`or`]=function(e,t){return this.orInternalRecord(t,e)};this[`many`]=function(e,t){this.manyInternalRecord(e,t)};this[`atLeastOne`]=function(e,t){this.atLeastOneInternalRecord(e,t)};this.ACTION=this.ACTION_RECORD;this.BACKTRACK=this.BACKTRACK_RECORD;this.LA=this.LA_RECORD}))}disableRecording(){this.RECORDING_PHASE=false;this.TRACE_INIT("Deleting Recording methods",(()=>{const e=this;for(let t=0;t<10;t++){const n=t>0?t:"";delete e[`CONSUME${n}`];delete e[`SUBRULE${n}`];delete e[`OPTION${n}`];delete e[`OR${n}`];delete e[`MANY${n}`];delete e[`MANY_SEP${n}`];delete e[`AT_LEAST_ONE${n}`];delete e[`AT_LEAST_ONE_SEP${n}`]}delete e[`consume`];delete e[`subrule`];delete e[`option`];delete e[`or`];delete e[`many`];delete e[`atLeastOne`];delete e.ACTION;delete e.BACKTRACK;delete e.LA}))}ACTION_RECORD(e){}BACKTRACK_RECORD(e,t){return()=>true}LA_RECORD(e){return _s}topLevelRuleRecord(e,t){try{const n=new H({definition:[],name:e});n.name=e;this.recordingProdStack.push(n);t.call(this);this.recordingProdStack.pop();return n}catch(n){if(n.KNOWN_RECORDER_ERROR!==true){try{n.message=n.message+'\n\t This error was thrown during the "grammar recording phase" For more info see:\n\t'+"https://chevrotain.io/docs/guide/internals.html#grammar-recording"}catch(r){throw n}}throw n}}optionInternalRecord(e,t){return Is.call(this,Y,e,t)}atLeastOneInternalRecord(e,t){Is.call(this,q,t,e)}atLeastOneSepFirstInternalRecord(e,t){Is.call(this,X,t,e,Rs)}manyInternalRecord(e,t){Is.call(this,Q,t,e)}manySepFirstInternalRecord(e,t){Is.call(this,Z,t,e,Rs)}orInternalRecord(e,t){return Cs.call(this,e,t)}subruleInternalRecord(e,t,n){Ns(t);if(!e||(0,o.A)(e,"ruleName")===false){const n=new Error(` argument is invalid`+` expecting a Parser method reference but got: <${JSON.stringify(e)}>`+`\n inside top level rule: <${this.recordingProdStack[0].name}>`);n.KNOWN_RECORDER_ERROR=true;throw n}const r=(0,kn.A)(this.recordingProdStack);const i=e.ruleName;const s=new W({idx:t,nonTerminalName:i,label:n===null||n===void 0?void 0:n.LABEL,referencedRule:undefined});r.definition.push(s);return this.outputCst?xs:As}consumeInternalRecord(e,t,n){Ns(t);if(!Mn(e)){const n=new Error(` argument is invalid`+` expecting a TokenType reference but got: <${JSON.stringify(e)}>`+`\n inside top level rule: <${this.recordingProdStack[0].name}>`);n.KNOWN_RECORDER_ERROR=true;throw n}const r=(0,kn.A)(this.recordingProdStack);const i=new ee({idx:t,terminalType:e,label:n===null||n===void 0?void 0:n.LABEL});r.definition.push(i);return ks}}function Is(e,t,n,r=false){Ns(n);const i=(0,kn.A)(this.recordingProdStack);const s=(0,Qe.A)(t)?t:t.DEF;const a=new e({definition:[],idx:n});if(r){a.separator=t.SEP}if((0,o.A)(t,"MAX_LOOKAHEAD")){a.maxLookahead=t.MAX_LOOKAHEAD}this.recordingProdStack.push(a);s.call(this);i.definition.push(a);this.recordingProdStack.pop();return As}function Cs(e,t){Ns(t);const n=(0,kn.A)(this.recordingProdStack);const i=(0,le.A)(e)===false;const s=i===false?e:e.DEF;const a=new J({definition:[],idx:t,ignoreAmbiguities:i&&e.IGNORE_AMBIGUITIES===true});if((0,o.A)(e,"MAX_LOOKAHEAD")){a.maxLookahead=e.MAX_LOOKAHEAD}const l=fe(s,(e=>(0,Qe.A)(e.GATE)));a.hasPredicates=l;n.definition.push(a);(0,r.A)(s,(e=>{const t=new z({definition:[]});a.definition.push(t);if((0,o.A)(e,"IGNORE_AMBIGUITIES")){t.ignoreAmbiguities=e.IGNORE_AMBIGUITIES}else if((0,o.A)(e,"GATE")){t.ignoreAmbiguities=true}this.recordingProdStack.push(t);e.ALT.call(this);this.recordingProdStack.pop()}));return As}function Ss(e){return e===0?"":`${e}`}function Ns(e){if(e<0||e>Es){const t=new Error(`Invalid DSL Method idx value: <${e}>\n\t`+`Idx value must be a none negative value smaller than ${Es+1}`);t.KNOWN_RECORDER_ERROR=true;throw t}}class Ls{initPerformanceTracer(e){if((0,o.A)(e,"traceInitPerf")){const t=e.traceInitPerf;const n=typeof t==="number";this.traceInitMaxIdent=n?t:Infinity;this.traceInitPerf=n?t>0:t}else{this.traceInitMaxIdent=0;this.traceInitPerf=Os.traceInitPerf}this.traceInitIndent=-1}TRACE_INIT(e,t){if(this.traceInitPerf===true){this.traceInitIndent++;const n=new Array(this.traceInitIndent+1).join("\t");if(this.traceInitIndent`)}const{time:r,value:i}=xn(t);const s=r>10?console.warn:console.log;if(this.traceInitIndent time: ${r}ms`)}this.traceInitIndent--;return i}else{return t()}}}function bs(e,t){t.forEach((t=>{const n=t.prototype;Object.getOwnPropertyNames(n).forEach((r=>{if(r==="constructor"){return}const i=Object.getOwnPropertyDescriptor(n,r);if(i&&(i.get||i.set)){Object.defineProperty(e.prototype,r,i)}else{e.prototype[r]=t.prototype[r]}}))}))}const _s=ar(sr,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(_s);const Os=Object.freeze({recoveryEnabled:false,maxLookahead:3,dynamicTokensEnabled:false,outputCst:true,errorMessageProvider:lr,nodeLocationTracking:"none",traceInitPerf:false,skipValidations:false});const Ps=Object.freeze({recoveryValueFunc:()=>undefined,resyncEnabled:true});var Ms;(function(e){e[e["INVALID_RULE_NAME"]=0]="INVALID_RULE_NAME";e[e["DUPLICATE_RULE_NAME"]=1]="DUPLICATE_RULE_NAME";e[e["INVALID_RULE_OVERRIDE"]=2]="INVALID_RULE_OVERRIDE";e[e["DUPLICATE_PRODUCTIONS"]=3]="DUPLICATE_PRODUCTIONS";e[e["UNRESOLVED_SUBRULE_REF"]=4]="UNRESOLVED_SUBRULE_REF";e[e["LEFT_RECURSION"]=5]="LEFT_RECURSION";e[e["NONE_LAST_EMPTY_ALT"]=6]="NONE_LAST_EMPTY_ALT";e[e["AMBIGUOUS_ALTS"]=7]="AMBIGUOUS_ALTS";e[e["CONFLICT_TOKENS_RULES_NAMESPACE"]=8]="CONFLICT_TOKENS_RULES_NAMESPACE";e[e["INVALID_TOKEN_NAME"]=9]="INVALID_TOKEN_NAME";e[e["NO_NON_EMPTY_LOOKAHEAD"]=10]="NO_NON_EMPTY_LOOKAHEAD";e[e["AMBIGUOUS_PREFIX_ALTS"]=11]="AMBIGUOUS_PREFIX_ALTS";e[e["TOO_MANY_ALTS"]=12]="TOO_MANY_ALTS";e[e["CUSTOM_LOOKAHEAD_VALIDATION"]=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(Ms||(Ms={}));function Ds(e=undefined){return function(){return e}}class Us{static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated."+"\t\nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",(()=>{let e;this.selfAnalysisDone=true;const t=this.className;this.TRACE_INIT("toFastProps",(()=>{c(this)}));this.TRACE_INIT("Grammar Recording",(()=>{try{this.enableRecording();(0,r.A)(this.definedRulesNames,(e=>{const t=this[e];const n=t["originalGrammarAction"];let r;this.TRACE_INIT(`${e} Rule`,(()=>{r=this.topLevelRuleRecord(e,n)}));this.gastProductionsCache[e]=r}))}finally{this.disableRecording()}}));let n=[];this.TRACE_INIT("Grammar Resolving",(()=>{n=Ai({rules:(0,i.A)(this.gastProductionsCache)});this.definitionErrors=this.definitionErrors.concat(n)}));this.TRACE_INIT("Grammar Validations",(()=>{if((0,s.A)(n)&&this.skipValidations===false){const e=Ri({rules:(0,i.A)(this.gastProductionsCache),tokenTypes:(0,i.A)(this.tokensMap),errMsgProvider:ur,grammarName:t});const n=ti({lookaheadStrategy:this.lookaheadStrategy,rules:(0,i.A)(this.gastProductionsCache),tokenTypes:(0,i.A)(this.tokensMap),grammarName:t});this.definitionErrors=this.definitionErrors.concat(e,n)}}));if((0,s.A)(this.definitionErrors)){if(this.recoveryEnabled){this.TRACE_INIT("computeAllProdsFollows",(()=>{const e=Ue((0,i.A)(this.gastProductionsCache));this.resyncFollows=e}))}this.TRACE_INIT("ComputeLookaheadFunctions",(()=>{var e,t;(t=(e=this.lookaheadStrategy).initialize)===null||t===void 0?void 0:t.call(e,{rules:(0,i.A)(this.gastProductionsCache)});this.preComputeLookaheadFunctions((0,i.A)(this.gastProductionsCache))}))}if(!Us.DEFER_DEFINITION_ERRORS_HANDLING&&!(0,s.A)(this.definitionErrors)){e=(0,a.A)(this.definitionErrors,(e=>e.message));throw new Error(`Parser Definition Errors detected:\n ${e.join("\n-------------------------------\n")}`)}}))}constructor(e,t){this.definitionErrors=[];this.selfAnalysisDone=false;const n=this;n.initErrorHandler(t);n.initLexerAdapter();n.initLooksAhead(t);n.initRecognizerEngine(e,t);n.initRecoverable(t);n.initTreeBuilder(t);n.initContentAssist();n.initGastRecorder(t);n.initPerformanceTracer(t);if((0,o.A)(t,"ignoredIssues")){throw new Error("The IParserConfig property has been deprecated.\n\t"+"Please use the flag on the relevant DSL method instead.\n\t"+"See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n\t"+"For further details.")}this.skipValidations=(0,o.A)(t,"skipValidations")?t.skipValidations:Os.skipValidations}}Us.DEFER_DEFINITION_ERRORS_HANDLING=false;bs(Us,[Mi,Qi,hs,ps,ys,ms,Ts,vs,ws,Ls]);class Fs extends Us{constructor(e,t=Os){const n=(0,l.A)(t);n.outputCst=true;super(e,n)}}class Gs extends Us{constructor(e,t=Os){const n=(0,l.A)(t);n.outputCst=false;super(e,n)}}function Ks(e){const t=new Bs;const n=values(e);return map(n,(e=>t.visitRule(e)))}class Bs extends(null&&GAstVisitor){visitRule(e){const t=this.visitEach(e.definition);const n=groupBy(t,(e=>e.propertyName));const r=map(n,((e,t)=>{const n=!some(e,(e=>!e.canBeNull));let r=e[0].type;if(e.length>1){r=map(e,(e=>e.type))}return{name:t,type:r,optional:n}}));return{name:e.name,properties:r}}visitAlternative(e){return this.visitEachAndOverrideWith(e.definition,{canBeNull:true})}visitOption(e){return this.visitEachAndOverrideWith(e.definition,{canBeNull:true})}visitRepetition(e){return this.visitEachAndOverrideWith(e.definition,{canBeNull:true})}visitRepetitionMandatory(e){return this.visitEach(e.definition)}visitRepetitionMandatoryWithSeparator(e){return this.visitEach(e.definition).concat({propertyName:e.separator.name,canBeNull:true,type:js(e.separator)})}visitRepetitionWithSeparator(e){return this.visitEachAndOverrideWith(e.definition,{canBeNull:true}).concat({propertyName:e.separator.name,canBeNull:true,type:js(e.separator)})}visitAlternation(e){return this.visitEachAndOverrideWith(e.definition,{canBeNull:true})}visitTerminal(e){return[{propertyName:e.label||e.terminalType.name,canBeNull:false,type:js(e)}]}visitNonTerminal(e){return[{propertyName:e.label||e.nonTerminalName,canBeNull:false,type:js(e)}]}visitEachAndOverrideWith(e,t){return map(this.visitEach(e),(e=>assign({},e,t)))}visitEach(e){return flatten(map(e,(e=>this.visit(e))))}}function js(e){if(e instanceof NonTerminal){return{kind:"rule",name:e.referencedRule.name}}return{kind:"token"}}const Vs={includeVisitorInterface:true,visitorInterfaceName:"ICstNodeVisitor"};function Ws(e,t){const n=Object.assign(Object.assign({},Vs),t);const r=buildModel(e);return genDts(r,n)}function Hs(){console.warn("The clearCache function was 'soft' removed from the Chevrotain API."+"\n\t It performs no action other than printing this message."+"\n\t Please avoid using it as it will be completely removed in the future")}class zs{constructor(){throw new Error("The Parser class has been deprecated, use CstParser or EmbeddedActionsParser instead.\t\n"+"See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_7-0-0")}}},37810:(e,t,n)=>{"use strict";n.d(t,{t:()=>Ji,u:()=>es});var r=n(5730);var i=n(70977);var s=n(65811);var a=n(85684);function o(e){const t=[];const n=e.Grammar;for(const r of n.rules){if((0,a.rE)(r)&&(0,i.eb)(r)&&(0,s.lU)((0,i.S)(r))){t.push(r.name)}}return{multilineCommentRules:t,nameRegexp:r.El}}var l=n(50450);var c=n(8937);var u=n(97133);function f(e,t,n){return`${e.name}_${t}_${n}`}const d=0;const h=1;const p=2;const m=4;const g=5;const y=6;const T=7;const v=8;const A=9;const R=10;const E=11;const $=12;class k{constructor(e){this.target=e}isEpsilon(){return false}}class x extends k{constructor(e,t){super(e);this.tokenType=t}}class w extends k{constructor(e){super(e)}isEpsilon(){return true}}class I extends k{constructor(e,t,n){super(e);this.rule=t;this.followState=n}isEpsilon(){return true}}function C(e){const t={decisionMap:{},decisionStates:[],ruleToStartState:new Map,ruleToStopState:new Map,states:[]};S(t,e);const n=e.length;for(let r=0;rN(e,t,n)));const s=B(e,t,r,n,...i);return s}function M(e,t,n){const r=q(e,t,n,{type:h});K(e,r);const i=B(e,t,r,n,D(e,t,n));return G(e,t,n,i)}function D(e,t,n){const r=(0,u.A)((0,c.A)(n.definition,(n=>N(e,t,n))),(e=>e!==undefined));if(r.length===1){return r[0]}else if(r.length===0){return undefined}else{return V(e,r)}}function U(e,t,n,r,i){const s=r.left;const a=r.right;const o=q(e,t,n,{type:E});K(e,o);const l=q(e,t,n,{type:$});s.loopback=o;l.loopback=o;e.decisionMap[f(t,i?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",n.idx)]=o;Y(a,o);if(i===undefined){Y(o,s);Y(o,l)}else{Y(o,l);Y(o,i.left);Y(i.right,s)}return{left:s,right:l}}function F(e,t,n,r,i){const s=r.left;const a=r.right;const o=q(e,t,n,{type:R});K(e,o);const l=q(e,t,n,{type:$});const c=q(e,t,n,{type:A});o.loopback=c;l.loopback=c;Y(o,s);Y(o,l);Y(a,c);if(i!==undefined){Y(c,l);Y(c,i.left);Y(i.right,s)}else{Y(c,o)}e.decisionMap[f(t,i?"RepetitionWithSeparator":"Repetition",n.idx)]=o;return{left:o,right:l}}function G(e,t,n,r){const i=r.left;const s=r.right;Y(i,s);e.decisionMap[f(t,"Option",n.idx)]=i;return r}function K(e,t){e.decisionStates.push(t);t.decision=e.decisionStates.length-1;return t.decision}function B(e,t,n,r,...i){const s=q(e,t,r,{type:v,start:n});n.end=s;for(const o of i){if(o!==undefined){Y(n,o.left);Y(o.right,s)}else{Y(n,s)}}const a={left:n,right:s};e.decisionMap[f(t,j(r),r.idx)]=n;return a}function j(e){if(e instanceof l.ak){return"Alternation"}else if(e instanceof l.c$){return"Option"}else if(e instanceof l.Y2){return"Repetition"}else if(e instanceof l.Pp){return"RepetitionWithSeparator"}else if(e instanceof l.$P){return"RepetitionMandatory"}else if(e instanceof l.Cy){return"RepetitionMandatoryWithSeparator"}else{throw new Error("Invalid production type encountered")}}function V(e,t){const n=t.length;for(let s=0;se.alt))}get key(){let e="";for(const t in this.map){e+=t+":"}return e}}function ee(e,t=true){return`${t?`a${e.alt}`:""}s${e.state.stateNumber}:${e.stack.map((e=>e.stateNumber.toString())).join("_")}`}var te=n(963);var ne=n(57852);var re=n(1121);var ie=n(19363);function se(e,t){return e&&e.length?(0,ie.A)(e,(0,re.A)(t,2)):[]}const ae=se;var oe=n(74033);var le=n(69769);var ce=n(74650);var ue=n(65339);function fe(e,t){const n={};return r=>{const i=r.toString();let s=n[i];if(s!==undefined){return s}else{s={atnStartState:e,decision:t,states:{}};n[i]=s;return s}}}class de{constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,t){this.predicates[e]=t}toString(){let e="";const t=this.predicates.length;for(let n=0;nconsole.log(e)}initialize(e){this.atn=C(e.rules);this.dfas=ge(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){const{prodOccurrence:t,rule:n,hasPredicates:r,dynamicTokensEnabled:i}=e;const s=this.dfas;const a=this.logging;const o=f(n,"Alternation",t);const u=this.atn.decisionMap[o];const d=u.decision;const h=(0,c.A)((0,l.jk)({maxLookahead:1,occurrence:t,prodType:"Alternation",rule:n}),(e=>(0,c.A)(e,(e=>e[0]))));if(me(h,false)&&!i){const e=(0,ue.A)(h,((e,t,n)=>{(0,le.A)(t,(t=>{if(t){e[t.tokenTypeIdx]=n;(0,le.A)(t.categoryMatches,(t=>{e[t]=n}))}}));return e}),{});if(r){return function(t){var n;const r=this.LA(1);const i=e[r.tokenTypeIdx];if(t!==undefined&&i!==undefined){const e=(n=t[i])===null||n===void 0?void 0:n.GATE;if(e!==undefined&&e.call(this)===false){return undefined}}return i}}else{return function(){const t=this.LA(1);return e[t.tokenTypeIdx]}}}else if(r){return function(e){const t=new de;const n=e===undefined?0:e.length;for(let i=0;i(0,c.A)(e,(e=>e[0]))));if(me(h)&&h[0][0]&&!i){const e=h[0];const t=(0,oe.A)(e);if(t.length===1&&(0,ce.A)(t[0].categoryMatches)){const e=t[0];const n=e.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===n}}else{const e=(0,ue.A)(t,((e,t)=>{if(t!==undefined){e[t.tokenTypeIdx]=true;(0,le.A)(t.categoryMatches,(t=>{e[t]=true}))}return e}),{});return function(){const t=this.LA(1);return e[t.tokenTypeIdx]===true}}}return function(){const e=ye.call(this,s,d,he,a);return typeof e==="object"?false:e===0}}}function me(e,t=true){const n=new Set;for(const r of e){const e=new Set;for(const i of r){if(i===undefined){if(t){break}else{return false}}const r=[i.tokenTypeIdx].concat(i.categoryMatches);for(const t of r){if(n.has(t)){if(!e.has(t)){return false}}else{n.add(t);e.add(t)}}}}return true}function ge(e){const t=e.decisionStates.length;const n=Array(t);for(let r=0;r(0,l.Sk)(e))).join(", ");const n=e.production.idx===0?"":e.production.idx;let r=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(", ")}> in <${Ee(e.production)}${n}>`+` inside <${e.topLevelRule.name}> Rule,\n`+`<${t}> may appears as a prefix path in all these alternatives.\n`;r=r+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\n`+`For Further details.`;return r}function Ee(e){if(e instanceof l.wL){return"SUBRULE"}else if(e instanceof l.c$){return"OPTION"}else if(e instanceof l.ak){return"OR"}else if(e instanceof l.$P){return"AT_LEAST_ONE"}else if(e instanceof l.Cy){return"AT_LEAST_ONE_SEP"}else if(e instanceof l.Pp){return"MANY_SEP"}else if(e instanceof l.Y2){return"MANY"}else if(e instanceof l.BK){return"CONSUME"}else{throw Error("non exhaustive match")}}function $e(e,t,n){const r=(0,ne.A)(t.configs.elements,(e=>e.state.transitions));const i=ae(r.filter((e=>e instanceof x)).map((e=>e.tokenType)),(e=>e.tokenTypeIdx));return{actualToken:n,possibleTokenTypes:i,tokenPath:e}}function ke(e,t){return e.edges[t.tokenTypeIdx]}function xe(e,t,n){const r=new J;const i=[];for(const a of e.elements){if(n.is(a.alt)===false){continue}if(a.state.type===T){i.push(a);continue}const e=a.state.transitions.length;for(let n=0;n0&&!Oe(s)){for(const e of i){s.add(e)}}return s}function we(e,t){if(e instanceof x&&(0,l.G)(t,e.tokenType)){return e.target}return undefined}function Ie(e,t){let n;for(const r of e.elements){if(t.is(r.alt)===true){if(n===undefined){n=r.alt}else if(n!==r.alt){return undefined}}}return n}function Ce(e){return{configs:e,edges:{},isAcceptState:false,prediction:-1}}function Se(e,t,n,r){r=Ne(e,r);t.edges[n.tokenTypeIdx]=r;return r}function Ne(e,t){if(t===Z){return t}const n=t.configs.key;const r=e.states[n];if(r!==undefined){return r}t.configs.finalize();e.states[n]=t;return t}function Le(e){const t=new J;const n=e.transitions.length;for(let r=0;r0){const n=[...e.stack];const r=n.pop();const i={state:r,alt:e.alt,stack:n};be(i,t)}else{t.add(e)}return}if(!n.epsilonOnlyTransitions){t.add(e)}const r=n.transitions.length;for(let i=0;i1){return true}}return false}function Fe(e){for(const t of Array.from(e.values())){if(Object.keys(t).length===1){return true}}return false}var Ge=n(63752);var Ke;(function(e){function t(e){return typeof e==="string"}e.is=t})(Ke||(Ke={}));var Be;(function(e){function t(e){return typeof e==="string"}e.is=t})(Be||(Be={}));var je;(function(e){e.MIN_VALUE=-2147483648;e.MAX_VALUE=2147483647;function t(t){return typeof t==="number"&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.is=t})(je||(je={}));var Ve;(function(e){e.MIN_VALUE=0;e.MAX_VALUE=2147483647;function t(t){return typeof t==="number"&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}e.is=t})(Ve||(Ve={}));var We;(function(e){function t(e,t){if(e===Number.MAX_VALUE){e=Ve.MAX_VALUE}if(t===Number.MAX_VALUE){t=Ve.MAX_VALUE}return{line:e,character:t}}e.create=t;function n(e){let t=e;return Tn.objectLiteral(t)&&Tn.uinteger(t.line)&&Tn.uinteger(t.character)}e.is=n})(We||(We={}));var He;(function(e){function t(e,t,n,r){if(Tn.uinteger(e)&&Tn.uinteger(t)&&Tn.uinteger(n)&&Tn.uinteger(r)){return{start:We.create(e,t),end:We.create(n,r)}}else if(We.is(e)&&We.is(t)){return{start:e,end:t}}else{throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)}}e.create=t;function n(e){let t=e;return Tn.objectLiteral(t)&&We.is(t.start)&&We.is(t.end)}e.is=n})(He||(He={}));var ze;(function(e){function t(e,t){return{uri:e,range:t}}e.create=t;function n(e){let t=e;return Tn.objectLiteral(t)&&He.is(t.range)&&(Tn.string(t.uri)||Tn.undefined(t.uri))}e.is=n})(ze||(ze={}));var Ye;(function(e){function t(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}}e.create=t;function n(e){let t=e;return Tn.objectLiteral(t)&&He.is(t.targetRange)&&Tn.string(t.targetUri)&&He.is(t.targetSelectionRange)&&(He.is(t.originSelectionRange)||Tn.undefined(t.originSelectionRange))}e.is=n})(Ye||(Ye={}));var qe;(function(e){function t(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}}e.create=t;function n(e){const t=e;return Tn.objectLiteral(t)&&Tn.numberRange(t.red,0,1)&&Tn.numberRange(t.green,0,1)&&Tn.numberRange(t.blue,0,1)&&Tn.numberRange(t.alpha,0,1)}e.is=n})(qe||(qe={}));var Xe;(function(e){function t(e,t){return{range:e,color:t}}e.create=t;function n(e){const t=e;return Tn.objectLiteral(t)&&He.is(t.range)&&qe.is(t.color)}e.is=n})(Xe||(Xe={}));var Qe;(function(e){function t(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}}e.create=t;function n(e){const t=e;return Tn.objectLiteral(t)&&Tn.string(t.label)&&(Tn.undefined(t.textEdit)||at.is(t))&&(Tn.undefined(t.additionalTextEdits)||Tn.typedArray(t.additionalTextEdits,at.is))}e.is=n})(Qe||(Qe={}));var Ze;(function(e){e.Comment="comment";e.Imports="imports";e.Region="region"})(Ze||(Ze={}));var Je;(function(e){function t(e,t,n,r,i,s){const a={startLine:e,endLine:t};if(Tn.defined(n)){a.startCharacter=n}if(Tn.defined(r)){a.endCharacter=r}if(Tn.defined(i)){a.kind=i}if(Tn.defined(s)){a.collapsedText=s}return a}e.create=t;function n(e){const t=e;return Tn.objectLiteral(t)&&Tn.uinteger(t.startLine)&&Tn.uinteger(t.startLine)&&(Tn.undefined(t.startCharacter)||Tn.uinteger(t.startCharacter))&&(Tn.undefined(t.endCharacter)||Tn.uinteger(t.endCharacter))&&(Tn.undefined(t.kind)||Tn.string(t.kind))}e.is=n})(Je||(Je={}));var et;(function(e){function t(e,t){return{location:e,message:t}}e.create=t;function n(e){let t=e;return Tn.defined(t)&&ze.is(t.location)&&Tn.string(t.message)}e.is=n})(et||(et={}));var tt;(function(e){e.Error=1;e.Warning=2;e.Information=3;e.Hint=4})(tt||(tt={}));var nt;(function(e){e.Unnecessary=1;e.Deprecated=2})(nt||(nt={}));var rt;(function(e){function t(e){const t=e;return Tn.objectLiteral(t)&&Tn.string(t.href)}e.is=t})(rt||(rt={}));var it;(function(e){function t(e,t,n,r,i,s){let a={range:e,message:t};if(Tn.defined(n)){a.severity=n}if(Tn.defined(r)){a.code=r}if(Tn.defined(i)){a.source=i}if(Tn.defined(s)){a.relatedInformation=s}return a}e.create=t;function n(e){var t;let n=e;return Tn.defined(n)&&He.is(n.range)&&Tn.string(n.message)&&(Tn.number(n.severity)||Tn.undefined(n.severity))&&(Tn.integer(n.code)||Tn.string(n.code)||Tn.undefined(n.code))&&(Tn.undefined(n.codeDescription)||Tn.string((t=n.codeDescription)===null||t===void 0?void 0:t.href))&&(Tn.string(n.source)||Tn.undefined(n.source))&&(Tn.undefined(n.relatedInformation)||Tn.typedArray(n.relatedInformation,et.is))}e.is=n})(it||(it={}));var st;(function(e){function t(e,t,...n){let r={title:e,command:t};if(Tn.defined(n)&&n.length>0){r.arguments=n}return r}e.create=t;function n(e){let t=e;return Tn.defined(t)&&Tn.string(t.title)&&Tn.string(t.command)}e.is=n})(st||(st={}));var at;(function(e){function t(e,t){return{range:e,newText:t}}e.replace=t;function n(e,t){return{range:{start:e,end:e},newText:t}}e.insert=n;function r(e){return{range:e,newText:""}}e.del=r;function i(e){const t=e;return Tn.objectLiteral(t)&&Tn.string(t.newText)&&He.is(t.range)}e.is=i})(at||(at={}));var ot;(function(e){function t(e,t,n){const r={label:e};if(t!==undefined){r.needsConfirmation=t}if(n!==undefined){r.description=n}return r}e.create=t;function n(e){const t=e;return Tn.objectLiteral(t)&&Tn.string(t.label)&&(Tn.boolean(t.needsConfirmation)||t.needsConfirmation===undefined)&&(Tn.string(t.description)||t.description===undefined)}e.is=n})(ot||(ot={}));var lt;(function(e){function t(e){const t=e;return Tn.string(t)}e.is=t})(lt||(lt={}));var ct;(function(e){function t(e,t,n){return{range:e,newText:t,annotationId:n}}e.replace=t;function n(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}}e.insert=n;function r(e,t){return{range:e,newText:"",annotationId:t}}e.del=r;function i(e){const t=e;return at.is(t)&&(ot.is(t.annotationId)||lt.is(t.annotationId))}e.is=i})(ct||(ct={}));var ut;(function(e){function t(e,t){return{textDocument:e,edits:t}}e.create=t;function n(e){let t=e;return Tn.defined(t)&&At.is(t.textDocument)&&Array.isArray(t.edits)}e.is=n})(ut||(ut={}));var ft;(function(e){function t(e,t,n){let r={kind:"create",uri:e};if(t!==undefined&&(t.overwrite!==undefined||t.ignoreIfExists!==undefined)){r.options=t}if(n!==undefined){r.annotationId=n}return r}e.create=t;function n(e){let t=e;return t&&t.kind==="create"&&Tn.string(t.uri)&&(t.options===undefined||(t.options.overwrite===undefined||Tn.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===undefined||Tn.boolean(t.options.ignoreIfExists)))&&(t.annotationId===undefined||lt.is(t.annotationId))}e.is=n})(ft||(ft={}));var dt;(function(e){function t(e,t,n,r){let i={kind:"rename",oldUri:e,newUri:t};if(n!==undefined&&(n.overwrite!==undefined||n.ignoreIfExists!==undefined)){i.options=n}if(r!==undefined){i.annotationId=r}return i}e.create=t;function n(e){let t=e;return t&&t.kind==="rename"&&Tn.string(t.oldUri)&&Tn.string(t.newUri)&&(t.options===undefined||(t.options.overwrite===undefined||Tn.boolean(t.options.overwrite))&&(t.options.ignoreIfExists===undefined||Tn.boolean(t.options.ignoreIfExists)))&&(t.annotationId===undefined||lt.is(t.annotationId))}e.is=n})(dt||(dt={}));var ht;(function(e){function t(e,t,n){let r={kind:"delete",uri:e};if(t!==undefined&&(t.recursive!==undefined||t.ignoreIfNotExists!==undefined)){r.options=t}if(n!==undefined){r.annotationId=n}return r}e.create=t;function n(e){let t=e;return t&&t.kind==="delete"&&Tn.string(t.uri)&&(t.options===undefined||(t.options.recursive===undefined||Tn.boolean(t.options.recursive))&&(t.options.ignoreIfNotExists===undefined||Tn.boolean(t.options.ignoreIfNotExists)))&&(t.annotationId===undefined||lt.is(t.annotationId))}e.is=n})(ht||(ht={}));var pt;(function(e){function t(e){let t=e;return t&&(t.changes!==undefined||t.documentChanges!==undefined)&&(t.documentChanges===undefined||t.documentChanges.every((e=>{if(Tn.string(e.kind)){return ft.is(e)||dt.is(e)||ht.is(e)}else{return ut.is(e)}})))}e.is=t})(pt||(pt={}));class mt{constructor(e,t){this.edits=e;this.changeAnnotations=t}insert(e,t,n){let r;let i;if(n===undefined){r=at.insert(e,t)}else if(lt.is(n)){i=n;r=ct.insert(e,t,n)}else{this.assertChangeAnnotations(this.changeAnnotations);i=this.changeAnnotations.manage(n);r=ct.insert(e,t,i)}this.edits.push(r);if(i!==undefined){return i}}replace(e,t,n){let r;let i;if(n===undefined){r=at.replace(e,t)}else if(lt.is(n)){i=n;r=ct.replace(e,t,n)}else{this.assertChangeAnnotations(this.changeAnnotations);i=this.changeAnnotations.manage(n);r=ct.replace(e,t,i)}this.edits.push(r);if(i!==undefined){return i}}delete(e,t){let n;let r;if(t===undefined){n=at.del(e)}else if(lt.is(t)){r=t;n=ct.del(e,t)}else{this.assertChangeAnnotations(this.changeAnnotations);r=this.changeAnnotations.manage(t);n=ct.del(e,r)}this.edits.push(n);if(r!==undefined){return r}}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(e===undefined){throw new Error(`Text edit change is not configured to manage change annotations.`)}}}class gt{constructor(e){this._annotations=e===undefined?Object.create(null):e;this._counter=0;this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let n;if(lt.is(e)){n=e}else{n=this.nextId();t=e}if(this._annotations[n]!==undefined){throw new Error(`Id ${n} is already in use.`)}if(t===undefined){throw new Error(`No annotation provided for id ${n}`)}this._annotations[n]=t;this._size++;return n}nextId(){this._counter++;return this._counter.toString()}}class yt{constructor(e){this._textEditChanges=Object.create(null);if(e!==undefined){this._workspaceEdit=e;if(e.documentChanges){this._changeAnnotations=new gt(e.changeAnnotations);e.changeAnnotations=this._changeAnnotations.all();e.documentChanges.forEach((e=>{if(ut.is(e)){const t=new mt(e.edits,this._changeAnnotations);this._textEditChanges[e.textDocument.uri]=t}}))}else if(e.changes){Object.keys(e.changes).forEach((t=>{const n=new mt(e.changes[t]);this._textEditChanges[t]=n}))}}else{this._workspaceEdit={}}}get edit(){this.initDocumentChanges();if(this._changeAnnotations!==undefined){if(this._changeAnnotations.size===0){this._workspaceEdit.changeAnnotations=undefined}else{this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()}}return this._workspaceEdit}getTextEditChange(e){if(At.is(e)){this.initDocumentChanges();if(this._workspaceEdit.documentChanges===undefined){throw new Error("Workspace edit is not configured for document changes.")}const t={uri:e.uri,version:e.version};let n=this._textEditChanges[t.uri];if(!n){const e=[];const r={textDocument:t,edits:e};this._workspaceEdit.documentChanges.push(r);n=new mt(e,this._changeAnnotations);this._textEditChanges[t.uri]=n}return n}else{this.initChanges();if(this._workspaceEdit.changes===undefined){throw new Error("Workspace edit is not configured for normal text edit changes.")}let t=this._textEditChanges[e];if(!t){let n=[];this._workspaceEdit.changes[e]=n;t=new mt(n);this._textEditChanges[e]=t}return t}}initDocumentChanges(){if(this._workspaceEdit.documentChanges===undefined&&this._workspaceEdit.changes===undefined){this._changeAnnotations=new gt;this._workspaceEdit.documentChanges=[];this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()}}initChanges(){if(this._workspaceEdit.documentChanges===undefined&&this._workspaceEdit.changes===undefined){this._workspaceEdit.changes=Object.create(null)}}createFile(e,t,n){this.initDocumentChanges();if(this._workspaceEdit.documentChanges===undefined){throw new Error("Workspace edit is not configured for document changes.")}let r;if(ot.is(t)||lt.is(t)){r=t}else{n=t}let i;let s;if(r===undefined){i=ft.create(e,n)}else{s=lt.is(r)?r:this._changeAnnotations.manage(r);i=ft.create(e,n,s)}this._workspaceEdit.documentChanges.push(i);if(s!==undefined){return s}}renameFile(e,t,n,r){this.initDocumentChanges();if(this._workspaceEdit.documentChanges===undefined){throw new Error("Workspace edit is not configured for document changes.")}let i;if(ot.is(n)||lt.is(n)){i=n}else{r=n}let s;let a;if(i===undefined){s=dt.create(e,t,r)}else{a=lt.is(i)?i:this._changeAnnotations.manage(i);s=dt.create(e,t,r,a)}this._workspaceEdit.documentChanges.push(s);if(a!==undefined){return a}}deleteFile(e,t,n){this.initDocumentChanges();if(this._workspaceEdit.documentChanges===undefined){throw new Error("Workspace edit is not configured for document changes.")}let r;if(ot.is(t)||lt.is(t)){r=t}else{n=t}let i;let s;if(r===undefined){i=ht.create(e,n)}else{s=lt.is(r)?r:this._changeAnnotations.manage(r);i=ht.create(e,n,s)}this._workspaceEdit.documentChanges.push(i);if(s!==undefined){return s}}}var Tt;(function(e){function t(e){return{uri:e}}e.create=t;function n(e){let t=e;return Tn.defined(t)&&Tn.string(t.uri)}e.is=n})(Tt||(Tt={}));var vt;(function(e){function t(e,t){return{uri:e,version:t}}e.create=t;function n(e){let t=e;return Tn.defined(t)&&Tn.string(t.uri)&&Tn.integer(t.version)}e.is=n})(vt||(vt={}));var At;(function(e){function t(e,t){return{uri:e,version:t}}e.create=t;function n(e){let t=e;return Tn.defined(t)&&Tn.string(t.uri)&&(t.version===null||Tn.integer(t.version))}e.is=n})(At||(At={}));var Rt;(function(e){function t(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}}e.create=t;function n(e){let t=e;return Tn.defined(t)&&Tn.string(t.uri)&&Tn.string(t.languageId)&&Tn.integer(t.version)&&Tn.string(t.text)}e.is=n})(Rt||(Rt={}));var Et;(function(e){e.PlainText="plaintext";e.Markdown="markdown";function t(t){const n=t;return n===e.PlainText||n===e.Markdown}e.is=t})(Et||(Et={}));var $t;(function(e){function t(e){const t=e;return Tn.objectLiteral(e)&&Et.is(t.kind)&&Tn.string(t.value)}e.is=t})($t||($t={}));var kt;(function(e){e.Text=1;e.Method=2;e.Function=3;e.Constructor=4;e.Field=5;e.Variable=6;e.Class=7;e.Interface=8;e.Module=9;e.Property=10;e.Unit=11;e.Value=12;e.Enum=13;e.Keyword=14;e.Snippet=15;e.Color=16;e.File=17;e.Reference=18;e.Folder=19;e.EnumMember=20;e.Constant=21;e.Struct=22;e.Event=23;e.Operator=24;e.TypeParameter=25})(kt||(kt={}));var xt;(function(e){e.PlainText=1;e.Snippet=2})(xt||(xt={}));var wt;(function(e){e.Deprecated=1})(wt||(wt={}));var It;(function(e){function t(e,t,n){return{newText:e,insert:t,replace:n}}e.create=t;function n(e){const t=e;return t&&Tn.string(t.newText)&&He.is(t.insert)&&He.is(t.replace)}e.is=n})(It||(It={}));var Ct;(function(e){e.asIs=1;e.adjustIndentation=2})(Ct||(Ct={}));var St;(function(e){function t(e){const t=e;return t&&(Tn.string(t.detail)||t.detail===undefined)&&(Tn.string(t.description)||t.description===undefined)}e.is=t})(St||(St={}));var Nt;(function(e){function t(e){return{label:e}}e.create=t})(Nt||(Nt={}));var Lt;(function(e){function t(e,t){return{items:e?e:[],isIncomplete:!!t}}e.create=t})(Lt||(Lt={}));var bt;(function(e){function t(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(e){const t=e;return Tn.string(t)||Tn.objectLiteral(t)&&Tn.string(t.language)&&Tn.string(t.value)}e.is=n})(bt||(bt={}));var _t;(function(e){function t(e){let t=e;return!!t&&Tn.objectLiteral(t)&&($t.is(t.contents)||bt.is(t.contents)||Tn.typedArray(t.contents,bt.is))&&(e.range===undefined||He.is(e.range))}e.is=t})(_t||(_t={}));var Ot;(function(e){function t(e,t){return t?{label:e,documentation:t}:{label:e}}e.create=t})(Ot||(Ot={}));var Pt;(function(e){function t(e,t,...n){let r={label:e};if(Tn.defined(t)){r.documentation=t}if(Tn.defined(n)){r.parameters=n}else{r.parameters=[]}return r}e.create=t})(Pt||(Pt={}));var Mt;(function(e){e.Text=1;e.Read=2;e.Write=3})(Mt||(Mt={}));var Dt;(function(e){function t(e,t){let n={range:e};if(Tn.number(t)){n.kind=t}return n}e.create=t})(Dt||(Dt={}));var Ut;(function(e){e.File=1;e.Module=2;e.Namespace=3;e.Package=4;e.Class=5;e.Method=6;e.Property=7;e.Field=8;e.Constructor=9;e.Enum=10;e.Interface=11;e.Function=12;e.Variable=13;e.Constant=14;e.String=15;e.Number=16;e.Boolean=17;e.Array=18;e.Object=19;e.Key=20;e.Null=21;e.EnumMember=22;e.Struct=23;e.Event=24;e.Operator=25;e.TypeParameter=26})(Ut||(Ut={}));var Ft;(function(e){e.Deprecated=1})(Ft||(Ft={}));var Gt;(function(e){function t(e,t,n,r,i){let s={name:e,kind:t,location:{uri:r,range:n}};if(i){s.containerName=i}return s}e.create=t})(Gt||(Gt={}));var Kt;(function(e){function t(e,t,n,r){return r!==undefined?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}}e.create=t})(Kt||(Kt={}));var Bt;(function(e){function t(e,t,n,r,i,s){let a={name:e,detail:t,kind:n,range:r,selectionRange:i};if(s!==undefined){a.children=s}return a}e.create=t;function n(e){let t=e;return t&&Tn.string(t.name)&&Tn.number(t.kind)&&He.is(t.range)&&He.is(t.selectionRange)&&(t.detail===undefined||Tn.string(t.detail))&&(t.deprecated===undefined||Tn.boolean(t.deprecated))&&(t.children===undefined||Array.isArray(t.children))&&(t.tags===undefined||Array.isArray(t.tags))}e.is=n})(Bt||(Bt={}));var jt;(function(e){e.Empty="";e.QuickFix="quickfix";e.Refactor="refactor";e.RefactorExtract="refactor.extract";e.RefactorInline="refactor.inline";e.RefactorRewrite="refactor.rewrite";e.Source="source";e.SourceOrganizeImports="source.organizeImports";e.SourceFixAll="source.fixAll"})(jt||(jt={}));var Vt;(function(e){e.Invoked=1;e.Automatic=2})(Vt||(Vt={}));var Wt;(function(e){function t(e,t,n){let r={diagnostics:e};if(t!==undefined&&t!==null){r.only=t}if(n!==undefined&&n!==null){r.triggerKind=n}return r}e.create=t;function n(e){let t=e;return Tn.defined(t)&&Tn.typedArray(t.diagnostics,it.is)&&(t.only===undefined||Tn.typedArray(t.only,Tn.string))&&(t.triggerKind===undefined||t.triggerKind===Vt.Invoked||t.triggerKind===Vt.Automatic)}e.is=n})(Wt||(Wt={}));var Ht;(function(e){function t(e,t,n){let r={title:e};let i=true;if(typeof t==="string"){i=false;r.kind=t}else if(st.is(t)){r.command=t}else{r.edit=t}if(i&&n!==undefined){r.kind=n}return r}e.create=t;function n(e){let t=e;return t&&Tn.string(t.title)&&(t.diagnostics===undefined||Tn.typedArray(t.diagnostics,it.is))&&(t.kind===undefined||Tn.string(t.kind))&&(t.edit!==undefined||t.command!==undefined)&&(t.command===undefined||st.is(t.command))&&(t.isPreferred===undefined||Tn.boolean(t.isPreferred))&&(t.edit===undefined||pt.is(t.edit))}e.is=n})(Ht||(Ht={}));var zt;(function(e){function t(e,t){let n={range:e};if(Tn.defined(t)){n.data=t}return n}e.create=t;function n(e){let t=e;return Tn.defined(t)&&He.is(t.range)&&(Tn.undefined(t.command)||st.is(t.command))}e.is=n})(zt||(zt={}));var Yt;(function(e){function t(e,t){return{tabSize:e,insertSpaces:t}}e.create=t;function n(e){let t=e;return Tn.defined(t)&&Tn.uinteger(t.tabSize)&&Tn.boolean(t.insertSpaces)}e.is=n})(Yt||(Yt={}));var qt;(function(e){function t(e,t,n){return{range:e,target:t,data:n}}e.create=t;function n(e){let t=e;return Tn.defined(t)&&He.is(t.range)&&(Tn.undefined(t.target)||Tn.string(t.target))}e.is=n})(qt||(qt={}));var Xt;(function(e){function t(e,t){return{range:e,parent:t}}e.create=t;function n(t){let n=t;return Tn.objectLiteral(n)&&He.is(n.range)&&(n.parent===undefined||e.is(n.parent))}e.is=n})(Xt||(Xt={}));var Qt;(function(e){e["namespace"]="namespace";e["type"]="type";e["class"]="class";e["enum"]="enum";e["interface"]="interface";e["struct"]="struct";e["typeParameter"]="typeParameter";e["parameter"]="parameter";e["variable"]="variable";e["property"]="property";e["enumMember"]="enumMember";e["event"]="event";e["function"]="function";e["method"]="method";e["macro"]="macro";e["keyword"]="keyword";e["modifier"]="modifier";e["comment"]="comment";e["string"]="string";e["number"]="number";e["regexp"]="regexp";e["operator"]="operator";e["decorator"]="decorator"})(Qt||(Qt={}));var Zt;(function(e){e["declaration"]="declaration";e["definition"]="definition";e["readonly"]="readonly";e["static"]="static";e["deprecated"]="deprecated";e["abstract"]="abstract";e["async"]="async";e["modification"]="modification";e["documentation"]="documentation";e["defaultLibrary"]="defaultLibrary"})(Zt||(Zt={}));var Jt;(function(e){function t(e){const t=e;return Tn.objectLiteral(t)&&(t.resultId===undefined||typeof t.resultId==="string")&&Array.isArray(t.data)&&(t.data.length===0||typeof t.data[0]==="number")}e.is=t})(Jt||(Jt={}));var en;(function(e){function t(e,t){return{range:e,text:t}}e.create=t;function n(e){const t=e;return t!==undefined&&t!==null&&He.is(t.range)&&Tn.string(t.text)}e.is=n})(en||(en={}));var tn;(function(e){function t(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}}e.create=t;function n(e){const t=e;return t!==undefined&&t!==null&&He.is(t.range)&&Tn.boolean(t.caseSensitiveLookup)&&(Tn.string(t.variableName)||t.variableName===undefined)}e.is=n})(tn||(tn={}));var nn;(function(e){function t(e,t){return{range:e,expression:t}}e.create=t;function n(e){const t=e;return t!==undefined&&t!==null&&He.is(t.range)&&(Tn.string(t.expression)||t.expression===undefined)}e.is=n})(nn||(nn={}));var rn;(function(e){function t(e,t){return{frameId:e,stoppedLocation:t}}e.create=t;function n(e){const t=e;return Tn.defined(t)&&He.is(e.stoppedLocation)}e.is=n})(rn||(rn={}));var sn;(function(e){e.Type=1;e.Parameter=2;function t(e){return e===1||e===2}e.is=t})(sn||(sn={}));var an;(function(e){function t(e){return{value:e}}e.create=t;function n(e){const t=e;return Tn.objectLiteral(t)&&(t.tooltip===undefined||Tn.string(t.tooltip)||$t.is(t.tooltip))&&(t.location===undefined||ze.is(t.location))&&(t.command===undefined||st.is(t.command))}e.is=n})(an||(an={}));var on;(function(e){function t(e,t,n){const r={position:e,label:t};if(n!==undefined){r.kind=n}return r}e.create=t;function n(e){const t=e;return Tn.objectLiteral(t)&&We.is(t.position)&&(Tn.string(t.label)||Tn.typedArray(t.label,an.is))&&(t.kind===undefined||sn.is(t.kind))&&t.textEdits===undefined||Tn.typedArray(t.textEdits,at.is)&&(t.tooltip===undefined||Tn.string(t.tooltip)||$t.is(t.tooltip))&&(t.paddingLeft===undefined||Tn.boolean(t.paddingLeft))&&(t.paddingRight===undefined||Tn.boolean(t.paddingRight))}e.is=n})(on||(on={}));var ln;(function(e){function t(e){return{kind:"snippet",value:e}}e.createSnippet=t})(ln||(ln={}));var cn;(function(e){function t(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}e.create=t})(cn||(cn={}));var un;(function(e){function t(e){return{items:e}}e.create=t})(un||(un={}));var fn;(function(e){e.Invoked=0;e.Automatic=1})(fn||(fn={}));var dn;(function(e){function t(e,t){return{range:e,text:t}}e.create=t})(dn||(dn={}));var hn;(function(e){function t(e,t){return{triggerKind:e,selectedCompletionInfo:t}}e.create=t})(hn||(hn={}));var pn;(function(e){function t(e){const t=e;return Tn.objectLiteral(t)&&Be.is(t.uri)&&Tn.string(t.name)}e.is=t})(pn||(pn={}));const mn=null&&["\n","\r\n","\r"];var gn;(function(e){function t(e,t,n,r){return new yn(e,t,n,r)}e.create=t;function n(e){let t=e;return Tn.defined(t)&&Tn.string(t.uri)&&(Tn.undefined(t.languageId)||Tn.string(t.languageId))&&Tn.uinteger(t.lineCount)&&Tn.func(t.getText)&&Tn.func(t.positionAt)&&Tn.func(t.offsetAt)?true:false}e.is=n;function r(e,t){let n=e.getText();let r=i(t,((e,t)=>{let n=e.range.start.line-t.range.start.line;if(n===0){return e.range.start.character-t.range.start.character}return n}));let s=n.length;for(let i=r.length-1;i>=0;i--){let t=r[i];let a=e.offsetAt(t.range.start);let o=e.offsetAt(t.range.end);if(o<=s){n=n.substring(0,a)+t.newText+n.substring(o,n.length)}else{throw new Error("Overlapping edit")}s=a}return n}e.applyEdits=r;function i(e,t){if(e.length<=1){return e}const n=e.length/2|0;const r=e.slice(0,n);const s=e.slice(n);i(r,t);i(s,t);let a=0;let o=0;let l=0;while(a0){e.push(t.length)}this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets();let n=0,r=t.length;if(r===0){return We.create(0,e)}while(ne){r=i}else{n=i+1}}let i=n-1;return We.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length){return this._content.length}else if(e.line<0){return 0}let n=t[e.line];let r=e.line+1=0){t.content.splice(n,1)}}}addHiddenNodes(e){const t=[];for(const s of e){const e=new Rn(s.startOffset,s.image.length,(0,r.wf)(s),s.tokenType,true);e.root=this.rootNode;t.push(e)}let n=this.current;let i=false;if(n.content.length>0){n.content.push(...t);return}while(n.container){const e=n.container.content.indexOf(n);if(e>0){n.container.content.splice(e,0,...t);i=true;break}n=n.container}if(!i){this.rootNode.content.unshift(...t)}}construct(e){const t=this.current;if(typeof e.$type==="string"){this.current.astNode=e}e.$cstNode=t;const n=this.nodeStack.pop();if((n===null||n===void 0?void 0:n.content.length)===0){this.removeNode(n)}}}class An{get parent(){return this.container}get feature(){return this.grammarSource}get hidden(){return false}get astNode(){var e,t;const n=typeof((e=this._astNode)===null||e===void 0?void 0:e.$type)==="string"?this._astNode:(t=this.container)===null||t===void 0?void 0:t.astNode;if(!n){throw new Error("This node has no associated AST element")}return n}set astNode(e){this._astNode=e}get element(){return this.astNode}get text(){return this.root.fullText.substring(this.offset,this.end)}}class Rn extends An{get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get range(){return this._range}constructor(e,t,n,r,i=false){super();this._hidden=i;this._offset=e;this._tokenType=r;this._length=t;this._range=n}}class En extends An{constructor(){super(...arguments);this.content=new $n(this)}get children(){return this.content}get offset(){var e,t;return(t=(e=this.firstNonHiddenNode)===null||e===void 0?void 0:e.offset)!==null&&t!==void 0?t:0}get length(){return this.end-this.offset}get end(){var e,t;return(t=(e=this.lastNonHiddenNode)===null||e===void 0?void 0:e.end)!==null&&t!==void 0?t:0}get range(){const e=this.firstNonHiddenNode;const t=this.lastNonHiddenNode;if(e&&t){if(this._rangeCache===undefined){const{range:n}=e;const{range:r}=t;this._rangeCache={start:n.start,end:r.end.line=0;e--){const t=this.content[e];if(!t.hidden){return t}}return this.content[this.content.length-1]}}class $n extends Array{constructor(e){super();this.parent=e;Object.setPrototypeOf(this,$n.prototype)}push(...e){this.addParents(e);return super.push(...e)}unshift(...e){this.addParents(e);return super.unshift(...e)}splice(e,t,...n){this.addParents(n);return super.splice(e,t,...n)}addParents(e){for(const t of e){t.container=this.parent}}}class kn extends En{get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super();this._text="";this._text=e!==null&&e!==void 0?e:""}}const xn=Symbol("Datatype");function wn(e){return e.$type===xn}const In="​";const Cn=e=>e.endsWith(In)?e:e+In;class Sn{constructor(e){this._unorderedGroups=new Map;this.allRules=new Map;this.lexer=e.parser.Lexer;const t=this.lexer.definition;const n=e.LanguageMetaData.mode==="production";this.wrapper=new Pn(t,Object.assign(Object.assign({},e.parser.ParserConfig),{skipValidations:n,errorMessageProvider:e.parser.ParserErrorMessageProvider}))}alternatives(e,t){this.wrapper.wrapOr(e,t)}optional(e,t){this.wrapper.wrapOption(e,t)}many(e,t){this.wrapper.wrapMany(e,t)}atLeastOne(e,t){this.wrapper.wrapAtLeastOne(e,t)}getRule(e){return this.allRules.get(e)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}}class Nn extends Sn{get current(){return this.stack[this.stack.length-1]}constructor(e){super(e);this.nodeBuilder=new vn;this.stack=[];this.assignmentMap=new Map;this.linker=e.references.Linker;this.converter=e.parser.ValueConverter;this.astReflection=e.shared.AstReflection}rule(e,t){const n=this.computeRuleType(e);const r=this.wrapper.DEFINE_RULE(Cn(e.name),this.startImplementation(n,t).bind(this));this.allRules.set(e.name,r);if(e.entry){this.mainRule=r}return r}computeRuleType(e){if(e.fragment){return undefined}else if((0,i.Xq)(e)){return xn}else{const t=(0,i.PV)(e);return t!==null&&t!==void 0?t:e.name}}parse(e,t={}){this.nodeBuilder.buildRootNode(e);const n=this.lexerResult=this.lexer.tokenize(e);this.wrapper.input=n.tokens;const r=t.rule?this.allRules.get(t.rule):this.mainRule;if(!r){throw new Error(t.rule?`No rule found with name '${t.rule}'`:"No main rule available.")}const i=r.call(this.wrapper,{});this.nodeBuilder.addHiddenNodes(n.hidden);this.unorderedGroups.clear();this.lexerResult=undefined;return{value:i,lexerErrors:n.errors,lexerReport:n.report,parserErrors:this.wrapper.errors}}startImplementation(e,t){return n=>{const r=!this.isRecording()&&e!==undefined;if(r){const t={$type:e};this.stack.push(t);if(e===xn){t.value=""}}let i;try{i=t(n)}catch(s){i=undefined}if(i===undefined&&r){i=this.construct()}return i}}extractHiddenTokens(e){const t=this.lexerResult.hidden;if(!t.length){return[]}const n=e.startOffset;for(let r=0;rn){return t.splice(0,r)}}return t.splice(0,t.length)}consume(e,t,n){const r=this.wrapper.wrapConsume(e,t);if(!this.isRecording()&&this.isValidToken(r)){const e=this.extractHiddenTokens(r);this.nodeBuilder.addHiddenNodes(e);const t=this.nodeBuilder.buildLeafNode(r,n);const{assignment:i,isCrossRef:s}=this.getAssignment(n);const o=this.current;if(i){const e=(0,a.wb)(n)?r.image:this.converter.convert(r.image,t);this.assign(i.operator,i.feature,e,t,s)}else if(wn(o)){let e=r.image;if(!(0,a.wb)(n)){e=this.converter.convert(e,t).toString()}o.value+=e}}}isValidToken(e){return!e.isInsertedInRecovery&&!isNaN(e.startOffset)&&typeof e.endOffset==="number"&&!isNaN(e.endOffset)}subrule(e,t,n,r,i){let s;if(!this.isRecording()&&!n){s=this.nodeBuilder.buildCompositeNode(r)}const a=this.wrapper.wrapSubrule(e,t,i);if(!this.isRecording()&&s&&s.length>0){this.performSubruleAssignment(a,r,s)}}performSubruleAssignment(e,t,n){const{assignment:r,isCrossRef:i}=this.getAssignment(t);if(r){this.assign(r.operator,r.feature,e,n,i)}else if(!r){const t=this.current;if(wn(t)){t.value+=e.toString()}else if(typeof e==="object"&&e){const n=this.assignWithoutOverride(e,t);const r=n;this.stack.pop();this.stack.push(r)}}}action(e,t){if(!this.isRecording()){let n=this.current;if(t.feature&&t.operator){n=this.construct();this.nodeBuilder.removeNode(n.$cstNode);const r=this.nodeBuilder.buildCompositeNode(t);r.content.push(n.$cstNode);const i={$type:e};this.stack.push(i);this.assign(t.operator,t.feature,n,n.$cstNode,false)}else{n.$type=e}}}construct(){if(this.isRecording()){return undefined}const e=this.current;(0,Ge.SD)(e);this.nodeBuilder.construct(e);this.stack.pop();if(wn(e)){return this.converter.convert(e.value,e.$cstNode)}else{(0,Ge.OP)(this.astReflection,e)}return e}getAssignment(e){if(!this.assignmentMap.has(e)){const t=(0,Ge.XG)(e,a.wh);this.assignmentMap.set(e,{assignment:t,isCrossRef:t?(0,a._c)(t.terminal):false})}return this.assignmentMap.get(e)}assign(e,t,n,r,i){const s=this.current;let a;if(i&&typeof n==="string"){a=this.linker.buildReference(s,t,r,n)}else{a=n}switch(e){case"=":{s[t]=a;break}case"?=":{s[t]=true;break}case"+=":{if(!Array.isArray(s[t])){s[t]=[]}s[t].push(a)}}}assignWithoutOverride(e,t){for(const[r,i]of Object.entries(t)){const t=e[r];if(t===undefined){e[r]=i}else if(Array.isArray(t)&&Array.isArray(i)){i.push(...t);e[r]=i}}const n=e.$cstNode;if(n){n.astNode=undefined;e.$cstNode=undefined}return e}get definitionErrors(){return this.wrapper.definitionErrors}}class Ln{buildMismatchTokenMessage(e){return l.my.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return l.my.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return l.my.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return l.my.buildEarlyExitMessage(e)}}class bn extends Ln{buildMismatchTokenMessage({expected:e,actual:t}){const n=e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(":KW")?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`;return`Expecting ${n} but found \`${t.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}}class _n extends Sn{constructor(){super(...arguments);this.tokens=[];this.elementStack=[];this.lastElementStack=[];this.nextTokenIndex=0;this.stackSize=0}action(){}construct(){return undefined}parse(e){this.resetState();const t=this.lexer.tokenize(e,{mode:"partial"});this.tokens=t.tokens;this.wrapper.input=[...this.tokens];this.mainRule.call(this.wrapper,{});this.unorderedGroups.clear();return{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,t){const n=this.wrapper.DEFINE_RULE(Cn(e.name),this.startImplementation(t).bind(this));this.allRules.set(e.name,n);if(e.entry){this.mainRule=n}return n}resetState(){this.elementStack=[];this.lastElementStack=[];this.nextTokenIndex=0;this.stackSize=0}startImplementation(e){return t=>{const n=this.keepStackSize();try{e(t)}finally{this.resetStackSize(n)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){const e=this.elementStack.length;this.stackSize=e;return e}resetStackSize(e){this.removeUnexpectedElements();this.stackSize=e}consume(e,t,n){this.wrapper.wrapConsume(e,t);if(!this.isRecording()){this.lastElementStack=[...this.elementStack,n];this.nextTokenIndex=this.currIdx+1}}subrule(e,t,n,r,i){this.before(r);this.wrapper.wrapSubrule(e,t,i);this.after(r)}before(e){if(!this.isRecording()){this.elementStack.push(e)}}after(e){if(!this.isRecording()){const t=this.elementStack.lastIndexOf(e);if(t>=0){this.elementStack.splice(t)}}}get currIdx(){return this.wrapper.currIdx}}const On={recoveryEnabled:true,nodeLocationTracking:"full",skipValidations:true,errorMessageProvider:new bn};class Pn extends l.jr{constructor(e,t){const n=t&&"maxLookahead"in t;super(e,Object.assign(Object.assign(Object.assign({},On),{lookaheadStrategy:n?new l.T6({maxLookahead:t.maxLookahead}):new pe({logging:t.skipValidations?()=>{}:undefined})}),t))}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,t){return this.RULE(e,t)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,t){return this.consume(e,t)}wrapSubrule(e,t,n){return this.subrule(e,t,{ARGS:[n]})}wrapOr(e,t){this.or(e,t)}wrapOption(e,t){this.option(e,t)}wrapMany(e,t){this.many(e,t)}wrapAtLeastOne(e,t){this.atLeastOne(e,t)}}var Mn=n(73101);var Dn=n(64386);function Un(e,t,n){const r={parser:t,tokens:n,ruleNames:new Map};Fn(r,e);return t}function Fn(e,t){const n=(0,i.YV)(t,false);const r=(0,Dn.Td)(t.rules).filter(a.s7).filter((e=>n.has(e)));for(const i of r){const t=Object.assign(Object.assign({},e),{consume:1,optional:1,subrule:1,many:1,or:1});e.parser.rule(i,Gn(t,i.definition))}}function Gn(e,t,n=false){let r;if((0,a.wb)(t)){r=Xn(e,t)}else if((0,a.ve)(t)){r=Kn(e,t)}else if((0,a.wh)(t)){r=Gn(e,t.terminal)}else if((0,a._c)(t)){r=qn(e,t)}else if((0,a.$g)(t)){r=Bn(e,t)}else if((0,a.jp)(t)){r=Wn(e,t)}else if((0,a.cY)(t)){r=Hn(e,t)}else if((0,a.IZ)(t)){r=zn(e,t)}else if((0,a.FO)(t)){const n=e.consume++;r=()=>e.parser.consume(n,l.LT,t)}else{throw new Mn.W(t.$cstNode,`Unexpected element type: ${t.$type}`)}return Qn(e,n?undefined:Yn(t),r,t.cardinality)}function Kn(e,t){const n=(0,i.Uz)(t);return()=>e.parser.action(n,t)}function Bn(e,t){const n=t.rule.ref;if((0,a.s7)(n)){const r=e.subrule++;const i=n.fragment;const s=t.arguments.length>0?jn(n,t.arguments):()=>({});return a=>e.parser.subrule(r,Zn(e,n),i,t,s(a))}else if((0,a.rE)(n)){const r=e.consume++;const i=er(e,n.name);return()=>e.parser.consume(r,i,t)}else if(!n){throw new Mn.W(t.$cstNode,`Undefined rule: ${t.rule.$refText}`)}else{(0,Mn.d)(n)}}function jn(e,t){const n=t.map((e=>Vn(e.value)));return t=>{const r={};for(let i=0;it(e)||n(e)}else if((0,a.Tu)(e)){const t=Vn(e.left);const n=Vn(e.right);return e=>t(e)&&n(e)}else if((0,a.Ct)(e)){const t=Vn(e.value);return e=>!t(e)}else if((0,a.TF)(e)){const t=e.parameter.ref.name;return e=>e!==undefined&&e[t]===true}else if((0,a.Cz)(e)){const t=Boolean(e.true);return()=>t}(0,Mn.d)(e)}function Wn(e,t){if(t.elements.length===1){return Gn(e,t.elements[0])}else{const n=[];for(const i of t.elements){const t={ALT:Gn(e,i,true)};const r=Yn(i);if(r){t.GATE=Vn(r)}n.push(t)}const r=e.or++;return t=>e.parser.alternatives(r,n.map((e=>{const n={ALT:()=>e.ALT(t)};const r=e.GATE;if(r){n.GATE=()=>r(t)}return n})))}}function Hn(e,t){if(t.elements.length===1){return Gn(e,t.elements[0])}const n=[];for(const o of t.elements){const t={ALT:Gn(e,o,true)};const r=Yn(o);if(r){t.GATE=Vn(r)}n.push(t)}const r=e.or++;const i=(e,t)=>{const n=t.getRuleStack().join("-");return`uGroup_${e}_${n}`};const s=t=>e.parser.alternatives(r,n.map(((n,s)=>{const a={ALT:()=>true};const o=e.parser;a.ALT=()=>{n.ALT(t);if(!o.isRecording()){const e=i(r,o);if(!o.unorderedGroups.get(e)){o.unorderedGroups.set(e,[])}const t=o.unorderedGroups.get(e);if(typeof(t===null||t===void 0?void 0:t[s])==="undefined"){t[s]=true}}};const l=n.GATE;if(l){a.GATE=()=>l(t)}else{a.GATE=()=>{const e=o.unorderedGroups.get(i(r,o));const t=!(e===null||e===void 0?void 0:e[s]);return t}}return a})));const a=Qn(e,Yn(t),s,"*");return t=>{a(t);if(!e.parser.isRecording()){e.parser.unorderedGroups.delete(i(r,e.parser))}}}function zn(e,t){const n=t.elements.map((t=>Gn(e,t)));return e=>n.forEach((t=>t(e)))}function Yn(e){if((0,a.IZ)(e)){return e.guardCondition}return undefined}function qn(e,t,n=t.terminal){if(!n){if(!t.type.ref){throw new Error("Could not resolve reference to type: "+t.type.$refText)}const n=(0,i.U5)(t.type.ref);const r=n===null||n===void 0?void 0:n.terminal;if(!r){throw new Error("Could not find name assignment for type: "+(0,i.Uz)(t.type.ref))}return qn(e,t,r)}else if((0,a.$g)(n)&&(0,a.s7)(n.rule.ref)){const r=n.rule.ref;const i=e.subrule++;return n=>e.parser.subrule(i,Zn(e,r),false,t,n)}else if((0,a.$g)(n)&&(0,a.rE)(n.rule.ref)){const r=e.consume++;const i=er(e,n.rule.ref.name);return()=>e.parser.consume(r,i,t)}else if((0,a.wb)(n)){const r=e.consume++;const i=er(e,n.value);return()=>e.parser.consume(r,i,t)}else{throw new Error("Could not build cross reference parser")}}function Xn(e,t){const n=e.consume++;const r=e.tokens[t.value];if(!r){throw new Error("Could not find token for keyword: "+t.value)}return()=>e.parser.consume(n,r,t)}function Qn(e,t,n,r){const i=t&&Vn(t);if(!r){if(i){const t=e.or++;return r=>e.parser.alternatives(t,[{ALT:()=>n(r),GATE:()=>i(r)},{ALT:(0,l.mT)(),GATE:()=>!i(r)}])}else{return n}}if(r==="*"){const t=e.many++;return r=>e.parser.many(t,{DEF:()=>n(r),GATE:i?()=>i(r):undefined})}else if(r==="+"){const t=e.many++;if(i){const r=e.or++;return s=>e.parser.alternatives(r,[{ALT:()=>e.parser.atLeastOne(t,{DEF:()=>n(s)}),GATE:()=>i(s)},{ALT:(0,l.mT)(),GATE:()=>!i(s)}])}else{return r=>e.parser.atLeastOne(t,{DEF:()=>n(r)})}}else if(r==="?"){const t=e.optional++;return r=>e.parser.optional(t,{DEF:()=>n(r),GATE:i?()=>i(r):undefined})}else{(0,Mn.d)(r)}}function Zn(e,t){const n=Jn(e,t);const r=e.parser.getRule(n);if(!r)throw new Error(`Rule "${n}" not found."`);return r}function Jn(e,t){if((0,a.s7)(t)){return t.name}else if(e.ruleNames.has(t)){return e.ruleNames.get(t)}else{let n=t;let r=n.$container;let i=t.$type;while(!(0,a.s7)(r)){if((0,a.IZ)(r)||(0,a.jp)(r)||(0,a.cY)(r)){const e=r.elements.indexOf(n);i=e.toString()+":"+i}n=r;r=r.$container}const s=r;i=s.name+":"+i;e.ruleNames.set(t,i);return i}}function er(e,t){const n=e.tokens[t];if(!n)throw new Error(`Token "${t}" not found."`);return n}function tr(e){const t=e.Grammar;const n=e.parser.Lexer;const r=new _n(e);Un(t,r,n.definition);r.finalize();return r}function nr(e){const t=rr(e);t.finalize();return t}function rr(e){const t=e.Grammar;const n=e.parser.Lexer;const r=new Nn(e);return Un(t,r,n.definition)}var ir=n(25355);var sr=n(14480);var ar=n(59850);var or=n(64032);function lr(){return new Promise((e=>{if(typeof setImmediate==="undefined"){setTimeout(e,0)}else{setImmediate(e)}}))}let cr=0;let ur=10;function fr(){cr=performance.now();return new ar.CancellationTokenSource}function dr(e){ur=e}const hr=Symbol("OperationCancelled");function pr(e){return e===hr}async function mr(e){if(e===ar.CancellationToken.None){return}const t=performance.now();if(t-cr>=ur){cr=t;await lr();cr=performance.now()}if(e.isCancellationRequested){throw hr}}class gr{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=t=>{e(t);return this};this.reject=e=>{t(e);return this}}))}}class yr{constructor(e,t,n,r){this._uri=e;this._languageId=t;this._version=n;this._content=r;this._lineOffsets=undefined}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start);const n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){for(const n of e){if(yr.isIncremental(n)){const e=Er(n.range);const t=this.offsetAt(e.start);const r=this.offsetAt(e.end);this._content=this._content.substring(0,t)+n.text+this._content.substring(r,this._content.length);const i=Math.max(e.start.line,0);const s=Math.max(e.end.line,0);let a=this._lineOffsets;const o=Ar(n.text,false,t);if(s-i===o.length){for(let e=0,t=o.length;ee){r=i}else{n=i+1}}const i=n-1;e=this.ensureBeforeEOL(e,t[i]);return{line:i,character:e-t[i]}}offsetAt(e){const t=this.getLineOffsets();if(e.line>=t.length){return this._content.length}else if(e.line<0){return 0}const n=t[e.line];if(e.character<=0){return n}const r=e.line+1t&&Rr(this._content.charCodeAt(e-1))){e--}return e}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){const t=e;return t!==undefined&&t!==null&&typeof t.text==="string"&&t.range!==undefined&&(t.rangeLength===undefined||typeof t.rangeLength==="number")}static isFull(e){const t=e;return t!==undefined&&t!==null&&typeof t.text==="string"&&t.range===undefined&&t.rangeLength===undefined}}var Tr;(function(e){function t(e,t,n,r){return new yr(e,t,n,r)}e.create=t;function n(e,t,n){if(e instanceof yr){e.update(t,n);return e}else{throw new Error("TextDocument.update: document must be created by TextDocument.create")}}e.update=n;function r(e,t){const n=e.getText();const r=vr(t.map($r),((e,t)=>{const n=e.range.start.line-t.range.start.line;if(n===0){return e.range.start.character-t.range.start.character}return n}));let i=0;const s=[];for(const a of r){const t=e.offsetAt(a.range.start);if(ti){s.push(n.substring(i,t))}if(a.newText.length){s.push(a.newText)}i=e.offsetAt(a.range.end)}s.push(n.substr(i));return s.join("")}e.applyEdits=r})(Tr||(Tr={}));function vr(e,t){if(e.length<=1){return e}const n=e.length/2|0;const r=e.slice(0,n);const i=e.slice(n);vr(r,t);vr(i,t);let s=0;let a=0;let o=0;while(sn.line||t.line===n.line&&t.character>n.character){return{start:n,end:t}}return e}function $r(e){const t=Er(e.range);if(t!==e.range){return{newText:e.newText,range:t}}return e}var kr=n(14247);var xr;(function(e){e[e["Changed"]=0]="Changed";e[e["Parsed"]=1]="Parsed";e[e["IndexedContent"]=2]="IndexedContent";e[e["ComputedScopes"]=3]="ComputedScopes";e[e["Linked"]=4]="Linked";e[e["IndexedReferences"]=5]="IndexedReferences";e[e["Validated"]=6]="Validated"})(xr||(xr={}));class wr{constructor(e){this.serviceRegistry=e.ServiceRegistry;this.textDocuments=e.workspace.TextDocuments;this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,t=ar.CancellationToken.None){const n=await this.fileSystemProvider.readFile(e);return this.createAsync(e,n,t)}fromTextDocument(e,t,n){t=t!==null&&t!==void 0?t:kr.r.parse(e.uri);if(ar.CancellationToken.is(n)){return this.createAsync(t,e,n)}else{return this.create(t,e,n)}}fromString(e,t,n){if(ar.CancellationToken.is(n)){return this.createAsync(t,e,n)}else{return this.create(t,e,n)}}fromModel(e,t){return this.create(t,{$model:e})}create(e,t,n){if(typeof t==="string"){const r=this.parse(e,t,n);return this.createLangiumDocument(r,e,undefined,t)}else if("$model"in t){const n={value:t.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(n,e)}else{const r=this.parse(e,t.getText(),n);return this.createLangiumDocument(r,e,t)}}async createAsync(e,t,n){if(typeof t==="string"){const r=await this.parseAsync(e,t,n);return this.createLangiumDocument(r,e,undefined,t)}else{const r=await this.parseAsync(e,t.getText(),n);return this.createLangiumDocument(r,e,t)}}createLangiumDocument(e,t,n,r){let i;if(n){i={parseResult:e,uri:t,state:xr.Parsed,references:[],textDocument:n}}else{const n=this.createTextDocumentGetter(t,r);i={parseResult:e,uri:t,state:xr.Parsed,references:[],get textDocument(){return n()}}}e.value.$document=i;return i}async update(e,t){var n,r;const i=(n=e.parseResult.value.$cstNode)===null||n===void 0?void 0:n.root.fullText;const s=(r=this.textDocuments)===null||r===void 0?void 0:r.get(e.uri.toString());const a=s?s.getText():await this.fileSystemProvider.readFile(e.uri);if(s){Object.defineProperty(e,"textDocument",{value:s})}else{const t=this.createTextDocumentGetter(e.uri,a);Object.defineProperty(e,"textDocument",{get:t})}if(i!==a){e.parseResult=await this.parseAsync(e.uri,a,t);e.parseResult.value.$document=e}e.state=xr.Parsed;return e}parse(e,t,n){const r=this.serviceRegistry.getServices(e);return r.parser.LangiumParser.parse(t,n)}parseAsync(e,t,n){const r=this.serviceRegistry.getServices(e);return r.parser.AsyncParser.parse(t,n)}createTextDocumentGetter(e,t){const n=this.serviceRegistry;let r=undefined;return()=>r!==null&&r!==void 0?r:r=Tr.create(e.toString(),n.getServices(e).LanguageMetaData.languageId,0,t!==null&&t!==void 0?t:"")}}class Ir{constructor(e){this.documentMap=new Map;this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory;this.serviceRegistry=e.ServiceRegistry}get all(){return(0,Dn.Td)(this.documentMap.values())}addDocument(e){const t=e.uri.toString();if(this.documentMap.has(t)){throw new Error(`A document with the URI '${t}' is already present.`)}this.documentMap.set(t,e)}getDocument(e){const t=e.toString();return this.documentMap.get(t)}async getOrCreateDocument(e,t){let n=this.getDocument(e);if(n){return n}n=await this.langiumDocumentFactory.fromUri(e,t);this.addDocument(n);return n}createDocument(e,t,n){if(n){return this.langiumDocumentFactory.fromString(t,e,n).then((e=>{this.addDocument(e);return e}))}else{const n=this.langiumDocumentFactory.fromString(t,e);this.addDocument(n);return n}}hasDocument(e){return this.documentMap.has(e.toString())}invalidateDocument(e){const t=e.toString();const n=this.documentMap.get(t);if(n){const t=this.serviceRegistry.getServices(e).references.Linker;t.unlink(n);n.state=xr.Changed;n.precomputedScopes=undefined;n.diagnostics=undefined}return n}deleteDocument(e){const t=e.toString();const n=this.documentMap.get(t);if(n){n.state=xr.Changed;this.documentMap.delete(t)}return n}}const Cr=Symbol("ref_resolving");class Sr{constructor(e){this.reflection=e.shared.AstReflection;this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments;this.scopeProvider=e.references.ScopeProvider;this.astNodeLocator=e.workspace.AstNodeLocator}async link(e,t=ar.CancellationToken.None){for(const n of(0,Ge.jm)(e.parseResult.value)){await mr(t);(0,Ge.DM)(n).forEach((t=>this.doLink(t,e)))}}doLink(e,t){var n;const r=e.reference;if(r._ref===undefined){r._ref=Cr;try{const t=this.getCandidate(e);if((0,or.Zl)(t)){r._ref=t}else{r._nodeDescription=t;if(this.langiumDocuments().hasDocument(t.documentUri)){const n=this.loadAstNode(t);r._ref=n!==null&&n!==void 0?n:this.createLinkingError(e,t)}else{r._ref=undefined}}}catch(i){console.error(`An error occurred while resolving reference to '${r.$refText}':`,i);const t=(n=i.message)!==null&&n!==void 0?n:String(i);r._ref=Object.assign(Object.assign({},e),{message:`An error occurred while resolving reference to '${r.$refText}': ${t}`})}t.references.push(r)}}unlink(e){for(const t of e.references){delete t._ref;delete t._nodeDescription}e.references=[]}getCandidate(e){const t=this.scopeProvider.getScope(e);const n=t.getElement(e.reference.$refText);return n!==null&&n!==void 0?n:this.createLinkingError(e)}buildReference(e,t,n,r){const i=this;const s={$refNode:n,$refText:r,get ref(){var n;if((0,or.ng)(this._ref)){return this._ref}else if((0,or.Nr)(this._nodeDescription)){const n=i.loadAstNode(this._nodeDescription);this._ref=n!==null&&n!==void 0?n:i.createLinkingError({reference:s,container:e,property:t},this._nodeDescription)}else if(this._ref===undefined){this._ref=Cr;const r=(0,Ge.cQ)(e).$document;const a=i.getLinkedNode({reference:s,container:e,property:t});if(a.error&&r&&r.statee.length>0));const s=r.split("/").filter((e=>e.length>0));let a=0;for(;a=e.end){return t.ref}}}}if(n){const t=this.nameProvider.getNameNode(n);if(t&&(t===e||(0,r.pO)(e,t))){return n}}}return undefined}findDeclarationNode(e){const t=this.findDeclaration(e);if(t===null||t===void 0?void 0:t.$cstNode){const e=this.nameProvider.getNameNode(t);return e!==null&&e!==void 0?e:t.$cstNode}return undefined}findReferences(e,t){const n=[];if(t.includeDeclaration){const t=this.getReferenceToSelf(e);if(t){n.push(t)}}let r=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));if(t.documentUri){r=r.filter((e=>br.equals(e.sourceUri,t.documentUri)))}n.push(...r);return(0,Dn.Td)(n)}getReferenceToSelf(e){const t=this.nameProvider.getNameNode(e);if(t){const n=(0,Ge.YE)(e);const i=this.nodeLocator.getAstNodePath(e);return{sourceUri:n.uri,sourcePath:i,targetUri:n.uri,targetPath:i,segment:(0,r.SX)(t),local:true}}return undefined}}class Or{constructor(e){this.map=new Map;if(e){for(const[t,n]of e){this.add(t,n)}}}get size(){return Dn.iD.sum((0,Dn.Td)(this.map.values()).map((e=>e.length)))}clear(){this.map.clear()}delete(e,t){if(t===undefined){return this.map.delete(e)}else{const n=this.map.get(e);if(n){const r=n.indexOf(t);if(r>=0){if(n.length===1){this.map.delete(e)}else{n.splice(r,1)}return true}}return false}}get(e){var t;return(t=this.map.get(e))!==null&&t!==void 0?t:[]}has(e,t){if(t===undefined){return this.map.has(e)}else{const n=this.map.get(e);if(n){return n.indexOf(t)>=0}return false}}add(e,t){if(this.map.has(e)){this.map.get(e).push(t)}else{this.map.set(e,[t])}return this}addAll(e,t){if(this.map.has(e)){this.map.get(e).push(...t)}else{this.map.set(e,Array.from(t))}return this}forEach(e){this.map.forEach(((t,n)=>t.forEach((t=>e(t,n,this)))))}[Symbol.iterator](){return this.entries().iterator()}entries(){return(0,Dn.Td)(this.map.entries()).flatMap((([e,t])=>t.map((t=>[e,t]))))}keys(){return(0,Dn.Td)(this.map.keys())}values(){return(0,Dn.Td)(this.map.values()).flat()}entriesGroupedByKey(){return(0,Dn.Td)(this.map.entries())}}class Pr{get size(){return this.map.size}constructor(e){this.map=new Map;this.inverse=new Map;if(e){for(const[t,n]of e){this.set(t,n)}}}clear(){this.map.clear();this.inverse.clear()}set(e,t){this.map.set(e,t);this.inverse.set(t,e);return this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){const t=this.map.get(e);if(t!==undefined){this.map.delete(e);this.inverse.delete(t);return true}return false}}class Mr{constructor(e){this.nameProvider=e.references.NameProvider;this.descriptions=e.workspace.AstNodeDescriptionProvider}async computeExports(e,t=ar.CancellationToken.None){return this.computeExportsForNode(e.parseResult.value,e,undefined,t)}async computeExportsForNode(e,t,n=Ge.VN,r=ar.CancellationToken.None){const i=[];this.exportNode(e,i,t);for(const s of n(e)){await mr(r);this.exportNode(s,i,t)}return i}exportNode(e,t,n){const r=this.nameProvider.getName(e);if(r){t.push(this.descriptions.createDescription(e,r,n))}}async computeLocalScopes(e,t=ar.CancellationToken.None){const n=e.parseResult.value;const r=new Or;for(const i of(0,Ge.Uo)(n)){await mr(t);this.processNode(i,e,r)}return r}processNode(e,t,n){const r=e.$container;if(r){const i=this.nameProvider.getName(e);if(i){n.add(r,this.descriptions.createDescription(e,i,t))}}}}class Dr{constructor(e,t,n){var r;this.elements=e;this.outerScope=t;this.caseInsensitive=(r=n===null||n===void 0?void 0:n.caseInsensitive)!==null&&r!==void 0?r:false}getAllElements(){if(this.outerScope){return this.elements.concat(this.outerScope.getAllElements())}else{return this.elements}}getElement(e){const t=this.caseInsensitive?this.elements.find((t=>t.name.toLowerCase()===e.toLowerCase())):this.elements.find((t=>t.name===e));if(t){return t}if(this.outerScope){return this.outerScope.getElement(e)}return undefined}}class Ur{constructor(e,t,n){var r;this.elements=new Map;this.caseInsensitive=(r=n===null||n===void 0?void 0:n.caseInsensitive)!==null&&r!==void 0?r:false;for(const i of e){const e=this.caseInsensitive?i.name.toLowerCase():i.name;this.elements.set(e,i)}this.outerScope=t}getElement(e){const t=this.caseInsensitive?e.toLowerCase():e;const n=this.elements.get(t);if(n){return n}if(this.outerScope){return this.outerScope.getElement(e)}return undefined}getAllElements(){let e=(0,Dn.Td)(this.elements.values());if(this.outerScope){e=e.concat(this.outerScope.getAllElements())}return e}}const Fr={getElement(){return undefined},getAllElements(){return Dn.B5}};class Gr{constructor(){this.toDispose=[];this.isDisposed=false}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed();this.clear();this.isDisposed=true;this.toDispose.forEach((e=>e.dispose()))}throwIfDisposed(){if(this.isDisposed){throw new Error("This cache has already been disposed")}}}class Kr extends Gr{constructor(){super(...arguments);this.cache=new Map}has(e){this.throwIfDisposed();return this.cache.has(e)}set(e,t){this.throwIfDisposed();this.cache.set(e,t)}get(e,t){this.throwIfDisposed();if(this.cache.has(e)){return this.cache.get(e)}else if(t){const n=t();this.cache.set(e,n);return n}else{return undefined}}delete(e){this.throwIfDisposed();return this.cache.delete(e)}clear(){this.throwIfDisposed();this.cache.clear()}}class Br extends Gr{constructor(e){super();this.cache=new Map;this.converter=e!==null&&e!==void 0?e:e=>e}has(e,t){this.throwIfDisposed();return this.cacheForContext(e).has(t)}set(e,t,n){this.throwIfDisposed();this.cacheForContext(e).set(t,n)}get(e,t,n){this.throwIfDisposed();const r=this.cacheForContext(e);if(r.has(t)){return r.get(t)}else if(n){const e=n();r.set(t,e);return e}else{return undefined}}delete(e,t){this.throwIfDisposed();return this.cacheForContext(e).delete(t)}clear(e){this.throwIfDisposed();if(e){const t=this.converter(e);this.cache.delete(t)}else{this.cache.clear()}}cacheForContext(e){const t=this.converter(e);let n=this.cache.get(t);if(!n){n=new Map;this.cache.set(t,n)}return n}}class jr extends Br{constructor(e,t){super((e=>e.toString()));if(t){this.toDispose.push(e.workspace.DocumentBuilder.onDocumentPhase(t,(e=>{this.clear(e.uri.toString())})));this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(((e,t)=>{for(const n of t){this.clear(n)}})))}else{this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(((e,t)=>{const n=e.concat(t);for(const r of n){this.clear(r)}})))}}}class Vr extends Kr{constructor(e,t){super();if(t){this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(t,(()=>{this.clear()})));this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(((e,t)=>{if(t.length>0){this.clear()}})))}else{this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((()=>{this.clear()})))}}}class Wr{constructor(e){this.reflection=e.shared.AstReflection;this.nameProvider=e.references.NameProvider;this.descriptions=e.workspace.AstNodeDescriptionProvider;this.indexManager=e.shared.workspace.IndexManager;this.globalScopeCache=new Vr(e.shared)}getScope(e){const t=[];const n=this.reflection.getReferenceType(e);const r=(0,Ge.YE)(e.container).precomputedScopes;if(r){let i=e.container;do{const e=r.get(i);if(e.length>0){t.push((0,Dn.Td)(e).filter((e=>this.reflection.isSubtype(e.type,n))))}i=i.$container}while(i)}let i=this.getGlobalScope(n,e);for(let s=t.length-1;s>=0;s--){i=this.createScope(t[s],i)}return i}createScope(e,t,n){return new Dr((0,Dn.Td)(e),t,n)}createScopeForNodes(e,t,n){const r=(0,Dn.Td)(e).map((e=>{const t=this.nameProvider.getName(e);if(t){return this.descriptions.createDescription(e,t)}return undefined})).nonNullable();return new Dr(r,t,n)}getGlobalScope(e,t){return this.globalScopeCache.get(e,(()=>new Ur(this.indexManager.allElements(e))))}}function Hr(e){return typeof e.$comment==="string"}function zr(e){return typeof e==="object"&&!!e&&("$ref"in e||"$error"in e)}class Yr{constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]);this.langiumDocuments=e.shared.workspace.LangiumDocuments;this.astNodeLocator=e.workspace.AstNodeLocator;this.nameProvider=e.references.NameProvider;this.commentProvider=e.documentation.CommentProvider}serialize(e,t){const n=t!==null&&t!==void 0?t:{};const r=t===null||t===void 0?void 0:t.replacer;const i=(e,t)=>this.replacer(e,t,n);const s=r?(e,t)=>r(e,t,i):i;try{this.currentDocument=(0,Ge.YE)(e);return JSON.stringify(e,s,t===null||t===void 0?void 0:t.space)}finally{this.currentDocument=undefined}}deserialize(e,t){const n=t!==null&&t!==void 0?t:{};const r=JSON.parse(e);this.linkNode(r,r,n);return r}replacer(e,t,{refText:n,sourceText:r,textRegions:i,comments:s,uriConverter:a}){var o,l,c,u;if(this.ignoreProperties.has(e)){return undefined}else if((0,or.A_)(t)){const e=t.ref;const r=n?t.$refText:undefined;if(e){const n=(0,Ge.YE)(e);let i="";if(this.currentDocument&&this.currentDocument!==n){if(a){i=a(n.uri,t)}else{i=n.uri.toString()}}const s=this.astNodeLocator.getAstNodePath(e);return{$ref:`${i}#${s}`,$refText:r}}else{return{$error:(l=(o=t.error)===null||o===void 0?void 0:o.message)!==null&&l!==void 0?l:"Could not resolve reference",$refText:r}}}else if((0,or.ng)(t)){let n=undefined;if(i){n=this.addAstNodeRegionWithAssignmentsTo(Object.assign({},t));if((!e||t.$document)&&(n===null||n===void 0?void 0:n.$textRegion)){n.$textRegion.documentURI=(c=this.currentDocument)===null||c===void 0?void 0:c.uri.toString()}}if(r&&!e){n!==null&&n!==void 0?n:n=Object.assign({},t);n.$sourceText=(u=t.$cstNode)===null||u===void 0?void 0:u.text}if(s){n!==null&&n!==void 0?n:n=Object.assign({},t);const e=this.commentProvider.getComment(t);if(e){n.$comment=e.replace(/\r/g,"")}}return n!==null&&n!==void 0?n:t}else{return t}}addAstNodeRegionWithAssignmentsTo(e){const t=e=>({offset:e.offset,end:e.end,length:e.length,range:e.range});if(e.$cstNode){const n=e.$textRegion=t(e.$cstNode);const r=n.assignments={};Object.keys(e).filter((e=>!e.startsWith("$"))).forEach((n=>{const s=(0,i.Bd)(e.$cstNode,n).map(t);if(s.length!==0){r[n]=s}}));return e}return undefined}linkNode(e,t,n,r,i,s){for(const[o,l]of Object.entries(e)){if(Array.isArray(l)){for(let r=0;r{await this.handleException((()=>e.call(t,n,r,i)),"An error occurred during validation",r,n)}}async handleException(e,t,n,r){try{await e()}catch(i){if(pr(i)){throw i}console.error(`${t}:`,i);if(i instanceof Error&&i.stack){console.error(i.stack)}const e=i instanceof Error?i.message:String(i);n("error",`${t}: ${e}`,{node:r})}}addEntry(e,t){if(e==="AstNode"){this.entries.add("AstNode",t);return}for(const n of this.reflection.getAllSubTypes(e)){this.entries.add(n,t)}}getChecks(e,t){let n=(0,Dn.Td)(this.entries.get(e)).concat(this.entries.get("AstNode"));if(t){n=n.filter((e=>t.includes(e.category)))}return n.map((e=>e.check))}registerBeforeDocument(e,t=this){this.entriesBefore.push(this.wrapPreparationException(e,"An error occurred during set-up of the validation",t))}registerAfterDocument(e,t=this){this.entriesAfter.push(this.wrapPreparationException(e,"An error occurred during tear-down of the validation",t))}wrapPreparationException(e,t,n){return async(r,i,s,a)=>{await this.handleException((()=>e.call(n,r,i,s,a)),t,i,r)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}}class Jr{constructor(e){this.validationRegistry=e.validation.ValidationRegistry;this.metadata=e.LanguageMetaData}async validateDocument(e,t={},n=ar.CancellationToken.None){const r=e.parseResult;const i=[];await mr(n);if(!t.categories||t.categories.includes("built-in")){this.processLexingErrors(r,i,t);if(t.stopAfterLexingErrors&&i.some((e=>{var t;return((t=e.data)===null||t===void 0?void 0:t.code)===ri.LexingError}))){return i}this.processParsingErrors(r,i,t);if(t.stopAfterParsingErrors&&i.some((e=>{var t;return((t=e.data)===null||t===void 0?void 0:t.code)===ri.ParsingError}))){return i}this.processLinkingErrors(e,i,t);if(t.stopAfterLinkingErrors&&i.some((e=>{var t;return((t=e.data)===null||t===void 0?void 0:t.code)===ri.LinkingError}))){return i}}try{i.push(...await this.validateAst(r.value,t,n))}catch(s){if(pr(s)){throw s}console.error("An error occurred during validation:",s)}await mr(n);return i}processLexingErrors(e,t,n){var r,i,s;const a=[...e.lexerErrors,...(i=(r=e.lexerReport)===null||r===void 0?void 0:r.diagnostics)!==null&&i!==void 0?i:[]];for(const o of a){const e=(s=o.severity)!==null&&s!==void 0?s:"error";const n={severity:ti(e),range:{start:{line:o.line-1,character:o.column-1},end:{line:o.line-1,character:o.column+o.length-1}},message:o.message,data:ni(e),source:this.getSource()};t.push(n)}}processParsingErrors(e,t,n){for(const i of e.parserErrors){let e=undefined;if(isNaN(i.token.startOffset)){if("previousToken"in i){const t=i.previousToken;if(!isNaN(t.startOffset)){const n={line:t.endLine-1,character:t.endColumn};e={start:n,end:n}}else{const t={line:0,character:0};e={start:t,end:t}}}}else{e=(0,r.wf)(i.token)}if(e){const n={severity:ti("error"),range:e,message:i.message,data:Xr(ri.ParsingError),source:this.getSource()};t.push(n)}}}processLinkingErrors(e,t,n){for(const r of e.references){const e=r.error;if(e){const n={node:e.container,property:e.property,index:e.index,data:{code:ri.LinkingError,containerType:e.container.$type,property:e.property,refText:e.reference.$refText}};t.push(this.toDiagnostic("error",e.message,n))}}}async validateAst(e,t,n=ar.CancellationToken.None){const r=[];const i=(e,t,n)=>{r.push(this.toDiagnostic(e,t,n))};await this.validateAstBefore(e,t,i,n);await this.validateAstNodes(e,t,i,n);await this.validateAstAfter(e,t,i,n);return r}async validateAstBefore(e,t,n,r=ar.CancellationToken.None){var i;const s=this.validationRegistry.checksBefore;for(const a of s){await mr(r);await a(e,n,(i=t.categories)!==null&&i!==void 0?i:[],r)}}async validateAstNodes(e,t,n,r=ar.CancellationToken.None){await Promise.all((0,Ge.jm)(e).map((async e=>{await mr(r);const i=this.validationRegistry.getChecks(e.$type,t.categories);for(const t of i){await t(e,n,r)}})))}async validateAstAfter(e,t,n,r=ar.CancellationToken.None){var i;const s=this.validationRegistry.checksAfter;for(const a of s){await mr(r);await a(e,n,(i=t.categories)!==null&&i!==void 0?i:[],r)}}toDiagnostic(e,t,n){return{message:t,range:ei(n),severity:ti(e),code:n.code,codeDescription:n.codeDescription,tags:n.tags,relatedInformation:n.relatedInformation,data:n.data,source:this.getSource()}}getSource(){return this.metadata.languageId}}function ei(e){if(e.range){return e.range}let t;if(typeof e.property==="string"){t=(0,i.qO)(e.node.$cstNode,e.property,e.index)}else if(typeof e.keyword==="string"){t=(0,i.SS)(e.node.$cstNode,e.keyword,e.index)}t!==null&&t!==void 0?t:t=e.node.$cstNode;if(!t){return{start:{line:0,character:0},end:{line:0,character:0}}}return t.range}function ti(e){switch(e){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw new Error("Invalid diagnostic severity: "+e)}}function ni(e){switch(e){case"error":return Xr(ri.LexingError);case"warning":return Xr(ri.LexingWarning);case"info":return Xr(ri.LexingInfo);case"hint":return Xr(ri.LexingHint);default:throw new Error("Invalid diagnostic severity: "+e)}}var ri;(function(e){e.LexingError="lexing-error";e.LexingWarning="lexing-warning";e.LexingInfo="lexing-info";e.LexingHint="lexing-hint";e.ParsingError="parsing-error";e.LinkingError="linking-error"})(ri||(ri={}));class ii{constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator;this.nameProvider=e.references.NameProvider}createDescription(e,t,n){const i=n!==null&&n!==void 0?n:(0,Ge.YE)(e);t!==null&&t!==void 0?t:t=this.nameProvider.getName(e);const s=this.astNodeLocator.getAstNodePath(e);if(!t){throw new Error(`Node at path ${s} has no name.`)}let a;const o=()=>{var t;return a!==null&&a!==void 0?a:a=(0,r.SX)((t=this.nameProvider.getNameNode(e))!==null&&t!==void 0?t:e.$cstNode)};return{node:e,name:t,get nameSegment(){return o()},selectionSegment:(0,r.SX)(e.$cstNode),type:e.$type,documentUri:i.uri,path:s}}}class si{constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,t=ar.CancellationToken.None){const n=[];const r=e.parseResult.value;for(const i of(0,Ge.jm)(r)){await mr(t);(0,Ge.DM)(i).filter((e=>!(0,or.Zl)(e))).forEach((e=>{const t=this.createDescription(e);if(t){n.push(t)}}))}return n}createDescription(e){const t=e.reference.$nodeDescription;const n=e.reference.$refNode;if(!t||!n){return undefined}const i=(0,Ge.YE)(e.container).uri;return{sourceUri:i,sourcePath:this.nodeLocator.getAstNodePath(e.container),targetUri:t.documentUri,targetPath:t.path,segment:(0,r.SX)(n),local:br.equals(t.documentUri,i)}}}class ai{constructor(){this.segmentSeparator="/";this.indexSeparator="@"}getAstNodePath(e){if(e.$container){const t=this.getAstNodePath(e.$container);const n=this.getPathSegment(e);const r=t+this.segmentSeparator+n;return r}return""}getPathSegment({$containerProperty:e,$containerIndex:t}){if(!e){throw new Error("Missing '$containerProperty' in AST node.")}if(t!==undefined){return e+this.indexSeparator+t}return e}getAstNode(e,t){const n=t.split(this.segmentSeparator);return n.reduce(((e,t)=>{if(!e||t.length===0){return e}const n=t.indexOf(this.indexSeparator);if(n>0){const r=t.substring(0,n);const i=parseInt(t.substring(n+1));const s=e[r];return s===null||s===void 0?void 0:s[i]}return e[t]}),e)}}var oi=n(62676);class li{constructor(e){this._ready=new gr;this.settings={};this.workspaceConfig=false;this.onConfigurationSectionUpdateEmitter=new oi.Emitter;this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){var t,n;this.workspaceConfig=(n=(t=e.capabilities.workspace)===null||t===void 0?void 0:t.configuration)!==null&&n!==void 0?n:false}async initialized(e){if(this.workspaceConfig){if(e.register){const t=this.serviceRegistry.all;e.register({section:t.map((e=>this.toSectionName(e.LanguageMetaData.languageId)))})}if(e.fetchConfiguration){const t=this.serviceRegistry.all.map((e=>({section:this.toSectionName(e.LanguageMetaData.languageId)})));const n=await e.fetchConfiguration(t);t.forEach(((e,t)=>{this.updateSectionConfiguration(e.section,n[t])}))}}this._ready.resolve()}updateConfiguration(e){if(!e.settings){return}Object.keys(e.settings).forEach((t=>{const n=e.settings[t];this.updateSectionConfiguration(t,n);this.onConfigurationSectionUpdateEmitter.fire({section:t,configuration:n})}))}updateSectionConfiguration(e,t){this.settings[e]=t}async getConfiguration(e,t){await this.ready;const n=this.toSectionName(e);if(this.settings[n]){return this.settings[n][t]}}toSectionName(e){return`${e}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}}var ci;(function(e){function t(e){return{dispose:async()=>await e()}}e.create=t})(ci||(ci={}));class ui{constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}};this.updateListeners=[];this.buildPhaseListeners=new Or;this.documentPhaseListeners=new Or;this.buildState=new Map;this.documentBuildWaiters=new Map;this.currentState=xr.Changed;this.langiumDocuments=e.workspace.LangiumDocuments;this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory;this.textDocuments=e.workspace.TextDocuments;this.indexManager=e.workspace.IndexManager;this.serviceRegistry=e.ServiceRegistry}async build(e,t={},n=ar.CancellationToken.None){var r,i;for(const s of e){const e=s.uri.toString();if(s.state===xr.Validated){if(typeof t.validation==="boolean"&&t.validation){s.state=xr.IndexedReferences;s.diagnostics=undefined;this.buildState.delete(e)}else if(typeof t.validation==="object"){const n=this.buildState.get(e);const a=(r=n===null||n===void 0?void 0:n.result)===null||r===void 0?void 0:r.validationChecks;if(a){const r=(i=t.validation.categories)!==null&&i!==void 0?i:Qr.all;const o=r.filter((e=>!a.includes(e)));if(o.length>0){this.buildState.set(e,{completed:false,options:{validation:Object.assign(Object.assign({},t.validation),{categories:o})},result:n.result});s.state=xr.IndexedReferences}}}}else{this.buildState.delete(e)}}this.currentState=xr.Changed;await this.emitUpdate(e.map((e=>e.uri)),[]);await this.buildDocuments(e,t,n)}async update(e,t,n=ar.CancellationToken.None){this.currentState=xr.Changed;for(const s of t){this.langiumDocuments.deleteDocument(s);this.buildState.delete(s.toString());this.indexManager.remove(s)}for(const s of e){const e=this.langiumDocuments.invalidateDocument(s);if(!e){const e=this.langiumDocumentFactory.fromModel({$type:"INVALID"},s);e.state=xr.Changed;this.langiumDocuments.addDocument(e)}this.buildState.delete(s.toString())}const r=(0,Dn.Td)(e).concat(t).map((e=>e.toString())).toSet();this.langiumDocuments.all.filter((e=>!r.has(e.uri.toString())&&this.shouldRelink(e,r))).forEach((e=>{const t=this.serviceRegistry.getServices(e.uri).references.Linker;t.unlink(e);e.state=Math.min(e.state,xr.ComputedScopes);e.diagnostics=undefined}));await this.emitUpdate(e,t);await mr(n);const i=this.sortDocuments(this.langiumDocuments.all.filter((e=>{var t;return e.staten(e,t))))}sortDocuments(e){let t=0;let n=e.length-1;while(t=0&&!this.hasTextDocument(e[n])){n--}if(te.error!==undefined))){return true}return this.indexManager.isAffected(e,t)}onUpdate(e){this.updateListeners.push(e);return ci.create((()=>{const t=this.updateListeners.indexOf(e);if(t>=0){this.updateListeners.splice(t,1)}}))}async buildDocuments(e,t,n){this.prepareBuild(e,t);await this.runCancelable(e,xr.Parsed,n,(e=>this.langiumDocumentFactory.update(e,n)));await this.runCancelable(e,xr.IndexedContent,n,(e=>this.indexManager.updateContent(e,n)));await this.runCancelable(e,xr.ComputedScopes,n,(async e=>{const t=this.serviceRegistry.getServices(e.uri).references.ScopeComputation;e.precomputedScopes=await t.computeLocalScopes(e,n)}));await this.runCancelable(e,xr.Linked,n,(e=>{const t=this.serviceRegistry.getServices(e.uri).references.Linker;return t.link(e,n)}));await this.runCancelable(e,xr.IndexedReferences,n,(e=>this.indexManager.updateReferences(e,n)));const r=e.filter((e=>this.shouldValidate(e)));await this.runCancelable(r,xr.Validated,n,(e=>this.validate(e,n)));for(const i of e){const e=this.buildState.get(i.uri.toString());if(e){e.completed=true}}}prepareBuild(e,t){for(const n of e){const e=n.uri.toString();const r=this.buildState.get(e);if(!r||r.completed){this.buildState.set(e,{completed:false,options:t,result:r===null||r===void 0?void 0:r.result})}}}async runCancelable(e,t,n,r){const i=e.filter((e=>e.statee.state===t));await this.notifyBuildPhase(s,t,n);this.currentState=t}onBuildPhase(e,t){this.buildPhaseListeners.add(e,t);return ci.create((()=>{this.buildPhaseListeners.delete(e,t)}))}onDocumentPhase(e,t){this.documentPhaseListeners.add(e,t);return ci.create((()=>{this.documentPhaseListeners.delete(e,t)}))}waitUntil(e,t,n){let r=undefined;if(t&&"path"in t){r=t}else{n=t}n!==null&&n!==void 0?n:n=ar.CancellationToken.None;if(r){const t=this.langiumDocuments.getDocument(r);if(t&&t.state>e){return Promise.resolve(r)}}if(this.currentState>=e){return Promise.resolve(undefined)}else if(n.isCancellationRequested){return Promise.reject(hr)}return new Promise(((t,i)=>{const s=this.onBuildPhase(e,(()=>{s.dispose();a.dispose();if(r){const e=this.langiumDocuments.getDocument(r);t(e===null||e===void 0?void 0:e.uri)}else{t(undefined)}}));const a=n.onCancellationRequested((()=>{s.dispose();a.dispose();i(hr)}))}))}async notifyDocumentPhase(e,t,n){const r=this.documentPhaseListeners.get(t);const i=r.slice();for(const a of i){try{await a(e,n)}catch(s){if(!pr(s)){throw s}}}}async notifyBuildPhase(e,t,n){if(e.length===0){return}const r=this.buildPhaseListeners.get(t);const i=r.slice();for(const s of i){await mr(n);await s(e,n)}}shouldValidate(e){return Boolean(this.getBuildOptions(e).validation)}async validate(e,t){var n,r;const i=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator;const s=this.getBuildOptions(e).validation;const a=typeof s==="object"?s:undefined;const o=await i.validateDocument(e,a,t);if(e.diagnostics){e.diagnostics.push(...o)}else{e.diagnostics=o}const l=this.buildState.get(e.uri.toString());if(l){(n=l.result)!==null&&n!==void 0?n:l.result={};const e=(r=a===null||a===void 0?void 0:a.categories)!==null&&r!==void 0?r:Qr.all;if(l.result.validationChecks){l.result.validationChecks.push(...e)}else{l.result.validationChecks=[...e]}}}getBuildOptions(e){var t,n;return(n=(t=this.buildState.get(e.uri.toString()))===null||t===void 0?void 0:t.options)!==null&&n!==void 0?n:{}}}class fi{constructor(e){this.symbolIndex=new Map;this.symbolByTypeIndex=new Br;this.referenceIndex=new Map;this.documents=e.workspace.LangiumDocuments;this.serviceRegistry=e.ServiceRegistry;this.astReflection=e.AstReflection}findAllReferences(e,t){const n=(0,Ge.YE)(e).uri;const r=[];this.referenceIndex.forEach((e=>{e.forEach((e=>{if(br.equals(e.targetUri,n)&&e.targetPath===t){r.push(e)}}))}));return(0,Dn.Td)(r)}allElements(e,t){let n=(0,Dn.Td)(this.symbolIndex.keys());if(t){n=n.filter((e=>!t||t.has(e)))}return n.map((t=>this.getFileDescriptions(t,e))).flat()}getFileDescriptions(e,t){var n;if(!t){return(n=this.symbolIndex.get(e))!==null&&n!==void 0?n:[]}const r=this.symbolByTypeIndex.get(e,t,(()=>{var n;const r=(n=this.symbolIndex.get(e))!==null&&n!==void 0?n:[];return r.filter((e=>this.astReflection.isSubtype(e.type,t)))}));return r}remove(e){const t=e.toString();this.symbolIndex.delete(t);this.symbolByTypeIndex.clear(t);this.referenceIndex.delete(t)}async updateContent(e,t=ar.CancellationToken.None){const n=this.serviceRegistry.getServices(e.uri);const r=await n.references.ScopeComputation.computeExports(e,t);const i=e.uri.toString();this.symbolIndex.set(i,r);this.symbolByTypeIndex.clear(i)}async updateReferences(e,t=ar.CancellationToken.None){const n=this.serviceRegistry.getServices(e.uri);const r=await n.workspace.ReferenceDescriptionProvider.createDescriptions(e,t);this.referenceIndex.set(e.uri.toString(),r)}isAffected(e,t){const n=this.referenceIndex.get(e.uri.toString());if(!n){return false}return n.some((e=>!e.local&&t.has(e.targetUri.toString())))}}class di{constructor(e){this.initialBuildOptions={};this._ready=new gr;this.serviceRegistry=e.ServiceRegistry;this.langiumDocuments=e.workspace.LangiumDocuments;this.documentBuilder=e.workspace.DocumentBuilder;this.fileSystemProvider=e.workspace.FileSystemProvider;this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}get workspaceFolders(){return this.folders}initialize(e){var t;this.folders=(t=e.workspaceFolders)!==null&&t!==void 0?t:undefined}initialized(e){return this.mutex.write((e=>{var t;return this.initializeWorkspace((t=this.folders)!==null&&t!==void 0?t:[],e)}))}async initializeWorkspace(e,t=ar.CancellationToken.None){const n=await this.performStartup(e);await mr(t);await this.documentBuilder.build(n,this.initialBuildOptions,t)}async performStartup(e){const t=this.serviceRegistry.all.flatMap((e=>e.LanguageMetaData.fileExtensions));const n=[];const r=e=>{n.push(e);if(!this.langiumDocuments.hasDocument(e.uri)){this.langiumDocuments.addDocument(e)}};await this.loadAdditionalDocuments(e,r);await Promise.all(e.map((e=>[e,this.getRootFolder(e)])).map((async e=>this.traverseFolder(...e,t,r))));this._ready.resolve();return n}loadAdditionalDocuments(e,t){return Promise.resolve()}getRootFolder(e){return kr.r.parse(e.uri)}async traverseFolder(e,t,n,r){const i=await this.fileSystemProvider.readDirectory(t);await Promise.all(i.map((async t=>{if(this.includeEntry(e,t,n)){if(t.isDirectory){await this.traverseFolder(e,t.uri,n,r)}else if(t.isFile){const e=await this.langiumDocuments.getOrCreateDocument(t.uri);r(e)}}})))}includeEntry(e,t,n){const r=br.basename(t.uri);if(r.startsWith(".")){return false}if(t.isDirectory){return r!=="node_modules"&&r!=="out"}else if(t.isFile){const e=br.extname(t.uri);return n.includes(e)}return false}}class hi{buildUnexpectedCharactersMessage(e,t,n,r,i){return l.PW.buildUnexpectedCharactersMessage(e,t,n,r,i)}buildUnableToPopLexerModeMessage(e){return l.PW.buildUnableToPopLexerModeMessage(e)}}const pi={mode:"full"};class mi{constructor(e){this.errorMessageProvider=e.parser.LexerErrorMessageProvider;this.tokenBuilder=e.parser.TokenBuilder;const t=this.tokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(t);const n=Ti(t)?Object.values(t):t;const r=e.LanguageMetaData.mode==="production";this.chevrotainLexer=new l.JG(n,{positionTracking:"full",skipValidations:r,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,t=pi){var n,r,i;const s=this.chevrotainLexer.tokenize(e);return{tokens:s.tokens,errors:s.errors,hidden:(n=s.groups.hidden)!==null&&n!==void 0?n:[],report:(i=(r=this.tokenBuilder).flushLexingReport)===null||i===void 0?void 0:i.call(r,e)}}toTokenTypeDictionary(e){if(Ti(e))return e;const t=yi(e)?Object.values(e.modes).flat():e;const n={};t.forEach((e=>n[e.name]=e));return n}}function gi(e){return Array.isArray(e)&&(e.length===0||"name"in e[0])}function yi(e){return e&&"modes"in e&&"defaultMode"in e}function Ti(e){return!gi(e)&&!yi(e)}function vi(e,t,n){let r;let i;if(typeof e==="string"){i=t;r=n}else{i=e.range.start;r=t}if(!i){i=We.create(0,0)}const s=Ri(e);const a=Di(r);const o=ki({lines:s,position:i,options:a});return Ni({index:0,tokens:o,position:i})}function Ai(e,t){const n=Di(t);const r=Ri(e);if(r.length===0){return false}const i=r[0];const s=r[r.length-1];const a=n.start;const o=n.end;return Boolean(a===null||a===void 0?void 0:a.exec(i))&&Boolean(o===null||o===void 0?void 0:o.exec(s))}function Ri(e){let t="";if(typeof e==="string"){t=e}else{t=e.text}const n=t.split(s.TH);return n}const Ei=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy;const $i=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;function ki(e){var t,n,r;const i=[];let s=e.position.line;let a=e.position.character;for(let o=0;o=u.length){if(i.length>0){const e=We.create(s,a);i.push({type:"break",content:"",range:He.create(e,e)})}}else{Ei.lastIndex=f;const e=Ei.exec(u);if(e){const t=e[0];const n=e[1];const r=We.create(s,a+f);const o=We.create(s,a+f+t.length);i.push({type:"tag",content:n,range:He.create(r,o)});f+=t.length;f=Ci(u,f)}if(f0&&i[i.length-1].type==="break"){return i.slice(0,-1)}return i}function xi(e,t,n,r){const i=[];if(e.length===0){const e=We.create(n,r);const s=We.create(n,r+t.length);i.push({type:"text",content:t,range:He.create(e,s)})}else{let s=0;for(const o of e){const e=o.index;const a=t.substring(s,e);if(a.length>0){i.push({type:"text",content:t.substring(s,e),range:He.create(We.create(n,s+r),We.create(n,e+r))})}let l=a.length+1;const c=o[1];i.push({type:"inline-tag",content:c,range:He.create(We.create(n,s+l+r),We.create(n,s+l+c.length+r))});l+=c.length;if(o.length===4){l+=o[2].length;const e=o[3];i.push({type:"text",content:e,range:He.create(We.create(n,s+l+r),We.create(n,s+l+e.length+r))})}else{i.push({type:"text",content:"",range:He.create(We.create(n,s+l+r),We.create(n,s+l+r))})}s=e+o[0].length}const a=t.substring(s);if(a.length>0){i.push({type:"text",content:a,range:He.create(We.create(n,s+r),We.create(n,s+r+a.length))})}}return i}const wi=/\S/;const Ii=/\s*$/;function Ci(e,t){const n=e.substring(t).match(wi);if(n){return t+n.index}else{return e.length}}function Si(e){const t=e.match(Ii);if(t&&typeof t.index==="number"){return t.index}return undefined}function Ni(e){var t,n,r,i;const s=We.create(e.position.line,e.position.character);if(e.tokens.length===0){return new Fi([],He.create(s,s))}const a=[];while(e.indext.name===e))}getTags(e){return this.getAllTags().filter((t=>t.name===e))}getAllTags(){return this.elements.filter((e=>"name"in e))}toString(){let e="";for(const t of this.elements){if(e.length===0){e=t.toString()}else{const n=t.toString();e+=Wi(e)+n}}return e.trim()}toMarkdown(e){let t="";for(const n of this.elements){if(t.length===0){t=n.toMarkdown(e)}else{const r=n.toMarkdown(e);t+=Wi(t)+r}}return t.trim()}}class Gi{constructor(e,t,n,r){this.name=e;this.content=t;this.inline=n;this.range=r}toString(){let e=`@${this.name}`;const t=this.content.toString();if(this.content.inlines.length===1){e=`${e} ${t}`}else if(this.content.inlines.length>1){e=`${e}\n${t}`}if(this.inline){return`{${e}}`}else{return e}}toMarkdown(e){var t,n;return(n=(t=e===null||e===void 0?void 0:e.renderTag)===null||t===void 0?void 0:t.call(e,this))!==null&&n!==void 0?n:this.toMarkdownDefault(e)}toMarkdownDefault(e){const t=this.content.toMarkdown(e);if(this.inline){const n=Ki(this.name,t,e!==null&&e!==void 0?e:{});if(typeof n==="string"){return n}}let n="";if((e===null||e===void 0?void 0:e.tag)==="italic"||(e===null||e===void 0?void 0:e.tag)===undefined){n="*"}else if((e===null||e===void 0?void 0:e.tag)==="bold"){n="**"}else if((e===null||e===void 0?void 0:e.tag)==="bold-italic"){n="***"}let r=`${n}@${this.name}${n}`;if(this.content.inlines.length===1){r=`${r} — ${t}`}else if(this.content.inlines.length>1){r=`${r}\n${t}`}if(this.inline){return`{${r}}`}else{return r}}}function Ki(e,t,n){var r,i;if(e==="linkplain"||e==="linkcode"||e==="link"){const s=t.indexOf(" ");let a=t;if(s>0){const e=Ci(t,s);a=t.substring(e);t=t.substring(0,s)}if(e==="linkcode"||e==="link"&&n.link==="code"){a=`\`${a}\``}const o=(i=(r=n.renderLink)===null||r===void 0?void 0:r.call(n,t,a))!==null&&i!==void 0?i:Bi(t,a);return o}return undefined}function Bi(e,t){try{kr.r.parse(e,true);return`[${t}](${e})`}catch(n){return e}}class ji{constructor(e,t){this.inlines=e;this.range=t}toString(){let e="";for(let t=0;tn.range.start.line){e+="\n"}}return e}toMarkdown(e){let t="";for(let n=0;nr.range.start.line){t+="\n"}}return t}}class Vi{constructor(e,t){this.text=e;this.range=t}toString(){return this.text}toMarkdown(){return this.text}}function Wi(e){if(e.endsWith("\n")){return"\n"}else{return"\n\n"}}class Hi{constructor(e){this.indexManager=e.shared.workspace.IndexManager;this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){const t=this.commentProvider.getComment(e);if(t&&Ai(t)){const n=vi(t);return n.toMarkdown({renderLink:(t,n)=>this.documentationLinkRenderer(e,t,n),renderTag:t=>this.documentationTagRenderer(e,t)})}return undefined}documentationLinkRenderer(e,t,n){var r;const i=(r=this.findNameInPrecomputedScopes(e,t))!==null&&r!==void 0?r:this.findNameInGlobalScope(e,t);if(i&&i.nameSegment){const e=i.nameSegment.range.start.line+1;const t=i.nameSegment.range.start.character+1;const r=i.documentUri.with({fragment:`L${e},${t}`});return`[${n}](${r.toString()})`}else{return undefined}}documentationTagRenderer(e,t){return undefined}findNameInPrecomputedScopes(e,t){const n=(0,Ge.YE)(e);const r=n.precomputedScopes;if(!r){return undefined}let i=e;do{const e=r.get(i);const n=e.find((e=>e.name===t));if(n){return n}i=i.$container}while(i);return undefined}findNameInGlobalScope(e,t){const n=this.indexManager.allElements().find((e=>e.name===t));return n}}class zi{constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){var t;if(Hr(e)){return e.$comment}return(t=(0,r.v)(e.$cstNode,this.grammarConfig().multilineCommentRules))===null||t===void 0?void 0:t.text}}class Yi{constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,t){return Promise.resolve(this.syncParser.parse(e))}}class qi{constructor(e){this.threadCount=8;this.terminationDelay=200;this.workerPool=[];this.queue=[];this.hydrator=e.serializer.Hydrator}initializeWorkers(){while(this.workerPool.length{if(this.queue.length>0){const t=this.queue.shift();if(t){e.lock();t.resolve(e)}}}));this.workerPool.push(e)}}async parse(e,t){const n=await this.acquireParserWorker(t);const r=new Deferred;let i;const s=t.onCancellationRequested((()=>{i=setTimeout((()=>{this.terminateWorker(n)}),this.terminationDelay)}));n.parse(e).then((e=>{const t=this.hydrator.hydrate(e);r.resolve(t)})).catch((e=>{r.reject(e)})).finally((()=>{s.dispose();clearTimeout(i)}));return r.promise}terminateWorker(e){e.terminate();const t=this.workerPool.indexOf(e);if(t>=0){this.workerPool.splice(t,1)}}async acquireParserWorker(e){this.initializeWorkers();for(const n of this.workerPool){if(n.ready){n.lock();return n}}const t=new Deferred;e.onCancellationRequested((()=>{const e=this.queue.indexOf(t);if(e>=0){this.queue.splice(e,1)}t.reject(OperationCancelled)}));this.queue.push(t);return t.promise}}class Xi{get ready(){return this._ready}get onReady(){return this.onReadyEmitter.event}constructor(e,t,n,r){this.onReadyEmitter=new Emitter;this.deferred=new Deferred;this._ready=true;this._parsing=false;this.sendMessage=e;this._terminate=r;t((e=>{const t=e;this.deferred.resolve(t);this.unlock()}));n((e=>{this.deferred.reject(e);this.unlock()}))}terminate(){this.deferred.reject(OperationCancelled);this._terminate()}lock(){this._ready=false}unlock(){this._parsing=false;this._ready=true;this.onReadyEmitter.fire()}parse(e){if(this._parsing){throw new Error("Parser worker is busy")}this._parsing=true;this.deferred=new Deferred;this.sendMessage(e);return this.deferred.promise}}class Qi{constructor(){this.previousTokenSource=new ar.CancellationTokenSource;this.writeQueue=[];this.readQueue=[];this.done=true}write(e){this.cancelWrite();const t=fr();this.previousTokenSource=t;return this.enqueue(this.writeQueue,e,t.token)}read(e){return this.enqueue(this.readQueue,e)}enqueue(e,t,n=ar.CancellationToken.None){const r=new gr;const i={action:t,deferred:r,cancellationToken:n};e.push(i);this.performNextOperation();return r.promise}async performNextOperation(){if(!this.done){return}const e=[];if(this.writeQueue.length>0){e.push(this.writeQueue.shift())}else if(this.readQueue.length>0){e.push(...this.readQueue.splice(0,this.readQueue.length))}else{return}this.done=false;await Promise.all(e.map((async({action:e,deferred:t,cancellationToken:n})=>{try{const r=await Promise.resolve().then((()=>e(n)));t.resolve(r)}catch(r){if(pr(r)){t.resolve(undefined)}else{t.reject(r)}}})));this.done=true;this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}}class Zi{constructor(e){this.grammarElementIdMap=new Pr;this.tokenTypeIdMap=new Pr;this.grammar=e.Grammar;this.lexer=e.parser.Lexer;this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport?this.dehydrateLexerReport(e.lexerReport):undefined,parserErrors:e.parserErrors.map((e=>Object.assign(Object.assign({},e),{message:e.message}))),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){const t=new Map;const n=new Map;for(const r of(0,Ge.jm)(e)){t.set(r,{})}if(e.$cstNode){for(const t of(0,r.NS)(e.$cstNode)){n.set(t,{})}}return{astNodes:t,cstNodes:n}}dehydrateAstNode(e,t){const n=t.astNodes.get(e);n.$type=e.$type;n.$containerIndex=e.$containerIndex;n.$containerProperty=e.$containerProperty;if(e.$cstNode!==undefined){n.$cstNode=this.dehydrateCstNode(e.$cstNode,t)}for(const[r,i]of Object.entries(e)){if(r.startsWith("$")){continue}if(Array.isArray(i)){const e=[];n[r]=e;for(const n of i){if((0,or.ng)(n)){e.push(this.dehydrateAstNode(n,t))}else if((0,or.A_)(n)){e.push(this.dehydrateReference(n,t))}else{e.push(n)}}}else if((0,or.ng)(i)){n[r]=this.dehydrateAstNode(i,t)}else if((0,or.A_)(i)){n[r]=this.dehydrateReference(i,t)}else if(i!==undefined){n[r]=i}}return n}dehydrateReference(e,t){const n={};n.$refText=e.$refText;if(e.$refNode){n.$refNode=t.cstNodes.get(e.$refNode)}return n}dehydrateCstNode(e,t){const n=t.cstNodes.get(e);if((0,or.br)(e)){n.fullText=e.fullText}else{n.grammarSource=this.getGrammarElementId(e.grammarSource)}n.hidden=e.hidden;n.astNode=t.astNodes.get(e.astNode);if((0,or.mD)(e)){n.content=e.content.map((e=>this.dehydrateCstNode(e,t)))}else if((0,or.FC)(e)){n.tokenType=e.tokenType.name;n.offset=e.offset;n.length=e.length;n.startLine=e.range.start.line;n.startColumn=e.range.start.character;n.endLine=e.range.end.line;n.endColumn=e.range.end.character}return n}hydrate(e){const t=e.value;const n=this.createHydrationContext(t);if("$cstNode"in t){this.hydrateCstNode(t.$cstNode,n)}return{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport,parserErrors:e.parserErrors,value:this.hydrateAstNode(t,n)}}createHydrationContext(e){const t=new Map;const n=new Map;for(const r of(0,Ge.jm)(e)){t.set(r,{})}let i;if(e.$cstNode){for(const t of(0,r.NS)(e.$cstNode)){let e;if("fullText"in t){e=new kn(t.fullText);i=e}else if("content"in t){e=new En}else if("tokenType"in t){e=this.hydrateCstLeafNode(t)}if(e){n.set(t,e);e.root=i}}}return{astNodes:t,cstNodes:n}}hydrateAstNode(e,t){const n=t.astNodes.get(e);n.$type=e.$type;n.$containerIndex=e.$containerIndex;n.$containerProperty=e.$containerProperty;if(e.$cstNode){n.$cstNode=t.cstNodes.get(e.$cstNode)}for(const[r,i]of Object.entries(e)){if(r.startsWith("$")){continue}if(Array.isArray(i)){const e=[];n[r]=e;for(const s of i){if((0,or.ng)(s)){e.push(this.setParent(this.hydrateAstNode(s,t),n))}else if((0,or.A_)(s)){e.push(this.hydrateReference(s,n,r,t))}else{e.push(s)}}}else if((0,or.ng)(i)){n[r]=this.setParent(this.hydrateAstNode(i,t),n)}else if((0,or.A_)(i)){n[r]=this.hydrateReference(i,n,r,t)}else if(i!==undefined){n[r]=i}}return n}setParent(e,t){e.$container=t;return e}hydrateReference(e,t,n,r){return this.linker.buildReference(t,n,r.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,t,n=0){const r=t.cstNodes.get(e);if(typeof e.grammarSource==="number"){r.grammarSource=this.getGrammarElement(e.grammarSource)}r.astNode=t.astNodes.get(e.astNode);if((0,or.mD)(r)){for(const i of e.content){const e=this.hydrateCstNode(i,t,n++);r.content.push(e)}}return r}hydrateCstLeafNode(e){const t=this.getTokenType(e.tokenType);const n=e.offset;const r=e.length;const i=e.startLine;const s=e.startColumn;const a=e.endLine;const o=e.endColumn;const l=e.hidden;const c=new Rn(n,r,{start:{line:i,character:s},end:{line:a,character:o}},t,l);return c}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){if(!e){return undefined}if(this.grammarElementIdMap.size===0){this.createGrammarElementIdMap()}return this.grammarElementIdMap.get(e)}getGrammarElement(e){if(this.grammarElementIdMap.size===0){this.createGrammarElementIdMap()}const t=this.grammarElementIdMap.getKey(e);return t}createGrammarElementIdMap(){let e=0;for(const t of(0,Ge.jm)(this.grammar)){if((0,a.r1)(t)){this.grammarElementIdMap.set(t,e++)}}}}function Ji(e){return{documentation:{CommentProvider:e=>new zi(e),DocumentationProvider:e=>new Hi(e)},parser:{AsyncParser:e=>new Yi(e),GrammarConfig:e=>o(e),LangiumParser:e=>nr(e),CompletionParser:e=>tr(e),ValueConverter:()=>new sr.d,TokenBuilder:()=>new ir.Q,Lexer:e=>new mi(e),ParserErrorMessageProvider:()=>new bn,LexerErrorMessageProvider:()=>new hi},workspace:{AstNodeLocator:()=>new ai,AstNodeDescriptionProvider:e=>new ii(e),ReferenceDescriptionProvider:e=>new si(e)},references:{Linker:e=>new Sr(e),NameProvider:()=>new Lr,ScopeProvider:e=>new Wr(e),ScopeComputation:e=>new Mr(e),References:e=>new _r(e)},serializer:{Hydrator:e=>new Zi(e),JsonSerializer:e=>new Yr(e)},validation:{DocumentValidator:e=>new Jr(e),ValidationRegistry:e=>new Zr(e)},shared:()=>e.shared}}function es(e){return{ServiceRegistry:e=>new qr(e),workspace:{LangiumDocuments:e=>new Ir(e),LangiumDocumentFactory:e=>new wr(e),DocumentBuilder:e=>new ui(e),IndexManager:e=>new fi(e),WorkspaceManager:e=>new di(e),FileSystemProvider:t=>e.fileSystemProvider(t),WorkspaceLock:()=>new Qi,ConfigurationProvider:e=>new li(e)}}}},41281:(e,t,n)=>{"use strict";n.d(t,{WQ:()=>i});var r;(function(e){e.merge=(e,t)=>u(u({},e),t)})(r||(r={}));function i(e,t,n,r,i,s,a,l,c){const f=[e,t,n,r,i,s,a,l,c].reduce(u,{});return o(f)}const s=Symbol("isProxy");function a(e){if(e&&e[s]){for(const t of Object.values(e)){a(t)}}return e}function o(e,t){const n=new Proxy({},{deleteProperty:()=>false,set:()=>{throw new Error("Cannot set property on injected service container")},get:(r,i)=>{if(i===s){return true}else{return c(r,i,e,t||n)}},getOwnPropertyDescriptor:(r,i)=>(c(r,i,e,t||n),Object.getOwnPropertyDescriptor(r,i)),has:(t,n)=>n in e,ownKeys:()=>[...Object.getOwnPropertyNames(e)]});return n}const l=Symbol();function c(e,t,n,r){if(t in e){if(e[t]instanceof Error){throw new Error("Construction failure. Please make sure that your dependencies are constructable.",{cause:e[t]})}if(e[t]===l){throw new Error('Cycle detected. Please make "'+String(t)+'" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies')}return e[t]}else if(t in n){const s=n[t];e[t]=l;try{e[t]=typeof s==="function"?s(r):o(s,r)}catch(i){e[t]=i instanceof Error?i:undefined;throw i}return e[t]}else{return undefined}}function u(e,t){if(t){for(const[n,r]of Object.entries(t)){if(r!==undefined){const t=e[n];if(t!==null&&r!==null&&typeof t==="object"&&typeof r==="object"){e[n]=u(t,r)}else{e[n]=r}}}}return e}},85684:(e,t,n)=>{"use strict";n.d(t,{$g:()=>be,Bg:()=>Te,Ct:()=>G,Cz:()=>k,D8:()=>ee,FO:()=>Ee,Fy:()=>Oe,GL:()=>Ce,IZ:()=>ke,Mz:()=>Be,O4:()=>Me,QX:()=>We,RP:()=>C,S2:()=>M,SP:()=>O,TF:()=>H,Tu:()=>w,Xj:()=>ae,_c:()=>Ae,cY:()=>Ge,fG:()=>Z,jp:()=>pe,lF:()=>Ue,r1:()=>T,rE:()=>ie,s7:()=>Y,vd:()=>Ne,ve:()=>de,wb:()=>we,wh:()=>ge,z2:()=>Ve});var r=n(64032);const i={ID:/\^?[_a-zA-Z][\w_]*/,STRING:/"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/,NUMBER:/NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity)/,RegexLiteral:/\/(?![*+?])(?:[^\r\n\[/\\]|\\.|\[(?:[^\r\n\]\\]|\\.)*\])+\/[a-z]*/,WS:/\s+/,ML_COMMENT:/\/\*[\s\S]*?\*\//,SL_COMMENT:/\/\/[^\n\r]*/};const s="AbstractRule";function a(e){return He.isInstance(e,s)}const o="AbstractType";function l(e){return He.isInstance(e,o)}const c="Condition";function u(e){return He.isInstance(e,c)}function f(e){return d(e)||e==="current"||e==="entry"||e==="extends"||e==="false"||e==="fragment"||e==="grammar"||e==="hidden"||e==="import"||e==="interface"||e==="returns"||e==="terminal"||e==="true"||e==="type"||e==="infer"||e==="infers"||e==="with"||typeof e==="string"&&/\^?[_a-zA-Z][\w_]*/.test(e)}function d(e){return e==="string"||e==="number"||e==="boolean"||e==="Date"||e==="bigint"}const h="TypeDefinition";function p(e){return He.isInstance(e,h)}const m="ValueLiteral";function g(e){return He.isInstance(e,m)}const y="AbstractElement";function T(e){return He.isInstance(e,y)}const v="ArrayLiteral";function A(e){return He.isInstance(e,v)}const R="ArrayType";function E(e){return He.isInstance(e,R)}const $="BooleanLiteral";function k(e){return He.isInstance(e,$)}const x="Conjunction";function w(e){return He.isInstance(e,x)}const I="Disjunction";function C(e){return He.isInstance(e,I)}const S="Grammar";function N(e){return He.isInstance(e,S)}const L="GrammarImport";function b(e){return He.isInstance(e,L)}const _="InferredType";function O(e){return He.isInstance(e,_)}const P="Interface";function M(e){return He.isInstance(e,P)}const D="NamedArgument";function U(e){return He.isInstance(e,D)}const F="Negation";function G(e){return He.isInstance(e,F)}const K="NumberLiteral";function B(e){return He.isInstance(e,K)}const j="Parameter";function V(e){return He.isInstance(e,j)}const W="ParameterReference";function H(e){return He.isInstance(e,W)}const z="ParserRule";function Y(e){return He.isInstance(e,z)}const q="ReferenceType";function X(e){return He.isInstance(e,q)}const Q="ReturnType";function Z(e){return He.isInstance(e,Q)}const J="SimpleType";function ee(e){return He.isInstance(e,J)}const te="StringLiteral";function ne(e){return He.isInstance(e,te)}const re="TerminalRule";function ie(e){return He.isInstance(e,re)}const se="Type";function ae(e){return He.isInstance(e,se)}const oe="TypeAttribute";function le(e){return He.isInstance(e,oe)}const ce="UnionType";function ue(e){return He.isInstance(e,ce)}const fe="Action";function de(e){return He.isInstance(e,fe)}const he="Alternatives";function pe(e){return He.isInstance(e,he)}const me="Assignment";function ge(e){return He.isInstance(e,me)}const ye="CharacterRange";function Te(e){return He.isInstance(e,ye)}const ve="CrossReference";function Ae(e){return He.isInstance(e,ve)}const Re="EndOfFile";function Ee(e){return He.isInstance(e,Re)}const $e="Group";function ke(e){return He.isInstance(e,$e)}const xe="Keyword";function we(e){return He.isInstance(e,xe)}const Ie="NegatedToken";function Ce(e){return He.isInstance(e,Ie)}const Se="RegexToken";function Ne(e){return He.isInstance(e,Se)}const Le="RuleCall";function be(e){return He.isInstance(e,Le)}const _e="TerminalAlternatives";function Oe(e){return He.isInstance(e,_e)}const Pe="TerminalGroup";function Me(e){return He.isInstance(e,Pe)}const De="TerminalRuleCall";function Ue(e){return He.isInstance(e,De)}const Fe="UnorderedGroup";function Ge(e){return He.isInstance(e,Fe)}const Ke="UntilToken";function Be(e){return He.isInstance(e,Ke)}const je="Wildcard";function Ve(e){return He.isInstance(e,je)}class We extends r.kD{getAllTypes(){return[y,s,o,fe,he,v,R,me,$,ye,c,x,ve,I,Re,S,L,$e,_,P,xe,D,Ie,F,K,j,W,z,q,Se,Q,Le,J,te,_e,Pe,re,De,se,oe,h,ce,Fe,Ke,m,je]}computeIsSubtype(e,t){switch(e){case fe:case he:case me:case ye:case ve:case Re:case $e:case xe:case Ie:case Se:case Le:case _e:case Pe:case De:case Fe:case Ke:case je:{return this.isSubtype(y,t)}case v:case K:case te:{return this.isSubtype(m,t)}case R:case q:case J:case ce:{return this.isSubtype(h,t)}case $:{return this.isSubtype(c,t)||this.isSubtype(m,t)}case x:case I:case F:case W:{return this.isSubtype(c,t)}case _:case P:case se:{return this.isSubtype(o,t)}case z:{return this.isSubtype(s,t)||this.isSubtype(o,t)}case re:{return this.isSubtype(s,t)}default:{return false}}}getReferenceType(e){const t=`${e.container.$type}:${e.property}`;switch(t){case"Action:type":case"CrossReference:type":case"Interface:superTypes":case"ParserRule:returnType":case"SimpleType:typeRef":{return o}case"Grammar:hiddenTokens":case"ParserRule:hiddenTokens":case"RuleCall:rule":{return s}case"Grammar:usedGrammars":{return S}case"NamedArgument:parameter":case"ParameterReference:parameter":{return j}case"TerminalRuleCall:rule":{return re}default:{throw new Error(`${t} is not a valid reference id.`)}}}getTypeMetaData(e){switch(e){case y:{return{name:y,properties:[{name:"cardinality"},{name:"lookahead"}]}}case v:{return{name:v,properties:[{name:"elements",defaultValue:[]}]}}case R:{return{name:R,properties:[{name:"elementType"}]}}case $:{return{name:$,properties:[{name:"true",defaultValue:false}]}}case x:{return{name:x,properties:[{name:"left"},{name:"right"}]}}case I:{return{name:I,properties:[{name:"left"},{name:"right"}]}}case S:{return{name:S,properties:[{name:"definesHiddenTokens",defaultValue:false},{name:"hiddenTokens",defaultValue:[]},{name:"imports",defaultValue:[]},{name:"interfaces",defaultValue:[]},{name:"isDeclared",defaultValue:false},{name:"name"},{name:"rules",defaultValue:[]},{name:"types",defaultValue:[]},{name:"usedGrammars",defaultValue:[]}]}}case L:{return{name:L,properties:[{name:"path"}]}}case _:{return{name:_,properties:[{name:"name"}]}}case P:{return{name:P,properties:[{name:"attributes",defaultValue:[]},{name:"name"},{name:"superTypes",defaultValue:[]}]}}case D:{return{name:D,properties:[{name:"calledByName",defaultValue:false},{name:"parameter"},{name:"value"}]}}case F:{return{name:F,properties:[{name:"value"}]}}case K:{return{name:K,properties:[{name:"value"}]}}case j:{return{name:j,properties:[{name:"name"}]}}case W:{return{name:W,properties:[{name:"parameter"}]}}case z:{return{name:z,properties:[{name:"dataType"},{name:"definesHiddenTokens",defaultValue:false},{name:"definition"},{name:"entry",defaultValue:false},{name:"fragment",defaultValue:false},{name:"hiddenTokens",defaultValue:[]},{name:"inferredType"},{name:"name"},{name:"parameters",defaultValue:[]},{name:"returnType"},{name:"wildcard",defaultValue:false}]}}case q:{return{name:q,properties:[{name:"referenceType"}]}}case Q:{return{name:Q,properties:[{name:"name"}]}}case J:{return{name:J,properties:[{name:"primitiveType"},{name:"stringType"},{name:"typeRef"}]}}case te:{return{name:te,properties:[{name:"value"}]}}case re:{return{name:re,properties:[{name:"definition"},{name:"fragment",defaultValue:false},{name:"hidden",defaultValue:false},{name:"name"},{name:"type"}]}}case se:{return{name:se,properties:[{name:"name"},{name:"type"}]}}case oe:{return{name:oe,properties:[{name:"defaultValue"},{name:"isOptional",defaultValue:false},{name:"name"},{name:"type"}]}}case ce:{return{name:ce,properties:[{name:"types",defaultValue:[]}]}}case fe:{return{name:fe,properties:[{name:"cardinality"},{name:"feature"},{name:"inferredType"},{name:"lookahead"},{name:"operator"},{name:"type"}]}}case he:{return{name:he,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]}}case me:{return{name:me,properties:[{name:"cardinality"},{name:"feature"},{name:"lookahead"},{name:"operator"},{name:"terminal"}]}}case ye:{return{name:ye,properties:[{name:"cardinality"},{name:"left"},{name:"lookahead"},{name:"right"}]}}case ve:{return{name:ve,properties:[{name:"cardinality"},{name:"deprecatedSyntax",defaultValue:false},{name:"lookahead"},{name:"terminal"},{name:"type"}]}}case Re:{return{name:Re,properties:[{name:"cardinality"},{name:"lookahead"}]}}case $e:{return{name:$e,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"guardCondition"},{name:"lookahead"}]}}case xe:{return{name:xe,properties:[{name:"cardinality"},{name:"lookahead"},{name:"value"}]}}case Ie:{return{name:Ie,properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]}}case Se:{return{name:Se,properties:[{name:"cardinality"},{name:"lookahead"},{name:"regex"}]}}case Le:{return{name:Le,properties:[{name:"arguments",defaultValue:[]},{name:"cardinality"},{name:"lookahead"},{name:"rule"}]}}case _e:{return{name:_e,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]}}case Pe:{return{name:Pe,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]}}case De:{return{name:De,properties:[{name:"cardinality"},{name:"lookahead"},{name:"rule"}]}}case Fe:{return{name:Fe,properties:[{name:"cardinality"},{name:"elements",defaultValue:[]},{name:"lookahead"}]}}case Ke:{return{name:Ke,properties:[{name:"cardinality"},{name:"lookahead"},{name:"terminal"}]}}case je:{return{name:je,properties:[{name:"cardinality"},{name:"lookahead"}]}}default:{return{name:e,properties:[]}}}}}const He=new We},25355:(e,t,n)=>{"use strict";n.d(t,{Q:()=>c});var r=n(50450);var i=n(85684);var s=n(63752);var a=n(70977);var o=n(65811);var l=n(64386);class c{constructor(){this.diagnostics=[]}buildTokens(e,t){const n=(0,l.Td)((0,a.YV)(e,false));const r=this.buildTerminalTokens(n);const i=this.buildKeywordTokens(n,r,t);r.forEach((e=>{const t=e.PATTERN;if(typeof t==="object"&&t&&"test"in t&&(0,o.Yv)(t)){i.unshift(e)}else{i.push(e)}}));return i}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){const e=[...this.diagnostics];this.diagnostics=[];return e}buildTerminalTokens(e){return e.filter(i.rE).filter((e=>!e.fragment)).map((e=>this.buildTerminalToken(e))).toArray()}buildTerminalToken(e){const t=(0,a.S)(e);const n=this.requiresCustomPattern(t)?this.regexPatternFunction(t):t;const i={name:e.name,PATTERN:n};if(typeof n==="function"){i.LINE_BREAKS=true}if(e.hidden){i.GROUP=(0,o.Yv)(t)?r.JG.SKIPPED:"hidden"}return i}requiresCustomPattern(e){if(e.flags.includes("u")||e.flags.includes("s")){return true}else if(e.source.includes("?<=")||e.source.includes("?{t.lastIndex=n;const r=t.exec(e);return r}}buildKeywordTokens(e,t,n){return e.filter(i.s7).flatMap((e=>(0,s.Uo)(e).filter(i.wb))).distinct((e=>e.value)).toArray().sort(((e,t)=>t.value.length-e.value.length)).map((e=>this.buildKeywordToken(e,t,Boolean(n===null||n===void 0?void 0:n.caseInsensitive))))}buildKeywordToken(e,t,n){const r=this.buildKeywordPattern(e,n);const i={name:e.value,PATTERN:r,LONGER_ALT:this.findLongerAlt(e,t)};if(typeof r==="function"){i.LINE_BREAKS=true}return i}buildKeywordPattern(e,t){return t?new RegExp((0,o.Ao)(e.value)):e.value}findLongerAlt(e,t){return t.reduce(((t,n)=>{const r=n===null||n===void 0?void 0:n.PATTERN;if((r===null||r===void 0?void 0:r.source)&&(0,o.PC)("^"+r.source+"$",e.value)){t.push(n)}return t}),[])}}},14480:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var r=n(85684);var i=n(70977);class s{convert(e,t){let n=t.grammarSource;if((0,r._c)(n)){n=(0,i.g4)(n)}if((0,r.$g)(n)){const r=n.rule.ref;if(!r){throw new Error("This cst node was not parsed by a rule.")}return this.runConverter(r,e,t)}return e}runConverter(e,t,n){var r;switch(e.name.toUpperCase()){case"INT":return a.convertInt(t);case"STRING":return a.convertString(t);case"ID":return a.convertID(t)}switch((r=(0,i.P3)(e))===null||r===void 0?void 0:r.toLowerCase()){case"number":return a.convertNumber(t);case"boolean":return a.convertBoolean(t);case"bigint":return a.convertBigint(t);case"date":return a.convertDate(t);default:return t}}}var a;(function(e){function t(e){let t="";for(let r=1;r{"use strict";n.d(t,{A_:()=>i,FC:()=>c,Nr:()=>s,Zl:()=>a,br:()=>u,kD:()=>o,mD:()=>l,ng:()=>r});function r(e){return typeof e==="object"&&e!==null&&typeof e.$type==="string"}function i(e){return typeof e==="object"&&e!==null&&typeof e.$refText==="string"}function s(e){return typeof e==="object"&&e!==null&&typeof e.name==="string"&&typeof e.type==="string"&&typeof e.path==="string"}function a(e){return typeof e==="object"&&e!==null&&r(e.container)&&i(e.reference)&&typeof e.message==="string"}class o{constructor(){this.subtypes={};this.allSubtypes={}}isInstance(e,t){return r(e)&&this.isSubtype(e.$type,t)}isSubtype(e,t){if(e===t){return true}let n=this.subtypes[e];if(!n){n=this.subtypes[e]={}}const r=n[t];if(r!==undefined){return r}else{const r=this.computeIsSubtype(e,t);n[t]=r;return r}}getAllSubTypes(e){const t=this.allSubtypes[e];if(t){return t}else{const t=this.getAllTypes();const n=[];for(const r of t){if(this.isSubtype(r,e)){n.push(r)}}this.allSubtypes[e]=n;return n}}}function l(e){return typeof e==="object"&&e!==null&&Array.isArray(e.content)}function c(e){return typeof e==="object"&&e!==null&&typeof e.tokenType==="object"}function u(e){return l(e)&&typeof e.fullText==="string"}},63752:(e,t,n)=>{"use strict";n.d(t,{DM:()=>m,OP:()=>y,SD:()=>a,Uo:()=>d,VN:()=>f,XG:()=>o,YE:()=>c,cQ:()=>u,jm:()=>h});var r=n(64032);var i=n(64386);var s=n(5730);function a(e){for(const[t,n]of Object.entries(e)){if(!t.startsWith("$")){if(Array.isArray(n)){n.forEach(((n,i)=>{if((0,r.ng)(n)){n.$container=e;n.$containerProperty=t;n.$containerIndex=i}}))}else if((0,r.ng)(n)){n.$container=e;n.$containerProperty=t}}}}function o(e,t){let n=e;while(n){if(t(n)){return n}n=n.$container}return undefined}function l(e,t){let n=e;while(n){if(t(n)){return true}n=n.$container}return false}function c(e){const t=u(e);const n=t.$document;if(!n){throw new Error("AST node has no document.")}return n}function u(e){while(e.$container){e=e.$container}return e}function f(e,t){if(!e){throw new Error("Node must be an AstNode.")}const n=t===null||t===void 0?void 0:t.range;return new i.fq((()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0})),(t=>{while(t.keyIndexf(e,t)))}function h(e,t){if(!e){throw new Error("Root node must be an AstNode.")}else if((t===null||t===void 0?void 0:t.range)&&!p(e,t.range)){return new i.Vj(e,(()=>[]))}return new i.Vj(e,(e=>f(e,t)),{includeRoot:true})}function p(e,t){var n;if(!t){return true}const r=(n=e.$cstNode)===null||n===void 0?void 0:n.range;if(!r){return false}return(0,s.r4)(r,t)}function m(e){return new i.fq((()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0})),(t=>{while(t.keyIndex{m(t).forEach((t=>{if(t.reference.ref===e){n.push(t.reference)}}))}));return stream(n)}function y(e,t){const n=e.getTypeMetaData(t.$type);const r=t;for(const i of n.properties){if(i.defaultValue!==undefined&&r[i.name]===undefined){r[i.name]=T(i.defaultValue)}}}function T(e){if(Array.isArray(e)){return[...e.map(T)]}else{return e}}function v(e,t){const n={$type:e.$type};for(const[r,i]of Object.entries(e)){if(!r.startsWith("$")){if(isAstNode(i)){n[r]=v(i,t)}else if(isReference(i)){n[r]=t(n,r,i.$refNode,i.$refText)}else if(Array.isArray(i)){const e=[];for(const s of i){if(isAstNode(s)){e.push(v(s,t))}else if(isReference(s)){e.push(t(n,r,s.$refNode,s.$refText))}else{e.push(s)}}n[r]=e}else{n[r]=i}}}a(n);return n}},5730:(e,t,n)=>{"use strict";n.d(t,{El:()=>h,NS:()=>s,SX:()=>c,pO:()=>o,r4:()=>d,v:()=>m,wf:()=>l});var r=n(64032);var i=n(64386);function s(e){return new i.Vj(e,(e=>{if((0,r.mD)(e)){return e.content}else{return[]}}),{includeRoot:true})}function a(e){return s(e).filter(isLeafCstNode)}function o(e,t){while(e.container){e=e.container;if(e===t){return true}}return false}function l(e){return{start:{character:e.startColumn-1,line:e.startLine-1},end:{character:e.endColumn,line:e.endLine-1}}}function c(e){if(!e){return undefined}const{offset:t,end:n,range:r}=e;return{range:r,offset:t,end:n,length:n-t}}var u;(function(e){e[e["Before"]=0]="Before";e[e["After"]=1]="After";e[e["OverlapFront"]=2]="OverlapFront";e[e["OverlapBack"]=3]="OverlapBack";e[e["Inside"]=4]="Inside";e[e["Outside"]=5]="Outside"})(u||(u={}));function f(e,t){if(e.end.linet.end.line||e.start.line===t.end.line&&e.start.character>=t.end.character){return u.After}const n=e.start.line>t.start.line||e.start.line===t.start.line&&e.start.character>=t.start.character;const r=e.end.lineu.After}const h=/^[\w\p{L}]$/u;function p(e,t,n=h){if(e){if(t>0){const r=t-e.offset;const i=e.text.charAt(r);if(!n.test(i)){t--}}return y(e,t)}return undefined}function m(e,t){if(e){const n=A(e,true);if(n&&g(n,t)){return n}if((0,r.br)(e)){const n=e.content.findIndex((e=>!e.hidden));for(let r=n-1;r>=0;r--){const n=e.content[r];if(g(n,t)){return n}}}}return undefined}function g(e,t){return(0,r.FC)(e)&&t.includes(e.tokenType.name)}function y(e,t){if(isLeafCstNode(e)){return e}else if(isCompositeCstNode(e)){const n=v(e,t,false);if(n){return y(n,t)}}return undefined}function T(e,t){if(isLeafCstNode(e)){return e}else if(isCompositeCstNode(e)){const n=v(e,t,true);if(n){return T(n,t)}}return undefined}function v(e,t,n){let r=0;let i=e.content.length-1;let s=undefined;while(r<=i){const a=Math.floor((r+i)/2);const o=e.content[a];if(o.offset<=t&&o.end>t){return o}if(o.end<=t){s=n?o:undefined;r=a+1}else{i=a-1}}return s}function A(e,t=true){while(e.container){const n=e.container;let r=n.content.indexOf(e);while(r>0){r--;const e=n.content[r];if(t||!e.hidden){return e}}e=n}return undefined}function R(e,t=true){while(e.container){const n=e.container;let r=n.content.indexOf(e);const i=n.content.length-1;while(r{"use strict";n.d(t,{W:()=>r,d:()=>i});class r extends Error{constructor(e,t){super(e?`${t} at ${e.range.start.line}:${e.range.start.character}`:t)}}function i(e){throw new Error("Error! The input value was not handled.")}},70977:(e,t,n)=>{"use strict";n.d(t,{Bd:()=>m,P3:()=>M,PV:()=>b,Rp:()=>R,S:()=>D,SS:()=>v,U5:()=>E,Uz:()=>_,Xq:()=>C,YV:()=>f,eb:()=>p,g4:()=>h,qO:()=>g});var r=n(73101);var i=n(85684);var s=n(64032);var a=n(63752);var o=n(5730);var l=n(65811);function c(e){return e.rules.find((e=>i.s7(e)&&e.entry))}function u(e){return e.rules.filter((e=>i.rE(e)&&e.hidden))}function f(e,t){const n=new Set;const r=c(e);if(!r){return new Set(e.rules)}const s=[r].concat(u(e));for(const i of s){d(i,n,t)}const a=new Set;for(const o of e.rules){if(n.has(o.name)||i.rE(o)&&o.hidden){a.add(o)}}return a}function d(e,t,n){t.add(e.name);(0,a.Uo)(e).forEach((e=>{if(i.$g(e)||n&&i.lF(e)){const r=e.rule.ref;if(r&&!t.has(r.name)){d(r,t,n)}}}))}function h(e){if(e.terminal){return e.terminal}else if(e.type.ref){const t=E(e.type.ref);return t===null||t===void 0?void 0:t.terminal}return undefined}function p(e){return e.hidden&&!(0,l.Yv)(D(e))}function m(e,t){if(!e||!t){return[]}return y(e,t,e.astNode,true)}function g(e,t,n){if(!e||!t){return undefined}const r=y(e,t,e.astNode,true);if(r.length===0){return undefined}if(n!==undefined){n=Math.max(0,Math.min(n,r.length-1))}else{n=0}return r[n]}function y(e,t,n,r){if(!r){const n=(0,a.XG)(e.grammarSource,i.wh);if(n&&n.feature===t){return[e]}}if((0,s.mD)(e)&&e.astNode===n){return e.content.flatMap((e=>y(e,t,n,false)))}return[]}function T(e,t){if(!e){return[]}return A(e,t,e===null||e===void 0?void 0:e.astNode)}function v(e,t,n){if(!e){return undefined}const r=A(e,t,e===null||e===void 0?void 0:e.astNode);if(r.length===0){return undefined}if(n!==undefined){n=Math.max(0,Math.min(n,r.length-1))}else{n=0}return r[n]}function A(e,t,n){if(e.astNode!==n){return[]}if(i.wb(e.grammarSource)&&e.grammarSource.value===t){return[e]}const r=(0,o.NS)(e).iterator();let s;const a=[];do{s=r.next();if(!s.done){const e=s.value;if(e.astNode===n){if(i.wb(e.grammarSource)&&e.grammarSource.value===t){a.push(e)}}else{r.prune()}}}while(!s.done);return a}function R(e){var t;const n=e.astNode;while(n===((t=e.container)===null||t===void 0?void 0:t.astNode)){const t=(0,a.XG)(e.grammarSource,i.wh);if(t){return t}e=e.container}return undefined}function E(e){let t=e;if(i.SP(t)){if(i.ve(t.$container)){t=t.$container.$container}else if(i.s7(t.$container)){t=t.$container}else{(0,r.d)(t.$container)}}return $(e,t,new Map)}function $(e,t,n){var r;function s(t,r){let s=undefined;const o=(0,a.XG)(t,i.wh);if(!o){s=$(r,r,n)}n.set(e,s);return s}if(n.has(e)){return n.get(e)}n.set(e,undefined);for(const o of(0,a.Uo)(t)){if(i.wh(o)&&o.feature.toLowerCase()==="name"){n.set(e,o);return o}else if(i.$g(o)&&i.s7(o.rule.ref)){return s(o,o.rule.ref)}else if(i.D8(o)&&((r=o.typeRef)===null||r===void 0?void 0:r.ref)){return s(o,o.typeRef.ref)}}return undefined}function k(e){const t=e.$container;if(ast.isGroup(t)){const n=t.elements;const r=n.indexOf(e);for(let e=r-1;e>=0;e--){const t=n[e];if(ast.isAction(t)){return t}else{const t=streamAllContents(n[e]).find(ast.isAction);if(t){return t}}}}if(ast.isAbstractElement(t)){return k(t)}else{return undefined}}function x(e,t){return e==="?"||e==="*"||ast.isGroup(t)&&Boolean(t.guardCondition)}function w(e){return e==="*"||e==="+"}function I(e){return e==="+="}function C(e){return S(e,new Set)}function S(e,t){if(t.has(e)){return true}else{t.add(e)}for(const n of(0,a.Uo)(e)){if(i.$g(n)){if(!n.rule.ref){return false}if(i.s7(n.rule.ref)&&!S(n.rule.ref,t)){return false}}else if(i.wh(n)){return false}else if(i.ve(n)){return false}}return Boolean(e.definition)}function N(e){return L(e.type,new Set)}function L(e,t){if(t.has(e)){return true}else{t.add(e)}if(ast.isArrayType(e)){return false}else if(ast.isReferenceType(e)){return false}else if(ast.isUnionType(e)){return e.types.every((e=>L(e,t)))}else if(ast.isSimpleType(e)){if(e.primitiveType!==undefined){return true}else if(e.stringType!==undefined){return true}else if(e.typeRef!==undefined){const n=e.typeRef.ref;if(ast.isType(n)){return L(n.type,t)}else{return false}}else{return false}}else{return false}}function b(e){if(e.inferredType){return e.inferredType.name}else if(e.dataType){return e.dataType}else if(e.returnType){const t=e.returnType.ref;if(t){if(i.s7(t)){return t.name}else if(i.S2(t)||i.Xj(t)){return t.name}}}return undefined}function _(e){var t;if(i.s7(e)){return C(e)?e.name:(t=b(e))!==null&&t!==void 0?t:e.name}else if(i.S2(e)||i.Xj(e)||i.fG(e)){return e.name}else if(i.ve(e)){const t=O(e);if(t){return t}}else if(i.SP(e)){return e.name}throw new Error("Cannot get name of Unknown Type")}function O(e){var t;if(e.inferredType){return e.inferredType.name}else if((t=e.type)===null||t===void 0?void 0:t.ref){return _(e.type.ref)}return undefined}function P(e){var t,n,r;if(ast.isTerminalRule(e)){return(n=(t=e.type)===null||t===void 0?void 0:t.name)!==null&&n!==void 0?n:"string"}else{return C(e)?e.name:(r=b(e))!==null&&r!==void 0?r:e.name}}function M(e){var t,n,r;if(i.rE(e)){return(n=(t=e.type)===null||t===void 0?void 0:t.name)!==null&&n!==void 0?n:"string"}else{return(r=b(e))!==null&&r!==void 0?r:e.name}}function D(e){const t={s:false,i:false,u:false};const n=F(e.definition,t);const r=Object.entries(t).filter((([,e])=>e)).map((([e])=>e)).join("");return new RegExp(n,r)}const U=/[\s\S]/.source;function F(e,t){if(i.Fy(e)){return G(e)}else if(i.O4(e)){return K(e)}else if(i.Bg(e)){return V(e)}else if(i.lF(e)){const t=e.rule.ref;if(!t){throw new Error("Missing rule reference.")}return H(F(t.definition),{cardinality:e.cardinality,lookahead:e.lookahead})}else if(i.GL(e)){return j(e)}else if(i.Mz(e)){return B(e)}else if(i.vd(e)){const n=e.regex.lastIndexOf("/");const r=e.regex.substring(1,n);const i=e.regex.substring(n+1);if(t){t.i=i.includes("i");t.s=i.includes("s");t.u=i.includes("u")}return H(r,{cardinality:e.cardinality,lookahead:e.lookahead,wrap:false})}else if(i.z2(e)){return H(U,{cardinality:e.cardinality,lookahead:e.lookahead})}else{throw new Error(`Invalid terminal element: ${e===null||e===void 0?void 0:e.$type}`)}}function G(e){return H(e.elements.map((e=>F(e))).join("|"),{cardinality:e.cardinality,lookahead:e.lookahead})}function K(e){return H(e.elements.map((e=>F(e))).join(""),{cardinality:e.cardinality,lookahead:e.lookahead})}function B(e){return H(`${U}*?${F(e.terminal)}`,{cardinality:e.cardinality,lookahead:e.lookahead})}function j(e){return H(`(?!${F(e.terminal)})${U}*?`,{cardinality:e.cardinality,lookahead:e.lookahead})}function V(e){if(e.right){return H(`[${W(e.left)}-${W(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,wrap:false})}return H(W(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,wrap:false})}function W(e){return(0,l.Nt)(e.value)}function H(e,t){var n;if(t.wrap!==false||t.lookahead){e=`(${(n=t.lookahead)!==null&&n!==void 0?n:""}${e})`}if(t.cardinality){return`${e}${t.cardinality}`}return e}},65811:(e,t,n)=>{"use strict";n.d(t,{Ao:()=>h,Nt:()=>d,PC:()=>p,TH:()=>i,Yv:()=>f,lU:()=>c});var r=n(83173);const i=/\r?\n/gm;const s=new r.H;class a extends r.z{constructor(){super(...arguments);this.isStarting=true;this.endRegexpStack=[];this.multiline=false}get endRegex(){return this.endRegexpStack.join("")}reset(e){this.multiline=false;this.regex=e;this.startRegexp="";this.isStarting=true;this.endRegexpStack=[]}visitGroup(e){if(e.quantifier){this.isStarting=false;this.endRegexpStack=[]}}visitCharacter(e){const t=String.fromCharCode(e.value);if(!this.multiline&&t==="\n"){this.multiline=true}if(e.quantifier){this.isStarting=false;this.endRegexpStack=[]}else{const e=d(t);this.endRegexpStack.push(e);if(this.isStarting){this.startRegexp+=e}}}visitSet(e){if(!this.multiline){const t=this.regex.substring(e.loc.begin,e.loc.end);const n=new RegExp(t);this.multiline=Boolean("\n".match(n))}if(e.quantifier){this.isStarting=false;this.endRegexpStack=[]}else{const t=this.regex.substring(e.loc.begin,e.loc.end);this.endRegexpStack.push(t);if(this.isStarting){this.startRegexp+=t}}}visitChildren(e){if(e.type==="Group"){const t=e;if(t.quantifier){return}}super.visitChildren(e)}}const o=new a;function l(e){try{if(typeof e!=="string"){e=e.source}e=`/${e}/`;const t=s.pattern(e);const n=[];for(const r of t.value.value){o.reset(e);o.visit(r);n.push({start:o.startRegexp,end:o.endRegex})}return n}catch(t){return[]}}function c(e){try{if(typeof e==="string"){e=new RegExp(e)}e=e.toString();o.reset(e);o.visit(s.pattern(e));return o.multiline}catch(t){return false}}const u=("\f\n\r\t\v           "+"   \u2028\u2029   \ufeff").split("");function f(e){const t=typeof e==="string"?new RegExp(e):e;return u.some((e=>t.test(e)))}function d(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function h(e){return Array.prototype.map.call(e,(e=>/\w/.test(e)?`[${e.toLowerCase()}${e.toUpperCase()}]`:d(e))).join("")}function p(e,t){const n=m(e);const r=t.match(n);return!!r&&r[0].length>0}function m(e){if(typeof e==="string"){e=new RegExp(e)}const t=e,n=e.source;let r=0;function i(){let e="",s;function a(t){e+=n.substr(r,t);r+=t}function o(t){e+="(?:"+n.substr(r,t)+"|$)";r+=t}while(r",r)-r+1);break;default:o(2);break}break;case"[":s=/\[(?:\\.|.)*?\]/g;s.lastIndex=r;s=s.exec(n)||[];o(s[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":a(1);break;case"{":s=/\{\d+,?\d*\}/g;s.lastIndex=r;s=s.exec(n);if(s){a(s[0].length)}else{o(1)}break;case"(":if(n[r+1]==="?"){switch(n[r+2]){case":":e+="(?:";r+=3;e+=i()+"|$)";break;case"=":e+="(?=";r+=3;e+=i()+")";break;case"!":s=r;r+=3;i();e+=n.substr(s,r-s);break;case"<":switch(n[r+3]){case"=":case"!":s=r;r+=4;i();e+=n.substr(s,r-s);break;default:a(n.indexOf(">",r)-r+1);e+=i()+"|$)";break}break}}else{a(1);e+=i()+"|$)"}break;case")":++r;return e;default:o(1);break}}return e}return new RegExp(i(),e.flags)}},64386:(e,t,n)=>{"use strict";n.d(t,{B5:()=>a,Rf:()=>o,Td:()=>l,Vj:()=>c,fq:()=>r,iD:()=>u});class r{constructor(e,t){this.startFn=e;this.nextFn=t}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),[Symbol.iterator]:()=>e};return e}[Symbol.iterator](){return this.iterator()}isEmpty(){const e=this.iterator();return Boolean(e.next().done)}count(){const e=this.iterator();let t=0;let n=e.next();while(!n.done){t++;n=e.next()}return t}toArray(){const e=[];const t=this.iterator();let n;do{n=t.next();if(n.value!==undefined){e.push(n.value)}}while(!n.done);return e}toSet(){return new Set(this)}toMap(e,t){const n=this.map((n=>[e?e(n):n,t?t(n):n]));return new Map(n)}toString(){return this.join()}concat(e){return new r((()=>({first:this.startFn(),firstDone:false,iterator:e[Symbol.iterator]()})),(e=>{let t;if(!e.firstDone){do{t=this.nextFn(e.first);if(!t.done){return t}}while(!t.done);e.firstDone=true}do{t=e.iterator.next();if(!t.done){return t}}while(!t.done);return o}))}join(e=","){const t=this.iterator();let n="";let r;let s=false;do{r=t.next();if(!r.done){if(s){n+=e}n+=i(r.value)}s=true}while(!r.done);return n}indexOf(e,t=0){const n=this.iterator();let r=0;let i=n.next();while(!i.done){if(r>=t&&i.value===e){return r}i=n.next();r++}return-1}every(e){const t=this.iterator();let n=t.next();while(!n.done){if(!e(n.value)){return false}n=t.next()}return true}some(e){const t=this.iterator();let n=t.next();while(!n.done){if(e(n.value)){return true}n=t.next()}return false}forEach(e){const t=this.iterator();let n=0;let r=t.next();while(!r.done){e(r.value,n);r=t.next();n++}}map(e){return new r(this.startFn,(t=>{const{done:n,value:r}=this.nextFn(t);if(n){return o}else{return{done:false,value:e(r)}}}))}filter(e){return new r(this.startFn,(t=>{let n;do{n=this.nextFn(t);if(!n.done&&e(n.value)){return n}}while(!n.done);return o}))}nonNullable(){return this.filter((e=>e!==undefined&&e!==null))}reduce(e,t){const n=this.iterator();let r=t;let i=n.next();while(!i.done){if(r===undefined){r=i.value}else{r=e(r,i.value)}i=n.next()}return r}reduceRight(e,t){return this.recursiveReduce(this.iterator(),e,t)}recursiveReduce(e,t,n){const r=e.next();if(r.done){return n}const i=this.recursiveReduce(e,t,n);if(i===undefined){return r.value}return t(i,r.value)}find(e){const t=this.iterator();let n=t.next();while(!n.done){if(e(n.value)){return n.value}n=t.next()}return undefined}findIndex(e){const t=this.iterator();let n=0;let r=t.next();while(!r.done){if(e(r.value)){return n}r=t.next();n++}return-1}includes(e){const t=this.iterator();let n=t.next();while(!n.done){if(n.value===e){return true}n=t.next()}return false}flatMap(e){return new r((()=>({this:this.startFn()})),(t=>{do{if(t.iterator){const e=t.iterator.next();if(e.done){t.iterator=undefined}else{return e}}const{done:n,value:r}=this.nextFn(t.this);if(!n){const n=e(r);if(s(n)){t.iterator=n[Symbol.iterator]()}else{return{done:false,value:n}}}}while(t.iterator);return o}))}flat(e){if(e===undefined){e=1}if(e<=0){return this}const t=e>1?this.flat(e-1):this;return new r((()=>({this:t.startFn()})),(e=>{do{if(e.iterator){const t=e.iterator.next();if(t.done){e.iterator=undefined}else{return t}}const{done:n,value:r}=t.nextFn(e.this);if(!n){if(s(r)){e.iterator=r[Symbol.iterator]()}else{return{done:false,value:r}}}}while(e.iterator);return o}))}head(){const e=this.iterator();const t=e.next();if(t.done){return undefined}return t.value}tail(e=1){return new r((()=>{const t=this.startFn();for(let n=0;n({size:0,state:this.startFn()})),(t=>{t.size++;if(t.size>e){return o}return this.nextFn(t.state)}))}distinct(e){return new r((()=>({set:new Set,internalState:this.startFn()})),(t=>{let n;do{n=this.nextFn(t.internalState);if(!n.done){const r=e?e(n.value):n.value;if(!t.set.has(r)){t.set.add(r);return n}}}while(!n.done);return o}))}exclude(e,t){const n=new Set;for(const r of e){const e=t?t(r):r;n.add(e)}return this.filter((e=>{const r=t?t(e):e;return!n.has(r)}))}}function i(e){if(typeof e==="string"){return e}if(typeof e==="undefined"){return"undefined"}if(typeof e.toString==="function"){return e.toString()}return Object.prototype.toString.call(e)}function s(e){return!!e&&typeof e[Symbol.iterator]==="function"}const a=new r((()=>undefined),(()=>o));const o=Object.freeze({done:true,value:undefined});function l(...e){if(e.length===1){const t=e[0];if(t instanceof r){return t}if(s(t)){return new r((()=>t[Symbol.iterator]()),(e=>e.next()))}if(typeof t.length==="number"){return new r((()=>({index:0})),(e=>{if(e.index1){return new r((()=>({collIndex:0,arrIndex:0})),(t=>{do{if(t.iterator){const e=t.iterator.next();if(!e.done){return e}t.iterator=undefined}if(t.array){if(t.arrIndex({iterators:(n===null||n===void 0?void 0:n.includeRoot)?[[e][Symbol.iterator]()]:[t(e)[Symbol.iterator]()],pruned:false})),(e=>{if(e.pruned){e.iterators.pop();e.pruned=false}while(e.iterators.length>0){const n=e.iterators[e.iterators.length-1];const r=n.next();if(r.done){e.iterators.pop()}else{e.iterators.push(t(r.value)[Symbol.iterator]());return r}}return o}))}iterator(){const e={state:this.startFn(),next:()=>this.nextFn(e.state),prune:()=>{e.state.pruned=true},[Symbol.iterator]:()=>e};return e}}var u;(function(e){function t(e){return e.reduce(((e,t)=>e+t),0)}e.sum=t;function n(e){return e.reduce(((e,t)=>e*t),0)}e.product=n;function r(e){return e.reduce(((e,t)=>Math.min(e,t)))}e.min=r;function i(e){return e.reduce(((e,t)=>Math.max(e,t)))}e.max=i})(u||(u={}))},6052:(e,t,n)=>{"use strict";n.d(t,{D:()=>i});class r{readFile(){throw new Error("No file system is available.")}async readDirectory(){return[]}}const i={fileSystemProvider:()=>new r}},95852:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(62579);function i(e,t,n){var i=-1,s=e.length;while(++i{"use strict";n.d(t,{A:()=>i});function r(e,t){return e{"use strict";n.d(t,{A:()=>a});var r=n(15912);var i=n(21585);function s(e,t){var n=-1,s=(0,i.A)(e)?Array(e.length):[];(0,r.A)(e,(function(e,r,i){s[++n]=t(e,r,i)}));return s}const a=s},44835:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(22883);var i=n(16542);var s=n(65900);var a=n(78912);var o=n(85356);var l=n(43512);function c(e,t,n,r){if(!(0,o.A)(e)){return e}t=(0,s.A)(t,e);var c=-1,u=t.length,f=u-1,d=e;while(d!=null&&++c{"use strict";n.d(t,{A:()=>a});var r=n(37005);var i=4;function s(e){return(0,r.A)(e,i)}const a=s},38693:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r=n(55881);var i=n(24461);var s=n(31943);var a=n(13839);var o=Object.prototype;var l=o.hasOwnProperty;var c=(0,r.A)((function(e,t){e=Object(e);var n=-1;var r=t.length;var c=r>2?t[2]:undefined;if(c&&(0,s.A)(t[0],t[1],c)){r=1}while(++n{"use strict";n.d(t,{A:()=>p});var r=n(1121);var i=n(21585);var s=n(37947);function a(e){return function(t,n,a){var o=Object(t);if(!(0,i.A)(t)){var l=(0,r.A)(n,3);t=(0,s.A)(t);n=function(e){return l(o[e],e,o)}}var c=e(t,n,a);return c>-1?o[l?t[c]:c]:undefined}}const o=a;var l=n(97314);var c=n(29914);var u=Math.max;function f(e,t,n){var i=e==null?0:e.length;if(!i){return-1}var s=n==null?0:(0,c.A)(n);if(s<0){s=u(i+s,0)}return(0,l.A)(e,(0,r.A)(t,3),s)}const d=f;var h=o(d);const p=h},57852:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(62040);var i=n(8937);function s(e,t){return(0,r.A)((0,i.A)(e,t),1)}const a=s},74033:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(62040);function i(e){var t=e==null?0:e.length;return t?(0,r.A)(e,1):[]}const s=i},2850:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=Object.prototype;var i=r.hasOwnProperty;function s(e,t){return e!=null&&i.call(e,t)}const a=s;var o=n(64491);function l(e,t){return e!=null&&(0,o.A)(e,t,a)}const c=l},86378:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(64128);var i=n(39990);var s=n(53315);var a="[object String]";function o(e){return typeof e=="string"||!(0,i.A)(e)&&(0,s.A)(e)&&(0,r.A)(e)==a}const l=o},80359:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});function r(e){var t=e==null?0:e.length;return t?e[t-1]:undefined}const i=r},8937:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(98519);var i=n(1121);var s=n(97457);var a=n(39990);function o(e,t){var n=(0,a.A)(e)?r.A:s.A;return n(e,(0,i.A)(t,3))}const l=o},963:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(95852);var i=n(51135);var s=n(63077);function a(e){return e&&e.length?(0,r.A)(e,s.A,i.A):undefined}const o=a},52712:(e,t,n)=>{"use strict";n.d(t,{A:()=>R});var r=/\s/;function i(e){var t=e.length;while(t--&&r.test(e.charAt(t))){}return t}const s=i;var a=/^\s+/;function o(e){return e?e.slice(0,s(e)+1).replace(a,""):e}const l=o;var c=n(85356);var u=n(62579);var f=0/0;var d=/^[-+]0x[0-9a-f]+$/i;var h=/^0b[01]+$/i;var p=/^0o[0-7]+$/i;var m=parseInt;function g(e){if(typeof e=="number"){return e}if((0,u.A)(e)){return f}if((0,c.A)(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=(0,c.A)(t)?t+"":t}if(typeof e!="string"){return e===0?e:+e}e=l(e);var n=h.test(e);return n||p.test(e)?m(e.slice(2),n?2:8):d.test(e)?f:+e}const y=g;var T=1/0,v=17976931348623157e292;function A(e){if(!e){return e===0?e:0}e=y(e);if(e===T||e===-T){var t=e<0?-1:1;return t*v}return e===e?e:0}const R=A},29914:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(52712);function i(e){var t=(0,r.A)(e),n=t%1;return t===t?n?t-n:t:0}const s=i},65606:e=>{var t=e.exports={};var n;var r;function i(){throw new Error("setTimeout has not been defined")}function s(){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"){r=clearTimeout}else{r=s}}catch(e){r=s}})();function a(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(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}function o(e){if(r===clearTimeout){return clearTimeout(e)}if((r===s||!r)&&clearTimeout){r=clearTimeout;return clearTimeout(e)}try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}var l=[];var c=false;var u;var f=-1;function d(){if(!c||!u){return}c=false;if(u.length){l=u.concat(l)}else{f=-1}if(l.length){h()}}function h(){if(c){return}var e=a(d);c=true;var t=l.length;while(t){u=l;l=[];while(++f1){for(var n=1;n{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CancellationTokenSource=t.CancellationToken=void 0;const r=n(69590);const i=n(78585);const s=n(62676);var a;(function(e){e.None=Object.freeze({isCancellationRequested:false,onCancellationRequested:s.Event.None});e.Cancelled=Object.freeze({isCancellationRequested:true,onCancellationRequested:s.Event.None});function t(t){const n=t;return n&&(n===e.None||n===e.Cancelled||i.boolean(n.isCancellationRequested)&&!!n.onCancellationRequested)}e.is=t})(a||(t.CancellationToken=a={}));const o=Object.freeze((function(e,t){const n=(0,r.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}));class l{constructor(){this._isCancelled=false}cancel(){if(!this._isCancelled){this._isCancelled=true;if(this._emitter){this._emitter.fire(undefined);this.dispose()}}}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){if(this._isCancelled){return o}if(!this._emitter){this._emitter=new s.Emitter}return this._emitter.event}dispose(){if(this._emitter){this._emitter.dispose();this._emitter=undefined}}}class c{get token(){if(!this._token){this._token=new l}return this._token}cancel(){if(!this._token){this._token=a.Cancelled}else{this._token.cancel()}}dispose(){if(!this._token){this._token=a.None}else if(this._token instanceof l){this._token.dispose()}}}t.CancellationTokenSource=c},62676:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Emitter=t.Event=void 0;const r=n(69590);var i;(function(e){const t={dispose(){}};e.None=function(){return t}})(i||(t.Event=i={}));class s{add(e,t=null,n){if(!this._callbacks){this._callbacks=[];this._contexts=[]}this._callbacks.push(e);this._contexts.push(t);if(Array.isArray(n)){n.push({dispose:()=>this.remove(e,t)})}}remove(e,t=null){if(!this._callbacks){return}let n=false;for(let r=0,i=this._callbacks.length;r{if(!this._callbacks){this._callbacks=new s}if(this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()){this._options.onFirstListenerAdd(this)}this._callbacks.add(e,t);const r={dispose:()=>{if(!this._callbacks){return}this._callbacks.remove(e,t);r.dispose=a._noop;if(this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()){this._options.onLastListenerRemove(this)}}};if(Array.isArray(n)){n.push(r)}return r}}return this._event}fire(e){if(this._callbacks){this._callbacks.invoke.call(this._callbacks,e)}}dispose(){if(this._callbacks){this._callbacks.dispose();this._callbacks=undefined}}}t.Emitter=a;a._noop=function(){}},78585:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0;function n(e){return e===true||e===false}t.boolean=n;function r(e){return typeof e==="string"||e instanceof String}t.string=r;function i(e){return typeof e==="number"||e instanceof Number}t.number=i;function s(e){return e instanceof Error}t.error=s;function a(e){return typeof e==="function"}t.func=a;function o(e){return Array.isArray(e)}t.array=o;function l(e){return o(e)&&e.every((e=>r(e)))}t.stringArray=l},69590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});let n;function r(){if(n===undefined){throw new Error(`No runtime abstraction layer installed`)}return n}(function(e){function t(e){if(e===undefined){throw new Error(`No runtime abstraction layer provided`)}n=e}e.install=t})(r||(r={}));t["default"]=r},14247:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,r:()=>s});var r=n(65606);var i;(()=>{"use strict";var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,s=-1,a=0,o=0;o<=e.length;++o){if(o2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",i=0):i=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),s=o,a=0;continue}}else if(2===r.length||1===r.length){r="",i=0,s=o,a=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(s+1,o):r=e.slice(s+1,o),i=o-s-1;s=o,a=0}else 46===n&&-1!==a?++a:a=-1}return r}var i={resolve:function(){for(var e,i="",s=!1,a=arguments.length-1;a>=-1&&!s;a--){var o;a>=0?o=arguments[a]:(void 0===e&&(e=r.cwd()),o=e),t(o),0!==o.length&&(i=o+"/"+i,s=47===o.charCodeAt(0))}return i=n(i,!s),s?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n0&&(void 0===e?e=r:e+="/"+r)}return void 0===e?".":i.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=i.resolve(e))===(n=i.resolve(n)))return"";for(var r=1;rc){if(47===n.charCodeAt(o+f))return n.slice(o+f+1);if(0===f)return n.slice(o+f)}else a>c&&(47===e.charCodeAt(r+f)?u=f:0===f&&(u=0));break}var d=e.charCodeAt(r+f);if(d!==n.charCodeAt(o+f))break;47===d&&(u=f)}var h="";for(f=r+u+1;f<=s;++f)f!==s&&47!==e.charCodeAt(f)||(0===h.length?h+="..":h+="/..");return h.length>0?h+n.slice(o+u):(o+=u,47===n.charCodeAt(o)&&++o,n.slice(o))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,s=!0,a=e.length-1;a>=1;--a)if(47===(n=e.charCodeAt(a))){if(!s){i=a;break}}else s=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,s=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var o=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!a){i=r+1;break}}else-1===l&&(a=!1,l=r+1),o>=0&&(c===n.charCodeAt(o)?-1==--o&&(s=r):(o=-1,s=l))}return i===s?s=l:-1===s&&(s=e.length),e.slice(i,s)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!a){i=r+1;break}}else-1===s&&(a=!1,s=r+1);return-1===s?"":e.slice(i,s)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,s=!0,a=0,o=e.length-1;o>=0;--o){var l=e.charCodeAt(o);if(47!==l)-1===i&&(s=!1,i=o+1),46===l?-1===n?n=o:1!==a&&(a=1):-1!==n&&(a=-1);else if(!s){r=o+1;break}}return-1===n||-1===i||0===a||1===a&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,i=e.charCodeAt(0),s=47===i;s?(n.root="/",r=1):r=0;for(var a=-1,o=0,l=-1,c=!0,u=e.length-1,f=0;u>=r;--u)if(47!==(i=e.charCodeAt(u)))-1===l&&(c=!1,l=u+1),46===i?-1===a?a=u:1!==f&&(f=1):-1!==a&&(f=-1);else if(!c){o=u+1;break}return-1===a||-1===l||0===f||1===f&&a===l-1&&a===o+1?-1!==l&&(n.base=n.name=0===o&&s?e.slice(1,l):e.slice(o,l)):(0===o&&s?(n.name=e.slice(1,a),n.base=e.slice(1,l)):(n.name=e.slice(o,a),n.base=e.slice(o,l)),n.ext=e.slice(a,l)),o>0?n.dir=e.slice(0,o-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};i.posix=i,e.exports=i}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};(()=>{let e;if(n.r(s),n.d(s,{URI:()=>f,Utils:()=>x}),"object"==typeof r)e="win32"===r.platform;else if("object"==typeof navigator){let t=navigator.userAgent;e=t.indexOf("Windows")>=0}const t=/^\w[\w\d+.-]*$/,i=/^\//,a=/^\/\//;function o(e,n){if(!e.scheme&&n)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!t.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!i.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(a.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const l="",c="/",u=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class f{static isUri(e){return e instanceof f||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}scheme;authority;path;query;fragment;constructor(e,t,n,r,i,s=!1){"object"==typeof e?(this.scheme=e.scheme||l,this.authority=e.authority||l,this.path=e.path||l,this.query=e.query||l,this.fragment=e.fragment||l):(this.scheme=function(e,t){return e||t?e:"file"}(e,s),this.authority=t||l,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==c&&(t=c+t):t=c}return t}(this.scheme,n||l),this.query=r||l,this.fragment=i||l,o(this,s))}get fsPath(){return y(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=l),void 0===n?n=this.authority:null===n&&(n=l),void 0===r?r=this.path:null===r&&(r=l),void 0===i?i=this.query:null===i&&(i=l),void 0===s?s=this.fragment:null===s&&(s=l),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&s===this.fragment?this:new h(t,n,r,i,s)}static parse(e,t=!1){const n=u.exec(e);return n?new h(n[2]||l,R(n[4]||l),R(n[5]||l),R(n[7]||l),R(n[9]||l),t):new h(l,l,l,l,l)}static file(t){let n=l;if(e&&(t=t.replace(/\\/g,c)),t[0]===c&&t[1]===c){const e=t.indexOf(c,2);-1===e?(n=t.substring(2),t=c):(n=t.substring(2,e),t=t.substring(e)||c)}return new h("file",n,t,l,l)}static from(e){const t=new h(e.scheme,e.authority,e.path,e.query,e.fragment);return o(t,!0),t}toString(e=!1){return T(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof f)return e;{const t=new h(e);return t._formatted=e.external,t._fsPath=e._sep===d?e.fsPath:null,t}}return e}}const d=e?1:void 0;class h extends f{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=y(this,!1)),this._fsPath}toString(e=!1){return e?T(this,!0):(this._formatted||(this._formatted=T(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=d),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const p={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function m(e,t,n){let r,i=-1;for(let s=0;s=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||45===a||46===a||95===a||126===a||t&&47===a||n&&91===a||n&&93===a||n&&58===a)-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),void 0!==r&&(r+=e.charAt(s));else{void 0===r&&(r=e.substr(0,s));const t=p[a];void 0!==t?(-1!==i&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=t):-1===i&&(i=s)}}return-1!==i&&(r+=encodeURIComponent(e.substring(i))),void 0!==r?r:e}function g(e){let t;for(let n=0;n1&&"file"===t.scheme?`//${t.authority}${t.path}`:47===t.path.charCodeAt(0)&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&58===t.path.charCodeAt(2)?n?t.path.substr(1):t.path[1].toLowerCase()+t.path.substr(2):t.path,e&&(r=r.replace(/\//g,"\\")),r}function T(e,t){const n=t?g:m;let r="",{scheme:i,authority:s,path:a,query:o,fragment:l}=e;if(i&&(r+=i,r+=":"),(s||"file"===i)&&(r+=c,r+=c),s){let e=s.indexOf("@");if(-1!==e){const t=s.substr(0,e);s=s.substr(e+1),e=t.lastIndexOf(":"),-1===e?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=":",r+=n(t.substr(e+1),!1,!0)),r+="@"}s=s.toLowerCase(),e=s.lastIndexOf(":"),-1===e?r+=n(s,!1,!0):(r+=n(s.substr(0,e),!1,!0),r+=s.substr(e))}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2)){const e=a.charCodeAt(1);e>=65&&e<=90&&(a=`/${String.fromCharCode(e+32)}:${a.substr(3)}`)}else if(a.length>=2&&58===a.charCodeAt(1)){const e=a.charCodeAt(0);e>=65&&e<=90&&(a=`${String.fromCharCode(e+32)}:${a.substr(2)}`)}r+=n(a,!0,!1)}return o&&(r+="?",r+=n(o,!1,!1)),l&&(r+="#",r+=t?l:m(l,!1,!1)),r}function v(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+v(e.substr(3)):e}}const A=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function R(e){return e.match(A)?e.replace(A,(e=>v(e))):e}var E=n(470);const $=E.posix||E,k="/";var x;!function(e){e.joinPath=function(e,...t){return e.with({path:$.join(e.path,...t)})},e.resolvePath=function(e,...t){let n=e.path,r=!1;n[0]!==k&&(n=k+n,r=!0);let i=$.resolve(n,...t);return r&&i[0]===k&&!e.authority&&(i=i.substring(1)),e.with({path:i})},e.dirname=function(e){if(0===e.path.length||e.path===k)return e;let t=$.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},e.basename=function(e){return $.basename(e.path)},e.extname=function(e){return $.extname(e.path)}}(x||(x={}))})(),i=s})();const{URI:s,Utils:a}=i}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/4053.4945facc348478fd59f4.js b/share/jupyter/lab/static/4053.4945facc348478fd59f4.js new file mode 100644 index 0000000..1122a63 --- /dev/null +++ b/share/jupyter/lab/static/4053.4945facc348478fd59f4.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4053],{34053:(t,a,r)=>{r.r(a);r.d(a,{troff:()=>i});var n={};function e(t){if(t.eatSpace())return null;var a=t.sol();var r=t.next();if(r==="\\"){if(t.match("fB")||t.match("fR")||t.match("fI")||t.match("u")||t.match("d")||t.match("%")||t.match("&")){return"string"}if(t.match("m[")){t.skipTo("]");t.next();return"string"}if(t.match("s+")||t.match("s-")){t.eatWhile(/[\d-]/);return"string"}if(t.match("(")||t.match("*(")){t.eatWhile(/[\w-]/);return"string"}return"string"}if(a&&(r==="."||r==="'")){if(t.eat("\\")&&t.eat('"')){t.skipToEnd();return"comment"}}if(a&&r==="."){if(t.match("B ")||t.match("I ")||t.match("R ")){return"attribute"}if(t.match("TH ")||t.match("SH ")||t.match("SS ")||t.match("HP ")){t.skipToEnd();return"quote"}if(t.match(/[A-Z]/)&&t.match(/[A-Z]/)||t.match(/[a-z]/)&&t.match(/[a-z]/)){return"attribute"}}t.eatWhile(/[\w-]/);var e=t.current();return n.hasOwnProperty(e)?n[e]:null}function c(t,a){return(a.tokens[0]||e)(t,a)}const i={name:"troff",startState:function(){return{tokens:[]}},token:function(t,a){return c(t,a)}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/4068.9cc41f46f729f2c4369b.js b/share/jupyter/lab/static/4068.9cc41f46f729f2c4369b.js new file mode 100644 index 0000000..32791b5 --- /dev/null +++ b/share/jupyter/lab/static/4068.9cc41f46f729f2c4369b.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4068],{34068:(e,r,a)=>{a.r(r);a.d(r,{mbox:()=>v});var t=["From","Sender","Reply-To","To","Cc","Bcc","Message-ID","In-Reply-To","References","Resent-From","Resent-Sender","Resent-To","Resent-Cc","Resent-Bcc","Resent-Message-ID","Return-Path","Received"];var n=["Date","Subject","Comments","Keywords","Resent-Date"];var i=/^[ \t]/;var s=/^From /;var u=new RegExp("^("+t.join("|")+"): ");var o=new RegExp("^("+n.join("|")+"): ");var l=/^[^:]+:/;var c=/^[^ ]+@[^ ]+/;var d=/^.*?(?=[^ ]+?@[^ ]+)/;var m=/^<.*?>/;var f=/^.*?(?=<.*>)/;function p(e){if(e==="Subject")return"header";return"string"}function h(e,r){if(e.sol()){r.inSeparator=false;if(r.inHeader&&e.match(i)){return null}else{r.inHeader=false;r.header=null}if(e.match(s)){r.inHeaders=true;r.inSeparator=true;return"atom"}var a;var t=false;if((a=e.match(o))||(t=true)&&(a=e.match(u))){r.inHeaders=true;r.inHeader=true;r.emailPermitted=t;r.header=a[1];return"atom"}if(r.inHeaders&&(a=e.match(l))){r.inHeader=true;r.emailPermitted=true;r.header=a[1];return"atom"}r.inHeaders=false;e.skipToEnd();return null}if(r.inSeparator){if(e.match(c))return"link";if(e.match(d))return"atom";e.skipToEnd();return"atom"}if(r.inHeader){var n=p(r.header);if(r.emailPermitted){if(e.match(m))return n+" link";if(e.match(f))return n}e.skipToEnd();return n}e.skipToEnd();return null}const v={name:"mbox",startState:function(){return{inSeparator:false,inHeader:false,emailPermitted:false,header:null,inHeaders:false}},token:h,blankLine:function(e){e.inHeaders=e.inSeparator=e.inHeader=false},languageData:{autocomplete:t.concat(n)}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/4076.b4d803d8bf1bd6c97854.js b/share/jupyter/lab/static/4076.b4d803d8bf1bd6c97854.js new file mode 100644 index 0000000..50f75b8 --- /dev/null +++ b/share/jupyter/lab/static/4076.b4d803d8bf1bd6c97854.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4076],{24076:(e,n,t)=>{t.r(n);t.d(n,{dylan:()=>k});function i(e,n){for(var t=0;t",symbolGlobal:"\\*"+o+"\\*",symbolConstant:"\\$"+o};var s={symbolKeyword:"atom",symbolClass:"tag",symbolGlobal:"variableName.standard",symbolConstant:"variableName.constant"};for(var u in f)if(f.hasOwnProperty(u))f[u]=new RegExp("^"+f[u]);f["keyword"]=[/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];var c={};c["keyword"]="keyword";c["definition"]="def";c["simpleDefinition"]="def";c["signalingCalls"]="builtin";var m={};var p={};i(["keyword","definition","simpleDefinition","signalingCalls"],(function(e){i(a[e],(function(n){m[n]=e;p[n]=c[e]}))}));function d(e,n,t){n.tokenize=t;return t(e,n)}function b(e,n){var t=e.peek();if(t=="'"||t=='"'){e.next();return d(e,n,y(t,"string"))}else if(t=="/"){e.next();if(e.eat("*")){return d(e,n,h)}else if(e.eat("/")){e.skipToEnd();return"comment"}e.backUp(1)}else if(/[+\-\d\.]/.test(t)){if(e.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i)||e.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i)||e.match(/^[+-]?\d+/)){return"number"}}else if(t=="#"){e.next();t=e.peek();if(t=='"'){e.next();return d(e,n,y('"',"string"))}else if(t=="b"){e.next();e.eatWhile(/[01]/);return"number"}else if(t=="x"){e.next();e.eatWhile(/[\da-f]/i);return"number"}else if(t=="o"){e.next();e.eatWhile(/[0-7]/);return"number"}else if(t=="#"){e.next();return"punctuation"}else if(t=="["||t=="("){e.next();return"bracket"}else if(e.match(/f|t|all-keys|include|key|next|rest/i)){return"atom"}else{e.eatWhile(/[-a-zA-Z]/);return"error"}}else if(t=="~"){e.next();t=e.peek();if(t=="="){e.next();t=e.peek();if(t=="="){e.next();return"operator"}return"operator"}return"operator"}else if(t==":"){e.next();t=e.peek();if(t=="="){e.next();return"operator"}else if(t==":"){e.next();return"punctuation"}}else if("[](){}".indexOf(t)!=-1){e.next();return"bracket"}else if(".,".indexOf(t)!=-1){e.next();return"punctuation"}else if(e.match("end")){return"keyword"}for(var i in f){if(f.hasOwnProperty(i)){var a=f[i];if(a instanceof Array&&r(a,(function(n){return e.match(n)}))||e.match(a))return s[i]}}if(/[+\-*\/^=<>&|]/.test(t)){e.next();return"operator"}if(e.match("define")){return"def"}else{e.eatWhile(/[\w\-]/);if(m.hasOwnProperty(e.current())){return p[e.current()]}else if(e.current().match(l)){return"variable"}else{e.next();return"variableName.standard"}}}function h(e,n){var t=false,i=false,r=0,a;while(a=e.next()){if(a=="/"&&t){if(r>0){r--}else{n.tokenize=b;break}}else if(a=="*"&&i){r++}t=a=="*";i=a=="/"}return"comment"}function y(e,n){return function(t,i){var r=false,a,o=false;while((a=t.next())!=null){if(a==e&&!r){o=true;break}r=!r&&a=="\\"}if(o||!r){i.tokenize=b}return n}}const k={name:"dylan",startState:function(){return{tokenize:b,currentIndent:0}},token:function(e,n){if(e.eatSpace())return null;var t=n.tokenize(e,n);return t},languageData:{commentTokens:{block:{open:"/*",close:"*/"}}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/4090.351b39dda1f2fbb9a1c4.js b/share/jupyter/lab/static/4090.351b39dda1f2fbb9a1c4.js new file mode 100644 index 0000000..4457e86 --- /dev/null +++ b/share/jupyter/lab/static/4090.351b39dda1f2fbb9a1c4.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4090],{63380:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:true});e.AbstractOutputJax=void 0;var i=r(34981);var n=r(43899);var o=function(){function t(t){if(t===void 0){t={}}this.adaptor=null;var e=this.constructor;this.options=(0,i.userOptions)((0,i.defaultOptions)({},e.OPTIONS),t);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.initialize=function(){};t.prototype.reset=function(){var t=[];for(var e=0;e{Object.defineProperty(e,"__esModule",{value:true});e.AbstractWrapper=void 0;var r=function(){function t(t,e){this.factory=t;this.node=e}Object.defineProperty(t.prototype,"kind",{get:function(){return this.node.kind},enumerable:false,configurable:true});t.prototype.wrap=function(t){return this.factory.wrap(t)};return t}();e.AbstractWrapper=r},49294: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.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(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 o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;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.")};Object.defineProperty(e,"__esModule",{value:true});e.CHTML=void 0;var h=r(12222);var c=r(14454);var u=r(59550);var f=r(60854);var p=r(1673);var d=s(r(86810));var y=r(41278);var v=function(t){i(e,t);function e(e){if(e===void 0){e=null}var r=t.call(this,e,u.CHTMLWrapperFactory,p.TeXFont)||this;r.chtmlStyles=null;r.font.adaptiveCSS(r.options.adaptiveCSS);r.wrapperUsage=new f.Usage;return r}e.prototype.escaped=function(t,e){this.setDocument(e);return this.html("span",{},[this.text(t.math)])};e.prototype.styleSheet=function(r){if(this.chtmlStyles){if(this.options.adaptiveCSS){var i=new c.CssStyles;this.addWrapperStyles(i);this.updateFontStyles(i);this.adaptor.insertRules(this.chtmlStyles,i.getStyleRules())}return this.chtmlStyles}var n=this.chtmlStyles=t.prototype.styleSheet.call(this,r);this.adaptor.setAttribute(n,"id",e.STYLESHEETID);this.wrapperUsage.update();return n};e.prototype.updateFontStyles=function(t){t.addStyles(this.font.updateStyles({}))};e.prototype.addWrapperStyles=function(e){var r,i;if(!this.options.adaptiveCSS){t.prototype.addWrapperStyles.call(this,e);return}try{for(var n=l(this.wrapperUsage.update()),o=n.next();!o.done;o=n.next()){var a=o.value;var s=this.factory.getNodeClass(a);s&&this.addClassStyles(s,e)}}catch(h){r={error:h}}finally{try{if(o&&!o.done&&(i=n.return))i.call(n)}finally{if(r)throw r.error}}};e.prototype.addClassStyles=function(e,r){var i;var n=e;if(n.autoStyle&&n.kind!=="unknown"){r.addStyles((i={},i["mjx-"+n.kind]={display:"inline-block","text-align":"left"},i))}this.wrapperUsage.add(n.kind);t.prototype.addClassStyles.call(this,e,r)};e.prototype.processMath=function(t,e){this.factory.wrap(t).toCHTML(e)};e.prototype.clearCache=function(){this.cssStyles.clear();this.font.clearCache();this.wrapperUsage.clear();this.chtmlStyles=null};e.prototype.reset=function(){this.clearCache()};e.prototype.unknownText=function(t,e,r){if(r===void 0){r=null}var i={};var n=100/this.math.metrics.scale;if(n!==100){i["font-size"]=this.fixed(n,1)+"%";i.padding=d.em(75/n)+" 0 "+d.em(20/n)+" 0"}if(e!=="-explicitFont"){var o=(0,y.unicodeChars)(t);if(o.length!==1||o[0]<119808||o[0]>120831){this.cssFontStyles(this.font.getCssFont(e),i)}}if(r!==null){var a=this.math.metrics;i.width=Math.round(r*a.em*a.scale)+"px"}return this.html("mjx-utext",{variant:e,style:i},[this.text(t)])};e.prototype.measureTextNode=function(t){var e=this.adaptor;var r=e.clone(t);e.setStyle(r,"font-family",e.getStyle(r,"font-family").replace(/MJXZERO, /g,""));var i={position:"absolute","white-space":"nowrap"};var n=this.html("mjx-measure-text",{style:i},[r]);e.append(e.parent(this.math.start.node),this.container);e.append(this.container,n);var o=e.nodeSize(r,this.math.metrics.em)[0]/this.math.metrics.scale;e.remove(this.container);e.remove(n);return{w:o,h:.75,d:.2}};e.NAME="CHTML";e.OPTIONS=n(n({},h.CommonOutputJax.OPTIONS),{adaptiveCSS:true,matchFontHeight:true});e.commonStyles={'mjx-container[jax="CHTML"]':{"line-height":0},'mjx-container [space="1"]':{"margin-left":".111em"},'mjx-container [space="2"]':{"margin-left":".167em"},'mjx-container [space="3"]':{"margin-left":".222em"},'mjx-container [space="4"]':{"margin-left":".278em"},'mjx-container [space="5"]':{"margin-left":".333em"},'mjx-container [rspace="1"]':{"margin-right":".111em"},'mjx-container [rspace="2"]':{"margin-right":".167em"},'mjx-container [rspace="3"]':{"margin-right":".222em"},'mjx-container [rspace="4"]':{"margin-right":".278em"},'mjx-container [rspace="5"]':{"margin-right":".333em"},'mjx-container [size="s"]':{"font-size":"70.7%"},'mjx-container [size="ss"]':{"font-size":"50%"},'mjx-container [size="Tn"]':{"font-size":"60%"},'mjx-container [size="sm"]':{"font-size":"85%"},'mjx-container [size="lg"]':{"font-size":"120%"},'mjx-container [size="Lg"]':{"font-size":"144%"},'mjx-container [size="LG"]':{"font-size":"173%"},'mjx-container [size="hg"]':{"font-size":"207%"},'mjx-container [size="HG"]':{"font-size":"249%"},'mjx-container [width="full"]':{width:"100%"},"mjx-box":{display:"inline-block"},"mjx-block":{display:"block"},"mjx-itable":{display:"inline-table"},"mjx-row":{display:"table-row"},"mjx-row > *":{display:"table-cell"},"mjx-mtext":{display:"inline-block"},"mjx-mstyle":{display:"inline-block"},"mjx-merror":{display:"inline-block",color:"red","background-color":"yellow"},"mjx-mphantom":{visibility:"hidden"},"_::-webkit-full-page-media, _:future, :root mjx-container":{"will-change":"opacity"}};e.STYLESHEETID="MJX-CHTML-styles";return e}(h.CommonOutputJax);e.CHTML=v},85475:function(t,e,r){var i=this&&this.__createBinding||(Object.create?function(t,e,r,i){if(i===undefined)i=r;var n=Object.getOwnPropertyDescriptor(e,r);if(!n||("get"in n?!e.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return e[r]}}}Object.defineProperty(t,i,n)}:function(t,e,r,i){if(i===undefined)i=r;t[i]=e[r]});var n=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:true,value:e})}:function(t,e){t["default"]=e});var o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)if(r!=="default"&&Object.prototype.hasOwnProperty.call(t,r))i(e,t,r);n(e,t);return e};var a=this&&this.__exportStar||function(t,e){for(var r in t)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r))i(e,t,r)};var s=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(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.Arrow=e.DiagonalArrow=e.DiagonalStrike=e.Border2=e.Border=e.RenderElement=void 0;var l=o(r(37626));a(r(37626),e);var h=function(t,e){if(e===void 0){e=""}return function(r,i){var n=r.adjustBorder(r.html("mjx-"+t));if(e){var o=r.getOffset(e);if(r.thickness!==l.THICKNESS||o){var a="translate".concat(e,"(").concat(r.em(r.thickness/2-o),")");r.adaptor.setStyle(n,"transform",a)}}r.adaptor.append(r.chtml,n)}};e.RenderElement=h;var c=function(t){return l.CommonBorder((function(e,r){e.adaptor.setStyle(r,"border-"+t,e.em(e.thickness)+" solid")}))(t)};e.Border=c;var u=function(t,e,r){return l.CommonBorder2((function(t,i){var n=t.em(t.thickness)+" solid";t.adaptor.setStyle(i,"border-"+e,n);t.adaptor.setStyle(i,"border-"+r,n)}))(t,e,r)};e.Border2=u;var f=function(t,e){return l.CommonDiagonalStrike((function(t){return function(r,i){var n=r.getBBox(),o=n.w,a=n.h,l=n.d;var h=s(r.getArgMod(o,a+l),2),c=h[0],u=h[1];var f=e*r.thickness/2;var p=r.adjustBorder(r.html(t,{style:{width:r.em(u),transform:"rotate("+r.fixed(-e*c)+"rad) translateY("+f+"em)"}}));r.adaptor.append(r.chtml,p)}}))(t)};e.DiagonalStrike=f;var p=function(t){return l.CommonDiagonalArrow((function(t,e){t.adaptor.append(t.chtml,e)}))(t)};e.DiagonalArrow=p;var d=function(t){return l.CommonArrow((function(t,e){t.adaptor.append(t.chtml,e)}))(t)};e.Arrow=d},44614: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.__createBinding||(Object.create?function(t,e,r,i){if(i===undefined)i=r;var n=Object.getOwnPropertyDescriptor(e,r);if(!n||("get"in n?!e.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return e[r]}}}Object.defineProperty(t,i,n)}:function(t,e,r,i){if(i===undefined)i=r;t[i]=e[r]});var o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:true,value:e})}:function(t,e){t["default"]=e});var a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)if(r!=="default"&&Object.prototype.hasOwnProperty.call(t,r))n(e,t,r);o(e,t);return e};var s=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 l=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(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 h;Object.defineProperty(e,"__esModule",{value:true});e.CHTMLWrapper=e.SPACE=e.FONTSIZE=void 0;var c=a(r(86810));var u=r(85677);var f=r(58340);e.FONTSIZE={"70.7%":"s","70%":"s","50%":"ss","60%":"Tn","85%":"sm","120%":"lg","144%":"Lg","173%":"LG","207%":"hg","249%":"HG"};e.SPACE=(h={},h[c.em(2/18)]="1",h[c.em(3/18)]="2",h[c.em(4/18)]="3",h[c.em(5/18)]="4",h[c.em(6/18)]="5",h);var p=function(t){i(r,t);function r(){var e=t!==null&&t.apply(this,arguments)||this;e.chtml=null;return e}r.prototype.toCHTML=function(t){var e,r;var i=this.standardCHTMLnode(t);try{for(var n=s(this.childNodes),o=n.next();!o.done;o=n.next()){var a=o.value;a.toCHTML(i)}}catch(l){e={error:l}}finally{try{if(o&&!o.done&&(r=n.return))r.call(n)}finally{if(e)throw e.error}}};r.prototype.standardCHTMLnode=function(t){this.markUsed();var e=this.createCHTMLnode(t);this.handleStyles();this.handleVariant();this.handleScale();this.handleColor();this.handleSpace();this.handleAttributes();this.handlePWidth();return e};r.prototype.markUsed=function(){this.jax.wrapperUsage.add(this.kind)};r.prototype.createCHTMLnode=function(t){var e=this.node.attributes.get("href");if(e){t=this.adaptor.append(t,this.html("a",{href:e}))}this.chtml=this.adaptor.append(t,this.html("mjx-"+this.node.kind));return this.chtml};r.prototype.handleStyles=function(){if(!this.styles)return;var t=this.styles.cssText;if(t){this.adaptor.setAttribute(this.chtml,"style",t);var e=this.styles.get("font-family");if(e){this.adaptor.setStyle(this.chtml,"font-family","MJXZERO, "+e)}}};r.prototype.handleVariant=function(){if(this.node.isToken&&this.variant!=="-explicitFont"){this.adaptor.setAttribute(this.chtml,"class",(this.font.getVariant(this.variant)||this.font.getVariant("normal")).classes)}};r.prototype.handleScale=function(){this.setScale(this.chtml,this.bbox.rscale)};r.prototype.setScale=function(t,r){var i=Math.abs(r-1)<.001?1:r;if(t&&i!==1){var n=this.percent(i);if(e.FONTSIZE[n]){this.adaptor.setAttribute(t,"size",e.FONTSIZE[n])}else{this.adaptor.setStyle(t,"fontSize",n)}}return t};r.prototype.handleSpace=function(){var t,r;try{for(var i=s([[this.bbox.L,"space","marginLeft"],[this.bbox.R,"rspace","marginRight"]]),n=i.next();!n.done;n=i.next()){var o=n.value;var a=l(o,3),h=a[0],c=a[1],u=a[2];if(h){var f=this.em(h);if(e.SPACE[f]){this.adaptor.setAttribute(this.chtml,c,e.SPACE[f])}else{this.adaptor.setStyle(this.chtml,u,f)}}}}catch(p){t={error:p}}finally{try{if(n&&!n.done&&(r=i.return))r.call(i)}finally{if(t)throw t.error}}};r.prototype.handleColor=function(){var t=this.node.attributes;var e=t.getExplicit("mathcolor");var r=t.getExplicit("color");var i=t.getExplicit("mathbackground");var n=t.getExplicit("background");if(e||r){this.adaptor.setStyle(this.chtml,"color",e||r)}if(i||n){this.adaptor.setStyle(this.chtml,"backgroundColor",i||n)}};r.prototype.handleAttributes=function(){var t,e,i,n;var o=this.node.attributes;var a=o.getAllDefaults();var l=r.skipAttributes;try{for(var h=s(o.getExplicitNames()),c=h.next();!c.done;c=h.next()){var u=c.value;if(l[u]===false||!(u in a)&&!l[u]&&!this.adaptor.hasAttribute(this.chtml,u)){this.adaptor.setAttribute(this.chtml,u,o.getExplicit(u))}}}catch(v){t={error:v}}finally{try{if(c&&!c.done&&(e=h.return))e.call(h)}finally{if(t)throw t.error}}if(o.get("class")){var f=o.get("class").trim().split(/ +/);try{for(var p=s(f),d=p.next();!d.done;d=p.next()){var y=d.value;this.adaptor.addClass(this.chtml,y)}}catch(m){i={error:m}}finally{try{if(d&&!d.done&&(n=p.return))n.call(p)}finally{if(i)throw i.error}}}};r.prototype.handlePWidth=function(){if(this.bbox.pwidth){if(this.bbox.pwidth===f.BBox.fullWidth){this.adaptor.setAttribute(this.chtml,"width","full")}else{this.adaptor.setStyle(this.chtml,"width",this.bbox.pwidth)}}};r.prototype.setIndent=function(t,e,r){var i=this.adaptor;if(e==="center"||e==="left"){var n=this.getBBox().L;i.setStyle(t,"margin-left",this.em(r+n))}if(e==="center"||e==="right"){var o=this.getBBox().R;i.setStyle(t,"margin-right",this.em(-r+o))}};r.prototype.drawBBox=function(){var t=this.getBBox(),e=t.w,r=t.h,i=t.d,n=t.R;var o=this.html("mjx-box",{style:{opacity:.25,"margin-left":this.em(-e-n)}},[this.html("mjx-box",{style:{height:this.em(r),width:this.em(e),"background-color":"red"}}),this.html("mjx-box",{style:{height:this.em(i),width:this.em(e),"margin-left":this.em(-e),"vertical-align":this.em(-i),"background-color":"green"}})]);var a=this.chtml||this.parent.chtml;var s=this.adaptor.getAttribute(a,"size");if(s){this.adaptor.setAttribute(o,"size",s)}var l=this.adaptor.getStyle(a,"fontSize");if(l){this.adaptor.setStyle(o,"fontSize",l)}this.adaptor.append(this.adaptor.parent(a),o);this.adaptor.setStyle(a,"backgroundColor","#FFEE00")};r.prototype.html=function(t,e,r){if(e===void 0){e={}}if(r===void 0){r=[]}return this.jax.html(t,e,r)};r.prototype.text=function(t){return this.jax.text(t)};r.prototype.char=function(t){return this.font.charSelector(t).substr(1)};r.kind="unknown";r.autoStyle=true;return r}(u.CommonWrapper);e.CHTMLWrapper=p},59550: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)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLWrapperFactory=void 0;var n=r(36483);var o=r(3917);var a=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.defaultNodes=o.CHTMLWrappers;return e}(n.CommonWrapperFactory);e.CHTMLWrapperFactory=a},3917:(t,e,r)=>{var i;Object.defineProperty(e,"__esModule",{value:true});e.CHTMLWrappers=void 0;var n=r(44614);var o=r(64474);var a=r(2742);var s=r(20480);var l=r(19255);var h=r(3428);var c=r(79150);var u=r(91007);var f=r(38655);var p=r(2696);var d=r(34021);var y=r(91122);var v=r(79901);var m=r(55715);var b=r(55501);var g=r(21279);var x=r(49821);var w=r(84642);var _=r(46605);var M=r(42731);var j=r(71937);var C=r(1835);var S=r(96672);var O=r(29107);var T=r(61118);var B=r(13219);e.CHTMLWrappers=(i={},i[o.CHTMLmath.kind]=o.CHTMLmath,i[d.CHTMLmrow.kind]=d.CHTMLmrow,i[d.CHTMLinferredMrow.kind]=d.CHTMLinferredMrow,i[a.CHTMLmi.kind]=a.CHTMLmi,i[s.CHTMLmo.kind]=s.CHTMLmo,i[l.CHTMLmn.kind]=l.CHTMLmn,i[h.CHTMLms.kind]=h.CHTMLms,i[c.CHTMLmtext.kind]=c.CHTMLmtext,i[u.CHTMLmspace.kind]=u.CHTMLmspace,i[f.CHTMLmpadded.kind]=f.CHTMLmpadded,i[p.CHTMLmenclose.kind]=p.CHTMLmenclose,i[v.CHTMLmfrac.kind]=v.CHTMLmfrac,i[m.CHTMLmsqrt.kind]=m.CHTMLmsqrt,i[b.CHTMLmroot.kind]=b.CHTMLmroot,i[g.CHTMLmsub.kind]=g.CHTMLmsub,i[g.CHTMLmsup.kind]=g.CHTMLmsup,i[g.CHTMLmsubsup.kind]=g.CHTMLmsubsup,i[x.CHTMLmunder.kind]=x.CHTMLmunder,i[x.CHTMLmover.kind]=x.CHTMLmover,i[x.CHTMLmunderover.kind]=x.CHTMLmunderover,i[w.CHTMLmmultiscripts.kind]=w.CHTMLmmultiscripts,i[y.CHTMLmfenced.kind]=y.CHTMLmfenced,i[_.CHTMLmtable.kind]=_.CHTMLmtable,i[M.CHTMLmtr.kind]=M.CHTMLmtr,i[M.CHTMLmlabeledtr.kind]=M.CHTMLmlabeledtr,i[j.CHTMLmtd.kind]=j.CHTMLmtd,i[C.CHTMLmaction.kind]=C.CHTMLmaction,i[S.CHTMLmglyph.kind]=S.CHTMLmglyph,i[O.CHTMLsemantics.kind]=O.CHTMLsemantics,i[O.CHTMLannotation.kind]=O.CHTMLannotation,i[O.CHTMLannotationXML.kind]=O.CHTMLannotationXML,i[O.CHTMLxml.kind]=O.CHTMLxml,i[T.CHTMLTeXAtom.kind]=T.CHTMLTeXAtom,i[B.CHTMLTextNode.kind]=B.CHTMLTextNode,i[n.CHTMLWrapper.kind]=n.CHTMLWrapper,i)},61118: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)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLTeXAtom=void 0;var n=r(44614);var o=r(65735);var a=r(54517);var s=r(80747);var l=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(e){t.prototype.toCHTML.call(this,e);this.adaptor.setAttribute(this.chtml,"texclass",s.TEXCLASSNAMES[this.node.texClass]);if(this.node.texClass===s.TEXCLASS.VCENTER){var r=this.childNodes[0].getBBox();var i=r.h,n=r.d;var o=this.font.params.axis_height;var a=(i+n)/2+o-i;this.adaptor.setStyle(this.chtml,"verticalAlign",this.em(a))}};e.kind=a.TeXAtom.prototype.kind;return e}((0,o.CommonTeXAtomMixin)(n.CHTMLWrapper));e.CHTMLTeXAtom=l},13219: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.__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.")};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLTextNode=void 0;var o=r(80747);var a=r(44614);var s=r(87120);var l=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e,r;this.markUsed();var i=this.adaptor;var o=this.parent.variant;var a=this.node.getText();if(a.length===0)return;if(o==="-explicitFont"){i.append(t,this.jax.unknownText(a,o,this.getBBox().w))}else{var s=this.remappedText(a,o);try{for(var l=n(s),h=l.next();!h.done;h=l.next()){var c=h.value;var u=this.getVariantChar(o,c)[3];var f=u.f?" TEX-"+u.f:"";var p=u.unknown?this.jax.unknownText(String.fromCodePoint(c),o):this.html("mjx-c",{class:this.char(c)+f});i.append(t,p);!u.unknown&&this.font.charUsage.add([o,c])}}catch(d){e={error:d}}finally{try{if(h&&!h.done&&(r=l.return))r.call(l)}finally{if(e)throw e.error}}}};e.kind=o.TextNode.prototype.kind;e.autoStyle=false;e.styles={"mjx-c":{display:"inline-block"},"mjx-utext":{display:"inline-block",padding:".75em 0 .2em 0"}};return e}((0,s.CommonTextNodeMixin)(a.CHTMLWrapper));e.CHTMLTextNode=l},1835: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)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmaction=void 0;var n=r(44614);var o=r(55210);var a=r(55210);var s=r(36528);var l=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e=this.standardCHTMLnode(t);var r=this.selected;r.toCHTML(e);this.action(this,this.data)};e.prototype.setEventHandler=function(t,e){this.chtml.addEventListener(t,e)};e.kind=s.MmlMaction.prototype.kind;e.styles={"mjx-maction":{position:"relative"},"mjx-maction > mjx-tool":{display:"none",position:"absolute",bottom:0,right:0,width:0,height:0,"z-index":500},"mjx-tool > mjx-tip":{display:"inline-block",padding:".2em",border:"1px solid #888","font-size":"70%","background-color":"#F8F8F8",color:"black","box-shadow":"2px 2px 5px #AAAAAA"},"mjx-maction[toggle]":{cursor:"pointer"},"mjx-status":{display:"block",position:"fixed",left:"1em",bottom:"1em","min-width":"25%",padding:".2em .4em",border:"1px solid #888","font-size":"90%","background-color":"#F8F8F8",color:"black"}};e.actions=new Map([["toggle",[function(t,e){t.adaptor.setAttribute(t.chtml,"toggle",t.node.attributes.get("selection"));var r=t.factory.jax.math;var i=t.factory.jax.document;var n=t.node;t.setEventHandler("click",(function(t){if(!r.end.node){r.start.node=r.end.node=r.typesetRoot;r.start.n=r.end.n=0}n.nextToggleSelection();r.rerender(i);t.stopPropagation()}))},{}]],["tooltip",[function(t,e){var r=t.childNodes[1];if(!r)return;if(r.node.isKind("mtext")){var i=r.node.getText();t.adaptor.setAttribute(t.chtml,"title",i)}else{var n=t.adaptor;var o=n.append(t.chtml,t.html("mjx-tool",{style:{bottom:t.em(-t.dy),right:t.em(-t.dx)}},[t.html("mjx-tip")]));r.toCHTML(n.firstChild(o));t.setEventHandler("mouseover",(function(r){e.stopTimers(t,e);var i=setTimeout((function(){return n.setStyle(o,"display","block")}),e.postDelay);e.hoverTimer.set(t,i);r.stopPropagation()}));t.setEventHandler("mouseout",(function(r){e.stopTimers(t,e);var i=setTimeout((function(){return n.setStyle(o,"display","")}),e.clearDelay);e.clearTimer.set(t,i);r.stopPropagation()}))}},a.TooltipData]],["statusline",[function(t,e){var r=t.childNodes[1];if(!r)return;if(r.node.isKind("mtext")){var i=t.adaptor;var n=r.node.getText();i.setAttribute(t.chtml,"statusline",n);t.setEventHandler("mouseover",(function(r){if(e.status===null){var o=i.body(i.document);e.status=i.append(o,t.html("mjx-status",{},[t.text(n)]))}r.stopPropagation()}));t.setEventHandler("mouseout",(function(t){if(e.status){i.remove(e.status);e.status=null}t.stopPropagation()}))}},{status:null}]]]);return e}((0,o.CommonMactionMixin)(n.CHTMLWrapper));e.CHTMLmaction=l},64474: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.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(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.CHTMLmath=void 0;var o=r(44614);var a=r(67493);var s=r(31859);var l=r(58340);var h=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(e){t.prototype.toCHTML.call(this,e);var r=this.chtml;var i=this.adaptor;var n=this.node.attributes.get("display")==="block";if(n){i.setAttribute(r,"display","true");i.setAttribute(e,"display","true");this.handleDisplay(e)}else{this.handleInline(e)}i.addClass(r,"MJX-TEX")};e.prototype.handleDisplay=function(t){var e=this.adaptor;var r=n(this.getAlignShift(),2),i=r[0],o=r[1];if(i!=="center"){e.setAttribute(t,"justify",i)}if(this.bbox.pwidth===l.BBox.fullWidth){e.setAttribute(t,"width","full");if(this.jax.table){var a=this.jax.table.getOuterBBox(),s=a.L,h=a.w,c=a.R;if(i==="right"){c=Math.max(c||-o,-o)}else if(i==="left"){s=Math.max(s||o,o)}else if(i==="center"){h+=2*Math.abs(o)}var u=this.em(Math.max(0,s+h+c));e.setStyle(t,"min-width",u);e.setStyle(this.jax.table.chtml,"min-width",u)}}else{this.setIndent(this.chtml,i,o)}};e.prototype.handleInline=function(t){var e=this.adaptor;var r=e.getStyle(this.chtml,"margin-right");if(r){e.setStyle(this.chtml,"margin-right","");e.setStyle(t,"margin-right",r);e.setStyle(t,"width","0")}};e.prototype.setChildPWidths=function(e,r,i){if(r===void 0){r=null}if(i===void 0){i=true}return this.parent?t.prototype.setChildPWidths.call(this,e,r,i):false};e.kind=s.MmlMath.prototype.kind;e.styles={"mjx-math":{"line-height":0,"text-align":"left","text-indent":0,"font-style":"normal","font-weight":"normal","font-size":"100%","font-size-adjust":"none","letter-spacing":"normal","border-collapse":"collapse","word-wrap":"normal","word-spacing":"normal","white-space":"nowrap",direction:"ltr",padding:"1px 0"},'mjx-container[jax="CHTML"][display="true"]':{display:"block","text-align":"center",margin:"1em 0"},'mjx-container[jax="CHTML"][display="true"][width="full"]':{display:"flex"},'mjx-container[jax="CHTML"][display="true"] mjx-math':{padding:0},'mjx-container[jax="CHTML"][justify="left"]':{"text-align":"left"},'mjx-container[jax="CHTML"][justify="right"]':{"text-align":"right"}};return e}((0,a.CommonMathMixin)(o.CHTMLWrapper));e.CHTMLmath=h},2696: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.__createBinding||(Object.create?function(t,e,r,i){if(i===undefined)i=r;var n=Object.getOwnPropertyDescriptor(e,r);if(!n||("get"in n?!e.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return e[r]}}}Object.defineProperty(t,i,n)}:function(t,e,r,i){if(i===undefined)i=r;t[i]=e[r]});var o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:true,value:e})}:function(t,e){t["default"]=e});var a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)if(r!=="default"&&Object.prototype.hasOwnProperty.call(t,r))n(e,t,r);o(e,t);return e};var s=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 l=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(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.CHTMLmenclose=void 0;var h=r(44614);var c=r(9503);var u=a(r(85475));var f=r(38085);var p=r(86810);function d(t,e){return Math.atan2(t,e).toFixed(3).replace(/\.?0+$/,"")}var y=d(u.ARROWDX,u.ARROWY);var v=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e,r,i,n;var o=this.adaptor;var a=this.standardCHTMLnode(t);var l=o.append(a,this.html("mjx-box"));if(this.renderChild){this.renderChild(this,l)}else{this.childNodes[0].toCHTML(l)}try{for(var h=s(Object.keys(this.notations)),c=h.next();!c.done;c=h.next()){var f=c.value;var p=this.notations[f];!p.renderChild&&p.renderer(this,l)}}catch(g){e={error:g}}finally{try{if(c&&!c.done&&(r=h.return))r.call(h)}finally{if(e)throw e.error}}var d=this.getPadding();try{for(var y=s(u.sideNames),v=y.next();!v.done;v=y.next()){var m=v.value;var b=u.sideIndex[m];d[b]>0&&o.setStyle(l,"padding-"+m,this.em(d[b]))}}catch(x){i={error:x}}finally{try{if(v&&!v.done&&(n=y.return))n.call(y)}finally{if(i)throw i.error}}};e.prototype.arrow=function(t,e,r,i,n){if(i===void 0){i=""}if(n===void 0){n=0}var o=this.getBBox().w;var a={width:this.em(t)};if(o!==t){a.left=this.em((o-t)/2)}if(e){a.transform="rotate("+this.fixed(e)+"rad)"}var s=this.html("mjx-arrow",{style:a},[this.html("mjx-aline"),this.html("mjx-rthead"),this.html("mjx-rbhead")]);if(r){this.adaptor.append(s,this.html("mjx-lthead"));this.adaptor.append(s,this.html("mjx-lbhead"));this.adaptor.setAttribute(s,"double","true")}this.adjustArrow(s,r);this.moveArrow(s,i,n);return s};e.prototype.adjustArrow=function(t,e){var r=this;var i=this.thickness;var n=this.arrowhead;if(n.x===u.ARROWX&&n.y===u.ARROWY&&n.dx===u.ARROWDX&&i===u.THICKNESS)return;var o=l([i*n.x,i*n.y].map((function(t){return r.em(t)})),2),a=o[0],s=o[1];var h=d(n.dx,n.y);var c=l(this.adaptor.childNodes(t),5),f=c[0],p=c[1],y=c[2],v=c[3],m=c[4];this.adjustHead(p,[s,"0","1px",a],h);this.adjustHead(y,["1px","0",s,a],"-"+h);this.adjustHead(v,[s,a,"1px","0"],"-"+h);this.adjustHead(m,["1px",a,s,"0"],h);this.adjustLine(f,i,n.x,e)};e.prototype.adjustHead=function(t,e,r){if(t){this.adaptor.setStyle(t,"border-width",e.join(" "));this.adaptor.setStyle(t,"transform","skewX("+r+"rad)")}};e.prototype.adjustLine=function(t,e,r,i){this.adaptor.setStyle(t,"borderTop",this.em(e)+" solid");this.adaptor.setStyle(t,"top",this.em(-e/2));this.adaptor.setStyle(t,"right",this.em(e*(r-1)));if(i){this.adaptor.setStyle(t,"left",this.em(e*(r-1)))}};e.prototype.moveArrow=function(t,e,r){if(!r)return;var i=this.adaptor.getStyle(t,"transform");this.adaptor.setStyle(t,"transform","translate".concat(e,"(").concat(this.em(-r),")").concat(i?" "+i:""))};e.prototype.adjustBorder=function(t){if(this.thickness!==u.THICKNESS){this.adaptor.setStyle(t,"borderWidth",this.em(this.thickness))}return t};e.prototype.adjustThickness=function(t){if(this.thickness!==u.THICKNESS){this.adaptor.setStyle(t,"strokeWidth",this.fixed(this.thickness))}return t};e.prototype.fixed=function(t,e){if(e===void 0){e=3}if(Math.abs(t)<6e-4){return"0"}return t.toFixed(e).replace(/\.?0+$/,"")};e.prototype.em=function(e){return t.prototype.em.call(this,e)};e.kind=f.MmlMenclose.prototype.kind;e.styles={"mjx-menclose":{position:"relative"},"mjx-menclose > mjx-dstrike":{display:"inline-block",left:0,top:0,position:"absolute","border-top":u.SOLID,"transform-origin":"top left"},"mjx-menclose > mjx-ustrike":{display:"inline-block",left:0,bottom:0,position:"absolute","border-top":u.SOLID,"transform-origin":"bottom left"},"mjx-menclose > mjx-hstrike":{"border-top":u.SOLID,position:"absolute",left:0,right:0,bottom:"50%",transform:"translateY("+(0,p.em)(u.THICKNESS/2)+")"},"mjx-menclose > mjx-vstrike":{"border-left":u.SOLID,position:"absolute",top:0,bottom:0,right:"50%",transform:"translateX("+(0,p.em)(u.THICKNESS/2)+")"},"mjx-menclose > mjx-rbox":{position:"absolute",top:0,bottom:0,right:0,left:0,border:u.SOLID,"border-radius":(0,p.em)(u.THICKNESS+u.PADDING)},"mjx-menclose > mjx-cbox":{position:"absolute",top:0,bottom:0,right:0,left:0,border:u.SOLID,"border-radius":"50%"},"mjx-menclose > mjx-arrow":{position:"absolute",left:0,bottom:"50%",height:0,width:0},"mjx-menclose > mjx-arrow > *":{display:"block",position:"absolute","transform-origin":"bottom","border-left":(0,p.em)(u.THICKNESS*u.ARROWX)+" solid","border-right":0,"box-sizing":"border-box"},"mjx-menclose > mjx-arrow > mjx-aline":{left:0,top:(0,p.em)(-u.THICKNESS/2),right:(0,p.em)(u.THICKNESS*(u.ARROWX-1)),height:0,"border-top":(0,p.em)(u.THICKNESS)+" solid","border-left":0},"mjx-menclose > mjx-arrow[double] > mjx-aline":{left:(0,p.em)(u.THICKNESS*(u.ARROWX-1)),height:0},"mjx-menclose > mjx-arrow > mjx-rthead":{transform:"skewX("+y+"rad)",right:0,bottom:"-1px","border-bottom":"1px solid transparent","border-top":(0,p.em)(u.THICKNESS*u.ARROWY)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-rbhead":{transform:"skewX(-"+y+"rad)","transform-origin":"top",right:0,top:"-1px","border-top":"1px solid transparent","border-bottom":(0,p.em)(u.THICKNESS*u.ARROWY)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-lthead":{transform:"skewX(-"+y+"rad)",left:0,bottom:"-1px","border-left":0,"border-right":(0,p.em)(u.THICKNESS*u.ARROWX)+" solid","border-bottom":"1px solid transparent","border-top":(0,p.em)(u.THICKNESS*u.ARROWY)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-lbhead":{transform:"skewX("+y+"rad)","transform-origin":"top",left:0,top:"-1px","border-left":0,"border-right":(0,p.em)(u.THICKNESS*u.ARROWX)+" solid","border-top":"1px solid transparent","border-bottom":(0,p.em)(u.THICKNESS*u.ARROWY)+" solid transparent"},"mjx-menclose > dbox":{position:"absolute",top:0,bottom:0,left:(0,p.em)(-1.5*u.PADDING),width:(0,p.em)(3*u.PADDING),border:(0,p.em)(u.THICKNESS)+" solid","border-radius":"50%","clip-path":"inset(0 0 0 "+(0,p.em)(1.5*u.PADDING)+")","box-sizing":"border-box"}};e.notations=new Map([u.Border("top"),u.Border("right"),u.Border("bottom"),u.Border("left"),u.Border2("actuarial","top","right"),u.Border2("madruwb","bottom","right"),u.DiagonalStrike("up",1),u.DiagonalStrike("down",-1),["horizontalstrike",{renderer:u.RenderElement("hstrike","Y"),bbox:function(t){return[0,t.padding,0,t.padding]}}],["verticalstrike",{renderer:u.RenderElement("vstrike","X"),bbox:function(t){return[t.padding,0,t.padding,0]}}],["box",{renderer:function(t,e){t.adaptor.setStyle(e,"border",t.em(t.thickness)+" solid")},bbox:u.fullBBox,border:u.fullBorder,remove:"left right top bottom"}],["roundedbox",{renderer:u.RenderElement("rbox"),bbox:u.fullBBox}],["circle",{renderer:u.RenderElement("cbox"),bbox:u.fullBBox}],["phasorangle",{renderer:function(t,e){var r=t.getBBox(),i=r.h,n=r.d;var o=l(t.getArgMod(1.75*t.padding,i+n),2),a=o[0],s=o[1];var h=t.thickness*Math.sin(a)*.9;t.adaptor.setStyle(e,"border-bottom",t.em(t.thickness)+" solid");var c=t.adjustBorder(t.html("mjx-ustrike",{style:{width:t.em(s),transform:"translateX("+t.em(h)+") rotate("+t.fixed(-a)+"rad)"}}));t.adaptor.append(t.chtml,c)},bbox:function(t){var e=t.padding/2;var r=t.thickness;return[2*e,e,e+r,3*e+r]},border:function(t){return[0,0,t.thickness,0]},remove:"bottom"}],u.Arrow("up"),u.Arrow("down"),u.Arrow("left"),u.Arrow("right"),u.Arrow("updown"),u.Arrow("leftright"),u.DiagonalArrow("updiagonal"),u.DiagonalArrow("northeast"),u.DiagonalArrow("southeast"),u.DiagonalArrow("northwest"),u.DiagonalArrow("southwest"),u.DiagonalArrow("northeastsouthwest"),u.DiagonalArrow("northwestsoutheast"),["longdiv",{renderer:function(t,e){var r=t.adaptor;r.setStyle(e,"border-top",t.em(t.thickness)+" solid");var i=r.append(t.chtml,t.html("dbox"));var n=t.thickness;var o=t.padding;if(n!==u.THICKNESS){r.setStyle(i,"border-width",t.em(n))}if(o!==u.PADDING){r.setStyle(i,"left",t.em(-1.5*o));r.setStyle(i,"width",t.em(3*o));r.setStyle(i,"clip-path","inset(0 0 0 "+t.em(1.5*o)+")")}},bbox:function(t){var e=t.padding;var r=t.thickness;return[e+r,e,e,2*e+r/2]}}],["radical",{renderer:function(t,e){t.msqrt.toCHTML(e);var r=t.sqrtTRBL();t.adaptor.setStyle(t.msqrt.chtml,"margin",r.map((function(e){return t.em(-e)})).join(" "))},init:function(t){t.msqrt=t.createMsqrt(t.childNodes[0])},bbox:function(t){return t.sqrtTRBL()},renderChild:true}]]);return e}((0,c.CommonMencloseMixin)(h.CHTMLWrapper));e.CHTMLmenclose=v},91122: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)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmfenced=void 0;var n=r(44614);var o=r(36639);var a=r(54453);var s=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e=this.standardCHTMLnode(t);this.mrow.toCHTML(e)};e.kind=a.MmlMfenced.prototype.kind;return e}((0,o.CommonMfencedMixin)(n.CHTMLWrapper));e.CHTMLmfenced=s},79901: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;r *":{"font-size":"2000%"},"mjx-dbox":{display:"block","font-size":"5%"},"mjx-num":{display:"block","text-align":"center"},"mjx-den":{display:"block","text-align":"center"},"mjx-mfrac[bevelled] > mjx-num":{display:"inline-block"},"mjx-mfrac[bevelled] > mjx-den":{display:"inline-block"},'mjx-den[align="right"], mjx-num[align="right"]':{"text-align":"right"},'mjx-den[align="left"], mjx-num[align="left"]':{"text-align":"left"},"mjx-nstrut":{display:"inline-block",height:".054em",width:0,"vertical-align":"-.054em"},'mjx-nstrut[type="d"]':{height:".217em","vertical-align":"-.217em"},"mjx-dstrut":{display:"inline-block",height:".505em",width:0},'mjx-dstrut[type="d"]':{height:".726em"},"mjx-line":{display:"block","box-sizing":"border-box","min-height":"1px",height:".06em","border-top":".06em solid",margin:".06em -.1em",overflow:"hidden"},'mjx-line[type="d"]':{margin:".18em -.1em"}};return e}((0,a.CommonMfracMixin)(o.CHTMLWrapper));e.CHTMLmfrac=l},96672: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)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmglyph=void 0;var n=r(44614);var o=r(28656);var a=r(64906);var s=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e=this.standardCHTMLnode(t);if(this.charWrapper){this.charWrapper.toCHTML(e);return}var r=this.node.attributes.getList("src","alt"),i=r.src,n=r.alt;var o={width:this.em(this.width),height:this.em(this.height)};if(this.valign){o.verticalAlign=this.em(this.valign)}var a=this.html("img",{src:i,style:o,alt:n,title:n});this.adaptor.append(e,a)};e.kind=a.MmlMglyph.prototype.kind;e.styles={"mjx-mglyph > img":{display:"inline-block",border:0,padding:0}};return e}((0,o.CommonMglyphMixin)(n.CHTMLWrapper));e.CHTMLmglyph=s},2742: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)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmi=void 0;var n=r(44614);var o=r(54073);var a=r(32175);var s=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.kind=a.MmlMi.prototype.kind;return e}((0,o.CommonMiMixin)(n.CHTMLWrapper));e.CHTMLmi=s},84642: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.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(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.CHTMLmmultiscripts=void 0;var o=r(21279);var a=r(86539);var s=r(10093);var l=r(41278);var h=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e=this.standardCHTMLnode(t);var r=this.scriptData;var i=this.node.getProperty("scriptalign")||"right left";var o=n((0,l.split)(i+" "+i),2),a=o[0],s=o[1];var h=this.combinePrePost(r.sub,r.psub);var c=this.combinePrePost(r.sup,r.psup);var u=n(this.getUVQ(h,c),2),f=u[0],p=u[1];if(r.numPrescripts){var d=this.addScripts(f,-p,true,r.psub,r.psup,this.firstPrescript,r.numPrescripts);a!=="right"&&this.adaptor.setAttribute(d,"script-align",a)}this.childNodes[0].toCHTML(e);if(r.numScripts){var d=this.addScripts(f,-p,false,r.sub,r.sup,1,r.numScripts);s!=="left"&&this.adaptor.setAttribute(d,"script-align",s)}};e.prototype.addScripts=function(t,e,r,i,n,o,a){var s=this.adaptor;var l=t-n.d+(e-i.h);var h=t<0&&e===0?i.h+t:t;var c=l>0?{style:{height:this.em(l)}}:{};var u=h?{style:{"vertical-align":this.em(h)}}:{};var f=this.html("mjx-row");var p=this.html("mjx-row",c);var d=this.html("mjx-row");var y="mjx-"+(r?"pre":"")+"scripts";var v=o+2*a;while(o mjx-row > mjx-cell":{"text-align":"right"},'[script-align="left"] > mjx-row > mjx-cell':{"text-align":"left"},'[script-align="center"] > mjx-row > mjx-cell':{"text-align":"center"},'[script-align="right"] > mjx-row > mjx-cell':{"text-align":"right"}};return e}((0,a.CommonMmultiscriptsMixin)(o.CHTMLmsubsup));e.CHTMLmmultiscripts=h},19255: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)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmn=void 0;var n=r(44614);var o=r(53228);var a=r(94318);var s=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.kind=a.MmlMn.prototype.kind;return e}((0,o.CommonMnMixin)(n.CHTMLWrapper));e.CHTMLmn=s},20480: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.__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.")};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmo=void 0;var o=r(44614);var a=r(61331);var s=r(38669);var l=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e,r;var i=this.node.attributes;var o=i.get("symmetric")&&this.stretch.dir!==2;var a=this.stretch.dir!==0;if(a&&this.size===null){this.getStretchedVariant([])}var s=this.standardCHTMLnode(t);if(a&&this.size<0){this.stretchHTML(s)}else{if(o||i.get("largeop")){var l=this.em(this.getCenterOffset());if(l!=="0"){this.adaptor.setStyle(s,"verticalAlign",l)}}if(this.node.getProperty("mathaccent")){this.adaptor.setStyle(s,"width","0");this.adaptor.setStyle(s,"margin-left",this.em(this.getAccentOffset()))}try{for(var h=n(this.childNodes),c=h.next();!c.done;c=h.next()){var u=c.value;u.toCHTML(s)}}catch(f){e={error:f}}finally{try{if(c&&!c.done&&(r=h.return))r.call(h)}finally{if(e)throw e.error}}}};e.prototype.stretchHTML=function(t){var e=this.getText().codePointAt(0);this.font.delimUsage.add(e);this.childNodes[0].markUsed();var r=this.stretch;var i=r.stretch;var n=[];if(i[0]){n.push(this.html("mjx-beg",{},[this.html("mjx-c")]))}n.push(this.html("mjx-ext",{},[this.html("mjx-c")]));if(i.length===4){n.push(this.html("mjx-mid",{},[this.html("mjx-c")]),this.html("mjx-ext",{},[this.html("mjx-c")]))}if(i[2]){n.push(this.html("mjx-end",{},[this.html("mjx-c")]))}var o={};var s=this.bbox,l=s.h,h=s.d,c=s.w;if(r.dir===1){n.push(this.html("mjx-mark"));o.height=this.em(l+h);o.verticalAlign=this.em(-h)}else{o.width=this.em(c)}var u=a.DirectionVH[r.dir];var f={class:this.char(r.c||e),style:o};var p=this.html("mjx-stretchy-"+u,f,n);this.adaptor.append(t,p)};e.kind=s.MmlMo.prototype.kind;e.styles={"mjx-stretchy-h":{display:"inline-table",width:"100%"},"mjx-stretchy-h > *":{display:"table-cell",width:0},"mjx-stretchy-h > * > mjx-c":{display:"inline-block",transform:"scalex(1.0000001)"},"mjx-stretchy-h > * > mjx-c::before":{display:"inline-block",width:"initial"},"mjx-stretchy-h > mjx-ext":{"/* IE */ overflow":"hidden","/* others */ overflow":"clip visible",width:"100%"},"mjx-stretchy-h > mjx-ext > mjx-c::before":{transform:"scalex(500)"},"mjx-stretchy-h > mjx-ext > mjx-c":{width:0},"mjx-stretchy-h > mjx-beg > mjx-c":{"margin-right":"-.1em"},"mjx-stretchy-h > mjx-end > mjx-c":{"margin-left":"-.1em"},"mjx-stretchy-v":{display:"inline-block"},"mjx-stretchy-v > *":{display:"block"},"mjx-stretchy-v > mjx-beg":{height:0},"mjx-stretchy-v > mjx-end > mjx-c":{display:"block"},"mjx-stretchy-v > * > mjx-c":{transform:"scaley(1.0000001)","transform-origin":"left center",overflow:"hidden"},"mjx-stretchy-v > mjx-ext":{display:"block",height:"100%","box-sizing":"border-box",border:"0px solid transparent","/* IE */ overflow":"hidden","/* others */ overflow":"visible clip"},"mjx-stretchy-v > mjx-ext > mjx-c::before":{width:"initial","box-sizing":"border-box"},"mjx-stretchy-v > mjx-ext > mjx-c":{transform:"scaleY(500) translateY(.075em)",overflow:"visible"},"mjx-mark":{display:"inline-block",height:"0px"}};return e}((0,a.CommonMoMixin)(o.CHTMLWrapper));e.CHTMLmo=l},38655: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.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(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 o=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.")};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmpadded=void 0;var a=r(44614);var s=r(95522);var l=r(10900);var h=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e,r;var i=this.standardCHTMLnode(t);var a=[];var s={};var l=n(this.getDimens(),9),h=l[2],c=l[3],u=l[4],f=l[5],p=l[6],d=l[7],y=l[8];if(f){s.width=this.em(h+f)}if(c||u){s.margin=this.em(c)+" 0 "+this.em(u)}if(p+y||d){s.position="relative";var v=this.html("mjx-rbox",{style:{left:this.em(p+y),top:this.em(-d),"max-width":s.width}});if(p+y&&this.childNodes[0].getBBox().pwidth){this.adaptor.setAttribute(v,"width","full");this.adaptor.setStyle(v,"left",this.em(p))}a.push(v)}i=this.adaptor.append(i,this.html("mjx-block",{style:s},a));try{for(var m=o(this.childNodes),b=m.next();!b.done;b=m.next()){var g=b.value;g.toCHTML(a[0]||i)}}catch(x){e={error:x}}finally{try{if(b&&!b.done&&(r=m.return))r.call(m)}finally{if(e)throw e.error}}};e.kind=l.MmlMpadded.prototype.kind;e.styles={"mjx-mpadded":{display:"inline-block"},"mjx-rbox":{display:"inline-block",position:"relative"}};return e}((0,s.CommonMpaddedMixin)(a.CHTMLWrapper));e.CHTMLmpadded=h},55501: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.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(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.CHTMLmroot=void 0;var o=r(55715);var a=r(23692);var s=r(96778);var l=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.addRoot=function(t,e,r,i){e.toCHTML(t);var o=n(this.getRootDimens(r,i),3),a=o[0],s=o[1],l=o[2];this.adaptor.setStyle(t,"verticalAlign",this.em(s));this.adaptor.setStyle(t,"width",this.em(a));if(l){this.adaptor.setStyle(this.adaptor.firstChild(t),"paddingLeft",this.em(l))}};e.kind=s.MmlMroot.prototype.kind;return e}((0,a.CommonMrootMixin)(o.CHTMLmsqrt));e.CHTMLmroot=l},34021: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.__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.")};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLinferredMrow=e.CHTMLmrow=void 0;var o=r(44614);var a=r(54114);var s=r(54114);var l=r(81364);var h=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e,r;var i=this.node.isInferred?this.chtml=t:this.standardCHTMLnode(t);var o=false;try{for(var a=n(this.childNodes),s=a.next();!s.done;s=a.next()){var l=s.value;l.toCHTML(i);if(l.bbox.w<0){o=true}}}catch(c){e={error:c}}finally{try{if(s&&!s.done&&(r=a.return))r.call(a)}finally{if(e)throw e.error}}if(o){var h=this.getBBox().w;if(h){this.adaptor.setStyle(i,"width",this.em(Math.max(0,h)));if(h<0){this.adaptor.setStyle(i,"marginRight",this.em(h))}}}};e.kind=l.MmlMrow.prototype.kind;return e}((0,a.CommonMrowMixin)(o.CHTMLWrapper));e.CHTMLmrow=h;var c=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.kind=l.MmlInferredMrow.prototype.kind;return e}((0,s.CommonInferredMrowMixin)(h));e.CHTMLinferredMrow=c},3428: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)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLms=void 0;var n=r(44614);var o=r(95151);var a=r(68313);var s=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.kind=a.MmlMs.prototype.kind;return e}((0,o.CommonMsMixin)(n.CHTMLWrapper));e.CHTMLms=s},91007: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)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmspace=void 0;var n=r(44614);var o=r(9572);var a=r(74394);var s=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e=this.standardCHTMLnode(t);var r=this.getBBox(),i=r.w,n=r.h,o=r.d;if(i<0){this.adaptor.setStyle(e,"marginRight",this.em(i));i=0}if(i){this.adaptor.setStyle(e,"width",this.em(i))}n=Math.max(0,n+o);if(n){this.adaptor.setStyle(e,"height",this.em(Math.max(0,n)))}if(o){this.adaptor.setStyle(e,"verticalAlign",this.em(-o))}};e.kind=a.MmlMspace.prototype.kind;return e}((0,o.CommonMspaceMixin)(n.CHTMLWrapper));e.CHTMLmspace=s},55715: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.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(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.CHTMLmsqrt=void 0;var o=r(44614);var a=r(33206);var s=r(24208);var l=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e=this.childNodes[this.surd];var r=this.childNodes[this.base];var i=e.getBBox();var o=r.getOuterBBox();var a=n(this.getPQ(i),2),s=a[1];var l=this.font.params.rule_thickness;var h=o.h+s+l;var c=this.standardCHTMLnode(t);var u,f,p,d;if(this.root!=null){p=this.adaptor.append(c,this.html("mjx-root"));d=this.childNodes[this.root]}var y=this.adaptor.append(c,this.html("mjx-sqrt",{},[u=this.html("mjx-surd"),f=this.html("mjx-box",{style:{paddingTop:this.em(s)}})]));this.addRoot(p,d,i,h);e.toCHTML(u);r.toCHTML(f);if(e.size<0){this.adaptor.addClass(y,"mjx-tall")}};e.prototype.addRoot=function(t,e,r,i){};e.kind=s.MmlMsqrt.prototype.kind;e.styles={"mjx-root":{display:"inline-block","white-space":"nowrap"},"mjx-surd":{display:"inline-block","vertical-align":"top"},"mjx-sqrt":{display:"inline-block","padding-top":".07em"},"mjx-sqrt > mjx-box":{"border-top":".07em solid"},"mjx-sqrt.mjx-tall > mjx-box":{"padding-left":".3em","margin-left":"-.3em"}};return e}((0,a.CommonMsqrtMixin)(o.CHTMLWrapper));e.CHTMLmsqrt=l},21279: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.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(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.CHTMLmsubsup=e.CHTMLmsup=e.CHTMLmsub=void 0;var o=r(98526);var a=r(64418);var s=r(64418);var l=r(64418);var h=r(12560);var c=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.kind=h.MmlMsub.prototype.kind;return e}((0,a.CommonMsubMixin)(o.CHTMLscriptbase));e.CHTMLmsub=c;var u=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.kind=h.MmlMsup.prototype.kind;return e}((0,s.CommonMsupMixin)(o.CHTMLscriptbase));e.CHTMLmsup=u;var f=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e=this.adaptor;var r=this.standardCHTMLnode(t);var i=n([this.baseChild,this.supChild,this.subChild],3),o=i[0],a=i[1],s=i[2];var l=n(this.getUVQ(),3),h=l[1],c=l[2];var u={"vertical-align":this.em(h)};o.toCHTML(r);var f=e.append(r,this.html("mjx-script",{style:u}));a.toCHTML(f);e.append(f,this.html("mjx-spacer",{style:{"margin-top":this.em(c)}}));s.toCHTML(f);var p=this.getAdjustedIc();if(p){e.setStyle(a.chtml,"marginLeft",this.em(p/a.bbox.rscale))}if(this.baseRemoveIc){e.setStyle(f,"marginLeft",this.em(-this.baseIc))}};e.kind=h.MmlMsubsup.prototype.kind;e.styles={"mjx-script":{display:"inline-block","padding-right":".05em","padding-left":".033em"},"mjx-script > mjx-spacer":{display:"block"}};return e}((0,l.CommonMsubsupMixin)(o.CHTMLscriptbase));e.CHTMLmsubsup=f},46605: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.__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 o=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(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.CHTMLmtable=void 0;var a=r(44614);var s=r(70078);var l=r(7840);var h=r(41278);var c=function(t){i(e,t);function e(e,r,i){if(i===void 0){i=null}var n=t.call(this,e,r,i)||this;n.itable=n.html("mjx-itable");n.labels=n.html("mjx-itable");return n}e.prototype.getAlignShift=function(){var e=t.prototype.getAlignShift.call(this);if(!this.isTop){e[1]=0}return e};e.prototype.toCHTML=function(t){var e,r;var i=this.standardCHTMLnode(t);this.adaptor.append(i,this.html("mjx-table",{},[this.itable]));try{for(var o=n(this.childNodes),a=o.next();!a.done;a=o.next()){var s=a.value;s.toCHTML(this.itable)}}catch(l){e={error:l}}finally{try{if(a&&!a.done&&(r=o.return))r.call(o)}finally{if(e)throw e.error}}this.padRows();this.handleColumnSpacing();this.handleColumnLines();this.handleColumnWidths();this.handleRowSpacing();this.handleRowLines();this.handleRowHeights();this.handleFrame();this.handleWidth();this.handleLabels();this.handleAlign();this.handleJustify();this.shiftColor()};e.prototype.shiftColor=function(){var t=this.adaptor;var e=t.getStyle(this.chtml,"backgroundColor");if(e){t.setStyle(this.chtml,"backgroundColor","");t.setStyle(this.itable,"backgroundColor",e)}};e.prototype.padRows=function(){var t,e;var r=this.adaptor;try{for(var i=n(r.childNodes(this.itable)),o=i.next();!o.done;o=i.next()){var a=o.value;while(r.childNodes(a).length1&&y!=="0.4em"||s&&u===1){this.adaptor.setStyle(m,"paddingLeft",y)}if(u1&&f!=="0.215em"||s&&l===1){this.adaptor.setStyle(v.chtml,"paddingTop",f)}if(l mjx-itable":{"vertical-align":"middle","text-align":"left","box-sizing":"border-box"},"mjx-labels > mjx-itable":{position:"absolute",top:0},'mjx-mtable[justify="left"]':{"text-align":"left"},'mjx-mtable[justify="right"]':{"text-align":"right"},'mjx-mtable[justify="left"][side="left"]':{"padding-right":"0 ! important"},'mjx-mtable[justify="left"][side="right"]':{"padding-left":"0 ! important"},'mjx-mtable[justify="right"][side="left"]':{"padding-right":"0 ! important"},'mjx-mtable[justify="right"][side="right"]':{"padding-left":"0 ! important"},"mjx-mtable[align]":{"vertical-align":"baseline"},'mjx-mtable[align="top"] > mjx-table':{"vertical-align":"top"},'mjx-mtable[align="bottom"] > mjx-table':{"vertical-align":"bottom"},'mjx-mtable[side="right"] mjx-labels':{"min-width":"100%"}};return e}((0,s.CommonMtableMixin)(a.CHTMLWrapper));e.CHTMLmtable=c},71937: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)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmtd=void 0;var n=r(44614);var o=r(8256);var a=r(94826);var s=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(e){t.prototype.toCHTML.call(this,e);var r=this.node.attributes.get("rowalign");var i=this.node.attributes.get("columnalign");var n=this.parent.node.attributes.get("rowalign");if(r!==n){this.adaptor.setAttribute(this.chtml,"rowalign",r)}if(i!=="center"&&(this.parent.kind!=="mlabeledtr"||this!==this.parent.childNodes[0]||i!==this.parent.parent.node.attributes.get("side"))){this.adaptor.setStyle(this.chtml,"textAlign",i)}if(this.parent.parent.node.getProperty("useHeight")){this.adaptor.append(this.chtml,this.html("mjx-tstrut"))}};e.kind=a.MmlMtd.prototype.kind;e.styles={"mjx-mtd":{display:"table-cell","text-align":"center",padding:".215em .4em"},"mjx-mtd:first-child":{"padding-left":0},"mjx-mtd:last-child":{"padding-right":0},"mjx-mtable > * > mjx-itable > *:first-child > mjx-mtd":{"padding-top":0},"mjx-mtable > * > mjx-itable > *:last-child > mjx-mtd":{"padding-bottom":0},"mjx-tstrut":{display:"inline-block",height:"1em","vertical-align":"-.25em"},'mjx-labels[align="left"] > mjx-mtr > mjx-mtd':{"text-align":"left"},'mjx-labels[align="right"] > mjx-mtr > mjx-mtd':{"text-align":"right"},"mjx-mtd[extra]":{padding:0},'mjx-mtd[rowalign="top"]':{"vertical-align":"top"},'mjx-mtd[rowalign="center"]':{"vertical-align":"middle"},'mjx-mtd[rowalign="bottom"]':{"vertical-align":"bottom"},'mjx-mtd[rowalign="baseline"]':{"vertical-align":"baseline"},'mjx-mtd[rowalign="axis"]':{"vertical-align":".25em"}};return e}((0,o.CommonMtdMixin)(n.CHTMLWrapper));e.CHTMLmtd=s},79150: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)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmtext=void 0;var n=r(44614);var o=r(80648);var a=r(48765);var s=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.kind=a.MmlMtext.prototype.kind;return e}((0,o.CommonMtextMixin)(n.CHTMLWrapper));e.CHTMLmtext=s},42731: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)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmlabeledtr=e.CHTMLmtr=void 0;var n=r(44614);var o=r(8518);var a=r(8518);var s=r(79516);var l=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(e){t.prototype.toCHTML.call(this,e);var r=this.node.attributes.get("rowalign");if(r!=="baseline"){this.adaptor.setAttribute(this.chtml,"rowalign",r)}};e.kind=s.MmlMtr.prototype.kind;e.styles={"mjx-mtr":{display:"table-row"},'mjx-mtr[rowalign="top"] > mjx-mtd':{"vertical-align":"top"},'mjx-mtr[rowalign="center"] > mjx-mtd':{"vertical-align":"middle"},'mjx-mtr[rowalign="bottom"] > mjx-mtd':{"vertical-align":"bottom"},'mjx-mtr[rowalign="baseline"] > mjx-mtd':{"vertical-align":"baseline"},'mjx-mtr[rowalign="axis"] > mjx-mtd':{"vertical-align":".25em"}};return e}((0,o.CommonMtrMixin)(n.CHTMLWrapper));e.CHTMLmtr=l;var h=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(e){t.prototype.toCHTML.call(this,e);var r=this.adaptor.firstChild(this.chtml);if(r){this.adaptor.remove(r);var i=this.node.attributes.get("rowalign");var n=i!=="baseline"&&i!=="axis"?{rowalign:i}:{};var o=this.html("mjx-mtr",n,[r]);this.adaptor.append(this.parent.labels,o)}};e.prototype.markUsed=function(){t.prototype.markUsed.call(this);this.jax.wrapperUsage.add(l.kind)};e.kind=s.MmlMlabeledtr.prototype.kind;e.styles={"mjx-mlabeledtr":{display:"table-row"},'mjx-mlabeledtr[rowalign="top"] > mjx-mtd':{"vertical-align":"top"},'mjx-mlabeledtr[rowalign="center"] > mjx-mtd':{"vertical-align":"middle"},'mjx-mlabeledtr[rowalign="bottom"] > mjx-mtd':{"vertical-align":"bottom"},'mjx-mlabeledtr[rowalign="baseline"] > mjx-mtd':{"vertical-align":"baseline"},'mjx-mlabeledtr[rowalign="axis"] > mjx-mtd':{"vertical-align":".25em"}};return e}((0,a.CommonMlabeledtrMixin)(l));e.CHTMLmlabeledtr=h},49821: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)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmunderover=e.CHTMLmover=e.CHTMLmunder=void 0;var n=r(21279);var o=r(62358);var a=r(62358);var s=r(62358);var l=r(46072);var h=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(e){if(this.hasMovableLimits()){t.prototype.toCHTML.call(this,e);this.adaptor.setAttribute(this.chtml,"limits","false");return}this.chtml=this.standardCHTMLnode(e);var r=this.adaptor.append(this.adaptor.append(this.chtml,this.html("mjx-row")),this.html("mjx-base"));var i=this.adaptor.append(this.adaptor.append(this.chtml,this.html("mjx-row")),this.html("mjx-under"));this.baseChild.toCHTML(r);this.scriptChild.toCHTML(i);var n=this.baseChild.getOuterBBox();var o=this.scriptChild.getOuterBBox();var a=this.getUnderKV(n,o)[0];var s=this.isLineBelow?0:this.getDelta(true);this.adaptor.setStyle(i,"paddingTop",this.em(a));this.setDeltaW([r,i],this.getDeltaW([n,o],[0,-s]));this.adjustUnderDepth(i,o)};e.kind=l.MmlMunder.prototype.kind;e.styles={"mjx-over":{"text-align":"left"},'mjx-munder:not([limits="false"])':{display:"inline-table"},"mjx-munder > mjx-row":{"text-align":"left"},"mjx-under":{"padding-bottom":".1em"}};return e}((0,o.CommonMunderMixin)(n.CHTMLmsub));e.CHTMLmunder=h;var c=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(e){if(this.hasMovableLimits()){t.prototype.toCHTML.call(this,e);this.adaptor.setAttribute(this.chtml,"limits","false");return}this.chtml=this.standardCHTMLnode(e);var r=this.adaptor.append(this.chtml,this.html("mjx-over"));var i=this.adaptor.append(this.chtml,this.html("mjx-base"));this.scriptChild.toCHTML(r);this.baseChild.toCHTML(i);var n=this.scriptChild.getOuterBBox();var o=this.baseChild.getOuterBBox();this.adjustBaseHeight(i,o);var a=this.getOverKU(o,n)[0];var s=this.isLineAbove?0:this.getDelta();this.adaptor.setStyle(r,"paddingBottom",this.em(a));this.setDeltaW([i,r],this.getDeltaW([o,n],[0,s]));this.adjustOverDepth(r,n)};e.kind=l.MmlMover.prototype.kind;e.styles={'mjx-mover:not([limits="false"])':{"padding-top":".1em"},'mjx-mover:not([limits="false"]) > *':{display:"block","text-align":"left"}};return e}((0,a.CommonMoverMixin)(n.CHTMLmsup));e.CHTMLmover=c;var u=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(e){if(this.hasMovableLimits()){t.prototype.toCHTML.call(this,e);this.adaptor.setAttribute(this.chtml,"limits","false");return}this.chtml=this.standardCHTMLnode(e);var r=this.adaptor.append(this.chtml,this.html("mjx-over"));var i=this.adaptor.append(this.adaptor.append(this.chtml,this.html("mjx-box")),this.html("mjx-munder"));var n=this.adaptor.append(this.adaptor.append(i,this.html("mjx-row")),this.html("mjx-base"));var o=this.adaptor.append(this.adaptor.append(i,this.html("mjx-row")),this.html("mjx-under"));this.overChild.toCHTML(r);this.baseChild.toCHTML(n);this.underChild.toCHTML(o);var a=this.overChild.getOuterBBox();var s=this.baseChild.getOuterBBox();var l=this.underChild.getOuterBBox();this.adjustBaseHeight(n,s);var h=this.getOverKU(s,a)[0];var c=this.getUnderKV(s,l)[0];var u=this.getDelta();this.adaptor.setStyle(r,"paddingBottom",this.em(h));this.adaptor.setStyle(o,"paddingTop",this.em(c));this.setDeltaW([n,o,r],this.getDeltaW([s,l,a],[0,this.isLineBelow?0:-u,this.isLineAbove?0:u]));this.adjustOverDepth(r,a);this.adjustUnderDepth(o,l)};e.prototype.markUsed=function(){t.prototype.markUsed.call(this);this.jax.wrapperUsage.add(n.CHTMLmsubsup.kind)};e.kind=l.MmlMunderover.prototype.kind;e.styles={'mjx-munderover:not([limits="false"])':{"padding-top":".1em"},'mjx-munderover:not([limits="false"]) > *':{display:"block"}};return e}((0,s.CommonMunderoverMixin)(n.CHTMLmsubsup));e.CHTMLmunderover=u},98526: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.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(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 o=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.")};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLscriptbase=void 0;var a=r(44614);var s=r(82197);var l=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){this.chtml=this.standardCHTMLnode(t);var e=n(this.getOffset(),2),r=e[0],i=e[1];var o=r-(this.baseRemoveIc?this.baseIc:0);var a={"vertical-align":this.em(i)};if(o){a["margin-left"]=this.em(o)}this.baseChild.toCHTML(this.chtml);this.scriptChild.toCHTML(this.adaptor.append(this.chtml,this.html("mjx-script",{style:a})))};e.prototype.setDeltaW=function(t,e){for(var r=0;r=0)return;this.adaptor.setStyle(t,"marginBottom",this.em(e.d*e.rscale))};e.prototype.adjustUnderDepth=function(t,e){var r,i;if(e.d>=0)return;var n=this.adaptor;var a=this.em(e.d);var s=this.html("mjx-box",{style:{"margin-bottom":a,"vertical-align":a}});try{for(var l=o(n.childNodes(n.firstChild(t))),h=l.next();!h.done;h=l.next()){var c=h.value;n.append(s,c)}}catch(u){r={error:u}}finally{try{if(h&&!h.done&&(i=l.return))i.call(l)}finally{if(r)throw r.error}}n.append(n.firstChild(t),s)};e.prototype.adjustBaseHeight=function(t,e){if(this.node.attributes.get("accent")){var r=this.font.params.x_height*e.scale;if(e.h0)&&!(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.CommonArrow=e.CommonDiagonalArrow=e.CommonDiagonalStrike=e.CommonBorder2=e.CommonBorder=e.arrowBBox=e.diagonalArrowDef=e.arrowDef=e.arrowBBoxW=e.arrowBBoxHD=e.arrowHead=e.fullBorder=e.fullPadding=e.fullBBox=e.sideNames=e.sideIndex=e.SOLID=e.PADDING=e.THICKNESS=e.ARROWY=e.ARROWDX=e.ARROWX=void 0;e.ARROWX=4,e.ARROWDX=1,e.ARROWY=2;e.THICKNESS=.067;e.PADDING=.2;e.SOLID=e.THICKNESS+"em solid";e.sideIndex={top:0,right:1,bottom:2,left:3};e.sideNames=Object.keys(e.sideIndex);e.fullBBox=function(t){return new Array(4).fill(t.thickness+t.padding)};e.fullPadding=function(t){return new Array(4).fill(t.padding)};e.fullBorder=function(t){return new Array(4).fill(t.thickness)};var i=function(t){return Math.max(t.padding,t.thickness*(t.arrowhead.x+t.arrowhead.dx+1))};e.arrowHead=i;var n=function(t,e){if(t.childNodes[0]){var r=t.childNodes[0].getBBox(),i=r.h,n=r.d;e[0]=e[2]=Math.max(0,t.thickness*t.arrowhead.y-(i+n)/2)}return e};e.arrowBBoxHD=n;var o=function(t,e){if(t.childNodes[0]){var r=t.childNodes[0].getBBox().w;e[1]=e[3]=Math.max(0,t.thickness*t.arrowhead.y-r/2)}return e};e.arrowBBoxW=o;e.arrowDef={up:[-Math.PI/2,false,true,"verticalstrike"],down:[Math.PI/2,false,true,"verticakstrike"],right:[0,false,false,"horizontalstrike"],left:[Math.PI,false,false,"horizontalstrike"],updown:[Math.PI/2,true,true,"verticalstrike uparrow downarrow"],leftright:[0,true,false,"horizontalstrike leftarrow rightarrow"]};e.diagonalArrowDef={updiagonal:[-1,0,false,"updiagonalstrike northeastarrow"],northeast:[-1,0,false,"updiagonalstrike updiagonalarrow"],southeast:[1,0,false,"downdiagonalstrike"],northwest:[1,Math.PI,false,"downdiagonalstrike"],southwest:[-1,Math.PI,false,"updiagonalstrike"],northeastsouthwest:[-1,0,true,"updiagonalstrike northeastarrow updiagonalarrow southwestarrow"],northwestsoutheast:[1,0,true,"downdiagonalstrike northwestarrow southeastarrow"]};e.arrowBBox={up:function(t){return(0,e.arrowBBoxW)(t,[(0,e.arrowHead)(t),0,t.padding,0])},down:function(t){return(0,e.arrowBBoxW)(t,[t.padding,0,(0,e.arrowHead)(t),0])},right:function(t){return(0,e.arrowBBoxHD)(t,[0,(0,e.arrowHead)(t),0,t.padding])},left:function(t){return(0,e.arrowBBoxHD)(t,[0,t.padding,0,(0,e.arrowHead)(t)])},updown:function(t){return(0,e.arrowBBoxW)(t,[(0,e.arrowHead)(t),0,(0,e.arrowHead)(t),0])},leftright:function(t){return(0,e.arrowBBoxHD)(t,[0,(0,e.arrowHead)(t),0,(0,e.arrowHead)(t)])}};var a=function(t){return function(r){var i=e.sideIndex[r];return[r,{renderer:t,bbox:function(t){var e=[0,0,0,0];e[i]=t.thickness+t.padding;return e},border:function(t){var e=[0,0,0,0];e[i]=t.thickness;return e}}]}};e.CommonBorder=a;var s=function(t){return function(r,i,n){var o=e.sideIndex[i];var a=e.sideIndex[n];return[r,{renderer:t,bbox:function(t){var e=t.thickness+t.padding;var r=[0,0,0,0];r[o]=r[a]=e;return r},border:function(t){var e=[0,0,0,0];e[o]=e[a]=t.thickness;return e},remove:i+" "+n}]}};e.CommonBorder2=s;var l=function(t){return function(r){var i="mjx-"+r.charAt(0)+"strike";return[r+"diagonalstrike",{renderer:t(i),bbox:e.fullBBox}]}};e.CommonDiagonalStrike=l;var h=function(t){return function(i){var n=r(e.diagonalArrowDef[i],4),o=n[0],a=n[1],s=n[2],l=n[3];return[i+"arrow",{renderer:function(e,i){var n=r(e.arrowAW(),2),l=n[0],h=n[1];var c=e.arrow(h,o*(l-a),s);t(e,c)},bbox:function(t){var e=t.arrowData(),i=e.a,n=e.x,o=e.y;var a=r([t.arrowhead.x,t.arrowhead.y,t.arrowhead.dx],3),s=a[0],l=a[1],h=a[2];var c=r(t.getArgMod(s+h,l),2),u=c[0],f=c[1];var p=o+(u>i?t.thickness*f*Math.sin(u-i):0);var d=n+(u>Math.PI/2-i?t.thickness*f*Math.sin(u+i-Math.PI/2):0);return[p,d,p,d]},remove:l}]}};e.CommonDiagonalArrow=h;var c=function(t){return function(i){var n=r(e.arrowDef[i],4),o=n[0],a=n[1],s=n[2],l=n[3];return[i+"arrow",{renderer:function(e,i){var n=e.getBBox(),l=n.w,h=n.h,c=n.d;var u=r(s?[h+c,"X"]:[l,"Y"],2),f=u[0],p=u[1];var d=e.getOffset(p);var y=e.arrow(f,o,a,p,d);t(e,y)},bbox:e.arrowBBox[i],remove:l}]}};e.CommonArrow=c},12222: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.__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.")};Object.defineProperty(e,"__esModule",{value:true});e.CommonOutputJax=void 0;var s=r(63380);var l=r(24971);var h=r(34981);var c=r(86810);var u=r(24161);var f=r(14454);var p=function(t){i(e,t);function e(e,r,i){if(e===void 0){e=null}if(r===void 0){r=null}if(i===void 0){i=null}var n=this;var a=o((0,h.separateOptions)(e,i.OPTIONS),2),s=a[0],l=a[1];n=t.call(this,s)||this;n.factory=n.options.wrapperFactory||new r;n.factory.jax=n;n.cssStyles=n.options.cssStyles||new f.CssStyles;n.font=n.options.font||new i(l);n.unknownCache=new Map;return n}e.prototype.typeset=function(t,e){this.setDocument(e);var r=this.createNode();this.toDOM(t,r,e);return r};e.prototype.createNode=function(){var t=this.constructor.NAME;return this.html("mjx-container",{class:"MathJax",jax:t})};e.prototype.setScale=function(t){var e=this.math.metrics.scale*this.options.scale;if(e!==1){this.adaptor.setStyle(t,"fontSize",(0,c.percent)(e))}};e.prototype.toDOM=function(t,e,r){if(r===void 0){r=null}this.setDocument(r);this.math=t;this.pxPerEm=t.metrics.ex/this.font.params.x_height;t.root.setTeXclass(null);this.setScale(e);this.nodeMap=new Map;this.container=e;this.processMath(t.root,e);this.nodeMap=null;this.executeFilters(this.postFilters,t,r,e)};e.prototype.getBBox=function(t,e){this.setDocument(e);this.math=t;t.root.setTeXclass(null);this.nodeMap=new Map;var r=this.factory.wrap(t.root).getOuterBBox();this.nodeMap=null;return r};e.prototype.getMetrics=function(t){var e,r;this.setDocument(t);var i=this.adaptor;var n=this.getMetricMaps(t);try{for(var o=a(t.math),s=o.next();!s.done;s=o.next()){var h=s.value;var c=i.parent(h.start.node);if(h.state()=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 l=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(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 h=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i600?"bold":"normal"}if(i.family){r=this.explicitVariant(i.family,i.weight,i.style)}else{if(this.node.getProperty("variantForm"))r="-tex-variant";r=(e.BOLDVARIANTS[i.weight]||{})[r]||r;r=(e.ITALICVARIANTS[i.style]||{})[r]||r}}this.variant=r};e.prototype.explicitVariant=function(t,e,r){var i=this.styles;if(!i)i=this.styles=new d.Styles;i.set("fontFamily",t);if(e)i.set("fontWeight",e);if(r)i.set("fontStyle",r);return"-explicitFont"};e.prototype.getScale=function(){var t=1,e=this.parent;var r=e?e.bbox.scale:1;var i=this.node.attributes;var n=Math.min(i.get("scriptlevel"),2);var o=i.get("fontsize");var a=this.node.isToken||this.node.isKind("mstyle")?i.get("mathsize"):i.getInherited("mathsize");if(n!==0){t=Math.pow(i.get("scriptsizemultiplier"),n);var s=this.length2em(i.get("scriptminsize"),.8,1);if(t0;this.bbox.L=i.isSet("lspace")?Math.max(0,this.length2em(i.get("lspace"))):b(n,t.lspace);this.bbox.R=i.isSet("rspace")?Math.max(0,this.length2em(i.get("rspace"))):b(n,t.rspace);var o=r.childIndex(e);if(o===0)return;var a=r.childNodes[o-1];if(!a.isEmbellished)return;var s=this.jax.nodeMap.get(a).getBBox();if(s.R){this.bbox.L=Math.max(0,this.bbox.L-s.R)}};e.prototype.getTeXSpacing=function(t,e){if(!e){var r=this.node.texSpacing();if(r){this.bbox.L=this.length2em(r)}}if(t||e){var i=this.node.coreMO().attributes;if(i.isSet("lspace")){this.bbox.L=Math.max(0,this.length2em(i.get("lspace")))}if(i.isSet("rspace")){this.bbox.R=Math.max(0,this.length2em(i.get("rspace")))}}};e.prototype.isTopEmbellished=function(){return this.node.isEmbellished&&!(this.node.parent&&this.node.parent.isEmbellished)};e.prototype.core=function(){return this.jax.nodeMap.get(this.node.core())};e.prototype.coreMO=function(){return this.jax.nodeMap.get(this.node.coreMO())};e.prototype.getText=function(){var t,e;var r="";if(this.node.isToken){try{for(var i=s(this.node.childNodes),n=i.next();!n.done;n=i.next()){var o=n.value;if(o instanceof u.TextNode){r+=o.getText()}}}catch(a){t={error:a}}finally{try{if(n&&!n.done&&(e=i.return))e.call(i)}finally{if(t)throw t.error}}}return r};e.prototype.canStretch=function(t){this.stretch=v.NOSTRETCH;if(this.node.isEmbellished){var e=this.core();if(e&&e.node!==this.node){if(e.canStretch(t)){this.stretch=e.stretch}}}return this.stretch.dir!==0};e.prototype.getAlignShift=function(){var t;var e=(t=this.node.attributes).getList.apply(t,h([],l(u.indentAttributes),false)),r=e.indentalign,i=e.indentshift,n=e.indentalignfirst,o=e.indentshiftfirst;if(n!=="indentalign"){r=n}if(r==="auto"){r=this.jax.options.displayAlign}if(o!=="indentshift"){i=o}if(i==="auto"){i=this.jax.options.displayIndent;if(r==="right"&&!i.match(/^\s*0[a-z]*\s*$/)){i=("-"+i.trim()).replace(/^--/,"")}}var a=this.length2em(i,this.metrics.containerWidth);return[r,a]};e.prototype.getAlignX=function(t,e,r){return r==="right"?t-(e.w+e.R)*e.rscale:r==="left"?e.L*e.rscale:(t-e.w*e.rscale)/2};e.prototype.getAlignY=function(t,e,r,i,n){return n==="top"?t-r:n==="bottom"?i-e:n==="center"?(t-r-(e-i))/2:0};e.prototype.getWrapWidth=function(t){return this.childNodes[t].getBBox().w};e.prototype.getChildAlign=function(t){return"left"};e.prototype.percent=function(t){return p.percent(t)};e.prototype.em=function(t){return p.em(t)};e.prototype.px=function(t,e){if(e===void 0){e=-p.BIGDIMEN}return p.px(t,e,this.metrics.em)};e.prototype.length2em=function(t,e,r){if(e===void 0){e=1}if(r===void 0){r=null}if(r===null){r=this.bbox.scale}return p.length2em(t,e,r,this.jax.pxPerEm)};e.prototype.unicodeChars=function(t,e){if(e===void 0){e=this.variant}var r=(0,f.unicodeChars)(t);var i=this.font.getVariant(e);if(i&&i.chars){var n=i.chars;r=r.map((function(t){return((n[t]||[])[3]||{}).smp||t}))}return r};e.prototype.remapChars=function(t){return t};e.prototype.mmlText=function(t){return this.node.factory.create("text").setText(t)};e.prototype.mmlNode=function(t,e,r){if(e===void 0){e={}}if(r===void 0){r=[]}return this.node.factory.create(t,e,r)};e.prototype.createMo=function(t){var e=this.node.factory;var r=e.create("text").setText(t);var i=e.create("mo",{stretchy:true},[r]);i.inheritAttributesFrom(this.node);var n=this.wrap(i);n.parent=this;return n};e.prototype.getVariantChar=function(t,e){var r=this.font.getChar(t,e)||[0,0,0,{unknown:true}];if(r.length===3){r[3]={}}return r};e.kind="unknown";e.styles={};e.removeStyles=["fontSize","fontFamily","fontWeight","fontStyle","fontVariant","font"];e.skipAttributes={fontfamily:true,fontsize:true,fontweight:true,fontstyle:true,color:true,background:true,class:true,href:true,style:true,xmlns:true};e.BOLDVARIANTS={bold:{normal:"bold",italic:"bold-italic",fraktur:"bold-fraktur",script:"bold-script","sans-serif":"bold-sans-serif","sans-serif-italic":"sans-serif-bold-italic"},normal:{bold:"normal","bold-italic":"italic","bold-fraktur":"fraktur","bold-script":"script","bold-sans-serif":"sans-serif","sans-serif-bold-italic":"sans-serif-italic"}};e.ITALICVARIANTS={italic:{normal:"italic",bold:"bold-italic","sans-serif":"sans-serif-italic","bold-sans-serif":"sans-serif-bold-italic"},normal:{italic:"normal","bold-italic":"bold","sans-serif-italic":"sans-serif","sans-serif-bold-italic":"bold-sans-serif"}};return e}(c.AbstractWrapper);e.CommonWrapper=g},36483: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)}}();Object.defineProperty(e,"__esModule",{value:true});e.CommonWrapperFactory=void 0;var n=r(49294);var o=function(t){i(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e.jax=null;return e}Object.defineProperty(e.prototype,"Wrappers",{get:function(){return this.node},enumerable:false,configurable:true});e.defaultNodes={};return e}(n.AbstractWrapperFactory);e.CommonWrapperFactory=o},65735: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)}}();Object.defineProperty(e,"__esModule",{value:true});e.CommonTeXAtomMixin=void 0;var n=r(80747);function o(t){return function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.computeBBox=function(e,r){if(r===void 0){r=false}t.prototype.computeBBox.call(this,e,r);if(this.childNodes[0]&&this.childNodes[0].bbox.ic){e.ic=this.childNodes[0].bbox.ic}if(this.node.texClass===n.TEXCLASS.VCENTER){var i=e.h,o=e.d;var a=this.font.params.axis_height;var s=(i+o)/2+a-i;e.h+=s;e.d-=s}};return e}(t)}e.CommonTeXAtomMixin=o},87120:function(t,e){var r=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 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.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(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.CommonTextNodeMixin=void 0;function o(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.computeBBox=function(t,e){var r,o;if(e===void 0){e=false}var a=this.parent.variant;var s=this.node.getText();if(a==="-explicitFont"){var l=this.jax.getFontData(this.parent.styles);var h=this.jax.measureText(s,a,l),c=h.w,u=h.h,f=h.d;t.h=u;t.d=f;t.w=c}else{var p=this.remappedText(s,a);t.empty();try{for(var d=i(p),y=d.next();!y.done;y=d.next()){var v=y.value;var m=n(this.getVariantChar(a,v),4),u=m[0],f=m[1],c=m[2],b=m[3];if(b.unknown){var g=this.jax.measureText(String.fromCodePoint(v),a);c=g.w;u=g.h;f=g.d}t.w+=c;if(u>t.h)t.h=u;if(f>t.d)t.d=f;t.ic=b.ic||0;t.sk=b.sk||0;t.dx=b.dx||0}}catch(x){r={error:x}}finally{try{if(y&&!y.done&&(o=d.return))o.call(d)}finally{if(r)throw r.error}}if(p.length>1){t.sk=0}t.clean()}};e.prototype.remappedText=function(t,e){var r=this.parent.stretch.c;return r?[r]:this.parent.remapChars(this.unicodeChars(t,e))};e.prototype.getStyles=function(){};e.prototype.getVariant=function(){};e.prototype.getScale=function(){};e.prototype.getSpace=function(){};return e}(t)}e.CommonTextNodeMixin=o},55210: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.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(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 o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i0)&&!(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 l=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;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.")};Object.defineProperty(e,"__esModule",{value:true});e.CommonMencloseMixin=void 0;var c=a(r(37626));var u=r(41278);function f(t){return function(t){i(e,t);function e(){var e=[];for(var r=0;r.001?a:0};e.prototype.getArgMod=function(t,e){return[Math.atan2(e,t),Math.sqrt(t*t+e*e)]};e.prototype.arrow=function(t,e,r,i,n){if(i===void 0){i=""}if(n===void 0){n=0}return null};e.prototype.arrowData=function(){var t=s([this.padding,this.thickness],2),e=t[0],r=t[1];var i=r*(this.arrowhead.x+Math.max(1,this.arrowhead.dx));var n=this.childNodes[0].getBBox(),o=n.h,a=n.d,l=n.w;var h=o+a;var c=Math.sqrt(h*h+l*l);var u=Math.max(e,i*l/c);var f=Math.max(e,i*h/c);var p=s(this.getArgMod(l+2*u,h+2*f),2),d=p[0],y=p[1];return{a:d,W:y,x:u,y:f}};e.prototype.arrowAW=function(){var t=this.childNodes[0].getBBox(),e=t.h,r=t.d,i=t.w;var n=s(this.TRBL,4),o=n[0],a=n[1],l=n[2],h=n[3];return this.getArgMod(h+i+a,o+e+r+l)};e.prototype.createMsqrt=function(t){var e=this.node.factory;var r=e.create("msqrt");r.inheritAttributesFrom(this.node);r.childNodes[0]=t.node;var i=this.wrap(r);i.parent=this;return i};e.prototype.sqrtTRBL=function(){var t=this.msqrt.getBBox();var e=this.msqrt.childNodes[0].getBBox();return[t.h-e.h,0,t.d-e.d,t.w-e.w]};return e}(t)}e.CommonMencloseMixin=f},36639:function(t,e){var r=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 i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(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 n=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;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.")};Object.defineProperty(e,"__esModule",{value:true});e.CommonMfencedMixin=void 0;function a(t){return function(t){r(e,t);function e(){var e=[];for(var r=0;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 n=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i0)&&!(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 n=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i0)&&!(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 o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;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.")};Object.defineProperty(e,"__esModule",{value:true});e.CommonMmultiscriptsMixin=e.ScriptNames=e.NextScript=void 0;var s=r(58340);e.NextScript={base:"subList",subList:"supList",supList:"subList",psubList:"psupList",psupList:"psubList"};e.ScriptNames=["sup","sup","psup","psub"];function l(t){return function(t){i(r,t);function r(){var e=[];for(var r=0;re.length){e.push(s.BBox.empty())}};r.prototype.combineBBoxLists=function(t,e,r,i){for(var o=0;ot.h)t.h=l;if(h>t.d)t.d=h;if(f>e.h)e.h=f;if(p>e.d)e.d=p}};r.prototype.getScaledWHD=function(t){var e=t.w,r=t.h,i=t.d,n=t.rscale;return[e*n,r*n,i*n]};r.prototype.getUVQ=function(e,r){var i;if(!this.UVQ){var o=n([0,0,0],3),a=o[0],s=o[1],l=o[2];if(e.h===0&&e.d===0){a=this.getU()}else if(r.h===0&&r.d===0){a=-this.getV()}else{i=n(t.prototype.getUVQ.call(this,e,r),3),a=i[0],s=i[1],l=i[2]}this.UVQ=[a,s,l]}return this.UVQ};return r}(t)}e.CommonMmultiscriptsMixin=l},53228:function(t,e){var r=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)}}();Object.defineProperty(e,"__esModule",{value:true});e.CommonMnMixin=void 0;function i(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.remapChars=function(t){if(t.length){var e=this.font.getRemappedChar("mn",t[0]);if(e){var r=this.unicodeChars(e,this.variant);if(r.length===1){t[0]=r[0]}else{t=r.concat(t.slice(1))}}}return t};return e}(t)}e.CommonMnMixin=i},61331: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.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;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 l;Object.defineProperty(e,"__esModule",{value:true});e.CommonMoMixin=e.DirectionVH=void 0;var h=r(58340);var c=r(41278);var u=r(30861);e.DirectionVH=(l={},l[1]="v",l[2]="h",l);function f(t){return function(t){i(e,t);function e(){var e=[];for(var r=0;r=0)){t.w=0}};e.prototype.protoBBox=function(e){var r=this.stretch.dir!==0;if(r&&this.size===null){this.getStretchedVariant([0])}if(r&&this.size<0)return;t.prototype.computeBBox.call(this,e);this.copySkewIC(e)};e.prototype.getAccentOffset=function(){var t=h.BBox.empty();this.protoBBox(t);return-t.w/2};e.prototype.getCenterOffset=function(e){if(e===void 0){e=null}if(!e){e=h.BBox.empty();t.prototype.computeBBox.call(this,e)}return(e.h+e.d)/2+this.font.params.axis_height-e.h};e.prototype.getVariant=function(){if(this.node.attributes.get("largeop")){this.variant=this.node.attributes.get("displaystyle")?"-largeop":"-smallop";return}if(!this.node.attributes.getExplicit("mathvariant")&&this.node.getProperty("pseudoscript")===false){this.variant="-tex-variant";return}t.prototype.getVariant.call(this)};e.prototype.canStretch=function(t){if(this.stretch.dir!==0){return this.stretch.dir===t}var e=this.node.attributes;if(!e.get("stretchy"))return false;var r=this.getText();if(Array.from(r).length!==1)return false;var i=this.font.getDelimiter(r.codePointAt(0));this.stretch=i&&i.dir===t?i:u.NOSTRETCH;return this.stretch.dir!==0};e.prototype.getStretchedVariant=function(t,e){var r,i;if(e===void 0){e=false}if(this.stretch.dir!==0){var o=this.getWH(t);var a=this.getSize("minsize",0);var l=this.getSize("maxsize",Infinity);var h=this.node.getProperty("mathaccent");o=Math.max(a,Math.min(l,o));var c=this.font.params.delimiterfactor/1e3;var u=this.font.params.delimitershortfall;var f=a||e?o:h?Math.min(o/c,o+u):Math.max(o*c,o-u);var p=this.stretch;var d=p.c||this.getText().codePointAt(0);var y=0;if(p.sizes){try{for(var v=s(p.sizes),m=v.next();!m.done;m=v.next()){var b=m.value;if(b>=f){if(h&&y){y--}this.variant=this.font.getSizeVariant(d,y);this.size=y;if(p.schar&&p.schar[y]){this.stretch=n(n({},this.stretch),{c:p.schar[y]})}return}y++}}catch(g){r={error:g}}finally{try{if(m&&!m.done&&(i=v.return))i.call(v)}finally{if(r)throw r.error}}}if(p.stretch){this.size=-1;this.invalidateBBox();this.getStretchBBox(t,this.checkExtendedHeight(o,p),p)}else{this.variant=this.font.getSizeVariant(d,y-1);this.size=y-1}}};e.prototype.getSize=function(t,e){var r=this.node.attributes;if(r.isSet(t)){e=this.length2em(r.get(t),1,1)}return e};e.prototype.getWH=function(t){if(t.length===0)return 0;if(t.length===1)return t[0];var e=o(t,2),r=e[0],i=e[1];var n=this.font.params.axis_height;return this.node.attributes.get("symmetric")?2*Math.max(r-n,i+n):r+i};e.prototype.getStretchBBox=function(t,e,r){var i;if(r.hasOwnProperty("min")&&r.min>e){e=r.min}var n=o(r.HDW,3),a=n[0],s=n[1],l=n[2];if(this.stretch.dir===1){i=o(this.getBaseline(t,e,r),2),a=i[0],s=i[1]}else{l=e}this.bbox.h=a;this.bbox.d=s;this.bbox.w=l};e.prototype.getBaseline=function(t,e,r){var i=t.length===2&&t[0]+t[1]===e;var n=this.node.attributes.get("symmetric");var a=o(i?t:[e,0],2),s=a[0],l=a[1];var h=o([s+l,0],2),c=h[0],u=h[1];if(n){var f=this.font.params.axis_height;if(i){c=2*Math.max(s-f,l+f)}u=c/2-f}else if(i){u=l}else{var p=o(r.HDW||[.75,.25],2),d=p[0],y=p[1];u=y*(c/(d+y))}return[c-u,u]};e.prototype.checkExtendedHeight=function(t,e){if(e.fullExt){var r=o(e.fullExt,2),i=r[0],n=r[1];var a=Math.ceil(Math.max(0,t-n)/i);t=n+a*i}return t};e.prototype.remapChars=function(t){var e=this.node.getProperty("primes");if(e){return(0,c.unicodeChars)(e)}if(t.length===1){var r=this.node.coreParent().parent;var i=this.isAccent&&!r.isKind("mrow");var n=i?"accent":"mo";var o=this.font.getRemappedChar(n,t[0]);if(o){t=this.unicodeChars(o,this.variant)}}return t};return e}(t)}e.CommonMoMixin=f},95522:function(t,e){var r=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 i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(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.CommonMpaddedMixin=void 0;function n(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.getDimens=function(){var t=this.node.attributes.getList("width","height","depth","lspace","voffset");var e=this.childNodes[0].getBBox();var r=e.w,i=e.h,n=e.d;var o=r,a=i,s=n,l=0,h=0,c=0;if(t.width!=="")r=this.dimen(t.width,e,"w",0);if(t.height!=="")i=this.dimen(t.height,e,"h",0);if(t.depth!=="")n=this.dimen(t.depth,e,"d",0);if(t.voffset!=="")h=this.dimen(t.voffset,e);if(t.lspace!=="")l=this.dimen(t.lspace,e);var u=this.node.attributes.get("data-align");if(u){c=this.getAlignX(r,e,u)}return[a,s,o,i-a,n-s,r-o,l,h,c]};e.prototype.dimen=function(t,e,r,i){if(r===void 0){r=""}if(i===void 0){i=null}t=String(t);var n=t.match(/width|height|depth/);var o=n?e[n[0].charAt(0)]:r?e[r]:0;var a=this.length2em(t,o)||0;if(t.match(/^[-+]/)&&r){a+=o}if(i!=null){a=Math.max(i,a)}return a};e.prototype.computeBBox=function(t,e){if(e===void 0){e=false}var r=i(this.getDimens(),6),n=r[0],o=r[1],a=r[2],s=r[3],l=r[4],h=r[5];t.w=a+h;t.h=n+s;t.d=o+l;this.setChildPWidths(e,t.w)};e.prototype.getWrapWidth=function(t){return this.getBBox().w};e.prototype.getChildAlign=function(t){return this.node.attributes.get("data-align")||"left"};return e}(t)}e.CommonMpaddedMixin=n},23692:function(t,e){var r=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)}}();Object.defineProperty(e,"__esModule",{value:true});e.CommonMrootMixin=void 0;function i(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"surd",{get:function(){return 2},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"root",{get:function(){return 1},enumerable:false,configurable:true});e.prototype.combineRootBBox=function(t,e,r){var i=this.childNodes[this.root].getOuterBBox();var n=this.getRootDimens(e,r)[1];t.combine(i,0,n)};e.prototype.getRootDimens=function(t,e){var r=this.childNodes[this.surd];var i=this.childNodes[this.root].getOuterBBox();var n=(r.size<0?.5:.6)*t.w;var o=i.w,a=i.rscale;var s=Math.max(o,n/a);var l=Math.max(0,s-o);var h=this.rootHeight(i,t,r.size,e);var c=s*a-n;return[c,h,l]};e.prototype.rootHeight=function(t,e,r,i){var n=e.h+e.d;var o=(r<0?1.9:.55*n)-(n-i);return o+Math.max(0,t.d*t.rscale)};return e}(t)}e.CommonMrootMixin=i},54114: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.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(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 o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;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.")};Object.defineProperty(e,"__esModule",{value:true});e.CommonInferredMrowMixin=e.CommonMrowMixin=void 0;var s=r(58340);function l(t){return function(t){i(e,t);function e(){var e,r;var i=[];for(var l=0;l1){var p=0,d=0;var y=u>1&&u===f;try{for(var v=a(this.childNodes),m=v.next();!m.done;m=v.next()){var c=m.value;var b=c.stretch.dir===0;if(y||b){var g=c.getOuterBBox(b),x=g.h,w=g.d,_=g.rscale;x*=_;w*=_;if(x>p)p=x;if(w>d)d=w}}}catch(S){r={error:S}}finally{try{if(m&&!m.done&&(i=v.return))i.call(v)}finally{if(r)throw r.error}}try{for(var M=a(s),j=M.next();!j.done;j=M.next()){var c=j.value;c.coreMO().getStretchedVariant([p,d])}}catch(O){n={error:O}}finally{try{if(j&&!j.done&&(o=M.return))o.call(M)}finally{if(n)throw n.error}}}};return e}(t)}e.CommonMrowMixin=l;function h(t){return function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.getScale=function(){this.bbox.scale=this.parent.bbox.scale;this.bbox.rscale=1};return e}(t)}e.CommonInferredMrowMixin=h},95151:function(t,e){var r=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 i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(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 n=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i0)&&!(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 o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;ithis.surdH?(t.h+t.d-(this.surdH-2*e-r/2))/2:e+r/4;return[r,i]};e.prototype.getRootDimens=function(t,e){return[0,0,0,0]};return e}(t)}e.CommonMsqrtMixin=s},64418:function(t,e){var r=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 i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(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.CommonMsubsupMixin=e.CommonMsupMixin=e.CommonMsubMixin=void 0;function n(t){var e;return e=function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.sub]},enumerable:false,configurable:true});e.prototype.getOffset=function(){return[0,-this.getV()]};return e}(t),e.useIC=false,e}e.CommonMsubMixin=n;function o(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.sup]},enumerable:false,configurable:true});e.prototype.getOffset=function(){var t=this.getAdjustedIc()-(this.baseRemoveIc?0:this.baseIc);return[t,this.getU()]};return e}(t)}e.CommonMsupMixin=o;function a(t){var e;return e=function(t){r(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e.UVQ=null;return e}Object.defineProperty(e.prototype,"subChild",{get:function(){return this.childNodes[this.node.sub]},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"supChild",{get:function(){return this.childNodes[this.node.sup]},enumerable:false,configurable:true});e.prototype.computeBBox=function(t,e){if(e===void 0){e=false}var r=this.baseChild.getOuterBBox();var n=i([this.subChild.getOuterBBox(),this.supChild.getOuterBBox()],2),o=n[0],a=n[1];t.empty();t.append(r);var s=this.getBaseWidth();var l=this.getAdjustedIc();var h=i(this.getUVQ(),2),c=h[0],u=h[1];t.combine(o,s,u);t.combine(a,s+l,c);t.w+=this.font.params.scriptspace;t.clean();this.setChildPWidths(e)};e.prototype.getUVQ=function(t,e){if(t===void 0){t=this.subChild.getOuterBBox()}if(e===void 0){e=this.supChild.getOuterBBox()}var r=this.baseCore.getOuterBBox();if(this.UVQ)return this.UVQ;var n=this.font.params;var o=3*n.rule_thickness;var a=this.length2em(this.node.attributes.get("subscriptshift"),n.sub2);var s=this.baseCharZero(r.d*this.baseScale+n.sub_drop*t.rscale);var l=i([this.getU(),Math.max(s,a)],2),h=l[0],c=l[1];var u=h-e.d*e.rscale-(t.h*t.rscale-c);if(u0){h+=f;c-=f}}h=Math.max(this.length2em(this.node.attributes.get("superscriptshift"),h),h);c=Math.max(this.length2em(this.node.attributes.get("subscriptshift"),c),c);u=h-e.d*e.rscale-(t.h*t.rscale-c);this.UVQ=[h,-c,u];return this.UVQ};return e}(t),e.useIC=false,e}e.CommonMsubsupMixin=a},70078: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.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(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 o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;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.")};Object.defineProperty(e,"__esModule",{value:true});e.CommonMtableMixin=void 0;var s=r(58340);var l=r(41278);var h=r(19468);function c(t){return function(t){i(e,t);function e(){var e=[];for(var r=0;r1){if(e===null){e=0;var m=y>1&&y===v;try{for(var b=a(this.tableRows),g=b.next();!g.done;g=b.next()){var f=g.value;var p=f.getChild(t);if(p){var d=p.childNodes[0];var x=d.stretch.dir===0;if(m||x){var w=d.getBBox(x).w;if(w>e){e=w}}}}}catch(C){n={error:C}}finally{try{if(g&&!g.done&&(o=b.return))o.call(b)}finally{if(n)throw n.error}}}try{for(var _=a(h),M=_.next();!M.done;M=_.next()){var d=M.value;d.coreMO().getStretchedVariant([e])}}catch(S){s={error:S}}finally{try{if(M&&!M.done&&(l=_.return))l.call(_)}finally{if(s)throw s.error}}}};e.prototype.getTableData=function(){if(this.data){return this.data}var t=new Array(this.numRows).fill(0);var e=new Array(this.numRows).fill(0);var r=new Array(this.numCols).fill(0);var i=new Array(this.numRows);var n=new Array(this.numRows);var o=[0];var a=this.tableRows;for(var s=0;sn[r])n[r]=h;if(c>o[r])o[r]=c;if(p>s)s=p;if(a&&u>a[e])a[e]=u;return s};e.prototype.extendHD=function(t,e,r,i){var n=(i-(e[t]+r[t]))/2;if(n<1e-5)return;e[t]+=n;r[t]+=n};e.prototype.recordPWidthCell=function(t,e){if(t.childNodes[0]&&t.childNodes[0].getBBox().pwidth){this.pwidthCells.push([t,e])}};e.prototype.computeBBox=function(t,e){if(e===void 0){e=false}var r=this.getTableData(),i=r.H,o=r.D;var a,s;if(this.node.attributes.get("equalrows")){var c=this.getEqualRowHeight();a=(0,h.sum)([].concat(this.rLines,this.rSpace))+c*this.numRows}else{a=(0,h.sum)(i.concat(o,this.rLines,this.rSpace))}a+=2*(this.fLine+this.fSpace[1]);var u=this.getComputedWidths();s=(0,h.sum)(u.concat(this.cLines,this.cSpace))+2*(this.fLine+this.fSpace[0]);var f=this.node.attributes.get("width");if(f!=="auto"){s=Math.max(this.length2em(f,0)+2*this.fLine,s)}var p=n(this.getBBoxHD(a),2),d=p[0],y=p[1];t.h=d;t.d=y;t.w=s;var v=n(this.getBBoxLR(),2),m=v[0],b=v[1];t.L=m;t.R=b;if(!(0,l.isPercent)(f)){this.setColumnPWidths()}};e.prototype.setChildPWidths=function(t,e,r){var i=this.node.attributes.get("width");if(!(0,l.isPercent)(i))return false;if(!this.hasLabels){this.bbox.pwidth="";this.container.bbox.pwidth=""}var n=this.bbox,o=n.w,a=n.L,s=n.R;var c=this.node.attributes.get("data-width-includes-label");var u=Math.max(o,this.length2em(i,Math.max(e,a+o+s)))-(c?a+s:0);var f=this.node.attributes.get("equalcolumns")?Array(this.numCols).fill(this.percent(1/Math.max(1,this.numCols))):this.getColumnAttributes("columnwidth",0);this.cWidths=this.getColumnWidthsFixed(f,u);var p=this.getComputedWidths();this.pWidth=(0,h.sum)(p.concat(this.cLines,this.cSpace))+2*(this.fLine+this.fSpace[0]);if(this.isTop){this.bbox.w=this.pWidth}this.setColumnPWidths();if(this.pWidth!==o){this.parent.invalidateBBox()}return this.pWidth!==o};e.prototype.setColumnPWidths=function(){var t,e;var r=this.cWidths;try{for(var i=a(this.pwidthCells),o=i.next();!o.done;o=i.next()){var s=n(o.value,2),l=s[0],h=s[1];if(l.setChildPWidths(false,r[h])){l.invalidateBBox();l.getBBox()}}}catch(c){t={error:c}}finally{try{if(o&&!o.done&&(e=i.return))e.call(i)}finally{if(t)throw t.error}}};e.prototype.getBBoxHD=function(t){var e=n(this.getAlignmentRow(),2),r=e[0],i=e[1];if(i===null){var o=this.font.params.axis_height;var a=t/2;var s={top:[0,t],center:[a,a],bottom:[t,0],baseline:[a,a],axis:[a+o,a-o]};return s[r]||[a,a]}else{var l=this.getVerticalPosition(i,r);return[l,t-l]}};e.prototype.getBBoxLR=function(){if(this.hasLabels){var t=this.node.attributes;var e=t.get("side");var r=n(this.getPadAlignShift(e),2),i=r[0],o=r[1];var a=this.hasLabels&&!!t.get("data-width-includes-label");if(a&&this.frame&&this.fSpace[0]){i-=this.fSpace[0]}return o==="center"&&!a?[i,i]:e==="left"?[i,0]:[0,i]}return[0,0]};e.prototype.getPadAlignShift=function(t){var e=this.getTableData().L;var r=this.length2em(this.node.attributes.get("minlabelspacing"));var i=e+r;var o=n(this.styles==null?["",""]:[this.styles.get("padding-left"),this.styles.get("padding-right")],2),a=o[0],s=o[1];if(a||s){i=Math.max(i,this.length2em(a||"0"),this.length2em(s||"0"))}var l=n(this.getAlignShift(),2),h=l[0],c=l[1];if(h===t){c=t==="left"?Math.max(i,c)-i:Math.min(-i,c)+i}return[i,h,c]};e.prototype.getAlignShift=function(){return this.isTop?t.prototype.getAlignShift.call(this):[this.container.getChildAlign(this.containerI),0]};e.prototype.getWidth=function(){return this.pWidth||this.getBBox().w};e.prototype.getEqualRowHeight=function(){var t=this.getTableData(),e=t.H,r=t.D;var i=Array.from(e.keys()).map((function(t){return e[t]+r[t]}));return Math.max.apply(Math,i)};e.prototype.getComputedWidths=function(){var t=this;var e=this.getTableData().W;var r=Array.from(e.keys()).map((function(r){return typeof t.cWidths[r]==="number"?t.cWidths[r]:e[r]}));if(this.node.attributes.get("equalcolumns")){r=Array(r.length).fill((0,h.max)(r))}return r};e.prototype.getColumnWidths=function(){var t=this.node.attributes.get("width");if(this.node.attributes.get("equalcolumns")){return this.getEqualColumns(t)}var e=this.getColumnAttributes("columnwidth",0);if(t==="auto"){return this.getColumnWidthsAuto(e)}if((0,l.isPercent)(t)){return this.getColumnWidthsPercent(e)}return this.getColumnWidthsFixed(e,this.length2em(t))};e.prototype.getEqualColumns=function(t){var e=Math.max(1,this.numCols);var r;if(t==="auto"){var i=this.getTableData().W;r=(0,h.max)(i)}else if((0,l.isPercent)(t)){r=this.percent(1/e)}else{var n=(0,h.sum)([].concat(this.cLines,this.cSpace))+2*this.fSpace[0];r=Math.max(0,this.length2em(t)-n)/e}return Array(this.numCols).fill(r)};e.prototype.getColumnWidthsAuto=function(t){var e=this;return t.map((function(t){if(t==="auto"||t==="fit")return null;if((0,l.isPercent)(t))return t;return e.length2em(t)}))};e.prototype.getColumnWidthsPercent=function(t){var e=this;var r=t.indexOf("fit")>=0;var i=(r?this.getTableData():{W:null}).W;return Array.from(t.keys()).map((function(n){var o=t[n];if(o==="fit")return null;if(o==="auto")return r?i[n]:null;if((0,l.isPercent)(o))return o;return e.length2em(o)}))};e.prototype.getColumnWidthsFixed=function(t,e){var r=this;var i=Array.from(t.keys());var n=i.filter((function(e){return t[e]==="fit"}));var o=i.filter((function(e){return t[e]==="auto"}));var a=n.length||o.length;var s=(a?this.getTableData():{W:null}).W;var l=e-(0,h.sum)([].concat(this.cLines,this.cSpace))-2*this.fSpace[0];var c=l;i.forEach((function(e){var i=t[e];c-=i==="fit"||i==="auto"?s[e]:r.length2em(i,l)}));var u=a&&c>0?c/a:0;return i.map((function(e){var i=t[e];if(i==="fit")return s[e]+u;if(i==="auto")return s[e]+(n.length===0?u:0);return r.length2em(i,l)}))};e.prototype.getVerticalPosition=function(t,e){var r=this.node.attributes.get("equalrows");var i=this.getTableData(),o=i.H,a=i.D;var s=r?this.getEqualRowHeight():0;var l=this.getRowHalfSpacing();var h=this.fLine;for(var c=0;cthis.numRows?null:i-1]};e.prototype.getColumnAttributes=function(t,e){if(e===void 0){e=1}var r=this.numCols-e;var i=this.getAttributeArray(t);if(i.length===0)return null;while(i.lengthr){i.splice(r)}return i};e.prototype.getRowAttributes=function(t,e){if(e===void 0){e=1}var r=this.numRows-e;var i=this.getAttributeArray(t);if(i.length===0)return null;while(i.lengthr){i.splice(r)}return i};e.prototype.getAttributeArray=function(t){var e=this.node.attributes.get(t);if(!e)return[this.node.attributes.getDefault(t)];return(0,l.split)(e)};e.prototype.addEm=function(t,e){var r=this;if(e===void 0){e=1}if(!t)return null;return t.map((function(t){return r.em(t/e)}))};e.prototype.convertLengths=function(t){var e=this;if(!t)return null;return t.map((function(t){return e.length2em(t)}))};return e}(t)}e.CommonMtableMixin=c},8256:function(t,e){var r=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)}}();Object.defineProperty(e,"__esModule",{value:true});e.CommonMtdMixin=void 0;function i(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"fixesPWidth",{get:function(){return false},enumerable:false,configurable:true});e.prototype.invalidateBBox=function(){this.bboxComputed=false};e.prototype.getWrapWidth=function(t){var e=this.parent.parent;var r=this.parent;var i=this.node.childPosition()-(r.labeled?1:0);return typeof e.cWidths[i]==="number"?e.cWidths[i]:e.getTableData().W[i]};e.prototype.getChildAlign=function(t){return this.node.attributes.get("columnalign")};return e}(t)}e.CommonMtdMixin=i},80648:function(t,e){var r=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)}}();Object.defineProperty(e,"__esModule",{value:true});e.CommonMtextMixin=void 0;function i(t){var e;return e=function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.getVariant=function(){var e=this.jax.options;var r=this.jax.math.outputData;var i=(!!r.merrorFamily||!!e.merrorFont)&&this.node.Parent.isKind("merror");if(!!r.mtextFamily||!!e.mtextFont||i){var n=this.node.attributes.get("mathvariant");var o=this.constructor.INHERITFONTS[n]||this.jax.font.getCssFont(n);var a=o[0]||(i?r.merrorFamily||e.merrorFont:r.mtextFamily||e.mtextFont);this.variant=this.explicitVariant(a,o[2]?"bold":"",o[1]?"italic":"");return}t.prototype.getVariant.call(this)};return e}(t),e.INHERITFONTS={normal:["",false,false],bold:["",false,true],italic:["",true,false],"bold-italic":["",true,true]},e}e.CommonMtextMixin=i},8518:function(t,e){var r=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 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.")};Object.defineProperty(e,"__esModule",{value:true});e.CommonMlabeledtrMixin=e.CommonMtrMixin=void 0;function n(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"fixesPWidth",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"numCells",{get:function(){return this.childNodes.length},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"labeled",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"tableCells",{get:function(){return this.childNodes},enumerable:false,configurable:true});e.prototype.getChild=function(t){return this.childNodes[t]};e.prototype.getChildBBoxes=function(){return this.childNodes.map((function(t){return t.getBBox()}))};e.prototype.stretchChildren=function(t){var e,r,n,o,a,s;if(t===void 0){t=null}var l=[];var h=this.labeled?this.childNodes.slice(1):this.childNodes;try{for(var c=i(h),u=c.next();!u.done;u=c.next()){var f=u.value;var p=f.childNodes[0];if(p.canStretch(1)){l.push(p)}}}catch(O){e={error:O}}finally{try{if(u&&!u.done&&(r=c.return))r.call(c)}finally{if(e)throw e.error}}var d=l.length;var y=this.childNodes.length;if(d&&y>1){if(t===null){var v=0,m=0;var b=d>1&&d===y;try{for(var g=i(h),x=g.next();!x.done;x=g.next()){var f=x.value;var p=f.childNodes[0];var w=p.stretch.dir===0;if(b||w){var _=p.getBBox(w),M=_.h,j=_.d;if(M>v){v=M}if(j>m){m=j}}}}catch(T){n={error:T}}finally{try{if(x&&!x.done&&(o=g.return))o.call(g)}finally{if(n)throw n.error}}t=[v,m]}try{for(var C=i(l),S=C.next();!S.done;S=C.next()){var p=S.value;p.coreMO().getStretchedVariant(t)}}catch(B){a={error:B}}finally{try{if(S&&!S.done&&(s=C.return))s.call(C)}finally{if(a)throw a.error}}}};return e}(t)}e.CommonMtrMixin=n;function o(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"numCells",{get:function(){return Math.max(0,this.childNodes.length-1)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"labeled",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"tableCells",{get:function(){return this.childNodes.slice(1)},enumerable:false,configurable:true});e.prototype.getChild=function(t){return this.childNodes[t+1]};e.prototype.getChildBBoxes=function(){return this.childNodes.slice(1).map((function(t){return t.getBBox()}))};return e}(t)}e.CommonMlabeledtrMixin=o},62358:function(t,e){var r=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 i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(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 n=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i0)&&!(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 o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;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.")};Object.defineProperty(e,"__esModule",{value:true});e.CommonScriptbaseMixin=void 0;var s=r(80747);function l(t){var e;return e=function(t){i(e,t);function e(){var e=[];for(var r=0;r1){var p=0;var d=u>1&&u===f;try{for(var y=a(this.childNodes),v=y.next();!v.done;v=y.next()){var c=v.value;var m=c.stretch.dir===0;if(d||m){var b=c.getOuterBBox(m),g=b.w,x=b.rscale;if(g*x>p)p=g*x}}}catch(j){r={error:j}}finally{try{if(v&&!v.done&&(i=y.return))i.call(y)}finally{if(r)throw r.error}}try{for(var w=a(s),_=w.next();!_.done;_=w.next()){var c=_.value;c.coreMO().getStretchedVariant([p/c.bbox.rscale])}}catch(C){n={error:C}}finally{try{if(_&&!_.done&&(o=w.return))o.call(w)}finally{if(n)throw n.error}}}};return e}(t),e.useIC=true,e}e.CommonScriptbaseMixin=l},32482:function(t,e){var r=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)}}();Object.defineProperty(e,"__esModule",{value:true});e.CommonSemanticsMixin=void 0;function i(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.computeBBox=function(t,e){if(e===void 0){e=false}if(this.childNodes.length){var r=this.childNodes[0].getBBox(),i=r.w,n=r.h,o=r.d;t.w=i;t.h=n;t.d=o}};return e}(t)}e.CommonSemanticsMixin=i},58340:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:true});e.BBox=void 0;var i=r(86810);var n=function(){function t(t){if(t===void 0){t={w:0,h:-i.BIGDIMEN,d:-i.BIGDIMEN}}this.w=t.w||0;this.h="h"in t?t.h:-i.BIGDIMEN;this.d="d"in t?t.d:-i.BIGDIMEN;this.L=this.R=this.ic=this.sk=this.dx=0;this.scale=this.rscale=1;this.pwidth=""}t.zero=function(){return new t({h:0,d:0,w:0})};t.empty=function(){return new t};t.prototype.empty=function(){this.w=0;this.h=this.d=-i.BIGDIMEN;return this};t.prototype.clean=function(){if(this.w===-i.BIGDIMEN)this.w=0;if(this.h===-i.BIGDIMEN)this.h=0;if(this.d===-i.BIGDIMEN)this.d=0};t.prototype.rescale=function(t){this.w*=t;this.h*=t;this.d*=t};t.prototype.combine=function(t,e,r){if(e===void 0){e=0}if(r===void 0){r=0}var i=t.rscale;var n=e+i*(t.w+t.L+t.R);var o=r+i*t.h;var a=i*t.d-r;if(n>this.w)this.w=n;if(o>this.h)this.h=o;if(a>this.d)this.d=a};t.prototype.append=function(t){var e=t.rscale;this.w+=e*(t.w+t.L+t.R);if(e*t.h>this.h){this.h=e*t.h}if(e*t.d>this.d){this.d=e*t.d}};t.prototype.updateFrom=function(t){this.h=t.h;this.d=t.d;this.w=t.w;if(t.pwidth){this.pwidth=t.pwidth}};t.fullWidth="100%";t.StyleAdjust=[["borderTopWidth","h"],["borderRightWidth","w"],["borderBottomWidth","d"],["borderLeftWidth","w",0],["paddingTop","h"],["paddingRight","w"],["paddingBottom","d"],["paddingLeft","w",0]];return t}();e.BBox=n},43899: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.__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 o=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(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.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i{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 i=this.items.length;do{i--}while(i>=0&&r=0&&this.items[e].item!==t);if(e>=0){this.items.splice(e,1)}};t.DEFAULTPRIORITY=5;return t}();e.PrioritizedList=r},14454:function(t,e){var r=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.")};Object.defineProperty(e,"__esModule",{value:true});e.CssStyles=void 0;var i=function(){function t(t){if(t===void 0){t=null}this.styles={};this.addStyles(t)}Object.defineProperty(t.prototype,"cssText",{get:function(){return this.getStyleString()},enumerable:false,configurable:true});t.prototype.addStyles=function(t){var e,i;if(!t)return;try{for(var n=r(Object.keys(t)),o=n.next();!o.done;o=n.next()){var a=o.value;if(!this.styles[a]){this.styles[a]={}}Object.assign(this.styles[a],t[a])}}catch(s){e={error:s}}finally{try{if(o&&!o.done&&(i=n.return))i.call(n)}finally{if(e)throw e.error}}};t.prototype.removeStyles=function(){var t,e;var i=[];for(var n=0;n=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 i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(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 n=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i1){e.shift();r.push(e.shift())}return r}function l(t){var e,i;var n=s(this.styles[t]);if(n.length===0){n.push("")}if(n.length===1){n.push(n[0])}if(n.length===2){n.push(n[0])}if(n.length===3){n.push(n[1])}try{for(var o=r(g.connect[t].children),a=o.next();!a.done;a=o.next()){var l=a.value;this.setStyle(this.childName(t,l),n.shift())}}catch(h){e={error:h}}finally{try{if(a&&!a.done&&(i=o.return))i.call(o)}finally{if(e)throw e.error}}}function h(t){var e,i;var n=g.connect[t].children;var o=[];try{for(var a=r(n),s=a.next();!s.done;s=a.next()){var l=s.value;var h=this.styles[t+"-"+l];if(!h){delete this.styles[t];return}o.push(h)}}catch(c){e={error:c}}finally{try{if(s&&!s.done&&(i=a.return))i.call(a)}finally{if(e)throw e.error}}if(o[3]===o[1]){o.pop();if(o[2]===o[0]){o.pop();if(o[1]===o[0]){o.pop()}}}this.styles[t]=o.join(" ")}function c(t){var e,i;try{for(var n=r(g.connect[t].children),o=n.next();!o.done;o=n.next()){var a=o.value;this.setStyle(this.childName(t,a),this.styles[t])}}catch(s){e={error:s}}finally{try{if(o&&!o.done&&(i=n.return))i.call(n)}finally{if(e)throw e.error}}}function u(t){var e,o;var a=n([],i(g.connect[t].children),false);var s=this.styles[this.childName(t,a.shift())];try{for(var l=r(a),h=l.next();!h.done;h=l.next()){var c=h.value;if(this.styles[this.childName(t,c)]!==s){delete this.styles[t];return}}}catch(u){e={error:u}}finally{try{if(h&&!h.done&&(o=l.return))o.call(l)}finally{if(e)throw e.error}}this.styles[t]=s}var f={width:/^(?:[\d.]+(?:[a-z]+)|thin|medium|thick|inherit|initial|unset)$/,style:/^(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|inherit|initial|unset)$/};function p(t){var e,i,n,o;var a={width:"",style:"",color:""};try{for(var l=r(s(this.styles[t])),h=l.next();!h.done;h=l.next()){var c=h.value;if(c.match(f.width)&&a.width===""){a.width=c}else if(c.match(f.style)&&a.style===""){a.style=c}else{a.color=c}}}catch(y){e={error:y}}finally{try{if(h&&!h.done&&(i=l.return))i.call(l)}finally{if(e)throw e.error}}try{for(var u=r(g.connect[t].children),p=u.next();!p.done;p=u.next()){var d=p.value;this.setStyle(this.childName(t,d),a[d])}}catch(v){n={error:v}}finally{try{if(p&&!p.done&&(o=u.return))o.call(u)}finally{if(n)throw n.error}}}function d(t){var e,i;var n=[];try{for(var o=r(g.connect[t].children),a=o.next();!a.done;a=o.next()){var s=a.value;var l=this.styles[this.childName(t,s)];if(l){n.push(l)}}}catch(h){e={error:h}}finally{try{if(a&&!a.done&&(i=o.return))i.call(o)}finally{if(e)throw e.error}}if(n.length){this.styles[t]=n.join(" ")}else{delete this.styles[t]}}var y={style:/^(?:normal|italic|oblique|inherit|initial|unset)$/,variant:new RegExp("^(?:"+["normal|none","inherit|initial|unset","common-ligatures|no-common-ligatures","discretionary-ligatures|no-discretionary-ligatures","historical-ligatures|no-historical-ligatures","contextual|no-contextual","(?:stylistic|character-variant|swash|ornaments|annotation)\\([^)]*\\)","small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","lining-nums|oldstyle-nums|proportional-nums|tabular-nums","diagonal-fractions|stacked-fractions","ordinal|slashed-zero","jis78|jis83|jis90|jis04|simplified|traditional","full-width|proportional-width","ruby"].join("|")+")$"),weight:/^(?:normal|bold|bolder|lighter|[1-9]00|inherit|initial|unset)$/,stretch:new RegExp("^(?:"+["normal","(?:(?:ultra|extra|semi)-)?condensed","(?:(?:semi|extra|ulta)-)?expanded","inherit|initial|unset"].join("|")+")$"),size:new RegExp("^(?:"+["xx-small|x-small|small|medium|large|x-large|xx-large|larger|smaller","[d.]+%|[d.]+[a-z]+","inherit|initial|unset"].join("|")+")"+"(?:/(?:normal|[d.+](?:%|[a-z]+)?))?$")};function v(t){var e,n,o,a;var l=s(this.styles[t]);var h={style:"",variant:[],weight:"",stretch:"",size:"",family:"","line-height":""};try{for(var c=r(l),u=c.next();!u.done;u=c.next()){var f=u.value;h.family=f;try{for(var p=(o=void 0,r(Object.keys(y))),d=p.next();!d.done;d=p.next()){var v=d.value;if((Array.isArray(h[v])||h[v]==="")&&f.match(y[v])){if(v==="size"){var b=i(f.split(/\//),2),g=b[0],x=b[1];h[v]=g;if(x){h["line-height"]=x}}else if(h.size===""){if(Array.isArray(h[v])){h[v].push(f)}else{h[v]=f}}}}}catch(w){o={error:w}}finally{try{if(d&&!d.done&&(a=p.return))a.call(p)}finally{if(o)throw o.error}}}}catch(_){e={error:_}}finally{try{if(u&&!u.done&&(n=c.return))n.call(c)}finally{if(e)throw e.error}}m(t,h);delete this.styles[t]}function m(t,e){var i,n;try{for(var o=r(g.connect[t].children),a=o.next();!a.done;a=o.next()){var s=a.value;var l=this.childName(t,s);if(Array.isArray(e[s])){var h=e[s];if(h.length){this.styles[l]=h.join(" ")}}else if(e[s]!==""){this.styles[l]=e[s]}}}catch(c){i={error:c}}finally{try{if(a&&!a.done&&(n=o.return))n.call(o)}finally{if(i)throw i.error}}}function b(t){}var g=function(){function t(t){if(t===void 0){t=""}this.parse(t)}Object.defineProperty(t.prototype,"cssText",{get:function(){var t,e;var i=[];try{for(var n=r(Object.keys(this.styles)),o=n.next();!o.done;o=n.next()){var a=o.value;var s=this.parentName(a);if(!this.styles[s]){i.push(a+": "+this.styles[a]+";")}}}catch(l){t={error:l}}finally{try{if(o&&!o.done&&(e=n.return))e.call(n)}finally{if(t)throw t.error}}return i.join(" ")},enumerable:false,configurable:true});t.prototype.set=function(e,r){e=this.normalizeName(e);this.setStyle(e,r);if(t.connect[e]&&!t.connect[e].combine){this.combineChildren(e);delete this.styles[e]}while(e.match(/-/)){e=this.parentName(e);if(!t.connect[e])break;t.connect[e].combine.call(this,e)}};t.prototype.get=function(t){t=this.normalizeName(t);return this.styles.hasOwnProperty(t)?this.styles[t]:""};t.prototype.setStyle=function(e,r){this.styles[e]=r;if(t.connect[e]&&t.connect[e].children){t.connect[e].split.call(this,e)}if(r===""){delete this.styles[e]}};t.prototype.combineChildren=function(e){var i,n;var o=this.parentName(e);try{for(var a=r(t.connect[e].children),s=a.next();!s.done;s=a.next()){var l=s.value;var h=this.childName(o,l);t.connect[h].combine.call(this,h)}}catch(c){i={error:c}}finally{try{if(s&&!s.done&&(n=a.return))n.call(a)}finally{if(i)throw i.error}}};t.prototype.parentName=function(t){var e=t.replace(/-[^-]*$/,"");return t===e?"":e};t.prototype.childName=function(e,r){if(r.match(/-/)){return r}if(t.connect[e]&&!t.connect[e].combine){r+=e.replace(/.*-/,"-");e=this.parentName(e)}return e+"-"+r};t.prototype.normalizeName=function(t){return t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}))};t.prototype.parse=function(t){if(t===void 0){t=""}var e=this.constructor.pattern;this.styles={};var r=t.replace(e.comment,"").split(e.style);while(r.length>1){var n=i(r.splice(0,3),3),o=n[0],a=n[1],s=n[2];if(o.match(/[^\s\n]/))return;this.set(a,s)}};t.pattern={style:/([-a-z]+)[\s\n]*:[\s\n]*((?:'[^']*'|"[^"]*"|\n|.)*?)[\s\n]*(?:;|$)/g,comment:/\/\*[^]*?\*\//g};t.connect={padding:{children:o,split:l,combine:h},border:{children:o,split:c,combine:u},"border-top":{children:a,split:p,combine:d},"border-right":{children:a,split:p,combine:d},"border-bottom":{children:a,split:p,combine:d},"border-left":{children:a,split:p,combine:d},"border-width":{children:o,split:l,combine:null},"border-style":{children:o,split:l,combine:null},"border-color":{children:o,split:l,combine:null},font:{children:["style","variant","weight","stretch","line-height","size","family"],split:v,combine:b}};return t}();e.Styles=g},19468:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.max=e.sum=void 0;function r(t){return t.reduce((function(t,e){return t+e}),0)}e.sum=r;function i(t){return t.reduce((function(t,e){return Math.max(t,e)}),0)}e.max=i}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/4266.155b468271987c81d948.js b/share/jupyter/lab/static/4266.155b468271987c81d948.js new file mode 100644 index 0000000..83e0f45 --- /dev/null +++ b/share/jupyter/lab/static/4266.155b468271987c81d948.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4266],{74266:(e,t,s)=>{s.r(t);s.d(t,{StyleModule:()=>r});const l="ͼ";const i=typeof Symbol=="undefined"?"__"+l:Symbol.for(l);const n=typeof Symbol=="undefined"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet");const o=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:{};class r{constructor(e,t){this.rules=[];let{finish:s}=t||{};function l(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function i(e,t,n,o){let r=[],h=/^@(\w+)\b/.exec(e[0]),u=h&&h[1]=="keyframes";if(h&&t==null)return n.push(e[0]+";");for(let s in t){let o=t[s];if(/&/.test(s)){i(s.split(/,\s*/).map((t=>e.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),o,n)}else if(o&&typeof o=="object"){if(!h)throw new RangeError("The value of a property ("+s+") should be a primitive value.");i(l(s),o,r,u)}else if(o!=null){r.push(s.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+o+";")}}if(r.length||u){n.push((s&&!h&&!o?e.map(s):e).join(", ")+" {"+r.join(" ")+"}")}}for(let n in e)i(l(n),e[n],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=o[i]||1;o[i]=e+1;return l+e.toString(36)}static mount(e,t,s){let l=e[n],i=s&&s.nonce;if(!l)l=new u(e,i);else if(i)l.setNonce(i);l.mount(Array.isArray(t)?t:[t],e)}}let h=new Map;class u{constructor(e,t){let s=e.ownerDocument||e,l=s.defaultView;if(!e.head&&e.adoptedStyleSheets&&l.CSSStyleSheet){let t=h.get(s);if(t)return e[n]=t;this.sheet=new l.CSSStyleSheet;h.set(s,this)}else{this.styleTag=s.createElement("style");if(t)this.styleTag.setAttribute("nonce",t)}this.modules=[];e[n]=this}mount(e,t){let s=this.sheet;let l=0,i=0;for(let n=0;n-1){this.modules.splice(o,1);i--;o=-1}if(o==-1){this.modules.splice(i++,0,t);if(s)for(let e=0;e{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/share/jupyter/lab/static/4323.b2bd8a329a81d30ed039.js b/share/jupyter/lab/static/4323.b2bd8a329a81d30ed039.js new file mode 100644 index 0000000..96d37f4 --- /dev/null +++ b/share/jupyter/lab/static/4323.b2bd8a329a81d30ed039.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4323],{24323:(r,e,t)=>{t.r(e);t.d(e,{rpmChanges:()=>c,rpmSpec:()=>m});var a=/^-+$/;var n=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /;var i=/^[\w+.-]+@[\w.-]+/;const c={name:"rpmchanges",token:function(r){if(r.sol()){if(r.match(a)){return"tag"}if(r.match(n)){return"tag"}}if(r.match(i)){return"string"}r.next();return null}};var o=/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/;var p=/^[a-zA-Z0-9()]+:/;var l=/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/;var u=/^%(ifnarch|ifarch|if)/;var s=/^%(else|endif)/;var f=/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/;const m={name:"rpmspec",startState:function(){return{controlFlow:false,macroParameters:false,section:false}},token:function(r,e){var t=r.peek();if(t=="#"){r.skipToEnd();return"comment"}if(r.sol()){if(r.match(p)){return"header"}if(r.match(l)){return"atom"}}if(r.match(/^\$\w+/)){return"def"}if(r.match(/^\$\{\w+\}/)){return"def"}if(r.match(s)){return"keyword"}if(r.match(u)){e.controlFlow=true;return"keyword"}if(e.controlFlow){if(r.match(f)){return"operator"}if(r.match(/^(\d+)/)){return"number"}if(r.eol()){e.controlFlow=false}}if(r.match(o)){if(r.eol()){e.controlFlow=false}return"number"}if(r.match(/^%[\w]+/)){if(r.match("(")){e.macroParameters=true}return"keyword"}if(e.macroParameters){if(r.match(/^\d+/)){return"number"}if(r.match(")")){e.macroParameters=false;return"keyword"}}if(r.match(/^%\{\??[\w \-\:\!]+\}/)){if(r.eol()){e.controlFlow=false}return"def"}r.next();return null}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/4350.8c8a0e7a3ffe036494e1.js b/share/jupyter/lab/static/4350.8c8a0e7a3ffe036494e1.js new file mode 100644 index 0000000..730a8c9 --- /dev/null +++ b/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/share/jupyter/lab/static/4364.194afbbdabacc831ead4.js b/share/jupyter/lab/static/4364.194afbbdabacc831ead4.js new file mode 100644 index 0000000..97d1602 --- /dev/null +++ b/share/jupyter/lab/static/4364.194afbbdabacc831ead4.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:()=>Ae,Lexer:()=>Re,Marked:()=>_e,Parser:()=>ze,Renderer:()=>Se,TextRenderer:()=>Te,Tokenizer:()=>$e,defaults:()=>s,getDefaults:()=>r,lexer:()=>De,marked:()=>Ie,options:()=>Le,parse:()=>Ee,parseInline:()=>qe,parser:()=>Ze,setOptions:()=>Ce,use:()=>ve,walkTokens:()=>Be});function r(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var s=r();function l(e){s=e}var i={exec:()=>null};function a(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(e,t)=>{let s=typeof t=="string"?t:t.source;return s=s.replace(o.caret,"$1"),n=n.replace(e,s),r},getRegex:()=>new RegExp(n,t)};return r}var o={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")},c=/^(?:[ \t]*(?:\n|$))+/,h=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,p=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,u=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,g=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,k=/(?:[*+-]|\d{1,9}[.)])/,d=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,f=a(d).replace(/bull/g,k).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(),x=a(d).replace(/bull/g,k).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(),b=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,w=/^[^\n]+/,m=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,y=a(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",m).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),$=a(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,k).getRegex(),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",S=/|$))/,T=a("^ {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(),z=a(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(),A=a(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",z).getRegex(),_={blockquote:A,code:h,def:y,fences:p,heading:g,hr:u,html:T,lheading:f,list:$,newline:c,paragraph:z,table:i,text:w},P=a("^ *([^\\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(),I={..._,lheading:x,table:P,paragraph:a(b).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",P).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()},L={..._,html:a(`^ *(?: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:i,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:a(b).replace("hr",u).replace("heading",` *#{1,6} *[^\n]`).replace("lheading",f).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},C=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,v=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,B=/^( {2,}|\\)\n(?!\s*$)/,q=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("code",/(?`+)[^`]+\k(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),N=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,G=a(N,"u").replace(/punct/g,E).getRegex(),F=a(N,"u").replace(/punct/g,j).getRegex(),W="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",X=a(W,"gu").replace(/notPunctSpace/g,D).replace(/punctSpace/g,Z).replace(/punct/g,E).getRegex(),U=a(W,"gu").replace(/notPunctSpace/g,O).replace(/punctSpace/g,H).replace(/punct/g,j).getRegex(),J=a("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,D).replace(/punctSpace/g,Z).replace(/punct/g,E).getRegex(),K=a(/\\(punct)/,"gu").replace(/punct/g,E).getRegex(),V=a(/^<(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(),Y=a(S).replace("(?:--\x3e|$)","--\x3e").getRegex(),ee=a("^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(),te=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,ne=a(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",te).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),re=a(/^!?\[(label)\]\[(ref)\]/).replace("label",te).replace("ref",m).getRegex(),se=a(/^!?\[(ref)\](?:\[\])?/).replace("ref",m).getRegex(),le=a("reflink|nolink(?!\\()","g").replace("reflink",re).replace("nolink",se).getRegex(),ie=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ae={_backpedal:i,anyPunctuation:K,autolink:V,blockSkip:Q,br:B,code:v,del:i,emStrongLDelim:G,emStrongRDelimAst:X,emStrongRDelimUnd:J,escape:C,link:ne,nolink:se,punctuation:M,reflink:re,reflinkSearch:le,tag:ee,text:q,url:i},oe={...ae,link:a(/^!?\[(label)\]\((.*?)\)/).replace("label",te).getRegex(),reflink:a(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",te).getRegex()},ce={...ae,emStrongRDelimAst:U,emStrongLDelim:F,url:a(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ie).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\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:a(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},ke=e=>ge[e];function de(e,t){if(t){if(o.escapeTest.test(e))return e.replace(o.escapeReplace,ke)}else if(o.escapeTestNoEncode.test(e))return e.replace(o.escapeReplaceNoEncode,ke);return e}function fe(e){try{e=encodeURI(e).replace(o.percentDecode,"%")}catch{return null}return e}function xe(e,t){let n=e.replace(o.findPipe,((e,t,n)=>{let r=!1,s=t;for(;--s>=0&&n[s]==="\\";)r=!r;return r?"|":" |"})),r=n.split(o.splitPipe),s=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length0?-2:-1}function me(e,t,n,r,s){let l=t.href,i=t.title||null,a=e[1].replace(s.other.outputLinkReplace,"$1");r.state.inLink=!0;let o={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:l,title:i,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,o}function ye(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let s=r[1];return t.split(`\n`).map((e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=s.length?e.slice(s.length):e})).join(`\n`)}var $e=class{options;rules;lexer;constructor(e){this.options=e||s}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:be(e,`\n`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=ye(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){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=be(e,"#");(this.options.pedantic||!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){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:be(t[0],`\n`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=be(t[0],`\n`).split(`\n`),n="",r="",s=[];for(;e.length>0;){let t=!1,l=[],i;for(i=0;i1,s={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let l=this.rules.other.listItemRegex(n),i=!1;for(;e;){let n=!1,r="",a="";if(!(t=l.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let o=t[2].split(`\n`,1)[0].replace(this.rules.other.listReplaceTabs,(e=>" ".repeat(3*e.length))),c=e.split(`\n`,1)[0],h=!o.trim(),p=0;if(this.options.pedantic?(p=2,a=o.trimStart()):h?p=t[1].length+1:(p=t[2].search(this.rules.other.nonSpaceChar),p=p>4?1:p,a=o.slice(p),p+=t[1].length),h&&this.rules.other.blankLine.test(c)&&(r+=c+`\n`,e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(p),n=this.rules.other.hrRegex(p),s=this.rules.other.fencesBeginRegex(p),l=this.rules.other.headingBeginRegex(p),i=this.rules.other.htmlBeginRegex(p);for(;e;){let u=e.split(`\n`,1)[0],g;if(c=u,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),g=c):g=c.replace(this.rules.other.tabCharGlobal," "),s.test(c)||l.test(c)||i.test(c)||t.test(c)||n.test(c))break;if(g.search(this.rules.other.nonSpaceChar)>=p||!c.trim())a+=`\n`+g.slice(p);else{if(h||o.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||s.test(o)||l.test(o)||n.test(o))break;a+=`\n`+c}!h&&!c.trim()&&(h=!0),r+=u+`\n`,e=e.substring(u.length+1),o=g.slice(p)}}s.loose||(i?s.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(i=!0));let u=null,g;this.options.gfm&&(u=this.rules.other.listIsTask.exec(a),u&&(g=u[0]!=="[ ] ",a=a.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:r,task:!!u,checked:g,loose:!1,text:a,tokens:[]}),s.raw+=r}let a=s.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let e=0;ee.type==="space")),n=t.length>0&&t.some((e=>this.rules.other.anyLine.test(e.raw)));s.loose=n}if(s.loose)for(let e=0;e({text:e,tokens:this.lexer.inline(e),header:!1,align:l.align[t]}))));return l}}lheading(e){let 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){let t=this.rules.block.paragraph.exec(e);if(t){let 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){let 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){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=be(e.slice(0,-1),"\\");if((e.length-t.length)%2===0)return}else{let e=we(t[2],"()");if(e===-2)return;if(e>-1){let n=(t[0].indexOf("!")===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n=n.slice(1):n=n.slice(1,-1)),me(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},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))){let e=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=t[e.toLowerCase()];if(!r){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return me(n,r,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))return;if(!(r[1]||r[2]||"")||!n||this.rules.inline.punctuation.exec(n)){let n=[...r[0]].length-1,s,l,i=n,a=0,o=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,t=t.slice(-1*e.length+n);(r=o.exec(t))!=null;){if(s=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!s)continue;if(l=[...s].length,r[3]||r[4]){i+=l;continue}else if((r[5]||r[6])&&n%3&&!((n+l)%3)){a+=l;continue}if(i-=l,i>0)continue;l=Math.min(l,l+i+a);let t=[...r[0]][0].length,o=e.slice(0,n+r.index+t+l);if(Math.min(n,l)%2){let e=o.slice(1,-1);return{type:"em",raw:o,text:e,tokens:this.lexer.inlineTokens(e)}}let c=o.slice(2,-2);return{type:"strong",raw:o,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let 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){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]==="@"?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{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 r;do{r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(r!==t[0]);e=t[0],t[1]==="www."?n="http://"+t[0]:n=t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}};var Re=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||s,this.options.tokenizer=this.options.tokenizer||new $e,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:o,block:pe.normal,inline:ue.normal};this.options.pedantic?(t.block=pe.pedantic,t.inline=ue.pedantic):this.options.gfm&&(t.block=pe.gfm,this.options.breaks?t.inline=ue.breaks:t.inline=ue.gfm),this.tokenizer.rules=t}static get rules(){return{block:pe,inline:ue}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(o.carriageReturn,`\n`),this.blockTokens(e,this.tokens);for(let t=0;t(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=`\n`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`\n`)?"":`\n`)+r.raw,n.text+=`\n`+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(`\n`)?"":`\n`)+r.raw,n.text+=`\n`+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let s=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach((e=>{r=e.call({lexer:this},n),typeof r=="number"&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(s))){let l=t.at(-1);n&&l?.type==="paragraph"?(l.raw+=(l.raw.endsWith(`\n`)?"":`\n`)+r.raw,l.text+=`\n`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):t.push(r),n=s.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="text"?(n.raw+=(n.raw.endsWith(`\n`)?"":`\n`)+r.raw,n.text+=`\n`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)e.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,r.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let s=!1,l="";for(;e;){s||(l=""),s=!1;let r;if(this.options.extensions?.inline?.some((n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1)))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type==="text"&&n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,l)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach((e=>{r=e.call({lexer:this},n),typeof r=="number"&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(l=r.raw.slice(-1)),s=!0;let n=t.at(-1);n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else throw new Error(t)}}return t}};var Se=class{options;parser;constructor(e){this.options=e||s}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(o.notSpaceStart)?.[0],s=e.replace(o.endingNewline,"")+`\n`;return r?'
'+(n?s:de(s,!0))+`
\n`:"
"+(n?s:de(s,!0))+`
\n`}blockquote({tokens:e}){return`
\n${this.parser.parse(e)}
\n`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`${this.parser.parseInline(e)}\n`}hr(e){return`
\n`}list(e){let t=e.ordered,n=e.start,r="";for(let i=0;i\n`+r+"\n`}listitem(e){let t="";if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=n+" "+de(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`
  • ${t}
  • \n`}checkbox({checked:e}){return"'}paragraph({tokens:e}){return`

    ${this.parser.parseInline(e)}

    \n`}table(e){let t="",n="";for(let s=0;s${r}`),`\n\n`+t+`\n`+r+`
    \n`}tablerow({text:e}){return`\n${e}\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`\n`}strong({tokens:e}){return`${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${de(e,!0)}`}br(e){return"
    "}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),s=fe(e);if(s===null)return r;e=s;let l='
    ",l}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let s=fe(e);if(s===null)return de(n);e=s;let l=`${n}{let s=e[r].flat(1/0);n=n.concat(this.walkTokens(s,t))})):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}: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'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level==="block"?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level==="inline"&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),n.extensions=t),e.renderer){let t=this.defaults.renderer||new Se(this.defaults);for(let n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=n,s=e.renderer[r],l=t[r];t[r]=(...e)=>{let n=s.apply(t,e);return n===!1&&(n=l.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new $e(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=n,s=e.tokenizer[r],l=t[r];t[r]=(...e)=>{let n=s.apply(t,e);return n===!1&&(n=l.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new Ae;for(let n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=n,s=e.hooks[r],l=t[r];Ae.passThroughHooks.has(n)?t[r]=e=>{if(this.defaults.async&&Ae.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await s.call(t,e);return l.call(t,n)})();let r=s.call(t,e);return l.call(t,r)}:t[r]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await s.apply(t,e);return n===!1&&(n=await l.apply(t,e)),n})();let n=s.apply(t,e);return n===!1&&(n=l.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}})),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Re.lex(e,t??this.defaults)}parser(e,t){return ze.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},s={...this.defaults,...r},l=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&r.async===!1)return l(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>"u"||t===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=e),s.async)return(async()=>{let n=s.hooks?await s.hooks.preprocess(t):t,r=await(s.hooks?await s.hooks.provideLexer():e?Re.lex:Re.lexInline)(n,s),l=s.hooks?await s.hooks.processAllTokens(r):r;s.walkTokens&&await Promise.all(this.walkTokens(l,s.walkTokens));let i=await(s.hooks?await s.hooks.provideParser():e?ze.parse:ze.parseInline)(l,s);return s.hooks?await s.hooks.postprocess(i):i})().catch(l);try{s.hooks&&(t=s.hooks.preprocess(t));let n=(s.hooks?s.hooks.provideLexer():e?Re.lex:Re.lexInline)(t,s);s.hooks&&(n=s.hooks.processAllTokens(n)),s.walkTokens&&this.walkTokens(n,s.walkTokens);let r=(s.hooks?s.hooks.provideParser():e?ze.parse:ze.parseInline)(n,s);return s.hooks&&(r=s.hooks.postprocess(r)),r}catch(i){return l(i)}}}onError(e,t){return n=>{if(n.message+=`\nPlease report this to https://github.com/markedjs/marked.`,e){let e="

    An error occurred:

    "+de(n.message+"",!0)+"
    ";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};var Pe=new _e;function Ie(e,t){return Pe.parse(e,t)}Ie.options=Ie.setOptions=function(e){return Pe.setOptions(e),Ie.defaults=Pe.defaults,l(Ie.defaults),Ie};Ie.getDefaults=r;Ie.defaults=s;Ie.use=function(...e){return Pe.use(...e),Ie.defaults=Pe.defaults,l(Ie.defaults),Ie};Ie.walkTokens=function(e,t){return Pe.walkTokens(e,t)};Ie.parseInline=Pe.parseInline;Ie.Parser=ze;Ie.parser=ze.parse;Ie.Renderer=Se;Ie.TextRenderer=Te;Ie.Lexer=Re;Ie.lexer=Re.lex;Ie.Tokenizer=$e;Ie.Hooks=Ae;Ie.parse=Ie;var Le=Ie.options,Ce=Ie.setOptions,ve=Ie.use,Be=Ie.walkTokens,qe=Ie.parseInline,Ee=Ie,Ze=ze.parse,De=Re.lex}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/4372.645626a2452c190dbb22.js b/share/jupyter/lab/static/4372.645626a2452c190dbb22.js new file mode 100644 index 0000000..ef386ad --- /dev/null +++ b/share/jupyter/lab/static/4372.645626a2452c190dbb22.js @@ -0,0 +1,2 @@ +/*! For license information please see 4372.645626a2452c190dbb22.js.LICENSE.txt */ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4372],{14372:(e,t,n)=>{n.r(t);n.d(t,{tlv:()=>d,verilog:()=>a});function i(e){var t=e.statementIndentUnit,n=e.dontAlignCalls,i=e.noIndentKeywords||[],a=e.multiLineStrings,r=e.hooks||{};function l(e){var t={},n=e.split(" ");for(var i=0;i=0)return l}var o=e.context,s=i&&i.charAt(0);if(o.type=="statement"&&s=="}")o=o.prev;var c=false;var f=i.match(h);if(f)c=B(f[0],o.type);if(o.type=="statement")return o.indented+(s=="{"?0:t||a.unit);else if(g.test(o.type)&&o.align&&!n)return o.column+(c?0:1);else if(o.type==")"&&!c)return o.indented+(t||a.unit);else return o.indented+(c?0:a.unit)},languageData:{indentOnInput:q(),commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}}const a=i({});var r={"|":"link",">":"property",$:"variable",$$:"variable","?$":"qualifier","?*":"qualifier","-":"contentSeparator","/":"property","/-":"property","@":"variableName.special","@-":"variableName.special","@++":"variableName.special","@+=":"variableName.special","@+=-":"variableName.special","@--":"variableName.special","@-=":"variableName.special","%+":"tag","%-":"tag","%":"tag",">>":"tag","<<":"tag","<>":"tag","#":"tag","^":"attribute","^^":"attribute","^!":"attribute","*":"variable","**":"variable","\\":"keyword",'"':"comment"};var l={"/":"beh-hier",">":"beh-hier","-":"phys-hier","|":"pipe","?":"when","@":"stage","\\":"keyword"};var o=3;var s=false;var c=/^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/;var f=/^[! ] */;var u=/^\/[\/\*]/;const d=i({hooks:{electricInput:false,token:function(e,t){var n=undefined;var i;if(e.sol()&&!t.tlvInBlockComment){if(e.peek()=="\\"){n="def";e.skipToEnd();if(e.string.match(/\\SV/)){t.tlvCodeActive=false}else if(e.string.match(/\\TLV/)){t.tlvCodeActive=true}}if(t.tlvCodeActive&&e.pos==0&&t.indented==0&&(i=e.match(f,false))){t.indented=i[0].length}var a=t.indented;var d=a/o;if(d<=t.tlvIndentationStyle.length){var m=e.string.length==a;var p=d*o;if(p0)){t.tlvIndentationStyle[d]=l[h];if(s){t.statementComment=false}d++}}}if(!m){while(t.tlvIndentationStyle.length>d){t.tlvIndentationStyle.pop()}}}t.tlvNextIndent=a}if(t.tlvCodeActive){var g=false;if(s){g=e.peek()!=" "&&n===undefined&&!t.tlvInBlockComment&&e.column()==t.tlvIndentationStyle.length*o;if(g){if(t.statementComment){g=false}t.statementComment=e.match(u,false)}}var i;if(n!==undefined){}else if(t.tlvInBlockComment){if(e.match(/^.*?\*\//)){t.tlvInBlockComment=false;if(s&&!e.eol()){t.statementComment=false}}else{e.skipToEnd()}n="comment"}else if((i=e.match(u))&&!t.tlvInBlockComment){if(i[0]=="//"){e.skipToEnd()}else{t.tlvInBlockComment=true}n="comment"}else if(i=e.match(c)){var k=i[1];var y=i[2];if(r.hasOwnProperty(k)&&(y.length>0||e.eol())){n=r[k]}else{e.backUp(e.current().length-1)}}else if(e.match(/^\t+/)){n="invalid"}else if(e.match(/^[\[\]{}\(\);\:]+/)){n="meta"}else if(i=e.match(/^[mM]4([\+_])?[\w\d_]*/)){n=i[1]=="+"?"keyword.special":"keyword"}else if(e.match(/^ +/)){if(e.eol()){n="error"}}else if(e.match(/^[\w\d_]+/)){n="number"}else{e.next()}}else{if(e.match(/^[mM]4([\w\d_]*)/)){n="keyword"}}return n},indent:function(e){return e.tlvCodeActive==true?e.tlvNextIndent:-1},startState:function(e){e.tlvIndentationStyle=[];e.tlvCodeActive=true;e.tlvNextIndent=-1;e.tlvInBlockComment=false;if(s){e.statementComment=false}}}})}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/4372.645626a2452c190dbb22.js.LICENSE.txt b/share/jupyter/lab/static/4372.645626a2452c190dbb22.js.LICENSE.txt new file mode 100644 index 0000000..ebc2d13 --- /dev/null +++ b/share/jupyter/lab/static/4372.645626a2452c190dbb22.js.LICENSE.txt @@ -0,0 +1 @@ +//!stream.match(tlvCommentMatch, false) && // not comment start diff --git a/share/jupyter/lab/static/4408.f24dd0edf35e08548967.js b/share/jupyter/lab/static/4408.f24dd0edf35e08548967.js new file mode 100644 index 0000000..1c05ca8 --- /dev/null +++ b/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/share/jupyter/lab/static/4462.c3c6de84bc9399e0290d.js b/share/jupyter/lab/static/4462.c3c6de84bc9399e0290d.js new file mode 100644 index 0000000..1832b1e --- /dev/null +++ b/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/share/jupyter/lab/static/4483.02ee7ef303167f106fec.js b/share/jupyter/lab/static/4483.02ee7ef303167f106fec.js new file mode 100644 index 0000000..e603914 --- /dev/null +++ b/share/jupyter/lab/static/4483.02ee7ef303167f106fec.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4483],{85054:(e,t,a)=>{a.d(t,{S:()=>n});var i=a(70416);function n(e,t){if(e.accDescr){t.setAccDescription?.(e.accDescr)}if(e.accTitle){t.setAccTitle?.(e.accTitle)}if(e.title){t.setDiagramTitle?.(e.title)}}(0,i.K2)(n,"populateCommonDb")},14483:(e,t,a)=>{a.d(t,{diagram:()=>K});var i=a(29479);var n=a(85054);var r=a(29131);var l=a(42418);var s=a(70416);var o=a(24010);var c=a(1218);var p=l.UI.pie;var d={sections:new Map,showData:false,config:p};var u=d.sections;var v=d.showData;var f=structuredClone(p);var g=(0,s.K2)((()=>structuredClone(f)),"getConfig");var h=(0,s.K2)((()=>{u=new Map;v=d.showData;(0,l.IU)()}),"clear");var m=(0,s.K2)((({label:e,value:t})=>{if(t<0){throw new Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`)}if(!u.has(e)){u.set(e,t);s.Rm.debug(`added new section: ${e}, with value: ${t}`)}}),"addSection");var w=(0,s.K2)((()=>u),"getSections");var S=(0,s.K2)((e=>{v=e}),"setShowData");var x=(0,s.K2)((()=>v),"getShowData");var $={getConfig:g,clear:h,setDiagramTitle:l.ke,getDiagramTitle:l.ab,setAccTitle:l.SV,getAccTitle:l.iN,setAccDescription:l.EI,getAccDescription:l.m7,addSection:m,getSections:w,setShowData:S,getShowData:x};var D=(0,s.K2)(((e,t)=>{(0,n.S)(e,t);t.setShowData(e.showData);e.sections.map(t.addSection)}),"populateDb");var b={parse:(0,s.K2)((async e=>{const t=await(0,o.qg)("pie",e);s.Rm.debug(t);D(t,$)}),"parse")};var y=(0,s.K2)((e=>`\n .pieCircle{\n stroke: ${e.pieStrokeColor};\n stroke-width : ${e.pieStrokeWidth};\n opacity : ${e.pieOpacity};\n }\n .pieOuterCircle{\n stroke: ${e.pieOuterStrokeColor};\n stroke-width: ${e.pieOuterStrokeWidth};\n fill: none;\n }\n .pieTitleText {\n text-anchor: middle;\n font-size: ${e.pieTitleTextSize};\n fill: ${e.pieTitleTextColor};\n font-family: ${e.fontFamily};\n }\n .slice {\n font-family: ${e.fontFamily};\n fill: ${e.pieSectionTextColor};\n font-size:${e.pieSectionTextSize};\n // fill: white;\n }\n .legend text {\n fill: ${e.pieLegendTextColor};\n font-family: ${e.fontFamily};\n font-size: ${e.pieLegendTextSize};\n }\n`),"getStyles");var T=y;var C=(0,s.K2)((e=>{const t=[...e.values()].reduce(((e,t)=>e+t),0);const a=[...e.entries()].map((([e,t])=>({label:e,value:t}))).filter((e=>e.value/t*100>=1)).sort(((e,t)=>t.value-e.value));const i=(0,c.rLf)().value((e=>e.value));return i(a)}),"createPieArcs");var k=(0,s.K2)(((e,t,a,n)=>{s.Rm.debug("rendering pie chart\n"+e);const o=n.db;const p=(0,l.D7)();const d=(0,r.$t)(o.getConfig(),p.pie);const u=40;const v=18;const f=4;const g=450;const h=g;const m=(0,i.D)(t);const w=m.append("g");w.attr("transform","translate("+h/2+","+g/2+")");const{themeVariables:S}=p;let[x]=(0,r.I5)(S.pieOuterStrokeWidth);x??=2;const $=d.textPosition;const D=Math.min(h,g)/2-u;const b=(0,c.JLW)().innerRadius(0).outerRadius(D);const y=(0,c.JLW)().innerRadius(D*$).outerRadius(D*$);w.append("circle").attr("cx",0).attr("cy",0).attr("r",D+x/2).attr("class","pieOuterCircle");const T=o.getSections();const k=C(T);const A=[S.pie1,S.pie2,S.pie3,S.pie4,S.pie5,S.pie6,S.pie7,S.pie8,S.pie9,S.pie10,S.pie11,S.pie12];let K=0;T.forEach((e=>{K+=e}));const R=k.filter((e=>(e.data.value/K*100).toFixed(0)!=="0"));const z=(0,c.UMr)(A);w.selectAll("mySlices").data(R).enter().append("path").attr("d",b).attr("fill",(e=>z(e.data.label))).attr("class","pieCircle");w.selectAll("mySlices").data(R).enter().append("text").text((e=>(e.data.value/K*100).toFixed(0)+"%")).attr("transform",(e=>"translate("+y.centroid(e)+")")).style("text-anchor","middle").attr("class","slice");w.append("text").text(o.getDiagramTitle()).attr("x",0).attr("y",-(g-50)/2).attr("class","pieTitleText");const M=[...T.entries()].map((([e,t])=>({label:e,value:t})));const O=w.selectAll(".legend").data(M).enter().append("g").attr("class","legend").attr("transform",((e,t)=>{const a=v+f;const i=a*M.length/2;const n=12*v;const r=t*a-i;return"translate("+n+","+r+")"}));O.append("rect").attr("width",v).attr("height",v).style("fill",(e=>z(e.label))).style("stroke",(e=>z(e.label)));O.append("text").attr("x",v+f).attr("y",v-f).text((e=>{if(o.getShowData()){return`${e.label} [${e.value}]`}return e.label}));const W=Math.max(...O.selectAll("text").nodes().map((e=>e?.getBoundingClientRect().width??0)));const _=h+u+v+f+W;m.attr("viewBox",`0 0 ${_} ${g}`);(0,l.a$)(m,g,_,d.useMaxWidth)}),"draw");var A={draw:k};var K={parser:b,db:$,renderer:A,styles:T}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/4484.e1d2565d1a3daa5fe5f1.js b/share/jupyter/lab/static/4484.e1d2565d1a3daa5fe5f1.js new file mode 100644 index 0000000..618afdb --- /dev/null +++ b/share/jupyter/lab/static/4484.e1d2565d1a3daa5fe5f1.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4484],{34484:(e,t,n)=>{n.r(t);n.d(t,{xQuery:()=>z});var r=function(){function e(e){return{type:e,style:"keyword"}}var t=e("operator"),n={type:"atom",style:"atom"},r={type:"punctuation",style:null},a={type:"axis_specifier",style:"qualifier"};var i={",":r};var s=["after","all","allowing","ancestor","ancestor-or-self","any","array","as","ascending","at","attribute","base-uri","before","boundary-space","by","case","cast","castable","catch","child","collation","comment","construction","contains","content","context","copy","copy-namespaces","count","decimal-format","declare","default","delete","descendant","descendant-or-self","descending","diacritics","different","distance","document","document-node","element","else","empty","empty-sequence","encoding","end","entire","every","exactly","except","external","first","following","following-sibling","for","from","ftand","ftnot","ft-option","ftor","function","fuzzy","greatest","group","if","import","in","inherit","insensitive","insert","instance","intersect","into","invoke","is","item","language","last","lax","least","let","levels","lowercase","map","modify","module","most","namespace","next","no","node","nodes","no-inherit","no-preserve","not","occurs","of","only","option","order","ordered","ordering","paragraph","paragraphs","parent","phrase","preceding","preceding-sibling","preserve","previous","processing-instruction","relationship","rename","replace","return","revalidation","same","satisfies","schema","schema-attribute","schema-element","score","self","sensitive","sentence","sentences","sequence","skip","sliding","some","stable","start","stemming","stop","strict","strip","switch","text","then","thesaurus","times","to","transform","treat","try","tumbling","type","typeswitch","union","unordered","update","updating","uppercase","using","validate","value","variable","version","weight","when","where","wildcards","window","with","without","word","words","xquery"];for(var o=0,l=s.length;o",">=","<","<=",".","|","?","and","or","div","idiv","mod","*","/","+","-"];for(var o=0,l=c.length;o\"\'\/?]/))g+=y;return a(e,t,c(g,f))}else if(n=="{"){b(t,{type:"codeblock"});return null}else if(n=="}"){w(t);return null}else if(d(t)){if(n==">")return"tag";else if(n=="/"&&e.eat(">")){w(t);return"tag"}else return"variable"}else if(/\d/.test(n)){e.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/);return"atom"}else if(n==="("&&e.eat(":")){b(t,{type:"comment"});return a(e,t,s)}else if(!o&&(n==='"'||n==="'"))return l(e,t,n);else if(n==="$"){return a(e,t,u)}else if(n===":"&&e.eat("=")){return"keyword"}else if(n==="("){b(t,{type:"paren"});return null}else if(n===")"){w(t);return null}else if(n==="["){b(t,{type:"bracket"});return null}else if(n==="]"){w(t);return null}else{var k=r.propertyIsEnumerable(n)&&r[n];if(o&&n==='"')while(e.next()!=='"'){}if(o&&n==="'")while(e.next()!=="'"){}if(!k)e.eatWhile(/[\w\$_-]/);var z=e.eat(":");if(!e.eat(":")&&z){e.eatWhile(/[\w\$_-]/)}if(e.match(/^[ \t]*\(/,false)){i=true}var I=e.current();k=r.propertyIsEnumerable(I)&&r[I];if(i&&!k)k={type:"function_call",style:"def"};if(h(t)){w(t);return"variable"}if(I=="element"||I=="attribute"||k.type=="axis_specifier")b(t,{type:"xmlconstructor"});return k?k.style:"variable"}}function s(e,t){var n=false,r=false,a=0,i;while(i=e.next()){if(i==")"&&n){if(a>0)a--;else{w(t);break}}else if(i==":"&&r){a++}n=i==":";r=i=="("}return"comment"}function o(e,t){return function(n,r){var a;while(a=n.next()){if(a==e){w(r);if(t)r.tokenize=t;break}else if(n.match("{",false)&&g(r)){b(r,{type:"codeblock"});r.tokenize=i;return"string"}}return"string"}}function l(e,t,n,r){let i=o(n,r);b(t,{type:"string",name:n,tokenize:i});return a(e,t,i)}function u(e,t){var n=/[\w\$_-]/;if(e.eat('"')){while(e.next()!=='"'){}e.eat(":")}else{e.eatWhile(n);if(!e.match(":=",false))e.eat(":")}e.eatWhile(n);t.tokenize=i;return"variable"}function c(e,t){return function(n,r){n.eatSpace();if(t&&n.eat(">")){w(r);r.tokenize=i;return"tag"}if(!n.eat("/"))b(r,{type:"tag",name:e,tokenize:i});if(!n.eat(">")){r.tokenize=f;return"tag"}else{r.tokenize=i}return"tag"}}function f(e,t){var n=e.next();if(n=="/"&&e.eat(">")){if(g(t))w(t);if(d(t))w(t);return"tag"}if(n==">"){if(g(t))w(t);return"tag"}if(n=="=")return null;if(n=='"'||n=="'")return l(e,t,n,f);if(!g(t))b(t,{type:"attribute",tokenize:f});e.eat(/[a-zA-Z_:]/);e.eatWhile(/[-a-zA-Z0-9_:.]/);e.eatSpace();if(e.match(">",false)||e.match("/",false)){w(t);t.tokenize=i}return"attribute"}function p(e,t){var n;while(n=e.next()){if(n=="-"&&e.match("->",true)){t.tokenize=i;return"comment"}}}function m(e,t){var n;while(n=e.next()){if(n=="]"&&e.match("]",true)){t.tokenize=i;return"comment"}}}function x(e,t){var n;while(n=e.next()){if(n=="?"&&e.match(">",true)){t.tokenize=i;return"processingInstruction"}}}function d(e){return k(e,"tag")}function g(e){return k(e,"attribute")}function h(e){return k(e,"xmlconstructor")}function y(e){return k(e,"string")}function v(e){if(e.current()==='"')return e.match(/^[^\"]+\"\:/,false);else if(e.current()==="'")return e.match(/^[^\"]+\'\:/,false);else return false}function k(e,t){return e.stack.length&&e.stack[e.stack.length-1].type==t}function b(e,t){e.stack.push(t)}function w(e){e.stack.pop();var t=e.stack.length&&e.stack[e.stack.length-1].tokenize;e.tokenize=t||i}const z={name:"xquery",startState:function(){return{tokenize:i,cc:[],stack:[]}},token:function(e,t){if(e.eatSpace())return null;var n=t.tokenize(e,t);return n},languageData:{commentTokens:{block:{open:"(:",close:":)"}}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/4486.8d2f41ae787607b7bf31.js b/share/jupyter/lab/static/4486.8d2f41ae787607b7bf31.js new file mode 100644 index 0000000..c097531 --- /dev/null +++ b/share/jupyter/lab/static/4486.8d2f41ae787607b7bf31.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4486],{14486:(e,O,T)=>{T.r(O);T.d(O,{pig:()=>u});function E(e){var O={},T=e.split(" ");for(var E=0;E=&?:\/!|]/;function n(e,O,T){O.tokenize=T;return T(e,O)}function L(e,O){var T=false;var E;while(E=e.next()){if(E=="/"&&T){O.tokenize=i;break}T=E=="*"}return"comment"}function a(e){return function(O,T){var E=false,r,t=false;while((r=O.next())!=null){if(r==e&&!E){t=true;break}E=!E&&r=="\\"}if(t||!E)T.tokenize=i;return"error"}}function i(e,O){var T=e.next();if(T=='"'||T=="'")return n(e,O,a(T));else if(/[\[\]{}\(\),;\.]/.test(T))return null;else if(/\d/.test(T)){e.eatWhile(/[\w\.]/);return"number"}else if(T=="/"){if(e.eat("*")){return n(e,O,L)}else{e.eatWhile(S);return"operator"}}else if(T=="-"){if(e.eat("-")){e.skipToEnd();return"comment"}else{e.eatWhile(S);return"operator"}}else if(S.test(T)){e.eatWhile(S);return"operator"}else{e.eatWhile(/[\w\$_]/);if(A&&A.propertyIsEnumerable(e.current().toUpperCase())){if(!e.eat(")")&&!e.eat("."))return"keyword"}if(N&&N.propertyIsEnumerable(e.current().toUpperCase()))return"builtin";if(R&&R.propertyIsEnumerable(e.current().toUpperCase()))return"type";return"variable"}}const u={name:"pig",startState:function(){return{tokenize:i,startOfLine:true}},token:function(e,O){if(e.eatSpace())return null;var T=O.tokenize(e,O);return T},languageData:{autocomplete:(r+I+t).split(" ")}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/4528.43328125d98d6cfdfa99.js b/share/jupyter/lab/static/4528.43328125d98d6cfdfa99.js new file mode 100644 index 0000000..85d19a1 --- /dev/null +++ b/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/share/jupyter/lab/static/4611.bd2b768223b0cd570834.js b/share/jupyter/lab/static/4611.bd2b768223b0cd570834.js new file mode 100644 index 0000000..4be8f1b --- /dev/null +++ b/share/jupyter/lab/static/4611.bd2b768223b0cd570834.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4611],{64611:(e,t,i)=>{i.r(t);i.d(t,{textile:()=>m});var n={addition:"inserted",attributes:"propertyName",bold:"strong",cite:"keyword",code:"monospace",definitionList:"list",deletion:"deleted",div:"punctuation",em:"emphasis",footnote:"variable",footCite:"qualifier",header:"heading",html:"comment",image:"atom",italic:"emphasis",link:"link",linkDefinition:"link",list1:"list",list2:"list.special",list3:"list",notextile:"string.special",pre:"operator",p:"content",quote:"bracket",span:"quote",specialChar:"character",strong:"strong",sub:"content.special",sup:"content.special",table:"variableName.special",tableHeading:"operator"};function a(e,t){t.mode=d.newLayout;t.tableHeading=false;if(t.layoutType==="definitionList"&&t.spanningLayout&&e.match(p("definitionListEnd"),false))t.spanningLayout=false}function r(e,t,i){if(i==="_"){if(e.eat("_"))return l(e,t,"italic",/__/,2);else return l(e,t,"em",/_/,1)}if(i==="*"){if(e.eat("*")){return l(e,t,"bold",/\*\*/,2)}return l(e,t,"strong",/\*/,1)}if(i==="["){if(e.match(/\d+\]/))t.footCite=true;return s(t)}if(i==="("){var a=e.match(/^(r|tm|c)\)/);if(a)return n.specialChar}if(i==="<"&&e.match(/(\w+)[^>]+>[^<]+<\/\1>/))return n.html;if(i==="?"&&e.eat("?"))return l(e,t,"cite",/\?\?/,2);if(i==="="&&e.eat("="))return l(e,t,"notextile",/==/,2);if(i==="-"&&!e.eat("-"))return l(e,t,"deletion",/-/,1);if(i==="+")return l(e,t,"addition",/\+/,1);if(i==="~")return l(e,t,"sub",/~/,1);if(i==="^")return l(e,t,"sup",/\^/,1);if(i==="%")return l(e,t,"span",/%/,1);if(i==="@")return l(e,t,"code",/@/,1);if(i==="!"){var r=l(e,t,"image",/(?:\([^\)]+\))?!/,1);e.match(/^:\S+/);return r}return s(t)}function l(e,t,i,n,a){var r=e.pos>a?e.string.charAt(e.pos-a-1):null;var l=e.peek();if(t[i]){if((!l||/\W/.test(l))&&r&&/\S/.test(r)){var o=s(t);t[i]=false;return o}}else if((!r||/\W/.test(r))&&l&&/\S/.test(l)&&e.match(new RegExp("^.*\\S"+n.source+"(?:\\W|$)"),false)){t[i]=true;t.mode=d.attributes}return s(t)}function s(e){var t=o(e);if(t)return t;var i=[];if(e.layoutType)i.push(n[e.layoutType]);i=i.concat(u(e,"addition","bold","cite","code","deletion","em","footCite","image","italic","link","span","strong","sub","sup","table","tableHeading"));if(e.layoutType==="header")i.push(n.header+"-"+e.header);return i.length?i.join(" "):null}function o(e){var t=e.layoutType;switch(t){case"notextile":case"code":case"pre":return n[t];default:if(e.notextile)return n.notextile+(t?" "+n[t]:"");return null}}function u(e){var t=[];for(var i=1;i]+)?>(?:[^<]+<\/\1>)?/,link:/[^"]+":\S/,linkDefinition:/\[[^\s\]]+\]\S+/,list:/(?:#+|\*+)/,notextile:"notextile",para:"p",pre:"pre",table:"table",tableCellAttributes:/[\/\\]\d+/,tableHeading:/\|_\./,tableText:/[^"_\*\[\(\?\+~\^%@|-]+/,text:/[^!"_=\*\[\(<\?\+~\^%@-]+/},attributes:{align:/(?:<>|<|>|=)/,selector:/\([^\(][^\)]+\)/,lang:/\[[^\[\]]+\]/,pad:/(?:\(+|\)+){1,2}/,css:/\{[^\}]+\}/},createRe:function(e){switch(e){case"drawTable":return f.makeRe("^",f.single.drawTable,"$");case"html":return f.makeRe("^",f.single.html,"(?:",f.single.html,")*","$");case"linkDefinition":return f.makeRe("^",f.single.linkDefinition,"$");case"listLayout":return f.makeRe("^",f.single.list,p("allAttributes"),"*\\s+");case"tableCellAttributes":return f.makeRe("^",f.choiceRe(f.single.tableCellAttributes,p("allAttributes")),"+\\.");case"type":return f.makeRe("^",p("allTypes"));case"typeLayout":return f.makeRe("^",p("allTypes"),p("allAttributes"),"*\\.\\.?","(\\s+|$)");case"attributes":return f.makeRe("^",p("allAttributes"),"+");case"allTypes":return f.choiceRe(f.single.div,f.single.foot,f.single.header,f.single.bc,f.single.bq,f.single.notextile,f.single.pre,f.single.table,f.single.para);case"allAttributes":return f.choiceRe(f.attributes.selector,f.attributes.css,f.attributes.lang,f.attributes.align,f.attributes.pad);default:return f.makeRe("^",f.single[e])}},makeRe:function(){var e="";for(var t=0;t{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{"use strict";var t=function e(t){return r(t)&&!i(t)};function r(e){return!!e&&typeof e==="object"}function i(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||o(e)}var n=typeof Symbol==="function"&&Symbol.for;var s=n?Symbol.for("react.element"):60103;function o(e){return e.$$typeof===s}function a(e){return Array.isArray(e)?[]:{}}function l(e,t){return t.clone!==false&&t.isMergeableObject(e)?g(a(e),e,t):e}function c(e,t,r){return e.concat(t).map((function(e){return l(e,r)}))}function u(e,t){if(!t.customMerge){return g}var r=t.customMerge(e);return typeof r==="function"?r:g}function f(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}function h(e){return Object.keys(e).concat(f(e))}function p(e,t){try{return t in e}catch(r){return false}}function d(e,t){return p(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function m(e,t,r){var i={};if(r.isMergeableObject(e)){h(e).forEach((function(t){i[t]=l(e[t],r)}))}h(t).forEach((function(n){if(d(e,n)){return}if(p(e,n)&&r.isMergeableObject(t[n])){i[n]=u(n,r)(e[n],t[n],r)}else{i[n]=l(t[n],r)}}));return i}function g(e,r,i){i=i||{};i.arrayMerge=i.arrayMerge||c;i.isMergeableObject=i.isMergeableObject||t;i.cloneUnlessOtherwiseSpecified=l;var n=Array.isArray(r);var s=Array.isArray(e);var o=n===s;if(!o){return l(r,i)}else if(n){return i.arrayMerge(e,r,i)}else{return m(e,r,i)}}g.all=function e(t,r){if(!Array.isArray(t)){throw new Error("first argument should be an array")}return t.reduce((function(e,t){return g(e,t,r)}),{})};var y=g;e.exports=y},94460:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.attributeNames=t.elementNames=void 0;t.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((function(e){return[e.toLowerCase(),e]})));t.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((function(e){return[e.toLowerCase(),e]})))},53806:function(e,t,r){"use strict";var i=this&&this.__assign||function(){i=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0){n+=d(e.children,t)}if(t.xmlMode||!p.has(e.name)){n+="")}}return n}function v(e){return"<".concat(e.data,">")}function w(e,t){var r;var i=e.data||"";if(((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)!==false&&!(!t.xmlMode&&e.parent&&u.has(e.parent.name))){i=t.xmlMode||t.encodeEntities!=="utf8"?(0,l.encodeXML)(i):(0,l.escapeText)(i)}return i}function x(e){return"")}function S(e){return"\x3c!--".concat(e.data,"--\x3e")}},45413:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var r;(function(e){e["Root"]="root";e["Text"]="text";e["Directive"]="directive";e["Comment"]="comment";e["Script"]="script";e["Style"]="style";e["Tag"]="tag";e["CDATA"]="cdata";e["Doctype"]="doctype"})(r=t.ElementType||(t.ElementType={}));function i(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style}t.isTag=i;t.Root=r.Root;t.Text=r.Text;t.Directive=r.Directive;t.Comment=r.Comment;t.Script=r.Script;t.Style=r.Style;t.Tag=r.Tag;t.CDATA=r.CDATA;t.Doctype=r.Doctype},79878:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.decodeXML=t.decodeHTMLStrict=t.decodeHTML=t.determineBranch=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var n=i(r(13603));t.htmlDecodeTree=n.default;var s=i(r(22517));t.xmlDecodeTree=s.default;var o=i(r(55096));t.decodeCodePoint=o.default;var a=r(55096);Object.defineProperty(t,"replaceCodePoint",{enumerable:true,get:function(){return a.replaceCodePoint}});Object.defineProperty(t,"fromCodePoint",{enumerable:true,get:function(){return a.fromCodePoint}});var l;(function(e){e[e["NUM"]=35]="NUM";e[e["SEMI"]=59]="SEMI";e[e["ZERO"]=48]="ZERO";e[e["NINE"]=57]="NINE";e[e["LOWER_A"]=97]="LOWER_A";e[e["LOWER_F"]=102]="LOWER_F";e[e["LOWER_X"]=120]="LOWER_X";e[e["To_LOWER_BIT"]=32]="To_LOWER_BIT"})(l||(l={}));var c;(function(e){e[e["VALUE_LENGTH"]=49152]="VALUE_LENGTH";e[e["BRANCH_LENGTH"]=16256]="BRANCH_LENGTH";e[e["JUMP_TABLE"]=127]="JUMP_TABLE"})(c=t.BinTrieFlags||(t.BinTrieFlags={}));function u(e){return function t(r,i){var n="";var s=0;var a=0;while((a=r.indexOf("&",a))>=0){n+=r.slice(s,a);s=a;a+=1;if(r.charCodeAt(a)===l.NUM){var u=a+1;var h=10;var p=r.charCodeAt(u);if((p|l.To_LOWER_BIT)===l.LOWER_X){h=16;a+=1;u+=1}do{p=r.charCodeAt(++a)}while(p>=l.ZERO&&p<=l.NINE||h===16&&(p|l.To_LOWER_BIT)>=l.LOWER_A&&(p|l.To_LOWER_BIT)<=l.LOWER_F);if(u!==a){var d=r.substring(u,a);var m=parseInt(d,h);if(r.charCodeAt(a)===l.SEMI){a+=1}else if(i){continue}n+=(0,o.default)(m);s=a}continue}var g=0;var y=1;var b=0;var v=e[b];for(;a>14)-1;if(x===0)break;b+=x}}if(g!==0){var x=(e[g]&c.VALUE_LENGTH)>>14;n+=x===1?String.fromCharCode(e[g]&~c.VALUE_LENGTH):x===2?String.fromCharCode(e[g+1]):String.fromCharCode(e[g+1],e[g+2]);s=a-y+1}}return n+r.slice(s)}}function f(e,t,r,i){var n=(t&c.BRANCH_LENGTH)>>7;var s=t&c.JUMP_TABLE;if(n===0){return s!==0&&i===s?r:-1}if(s){var o=i-s;return o<0||o>=n?-1:e[r+o]-1}var a=r;var l=a+n-1;while(a<=l){var u=a+l>>>1;var f=e[u];if(fi){l=u-1}else{return e[u+n]}}return-1}t.determineBranch=f;var h=u(n.default);var p=u(s.default);function d(e){return h(e,false)}t.decodeHTML=d;function m(e){return h(e,true)}t.decodeHTMLStrict=m;function g(e){return p(e,true)}t.decodeXML=g},55096:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.replaceCodePoint=t.fromCodePoint=void 0;var i=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(r=String.fromCodePoint)!==null&&r!==void 0?r:function(e){var t="";if(e>65535){e-=65536;t+=String.fromCharCode(e>>>10&1023|55296);e=56320|e&1023}t+=String.fromCharCode(e);return t};function n(e){var t;if(e>=55296&&e<=57343||e>1114111){return 65533}return(t=i.get(e))!==null&&t!==void 0?t:e}t.replaceCodePoint=n;function s(e){return(0,t.fromCodePoint)(n(e))}t["default"]=s},71818:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.encodeNonAsciiHTML=t.encodeHTML=void 0;var n=i(r(35504));var s=r(5987);var o=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function a(e){return c(o,e)}t.encodeHTML=a;function l(e){return c(s.xmlReplacer,e)}t.encodeNonAsciiHTML=l;function c(e,t){var r="";var i=0;var o;while((o=e.exec(t))!==null){var a=o.index;r+=t.substring(i,a);var l=t.charCodeAt(a);var c=n.default.get(l);if(typeof c==="object"){if(a+1{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0;t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var r=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(e,t){return e.codePointAt(t)}:function(e,t){return(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)};function i(e){var i="";var n=0;var s;while((s=t.xmlReplacer.exec(e))!==null){var o=s.index;var a=e.charCodeAt(o);var l=r.get(a);if(l!==undefined){i+=e.substring(n,o)+l;n=o+1}else{i+="".concat(e.substring(n,o),"&#x").concat((0,t.getCodePoint)(e,o).toString(16),";");n=t.xmlReplacer.lastIndex+=Number((a&64512)===55296)}}return i+e.substr(n)}t.encodeXML=i;t.escape=i;function n(e,t){return function r(i){var n;var s=0;var o="";while(n=e.exec(i)){if(s!==n.index){o+=i.substring(s,n.index)}o+=t.get(n[0].charCodeAt(0));s=n.index+1}return o+i.substring(s)}}t.escapeUTF8=n(/[&<>'"]/g,r);t.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]]));t.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))},13603:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((function(e){return e.charCodeAt(0)})))},22517:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(e){return e.charCodeAt(0)})))},35504:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function r(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.DecodingMode=t.EntityLevel=void 0;var i=r(79878);var n=r(71818);var s=r(5987);var o;(function(e){e[e["XML"]=0]="XML";e[e["HTML"]=1]="HTML"})(o=t.EntityLevel||(t.EntityLevel={}));var a;(function(e){e[e["Legacy"]=0]="Legacy";e[e["Strict"]=1]="Strict"})(a=t.DecodingMode||(t.DecodingMode={}));var l;(function(e){e[e["UTF8"]=0]="UTF8";e[e["ASCII"]=1]="ASCII";e[e["Extensive"]=2]="Extensive";e[e["Attribute"]=3]="Attribute";e[e["Text"]=4]="Text"})(l=t.EncodingMode||(t.EncodingMode={}));function c(e,t){if(t===void 0){t=o.XML}var r=typeof t==="number"?{level:t}:t;if(r.level===o.HTML){if(r.mode===a.Strict){return(0,i.decodeHTMLStrict)(e)}return(0,i.decodeHTML)(e)}return(0,i.decodeXML)(e)}t.decode=c;function u(e,t){if(t===void 0){t=o.XML}var r=typeof t==="number"?{level:t}:t;if(r.level===o.HTML){if(r.mode===a.Legacy){return(0,i.decodeHTML)(e)}return(0,i.decodeHTMLStrict)(e)}return(0,i.decodeXML)(e)}t.decodeStrict=u;function f(e,t){if(t===void 0){t=o.XML}var r=typeof t==="number"?{level:t}:t;if(r.mode===l.UTF8)return(0,s.escapeUTF8)(e);if(r.mode===l.Attribute)return(0,s.escapeAttribute)(e);if(r.mode===l.Text)return(0,s.escapeText)(e);if(r.level===o.HTML){if(r.mode===l.ASCII){return(0,n.encodeNonAsciiHTML)(e)}return(0,n.encodeHTML)(e)}return(0,s.encodeXML)(e)}t.encode=f;var h=r(5987);Object.defineProperty(t,"encodeXML",{enumerable:true,get:function(){return h.encodeXML}});Object.defineProperty(t,"escape",{enumerable:true,get:function(){return h.escape}});Object.defineProperty(t,"escapeUTF8",{enumerable:true,get:function(){return h.escapeUTF8}});Object.defineProperty(t,"escapeAttribute",{enumerable:true,get:function(){return h.escapeAttribute}});Object.defineProperty(t,"escapeText",{enumerable:true,get:function(){return h.escapeText}});var p=r(71818);Object.defineProperty(t,"encodeHTML",{enumerable:true,get:function(){return p.encodeHTML}});Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:true,get:function(){return p.encodeNonAsciiHTML}});Object.defineProperty(t,"encodeHTML4",{enumerable:true,get:function(){return p.encodeHTML}});Object.defineProperty(t,"encodeHTML5",{enumerable:true,get:function(){return p.encodeHTML}});var d=r(79878);Object.defineProperty(t,"decodeXML",{enumerable:true,get:function(){return d.decodeXML}});Object.defineProperty(t,"decodeHTML",{enumerable:true,get:function(){return d.decodeHTML}});Object.defineProperty(t,"decodeHTMLStrict",{enumerable:true,get:function(){return d.decodeHTMLStrict}});Object.defineProperty(t,"decodeHTML4",{enumerable:true,get:function(){return d.decodeHTML}});Object.defineProperty(t,"decodeHTML5",{enumerable:true,get:function(){return d.decodeHTML}});Object.defineProperty(t,"decodeHTML4Strict",{enumerable:true,get:function(){return d.decodeHTMLStrict}});Object.defineProperty(t,"decodeHTML5Strict",{enumerable:true,get:function(){return d.decodeHTMLStrict}});Object.defineProperty(t,"decodeXMLStrict",{enumerable:true,get:function(){return d.decodeXML}})},52834:e=>{"use strict";e.exports=e=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},11724:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=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,i,n)}:function(e,t,r,i){if(i===undefined)i=r;e[i]=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 s=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))i(t,e,r);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.Parser=void 0;var o=s(r(57918));var a=r(79878);var l=new Set(["input","option","optgroup","select","button","datalist","textarea"]);var c=new Set(["p"]);var u=new Set(["thead","tbody"]);var f=new Set(["dd","dt"]);var h=new Set(["rt","rp"]);var p=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",c],["h1",c],["h2",c],["h3",c],["h4",c],["h5",c],["h6",c],["select",l],["input",l],["output",l],["button",l],["datalist",l],["textarea",l],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",f],["dt",f],["address",c],["article",c],["aside",c],["blockquote",c],["details",c],["div",c],["dl",c],["fieldset",c],["figcaption",c],["figure",c],["footer",c],["form",c],["header",c],["hr",c],["main",c],["nav",c],["ol",c],["pre",c],["section",c],["table",c],["ul",c],["rt",h],["rp",h],["tbody",u],["tfoot",u]]);var d=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);var m=new Set(["math","svg"]);var g=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]);var y=/\s|\//;var b=function(){function e(e,t){if(t===void 0){t={}}var r,i,n,s,a;this.options=t;this.startIndex=0;this.endIndex=0;this.openTagStart=0;this.tagname="";this.attribname="";this.attribvalue="";this.attribs=null;this.stack=[];this.foreignContext=[];this.buffers=[];this.bufferOffset=0;this.writeIndex=0;this.ended=false;this.cbs=e!==null&&e!==void 0?e:{};this.lowerCaseTagNames=(r=t.lowerCaseTags)!==null&&r!==void 0?r:!t.xmlMode;this.lowerCaseAttributeNames=(i=t.lowerCaseAttributeNames)!==null&&i!==void 0?i:!t.xmlMode;this.tokenizer=new((n=t.Tokenizer)!==null&&n!==void 0?n:o.default)(this.options,this);(a=(s=this.cbs).onparserinit)===null||a===void 0?void 0:a.call(s,this)}e.prototype.ontext=function(e,t){var r,i;var n=this.getSlice(e,t);this.endIndex=t-1;(i=(r=this.cbs).ontext)===null||i===void 0?void 0:i.call(r,n);this.startIndex=t};e.prototype.ontextentity=function(e){var t,r;var i=this.tokenizer.getSectionStart();this.endIndex=i-1;(r=(t=this.cbs).ontext)===null||r===void 0?void 0:r.call(t,(0,a.fromCodePoint)(e));this.startIndex=i};e.prototype.isVoidElement=function(e){return!this.options.xmlMode&&d.has(e)};e.prototype.onopentagname=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);if(this.lowerCaseTagNames){r=r.toLowerCase()}this.emitOpenTag(r)};e.prototype.emitOpenTag=function(e){var t,r,i,n;this.openTagStart=this.startIndex;this.tagname=e;var s=!this.options.xmlMode&&p.get(e);if(s){while(this.stack.length>0&&s.has(this.stack[this.stack.length-1])){var o=this.stack.pop();(r=(t=this.cbs).onclosetag)===null||r===void 0?void 0:r.call(t,o,true)}}if(!this.isVoidElement(e)){this.stack.push(e);if(m.has(e)){this.foreignContext.push(true)}else if(g.has(e)){this.foreignContext.push(false)}}(n=(i=this.cbs).onopentagname)===null||n===void 0?void 0:n.call(i,e);if(this.cbs.onopentag)this.attribs={}};e.prototype.endOpenTag=function(e){var t,r;this.startIndex=this.openTagStart;if(this.attribs){(r=(t=this.cbs).onopentag)===null||r===void 0?void 0:r.call(t,this.tagname,this.attribs,e);this.attribs=null}if(this.cbs.onclosetag&&this.isVoidElement(this.tagname)){this.cbs.onclosetag(this.tagname,true)}this.tagname=""};e.prototype.onopentagend=function(e){this.endIndex=e;this.endOpenTag(false);this.startIndex=e+1};e.prototype.onclosetag=function(e,t){var r,i,n,s,o,a;this.endIndex=t;var l=this.getSlice(e,t);if(this.lowerCaseTagNames){l=l.toLowerCase()}if(m.has(l)||g.has(l)){this.foreignContext.pop()}if(!this.isVoidElement(l)){var c=this.stack.lastIndexOf(l);if(c!==-1){if(this.cbs.onclosetag){var u=this.stack.length-c;while(u--){this.cbs.onclosetag(this.stack.pop(),u!==0)}}else this.stack.length=c}else if(!this.options.xmlMode&&l==="p"){this.emitOpenTag("p");this.closeCurrentTag(true)}}else if(!this.options.xmlMode&&l==="br"){(i=(r=this.cbs).onopentagname)===null||i===void 0?void 0:i.call(r,"br");(s=(n=this.cbs).onopentag)===null||s===void 0?void 0:s.call(n,"br",{},true);(a=(o=this.cbs).onclosetag)===null||a===void 0?void 0:a.call(o,"br",false)}this.startIndex=t+1};e.prototype.onselfclosingtag=function(e){this.endIndex=e;if(this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]){this.closeCurrentTag(false);this.startIndex=e+1}else{this.onopentagend(e)}};e.prototype.closeCurrentTag=function(e){var t,r;var i=this.tagname;this.endOpenTag(e);if(this.stack[this.stack.length-1]===i){(r=(t=this.cbs).onclosetag)===null||r===void 0?void 0:r.call(t,i,!e);this.stack.pop()}};e.prototype.onattribname=function(e,t){this.startIndex=e;var r=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r};e.prototype.onattribdata=function(e,t){this.attribvalue+=this.getSlice(e,t)};e.prototype.onattribentity=function(e){this.attribvalue+=(0,a.fromCodePoint)(e)};e.prototype.onattribend=function(e,t){var r,i;this.endIndex=t;(i=(r=this.cbs).onattribute)===null||i===void 0?void 0:i.call(r,this.attribname,this.attribvalue,e===o.QuoteType.Double?'"':e===o.QuoteType.Single?"'":e===o.QuoteType.NoValue?undefined:null);if(this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)){this.attribs[this.attribname]=this.attribvalue}this.attribvalue=""};e.prototype.getInstructionName=function(e){var t=e.search(y);var r=t<0?e:e.substr(0,t);if(this.lowerCaseTagNames){r=r.toLowerCase()}return r};e.prototype.ondeclaration=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var i=this.getInstructionName(r);this.cbs.onprocessinginstruction("!".concat(i),"!".concat(r))}this.startIndex=t+1};e.prototype.onprocessinginstruction=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var i=this.getInstructionName(r);this.cbs.onprocessinginstruction("?".concat(i),"?".concat(r))}this.startIndex=t+1};e.prototype.oncomment=function(e,t,r){var i,n,s,o;this.endIndex=t;(n=(i=this.cbs).oncomment)===null||n===void 0?void 0:n.call(i,this.getSlice(e,t-r));(o=(s=this.cbs).oncommentend)===null||o===void 0?void 0:o.call(s);this.startIndex=t+1};e.prototype.oncdata=function(e,t,r){var i,n,s,o,a,l,c,u,f,h;this.endIndex=t;var p=this.getSlice(e,t-r);if(this.options.xmlMode||this.options.recognizeCDATA){(n=(i=this.cbs).oncdatastart)===null||n===void 0?void 0:n.call(i);(o=(s=this.cbs).ontext)===null||o===void 0?void 0:o.call(s,p);(l=(a=this.cbs).oncdataend)===null||l===void 0?void 0:l.call(a)}else{(u=(c=this.cbs).oncomment)===null||u===void 0?void 0:u.call(c,"[CDATA[".concat(p,"]]"));(h=(f=this.cbs).oncommentend)===null||h===void 0?void 0:h.call(f)}this.startIndex=t+1};e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var r=this.stack.length;r>0;this.cbs.onclosetag(this.stack[--r],true));}(t=(e=this.cbs).onend)===null||t===void 0?void 0:t.call(e)};e.prototype.reset=function(){var e,t,r,i;(t=(e=this.cbs).onreset)===null||t===void 0?void 0:t.call(e);this.tokenizer.reset();this.tagname="";this.attribname="";this.attribs=null;this.stack.length=0;this.startIndex=0;this.endIndex=0;(i=(r=this.cbs).onparserinit)===null||i===void 0?void 0:i.call(r,this);this.buffers.length=0;this.bufferOffset=0;this.writeIndex=0;this.ended=false};e.prototype.parseComplete=function(e){this.reset();this.end(e)};e.prototype.getSlice=function(e,t){while(e-this.bufferOffset>=this.buffers[0].length){this.shiftBuffer()}var r=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);while(t-this.bufferOffset>this.buffers[0].length){this.shiftBuffer();r+=this.buffers[0].slice(0,t-this.bufferOffset)}return r};e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length;this.writeIndex--;this.buffers.shift()};e.prototype.write=function(e){var t,r;if(this.ended){(r=(t=this.cbs).onerror)===null||r===void 0?void 0:r.call(t,new Error(".write() after done!"));return}this.buffers.push(e);if(this.tokenizer.running){this.tokenizer.write(e);this.writeIndex++}};e.prototype.end=function(e){var t,r;if(this.ended){(r=(t=this.cbs).onerror)===null||r===void 0?void 0:r.call(t,Error(".end() after done!"));return}if(e)this.write(e);this.ended=true;this.tokenizer.end()};e.prototype.pause=function(){this.tokenizer.pause()};e.prototype.resume=function(){this.tokenizer.resume();while(this.tokenizer.running&&this.writeIndex{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.QuoteType=void 0;var i=r(79878);var n;(function(e){e[e["Tab"]=9]="Tab";e[e["NewLine"]=10]="NewLine";e[e["FormFeed"]=12]="FormFeed";e[e["CarriageReturn"]=13]="CarriageReturn";e[e["Space"]=32]="Space";e[e["ExclamationMark"]=33]="ExclamationMark";e[e["Num"]=35]="Num";e[e["Amp"]=38]="Amp";e[e["SingleQuote"]=39]="SingleQuote";e[e["DoubleQuote"]=34]="DoubleQuote";e[e["Dash"]=45]="Dash";e[e["Slash"]=47]="Slash";e[e["Zero"]=48]="Zero";e[e["Nine"]=57]="Nine";e[e["Semi"]=59]="Semi";e[e["Lt"]=60]="Lt";e[e["Eq"]=61]="Eq";e[e["Gt"]=62]="Gt";e[e["Questionmark"]=63]="Questionmark";e[e["UpperA"]=65]="UpperA";e[e["LowerA"]=97]="LowerA";e[e["UpperF"]=70]="UpperF";e[e["LowerF"]=102]="LowerF";e[e["UpperZ"]=90]="UpperZ";e[e["LowerZ"]=122]="LowerZ";e[e["LowerX"]=120]="LowerX";e[e["OpeningSquareBracket"]=91]="OpeningSquareBracket"})(n||(n={}));var s;(function(e){e[e["Text"]=1]="Text";e[e["BeforeTagName"]=2]="BeforeTagName";e[e["InTagName"]=3]="InTagName";e[e["InSelfClosingTag"]=4]="InSelfClosingTag";e[e["BeforeClosingTagName"]=5]="BeforeClosingTagName";e[e["InClosingTagName"]=6]="InClosingTagName";e[e["AfterClosingTagName"]=7]="AfterClosingTagName";e[e["BeforeAttributeName"]=8]="BeforeAttributeName";e[e["InAttributeName"]=9]="InAttributeName";e[e["AfterAttributeName"]=10]="AfterAttributeName";e[e["BeforeAttributeValue"]=11]="BeforeAttributeValue";e[e["InAttributeValueDq"]=12]="InAttributeValueDq";e[e["InAttributeValueSq"]=13]="InAttributeValueSq";e[e["InAttributeValueNq"]=14]="InAttributeValueNq";e[e["BeforeDeclaration"]=15]="BeforeDeclaration";e[e["InDeclaration"]=16]="InDeclaration";e[e["InProcessingInstruction"]=17]="InProcessingInstruction";e[e["BeforeComment"]=18]="BeforeComment";e[e["CDATASequence"]=19]="CDATASequence";e[e["InSpecialComment"]=20]="InSpecialComment";e[e["InCommentLike"]=21]="InCommentLike";e[e["BeforeSpecialS"]=22]="BeforeSpecialS";e[e["SpecialStartSequence"]=23]="SpecialStartSequence";e[e["InSpecialTag"]=24]="InSpecialTag";e[e["BeforeEntity"]=25]="BeforeEntity";e[e["BeforeNumericEntity"]=26]="BeforeNumericEntity";e[e["InNamedEntity"]=27]="InNamedEntity";e[e["InNumericEntity"]=28]="InNumericEntity";e[e["InHexEntity"]=29]="InHexEntity"})(s||(s={}));function o(e){return e===n.Space||e===n.NewLine||e===n.Tab||e===n.FormFeed||e===n.CarriageReturn}function a(e){return e===n.Slash||e===n.Gt||o(e)}function l(e){return e>=n.Zero&&e<=n.Nine}function c(e){return e>=n.LowerA&&e<=n.LowerZ||e>=n.UpperA&&e<=n.UpperZ}function u(e){return e>=n.UpperA&&e<=n.UpperF||e>=n.LowerA&&e<=n.LowerF}var f;(function(e){e[e["NoValue"]=0]="NoValue";e[e["Unquoted"]=1]="Unquoted";e[e["Single"]=2]="Single";e[e["Double"]=3]="Double"})(f=t.QuoteType||(t.QuoteType={}));var h={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};var p=function(){function e(e,t){var r=e.xmlMode,n=r===void 0?false:r,o=e.decodeEntities,a=o===void 0?true:o;this.cbs=t;this.state=s.Text;this.buffer="";this.sectionStart=0;this.index=0;this.baseState=s.Text;this.isSpecial=false;this.running=true;this.offset=0;this.sequenceIndex=0;this.trieIndex=0;this.trieCurrent=0;this.entityResult=0;this.entityExcess=0;this.xmlMode=n;this.decodeEntities=a;this.entityTrie=n?i.xmlDecodeTree:i.htmlDecodeTree}e.prototype.reset=function(){this.state=s.Text;this.buffer="";this.sectionStart=0;this.index=0;this.baseState=s.Text;this.currentSequence=undefined;this.running=true;this.offset=0};e.prototype.write=function(e){this.offset+=this.buffer.length;this.buffer=e;this.parse()};e.prototype.end=function(){if(this.running)this.finish()};e.prototype.pause=function(){this.running=false};e.prototype.resume=function(){this.running=true;if(this.indexthis.sectionStart){this.cbs.ontext(this.sectionStart,this.index)}this.state=s.BeforeTagName;this.sectionStart=this.index}else if(this.decodeEntities&&e===n.Amp){this.state=s.BeforeEntity}};e.prototype.stateSpecialStartSequence=function(e){var t=this.sequenceIndex===this.currentSequence.length;var r=t?a(e):(e|32)===this.currentSequence[this.sequenceIndex];if(!r){this.isSpecial=false}else if(!t){this.sequenceIndex++;return}this.sequenceIndex=0;this.state=s.InTagName;this.stateInTagName(e)};e.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(e===n.Gt||o(e)){var t=this.index-this.currentSequence.length;if(this.sectionStart>14)-1;if(!this.allowLegacyEntity()&&e!==n.Semi){this.trieIndex+=r}else{var s=this.index-this.entityExcess+1;if(s>this.sectionStart){this.emitPartial(this.sectionStart,s)}this.entityResult=this.trieIndex;this.trieIndex+=r;this.entityExcess=0;this.sectionStart=this.index+1;if(r===0){this.emitNamedEntity()}}}};e.prototype.emitNamedEntity=function(){this.state=this.baseState;if(this.entityResult===0){return}var e=(this.entityTrie[this.entityResult]&i.BinTrieFlags.VALUE_LENGTH)>>14;switch(e){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~i.BinTrieFlags.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);this.emitCodePoint(this.entityTrie[this.entityResult+2])}}};e.prototype.stateBeforeNumericEntity=function(e){if((e|32)===n.LowerX){this.entityExcess++;this.state=s.InHexEntity}else{this.state=s.InNumericEntity;this.stateInNumericEntity(e)}};e.prototype.emitNumericEntity=function(e){var t=this.index-this.entityExcess-1;var r=t+2+Number(this.state===s.InHexEntity);if(r!==this.index){if(t>this.sectionStart){this.emitPartial(this.sectionStart,t)}this.sectionStart=this.index+Number(e);this.emitCodePoint((0,i.replaceCodePoint)(this.entityResult))}this.state=this.baseState};e.prototype.stateInNumericEntity=function(e){if(e===n.Semi){this.emitNumericEntity(true)}else if(l(e)){this.entityResult=this.entityResult*10+(e-n.Zero);this.entityExcess++}else{if(this.allowLegacyEntity()){this.emitNumericEntity(false)}else{this.state=this.baseState}this.index--}};e.prototype.stateInHexEntity=function(e){if(e===n.Semi){this.emitNumericEntity(true)}else if(l(e)){this.entityResult=this.entityResult*16+(e-n.Zero);this.entityExcess++}else if(u(e)){this.entityResult=this.entityResult*16+((e|32)-n.LowerA+10);this.entityExcess++}else{if(this.allowLegacyEntity()){this.emitNumericEntity(false)}else{this.state=this.baseState}this.index--}};e.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===s.Text||this.baseState===s.InSpecialTag)};e.prototype.cleanup=function(){if(this.running&&this.sectionStart!==this.index){if(this.state===s.Text||this.state===s.InSpecialTag&&this.sequenceIndex===0){this.cbs.ontext(this.sectionStart,this.index);this.sectionStart=this.index}else if(this.state===s.InAttributeValueDq||this.state===s.InAttributeValueSq||this.state===s.InAttributeValueNq){this.cbs.onattribdata(this.sectionStart,this.index);this.sectionStart=this.index}}};e.prototype.shouldContinue=function(){return this.index0?this.children[this.children.length-1]:null},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:false,configurable:true});return t}(o);t.NodeWithChildren=f;var h=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.type=s.ElementType.CDATA;return t}Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:false,configurable:true});return t}(f);t.CDATA=h;var p=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.type=s.ElementType.Root;return t}Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:false,configurable:true});return t}(f);t.Document=p;var d=function(e){i(t,e);function t(t,r,i,n){if(i===void 0){i=[]}if(n===void 0){n=t==="script"?s.ElementType.Script:t==="style"?s.ElementType.Style:s.ElementType.Tag}var o=e.call(this,i)||this;o.name=t;o.attribs=r;o.type=n;return o}Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var r,i;return{name:t,value:e.attribs[t],namespace:(r=e["x-attribsNamespace"])===null||r===void 0?void 0:r[t],prefix:(i=e["x-attribsPrefix"])===null||i===void 0?void 0:i[t]}}))},enumerable:false,configurable:true});return t}(f);t.Element=d;function m(e){return(0,s.isTag)(e)}t.isTag=m;function g(e){return e.type===s.ElementType.CDATA}t.isCDATA=g;function y(e){return e.type===s.ElementType.Text}t.isText=y;function b(e){return e.type===s.ElementType.Comment}t.isComment=b;function v(e){return e.type===s.ElementType.Directive}t.isDirective=v;function w(e){return e.type===s.ElementType.Root}t.isDocument=w;function x(e){return Object.prototype.hasOwnProperty.call(e,"children")}t.hasChildren=x;function S(e,t){if(t===void 0){t=false}var r;if(y(e)){r=new l(e.data)}else if(b(e)){r=new c(e.data)}else if(m(e)){var i=t?T(e.children):[];var s=new d(e.name,n({},e.attribs),i);i.forEach((function(e){return e.parent=s}));if(e.namespace!=null){s.namespace=e.namespace}if(e["x-attribsNamespace"]){s["x-attribsNamespace"]=n({},e["x-attribsNamespace"])}if(e["x-attribsPrefix"]){s["x-attribsPrefix"]=n({},e["x-attribsPrefix"])}r=s}else if(g(e)){var i=t?T(e.children):[];var o=new h(i);i.forEach((function(e){return e.parent=o}));r=o}else if(w(e)){var i=t?T(e.children):[];var a=new p(i);i.forEach((function(e){return e.parent=a}));if(e["x-mode"]){a["x-mode"]=e["x-mode"]}r=a}else if(v(e)){var f=new u(e.name,e.data);if(e["x-name"]!=null){f["x-name"]=e["x-name"];f["x-publicId"]=e["x-publicId"];f["x-systemId"]=e["x-systemId"]}r=f}else{throw new Error("Not implemented yet: ".concat(e.type))}r.startIndex=e.startIndex;r.endIndex=e.endIndex;if(e.sourceCodeLocation!=null){r.sourceCodeLocation=e.sourceCodeLocation}return r}t.cloneNode=S;function T(e){var t=e.map((function(e){return S(e,true)}));for(var r=1;r{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getFeed=void 0;var i=r(65247);var n=r(86851);function s(e){var t=f(d,e);return!t?null:t.name==="feed"?o(t):a(t)}t.getFeed=s;function o(e){var t;var r=e.children;var i={type:"atom",items:(0,n.getElementsByTagName)("entry",r).map((function(e){var t;var r=e.children;var i={media:u(r)};p(i,"id","id",r);p(i,"title","title",r);var n=(t=f("link",r))===null||t===void 0?void 0:t.attribs["href"];if(n){i.link=n}var s=h("summary",r)||h("content",r);if(s){i.description=s}var o=h("updated",r);if(o){i.pubDate=new Date(o)}return i}))};p(i,"id","id",r);p(i,"title","title",r);var s=(t=f("link",r))===null||t===void 0?void 0:t.attribs["href"];if(s){i.link=s}p(i,"description","subtitle",r);var o=h("updated",r);if(o){i.updated=new Date(o)}p(i,"author","email",r,true);return i}function a(e){var t,r;var i=(r=(t=f("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&r!==void 0?r:[];var s={type:e.name.substr(0,3),id:"",items:(0,n.getElementsByTagName)("item",e.children).map((function(e){var t=e.children;var r={media:u(t)};p(r,"id","guid",t);p(r,"title","title",t);p(r,"link","link",t);p(r,"description","description",t);var i=h("pubDate",t);if(i)r.pubDate=new Date(i);return r}))};p(s,"title","title",i);p(s,"link","link",i);p(s,"description","description",i);var o=h("lastBuildDate",i);if(o){s.updated=new Date(o)}p(s,"author","managingEditor",i,true);return s}var l=["url","type","lang"];var c=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function u(e){return(0,n.getElementsByTagName)("media:content",e).map((function(e){var t=e.attribs;var r={medium:t["medium"],isDefault:!!t["isDefault"]};for(var i=0,n=l;i{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.uniqueSort=t.compareDocumentPosition=t.DocumentPosition=t.removeSubsets=void 0;var i=r(66443);function n(e){var t=e.length;while(--t>=0){var r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0){e.splice(t,1);continue}for(var i=r.parent;i;i=i.parent){if(e.includes(i)){e.splice(t,1);break}}}return e}t.removeSubsets=n;var s;(function(e){e[e["DISCONNECTED"]=1]="DISCONNECTED";e[e["PRECEDING"]=2]="PRECEDING";e[e["FOLLOWING"]=4]="FOLLOWING";e[e["CONTAINS"]=8]="CONTAINS";e[e["CONTAINED_BY"]=16]="CONTAINED_BY"})(s=t.DocumentPosition||(t.DocumentPosition={}));function o(e,t){var r=[];var n=[];if(e===t){return 0}var o=(0,i.hasChildren)(e)?e:e.parent;while(o){r.unshift(o);o=o.parent}o=(0,i.hasChildren)(t)?t:t.parent;while(o){n.unshift(o);o=o.parent}var a=Math.min(r.length,n.length);var l=0;while(lu.indexOf(h)){if(c===t){return s.FOLLOWING|s.CONTAINED_BY}return s.FOLLOWING}if(c===e){return s.PRECEDING|s.CONTAINS}return s.PRECEDING}t.compareDocumentPosition=o;function a(e){e=e.filter((function(e,t,r){return!r.includes(e,t+1)}));e.sort((function(e,t){var r=o(e,t);if(r&s.PRECEDING){return-1}else if(r&s.FOLLOWING){return 1}return 0}));return e}t.uniqueSort=a},43970:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=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,i,n)}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var n=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))i(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0;n(r(65247),t);n(r(21840),t);n(r(27049),t);n(r(28620),t);n(r(86851),t);n(r(89891),t);n(r(48115),t);var s=r(66443);Object.defineProperty(t,"isTag",{enumerable:true,get:function(){return s.isTag}});Object.defineProperty(t,"isCDATA",{enumerable:true,get:function(){return s.isCDATA}});Object.defineProperty(t,"isText",{enumerable:true,get:function(){return s.isText}});Object.defineProperty(t,"isComment",{enumerable:true,get:function(){return s.isComment}});Object.defineProperty(t,"isDocument",{enumerable:true,get:function(){return s.isDocument}});Object.defineProperty(t,"hasChildren",{enumerable:true,get:function(){return s.hasChildren}})},86851:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getElementsByTagType=t.getElementsByTagName=t.getElementById=t.getElements=t.testElement=void 0;var i=r(66443);var n=r(28620);var s={tag_name:function(e){if(typeof e==="function"){return function(t){return(0,i.isTag)(t)&&e(t.name)}}else if(e==="*"){return i.isTag}return function(t){return(0,i.isTag)(t)&&t.name===e}},tag_type:function(e){if(typeof e==="function"){return function(t){return e(t.type)}}return function(t){return t.type===e}},tag_contains:function(e){if(typeof e==="function"){return function(t){return(0,i.isText)(t)&&e(t.data)}}return function(t){return(0,i.isText)(t)&&t.data===e}}};function o(e,t){if(typeof t==="function"){return function(r){return(0,i.isTag)(r)&&t(r.attribs[e])}}return function(r){return(0,i.isTag)(r)&&r.attribs[e]===t}}function a(e,t){return function(r){return e(r)||t(r)}}function l(e){var t=Object.keys(e).map((function(t){var r=e[t];return Object.prototype.hasOwnProperty.call(s,t)?s[t](r):o(t,r)}));return t.length===0?null:t.reduce(a)}function c(e,t){var r=l(e);return r?r(t):true}t.testElement=c;function u(e,t,r,i){if(i===void 0){i=Infinity}var s=l(e);return s?(0,n.filter)(s,t,r,i):[]}t.getElements=u;function f(e,t,r){if(r===void 0){r=true}if(!Array.isArray(t))t=[t];return(0,n.findOne)(o("id",e),t,r)}t.getElementById=f;function h(e,t,r,i){if(r===void 0){r=true}if(i===void 0){i=Infinity}return(0,n.filter)(s["tag_name"](e),t,r,i)}t.getElementsByTagName=h;function p(e,t,r,i){if(r===void 0){r=true}if(i===void 0){i=Infinity}return(0,n.filter)(s["tag_type"](e),t,r,i)}t.getElementsByTagType=p},27049:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.prepend=t.prependChild=t.append=t.appendChild=t.replaceElement=t.removeElement=void 0;function r(e){if(e.prev)e.prev.next=e.next;if(e.next)e.next.prev=e.prev;if(e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}}t.removeElement=r;function i(e,t){var r=t.prev=e.prev;if(r){r.next=t}var i=t.next=e.next;if(i){i.prev=t}var n=t.parent=e.parent;if(n){var s=n.children;s[s.lastIndexOf(e)]=t;e.parent=null}}t.replaceElement=i;function n(e,t){r(t);t.next=null;t.parent=e;if(e.children.push(t)>1){var i=e.children[e.children.length-2];i.next=t;t.prev=i}else{t.prev=null}}t.appendChild=n;function s(e,t){r(t);var i=e.parent;var n=e.next;t.next=n;t.prev=e;e.next=t;t.parent=i;if(n){n.prev=t;if(i){var s=i.children;s.splice(s.lastIndexOf(n),0,t)}}else if(i){i.children.push(t)}}t.append=s;function o(e,t){r(t);t.parent=e;t.prev=null;if(e.children.unshift(t)!==1){var i=e.children[1];i.prev=t;t.next=i}else{t.next=null}}t.prependChild=o;function a(e,t){r(t);var i=e.parent;if(i){var n=i.children;n.splice(n.indexOf(e),0,t)}if(e.prev){e.prev.next=t}t.parent=i;t.prev=e.prev;t.next=e;e.prev=t}t.prepend=a},28620:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.findAll=t.existsOne=t.findOne=t.findOneChild=t.find=t.filter=void 0;var i=r(66443);function n(e,t,r,i){if(r===void 0){r=true}if(i===void 0){i=Infinity}if(!Array.isArray(t))t=[t];return s(e,t,r,i)}t.filter=n;function s(e,t,r,n){var o=[];for(var a=0,l=t;a0){var u=s(e,c.children,r,n);o.push.apply(o,u);n-=u.length;if(n<=0)break}}return o}t.find=s;function o(e,t){return t.find(e)}t.findOneChild=o;function a(e,t,r){if(r===void 0){r=true}var n=null;for(var s=0;s0){n=a(e,o.children,true)}}return n}t.findOne=a;function l(e,t){return t.some((function(t){return(0,i.isTag)(t)&&(e(t)||t.children.length>0&&l(e,t.children))}))}t.existsOne=l;function c(e,t){var r;var n=[];var s=t.filter(i.isTag);var o;while(o=s.shift()){var a=(r=o.children)===null||r===void 0?void 0:r.filter(i.isTag);if(a&&a.length>0){s.unshift.apply(s,a)}if(e(o))n.push(o)}return n}t.findAll=c},65247:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.innerText=t.textContent=t.getText=t.getInnerHTML=t.getOuterHTML=void 0;var n=r(66443);var s=i(r(53806));var o=r(45413);function a(e,t){return(0,s.default)(e,t)}t.getOuterHTML=a;function l(e,t){return(0,n.hasChildren)(e)?e.children.map((function(e){return a(e,t)})).join(""):""}t.getInnerHTML=l;function c(e){if(Array.isArray(e))return e.map(c).join("");if((0,n.isTag)(e))return e.name==="br"?"\n":c(e.children);if((0,n.isCDATA)(e))return c(e.children);if((0,n.isText)(e))return e.data;return""}t.getText=c;function u(e){if(Array.isArray(e))return e.map(u).join("");if((0,n.hasChildren)(e)&&!(0,n.isComment)(e)){return u(e.children)}if((0,n.isText)(e))return e.data;return""}t.textContent=u;function f(e){if(Array.isArray(e))return e.map(f).join("");if((0,n.hasChildren)(e)&&(e.type===o.ElementType.Tag||(0,n.isCDATA)(e))){return f(e.children)}if((0,n.isText)(e))return e.data;return""}t.innerText=f},21840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.prevElementSibling=t.nextElementSibling=t.getName=t.hasAttrib=t.getAttributeValue=t.getSiblings=t.getParent=t.getChildren=void 0;var i=r(66443);function n(e){return(0,i.hasChildren)(e)?e.children:[]}t.getChildren=n;function s(e){return e.parent||null}t.getParent=s;function o(e){var t,r;var i=s(e);if(i!=null)return n(i);var o=[e];var a=e.prev,l=e.next;while(a!=null){o.unshift(a);t=a,a=t.prev}while(l!=null){o.push(l);r=l,l=r.next}return o}t.getSiblings=o;function a(e,t){var r;return(r=e.attribs)===null||r===void 0?void 0:r[t]}t.getAttributeValue=a;function l(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}t.hasAttrib=l;function c(e){return e.name}t.getName=c;function u(e){var t;var r=e.next;while(r!==null&&!(0,i.isTag)(r))t=r,r=t.next;return r}t.nextElementSibling=u;function f(e){var t;var r=e.prev;while(r!==null&&!(0,i.isTag)(r))t=r,r=t.prev;return r}t.prevElementSibling=f},78682:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function r(e){return Object.prototype.toString.call(e)==="[object Object]"}function i(e){var t,i;if(r(e)===false)return false;t=e.constructor;if(t===undefined)return true;i=t.prototype;if(r(i)===false)return false;if(i.hasOwnProperty("isPrototypeOf")===false){return false}return true}t.isPlainObject=i},29466:function(e,t){var r,i,n;(function(s,o){if(true){!(i=[],r=o,n=typeof r==="function"?r.apply(t,i):r,n!==undefined&&(e.exports=n))}else{}})(this,(function(){return function(e){function t(e){return e===" "||e==="\t"||e==="\n"||e==="\f"||e==="\r"}function r(t){var r,i=t.exec(e.substring(m));if(i){r=i[0];m+=r.length;return r}}var i=e.length,n=/^[ \t\n\r\u000c]+/,s=/^[, \t\n\r\u000c]+/,o=/^[^ \t\n\r\u000c]+/,a=/[,]+$/,l=/^\d+$/,c=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,u,f,h,p,d,m=0,g=[];while(true){r(s);if(m>=i){return g}u=r(o);f=[];if(u.slice(-1)===","){u=u.replace(a,"");b()}else{y()}}function y(){r(n);h="";p="in descriptor";while(true){d=e.charAt(m);if(p==="in descriptor"){if(t(d)){if(h){f.push(h);h="";p="after descriptor"}}else if(d===","){m+=1;if(h){f.push(h)}b();return}else if(d==="("){h=h+d;p="in parens"}else if(d===""){if(h){f.push(h)}b();return}else{h=h+d}}else if(p==="in parens"){if(d===")"){h=h+d;p="in descriptor"}else if(d===""){f.push(h);b();return}else{h=h+d}}else if(p==="after descriptor"){if(t(d)){}else if(d===""){b();return}else{p="in descriptor";m-=1}}m+=1}}function b(){var t=false,r,i,n,s,o={},a,h,p,d,m;for(s=0;s{var t=String;var r=function(){return{isColorSupported:false,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};e.exports=r();e.exports.createColors=r},40396:(e,t,r)=>{"use strict";let i=r(77793);class n extends i{constructor(e){super(e);this.type="atrule"}append(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...e)}prepend(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...e)}}e.exports=n;n.default=n;i.registerAtRule(n)},49371:(e,t,r)=>{"use strict";let i=r(63152);class n extends i{constructor(e){super(e);this.type="comment"}}e.exports=n;n.default=n},77793:(e,t,r)=>{"use strict";let{isClean:i,my:n}=r(84151);let s=r(35238);let o=r(49371);let a=r(63152);let l,c,u,f;function h(e){return e.map((e=>{if(e.nodes)e.nodes=h(e.nodes);delete e.source;return e}))}function p(e){e[i]=false;if(e.proxyOf.nodes){for(let t of e.proxyOf.nodes){p(t)}}}class d extends a{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}this.markDirty();return this}cleanRaws(e){super.cleanRaws(e);if(this.nodes){for(let t of this.nodes)t.cleanRaws(e)}}each(e){if(!this.proxyOf.nodes)return undefined;let t=this.getIterator();let r,i;while(this.indexes[t]e[t](...r.map((e=>{if(typeof e==="function"){return(t,r)=>e(t.toProxy(),r)}else{return e}})))}else if(t==="every"||t==="some"){return r=>e[t](((e,...t)=>r(e.toProxy(),...t)))}else if(t==="root"){return()=>e.root().toProxy()}else if(t==="nodes"){return e.nodes.map((e=>e.toProxy()))}else if(t==="first"||t==="last"){return e[t].toProxy()}else{return e[t]}},set(e,t,r){if(e[t]===r)return true;e[t]=r;if(t==="name"||t==="params"||t==="selector"){e.markDirty()}return true}}}index(e){if(typeof e==="number")return e;if(e.proxyOf)e=e.proxyOf;return this.proxyOf.nodes.indexOf(e)}insertAfter(e,t){let r=this.index(e);let i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let s of i)this.proxyOf.nodes.splice(r+1,0,s);let n;for(let s in this.indexes){n=this.indexes[s];if(r{if(!e[n])d.rebuild(e);e=e.proxyOf;if(e.parent)e.parent.removeChild(e);if(e[i])p(e);if(typeof e.raws.before==="undefined"){if(t&&typeof t.raws.before!=="undefined"){e.raws.before=t.raws.before.replace(/\S/g,"")}}e.parent=this.proxyOf;return e}));return r}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes){this.indexes[t]=this.indexes[t]+e.length}}this.markDirty();return this}push(e){e.parent=this;this.proxyOf.nodes.push(e);return this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=undefined;this.proxyOf.nodes=[];this.markDirty();return this}removeChild(e){e=this.index(e);this.proxyOf.nodes[e].parent=undefined;this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes){t=this.indexes[r];if(t>=e){this.indexes[r]=t-1}}this.markDirty();return this}replaceValues(e,t,r){if(!r){r=t;t={}}this.walkDecls((i=>{if(t.props&&!t.props.includes(i.prop))return;if(t.fast&&!i.value.includes(t.fast))return;i.value=i.value.replace(e,r)}));this.markDirty();return this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,r)=>{let i;try{i=e(t,r)}catch(n){throw t.addToError(n)}if(i!==false&&t.walk){i=t.walk(e)}return i}))}walkAtRules(e,t){if(!t){t=e;return this.walk(((e,r)=>{if(e.type==="atrule"){return t(e,r)}}))}if(e instanceof RegExp){return this.walk(((r,i)=>{if(r.type==="atrule"&&e.test(r.name)){return t(r,i)}}))}return this.walk(((r,i)=>{if(r.type==="atrule"&&r.name===e){return t(r,i)}}))}walkComments(e){return this.walk(((t,r)=>{if(t.type==="comment"){return e(t,r)}}))}walkDecls(e,t){if(!t){t=e;return this.walk(((e,r)=>{if(e.type==="decl"){return t(e,r)}}))}if(e instanceof RegExp){return this.walk(((r,i)=>{if(r.type==="decl"&&e.test(r.prop)){return t(r,i)}}))}return this.walk(((r,i)=>{if(r.type==="decl"&&r.prop===e){return t(r,i)}}))}walkRules(e,t){if(!t){t=e;return this.walk(((e,r)=>{if(e.type==="rule"){return t(e,r)}}))}if(e instanceof RegExp){return this.walk(((r,i)=>{if(r.type==="rule"&&e.test(r.selector)){return t(r,i)}}))}return this.walk(((r,i)=>{if(r.type==="rule"&&r.selector===e){return t(r,i)}}))}get first(){if(!this.proxyOf.nodes)return undefined;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return undefined;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}d.registerParse=e=>{l=e};d.registerRule=e=>{c=e};d.registerAtRule=e=>{u=e};d.registerRoot=e=>{f=e};e.exports=d;d.default=d;d.rebuild=e=>{if(e.type==="atrule"){Object.setPrototypeOf(e,u.prototype)}else if(e.type==="rule"){Object.setPrototypeOf(e,c.prototype)}else if(e.type==="decl"){Object.setPrototypeOf(e,s.prototype)}else if(e.type==="comment"){Object.setPrototypeOf(e,o.prototype)}else if(e.type==="root"){Object.setPrototypeOf(e,f.prototype)}e[n]=true;if(e.nodes){e.nodes.forEach((e=>{d.rebuild(e)}))}}},53614:(e,t,r)=>{"use strict";let i=r(48633);let n=r(49746);class s extends Error{constructor(e,t,r,i,n,o){super(e);this.name="CssSyntaxError";this.reason=e;if(n){this.file=n}if(i){this.source=i}if(o){this.plugin=o}if(typeof t!=="undefined"&&typeof r!=="undefined"){if(typeof t==="number"){this.line=t;this.column=r}else{this.line=t.line;this.column=t.column;this.endLine=r.line;this.endColumn=r.column}}this.setMessage();if(Error.captureStackTrace){Error.captureStackTrace(this,s)}}setMessage(){this.message=this.plugin?this.plugin+": ":"";this.message+=this.file?this.file:"";if(typeof this.line!=="undefined"){this.message+=":"+this.line+":"+this.column}this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;if(e==null)e=i.isColorSupported;if(n){if(e)t=n(t)}let r=t.split(/\r?\n/);let s=Math.max(this.line-3,0);let o=Math.min(this.line+2,r.length);let a=String(o).length;let l,c;if(e){let{bold:e,gray:t,red:r}=i.createColors(true);l=t=>e(r(t));c=e=>t(e)}else{l=c=e=>e}return r.slice(s,o).map(((e,t)=>{let r=s+1+t;let i=" "+(" "+r).slice(-a)+" | ";if(r===this.line){let t=c(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+c(i)+e+"\n "+t+l("^")}return" "+c(i)+e})).join("\n")}toString(){let e=this.showSourceCode();if(e){e="\n\n"+e+"\n"}return this.name+": "+this.message+e}}e.exports=s;s.default=s},35238:(e,t,r)=>{"use strict";let i=r(63152);class n extends i{constructor(e){if(e&&typeof e.value!=="undefined"&&typeof e.value!=="string"){e={...e,value:String(e.value)}}super(e);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}e.exports=n;n.default=n},40145:(e,t,r)=>{"use strict";let i=r(77793);let n,s;class o extends i{constructor(e){super({type:"document",...e});if(!this.nodes){this.nodes=[]}}toResult(e={}){let t=new n(new s,this,e);return t.stringify()}}o.registerLazyResult=e=>{n=e};o.registerProcessor=e=>{s=e};e.exports=o;o.default=o},33438:(e,t,r)=>{"use strict";let i=r(35238);let n=r(93878);let s=r(49371);let o=r(40396);let a=r(61106);let l=r(25644);let c=r(61534);function u(e,t){if(Array.isArray(e))return e.map((e=>u(e)));let{inputs:r,...f}=e;if(r){t=[];for(let e of r){let r={...e,__proto__:a.prototype};if(r.map){r.map={...r.map,__proto__:n.prototype}}t.push(r)}}if(f.nodes){f.nodes=e.nodes.map((e=>u(e,t)))}if(f.source){let{inputId:e,...r}=f.source;f.source=r;if(e!=null){f.source.input=t[e]}}if(f.type==="root"){return new l(f)}else if(f.type==="decl"){return new i(f)}else if(f.type==="rule"){return new c(f)}else if(f.type==="comment"){return new s(f)}else if(f.type==="atrule"){return new o(f)}else{throw new Error("Unknown node type: "+e.type)}}e.exports=u;u.default=u},61106:(e,t,r)=>{"use strict";let{SourceMapConsumer:i,SourceMapGenerator:n}=r(21866);let{fileURLToPath:s,pathToFileURL:o}=r(52739);let{isAbsolute:a,resolve:l}=r(197);let{nanoid:c}=r(95042);let u=r(49746);let f=r(53614);let h=r(93878);let p=Symbol("fromOffsetCache");let d=Boolean(i&&n);let m=Boolean(l&&a);class g{constructor(e,t={}){if(e===null||typeof e==="undefined"||typeof e==="object"&&!e.toString){throw new Error(`PostCSS received ${e} instead of CSS string`)}this.css=e.toString();if(this.css[0]==="\ufeff"||this.css[0]==="￾"){this.hasBOM=true;this.css=this.css.slice(1)}else{this.hasBOM=false}if(t.from){if(!m||/^\w+:\/\//.test(t.from)||a(t.from)){this.file=t.from}else{this.file=l(t.from)}}if(m&&d){let e=new h(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;if(!this.file&&t)this.file=this.mapResolve(t)}}if(!this.file){this.id=""}if(this.map)this.map.file=this.from}error(e,t,r,i={}){let n,s,a;if(t&&typeof t==="object"){let e=t;let i=r;if(typeof e.offset==="number"){let i=this.fromOffset(e.offset);t=i.line;r=i.col}else{t=e.line;r=e.column}if(typeof i.offset==="number"){let e=this.fromOffset(i.offset);s=e.line;a=e.col}else{s=i.line;a=i.column}}else if(!r){let e=this.fromOffset(t);t=e.line;r=e.col}let l=this.origin(t,r,s,a);if(l){n=new f(e,l.endLine===undefined?l.line:{column:l.column,line:l.line},l.endLine===undefined?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,i.plugin)}else{n=new f(e,s===undefined?t:{column:r,line:t},s===undefined?r:{column:a,line:s},this.css,this.file,i.plugin)}n.input={column:r,endColumn:a,endLine:s,line:t,source:this.css};if(this.file){if(o){n.input.url=o(this.file).toString()}n.input.file=this.file}return n}fromOffset(e){let t,r;if(!this[p]){let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let i=0,n=e.length;i=t){i=r.length-1}else{let t=r.length-2;let n;while(i>1);if(e=r[n+1]){i=n+1}else{i=n;break}}}return{col:e-r[i]+1,line:i+1}}mapResolve(e){if(/^\w+:\/\//.test(e)){return e}return l(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){if(!this.map)return false;let n=this.map.consumer();let l=n.originalPositionFor({column:t,line:e});if(!l.source)return false;let c;if(typeof r==="number"){c=n.originalPositionFor({column:i,line:r})}let u;if(a(l.source)){u=o(l.source)}else{u=new URL(l.source,this.map.consumer().sourceRoot||o(this.map.mapFile))}let f={column:l.column,endColumn:c&&c.column,endLine:c&&c.line,line:l.line,url:u.toString()};if(u.protocol==="file:"){if(s){f.file=s(u)}else{throw new Error(`file: protocol is not available in this PostCSS build`)}}let h=n.sourceContentFor(l.source);if(h)f.source=h;return f}toJSON(){let e={};for(let t of["hasBOM","css","file","id"]){if(this[t]!=null){e[t]=this[t]}}if(this.map){e.map={...this.map};if(e.map.consumerCache){e.map.consumerCache=undefined}}return e}get from(){return this.file||this.id}}e.exports=g;g.default=g;if(u&&u.registerInput){u.registerInput(g)}},96966:(e,t,r)=>{"use strict";let{isClean:i,my:n}=r(84151);let s=r(13604);let o=r(83303);let a=r(77793);let l=r(40145);let c=r(6156);let u=r(33717);let f=r(69577);let h=r(25644);const p={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"};const d={AtRule:true,AtRuleExit:true,Comment:true,CommentExit:true,Declaration:true,DeclarationExit:true,Document:true,DocumentExit:true,Once:true,OnceExit:true,postcssPlugin:true,prepare:true,Root:true,RootExit:true,Rule:true,RuleExit:true};const m={Once:true,postcssPlugin:true,prepare:true};const g=0;function y(e){return typeof e==="object"&&typeof e.then==="function"}function b(e){let t=false;let r=p[e.type];if(e.type==="decl"){t=e.prop.toLowerCase()}else if(e.type==="atrule"){t=e.name.toLowerCase()}if(t&&e.append){return[r,r+"-"+t,g,r+"Exit",r+"Exit-"+t]}else if(t){return[r,r+"-"+t,r+"Exit",r+"Exit-"+t]}else if(e.append){return[r,g,r+"Exit"]}else{return[r,r+"Exit"]}}function v(e){let t;if(e.type==="document"){t=["Document",g,"DocumentExit"]}else if(e.type==="root"){t=["Root",g,"RootExit"]}else{t=b(e)}return{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function w(e){e[i]=false;if(e.nodes)e.nodes.forEach((e=>w(e)));return e}let x={};class S{constructor(e,t,r){this.stringified=false;this.processed=false;let i;if(typeof t==="object"&&t!==null&&(t.type==="root"||t.type==="document")){i=w(t)}else if(t instanceof S||t instanceof u){i=w(t.root);if(t.map){if(typeof r.map==="undefined")r.map={};if(!r.map.inline)r.map.inline=false;r.map.prev=t.map}}else{let e=f;if(r.syntax)e=r.syntax.parse;if(r.parser)e=r.parser;if(e.parse)e=e.parse;try{i=e(t,r)}catch(s){this.processed=true;this.error=s}if(i&&!i[n]){a.rebuild(i)}}this.result=new u(e,i,r);this.helpers={...x,postcss:x,result:this.result};this.plugins=this.processor.plugins.map((e=>{if(typeof e==="object"&&e.prepare){return{...e,...e.prepare(this.result)}}else{return e}}))}async(){if(this.error)return Promise.reject(this.error);if(this.processed)return Promise.resolve(this.result);if(!this.processing){this.processing=this.runAsync()}return this.processing}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{if(t)t.addToError(e);this.error=e;if(e.name==="CssSyntaxError"&&!e.plugin){e.plugin=r.postcssPlugin;e.setMessage()}else if(r.postcssVersion){if(false){}}}catch(i){if(console&&console.error)console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{if(!this.listeners[t])this.listeners[t]=[];this.listeners[t].push([e,r])};for(let t of this.plugins){if(typeof t==="object"){for(let r in t){if(!d[r]&&/^[A-Z]/.test(r)){throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. `+`Try to update PostCSS (${this.processor.version} now).`)}if(!m[r]){if(typeof t[r]==="object"){for(let i in t[r]){if(i==="*"){e(t,r,t[r][i])}else{e(t,r+"-"+i.toLowerCase(),t[r][i])}}}else if(typeof t[r]==="function"){e(t,r,t[r])}}}}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let r=0;r0){let e=this.visitTick(r);if(y(e)){try{await e}catch(t){let e=r[r.length-1].node;throw this.handleError(t,e)}}}}if(this.listeners.OnceExit){for(let[r,i]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let t=e.nodes.map((e=>i(e,this.helpers)));await Promise.all(t)}else{await i(e,this.helpers)}}catch(t){throw this.handleError(t)}}}}this.processed=true;return this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e==="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));if(y(t[0])){return Promise.all(t)}return t}return e.Once(this.result.root,this.helpers)}else if(typeof e==="function"){return e(this.result.root,this.result)}}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=true;this.sync();let e=this.result.opts;let t=o;if(e.syntax)t=e.syntax.stringify;if(e.stringifier)t=e.stringifier;if(t.stringify)t=t.stringify;let r=new s(t,this.result.root,this.result.opts);let i=r.generate();this.result.css=i[0];this.result.map=i[1];return this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;this.processed=true;if(this.processing){throw this.getAsyncError()}for(let e of this.plugins){let t=this.runOnRoot(e);if(y(t)){throw this.getAsyncError()}}this.prepareVisitors();if(this.hasListener){let e=this.result.root;while(!e[i]){e[i]=true;this.walkSync(e)}if(this.listeners.OnceExit){if(e.type==="document"){for(let t of e.nodes){this.visitSync(this.listeners.OnceExit,t)}}else{this.visitSync(this.listeners.OnceExit,e)}}}return this.result}then(e,t){if(false){}return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[i,n]of e){this.result.lastPlugin=i;let e;try{e=n(t,this.helpers)}catch(r){throw this.handleError(r,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent){return true}if(y(e)){throw this.getAsyncError()}}}visitTick(e){let t=e[e.length-1];let{node:r,visitors:n}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(n.length>0&&t.visitorIndex{if(!e[i])this.walkSync(e)}))}}else{let t=this.listeners[r];if(t){if(this.visitSync(t,e.toProxy()))return}}}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}S.registerPostcss=e=>{x=e};e.exports=S;S.default=S;h.registerLazyResult(S);l.registerLazyResult(S)},81752:e=>{"use strict";let t={comma(e){return t.split(e,[","],true)},space(e){let r=[" ","\n","\t"];return t.split(e,r)},split(e,t,r){let i=[];let n="";let s=false;let o=0;let a=false;let l="";let c=false;for(let u of e){if(c){c=false}else if(u==="\\"){c=true}else if(a){if(u===l){a=false}}else if(u==='"'||u==="'"){a=true;l=u}else if(u==="("){o+=1}else if(u===")"){if(o>0)o-=1}else if(o===0){if(t.includes(u))s=true}if(s){if(n!=="")i.push(n.trim());n="";s=false}else{n+=u}}if(r||n!=="")i.push(n.trim());return i}};e.exports=t;t.default=t},13604:(e,t,r)=>{"use strict";let{SourceMapConsumer:i,SourceMapGenerator:n}=r(21866);let{dirname:s,relative:o,resolve:a,sep:l}=r(197);let{pathToFileURL:c}=r(52739);let u=r(61106);let f=Boolean(i&&n);let h=Boolean(s&&a&&o&&l);class p{constructor(e,t,r,i){this.stringify=e;this.mapOpts=r.map||{};this.root=t;this.opts=r;this.css=i;this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute;this.memoizedFileURLs=new Map;this.memoizedPaths=new Map;this.memoizedURLs=new Map}addAnnotation(){let e;if(this.isInline()){e="data:application/json;base64,"+this.toBase64(this.map.toString())}else if(typeof this.mapOpts.annotation==="string"){e=this.mapOpts.annotation}else if(typeof this.mapOpts.annotation==="function"){e=this.mapOpts.annotation(this.opts.to,this.root)}else{e=this.outputFile()+".map"}let t="\n";if(this.css.includes("\r\n"))t="\r\n";this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file));let r=e.root||s(e.file);let n;if(this.mapOpts.sourcesContent===false){n=new i(e.text);if(n.sourcesContent){n.sourcesContent=n.sourcesContent.map((()=>null))}}else{n=e.consumer()}this.map.applySourceMap(n,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation===false)return;if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--){e=this.root.nodes[t];if(e.type!=="comment")continue;if(e.text.indexOf("# sourceMappingURL=")===0){this.root.removeChild(t)}}}else if(this.css){this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,"")}}generate(){this.clearAnnotation();if(h&&f&&this.isMap()){return this.generateMap()}else{let e="";this.stringify(this.root,(t=>{e+=t}));return[e]}}generateMap(){if(this.root){this.generateString()}else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile();this.map=n.fromSourceMap(e)}else{this.map=new n({file:this.outputFile()});this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""})}if(this.isSourcesContent())this.setSourcesContent();if(this.root&&this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline()){return[this.css]}else{return[this.css,this.map]}}generateString(){this.css="";this.map=new n({file:this.outputFile()});let e=1;let t=1;let r="";let i={generated:{column:0,line:0},original:{column:0,line:0},source:""};let s,o;this.stringify(this.root,((n,a,l)=>{this.css+=n;if(a&&l!=="end"){i.generated.line=e;i.generated.column=t-1;if(a.source&&a.source.start){i.source=this.sourcePath(a);i.original.line=a.source.start.line;i.original.column=a.source.start.column-1;this.map.addMapping(i)}else{i.source=r;i.original.line=1;i.original.column=0;this.map.addMapping(i)}}s=n.match(/\n/g);if(s){e+=s.length;o=n.lastIndexOf("\n");t=n.length-o}else{t+=n.length}if(a&&l!=="start"){let n=a.parent||{raws:{}};let s=a.type==="decl"||a.type==="atrule"&&!a.nodes;if(!s||a!==n.last||n.raws.semicolon){if(a.source&&a.source.end){i.source=this.sourcePath(a);i.original.line=a.source.end.line;i.original.column=a.source.end.column-1;i.generated.line=e;i.generated.column=t-2;this.map.addMapping(i)}else{i.source=r;i.original.line=1;i.original.column=0;i.generated.line=e;i.generated.column=t-1;this.map.addMapping(i)}}}}))}isAnnotation(){if(this.isInline()){return true}if(typeof this.mapOpts.annotation!=="undefined"){return this.mapOpts.annotation}if(this.previous().length){return this.previous().some((e=>e.annotation))}return true}isInline(){if(typeof this.mapOpts.inline!=="undefined"){return this.mapOpts.inline}let e=this.mapOpts.annotation;if(typeof e!=="undefined"&&e!==true){return false}if(this.previous().length){return this.previous().some((e=>e.inline))}return true}isMap(){if(typeof this.opts.map!=="undefined"){return!!this.opts.map}return this.previous().length>0}isSourcesContent(){if(typeof this.mapOpts.sourcesContent!=="undefined"){return this.mapOpts.sourcesContent}if(this.previous().length){return this.previous().some((e=>e.withContent()))}return true}outputFile(){if(this.opts.to){return this.path(this.opts.to)}else if(this.opts.from){return this.path(this.opts.from)}else{return"to.css"}}path(e){if(this.mapOpts.absolute)return e;if(e.charCodeAt(0)===60)return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?s(this.opts.to):".";if(typeof this.mapOpts.annotation==="string"){r=s(a(r,this.mapOpts.annotation))}let i=o(r,e);this.memoizedPaths.set(e,i);return i}previous(){if(!this.previousMaps){this.previousMaps=[];if(this.root){this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;if(!this.previousMaps.includes(t)){this.previousMaps.push(t)}}}))}else{let e=new u(this.css,this.opts);if(e.map)this.previousMaps.push(e.map)}}return this.previousMaps}setSourcesContent(){let e={};if(this.root){this.root.walk((t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=true;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}}))}else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(e,this.css)}}sourcePath(e){if(this.mapOpts.from){return this.toUrl(this.mapOpts.from)}else if(this.usesFileUrls){return this.toFileUrl(e.source.input.from)}else{return this.toUrl(this.path(e.source.input.from))}}toBase64(e){if(Buffer){return Buffer.from(e).toString("base64")}else{return window.btoa(unescape(encodeURIComponent(e)))}}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(c){let t=c(e).toString();this.memoizedFileURLs.set(e,t);return t}else{throw new Error("`map.absolute` option is not available in this PostCSS build")}}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;if(l==="\\"){e=e.replace(/\\/g,"/")}let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);this.memoizedURLs.set(e,r);return r}}e.exports=p},84211:(e,t,r)=>{"use strict";let i=r(13604);let n=r(83303);let s=r(6156);let o=r(69577);const a=r(33717);class l{constructor(e,t,r){t=t.toString();this.stringified=false;this._processor=e;this._css=t;this._opts=r;this._map=undefined;let s;let o=n;this.result=new a(this._processor,s,this._opts);this.result.css=t;let l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let c=new i(o,s,this._opts,t);if(c.isMap()){let[e,t]=c.generate();if(e){this.result.css=e}if(t){this.result.map=t}}}async(){if(this.error)return Promise.reject(this.error);return Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){if(false){}return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root){return this._root}let e;let t=o;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error){throw this.error}else{this._root=e;return e}}get[Symbol.toStringTag](){return"NoWorkResult"}}e.exports=l;l.default=l},63152:(e,t,r)=>{"use strict";let{isClean:i,my:n}=r(84151);let s=r(53614);let o=r(47668);let a=r(83303);function l(e,t){let r=new e.constructor;for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i)){continue}if(i==="proxyCache")continue;let n=e[i];let s=typeof n;if(i==="parent"&&s==="object"){if(t)r[i]=t}else if(i==="source"){r[i]=n}else if(Array.isArray(n)){r[i]=n.map((e=>l(e,r)))}else{if(s==="object"&&n!==null)n=l(n);r[i]=n}}return r}class c{constructor(e={}){this.raws={};this[i]=false;this[n]=true;for(let t in e){if(t==="nodes"){this.nodes=[];for(let r of e[t]){if(typeof r.clone==="function"){this.append(r.clone())}else{this.append(r)}}}else{this[t]=e[t]}}}addToError(e){e.postcssNode=this;if(e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){this.parent.insertAfter(this,e);return this}assign(e={}){for(let t in e){this[t]=e[t]}return this}before(e){this.parent.insertBefore(this,e);return this}cleanRaws(e){delete this.raws.before;delete this.raws.after;if(!e)delete this.raws.between}clone(e={}){let t=l(this);for(let r in e){t[r]=e[r]}return t}cloneAfter(e={}){let t=this.clone(e);this.parent.insertAfter(this,t);return t}cloneBefore(e={}){let t=this.clone(e);this.parent.insertBefore(this,t);return t}error(e,t={}){if(this.source){let{end:r,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new s(e)}getProxyProcessor(){return{get(e,t){if(t==="proxyOf"){return e}else if(t==="root"){return()=>e.root().toProxy()}else{return e[t]}},set(e,t,r){if(e[t]===r)return true;e[t]=r;if(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text"){e.markDirty()}return true}}}markDirty(){if(this[i]){this[i]=false;let e=this;while(e=e.parent){e[i]=false}}}next(){if(!this.parent)return undefined;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index){r=this.positionInside(e.index,t)}else if(e.word){t=this.toString();let i=t.indexOf(e.word);if(i!==-1)r=this.positionInside(i,t)}return r}positionInside(e,t){let r=t||this.toString();let i=this.source.start.column;let n=this.source.start.line;for(let s=0;s{if(typeof e==="object"&&e.toJSON){return e.toJSON(null,t)}else{return e}}))}else if(typeof e==="object"&&e.toJSON){r[s]=e.toJSON(null,t)}else if(s==="source"){let i=t.get(e.input);if(i==null){i=n;t.set(e.input,n);n++}r[s]={end:e.end,inputId:i,start:e.start}}else{r[s]=e}}if(i){r.inputs=[...t.keys()].map((e=>e.toJSON()))}return r}toProxy(){if(!this.proxyCache){this.proxyCache=new Proxy(this,this.getProxyProcessor())}return this.proxyCache}toString(e=a){if(e.stringify)e=e.stringify;let t="";e(this,(e=>{t+=e}));return t}warn(e,t,r){let i={node:this};for(let n in r)i[n]=r[n];return e.warn(t,i)}get proxyOf(){return this}}e.exports=c;c.default=c},69577:(e,t,r)=>{"use strict";let i=r(77793);let n=r(68339);let s=r(61106);function o(e,t){let r=new s(e,t);let i=new n(r);try{i.parse()}catch(o){if(false){}throw o}return i.root}e.exports=o;o.default=o;i.registerParse(o)},68339:(e,t,r)=>{"use strict";let i=r(35238);let n=r(45781);let s=r(49371);let o=r(40396);let a=r(25644);let l=r(61534);const c={empty:true,space:true};function u(e){for(let t=e.length-1;t>=0;t--){let r=e[t];let i=r[3]||r[2];if(i)return i}}class f{constructor(e){this.input=e;this.root=new a;this.current=this.root;this.spaces="";this.semicolon=false;this.customProperty=false;this.createTokenizer();this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new o;t.name=e[1].slice(1);if(t.name===""){this.unnamedAtrule(t,e)}this.init(t,e[2]);let r;let i;let n;let s=false;let a=false;let l=[];let c=[];while(!this.tokenizer.endOfFile()){e=this.tokenizer.nextToken();r=e[0];if(r==="("||r==="["){c.push(r==="("?")":"]")}else if(r==="{"&&c.length>0){c.push("}")}else if(r===c[c.length-1]){c.pop()}if(c.length===0){if(r===";"){t.source.end=this.getPosition(e[2]);t.source.end.offset++;this.semicolon=true;break}else if(r==="{"){a=true;break}else if(r==="}"){if(l.length>0){n=l.length-1;i=l[n];while(i&&i[0]==="space"){i=l[--n]}if(i){t.source.end=this.getPosition(i[3]||i[2]);t.source.end.offset++}}this.end(e);break}else{l.push(e)}}else{l.push(e)}if(this.tokenizer.endOfFile()){s=true;break}}t.raws.between=this.spacesAndCommentsFromEnd(l);if(l.length){t.raws.afterName=this.spacesAndCommentsFromStart(l);this.raw(t,"params",l);if(s){e=l[l.length-1];t.source.end=this.getPosition(e[3]||e[2]);t.source.end.offset++;this.spaces=t.raws.between;t.raws.between=""}}else{t.raws.afterName="";t.params=""}if(a){t.nodes=[];this.current=t}}checkMissedSemicolon(e){let t=this.colon(e);if(t===false)return;let r=0;let i;for(let n=t-1;n>=0;n--){i=e[n];if(i[0]!=="space"){r+=1;if(r===2)break}}throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0;let r,i,n;for(let[s,o]of e.entries()){r=o;i=r[0];if(i==="("){t+=1}if(i===")"){t-=1}if(t===0&&i===":"){if(!n){this.doubleColon(r)}else if(n[0]==="word"&&n[1]==="progid"){continue}else{return s}}n=r}return false}comment(e){let t=new s;this.init(t,e[2]);t.source.end=this.getPosition(e[3]||e[2]);t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r)){t.text="";t.raws.left=r;t.raws.right=""}else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2];t.raws.left=e[1];t.raws.right=e[3]}}createTokenizer(){this.tokenizer=n(this.input)}decl(e,t){let r=new i;this.init(r,e[0][2]);let n=e[e.length-1];if(n[0]===";"){this.semicolon=true;e.pop()}r.source.end=this.getPosition(n[3]||n[2]||u(e));r.source.end.offset++;while(e[0][0]!=="word"){if(e.length===1)this.unknownWord(e);r.raws.before+=e.shift()[1]}r.source.start=this.getPosition(e[0][2]);r.prop="";while(e.length){let t=e[0][0];if(t===":"||t==="space"||t==="comment"){break}r.prop+=e.shift()[1]}r.raws.between="";let s;while(e.length){s=e.shift();if(s[0]===":"){r.raws.between+=s[1];break}else{if(s[0]==="word"&&/\w/.test(s[1])){this.unknownWord([s])}r.raws.between+=s[1]}}if(r.prop[0]==="_"||r.prop[0]==="*"){r.raws.before+=r.prop[0];r.prop=r.prop.slice(1)}let o=[];let a;while(e.length){a=e[0][0];if(a!=="space"&&a!=="comment")break;o.push(e.shift())}this.precheckMissedSemicolon(e);for(let i=e.length-1;i>=0;i--){s=e[i];if(s[1].toLowerCase()==="!important"){r.important=true;let t=this.stringFrom(e,i);t=this.spacesFromEnd(e)+t;if(t!==" !important")r.raws.important=t;break}else if(s[1].toLowerCase()==="important"){let t=e.slice(0);let n="";for(let e=i;e>0;e--){let r=t[e][0];if(n.trim().indexOf("!")===0&&r!=="space"){break}n=t.pop()[1]+n}if(n.trim().indexOf("!")===0){r.important=true;r.raws.important=n;e=t}}if(s[0]!=="space"&&s[0]!=="comment"){break}}let l=e.some((e=>e[0]!=="space"&&e[0]!=="comment"));if(l){r.raws.between+=o.map((e=>e[1])).join("");o=[]}this.raw(r,"value",o.concat(e),t);if(r.value.includes(":")&&!t){this.checkMissedSemicolon(e)}}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new l;this.init(t,e[2]);t.selector="";t.raws.between="";this.current=t}end(e){if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.semicolon=false;this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.spaces="";if(this.current.parent){this.current.source.end=this.getPosition(e[2]);this.current.source.end.offset++;this.current=this.current.parent}else{this.unexpectedClose(e)}}endFile(){if(this.current.parent)this.unclosedBlock();if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){this.spaces+=e[1];if(this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];if(e&&e.type==="rule"&&!e.raws.ownSemicolon){e.raws.ownSemicolon=this.spaces;this.spaces=""}}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e);e.source={input:this.input,start:this.getPosition(t)};e.raws.before=this.spaces;this.spaces="";if(e.type!=="comment")this.semicolon=false}other(e){let t=false;let r=null;let i=false;let n=null;let s=[];let o=e[1].startsWith("--");let a=[];let l=e;while(l){r=l[0];a.push(l);if(r==="("||r==="["){if(!n)n=l;s.push(r==="("?")":"]")}else if(o&&i&&r==="{"){if(!n)n=l;s.push("}")}else if(s.length===0){if(r===";"){if(i){this.decl(a,o);return}else{break}}else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop());t=true;break}else if(r===":"){i=true}}else if(r===s[s.length-1]){s.pop();if(s.length===0)n=null}l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())t=true;if(s.length>0)this.unclosedBracket(n);if(t&&i){if(!o){while(a.length){l=a[a.length-1][0];if(l!=="space"&&l!=="comment")break;this.tokenizer.back(a.pop())}}this.decl(a,o)}else{this.unknownWord(a)}}parse(){let e;while(!this.tokenizer.endOfFile()){e=this.tokenizer.nextToken();switch(e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let n,s;let o=r.length;let a="";let l=true;let u,f;for(let h=0;he+t[1]),"");e.raws[t]={raw:i,value:a}}e[t]=a}rule(e){e.pop();let t=new l;this.init(t,e[0][2]);t.raws.between=this.spacesAndCommentsFromEnd(e);this.raw(t,"selector",e);this.current=t}spacesAndCommentsFromEnd(e){let t;let r="";while(e.length){t=e[e.length-1][0];if(t!=="space"&&t!=="comment")break;r=e.pop()[1]+r}return r}spacesAndCommentsFromStart(e){let t;let r="";while(e.length){t=e[0][0];if(t!=="space"&&t!=="comment")break;r+=e.shift()[1]}return r}spacesFromEnd(e){let t;let r="";while(e.length){t=e[e.length-1][0];if(t!=="space")break;r=e.pop()[1]+r}return r}stringFrom(e,t){let r="";for(let i=t;i{"use strict";var i=r(65606);let n=r(53614);let s=r(35238);let o=r(96966);let a=r(77793);let l=r(96846);let c=r(83303);let u=r(33438);let f=r(40145);let h=r(60038);let p=r(49371);let d=r(40396);let m=r(33717);let g=r(61106);let y=r(69577);let b=r(81752);let v=r(61534);let w=r(25644);let x=r(63152);function S(...e){if(e.length===1&&Array.isArray(e[0])){e=e[0]}return new l(e)}S.plugin=function e(t,r){let n=false;function s(...e){if(console&&console.warn&&!n){n=true;console.warn(t+": postcss.plugin was deprecated. Migration guide:\n"+"https://evilmartians.com/chronicles/postcss-8-plugin-migration");if(i.env.LANG&&i.env.LANG.startsWith("cn")){console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\n"+"https://www.w3ctech.com/topic/2226")}}let s=r(...e);s.postcssPlugin=t;s.postcssVersion=(new l).version;return s}let o;Object.defineProperty(s,"postcss",{get(){if(!o)o=s();return o}});s.process=function(e,t,r){return S([s(r)]).process(e,t)};return s};S.stringify=c;S.parse=y;S.fromJSON=u;S.list=b;S.comment=e=>new p(e);S.atRule=e=>new d(e);S.decl=e=>new s(e);S.rule=e=>new v(e);S.root=e=>new w(e);S.document=e=>new f(e);S.CssSyntaxError=n;S.Declaration=s;S.Container=a;S.Processor=l;S.Document=f;S.Comment=p;S.Warning=h;S.AtRule=d;S.Result=m;S.Input=g;S.Rule=v;S.Root=w;S.Node=x;o.registerPostcss(S);e.exports=S;S.default=S},93878:(e,t,r)=>{"use strict";let{SourceMapConsumer:i,SourceMapGenerator:n}=r(21866);let{existsSync:s,readFileSync:o}=r(19977);let{dirname:a,join:l}=r(197);function c(e){if(Buffer){return Buffer.from(e,"base64").toString()}else{return window.atob(e)}}class u{constructor(e,t){if(t.map===false)return;this.loadAnnotation(e);this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:undefined;let i=this.loadMap(t.from,r);if(!this.mapFile&&t.from){this.mapFile=t.from}if(this.mapFile)this.root=a(this.mapFile);if(i)this.text=i}consumer(){if(!this.consumerCache){this.consumerCache=new i(this.text)}return this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/;let r=/^data:application\/json;base64,/;let i=/^data:application\/json;charset=utf-?8,/;let n=/^data:application\/json,/;if(i.test(e)||n.test(e)){return decodeURIComponent(e.substr(RegExp.lastMatch.length))}if(t.test(e)||r.test(e)){return c(e.substr(RegExp.lastMatch.length))}let s=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+s)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){if(typeof e!=="object")return false;return typeof e.mappings==="string"||typeof e._mappings==="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop());let i=e.indexOf("*/",r);if(r>-1&&i>-1){this.annotation=this.getAnnotationURL(e.substring(r,i))}}loadFile(e){this.root=a(e);if(s(e)){this.mapFile=e;return o(e,"utf-8").toString().trim()}}loadMap(e,t){if(t===false)return false;if(t){if(typeof t==="string"){return t}else if(typeof t==="function"){let r=t(e);if(r){let e=this.loadFile(r);if(!e){throw new Error("Unable to load previous source map: "+r.toString())}return e}}else if(t instanceof i){return n.fromSourceMap(t).toString()}else if(t instanceof n){return t.toString()}else if(this.isMap(t)){return JSON.stringify(t)}else{throw new Error("Unsupported previous source map format: "+t.toString())}}else if(this.inline){return this.decodeInline(this.annotation)}else if(this.annotation){let t=this.annotation;if(e)t=l(a(e),t);return this.loadFile(t)}}startWith(e,t){if(!e)return false;return e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}e.exports=u;u.default=u},96846:(e,t,r)=>{"use strict";let i=r(84211);let n=r(96966);let s=r(40145);let o=r(25644);class a{constructor(e=[]){this.version="8.4.31";this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e){if(r.postcss===true){r=r()}else if(r.postcss){r=r.postcss}if(typeof r==="object"&&Array.isArray(r.plugins)){t=t.concat(r.plugins)}else if(typeof r==="object"&&r.postcssPlugin){t.push(r)}else if(typeof r==="function"){t.push(r)}else if(typeof r==="object"&&(r.parse||r.stringify)){if(false){}}else{throw new Error(r+" is not a PostCSS plugin")}}return t}process(e,t={}){if(this.plugins.length===0&&typeof t.parser==="undefined"&&typeof t.stringifier==="undefined"&&typeof t.syntax==="undefined"){return new i(this,e,t)}else{return new n(this,e,t)}}use(e){this.plugins=this.plugins.concat(this.normalize([e]));return this}}e.exports=a;a.default=a;o.registerProcessor(a);s.registerProcessor(a)},33717:(e,t,r)=>{"use strict";let i=r(60038);class n{constructor(e,t,r){this.processor=e;this.messages=[];this.root=t;this.opts=r;this.css=undefined;this.map=undefined}toString(){return this.css}warn(e,t={}){if(!t.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin){t.plugin=this.lastPlugin.postcssPlugin}}let r=new i(e,t);this.messages.push(r);return r}warnings(){return this.messages.filter((e=>e.type==="warning"))}get content(){return this.css}}e.exports=n;n.default=n},25644:(e,t,r)=>{"use strict";let i=r(77793);let n,s;class o extends i{constructor(e){super(e);this.type="root";if(!this.nodes)this.nodes=[]}normalize(e,t,r){let i=super.normalize(e);if(t){if(r==="prepend"){if(this.nodes.length>1){t.raws.before=this.nodes[1].raws.before}else{delete t.raws.before}}else if(this.first!==t){for(let e of i){e.raws.before=t.raws.before}}}return i}removeChild(e,t){let r=this.index(e);if(!t&&r===0&&this.nodes.length>1){this.nodes[1].raws.before=this.nodes[r].raws.before}return super.removeChild(e)}toResult(e={}){let t=new n(new s,this,e);return t.stringify()}}o.registerLazyResult=e=>{n=e};o.registerProcessor=e=>{s=e};e.exports=o;o.default=o;i.registerRoot(o)},61534:(e,t,r)=>{"use strict";let i=r(77793);let n=r(81752);class s extends i{constructor(e){super(e);this.type="rule";if(!this.nodes)this.nodes=[]}get selectors(){return n.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null;let r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}e.exports=s;s.default=s;i.registerRule(s)},47668:e=>{"use strict";const t={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:false};function r(e){return e[0].toUpperCase()+e.slice(1)}class i{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name;let i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!=="undefined"){r+=e.raws.afterName}else if(i){r+=" "}if(e.nodes){this.block(e,r+i)}else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+i+n,e)}}beforeAfter(e,t){let r;if(e.type==="decl"){r=this.raw(e,null,"beforeDecl")}else if(e.type==="comment"){r=this.raw(e,null,"beforeComment")}else if(t==="before"){r=this.raw(e,null,"beforeRule")}else{r=this.raw(e,null,"beforeClose")}let i=e.parent;let n=0;while(i&&i.type!=="root"){n+=1;i=i.parent}if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length){for(let e=0;e0){if(e.nodes[t].type!=="comment")break;t-=1}let r=this.raw(e,"semicolon");for(let i=0;i{s=e.raws[i];if(typeof s!=="undefined")return false}))}}if(typeof s==="undefined")s=t[n];a.rawCache[n]=s;return s}rawBeforeClose(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length>0){if(typeof e.raws.after!=="undefined"){t=e.raws.after;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}}));if(t)t=t.replace(/\S/g,"");return t}rawBeforeComment(e,t){let r;e.walkComments((e=>{if(typeof e.raws.before!=="undefined"){r=e.raws.before;if(r.includes("\n")){r=r.replace(/[^\n]+$/,"")}return false}}));if(typeof r==="undefined"){r=this.raw(t,null,"beforeDecl")}else if(r){r=r.replace(/\S/g,"")}return r}rawBeforeDecl(e,t){let r;e.walkDecls((e=>{if(typeof e.raws.before!=="undefined"){r=e.raws.before;if(r.includes("\n")){r=r.replace(/[^\n]+$/,"")}return false}}));if(typeof r==="undefined"){r=this.raw(t,null,"beforeRule")}else if(r){r=r.replace(/\S/g,"")}return r}rawBeforeOpen(e){let t;e.walk((e=>{if(e.type!=="decl"){t=e.raws.between;if(typeof t!=="undefined")return false}}));return t}rawBeforeRule(e){let t;e.walk((r=>{if(r.nodes&&(r.parent!==e||e.first!==r)){if(typeof r.raws.before!=="undefined"){t=r.raws.before;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}}));if(t)t=t.replace(/\S/g,"");return t}rawColon(e){let t;e.walkDecls((e=>{if(typeof e.raws.between!=="undefined"){t=e.raws.between.replace(/[^\s:]/g,"");return false}}));return t}rawEmptyBody(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length===0){t=e.raws.after;if(typeof t!=="undefined")return false}}));return t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;e.walk((r=>{let i=r.parent;if(i&&i!==e&&i.parent&&i.parent===e){if(typeof r.raws.before!=="undefined"){let e=r.raws.before.split("\n");t=e[e.length-1];t=t.replace(/\S/g,"");return false}}}));return t}rawSemicolon(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length&&e.last.type==="decl"){t=e.raws.semicolon;if(typeof t!=="undefined")return false}}));return t}rawValue(e,t){let r=e[t];let i=e.raws[t];if(i&&i.value===r){return i.raw}return r}root(e){this.body(e);if(e.raws.after)this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector"));if(e.raws.ownSemicolon){this.builder(e.raws.ownSemicolon,e,"end")}}stringify(e,t){if(!this[e.type]){throw new Error("Unknown AST node type "+e.type+". "+"Maybe you need to change PostCSS stringifier.")}this[e.type](e,t)}}e.exports=i;i.default=i},83303:(e,t,r)=>{"use strict";let i=r(47668);function n(e,t){let r=new i(t);r.stringify(e)}e.exports=n;n.default=n},84151:e=>{"use strict";e.exports.isClean=Symbol("isClean");e.exports.my=Symbol("my")},45781:e=>{"use strict";const t="'".charCodeAt(0);const r='"'.charCodeAt(0);const i="\\".charCodeAt(0);const n="/".charCodeAt(0);const s="\n".charCodeAt(0);const o=" ".charCodeAt(0);const a="\f".charCodeAt(0);const l="\t".charCodeAt(0);const c="\r".charCodeAt(0);const u="[".charCodeAt(0);const f="]".charCodeAt(0);const h="(".charCodeAt(0);const p=")".charCodeAt(0);const d="{".charCodeAt(0);const m="}".charCodeAt(0);const g=";".charCodeAt(0);const y="*".charCodeAt(0);const b=":".charCodeAt(0);const v="@".charCodeAt(0);const w=/[\t\n\f\r "#'()/;[\\\]{}]/g;const x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g;const S=/.[\r\n"'(/\\]/;const T=/[\da-f]/i;e.exports=function e(E,A={}){let C=E.css.valueOf();let O=A.ignoreErrors;let k,I,N,L,D;let P,q,M,B,R;let j=C.length;let _=0;let U=[];let H=[];function V(){return _}function F(e){throw E.error("Unclosed "+e,_)}function z(){return H.length===0&&_>=j}function G(e){if(H.length)return H.pop();if(_>=j)return;let E=e?e.ignoreUnclosed:false;k=C.charCodeAt(_);switch(k){case s:case o:case l:case c:case a:{I=_;do{I+=1;k=C.charCodeAt(I)}while(k===o||k===s||k===l||k===c||k===a);R=["space",C.slice(_,I)];_=I-1;break}case u:case f:case d:case m:case b:case g:case p:{let e=String.fromCharCode(k);R=[e,e,_];break}case h:{M=U.length?U.pop()[1]:"";B=C.charCodeAt(_+1);if(M==="url"&&B!==t&&B!==r&&B!==o&&B!==s&&B!==l&&B!==a&&B!==c){I=_;do{P=false;I=C.indexOf(")",I+1);if(I===-1){if(O||E){I=_;break}else{F("bracket")}}q=I;while(C.charCodeAt(q-1)===i){q-=1;P=!P}}while(P);R=["brackets",C.slice(_,I+1),_,I];_=I}else{I=C.indexOf(")",_+1);L=C.slice(_,I+1);if(I===-1||S.test(L)){R=["(","(",_]}else{R=["brackets",L,_,I];_=I}}break}case t:case r:{N=k===t?"'":'"';I=_;do{P=false;I=C.indexOf(N,I+1);if(I===-1){if(O||E){I=_+1;break}else{F("string")}}q=I;while(C.charCodeAt(q-1)===i){q-=1;P=!P}}while(P);R=["string",C.slice(_,I+1),_,I];_=I;break}case v:{w.lastIndex=_+1;w.test(C);if(w.lastIndex===0){I=C.length-1}else{I=w.lastIndex-2}R=["at-word",C.slice(_,I+1),_,I];_=I;break}case i:{I=_;D=true;while(C.charCodeAt(I+1)===i){I+=1;D=!D}k=C.charCodeAt(I+1);if(D&&k!==n&&k!==o&&k!==s&&k!==l&&k!==c&&k!==a){I+=1;if(T.test(C.charAt(I))){while(T.test(C.charAt(I+1))){I+=1}if(C.charCodeAt(I+1)===o){I+=1}}}R=["word",C.slice(_,I+1),_,I];_=I;break}default:{if(k===n&&C.charCodeAt(_+1)===y){I=C.indexOf("*/",_+2)+1;if(I===0){if(O||E){I=C.length}else{F("comment")}}R=["comment",C.slice(_,I+1),_,I];_=I}else{x.lastIndex=_+1;x.test(C);if(x.lastIndex===0){I=C.length-1}else{I=x.lastIndex-2}R=["word",C.slice(_,I+1),_,I];U.push(R);_=I}break}}_++;return R}function W(e){H.push(e)}return{back:W,endOfFile:z,nextToken:G,position:V}}},6156:e=>{"use strict";let t={};e.exports=function e(r){if(t[r])return;t[r]=true;if(typeof console!=="undefined"&&console.warn){console.warn(r)}}},60038:e=>{"use strict";class t{constructor(e,t={}){this.type="warning";this.text=e;if(t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line;this.column=e.start.column;this.endLine=e.end.line;this.endColumn=e.end.column}for(let r in t)this[r]=t[r]}toString(){if(this.node){return this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message}if(this.plugin){return this.plugin+": "+this.text}return this.text}}e.exports=t;t.default=t},65606:e=>{var t=e.exports={};var r;var i;function n(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){r=setTimeout}else{r=n}}catch(e){r=n}try{if(typeof clearTimeout==="function"){i=clearTimeout}else{i=s}}catch(e){i=s}})();function o(e){if(r===setTimeout){return setTimeout(e,0)}if((r===n||!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 a(e){if(i===clearTimeout){return clearTimeout(e)}if((i===s||!i)&&clearTimeout){i=clearTimeout;return clearTimeout(e)}try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.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{const i=r(78659);const n=r(52834);const{isPlainObject:s}=r(78682);const o=r(14744);const a=r(29466);const{parse:l}=r(12895);const c=["img","audio","video","picture","svg","object","map","iframe","embed"];const u=["script","style"];function f(e,t){if(e){Object.keys(e).forEach((function(r){t(e[r],r)}))}}function h(e,t){return{}.hasOwnProperty.call(e,t)}function p(e,t){const r=[];f(e,(function(e){if(t(e)){r.push(e)}}));return r}function d(e){for(const t in e){if(h(e,t)){return false}}return true}function m(e){return e.map((function(e){if(!e.url){throw new Error("URL missing")}return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")})).join(", ")}e.exports=y;const g=/^[^\0\t\n\f\r /<=>]+$/;function y(e,t,r){if(e==null){return""}if(typeof e==="number"){e=e.toString()}let v="";let w="";function x(e,t){const r=this;this.tag=e;this.attribs=t||{};this.tagPosition=v.length;this.text="";this.mediaChildren=[];this.updateParentNodeText=function(){if(D.length){const e=D[D.length-1];e.text+=r.text}};this.updateParentNodeMediaChildren=function(){if(D.length&&c.includes(this.tag)){const e=D[D.length-1];e.mediaChildren.push(this.tag)}}}t=Object.assign({},y.defaults,t);t.parser=Object.assign({},b,t.parser);const S=function(e){return t.allowedTags===false||(t.allowedTags||[]).indexOf(e)>-1};u.forEach((function(e){if(S(e)&&!t.allowVulnerableTags){console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${e}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}}));const T=t.nonTextTags||["script","style","textarea","option"];let E;let A;if(t.allowedAttributes){E={};A={};f(t.allowedAttributes,(function(e,t){E[t]=[];const r=[];e.forEach((function(e){if(typeof e==="string"&&e.indexOf("*")>=0){r.push(n(e).replace(/\\\*/g,".*"))}else{E[t].push(e)}}));if(r.length){A[t]=new RegExp("^("+r.join("|")+")$")}}))}const C={};const O={};const k={};f(t.allowedClasses,(function(e,t){if(E){if(!h(E,t)){E[t]=[]}E[t].push("class")}C[t]=e;if(Array.isArray(e)){const r=[];C[t]=[];k[t]=[];e.forEach((function(e){if(typeof e==="string"&&e.indexOf("*")>=0){r.push(n(e).replace(/\\\*/g,".*"))}else if(e instanceof RegExp){k[t].push(e)}else{C[t].push(e)}}));if(r.length){O[t]=new RegExp("^("+r.join("|")+")$")}}}));const I={};let N;f(t.transformTags,(function(e,t){let r;if(typeof e==="function"){r=e}else if(typeof e==="string"){r=y.simpleTransform(e)}if(t==="*"){N=r}else{I[t]=r}}));let L;let D;let P;let q;let M;let B;let R=false;_();const j=new i.Parser({onopentag:function(e,r){if(t.enforceHtmlBoundary&&e==="html"){_()}if(M){B++;return}const i=new x(e,r);D.push(i);let n=false;const c=!!i.text;let u;if(h(I,e)){u=I[e](e,r);i.attribs=r=u.attribs;if(u.text!==undefined){i.innerText=u.text}if(e!==u.tagName){i.name=e=u.tagName;q[L]=u.tagName}}if(N){u=N(e,r);i.attribs=r=u.attribs;if(e!==u.tagName){i.name=e=u.tagName;q[L]=u.tagName}}if(!S(e)||t.disallowedTagsMode==="recursiveEscape"&&!d(P)||t.nestingLimit!=null&&L>=t.nestingLimit){n=true;P[L]=true;if(t.disallowedTagsMode==="discard"){if(T.indexOf(e)!==-1){M=true;B=1}}P[L]=true}L++;if(n){if(t.disallowedTagsMode==="discard"){return}w=v;v=""}v+="<"+e;if(e==="script"){if(t.allowedScriptHostnames||t.allowedScriptDomains){i.innerText=""}}if(!E||h(E,e)||E["*"]){f(r,(function(r,n){if(!g.test(n)){delete i.attribs[n];return}if(r===""&&!t.allowedEmptyAttributes.includes(n)&&(t.nonBooleanAttributes.includes(n)||t.nonBooleanAttributes.includes("*"))){delete i.attribs[n];return}let c=false;if(!E||h(E,e)&&E[e].indexOf(n)!==-1||E["*"]&&E["*"].indexOf(n)!==-1||h(A,e)&&A[e].test(n)||A["*"]&&A["*"].test(n)){c=true}else if(E&&E[e]){for(const t of E[e]){if(s(t)&&t.name&&t.name===n){c=true;let e="";if(t.multiple===true){const i=r.split(" ");for(const r of i){if(t.values.indexOf(r)!==-1){if(e===""){e=r}else{e+=" "+r}}}}else if(t.values.indexOf(r)>=0){e=r}r=e}}}if(c){if(t.allowedSchemesAppliedToAttributes.indexOf(n)!==-1){if(H(e,r)){delete i.attribs[n];return}}if(e==="script"&&n==="src"){let e=true;try{const i=V(r);if(t.allowedScriptHostnames||t.allowedScriptDomains){const r=(t.allowedScriptHostnames||[]).find((function(e){return e===i.url.hostname}));const n=(t.allowedScriptDomains||[]).find((function(e){return i.url.hostname===e||i.url.hostname.endsWith(`.${e}`)}));e=r||n}}catch(u){e=false}if(!e){delete i.attribs[n];return}}if(e==="iframe"&&n==="src"){let e=true;try{const i=V(r);if(i.isRelativeUrl){e=h(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains}else if(t.allowedIframeHostnames||t.allowedIframeDomains){const r=(t.allowedIframeHostnames||[]).find((function(e){return e===i.url.hostname}));const n=(t.allowedIframeDomains||[]).find((function(e){return i.url.hostname===e||i.url.hostname.endsWith(`.${e}`)}));e=r||n}}catch(u){e=false}if(!e){delete i.attribs[n];return}}if(n==="srcset"){try{let e=a(r);e.forEach((function(e){if(H("srcset",e.url)){e.evil=true}}));e=p(e,(function(e){return!e.evil}));if(!e.length){delete i.attribs[n];return}else{r=m(p(e,(function(e){return!e.evil})));i.attribs[n]=r}}catch(u){delete i.attribs[n];return}}if(n==="class"){const t=C[e];const s=C["*"];const a=O[e];const l=k[e];const c=O["*"];const u=[a,c].concat(l).filter((function(e){return e}));if(t&&s){r=W(r,o(t,s),u)}else{r=W(r,t||s,u)}if(!r.length){delete i.attribs[n];return}}if(n==="style"){if(t.parseStyleAttributes){try{const s=l(e+" {"+r+"}",{map:false});const o=F(s,t.allowedStyles);r=z(o);if(r.length===0){delete i.attribs[n];return}}catch(u){if(typeof window!=="undefined"){console.warn('Failed to parse "'+e+" {"+r+"}"+"\", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547")}delete i.attribs[n];return}}else if(t.allowedStyles){throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}}v+=" "+n;if(r&&r.length){v+='="'+U(r,true)+'"'}else if(t.allowedEmptyAttributes.includes(n)){v+='=""'}}else{delete i.attribs[n]}}))}if(t.selfClosing.indexOf(e)!==-1){v+=" />"}else{v+=">";if(i.innerText&&!c&&!t.textFilter){v+=U(i.innerText);R=true}}if(n){v=w+U(v);w=""}},ontext:function(e){if(M){return}const r=D[D.length-1];let i;if(r){i=r.tag;e=r.innerText!==undefined?r.innerText:e}if(t.disallowedTagsMode==="discard"&&(i==="script"||i==="style")){v+=e}else{const r=U(e,false);if(t.textFilter&&!R){v+=t.textFilter(r,i)}else if(!R){v+=r}}if(D.length){const t=D[D.length-1];t.text+=e}},onclosetag:function(e,r){if(M){B--;if(!B){M=false}else{return}}const i=D.pop();if(!i){return}if(i.tag!==e){D.push(i);return}M=t.enforceHtmlBoundary?e==="html":false;L--;const n=P[L];if(n){delete P[L];if(t.disallowedTagsMode==="discard"){i.updateParentNodeText();return}w=v;v=""}if(q[L]){e=q[L];delete q[L]}if(t.exclusiveFilter&&t.exclusiveFilter(i)){v=v.substr(0,i.tagPosition);return}i.updateParentNodeMediaChildren();i.updateParentNodeText();if(t.selfClosing.indexOf(e)!==-1||r&&!S(e)&&["escape","recursiveEscape"].indexOf(t.disallowedTagsMode)>=0){if(n){v=w;w=""}return}v+="";if(n){v=w+U(v);w=""}R=false}},t.parser);j.write(e);j.end();return v;function _(){v="";L=0;D=[];P={};q={};M=false;B=0}function U(e,r){if(typeof e!=="string"){e=e+""}if(t.parser.decodeEntities){e=e.replace(/&/g,"&").replace(//g,">");if(r){e=e.replace(/"/g,""")}}e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(//g,">");if(r){e=e.replace(/"/g,""")}return e}function H(e,r){r=r.replace(/[\x00-\x20]+/g,"");while(true){const e=r.indexOf("\x3c!--");if(e===-1){break}const t=r.indexOf("--\x3e",e+4);if(t===-1){break}r=r.substring(0,e)+r.substring(t+3)}const i=r.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!i){if(r.match(/^[/\\]{2}/)){return!t.allowProtocolRelative}return false}const n=i[1].toLowerCase();if(h(t.allowedSchemesByTag,e)){return t.allowedSchemesByTag[e].indexOf(n)===-1}return!t.allowedSchemes||t.allowedSchemes.indexOf(n)===-1}function V(e){e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//");if(e.startsWith("relative:")){throw new Error("relative: exploit attempt")}let t="relative://relative-site";for(let n=0;n<100;n++){t+=`/${n}`}const r=new URL(e,t);const i=r&&r.hostname==="relative-site"&&r.protocol==="relative:";return{isRelativeUrl:i,url:r}}function F(e,t){if(!t){return e}const r=e.nodes[0];let i;if(t[r.selector]&&t["*"]){i=o(t[r.selector],t["*"])}else{i=t[r.selector]||t["*"]}if(i){e.nodes[0].nodes=r.nodes.reduce(G(i),[])}return e}function z(e){return e.nodes[0].nodes.reduce((function(e,t){e.push(`${t.prop}:${t.value}${t.important?" !important":""}`);return e}),[]).join(";")}function G(e){return function(t,r){if(h(e,r.prop)){const i=e[r.prop].some((function(e){return e.test(r.value)}));if(i){t.push(r)}}return t}}function W(e,t,r){if(!t){return e}e=e.split(/\s+/);return e.filter((function(e){return t.indexOf(e)!==-1||r.some((function(t){return t.test(e)}))})).join(" ")}}const b={decodeEntities:true};y.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:true,enforceHtmlBoundary:false,parseStyleAttributes:true};y.simpleTransform=function(e,t,r){r=r===undefined?true:r;t=t||{};return function(i,n){let s;if(r){for(s in t){n[s]=t[s]}}else{n=t}return{tagName:e,attribs:n}}}},95042:e=>{let t="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let r=(e,t=21)=>(r=t)=>{let i="";let n=r|0;while(n--){i+=e[Math.random()*e.length|0]}return i};let i=(e=21)=>{let r="";let i=e|0;while(i--){r+=t[Math.random()*64|0]}return r};e.exports={nanoid:i,customAlphabet:r}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/4728.56c0b9d87316b2fa012e.js.LICENSE.txt b/share/jupyter/lab/static/4728.56c0b9d87316b2fa012e.js.LICENSE.txt new file mode 100644 index 0000000..fe4c1fe --- /dev/null +++ b/share/jupyter/lab/static/4728.56c0b9d87316b2fa012e.js.LICENSE.txt @@ -0,0 +1,6 @@ +/*! + * is-plain-object + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */ diff --git a/share/jupyter/lab/static/4735.7731d551ca68bcb58e9f.js b/share/jupyter/lab/static/4735.7731d551ca68bcb58e9f.js new file mode 100644 index 0000000..cca858f --- /dev/null +++ b/share/jupyter/lab/static/4735.7731d551ca68bcb58e9f.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4735],{24735:(t,e,n)=>{n.r(e);n.d(e,{mangle:()=>r});function r(){return{mangle:false,walkTokens(t){if(t.type!=="link"){return}if(!t.href.startsWith("mailto:")){return}const e=t.href.substring(7);const n=o(e);t.href=`mailto:${n}`;if(t.tokens.length!==1||t.tokens[0].type!=="text"||t.tokens[0].text!==e){return}t.text=n;t.tokens[0].text=n}}}function o(t){let e="",n,r;const o=t.length;for(n=0;n.5){r="x"+r.toString(16)}e+="&#"+r+";"}return e}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/4797.3740ef47b224a11a7fab.js b/share/jupyter/lab/static/4797.3740ef47b224a11a7fab.js new file mode 100644 index 0000000..e988d50 --- /dev/null +++ b/share/jupyter/lab/static/4797.3740ef47b224a11a7fab.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4797],{14797:(e,t,n)=>{n.r(t);n.d(t,{commonLisp:()=>p});var r=/^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/;var l=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/;var i=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/;var o=/[^\s'`,@()\[\]";]/;var a;function s(e){var t;while(t=e.next()){if(t=="\\")e.next();else if(!o.test(t)){e.backUp(1);break}}return e.current()}function c(e,t){if(e.eatSpace()){a="ws";return null}if(e.match(i))return"number";var n=e.next();if(n=="\\")n=e.next();if(n=='"')return(t.tokenize=u)(e,t);else if(n=="("){a="open";return"bracket"}else if(n==")"){a="close";return"bracket"}else if(n==";"){e.skipToEnd();a="ws";return"comment"}else if(/['`,@]/.test(n))return null;else if(n=="|"){if(e.skipTo("|")){e.next();return"variableName"}else{e.skipToEnd();return"error"}}else if(n=="#"){var n=e.next();if(n=="("){a="open";return"bracket"}else if(/[+\-=\.']/.test(n))return null;else if(/\d/.test(n)&&e.match(/^\d*#/))return null;else if(n=="|")return(t.tokenize=f)(e,t);else if(n==":"){s(e);return"meta"}else if(n=="\\"){e.next();s(e);return"string.special"}else return"error"}else{var o=s(e);if(o==".")return null;a="symbol";if(o=="nil"||o=="t"||o.charAt(0)==":")return"atom";if(t.lastType=="open"&&(r.test(o)||l.test(o)))return"keyword";if(o.charAt(0)=="&")return"variableName.special";return"variableName"}}function u(e,t){var n=false,r;while(r=e.next()){if(r=='"'&&!n){t.tokenize=c;break}n=!n&&r=="\\"}return"string"}function f(e,t){var n,r;while(n=e.next()){if(n=="#"&&r=="|"){t.tokenize=c;break}r=n}a="ws";return"comment"}const p={name:"commonlisp",startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:c}},token:function(e,t){if(e.sol()&&typeof t.ctx.indentTo!="number")t.ctx.indentTo=t.ctx.start+1;a=null;var n=t.tokenize(e,t);if(a!="ws"){if(t.ctx.indentTo==null){if(a=="symbol"&&l.test(e.current()))t.ctx.indentTo=t.ctx.start+e.indentUnit;else t.ctx.indentTo="next"}else if(t.ctx.indentTo=="next"){t.ctx.indentTo=e.column()}t.lastType=a}if(a=="open")t.ctx={prev:t.ctx,start:e.column(),indentTo:null};else if(a=="close")t.ctx=t.ctx.prev||t.ctx;return n},indent:function(e){var t=e.ctx.indentTo;return typeof t=="number"?t:e.ctx.start+1},languageData:{commentTokens:{line:";;",block:{open:"#|",close:"|#"}},closeBrackets:{brackets:["(","[","{",'"']}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/481e39042508ae313a60.woff b/share/jupyter/lab/static/481e39042508ae313a60.woff new file mode 100644 index 0000000..d899809 Binary files /dev/null and b/share/jupyter/lab/static/481e39042508ae313a60.woff differ diff --git a/share/jupyter/lab/static/4838.8db4c61349bfba200547.js b/share/jupyter/lab/static/4838.8db4c61349bfba200547.js new file mode 100644 index 0000000..38d3b6f --- /dev/null +++ b/share/jupyter/lab/static/4838.8db4c61349bfba200547.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4838],{84838:(e,t,n)=>{n.r(t);n.d(t,{vhdl:()=>b});function r(e){var t={},n=e.split(",");for(var r=0;r0)&&!(o=i.next()).done)n.push(o.value)}catch(s){a={error:s}}finally{try{if(o&&!o.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return n};var a=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,o=e.length,n;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.")};Object.defineProperty(e,"__esModule",{value:true});e.AssistiveMmlHandler=e.AssistiveMmlMathDocumentMixin=e.AssistiveMmlMathItemMixin=e.LimitedMmlVisitor=void 0;var l=r(24971);var u=r(14347);var c=r(34981);var p=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.getAttributes=function(e){return t.prototype.getAttributes.call(this,e).replace(/ ?id=".*?"/,"")};return e}(u.SerializedMmlVisitor);e.LimitedMmlVisitor=p;(0,l.newState)("ASSISTIVEMML",153);function f(t){return function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.assistiveMml=function(t,e){if(e===void 0){e=false}if(this.state()>=l.STATE.ASSISTIVEMML)return;if(!this.isEscaped&&(t.options.enableAssistiveMml||e)){var r=t.adaptor;var i=t.toMML(this.root).replace(/\n */g,"").replace(//g,"");var o=r.firstChild(r.body(r.parse(i,"text/html")));var n=r.node("mjx-assistive-mml",{unselectable:"on",display:this.display?"block":"inline"},[o]);r.setAttribute(r.firstChild(this.typesetRoot),"aria-hidden","true");r.setStyle(this.typesetRoot,"position","relative");r.append(this.typesetRoot,n)}this.state(l.STATE.ASSISTIVEMML)};return e}(t)}e.AssistiveMmlMathItemMixin=f;function v(t){var e;return e=function(t){i(e,t);function e(){var e=[];for(var r=0;r=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.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),o,n=[],a;try{while((e===void 0||e-- >0)&&!(o=i.next()).done)n.push(o.value)}catch(s){a={error:s}}finally{try{if(o&&!o.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return n};Object.defineProperty(e,"__esModule",{value:true});e.SerializedMmlVisitor=e.toEntity=e.DATAMJX=void 0;var a=r(76677);var s=r(80747);var l=r(32175);e.DATAMJX="data-mjx-";var u=function(t){return"&#x"+t.codePointAt(0).toString(16).toUpperCase()+";"};e.toEntity=u;var c=function(t){i(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}r.prototype.visitTree=function(t){return this.visitNode(t,"")};r.prototype.visitTextNode=function(t,e){return this.quoteHTML(t.getText())};r.prototype.visitXMLNode=function(t,e){return e+t.getSerializedXML()};r.prototype.visitInferredMrowNode=function(t,e){var r,i;var n=[];try{for(var a=o(t.childNodes),s=a.next();!s.done;s=a.next()){var l=s.value;n.push(this.visitNode(l,e))}}catch(u){r={error:u}}finally{try{if(s&&!s.done&&(i=a.return))i.call(a)}finally{if(r)throw r.error}}return n.join("\n")};r.prototype.visitTeXAtomNode=function(t,e){var r=this.childNodeMml(t,e+" ","\n");var i=e+""+(r.match(/\S/)?"\n"+r+e:"")+"
    ";return i};r.prototype.visitAnnotationNode=function(t,e){return e+""+this.childNodeMml(t,"","")+""};r.prototype.visitDefault=function(t,e){var r=t.kind;var i=n(t.isToken||t.childNodes.length===0?["",""]:["\n",e],2),o=i[0],a=i[1];var s=this.childNodeMml(t,e+" ",o);return e+"<"+r+this.getAttributes(t)+">"+(s.match(/\S/)?o+s+a:"")+""};r.prototype.childNodeMml=function(t,e,r){var i,n;var a="";try{for(var s=o(t.childNodes),l=s.next();!l.done;l=s.next()){var u=l.value;a+=this.visitNode(u,e)+r}}catch(c){i={error:c}}finally{try{if(l&&!l.done&&(n=s.return))n.call(s)}finally{if(i)throw i.error}}return a};r.prototype.getAttributes=function(t){var e,r;var i=[];var n=this.constructor.defaultAttributes[t.kind]||{};var a=Object.assign({},n,this.getDataAttributes(t),t.attributes.getAllAttributes());var s=this.constructor.variants;if(a.hasOwnProperty("mathvariant")&&s.hasOwnProperty(a.mathvariant)){a.mathvariant=s[a.mathvariant]}try{for(var l=o(Object.keys(a)),u=l.next();!u.done;u=l.next()){var c=u.value;var p=String(a[c]);if(p===undefined)continue;i.push(c+'="'+this.quoteHTML(p)+'"')}}catch(f){e={error:f}}finally{try{if(u&&!u.done&&(r=l.return))r.call(l)}finally{if(e)throw e.error}}return i.length?" "+i.join(" "):""};r.prototype.getDataAttributes=function(t){var e={};var r=t.attributes.getExplicit("mathvariant");var i=this.constructor.variants;r&&i.hasOwnProperty(r)&&this.setDataAttribute(e,"variant",r);t.getProperty("variantForm")&&this.setDataAttribute(e,"alternate","1");t.getProperty("pseudoscript")&&this.setDataAttribute(e,"pseudoscript","true");t.getProperty("autoOP")===false&&this.setDataAttribute(e,"auto-op","false");var o=t.getProperty("scriptalign");o&&this.setDataAttribute(e,"script-align",o);var n=t.getProperty("texClass");if(n!==undefined){var a=true;if(n===s.TEXCLASS.OP&&t.isKind("mi")){var u=t.getText();a=!(u.length>1&&u.match(l.MmlMi.operatorName))}a&&this.setDataAttribute(e,"texclass",n<0?"NONE":s.TEXCLASSNAMES[n])}t.getProperty("scriptlevel")&&t.getProperty("useHeight")===false&&this.setDataAttribute(e,"smallmatrix","true");return e};r.prototype.setDataAttribute=function(t,r,i){t[e.DATAMJX+r]=i};r.prototype.quoteHTML=function(t){return t.replace(/&/g,"&").replace(//g,">").replace(/\"/g,""").replace(/[\uD800-\uDBFF]./g,e.toEntity).replace(/[\u0080-\uD7FF\uE000-\uFFFF]/g,e.toEntity)};r.variants={"-tex-calligraphic":"script","-tex-bold-calligraphic":"bold-script","-tex-oldstyle":"normal","-tex-bold-oldstyle":"bold","-tex-mathit":"italic"};r.defaultAttributes={math:{xmlns:"http://www.w3.org/1998/Math/MathML"}};return r}(a.MmlVisitor);e.SerializedMmlVisitor=c},34167: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 o=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),o,n=[],a;try{while((e===void 0||e-- >0)&&!(o=i.next()).done)n.push(o.value)}catch(s){a={error:s}}finally{try{if(o&&!o.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return n};var n=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,o=e.length,n;i{n.r(t);n.d(t,{puppet:()=>c});var i={};var a=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;function r(e,t){var n=t.split(" ");for(var a=0;a.*/,false);var o=e.match(/(\s+)?[\w:_]+(\s+)?{/,false);var c=e.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,false);var u=e.next();if(u==="$"){if(e.match(a)){return t.continueString?"variableName.special":"variable"}return"error"}if(t.continueString){e.backUp(1);return s(e,t)}if(t.inDefinition){if(e.match(/(\s+)?[\w:_]+(\s+)?/)){return"def"}e.match(/\s+{/);t.inDefinition=false}if(t.inInclude){e.match(/(\s+)?\S+(\s+)?/);t.inInclude=false;return"def"}if(e.match(/(\s+)?\w+\(/)){e.backUp(1);return"def"}if(r){e.match(/(\s+)?\w+/);return"tag"}if(n&&i.hasOwnProperty(n)){e.backUp(1);e.match(/[\w]+/);if(e.match(/\s+\S+\s+{/,false)){t.inDefinition=true}if(n=="include"){t.inInclude=true}return i[n]}if(/(^|\s+)[A-Z][\w:_]+/.test(n)){e.backUp(1);e.match(/(^|\s+)[A-Z][\w:_]+/);return"def"}if(o){e.match(/(\s+)?[\w:_]+/);return"def"}if(c){e.match(/(\s+)?[@]{1,2}/);return"atom"}if(u=="#"){e.skipToEnd();return"comment"}if(u=="'"||u=='"'){t.pending=u;return s(e,t)}if(u=="{"||u=="}"){return"bracket"}if(u=="/"){e.match(/^[^\/]*\//);return"string.special"}if(u.match(/[0-9]/)){e.eatWhile(/[0-9]+/);return"number"}if(u=="="){if(e.peek()==">"){e.next()}return"operator"}e.eatWhile(/[\w-]/);return null}const c={name:"puppet",startState:function(){var e={};e.inDefinition=false;e.inInclude=false;e.continueString=false;e.pending=false;return e},token:function(e,t){if(e.eatSpace())return null;return o(e,t)}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/492.5f186062d2dcdf79c86c.js b/share/jupyter/lab/static/492.5f186062d2dcdf79c86c.js new file mode 100644 index 0000000..9da2571 --- /dev/null +++ b/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/share/jupyter/lab/static/4928.6cb408e4def87534970d.js b/share/jupyter/lab/static/4928.6cb408e4def87534970d.js new file mode 100644 index 0000000..ce15d82 --- /dev/null +++ b/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=r.length)r=void 0;return{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__read||function(r,e){var t=typeof Symbol==="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,a=[],i;try{while((e===void 0||e-- >0)&&!(o=n.next()).done)a.push(o.value)}catch(l){i={error:l}}finally{try{if(o&&!o.done&&(t=n["return"]))t.call(n)}finally{if(i)throw i.error}}return a};var o=this&&this.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,a;nt.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==null){this.moveBy(this.displacementX,this.displacementY)}else if(this.child.getNodes().length==0){this.moveBy(this.displacementX,this.displacementY)}else{this.propogateDisplacementToChildren(this.displacementX,this.displacementY)}t.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY);this.springForceX=0;this.springForceY=0;this.repulsionForceX=0;this.repulsionForceY=0;this.gravitationForceX=0;this.gravitationForceY=0;this.displacementX=0;this.displacementY=0};o.prototype.propogateDisplacementToChildren=function(t,e){var r=this.getChild().getNodes();var i;for(var n=0;n0){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)}}this.initSpringEmbedder();this.runSpringEmbedder();return true};E.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%l.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();this.coolingFactor=l.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()}this.coolingFactor=l.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};E.prototype.getPositionsData=function(){var t=this.graphManager.getAllNodes();var e={};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 c(u.WORLD_CENTER_X-a.x/2,u.WORLD_CENTER_Y-a.y/2))};E.radialLayout=function(t,e,r){var i=Math.max(this.maxDiagonalInTree(t),h.DEFAULT_RADIAL_SEPARATION);E.branchRadialLayout(e,null,0,359,0,i);var n=v.calculateBounds(t);var o=new y;o.setDeviceOrgX(n.getMinX());o.setDeviceOrgY(n.getMinY());o.setWorldOrgX(r.x);o.setWorldOrgY(r.y);for(var a=0;a1){var N=A[0];A.splice(0,1);var T=c.indexOf(N);if(T>=0){c.splice(T,1)}v--;d--}if(e!=null){y=(c.indexOf(A[0])+1)%v}else{y=0}var _=Math.abs(i-r)/d;for(var L=y;p!=d;L=++L%v){var m=c[L].getOtherEnd(t);if(m==e){continue}var O=(r+p*_)%360;var w=(O+_)%360;E.branchRadialLayout(m,t,O,w,n+o,o);p++}};E.maxDiagonalInTree=function(t){var e=p.MIN_VALUE;for(var r=0;re){e=n}}return e};E.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength};E.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;l=0;t--){var e=this.compoundOrder[t];var r=e.id;var i=e.paddingLeft;var n=e.paddingTop;this.adjustLocations(this.tiledMemberPack[r],e.rect.x,e.rect.y,i,n)}};E.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;t.adjustLocations(e[r],i.rect.x,i.rect.y,n,o)}))};E.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};E.prototype.getNodeDegree=function(t){var e=t.id;var r=t.getEdges();var i=0;for(var n=0;nh)h=u.rect.height}r+=h+t.verticalPadding}};E.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}))};E.prototype.tileNodes=function(t,e){var r=h.TILING_PADDING_VERTICAL;var i=h.TILING_PADDING_HORIZONTAL;var n={rows:[],rowWidth:[],rowHeight:[],width:0,height:e,verticalPadding:r,horizontalPadding:i};t.sort((function(t,e){if(t.rect.width*t.rect.height>e.rect.width*e.rect.height)return-1;if(t.rect.width*t.rect.height0){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)};E.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};E.prototype.canAddHorizontal=function(t,e,r){var i=this.getShortestRowIndex(t);if(i<0){return true}var n=t.rowWidth[i];if(n+t.horizontalPadding+e<=t.width)return true;var o=0;if(t.rowHeight[i]0)o=r+t.verticalPadding-t.rowHeight[i]}var a;if(t.width-n>=e+t.horizontalPadding){a=(t.height+o)/(n+e+t.horizontalPadding)}else{a=(t.height+o)/t.width}o=r+t.verticalPadding;var s;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 f=n;f<=o;f++){d[0]+=this.grid[f][a-1].length+this.grid[f][a].length-1}}if(o0){for(var f=a;f<=s;f++){d[3]+=this.grid[n-1][f].length+this.grid[n][f].length-1}}var v=p.MAX_VALUE;var y;var E;for(var A=0;A0){var f;f=r.getGraphManager().add(r.newGraph(),u);this.processChildrenList(f,a,r)}}};c.prototype.stop=function(){this.stopped=true;return this};var p=function t(e){e("layout","cose-bilkent",c)};if(typeof cytoscape!=="undefined"){p(cytoscape)}t.exports=p}])}))},23143: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=26)}([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(4);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 u in i){l[u]=i[u]}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)}if(this.labelHeight>r){if(this.labelPos=="center"){this.rect.y-=(this.labelHeight-r)/2}else if(this.labelPos=="top"){this.rect.y-=this.labelHeight-r}this.setHeight(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";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(6);var s=r(3);var h=r(1);var l=r(13);var u=r(12);var g=r(11);function c(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}}c.prototype=Object.create(i.prototype);for(var d in i){c[d]=i[d]}c.prototype.getNodes=function(){return this.nodes};c.prototype.getEdges=function(){return this.edges};c.prototype.getGraphManager=function(){return this.graphManager};c.prototype.getParent=function(){return this.parent};c.prototype.getLeft=function(){return this.left};c.prototype.getRight=function(){return this.right};c.prototype.getTop=function(){return this.top};c.prototype.getBottom=function(){return this.bottom};c.prototype.isConnected=function(){return this.isConnected};c.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}};c.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&&u>-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(u,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)}};c.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 u(this.left,this.top)};c.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 u;var g;var c=this.nodes;var d=c.length;for(var p=0;pa){e=a}if(rh){i=h}if(oa){e=a}if(rh){i=h}if(o=this.nodes.length){var c=0;r.forEach((function(e){if(e.owner==t){c++}}));if(c==this.nodes.length){this.isConnected=true}}};t.exports=c},function(t,e,r){"use strict";var i;var n=r(1);function o(t){i=r(5);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]=A;return false}else if(no){r[0]=s;r[1]=n;r[2]=y;r[3]=a;return false}else if(io){r[0]=u;r[1]=g;L=true}else{r[0]=l;r[1]=h;L=true}}else if(O===I){if(i>o){r[0]=s;r[1]=h;L=true}else{r[0]=c;r[1]=g;L=true}}if(-w===I){if(o>i){r[2]=E;r[3]=A;m=true}else{r[2]=y;r[3]=v;m=true}}else if(w===I){if(o>i){r[2]=f;r[3]=v;m=true}else{r[2]=N;r[3]=A;m=true}}if(L&&m){return false}if(i>o){if(n>a){D=this.getCardinalDirection(O,I,4);R=this.getCardinalDirection(w,I,2)}else{D=this.getCardinalDirection(-O,I,3);R=this.getCardinalDirection(-w,I,1)}}else{if(n>a){D=this.getCardinalDirection(-O,I,1);R=this.getCardinalDirection(-w,I,3)}else{D=this.getCardinalDirection(O,I,2);R=this.getCardinalDirection(w,I,4)}}if(!L){switch(D){case 1:M=h;C=i+-p/I;r[0]=C;r[1]=M;break;case 2:C=c;M=n+d*I;r[0]=C;r[1]=M;break;case 3:M=g;C=i+p/I;r[0]=C;r[1]=M;break;case 4:C=u;M=n+-d*I;r[0]=C;r[1]=M;break}}if(!m){switch(R){case 1:x=v;G=o+-_/I;r[2]=G;r[3]=x;break;case 2:G=N;x=a+T*I;r[2]=G;r[3]=x;break;case 3:x=A;G=o+_/I;r[2]=G;r[3]=x;break;case 4:G=E;x=a+-T*I;r[2]=G;r[3]=x;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 u=r.y;var g=n.x;var c=n.y;var d=void 0,p=void 0;var f=void 0,v=void 0,y=void 0,E=void 0,A=void 0,N=void 0;var T=void 0;f=h-a;y=o-s;A=s*a-o*h;v=c-u;E=l-g;N=g*u-l*c;T=f*E-v*y;if(T===0){return null}d=(y*N-E*A)/T;p=(v*A-f*N)/T;return new i(d,p)};n.angleOfVector=function(t,e,r,i){var n=void 0;if(t!==r){n=Math.atan((i-e)/(r-t));if(r0){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 u=s[0];s.splice(0,1);a.add(u);var g=u.getEdges();for(var o=0;o-1){l.splice(f,1)}}a=new Set;h=new Map}}return t};c.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(g,1)}var c=s.getNeighborsList();c.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};c.prototype.setGraphManager=function(t){this.graphManager=t};t.exports=c},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(4);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.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||u>=h[0].length)){for(var g=0;ge}}]);return t}();t.exports=a},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.r(e);r.d(e,{render:()=>v});var i=r(70416);var n=r(76405);var o=r(43457);var a=r.n(o);var s=r(1218);n.A.use(a());function h(t,e){t.forEach((t=>{const r={id:t.id,labelText:t.label,height:t.height,width:t.width,padding:t.padding??0};Object.keys(t).forEach((e=>{if(!["id","label","height","width","padding","x","y"].includes(e)){r[e]=t[e]}}));e.add({group:"nodes",data:r,position:{x:t.x??0,y:t.y??0}})}))}(0,i.K2)(h,"addNodes");function l(t,e){t.forEach((t=>{const r={id:t.id,source:t.start,target:t.end};Object.keys(t).forEach((e=>{if(!["id","start","end"].includes(e)){r[e]=t[e]}}));e.add({group:"edges",data:r})}))}(0,i.K2)(l,"addEdges");function u(t){return new Promise((e=>{const r=(0,s.Ltv)("body").append("div").attr("id","cy").attr("style","display:none");const o=(0,n.A)({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});r.remove();h(t.nodes,o);l(t.edges,o);o.nodes().forEach((function(t){t.layoutDimensions=()=>{const e=t.data();return{w:e.width,h:e.height}}}));const a={name:"cose-bilkent",quality:"proof",styleEnabled:false,animate:false};o.layout(a).run();o.ready((t=>{i.Rm.info("Cytoscape ready",t);e(o)}))}))}(0,i.K2)(u,"createCytoscapeInstance");function g(t){return t.nodes().map((t=>{const e=t.data();const r=t.position();const i={id:e.id,x:r.x,y:r.y};Object.keys(e).forEach((t=>{if(t!=="id"){i[t]=e[t]}}));return i}))}(0,i.K2)(g,"extractPositionedNodes");function c(t){return t.edges().map((t=>{const e=t.data();const r=t._private.rscratch;const i={id:e.id,source:e.source,target:e.target,startX:r.startX,startY:r.startY,midX:r.midX,midY:r.midY,endX:r.endX,endY:r.endY};Object.keys(e).forEach((t=>{if(!["id","source","target"].includes(t)){i[t]=e[t]}}));return i}))}(0,i.K2)(c,"extractPositionedEdges");async function d(t,e){i.Rm.debug("Starting cose-bilkent layout algorithm");try{p(t);const e=await u(t);const r=g(e);const n=c(e);i.Rm.debug(`Layout completed: ${r.length} nodes, ${n.length} edges`);return{nodes:r,edges:n}}catch(r){i.Rm.error("Error in cose-bilkent layout algorithm:",r);throw r}}(0,i.K2)(d,"executeCoseBilkentLayout");function p(t){if(!t){throw new Error("Layout data is required")}if(!t.config){throw new Error("Configuration is required in layout data")}if(!t.rootNode){throw new Error("Root node is required")}if(!t.nodes||!Array.isArray(t.nodes)){throw new Error("No nodes found in layout data")}if(!Array.isArray(t.edges)){throw new Error("Edges array is required in layout data")}return true}(0,i.K2)(p,"validateLayoutData");var f=(0,i.K2)((async(t,e,{insertCluster:r,insertEdge:i,insertEdgeLabel:n,insertMarkers:o,insertNode:a,log:s,positionEdgeLabel:h},{algorithm:l})=>{const u={};const g={};const c=e.select("g");o(c,t.markers,t.type,t.diagramId);const p=c.insert("g").attr("class","subgraphs");const f=c.insert("g").attr("class","edgePaths");const v=c.insert("g").attr("class","edgeLabels");const y=c.insert("g").attr("class","nodes");s.debug("Inserting nodes into DOM for dimension calculation");await Promise.all(t.nodes.map((async e=>{if(e.isGroup){const t={...e};g[e.id]=t;u[e.id]=t;await r(p,e)}else{const r={...e};u[e.id]=r;const i=await a(y,e,{config:t.config,dir:t.direction||"TB"});const n=i.node().getBBox();r.width=n.width;r.height=n.height;r.domId=i;s.debug(`Node ${e.id} dimensions: ${n.width}x${n.height}`)}})));s.debug("Running cose-bilkent layout algorithm");const E={...t,nodes:t.nodes.map((t=>{const e=u[t.id];return{...t,width:e.width,height:e.height}}))};const A=await d(E,t.config);s.debug("Positioning nodes based on layout results");A.nodes.forEach((t=>{const e=u[t.id];if(e?.domId){e.domId.attr("transform",`translate(${t.x}, ${t.y})`);e.x=t.x;e.y=t.y;s.debug(`Positioned node ${e.id} at center (${t.x}, ${t.y})`)}}));A.edges.forEach((e=>{const r=t.edges.find((t=>t.id===e.id));if(r){r.points=[{x:e.startX,y:e.startY},{x:e.midX,y:e.midY},{x:e.endX,y:e.endY}]}}));s.debug("Inserting and positioning edges");await Promise.all(t.edges.map((async e=>{const r=await n(v,e);const o=u[e.start??""];const a=u[e.end??""];if(o&&a){const r=A.edges.find((t=>t.id===e.id));if(r){s.debug("APA01 positionedEdge",r);const n={...e};const l=i(f,n,g,t.type,o,a,t.diagramId);h(n,l)}else{const r={...e,points:[{x:o.x||0,y:o.y||0},{x:a.x||0,y:a.y||0}]};const n=i(f,r,g,t.type,o,a,t.diagramId);h(r,n)}}})));s.debug("Cose-bilkent rendering completed")}),"render");var v=f}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/5085.a38923f36b551620798a.js b/share/jupyter/lab/static/5085.a38923f36b551620798a.js new file mode 100644 index 0000000..7af8df4 --- /dev/null +++ b/share/jupyter/lab/static/5085.a38923f36b551620798a.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5085],{65085:(e,t,r)=>{r.r(t);r.d(t,{apl:()=>f});var n={"+":["conjugate","add"],"−":["negate","subtract"],"×":["signOf","multiply"],"÷":["reciprocal","divide"],"⌈":["ceiling","greaterOf"],"⌊":["floor","lesserOf"],"∣":["absolute","residue"],"⍳":["indexGenerate","indexOf"],"?":["roll","deal"],"⋆":["exponentiate","toThePowerOf"],"⍟":["naturalLog","logToTheBase"],"○":["piTimes","circularFuncs"],"!":["factorial","binomial"],"⌹":["matrixInverse","matrixDivide"],"<":[null,"lessThan"],"≤":[null,"lessThanOrEqual"],"=":[null,"equals"],">":[null,"greaterThan"],"≥":[null,"greaterThanOrEqual"],"≠":[null,"notEqual"],"≡":["depth","match"],"≢":[null,"notMatch"],"∈":["enlist","membership"],"⍷":[null,"find"],"∪":["unique","union"],"∩":[null,"intersection"],"∼":["not","without"],"∨":[null,"or"],"∧":[null,"and"],"⍱":[null,"nor"],"⍲":[null,"nand"],"⍴":["shapeOf","reshape"],",":["ravel","catenate"],"⍪":[null,"firstAxisCatenate"],"⌽":["reverse","rotate"],"⊖":["axis1Reverse","axis1Rotate"],"⍉":["transpose",null],"↑":["first","take"],"↓":[null,"drop"],"⊂":["enclose","partitionWithAxis"],"⊃":["diclose","pick"],"⌷":[null,"index"],"⍋":["gradeUp",null],"⍒":["gradeDown",null],"⊤":["encode",null],"⊥":["decode",null],"⍕":["format","formatByExample"],"⍎":["execute",null],"⊣":["stop","left"],"⊢":["pass","right"]};var a=/[\.\/⌿⍀¨⍣]/;var l=/⍬/;var u=/[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/;var i=/←/;var s=/[⍝#].*$/;var o=function(e){var t;t=false;return function(r){t=r;if(r===e){return t==="\\"}return true}};const f={name:"apl",startState:function(){return{prev:false,func:false,op:false,string:false,escape:false}},token:function(e,t){var r;if(e.eatSpace()){return null}r=e.next();if(r==='"'||r==="'"){e.eatWhile(o(r));e.next();t.prev=true;return"string"}if(/[\[{\(]/.test(r)){t.prev=false;return null}if(/[\]}\)]/.test(r)){t.prev=true;return null}if(l.test(r)){t.prev=false;return"atom"}if(/[¯\d]/.test(r)){if(t.func){t.func=false;t.prev=false}else{t.prev=true}e.eatWhile(/[\w\.]/);return"number"}if(a.test(r)){return"operator"}if(i.test(r)){return"operator"}if(u.test(r)){t.func=true;t.prev=false;return n[r]?"variableName.function.standard":"variableName.function"}if(s.test(r)){e.skipToEnd();return"comment"}if(r==="∘"&&e.peek()==="."){e.next();return"variableName.function"}e.eatWhile(/[\w\$_]/);t.prev=true;return"keyword"}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/5090.404be96d8a6eae1e719a.js b/share/jupyter/lab/static/5090.404be96d8a6eae1e719a.js new file mode 100644 index 0000000..797d20b --- /dev/null +++ b/share/jupyter/lab/static/5090.404be96d8a6eae1e719a.js @@ -0,0 +1,2 @@ +/*! For license information please see 5090.404be96d8a6eae1e719a.js.LICENSE.txt */ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5090],{67002:(t,n,e)=>{e.d(n,{t:()=>o});const o={horizontal:"horizontal",vertical:"vertical"}},74291:(t,n,e)=>{e.d(n,{Ac:()=>Dt,De:()=>xt,F9:()=>kt,FM:()=>At,HX:()=>bt,I5:()=>Pt,Is:()=>Mt,J9:()=>Ct,Mm:()=>Et,R9:()=>Tt,Tg:()=>Rt,bb:()=>St,f_:()=>Nt,gG:()=>It,kT:()=>yt,oK:()=>Lt});var o;(function(t){t[t["alt"]=18]="alt";t[t["arrowDown"]=40]="arrowDown";t[t["arrowLeft"]=37]="arrowLeft";t[t["arrowRight"]=39]="arrowRight";t[t["arrowUp"]=38]="arrowUp";t[t["back"]=8]="back";t[t["backSlash"]=220]="backSlash";t[t["break"]=19]="break";t[t["capsLock"]=20]="capsLock";t[t["closeBracket"]=221]="closeBracket";t[t["colon"]=186]="colon";t[t["colon2"]=59]="colon2";t[t["comma"]=188]="comma";t[t["ctrl"]=17]="ctrl";t[t["delete"]=46]="delete";t[t["end"]=35]="end";t[t["enter"]=13]="enter";t[t["equals"]=187]="equals";t[t["equals2"]=61]="equals2";t[t["equals3"]=107]="equals3";t[t["escape"]=27]="escape";t[t["forwardSlash"]=191]="forwardSlash";t[t["function1"]=112]="function1";t[t["function10"]=121]="function10";t[t["function11"]=122]="function11";t[t["function12"]=123]="function12";t[t["function2"]=113]="function2";t[t["function3"]=114]="function3";t[t["function4"]=115]="function4";t[t["function5"]=116]="function5";t[t["function6"]=117]="function6";t[t["function7"]=118]="function7";t[t["function8"]=119]="function8";t[t["function9"]=120]="function9";t[t["home"]=36]="home";t[t["insert"]=45]="insert";t[t["menu"]=93]="menu";t[t["minus"]=189]="minus";t[t["minus2"]=109]="minus2";t[t["numLock"]=144]="numLock";t[t["numPad0"]=96]="numPad0";t[t["numPad1"]=97]="numPad1";t[t["numPad2"]=98]="numPad2";t[t["numPad3"]=99]="numPad3";t[t["numPad4"]=100]="numPad4";t[t["numPad5"]=101]="numPad5";t[t["numPad6"]=102]="numPad6";t[t["numPad7"]=103]="numPad7";t[t["numPad8"]=104]="numPad8";t[t["numPad9"]=105]="numPad9";t[t["numPadDivide"]=111]="numPadDivide";t[t["numPadDot"]=110]="numPadDot";t[t["numPadMinus"]=109]="numPadMinus";t[t["numPadMultiply"]=106]="numPadMultiply";t[t["numPadPlus"]=107]="numPadPlus";t[t["openBracket"]=219]="openBracket";t[t["pageDown"]=34]="pageDown";t[t["pageUp"]=33]="pageUp";t[t["period"]=190]="period";t[t["print"]=44]="print";t[t["quote"]=222]="quote";t[t["scrollLock"]=145]="scrollLock";t[t["shift"]=16]="shift";t[t["space"]=32]="space";t[t["tab"]=9]="tab";t[t["tilde"]=192]="tilde";t[t["windowsLeft"]=91]="windowsLeft";t[t["windowsOpera"]=219]="windowsOpera";t[t["windowsRight"]=92]="windowsRight"})(o||(o={}));const r=18;const a=40;const c=37;const i=39;const s=38;const u=8;const l=220;const d=19;const f=20;const p=221;const m=186;const h=59;const v=188;const w=17;const g=46;const b=35;const y=13;const S=187;const P=61;const E=107;const k=27;const R=191;const A=112;const D=121;const N=122;const L=123;const I=113;const C=114;const T=115;const x=116;const M=117;const U=118;const O=119;const q=120;const B=36;const F=45;const _=93;const j=189;const z=109;const G=144;const H=96;const V=97;const X=98;const $=99;const J=100;const K=101;const Y=102;const Q=103;const W=104;const Z=105;const tt=111;const nt=110;const et=109;const ot=106;const rt=107;const at=219;const ct=34;const it=33;const st=190;const ut=44;const lt=222;const dt=145;const ft=16;const pt=32;const mt=9;const ht=192;const vt=91;const wt=219;const gt=92;const bt="ArrowDown";const yt="ArrowLeft";const St="ArrowRight";const Pt="ArrowUp";const Et="Enter";const kt="Escape";const Rt="Home";const At="End";const Dt="F2";const Nt="PageDown";const Lt="PageUp";const It=" ";const Ct="Tab";const Tt="Backspace";const xt="Delete";const Mt={ArrowDown:bt,ArrowLeft:yt,ArrowRight:St,ArrowUp:Pt}},30086:(t,n,e)=>{e.d(n,{O:()=>o});var o;(function(t){t["ltr"]="ltr";t["rtl"]="rtl"})(o||(o={}))},83021:(t,n,e)=>{e.d(n,{AB:()=>r,Vf:()=>o,r4:()=>a});function o(t,n,e){if(en){return t}return e}function r(t,n,e){return Math.min(Math.max(e,t),n)}function a(t,n,e=0){[n,e]=[n,e].sort(((t,n)=>t-n));return n<=t&&t{e.d(n,{AO:()=>N,tp:()=>I});var o=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"];var r=o.join(",");var a=typeof Element==="undefined";var c=a?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;var i=!a&&Element.prototype.getRootNode?function(t){return t.getRootNode()}:function(t){return t.ownerDocument};var s=function t(n,e,o){var a=Array.prototype.slice.apply(n.querySelectorAll(r));if(e&&c.call(n,r)){a.unshift(n)}a=a.filter(o);return a};var u=function t(n,e,o){var a=[];var i=Array.from(n);while(i.length){var s=i.shift();if(s.tagName==="SLOT"){var u=s.assignedElements();var l=u.length?u:s.children;var d=t(l,true,o);if(o.flatten){a.push.apply(a,d)}else{a.push({scope:s,candidates:d})}}else{var f=c.call(s,r);if(f&&o.filter(s)&&(e||!n.includes(s))){a.push(s)}var p=s.shadowRoot||typeof o.getShadowRoot==="function"&&o.getShadowRoot(s);var m=!o.shadowRootFilter||o.shadowRootFilter(s);if(p&&m){var h=t(p===true?s.children:p.children,true,o);if(o.flatten){a.push.apply(a,h)}else{a.push({scope:s,candidates:h})}}else{i.unshift.apply(i,s.children)}}}return a};var l=function t(n,e){if(n.tabIndex<0){if((e||/^(AUDIO|VIDEO|DETAILS)$/.test(n.tagName)||n.isContentEditable)&&isNaN(parseInt(n.getAttribute("tabindex"),10))){return 0}}return n.tabIndex};var d=function t(n,e){return n.tabIndex===e.tabIndex?n.documentOrder-e.documentOrder:n.tabIndex-e.tabIndex};var f=function t(n){return n.tagName==="INPUT"};var p=function t(n){return f(n)&&n.type==="hidden"};var m=function t(n){var e=n.tagName==="DETAILS"&&Array.prototype.slice.apply(n.children).some((function(t){return t.tagName==="SUMMARY"}));return e};var h=function t(n,e){for(var o=0;osummary:first-of-type");var s=a?n.parentElement:n;if(c.call(s,"details:not([open]) *")){return true}var u=i(n).host;var l=(u===null||u===void 0?void 0:u.ownerDocument.contains(u))||n.ownerDocument.contains(n);if(!o||o==="full"){if(typeof r==="function"){var d=n;while(n){var f=n.parentElement;var p=i(n);if(f&&!f.shadowRoot&&r(f)===true){return b(n)}else if(n.assignedSlot){n=n.assignedSlot}else if(!f&&p!==n.ownerDocument){n=p.host}else{n=f}}n=d}if(l){return!n.getClientRects().length}}else if(o==="non-zero-area"){return b(n)}return false};var S=function t(n){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(n.tagName)){var e=n.parentElement;while(e){if(e.tagName==="FIELDSET"&&e.disabled){for(var o=0;o=0){return true}return false};var R=function t(n){var e=[];var o=[];n.forEach((function(n,r){var a=!!n.scope;var c=a?n.scope:n;var i=l(c,a);var s=a?t(n.candidates):c;if(i===0){a?e.push.apply(e,s):e.push(c)}else{o.push({documentOrder:r,tabIndex:i,item:n,isScope:a,content:s})}}));return o.sort(d).reduce((function(t,n){n.isScope?t.push.apply(t,n.content):t.push(n.content);return t}),[]).concat(e)};var A=function t(n,e){e=e||{};var o;if(e.getShadowRoot){o=u([n],e.includeContainer,{filter:E.bind(null,e),flatten:false,getShadowRoot:e.getShadowRoot,shadowRootFilter:k})}else{o=s(n,e.includeContainer,E.bind(null,e))}return R(o)};var D=function t(n,e){e=e||{};var o;if(e.getShadowRoot){o=u([n],e.includeContainer,{filter:P.bind(null,e),flatten:true,getShadowRoot:e.getShadowRoot})}else{o=s(n,e.includeContainer,P.bind(null,e))}return o};var N=function t(n,e){e=e||{};if(!n){throw new Error("No node provided")}if(c.call(n,r)===false){return false}return E(e,n)};var L=o.concat("iframe").join(",");var I=function t(n,e){e=e||{};if(!n){throw new Error("No node provided")}if(c.call(n,L)===false){return false}return P(e,n)}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/5090.404be96d8a6eae1e719a.js.LICENSE.txt b/share/jupyter/lab/static/5090.404be96d8a6eae1e719a.js.LICENSE.txt new file mode 100644 index 0000000..c731c18 --- /dev/null +++ b/share/jupyter/lab/static/5090.404be96d8a6eae1e719a.js.LICENSE.txt @@ -0,0 +1,4 @@ +/*! +* tabbable 5.3.3 +* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE +*/ diff --git a/share/jupyter/lab/static/5211.83e78dadcef89cae04bf.js b/share/jupyter/lab/static/5211.83e78dadcef89cae04bf.js new file mode 100644 index 0000000..56b814c --- /dev/null +++ b/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;s{t.r(n);t.d(n,{sieve:()=>p});function r(e){var n={},t=e.split(" ");for(var r=0;r0)&&!(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/share/jupyter/lab/static/5318.d5df5c275e925c22d780.js b/share/jupyter/lab/static/5318.d5df5c275e925c22d780.js new file mode 100644 index 0000000..989c69c --- /dev/null +++ b/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/share/jupyter/lab/static/5338.38c32bdfb0695f9b501f.js b/share/jupyter/lab/static/5338.38c32bdfb0695f9b501f.js new file mode 100644 index 0000000..9cb3cd1 --- /dev/null +++ b/share/jupyter/lab/static/5338.38c32bdfb0695f9b501f.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5338,2957,100],{5338:(a,e,t)=>{var p;var r=t(86672);if(true){e.H=r.createRoot;p=r.hydrateRoot}else{var o}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/5362.c794ff9abf82992fb389.js b/share/jupyter/lab/static/5362.c794ff9abf82992fb389.js new file mode 100644 index 0000000..5513d9f --- /dev/null +++ b/share/jupyter/lab/static/5362.c794ff9abf82992fb389.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5362],{55362:(a,p,e)=>{e.d(p,{createGitGraphServices:()=>t.b});var t=e(51454);var r=e(11254)}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/5454.0401043bbeb0b9ef2a06.js b/share/jupyter/lab/static/5454.0401043bbeb0b9ef2a06.js new file mode 100644 index 0000000..cdbd821 --- /dev/null +++ b/share/jupyter/lab/static/5454.0401043bbeb0b9ef2a06.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5454],{83073:(e,a,p)=>{p.d(a,{createArchitectureServices:()=>t.S});var t=p(31109);var c=p(11254)}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/5489.7710426bc179ba430a0e.js b/share/jupyter/lab/static/5489.7710426bc179ba430a0e.js new file mode 100644 index 0000000..13e7618 --- /dev/null +++ b/share/jupyter/lab/static/5489.7710426bc179ba430a0e.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5489],{25489:(e,t,r)=>{r.d(t,{default:()=>vn});class a{constructor(e,t,r){this.lexer=void 0;this.start=void 0;this.end=void 0;this.lexer=e;this.start=t;this.end=r}static range(e,t){if(!t){return e&&e.loc}else if(!e||!e.loc||!t.loc||e.loc.lexer!==t.loc.lexer){return null}else{return new a(e.loc.lexer,e.loc.start,t.loc.end)}}}class i{constructor(e,t){this.text=void 0;this.loc=void 0;this.noexpand=void 0;this.treatAsRelax=void 0;this.text=e;this.loc=t}range(e,t){return new i(t,a.range(this,e))}}class n{constructor(e,t){this.name=void 0;this.position=void 0;this.length=void 0;this.rawMessage=void 0;var r="KaTeX parse error: "+e;var a;var i;var s=t&&t.loc;if(s&&s.start<=s.end){var o=s.lexer.input;a=s.start;i=s.end;if(a===o.length){r+=" at end of input: "}else{r+=" at position "+(a+1)+": "}var l=o.slice(a,i).replace(/[^]/g,"$&̲");var h;if(a>15){h="…"+o.slice(a-15,a)}else{h=o.slice(0,a)}var u;if(i+15":">","<":"<",'"':""","'":"'"};var m=/[&><"']/g;function c(e){return String(e).replace(m,(e=>u[e]))}var p=function e(t){if(t.type==="ordgroup"){if(t.body.length===1){return e(t.body[0])}else{return t}}else if(t.type==="color"){if(t.body.length===1){return e(t.body[0])}else{return t}}else if(t.type==="font"){return e(t.body)}else{return t}};var d=function e(t){var r=p(t);return r.type==="mathord"||r.type==="textord"||r.type==="atom"};var f=function e(t){if(!t){throw new Error("Expected non-null, but got "+String(t))}return t};var v=function e(t){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);if(!r){return"_relative"}if(r[2]!==":"){return null}if(!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])){return null}return r[1].toLowerCase()};var g={contains:s,deflt:o,escape:c,hyphenate:h,getBaseElem:p,isCharacterBox:d,protocolFromUrl:v};var b={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in "+"display style (so \\int and \\sum are large, for example), and "+"centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:true,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) ins"+"tead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' "+"(no #). This option determines the color of errors rendered by the "+"-t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use "+"multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>{t.push(e);return t}},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines,"+" `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, "+"`\\hdashline`, `\\underline`, `\\overline`, and the borders of "+"`\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, "+"instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an "+"error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:false},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:Infinity,description:"If non-zero, all user-specified sizes, e.g. in "+"\\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, "+"elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified "+"number, to prevent e.g. infinite macro loops. If set to Infinity, "+"the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?Infinity:parseInt(e)},globalGroup:{type:"boolean",cli:false}};function y(e){if(e.default){return e.default}var t=e.type;var r=Array.isArray(t)?t[0]:t;if(typeof r!=="string"){return r.enum[0]}switch(r){case"boolean":return false;case"string":return"";case"number":return 0;case"object":return{}}}class x{constructor(e){this.displayMode=void 0;this.output=void 0;this.leqno=void 0;this.fleqn=void 0;this.throwOnError=void 0;this.errorColor=void 0;this.macros=void 0;this.minRuleThickness=void 0;this.colorIsTextColor=void 0;this.strict=void 0;this.trust=void 0;this.maxSize=void 0;this.maxExpand=void 0;this.globalGroup=void 0;e=e||{};for(var t in b){if(b.hasOwnProperty(t)){var r=b[t];this[t]=e[t]!==undefined?r.processor?r.processor(e[t]):e[t]:y(r)}}}reportNonstrict(e,t,r){var a=this.strict;if(typeof a==="function"){a=a(e,t,r)}if(!a||a==="ignore"){return}else if(a===true||a==="error"){throw new n("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),r)}else if(a==="warn"){typeof console!=="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]"))}else{typeof console!=="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,r){var a=this.strict;if(typeof a==="function"){try{a=a(e,t,r)}catch(i){a="error"}}if(!a||a==="ignore"){return false}else if(a===true||a==="error"){return true}else if(a==="warn"){typeof console!=="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]"));return false}else{typeof console!=="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+t+" ["+e+"]"));return false}}isTrusted(e){if(e.url&&!e.protocol){var t=g.protocolFromUrl(e.url);if(t==null){return false}e.protocol=t}var r=typeof this.trust==="function"?this.trust(e):this.trust;return Boolean(r)}}class w{constructor(e,t,r){this.id=void 0;this.size=void 0;this.cramped=void 0;this.id=e;this.size=t;this.cramped=r}sup(){return N[q[this.id]]}sub(){return N[I[this.id]]}fracNum(){return N[R[this.id]]}fracDen(){return N[H[this.id]]}cramp(){return N[O[this.id]]}text(){return N[E[this.id]]}isTight(){return this.size>=2}}var k=0;var S=1;var M=2;var z=3;var A=4;var T=5;var B=6;var C=7;var N=[new w(k,0,false),new w(S,0,true),new w(M,1,false),new w(z,1,true),new w(A,2,false),new w(T,2,true),new w(B,3,false),new w(C,3,true)];var q=[A,T,A,T,B,C,B,C];var I=[T,T,T,T,C,C,C,C];var R=[M,z,A,T,B,C,B,C];var H=[z,z,T,T,C,C,C,C];var O=[S,S,z,z,T,T,C,C];var E=[k,S,M,z,M,z,M,z];var L={DISPLAY:N[k],TEXT:N[M],SCRIPT:N[A],SCRIPTSCRIPT:N[B]};var D=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function V(e){for(var t=0;t=i[0]&&e<=i[1]){return r.name}}}return null}var P=[];D.forEach((e=>e.blocks.forEach((e=>P.push(...e)))));function F(e){for(var t=0;t=P[t]&&e<=P[t+1]){return true}}return false}var G=80;var U=function e(t,r){return"M95,"+(622+t+r)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+t/2.075+" -"+t+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+t)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"};var Y=function e(t,r){return"M263,"+(601+t+r)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+t/2.084+" -"+t+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+t)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"};var X=function e(t,r){return"M983 "+(10+t+r)+"\nl"+t/3.13+" -"+t+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+t)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"};var W=function e(t,r){return"M424,"+(2398+t+r)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+t/4.223+" -"+t+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+t)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+t)+" "+r+"\nh400000v"+(40+t)+"h-400000z"};var _=function e(t,r){return"M473,"+(2713+t+r)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+t/5.298+" -"+t+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+t)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"};var j=function e(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"};var $=function e(t,r,a){var i=a-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+"\nH742v"+i+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+r+"H400000v"+(40+t)+"H742z"};var Z=function e(t,r,a){r=1e3*r;var i="";switch(t){case"sqrtMain":i=U(r,G);break;case"sqrtSize1":i=Y(r,G);break;case"sqrtSize2":i=X(r,G);break;case"sqrtSize3":i=W(r,G);break;case"sqrtSize4":i=_(r,G);break;case"sqrtTall":i=$(r,G,a)}return i};var K=function e(t,r){switch(t){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}};var J={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};var Q=function e(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-r+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-r+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+r+" v585 h43z\nM367 15 v585 v"+r+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-r+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+" v602 h84z\nM403 1759 V0 H319 V1759 v"+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+r+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(r+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(r+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(r+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(r+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}};class ee{constructor(e){this.children=void 0;this.classes=void 0;this.height=void 0;this.depth=void 0;this.maxFontSize=void 0;this.style=void 0;this.children=e;this.classes=[];this.height=0;this.depth=0;this.maxFontSize=0;this.style={}}hasClass(e){return g.contains(this.classes,e)}toNode(){var e=document.createDocumentFragment();for(var t=0;te.toText();return this.children.map(e).join("")}}var te={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}};var re={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]};var ae={"Å":"A","Ð":"D","Þ":"o","å":"a","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function ie(e,t){te[e]=t}function ne(e,t,r){if(!te[t]){throw new Error("Font metrics not found for font: "+t+".")}var a=e.charCodeAt(0);var i=te[t][a];if(!i&&e[0]in ae){a=ae[e[0]].charCodeAt(0);i=te[t][a]}if(!i&&r==="text"){if(F(a)){i=te[t][77]}}if(i){return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}}var se={};function oe(e){var t;if(e>=5){t=0}else if(e>=3){t=1}else{t=2}if(!se[t]){var r=se[t]={cssEmPerMu:re.quad[t]/18};for(var a in re){if(re.hasOwnProperty(a)){r[a]=re[a][t]}}}return se[t]}var le=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]];var he=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488];var ue=function e(t,r){return r.size<2?t:le[t-1][r.size-1]};class me{constructor(e){this.style=void 0;this.color=void 0;this.size=void 0;this.textSize=void 0;this.phantom=void 0;this.font=void 0;this.fontFamily=void 0;this.fontWeight=void 0;this.fontShape=void 0;this.sizeMultiplier=void 0;this.maxSize=void 0;this.minRuleThickness=void 0;this._fontMetrics=void 0;this.style=e.style;this.color=e.color;this.size=e.size||me.BASESIZE;this.textSize=e.textSize||this.size;this.phantom=!!e.phantom;this.font=e.font||"";this.fontFamily=e.fontFamily||"";this.fontWeight=e.fontWeight||"";this.fontShape=e.fontShape||"";this.sizeMultiplier=he[this.size-1];this.maxSize=e.maxSize;this.minRuleThickness=e.minRuleThickness;this._fontMetrics=undefined}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in e){if(e.hasOwnProperty(r)){t[r]=e[r]}}return new me(t)}havingStyle(e){if(this.style===e){return this}else{return this.extend({style:e,size:ue(this.textSize,e)})}}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){if(this.size===e&&this.textSize===e){return this}else{return this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:he[e-1]})}}havingBaseStyle(e){e=e||this.style.text();var t=ue(me.BASESIZE,e);if(this.size===t&&this.textSize===me.BASESIZE&&this.style===e){return this}else{return this.extend({style:e,size:t})}}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:true})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){if(e.size!==this.size){return["sizing","reset-size"+e.size,"size"+this.size]}else{return[]}}baseSizingClasses(){if(this.size!==me.BASESIZE){return["sizing","reset-size"+this.size,"size"+me.BASESIZE]}else{return[]}}fontMetrics(){if(!this._fontMetrics){this._fontMetrics=oe(this.size)}return this._fontMetrics}getColor(){if(this.phantom){return"transparent"}else{return this.color}}}me.BASESIZE=6;var ce={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800};var pe={ex:true,em:true,mu:true};var de=function e(t){if(typeof t!=="string"){t=t.unit}return t in ce||t in pe||t==="ex"};var fe=function e(t,r){var a;if(t.unit in ce){a=ce[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier}else if(t.unit==="mu"){a=r.fontMetrics().cssEmPerMu}else{var i;if(r.style.isTight()){i=r.havingStyle(r.style.text())}else{i=r}if(t.unit==="ex"){a=i.fontMetrics().xHeight}else if(t.unit==="em"){a=i.fontMetrics().quad}else{throw new n("Invalid unit: '"+t.unit+"'")}if(i!==r){a*=i.sizeMultiplier/r.sizeMultiplier}}return Math.min(t.number*a,r.maxSize)};var ve=function e(t){return+t.toFixed(4)+"em"};var ge=function e(t){return t.filter((e=>e)).join(" ")};var be=function e(t,r,a){this.classes=t||[];this.attributes={};this.height=0;this.depth=0;this.maxFontSize=0;this.style=a||{};if(r){if(r.style.isTight()){this.classes.push("mtight")}var i=r.getColor();if(i){this.style.color=i}}};var ye=function e(t){var r=document.createElement(t);r.className=ge(this.classes);for(var a in this.style){if(this.style.hasOwnProperty(a)){r.style[a]=this.style[a]}}for(var i in this.attributes){if(this.attributes.hasOwnProperty(i)){r.setAttribute(i,this.attributes[i])}}for(var n=0;n/=\x00-\x1f]/;var we=function e(t){var r="<"+t;if(this.classes.length){r+=' class="'+g.escape(ge(this.classes))+'"'}var a="";for(var i in this.style){if(this.style.hasOwnProperty(i)){a+=g.hyphenate(i)+":"+this.style[i]+";"}}if(a){r+=' style="'+g.escape(a)+'"'}for(var s in this.attributes){if(this.attributes.hasOwnProperty(s)){if(xe.test(s)){throw new n("Invalid attribute name '"+s+"'")}r+=" "+s+'="'+g.escape(this.attributes[s])+'"'}}r+=">";for(var o=0;o";return r};class ke{constructor(e,t,r,a){this.children=void 0;this.attributes=void 0;this.classes=void 0;this.height=void 0;this.depth=void 0;this.width=void 0;this.maxFontSize=void 0;this.style=void 0;be.call(this,e,r,a);this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return g.contains(this.classes,e)}toNode(){return ye.call(this,"span")}toMarkup(){return we.call(this,"span")}}class Se{constructor(e,t,r,a){this.children=void 0;this.attributes=void 0;this.classes=void 0;this.height=void 0;this.depth=void 0;this.maxFontSize=void 0;this.style=void 0;be.call(this,t,a);this.children=r||[];this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return g.contains(this.classes,e)}toNode(){return ye.call(this,"a")}toMarkup(){return we.call(this,"a")}}class Me{constructor(e,t,r){this.src=void 0;this.alt=void 0;this.classes=void 0;this.height=void 0;this.depth=void 0;this.maxFontSize=void 0;this.style=void 0;this.alt=t;this.src=e;this.classes=["mord"];this.style=r}hasClass(e){return g.contains(this.classes,e)}toNode(){var e=document.createElement("img");e.src=this.src;e.alt=this.alt;e.className="mord";for(var t in this.style){if(this.style.hasOwnProperty(t)){e.style[t]=this.style[t]}}return e}toMarkup(){var e=''+g.escape(this.alt)+'0){t=document.createElement("span");t.style.marginRight=ve(this.italic)}if(this.classes.length>0){t=t||document.createElement("span");t.className=ge(this.classes)}for(var r in this.style){if(this.style.hasOwnProperty(r)){t=t||document.createElement("span");t.style[r]=this.style[r]}}if(t){t.appendChild(e);return t}else{return e}}toMarkup(){var e=false;var t="0){r+="margin-right:"+this.italic+"em;"}for(var a in this.style){if(this.style.hasOwnProperty(a)){r+=g.hyphenate(a)+":"+this.style[a]+";"}}if(r){e=true;t+=' style="'+g.escape(r)+'"'}var i=g.escape(this.text);if(e){t+=">";t+=i;t+="";return t}else{return i}}}class Te{constructor(e,t){this.children=void 0;this.attributes=void 0;this.children=e||[];this.attributes=t||{}}toNode(){var e="http://www.w3.org/2000/svg";var t=document.createElementNS(e,"svg");for(var r in this.attributes){if(Object.prototype.hasOwnProperty.call(this.attributes,r)){t.setAttribute(r,this.attributes[r])}}for(var a=0;a";return e}}class Be{constructor(e,t){this.pathName=void 0;this.alternate=void 0;this.pathName=e;this.alternate=t}toNode(){var e="http://www.w3.org/2000/svg";var t=document.createElementNS(e,"path");if(this.alternate){t.setAttribute("d",this.alternate)}else{t.setAttribute("d",J[this.pathName])}return t}toMarkup(){if(this.alternate){return''}else{return''}}}class Ce{constructor(e){this.attributes=void 0;this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg";var t=document.createElementNS(e,"line");for(var r in this.attributes){if(Object.prototype.hasOwnProperty.call(this.attributes,r)){t.setAttribute(r,this.attributes[r])}}return t}toMarkup(){var e=" but got "+String(e)+".")}}var Ie={bin:1,close:1,inner:1,open:1,punct:1,rel:1};var Re={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};var He={math:{},text:{}};function Oe(e,t,r,a,i,n){He[e][i]={font:t,group:r,replace:a};if(n&&a){He[e][a]=He[e][i]}}var Ee="math";var Le="text";var De="main";var Ve="ams";var Pe="accent-token";var Fe="bin";var Ge="close";var Ue="inner";var Ye="mathord";var Xe="op-token";var We="open";var _e="punct";var je="rel";var $e="spacing";var Ze="textord";Oe(Ee,De,je,"≡","\\equiv",true);Oe(Ee,De,je,"≺","\\prec",true);Oe(Ee,De,je,"≻","\\succ",true);Oe(Ee,De,je,"∼","\\sim",true);Oe(Ee,De,je,"⊥","\\perp");Oe(Ee,De,je,"⪯","\\preceq",true);Oe(Ee,De,je,"⪰","\\succeq",true);Oe(Ee,De,je,"≃","\\simeq",true);Oe(Ee,De,je,"∣","\\mid",true);Oe(Ee,De,je,"≪","\\ll",true);Oe(Ee,De,je,"≫","\\gg",true);Oe(Ee,De,je,"≍","\\asymp",true);Oe(Ee,De,je,"∥","\\parallel");Oe(Ee,De,je,"⋈","\\bowtie",true);Oe(Ee,De,je,"⌣","\\smile",true);Oe(Ee,De,je,"⊑","\\sqsubseteq",true);Oe(Ee,De,je,"⊒","\\sqsupseteq",true);Oe(Ee,De,je,"≐","\\doteq",true);Oe(Ee,De,je,"⌢","\\frown",true);Oe(Ee,De,je,"∋","\\ni",true);Oe(Ee,De,je,"∝","\\propto",true);Oe(Ee,De,je,"⊢","\\vdash",true);Oe(Ee,De,je,"⊣","\\dashv",true);Oe(Ee,De,je,"∋","\\owns");Oe(Ee,De,_e,".","\\ldotp");Oe(Ee,De,_e,"⋅","\\cdotp");Oe(Ee,De,Ze,"#","\\#");Oe(Le,De,Ze,"#","\\#");Oe(Ee,De,Ze,"&","\\&");Oe(Le,De,Ze,"&","\\&");Oe(Ee,De,Ze,"ℵ","\\aleph",true);Oe(Ee,De,Ze,"∀","\\forall",true);Oe(Ee,De,Ze,"ℏ","\\hbar",true);Oe(Ee,De,Ze,"∃","\\exists",true);Oe(Ee,De,Ze,"∇","\\nabla",true);Oe(Ee,De,Ze,"♭","\\flat",true);Oe(Ee,De,Ze,"ℓ","\\ell",true);Oe(Ee,De,Ze,"♮","\\natural",true);Oe(Ee,De,Ze,"♣","\\clubsuit",true);Oe(Ee,De,Ze,"℘","\\wp",true);Oe(Ee,De,Ze,"♯","\\sharp",true);Oe(Ee,De,Ze,"♢","\\diamondsuit",true);Oe(Ee,De,Ze,"ℜ","\\Re",true);Oe(Ee,De,Ze,"♡","\\heartsuit",true);Oe(Ee,De,Ze,"ℑ","\\Im",true);Oe(Ee,De,Ze,"♠","\\spadesuit",true);Oe(Ee,De,Ze,"§","\\S",true);Oe(Le,De,Ze,"§","\\S");Oe(Ee,De,Ze,"¶","\\P",true);Oe(Le,De,Ze,"¶","\\P");Oe(Ee,De,Ze,"†","\\dag");Oe(Le,De,Ze,"†","\\dag");Oe(Le,De,Ze,"†","\\textdagger");Oe(Ee,De,Ze,"‡","\\ddag");Oe(Le,De,Ze,"‡","\\ddag");Oe(Le,De,Ze,"‡","\\textdaggerdbl");Oe(Ee,De,Ge,"⎱","\\rmoustache",true);Oe(Ee,De,We,"⎰","\\lmoustache",true);Oe(Ee,De,Ge,"⟯","\\rgroup",true);Oe(Ee,De,We,"⟮","\\lgroup",true);Oe(Ee,De,Fe,"∓","\\mp",true);Oe(Ee,De,Fe,"⊖","\\ominus",true);Oe(Ee,De,Fe,"⊎","\\uplus",true);Oe(Ee,De,Fe,"⊓","\\sqcap",true);Oe(Ee,De,Fe,"∗","\\ast");Oe(Ee,De,Fe,"⊔","\\sqcup",true);Oe(Ee,De,Fe,"◯","\\bigcirc",true);Oe(Ee,De,Fe,"∙","\\bullet",true);Oe(Ee,De,Fe,"‡","\\ddagger");Oe(Ee,De,Fe,"≀","\\wr",true);Oe(Ee,De,Fe,"⨿","\\amalg");Oe(Ee,De,Fe,"&","\\And");Oe(Ee,De,je,"⟵","\\longleftarrow",true);Oe(Ee,De,je,"⇐","\\Leftarrow",true);Oe(Ee,De,je,"⟸","\\Longleftarrow",true);Oe(Ee,De,je,"⟶","\\longrightarrow",true);Oe(Ee,De,je,"⇒","\\Rightarrow",true);Oe(Ee,De,je,"⟹","\\Longrightarrow",true);Oe(Ee,De,je,"↔","\\leftrightarrow",true);Oe(Ee,De,je,"⟷","\\longleftrightarrow",true);Oe(Ee,De,je,"⇔","\\Leftrightarrow",true);Oe(Ee,De,je,"⟺","\\Longleftrightarrow",true);Oe(Ee,De,je,"↦","\\mapsto",true);Oe(Ee,De,je,"⟼","\\longmapsto",true);Oe(Ee,De,je,"↗","\\nearrow",true);Oe(Ee,De,je,"↩","\\hookleftarrow",true);Oe(Ee,De,je,"↪","\\hookrightarrow",true);Oe(Ee,De,je,"↘","\\searrow",true);Oe(Ee,De,je,"↼","\\leftharpoonup",true);Oe(Ee,De,je,"⇀","\\rightharpoonup",true);Oe(Ee,De,je,"↙","\\swarrow",true);Oe(Ee,De,je,"↽","\\leftharpoondown",true);Oe(Ee,De,je,"⇁","\\rightharpoondown",true);Oe(Ee,De,je,"↖","\\nwarrow",true);Oe(Ee,De,je,"⇌","\\rightleftharpoons",true);Oe(Ee,Ve,je,"≮","\\nless",true);Oe(Ee,Ve,je,"","\\@nleqslant");Oe(Ee,Ve,je,"","\\@nleqq");Oe(Ee,Ve,je,"⪇","\\lneq",true);Oe(Ee,Ve,je,"≨","\\lneqq",true);Oe(Ee,Ve,je,"","\\@lvertneqq");Oe(Ee,Ve,je,"⋦","\\lnsim",true);Oe(Ee,Ve,je,"⪉","\\lnapprox",true);Oe(Ee,Ve,je,"⊀","\\nprec",true);Oe(Ee,Ve,je,"⋠","\\npreceq",true);Oe(Ee,Ve,je,"⋨","\\precnsim",true);Oe(Ee,Ve,je,"⪹","\\precnapprox",true);Oe(Ee,Ve,je,"≁","\\nsim",true);Oe(Ee,Ve,je,"","\\@nshortmid");Oe(Ee,Ve,je,"∤","\\nmid",true);Oe(Ee,Ve,je,"⊬","\\nvdash",true);Oe(Ee,Ve,je,"⊭","\\nvDash",true);Oe(Ee,Ve,je,"⋪","\\ntriangleleft");Oe(Ee,Ve,je,"⋬","\\ntrianglelefteq",true);Oe(Ee,Ve,je,"⊊","\\subsetneq",true);Oe(Ee,Ve,je,"","\\@varsubsetneq");Oe(Ee,Ve,je,"⫋","\\subsetneqq",true);Oe(Ee,Ve,je,"","\\@varsubsetneqq");Oe(Ee,Ve,je,"≯","\\ngtr",true);Oe(Ee,Ve,je,"","\\@ngeqslant");Oe(Ee,Ve,je,"","\\@ngeqq");Oe(Ee,Ve,je,"⪈","\\gneq",true);Oe(Ee,Ve,je,"≩","\\gneqq",true);Oe(Ee,Ve,je,"","\\@gvertneqq");Oe(Ee,Ve,je,"⋧","\\gnsim",true);Oe(Ee,Ve,je,"⪊","\\gnapprox",true);Oe(Ee,Ve,je,"⊁","\\nsucc",true);Oe(Ee,Ve,je,"⋡","\\nsucceq",true);Oe(Ee,Ve,je,"⋩","\\succnsim",true);Oe(Ee,Ve,je,"⪺","\\succnapprox",true);Oe(Ee,Ve,je,"≆","\\ncong",true);Oe(Ee,Ve,je,"","\\@nshortparallel");Oe(Ee,Ve,je,"∦","\\nparallel",true);Oe(Ee,Ve,je,"⊯","\\nVDash",true);Oe(Ee,Ve,je,"⋫","\\ntriangleright");Oe(Ee,Ve,je,"⋭","\\ntrianglerighteq",true);Oe(Ee,Ve,je,"","\\@nsupseteqq");Oe(Ee,Ve,je,"⊋","\\supsetneq",true);Oe(Ee,Ve,je,"","\\@varsupsetneq");Oe(Ee,Ve,je,"⫌","\\supsetneqq",true);Oe(Ee,Ve,je,"","\\@varsupsetneqq");Oe(Ee,Ve,je,"⊮","\\nVdash",true);Oe(Ee,Ve,je,"⪵","\\precneqq",true);Oe(Ee,Ve,je,"⪶","\\succneqq",true);Oe(Ee,Ve,je,"","\\@nsubseteqq");Oe(Ee,Ve,Fe,"⊴","\\unlhd");Oe(Ee,Ve,Fe,"⊵","\\unrhd");Oe(Ee,Ve,je,"↚","\\nleftarrow",true);Oe(Ee,Ve,je,"↛","\\nrightarrow",true);Oe(Ee,Ve,je,"⇍","\\nLeftarrow",true);Oe(Ee,Ve,je,"⇏","\\nRightarrow",true);Oe(Ee,Ve,je,"↮","\\nleftrightarrow",true);Oe(Ee,Ve,je,"⇎","\\nLeftrightarrow",true);Oe(Ee,Ve,je,"△","\\vartriangle");Oe(Ee,Ve,Ze,"ℏ","\\hslash");Oe(Ee,Ve,Ze,"▽","\\triangledown");Oe(Ee,Ve,Ze,"◊","\\lozenge");Oe(Ee,Ve,Ze,"Ⓢ","\\circledS");Oe(Ee,Ve,Ze,"®","\\circledR");Oe(Le,Ve,Ze,"®","\\circledR");Oe(Ee,Ve,Ze,"∡","\\measuredangle",true);Oe(Ee,Ve,Ze,"∄","\\nexists");Oe(Ee,Ve,Ze,"℧","\\mho");Oe(Ee,Ve,Ze,"Ⅎ","\\Finv",true);Oe(Ee,Ve,Ze,"⅁","\\Game",true);Oe(Ee,Ve,Ze,"‵","\\backprime");Oe(Ee,Ve,Ze,"▲","\\blacktriangle");Oe(Ee,Ve,Ze,"▼","\\blacktriangledown");Oe(Ee,Ve,Ze,"■","\\blacksquare");Oe(Ee,Ve,Ze,"⧫","\\blacklozenge");Oe(Ee,Ve,Ze,"★","\\bigstar");Oe(Ee,Ve,Ze,"∢","\\sphericalangle",true);Oe(Ee,Ve,Ze,"∁","\\complement",true);Oe(Ee,Ve,Ze,"ð","\\eth",true);Oe(Le,De,Ze,"ð","ð");Oe(Ee,Ve,Ze,"╱","\\diagup");Oe(Ee,Ve,Ze,"╲","\\diagdown");Oe(Ee,Ve,Ze,"□","\\square");Oe(Ee,Ve,Ze,"□","\\Box");Oe(Ee,Ve,Ze,"◊","\\Diamond");Oe(Ee,Ve,Ze,"¥","\\yen",true);Oe(Le,Ve,Ze,"¥","\\yen",true);Oe(Ee,Ve,Ze,"✓","\\checkmark",true);Oe(Le,Ve,Ze,"✓","\\checkmark");Oe(Ee,Ve,Ze,"ℶ","\\beth",true);Oe(Ee,Ve,Ze,"ℸ","\\daleth",true);Oe(Ee,Ve,Ze,"ℷ","\\gimel",true);Oe(Ee,Ve,Ze,"ϝ","\\digamma",true);Oe(Ee,Ve,Ze,"ϰ","\\varkappa");Oe(Ee,Ve,We,"┌","\\@ulcorner",true);Oe(Ee,Ve,Ge,"┐","\\@urcorner",true);Oe(Ee,Ve,We,"└","\\@llcorner",true);Oe(Ee,Ve,Ge,"┘","\\@lrcorner",true);Oe(Ee,Ve,je,"≦","\\leqq",true);Oe(Ee,Ve,je,"⩽","\\leqslant",true);Oe(Ee,Ve,je,"⪕","\\eqslantless",true);Oe(Ee,Ve,je,"≲","\\lesssim",true);Oe(Ee,Ve,je,"⪅","\\lessapprox",true);Oe(Ee,Ve,je,"≊","\\approxeq",true);Oe(Ee,Ve,Fe,"⋖","\\lessdot");Oe(Ee,Ve,je,"⋘","\\lll",true);Oe(Ee,Ve,je,"≶","\\lessgtr",true);Oe(Ee,Ve,je,"⋚","\\lesseqgtr",true);Oe(Ee,Ve,je,"⪋","\\lesseqqgtr",true);Oe(Ee,Ve,je,"≑","\\doteqdot");Oe(Ee,Ve,je,"≓","\\risingdotseq",true);Oe(Ee,Ve,je,"≒","\\fallingdotseq",true);Oe(Ee,Ve,je,"∽","\\backsim",true);Oe(Ee,Ve,je,"⋍","\\backsimeq",true);Oe(Ee,Ve,je,"⫅","\\subseteqq",true);Oe(Ee,Ve,je,"⋐","\\Subset",true);Oe(Ee,Ve,je,"⊏","\\sqsubset",true);Oe(Ee,Ve,je,"≼","\\preccurlyeq",true);Oe(Ee,Ve,je,"⋞","\\curlyeqprec",true);Oe(Ee,Ve,je,"≾","\\precsim",true);Oe(Ee,Ve,je,"⪷","\\precapprox",true);Oe(Ee,Ve,je,"⊲","\\vartriangleleft");Oe(Ee,Ve,je,"⊴","\\trianglelefteq");Oe(Ee,Ve,je,"⊨","\\vDash",true);Oe(Ee,Ve,je,"⊪","\\Vvdash",true);Oe(Ee,Ve,je,"⌣","\\smallsmile");Oe(Ee,Ve,je,"⌢","\\smallfrown");Oe(Ee,Ve,je,"≏","\\bumpeq",true);Oe(Ee,Ve,je,"≎","\\Bumpeq",true);Oe(Ee,Ve,je,"≧","\\geqq",true);Oe(Ee,Ve,je,"⩾","\\geqslant",true);Oe(Ee,Ve,je,"⪖","\\eqslantgtr",true);Oe(Ee,Ve,je,"≳","\\gtrsim",true);Oe(Ee,Ve,je,"⪆","\\gtrapprox",true);Oe(Ee,Ve,Fe,"⋗","\\gtrdot");Oe(Ee,Ve,je,"⋙","\\ggg",true);Oe(Ee,Ve,je,"≷","\\gtrless",true);Oe(Ee,Ve,je,"⋛","\\gtreqless",true);Oe(Ee,Ve,je,"⪌","\\gtreqqless",true);Oe(Ee,Ve,je,"≖","\\eqcirc",true);Oe(Ee,Ve,je,"≗","\\circeq",true);Oe(Ee,Ve,je,"≜","\\triangleq",true);Oe(Ee,Ve,je,"∼","\\thicksim");Oe(Ee,Ve,je,"≈","\\thickapprox");Oe(Ee,Ve,je,"⫆","\\supseteqq",true);Oe(Ee,Ve,je,"⋑","\\Supset",true);Oe(Ee,Ve,je,"⊐","\\sqsupset",true);Oe(Ee,Ve,je,"≽","\\succcurlyeq",true);Oe(Ee,Ve,je,"⋟","\\curlyeqsucc",true);Oe(Ee,Ve,je,"≿","\\succsim",true);Oe(Ee,Ve,je,"⪸","\\succapprox",true);Oe(Ee,Ve,je,"⊳","\\vartriangleright");Oe(Ee,Ve,je,"⊵","\\trianglerighteq");Oe(Ee,Ve,je,"⊩","\\Vdash",true);Oe(Ee,Ve,je,"∣","\\shortmid");Oe(Ee,Ve,je,"∥","\\shortparallel");Oe(Ee,Ve,je,"≬","\\between",true);Oe(Ee,Ve,je,"⋔","\\pitchfork",true);Oe(Ee,Ve,je,"∝","\\varpropto");Oe(Ee,Ve,je,"◀","\\blacktriangleleft");Oe(Ee,Ve,je,"∴","\\therefore",true);Oe(Ee,Ve,je,"∍","\\backepsilon");Oe(Ee,Ve,je,"▶","\\blacktriangleright");Oe(Ee,Ve,je,"∵","\\because",true);Oe(Ee,Ve,je,"⋘","\\llless");Oe(Ee,Ve,je,"⋙","\\gggtr");Oe(Ee,Ve,Fe,"⊲","\\lhd");Oe(Ee,Ve,Fe,"⊳","\\rhd");Oe(Ee,Ve,je,"≂","\\eqsim",true);Oe(Ee,De,je,"⋈","\\Join");Oe(Ee,Ve,je,"≑","\\Doteq",true);Oe(Ee,Ve,Fe,"∔","\\dotplus",true);Oe(Ee,Ve,Fe,"∖","\\smallsetminus");Oe(Ee,Ve,Fe,"⋒","\\Cap",true);Oe(Ee,Ve,Fe,"⋓","\\Cup",true);Oe(Ee,Ve,Fe,"⩞","\\doublebarwedge",true);Oe(Ee,Ve,Fe,"⊟","\\boxminus",true);Oe(Ee,Ve,Fe,"⊞","\\boxplus",true);Oe(Ee,Ve,Fe,"⋇","\\divideontimes",true);Oe(Ee,Ve,Fe,"⋉","\\ltimes",true);Oe(Ee,Ve,Fe,"⋊","\\rtimes",true);Oe(Ee,Ve,Fe,"⋋","\\leftthreetimes",true);Oe(Ee,Ve,Fe,"⋌","\\rightthreetimes",true);Oe(Ee,Ve,Fe,"⋏","\\curlywedge",true);Oe(Ee,Ve,Fe,"⋎","\\curlyvee",true);Oe(Ee,Ve,Fe,"⊝","\\circleddash",true);Oe(Ee,Ve,Fe,"⊛","\\circledast",true);Oe(Ee,Ve,Fe,"⋅","\\centerdot");Oe(Ee,Ve,Fe,"⊺","\\intercal",true);Oe(Ee,Ve,Fe,"⋒","\\doublecap");Oe(Ee,Ve,Fe,"⋓","\\doublecup");Oe(Ee,Ve,Fe,"⊠","\\boxtimes",true);Oe(Ee,Ve,je,"⇢","\\dashrightarrow",true);Oe(Ee,Ve,je,"⇠","\\dashleftarrow",true);Oe(Ee,Ve,je,"⇇","\\leftleftarrows",true);Oe(Ee,Ve,je,"⇆","\\leftrightarrows",true);Oe(Ee,Ve,je,"⇚","\\Lleftarrow",true);Oe(Ee,Ve,je,"↞","\\twoheadleftarrow",true);Oe(Ee,Ve,je,"↢","\\leftarrowtail",true);Oe(Ee,Ve,je,"↫","\\looparrowleft",true);Oe(Ee,Ve,je,"⇋","\\leftrightharpoons",true);Oe(Ee,Ve,je,"↶","\\curvearrowleft",true);Oe(Ee,Ve,je,"↺","\\circlearrowleft",true);Oe(Ee,Ve,je,"↰","\\Lsh",true);Oe(Ee,Ve,je,"⇈","\\upuparrows",true);Oe(Ee,Ve,je,"↿","\\upharpoonleft",true);Oe(Ee,Ve,je,"⇃","\\downharpoonleft",true);Oe(Ee,De,je,"⊶","\\origof",true);Oe(Ee,De,je,"⊷","\\imageof",true);Oe(Ee,Ve,je,"⊸","\\multimap",true);Oe(Ee,Ve,je,"↭","\\leftrightsquigarrow",true);Oe(Ee,Ve,je,"⇉","\\rightrightarrows",true);Oe(Ee,Ve,je,"⇄","\\rightleftarrows",true);Oe(Ee,Ve,je,"↠","\\twoheadrightarrow",true);Oe(Ee,Ve,je,"↣","\\rightarrowtail",true);Oe(Ee,Ve,je,"↬","\\looparrowright",true);Oe(Ee,Ve,je,"↷","\\curvearrowright",true);Oe(Ee,Ve,je,"↻","\\circlearrowright",true);Oe(Ee,Ve,je,"↱","\\Rsh",true);Oe(Ee,Ve,je,"⇊","\\downdownarrows",true);Oe(Ee,Ve,je,"↾","\\upharpoonright",true);Oe(Ee,Ve,je,"⇂","\\downharpoonright",true);Oe(Ee,Ve,je,"⇝","\\rightsquigarrow",true);Oe(Ee,Ve,je,"⇝","\\leadsto");Oe(Ee,Ve,je,"⇛","\\Rrightarrow",true);Oe(Ee,Ve,je,"↾","\\restriction");Oe(Ee,De,Ze,"‘","`");Oe(Ee,De,Ze,"$","\\$");Oe(Le,De,Ze,"$","\\$");Oe(Le,De,Ze,"$","\\textdollar");Oe(Ee,De,Ze,"%","\\%");Oe(Le,De,Ze,"%","\\%");Oe(Ee,De,Ze,"_","\\_");Oe(Le,De,Ze,"_","\\_");Oe(Le,De,Ze,"_","\\textunderscore");Oe(Ee,De,Ze,"∠","\\angle",true);Oe(Ee,De,Ze,"∞","\\infty",true);Oe(Ee,De,Ze,"′","\\prime");Oe(Ee,De,Ze,"△","\\triangle");Oe(Ee,De,Ze,"Γ","\\Gamma",true);Oe(Ee,De,Ze,"Δ","\\Delta",true);Oe(Ee,De,Ze,"Θ","\\Theta",true);Oe(Ee,De,Ze,"Λ","\\Lambda",true);Oe(Ee,De,Ze,"Ξ","\\Xi",true);Oe(Ee,De,Ze,"Π","\\Pi",true);Oe(Ee,De,Ze,"Σ","\\Sigma",true);Oe(Ee,De,Ze,"Υ","\\Upsilon",true);Oe(Ee,De,Ze,"Φ","\\Phi",true);Oe(Ee,De,Ze,"Ψ","\\Psi",true);Oe(Ee,De,Ze,"Ω","\\Omega",true);Oe(Ee,De,Ze,"A","Α");Oe(Ee,De,Ze,"B","Β");Oe(Ee,De,Ze,"E","Ε");Oe(Ee,De,Ze,"Z","Ζ");Oe(Ee,De,Ze,"H","Η");Oe(Ee,De,Ze,"I","Ι");Oe(Ee,De,Ze,"K","Κ");Oe(Ee,De,Ze,"M","Μ");Oe(Ee,De,Ze,"N","Ν");Oe(Ee,De,Ze,"O","Ο");Oe(Ee,De,Ze,"P","Ρ");Oe(Ee,De,Ze,"T","Τ");Oe(Ee,De,Ze,"X","Χ");Oe(Ee,De,Ze,"¬","\\neg",true);Oe(Ee,De,Ze,"¬","\\lnot");Oe(Ee,De,Ze,"⊤","\\top");Oe(Ee,De,Ze,"⊥","\\bot");Oe(Ee,De,Ze,"∅","\\emptyset");Oe(Ee,Ve,Ze,"∅","\\varnothing");Oe(Ee,De,Ye,"α","\\alpha",true);Oe(Ee,De,Ye,"β","\\beta",true);Oe(Ee,De,Ye,"γ","\\gamma",true);Oe(Ee,De,Ye,"δ","\\delta",true);Oe(Ee,De,Ye,"ϵ","\\epsilon",true);Oe(Ee,De,Ye,"ζ","\\zeta",true);Oe(Ee,De,Ye,"η","\\eta",true);Oe(Ee,De,Ye,"θ","\\theta",true);Oe(Ee,De,Ye,"ι","\\iota",true);Oe(Ee,De,Ye,"κ","\\kappa",true);Oe(Ee,De,Ye,"λ","\\lambda",true);Oe(Ee,De,Ye,"μ","\\mu",true);Oe(Ee,De,Ye,"ν","\\nu",true);Oe(Ee,De,Ye,"ξ","\\xi",true);Oe(Ee,De,Ye,"ο","\\omicron",true);Oe(Ee,De,Ye,"π","\\pi",true);Oe(Ee,De,Ye,"ρ","\\rho",true);Oe(Ee,De,Ye,"σ","\\sigma",true);Oe(Ee,De,Ye,"τ","\\tau",true);Oe(Ee,De,Ye,"υ","\\upsilon",true);Oe(Ee,De,Ye,"ϕ","\\phi",true);Oe(Ee,De,Ye,"χ","\\chi",true);Oe(Ee,De,Ye,"ψ","\\psi",true);Oe(Ee,De,Ye,"ω","\\omega",true);Oe(Ee,De,Ye,"ε","\\varepsilon",true);Oe(Ee,De,Ye,"ϑ","\\vartheta",true);Oe(Ee,De,Ye,"ϖ","\\varpi",true);Oe(Ee,De,Ye,"ϱ","\\varrho",true);Oe(Ee,De,Ye,"ς","\\varsigma",true);Oe(Ee,De,Ye,"φ","\\varphi",true);Oe(Ee,De,Fe,"∗","*",true);Oe(Ee,De,Fe,"+","+");Oe(Ee,De,Fe,"−","-",true);Oe(Ee,De,Fe,"⋅","\\cdot",true);Oe(Ee,De,Fe,"∘","\\circ",true);Oe(Ee,De,Fe,"÷","\\div",true);Oe(Ee,De,Fe,"±","\\pm",true);Oe(Ee,De,Fe,"×","\\times",true);Oe(Ee,De,Fe,"∩","\\cap",true);Oe(Ee,De,Fe,"∪","\\cup",true);Oe(Ee,De,Fe,"∖","\\setminus",true);Oe(Ee,De,Fe,"∧","\\land");Oe(Ee,De,Fe,"∨","\\lor");Oe(Ee,De,Fe,"∧","\\wedge",true);Oe(Ee,De,Fe,"∨","\\vee",true);Oe(Ee,De,Ze,"√","\\surd");Oe(Ee,De,We,"⟨","\\langle",true);Oe(Ee,De,We,"∣","\\lvert");Oe(Ee,De,We,"∥","\\lVert");Oe(Ee,De,Ge,"?","?");Oe(Ee,De,Ge,"!","!");Oe(Ee,De,Ge,"⟩","\\rangle",true);Oe(Ee,De,Ge,"∣","\\rvert");Oe(Ee,De,Ge,"∥","\\rVert");Oe(Ee,De,je,"=","=");Oe(Ee,De,je,":",":");Oe(Ee,De,je,"≈","\\approx",true);Oe(Ee,De,je,"≅","\\cong",true);Oe(Ee,De,je,"≥","\\ge");Oe(Ee,De,je,"≥","\\geq",true);Oe(Ee,De,je,"←","\\gets");Oe(Ee,De,je,">","\\gt",true);Oe(Ee,De,je,"∈","\\in",true);Oe(Ee,De,je,"","\\@not");Oe(Ee,De,je,"⊂","\\subset",true);Oe(Ee,De,je,"⊃","\\supset",true);Oe(Ee,De,je,"⊆","\\subseteq",true);Oe(Ee,De,je,"⊇","\\supseteq",true);Oe(Ee,Ve,je,"⊈","\\nsubseteq",true);Oe(Ee,Ve,je,"⊉","\\nsupseteq",true);Oe(Ee,De,je,"⊨","\\models");Oe(Ee,De,je,"←","\\leftarrow",true);Oe(Ee,De,je,"≤","\\le");Oe(Ee,De,je,"≤","\\leq",true);Oe(Ee,De,je,"<","\\lt",true);Oe(Ee,De,je,"→","\\rightarrow",true);Oe(Ee,De,je,"→","\\to");Oe(Ee,Ve,je,"≱","\\ngeq",true);Oe(Ee,Ve,je,"≰","\\nleq",true);Oe(Ee,De,$e," ","\\ ");Oe(Ee,De,$e," ","\\space");Oe(Ee,De,$e," ","\\nobreakspace");Oe(Le,De,$e," ","\\ ");Oe(Le,De,$e," "," ");Oe(Le,De,$e," ","\\space");Oe(Le,De,$e," ","\\nobreakspace");Oe(Ee,De,$e,null,"\\nobreak");Oe(Ee,De,$e,null,"\\allowbreak");Oe(Ee,De,_e,",",",");Oe(Ee,De,_e,";",";");Oe(Ee,Ve,Fe,"⊼","\\barwedge",true);Oe(Ee,Ve,Fe,"⊻","\\veebar",true);Oe(Ee,De,Fe,"⊙","\\odot",true);Oe(Ee,De,Fe,"⊕","\\oplus",true);Oe(Ee,De,Fe,"⊗","\\otimes",true);Oe(Ee,De,Ze,"∂","\\partial",true);Oe(Ee,De,Fe,"⊘","\\oslash",true);Oe(Ee,Ve,Fe,"⊚","\\circledcirc",true);Oe(Ee,Ve,Fe,"⊡","\\boxdot",true);Oe(Ee,De,Fe,"△","\\bigtriangleup");Oe(Ee,De,Fe,"▽","\\bigtriangledown");Oe(Ee,De,Fe,"†","\\dagger");Oe(Ee,De,Fe,"⋄","\\diamond");Oe(Ee,De,Fe,"⋆","\\star");Oe(Ee,De,Fe,"◃","\\triangleleft");Oe(Ee,De,Fe,"▹","\\triangleright");Oe(Ee,De,We,"{","\\{");Oe(Le,De,Ze,"{","\\{");Oe(Le,De,Ze,"{","\\textbraceleft");Oe(Ee,De,Ge,"}","\\}");Oe(Le,De,Ze,"}","\\}");Oe(Le,De,Ze,"}","\\textbraceright");Oe(Ee,De,We,"{","\\lbrace");Oe(Ee,De,Ge,"}","\\rbrace");Oe(Ee,De,We,"[","\\lbrack",true);Oe(Le,De,Ze,"[","\\lbrack",true);Oe(Ee,De,Ge,"]","\\rbrack",true);Oe(Le,De,Ze,"]","\\rbrack",true);Oe(Ee,De,We,"(","\\lparen",true);Oe(Ee,De,Ge,")","\\rparen",true);Oe(Le,De,Ze,"<","\\textless",true);Oe(Le,De,Ze,">","\\textgreater",true);Oe(Ee,De,We,"⌊","\\lfloor",true);Oe(Ee,De,Ge,"⌋","\\rfloor",true);Oe(Ee,De,We,"⌈","\\lceil",true);Oe(Ee,De,Ge,"⌉","\\rceil",true);Oe(Ee,De,Ze,"\\","\\backslash");Oe(Ee,De,Ze,"∣","|");Oe(Ee,De,Ze,"∣","\\vert");Oe(Le,De,Ze,"|","\\textbar",true);Oe(Ee,De,Ze,"∥","\\|");Oe(Ee,De,Ze,"∥","\\Vert");Oe(Le,De,Ze,"∥","\\textbardbl");Oe(Le,De,Ze,"~","\\textasciitilde");Oe(Le,De,Ze,"\\","\\textbackslash");Oe(Le,De,Ze,"^","\\textasciicircum");Oe(Ee,De,je,"↑","\\uparrow",true);Oe(Ee,De,je,"⇑","\\Uparrow",true);Oe(Ee,De,je,"↓","\\downarrow",true);Oe(Ee,De,je,"⇓","\\Downarrow",true);Oe(Ee,De,je,"↕","\\updownarrow",true);Oe(Ee,De,je,"⇕","\\Updownarrow",true);Oe(Ee,De,Xe,"∐","\\coprod");Oe(Ee,De,Xe,"⋁","\\bigvee");Oe(Ee,De,Xe,"⋀","\\bigwedge");Oe(Ee,De,Xe,"⨄","\\biguplus");Oe(Ee,De,Xe,"⋂","\\bigcap");Oe(Ee,De,Xe,"⋃","\\bigcup");Oe(Ee,De,Xe,"∫","\\int");Oe(Ee,De,Xe,"∫","\\intop");Oe(Ee,De,Xe,"∬","\\iint");Oe(Ee,De,Xe,"∭","\\iiint");Oe(Ee,De,Xe,"∏","\\prod");Oe(Ee,De,Xe,"∑","\\sum");Oe(Ee,De,Xe,"⨂","\\bigotimes");Oe(Ee,De,Xe,"⨁","\\bigoplus");Oe(Ee,De,Xe,"⨀","\\bigodot");Oe(Ee,De,Xe,"∮","\\oint");Oe(Ee,De,Xe,"∯","\\oiint");Oe(Ee,De,Xe,"∰","\\oiiint");Oe(Ee,De,Xe,"⨆","\\bigsqcup");Oe(Ee,De,Xe,"∫","\\smallint");Oe(Le,De,Ue,"…","\\textellipsis");Oe(Ee,De,Ue,"…","\\mathellipsis");Oe(Le,De,Ue,"…","\\ldots",true);Oe(Ee,De,Ue,"…","\\ldots",true);Oe(Ee,De,Ue,"⋯","\\@cdots",true);Oe(Ee,De,Ue,"⋱","\\ddots",true);Oe(Ee,De,Ze,"⋮","\\varvdots");Oe(Le,De,Ze,"⋮","\\varvdots");Oe(Ee,De,Pe,"ˊ","\\acute");Oe(Ee,De,Pe,"ˋ","\\grave");Oe(Ee,De,Pe,"¨","\\ddot");Oe(Ee,De,Pe,"~","\\tilde");Oe(Ee,De,Pe,"ˉ","\\bar");Oe(Ee,De,Pe,"˘","\\breve");Oe(Ee,De,Pe,"ˇ","\\check");Oe(Ee,De,Pe,"^","\\hat");Oe(Ee,De,Pe,"⃗","\\vec");Oe(Ee,De,Pe,"˙","\\dot");Oe(Ee,De,Pe,"˚","\\mathring");Oe(Ee,De,Ye,"","\\@imath");Oe(Ee,De,Ye,"","\\@jmath");Oe(Ee,De,Ze,"ı","ı");Oe(Ee,De,Ze,"ȷ","ȷ");Oe(Le,De,Ze,"ı","\\i",true);Oe(Le,De,Ze,"ȷ","\\j",true);Oe(Le,De,Ze,"ß","\\ss",true);Oe(Le,De,Ze,"æ","\\ae",true);Oe(Le,De,Ze,"œ","\\oe",true);Oe(Le,De,Ze,"ø","\\o",true);Oe(Le,De,Ze,"Æ","\\AE",true);Oe(Le,De,Ze,"Œ","\\OE",true);Oe(Le,De,Ze,"Ø","\\O",true);Oe(Le,De,Pe,"ˊ","\\'");Oe(Le,De,Pe,"ˋ","\\`");Oe(Le,De,Pe,"ˆ","\\^");Oe(Le,De,Pe,"˜","\\~");Oe(Le,De,Pe,"ˉ","\\=");Oe(Le,De,Pe,"˘","\\u");Oe(Le,De,Pe,"˙","\\.");Oe(Le,De,Pe,"¸","\\c");Oe(Le,De,Pe,"˚","\\r");Oe(Le,De,Pe,"ˇ","\\v");Oe(Le,De,Pe,"¨",'\\"');Oe(Le,De,Pe,"˝","\\H");Oe(Le,De,Pe,"◯","\\textcircled");var Ke={"--":true,"---":true,"``":true,"''":true};Oe(Le,De,Ze,"–","--",true);Oe(Le,De,Ze,"–","\\textendash");Oe(Le,De,Ze,"—","---",true);Oe(Le,De,Ze,"—","\\textemdash");Oe(Le,De,Ze,"‘","`",true);Oe(Le,De,Ze,"‘","\\textquoteleft");Oe(Le,De,Ze,"’","'",true);Oe(Le,De,Ze,"’","\\textquoteright");Oe(Le,De,Ze,"“","``",true);Oe(Le,De,Ze,"“","\\textquotedblleft");Oe(Le,De,Ze,"”","''",true);Oe(Le,De,Ze,"”","\\textquotedblright");Oe(Ee,De,Ze,"°","\\degree",true);Oe(Le,De,Ze,"°","\\degree");Oe(Le,De,Ze,"°","\\textdegree",true);Oe(Ee,De,Ze,"£","\\pounds");Oe(Ee,De,Ze,"£","\\mathsterling",true);Oe(Le,De,Ze,"£","\\pounds");Oe(Le,De,Ze,"£","\\textsterling",true);Oe(Ee,Ve,Ze,"✠","\\maltese");Oe(Le,Ve,Ze,"✠","\\maltese");var Je='0123456789/@."';for(var Qe=0;Qe0){return yt(n,h,i,r,s.concat(u))}else if(l){var m;var c;if(l==="boldsymbol"){var p=wt(n,i,r,s,a);m=p.fontName;c=[p.fontClass]}else if(o){m=Et[l].fontName;c=[l]}else{m=Ot(l,r.fontWeight,r.fontShape);c=[l,r.fontWeight,r.fontShape]}if(bt(n,m,i).metrics){return yt(n,m,i,r,s.concat(c))}else if(Ke.hasOwnProperty(n)&&m.slice(0,10)==="Typewriter"){var d=[];for(var f=0;f{if(ge(e.classes)!==ge(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize){return false}if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord"){return false}}for(var a in e.style){if(e.style.hasOwnProperty(a)&&e.style[a]!==t.style[a]){return false}}for(var i in t.style){if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i]){return false}}return true};var Mt=e=>{for(var t=0;tr){r=s.height}if(s.depth>a){a=s.depth}if(s.maxFontSize>i){i=s.maxFontSize}}t.height=r;t.depth=a;t.maxFontSize=i};var At=function e(t,r,a,i){var n=new ke(t,r,a,i);zt(n);return n};var Tt=(e,t,r,a)=>new ke(e,t,r,a);var Bt=function e(t,r,a){var i=At([t],[],r);i.height=Math.max(a||r.fontMetrics().defaultRuleThickness,r.minRuleThickness);i.style.borderBottomWidth=ve(i.height);i.maxFontSize=1;return i};var Ct=function e(t,r,a,i){var n=new Se(t,r,a,i);zt(n);return n};var Nt=function e(t){var r=new ee(t);zt(r);return r};var qt=function e(t,r){if(t instanceof ee){return At([],[t],r)}return t};var It=function e(t){if(t.positionType==="individualShift"){var r=t.children;var a=[r[0]];var i=-r[0].shift-r[0].elem.depth;var n=i;for(var s=1;s{var r=At(["mspace"],[],t);var a=fe(e,t);r.style.marginRight=ve(a);return r};var Ot=function e(t,r,a){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var n;if(r==="textbf"&&a==="textit"){n="BoldItalic"}else if(r==="textbf"){n="Bold"}else if(r==="textit"){n="Italic"}else{n="Regular"}return i+"-"+n};var Et={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}};var Lt={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]};var Dt=function e(t,r){var[a,i,n]=Lt[t];var s=new Be(a);var o=new Te([s],{width:ve(i),height:ve(n),style:"width:"+ve(i),viewBox:"0 0 "+1e3*i+" "+1e3*n,preserveAspectRatio:"xMinYMin"});var l=Tt(["overlay"],[o],r);l.height=n;l.style.height=ve(n);l.style.width=ve(i);return l};var Vt={fontMap:Et,makeSymbol:yt,mathsym:xt,makeSpan:At,makeSvgSpan:Tt,makeLineSpan:Bt,makeAnchor:Ct,makeFragment:Nt,wrapFragment:qt,makeVList:Rt,makeOrd:kt,makeGlue:Ht,staticSvg:Dt,svgData:Lt,tryCombineChars:Mt};var Pt={number:3,unit:"mu"};var Ft={number:4,unit:"mu"};var Gt={number:5,unit:"mu"};var Ut={mord:{mop:Pt,mbin:Ft,mrel:Gt,minner:Pt},mop:{mord:Pt,mop:Pt,mrel:Gt,minner:Pt},mbin:{mord:Ft,mop:Ft,mopen:Ft,minner:Ft},mrel:{mord:Gt,mop:Gt,mopen:Gt,minner:Gt},mopen:{},mclose:{mop:Pt,mbin:Ft,mrel:Gt,minner:Pt},mpunct:{mord:Pt,mop:Pt,mrel:Gt,mopen:Pt,mclose:Pt,mpunct:Pt,minner:Pt},minner:{mord:Pt,mop:Pt,mbin:Ft,mrel:Gt,mopen:Pt,mpunct:Pt,minner:Pt}};var Yt={mord:{mop:Pt},mop:{mord:Pt,mop:Pt},mbin:{},mrel:{},mopen:{},mclose:{mop:Pt},mpunct:{},minner:{mop:Pt}};var Xt={};var Wt={};var _t={};function jt(e){var{type:t,names:r,props:a,handler:i,htmlBuilder:n,mathmlBuilder:s}=e;var o={type:t,numArgs:a.numArgs,argTypes:a.argTypes,allowedInArgument:!!a.allowedInArgument,allowedInText:!!a.allowedInText,allowedInMath:a.allowedInMath===undefined?true:a.allowedInMath,numOptionalArgs:a.numOptionalArgs||0,infix:!!a.infix,primitive:!!a.primitive,handler:i};for(var l=0;l{var r=t.classes[0];var a=e.classes[0];if(r==="mbin"&&g.contains(er,a)){t.classes[0]="mord"}else if(a==="mbin"&&g.contains(Qt,r)){e.classes[0]="mord"}}),{node:m},c,p);ir(n,((e,t)=>{var r=or(t);var a=or(e);var i=r&&a?e.hasClass("mtight")?Yt[r][a]:Ut[r][a]:null;if(i){return Vt.makeGlue(i,h)}}),{node:m},c,p);return n};var ir=function e(t,r,a,i,n){if(i){t.push(i)}var s=0;for(;sr=>{t.splice(e+1,0,r);s++})(s)}if(i){t.pop()}};var nr=function e(t){if(t instanceof ee||t instanceof Se||t instanceof ke&&t.hasClass("enclosing")){return t}return null};var sr=function e(t,r){var a=nr(t);if(a){var i=a.children;if(i.length){if(r==="right"){return e(i[i.length-1],"right")}else if(r==="left"){return e(i[0],"left")}}}return t};var or=function e(t,r){if(!t){return null}if(r){t=sr(t,r)}return rr[t.classes[0]]||null};var lr=function e(t,r){var a=["nulldelimiter"].concat(t.baseSizingClasses());return Jt(r.concat(a))};var hr=function e(t,r,a){if(!t){return Jt()}if(Wt[t.type]){var i=Wt[t.type](t,r);if(a&&r.size!==a.size){i=Jt(r.sizingClasses(a),[i],r);var s=r.sizeMultiplier/a.sizeMultiplier;i.height*=s;i.depth*=s}return i}else{throw new n("Got group of unknown type: '"+t.type+"'")}};function ur(e,t){var r=Jt(["base"],e,t);var a=Jt(["strut"]);a.style.height=ve(r.height+r.depth);if(r.depth){a.style.verticalAlign=ve(-r.depth)}r.children.unshift(a);return r}function mr(e,t){var r=null;if(e.length===1&&e[0].type==="tag"){r=e[0].tag;e=e[0].body}var a=ar(e,t,"root");var i;if(a.length===2&&a[1].hasClass("tag")){i=a.pop()}var n=[];var s=[];for(var o=0;o0){n.push(ur(s,t));s=[]}n.push(a[o])}}if(s.length>0){n.push(ur(s,t))}var h;if(r){h=ur(ar(r,t,true));h.classes=["tag"];n.push(h)}else if(i){n.push(i)}var u=Jt(["katex-html"],n);u.setAttribute("aria-hidden","true");if(h){var m=h.children[0];m.style.height=ve(u.height+u.depth);if(u.depth){m.style.verticalAlign=ve(-u.depth)}}return u}function cr(e){return new ee(e)}class pr{constructor(e,t,r){this.type=void 0;this.attributes=void 0;this.children=void 0;this.classes=void 0;this.type=e;this.attributes={};this.children=t||[];this.classes=r||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes){if(Object.prototype.hasOwnProperty.call(this.attributes,t)){e.setAttribute(t,this.attributes[t])}}if(this.classes.length>0){e.className=ge(this.classes)}for(var r=0;r0){e+=' class ="'+g.escape(ge(this.classes))+'"'}e+=">";for(var r=0;r";return e}toText(){return this.children.map((e=>e.toText())).join("")}}class dr{constructor(e){this.text=void 0;this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return g.escape(this.toText())}toText(){return this.text}}class fr{constructor(e){this.width=void 0;this.character=void 0;this.width=e;if(e>=.05555&&e<=.05556){this.character=" "}else if(e>=.1666&&e<=.1667){this.character=" "}else if(e>=.2222&&e<=.2223){this.character=" "}else if(e>=.2777&&e<=.2778){this.character="  "}else if(e>=-.05556&&e<=-.05555){this.character=" ⁣"}else if(e>=-.1667&&e<=-.1666){this.character=" ⁣"}else if(e>=-.2223&&e<=-.2222){this.character=" ⁣"}else if(e>=-.2778&&e<=-.2777){this.character=" ⁣"}else{this.character=null}}toNode(){if(this.character){return document.createTextNode(this.character)}else{var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");e.setAttribute("width",ve(this.width));return e}}toMarkup(){if(this.character){return""+this.character+""}else{return''}}toText(){if(this.character){return this.character}else{return" "}}}var vr={MathNode:pr,TextNode:dr,SpaceNode:fr,newDocumentFragment:cr};var gr=function e(t,r,a){if(He[r][t]&&He[r][t].replace&&t.charCodeAt(0)!==55349&&!(Ke.hasOwnProperty(t)&&a&&(a.fontFamily&&a.fontFamily.slice(4,6)==="tt"||a.font&&a.font.slice(4,6)==="tt"))){t=He[r][t].replace}return new vr.TextNode(t)};var br=function e(t){if(t.length===1){return t[0]}else{return new vr.MathNode("mrow",t)}};var yr=function e(t,r){if(r.fontFamily==="texttt"){return"monospace"}else if(r.fontFamily==="textsf"){if(r.fontShape==="textit"&&r.fontWeight==="textbf"){return"sans-serif-bold-italic"}else if(r.fontShape==="textit"){return"sans-serif-italic"}else if(r.fontWeight==="textbf"){return"bold-sans-serif"}else{return"sans-serif"}}else if(r.fontShape==="textit"&&r.fontWeight==="textbf"){return"bold-italic"}else if(r.fontShape==="textit"){return"italic"}else if(r.fontWeight==="textbf"){return"bold"}var a=r.font;if(!a||a==="mathnormal"){return null}var i=t.mode;if(a==="mathit"){return"italic"}else if(a==="boldsymbol"){return t.type==="textord"?"bold":"bold-italic"}else if(a==="mathbf"){return"bold"}else if(a==="mathbb"){return"double-struck"}else if(a==="mathsfit"){return"sans-serif-italic"}else if(a==="mathfrak"){return"fraktur"}else if(a==="mathscr"||a==="mathcal"){return"script"}else if(a==="mathsf"){return"sans-serif"}else if(a==="mathtt"){return"monospace"}var n=t.text;if(g.contains(["\\imath","\\jmath"],n)){return null}if(He[i][n]&&He[i][n].replace){n=He[i][n].replace}var s=Vt.fontMap[a].fontName;if(ne(n,s,i)){return Vt.fontMap[a].variant}return null};function xr(e){if(!e){return false}if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof dr&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof dr&&r.text===","}else{return false}}var wr=function e(t,r,a){if(t.length===1){var i=Sr(t[0],r);if(a&&i instanceof pr&&i.type==="mo"){i.setAttribute("lspace","0em");i.setAttribute("rspace","0em")}return[i]}var n=[];var s;for(var o=0;o=1&&(s.type==="mn"||xr(s))){var h=l.children[0];if(h instanceof pr&&h.type==="mn"){h.children=[...s.children,...h.children];n.pop()}}else if(s.type==="mi"&&s.children.length===1){var u=s.children[0];if(u instanceof dr&&u.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var m=l.children[0];if(m instanceof dr&&m.text.length>0){m.text=m.text.slice(0,1)+"̸"+m.text.slice(1);n.pop()}}}}n.push(l);s=l}return n};var kr=function e(t,r,a){return br(wr(t,r,a))};var Sr=function e(t,r){if(!t){return new vr.MathNode("mrow")}if(_t[t.type]){var a=_t[t.type](t,r);return a}else{throw new n("Got group of unknown type: '"+t.type+"'")}};function Mr(e,t,r,a,i){var n=wr(e,r);var s;if(n.length===1&&n[0]instanceof pr&&g.contains(["mrow","mtable"],n[0].type)){s=n[0]}else{s=new vr.MathNode("mrow",n)}var o=new vr.MathNode("annotation",[new vr.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var l=new vr.MathNode("semantics",[s,o]);var h=new vr.MathNode("math",[l]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");if(a){h.setAttribute("display","block")}var u=i?"katex":"katex-mathml";return Vt.makeSpan([u],[h])}var zr=function e(t){return new me({style:t.displayMode?L.DISPLAY:L.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})};var Ar=function e(t,r){if(r.displayMode){var a=["katex-display"];if(r.leqno){a.push("leqno")}if(r.fleqn){a.push("fleqn")}t=Vt.makeSpan(a,[t])}return t};var Tr=function e(t,r,a){var i=zr(a);var n;if(a.output==="mathml"){return Mr(t,r,i,a.displayMode,true)}else if(a.output==="html"){var s=mr(t,i);n=Vt.makeSpan(["katex"],[s])}else{var o=Mr(t,r,i,a.displayMode,false);var l=mr(t,i);n=Vt.makeSpan(["katex"],[o,l])}return Ar(n,a)};var Br=function e(t,r,a){var i=zr(a);var n=mr(t,i);var s=Vt.makeSpan(["katex"],[n]);return Ar(s,a)};var Cr={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="};var Nr=function e(t){var r=new vr.MathNode("mo",[new vr.TextNode(Cr[t.replace(/^\\/,"")])]);r.setAttribute("stretchy","true");return r};var qr={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]};var Ir=function e(t){if(t.type==="ordgroup"){return t.body.length}else{return 1}};var Rr=function e(t,r){function a(){var e=4e5;var a=t.label.slice(1);if(g.contains(["widehat","widecheck","widetilde","utilde"],a)){var i=t;var n=Ir(i.base);var s;var o;var l;if(n>5){if(a==="widehat"||a==="widecheck"){s=420;e=2364;l=.42;o=a+"4"}else{s=312;e=2340;l=.34;o="tilde4"}}else{var h=[1,1,2,2,3,3][n];if(a==="widehat"||a==="widecheck"){e=[0,1062,2364,2364,2364][h];s=[0,239,300,360,420][h];l=[0,.24,.3,.3,.36,.42][h];o=a+h}else{e=[0,600,1033,2339,2340][h];s=[0,260,286,306,312][h];l=[0,.26,.286,.3,.306,.34][h];o="tilde"+h}}var u=new Be(o);var m=new Te([u],{width:"100%",height:ve(l),viewBox:"0 0 "+e+" "+s,preserveAspectRatio:"none"});return{span:Vt.makeSvgSpan([],[m],r),minWidth:0,height:l}}else{var c=[];var p=qr[a];var[d,f,v]=p;var b=v/1e3;var y=d.length;var x;var w;if(y===1){var k=p[3];x=["hide-tail"];w=[k]}else if(y===2){x=["halfarrow-left","halfarrow-right"];w=["xMinYMin","xMaxYMin"]}else if(y===3){x=["brace-left","brace-center","brace-right"];w=["xMinYMin","xMidYMin","xMaxYMin"]}else{throw new Error("Correct katexImagesData or update code here to support\n "+y+" children.")}for(var S=0;S0){i.style.minWidth=ve(n)}return i};var Hr=function e(t,r,a,i,n){var s;var o=t.height+t.depth+a+i;if(/fbox|color|angl/.test(r)){s=Vt.makeSpan(["stretchy",r],[],n);if(r==="fbox"){var l=n.color&&n.getColor();if(l){s.style.borderColor=l}}}else{var h=[];if(/^[bx]cancel$/.test(r)){h.push(new Ce({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"}))}if(/^x?cancel$/.test(r)){h.push(new Ce({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}))}var u=new Te(h,{width:"100%",height:ve(o)});s=Vt.makeSvgSpan([],[u],n)}s.height=o;s.style.height=ve(o);return s};var Or={encloseSpan:Hr,mathMLnode:Nr,svgSpan:Rr};function Er(e,t){if(!e||e.type!==t){throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)))}return e}function Lr(e){var t=Dr(e);if(!t){throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)))}return t}function Dr(e){if(e&&(e.type==="atom"||Re.hasOwnProperty(e.type))){return e}return null}var Vr=(e,t)=>{var r;var a;var i;if(e&&e.type==="supsub"){a=Er(e.base,"accent");r=a.base;e.base=r;i=qe(hr(e,t));e.base=a}else{a=Er(e,"accent");r=a.base}var n=hr(r,t.havingCrampedStyle());var s=a.isShifty&&g.isCharacterBox(r);var o=0;if(s){var l=g.getBaseElem(r);var h=hr(l,t.havingCrampedStyle());o=Ne(h).skew}var u=a.label==="\\c";var m=u?n.height+n.depth:Math.min(n.height,t.fontMetrics().xHeight);var c;if(!a.isStretchy){var p;var d;if(a.label==="\\vec"){p=Vt.staticSvg("vec",t);d=Vt.svgData.vec[1]}else{p=Vt.makeOrd({mode:a.mode,text:a.label},t,"textord");p=Ne(p);p.italic=0;d=p.width;if(u){m+=p.depth}}c=Vt.makeSpan(["accent-body"],[p]);var f=a.label==="\\textcircled";if(f){c.classes.push("accent-full");m=n.height}var v=o;if(!f){v-=d/2}c.style.left=ve(v);if(a.label==="\\textcircled"){c.style.top=".2em"}c=Vt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:-m},{type:"elem",elem:c}]},t)}else{c=Or.svgSpan(a,t);c=Vt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"elem",elem:c,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+ve(2*o)+")",marginLeft:ve(2*o)}:undefined}]},t)}var b=Vt.makeSpan(["mord","accent"],[c],t);if(i){i.children[0]=b;i.height=Math.max(b.height,i.height);i.classes[0]="mord";return i}else{return b}};var Pr=(e,t)=>{var r=e.isStretchy?Or.mathMLnode(e.label):new vr.MathNode("mo",[gr(e.label,e.mode)]);var a=new vr.MathNode("mover",[Sr(e.base,t),r]);a.setAttribute("accent","true");return a};var Fr=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((e=>"\\"+e)).join("|"));jt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=Zt(t[0]);var a=!Fr.test(e.funcName);var i=!a||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:a,isShifty:i,base:r}},htmlBuilder:Vr,mathmlBuilder:Pr});jt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:true,allowedInMath:true,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0];var a=e.parser.mode;if(a==="math"){e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode");a="text"}return{type:"accent",mode:a,label:e.funcName,isStretchy:false,isShifty:true,base:r}},htmlBuilder:Vr,mathmlBuilder:Pr});jt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:a}=e;var i=t[0];return{type:"accentUnder",mode:r.mode,label:a,base:i}},htmlBuilder:(e,t)=>{var r=hr(e.base,t);var a=Or.svgSpan(e,t);var i=e.label==="\\utilde"?.12:0;var n=Vt.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]},t);return Vt.makeSpan(["mord","accentunder"],[n],t)},mathmlBuilder:(e,t)=>{var r=Or.mathMLnode(e.label);var a=new vr.MathNode("munder",[Sr(e.base,t),r]);a.setAttribute("accentunder","true");return a}});var Gr=e=>{var t=new vr.MathNode("mpadded",e?[e]:[]);t.setAttribute("width","+0.6em");t.setAttribute("lspace","0.3em");return t};jt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a,funcName:i}=e;return{type:"xArrow",mode:a.mode,label:i,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style;var a=t.havingStyle(r.sup());var i=Vt.wrapFragment(hr(e.body,a,t),t);var n=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(n+"-arrow-pad");var s;if(e.below){a=t.havingStyle(r.sub());s=Vt.wrapFragment(hr(e.below,a,t),t);s.classes.push(n+"-arrow-pad")}var o=Or.svgSpan(e,t);var l=-t.fontMetrics().axisHeight+.5*o.height;var h=-t.fontMetrics().axisHeight-.5*o.height-.111;if(i.depth>.25||e.label==="\\xleftequilibrium"){h-=i.depth}var u;if(s){var m=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;u=Vt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:o,shift:l},{type:"elem",elem:s,shift:m}]},t)}else{u=Vt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:o,shift:l}]},t)}u.children[0].children[0].children[1].classes.push("svg-align");return Vt.makeSpan(["mrel","x-arrow"],[u],t)},mathmlBuilder(e,t){var r=Or.mathMLnode(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(e.body){var i=Gr(Sr(e.body,t));if(e.below){var n=Gr(Sr(e.below,t));a=new vr.MathNode("munderover",[r,n,i])}else{a=new vr.MathNode("mover",[r,i])}}else if(e.below){var s=Gr(Sr(e.below,t));a=new vr.MathNode("munder",[r,s])}else{a=Gr();a=new vr.MathNode("mover",[r,a])}return a}});var Ur=Vt.makeSpan;function Yr(e,t){var r=ar(e.body,t,true);return Ur([e.mclass],r,t)}function Xr(e,t){var r;var a=wr(e.body,t);if(e.mclass==="minner"){r=new vr.MathNode("mpadded",a)}else if(e.mclass==="mord"){if(e.isCharacterBox){r=a[0];r.type="mi"}else{r=new vr.MathNode("mi",a)}}else{if(e.isCharacterBox){r=a[0];r.type="mo"}else{r=new vr.MathNode("mo",a)}if(e.mclass==="mbin"){r.attributes.lspace="0.22em";r.attributes.rspace="0.22em"}else if(e.mclass==="mpunct"){r.attributes.lspace="0em";r.attributes.rspace="0.17em"}else if(e.mclass==="mopen"||e.mclass==="mclose"){r.attributes.lspace="0em";r.attributes.rspace="0em"}else if(e.mclass==="minner"){r.attributes.lspace="0.0556em";r.attributes.width="+0.1111em"}}return r}jt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:true},handler(e,t){var{parser:r,funcName:a}=e;var i=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+a.slice(5),body:Kt(i),isCharacterBox:g.isCharacterBox(i)}},htmlBuilder:Yr,mathmlBuilder:Xr});var Wr=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;if(t.type==="atom"&&(t.family==="bin"||t.family==="rel")){return"m"+t.family}else{return"mord"}};jt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:Wr(t[0]),body:Kt(t[1]),isCharacterBox:g.isCharacterBox(t[1])}}});jt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:a}=e;var i=t[1];var n=t[0];var s;if(a!=="\\stackrel"){s=Wr(i)}else{s="mrel"}var o={type:"op",mode:i.mode,limits:true,alwaysHandleSupSub:true,parentIsSupSub:false,symbol:false,suppressBaseShift:a!=="\\stackrel",body:Kt(i)};var l={type:"supsub",mode:n.mode,base:o,sup:a==="\\underset"?null:n,sub:a==="\\underset"?n:null};return{type:"mclass",mode:r.mode,mclass:s,body:[l],isCharacterBox:g.isCharacterBox(l)}},htmlBuilder:Yr,mathmlBuilder:Xr});jt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:true},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:Wr(t[0]),body:Kt(t[0])}},htmlBuilder(e,t){var r=ar(e.body,t,true);var a=Vt.makeSpan([e.mclass],r,t);a.style.textShadow="0.02em 0.01em 0.04px";return a},mathmlBuilder(e,t){var r=wr(e.body,t);var a=new vr.MathNode("mstyle",r);a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px");return a}});var _r={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"};var jr=()=>({type:"styling",body:[],mode:"math",style:"display"});var $r=e=>e.type==="textord"&&e.text==="@";var Zr=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Kr(e,t,r){var a=_r[e];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(a,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[t[0]],[]);var n={type:"atom",text:a,mode:"math",family:"rel"};var s=r.callFunction("\\Big",[n],[]);var o=r.callFunction("\\\\cdright",[t[1]],[]);var l={type:"ordgroup",mode:"math",body:[i,s,o]};return r.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var h={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[h],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Jr(e){var t=[];e.gullet.beginGroup();e.gullet.macros.set("\\cr","\\\\\\relax");e.gullet.beginGroup();while(true){t.push(e.parseExpression(false,"\\\\"));e.gullet.endGroup();e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\"){e.consume()}else if(r==="\\end"){if(t[t.length-1].length===0){t.pop()}break}else{throw new n("Expected \\\\ or \\cr or \\end",e.nextToken)}}var a=[];var i=[a];for(var s=0;s-1);else if("<>AV".indexOf(u)>-1){for(var c=0;c<2;c++){var p=true;for(var d=h+1;dAV=|." after @',o[h])}var f=Kr(u,m,e);var v={type:"styling",body:[f],mode:"math",style:"display"};a.push(v);l=jr()}}if(s%2===0){a.push(l)}else{a.shift()}a=[];i.push(a)}e.gullet.endGroup();e.gullet.endGroup();var g=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:true,rowGaps:[null],cols:g,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}jt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"cdlabel",mode:r.mode,side:a.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup());var a=Vt.wrapFragment(hr(e.label,r,t),t);a.classes.push("cd-label-"+e.side);a.style.bottom=ve(.8-a.depth);a.height=0;a.depth=0;return a},mathmlBuilder(e,t){var r=new vr.MathNode("mrow",[Sr(e.label,t)]);r=new vr.MathNode("mpadded",[r]);r.setAttribute("width","0");if(e.side==="left"){r.setAttribute("lspace","-1width")}r.setAttribute("voffset","0.7em");r=new vr.MathNode("mstyle",[r]);r.setAttribute("displaystyle","false");r.setAttribute("scriptlevel","1");return r}});jt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=Vt.wrapFragment(hr(e.fragment,t),t);r.classes.push("cd-vert-arrow");return r},mathmlBuilder(e,t){return new vr.MathNode("mrow",[Sr(e.fragment,t)])}});jt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:true},handler(e,t){var{parser:r}=e;var a=Er(t[0],"ordgroup");var i=a.body;var s="";for(var o=0;o=1114111){throw new n("\\@char with invalid code point "+s)}else if(h<=65535){u=String.fromCharCode(h)}else{h-=65536;u=String.fromCharCode((h>>10)+55296,(h&1023)+56320)}return{type:"textord",mode:r.mode,text:u}}});var Qr=(e,t)=>{var r=ar(e.body,t.withColor(e.color),false);return Vt.makeFragment(r)};var ea=(e,t)=>{var r=wr(e.body,t.withColor(e.color));var a=new vr.MathNode("mstyle",r);a.setAttribute("mathcolor",e.color);return a};jt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:true,argTypes:["color","original"]},handler(e,t){var{parser:r}=e;var a=Er(t[0],"color-token").color;var i=t[1];return{type:"color",mode:r.mode,color:a,body:Kt(i)}},htmlBuilder:Qr,mathmlBuilder:ea});jt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:true,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:a}=e;var i=Er(t[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var n=r.parseExpression(true,a);return{type:"color",mode:r.mode,color:i,body:n}},htmlBuilder:Qr,mathmlBuilder:ea});jt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:true},handler(e,t,r){var{parser:a}=e;var i=a.gullet.future().text==="["?a.parseSizeGroup(true):null;var n=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline "+"does nothing in display mode");return{type:"cr",mode:a.mode,newLine:n,size:i&&Er(i,"size").value}},htmlBuilder(e,t){var r=Vt.makeSpan(["mspace"],[],t);if(e.newLine){r.classes.push("newline");if(e.size){r.style.marginTop=ve(fe(e.size,t))}}return r},mathmlBuilder(e,t){var r=new vr.MathNode("mspace");if(e.newLine){r.setAttribute("linebreak","newline");if(e.size){r.setAttribute("height",ve(fe(e.size,t)))}}return r}});var ta={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"};var ra=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t)){throw new n("Expected a control sequence",e)}return t};var aa=e=>{var t=e.gullet.popToken();if(t.text==="="){t=e.gullet.popToken();if(t.text===" "){t=e.gullet.popToken()}}return t};var ia=(e,t,r,a)=>{var i=e.gullet.macros.get(r.text);if(i==null){r.noexpand=true;i={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}}e.gullet.macros.set(t,i,a)};jt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:true},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var a=t.fetch();if(ta[a.text]){if(r==="\\global"||r==="\\\\globallong"){a.text=ta[a.text]}return Er(t.parseFunction(),"internal")}throw new n("Invalid token after macro prefix",a)}});jt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:true,primitive:true},handler(e){var{parser:t,funcName:r}=e;var a=t.gullet.popToken();var i=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i)){throw new n("Expected a control sequence",a)}var s=0;var o;var l=[[]];while(t.gullet.future().text!=="{"){a=t.gullet.popToken();if(a.text==="#"){if(t.gullet.future().text==="{"){o=t.gullet.future();l[s].push("{");break}a=t.gullet.popToken();if(!/^[1-9]$/.test(a.text)){throw new n('Invalid argument number "'+a.text+'"')}if(parseInt(a.text)!==s+1){throw new n('Argument number "'+a.text+'" out of order')}s++;l.push([])}else if(a.text==="EOF"){throw new n("Expected a macro definition")}else{l[s].push(a.text)}}var{tokens:h}=t.gullet.consumeArg();if(o){h.unshift(o)}if(r==="\\edef"||r==="\\xdef"){h=t.gullet.expandTokens(h);h.reverse()}t.gullet.macros.set(i,{tokens:h,numArgs:s,delimiters:l},r===ta[r]);return{type:"internal",mode:t.mode}}});jt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:true,primitive:true},handler(e){var{parser:t,funcName:r}=e;var a=ra(t.gullet.popToken());t.gullet.consumeSpaces();var i=aa(t);ia(t,a,i,r==="\\\\globallet");return{type:"internal",mode:t.mode}}});jt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:true,primitive:true},handler(e){var{parser:t,funcName:r}=e;var a=ra(t.gullet.popToken());var i=t.gullet.popToken();var n=t.gullet.popToken();ia(t,a,n,r==="\\\\globalfuture");t.gullet.pushToken(n);t.gullet.pushToken(i);return{type:"internal",mode:t.mode}}});var na=function e(t,r,a){var i=He.math[t]&&He.math[t].replace;var n=ne(i||t,r,a);if(!n){throw new Error("Unsupported symbol "+t+" and font size "+r+".")}return n};var sa=function e(t,r,a,i){var n=a.havingBaseStyle(r);var s=Vt.makeSpan(i.concat(n.sizingClasses(a)),[t],a);var o=n.sizeMultiplier/a.sizeMultiplier;s.height*=o;s.depth*=o;s.maxFontSize=n.sizeMultiplier;return s};var oa=function e(t,r,a){var i=r.havingBaseStyle(a);var n=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter");t.style.top=ve(n);t.height-=n;t.depth+=n};var la=function e(t,r,a,i,n,s){var o=Vt.makeSymbol(t,"Main-Regular",n,i);var l=sa(o,r,i,s);if(a){oa(l,i,r)}return l};var ha=function e(t,r,a,i){return Vt.makeSymbol(t,"Size"+r+"-Regular",a,i)};var ua=function e(t,r,a,i,n,s){var o=ha(t,r,n,i);var l=sa(Vt.makeSpan(["delimsizing","size"+r],[o],i),L.TEXT,i,s);if(a){oa(l,i,L.TEXT)}return l};var ma=function e(t,r,a){var i;if(r==="Size1-Regular"){i="delim-size1"}else{i="delim-size4"}var n=Vt.makeSpan(["delimsizinginner",i],[Vt.makeSpan([],[Vt.makeSymbol(t,r,a)])]);return{type:"elem",elem:n}};var ca=function e(t,r,a){var i=te["Size4-Regular"][t.charCodeAt(0)]?te["Size4-Regular"][t.charCodeAt(0)][4]:te["Size1-Regular"][t.charCodeAt(0)][4];var n=new Be("inner",K(t,Math.round(1e3*r)));var s=new Te([n],{width:ve(i),height:ve(r),style:"width:"+ve(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"});var o=Vt.makeSvgSpan([],[s],a);o.height=r;o.style.height=ve(r);o.style.width=ve(i);return{type:"elem",elem:o}};var pa=.008;var da={type:"kern",size:-1*pa};var fa=["|","\\lvert","\\rvert","\\vert"];var va=["\\|","\\lVert","\\rVert","\\Vert"];var ga=function e(t,r,a,i,n,s){var o;var l;var h;var u;var m="";var c=0;o=h=u=t;l=null;var p="Size1-Regular";if(t==="\\uparrow"){h=u="⏐"}else if(t==="\\Uparrow"){h=u="‖"}else if(t==="\\downarrow"){o=h="⏐"}else if(t==="\\Downarrow"){o=h="‖"}else if(t==="\\updownarrow"){o="\\uparrow";h="⏐";u="\\downarrow"}else if(t==="\\Updownarrow"){o="\\Uparrow";h="‖";u="\\Downarrow"}else if(g.contains(fa,t)){h="∣";m="vert";c=333}else if(g.contains(va,t)){h="∥";m="doublevert";c=556}else if(t==="["||t==="\\lbrack"){o="⎡";h="⎢";u="⎣";p="Size4-Regular";m="lbrack";c=667}else if(t==="]"||t==="\\rbrack"){o="⎤";h="⎥";u="⎦";p="Size4-Regular";m="rbrack";c=667}else if(t==="\\lfloor"||t==="⌊"){h=o="⎢";u="⎣";p="Size4-Regular";m="lfloor";c=667}else if(t==="\\lceil"||t==="⌈"){o="⎡";h=u="⎢";p="Size4-Regular";m="lceil";c=667}else if(t==="\\rfloor"||t==="⌋"){h=o="⎥";u="⎦";p="Size4-Regular";m="rfloor";c=667}else if(t==="\\rceil"||t==="⌉"){o="⎤";h=u="⎥";p="Size4-Regular";m="rceil";c=667}else if(t==="("||t==="\\lparen"){o="⎛";h="⎜";u="⎝";p="Size4-Regular";m="lparen";c=875}else if(t===")"||t==="\\rparen"){o="⎞";h="⎟";u="⎠";p="Size4-Regular";m="rparen";c=875}else if(t==="\\{"||t==="\\lbrace"){o="⎧";l="⎨";u="⎩";h="⎪";p="Size4-Regular"}else if(t==="\\}"||t==="\\rbrace"){o="⎫";l="⎬";u="⎭";h="⎪";p="Size4-Regular"}else if(t==="\\lgroup"||t==="⟮"){o="⎧";u="⎩";h="⎪";p="Size4-Regular"}else if(t==="\\rgroup"||t==="⟯"){o="⎫";u="⎭";h="⎪";p="Size4-Regular"}else if(t==="\\lmoustache"||t==="⎰"){o="⎧";u="⎭";h="⎪";p="Size4-Regular"}else if(t==="\\rmoustache"||t==="⎱"){o="⎫";u="⎩";h="⎪";p="Size4-Regular"}var d=na(o,p,n);var f=d.height+d.depth;var v=na(h,p,n);var b=v.height+v.depth;var y=na(u,p,n);var x=y.height+y.depth;var w=0;var k=1;if(l!==null){var S=na(l,p,n);w=S.height+S.depth;k=2}var M=f+x+w;var z=Math.max(0,Math.ceil((r-M)/(k*b)));var A=M+z*k*b;var T=i.fontMetrics().axisHeight;if(a){T*=i.sizeMultiplier}var B=A/2-T;var C=[];if(m.length>0){var N=A-f-x;var q=Math.round(A*1e3);var I=Q(m,Math.round(N*1e3));var R=new Be(m,I);var H=(c/1e3).toFixed(3)+"em";var O=(q/1e3).toFixed(3)+"em";var E=new Te([R],{width:H,height:O,viewBox:"0 0 "+c+" "+q});var D=Vt.makeSvgSpan([],[E],i);D.height=q/1e3;D.style.width=H;D.style.height=O;C.push({type:"elem",elem:D})}else{C.push(ma(u,p,n));C.push(da);if(l===null){var V=A-f-x+2*pa;C.push(ca(h,V,i))}else{var P=(A-f-x-w)/2+2*pa;C.push(ca(h,P,i));C.push(da);C.push(ma(l,p,n));C.push(da);C.push(ca(h,P,i))}C.push(da);C.push(ma(o,p,n))}var F=i.havingBaseStyle(L.TEXT);var G=Vt.makeVList({positionType:"bottom",positionData:B,children:C},F);return sa(Vt.makeSpan(["delimsizing","mult"],[G],F),L.TEXT,i,s)};var ba=80;var ya=.08;var xa=function e(t,r,a,i,n){var s=Z(t,i,a);var o=new Be(t,s);var l=new Te([o],{width:"400em",height:ve(r),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return Vt.makeSvgSpan(["hide-tail"],[l],n)};var wa=function e(t,r){var a=r.havingBaseSizing();var i=qa("\\surd",t*a.sizeMultiplier,Ca,a);var n=a.sizeMultiplier;var s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness);var o;var l=0;var h=0;var u=0;var m;if(i.type==="small"){u=1e3+1e3*s+ba;if(t<1){n=1}else if(t<1.4){n=.7}l=(1+s+ya)/n;h=(1+s)/n;o=xa("sqrtMain",l,u,s,r);o.style.minWidth="0.853em";m=.833/n}else if(i.type==="large"){u=(1e3+ba)*za[i.size];h=(za[i.size]+s)/n;l=(za[i.size]+s+ya)/n;o=xa("sqrtSize"+i.size,l,u,s,r);o.style.minWidth="1.02em";m=1/n}else{l=t+s+ya;h=t+s;u=Math.floor(1e3*t+s)+ba;o=xa("sqrtTall",l,u,s,r);o.style.minWidth="0.742em";m=1.056}o.height=h;o.style.height=ve(l);return{span:o,advanceWidth:m,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*n}};var ka=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"];var Sa=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"];var Ma=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"];var za=[0,1.2,1.8,2.4,3];var Aa=function e(t,r,a,i,s){if(t==="<"||t==="\\lt"||t==="⟨"){t="\\langle"}else if(t===">"||t==="\\gt"||t==="⟩"){t="\\rangle"}if(g.contains(ka,t)||g.contains(Ma,t)){return ua(t,r,false,a,i,s)}else if(g.contains(Sa,t)){return ga(t,za[r],false,a,i,s)}else{throw new n("Illegal delimiter: '"+t+"'")}};var Ta=[{type:"small",style:L.SCRIPTSCRIPT},{type:"small",style:L.SCRIPT},{type:"small",style:L.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}];var Ba=[{type:"small",style:L.SCRIPTSCRIPT},{type:"small",style:L.SCRIPT},{type:"small",style:L.TEXT},{type:"stack"}];var Ca=[{type:"small",style:L.SCRIPTSCRIPT},{type:"small",style:L.SCRIPT},{type:"small",style:L.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}];var Na=function e(t){if(t.type==="small"){return"Main-Regular"}else if(t.type==="large"){return"Size"+t.size+"-Regular"}else if(t.type==="stack"){return"Size4-Regular"}else{throw new Error("Add support for delim type '"+t.type+"' here.")}};var qa=function e(t,r,a,i){var n=Math.min(2,3-i.style.size);for(var s=n;sr){return a[s]}}return a[a.length-1]};var Ia=function e(t,r,a,i,n,s){if(t==="<"||t==="\\lt"||t==="⟨"){t="\\langle"}else if(t===">"||t==="\\gt"||t==="⟩"){t="\\rangle"}var o;if(g.contains(Ma,t)){o=Ta}else if(g.contains(ka,t)){o=Ca}else{o=Ba}var l=qa(t,r,o,i);if(l.type==="small"){return la(t,l.style,a,i,n,s)}else if(l.type==="large"){return ua(t,l.size,a,i,n,s)}else{return ga(t,r,a,i,n,s)}};var Ra=function e(t,r,a,i,n,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier;var l=901;var h=5/i.fontMetrics().ptPerEm;var u=Math.max(r-o,a+o);var m=Math.max(u/500*l,2*u-h);return Ia(t,m,true,i,n,s)};var Ha={sqrtImage:wa,sizedDelim:Aa,sizeToMaxHeight:za,customSizedDelim:Ia,leftRightDelim:Ra};var Oa={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}};var Ea=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function La(e,t){var r=Dr(e);if(r&&g.contains(Ea,r.text)){return r}else if(r){throw new n("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e)}else{throw new n("Invalid delimiter type '"+e.type+"'",e)}}jt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=La(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Oa[e.funcName].size,mclass:Oa[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>{if(e.delim==="."){return Vt.makeSpan([e.mclass])}return Ha.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:e=>{var t=[];if(e.delim!=="."){t.push(gr(e.delim,e.mode))}var r=new vr.MathNode("mo",t);if(e.mclass==="mopen"||e.mclass==="mclose"){r.setAttribute("fence","true")}else{r.setAttribute("fence","false")}r.setAttribute("stretchy","true");var a=ve(Ha.sizeToMaxHeight[e.size]);r.setAttribute("minsize",a);r.setAttribute("maxsize",a);return r}});function Da(e){if(!e.body){throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}}jt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:true},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!=="string"){throw new n("\\current@color set to non-string in \\right")}return{type:"leftright-right",mode:e.parser.mode,delim:La(t[0],e).text,color:r}}});jt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:true},handler:(e,t)=>{var r=La(t[0],e);var a=e.parser;++a.leftrightDepth;var i=a.parseExpression(false);--a.leftrightDepth;a.expect("\\right",false);var n=Er(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:i,left:r.text,right:n.delim,rightColor:n.color}},htmlBuilder:(e,t)=>{Da(e);var r=ar(e.body,t,true,["mopen","mclose"]);var a=0;var i=0;var n=false;for(var s=0;s{Da(e);var r=wr(e.body,t);if(e.left!=="."){var a=new vr.MathNode("mo",[gr(e.left,e.mode)]);a.setAttribute("fence","true");r.unshift(a)}if(e.right!=="."){var i=new vr.MathNode("mo",[gr(e.right,e.mode)]);i.setAttribute("fence","true");if(e.rightColor){i.setAttribute("mathcolor",e.rightColor)}r.push(i)}return br(r)}});jt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:true},handler:(e,t)=>{var r=La(t[0],e);if(!e.parser.leftrightDepth){throw new n("\\middle without preceding \\left",r)}return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim==="."){r=lr(t,[])}else{r=Ha.sizedDelim(e.delim,1,t,e.mode,[]);var a={delim:e.delim,options:t};r.isMiddle=a}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?gr("|","text"):gr(e.delim,e.mode);var a=new vr.MathNode("mo",[r]);a.setAttribute("fence","true");a.setAttribute("lspace","0.05em");a.setAttribute("rspace","0.05em");return a}});var Va=(e,t)=>{var r=Vt.wrapFragment(hr(e.body,t),t);var a=e.label.slice(1);var i=t.sizeMultiplier;var n;var s=0;var o=g.isCharacterBox(e.body);if(a==="sout"){n=Vt.makeSpan(["stretchy","sout"]);n.height=t.fontMetrics().defaultRuleThickness/i;s=-.5*t.fontMetrics().xHeight}else if(a==="phase"){var l=fe({number:.6,unit:"pt"},t);var h=fe({number:.35,unit:"ex"},t);var u=t.havingBaseSizing();i=i/u.sizeMultiplier;var m=r.height+r.depth+l+h;r.style.paddingLeft=ve(m/2+l);var c=Math.floor(1e3*m*i);var p=j(c);var d=new Te([new Be("phase",p)],{width:"400em",height:ve(c/1e3),viewBox:"0 0 400000 "+c,preserveAspectRatio:"xMinYMin slice"});n=Vt.makeSvgSpan(["hide-tail"],[d],t);n.style.height=ve(m);s=r.depth+l+h}else{if(/cancel/.test(a)){if(!o){r.classes.push("cancel-pad")}}else if(a==="angl"){r.classes.push("anglpad")}else{r.classes.push("boxpad")}var f=0;var v=0;var b=0;if(/box/.test(a)){b=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);f=t.fontMetrics().fboxsep+(a==="colorbox"?0:b);v=f}else if(a==="angl"){b=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness);f=4*b;v=Math.max(0,.25-r.depth)}else{f=o?.2:0;v=f}n=Or.encloseSpan(r,a,f,v,t);if(/fbox|boxed|fcolorbox/.test(a)){n.style.borderStyle="solid";n.style.borderWidth=ve(b)}else if(a==="angl"&&b!==.049){n.style.borderTopWidth=ve(b);n.style.borderRightWidth=ve(b)}s=r.depth+v;if(e.backgroundColor){n.style.backgroundColor=e.backgroundColor;if(e.borderColor){n.style.borderColor=e.borderColor}}}var y;if(e.backgroundColor){y=Vt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:s},{type:"elem",elem:r,shift:0}]},t)}else{var x=/cancel|phase/.test(a)?["svg-align"]:[];y=Vt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:n,shift:s,wrapperClasses:x}]},t)}if(/cancel/.test(a)){y.height=r.height;y.depth=r.depth}if(/cancel/.test(a)&&!o){return Vt.makeSpan(["mord","cancel-lap"],[y],t)}else{return Vt.makeSpan(["mord"],[y],t)}};var Pa=(e,t)=>{var r=0;var a=new vr.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Sr(e.body,t)]);switch(e.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm;a.setAttribute("width","+"+2*r+"pt");a.setAttribute("height","+"+2*r+"pt");a.setAttribute("lspace",r+"pt");a.setAttribute("voffset",r+"pt");if(e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);a.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}if(e.backgroundColor){a.setAttribute("mathbackground",e.backgroundColor)}return a};jt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:true,argTypes:["color","text"]},handler(e,t,r){var{parser:a,funcName:i}=e;var n=Er(t[0],"color-token").color;var s=t[1];return{type:"enclose",mode:a.mode,label:i,backgroundColor:n,body:s}},htmlBuilder:Va,mathmlBuilder:Pa});jt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:true,argTypes:["color","color","text"]},handler(e,t,r){var{parser:a,funcName:i}=e;var n=Er(t[0],"color-token").color;var s=Er(t[1],"color-token").color;var o=t[2];return{type:"enclose",mode:a.mode,label:i,backgroundColor:s,borderColor:n,body:o}},htmlBuilder:Va,mathmlBuilder:Pa});jt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:true},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});jt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;var i=t[0];return{type:"enclose",mode:r.mode,label:a,body:i}},htmlBuilder:Va,mathmlBuilder:Pa});jt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:false},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var Fa={};function Ga(e){var{type:t,names:r,props:a,handler:i,htmlBuilder:n,mathmlBuilder:s}=e;var o={type:t,numArgs:a.numArgs||0,allowedInText:false,numOptionalArgs:0,handler:i};for(var l=0;l{var t=e.parser.settings;if(!t.displayMode){throw new n("{"+e.envName+"} can be used only in"+" display mode.")}};function _a(e){if(e.indexOf("ed")===-1){return e.indexOf("*")===-1}}function ja(e,t,r){var{hskipBeforeAndAfter:a,addJot:s,cols:o,arraystretch:l,colSeparationType:h,autoTag:u,singleRow:m,emptySingleRow:c,maxNumCols:p,leqno:d}=t;e.gullet.beginGroup();if(!m){e.gullet.macros.set("\\cr","\\\\\\relax")}if(!l){var f=e.gullet.expandMacroAsText("\\arraystretch");if(f==null){l=1}else{l=parseFloat(f);if(!l||l<0){throw new n("Invalid \\arraystretch: "+f)}}}e.gullet.beginGroup();var v=[];var g=[v];var b=[];var y=[];var x=u!=null?[]:undefined;function w(){if(u){e.gullet.macros.set("\\@eqnsw","1",true)}}function k(){if(x){if(e.gullet.macros.get("\\df@tag")){x.push(e.subparse([new i("\\df@tag")]));e.gullet.macros.set("\\df@tag",undefined,true)}else{x.push(Boolean(u)&&e.gullet.macros.get("\\@eqnsw")==="1")}}}w();y.push(Xa(e));while(true){var S=e.parseExpression(false,m?"\\end":"\\\\");e.gullet.endGroup();e.gullet.beginGroup();S={type:"ordgroup",mode:e.mode,body:S};if(r){S={type:"styling",mode:e.mode,style:r,body:[S]}}v.push(S);var M=e.fetch().text;if(M==="&"){if(p&&v.length===p){if(m||h){throw new n("Too many tab characters: &",e.nextToken)}else{e.settings.reportNonstrict("textEnv","Too few columns "+"specified in the {array} column argument.")}}e.consume()}else if(M==="\\end"){k();if(v.length===1&&S.type==="styling"&&S.body[0].body.length===0&&(g.length>1||!c)){g.pop()}if(y.length0){w+=.25}u.push({pos:w,isDashed:e[t]})}}k(o[0]);for(a=0;a0){C+=x;if(ze))){for(a=0;a=l){continue}var W=void 0;if(i>0||t.hskipBeforeAndAfter){W=g.deflt(F.pregap,p);if(W!==0){R=Vt.makeSpan(["arraycolsep"],[]);R.style.width=ve(W);I.push(R)}}var _=[];for(a=0;a0){var K=Vt.makeLineSpan("hline",r,m);var J=Vt.makeLineSpan("hdashline",r,m);var Q=[{type:"elem",elem:h,shift:0}];while(u.length>0){var ee=u.pop();var te=ee.pos-N;if(ee.isDashed){Q.push({type:"elem",elem:J,shift:te})}else{Q.push({type:"elem",elem:K,shift:te})}}h=Vt.makeVList({positionType:"individualShift",children:Q},r)}if(O.length===0){return Vt.makeSpan(["mord"],[h],r)}else{var re=Vt.makeVList({positionType:"individualShift",children:O},r);re=Vt.makeSpan(["tag"],[re],r);return Vt.makeFragment([h,re])}};var Ka={c:"center ",l:"left ",r:"right "};var Ja=function e(t,r){var a=[];var i=new vr.MathNode("mtd",[],["mtr-glue"]);var n=new vr.MathNode("mtd",[],["mml-eqn-num"]);for(var s=0;s0){var d=t.cols;var f="";var v=false;var g=0;var b=d.length;if(d[0].type==="separator"){c+="top ";g=1}if(d[d.length-1].type==="separator"){c+="bottom ";b-=1}for(var y=g;y0?"left ":"";c+=M[M.length-1].length>0?"right ":"";for(var z=1;z-1?"alignat":"align";var s=t.envName==="split";var o=ja(t.parser,{cols:a,addJot:true,autoTag:s?undefined:_a(t.envName),emptySingleRow:true,colSeparationType:i,maxNumCols:s?2:undefined,leqno:t.parser.settings.leqno},"display");var l;var h=0;var u={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){var m="";for(var c=0;c0&&d){g=1}a[f]={type:"align",align:v,pregap:g,postgap:0}}o.colSeparationType=d?"align":"alignat";return o};Ga({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=Dr(t[0]);var a=r?[t[0]]:Er(t[0],"ordgroup").body;var i=a.map((function(e){var t=Lr(e);var r=t.text;if("lcr".indexOf(r)!==-1){return{type:"align",align:r}}else if(r==="|"){return{type:"separator",separator:"|"}}else if(r===":"){return{type:"separator",separator:":"}}throw new n("Unknown column alignment: "+r,e)}));var s={cols:i,hskipBeforeAndAfter:true,maxNumCols:i.length};return ja(e.parser,s,$a(e.envName))},htmlBuilder:Za,mathmlBuilder:Ja});Ga({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")];var r="c";var a={hskipBeforeAndAfter:false,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;i.consumeSpaces();if(i.fetch().text==="["){i.consume();i.consumeSpaces();r=i.fetch().text;if("lcr".indexOf(r)===-1){throw new n("Expected l or c or r",i.nextToken)}i.consume();i.consumeSpaces();i.expect("]");i.consume();a.cols=[{type:"align",align:r}]}}var s=ja(e.parser,a,$a(e.envName));var o=Math.max(0,...s.body.map((e=>e.length)));s.cols=new Array(o).fill({type:"align",align:r});return t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:undefined}:s},htmlBuilder:Za,mathmlBuilder:Ja});Ga({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5};var r=ja(e.parser,t,"script");r.colSeparationType="small";return r},htmlBuilder:Za,mathmlBuilder:Ja});Ga({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=Dr(t[0]);var a=r?[t[0]]:Er(t[0],"ordgroup").body;var i=a.map((function(e){var t=Lr(e);var r=t.text;if("lc".indexOf(r)!==-1){return{type:"align",align:r}}throw new n("Unknown column alignment: "+r,e)}));if(i.length>1){throw new n("{subarray} can contain only one column")}var s={cols:i,hskipBeforeAndAfter:false,arraystretch:.5};s=ja(e.parser,s,"script");if(s.body.length>0&&s.body[0].length>1){throw new n("{subarray} can contain only one column")}return s},htmlBuilder:Za,mathmlBuilder:Ja});Ga({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]};var r=ja(e.parser,t,$a(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:undefined}},htmlBuilder:Za,mathmlBuilder:Ja});Ga({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Qa,htmlBuilder:Za,mathmlBuilder:Ja});Ga({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){if(g.contains(["gather","gather*"],e.envName)){Wa(e)}var t={cols:[{type:"align",align:"c"}],addJot:true,colSeparationType:"gather",autoTag:_a(e.envName),emptySingleRow:true,leqno:e.parser.settings.leqno};return ja(e.parser,t,"display")},htmlBuilder:Za,mathmlBuilder:Ja});Ga({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Qa,htmlBuilder:Za,mathmlBuilder:Ja});Ga({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Wa(e);var t={autoTag:_a(e.envName),emptySingleRow:true,singleRow:true,maxNumCols:1,leqno:e.parser.settings.leqno};return ja(e.parser,t,"display")},htmlBuilder:Za,mathmlBuilder:Ja});Ga({type:"array",names:["CD"],props:{numArgs:0},handler(e){Wa(e);return Jr(e.parser)},htmlBuilder:Za,mathmlBuilder:Ja});Ya("\\nonumber","\\gdef\\@eqnsw{0}");Ya("\\notag","\\nonumber");jt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:true,allowedInMath:true},handler(e,t){throw new n(e.funcName+" valid only within array environment")}});var ei=Fa;jt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:a}=e;var i=t[0];if(i.type!=="ordgroup"){throw new n("Invalid environment name",i)}var s="";for(var o=0;o{var r=e.font;var a=t.withFont(r);return hr(e.body,a)};var ri=(e,t)=>{var r=e.font;var a=t.withFont(r);return Sr(e.body,a)};var ai={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};jt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:true},handler:(e,t)=>{var{parser:r,funcName:a}=e;var i=Zt(t[0]);var n=a;if(n in ai){n=ai[n]}return{type:"font",mode:r.mode,font:n.slice(1),body:i}},htmlBuilder:ti,mathmlBuilder:ri});jt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e;var a=t[0];var i=g.isCharacterBox(a);return{type:"mclass",mode:r.mode,mclass:Wr(a),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:a}],isCharacterBox:i}}});jt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:true},handler:(e,t)=>{var{parser:r,funcName:a,breakOnTokenText:i}=e;var{mode:n}=r;var s=r.parseExpression(true,i);var o="math"+a.slice(1);return{type:"font",mode:n,font:o,body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:ti,mathmlBuilder:ri});var ii=(e,t)=>{var r=t;if(e==="display"){r=r.id>=L.SCRIPT.id?r.text():L.DISPLAY}else if(e==="text"&&r.size===L.DISPLAY.size){r=L.TEXT}else if(e==="script"){r=L.SCRIPT}else if(e==="scriptscript"){r=L.SCRIPTSCRIPT}return r};var ni=(e,t)=>{var r=ii(e.size,t.style);var a=r.fracNum();var i=r.fracDen();var n;n=t.havingStyle(a);var s=hr(e.numer,n,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm;var l=3.5/t.fontMetrics().ptPerEm;s.height=s.height0){d=3*c}else{d=7*c}f=t.fontMetrics().denom1}else{if(m>0){p=t.fontMetrics().num2;d=c}else{p=t.fontMetrics().num3;d=3*c}f=t.fontMetrics().denom2}var v;if(!u){var g=p-s.depth-(h.height-f);if(g{var r=new vr.MathNode("mfrac",[Sr(e.numer,t),Sr(e.denom,t)]);if(!e.hasBarLine){r.setAttribute("linethickness","0px")}else if(e.barSize){var a=fe(e.barSize,t);r.setAttribute("linethickness",ve(a))}var i=ii(e.size,t.style);if(i.size!==t.style.size){r=new vr.MathNode("mstyle",[r]);var n=i.size===L.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",n);r.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new vr.MathNode("mo",[new vr.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true");s.push(o)}s.push(r);if(e.rightDelim!=null){var l=new vr.MathNode("mo",[new vr.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true");s.push(l)}return br(s)}return r};jt({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:true},handler:(e,t)=>{var{parser:r,funcName:a}=e;var i=t[0];var n=t[1];var s;var o=null;var l=null;var h="auto";switch(a){case"\\dfrac":case"\\frac":case"\\tfrac":s=true;break;case"\\\\atopfrac":s=false;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=false;o="(";l=")";break;case"\\\\bracefrac":s=false;o="\\{";l="\\}";break;case"\\\\brackfrac":s=false;o="[";l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(a){case"\\dfrac":case"\\dbinom":h="display";break;case"\\tfrac":case"\\tbinom":h="text";break}return{type:"genfrac",mode:r.mode,continued:false,numer:i,denom:n,hasBarLine:s,leftDelim:o,rightDelim:l,size:h,barSize:null}},htmlBuilder:ni,mathmlBuilder:si});jt({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:a}=e;var i=t[0];var n=t[1];return{type:"genfrac",mode:r.mode,continued:true,numer:i,denom:n,hasBarLine:true,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});jt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:true},handler(e){var{parser:t,funcName:r,token:a}=e;var i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:a}}});var oi=["display","text","script","scriptscript"];var li=function e(t){var r=null;if(t.length>0){r=t;r=r==="."?null:r}return r};jt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:true,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e;var a=t[4];var i=t[5];var n=Zt(t[0]);var s=n.type==="atom"&&n.family==="open"?li(n.text):null;var o=Zt(t[1]);var l=o.type==="atom"&&o.family==="close"?li(o.text):null;var h=Er(t[2],"size");var u;var m=null;if(h.isBlank){u=true}else{m=h.value;u=m.number>0}var c="auto";var p=t[3];if(p.type==="ordgroup"){if(p.body.length>0){var d=Er(p.body[0],"textord");c=oi[Number(d.text)]}}else{p=Er(p,"textord");c=oi[Number(p.text)]}return{type:"genfrac",mode:r.mode,numer:a,denom:i,continued:false,hasBarLine:u,barSize:m,leftDelim:s,rightDelim:l,size:c}},htmlBuilder:ni,mathmlBuilder:si});jt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:true},handler(e,t){var{parser:r,funcName:a,token:i}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Er(t[0],"size").value,token:i}}});jt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:a}=e;var i=t[0];var n=f(Er(t[1],"infix").size);var s=t[2];var o=n.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:s,continued:false,hasBarLine:o,barSize:n,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:ni,mathmlBuilder:si});var hi=(e,t)=>{var r=t.style;var a;var i;if(e.type==="supsub"){a=e.sup?hr(e.sup,t.havingStyle(r.sup()),t):hr(e.sub,t.havingStyle(r.sub()),t);i=Er(e.base,"horizBrace")}else{i=Er(e,"horizBrace")}var n=hr(i.base,t.havingBaseStyle(L.DISPLAY));var s=Or.svgSpan(i,t);var o;if(i.isOver){o=Vt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:.1},{type:"elem",elem:s}]},t);o.children[0].children[0].children[1].classes.push("svg-align")}else{o=Vt.makeVList({positionType:"bottom",positionData:n.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:n}]},t);o.children[0].children[0].children[0].classes.push("svg-align")}if(a){var l=Vt.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);if(i.isOver){o=Vt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:a}]},t)}else{o=Vt.makeVList({positionType:"bottom",positionData:l.depth+.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}}return Vt.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)};var ui=(e,t)=>{var r=Or.mathMLnode(e.label);return new vr.MathNode(e.isOver?"mover":"munder",[Sr(e.base,t),r])};jt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"horizBrace",mode:r.mode,label:a,isOver:/^\\over/.test(a),base:t[0]}},htmlBuilder:hi,mathmlBuilder:ui});jt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:true},handler:(e,t)=>{var{parser:r}=e;var a=t[1];var i=Er(t[0],"url").url;if(!r.settings.isTrusted({command:"\\href",url:i})){return r.formatUnsupportedCmd("\\href")}return{type:"href",mode:r.mode,href:i,body:Kt(a)}},htmlBuilder:(e,t)=>{var r=ar(e.body,t,false);return Vt.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=kr(e.body,t);if(!(r instanceof pr)){r=new pr("mrow",[r])}r.setAttribute("href",e.href);return r}});jt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:true},handler:(e,t)=>{var{parser:r}=e;var a=Er(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:a})){return r.formatUnsupportedCmd("\\url")}var i=[];for(var n=0;n{var{parser:r,funcName:a,token:i}=e;var s=Er(t[0],"raw").string;var o=t[1];if(r.settings.strict){r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode")}var l;var h={};switch(a){case"\\htmlClass":h.class=s;l={command:"\\htmlClass",class:s};break;case"\\htmlId":h.id=s;l={command:"\\htmlId",id:s};break;case"\\htmlStyle":h.style=s;l={command:"\\htmlStyle",style:s};break;case"\\htmlData":{var u=s.split(",");for(var m=0;m{var r=ar(e.body,t,false);var a=["enclosing"];if(e.attributes.class){a.push(...e.attributes.class.trim().split(/\s+/))}var i=Vt.makeSpan(a,r,t);for(var n in e.attributes){if(n!=="class"&&e.attributes.hasOwnProperty(n)){i.setAttribute(n,e.attributes[n])}}return i},mathmlBuilder:(e,t)=>kr(e.body,t)});jt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:true},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:Kt(t[0]),mathml:Kt(t[1])}},htmlBuilder:(e,t)=>{var r=ar(e.html,t,false);return Vt.makeFragment(r)},mathmlBuilder:(e,t)=>kr(e.mathml,t)});var mi=function e(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t)){return{number:+t,unit:"bp"}}else{var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r){throw new n("Invalid size: '"+t+"' in \\includegraphics")}var a={number:+(r[1]+r[2]),unit:r[3]};if(!de(a)){throw new n("Invalid unit: '"+a.unit+"' in \\includegraphics.")}return a}};jt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:false},handler:(e,t,r)=>{var{parser:a}=e;var i={number:0,unit:"em"};var s={number:.9,unit:"em"};var o={number:0,unit:"em"};var l="";if(r[0]){var h=Er(r[0],"raw").string;var u=h.split(",");for(var m=0;m{var r=fe(e.height,t);var a=0;if(e.totalheight.number>0){a=fe(e.totalheight,t)-r}var i=0;if(e.width.number>0){i=fe(e.width,t)}var n={height:ve(r+a)};if(i>0){n.width=ve(i)}if(a>0){n.verticalAlign=ve(-a)}var s=new Me(e.src,e.alt,n);s.height=r;s.depth=a;return s},mathmlBuilder:(e,t)=>{var r=new vr.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var a=fe(e.height,t);var i=0;if(e.totalheight.number>0){i=fe(e.totalheight,t)-a;r.setAttribute("valign",ve(-i))}r.setAttribute("height",ve(a+i));if(e.width.number>0){var n=fe(e.width,t);r.setAttribute("width",ve(n))}r.setAttribute("src",e.src);return r}});jt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:true,allowedInText:true},handler(e,t){var{parser:r,funcName:a}=e;var i=Er(t[0],"size");if(r.settings.strict){var n=a[1]==="m";var s=i.value.unit==="mu";if(n){if(!s){r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, "+("not "+i.value.unit+" units"))}if(r.mode!=="math"){r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")}}else{if(s){r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}}}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(e,t){return Vt.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var r=fe(e.dimension,t);return new vr.SpaceNode(r)}});jt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:true},handler:(e,t)=>{var{parser:r,funcName:a}=e;var i=t[0];return{type:"lap",mode:r.mode,alignment:a.slice(5),body:i}},htmlBuilder:(e,t)=>{var r;if(e.alignment==="clap"){r=Vt.makeSpan([],[hr(e.body,t)]);r=Vt.makeSpan(["inner"],[r],t)}else{r=Vt.makeSpan(["inner"],[hr(e.body,t)])}var a=Vt.makeSpan(["fix"],[]);var i=Vt.makeSpan([e.alignment],[r,a],t);var n=Vt.makeSpan(["strut"]);n.style.height=ve(i.height+i.depth);if(i.depth){n.style.verticalAlign=ve(-i.depth)}i.children.unshift(n);i=Vt.makeSpan(["thinbox"],[i],t);return Vt.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var r=new vr.MathNode("mpadded",[Sr(e.body,t)]);if(e.alignment!=="rlap"){var a=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",a+"width")}r.setAttribute("width","0px");return r}});jt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:true,allowedInMath:false},handler(e,t){var{funcName:r,parser:a}=e;var i=a.mode;a.switchMode("math");var n=r==="\\("?"\\)":"$";var s=a.parseExpression(false,n);a.expect(n);a.switchMode(i);return{type:"styling",mode:a.mode,style:"text",body:s}}});jt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:true,allowedInMath:false},handler(e,t){throw new n("Mismatched "+e.funcName)}});var ci=(e,t)=>{switch(t.style.size){case L.DISPLAY.size:return e.display;case L.TEXT.size:return e.text;case L.SCRIPT.size:return e.script;case L.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};jt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:true},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:Kt(t[0]),text:Kt(t[1]),script:Kt(t[2]),scriptscript:Kt(t[3])}},htmlBuilder:(e,t)=>{var r=ci(e,t);var a=ar(r,t,false);return Vt.makeFragment(a)},mathmlBuilder:(e,t)=>{var r=ci(e,t);return kr(r,t)}});var pi=(e,t,r,a,i,n,s)=>{e=Vt.makeSpan([],[e]);var o=r&&g.isCharacterBox(r);var l;var h;if(t){var u=hr(t,a.havingStyle(i.sup()),a);h={elem:u,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-u.depth)}}if(r){var m=hr(r,a.havingStyle(i.sub()),a);l={elem:m,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-m.height)}}var c;if(h&&l){var p=a.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+s;c=Vt.makeVList({positionType:"bottom",positionData:p,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:ve(-n)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:ve(n)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else if(l){var d=e.height-s;c=Vt.makeVList({positionType:"top",positionData:d,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:ve(-n)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},a)}else if(h){var f=e.depth+s;c=Vt.makeVList({positionType:"bottom",positionData:f,children:[{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:ve(n)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else{return e}var v=[c];if(l&&n!==0&&!o){var b=Vt.makeSpan(["mspace"],[],a);b.style.marginRight=ve(n);v.unshift(b)}return Vt.makeSpan(["mop","op-limits"],v,a)};var di=["\\smallint"];var fi=(e,t)=>{var r;var a;var i=false;var n;if(e.type==="supsub"){r=e.sup;a=e.sub;n=Er(e.base,"op");i=true}else{n=Er(e,"op")}var s=t.style;var o=false;if(s.size===L.DISPLAY.size&&n.symbol&&!g.contains(di,n.name)){o=true}var l;if(n.symbol){var h=o?"Size2-Regular":"Size1-Regular";var u="";if(n.name==="\\oiint"||n.name==="\\oiiint"){u=n.name.slice(1);n.name=u==="oiint"?"\\iint":"\\iiint"}l=Vt.makeSymbol(n.name,h,"math",t,["mop","op-symbol",o?"large-op":"small-op"]);if(u.length>0){var m=l.italic;var c=Vt.staticSvg(u+"Size"+(o?"2":"1"),t);l=Vt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:c,shift:o?.08:0}]},t);n.name="\\"+u;l.classes.unshift("mop");l.italic=m}}else if(n.body){var p=ar(n.body,t,true);if(p.length===1&&p[0]instanceof Ae){l=p[0];l.classes[0]="mop"}else{l=Vt.makeSpan(["mop"],p,t)}}else{var d=[];for(var f=1;f{var r;if(e.symbol){r=new pr("mo",[gr(e.name,e.mode)]);if(g.contains(di,e.name)){r.setAttribute("largeop","false")}}else if(e.body){r=new pr("mo",wr(e.body,t))}else{r=new pr("mi",[new dr(e.name.slice(1))]);var a=new pr("mo",[gr("⁡","text")]);if(e.parentIsSupSub){r=new pr("mrow",[r,a])}else{r=cr([r,a])}}return r};var gi={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};jt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:a}=e;var i=a;if(i.length===1){i=gi[i]}return{type:"op",mode:r.mode,limits:true,parentIsSupSub:false,symbol:true,name:i}},htmlBuilder:fi,mathmlBuilder:vi});jt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:true},handler:(e,t)=>{var{parser:r}=e;var a=t[0];return{type:"op",mode:r.mode,limits:false,parentIsSupSub:false,symbol:false,body:Kt(a)}},htmlBuilder:fi,mathmlBuilder:vi});var bi={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};jt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:false,parentIsSupSub:false,symbol:false,name:r}},htmlBuilder:fi,mathmlBuilder:vi});jt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:true,parentIsSupSub:false,symbol:false,name:r}},htmlBuilder:fi,mathmlBuilder:vi});jt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;var a=r;if(a.length===1){a=bi[a]}return{type:"op",mode:t.mode,limits:false,parentIsSupSub:false,symbol:true,name:a}},htmlBuilder:fi,mathmlBuilder:vi});var yi=(e,t)=>{var r;var a;var i=false;var n;if(e.type==="supsub"){r=e.sup;a=e.sub;n=Er(e.base,"operatorname");i=true}else{n=Er(e,"operatorname")}var s;if(n.body.length>0){var o=n.body.map((e=>{var t=e.text;if(typeof t==="string"){return{type:"textord",mode:e.mode,text:t}}else{return e}}));var l=ar(o,t.withFont("mathrm"),true);for(var h=0;h{var r=wr(e.body,t.withFont("mathrm"));var a=true;for(var i=0;ie.toText())).join("");r=[new vr.TextNode(o)]}var l=new vr.MathNode("mi",r);l.setAttribute("mathvariant","normal");var h=new vr.MathNode("mo",[gr("⁡","text")]);if(e.parentIsSupSub){return new vr.MathNode("mrow",[l,h])}else{return vr.newDocumentFragment([l,h])}};jt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:a}=e;var i=t[0];return{type:"operatorname",mode:r.mode,body:Kt(i),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:false,parentIsSupSub:false}},htmlBuilder:yi,mathmlBuilder:xi});Ya("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");$t({type:"ordgroup",htmlBuilder(e,t){if(e.semisimple){return Vt.makeFragment(ar(e.body,t,false))}return Vt.makeSpan(["mord"],ar(e.body,t,true),t)},mathmlBuilder(e,t){return kr(e.body,t,true)}});jt({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e;var a=t[0];return{type:"overline",mode:r.mode,body:a}},htmlBuilder(e,t){var r=hr(e.body,t.havingCrampedStyle());var a=Vt.makeLineSpan("overline-line",t);var i=t.fontMetrics().defaultRuleThickness;var n=Vt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:a},{type:"kern",size:i}]},t);return Vt.makeSpan(["mord","overline"],[n],t)},mathmlBuilder(e,t){var r=new vr.MathNode("mo",[new vr.TextNode("‾")]);r.setAttribute("stretchy","true");var a=new vr.MathNode("mover",[Sr(e.body,t),r]);a.setAttribute("accent","true");return a}});jt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:true},handler:(e,t)=>{var{parser:r}=e;var a=t[0];return{type:"phantom",mode:r.mode,body:Kt(a)}},htmlBuilder:(e,t)=>{var r=ar(e.body,t.withPhantom(),false);return Vt.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=wr(e.body,t);return new vr.MathNode("mphantom",r)}});jt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:true},handler:(e,t)=>{var{parser:r}=e;var a=t[0];return{type:"hphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=Vt.makeSpan([],[hr(e.body,t.withPhantom())]);r.height=0;r.depth=0;if(r.children){for(var a=0;a{var r=wr(Kt(e.body),t);var a=new vr.MathNode("mphantom",r);var i=new vr.MathNode("mpadded",[a]);i.setAttribute("height","0px");i.setAttribute("depth","0px");return i}});jt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:true},handler:(e,t)=>{var{parser:r}=e;var a=t[0];return{type:"vphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=Vt.makeSpan(["inner"],[hr(e.body,t.withPhantom())]);var a=Vt.makeSpan(["fix"],[]);return Vt.makeSpan(["mord","rlap"],[r,a],t)},mathmlBuilder:(e,t)=>{var r=wr(Kt(e.body),t);var a=new vr.MathNode("mphantom",r);var i=new vr.MathNode("mpadded",[a]);i.setAttribute("width","0px");return i}});jt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:true},handler(e,t){var{parser:r}=e;var a=Er(t[0],"size").value;var i=t[1];return{type:"raisebox",mode:r.mode,dy:a,body:i}},htmlBuilder(e,t){var r=hr(e.body,t);var a=fe(e.dy,t);return Vt.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new vr.MathNode("mpadded",[Sr(e.body,t)]);var a=e.dy.number+e.dy.unit;r.setAttribute("voffset",a);return r}});jt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:true,allowedInArgument:true},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});jt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:true,allowedInMath:true,argTypes:["size","size","size"]},handler(e,t,r){var{parser:a}=e;var i=r[0];var n=Er(t[0],"size");var s=Er(t[1],"size");return{type:"rule",mode:a.mode,shift:i&&Er(i,"size").value,width:n.value,height:s.value}},htmlBuilder(e,t){var r=Vt.makeSpan(["mord","rule"],[],t);var a=fe(e.width,t);var i=fe(e.height,t);var n=e.shift?fe(e.shift,t):0;r.style.borderRightWidth=ve(a);r.style.borderTopWidth=ve(i);r.style.bottom=ve(n);r.width=a;r.height=i+n;r.depth=-n;r.maxFontSize=i*1.125*t.sizeMultiplier;return r},mathmlBuilder(e,t){var r=fe(e.width,t);var a=fe(e.height,t);var i=e.shift?fe(e.shift,t):0;var n=t.color&&t.getColor()||"black";var s=new vr.MathNode("mspace");s.setAttribute("mathbackground",n);s.setAttribute("width",ve(r));s.setAttribute("height",ve(a));var o=new vr.MathNode("mpadded",[s]);if(i>=0){o.setAttribute("height",ve(i))}else{o.setAttribute("height",ve(i));o.setAttribute("depth",ve(-i))}o.setAttribute("voffset",ve(i));return o}});function wi(e,t,r){var a=ar(e,t,false);var i=t.sizeMultiplier/r.sizeMultiplier;for(var n=0;n{var r=t.havingSize(e.size);return wi(e.body,r,t)};jt({type:"sizing",names:ki,props:{numArgs:0,allowedInText:true},handler:(e,t)=>{var{breakOnTokenText:r,funcName:a,parser:i}=e;var n=i.parseExpression(false,r);return{type:"sizing",mode:i.mode,size:ki.indexOf(a)+1,body:n}},htmlBuilder:Si,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size);var a=wr(e.body,r);var i=new vr.MathNode("mstyle",a);i.setAttribute("mathsize",ve(r.sizeMultiplier));return i}});jt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:true},handler:(e,t,r)=>{var{parser:a}=e;var i=false;var n=false;var s=r[0]&&Er(r[0],"ordgroup");if(s){var o="";for(var l=0;l{var r=Vt.makeSpan([],[hr(e.body,t)]);if(!e.smashHeight&&!e.smashDepth){return r}if(e.smashHeight){r.height=0;if(r.children){for(var a=0;a{var r=new vr.MathNode("mpadded",[Sr(e.body,t)]);if(e.smashHeight){r.setAttribute("height","0px")}if(e.smashDepth){r.setAttribute("depth","0px")}return r}});jt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a}=e;var i=r[0];var n=t[0];return{type:"sqrt",mode:a.mode,body:n,index:i}},htmlBuilder(e,t){var r=hr(e.body,t.havingCrampedStyle());if(r.height===0){r.height=t.fontMetrics().xHeight}r=Vt.wrapFragment(r,t);var a=t.fontMetrics();var i=a.defaultRuleThickness;var n=i;if(t.style.idr.height+r.depth+s){s=(s+m-r.height-r.depth)/2}var c=l.height-r.height-s-h;r.style.paddingLeft=ve(u);var p=Vt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+c)},{type:"elem",elem:l},{type:"kern",size:h}]},t);if(!e.index){return Vt.makeSpan(["mord","sqrt"],[p],t)}else{var d=t.havingStyle(L.SCRIPTSCRIPT);var f=hr(e.index,d,t);var v=.6*(p.height-p.depth);var g=Vt.makeVList({positionType:"shift",positionData:-v,children:[{type:"elem",elem:f}]},t);var b=Vt.makeSpan(["root"],[g]);return Vt.makeSpan(["mord","sqrt"],[b,p],t)}},mathmlBuilder(e,t){var{body:r,index:a}=e;return a?new vr.MathNode("mroot",[Sr(r,t),Sr(a,t)]):new vr.MathNode("msqrt",[Sr(r,t)])}});var Mi={display:L.DISPLAY,text:L.TEXT,script:L.SCRIPT,scriptscript:L.SCRIPTSCRIPT};jt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:true,primitive:true},handler(e,t){var{breakOnTokenText:r,funcName:a,parser:i}=e;var n=i.parseExpression(true,r);var s=a.slice(1,a.length-5);return{type:"styling",mode:i.mode,style:s,body:n}},htmlBuilder(e,t){var r=Mi[e.style];var a=t.havingStyle(r).withFont("");return wi(e.body,a,t)},mathmlBuilder(e,t){var r=Mi[e.style];var a=t.havingStyle(r);var i=wr(e.body,a);var n=new vr.MathNode("mstyle",i);var s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]};var o=s[e.style];n.setAttribute("scriptlevel",o[0]);n.setAttribute("displaystyle",o[1]);return n}});var zi=function e(t,r){var a=t.base;if(!a){return null}else if(a.type==="op"){var i=a.limits&&(r.style.size===L.DISPLAY.size||a.alwaysHandleSupSub);return i?fi:null}else if(a.type==="operatorname"){var n=a.alwaysHandleSupSub&&(r.style.size===L.DISPLAY.size||a.limits);return n?yi:null}else if(a.type==="accent"){return g.isCharacterBox(a.base)?Vr:null}else if(a.type==="horizBrace"){var s=!t.sub;return s===a.isOver?hi:null}else{return null}};$t({type:"supsub",htmlBuilder(e,t){var r=zi(e,t);if(r){return r(e,t)}var{base:a,sup:i,sub:n}=e;var s=hr(a,t);var o;var l;var h=t.fontMetrics();var u=0;var m=0;var c=a&&g.isCharacterBox(a);if(i){var p=t.havingStyle(t.style.sup());o=hr(i,p,t);if(!c){u=s.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier}}if(n){var d=t.havingStyle(t.style.sub());l=hr(n,d,t);if(!c){m=s.depth+d.fontMetrics().subDrop*d.sizeMultiplier/t.sizeMultiplier}}var f;if(t.style===L.DISPLAY){f=h.sup1}else if(t.style.cramped){f=h.sup3}else{f=h.sup2}var v=t.sizeMultiplier;var b=ve(.5/h.ptPerEm/v);var y=null;if(l){var x=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");if(s instanceof Ae||x){y=ve(-s.italic)}}var w;if(o&&l){u=Math.max(u,f,o.depth+.25*h.xHeight);m=Math.max(m,h.sub2);var k=h.defaultRuleThickness;var S=4*k;if(u-o.depth-(l.height-m)0){u+=M;m-=M}}var z=[{type:"elem",elem:l,shift:m,marginRight:b,marginLeft:y},{type:"elem",elem:o,shift:-u,marginRight:b}];w=Vt.makeVList({positionType:"individualShift",children:z},t)}else if(l){m=Math.max(m,h.sub1,l.height-.8*h.xHeight);var A=[{type:"elem",elem:l,marginLeft:y,marginRight:b}];w=Vt.makeVList({positionType:"shift",positionData:m,children:A},t)}else if(o){u=Math.max(u,f,o.depth+.25*h.xHeight);w=Vt.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:o,marginRight:b}]},t)}else{throw new Error("supsub must have either sup or sub.")}var T=or(s,"right")||"mord";return Vt.makeSpan([T],[s,Vt.makeSpan(["msupsub"],[w])],t)},mathmlBuilder(e,t){var r=false;var a;var i;if(e.base&&e.base.type==="horizBrace"){i=!!e.sup;if(i===e.base.isOver){r=true;a=e.base.isOver}}if(e.base&&(e.base.type==="op"||e.base.type==="operatorname")){e.base.parentIsSupSub=true}var n=[Sr(e.base,t)];if(e.sub){n.push(Sr(e.sub,t))}if(e.sup){n.push(Sr(e.sup,t))}var s;if(r){s=a?"mover":"munder"}else if(!e.sub){var o=e.base;if(o&&o.type==="op"&&o.limits&&(t.style===L.DISPLAY||o.alwaysHandleSupSub)){s="mover"}else if(o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===L.DISPLAY)){s="mover"}else{s="msup"}}else if(!e.sup){var l=e.base;if(l&&l.type==="op"&&l.limits&&(t.style===L.DISPLAY||l.alwaysHandleSupSub)){s="munder"}else if(l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===L.DISPLAY)){s="munder"}else{s="msub"}}else{var h=e.base;if(h&&h.type==="op"&&h.limits&&t.style===L.DISPLAY){s="munderover"}else if(h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(t.style===L.DISPLAY||h.limits)){s="munderover"}else{s="msubsup"}}return new vr.MathNode(s,n)}});$t({type:"atom",htmlBuilder(e,t){return Vt.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new vr.MathNode("mo",[gr(e.text,e.mode)]);if(e.family==="bin"){var a=yr(e,t);if(a==="bold-italic"){r.setAttribute("mathvariant",a)}}else if(e.family==="punct"){r.setAttribute("separator","true")}else if(e.family==="open"||e.family==="close"){r.setAttribute("stretchy","false")}return r}});var Ai={mi:"italic",mn:"normal",mtext:"normal"};$t({type:"mathord",htmlBuilder(e,t){return Vt.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var r=new vr.MathNode("mi",[gr(e.text,e.mode,t)]);var a=yr(e,t)||"italic";if(a!==Ai[r.type]){r.setAttribute("mathvariant",a)}return r}});$t({type:"textord",htmlBuilder(e,t){return Vt.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var r=gr(e.text,e.mode,t);var a=yr(e,t)||"normal";var i;if(e.mode==="text"){i=new vr.MathNode("mtext",[r])}else if(/[0-9]/.test(e.text)){i=new vr.MathNode("mn",[r])}else if(e.text==="\\prime"){i=new vr.MathNode("mo",[r])}else{i=new vr.MathNode("mi",[r])}if(a!==Ai[i.type]){i.setAttribute("mathvariant",a)}return i}});var Ti={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"};var Bi={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};$t({type:"spacing",htmlBuilder(e,t){if(Bi.hasOwnProperty(e.text)){var r=Bi[e.text].className||"";if(e.mode==="text"){var a=Vt.makeOrd(e,t,"textord");a.classes.push(r);return a}else{return Vt.makeSpan(["mspace",r],[Vt.mathsym(e.text,e.mode,t)],t)}}else if(Ti.hasOwnProperty(e.text)){return Vt.makeSpan(["mspace",Ti[e.text]],[],t)}else{throw new n('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(Bi.hasOwnProperty(e.text)){r=new vr.MathNode("mtext",[new vr.TextNode(" ")])}else if(Ti.hasOwnProperty(e.text)){return new vr.MathNode("mspace")}else{throw new n('Unknown type of space "'+e.text+'"')}return r}});var Ci=()=>{var e=new vr.MathNode("mtd",[]);e.setAttribute("width","50%");return e};$t({type:"tag",mathmlBuilder(e,t){var r=new vr.MathNode("mtable",[new vr.MathNode("mtr",[Ci(),new vr.MathNode("mtd",[kr(e.body,t)]),Ci(),new vr.MathNode("mtd",[kr(e.tag,t)])])]);r.setAttribute("width","100%");return r}});var Ni={"\\text":undefined,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"};var qi={"\\textbf":"textbf","\\textmd":"textmd"};var Ii={"\\textit":"textit","\\textup":"textup"};var Ri=(e,t)=>{var r=e.font;if(!r){return t}else if(Ni[r]){return t.withTextFontFamily(Ni[r])}else if(qi[r]){return t.withTextFontWeight(qi[r])}else if(r==="\\emph"){return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}return t.withTextFontShape(Ii[r])};jt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:true,allowedInText:true},handler(e,t){var{parser:r,funcName:a}=e;var i=t[0];return{type:"text",mode:r.mode,body:Kt(i),font:a}},htmlBuilder(e,t){var r=Ri(e,t);var a=ar(e.body,r,true);return Vt.makeSpan(["mord","text"],a,r)},mathmlBuilder(e,t){var r=Ri(e,t);return kr(e.body,r)}});jt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:true},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=hr(e.body,t);var a=Vt.makeLineSpan("underline-line",t);var i=t.fontMetrics().defaultRuleThickness;var n=Vt.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:a},{type:"kern",size:3*i},{type:"elem",elem:r}]},t);return Vt.makeSpan(["mord","underline"],[n],t)},mathmlBuilder(e,t){var r=new vr.MathNode("mo",[new vr.TextNode("‾")]);r.setAttribute("stretchy","true");var a=new vr.MathNode("munder",[Sr(e.body,t),r]);a.setAttribute("accentunder","true");return a}});jt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:false},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=hr(e.body,t);var a=t.fontMetrics().axisHeight;var i=.5*(r.height-a-(r.depth+a));return Vt.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){return new vr.MathNode("mpadded",[Sr(e.body,t)],["vcenter"])}});jt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:true},handler(e,t,r){throw new n("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){var r=Hi(e);var a=[];var i=t.havingStyle(t.style.text());for(var n=0;ne.body.replace(/ /g,e.star?"␣":" ");var Oi=Xt;var Ei="[ \r\n\t]";var Li="\\\\[a-zA-Z@]+";var Di="\\\\[^\ud800-\udfff]";var Vi="("+Li+")"+Ei+"*";var Pi="\\\\(\n|[ \r\t]+\n?)[ \r\t]*";var Fi="[̀-ͯ]";var Gi=new RegExp(Fi+"+$");var Ui="("+Ei+"+)|"+(Pi+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Fi+"*")+"|[\ud800-\udbff][\udc00-\udfff]"+(Fi+"*")+"|\\\\verb\\*([^]).*?\\4"+"|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Vi)+("|"+Di+")");class Yi{constructor(e,t){this.input=void 0;this.settings=void 0;this.tokenRegex=void 0;this.catcodes=void 0;this.input=e;this.settings=t;this.tokenRegex=new RegExp(Ui,"g");this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input;var t=this.tokenRegex.lastIndex;if(t===e.length){return new i("EOF",new a(this,t,t))}var r=this.tokenRegex.exec(e);if(r===null||r.index!==t){throw new n("Unexpected character: '"+e[t]+"'",new i(e[t],new a(this,t,t+1)))}var s=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[s]===14){var o=e.indexOf("\n",this.tokenRegex.lastIndex);if(o===-1){this.tokenRegex.lastIndex=e.length;this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would "+"fail because of commenting the end of math mode (e.g. $)")}else{this.tokenRegex.lastIndex=o+1}return this.lex()}return new i(s,new a(this,t,this.tokenRegex.lastIndex))}}class Xi{constructor(e,t){if(e===void 0){e={}}if(t===void 0){t={}}this.current=void 0;this.builtins=void 0;this.undefStack=void 0;this.current=t;this.builtins=e;this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0){throw new n("Unbalanced namespace destruction: attempt "+"to pop global namespace; please report this as a bug")}var e=this.undefStack.pop();for(var t in e){if(e.hasOwnProperty(t)){if(e[t]==null){delete this.current[t]}else{this.current[t]=e[t]}}}}endGroups(){while(this.undefStack.length>0){this.endGroup()}}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){if(this.current.hasOwnProperty(e)){return this.current[e]}else{return this.builtins[e]}}set(e,t,r){if(r===void 0){r=false}if(r){for(var a=0;a0){this.undefStack[this.undefStack.length-1][e]=t}}else{var i=this.undefStack[this.undefStack.length-1];if(i&&!i.hasOwnProperty(e)){i[e]=this.current[e]}}if(t==null){delete this.current[e]}else{this.current[e]=t}}}var Wi=Ua;Ya("\\noexpand",(function(e){var t=e.popToken();if(e.isExpandable(t.text)){t.noexpand=true;t.treatAsRelax=true}return{tokens:[t],numArgs:0}}));Ya("\\expandafter",(function(e){var t=e.popToken();e.expandOnce(true);return{tokens:[t],numArgs:0}}));Ya("\\@firstoftwo",(function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}}));Ya("\\@secondoftwo",(function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}}));Ya("\\@ifnextchar",(function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();if(t[0].length===1&&t[0][0].text===r.text){return{tokens:t[1],numArgs:0}}else{return{tokens:t[2],numArgs:0}}}));Ya("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");Ya("\\TextOrMath",(function(e){var t=e.consumeArgs(2);if(e.mode==="text"){return{tokens:t[0],numArgs:0}}else{return{tokens:t[1],numArgs:0}}}));var _i={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Ya("\\char",(function(e){var t=e.popToken();var r;var a="";if(t.text==="'"){r=8;t=e.popToken()}else if(t.text==='"'){r=16;t=e.popToken()}else if(t.text==="`"){t=e.popToken();if(t.text[0]==="\\"){a=t.text.charCodeAt(1)}else if(t.text==="EOF"){throw new n("\\char` missing argument")}else{a=t.text.charCodeAt(0)}}else{r=10}if(r){a=_i[t.text];if(a==null||a>=r){throw new n("Invalid base-"+r+" digit "+t.text)}var i;while((i=_i[e.future().text])!=null&&i{var i=e.consumeArg().tokens;if(i.length!==1){throw new n("\\newcommand's first argument must be a macro name")}var s=i[0].text;var o=e.isDefined(s);if(o&&!t){throw new n("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"))}if(!o&&!r){throw new n("\\renewcommand{"+s+"} when command "+s+" "+"does not yet exist; use \\newcommand")}var l=0;i=e.consumeArg().tokens;if(i.length===1&&i[0].text==="["){var h="";var u=e.expandNextToken();while(u.text!=="]"&&u.text!=="EOF"){h+=u.text;u=e.expandNextToken()}if(!h.match(/^\s*[0-9]+\s*$/)){throw new n("Invalid number of arguments: "+h)}l=parseInt(h);i=e.consumeArg().tokens}if(!(o&&a)){e.macros.set(s,{tokens:i,numArgs:l})}return""};Ya("\\newcommand",(e=>ji(e,false,true,false)));Ya("\\renewcommand",(e=>ji(e,true,false,false)));Ya("\\providecommand",(e=>ji(e,true,true,true)));Ya("\\message",(e=>{var t=e.consumeArgs(1)[0];console.log(t.reverse().map((e=>e.text)).join(""));return""}));Ya("\\errmessage",(e=>{var t=e.consumeArgs(1)[0];console.error(t.reverse().map((e=>e.text)).join(""));return""}));Ya("\\show",(e=>{var t=e.popToken();var r=t.text;console.log(t,e.macros.get(r),Oi[r],He.math[r],He.text[r]);return""}));Ya("\\bgroup","{");Ya("\\egroup","}");Ya("~","\\nobreakspace");Ya("\\lq","`");Ya("\\rq","'");Ya("\\aa","\\r a");Ya("\\AA","\\r A");Ya("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");Ya("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");Ya("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");Ya("ℬ","\\mathscr{B}");Ya("ℰ","\\mathscr{E}");Ya("ℱ","\\mathscr{F}");Ya("ℋ","\\mathscr{H}");Ya("ℐ","\\mathscr{I}");Ya("ℒ","\\mathscr{L}");Ya("ℳ","\\mathscr{M}");Ya("ℛ","\\mathscr{R}");Ya("ℭ","\\mathfrak{C}");Ya("ℌ","\\mathfrak{H}");Ya("ℨ","\\mathfrak{Z}");Ya("\\Bbbk","\\Bbb{k}");Ya("·","\\cdotp");Ya("\\llap","\\mathllap{\\textrm{#1}}");Ya("\\rlap","\\mathrlap{\\textrm{#1}}");Ya("\\clap","\\mathclap{\\textrm{#1}}");Ya("\\mathstrut","\\vphantom{(}");Ya("\\underbar","\\underline{\\text{#1}}");Ya("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');Ya("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");Ya("\\ne","\\neq");Ya("≠","\\neq");Ya("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}"+"{\\mathrel{\\char`∉}}");Ya("∉","\\notin");Ya("≘","\\html@mathml{"+"\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}"+"}{\\mathrel{\\char`≘}}");Ya("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");Ya("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");Ya("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}"+"{\\mathrel{\\char`≛}}");Ya("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}"+"{\\mathrel{\\char`≝}}");Ya("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}"+"{\\mathrel{\\char`≞}}");Ya("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");Ya("⟂","\\perp");Ya("‼","\\mathclose{!\\mkern-0.8mu!}");Ya("∌","\\notni");Ya("⌜","\\ulcorner");Ya("⌝","\\urcorner");Ya("⌞","\\llcorner");Ya("⌟","\\lrcorner");Ya("©","\\copyright");Ya("®","\\textregistered");Ya("️","\\textregistered");Ya("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');Ya("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');Ya("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');Ya("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');Ya("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");Ya("⋮","\\vdots");Ya("\\varGamma","\\mathit{\\Gamma}");Ya("\\varDelta","\\mathit{\\Delta}");Ya("\\varTheta","\\mathit{\\Theta}");Ya("\\varLambda","\\mathit{\\Lambda}");Ya("\\varXi","\\mathit{\\Xi}");Ya("\\varPi","\\mathit{\\Pi}");Ya("\\varSigma","\\mathit{\\Sigma}");Ya("\\varUpsilon","\\mathit{\\Upsilon}");Ya("\\varPhi","\\mathit{\\Phi}");Ya("\\varPsi","\\mathit{\\Psi}");Ya("\\varOmega","\\mathit{\\Omega}");Ya("\\substack","\\begin{subarray}{c}#1\\end{subarray}");Ya("\\colon","\\nobreak\\mskip2mu\\mathpunct{}"+"\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");Ya("\\boxed","\\fbox{$\\displaystyle{#1}$}");Ya("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");Ya("\\implies","\\DOTSB\\;\\Longrightarrow\\;");Ya("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");Ya("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");Ya("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var $i={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Ya("\\dots",(function(e){var t="\\dotso";var r=e.expandAfterFuture().text;if(r in $i){t=$i[r]}else if(r.slice(0,4)==="\\not"){t="\\dotsb"}else if(r in He.math){if(g.contains(["bin","rel"],He.math[r].group)){t="\\dotsb"}}return t}));var Zi={")":true,"]":true,"\\rbrack":true,"\\}":true,"\\rbrace":true,"\\rangle":true,"\\rceil":true,"\\rfloor":true,"\\rgroup":true,"\\rmoustache":true,"\\right":true,"\\bigr":true,"\\biggr":true,"\\Bigr":true,"\\Biggr":true,$:true,";":true,".":true,",":true};Ya("\\dotso",(function(e){var t=e.future().text;if(t in Zi){return"\\ldots\\,"}else{return"\\ldots"}}));Ya("\\dotsc",(function(e){var t=e.future().text;if(t in Zi&&t!==","){return"\\ldots\\,"}else{return"\\ldots"}}));Ya("\\cdots",(function(e){var t=e.future().text;if(t in Zi){return"\\@cdots\\,"}else{return"\\@cdots"}}));Ya("\\dotsb","\\cdots");Ya("\\dotsm","\\cdots");Ya("\\dotsi","\\!\\cdots");Ya("\\dotsx","\\ldots\\,");Ya("\\DOTSI","\\relax");Ya("\\DOTSB","\\relax");Ya("\\DOTSX","\\relax");Ya("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");Ya("\\,","\\tmspace+{3mu}{.1667em}");Ya("\\thinspace","\\,");Ya("\\>","\\mskip{4mu}");Ya("\\:","\\tmspace+{4mu}{.2222em}");Ya("\\medspace","\\:");Ya("\\;","\\tmspace+{5mu}{.2777em}");Ya("\\thickspace","\\;");Ya("\\!","\\tmspace-{3mu}{.1667em}");Ya("\\negthinspace","\\!");Ya("\\negmedspace","\\tmspace-{4mu}{.2222em}");Ya("\\negthickspace","\\tmspace-{5mu}{.277em}");Ya("\\enspace","\\kern.5em ");Ya("\\enskip","\\hskip.5em\\relax");Ya("\\quad","\\hskip1em\\relax");Ya("\\qquad","\\hskip2em\\relax");Ya("\\tag","\\@ifstar\\tag@literal\\tag@paren");Ya("\\tag@paren","\\tag@literal{({#1})}");Ya("\\tag@literal",(e=>{if(e.macros.get("\\df@tag")){throw new n("Multiple \\tag")}return"\\gdef\\df@tag{\\text{#1}}"}));Ya("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"+"\\mathbin{\\rm mod}"+"\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");Ya("\\pod","\\allowbreak"+"\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");Ya("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");Ya("\\mod","\\allowbreak"+"\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}"+"{\\rm mod}\\,\\,#1");Ya("\\newline","\\\\\\relax");Ya("\\TeX","\\textrm{\\html@mathml{"+"T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX"+"}{TeX}}");var Ki=ve(te["Main-Regular"]["T".charCodeAt(0)][1]-.7*te["Main-Regular"]["A".charCodeAt(0)][1]);Ya("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Ki+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");Ya("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Ki+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");Ya("\\hspace","\\@ifstar\\@hspacer\\@hspace");Ya("\\@hspace","\\hskip #1\\relax");Ya("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");Ya("\\ordinarycolon",":");Ya("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");Ya("\\dblcolon","\\html@mathml{"+"\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}"+'{\\mathop{\\char"2237}}');Ya("\\coloneqq","\\html@mathml{"+"\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}"+'{\\mathop{\\char"2254}}');Ya("\\Coloneqq","\\html@mathml{"+"\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}"+'{\\mathop{\\char"2237\\char"3d}}');Ya("\\coloneq","\\html@mathml{"+"\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}"+'{\\mathop{\\char"3a\\char"2212}}');Ya("\\Coloneq","\\html@mathml{"+"\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}"+'{\\mathop{\\char"2237\\char"2212}}');Ya("\\eqqcolon","\\html@mathml{"+"\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}"+'{\\mathop{\\char"2255}}');Ya("\\Eqqcolon","\\html@mathml{"+"\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}"+'{\\mathop{\\char"3d\\char"2237}}');Ya("\\eqcolon","\\html@mathml{"+"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}"+'{\\mathop{\\char"2239}}');Ya("\\Eqcolon","\\html@mathml{"+"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}"+'{\\mathop{\\char"2212\\char"2237}}');Ya("\\colonapprox","\\html@mathml{"+"\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}"+'{\\mathop{\\char"3a\\char"2248}}');Ya("\\Colonapprox","\\html@mathml{"+"\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}"+'{\\mathop{\\char"2237\\char"2248}}');Ya("\\colonsim","\\html@mathml{"+"\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}"+'{\\mathop{\\char"3a\\char"223c}}');Ya("\\Colonsim","\\html@mathml{"+"\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}"+'{\\mathop{\\char"2237\\char"223c}}');Ya("∷","\\dblcolon");Ya("∹","\\eqcolon");Ya("≔","\\coloneqq");Ya("≕","\\eqqcolon");Ya("⩴","\\Coloneqq");Ya("\\ratio","\\vcentcolon");Ya("\\coloncolon","\\dblcolon");Ya("\\colonequals","\\coloneqq");Ya("\\coloncolonequals","\\Coloneqq");Ya("\\equalscolon","\\eqqcolon");Ya("\\equalscoloncolon","\\Eqqcolon");Ya("\\colonminus","\\coloneq");Ya("\\coloncolonminus","\\Coloneq");Ya("\\minuscolon","\\eqcolon");Ya("\\minuscoloncolon","\\Eqcolon");Ya("\\coloncolonapprox","\\Colonapprox");Ya("\\coloncolonsim","\\Colonsim");Ya("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Ya("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");Ya("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Ya("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");Ya("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");Ya("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");Ya("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");Ya("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");Ya("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");Ya("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");Ya("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");Ya("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");Ya("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");Ya("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");Ya("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");Ya("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");Ya("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");Ya("\\nleqq","\\html@mathml{\\@nleqq}{≰}");Ya("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");Ya("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");Ya("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");Ya("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");Ya("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");Ya("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");Ya("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");Ya("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");Ya("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");Ya("\\imath","\\html@mathml{\\@imath}{ı}");Ya("\\jmath","\\html@mathml{\\@jmath}{ȷ}");Ya("\\llbracket","\\html@mathml{"+"\\mathopen{[\\mkern-3.2mu[}}"+"{\\mathopen{\\char`⟦}}");Ya("\\rrbracket","\\html@mathml{"+"\\mathclose{]\\mkern-3.2mu]}}"+"{\\mathclose{\\char`⟧}}");Ya("⟦","\\llbracket");Ya("⟧","\\rrbracket");Ya("\\lBrace","\\html@mathml{"+"\\mathopen{\\{\\mkern-3.2mu[}}"+"{\\mathopen{\\char`⦃}}");Ya("\\rBrace","\\html@mathml{"+"\\mathclose{]\\mkern-3.2mu\\}}}"+"{\\mathclose{\\char`⦄}}");Ya("⦃","\\lBrace");Ya("⦄","\\rBrace");Ya("\\minuso","\\mathbin{\\html@mathml{"+"{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}"+"{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}"+"{\\char`⦵}}");Ya("⦵","\\minuso");Ya("\\darr","\\downarrow");Ya("\\dArr","\\Downarrow");Ya("\\Darr","\\Downarrow");Ya("\\lang","\\langle");Ya("\\rang","\\rangle");Ya("\\uarr","\\uparrow");Ya("\\uArr","\\Uparrow");Ya("\\Uarr","\\Uparrow");Ya("\\N","\\mathbb{N}");Ya("\\R","\\mathbb{R}");Ya("\\Z","\\mathbb{Z}");Ya("\\alef","\\aleph");Ya("\\alefsym","\\aleph");Ya("\\Alpha","\\mathrm{A}");Ya("\\Beta","\\mathrm{B}");Ya("\\bull","\\bullet");Ya("\\Chi","\\mathrm{X}");Ya("\\clubs","\\clubsuit");Ya("\\cnums","\\mathbb{C}");Ya("\\Complex","\\mathbb{C}");Ya("\\Dagger","\\ddagger");Ya("\\diamonds","\\diamondsuit");Ya("\\empty","\\emptyset");Ya("\\Epsilon","\\mathrm{E}");Ya("\\Eta","\\mathrm{H}");Ya("\\exist","\\exists");Ya("\\harr","\\leftrightarrow");Ya("\\hArr","\\Leftrightarrow");Ya("\\Harr","\\Leftrightarrow");Ya("\\hearts","\\heartsuit");Ya("\\image","\\Im");Ya("\\infin","\\infty");Ya("\\Iota","\\mathrm{I}");Ya("\\isin","\\in");Ya("\\Kappa","\\mathrm{K}");Ya("\\larr","\\leftarrow");Ya("\\lArr","\\Leftarrow");Ya("\\Larr","\\Leftarrow");Ya("\\lrarr","\\leftrightarrow");Ya("\\lrArr","\\Leftrightarrow");Ya("\\Lrarr","\\Leftrightarrow");Ya("\\Mu","\\mathrm{M}");Ya("\\natnums","\\mathbb{N}");Ya("\\Nu","\\mathrm{N}");Ya("\\Omicron","\\mathrm{O}");Ya("\\plusmn","\\pm");Ya("\\rarr","\\rightarrow");Ya("\\rArr","\\Rightarrow");Ya("\\Rarr","\\Rightarrow");Ya("\\real","\\Re");Ya("\\reals","\\mathbb{R}");Ya("\\Reals","\\mathbb{R}");Ya("\\Rho","\\mathrm{P}");Ya("\\sdot","\\cdot");Ya("\\sect","\\S");Ya("\\spades","\\spadesuit");Ya("\\sub","\\subset");Ya("\\sube","\\subseteq");Ya("\\supe","\\supseteq");Ya("\\Tau","\\mathrm{T}");Ya("\\thetasym","\\vartheta");Ya("\\weierp","\\wp");Ya("\\Zeta","\\mathrm{Z}");Ya("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");Ya("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");Ya("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");Ya("\\bra","\\mathinner{\\langle{#1}|}");Ya("\\ket","\\mathinner{|{#1}\\rangle}");Ya("\\braket","\\mathinner{\\langle{#1}\\rangle}");Ya("\\Bra","\\left\\langle#1\\right|");Ya("\\Ket","\\left|#1\\right\\rangle");var Ji=e=>t=>{var r=t.consumeArg().tokens;var a=t.consumeArg().tokens;var i=t.consumeArg().tokens;var n=t.consumeArg().tokens;var s=t.macros.get("|");var o=t.macros.get("\\|");t.macros.beginGroup();var l=t=>r=>{if(e){r.macros.set("|",s);if(i.length){r.macros.set("\\|",o)}}var n=t;if(!t&&i.length){var l=r.future();if(l.text==="|"){r.popToken();n=true}}return{tokens:n?i:a,numArgs:0}};t.macros.set("|",l(false));if(i.length){t.macros.set("\\|",l(true))}var h=t.consumeArg().tokens;var u=t.expandTokens([...n,...h,...r]);t.macros.endGroup();return{tokens:u.reverse(),numArgs:0}};Ya("\\bra@ket",Ji(false));Ya("\\bra@set",Ji(true));Ya("\\Braket","\\bra@ket{\\left\\langle}"+"{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");Ya("\\Set","\\bra@set{\\left\\{\\:}"+"{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");Ya("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");Ya("\\angln","{\\angl n}");Ya("\\blue","\\textcolor{##6495ed}{#1}");Ya("\\orange","\\textcolor{##ffa500}{#1}");Ya("\\pink","\\textcolor{##ff00af}{#1}");Ya("\\red","\\textcolor{##df0030}{#1}");Ya("\\green","\\textcolor{##28ae7b}{#1}");Ya("\\gray","\\textcolor{gray}{#1}");Ya("\\purple","\\textcolor{##9d38bd}{#1}");Ya("\\blueA","\\textcolor{##ccfaff}{#1}");Ya("\\blueB","\\textcolor{##80f6ff}{#1}");Ya("\\blueC","\\textcolor{##63d9ea}{#1}");Ya("\\blueD","\\textcolor{##11accd}{#1}");Ya("\\blueE","\\textcolor{##0c7f99}{#1}");Ya("\\tealA","\\textcolor{##94fff5}{#1}");Ya("\\tealB","\\textcolor{##26edd5}{#1}");Ya("\\tealC","\\textcolor{##01d1c1}{#1}");Ya("\\tealD","\\textcolor{##01a995}{#1}");Ya("\\tealE","\\textcolor{##208170}{#1}");Ya("\\greenA","\\textcolor{##b6ffb0}{#1}");Ya("\\greenB","\\textcolor{##8af281}{#1}");Ya("\\greenC","\\textcolor{##74cf70}{#1}");Ya("\\greenD","\\textcolor{##1fab54}{#1}");Ya("\\greenE","\\textcolor{##0d923f}{#1}");Ya("\\goldA","\\textcolor{##ffd0a9}{#1}");Ya("\\goldB","\\textcolor{##ffbb71}{#1}");Ya("\\goldC","\\textcolor{##ff9c39}{#1}");Ya("\\goldD","\\textcolor{##e07d10}{#1}");Ya("\\goldE","\\textcolor{##a75a05}{#1}");Ya("\\redA","\\textcolor{##fca9a9}{#1}");Ya("\\redB","\\textcolor{##ff8482}{#1}");Ya("\\redC","\\textcolor{##f9685d}{#1}");Ya("\\redD","\\textcolor{##e84d39}{#1}");Ya("\\redE","\\textcolor{##bc2612}{#1}");Ya("\\maroonA","\\textcolor{##ffbde0}{#1}");Ya("\\maroonB","\\textcolor{##ff92c6}{#1}");Ya("\\maroonC","\\textcolor{##ed5fa6}{#1}");Ya("\\maroonD","\\textcolor{##ca337c}{#1}");Ya("\\maroonE","\\textcolor{##9e034e}{#1}");Ya("\\purpleA","\\textcolor{##ddd7ff}{#1}");Ya("\\purpleB","\\textcolor{##c6b9fc}{#1}");Ya("\\purpleC","\\textcolor{##aa87ff}{#1}");Ya("\\purpleD","\\textcolor{##7854ab}{#1}");Ya("\\purpleE","\\textcolor{##543b78}{#1}");Ya("\\mintA","\\textcolor{##f5f9e8}{#1}");Ya("\\mintB","\\textcolor{##edf2df}{#1}");Ya("\\mintC","\\textcolor{##e0e5cc}{#1}");Ya("\\grayA","\\textcolor{##f6f7f7}{#1}");Ya("\\grayB","\\textcolor{##f0f1f2}{#1}");Ya("\\grayC","\\textcolor{##e3e5e6}{#1}");Ya("\\grayD","\\textcolor{##d6d8da}{#1}");Ya("\\grayE","\\textcolor{##babec2}{#1}");Ya("\\grayF","\\textcolor{##888d93}{#1}");Ya("\\grayG","\\textcolor{##626569}{#1}");Ya("\\grayH","\\textcolor{##3b3e40}{#1}");Ya("\\grayI","\\textcolor{##21242c}{#1}");Ya("\\kaBlue","\\textcolor{##314453}{#1}");Ya("\\kaGreen","\\textcolor{##71B307}{#1}");var Qi={"^":true,_:true,"\\limits":true,"\\nolimits":true};class en{constructor(e,t,r){this.settings=void 0;this.expansionCount=void 0;this.lexer=void 0;this.macros=void 0;this.stack=void 0;this.mode=void 0;this.settings=t;this.expansionCount=0;this.feed(e);this.macros=new Xi(Wi,t.macros);this.mode=r;this.stack=[]}feed(e){this.lexer=new Yi(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){if(this.stack.length===0){this.pushToken(this.lexer.lex())}return this.stack[this.stack.length-1]}popToken(){this.future();return this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t;var r;var a;if(e){this.consumeSpaces();if(this.future().text!=="["){return null}t=this.popToken();({tokens:a,end:r}=this.consumeArg(["]"]))}else{({tokens:a,start:t,end:r}=this.consumeArg())}this.pushToken(new i("EOF",r.loc));this.pushTokens(a);return t.range(r,"")}consumeSpaces(){for(;;){var e=this.future();if(e.text===" "){this.stack.pop()}else{break}}}consumeArg(e){var t=[];var r=e&&e.length>0;if(!r){this.consumeSpaces()}var a=this.future();var i;var s=0;var o=0;do{i=this.popToken();t.push(i);if(i.text==="{"){++s}else if(i.text==="}"){--s;if(s===-1){throw new n("Extra }",i)}}else if(i.text==="EOF"){throw new n("Unexpected end of input in a macro argument"+", expected '"+(e&&r?e[o]:"}")+"'",i)}if(e&&r){if((s===0||s===1&&e[o]==="{")&&i.text===e[o]){++o;if(o===e.length){t.splice(-o,o);break}}else{o=0}}}while(s!==0||r);if(a.text==="{"&&t[t.length-1].text==="}"){t.pop();t.shift()}t.reverse();return{tokens:t,start:a,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1){throw new n("The length of delimiters doesn't match the number of args!")}var r=t[0];for(var a=0;athis.settings.maxExpand){throw new n("Too many expansions: infinite loop or "+"need to increase maxExpand setting")}}expandOnce(e){var t=this.popToken();var r=t.text;var a=!t.noexpand?this._getExpansion(r):null;if(a==null||e&&a.unexpandable){if(e&&a==null&&r[0]==="\\"&&!this.isDefined(r)){throw new n("Undefined control sequence: "+r)}this.pushToken(t);return false}this.countExpansion(1);var i=a.tokens;var s=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var l=i[o];if(l.text==="#"){if(o===0){throw new n("Incomplete placeholder at end of macro body",l)}l=i[--o];if(l.text==="#"){i.splice(o+1,1)}else if(/^[1-9]$/.test(l.text)){i.splice(o,2,...s[+l.text-1])}else{throw new n("Not a valid argument number",l)}}}}this.pushTokens(i);return i.length}expandAfterFuture(){this.expandOnce();return this.future()}expandNextToken(){for(;;){if(this.expandOnce()===false){var e=this.stack.pop();if(e.treatAsRelax){e.text="\\relax"}return e}}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new i(e)]):undefined}expandTokens(e){var t=[];var r=this.stack.length;this.pushTokens(e);while(this.stack.length>r){if(this.expandOnce(true)===false){var a=this.stack.pop();if(a.treatAsRelax){a.noexpand=false;a.treatAsRelax=false}t.push(a)}}this.countExpansion(t.length);return t}expandMacroAsText(e){var t=this.expandMacro(e);if(t){return t.map((e=>e.text)).join("")}else{return t}}_getExpansion(e){var t=this.macros.get(e);if(t==null){return t}if(e.length===1){var r=this.lexer.catcodes[e];if(r!=null&&r!==13){return}}var a=typeof t==="function"?t(this):t;if(typeof a==="string"){var i=0;if(a.indexOf("#")!==-1){var n=a.replace(/##/g,"");while(n.indexOf("#"+(i+1))!==-1){++i}}var s=new Yi(a,this.settings);var o=[];var l=s.lex();while(l.text!=="EOF"){o.push(l);l=s.lex()}o.reverse();var h={tokens:o,numArgs:i};return h}return a}isDefined(e){return this.macros.has(e)||Oi.hasOwnProperty(e)||He.math.hasOwnProperty(e)||He.text.hasOwnProperty(e)||Qi.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t!=null?typeof t==="string"||typeof t==="function"||!t.unexpandable:Oi.hasOwnProperty(e)&&!Oi[e].primitive}}var tn=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/;var rn=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"});var an={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}};var nn={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};class sn{constructor(e,t){this.mode=void 0;this.gullet=void 0;this.settings=void 0;this.leftrightDepth=void 0;this.nextToken=void 0;this.mode="math";this.gullet=new en(e,t,this.mode);this.settings=t;this.leftrightDepth=0}expect(e,t){if(t===void 0){t=true}if(this.fetch().text!==e){throw new n("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch())}if(t){this.consume()}}consume(){this.nextToken=null}fetch(){if(this.nextToken==null){this.nextToken=this.gullet.expandNextToken()}return this.nextToken}switchMode(e){this.mode=e;this.gullet.switchMode(e)}parse(){if(!this.settings.globalGroup){this.gullet.beginGroup()}if(this.settings.colorIsTextColor){this.gullet.macros.set("\\color","\\textcolor")}try{var e=this.parseExpression(false);this.expect("EOF");if(!this.settings.globalGroup){this.gullet.endGroup()}return e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume();this.gullet.pushToken(new i("}"));this.gullet.pushTokens(e);var r=this.parseExpression(false);this.expect("}");this.nextToken=t;return r}parseExpression(e,t){var r=[];while(true){if(this.mode==="math"){this.consumeSpaces()}var a=this.fetch();if(sn.endOfExpression.indexOf(a.text)!==-1){break}if(t&&a.text===t){break}if(e&&Oi[a.text]&&Oi[a.text].infix){break}var i=this.parseAtom(t);if(!i){break}else if(i.type==="internal"){continue}r.push(i)}if(this.mode==="text"){this.formLigatures(r)}return this.handleInfixNodes(r)}handleInfixNodes(e){var t=-1;var r;for(var a=0;a=0){this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in '+"math mode",e)}var l=He[this.mode][t].group;var h=a.range(e);var u;if(Ie.hasOwnProperty(l)){var m=l;u={type:"atom",mode:this.mode,family:m,loc:h,text:t}}else{u={type:l,mode:this.mode,loc:h,text:t}}o=u}else if(t.charCodeAt(0)>=128){if(this.settings.strict){if(!F(t.charCodeAt(0))){this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'"'+(" ("+t.charCodeAt(0)+")"),e)}else if(this.mode==="math"){this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e)}}o={type:"textord",mode:"text",loc:a.range(e),text:t}}else{return null}this.consume();if(s){for(var c=0;c{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/share/jupyter/lab/static/5521.8d4f6dfc471f500e4311.js b/share/jupyter/lab/static/5521.8d4f6dfc471f500e4311.js new file mode 100644 index 0000000..588b227 --- /dev/null +++ b/share/jupyter/lab/static/5521.8d4f6dfc471f500e4311.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5521],{65521:(t,e,s)=>{s.r(e);s.d(e,{YBaseCell:()=>k,YCodeCell:()=>C,YDocument:()=>b,YFile:()=>v,YMarkdownCell:()=>V,YNotebook:()=>D,YRawCell:()=>x,convertYMapEventToMapChange:()=>n,createMutex:()=>a,createStandaloneCell:()=>w});function n(t){let e=new Map;t.changes.keys.forEach(((t,s)=>{e.set(s,{action:t.action,oldValue:t.oldValue,newValue:this.ymeta.get(s)})}));return e}const a=()=>{let t=true;return e=>{if(t){t=false;try{e()}finally{t=true}}}};var o=s(5592);var i=s(2336);var r=s(64191);var d=s(63616);var c=s(5739);var l=s(53110);var u=s(74356);const h=3e4;class g extends c.c{constructor(t){super();this.doc=t;this.clientID=t.clientID;this.states=new Map;this.meta=new Map;this._checkInterval=setInterval((()=>{const t=r._g();if(this.getLocalState()!==null&&h/2<=t-this.meta.get(this.clientID).lastUpdated){this.setLocalState(this.getLocalState())}const e=[];this.meta.forEach(((s,n)=>{if(n!==this.clientID&&h<=t-s.lastUpdated&&this.states.has(n)){e.push(n)}}));if(e.length>0){p(this,e,"timeout")}}),d.RI(h/10));t.on("destroy",(()=>{this.destroy()}));this.setLocalState({})}destroy(){this.emit("destroy",[this]);this.setLocalState(null);super.destroy();clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(t){const e=this.clientID;const s=this.meta.get(e);const n=s===undefined?0:s.clock+1;const a=this.states.get(e);if(t===null){this.states.delete(e)}else{this.states.set(e,t)}this.meta.set(e,{clock:n,lastUpdated:r._g()});const o=[];const i=[];const d=[];const c=[];if(t===null){c.push(e)}else if(a==null){if(t!=null){o.push(e)}}else{i.push(e);if(!l.vo(a,t)){d.push(e)}}if(o.length>0||d.length>0||c.length>0){this.emit("change",[{added:o,updated:d,removed:c},"local"])}this.emit("update",[{added:o,updated:i,removed:c},"local"])}setLocalStateField(t,e){const s=this.getLocalState();if(s!==null){this.setLocalState({...s,[t]:e})}}getStates(){return this.states}}const p=(t,e,s)=>{const n=[];for(let a=0;a0){t.emit("change",[{added:[],updated:[],removed:n},s]);t.emit("update",[{added:[],updated:[],removed:n},s])}};const y=(t,e,s=t.states)=>{const n=e.length;const a=encoding.createEncoder();encoding.writeVarUint(a,n);for(let o=0;o{const s=decoding.createDecoder(t);const n=encoding.createEncoder();const a=decoding.readVarUint(s);encoding.writeVarUint(n,a);for(let o=0;o{const n=decoding.createDecoder(e);const a=time.getUnixTime();const o=[];const i=[];const r=[];const d=[];const c=decoding.readVarUint(n);for(let l=0;l0||r.length>0||d.length>0){t.emit("change",[{added:o,updated:r,removed:d},s])}if(o.length>0||i.length>0||d.length>0){t.emit("update",[{added:o,updated:i,removed:d},s])}};class b{constructor(t){var e;this.onStateChanged=t=>{const e=new Array;t.keysChanged.forEach((s=>{const n=t.changes.keys.get(s);if(n){e.push({name:s,oldValue:n.oldValue,newValue:this.ystate.get(s)})}}));this._changed.emit({stateChange:e})};this._changed=new i.Signal(this);this._isDisposed=false;this._disposed=new i.Signal(this);this._ydoc=(e=t===null||t===void 0?void 0:t.ydoc)!==null&&e!==void 0?e:new u.Doc;this._ystate=this._ydoc.getMap("state");this._undoManager=new u.UndoManager([],{trackedOrigins:new Set([this]),doc:this._ydoc});this._awareness=new g(this._ydoc);this._ystate.observe(this.onStateChanged)}get ydoc(){return this._ydoc}get ystate(){return this._ystate}get undoManager(){return this._undoManager}get awareness(){return this._awareness}get changed(){return this._changed}get disposed(){return this._disposed}get isDisposed(){return this._isDisposed}get state(){return o.JSONExt.deepCopy(this.ystate.toJSON())}canUndo(){return this.undoManager.undoStack.length>0}canRedo(){return this.undoManager.redoStack.length>0}dispose(){if(this._isDisposed){return}this._isDisposed=true;this.ystate.unobserve(this.onStateChanged);this.awareness.destroy();this.undoManager.destroy();this.ydoc.destroy();this._disposed.emit();i.Signal.clearData(this)}getState(t){const e=this.ystate.get(t);return typeof e==="undefined"?e:o.JSONExt.deepCopy(e)}setState(t,e){if(!o.JSONExt.deepEqual(this.ystate.get(t),e)){this.ystate.set(t,e)}}get source(){return this.getSource()}set source(t){this.setSource(t)}undo(){this.undoManager.undo()}redo(){this.undoManager.redo()}clearUndoHistory(){this.undoManager.clear()}transact(t,e=true,s=null){this.ydoc.transact(t,e?this:s)}}class v extends b{constructor(){super();this.version="1.0.0";this.ysource=this.ydoc.getText("source");this._modelObserver=t=>{this._changed.emit({sourceChange:t.changes.delta})};this.undoManager.addToScope(this.ysource);this.ysource.observe(this._modelObserver)}static create(){return new v}get source(){return this.getSource()}set source(t){this.setSource(t)}dispose(){if(this.isDisposed){return}this.ysource.unobserve(this._modelObserver);super.dispose()}getSource(){return this.ysource.toString()}setSource(t){this.transact((()=>{const e=this.ysource;e.delete(0,e.length);e.insert(0,t)}))}updateSource(t,e,s=""){this.transact((()=>{const n=this.ysource;n.insert(t,s);n.delete(t+s.length,e-t)}))}}const S=(t,e={})=>{switch(t.get("cell_type")){case"code":return new C(t,t.get("source"),t.get("outputs"),e);case"markdown":return new V(t,t.get("source"),e);case"raw":return new x(t,t.get("source"),e);default:throw new Error("Found unknown cell type")}};const M=(t,e)=>{var s,n;const a=new u.Map;const i=new u.Text;const r=new u.Map;a.set("source",i);a.set("metadata",r);a.set("cell_type",t.cell_type);a.set("id",(s=t.id)!==null&&s!==void 0?s:o.UUID.uuid4());let d;switch(t.cell_type){case"markdown":{d=new V(a,i,{notebook:e},r);if(t.attachments!=null){d.setAttachments(t.attachments)}break}case"code":{const s=new u.Array;a.set("outputs",s);d=new C(a,i,s,{notebook:e},r);const o=t;d.execution_count=(n=o.execution_count)!==null&&n!==void 0?n:null;if(o.outputs){d.setOutputs(o.outputs)}break}default:{d=new x(a,i,{notebook:e},r);if(t.attachments){d.setAttachments(t.attachments)}break}}if(t.metadata!=null){d.setMetadata(t.metadata)}if(t.source!=null){d.setSource(typeof t.source==="string"?t.source:t.source.join(""))}return d};const w=t=>M(t);class k{static create(t){return M({id:t,cell_type:this.prototype.cell_type})}constructor(t,e,s={},n){this._modelObserver=(t,e)=>{if(e.origin!=="silent-change"){this._changed.emit(this.getChanges(t))}};this._metadataChanged=new i.Signal(this);this._notebook=null;this._changed=new i.Signal(this);this._disposed=new i.Signal(this);this._isDisposed=false;this._undoManager=null;this.ymodel=t;this._ysource=e;this._ymetadata=n!==null&&n!==void 0?n:this.ymodel.get("metadata");this._prevSourceLength=e?e.length:0;this._notebook=null;this._awareness=null;this._undoManager=null;if(s.notebook){this._notebook=s.notebook;if(this._notebook.disableDocumentWideUndoRedo){this._undoManager=new u.UndoManager([this.ymodel],{trackedOrigins:new Set([this]),doc:this._notebook.ydoc})}}else{const t=new u.Doc;t.getArray().insert(0,[this.ymodel]);this._awareness=new g(t);this._undoManager=new u.UndoManager([this.ymodel],{trackedOrigins:new Set([this])})}this.ymodel.observeDeep(this._modelObserver)}get awareness(){var t,e,s;return(s=(t=this._awareness)!==null&&t!==void 0?t:(e=this.notebook)===null||e===void 0?void 0:e.awareness)!==null&&s!==void 0?s:null}get cell_type(){throw new Error("A YBaseCell must not be constructed")}get changed(){return this._changed}get disposed(){return this._disposed}get id(){return this.getId()}get isDisposed(){return this._isDisposed}get isStandalone(){return this._notebook!==null}get metadata(){return this.getMetadata()}set metadata(t){this.setMetadata(t)}get metadataChanged(){return this._metadataChanged}get notebook(){return this._notebook}get source(){return this.getSource()}set source(t){this.setSource(t)}get undoManager(){var t;if(!this.notebook){return this._undoManager}return((t=this.notebook)===null||t===void 0?void 0:t.disableDocumentWideUndoRedo)?this._undoManager:this.notebook.undoManager}get ysource(){return this._ysource}canUndo(){return!!this.undoManager&&this.undoManager.undoStack.length>0}canRedo(){return!!this.undoManager&&this.undoManager.redoStack.length>0}clearUndoHistory(){var t;(t=this.undoManager)===null||t===void 0?void 0:t.clear()}undo(){var t;(t=this.undoManager)===null||t===void 0?void 0:t.undo()}redo(){var t;(t=this.undoManager)===null||t===void 0?void 0:t.redo()}dispose(){var t;if(this._isDisposed)return;this._isDisposed=true;this.ymodel.unobserveDeep(this._modelObserver);if(this._awareness){const t=this._awareness.doc;this._awareness.destroy();t.destroy()}if(this._undoManager){if(this._undoManager===((t=this.notebook)===null||t===void 0?void 0:t.undoManager)){this._undoManager=null}else{this._undoManager.destroy()}}this._disposed.emit();i.Signal.clearData(this)}getId(){return this.ymodel.get("id")}getSource(){return this.ysource.toString()}setSource(t){this.transact((()=>{this.ysource.delete(0,this.ysource.length);this.ysource.insert(0,t)}))}updateSource(t,e,s=""){this.transact((()=>{const n=this.ysource;n.insert(t,s);n.delete(t+s.length,e-t)}))}deleteMetadata(t){if(typeof this.getMetadata(t)==="undefined"){return}this.transact((()=>{this._ymetadata.delete(t);const e=this.getMetadata("jupyter");if(t==="collapsed"&&e){const{outputs_hidden:t,...s}=e;if(Object.keys(s).length===0){this._ymetadata.delete("jupyter")}else{this._ymetadata.set("jupyter",s)}}else if(t==="jupyter"){this._ymetadata.delete("collapsed")}}),false)}getMetadata(t){const e=this._ymetadata;if(e===undefined){return undefined}if(typeof t==="string"){const s=e.get(t);return typeof s==="undefined"?undefined:o.JSONExt.deepCopy(e.get(t))}else{return o.JSONExt.deepCopy(e.toJSON())}}setMetadata(t,e){var s,n;if(typeof t==="string"){if(typeof e==="undefined"){throw new TypeError(`Metadata value for ${t} cannot be 'undefined'; use deleteMetadata.`)}const n=t;if(o.JSONExt.deepEqual((s=this.getMetadata(n))!==null&&s!==void 0?s:null,e)){return}this.transact((()=>{var t;this._ymetadata.set(n,e);if(n==="collapsed"){const s=(t=this.getMetadata("jupyter"))!==null&&t!==void 0?t:{};if(s.outputs_hidden!==e){this.setMetadata("jupyter",{...s,outputs_hidden:e})}}else if(n==="jupyter"){const t=e["outputs_hidden"];if(typeof t!=="undefined"){if(this.getMetadata("collapsed")!==t){this.setMetadata("collapsed",t)}}else{this.deleteMetadata("collapsed")}}}),false)}else{const e=o.JSONExt.deepCopy(t);if(e.collapsed!=null){e.jupyter=e.jupyter||{};e.jupyter.outputs_hidden=e.collapsed}else if(((n=e===null||e===void 0?void 0:e.jupyter)===null||n===void 0?void 0:n.outputs_hidden)!=null){e.collapsed=e.jupyter.outputs_hidden}if(!o.JSONExt.deepEqual(e,this.getMetadata())){this.transact((()=>{for(const[t,s]of Object.entries(e)){this._ymetadata.set(t,s)}}),false)}}}toJSON(){return{id:this.getId(),cell_type:this.cell_type,source:this.getSource(),metadata:this.getMetadata()}}transact(t,e=true,s=null){!this.notebook||this.notebook.disableDocumentWideUndoRedo?this.ymodel.doc==null?t():this.ymodel.doc.transact(t,e?this:s):this.notebook.transact(t,e)}getChanges(t){const e={};const s=t.find((t=>t.target===this.ymodel.get("source")));if(s){e.sourceChange=s.changes.delta}const n=t.find((t=>t.target===this._ymetadata));if(n){e.metadataChange=n.changes.keys;n.changes.keys.forEach(((t,e)=>{switch(t.action){case"add":this._metadataChanged.emit({key:e,newValue:this._ymetadata.get(e),type:"add"});break;case"delete":this._metadataChanged.emit({key:e,oldValue:t.oldValue,type:"remove"});break;case"update":{const s=this._ymetadata.get(e);const n=t.oldValue;let a=true;if(typeof n=="object"&&typeof s=="object"){a=o.JSONExt.deepEqual(n,s)}else{a=n===s}if(!a){this._metadataChanged.emit({key:e,type:"change",oldValue:n,newValue:s})}}break}}))}const a=t.find((t=>t.target===this.ymodel));const i=this.ymodel.get("source");if(a&&a.keysChanged.has("source")){e.sourceChange=[{delete:this._prevSourceLength},{insert:i.toString()}]}this._prevSourceLength=i.length;return e}}class C extends k{static create(t){return super.create(t)}constructor(t,e,s,n={},a){super(t,e,n,a);this._youtputs=s}get cell_type(){return"code"}get execution_count(){return this.ymodel.get("execution_count")||null}set execution_count(t){if(this.ymodel.get("execution_count")!==t){this.transact((()=>{this.ymodel.set("execution_count",t)}),false)}}get executionState(){var t;return(t=this.ymodel.get("execution_state"))!==null&&t!==void 0?t:"idle"}set executionState(t){if(this.ymodel.get("execution_state")!==t){this.transact((()=>{this.ymodel.set("execution_state",t)}),false)}}get outputs(){return this.getOutputs()}set outputs(t){this.setOutputs(t)}get youtputs(){return this._youtputs}getOutputs(){return o.JSONExt.deepCopy(this._youtputs.toJSON())}createOutputs(t){const e=[];for(const s of o.JSONExt.deepCopy(t)){let t;if(s.output_type==="stream"){const{text:e,...n}=s;t=n;const a=new u.Text;let o=e instanceof Array?e.join():e;a.insert(0,o);t["text"]=a}else{t=s}const n=[];for(const[e,s]of Object.entries(t)){n.push([e,s])}const a=new u.Map(n);e.push(a)}return e}setOutputs(t){this.transact((()=>{this._youtputs.delete(0,this._youtputs.length);const e=this.createOutputs(t);this._youtputs.insert(0,e)}),false)}removeStreamOutput(t,e,s=null){this.transact((()=>{const s=this._youtputs.get(t);const n=s.get("text");const a=n.length-e;n.delete(e,a)}),false,s)}appendStreamOutput(t,e,s=null){this.transact((()=>{const s=this._youtputs.get(t);const n=s.get("text");n.insert(n.length,e)}),false,s)}updateOutputs(t,e,s=[],n=null){const a=e{this._youtputs.delete(t,a);const e=this.createOutputs(s);this._youtputs.insert(t,e)}),false,n)}clearOutputs(t=null){this.transact((()=>{this._youtputs.delete(0,this._youtputs.length)}),false,t)}toJSON(){return{...super.toJSON(),outputs:this.getOutputs(),execution_count:this.execution_count}}getChanges(t){const e=super.getChanges(t);const s=t.find((t=>t.path.length===3&&t.path[0]==="outputs"&&t.path[2]==="text"));if(s){e.streamOutputChange=s.changes.delta}const n=t.find((t=>t.target===this.ymodel.get("outputs")));if(n){e.outputsChange=n.changes.delta}const a=t.find((t=>t.target===this.ymodel));if(a&&a.keysChanged.has("execution_count")){const t=a.changes.keys.get("execution_count");e.executionCountChange={oldValue:t.oldValue,newValue:this.ymodel.get("execution_count")}}if(a&&a.keysChanged.has("execution_state")){const t=a.changes.keys.get("execution_state");e.executionStateChange={oldValue:t.oldValue,newValue:this.ymodel.get("execution_state")}}return e}}class O extends k{get attachments(){return this.getAttachments()}set attachments(t){this.setAttachments(t)}getAttachments(){return this.ymodel.get("attachments")}setAttachments(t){this.transact((()=>{if(t==null){this.ymodel.delete("attachments")}else{this.ymodel.set("attachments",t)}}),false)}getChanges(t){const e=super.getChanges(t);const s=t.find((t=>t.target===this.ymodel));if(s&&s.keysChanged.has("attachments")){const t=s.changes.keys.get("attachments");e.attachmentsChange={oldValue:t.oldValue,newValue:this.ymodel.get("attachments")}}return e}}class x extends O{static create(t){return super.create(t)}get cell_type(){return"raw"}toJSON(){return{id:this.getId(),cell_type:"raw",source:this.getSource(),metadata:this.getMetadata(),attachments:this.getAttachments()}}}class V extends O{static create(t){return super.create(t)}get cell_type(){return"markdown"}toJSON(){return{id:this.getId(),cell_type:"markdown",source:this.getSource(),metadata:this.getMetadata(),attachments:this.getAttachments()}}}class D extends b{constructor(t={}){var e;super();this.version="2.0.0";this.ymeta=this.ydoc.getMap("meta");this._onMetaChanged=t=>{const e=t.find((t=>t.target===this.ymeta.get("metadata")));if(e){const t=e.changes.keys;const s=this.ymeta.get("metadata");e.changes.keys.forEach(((t,e)=>{switch(t.action){case"add":this._metadataChanged.emit({key:e,type:"add",newValue:s.get(e)});break;case"delete":this._metadataChanged.emit({key:e,type:"remove",oldValue:t.oldValue});break;case"update":{const n=s.get(e);const a=t.oldValue;let i=true;if(typeof a=="object"&&typeof n=="object"){i=o.JSONExt.deepEqual(a,n)}else{i=a===n}if(!i){this._metadataChanged.emit({key:e,type:"change",oldValue:a,newValue:n})}}break}}));this._changed.emit({metadataChange:t})}const s=t.find((t=>t.target===this.ymeta));if(!s){return}if(s.keysChanged.has("metadata")){const t=s.changes.keys.get("metadata");if((t===null||t===void 0?void 0:t.action)==="add"&&!t.oldValue){const t=new Map;for(const e of Object.keys(this.metadata)){t.set(e,{action:"add",oldValue:undefined});this._metadataChanged.emit({key:e,type:"add",newValue:this.getMetadata(e)})}this._changed.emit({metadataChange:t})}}if(s.keysChanged.has("nbformat")){const t=s.changes.keys.get("nbformat");const e={key:"nbformat",oldValue:(t===null||t===void 0?void 0:t.oldValue)?t.oldValue:undefined,newValue:this.nbformat};this._changed.emit({nbformatChanged:e})}if(s.keysChanged.has("nbformat_minor")){const t=s.changes.keys.get("nbformat_minor");const e={key:"nbformat_minor",oldValue:(t===null||t===void 0?void 0:t.oldValue)?t.oldValue:undefined,newValue:this.nbformat_minor};this._changed.emit({nbformatChanged:e})}};this._onYCellsChanged=t=>{t.changes.added.forEach((t=>{const e=t.content.type;if(!this._ycellMapping.has(e)){const t=S(e,{notebook:this});this._ycellMapping.set(e,t)}}));t.changes.deleted.forEach((t=>{const e=t.content.type;const s=this._ycellMapping.get(e);if(s){s.dispose();this._ycellMapping.delete(e)}}));let e=0;const s=[];t.changes.delta.forEach((t=>{if(t.insert!=null){const n=t.insert.map((t=>this._ycellMapping.get(t)));s.push({insert:n});this.cells.splice(e,0,...n);e+=t.insert.length}else if(t.delete!=null){s.push(t);this.cells.splice(e,t.delete)}else if(t.retain!=null){s.push(t);e+=t.retain}}));this._changed.emit({cellsChange:s})};this._metadataChanged=new i.Signal(this);this._ycells=this.ydoc.getArray("cells");this._ycellMapping=new WeakMap;this._disableDocumentWideUndoRedo=(e=t.disableDocumentWideUndoRedo)!==null&&e!==void 0?e:false;this.cells=this._ycells.toArray().map((t=>{if(!this._ycellMapping.has(t)){this._ycellMapping.set(t,S(t,{notebook:this}))}return this._ycellMapping.get(t)}));this.undoManager.addToScope(this._ycells);this._ycells.observe(this._onYCellsChanged);this.ymeta.observeDeep(this._onMetaChanged)}static create(t={}){var e,s,n,a,o,i,r,d,c;const l=new D({disableDocumentWideUndoRedo:(e=t.disableDocumentWideUndoRedo)!==null&&e!==void 0?e:false});const u={cells:(n=(s=t.data)===null||s===void 0?void 0:s.cells)!==null&&n!==void 0?n:[],nbformat:(o=(a=t.data)===null||a===void 0?void 0:a.nbformat)!==null&&o!==void 0?o:4,nbformat_minor:(r=(i=t.data)===null||i===void 0?void 0:i.nbformat_minor)!==null&&r!==void 0?r:5,metadata:(c=(d=t.data)===null||d===void 0?void 0:d.metadata)!==null&&c!==void 0?c:{}};l.fromJSON(u);return l}get disableDocumentWideUndoRedo(){return this._disableDocumentWideUndoRedo}get metadata(){return this.getMetadata()}set metadata(t){this.setMetadata(t)}get metadataChanged(){return this._metadataChanged}get nbformat(){return this.ymeta.get("nbformat")}set nbformat(t){this.transact((()=>{this.ymeta.set("nbformat",t)}),false)}get nbformat_minor(){return this.ymeta.get("nbformat_minor")}set nbformat_minor(t){this.transact((()=>{this.ymeta.set("nbformat_minor",t)}),false)}dispose(){if(this.isDisposed){return}this._ycells.unobserve(this._onYCellsChanged);this.ymeta.unobserveDeep(this._onMetaChanged);super.dispose()}getCell(t){return this.cells[t]}addCell(t){return this.insertCell(this._ycells.length,t)}insertCell(t,e){return this.insertCells(t,[e])[0]}insertCells(t,e){const s=e.map((t=>{const e=M(t,this);this._ycellMapping.set(e.ymodel,e);return e}));this.transact((()=>{this._ycells.insert(t,s.map((t=>t.ymodel)))}));return s}moveCell(t,e){this.moveCells(t,e)}moveCells(t,e,s=1){const n=new Array(s).fill(true).map(((e,s)=>this.getCell(t+s).toJSON()));this.transact((()=>{this._ycells.delete(t,s);this._ycells.insert(t>e?e:e-s+1,n.map((t=>M(t,this).ymodel)))}))}deleteCell(t){this.deleteCellRange(t,t+1)}deleteCellRange(t,e){this.transact((()=>{this._ycells.delete(t,e-t)}))}deleteMetadata(t){if(typeof this.getMetadata(t)==="undefined"){return}const e=this.metadata;delete e[t];this.setMetadata(e)}getMetadata(t){const e=this.ymeta.get("metadata");if(e===undefined){return undefined}if(typeof t==="string"){const s=e.get(t);return typeof s==="undefined"?undefined:o.JSONExt.deepCopy(s)}else{return o.JSONExt.deepCopy(e.toJSON())}}setMetadata(t,e){var s;if(typeof t==="string"){if(typeof e==="undefined"){throw new TypeError(`Metadata value for ${t} cannot be 'undefined'; use deleteMetadata.`)}if(o.JSONExt.deepEqual((s=this.getMetadata(t))!==null&&s!==void 0?s:null,e)){return}const n={};n[t]=e;this.updateMetadata(n)}else{if(!this.metadata||!o.JSONExt.deepEqual(this.metadata,t)){const e=o.JSONExt.deepCopy(t);const s=this.ymeta.get("metadata");if(s===undefined){return undefined}this.transact((()=>{s.clear();for(const[t,n]of Object.entries(e)){s.set(t,n)}}))}}}updateMetadata(t){const e=o.JSONExt.deepCopy(t);const s=this.ymeta.get("metadata");if(s===undefined){return undefined}this.transact((()=>{for(const[t,n]of Object.entries(e)){s.set(t,n)}}))}getSource(){return this.toJSON()}setSource(t){this.fromJSON(t)}fromJSON(t){this.transact((()=>{this.nbformat=t.nbformat;this.nbformat_minor=t.nbformat_minor;const e=t.metadata;if(e["orig_nbformat"]!==undefined){delete e["orig_nbformat"]}if(!this.metadata){const t=new u.Map;for(const[s,n]of Object.entries(e)){t.set(s,n)}this.ymeta.set("metadata",t)}else{this.metadata=e}const s=t.nbformat===4&&t.nbformat_minor>=5;const n=t.cells.map((t=>{if(!s){delete t.id}return t}));this.insertCells(this.cells.length,n);this.deleteCellRange(0,this.cells.length)}))}toJSON(){const t=this.nbformat===4&&this.nbformat_minor<=4;return{metadata:this.metadata,nbformat_minor:this.nbformat_minor,nbformat:this.nbformat,cells:this.cells.map((e=>{const s=e.toJSON();if(t){delete s.id}return s}))}}}},32421:(t,e,s)=>{s.d(e,{HT:()=>r,HV:()=>n,S2:()=>i,cy:()=>h});const n=t=>t[t.length-1];const a=()=>[];const o=t=>t.slice();const i=(t,e)=>{for(let s=0;s{for(let s=0;s{for(let s=0;st.length===e.length&&d(t,((t,s)=>t===e[s]));const u=t=>t.reduce(((t,e)=>t.concat(e)),[]);const h=Array.isArray;const g=t=>r(set.from(t));const f=(t,e)=>{const s=set.create();const n=[];for(let a=0;a{s.d(e,{EK:()=>u,OK:()=>a,vo:()=>l});var n=s(70641);const a=(t,e,s=0)=>{try{for(;s{};const i=t=>t();const r=t=>t;const d=(t,e)=>t===e;const c=(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 l=(t,e)=>{if(t==null||e==null){return d(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 s=0;se.includes(t)},61662:(t,e,s)=>{s.d(e,{C:()=>a,Tj:()=>i,_4:()=>o,bz:()=>r,vt:()=>n});const n=()=>new Map;const a=t=>{const e=n();t.forEach(((t,s)=>{e.set(s,t)}));return e};const o=(t,e,s)=>{let n=t.get(e);if(n===undefined){t.set(e,n=s())}return n};const i=(t,e)=>{const s=[];for(const[n,a]of t){s.push(e(a,n))}return s};const r=(t,e)=>{for(const[s,n]of t){if(e(n,s)){return true}}return false};const d=(t,e)=>{for(const[s,n]of t){if(!e(n,s)){return false}}return true}},63616:(t,e,s)=>{s.d(e,{RI:()=>n,T9:()=>f,jk:()=>g,sj:()=>b,tn:()=>o});const n=Math.floor;const a=Math.ceil;const o=Math.abs;const i=Math.imul;const r=Math.round;const d=Math.log10;const c=Math.log2;const l=Math.log;const u=Math.sqrt;const h=(t,e)=>t+e;const g=(t,e)=>tt>e?t:e;const p=Number.isNaN;const y=Math.pow;const m=t=>Math.pow(10,t);const _=Math.sign;const b=t=>t!==0?t<0:1/t<0},70641:(t,e,s)=>{s.d(e,{Bw:()=>d,SQ:()=>g,i5:()=>h});const n=()=>Object.create(null);const a=Object.assign;const o=Object.keys;const i=(t,e)=>{for(const s in t){e(t[s],s)}};const r=(t,e)=>{const s=[];for(const n in t){s.push(e(t[n],n))}return s};const d=t=>o(t).length;const c=(t,e)=>{for(const s in t){if(e(t[s],s)){return true}}return false};const l=t=>{for(const e in t){return false}return true};const u=(t,e)=>{for(const s in t){if(!e(t[s],s)){return false}}return true};const h=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);const g=(t,e)=>t===e||d(t)===d(e)&&u(t,((t,s)=>(t!==undefined||h(e,s))&&e[s]===t))},5739:(t,e,s)=>{s.d(e,{c:()=>i});var n=s(61662);var a=s(25404);var o=s(32421);class i{constructor(){this._observers=n.vt()}on(t,e){n._4(this._observers,t,a.vt).add(e)}once(t,e){const s=(...n)=>{this.off(t,s);e(...n)};this.on(t,s)}off(t,e){const s=this._observers.get(t);if(s!==undefined){s.delete(e);if(s.size===0){this._observers.delete(t)}}}emit(t,e){return o.HT((this._observers.get(t)||n.vt()).values()).forEach((t=>t(...e)))}destroy(){this._observers=n.vt()}}},25404:(t,e,s)=>{s.d(e,{vt:()=>n});const n=()=>new Set;const a=t=>Array.from(t);const o=t=>t.values().next().value||undefined;const i=t=>new Set(t)},64191:(t,e,s)=>{s.d(e,{_g:()=>a});const n=()=>new Date;const a=Date.now;const o=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 s=math.floor(t/60)%60;const n=math.floor(t/3600)%24;const a=math.floor(t/86400);if(a>0){return a+"d"+(n>0||s>30?" "+(s>30?n+1:n)+"h":"")}if(n>0){return n+"h"+(s>0||e>30?" "+(e>30?s+1:s)+"min":"")}return s+"min"+(e>0?" "+e+"s":"")}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/5566.c76ea61eb723ee84e2cf.js b/share/jupyter/lab/static/5566.c76ea61eb723ee84e2cf.js new file mode 100644 index 0000000..638075f --- /dev/null +++ b/share/jupyter/lab/static/5566.c76ea61eb723ee84e2cf.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5566],{95566:(e,t,r)=>{r.r(t);r.d(t,{cassandra:()=>b,esper:()=>k,gpSQL:()=>x,gql:()=>v,hive:()=>_,mariaDB:()=>g,msSQL:()=>m,mySQL:()=>p,pgSQL:()=>y,plSQL:()=>f,sparkSQL:()=>w,sql:()=>a,sqlite:()=>h,standardSQL:()=>d});function a(e){var t=e.client||{},r=e.atoms||{false:true,true:true,null:true},a=e.builtin||c(u),i=e.keywords||c(l),n=e.operatorChars||/^[*+\-%<>!=&|~^\/]/,s=e.support||{},o=e.hooks||{},d=e.dateSQL||{date:true,time:true,timestamp:true},m=e.backslashStringEscapes!==false,p=e.brackets||/^[\{}\(\)\[\]]/,g=e.punctuation||/^[;.,:]/;function h(e,l){var c=e.next();if(o[c]){var u=o[c](e,l);if(u!==false)return u}if(s.hexNumber&&(c=="0"&&e.match(/^[xX][0-9a-fA-F]+/)||(c=="x"||c=="X")&&e.match(/^'[0-9a-fA-F]*'/))){return"number"}else if(s.binaryNumber&&((c=="b"||c=="B")&&e.match(/^'[01]+'/)||c=="0"&&e.match(/^b[01]*/))){return"number"}else if(c.charCodeAt(0)>47&&c.charCodeAt(0)<58){e.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/);s.decimallessFloat&&e.match(/^\.(?!\.)/);return"number"}else if(c=="?"&&(e.eatSpace()||e.eol()||e.eat(";"))){return"macroName"}else if(c=="'"||c=='"'&&s.doubleQuote){l.tokenize=b(c);return l.tokenize(e,l)}else if((s.nCharCast&&(c=="n"||c=="N")||s.charsetCast&&c=="_"&&e.match(/[a-z][a-z0-9]*/i))&&(e.peek()=="'"||e.peek()=='"')){return"keyword"}else if(s.escapeConstant&&(c=="e"||c=="E")&&(e.peek()=="'"||e.peek()=='"'&&s.doubleQuote)){l.tokenize=function(e,t){return(t.tokenize=b(e.next(),true))(e,t)};return"keyword"}else if(s.commentSlashSlash&&c=="/"&&e.eat("/")){e.skipToEnd();return"comment"}else if(s.commentHash&&c=="#"||c=="-"&&e.eat("-")&&(!s.commentSpaceRequired||e.eat(" "))){e.skipToEnd();return"comment"}else if(c=="/"&&e.eat("*")){l.tokenize=f(1);return l.tokenize(e,l)}else if(c=="."){if(s.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return"number";if(e.match(/^\.+/))return null;if(s.ODBCdotTable&&e.match(/^[\w\d_$#]+/))return"type"}else if(n.test(c)){e.eatWhile(n);return"operator"}else if(p.test(c)){return"bracket"}else if(g.test(c)){e.eatWhile(g);return"punctuation"}else if(c=="{"&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/))){return"number"}else{e.eatWhile(/^[_\w\d]/);var m=e.current().toLowerCase();if(d.hasOwnProperty(m)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/)))return"number";if(r.hasOwnProperty(m))return"atom";if(a.hasOwnProperty(m))return"type";if(i.hasOwnProperty(m))return"keyword";if(t.hasOwnProperty(m))return"builtin";return null}}function b(e,t){return function(r,a){var i=false,n;while((n=r.next())!=null){if(n==e&&!i){a.tokenize=h;break}i=(m||t)&&!i&&n=="\\"}return"string"}}function f(e){return function(t,r){var a=t.match(/^.*?(\/\*|\*\/)/);if(!a)t.skipToEnd();else if(a[1]=="/*")r.tokenize=f(e+1);else if(e>1)r.tokenize=f(e-1);else r.tokenize=h;return"comment"}}function _(e,t,r){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:r}}function y(e){e.indent=e.context.indent;e.context=e.context.prev}return{name:"sql",startState:function(){return{tokenize:h,context:null}},token:function(e,t){if(e.sol()){if(t.context&&t.context.align==null)t.context.align=false}if(t.tokenize==h&&e.eatSpace())return null;var r=t.tokenize(e,t);if(r=="comment")return r;if(t.context&&t.context.align==null)t.context.align=true;var a=e.current();if(a=="(")_(e,t,")");else if(a=="[")_(e,t,"]");else if(t.context&&t.context.type==a)y(t);return r},indent:function(e,t,r){var a=e.context;if(!a)return null;var i=t.charAt(0)==a.type;if(a.align)return a.col+(i?0:1);else return a.indent+(i?0:r.unit)},languageData:{commentTokens:{line:s.commentSlashSlash?"//":s.commentHash?"#":"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}}}function i(e){var t;while((t=e.next())!=null){if(t=="`"&&!e.eat("`"))return"string.special"}e.backUp(e.current().length-1);return e.eatWhile(/\w/)?"string.special":null}function n(e){var t;while((t=e.next())!=null){if(t=='"'&&!e.eat('"'))return"string.special"}e.backUp(e.current().length-1);return e.eatWhile(/\w/)?"string.special":null}function s(e){if(e.eat("@")){e.match("session.");e.match("local.");e.match("global.")}if(e.eat("'")){e.match(/^.*'/);return"string.special"}else if(e.eat('"')){e.match(/^.*"/);return"string.special"}else if(e.eat("`")){e.match(/^.*`/);return"string.special"}else if(e.match(/^[0-9a-zA-Z$\.\_]+/)){return"string.special"}return null}function o(e){if(e.eat("N")){return"atom"}return e.match(/^[a-zA-Z.#!?]/)?"string.special":null}var l="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function c(e){var t={},r=e.split(" ");for(var a=0;a!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:false,dateSQL:c("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":s}});const p=a({client:c("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:c(l+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:c("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:c("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:c("date time timestamp"),support:c("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":s,"`":i,"\\":o}});const g=a({client:c("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:c(l+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:c("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:c("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:c("date time timestamp"),support:c("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":s,"`":i,"\\":o}});const h=a({client:c("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:c(l+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:c("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:c("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:c("date time timestamp datetime"),support:c("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":s,":":s,"?":s,$:s,'"':n,"`":i}});const b=a({client:{},keywords:c("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"),builtin:c("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:c("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:c("commentSlashSlash decimallessFloat"),hooks:{}});const f=a({client:c("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:c("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit 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 long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session 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:c("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:c("date time timestamp"),support:c("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")});const _=a({keywords:c("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:c("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:c("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:c("date timestamp"),support:c("ODBCdotTable doubleQuote binaryNumber hexNumber")});const y=a({client:c("source"),keywords:c(l+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path 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 precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static 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 system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:c("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:c("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:false,dateSQL:c("date time timestamp"),support:c("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")});const v=a({keywords:c("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:c("false true"),builtin:c("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/});const x=a({client:c("source"),keywords:c("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:c("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:c("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:c("date time timestamp"),support:c("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")});const w=a({keywords:c("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:c("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:c("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:c("date time timestamp"),support:c("ODBCdotTable doubleQuote zerolessFloat")});const k=a({client:c("source"),keywords:c("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:c("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:c("time"),support:c("decimallessFloat zerolessFloat binaryNumber hexNumber")})}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/5606.e03dfa10c124a03f36ba.js b/share/jupyter/lab/static/5606.e03dfa10c124a03f36ba.js new file mode 100644 index 0000000..e501d27 --- /dev/null +++ b/share/jupyter/lab/static/5606.e03dfa10c124a03f36ba.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5606],{65606:e=>{var t=e.exports={};var r;var n;function i(){throw new Error("setTimeout has not been defined")}function o(){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=o}}catch(e){n=o}})();function u(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 c(e){if(n===clearTimeout){return clearTimeout(e)}if((n===o||!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 a=[];var l=false;var s;var f=-1;function h(){if(!l||!s){return}l=false;if(s.length){a=s.concat(a)}else{f=-1}if(a.length){p()}}function p(){if(l){return}var e=u(h);l=true;var t=a.length;while(t){s=a;a=[];while(++f1){for(var r=1;r{p.d(a,{createPieServices:()=>t.f});var t=p(66623);var c=p(11254)}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/5763.48defb00824aa5cc6326.js b/share/jupyter/lab/static/5763.48defb00824aa5cc6326.js new file mode 100644 index 0000000..30d49ef --- /dev/null +++ b/share/jupyter/lab/static/5763.48defb00824aa5cc6326.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5763],{65791:(t,e,r)=>{r.d(e,{T:()=>k});var a=r(33659);var s=r(58807);var i=r(37947);var n=r(97133);var o=r(74650);var l=r(69769);var c=r(89523);var d=r(62040);var h=r(55881);var u=r(19363);var g=r(10654);var p=(0,h.A)((function(t){return(0,u.A)((0,d.A)(t,1,g.A,true))}));const y=p;var f=r(44882);var b=r(65339);var x="\0";var m="\0";var w="";class k{constructor(t={}){this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:true;this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:false;this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:false;this._label=undefined;this._defaultNodeLabelFn=a.A(undefined);this._defaultEdgeLabelFn=a.A(undefined);this._nodes={};if(this._isCompound){this._parent={};this._children={};this._children[m]={}}this._in={};this._preds={};this._out={};this._sucs={};this._edgeObjs={};this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){this._label=t;return this}graph(){return this._label}setDefaultNodeLabel(t){if(!s.A(t)){t=a.A(t)}this._defaultNodeLabelFn=t;return this}nodeCount(){return this._nodeCount}nodes(){return i.A(this._nodes)}sources(){var t=this;return n.A(this.nodes(),(function(e){return o.A(t._in[e])}))}sinks(){var t=this;return n.A(this.nodes(),(function(e){return o.A(t._out[e])}))}setNodes(t,e){var r=arguments;var a=this;l.A(t,(function(t){if(r.length>1){a.setNode(t,e)}else{a.setNode(t)}}));return this}setNode(t,e){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){if(arguments.length>1){this._nodes[t]=e}return this}this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t);if(this._isCompound){this._parent[t]=m;this._children[t]={};this._children[m][t]=true}this._in[t]={};this._preds[t]={};this._out[t]={};this._sucs[t]={};++this._nodeCount;return this}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=t=>this.removeEdge(this._edgeObjs[t]);delete this._nodes[t];if(this._isCompound){this._removeFromParentsChildList(t);delete this._parent[t];l.A(this.children(t),(t=>{this.setParent(t)}));delete this._children[t]}l.A(i.A(this._in[t]),e);delete this._in[t];delete this._preds[t];l.A(i.A(this._out[t]),e);delete this._out[t];delete this._sucs[t];--this._nodeCount}return this}setParent(t,e){if(!this._isCompound){throw new Error("Cannot set parent in a non-compound graph")}if(c.A(e)){e=m}else{e+="";for(var r=e;!c.A(r);r=this.parent(r)){if(r===t){throw new Error("Setting "+e+" as parent of "+t+" would create a cycle")}}this.setNode(e)}this.setNode(t);this._removeFromParentsChildList(t);this._parent[t]=e;this._children[e][t]=true;return this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==m){return e}}}children(t){if(c.A(t)){t=m}if(this._isCompound){var e=this._children[t];if(e){return i.A(e)}}else if(t===m){return this.nodes()}else if(this.hasNode(t)){return[]}}predecessors(t){var e=this._preds[t];if(e){return i.A(e)}}successors(t){var e=this._sucs[t];if(e){return i.A(e)}}neighbors(t){var e=this.predecessors(t);if(e){return y(e,this.successors(t))}}isLeaf(t){var e;if(this.isDirected()){e=this.successors(t)}else{e=this.neighbors(t)}return e.length===0}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;l.A(this._nodes,(function(r,a){if(t(a)){e.setNode(a,r)}}));l.A(this._edgeObjs,(function(t){if(e.hasNode(t.v)&&e.hasNode(t.w)){e.setEdge(t,r.edge(t))}}));var a={};function s(t){var i=r.parent(t);if(i===undefined||e.hasNode(i)){a[t]=i;return i}else if(i in a){return a[i]}else{return s(i)}}if(this._isCompound){l.A(e.nodes(),(function(t){e.setParent(t,s(t))}))}return e}setDefaultEdgeLabel(t){if(!s.A(t)){t=a.A(t)}this._defaultEdgeLabelFn=t;return this}edgeCount(){return this._edgeCount}edges(){return f.A(this._edgeObjs)}setPath(t,e){var r=this;var a=arguments;b.A(t,(function(t,s){if(a.length>1){r.setEdge(t,s,e)}else{r.setEdge(t,s)}return s}));return this}setEdge(){var t,e,r,a;var s=false;var i=arguments[0];if(typeof i==="object"&&i!==null&&"v"in i){t=i.v;e=i.w;r=i.name;if(arguments.length===2){a=arguments[1];s=true}}else{t=i;e=arguments[1];r=arguments[3];if(arguments.length>2){a=arguments[2];s=true}}t=""+t;e=""+e;if(!c.A(r)){r=""+r}var n=_(this._isDirected,t,e,r);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,n)){if(s){this._edgeLabels[n]=a}return this}if(!c.A(r)&&!this._isMultigraph){throw new Error("Cannot set a named edge when isMultigraph = false")}this.setNode(t);this.setNode(e);this._edgeLabels[n]=s?a:this._defaultEdgeLabelFn(t,e,r);var o=S(this._isDirected,t,e,r);t=o.v;e=o.w;Object.freeze(o);this._edgeObjs[n]=o;L(this._preds[e],t);L(this._sucs[t],e);this._in[e][n]=o;this._out[t][n]=o;this._edgeCount++;return this}edge(t,e,r){var a=arguments.length===1?E(this._isDirected,arguments[0]):_(this._isDirected,t,e,r);return this._edgeLabels[a]}hasEdge(t,e,r){var a=arguments.length===1?E(this._isDirected,arguments[0]):_(this._isDirected,t,e,r);return Object.prototype.hasOwnProperty.call(this._edgeLabels,a)}removeEdge(t,e,r){var a=arguments.length===1?E(this._isDirected,arguments[0]):_(this._isDirected,t,e,r);var s=this._edgeObjs[a];if(s){t=s.v;e=s.w;delete this._edgeLabels[a];delete this._edgeObjs[a];v(this._preds[e],t);v(this._sucs[t],e);delete this._in[e][a];delete this._out[t][a];this._edgeCount--}return this}inEdges(t,e){var r=this._in[t];if(r){var a=f.A(r);if(!e){return a}return n.A(a,(function(t){return t.v===e}))}}outEdges(t,e){var r=this._out[t];if(r){var a=f.A(r);if(!e){return a}return n.A(a,(function(t){return t.w===e}))}}nodeEdges(t,e){var r=this.inEdges(t,e);if(r){return r.concat(this.outEdges(t,e))}}}k.prototype._nodeCount=0;k.prototype._edgeCount=0;function L(t,e){if(t[e]){t[e]++}else{t[e]=1}}function v(t,e){if(! --t[e]){delete t[e]}}function _(t,e,r,a){var s=""+e;var i=""+r;if(!t&&s>i){var n=s;s=i;i=n}return s+w+i+w+(c.A(a)?x:a)}function S(t,e,r,a){var s=""+e;var i=""+r;if(!t&&s>i){var n=s;s=i;i=n}var o={v:s,w:i};if(a){o.name=a}return o}function E(t,e){return _(t,e.v,e.w,e.name)}},84416:(t,e,r)=>{r.d(e,{T:()=>a.T});var a=r(65791);const s="2.1.9-pre"},27574:(t,e,r)=>{r.d(e,{A:()=>n});var a=r(57991);var s=r(63221);const i=(t,e)=>a.A.lang.round(s.A.parse(t)[e]);const n=i},97134:(t,e,r)=>{r.d(e,{A:()=>n});var a=r(37005);var s=4;function i(t){return(0,a.A)(t,s)}const n=i},25763:(t,e,r)=>{r.d(e,{diagram:()=>Ye});var a=r(10628);var s=r(46103);var i=r(15164);var n=r(95035);var o=r(29131);var l=r(42418);var c=r(70416);var d=r(97134);var h=r(27574);var u=r(3635);var g=r(1218);var p=r(84416);var y=function(){var t=(0,c.K2)((function(t,e,r,a){for(r=r||{},a=t.length;a--;r[t[a]]=e);return r}),"o"),e=[1,15],r=[1,7],a=[1,13],s=[1,14],i=[1,19],n=[1,16],o=[1,17],l=[1,18],d=[8,30],h=[8,10,21,28,29,30,31,39,43,46],u=[1,23],g=[1,24],p=[8,10,15,16,21,28,29,30,31,39,43,46],y=[8,10,15,16,21,27,28,29,30,31,39,43,46],f=[1,49];var b={trace:(0,c.K2)((function t(){}),"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:(0,c.K2)((function t(e,r,a,s,i,n,o){var l=n.length-1;switch(i){case 4:s.getLogger().debug("Rule: separator (NL) ");break;case 5:s.getLogger().debug("Rule: separator (Space) ");break;case 6:s.getLogger().debug("Rule: separator (EOF) ");break;case 7:s.getLogger().debug("Rule: hierarchy: ",n[l-1]);s.setHierarchy(n[l-1]);break;case 8:s.getLogger().debug("Stop NL ");break;case 9:s.getLogger().debug("Stop EOF ");break;case 10:s.getLogger().debug("Stop NL2 ");break;case 11:s.getLogger().debug("Stop EOF2 ");break;case 12:s.getLogger().debug("Rule: statement: ",n[l]);typeof n[l].length==="number"?this.$=n[l]:this.$=[n[l]];break;case 13:s.getLogger().debug("Rule: statement #2: ",n[l-1]);this.$=[n[l-1]].concat(n[l]);break;case 14:s.getLogger().debug("Rule: link: ",n[l],e);this.$={edgeTypeStr:n[l],label:""};break;case 15:s.getLogger().debug("Rule: LABEL link: ",n[l-3],n[l-1],n[l]);this.$={edgeTypeStr:n[l],label:n[l-1]};break;case 18:const t=parseInt(n[l]);const r=s.generateId();this.$={id:r,type:"space",label:"",width:t,children:[]};break;case 23:s.getLogger().debug("Rule: (nodeStatement link node) ",n[l-2],n[l-1],n[l]," typestr: ",n[l-1].edgeTypeStr);const a=s.edgeStrToEdgeData(n[l-1].edgeTypeStr);this.$=[{id:n[l-2].id,label:n[l-2].label,type:n[l-2].type,directions:n[l-2].directions},{id:n[l-2].id+"-"+n[l].id,start:n[l-2].id,end:n[l].id,label:n[l-1].label,type:"edge",directions:n[l].directions,arrowTypeEnd:a,arrowTypeStart:"arrow_open"},{id:n[l].id,label:n[l].label,type:s.typeStr2Type(n[l].typeStr),directions:n[l].directions}];break;case 24:s.getLogger().debug("Rule: nodeStatement (abc88 node size) ",n[l-1],n[l]);this.$={id:n[l-1].id,label:n[l-1].label,type:s.typeStr2Type(n[l-1].typeStr),directions:n[l-1].directions,widthInColumns:parseInt(n[l],10)};break;case 25:s.getLogger().debug("Rule: nodeStatement (node) ",n[l]);this.$={id:n[l].id,label:n[l].label,type:s.typeStr2Type(n[l].typeStr),directions:n[l].directions,widthInColumns:1};break;case 26:s.getLogger().debug("APA123",this?this:"na");s.getLogger().debug("COLUMNS: ",n[l]);this.$={type:"column-setting",columns:n[l]==="auto"?-1:parseInt(n[l])};break;case 27:s.getLogger().debug("Rule: id-block statement : ",n[l-2],n[l-1]);const i=s.generateId();this.$={...n[l-2],type:"composite",children:n[l-1]};break;case 28:s.getLogger().debug("Rule: blockStatement : ",n[l-2],n[l-1],n[l]);const o=s.generateId();this.$={id:o,type:"composite",label:"",children:n[l-1]};break;case 29:s.getLogger().debug("Rule: node (NODE_ID separator): ",n[l]);this.$={id:n[l]};break;case 30:s.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",n[l-1],n[l]);this.$={id:n[l-1],label:n[l].label,typeStr:n[l].typeStr,directions:n[l].directions};break;case 31:s.getLogger().debug("Rule: dirList: ",n[l]);this.$=[n[l]];break;case 32:s.getLogger().debug("Rule: dirList: ",n[l-1],n[l]);this.$=[n[l-1]].concat(n[l]);break;case 33:s.getLogger().debug("Rule: nodeShapeNLabel: ",n[l-2],n[l-1],n[l]);this.$={typeStr:n[l-2]+n[l],label:n[l-1]};break;case 34:s.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",n[l-3],n[l-2]," #3:",n[l-1],n[l]);this.$={typeStr:n[l-3]+n[l],label:n[l-2],directions:n[l-1]};break;case 35:case 36:this.$={type:"classDef",id:n[l-1].trim(),css:n[l].trim()};break;case 37:this.$={type:"applyClass",id:n[l-1].trim(),styleClass:n[l].trim()};break;case 38:this.$={type:"applyStyles",id:n[l-1].trim(),stylesStr:n[l].trim()};break}}),"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:e,11:3,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:a,29:s,31:i,39:n,43:o,46:l},{8:[1,20]},t(d,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:e,21:r,28:a,29:s,31:i,39:n,43:o,46:l}),t(h,[2,16],{14:22,15:u,16:g}),t(h,[2,17]),t(h,[2,18]),t(h,[2,19]),t(h,[2,20]),t(h,[2,21]),t(h,[2,22]),t(p,[2,25],{27:[1,25]}),t(h,[2,26]),{19:26,26:12,31:i},{10:e,11:27,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:a,29:s,31:i,39:n,43:o,46:l},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},t(y,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},t(d,[2,13]),{26:35,31:i},{31:[2,14]},{17:[1,36]},t(p,[2,24]),{10:e,11:37,13:4,14:22,15:u,16:g,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:a,29:s,31:i,39:n,43:o,46:l},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},t(y,[2,30]),{18:[1,43]},{18:[1,44]},t(p,[2,23]),{18:[1,45]},{30:[1,46]},t(h,[2,28]),t(h,[2,35]),t(h,[2,36]),t(h,[2,37]),t(h,[2,38]),{36:[1,47]},{33:48,34:f},{15:[1,50]},t(h,[2,27]),t(y,[2,33]),{38:[1,51]},{33:52,34:f,38:[2,31]},{31:[2,15]},t(y,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:(0,c.K2)((function t(e,r){if(r.recoverable){this.trace(e)}else{var a=new Error(e);a.hash=r;throw a}}),"parseError"),parse:(0,c.K2)((function t(e){var r=this,a=[0],s=[],i=[null],n=[],o=this.table,l="",d=0,h=0,u=0,g=2,p=1;var y=n.slice.call(arguments,1);var f=Object.create(this.lexer);var b={yy:{}};for(var x in this.yy){if(Object.prototype.hasOwnProperty.call(this.yy,x)){b.yy[x]=this.yy[x]}}f.setInput(e,b.yy);b.yy.lexer=f;b.yy.parser=this;if(typeof f.yylloc=="undefined"){f.yylloc={}}var m=f.yylloc;n.push(m);var w=f.options&&f.options.ranges;if(typeof b.yy.parseError==="function"){this.parseError=b.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function k(t){a.length=a.length-2*t;i.length=i.length-t;n.length=n.length-t}(0,c.K2)(k,"popStack");function L(){var t;t=s.pop()||f.lex()||p;if(typeof t!=="number"){if(t instanceof Array){s=t;t=s.pop()}t=r.symbols_[t]||t}return t}(0,c.K2)(L,"lex");var v,_,S,E,D,N,C={},K,R,$,T;while(true){S=a[a.length-1];if(this.defaultActions[S]){E=this.defaultActions[S]}else{if(v===null||typeof v=="undefined"){v=L()}E=o[S]&&o[S][v]}if(typeof E==="undefined"||!E.length||!E[0]){var A="";T=[];for(K in o[S]){if(this.terminals_[K]&&K>g){T.push("'"+this.terminals_[K]+"'")}}if(f.showPosition){A="Parse error on line "+(d+1)+":\n"+f.showPosition()+"\nExpecting "+T.join(", ")+", got '"+(this.terminals_[v]||v)+"'"}else{A="Parse error on line "+(d+1)+": Unexpected "+(v==p?"end of input":"'"+(this.terminals_[v]||v)+"'")}this.parseError(A,{text:f.match,token:this.terminals_[v]||v,line:f.yylineno,loc:m,expected:T})}if(E[0]instanceof Array&&E.length>1){throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+v)}switch(E[0]){case 1:a.push(v);i.push(f.yytext);n.push(f.yylloc);a.push(E[1]);v=null;if(!_){h=f.yyleng;l=f.yytext;d=f.yylineno;m=f.yylloc;if(u>0){u--}}else{v=_;_=null}break;case 2:R=this.productions_[E[1]][1];C.$=i[i.length-R];C._$={first_line:n[n.length-(R||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(R||1)].first_column,last_column:n[n.length-1].last_column};if(w){C._$.range=[n[n.length-(R||1)].range[0],n[n.length-1].range[1]]}N=this.performAction.apply(C,[l,h,d,b.yy,E[1],i,n].concat(y));if(typeof N!=="undefined"){return N}if(R){a=a.slice(0,-1*R*2);i=i.slice(0,-1*R);n=n.slice(0,-1*R)}a.push(this.productions_[E[1]][0]);i.push(C.$);n.push(C._$);$=o[a[a.length-2]][a[a.length-1]];a.push($);break;case 3:return true}}return true}),"parse")};var x=function(){var t={EOF:1,parseError:(0,c.K2)((function t(e,r){if(this.yy.parser){this.yy.parser.parseError(e,r)}else{throw new Error(e)}}),"parseError"),setInput:(0,c.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,c.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,c.K2)((function(t){var e=t.length;var r=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(r.length-1){this.yylineno-=r.length-1}var s=this.yylloc.range;this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-e};if(this.options.ranges){this.yylloc.range=[s[0],s[0]+this.yyleng-e]}this.yyleng=this.yytext.length;return this}),"unput"),more:(0,c.K2)((function(){this._more=true;return this}),"more"),reject:(0,c.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,c.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,c.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,c.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,c.K2)((function(){var t=this.pastInput();var e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,c.K2)((function(t,e){var r,a,s;if(this.options.backtrack_lexer){s={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){s.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];r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input){this.done=false}if(r){return r}else if(this._backtrack){for(var i in s){this[i]=s[i]}return false}return false}),"test_match"),next:(0,c.K2)((function(){if(this.done){return this.EOF}if(!this._input){this.done=true}var t,e,r,a;if(!this._more){this.yytext="";this.match=""}var s=this._currentRules();for(var i=0;ie[0].length)){e=r;a=i;if(this.options.backtrack_lexer){t=this.test_match(r,s[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,s[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,c.K2)((function t(){var e=this.next();if(e){return e}else{return this.lex()}}),"lex"),begin:(0,c.K2)((function t(e){this.conditionStack.push(e)}),"begin"),popState:(0,c.K2)((function t(){var e=this.conditionStack.length-1;if(e>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}}),"popState"),_currentRules:(0,c.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,c.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,c.K2)((function t(e){this.begin(e)}),"pushState"),stateStackSize:(0,c.K2)((function t(){return this.conditionStack.length}),"stateStackSize"),options:{},performAction:(0,c.K2)((function t(e,r,a,s){var i=s;switch(a){case 0:e.getLogger().debug("Found block-beta");return 10;break;case 1:e.getLogger().debug("Found id-block");return 29;break;case 2:e.getLogger().debug("Found block");return 10;break;case 3:e.getLogger().debug(".",r.yytext);break;case 4:e.getLogger().debug("_",r.yytext);break;case 5:return 5;break;case 6:r.yytext=-1;return 28;break;case 7:r.yytext=r.yytext.replace(/columns\s+/,"");e.getLogger().debug("COLUMNS (LEX)",r.yytext);return 28;break;case 8:this.pushState("md_string");break;case 9:return"MD_STR";break;case 10:this.popState();break;case 11:this.pushState("string");break;case 12:e.getLogger().debug("LEX: POPPING STR:",r.yytext);this.popState();break;case 13:e.getLogger().debug("LEX: STR end:",r.yytext);return"STR";break;case 14:r.yytext=r.yytext.replace(/space\:/,"");e.getLogger().debug("SPACE NUM (LEX)",r.yytext);return 21;break;case 15:r.yytext="1";e.getLogger().debug("COLUMNS (LEX)",r.yytext);return 21;break;case 16:return 42;break;case 17:return"LINKSTYLE";break;case 18:return"INTERPOLATE";break;case 19:this.pushState("CLASSDEF");return 39;break;case 20:this.popState();this.pushState("CLASSDEFID");return"DEFAULT_CLASSDEF_ID";break;case 21:this.popState();this.pushState("CLASSDEFID");return 40;break;case 22:this.popState();return 41;break;case 23:this.pushState("CLASS");return 43;break;case 24:this.popState();this.pushState("CLASS_STYLE");return 44;break;case 25:this.popState();return 45;break;case 26:this.pushState("STYLE_STMNT");return 46;break;case 27:this.popState();this.pushState("STYLE_DEFINITION");return 47;break;case 28:this.popState();return 48;break;case 29:this.pushState("acc_title");return"acc_title";break;case 30:this.popState();return"acc_title_value";break;case 31:this.pushState("acc_descr");return"acc_descr";break;case 32:this.popState();return"acc_descr_value";break;case 33:this.pushState("acc_descr_multiline");break;case 34:this.popState();break;case 35:return"acc_descr_multiline_value";break;case 36:return 30;break;case 37:this.popState();e.getLogger().debug("Lex: ((");return"NODE_DEND";break;case 38:this.popState();e.getLogger().debug("Lex: ((");return"NODE_DEND";break;case 39:this.popState();e.getLogger().debug("Lex: ))");return"NODE_DEND";break;case 40:this.popState();e.getLogger().debug("Lex: ((");return"NODE_DEND";break;case 41:this.popState();e.getLogger().debug("Lex: ((");return"NODE_DEND";break;case 42:this.popState();e.getLogger().debug("Lex: (-");return"NODE_DEND";break;case 43:this.popState();e.getLogger().debug("Lex: -)");return"NODE_DEND";break;case 44:this.popState();e.getLogger().debug("Lex: ((");return"NODE_DEND";break;case 45:this.popState();e.getLogger().debug("Lex: ]]");return"NODE_DEND";break;case 46:this.popState();e.getLogger().debug("Lex: (");return"NODE_DEND";break;case 47:this.popState();e.getLogger().debug("Lex: ])");return"NODE_DEND";break;case 48:this.popState();e.getLogger().debug("Lex: /]");return"NODE_DEND";break;case 49:this.popState();e.getLogger().debug("Lex: /]");return"NODE_DEND";break;case 50:this.popState();e.getLogger().debug("Lex: )]");return"NODE_DEND";break;case 51:this.popState();e.getLogger().debug("Lex: )");return"NODE_DEND";break;case 52:this.popState();e.getLogger().debug("Lex: ]>");return"NODE_DEND";break;case 53:this.popState();e.getLogger().debug("Lex: ]");return"NODE_DEND";break;case 54:e.getLogger().debug("Lexa: -)");this.pushState("NODE");return 35;break;case 55:e.getLogger().debug("Lexa: (-");this.pushState("NODE");return 35;break;case 56:e.getLogger().debug("Lexa: ))");this.pushState("NODE");return 35;break;case 57:e.getLogger().debug("Lexa: )");this.pushState("NODE");return 35;break;case 58:e.getLogger().debug("Lex: (((");this.pushState("NODE");return 35;break;case 59:e.getLogger().debug("Lexa: )");this.pushState("NODE");return 35;break;case 60:e.getLogger().debug("Lexa: )");this.pushState("NODE");return 35;break;case 61:e.getLogger().debug("Lexa: )");this.pushState("NODE");return 35;break;case 62:e.getLogger().debug("Lexc: >");this.pushState("NODE");return 35;break;case 63:e.getLogger().debug("Lexa: ([");this.pushState("NODE");return 35;break;case 64:e.getLogger().debug("Lexa: )");this.pushState("NODE");return 35;break;case 65:this.pushState("NODE");return 35;break;case 66:this.pushState("NODE");return 35;break;case 67:this.pushState("NODE");return 35;break;case 68:this.pushState("NODE");return 35;break;case 69:this.pushState("NODE");return 35;break;case 70:this.pushState("NODE");return 35;break;case 71:this.pushState("NODE");return 35;break;case 72:e.getLogger().debug("Lexa: [");this.pushState("NODE");return 35;break;case 73:this.pushState("BLOCK_ARROW");e.getLogger().debug("LEX ARR START");return 37;break;case 74:e.getLogger().debug("Lex: NODE_ID",r.yytext);return 31;break;case 75:e.getLogger().debug("Lex: EOF",r.yytext);return 8;break;case 76:this.pushState("md_string");break;case 77:this.pushState("md_string");break;case 78:return"NODE_DESCR";break;case 79:this.popState();break;case 80:e.getLogger().debug("Lex: Starting string");this.pushState("string");break;case 81:e.getLogger().debug("LEX ARR: Starting string");this.pushState("string");break;case 82:e.getLogger().debug("LEX: NODE_DESCR:",r.yytext);return"NODE_DESCR";break;case 83:e.getLogger().debug("LEX POPPING");this.popState();break;case 84:e.getLogger().debug("Lex: =>BAE");this.pushState("ARROW_DIR");break;case 85:r.yytext=r.yytext.replace(/^,\s*/,"");e.getLogger().debug("Lex (right): dir:",r.yytext);return"DIR";break;case 86:r.yytext=r.yytext.replace(/^,\s*/,"");e.getLogger().debug("Lex (left):",r.yytext);return"DIR";break;case 87:r.yytext=r.yytext.replace(/^,\s*/,"");e.getLogger().debug("Lex (x):",r.yytext);return"DIR";break;case 88:r.yytext=r.yytext.replace(/^,\s*/,"");e.getLogger().debug("Lex (y):",r.yytext);return"DIR";break;case 89:r.yytext=r.yytext.replace(/^,\s*/,"");e.getLogger().debug("Lex (up):",r.yytext);return"DIR";break;case 90:r.yytext=r.yytext.replace(/^,\s*/,"");e.getLogger().debug("Lex (down):",r.yytext);return"DIR";break;case 91:r.yytext="]>";e.getLogger().debug("Lex (ARROW_DIR end):",r.yytext);this.popState();this.popState();return"BLOCK_ARROW_END";break;case 92:e.getLogger().debug("Lex: LINK","#"+r.yytext+"#");return 15;break;case 93:e.getLogger().debug("Lex: LINK",r.yytext);return 15;break;case 94:e.getLogger().debug("Lex: LINK",r.yytext);return 15;break;case 95:e.getLogger().debug("Lex: LINK",r.yytext);return 15;break;case 96:e.getLogger().debug("Lex: START_LINK",r.yytext);this.pushState("LLABEL");return 16;break;case 97:e.getLogger().debug("Lex: START_LINK",r.yytext);this.pushState("LLABEL");return 16;break;case 98:e.getLogger().debug("Lex: START_LINK",r.yytext);this.pushState("LLABEL");return 16;break;case 99:this.pushState("md_string");break;case 100:e.getLogger().debug("Lex: Starting string");this.pushState("string");return"LINK_LABEL";break;case 101:this.popState();e.getLogger().debug("Lex: LINK","#"+r.yytext+"#");return 15;break;case 102:this.popState();e.getLogger().debug("Lex: LINK",r.yytext);return 15;break;case 103:this.popState();e.getLogger().debug("Lex: LINK",r.yytext);return 15;break;case 104:e.getLogger().debug("Lex: COLON",r.yytext);r.yytext=r.yytext.slice(1);return 27;break}}),"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:false},STYLE_STMNT:{rules:[27],inclusive:false},CLASSDEFID:{rules:[22],inclusive:false},CLASSDEF:{rules:[20,21],inclusive:false},CLASS_STYLE:{rules:[25],inclusive:false},CLASS:{rules:[24],inclusive:false},LLABEL:{rules:[99,100,101,102,103],inclusive:false},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:false},BLOCK_ARROW:{rules:[76,81,84],inclusive:false},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:false},md_string:{rules:[9,10,78,79],inclusive:false},space:{rules:[],inclusive:false},string:{rules:[12,13,82,83],inclusive:false},acc_descr_multiline:{rules:[34,35],inclusive:false},acc_descr:{rules:[32],inclusive:false},acc_title:{rules:[30],inclusive:false},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:true}}};return t}();b.lexer=x;function m(){this.yy={}}(0,c.K2)(m,"Parser");m.prototype=b;b.Parser=m;return new m}();y.parser=y;var f=y;var b=new Map;var x=[];var m=new Map;var w="color";var k="fill";var L="bgFill";var v=",";var _=(0,l.D7)();var S=new Map;var E=(0,c.K2)((t=>l.Y2.sanitizeText(t,_)),"sanitizeText");var D=(0,c.K2)((function(t,e=""){let r=S.get(t);if(!r){r={id:t,styles:[],textStyles:[]};S.set(t,r)}if(e!==void 0&&e!==null){e.split(v).forEach((t=>{const e=t.replace(/([^;]*);/,"$1").trim();if(RegExp(w).exec(t)){const t=e.replace(k,L);const a=t.replace(w,k);r.textStyles.push(a)}r.styles.push(e)}))}}),"addStyleClass");var N=(0,c.K2)((function(t,e=""){const r=b.get(t);if(e!==void 0&&e!==null){r.styles=e.split(v)}}),"addStyle2Node");var C=(0,c.K2)((function(t,e){t.split(",").forEach((function(t){let r=b.get(t);if(r===void 0){const e=t.trim();r={id:e,type:"na",children:[]};b.set(e,r)}if(!r.classes){r.classes=[]}r.classes.push(e)}))}),"setCssClass");var K=(0,c.K2)(((t,e)=>{const r=t.flat();const a=[];const s=r.find((t=>t?.type==="column-setting"));const i=s?.columns??-1;for(const n of r){if(typeof i==="number"&&i>0&&n.type!=="column-setting"&&typeof n.widthInColumns==="number"&&n.widthInColumns>i){c.Rm.warn(`Block ${n.id} width ${n.widthInColumns} exceeds configured column width ${i}`)}if(n.label){n.label=E(n.label)}if(n.type==="classDef"){D(n.id,n.css);continue}if(n.type==="applyClass"){C(n.id,n?.styleClass??"");continue}if(n.type==="applyStyles"){if(n?.stylesStr){N(n.id,n?.stylesStr)}continue}if(n.type==="column-setting"){e.columns=n.columns??-1}else if(n.type==="edge"){const t=(m.get(n.id)??0)+1;m.set(n.id,t);n.id=t+"-"+n.id;x.push(n)}else{if(!n.label){if(n.type==="composite"){n.label=""}else{n.label=n.id}}const t=b.get(n.id);if(t===void 0){b.set(n.id,n)}else{if(n.type!=="na"){t.type=n.type}if(n.label!==n.id){t.label=n.label}}if(n.children){K(n.children,n)}if(n.type==="space"){const t=n.width??1;for(let e=0;e{c.Rm.debug("Clear called");(0,l.IU)();$={id:"root",type:"composite",children:[],columns:-1};b=new Map([["root",$]]);R=[];S=new Map;x=[];m=new Map}),"clear");function A(t){c.Rm.debug("typeStr2Type",t);switch(t){case"[]":return"square";case"()":c.Rm.debug("we have a round");return"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}(0,c.K2)(A,"typeStr2Type");function O(t){c.Rm.debug("typeStr2Type",t);switch(t){case"==":return"thick";default:return"normal"}}(0,c.K2)(O,"edgeTypeStr2Type");function I(t){switch(t.replace(/^[\s-]+|[\s-]+$/g,"")){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}(0,c.K2)(I,"edgeStrToEdgeData");var B=0;var z=(0,c.K2)((()=>{B++;return"id-"+Math.random().toString(36).substr(2,12)+"-"+B}),"generateId");var M=(0,c.K2)((t=>{$.children=t;K(t,$);R=$.children}),"setHierarchy");var P=(0,c.K2)((t=>{const e=b.get(t);if(!e){return-1}if(e.columns){return e.columns}if(!e.children){return-1}return e.children.length}),"getColumns");var Y=(0,c.K2)((()=>[...b.values()]),"getBlocksFlat");var j=(0,c.K2)((()=>R||[]),"getBlocks");var F=(0,c.K2)((()=>x),"getEdges");var W=(0,c.K2)((t=>b.get(t)),"getBlock");var X=(0,c.K2)((t=>{b.set(t.id,t)}),"setBlock");var H=(0,c.K2)((()=>c.Rm),"getLogger");var U=(0,c.K2)((function(){return S}),"getClasses");var Z={getConfig:(0,c.K2)((()=>(0,l.zj)().block),"getConfig"),typeStr2Type:A,edgeTypeStr2Type:O,edgeStrToEdgeData:I,getLogger:H,getBlocksFlat:Y,getBlocks:j,getEdges:F,setHierarchy:M,getBlock:W,setBlock:X,getColumns:P,getClasses:U,clear:T,generateId:z};var q=Z;var G=(0,c.K2)(((t,e)=>{const r=h.A;const a=r(t,"r");const s=r(t,"g");const i=r(t,"b");return u.A(a,s,i,e)}),"fade");var J=(0,c.K2)((t=>`.label {\n font-family: ${t.fontFamily};\n color: ${t.nodeTextColor||t.textColor};\n }\n .cluster-label text {\n fill: ${t.titleColor};\n }\n .cluster-label span,p {\n color: ${t.titleColor};\n }\n\n\n\n .label text,span,p {\n fill: ${t.nodeTextColor||t.textColor};\n color: ${t.nodeTextColor||t.textColor};\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 .flowchart-label text {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\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: 2.0px;\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 background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${G(t.edgeLabelBackground,.5)};\n // background-color:\n }\n\n .node .cluster {\n // fill: ${G(t.mainBkg,.5)};\n fill: ${G(t.clusterBkg,.5)};\n stroke: ${G(t.clusterBorder,.2)};\n box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${t.titleColor};\n }\n\n .cluster span,p {\n color: ${t.titleColor};\n }\n /* .cluster div {\n color: ${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 .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n ${(0,a.o)()}\n`),"getStyles");var V=J;var Q=(0,c.K2)(((t,e,r,a)=>{e.forEach((e=>{ct[e](t,r,a)}))}),"insertMarkers");var tt=(0,c.K2)(((t,e,r)=>{c.Rm.trace("Making markers for ",r);t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z");t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")}),"extension");var et=(0,c.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z");t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")}),"composition");var rt=(0,c.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z");t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")}),"aggregation");var at=(0,c.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z");t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).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")}),"dependency");var st=(0,c.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6);t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)}),"lollipop");var it=(0,c.K2)(((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0");t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")}),"point");var nt=(0,c.K2)(((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0");t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")}),"circle");var ot=(0,c.K2)(((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0");t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")}),"cross");var lt=(0,c.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}),"barb");var ct={extension:tt,composition:et,aggregation:rt,dependency:at,lollipop:st,point:it,circle:nt,cross:ot,barb:lt};var dt=Q;var ht=(0,l.D7)()?.block?.padding??8;function ut(t,e){if(t===0||!Number.isInteger(t)){throw new Error("Columns must be an integer !== 0.")}if(e<0||!Number.isInteger(e)){throw new Error("Position must be a non-negative integer."+e)}if(t<0){return{px:e,py:0}}if(t===1){return{px:0,py:e}}const r=e%t;const a=Math.floor(e/t);return{px:r,py:a}}(0,c.K2)(ut,"calculateBlockPosition");var gt=(0,c.K2)((t=>{let e=0;let r=0;for(const a of t.children){const{width:s,height:i,x:n,y:o}=a.size??{width:0,height:0,x:0,y:0};c.Rm.debug("getMaxChildSize abc95 child:",a.id,"width:",s,"height:",i,"x:",n,"y:",o,a.type);if(a.type==="space"){continue}if(s>e){e=s/(t.widthInColumns??1)}if(i>r){r=i}}return{width:e,height:r}}),"getMaxChildSize");function pt(t,e,r=0,a=0){c.Rm.debug("setBlockSizes abc95 (start)",t.id,t?.size?.x,"block width =",t?.size,"siblingWidth",r);if(!t?.size?.width){t.size={width:r,height:a,x:0,y:0}}let s=0;let i=0;if(t.children?.length>0){for(const r of t.children){pt(r,e)}const n=gt(t);s=n.width;i=n.height;c.Rm.debug("setBlockSizes abc95 maxWidth of",t.id,":s children is ",s,i);for(const e of t.children){if(e.size){c.Rm.debug(`abc95 Setting size of children of ${t.id} id=${e.id} ${s} ${i} ${JSON.stringify(e.size)}`);e.size.width=s*(e.widthInColumns??1)+ht*((e.widthInColumns??1)-1);e.size.height=i;e.size.x=0;e.size.y=0;c.Rm.debug(`abc95 updating size of ${t.id} children child:${e.id} maxWidth:${s} maxHeight:${i}`)}}for(const r of t.children){pt(r,e,s,i)}const o=t.columns??-1;let l=0;for(const e of t.children){l+=e.widthInColumns??1}let d=t.children.length;if(o>0&&o0?Math.min(t.children.length,o):t.children.length;if(e>0){const r=(u-e*ht-ht)/e;c.Rm.debug("abc95 (growing to fit) width",t.id,u,t.size?.width,r);for(const e of t.children){if(e.size){e.size.width=r}}}}t.size={width:u,height:g,x:0,y:0}}c.Rm.debug("setBlockSizes abc94 (done)",t.id,t?.size?.x,t?.size?.width,t?.size?.y,t?.size?.height)}(0,c.K2)(pt,"setBlockSizes");function yt(t,e){c.Rm.debug(`abc85 layout blocks (=>layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`);const r=t.columns??-1;c.Rm.debug("layoutBlocks columns abc95",t.id,"=>",r,t);if(t.children&&t.children.length>0){const a=t?.children[0]?.size?.width??0;const s=t.children.length*a+(t.children.length-1)*ht;c.Rm.debug("widthOfChildren 88",s,"posX");let i=0;c.Rm.debug("abc91 block?.size?.x",t.id,t?.size?.x);let n=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-ht;let o=0;for(const l of t.children){const a=t;if(!l.size){continue}const{width:s,height:d}=l.size;const{px:h,py:u}=ut(r,i);if(u!=o){o=u;n=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-ht;c.Rm.debug("New row in layout for block",t.id," and child ",l.id,o)}c.Rm.debug(`abc89 layout blocks (child) id: ${l.id} Pos: ${i} (px, py) ${h},${u} (${a?.size?.x},${a?.size?.y}) parent: ${a.id} width: ${s}${ht}`);if(a.size){const t=s/2;l.size.x=n+ht+t;c.Rm.debug(`abc91 layout blocks (calc) px, pyid:${l.id} startingPos=X${n} new startingPosX${l.size.x} ${t} padding=${ht} width=${s} halfWidth=${t} => x:${l.size.x} y:${l.size.y} ${l.widthInColumns} (width * (child?.w || 1)) / 2 ${s*(l?.widthInColumns??1)/2}`);n=l.size.x+t;l.size.y=a.size.y-a.size.height/2+u*(d+ht)+d/2+ht;c.Rm.debug(`abc88 layout blocks (calc) px, pyid:${l.id}startingPosX${n}${ht}${t}=>x:${l.size.x}y:${l.size.y}${l.widthInColumns}(width * (child?.w || 1)) / 2${s*(l?.widthInColumns??1)/2}`)}if(l.children){yt(l,e)}let g=l?.widthInColumns??1;if(r>0){g=Math.min(g,r-i%r)}i+=g;c.Rm.debug("abc88 columnsPos",l,i)}}c.Rm.debug(`layout blocks (<==layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`)}(0,c.K2)(yt,"layoutBlocks");function ft(t,{minX:e,minY:r,maxX:a,maxY:s}={minX:0,minY:0,maxX:0,maxY:0}){if(t.size&&t.id!=="root"){const{x:i,y:n,width:o,height:l}=t.size;if(i-o/2a){a=i+o/2}if(n+l/2>s){s=n+l/2}}if(t.children){for(const i of t.children){({minX:e,minY:r,maxX:a,maxY:s}=ft(i,{minX:e,minY:r,maxX:a,maxY:s}))}}return{minX:e,minY:r,maxX:a,maxY:s}}(0,c.K2)(ft,"findBounds");function bt(t){const e=t.getBlock("root");if(!e){return}pt(e,t,0,0);yt(e,t);c.Rm.debug("getBlocks",JSON.stringify(e,null,2));const{minX:r,minY:a,maxX:s,maxY:i}=ft(e);const n=i-a;const o=s-r;return{x:r,y:a,width:o,height:n}}(0,c.K2)(bt,"layout");function xt(t,e){if(e){t.attr("style",e)}}(0,c.K2)(xt,"applyStyle");function mt(t,e){const r=(0,g.Ltv)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject"));const a=r.append("xhtml:div");const s=t.label;const i=t.isNode?"nodeLabel":"edgeLabel";const n=a.append("span");n.html((0,l.jZ)(s,e));xt(n,t.labelStyle);n.attr("class",i);xt(a,t.labelStyle);a.style("display","inline-block");a.style("white-space","nowrap");a.attr("xmlns","http://www.w3.org/1999/xhtml");return r.node()}(0,c.K2)(mt,"addHtmlLabel");var wt=(0,c.K2)((async(t,e,r,a)=>{let s=t||"";if(typeof s==="object"){s=s[0]}const i=(0,l.D7)();if((0,l._3)(i.flowchart.htmlLabels)){s=s.replace(/\\n|\n/g,"
    ");c.Rm.debug("vertexText"+s);const t=await(0,n.hE)((0,o.Sm)(s));const r={isNode:a,label:t,labelStyle:e.replace("fill:","color:")};let l=mt(r,i);return l}else{const t=document.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",e.replace("color:","fill:"));let a=[];if(typeof s==="string"){a=s.split(/\\n|\n|/gi)}else if(Array.isArray(s)){a=s}else{a=[]}for(const e of a){const a=document.createElementNS("http://www.w3.org/2000/svg","tspan");a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");a.setAttribute("dy","1em");a.setAttribute("x","0");if(r){a.setAttribute("class","title-row")}else{a.setAttribute("class","row")}a.textContent=e.trim();t.appendChild(a)}return t}}),"createLabel");var kt=wt;var Lt=(0,c.K2)(((t,e,r,a,s)=>{if(e.arrowTypeStart){_t(t,"start",e.arrowTypeStart,r,a,s)}if(e.arrowTypeEnd){_t(t,"end",e.arrowTypeEnd,r,a,s)}}),"addEdgeMarkers");var vt={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"};var _t=(0,c.K2)(((t,e,r,a,s,i)=>{const n=vt[r];if(!n){c.Rm.warn(`Unknown arrow type: ${r}`);return}const o=e==="start"?"Start":"End";t.attr(`marker-${e}`,`url(${a}#${s}_${i}-${n}${o})`)}),"addEdgeMarker");var St={};var Et={};var Dt=(0,c.K2)((async(t,e)=>{const r=(0,l.D7)();const a=(0,l._3)(r.flowchart.htmlLabels);const s=e.labelType==="markdown"?(0,n.GZ)(t,e.label,{style:e.labelStyle,useHtmlLabels:a,addSvgBackground:true},r):await kt(e.label,e.labelStyle);const i=t.insert("g").attr("class","edgeLabel");const o=i.insert("g").attr("class","label");o.node().appendChild(s);let c=s.getBBox();if(a){const t=s.children[0];const e=(0,g.Ltv)(s);c=t.getBoundingClientRect();e.attr("width",c.width);e.attr("height",c.height)}o.attr("transform","translate("+-c.width/2+", "+-c.height/2+")");St[e.id]=i;e.width=c.width;e.height=c.height;let d;if(e.startLabelLeft){const r=await kt(e.startLabelLeft,e.labelStyle);const a=t.insert("g").attr("class","edgeTerminals");const s=a.insert("g").attr("class","inner");d=s.node().appendChild(r);const i=r.getBBox();s.attr("transform","translate("+-i.width/2+", "+-i.height/2+")");if(!Et[e.id]){Et[e.id]={}}Et[e.id].startLeft=a;Nt(d,e.startLabelLeft)}if(e.startLabelRight){const r=await kt(e.startLabelRight,e.labelStyle);const a=t.insert("g").attr("class","edgeTerminals");const s=a.insert("g").attr("class","inner");d=a.node().appendChild(r);s.node().appendChild(r);const i=r.getBBox();s.attr("transform","translate("+-i.width/2+", "+-i.height/2+")");if(!Et[e.id]){Et[e.id]={}}Et[e.id].startRight=a;Nt(d,e.startLabelRight)}if(e.endLabelLeft){const r=await kt(e.endLabelLeft,e.labelStyle);const a=t.insert("g").attr("class","edgeTerminals");const s=a.insert("g").attr("class","inner");d=s.node().appendChild(r);const i=r.getBBox();s.attr("transform","translate("+-i.width/2+", "+-i.height/2+")");a.node().appendChild(r);if(!Et[e.id]){Et[e.id]={}}Et[e.id].endLeft=a;Nt(d,e.endLabelLeft)}if(e.endLabelRight){const r=await kt(e.endLabelRight,e.labelStyle);const a=t.insert("g").attr("class","edgeTerminals");const s=a.insert("g").attr("class","inner");d=s.node().appendChild(r);const i=r.getBBox();s.attr("transform","translate("+-i.width/2+", "+-i.height/2+")");a.node().appendChild(r);if(!Et[e.id]){Et[e.id]={}}Et[e.id].endRight=a;Nt(d,e.endLabelRight)}return s}),"insertEdgeLabel");function Nt(t,e){if((0,l.D7)().flowchart.htmlLabels&&t){t.style.width=e.length*9+"px";t.style.height="12px"}}(0,c.K2)(Nt,"setTerminalWidth");var Ct=(0,c.K2)(((t,e)=>{c.Rm.debug("Moving label abc88 ",t.id,t.label,St[t.id],e);let r=e.updatedPath?e.updatedPath:e.originalPath;const a=(0,l.D7)();const{subGraphTitleTotalMargin:s}=(0,i.O)(a);if(t.label){const a=St[t.id];let i=t.x;let n=t.y;if(r){const a=o._K.calcLabelPosition(r);c.Rm.debug("Moving label "+t.label+" from (",i,",",n,") to (",a.x,",",a.y,") abc88");if(e.updatedPath){i=a.x;n=a.y}}a.attr("transform",`translate(${i}, ${n+s/2})`)}if(t.startLabelLeft){const e=Et[t.id].startLeft;let a=t.x;let s=t.y;if(r){const e=o._K.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);a=e.x;s=e.y}e.attr("transform",`translate(${a}, ${s})`)}if(t.startLabelRight){const e=Et[t.id].startRight;let a=t.x;let s=t.y;if(r){const e=o._K.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);a=e.x;s=e.y}e.attr("transform",`translate(${a}, ${s})`)}if(t.endLabelLeft){const e=Et[t.id].endLeft;let a=t.x;let s=t.y;if(r){const e=o._K.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);a=e.x;s=e.y}e.attr("transform",`translate(${a}, ${s})`)}if(t.endLabelRight){const e=Et[t.id].endRight;let a=t.x;let s=t.y;if(r){const e=o._K.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);a=e.x;s=e.y}e.attr("transform",`translate(${a}, ${s})`)}}),"positionEdgeLabel");var Kt=(0,c.K2)(((t,e)=>{const r=t.x;const a=t.y;const s=Math.abs(e.x-r);const i=Math.abs(e.y-a);const n=t.width/2;const o=t.height/2;if(s>=n||i>=o){return true}return false}),"outsideNode");var Rt=(0,c.K2)(((t,e,r)=>{c.Rm.debug(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(e)}\n insidePoint : ${JSON.stringify(r)}\n node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const a=t.x;const s=t.y;const i=Math.abs(a-r.x);const n=t.width/2;let o=r.xMath.abs(a-e.x)*l){let t=r.y{c.Rm.debug("abc88 cutPathAtIntersect",t,e);let r=[];let a=t[0];let s=false;t.forEach((t=>{if(!Kt(e,t)&&!s){const i=Rt(e,a,t);let n=false;r.forEach((t=>{n=n||t.x===i.x&&t.y===i.y}));if(!r.some((t=>t.x===i.x&&t.y===i.y))){r.push(i)}s=true}else{a=t;if(!s){r.push(t)}}}));return r}),"cutPathAtIntersect");var Tt=(0,c.K2)((function(t,e,r,a,i,n,o){let d=r.points;c.Rm.debug("abc88 InsertEdge: edge=",r,"e=",e);let h=false;const u=n.node(e.v);var p=n.node(e.w);if(p?.intersect&&u?.intersect){d=d.slice(1,r.points.length-1);d.unshift(u.intersect(d[0]));d.push(p.intersect(d[d.length-1]))}if(r.toCluster){c.Rm.debug("to cluster abc88",a[r.toCluster]);d=$t(r.points,a[r.toCluster].node);h=true}if(r.fromCluster){c.Rm.debug("from cluster abc88",a[r.fromCluster]);d=$t(d.reverse(),a[r.fromCluster].node).reverse();h=true}const y=d.filter((t=>!Number.isNaN(t.y)));let f=g.qrM;if(r.curve&&(i==="graph"||i==="flowchart")){f=r.curve}const{x:b,y:x}=(0,s.RI)(r);const m=(0,g.n8j)().x(b).y(x).curve(f);let w;switch(r.thickness){case"normal":w="edge-thickness-normal";break;case"thick":w="edge-thickness-thick";break;case"invisible":w="edge-thickness-thick";break;default:w=""}switch(r.pattern){case"solid":w+=" edge-pattern-solid";break;case"dotted":w+=" edge-pattern-dotted";break;case"dashed":w+=" edge-pattern-dashed";break}const k=t.append("path").attr("d",m(y)).attr("id",r.id).attr("class"," "+w+(r.classes?" "+r.classes:"")).attr("style",r.style);let L="";if((0,l.D7)().flowchart.arrowMarkerAbsolute||(0,l.D7)().state.arrowMarkerAbsolute){L=(0,l.ID)(true)}Lt(k,r,L,o,i);let v={};if(h){v.updatedPath=d}v.originalPath=r.points;return v}),"insertEdge");var At=(0,c.K2)((t=>{const e=new Set;for(const r of t){switch(r){case"x":e.add("right");e.add("left");break;case"y":e.add("up");e.add("down");break;default:e.add(r);break}}return e}),"expandAndDeduplicateDirections");var Ot=(0,c.K2)(((t,e,r)=>{const a=At(t);const s=2;const i=e.height+2*r.padding;const n=i/s;const o=e.width+2*n+r.padding;const l=r.padding/2;if(a.has("right")&&a.has("left")&&a.has("up")&&a.has("down")){return[{x:0,y:0},{x:n,y:0},{x:o/2,y:2*l},{x:o-n,y:0},{x:o,y:0},{x:o,y:-i/3},{x:o+2*l,y:-i/2},{x:o,y:-2*i/3},{x:o,y:-i},{x:o-n,y:-i},{x:o/2,y:-i-2*l},{x:n,y:-i},{x:0,y:-i},{x:0,y:-2*i/3},{x:-2*l,y:-i/2},{x:0,y:-i/3}]}if(a.has("right")&&a.has("left")&&a.has("up")){return[{x:n,y:0},{x:o-n,y:0},{x:o,y:-i/2},{x:o-n,y:-i},{x:n,y:-i},{x:0,y:-i/2}]}if(a.has("right")&&a.has("left")&&a.has("down")){return[{x:0,y:0},{x:n,y:-i},{x:o-n,y:-i},{x:o,y:0}]}if(a.has("right")&&a.has("up")&&a.has("down")){return[{x:0,y:0},{x:o,y:-n},{x:o,y:-i+n},{x:0,y:-i}]}if(a.has("left")&&a.has("up")&&a.has("down")){return[{x:o,y:0},{x:0,y:-n},{x:0,y:-i+n},{x:o,y:-i}]}if(a.has("right")&&a.has("left")){return[{x:n,y:0},{x:n,y:-l},{x:o-n,y:-l},{x:o-n,y:0},{x:o,y:-i/2},{x:o-n,y:-i},{x:o-n,y:-i+l},{x:n,y:-i+l},{x:n,y:-i},{x:0,y:-i/2}]}if(a.has("up")&&a.has("down")){return[{x:o/2,y:0},{x:0,y:-l},{x:n,y:-l},{x:n,y:-i+l},{x:0,y:-i+l},{x:o/2,y:-i},{x:o,y:-i+l},{x:o-n,y:-i+l},{x:o-n,y:-l},{x:o,y:-l}]}if(a.has("right")&&a.has("up")){return[{x:0,y:0},{x:o,y:-n},{x:0,y:-i}]}if(a.has("right")&&a.has("down")){return[{x:0,y:0},{x:o,y:0},{x:0,y:-i}]}if(a.has("left")&&a.has("up")){return[{x:o,y:0},{x:0,y:-n},{x:o,y:-i}]}if(a.has("left")&&a.has("down")){return[{x:o,y:0},{x:0,y:0},{x:o,y:-i}]}if(a.has("right")){return[{x:n,y:-l},{x:n,y:-l},{x:o-n,y:-l},{x:o-n,y:0},{x:o,y:-i/2},{x:o-n,y:-i},{x:o-n,y:-i+l},{x:n,y:-i+l},{x:n,y:-i+l}]}if(a.has("left")){return[{x:n,y:0},{x:n,y:-l},{x:o-n,y:-l},{x:o-n,y:-i+l},{x:n,y:-i+l},{x:n,y:-i},{x:0,y:-i/2}]}if(a.has("up")){return[{x:n,y:-l},{x:n,y:-i+l},{x:0,y:-i+l},{x:o/2,y:-i},{x:o,y:-i+l},{x:o-n,y:-i+l},{x:o-n,y:-l}]}if(a.has("down")){return[{x:o/2,y:0},{x:0,y:-l},{x:n,y:-l},{x:n,y:-i+l},{x:o-n,y:-i+l},{x:o-n,y:-l},{x:o,y:-l}]}return[{x:0,y:0}]}),"getArrowPoints");function It(t,e){return t.intersect(e)}(0,c.K2)(It,"intersectNode");var Bt=It;function zt(t,e,r,a){var s=t.x;var i=t.y;var n=s-a.x;var o=i-a.y;var l=Math.sqrt(e*e*o*o+r*r*n*n);var c=Math.abs(e*r*n/l);if(a.x0}(0,c.K2)(Ft,"sameSign");var Wt=jt;var Xt=Ht;function Ht(t,e,r){var a=t.x;var s=t.y;var i=[];var n=Number.POSITIVE_INFINITY;var o=Number.POSITIVE_INFINITY;if(typeof e.forEach==="function"){e.forEach((function(t){n=Math.min(n,t.x);o=Math.min(o,t.y)}))}else{n=Math.min(n,e.x);o=Math.min(o,e.y)}var l=a-t.width/2-n;var c=s-t.height/2-o;for(var d=0;d1){i.sort((function(t,e){var a=t.x-r.x;var s=t.y-r.y;var i=Math.sqrt(a*a+s*s);var n=e.x-r.x;var o=e.y-r.y;var l=Math.sqrt(n*n+o*o);return i{var r=t.x;var a=t.y;var s=e.x-r;var i=e.y-a;var n=t.width/2;var o=t.height/2;var l,c;if(Math.abs(i)*n>Math.abs(s)*o){if(i<0){o=-o}l=i===0?0:o*s/i;c=o}else{if(s<0){n=-n}l=n;c=s===0?0:n*i/s}return{x:r+l,y:a+c}}),"intersectRect");var Zt=Ut;var qt={node:Bt,circle:Yt,ellipse:Mt,polygon:Xt,rect:Zt};var Gt=(0,c.K2)((async(t,e,r,a)=>{const s=(0,l.D7)();let i;const d=e.useHtmlLabels||(0,l._3)(s.flowchart.htmlLabels);if(!r){i="node default"}else{i=r}const h=t.insert("g").attr("class",i).attr("id",e.domId||e.id);const u=h.insert("g").attr("class","label").attr("style",e.labelStyle);let p;if(e.labelText===void 0){p=""}else{p=typeof e.labelText==="string"?e.labelText:e.labelText[0]}const y=u.node();let f;if(e.labelType==="markdown"){f=(0,n.GZ)(u,(0,l.jZ)((0,o.Sm)(p),s),{useHtmlLabels:d,width:e.width||s.flowchart.wrappingWidth,classes:"markdown-node-label"},s)}else{f=y.appendChild(await kt((0,l.jZ)((0,o.Sm)(p),s),e.labelStyle,false,a))}let b=f.getBBox();const x=e.padding/2;if((0,l._3)(s.flowchart.htmlLabels)){const t=f.children[0];const e=(0,g.Ltv)(f);const r=t.getElementsByTagName("img");if(r){const t=p.replace(/]*>/g,"").trim()==="";await Promise.all([...r].map((e=>new Promise((r=>{function a(){e.style.display="flex";e.style.flexDirection="column";if(t){const t=s.fontSize?s.fontSize:window.getComputedStyle(document.body).fontSize;const r=5;const a=parseInt(t,10)*r+"px";e.style.minWidth=a;e.style.maxWidth=a}else{e.style.width="100%"}r(e)}(0,c.K2)(a,"setupImage");setTimeout((()=>{if(e.complete){a()}}));e.addEventListener("error",a);e.addEventListener("load",a)})))))}b=t.getBoundingClientRect();e.attr("width",b.width);e.attr("height",b.height)}if(d){u.attr("transform","translate("+-b.width/2+", "+-b.height/2+")")}else{u.attr("transform","translate(0, "+-b.height/2+")")}if(e.centerLabel){u.attr("transform","translate("+-b.width/2+", "+-b.height/2+")")}u.insert("rect",":first-child");return{shapeSvg:h,bbox:b,halfPadding:x,label:u}}),"labelHelper");var Jt=(0,c.K2)(((t,e)=>{const r=e.node().getBBox();t.width=r.width;t.height=r.height}),"updateNodeBounds");function Vt(t,e,r,a){return t.insert("polygon",":first-child").attr("points",a.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}(0,c.K2)(Vt,"insertPolygonShape");var Qt=(0,c.K2)((async(t,e)=>{const r=e.useHtmlLabels||(0,l.D7)().flowchart.htmlLabels;if(!r){e.centerLabel=true}const{shapeSvg:a,bbox:s,halfPadding:i}=await Gt(t,e,"node "+e.classes,true);c.Rm.info("Classes = ",e.classes);const n=a.insert("rect",":first-child");n.attr("rx",e.rx).attr("ry",e.ry).attr("x",-s.width/2-i).attr("y",-s.height/2-i).attr("width",s.width+e.padding).attr("height",s.height+e.padding);Jt(e,n);e.intersect=function(t){return qt.rect(e,t)};return a}),"note");var te=Qt;var ee=(0,c.K2)((t=>{if(t){return" "+t}return""}),"formatClass");var re=(0,c.K2)(((t,e)=>`${e?e:"node default"}${ee(t.classes)} ${ee(t.class)}`),"getClassesFromNode");var ae=(0,c.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Gt(t,e,re(e,void 0),true);const s=a.width+e.padding;const i=a.height+e.padding;const n=s+i;const o=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}];c.Rm.info("Question main (Circle)");const l=Vt(r,n,n,o);l.attr("style",e.style);Jt(e,l);e.intersect=function(t){c.Rm.warn("Intersect called");return qt.polygon(e,o,t)};return r}),"question");var se=(0,c.K2)(((t,e)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);const a=28;const s=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}];const i=r.insert("polygon",":first-child").attr("points",s.map((function(t){return t.x+","+t.y})).join(" "));i.attr("class","state-start").attr("r",7).attr("width",28).attr("height",28);e.width=28;e.height=28;e.intersect=function(t){return qt.circle(e,14,t)};return r}),"choice");var ie=(0,c.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Gt(t,e,re(e,void 0),true);const s=4;const i=a.height+e.padding;const n=i/s;const o=a.width+2*n+e.padding;const l=[{x:n,y:0},{x:o-n,y:0},{x:o,y:-i/2},{x:o-n,y:-i},{x:n,y:-i},{x:0,y:-i/2}];const c=Vt(r,o,i,l);c.attr("style",e.style);Jt(e,c);e.intersect=function(t){return qt.polygon(e,l,t)};return r}),"hexagon");var ne=(0,c.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Gt(t,e,void 0,true);const s=2;const i=a.height+2*e.padding;const n=i/s;const o=a.width+2*n+e.padding;const l=Ot(e.directions,a,e);const c=Vt(r,o,i,l);c.attr("style",e.style);Jt(e,c);e.intersect=function(t){return qt.polygon(e,l,t)};return r}),"block_arrow");var oe=(0,c.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Gt(t,e,re(e,void 0),true);const s=a.width+e.padding;const i=a.height+e.padding;const n=[{x:-i/2,y:0},{x:s,y:0},{x:s,y:-i},{x:-i/2,y:-i},{x:0,y:-i/2}];const o=Vt(r,s,i,n);o.attr("style",e.style);e.width=s+i;e.height=i;e.intersect=function(t){return qt.polygon(e,n,t)};return r}),"rect_left_inv_arrow");var le=(0,c.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Gt(t,e,re(e),true);const s=a.width+e.padding;const i=a.height+e.padding;const n=[{x:-2*i/6,y:0},{x:s-i/6,y:0},{x:s+2*i/6,y:-i},{x:i/6,y:-i}];const o=Vt(r,s,i,n);o.attr("style",e.style);Jt(e,o);e.intersect=function(t){return qt.polygon(e,n,t)};return r}),"lean_right");var ce=(0,c.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Gt(t,e,re(e,void 0),true);const s=a.width+e.padding;const i=a.height+e.padding;const n=[{x:2*i/6,y:0},{x:s+i/6,y:0},{x:s-2*i/6,y:-i},{x:-i/6,y:-i}];const o=Vt(r,s,i,n);o.attr("style",e.style);Jt(e,o);e.intersect=function(t){return qt.polygon(e,n,t)};return r}),"lean_left");var de=(0,c.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Gt(t,e,re(e,void 0),true);const s=a.width+e.padding;const i=a.height+e.padding;const n=[{x:-2*i/6,y:0},{x:s+2*i/6,y:0},{x:s-i/6,y:-i},{x:i/6,y:-i}];const o=Vt(r,s,i,n);o.attr("style",e.style);Jt(e,o);e.intersect=function(t){return qt.polygon(e,n,t)};return r}),"trapezoid");var he=(0,c.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Gt(t,e,re(e,void 0),true);const s=a.width+e.padding;const i=a.height+e.padding;const n=[{x:i/6,y:0},{x:s-i/6,y:0},{x:s+2*i/6,y:-i},{x:-2*i/6,y:-i}];const o=Vt(r,s,i,n);o.attr("style",e.style);Jt(e,o);e.intersect=function(t){return qt.polygon(e,n,t)};return r}),"inv_trapezoid");var ue=(0,c.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Gt(t,e,re(e,void 0),true);const s=a.width+e.padding;const i=a.height+e.padding;const n=[{x:0,y:0},{x:s+i/2,y:0},{x:s,y:-i/2},{x:s+i/2,y:-i},{x:0,y:-i}];const o=Vt(r,s,i,n);o.attr("style",e.style);Jt(e,o);e.intersect=function(t){return qt.polygon(e,n,t)};return r}),"rect_right_inv_arrow");var ge=(0,c.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Gt(t,e,re(e,void 0),true);const s=a.width+e.padding;const i=s/2;const n=i/(2.5+s/50);const o=a.height+n+e.padding;const l="M 0,"+n+" a "+i+","+n+" 0,0,0 "+s+" 0 a "+i+","+n+" 0,0,0 "+-s+" 0 l 0,"+o+" a "+i+","+n+" 0,0,0 "+s+" 0 l 0,"+-o;const c=r.attr("label-offset-y",n).insert("path",":first-child").attr("style",e.style).attr("d",l).attr("transform","translate("+-s/2+","+-(o/2+n)+")");Jt(e,c);e.intersect=function(t){const r=qt.rect(e,t);const a=r.x-e.x;if(i!=0&&(Math.abs(a)e.height/2-n)){let s=n*n*(1-a*a/(i*i));if(s!=0){s=Math.sqrt(s)}s=n-s;if(t.y-e.y>0){s=-s}r.y+=s}return r};return r}),"cylinder");var pe=(0,c.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Gt(t,e,"node "+e.classes+" "+e.class,true);const i=r.insert("rect",":first-child");const n=e.positioned?e.width:a.width+e.padding;const o=e.positioned?e.height:a.height+e.padding;const l=e.positioned?-n/2:-a.width/2-s;const d=e.positioned?-o/2:-a.height/2-s;i.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",l).attr("y",d).attr("width",n).attr("height",o);if(e.props){const t=new Set(Object.keys(e.props));if(e.props.borders){be(i,e.props.borders,n,o);t.delete("borders")}t.forEach((t=>{c.Rm.warn(`Unknown node property ${t}`)}))}Jt(e,i);e.intersect=function(t){return qt.rect(e,t)};return r}),"rect");var ye=(0,c.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Gt(t,e,"node "+e.classes,true);const i=r.insert("rect",":first-child");const n=e.positioned?e.width:a.width+e.padding;const o=e.positioned?e.height:a.height+e.padding;const l=e.positioned?-n/2:-a.width/2-s;const d=e.positioned?-o/2:-a.height/2-s;i.attr("class","basic cluster composite label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",l).attr("y",d).attr("width",n).attr("height",o);if(e.props){const t=new Set(Object.keys(e.props));if(e.props.borders){be(i,e.props.borders,n,o);t.delete("borders")}t.forEach((t=>{c.Rm.warn(`Unknown node property ${t}`)}))}Jt(e,i);e.intersect=function(t){return qt.rect(e,t)};return r}),"composite");var fe=(0,c.K2)((async(t,e)=>{const{shapeSvg:r}=await Gt(t,e,"label",true);c.Rm.trace("Classes = ",e.class);const a=r.insert("rect",":first-child");const s=0;const i=0;a.attr("width",s).attr("height",i);r.attr("class","label edgeLabel");if(e.props){const t=new Set(Object.keys(e.props));if(e.props.borders){be(a,e.props.borders,s,i);t.delete("borders")}t.forEach((t=>{c.Rm.warn(`Unknown node property ${t}`)}))}Jt(e,a);e.intersect=function(t){return qt.rect(e,t)};return r}),"labelRect");function be(t,e,r,a){const s=[];const i=(0,c.K2)((t=>{s.push(t,0)}),"addBorder");const n=(0,c.K2)((t=>{s.push(0,t)}),"skipBorder");if(e.includes("t")){c.Rm.debug("add top border");i(r)}else{n(r)}if(e.includes("r")){c.Rm.debug("add right border");i(a)}else{n(a)}if(e.includes("b")){c.Rm.debug("add bottom border");i(r)}else{n(r)}if(e.includes("l")){c.Rm.debug("add left border");i(a)}else{n(a)}t.attr("stroke-dasharray",s.join(" "))}(0,c.K2)(be,"applyNodePropertyBorders");var xe=(0,c.K2)((async(t,e)=>{let r;if(!e.classes){r="node default"}else{r="node "+e.classes}const a=t.insert("g").attr("class",r).attr("id",e.domId||e.id);const s=a.insert("rect",":first-child");const i=a.insert("line");const n=a.insert("g").attr("class","label");const o=e.labelText.flat?e.labelText.flat():e.labelText;let d="";if(typeof o==="object"){d=o[0]}else{d=o}c.Rm.info("Label text abc79",d,o,typeof o==="object");const h=n.node().appendChild(await kt(d,e.labelStyle,true,true));let u={width:0,height:0};if((0,l._3)((0,l.D7)().flowchart.htmlLabels)){const t=h.children[0];const e=(0,g.Ltv)(h);u=t.getBoundingClientRect();e.attr("width",u.width);e.attr("height",u.height)}c.Rm.info("Text 2",o);const p=o.slice(1,o.length);let y=h.getBBox();const f=n.node().appendChild(await kt(p.join?p.join("
    "):p,e.labelStyle,true,true));if((0,l._3)((0,l.D7)().flowchart.htmlLabels)){const t=f.children[0];const e=(0,g.Ltv)(f);u=t.getBoundingClientRect();e.attr("width",u.width);e.attr("height",u.height)}const b=e.padding/2;(0,g.Ltv)(f).attr("transform","translate( "+(u.width>y.width?0:(y.width-u.width)/2)+", "+(y.height+b+5)+")");(0,g.Ltv)(h).attr("transform","translate( "+(u.width{const{shapeSvg:r,bbox:a}=await Gt(t,e,re(e,void 0),true);const s=a.height+e.padding;const i=a.width+s/4+e.padding;const n=r.insert("rect",":first-child").attr("style",e.style).attr("rx",s/2).attr("ry",s/2).attr("x",-i/2).attr("y",-s/2).attr("width",i).attr("height",s);Jt(e,n);e.intersect=function(t){return qt.rect(e,t)};return r}),"stadium");var we=(0,c.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Gt(t,e,re(e,void 0),true);const i=r.insert("circle",":first-child");i.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",a.width/2+s).attr("width",a.width+e.padding).attr("height",a.height+e.padding);c.Rm.info("Circle main");Jt(e,i);e.intersect=function(t){c.Rm.info("Circle intersect",e,a.width/2+s,t);return qt.circle(e,a.width/2+s,t)};return r}),"circle");var ke=(0,c.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Gt(t,e,re(e,void 0),true);const i=5;const n=r.insert("g",":first-child");const o=n.insert("circle");const l=n.insert("circle");n.attr("class",e.class);o.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",a.width/2+s+i).attr("width",a.width+e.padding+i*2).attr("height",a.height+e.padding+i*2);l.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",a.width/2+s).attr("width",a.width+e.padding).attr("height",a.height+e.padding);c.Rm.info("DoubleCircle main");Jt(e,o);e.intersect=function(t){c.Rm.info("DoubleCircle intersect",e,a.width/2+s+i,t);return qt.circle(e,a.width/2+s+i,t)};return r}),"doublecircle");var Le=(0,c.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Gt(t,e,re(e,void 0),true);const s=a.width+e.padding;const i=a.height+e.padding;const n=[{x:0,y:0},{x:s,y:0},{x:s,y:-i},{x:0,y:-i},{x:0,y:0},{x:-8,y:0},{x:s+8,y:0},{x:s+8,y:-i},{x:-8,y:-i},{x:-8,y:0}];const o=Vt(r,s,i,n);o.attr("style",e.style);Jt(e,o);e.intersect=function(t){return qt.polygon(e,n,t)};return r}),"subroutine");var ve=(0,c.K2)(((t,e)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);const a=r.insert("circle",":first-child");a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);Jt(e,a);e.intersect=function(t){return qt.circle(e,7,t)};return r}),"start");var _e=(0,c.K2)(((t,e,r)=>{const a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let s=70;let i=10;if(r==="LR"){s=10;i=70}const n=a.append("rect").attr("x",-1*s/2).attr("y",-1*i/2).attr("width",s).attr("height",i).attr("class","fork-join");Jt(e,n);e.height=e.height+e.padding/2;e.width=e.width+e.padding/2;e.intersect=function(t){return qt.rect(e,t)};return a}),"forkJoin");var Se=(0,c.K2)(((t,e)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);const a=r.insert("circle",":first-child");const s=r.insert("circle",":first-child");s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);a.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10);Jt(e,s);e.intersect=function(t){return qt.circle(e,7,t)};return r}),"end");var Ee=(0,c.K2)((async(t,e)=>{const r=e.padding/2;const a=4;const s=8;let i;if(!e.classes){i="node default"}else{i="node "+e.classes}const n=t.insert("g").attr("class",i).attr("id",e.domId||e.id);const o=n.insert("rect",":first-child");const c=n.insert("line");const d=n.insert("line");let h=0;let u=a;const p=n.insert("g").attr("class","label");let y=0;const f=e.classData.annotations?.[0];const b=e.classData.annotations[0]?"«"+e.classData.annotations[0]+"»":"";const x=p.node().appendChild(await kt(b,e.labelStyle,true,true));let m=x.getBBox();if((0,l._3)((0,l.D7)().flowchart.htmlLabels)){const t=x.children[0];const e=(0,g.Ltv)(x);m=t.getBoundingClientRect();e.attr("width",m.width);e.attr("height",m.height)}if(e.classData.annotations[0]){u+=m.height+a;h+=m.width}let w=e.classData.label;if(e.classData.type!==void 0&&e.classData.type!==""){if((0,l.D7)().flowchart.htmlLabels){w+="<"+e.classData.type+">"}else{w+="<"+e.classData.type+">"}}const k=p.node().appendChild(await kt(w,e.labelStyle,true,true));(0,g.Ltv)(k).attr("class","classTitle");let L=k.getBBox();if((0,l._3)((0,l.D7)().flowchart.htmlLabels)){const t=k.children[0];const e=(0,g.Ltv)(k);L=t.getBoundingClientRect();e.attr("width",L.width);e.attr("height",L.height)}u+=L.height+a;if(L.width>h){h=L.width}const v=[];e.classData.members.forEach((async t=>{const r=t.getDisplayDetails();let s=r.displayText;if((0,l.D7)().flowchart.htmlLabels){s=s.replace(//g,">")}const i=p.node().appendChild(await kt(s,r.cssStyle?r.cssStyle:e.labelStyle,true,true));let n=i.getBBox();if((0,l._3)((0,l.D7)().flowchart.htmlLabels)){const t=i.children[0];const e=(0,g.Ltv)(i);n=t.getBoundingClientRect();e.attr("width",n.width);e.attr("height",n.height)}if(n.width>h){h=n.width}u+=n.height+a;v.push(i)}));u+=s;const _=[];e.classData.methods.forEach((async t=>{const r=t.getDisplayDetails();let s=r.displayText;if((0,l.D7)().flowchart.htmlLabels){s=s.replace(//g,">")}const i=p.node().appendChild(await kt(s,r.cssStyle?r.cssStyle:e.labelStyle,true,true));let n=i.getBBox();if((0,l._3)((0,l.D7)().flowchart.htmlLabels)){const t=i.children[0];const e=(0,g.Ltv)(i);n=t.getBoundingClientRect();e.attr("width",n.width);e.attr("height",n.height)}if(n.width>h){h=n.width}u+=n.height+a;_.push(i)}));u+=s;if(f){let t=(h-m.width)/2;(0,g.Ltv)(x).attr("transform","translate( "+(-1*h/2+t)+", "+-1*u/2+")");y=m.height+a}let S=(h-L.width)/2;(0,g.Ltv)(k).attr("transform","translate( "+(-1*h/2+S)+", "+(-1*u/2+y)+")");y+=L.height+a;c.attr("class","divider").attr("x1",-h/2-r).attr("x2",h/2+r).attr("y1",-u/2-r+s+y).attr("y2",-u/2-r+s+y);y+=s;v.forEach((t=>{(0,g.Ltv)(t).attr("transform","translate( "+-h/2+", "+(-1*u/2+y+s/2)+")");const e=t?.getBBox();y+=(e?.height??0)+a}));y+=s;d.attr("class","divider").attr("x1",-h/2-r).attr("x2",h/2+r).attr("y1",-u/2-r+s+y).attr("y2",-u/2-r+s+y);y+=s;_.forEach((t=>{(0,g.Ltv)(t).attr("transform","translate( "+-h/2+", "+(-1*u/2+y)+")");const e=t?.getBBox();y+=(e?.height??0)+a}));o.attr("style",e.style).attr("class","outer title-state").attr("x",-h/2-r).attr("y",-(u/2)-r).attr("width",h+e.padding).attr("height",u+e.padding);Jt(e,o);e.intersect=function(t){return qt.rect(e,t)};return n}),"class_box");var De={rhombus:ae,composite:ye,question:ae,rect:pe,labelRect:fe,rectWithTitle:xe,choice:se,circle:we,doublecircle:ke,stadium:me,hexagon:ie,block_arrow:ne,rect_left_inv_arrow:oe,lean_right:le,lean_left:ce,trapezoid:de,inv_trapezoid:he,rect_right_inv_arrow:ue,cylinder:ge,start:ve,end:Se,note:te,subroutine:Le,fork:_e,join:_e,class_box:Ee};var Ne={};var Ce=(0,c.K2)((async(t,e,r)=>{let a;let s;if(e.link){let i;if((0,l.D7)().securityLevel==="sandbox"){i="_top"}else if(e.linkTarget){i=e.linkTarget||"_blank"}a=t.insert("svg:a").attr("xlink:href",e.link).attr("target",i);s=await De[e.shape](a,e,r)}else{s=await De[e.shape](t,e,r);a=s}if(e.tooltip){s.attr("title",e.tooltip)}if(e.class){s.attr("class","node default "+e.class)}Ne[e.id]=a;if(e.haveCallback){Ne[e.id].attr("class",Ne[e.id].attr("class")+" clickable")}return a}),"insertNode");var Ke=(0,c.K2)((t=>{const e=Ne[t.id];c.Rm.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const r=8;const a=t.diff||0;if(t.clusterNode){e.attr("transform","translate("+(t.x+a-t.width/2)+", "+(t.y-t.height/2-r)+")")}else{e.attr("transform","translate("+t.x+", "+t.y+")")}return a}),"positionNode");function Re(t,e,r=false){const a=t;let s="default";if((a?.classes?.length||0)>0){s=(a?.classes??[]).join(" ")}s=s+" flowchart-label";let i=0;let n="";let c;switch(a.type){case"round":i=5;n="rect";break;case"composite":i=0;n="composite";c=0;break;case"square":n="rect";break;case"diamond":n="question";break;case"hexagon":n="hexagon";break;case"block_arrow":n="block_arrow";break;case"odd":n="rect_left_inv_arrow";break;case"lean_right":n="lean_right";break;case"lean_left":n="lean_left";break;case"trapezoid":n="trapezoid";break;case"inv_trapezoid":n="inv_trapezoid";break;case"rect_left_inv_arrow":n="rect_left_inv_arrow";break;case"circle":n="circle";break;case"ellipse":n="ellipse";break;case"stadium":n="stadium";break;case"subroutine":n="subroutine";break;case"cylinder":n="cylinder";break;case"group":n="rect";break;case"doublecircle":n="doublecircle";break;default:n="rect"}const d=(0,o.sM)(a?.styles??[]);const h=a.label;const u=a.size??{width:0,height:0,x:0,y:0};const g={labelStyle:d.labelStyle,shape:n,labelText:h,rx:i,ry:i,class:s,style:d.style,id:a.id,directions:a.directions,width:u.width,height:u.height,x:u.x,y:u.y,positioned:r,intersect:void 0,type:a.type,padding:c??(0,l.zj)()?.block?.padding??0};return g}(0,c.K2)(Re,"getNodeFromBlock");async function $e(t,e,r){const a=Re(e,r,false);if(a.type==="group"){return}const s=(0,l.zj)();const i=await Ce(t,a,{config:s});const n=i.node().getBBox();const o=r.getBlock(a.id);o.size={width:n.width,height:n.height,x:0,y:0,node:i};r.setBlock(o);i.remove()}(0,c.K2)($e,"calculateBlockSize");async function Te(t,e,r){const a=Re(e,r,true);const s=r.getBlock(a.id);if(s.type!=="space"){const r=(0,l.zj)();await Ce(t,a,{config:r});e.intersect=a?.intersect;Ke(a)}}(0,c.K2)(Te,"insertBlockPositioned");async function Ae(t,e,r,a){for(const s of e){await a(t,s,r);if(s.children){await Ae(t,s.children,r,a)}}}(0,c.K2)(Ae,"performOperations");async function Oe(t,e,r){await Ae(t,e,r,$e)}(0,c.K2)(Oe,"calculateBlockSizes");async function Ie(t,e,r){await Ae(t,e,r,Te)}(0,c.K2)(Ie,"insertBlocks");async function Be(t,e,r,a,s){const i=new p.T({multigraph:true,compound:true});i.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const n of r){if(n.size){i.setNode(n.id,{width:n.size.width,height:n.size.height,intersect:n.intersect})}}for(const n of e){if(n.start&&n.end){const e=a.getBlock(n.start);const r=a.getBlock(n.end);if(e?.size&&r?.size){const a=e.size;const o=r.size;const l=[{x:a.x,y:a.y},{x:a.x+(o.x-a.x)/2,y:a.y+(o.y-a.y)/2},{x:o.x,y:o.y}];Tt(t,{v:n.start,w:n.end,name:n.id},{...n,arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:l,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",i,s);if(n.label){await Dt(t,{...n,label:n.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:l,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"});Ct({...n,x:l[1].x,y:l[1].y},{originalPath:l})}}}}}(0,c.K2)(Be,"insertEdges");var ze=(0,c.K2)((function(t,e){return e.db.getClasses()}),"getClasses");var Me=(0,c.K2)((async function(t,e,r,a){const{securityLevel:s,block:i}=(0,l.zj)();const n=a.db;let o;if(s==="sandbox"){o=(0,g.Ltv)("#i"+e)}const d=s==="sandbox"?(0,g.Ltv)(o.nodes()[0].contentDocument.body):(0,g.Ltv)("body");const h=s==="sandbox"?d.select(`[id="${e}"]`):(0,g.Ltv)(`[id="${e}"]`);const u=["point","circle","cross"];dt(h,u,a.type,e);const p=n.getBlocks();const y=n.getBlocksFlat();const f=n.getEdges();const b=h.insert("g").attr("class","block");await Oe(b,p,n);const x=bt(n);await Ie(b,p,n);await Be(b,f,y,n,e);if(x){const t=x;const e=Math.max(1,Math.round(.125*(t.width/t.height)));const r=t.height+e+10;const a=t.width+10;const{useMaxWidth:s}=i;(0,l.a$)(h,r,a,!!s);c.Rm.debug("Here Bounds",x,t);h.attr("viewBox",`${t.x-5} ${t.y-5} ${t.width+10} ${t.height+10}`)}}),"draw");var Pe={draw:Me,getClasses:ze};var Ye={parser:f,db:q,renderer:Pe,styles:V}},10628:(t,e,r)=>{r.d(e,{o:()=>s});var a=r(70416);var s=(0,a.K2)((()=>`\n /* Font Awesome icon styling - consolidated */\n .label-icon {\n display: inline-block;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n }\n \n .node .label-icon path {\n fill: currentColor;\n stroke: revert;\n stroke-width: revert;\n }\n`),"getIconStyles")}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/5829.0e46d479b4ade4783661.js b/share/jupyter/lab/static/5829.0e46d479b4ade4783661.js new file mode 100644 index 0000000..851a8bc --- /dev/null +++ b/share/jupyter/lab/static/5829.0e46d479b4ade4783661.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5829,5338,2957,100],{67097:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>gn});var n=r(74848);var s=r(44914);var i=r(12776);var a=r(58156);var o=r.n(a);var l=r(62193);var c=r.n(l);var d=r(44383);var u=r.n(d);var h=r(42072);var m=r.n(h);var p=r(88055);var f=r.n(p);var g=r(23805);var y=r.n(g);var S=r(63560);var x=r.n(S);let v=e=>crypto.getRandomValues(new Uint8Array(e));let b=(e,t,r)=>{let n=(2<{let a="";while(true){let t=r(s);let o=s|0;while(o--){a+=e[t[o]&n]||"";if(a.length===i)return a}}}};let C=(e,t=21)=>b(e,t,v);let k=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>{t&=63;if(t<36){e+=t.toString(36)}else if(t<62){e+=(t-26).toString(36).toUpperCase()}else if(t>62){e+="-"}else{e+="_"}return e}),"");function F(){return k()}function j(e){return!Array.isArray(e)?[]:e.map((e=>({key:F(),item:e})))}function T(e){if(Array.isArray(e)){return e.map((e=>e.item))}return[]}class O extends s.Component{constructor(e){super(e);this._getNewFormDataRow=()=>{const{schema:e,registry:t}=this.props;const{schemaUtils:r}=t;let n=e.items;if((0,i.isFixedItems)(e)&&(0,i.allowAdditionalItems)(e)){n=e.additionalItems}return r.getDefaultFormState(n)};this.onAddClick=e=>{this._handleAddClick(e)};this.onAddIndexClick=e=>t=>{this._handleAddClick(t,e)};this.onCopyIndexClick=e=>t=>{if(t){t.preventDefault()}const{onChange:r,errorSchema:n}=this.props;const{keyedFormData:s}=this.state;let i;if(n){i={};for(const t in n){const r=parseInt(t);if(r<=e){x()(i,[r],n[t])}else if(r>e){x()(i,[r+1],n[t])}}}const a={key:F(),item:f()(s[e].item)};const o=[...s];if(e!==undefined){o.splice(e+1,0,a)}else{o.push(a)}this.setState({keyedFormData:o,updatedKeyedFormData:true},(()=>r(T(o),i)))};this.onDropIndexClick=e=>t=>{if(t){t.preventDefault()}const{onChange:r,errorSchema:n}=this.props;const{keyedFormData:s}=this.state;let i;if(n){i={};for(const t in n){const r=parseInt(t);if(re){x()(i,[r-1],n[t])}}}const a=s.filter(((t,r)=>r!==e));this.setState({keyedFormData:a,updatedKeyedFormData:true},(()=>r(T(a),i)))};this.onReorderClick=(e,t)=>r=>{if(r){r.preventDefault();r.currentTarget.blur()}const{onChange:n,errorSchema:s}=this.props;let i;if(s){i={};for(const r in s){const n=parseInt(r);if(n==e){x()(i,[t],s[e])}else if(n==t){x()(i,[e],s[t])}else{x()(i,[r],s[n])}}}const{keyedFormData:a}=this.state;function o(){const r=a.slice();r.splice(e,1);r.splice(t,0,a[e]);return r}const l=o();this.setState({keyedFormData:l},(()=>n(T(l),i)))};this.onChangeForIndex=e=>(t,r,n)=>{const{formData:s,onChange:i,errorSchema:a}=this.props;const o=Array.isArray(s)?s:[];const l=o.map(((r,n)=>{const s=typeof t==="undefined"?null:t;return e===n?s:r}));i(l,a&&a&&{...a,[e]:r},n)};this.onSelectChange=e=>{const{onChange:t,idSchema:r}=this.props;t(e,undefined,r&&r.$id)};const{formData:t=[]}=e;const r=j(t);this.state={keyedFormData:r,updatedKeyedFormData:false}}static getDerivedStateFromProps(e,t){if(t.updatedKeyedFormData){return{updatedKeyedFormData:false}}const r=Array.isArray(e.formData)?e.formData:[];const n=t.keyedFormData||[];const s=r.length===n.length?n.map(((e,t)=>({key:e.key,item:r[t]}))):j(r);return{keyedFormData:s}}get itemTitle(){const{schema:e,registry:t}=this.props;const{translateString:r}=t;return o()(e,[i.ITEMS_KEY,"title"],o()(e,[i.ITEMS_KEY,"description"],r(i.TranslatableString.ArrayItemTitle)))}isItemRequired(e){if(Array.isArray(e.type)){return!e.type.includes("null")}return e.type!=="null"}canAddItem(e){const{schema:t,uiSchema:r,registry:n}=this.props;let{addable:s}=(0,i.getUiOptions)(r,n.globalUiOptions);if(s!==false){if(t.maxItems!==undefined){s=e.length=t){x()(i,[r+1],n[e])}}}const a={key:F(),item:this._getNewFormDataRow()};const o=[...s];if(t!==undefined){o.splice(t,0,a)}else{o.push(a)}this.setState({keyedFormData:o,updatedKeyedFormData:true},(()=>r(T(o),i)))}render(){const{schema:e,uiSchema:t,idSchema:r,registry:s}=this.props;const{schemaUtils:a,translateString:o}=s;if(!(i.ITEMS_KEY in e)){const a=(0,i.getUiOptions)(t);const l=(0,i.getTemplate)("UnsupportedFieldTemplate",s,a);return(0,n.jsx)(l,{schema:e,idSchema:r,reason:o(i.TranslatableString.MissingItems),registry:s})}if(a.isMultiSelect(e)){return this.renderMultiSelect()}if((0,i.isCustomWidget)(t)){return this.renderCustomWidget()}if((0,i.isFixedItems)(e)){return this.renderFixedArray()}if(a.isFilesArray(e,t)){return this.renderFiles()}return this.renderNormalArray()}renderNormalArray(){const{schema:e,uiSchema:t={},errorSchema:r,idSchema:s,name:a,disabled:o=false,readonly:l=false,autofocus:c=false,required:d=false,registry:u,onBlur:h,onFocus:m,idPrefix:p,idSeparator:f="_",rawErrors:g}=this.props;const{keyedFormData:S}=this.state;const x=e.title===undefined?a:e.title;const{schemaUtils:v,formContext:b}=u;const C=(0,i.getUiOptions)(t);const k=y()(e.items)?e.items:{};const F=v.retrieveSchema(k);const j=T(this.state.keyedFormData);const O=this.canAddItem(j);const w={canAdd:O,items:S.map(((e,n)=>{const{key:i,item:o}=e;const l=o;const d=v.retrieveSchema(k,l);const u=r?r[n]:undefined;const y=s.$id+f+n;const x=v.toIdSchema(d,y,l,p,f);return this.renderArrayFieldItem({key:i,index:n,name:a&&`${a}-${n}`,canAdd:O,canMoveUp:n>0,canMoveDown:nk.retrieveSchema(e,r[t])));const O=y()(e.additionalItems)?k.retrieveSchema(e.additionalItems,r):null;if(!v||v.length{const{key:i,item:d}=r;const u=d;const m=n>=T.length;const p=(m&&y()(e.additionalItems)?k.retrieveSchema(e.additionalItems,u):T[n])||{};const b=l.$id+o+n;const C=k.toIdSchema(p,b,u,a,o);const F=m?t.additionalItems||{}:Array.isArray(t.items)?t.items[n]:t.items||{};const j=s?s[n]:undefined;return this.renderArrayFieldItem({key:i,index:n,name:c&&`${c}-${n}`,canAdd:w,canRemove:m,canMoveUp:n>=T.length+1,canMoveDown:m&&nU[e]));return{children:(0,n.jsx)(I,{name:s,index:r,schema:d,uiSchema:h,formData:u,formContext:O,errorSchema:p,idPrefix:C,idSeparator:k,idSchema:m,required:this.isItemRequired(d),onChange:this.onChangeForIndex(r),onBlur:g,onFocus:y,registry:T,disabled:v,readonly:F,hideError:b,autofocus:f,rawErrors:S}),className:"array-item",disabled:v,canAdd:a,hasCopy:U.copy,hasToolbar:U.toolbar,hasMoveUp:U.moveUp,hasMoveDown:U.moveDown,hasRemove:U.remove,index:r,totalItems:x,key:t,onAddIndexClick:this.onAddIndexClick,onCopyIndexClick:this.onCopyIndexClick,onDropIndexClick:this.onDropIndexClick,onReorderClick:this.onReorderClick,readonly:F,registry:T,schema:d,uiSchema:h}}}const w=O;function D(e){var t,r;const{schema:s,name:a,uiSchema:o,idSchema:l,formData:c,registry:d,required:u,disabled:h,readonly:m,hideError:p,autofocus:f,onChange:g,onFocus:S,onBlur:x,rawErrors:v}=e;const{title:b}=s;const{widgets:C,formContext:k,translateString:F,globalUiOptions:j}=d;const{widget:T="checkbox",title:O,label:w=true,...D}=(0,i.getUiOptions)(o,j);const E=(0,i.getWidget)(s,T,C);const I=F(i.TranslatableString.YesLabel);const A=F(i.TranslatableString.NoLabel);let _;const N=(t=O!==null&&O!==void 0?O:b)!==null&&t!==void 0?t:a;if(Array.isArray(s.oneOf)){_=(0,i.optionsList)({oneOf:s.oneOf.map((e=>{if(y()(e)){return{...e,title:e.title||(e.const===true?I:A)}}return undefined})).filter((e=>e))})}else{const e=s;const t=(r=s.enum)!==null&&r!==void 0?r:[true,false];if(!e.enumNames&&t.length===2&&t.every((e=>typeof e==="boolean"))){_=[{value:t[0],label:t[0]?I:A},{value:t[1],label:t[1]?I:A}]}else{_=(0,i.optionsList)({enum:t,enumNames:e.enumNames})}}return(0,n.jsx)(E,{options:{...D,enumOptions:_},schema:s,uiSchema:o,id:l.$id,name:a,onChange:g,onFocus:S,onBlur:x,label:N,hideLabel:!w,value:c,required:u,disabled:h,readonly:m,hideError:p,registry:d,formContext:k,autofocus:f,rawErrors:v})}const E=D;var I=r(90179);var A=r.n(I);class _ extends s.Component{constructor(e){super(e);this.onOptionChange=e=>{const{selectedOption:t,retrievedOptions:r}=this.state;const{formData:n,onChange:s,registry:i}=this.props;const{schemaUtils:a}=i;const o=e!==undefined?parseInt(e,10):-1;if(o===t){return}const l=o>=0?r[o]:undefined;const c=t>=0?r[t]:undefined;let d=a.sanitizeDataForNewSchema(l,c,n);if(d&&l){d=a.getDefaultFormState(l,d,"excludeObjectChildren")}s(d,undefined,this.getFieldId());this.setState({selectedOption:o})};const{formData:t,options:r,registry:{schemaUtils:n}}=this.props;const s=r.map((e=>n.retrieveSchema(e,t)));this.state={retrievedOptions:s,selectedOption:this.getMatchingOption(0,t,s)}}componentDidUpdate(e,t){const{formData:r,options:n,idSchema:s}=this.props;const{selectedOption:a}=this.state;let o=this.state;if(!(0,i.deepEquals)(e.options,n)){const{registry:{schemaUtils:e}}=this.props;const t=n.map((t=>e.retrieveSchema(t,r)));o={selectedOption:a,retrievedOptions:t}}if(!(0,i.deepEquals)(r,e.formData)&&s.$id===e.idSchema.$id){const{retrievedOptions:e}=o;const n=this.getMatchingOption(a,r,e);if(t&&n!==a){o={selectedOption:n,retrievedOptions:e}}}if(o!==this.state){this.setState(o)}}getMatchingOption(e,t,r){const{schema:n,registry:{schemaUtils:s}}=this.props;const a=(0,i.getDiscriminatorFieldFromSchema)(n);const o=s.getClosestMatchingOption(t,r,e,a);return o}getFieldId(){const{idSchema:e,schema:t}=this.props;return`${e.$id}${t.oneOf?"__oneof_select":"__anyof_select"}`}render(){const{name:e,disabled:t=false,errorSchema:r={},formContext:s,onBlur:a,onFocus:l,registry:d,schema:u,uiSchema:h}=this.props;const{widgets:m,fields:p,translateString:f,globalUiOptions:g,schemaUtils:y}=d;const{SchemaField:S}=p;const{selectedOption:x,retrievedOptions:v}=this.state;const{widget:b="select",placeholder:C,autofocus:k,autocomplete:F,title:j=u.title,...T}=(0,i.getUiOptions)(h,g);const O=(0,i.getWidget)({type:"number"},b,m);const w=o()(r,i.ERRORS_KEY,[]);const D=A()(r,[i.ERRORS_KEY]);const E=y.getDisplayLabel(u,h,g);const I=x>=0?v[x]||null:null;let _;if(I){const{required:e}=u;_=e?(0,i.mergeSchemas)({required:e},I):I}const N=j?i.TranslatableString.TitleOptionPrefix:i.TranslatableString.OptionPrefix;const U=j?[j]:[];const B=v.map(((e,t)=>({label:e.title||f(N,U.concat(String(t+1))),value:t})));return(0,n.jsxs)("div",{className:"panel panel-default panel-body",children:[(0,n.jsx)("div",{className:"form-group",children:(0,n.jsx)(O,{id:this.getFieldId(),name:`${e}${u.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:a,onFocus:l,disabled:t||c()(B),multiple:false,rawErrors:w,errorSchema:D,value:x>=0?x:undefined,options:{enumOptions:B,...T},registry:d,formContext:s,placeholder:C,autocomplete:F,autofocus:k,label:j!==null&&j!==void 0?j:e,hideLabel:!E})}),I!==null&&(0,n.jsx)(S,{...this.props,schema:_})]})}}const N=_;const U=/\.([0-9]*0)*$/;const B=/[0.]0*$/;function $(e){const{registry:t,onChange:r,formData:a,value:o}=e;const[l,c]=(0,s.useState)(o);const{StringField:d}=t.fields;let u=a;const h=(0,s.useCallback)((e=>{c(e);if(`${e}`.charAt(0)==="."){e=`0${e}`}const t=typeof e==="string"&&e.match(U)?(0,i.asNumber)(e.replace(B,"")):(0,i.asNumber)(e);r(t)}),[r]);if(typeof l==="string"&&typeof u==="number"){const e=new RegExp(`${u}`.replace(".","\\.")+"\\.?0*$");if(l.match(e)){u=l}}return(0,n.jsx)(d,{...e,formData:u,onChange:h})}const R=$;function P(){return P=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e)),{for:"htmlFor"}),K={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},W=["style","script"],z=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Y=/mailto:/i,H=/\n{2,}$/,G=/^(\s*>[\s\S]*?)(?=\n{2,})/,J=/^ *> ?/gm,Z=/^ {2,}\n/,Q=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,X=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,ee=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,te=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,re=/^(?:\n *)*\n/,ne=/\r\n?/g,se=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,ie=/^\[\^([^\]]+)]/,ae=/\f/g,oe=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,le=/^\s*?\[(x|\s)\]/,ce=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,de=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,ue=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,he=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,me=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,pe=/^)/,fe=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,ge=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,ye=/^\{.*\}$/,Se=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,xe=/^<([^ >]+@[^ >]+)>/,ve=/^<([^ >]+:\/[^ >]+)>/,be=/-([a-z])?/gi,Ce=/^(.*\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,ke=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,Fe=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,je=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Te=/(\[|\])/g,Oe=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,we=/\t/g,De=/(^ *\||\| *$)/g,Ee=/^ *:-+: *$/,Ie=/^ *:-+ *$/,Ae=/^ *-+: *$/,_e="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",Ne=new RegExp(`^([*_])\\1${_e}\\1\\1(?!\\1)`),Ue=new RegExp(`^([*_])${_e}\\1(?!\\1|\\w)`),Be=new RegExp(`^==${_e}==`),$e=new RegExp(`^~~${_e}~~`),Re=/^\\([^0-9A-Za-z\s])/,Pe=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,qe=/^\n+/,Le=/^([ \t]*)/,Me=/\\([^\\])/g,Ve=/ *\n+$/,Ke=/(?:^|\n)( *)$/,We="(?:\\d+\\.)",ze="(?:[*+-])";function Ye(e){return"( *)("+(1===e?We:ze)+") +"}const He=Ye(1),Ge=Ye(2);function Je(e){return new RegExp("^"+(1===e?He:Ge))}const Ze=Je(1),Qe=Je(2);function Xe(e){return new RegExp("^"+(1===e?He:Ge)+"[^\\n]*(?:\\n(?!\\1"+(1===e?We:ze)+" )[^\\n]*)*(\\n|$)","gm")}const et=Xe(1),tt=Xe(2);function rt(e){const t=1===e?We:ze;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const nt=rt(1),st=rt(2);function it(e,t){const r=1===t,n=r?nt:st,s=r?et:tt,i=r?Ze:Qe;return{match(e,t,r){const s=Ke.exec(r);return s&&(t.list||!t.inline&&!t.simple)?n.exec(e=s[1]+e):null},order:1,parse(e,t,n){const a=r?+e[2]:void 0,o=e[0].replace(H,"\n").match(s);let l=!1;return{items:o.map((function(e,r){const s=i.exec(e)[0].length,a=new RegExp("^ {1,"+s+"}","gm"),c=e.replace(a,"").replace(i,""),d=r===o.length-1,u=-1!==c.indexOf("\n\n")||d&&l;l=u;const h=n.inline,m=n.list;let p;n.list=!0,u?(n.inline=!1,p=c.replace(Ve,"\n\n")):(n.inline=!0,p=c.replace(Ve,""));const f=t(p,n);return n.inline=h,n.list=m,f})),ordered:r,start:a}},render:(t,r,n)=>e(t.ordered?"ol":"ul",{key:n.key,start:t.type===L.orderedList?t.start:void 0},t.items.map((function(t,s){return e("li",{key:s},r(t,n))})))}}const at=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),ot=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,lt=[G,X,ee,ce,ue,de,pe,Ce,et,nt,tt,st],ct=[...lt,/^[^\n]+(?: \n|\n{2,})/,he,ge];function dt(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function ut(e){return Ae.test(e)?"right":Ee.test(e)?"center":Ie.test(e)?"left":null}function ht(e,t,r,n){const s=r.inTable;r.inTable=!0;let i=e.trim().split(/( *(?:`[^`]*`|<.*?>.*?<\/.*?>(?!<\/.*?>)|\\\||\|) *)/).reduce(((e,s)=>("|"===s.trim()?e.push(n?{type:L.tableSeparator}:{type:L.text,text:s}):""!==s&&e.push.apply(e,t(s,r)),e)),[]);r.inTable=s;let a=[[]];return i.forEach((function(e,t){e.type===L.tableSeparator?0!==t&&t!==i.length-1&&a.push([]):(e.type!==L.text||null!=i[t+1]&&i[t+1].type!==L.tableSeparator||(e.text=e.text.trimEnd()),a[a.length-1].push(e))})),a}function mt(e,t,r){r.inline=!0;const n=e[2]?e[2].replace(De,"").split("|").map(ut):[],s=e[3]?function(e,t,r){return e.trim().split("\n").map((function(e){return ht(e,t,r,!0)}))}(e[3],t,r):[],i=ht(e[1],t,r,!!s.length);return r.inline=!1,s.length?{align:n,cells:s,header:i,type:L.table}:{children:i,type:L.paragraph}}function pt(e,t){return null==e.align[t]?{}:{textAlign:e.align[t]}}function ft(e){return function(t,r){return r.inline?e.exec(t):null}}function gt(e){return function(t,r){return r.inline||r.simple?e.exec(t):null}}function yt(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function St(e){return function(t){return e.exec(t)}}function xt(e,t,r){if(t.inline||t.simple)return null;if(r&&!r.endsWith("\n"))return null;let n="";e.split("\n").every((e=>!lt.some((t=>t.test(e)))&&(n+=e+"\n",e.trim())));const s=n.trimEnd();return""==s?null:[n,s]}function vt(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch(e){return null}return e}function bt(e){return e.replace(Me,"$1")}function Ct(e,t,r){const n=r.inline||!1,s=r.simple||!1;r.inline=!0,r.simple=!0;const i=e(t,r);return r.inline=n,r.simple=s,i}function kt(e,t,r){const n=r.inline||!1,s=r.simple||!1;r.inline=!1,r.simple=!0;const i=e(t,r);return r.inline=n,r.simple=s,i}function Ft(e,t,r){const n=r.inline||!1;r.inline=!1;const s=e(t,r);return r.inline=n,s}const jt=(e,t,r)=>({children:Ct(t,e[1],r)});function Tt(){return{}}function Ot(){return null}function wt(...e){return e.filter(Boolean).join(" ")}function Dt(e,t,r){let n=e;const s=t.split(".");for(;s.length&&(n=n[s[0]],void 0!==n);)s.shift();return n||r}function Et(e="",t={}){function r(e,r,...n){const s=Dt(t.overrides,`${e}.props`,{});return t.createElement(function(e,t){const r=Dt(t,e);return r?"function"==typeof r||"object"==typeof r&&"render"in r?r:Dt(t,`${e}.component`,e):e}(e,t.overrides),P({},r,s,{className:wt(null==r?void 0:r.className,s.className)||void 0}),...n)}function n(e){e=e.replace(oe,"");let n=!1;t.forceInline?n=!0:t.forceBlock||(n=!1===Oe.test(e));const i=d(c(n?e:`${e.trimEnd().replace(qe,"")}\n\n`,{inline:n}));for(;"string"==typeof i[i.length-1]&&!i[i.length-1].trim();)i.pop();if(null===t.wrapper)return i;const a=t.wrapper||(n?"span":"div");let o;if(i.length>1||t.forceWrapper)o=i;else{if(1===i.length)return o=i[0],"string"==typeof o?r("span",{key:"outer"},o):o;o=null}return s.createElement(a,{key:"outer"},o)}function i(e,r){const i=r.match(z);return i?i.reduce((function(r,i,a){const o=i.indexOf("=");if(-1!==o){const l=function(e){return-1!==e.indexOf("-")&&null===e.match(fe)&&(e=e.replace(be,(function(e,t){return t.toUpperCase()}))),e}(i.slice(0,o)).trim(),c=function(e){const t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(i.slice(o+1).trim()),d=V[l]||l,u=r[d]=function(e,t,r,n){return"style"===t?r.split(/;\s?/).reduce((function(e,t){const r=t.slice(0,t.indexOf(":"));return e[r.trim().replace(/(-[a-z])/g,(e=>e[1].toUpperCase()))]=t.slice(r.length+1).trim(),e}),{}):"href"===t||"src"===t?n(r,e,t):(r.match(ye)&&(r=r.slice(1,r.length-1)),"true"===r||"false"!==r&&r)}(e,l,c,t.sanitizer);"string"==typeof u&&(he.test(u)||ge.test(u))&&(r[d]=s.cloneElement(n(u.trim()),{key:a}))}else"style"!==i&&(r[V[i]||i]=!0);return r}),{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||vt,t.slugify=t.slugify||dt,t.namedCodesToUnicode=t.namedCodesToUnicode?P({},K,t.namedCodesToUnicode):K,t.createElement=t.createElement||s.createElement;const a=[],o={},l={[L.blockQuote]:{match:yt(G),order:1,parse:(e,t,r)=>({children:t(e[0].replace(J,""),r)}),render:(e,t,n)=>r("blockquote",{key:n.key},t(e.children,n))},[L.breakLine]:{match:St(Z),order:1,parse:Tt,render:(e,t,n)=>r("br",{key:n.key})},[L.breakThematic]:{match:yt(Q),order:1,parse:Tt,render:(e,t,n)=>r("hr",{key:n.key})},[L.codeBlock]:{match:yt(ee),order:0,parse:e=>({lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(e,t,n)=>r("pre",{key:n.key},r("code",P({},e.attrs,{className:e.lang?`lang-${e.lang}`:""}),e.text))},[L.codeFenced]:{match:yt(X),order:0,parse:e=>({attrs:i("code",e[3]||""),lang:e[2]||void 0,text:e[4],type:L.codeBlock})},[L.codeInline]:{match:gt(te),order:3,parse:e=>({text:e[2]}),render:(e,t,n)=>r("code",{key:n.key},e.text)},[L.footnote]:{match:yt(se),order:0,parse:e=>(a.push({footnote:e[2],identifier:e[1]}),{}),render:Ot},[L.footnoteReference]:{match:ft(ie),order:1,parse:e=>({target:`#${t.slugify(e[1],dt)}`,text:e[1]}),render:(e,n,s)=>r("a",{key:s.key,href:t.sanitizer(e.target,"a","href")},r("sup",{key:s.key},e.text))},[L.gfmTask]:{match:ft(le),order:1,parse:e=>({completed:"x"===e[1].toLowerCase()}),render:(e,t,n)=>r("input",{checked:e.completed,key:n.key,readOnly:!0,type:"checkbox"})},[L.heading]:{match:yt(t.enforceAtxHeadings?de:ce),order:1,parse:(e,r,n)=>({children:Ct(r,e[2],n),id:t.slugify(e[2],dt),level:e[1].length}),render:(e,t,n)=>r(`h${e.level}`,{id:e.id,key:n.key},t(e.children,n))},[L.headingSetext]:{match:yt(ue),order:0,parse:(e,t,r)=>({children:Ct(t,e[1],r),level:"="===e[2]?1:2,type:L.heading})},[L.htmlBlock]:{match:St(he),order:1,parse(e,t,r){const[,n]=e[3].match(Le),s=new RegExp(`^${n}`,"gm"),a=e[3].replace(s,""),o=(l=a,ct.some((e=>e.test(l)))?Ft:Ct);var l;const c=e[1].toLowerCase(),d=-1!==W.indexOf(c),u=(d?c:e[1]).trim(),h={attrs:i(u,e[2]),noInnerParse:d,tag:u};return r.inAnchor=r.inAnchor||"a"===c,d?h.text=e[3]:h.children=o(t,a,r),r.inAnchor=!1,h},render:(e,t,n)=>r(e.tag,P({key:n.key},e.attrs),e.text||t(e.children,n))},[L.htmlSelfClosing]:{match:St(ge),order:1,parse(e){const t=e[1].trim();return{attrs:i(t,e[2]||""),tag:t}},render:(e,t,n)=>r(e.tag,P({},e.attrs,{key:n.key}))},[L.htmlComment]:{match:St(pe),order:1,parse:()=>({}),render:Ot},[L.image]:{match:gt(ot),order:1,parse:e=>({alt:e[1],target:bt(e[2]),title:e[3]}),render:(e,n,s)=>r("img",{key:s.key,alt:e.alt||void 0,title:e.title||void 0,src:t.sanitizer(e.target,"img","src")})},[L.link]:{match:ft(at),order:3,parse:(e,t,r)=>({children:kt(t,e[1],r),target:bt(e[2]),title:e[3]}),render:(e,n,s)=>r("a",{key:s.key,href:t.sanitizer(e.target,"a","href"),title:e.title},n(e.children,s))},[L.linkAngleBraceStyleDetector]:{match:ft(ve),order:0,parse:e=>({children:[{text:e[1],type:L.text}],target:e[1],type:L.link})},[L.linkBareUrlDetector]:{match:(e,t)=>t.inAnchor?null:ft(Se)(e,t),order:0,parse:e=>({children:[{text:e[1],type:L.text}],target:e[1],title:void 0,type:L.link})},[L.linkMailtoDetector]:{match:ft(xe),order:0,parse(e){let t=e[1],r=e[1];return Y.test(r)||(r="mailto:"+r),{children:[{text:t.replace("mailto:",""),type:L.text}],target:r,type:L.link}}},[L.orderedList]:it(r,1),[L.unorderedList]:it(r,2),[L.newlineCoalescer]:{match:yt(re),order:3,parse:Tt,render:()=>"\n"},[L.paragraph]:{match:xt,order:3,parse:jt,render:(e,t,n)=>r("p",{key:n.key},t(e.children,n))},[L.ref]:{match:ft(ke),order:0,parse:e=>(o[e[1]]={target:e[2],title:e[4]},{}),render:Ot},[L.refImage]:{match:gt(Fe),order:0,parse:e=>({alt:e[1]||void 0,ref:e[2]}),render:(e,n,s)=>o[e.ref]?r("img",{key:s.key,alt:e.alt,src:t.sanitizer(o[e.ref].target,"img","src"),title:o[e.ref].title}):null},[L.refLink]:{match:ft(je),order:0,parse:(e,t,r)=>({children:t(e[1],r),fallbackChildren:t(e[0].replace(Te,"\\$1"),r),ref:e[2]}),render:(e,n,s)=>o[e.ref]?r("a",{key:s.key,href:t.sanitizer(o[e.ref].target,"a","href"),title:o[e.ref].title},n(e.children,s)):r("span",{key:s.key},n(e.fallbackChildren,s))},[L.table]:{match:yt(Ce),order:1,parse:mt,render(e,t,n){const s=e;return r("table",{key:n.key},r("thead",null,r("tr",null,s.header.map((function(e,i){return r("th",{key:i,style:pt(s,i)},t(e,n))})))),r("tbody",null,s.cells.map((function(e,i){return r("tr",{key:i},e.map((function(e,i){return r("td",{key:i,style:pt(s,i)},t(e,n))})))}))))}},[L.text]:{match:St(Pe),order:4,parse:e=>({text:e[0].replace(me,((e,r)=>t.namedCodesToUnicode[r]?t.namedCodesToUnicode[r]:e))}),render:e=>e.text},[L.textBolded]:{match:gt(Ne),order:2,parse:(e,t,r)=>({children:t(e[2],r)}),render:(e,t,n)=>r("strong",{key:n.key},t(e.children,n))},[L.textEmphasized]:{match:gt(Ue),order:3,parse:(e,t,r)=>({children:t(e[2],r)}),render:(e,t,n)=>r("em",{key:n.key},t(e.children,n))},[L.textEscaped]:{match:gt(Re),order:1,parse:e=>({text:e[1],type:L.text})},[L.textMarked]:{match:gt(Be),order:3,parse:jt,render:(e,t,n)=>r("mark",{key:n.key},t(e.children,n))},[L.textStrikethroughed]:{match:gt($e),order:3,parse:jt,render:(e,t,n)=>r("del",{key:n.key},t(e.children,n))}};!0===t.disableParsingRawHTML&&(delete l[L.htmlBlock],delete l[L.htmlSelfClosing]);const c=function(e){let t=Object.keys(e);function r(n,s){let i=[],a="";for(;n;){let o=0;for(;oi(r,n,s)),r,n,s):i(r,n,s)}}(l,t.renderRule),function e(t,r={}){if(Array.isArray(t)){const n=r.key,s=[];let i=!1;for(let a=0;a{let{children:t="",options:r}=e,n=function(e,t){if(null==e)return{};var r,n,s={},i=Object.keys(e);for(n=0;n=0||(s[r]=e[r]);return s}(e,q);return s.cloneElement(Et(t,r),n)};var At=r(61448);var _t=r.n(At);var Nt=r(73357);var Ut=r.n(Nt);class Bt extends s.Component{constructor(){super(...arguments);this.state={wasPropertyKeyModified:false,additionalProperties:{}};this.onPropertyChange=(e,t=false)=>(r,n,s)=>{const{formData:i,onChange:a,errorSchema:o}=this.props;if(r===undefined&&t){r=""}const l={...i,[e]:r};a(l,o&&o&&{...o,[e]:n},s)};this.onDropPropertyClick=e=>t=>{t.preventDefault();const{onChange:r,formData:n}=this.props;const s={...n};Ut()(s,e);r(s)};this.getAvailableKey=(e,t)=>{const{uiSchema:r,registry:n}=this.props;const{duplicateKeySuffixSeparator:s="-"}=(0,i.getUiOptions)(r,n.globalUiOptions);let a=0;let o=e;while(_t()(t,o)){o=`${e}${s}${++a}`}return o};this.onKeyChange=e=>(t,r)=>{if(e===t){return}const{formData:n,onChange:s,errorSchema:i}=this.props;t=this.getAvailableKey(t,n);const a={...n};const o={[e]:t};const l=Object.keys(a).map((e=>{const t=o[e]||e;return{[t]:a[e]}}));const c=Object.assign({},...l);this.setState({wasPropertyKeyModified:true});s(c,i&&i&&{...i,[t]:r})};this.handleAddClick=e=>()=>{if(!e.additionalProperties){return}const{formData:t,onChange:r,registry:n}=this.props;const s={...t};let a=undefined;if(y()(e.additionalProperties)){a=e.additionalProperties.type;let r=e.additionalProperties;if(i.REF_KEY in r){const{schemaUtils:e}=n;r=e.retrieveSchema({$ref:r[i.REF_KEY]},t);a=r.type}if(!a&&(i.ANY_OF_KEY in r||i.ONE_OF_KEY in r)){a="object"}}const o=this.getAvailableKey("newKey",s);x()(s,o,this.getDefaultValue(a));r(s)}}isRequired(e){const{schema:t}=this.props;return Array.isArray(t.required)&&t.required.indexOf(e)!==-1}getDefaultValue(e){const{registry:{translateString:t}}=this.props;switch(e){case"array":return[];case"boolean":return false;case"null":return null;case"number":return 0;case"object":return{};case"string":default:return t(i.TranslatableString.NewStringDefault)}}render(){var e,t,r;const{schema:s,uiSchema:a={},formData:l,errorSchema:c,idSchema:d,name:u,required:h=false,disabled:m=false,readonly:p=false,hideError:f,idPrefix:g,idSeparator:y,onBlur:S,onFocus:x,registry:v}=this.props;const{fields:b,formContext:C,schemaUtils:k,translateString:F,globalUiOptions:j}=v;const{SchemaField:T}=b;const O=k.retrieveSchema(s,l);const w=(0,i.getUiOptions)(a,j);const{properties:D={}}=O;const E=(t=(e=w.title)!==null&&e!==void 0?e:O.title)!==null&&t!==void 0?t:u;const I=(r=w.description)!==null&&r!==void 0?r:O.description;let A;try{const e=Object.keys(D);A=(0,i.orderProperties)(e,w.order)}catch(U){return(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"config-error",style:{color:"red"},children:(0,n.jsx)(It,{children:F(i.TranslatableString.InvalidObjectField,[u||"root",U.message])})}),(0,n.jsx)("pre",{children:JSON.stringify(O)})]})}const _=(0,i.getTemplate)("ObjectFieldTemplate",v,w);const N={title:w.label===false?"":E,description:w.label===false?undefined:I,properties:A.map((e=>{const t=_t()(O,[i.PROPERTIES_KEY,e,i.ADDITIONAL_PROPERTY_FLAG]);const r=t?a.additionalProperties:a[e];const s=(0,i.getUiOptions)(r).widget==="hidden";const u=o()(d,[e],{});return{content:(0,n.jsx)(T,{name:e,required:this.isRequired(e),schema:o()(O,[i.PROPERTIES_KEY,e],{}),uiSchema:r,errorSchema:o()(c,e),idSchema:u,idPrefix:g,idSeparator:y,formData:o()(l,e),formContext:C,wasPropertyKeyModified:this.state.wasPropertyKeyModified,onKeyChange:this.onKeyChange(e),onChange:this.onPropertyChange(e,t),onBlur:S,onFocus:x,registry:v,disabled:m,readonly:p,hideError:f,onDropPropertyClick:this.onDropPropertyClick},e),name:e,readonly:p,disabled:m,required:h,hidden:s}})),readonly:p,disabled:m,required:h,idSchema:d,uiSchema:a,errorSchema:c,schema:O,formData:l,formContext:C,registry:v};return(0,n.jsx)(_,{...N,onAddClick:this.handleAddClick})}}const $t=Bt;const Rt={array:"ArrayField",boolean:"BooleanField",integer:"NumberField",number:"NumberField",object:"ObjectField",string:"StringField",null:"NullField"};function Pt(e,t,r,s){const a=t.field;const{fields:o,translateString:l}=s;if(typeof a==="function"){return a}if(typeof a==="string"&&a in o){return o[a]}const c=(0,i.getSchemaType)(e);const d=Array.isArray(c)?c[0]:c||"";const u=e.$id;let h=Rt[d];if(u&&u in o){h=u}if(!h&&(e.anyOf||e.oneOf)){return()=>null}return h in o?o[h]:()=>{const a=(0,i.getTemplate)("UnsupportedFieldTemplate",s,t);return(0,n.jsx)(a,{schema:e,idSchema:r,reason:l(i.TranslatableString.UnknownFieldType,[String(e.type)]),registry:s})}}function qt(e){const{schema:t,idSchema:r,uiSchema:a,formData:o,errorSchema:l,idPrefix:c,idSeparator:d,name:u,onChange:h,onKeyChange:m,onDropPropertyClick:p,required:f,registry:g,wasPropertyKeyModified:S=false}=e;const{formContext:x,schemaUtils:v,globalUiOptions:b}=g;const C=(0,i.getUiOptions)(a,b);const k=(0,i.getTemplate)("FieldTemplate",g,C);const F=(0,i.getTemplate)("DescriptionFieldTemplate",g,C);const j=(0,i.getTemplate)("FieldHelpTemplate",g,C);const T=(0,i.getTemplate)("FieldErrorTemplate",g,C);const O=v.retrieveSchema(t,o);const w=r[i.ID_KEY];const D=(0,i.mergeObjects)(v.toIdSchema(O,w,o,c,d),r);const E=(0,s.useCallback)(((e,t,r)=>{const n=r||w;return h(e,t,n)}),[w,h]);const I=Pt(O,C,D,g);const _=Boolean(e.disabled||C.disabled);const N=Boolean(e.readonly||C.readonly||e.schema.readOnly||O.readOnly);const U=C.hideError;const B=U===undefined?e.hideError:Boolean(U);const $=Boolean(e.autofocus||C.autofocus);if(Object.keys(O).length===0){return null}const R=v.getDisplayLabel(O,a,b);const{__errors:P,...q}=l||{};const L=A()(a,["ui:classNames","classNames","ui:style"]);if(i.UI_OPTIONS_KEY in L){L[i.UI_OPTIONS_KEY]=A()(L[i.UI_OPTIONS_KEY],["classNames","style"])}const M=(0,n.jsx)(I,{...e,onChange:E,idSchema:D,schema:O,uiSchema:L,disabled:_,readonly:N,hideError:B,autofocus:$,errorSchema:q,formContext:x,rawErrors:P});const V=D[i.ID_KEY];let K;if(S){K=u}else{K=i.ADDITIONAL_PROPERTY_FLAG in O?u:C.title||e.schema.title||O.title||u}const W=C.description||e.schema.description||O.description||"";const z=C.enableMarkdownInDescription?(0,n.jsx)(It,{children:W}):W;const Y=C.help;const H=C.widget==="hidden";const G=["form-group","field",`field-${(0,i.getSchemaType)(O)}`];if(!B&&P&&P.length>0){G.push("field-error has-error has-danger")}if(a===null||a===void 0?void 0:a.classNames){if(false){}G.push(a.classNames)}if(C.classNames){G.push(C.classNames)}const J=(0,n.jsx)(j,{help:Y,idSchema:D,schema:O,uiSchema:a,hasErrors:!B&&P&&P.length>0,registry:g});const Z=B||(O.anyOf||O.oneOf)&&!v.isSelect(O)?undefined:(0,n.jsx)(T,{errors:P,errorSchema:l,idSchema:D,schema:O,uiSchema:a,registry:g});const Q={description:(0,n.jsx)(F,{id:(0,i.descriptionId)(V),description:z,schema:O,uiSchema:a,registry:g}),rawDescription:W,help:J,rawHelp:typeof Y==="string"?Y:undefined,errors:Z,rawErrors:B?undefined:P,id:V,label:K,hidden:H,onChange:h,onKeyChange:m,onDropPropertyClick:p,required:f,disabled:_,readonly:N,hideError:B,displayLabel:R,classNames:G.join(" ").trim(),style:C.style,formContext:x,formData:o,schema:O,uiSchema:a,registry:g};const X=g.fields.AnyOfField;const ee=g.fields.OneOfField;const te=(a===null||a===void 0?void 0:a["ui:field"])&&(a===null||a===void 0?void 0:a["ui:fieldReplacesAnyOrOneOf"])===true;return(0,n.jsx)(k,{...Q,children:(0,n.jsxs)(n.Fragment,{children:[M,O.anyOf&&!te&&!v.isSelect(O)&&(0,n.jsx)(X,{name:u,disabled:_,readonly:N,hideError:B,errorSchema:l,formData:o,formContext:x,idPrefix:c,idSchema:D,idSeparator:d,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:O.anyOf.map((e=>v.retrieveSchema(y()(e)?e:{},o))),registry:g,schema:O,uiSchema:a}),O.oneOf&&!te&&!v.isSelect(O)&&(0,n.jsx)(ee,{name:u,disabled:_,readonly:N,hideError:B,errorSchema:l,formData:o,formContext:x,idPrefix:c,idSchema:D,idSeparator:d,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:O.oneOf.map((e=>v.retrieveSchema(y()(e)?e:{},o))),registry:g,schema:O,uiSchema:a})]})})}class Lt extends s.Component{shouldComponentUpdate(e){return!(0,i.deepEquals)(this.props,e)}render(){return(0,n.jsx)(qt,{...this.props})}}const Mt=Lt;function Vt(e){var t;const{schema:r,name:s,uiSchema:a,idSchema:o,formData:l,required:c,disabled:d=false,readonly:u=false,autofocus:h=false,onChange:m,onBlur:p,onFocus:f,registry:g,rawErrors:y,hideError:S}=e;const{title:x,format:v}=r;const{widgets:b,formContext:C,schemaUtils:k,globalUiOptions:F}=g;const j=k.isSelect(r)?(0,i.optionsList)(r):undefined;let T=j?"select":"text";if(v&&(0,i.hasWidget)(r,v,b)){T=v}const{widget:O=T,placeholder:w="",title:D,...E}=(0,i.getUiOptions)(a);const I=k.getDisplayLabel(r,a,F);const A=(t=D!==null&&D!==void 0?D:x)!==null&&t!==void 0?t:s;const _=(0,i.getWidget)(r,O,b);return(0,n.jsx)(_,{options:{...E,enumOptions:j},schema:r,uiSchema:a,id:o.$id,name:s,label:A,hideLabel:!I,hideError:S,value:l,onChange:m,onBlur:p,onFocus:f,required:c,disabled:d,readonly:u,formContext:C,autofocus:h,registry:g,placeholder:w,rawErrors:y})}const Kt=Vt;function Wt(e){const{formData:t,onChange:r}=e;(0,s.useEffect)((()=>{if(t===undefined){r(null)}}),[t,r]);return null}const zt=Wt;function Yt(){return{AnyOfField:N,ArrayField:w,BooleanField:E,NumberField:R,ObjectField:$t,OneOfField:N,SchemaField:Mt,StringField:Kt,NullField:zt}}const Ht=Yt;function Gt(e){const{idSchema:t,description:r,registry:s,schema:a,uiSchema:o}=e;const l=(0,i.getUiOptions)(o,s.globalUiOptions);const{label:c=true}=l;if(!r||!c){return null}const d=(0,i.getTemplate)("DescriptionFieldTemplate",s,l);return(0,n.jsx)(d,{id:(0,i.descriptionId)(t),description:r,schema:a,uiSchema:o,registry:s})}function Jt(e){const{children:t,className:r,disabled:s,hasToolbar:i,hasMoveDown:a,hasMoveUp:o,hasRemove:l,hasCopy:c,index:d,onCopyIndexClick:u,onDropIndexClick:h,onReorderClick:m,readonly:p,registry:f,uiSchema:g}=e;const{CopyButton:y,MoveDownButton:S,MoveUpButton:x,RemoveButton:v}=f.templates.ButtonTemplates;const b={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return(0,n.jsxs)("div",{className:r,children:[(0,n.jsx)("div",{className:i?"col-xs-9":"col-xs-12",children:t}),i&&(0,n.jsx)("div",{className:"col-xs-3 array-item-toolbox",children:(0,n.jsxs)("div",{className:"btn-group",style:{display:"flex",justifyContent:"space-around"},children:[(o||a)&&(0,n.jsx)(x,{style:b,disabled:s||p||!o,onClick:m(d,d-1),uiSchema:g,registry:f}),(o||a)&&(0,n.jsx)(S,{style:b,disabled:s||p||!a,onClick:m(d,d+1),uiSchema:g,registry:f}),c&&(0,n.jsx)(y,{style:b,disabled:s||p,onClick:u(d),uiSchema:g,registry:f}),l&&(0,n.jsx)(v,{style:b,disabled:s||p,onClick:h(d),uiSchema:g,registry:f})]})})]})}function Zt(e){const{canAdd:t,className:r,disabled:s,idSchema:a,uiSchema:o,items:l,onAddClick:c,readonly:d,registry:u,required:h,schema:m,title:p}=e;const f=(0,i.getUiOptions)(o);const g=(0,i.getTemplate)("ArrayFieldDescriptionTemplate",u,f);const y=(0,i.getTemplate)("ArrayFieldItemTemplate",u,f);const S=(0,i.getTemplate)("ArrayFieldTitleTemplate",u,f);const{ButtonTemplates:{AddButton:x}}=u.templates;return(0,n.jsxs)("fieldset",{className:r,id:a.$id,children:[(0,n.jsx)(S,{idSchema:a,title:f.title||p,required:h,schema:m,uiSchema:o,registry:u}),(0,n.jsx)(g,{idSchema:a,description:f.description||m.description,schema:m,uiSchema:o,registry:u}),(0,n.jsx)("div",{className:"row array-item-list",children:l&&l.map((({key:e,...t})=>(0,n.jsx)(y,{...t},e)))}),t&&(0,n.jsx)(x,{className:"array-item-add",onClick:c,disabled:s||d,uiSchema:o,registry:u})]})}function Qt(e){const{idSchema:t,title:r,schema:s,uiSchema:a,required:o,registry:l}=e;const c=(0,i.getUiOptions)(a,l.globalUiOptions);const{label:d=true}=c;if(!r||!d){return null}const u=(0,i.getTemplate)("TitleFieldTemplate",l,c);return(0,n.jsx)(u,{id:(0,i.titleId)(t),title:r,required:o,schema:s,uiSchema:a,registry:l})}function Xt(e){const{id:t,name:r,value:a,readonly:o,disabled:l,autofocus:c,onBlur:d,onFocus:u,onChange:h,onChangeOverride:m,options:p,schema:f,uiSchema:g,formContext:y,registry:S,rawErrors:x,type:v,hideLabel:b,hideError:C,...k}=e;if(!t){console.log("No id for",e);throw new Error(`no id for props ${JSON.stringify(e)}`)}const F={...k,...(0,i.getInputProps)(f,v,p)};let j;if(F.type==="number"||F.type==="integer"){j=a||a===0?a:""}else{j=a==null?"":a}const T=(0,s.useCallback)((({target:{value:e}})=>h(e===""?p.emptyValue:e)),[h,p]);const O=(0,s.useCallback)((({target:{value:e}})=>d(t,e)),[d,t]);const w=(0,s.useCallback)((({target:{value:e}})=>u(t,e)),[u,t]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("input",{id:t,name:t,className:"form-control",readOnly:o,disabled:l,autoFocus:c,value:j,...F,list:f.examples?(0,i.examplesId)(t):undefined,onChange:m||T,onBlur:O,onFocus:w,"aria-describedby":(0,i.ariaDescribedByIds)(t,!!f.examples)}),Array.isArray(f.examples)&&(0,n.jsx)("datalist",{id:(0,i.examplesId)(t),children:f.examples.concat(f.default&&!f.examples.includes(f.default)?[f.default]:[]).map((e=>(0,n.jsx)("option",{value:e},e)))},`datalist_${t}`)]})}function er({uiSchema:e}){const{submitText:t,norender:r,props:s={}}=(0,i.getSubmitButtonOptions)(e);if(r){return null}return(0,n.jsx)("div",{children:(0,n.jsx)("button",{type:"submit",...s,className:`btn btn-info ${s.className||""}`,children:t})})}function tr(e){const{iconType:t="default",icon:r,className:s,uiSchema:i,registry:a,...o}=e;return(0,n.jsx)("button",{type:"button",className:`btn btn-${t} ${s}`,...o,children:(0,n.jsx)("i",{className:`glyphicon glyphicon-${r}`})})}function rr(e){const{registry:{translateString:t}}=e;return(0,n.jsx)(tr,{title:t(i.TranslatableString.CopyButton),className:"array-item-copy",...e,icon:"copy"})}function nr(e){const{registry:{translateString:t}}=e;return(0,n.jsx)(tr,{title:t(i.TranslatableString.MoveDownButton),className:"array-item-move-down",...e,icon:"arrow-down"})}function sr(e){const{registry:{translateString:t}}=e;return(0,n.jsx)(tr,{title:t(i.TranslatableString.MoveUpButton),className:"array-item-move-up",...e,icon:"arrow-up"})}function ir(e){const{registry:{translateString:t}}=e;return(0,n.jsx)(tr,{title:t(i.TranslatableString.RemoveButton),className:"array-item-remove",...e,iconType:"danger",icon:"remove"})}function ar({className:e,onClick:t,disabled:r,registry:s}){const{translateString:a}=s;return(0,n.jsx)("div",{className:"row",children:(0,n.jsx)("p",{className:`col-xs-3 col-xs-offset-9 text-right ${e}`,children:(0,n.jsx)(tr,{iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:a(i.TranslatableString.AddButton),onClick:t,disabled:r,registry:s})})})}function or(){return{SubmitButton:er,AddButton:ar,CopyButton:rr,MoveDownButton:nr,MoveUpButton:sr,RemoveButton:ir}}const lr=or;function cr(e){const{id:t,description:r}=e;if(!r){return null}if(typeof r==="string"){return(0,n.jsx)("p",{id:t,className:"field-description",children:r})}else{return(0,n.jsx)("div",{id:t,className:"field-description",children:r})}}function dr({errors:e,registry:t}){const{translateString:r}=t;return(0,n.jsxs)("div",{className:"panel panel-danger errors",children:[(0,n.jsx)("div",{className:"panel-heading",children:(0,n.jsx)("h3",{className:"panel-title",children:r(i.TranslatableString.ErrorsLabel)})}),(0,n.jsx)("ul",{className:"list-group",children:e.map(((e,t)=>(0,n.jsx)("li",{className:"list-group-item text-danger",children:e.stack},t)))})]})}const ur="*";function hr(e){const{label:t,required:r,id:s}=e;if(!t){return null}return(0,n.jsxs)("label",{className:"control-label",htmlFor:s,children:[t,r&&(0,n.jsx)("span",{className:"required",children:ur})]})}function mr(e){const{id:t,label:r,children:s,errors:a,help:o,description:l,hidden:c,required:d,displayLabel:u,registry:h,uiSchema:m}=e;const p=(0,i.getUiOptions)(m);const f=(0,i.getTemplate)("WrapIfAdditionalTemplate",h,p);if(c){return(0,n.jsx)("div",{className:"hidden",children:s})}return(0,n.jsxs)(f,{...e,children:[u&&(0,n.jsx)(hr,{label:r,required:d,id:t}),u&&l?l:null,s,a,o]})}const pr=mr;function fr(e){const{errors:t=[],idSchema:r}=e;if(t.length===0){return null}const s=(0,i.errorId)(r);return(0,n.jsx)("div",{children:(0,n.jsx)("ul",{id:s,className:"error-detail bs-callout bs-callout-info",children:t.filter((e=>!!e)).map(((e,t)=>(0,n.jsx)("li",{className:"text-danger",children:e},t)))})})}function gr(e){const{idSchema:t,help:r}=e;if(!r){return null}const s=(0,i.helpId)(t);if(typeof r==="string"){return(0,n.jsx)("p",{id:s,className:"help-block",children:r})}return(0,n.jsx)("div",{id:s,className:"help-block",children:r})}function yr(e){const{description:t,disabled:r,formData:s,idSchema:a,onAddClick:o,properties:l,readonly:c,registry:d,required:u,schema:h,title:m,uiSchema:p}=e;const f=(0,i.getUiOptions)(p);const g=(0,i.getTemplate)("TitleFieldTemplate",d,f);const y=(0,i.getTemplate)("DescriptionFieldTemplate",d,f);const{ButtonTemplates:{AddButton:S}}=d.templates;return(0,n.jsxs)("fieldset",{id:a.$id,children:[m&&(0,n.jsx)(g,{id:(0,i.titleId)(a),title:m,required:u,schema:h,uiSchema:p,registry:d}),t&&(0,n.jsx)(y,{id:(0,i.descriptionId)(a),description:t,schema:h,uiSchema:p,registry:d}),l.map((e=>e.content)),(0,i.canExpand)(h,p,s)&&(0,n.jsx)(S,{className:"object-property-expand",onClick:o(h),disabled:r||c,uiSchema:p,registry:d})]})}const Sr="*";function xr(e){const{id:t,title:r,required:s}=e;return(0,n.jsxs)("legend",{id:t,children:[r,s&&(0,n.jsx)("span",{className:"required",children:Sr})]})}function vr(e){const{schema:t,idSchema:r,reason:s,registry:a}=e;const{translateString:o}=a;let l=i.TranslatableString.UnsupportedField;const c=[];if(r&&r.$id){l=i.TranslatableString.UnsupportedFieldWithId;c.push(r.$id)}if(s){l=l===i.TranslatableString.UnsupportedField?i.TranslatableString.UnsupportedFieldWithReason:i.TranslatableString.UnsupportedFieldWithIdAndReason;c.push(s)}return(0,n.jsxs)("div",{className:"unsupported-field",children:[(0,n.jsx)("p",{children:(0,n.jsx)(It,{children:o(l,c)})}),t&&(0,n.jsx)("pre",{children:JSON.stringify(t,null,2)})]})}const br=vr;function Cr(e){const{id:t,classNames:r,style:s,disabled:a,label:o,onKeyChange:l,onDropPropertyClick:c,readonly:d,required:u,schema:h,children:m,uiSchema:p,registry:f}=e;const{templates:g,translateString:y}=f;const{RemoveButton:S}=g.ButtonTemplates;const x=y(i.TranslatableString.KeyLabel,[o]);const v=i.ADDITIONAL_PROPERTY_FLAG in h;if(!v){return(0,n.jsx)("div",{className:r,style:s,children:m})}return(0,n.jsx)("div",{className:r,style:s,children:(0,n.jsxs)("div",{className:"row",children:[(0,n.jsx)("div",{className:"col-xs-5 form-additional",children:(0,n.jsxs)("div",{className:"form-group",children:[(0,n.jsx)(hr,{label:x,required:u,id:`${t}-key`}),(0,n.jsx)("input",{className:"form-control",type:"text",id:`${t}-key`,onBlur:e=>l(e.target.value),defaultValue:o})]})}),(0,n.jsx)("div",{className:"form-additional form-group col-xs-5",children:m}),(0,n.jsx)("div",{className:"col-xs-2",children:(0,n.jsx)(S,{className:"array-item-remove btn-block",style:{border:"0"},disabled:a||d,onClick:c(o),uiSchema:p,registry:f})})]})})}function kr(){return{ArrayFieldDescriptionTemplate:Gt,ArrayFieldItemTemplate:Jt,ArrayFieldTemplate:Zt,ArrayFieldTitleTemplate:Qt,ButtonTemplates:lr(),BaseInputTemplate:Xt,DescriptionFieldTemplate:cr,ErrorListTemplate:dr,FieldTemplate:pr,FieldErrorTemplate:fr,FieldHelpTemplate:gr,ObjectFieldTemplate:yr,TitleFieldTemplate:xr,UnsupportedFieldTemplate:br,WrapIfAdditionalTemplate:Cr}}const Fr=kr;function jr(e,t){const r=[];for(let n=e;n<=t;n++){r.push({value:n,label:(0,i.pad)(n,2)})}return r}function Tr(e){return Object.values(e).every((e=>e!==-1))}function Or(e,t,r=[1900,(new Date).getFullYear()+2]){const{year:n,month:s,day:i,hour:a,minute:o,second:l}=e;const c=[{type:"year",range:r,value:n},{type:"month",range:[1,12],value:s},{type:"day",range:[1,31],value:i}];if(t){c.push({type:"hour",range:[0,23],value:a},{type:"minute",range:[0,59],value:o},{type:"second",range:[0,59],value:l})}return c}function wr({type:e,range:t,value:r,select:s,rootId:a,name:o,disabled:l,readonly:c,autofocus:d,registry:u,onBlur:h,onFocus:m}){const p=a+"_"+e;const{SelectWidget:f}=u.widgets;return(0,n.jsx)(f,{schema:{type:"integer"},id:p,name:o,className:"form-control",options:{enumOptions:jr(t[0],t[1])},placeholder:e,value:r,disabled:l,readonly:c,autofocus:d,onChange:t=>s(e,t),onBlur:h,onFocus:m,registry:u,label:"","aria-describedby":(0,i.ariaDescribedByIds)(a)})}function Dr({time:e=false,disabled:t=false,readonly:r=false,autofocus:a=false,options:o,id:l,name:c,registry:d,onBlur:u,onFocus:h,onChange:m,value:p}){const{translateString:f}=d;const[g,y]=(0,s.useState)(p);const[S,x]=(0,s.useReducer)(((e,t)=>({...e,...t})),(0,i.parseDateString)(p,e));(0,s.useEffect)((()=>{const t=(0,i.toDateString)(S,e);if(Tr(S)&&t!==p){m(t)}else if(g!==p){y(p);x((0,i.parseDateString)(p,e))}}),[e,p,m,S,g]);const v=(0,s.useCallback)(((e,t)=>{x({[e]:t})}),[]);const b=(0,s.useCallback)((n=>{n.preventDefault();if(t||r){return}const s=(0,i.parseDateString)((new Date).toJSON(),e);m((0,i.toDateString)(s,e))}),[t,r,e]);const C=(0,s.useCallback)((e=>{e.preventDefault();if(t||r){return}m(undefined)}),[t,r,m]);return(0,n.jsxs)("ul",{className:"list-inline",children:[Or(S,e,o.yearsRange).map(((e,s)=>(0,n.jsx)("li",{className:"list-inline-item",children:(0,n.jsx)(wr,{rootId:l,name:c,select:v,...e,disabled:t,readonly:r,registry:d,onBlur:u,onFocus:h,autofocus:a&&s===0})},s))),(o.hideNowButton!=="undefined"?!o.hideNowButton:true)&&(0,n.jsx)("li",{className:"list-inline-item",children:(0,n.jsx)("a",{href:"#",className:"btn btn-info btn-now",onClick:b,children:f(i.TranslatableString.NowLabel)})}),(o.hideClearButton!=="undefined"?!o.hideClearButton:true)&&(0,n.jsx)("li",{className:"list-inline-item",children:(0,n.jsx)("a",{href:"#",className:"btn btn-warning btn-clear",onClick:C,children:f(i.TranslatableString.ClearLabel)})})]})}const Er=Dr;function Ir({time:e=true,...t}){const{AltDateWidget:r}=t.registry.widgets;return(0,n.jsx)(r,{time:e,...t})}const Ar=Ir;function _r({schema:e,uiSchema:t,options:r,id:a,value:o,disabled:l,readonly:c,label:d,hideLabel:u,autofocus:h=false,onBlur:m,onFocus:p,onChange:f,registry:g}){var y;const S=(0,i.getTemplate)("DescriptionFieldTemplate",g,r);const x=(0,i.schemaRequiresTrueValue)(e);const v=(0,s.useCallback)((e=>f(e.target.checked)),[f]);const b=(0,s.useCallback)((e=>m(a,e.target.checked)),[m,a]);const C=(0,s.useCallback)((e=>p(a,e.target.checked)),[p,a]);const k=(y=r.description)!==null&&y!==void 0?y:e.description;return(0,n.jsxs)("div",{className:`checkbox ${l||c?"disabled":""}`,children:[!u&&!!k&&(0,n.jsx)(S,{id:(0,i.descriptionId)(a),description:k,schema:e,uiSchema:t,registry:g}),(0,n.jsxs)("label",{children:[(0,n.jsx)("input",{type:"checkbox",id:a,name:a,checked:typeof o==="undefined"?false:o,required:x,disabled:l||c,autoFocus:h,onChange:v,onBlur:b,onFocus:C,"aria-describedby":(0,i.ariaDescribedByIds)(a)}),(0,i.labelValue)((0,n.jsx)("span",{children:d}),u)]})]})}const Nr=_r;function Ur({id:e,disabled:t,options:{inline:r=false,enumOptions:a,enumDisabled:o,emptyValue:l},value:c,autofocus:d=false,readonly:u,onChange:h,onBlur:m,onFocus:p}){const f=Array.isArray(c)?c:[c];const g=(0,s.useCallback)((({target:{value:t}})=>m(e,(0,i.enumOptionsValueForIndex)(t,a,l))),[m,e]);const y=(0,s.useCallback)((({target:{value:t}})=>p(e,(0,i.enumOptionsValueForIndex)(t,a,l))),[p,e]);return(0,n.jsx)("div",{className:"checkboxes",id:e,children:Array.isArray(a)&&a.map(((s,l)=>{const c=(0,i.enumOptionsIsSelected)(s.value,f);const m=Array.isArray(o)&&o.indexOf(s.value)!==-1;const p=t||m||u?"disabled":"";const S=e=>{if(e.target.checked){h((0,i.enumOptionsSelectValue)(l,f,a))}else{h((0,i.enumOptionsDeselectValue)(l,f,a))}};const x=(0,n.jsxs)("span",{children:[(0,n.jsx)("input",{type:"checkbox",id:(0,i.optionId)(e,l),name:e,checked:c,value:String(l),disabled:t||m||u,autoFocus:d&&l===0,onChange:S,onBlur:g,onFocus:y,"aria-describedby":(0,i.ariaDescribedByIds)(e)}),(0,n.jsx)("span",{children:s.label})]});return r?(0,n.jsx)("label",{className:`checkbox-inline ${p}`,children:x},l):(0,n.jsx)("div",{className:`checkbox ${p}`,children:(0,n.jsx)("label",{children:x})},l)}))})}const Br=Ur;function $r(e){const{disabled:t,readonly:r,options:s,registry:a}=e;const o=(0,i.getTemplate)("BaseInputTemplate",a,s);return(0,n.jsx)(o,{type:"color",...e,disabled:t||r})}function Rr(e){const{onChange:t,options:r,registry:a}=e;const o=(0,i.getTemplate)("BaseInputTemplate",a,r);const l=(0,s.useCallback)((e=>t(e||undefined)),[t]);return(0,n.jsx)(o,{type:"date",...e,onChange:l})}function Pr(e){const{onChange:t,value:r,options:s,registry:a}=e;const o=(0,i.getTemplate)("BaseInputTemplate",a,s);return(0,n.jsx)(o,{type:"datetime-local",...e,value:(0,i.utcToLocal)(r),onChange:e=>t((0,i.localToUTC)(e))})}function qr(e){const{options:t,registry:r}=e;const s=(0,i.getTemplate)("BaseInputTemplate",r,t);return(0,n.jsx)(s,{type:"email",...e})}function Lr(e,t){if(e===null){return null}return e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}function Mr(e){const{name:t,size:r,type:n}=e;return new Promise(((s,i)=>{const a=new window.FileReader;a.onerror=i;a.onload=e=>{var i;if(typeof((i=e.target)===null||i===void 0?void 0:i.result)==="string"){s({dataURL:Lr(e.target.result,t),name:t,size:r,type:n})}else{s({dataURL:null,name:t,size:r,type:n})}};a.readAsDataURL(e)}))}function Vr(e){return Promise.all(Array.from(e).map(Mr))}function Kr({fileInfo:e,registry:t}){const{translateString:r}=t;const{dataURL:s,type:a,name:o}=e;if(!s){return null}if(a.indexOf("image")!==-1){return(0,n.jsx)("img",{src:s,style:{maxWidth:"100%"},className:"file-preview"})}return(0,n.jsxs)(n.Fragment,{children:[" ",(0,n.jsx)("a",{download:`preview-${o}`,href:s,className:"file-download",children:r(i.TranslatableString.PreviewLabel)})]})}function Wr({filesInfo:e,registry:t,preview:r}){if(e.length===0){return null}const{translateString:s}=t;return(0,n.jsx)("ul",{className:"file-info",children:e.map(((e,a)=>{const{name:o,size:l,type:c}=e;return(0,n.jsxs)("li",{children:[(0,n.jsx)(It,{children:s(i.TranslatableString.FilesInfo,[o,c,String(l)])}),r&&(0,n.jsx)(Kr,{fileInfo:e,registry:t})]},a)}))})}function zr(e){return e.filter((e=>e)).map((e=>{const{blob:t,name:r}=(0,i.dataURItoBlob)(e);return{dataURL:e,name:r,size:t.size,type:t.type}}))}function Yr(e){const{disabled:t,readonly:r,required:a,multiple:o,onChange:l,value:c,options:d,registry:u}=e;const h=(0,i.getTemplate)("BaseInputTemplate",u,d);const[m,p]=(0,s.useState)(Array.isArray(c)?zr(c):zr([c]));const f=(0,s.useCallback)((e=>{if(!e.target.files){return}Vr(e.target.files).then((e=>{const t=e.map((e=>e.dataURL));if(o){p(m.concat(e[0]));l(c.concat(t[0]))}else{p(e);l(t[0])}}))}),[o,c,m,l]);return(0,n.jsxs)("div",{children:[(0,n.jsx)(h,{...e,disabled:t||r,type:"file",required:c?false:a,onChangeOverride:f,value:"",accept:d.accept?String(d.accept):undefined}),(0,n.jsx)(Wr,{filesInfo:m,registry:u,preview:d.filePreview})]})}const Hr=Yr;function Gr({id:e,value:t}){return(0,n.jsx)("input",{type:"hidden",id:e,name:e,value:typeof t==="undefined"?"":t})}const Jr=Gr;function Zr(e){const{options:t,registry:r}=e;const s=(0,i.getTemplate)("BaseInputTemplate",r,t);return(0,n.jsx)(s,{type:"password",...e})}function Qr({options:e,value:t,required:r,disabled:a,readonly:o,autofocus:l=false,onBlur:c,onFocus:d,onChange:u,id:h}){const{enumOptions:m,enumDisabled:p,inline:f,emptyValue:g}=e;const y=(0,s.useCallback)((({target:{value:e}})=>c(h,(0,i.enumOptionsValueForIndex)(e,m,g))),[c,h]);const S=(0,s.useCallback)((({target:{value:e}})=>d(h,(0,i.enumOptionsValueForIndex)(e,m,g))),[d,h]);return(0,n.jsx)("div",{className:"field-radio-group",id:h,children:Array.isArray(m)&&m.map(((e,s)=>{const c=(0,i.enumOptionsIsSelected)(e.value,t);const d=Array.isArray(p)&&p.indexOf(e.value)!==-1;const m=a||d||o?"disabled":"";const g=()=>u(e.value);const x=(0,n.jsxs)("span",{children:[(0,n.jsx)("input",{type:"radio",id:(0,i.optionId)(h,s),checked:c,name:h,required:r,value:String(s),disabled:a||d||o,autoFocus:l&&s===0,onChange:g,onBlur:y,onFocus:S,"aria-describedby":(0,i.ariaDescribedByIds)(h)}),(0,n.jsx)("span",{children:e.label})]});return f?(0,n.jsx)("label",{className:`radio-inline ${m}`,children:x},s):(0,n.jsx)("div",{className:`radio ${m}`,children:(0,n.jsx)("label",{children:x})},s)}))})}const Xr=Qr;function en(e){const{value:t,registry:{templates:{BaseInputTemplate:r}}}=e;return(0,n.jsxs)("div",{className:"field-range-wrapper",children:[(0,n.jsx)(r,{type:"range",...e}),(0,n.jsx)("span",{className:"range-view",children:t})]})}function tn(e,t){if(t){return Array.from(e.target.options).slice().filter((e=>e.selected)).map((e=>e.value))}return e.target.value}function rn({schema:e,id:t,options:r,value:a,required:o,disabled:l,readonly:c,multiple:d=false,autofocus:u=false,onChange:h,onBlur:m,onFocus:p,placeholder:f}){const{enumOptions:g,enumDisabled:y,emptyValue:S}=r;const x=d?[]:"";const v=(0,s.useCallback)((e=>{const r=tn(e,d);return p(t,(0,i.enumOptionsValueForIndex)(r,g,S))}),[p,t,e,d,r]);const b=(0,s.useCallback)((e=>{const r=tn(e,d);return m(t,(0,i.enumOptionsValueForIndex)(r,g,S))}),[m,t,e,d,r]);const C=(0,s.useCallback)((e=>{const t=tn(e,d);return h((0,i.enumOptionsValueForIndex)(t,g,S))}),[h,e,d,r]);const k=(0,i.enumOptionsIndexForValue)(a,g,d);return(0,n.jsxs)("select",{id:t,name:t,multiple:d,className:"form-control",value:typeof k==="undefined"?x:k,required:o,disabled:l||c,autoFocus:u,onBlur:b,onFocus:v,onChange:C,"aria-describedby":(0,i.ariaDescribedByIds)(t),children:[!d&&e.default===undefined&&(0,n.jsx)("option",{value:"",children:f}),Array.isArray(g)&&g.map((({value:e,label:t},r)=>{const s=y&&y.indexOf(e)!==-1;return(0,n.jsx)("option",{value:String(r),disabled:s,children:t},r)}))]})}const nn=rn;function sn({id:e,options:t={},placeholder:r,value:a,required:o,disabled:l,readonly:c,autofocus:d=false,onChange:u,onBlur:h,onFocus:m}){const p=(0,s.useCallback)((({target:{value:e}})=>u(e===""?t.emptyValue:e)),[u,t.emptyValue]);const f=(0,s.useCallback)((({target:{value:t}})=>h(e,t)),[h,e]);const g=(0,s.useCallback)((({target:{value:t}})=>m(e,t)),[e,m]);return(0,n.jsx)("textarea",{id:e,name:e,className:"form-control",value:a?a:"",placeholder:r,required:o,disabled:l,readOnly:c,autoFocus:d,rows:t.rows,onBlur:f,onFocus:g,onChange:p,"aria-describedby":(0,i.ariaDescribedByIds)(e)})}sn.defaultProps={autofocus:false,options:{}};const an=sn;function on(e){const{options:t,registry:r}=e;const s=(0,i.getTemplate)("BaseInputTemplate",r,t);return(0,n.jsx)(s,{...e})}function ln(e){const{onChange:t,options:r,registry:a}=e;const o=(0,i.getTemplate)("BaseInputTemplate",a,r);const l=(0,s.useCallback)((e=>t(e?`${e}:00`:undefined)),[t]);return(0,n.jsx)(o,{type:"time",...e,onChange:l})}function cn(e){const{options:t,registry:r}=e;const s=(0,i.getTemplate)("BaseInputTemplate",r,t);return(0,n.jsx)(s,{type:"url",...e})}function dn(e){const{options:t,registry:r}=e;const s=(0,i.getTemplate)("BaseInputTemplate",r,t);return(0,n.jsx)(s,{type:"number",...e})}function un(){return{AltDateWidget:Er,AltDateTimeWidget:Ar,CheckboxWidget:Nr,CheckboxesWidget:Br,ColorWidget:$r,DateWidget:Rr,DateTimeWidget:Pr,EmailWidget:qr,FileWidget:Hr,HiddenWidget:Jr,PasswordWidget:Zr,RadioWidget:Xr,RangeWidget:en,SelectWidget:nn,TextWidget:on,TextareaWidget:an,TimeWidget:ln,UpDownWidget:dn,URLWidget:cn}}const hn=un;function mn(){return{fields:Ht(),templates:Fr(),widgets:hn(),rootSchema:{},formContext:{},translateString:i.englishStringTranslator}}class pn extends s.Component{constructor(e){super(e);this.getUsedFormData=(e,t)=>{if(t.length===0&&typeof e!=="object"){return e}const r=u()(e,t);if(Array.isArray(e)){return Object.keys(r).map((e=>r[e]))}return r};this.getFieldNames=(e,t)=>{const r=(e,n=[],s=[[]])=>{Object.keys(e).forEach((a=>{if(typeof e[a]==="object"){const t=s.map((e=>[...e,a]));if(e[a][i.RJSF_ADDITONAL_PROPERTIES_FLAG]&&e[a][i.NAME_KEY]!==""){n.push(e[a][i.NAME_KEY])}else{r(e[a],n,t)}}else if(a===i.NAME_KEY&&e[a]!==""){s.forEach((e=>{const r=o()(t,e);if(typeof r!=="object"||c()(r)){n.push(e)}}))}}));return n};return r(e)};this.onChange=(e,t,r)=>{const{extraErrors:n,omitExtraData:s,liveOmit:a,noValidate:o,liveValidate:l,onChange:c}=this.props;const{schemaUtils:d,schema:u,retrievedSchema:h}=this.state;if((0,i.isObject)(e)||Array.isArray(e)){const t=this.getStateFromProps(this.props,e,h);e=t.formData}const m=!o&&l;let p={formData:e,schema:u};let f=e;let g;if(s===true&&a===true){g=d.retrieveSchema(u,e);const t=d.toPathSchema(g,"",e);const r=this.getFieldNames(t,e);f=this.getUsedFormData(e,r);p={formData:f}}if(m){const e=this.validate(f,u,d,h);let t=e.errors;let r=e.errorSchema;const s=t;const a=r;if(n){const s=(0,i.validationDataMerge)(e,n);r=s.errorSchema;t=s.errors}p={formData:f,errors:t,errorSchema:r,schemaValidationErrors:s,schemaValidationErrorSchema:a}}else if(!o&&t){const e=n?(0,i.mergeObjects)(t,n,"preventDuplicates"):t;p={formData:f,errorSchema:e,errors:(0,i.toErrorList)(e)}}if(g){p.retrievedSchema=g}this.setState(p,(()=>c&&c({...this.state,...p},r)))};this.reset=()=>{const{onChange:e}=this.props;const t=this.getStateFromProps(this.props,undefined);const r=t.formData;const n={formData:r,errorSchema:{},errors:[],schemaValidationErrors:[],schemaValidationErrorSchema:{}};this.setState(n,(()=>e&&e({...this.state,...n})))};this.onBlur=(e,t)=>{const{onBlur:r}=this.props;if(r){r(e,t)}};this.onFocus=(e,t)=>{const{onFocus:r}=this.props;if(r){r(e,t)}};this.onSubmit=e=>{e.preventDefault();if(e.target!==e.currentTarget){return}e.persist();const{omitExtraData:t,extraErrors:r,noValidate:n,onSubmit:s}=this.props;let{formData:a}=this.state;const{schema:o,schemaUtils:l}=this.state;if(t===true){const e=l.retrieveSchema(o,a);const t=l.toPathSchema(e,"",a);const r=this.getFieldNames(t,a);a=this.getUsedFormData(a,r)}if(n||this.validateForm()){const t=r||{};const n=r?(0,i.toErrorList)(r):[];this.setState({formData:a,errors:n,errorSchema:t,schemaValidationErrors:[],schemaValidationErrorSchema:{}},(()=>{if(s){s({...this.state,formData:a,status:"submitted"},e)}}))}};if(!e.validator){throw new Error("A validator is required for Form functionality to work")}this.state=this.getStateFromProps(e,e.formData);if(this.props.onChange&&!(0,i.deepEquals)(this.state.formData,this.props.formData)){this.props.onChange(this.state)}this.formElement=(0,s.createRef)()}getSnapshotBeforeUpdate(e,t){if(!(0,i.deepEquals)(this.props,e)){const r=this.getStateFromProps(this.props,this.props.formData,e.schema!==this.props.schema?undefined:this.state.retrievedSchema);const n=!(0,i.deepEquals)(r,t);return{nextState:r,shouldUpdate:n}}return{shouldUpdate:false}}componentDidUpdate(e,t,r){if(r.shouldUpdate){const{nextState:e}=r;if(!(0,i.deepEquals)(e.formData,this.props.formData)&&!(0,i.deepEquals)(e.formData,t.formData)&&this.props.onChange){this.props.onChange(e)}this.setState(e)}}getStateFromProps(e,t,r){const n=this.state||{};const s="schema"in e?e.schema:this.props.schema;const a=("uiSchema"in e?e.uiSchema:this.props.uiSchema)||{};const o=typeof t!=="undefined";const l="liveValidate"in e?e.liveValidate:this.props.liveValidate;const c=o&&!e.noValidate&&l;const d=s;const u="experimental_defaultFormStateBehavior"in e?e.experimental_defaultFormStateBehavior:this.props.experimental_defaultFormStateBehavior;let h=n.schemaUtils;if(!h||h.doesSchemaUtilsDiffer(e.validator,d,u)){h=(0,i.createSchemaUtils)(e.validator,d,u)}const m=h.getDefaultFormState(s,t);const p=r!==null&&r!==void 0?r:h.retrieveSchema(s,m);const f=()=>{if(e.noValidate){return{errors:[],errorSchema:{}}}else if(!e.liveValidate){return{errors:n.schemaValidationErrors||[],errorSchema:n.schemaValidationErrorSchema||{}}}return{errors:n.errors||[],errorSchema:n.errorSchema||{}}};let g;let y;let S=n.schemaValidationErrors;let x=n.schemaValidationErrorSchema;if(c){const e=this.validate(m,s,h,p);g=e.errors;y=e.errorSchema;S=g;x=y}else{const e=f();g=e.errors;y=e.errorSchema}if(e.extraErrors){const t=(0,i.validationDataMerge)({errorSchema:y,errors:g},e.extraErrors);y=t.errorSchema;g=t.errors}const v=h.toIdSchema(p,a["ui:rootFieldId"],m,e.idPrefix,e.idSeparator);const b={schemaUtils:h,schema:s,uiSchema:a,idSchema:v,formData:m,edit:o,errors:g,errorSchema:y,schemaValidationErrors:S,schemaValidationErrorSchema:x,retrievedSchema:p};return b}shouldComponentUpdate(e,t){return(0,i.shouldRender)(this,e,t)}validate(e,t=this.props.schema,r,n){const s=r?r:this.state.schemaUtils;const{customValidate:i,transformErrors:a,uiSchema:o}=this.props;const l=n!==null&&n!==void 0?n:s.retrieveSchema(t,e);return s.getValidator().validateFormData(e,l,i,a,o)}renderErrors(e){const{errors:t,errorSchema:r,schema:s,uiSchema:a}=this.state;const{formContext:o}=this.props;const l=(0,i.getUiOptions)(a);const c=(0,i.getTemplate)("ErrorListTemplate",e,l);if(t&&t.length){return(0,n.jsx)(c,{errors:t,errorSchema:r||{},schema:s,uiSchema:a,formContext:o,registry:e})}return null}getRegistry(){var e;const{translateString:t,uiSchema:r={}}=this.props;const{schemaUtils:n}=this.state;const{fields:s,templates:a,widgets:o,formContext:l,translateString:c}=mn();return{fields:{...s,...this.props.fields},templates:{...a,...this.props.templates,ButtonTemplates:{...a.ButtonTemplates,...(e=this.props.templates)===null||e===void 0?void 0:e.ButtonTemplates}},widgets:{...o,...this.props.widgets},rootSchema:this.props.schema,formContext:this.props.formContext||l,schemaUtils:n,translateString:t||c,globalUiOptions:r[i.UI_GLOBAL_OPTIONS_KEY]}}submit(){if(this.formElement.current){this.formElement.current.dispatchEvent(new CustomEvent("submit",{cancelable:true}));this.formElement.current.requestSubmit()}}focusOnError(e){const{idPrefix:t="root",idSeparator:r="_"}=this.props;const{property:n}=e;const s=m()(n);if(s[0]===""){s[0]=t}else{s.unshift(t)}const i=s.join(r);let a=this.formElement.current.elements[i];if(!a){a=this.formElement.current.querySelector(`input[id^=${i}`)}if(a&&a.length){a=a[0]}if(a){a.focus()}}validateForm(){const{extraErrors:e,extraErrorsBlockSubmit:t,focusOnFirstError:r,onError:n}=this.props;const{formData:s,errors:a}=this.state;const o=this.validate(s);let l=o.errors;let c=o.errorSchema;const d=l;const u=c;const h=l.length>0||e&&t;if(h){if(e){const t=(0,i.validationDataMerge)(o,e);c=t.errorSchema;l=t.errors}if(r){if(typeof r==="function"){r(l[0])}else{this.focusOnError(l[0])}}this.setState({errors:l,errorSchema:c,schemaValidationErrors:d,schemaValidationErrorSchema:u},(()=>{if(n){n(l)}else{console.error("Form validation failed",l)}}))}else if(a.length>0){this.setState({errors:[],errorSchema:{},schemaValidationErrors:[],schemaValidationErrorSchema:{}})}return!h}render(){const{children:e,id:t,idPrefix:r,idSeparator:s,className:a="",tagName:o,name:l,method:c,target:d,action:u,autoComplete:h,enctype:m,acceptcharset:p,noHtml5Validate:f=false,disabled:g=false,readonly:y=false,formContext:S,showErrorList:x="top",_internalFormWrapper:v}=this.props;const{schema:b,uiSchema:C,formData:k,errorSchema:F,idSchema:j}=this.state;const T=this.getRegistry();const{SchemaField:O}=T.fields;const{SubmitButton:w}=T.templates.ButtonTemplates;const D=v?o:undefined;const E=v||o||"form";let{[i.SUBMIT_BTN_OPTIONS_KEY]:I={}}=(0,i.getUiOptions)(C);if(g){I={...I,props:{...I.props,disabled:true}}}const A={[i.UI_OPTIONS_KEY]:{[i.SUBMIT_BTN_OPTIONS_KEY]:I}};return(0,n.jsxs)(E,{className:a?a:"rjsf",id:t,name:l,method:c,target:d,action:u,autoComplete:h,encType:m,acceptCharset:p,noValidate:f,onSubmit:this.onSubmit,as:D,ref:this.formElement,children:[x==="top"&&this.renderErrors(T),(0,n.jsx)(O,{name:"",schema:b,uiSchema:C,errorSchema:F,idSchema:j,idPrefix:r,idSeparator:s,formContext:S,formData:k,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:T,disabled:g,readonly:y}),e?e:(0,n.jsx)(w,{uiSchema:A,registry:T}),x==="bottom"&&this.renderErrors(T)]})}}function fn(e){return forwardRef((({fields:t,widgets:r,templates:n,...s},i)=>{var a;t={...e===null||e===void 0?void 0:e.fields,...t};r={...e===null||e===void 0?void 0:e.widgets,...r};n={...e===null||e===void 0?void 0:e.templates,...n,ButtonTemplates:{...(a=e===null||e===void 0?void 0:e.templates)===null||a===void 0?void 0:a.ButtonTemplates,...n===null||n===void 0?void 0:n.ButtonTemplates}};return _jsx(Form,{...e,...s,fields:t,widgets:r,templates:n,ref:i})}))}const gn=pn},78510:(e,t,r)=>{"use strict";r.r(t);r.d(t,{Cache:()=>S,FreeStyle:()=>k,Rule:()=>b,Selector:()=>x,Style:()=>v,create:()=>F});let n=0;const s=Object.create(null);const i=["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","columns","counter-increment","counter-reset","flex","flex-grow","flex-positive","flex-shrink","flex-negative","flex-order","font-weight","grid-area","grid-column","grid-column-end","grid-column-span","grid-column-start","grid-row","grid-row-end","grid-row-span","grid-row-start","line-clamp","line-height","opacity","order","orphans","tab-size","widows","z-index","zoom","fill-opacity","flood-opacity","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width"];for(const j of i){for(const e of["-webkit-","-ms-","-moz-","-o-",""]){s[e+j]=true}}function a(e){return e.replace(/[ !#$%&()*+,./;<=>?@[\]^`{|}~"'\\]/g,"\\$&")}function o(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`)).replace(/^ms-/,"-ms-")}function l(e){let t=5381;let r=e.length;while(r--)t=t*33^e.charCodeAt(r);return(t>>>0).toString(36)}function c(e,t){if(t&&typeof t==="number"&&!s[e]){return`${e}:${t}px`}return`${e}:${t}`}function d(e){return e.sort(((e,t)=>e[0]>t[0]?1:-1))}function u(e,t){const r=[];const n=[];for(const s of Object.keys(e)){const t=s.trim();const i=e[s];if(t.charCodeAt(0)!==36&&i!=null){if(typeof i==="object"&&!Array.isArray(i)){n.push([t,i])}else{r.push([o(t),i])}}}return{style:h(d(r)),nested:t?n:d(n),isUnique:!!e.$unique}}function h(e){return e.map((([e,t])=>{if(!Array.isArray(t))return c(e,t);return t.map((t=>c(e,t))).join(";")})).join(";")}function m(e,t){if(e.indexOf("&")===-1)return`${t} ${e}`;return e.replace(/&/g,t)}function p(e,t,r,n,s){const{style:i,nested:a,isUnique:o}=u(t,e!=="");let l=i;if(e.charCodeAt(0)===64){const t={selector:e,styles:[],rules:[],style:s?"":i};r.push(t);if(i&&s){t.styles.push({selector:s,style:i,isUnique:o})}for(const[e,r]of a){l+=e+p(e,r,t.rules,t.styles,s)}}else{const t=s?m(e,s):e;if(i)n.push({selector:t,style:i,isUnique:o});for(const[e,s]of a){l+=e+p(e,s,r,n,t)}}return l}function f(e,t,r,s,i,a){for(const{selector:o,style:l,isUnique:c}of s){const r=a?m(o,i):o;const s=c?`u\0${(++n).toString(36)}`:`s\0${t}\0${l}`;const d=new v(l,s);d.add(new x(r,`k\0${t}\0${r}`));e.add(d)}for(const{selector:n,style:o,rules:l,styles:c}of r){const r=new b(n,o,`r\0${t}\0${n}\0${o}`);f(r,t,l,c,i,a);e.add(r)}}function g(e){let t="";for(let r=0;rundefined,change:()=>undefined,remove:()=>undefined};class S{constructor(e=y){this.changes=e;this.sheet=[];this.changeId=0;this._keys=[];this._children=Object.create(null);this._counters=Object.create(null)}add(e){const t=this._counters[e.id]||0;const r=this._children[e.id]||e.clone();this._counters[e.id]=t+1;if(t===0){this._children[r.id]=r;this._keys.push(r.id);this.sheet.push(r.getStyles());this.changeId++;this.changes.add(r,this._keys.length-1)}else if(r instanceof S&&e instanceof S){const t=this._keys.indexOf(e.id);const n=r.changeId;r.merge(e);if(r.changeId!==n){this.sheet.splice(t,1,r.getStyles());this.changeId++;this.changes.change(r,t,t)}}}remove(e){const t=this._counters[e.id];if(t){this._counters[e.id]=t-1;const r=this._children[e.id];const n=this._keys.indexOf(r.id);if(t===1){delete this._counters[e.id];delete this._children[e.id];this._keys.splice(n,1);this.sheet.splice(n,1);this.changeId++;this.changes.remove(r,n)}else if(r instanceof S&&e instanceof S){const t=r.changeId;r.unmerge(e);if(r.changeId!==t){this.sheet.splice(n,1,r.getStyles());this.changeId++;this.changes.change(r,n,n)}}}}values(){return this._keys.map((e=>this._children[e]))}merge(e){for(const t of e.values())this.add(t);return this}unmerge(e){for(const t of e.values())this.remove(t);return this}clone(){return(new S).merge(this)}}class x{constructor(e,t){this.selector=e;this.id=t}getStyles(){return this.selector}clone(){return this}}class v extends S{constructor(e,t){super();this.style=e;this.id=t}getStyles(){return`${this.sheet.join(",")}{${this.style}}`}clone(){return new v(this.style,this.id).merge(this)}}class b extends S{constructor(e,t,r){super();this.rule=e;this.style=t;this.id=r}getStyles(){return`${this.rule}{${this.style}${g(this.sheet)}}`}clone(){return new b(this.rule,this.style,this.id).merge(this)}}function C(e,t){const r=`f${l(e)}`;if(true)return r;return`${t.$displayName}_${r}`}class k extends S{constructor(e,t){super(t);this.id=e}registerStyle(e){const t=[];const r=[];const n=p("&",e,t,r);const s=C(n,e);const i=`.${true?s:0}`;f(this,n,t,r,i,true);return s}registerKeyframes(e){return this.registerHashRule("@keyframes",e)}registerHashRule(e,t){const r=[];const n=[];const s=p("",t,r,n);const i=C(s,t);const a=`${e} ${true?i:0}`;const o=new b(a,"",`h\0${s}\0${e}`);f(o,s,r,n,"",false);this.add(o);return i}registerRule(e,t){const r=[];const n=[];const s=p(e,t,r,n);f(this,s,r,n,"",false)}registerCss(e){return this.registerRule("",e)}getStyles(){return g(this.sheet)}clone(){return new k(this.id,this.changes).merge(this)}}function F(e){return new k(`f${(++n).toString(36)}`,e)}},76001:(e,t,r)=>{var n=r(97420),s=r(80631);function i(e,t){return n(e,t,(function(t,r){return s(e,r)}))}e.exports=i},97420:(e,t,r)=>{var n=r(47422),s=r(73170),i=r(31769);function a(e,t,r){var a=-1,o=t.length,l={};while(++a{var n=r(76001),s=r(38816);var i=s((function(e,t){return e==null?{}:n(e,t)}));e.exports=i},73357:(e,t,r)=>{var n=r(19931);function s(e,t){return e==null?true:n(e,t)}e.exports=s},5338:(e,t,r)=>{"use strict";var n;var s=r(86672);if(true){t.H=s.createRoot;n=s.hydrateRoot}else{var i}},21326:(e,t,r)=>{"use strict";var n;n={value:true};var s=r(46379);n=s.TypeStyle;var i=r(12451);n=i;var a=r(14798);n=a.extend;n=a.classes;n=a.media;var o=new s.TypeStyle({autoGenerateTag:true});n=o.setStylesTarget;n=o.cssRaw;n=o.cssRule;n=o.forceRenderStyles;n=o.fontFace;n=o.getStyles;n=o.keyframes;n=o.reinit;t.iF=o.style;n=o.stylesheet;function l(e){var t=new s.TypeStyle({autoGenerateTag:false});if(e){t.setStylesTarget(e)}return t}n=l},64591:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function r(e){var t={};for(var n in e){var s=e[n];if(n==="$nest"){var i=s;for(var a in i){var o=i[a];t[a]=r(o)}}else if(n==="$debugName"){t.$displayName=s}else{t[n]=s}}return t}t.convertToStyles=r;function n(e){var t={};for(var r in e){if(r!=="$debugName"){t[r]=e[r]}}if(e.$debugName){t.$displayName=e.$debugName}return t}t.convertToKeyframes=n},46379:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(78510);var s=r(64591);var i=r(14798);var a=function(){return n.create()};var o=function(){function e(e){var t=this;var r=e.autoGenerateTag;this.cssRaw=function(e){if(!e){return}t._raw+=e||"";t._pendingRawChange=true;t._styleUpdated()};this.cssRule=function(e){var r=[];for(var n=1;n{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.raf=typeof requestAnimationFrame==="undefined"?function(e){return setTimeout(e)}:typeof window==="undefined"?requestAnimationFrame:requestAnimationFrame.bind(window);function r(){var e=[];for(var t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:true})}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/5834.f91e537d13feb21974e9.js b/share/jupyter/lab/static/5834.f91e537d13feb21974e9.js new file mode 100644 index 0000000..af0d5fe --- /dev/null +++ b/share/jupyter/lab/static/5834.f91e537d13feb21974e9.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5834],{65834:(t,e,i)=>{i.d(e,{diagram:()=>w});var a=i(42418);var n=i(70416);var s=i(1218);var r=function(){var t=(0,n.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],a=[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,n.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,n.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:a,56:s,57:r},{1:[3]},{18:e,26:8,27:2,28:i,55:a,56:s,57:r},{18:e,26:9,27:2,28:i,55:a,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:a,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,n.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,n.K2)((function t(e){var i=this,a=[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){a.length=a.length-2*t;r.length=r.length-t;o.length=o.length-t}(0,n.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,n.K2)(q,"lex");var _,A,S,F,P,v,C={},L,I,E,D;while(true){S=a[a.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:a.push(_);r.push(p.yytext);o.push(p.yylloc);a.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){a=a.slice(0,-1*I*2);r=r.slice(0,-1*I);o=o.slice(0,-1*I)}a.push(this.productions_[F[1]][0]);r.push(C.$);o.push(C._$);E=l[a[a.length-2]][a[a.length-1]];a.push(E);break;case 3:return true}}return true}),"parse")};var xt=function(){var t={EOF:1,parseError:(0,n.K2)((function t(e,i){if(this.yy.parser){this.yy.parser.parseError(e,i)}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 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,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 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,n.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,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,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,n.K2)(ft,"Parser");ft.prototype=ut;ut.Parser=ft;return new ft}();r.parser=r;var o=r;var l=(0,a.P$)();var h=class{constructor(){this.classes=new Map;this.config=this.getDefaultConfig();this.themeConfig=this.getDefaultThemeConfig();this.data=this.getDefaultData()}static{(0,n.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:l.quadrant1Fill,quadrant2Fill:l.quadrant2Fill,quadrant3Fill:l.quadrant3Fill,quadrant4Fill:l.quadrant4Fill,quadrant1TextFill:l.quadrant1TextFill,quadrant2TextFill:l.quadrant2TextFill,quadrant3TextFill:l.quadrant3TextFill,quadrant4TextFill:l.quadrant4TextFill,quadrantPointFill:l.quadrantPointFill,quadrantPointTextFill:l.quadrantPointTextFill,quadrantXAxisTextFill:l.quadrantXAxisTextFill,quadrantYAxisTextFill:l.quadrantYAxisTextFill,quadrantTitleFill:l.quadrantTitleFill,quadrantInternalBorderStrokeFill:l.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:l.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig();this.themeConfig=this.getDefaultThemeConfig();this.data=this.getDefaultData();this.classes=new Map;n.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){n.Rm.trace("setConfig called with: ",t);this.config={...this.config,...t}}setThemeConfig(t){n.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:n,quadrantWidth:r}=e;const o=(0,s.m4Y)().domain([0,1]).range([a,r+a]);const l=(0,s.m4Y)().domain([0,1]).range([i+n,n]);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 c=class extends Error{static{(0,n.K2)(this,"InvalidStyleError")}constructor(t,e,i){super(`value for ${t} ${e} is invalid, please use a valid ${i}`);this.name="InvalidStyleError"}};function d(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}(0,n.K2)(d,"validateHexCode");function u(t){return!/^\d+$/.test(t)}(0,n.K2)(u,"validateNumber");function x(t){return!/^\d+px$/.test(t)}(0,n.K2)(x,"validateSizeInPixels");var f=(0,a.D7)();function g(t){return(0,a.jZ)(t.trim(),f)}(0,n.K2)(g,"textSanitizer");var p=new h;function y(t){p.setData({quadrant1Text:g(t.text)})}(0,n.K2)(y,"setQuadrant1Text");function b(t){p.setData({quadrant2Text:g(t.text)})}(0,n.K2)(b,"setQuadrant2Text");function T(t){p.setData({quadrant3Text:g(t.text)})}(0,n.K2)(T,"setQuadrant3Text");function m(t){p.setData({quadrant4Text:g(t.text)})}(0,n.K2)(m,"setQuadrant4Text");function k(t){p.setData({xAxisLeftText:g(t.text)})}(0,n.K2)(k,"setXAxisLeftText");function q(t){p.setData({xAxisRightText:g(t.text)})}(0,n.K2)(q,"setXAxisRightText");function _(t){p.setData({yAxisTopText:g(t.text)})}(0,n.K2)(_,"setYAxisTopText");function A(t){p.setData({yAxisBottomText:g(t.text)})}(0,n.K2)(A,"setYAxisBottomText");function S(t){const e={};for(const i of t){const[t,a]=i.trim().split(/\s*:\s*/);if(t==="radius"){if(u(a)){throw new c(t,a,"number")}e.radius=parseInt(a)}else if(t==="color"){if(d(a)){throw new c(t,a,"hex code")}e.color=a}else if(t==="stroke-color"){if(d(a)){throw new c(t,a,"hex code")}e.strokeColor=a}else if(t==="stroke-width"){if(x(a)){throw new c(t,a,"number of pixels (eg. 10px)")}e.strokeWidth=a}else{throw new Error(`style named ${t} is not supported.`)}}return e}(0,n.K2)(S,"parseStyles");function F(t,e,i,a,n){const s=S(n);p.addPoints([{x:i,y:a,text:g(t.text),className:e,...s}])}(0,n.K2)(F,"addPoint");function P(t,e){p.addClass(t,S(e))}(0,n.K2)(P,"addClass");function v(t){p.setConfig({chartWidth:t})}(0,n.K2)(v,"setWidth");function C(t){p.setConfig({chartHeight:t})}(0,n.K2)(C,"setHeight");function L(){const t=(0,a.D7)();const{themeVariables:e,quadrantChart:i}=t;if(i){p.setConfig(i)}p.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});p.setData({titleText:(0,a.ab)()});return p.build()}(0,n.K2)(L,"getQuadrantData");var I=(0,n.K2)((function(){p.clear();(0,a.IU)()}),"clear");var E={setWidth:v,setHeight:C,setQuadrant1Text:y,setQuadrant2Text:b,setQuadrant3Text:T,setQuadrant4Text:m,setXAxisLeftText:k,setXAxisRightText:q,setYAxisTopText:_,setYAxisBottomText:A,parseStyles:S,addPoint:F,addClass:P,getQuadrantData:L,clear:I,setAccTitle:a.SV,getAccTitle:a.iN,setDiagramTitle:a.ke,getDiagramTitle:a.ab,getAccDescription:a.m7,setAccDescription:a.EI};var D=(0,n.K2)(((t,e,i,r)=>{function o(t){return t==="top"?"hanging":"middle"}(0,n.K2)(o,"getDominantBaseLine");function l(t){return t==="left"?"start":"middle"}(0,n.K2)(l,"getTextAnchor");function h(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}(0,n.K2)(h,"getTransformation");const c=(0,a.D7)();n.Rm.debug("Rendering quadrant chart\n"+t);const d=c.securityLevel;let u;if(d==="sandbox"){u=(0,s.Ltv)("#i"+e)}const x=d==="sandbox"?(0,s.Ltv)(u.nodes()[0].contentDocument.body):(0,s.Ltv)("body");const f=x.select(`[id="${e}"]`);const g=f.append("g").attr("class","main");const p=c.quadrantChart?.chartWidth??500;const y=c.quadrantChart?.chartHeight??500;(0,a.a$)(f,y,p,c.quadrantChart?.useMaxWidth??true);f.attr("viewBox","0 0 "+p+" "+y);r.db.setHeight(y);r.db.setWidth(p);const b=r.db.getQuadrantData();const T=g.append("g").attr("class","quadrants");const m=g.append("g").attr("class","border");const k=g.append("g").attr("class","data-points");const q=g.append("g").attr("class","labels");const _=g.append("g").attr("class","title");if(b.title){_.append("text").attr("x",0).attr("y",0).attr("fill",b.title.fill).attr("font-size",b.title.fontSize).attr("dominant-baseline",o(b.title.horizontalPos)).attr("text-anchor",l(b.title.verticalPos)).attr("transform",h(b.title)).text(b.title.text)}if(b.borderLines){m.selectAll("line").data(b.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 A=T.selectAll("g.quadrant").data(b.quadrants).enter().append("g").attr("class","quadrant");A.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));A.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=>o(t.text.horizontalPos))).attr("text-anchor",(t=>l(t.text.verticalPos))).attr("transform",(t=>h(t.text))).text((t=>t.text.text));const S=q.selectAll("g.label").data(b.axisLabels).enter().append("g").attr("class","label");S.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=>o(t.horizontalPos))).attr("text-anchor",(t=>l(t.verticalPos))).attr("transform",(t=>h(t)));const F=k.selectAll("g.data-point").data(b.points).enter().append("g").attr("class","data-point");F.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));F.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=>o(t.text.horizontalPos))).attr("text-anchor",(t=>l(t.text.verticalPos))).attr("transform",(t=>h(t.text)))}),"draw");var z={draw:D};var w={parser:o,db:E,renderer:z,styles:(0,n.K2)((()=>""),"styles")}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/5847.930208c25e45ecf30657.js b/share/jupyter/lab/static/5847.930208c25e45ecf30657.js new file mode 100644 index 0000000..49c434b --- /dev/null +++ b/share/jupyter/lab/static/5847.930208c25e45ecf30657.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5847],{85847:(e,_,I)=>{I.r(_);I.d(_,{ntriples:()=>t});var R={PRE_SUBJECT:0,WRITING_SUB_URI:1,WRITING_BNODE_URI:2,PRE_PRED:3,WRITING_PRED_URI:4,PRE_OBJ:5,WRITING_OBJ_URI:6,WRITING_OBJ_BNODE:7,WRITING_OBJ_LITERAL:8,WRITING_LIT_LANG:9,WRITING_LIT_TYPE:10,POST_OBJ:11,ERROR:12};function r(e,_){var I=e.location;var r;if(I==R.PRE_SUBJECT&&_=="<")r=R.WRITING_SUB_URI;else if(I==R.PRE_SUBJECT&&_=="_")r=R.WRITING_BNODE_URI;else if(I==R.PRE_PRED&&_=="<")r=R.WRITING_PRED_URI;else if(I==R.PRE_OBJ&&_=="<")r=R.WRITING_OBJ_URI;else if(I==R.PRE_OBJ&&_=="_")r=R.WRITING_OBJ_BNODE;else if(I==R.PRE_OBJ&&_=='"')r=R.WRITING_OBJ_LITERAL;else if(I==R.WRITING_SUB_URI&&_==">")r=R.PRE_PRED;else if(I==R.WRITING_BNODE_URI&&_==" ")r=R.PRE_PRED;else if(I==R.WRITING_PRED_URI&&_==">")r=R.PRE_OBJ;else if(I==R.WRITING_OBJ_URI&&_==">")r=R.POST_OBJ;else if(I==R.WRITING_OBJ_BNODE&&_==" ")r=R.POST_OBJ;else if(I==R.WRITING_OBJ_LITERAL&&_=='"')r=R.POST_OBJ;else if(I==R.WRITING_LIT_LANG&&_==" ")r=R.POST_OBJ;else if(I==R.WRITING_LIT_TYPE&&_==">")r=R.POST_OBJ;else if(I==R.WRITING_OBJ_LITERAL&&_=="@")r=R.WRITING_LIT_LANG;else if(I==R.WRITING_OBJ_LITERAL&&_=="^")r=R.WRITING_LIT_TYPE;else if(_==" "&&(I==R.PRE_SUBJECT||I==R.PRE_PRED||I==R.PRE_OBJ||I==R.POST_OBJ))r=I;else if(I==R.POST_OBJ&&_==".")r=R.PRE_SUBJECT;else r=R.ERROR;e.location=r}const t={name:"ntriples",startState:function(){return{location:R.PRE_SUBJECT,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(e,_){var I=e.next();if(I=="<"){r(_,I);var R="";e.eatWhile((function(e){if(e!="#"&&e!=">"){R+=e;return true}return false}));_.uris.push(R);if(e.match("#",false))return"variable";e.next();r(_,">");return"variable"}if(I=="#"){var t="";e.eatWhile((function(e){if(e!=">"&&e!=" "){t+=e;return true}return false}));_.anchors.push(t);return"url"}if(I==">"){r(_,">");return"variable"}if(I=="_"){r(_,I);var i="";e.eatWhile((function(e){if(e!=" "){i+=e;return true}return false}));_.bnodes.push(i);e.next();r(_," ");return"builtin"}if(I=='"'){r(_,I);e.eatWhile((function(e){return e!='"'}));e.next();if(e.peek()!="@"&&e.peek()!="^"){r(_,'"')}return"string"}if(I=="@"){r(_,"@");var n="";e.eatWhile((function(e){if(e!=" "){n+=e;return true}return false}));_.langs.push(n);e.next();r(_," ");return"string.special"}if(I=="^"){e.next();r(_,"^");var T="";e.eatWhile((function(e){if(e!=">"){T+=e;return true}return false}));_.types.push(T);e.next();r(_,">");return"variable"}if(I==" "){r(_,I)}if(I=="."){r(_,I)}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/5862.be1ec453e8db6844c62d.js b/share/jupyter/lab/static/5862.be1ec453e8db6844c62d.js new file mode 100644 index 0000000..1166a9f --- /dev/null +++ b/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/share/jupyter/lab/static/5877.72ab5a29e95ce21981e4.js b/share/jupyter/lab/static/5877.72ab5a29e95ce21981e4.js new file mode 100644 index 0000000..b564f6b --- /dev/null +++ b/share/jupyter/lab/static/5877.72ab5a29e95ce21981e4.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5877],{15877:(t,r,e)=>{e.r(r);e.d(r,{mscgen:()=>n,msgenny:()=>i,xu:()=>a});function o(t){return{name:"mscgen",startState:u,copyState:l,token:m(t),languageData:{commentTokens:{line:"#",block:{open:"/*",close:"*/"}}}}}const n=o({keywords:["msc"],options:["hscale","width","arcgradient","wordwraparcs"],constants:["true","false","on","off"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]});const i=o({keywords:null,options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:null,brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]});const a=o({keywords:["msc","xu"],options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip","title","deactivate","activate","activation"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]});function c(t){return new RegExp("^\\b("+t.join("|")+")\\b","i")}function s(t){return new RegExp("^(?:"+t.join("|")+")","i")}function u(){return{inComment:false,inString:false,inAttributeList:false,inScript:false}}function l(t){return{inComment:t.inComment,inString:t.inString,inAttributeList:t.inAttributeList,inScript:t.inScript}}function m(t){return function(r,e){if(r.match(s(t.brackets),true,true)){return"bracket"}if(!e.inComment){if(r.match(/\/\*[^\*\/]*/,true,true)){e.inComment=true;return"comment"}if(r.match(s(t.singlecomment),true,true)){r.skipToEnd();return"comment"}}if(e.inComment){if(r.match(/[^\*\/]*\*\//,true,true))e.inComment=false;else r.skipToEnd();return"comment"}if(!e.inString&&r.match(/\"(\\\"|[^\"])*/,true,true)){e.inString=true;return"string"}if(e.inString){if(r.match(/[^\"]*\"/,true,true))e.inString=false;else r.skipToEnd();return"string"}if(!!t.keywords&&r.match(c(t.keywords),true,true))return"keyword";if(r.match(c(t.options),true,true))return"keyword";if(r.match(c(t.arcsWords),true,true))return"keyword";if(r.match(s(t.arcsOthers),true,true))return"keyword";if(!!t.operators&&r.match(s(t.operators),true,true))return"operator";if(!!t.constants&&r.match(s(t.constants),true,true))return"variable";if(!t.inAttributeList&&!!t.attributes&&r.match("[",true,true)){t.inAttributeList=true;return"bracket"}if(t.inAttributeList){if(t.attributes!==null&&r.match(c(t.attributes),true,true)){return"attribute"}if(r.match("]",true,true)){t.inAttributeList=false;return"bracket"}}r.next();return null}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/5880.0feb80072ad49ee77328.js b/share/jupyter/lab/static/5880.0feb80072ad49ee77328.js new file mode 100644 index 0000000..78e10cf --- /dev/null +++ b/share/jupyter/lab/static/5880.0feb80072ad49ee77328.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5880],{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 f=e.nodeIndexes[Symbol.iterator](),d;!(h=(d=f.next()).done);h=true){var g=d.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(_){l=true;c=_}finally{try{if(!h&&f.return){f.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 C=t.x-(o+n)/2;var I=t.y-(s+a)/2;Object.keys(e).forEach((function(t){var r=e[t];r.setCenter(r.getCenterX()+C,r.getCenterY()+I)}))}}};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 f=void 0;var d=t.descendants().not(":parent");var g=d.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 f=function t(e,r){var f=e.cy;var d=e.eles;var g=d.nodes();var u=d.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(f,d);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,d,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 C=t.newGraphManager();A(C.addRoot(),i.getTopMostNodes(g),t,e);w(t,C,u);L(t,e);t.runLayout();return m};t.exports={coseLayout:f}},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"){f.push(c(r,o[0]));a.relocateComponent(g[0],f[0],r)}else{a.relocateComponent(g[0],o[0],r)}}else{var E=a.getTopMostNodes(r.eles.nodes());d=a.connectComponents(i,r.eles,E);d.forEach((function(t){var e=t.boundingBox();g.push({x:e.x1+e.w/2,y:e.y1+e.h/2})}));if(r.randomize){d.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 C={nodeIndexes:T,xCoords:A,yCoords:w};var I=[];d.forEach((function(t,e){if(t.edges().length==0){t.nodes().forEach((function(e,r){N.merge(t.nodes()[r]);if(!e.isParent()){C.nodeIndexes.set(t.nodes()[r].id(),L++);C.xCoords.push(t.nodes()[0].position().x);C.yCoords.push(t.nodes()[0].position().y)}}));I.push(e)}}));if(N.length>1){var _=N.boundingBox();g.push({x:_.x1+_.w/2,y:_.y1+_.h/2});d.push(N);o.push(C);for(var M=I.length-1;M>=0;M--){d.splice(I[M],1);o.splice(I[M],1);g.splice(I[M],1)}}}d.forEach((function(t,e){r.eles=t;f.push(c(r,o[e]));a.relocateComponent(g[e],f[e],r)}))}else{d.forEach((function(t,e){a.relocateComponent(g[e],o[e],r)}))}var x=new Set;if(d.length>1){var O=[];var D=n.filter((function(t){return t.css("display")=="none"}));d.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(f[e][t.id()]){n.nodes.push({x:f[e][t.id()].getLeft(),y:f[e][t.id()].getTop(),width:f[e][t.id()].getWidth(),height:f[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 d=[];var g=[];if(s.isParent()){var u=a.calcBoundingBox(s,o[e].xCoords,o[e].yCoords,i);d.push(u.topLeftX+u.width/2);d.push(u.topLeftY+u.height/2)}else{d.push(o[e].xCoords[l]);d.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:d[0],startY:d[1],endX:g[0],endY:g[1]})}else{if(f[e][s.id()]&&f[e][h.id()]){n.edges.push({startX:f[e][s.id()].getCenterX(),startY:f[e][s.id()].getCenterY(),endX:f[e][h.id()].getCenterX(),endY:f[e][h.id()].getCenterY()})}}}}));if(n.nodes.length>0){O.push(n);x.add(e)}}}));var b=p.packComponents(O,r.randomize).shifts;if(r.quality=="draft"){o.forEach((function(t,e){var r=t.xCoords.map((function(t){return t+b[e].dx}));var i=t.yCoords.map((function(t){return t+b[e].dy}));t.xCoords=r;t.yCoords=i}))}else{var R=0;x.forEach((function(t){Object.keys(f[t]).forEach((function(e){var r=f[t][e];r.setCenter(r.getCenterX()+b[R].dx,r.getCenterY()+b[R].dy)}));R++}))}}}}var F=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");f.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 G=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,F);if(G.length>0){G.forEach((function(t){t.position(F(t))}))}}else{console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}}]);return t}();t.exports=d},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 f=new Map;var d=[];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 C=e.samplingType;var I=e.nodeSeparation;var _=void 0;var M=function t(){var e=0;var r=0;var i=false;while(r<_){e=Math.floor(Math.random()*T);i=false;for(var n=0;n=o){s=n[o++];var p=d[s];for(var m=0;mf){f=v[N];g=N}}}return g};var O=function t(e){var r=void 0;if(!e){M();for(var i=0;i<_;i++){x(p[i],i,e,false)}}else{r=Math.floor(Math.random()*T);N=r;for(var n=0;n=1){break}f=c}for(var v=0;v=1){break}f=c}for(var N=0;N0){if(r.isParent())d[e].push(f.get(r.id()));else d[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=f.get(t);else n=t;d[i].push(n);d[c.get(n)].push(e)}))};var z=true;var B=false;var V=undefined;try{for(var W=l.keys()[Symbol.iterator](),j;!(z=(j=W.next()).done);z=true){var $=j.value;X($)}}catch(nt){B=true;V=nt}finally{try{if(!z&&W.return){W.return()}}finally{if(B){throw V}}}T=c.size;var q=void 0;if(T>2){_=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 f=r(551).LayoutConstants;var d=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=f.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 f=new Map;var d=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(f.has(e)){f.get(e).push(r)}else{f.set(e,[r])}if(f.has(r)){f.get(r).push(e)}else{f.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(d.has(i)){d.get(i).push(n)}else{d.set(i,[n])}if(d.has(n)){d.get(n).push(i)}else{d.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(f,t.fixedNodesOnHorizontal);this.componentsOnHorizontal=u.components;this.fixedComponentsOnHorizontal=u.isFixed;var p=g(d,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(f.WORLD_CENTER_X-a.x/2,f.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=d.indexOf(E);if(N>=0){d.splice(N,1)}p--;g--}if(e!=null){v=(d.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=d[w].getOtherEnd(t);if(L==e){continue}var C=(r+u*A)%360;var I=(C+A)%360;T.branchRadialLayout(L,t,C,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=d.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 f=Math.pow(r-i,2)+4*(l+i)*(c+r)*n;var d=(i-r+Math.sqrt(f))/(2*(l+i));var g;if(e){g=Math.ceil(d);if(g==d){g++}}else{g=Math.floor(d)}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 f=0;for(var d=0;d0){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(_){d=true;u=_}finally{try{if(!f&&p.return){p.return()}}finally{if(d){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](),C;!(T=(C=L.next()).done);T=true){var I=C.value;g.set(I,g.get(I)+N)}}catch(_){A=true;w=_}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 f=0;f1){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 I.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 f=0;fO){O=x[b].length;D=b}}if(O0){var $={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);$.x+=n.x;$.y+=n.y}));$.x/=e.fixedNodeConstraint.length;$.y/=e.fixedNodeConstraint.length;l.forEach((function(t,e){l[e]+=$.x}));c.forEach((function(t,e){c[e]+=$.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 q=e.alignmentConstraint.vertical;var K=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 I.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(!I.has(t))l[h.get(t)]=o}))};for(var Z=0;Z0)o=c[h.get(n.values().next().value)];else o=v(r).y;r.forEach((function(t){if(!I.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 f=r(11);function d(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}}d.prototype=Object.create(i.prototype);for(var g in i){d[g]=i[g]}d.prototype.getNodes=function(){return this.nodes};d.prototype.getEdges=function(){return this.edges};d.prototype.getGraphManager=function(){return this.graphManager};d.prototype.getParent=function(){return this.parent};d.prototype.getLeft=function(){return this.left};d.prototype.getRight=function(){return this.right};d.prototype.getTop=function(){return this.top};d.prototype.getBottom=function(){return this.bottom};d.prototype.isConnected=function(){return this.isConnected};d.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}};d.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)}};d.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)};d.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 f;var d=this.nodes;var g=d.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 d=0;r.forEach((function(e){if(e.owner==t){d++}}));if(d==this.nodes.length){this.isConnected=true}}};t.exports=d},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]=f;w=true}else{r[0]=l;r[1]=h;w=true}}else if(C===_){if(i>o){r[0]=s;r[1]=h;w=true}else{r[0]=d;r[1]=f;w=true}}if(-I===_){if(o>i){r[2]=m;r[3]=E;L=true}else{r[2]=y;r[3]=v;L=true}}else if(I===_){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(C,_,4);x=this.getCardinalDirection(I,_,2)}else{M=this.getCardinalDirection(-C,_,3);x=this.getCardinalDirection(-I,_,1)}}else{if(n>a){M=this.getCardinalDirection(-C,_,1);x=this.getCardinalDirection(-I,_,3)}else{M=this.getCardinalDirection(C,_,2);x=this.getCardinalDirection(I,_,4)}}if(!w){switch(M){case 1:D=h;O=i+-u/_;r[0]=O;r[1]=D;break;case 2:O=d;D=n+g*_;r[0]=O;r[1]=D;break;case 3:D=f;O=i+u/_;r[0]=O;r[1]=D;break;case 4:O=c;D=n+-g*_;r[0]=O;r[1]=D;break}}if(!L){switch(x){case 1:R=v;b=o+-A/_;r[2]=b;r[3]=R;break;case 2:b=N;R=a+T*_;r[2]=b;r[3]=R;break;case 3:R=E;b=o+A/_;r[2]=b;r[3]=R;break;case 4:b=m;R=a+-T*_;r[2]=b;r[3]=R;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 f=n.x;var d=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=d-c;m=l-f;N=f*c-l*d;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 f=(-h+Math.sqrt(h*h-4*s*l))/(2*s);var d=(-h-Math.sqrt(h*h-4*s*l))/(2*s);var g=null;if(f>=0&&f<=1){return[f]}if(d>=0&&d<=1){return[d]}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 f=c.getEdges();for(var o=0;o-1){l.splice(p,1)}}a=new Set;h=new Map}}return t};d.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(f,1)}var d=s.getNeighborsList();d.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};d.prototype.setGraphManager=function(t){this.graphManager=t};t.exports=d},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 f=0;fe}}]);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 $=void 0;for(j=I-2;j>=-1;j--){if(j===-1){break}if(Math.abs(r[j])<=W+V*(Math.abs(this.s[j])+Math.abs(this.s[j+1]))){r[j]=0;break}}if(j===I-2){$=4}else{var q=void 0;for(q=I-1;q>=j;q--){if(q===j){break}var K=(q!==I?Math.abs(r[q]):0)+(q!==j+1?Math.abs(r[q-1]):0);if(Math.abs(this.s[q])<=W+V*K){this.s[q]=0;break}}if(q===j){$=3}else if(q===I-1){$=1}else{$=2;j=q}}j++;switch($){case 1:{var Z=r[I-2];r[I-2]=0;for(var Q=I-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 _t=this.s[j];this.s[j]=this.s[j+1];this.s[j+1]=_t;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:()=>tt});var i=r(29479);var n=r(95035);var o=r(85054);var a=r(29131);var s=r(42418);var h=r(70416);var l=r(24010);var c=r(76405);var f=r(26527);var d=r.n(f);var g=r(1218);var u={L:"left",R:"right",T:"top",B:"bottom"};var p={L:(0,h.K2)((t=>`${t},${t/2} 0,${t} 0,0`),"L"),R:(0,h.K2)((t=>`0,${t/2} ${t},0 ${t},${t}`),"R"),T:(0,h.K2)((t=>`0,0 ${t},0 ${t/2},${t}`),"T"),B:(0,h.K2)((t=>`${t/2},0 ${t},${t} 0,${t}`),"B")};var v={L:(0,h.K2)(((t,e)=>t-e+2),"L"),R:(0,h.K2)(((t,e)=>t-2),"R"),T:(0,h.K2)(((t,e)=>t-e+2),"T"),B:(0,h.K2)(((t,e)=>t-2),"B")};var y=(0,h.K2)((function(t){if(E(t)){return t==="L"?"R":"L"}else{return t==="T"?"B":"T"}}),"getOppositeArchitectureDirection");var m=(0,h.K2)((function(t){const e=t;return e==="L"||e==="R"||e==="T"||e==="B"}),"isArchitectureDirection");var E=(0,h.K2)((function(t){const e=t;return e==="L"||e==="R"}),"isArchitectureDirectionX");var N=(0,h.K2)((function(t){const e=t;return e==="T"||e==="B"}),"isArchitectureDirectionY");var T=(0,h.K2)((function(t,e){const r=E(t)&&N(e);const i=N(t)&&E(e);return r||i}),"isArchitectureDirectionXY");var A=(0,h.K2)((function(t){const e=t[0];const r=t[1];const i=E(e)&&N(r);const n=N(e)&&E(r);return i||n}),"isArchitecturePairXY");var w=(0,h.K2)((function(t){return t!=="LL"&&t!=="RR"&&t!=="TT"&&t!=="BB"}),"isValidArchitectureDirectionPair");var L=(0,h.K2)((function(t,e){const r=`${t}${e}`;return w(r)?r:void 0}),"getArchitectureDirectionPair");var C=(0,h.K2)((function([t,e],r){const i=r[0];const n=r[1];if(E(i)){if(N(n)){return[t+(i==="L"?-1:1),e+(n==="T"?1:-1)]}else{return[t+(i==="L"?-1:1),e]}}else{if(E(n)){return[t+(n==="L"?1:-1),e+(i==="T"?1:-1)]}else{return[t,e+(i==="T"?1:-1)]}}}),"shiftPositionByArchitectureDirectionPair");var I=(0,h.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 _=(0,h.K2)((function(t,e){if(T(t,e)){return"bend"}else if(E(t)){return"horizontal"}return"vertical"}),"getArchitectureDirectionAlignment");var M=(0,h.K2)((function(t){const e=t;return e.type==="service"}),"isArchitectureService");var x=(0,h.K2)((function(t){const e=t;return e.type==="junction"}),"isArchitectureJunction");var O=(0,h.K2)((t=>t.data()),"edgeData");var D=(0,h.K2)((t=>t.data()),"nodeData");var b=s.UI.architecture;var R=class{constructor(){this.nodes={};this.groups={};this.edges=[];this.registeredIds={};this.elements={};this.setAccTitle=s.SV;this.getAccTitle=s.iN;this.setDiagramTitle=s.ke;this.getDiagramTitle=s.ab;this.getAccDescription=s.m7;this.setAccDescription=s.EI;this.clear()}static{(0,h.K2)(this,"ArchitectureDB")}clear(){this.nodes={};this.groups={};this.edges=[];this.registeredIds={};this.dataStructures=void 0;this.elements={};(0,s.IU)()}addService({id:t,icon:e,in:r,title:i,iconText:n}){if(this.registeredIds[t]!==void 0){throw new Error(`The service id [${t}] is already in use by another ${this.registeredIds[t]}`)}if(r!==void 0){if(t===r){throw new Error(`The service [${t}] cannot be placed within itself`)}if(this.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(this.registeredIds[r]==="node"){throw new Error(`The service [${t}]'s parent is not a group`)}}this.registeredIds[t]="node";this.nodes[t]={id:t,type:"service",icon:e,iconText:n,title:i,edges:[],in:r}}getServices(){return Object.values(this.nodes).filter(M)}addJunction({id:t,in:e}){this.registeredIds[t]="node";this.nodes[t]={id:t,type:"junction",edges:[],in:e}}getJunctions(){return Object.values(this.nodes).filter(x)}getNodes(){return Object.values(this.nodes)}getNode(t){return this.nodes[t]??null}addGroup({id:t,icon:e,in:r,title:i}){if(this.registeredIds?.[t]!==void 0){throw new Error(`The group id [${t}] is already in use by another ${this.registeredIds[t]}`)}if(r!==void 0){if(t===r){throw new Error(`The group [${t}] cannot be placed within itself`)}if(this.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(this.registeredIds?.[r]==="node"){throw new Error(`The group [${t}]'s parent is not a group`)}}this.registeredIds[t]="group";this.groups[t]={id:t,icon:e,title:i,in:r}}getGroups(){return Object.values(this.groups)}addEdge({lhsId:t,rhsId:e,lhsDir:r,rhsDir:i,lhsInto:n,rhsInto:o,lhsGroup:a,rhsGroup:s,title:h}){if(!m(r)){throw new Error(`Invalid direction given for left hand side of edge ${t}--${e}. Expected (L,R,T,B) got ${String(r)}`)}if(!m(i)){throw new Error(`Invalid direction given for right hand side of edge ${t}--${e}. Expected (L,R,T,B) got ${String(i)}`)}if(this.nodes[t]===void 0&&this.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(this.nodes[e]===void 0&&this.groups[e]===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=this.nodes[t].in;const c=this.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 f={lhsId:t,lhsDir:r,lhsInto:n,lhsGroup:a,rhsId:e,rhsDir:i,rhsInto:o,rhsGroup:s,title:h};this.edges.push(f);if(this.nodes[t]&&this.nodes[e]){this.nodes[t].edges.push(this.edges[this.edges.length-1]);this.nodes[e].edges.push(this.edges[this.edges.length-1])}}getEdges(){return this.edges}getDataStructures(){if(this.dataStructures===void 0){const t={};const e=Object.entries(this.nodes).reduce(((e,[r,i])=>{e[r]=i.edges.reduce(((e,i)=>{const n=this.getNode(i.lhsId)?.in;const o=this.getNode(i.rhsId)?.in;if(n&&o&&n!==o){const e=_(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=L(i.lhsDir,i.rhsDir);if(t){e[t]=i.rhsId}}else{const t=L(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,h.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]=C([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]))}this.dataStructures={adjList:e,spatialMaps:a,groupAlignments:t}}return this.dataStructures}setElementForId(t,e){this.elements[t]=e}getElementById(t){return this.elements[t]}getConfig(){return(0,a.$t)({...b,...(0,s.zj)().architecture})}getConfigField(t){return this.getConfig()[t]}};var F=(0,h.K2)(((t,e)=>{(0,o.S)(t,e);t.groups.map((t=>e.addGroup(t)));t.services.map((t=>e.addService({...t,type:"service"})));t.junctions.map((t=>e.addJunction({...t,type:"junction"})));t.edges.map((t=>e.addEdge(t)))}),"populateDb");var G={parser:{yy:void 0},parse:(0,h.K2)((async t=>{const e=await(0,l.qg)("architecture",t);h.Rm.debug(e);const r=G.parser?.yy;if(!(r instanceof R)){throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.")}F(e,r)}),"parse")};var S=(0,h.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 P=S;var U=(0,h.K2)((t=>`${t}`),"wrapIcon");var k={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:U('')},server:{body:U('')},disk:{body:U('')},internet:{body:U('')},cloud:{body:U('')},unknown:n.Gc,blank:{body:U("")}}};var Y=(0,h.K2)((async function(t,e,r){const i=r.getConfigField("padding");const o=r.getConfigField("iconSize");const h=o/2;const l=o/6;const c=l/2;await Promise.all(e.edges().map((async e=>{const{source:o,sourceDir:f,sourceArrow:d,sourceGroup:g,target:u,targetDir:y,targetArrow:m,targetGroup:w,label:C}=O(e);let{x:_,y:M}=e[0].sourceEndpoint();const{x,y:D}=e[0].midpoint();let{x:b,y:R}=e[0].targetEndpoint();const F=i+4;if(g){if(E(f)){_+=f==="L"?-F:F}else{M+=f==="T"?-F:F+18}}if(w){if(E(y)){b+=y==="L"?-F:F}else{R+=y==="T"?-F:F+18}}if(!g&&r.getNode(o)?.type==="junction"){if(E(f)){_+=f==="L"?h:-h}else{M+=f==="T"?h:-h}}if(!w&&r.getNode(u)?.type==="junction"){if(E(y)){b+=y==="L"?h:-h}else{R+=y==="T"?h:-h}}if(e[0]._private.rscratch){const e=t.insert("g");e.insert("path").attr("d",`M ${_},${M} L ${x},${D} L${b},${R} `).attr("class","edge").attr("id",(0,a.rY)(o,u,{prefix:"L"}));if(d){const t=E(f)?v[f](_,l):_-c;const r=N(f)?v[f](M,l):M-c;e.insert("polygon").attr("points",p[f](l)).attr("transform",`translate(${t},${r})`).attr("class","arrow")}if(m){const t=E(y)?v[y](b,l):b-c;const r=N(y)?v[y](R,l):R-c;e.insert("polygon").attr("points",p[y](l)).attr("transform",`translate(${t},${r})`).attr("class","arrow")}if(C){const t=!T(f,y)?E(f)?"X":"Y":"XY";let r=0;if(t==="X"){r=Math.abs(_-b)}else if(t==="Y"){r=Math.abs(M-R)/1.5}else{r=Math.abs(_-b)/2}const i=e.append("g");await(0,n.GZ)(i,C,{useHtmlLabels:false,width:r,classes:"architecture-service-label"},(0,s.D7)());i.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");if(t==="X"){i.attr("transform","translate("+x+", "+D+")")}else if(t==="Y"){i.attr("transform","translate("+x+", "+D+") rotate(-90)")}else if(t==="XY"){const t=L(f,y);if(t&&A(t)){const e=i.node().getBoundingClientRect();const[r,n]=I(t);i.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*r*n*45})`);const o=i.node().getBoundingClientRect();i.attr("transform",`\n translate(${x}, ${D-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 H=(0,h.K2)((async function(t,e,r){const i=r.getConfigField("padding");const o=i*.75;const a=r.getConfigField("fontSize");const h=r.getConfigField("iconSize");const l=h/2;await Promise.all(e.nodes().map((async e=>{const i=D(e);if(i.type==="group"){const{h,w:c,x1:f,y1:d}=e.boundingBox();const g=t.append("rect");g.attr("id",`group-${i.id}`).attr("x",f+l).attr("y",d+l).attr("width",c).attr("height",h).attr("class","node-bkg");const u=t.append("g");let p=f;let v=d;if(i.icon){const t=u.append("g");t.html(`${await(0,n.WY)(i.icon,{height:o,width:o,fallbackPrefix:k.prefix})}`);t.attr("transform","translate("+(p+l+1)+", "+(v+l+1)+")");p+=o;v+=a/2-1-2}if(i.label){const t=u.append("g");await(0,n.GZ)(t,i.label,{useHtmlLabels:false,width:c,classes:"architecture-service-label"},(0,s.D7)());t.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start");t.attr("transform","translate("+(p+l+4)+", "+(v+l+2)+")")}r.setElementForId(i.id,g)}})))}),"drawGroups");var X=(0,h.K2)((async function(t,e,r){const i=(0,s.D7)();for(const o of r){const r=e.append("g");const a=t.getConfigField("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"},i);t.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle");t.attr("transform","translate("+a/2+", "+a+")")}const h=r.append("g");if(o.icon){h.html(`${await(0,n.WY)(o.icon,{height:a,width:a,fallbackPrefix:k.prefix})}`)}else if(o.iconText){h.html(`${await(0,n.WY)("blank",{height:a,width:a,fallbackPrefix:k.prefix})}`);const t=h.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((0,s.jZ)(o.iconText,i));const l=parseInt(window.getComputedStyle(r.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;r.attr("style",`-webkit-line-clamp: ${Math.floor((a-2)/l)};`)}else{h.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("id",`service-${o.id}`).attr("class","architecture-service");const{width:l,height:c}=r.node().getBBox();o.width=l;o.height=c;t.setElementForId(o.id,r)}return 0}),"drawServices");var z=(0,h.K2)((function(t,e,r){r.forEach((r=>{const i=e.append("g");const n=t.getConfigField("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,n.pC)([{name:k.prefix,icons:k}]);c.A.use(d());function B(t,e,r){t.forEach((t=>{e.add({group:"nodes",data:{type:"service",id:t.id,icon:t.icon,label:t.title,parent:t.in,width:r.getConfigField("iconSize"),height:r.getConfigField("iconSize")},classes:"node-service"})}))}(0,h.K2)(B,"addServices");function V(t,e,r){t.forEach((t=>{e.add({group:"nodes",data:{type:"junction",id:t.id,parent:t.in,width:r.getConfigField("iconSize"),height:r.getConfigField("iconSize")},classes:"node-junction"})}))}(0,h.K2)(V,"addJunctions");function W(t,e){e.nodes().map((e=>{const r=D(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,h.K2)(W,"positionNodes");function j(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,h.K2)(j,"addGroups");function $(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 f=T(t.lhsDir,t.rhsDir)?"segments":"straight";const d={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:d,classes:f})}))}(0,h.K2)($,"addEdges");function q(t,e,r){const i=(0,h.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,h.K2)(q,"getAlignments");function K(t,e){const r=[];const i=(0,h.K2)((t=>`${t[0]},${t[1]}`),"posToStr");const n=(0,h.K2)((t=>t.split(",").map((t=>parseInt(t)))),"strToPos");t.forEach((t=>{const o=Object.fromEntries(Object.entries(t).map((([t,e])=>[i(e),t])));const a=[i([0,0])];const s={};const h={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};while(a.length>0){const t=a.shift();if(t){s[t]=1;const l=o[t];if(l){const c=n(t);Object.entries(h).forEach((([t,n])=>{const h=i([c[0]+n[0],c[1]+n[1]]);const f=o[h];if(f&&!s[h]){a.push(h);r.push({[u[t]]:f,[u[y(t)]]:l,gap:1.5*e.getConfigField("iconSize")})}}))}}}}));return r}(0,h.K2)(K,"getRelativeConstraints");function Z(t,e,r,i,n,{spatialMaps:o,groupAlignments:a}){return new Promise((s=>{const l=(0,g.Ltv)("body").append("div").attr("id","cy").attr("style","display:none");const f=(0,c.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":`${n.getConfigField("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:`${n.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});l.remove();j(r,f);B(t,f,n);V(e,f,n);$(i,f);const d=q(n,o,a);const u=K(o,n);const p=f.layout({name:"fcose",quality:"proof",styleEnabled:false,animate:false,nodeDimensionsIncludeLabels:false,idealEdgeLength(t){const[e,r]=t.connectedNodes();const{parent:i}=D(e);const{parent:o}=D(r);const a=i===o?1.5*n.getConfigField("iconSize"):.5*n.getConfigField("iconSize");return a},edgeElasticity(t){const[e,r]=t.connectedNodes();const{parent:i}=D(e);const{parent:n}=D(r);const o=i===n?.45:.001;return o},alignmentConstraint:d,relativePlacementConstraint:u});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 f=(h-a)*(i-s)-(l-s)*(r-a);switch(true){case f>=0:f=1;break;case f<0:f=-1;break}let d=(h-a)*(r-a)+(l-s)*(i-s);switch(true){case d>=0:d=1;break;case d<0:d=-1;break}o=Math.abs(o)*f;n=n*d;return{distances:o,weights:n}}(0,h.K2)(t,"getSegmentWeights");f.startBatch();for(const e of Object.values(f.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}=O(e);const[o,a]=N(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)}}}f.endBatch();p.run()}));p.run();f.ready((t=>{h.Rm.info("Ready",t);s(f)}))}))}(0,h.K2)(Z,"layoutArchitecture");var Q=(0,h.K2)((async(t,e,r,n)=>{const o=n.db;const a=o.getServices();const h=o.getJunctions();const l=o.getGroups();const c=o.getEdges();const f=o.getDataStructures();const d=(0,i.D)(e);const g=d.append("g");g.attr("class","architecture-edges");const u=d.append("g");u.attr("class","architecture-services");const p=d.append("g");p.attr("class","architecture-groups");await X(o,u,a);z(o,u,h);const v=await Z(a,h,l,c,o,f);await Y(g,v,o);await H(p,v,o);W(o,v);(0,s.ot)(void 0,d,o.getConfigField("padding"),o.getConfigField("useMaxWidth"))}),"draw");var J={draw:Q};var tt={parser:G,get db(){return new R},renderer:J,styles:P}},85054:(t,e,r)=>{"use strict";r.d(e,{S:()=>n});var i=r(70416);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")}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/5929.d561797f8259994ecdd8.js b/share/jupyter/lab/static/5929.d561797f8259994ecdd8.js new file mode 100644 index 0000000..68d11aa --- /dev/null +++ b/share/jupyter/lab/static/5929.d561797f8259994ecdd8.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5929],{25929:(e,t,n)=>{n.r(t);n.d(t,{asn1:()=>a});function r(e){var t={},n=e.split(" ");for(var r=0;r{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/share/jupyter/lab/static/5987.7e967df5417044d337a4.js b/share/jupyter/lab/static/5987.7e967df5417044d337a4.js new file mode 100644 index 0000000..5dfe159 --- /dev/null +++ b/share/jupyter/lab/static/5987.7e967df5417044d337a4.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5987],{8368:(e,t,n)=>{n.r(t);n.d(t,{smalltalk:()=>h});var a=/[+\-\/\\*~<>=@%|&?!.,:;^]/;var i=/true|false|nil|self|super|thisContext/;var r=function(e,t){this.next=e;this.parent=t};var s=function(e,t,n){this.name=e;this.context=t;this.eos=n};var l=function(){this.context=new r(o,null);this.expectVariable=true;this.indentation=0;this.userIndentationDelta=0};l.prototype.userIndent=function(e,t){this.userIndentationDelta=e>0?e/t-this.indentation:0};var o=function(e,t,n){var l=new s(null,t,false);var o=e.next();if(o==='"'){l=u(e,new r(u,t))}else if(o==="'"){l=c(e,new r(c,t))}else if(o==="#"){if(e.peek()==="'"){e.next();l=f(e,new r(f,t))}else{if(e.eatWhile(/[^\s.{}\[\]()]/))l.name="string.special";else l.name="meta"}}else if(o==="$"){if(e.next()==="<"){e.eatWhile(/[^\s>]/);e.next()}l.name="string.special"}else if(o==="|"&&n.expectVariable){l.context=new r(p,t)}else if(/[\[\]{}()]/.test(o)){l.name="bracket";l.eos=/[\[{(]/.test(o);if(o==="["){n.indentation++}else if(o==="]"){n.indentation=Math.max(0,n.indentation-1)}}else if(a.test(o)){e.eatWhile(a);l.name="operator";l.eos=o!==";"}else if(/\d/.test(o)){e.eatWhile(/[\w\d]/);l.name="number"}else if(/[\w_]/.test(o)){e.eatWhile(/[\w\d_]/);l.name=n.expectVariable?i.test(e.current())?"keyword":"variable":null}else{l.eos=n.expectVariable}return l};var u=function(e,t){e.eatWhile(/[^"]/);return new s("comment",e.eat('"')?t.parent:t,true)};var c=function(e,t){e.eatWhile(/[^']/);return new s("string",e.eat("'")?t.parent:t,false)};var f=function(e,t){e.eatWhile(/[^']/);return new s("string.special",e.eat("'")?t.parent:t,false)};var p=function(e,t){var n=new s(null,t,false);var a=e.next();if(a==="|"){n.context=t.parent;n.eos=true}else{e.eatWhile(/[^|]/);n.name="variable"}return n};const h={name:"smalltalk",startState:function(){return new l},token:function(e,t){t.userIndent(e.indentation(),e.indentUnit);if(e.eatSpace()){return null}var n=t.context.next(e,t.context,t);t.context=n.context;t.expectVariable=n.eos;return n.name},blankLine:function(e,t){e.userIndent(0,t)},indent:function(e,t,n){var a=e.context.next===o&&t&&t.charAt(0)==="]"?-1:e.userIndentationDelta;return(e.indentation+a)*n.unit},languageData:{indentOnInput:/^\s*\]$/}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/5cda41563a095bd70c78.woff b/share/jupyter/lab/static/5cda41563a095bd70c78.woff new file mode 100644 index 0000000..8278e3f Binary files /dev/null and b/share/jupyter/lab/static/5cda41563a095bd70c78.woff differ diff --git a/share/jupyter/lab/static/6003.94cdab770c801f3c46f7.js b/share/jupyter/lab/static/6003.94cdab770c801f3c46f7.js new file mode 100644 index 0000000..9cd9b46 --- /dev/null +++ b/share/jupyter/lab/static/6003.94cdab770c801f3c46f7.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6003],{56003:(t,e,n)=>{n.r(e);n.d(e,{Annotation:()=>xt,AnnotationType:()=>vt,ChangeDesc:()=>N,ChangeSet:()=>D,CharCategory:()=>Ot,Compartment:()=>rt,EditorSelection:()=>V,EditorState:()=>Dt,Facet:()=>G,Line:()=>P,MapMode:()=>B,Prec:()=>it,Range:()=>jt,RangeSet:()=>_t,RangeSetBuilder:()=>Vt,RangeValue:()=>Lt,SelectionRange:()=>z,StateEffect:()=>yt,StateEffectType:()=>kt,StateField:()=>tt,Text:()=>m,Transaction:()=>St,codePointAt:()=>R,codePointSize:()=>T,combineConfig:()=>Jt,countColumn:()=>ee,findClusterBreak:()=>M,findColumn:()=>ne,fromCodePoint:()=>O});let i=[],s=[];(()=>{let t="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((t=>t?parseInt(t,36):1));for(let e=0,n=0;e>1;if(t=s[r])e=r+1;else return true;if(e==n)return false}}function l(t){return t>=127462&&t<=127487}function h(t){for(let e=0;et)return i[e]<=t}return false}const o=8205;function a(t,e,n=true,i=true){return(n?f:c)(t,e,i)}function f(t,e,n){if(e==t.length)return e;if(e&&d(t.charCodeAt(e))&&g(t.charCodeAt(e-1)))e--;let i=u(t,e);e+=p(i);while(e=0&&l(u(t,i))){n++;i-=2}if(n%2==0)break;else e+=2}else{break}}return e}function c(t,e,n){while(e>0){let i=f(t,e-2,n);if(i=56320&&t<57344}function g(t){return t>=55296&&t<56320}function p(t){return t<65536?1:2}class m{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,false,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,true,1,0)}replace(t,e,n){[t,e]=E(this,t,e);let i=[];this.decompose(0,t,i,2);if(n.length)n.decompose(0,n.length,i,1|2);this.decompose(e,this.length,i,1);return x.from(i,this.length-(e-t)+n.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){[t,e]=E(this,t,e);let n=[];this.decompose(t,e,n,0);return x.from(n,e-t)}eq(t){if(t==this)return true;if(t.length!=this.length||t.lines!=this.lines)return false;let e=this.scanIdentical(t,1),n=this.length-this.scanIdentical(t,-1);let i=new S(this),s=new S(t);for(let r=e,l=e;;){i.next(r);s.next(r);r=0;if(i.lineBreak!=s.lineBreak||i.done!=s.done||i.value!=s.value)return false;l+=i.value.length;if(i.done||l>=n)return true}}iter(t=1){return new S(this,t)}iterRange(t,e=this.length){return new b(this,t,e)}iterLines(t,e){let n;if(t==null){n=this.iter()}else{if(e==null)e=this.lines+1;let i=this.line(t).from;n=this.iterRange(i,Math.max(i,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new I(n)}toString(){return this.sliceString(0)}toJSON(){let t=[];this.flatten(t);return t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");if(t.length==1&&!t[0])return m.empty;return t.length<=32?new w(t):x.from(w.split(t,[]))}}class w extends m{constructor(t,e=v(t)){super();this.text=t;this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,n,i){for(let s=0;;s++){let r=this.text[s],l=i+r.length;if((e?n:l)>=t)return new P(i,l,n,r);i=l+1;n++}}decompose(t,e,n,i){let s=t<=0&&e>=this.length?this:new w(y(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(i&1){let t=n.pop();let e=k(s.text,t.text.slice(),0,s.length);if(e.length<=32){n.push(new w(e,t.length+s.length))}else{let t=e.length>>1;n.push(new w(e.slice(0,t)),new w(e.slice(t)))}}else{n.push(s)}}replace(t,e,n){if(!(n instanceof w))return super.replace(t,e,n);[t,e]=E(this,t,e);let i=k(this.text,k(n.text,y(this.text,0,t)),e);let s=this.length+n.length-(e-t);if(i.length<=32)return new w(i,s);return x.from(w.split(i,[]),s)}sliceString(t,e=this.length,n="\n"){[t,e]=E(this,t,e);let i="";for(let s=0,r=0;s<=e&&rt&&r)i+=n;if(ts)i+=l.slice(Math.max(0,t-s),e-s);s=h+1}return i}flatten(t){for(let e of this.text)t.push(e)}scanIdentical(){return 0}static split(t,e){let n=[],i=-1;for(let s of t){n.push(s);i+=s.length+1;if(n.length==32){e.push(new w(n,i));n=[];i=-1}}if(i>-1)e.push(new w(n,i));return e}}class x extends m{constructor(t,e){super();this.children=t;this.length=e;this.lines=0;for(let n of t)this.lines+=n.lines}lineInner(t,e,n,i){for(let s=0;;s++){let r=this.children[s],l=i+r.length,h=n+r.lines-1;if((e?h:l)>=t)return r.lineInner(t,e,n,i);i=l+1;n=h+1}}decompose(t,e,n,i){for(let s=0,r=0;r<=e&&s=r){let s=i&((r<=t?1:0)|(h>=e?2:0));if(r>=t&&h<=e&&!s)n.push(l);else l.decompose(t-r,e-r,n,s)}r=h+1}}replace(t,e,n){[t,e]=E(this,t,e);if(n.lines=s&&e<=l){let h=r.replace(t-s,e-s,n);let o=this.lines-r.lines+h.lines;if(h.lines>5-1&&h.lines>o>>5+1){let s=this.children.slice();s[i]=h;return new x(s,this.length-(e-t)+n.length)}return super.replace(s,l,h)}s=l+1}return super.replace(t,e,n)}sliceString(t,e=this.length,n="\n"){[t,e]=E(this,t,e);let i="";for(let s=0,r=0;st&&s)i+=n;if(tr)i+=l.sliceString(t-r,e-r,n);r=h+1}return i}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof x))return 0;let n=0;let[i,s,r,l]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=e,s+=e){if(i==r||s==l)return n;let h=this.children[i],o=t.children[s];if(h!=o)return n+h.scanIdentical(o,e);n+=h.length+1}}static from(t,e=t.reduce(((t,e)=>t+e.length+1),-1)){let n=0;for(let u of t)n+=u.lines;if(n<32){let n=[];for(let e of t)e.flatten(n);return new w(n,e)}let i=Math.max(32,n>>5),s=i<<1,r=i>>1;let l=[],h=0,o=-1,a=[];function f(t){let e;if(t.lines>s&&t instanceof x){for(let e of t.children)f(e)}else if(t.lines>r&&(h>r||!h)){c();l.push(t)}else if(t instanceof w&&h&&(e=a[a.length-1])instanceof w&&t.lines+e.lines<=32){h+=t.lines;o+=t.length+1;a[a.length-1]=new w(e.text.concat(t.text),e.length+1+t.length)}else{if(h+t.lines>i)c();h+=t.lines;o+=t.length+1;a.push(t)}}function c(){if(h==0)return;l.push(a.length==1?a[0]:x.from(a,o));o=-1;h=a.length=0}for(let u of t)f(u);c();return l.length==1?l[0]:new x(l,e)}}m.empty=new w([""],0);function v(t){let e=-1;for(let n of t)e+=n.length+1;return e}function k(t,e,n=0,i=1e9){for(let s=0,r=0,l=true;r=n){if(o>i)h=h.slice(0,i-s);if(s0?1:(t instanceof w?t.text.length:t.children.length)<<1]}nextInner(t,e){this.done=this.lineBreak=false;for(;;){let n=this.nodes.length-1;let i=this.nodes[n],s=this.offsets[n],r=s>>1;let l=i instanceof w?i.text.length:i.children.length;if(r==(e>0?l:0)){if(n==0){this.done=true;this.value="";return this}if(e>0)this.offsets[n-1]++;this.nodes.pop();this.offsets.pop()}else if((s&1)==(e>0?0:1)){this.offsets[n]+=e;if(t==0){this.lineBreak=true;this.value="\n";return this}t--}else if(i instanceof w){let s=i.text[r+(e<0?-1:0)];this.offsets[n]+=e;if(s.length>Math.max(0,t)){this.value=t==0?s:e>0?s.slice(t):s.slice(0,s.length-t);return this}t-=s.length}else{let s=i.children[r+(e<0?-1:0)];if(t>s.length){t-=s.length;this.offsets[n]+=e}else{if(e<0)this.offsets[n]--;this.nodes.push(s);this.offsets.push(e>0?1:(s instanceof w?s.text.length:s.children.length)<<1)}}}}next(t=0){if(t<0){this.nextInner(-t,-this.dir);t=this.value.length}return this.nextInner(t,this.dir)}}class b{constructor(t,e,n){this.value="";this.done=false;this.cursor=new S(t,e>n?-1:1);this.pos=e>n?t.length:0;this.from=Math.min(e,n);this.to=Math.max(e,n)}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to){this.value="";this.done=true;return this}t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let n=e<0?this.pos-this.from:this.to-this.pos;if(t>n)t=n;n-=t;let{value:i}=this.cursor.next(t);this.pos+=(i.length+t)*e;this.value=i.length<=n?i:e<0?i.slice(i.length-n):i.slice(0,n);this.done=!this.value;return this}next(t=0){if(t<0)t=Math.max(t,this.from-this.pos);else if(t>0)t=Math.min(t,this.to-this.pos);return this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class I{constructor(t){this.inner=t;this.afterBreak=true;this.value="";this.done=false}next(t=0){let{done:e,lineBreak:n,value:i}=this.inner.next(t);if(e&&this.afterBreak){this.value="";this.afterBreak=false}else if(e){this.done=true;this.value=""}else if(n){if(this.afterBreak){this.value=""}else{this.afterBreak=true;this.next()}}else{this.value=i;this.afterBreak=false}return this}get lineBreak(){return false}}if(typeof Symbol!="undefined"){m.prototype[Symbol.iterator]=function(){return this.iter()};S.prototype[Symbol.iterator]=b.prototype[Symbol.iterator]=I.prototype[Symbol.iterator]=function(){return this}}class P{constructor(t,e,n,i){this.from=t;this.to=e;this.number=n;this.text=i}get length(){return this.to-this.from}}function E(t,e,n){e=Math.max(0,Math.min(t.length,e));return[e,Math.max(e,Math.min(t.length,n))]}function M(t,e,n=true,i=true){return a(t,e,n,i)}function A(t){return t>=56320&&t<57344}function C(t){return t>=55296&&t<56320}function R(t,e){let n=t.charCodeAt(e);if(!C(n)||e+1==t.length)return n;let i=t.charCodeAt(e+1);if(!A(i))return n;return(n-55296<<10)+(i-56320)+65536}function O(t){if(t<=65535)return String.fromCharCode(t);t-=65536;return String.fromCharCode((t>>10)+55296,(t&1023)+56320)}function T(t){return t<65536?1:2}const F=/\r\n?|\n/;var B=function(t){t[t["Simple"]=0]="Simple";t[t["TrackDel"]=1]="TrackDel";t[t["TrackBefore"]=2]="TrackBefore";t[t["TrackAfter"]=3]="TrackAfter";return t}(B||(B={}));class N{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;et)return s+(t-i);s+=l}else{if(n!=B.Simple&&o>=t&&(n==B.TrackDel&&it||n==B.TrackBefore&&it))return null;if(o>t||o==t&&e<0&&!l)return t==i||e<0?s:s+h;s+=h}i=o}if(t>i)throw new RangeError(`Position ${t} is out of range for changeset of length ${i}`);return s}touchesRange(t,e=t){for(let n=0,i=0;n=0&&i<=e&&l>=t)return ie?"cover":true;i=l}return false}toString(){let t="";for(let e=0;e=0?":"+i:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some((t=>typeof t!="number")))throw new RangeError("Invalid JSON representation of ChangeDesc");return new N(t)}static create(t){return new N(t)}}class D extends N{constructor(t,e){super(t);this.inserted=e}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");j(this,((e,n,i,s,r)=>t=t.replace(i,i+(n-e),r)),false);return t}mapDesc(t,e=false){return q(this,t,e,true)}invert(t){let e=this.sections.slice(),n=[];for(let i=0,s=0;i=0){e[i]=l;e[i+1]=r;let h=i>>1;while(n.length0)L(n,e,s.text);s.forward(t);l+=t}let o=t[r++];while(l>1].toJSON()))}return t}static of(t,e,n){let i=[],s=[],r=0;let l=null;function h(t=false){if(!t&&!i.length)return;if(ro||l<0||o>e)throw new RangeError(`Invalid change range ${l} to ${o} (in doc of length ${e})`);let f=!a?m.empty:typeof a=="string"?m.of(a.split(n||F)):a;let c=f.length;if(l==o&&c==0)return;if(lr)J(i,l-r,-1);J(i,o-l,c);L(s,i,f);r=o}}o(t);h(!l);return l}static empty(t){return new D(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let e=[],n=[];for(let i=0;ie&&typeof t!="string"))){throw new RangeError("Invalid JSON representation of ChangeSet")}else if(s.length==1){e.push(s[0],0)}else{while(n.length=0&&n<=0&&n==t[s+1])t[s]+=e;else if(s>=0&&e==0&&t[s]==0)t[s+1]+=n;else if(i){t[s]+=e;t[s+1]+=n}else t.push(e,n)}function L(t,e,n){if(n.length==0)return;let i=e.length-2>>1;if(i>1]);if(n||l==t.sections.length||t.sections[l+1]<0)break;h=t.sections[l++];o=t.sections[l++]}e(s,a,r,f,c);s=a;r=f}}}function q(t,e,n,i=false){let s=[],r=i?[]:null;let l=new _(t),h=new _(e);for(let o=-1;;){if(l.done&&h.len||h.done&&l.len){throw new Error("Mismatched change set lengths")}else if(l.ins==-1&&h.ins==-1){let t=Math.min(l.len,h.len);J(s,t,-1);l.forward(t);h.forward(t)}else if(h.ins>=0&&(l.ins<0||o==l.i||l.off==0&&(h.len=0&&o=0){let t=0,e=l.len;while(e){if(h.ins==-1){let n=Math.min(e,h.len);t+=n;e-=n;h.forward(n)}else if(h.ins==0&&h.lent||l.ins>=0&&l.len>t)&&(h||i.length>e);r.forward2(t);l.forward(t)}}}class _{constructor(t){this.set=t;this.i=0;this.next()}next(){let{sections:t}=this.set;if(this.i>1;return e>=t.length?m.empty:t[e]}textBit(t){let{inserted:e}=this.set,n=this.i-2>>1;return n>=e.length&&!t?m.empty:e[n].slice(this.off,t==null?undefined:this.off+t)}forward(t){if(t==this.len)this.next();else{this.len-=t;this.off+=t}}forward2(t){if(this.ins==-1)this.forward(t);else if(t==this.ins)this.next();else{this.ins-=t;this.off+=t}}}class z{constructor(t,e,n){this.from=t;this.to=e;this.flags=n}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let t=this.flags&7;return t==7?null:t}get goalColumn(){let t=this.flags>>6;return t==16777215?undefined:t}map(t,e=-1){let n,i;if(this.empty){n=i=t.mapPos(this.from,e)}else{n=t.mapPos(this.from,1);i=t.mapPos(this.to,-1)}return n==this.from&&i==this.to?this:new z(n,i,this.flags)}extend(t,e=t){if(t<=this.anchor&&e>=this.anchor)return V.range(t,e);let n=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return V.range(this.anchor,n)}eq(t,e=false){return this.anchor==t.anchor&&this.head==t.head&&(!e||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return V.range(t.anchor,t.head)}static create(t,e,n){return new z(t,e,n)}}class V{constructor(t,e){this.ranges=t;this.mainIndex=e}map(t,e=-1){if(t.empty)return this;return V.create(this.ranges.map((n=>n.map(t,e))),this.mainIndex)}eq(t,e=false){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return false;for(let n=0;nt.toJSON())),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new V(t.ranges.map((t=>z.fromJSON(t))),t.main)}static single(t,e=t){return new V([V.range(t,e)],0)}static create(t,e=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let n=0,i=0;it?8:0)|s)}static normalized(t,e=0){let n=t[e];t.sort(((t,e)=>t.from-e.from));e=t.indexOf(n);for(let i=1;in.head?V.range(l,r):V.range(r,l))}}return new V(t,e)}}function W(t,e){for(let n of t.ranges)if(n.to>e)throw new RangeError("Selection points outside of document")}let U=0;class G{constructor(t,e,n,i,s){this.combine=t;this.compareInput=e;this.compare=n;this.isStatic=i;this.id=U++;this.default=t([]);this.extensions=typeof s=="function"?s(this):s}get reader(){return this}static define(t={}){return new G(t.combine||(t=>t),t.compareInput||((t,e)=>t===e),t.compare||(!t.combine?H:(t,e)=>t===e),!!t.static,t.enables)}of(t){return new K([],this,0,t)}compute(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new K(t,this,1,e)}computeN(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new K(t,this,2,e)}from(t,e){if(!e)e=t=>t;return this.compute([t],(n=>e(n.field(t))))}}function H(t,e){return t==e||t.length==e.length&&t.every(((t,n)=>t===e[n]))}class K{constructor(t,e,n,i){this.dependencies=t;this.facet=e;this.type=n;this.value=i;this.id=U++}dynamicSlot(t){var e;let n=this.value;let i=this.facet.compareInput;let s=this.id,r=t[s]>>1,l=this.type==2;let h=false,o=false,a=[];for(let f of this.dependencies){if(f=="doc")h=true;else if(f=="selection")o=true;else if((((e=t[f.id])!==null&&e!==void 0?e:1)&1)==0)a.push(t[f.id])}return{create(t){t.values[r]=n(t);return 1},update(t,e){if(h&&e.docChanged||o&&(e.docChanged||e.selection)||X(t,a)){let e=n(t);if(l?!Q(e,t.values[r],i):!i(e,t.values[r])){t.values[r]=e;return 1}}return 0},reconfigure:(t,e)=>{let h,o=e.config.address[s];if(o!=null){let s=ft(e,o);if(this.dependencies.every((n=>n instanceof G?e.facet(n)===t.facet(n):n instanceof tt?e.field(n,false)==t.field(n,false):true))||(l?Q(h=n(t),s,i):i(h=n(t),s))){t.values[r]=s;return 0}}else{h=n(t)}t.values[r]=h;return 1}}}}function Q(t,e,n){if(t.length!=e.length)return false;for(let i=0;it[e.id]));let s=n.map((t=>t.type));let r=i.filter((t=>!(t&1)));let l=t[e.id]>>1;function h(t){let n=[];for(let e=0;et===e),t);if(t.provide)e.provides=t.provide(e);return e}create(t){let e=t.facet(Z).find((t=>t.field==this));return((e===null||e===void 0?void 0:e.create)||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:t=>{t.values[e]=this.create(t);return 1},update:(t,n)=>{let i=t.values[e];let s=this.updateF(i,n);if(this.compareF(i,s))return 0;t.values[e]=s;return 1},reconfigure:(t,n)=>{let i=t.facet(Z),s=n.facet(Z),r;if((r=i.find((t=>t.field==this)))&&r!=s.find((t=>t.field==this))){t.values[e]=r.create(t);return 1}if(n.config.address[this.id]!=null){t.values[e]=n.field(this);return 0}t.values[e]=this.create(t);return 1}}}init(t){return[this,Z.of({field:this,create:t})]}get extension(){return this}}const et={lowest:4,low:3,default:2,high:1,highest:0};function nt(t){return e=>new st(e,t)}const it={highest:nt(et.highest),high:nt(et.high),default:nt(et.default),low:nt(et.low),lowest:nt(et.lowest)};class st{constructor(t,e){this.inner=t;this.prec=e}}class rt{of(t){return new lt(this,t)}reconfigure(t){return rt.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class lt{constructor(t,e){this.compartment=t;this.inner=e}}class ht{constructor(t,e,n,i,s,r){this.base=t;this.compartments=e;this.dynamicSlots=n;this.address=i;this.staticValues=s;this.facets=r;this.statusTemplate=[];while(this.statusTemplate.length>1]}static resolve(t,e,n){let i=[];let s=Object.create(null);let r=new Map;for(let c of ot(t,e,r)){if(c instanceof tt)i.push(c);else(s[c.facet.id]||(s[c.facet.id]=[])).push(c)}let l=Object.create(null);let h=[];let o=[];for(let c of i){l[c.id]=o.length<<1;o.push((t=>c.slot(t)))}let a=n===null||n===void 0?void 0:n.config.facets;for(let c in s){let t=s[c],e=t[0].facet;let i=a&&a[c]||[];if(t.every((t=>t.type==0))){l[e.id]=h.length<<1|1;if(H(i,t)){h.push(n.facet(e))}else{let i=e.combine(t.map((t=>t.value)));h.push(n&&e.compare(i,n.facet(e))?n.facet(e):i)}}else{for(let e of t){if(e.type==0){l[e.id]=h.length<<1|1;h.push(e.value)}else{l[e.id]=o.length<<1;o.push((t=>e.dynamicSlot(t)))}}l[e.id]=o.length<<1;o.push((n=>Y(n,e,t)))}}let f=o.map((t=>t(l)));return new ht(t,r,f,l,h,s)}}function ot(t,e,n){let i=[[],[],[],[],[]];let s=new Map;function r(t,l){let h=s.get(t);if(h!=null){if(h<=l)return;let e=i[h].indexOf(t);if(e>-1)i[h].splice(e,1);if(t instanceof lt)n.delete(t.compartment)}s.set(t,l);if(Array.isArray(t)){for(let e of t)r(e,l)}else if(t instanceof lt){if(n.has(t.compartment))throw new RangeError(`Duplicate use of compartment in extensions`);let i=e.get(t.compartment)||t.inner;n.set(t.compartment,i);r(i,l)}else if(t instanceof st){r(t.inner,t.prec)}else if(t instanceof tt){i[l].push(t);if(t.provides)r(t.provides,l)}else if(t instanceof K){i[l].push(t);if(t.facet.extensions)r(t.facet.extensions,et.default)}else{let e=t.extension;if(!e)throw new Error(`Unrecognized extension value in extension set (${t}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(e,l)}}r(t,et.default);return i.reduce(((t,e)=>t.concat(e)))}function at(t,e){if(e&1)return 2;let n=e>>1;let i=t.status[n];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;t.status[n]=4;let s=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|s}function ft(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const ct=G.define();const ut=G.define({combine:t=>t.some((t=>t)),static:true});const dt=G.define({combine:t=>t.length?t[0]:undefined,static:true});const gt=G.define();const pt=G.define();const mt=G.define();const wt=G.define({combine:t=>t.length?t[0]:false});class xt{constructor(t,e){this.type=t;this.value=e}static define(){return new vt}}class vt{of(t){return new xt(this,t)}}class kt{constructor(t){this.map=t}of(t){return new yt(this,t)}}class yt{constructor(t,e){this.type=t;this.value=e}map(t){let e=this.type.map(this.value,t);return e===undefined?undefined:e==this.value?this:new yt(this.type,e)}is(t){return this.type==t}static define(t={}){return new kt(t.map||(t=>t))}static mapEffects(t,e){if(!t.length)return t;let n=[];for(let i of t){let t=i.map(e);if(t)n.push(t)}return n}}yt.reconfigure=yt.define();yt.appendConfig=yt.define();class St{constructor(t,e,n,i,s,r){this.startState=t;this.changes=e;this.selection=n;this.effects=i;this.annotations=s;this.scrollIntoView=r;this._doc=null;this._state=null;if(n)W(n,e.newLength);if(!s.some((t=>t.type==St.time)))this.annotations=s.concat(St.time.of(Date.now()))}static create(t,e,n,i,s,r){return new St(t,e,n,i,s,r)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){if(!this._state)this.startState.applyTransaction(this);return this._state}annotation(t){for(let e of this.annotations)if(e.type==t)return e.value;return undefined}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let e=this.annotation(St.userEvent);return!!(e&&(e==t||e.length>t.length&&e.slice(0,t.length)==t&&e[t.length]=="."))}}St.time=xt.define();St.userEvent=xt.define();St.addToHistory=xt.define();St.remote=xt.define();function bt(t,e){let n=[];for(let i=0,s=0;;){let r,l;if(i=t[i])){r=t[i++];l=t[i++]}else if(s=0;s--){let n=i[s](t);if(n instanceof St)t=n;else if(Array.isArray(n)&&n.length==1&&n[0]instanceof St)t=n[0];else t=Et(e,Rt(n),false)}return t}function At(t){let e=t.startState,n=e.facet(mt),i=t;for(let s=n.length-1;s>=0;s--){let r=n[s](t);if(r&&Object.keys(r).length)i=It(i,Pt(e,r,t.changes.newLength),true)}return i==t?t:St.create(e,t.changes,t.selection,i.effects,i.annotations,i.scrollIntoView)}const Ct=[];function Rt(t){return t==null?Ct:Array.isArray(t)?t:[t]}var Ot=function(t){t[t["Word"]=0]="Word";t[t["Space"]=1]="Space";t[t["Other"]=2]="Other";return t}(Ot||(Ot={}));const Tt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Ft;try{Ft=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(ie){}function Bt(t){if(Ft)return Ft.test(t);for(let e=0;e"€"&&(n.toUpperCase()!=n.toLowerCase()||Tt.test(n)))return true}return false}function Nt(t){return e=>{if(!/\S/.test(e))return Ot.Space;if(Bt(e))return Ot.Word;for(let n=0;n-1)return Ot.Word;return Ot.Other}}class Dt{constructor(t,e,n,i,s,r){this.config=t;this.doc=e;this.selection=n;this.values=i;this.status=t.statusTemplate.slice();this.computeSlot=s;if(r)r._state=this;for(let l=0;li.set(e,t)));e=null}i.set(l.value.compartment,l.value.extension)}else if(l.is(yt.reconfigure)){e=null;n=l.value}else if(l.is(yt.appendConfig)){e=null;n=Rt(n).concat(l.value)}}let s;if(!e){e=ht.resolve(n,i,this);let t=new Dt(e,this.doc,this.selection,e.dynamicSlots.map((()=>null)),((t,e)=>e.reconfigure(t,this)),null);s=t.values}else{s=t.startState.values.slice()}let r=t.startState.facet(ut)?t.newSelection:t.newSelection.asSingle();new Dt(e,t.newDoc,r,s,((e,n)=>n.update(e,t)),t)}replaceSelection(t){if(typeof t=="string")t=this.toText(t);return this.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:t},range:V.cursor(e.from+t.length)})))}changeByRange(t){let e=this.selection;let n=t(e.ranges[0]);let i=this.changes(n.changes),s=[n.range];let r=Rt(n.effects);for(let l=1;le.spec.fromJSON(r,t))))}}return Dt.create({doc:t.doc,selection:V.fromJSON(t.selection),extensions:e.extensions?i.concat([e.extensions]):i})}static create(t={}){let e=ht.resolve(t.extensions||[],new Map);let n=t.doc instanceof m?t.doc:m.of((t.doc||"").split(e.staticFacet(Dt.lineSeparator)||F));let i=!t.selection?V.single(0):t.selection instanceof V?t.selection:V.single(t.selection.anchor,t.selection.head);W(i,n.length);if(!e.staticFacet(ut))i=i.asSingle();return new Dt(e,n,i,e.dynamicSlots.map((()=>null)),((t,e)=>e.create(t)),null)}get tabSize(){return this.facet(Dt.tabSize)}get lineBreak(){return this.facet(Dt.lineSeparator)||"\n"}get readOnly(){return this.facet(wt)}phrase(t,...e){for(let n of this.facet(Dt.phrases))if(Object.prototype.hasOwnProperty.call(n,t)){t=n[t];break}if(e.length)t=t.replace(/\$(\$|\d*)/g,((t,n)=>{if(n=="$")return"$";let i=+(n||1);return!i||i>e.length?t:e[i-1]}));return t}languageDataAt(t,e,n=-1){let i=[];for(let s of this.facet(ct)){for(let r of s(this,e,n)){if(Object.prototype.hasOwnProperty.call(r,t))i.push(r[t])}}return i}charCategorizer(t){return Nt(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:e,from:n,length:i}=this.doc.lineAt(t);let s=this.charCategorizer(t);let r=t-n,l=t-n;while(r>0){let t=M(e,r,false);if(s(e.slice(t,r))!=Ot.Word)break;r=t}while(lt.length?t[0]:4});Dt.lineSeparator=dt;Dt.readOnly=wt;Dt.phrases=G.define({compare(t,e){let n=Object.keys(t),i=Object.keys(e);return n.length==i.length&&n.every((n=>t[n]==e[n]))}});Dt.languageData=ct;Dt.changeFilter=gt;Dt.transactionFilter=pt;Dt.transactionExtender=mt;rt.reconfigure=yt.define();function Jt(t,e,n={}){let i={};for(let s of t)for(let t of Object.keys(s)){let e=s[t],r=i[t];if(r===undefined)i[t]=e;else if(r===e||e===undefined);else if(Object.hasOwnProperty.call(n,t))i[t]=n[t](r,e);else throw new Error("Config merge conflict for field "+t)}for(let s in e)if(i[s]===undefined)i[s]=e[s];return i}class Lt{eq(t){return this==t}range(t,e=t){return jt.create(t,e,this)}}Lt.prototype.startSide=Lt.prototype.endSide=0;Lt.prototype.point=false;Lt.prototype.mapMode=B.TrackDel;class jt{constructor(t,e,n){this.from=t;this.to=e;this.value=n}static create(t,e,n){return new jt(t,e,n)}}function qt(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class $t{constructor(t,e,n,i){this.from=t;this.to=e;this.value=n;this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(t,e,n,i=0){let s=n?this.to:this.from;for(let r=i,l=s.length;;){if(r==l)return r;let i=r+l>>1;let h=s[i]-t||(n?this.value[i].endSide:this.value[i].startSide)-e;if(i==r)return h>=0?r:l;if(h>=0)l=i;else r=i+1}}between(t,e,n,i){for(let s=this.findIndex(e,-1e9,true),r=this.findIndex(n,1e9,false,s);su||c==u&&o.startSide>0&&o.endSide<=0)continue}if((u-c||o.endSide-o.startSide)<0)continue;if(r<0)r=c;if(o.point)l=Math.max(l,u-c);n.push(o);i.push(c-r);s.push(u-r)}return{mapped:n.length?new $t(i,s,n,l):null,pos:r}}}class _t{constructor(t,e,n,i){this.chunkPos=t;this.chunk=e;this.nextLayer=n;this.maxPoint=i}static create(t,e,n,i){return new _t(t,e,n,i)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let e of this.chunk)t+=e.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:e=[],sort:n=false,filterFrom:i=0,filterTo:s=this.length}=t;let r=t.filter;if(e.length==0&&!r)return this;if(n)e=e.slice().sort(qt);if(this.isEmpty)return e.length?_t.of(e):this;let l=new Ut(this,null,-1).goto(0),h=0,o=[];let a=new Vt;while(l.value||h=0){let t=e[h++];if(!a.addInner(t.from,t.to,t.value))o.push(t)}else if(l.rangeIndex==1&&l.chunkIndexthis.chunkEnd(l.chunkIndex)||sl.to||s=s&&t<=s+r.length&&r.between(s,t-s,e-s,n)===false)return}this.nextLayer.between(t,e,n)}iter(t=0){return Gt.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,e=0){return Gt.from(t).goto(e)}static compare(t,e,n,i,s=-1){let r=t.filter((t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=s));let l=e.filter((t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=s));let h=Wt(r,l,n);let o=new Kt(r,h,s);let a=new Kt(l,h,s);n.iterGaps(((t,e,n)=>Qt(o,t,a,e,n,i)));if(n.empty&&n.length==0)Qt(o,0,a,0,0,i)}static eq(t,e,n=0,i){if(i==null)i=1e9-1;let s=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));let r=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0));if(s.length!=r.length)return false;if(!s.length)return true;let l=Wt(s,r);let h=new Kt(s,l,0).goto(n),o=new Kt(r,l,0).goto(n);for(;;){if(h.to!=o.to||!Xt(h.active,o.active)||h.point&&(!o.point||!h.point.eq(o.point)))return false;if(h.to>i)return true;h.next();o.next()}}static spans(t,e,n,i,s=-1){let r=new Kt(t,null,s).goto(e),l=e;let h=r.openStart;for(;;){let t=Math.min(r.to,n);if(r.point){let n=r.activeForPoint(r.to);let s=r.pointFroml){i.span(l,t,r.active,h);h=r.openEnd(t)}if(r.to>n)return h+(r.point&&r.to>n?1:0);l=r.to;r.next()}}static of(t,e=false){let n=new Vt;for(let i of t instanceof jt?[t]:e?zt(t):t)n.add(i.from,i.to,i.value);return n.finish()}static join(t){if(!t.length)return _t.empty;let e=t[t.length-1];for(let n=t.length-2;n>=0;n--){for(let i=t[n];i!=_t.empty;i=i.nextLayer)e=new _t(i.chunkPos,i.chunk,e,Math.max(i.maxPoint,e.maxPoint))}return e}}_t.empty=new _t([],[],null,-1);function zt(t){if(t.length>1)for(let e=t[0],n=1;n0)return t.slice().sort(qt);e=i}return t}_t.empty.nextLayer=_t.empty;class Vt{finishChunk(t){this.chunks.push(new $t(this.from,this.to,this.value,this.maxPoint));this.chunkPos.push(this.chunkStart);this.chunkStart=-1;this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint);this.maxPoint=-1;if(t){this.from=[];this.to=[];this.value=[]}}constructor(){this.chunks=[];this.chunkPos=[];this.chunkStart=-1;this.last=null;this.lastFrom=-1e9;this.lastTo=-1e9;this.from=[];this.to=[];this.value=[];this.maxPoint=-1;this.setMaxPoint=-1;this.nextLayer=null}add(t,e,n){if(!this.addInner(t,e,n))(this.nextLayer||(this.nextLayer=new Vt)).add(t,e,n)}addInner(t,e,n){let i=t-this.lastTo||n.startSide-this.last.endSide;if(i<=0&&(t-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");if(i<0)return false;if(this.from.length==250)this.finishChunk(true);if(this.chunkStart<0)this.chunkStart=t;this.from.push(t-this.chunkStart);this.to.push(e-this.chunkStart);this.last=n;this.lastFrom=t;this.lastTo=e;this.value.push(n);if(n.point)this.maxPoint=Math.max(this.maxPoint,e-t);return true}addChunk(t,e){if((t-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return false;if(this.from.length)this.finishChunk(true);this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint);this.chunks.push(e);this.chunkPos.push(t);let n=e.value.length-1;this.last=e.value[n];this.lastFrom=e.from[n]+t;this.lastTo=e.to[n]+t;return true}finish(){return this.finishInner(_t.empty)}finishInner(t){if(this.from.length)this.finishChunk(false);if(this.chunks.length==0)return t;let e=_t.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);this.from=null;return e}}function Wt(t,e,n){let i=new Map;for(let r of t)for(let t=0;t=this.minPoint)break}}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){this.chunkIndex++;if(this.skip){while(this.chunkIndex=n)i.push(new Ut(r,e,n,s))}}return i.length==1?i[0]:new Gt(i)}get startSide(){return this.value?this.value.startSide:0}goto(t,e=-1e9){for(let n of this.heap)n.goto(t,e);for(let n=this.heap.length>>1;n>=0;n--)Ht(this.heap,n);this.next();return this}forward(t,e){for(let n of this.heap)n.forward(t,e);for(let n=this.heap.length>>1;n>=0;n--)Ht(this.heap,n);if((this.to-t||this.value.endSide-e)<0)this.next()}next(){if(this.heap.length==0){this.from=this.to=1e9;this.value=null;this.rank=-1}else{let t=this.heap[0];this.from=t.from;this.to=t.to;this.value=t.value;this.rank=t.rank;if(t.value)t.next();Ht(this.heap,0)}}}function Ht(t,e){for(let n=t[e];;){let i=(e<<1)+1;if(i>=t.length)break;let s=t[i];if(i+1=0){s=t[i+1];i++}if(n.compare(s)<0)break;t[i]=n;t[e]=s;e=i}}class Kt{constructor(t,e,n){this.minPoint=n;this.active=[];this.activeTo=[];this.activeRank=[];this.minActive=-1;this.point=null;this.pointFrom=0;this.pointRank=0;this.to=-1e9;this.endSide=0;this.openStart=-1;this.cursor=Gt.from(t,e,n)}goto(t,e=-1e9){this.cursor.goto(t,e);this.active.length=this.activeTo.length=this.activeRank.length=0;this.minActive=-1;this.to=t;this.endSide=e;this.openStart=-1;this.next();return this}forward(t,e){while(this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-e)<0)this.removeActive(this.minActive);this.cursor.forward(t,e)}removeActive(t){Yt(this.active,t);Yt(this.activeTo,t);Yt(this.activeRank,t);this.minActive=te(this.active,this.activeTo)}addActive(t){let e=0,{value:n,to:i,rank:s}=this.cursor;while(e0)e++;Zt(this.active,e,n);Zt(this.activeTo,e,i);Zt(this.activeRank,e,s);if(t)Zt(t,e,this.cursor.from);this.minActive=te(this.active,this.activeTo)}next(){let t=this.to,e=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let i=this.minActive;if(i>-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>t){this.to=this.activeTo[i];this.endSide=this.active[i].endSide;break}this.removeActive(i);if(n)Yt(n,i)}else if(!this.cursor.value){this.to=this.endSide=1e9;break}else if(this.cursor.from>t){this.to=this.cursor.from;this.endSide=this.cursor.startSide;break}else{let t=this.cursor.value;if(!t.point){this.addActive(n);this.cursor.next()}else if(e&&this.cursor.to==this.to&&this.cursor.from=0&&n[e]=0;n--){if(this.activeRank[n]t||this.activeTo[n]==t&&this.active[n].endSide>=this.point.endSide)e.push(this.active[n])}return e.reverse()}openEnd(t){let e=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>t;n--)e++;return e}}function Qt(t,e,n,i,s,r){t.goto(e);n.goto(i);let l=i+s;let h=i,o=i-e;for(;;){let e=t.to+o-n.to,i=e||t.endSide-n.endSide;let s=i<0?t.to+o:n.to,a=Math.min(s,l);if(t.point||n.point){if(!(t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))&&Xt(t.activeForPoint(t.to),n.activeForPoint(n.to))))r.comparePoint(h,a,t.point,n.point)}else{if(a>h&&!Xt(t.active,n.active))r.compareRange(h,a,t.active,n.active)}if(s>l)break;if((e||t.openEnd!=n.openEnd)&&r.boundChange)r.boundChange(s);h=s;if(i<=0)t.next();if(i>=0)n.next()}}function Xt(t,e){if(t.length!=e.length)return false;for(let n=0;n=e;i--)t[i+1]=t[i];t[e]=n}function te(t,e){let n=-1,i=1e9;for(let s=0;s=e)return s;if(s==t.length)break;r+=t.charCodeAt(s)==9?n-r%n:1;s=M(t,s)}return i===true?-1:t.length}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/6060.52dca011e9f2f279fc5e.js b/share/jupyter/lab/static/6060.52dca011e9f2f279fc5e.js new file mode 100644 index 0000000..0bee75c --- /dev/null +++ b/share/jupyter/lab/static/6060.52dca011e9f2f279fc5e.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6060],{56060:(e,a,n)=>{n.r(a);n.d(a,{gherkin:()=>i});const i={name:"gherkin",startState:function(){return{lineNumber:0,tableHeaderLine:false,allowFeature:true,allowBackground:false,allowScenario:false,allowSteps:false,allowPlaceholders:false,allowMultilineArgument:false,inMultilineString:false,inMultilineTable:false,inKeywordLine:false}},token:function(e,a){if(e.sol()){a.lineNumber++;a.inKeywordLine=false;if(a.inMultilineTable){a.tableHeaderLine=false;if(!e.match(/\s*\|/,false)){a.allowMultilineArgument=false;a.inMultilineTable=false}}}e.eatSpace();if(a.allowMultilineArgument){if(a.inMultilineString){if(e.match('"""')){a.inMultilineString=false;a.allowMultilineArgument=false}else{e.match(/.*/)}return"string"}if(a.inMultilineTable){if(e.match(/\|\s*/)){return"bracket"}else{e.match(/[^\|]*/);return a.tableHeaderLine?"header":"string"}}if(e.match('"""')){a.inMultilineString=true;return"string"}else if(e.match("|")){a.inMultilineTable=true;a.tableHeaderLine=true;return"bracket"}}if(e.match(/#.*/)){return"comment"}else if(!a.inKeywordLine&&e.match(/@\S+/)){return"tag"}else if(!a.inKeywordLine&&a.allowFeature&&e.match(/(機能|功能|フィーチャ|기능|โครงหลัก|ความสามารถ|ความต้องการทางธุรกิจ|ಹೆಚ್ಚಳ|గుణము|ਮੁਹਾਂਦਰਾ|ਨਕਸ਼ ਨੁਹਾਰ|ਖਾਸੀਅਤ|रूप लेख|وِیژگی|خاصية|תכונה|Функціонал|Функция|Функционалност|Функционал|Үзенчәлеклелек|Свойство|Особина|Мөмкинлек|Могућност|Λειτουργία|Δυνατότητα|Właściwość|Vlastnosť|Trajto|Tính năng|Savybė|Pretty much|Požiadavka|Požadavek|Potrzeba biznesowa|Özellik|Osobina|Ominaisuus|Omadus|OH HAI|Mogućnost|Mogucnost|Jellemző|Hwæt|Hwaet|Funzionalità|Funktionalitéit|Funktionalität|Funkcja|Funkcionalnost|Funkcionalitāte|Funkcia|Fungsi|Functionaliteit|Funcționalitate|Funcţionalitate|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalité|Fitur|Fīča|Feature|Eiginleiki|Egenskap|Egenskab|Característica|Caracteristica|Business Need|Aspekt|Arwedd|Ahoy matey!|Ability):/)){a.allowScenario=true;a.allowBackground=true;a.allowPlaceholders=false;a.allowSteps=false;a.allowMultilineArgument=false;a.inKeywordLine=true;return"keyword"}else if(!a.inKeywordLine&&a.allowBackground&&e.match(/(背景|배경|แนวคิด|ಹಿನ್ನೆಲೆ|నేపథ్యం|ਪਿਛੋਕੜ|पृष्ठभूमि|زمینه|الخلفية|רקע|Тарих|Предыстория|Предистория|Позадина|Передумова|Основа|Контекст|Кереш|Υπόβαθρο|Założenia|Yo\-ho\-ho|Tausta|Taust|Situācija|Rerefons|Pozadina|Pozadie|Pozadí|Osnova|Latar Belakang|Kontext|Konteksts|Kontekstas|Kontekst|Háttér|Hannergrond|Grundlage|Geçmiş|Fundo|Fono|First off|Dis is what went down|Dasar|Contexto|Contexte|Context|Contesto|Cenário de Fundo|Cenario de Fundo|Cefndir|Bối cảnh|Bakgrunnur|Bakgrunn|Bakgrund|Baggrund|Background|B4|Antecedents|Antecedentes|Ær|Aer|Achtergrond):/)){a.allowPlaceholders=false;a.allowSteps=true;a.allowBackground=false;a.allowMultilineArgument=false;a.inKeywordLine=true;return"keyword"}else if(!a.inKeywordLine&&a.allowScenario&&e.match(/(場景大綱|场景大纲|劇本大綱|剧本大纲|テンプレ|シナリオテンプレート|シナリオテンプレ|シナリオアウトライン|시나리오 개요|สรุปเหตุการณ์|โครงสร้างของเหตุการณ์|ವಿವರಣೆ|కథనం|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਟਕਥਾ ਢਾਂਚਾ|परिदृश्य रूपरेखा|سيناريو مخطط|الگوی سناریو|תבנית תרחיש|Сценарийның төзелеше|Сценарий структураси|Структура сценарію|Структура сценария|Структура сценарија|Скица|Рамка на сценарий|Концепт|Περιγραφή Σεναρίου|Wharrimean is|Template Situai|Template Senario|Template Keadaan|Tapausaihio|Szenariogrundriss|Szablon scenariusza|Swa hwær swa|Swa hwaer swa|Struktura scenarija|Structură scenariu|Structura scenariu|Skica|Skenario konsep|Shiver me timbers|Senaryo taslağı|Schema dello scenario|Scenariomall|Scenariomal|Scenario Template|Scenario Outline|Scenario Amlinellol|Scenārijs pēc parauga|Scenarijaus šablonas|Reckon it's like|Raamstsenaarium|Plang vum Szenario|Plan du Scénario|Plan du scénario|Osnova scénáře|Osnova Scenára|Náčrt Scenáru|Náčrt Scénáře|Náčrt Scenára|MISHUN SRSLY|Menggariskan Senario|Lýsing Dæma|Lýsing Atburðarásar|Konturo de la scenaro|Koncept|Khung tình huống|Khung kịch bản|Forgatókönyv vázlat|Esquema do Cenário|Esquema do Cenario|Esquema del escenario|Esquema de l'escenari|Esbozo do escenario|Delineação do Cenário|Delineacao do Cenario|All y'all|Abstrakt Scenario|Abstract Scenario):/)){a.allowPlaceholders=true;a.allowSteps=true;a.allowMultilineArgument=false;a.inKeywordLine=true;return"keyword"}else if(a.allowScenario&&e.match(/(例子|例|サンプル|예|ชุดของเหตุการณ์|ชุดของตัวอย่าง|ಉದಾಹರಣೆಗಳು|ఉదాహరణలు|ਉਦਾਹਰਨਾਂ|उदाहरण|نمونه ها|امثلة|דוגמאות|Үрнәкләр|Сценарији|Примеры|Примери|Приклади|Мисоллар|Мисаллар|Σενάρια|Παραδείγματα|You'll wanna|Voorbeelden|Variantai|Tapaukset|Se þe|Se the|Se ðe|Scenarios|Scenariji|Scenarijai|Przykłady|Primjeri|Primeri|Příklady|Príklady|Piemēri|Példák|Pavyzdžiai|Paraugs|Örnekler|Juhtumid|Exemplos|Exemples|Exemple|Exempel|EXAMPLZ|Examples|Esempi|Enghreifftiau|Ekzemploj|Eksempler|Ejemplos|Dữ liệu|Dead men tell no tales|Dæmi|Contoh|Cenários|Cenarios|Beispiller|Beispiele|Atburðarásir):/)){a.allowPlaceholders=false;a.allowSteps=true;a.allowBackground=false;a.allowMultilineArgument=true;return"keyword"}else if(!a.inKeywordLine&&a.allowScenario&&e.match(/(場景|场景|劇本|剧本|シナリオ|시나리오|เหตุการณ์|ಕಥಾಸಾರಾಂಶ|సన్నివేశం|ਪਟਕਥਾ|परिदृश्य|سيناريو|سناریو|תרחיש|Сценарій|Сценарио|Сценарий|Пример|Σενάριο|Tình huống|The thing of it is|Tapaus|Szenario|Swa|Stsenaarium|Skenario|Situai|Senaryo|Senario|Scenaro|Scenariusz|Scenariu|Scénario|Scenario|Scenarijus|Scenārijs|Scenarij|Scenarie|Scénář|Scenár|Primer|MISHUN|Kịch bản|Keadaan|Heave to|Forgatókönyv|Escenario|Escenari|Cenário|Cenario|Awww, look mate|Atburðarás):/)){a.allowPlaceholders=false;a.allowSteps=true;a.allowBackground=false;a.allowMultilineArgument=false;a.inKeywordLine=true;return"keyword"}else if(!a.inKeywordLine&&a.allowSteps&&e.match(/(那麼|那么|而且|當|当|并且|同時|同时|前提|假设|假設|假定|假如|但是|但し|並且|もし|ならば|ただし|しかし|かつ|하지만|조건|먼저|만일|만약|단|그리고|그러면|และ |เมื่อ |แต่ |ดังนั้น |กำหนดให้ |ಸ್ಥಿತಿಯನ್ನು |ಮತ್ತು |ನೀಡಿದ |ನಂತರ |ಆದರೆ |మరియు |చెప్పబడినది |కాని |ఈ పరిస్థితిలో |అప్పుడు |ਪਰ |ਤਦ |ਜੇਕਰ |ਜਿਵੇਂ ਕਿ |ਜਦੋਂ |ਅਤੇ |यदि |परन्तु |पर |तब |तदा |तथा |जब |चूंकि |किन्तु |कदा |और |अगर |و |هنگامی |متى |لكن |عندما |ثم |بفرض |با فرض |اما |اذاً |آنگاه |כאשר |וגם |בהינתן |אזי |אז |אבל |Якщо |Һәм |Унда |Тоді |Тогда |То |Также |Та |Пусть |Припустимо, що |Припустимо |Онда |Но |Нехай |Нәтиҗәдә |Лекин |Ләкин |Коли |Когда |Когато |Када |Кад |К тому же |І |И |Задато |Задати |Задате |Если |Допустим |Дано |Дадено |Вә |Ва |Бирок |Әмма |Әйтик |Әгәр |Аммо |Али |Але |Агар |А також |А |Τότε |Όταν |Και |Δεδομένου |Αλλά |Þurh |Þegar |Þa þe |Þá |Þa |Zatati |Zakładając |Zadato |Zadate |Zadano |Zadani |Zadan |Za předpokladu |Za predpokladu |Youse know when youse got |Youse know like when |Yna |Yeah nah |Y'know |Y |Wun |Wtedy |When y'all |When |Wenn |WEN |wann |Ve |Và |Und |Un |ugeholl |Too right |Thurh |Thì |Then y'all |Then |Tha the |Tha |Tetapi |Tapi |Tak |Tada |Tad |Stel |Soit |Siis |Și |Şi |Si |Sed |Se |Så |Quando |Quand |Quan |Pryd |Potom |Pokud |Pokiaľ |Però |Pero |Pak |Oraz |Onda |Ond |Oletetaan |Og |Och |O zaman |Niin |Nhưng |När |Når |Mutta |Men |Mas |Maka |Majd |Mając |Mais |Maar |mä |Ma |Lorsque |Lorsqu'|Logo |Let go and haul |Kun |Kuid |Kui |Kiedy |Khi |Ketika |Kemudian |Keď |Když |Kaj |Kai |Kada |Kad |Jeżeli |Jeśli |Ja |It's just unbelievable |Ir |I CAN HAZ |I |Ha |Givun |Givet |Given y'all |Given |Gitt |Gegeven |Gegeben seien |Gegeben sei |Gdy |Gangway! |Fakat |Étant donnés |Etant donnés |Étant données |Etant données |Étant donnée |Etant donnée |Étant donné |Etant donné |Et |És |Entonces |Entón |Então |Entao |En |Eğer ki |Ef |Eeldades |E |Ðurh |Duota |Dun |Donitaĵo |Donat |Donada |Do |Diyelim ki |Diberi |Dengan |Den youse gotta |DEN |De |Dato |Dați fiind |Daţi fiind |Dati fiind |Dati |Date fiind |Date |Data |Dat fiind |Dar |Dann |dann |Dan |Dados |Dado |Dadas |Dada |Ða ðe |Ða |Cuando |Cho |Cando |Când |Cand |Cal |But y'all |But at the end of the day I reckon |BUT |But |Buh |Blimey! |Biết |Bet |Bagi |Aye |awer |Avast! |Atunci |Atesa |Atès |Apabila |Anrhegedig a |Angenommen |And y'all |And |AN |An |an |Amikor |Amennyiben |Ama |Als |Alors |Allora |Ali |Aleshores |Ale |Akkor |Ak |Adott |Ac |Aber |A zároveň |A tiež |A taktiež |A také |A |a |7 |\* )/)){a.inStep=true;a.allowPlaceholders=true;a.allowMultilineArgument=true;a.inKeywordLine=true;return"keyword"}else if(e.match(/"[^"]*"?/)){return"string"}else if(a.allowPlaceholders&&e.match(/<[^>]*>?/)){return"variable"}else{e.next();e.eatWhile(/[^@"<#]/);return null}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/6095.6e79e3bad86e054aa8c8.js b/share/jupyter/lab/static/6095.6e79e3bad86e054aa8c8.js new file mode 100644 index 0000000..97f102c --- /dev/null +++ b/share/jupyter/lab/static/6095.6e79e3bad86e054aa8c8.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6095],{86095:(e,o,O)=>{O.r(o);O.d(o,{wast:()=>i,wastLanguage:()=>S});var t=O(4452);var a=O.n(t);var b=O(45145);var r=O.n(b);var s=O(27421);const n={__proto__:null,anyref:34,dataref:34,eqref:34,externref:34,i31ref:34,funcref:34,i8:34,i16:34,i32:34,i64:34,f32:34,f64:34};const P=s.U1.deserialize({version:14,states:"!^Q]QPOOOqQPO'#CbOOQO'#Cd'#CdOOQO'#Cl'#ClOOQO'#Ch'#ChQ]QPOOOOQO,58|,58|OxQPO,58|OOQO-E6f-E6fOOQO1G.h1G.h",stateData:"!P~O_OSPOSQOS~OTPOVROXROYROZROaQO~OSUO~P]OSXO~P]O",goto:"xaPPPPPPbPbPPPhPPPrXROPTVQTOQVPTWTVXSOPTV",nodeNames:"⚠ LineComment BlockComment Module ) ( App Identifier Type Keyword Number String",maxTerm:17,nodeProps:[["isolate",-3,1,2,11,""],["openedBy",4,"("],["closedBy",5,")"],["group",-6,6,7,8,9,10,11,"Expression"]],skippedNodes:[0,1,2],repeatNodeCount:1,tokenData:"0o~R^XY}YZ}]^}pq}rs!Stu#pxy'Uyz(e{|(j}!O(j!Q!R(s!R![*p!]!^.^#T#o.{~!SO_~~!VVOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j<%lO!S~!qOZ~~!tRO;'S!S;'S;=`!};=`O!S~#QWOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j;=`<%l!S<%lO!S~#mP;=`<%l!S~#siqr%bst%btu%buv%bvw%bwx%bz{%b{|%b}!O%b!O!P%b!P!Q%b!Q![%b![!]%b!^!_%b!_!`%b!`!a%b!a!b%b!b!c%b!c!}%b#Q#R%b#R#S%b#S#T%b#T#o%b#p#q%b#r#s%b~%giV~qr%bst%btu%buv%bvw%bwx%bz{%b{|%b}!O%b!O!P%b!P!Q%b!Q![%b![!]%b!^!_%b!_!`%b!`!a%b!a!b%b!b!c%b!c!}%b#Q#R%b#R#S%b#S#T%b#T#o%b#p#q%b#r#s%b~'ZPT~!]!^'^~'aTO!]'^!]!^'p!^;'S'^;'S;=`(_<%lO'^~'sVOy'^yz(Yz!]'^!]!^'p!^;'S'^;'S;=`(_<%lO'^~(_OQ~~(bP;=`<%l'^~(jOS~~(mQ!Q!R(s!R![*p~(xUY~!O!P)[!Q![*p!g!h){#R#S+U#X#Y){#l#m+[~)aRY~!Q![)j!g!h){#X#Y){~)oSY~!Q![)j!g!h){#R#S*j#X#Y){~*OR{|*X}!O*X!Q![*_~*[P!Q![*_~*dQY~!Q![*_#R#S*X~*mP!Q![)j~*uTY~!O!P)[!Q![*p!g!h){#R#S+U#X#Y){~+XP!Q![*p~+_R!Q![+h!c!i+h#T#Z+h~+mVY~!O!P,S!Q![+h!c!i+h!r!s-P#R#S+[#T#Z+h#d#e-P~,XTY~!Q![,h!c!i,h!r!s-P#T#Z,h#d#e-P~,mUY~!Q![,h!c!i,h!r!s-P#R#S.Q#T#Z,h#d#e-P~-ST{|-c}!O-c!Q![-o!c!i-o#T#Z-o~-fR!Q![-o!c!i-o#T#Z-o~-tSY~!Q![-o!c!i-o#R#S-c#T#Z-o~.TR!Q![,h!c!i,h#T#Z,h~.aP!]!^.d~.iSP~OY.dZ;'S.d;'S;=`.u<%lO.d~.xP;=`<%l.d~/QiX~qr.{st.{tu.{uv.{vw.{wx.{z{.{{|.{}!O.{!O!P.{!P!Q.{!Q![.{![!].{!^!_.{!_!`.{!`!a.{!a!b.{!b!c.{!c!}.{#Q#R.{#R#S.{#S#T.{#T#o.{#p#q.{#r#s.{",tokenizers:[0],topRules:{Module:[0,3]},specialized:[{term:9,get:e=>n[e]||-1}],tokenPrec:0});const S=t.LRLanguage.define({name:"wast",parser:P.configure({props:[t.indentNodeProp.add({App:(0,t.delimitedIndent)({closing:")",align:false})}),t.foldNodeProp.add({App:t.foldInside,BlockComment(e){return{from:e.from+2,to:e.to-2}}}),(0,b.styleTags)({Keyword:b.tags.keyword,Type:b.tags.typeName,Number:b.tags.number,String:b.tags.string,Identifier:b.tags.variableName,LineComment:b.tags.lineComment,BlockComment:b.tags.blockComment,"( )":b.tags.paren})]}),languageData:{commentTokens:{line:";;",block:{open:"(;",close:";)"}},closeBrackets:{brackets:["(",'"']}}});function i(){return new t.LanguageSupport(S)}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/6145.c422868290460078c013.js b/share/jupyter/lab/static/6145.c422868290460078c013.js new file mode 100644 index 0000000..f1118ca --- /dev/null +++ b/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/share/jupyter/lab/static/6166.2bc9ac8e2156c0701a52.js b/share/jupyter/lab/static/6166.2bc9ac8e2156c0701a52.js new file mode 100644 index 0000000..3bff988 --- /dev/null +++ b/share/jupyter/lab/static/6166.2bc9ac8e2156c0701a52.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6166],{66166:(O,Q,e)=>{e.r(Q);e.d(Q,{cpp:()=>R,cppLanguage:()=>m});var X=e(27421);var $=e(45145);const i=1,a=2,P=3;const r=82,Y=76,s=117,t=85,U=97,n=122,l=65,x=90,c=95,S=48,o=34,w=40,u=41,V=32,T=62;const W=new X.Lu((O=>{if(O.next==Y||O.next==t){O.advance()}else if(O.next==s){O.advance();if(O.next==S+8)O.advance()}if(O.next!=r)return;O.advance();if(O.next!=o)return;O.advance();let Q="";while(O.next!=w){if(O.next==V||O.next<=13||O.next==u)return;Q+=String.fromCharCode(O.next);O.advance()}O.advance();for(;;){if(O.next<0)return O.acceptToken(i);if(O.next==u){let e=true;for(let X=0;e&&X{if(O.next==T){if(O.peek(1)==T)O.acceptToken(a,1)}else{let Q=false,e=0;for(;;e++){if(O.next>=l&&O.next<=x)Q=true;else if(O.next>=U&&O.next<=n)return;else if(O.next!=c&&!(O.next>=S&&O.next<=S+9))break;O.advance()}if(Q&&e>1)O.acceptToken(P)}}),{extend:true});const g=(0,$.styleTags)({"typedef struct union enum class typename decltype auto template operator friend noexcept namespace using requires concept import export module __attribute__ __declspec __based":$.tags.definitionKeyword,"extern MsCallModifier MsPointerModifier extern static register thread_local inline const volatile restrict _Atomic mutable constexpr constinit consteval virtual explicit VirtualSpecifier Access":$.tags.modifier,"if else switch for while do case default return break continue goto throw try catch":$.tags.controlKeyword,"co_return co_yield co_await":$.tags.controlKeyword,"new sizeof delete static_assert":$.tags.operatorKeyword,"NULL nullptr":$.tags.null,this:$.tags.self,"True False":$.tags.bool,"TypeSize PrimitiveType":$.tags.standard($.tags.typeName),TypeIdentifier:$.tags.typeName,FieldIdentifier:$.tags.propertyName,"CallExpression/FieldExpression/FieldIdentifier":$.tags.function($.tags.propertyName),"ModuleName/Identifier":$.tags.namespace,PartitionName:$.tags.labelName,StatementIdentifier:$.tags.labelName,"Identifier DestructorName":$.tags.variableName,"CallExpression/Identifier":$.tags.function($.tags.variableName),"CallExpression/ScopedIdentifier/Identifier":$.tags.function($.tags.variableName),"FunctionDeclarator/Identifier FunctionDeclarator/DestructorName":$.tags.function($.tags.definition($.tags.variableName)),NamespaceIdentifier:$.tags.namespace,OperatorName:$.tags.operator,ArithOp:$.tags.arithmeticOperator,LogicOp:$.tags.logicOperator,BitOp:$.tags.bitwiseOperator,CompareOp:$.tags.compareOperator,AssignOp:$.tags.definitionOperator,UpdateOp:$.tags.updateOperator,LineComment:$.tags.lineComment,BlockComment:$.tags.blockComment,Number:$.tags.number,String:$.tags.string,"RawString SystemLibString":$.tags.special($.tags.string),CharLiteral:$.tags.character,EscapeSequence:$.tags.escape,"UserDefinedLiteral/Identifier":$.tags.literal,PreProcArg:$.tags.meta,"PreprocDirectiveName #include #ifdef #ifndef #if #define #else #endif #elif":$.tags.processingInstruction,MacroName:$.tags.special($.tags.name),"( )":$.tags.paren,"[ ]":$.tags.squareBracket,"{ }":$.tags.brace,"< >":$.tags.angleBracket,". ->":$.tags.derefOperator,", ;":$.tags.separator});const q={__proto__:null,bool:34,char:34,int:34,float:34,double:34,void:34,size_t:34,ssize_t:34,intptr_t:34,uintptr_t:34,charptr_t:34,int8_t:34,int16_t:34,int32_t:34,int64_t:34,uint8_t:34,uint16_t:34,uint32_t:34,uint64_t:34,char8_t:34,char16_t:34,char32_t:34,char64_t:34,const:68,volatile:70,restrict:72,_Atomic:74,mutable:76,constexpr:78,constinit:80,consteval:82,struct:86,__declspec:90,final:148,override:148,public:152,private:152,protected:152,virtual:154,extern:160,static:162,register:164,inline:166,thread_local:168,__attribute__:172,__based:178,__restrict:180,__uptr:180,__sptr:180,_unaligned:180,__unaligned:180,noexcept:194,requires:198,TRUE:786,true:786,FALSE:788,false:788,typename:218,class:220,template:234,throw:248,__cdecl:256,__clrcall:256,__stdcall:256,__fastcall:256,__thiscall:256,__vectorcall:256,try:260,catch:264,export:284,import:288,case:298,default:300,if:310,else:316,switch:320,do:324,while:326,for:332,return:336,break:340,continue:344,goto:348,co_return:352,co_yield:356,using:364,typedef:368,namespace:382,new:400,delete:402,co_await:404,concept:408,enum:412,static_assert:416,friend:424,union:426,explicit:432,operator:446,module:458,signed:520,unsigned:520,long:520,short:520,decltype:530,auto:532,sizeof:568,NULL:574,nullptr:588,this:590};const Z={__proto__:null,"<":131};const p={__proto__:null,">":135};const d={__proto__:null,operator:390,new:578,delete:584};const b=X.U1.deserialize({version:14,states:"$;fQ!QQVOOP'gOUOOO(XOWO'#CdO,RQUO'#CgO,]QUO'#FkO-sQbO'#CwO.UQUO'#CwO0TQUO'#K[O0[QUO'#CvO0gOpO'#DvO0oQ!dO'#D]OOQR'#JP'#JPO5XQVO'#GVO5fQUO'#JWOOQQ'#JW'#JWO8zQUO'#KnO{QVO'#E^O?]QUO'#E^OOQQ'#Ed'#EdOOQQ'#Ee'#EeO?bQVO'#EfO@XQVO'#EiOBUQUO'#FPOBvQUO'#FiOOQR'#Fk'#FkOB{QUO'#FkOOQR'#LR'#LROOQR'#LQ'#LQOETQVO'#KROFxQUO'#LWOGVQUO'#KrOGkQUO'#LWOH]QUO'#LYOOQR'#HV'#HVOOQR'#HW'#HWOOQR'#HX'#HXOOQR'#K}'#K}OOQR'#J`'#J`Q!QQVOOOHkQVO'#F^OIWQUO'#EhOI_QUOOOKZQVO'#HhOKkQUO'#HhONVQUO'#KrONaQUO'#KrOOQQ'#Kr'#KrO!!_QUO'#KrOOQQ'#Jr'#JrO!!lQUO'#HyOOQQ'#K['#K[O!&^QUO'#K[O!&zQUO'#KRO!(zQVO'#I^O!(zQVO'#IaOCQQUO'#KROOQQ'#Iq'#IqOOQQ'#KR'#KRO!,}QUO'#K[OOQR'#KZ'#KZO!-UQUO'#DYO!/mQUO'#KoOOQQ'#Ko'#KoO!/tQUO'#KoO!/{QUO'#ETO!0QQUO'#EWO!0VQUO'#FRO8zQUO'#FPO!QQVO'#F_O!0[Q#vO'#FaO!0gQUO'#FlO!0oQUO'#FqO!0tQVO'#FsO!0oQUO'#FvO!3sQUO'#FwO!3xQVO'#FyO!4SQUO'#F{O!4XQUO'#F}O!4^QUO'#GPO!4cQVO'#GRO!(zQVO'#GTO!4jQUO'#GqO!4xQUO'#GZO!(zQVO'#FfO!6VQUO'#FfO!6[QVO'#GaO!6cQUO'#GbO!6nQUO'#GoO!6sQUO'#GsO!6xQUO'#G{O!7jQ&lO'#HjO!:mQUO'#GvO!:}QUO'#HYO!;YQUO'#H[O!;bQUO'#DWO!;bQUO'#HvO!;bQUO'#HwO!;yQUO'#HxO!<[QUO'#H}O!=PQUO'#IOO!>uQVO'#IcO!(zQVO'#IeO!?PQUO'#IhO!?WQVO'#IkP!@}{,UO'#CbP!6n{,UO'#CbP!AY{7[O'#CbP!6n{,UO'#CbP!A_{,UO'#CbP!AjOSO'#I{POOO)CEo)CEoOOOO'#I}'#I}O!AtOWO,59OOOQR,59O,59OO!(zQVO,59UOOQQ,59W,59WO!(zQVO,5;ROOQR,5rOOQR'#IY'#IYOOQR'#IZ'#IZOOQR'#I['#I[OOQR'#I]'#I]O!(zQVO,5>sO!(zQVO,5>sO!(zQVO,5>sO!(zQVO,5>sO!(zQVO,5>sO!(zQVO,5>sO!(zQVO,5>sO!(zQVO,5>sO!(zQVO,5>sO!(zQVO,5>sO!DOQVO,5>{OOQQ,5?X,5?XO!EqQVO'#ChO!IjQUO'#CyOOQQ,59c,59cOOQQ,59b,59bOOQQ,5=O,5=OO!IwQ&lO,5=nO!?PQUO,5?SO!LkQVO,5?VO!LrQbO,59cO!L}QVO'#FYOOQQ,5?Q,5?QO!M_QVO,59VO!MfO`O,5:bO!MkQbO'#D^O!M|QbO'#K_O!N[QbO,59wO!NdQbO'#CwO!NuQUO'#CwO!NzQUO'#K[O# UQUO'#CvOOQR-E<}-E<}O# aQUO,5ApO# hQVO'#EfO@XQVO'#EiOBUQUO,5;kOOQR,5m,5>mO#3gQUO'#CgO#4]QUO,5>qO#6OQUO'#IfOOQR'#JO'#JOO#6WQUO,5:xO#6tQUO,5:xO#7eQUO,5:xO#8YQUO'#CtO!0QQUO'#ClOOQQ'#JX'#JXO#6tQUO,5:xO#8bQUO,5;QO!4xQUO'#C}O#9kQUO,5;QO#9pQUO,5>RO#:|QUO'#C}O#;dQUO,5>|O#;iQUO'#KxO#}QUO'#L]O#?UQUO,5>VO#?ZQbO'#CwO#?fQUO'#GdO#?kQUO'#E^O#@[QUO,5;kO#@sQUO'#LOO#@{QUO,5;rOKkQUO'#HgOBUQUO'#HhO#AQQUO'#KrO!6nQUO'#HkO#AxQUO'#CtO!0tQVO,5QO$(WQUO'#E[O$(eQUO,5>SOOQQ,5>T,5>TO$,RQVO'#C{OOQQ-E=p-E=pOOQQ,5>e,5>eOOQQ,59`,59`O$,]QUO,5>xO$.]QUO,5>{O!6nQUO,59tO$.pQUO,5;qO$.}QUO,5<|O!0QQUO,5:oOOQQ,5:r,5:rO$/YQUO,5;mO$/_QUO'#KnOBUQUO,5;kOOQR,5;y,5;yO$0OQUO'#FcO$0^QUO'#FcO$0cQUO,5;{O$3|QVO'#FnO!0tQVO,5eQUO,5pQUO,5=]O$>uQUO,5=]O!4xQUO,5}QUO,5uQUO,5<|O$DXQUO,5<|O$DdQUO,5=ZO!(zQVO,5=_O!(zQVO,5=gO#NeQUO,5=nOOQQ,5>U,5>UO$FiQUO,5>UO$FsQUO,5>UO$FxQUO,5>UO$F}QUO,5>UO!6nQUO,5>UO$H{QUO'#K[O$ISQUO,5=pO$I_QUO,5=bOKkQUO,5=pO$JXQUO,5=tOOQR,5=t,5=tO$JaQUO,5=tO$LlQVO'#H]OOQQ,5=v,5=vO!;]QUO,5=vO%#gQUO'#KkO%#nQUO'#K]O%$SQUO'#KkO%$^QUO'#DyO%$oQUO'#D|O%'lQUO'#K]OOQQ'#K]'#K]O%)_QUO'#K]O%#nQUO'#K]O%)dQUO'#K]OOQQ,59r,59rOOQQ,5>b,5>bOOQQ,5>c,5>cO%)lQUO'#H{O%)tQUO,5>dOOQQ,5>d,5>dO%-`QUO,5>dO%-kQUO,5>iO%1VQVO,5>jO%1^QUO,5>}O# hQVO'#EfO%4dQUO,5>}OOQQ,5>},5>}O%5TQUO,5?PO%7XQUO,5?SO!<[QUO,5?SO%9TQUO,5?VO%zQUO1G0mOOQQ1G0m1G0mO%@WQUO'#CoO%BgQbO'#CwO%BrQUO'#CrO%BwQUO'#CrO%B|QUO1G.tO#AxQUO'#CqOOQQ1G.t1G.tO%EPQUO1G4^O%FVQUO1G4_O%GxQUO1G4_O%IkQUO1G4_O%K^QUO1G4_O%MPQUO1G4_O%NrQUO1G4_O&!eQUO1G4_O&$WQUO1G4_O&%yQUO1G4_O&'lQUO1G4_O&)_QUO1G4_O&+QQUO'#KQO&,ZQUO'#KQO&,cQUO,59SOOQQ,5=Q,5=QO&.kQUO,5=QO&.uQUO,5=QO&.zQUO,5=QO&/PQUO,5=QO!6nQUO,5=QO#NeQUO1G3YO&/ZQUO1G4nO!<[QUO1G4nO&1VQUO1G4qO&2xQVO1G4qOOQQ1G.}1G.}OOQQ1G.|1G.|OOQQ1G2j1G2jO!IwQ&lO1G3YO&3PQUO'#LPO@XQVO'#EiO&4YQUO'#F]OOQQ'#Jb'#JbO&4_QUO'#FZO&4jQUO'#LPO&4rQUO,5;tO&4wQUO1G.qOOQQ1G.q1G.qOOQR1G/|1G/|O&6jQ!dO'#JQO&6oQbO,59xO&9QQ!eO'#D`O&9XQ!dO'#JSO&9^QbO,5@yO&9^QbO,5@yOOQR1G/c1G/cO&9iQbO1G/cO&9nQ&lO'#GfO&:lQbO,59cOOQR1G7[1G7[O#@[QUO1G1VO&:wQUO1G1^OBUQUO1G1VO&=YQUO'#CyO#*wQbO,59cO&@{QUO1G6tOOQR-E<|-E<|O&B_QUO1G0dO#6WQUO1G0dOOQQ-E=V-E=VO#6tQUO1G0dOOQQ1G0l1G0lO&CSQUO,59iOOQQ1G3m1G3mO&CjQUO,59iO&DQQUO,59iO!M_QVO1G4hO!(zQVO'#JZO&DlQUO,5AdOOQQ1G0o1G0oO!(zQVO1G0oO!6nQUO'#JoO&DtQUO,5AwOOQQ1G3q1G3qOOQR1G1V1G1VO&J]QVO'#FOO!M_QVO,5;sOOQQ,5;s,5;sOBUQUO'#JdO&JmQUO,5AjO&JuQVO'#E[OOQR1G1^1G1^O&MdQUO'#L]OOQR1G1o1G1oOOQR-E=g-E=gOOQR1G7^1G7^O#DhQUO1G7^OGVQUO1G7^O#DhQUO1G7`OOQR1G7`1G7`O&MlQUO'#HOO&MtQUO'#LXOOQQ,5=i,5=iO&NSQUO,5=kO&NXQUO,5=lOOQR1G7a1G7aO#EfQVO1G7aO&N^QUO1G7aO' dQVO,5=lOOQR1G1U1G1UO$.vQUO'#E]O'!YQUO'#E]OOQQ'#Kz'#KzO'!sQUO'#KyO'#OQUO,5;UO'#WQUO'#ElO'#kQUO'#ElO'$OQUO'#EtOOQQ'#J]'#J]O'$TQUO,5;cO'$zQUO,5;cO'%uQUO,5;dO'&{QVO,5;dOOQQ,5;d,5;dO''VQVO,5;dO'&{QVO,5;dO''^QUO,5;bO'(ZQUO,5;eO'(fQUO'#KqO'(nQUO,5:vO'(sQUO,5;fOOQQ1G0n1G0nOOQQ'#J^'#J^O''^QUO,5;bO!4xQUO'#E}OOQQ,5;b,5;bO')nQUO'#E`O'+hQUO'#E{OHrQUO1G0nO'+mQUO'#EbOOQQ'#JY'#JYO'-VQUO'#KsOOQQ'#Ks'#KsO'.PQUO1G0eO'.wQUO1G3lO'/}QVO1G3lOOQQ1G3l1G3lO'0XQVO1G3lO'0`QUO'#L`O'1lQUO'#KYO'1zQUO'#KXO'2VQUO,59gO'2_QUO1G/`O'2dQUO'#FPOOQR1G1]1G1]OOQR1G2h1G2hO$>uQUO1G2hO'2nQUO1G2hO'2yQUO1G0ZOOQR'#Ja'#JaO'3OQVO1G1XO'8wQUO'#FTO'8|QUO1G1VO!6nQUO'#JeO'9[QUO,5;}O$0^QUO,5;}OOQQ'#Fd'#FdOOQQ,5;},5;}O'9jQUO1G1gOOQR1G1g1G1gO'9rQUO,5}QUO1G2aOOQQ'#Cu'#CuO'DRQUO'#G]O'D|QUO'#G]O'ERQUO'#LSO'EaQUO'#G`OOQQ'#LT'#LTO'EoQUO1G2aO'EtQVO1G1lO'HVQVO'#GVOBUQUO'#FWOOQR'#Jf'#JfO'EtQVO1G1lO'HaQUO'#FwOOQR1G2g1G2gOOQR,5;x,5;xO'HfQVO,5;xO'HmQUO1G2hO'HrQUO'#JhO'2nQUO1G2hO!(zQVO1G2uO'HzQUO1G2yO'JTQUO1G3RO'KZQUO1G3YOOQQ1G3p1G3pO'KoQUO1G3pOOQR1G3[1G3[O'KtQUO'#K[O'2dQUO'#LUOGkQUO'#LWOOQR'#Gz'#GzO#DhQUO'#LYOOQR'#HR'#HRO'LOQUO'#GwO'$OQUO'#GvOOQR1G2|1G2|O'L{QUO1G2|O'MrQUO1G3[O'M}QUO1G3`O'NSQUO1G3`OOQR1G3`1G3`O'N[QUO'#H^OOQR'#H^'#H^O( eQUO'#H^O!(zQVO'#HaO!(zQVO'#H`OOQR'#L['#L[O( jQUO'#L[OOQR'#Jl'#JlO( oQVO,5=wOOQQ,5=w,5=wO( vQUO'#H_O(!OQUO'#H[OOQQ1G3b1G3bO(!YQUO,5@wOOQQ,5@w,5@wO%)_QUO,5@wO%)dQUO,5@wO%$^QUO,5:eO(%wQUO'#KlO(&VQUO'#KlOOQQ,5:e,5:eOOQQ'#JT'#JTO(&bQUO'#D}O(&lQUO'#KrOGkQUO'#LWO('hQUO'#D}OOQQ'#Hq'#HqOOQQ'#Hs'#HsOOQQ'#Ht'#HtOOQQ'#Km'#KmOOQQ'#JV'#JVO('rQUO,5:hOOQQ,5:h,5:hO((oQUO'#LWO((|QUO'#HuO()dQUO,5@wO()kQUO'#H|O()vQUO'#L_O(*OQUO,5>gO(*TQUO'#L^OOQQ1G4O1G4OO(-zQUO1G4OO(.RQUO1G4OO(.YQUO1G4UO(/`QUO1G4UO(/eQUO,5A}O!6nQUO1G4iO!(zQVO'#IjOOQQ1G4n1G4nO(/jQUO1G4nO(1mQVO1G4qPOOO1G.h1G.hP!A_{,UO1G.hP(3mQUO'#LfP(3x{,UO1G.hP(3}{7[O1G.hPO{O-E=t-E=tPOOO,5BO,5BOP(4V{,UO,5BOPOOO1G5R1G5RO!(zQVO7+$[O(4[QUO'#CyOOQQ,59^,59^O(4gQbO,59cO(4rQbO,59^OOQQ,59],59]OOQQ7+)x7+)xO!M_QVO'#JuO(4}QUO,5@lOOQQ1G.n1G.nOOQQ1G2l1G2lO(5VQUO1G2lO(5[QUO7+(tOOQQ7+*Y7+*YO(7pQUO7+*YO(7wQUO7+*YO(1mQVO7+*]O#NeQUO7+(tO(8UQVO'#JcO(8iQUO,5AkO(8qQUO,5;vOOQQ'#Co'#CoOOQQ,5;w,5;wO!(zQVO'#F[OOQQ-E=`-E=`O!M_QVO,5;uOOQQ1G1`1G1`OOQQ,5?l,5?lOOQQ-E=O-E=OOOQR'#Dg'#DgOOQR'#Di'#DiOOQR'#Dl'#DlO(9zQ!eO'#K`O(:RQMkO'#K`O(:YQ!eO'#K`OOQR'#K`'#K`OOQR'#JR'#JRO(:aQ!eO,59zOOQQ,59z,59zO(:hQbO,5?nOOQQ-E=Q-E=QO(:vQbO1G6eOOQR7+$}7+$}OOQR7+&q7+&qOOQR7+&x7+&xO'8|QUO7+&qO(;RQUO7+&OO#6WQUO7+&OO(;vQUO1G/TO(<^QUO1G/TO(kQUO,5?uOOQQ-E=X-E=XO(?tQUO7+&ZOOQQ,5@Z,5@ZOOQQ-E=m-E=mO(?yQUO'#LPO@XQVO'#EiO(AVQUO1G1_OOQQ1G1_1G1_O(B`QUO,5@OOOQQ,5@O,5@OOOQQ-E=b-E=bO(BtQUO'#KqOOQR7+,x7+,xO#DhQUO7+,xOOQR7+,z7+,zO(CRQUO,5=jO#DsQUO'#JkO(CdQUO,5AsOOQR1G3V1G3VOOQR1G3W1G3WO(CrQUO7+,{OOQR7+,{7+,{O(EjQUO,5:wO(GXQUO'#EwO!(zQVO,5;VO(GzQUO,5:wO(HUQUO'#EpO(HgQUO'#EzOOQQ,5;Z,5;ZO#K]QVO'#ExO(H}QUO,5:wO(IUQUO'#EyO#GgQUO'#J[O(JnQUO,5AeOOQQ1G0p1G0pO(JyQUO,5;WO!<[QUO,5;^O(KdQUO,5;_O(KrQUO,5;WO(NUQUO,5;`OOQQ-E=Z-E=ZO(N^QUO1G0}OOQQ1G1O1G1OO) XQUO1G1OO)!_QVO1G1OO)!fQVO1G1OO)!pQUO1G0|OOQQ1G0|1G0|OOQQ1G1P1G1PO)#mQUO'#JpO)#wQUO,5A]OOQQ1G0b1G0bOOQQ-E=[-E=[O)$PQUO,5;iO!<[QUO,5;iO)$|QVO,5:zO)%TQUO,5;gO$ mQUO7+&YOOQQ7+&Y7+&YO!(zQVO'#EfO)%[QUO,5:|OOQQ'#Kt'#KtOOQQ-E=W-E=WOOQQ,5A_,5A_OOQQ'#Jm'#JmO))PQUO7+&PPOQQ7+&P7+&POOQQ7+)W7+)WO))wQUO7+)WO)*}QVO7+)WOOQQ,5>n,5>nO$)YQVO'#JtO)+UQUO,5@sOOQQ1G/R1G/ROOQQ7+$z7+$zO)+aQUO7+(SO)+fQUO7+(SOOQR7+(S7+(SO$>uQUO7+(SOOQQ7+%u7+%uOOQR-E=_-E=_O!0VQUO,5;oOOQQ,5@P,5@POOQQ-E=c-E=cO$0^QUO1G1iOOQQ1G1i1G1iOOQR7+'R7+'ROOQR1G1t1G1tOBUQUO,5;rO),SQUO,5hQUO,5VQUO7+(aO)?]QUO7+(eO)?bQVO7+(eOOQQ7+(m7+(mOOQQ7+)[7+)[O)?jQUO'#KkO)?tQUO'#KkOOQR,5=c,5=cO)@RQUO,5=cO!;bQUO,5=cO!;bQUO,5=cO!;bQUO,5=cOOQR7+(h7+(hOOQR7+(v7+(vOOQR7+(z7+(zOOQR,5=x,5=xO)@WQUO,5={O)A^QUO,5=zOOQR,5Av,5AvOOQR-E=j-E=jOOQQ1G3c1G3cO)BdQUO,5=yO)BiQVO'#EfOOQQ1G6c1G6cO%)_QUO1G6cO%)dQUO1G6cOOQQ1G0P1G0POOQQ-E=R-E=RO)EQQUO,5AWO(%wQUO'#JUO)E]QUO,5AWO)E]QUO,5AWO)EeQUO,5:iO8zQUO,5:iOOQQ,5>^,5>^O)EoQUO,5ArO)EvQUO'#EVO)GQQUO'#EVO)GkQUO,5:iO)GuQUO'#HmO)GuQUO'#HnOOQQ'#Kp'#KpO)HdQUO'#KpO!(zQVO'#HoOOQQ,5:i,5:iO)IUQUO,5:iO!M_QVO,5:iOOQQ-E=T-E=TOOQQ1G0S1G0SOOQQ,5>a,5>aO)IZQUO1G6cO!(zQVO,5>hO)LxQUO'#JsO)MTQUO,5AyOOQQ1G4R1G4RO)M]QUO,5AxOOQQ,5Ax,5AxOOQQ7+)j7+)jO*!zQUO7+)jOOQQ7+)p7+)pO*'yQVO1G7iO*){QUO7+*TO**QQUO,5?UO*+WQUO7+*]POOO7+$S7+$SP*,yQUO'#LgP*-RQUO,5BQP*-W{,UO7+$SPOOO1G7j1G7jO*-]QUO<RQUO'#ElOOQQ1G0z1G0zOOQQ7+&j7+&jO*>gQUO7+&jO*?mQVO7+&jOOQQ7+&h7+&hOOQQ,5@[,5@[OOQQ-E=n-E=nO*@iQUO1G1TO*@sQUO1G1TO*A^QUO1G0fOOQQ1G0f1G0fO*BdQUO'#K|O*BlQUO1G1ROOQQ<OOOQQ-E=k-E=kPOQQ<uQUO<WO)GuQUO'#JqO*N`QUO1G0TO*NqQVO1G0TOOQQ1G3v1G3vO*NxQUO,5>XO+ TQUO,5>YO+ rQUO,5>ZO+!xQUO1G0TO%)dQUO7++}O+$OQUO1G4SOOQQ,5@_,5@_OOQQ-E=q-E=qOOQQ<o,5>oO+/wQUOANAYOOQRANAYANAYO+/|QUO7+'aOOQRAN@dAN@dO+1YQVOAN@oO+1aQUOAN@oO!0tQVOAN@oO+2jQUOAN@oO+2oQUOANAOO+2zQUOANAOO+4QQUOANAOOOQRAN@oAN@oO!M_QVOANAOOOQRANAPANAPO+4VQUO7+'}O)7eQUO7+'}OOQQ7+(P7+(PO+4hQUO7+(PO+5nQVO7+(PO+5uQVO7+'iO+5|QUOANAkOOQR7+(i7+(iOOQR7+)Q7+)QO+6RQUO7+)QO+6WQUO7+)QOOQQ<= i<= iO+6`QUO7+,^O+6hQUO1G5[OOQQ1G5[1G5[O+6sQUO7+%oOOQQ7+%o7+%oO+7UQUO7+%oO*NqQVO7+%oOOQQ7+)b7+)bO+7ZQUO7+%oO+8aQUO7+%oO!M_QVO7+%oO+8kQUO1G0]O*LyQUO1G0]O)EvQUO1G0]OOQQ1G0a1G0aO+9YQUO1G3rO+:`QVO1G3rOOQQ1G3r1G3rO+:jQVO1G3rO+:qQUO,5@]OOQQ-E=o-E=oOOQQ1G3s1G3sO%)_QUO<= iOOQQ7+*[7+*[POQQ,5@c,5@cPOQQ-E=u-E=uOOQQ1G/}1G/}OOQQ,5?y,5?yOOQQ-E=]-E=]OOQRG26tG26tO+;YQUOG26ZO!0tQVOG26ZO+UQUO<ZQUO<`QUO<uAN>uO+COQUOAN>uO+DUQUOAN>uO!M_QVOAN>uO+DZQUO<|QUO'#K[O,?^QUO'#CyO,?lQbO,59cO,6eQUO7+&OO,XP>r?U?jFdMf!&l!-UP!4Q!4u!5jP!6UPPPPPPPP!6oP!8ZPP!9n!;YP!;`PPPPPP!;cP!;cPP!;cPPPPPPPPP!;o!?XP!?[PP!?x!@mPPPPP!@qP>u!BUPP>u!D_!F`!Fn!HV!IxP!JTP!Jd!Jd!Mv##X#$q#(P#+]!F`#+gPP!F`#+n#+t#+g#+g#+wP#+{#,j#,j#,j#,j!IxP#-T#-f#/lP#0SP#1qP#1u#2P#2v#3R#5a#5i#5i#5p#1uP#1uP#6U#6[P#6fPP#7T#7t#8h#7TP#9[#9hP#7TP#7TPP#7T#7TP#7TP#7TP#7TP#7TP#7TP#7TP#9k#6f#:ZP#:rP#;Z#;Z#;Z#;Z#;h#1uP#u>u>u$%V!@m!@m!@m!@m!@m!@m!6o!6o!6o$%jP$'X$'g!6o$'mPP!6o$)}$*Q#B[$*T:{7o$-]$/W$0w$2g7oPP7o$4Z7oP7o7oP7oP$7c7oP7oPP7o$7oPPPPPPPPP*]P$:y$;P$=h$?p$?v$@^$@h$@s$AS$AY$Bj$Ci$Cp$Cw$C}$DV$Da$Dg$Dv$D|$EV$E_$Ej$Ep$Ez$FQ$F[$Fc$Ft$Fz$GQP$GW$G`$Gg$Gu$Ie$Ik$Iq$Ix$JRPPPPPPPP$JX$J]PPPPP%#a$)}%#d%&n%(xP%)V%)YPPPPPPPPPP%)f%*i%*o%*s%,l%-{%.n%.u%1W%1^PPP%1h%1s%1v%1|%3T%3W%3d%3n%3r%4x%5m%5s#BeP%6^%6p%6s%7V%7e%7i%7o%7u$)}$*Q$*Q%7x%7{P%8V%8YR#cP'dmO[aefwx{!W!X!g!k!n!r!s!v!x#X#Y#[#g#i#l#q#r#s#t#u#v#w#x#y#z#{#}$U$W$Y$e$f$k%]%m&Q&S&W&b&f&x&y&|'O'P'b'e'j'k'z(a(c(j)m)s*i*j*m*r*s*w+X+Z+i+k+l,Q,S,o,r,x-^-_-b-f-j.S.T.X/Q/T/_/f/o/q/v/x0k1O1T1d1e1o1s1}2P2f2i2l2x2}3Q3m4S4V4[4e5^5i5u6c6g6j6l6n6x6z7P7f7n7q8i8k8q8w8x9V9Z9a9c9p9s9t:P:S:Y:[:a:f:jU%om%p7UQ&m!`Q(k#]d0S*O0P0Q0R0U5R5S5T5W8UR7U3Xf}Oaewx{!g&S'e*r-f&v$i[!W!X!k!n!r!s!v!x#X#Y#[#g#i#l#q#r#s#t#u#v#w#x#y#z#{#}$U$W$Y$e$f$k%]%m&Q&W&b&f&x&y&|'O'P'b'j'k'z(a(c(j)m)s*i*j*m*s*w+X+Z+i+k+l,Q,S,o,r,x-^-_-b-j.S.T.X/Q/T/_/f/o/q/v/x1O1d1e1o1s1}2P2f2i2l2x2}3Q3m4S4V4[4e5^5i5u6c6g6j6l6n6x6z7P7f7n7q8i8k8q8w8x9V9Z9a9c9p9s9t:P:S:Y:[:a:f:jS%`f0k#d%jgnp|#O$g$|$}%S%d%h%i%w&s'u'v(R*Z*a*c*u+^,m,w-`-s-z.i.p.r0`0|0}1R1V2b2m5e6k;[;];^;d;e;f;s;t;u;v;z;{;|;}<[<]<^S%qm!YS&u!h#PQ']!tQ'h!yQ'i!zQ(k#`Q(l#]Q(m#^Q*y%kQ,X&lQ,^&nQ-T'^Q-g'gQ-n'rS.u([4]Q/i)hQ0h*nQ2T,]Q2[,dQ3S-hQ4f/PQ4j/WQ5j1QQ6`2WQ7R3TQ8e6_Q9i8OR;_1T$|#hS!]$y%Q%T%Z&j&k'Q'X'Z'a'c(b(f(i(x(y)S)T)U)V)W)X)Y)Z)[)])^)_)`)l)r)y+Y+h,P,T,k,v-k-l.P.|/s0c0e0j0l0z1c1|2d2k3V3g3h4g4h4n4q4w4y4}5O5h5t5{6Y6i6m6w7O7u7v7x8W8X8g8j8n8v9X9`9o9u:Q:X:^:d:mQ&p!dQ(h#ZQ(t#bQ)k$T[*t%e*X0n2c2j3OQ,_&oQ/R(gQ/V(lQ/^(uS/l)j/SQ0u+RS4u/m/nR8S4v'e![O[aefwx{!W!X!g!k!n!r!s!v!x#X#Y#[#g#i#l#q#r#s#t#u#v#w#x#y#z#{#}$U$W$Y$e$f$k%]%m&Q&S&W&b&f&x&y&|'O'P'b'e'j'k'z(a(c(j)m)s*i*j*m*r*s*w+X+Z+i+k+l,Q,S,o,r,x-^-_-b-f-j.S.T.X/Q/T/_/f/o/q/v/x0k1O1T1d1e1o1s1}2P2f2i2l2x2}3Q3m4S4V4[4e5^5i5u6c6g6j6l6n6x6z7P7f7n7q8i8k8q8w8x9V9Z9a9c9p9s9t:P:S:Y:[:a:f:j'e!VO[aefwx{!W!X!g!k!n!r!s!v!x#X#Y#[#g#i#l#q#r#s#t#u#v#w#x#y#z#{#}$U$W$Y$e$f$k%]%m&Q&S&W&b&f&x&y&|'O'P'b'e'j'k'z(a(c(j)m)s*i*j*m*r*s*w+X+Z+i+k+l,Q,S,o,r,x-^-_-b-f-j.S.T.X/Q/T/_/f/o/q/v/x0k1O1T1d1e1o1s1}2P2f2i2l2x2}3Q3m4S4V4[4e5^5i5u6c6g6j6l6n6x6z7P7f7n7q8i8k8q8w8x9V9Z9a9c9p9s9t:P:S:Y:[:a:f:jQ)P#kS+R%y0vQ/u)tk4R.j3w3{4O4P7g7i7j7l7o9]9^:VQ)R#kk4Q.j3w3{4O4P7g7i7j7l7o9]9^:Vl)Q#k.j3w3{4O4P7g7i7j7l7o9]9^:VT+R%y0v`UOwx!g&S'e*r-fW$`[e$e(c#l$p_!f!u!}#R#S#T#U#V#Z$S$T$l%U&U&Y&c&m'_(O(Q(V(_(h)k)q+]+b+c+u+z,Y,l,{-R-r-w.Z.[.b.c.g.t.x1W1[1i1n1p2o3`3a3b3t3x5n6R6T7`8_![%cg$g%d%i&s*Z*u+^,m,w-`0}1R2b;[;];^;e;f;s;t;u;v;z;{;}<[<]<^Y%snp%w-s.il(}#k.j3w3{4O4P7g7i7j7l7o9]9^:VS;i'u-zU;j(R.p.r&| MacroName LineComment BlockComment PreprocDirective #include String EscapeSequence SystemLibString Identifier ArgumentList ( ConditionalExpression AssignmentExpression CallExpression PrimitiveType FieldExpression FieldIdentifier DestructorName TemplateMethod ScopedFieldIdentifier NamespaceIdentifier TemplateType TypeIdentifier ScopedTypeIdentifier ScopedNamespaceIdentifier :: NamespaceIdentifier TypeIdentifier TemplateArgumentList < TypeDescriptor const volatile restrict _Atomic mutable constexpr constinit consteval StructSpecifier struct MsDeclspecModifier __declspec ) Attribute AttributeName Identifier AttributeArgs { } [ ] UpdateOp ArithOp ArithOp ArithOp LogicOp BitOp BitOp BitOp CompareOp CompareOp CompareOp > CompareOp BitOp UpdateOp , Number CharLiteral AttributeArgs VirtualSpecifier BaseClassClause Access virtual FieldDeclarationList FieldDeclaration extern static register inline thread_local AttributeSpecifier __attribute__ PointerDeclarator MsBasedModifier __based MsPointerModifier FunctionDeclarator ParameterList ParameterDeclaration PointerDeclarator FunctionDeclarator Noexcept noexcept RequiresClause requires True False ParenthesizedExpression CommaExpression LambdaExpression LambdaCaptureSpecifier TemplateParameterList OptionalParameterDeclaration TypeParameterDeclaration typename class VariadicParameterDeclaration VariadicDeclarator ReferenceDeclarator OptionalTypeParameterDeclaration VariadicTypeParameterDeclaration TemplateTemplateParameterDeclaration template AbstractFunctionDeclarator AbstractPointerDeclarator AbstractArrayDeclarator AbstractParenthesizedDeclarator AbstractReferenceDeclarator ThrowSpecifier throw TrailingReturnType CompoundStatement FunctionDefinition MsCallModifier TryStatement try CatchClause catch LinkageSpecification Declaration InitDeclarator InitializerList InitializerPair SubscriptDesignator FieldDesignator DeclarationList ExportDeclaration export ImportDeclaration import ModuleName PartitionName HeaderName CaseStatement case default LabeledStatement StatementIdentifier ExpressionStatement IfStatement if ConditionClause Declaration else SwitchStatement switch DoStatement do while WhileStatement ForStatement for ReturnStatement return BreakStatement break ContinueStatement continue GotoStatement goto CoReturnStatement co_return CoYieldStatement co_yield AttributeStatement ForRangeLoop AliasDeclaration using TypeDefinition typedef PointerDeclarator FunctionDeclarator ArrayDeclarator ParenthesizedDeclarator ThrowStatement NamespaceDefinition namespace ScopedIdentifier Identifier OperatorName operator ArithOp BitOp CompareOp LogicOp new delete co_await ConceptDefinition concept UsingDeclaration enum StaticAssertDeclaration static_assert ConcatenatedString TemplateDeclaration FriendDeclaration friend union FunctionDefinition ExplicitFunctionSpecifier explicit FieldInitializerList FieldInitializer DefaultMethodClause DeleteMethodClause FunctionDefinition OperatorCast operator TemplateInstantiation FunctionDefinition FunctionDefinition Declaration ModuleDeclaration module RequiresExpression RequirementList SimpleRequirement TypeRequirement CompoundRequirement ReturnTypeRequirement ConstraintConjuction LogicOp ConstraintDisjunction LogicOp ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator TemplateFunction OperatorName StructuredBindingDeclarator ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator BitfieldClause FunctionDefinition FunctionDefinition Declaration FunctionDefinition Declaration AccessSpecifier UnionSpecifier ClassSpecifier EnumSpecifier SizedTypeSpecifier TypeSize EnumeratorList Enumerator DependentType Decltype decltype auto PlaceholderTypeSpecifier ParameterPackExpansion ParameterPackExpansion FieldIdentifier PointerExpression SubscriptExpression BinaryExpression ArithOp LogicOp LogicOp BitOp UnaryExpression LogicOp BitOp UpdateExpression CastExpression SizeofExpression sizeof CoAwaitExpression CompoundLiteralExpression NULL NewExpression new NewDeclarator DeleteExpression delete ParameterPackExpansion nullptr this UserDefinedLiteral ParamPack #define PreprocArg #if #ifdef #ifndef #else #endif #elif PreprocDirectiveName Macro Program",maxTerm:426,nodeProps:[["group",-35,1,8,11,14,15,16,18,71,72,100,101,102,104,192,209,230,243,244,271,272,273,278,281,282,283,285,286,287,288,291,293,294,295,296,297,"Expression",-13,17,24,25,26,42,256,257,258,259,263,264,266,267,"Type",-19,126,129,148,151,153,154,159,161,164,165,167,169,171,173,175,177,179,180,189,"Statement"]],propSources:[g],skippedNodes:[0,3,4,5,6,7,10,298,299,300,301,302,303,304,305,306,307,348,349],repeatNodeCount:41,tokenData:"&*r7ZR!UOX$eXY({YZ.gZ]$e]^+P^p$epq({qr.}rs0}st2ktu$euv!7dvw!9bwx!;exy!O{|!?R|}!AV}!O!BQ!O!P!DX!P!Q#+y!Q!R#Az!R![$(x![!]$Ag!]!^$Cc!^!_$D^!_!`%1W!`!a%2X!a!b%5_!b!c$e!c!n%6Y!n!o%7q!o!w%6Y!w!x%7q!x!}%6Y!}#O%:n#O#P%u#Y#]4Y#]#^NZ#^#o4Y#o;'S$e;'S;=`(u<%lO$e4e4eb)[W(qQ'g&j'n.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#o4Y#o;'S$e;'S;=`(u<%lO$e4e5xd)[W(qQ'g&j'n.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#X4Y#X#Y7W#Y#o4Y#o;'S$e;'S;=`(u<%lO$e4e7cd)[W(qQ'g&j'n.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#Y4Y#Y#Z8q#Z#o4Y#o;'S$e;'S;=`(u<%lO$e4e8|d)[W(qQ'g&j'n.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#]4Y#]#^:[#^#o4Y#o;'S$e;'S;=`(u<%lO$e4e:gd)[W(qQ'g&j'n.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#b4Y#b#c;u#c#o4Y#o;'S$e;'S;=`(u<%lO$e4e][)T,g)[W(qQ%[!b'g&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!?`^)[W(qQ%[!b!Y,g'g&jOY$eZr$ers%^sw$ewx(Ox{$e{|!@[|!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!@gY)[W!X-y(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!AbY!h,k)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!B__)[W(qQ%[!b!Y,g'g&jOY$eZr$ers%^sw$ewx(Ox}$e}!O!@[!O!_$e!_!`!8g!`!a!C^!a#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!CiY(y-y)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!Dd^)[W(qQ'g&j(x,gOY$eZr$ers%^sw$ewx(Ox!O$e!O!P!E`!P!Q$e!Q![!GY![#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!Ei[)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox!O$e!O!P!F_!P#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!FjY)Y,k)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2]!Gen)[W(qQ!i,g'g&jOY$eZr$ers%^sw$ewx!Icx!Q$e!Q![!GY![!g$e!g!h#$w!h!i#*Y!i!n$e!n!o#*Y!o!r$e!r!s#$w!s!w$e!w!x#*Y!x#O$e#O#P&f#P#X$e#X#Y#$w#Y#Z#*Y#Z#`$e#`#a#*Y#a#d$e#d#e#$w#e#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e2T!IjY(qQ'g&jOY(OZr(Ors%}s!Q(O!Q![!JY![#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O2T!Jcn(qQ!i,g'g&jOY(OZr(Ors%}sw(Owx!Icx!Q(O!Q![!JY![!g(O!g!h!La!h!i##`!i!n(O!n!o##`!o!r(O!r!s!La!s!w(O!w!x##`!x#O(O#O#P&f#P#X(O#X#Y!La#Y#Z##`#Z#`(O#`#a##`#a#d(O#d#e!La#e#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2T!Ljl(qQ!i,g'g&jOY(OZr(Ors%}s{(O{|!Nb|}(O}!O!Nb!O!Q(O!Q![# e![!c(O!c!h# e!h!i# e!i!n(O!n!o##`!o!w(O!w!x##`!x#O(O#O#P&f#P#T(O#T#Y# e#Y#Z# e#Z#`(O#`#a##`#a#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2T!Ni^(qQ'g&jOY(OZr(Ors%}s!Q(O!Q![# e![!c(O!c!i# e!i#O(O#O#P&f#P#T(O#T#Z# e#Z;'S(O;'S;=`(o<%lO(O2T# nj(qQ!i,g'g&jOY(OZr(Ors%}sw(Owx!Nbx!Q(O!Q![# e![!c(O!c!h# e!h!i# e!i!n(O!n!o##`!o!w(O!w!x##`!x#O(O#O#P&f#P#T(O#T#Y# e#Y#Z# e#Z#`(O#`#a##`#a#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2T##id(qQ!i,g'g&jOY(OZr(Ors%}s!h(O!h!i##`!i!n(O!n!o##`!o!w(O!w!x##`!x#O(O#O#P&f#P#Y(O#Y#Z##`#Z#`(O#`#a##`#a#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2]#%Sn)[W(qQ!i,g'g&jOY$eZr$ers%^sw$ewx(Ox{$e{|#'Q|}$e}!O#'Q!O!Q$e!Q![#(]![!c$e!c!h#(]!h!i#(]!i!n$e!n!o#*Y!o!w$e!w!x#*Y!x#O$e#O#P&f#P#T$e#T#Y#(]#Y#Z#(]#Z#`$e#`#a#*Y#a#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e2]#'Z`)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![#(]![!c$e!c!i#(]!i#O$e#O#P&f#P#T$e#T#Z#(]#Z;'S$e;'S;=`(u<%lO$e2]#(hj)[W(qQ!i,g'g&jOY$eZr$ers%^sw$ewx!Nbx!Q$e!Q![#(]![!c$e!c!h#(]!h!i#(]!i!n$e!n!o#*Y!o!w$e!w!x#*Y!x#O$e#O#P&f#P#T$e#T#Y#(]#Y#Z#(]#Z#`$e#`#a#*Y#a#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e2]#*ef)[W(qQ!i,g'g&jOY$eZr$ers%^sw$ewx(Ox!h$e!h!i#*Y!i!n$e!n!o#*Y!o!w$e!w!x#*Y!x#O$e#O#P&f#P#Y$e#Y#Z#*Y#Z#`$e#`#a#*Y#a#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e7Z#,W`)[W(qQ%[!b![,g'g&jOY$eZr$ers%^sw$ewx(Oxz$ez{#-Y{!P$e!P!Q#:s!Q!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z#-c])[W(qQ'g&jOY#-YYZ#.[Zr#-Yrs#/csw#-Ywx#5wxz#-Yz{#8j{#O#-Y#O#P#2`#P;'S#-Y;'S;=`#:m<%lO#-Y1e#._TOz#.[z{#.n{;'S#.[;'S;=`#/]<%lO#.[1e#.qVOz#.[z{#.n{!P#.[!P!Q#/W!Q;'S#.[;'S;=`#/]<%lO#.[1e#/]OT1e1e#/`P;=`<%l#.[7X#/jZ)[W'g&jOY#/cYZ#.[Zw#/cwx#0]xz#/cz{#4O{#O#/c#O#P#2`#P;'S#/c;'S;=`#5q<%lO#/c7P#0bX'g&jOY#0]YZ#.[Zz#0]z{#0}{#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#1SZ'g&jOY#0]YZ#.[Zz#0]z{#0}{!P#0]!P!Q#1u!Q#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#1|UT1e'g&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}7P#2eZ'g&jOY#0]YZ#0]Z]#0]]^#3W^z#0]z{#0}{#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#3]X'g&jOY#0]YZ#0]Zz#0]z{#0}{#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#3{P;=`<%l#0]7X#4V])[W'g&jOY#/cYZ#.[Zw#/cwx#0]xz#/cz{#4O{!P#/c!P!Q#5O!Q#O#/c#O#P#2`#P;'S#/c;'S;=`#5q<%lO#/c7X#5XW)[WT1e'g&jOY%^Zw%^wx%}x#O%^#O#P&f#P;'S%^;'S;=`'x<%lO%^7X#5tP;=`<%l#/c7R#6OZ(qQ'g&jOY#5wYZ#.[Zr#5wrs#0]sz#5wz{#6q{#O#5w#O#P#2`#P;'S#5w;'S;=`#8d<%lO#5w7R#6x](qQ'g&jOY#5wYZ#.[Zr#5wrs#0]sz#5wz{#6q{!P#5w!P!Q#7q!Q#O#5w#O#P#2`#P;'S#5w;'S;=`#8d<%lO#5w7R#7zW(qQT1e'g&jOY(OZr(Ors%}s#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O7R#8gP;=`<%l#5w7Z#8s_)[W(qQ'g&jOY#-YYZ#.[Zr#-Yrs#/csw#-Ywx#5wxz#-Yz{#8j{!P#-Y!P!Q#9r!Q#O#-Y#O#P#2`#P;'S#-Y;'S;=`#:m<%lO#-Y7Z#9}Y)[W(qQT1e'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z#:pP;=`<%l#-Y7Z#;OY)[W(qQS1e'g&jOY#:sZr#:srs#;nsw#:swx#@{x#O#:s#O#P#[<%lO#b#P;'S#[<%lO#[<%lO#_P;=`<%l#i]S1e'g&jOY#b#P#b#[<%lO#[<%lO#b#P#b#[<%lO#t!R![$2V![!c$e!c!i$2V!i#O$e#O#P&f#P#T$e#T#Z$2V#Z;'S$e;'S;=`(u<%lO$e2]$?Pv)[W(qQ!i,g'g&jOY$eZr$ers%^sw$ewx$4lx!O$e!O!P$ m!P!Q$e!Q![$2V![!c$e!c!g$2V!g!h$:p!h!i$2V!i!n$e!n!o#*Y!o!r$e!r!s#$w!s!w$e!w!x#*Y!x#O$e#O#P&f#P#T$e#T#U$2V#U#V$2V#V#X$2V#X#Y$:p#Y#Z$2V#Z#`$e#`#a#*Y#a#d$e#d#e#$w#e#i$e#i#j#*Y#j#l$e#l#m$0z#m;'S$e;'S;=`(u<%lO$e4e$Ar[(w-X)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox![$e![!]$Bh!]#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3s$BsYl-})[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2]$CnY)X,g)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7V$Dk_p,g%^!b)[W(qQ'g&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!^$Ej!^!_%+w!_!`%.U!`!a%0]!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej*[$Es])[W(qQ'g&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!`$Ej!`!a%*t!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ejp$FoTO!`$Fl!`!a$GO!a;'S$Fl;'S;=`$GT<%lO$Flp$GTO$Xpp$GWP;=`<%l$Fl*Y$GbZ)[W'g&jOY$GZYZ$FlZw$GZwx$HTx!`$GZ!`!a%(U!a#O$GZ#O#P$Ib#P;'S$GZ;'S;=`%(y<%lO$GZ*Q$HYX'g&jOY$HTYZ$FlZ!`$HT!`!a$Hu!a#O$HT#O#P$Ib#P;'S$HT;'S;=`$Mx<%lO$HT*Q$IOU$XpY#t'g&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}*Q$Ig['g&jOY$HTYZ$HTZ]$HT]^$J]^!`$HT!`!a$NO!a#O$HT#O#P%&n#P;'S$HT;'S;=`%'f;=`<%l%$z<%lO$HT*Q$JbX'g&jOY$HTYZ$J}Z!`$HT!`!a$Hu!a#O$HT#O#P$Ib#P;'S$HT;'S;=`$Mx<%lO$HT'[$KSX'g&jOY$J}YZ$FlZ!`$J}!`!a$Ko!a#O$J}#O#P$LY#P;'S$J};'S;=`$Mr<%lO$J}'[$KvU$Xp'g&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}'[$L_Z'g&jOY$J}YZ$J}Z]$J}]^$MQ^!`$J}!`!a$Ko!a#O$J}#O#P$LY#P;'S$J};'S;=`$Mr<%lO$J}'[$MVX'g&jOY$J}YZ$J}Z!`$J}!`!a$Ko!a#O$J}#O#P$LY#P;'S$J};'S;=`$Mr<%lO$J}'[$MuP;=`<%l$J}*Q$M{P;=`<%l$HT*Q$NVW$Xp'g&jOY$NoZ!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`$NtW'g&jOY$NoZ!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`% eUY#t'g&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%})`% |Y'g&jOY$NoYZ$NoZ]$No]^%!l^#O$No#O#P%#d#P;'S$No;'S;=`%$[;=`<%l%$z<%lO$No)`%!qX'g&jOY$NoYZ%}Z!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`%#aP;=`<%l$No)`%#iZ'g&jOY$NoYZ%}Z]$No]^%!l^!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`%$_XOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h;=`<%l$No<%lO%$z#t%$}WOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h<%lO%$z#t%%lOY#t#t%%oRO;'S%$z;'S;=`%%x;=`O%$z#t%%{XOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h;=`<%l%$z<%lO%$z#t%&kP;=`<%l%$z*Q%&sZ'g&jOY$HTYZ$J}Z]$HT]^$J]^!`$HT!`!a$Hu!a#O$HT#O#P$Ib#P;'S$HT;'S;=`$Mx<%lO$HT*Q%'iXOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h;=`<%l$HT<%lO%$z*Y%(aW$XpY#t)[W'g&jOY%^Zw%^wx%}x#O%^#O#P&f#P;'S%^;'S;=`'x<%lO%^*Y%(|P;=`<%l$GZ*S%)WZ(qQ'g&jOY%)PYZ$FlZr%)Prs$HTs!`%)P!`!a%)y!a#O%)P#O#P$Ib#P;'S%)P;'S;=`%*n<%lO%)P*S%*UW$XpY#t(qQ'g&jOY(OZr(Ors%}s#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O*S%*qP;=`<%l%)P*[%+RY$XpY#t)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e*[%+tP;=`<%l$Ej7V%,U^)[W(qQ%]!b!f,g'g&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!_$Ej!_!`%-Q!`!a%*t!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej7V%-]]!g-y)[W(qQ'g&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!`$Ej!`!a%*t!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej7V%.c]%^!b!b,g)[W(qQ'g&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!`$Ej!`!a%/[!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej7V%/mY%^!b!b,g$XpY#t)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e)j%0hYY#t)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%1c[)k!c)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`0Q!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%2f]%^!b)[W(qQ!d,g'g&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`%3_!`!a%4[!a#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%3lY%^!b!b,g)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%4i[)[W(qQ%]!b!f,g'g&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e&u%5jY(vP)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z%6ib)[W(zS(qQ!R,f(s%y'g&jOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![%6Y![!c$e!c!}%6Y!}#O$e#O#P&f#P#R$e#R#S%6Y#S#T$e#T#o%6Y#o;'S$e;'S;=`(u<%lO$e7Z%8Qb)[W(zS(qQ!R,f(s%y'g&jOY$eZr$ers%9Ysw$ewx%9{x!Q$e!Q![%6Y![!c$e!c!}%6Y!}#O$e#O#P&f#P#R$e#R#S%6Y#S#T$e#T#o%6Y#o;'S$e;'S;=`(u<%lO$e5P%9cW)[W(p/]'g&jOY%^Zw%^wx%}x#O%^#O#P&f#P;'S%^;'S;=`'x<%lO%^2T%:UW(qQ)Z,g'g&jOY(OZr(Ors%}s#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O3o%:yZ!V-y)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox!}$e!}#O%;l#O#P&f#P;'S$e;'S;=`(u<%lO$e&u%;wY)QP)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e4e%[Z]%=q]^%?Z^!Q%=q!Q![%?w![!w%=q!w!x%AX!x#O%=q#O#P%H_#P#i%=q#i#j%Ds#j#l%=q#l#m%IR#m;'S%=q;'S;=`%Kt<%lO%=q&t%=xUXY'g&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}4e%>e[XY(o.o'g&jOX%}XY-OYZ*[Z]%}]^-O^p%}pq-Oq#O%}#O#P,^#P;'S%};'S;=`'r<%lO%}4e%?bVXY'g&jOY%}YZ-OZ#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%@OWXY'g&jOY%}Z!Q%}!Q![%@h![#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%@oWXY'g&jOY%}Z!Q%}!Q![%=q![#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%A^['g&jOY%}Z!Q%}!Q![%BS![!c%}!c!i%BS!i#O%}#O#P&f#P#T%}#T#Z%BS#Z;'S%};'S;=`'r<%lO%}&t%BX['g&jOY%}Z!Q%}!Q![%B}![!c%}!c!i%B}!i#O%}#O#P&f#P#T%}#T#Z%B}#Z;'S%};'S;=`'r<%lO%}&t%CS['g&jOY%}Z!Q%}!Q![%Cx![!c%}!c!i%Cx!i#O%}#O#P&f#P#T%}#T#Z%Cx#Z;'S%};'S;=`'r<%lO%}&t%C}['g&jOY%}Z!Q%}!Q![%Ds![!c%}!c!i%Ds!i#O%}#O#P&f#P#T%}#T#Z%Ds#Z;'S%};'S;=`'r<%lO%}&t%Dx['g&jOY%}Z!Q%}!Q![%En![!c%}!c!i%En!i#O%}#O#P&f#P#T%}#T#Z%En#Z;'S%};'S;=`'r<%lO%}&t%Es['g&jOY%}Z!Q%}!Q![%Fi![!c%}!c!i%Fi!i#O%}#O#P&f#P#T%}#T#Z%Fi#Z;'S%};'S;=`'r<%lO%}&t%Fn['g&jOY%}Z!Q%}!Q![%Gd![!c%}!c!i%Gd!i#O%}#O#P&f#P#T%}#T#Z%Gd#Z;'S%};'S;=`'r<%lO%}&t%Gi['g&jOY%}Z!Q%}!Q![%=q![!c%}!c!i%=q!i#O%}#O#P&f#P#T%}#T#Z%=q#Z;'S%};'S;=`'r<%lO%}&t%HfXXY'g&jOY%}YZ%}Z]%}]^'W^#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%IW['g&jOY%}Z!Q%}!Q![%I|![!c%}!c!i%I|!i#O%}#O#P&f#P#T%}#T#Z%I|#Z;'S%};'S;=`'r<%lO%}&t%JR['g&jOY%}Z!Q%}!Q![%Jw![!c%}!c!i%Jw!i#O%}#O#P&f#P#T%}#T#Z%Jw#Z;'S%};'S;=`'r<%lO%}&t%KO[XY'g&jOY%}Z!Q%}!Q![%Jw![!c%}!c!i%Jw!i#O%}#O#P&f#P#T%}#T#Z%Jw#Z;'S%};'S;=`'r<%lO%}&t%KwP;=`<%l%=q2a%LVZ!W,V)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P#Q%Lx#Q;'S$e;'S;=`(u<%lO$e'Y%MTY)^d)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%NQ[)[W(qQ%]!b'g&j!_,gOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z& Vd)[W(zS(qQ!R,f(s%y'g&jOY$eZr$ers%9Ysw$ewx%9{x!Q$e!Q!Y%6Y!Y!Z%7q!Z![%6Y![!c$e!c!}%6Y!}#O$e#O#P&f#P#R$e#R#S%6Y#S#T$e#T#o%6Y#o;'S$e;'S;=`(u<%lO$e2]&!pY!T,g)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o&#m^)[W(qQ%]!b'g&j!^,gOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P#p$e#p#q&$i#q;'S$e;'S;=`(u<%lO$e3o&$vY)U,g%_!b)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e'V&%qY!Ua)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e(]&&nc)[W(qQ%]!b'SP'g&jOX$eXY&'yZp$epq&'yqr$ers%^sw$ewx(Ox!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e&y&(Sc)[W(qQ'g&jOX$eXY&'yZp$epq&'yqr$ers%^sw$ewx(Ox!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e&y&)jb)[W(qQdT'g&jOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![&)_![!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e",tokenizers:[W,f,0,1,2,3,4,5,6,7,8,9],topRules:{Program:[0,308]},dynamicPrecedences:{87:1,94:1,119:1,185:1,188:-10,241:-10,242:1,245:-1,247:-10,248:1,263:-1,268:2,269:2,307:-10,366:3,418:1,419:3,420:1,421:1},specialized:[{term:357,get:O=>q[O]||-1},{term:32,get:O=>Z[O]||-1},{term:66,get:O=>p[O]||-1},{term:364,get:O=>d[O]||-1}],tokenPrec:24905});var y=e(4452);const m=y.LRLanguage.define({name:"cpp",parser:b.configure({props:[y.indentNodeProp.add({IfStatement:(0,y.continuedIndent)({except:/^\s*({|else\b)/}),TryStatement:(0,y.continuedIndent)({except:/^\s*({|catch)\b/}),LabeledStatement:y.flatIndent,CaseStatement:O=>O.baseIndent+O.unit,BlockComment:()=>null,CompoundStatement:(0,y.delimitedIndent)({closing:"}"}),Statement:(0,y.continuedIndent)({except:/^{/})}),y.foldNodeProp.add({"DeclarationList CompoundStatement EnumeratorList FieldDeclarationList InitializerList":y.foldInside,BlockComment(O){return{from:O.from+2,to:O.to-2}}})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/,closeBrackets:{stringPrefixes:["L","u","U","u8","LR","UR","uR","u8R","R"]}}});function R(){return new y.LanguageSupport(m)}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/6170.65d899f43342f1e34bf1.js b/share/jupyter/lab/static/6170.65d899f43342f1e34bf1.js new file mode 100644 index 0000000..fe45096 --- /dev/null +++ b/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/share/jupyter/lab/static/6180.63dd2b606db0e1f96318.js b/share/jupyter/lab/static/6180.63dd2b606db0e1f96318.js new file mode 100644 index 0000000..62a7659 --- /dev/null +++ b/share/jupyter/lab/static/6180.63dd2b606db0e1f96318.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6180],{15136:(e,t,o)=>{o.r(t);o.d(t,{main:()=>W});var r=o(40959);var n=o(20979);var s=o(25313);var l=o(98807);var a=o(56104);var i=o(11114);var c=o(72508);var u=o(2129);var p=o(99382);var f=o(36672);var _=o(1904);var A=o(87779);var y=o(13067);var h=o(67374);var d=o(20135);var b=o(61689);var x=o(34072);var j=o(54336);var m=o(19457);var v=o(43017);var g=o(45695);var w=o(53640);var C=o(367);var k=o(68149);var P=o(87456);var S=o(4380);var E=o(61132);var O=o(57996);var R=o(41884);var I=o(51874);var J=o(90288);var L=o(87145);var M=o(90167);var N=o(98547);var $=o(57292);var Q=o(80046);var B=o(54289);var T=o(40779);var U=o(48552);var Y=o(40005);var q=o(70558);var z=o(31747);var G=o(95527);var K=o(50277);var V=o(77767);var F=o(54549);var H=o(14920);var Z=o(75591);async function D(e,t){try{const o=await window._JUPYTERLAB[e].get(t);const r=o();r.__scope__=e;return r}catch(o){console.warn(`Failed to create module: package: ${e}; module: ${t}`);throw o}}async function W(){var e=r.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 n=[];var s=false;var l=25e3;var a=function(){if(s){return}s=true;t.className="completed"};window.onerror=function(e,o,r,s,l){n.push(String(l));t.textContent=JSON.stringify(n)};console.error=function(e){n.push(String(e));t.textContent=JSON.stringify(n)}}var i=new r.JupyterPluginRegistry;var c=o(88617).JupyterLab;var u=[];var p=[];var f=[];var _=[];const A=[];const y=[];const h=[];const d=JSON.parse(r.PageConfig.getOption("federated_extensions"));const b={"@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 x=r.PageConfig.Extension.disabled.map((e=>{if(b[e]){console.warn(`Plugin ${e} has been renamed to ${b[e]}. Consider updating your config to use the new name.`);return b[e]}return e}));const j=r.PageConfig.Extension.deferred.map((e=>{if(b[e]){console.warn(`Plugin id ${e} has been renamed to ${b[e]}. Consider updating your config to use the new name.`);return b[e]}return e}));const m=e=>{const t=e.indexOf(":");let o="";if(t!==-1){o=e.slice(0,t)}return x.some((t=>t===e||o&&t===o))};const v=e=>{const t=e.indexOf(":");let o="";if(t!==-1){o=e.slice(0,t)}return j.some((t=>t===e||o&&t===o))};const g=[];d.forEach((e=>{if(e.extension){g.push(e.name);A.push(D(e.name,e.extension))}if(e.mimeExtension){g.push(e.name);y.push(D(e.name,e.mimeExtension))}if(e.style&&!m(e.name)){h.push(D(e.name,e.style))}}));const w=[];function C(e){let t;if(e.hasOwnProperty("__esModule")){t=e.default}else{t=e}return Array.isArray(t)?t:[t]}function*k(e){const t=C(e);for(let o of t){const t=m(o.id);w.push({id:o.id,description:o.description,requires:o.requires??[],optional:o.optional??[],provides:o.provides??null,autoStart:o.autoStart,enabled:!t,extension:e.__scope__});if(t){u.push(o.id);continue}if(v(o.id)){p.push(o.id);f.push(o.id)}yield o}}const P=[];if(!g.includes("@jupyterlab/javascript-extension")){try{let e=o(44731);e.__scope__="@jupyterlab/javascript-extension";for(let t of k(e)){P.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/json-extension")){try{let e=o(76555);e.__scope__="@jupyterlab/json-extension";for(let t of k(e)){P.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/mermaid-extension")){try{let e=o(47375);e.__scope__="@jupyterlab/mermaid-extension";for(let t of k(e)){P.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/pdf-extension")){try{let e=o(57053);e.__scope__="@jupyterlab/pdf-extension";for(let t of k(e)){P.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/vega5-extension")){try{let e=o(37449);e.__scope__="@jupyterlab/vega5-extension";for(let t of k(e)){P.push(t)}}catch($){console.error($)}}const S=await Promise.allSettled(y);S.forEach((e=>{if(e.status==="fulfilled"){for(let t of k(e.value)){P.push(t)}}else{console.error(e.reason)}}));if(!g.includes("@jupyterlab/application-extension")){try{let e=o(8493);e.__scope__="@jupyterlab/application-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/apputils-extension")){try{let e=o(46739);e.__scope__="@jupyterlab/apputils-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/audio-extension")){try{let e=o(41541);e.__scope__="@jupyterlab/audio-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/cell-toolbar-extension")){try{let e=o(26039);e.__scope__="@jupyterlab/cell-toolbar-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/celltags-extension")){try{let e=o(45931);e.__scope__="@jupyterlab/celltags-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/codemirror-extension")){try{let e=o(59319);e.__scope__="@jupyterlab/codemirror-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/completer-extension")){try{let e=o(88887);e.__scope__="@jupyterlab/completer-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/console-extension")){try{let e=o(4355);e.__scope__="@jupyterlab/console-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/csvviewer-extension")){try{let e=o(28173);e.__scope__="@jupyterlab/csvviewer-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/debugger-extension")){try{let e=o(24135);e.__scope__="@jupyterlab/debugger-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/docmanager-extension")){try{let e=o(62019);e.__scope__="@jupyterlab/docmanager-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/documentsearch-extension")){try{let e=o(25715);e.__scope__="@jupyterlab/documentsearch-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/extensionmanager-extension")){try{let e=o(58267);e.__scope__="@jupyterlab/extensionmanager-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/filebrowser-extension")){try{let e=o(80045);e.__scope__="@jupyterlab/filebrowser-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/fileeditor-extension")){try{let e=o(35659);e.__scope__="@jupyterlab/fileeditor-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/help-extension")){try{let e=o(19327);e.__scope__="@jupyterlab/help-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/htmlviewer-extension")){try{let e=o(85779);e.__scope__="@jupyterlab/htmlviewer-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/hub-extension")){try{let e=o(55847);e.__scope__="@jupyterlab/hub-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/imageviewer-extension")){try{let e=o(37667);e.__scope__="@jupyterlab/imageviewer-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/inspector-extension")){try{let e=o(78411);e.__scope__="@jupyterlab/inspector-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/launcher-extension")){try{let e=o(17543);e.__scope__="@jupyterlab/launcher-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/logconsole-extension")){try{let e=o(49419);e.__scope__="@jupyterlab/logconsole-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/lsp-extension")){try{let e=o(82159);e.__scope__="@jupyterlab/lsp-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/mainmenu-extension")){try{let e=o(4023);e.__scope__="@jupyterlab/mainmenu-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/markdownviewer-extension")){try{let e=o(50471);e.__scope__="@jupyterlab/markdownviewer-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/markedparser-extension")){try{let e=o(49395);e.__scope__="@jupyterlab/markedparser-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/mathjax-extension")){try{let e=o(13635);e.__scope__="@jupyterlab/mathjax-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/mermaid-extension")){try{let e=o(25111);e.__scope__="@jupyterlab/mermaid-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/metadataform-extension")){try{let e=o(15099);e.__scope__="@jupyterlab/metadataform-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/notebook-extension")){try{let e=o(91283);e.__scope__="@jupyterlab/notebook-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/pluginmanager-extension")){try{let e=o(8413);e.__scope__="@jupyterlab/pluginmanager-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/rendermime-extension")){try{let e=o(64955);e.__scope__="@jupyterlab/rendermime-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/running-extension")){try{let e=o(27199);e.__scope__="@jupyterlab/running-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/services-extension")){try{let e=o(89539);e.__scope__="@jupyterlab/services-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/settingeditor-extension")){try{let e=o(42963);e.__scope__="@jupyterlab/settingeditor-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/shortcuts-extension")){try{let e=o(99694);e.__scope__="@jupyterlab/shortcuts-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/statusbar-extension")){try{let e=o(15339);e.__scope__="@jupyterlab/statusbar-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/terminal-extension")){try{let e=o(2911);e.__scope__="@jupyterlab/terminal-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/theme-dark-extension")){try{let e=o(40015);e.__scope__="@jupyterlab/theme-dark-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/theme-dark-high-contrast-extension")){try{let e=o(73175);e.__scope__="@jupyterlab/theme-dark-high-contrast-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/theme-light-extension")){try{let e=o(13605);e.__scope__="@jupyterlab/theme-light-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/toc-extension")){try{let e=o(56299);e.__scope__="@jupyterlab/toc-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/tooltip-extension")){try{let e=o(76515);e.__scope__="@jupyterlab/tooltip-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/translation-extension")){try{let e=o(62855);e.__scope__="@jupyterlab/translation-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/ui-components-extension")){try{let e=o(9523);e.__scope__="@jupyterlab/ui-components-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/video-extension")){try{let e=o(28755);e.__scope__="@jupyterlab/video-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}if(!g.includes("@jupyterlab/workspaces-extension")){try{let e=o(52707);e.__scope__="@jupyterlab/workspaces-extension";for(let t of k(e)){_.push(t)}}catch($){console.error($)}}const E=await Promise.allSettled(A);E.forEach((e=>{if(e.status==="fulfilled"){for(let t of k(e.value)){_.push(t)}}else{console.error(e.reason)}}));(await Promise.allSettled(h)).filter((({status:e})=>e==="rejected")).forEach((({reason:e})=>{console.error(e)}));i.registerPlugins(_);const O=o(49278).IConnectionStatus;const R=o(49278).IServiceManager;const I=await i.resolveOptionalService(O);const J=await i.resolveRequiredService(R);const L=new c({pluginRegistry:i,serviceManager:J,mimeExtensions:P,connectionStatus:I,disabled:{matches:u,patterns:x.map((function(e){return e.raw}))},deferred:{matches:p,patterns:j.map((function(e){return e.raw}))},availablePlugins:w});L.start({ignorePlugins:f,bubblingKeydown:true});var M=(r.PageConfig.getOption("exposeAppInBrowser")||"").toLowerCase()==="true";var N=(r.PageConfig.getOption("devMode")||"").toLowerCase()==="true";if(M||N){window.jupyterapp=L}if(e.toLowerCase()==="true"){L.restored.then((function(){a(n)})).catch((function(e){a([`RestoreError: ${e.message}`])}));window.setTimeout((function(){a(n)}),l)}}},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/share/jupyter/lab/static/6275.e99f9312900c481b467d.js b/share/jupyter/lab/static/6275.e99f9312900c481b467d.js new file mode 100644 index 0000000..dbb8330 --- /dev/null +++ b/share/jupyter/lab/static/6275.e99f9312900c481b467d.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6275],{24971:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.newState=e.STATE=e.AbstractMathItem=e.protoItem=void 0;function r(t,e,r,n,o,i,s){if(s===void 0){s=null}var a={open:t,math:e,close:r,n,start:{n:o},end:{n:i},display:s};return a}e.protoItem=r;var n=function(){function t(t,r,n,o,i){if(n===void 0){n=true}if(o===void 0){o={i:0,n:0,delim:""}}if(i===void 0){i={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=n;this.start=o;this.end=i;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=n;e.STATE={UNPROCESSED:0,FINDMATH:10,COMPILED:20,CONVERT:100,METRICS:110,RERENDER:125,TYPESET:150,INSERTED:200,LAST:1e4};function o(t,r){if(t in e.STATE){throw Error("State "+t+" already exists")}e.STATE[t]=r}e.newState=o},54517: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 o=this&&this.__assign||function(){o=Object.assign||function(t){for(var e,r=1,n=arguments.length;rthis.childNodes.length){t=1}this.attributes.set("selection",t)};e.defaults=o(o({},i.AbstractMmlNode.defaults),{actiontype:"toggle",selection:1});return e}(i.AbstractMmlNode);e.MmlMaction=s},31859: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 o=this&&this.__assign||function(){o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=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.MmlMfenced=void 0;var s=r(80747);var a=function(t){n(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e.texclass=s.TEXCLASS.INNER;e.separators=[];e.open=null;e.close=null;return e}Object.defineProperty(e.prototype,"kind",{get:function(){return"mfenced"},enumerable:false,configurable:true});e.prototype.setTeXclass=function(t){this.getPrevClass(t);if(this.open){t=this.open.setTeXclass(t)}if(this.childNodes[0]){t=this.childNodes[0].setTeXclass(t)}for(var e=1,r=this.childNodes.length;e=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.MmlMfrac=void 0;var s=r(80747);var a=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"kind",{get:function(){return"mfrac"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"arity",{get:function(){return 2},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return true},enumerable:false,configurable:true});e.prototype.setTeXclass=function(t){var e,r;this.getPrevClass(t);try{for(var n=i(this.childNodes),o=n.next();!o.done;o=n.next()){var s=o.value;s.setTeXclass(null)}}catch(a){e={error:a}}finally{try{if(o&&!o.done&&(r=n.return))r.call(n)}finally{if(e)throw e.error}}return this};e.prototype.setChildInheritedAttributes=function(t,e,r,n){if(!e||r>0){r++}this.childNodes[0].setInheritedAttributes(t,false,r,n);this.childNodes[1].setInheritedAttributes(t,false,r,true)};e.defaults=o(o({},s.AbstractMmlBaseNode.defaults),{linethickness:"medium",numalign:"center",denomalign:"center",bevelled:false});return e}(s.AbstractMmlBaseNode);e.MmlMfrac=a},64906: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 o=this&&this.__assign||function(){o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r1&&r.match(e.operatorName)&&this.attributes.get("mathvariant")==="normal"&&this.getProperty("autoOP")===undefined&&this.getProperty("texClass")===undefined){this.texClass=i.TEXCLASS.OP;this.setProperty("autoOP",true)}return this};e.defaults=o({},i.AbstractMmlTokenNode.defaults);e.operatorName=/^[a-z][a-z0-9]*$/i;e.singleCharacter=/^[\uD800-\uDBFF]?.[\u0300-\u036F\u1AB0-\u1ABE\u1DC0-\u1DFF\u20D0-\u20EF]*$/;return e}(i.AbstractMmlTokenNode);e.MmlMi=s},10093: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 o=this&&this.__assign||function(){o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=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.MmlInferredMrow=e.MmlMrow=void 0;var s=r(80747);var a=function(t){n(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e._core=null;return e}Object.defineProperty(e.prototype,"kind",{get:function(){return"mrow"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isSpacelike",{get:function(){var t,e;try{for(var r=i(this.childNodes),n=r.next();!n.done;n=r.next()){var o=n.value;if(!o.isSpacelike){return false}}}catch(s){t={error:s}}finally{try{if(n&&!n.done&&(e=r.return))e.call(r)}finally{if(t)throw t.error}}return true},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isEmbellished",{get:function(){var t,e;var r=false;var n=0;try{for(var o=i(this.childNodes),s=o.next();!s.done;s=o.next()){var a=s.value;if(a){if(a.isEmbellished){if(r){return false}r=true;this._core=n}else if(!a.isSpacelike){return false}}n++}}catch(l){t={error:l}}finally{try{if(s&&!s.done&&(e=o.return))e.call(o)}finally{if(t)throw t.error}}return r},enumerable:false,configurable:true});e.prototype.core=function(){if(!this.isEmbellished||this._core==null){return this}return this.childNodes[this._core]};e.prototype.coreMO=function(){if(!this.isEmbellished||this._core==null){return this}return this.childNodes[this._core].coreMO()};e.prototype.nonSpaceLength=function(){var t,e;var r=0;try{for(var n=i(this.childNodes),o=n.next();!o.done;o=n.next()){var s=o.value;if(s&&!s.isSpacelike){r++}}}catch(a){t={error:a}}finally{try{if(o&&!o.done&&(e=n.return))e.call(n)}finally{if(t)throw t.error}}return r};e.prototype.firstNonSpace=function(){var t,e;try{for(var r=i(this.childNodes),n=r.next();!n.done;n=r.next()){var o=n.value;if(o&&!o.isSpacelike){return o}}}catch(s){t={error:s}}finally{try{if(n&&!n.done&&(e=r.return))e.call(r)}finally{if(t)throw t.error}}return null};e.prototype.lastNonSpace=function(){var t=this.childNodes.length;while(--t>=0){var e=this.childNodes[t];if(e&&!e.isSpacelike){return e}}return null};e.prototype.setTeXclass=function(t){var e,r,n,o;if(this.getProperty("open")!=null||this.getProperty("close")!=null){this.getPrevClass(t);t=null;try{for(var a=i(this.childNodes),l=a.next();!l.done;l=a.next()){var u=l.value;t=u.setTeXclass(t)}}catch(p){e={error:p}}finally{try{if(l&&!l.done&&(r=a.return))r.call(a)}finally{if(e)throw e.error}}if(this.texClass==null){this.texClass=s.TEXCLASS.INNER}}else{try{for(var c=i(this.childNodes),f=c.next();!f.done;f=c.next()){var u=f.value;t=u.setTeXclass(t)}}catch(h){n={error:h}}finally{try{if(f&&!f.done&&(o=c.return))o.call(c)}finally{if(n)throw n.error}}if(this.childNodes[0]){this.updateTeXclass(this.childNodes[0])}}return t};e.defaults=o({},s.AbstractMmlNode.defaults);return e}(s.AbstractMmlNode);e.MmlMrow=a;var l=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"kind",{get:function(){return"inferredMrow"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isInferred",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"notParent",{get:function(){return true},enumerable:false,configurable:true});e.prototype.toString=function(){return"["+this.childNodes.join(",")+"]"};e.defaults=a.defaults;return e}(a);e.MmlInferredMrow=l},68313: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 o=this&&this.__assign||function(){o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=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.MmlMtable=void 0;var s=r(80747);var a=r(41278);var l=function(t){n(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e.properties={useHeight:true};e.texclass=s.TEXCLASS.ORD;return e}Object.defineProperty(e.prototype,"kind",{get:function(){return"mtable"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return true},enumerable:false,configurable:true});e.prototype.setInheritedAttributes=function(e,r,n,o){var a,l;try{for(var u=i(s.indentAttributes),c=u.next();!c.done;c=u.next()){var f=c.value;if(e[f]){this.attributes.setInherited(f,e[f][1])}if(this.attributes.getExplicit(f)!==undefined){delete this.attributes.getAllAttributes()[f]}}}catch(p){a={error:p}}finally{try{if(c&&!c.done&&(l=u.return))l.call(u)}finally{if(a)throw a.error}}t.prototype.setInheritedAttributes.call(this,e,r,n,o)};e.prototype.setChildInheritedAttributes=function(t,e,r,n){var o,s,l,u;try{for(var c=i(this.childNodes),f=c.next();!f.done;f=c.next()){var p=f.value;if(!p.isKind("mtr")){this.replaceChild(this.factory.create("mtr"),p).appendChild(p)}}}catch(v){o={error:v}}finally{try{if(f&&!f.done&&(s=c.return))s.call(c)}finally{if(o)throw o.error}}r=this.getProperty("scriptlevel")||r;e=!!(this.attributes.getExplicit("displaystyle")||this.attributes.getDefault("displaystyle"));t=this.addInheritedAttributes(t,{columnalign:this.attributes.get("columnalign"),rowalign:"center"});var h=this.attributes.getExplicit("data-cramped");var d=(0,a.split)(this.attributes.get("rowalign"));try{for(var y=i(this.childNodes),b=y.next();!b.done;b=y.next()){var p=b.value;t.rowalign[1]=d.shift()||t.rowalign[1];p.setInheritedAttributes(t,e,r,!!h)}}catch(g){l={error:g}}finally{try{if(b&&!b.done&&(u=y.return))u.call(y)}finally{if(l)throw l.error}}};e.prototype.verifyChildren=function(e){var r=null;var n=this.factory;for(var o=0;o=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.MmlMlabeledtr=e.MmlMtr=void 0;var s=r(80747);var a=r(98128);var l=r(41278);var u=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"kind",{get:function(){return"mtr"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return true},enumerable:false,configurable:true});e.prototype.setChildInheritedAttributes=function(t,e,r,n){var o,s,a,u;try{for(var c=i(this.childNodes),f=c.next();!f.done;f=c.next()){var p=f.value;if(!p.isKind("mtd")){this.replaceChild(this.factory.create("mtd"),p).appendChild(p)}}}catch(b){o={error:b}}finally{try{if(f&&!f.done&&(s=c.return))s.call(c)}finally{if(o)throw o.error}}var h=(0,l.split)(this.attributes.get("columnalign"));if(this.arity===1){h.unshift(this.parent.attributes.get("side"))}t=this.addInheritedAttributes(t,{rowalign:this.attributes.get("rowalign"),columnalign:"center"});try{for(var d=i(this.childNodes),y=d.next();!y.done;y=d.next()){var p=y.value;t.columnalign[1]=h.shift()||t.columnalign[1];p.setInheritedAttributes(t,e,r,n)}}catch(v){a={error:v}}finally{try{if(y&&!y.done&&(u=d.return))u.call(d)}finally{if(a)throw a.error}}};e.prototype.verifyChildren=function(e){var r,n;if(this.parent&&!this.parent.isKind("mtable")){this.mError(this.kind+" can only be a child of an mtable",e,true);return}try{for(var o=i(this.childNodes),s=o.next();!s.done;s=o.next()){var a=s.value;if(!a.isKind("mtd")){var l=this.replaceChild(this.factory.create("mtd"),a);l.appendChild(a);if(!e["fixMtables"]){a.mError("Children of "+this.kind+" must be mtd",e)}}}}catch(u){r={error:u}}finally{try{if(s&&!s.done&&(n=o.return))n.call(o)}finally{if(r)throw r.error}}t.prototype.verifyChildren.call(this,e)};e.prototype.setTeXclass=function(t){var e,r;this.getPrevClass(t);try{for(var n=i(this.childNodes),o=n.next();!o.done;o=n.next()){var s=o.value;s.setTeXclass(null)}}catch(a){e={error:a}}finally{try{if(o&&!o.done&&(r=n.return))r.call(n)}finally{if(e)throw e.error}}return this};e.defaults=o(o({},s.AbstractMmlNode.defaults),{rowalign:a.INHERIT,columnalign:a.INHERIT,groupalign:a.INHERIT});return e}(s.AbstractMmlNode);e.MmlMtr=u;var c=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"kind",{get:function(){return"mlabeledtr"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"arity",{get:function(){return 1},enumerable:false,configurable:true});return e}(u);e.MmlMlabeledtr=c},46072: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 o=this&&this.__assign||function(){o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=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),o,i=[],s;try{while((e===void 0||e-- >0)&&!(o=n.next()).done)i.push(o.value)}catch(a){s={error:a}}finally{try{if(o&&!o.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return i};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n{e.r(n);e.d(n,{default:()=>$});const r={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]};const o=Object.create(null);for(const _ in r){if(Object.hasOwn(r,_)){o[r[_]]=_}}const s={to:{},get:{}};s.get=function(t){const n=t.slice(0,3).toLowerCase();let e;let r;switch(n){case"hsl":{e=s.get.hsl(t);r="hsl";break}case"hwb":{e=s.get.hwb(t);r="hwb";break}default:{e=s.get.rgb(t);r="rgb";break}}if(!e){return null}return{model:r,value:e}};s.get.rgb=function(t){if(!t){return null}const n=/^#([a-f\d]{3,4})$/i;const e=/^#([a-f\d]{6})([a-f\d]{2})?$/i;const o=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/;const s=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/;const l=/^(\w+)$/;let a=[0,0,0,1];let i;let h;let u;if(i=t.match(e)){u=i[2];i=i[1];for(h=0;h<3;h++){const t=h*2;a[h]=Number.parseInt(i.slice(t,t+2),16)}if(u){a[3]=Number.parseInt(u,16)/255}}else if(i=t.match(n)){i=i[1];u=i[3];for(h=0;h<3;h++){a[h]=Number.parseInt(i[h]+i[h],16)}if(u){a[3]=Number.parseInt(u+u,16)/255}}else if(i=t.match(o)){for(h=0;h<3;h++){a[h]=Number.parseInt(i[h+1],10)}if(i[4]){a[3]=i[5]?Number.parseFloat(i[4])*.01:Number.parseFloat(i[4])}}else if(i=t.match(s)){for(h=0;h<3;h++){a[h]=Math.round(Number.parseFloat(i[h+1])*2.55)}if(i[4]){a[3]=i[5]?Number.parseFloat(i[4])*.01:Number.parseFloat(i[4])}}else if(i=t.match(l)){if(i[1]==="transparent"){return[0,0,0,0]}if(!Object.hasOwn(r,i[1])){return null}a=r[i[1]];a[3]=1;return a}else{return null}for(h=0;h<3;h++){a[h]=c(a[h],0,255)}a[3]=c(a[3],0,1);return a};s.get.hsl=function(t){if(!t){return null}const n=/^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*)?\)$/;const e=t.match(n);if(e){const t=Number.parseFloat(e[4]);const n=(Number.parseFloat(e[1])%360+360)%360;const r=c(Number.parseFloat(e[2]),0,100);const o=c(Number.parseFloat(e[3]),0,100);const s=c(Number.isNaN(t)?1:t,0,1);return[n,r,o,s]}return null};s.get.hwb=function(t){if(!t){return null}const n=/^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*)?\)$/;const e=t.match(n);if(e){const t=Number.parseFloat(e[4]);const n=(Number.parseFloat(e[1])%360+360)%360;const r=c(Number.parseFloat(e[2]),0,100);const o=c(Number.parseFloat(e[3]),0,100);const s=c(Number.isNaN(t)?1:t,0,1);return[n,r,o,s]}return null};s.to.hex=function(...t){return"#"+l(t[0])+l(t[1])+l(t[2])+(t[3]<1?l(Math.round(t[3]*255)):"")};s.to.rgb=function(...t){return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};s.to.rgb.percent=function(...t){const n=Math.round(t[0]/255*100);const e=Math.round(t[1]/255*100);const r=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+n+"%, "+e+"%, "+r+"%)":"rgba("+n+"%, "+e+"%, "+r+"%, "+t[3]+")"};s.to.hsl=function(...t){return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};s.to.hwb=function(...t){let n="";if(t.length>=4&&t[3]!==1){n=", "+t[3]}return"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+n+")"};s.to.keyword=function(...t){return o[t.slice(0,3)]};function c(t,n,e){return Math.min(Math.max(n,t),e)}function l(t){const n=Math.round(t).toString(16).toUpperCase();return n.length<2?"0"+n:n}const a=s;const i={};for(const _ of Object.keys(r)){i[r[_]]=_}const h={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"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},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"]}};const u=h;const f=(6/29)**3;function b(t){const n=t>.0031308?1.055*t**(1/2.4)-.055:t*12.92;return Math.min(Math.max(0,n),1)}function g(t){return t>.04045?((t+.055)/1.055)**2.4:t/12.92}for(const _ of Object.keys(h)){if(!("channels"in h[_])){throw new Error("missing channels property: "+_)}if(!("labels"in h[_])){throw new Error("missing channel labels property: "+_)}if(h[_].labels.length!==h[_].channels){throw new Error("channel and label counts mismatch: "+_)}const{channels:t,labels:n}=h[_];delete h[_].channels;delete h[_].labels;Object.defineProperty(h[_],"channels",{value:t});Object.defineProperty(h[_],"labels",{value:n})}h.rgb.hsl=function(t){const n=t[0]/255;const e=t[1]/255;const r=t[2]/255;const o=Math.min(n,e,r);const s=Math.max(n,e,r);const c=s-o;let l;let a;switch(s){case o:{l=0;break}case n:{l=(e-r)/c;break}case e:{l=2+(r-n)/c;break}case r:{l=4+(n-e)/c;break}}l=Math.min(l*60,360);if(l<0){l+=360}const i=(o+s)/2;if(s===o){a=0}else if(i<=.5){a=c/(s+o)}else{a=c/(2-s-o)}return[l,a*100,i*100]};h.rgb.hsv=function(t){let n;let e;let r;let o;let s;const c=t[0]/255;const l=t[1]/255;const a=t[2]/255;const i=Math.max(c,l,a);const h=i-Math.min(c,l,a);const u=function(t){return(i-t)/6/h+1/2};if(h===0){o=0;s=0}else{s=h/i;n=u(c);e=u(l);r=u(a);switch(i){case c:{o=r-e;break}case l:{o=1/3+n-r;break}case a:{o=2/3+e-n;break}}if(o<0){o+=1}else if(o>1){o-=1}}return[o*360,s*100,i*100]};h.rgb.hwb=function(t){const n=t[0];const e=t[1];let r=t[2];const o=h.rgb.hsl(t)[0];const s=1/255*Math.min(n,Math.min(e,r));r=1-1/255*Math.max(n,Math.max(e,r));return[o,s*100,r*100]};h.rgb.oklab=function(t){const n=g(t[0]/255);const e=g(t[1]/255);const r=g(t[2]/255);const o=Math.cbrt(.4122214708*n+.5363325363*e+.0514459929*r);const s=Math.cbrt(.2119034982*n+.6806995451*e+.1073969566*r);const c=Math.cbrt(.0883024619*n+.2817188376*e+.6299787005*r);const l=.2104542553*o+.793617785*s-.0040720468*c;const a=1.9779984951*o-2.428592205*s+.4505937099*c;const i=.0259040371*o+.7827717662*s-.808675766*c;return[l*100,a*100,i*100]};h.rgb.cmyk=function(t){const n=t[0]/255;const e=t[1]/255;const r=t[2]/255;const o=Math.min(1-n,1-e,1-r);const s=(1-n-o)/(1-o)||0;const c=(1-e-o)/(1-o)||0;const l=(1-r-o)/(1-o)||0;return[s*100,c*100,l*100,o*100]};function d(t,n){return(t[0]-n[0])**2+(t[1]-n[1])**2+(t[2]-n[2])**2}h.rgb.keyword=function(t){const n=i[t];if(n){return n}let e=Number.POSITIVE_INFINITY;let o;for(const s of Object.keys(r)){const n=r[s];const c=d(t,n);if(cf?e**(1/3):7.787*e+16/116;r=r>f?r**(1/3):7.787*r+16/116;o=o>f?o**(1/3):7.787*o+16/116;const s=116*r-16;const c=500*(e-r);const l=200*(r-o);return[s,c,l]};h.hsl.rgb=function(t){const n=t[0]/360;const e=t[1]/100;const r=t[2]/100;let o;let s;if(e===0){s=r*255;return[s,s,s]}const c=r<.5?r*(1+e):r+e-r*e;const l=2*r-c;const a=[0,0,0];for(let i=0;i<3;i++){o=n+1/3*-(i-1);if(o<0){o++}if(o>1){o--}if(6*o<1){s=l+(c-l)*6*o}else if(2*o<1){s=c}else if(3*o<2){s=l+(c-l)*(2/3-o)*6}else{s=l}a[i]=s*255}return a};h.hsl.hsv=function(t){const n=t[0];let e=t[1]/100;let r=t[2]/100;let o=e;const s=Math.max(r,.01);r*=2;e*=r<=1?r:2-r;o*=s<=1?s:2-s;const c=(r+e)/2;const l=r===0?2*o/(s+o):2*e/(r+e);return[n,l*100,c*100]};h.hsv.rgb=function(t){const n=t[0]/60;const e=t[1]/100;let r=t[2]/100;const o=Math.floor(n)%6;const s=n-Math.floor(n);const c=255*r*(1-e);const l=255*r*(1-e*s);const a=255*r*(1-e*(1-s));r*=255;switch(o){case 0:{return[r,a,c]}case 1:{return[l,r,c]}case 2:{return[c,r,a]}case 3:{return[c,l,r]}case 4:{return[a,c,r]}case 5:{return[r,c,l]}}};h.hsv.hsl=function(t){const n=t[0];const e=t[1]/100;const r=t[2]/100;const o=Math.max(r,.01);let s;let c;c=(2-e)*r;const l=(2-e)*o;s=e*o;s/=l<=1?l:2-l;s=s||0;c/=2;return[n,s*100,c*100]};h.hwb.rgb=function(t){const n=t[0]/360;let e=t[1]/100;let r=t[2]/100;const o=e+r;let s;if(o>1){e/=o;r/=o}const c=Math.floor(6*n);const l=1-r;s=6*n-c;if((c&1)!==0){s=1-s}const a=e+s*(l-e);let i;let h;let u;switch(c){default:case 6:case 0:{i=l;h=a;u=e;break}case 1:{i=a;h=l;u=e;break}case 2:{i=e;h=l;u=a;break}case 3:{i=e;h=a;u=l;break}case 4:{i=a;h=e;u=l;break}case 5:{i=l;h=e;u=a;break}}return[i*255,h*255,u*255]};h.cmyk.rgb=function(t){const n=t[0]/100;const e=t[1]/100;const r=t[2]/100;const o=t[3]/100;const s=1-Math.min(1,n*(1-o)+o);const c=1-Math.min(1,e*(1-o)+o);const l=1-Math.min(1,r*(1-o)+o);return[s*255,c*255,l*255]};h.xyz.rgb=function(t){const n=t[0]/100;const e=t[1]/100;const r=t[2]/100;let o;let s;let c;o=n*3.2404542+e*-1.5371385+r*-.4985314;s=n*-.969266+e*1.8760108+r*.041556;c=n*.0556434+e*-.2040259+r*1.0572252;o=b(o);s=b(s);c=b(c);return[o*255,s*255,c*255]};h.xyz.lab=function(t){let n=t[0];let e=t[1];let r=t[2];n/=95.047;e/=100;r/=108.883;n=n>f?n**(1/3):7.787*n+16/116;e=e>f?e**(1/3):7.787*e+16/116;r=r>f?r**(1/3):7.787*r+16/116;const o=116*e-16;const s=500*(n-e);const c=200*(e-r);return[o,s,c]};h.xyz.oklab=function(t){const n=t[0]/100;const e=t[1]/100;const r=t[2]/100;const o=Math.cbrt(.8189330101*n+.3618667424*e-.1288597137*r);const s=Math.cbrt(.0329845436*n+.9293118715*e+.0361456387*r);const c=Math.cbrt(.0482003018*n+.2643662691*e+.633851707*r);const l=.2104542553*o+.793617785*s-.0040720468*c;const a=1.9779984951*o-2.428592205*s+.4505937099*c;const i=.0259040371*o+.7827717662*s-.808675766*c;return[l*100,a*100,i*100]};h.oklab.oklch=function(t){return h.lab.lch(t)};h.oklab.xyz=function(t){const n=t[0]/100;const e=t[1]/100;const r=t[2]/100;const o=(.999999998*n+.396337792*e+.215803758*r)**3;const s=(1.000000008*n-.105561342*e-.063854175*r)**3;const c=(1.000000055*n-.089484182*e-1.291485538*r)**3;const l=1.227013851*o-.55779998*s+.281256149*c;const a=-.040580178*o+1.11225687*s-.071676679*c;const i=-.076381285*o-.421481978*s+1.58616322*c;return[l*100,a*100,i*100]};h.oklab.rgb=function(t){const n=t[0]/100;const e=t[1]/100;const r=t[2]/100;const o=(n+.3963377774*e+.2158037573*r)**3;const s=(n-.1055613458*e-.0638541728*r)**3;const c=(n-.0894841775*e-1.291485548*r)**3;const l=b(4.0767416621*o-3.3077115913*s+.2309699292*c);const a=b(-1.2684380046*o+2.6097574011*s-.3413193965*c);const i=b(-.0041960863*o-.7034186147*s+1.707614701*c);return[l*255,a*255,i*255]};h.oklch.oklab=function(t){return h.lch.lab(t)};h.lab.xyz=function(t){const n=t[0];const e=t[1];const r=t[2];let o;let s;let c;s=(n+16)/116;o=e/500+s;c=s-r/200;const l=s**3;const a=o**3;const i=c**3;s=l>f?l:(s-16/116)/7.787;o=a>f?a:(o-16/116)/7.787;c=i>f?i:(c-16/116)/7.787;o*=95.047;s*=100;c*=108.883;return[o,s,c]};h.lab.lch=function(t){const n=t[0];const e=t[1];const r=t[2];let o;const s=Math.atan2(r,e);o=s*360/2/Math.PI;if(o<0){o+=360}const c=Math.sqrt(e*e+r*r);return[n,c,o]};h.lch.lab=function(t){const n=t[0];const e=t[1];const r=t[2];const o=r/360*2*Math.PI;const s=e*Math.cos(o);const c=e*Math.sin(o);return[n,s,c]};h.rgb.ansi16=function(t,n=null){const[e,r,o]=t;let s=n===null?h.rgb.hsv(t)[2]:n;s=Math.round(s/50);if(s===0){return 30}let c=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(e/255));if(s===2){c+=60}return c};h.hsv.ansi16=function(t){return h.rgb.ansi16(h.hsv.rgb(t),t[2])};h.rgb.ansi256=function(t){const n=t[0];const e=t[1];const r=t[2];if(n>>4===e>>4&&e>>4===r>>4){if(n<8){return 16}if(n>248){return 231}return Math.round((n-8)/247*24)+232}const o=16+36*Math.round(n/255*5)+6*Math.round(e/255*5)+Math.round(r/255*5);return o};h.ansi16.rgb=function(t){t=t[0];let n=t%10;if(n===0||n===7){if(t>50){n+=3.5}n=n/10.5*255;return[n,n,n]}const e=(Math.trunc(t>50)+1)*.5;const r=(n&1)*e*255;const o=(n>>1&1)*e*255;const s=(n>>2&1)*e*255;return[r,o,s]};h.ansi256.rgb=function(t){t=t[0];if(t>=232){const n=(t-232)*10+8;return[n,n,n]}t-=16;let n;const e=Math.floor(t/36)/5*255;const r=Math.floor((n=t%36)/6)/5*255;const o=n%6/5*255;return[e,r,o]};h.rgb.hex=function(t){const n=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255);const e=n.toString(16).toUpperCase();return"000000".slice(e.length)+e};h.hex.rgb=function(t){const n=t.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!n){return[0,0,0]}let e=n[0];if(n[0].length===3){e=[...e].map((t=>t+t)).join("")}const r=Number.parseInt(e,16);const o=r>>16&255;const s=r>>8&255;const c=r&255;return[o,s,c]};h.rgb.hcg=function(t){const n=t[0]/255;const e=t[1]/255;const r=t[2]/255;const o=Math.max(Math.max(n,e),r);const s=Math.min(Math.min(n,e),r);const c=o-s;let l;const a=c<1?s/(1-c):0;if(c<=0){l=0}else if(o===n){l=(e-r)/c%6}else if(o===e){l=2+(r-n)/c}else{l=4+(n-e)/c}l/=6;l%=1;return[l*360,c*100,a*100]};h.hsl.hcg=function(t){const n=t[1]/100;const e=t[2]/100;const r=e<.5?2*n*e:2*n*(1-e);let o=0;if(r<1){o=(e-.5*r)/(1-r)}return[t[0],r*100,o*100]};h.hsv.hcg=function(t){const n=t[1]/100;const e=t[2]/100;const r=n*e;let o=0;if(r<1){o=(e-r)/(1-r)}return[t[0],r*100,o*100]};h.hcg.rgb=function(t){const n=t[0]/360;const e=t[1]/100;const r=t[2]/100;if(e===0){return[r*255,r*255,r*255]}const o=[0,0,0];const s=n%1*6;const c=s%1;const l=1-c;let a=0;switch(Math.floor(s)){case 0:{o[0]=1;o[1]=c;o[2]=0;break}case 1:{o[0]=l;o[1]=1;o[2]=0;break}case 2:{o[0]=0;o[1]=1;o[2]=c;break}case 3:{o[0]=0;o[1]=l;o[2]=1;break}case 4:{o[0]=c;o[1]=0;o[2]=1;break}default:{o[0]=1;o[1]=0;o[2]=l}}a=(1-e)*r;return[(e*o[0]+a)*255,(e*o[1]+a)*255,(e*o[2]+a)*255]};h.hcg.hsv=function(t){const n=t[1]/100;const e=t[2]/100;const r=n+e*(1-n);let o=0;if(r>0){o=n/r}return[t[0],o*100,r*100]};h.hcg.hsl=function(t){const n=t[1]/100;const e=t[2]/100;const r=e*(1-n)+.5*n;let o=0;if(r>0&&r<.5){o=n/(2*r)}else if(r>=.5&&r<1){o=n/(2*(1-r))}return[t[0],o*100,r*100]};h.hcg.hwb=function(t){const n=t[1]/100;const e=t[2]/100;const r=n+e*(1-n);return[t[0],(r-n)*100,(1-r)*100]};h.hwb.hcg=function(t){const n=t[1]/100;const e=t[2]/100;const r=1-e;const o=r-n;let s=0;if(o<1){s=(r-o)/(1-o)}return[t[0],o*100,s*100]};h.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};h.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};h.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};h.gray.hsl=function(t){return[0,0,t[0]]};h.gray.hsv=h.gray.hsl;h.gray.hwb=function(t){return[0,100,t[0]]};h.gray.cmyk=function(t){return[0,0,0,t[0]]};h.gray.lab=function(t){return[t[0],0,0]};h.gray.hex=function(t){const n=Math.round(t[0]/100*255)&255;const e=(n<<16)+(n<<8)+n;const r=e.toString(16).toUpperCase();return"000000".slice(r.length)+r};h.rgb.gray=function(t){const n=(t[0]+t[1]+t[2])/3;return[n/255*100]};function m(){const t={};const n=Object.keys(u);for(let{length:e}=n,r=0;r0){const t=e.pop();const r=Object.keys(u[t]);for(let{length:o}=r,s=0;s1){n=e}return t(n)};if("conversion"in t){n.conversion=t.conversion}return n}function j(t){const n=function(...n){const e=n[0];if(e===undefined||e===null){return e}if(e.length>1){n=e}const r=t(n);if(typeof r==="object"){for(let{length:t}=r,n=0;n0){this.model=n||"rgb";r=O[this.model].channels;const e=Array.prototype.slice.call(t,0,r);this.color=U(e,r);this.valpha=typeof t[r]==="number"?t[r]:1}else if(typeof t==="number"){this.model="rgb";this.color=[t>>16&255,t>>8&255,t&255];this.valpha=1}else{this.valpha=1;const n=Object.keys(t);if("alpha"in t){n.splice(n.indexOf("alpha"),1);this.valpha=typeof t.alpha==="number"?t.alpha:0}const r=n.sort().join("");if(!(r in F)){throw new Error("Unable to parse color from object: "+JSON.stringify(t))}this.model=F[r];const{labels:o}=O[this.model];const s=[];for(e=0;e(t%360+360)%360)),saturationl:S("hsl",1,C(100)),lightness:S("hsl",2,C(100)),saturationv:S("hsv",1,C(100)),value:S("hsv",2,C(100)),chroma:S("hcg",1,C(100)),gray:S("hcg",2,C(100)),white:S("hwb",1,C(100)),wblack:S("hwb",2,C(100)),cyan:S("cmyk",0,C(100)),magenta:S("cmyk",1,C(100)),yellow:S("cmyk",2,C(100)),black:S("cmyk",3,C(100)),x:S("xyz",0,C(95.047)),y:S("xyz",1,C(100)),z:S("xyz",2,C(108.833)),l:S("lab",0,C(100)),a:S("lab",1),b:S("lab",2),keyword(t){if(t!==undefined){return new A(t)}return O[this.model].keyword(this.color)},hex(t){if(t!==undefined){return new A(t)}return a.to.hex(...this.rgb().round().color)},hexa(t){if(t!==undefined){return new A(t)}const n=this.rgb().round().color;let e=Math.round(this.valpha*255).toString(16).toUpperCase();if(e.length===1){e="0"+e}return a.to.hex(...n)+e},rgbNumber(){const t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){const t=this.rgb().color;const n=[];for(const[e,r]of t.entries()){const t=r/255;n[e]=t<=.04045?t/12.92:((t+.055)/1.055)**2.4}return.2126*n[0]+.7152*n[1]+.0722*n[2]},contrast(t){const n=this.luminosity();const e=t.luminosity();if(n>e){return(n+.05)/(e+.05)}return(e+.05)/(n+.05)},level(t){const n=this.contrast(t);if(n>=7){return"AAA"}return n>=4.5?"AA":""},isDark(){const t=this.rgb().color;const n=(t[0]*2126+t[1]*7152+t[2]*722)/1e4;return n<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let n=0;n<3;n++){t.color[n]=255-t.color[n]}return t},lighten(t){const n=this.hsl();n.color[2]+=n.color[2]*t;return n},darken(t){const n=this.hsl();n.color[2]-=n.color[2]*t;return n},saturate(t){const n=this.hsl();n.color[1]+=n.color[1]*t;return n},desaturate(t){const n=this.hsl();n.color[1]-=n.color[1]*t;return n},whiten(t){const n=this.hwb();n.color[1]+=n.color[1]*t;return n},blacken(t){const n=this.hwb();n.color[2]+=n.color[2]*t;return n},grayscale(){const t=this.rgb().color;const n=t[0]*.3+t[1]*.59+t[2]*.11;return A.rgb(n,n,n)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const n=this.hsl();let e=n.color[0];e=(e+t)%360;e=e<0?360+e:e;n.color[0]=e;return n},mix(t,n){if(!t||!t.rgb){throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t)}const e=t.rgb();const r=this.rgb();const o=n===undefined?.5:n;const s=2*o-1;const c=e.alpha()-r.alpha();const l=((s*c===-1?s:(s+c)/(1+s*c))+1)/2;const a=1-l;return A.rgb(l*e.red()+a*r.red(),l*e.green()+a*r.green(),l*e.blue()+a*r.blue(),e.alpha()*o+r.alpha()*(1-o))}};for(const _ of Object.keys(O)){if(z.includes(_)){continue}const{channels:t}=O[_];A.prototype[_]=function(...t){if(this.model===_){return new A(this)}if(t.length>0){return new A(t,_)}return new A([...P(O[this.model][_].raw(this.color)),this.valpha],_)};A[_]=function(...n){let e=n[0];if(typeof e==="number"){e=U(n,t)}return new A(e,_)}}function q(t,n){return Number(t.toFixed(n))}function E(t){return function(n){return q(n,t)}}function S(t,n,e){t=Array.isArray(t)?t:[t];for(const r of t){(I[r]||=[])[n]=e}t=t[0];return function(r){let o;if(r!==undefined){if(e){r=e(r)}o=this[t]();o.color[n]=r;return o}o=this[t]().color[n];if(e){o=e(o)}return o}}function C(t){return function(n){return Math.max(0,Math.min(t,n))}}function P(t){return Array.isArray(t)?t:[t]}function U(t,n){for(let e=0;e{n.r(t);n.d(t,{ecl:()=>k});function r(e){var t={},n=e.split(" ");for(var r=0;r!?|\/]/;var m;function h(e,t){var n=e.next();if(f[n]){var r=f[n](e,t);if(r!==false)return r}if(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=v;return v(e,t)}if(e.eat("/")){e.skipToEnd();return"comment"}}if(d.test(n)){e.eatWhile(d);return"operator"}e.eatWhile(/[\w\$_]/);var a=e.current().toLowerCase();if(i.propertyIsEnumerable(a)){if(c.propertyIsEnumerable(a))m="newstatement";return"keyword"}else if(o.propertyIsEnumerable(a)){if(c.propertyIsEnumerable(a))m="newstatement";return"variable"}else if(l.propertyIsEnumerable(a)){if(c.propertyIsEnumerable(a))m="newstatement";return"modifier"}else if(s.propertyIsEnumerable(a)){if(c.propertyIsEnumerable(a))m="newstatement";return"type"}else if(u.propertyIsEnumerable(a)){if(c.propertyIsEnumerable(a))m="newstatement";return"builtin"}else{var h=a.length-1;while(h>=0&&(!isNaN(a[h])||a[h]=="_"))--h;if(h>0){var b=a.substr(0,h+1);if(s.propertyIsEnumerable(b)){if(c.propertyIsEnumerable(b))m="newstatement";return"type"}}}if(p.propertyIsEnumerable(a))return"atom";return null}function y(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)n.tokenize=h;return"string"}}function v(e,t){var n=false,r;while(r=e.next()){if(r=="/"&&n){t.tokenize=h;break}n=r=="*"}return"comment"}function b(e,t,n,r,a){this.indented=e;this.column=t;this.type=n;this.align=r;this.prev=a}function g(e,t,n){return e.context=new b(e.indented,t,n,null,e.context)}function w(e){var t=e.context.type;if(t==")"||t=="]"||t=="}")e.indented=e.context.indented;return e.context=e.context.prev}const k={name:"ecl",startState:function(e){return{tokenize:null,context:new b(-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==":")&&n.type=="statement")w(t);else if(m=="{")g(t,e.column(),"}");else if(m=="[")g(t,e.column(),"]");else if(m=="(")g(t,e.column(),")");else if(m=="}"){while(n.type=="statement")n=w(t);if(n.type=="}")n=w(t);while(n.type=="statement")n=w(t)}else if(m==n.type)w(t);else if(n.type=="}"||n.type=="top"||n.type=="statement"&&m=="newstatement")g(t,e.column(),"statement");t.startOfLine=false;return r},indent:function(e,t,n){if(e.tokenize!=h&&e.tokenize!=null)return 0;var r=e.context,a=t&&t.charAt(0);if(r.type=="statement"&&a=="}")r=r.prev;var i=a==r.type;if(r.type=="statement")return r.indented+(a=="{"?0:n.unit);else if(r.align)return r.column+(i?0:1);else return r.indented+(i?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/6372.edc0712a4be855493530.js b/share/jupyter/lab/static/6372.edc0712a4be855493530.js new file mode 100644 index 0000000..bbca4b0 --- /dev/null +++ b/share/jupyter/lab/static/6372.edc0712a4be855493530.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6372,3991],{26372:(n,t,e)=>{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{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},46884:(t,e,i)=>{i.d(e,{A:()=>n});var s=i(70416);var r=i(1218);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")},47925:(t,e,i)=>{i.d(e,{P:()=>n});var s=i(42418);var r=i(70416);var n=(0,r.K2)(((t,e,i,n)=>{t.attr("class",i);const{width:o,height:l,x:h,y:u}=a(t,e);(0,s.a$)(t,l,o,n);const y=c(h,u,o,l,e);t.attr("viewBox",y);r.Rm.debug(`viewBox configured: ${y} with padding: ${e}`)}),"setupViewPortForSVG");var a=(0,r.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 c=(0,r.K2)(((t,e,i,s,r)=>`${t-r} ${e-r} ${i} ${s}`),"createViewBox")},86405:(t,e,i)=>{i.d(e,{diagram:()=>A});var s=i(46884);var r=i(47925);var n=i(78188);var a=i(25301);var c=i(46103);var o=i(47655);var l=i(15164);var h=i(55750);var u=i(95035);var y=i(29131);var d=i(42418);var b=i(70416);var p=i(1218);var f=i(27574);var k=i(3635);var _=function(){var t=(0,b.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],y=[1,25],d=[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,b.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,b.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:y,44:d,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:y,44:d,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,b.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,b.K2)((function t(e){var i=this,s=[0],r=[],n=[null],a=[],c=this.table,o="",l=0,h=0,u=0,y=2,d=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,b.K2)(E,"popStack");function v(){var t;t=r.pop()||f.lex()||d;if(typeof t!=="number"){if(t instanceof Array){r=t;t=r.pop()}t=i.symbols_[t]||t}return t}(0,b.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>y){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==d?"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,b.K2)((function t(e,i){if(this.yy.parser){this.yy.parser.parseError(e,i)}else{throw new Error(e)}}),"parseError"),setInput:(0,b.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,b.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,b.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,b.K2)((function(){this._more=true;return this}),"more"),reject:(0,b.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,b.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,b.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,b.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,b.K2)((function(){var t=this.pastInput();var e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,b.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,b.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,b.K2)((function t(){var e=this.next();if(e){return e}else{return this.lex()}}),"lex"),begin:(0,b.K2)((function t(e){this.conditionStack.push(e)}),"begin"),popState:(0,b.K2)((function t(){var e=this.conditionStack.length-1;if(e>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}}),"popState"),_currentRules:(0,b.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,b.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,b.K2)((function t(e){this.begin(e)}),"pushState"),stateStackSize:(0,b.K2)((function t(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":true},performAction:(0,b.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,b.K2)(X,"Parser");X.prototype=j;j.Parser=X;return new X}();_.parser=_;var g=_;var m=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=d.SV;this.getAccTitle=d.iN;this.setAccDescription=d.EI;this.getAccDescription=d.m7;this.setDiagramTitle=d.ke;this.getDiagramTitle=d.ab;this.getConfig=(0,b.K2)((()=>(0,d.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,b.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,d.D7)().look??"default",cssClasses:"default",cssStyles:[]});b.Rm.info("Added new entity :",t)}else if(!this.entities.get(t)?.alias&&e){this.entities.get(t).alias=e;b.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]);b.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);b.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,d.IU)()}getData(){const t=[];const e=[];const i=(0,d.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,y.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 E={};(0,b.VA)(E,{draw:()=>v});var v=(0,b.K2)((async function(t,e,i,a){b.Rm.info("REF0:");b.Rm.info("Drawing er diagram (unified)",e);const{securityLevel:c,er:o,layout:l}=(0,d.D7)();const h=a.db.getData();const u=(0,s.A)(e,c);h.type=a.type;h.layoutAlgorithm=(0,n.q7)(l);h.config.flowchart.nodeSpacing=o?.nodeSpacing||140;h.config.flowchart.rankSpacing=o?.rankSpacing||80;h.direction=a.db.getDirection();h.markers=["only_one","zero_or_one","one_or_more","zero_or_more"];h.diagramId=e;await(0,n.XX)(h,u);if(h.layoutAlgorithm==="elk"){u.select(".edges").lower()}const f=u.selectAll('[id*="-background"]');if(Array.from(f).length>0){f.each((function(){const t=(0,p.Ltv)(this);const e=t.attr("id");const i=e.replace("-background","");const s=u.select(`#${CSS.escape(i)}`);if(!s.empty()){const e=s.attr("transform");t.attr("transform",e)}}))}const k=8;y._K.insertTitle(u,"erDiagramTitleText",o?.titleTopMargin??25,a.db.getDiagramTitle());(0,r.P)(u,k,"erDiagram",o?.useMaxWidth??true)}),"draw");var S=(0,b.K2)(((t,e)=>{const i=f.A;const s=i(t,"r");const r=i(t,"g");const n=i(t,"b");return k.A(s,r,n,e)}),"fade");var O=(0,b.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: ${S(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 T=O;var A={parser:g,get db(){return new m},renderer:E,styles:T}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/6412.ebdf8da40f1ba8272df9.js b/share/jupyter/lab/static/6412.ebdf8da40f1ba8272df9.js new file mode 100644 index 0000000..4b13b33 --- /dev/null +++ b/share/jupyter/lab/static/6412.ebdf8da40f1ba8272df9.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6412],{56412:(e,t,r)=>{r.r(t);r.d(t,{haxe:()=>ue,hxml:()=>le});function n(e){return{type:e,style:"keyword"}}var i=n("keyword a"),a=n("keyword b"),u=n("keyword c");var l=n("operator"),f={type:"atom",style:"atom"},o={type:"attribute",style:"attribute"};var c=n("typedef");var s={if:i,while:i,else:a,do:a,try:a,return:u,break:u,continue:u,new:u,throw:u,var:n("var"),inline:o,static:o,using:n("import"),public:o,private:o,cast:n("cast"),import:n("import"),macro:n("macro"),function:n("function"),catch:n("catch"),untyped:n("untyped"),callback:n("cb"),for:n("for"),switch:n("switch"),case:n("case"),default:n("default"),in:l,never:n("property_access"),trace:n("trace"),class:c,abstract:c,enum:c,interface:c,typedef:c,extends:c,implements:c,dynamic:c,true:f,false:f,null:f};var p=/[+\-*&%=<>!?|]/;function d(e,t,r){t.tokenize=r;return r(e,t)}function m(e,t){var r=false,n;while((n=e.next())!=null){if(n==t&&!r)return true;r=!r&&n=="\\"}}var c,v;function y(e,t,r){c=e;v=r;return t}function h(e,t){var r=e.next();if(r=='"'||r=="'"){return d(e,t,b(r))}else if(/[\[\]{}\(\),;\:\.]/.test(r)){return y(r)}else if(r=="0"&&e.eat(/x/i)){e.eatWhile(/[\da-f]/i);return y("number","number")}else if(/\d/.test(r)||r=="-"&&e.eat(/\d/)){e.match(/^\d*(?:\.\d*(?!\.))?(?:[eE][+\-]?\d+)?/);return y("number","number")}else if(t.reAllowed&&(r=="~"&&e.eat(/\//))){m(e,"/");e.eatWhile(/[gimsu]/);return y("regexp","string.special")}else if(r=="/"){if(e.eat("*")){return d(e,t,k)}else if(e.eat("/")){e.skipToEnd();return y("comment","comment")}else{e.eatWhile(p);return y("operator",null,e.current())}}else if(r=="#"){e.skipToEnd();return y("conditional","meta")}else if(r=="@"){e.eat(/:/);e.eatWhile(/[\w_]/);return y("metadata","meta")}else if(p.test(r)){e.eatWhile(p);return y("operator",null,e.current())}else{var n;if(/[A-Z]/.test(r)){e.eatWhile(/[\w_<>]/);n=e.current();return y("type","type",n)}else{e.eatWhile(/[\w_]/);var n=e.current(),i=s.propertyIsEnumerable(n)&&s[n];return i&&t.kwAllowed?y(i.type,i.style,n):y("variable","variable",n)}}}function b(e){return function(t,r){if(m(t,e))r.tokenize=h;return y("string","string")}}function k(e,t){var r=false,n;while(n=e.next()){if(n=="/"&&r){t.tokenize=h;break}r=n=="*"}return y("comment","comment")}var x={atom:true,number:true,variable:true,string:true,regexp:true};function w(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}function A(e,t,r,n,i){var a=e.cc;_.state=e;_.stream=i;_.marked=null,_.cc=a;if(!e.lexical.hasOwnProperty("align"))e.lexical.align=true;while(true){var u=a.length?a.pop():C;if(u(r,n)){while(a.length&&a[a.length-1].lex)a.pop()();if(_.marked)return _.marked;if(r=="variable"&&g(e,n))return"variableName.local";if(r=="variable"&&V(e,n))return"variableName.special";return t}}}function V(e,t){if(/[a-z]/.test(t.charAt(0)))return false;var r=e.importedtypes.length;for(var n=0;n=0;e--)_.cc.push(arguments[e])}function z(){W.apply(null,arguments);return true}function T(e,t){for(var r=t;r;r=r.next)if(r.name==e)return true;return false}function E(e){var t=_.state;if(t.context){_.marked="def";if(T(e,t.localVars))return;t.localVars={name:e,next:t.localVars}}else if(t.globalVars){if(T(e,t.globalVars))return;t.globalVars={name:e,next:t.globalVars}}}var D={name:"this",next:null};function O(){if(!_.state.context)_.state.localVars=D;_.state.context={prev:_.state.context,vars:_.state.localVars}}function Z(){_.state.localVars=_.state.context.vars;_.state.context=_.state.context.prev}Z.lex=true;function P(e,t){var r=function(){var r=_.state;r.lexical=new w(r.indented,_.stream.column(),e,null,r.lexical,t)};r.lex=true;return r}function I(){var e=_.state;if(e.lexical.prev){if(e.lexical.type==")")e.indented=e.lexical.indented;e.lexical=e.lexical.prev}}I.lex=true;function j(e){function t(r){if(r==e)return z();else if(e==";")return W();else return z(t)}return t}function C(e){if(e=="@")return z(q);if(e=="var")return z(P("vardef"),U,j(";"),I);if(e=="keyword a")return z(P("form"),N,C,I);if(e=="keyword b")return z(P("form"),C,I);if(e=="{")return z(P("}"),O,R,I,Z);if(e==";")return z();if(e=="attribute")return z(F);if(e=="function")return z(te);if(e=="for")return z(P("form"),j("("),P(")"),Y,j(")"),I,C,I);if(e=="variable")return z(P("stat"),K);if(e=="switch")return z(P("form"),N,P("}","switch"),j("{"),R,I,I);if(e=="case")return z(N,j(":"));if(e=="default")return z(j(":"));if(e=="catch")return z(P("form"),O,j("("),ae,j(")"),C,I,Z);if(e=="import")return z(H,j(";"));if(e=="typedef")return z(J);return W(P("stat"),N,j(";"),I)}function N(e){if(x.hasOwnProperty(e))return z(B);if(e=="type")return z(B);if(e=="function")return z(te);if(e=="keyword c")return z($);if(e=="(")return z(P(")"),$,j(")"),I,B);if(e=="operator")return z(N);if(e=="[")return z(P("]"),Q($,"]"),I,B);if(e=="{")return z(P("}"),Q(M,"}"),I,B);return z()}function $(e){if(e.match(/[;\}\)\],]/))return W();return W(N)}function B(e,t){if(e=="operator"&&/\+\+|--/.test(t))return z(B);if(e=="operator"||e==":")return z(N);if(e==";")return;if(e=="(")return z(P(")"),Q(N,")"),I,B);if(e==".")return z(L,B);if(e=="[")return z(P("]"),N,j("]"),I,B)}function F(e){if(e=="attribute")return z(F);if(e=="function")return z(te);if(e=="var")return z(U)}function q(e){if(e==":")return z(q);if(e=="variable")return z(q);if(e=="(")return z(P(")"),Q(G,")"),I,C)}function G(e){if(e=="variable")return z()}function H(e,t){if(e=="variable"&&/[A-Z]/.test(t.charAt(0))){S(t);return z()}else if(e=="variable"||e=="property"||e=="."||t=="*")return z(H)}function J(e,t){if(e=="variable"&&/[A-Z]/.test(t.charAt(0))){S(t);return z()}else if(e=="type"&&/[A-Z]/.test(t.charAt(0))){return z()}}function K(e){if(e==":")return z(I,C);return W(B,j(";"),I)}function L(e){if(e=="variable"){_.marked="property";return z()}}function M(e){if(e=="variable")_.marked="property";if(x.hasOwnProperty(e))return z(j(":"),N)}function Q(e,t){function r(n){if(n==",")return z(e,r);if(n==t)return z();return z(j(t))}return function(n){if(n==t)return z();else return W(e,r)}}function R(e){if(e=="}")return z();return W(C,R)}function U(e,t){if(e=="variable"){E(t);return z(re,X)}return z()}function X(e,t){if(t=="=")return z(N,X);if(e==",")return z(U)}function Y(e,t){if(e=="variable"){E(t);return z(ee,N)}else{return W()}}function ee(e,t){if(t=="in")return z()}function te(e,t){if(e=="variable"||e=="type"){E(t);return z(te)}if(t=="new")return z(te);if(e=="(")return z(P(")"),O,Q(ae,")"),I,re,C,Z)}function re(e){if(e==":")return z(ne)}function ne(e){if(e=="type")return z();if(e=="variable")return z();if(e=="{")return z(P("}"),Q(ie,"}"),I)}function ie(e){if(e=="variable")return z(re)}function ae(e,t){if(e=="variable"){E(t);return z(re)}}const ue={name:"haxe",startState:function(e){var t=["Int","Float","String","Void","Std","Bool","Dynamic","Array"];var r={tokenize:h,reAllowed:true,kwAllowed:true,cc:[],lexical:new w(-e,0,"block",false),importedtypes:t,context:null,indented:0};return r},token:function(e,t){if(e.sol()){if(!t.lexical.hasOwnProperty("align"))t.lexical.align=false;t.indented=e.indentation()}if(e.eatSpace())return null;var r=t.tokenize(e,t);if(c=="comment")return r;t.reAllowed=!!(c=="operator"||c=="keyword c"||c.match(/^[\[{}\(,;:]$/));t.kwAllowed=c!=".";return A(t,r,c,v,e)},indent:function(e,t,r){if(e.tokenize!=h)return 0;var n=t&&t.charAt(0),i=e.lexical;if(i.type=="stat"&&n=="}")i=i.prev;var a=i.type,u=n==a;if(a=="vardef")return i.indented+4;else if(a=="form"&&n=="{")return i.indented;else if(a=="stat"||a=="form")return i.indented+r.unit;else if(i.info=="switch"&&!u)return i.indented+(/^(?:case|default)\b/.test(t)?r.unit:2*r.unit);else if(i.align)return i.column+(u?0:1);else return i.indented+(u?0:r.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}};const le={name:"hxml",startState:function(){return{define:false,inString:false}},token:function(e,t){var r=e.peek();var n=e.sol();if(r=="#"){e.skipToEnd();return"comment"}if(n&&r=="-"){var i="variable-2";e.eat(/-/);if(e.peek()=="-"){e.eat(/-/);i="keyword a"}if(e.peek()=="D"){e.eat(/[D]/);i="keyword c";t.define=true}e.eatWhile(/[A-Z]/i);return i}var r=e.peek();if(t.inString==false&&r=="'"){t.inString=true;e.next()}if(t.inString==true){if(e.skipTo("'")){}else{e.skipToEnd()}if(e.peek()=="'"){e.next();t.inString=false}return"string"}e.next();return null},languageData:{commentTokens:{line:"#"}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/6460.d9aaa1e48da295c6035d.js b/share/jupyter/lab/static/6460.d9aaa1e48da295c6035d.js new file mode 100644 index 0000000..b0085b0 --- /dev/null +++ b/share/jupyter/lab/static/6460.d9aaa1e48da295c6035d.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6460],{56460:(e,t,n)=>{n.r(t);n.d(t,{toml:()=>r});const r={name:"toml",startState:function(){return{inString:false,stringType:"",lhs:true,inArray:0}},token:function(e,t){if(!t.inString&&(e.peek()=='"'||e.peek()=="'")){t.stringType=e.peek();e.next();t.inString=true}if(e.sol()&&t.inArray===0){t.lhs=true}if(t.inString){while(t.inString&&!e.eol()){if(e.peek()===t.stringType){e.next();t.inString=false}else if(e.peek()==="\\"){e.next();e.next()}else{e.match(/^.[^\\\"\']*/)}}return t.lhs?"property":"string"}else if(t.inArray&&e.peek()==="]"){e.next();t.inArray--;return"bracket"}else if(t.lhs&&e.peek()==="["&&e.skipTo("]")){e.next();if(e.peek()==="]")e.next();return"atom"}else if(e.peek()==="#"){e.skipToEnd();return"comment"}else if(e.eatSpace()){return null}else if(t.lhs&&e.eatWhile((function(e){return e!="="&&e!=" "}))){return"property"}else if(t.lhs&&e.peek()==="="){e.next();t.lhs=false;return null}else if(!t.lhs&&e.match(/^\d\d\d\d[\d\-\:\.T]*Z/)){return"atom"}else if(!t.lhs&&(e.match("true")||e.match("false"))){return"atom"}else if(!t.lhs&&e.peek()==="["){t.inArray++;e.next();return"bracket"}else if(!t.lhs&&e.match(/^\-?\d+(?:\.\d+)?/)){return"number"}else if(!e.eatSpace()){e.next()}return null},languageData:{commentTokens:{line:"#"}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/6492.804d51a693edf6978ef4.js b/share/jupyter/lab/static/6492.804d51a693edf6978ef4.js new file mode 100644 index 0000000..c43e3d3 --- /dev/null +++ b/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/share/jupyter/lab/static/6540.51c00e890179a4832552.js b/share/jupyter/lab/static/6540.51c00e890179a4832552.js new file mode 100644 index 0000000..01588fd --- /dev/null +++ b/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/share/jupyter/lab/static/6540.51c00e890179a4832552.js.LICENSE.txt b/share/jupyter/lab/static/6540.51c00e890179a4832552.js.LICENSE.txt new file mode 100644 index 0000000..e932783 --- /dev/null +++ b/share/jupyter/lab/static/6540.51c00e890179a4832552.js.LICENSE.txt @@ -0,0 +1,9 @@ +/** + * @license React + * react.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/share/jupyter/lab/static/6733.2d8d3e01d56d79a52e7e.js b/share/jupyter/lab/static/6733.2d8d3e01d56d79a52e7e.js new file mode 100644 index 0000000..40ca6d7 --- /dev/null +++ b/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/share/jupyter/lab/static/6733.2d8d3e01d56d79a52e7e.js.LICENSE.txt b/share/jupyter/lab/static/6733.2d8d3e01d56d79a52e7e.js.LICENSE.txt new file mode 100644 index 0000000..53dcf70 --- /dev/null +++ b/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/share/jupyter/lab/static/6767.4b82d96c237ca7e31bc6.js b/share/jupyter/lab/static/6767.4b82d96c237ca7e31bc6.js new file mode 100644 index 0000000..bc4ad90 --- /dev/null +++ b/share/jupyter/lab/static/6767.4b82d96c237ca7e31bc6.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6767],{56767:(e,t,r)=>{r.r(t);r.d(t,{vbScript:()=>a,vbScriptASP:()=>i});function n(e){var t="error";function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var n=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]");var a=new RegExp("^((<>)|(<=)|(>=))");var i=new RegExp("^[\\.,]");var o=new RegExp("^[\\(\\)]");var c=new RegExp("^[A-Za-z][_A-Za-z0-9]*");var u=["class","sub","select","while","if","function","property","with","for"];var l=["else","elseif","case"];var s=["next","loop","wend"];var v=r(["and","or","not","xor","is","mod","eqv","imp"]);var b=["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"];var d=["true","false","nothing","empty","null"];var f=["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"];var m=["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"];var p=["WScript","err","debug","RegExp"];var h=["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"];var y=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"];var g=["server","response","request","session","application"];var k=["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"];var w=["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"];var x=y.concat(h);p=p.concat(m);if(e.isASP){p=p.concat(g);x=x.concat(w,k)}var C=r(b);var I=r(d);var L=r(f);var S=r(p);var D=r(x);var E='"';var j=r(u);var O=r(l);var T=r(s);var z=r(["end"]);var R=r(["do"]);var F=r(["on error resume next","exit"]);var A=r(["rem"]);function B(e,t){t.currentIndent++}function N(e,t){t.currentIndent--}function _(e,r){if(e.eatSpace()){return null}var u=e.peek();if(u==="'"){e.skipToEnd();return"comment"}if(e.match(A)){e.skipToEnd();return"comment"}if(e.match(/^((&H)|(&O))?[0-9\.]/i,false)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,false)){var l=false;if(e.match(/^\d*\.\d+/i)){l=true}else if(e.match(/^\d+\.\d*/)){l=true}else if(e.match(/^\.\d+/)){l=true}if(l){e.eat(/J/i);return"number"}var s=false;if(e.match(/^&H[0-9a-f]+/i)){s=true}else if(e.match(/^&O[0-7]+/i)){s=true}else if(e.match(/^[1-9]\d*F?/)){e.eat(/J/i);s=true}else if(e.match(/^0(?![\dx])/i)){s=true}if(s){e.eat(/L/i);return"number"}}if(e.match(E)){r.tokenize=W(e.current());return r.tokenize(e,r)}if(e.match(a)||e.match(n)||e.match(v)){return"operator"}if(e.match(i)){return null}if(e.match(o)){return"bracket"}if(e.match(F)){r.doInCurrentLine=true;return"keyword"}if(e.match(R)){B(e,r);r.doInCurrentLine=true;return"keyword"}if(e.match(j)){if(!r.doInCurrentLine)B(e,r);else r.doInCurrentLine=false;return"keyword"}if(e.match(O)){return"keyword"}if(e.match(z)){N(e,r);N(e,r);return"keyword"}if(e.match(T)){if(!r.doInCurrentLine)N(e,r);else r.doInCurrentLine=false;return"keyword"}if(e.match(C)){return"keyword"}if(e.match(I)){return"atom"}if(e.match(D)){return"variableName.special"}if(e.match(L)){return"builtin"}if(e.match(S)){return"builtin"}if(e.match(c)){return"variable"}e.next();return t}function W(e){var t=e.length==1;var r="string";return function(n,a){while(!n.eol()){n.eatWhile(/[^'"]/);if(n.match(e)){a.tokenize=_;return r}else{n.eat(/['"]/)}}if(t){a.tokenize=_}return r}}function q(e,r){var n=r.tokenize(e,r);var a=e.current();if(a==="."){n=r.tokenize(e,r);a=e.current();if(n&&(n.substr(0,8)==="variable"||n==="builtin"||n==="keyword")){if(n==="builtin"||n==="keyword")n="variable";if(x.indexOf(a.substr(1))>-1)n="keyword";return n}else{return t}}return n}return{name:"vbscript",startState:function(){return{tokenize:_,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:false,ignoreKeyword:false}},token:function(e,t){if(e.sol()){t.currentIndent+=t.nextLineIndent;t.nextLineIndent=0;t.doInCurrentLine=0}var r=q(e,t);t.lastToken={style:r,content:e.current()};if(r===null)r=null;return r},indent:function(e,t,r){var n=t.replace(/^\s+|\s+$/g,"");if(n.match(T)||n.match(z)||n.match(O))return r.unit*(e.currentIndent-1);if(e.currentIndent<0)return 0;return e.currentIndent*r.unit}}}const a=n({});const i=n({isASP:true})}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/6831.1df8fa4cabb5b1c19803.js b/share/jupyter/lab/static/6831.1df8fa4cabb5b1c19803.js new file mode 100644 index 0000000..2d0dd31 --- /dev/null +++ b/share/jupyter/lab/static/6831.1df8fa4cabb5b1c19803.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6831],{86831:(e,t,r)=>{r.r(t);r.d(t,{fcl:()=>d});var n={term:true,method:true,accu:true,rule:true,then:true,is:true,and:true,or:true,if:true,default:true};var u={var_input:true,var_output:true,fuzzify:true,defuzzify:true,function_block:true,ruleblock:true};var i={end_ruleblock:true,end_defuzzify:true,end_function_block:true,end_fuzzify:true,end_var:true};var a={true:true,false:true,nan:true,real:true,min:true,max:true,cog:true,cogs:true};var o=/[+\-*&^%:=<>!|\/]/;function l(e,t){var r=e.next();if(/[\d\.]/.test(r)){if(r=="."){e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/)}else if(r=="0"){e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/)}else{e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/)}return"number"}if(r=="/"||r=="("){if(e.eat("*")){t.tokenize=f;return f(e,t)}if(e.eat("/")){e.skipToEnd();return"comment"}}if(o.test(r)){e.eatWhile(o);return"operator"}e.eatWhile(/[\w\$_\xa1-\uffff]/);var l=e.current().toLowerCase();if(n.propertyIsEnumerable(l)||u.propertyIsEnumerable(l)||i.propertyIsEnumerable(l)){return"keyword"}if(a.propertyIsEnumerable(l))return"atom";return"variable"}function f(e,t){var r=false,n;while(n=e.next()){if((n=="/"||n==")")&&r){t.tokenize=l;break}r=n=="*"}return"comment"}function c(e,t,r,n,u){this.indented=e;this.column=t;this.type=r;this.align=n;this.prev=u}function s(e,t,r){return e.context=new c(e.indented,t,r,null,e.context)}function p(e){if(!e.context.prev)return;var t=e.context.type;if(t=="end_block")e.indented=e.context.indented;return e.context=e.context.prev}const d={name:"fcl",startState:function(e){return{tokenize:null,context:new c(-e,0,"top",false),indented:0,startOfLine:true}},token:function(e,t){var r=t.context;if(e.sol()){if(r.align==null)r.align=false;t.indented=e.indentation();t.startOfLine=true}if(e.eatSpace())return null;var n=(t.tokenize||l)(e,t);if(n=="comment")return n;if(r.align==null)r.align=true;var a=e.current().toLowerCase();if(u.propertyIsEnumerable(a))s(t,e.column(),"end_block");else if(i.propertyIsEnumerable(a))p(t);t.startOfLine=false;return n},indent:function(e,t,r){if(e.tokenize!=l&&e.tokenize!=null)return 0;var n=e.context;var u=i.propertyIsEnumerable(t);if(n.align)return n.column+(u?0:1);else return n.indented+(u?0:r.unit)},languageData:{commentTokens:{line:"//",block:{open:"(*",close:"*)"}}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/6843.dabcc3c9658bc6ded6d1.js b/share/jupyter/lab/static/6843.dabcc3c9658bc6ded6d1.js new file mode 100644 index 0000000..e04f36f --- /dev/null +++ b/share/jupyter/lab/static/6843.dabcc3c9658bc6ded6d1.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6843],{6843:(e,t,n)=>{n.r(t);n.d(t,{tiki:()=>_});function r(e,t,n){return function(r,i){while(!r.eol()){if(r.match(t)){i.tokenize=u;break}r.next()}if(n)i.tokenize=n;return e}}function i(e){return function(t,n){while(!t.eol()){t.next()}n.tokenize=u;return e}}function u(e,t){function n(n){t.tokenize=n;return n(e,t)}var a=e.sol();var o=e.next();switch(o){case"{":e.eat("/");e.eatSpace();e.eatWhile(/[^\s\u00a0=\"\'\/?(}]/);t.tokenize=c;return"tag";case"_":if(e.eat("_"))return n(r("strong","__",u));break;case"'":if(e.eat("'"))return n(r("em","''",u));break;case"(":if(e.eat("("))return n(r("link","))",u));break;case"[":return n(r("url","]",u));break;case"|":if(e.eat("|"))return n(r("comment","||"));break;case"-":if(e.eat("=")){return n(r("header string","=-",u))}else if(e.eat("-")){return n(r("error tw-deleted","--",u))}break;case"=":if(e.match("=="))return n(r("tw-underline","===",u));break;case":":if(e.eat(":"))return n(r("comment","::"));break;case"^":return n(r("tw-box","^"));break;case"~":if(e.match("np~"))return n(r("meta","~/np~"));break}if(a){switch(o){case"!":if(e.match("!!!!!")){return n(i("header string"))}else if(e.match("!!!!")){return n(i("header string"))}else if(e.match("!!!")){return n(i("header string"))}else if(e.match("!!")){return n(i("header string"))}else{return n(i("header string"))}break;case"*":case"#":case"+":return n(i("tw-listitem bracket"));break}}return null}var a,o;function c(e,t){var n=e.next();var r=e.peek();if(n=="}"){t.tokenize=u;return"tag"}else if(n=="("||n==")"){return"bracket"}else if(n=="="){o="equals";if(r==">"){e.next();r=e.peek()}if(!/[\'\"]/.test(r)){t.tokenize=s()}return"operator"}else if(/[\'\"]/.test(n)){t.tokenize=f(n);return t.tokenize(e,t)}else{e.eatWhile(/[^\s\u00a0=\"\'\/?]/);return"keyword"}}function f(e){return function(t,n){while(!t.eol()){if(t.next()==e){n.tokenize=c;break}}return"string"}}function s(){return function(e,t){while(!e.eol()){var n=e.next();var r=e.peek();if(n==" "||n==","||/[ )}]/.test(r)){t.tokenize=c;break}}return"string"}}var l,k;function p(){for(var e=arguments.length-1;e>=0;e--)l.cc.push(arguments[e])}function d(){p.apply(null,arguments);return true}function h(e,t){var n=l.context&&l.context.noIndent;l.context={prev:l.context,pluginName:e,indent:l.indented,startOfLine:t,noIndent:n}}function g(){if(l.context)l.context=l.context.prev}function b(e){if(e=="openPlugin"){l.pluginName=a;return d(v,m(l.startOfLine))}else if(e=="closePlugin"){var t=false;if(l.context){t=l.context.pluginName!=a;g()}else{t=true}if(t)k="error";return d(x(t))}else if(e=="string"){if(!l.context||l.context.name!="!cdata")h("!cdata");if(l.tokenize==u)g();return d()}else return d()}function m(e){return function(t){if(t=="selfclosePlugin"||t=="endPlugin")return d();if(t=="endPlugin"){h(l.pluginName,e);return d()}return d()}}function x(e){return function(t){if(e)k="error";if(t=="endPlugin")return d();return p()}}function v(e){if(e=="keyword"){k="attribute";return d(v)}if(e=="equals")return d(w,v);return p()}function w(e){if(e=="keyword"){k="string";return d()}if(e=="string")return d(z);return p()}function z(e){if(e=="string")return d(z);else return p()}const _={name:"tiki",startState:function(){return{tokenize:u,cc:[],indented:0,startOfLine:true,pluginName:null,context:null}},token:function(e,t){if(e.sol()){t.startOfLine=true;t.indented=e.indentation()}if(e.eatSpace())return null;k=o=a=null;var n=t.tokenize(e,t);if((n||o)&&n!="comment"){l=t;while(true){var r=t.cc.pop()||b;if(r(o||n))break}}t.startOfLine=false;return k||n},indent:function(e,t,n){var r=e.context;if(r&&r.noIndent)return 0;if(r&&/^{\//.test(t))r=r.prev;while(r&&!r.startOfLine)r=r.prev;if(r)return r.indent+n.unit;else return 0}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/6874.bb2f7fbc6ce56eecc800.js b/share/jupyter/lab/static/6874.bb2f7fbc6ce56eecc800.js new file mode 100644 index 0000000..0a75471 --- /dev/null +++ b/share/jupyter/lab/static/6874.bb2f7fbc6ce56eecc800.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6874],{96874:(e,t,T)=>{T.r(t);T.d(t,{ttcnCfg:()=>s});function n(e){var t={},T=e.split(" ");for(var n=0;n{n.d(e,{diagram:()=>Q});var i=n(42418);var r=n(70416);var s=n(1218);var a=n(63170);var o=n(77470);var c=n(48750);var l=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,11,12,14,16,17,20,21],n=[1,9],i=[1,10],s=[1,11],a=[1,12],o=[1,13],c=[1,16],l=[1,17];var h={trace:(0,r.K2)((function t(){}),"trace"),yy:{},symbols_:{error:2,start:3,timeline: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,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",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",20:"period",21:"event"},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,1],[9,1],[18,1],[19,1]],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.getCommonDb().setDiagramTitle(a[c].substr(6));this.$=a[c].substr(6);break;case 9:this.$=a[c].trim();r.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=a[c].trim();r.getCommonDb().setAccDescription(this.$);break;case 12:r.addSection(a[c].substr(8));this.$=a[c].substr(8);break;case 15:r.addTask(a[c],0,"");this.$=a[c];break;case 16:r.addEvent(a[c].substr(2));this.$=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:n,12:i,14:s,16:a,17:o,18:14,19:15,20:c,21:l},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:18,11:n,12:i,14:s,16:a,17:o,18:14,19:15,20:c,21:l},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,19]},{15:[1,20]},t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),t(e,[2,4]),t(e,[2,9]),t(e,[2,10])],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="",h=0,d=0,u=0,p=2,f=1;var y=o.slice.call(arguments,1);var g=Object.create(this.lexer);var m={yy:{}};for(var x in this.yy){if(Object.prototype.hasOwnProperty.call(this.yy,x)){m.yy[x]=this.yy[x]}}g.setInput(e,m.yy);m.yy.lexer=g;m.yy.parser=this;if(typeof g.yylloc=="undefined"){g.yylloc={}}var b=g.yylloc;o.push(b);var k=g.options&&g.options.ranges;if(typeof m.yy.parseError==="function"){this.parseError=m.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function v(t){i.length=i.length-2*t;a.length=a.length-t;o.length=o.length-t}(0,r.K2)(v,"popStack");function _(){var t;t=s.pop()||g.lex()||f;if(typeof t!=="number"){if(t instanceof Array){s=t;t=s.pop()}t=n.symbols_[t]||t}return t}(0,r.K2)(_,"lex");var w,K,S,$,E,T,I={},R,A,L,M;while(true){S=i[i.length-1];if(this.defaultActions[S]){$=this.defaultActions[S]}else{if(w===null||typeof w=="undefined"){w=_()}$=c[S]&&c[S][w]}if(typeof $==="undefined"||!$.length||!$[0]){var C="";M=[];for(R in c[S]){if(this.terminals_[R]&&R>p){M.push("'"+this.terminals_[R]+"'")}}if(g.showPosition){C="Parse error on line "+(h+1)+":\n"+g.showPosition()+"\nExpecting "+M.join(", ")+", got '"+(this.terminals_[w]||w)+"'"}else{C="Parse error on line "+(h+1)+": Unexpected "+(w==f?"end of input":"'"+(this.terminals_[w]||w)+"'")}this.parseError(C,{text:g.match,token:this.terminals_[w]||w,line:g.yylineno,loc:b,expected:M})}if($[0]instanceof Array&&$.length>1){throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+w)}switch($[0]){case 1:i.push(w);a.push(g.yytext);o.push(g.yylloc);i.push($[1]);w=null;if(!K){d=g.yyleng;l=g.yytext;h=g.yylineno;b=g.yylloc;if(u>0){u--}}else{w=K;K=null}break;case 2:A=this.productions_[$[1]][1];I.$=a[a.length-A];I._$={first_line:o[o.length-(A||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(A||1)].first_column,last_column:o[o.length-1].last_column};if(k){I._$.range=[o[o.length-(A||1)].range[0],o[o.length-1].range[1]]}T=this.performAction.apply(I,[l,d,h,m.yy,$[1],a,o].concat(y));if(typeof T!=="undefined"){return T}if(A){i=i.slice(0,-1*A*2);a=a.slice(0,-1*A);o=o.slice(0,-1*A)}i.push(this.productions_[$[1]][0]);a.push(I.$);o.push(I._$);L=c[i[i.length-2]][i[i.length-1]];i.push(L);break;case 3:return true}}return true}),"parse")};var d=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: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 21;break;case 16:return 20;break;case 17:return 6;break;case 18:return"INVALID";break}}),"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\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,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/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],inclusive:true}}};return t}();h.lexer=d;function u(){this.yy={}}(0,r.K2)(u,"Parser");u.prototype=h;h.Parser=u;return new u}();l.parser=l;var h=l;var d={};(0,r.VA)(d,{addEvent:()=>w,addSection:()=>b,addTask:()=>_,addTaskOrg:()=>K,clear:()=>x,default:()=>$,getCommonDb:()=>m,getSections:()=>k,getTasks:()=>v});var u="";var p=0;var f=[];var y=[];var g=[];var m=(0,r.K2)((()=>i.Wt),"getCommonDb");var x=(0,r.K2)((function(){f.length=0;y.length=0;u="";g.length=0;(0,i.IU)()}),"clear");var b=(0,r.K2)((function(t){u=t;f.push(t)}),"addSection");var k=(0,r.K2)((function(){return f}),"getSections");var v=(0,r.K2)((function(){let t=S();const e=100;let n=0;while(!t&&nt.id===p-1));e.events.push(t)}),"addEvent");var K=(0,r.K2)((function(t){const e={section:u,type:u,description:t,task:t,classes:[]};y.push(e)}),"addTaskOrg");var S=(0,r.K2)((function(){const t=(0,r.K2)((function(t){return g[t].processed}),"compileTask");let e=true;for(const[n,i]of g.entries()){t(n);e=e&&i.processed}return e}),"compileTasks");var $={clear:x,getCommonDb:m,addSection:b,getSections:k,getTasks:v,addTask:_,addTaskOrg:K,addEvent:w};var E=12;var T=(0,r.K2)((function(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);n.attr("rx",e.rx);n.attr("ry",e.ry);if(e.class!==void 0){n.attr("class",e.class)}return n}),"drawRect");var I=(0,r.K2)((function(t,e){const n=15;const i=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 a=t.append("g");a.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");a.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 i=(0,s.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",i).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}(0,r.K2)(o,"smile");function c(t){const i=(0,s.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",i).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}(0,r.K2)(c,"sad");function l(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,r.K2)(l,"ambivalent");if(e.score>3){o(a)}else if(e.score<3){c(a)}else{l(a)}return i}),"drawFace");var R=(0,r.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 A=(0,r.K2)((function(t,e){const n=e.text.replace(//gi," ");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!==void 0){i.attr("class",e.class)}const r=i.append("tspan");r.attr("x",e.x+e.textMargin*2);r.text(n);return i}),"drawText");var L=(0,r.K2)((function(t,e){function n(t,e,n,i,r){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+i-r)+" "+(t+n-r*1.2)+","+(e+i)+" "+t+","+(e+i)}(0,r.K2)(n,"genPoints");const i=t.append("polygon");i.attr("points",n(e.x,e.y,50,20,7));i.attr("class","labelBox");e.y=e.y+e.labelMargin;e.x=e.x+.5*e.labelMargin;A(t,e)}),"drawLabel");var M=(0,r.K2)((function(t,e,n){const i=t.append("g");const r=O();r.x=e.x;r.y=e.y;r.fill=e.fill;r.width=n.width;r.height=n.height;r.class="journey-section section-type-"+e.num;r.rx=3;r.ry=3;T(i,r);j(n)(e.text,i,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+e.num},n,e.colour)}),"drawSection");var C=-1;var N=(0,r.K2)((function(t,e,n){const i=e.x+n.width/2;const r=t.append("g");C++;const s=300+5*30;r.append("line").attr("id","task"+C).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");I(r,{cx:i,cy:300+(5-e.score)*30,score:e.score});const a=O();a.x=e.x;a.y=e.y;a.fill=e.fill;a.width=n.width;a.height=n.height;a.class="task task-type-"+e.num;a.rx=3;a.ry=3;T(r,a);j(n)(e.task,r,a.x,a.y,a.width,a.height,{class:"task"},n,e.colour)}),"drawTask");var P=(0,r.K2)((function(t,e){const n=T(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"});n.lower()}),"drawBackgroundRect");var H=(0,r.K2)((function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}}),"getTextObj");var O=(0,r.K2)((function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}}),"getNoteRect");var j=function(){function t(t,e,n,r,s,a,o,c){const l=e.append("text").attr("x",n+s/2).attr("y",r+a/2+5).style("font-color",c).style("text-anchor","middle").text(t);i(l,o)}(0,r.K2)(t,"byText");function e(t,e,n,r,s,a,o,c,l){const{taskFontSize:h,taskFontFamily:d}=c;const u=t.split(//gi);for(let p=0;p)/).reverse(),i,r=[],a=1.1,o=t.attr("y"),c=parseFloat(t.attr("dy")),l=t.text(null).append("tspan").attr("x",0).attr("y",o).attr("dy",c+"em");for(let s=0;se||i==="
    "){r.pop();l.text(r.join(" ").trim());if(i==="
    "){r=[""]}else{r=[i]}l=t.append("tspan").attr("x",0).attr("y",o).attr("dy",a+"em").text(i)}}}))}(0,r.K2)(z,"wrap");var W=(0,r.K2)((function(t,e,n,i){const r=n%E-1;const s=t.append("g");e.section=r;s.attr("class",(e.class?e.class+" ":"")+"timeline-node "+("section-"+r));const a=s.append("g");const o=s.append("g");const c=o.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(z,e.width);const l=c.node().getBBox();const h=i.fontSize?.replace?i.fontSize.replace("px",""):i.fontSize;e.height=l.height+h*1.1*.5+e.padding;e.height=Math.max(e.height,e.maxHeight);e.width=e.width+2*e.padding;o.attr("transform","translate("+e.width/2+", "+e.padding/2+")");F(a,e,r,i);return e}),"drawNode");var B=(0,r.K2)((function(t,e,n){const i=t.append("g");const r=i.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(z,e.width);const s=r.node().getBBox();const a=n.fontSize?.replace?n.fontSize.replace("px",""):n.fontSize;i.remove();return s.height+a*1.1*.5+e.padding}),"getVirtualNodeHeight");var F=(0,r.K2)((function(t,e,n){const i=5;t.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+e.type).attr("d",`M0 ${e.height-i} v${-e.height+2*i} q0,-5 5,-5 h${e.width-2*i} q5,0 5,5 v${e.height-i} H0 Z`);t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)}),"defaultBkg");var V={drawRect:T,drawCircle:R,drawSection:M,drawText:A,drawLabel:L,drawTask:N,drawBackgroundRect:P,getTextObj:H,getNoteRect:O,initGraphics:D,drawNode:W,getVirtualNodeHeight:B};var G=(0,r.K2)((function(t,e,n,a){const o=(0,i.D7)();const c=o.timeline?.leftMargin??50;r.Rm.debug("timeline",a.db);const l=o.securityLevel;let h;if(l==="sandbox"){h=(0,s.Ltv)("#i"+e)}const d=l==="sandbox"?(0,s.Ltv)(h.nodes()[0].contentDocument.body):(0,s.Ltv)("body");const u=d.select("#"+e);u.append("g");const p=a.db.getTasks();const f=a.db.getCommonDb().getDiagramTitle();r.Rm.debug("task",p);V.initGraphics(u);const y=a.db.getSections();r.Rm.debug("sections",y);let g=0;let m=0;let x=0;let b=0;let k=50+c;let v=50;b=50;let _=0;let w=true;y.forEach((function(t){const e={number:_,descr:t,section:_,width:150,padding:20,maxHeight:g};const n=V.getVirtualNodeHeight(u,e,o);r.Rm.debug("sectionHeight before draw",n);g=Math.max(g,n+20)}));let K=0;let S=0;r.Rm.debug("tasks.length",p.length);for(const[i,s]of p.entries()){const t={number:i,descr:s,section:s.section,width:150,padding:20,maxHeight:m};const e=V.getVirtualNodeHeight(u,t,o);r.Rm.debug("taskHeight before draw",e);m=Math.max(m,e+20);K=Math.max(K,s.events.length);let n=0;for(const i of s.events){const t={descr:i,section:s.section,number:s.section,width:150,padding:20,maxHeight:50};n+=V.getVirtualNodeHeight(u,t,o)}if(s.events.length>0){n+=(s.events.length-1)*10}S=Math.max(S,n)}r.Rm.debug("maxSectionHeight before draw",g);r.Rm.debug("maxTaskHeight before draw",m);if(y&&y.length>0){y.forEach((t=>{const e=p.filter((e=>e.section===t));const n={number:_,descr:t,section:_,width:200*Math.max(e.length,1)-50,padding:20,maxHeight:g};r.Rm.debug("sectionNode",n);const i=u.append("g");const s=V.drawNode(i,n,_,o);r.Rm.debug("sectionNode output",s);i.attr("transform",`translate(${k}, ${b})`);v+=g+50;if(e.length>0){U(u,e,_,k,v,m,o,K,S,g,false)}k+=200*Math.max(e.length,1);v=b;_++}))}else{w=false;U(u,p,_,k,v,m,o,K,S,g,true)}const $=u.node().getBBox();r.Rm.debug("bounds",$);if(f){u.append("text").text(f).attr("x",$.width/2-c).attr("font-size","4ex").attr("font-weight","bold").attr("y",20)}x=w?g+m+150:m+100;const E=u.append("g").attr("class","lineWrapper");E.append("line").attr("x1",c).attr("y1",x).attr("x2",$.width+3*c).attr("y2",x).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");(0,i.ot)(void 0,u,o.timeline?.padding??50,o.timeline?.useMaxWidth??false)}),"draw");var U=(0,r.K2)((function(t,e,n,i,s,a,o,c,l,h,d){for(const u of e){const e={descr:u.task,section:n,number:n,width:150,padding:20,maxHeight:a};r.Rm.debug("taskNode",e);const c=t.append("g").attr("class","taskWrapper");const h=V.drawNode(c,e,n,o);const p=h.height;r.Rm.debug("taskHeight after draw",p);c.attr("transform",`translate(${i}, ${s})`);a=Math.max(a,p);if(u.events){const e=t.append("g").attr("class","lineWrapper");let r=a;s+=100;r=r+q(t,u.events,n,i,s,o);s-=100;e.append("line").attr("x1",i+190/2).attr("y1",s+a).attr("x2",i+190/2).attr("y2",s+a+100+l+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}i=i+200;if(d&&!o.timeline?.disableMulticolor){n++}}s=s-10}),"drawTasks");var q=(0,r.K2)((function(t,e,n,i,s,a){let o=0;const c=s;s=s+100;for(const l of e){const e={descr:l,section:n,number:n,width:150,padding:20,maxHeight:50};r.Rm.debug("eventNode",e);const c=t.append("g").attr("class","eventWrapper");const h=V.drawNode(c,e,n,a);const d=h.height;o=o+d;c.attr("transform",`translate(${i}, ${s})`);s=s+10+d}s=c;return o}),"drawEvents");var J={setConf:(0,r.K2)((()=>{}),"setConf"),draw:G};var Y=(0,r.K2)((t=>{let e="";for(let n=0;n`\n .edge {\n stroke-width: 3;\n }\n ${Y(t)}\n .section-root rect, .section-root path, .section-root circle {\n fill: ${t.git0};\n }\n .section-root text {\n fill: ${t.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .eventWrapper {\n filter: brightness(120%);\n }\n`),"getStyles");var X=Z;var Q={db:d,renderer:J,parser:h,styles:X}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/6896.af1d649e0efae70b7b1a.js b/share/jupyter/lab/static/6896.af1d649e0efae70b7b1a.js new file mode 100644 index 0000000..1d520ed --- /dev/null +++ b/share/jupyter/lab/static/6896.af1d649e0efae70b7b1a.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6896],{6896:(e,t,r)=>{"use strict";r.r(t);r.d(t,{createPrecompiledValidator:()=>w,customizeValidator:()=>z,default:()=>E});var a=r(12776);var n=r(63282);var o=r.n(n);var i=r(68182);var s=r.n(i);var f=r(23805);var d=r.n(f);const c={allErrors:true,multipleOfPrecision:8,strict:false,verbose:true};const u=/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/;const l=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function m(e,t,r={},n,i=o()){const f=new i({...c,...r});if(n){s()(f,n)}else if(n!==false){s()(f)}f.addFormat("data-url",l);f.addFormat("color",u);f.addKeyword(a.ADDITIONAL_PROPERTY_FLAG);f.addKeyword(a.RJSF_ADDITONAL_PROPERTIES_FLAG);if(Array.isArray(e)){f.addMetaSchema(e)}if(d()(t)){Object.keys(t).forEach((e=>{f.addFormat(e,t[e])}))}return f}var h=r(58156);var p=r.n(h);function v(e=[],t){return e.map((e=>{const{instancePath:r,keyword:n,params:o,schemaPath:i,parentSchema:s,...f}=e;let{message:d=""}=f;let c=r.replace(/\//g,".");let u=`${c} ${d}`.trim();if("missingProperty"in o){c=c?`${c}.${o.missingProperty}`:o.missingProperty;const e=o.missingProperty;const r=(0,a.getUiOptions)(p()(t,`${c.replace(/^\./,"")}`)).title;if(r){d=d.replace(e,r)}else{const t=p()(s,[a.PROPERTIES_KEY,e,"title"]);if(t){d=d.replace(e,t)}}u=d}else{const e=(0,a.getUiOptions)(p()(t,`${c.replace(/^\./,"")}`)).title;if(e){u=`'${e}' ${d}`.trim()}else{const e=s===null||s===void 0?void 0:s.title;if(e){u=`'${e}' ${d}`.trim()}}}return{name:n,property:c,message:d,params:o,stack:u,schemaPath:i}}))}function _(e,t,r,n,o,i,s){const{validationError:f}=t;let d=v(t.errors,s);if(f){d=[...d,{stack:f.message}]}if(typeof i==="function"){d=i(d,s)}let c=(0,a.toErrorSchema)(d);if(f){c={...c,$schema:{__errors:[f.message]}}}if(typeof o!=="function"){return{errors:d,errorSchema:c}}const u=(0,a.getDefaultFormState)(e,n,r,n,true);const l=o(u,(0,a.createErrorHandler)(u),s);const m=(0,a.unwrapErrorHandler)(l);return(0,a.validationDataMerge)({errors:d,errorSchema:c},m)}class ${constructor(e,t){const{additionalMetaSchemas:r,customFormats:a,ajvOptionsOverrides:n,ajvFormatOptions:o,AjvClass:i}=e;this.ajv=m(r,a,n,o,i);this.localizer=t}toErrorList(e,t=[]){return(0,a.toErrorList)(e,t)}rawValidation(e,t){let r=undefined;let n;if(e[a.ID_KEY]){n=this.ajv.getSchema(e[a.ID_KEY])}try{if(n===undefined){n=this.ajv.compile(e)}n(t)}catch(i){r=i}let o;if(n){if(typeof this.localizer==="function"){this.localizer(n.errors)}o=n.errors||undefined;n.errors=null}return{errors:o,validationError:r}}validateFormData(e,t,r,a,n){const o=this.rawValidation(t,e);return _(this,o,e,t,r,a,n)}isValid(e,t,r){var n,o;const i=(n=r[a.ID_KEY])!==null&&n!==void 0?n:a.ROOT_SCHEMA_PREFIX;try{this.ajv.addSchema(r,i);const n=(0,a.withIdRefPrefix)(e);const s=(o=n[a.ID_KEY])!==null&&o!==void 0?o:(0,a.hashForSchema)(n);let f;f=this.ajv.getSchema(s);if(f===undefined){f=this.ajv.addSchema(n,s).getSchema(s)||this.ajv.compile(n)}const d=f(t);return d}catch(s){console.warn("Error encountered compiling schema:",s);return false}finally{this.ajv.removeSchema(i)}}}function z(e={},t){return new $(e,t)}var y=r(2404);var b=r.n(y);class g{constructor(e,t,r){this.rootSchema=t;this.validateFns=e;this.localizer=r;this.mainValidator=this.getValidator(t)}getValidator(e){const t=p()(e,a.ID_KEY)||(0,a.hashForSchema)(e);const r=this.validateFns[t];if(!r){throw new Error(`No precompiled validator function was found for the given schema for "${t}"`)}return r}ensureSameRootSchema(e,t){if(!b()(e,this.rootSchema)){const r=(0,a.retrieveSchema)(this,this.rootSchema,this.rootSchema,t);if(!b()(e,r)){throw new Error("The schema associated with the precompiled validator differs from the rootSchema provided for validation")}}return true}toErrorList(e,t=[]){return(0,a.toErrorList)(e,t)}rawValidation(e,t){this.ensureSameRootSchema(e,t);this.mainValidator(t);if(typeof this.localizer==="function"){this.localizer(this.mainValidator.errors)}const r=this.mainValidator.errors||undefined;this.mainValidator.errors=null;return{errors:r}}validateFormData(e,t,r,a,n){const o=this.rawValidation(t,e);return _(this,o,e,t,r,a,n)}isValid(e,t,r){this.ensureSameRootSchema(r,t);if(p()(e,a.ID_KEY)===a.JUNK_OPTION_ID){return false}const n=this.getValidator(e);return n(t)}}function w(e,t,r){return new g(e,t,r)}const E=z()},14018:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.formatNames=t.fastFormats=t.fullFormats=void 0;function r(e,t){return{validate:e,compare:t}}t.fullFormats={date:r(i,s),time:r(d,c),"date-time":r(l,m),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:S,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:$,int32:{type:"number",validate:b},int64:{type:"number",validate:g},float:{type:"number",validate:w},double:{type:"number",validate:w},password:true,binary:true};t.fastFormats={...t.fullFormats,date:r(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),time:r(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"date-time":r(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,m),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};t.formatNames=Object.keys(t.fullFormats);function a(e){return e%4===0&&(e%100!==0||e%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;const o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function i(e){const t=n.exec(e);if(!t)return false;const r=+t[1];const i=+t[2];const s=+t[3];return i>=1&&i<=12&&s>=1&&s<=(i===2&&a(r)?29:o[i])}function s(e,t){if(!(e&&t))return undefined;if(e>t)return 1;if(et)return 1;if(e=z}function g(e){return Number.isInteger(e)}function w(){return true}const E=/[^\\]\\Z/;function S(e){if(E.test(e))return false;try{new RegExp(e);return true}catch(t){return false}}},68182:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const a=r(14018);const n=r(26461);const o=r(99029);const i=new o.Name("fullFormats");const s=new o.Name("fastFormats");const f=(e,t={keywords:true})=>{if(Array.isArray(t)){d(e,t,a.fullFormats,i);return e}const[r,o]=t.mode==="fast"?[a.fastFormats,s]:[a.fullFormats,i];const f=t.formats||a.formatNames;d(e,f,r,o);if(t.keywords)n.default(e);return e};f.get=(e,t="full")=>{const r=t==="fast"?a.fastFormats:a.fullFormats;const n=r[e];if(!n)throw new Error(`Unknown format "${e}"`);return n};function d(e,t,r,a){var n;var i;(n=(i=e.opts.code).formats)!==null&&n!==void 0?n:i.formats=o._`require("ajv-formats/dist/formats").${a}`;for(const o of t)e.addFormat(o,r[o])}e.exports=t=f;Object.defineProperty(t,"__esModule",{value:true});t["default"]=f},26461:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.formatLimitDefinition=void 0;const a=r(63282);const n=r(99029);const o=n.operators;const i={formatMaximum:{okStr:"<=",ok:o.LTE,fail:o.GT},formatMinimum:{okStr:">=",ok:o.GTE,fail:o.LT},formatExclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},formatExclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}};const s={message:({keyword:e,schemaCode:t})=>n.str`should be ${i[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>n._`{comparison: ${i[e].okStr}, limit: ${t}}`};t.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:true,error:s,code(e){const{gen:t,data:r,schemaCode:o,keyword:s,it:f}=e;const{opts:d,self:c}=f;if(!d.validateFormats)return;const u=new a.KeywordCxt(f,c.RULES.all.format.definition,"format");if(u.$data)l();else m();function l(){const r=t.scopeValue("formats",{ref:c.formats,code:d.code.formats});const a=t.const("fmt",n._`${r}[${u.schemaCode}]`);e.fail$data(n.or(n._`typeof ${a} != "object"`,n._`${a} instanceof RegExp`,n._`typeof ${a}.compare != "function"`,h(a)))}function m(){const r=u.schema;const a=c.formats[r];if(!a||a===true)return;if(typeof a!="object"||a instanceof RegExp||typeof a.compare!="function"){throw new Error(`"${s}": format "${r}" does not define "compare" function`)}const o=t.scopeValue("formats",{key:r,ref:a,code:d.code.formats?n._`${d.code.formats}${n.getProperty(r)}`:undefined});e.fail$data(h(o))}function h(e){return n._`${e}.compare(${r}, ${o}) ${i[s].fail} 0`}},dependencies:["format"]};const f=e=>{e.addKeyword(t.formatLimitDefinition);return e};t["default"]=f},38859:(e,t,r)=>{var a=r(53661),n=r(31380),o=r(51459);function i(e){var t=-1,r=e==null?0:e.length;this.__data__=new a;while(++t{function t(e,t){var r=-1,a=e==null?0:e.length;while(++r{var a=r(87068),n=r(40346);function o(e,t,r,i,s){if(e===t){return true}if(e==null||t==null||!n(e)&&!n(t)){return e!==e&&t!==t}return a(e,t,r,i,o,s)}e.exports=o},87068:(e,t,r)=>{var a=r(37217),n=r(25911),o=r(21986),i=r(50689),s=r(5861),f=r(56449),d=r(3656),c=r(37167);var u=1;var l="[object Arguments]",m="[object Array]",h="[object Object]";var p=Object.prototype;var v=p.hasOwnProperty;function _(e,t,r,p,_,$){var z=f(e),y=f(t),b=z?m:s(e),g=y?m:s(t);b=b==l?h:b;g=g==l?h:g;var w=b==h,E=g==h,S=b==g;if(S&&d(e)){if(!d(t)){return false}z=true;w=false}if(S&&!w){$||($=new a);return z||c(e)?n(e,t,r,p,_,$):o(e,t,b,r,p,_,$)}if(!(r&u)){var j=w&&v.call(e,"__wrapped__"),k=E&&v.call(t,"__wrapped__");if(j||k){var x=j?e.value():e,F=k?t.value():t;$||($=new a);return _(x,F,r,p,$)}}if(!S){return false}$||($=new a);return i(e,t,r,p,_,$)}e.exports=_},19219:e=>{function t(e,t){return e.has(t)}e.exports=t},25911:(e,t,r)=>{var a=r(38859),n=r(14248),o=r(19219);var i=1,s=2;function f(e,t,r,f,d,c){var u=r&i,l=e.length,m=t.length;if(l!=m&&!(u&&m>l)){return false}var h=c.get(e);var p=c.get(t);if(h&&p){return h==t&&p==e}var v=-1,_=true,$=r&s?new a:undefined;c.set(e,t);c.set(t,e);while(++v{var a=r(51873),n=r(37828),o=r(75288),i=r(25911),s=r(20317),f=r(84247);var d=1,c=2;var u="[object Boolean]",l="[object Date]",m="[object Error]",h="[object Map]",p="[object Number]",v="[object RegExp]",_="[object Set]",$="[object String]",z="[object Symbol]";var y="[object ArrayBuffer]",b="[object DataView]";var g=a?a.prototype:undefined,w=g?g.valueOf:undefined;function E(e,t,r,a,g,E,S){switch(r){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset){return false}e=e.buffer;t=t.buffer;case y:if(e.byteLength!=t.byteLength||!E(new n(e),new n(t))){return false}return true;case u:case l:case p:return o(+e,+t);case m:return e.name==t.name&&e.message==t.message;case v:case $:return e==t+"";case h:var j=s;case _:var k=a&d;j||(j=f);if(e.size!=t.size&&!k){return false}var x=S.get(e);if(x){return x==t}a|=c;S.set(e,t);var F=i(j(e),j(t),a,g,E,S);S["delete"](e);return F;case z:if(w){return w.call(e)==w.call(t)}}return false}e.exports=E},50689:(e,t,r)=>{var a=r(50002);var n=1;var o=Object.prototype;var i=o.hasOwnProperty;function s(e,t,r,o,s,f){var d=r&n,c=a(e),u=c.length,l=a(t),m=l.length;if(u!=m&&!d){return false}var h=u;while(h--){var p=c[h];if(!(d?p in t:i.call(t,p))){return false}}var v=f.get(e);var _=f.get(t);if(v&&_){return v==t&&_==e}var $=true;f.set(e,t);f.set(t,e);var z=d;while(++h{function t(e){var t=-1,r=Array(e.size);e.forEach((function(e,a){r[++t]=[a,e]}));return r}e.exports=t},31380:e=>{var t="__lodash_hash_undefined__";function r(e){this.__data__.set(e,t);return this}e.exports=r},51459:e=>{function t(e){return this.__data__.has(e)}e.exports=t},84247:e=>{function t(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}e.exports=t},2404:(e,t,r)=>{var a=r(60270);function n(e,t){return a(e,t)}e.exports=n}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/6901.2bd8f506e162da3e721c.js b/share/jupyter/lab/static/6901.2bd8f506e162da3e721c.js new file mode 100644 index 0000000..fe80e48 --- /dev/null +++ b/share/jupyter/lab/static/6901.2bd8f506e162da3e721c.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6901],{46884:(t,e,s)=>{s.d(e,{A:()=>n});var i=s(70416);var r=s(1218);var n=(0,i.K2)(((t,e)=>{let s;if(e==="sandbox"){s=(0,r.Ltv)("#i"+t)}const i=e==="sandbox"?(0,r.Ltv)(s.nodes()[0].contentDocument.body):(0,r.Ltv)("body");const n=i.select(`[id="${t}"]`);return n}),"getDiagramElement")},76901:(t,e,s)=>{s.d(e,{Zk:()=>h,q7:()=>st,tM:()=>bt,u4:()=>mt});var i=s(46884);var r=s(47925);var n=s(78188);var a=s(29131);var o=s(42418);var l=s(70416);var c=function(){var t=(0,l.K2)((function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s}),"o"),e=[1,2],s=[1,3],i=[1,4],r=[2,4],n=[1,9],a=[1,11],o=[1,16],c=[1,17],h=[1,18],d=[1,19],u=[1,33],p=[1,20],f=[1,21],y=[1,22],g=[1,23],m=[1,24],S=[1,26],b=[1,27],k=[1,28],_=[1,29],T=[1,30],v=[1,31],E=[1,32],D=[1,35],x=[1,36],C=[1,37],$=[1,38],L=[1,34],A=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],I=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],R=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57];var w={trace:(0,l.K2)((function t(){}),"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"--\x3e":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"--\x3e",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:(0,l.K2)((function t(e,s,i,r,n,a,o){var l=a.length-1;switch(n){case 3:r.setRootDoc(a[l]);return a[l];break;case 4:this.$=[];break;case 5:if(a[l]!="nl"){a[l-1].push(a[l]);this.$=a[l-1]}break;case 6:case 7:this.$=a[l];break;case 8:this.$="nl";break;case 12:this.$=a[l];break;case 13:const t=a[l-1];t.description=r.trimColon(a[l]);this.$=t;break;case 14:this.$={stmt:"relation",state1:a[l-2],state2:a[l]};break;case 15:const e=r.trimColon(a[l]);this.$={stmt:"relation",state1:a[l-3],state2:a[l-1],description:e};break;case 19:this.$={stmt:"state",id:a[l-3],type:"default",description:"",doc:a[l-1]};break;case 20:var c=a[l];var h=a[l-2].trim();if(a[l].match(":")){var d=a[l].split(":");c=d[0];h=[h,d[1]]}this.$={stmt:"state",id:c,type:"default",description:h};break;case 21:this.$={stmt:"state",id:a[l-3],type:"default",description:a[l-5],doc:a[l-1]};break;case 22:this.$={stmt:"state",id:a[l],type:"fork"};break;case 23:this.$={stmt:"state",id:a[l],type:"join"};break;case 24:this.$={stmt:"state",id:a[l],type:"choice"};break;case 25:this.$={stmt:"state",id:r.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:a[l-1].trim(),note:{position:a[l-2].trim(),text:a[l].trim()}};break;case 29:this.$=a[l].trim();r.setAccTitle(this.$);break;case 30:case 31:this.$=a[l].trim();r.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:a[l-3],url:a[l-2],tooltip:a[l-1]};break;case 33:this.$={stmt:"click",id:a[l-3],url:a[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:a[l-1].trim(),classes:a[l].trim()};break;case 36:this.$={stmt:"style",id:a[l-1].trim(),styleClass:a[l].trim()};break;case 37:this.$={stmt:"applyClass",id:a[l-1].trim(),styleClass:a[l].trim()};break;case 38:r.setDirection("TB");this.$={stmt:"dir",value:"TB"};break;case 39:r.setDirection("BT");this.$={stmt:"dir",value:"BT"};break;case 40:r.setDirection("RL");this.$={stmt:"dir",value:"RL"};break;case 41:r.setDirection("LR");this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:a[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:a[l-2].trim(),classes:[a[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:a[l-2].trim(),classes:[a[l].trim()],type:"default",description:""};break}}),"anonymous"),table:[{3:1,4:e,5:s,6:i},{1:[3]},{3:5,4:e,5:s,6:i},{3:6,4:e,5:s,6:i},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:n,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:o,17:c,19:h,22:d,24:u,25:p,26:f,27:y,28:g,29:m,32:25,33:S,35:b,37:k,38:_,41:T,45:v,48:E,51:D,52:x,53:C,54:$,57:L},t(A,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:o,17:c,19:h,22:d,24:u,25:p,26:f,27:y,28:g,29:m,32:25,33:S,35:b,37:k,38:_,41:T,45:v,48:E,51:D,52:x,53:C,54:$,57:L},t(A,[2,7]),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(A,[2,11]),t(A,[2,12],{14:[1,40],15:[1,41]}),t(A,[2,16]),{18:[1,42]},t(A,[2,18],{20:[1,43]}),{23:[1,44]},t(A,[2,22]),t(A,[2,23]),t(A,[2,24]),t(A,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(A,[2,28]),{34:[1,49]},{36:[1,50]},t(A,[2,31]),{13:51,24:u,57:L},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(I,[2,44],{58:[1,56]}),t(I,[2,45],{58:[1,57]}),t(A,[2,38]),t(A,[2,39]),t(A,[2,40]),t(A,[2,41]),t(A,[2,6]),t(A,[2,13]),{13:58,24:u,57:L},t(A,[2,17]),t(R,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(A,[2,29]),t(A,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(A,[2,14],{14:[1,71]}),{4:n,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:o,17:c,19:h,21:[1,72],22:d,24:u,25:p,26:f,27:y,28:g,29:m,32:25,33:S,35:b,37:k,38:_,41:T,45:v,48:E,51:D,52:x,53:C,54:$,57:L},t(A,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(A,[2,34]),t(A,[2,35]),t(A,[2,36]),t(A,[2,37]),t(I,[2,46]),t(I,[2,47]),t(A,[2,15]),t(A,[2,19]),t(R,r,{7:78}),t(A,[2,26]),t(A,[2,27]),{5:[1,79]},{5:[1,80]},{4:n,5:a,8:8,9:10,10:12,11:13,12:14,13:15,16:o,17:c,19:h,21:[1,81],22:d,24:u,25:p,26:f,27:y,28:g,29:m,32:25,33:S,35:b,37:k,38:_,41:T,45:v,48:E,51:D,52:x,53:C,54:$,57:L},t(A,[2,32]),t(A,[2,33]),t(A,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:(0,l.K2)((function t(e,s){if(s.recoverable){this.trace(e)}else{var i=new Error(e);i.hash=s;throw i}}),"parseError"),parse:(0,l.K2)((function t(e){var s=this,i=[0],r=[],n=[null],a=[],o=this.table,c="",h=0,d=0,u=0,p=2,f=1;var y=a.slice.call(arguments,1);var g=Object.create(this.lexer);var m={yy:{}};for(var S in this.yy){if(Object.prototype.hasOwnProperty.call(this.yy,S)){m.yy[S]=this.yy[S]}}g.setInput(e,m.yy);m.yy.lexer=g;m.yy.parser=this;if(typeof g.yylloc=="undefined"){g.yylloc={}}var b=g.yylloc;a.push(b);var k=g.options&&g.options.ranges;if(typeof m.yy.parseError==="function"){this.parseError=m.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function _(t){i.length=i.length-2*t;n.length=n.length-t;a.length=a.length-t}(0,l.K2)(_,"popStack");function T(){var t;t=r.pop()||g.lex()||f;if(typeof t!=="number"){if(t instanceof Array){r=t;t=r.pop()}t=s.symbols_[t]||t}return t}(0,l.K2)(T,"lex");var v,E,D,x,C,$,L={},A,I,R,w;while(true){D=i[i.length-1];if(this.defaultActions[D]){x=this.defaultActions[D]}else{if(v===null||typeof v=="undefined"){v=T()}x=o[D]&&o[D][v]}if(typeof x==="undefined"||!x.length||!x[0]){var O="";w=[];for(A in o[D]){if(this.terminals_[A]&&A>p){w.push("'"+this.terminals_[A]+"'")}}if(g.showPosition){O="Parse error on line "+(h+1)+":\n"+g.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[v]||v)+"'"}else{O="Parse error on line "+(h+1)+": Unexpected "+(v==f?"end of input":"'"+(this.terminals_[v]||v)+"'")}this.parseError(O,{text:g.match,token:this.terminals_[v]||v,line:g.yylineno,loc:b,expected:w})}if(x[0]instanceof Array&&x.length>1){throw new Error("Parse Error: multiple actions possible at state: "+D+", token: "+v)}switch(x[0]){case 1:i.push(v);n.push(g.yytext);a.push(g.yylloc);i.push(x[1]);v=null;if(!E){d=g.yyleng;c=g.yytext;h=g.yylineno;b=g.yylloc;if(u>0){u--}}else{v=E;E=null}break;case 2:I=this.productions_[x[1]][1];L.$=n[n.length-I];L._$={first_line:a[a.length-(I||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(I||1)].first_column,last_column:a[a.length-1].last_column};if(k){L._$.range=[a[a.length-(I||1)].range[0],a[a.length-1].range[1]]}$=this.performAction.apply(L,[c,d,h,m.yy,x[1],n,a].concat(y));if(typeof $!=="undefined"){return $}if(I){i=i.slice(0,-1*I*2);n=n.slice(0,-1*I);a=a.slice(0,-1*I)}i.push(this.productions_[x[1]][0]);n.push(L.$);a.push(L._$);R=o[i[i.length-2]][i[i.length-1]];i.push(R);break;case 3:return true}}return true}),"parse")};var O=function(){var t={EOF:1,parseError:(0,l.K2)((function t(e,s){if(this.yy.parser){this.yy.parser.parseError(e,s)}else{throw new Error(e)}}),"parseError"),setInput:(0,l.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,l.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,l.K2)((function(t){var e=t.length;var s=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(s.length-1){this.yylineno-=s.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:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[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,l.K2)((function(){this._more=true;return this}),"more"),reject:(0,l.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,l.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,l.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,l.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,l.K2)((function(){var t=this.pastInput();var e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,l.K2)((function(t,e){var s,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];s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input){this.done=false}if(s){return s}else if(this._backtrack){for(var n in r){this[n]=r[n]}return false}return false}),"test_match"),next:(0,l.K2)((function(){if(this.done){return this.EOF}if(!this._input){this.done=true}var t,e,s,i;if(!this._more){this.yytext="";this.match=""}var r=this._currentRules();for(var n=0;ne[0].length)){e=s;i=n;if(this.options.backtrack_lexer){t=this.test_match(s,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[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,l.K2)((function t(){var e=this.next();if(e){return e}else{return this.lex()}}),"lex"),begin:(0,l.K2)((function t(e){this.conditionStack.push(e)}),"begin"),popState:(0,l.K2)((function t(){var e=this.conditionStack.length-1;if(e>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}}),"popState"),_currentRules:(0,l.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,l.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,l.K2)((function t(e){this.begin(e)}),"pushState"),stateStackSize:(0,l.K2)((function t(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":true},performAction:(0,l.K2)((function t(e,s,i,r){var n=r;switch(i){case 0:return 38;break;case 1:return 40;break;case 2:return 39;break;case 3:return 44;break;case 4:return 51;break;case 5:return 52;break;case 6:return 53;break;case 7:return 54;break;case 8:break;case 9:{}break;case 10:return 5;break;case 11:break;case 12:break;case 13:break;case 14:break;case 15:this.pushState("SCALE");return 17;break;case 16:return 18;break;case 17:this.popState();break;case 18:this.begin("acc_title");return 33;break;case 19:this.popState();return"acc_title_value";break;case 20:this.begin("acc_descr");return 35;break;case 21:this.popState();return"acc_descr_value";break;case 22:this.begin("acc_descr_multiline");break;case 23:this.popState();break;case 24:return"acc_descr_multiline_value";break;case 25:this.pushState("CLASSDEF");return 41;break;case 26:this.popState();this.pushState("CLASSDEFID");return"DEFAULT_CLASSDEF_ID";break;case 27:this.popState();this.pushState("CLASSDEFID");return 42;break;case 28:this.popState();return 43;break;case 29:this.pushState("CLASS");return 48;break;case 30:this.popState();this.pushState("CLASS_STYLE");return 49;break;case 31:this.popState();return 50;break;case 32:this.pushState("STYLE");return 45;break;case 33:this.popState();this.pushState("STYLEDEF_STYLES");return 46;break;case 34:this.popState();return 47;break;case 35:this.pushState("SCALE");return 17;break;case 36:return 18;break;case 37:this.popState();break;case 38:this.pushState("STATE");break;case 39:this.popState();s.yytext=s.yytext.slice(0,-8).trim();return 25;break;case 40:this.popState();s.yytext=s.yytext.slice(0,-8).trim();return 26;break;case 41:this.popState();s.yytext=s.yytext.slice(0,-10).trim();return 27;break;case 42:this.popState();s.yytext=s.yytext.slice(0,-8).trim();return 25;break;case 43:this.popState();s.yytext=s.yytext.slice(0,-8).trim();return 26;break;case 44:this.popState();s.yytext=s.yytext.slice(0,-10).trim();return 27;break;case 45:return 51;break;case 46:return 52;break;case 47:return 53;break;case 48:return 54;break;case 49:this.pushState("STATE_STRING");break;case 50:this.pushState("STATE_ID");return"AS";break;case 51:this.popState();return"ID";break;case 52:this.popState();break;case 53:return"STATE_DESCR";break;case 54:return 19;break;case 55:this.popState();break;case 56:this.popState();this.pushState("struct");return 20;break;case 57:break;case 58:this.popState();return 21;break;case 59:break;case 60:this.begin("NOTE");return 29;break;case 61:this.popState();this.pushState("NOTE_ID");return 59;break;case 62:this.popState();this.pushState("NOTE_ID");return 60;break;case 63:this.popState();this.pushState("FLOATING_NOTE");break;case 64:this.popState();this.pushState("FLOATING_NOTE_ID");return"AS";break;case 65:break;case 66:return"NOTE_TEXT";break;case 67:this.popState();return"ID";break;case 68:this.popState();this.pushState("NOTE_TEXT");return 24;break;case 69:this.popState();s.yytext=s.yytext.substr(2).trim();return 31;break;case 70:this.popState();s.yytext=s.yytext.slice(0,-8).trim();return 31;break;case 71:return 6;break;case 72:return 6;break;case 73:return 16;break;case 74:return 57;break;case 75:return 24;break;case 76:s.yytext=s.yytext.trim();return 14;break;case 77:return 15;break;case 78:return 28;break;case 79:return 58;break;case 80:return 5;break;case 81:return"INVALID";break}}),"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[12,13],inclusive:false},struct:{rules:[12,13,25,29,32,38,45,46,47,48,57,58,59,60,74,75,76,77,78],inclusive:false},FLOATING_NOTE_ID:{rules:[67],inclusive:false},FLOATING_NOTE:{rules:[64,65,66],inclusive:false},NOTE_TEXT:{rules:[69,70],inclusive:false},NOTE_ID:{rules:[68],inclusive:false},NOTE:{rules:[61,62,63],inclusive:false},STYLEDEF_STYLEOPTS:{rules:[],inclusive:false},STYLEDEF_STYLES:{rules:[34],inclusive:false},STYLE_IDS:{rules:[],inclusive:false},STYLE:{rules:[33],inclusive:false},CLASS_STYLE:{rules:[31],inclusive:false},CLASS:{rules:[30],inclusive:false},CLASSDEFID:{rules:[28],inclusive:false},CLASSDEF:{rules:[26,27],inclusive:false},acc_descr_multiline:{rules:[23,24],inclusive:false},acc_descr:{rules:[21],inclusive:false},acc_title:{rules:[19],inclusive:false},SCALE:{rules:[16,17,36,37],inclusive:false},ALIAS:{rules:[],inclusive:false},STATE_ID:{rules:[51],inclusive:false},STATE_STRING:{rules:[52,53],inclusive:false},FORK_STATE:{rules:[],inclusive:false},STATE:{rules:[12,13,39,40,41,42,43,44,49,50,54,55,56],inclusive:false},ID:{rules:[12,13],inclusive:false},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,13,14,15,18,20,22,25,29,32,35,38,56,60,71,72,73,74,75,76,77,79,80,81],inclusive:true}}};return t}();w.lexer=O;function N(){this.yy={}}(0,l.K2)(N,"Parser");N.prototype=w;w.Parser=N;return new N}();c.parser=c;var h=c;var d="TB";var u="TB";var p="dir";var f="state";var y="root";var g="relation";var m="classDef";var S="style";var b="applyClass";var k="default";var _="divider";var T="fill:none";var v="fill: #333";var E="c";var D="text";var x="normal";var C="rect";var $="rectWithTitle";var L="stateStart";var A="stateEnd";var I="divider";var R="roundedWithTitle";var w="note";var O="noteGroup";var N="statediagram";var K="state";var B=`${N}-${K}`;var Y="transition";var F="note";var P="note-edge";var G=`${Y} ${P}`;var j=`${N}-${F}`;var W="cluster";var z=`${N}-${W}`;var M="cluster-alt";var U=`${N}-${M}`;var V="parent";var X="note";var H="state";var J="----";var q=`${J}${X}`;var Z=`${J}${V}`;var Q=(0,l.K2)(((t,e=u)=>{if(!t.doc){return e}let s=e;for(const i of t.doc){if(i.stmt==="dir"){s=i.value}}return s}),"getDir");var tt=(0,l.K2)((function(t,e){return e.db.getClasses()}),"getClasses");var et=(0,l.K2)((async function(t,e,s,c){l.Rm.info("REF0:");l.Rm.info("Drawing state diagram (v2)",e);const{securityLevel:h,state:d,layout:u}=(0,o.D7)();c.db.extract(c.db.getRootDocV2());const p=c.db.getData();const f=(0,i.A)(e,h);p.type=c.type;p.layoutAlgorithm=u;p.nodeSpacing=d?.nodeSpacing||50;p.rankSpacing=d?.rankSpacing||50;p.markers=["barb"];p.diagramId=e;await(0,n.XX)(p,f);const y=8;try{const t=typeof c.db.getLinks==="function"?c.db.getLinks():new Map;t.forEach(((t,e)=>{const s=typeof e==="string"?e:typeof e?.id==="string"?e.id:"";if(!s){l.Rm.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(e));return}const i=f.node()?.querySelectorAll("g");let r;i?.forEach((t=>{const e=t.textContent?.trim();if(e===s){r=t}}));if(!r){l.Rm.warn("⚠️ Could not find node matching text:",s);return}const n=r.parentNode;if(!n){l.Rm.warn("⚠️ Node has no parent, cannot wrap:",s);return}const a=document.createElementNS("http://www.w3.org/2000/svg","a");const o=t.url.replace(/^"+|"+$/g,"");a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);a.setAttribute("target","_blank");if(t.tooltip){const e=t.tooltip.replace(/^"+|"+$/g,"");a.setAttribute("title",e)}n.replaceChild(a,r);a.appendChild(r);l.Rm.info("🔗 Wrapped node in
    tag for:",s,t.url)}))}catch(g){l.Rm.error("❌ Error injecting clickable links:",g)}a._K.insertTitle(f,"statediagramTitleText",d?.titleTopMargin??25,c.db.getDiagramTitle());(0,r.P)(f,y,N,d?.useMaxWidth??true)}),"draw");var st={getClasses:tt,draw:et,getDir:Q};var it=new Map;var rt=0;function nt(t="",e=0,s="",i=J){const r=s!==null&&s.length>0?`${i}${s}`:"";return`${H}-${t}${r}-${e}`}(0,l.K2)(nt,"stateDomId");var at=(0,l.K2)(((t,e,s,i,r,n,a,c)=>{l.Rm.trace("items",e);e.forEach((e=>{switch(e.stmt){case f:dt(t,e,s,i,r,n,a,c);break;case k:dt(t,e,s,i,r,n,a,c);break;case g:{dt(t,e.state1,s,i,r,n,a,c);dt(t,e.state2,s,i,r,n,a,c);const l={id:"edge"+rt,start:e.state1.id,end:e.state2.id,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:T,labelStyle:"",label:o.Y2.sanitizeText(e.description??"",(0,o.D7)()),arrowheadStyle:v,labelpos:E,labelType:D,thickness:x,classes:Y,look:a};r.push(l);rt++}break}}))}),"setupDoc");var ot=(0,l.K2)(((t,e=u)=>{let s=e;if(t.doc){for(const e of t.doc){if(e.stmt==="dir"){s=e.value}}}return s}),"getDir");function lt(t,e,s){if(!e.id||e.id===""||e.id===""){return}if(e.cssClasses){if(!Array.isArray(e.cssCompiledStyles)){e.cssCompiledStyles=[]}e.cssClasses.split(" ").forEach((t=>{const i=s.get(t);if(i){e.cssCompiledStyles=[...e.cssCompiledStyles??[],...i.styles]}}))}const i=t.find((t=>t.id===e.id));if(i){Object.assign(i,e)}else{t.push(e)}}(0,l.K2)(lt,"insertOrUpdateNode");function ct(t){return t?.classes?.join(" ")??""}(0,l.K2)(ct,"getClassesFromDbInfo");function ht(t){return t?.styles??[]}(0,l.K2)(ht,"getStylesFromDbInfo");var dt=(0,l.K2)(((t,e,s,i,r,n,a,c)=>{const h=e.id;const d=s.get(h);const u=ct(d);const p=ht(d);const f=(0,o.D7)();l.Rm.info("dataFetcher parsedItem",e,d,p);if(h!=="root"){let s=C;if(e.start===true){s=L}else if(e.start===false){s=A}if(e.type!==k){s=e.type}if(!it.get(h)){it.set(h,{id:h,shape:s,description:o.Y2.sanitizeText(h,f),cssClasses:`${u} ${B}`,cssStyles:p})}const d=it.get(h);if(e.description){if(Array.isArray(d.description)){d.shape=$;d.description.push(e.description)}else{if(d.description?.length&&d.description.length>0){d.shape=$;if(d.description===h){d.description=[e.description]}else{d.description=[d.description,e.description]}}else{d.shape=C;d.description=e.description}}d.description=o.Y2.sanitizeTextOrArray(d.description,f)}if(d.description?.length===1&&d.shape===$){if(d.type==="group"){d.shape=R}else{d.shape=C}}if(!d.type&&e.doc){l.Rm.info("Setting cluster for XCX",h,ot(e));d.type="group";d.isGroup=true;d.dir=ot(e);d.shape=e.type===_?I:R;d.cssClasses=`${d.cssClasses} ${z} ${n?U:""}`}const y={labelStyle:"",shape:d.shape,label:d.description,cssClasses:d.cssClasses,cssCompiledStyles:[],cssStyles:d.cssStyles,id:h,dir:d.dir,domId:nt(h,rt),type:d.type,isGroup:d.type==="group",padding:8,rx:10,ry:10,look:a};if(y.shape===I){y.label=""}if(t&&t.id!=="root"){l.Rm.trace("Setting node ",h," to be child of its parent ",t.id);y.parentId=t.id}y.centerLabel=true;if(e.note){const t={labelStyle:"",shape:w,label:e.note.text,cssClasses:j,cssStyles:[],cssCompiledStyles:[],id:h+q+"-"+rt,domId:nt(h,rt,X),type:d.type,isGroup:d.type==="group",padding:f.flowchart?.padding,look:a,position:e.note.position};const s=h+Z;const n={labelStyle:"",shape:O,label:e.note.text,cssClasses:d.cssClasses,cssStyles:[],id:h+Z,domId:nt(h,rt,V),type:"group",isGroup:true,padding:16,look:a,position:e.note.position};rt++;n.id=s;t.parentId=s;lt(i,n,c);lt(i,t,c);lt(i,y,c);let o=h;let l=t.id;if(e.note.position==="left of"){o=t.id;l=h}r.push({id:o+"-"+l,start:o,end:l,arrowhead:"none",arrowTypeEnd:"",style:T,labelStyle:"",classes:G,arrowheadStyle:v,labelpos:E,labelType:D,thickness:x,look:a})}else{lt(i,y,c)}}if(e.doc){l.Rm.trace("Adding nodes children ");at(e,e.doc,s,i,r,!n,a,c)}}),"dataFetcher");var ut=(0,l.K2)((()=>{it.clear();rt=0}),"reset");var pt={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","};var ft=(0,l.K2)((()=>new Map),"newClassesList");var yt=(0,l.K2)((()=>({relations:[],states:new Map,documents:{}})),"newDoc");var gt=(0,l.K2)((t=>JSON.parse(JSON.stringify(t))),"clone");var mt=class{constructor(t){this.version=t;this.nodes=[];this.edges=[];this.rootDoc=[];this.classes=ft();this.documents={root:yt()};this.currentDocument=this.documents.root;this.startEndCount=0;this.dividerCnt=0;this.links=new Map;this.getAccTitle=o.iN;this.setAccTitle=o.SV;this.getAccDescription=o.m7;this.setAccDescription=o.EI;this.setDiagramTitle=o.ke;this.getDiagramTitle=o.ab;this.clear();this.setRootDoc=this.setRootDoc.bind(this);this.getDividerId=this.getDividerId.bind(this);this.setDirection=this.setDirection.bind(this);this.trimColon=this.trimColon.bind(this)}static{(0,l.K2)(this,"StateDB")}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(t){this.clear(true);for(const i of Array.isArray(t)?t:t.doc){switch(i.stmt){case f:this.addState(i.id.trim(),i.type,i.doc,i.description,i.note);break;case g:this.addRelation(i.state1,i.state2,i.description);break;case m:this.addStyleClass(i.id.trim(),i.classes);break;case S:this.handleStyleDef(i);break;case b:this.setCssClass(i.id.trim(),i.styleClass);break;case"click":this.addLink(i.id,i.url,i.tooltip);break}}const e=this.getStates();const s=(0,o.D7)();ut();dt(void 0,this.getRootDocV2(),e,this.nodes,this.edges,true,s.look,this.classes);for(const i of this.nodes){if(!Array.isArray(i.label)){continue}i.description=i.label.slice(1);if(i.isGroup&&i.description.length>0){throw new Error(`Group nodes can only have label. Remove the additional description for node [${i.id}]`)}i.label=i.label[0]}}handleStyleDef(t){const e=t.id.trim().split(",");const s=t.styleClass.split(",");for(const i of e){let t=this.getState(i);if(!t){const e=i.trim();this.addState(e);t=this.getState(e)}if(t){t.styles=s.map((t=>t.replace(/;/g,"")?.trim()))}}}setRootDoc(t){l.Rm.info("Setting root doc",t);this.rootDoc=t;if(this.version===1){this.extract(t)}else{this.extract(this.getRootDocV2())}}docTranslator(t,e,s){if(e.stmt===g){this.docTranslator(t,e.state1,true);this.docTranslator(t,e.state2,false);return}if(e.stmt===f){if(e.id===pt.START_NODE){e.id=t.id+(s?"_start":"_end");e.start=s}else{e.id=e.id.trim()}}if(e.stmt!==y&&e.stmt!==f||!e.doc){return}const i=[];let r=[];for(const n of e.doc){if(n.type===_){const t=gt(n);t.doc=gt(r);i.push(t);r=[]}else{r.push(n)}}if(i.length>0&&r.length>0){const t={stmt:f,id:(0,a.$C)(),type:"divider",doc:gt(r)};i.push(gt(t));e.doc=i}e.doc.forEach((t=>this.docTranslator(e,t,true)))}getRootDocV2(){this.docTranslator({id:y,stmt:y},{id:y,stmt:y,doc:this.rootDoc},true);return{id:y,doc:this.rootDoc}}addState(t,e=k,s=void 0,i=void 0,r=void 0,n=void 0,a=void 0,c=void 0){const h=t?.trim();if(!this.currentDocument.states.has(h)){l.Rm.info("Adding state ",h,i);this.currentDocument.states.set(h,{stmt:f,id:h,descriptions:[],type:e,doc:s,note:r,classes:[],styles:[],textStyles:[]})}else{const t=this.currentDocument.states.get(h);if(!t){throw new Error(`State not found: ${h}`)}if(!t.doc){t.doc=s}if(!t.type){t.type=e}}if(i){l.Rm.info("Setting state description",h,i);const t=Array.isArray(i)?i:[i];t.forEach((t=>this.addDescription(h,t.trim())))}if(r){const t=this.currentDocument.states.get(h);if(!t){throw new Error(`State not found: ${h}`)}t.note=r;t.note.text=o.Y2.sanitizeText(t.note.text,(0,o.D7)())}if(n){l.Rm.info("Setting state classes",h,n);const t=Array.isArray(n)?n:[n];t.forEach((t=>this.setCssClass(h,t.trim())))}if(a){l.Rm.info("Setting state styles",h,a);const t=Array.isArray(a)?a:[a];t.forEach((t=>this.setStyle(h,t.trim())))}if(c){l.Rm.info("Setting state styles",h,a);const t=Array.isArray(c)?c:[c];t.forEach((t=>this.setTextStyle(h,t.trim())))}}clear(t){this.nodes=[];this.edges=[];this.documents={root:yt()};this.currentDocument=this.documents.root;this.startEndCount=0;this.classes=ft();if(!t){this.links=new Map;(0,o.IU)()}}getState(t){return this.currentDocument.states.get(t)}getStates(){return this.currentDocument.states}logDocuments(){l.Rm.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(t,e,s){this.links.set(t,{url:e,tooltip:s});l.Rm.warn("Adding link",t,e,s)}getLinks(){return this.links}startIdIfNeeded(t=""){if(t===pt.START_NODE){this.startEndCount++;return`${pt.START_TYPE}${this.startEndCount}`}return t}startTypeIfNeeded(t="",e=k){return t===pt.START_NODE?pt.START_TYPE:e}endIdIfNeeded(t=""){if(t===pt.END_NODE){this.startEndCount++;return`${pt.END_TYPE}${this.startEndCount}`}return t}endTypeIfNeeded(t="",e=k){return t===pt.END_NODE?pt.END_TYPE:e}addRelationObjs(t,e,s=""){const i=this.startIdIfNeeded(t.id.trim());const r=this.startTypeIfNeeded(t.id.trim(),t.type);const n=this.startIdIfNeeded(e.id.trim());const a=this.startTypeIfNeeded(e.id.trim(),e.type);this.addState(i,r,t.doc,t.description,t.note,t.classes,t.styles,t.textStyles);this.addState(n,a,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles);this.currentDocument.relations.push({id1:i,id2:n,relationTitle:o.Y2.sanitizeText(s,(0,o.D7)())})}addRelation(t,e,s){if(typeof t==="object"&&typeof e==="object"){this.addRelationObjs(t,e,s)}else if(typeof t==="string"&&typeof e==="string"){const i=this.startIdIfNeeded(t.trim());const r=this.startTypeIfNeeded(t);const n=this.endIdIfNeeded(e.trim());const a=this.endTypeIfNeeded(e);this.addState(i,r);this.addState(n,a);this.currentDocument.relations.push({id1:i,id2:n,relationTitle:s?o.Y2.sanitizeText(s,(0,o.D7)()):void 0})}}addDescription(t,e){const s=this.currentDocument.states.get(t);const i=e.startsWith(":")?e.replace(":","").trim():e;s?.descriptions?.push(o.Y2.sanitizeText(i,(0,o.D7)()))}cleanupLabel(t){return t.startsWith(":")?t.slice(2).trim():t.trim()}getDividerId(){this.dividerCnt++;return`divider-id-${this.dividerCnt}`}addStyleClass(t,e=""){if(!this.classes.has(t)){this.classes.set(t,{id:t,styles:[],textStyles:[]})}const s=this.classes.get(t);if(e&&s){e.split(pt.STYLECLASS_SEP).forEach((t=>{const e=t.replace(/([^;]*);/,"$1").trim();if(RegExp(pt.COLOR_KEYWORD).exec(t)){const t=e.replace(pt.FILL_KEYWORD,pt.BG_FILL);const i=t.replace(pt.COLOR_KEYWORD,pt.FILL_KEYWORD);s.textStyles.push(i)}s.styles.push(e)}))}}getClasses(){return this.classes}setCssClass(t,e){t.split(",").forEach((t=>{let s=this.getState(t);if(!s){const e=t.trim();this.addState(e);s=this.getState(e)}s?.classes?.push(e)}))}setStyle(t,e){this.getState(t)?.styles?.push(e)}setTextStyle(t,e){this.getState(t)?.textStyles?.push(e)}getDirectionStatement(){return this.rootDoc.find((t=>t.stmt===p))}getDirection(){return this.getDirectionStatement()?.value??d}setDirection(t){const e=this.getDirectionStatement();if(e){e.value=t}else{this.rootDoc.unshift({stmt:p,value:t})}}trimColon(t){return t.startsWith(":")?t.slice(1).trim():t.trim()}getData(){const t=(0,o.D7)();return{nodes:this.nodes,edges:this.edges,other:{},config:t,direction:Q(this.getRootDocV2())}}getConfig(){return(0,o.D7)().state}};var St=(0,l.K2)((t=>`\ndefs #statediagram-barbEnd {\n fill: ${t.transitionColor};\n stroke: ${t.transitionColor};\n }\ng.stateGroup text {\n fill: ${t.nodeBorder};\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ${t.textColor};\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ${t.stateLabelColor};\n}\n\ng.stateGroup rect {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n}\n\ng.stateGroup line {\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.transition {\n stroke: ${t.transitionColor};\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ${t.background};\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ${t.noteBorderColor};\n fill: ${t.noteBkgColor};\n\n text {\n fill: ${t.noteTextColor};\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${t.mainBkg};\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ${t.labelBackgroundColor};\n opacity: 0.5;\n}\n.edgeLabel {\n background-color: ${t.edgeLabelBackground};\n p {\n background-color: ${t.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n}\n.edgeLabel .label text {\n fill: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n.label div .edgeLabel {\n color: ${t.transitionLabelColor||t.tertiaryTextColor};\n}\n\n.stateLabel text {\n fill: ${t.stateLabelColor};\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node .fork-join {\n fill: ${t.specialStateColor};\n stroke: ${t.specialStateColor};\n}\n\n.node circle.state-end {\n fill: ${t.innerEndBackground};\n stroke: ${t.background};\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ${t.compositeBackground||t.background};\n // stroke: ${t.background};\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ${t.stateBkg||t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n.node polygon {\n fill: ${t.mainBkg};\n stroke: ${t.stateBorder||t.nodeBorder};;\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ${t.lineColor};\n}\n\n.statediagram-cluster rect {\n fill: ${t.compositeTitleBackground};\n stroke: ${t.stateBorder||t.nodeBorder};\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ${t.stateLabelColor};\n // line-height: 1;\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ${t.stateBorder||t.nodeBorder};\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ${t.compositeBackground||t.background};\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ${t.altBackground?t.altBackground:"#efefef"};\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ${t.noteBkgColor};\n stroke: ${t.noteBorderColor};\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ${t.noteTextColor};\n}\n\n.statediagram-note .nodeLabel {\n color: ${t.noteTextColor};\n}\n.statediagram .edgeLabel {\n color: red; // ${t.noteTextColor};\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ${t.lineColor};\n stroke: ${t.lineColor};\n stroke-width: 1;\n}\n\n.statediagramTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n}\n`),"getStyles");var bt=St},47925:(t,e,s)=>{s.d(e,{P:()=>n});var i=s(42418);var r=s(70416);var n=(0,r.K2)(((t,e,s,n)=>{t.attr("class",s);const{width:l,height:c,x:h,y:d}=a(t,e);(0,i.a$)(t,c,l,n);const u=o(h,d,l,c,e);t.attr("viewBox",u);r.Rm.debug(`viewBox configured: ${u} with padding: ${e}`)}),"setupViewPortForSVG");var a=(0,r.K2)(((t,e)=>{const s=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:s.width+e*2,height:s.height+e*2,x:s.x,y:s.y}}),"calculateDimensionsWithPadding");var o=(0,r.K2)(((t,e,s,i,r)=>`${t-r} ${e-r} ${s} ${i}`),"createViewBox")}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/6941.465bebbd3d8a024f5f15.js b/share/jupyter/lab/static/6941.465bebbd3d8a024f5f15.js new file mode 100644 index 0000000..85ba2f8 --- /dev/null +++ b/share/jupyter/lab/static/6941.465bebbd3d8a024f5f15.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6941],{46941:(t,E,e)=>{e.r(E);e.d(E,{forth:()=>O});function r(t){var E=[];t.split(" ").forEach((function(t){E.push({name:t})}));return E}var n=r("INVERT AND OR XOR 2* 2/ LSHIFT RSHIFT 0= = 0< < > U< MIN MAX 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP >R R> R@ + - 1+ 1- ABS NEGATE S>D * M* UM* FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2! ALIGN ALIGNED +! ALLOT CHAR [CHAR] [ ] BL FIND EXECUTE IMMEDIATE COUNT LITERAL STATE ; DOES> >BODY EVALUATE SOURCE >IN <# # #S #> HOLD SIGN BASE >NUMBER HEX DECIMAL FILL MOVE . CR EMIT SPACE SPACES TYPE U. .R U.R ACCEPT TRUE FALSE <> U> 0<> 0> NIP TUCK ROLL PICK 2>R 2R@ 2R> WITHIN UNUSED MARKER I J TO COMPILE, [COMPILE] SAVE-INPUT RESTORE-INPUT PAD ERASE 2LITERAL DNEGATE D- D+ D0< D0= D2* D2/ D< D= DMAX DMIN D>S DABS M+ M*/ D. D.R 2ROT DU< CATCH THROW FREE RESIZE ALLOCATE CS-PICK CS-ROLL GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE> BLANK SLITERAL");var i=r("IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE");function R(t,E){var e;for(e=t.length-1;e>=0;e--){if(t[e].name===E.toUpperCase()){return t[e]}}return undefined}const O={name:"forth",startState:function(){return{state:"",base:10,coreWordList:n,immediateWordList:i,wordList:[]}},token:function(t,E){var e;if(t.eatSpace()){return null}if(E.state===""){if(t.match(/^(\]|:NONAME)(\s|$)/i)){E.state=" compilation";return"builtin"}e=t.match(/^(\:)\s+(\S+)(\s|$)+/);if(e){E.wordList.push({name:e[2].toUpperCase()});E.state=" compilation";return"def"}e=t.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i);if(e){E.wordList.push({name:e[2].toUpperCase()});return"def"}e=t.match(/^(\'|\[\'\])\s+(\S+)(\s|$)+/);if(e){return"builtin"}}else{if(t.match(/^(\;|\[)(\s)/)){E.state="";t.backUp(1);return"builtin"}if(t.match(/^(\;|\[)($)/)){E.state="";return"builtin"}if(t.match(/^(POSTPONE)\s+\S+(\s|$)+/)){return"builtin"}}e=t.match(/^(\S+)(\s+|$)/);if(e){if(R(E.wordList,e[1])!==undefined){return"variable"}if(e[1]==="\\"){t.skipToEnd();return"comment"}if(R(E.coreWordList,e[1])!==undefined){return"builtin"}if(R(E.immediateWordList,e[1])!==undefined){return"keyword"}if(e[1]==="("){t.eatWhile((function(t){return t!==")"}));t.eat(")");return"comment"}if(e[1]===".("){t.eatWhile((function(t){return t!==")"}));t.eat(")");return"string"}if(e[1]==='S"'||e[1]==='."'||e[1]==='C"'){t.eatWhile((function(t){return t!=='"'}));t.eat('"');return"string"}if(e[1]-68719476735){return"number"}return"atom"}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/6986.f1340261cb55bca13d03.js b/share/jupyter/lab/static/6986.f1340261cb55bca13d03.js new file mode 100644 index 0000000..20e57e7 --- /dev/null +++ b/share/jupyter/lab/static/6986.f1340261cb55bca13d03.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(7975),r.e(1218),r.e(161)]).then(r.bind(r,60161))),"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/share/jupyter/lab/static/6993.c93f5a810fcf441cbb6f.js b/share/jupyter/lab/static/6993.c93f5a810fcf441cbb6f.js new file mode 100644 index 0000000..8b28d92 --- /dev/null +++ b/share/jupyter/lab/static/6993.c93f5a810fcf441cbb6f.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6993],{66993:(u,D,F)=>{F.r(D);F.d(D,{getHeadingList:()=>c,gfmHeadingId:()=>s,resetHeadings:()=>o,unescape:()=>n});const C=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g;const E=Object.hasOwnProperty;class A{constructor(){this.occurrences;this.reset()}slug(u,D){const F=this;let C=B(u,D===true);const A=C;while(E.call(F.occurrences,C)){F.occurrences[A]++;C=A+"-"+F.occurrences[A]}F.occurrences[C]=0;return C}reset(){this.occurrences=Object.create(null)}}function B(u,D){if(typeof u!=="string")return"";if(!D)u=u.toLowerCase();return u.replace(C,"").replace(/ /g,"-")}let e=new A;let r=[];const t=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function n(u){return u.replace(t,((u,D)=>{D=D.toLowerCase();if(D==="colon")return":";if(D.charAt(0)==="#"){return D.charAt(1)==="x"?String.fromCharCode(parseInt(D.substring(2),16)):String.fromCharCode(+D.substring(1))}return""}))}function s({prefix:u="",globalSlugs:D=false}={}){return{headerIds:false,hooks:{preprocess(u){if(!D){o()}return u}},useNewRenderer:true,renderer:{heading({tokens:D,depth:F}){const C=this.parser.parseInline(D);const E=n(C).trim().replace(/<[!\/a-z].*?>/gi,"");const A=F;const B=`${u}${e.slug(E.toLowerCase())}`;const t={level:A,text:C,id:B,raw:E};r.push(t);return`${C}\n`}}}}function c(){return r}function o(){r=[];e=new A}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/7136.b312751fbb25b73f5e71.js b/share/jupyter/lab/static/7136.b312751fbb25b73f5e71.js new file mode 100644 index 0000000..0ffd801 --- /dev/null +++ b/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/share/jupyter/lab/static/721921bab0d001ebff02.woff b/share/jupyter/lab/static/721921bab0d001ebff02.woff new file mode 100644 index 0000000..f5df023 Binary files /dev/null and b/share/jupyter/lab/static/721921bab0d001ebff02.woff differ diff --git a/share/jupyter/lab/static/7250.b88d0a5e237ff5ff1aad.js b/share/jupyter/lab/static/7250.b88d0a5e237ff5ff1aad.js new file mode 100644 index 0000000..a388634 --- /dev/null +++ b/share/jupyter/lab/static/7250.b88d0a5e237ff5ff1aad.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7250],{97250:(O,Q,P)=>{P.r(Q);P.d(Q,{rust:()=>U,rustLanguage:()=>l});var $=P(27421);var X=P(45145);const i=1,e=2,a=3,h=4,r=5;const t=98,s=101,W=102,Y=114,S=69,x=48,o=46,Z=43,_=45,p=35,b=34,z=124,q=60,w=62;function g(O){return O>=48&&O<=57}function n(O){return g(O)||O==95}const R=new $.Lu(((O,Q)=>{if(g(O.next)){let Q=false;do{O.advance()}while(n(O.next));if(O.next==o){Q=true;O.advance();if(g(O.next)){do{O.advance()}while(n(O.next))}else if(O.next==o||O.next>127||/\w/.test(String.fromCharCode(O.next))){return}}if(O.next==s||O.next==S){Q=true;O.advance();if(O.next==Z||O.next==_)O.advance();if(!n(O.next))return;do{O.advance()}while(n(O.next))}if(O.next==W){let P=O.peek(1);if(P==x+3&&O.peek(2)==x+2||P==x+6&&O.peek(2)==x+4){O.advance(3);Q=true}else{return}}if(Q)O.acceptToken(r)}else if(O.next==t||O.next==Y){if(O.next==t)O.advance();if(O.next!=Y)return;O.advance();let Q=0;while(O.next==p){Q++;O.advance()}if(O.next!=b)return;O.advance();O:for(;;){if(O.next<0)return;let P=O.next==b;O.advance();if(P){for(let P=0;P{if(O.next==z)O.acceptToken(i,1)}));const T=new $.Lu((O=>{if(O.next==q)O.acceptToken(e,1);else if(O.next==w)O.acceptToken(a,1)}));const y=(0,X.styleTags)({"const macro_rules struct union enum type fn impl trait let static":X.tags.definitionKeyword,"mod use crate":X.tags.moduleKeyword,"pub unsafe async mut extern default move":X.tags.modifier,"for if else loop while match continue break return await":X.tags.controlKeyword,"as in ref":X.tags.operatorKeyword,"where _ crate super dyn":X.tags.keyword,self:X.tags.self,String:X.tags.string,Char:X.tags.character,RawString:X.tags.special(X.tags.string),Boolean:X.tags.bool,Identifier:X.tags.variableName,"CallExpression/Identifier":X.tags.function(X.tags.variableName),BoundIdentifier:X.tags.definition(X.tags.variableName),"FunctionItem/BoundIdentifier":X.tags.function(X.tags.definition(X.tags.variableName)),LoopLabel:X.tags.labelName,FieldIdentifier:X.tags.propertyName,"CallExpression/FieldExpression/FieldIdentifier":X.tags.function(X.tags.propertyName),Lifetime:X.tags.special(X.tags.variableName),ScopeIdentifier:X.tags.namespace,TypeIdentifier:X.tags.typeName,"MacroInvocation/Identifier MacroInvocation/ScopedIdentifier/Identifier":X.tags.macroName,"MacroInvocation/TypeIdentifier MacroInvocation/ScopedIdentifier/TypeIdentifier":X.tags.macroName,'"!"':X.tags.macroName,UpdateOp:X.tags.updateOperator,LineComment:X.tags.lineComment,BlockComment:X.tags.blockComment,Integer:X.tags.integer,Float:X.tags.float,ArithOp:X.tags.arithmeticOperator,LogicOp:X.tags.logicOperator,BitOp:X.tags.bitwiseOperator,CompareOp:X.tags.compareOperator,"=":X.tags.definitionOperator,".. ... => ->":X.tags.punctuation,"( )":X.tags.paren,"[ ]":X.tags.squareBracket,"{ }":X.tags.brace,". DerefOp":X.tags.derefOperator,"&":X.tags.operator,", ; ::":X.tags.separator,"Attribute/...":X.tags.meta});const c={__proto__:null,self:28,super:32,crate:34,impl:46,true:72,false:72,pub:88,in:92,const:96,unsafe:104,async:108,move:110,if:114,let:118,ref:142,mut:144,_:198,else:200,match:204,as:248,return:252,await:262,break:270,continue:276,while:312,loop:316,for:320,macro_rules:327,mod:334,extern:342,struct:346,where:364,union:379,enum:382,type:390,default:395,fn:396,trait:412,use:420,static:438,dyn:476};const d=$.U1.deserialize({version:14,states:"$2xQ]Q_OOP$wOWOOO&sQWO'#CnO)WQWO'#I`OOQP'#I`'#I`OOQQ'#Ie'#IeO)hO`O'#C}OOQR'#Ih'#IhO)sQWO'#IuOOQO'#Hk'#HkO)xQWO'#DpOOQR'#Iw'#IwO)xQWO'#DpO*ZQWO'#DpOOQO'#Iv'#IvO,SQWO'#J`O,ZQWO'#EiOOQV'#Hp'#HpO,cQYO'#F{OOQV'#El'#ElOOQV'#Em'#EmOOQV'#En'#EnO.YQ_O'#EkO0_Q_O'#EoO2gQWOOO4QQ_O'#FPO7hQWO'#J`OOQV'#FY'#FYO7{Q_O'#F^O:WQ_O'#FaOOQO'#F`'#F`O=sQ_O'#FcO=}Q_O'#FbO@VQWO'#FgOOQO'#J`'#J`OOQV'#Io'#IoOA]Q_O'#InOEPQWO'#InOOQV'#Fw'#FwOF[QWO'#JuOFcQWO'#F|OOQO'#IO'#IOOGrQWO'#GhOOQV'#Im'#ImOOQV'#Il'#IlOOQV'#Hj'#HjQGyQ_OOOKeQ_O'#DUOKlQYO'#CqOOQP'#I_'#I_OOQV'#Hg'#HgQ]Q_OOOLuQWO'#I`ONsQYO'#DXO!!eQWO'#JuO!!lQWO'#JuO!!vQ_O'#DfO!%]Q_O'#E}O!(sQ_O'#FWO!,ZQWO'#FZO!.^QXO'#FbO!.cQ_O'#EeO!!vQ_O'#FmO!0uQWO'#FoO!0zQWO'#FoO!1PQ^O'#FqO!1WQWO'#JuO!1_QWO'#FtO!1dQWO'#FxO!2WQWO'#JjO!2_QWO'#GOO!2_QWO'#G`O!2_QWO'#GbO!2_QWO'#GsOOQO'#Ju'#JuO!2dQWO'#GhO!2lQYO'#GpO!2_QWO'#GqO!3uQ^O'#GtO!3|QWO'#GuO!4hQWO'#HOP!4sOpO'#CcPOOO)CC})CC}OOOO'#Hi'#HiO!5OO`O,59iOOQV,59i,59iO!5ZQYO,5?aOOQO-E;i-E;iOOQO,5:[,5:[OOQP,59Z,59ZO)xQWO,5:[O)xQWO,5:[O!5oQWO,5?kO!5zQYO,5;qO!6PQYO,5;TO!6hQWO,59QO!7kQXO'#CnO!7xQXO'#I`O!9SQWO'#CoO,^QWO'#EiOOQV-E;n-E;nO!9eQWO'#FsOOQV,5WQWO,5:fOOQP,5:h,5:hO!1PQ^O,5:hO!1PQ^O,5:mO$>]QYO,5gQ_O'#HsO$>tQXO,5@QOOQV1G1i1G1iOOQP,5:e,5:eO$>|QXO,5]QYO,5=vO$LRQWO'#KRO$L^QWO,5=xOOQR,5=y,5=yO$LcQWO,5=zO$>]QYO,5>PO$>]QYO,5>POOQO1G.w1G.wO$>]QYO1G.wO$LnQYO,5=pO$LvQZO,59^OOQR,59^,59^O$>]QYO,5=wO% YQZO,5=}OOQR,5=},5=}O%#lQWO1G/_O!6PQYO1G/_O#FYQYO1G2vO%#qQWO1G2vO%$PQYO1G2vOOQV1G/i1G/iO%%YQWO,5:SO%%bQ_O1G/lO%*kQWO1G1^O%+RQWO1G1hOOQO1G1h1G1hO$>]QYO1G1hO%+iQ^O'#EgOOQV1G0k1G0kOOQV1G1s1G1sO!!vQ_O1G1sO!0zQWO1G1uO!1PQ^O1G1wO!.cQ_O1G1wOOQP,5:j,5:jO$>]QYO1G/^OOQO'#Cn'#CnO%+vQWO1G1zOOQV1G2O1G2OO%,OQWO'#CnO%,WQWO1G3TO%,]QWO1G3TO%,bQYO'#GQO%,sQWO'#G]O%-UQYO'#G_O%.hQYO'#GXOOQV1G2U1G2UO%/wQWO1G2UO%/|QWO1G2UO$ARQWO1G2UOOQV1G2f1G2fO%/wQWO1G2fO#CpQWO1G2fO%0UQWO'#GdOOQV1G2h1G2hO%0gQWO1G2hO#C{QWO1G2hO%0lQYO'#GSO$>]QYO1G2lO$AdQWO1G2lOOQV1G2y1G2yO%1xQWO1G2yO%3hQ^O'#GkO%3rQWO1G2nO#DfQWO1G2nO%4QQYO,5]QYO1G2vOOQV1G2w1G2wO%5tQWO1G2wO%5yQWO1G2wO#HXQWO1G2wOOQV1G2z1G2zO.YQ_O1G2zO$>]QYO1G2zO%6RQWO1G2zOOQO,5>l,5>lOOQO-E]QYO1G3UPOOO-E;d-E;dPOOO1G.i1G.iOOQO7+*g7+*gO%7VQYO'#IcO%7nQYO'#IfO%7yQYO'#IfO%8RQYO'#IfO%8^QYO,59eOOQO7+%b7+%bOOQP7+$a7+$aO%8cQ!fO'#JTOOQS'#EX'#EXOOQS'#EY'#EYOOQS'#EZ'#EZOOQS'#JT'#JTO%;UQWO'#EWOOQS'#E`'#E`OOQS'#JR'#JROOQS'#Hn'#HnO%;ZQ!fO,5:oOOQV,5:o,5:oOOQV'#JQ'#JQO%;bQ!fO,5:{OOQV,5:{,5:{O%;iQ!fO,5:|OOQV,5:|,5:|OOQV7+'e7+'eOOQV7+&Z7+&ZO%;pQ!fO,59TOOQO,59T,59TO%>YQWO7+$WO%>_QWO1G1yOOQV1G1y1G1yO!9SQWO1G.uO%>dQWO,5?}O%>nQ_O'#HqO%@|QWO,5?}OOQO1G1X1G1XOOQO7+&}7+&}O%AUQWO,5>^OOQO-E;p-E;pO%AcQWO7+'OO.YQ_O7+'OOOQO7+'O7+'OOOQO7+'P7+'PO%AjQWO7+'POOQO7+'W7+'WOOQP1G0V1G0VO%ArQXO1G/tO!M{QWO1G/tO%BsQXO1G0RO%CkQ^O'#HlO%C{QWO,5?eOOQP1G/u1G/uO%DWQWO1G/uO%D]QWO'#D_OOQO'#Dt'#DtO%DhQWO'#DtO%DmQWO'#I{OOQO'#Iz'#IzO%DuQWO,5:_O%DzQWO'#DtO%EPQWO'#DtOOQP1G0Q1G0QOOQP1G0S1G0SOOQP1G0X1G0XO%EXQXO1G1jO%EdQXO'#FeOOQP,5>_,5>_O!1PQ^O'#FeOOQP-E;q-E;qO$>]QYO1G1jOOQO7+'S7+'SOOQO,5]QYO7+$xOOQV7+'j7+'jO%FsQWO7+(oO%FxQWO7+(oOOQV7+'p7+'pO%/wQWO7+'pO%F}QWO7+'pO%GVQWO7+'pOOQV7+(Q7+(QO%/wQWO7+(QO#CpQWO7+(QOOQV7+(S7+(SO%0gQWO7+(SO#C{QWO7+(SO$>]QYO7+(WO%GeQWO7+(WO#HUQYO7+(cO%GjQWO7+(YO#DfQWO7+(YOOQV7+(c7+(cO%5tQWO7+(cO%5yQWO7+(cO#HXQWO7+(cOOQV7+(g7+(gO$>]QYO7+(pO%GxQWO7+(pO!1dQWO7+(pOOQV7+$v7+$vO%G}QWO7+$vO%HSQZO1G3ZO%JfQWO1G4jOOQO1G4j1G4jOOQR1G.}1G.}O#.WQWO1G.}O%JkQWO'#KQOOQO'#HW'#HWO%J|QWO'#HXO%KXQWO'#KQOOQO'#KP'#KPO%KaQWO,5=qO%KfQYO'#H[O%LrQWO'#GmO%L}QYO'#CtO%MXQWO'#GmO$>]QYO1G3ZOOQR1G3g1G3gO#7aQWO1G3ZO%M^QZO1G3bO$>]QYO1G3bO& mQYO'#IVO& }QWO,5@mOOQR1G3d1G3dOOQR1G3f1G3fO.YQ_O1G3fOOQR1G3k1G3kO&!VQYO7+$cO&!_QYO'#KOOOQQ'#J}'#J}O&!gQYO1G3[O&!lQZO1G3cOOQQ7+$y7+$yO&${QWO7+$yO&%QQWO7+(bOOQV7+(b7+(bO%5tQWO7+(bO$>]QYO7+(bO#FYQYO7+(bO&%YQWO7+(bO!.cQ_O1G/nO&%hQWO7+%WO$?[QWO7+'SO&%pQWO'#EhO&%{Q^O'#EhOOQU'#Ho'#HoO&%{Q^O,5;ROOQV,5;R,5;RO&&VQWO,5;RO&&[Q^O,5;RO!0zQWO7+'_OOQV7+'a7+'aO&&iQWO7+'cO&&qQWO7+'cO&&xQWO7+$xO&'TQ!fO7+'fO&'[Q!fO7+'fOOQV7+(o7+(oO!1dQWO7+(oO&'cQYO,5]QYO'#JrOOQO'#Jq'#JqO&*YQWO,5]QYO'#GUO&,SQYO'#JkOOQQ,5]QYO7+(YO&0SQYO'#HxO&0hQYO1G2WOOQQ1G2W1G2WOOQQ,5]QYO,5]QYO7+(fO&1dQWO'#IRO&1nQWO,5@hOOQO1G3Q1G3QOOQO1G2}1G2}OOQO1G3P1G3POOQO1G3R1G3ROOQO1G3S1G3SOOQO1G3O1G3OO&1vQWO7+(pO$>]QYO,59fO&2RQ^O'#ISO&2xQYO,5?QOOQR1G/P1G/PO&3QQ!bO,5:pO&3VQ!fO,5:rOOQS-E;l-E;lOOQV1G0Z1G0ZOOQV1G0g1G0gOOQV1G0h1G0hO&3^QWO'#JTOOQO1G.o1G.oOOQV<]O&3qQWO,5>]OOQO-E;o-E;oOOQO<WOOQO-E;j-E;jOOQP7+%a7+%aO!1PQ^O,5:`O&5cQWO'#HmO&5wQWO,5?gOOQP1G/y1G/yOOQO,5:`,5:`O&6PQWO,5:`O%DzQWO,5:`O$>]QYO,5`,5>`OOQO-E;r-E;rOOQV7+'l7+'lO&6yQWO<]QYO<]QYO<]QYO<]QYO7+(uOOQO7+*U7+*UOOQR7+$i7+$iO&8cQWO,5@lOOQO'#Gm'#GmO&8kQWO'#GmO&8vQYO'#IUO&8cQWO,5@lOOQR1G3]1G3]O&:cQYO,5=vO&;rQYO,5=XO&;|QWO,5=XOOQO,5=X,5=XOOQR7+(u7+(uO&eQZO7+(|O&@tQWO,5>qOOQO-E]QYO<]QYO,5]QYO,5@^O&D^QYO'#H|O&EsQWO,5@^OOQO1G2e1G2eO%,nQWO,5]QYO,5PO&I]QYO,5@VOOQV<]QYO,5=WO&KuQWO,5@cO&K}QWO,5@cO&MvQ^O'#IPO&KuQWO,5@cOOQO1G2q1G2qO&NTQWO,5=WO&N]QWO<oO&NvQYO,5>dO' UQYO,5>dOOQQ,5>d,5>dOOQQ-E;v-E;vOOQQ7+'r7+'rO' aQYO1G2]O$>]QYO1G2^OOQV<m,5>mOOQO-EnOOQQ,5>n,5>nO'!fQYO,5>nOOQQ-EX,5>XOOQO-E;k-E;kO!1PQ^O1G/zOOQO1G/z1G/zO'%oQWO1G/zO'%tQXO1G1kO$>]QYO1G1kO'&PQWO7+'[OOQVANA`ANA`O'&ZQWOANA`O$>]QYOANA`O'&cQWOANA`OOQVAN>OAN>OO.YQ_OAN>OO'&qQWOANAuOOQVAN@vAN@vO'&vQWOAN@vOOQVANAWANAWOOQVANAYANAYOOQVANA^ANA^O'&{QWOANA^OOQVANAiANAiO%5tQWOANAiO%5yQWOANAiO''TQWOANA`OOQVANAvANAvO.YQ_OANAvO''cQWOANAvO$>]QYOANAvOOQR<pOOQO'#HY'#HYO''vQWO'#HZOOQO,5>p,5>pOOQO-E]QYO<o,5>oOOQQ-E]QYOANAhO'(bQWO1G1rO')UQ^O1G0nO.YQ_O1G0nO'*zQWO,5;UO'+RQWO1G0nP'+WQWO'#ERP&%{Q^O'#HpOOQV7+&X7+&XO'+cQWO7+&XO&&qQWOAN@iO'+hQWOAN>OO!5oQWO,5a,5>aO'+oQWOAN@lO'+tQWOAN@lOOQS-E;s-E;sOOQVAN@lAN@lO'+|QWOAN@lOOQVANAuANAuO',UQWO1G5vO',^QWO1G2dO$>]QYO1G2dO&'|QWO,5>gOOQO,5>g,5>gOOQO-E;y-E;yO',iQWO1G5xO',qQWO1G5xO&(nQYO,5>hO',|QWO,5>hO$>]QYO,5>hOOQO-E;z-E;zO'-XQWO'#JnOOQO1G2a1G2aOOQO,5>f,5>fOOQO-E;x-E;xO&'cQYO,5iOOQO,5>i,5>iOOQO-E;{-E;{OOQQ,5>c,5>cOOQQ-E;u-E;uO'.pQWO1G2sO'/QQWO1G2rO'/]QWO1G5}O'/eQ^O,5>kOOQO'#Go'#GoOOQO,5>k,5>kO'/lQWO,5>kOOQO-E;}-E;}O$>]QYO1G2rO'/zQYO7+'xO'0VQWOANAlOOQVANAlANAlO.YQ_OANAlO'0^QWOANAvOOQS7+%x7+%xO'0eQWO7+%xO'0pQ!fO7+%xO'0}QWO7+%fO!1PQ^O7+%fO'1YQXO7+'VOOQVG26zG26zO'1eQWOG26zO'1sQWOG26zO$>]QYOG26zO'1{QWOG23jOOQVG27aG27aOOQVG26bG26bOOQVG26xG26xOOQVG27TG27TO%5tQWOG27TO'2SQWOG27bOOQVG27bG27bO.YQ_OG27bO'2ZQWOG27bOOQO1G4[1G4[OOQO7+(_7+(_OOQRANA{ANA{OOQVG27SG27SO%5tQWOG27SO&0uQWOG27SO'2fQ^O7+&YO'4PQWO7+'^O'4sQ^O7+&YO.YQ_O7+&YP.YQ_O,5;SP'6PQWO,5;SP'6UQWO,5;SOOQV<]QYO1G4SO%,nQWO'#HyO'7UQWO,5@YO'7dQWO7+(VO.YQ_O7+(VOOQO1G4T1G4TOOQO1G4V1G4VO'7nQWO1G4VO'7|QWO7+(^OOQVG27WG27WO'8XQWOG27WOOQS<e,5>eOOQO-E;w-E;wO'?rQWO<wD_DpPDvHQPPPPPPK`P! P! _PPPPP!!VP!$oP!$oPP!&oP!(rP!(w!)n!*f!*f!*f!(w!+]P!(w!.Q!.TPP!.ZP!(w!(w!(w!(wP!(w!(wP!(w!(w!.y!/dP!/dJ}J}J}PPPP!/d!.y!/sPP!$oP!0^!0a!0g!1h!1t!3t!3t!5r!7t!1t!1t!9p!;_!=O!>k!@U!Am!CS!De!1t!1tP!1tP!1t!1t!Et!1tP!Ge!1t!1tP!Ie!1tP!1t!7t!7t!1t!7t!1t!Kl!Mt!Mw!7t!1t!Mz!M}!M}!M}!NR!$oP!$oP!$oP! P! PP!N]! P! PP!Ni# }! PP! PP#!^##c##k#$Z#$_#$e#$e#$mP#&s#&s#&y#'o#'{! PP! PP#(]#(l! PP! PPP#(x#)W#)d#)|#)^! P! PP! P! P! PP#*S#*S#*Y#*`#*S#*S! P! PP#*m#*v#+Q#+Q#,x#.l#.x#.x#.{#.{5a5a5a5a5a5a5a5aP5a#/O#/U#/p#1{#2R#2b#6^#6d#6j#6|#7W#8w#9R#9b#9h#9n#9x#:S#:Y#:g#:m#:s#:}#;]#;g#=u#>R#>`#>f#>n#>u#?PPPPPPPP#?V#BaP#F^#Jx#Ls#Nr$&^P$&aPPP$)_$)h$)z$/U$1d$1m$3fP!(w$4`$7r$:i$>T$>^$>c$>fPPP$>i$A`$A|P$BaPPPPPPPPPP$BvP$EU$EX$E[$Eb$Ee$Eh$Ek$En$Et$HO$HR$HU$HX$H[$H_$Hb$He$Hh$Hk$Hn$Jt$Jw$Jz#*S$KW$K^$Ka$Kd$Kh$Kl$Ko$KrQ!tPT'V!s'Wi!SOlm!P!T$T$W$y%b)U*f/gQ'i#QR,n'l(OSOY[bfgilmop!O!P!T!Y!Z![!_!`!c!p!q!|!}#Q#U#Z#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$`$a$e$g$h$q$r$y%X%_%b&U&Y&[&b&u&z&|'P'a'l'n'o'}(W(Y(b(d(e(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n+z,q,s,z-R-T-g-m-t.}/^/b/d/g0e0g0m0}1P1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f:gS(z$v-oQ*p&eQ*t&hQ-k(yQ-y)ZW0Z+Q0Y4Z7UR4Y0[&w!RObfgilmop!O!P!T!Y!Z![!_!`!c!p#Q#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r$y%_%b&U&Y&[&b&u'l'}(W(Y(b(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n,s,z-T-g-m-t.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f#r]Ofgilmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9hb#[b#Q$y'l(b)S)U*Z-t!h$bo!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m$b%k!Q!n$O$u%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g!W:y!Y!_!`*i*l/^3h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fR:|%n$_%u!Q!n$O$u%o%p%q&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g$e%l!Q!n$O$u%n%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g'hZOY[fgilmop!O!P!T!Y!Z![!_!`!c!p!|!}#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$`$a$e$g$h$q$r%_%b%i%j&U&Y&[&b&u'a'}(W(Y(d(e(f(j(o(p(r(|)i)p)q*f*i*k*l+Z+n,s,z-R-T-g-m.i.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:`:a:e:f:g:t:u:x$^%l!Q!n$O$u%n%o%p%q%y%{&P&p&r(q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gQ&j!hQ&k!iQ&l!jQ&m!kQ&s!oQ)[%QQ)]%RQ)^%SQ)_%TQ)b%WQ+`&oS,R']1ZQ.W)`S/r*u4TR4n0s+yTOY[bfgilmop!O!P!Q!T!Y!Z![!_!`!c!n!p!q!|!}#Q#U#Z#e#o#p#q#r#s#t#u#v#w#x#y#z#}$O$T$W$`$a$e$g$h$q$r$u$y%X%_%b%i%j%n%o%p%q%y%{&P&U&Y&[&b&o&p&r&u&z&|'P']'a'l'n'o'}(W(Y(b(d(e(f(j(o(p(q(r(|)S)U)i)p)q)s)x)y*O*P*R*V*Z*[*^*e*f*i*k*l*n*w*x+U+V+Z+h+n+o+z+},q,s,z-R-T-g-i-m-t-v.U.`.i.p.t.x.y.}/Z/[/^/b/d/g/{/}0`0e0g0m0r0w0}1O1P1Y1Z1h1r1y1|2a2h2j2m2s2v3V3_3a3f3h3k3u3{3|4R4U4W4_4c4e4h4t4v4|5[5`5d5g5t5v6R6Y6]6a6p6v6x7S7^7c7g7m7r7{8W8X8g8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:`:a:e:f:g:t:u:xQ'[!xQ'h#PQ)l%gU)r%m*T*WR.f)kQ,T']R5P1Z#t%s!Q!n$O$u%p%q&P&p&r(q)x)y*O*R*V*[*^*e*n*w+V+h+o+}-i-v.U.`.t.x.y/Z/[/{/}0`0r0w1O1Y1y2a2h2j2m2v3V3u3{3|4U4e4t5`5d5v6R6Y6p6v6x7c7r8gQ)x%oQ+_&oQ,U']n,^'b'c'd,c,f,h,l/m/n1_3n3q5T5U7kS.q)s2sQ/O*PQ/Q*SQ/q*uS0Q*x4RQ0a+U[0o+Z.j0g4h5y7^Q2v.pS4d0e2rQ4m0sQ5Q1ZQ6T3RQ6z4PQ7O4TQ7X4_R9Y8h&jVOfgilmop!O!P!T!Y!Z![!_!`!c!p#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r%_%b&U&Y&[&b&u']'}(W(Y(b(f(j(o(p(r(|)i*f*i*k*l+Z+n,s,z-T-g-m.}/^/b/d/g0e0g0m0}1Z1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fU&g!g%P%[o,^'b'c'd,c,f,h,l/m/n1_3n3q5T5U7k$nsOfgilm!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y'}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9z9{:O:P:Q:R:S:T:U:V:W:X:Y:eS$tp9xS&O!W#bS&Q!X#cQ&`!bQ*_&RQ*a&VS*d&[:fQ*h&^Q,T']Q-j(wQ/i*jQ0p+[S2f.X0qQ3]/_Q3^/`Q3g/hQ3i/kQ5P1ZU5b2R2g4lU7o5c5e5rQ8]6dS8u7p7qS9_8v8wR9i9`i{Ob!O!P!T$y%_%b)S)U)i-thxOb!O!P!T$y%_%b)S)U)i-tW/v*v/t3w6qQ/}*wW0[+Q0Y4Z7UQ3{/{Q6x3|R8g6v!h$do!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mQ&d!dQ&f!fQ&n!mW&x!q%X&|1PQ'S!rQ)X$}Q)Y%OQ)a%VU)d%Y'T'UQ*s&hS+s&z'PS-Y(k1sQ-u)WQ-x)ZS.a)e)fS0x+c/sQ1S+zQ1W+{S1v-_-`Q2k.bQ3s/pQ5]1xR5h2V${sOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f$zsOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fR3]/_V&T!Y!`*i!i$lo!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m!k$^o!c!p$e$g$h$q$r&U&b&u(b(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m!i$co!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m&e^Ofgilmop!O!P!T!Y!Z![!_!`!c!p#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r%_%b&U&Y&[&b&u'}(W(Y(f(j(o(p(r(|)i*f*i*k*l+Z+n,s,z-T-g-m.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fR(l$fQ-[(kR5Y1sQ(S#|S({$v-oS-Z(k1sQ-l(yW/u*v/t3w6qS1w-_-`Q3v/vR5^1xQ'e#Or,e'b'c'd'j'p)u,c,f,h,l/m/n1_3n3q5U6fR,o'mk,a'b'c'd,c,f,h,l/m/n1_3n3q5UQ'f#Or,e'b'c'd'j'p)u,c,f,h,l/m/n1_3n3q5U6fR,p'mR*g&]X/c*f/d/g3f!}aOb!O!P!T#z$v$y%_%b'}(y)S)U)i)s*f*v*w+Q+Z,s-o-t.j/b/d/g/t/{0Y0g1h2s3f3w3|4Z4h5y6a6q6v7U7^Q3`/aQ6_3bQ8Y6`R9V8Z${rOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f#nfOfglmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h!T9u!Y!_!`*i*l/^3h9u9v9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:e:f#rfOfgilmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h!X9u!Y!_!`*i*l/^3h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f$srOfglmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:e:f#U#oh#d$P$Q$V$s%^&W&X'q't'u'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9b}:P&S&]/k3[6d:[:]:c:d:h:j:k:l:m:n:o:p:q:r:v:w:{#W#ph#d$P$Q$V$s%^&W&X'q'r't'u'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9b!P:Q&S&]/k3[6d:[:]:c:d:h:i:j:k:l:m:n:o:p:q:r:v:w:{#S#qh#d$P$Q$V$s%^&W&X'q'u'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9b{:R&S&]/k3[6d:[:]:c:d:h:k:l:m:n:o:p:q:r:v:w:{#Q#rh#d$P$Q$V$s%^&W&X'q'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9by:S&S&]/k3[6d:[:]:c:d:h:l:m:n:o:p:q:r:v:w:{#O#sh#d$P$Q$V$s%^&W&X'q'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9bw:T&S&]/k3[6d:[:]:c:d:h:m:n:o:p:q:r:v:w:{!|#th#d$P$Q$V$s%^&W&X'q'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9bu:U&S&]/k3[6d:[:]:c:d:h:n:o:p:q:r:v:w:{!x#vh#d$P$Q$V$s%^&W&X'q'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9bq:W&S&]/k3[6d:[:]:c:d:h:p:q:r:v:w:{!v#wh#d$P$Q$V$s%^&W&X'q'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9bo:X&S&]/k3[6d:[:]:c:d:h:q:r:v:w:{$]#{h#`#d$P$Q$V$s%^&S&W&X&]'q'r's't'u'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n/k0z1i1l1}3P3[4w5V5a6^6d6e7R7e7h7s7y8j8q8{9[9b:[:]:c:d:h:i:j:k:l:m:n:o:p:q:r:v:w:{${jOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f$v!aOfgilmp!O!P!T!Y!Z!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ&Y![Q&Z!]R:e9{#rpOfgilmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9hQ&[!^!W9x!Y!_!`*i*l/^3h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fR:f:zR$moR-f(rR$wqT(}$v-oQ/f*fS3d/d/gR6c3fQ3m/mQ3p/nQ6i3nR6l3qQ$zwQ)V${Q*q&fQ+f&qQ+i&sQ-w)YW.Z)b+j+k+lS/X*]+gW2b.W.[.].^U3W/Y/]0yU5o2c2d2eS6W3X3ZS7w5p5qS8Q6V6XQ8y7xS8}8R8SR9c9O^|O!O!P!T%_%b)iX)R$y)S)U-tQ&r!nQ*^&PQ*|&jQ+P&kQ+T&lQ+W&mQ+]&nQ+l&sQ-})[Q.Q)]Q.T)^Q.V)_Q.Y)aQ.^)bQ2S-uQ2e.WR4U0VU+a&o*u4TR4o0sQ+Y&mQ+k&sS.])b+l^0v+_+`/q/r4m4n7OS2d.W.^S4Q0R0SR5q2eS0R*x4RQ0a+UR7X4_U+d&o*u4TR4p0sQ*z&jQ+O&kQ+S&lQ+g&qQ+j&sS-{)[*|S.P)]+PS.S)^+TU.[)b+k+lQ/Y*]Q0X*{Q0q+[Q2X-|Q2Y-}Q2].QQ2_.TU2c.W.].^Q2g.XS3Z/]0yS5c2R4lQ5j2ZS5p2d2eQ6X3XS7q5e5rQ7x5qQ8R6VQ8v7pQ9O8SR9`8wQ0T*xR6|4RQ*y&jQ*}&kU-z)[*z*|U.O)]+O+PS2W-{-}S2[.P.QQ4X0ZQ5i2YQ5k2]R7T4YQ/w*vQ3t/tQ6r3wR8d6qQ*{&jS-|)[*|Q2Z-}Q4X0ZR7T4YQ+R&lU.R)^+S+TS2^.S.TR5l2_Q0]+QQ4V0YQ7V4ZR8l7UQ+[&nS.X)a+]S2R-u.YR5e2SQ0i+ZQ4f0gQ7`4hR8m7^Q.m)sQ0i+ZQ2p.jQ4f0gQ5|2sQ7`4hQ7}5yR8m7^Q0i+ZR4f0gX'O!q%X&|1PX&{!q%X&|1PW'O!q%X&|1PS+u&z'PR1U+z_|O!O!P!T%_%b)iQ%a!PS)h%_%bR.d)i$^%u!Q!n$O$u%o%p%q&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gQ*U%yR*X%{$c%n!Q!n$O$u%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gW)t%m%x*T*WQ.e)jR2{.vR.m)sR5|2sQ'W!sR,O'WQ!TOQ$TlQ$WmQ%b!P[%|!T$T$W%b)U/gQ)U$yR/g*f$b%i!Q!n$O$u%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g[)n%i)p.i:`:t:xQ)p%jQ.i)qQ:`%nQ:t:aR:x:uQ!vUR'Y!vS!OO!TU%]!O%_)iQ%_!PR)i%b#rYOfgilmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9hh!yY!|#U$`'a'n(d,q-R9s9|:gQ!|[b#Ub#Q$y'l(b)S)U*Z-t!h$`o!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mQ'a!}Q'n#ZQ(d$aQ,q'oQ-R(e!W9s!Y!_!`*i*l/^3h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ9|9tR:g9}Q-U(gR1p-UQ1t-[R5Z1tQ,c'bQ,f'cQ,h'dW1`,c,f,h5UR5U1_Q/d*fS3c/d3fR3f/gfbO!O!P!T$y%_%b)S)U)i-tp#Wb'}(y.j/b/t/{0Y0g1h5y6a6q6v7U7^Q'}#zS(y$v-oQ.j)sW/b*f/d/g3fQ/t*vQ/{*wQ0Y+QQ0g+ZQ1h,sQ5y2sQ6q3wQ6v3|Q7U4ZR7^4hQ,t(OQ1g,rT1j,t1gS(X$Q([Q(^$VU,x(X(^,}R,}(`Q(s$mR-h(sQ-p)OR2P-pQ3n/mQ3q/nT6j3n3qQ)S$yS-r)S-tR-t)UQ4`0aR7Y4``0t+^+_+`+a+d/q/r7OR4q0tQ8i6zR9Z8iQ4S0TR6}4SQ3x/wQ6n3tT6s3x6nQ3}/|Q6t3zU6y3}6t8eR8e6uQ4[0]Q7Q4VT7W4[7QhzOb!O!P!T$y%_%b)S)U)i-tQ$|xW%Zz$|%f)v$b%f!Q!n$O$u%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gR)v%nS4i0i0nS7]4f4gT7b4i7]W&z!q%X&|1PS+r&z+zR+z'PQ1Q+wR4z1QU1[,S,T,UR5R1[S3S/Q7OR6U3SQ2t.mQ5x2pT5}2t5xQ.z)zR3O.z^_O!O!P!T%_%b)iY#Xb$y)S)U-t$l#_fgilmp!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W&Y&['}(W(Y(|*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f!h$io!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mS'j#Q'lQ-P(bR/V*Z&v!RObfgilmop!O!P!T!Y!Z![!_!`!c!p#Q#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r$y%_%b&U&Y&[&b&u'l'}(W(Y(b(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n,s,z-T-g-m-t.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f[!{Y[#U#Z9s9tW&{!q%X&|1P['`!|!}'n'o9|9}S(c$`$aS+t&z'PU,X'a,q:gS-Q(d(eQ1T+zR1n-RS%t!Q&oQ&q!nQ(V$OQ(w$uS)w%o.pQ)z%pQ)}%qS*]&P&rQ+e&pQ,S']Q-d(qQ.l)sU.w)x)y2vS/O*O*PQ/P*RQ/T*VQ/W*[Q/]*^Q/`*eQ/l*nQ/|*wS0S*x4RQ0a+UQ0c+VQ0y+hQ0{+oQ1X+}Q1{-iQ2T-vQ2`.UQ2i.`Q2z.tQ2|.xQ2}.yQ3X/ZQ3Y/[S3z/{/}Q4^0`Q4l0rQ4s0wQ4x1OQ4}1YQ5O1ZQ5_1yQ5n2aQ5r2hQ5u2jQ5w2mQ5{2sQ6V3VQ6o3uQ6u3{Q6w3|Q7P4UQ7X4_Q7[4eQ7d4tQ7n5`Q7p5dQ7|5vQ8P6RQ8S6YQ8c6pS8f6v6xQ8o7cQ8w7rR9X8g$^%m!Q!n$O$u%o%p%q&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gQ)j%nQ*T%yR*W%{$y%h!Q!n$O$u%i%j%n%o%p%q%y%{&P&o&p&r'](q)p)q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.i.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g:`:a:t:u:x'pWOY[bfgilmop!O!P!T!Y!Z![!_!`!c!p!|!}#Q#U#Z#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$`$a$e$g$h$q$r$y%_%b&U&Y&[&b&u'a'l'n'o'}(W(Y(b(d(e(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n,q,s,z-R-T-g-m-t.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f:g$x%g!Q!n$O$u%i%j%n%o%p%q%y%{&P&o&p&r'](q)p)q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.i.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g:`:a:t:u:x_&y!q%X&z&|'P+z1PR,V']$zrOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f!j$]o!c!p$e$g$h$q$r&U&b&u(b(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mQ,T']R5P1Z_}O!O!P!T%_%b)i^|O!O!P!T%_%b)iQ#YbX)R$y)S)U-tbhO!O!T3_6]8W8X9U9hS#`f9uQ#dgQ$PiQ$QlQ$VmQ$spW%^!P%_%b)iU&S!Y!`*iQ&W!ZQ&X![Q&]!_Q'q#eQ'r#oS's#p:QQ't#qQ'u#rQ'v#sQ'w#tQ'x#uQ'y#vQ'z#wQ'{#xQ'|#yQ(O#zQ(U#}Q([$TQ(`$WQ*b&YQ*c&[Q,r'}Q,w(WQ,y(YQ-n(|Q/k*lQ0z+nQ1i,sQ1l,zQ1}-mQ3P.}Q3[/^Q4w0}Q5V1hQ5a1|Q6^3aQ6d3hQ6e3kQ7R4WQ7e4vQ7h4|Q7s5gQ7y5tQ8j7SQ8q7gQ8{7{Q9[8kQ9b8|Q:[9wQ:]9xQ:c9zQ:d9{Q:h:OQ:i:PQ:j:RQ:k:SQ:l:TQ:m:UQ:n:VQ:o:WQ:p:XQ:q:YQ:r:ZQ:v:eQ:w:fR:{9v^tO!O!P!T%_%b)i$`#afgilmp!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W&Y&['}(W(Y(|*i*l+n,s,z-m.}/^0}1h1|3a3h3k4W4v4|5g5t7S7g7{8k8|9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ6[3_Q8V6]Q9R8WQ9T8XQ9g9UR9m9hQ&V!YQ&^!`R/h*iQ$joQ&a!cQ&t!pU(g$e$g(jS(n$h0eQ(u$qQ(v$rQ*`&UQ*m&bQ+p&uQ-S(fS-b(o4cQ-c(pQ-e(rW/a*f/d/g3fQ/j*kW0f+Z0g4h7^Q1o-TQ1z-gQ3b/bQ4k0mQ5X1rQ7l5[Q8Z6aR8t7m!h$_o!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mR-P(b'qXOY[bfgilmop!O!P!T!Y!Z![!_!`!c!p!|!}#Q#U#Z#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$`$a$e$g$h$q$r$y%_%b&U&Y&[&b&u'a'l'n'o'}(W(Y(b(d(e(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n,q,s,z-R-T-g-m-t.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f:g$zqOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f!i$fo!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m&d^Ofgilmop!O!P!T!Y!Z![!_!`!c!p#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r%_%b&U&Y&[&b&u'}(W(Y(f(j(o(p(r(|)i*f*i*k*l+Z+n,s,z-T-g-m.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f[!zY[$`$a9s9t['_!|!}(d(e9|9}W)o%i%j:`:aU,W'a-R:gW.h)p)q:t:uT2o.i:xQ(i$eQ(m$gR-W(jV(h$e$g(jR-^(kR-](k$znOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f!i$ko!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mS'g#O'pj,a'b'c'd,c,f,h,l/m/n1_3n3q5UQ,m'jQ.u)uR8_6f`,b'b'c'd,c,f,h1_5UQ1e,lX3l/m/n3n3qj,a'b'c'd,c,f,h,l/m/n1_3n3q5UQ7j5TR8s7k^uO!O!P!T%_%b)i$`#afgilmp!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W&Y&['}(W(Y(|*i*l+n,s,z-m.}/^0}1h1|3a3h3k4W4v4|5g5t7S7g7{8k8|9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ6Z3_Q8U6]Q9Q8WQ9S8XQ9f9UR9l9hR(Q#zR(P#zQ$SlR(]$TR$ooR$noR)Q$vR)P$vQ)O$vR2O-ohwOb!O!P!T$y%_%b)S)U)i-t$l!lz!Q!n$O$u$|%f%n%o%p%q%y%{&P&o&p&r'](q)s)v)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gR${xR0b+UR0W*xR0U*xR6{4PR/y*vR/x*vR0P*wR0O*wR0_+QR0^+Q%XyObxz!O!P!Q!T!n$O$u$y$|%_%b%f%n%o%p%q%y%{&P&o&p&r'](q)S)U)i)s)v)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-t-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gR0k+ZR0j+ZQ'R!qQ)c%XQ+w&|R4y1PX'Q!q%X&|1PR+y&|R+x&|T/S*S4TT/R*S4TR.o)sR.n)sR){%p",nodeNames:"⚠ | < > RawString Float LineComment BlockComment SourceFile ] InnerAttribute ! [ MetaItem self Metavariable super crate Identifier ScopedIdentifier :: QualifiedScope AbstractType impl SelfType MetaType TypeIdentifier ScopedTypeIdentifier ScopeIdentifier TypeArgList TypeBinding = Lifetime String Escape Char Boolean Integer } { Block ; ConstItem Vis pub ( in ) const BoundIdentifier : UnsafeBlock unsafe AsyncBlock async move IfExpression if LetDeclaration let LiteralPattern ArithOp MetaPattern SelfPattern ScopedIdentifier TuplePattern ScopedTypeIdentifier , StructPattern FieldPatternList FieldPattern ref mut FieldIdentifier .. RefPattern SlicePattern CapturedPattern ReferencePattern & MutPattern RangePattern ... OrPattern MacroPattern ParenthesizedTokens TokenBinding Identifier TokenRepetition ArithOp BitOp LogicOp UpdateOp CompareOp -> => ArithOp BracketedTokens BracedTokens _ else MatchExpression match MatchBlock MatchArm Attribute Guard UnaryExpression ArithOp DerefOp LogicOp ReferenceExpression TryExpression BinaryExpression ArithOp ArithOp BitOp BitOp BitOp BitOp LogicOp LogicOp AssignmentExpression TypeCastExpression as ReturnExpression return RangeExpression CallExpression ArgList AwaitExpression await FieldExpression GenericFunction BreakExpression break LoopLabel ContinueExpression continue IndexExpression ArrayExpression TupleExpression MacroInvocation UnitExpression ClosureExpression ParamList Parameter Parameter ParenthesizedExpression StructExpression FieldInitializerList ShorthandFieldInitializer FieldInitializer BaseFieldInitializer MatchArm WhileExpression while LoopExpression loop ForExpression for MacroInvocation MacroDefinition macro_rules MacroRule EmptyStatement ModItem mod DeclarationList AttributeItem ForeignModItem extern StructItem struct TypeParamList ConstrainedTypeParameter TraitBounds HigherRankedTraitBound RemovedTraitBound OptionalTypeParameter ConstParameter WhereClause where LifetimeClause TypeBoundClause FieldDeclarationList FieldDeclaration OrderedFieldDeclarationList UnionItem union EnumItem enum EnumVariantList EnumVariant TypeItem type FunctionItem default fn ParamList Parameter SelfParameter VariadicParameter VariadicParameter ImplItem TraitItem trait AssociatedType LetDeclaration UseDeclaration use ScopedIdentifier UseAsClause ScopedIdentifier UseList ScopedUseList UseWildcard ExternCrateDeclaration StaticItem static ExpressionStatement ExpressionStatement GenericType FunctionType ForLifetimes ParamList VariadicParameter Parameter VariadicParameter Parameter ReferenceType PointerType TupleType UnitType ArrayType MacroInvocation EmptyType DynamicType dyn BoundedType",maxTerm:359,nodeProps:[["group",-42,4,5,14,15,16,17,18,19,33,35,36,37,40,51,53,56,101,107,111,112,113,122,123,125,127,128,130,132,133,134,137,139,140,141,142,143,144,148,149,155,157,159,"Expression",-16,22,24,25,26,27,222,223,230,231,232,233,234,235,236,237,239,"Type",-20,42,161,162,165,166,169,170,172,188,190,194,196,204,205,207,208,209,217,218,220,"Statement",-17,49,60,62,63,64,65,68,74,75,76,77,78,80,81,83,84,99,"Pattern"],["openedBy",9,"[",38,"{",47,"("],["closedBy",12,"]",39,"}",45,")"]],propSources:[y],skippedNodes:[0,6,7,240],repeatNodeCount:32,tokenData:"#?|_R!VOX$hXY1_YZ2ZZ]$h]^1_^p$hpq1_qr2srs4qst5Ztu6Vuv9lvw;jwx=nxy!!ayz!#]z{!$X{|!&R|}!'T}!O!(P!O!P!*Q!P!Q!-|!Q!R!6X!R![!7|![!]!Jw!]!^!Lu!^!_!Mq!_!`# x!`!a##y!a!b#&Q!b!c#&|!c!}#'x!}#O#)o#O#P#*k#P#Q#1b#Q#R#2^#R#S#'x#S#T$h#T#U#'x#U#V#3`#V#f#'x#f#g#6s#g#o#'x#o#p#y!X!Y$h!Y!Z!<}!Z#O$h#O#P%x#P#g$h#g#h!?y#h~$h_!;O_'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!S$h!S!T!;}!T!W$h!W!X!<}!X#O$h#O#P%x#P~$h_!Q]'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!S$h!S!T!<}!T#O$h#O#P%x#P~$h_!?Q]'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!U$h!U!V!<}!V#O$h#O#P%x#P~$h_!@Q]'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P#]$h#]#^!@y#^~$h_!AQ]'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P#n$h#n#o!Ay#o~$h_!BQ]'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P#X$h#X#Y!<}#Y~$h_!CQ_'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!R!DP!R!S!DP!S#O$h#O#P%x#P#R$h#R#S!DP#S~$h_!DYcuX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!R!DP!R!S!DP!S#O$h#O#P%x#P#R$h#R#S!DP#S#]$h#]#^!9_#^#i$h#i#j!9_#j~$h_!El^'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!Y!Fh!Y#O$h#O#P%x#P#R$h#R#S!Fh#S~$h_!FqbuX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!Y!Fh!Y#O$h#O#P%x#P#R$h#R#S!Fh#S#]$h#]#^!9_#^#i$h#i#j!9_#j~$h_!HQb'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q![!IY![!c$h!c!i!IY!i#O$h#O#P%x#P#R$h#R#S!IY#S#T$h#T#Z!IY#Z~$h_!IcfuX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q![!IY![!c$h!c!i!IY!i#O$h#O#P%x#P#R$h#R#S!IY#S#T$h#T#Z!IY#Z#]$h#]#^!9_#^#i$h#i#j!9_#j~$h_!KQ]!SX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q![$h![!]!Ky!]#O$h#O#P%x#P~$h_!LSZdX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$h_!MOZyX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$h_!Mz^#PX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!^$h!^!_!Nv!_!`3u!`#O$h#O#P%x#P~$h_# P]'yX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!_$h!_!`:n!`#O$h#O#P%x#P~$h_#!R^oX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!_$h!_!`3u!`!a#!}!a#O$h#O#P%x#P~$h_##WZ#RX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$h_#$S^#PX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!_$h!_!`3u!`!a#%O!a#O$h#O#P%x#P~$h_#%X]'zX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!_$h!_!`:n!`#O$h#O#P%x#P~$h_#&ZZ(RX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$hV#'VZ'pP'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$h_#(Th'_Q'OS!yW'TPOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q![#'x![!c$h!c!}#'x!}#O$h#O#P%x#P#R$h#R#S#'x#S#T$h#T#o#'x#o${$h${$|#'x$|4w$h4w5b#'x5b5i$h5i6S#'x6S~$h_#)xZ[X'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$hU#*pX'OSOz#+]z{#+s{!P#+]!P!Q#,X!Q#i#+]#i#j#,j#j#l#+]#l#m#.Y#m~#+]U#+dTrQ'OSOz%xz{&^{!P%x!P!Q'S!Q~%xU#+xTrQOz&pz{&^{!P&p!P!Q({!Q~&pU#,^SrQOz&p{!P&p!P!Q'c!Q~&pU#,o['OSOz%xz{&^{!P%x!P!Q'S!Q![#-e![!c%x!c!i#-e!i#T%x#T#Z#-e#Z#o%x#o#p#/r#p~%xU#-jY'OSOz%xz{&^{!P%x!P!Q'S!Q![#.Y![!c%x!c!i#.Y!i#T%x#T#Z#.Y#Z~%xU#._Y'OSOz%xz{&^{!P%x!P!Q'S!Q![#.}![!c%x!c!i#.}!i#T%x#T#Z#.}#Z~%xU#/SY'OSOz%xz{&^{!P%x!P!Q'S!Q![#+]![!c%x!c!i#+]!i#T%x#T#Z#+]#Z~%xU#/wY'OSOz%xz{&^{!P%x!P!Q'S!Q![#0g![!c%x!c!i#0g!i#T%x#T#Z#0g#Z~%xU#0l['OSOz%xz{&^{!P%x!P!Q'S!Q![#0g![!c%x!c!i#0g!i#T%x#T#Z#0g#Z#q%x#q#r#+]#r~%x_#1kZXX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$h_#2g]'{X'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!_$h!_!`:n!`#O$h#O#P%x#P~$h_#3kj'_Q'OS!yW'TPOY$hYZ%bZr$hrs#5]sw$hwx#5sxz$hz{)Q{!P$h!P!Q*p!Q![#'x![!c$h!c!}#'x!}#O$h#O#P%x#P#R$h#R#S#'x#S#T$h#T#o#'x#o${$h${$|#'x$|4w$h4w5b#'x5b5i$h5i6S#'x6S~$h]#5dT'OS'^XOz%xz{&^{!P%x!P!Q'S!Q~%x_#5z]'_Q'OSOY?dYZA`Zr?drsBdsw?dwx@dxz?dz{CO{!P?d!P!QDv!Q#O?d#O#PId#P~?d_#7Oi'_Q'OS!yW'TPOY$hYZ%bZr$hrs%xst#8mtz$hz{)Q{!P$h!P!Q*p!Q![#'x![!c$h!c!}#'x!}#O$h#O#P%x#P#R$h#R#S#'x#S#T$h#T#o#'x#o${$h${$|#'x$|4w$h4w5b#'x5b5i$h5i6S#'x6S~$hV#8tg'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!c$h!c!}#:]!}#O$h#O#P%x#P#R$h#R#S#:]#S#T$h#T#o#:]#o${$h${$|#:]$|4w$h4w5b#:]5b5i$h5i6S#:]6S~$hV#:fh'_Q'OS'TPOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q![#:]![!c$h!c!}#:]!}#O$h#O#P%x#P#R$h#R#S#:]#S#T$h#T#o#:]#o${$h${$|#:]$|4w$h4w5b#:]5b5i$h5i6S#:]6S~$h_#U#q~$h_#>_Z'|X'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$h_#?ZZvX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$h",tokenizers:[V,T,R,0,1,2,3],topRules:{SourceFile:[0,8]},specialized:[{term:281,get:O=>c[O]||-1}],tokenPrec:15596});var f=P(4452);const l=f.LRLanguage.define({name:"rust",parser:d.configure({props:[f.indentNodeProp.add({IfExpression:(0,f.continuedIndent)({except:/^\s*({|else\b)/}),"String BlockComment":()=>null,AttributeItem:O=>O.continue(),"Statement MatchArm":(0,f.continuedIndent)()}),f.foldNodeProp.add((O=>{if(/(Block|edTokens|List)$/.test(O.name))return f.foldInside;if(O.name=="BlockComment")return O=>({from:O.from+2,to:O.to-2});return undefined}))]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:\{|\})$/,closeBrackets:{stringPrefixes:["b","r","br"]}}});function U(){return new f.LanguageSupport(l)}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/7260.b47dcaccbe7991104e8a.js b/share/jupyter/lab/static/7260.b47dcaccbe7991104e8a.js new file mode 100644 index 0000000..bd723b1 --- /dev/null +++ b/share/jupyter/lab/static/7260.b47dcaccbe7991104e8a.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7260],{7260:(e,n,t)=>{t.r(n);t.d(n,{octave:()=>k});function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var a=new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]");var i=new RegExp("^[\\(\\[\\{\\},:=;\\.]");var o=new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))");var u=new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))");var c=new RegExp("^((>>=)|(<<=))");var s=new RegExp("^[\\]\\)]");var f=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*");var m=r(["error","eval","function","abs","acos","atan","asin","cos","cosh","exp","log","prod","sum","log10","max","min","sign","sin","sinh","sqrt","tan","reshape","break","zeros","default","margin","round","ones","rand","syn","ceil","floor","size","clear","zeros","eye","mean","std","cov","det","eig","inv","norm","rank","trace","expm","logm","sqrtm","linspace","plot","title","xlabel","ylabel","legend","text","grid","meshgrid","mesh","num2str","fft","ifft","arrayfun","cellfun","input","fliplr","flipud","ismember"]);var l=r(["return","case","switch","else","elseif","end","endif","endfunction","if","otherwise","do","for","while","try","catch","classdef","properties","events","methods","global","persistent","endfor","endwhile","printf","sprintf","disp","until","continue","pkg"]);function p(e,n){if(!e.sol()&&e.peek()==="'"){e.next();n.tokenize=d;return"operator"}n.tokenize=d;return d(e,n)}function h(e,n){if(e.match(/^.*%}/)){n.tokenize=d;return"comment"}e.skipToEnd();return"comment"}function d(e,n){if(e.eatSpace())return null;if(e.match("%{")){n.tokenize=h;e.skipToEnd();return"comment"}if(e.match(/^[%#]/)){e.skipToEnd();return"comment"}if(e.match(/^[0-9\.+-]/,false)){if(e.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/)){e.tokenize=d;return"number"}if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/)){return"number"}if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/)){return"number"}}if(e.match(r(["nan","NaN","inf","Inf"]))){return"number"}var t=e.match(/^"(?:[^"]|"")*("|$)/)||e.match(/^'(?:[^']|'')*('|$)/);if(t){return t[1]?"string":"error"}if(e.match(l)){return"keyword"}if(e.match(m)){return"builtin"}if(e.match(f)){return"variable"}if(e.match(a)||e.match(o)){return"operator"}if(e.match(i)||e.match(u)||e.match(c)){return null}if(e.match(s)){n.tokenize=p;return null}e.next();return"error"}const k={name:"octave",startState:function(){return{tokenize:d}},token:function(e,n){var t=n.tokenize(e,n);if(t==="number"||t==="variable"){n.tokenize=p}return t},languageData:{commentTokens:{line:"%"}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/7269.962f078e97afc4f68e79.js b/share/jupyter/lab/static/7269.962f078e97afc4f68e79.js new file mode 100644 index 0000000..aff67ac --- /dev/null +++ b/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/share/jupyter/lab/static/72bc573386dd1d48c5bb.woff b/share/jupyter/lab/static/72bc573386dd1d48c5bb.woff new file mode 100644 index 0000000..9dcf84c Binary files /dev/null and b/share/jupyter/lab/static/72bc573386dd1d48c5bb.woff differ diff --git a/share/jupyter/lab/static/731.82a7b980b5b7f4b7a14f.js b/share/jupyter/lab/static/731.82a7b980b5b7f4b7a14f.js new file mode 100644 index 0000000..b15d976 --- /dev/null +++ b/share/jupyter/lab/static/731.82a7b980b5b7f4b7a14f.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[731],{30731:(e,t,a)=>{a.r(t);a.d(t,{yaml:()=>n});var i=["true","false","on","off","yes","no"];var r=new RegExp("\\b(("+i.join(")|(")+"))$","i");const n={name:"yaml",token:function(e,t){var a=e.peek();var i=t.escaped;t.escaped=false;if(a=="#"&&(e.pos==0||/\s/.test(e.string.charAt(e.pos-1)))){e.skipToEnd();return"comment"}if(e.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(t.literal&&e.indentation()>t.keyCol){e.skipToEnd();return"string"}else if(t.literal){t.literal=false}if(e.sol()){t.keyCol=0;t.pair=false;t.pairStart=false;if(e.match("---")){return"def"}if(e.match("...")){return"def"}if(e.match(/^\s*-\s+/)){return"meta"}}if(e.match(/^(\{|\}|\[|\])/)){if(a=="{")t.inlinePairs++;else if(a=="}")t.inlinePairs--;else if(a=="[")t.inlineList++;else t.inlineList--;return"meta"}if(t.inlineList>0&&!i&&a==","){e.next();return"meta"}if(t.inlinePairs>0&&!i&&a==","){t.keyCol=0;t.pair=false;t.pairStart=false;e.next();return"meta"}if(t.pairStart){if(e.match(/^\s*(\||\>)\s*/)){t.literal=true;return"meta"}if(e.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i)){return"variable"}if(t.inlinePairs==0&&e.match(/^\s*-?[0-9\.\,]+\s?$/)){return"number"}if(t.inlinePairs>0&&e.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/)){return"number"}if(e.match(r)){return"keyword"}}if(!t.pair&&e.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)){t.pair=true;t.keyCol=e.indentation();return"atom"}if(t.pair&&e.match(/^:\s*/)){t.pairStart=true;return"meta"}t.pairStart=false;t.escaped=a=="\\";e.next();return null},startState:function(){return{pair:false,pairStart:false,keyCol:0,inlinePairs:0,inlineList:0,literal:false,escaped:false}},languageData:{commentTokens:{line:"#"}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/7318.7cc6b4b0b3151b205ecb.js b/share/jupyter/lab/static/7318.7cc6b4b0b3151b205ecb.js new file mode 100644 index 0000000..3d8d7e6 --- /dev/null +++ b/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/share/jupyter/lab/static/7356.f680d291a68c2b235532.js b/share/jupyter/lab/static/7356.f680d291a68c2b235532.js new file mode 100644 index 0000000..57c968a --- /dev/null +++ b/share/jupyter/lab/static/7356.f680d291a68c2b235532.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7356],{27356:(t,e,a)=>{a.d(e,{diagram:()=>Lt});var r=a(30242);var i=a(29131);var n=a(42418);var s=a(70416);var l=a(1218);var o=a(16750);var h=function(){var t=(0,s.K2)((function(t,e,a,r){for(a=a||{},r=t.length;r--;a[t[r]]=e);return a}),"o"),e=[1,24],a=[1,25],r=[1,26],i=[1,27],n=[1,28],l=[1,63],o=[1,64],h=[1,65],d=[1,66],u=[1,67],p=[1,68],f=[1,69],y=[1,29],b=[1,30],g=[1,31],x=[1,32],_=[1,33],m=[1,34],v=[1,35],k=[1,36],E=[1,37],S=[1,38],A=[1,39],C=[1,40],w=[1,41],O=[1,42],T=[1,43],R=[1,44],D=[1,45],N=[1,46],P=[1,47],B=[1,48],j=[1,50],I=[1,51],M=[1,52],K=[1,53],L=[1,54],Y=[1,55],U=[1,56],F=[1,57],X=[1,58],z=[1,59],W=[1,60],Q=[14,42],$=[14,34,36,37,38,39,40,41,42,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,69,70,71,72,73,74],H=[12,14,34,36,37,38,39,40,41,42,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,69,70,71,72,73,74],q=[1,82],V=[1,83],G=[1,84],J=[1,85],Z=[12,14,42],tt=[12,14,33,42],et=[12,14,33,42,76,77,79,80],at=[12,33],rt=[34,36,37,38,39,40,41,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,69,70,71,72,73,74];var it={trace:(0,s.K2)((function t(){}),"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:(0,s.K2)((function t(e,a,r,i,n,s,l){var o=s.length-1;switch(n){case 3:i.setDirection("TB");break;case 4:i.setDirection("BT");break;case 5:i.setDirection("RL");break;case 6:i.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:i.setC4Type(s[o-3]);break;case 19:i.setTitle(s[o].substring(6));this.$=s[o].substring(6);break;case 20:i.setAccDescription(s[o].substring(15));this.$=s[o].substring(15);break;case 21:this.$=s[o].trim();i.setTitle(this.$);break;case 22:case 23:this.$=s[o].trim();i.setAccDescription(this.$);break;case 28:s[o].splice(2,0,"ENTERPRISE");i.addPersonOrSystemBoundary(...s[o]);this.$=s[o];break;case 29:s[o].splice(2,0,"SYSTEM");i.addPersonOrSystemBoundary(...s[o]);this.$=s[o];break;case 30:i.addPersonOrSystemBoundary(...s[o]);this.$=s[o];break;case 31:s[o].splice(2,0,"CONTAINER");i.addContainerBoundary(...s[o]);this.$=s[o];break;case 32:i.addDeploymentNode("node",...s[o]);this.$=s[o];break;case 33:i.addDeploymentNode("nodeL",...s[o]);this.$=s[o];break;case 34:i.addDeploymentNode("nodeR",...s[o]);this.$=s[o];break;case 35:i.popBoundaryParseStack();break;case 39:i.addPersonOrSystem("person",...s[o]);this.$=s[o];break;case 40:i.addPersonOrSystem("external_person",...s[o]);this.$=s[o];break;case 41:i.addPersonOrSystem("system",...s[o]);this.$=s[o];break;case 42:i.addPersonOrSystem("system_db",...s[o]);this.$=s[o];break;case 43:i.addPersonOrSystem("system_queue",...s[o]);this.$=s[o];break;case 44:i.addPersonOrSystem("external_system",...s[o]);this.$=s[o];break;case 45:i.addPersonOrSystem("external_system_db",...s[o]);this.$=s[o];break;case 46:i.addPersonOrSystem("external_system_queue",...s[o]);this.$=s[o];break;case 47:i.addContainer("container",...s[o]);this.$=s[o];break;case 48:i.addContainer("container_db",...s[o]);this.$=s[o];break;case 49:i.addContainer("container_queue",...s[o]);this.$=s[o];break;case 50:i.addContainer("external_container",...s[o]);this.$=s[o];break;case 51:i.addContainer("external_container_db",...s[o]);this.$=s[o];break;case 52:i.addContainer("external_container_queue",...s[o]);this.$=s[o];break;case 53:i.addComponent("component",...s[o]);this.$=s[o];break;case 54:i.addComponent("component_db",...s[o]);this.$=s[o];break;case 55:i.addComponent("component_queue",...s[o]);this.$=s[o];break;case 56:i.addComponent("external_component",...s[o]);this.$=s[o];break;case 57:i.addComponent("external_component_db",...s[o]);this.$=s[o];break;case 58:i.addComponent("external_component_queue",...s[o]);this.$=s[o];break;case 60:i.addRel("rel",...s[o]);this.$=s[o];break;case 61:i.addRel("birel",...s[o]);this.$=s[o];break;case 62:i.addRel("rel_u",...s[o]);this.$=s[o];break;case 63:i.addRel("rel_d",...s[o]);this.$=s[o];break;case 64:i.addRel("rel_l",...s[o]);this.$=s[o];break;case 65:i.addRel("rel_r",...s[o]);this.$=s[o];break;case 66:i.addRel("rel_b",...s[o]);this.$=s[o];break;case 67:s[o].splice(0,1);i.addRel("rel",...s[o]);this.$=s[o];break;case 68:i.updateElStyle("update_el_style",...s[o]);this.$=s[o];break;case 69:i.updateRelStyle("update_rel_style",...s[o]);this.$=s[o];break;case 70:i.updateLayoutConfig("update_layout_config",...s[o]);this.$=s[o];break;case 71:this.$=[s[o]];break;case 72:s[o].unshift(s[o-1]);this.$=s[o];break;case 73:case 75:this.$=s[o].trim();break;case 74:let t={};t[s[o-1].trim()]=s[o].trim();this.$=t;break;case 76:this.$="";break}}),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:e,23:a,24:r,26:i,28:n,29:49,30:61,32:62,34:l,36:o,37:h,38:d,39:u,40:p,41:f,43:23,44:y,45:b,46:g,47:x,48:_,49:m,50:v,51:k,52:E,53:S,54:A,55:C,56:w,57:O,58:T,59:R,60:D,61:N,62:P,63:B,64:j,65:I,66:M,67:K,68:L,69:Y,70:U,71:F,72:X,73:z,74:W},{13:70,19:20,20:21,21:22,22:e,23:a,24:r,26:i,28:n,29:49,30:61,32:62,34:l,36:o,37:h,38:d,39:u,40:p,41:f,43:23,44:y,45:b,46:g,47:x,48:_,49:m,50:v,51:k,52:E,53:S,54:A,55:C,56:w,57:O,58:T,59:R,60:D,61:N,62:P,63:B,64:j,65:I,66:M,67:K,68:L,69:Y,70:U,71:F,72:X,73:z,74:W},{13:71,19:20,20:21,21:22,22:e,23:a,24:r,26:i,28:n,29:49,30:61,32:62,34:l,36:o,37:h,38:d,39:u,40:p,41:f,43:23,44:y,45:b,46:g,47:x,48:_,49:m,50:v,51:k,52:E,53:S,54:A,55:C,56:w,57:O,58:T,59:R,60:D,61:N,62:P,63:B,64:j,65:I,66:M,67:K,68:L,69:Y,70:U,71:F,72:X,73:z,74:W},{13:72,19:20,20:21,21:22,22:e,23:a,24:r,26:i,28:n,29:49,30:61,32:62,34:l,36:o,37:h,38:d,39:u,40:p,41:f,43:23,44:y,45:b,46:g,47:x,48:_,49:m,50:v,51:k,52:E,53:S,54:A,55:C,56:w,57:O,58:T,59:R,60:D,61:N,62:P,63:B,64:j,65:I,66:M,67:K,68:L,69:Y,70:U,71:F,72:X,73:z,74:W},{13:73,19:20,20:21,21:22,22:e,23:a,24:r,26:i,28:n,29:49,30:61,32:62,34:l,36:o,37:h,38:d,39:u,40:p,41:f,43:23,44:y,45:b,46:g,47:x,48:_,49:m,50:v,51:k,52:E,53:S,54:A,55:C,56:w,57:O,58:T,59:R,60:D,61:N,62:P,63:B,64:j,65:I,66:M,67:K,68:L,69:Y,70:U,71:F,72:X,73:z,74:W},{14:[1,74]},t(Q,[2,13],{43:23,29:49,30:61,32:62,20:75,34:l,36:o,37:h,38:d,39:u,40:p,41:f,44:y,45:b,46:g,47:x,48:_,49:m,50:v,51:k,52:E,53:S,54:A,55:C,56:w,57:O,58:T,59:R,60:D,61:N,62:P,63:B,64:j,65:I,66:M,67:K,68:L,69:Y,70:U,71:F,72:X,73:z,74:W}),t(Q,[2,14]),t($,[2,16],{12:[1,76]}),t(Q,[2,36],{12:[1,77]}),t(H,[2,19]),t(H,[2,20]),{25:[1,78]},{27:[1,79]},t(H,[2,23]),{35:80,75:81,76:q,77:V,79:G,80:J},{35:86,75:81,76:q,77:V,79:G,80:J},{35:87,75:81,76:q,77:V,79:G,80:J},{35:88,75:81,76:q,77:V,79:G,80:J},{35:89,75:81,76:q,77:V,79:G,80:J},{35:90,75:81,76:q,77:V,79:G,80:J},{35:91,75:81,76:q,77:V,79:G,80:J},{35:92,75:81,76:q,77:V,79:G,80:J},{35:93,75:81,76:q,77:V,79:G,80:J},{35:94,75:81,76:q,77:V,79:G,80:J},{35:95,75:81,76:q,77:V,79:G,80:J},{35:96,75:81,76:q,77:V,79:G,80:J},{35:97,75:81,76:q,77:V,79:G,80:J},{35:98,75:81,76:q,77:V,79:G,80:J},{35:99,75:81,76:q,77:V,79:G,80:J},{35:100,75:81,76:q,77:V,79:G,80:J},{35:101,75:81,76:q,77:V,79:G,80:J},{35:102,75:81,76:q,77:V,79:G,80:J},{35:103,75:81,76:q,77:V,79:G,80:J},{35:104,75:81,76:q,77:V,79:G,80:J},t(Z,[2,59]),{35:105,75:81,76:q,77:V,79:G,80:J},{35:106,75:81,76:q,77:V,79:G,80:J},{35:107,75:81,76:q,77:V,79:G,80:J},{35:108,75:81,76:q,77:V,79:G,80:J},{35:109,75:81,76:q,77:V,79:G,80:J},{35:110,75:81,76:q,77:V,79:G,80:J},{35:111,75:81,76:q,77:V,79:G,80:J},{35:112,75:81,76:q,77:V,79:G,80:J},{35:113,75:81,76:q,77:V,79:G,80:J},{35:114,75:81,76:q,77:V,79:G,80:J},{35:115,75:81,76:q,77:V,79:G,80:J},{20:116,29:49,30:61,32:62,34:l,36:o,37:h,38:d,39:u,40:p,41:f,43:23,44:y,45:b,46:g,47:x,48:_,49:m,50:v,51:k,52:E,53:S,54:A,55:C,56:w,57:O,58:T,59:R,60:D,61:N,62:P,63:B,64:j,65:I,66:M,67:K,68:L,69:Y,70:U,71:F,72:X,73:z,74:W},{12:[1,118],33:[1,117]},{35:119,75:81,76:q,77:V,79:G,80:J},{35:120,75:81,76:q,77:V,79:G,80:J},{35:121,75:81,76:q,77:V,79:G,80:J},{35:122,75:81,76:q,77:V,79:G,80:J},{35:123,75:81,76:q,77:V,79:G,80:J},{35:124,75:81,76:q,77:V,79:G,80:J},{35:125,75:81,76:q,77:V,79:G,80:J},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},t(Q,[2,15]),t($,[2,17],{21:22,19:130,22:e,23:a,24:r,26:i,28:n}),t(Q,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:e,23:a,24:r,26:i,28:n,34:l,36:o,37:h,38:d,39:u,40:p,41:f,44:y,45:b,46:g,47:x,48:_,49:m,50:v,51:k,52:E,53:S,54:A,55:C,56:w,57:O,58:T,59:R,60:D,61:N,62:P,63:B,64:j,65:I,66:M,67:K,68:L,69:Y,70:U,71:F,72:X,73:z,74:W}),t(H,[2,21]),t(H,[2,22]),t(Z,[2,39]),t(tt,[2,71],{75:81,35:132,76:q,77:V,79:G,80:J}),t(et,[2,73]),{78:[1,133]},t(et,[2,75]),t(et,[2,76]),t(Z,[2,40]),t(Z,[2,41]),t(Z,[2,42]),t(Z,[2,43]),t(Z,[2,44]),t(Z,[2,45]),t(Z,[2,46]),t(Z,[2,47]),t(Z,[2,48]),t(Z,[2,49]),t(Z,[2,50]),t(Z,[2,51]),t(Z,[2,52]),t(Z,[2,53]),t(Z,[2,54]),t(Z,[2,55]),t(Z,[2,56]),t(Z,[2,57]),t(Z,[2,58]),t(Z,[2,60]),t(Z,[2,61]),t(Z,[2,62]),t(Z,[2,63]),t(Z,[2,64]),t(Z,[2,65]),t(Z,[2,66]),t(Z,[2,67]),t(Z,[2,68]),t(Z,[2,69]),t(Z,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},t(at,[2,28]),t(at,[2,29]),t(at,[2,30]),t(at,[2,31]),t(at,[2,32]),t(at,[2,33]),t(at,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},t($,[2,18]),t(Q,[2,38]),t(tt,[2,72]),t(et,[2,74]),t(Z,[2,24]),t(Z,[2,35]),t(rt,[2,25]),t(rt,[2,26],{12:[1,138]}),t(rt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:(0,s.K2)((function t(e,a){if(a.recoverable){this.trace(e)}else{var r=new Error(e);r.hash=a;throw r}}),"parseError"),parse:(0,s.K2)((function t(e){var a=this,r=[0],i=[],n=[null],l=[],o=this.table,c="",h=0,d=0,u=0,p=2,f=1;var y=l.slice.call(arguments,1);var b=Object.create(this.lexer);var g={yy:{}};for(var x in this.yy){if(Object.prototype.hasOwnProperty.call(this.yy,x)){g.yy[x]=this.yy[x]}}b.setInput(e,g.yy);g.yy.lexer=b;g.yy.parser=this;if(typeof b.yylloc=="undefined"){b.yylloc={}}var _=b.yylloc;l.push(_);var m=b.options&&b.options.ranges;if(typeof g.yy.parseError==="function"){this.parseError=g.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function v(t){r.length=r.length-2*t;n.length=n.length-t;l.length=l.length-t}(0,s.K2)(v,"popStack");function k(){var t;t=i.pop()||b.lex()||f;if(typeof t!=="number"){if(t instanceof Array){i=t;t=i.pop()}t=a.symbols_[t]||t}return t}(0,s.K2)(k,"lex");var E,S,A,C,w,O,T={},R,D,N,P;while(true){A=r[r.length-1];if(this.defaultActions[A]){C=this.defaultActions[A]}else{if(E===null||typeof E=="undefined"){E=k()}C=o[A]&&o[A][E]}if(typeof C==="undefined"||!C.length||!C[0]){var B="";P=[];for(R in o[A]){if(this.terminals_[R]&&R>p){P.push("'"+this.terminals_[R]+"'")}}if(b.showPosition){B="Parse error on line "+(h+1)+":\n"+b.showPosition()+"\nExpecting "+P.join(", ")+", got '"+(this.terminals_[E]||E)+"'"}else{B="Parse error on line "+(h+1)+": Unexpected "+(E==f?"end of input":"'"+(this.terminals_[E]||E)+"'")}this.parseError(B,{text:b.match,token:this.terminals_[E]||E,line:b.yylineno,loc:_,expected:P})}if(C[0]instanceof Array&&C.length>1){throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+E)}switch(C[0]){case 1:r.push(E);n.push(b.yytext);l.push(b.yylloc);r.push(C[1]);E=null;if(!S){d=b.yyleng;c=b.yytext;h=b.yylineno;_=b.yylloc;if(u>0){u--}}else{E=S;S=null}break;case 2:D=this.productions_[C[1]][1];T.$=n[n.length-D];T._$={first_line:l[l.length-(D||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(D||1)].first_column,last_column:l[l.length-1].last_column};if(m){T._$.range=[l[l.length-(D||1)].range[0],l[l.length-1].range[1]]}O=this.performAction.apply(T,[c,d,h,g.yy,C[1],n,l].concat(y));if(typeof O!=="undefined"){return O}if(D){r=r.slice(0,-1*D*2);n=n.slice(0,-1*D);l=l.slice(0,-1*D)}r.push(this.productions_[C[1]][0]);n.push(T.$);l.push(T._$);N=o[r[r.length-2]][r[r.length-1]];r.push(N);break;case 3:return true}}return true}),"parse")};var nt=function(){var t={EOF:1,parseError:(0,s.K2)((function t(e,a){if(this.yy.parser){this.yy.parser.parseError(e,a)}else{throw new Error(e)}}),"parseError"),setInput:(0,s.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,s.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,s.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 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(a.length-1){this.yylineno-=a.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:a?(a.length===r.length?this.yylloc.first_column:0)+r[r.length-a.length].length-a[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,s.K2)((function(){this._more=true;return this}),"more"),reject:(0,s.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,s.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,s.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,s.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,s.K2)((function(){var t=this.pastInput();var e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,s.K2)((function(t,e){var a,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];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 n in i){this[n]=i[n]}return false}return false}),"test_match"),next:(0,s.K2)((function(){if(this.done){return this.EOF}if(!this._input){this.done=true}var t,e,a,r;if(!this._more){this.yytext="";this.match=""}var i=this._currentRules();for(var n=0;ne[0].length)){e=a;r=n;if(this.options.backtrack_lexer){t=this.test_match(a,i[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,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,s.K2)((function t(){var e=this.next();if(e){return e}else{return this.lex()}}),"lex"),begin:(0,s.K2)((function t(e){this.conditionStack.push(e)}),"begin"),popState:(0,s.K2)((function t(){var e=this.conditionStack.length-1;if(e>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}}),"popState"),_currentRules:(0,s.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,s.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,s.K2)((function t(e){this.begin(e)}),"pushState"),stateStackSize:(0,s.K2)((function t(){return this.conditionStack.length}),"stateStackSize"),options:{},performAction:(0,s.K2)((function t(e,a,r,i){var n=i;switch(r){case 0:return 6;break;case 1:return 7;break;case 2:return 8;break;case 3:return 9;break;case 4:return 22;break;case 5:return 23;break;case 6:this.begin("acc_title");return 24;break;case 7:this.popState();return"acc_title_value";break;case 8:this.begin("acc_descr");return 26;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:break;case 14:c;break;case 15:return 12;break;case 16:break;case 17:return 11;break;case 18:return 15;break;case 19:return 16;break;case 20:return 17;break;case 21:return 18;break;case 22:this.begin("person_ext");return 45;break;case 23:this.begin("person");return 44;break;case 24:this.begin("system_ext_queue");return 51;break;case 25:this.begin("system_ext_db");return 50;break;case 26:this.begin("system_ext");return 49;break;case 27:this.begin("system_queue");return 48;break;case 28:this.begin("system_db");return 47;break;case 29:this.begin("system");return 46;break;case 30:this.begin("boundary");return 37;break;case 31:this.begin("enterprise_boundary");return 34;break;case 32:this.begin("system_boundary");return 36;break;case 33:this.begin("container_ext_queue");return 57;break;case 34:this.begin("container_ext_db");return 56;break;case 35:this.begin("container_ext");return 55;break;case 36:this.begin("container_queue");return 54;break;case 37:this.begin("container_db");return 53;break;case 38:this.begin("container");return 52;break;case 39:this.begin("container_boundary");return 38;break;case 40:this.begin("component_ext_queue");return 63;break;case 41:this.begin("component_ext_db");return 62;break;case 42:this.begin("component_ext");return 61;break;case 43:this.begin("component_queue");return 60;break;case 44:this.begin("component_db");return 59;break;case 45:this.begin("component");return 58;break;case 46:this.begin("node");return 39;break;case 47:this.begin("node");return 39;break;case 48:this.begin("node_l");return 40;break;case 49:this.begin("node_r");return 41;break;case 50:this.begin("rel");return 64;break;case 51:this.begin("birel");return 65;break;case 52:this.begin("rel_u");return 66;break;case 53:this.begin("rel_u");return 66;break;case 54:this.begin("rel_d");return 67;break;case 55:this.begin("rel_d");return 67;break;case 56:this.begin("rel_l");return 68;break;case 57:this.begin("rel_l");return 68;break;case 58:this.begin("rel_r");return 69;break;case 59:this.begin("rel_r");return 69;break;case 60:this.begin("rel_b");return 70;break;case 61:this.begin("rel_index");return 71;break;case 62:this.begin("update_el_style");return 72;break;case 63:this.begin("update_rel_style");return 73;break;case 64:this.begin("update_layout_config");return 74;break;case 65:return"EOF_IN_STRUCT";break;case 66:this.begin("attribute");return"ATTRIBUTE_EMPTY";break;case 67:this.begin("attribute");break;case 68:this.popState();this.popState();break;case 69:return 80;break;case 70:break;case 71:return 80;break;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";break;case 75:this.begin("string_kv");break;case 76:this.begin("string_kv_key");return"STR_KEY";break;case 77:this.popState();this.begin("string_kv_value");break;case 78:return"STR_VALUE";break;case 79:this.popState();this.popState();break;case 80:return"STR";break;case 81:return"LBRACE";break;case 82:return"RBRACE";break;case 83:return"SPACE";break;case 84:return"EOL";break;case 85:return 14;break}}),"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:false},acc_descr:{rules:[9],inclusive:false},acc_title:{rules:[7],inclusive:false},string_kv_value:{rules:[78,79],inclusive:false},string_kv_key:{rules:[77],inclusive:false},string_kv:{rules:[76],inclusive:false},string:{rules:[73,74],inclusive:false},attribute:{rules:[68,69,70,71,72,75,80],inclusive:false},update_layout_config:{rules:[65,66,67,68],inclusive:false},update_rel_style:{rules:[65,66,67,68],inclusive:false},update_el_style:{rules:[65,66,67,68],inclusive:false},rel_b:{rules:[65,66,67,68],inclusive:false},rel_r:{rules:[65,66,67,68],inclusive:false},rel_l:{rules:[65,66,67,68],inclusive:false},rel_d:{rules:[65,66,67,68],inclusive:false},rel_u:{rules:[65,66,67,68],inclusive:false},rel_bi:{rules:[],inclusive:false},rel:{rules:[65,66,67,68],inclusive:false},node_r:{rules:[65,66,67,68],inclusive:false},node_l:{rules:[65,66,67,68],inclusive:false},node:{rules:[65,66,67,68],inclusive:false},index:{rules:[],inclusive:false},rel_index:{rules:[65,66,67,68],inclusive:false},component_ext_queue:{rules:[],inclusive:false},component_ext_db:{rules:[65,66,67,68],inclusive:false},component_ext:{rules:[65,66,67,68],inclusive:false},component_queue:{rules:[65,66,67,68],inclusive:false},component_db:{rules:[65,66,67,68],inclusive:false},component:{rules:[65,66,67,68],inclusive:false},container_boundary:{rules:[65,66,67,68],inclusive:false},container_ext_queue:{rules:[65,66,67,68],inclusive:false},container_ext_db:{rules:[65,66,67,68],inclusive:false},container_ext:{rules:[65,66,67,68],inclusive:false},container_queue:{rules:[65,66,67,68],inclusive:false},container_db:{rules:[65,66,67,68],inclusive:false},container:{rules:[65,66,67,68],inclusive:false},birel:{rules:[65,66,67,68],inclusive:false},system_boundary:{rules:[65,66,67,68],inclusive:false},enterprise_boundary:{rules:[65,66,67,68],inclusive:false},boundary:{rules:[65,66,67,68],inclusive:false},system_ext_queue:{rules:[65,66,67,68],inclusive:false},system_ext_db:{rules:[65,66,67,68],inclusive:false},system_ext:{rules:[65,66,67,68],inclusive:false},system_queue:{rules:[65,66,67,68],inclusive:false},system_db:{rules:[65,66,67,68],inclusive:false},system:{rules:[65,66,67,68],inclusive:false},person_ext:{rules:[65,66,67,68],inclusive:false},person:{rules:[65,66,67,68],inclusive:false},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,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,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:true}}};return t}();it.lexer=nt;function st(){this.yy={}}(0,s.K2)(st,"Parser");st.prototype=it;it.Parser=st;return new st}();h.parser=h;var d=h;var u=[];var p=[""];var f="global";var y="";var b=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}];var g=[];var x="";var _=false;var m=4;var v=2;var k;var E=(0,s.K2)((function(){return k}),"getC4Type");var S=(0,s.K2)((function(t){let e=(0,n.jZ)(t,(0,n.D7)());k=e}),"setC4Type");var A=(0,s.K2)((function(t,e,a,r,i,n,s,l,o){if(t===void 0||t===null||e===void 0||e===null||a===void 0||a===null||r===void 0||r===null){return}let c={};const h=g.find((t=>t.from===e&&t.to===a));if(h){c=h}else{g.push(c)}c.type=t;c.from=e;c.to=a;c.label={text:r};if(i===void 0||i===null){c.techn={text:""}}else{if(typeof i==="object"){let[t,e]=Object.entries(i)[0];c[t]={text:e}}else{c.techn={text:i}}}if(n===void 0||n===null){c.descr={text:""}}else{if(typeof n==="object"){let[t,e]=Object.entries(n)[0];c[t]={text:e}}else{c.descr={text:n}}}if(typeof s==="object"){let[t,e]=Object.entries(s)[0];c[t]=e}else{c.sprite=s}if(typeof l==="object"){let[t,e]=Object.entries(l)[0];c[t]=e}else{c.tags=l}if(typeof o==="object"){let[t,e]=Object.entries(o)[0];c[t]=e}else{c.link=o}c.wrap=H()}),"addRel");var C=(0,s.K2)((function(t,e,a,r,i,n,s){if(e===null||a===null){return}let l={};const o=u.find((t=>t.alias===e));if(o&&e===o.alias){l=o}else{l.alias=e;u.push(l)}if(a===void 0||a===null){l.label={text:""}}else{l.label={text:a}}if(r===void 0||r===null){l.descr={text:""}}else{if(typeof r==="object"){let[t,e]=Object.entries(r)[0];l[t]={text:e}}else{l.descr={text:r}}}if(typeof i==="object"){let[t,e]=Object.entries(i)[0];l[t]=e}else{l.sprite=i}if(typeof n==="object"){let[t,e]=Object.entries(n)[0];l[t]=e}else{l.tags=n}if(typeof s==="object"){let[t,e]=Object.entries(s)[0];l[t]=e}else{l.link=s}l.typeC4Shape={text:t};l.parentBoundary=f;l.wrap=H()}),"addPersonOrSystem");var w=(0,s.K2)((function(t,e,a,r,i,n,s,l){if(e===null||a===null){return}let o={};const c=u.find((t=>t.alias===e));if(c&&e===c.alias){o=c}else{o.alias=e;u.push(o)}if(a===void 0||a===null){o.label={text:""}}else{o.label={text:a}}if(r===void 0||r===null){o.techn={text:""}}else{if(typeof r==="object"){let[t,e]=Object.entries(r)[0];o[t]={text:e}}else{o.techn={text:r}}}if(i===void 0||i===null){o.descr={text:""}}else{if(typeof i==="object"){let[t,e]=Object.entries(i)[0];o[t]={text:e}}else{o.descr={text:i}}}if(typeof n==="object"){let[t,e]=Object.entries(n)[0];o[t]=e}else{o.sprite=n}if(typeof s==="object"){let[t,e]=Object.entries(s)[0];o[t]=e}else{o.tags=s}if(typeof l==="object"){let[t,e]=Object.entries(l)[0];o[t]=e}else{o.link=l}o.wrap=H();o.typeC4Shape={text:t};o.parentBoundary=f}),"addContainer");var O=(0,s.K2)((function(t,e,a,r,i,n,s,l){if(e===null||a===null){return}let o={};const c=u.find((t=>t.alias===e));if(c&&e===c.alias){o=c}else{o.alias=e;u.push(o)}if(a===void 0||a===null){o.label={text:""}}else{o.label={text:a}}if(r===void 0||r===null){o.techn={text:""}}else{if(typeof r==="object"){let[t,e]=Object.entries(r)[0];o[t]={text:e}}else{o.techn={text:r}}}if(i===void 0||i===null){o.descr={text:""}}else{if(typeof i==="object"){let[t,e]=Object.entries(i)[0];o[t]={text:e}}else{o.descr={text:i}}}if(typeof n==="object"){let[t,e]=Object.entries(n)[0];o[t]=e}else{o.sprite=n}if(typeof s==="object"){let[t,e]=Object.entries(s)[0];o[t]=e}else{o.tags=s}if(typeof l==="object"){let[t,e]=Object.entries(l)[0];o[t]=e}else{o.link=l}o.wrap=H();o.typeC4Shape={text:t};o.parentBoundary=f}),"addComponent");var T=(0,s.K2)((function(t,e,a,r,i){if(t===null||e===null){return}let n={};const s=b.find((e=>e.alias===t));if(s&&t===s.alias){n=s}else{n.alias=t;b.push(n)}if(e===void 0||e===null){n.label={text:""}}else{n.label={text:e}}if(a===void 0||a===null){n.type={text:"system"}}else{if(typeof a==="object"){let[t,e]=Object.entries(a)[0];n[t]={text:e}}else{n.type={text:a}}}if(typeof r==="object"){let[t,e]=Object.entries(r)[0];n[t]=e}else{n.tags=r}if(typeof i==="object"){let[t,e]=Object.entries(i)[0];n[t]=e}else{n.link=i}n.parentBoundary=f;n.wrap=H();y=f;f=t;p.push(y)}),"addPersonOrSystemBoundary");var R=(0,s.K2)((function(t,e,a,r,i){if(t===null||e===null){return}let n={};const s=b.find((e=>e.alias===t));if(s&&t===s.alias){n=s}else{n.alias=t;b.push(n)}if(e===void 0||e===null){n.label={text:""}}else{n.label={text:e}}if(a===void 0||a===null){n.type={text:"container"}}else{if(typeof a==="object"){let[t,e]=Object.entries(a)[0];n[t]={text:e}}else{n.type={text:a}}}if(typeof r==="object"){let[t,e]=Object.entries(r)[0];n[t]=e}else{n.tags=r}if(typeof i==="object"){let[t,e]=Object.entries(i)[0];n[t]=e}else{n.link=i}n.parentBoundary=f;n.wrap=H();y=f;f=t;p.push(y)}),"addContainerBoundary");var D=(0,s.K2)((function(t,e,a,r,i,n,s,l){if(e===null||a===null){return}let o={};const c=b.find((t=>t.alias===e));if(c&&e===c.alias){o=c}else{o.alias=e;b.push(o)}if(a===void 0||a===null){o.label={text:""}}else{o.label={text:a}}if(r===void 0||r===null){o.type={text:"node"}}else{if(typeof r==="object"){let[t,e]=Object.entries(r)[0];o[t]={text:e}}else{o.type={text:r}}}if(i===void 0||i===null){o.descr={text:""}}else{if(typeof i==="object"){let[t,e]=Object.entries(i)[0];o[t]={text:e}}else{o.descr={text:i}}}if(typeof s==="object"){let[t,e]=Object.entries(s)[0];o[t]=e}else{o.tags=s}if(typeof l==="object"){let[t,e]=Object.entries(l)[0];o[t]=e}else{o.link=l}o.nodeType=t;o.parentBoundary=f;o.wrap=H();y=f;f=e;p.push(y)}),"addDeploymentNode");var N=(0,s.K2)((function(){f=y;p.pop();y=p.pop();p.push(y)}),"popBoundaryParseStack");var P=(0,s.K2)((function(t,e,a,r,i,n,s,l,o,c,h){let d=u.find((t=>t.alias===e));if(d===void 0){d=b.find((t=>t.alias===e));if(d===void 0){return}}if(a!==void 0&&a!==null){if(typeof a==="object"){let[t,e]=Object.entries(a)[0];d[t]=e}else{d.bgColor=a}}if(r!==void 0&&r!==null){if(typeof r==="object"){let[t,e]=Object.entries(r)[0];d[t]=e}else{d.fontColor=r}}if(i!==void 0&&i!==null){if(typeof i==="object"){let[t,e]=Object.entries(i)[0];d[t]=e}else{d.borderColor=i}}if(n!==void 0&&n!==null){if(typeof n==="object"){let[t,e]=Object.entries(n)[0];d[t]=e}else{d.shadowing=n}}if(s!==void 0&&s!==null){if(typeof s==="object"){let[t,e]=Object.entries(s)[0];d[t]=e}else{d.shape=s}}if(l!==void 0&&l!==null){if(typeof l==="object"){let[t,e]=Object.entries(l)[0];d[t]=e}else{d.sprite=l}}if(o!==void 0&&o!==null){if(typeof o==="object"){let[t,e]=Object.entries(o)[0];d[t]=e}else{d.techn=o}}if(c!==void 0&&c!==null){if(typeof c==="object"){let[t,e]=Object.entries(c)[0];d[t]=e}else{d.legendText=c}}if(h!==void 0&&h!==null){if(typeof h==="object"){let[t,e]=Object.entries(h)[0];d[t]=e}else{d.legendSprite=h}}}),"updateElStyle");var B=(0,s.K2)((function(t,e,a,r,i,n,s){const l=g.find((t=>t.from===e&&t.to===a));if(l===void 0){return}if(r!==void 0&&r!==null){if(typeof r==="object"){let[t,e]=Object.entries(r)[0];l[t]=e}else{l.textColor=r}}if(i!==void 0&&i!==null){if(typeof i==="object"){let[t,e]=Object.entries(i)[0];l[t]=e}else{l.lineColor=i}}if(n!==void 0&&n!==null){if(typeof n==="object"){let[t,e]=Object.entries(n)[0];l[t]=parseInt(e)}else{l.offsetX=parseInt(n)}}if(s!==void 0&&s!==null){if(typeof s==="object"){let[t,e]=Object.entries(s)[0];l[t]=parseInt(e)}else{l.offsetY=parseInt(s)}}}),"updateRelStyle");var j=(0,s.K2)((function(t,e,a){let r=m;let i=v;if(typeof e==="object"){const t=Object.values(e)[0];r=parseInt(t)}else{r=parseInt(e)}if(typeof a==="object"){const t=Object.values(a)[0];i=parseInt(t)}else{i=parseInt(a)}if(r>=1){m=r}if(i>=1){v=i}}),"updateLayoutConfig");var I=(0,s.K2)((function(){return m}),"getC4ShapeInRow");var M=(0,s.K2)((function(){return v}),"getC4BoundaryInRow");var K=(0,s.K2)((function(){return f}),"getCurrentBoundaryParse");var L=(0,s.K2)((function(){return y}),"getParentBoundaryParse");var Y=(0,s.K2)((function(t){if(t===void 0||t===null){return u}else{return u.filter((e=>e.parentBoundary===t))}}),"getC4ShapeArray");var U=(0,s.K2)((function(t){return u.find((e=>e.alias===t))}),"getC4Shape");var F=(0,s.K2)((function(t){return Object.keys(Y(t))}),"getC4ShapeKeys");var X=(0,s.K2)((function(t){if(t===void 0||t===null){return b}else{return b.filter((e=>e.parentBoundary===t))}}),"getBoundaries");var z=X;var W=(0,s.K2)((function(){return g}),"getRels");var Q=(0,s.K2)((function(){return x}),"getTitle");var $=(0,s.K2)((function(t){_=t}),"setWrap");var H=(0,s.K2)((function(){return _}),"autoWrap");var q=(0,s.K2)((function(){u=[];b=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}];y="";f="global";p=[""];g=[];p=[""];x="";_=false;m=4;v=2}),"clear");var V={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};var G={FILLED:0,OPEN:1};var J={LEFTOF:0,RIGHTOF:1,OVER:2};var Z=(0,s.K2)((function(t){let e=(0,n.jZ)(t,(0,n.D7)());x=e}),"setTitle");var tt={addPersonOrSystem:C,addPersonOrSystemBoundary:T,addContainer:w,addContainerBoundary:R,addComponent:O,addDeploymentNode:D,popBoundaryParseStack:N,addRel:A,updateElStyle:P,updateRelStyle:B,updateLayoutConfig:j,autoWrap:H,setWrap:$,getC4ShapeArray:Y,getC4Shape:U,getC4ShapeKeys:F,getBoundaries:X,getBoundarys:z,getCurrentBoundaryParse:K,getParentBoundaryParse:L,getRels:W,getTitle:Q,getC4Type:E,getC4ShapeInRow:I,getC4BoundaryInRow:M,setAccTitle:n.SV,getAccTitle:n.iN,getAccDescription:n.m7,setAccDescription:n.EI,getConfig:(0,s.K2)((()=>(0,n.D7)().c4),"getConfig"),clear:q,LINETYPE:V,ARROWTYPE:G,PLACEMENT:J,setTitle:Z,setC4Type:S};var et=(0,s.K2)((function(t,e){return(0,r.tk)(t,e)}),"drawRect");var at=(0,s.K2)((function(t,e,a,r,i,n){const s=t.append("image");s.attr("width",e);s.attr("height",a);s.attr("x",r);s.attr("y",i);let l=n.startsWith("data:image/png;base64")?n:(0,o.J)(n);s.attr("xlink:href",l)}),"drawImage");var rt=(0,s.K2)(((t,e,a)=>{const r=t.append("g");let i=0;for(let n of e){let t=n.textColor?n.textColor:"#444444";let e=n.lineColor?n.lineColor:"#444444";let s=n.offsetX?parseInt(n.offsetX):0;let l=n.offsetY?parseInt(n.offsetY):0;let o="";if(i===0){let t=r.append("line");t.attr("x1",n.startPoint.x);t.attr("y1",n.startPoint.y);t.attr("x2",n.endPoint.x);t.attr("y2",n.endPoint.y);t.attr("stroke-width","1");t.attr("stroke",e);t.style("fill","none");if(n.type!=="rel_b"){t.attr("marker-end","url("+o+"#arrowhead)")}if(n.type==="birel"||n.type==="rel_b"){t.attr("marker-start","url("+o+"#arrowend)")}i=-1}else{let t=r.append("path");t.attr("fill","none").attr("stroke-width","1").attr("stroke",e).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",n.startPoint.x).replaceAll("starty",n.startPoint.y).replaceAll("controlx",n.startPoint.x+(n.endPoint.x-n.startPoint.x)/2-(n.endPoint.x-n.startPoint.x)/4).replaceAll("controly",n.startPoint.y+(n.endPoint.y-n.startPoint.y)/2).replaceAll("stopx",n.endPoint.x).replaceAll("stopy",n.endPoint.y));if(n.type!=="rel_b"){t.attr("marker-end","url("+o+"#arrowhead)")}if(n.type==="birel"||n.type==="rel_b"){t.attr("marker-start","url("+o+"#arrowend)")}}let c=a.messageFont();yt(a)(n.label.text,r,Math.min(n.startPoint.x,n.endPoint.x)+Math.abs(n.endPoint.x-n.startPoint.x)/2+s,Math.min(n.startPoint.y,n.endPoint.y)+Math.abs(n.endPoint.y-n.startPoint.y)/2+l,n.label.width,n.label.height,{fill:t},c);if(n.techn&&n.techn.text!==""){c=a.messageFont();yt(a)("["+n.techn.text+"]",r,Math.min(n.startPoint.x,n.endPoint.x)+Math.abs(n.endPoint.x-n.startPoint.x)/2+s,Math.min(n.startPoint.y,n.endPoint.y)+Math.abs(n.endPoint.y-n.startPoint.y)/2+a.messageFontSize+5+l,Math.max(n.label.width,n.techn.width),n.techn.height,{fill:t,"font-style":"italic"},c)}}}),"drawRels");var it=(0,s.K2)((function(t,e,a){const r=t.append("g");let i=e.bgColor?e.bgColor:"none";let n=e.borderColor?e.borderColor:"#444444";let s=e.fontColor?e.fontColor:"black";let l={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};if(e.nodeType){l={"stroke-width":1}}let o={x:e.x,y:e.y,fill:i,stroke:n,width:e.width,height:e.height,rx:2.5,ry:2.5,attrs:l};et(r,o);let c=a.boundaryFont();c.fontWeight="bold";c.fontSize=c.fontSize+2;c.fontColor=s;yt(a)(e.label.text,r,e.x,e.y+e.label.Y,e.width,e.height,{fill:"#444444"},c);if(e.type&&e.type.text!==""){c=a.boundaryFont();c.fontColor=s;yt(a)(e.type.text,r,e.x,e.y+e.type.Y,e.width,e.height,{fill:"#444444"},c)}if(e.descr&&e.descr.text!==""){c=a.boundaryFont();c.fontSize=c.fontSize-2;c.fontColor=s;yt(a)(e.descr.text,r,e.x,e.y+e.descr.Y,e.width,e.height,{fill:"#444444"},c)}}),"drawBoundary");var nt=(0,s.K2)((function(t,e,a){let i=e.bgColor?e.bgColor:a[e.typeC4Shape.text+"_bg_color"];let n=e.borderColor?e.borderColor:a[e.typeC4Shape.text+"_border_color"];let s=e.fontColor?e.fontColor:"#FFFFFF";let l="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(e.typeC4Shape.text){case"person":l="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":l="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}const o=t.append("g");o.attr("class","person-man");const c=(0,r.PB)();switch(e.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":c.x=e.x;c.y=e.y;c.fill=i;c.width=e.width;c.height=e.height;c.stroke=n;c.rx=2.5;c.ry=2.5;c.attrs={"stroke-width":.5};et(o,c);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":o.append("path").attr("fill",i).attr("stroke-width","0.5").attr("stroke",n).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2).replaceAll("height",e.height));o.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",n).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("half",e.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":o.append("path").attr("fill",i).attr("stroke-width","0.5").attr("stroke",n).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",e.x).replaceAll("starty",e.y).replaceAll("width",e.width).replaceAll("half",e.height/2));o.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",n).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",e.x+e.width).replaceAll("starty",e.y).replaceAll("half",e.height/2));break}let h=ft(a,e.typeC4Shape.text);o.append("text").attr("fill",s).attr("font-family",h.fontFamily).attr("font-size",h.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",e.typeC4Shape.width).attr("x",e.x+e.width/2-e.typeC4Shape.width/2).attr("y",e.y+e.typeC4Shape.Y).text("<<"+e.typeC4Shape.text+">>");switch(e.typeC4Shape.text){case"person":case"external_person":at(o,48,48,e.x+e.width/2-24,e.y+e.image.Y,l);break}let d=a[e.typeC4Shape.text+"Font"]();d.fontWeight="bold";d.fontSize=d.fontSize+2;d.fontColor=s;yt(a)(e.label.text,o,e.x,e.y+e.label.Y,e.width,e.height,{fill:s},d);d=a[e.typeC4Shape.text+"Font"]();d.fontColor=s;if(e.techn&&e.techn?.text!==""){yt(a)(e.techn.text,o,e.x,e.y+e.techn.Y,e.width,e.height,{fill:s,"font-style":"italic"},d)}else if(e.type&&e.type.text!==""){yt(a)(e.type.text,o,e.x,e.y+e.type.Y,e.width,e.height,{fill:s,"font-style":"italic"},d)}if(e.descr&&e.descr.text!==""){d=a.personFont();d.fontColor=s;yt(a)(e.descr.text,o,e.x,e.y+e.descr.Y,e.width,e.height,{fill:s},d)}return e.height}),"drawC4Shape");var st=(0,s.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 lt=(0,s.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 ot=(0,s.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 ct=(0,s.K2)((function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")}),"insertArrowHead");var ht=(0,s.K2)((function(t){t.append("defs").append("marker").attr("id","arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")}),"insertArrowEnd");var dt=(0,s.K2)((function(t){t.append("defs").append("marker").attr("id","filled-head").attr("refX",18).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 ut=(0,s.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)}),"insertDynamicNumber");var pt=(0,s.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",16).attr("refY",4);a.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z");a.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")}),"insertArrowCrossHead");var ft=(0,s.K2)(((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]})),"getC4ShapeFont");var yt=function(){function t(t,e,a,i,n,s,l){const o=e.append("text").attr("x",a+n/2).attr("y",i+s/2+5).style("text-anchor","middle").text(t);r(o,l)}(0,s.K2)(t,"byText");function e(t,e,a,i,s,l,o,c){const{fontSize:h,fontFamily:d,fontWeight:u}=c;const p=t.split(n.Y2.lineBreakRegex);for(let n=0;n=this.data.widthLimit||a>=this.data.widthLimit||this.nextData.cnt>_t){e=this.nextData.startx+t.margin+vt.nextLinePaddingX;r=this.nextData.stopy+t.margin*2;this.nextData.stopx=a=e+t.width;this.nextData.starty=this.nextData.stopy;this.nextData.stopy=i=r+t.height;this.nextData.cnt=1}t.x=e;t.y=r;this.updateVal(this.data,"startx",e,Math.min);this.updateVal(this.data,"starty",r,Math.min);this.updateVal(this.data,"stopx",a,Math.max);this.updateVal(this.data,"stopy",i,Math.max);this.updateVal(this.nextData,"startx",e,Math.min);this.updateVal(this.nextData,"starty",r,Math.min);this.updateVal(this.nextData,"stopx",a,Math.max);this.updateVal(this.nextData,"stopy",i,Math.max)}init(t){this.name="";this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0};this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0};Et(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t;this.data.stopy+=t}};var Et=(0,s.K2)((function(t){(0,n.hH)(vt,t);if(t.fontFamily){vt.personFontFamily=vt.systemFontFamily=vt.messageFontFamily=t.fontFamily}if(t.fontSize){vt.personFontSize=vt.systemFontSize=vt.messageFontSize=t.fontSize}if(t.fontWeight){vt.personFontWeight=vt.systemFontWeight=vt.messageFontWeight=t.fontWeight}}),"setConf");var St=(0,s.K2)(((t,e)=>({fontFamily:t[e+"FontFamily"],fontSize:t[e+"FontSize"],fontWeight:t[e+"FontWeight"]})),"c4ShapeFont");var At=(0,s.K2)((t=>({fontFamily:t.boundaryFontFamily,fontSize:t.boundaryFontSize,fontWeight:t.boundaryFontWeight})),"boundaryFont");var Ct=(0,s.K2)((t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight})),"messageFont");function wt(t,e,a,r,s){if(!e[t].width){if(a){e[t].text=(0,i.bH)(e[t].text,s,r);e[t].textLines=e[t].text.split(n.Y2.lineBreakRegex).length;e[t].width=s;e[t].height=(0,i.ru)(e[t].text,r)}else{let a=e[t].text.split(n.Y2.lineBreakRegex);e[t].textLines=a.length;let s=0;e[t].height=0;e[t].width=0;for(const n of a){e[t].width=Math.max((0,i.Un)(n,r),e[t].width);s=(0,i.ru)(n,r);e[t].height=e[t].height+s}}}}(0,s.K2)(wt,"calcC4ShapeTextWH");var Ot=(0,s.K2)((function(t,e,a){e.x=a.data.startx;e.y=a.data.starty;e.width=a.data.stopx-a.data.startx;e.height=a.data.stopy-a.data.starty;e.label.y=vt.c4ShapeMargin-35;let r=e.wrap&&vt.wrap;let n=At(vt);n.fontSize=n.fontSize+2;n.fontWeight="bold";let s=(0,i.Un)(e.label.text,n);wt("label",e,r,n,s);bt.drawBoundary(t,e,vt)}),"drawBoundary");var Tt=(0,s.K2)((function(t,e,a,r){let n=0;for(const s of r){n=0;const r=a[s];let l=St(vt,r.typeC4Shape.text);l.fontSize=l.fontSize-2;r.typeC4Shape.width=(0,i.Un)("«"+r.typeC4Shape.text+"»",l);r.typeC4Shape.height=l.fontSize+2;r.typeC4Shape.Y=vt.c4ShapePadding;n=r.typeC4Shape.Y+r.typeC4Shape.height-4;r.image={width:0,height:0,Y:0};switch(r.typeC4Shape.text){case"person":case"external_person":r.image.width=48;r.image.height=48;r.image.Y=n;n=r.image.Y+r.image.height;break}if(r.sprite){r.image.width=48;r.image.height=48;r.image.Y=n;n=r.image.Y+r.image.height}let o=r.wrap&&vt.wrap;let c=vt.width-vt.c4ShapePadding*2;let h=St(vt,r.typeC4Shape.text);h.fontSize=h.fontSize+2;h.fontWeight="bold";wt("label",r,o,h,c);r.label.Y=n+8;n=r.label.Y+r.label.height;if(r.type&&r.type.text!==""){r.type.text="["+r.type.text+"]";let t=St(vt,r.typeC4Shape.text);wt("type",r,o,t,c);r.type.Y=n+5;n=r.type.Y+r.type.height}else if(r.techn&&r.techn.text!==""){r.techn.text="["+r.techn.text+"]";let t=St(vt,r.techn.text);wt("techn",r,o,t,c);r.techn.Y=n+5;n=r.techn.Y+r.techn.height}let d=n;let u=r.label.width;if(r.descr&&r.descr.text!==""){let t=St(vt,r.typeC4Shape.text);wt("descr",r,o,t,c);r.descr.Y=n+20;n=r.descr.Y+r.descr.height;u=Math.max(r.label.width,r.descr.width);d=n-r.descr.textLines*5}u=u+vt.c4ShapePadding;r.width=Math.max(r.width||vt.width,u,vt.width);r.height=Math.max(r.height||vt.height,d,vt.height);r.margin=r.margin||vt.c4ShapeMargin;t.insert(r);bt.drawC4Shape(e,r,vt)}t.bumpLastMargin(vt.c4ShapeMargin)}),"drawC4ShapeArray");var Rt=class{static{(0,s.K2)(this,"Point")}constructor(t,e){this.x=t;this.y=e}};var Dt=(0,s.K2)((function(t,e){let a=t.x;let r=t.y;let i=e.x;let n=e.y;let s=a+t.width/2;let l=r+t.height/2;let o=Math.abs(a-i);let c=Math.abs(r-n);let h=c/o;let d=t.height/t.width;let u=null;if(r==n&&ai){u=new Rt(a,l)}else if(a==i&&rn){u=new Rt(s,r)}if(a>i&&r=h){u=new Rt(a,l+h*t.width/2)}else{u=new Rt(s-o/c*t.height/2,r+t.height)}}else if(a=h){u=new Rt(a+t.width,l+h*t.width/2)}else{u=new Rt(s+o/c*t.height/2,r+t.height)}}else if(an){if(d>=h){u=new Rt(a+t.width,l-h*t.width/2)}else{u=new Rt(s+t.height/2*o/c,r)}}else if(a>i&&r>n){if(d>=h){u=new Rt(a,l-t.width/2*h)}else{u=new Rt(s-t.height/2*o/c,r)}}return u}),"getIntersectPoint");var Nt=(0,s.K2)((function(t,e){let a={x:0,y:0};a.x=e.x+e.width/2;a.y=e.y+e.height/2;let r=Dt(t,a);a.x=t.x+t.width/2;a.y=t.y+t.height/2;let i=Dt(e,a);return{startPoint:r,endPoint:i}}),"getIntersectPoints");var Pt=(0,s.K2)((function(t,e,a,r){let n=0;for(let s of e){n=n+1;let t=s.wrap&&vt.wrap;let e=Ct(vt);let l=r.db.getC4Type();if(l==="C4Dynamic"){s.label.text=n+": "+s.label.text}let o=(0,i.Un)(s.label.text,e);wt("label",s,t,e,o);if(s.techn&&s.techn.text!==""){o=(0,i.Un)(s.techn.text,e);wt("techn",s,t,e,o)}if(s.descr&&s.descr.text!==""){o=(0,i.Un)(s.descr.text,e);wt("descr",s,t,e,o)}let c=a(s.from);let h=a(s.to);let d=Nt(c,h);s.startPoint=d.startPoint;s.endPoint=d.endPoint}bt.drawRels(t,e,vt)}),"drawRels");function Bt(t,e,a,r,i){let n=new kt(i);n.data.widthLimit=a.data.widthLimit/Math.min(mt,r.length);for(let[s,l]of r.entries()){let r=0;l.image={width:0,height:0,Y:0};if(l.sprite){l.image.width=48;l.image.height=48;l.image.Y=r;r=l.image.Y+l.image.height}let o=l.wrap&&vt.wrap;let c=At(vt);c.fontSize=c.fontSize+2;c.fontWeight="bold";wt("label",l,o,c,n.data.widthLimit);l.label.Y=r+8;r=l.label.Y+l.label.height;if(l.type&&l.type.text!==""){l.type.text="["+l.type.text+"]";let t=At(vt);wt("type",l,o,t,n.data.widthLimit);l.type.Y=r+5;r=l.type.Y+l.type.height}if(l.descr&&l.descr.text!==""){let t=At(vt);t.fontSize=t.fontSize-2;wt("descr",l,o,t,n.data.widthLimit);l.descr.Y=r+20;r=l.descr.Y+l.descr.height}if(s==0||s%mt===0){let t=a.data.startx+vt.diagramMarginX;let e=a.data.stopy+vt.diagramMarginY+r;n.setData(t,t,e,e)}else{let t=n.data.stopx!==n.data.startx?n.data.stopx+vt.diagramMarginX:n.data.startx;let e=n.data.starty;n.setData(t,t,e,e)}n.name=l.alias;let h=i.db.getC4ShapeArray(l.alias);let d=i.db.getC4ShapeKeys(l.alias);if(d.length>0){Tt(n,t,h,d)}e=l.alias;let u=i.db.getBoundaries(e);if(u.length>0){Bt(t,e,n,u,i)}if(l.alias!=="global"){Ot(t,l,n)}a.data.stopy=Math.max(n.data.stopy+vt.c4ShapeMargin,a.data.stopy);a.data.stopx=Math.max(n.data.stopx+vt.c4ShapeMargin,a.data.stopx);gt=Math.max(gt,a.data.stopx);xt=Math.max(xt,a.data.stopy)}}(0,s.K2)(Bt,"drawInsideBoundary");var jt=(0,s.K2)((function(t,e,a,r){vt=(0,n.D7)().c4;const i=(0,n.D7)().securityLevel;let o;if(i==="sandbox"){o=(0,l.Ltv)("#i"+e)}const c=i==="sandbox"?(0,l.Ltv)(o.nodes()[0].contentDocument.body):(0,l.Ltv)("body");let h=r.db;r.db.setWrap(vt.wrap);_t=h.getC4ShapeInRow();mt=h.getC4BoundaryInRow();s.Rm.debug(`C:${JSON.stringify(vt,null,2)}`);const d=i==="sandbox"?c.select(`[id="${e}"]`):(0,l.Ltv)(`[id="${e}"]`);bt.insertComputerIcon(d);bt.insertDatabaseIcon(d);bt.insertClockIcon(d);let u=new kt(r);u.setData(vt.diagramMarginX,vt.diagramMarginX,vt.diagramMarginY,vt.diagramMarginY);u.data.widthLimit=screen.availWidth;gt=vt.diagramMarginX;xt=vt.diagramMarginY;const p=r.db.getTitle();let f=r.db.getBoundaries("");Bt(d,"",u,f,r);bt.insertArrowHead(d);bt.insertArrowEnd(d);bt.insertArrowCrossHead(d);bt.insertArrowFilledHead(d);Pt(d,r.db.getRels(),r.db.getC4Shape,r);u.data.stopx=gt;u.data.stopy=xt;const y=u.data;let b=y.stopy-y.starty;let g=b+2*vt.diagramMarginY;let x=y.stopx-y.startx;const _=x+2*vt.diagramMarginX;if(p){d.append("text").text(p).attr("x",(y.stopx-y.startx)/2-4*vt.diagramMarginX).attr("y",y.starty+vt.diagramMarginY)}(0,n.a$)(d,g,_,vt.useMaxWidth);const m=p?60:0;d.attr("viewBox",y.startx-vt.diagramMarginX+" -"+(vt.diagramMarginY+m)+" "+_+" "+(g+m));s.Rm.debug(`models:`,y)}),"draw");var It={drawPersonOrSystemArray:Tt,drawBoundary:Ot,setConf:Et,draw:jt};var Mt=(0,s.K2)((t=>`.person {\n stroke: ${t.personBorder};\n fill: ${t.personBkg};\n }\n`),"getStyles");var Kt=Mt;var Lt={parser:d,db:tt,renderer:It,styles:Kt,init:(0,s.K2)((({c4:t,wrap:e})=>{It.setConf(t);tt.setWrap(e)}),"init")}},30242:(t,e,a)=>{a.d(e,{CP:()=>h,HT:()=>u,PB:()=>d,aC:()=>c,lC:()=>l,m:()=>o,tk:()=>s});var r=a(42418);var i=a(70416);var n=a(16750);var s=(0,i.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 l=(0,i.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 r=s(t,a);r.lower()}),"drawBackgroundRect");var o=(0,i.K2)(((t,e)=>{const a=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 n=i.append("tspan");n.attr("x",e.x+e.textMargin*2);n.text(a);return i}),"drawText");var c=(0,i.K2)(((t,e,a,r)=>{const i=t.append("image");i.attr("x",e);i.attr("y",a);const s=(0,n.J)(r);i.attr("xlink:href",s)}),"drawImage");var h=(0,i.K2)(((t,e,a,r)=>{const i=t.append("use");i.attr("x",e);i.attr("y",a);const s=(0,n.J)(r);i.attr("xlink:href",`#${s}`)}),"drawEmbeddedImage");var d=(0,i.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,i.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")}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/7425.f1c25f6c8aaec77e8635.js b/share/jupyter/lab/static/7425.f1c25f6c8aaec77e8635.js new file mode 100644 index 0000000..ff9bef6 --- /dev/null +++ b/share/jupyter/lab/static/7425.f1c25f6c8aaec77e8635.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7425],{37425:(e,O,t)=>{t.r(O);t.d(O,{css:()=>J,cssCompletionSource:()=>K,cssLanguage:()=>L,defineCSSCompletionSource:()=>B});var a=t(27421);var o=t(45145);const r=99,l=1,i=100,n=101,s=2;const d=[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=58,p=40,Q=95,u=91,m=45,g=46,S=35,f=37,h=38,y=92,b=10;function $(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function P(e){return e>=48&&e<=57}const X=new a.Lu(((e,O)=>{for(let t=false,a=0,o=0;;o++){let{next:r}=e;if($(r)||r==m||r==Q||t&&P(r)){if(!t&&(r!=m||o>0))t=true;if(a===o&&r==m)a++;e.advance()}else if(r==y&&e.peek(1)!=b){e.advance();if(e.next>-1)e.advance();t=true}else{if(t)e.acceptToken(r==p?i:a==2&&O.canShift(s)?s:n);break}}}));const w=new a.Lu((e=>{if(d.includes(e.peek(-1))){let{next:O}=e;if($(O)||O==Q||O==S||O==g||O==u||O==c&&$(e.peek(1))||O==m||O==h)e.acceptToken(r)}}));const k=new a.Lu((e=>{if(!d.includes(e.peek(-1))){let{next:O}=e;if(O==f){e.advance();e.acceptToken(l)}if($(O)){do{e.advance()}while($(e.next)||P(e.next));e.acceptToken(l)}}}));const v=(0,o.styleTags)({"AtKeyword import charset namespace keyframes media supports":o.tags.definitionKeyword,"from to selector":o.tags.keyword,NamespaceName:o.tags.namespace,KeyframeName:o.tags.labelName,KeyframeRangeName:o.tags.operatorKeyword,TagName:o.tags.tagName,ClassName:o.tags.className,PseudoClassName:o.tags.constant(o.tags.className),IdName:o.tags.labelName,"FeatureName PropertyName":o.tags.propertyName,AttributeName:o.tags.attributeName,NumberLiteral:o.tags.number,KeywordQuery:o.tags.keyword,UnaryQueryOp:o.tags.operatorKeyword,"CallTag ValueName":o.tags.atom,VariableName:o.tags.variableName,Callee:o.tags.operatorKeyword,Unit:o.tags.unit,"UniversalSelector NestingSelector":o.tags.definitionOperator,MatchOp:o.tags.compareOperator,"ChildOp SiblingOp, LogicOp":o.tags.logicOperator,BinOp:o.tags.arithmeticOperator,Important:o.tags.modifier,Comment:o.tags.blockComment,ColorLiteral:o.tags.color,"ParenthesizedContent StringLiteral":o.tags.string,":":o.tags.punctuation,"PseudoOp #":o.tags.derefOperator,"; ,":o.tags.separator,"( )":o.tags.paren,"[ ]":o.tags.squareBracket,"{ }":o.tags.brace});const z={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:138};const x={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168};const T={__proto__:null,not:132,only:132};const W=a.U1.deserialize({version:14,states:":jQYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DTO$vQ[O'#DWOOQP'#Em'#EmO${QdO'#DgO%jQ[O'#DtO${QdO'#DvO%{Q[O'#DxO&WQ[O'#D{O&`Q[O'#ERO&nQ[O'#ETOOQS'#El'#ElOOQS'#EW'#EWQYQ[OOO&uQXO'#CdO'jQWO'#DcO'oQWO'#EsO'zQ[O'#EsQOQWOOP(UO#tO'#C_POOO)C@[)C@[OOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(aQ[O'#E[O({QWO,58{O)TQ[O,59SO$qQ[O,59oO$vQ[O,59rO(aQ[O,59uO(aQ[O,59wO(aQ[O,59xO)`Q[O'#DbOOQS,58{,58{OOQP'#Ck'#CkOOQO'#DR'#DROOQP,59S,59SO)gQWO,59SO)lQWO,59SOOQP'#DV'#DVOOQP,59o,59oOOQO'#DX'#DXO)qQ`O,59rOOQS'#Cp'#CpO${QdO'#CqO)yQvO'#CsO+ZQtO,5:ROOQO'#Cx'#CxO)lQWO'#CwO+oQWO'#CyO+tQ[O'#DOOOQS'#Ep'#EpOOQO'#Dj'#DjO+|Q[O'#DqO,[QWO'#EtO&`Q[O'#DoO,jQWO'#DrOOQO'#Eu'#EuO)OQWO,5:`O,oQpO,5:bOOQS'#Dz'#DzO,wQWO,5:dO,|Q[O,5:dOOQO'#D}'#D}O-UQWO,5:gO-ZQWO,5:mO-cQWO,5:oOOQS-E8U-E8UO-kQdO,59}O-{Q[O'#E^O.YQWO,5;_O.YQWO,5;_POOO'#EV'#EVP.eO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO/[QXO,5:vOOQO-E8Y-E8YOOQS1G.g1G.gOOQP1G.n1G.nO)gQWO1G.nO)lQWO1G.nOOQP1G/Z1G/ZO/iQ`O1G/^O0SQXO1G/aO0jQXO1G/cO1QQXO1G/dO1hQWO,59|O1mQ[O'#DSO1tQdO'#CoOOQP1G/^1G/^O${QdO1G/^O1{QpO,59]OOQS,59_,59_O${QdO,59aO2TQWO1G/mOOQS,59c,59cO2YQ!bO,59eOOQS'#DP'#DPOOQS'#EY'#EYO2eQ[O,59jOOQS,59j,59jO2mQWO'#DjO2xQWO,5:VO2}QWO,5:]O&`Q[O,5:XO&`Q[O'#E_O3VQWO,5;`O3bQWO,5:ZO(aQ[O,5:^OOQS1G/z1G/zOOQS1G/|1G/|OOQS1G0O1G0OO3sQWO1G0OO3xQdO'#EOOOQS1G0R1G0ROOQS1G0X1G0XOOQS1G0Z1G0ZO4TQtO1G/iOOQO1G/i1G/iOOQO,5:x,5:xO4kQ[O,5:xOOQO-E8[-E8[O4xQWO1G0yPOOO-E8T-E8TPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$x7+$xO${QdO7+$xOOQS1G/h1G/hO5TQXO'#ErO5[QWO,59nO5aQtO'#EXO6XQdO'#EoO6cQWO,59ZO6hQpO7+$xOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%X7+%XOOQS1G/P1G/PO6pQWO1G/POOQS-E8W-E8WOOQS1G/U1G/UO${QdO1G/qOOQO1G/w1G/wOOQO1G/s1G/sO6uQWO,5:yOOQO-E8]-E8]O7TQXO1G/xOOQS7+%j7+%jO7[QYO'#CsOOQO'#EQ'#EQO7gQ`O'#EPOOQO'#EP'#EPO7rQWO'#E`O7zQdO,5:jOOQS,5:j,5:jO8VQtO'#E]O${QdO'#E]O9WQdO7+%TOOQO7+%T7+%TOOQO1G0d1G0dO9kQpO<OAN>OO;]QdO,5:uOOQO-E8X-E8XOOQO<T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#e[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l[[o`#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSt^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#bQOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#[~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!Y^Oy%^z;'S%^;'S;=`%o<%lO%^dCoS|SOy%^z;'S%^;'S;=`%o<%lO%^bDQU!OQOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS!OQo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[![Qo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^nFfSq^Oy%^z;'S%^;'S;=`%o<%lO%^nFwSp^Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!bQo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!TUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!S^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!RQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[w,k,X,1,2,3,4,new a.uC("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>z[e]||-1},{term:58,get:e=>x[e]||-1},{term:101,get:e=>T[e]||-1}],tokenPrec:1219});var R=t(4452);var U=t(66575);let Y=null;function q(){if(!Y&&typeof document=="object"&&document.body){let{style:e}=document.body,O=[],t=new Set;for(let a in e)if(a!="cssText"&&a!="cssFloat"){if(typeof e[a]=="string"){if(/[A-Z]/.test(a))a=a.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()));if(!t.has(a)){O.push(a);t.add(a)}}}Y=O.sort().map((e=>({type:"property",label:e,apply:e+": "})))}return Y||[]}const Z=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map((e=>({type:"class",label:e})));const C=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","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-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","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","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","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","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map((e=>({type:"keyword",label:e}))).concat(["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"].map((e=>({type:"constant",label:e}))));const _=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map((e=>({type:"type",label:e})));const E=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map((e=>({type:"keyword",label:e})));const G=/^(\w[\w-]*|-\w[\w-]*|)$/,V=/^-(-[\w-]*)?$/;function N(e,O){var t;if(e.name=="("||e.type.isError)e=e.parent||e;if(e.name!="ArgList")return false;let a=(t=e.parent)===null||t===void 0?void 0:t.firstChild;if((a===null||a===void 0?void 0:a.name)!="Callee")return false;return O.sliceString(a.from,a.to)=="var"}const j=new U.NodeWeakMap;const D=["Declaration"];function I(e){for(let O=e;;){if(O.type.isTop)return O;if(!(O=O.parent))return e}}function F(e,O,t){if(O.to-O.from>4096){let a=j.get(O);if(a)return a;let o=[],r=new Set,l=O.cursor(U.IterMode.IncludeAnonymous);if(l.firstChild())do{for(let O of F(e,l.node,t))if(!r.has(O.label)){r.add(O.label);o.push(O)}}while(l.nextSibling());j.set(O,o);return o}else{let a=[],o=new Set;O.cursor().iterate((O=>{var r;if(t(O)&&O.matchContext(D)&&((r=O.node.nextSibling)===null||r===void 0?void 0:r.name)==":"){let t=e.sliceString(O.from,O.to);if(!o.has(t)){o.add(t);a.push({label:t,type:"variable"})}}}));return a}}const B=e=>O=>{let{state:t,pos:a}=O,o=(0,R.syntaxTree)(t).resolveInner(a,-1);let r=o.type.isError&&o.from==o.to-1&&t.doc.sliceString(o.from,o.to)=="-";if(o.name=="PropertyName"||(r||o.name=="TagName")&&/^(Block|Styles)$/.test(o.resolve(o.to).name))return{from:o.from,options:q(),validFor:G};if(o.name=="ValueName")return{from:o.from,options:C,validFor:G};if(o.name=="PseudoClassName")return{from:o.from,options:Z,validFor:G};if(e(o)||(O.explicit||r)&&N(o,t.doc))return{from:e(o)||r?o.from:a,options:F(t.doc,I(o),e),validFor:V};if(o.name=="TagName"){for(let{parent:e}=o;e;e=e.parent)if(e.name=="Block")return{from:o.from,options:q(),validFor:G};return{from:o.from,options:_,validFor:G}}if(o.name=="AtKeyword")return{from:o.from,options:E,validFor:G};if(!O.explicit)return null;let l=o.resolve(a),i=l.childBefore(a);if(i&&i.name==":"&&l.name=="PseudoClassSelector")return{from:a,options:Z,validFor:G};if(i&&i.name==":"&&l.name=="Declaration"||l.name=="ArgList")return{from:a,options:C,validFor:G};if(l.name=="Block"||l.name=="Styles")return{from:a,options:q(),validFor:G};return null};const K=B((e=>e.name=="VariableName"));const L=R.LRLanguage.define({name:"css",parser:W.configure({props:[R.indentNodeProp.add({Declaration:(0,R.continuedIndent)()}),R.foldNodeProp.add({"Block KeyframeList":R.foldInside})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function J(){return new R.LanguageSupport(L,L.data.of({autocomplete:K}))}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/7445.7c793c8e1720f8ec4f85.js b/share/jupyter/lab/static/7445.7c793c8e1720f8ec4f85.js new file mode 100644 index 0000000..4b96d5d --- /dev/null +++ b/share/jupyter/lab/static/7445.7c793c8e1720f8ec4f85.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7445],{57445:(e,t,n)=>{n.r(t);n.d(t,{oz:()=>g});function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var a=/[\^@!\|<>#~\.\*\-\+\\/,=]/;var i=/(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/;var u=/(:::)|(\.\.\.)|(=<:)|(>=:)/;var o=["in","then","else","of","elseof","elsecase","elseif","catch","finally","with","require","prepare","import","export","define","do"];var c=["end"];var f=r(["true","false","nil","unit"]);var s=r(["andthen","at","attr","declare","feat","from","lex","mod","div","mode","orelse","parser","prod","prop","scanner","self","syn","token"]);var l=r(["local","proc","fun","case","class","if","cond","or","dis","choice","not","thread","try","raise","lock","for","suchthat","meth","functor"]);var h=r(o);var d=r(c);function m(e,t){if(e.eatSpace()){return null}if(e.match(/[{}]/)){return"bracket"}if(e.match("[]")){return"keyword"}if(e.match(u)||e.match(i)){return"operator"}if(e.match(f)){return"atom"}var n=e.match(l);if(n){if(!t.doInCurrentLine)t.currentIndent++;else t.doInCurrentLine=false;if(n[0]=="proc"||n[0]=="fun")t.tokenize=z;else if(n[0]=="class")t.tokenize=p;else if(n[0]=="meth")t.tokenize=k;return"keyword"}if(e.match(h)||e.match(s)){return"keyword"}if(e.match(d)){t.currentIndent--;return"keyword"}var r=e.next();if(r=='"'||r=="'"){t.tokenize=b(r);return t.tokenize(e,t)}if(/[~\d]/.test(r)){if(r=="~"){if(!/^[0-9]/.test(e.peek()))return null;else if(e.next()=="0"&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))return"number"}if(r=="0"&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))return"number";return null}if(r=="%"){e.skipToEnd();return"comment"}else if(r=="/"){if(e.eat("*")){t.tokenize=v;return v(e,t)}}if(a.test(r)){return"operator"}e.eatWhile(/\w/);return"variable"}function p(e,t){if(e.eatSpace()){return null}e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/);t.tokenize=m;return"type"}function k(e,t){if(e.eatSpace()){return null}e.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/);t.tokenize=m;return"def"}function z(e,t){if(e.eatSpace()){return null}if(!t.hasPassedFirstStage&&e.eat("{")){t.hasPassedFirstStage=true;return"bracket"}else if(t.hasPassedFirstStage){e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/);t.hasPassedFirstStage=false;t.tokenize=m;return"def"}else{t.tokenize=m;return null}}function v(e,t){var n=false,r;while(r=e.next()){if(r=="/"&&n){t.tokenize=m;break}n=r=="*"}return"comment"}function b(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)n.tokenize=m;return"string"}}function w(){var e=o.concat(c);return new RegExp("[\\[\\]]|("+e.join("|")+")$")}const g={name:"oz",startState:function(){return{tokenize:m,currentIndent:0,doInCurrentLine:false,hasPassedFirstStage:false}},token:function(e,t){if(e.sol())t.doInCurrentLine=0;return t.tokenize(e,t)},indent:function(e,t,n){var r=t.replace(/^\s+|\s+$/g,"");if(r.match(d)||r.match(h)||r.match(/(\[])/))return n.unit*(e.currentIndent-1);if(e.currentIndent<0)return 0;return e.currentIndent*n.unit},languageData:{indentOnInut:w(),commentTokens:{line:"%",block:{open:"/*",close:"*/"}}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/7476.be548b063def93de4dca.js b/share/jupyter/lab/static/7476.be548b063def93de4dca.js new file mode 100644 index 0000000..dc3bc6a --- /dev/null +++ b/share/jupyter/lab/static/7476.be548b063def93de4dca.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7476],{97134:(e,n,t)=>{t.d(n,{A:()=>o});var r=t(37005);var a=4;function i(e){return(0,r.A)(e,a)}const o=i},67476:(e,n,t)=>{t.r(n);t.d(n,{render:()=>B});var r=t(25301);var a=t(46103);var i=t(47655);var o=t(15164);var s=t(55750);var d=t(95035);var c=t(29131);var l=t(42418);var g=t(70416);var f=t(82211);var u=t(89523);var p=t(97134);var h=t(8937);var m=t(65791);function v(e){var n={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:w(e),edges:R(e)};if(!u.A(e.graph())){n.value=p.A(e.graph())}return n}function w(e){return h.A(e.nodes(),(function(n){var t=e.node(n);var r=e.parent(n);var a={v:n};if(!u.A(t)){a.value=t}if(!u.A(r)){a.parent=r}return a}))}function R(e){return h.A(e.edges(),(function(n){var t=e.edge(n);var r={v:n.v,w:n.w};if(!u.A(n.name)){r.name=n.name}if(!u.A(t)){r.value=t}return r}))}function y(e){var n=new Graph(e.options).setGraph(e.value);_.each(e.nodes,(function(e){n.setNode(e.v,e.value);if(e.parent){n.setParent(e.v,e.parent)}}));_.each(e.edges,(function(e){n.setEdge({v:e.v,w:e.w,name:e.name},e.value)}));return n}var X=t(84416);var b=new Map;var E=new Map;var N=new Map;var C=(0,g.K2)((()=>{E.clear();N.clear();b.clear()}),"clear");var S=(0,g.K2)(((e,n)=>{const t=E.get(n)||[];g.Rm.trace("In isDescendant",n," ",e," = ",t.includes(e));return t.includes(e)}),"isDescendant");var x=(0,g.K2)(((e,n)=>{const t=E.get(n)||[];g.Rm.info("Descendants of ",n," is ",t);g.Rm.info("Edge is ",e);if(e.v===n||e.w===n){return false}if(!t){g.Rm.debug("Tilt, ",n,",not in descendants");return false}return t.includes(e.v)||S(e.v,n)||S(e.w,n)||t.includes(e.w)}),"edgeInCluster");var I=(0,g.K2)(((e,n,t,r)=>{g.Rm.warn("Copying children of ",e,"root",r,"data",n.node(e),r);const a=n.children(e)||[];if(e!==r){a.push(e)}g.Rm.warn("Copying (nodes) clusterId",e,"nodes",a);a.forEach((a=>{if(n.children(a).length>0){I(a,n,t,r)}else{const i=n.node(a);g.Rm.info("cp ",a," to ",r," with parent ",e);t.setNode(a,i);if(r!==n.parent(a)){g.Rm.warn("Setting parent",a,n.parent(a));t.setParent(a,n.parent(a))}if(e!==r&&a!==e){g.Rm.debug("Setting parent",a,e);t.setParent(a,e)}else{g.Rm.info("In copy ",e,"root",r,"data",n.node(e),r);g.Rm.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==r,"node!==clusterId",a!==e)}const o=n.edges(a);g.Rm.debug("Copying Edges",o);o.forEach((a=>{g.Rm.info("Edge",a);const i=n.edge(a.v,a.w,a.name);g.Rm.info("Edge data",i,r);try{if(x(a,r)){g.Rm.info("Copying as ",a.v,a.w,i,a.name);t.setEdge(a.v,a.w,i,a.name);g.Rm.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))}else{g.Rm.info("Skipping copy of edge ",a.v,"--\x3e",a.w," rootId: ",r," clusterId:",e)}}catch(o){g.Rm.error(o)}}))}g.Rm.debug("Removing node",a);n.removeNode(a)}))}),"copy");var D=(0,g.K2)(((e,n)=>{const t=n.children(e);let r=[...t];for(const a of t){N.set(a,e);r=[...r,...D(a,n)]}return r}),"extractDescendants");var A=(0,g.K2)(((e,n,t)=>{const r=e.edges().filter((e=>e.v===n||e.w===n));const a=e.edges().filter((e=>e.v===t||e.w===t));const i=r.map((e=>({v:e.v===n?t:e.v,w:e.w===n?n:e.w})));const o=a.map((e=>({v:e.v,w:e.w})));const s=i.filter((e=>o.some((n=>e.v===n.v&&e.w===n.w))));return s}),"findCommonEdges");var O=(0,g.K2)(((e,n,t)=>{const r=n.children(e);g.Rm.trace("Searching children of id ",e,r);if(r.length<1){return e}let a;for(const i of r){const e=O(i,n,t);const r=A(n,t,e);if(e){if(r.length>0){a=e}else{return e}}}return a}),"findNonClusterChild");var k=(0,g.K2)((e=>{if(!b.has(e)){return e}if(!b.get(e).externalConnections){return e}if(b.has(e)){return b.get(e).id}return e}),"getAnchorId");var G=(0,g.K2)(((e,n)=>{if(!e||n>10){g.Rm.debug("Opting out, no graph ");return}else{g.Rm.debug("Opting in, graph ")}e.nodes().forEach((function(n){const t=e.children(n);if(t.length>0){g.Rm.warn("Cluster identified",n," Replacement id in edges: ",O(n,e,n));E.set(n,D(n,e));b.set(n,{id:O(n,e,n),clusterData:e.node(n)})}}));e.nodes().forEach((function(n){const t=e.children(n);const r=e.edges();if(t.length>0){g.Rm.debug("Cluster identified",n,E);r.forEach((e=>{const t=S(e.v,n);const r=S(e.w,n);if(t^r){g.Rm.warn("Edge: ",e," leaves cluster ",n);g.Rm.warn("Descendants of XXX ",n,": ",E.get(n));b.get(n).externalConnections=true}}))}else{g.Rm.debug("Not a cluster ",n,E)}}));for(let t of b.keys()){const n=b.get(t).id;const r=e.parent(n);if(r!==t&&b.has(r)&&!b.get(r).externalConnections){b.get(t).id=r}}e.edges().forEach((function(n){const t=e.edge(n);g.Rm.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n));g.Rm.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let r=n.v;let a=n.w;g.Rm.warn("Fix XXX",b,"ids:",n.v,n.w,"Translating: ",b.get(n.v)," --- ",b.get(n.w));if(b.get(n.v)||b.get(n.w)){g.Rm.warn("Fixing and trying - removing XXX",n.v,n.w,n.name);r=k(n.v);a=k(n.w);e.removeEdge(n.v,n.w,n.name);if(r!==n.v){const a=e.parent(r);b.get(a).externalConnections=true;t.fromCluster=n.v}if(a!==n.w){const r=e.parent(a);b.get(r).externalConnections=true;t.toCluster=n.w}g.Rm.warn("Fix Replacing with XXX",r,a,n.name);e.setEdge(r,a,t,n.name)}}));g.Rm.warn("Adjusted Graph",v(e));K(e,0);g.Rm.trace(b)}),"adjustClustersAndEdges");var K=(0,g.K2)(((e,n)=>{g.Rm.warn("extractor - ",n,v(e),e.children("D"));if(n>10){g.Rm.error("Bailing out");return}let t=e.nodes();let r=false;for(const a of t){const n=e.children(a);r=r||n.length>0}if(!r){g.Rm.debug("Done, no node has children",e.nodes());return}g.Rm.debug("Nodes = ",t,n);for(const a of t){g.Rm.debug("Extracting node",a,b,b.has(a)&&!b.get(a).externalConnections,!e.parent(a),e.node(a),e.children("D")," Depth ",n);if(!b.has(a)){g.Rm.debug("Not a cluster",a,n)}else if(!b.get(a).externalConnections&&e.children(a)&&e.children(a).length>0){g.Rm.warn("Cluster without external connections, without a parent and with children",a,n);const t=e.graph();let r=t.rankdir==="TB"?"LR":"TB";if(b.get(a)?.clusterData?.dir){r=b.get(a).clusterData.dir;g.Rm.warn("Fixing dir",b.get(a).clusterData.dir,r)}const i=new X.T({multigraph:true,compound:true}).setGraph({rankdir:r,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));g.Rm.warn("Old graph before copy",v(e));I(a,e,i,a);e.setNode(a,{clusterNode:true,id:a,clusterData:b.get(a).clusterData,label:b.get(a).label,graph:i});g.Rm.warn("New graph after copy node: (",a,")",v(i));g.Rm.debug("Old graph after copy",v(e))}else{g.Rm.warn("Cluster ** ",a," **not meeting the criteria !externalConnections:",!b.get(a).externalConnections," no parent: ",!e.parent(a)," children ",e.children(a)&&e.children(a).length>0,e.children("D"),n);g.Rm.debug(b)}}t=e.nodes();g.Rm.warn("New list of nodes",t);for(const a of t){const t=e.node(a);g.Rm.warn(" Now next level",a,t);if(t?.clusterNode){K(t.graph,n+1)}}}),"extractor");var P=(0,g.K2)(((e,n)=>{if(n.length===0){return[]}let t=Object.assign([],n);n.forEach((n=>{const r=e.children(n);const a=P(e,r);t=[...t,...a]}));return t}),"sorter");var T=(0,g.K2)((e=>P(e,e.children())),"sortNodesByHierarchy");var J=(0,g.K2)((async(e,n,t,a,s,d)=>{g.Rm.warn("Graph in recursive render:XAX",v(n),s);const c=n.graph().rankdir;g.Rm.trace("Dir in recursive render - dir:",c);const l=e.insert("g").attr("class","root");if(!n.nodes()){g.Rm.info("No nodes found for",n)}else{g.Rm.info("Recursive render XXX",n.nodes())}if(n.edges().length>0){g.Rm.info("Recursive edges",n.edge(n.edges()[0]))}const u=l.insert("g").attr("class","clusters");const p=l.insert("g").attr("class","edgePaths");const h=l.insert("g").attr("class","edgeLabels");const m=l.insert("g").attr("class","nodes");await Promise.all(n.nodes().map((async function(e){const r=n.node(e);if(s!==void 0){const t=JSON.parse(JSON.stringify(s.clusterData));g.Rm.trace("Setting data for parent cluster XXX\n Node.id = ",e,"\n data=",t.height,"\nParent cluster",s.height);n.setNode(s.id,t);if(!n.parent(e)){g.Rm.trace("Setting parent",e,s.id);n.setParent(e,s.id,t)}}g.Rm.info("(Insert) Node XXX"+e+": "+JSON.stringify(n.node(e)));if(r?.clusterNode){g.Rm.info("Cluster identified XBX",e,r.width,n.node(e));const{ranksep:o,nodesep:s}=n.graph();r.graph.setGraph({...r.graph.graph(),ranksep:o+25,nodesep:s});const c=await J(m,r.graph,t,a,n.node(e),d);const l=c.elem;(0,i.lC)(r,l);r.diff=c.diff||0;g.Rm.info("New compound node after recursive render XAX",e,"width",r.width,"height",r.height);(0,i.U7)(l,r)}else{if(n.children(e).length>0){g.Rm.trace("Cluster - the non recursive path XBX",e,r.id,r,r.width,"Graph:",n);g.Rm.trace(O(r.id,n));b.set(r.id,{id:O(r.id,n),node:r})}else{g.Rm.trace("Node - the non recursive path XAX",e,m,n.node(e),c);await(0,i.on)(m,n.node(e),{config:d,dir:c})}}})));const w=(0,g.K2)((async()=>{const e=n.edges().map((async function(e){const t=n.edge(e.v,e.w,e.name);g.Rm.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e));g.Rm.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(n.edge(e)));g.Rm.info("Fix",b,"ids:",e.v,e.w,"Translating: ",b.get(e.v),b.get(e.w));await(0,r.jP)(h,t)}));await Promise.all(e)}),"processEdges");await w();g.Rm.info("Graph before layout:",JSON.stringify(v(n)));g.Rm.info("############################################# XXX");g.Rm.info("### Layout ### XXX");g.Rm.info("############################################# XXX");(0,f.Zp)(n);g.Rm.info("Graph after layout:",JSON.stringify(v(n)));let R=0;let{subGraphTitleTotalMargin:y}=(0,o.O)(d);await Promise.all(T(n).map((async function(e){const t=n.node(e);g.Rm.info("Position XBX => "+e+": ("+t.x,","+t.y,") width: ",t.width," height: ",t.height);if(t?.clusterNode){t.y+=y;g.Rm.info("A tainted cluster node XBX1",e,t.id,t.width,t.height,t.x,t.y,n.parent(e));b.get(t.id).node=t;(0,i.U_)(t)}else{if(n.children(e).length>0){g.Rm.info("A pure cluster node XBX1",e,t.id,t.x,t.y,t.width,t.height,n.parent(e));t.height+=y;n.node(t.parentId);const r=t?.padding/2||0;const a=t?.labelBBox?.height||0;const o=a-r||0;g.Rm.debug("OffsetY",o,"labelHeight",a,"halfPadding",r);await(0,i.U)(u,t);b.get(t.id).node=t}else{const e=n.node(t.parentId);t.y+=y/2;g.Rm.info("A regular node XBX1 - using the padding",t.id,"parent",t.parentId,t.width,t.height,t.x,t.y,"offsetY",t.offsetY,"parent",e,e?.offsetY,t);(0,i.U_)(t)}}})));n.edges().forEach((function(e){const i=n.edge(e);g.Rm.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(i),i);i.points.forEach((e=>e.y+=y/2));const o=n.node(e.v);var s=n.node(e.w);const d=(0,r.Jo)(p,i,b,t,o,s,a);(0,r.T_)(i,d)}));n.nodes().forEach((function(e){const t=n.node(e);g.Rm.info(e,t.type,t.diff);if(t.isGroup){R=t.diff}}));g.Rm.warn("Returning from recursive render XAX",l,R);return{elem:l,diff:R}}),"recursiveRender");var B=(0,g.K2)((async(e,n)=>{const t=new X.T({multigraph:true,compound:true}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.config?.flowchart?.nodeSpacing||e.nodeSpacing,ranksep:e.config?.rankSpacing||e.config?.flowchart?.rankSpacing||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));const a=n.select("g");(0,r.g0)(a,e.markers,e.type,e.diagramId);(0,i.gh)();(0,r.IU)();(0,i.IU)();C();e.nodes.forEach((e=>{t.setNode(e.id,{...e});if(e.parentId){t.setParent(e.id,e.parentId)}}));g.Rm.debug("Edges:",e.edges);e.edges.forEach((e=>{if(e.start===e.end){const n=e.start;const r=n+"---"+n+"---1";const a=n+"---"+n+"---2";const i=t.node(n);t.setNode(r,{domId:r,id:r,parentId:i.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10});t.setParent(r,i.parentId);t.setNode(a,{domId:a,id:a,parentId:i.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10});t.setParent(a,i.parentId);const o=structuredClone(e);const s=structuredClone(e);const d=structuredClone(e);o.label="";o.arrowTypeEnd="none";o.id=n+"-cyclic-special-1";s.arrowTypeStart="none";s.arrowTypeEnd="none";s.id=n+"-cyclic-special-mid";d.label="";if(i.isGroup){o.fromCluster=n;d.toCluster=n}d.id=n+"-cyclic-special-2";d.arrowTypeStart="none";t.setEdge(n,r,o,n+"-cyclic-special-0");t.setEdge(r,a,s,n+"-cyclic-special-1");t.setEdge(a,n,d,n+"-cyc{r.r(t);r.d(t,{julia:()=>$});function n(e,t,r){if(typeof r==="undefined")r="";if(typeof t==="undefined"){t="\\b"}return new RegExp("^"+r+"(("+e.join(")|(")+"))"+t)}var a="\\\\[0-7]{1,3}";var i="\\\\x[A-Fa-f0-9]{1,2}";var u="\\\\[abefnrtv0%?'\"\\\\]";var s="([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])";var o=["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","\\.{2,3}","[\\.\\\\%*+\\-<>!\\/^|&]=?","\\?","\\$","~",":"];var f=n(["[<>]:","[<>=]=","[!=]==","<<=?",">>>?=?","=>?","--?>","<--[->]?","\\/\\/","[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],"");var c=/^[;,()[\]{}]/;var l=/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/;var m=n([a,i,u,s],"'");var p=["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"];var h=["end","else","elseif","catch","finally"];var d=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"];var v=["true","false","nothing","NaN","Inf"];var F=n(p);var k=n(h);var b=n(d);var g=n(v);var y=/^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/;var _=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/;var x=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/;var A=n(o,"","@");var z=n(o,"",":");function E(e){return e.nestedArrays>0}function w(e){return e.nestedGenerators>0}function D(e,t){if(typeof t==="undefined"){t=0}if(e.scopes.length<=t){return null}return e.scopes[e.scopes.length-(t+1)]}function T(e,t){if(e.match("#=",false)){t.tokenize=P;return t.tokenize(e,t)}var r=t.leavingExpr;if(e.sol()){r=false}t.leavingExpr=false;if(r){if(e.match(/^'+/)){return"operator"}}if(e.match(/\.{4,}/)){return"error"}else if(e.match(/\.{1,3}/)){return"operator"}if(e.eatSpace()){return null}var n=e.peek();if(n==="#"){e.skipToEnd();return"comment"}if(n==="["){t.scopes.push("[");t.nestedArrays++}if(n==="("){t.scopes.push("(");t.nestedGenerators++}if(E(t)&&n==="]"){while(t.scopes.length&&D(t)!=="["){t.scopes.pop()}t.scopes.pop();t.nestedArrays--;t.leavingExpr=true}if(w(t)&&n===")"){while(t.scopes.length&&D(t)!=="("){t.scopes.pop()}t.scopes.pop();t.nestedGenerators--;t.leavingExpr=true}if(E(t)){if(t.lastToken=="end"&&e.match(":")){return"operator"}if(e.match("end")){return"number"}}var a;if(a=e.match(F,false)){t.scopes.push(a[0])}if(e.match(k,false)){t.scopes.pop()}if(e.match(/^::(?![:\$])/)){t.tokenize=C;return t.tokenize(e,t)}if(!r&&(e.match(_)||e.match(z))){return"builtin"}if(e.match(f)){return"operator"}if(e.match(/^\.?\d/,false)){var i=RegExp(/^im\b/);var u=false;if(e.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)){u=true}if(e.match(/^0x[0-9a-f_]+/i)){u=true}if(e.match(/^0b[01_]+/i)){u=true}if(e.match(/^0o[0-7_]+/i)){u=true}if(e.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)){u=true}if(e.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)){u=true}if(u){e.match(i);t.leavingExpr=true;return"number"}}if(e.match("'")){t.tokenize=j;return t.tokenize(e,t)}if(e.match(x)){t.tokenize=B(e.current());return t.tokenize(e,t)}if(e.match(y)||e.match(A)){return"meta"}if(e.match(c)){return null}if(e.match(b)){return"keyword"}if(e.match(g)){return"builtin"}var s=t.isDefinition||t.lastToken=="function"||t.lastToken=="macro"||t.lastToken=="type"||t.lastToken=="struct"||t.lastToken=="immutable";if(e.match(l)){if(s){if(e.peek()==="."){t.isDefinition=true;return"variable"}t.isDefinition=false;return"def"}t.leavingExpr=true;return"variable"}e.next();return"error"}function C(e,t){e.match(/.*?(?=[,;{}()=\s]|$)/);if(e.match("{")){t.nestedParameters++}else if(e.match("}")&&t.nestedParameters>0){t.nestedParameters--}if(t.nestedParameters>0){e.match(/.*?(?={|})/)||e.next()}else if(t.nestedParameters==0){t.tokenize=T}return"builtin"}function P(e,t){if(e.match("#=")){t.nestedComments++}if(!e.match(/.*?(?=(#=|=#))/)){e.skipToEnd()}if(e.match("=#")){t.nestedComments--;if(t.nestedComments==0)t.tokenize=T}return"comment"}function j(e,t){var r=false,n;if(e.match(m)){r=true}else if(n=e.match(/\\u([a-f0-9]{1,4})(?=')/i)){var a=parseInt(n[1],16);if(a<=55295||a>=57344){r=true;e.next()}}else if(n=e.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var a=parseInt(n[1],16);if(a<=1114111){r=true;e.next()}}if(r){t.leavingExpr=true;t.tokenize=T;return"string"}if(!e.match(/^[^']+(?=')/)){e.skipToEnd()}if(e.match("'")){t.tokenize=T}return"error"}function B(e){if(e.substr(-3)==='"""'){e='"""'}else if(e.substr(-1)==='"'){e='"'}function t(t,r){if(t.eat("\\")){t.next()}else if(t.match(e)){r.tokenize=T;r.leavingExpr=true;return"string"}else{t.eat(/[`"]/)}t.eatWhile(/[^\\`"]/);return"string"}return t}const $={name:"julia",startState:function(){return{tokenize:T,scopes:[],lastToken:null,leavingExpr:false,isDefinition:false,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(e,t){var r=t.tokenize(e,t);var n=e.current();if(n&&r){t.lastToken=n}return r},indent:function(e,t,r){var n=0;if(t==="]"||t===")"||/^end\b/.test(t)||/^else/.test(t)||/^catch\b/.test(t)||/^elseif\b/.test(t)||/^finally/.test(t)){n=-1}return(e.scopes.length+n)*r.unit},languageData:{indentOnInput:/^\s*(end|else|catch|finally)\b$/,commentTokens:{line:"#",block:{open:"#=",close:"=#"}},closeBrackets:{brackets:["(","[","{",'"']},autocomplete:d.concat(v)}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/7587.3112240b6b82407b0f16.js b/share/jupyter/lab/static/7587.3112240b6b82407b0f16.js new file mode 100644 index 0000000..49def79 --- /dev/null +++ b/share/jupyter/lab/static/7587.3112240b6b82407b0f16.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7587],{17587:(e,t,a)=>{a.r(t);a.d(t,{ebnf:()=>c});var s={slash:0,parenthesis:1};var r={comment:0,_string:1,characterClass:2};const c={name:"ebnf",startState:function(){return{stringType:null,commentType:null,braced:0,lhs:true,localState:null,stack:[],inDefinition:false}},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(r._string)}else if(e.match("/*")){t.stack.unshift(r.comment);t.commentType=s.slash}else if(e.match("(*")){t.stack.unshift(r.comment);t.commentType=s.parenthesis}}switch(t.stack[0]){case r._string:while(t.stack[0]===r._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 t.lhs?"property":"string";case r.comment:while(t.stack[0]===r.comment&&!e.eol()){if(t.commentType===s.slash&&e.match("*/")){t.stack.shift();t.commentType=null}else if(t.commentType===s.parenthesis&&e.match("*)")){t.stack.shift();t.commentType=null}else{e.match(/^.[^\*]*/)}}return"comment";case r.characterClass:while(t.stack[0]===r.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(r.characterClass);return"bracket";case":":case"|":case";":e.next();return"operator";case"%":if(e.match("%%")){return"header"}else if(e.match(/[%][A-Za-z]+/)){return"keyword"}else if(e.match(/[%][}]/)){return"bracket"}break;case"/":if(e.match(/[\/][A-Za-z]+/)){return"keyword"}case"\\":if(e.match(/[\][a-z]+/)){return"string.special"}case".":if(e.match(".")){return"atom"}case"*":case"-":case"+":case"^":if(e.match(a)){return"atom"}case"$":if(e.match("$$")){return"builtin"}else if(e.match(/[$][0-9]+/)){return"variableName.special"}case"<":if(e.match(/<<[a-zA-Z_]+>>/)){return"builtin"}}if(e.match("//")){e.skipToEnd();return"comment"}else if(e.match("return")){return"operator"}else if(e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)){if(e.match(/(?=[\(.])/)){return"variable"}else if(e.match(/(?=[\s\n]*[:=])/)){return"def"}return"variableName.special"}else if(["[","]","(",")"].indexOf(e.peek())!=-1){e.next();return"bracket"}else if(!e.eatSpace()){e.next()}return null}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/7680.540ff9ec52ce9f8c7f0f.js b/share/jupyter/lab/static/7680.540ff9ec52ce9f8c7f0f.js new file mode 100644 index 0000000..b2a1b10 --- /dev/null +++ b/share/jupyter/lab/static/7680.540ff9ec52ce9f8c7f0f.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7680],{37680:(t,i,e)=>{e.d(i,{diagram:()=>ot});var s=e(29479);var a=e(95035);var n=e(29131);var h=e(42418);var o=e(70416);var r=e(1218);var l=function(){var t=(0,o.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],h=[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],d=[1,31],f=[1,32],p=[1,33],y=[1,34],m=[1,35],b=[1,36],k=[1,37],A=[1,43],w=[1,42],S=[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,o.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,o.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:h}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,34:a,35:n,36:h}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:a,35:n,36:h}),{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:h}),{1:[2,3]},t(r,[2,5]),t(i,[2,7],{4:22,34:a,35:n,36:h}),{11:23,37:24,38:l,39:c,40:27,41:u,42:g,43:x,44:d,45:f,46:p,47:y,48:m,49:b,50:k},{11:39,13:38,24:A,27:w,29:40,30:41,37:24,38:l,39:c,40:27,41:u,42:g,43:x,44:d,45:f,46:p,47:y,48:m,49:b,50:k},{11:45,15:44,27:S,33:46,37:24,38:l,39:c,40:27,41:u,42:g,43:x,44:d,45:f,46:p,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:d,45:f,46:p,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:d,45:f,46:p,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:d,45:f,46:p,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:w}),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:d,45:f,46:p,47:y,48:m,49:b,50:k},t(_,[2,11]),t(_,[2,30],{33:60,27:S}),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:d,45:f,46:p,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,o.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,o.K2)((function t(i){var e=this,s=[0],a=[],n=[null],h=[],r=this.table,l="",c=0,u=0,g=0,x=2,d=1;var f=h.slice.call(arguments,1);var p=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]}}p.setInput(i,y.yy);y.yy.lexer=p;y.yy.parser=this;if(typeof p.yylloc=="undefined"){p.yylloc={}}var b=p.yylloc;h.push(b);var k=p.options&&p.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;h.length=h.length-t}(0,o.K2)(A,"popStack");function w(){var t;t=a.pop()||p.lex()||d;if(typeof t!=="number"){if(t instanceof Array){a=t;t=a.pop()}t=e.symbols_[t]||t}return t}(0,o.K2)(w,"lex");var S,C,_,T,R,D,v={},L,P,E,K;while(true){_=s[s.length-1];if(this.defaultActions[_]){T=this.defaultActions[_]}else{if(S===null||typeof S=="undefined"){S=w()}T=r[_]&&r[_][S]}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(p.showPosition){I="Parse error on line "+(c+1)+":\n"+p.showPosition()+"\nExpecting "+K.join(", ")+", got '"+(this.terminals_[S]||S)+"'"}else{I="Parse error on line "+(c+1)+": Unexpected "+(S==d?"end of input":"'"+(this.terminals_[S]||S)+"'")}this.parseError(I,{text:p.match,token:this.terminals_[S]||S,line:p.yylineno,loc:b,expected:K})}if(T[0]instanceof Array&&T.length>1){throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+S)}switch(T[0]){case 1:s.push(S);n.push(p.yytext);h.push(p.yylloc);s.push(T[1]);S=null;if(!C){u=p.yyleng;l=p.yytext;c=p.yylineno;b=p.yylloc;if(g>0){g--}}else{S=C;C=null}break;case 2:P=this.productions_[T[1]][1];v.$=n[n.length-P];v._$={first_line:h[h.length-(P||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(P||1)].first_column,last_column:h[h.length-1].last_column};if(k){v._$.range=[h[h.length-(P||1)].range[0],h[h.length-1].range[1]]}D=this.performAction.apply(v,[l,u,c,y.yy,T[1],n,h].concat(f));if(typeof D!=="undefined"){return D}if(P){s=s.slice(0,-1*P*2);n=n.slice(0,-1*P);h=h.slice(0,-1*P)}s.push(this.productions_[T[1]][0]);n.push(v.$);h.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,o.K2)((function t(i,e){if(this.yy.parser){this.yy.parser.parseError(i,e)}else{throw new Error(i)}}),"parseError"),setInput:(0,o.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,o.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,o.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,o.K2)((function(){this._more=true;return this}),"more"),reject:(0,o.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,o.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,o.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,o.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,o.K2)((function(){var t=this.pastInput();var i=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+i+"^"}),"showPosition"),test_match:(0,o.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,o.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,o.K2)((function t(){var i=this.next();if(i){return i}else{return this.lex()}}),"lex"),begin:(0,o.K2)((function t(i){this.conditionStack.push(i)}),"begin"),popState:(0,o.K2)((function t(){var i=this.conditionStack.length-1;if(i>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}}),"popState"),_currentRules:(0,o.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,o.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,o.K2)((function t(i){this.begin(i)}),"pushState"),stateStackSize:(0,o.K2)((function t(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":true},performAction:(0,o.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 5;break;case 16:return 8;break;case 17:this.pushState("axis_data");return"X_AXIS";break;case 18:this.pushState("axis_data");return"Y_AXIS";break;case 19:this.pushState("axis_band_data");return 24;break;case 20:return 31;break;case 21:this.pushState("data");return 16;break;case 22:this.pushState("data");return 18;break;case 23:this.pushState("data_inner");return 24;break;case 24:return 27;break;case 25:this.popState();return 26;break;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";break;case 30:return 24;break;case 31:return 26;break;case 32:return 43;break;case 33:return"COLON";break;case 34:return 44;break;case 35:return 28;break;case 36:return 45;break;case 37:return 46;break;case 38:return 48;break;case 39:return 50;break;case 40:return 47;break;case 41:return 41;break;case 42:return 49;break;case 43:return 42;break;case 44:break;case 45:return 35;break;case 46: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,/^(?:xychart\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,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:true},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:true},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:true},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],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:[28,29],inclusive:false},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:true}}};return t}();v.lexer=L;function P(){this.yy={}}(0,o.K2)(P,"Parser");P.prototype=v;v.Parser=P;return new P}();l.parser=l;var c=l;function u(t){return t.type==="bar"}(0,o.K2)(u,"isBarPlot");function g(t){return t.type==="band"}(0,o.K2)(g,"isBandAxisData");function x(t){return t.type==="linear"}(0,o.K2)(x,"isLinearAxisData");var d=class{constructor(t){this.parentGroup=t}static{(0,o.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 s=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",i);for(const n of t){const t=(0,a.W6)(s,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)}s.remove();return e}};var f=.7;var p=.2;var y=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,o.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 m=class extends y{static{(0,o.K2)(this,"BandAxis")}constructor(t,i,e,s,a){super(t,s,a,i);this.categories=e;this.scale=(0,r.WH)().domain(this.categories).range(this.getRange())}setRange(t){super.setRange(t)}recalculateScale(){this.scale=(0,r.WH)().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(.5);o.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 b=class extends y{static{(0,o.K2)(this,"LinearAxis")}constructor(t,i,e,s,a){super(t,s,a,i);this.domain=e;this.scale=(0,r.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,r.m4Y)().domain(t).range(this.getRange())}getScaleValue(t){return this.scale(t)}};function k(t,i,e,s){const a=new d(s);if(g(t)){return new m(i,e,t.categories,t.title,a)}return new b(i,e,[t.min,t.max],t.title,a)}(0,o.K2)(k,"getAxis");var A=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,o.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 w(t,i,e,s){const a=new d(s);return new A(a,t,i,e)}(0,o.K2)(w,"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,o.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,r.n8j)().y((t=>t[0])).x((t=>t[1]))(t)}else{i=(0,r.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 C=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,o.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 _=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,o.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 C(e,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,i);t.push(...s.getDrawableElement())}break}}return t}};function T(t,i,e){return new _(t,i,e)}(0,o.K2)(T,"getPlotComponent");var R=class{constructor(t,i,e,s){this.chartConfig=t;this.chartData=i;this.componentStore={title:w(t,i,e,s),plot:T(t,i,e),xAxis:k(i.xAxis,t.xAxis,{titleColor:e.xAxisTitleColor,labelColor:e.xAxisLabelColor,tickColor:e.xAxisTickColor,axisLineColor:e.xAxisLineColor},s),yAxis:k(i.yAxis,t.yAxis,{titleColor:e.yAxisTitleColor,labelColor:e.yAxisLabelColor,tickColor:e.yAxisTickColor,axisLineColor:e.yAxisLineColor},s)}}static{(0,o.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=>u(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=>u(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 D=class{static{(0,o.K2)(this,"XYChartBuilder")}static build(t,i,e,s){const a=new R(t,i,e,s);return a.getDrawableElement()}};var v=0;var L;var P=B();var E=z();var K=W();var I=E.plotColorPalette.split(",").map((t=>t.trim()));var $=false;var M=false;function z(){const t=(0,h.P$)();const i=(0,h.zj)();return(0,n.$t)(t.xyChart,i.themeVariables.xyChart)}(0,o.K2)(z,"getChartDefaultThemeConfig");function B(){const t=(0,h.zj)();return(0,n.$t)(h.UI.xyChart,t.xyChart)}(0,o.K2)(B,"getChartDefaultConfig");function W(){return{yAxis:{type:"linear",title:"",min:Infinity,max:-Infinity},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}(0,o.K2)(W,"getChartDefaultData");function O(t){const i=(0,h.zj)();return(0,h.jZ)(t.trim(),i)}(0,o.K2)(O,"textSanitizer");function F(t){L=t}(0,o.K2)(F,"setTmpSVGG");function N(t){if(t==="horizontal"){P.chartOrientation="horizontal"}else{P.chartOrientation="vertical"}}(0,o.K2)(N,"setOrientation");function X(t){K.xAxis.title=O(t.text)}(0,o.K2)(X,"setXAxisTitle");function V(t,i){K.xAxis={type:"linear",title:K.xAxis.title,min:t,max:i};$=true}(0,o.K2)(V,"setXAxisRangeData");function Y(t){K.xAxis={type:"band",title:K.xAxis.title,categories:t.map((t=>O(t.text)))};$=true}(0,o.K2)(Y,"setXAxisBand");function H(t){K.yAxis.title=O(t.text)}(0,o.K2)(H,"setYAxisTitle");function U(t,i){K.yAxis={type:"linear",title:K.yAxis.title,min:t,max:i};M=true}(0,o.K2)(U,"setYAxisRangeData");function j(t){const i=Math.min(...t);const e=Math.max(...t);const s=x(K.yAxis)?K.yAxis.min:Infinity;const a=x(K.yAxis)?K.yAxis.max:-Infinity;K.yAxis={type:"linear",title:K.yAxis.title,min:Math.min(s,i),max:Math.max(a,e)}}(0,o.K2)(j,"setYAxisRangeFromPlotData");function G(t){let i=[];if(t.length===0){return i}if(!$){const i=x(K.xAxis)?K.xAxis.min:Infinity;const e=x(K.xAxis)?K.xAxis.max:-Infinity;V(Math.min(i,1),Math.max(e,t.length))}if(!M){j(t)}if(g(K.xAxis)){i=K.xAxis.categories.map(((i,e)=>[i,t[e]]))}if(x(K.xAxis)){const e=K.xAxis.min;const s=K.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,o.K2)(G,"transformDataWithoutCategory");function Q(t){return I[t===0?0:t%I.length]}(0,o.K2)(Q,"getPlotColorFromPalette");function Z(t,i){const e=G(i);K.plots.push({type:"line",strokeFill:Q(v),strokeWidth:2,data:e});v++}(0,o.K2)(Z,"setLineData");function q(t,i){const e=G(i);K.plots.push({type:"bar",fill:Q(v),data:e});v++}(0,o.K2)(q,"setBarData");function J(){if(K.plots.length===0){throw Error("No Plot to render, please provide a plot with some data")}K.title=(0,h.ab)();return D.build(P,K,E,L)}(0,o.K2)(J,"getDrawableElem");function tt(){return E}(0,o.K2)(tt,"getChartThemeConfig");function it(){return P}(0,o.K2)(it,"getChartConfig");function et(){return K}(0,o.K2)(et,"getXYChartData");var st=(0,o.K2)((function(){(0,h.IU)();v=0;P=B();K=W();E=z();I=E.plotColorPalette.split(",").map((t=>t.trim()));$=false;M=false}),"clear");var at={getDrawableElem:J,clear:st,setAccTitle:h.SV,getAccTitle:h.iN,setDiagramTitle:h.ke,getDiagramTitle:h.ab,getAccDescription:h.m7,setAccDescription:h.EI,setOrientation:N,setXAxisTitle:X,setXAxisRangeData:V,setXAxisBand:Y,setYAxisTitle:H,setYAxisRangeData:U,setLineData:Z,setBarData:q,setTmpSVGG:F,getChartThemeConfig:tt,getChartConfig:it,getXYChartData:et};var nt=(0,o.K2)(((t,i,e,a)=>{const n=a.db;const r=n.getChartThemeConfig();const l=n.getChartConfig();const c=n.getXYChartData().plots[0].data.map((t=>t[1]));function u(t){return t==="top"?"text-before-edge":"middle"}(0,o.K2)(u,"getDominantBaseLine");function g(t){return t==="left"?"start":t==="right"?"end":"middle"}(0,o.K2)(g,"getTextAnchor");function x(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}(0,o.K2)(x,"getTextTransformation");o.Rm.debug("Rendering xychart chart\n"+t);const d=(0,s.D)(i);const f=d.append("g").attr("class","main");const p=f.append("rect").attr("width",l.width).attr("height",l.height).attr("class","background");(0,h.a$)(d,l.height,l.width,true);d.attr("viewBox",`0 0 ${l.width} ${l.height}`);p.attr("fill",r.backgroundColor);n.setTmpSVGG(d.append("g").attr("class","mermaid-tmp-group"));const y=n.getDrawableElem();const m={};function b(t){let i=f;let e="";for(const[s]of t.entries()){let a=f;if(s>0&&m[e]){a=m[e]}e+=t[s];i=m[e];if(!i){i=m[e]=a.append("g").attr("class",t[s])}}return i}(0,o.K2)(b,"getGroup");for(const s of y){if(s.data.length===0){continue}const t=b(s.groupTexts);switch(s.type){case"rect":t.selectAll("rect").data(s.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));if(l.showDataLabel){if(l.chartOrientation==="horizontal"){let i=function(t,i){const{data:s,label:a}=t;const n=i*a.length*e;return n<=s.width-10};var k=i;(0,o.K2)(i,"fitsHorizontally");const e=.7;const a=s.data.map(((t,i)=>({data:t,label:c[i].toString()}))).filter((t=>t.data.width>0&&t.data.height>0));const n=a.map((t=>{const{data:e}=t;let s=e.height*.7;while(!i(t,s)&&s>0){s-=1}return s}));const h=Math.floor(Math.min(...n));t.selectAll("text").data(a).enter().append("text").attr("x",(t=>t.data.x+t.data.width-10)).attr("y",(t=>t.data.y+t.data.height/2)).attr("text-anchor","end").attr("dominant-baseline","middle").attr("fill","black").attr("font-size",`${h}px`).text((t=>t.label))}else{let i=function(t,i,e){const{data:s,label:a}=t;const n=.7;const h=i*a.length*n;const o=s.x+s.width/2;const r=o-h/2;const l=o+h/2;const c=r>=s.x&&l<=s.x+s.width;const u=s.y+e+i<=s.y+s.height;return c&&u};var A=i;(0,o.K2)(i,"fitsInBar");const e=10;const a=s.data.map(((t,i)=>({data:t,label:c[i].toString()}))).filter((t=>t.data.width>0&&t.data.height>0));const n=a.map((t=>{const{data:s,label:a}=t;let n=s.width/(a.length*.7);while(!i(t,n,e)&&n>0){n-=1}return n}));const h=Math.floor(Math.min(...n));t.selectAll("text").data(a).enter().append("text").attr("x",(t=>t.data.x+t.data.width/2)).attr("y",(t=>t.data.y+e)).attr("text-anchor","middle").attr("dominant-baseline","hanging").attr("fill","black").attr("font-size",`${h}px`).text((t=>t.label))}}break;case"text":t.selectAll("text").data(s.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=>u(t.verticalPos))).attr("text-anchor",(t=>g(t.horizontalPos))).attr("transform",(t=>x(t))).text((t=>t.text));break;case"path":t.selectAll("path").data(s.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 ht={draw:nt};var ot={parser:c,db:at,renderer:ht}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/7694.1cbff84dccb512476b7c.js b/share/jupyter/lab/static/7694.1cbff84dccb512476b7c.js new file mode 100644 index 0000000..0ff28f5 --- /dev/null +++ b/share/jupyter/lab/static/7694.1cbff84dccb512476b7c.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7694],{57694:(e,n,t)=>{t.r(n);t.d(n,{jinja2:()=>c});var a=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","do","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","set","raw","endraw","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","call","endcall","macro","endmacro","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","without","context","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","pluralize","autoescape","endautoescape"],i=/^[+\-*&%=<>!?|~^]/,r=/^[:\[\(\{]/,s=["true","false"],l=/^(\d[+\-\*\/])?\d+(\.\d+)?/;a=new RegExp("(("+a.join(")|(")+"))\\b");s=new RegExp("(("+s.join(")|(")+"))\\b");function o(e,n){var t=e.peek();if(n.incomment){if(!e.skipTo("#}")){e.skipToEnd()}else{e.eatWhile(/\#|}/);n.incomment=false}return"comment"}else if(n.intag){if(n.operator){n.operator=false;if(e.match(s)){return"atom"}if(e.match(l)){return"number"}}if(n.sign){n.sign=false;if(e.match(s)){return"atom"}if(e.match(l)){return"number"}}if(n.instring){if(t==n.instring){n.instring=false}e.next();return"string"}else if(t=="'"||t=='"'){n.instring=t;e.next();return"string"}else if(n.inbraces>0&&t==")"){e.next();n.inbraces--}else if(t=="("){e.next();n.inbraces++}else if(n.inbrackets>0&&t=="]"){e.next();n.inbrackets--}else if(t=="["){e.next();n.inbrackets++}else if(!n.lineTag&&(e.match(n.intag+"}")||e.eat("-")&&e.match(n.intag+"}"))){n.intag=false;return"tag"}else if(e.match(i)){n.operator=true;return"operator"}else if(e.match(r)){n.sign=true}else{if(e.column()==1&&n.lineTag&&e.match(a)){return"keyword"}if(e.eat(" ")||e.sol()){if(e.match(a)){return"keyword"}if(e.match(s)){return"atom"}if(e.match(l)){return"number"}if(e.sol()){e.next()}}else{e.next()}}return"variable"}else if(e.eat("{")){if(e.eat("#")){n.incomment=true;if(!e.skipTo("#}")){e.skipToEnd()}else{e.eatWhile(/\#|}/);n.incomment=false}return"comment"}else if(t=e.eat(/\{|%/)){n.intag=t;n.inbraces=0;n.inbrackets=0;if(t=="{"){n.intag="}"}e.eat("-");return"tag"}}else if(e.eat("#")){if(e.peek()=="#"){e.skipToEnd();return"comment"}else if(!e.eol()){n.intag=true;n.lineTag=true;n.inbraces=0;n.inbrackets=0;return"tag"}}e.next()}const c={name:"jinja2",startState:function(){return{tokenize:o,inbrackets:0,inbraces:0}},token:function(e,n){var t=n.tokenize(e,n);if(e.eol()&&n.lineTag&&!n.instring&&n.inbraces==0&&n.inbrackets==0){n.intag=false;n.lineTag=false}return t},languageData:{commentTokens:{block:{open:"{#",close:"#}",line:"##"}}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/7756.93d0ab41829355a147ab.js b/share/jupyter/lab/static/7756.93d0ab41829355a147ab.js new file mode 100644 index 0000000..3b15b68 --- /dev/null +++ b/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/share/jupyter/lab/static/7769.d39df7673ee2660a9ac4.js b/share/jupyter/lab/static/7769.d39df7673ee2660a9ac4.js new file mode 100644 index 0000000..1bd879f --- /dev/null +++ b/share/jupyter/lab/static/7769.d39df7673ee2660a9ac4.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7769],{7769:(e,t,r)=>{r.r(t);r.d(t,{idl:()=>p});function i(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var a=["a_correlate","abs","acos","adapt_hist_equal","alog","alog2","alog10","amoeba","annotate","app_user_dir","app_user_dir_query","arg_present","array_equal","array_indices","arrow","ascii_template","asin","assoc","atan","axis","axis","bandpass_filter","bandreject_filter","barplot","bar_plot","beseli","beselj","beselk","besely","beta","biginteger","bilinear","bin_date","binary_template","bindgen","binomial","bit_ffs","bit_population","blas_axpy","blk_con","boolarr","boolean","boxplot","box_cursor","breakpoint","broyden","bubbleplot","butterworth","bytarr","byte","byteorder","bytscl","c_correlate","calendar","caldat","call_external","call_function","call_method","call_procedure","canny","catch","cd","cdf","ceil","chebyshev","check_math","chisqr_cvf","chisqr_pdf","choldc","cholsol","cindgen","cir_3pnt","clipboard","close","clust_wts","cluster","cluster_tree","cmyk_convert","code_coverage","color_convert","color_exchange","color_quan","color_range_map","colorbar","colorize_sample","colormap_applicable","colormap_gradient","colormap_rotation","colortable","comfit","command_line_args","common","compile_opt","complex","complexarr","complexround","compute_mesh_normals","cond","congrid","conj","constrained_min","contour","contour","convert_coord","convol","convol_fft","coord2to3","copy_lun","correlate","cos","cosh","cpu","cramer","createboxplotdata","create_cursor","create_struct","create_view","crossp","crvlength","ct_luminance","cti_test","cursor","curvefit","cv_coord","cvttobm","cw_animate","cw_animate_getp","cw_animate_load","cw_animate_run","cw_arcball","cw_bgroup","cw_clr_index","cw_colorsel","cw_defroi","cw_field","cw_filesel","cw_form","cw_fslider","cw_light_editor","cw_light_editor_get","cw_light_editor_set","cw_orient","cw_palette_editor","cw_palette_editor_get","cw_palette_editor_set","cw_pdmenu","cw_rgbslider","cw_tmpl","cw_zoom","db_exists","dblarr","dcindgen","dcomplex","dcomplexarr","define_key","define_msgblk","define_msgblk_from_file","defroi","defsysv","delvar","dendro_plot","dendrogram","deriv","derivsig","determ","device","dfpmin","diag_matrix","dialog_dbconnect","dialog_message","dialog_pickfile","dialog_printersetup","dialog_printjob","dialog_read_image","dialog_write_image","dictionary","digital_filter","dilate","dindgen","dissolve","dist","distance_measure","dlm_load","dlm_register","doc_library","double","draw_roi","edge_dog","efont","eigenql","eigenvec","ellipse","elmhes","emboss","empty","enable_sysrtn","eof","eos","erase","erf","erfc","erfcx","erode","errorplot","errplot","estimator_filter","execute","exit","exp","expand","expand_path","expint","extract","extract_slice","f_cvf","f_pdf","factorial","fft","file_basename","file_chmod","file_copy","file_delete","file_dirname","file_expand_path","file_gunzip","file_gzip","file_info","file_lines","file_link","file_mkdir","file_move","file_poll_input","file_readlink","file_same","file_search","file_tar","file_test","file_untar","file_unzip","file_which","file_zip","filepath","findgen","finite","fix","flick","float","floor","flow3","fltarr","flush","format_axis_values","forward_function","free_lun","fstat","fulstr","funct","function","fv_test","fx_root","fz_roots","gamma","gamma_ct","gauss_cvf","gauss_pdf","gauss_smooth","gauss2dfit","gaussfit","gaussian_function","gaussint","get_drive_list","get_dxf_objects","get_kbrd","get_login_info","get_lun","get_screen_size","getenv","getwindows","greg2jul","grib","grid_input","grid_tps","grid3","griddata","gs_iter","h_eq_ct","h_eq_int","hanning","hash","hdf","hdf5","heap_free","heap_gc","heap_nosave","heap_refcount","heap_save","help","hilbert","hist_2d","hist_equal","histogram","hls","hough","hqr","hsv","i18n_multibytetoutf8","i18n_multibytetowidechar","i18n_utf8tomultibyte","i18n_widechartomultibyte","ibeta","icontour","iconvertcoord","idelete","identity","idl_base64","idl_container","idl_validname","idlexbr_assistant","idlitsys_createtool","idlunit","iellipse","igamma","igetcurrent","igetdata","igetid","igetproperty","iimage","image","image_cont","image_statistics","image_threshold","imaginary","imap","indgen","int_2d","int_3d","int_tabulated","intarr","interpol","interpolate","interval_volume","invert","ioctl","iopen","ir_filter","iplot","ipolygon","ipolyline","iputdata","iregister","ireset","iresolve","irotate","isa","isave","iscale","isetcurrent","isetproperty","ishft","isocontour","isosurface","isurface","itext","itranslate","ivector","ivolume","izoom","journal","json_parse","json_serialize","jul2greg","julday","keyword_set","krig2d","kurtosis","kw_test","l64indgen","la_choldc","la_cholmprove","la_cholsol","la_determ","la_eigenproblem","la_eigenql","la_eigenvec","la_elmhes","la_gm_linear_model","la_hqr","la_invert","la_least_square_equality","la_least_squares","la_linear_equation","la_ludc","la_lumprove","la_lusol","la_svd","la_tridc","la_trimprove","la_triql","la_trired","la_trisol","label_date","label_region","ladfit","laguerre","lambda","lambdap","lambertw","laplacian","least_squares_filter","leefilt","legend","legendre","linbcg","lindgen","linfit","linkimage","list","ll_arc_distance","lmfit","lmgr","lngamma","lnp_test","loadct","locale_get","logical_and","logical_or","logical_true","lon64arr","lonarr","long","long64","lsode","lu_complex","ludc","lumprove","lusol","m_correlate","machar","make_array","make_dll","make_rt","map","mapcontinents","mapgrid","map_2points","map_continents","map_grid","map_image","map_patch","map_proj_forward","map_proj_image","map_proj_info","map_proj_init","map_proj_inverse","map_set","matrix_multiply","matrix_power","max","md_test","mean","meanabsdev","mean_filter","median","memory","mesh_clip","mesh_decimate","mesh_issolid","mesh_merge","mesh_numtriangles","mesh_obj","mesh_smooth","mesh_surfacearea","mesh_validate","mesh_volume","message","min","min_curve_surf","mk_html_help","modifyct","moment","morph_close","morph_distance","morph_gradient","morph_hitormiss","morph_open","morph_thin","morph_tophat","multi","n_elements","n_params","n_tags","ncdf","newton","noise_hurl","noise_pick","noise_scatter","noise_slur","norm","obj_class","obj_destroy","obj_hasmethod","obj_isa","obj_new","obj_valid","objarr","on_error","on_ioerror","online_help","openr","openu","openw","oplot","oploterr","orderedhash","p_correlate","parse_url","particle_trace","path_cache","path_sep","pcomp","plot","plot3d","plot","plot_3dbox","plot_field","ploterr","plots","polar_contour","polar_surface","polyfill","polyshade","pnt_line","point_lun","polarplot","poly","poly_2d","poly_area","poly_fit","polyfillv","polygon","polyline","polywarp","popd","powell","pref_commit","pref_get","pref_set","prewitt","primes","print","printf","printd","pro","product","profile","profiler","profiles","project_vol","ps_show_fonts","psafm","pseudo","ptr_free","ptr_new","ptr_valid","ptrarr","pushd","qgrid3","qhull","qromb","qromo","qsimp","query_*","query_ascii","query_bmp","query_csv","query_dicom","query_gif","query_image","query_jpeg","query_jpeg2000","query_mrsid","query_pict","query_png","query_ppm","query_srf","query_tiff","query_video","query_wav","r_correlate","r_test","radon","randomn","randomu","ranks","rdpix","read","readf","read_ascii","read_binary","read_bmp","read_csv","read_dicom","read_gif","read_image","read_interfile","read_jpeg","read_jpeg2000","read_mrsid","read_pict","read_png","read_ppm","read_spr","read_srf","read_sylk","read_tiff","read_video","read_wav","read_wave","read_x11_bitmap","read_xwd","reads","readu","real_part","rebin","recall_commands","recon3","reduce_colors","reform","region_grow","register_cursor","regress","replicate","replicate_inplace","resolve_all","resolve_routine","restore","retall","return","reverse","rk4","roberts","rot","rotate","round","routine_filepath","routine_info","rs_test","s_test","save","savgol","scale3","scale3d","scatterplot","scatterplot3d","scope_level","scope_traceback","scope_varfetch","scope_varname","search2d","search3d","sem_create","sem_delete","sem_lock","sem_release","set_plot","set_shading","setenv","sfit","shade_surf","shade_surf_irr","shade_volume","shift","shift_diff","shmdebug","shmmap","shmunmap","shmvar","show3","showfont","signum","simplex","sin","sindgen","sinh","size","skewness","skip_lun","slicer3","slide_image","smooth","sobel","socket","sort","spawn","sph_4pnt","sph_scat","spher_harm","spl_init","spl_interp","spline","spline_p","sprsab","sprsax","sprsin","sprstp","sqrt","standardize","stddev","stop","strarr","strcmp","strcompress","streamline","streamline","stregex","stretch","string","strjoin","strlen","strlowcase","strmatch","strmessage","strmid","strpos","strput","strsplit","strtrim","struct_assign","struct_hide","strupcase","surface","surface","surfr","svdc","svdfit","svsol","swap_endian","swap_endian_inplace","symbol","systime","t_cvf","t_pdf","t3d","tag_names","tan","tanh","tek_color","temporary","terminal_size","tetra_clip","tetra_surface","tetra_volume","text","thin","thread","threed","tic","time_test2","timegen","timer","timestamp","timestamptovalues","tm_test","toc","total","trace","transpose","tri_surf","triangulate","trigrid","triql","trired","trisol","truncate_lun","ts_coef","ts_diff","ts_fcast","ts_smooth","tv","tvcrs","tvlct","tvrd","tvscl","typename","uindgen","uint","uintarr","ul64indgen","ulindgen","ulon64arr","ulonarr","ulong","ulong64","uniq","unsharp_mask","usersym","value_locate","variance","vector","vector_field","vel","velovect","vert_t3d","voigt","volume","voronoi","voxel_proj","wait","warp_tri","watershed","wdelete","wf_draw","where","widget_base","widget_button","widget_combobox","widget_control","widget_displaycontextmenu","widget_draw","widget_droplist","widget_event","widget_info","widget_label","widget_list","widget_propertysheet","widget_slider","widget_tab","widget_table","widget_text","widget_tree","widget_tree_move","widget_window","wiener_filter","window","window","write_bmp","write_csv","write_gif","write_image","write_jpeg","write_jpeg2000","write_nrif","write_pict","write_png","write_ppm","write_spr","write_srf","write_sylk","write_tiff","write_video","write_wav","write_wave","writeu","wset","wshow","wtn","wv_applet","wv_cwt","wv_cw_wavelet","wv_denoise","wv_dwt","wv_fn_coiflet","wv_fn_daubechies","wv_fn_gaussian","wv_fn_haar","wv_fn_morlet","wv_fn_paul","wv_fn_symlet","wv_import_data","wv_import_wavelet","wv_plot3d_wps","wv_plot_multires","wv_pwt","wv_tool_denoise","xbm_edit","xdisplayfile","xdxf","xfont","xinteranimate","xloadct","xmanager","xmng_tmpl","xmtool","xobjview","xobjview_rotate","xobjview_write_image","xpalette","xpcolor","xplot3d","xregistered","xroi","xsq_test","xsurface","xvaredit","xvolume","xvolume_rotate","xvolume_write_image","xyouts","zlib_compress","zlib_uncompress","zoom","zoom_24"];var _=i(a);var o=["begin","end","endcase","endfor","endwhile","endif","endrep","endforeach","break","case","continue","for","foreach","goto","if","then","else","repeat","until","switch","while","do","pro","function"];var l=i(o);var s=new RegExp("^[_a-z¡-￿][_a-z0-9¡-￿]*","i");var n=/[+\-*&=<>\/@#~$]/;var c=new RegExp("(and|or|eq|lt|le|gt|ge|ne|not)","i");function d(e){if(e.eatSpace())return null;if(e.match(";")){e.skipToEnd();return"comment"}if(e.match(/^[0-9\.+-]/,false)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}if(e.match(/^"([^"]|(""))*"/)){return"string"}if(e.match(/^'([^']|(''))*'/)){return"string"}if(e.match(l)){return"keyword"}if(e.match(_)){return"builtin"}if(e.match(s)){return"variable"}if(e.match(n)||e.match(c)){return"operator"}e.next();return null}const p={name:"idl",token:function(e){return d(e)},languageData:{autocomplete:a.concat(o)}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/7803.0c8929610218552319bf.js b/share/jupyter/lab/static/7803.0c8929610218552319bf.js new file mode 100644 index 0000000..bb88637 --- /dev/null +++ b/share/jupyter/lab/static/7803.0c8929610218552319bf.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7803],{57803:(t,e,a)=>{a.r(e);a.d(e,{Tag:()=>o,classHighlighter:()=>K,getStyleTags:()=>y,highlightCode:()=>k,highlightTree:()=>u,styleTags:()=>f,tagHighlighter:()=>p,tags:()=>I});var i=a(66575);var r=a.n(i);let n=0;class o{constructor(t,e,a,i){this.name=t;this.set=e;this.base=a;this.modified=i;this.id=n++}toString(){let{name:t}=this;for(let e of this.modified)if(e.name)t=`${e.name}(${t})`;return t}static define(t,e){let a=typeof t=="string"?t:"?";if(t instanceof o)e=t;if(e===null||e===void 0?void 0:e.base)throw new Error("Can not derive from a modified tag");let i=new o(a,[],null,[]);i.set.push(i);if(e)for(let r of e.set)i.set.push(r);return i}static defineModifier(t){let e=new l(t);return t=>{if(t.modified.indexOf(e)>-1)return t;return l.get(t.base||t,t.modified.concat(e).sort(((t,e)=>t.id-e.id)))}}}let s=0;class l{constructor(t){this.name=t;this.instances=[];this.id=s++}static get(t,e){if(!e.length)return t;let a=e[0].instances.find((a=>a.base==t&&c(e,a.modified)));if(a)return a;let i=[],r=new o(t.name,i,t,e);for(let o of e)o.instances.push(r);let n=h(e);for(let o of t.set)if(!o.modified.length)for(let t of n)i.push(l.get(o,t));return r}}function c(t,e){return t.length==e.length&&t.every(((t,a)=>t==e[a]))}function h(t){let e=[[]];for(let a=0;ae.length-t.length))}function f(t){let e=Object.create(null);for(let a in t){let i=t[a];if(!Array.isArray(i))i=[i];for(let t of a.split(" "))if(t){let a=[],r=2,n=t;for(let e=0;;){if(n=="..."&&e>0&&e+3==t.length){r=1;break}let i=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(n);if(!i)throw new RangeError("Invalid path: "+t);a.push(i[0]=="*"?"":i[0][0]=='"'?JSON.parse(i[0]):i[0]);e+=i[0].length;if(e==t.length)break;let o=t[e++];if(e==t.length&&o=="!"){r=0;break}if(o!="/")throw new RangeError("Invalid path: "+t);n=t.slice(e)}let o=a.length-1,s=a[o];if(!s)throw new RangeError("Invalid path: "+t);let l=new d(i,r,o>0?a.slice(0,o):null);e[s]=l.sort(e[s])}}return g.add(e)}const g=new i.NodeProp;class d{constructor(t,e,a,i){this.tags=t;this.mode=e;this.context=a;this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){if(!t||t.depth{let e=r;for(let i of t){for(let t of i.set){let i=a[t.id];if(i){e=e?e+" "+i:i;break}}}return e},scope:i}}function m(t,e){let a=null;for(let i of t){let t=i.style(e);if(t)a=a?a+" "+t:t}return a}function u(t,e,a,i=0,r=t.length){let n=new b(i,Array.isArray(e)?e:[e],a);n.highlightRange(t.cursor(),i,r,"",n.highlighters);n.flush(r)}function k(t,e,a,i,r,n=0,o=t.length){let s=n;function l(e,a){if(e<=s)return;for(let n=t.slice(s,e),o=0;;){let t=n.indexOf("\n",o);let e=t<0?n.length:t;if(e>o)i(n.slice(o,e),a);if(t<0)break;r();o=t+1}s=e}u(e,a,((t,e,a)=>{l(t,"");l(e,a)}),n,o);l(o,"")}class b{constructor(t,e,a){this.at=t;this.highlighters=e;this.span=a;this.class=""}startSpan(t,e){if(e!=this.class){this.flush(t);if(t>this.at)this.at=t;this.class=e}}flush(t){if(t>this.at&&this.class)this.span(this.at,t,this.class)}highlightRange(t,e,a,r,n){let{type:o,from:s,to:l}=t;if(s>=a||l<=e)return;if(o.isTop)n=this.highlighters.filter((t=>!t.scope||t.scope(o)));let c=r;let h=y(t)||d.empty;let f=m(n,h.tags);if(f){if(c)c+=" ";c+=f;if(h.mode==1)r+=(r?" ":"")+f}this.startSpan(Math.max(e,s),c);if(h.opaque)return;let g=t.tree&&t.tree.prop(i.NodeProp.mounted);if(g&&g.overlay){let i=t.node.enter(g.overlay[0].from+s,1);let o=this.highlighters.filter((t=>!t.scope||t.scope(g.tree.type)));let h=t.firstChild();for(let f=0,d=s;;f++){let p=f=m||!t.nextSibling())break}}if(!p||m>a)break;d=p.to+s;if(d>e){this.highlightRange(i.cursor(),Math.max(e,p.from+s),Math.min(a,d),"",o);this.startSpan(Math.min(a,d),c)}}if(h)t.parent()}else if(t.firstChild()){if(g)r="";do{if(t.to<=e)continue;if(t.from>=a)break;this.highlightRange(t,e,a,r,n);this.startSpan(Math.min(a,t.to),c)}while(t.nextSibling());t.parent()}}}function y(t){let e=t.type.prop(g);while(e&&e.context&&!t.matchContext(e.context))e=e.next;return e||null}const N=o.define;const w=N(),v=N(),x=N(v),M=N(v),O=N(),S=N(O),C=N(O),R=N(),A=N(R),_=N(),T=N(),j=N(),q=N(j),E=N();const I={comment:w,lineComment:N(w),blockComment:N(w),docComment:N(w),name:v,variableName:N(v),typeName:x,tagName:N(x),propertyName:M,attributeName:N(M),className:N(v),labelName:N(v),namespace:N(v),macroName:N(v),literal:O,string:S,docString:N(S),character:N(S),attributeValue:N(S),number:C,integer:N(C),float:N(C),bool:N(O),regexp:N(O),escape:N(O),color:N(O),url:N(O),keyword:_,self:N(_),null:N(_),atom:N(_),unit:N(_),modifier:N(_),operatorKeyword:N(_),controlKeyword:N(_),definitionKeyword:N(_),moduleKeyword:N(_),operator:T,derefOperator:N(T),arithmeticOperator:N(T),logicOperator:N(T),bitwiseOperator:N(T),compareOperator:N(T),updateOperator:N(T),definitionOperator:N(T),typeOperator:N(T),controlOperator:N(T),punctuation:j,separator:N(j),bracket:q,angleBracket:N(q),squareBracket:N(q),paren:N(q),brace:N(q),content:R,heading:A,heading1:N(A),heading2:N(A),heading3:N(A),heading4:N(A),heading5:N(A),heading6:N(A),contentSeparator:N(R),list:N(R),quote:N(R),emphasis:N(R),strong:N(R),link:N(R),monospace:N(R),strikethrough:N(R),inserted:N(),deleted:N(),changed:N(),invalid:N(),meta:E,documentMeta:N(E),annotation:N(E),processingInstruction:N(E),definition:o.defineModifier("definition"),constant:o.defineModifier("constant"),function:o.defineModifier("function"),standard:o.defineModifier("standard"),local:o.defineModifier("local"),special:o.defineModifier("special")};for(let B in I){let t=I[B];if(t instanceof o)t.name=B}const K=p([{tag:I.link,class:"tok-link"},{tag:I.heading,class:"tok-heading"},{tag:I.emphasis,class:"tok-emphasis"},{tag:I.strong,class:"tok-strong"},{tag:I.keyword,class:"tok-keyword"},{tag:I.atom,class:"tok-atom"},{tag:I.bool,class:"tok-bool"},{tag:I.url,class:"tok-url"},{tag:I.labelName,class:"tok-labelName"},{tag:I.inserted,class:"tok-inserted"},{tag:I.deleted,class:"tok-deleted"},{tag:I.literal,class:"tok-literal"},{tag:I.string,class:"tok-string"},{tag:I.number,class:"tok-number"},{tag:[I.regexp,I.escape,I.special(I.string)],class:"tok-string2"},{tag:I.variableName,class:"tok-variableName"},{tag:I.local(I.variableName),class:"tok-variableName tok-local"},{tag:I.definition(I.variableName),class:"tok-variableName tok-definition"},{tag:I.special(I.variableName),class:"tok-variableName2"},{tag:I.definition(I.propertyName),class:"tok-propertyName tok-definition"},{tag:I.typeName,class:"tok-typeName"},{tag:I.namespace,class:"tok-namespace"},{tag:I.className,class:"tok-className"},{tag:I.macroName,class:"tok-macroName"},{tag:I.propertyName,class:"tok-propertyName"},{tag:I.operator,class:"tok-operator"},{tag:I.comment,class:"tok-comment"},{tag:I.meta,class:"tok-meta"},{tag:I.invalid,class:"tok-invalid"},{tag:I.punctuation,class:"tok-punctuation"}])}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/7828.3b5aef1a0c7429703e61.js b/share/jupyter/lab/static/7828.3b5aef1a0c7429703e61.js new file mode 100644 index 0000000..799dd29 --- /dev/null +++ b/share/jupyter/lab/static/7828.3b5aef1a0c7429703e61.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7828],{15447:(t,e,n)=>{"use strict";n.d(e,{diagram:()=>Gt});var i=n(29131);var r=n(42418);var s=n(70416);var a=n(16750);var o=n(78474);var c=n.n(o);var l=n(5168);var u=n.n(l);var d=n(17024);var f=n.n(d);var h=n(55808);var k=n.n(h);var y=n(1218);var m=function(){var t=(0,s.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],r=[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,s.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,s.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:r,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:r,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,s.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,s.K2)((function t(e){var n=this,i=[0],r=[],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,s.K2)(T,"popStack");function x(){var t;t=r.pop()||m.lex()||k;if(typeof t!=="number"){if(t instanceof Array){r=t;t=r.pop()}t=n.symbols_[t]||t}return t}(0,s.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,s.K2)((function t(e,n){if(this.yy.parser){this.yy.parser.parseError(e,n)}else{throw new Error(e)}}),"parseError"),setInput:(0,s.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,s.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,s.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,s.K2)((function(){this._more=true;return this}),"more"),reject:(0,s.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,s.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,s.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,s.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,s.K2)((function(){var t=this.pastInput();var e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,s.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,s.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,s.K2)((function t(){var e=this.next();if(e){return e}else{return this.lex()}}),"lex"),begin:(0,s.K2)((function t(e){this.conditionStack.push(e)}),"begin"),popState:(0,s.K2)((function t(){var e=this.conditionStack.length-1;if(e>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}}),"popState"),_currentRules:(0,s.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,s.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,s.K2)((function t(e){this.begin(e)}),"pushState"),stateStackSize:(0,s.K2)((function t(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":true},performAction:(0,s.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,s.K2)(K,"Parser");K.prototype=C;C.Parser=K;return new K}();m.parser=m;var p=m;c().extend(u());c().extend(f());c().extend(k());var g={friday:5,saturday:6};var v="";var b="";var T=void 0;var x="";var w=[];var _=[];var D=new Map;var $=[];var C=[];var S="";var K="";var E=["active","done","crit","milestone","vert"];var M=[];var A=false;var L=false;var Y="sunday";var I="saturday";var W=0;var F=(0,s.K2)((function(){$=[];C=[];S="";M=[];yt=0;vt=void 0;bt=void 0;Tt=[];v="";b="";K="";T=void 0;x="";w=[];_=[];A=false;L=false;W=0;D=new Map;(0,r.IU)();Y="sunday";I="saturday"}),"clear");var O=(0,s.K2)((function(t){b=t}),"setAxisFormat");var P=(0,s.K2)((function(){return b}),"getAxisFormat");var B=(0,s.K2)((function(t){T=t}),"setTickInterval");var z=(0,s.K2)((function(){return T}),"getTickInterval");var N=(0,s.K2)((function(t){x=t}),"setTodayMarker");var G=(0,s.K2)((function(){return x}),"getTodayMarker");var H=(0,s.K2)((function(t){v=t}),"setDateFormat");var j=(0,s.K2)((function(){A=true}),"enableInclusiveEndDates");var R=(0,s.K2)((function(){return A}),"endDatesAreInclusive");var U=(0,s.K2)((function(){L=true}),"enableTopAxis");var V=(0,s.K2)((function(){return L}),"topAxisEnabled");var Z=(0,s.K2)((function(t){K=t}),"setDisplayMode");var X=(0,s.K2)((function(){return K}),"getDisplayMode");var q=(0,s.K2)((function(){return v}),"getDateFormat");var Q=(0,s.K2)((function(t){w=t.toLowerCase().split(/[\s,]+/)}),"setIncludes");var J=(0,s.K2)((function(){return w}),"getIncludes");var tt=(0,s.K2)((function(t){_=t.toLowerCase().split(/[\s,]+/)}),"setExcludes");var et=(0,s.K2)((function(){return _}),"getExcludes");var nt=(0,s.K2)((function(){return D}),"getLinks");var it=(0,s.K2)((function(t){S=t;$.push(t)}),"addSection");var rt=(0,s.K2)((function(){return $}),"getSections");var st=(0,s.K2)((function(){let t=$t();const e=10;let n=0;while(!t&&n[\d\w- ]+)/;const r=i.exec(n);if(r!==null){let t=null;for(const n of r.groups.ids.split(" ")){let e=_t(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=c()(n,e.trim(),true);if(a.isValid()){return a.toDate()}else{s.Rm.debug("Invalid date:"+n);s.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 ht=(0,s.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 kt=(0,s.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=_t(n);if(e!==void 0&&(!t||e.startTime{window.open(n,"_self")}));D.set(t,n)}}));St(t,"clickable")}),"setLink");var St=(0,s.K2)((function(t,e){t.split(",").forEach((function(t){let n=_t(t);if(n!==void 0){n.classes.push(e)}}))}),"setClass");var Kt=(0,s.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 Et=(0,s.K2)((function(t,e){M.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 Mt=(0,s.K2)((function(t,e,n){t.split(",").forEach((function(t){Kt(t,e,n)}));St(t,"clickable")}),"setClickEvent");var At=(0,s.K2)((function(t){M.forEach((function(e){e(t)}))}),"bindFunctions");var Lt={getConfig:(0,s.K2)((()=>(0,r.D7)().gantt),"getConfig"),clear:F,setDateFormat:H,getDateFormat:q,enableInclusiveEndDates:j,endDatesAreInclusive:R,enableTopAxis:U,topAxisEnabled:V,setAxisFormat:O,getAxisFormat:P,setTickInterval:B,getTickInterval:z,setTodayMarker:N,getTodayMarker:G,setAccTitle:r.SV,getAccTitle:r.iN,setDiagramTitle:r.ke,getDiagramTitle:r.ab,setDisplayMode:Z,getDisplayMode:X,setAccDescription:r.EI,getAccDescription:r.m7,addSection:it,getSections:rt,getTasks:st,addTask:wt,findTaskById:_t,addTaskOrg:Dt,setIncludes:Q,getIncludes:J,setExcludes:tt,getExcludes:et,setClickEvent:Mt,setLink:Ct,getLinks:nt,bindFunctions:At,parseDuration:ht,isInvalidDate:at,setWeekday:ot,getWeekday:ct,setWeekend:lt};function Yt(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,s.K2)(Yt,"getTaskTags");var It=(0,s.K2)((function(){s.Rm.debug("Something is calling, setConf, remove the call")}),"setConf");var Wt={monday:y.ABi,tuesday:y.PGu,wednesday:y.GuW,thursday:y.Mol,friday:y.TUC,saturday:y.rGn,sunday:y.YPH};var Ft=(0,s.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 Ot;var Pt=(0,s.K2)((function(t,e,n,i){const a=(0,r.D7)().gantt;const o=(0,r.D7)().securityLevel;let l;if(o==="sandbox"){l=(0,y.Ltv)("#i"+e)}const u=o==="sandbox"?(0,y.Ltv)(l.nodes()[0].contentDocument.body):(0,y.Ltv)("body");const d=o==="sandbox"?l.nodes()[0].contentDocument:document;const f=d.getElementById(e);Ot=f.parentElement.offsetWidth;if(Ot===void 0){Ot=1200}if(a.useWidth!==void 0){Ot=a.useWidth}const h=i.db.getTasks();let k=[];for(const r of h){k.push(r.type)}k=C(k);const m={};let p=2*a.topPadding;if(i.db.getDisplayMode()==="compact"||a.displayMode==="compact"){const t={};for(const n of h){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;p+=i*(a.barHeight+a.barGap);m[n]=i}}else{p+=h.length*(a.barHeight+a.barGap);for(const t of k){m[t]=h.filter((e=>e.type===t)).length}}f.setAttribute("viewBox","0 0 "+Ot+" "+p);const g=u.select(`[id="${e}"]`);const v=(0,y.w7C)().domain([(0,y.jkA)(h,(function(t){return t.startTime})),(0,y.T9B)(h,(function(t){return t.endTime}))]).rangeRound([0,Ot-a.leftPadding-a.rightPadding]);function b(t,e){const n=t.startTime;const i=e.startTime;let r=0;if(n>i){r=1}else if(nt.vert===e.vert?0:t.vert?1:-1));const d=[...new Set(t.map((t=>t.order)))];const f=d.map((e=>t.find((t=>t.order===e))));g.append("g").selectAll("rect").data(f).enter().append("rect").attr("x",0).attr("y",(function(t,e){e=t.order;return e*n+s-2})).attr("width",(function(){return u-a.rightPadding/2})).attr("height",n).attr("class",(function(t){for(const[e,n]of k.entries()){if(t.type===n){return"section section"+e%a.numberSectionStyles}}return"section section0"})).enter();const m=g.append("g").selectAll("rect").data(t).enter();const p=i.db.getLinks();m.append("rect").attr("id",(function(t){return t.id})).attr("rx",3).attr("ry",3).attr("x",(function(t){if(t.milestone){return v(t.startTime)+o+.5*(v(t.endTime)-v(t.startTime))-.5*c}return v(t.startTime)+o})).attr("y",(function(t,e){e=t.order;if(t.vert){return a.gridLineStartPadding}return e*n+s})).attr("width",(function(t){if(t.milestone){return c}if(t.vert){return.08*c}return v(t.renderEndTime||t.endTime)-v(t.startTime)})).attr("height",(function(t){if(t.vert){return h.length*(a.barHeight+a.barGap)+a.barHeight*2}return c})).attr("transform-origin",(function(t,e){e=t.order;return(v(t.startTime)+o+.5*(v(t.endTime)-v(t.startTime))).toString()+"px "+(e*n+s+.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[s,o]of k.entries()){if(t.type===o){i=s%a.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}if(t.vert){r=" vert "+r}r+=i;r+=" "+n;return e+r}));m.append("text").attr("id",(function(t){return t.id+"-text"})).text((function(t){return t.task})).attr("font-size",a.fontSize).attr("x",(function(t){let e=v(t.startTime);let n=v(t.renderEndTime||t.endTime);if(t.milestone){e+=.5*(v(t.endTime)-v(t.startTime))-.5*c;n=e+c}if(t.vert){return v(t.startTime)+o}const i=this.getBBox().width;if(i>n-e){if(n+i+1.5*a.leftPadding>u){return e+o-5}else{return n+o+5}}else{return(n-e)/2+e+o}})).attr("y",(function(t,e){if(t.vert){return a.gridLineStartPadding+h.length*(a.barHeight+a.barGap)+60}e=t.order;return e*n+a.barHeight/2+(a.fontSize/2-2)+s})).attr("text-height",c).attr("class",(function(t){const e=v(t.startTime);let n=v(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 s=0;for(const[c,l]of k.entries()){if(t.type===l){s=c%a.numberSectionStyles}}let o="";if(t.active){if(t.crit){o="activeCritText"+s}else{o="activeText"+s}}if(t.done){if(t.crit){o=o+" doneCritText"+s}else{o=o+" doneText"+s}}else{if(t.crit){o=o+" critText"+s}}if(t.milestone){o+=" milestoneText"}if(t.vert){o+=" vertText"}if(i>n-e){if(n+i+1.5*a.leftPadding>u){return r+" taskTextOutsideLeft taskTextOutside"+s+" "+o}else{return r+" taskTextOutsideRight taskTextOutside"+s+" "+o+" width-"+i}}else{return r+" taskText taskText"+s+" "+o+" width-"+i}}));const b=(0,r.D7)().securityLevel;if(b==="sandbox"){let t;t=(0,y.Ltv)("#i"+e);const n=t.nodes()[0].contentDocument;m.filter((function(t){return p.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",p.get(t.id));s.setAttribute("target","_top");r.appendChild(s);s.appendChild(e);s.appendChild(i)}))}}(0,s.K2)(x,"drawRects");function w(t,e,n,r,o,l,u,d){if(u.length===0&&d.length===0){return}let f;let h;for(const{startTime:i,endTime:s}of l){if(f===void 0||ih){h=s}}if(!f||!h){return}if(c()(h).diff(c()(f),"year")>5){s.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 p=c()(f);while(p.valueOf()<=h){if(i.db.isInvalidDate(p,k,u,d)){if(!m){m={start:p,end:p}}else{m.end=p}}else{if(m){y.push(m);m=null}}p=p.add(1,"d")}const b=g.append("g").selectAll("rect").data(y).enter();b.append("rect").attr("id",(t=>"exclude-"+t.start.format("YYYY-MM-DD"))).attr("x",(t=>v(t.start.startOf("day"))+n)).attr("y",a.gridLineStartPadding).attr("width",(t=>v(t.end.endOf("day"))-v(t.start.startOf("day")))).attr("height",o-e-a.gridLineStartPadding).attr("transform-origin",(function(e,i){return(v(e.start)+n+.5*(v(e.end)-v(e.start))).toString()+"px "+(i*t+.5*o).toString()+"px"})).attr("class","exclude-range")}(0,s.K2)(w,"drawExcludeDays");function _(t,e,n,r){const s=i.db.getDateFormat();const o=i.db.getAxisFormat();let c;if(o){c=o}else if(s==="D"){c="%d"}else{c=a.axisFormat??"%Y-%m-%d"}let l=(0,y.l78)(v).tickSize(-r+e+a.gridLineStartPadding).tickFormat((0,y.DCK)(c));const u=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/;const d=u.exec(i.db.getTickInterval()||a.tickInterval);if(d!==null){const t=d[1];const e=d[2];const n=i.db.getWeekday()||a.weekday;switch(e){case"millisecond":l.ticks(y.t6C.every(t));break;case"second":l.ticks(y.ucG.every(t));break;case"minute":l.ticks(y.wXd.every(t));break;case"hour":l.ticks(y.Agd.every(t));break;case"day":l.ticks(y.UAC.every(t));break;case"week":l.ticks(Wt[n].every(t));break;case"month":l.ticks(y.Ui6.every(t));break}}g.append("g").attr("class","grid").attr("transform","translate("+t+", "+(r-50)+")").call(l).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em");if(i.db.topAxisEnabled()||a.topAxis){let n=(0,y.tlR)(v).tickSize(-r+e+a.gridLineStartPadding).tickFormat((0,y.DCK)(c));if(d!==null){const t=d[1];const e=d[2];const r=i.db.getWeekday()||a.weekday;switch(e){case"millisecond":n.ticks(y.t6C.every(t));break;case"second":n.ticks(y.ucG.every(t));break;case"minute":n.ticks(y.wXd.every(t));break;case"hour":n.ticks(y.Agd.every(t));break;case"day":n.ticks(y.UAC.every(t));break;case"week":n.ticks(Wt[r].every(t));break;case"month":n.ticks(y.Ui6.every(t));break}}g.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,s.K2)(_,"makeGrid");function D(t,e){let n=0;const i=Object.keys(m).map((t=>[t,m[t]]));g.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=d.createElementNS("http://www.w3.org/2000/svg","text");i.setAttribute("dy",n+"em");for(const[r,s]of e.entries()){const t=d.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 .vert {\n stroke: ${t.vertLineColor};\n }\n\n .vertText {\n font-size: 15px;\n text-anchor: middle;\n fill: ${t.vertLineColor} !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 Nt=zt;var Gt={parser:p,db:Lt,renderer:Bt,styles:Nt}},55808: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)}}}))},17024: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)}}}))},5168: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)}}}))}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/785.1438df201df83e9dc1d8.js b/share/jupyter/lab/static/785.1438df201df83e9dc1d8.js new file mode 100644 index 0000000..61de364 --- /dev/null +++ b/share/jupyter/lab/static/785.1438df201df83e9dc1d8.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[785],{45948:(t,e,n)=>{n.d(e,{P:()=>g});const i="view",r="[",s="]",a="{",o="}",u=":",l=",",c="@",f=">",d=/[[\]{}]/,h={"*":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 p,m;function g(t,e,n){p=e||i;m=n||h;return b(t.trim()).map(x)}function y(t){return m[t]}function v(t,e,n,i,r){const s=t.length;let a=0,o;for(;e=0)--a;else if(i&&i.indexOf(o)>=0)++a}return e}function b(t){const e=[],n=t.length;let i=0,u=0;while(u' after between selector: "+t}i=i.map(x);const a=x(t.slice(1).trim());if(a.between){return{between:i,stream:a}}else{a.between=i}return a}function w(t){const e={source:p},n=[];let i=[0,0],l=0,f=0,h=t.length,m=0,g,b;if(t[h-1]===o){m=t.lastIndexOf(a);if(m>=0){try{i=A(t.substring(m+1,h-1))}catch(x){throw"Invalid throttle specification: "+t}t=t.slice(0,m).trim();h=t.length}else throw"Unmatched right brace: "+t;m=0}if(!h)throw t;if(t[0]===c)l=++m;g=v(t,m,u);if(g1){e.type=n[1];if(l){e.markname=n[0].slice(1)}else if(y(n[0])){e.marktype=n[0]}else{e.source=n[0]}}else{e.type=n[0]}if(e.type.slice(-1)==="!"){e.consume=true;e.type=e.type.slice(0,-1)}if(b!=null)e.filter=b;if(i[0])e.throttle=i[0];if(i[1])e.debounce=i[1];return e}function A(t){const e=t.split(l);if(!t.length||e.length>2)throw t;return e.map((e=>{const n=+e;if(n!==n)throw t;return n}))}},60785:(t,e,n)=>{n.r(e);n.d(e,{Bounds:()=>vd,CanvasHandler:()=>jm,CanvasRenderer:()=>Zm,DATE:()=>it,DAY:()=>rt,DAYOFYEAR:()=>st,Dataflow:()=>Si,Debug:()=>p.y,Error:()=>p.$D,EventStream:()=>Ln,Gradient:()=>Hc,GroupItem:()=>xd,HOURS:()=>at,Handler:()=>hm,HybridHandler:()=>ey,HybridRenderer:()=>ty,Info:()=>p.R2,Item:()=>bd,MILLISECONDS:()=>lt,MINUTES:()=>ot,MONTH:()=>et,Marks:()=>Qp,MultiPulse:()=>pi,None:()=>p.NV,Operator:()=>$n,Parameters:()=>Dn,Pulse:()=>ci,QUARTER:()=>tt,RenderType:()=>oy,Renderer:()=>mm,ResourceLoader:()=>_d,SECONDS:()=>ut,SVGHandler:()=>eg,SVGRenderer:()=>Rg,SVGStringRenderer:()=>Qg,Scenegraph:()=>rm,TIME_UNITS:()=>ct,Transform:()=>Bi,View:()=>Aq,WEEK:()=>nt,Warn:()=>p.P$,YEAR:()=>J,accessor:()=>p.sY,accessorFields:()=>p.nS,accessorName:()=>p.N6,array:()=>p.YO,ascending:()=>p.V_,bandwidthNRD:()=>er,bin:()=>nr,bootstrapCI:()=>sr,boundClip:()=>gy,boundContext:()=>jd,boundItem:()=>Kp,boundMark:()=>Jp,boundStroke:()=>kd,changeset:()=>En,clampRange:()=>p.BS,codegenExpression:()=>PR,compare:()=>p.UD,constant:()=>p.dY,cumulativeLogNormal:()=>wr,cumulativeNormal:()=>mr,cumulativeUniform:()=>Cr,dayofyear:()=>yt,debounce:()=>p.sg,defaultLocale:()=>Fe,definition:()=>Ri,densityLogNormal:()=>_r,densityNormal:()=>pr,densityUniform:()=>Dr,domChild:()=>um,domClear:()=>lm,domCreate:()=>am,domFind:()=>om,dotbin:()=>ar,error:()=>p.z3,expressionFunction:()=>yL,extend:()=>p.X$,extent:()=>p.Xx,extentIndex:()=>p.n,falsy:()=>p.me,fastmap:()=>p.nG,field:()=>p.ZZ,flush:()=>p.bX,font:()=>Lp,fontFamily:()=>Np,fontSize:()=>Fp,format:()=>an,formatLocale:()=>xe,formats:()=>on,hasOwnProperty:()=>p.mQ,id:()=>p.id,identity:()=>p.D_,inferType:()=>Qe,inferTypes:()=>Ke,ingest:()=>bn,inherits:()=>p.B,inrange:()=>p.PK,interpolate:()=>oc,interpolateColors:()=>ic,interpolateRange:()=>nc,intersect:()=>cy,intersectBoxLine:()=>th,intersectPath:()=>Qd,intersectPoint:()=>Kd,intersectRule:()=>Jd,isArray:()=>p.cy,isBoolean:()=>p.Lm,isDate:()=>p.$P,isFunction:()=>p.Tn,isIterable:()=>p.xZ,isNumber:()=>p.Et,isObject:()=>p.Gv,isRegExp:()=>p.gd,isString:()=>p.Kg,isTuple:()=>gn,key:()=>p.Eb,lerp:()=>p.Cc,lineHeight:()=>Sp,loader:()=>fn,locale:()=>Ce,logger:()=>p.vF,lruCache:()=>p.EV,markup:()=>Eg,merge:()=>p.h1,mergeConfig:()=>p.io,multiLineOffset:()=>$p,one:()=>p.xH,pad:()=>p.eV,panLinear:()=>p.VC,panLog:()=>p.KH,panPow:()=>p.co,panSymlog:()=>p.zy,parse:()=>GY,parseExpression:()=>OR,parseSelector:()=>Cq.P,path:()=>Qo.Ae,pathCurves:()=>Qc,pathEqual:()=>by,pathParse:()=>nf,pathRectangle:()=>zf,pathRender:()=>yf,pathSymbols:()=>_f,pathTrail:()=>Bf,peek:()=>p.se,point:()=>fm,projection:()=>wk,quantileLogNormal:()=>Ar,quantileNormal:()=>gr,quantileUniform:()=>Fr,quantiles:()=>Ji,quantizeInterpolator:()=>rc,quarter:()=>p.$G,quartiles:()=>tr,random:()=>ir,randomInteger:()=>lr,randomKDE:()=>br,randomLCG:()=>ur,randomLogNormal:()=>kr,randomMixture:()=>Er,randomNormal:()=>vr,randomUniform:()=>Sr,read:()=>ln,regressionConstant:()=>zr,regressionExp:()=>Lr,regressionLinear:()=>Tr,regressionLoess:()=>Wr,regressionLog:()=>Nr,regressionPoly:()=>Ir,regressionPow:()=>Pr,regressionQuad:()=>qr,renderModule:()=>ly,repeat:()=>p.ux,resetDefaultLocale:()=>Se,resetSVGClipId:()=>gd,resetSVGDefIds:()=>_y,responseType:()=>un,runtimeContext:()=>HL,sampleCurve:()=>Kr,sampleLogNormal:()=>xr,sampleNormal:()=>hr,sampleUniform:()=>Mr,scale:()=>Yl,sceneEqual:()=>vy,sceneFromJSON:()=>nm,scenePickVisit:()=>dh,sceneToJSON:()=>em,sceneVisit:()=>fh,sceneZOrder:()=>ch,scheme:()=>pc,serializeXML:()=>Mg,setHybridRendererOptions:()=>Jg,setRandom:()=>rr,span:()=>p.Ln,splitAccessPath:()=>p.iv,stringValue:()=>p.r$,textMetrics:()=>Ap,timeBin:()=>ce,timeFloor:()=>Rt,timeFormatLocale:()=>Me,timeInterval:()=>qt,timeOffset:()=>jt,timeSequence:()=>Wt,timeUnitSpecifier:()=>pt,timeUnits:()=>dt,toBoolean:()=>p.G4,toDate:()=>p.ay,toNumber:()=>p.Ro,toSet:()=>p.M1,toString:()=>p.dI,transform:()=>Oi,transforms:()=>$i,truncate:()=>p.xv,truthy:()=>p.vN,tupleid:()=>yn,typeParsers:()=>Xe,utcFloor:()=>Nt,utcInterval:()=>It,utcOffset:()=>Gt,utcSequence:()=>Xt,utcdayofyear:()=>At,utcquarter:()=>p.vu,utcweek:()=>kt,version:()=>YY,visitArray:()=>p.rt,week:()=>vt,writeConfig:()=>p.AU,zero:()=>p.v_,zoomLinear:()=>p.lL,zoomLog:()=>p.oV,zoomPow:()=>p.SW,zoomSymlog:()=>p.B2});var i={};n.r(i);n.d(i,{aggregate:()=>xs,bin:()=>ws,collect:()=>ks,compare:()=>Es,countpattern:()=>Ds,cross:()=>Fs,density:()=>Ts,dotbin:()=>js,expression:()=>Ys,extent:()=>Xs,facet:()=>Vs,field:()=>Qs,filter:()=>Zs,flatten:()=>Js,fold:()=>ta,formula:()=>ea,generate:()=>na,impute:()=>sa,joinaggregate:()=>la,kde:()=>ca,key:()=>fa,load:()=>ha,lookup:()=>ga,multiextent:()=>ya,multivalues:()=>ba,params:()=>_a,pivot:()=>wa,prefacet:()=>Ma,project:()=>Da,proxy:()=>Fa,quantile:()=>Sa,relay:()=>Ba,sample:()=>$a,sequence:()=>Ra,sieve:()=>Oa,subflow:()=>Hs,timeunit:()=>Ta,tupleindex:()=>La,values:()=>Pa,window:()=>Xa});var r={};n.r(r);n.d(r,{bound:()=>sv,identifier:()=>uv,mark:()=>cv,overlap:()=>dv,render:()=>xv,viewlayout:()=>Qv});var s={};n.r(s);n.d(s,{axisticks:()=>eb,datajoin:()=>nb,encode:()=>sb,legendentries:()=>ab,linkpath:()=>fb,pie:()=>Eb,scale:()=>Sb,sortitems:()=>jb,stack:()=>Hb});var a={};n.r(a);n.d(a,{contour:()=>Jk,geojson:()=>iE,geopath:()=>rE,geopoint:()=>aE,geoshape:()=>oE,graticule:()=>lE,heatmap:()=>cE,isocontour:()=>qk,kde2d:()=>Vk,projection:()=>mE});var o={};n.r(o);n.d(o,{force:()=>yM});var u={};n.r(u);n.d(u,{nest:()=>TD,pack:()=>GD,partition:()=>WD,stratify:()=>XD,tree:()=>QD,treelinks:()=>KD,treemap:()=>tC});var l={};n.r(l);n.d(l,{label:()=>qC});var c={};n.r(c);n.d(c,{loess:()=>UC,regression:()=>YC});var f={};n.r(f);n.d(f,{voronoi:()=>Qz});var d={};n.r(d);n.d(d,{wordcloud:()=>mB});var h={};n.r(h);n.d(h,{crossfilter:()=>DB,resolvefilter:()=>CB});var p=n(26372);var m={},g={},y=34,v=10,b=13;function x(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'})).join(",")+"}")}function _(t,e){var n=x(t);return function(i,r){return e(n(i),r,t)}}function w(t){var e=Object.create(null),n=[];t.forEach((function(t){for(var i in t){if(!(i in e)){n.push(e[i]=i)}}}));return n}function A(t,e){var n=t+"",i=n.length;return i9999?"+"+A(t,6):A(t,4)}function E(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),i=t.getUTCSeconds(),r=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":k(t.getUTCFullYear(),4)+"-"+A(t.getUTCMonth()+1,2)+"-"+A(t.getUTCDate(),2)+(r?"T"+A(e,2)+":"+A(n,2)+":"+A(i,2)+"."+A(r,3)+"Z":i?"T"+A(e,2)+":"+A(n,2)+":"+A(i,2)+"Z":n||e?"T"+A(e,2)+":"+A(n,2)+"Z":"")}function M(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function i(t,e){var n,i,s=r(t,(function(t,r){if(n)return n(t,r-1);i=t,n=e?_(t,e):x(t)}));s.columns=i||[];return s}function r(t,e){var i=[],r=t.length,s=0,a=0,o,u=r<=0,l=false;if(t.charCodeAt(r-1)===v)--r;if(t.charCodeAt(r-1)===b)--r;function c(){if(u)return g;if(l)return l=false,m;var e,i=s,a;if(t.charCodeAt(i)===y){while(s++=r)u=true;else if((a=t.charCodeAt(s++))===v)l=true;else if(a===b){l=true;if(t.charCodeAt(s)===v)++s}return t.slice(i+1,e-1).replace(/""/g,'"')}while(s1)i=T(t,e,n);else for(r=0,i=new Array(s=t.arcs.length);r(t[e]=1+n,t)),{});function dt(t){const e=(0,p.YO)(t).slice(),n={};if(!e.length)(0,p.z3)("Missing time unit.");e.forEach((t=>{if((0,p.mQ)(ft,t)){n[t]=1}else{(0,p.z3)(`Invalid time unit: ${t}.`)}}));const i=(n[nt]||n[rt]?1:0)+(n[tt]||n[et]||n[it]?1:0)+(n[st]?1:0);if(i>1){(0,p.z3)(`Incompatible time units: ${t}`)}e.sort(((t,e)=>ft[t]-ft[e]));return e}const ht={[J]:"%Y ",[tt]:"Q%q ",[et]:"%b ",[it]:"%d ",[nt]:"W%U ",[rt]:"%a ",[st]:"%j ",[at]:"%H:00",[ot]:"00:%M",[ut]:":%S",[lt]:".%L",[`${J}-${et}`]:"%Y-%m ",[`${J}-${et}-${it}`]:"%Y-%m-%d ",[`${at}-${ot}`]:"%H:%M"};function pt(t,e){const n=(0,p.X$)({},ht,e),i=dt(t),r=i.length;let s="",a=0,o,u;for(a=0;aa;--o){u=i.slice(a,o).join("-");if(n[u]!=null){s+=n[u];a=o;break}}}return s.trim()}const mt=new Date;function gt(t){mt.setFullYear(t);mt.setMonth(0);mt.setDate(1);mt.setHours(0,0,0,0);return mt}function yt(t){return bt(new Date(t))}function vt(t){return xt(new Date(t))}function bt(t){return G.UA.count(gt(t.getFullYear())-1,t)}function xt(t){return Y.YP.count(gt(t.getFullYear())-1,t)}function _t(t){return gt(t).getDay()}function wt(t,e,n,i,r,s,a){if(0<=t&&t<100){const o=new Date(-1,e,n,i,r,s,a);o.setFullYear(t);return o}return new Date(t,e,n,i,r,s,a)}function At(t){return Et(new Date(t))}function kt(t){return Mt(new Date(t))}function Et(t){const e=Date.UTC(t.getUTCFullYear(),0,1);return G.dA.count(e-1,t)}function Mt(t){const e=Date.UTC(t.getUTCFullYear(),0,1);return Y.Hl.count(e-1,t)}function Dt(t){mt.setTime(Date.UTC(t,0,1));return mt.getUTCDay()}function Ct(t,e,n,i,r,s,a){if(0<=t&&t<100){const t=new Date(Date.UTC(-1,e,n,i,r,s,a));t.setUTCFullYear(n.y);return t}return new Date(Date.UTC(t,e,n,i,r,s,a))}function Ft(t,e,n,i,r){const s=e||1,a=(0,p.se)(t),o=(t,e,r)=>{r=r||t;return St(n[r],i[r],t===a&&s,e)};const u=new Date,l=(0,p.M1)(t),c=l[J]?o(J):(0,p.dY)(2012),f=l[et]?o(et):l[tt]?o(tt):p.v_,d=l[nt]&&l[rt]?o(rt,1,nt+rt):l[nt]?o(nt,1):l[rt]?o(rt,1):l[it]?o(it,1):l[st]?o(st,1):p.xH,h=l[at]?o(at):p.v_,m=l[ot]?o(ot):p.v_,g=l[ut]?o(ut):p.v_,y=l[lt]?o(lt):p.v_;return function(t){u.setTime(+t);const e=c(u);return r(e,f(u),d(u,e),h(u),m(u),g(u),y(u))}}function St(t,e,n,i){const r=n<=1?t:i?(e,r)=>i+n*Math.floor((t(e,r)-i)/n):(e,i)=>n*Math.floor(t(e,i)/n);return e?(t,n)=>e(r(t,n),n):r}function zt(t,e,n){return e+t*7-(n+6)%7}const Bt={[J]:t=>t.getFullYear(),[tt]:t=>Math.floor(t.getMonth()/3),[et]:t=>t.getMonth(),[it]:t=>t.getDate(),[at]:t=>t.getHours(),[ot]:t=>t.getMinutes(),[ut]:t=>t.getSeconds(),[lt]:t=>t.getMilliseconds(),[st]:t=>bt(t),[nt]:t=>xt(t),[nt+rt]:(t,e)=>zt(xt(t),t.getDay(),_t(e)),[rt]:(t,e)=>zt(1,t.getDay(),_t(e))};const $t={[tt]:t=>3*t,[nt]:(t,e)=>zt(t,0,_t(e))};function Rt(t,e){return Ft(t,e||1,Bt,$t,wt)}const Ot={[J]:t=>t.getUTCFullYear(),[tt]:t=>Math.floor(t.getUTCMonth()/3),[et]:t=>t.getUTCMonth(),[it]:t=>t.getUTCDate(),[at]:t=>t.getUTCHours(),[ot]:t=>t.getUTCMinutes(),[ut]:t=>t.getUTCSeconds(),[lt]:t=>t.getUTCMilliseconds(),[st]:t=>Et(t),[nt]:t=>Mt(t),[rt]:(t,e)=>zt(1,t.getUTCDay(),Dt(e)),[nt+rt]:(t,e)=>zt(Mt(t),t.getUTCDay(),Dt(e))};const Tt={[tt]:t=>3*t,[nt]:(t,e)=>zt(t,0,Dt(e))};function Nt(t,e){return Ft(t,e||1,Ot,Tt,Ct)}const Lt={[J]:W.he,[tt]:X.Ui.every(3),[et]:X.Ui,[nt]:Y.YP,[it]:G.UA,[rt]:G.UA,[st]:G.UA,[at]:H.Ag,[ot]:V.wX,[ut]:Q.R,[lt]:K.y};const Pt={[J]:W.Mb,[tt]:X.R6.every(3),[et]:X.R6,[nt]:Y.Hl,[it]:G.dA,[rt]:G.dA,[st]:G.dA,[at]:H.pz,[ot]:V.vD,[ut]:Q.R,[lt]:K.y};function qt(t){return Lt[t]}function It(t){return Pt[t]}function Ut(t,e,n){return t?t.offset(e,n):undefined}function jt(t,e,n){return Ut(qt(t),e,n)}function Gt(t,e,n){return Ut(It(t),e,n)}function Yt(t,e,n,i){return t?t.range(e,n,i):undefined}function Wt(t,e,n,i){return Yt(qt(t),e,n,i)}function Xt(t,e,n,i){return Yt(It(t),e,n,i)}const Ht=1e3,Vt=Ht*60,Qt=Vt*60,Kt=Qt*24,Zt=Kt*7,Jt=Kt*30,te=Kt*365;const ee=[J,et,it,at,ot,ut,lt],ne=ee.slice(0,-1),ie=ne.slice(0,-1),re=ie.slice(0,-1),se=re.slice(0,-1),ae=[J,nt],oe=[J,et],ue=[J];const le=[[ne,1,Ht],[ne,5,5*Ht],[ne,15,15*Ht],[ne,30,30*Ht],[ie,1,Vt],[ie,5,5*Vt],[ie,15,15*Vt],[ie,30,30*Vt],[re,1,Qt],[re,3,3*Qt],[re,6,6*Qt],[re,12,12*Qt],[se,1,Kt],[ae,1,Zt],[oe,1,Jt],[oe,3,3*Jt],[ue,1,te]];function ce(t){const e=t.extent,n=t.maxbins||40,i=Math.abs((0,p.Ln)(e))/n;let r=(0,Z.A)((t=>t[2])).right(le,i),s,a;if(r===le.length){s=ue,a=(0,N.sG)(e[0]/te,e[1]/te,n)}else if(r){r=le[i/le[r-1][2]e[n]||(e[n]=t(n))}function pe(t,e){return n=>{const i=t(n),r=i.indexOf(e);if(r<0)return i;let s=me(i,r);const a=sr)if(i[s]!=="0"){++s;break}return i.slice(0,s)+a}}function me(t,e){let n=t.lastIndexOf("e"),i;if(n>0)return n;for(n=t.length;--n>e;){i=t.charCodeAt(n);if(i>=48&&i<=57)return n+1}}function ge(t){const e=he(t.format),n=t.formatPrefix;return{format:e,formatPrefix:n,formatFloat(t){const n=(0,L.A)(t||",");if(n.precision==null){n.precision=12;switch(n.type){case"%":n.precision-=2;break;case"e":n.precision-=1;break}return pe(e(n),e(".1f")(1)[1])}else{return e(n)}},formatSpan(t,i,r,s){s=(0,L.A)(s==null?",f":s);const a=(0,N.sG)(t,i,r),o=Math.max(Math.abs(t),Math.abs(i));let u;if(s.precision==null){switch(s.type){case"s":{if(!isNaN(u=(0,P.A)(a,o))){s.precision=u}return n(s,o)}case"":case"e":case"g":case"p":case"r":{if(!isNaN(u=(0,q.A)(a,o))){s.precision=u-(s.type==="e")}break}case"f":case"%":{if(!isNaN(u=(0,I.A)(a))){s.precision=u-(s.type==="%")*2}break}}}return e(s)}}}let ye;ve();function ve(){return ye=ge({format:U.GP,formatPrefix:U.s})}function be(t){return ge((0,j.A)(t))}function xe(t){return arguments.length?ye=be(t):ye}function _e(t,e,n){n=n||{};if(!(0,p.Gv)(n)){(0,p.z3)(`Invalid time multi-format specifier: ${n}`)}const i=e(ut),r=e(ot),s=e(at),a=e(it),o=e(nt),u=e(et),l=e(tt),c=e(J),f=t(n[lt]||".%L"),d=t(n[ut]||":%S"),h=t(n[ot]||"%I:%M"),m=t(n[at]||"%I %p"),g=t(n[it]||n[rt]||"%a %d"),y=t(n[nt]||"%b %d"),v=t(n[et]||"%B"),b=t(n[tt]||"%B"),x=t(n[J]||"%Y");return t=>(i(t)(0,p.Kg)(t)?e(t):_e(e,qt,t),utcFormat:t=>(0,p.Kg)(t)?n(t):_e(n,It,t),timeParse:he(t.parse),utcParse:he(t.utcParse)}}let Ae;ke();function ke(){return Ae=we({format:fe.DC,parse:fe.T6,utcFormat:fe.aL,utcParse:fe.GY})}function Ee(t){return we((0,de.A)(t))}function Me(t){return arguments.length?Ae=Ee(t):Ae}const De=(t,e)=>(0,p.X$)({},t,e);function Ce(t,e){const n=t?be(t):xe();const i=e?Ee(e):Me();return De(n,i)}function Fe(t,e){const n=arguments.length;if(n&&n!==2){(0,p.z3)("defaultLocale expects either zero or two arguments.")}return n?De(xe(t),Me(e)):De(xe(),Me())}function Se(){ve();ke();return Fe()}const ze=/^(data:|([A-Za-z]+:)?\/\/)/;const Be=/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp|file|data):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i;const $e=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g;const Re="file://";function Oe(t,e){return n=>({options:n||{},sanitize:Ne,load:Te,fileAccess:false,file:Le(e),http:qe(t)})}async function Te(t,e){const n=await this.sanitize(t,e),i=n.href;return n.localFile?this.file(i):this.http(i,e)}async function Ne(t,e){e=(0,p.X$)({},this.options,e);const n=this.fileAccess,i={href:null};let r,s,a;const o=Be.test(t.replace($e,""));if(t==null||typeof t!=="string"||!o){(0,p.z3)("Sanitize failure, invalid URI: "+(0,p.r$)(t))}const u=ze.test(t);if((a=e.baseURL)&&!u){if(!t.startsWith("/")&&!a.endsWith("/")){t="/"+t}t=a+t}s=(r=t.startsWith(Re))||e.mode==="file"||e.mode!=="http"&&!u&&n;if(r){t=t.slice(Re.length)}else if(t.startsWith("//")){if(e.defaultProtocol==="file"){t=t.slice(2);s=true}else{t=(e.defaultProtocol||"http")+":"+t}}Object.defineProperty(i,"localFile",{value:!!s});i.href=t;if(e.target){i.target=e.target+""}if(e.rel){i.rel=e.rel+""}if(e.context==="image"&&e.crossOrigin){i.crossOrigin=e.crossOrigin+""}return i}function Le(t){return t?e=>new Promise(((n,i)=>{t.readFile(e,((t,e)=>{if(t)i(t);else n(e)}))})):Pe}async function Pe(){(0,p.z3)("No file system access.")}function qe(t){return t?async function(e,n){const i=(0,p.X$)({},this.options.http,n),r=n&&n.response,s=await t(e,i);return!s.ok?(0,p.z3)(s.status+""+s.statusText):(0,p.Tn)(s[r])?s[r]():s.text()}:Ie}async function Ie(){(0,p.z3)("No HTTP fetch method available.")}const Ue=t=>t!=null&&t===t;const je=t=>t==="true"||t==="false"||t===true||t===false;const Ge=t=>!Number.isNaN(Date.parse(t));const Ye=t=>!Number.isNaN(+t)&&!(t instanceof Date);const We=t=>Ye(t)&&Number.isInteger(+t);const Xe={boolean:p.G4,integer:p.Ro,number:p.Ro,date:p.ay,string:p.dI,unknown:p.D_};const He=[je,We,Ye,Ge];const Ve=["boolean","integer","number","date"];function Qe(t,e){if(!t||!t.length)return"unknown";const n=t.length,i=He.length,r=He.map(((t,e)=>e+1));for(let s=0,a=0,o,u;st===0?e:t),0)-1]}function Ke(t,e){return e.reduce(((e,n)=>{e[n]=Qe(t,n);return e}),{})}function Ze(t){const e=function(e,n){const i={delimiter:t};return Je(e,n?(0,p.X$)(n,i):i)};e.responseType="text";return e}function Je(t,e){if(e.header){t=e.header.map(p.r$).join(e.delimiter)+"\n"+t}return M(e.delimiter).parse(t+"")}Je.responseType="text";function tn(t){return typeof Buffer==="function"&&(0,p.Tn)(Buffer.isBuffer)?Buffer.isBuffer(t):false}function en(t,e){const n=e&&e.property?(0,p.ZZ)(e.property):p.D_;return(0,p.Gv)(t)&&!tn(t)?nn(n(t),e):n(JSON.parse(t))}en.responseType="json";function nn(t,e){if(!(0,p.cy)(t)&&(0,p.xZ)(t)){t=[...t]}return e&&e.copy?JSON.parse(JSON.stringify(t)):t}const rn={interior:(t,e)=>t!==e,exterior:(t,e)=>t===e};function sn(t,e){let n,i,r,s;t=en(t,e);if(e&&e.feature){n=S;r=e.feature}else if(e&&e.mesh){n=R;r=e.mesh;s=rn[e.filter]}else{(0,p.z3)("Missing TopoJSON feature or mesh parameter.")}i=(i=t.objects[r])?n(t,i,s):(0,p.z3)("Invalid TopoJSON object: "+r);return i&&i.features||[i]}sn.responseType="json";const an={dsv:Je,csv:Ze(","),tsv:Ze("\t"),json:en,topojson:sn};function on(t,e){if(arguments.length>1){an[t]=e;return this}else{return(0,p.mQ)(an,t)?an[t]:null}}function un(t){const e=on(t);return e&&e.responseType||"text"}function ln(t,e,n,i){e=e||{};const r=on(e.type||"json");if(!r)(0,p.z3)("Unknown data format type: "+e.type);t=r(t,e);if(e.parse)cn(t,e.parse,n,i);if((0,p.mQ)(t,"columns"))delete t.columns;return t}function cn(t,e,n,i){if(!t.length)return;const r=Me();n=n||r.timeParse;i=i||r.utcParse;let s=t.columns||Object.keys(t[0]),a,o,u,l,c,f;if(e==="auto")e=Ke(t,s);s=Object.keys(e);const d=s.map((t=>{const r=e[t];let s,a;if(r&&(r.startsWith("date:")||r.startsWith("utc:"))){s=r.split(/:(.+)?/,2);a=s[1];if(a[0]==="'"&&a[a.length-1]==="'"||a[0]==='"'&&a[a.length-1]==='"'){a=a.slice(1,-1)}const t=s[0]==="utc"?i:n;return t(a)}if(!Xe[r]){throw Error("Illegal format pattern: "+t+":"+r)}return Xe[r]}));for(u=0,c=t.length,f=s.length;u{const r=e(t);if(!i[r]){i[r]=1;n.push(t)}return n};n.remove=t=>{const r=e(t);if(i[r]){i[r]=0;const e=n.indexOf(t);if(e>=0)n.splice(e,1)}return n};return n}async function hn(t,e){try{await e(t)}catch(n){t.error(n)}}const pn=Symbol("vega_id");let mn=1;function gn(t){return!!(t&&yn(t))}function yn(t){return t[pn]}function vn(t,e){t[pn]=e;return t}function bn(t){const e=t===Object(t)?t:{data:t};return yn(e)?e:vn(e,mn++)}function xn(t){return _n(t,bn({}))}function _n(t,e){for(const n in t)e[n]=t[n];return e}function wn(t,e){return vn(e,yn(t))}function An(t,e){return!t?null:e?(n,i)=>t(n,i)||yn(e(n))-yn(e(i)):(e,n)=>t(e,n)||yn(e)-yn(n)}function kn(t){return t&&t.constructor===En}function En(){const t=[],e=[],n=[],i=[],r=[];let s=null,a=false;return{constructor:En,insert(e){const n=(0,p.YO)(e),i=n.length;for(let r=0;r{if(p(t))l[yn(t)]=-1}))}for(f=0,d=t.length;f0){y(m,p,h.value);o.modifies(p)}}for(f=0,d=r.length;f{if(p(t)&&l[yn(t)]>0){y(t,h.field,h.value)}}));o.modifies(h.field)}if(a){o.mod=e.length||i.length?u.filter((t=>l[yn(t)]>0)):u.slice()}else{for(g in c)o.mod.push(c[g])}if(s||s==null&&(e.length||i.length)){o.clean(true)}return o}}}const Mn="_:mod:_";function Dn(){Object.defineProperty(this,Mn,{writable:true,value:{}})}Dn.prototype={set(t,e,n,i){const r=this,s=r[t],a=r[Mn];if(e!=null&&e>=0){if(s[e]!==n||i){s[e]=n;a[e+":"+t]=-1;a[t]=-1}}else if(s!==n||i){r[t]=n;a[t]=(0,p.cy)(n)?1+n.length:-1}return r},modified(t,e){const n=this[Mn];if(!arguments.length){for(const t in n){if(n[t])return true}return false}else if((0,p.cy)(t)){for(let e=0;e=0?e+1{if(a instanceof $n){if(a!==this){if(e)a.targets().add(this);s.push(a)}r.push({op:a,name:t,index:n})}else{i.set(t,n,a)}};for(a in t){o=t[a];if(a===Fn){(0,p.YO)(o).forEach((t=>{if(!(t instanceof $n)){(0,p.z3)("Pulse parameters must be operator instances.")}else if(t!==this){t.targets().add(this);s.push(t)}}));this.source=o}else if((0,p.cy)(o)){i.set(a,-1,Array(u=o.length));for(l=0;l{const n=Date.now();if(n-e>t){e=n;return 1}else{return 0}}))},debounce(t){const e=Pn();this.targets().add(Pn(null,null,(0,p.sg)(t,(t=>{const n=t.dataflow;e.receive(t);if(n&&n.run)n.run()}))));return e},between(t,e){let n=false;t.targets().add(Pn(null,null,(()=>n=true)));e.targets().add(Pn(null,null,(()=>n=false)));return this.filter((()=>n))},detach(){this._filter=p.vN;this._targets=null}};function qn(t,e,n,i){const r=this,s=Pn(n,i),a=function(t){t.dataflow=r;try{s.receive(t)}catch(e){r.error(e)}finally{r.run()}};let o;if(typeof t==="string"&&typeof document!=="undefined"){o=document.querySelectorAll(t)}else{o=(0,p.YO)(t)}const u=o.length;for(let l=0;le=t));n.requests=0;n.done=()=>{if(--n.requests===0){t._pending=null;e(t)}};return t._pending=n}const Wn={skip:true};function Xn(t,e,n,i,r){const s=t instanceof $n?Vn:Hn;s(this,t,e,n,i,r);return this}function Hn(t,e,n,i,r,s){const a=(0,p.X$)({},s,Wn);let o,u;if(!(0,p.Tn)(n))n=(0,p.dY)(n);if(i===undefined){o=e=>t.touch(n(e))}else if((0,p.Tn)(i)){u=new $n(null,i,r,false);o=e=>{u.evaluate(e);const i=n(e),r=u.value;kn(r)?t.pulse(i,r,s):t.update(i,r,a)}}else{o=e=>t.update(n(e),i,a)}e.apply(o)}function Vn(t,e,n,i,r,s){if(i===undefined){e.targets().add(n)}else{const a=s||{},o=new $n(null,Qn(n,i),r,false);o.modified(a.force);o.rank=e.rank;e.targets().add(o);if(n){o.skip(true);o.value=n.value;o.targets().add(n);t.connect(n,[o])}}}function Qn(t,e){e=(0,p.Tn)(e)?e:(0,p.dY)(e);return t?function(n,i){const r=e(n,i);if(!t.skip()){t.skip(r!==this.value).value=r}return r}:e}function Kn(t){t.rank=++this._rank}function Zn(t){const e=[t];let n,i,r;while(e.length){this.rank(n=e.pop());if(i=n._targets){for(r=i.length;--r>=0;){e.push(n=i[r]);if(n===t)(0,p.z3)("Cycle detected in dataflow graph.")}}}}const Jn={};const ti=1<<0,ei=1<<1,ni=1<<2,ii=ti|ei,ri=ti|ni,si=ti|ei|ni,ai=1<<3,oi=1<<4,ui=1<<5,li=1<<6;function ci(t,e,n){this.dataflow=t;this.stamp=e==null?-1:e;this.add=[];this.rem=[];this.mod=[];this.fields=null;this.encode=n||null}function fi(t,e){const n=[];(0,p.rt)(t,e,(t=>n.push(t)));return n}function di(t,e){const n={};t.visit(e,(t=>{n[yn(t)]=1}));return t=>n[yn(t)]?null:t}function hi(t,e){return t?(n,i)=>t(n,i)&&e(n,i):e}ci.prototype={StopPropagation:Jn,ADD:ti,REM:ei,MOD:ni,ADD_REM:ii,ADD_MOD:ri,ALL:si,REFLOW:ai,SOURCE:oi,NO_SOURCE:ui,NO_FIELDS:li,fork(t){return new ci(this.dataflow).init(this,t)},clone(){const t=this.fork(si);t.add=t.add.slice();t.rem=t.rem.slice();t.mod=t.mod.slice();if(t.source)t.source=t.source.slice();return t.materialize(si|oi)},addAll(){let t=this;const e=!t.source||t.add===t.rem||!t.rem.length&&t.source.length===t.add.length;if(e){return t}else{t=new ci(this.dataflow).init(this);t.add=t.source;t.rem=[];return t}},init(t,e){const n=this;n.stamp=t.stamp;n.encode=t.encode;if(t.fields&&!(e&li)){n.fields=t.fields}if(e&ti){n.addF=t.addF;n.add=t.add}else{n.addF=null;n.add=[]}if(e&ei){n.remF=t.remF;n.rem=t.rem}else{n.remF=null;n.rem=[]}if(e&ni){n.modF=t.modF;n.mod=t.mod}else{n.modF=null;n.mod=[]}if(e&ui){n.srcF=null;n.source=null}else{n.srcF=t.srcF;n.source=t.source;if(t.cleans)n.cleans=t.cleans}return n},runAfter(t){this.dataflow.runAfter(t)},changed(t){const e=t||si;return e&ti&&this.add.length||e&ei&&this.rem.length||e&ni&&this.mod.length},reflow(t){if(t)return this.fork(si).reflow();const e=this.add.length,n=this.source&&this.source.length;if(n&&n!==e){this.mod=this.source;if(e)this.filter(ni,di(this,ti))}return this},clean(t){if(arguments.length){this.cleans=!!t;return this}else{return this.cleans}},modifies(t){const e=this.fields||(this.fields={});if((0,p.cy)(t)){t.forEach((t=>e[t]=true))}else{e[t]=true}return this},modified(t,e){const n=this.fields;return!((e||this.mod.length)&&n)?false:!arguments.length?!!n:(0,p.cy)(t)?t.some((t=>n[t])):n[t]},filter(t,e){const n=this;if(t&ti)n.addF=hi(n.addF,e);if(t&ei)n.remF=hi(n.remF,e);if(t&ni)n.modF=hi(n.modF,e);if(t&oi)n.srcF=hi(n.srcF,e);return n},materialize(t){t=t||si;const e=this;if(t&ti&&e.addF){e.add=fi(e.add,e.addF);e.addF=null}if(t&ei&&e.remF){e.rem=fi(e.rem,e.remF);e.remF=null}if(t&ni&&e.modF){e.mod=fi(e.mod,e.modF);e.modF=null}if(t&oi&&e.srcF){e.source=e.source.filter(e.srcF);e.srcF=null}return e},visit(t,e){const n=this,i=e;if(t&oi){(0,p.rt)(n.source,n.srcF,i);return n}if(t&ti)(0,p.rt)(n.add,n.addF,i);if(t&ei)(0,p.rt)(n.rem,n.remF,i);if(t&ni)(0,p.rt)(n.mod,n.modF,i);const r=n.source;if(t&ai&&r){const t=n.add.length+n.mod.length;if(t===r.length);else if(t){(0,p.rt)(r,di(n,ri),i)}else{(0,p.rt)(r,n.srcF,i)}}return n}};function pi(t,e,n,i){const r=this;let s=0;this.dataflow=t;this.stamp=e;this.fields=null;this.encode=i||null;this.pulses=n;for(const a of n){if(a.stamp!==e)continue;if(a.fields){const t=r.fields||(r.fields={});for(const e in a.fields){t[e]=1}}if(a.changed(r.ADD))s|=r.ADD;if(a.changed(r.REM))s|=r.REM;if(a.changed(r.MOD))s|=r.MOD}this.changes=s}(0,p.B)(pi,ci,{fork(t){const e=new ci(this.dataflow).init(this,t&this.NO_FIELDS);if(t!==undefined){if(t&e.ADD)this.visit(e.ADD,(t=>e.add.push(t)));if(t&e.REM)this.visit(e.REM,(t=>e.rem.push(t)));if(t&e.MOD)this.visit(e.MOD,(t=>e.mod.push(t)))}return e},changed(t){return this.changes&t},modified(t){const e=this,n=e.fields;return!(n&&e.changes&e.MOD)?0:(0,p.cy)(t)?t.some((t=>n[t])):n[t]},filter(){(0,p.z3)("MultiPulse does not support filtering.")},materialize(){(0,p.z3)("MultiPulse does not support materialization.")},visit(t,e){const n=this,i=n.pulses,r=i.length;let s=0;if(t&n.SOURCE){for(;si._enqueue(t,true)));i._touched=dn(p.id);let a=0,o,u,l;try{while(i._heap.size()>0){o=i._heap.pop();if(o.rank!==o.qrank){i._enqueue(o,true);continue}u=o.run(i._getPulse(o,t));if(u.then){u=await u}else if(u.async){r.push(u.async);u=Jn}if(u!==Jn){if(o._targets)o._targets.forEach((t=>i._enqueue(t)))}++a}}catch(c){i._heap.clear();l=c}i._input={};i._pulse=null;i.debug(`Pulse ${s}: ${a} operators`);if(l){i._postrun=[];i.error(l)}if(i._postrun.length){const t=i._postrun.sort(((t,e)=>e.priority-t.priority));i._postrun=[];for(let e=0;ei.runAsync(null,(()=>{t.forEach((t=>{try{t(i)}catch(c){i.error(c)}}))}))))}return i}async function gi(t,e,n){while(this._running)await this._running;const i=()=>this._running=null;(this._running=this.evaluate(t,e,n)).then(i,i);return this._running}function yi(t,e,n){return this._pulse?bi(this):(this.evaluate(t,e,n),this)}function vi(t,e,n){if(this._pulse||e){this._postrun.push({priority:n||0,callback:t})}else{try{t(this)}catch(i){this.error(i)}}}function bi(t){t.error("Dataflow already running. Use runAsync() to chain invocations.");return t}function xi(t,e){const n=t.stampt.pulse)),e):this._input[t.id]||wi(this._pulse,n&&n.pulse)}function wi(t,e){if(e&&e.stamp===t.stamp){return e}t=t.fork();if(e&&e!==Jn){t.source=e.source}return t}const Ai={skip:false,force:false};function ki(t,e){const n=e||Ai;if(this._pulse){this._enqueue(t)}else{this._touched.add(t)}if(n.skip)t.skip(true);return this}function Ei(t,e,n){const i=n||Ai;if(t.set(e)||i.force){this.touch(t,i)}return this}function Mi(t,e,n){this.touch(t,n||Ai);const i=new ci(this,this._clock+(this._pulse?0:1)),r=t.pulse&&t.pulse.source||[];i.target=t;this._input[t.id]=e.pulse(i,r);return this}function Di(t){let e=[];return{clear:()=>e=[],size:()=>e.length,peek:()=>e[0],push:n=>{e.push(n);return Ci(e,0,e.length-1,t)},pop:()=>{const n=e.pop();let i;if(e.length){i=e[0];e[0]=n;Fi(e,0,t)}else{i=n}return i}}}function Ci(t,e,n,i){let r,s;const a=t[n];while(n>e){s=n-1>>1;r=t[s];if(i(a,r)<0){t[n]=r;n=s;continue}break}return t[n]=a}function Fi(t,e,n){const i=e,r=t.length,s=t[e];let a=(e<<1)+1,o;while(a=0){a=o}t[e]=t[a];e=a;a=(e<<1)+1}t[e]=s;return Ci(t,i,e,n)}function Si(){this.logger((0,p.vF)());this.logLevel(p.$D);this._clock=0;this._rank=0;this._locale=Fe();try{this._loader=fn()}catch(t){}this._touched=dn(p.id);this._input={};this._pulse=null;this._heap=Di(((t,e)=>t.qrank-e.qrank));this._postrun=[]}function zi(t){return function(){return this._log[t].apply(this,arguments)}}Si.prototype={stamp(){return this._clock},loader(t){if(arguments.length){this._loader=t;return this}else{return this._loader}},locale(t){if(arguments.length){this._locale=t;return this}else{return this._locale}},logger(t){if(arguments.length){this._log=t;return this}else{return this._log}},error:zi("error"),warn:zi("warn"),info:zi("info"),debug:zi("debug"),logLevel:zi("level"),cleanThreshold:1e4,add:On,connect:Tn,rank:Kn,rerank:Zn,pulse:Mi,touch:ki,update:Ei,changeset:En,ingest:Un,parse:In,preload:Gn,request:jn,events:qn,on:Xn,evaluate:mi,run:yi,runAsync:gi,runAfter:vi,_enqueue:xi,_getPulse:_i};function Bi(t,e){$n.call(this,t,null,e)}(0,p.B)(Bi,$n,{run(t){if(t.stampthis.pulse=t))}else if(e!==t.StopPropagation){this.pulse=e}return e},evaluate(t){const e=this.marshall(t.stamp),n=this.transform(e,t);e.clear();return n},transform(){}});const $i={};function Ri(t){const e=Oi(t);return e&&e.Definition||null}function Oi(t){t=t&&t.toLowerCase();return(0,p.mQ)($i,t)?$i[t]:null}var Ti=n(82887);var Ni=n(21671);var Li=n(44317);function Pi(t,...e){if(typeof t[Symbol.iterator]!=="function")throw new TypeError("values is not iterable");t=Array.from(t);let[n]=e;if(n&&n.length!==2||e.length>1){const i=Uint32Array.from(t,((t,e)=>e));if(e.length>1){e=e.map((e=>t.map(e)));i.sort(((t,n)=>{for(const i of e){const e=Ii(i[t],i[n]);if(e)return e}}))}else{n=t.map(n);i.sort(((t,e)=>Ii(n[t],n[e])))}return permute(t,i)}return t.sort(qi(n))}function qi(t=Ti.A){if(t===Ti.A)return Ii;if(typeof t!=="function")throw new TypeError("compare is not a function");return(e,n)=>{const i=t(e,n);if(i||i===0)return i;return(t(n,n)===0)-(t(e,e)===0)}}function Ii(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(te?1:0)}function Ui(t,e,n=0,i=Infinity,r){e=Math.floor(e);n=Math.floor(Math.max(0,n));i=Math.floor(Math.min(t.length-1,i));if(!(n<=e&&e<=i))return t;r=r===undefined?Ii:qi(r);while(i>n){if(i-n>600){const s=i-n+1;const a=e-n+1;const o=Math.log(s);const u=.5*Math.exp(2*o/3);const l=.5*Math.sqrt(o*u*(s-u)/s)*(a-s/2<0?-1:1);const c=Math.max(n,Math.floor(e-a*u/s+l));const f=Math.min(i,Math.floor(e+(s-a)*u/s+l));Ui(t,e,c,f,r)}const s=t[e];let a=n;let o=i;ji(t,n,e);if(r(t[i],s)>0)ji(t,n,i);while(a0)--o}if(r(t[n],s)===0)ji(t,n,o);else++o,ji(t,o,i);if(o<=e)n=o+1;if(e<=o)i=o-1}return t}function ji(t,e,n){const i=t[e];t[e]=t[n];t[n]=i}var Gi=n(40168);function Yi(t,e,n){t=Float64Array.from((0,Gi.n)(t,n));if(!(i=t.length)||isNaN(e=+e))return;if(e<=0||i<2)return(0,Li.A)(t);if(e>=1)return(0,Ni.A)(t);var i,r=(i-1)*e,s=Math.floor(r),a=(0,Ni.A)(Ui(t,s).subarray(0,s+1)),o=(0,Li.A)(t.subarray(s+1));return a+(o-a)*(r-s)}function Wi(t,e,n=Gi.A){if(!(i=t.length)||isNaN(e=+e))return;if(e<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,r=(i-1)*e,s=Math.floor(r),a=+n(t[s],s,t),o=+n(t[s+1],s+1,t);return a+(o-a)*(r-s)}function Xi(t,e,n=number){if(isNaN(e=+e))return;i=Float64Array.from(t,((e,i)=>number(n(t[i],i,t))));if(e<=0)return minIndex(i);if(e>=1)return maxIndex(i);var i,r=Uint32Array.from(t,((t,e)=>e)),s=i.length-1,a=Math.floor(s*e);quickselect(r,a,0,s,((t,e)=>ascendingDefined(i[t],i[e])));a=greatest(r.subarray(0,a+1),(t=>i[t]));return a>=0?a:-1}function Hi(t,e){let n=0;let i;let r=0;let s=0;if(e===undefined){for(let e of t){if(e!=null&&(e=+e)>=e){i=e-r;r+=i/++n;s+=i*(e-r)}}}else{let a=-1;for(let o of t){if((o=e(o,++a,t))!=null&&(o=+o)>=o){i=o-r;r+=i/++n;s+=i*(o-r)}}}if(n>1)return s/(n-1)}function Vi(t,e){const n=Hi(t,e);return n?Math.sqrt(n):n}function Qi(t,e){return Yi(t,.5,e)}function Ki(t,e){return quantileIndex(t,.5,e)}function*Zi(t,e){if(e==null){for(let e of t){if(e!=null&&e!==""&&(e=+e)>=e){yield e}}}else{let n=-1;for(let i of t){i=e(i,++n,t);if(i!=null&&i!==""&&(i=+i)>=i){yield i}}}}function Ji(t,e,n){const i=Float64Array.from(Zi(t,n));i.sort(Ti.A);return e.map((t=>Wi(i,t)))}function tr(t,e){return Ji(t,[.25,.5,.75],e)}function er(t,e){const n=t.length,i=Vi(t,e),r=tr(t,e),s=(r[2]-r[0])/1.34,a=Math.min(i,s)||i||Math.abs(r[0])||1;return 1.06*a*Math.pow(n,-.2)}function nr(t){const e=t.maxbins||20,n=t.base||10,i=Math.log(n),r=t.divide||[5,2];let s=t.extent[0],a=t.extent[1],o,u,l,c,f,d;const h=t.span||a-s||Math.abs(s)||1;if(t.step){o=t.step}else if(t.steps){c=h/e;for(f=0,d=t.steps.length;fe){o*=n}for(f=0,d=r.length;f=l&&h/c<=e)o=c}}c=Math.log(o);const p=c>=0?0:~~(-c/i)+1,m=Math.pow(n,-p-1);if(t.nice||t.nice===undefined){c=Math.floor(s/o+m)*o;s=st);const r=t.length,s=new Float64Array(r);let a=0,o=1,u=i(t[0]),l=u,c=u+e,f;for(;o=c){l=(u+l)/2;for(;a>1);while(ar)t[a--]=t[i]}i=r;r=s}return t}function ur(t){return function(){t=(1103515245*t+12345)%2147483647;return t/2147483647}}function lr(t,e){if(e==null){e=t;t=0}let n,i,r;const s={min(t){if(arguments.length){n=t||0;r=i-n;return s}else{return n}},max(t){if(arguments.length){i=t||0;r=i-n;return s}else{return i}},sample(){return n+Math.floor(r*ir())},pdf(t){return t===Math.floor(t)&&t>=n&&t=i?1:(e-n+1)/r},icdf(t){return t>=0&&t<=1?n-1+Math.floor(t*r):NaN}};return s.min(t).max(e)}const cr=Math.sqrt(2*Math.PI);const fr=Math.SQRT2;let dr=NaN;function hr(t,e){t=t||0;e=e==null?1:e;let n=0,i=0,r,s;if(dr===dr){n=dr;dr=NaN}else{do{n=ir()*2-1;i=ir()*2-1;r=n*n+i*i}while(r===0||r>1);s=Math.sqrt(-2*Math.log(r)/r);n*=s;dr=i*s}return t+n*e}function pr(t,e,n){n=n==null?1:n;const i=(t-(e||0))/n;return Math.exp(-.5*i*i)/(n*cr)}function mr(t,e,n){e=e||0;n=n==null?1:n;const i=(t-e)/n,r=Math.abs(i);let s;if(r>37){s=0}else{const t=Math.exp(-r*r/2);let e;if(r<7.07106781186547){e=.0352624965998911*r+.700383064443688;e=e*r+6.37396220353165;e=e*r+33.912866078383;e=e*r+112.079291497871;e=e*r+221.213596169931;e=e*r+220.206867912376;s=t*e;e=.0883883476483184*r+1.75566716318264;e=e*r+16.064177579207;e=e*r+86.7807322029461;e=e*r+296.564248779674;e=e*r+637.333633378831;e=e*r+793.826512519948;e=e*r+440.413735824752;s=s/e}else{e=r+.65;e=r+4/e;e=r+3/e;e=r+2/e;e=r+1/e;s=t/e/2.506628274631}}return i>0?1-s:s}function gr(t,e,n){if(t<0||t>1)return NaN;return(e||0)+(n==null?1:n)*fr*yr(2*t-1)}function yr(t){let e=-Math.log((1-t)*(1+t)),n;if(e<6.25){e-=3.125;n=-364441206401782e-35;n=-16850591381820166e-35+n*e;n=128584807152564e-32+n*e;n=11157877678025181e-33+n*e;n=-1333171662854621e-31+n*e;n=20972767875968562e-33+n*e;n=6637638134358324e-30+n*e;n=-4054566272975207e-29+n*e;n=-8151934197605472e-29+n*e;n=26335093153082323e-28+n*e;n=-12975133253453532e-27+n*e;n=-5415412054294628e-26+n*e;n=1.0512122733215323e-9+n*e;n=-4.112633980346984e-9+n*e;n=-2.9070369957882005e-8+n*e;n=4.2347877827932404e-7+n*e;n=-13654692000834679e-22+n*e;n=-13882523362786469e-21+n*e;n=.00018673420803405714+n*e;n=-.000740702534166267+n*e;n=-.006033670871430149+n*e;n=.24015818242558962+n*e;n=1.6536545626831027+n*e}else if(e<16){e=Math.sqrt(e)-3.25;n=2.2137376921775787e-9;n=9.075656193888539e-8+n*e;n=-2.7517406297064545e-7+n*e;n=1.8239629214389228e-8+n*e;n=15027403968909828e-22+n*e;n=-4013867526981546e-21+n*e;n=29234449089955446e-22+n*e;n=12475304481671779e-21+n*e;n=-47318229009055734e-21+n*e;n=6828485145957318e-20+n*e;n=24031110387097894e-21+n*e;n=-.0003550375203628475+n*e;n=.0009532893797373805+n*e;n=-.0016882755560235047+n*e;n=.002491442096107851+n*e;n=-.003751208507569241+n*e;n=.005370914553590064+n*e;n=1.0052589676941592+n*e;n=3.0838856104922208+n*e}else if(Number.isFinite(e)){e=Math.sqrt(e)-5;n=-27109920616438573e-27;n=-2.555641816996525e-10+n*e;n=1.5076572693500548e-9+n*e;n=-3.789465440126737e-9+n*e;n=7.61570120807834e-9+n*e;n=-1.496002662714924e-8+n*e;n=2.914795345090108e-8+n*e;n=-6.771199775845234e-8+n*e;n=2.2900482228026655e-7+n*e;n=-9.9298272942317e-7+n*e;n=4526062597223154e-21+n*e;n=-1968177810553167e-20+n*e;n=7599527703001776e-20+n*e;n=-.00021503011930044477+n*e;n=-.00013871931833623122+n*e;n=1.0103004648645344+n*e;n=4.849906401408584+n*e}else{n=Infinity}return n*t}function vr(t,e){let n,i;const r={mean(t){if(arguments.length){n=t||0;return r}else{return n}},stdev(t){if(arguments.length){i=t==null?1:t;return r}else{return i}},sample:()=>hr(n,i),pdf:t=>pr(t,n,i),cdf:t=>mr(t,n,i),icdf:t=>gr(t,n,i)};return r.mean(t).stdev(e)}function br(t,e){const n=vr();let i=0;const r={data(n){if(arguments.length){t=n;i=n?n.length:0;return r.bandwidth(e)}else{return t}},bandwidth(n){if(!arguments.length)return e;e=n;if(!e&&t)e=er(t);return r},sample(){return t[~~(ir()*i)]+e*n.sample()},pdf(r){let s=0,a=0;for(;axr(n,i),pdf:t=>_r(t,n,i),cdf:t=>wr(t,n,i),icdf:t=>Ar(t,n,i)};return r.mean(t).stdev(e)}function Er(t,e){let n=0,i;function r(t){const e=[];let i=0,r;for(r=0;r=e&&t<=n?1/(n-e):0}function Cr(t,e,n){if(n==null){n=e==null?1:e;e=0}return tn?1:(t-e)/(n-e)}function Fr(t,e,n){if(n==null){n=e==null?1:e;e=0}return t>=0&&t<=1?e+t*(n-e):NaN}function Sr(t,e){let n,i;const r={min(t){if(arguments.length){n=t||0;return r}else{return n}},max(t){if(arguments.length){i=t==null?1:t;return r}else{return i}},sample:()=>Mr(n,i),pdf:t=>Dr(t,n,i),cdf:t=>Cr(t,n,i),icdf:t=>Fr(t,n,i)};if(e==null){e=t==null?1:t;t=0}return r.min(t).max(e)}function zr(t,e,n){let i=0,r=0;for(const s of t){const t=n(s);if(e(s)==null||t==null||isNaN(t))continue;i+=(t-i)/++r}return{coef:[i],predict:()=>i,rSquared:0}}function Br(t,e,n,i){const r=i-t*t,s=Math.abs(r)<1e-24?0:(n-t*e)/r,a=e-s*t;return[a,s]}function $r(t,e,n,i){t=t.filter((t=>{let i=e(t),r=n(t);return i!=null&&(i=+i)>=i&&r!=null&&(r=+r)>=r}));if(i){t.sort(((t,n)=>e(t)-e(n)))}const r=t.length,s=new Float64Array(r),a=new Float64Array(r);let o=0,u=0,l=0,c,f,d;for(d of t){s[o]=c=+e(d);a[o]=f=+n(d);++o;u+=(c-u)/o;l+=(f-l)/o}for(o=0;o=s&&a!=null&&(a=+a)>=a){i(s,a,++r)}}}function Or(t,e,n,i,r){let s=0,a=0;Rr(t,e,n,((t,e)=>{const n=e-r(t),o=e-i;s+=n*n;a+=o*o}));return 1-s/a}function Tr(t,e,n){let i=0,r=0,s=0,a=0,o=0;Rr(t,e,n,((t,e)=>{++o;i+=(t-i)/o;r+=(e-r)/o;s+=(t*e-s)/o;a+=(t*t-a)/o}));const u=Br(i,r,s,a),l=t=>u[0]+u[1]*t;return{coef:u,predict:l,rSquared:Or(t,e,n,r,l)}}function Nr(t,e,n){let i=0,r=0,s=0,a=0,o=0;Rr(t,e,n,((t,e)=>{++o;t=Math.log(t);i+=(t-i)/o;r+=(e-r)/o;s+=(t*e-s)/o;a+=(t*t-a)/o}));const u=Br(i,r,s,a),l=t=>u[0]+u[1]*Math.log(t);return{coef:u,predict:l,rSquared:Or(t,e,n,r,l)}}function Lr(t,e,n){const[i,r,s,a]=$r(t,e,n);let o=0,u=0,l=0,c=0,f=0,d,h,p;Rr(t,e,n,((t,e)=>{d=i[f++];h=Math.log(e);p=d*e;o+=(e*h-o)/f;u+=(p-u)/f;l+=(p*h-l)/f;c+=(d*p-c)/f}));const[m,g]=Br(u/a,o/a,l/a,c/a),y=t=>Math.exp(m+g*(t-s));return{coef:[Math.exp(m-g*s),g],predict:y,rSquared:Or(t,e,n,a,y)}}function Pr(t,e,n){let i=0,r=0,s=0,a=0,o=0,u=0;Rr(t,e,n,((t,e)=>{const n=Math.log(t),l=Math.log(e);++u;i+=(n-i)/u;r+=(l-r)/u;s+=(n*l-s)/u;a+=(n*n-a)/u;o+=(e-o)/u}));const l=Br(i,r,s,a),c=t=>l[0]*Math.pow(t,l[1]);l[0]=Math.exp(l[0]);return{coef:l,predict:c,rSquared:Or(t,e,n,o,c)}}function qr(t,e,n){const[i,r,s,a]=$r(t,e,n),o=i.length;let u=0,l=0,c=0,f=0,d=0,h,p,m,g;for(h=0;h{t=t-s;return b*t*t+x*t+_+a};return{coef:[_-x*s+b*s*s+a,x-2*b*s,b],predict:w,rSquared:Or(t,e,n,a,w)}}function Ir(t,e,n,i){if(i===0)return zr(t,e,n);if(i===1)return Tr(t,e,n);if(i===2)return qr(t,e,n);const[r,s,a,o]=$r(t,e,n),u=r.length,l=[],c=[],f=i+1;let d,h,p,m,g;for(d=0;d{t-=a;let e=o+y[0]+y[1]*t+y[2]*t*t;for(d=3;d=0;--s){o=e[s];u=1;r[s]+=o;for(a=1;a<=s;++a){u*=(s+1-a)/a;r[s-a]+=o*Math.pow(n,a)*u}}r[0]+=i;return r}function jr(t){const e=t.length-1,n=[];let i,r,s,a,o;for(i=0;iMath.abs(t[i][a])){a=r}}for(s=i;s=i;s--){t[s][r]-=t[s][i]*t[i][r]/t[i][i]}}}for(r=e-1;r>=0;--r){o=0;for(s=r+1;sr[a]-e?i:a;let u=0,l=0,h=0,p=0,m=0;const g=1/Math.abs(r[o]-e||1);for(let t=i;t<=a;++t){const n=r[t],i=s[t],a=Xr(Math.abs(e-n)*g)*d[t],o=n*a;u+=a;l+=o;h+=i*a;p+=i*o;m+=n*o}const[y,v]=Br(l/u,h/u,p/u,m/u);c[n]=y+v*e;f[n]=Math.abs(s[n]-c[n]);Hr(r,n+1,t)}if(h===Gr){break}const e=Qi(f);if(Math.abs(e)=1?Yr:(r=1-i*i)*r}}return Vr(r,c,a,o)}function Xr(t){return(t=1-t*t*t)*t*t}function Hr(t,e,n){const i=t[e];let r=n[0],s=n[1]+1;if(s>=t.length)return;while(e>r&&t[s]-i<=i-t[r]){n[0]=++r;n[1]=s;++s}}function Vr(t,e,n,i){const r=t.length,s=[];let a=0,o=0,u=[],l;for(;a[e,t(e)],s=e[0],a=e[1],o=a-s,u=o/i,l=[r(s)],c=[];if(n===i){for(let t=1;t0;){c.push(r(s+t/n*o))}}let f=l[0];let d=c[c.length-1];const h=1/o;const p=Zr(f[1],c);while(d){const t=r((f[0]+d[0])/2);const e=t[0]-f[0]>=u;if(e&&Jr(f,t,d,h,p)>Qr){c.push(t)}else{f=d;l.push(d);c.pop()}d=c[c.length-1]}return l}function Zr(t,e){let n=t;let i=t;const r=e.length;for(let s=0;si)i=t}return 1/(i-n)}function Jr(t,e,n,i,r){const s=Math.atan2(r*(n[1]-t[1]),i*(n[0]-t[0])),a=Math.atan2(r*(e[1]-t[1]),i*(e[0]-t[0]));return Math.abs(s-a)}function ts(t,e){let n=0;let i=0;if(e===undefined){for(let e of t){if(e!=null&&(e=+e)>=e){++n,i+=e}}}else{let r=-1;for(let s of t){if((s=e(s,++r,t))!=null&&(s=+s)>=s){++n,i+=s}}}if(n)return i/n}var es=n(18312);function ns(t){return e=>{const n=t.length;let i=1,r=String(t[0](e));for(;i{};const as={init:ss,add:ss,rem:ss,idx:0};const os={values:{init:t=>t.cell.store=true,value:t=>t.cell.data.values(),idx:-1},count:{value:t=>t.cell.num},__count__:{value:t=>t.missing+t.valid},missing:{value:t=>t.missing},valid:{value:t=>t.valid},sum:{init:t=>t.sum=0,value:t=>t.valid?t.sum:undefined,add:(t,e)=>t.sum+=+e,rem:(t,e)=>t.sum-=e},product:{init:t=>t.product=1,value:t=>t.valid?t.product:undefined,add:(t,e)=>t.product*=e,rem:(t,e)=>t.product/=e},mean:{init:t=>t.mean=0,value:t=>t.valid?t.mean:undefined,add:(t,e)=>(t.mean_d=e-t.mean,t.mean+=t.mean_d/t.valid),rem:(t,e)=>(t.mean_d=e-t.mean,t.mean-=t.valid?t.mean_d/t.valid:t.mean)},average:{value:t=>t.valid?t.mean:undefined,req:["mean"],idx:1},variance:{init:t=>t.dev=0,value:t=>t.valid>1?t.dev/(t.valid-1):undefined,add:(t,e)=>t.dev+=t.mean_d*(e-t.mean),rem:(t,e)=>t.dev-=t.mean_d*(e-t.mean),req:["mean"],idx:1},variancep:{value:t=>t.valid>1?t.dev/t.valid:undefined,req:["variance"],idx:2},stdev:{value:t=>t.valid>1?Math.sqrt(t.dev/(t.valid-1)):undefined,req:["variance"],idx:2},stdevp:{value:t=>t.valid>1?Math.sqrt(t.dev/t.valid):undefined,req:["variance"],idx:2},stderr:{value:t=>t.valid>1?Math.sqrt(t.dev/(t.valid*(t.valid-1))):undefined,req:["variance"],idx:2},distinct:{value:t=>t.cell.data.distinct(t.get),req:["values"],idx:3},ci0:{value:t=>t.cell.data.ci0(t.get),req:["values"],idx:3},ci1:{value:t=>t.cell.data.ci1(t.get),req:["values"],idx:3},median:{value:t=>t.cell.data.q2(t.get),req:["values"],idx:3},q1:{value:t=>t.cell.data.q1(t.get),req:["values"],idx:3},q3:{value:t=>t.cell.data.q3(t.get),req:["values"],idx:3},min:{init:t=>t.min=undefined,value:t=>t.min=Number.isNaN(t.min)?t.cell.data.min(t.get):t.min,add:(t,e)=>{if(e{if(e<=t.min)t.min=NaN},req:["values"],idx:4},max:{init:t=>t.max=undefined,value:t=>t.max=Number.isNaN(t.max)?t.cell.data.max(t.get):t.max,add:(t,e)=>{if(e>t.max||t.max===undefined)t.max=e},rem:(t,e)=>{if(e>=t.max)t.max=NaN},req:["values"],idx:4},argmin:{init:t=>t.argmin=undefined,value:t=>t.argmin||t.cell.data.argmin(t.get),add:(t,e,n)=>{if(e{if(e<=t.min)t.argmin=undefined},req:["min","values"],idx:3},argmax:{init:t=>t.argmax=undefined,value:t=>t.argmax||t.cell.data.argmax(t.get),add:(t,e,n)=>{if(e>t.max)t.argmax=n},rem:(t,e)=>{if(e>=t.max)t.argmax=undefined},req:["max","values"],idx:3},exponential:{init:(t,e)=>{t.exp=0;t.exp_r=e},value:t=>t.valid?t.exp*(1-t.exp_r)/(1-t.exp_r**t.valid):undefined,add:(t,e)=>t.exp=t.exp_r*t.exp+e,rem:(t,e)=>t.exp=(t.exp-e/t.exp_r**(t.valid-1))/t.exp_r},exponentialb:{value:t=>t.valid?t.exp*(1-t.exp_r):undefined,req:["exponential"],idx:1}};const us=Object.keys(os).filter((t=>t!=="__count__"));function ls(t,e){return(n,i)=>(0,p.X$)({name:t,aggregate_param:i,out:n||t},as,e)}[...us,"__count__"].forEach((t=>{os[t]=ls(t,os[t])}));function cs(t,e,n){return os[t](n,e)}function fs(t,e){return t.idx-e.idx}function ds(t){const e={};t.forEach((t=>e[t.name]=t));const n=t=>{if(!t.req)return;t.req.forEach((t=>{if(!e[t])n(e[t]=os[t]())}))};t.forEach(n);return Object.values(e).sort(fs)}function hs(){this.valid=0;this.missing=0;this._ops.forEach((t=>t.aggregate_param==null?t.init(this):t.init(this,t.aggregate_param)))}function ps(t,e){if(t==null||t===""){++this.missing;return}if(t!==t)return;++this.valid;this._ops.forEach((n=>n.add(this,t,e)))}function ms(t,e){if(t==null||t===""){--this.missing;return}if(t!==t)return;--this.valid;this._ops.forEach((n=>n.rem(this,t,e)))}function gs(t){this._out.forEach((e=>t[e.out]=e.value(this)));return t}function ys(t,e){const n=e||p.D_,i=ds(t),r=t.slice().sort(fs);function s(t){this._ops=i;this._out=r;this.cell=t;this.init()}s.prototype.init=hs;s.prototype.add=ps;s.prototype.rem=ms;s.prototype.set=gs;s.prototype.get=n;s.fields=t.map((t=>t.out));return s}function vs(t){this._key=t?(0,p.ZZ)(t):yn;this.reset()}const bs=vs.prototype;bs.reset=function(){this._add=[];this._rem=[];this._ext=null;this._get=null;this._q=null};bs.add=function(t){this._add.push(t)};bs.rem=function(t){this._rem.push(t)};bs.values=function(){this._get=null;if(this._rem.length===0)return this._add;const t=this._add,e=this._rem,n=this._key,i=t.length,r=e.length,s=Array(i-r),a={};let o,u,l;for(o=0;o=0){s=t(e[i])+"";if(!(0,p.mQ)(n,s)){n[s]=1;++r}}return r};bs.extent=function(t){if(this._get!==t||!this._ext){const e=this.values(),n=(0,p.n)(e,t);this._ext=[e[n[0]],e[n[1]]];this._get=t}return this._ext};bs.argmin=function(t){return this.extent(t)[0]||{}};bs.argmax=function(t){return this.extent(t)[1]||{}};bs.min=function(t){const e=this.extent(t)[0];return e!=null?t(e):undefined};bs.max=function(t){const e=this.extent(t)[1];return e!=null?t(e):undefined};bs.quartile=function(t){if(this._get!==t||!this._q){this._q=tr(this.values(),t);this._get=t}return this._q};bs.q1=function(t){return this.quartile(t)[0]};bs.q2=function(t){return this.quartile(t)[1]};bs.q3=function(t){return this.quartile(t)[2]};bs.ci=function(t){if(this._get!==t||!this._ci){this._ci=sr(this.values(),1e3,.05,t);this._get=t}return this._ci};bs.ci0=function(t){return this.ci(t)[0]};bs.ci1=function(t){return this.ci(t)[1]};function xs(t){Bi.call(this,null,t);this._adds=[];this._mods=[];this._alen=0;this._mlen=0;this._drop=true;this._cross=false;this._dims=[];this._dnames=[];this._measures=[];this._countOnly=false;this._counts=null;this._prev=null;this._inputs=null;this._outputs=null}xs.Definition={type:"Aggregate",metadata:{generates:true,changes:true},params:[{name:"groupby",type:"field",array:true},{name:"ops",type:"enum",array:true,values:us},{name:"aggregate_params",type:"number",null:true,array:true},{name:"fields",type:"field",null:true,array:true},{name:"as",type:"string",null:true,array:true},{name:"drop",type:"boolean",default:true},{name:"cross",type:"boolean",default:false},{name:"key",type:"field"}]};(0,p.B)(xs,Bi,{transform(t,e){const n=this,i=e.fork(e.NO_SOURCE|e.NO_FIELDS),r=t.modified();n.stamp=i.stamp;if(n.value&&(r||e.modified(n._inputs,true))){n._prev=n.value;n.value=r?n.init(t):Object.create(null);e.visit(e.SOURCE,(t=>n.add(t)))}else{n.value=n.value||n.init(t);e.visit(e.REM,(t=>n.rem(t)));e.visit(e.ADD,(t=>n.add(t)))}i.modifies(n._outputs);n._drop=t.drop!==false;if(t.cross&&n._dims.length>1){n._drop=false;n.cross()}if(e.clean()&&n._drop){i.clean(true).runAfter((()=>this.clean()))}return n.changes(i)},cross(){const t=this,e=t.value,n=t._dnames,i=n.map((()=>({}))),r=n.length;function s(t){let e,s,a,o;for(e in t){a=t[e].tuple;for(s=0;s{const e=(0,p.N6)(t);r(t);n.push(e);return e}));this.cellkey=t.key?t.key:is(this._dims);this._countOnly=true;this._counts=[];this._measures=[];const s=t.fields||[null],a=t.ops||["count"],o=t.aggregate_params||[null],u=t.as||[],l=s.length,c={};let f,d,h,m,g,y,v;if(l!==a.length){(0,p.z3)("Unmatched number of fields and aggregate ops.")}for(v=0;vys(t,t.field)));return Object.create(null)},cellkey:is(),cell(t,e){let n=this.value[t];if(!n){n=this.value[t]=this.newcell(t,e);this._adds[this._alen++]=n}else if(n.num===0&&this._drop&&n.stamp{const e=i(t);t[o]=e;t[u]=e==null?null:r+s*(1+(e-r)/s)}:t=>t[o]=i(t));return e.modifies(n?a:o)},_bins(t){if(this.value&&!t.modified()){return this.value}const e=t.field,n=nr(t),i=n.step;let r=n.start,s=r+Math.ceil((n.stop-r)/i)*i,a,o;if((a=t.anchor)!=null){o=a-(r+i*Math.floor((a-r)/i));r+=o;s+=o}const u=function(t){let n=(0,p.Ro)(e(t));return n==null?null:ns?+Infinity:(n=Math.max(r,Math.min(n,s-i)),r+i*Math.floor(_s+(n-r)/i))};u.start=r;u.stop=n.stop;u.step=i;return this.value=(0,p.sY)(u,(0,p.nS)(e),t.name||"bin_"+(0,p.N6)(e))}});function As(t,e,n){const i=t;let r=e||[],s=n||[],a={},o=0;return{add:t=>s.push(t),remove:t=>a[i(t)]=++o,size:()=>r.length,data:(t,e)=>{if(o){r=r.filter((t=>!a[i(t)]));a={};o=0}if(e&&t){r.sort(t)}if(s.length){r=t?(0,p.h1)(t,r,s.sort(t)):r.concat(s);s=[]}return r}}}function ks(t){Bi.call(this,[],t)}ks.Definition={type:"Collect",metadata:{source:true},params:[{name:"sort",type:"compare"}]};(0,p.B)(ks,Bi,{transform(t,e){const n=e.fork(e.ALL),i=As(yn,this.value,n.materialize(n.ADD).add),r=t.sort,s=e.changed()||r&&(t.modified("sort")||e.modified(r.fields));n.visit(n.REM,i.remove);this.modified(s);this.value=n.source=i.data(An(r),s);if(e.source&&e.source.root){this.value.root=e.source.root}return n}});function Es(t){$n.call(this,null,Ms,t)}(0,p.B)(Es,$n);function Ms(t){return this.value&&!t.modified()?this.value:(0,p.UD)(t.fields,t.orders)}function Ds(t){Bi.call(this,null,t)}Ds.Definition={type:"CountPattern",metadata:{generates:true,changes:true},params:[{name:"field",type:"field",required:true},{name:"case",type:"enum",values:["upper","lower","mixed"],default:"mixed"},{name:"pattern",type:"string",default:'[\\w"]+'},{name:"stopwords",type:"string",default:""},{name:"as",type:"string",array:true,length:2,default:["text","count"]}]};function Cs(t,e,n){switch(e){case"upper":t=t.toUpperCase();break;case"lower":t=t.toLowerCase();break}return t.match(n)}(0,p.B)(Ds,Bi,{transform(t,e){const n=e=>n=>{var i=Cs(o(n),t.case,s)||[],r;for(var u=0,l=i.length;ur[t]=1+(r[t]||0))),c=n((t=>r[t]-=1));if(i){e.visit(e.SOURCE,l)}else{e.visit(e.ADD,l);e.visit(e.REM,c)}return this._finish(e,u)},_parameterCheck(t,e){let n=false;if(t.modified("stopwords")||!this._stop){this._stop=new RegExp("^"+(t.stopwords||"")+"$","i");n=true}if(t.modified("pattern")||!this._match){this._match=new RegExp(t.pattern||"[\\w']+","g");n=true}if(t.modified("field")||e.modified(t.field.fields)){n=true}if(n)this._counts={};return n},_finish(t,e){const n=this._counts,i=this._tuples||(this._tuples={}),r=e[0],s=e[1],a=t.fork(t.NO_SOURCE|t.NO_FIELDS);let o,u,l;for(o in n){u=i[o];l=n[o]||0;if(!u&&l){i[o]=u=bn({});u[r]=o;u[s]=l;a.add.push(u)}else if(l===0){if(u)a.rem.push(u);n[o]=null;i[o]=null}else if(u[s]!==l){u[s]=l;a.mod.push(u)}}return a.modifies(e)}});function Fs(t){Bi.call(this,null,t)}Fs.Definition={type:"Cross",metadata:{generates:true},params:[{name:"filter",type:"expr"},{name:"as",type:"string",array:true,length:2,default:["a","b"]}]};(0,p.B)(Fs,Bi,{transform(t,e){const n=e.fork(e.NO_SOURCE),i=t.as||["a","b"],r=i[0],s=i[1],a=!this.value||e.changed(e.ADD_REM)||t.modified("as")||t.modified("filter");let o=this.value;if(a){if(o)n.rem=o;o=e.materialize(e.SOURCE).source;n.add=this.value=Ss(o,r,s,t.filter||p.vN)}else{n.mod=o}n.source=this.value;return n.modifies(i)}});function Ss(t,e,n,i){var r=[],s={},a=t.length,o=0,u,l;for(;oOs(t,e))))}else if(typeof i[r]===$s){i[r](t[r])}}return i}function Ts(t){Bi.call(this,null,t)}const Ns=[{key:{function:"normal"},params:[{name:"mean",type:"number",default:0},{name:"stdev",type:"number",default:1}]},{key:{function:"lognormal"},params:[{name:"mean",type:"number",default:0},{name:"stdev",type:"number",default:1}]},{key:{function:"uniform"},params:[{name:"min",type:"number",default:0},{name:"max",type:"number",default:1}]},{key:{function:"kde"},params:[{name:"field",type:"field",required:true},{name:"from",type:"data"},{name:"bandwidth",type:"number",default:0}]}];const Ls={key:{function:"mixture"},params:[{name:"distributions",type:"param",array:true,params:Ns},{name:"weights",type:"number",array:true}]};Ts.Definition={type:"Density",metadata:{generates:true},params:[{name:"extent",type:"number",array:true,length:2},{name:"steps",type:"number"},{name:"minsteps",type:"number",default:25},{name:"maxsteps",type:"number",default:200},{name:"method",type:"string",default:"pdf",values:["pdf","cdf"]},{name:"distribution",type:"param",params:Ns.concat(Ls)},{name:"as",type:"string",array:true,default:["value","density"]}]};(0,p.B)(Ts,Bi,{transform(t,e){const n=e.fork(e.NO_SOURCE|e.NO_FIELDS);if(!this.value||e.changed()||t.modified()){const i=Os(t.distribution,Ps(e)),r=t.steps||t.minsteps||25,s=t.steps||t.maxsteps||200;let a=t.method||"pdf";if(a!=="pdf"&&a!=="cdf"){(0,p.z3)("Invalid density method: "+a)}if(!t.extent&&!i.data){(0,p.z3)("Missing density extent parameter.")}a=i[a];const o=t.as||["value","density"],u=t.extent||(0,p.Xx)(i.data()),l=Kr(a,u,r,s).map((t=>{const e={};e[o[0]]=t[0];e[o[1]]=t[1];return bn(e)}));if(this.value)n.rem=this.value;this.value=n.add=n.source=l}return n}});function Ps(t){return()=>t.materialize(t.SOURCE).source}function qs(t,e){if(!t)return null;return t.map(((t,n)=>e[n]||(0,p.N6)(t)))}function Is(t,e,n){const i=[],r=t=>t(u);let s,a,o,u,l,c;if(e==null){i.push(t.map(n))}else{for(s={},a=0,o=t.length;a(0,p.Ln)((0,p.Xx)(t,e))/30;(0,p.B)(js,Bi,{transform(t,e){if(this.value&&!(t.modified()||e.changed())){return e}const n=e.materialize(e.SOURCE).source,i=Is(e.source,t.groupby,p.D_),r=t.smooth||false,s=t.field,a=t.step||Gs(n,s),o=An(((t,e)=>s(t)-s(e))),u=t.as||Us,l=i.length;let c=Infinity,f=-Infinity,d=0,h;for(;df)f=e;t[++h][u]=e}}this.value={start:c,stop:f,step:a};return e.reflow(true).modifies(u)}});function Ys(t){$n.call(this,null,Ws,t);this.modified(true)}(0,p.B)(Ys,$n);function Ws(t){const e=t.expr;return this.value&&!t.modified("expr")?this.value:(0,p.sY)((n=>e(n,t)),(0,p.nS)(e),(0,p.N6)(e))}function Xs(t){Bi.call(this,[undefined,undefined],t)}Xs.Definition={type:"Extent",metadata:{},params:[{name:"field",type:"field",required:true}]};(0,p.B)(Xs,Bi,{transform(t,e){const n=this.value,i=t.field,r=e.changed()||e.modified(i.fields)||t.modified("field");let s=n[0],a=n[1];if(r||s==null){s=+Infinity;a=-Infinity}e.visit(r?e.SOURCE:e.ADD,(t=>{const e=(0,p.Ro)(i(t));if(e!=null){if(ea)a=e}}));if(!Number.isFinite(s)||!Number.isFinite(a)){let t=(0,p.N6)(i);if(t)t=` for field "${t}"`;e.dataflow.warn(`Infinite extent${t}: [${s}, ${a}]`);s=a=undefined}this.value=[s,a]}});function Hs(t,e){$n.call(this,t);this.parent=e;this.count=0}(0,p.B)(Hs,$n,{connect(t){this.detachSubflow=t.detachSubflow;this.targets().add(t);return t.source=this},add(t){this.count+=1;this.value.add.push(t)},rem(t){this.count-=1;this.value.rem.push(t)},mod(t){this.value.mod.push(t)},init(t){this.value.init(t,t.NO_SOURCE)},evaluate(){return this.value}});function Vs(t){Bi.call(this,{},t);this._keys=(0,p.nG)();const e=this._targets=[];e.active=0;e.forEach=t=>{for(let n=0,i=e.active;nt&&t.count>0));this.initTargets(t)}},initTargets(t){const e=this._targets,n=e.length,i=t?t.length:0;let r=0;for(;rthis.subflow(t,r,e);this._group=t.group||{};this.initTargets();e.visit(e.REM,(t=>{const e=yn(t),n=s.get(e);if(n!==undefined){s.delete(e);o(n).rem(t)}}));e.visit(e.ADD,(t=>{const e=i(t);s.set(yn(t),e);o(e).add(t)}));if(a||e.modified(i.fields)){e.visit(e.MOD,(t=>{const e=yn(t),n=s.get(e),r=i(t);if(n===r){o(r).mod(t)}else{s.set(e,r);o(n).rem(t);o(r).add(t)}}))}else if(e.changed(e.MOD)){e.visit(e.MOD,(t=>{o(s.get(yn(t))).mod(t)}))}if(a){e.visit(e.REFLOW,(t=>{const e=yn(t),n=s.get(e),r=i(t);if(n!==r){s.set(e,r);o(n).rem(t);o(r).add(t)}}))}if(e.clean()){n.runAfter((()=>{this.clean();s.clean()}))}else if(s.empty>n.cleanThreshold){n.runAfter(s.clean)}return e}});function Qs(t){$n.call(this,null,Ks,t)}(0,p.B)(Qs,$n);function Ks(t){return this.value&&!t.modified()?this.value:(0,p.cy)(t.name)?(0,p.YO)(t.name).map((t=>(0,p.ZZ)(t))):(0,p.ZZ)(t.name,t.as)}function Zs(t){Bi.call(this,(0,p.nG)(),t)}Zs.Definition={type:"Filter",metadata:{changes:true},params:[{name:"expr",type:"expr",required:true}]};(0,p.B)(Zs,Bi,{transform(t,e){const n=e.dataflow,i=this.value,r=e.fork(),s=r.add,a=r.rem,o=r.mod,u=t.expr;let l=true;e.visit(e.REM,(t=>{const e=yn(t);if(!i.has(e))a.push(t);else i.delete(e)}));e.visit(e.ADD,(e=>{if(u(e,t))s.push(e);else i.set(yn(e),1)}));function c(e){const n=yn(e),r=u(e,t),c=i.get(n);if(r&&c){i.delete(n);s.push(e)}else if(!r&&!c){i.set(n,1);a.push(e)}else if(l&&r&&!c){o.push(e)}}e.visit(e.MOD,c);if(t.modified()){l=false;e.visit(e.REFLOW,c)}if(i.empty>n.cleanThreshold)n.runAfter(i.clean);return r}});function Js(t){Bi.call(this,[],t)}Js.Definition={type:"Flatten",metadata:{generates:true},params:[{name:"fields",type:"field",array:true,required:true},{name:"index",type:"string"},{name:"as",type:"string",array:true}]};(0,p.B)(Js,Bi,{transform(t,e){const n=e.fork(e.NO_SOURCE),i=t.fields,r=qs(i,t.as||[]),s=t.index||null,a=r.length;n.rem=this.value;e.visit(e.SOURCE,(t=>{const e=i.map((e=>e(t))),o=e.reduce(((t,e)=>Math.max(t,e.length)),0);let u=0,l,c,f;for(;u{for(let e=0,s;ee[i]=n(e,t)))}});function na(t){Bi.call(this,[],t)}(0,p.B)(na,Bi,{transform(t,e){const n=e.fork(e.ALL),i=t.generator;let r=this.value,s=t.size-r.length,a,o,u;if(s>0){for(a=[];--s>=0;){a.push(u=bn(i(t)));r.push(u)}n.add=n.add.length?n.materialize(n.ADD).add.concat(a):a}else{o=r.slice(0,-s);n.rem=n.rem.length?n.materialize(n.REM).rem.concat(o):o;r=r.slice(-s)}n.source=this.value=r;return n}});const ia={value:"value",median:Qi,mean:ts,min:Li.A,max:Ni.A};const ra=[];function sa(t){Bi.call(this,[],t)}sa.Definition={type:"Impute",metadata:{changes:true},params:[{name:"field",type:"field",required:true},{name:"key",type:"field",required:true},{name:"keyvals",array:true},{name:"groupby",type:"field",array:true},{name:"method",type:"enum",default:"value",values:["value","mean","median","max","min"]},{name:"value",default:0}]};function aa(t){var e=t.method||ia.value,n;if(ia[e]==null){(0,p.z3)("Unrecognized imputation method: "+e)}else if(e===ia.value){n=t.value!==undefined?t.value:0;return()=>n}else{return ia[e]}}function oa(t){const e=t.field;return t=>t?e(t):NaN}(0,p.B)(sa,Bi,{transform(t,e){var n=e.fork(e.ALL),i=aa(t),r=oa(t),s=(0,p.N6)(t.field),a=(0,p.N6)(t.key),o=(t.groupby||[]).map(p.N6),u=ua(e.source,t.groupby,t.key,t.keyvals),l=[],c=this.value,f=u.domain.length,d,h,m,g,y,v,b,x,_,w;for(y=0,x=u.length;yt(g),s=[],a=i?i.slice():[],o={},u={},l,c,f,d,h,p,m,g;a.forEach(((t,e)=>o[t]=e+1));for(d=0,m=t.length;dn.add(t)))}else{r=n.value=n.value||this.init(t);e.visit(e.REM,(t=>n.rem(t)));e.visit(e.ADD,(t=>n.add(t)))}n.changes();e.visit(e.SOURCE,(t=>{(0,p.X$)(t,r[n.cellkey(t)].tuple)}));return e.reflow(i).modifies(this._outputs)},changes(){const t=this._adds,e=this._mods;let n,i;for(n=0,i=this._alen;n{const n=br(e,a)[o],i=t.counts?e.length:1,r=c||(0,p.Xx)(e);Kr(n,r,f,d).forEach((t=>{const n={};for(let i=0;i{this._pending=(0,p.YO)(t.data);return t=>t.touch(this)}));return{async:e}}else{return n.request(t.url,t.format).then((t=>ma(this,e,(0,p.YO)(t.data))))}}});function pa(t){return t.modified("async")&&!(t.modified("values")||t.modified("url")||t.modified("format"))}function ma(t,e,n){n.forEach(bn);const i=e.fork(e.NO_FIELDS&e.NO_SOURCE);i.rem=t.value;t.value=i.source=i.add=n;t._pending=null;if(i.rem.length)i.clean(true);return i}function ga(t){Bi.call(this,{},t)}ga.Definition={type:"Lookup",metadata:{modifies:true},params:[{name:"index",type:"index",params:[{name:"from",type:"data",required:true},{name:"key",type:"field",required:true}]},{name:"values",type:"field",array:true},{name:"fields",type:"field",array:true,required:true},{name:"as",type:"string",array:true},{name:"default",default:null}]};(0,p.B)(ga,Bi,{transform(t,e){const n=t.fields,i=t.index,r=t.values,s=t.default==null?null:t.default,a=t.modified(),o=n.length;let u=a?e.SOURCE:e.ADD,l=e,c=t.as,f,d,h;if(r){d=r.length;if(o>1&&!c){(0,p.z3)('Multi-field lookup requires explicit "as" parameter.')}if(c&&c.length!==o*d){(0,p.z3)('The "as" parameter has too few output field names.')}c=c||r.map(p.N6);f=function(t){for(var e=0,a=0,u,l;ee.modified(t.fields)));u|=h?e.MOD:0}e.visit(u,f);return l.modifies(c)}});function ya(t){$n.call(this,null,va,t)}(0,p.B)(ya,$n);function va(t){if(this.value&&!t.modified()){return this.value}const e=t.extents,n=e.length;let i=+Infinity,r=-Infinity,s,a;for(s=0;sr)r=a[1]}return[i,r]}function ba(t){$n.call(this,null,xa,t)}(0,p.B)(ba,$n);function xa(t){return this.value&&!t.modified()?this.value:t.values.reduce(((t,e)=>t.concat(e)),[])}function _a(t){Bi.call(this,null,t)}(0,p.B)(_a,Bi,{transform(t,e){this.modified(t.modified());this.value=t;return e.fork(e.NO_SOURCE|e.NO_FIELDS)}});function wa(t){xs.call(this,t)}wa.Definition={type:"Pivot",metadata:{generates:true,changes:true},params:[{name:"groupby",type:"field",array:true},{name:"field",type:"field",required:true},{name:"value",type:"field",required:true},{name:"op",type:"enum",values:us,default:"sum"},{name:"limit",type:"number",default:0},{name:"key",type:"field"}]};(0,p.B)(wa,xs,{_transform:xs.prototype.transform,transform(t,e){return this._transform(Aa(t,e),e)}});function Aa(t,e){const n=t.field,i=t.value,r=(t.op==="count"?"__count__":t.op)||"sum",s=(0,p.nS)(n).concat((0,p.nS)(i)),a=Ea(n,t.limit||0,e);if(e.changed())t.set("__pivot__",null,null,true);return{key:t.key,groupby:t.groupby,ops:a.map((()=>r)),fields:a.map((t=>ka(t,n,i,s))),as:a.map((t=>t+"")),modified:t.modified.bind(t)}}function ka(t,e,n,i){return(0,p.sY)((i=>e(i)===t?n(i):NaN),i,t+"")}function Ea(t,e,n){const i={},r=[];n.visit(n.SOURCE,(e=>{const n=t(e);if(!i[n]){i[n]=1;r.push(n)}}));r.sort(p.V_);return e?r.slice(0,e):r}function Ma(t){Vs.call(this,t)}(0,p.B)(Ma,Vs,{transform(t,e){const n=t.subflow,i=t.field,r=t=>this.subflow(yn(t),n,e,t);if(t.modified("field")||i&&e.modified((0,p.nS)(i))){(0,p.z3)("PreFacet does not support field modification.")}this.initTargets();if(i){e.visit(e.MOD,(t=>{const e=r(t);i(t).forEach((t=>e.mod(t)))}));e.visit(e.ADD,(t=>{const e=r(t);i(t).forEach((t=>e.add(bn(t))))}));e.visit(e.REM,(t=>{const e=r(t);i(t).forEach((t=>e.rem(t)))}))}else{e.visit(e.MOD,(t=>r(t).mod(t)));e.visit(e.ADD,(t=>r(t).add(t)));e.visit(e.REM,(t=>r(t).rem(t)))}if(e.clean()){e.runAfter((()=>this.clean()))}return e}});function Da(t){Bi.call(this,null,t)}Da.Definition={type:"Project",metadata:{generates:true,changes:true},params:[{name:"fields",type:"field",array:true},{name:"as",type:"string",null:true,array:true}]};(0,p.B)(Da,Bi,{transform(t,e){const n=e.fork(e.NO_SOURCE),i=t.fields,r=qs(t.fields,t.as||[]),s=i?(t,e)=>Ca(t,e,i,r):_n;let a;if(this.value){a=this.value}else{e=e.addAll();a=this.value={}}e.visit(e.REM,(t=>{const e=yn(t);n.rem.push(a[e]);a[e]=null}));e.visit(e.ADD,(t=>{const e=s(t,bn({}));a[yn(t)]=e;n.add.push(e)}));e.visit(e.MOD,(t=>{n.mod.push(s(t,a[yn(t)]))}));return n}});function Ca(t,e,n,i){for(let r=0,s=n.length;r{const e=Ji(t,l);for(let n=0;n{const e=yn(t);n.rem.push(i[e]);i[e]=null}));e.visit(e.ADD,(t=>{const e=xn(t);i[yn(t)]=e;n.add.push(e)}));e.visit(e.MOD,(t=>{const e=i[yn(t)];for(const i in t){e[i]=t[i];n.modifies(i)}n.mod.push(e)}))}return n}});function $a(t){Bi.call(this,[],t);this.count=0}$a.Definition={type:"Sample",metadata:{},params:[{name:"size",type:"number",default:1e3}]};(0,p.B)($a,Bi,{transform(t,e){const n=e.fork(e.NO_SOURCE),i=t.modified("size"),r=t.size,s=this.value.reduce(((t,e)=>(t[yn(e)]=1,t)),{});let a=this.value,o=this.count,u=0;function l(t){let e,i;if(a.length=u){e=a[i];if(s[yn(e)])n.rem.push(e);a[i]=t}}++o}if(e.rem.length){e.visit(e.REM,(t=>{const e=yn(t);if(s[e]){s[e]=-1;n.rem.push(t)}--o}));a=a.filter((t=>s[yn(t)]!==-1))}if((e.rem.length||i)&&a.length{if(!s[yn(t)])l(t)}));u=-1}if(i&&a.length>r){const t=a.length-r;for(let e=0;e{if(s[yn(t)])n.mod.push(t)}))}if(e.add.length){e.visit(e.ADD,l)}if(e.add.length||u<0){n.add=a.filter((t=>!s[yn(t)]))}this.count=o;this.value=n.source=a;return n}});function Ra(t){Bi.call(this,null,t)}Ra.Definition={type:"Sequence",metadata:{generates:true,changes:true},params:[{name:"start",type:"number",required:true},{name:"stop",type:"number",required:true},{name:"step",type:"number",default:1},{name:"as",type:"string",default:"data"}]};(0,p.B)(Ra,Bi,{transform(t,e){if(this.value&&!t.modified())return;const n=e.materialize().fork(e.MOD),i=t.as||"data";n.rem=this.value?e.rem.concat(this.value):e.rem;this.value=(0,es.A)(t.start,t.stop,t.step||1).map((t=>{const e={};e[i]=t;return bn(e)}));n.add=e.add.concat(this.value);return n}});function Oa(t){Bi.call(this,null,t);this.modified(true)}(0,p.B)(Oa,Bi,{transform(t,e){this.value=e.source;return e.changed()?e.fork(e.NO_SOURCE|e.NO_FIELDS):e.StopPropagation}});function Ta(t){Bi.call(this,null,t)}const Na=["unit0","unit1"];Ta.Definition={type:"TimeUnit",metadata:{modifies:true},params:[{name:"field",type:"field",required:true},{name:"interval",type:"boolean",default:true},{name:"units",type:"enum",values:ct,array:true},{name:"step",type:"number",default:1},{name:"maxbins",type:"number",default:40},{name:"extent",type:"date",array:true},{name:"timezone",type:"enum",default:"local",values:["local","utc"]},{name:"as",type:"string",array:true,length:2,default:Na}]};(0,p.B)(Ta,Bi,{transform(t,e){const n=t.field,i=t.interval!==false,r=t.timezone==="utc",s=this._floor(t,e),a=(r?It:qt)(s.unit).offset,o=t.as||Na,u=o[0],l=o[1],c=s.step;let f=s.start||Infinity,d=s.stop||-Infinity,h=e.ADD;if(t.modified()||e.changed(e.REM)||e.modified((0,p.nS)(n))){e=e.reflow(true);h=e.SOURCE;f=Infinity;d=-Infinity}e.visit(h,(t=>{const e=n(t);let r,o;if(e==null){t[u]=null;if(i)t[l]=null}else{t[u]=r=o=s(e);if(i)t[l]=o=a(r,c);if(rd)d=o}}));s.start=f;s.stop=d;return e.modifies(i?o:u)},_floor(t,e){const n=t.timezone==="utc";const{units:i,step:r}=t.units?{units:t.units,step:t.step||1}:ce({extent:t.extent||(0,p.Xx)(e.materialize(e.SOURCE).source,t.field),maxbins:t.maxbins});const s=dt(i),a=this.value||{},o=(n?Nt:Rt)(s,r);o.unit=(0,p.se)(s);o.units=s;o.step=r;o.start=a.start;o.stop=a.stop;return this.value=o}});function La(t){Bi.call(this,(0,p.nG)(),t)}(0,p.B)(La,Bi,{transform(t,e){const n=e.dataflow,i=t.field,r=this.value,s=t=>r.set(i(t),t);let a=true;if(t.modified("field")||e.modified(i.fields)){r.clear();e.visit(e.SOURCE,s)}else if(e.changed()){e.visit(e.REM,(t=>r.delete(i(t))));e.visit(e.ADD,s)}else{a=false}this.modified(a);if(r.empty>n.cleanThreshold)n.runAfter(r.clean);return e.fork()}});function Pa(t){Bi.call(this,null,t)}(0,p.B)(Pa,Bi,{transform(t,e){const n=!this.value||t.modified("field")||t.modified("sort")||e.changed()||t.sort&&e.modified(t.sort.fields);if(n){this.value=(t.sort?e.source.slice().sort(An(t.sort)):e.source).map(t.field)}}});function qa(t,e,n,i){const r=Ia[t](e,n);return{init:r.init||p.v_,update:function(t,e){e[i]=r.next(t)}}}const Ia={row_number:function(){return{next:t=>t.index+1}},rank:function(){let t;return{init:()=>t=1,next:e=>{const n=e.index,i=e.data;return n&&e.compare(i[n-1],i[n])?t=n+1:t}}},dense_rank:function(){let t;return{init:()=>t=1,next:e=>{const n=e.index,i=e.data;return n&&e.compare(i[n-1],i[n])?++t:t}}},percent_rank:function(){const t=Ia.rank(),e=t.next;return{init:t.init,next:t=>(e(t)-1)/(t.data.length-1)}},cume_dist:function(){let t;return{init:()=>t=0,next:e=>{const n=e.data,i=e.compare;let r=e.index;if(t0))(0,p.z3)("ntile num must be greater than zero.");const n=Ia.cume_dist(),i=n.next;return{init:n.init,next:t=>Math.ceil(e*i(t))}},lag:function(t,e){e=+e||1;return{next:n=>{const i=n.index-e;return i>=0?t(n.data[i]):null}}},lead:function(t,e){e=+e||1;return{next:n=>{const i=n.index+e,r=n.data;return it(e.data[e.i0])}},last_value:function(t){return{next:e=>t(e.data[e.i1-1])}},nth_value:function(t,e){e=+e;if(!(e>0))(0,p.z3)("nth_value nth must be greater than zero.");return{next:n=>{const i=n.i0+(e-1);return ie=null,next:n=>{const i=t(n.data[n.index]);return i!=null?e=i:e}}},next_value:function(t){let e,n;return{init:()=>(e=null,n=-1),next:i=>{const r=i.data;return i.index<=n?e:(n=Ua(t,r,i.index))<0?(n=r.length,e=null):e=t(r[n])}}}};function Ua(t,e,n){for(let i=e.length;nu[t]=1))}h(t.sort);e.forEach(((t,e)=>{const u=n[e],m=i[e],g=r[e]||null,y=(0,p.N6)(u),v=rs(t,y,s[e]);h(u);a.push(v);if((0,p.mQ)(Ia,t)){o.push(qa(t,u,m,v))}else{if(u==null&&t!=="count"){(0,p.z3)("Null aggregate field specified.")}if(t==="count"){c.push(v);return}d=false;let e=l[y];if(!e){e=l[y]=[];e.field=u;f.push(e)}e.push(cs(t,g,v))}}));if(c.length||f.length){this.cell=Wa(f,c,d)}this.inputs=Object.keys(u)}const Ya=Ga.prototype;Ya.init=function(){this.windows.forEach((t=>t.init()));if(this.cell)this.cell.init()};Ya.update=function(t,e){const n=this.cell,i=this.windows,r=t.data,s=i&&i.length;let a;if(n){for(a=t.p0;ays(t,t.field)));const i={num:0,agg:null,store:false,count:e};if(!n){var r=t.length,s=i.agg=Array(r),a=0;for(;athis.group(r(t));let a=this.state;if(!a||n){a=this.state=new Ga(t)}if(n||e.modified(a.inputs)){this.value={};e.visit(e.SOURCE,(t=>s(t).add(t)))}else{e.visit(e.REM,(t=>s(t).remove(t)));e.visit(e.ADD,(t=>s(t).add(t)))}for(let o=0,u=this._mlen;o0&&!r(s[n],s[n-1]))t.i0=e.left(s,s[n]);if(i=f;--d){o.point(y[d],v[d])}o.lineEnd();o.areaEnd()}}if(m){y[c]=+t(p,c,l),v[c]=+e(p,c,l);o.point(i?+i(p,c,l):y[c],n?+n(p,c,l):v[c])}}if(g)return o=null,g+""||null}function c(){return(0,go.A)().defined(r).curve(a).context(s)}l.x=function(e){return arguments.length?(t=typeof e==="function"?e:(0,mo.A)(+e),i=null,l):t};l.x0=function(e){return arguments.length?(t=typeof e==="function"?e:(0,mo.A)(+e),l):t};l.x1=function(t){return arguments.length?(i=t==null?null:typeof t==="function"?t:(0,mo.A)(+t),l):i};l.y=function(t){return arguments.length?(e=typeof t==="function"?t:(0,mo.A)(+t),n=null,l):e};l.y0=function(t){return arguments.length?(e=typeof t==="function"?t:(0,mo.A)(+t),l):e};l.y1=function(t){return arguments.length?(n=t==null?null:typeof t==="function"?t:(0,mo.A)(+t),l):n};l.lineX0=l.lineY0=function(){return c().x(t).y(e)};l.lineY1=function(){return c().x(t).y(n)};l.lineX1=function(){return c().x(i).y(e)};l.defined=function(t){return arguments.length?(r=typeof t==="function"?t:(0,mo.A)(!!t),l):r};l.curve=function(t){return arguments.length?(a=t,s!=null&&(o=a(s)),l):a};l.context=function(t){return arguments.length?(t==null?s=o=null:o=a(s=t),l):s};return l}var xo=n(98247);const _o=(0,xo.RZ)(3);const wo={draw(t,e){const n=(0,xo.RZ)(e+(0,xo.jk)(e/28,.75))*.59436;const i=n/2;const r=i*_o;t.moveTo(0,n);t.lineTo(0,-n);t.moveTo(-r,-i);t.lineTo(r,i);t.moveTo(-r,i);t.lineTo(r,-i)}};const Ao={draw(t,e){const n=(0,xo.RZ)(e/xo.pi);t.moveTo(n,0);t.arc(0,0,n,0,xo.FA)}};const ko={draw(t,e){const n=(0,xo.RZ)(e/5)/2;t.moveTo(-3*n,-n);t.lineTo(-n,-n);t.lineTo(-n,-3*n);t.lineTo(n,-3*n);t.lineTo(n,-n);t.lineTo(3*n,-n);t.lineTo(3*n,n);t.lineTo(n,n);t.lineTo(n,3*n);t.lineTo(-n,3*n);t.lineTo(-n,n);t.lineTo(-3*n,n);t.closePath()}};const Eo=(0,xo.RZ)(1/3);const Mo=Eo*2;const Do={draw(t,e){const n=(0,xo.RZ)(e/Mo);const i=n*Eo;t.moveTo(0,-n);t.lineTo(i,0);t.lineTo(0,n);t.lineTo(-i,0);t.closePath()}};const Co={draw(t,e){const n=(0,xo.RZ)(e)*.62625;t.moveTo(0,-n);t.lineTo(n,0);t.lineTo(0,n);t.lineTo(-n,0);t.closePath()}};const Fo={draw(t,e){const n=(0,xo.RZ)(e-(0,xo.jk)(e/7,2))*.87559;t.moveTo(-n,0);t.lineTo(n,0);t.moveTo(0,n);t.lineTo(0,-n)}};const So={draw(t,e){const n=(0,xo.RZ)(e);const i=-n/2;t.rect(i,i,n,n)}};const zo={draw(t,e){const n=(0,xo.RZ)(e)*.4431;t.moveTo(n,n);t.lineTo(n,-n);t.lineTo(-n,-n);t.lineTo(-n,n);t.closePath()}};const Bo=.8908130915292852;const $o=(0,xo.F8)(xo.pi/10)/(0,xo.F8)(7*xo.pi/10);const Ro=(0,xo.F8)(xo.FA/10)*$o;const Oo=-(0,xo.gn)(xo.FA/10)*$o;const To={draw(t,e){const n=(0,xo.RZ)(e*Bo);const i=Ro*n;const r=Oo*n;t.moveTo(0,-n);t.lineTo(i,r);for(let s=1;s<5;++s){const e=xo.FA*s/5;const a=(0,xo.gn)(e);const o=(0,xo.F8)(e);t.lineTo(o*n,-a*n);t.lineTo(a*i-o*r,o*i+a*r)}t.closePath()}};const No=(0,xo.RZ)(3);const Lo={draw(t,e){const n=-(0,xo.RZ)(e/(No*3));t.moveTo(0,n*2);t.lineTo(-No*n,-n);t.lineTo(No*n,-n);t.closePath()}};const Po=(0,xo.RZ)(3);const qo={draw(t,e){const n=(0,xo.RZ)(e)*.6824;const i=n/2;const r=n*Po/2;t.moveTo(0,-n);t.lineTo(r,i);t.lineTo(-r,i);t.closePath()}};const Io=-.5;const Uo=(0,xo.RZ)(3)/2;const jo=1/(0,xo.RZ)(12);const Go=(jo/2+1)*3;const Yo={draw(t,e){const n=(0,xo.RZ)(e/Go);const i=n/2,r=n*jo;const s=i,a=n*jo+n;const o=-s,u=a;t.moveTo(i,r);t.lineTo(s,a);t.lineTo(o,u);t.lineTo(Io*i-Uo*r,Uo*i+Io*r);t.lineTo(Io*s-Uo*a,Uo*s+Io*a);t.lineTo(Io*o-Uo*u,Uo*o+Io*u);t.lineTo(Io*i+Uo*r,Io*r-Uo*i);t.lineTo(Io*s+Uo*a,Io*a-Uo*s);t.lineTo(Io*o+Uo*u,Io*u-Uo*o);t.closePath()}};const Wo={draw(t,e){const n=(0,xo.RZ)(e-(0,xo.jk)(e/6,1.7))*.6189;t.moveTo(-n,-n);t.lineTo(n,n);t.moveTo(-n,n);t.lineTo(n,-n)}};const Xo=[Ao,ko,Do,So,To,Lo,Yo];const Ho=[Ao,Fo,Wo,qo,wo,zo,Co];function Vo(t,e){let n=null,i=(0,yo.i)(r);t=typeof t==="function"?t:(0,mo.A)(t||Ao);e=typeof e==="function"?e:(0,mo.A)(e===undefined?64:+e);function r(){let r;if(!n)n=r=i();t.apply(this,arguments).draw(n,+e.apply(this,arguments));if(r)return n=null,r+""||null}r.type=function(e){return arguments.length?(t=typeof e==="function"?e:(0,mo.A)(e),r):t};r.size=function(t){return arguments.length?(e=typeof t==="function"?t:(0,mo.A)(+t),r):e};r.context=function(t){return arguments.length?(n=t==null?null:t,r):n};return r}var Qo=n(69450);function Ko(t,e){if(typeof document!=="undefined"&&document.createElement){const n=document.createElement("canvas");if(n&&n.getContext){n.width=t;n.height=e;return n}}return null}const Zo=()=>typeof Image!=="undefined"?Image:null;var Jo=n(71363);var tu=n(20481);var eu=n(60117);function nu(t){var e;function n(t){return t==null||isNaN(t=+t)?e:t}n.invert=n;n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,eu.A),n):t.slice()};n.unknown=function(t){return arguments.length?(e=t,n):e};n.copy=function(){return nu(t).unknown(e)};t=arguments.length?Array.from(t,eu.A):[0,1];return(0,tu.C)(n)}var iu=n(60125);var ru=n(52178);var su=n(25758);function au(t){return Math.log(t)}function ou(t){return Math.exp(t)}function uu(t){return-Math.log(-t)}function lu(t){return-Math.exp(-t)}function cu(t){return isFinite(t)?+("1e"+t):t<0?0:t}function fu(t){return t===10?cu:t===Math.E?Math.exp:e=>Math.pow(t,e)}function du(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function hu(t){return(e,n)=>-t(-e,n)}function pu(t){const e=t(au,ou);const n=e.domain;let i=10;let r;let s;function a(){r=du(i),s=fu(i);if(n()[0]<0){r=hu(r),s=hu(s);t(uu,lu)}else{t(au,ou)}return e}e.base=function(t){return arguments.length?(i=+t,a()):i};e.domain=function(t){return arguments.length?(n(t),a()):n()};e.ticks=t=>{const e=n();let a=e[0];let o=e[e.length-1];const u=o0)for(;l<=c;++l){for(f=1;fo)break;p.push(d)}}else for(;l<=c;++l){for(f=i-1;f>=1;--f){d=l>0?f/s(-l):f*s(l);if(do)break;p.push(d)}}if(p.length*2{if(t==null)t=10;if(n==null)n=i===10?"s":",";if(typeof n!=="function"){if(!(i%1)&&(n=(0,L.A)(n)).precision==null)n.trim=true;n=(0,U.GP)(n)}if(t===Infinity)return n;const a=Math.max(1,i*t/e.ticks().length);return t=>{let e=t/s(Math.round(r(t)));if(e*in((0,iu.A)(n(),{floor:t=>s(Math.floor(r(t))),ceil:t=>s(Math.ceil(r(t)))}));return e}function mu(){const t=pu((0,ru.Gu)()).domain([1,10]);t.copy=()=>(0,ru.C)(t,mu()).base(t.base());su.C.apply(t,arguments);return t}function gu(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function yu(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function vu(t){return t<0?-t*t:t*t}function bu(t){var e=t(ru.D_,ru.D_),n=1;function i(){return n===1?t(ru.D_,ru.D_):n===.5?t(yu,vu):t(gu(n),gu(1/n))}e.exponent=function(t){return arguments.length?(n=+t,i()):n};return(0,tu.C)(e)}function xu(){var t=bu((0,ru.Gu)());t.copy=function(){return(0,ru.C)(t,xu()).exponent(t.exponent())};su.C.apply(t,arguments);return t}function _u(){return xu.apply(null,arguments).exponent(.5)}function wu(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Au(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function ku(t){var e=1,n=t(wu(e),Au(e));n.constant=function(n){return arguments.length?t(wu(e=+n),Au(e)):e};return(0,tu.C)(n)}function Eu(){var t=ku((0,ru.Gu)());t.copy=function(){return(0,ru.C)(t,Eu()).constant(t.constant())};return su.C.apply(t,arguments)}var Mu=n(74725);var Du=n(20421);function Cu(){return su.C.apply((0,Mu.B)(Du.$Z,Du.lk,W.Mb,X.R6,Y.Hl,G.dA,H.pz,V.vD,Q.R,fe.aL).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}var Fu=n(21406);var Su=n(15307);function zu(){var t=0,e=1,n,i,r,s,a=ru.D_,o=false,u;function l(t){return t==null||isNaN(t=+t)?u:a(r===0?.5:(t=(s(t)-n)*r,o?Math.max(0,Math.min(1,t)):t))}l.domain=function(a){return arguments.length?([t,e]=a,n=s(t=+t),i=s(e=+e),r=n===i?0:1/(i-n),l):[t,e]};l.clamp=function(t){return arguments.length?(o=!!t,l):o};l.interpolator=function(t){return arguments.length?(a=t,l):a};function c(t){return function(e){var n,i;return arguments.length?([n,i]=e,a=t(n,i),l):[a(0),a(1)]}}l.range=c(Fu.A);l.rangeRound=c(Su.A);l.unknown=function(t){return arguments.length?(u=t,l):u};return function(a){s=a,n=a(t),i=a(e),r=n===i?0:1/(i-n);return l}}function Bu(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function $u(){var t=(0,tu.C)(zu()(ru.D_));t.copy=function(){return Bu(t,$u())};return su.K.apply(t,arguments)}function Ru(){var t=pu(zu()).domain([1,10]);t.copy=function(){return Bu(t,Ru()).base(t.base())};return su.K.apply(t,arguments)}function Ou(){var t=ku(zu());t.copy=function(){return Bu(t,Ou()).constant(t.constant())};return su.K.apply(t,arguments)}function Tu(){var t=bu(zu());t.copy=function(){return Bu(t,Tu()).exponent(t.exponent())};return su.K.apply(t,arguments)}function Nu(){return Tu.apply(null,arguments).exponent(.5)}var Lu=n(99793);function Pu(){var t=0,e=.5,n=1,i=1,r,s,a,o,u,l=ru.D_,c,f=false,d;function h(t){return isNaN(t=+t)?d:(t=.5+((t=+c(t))-s)*(i*t0?n[r-1]:t[0],r=n?[i[n-1],e]:[i[a-1],i[a]]};a.unknown=function(t){return arguments.length?(s=t,a):a};a.thresholds=function(){return i.slice()};a.copy=function(){return Wu().domain([t,e]).range(r).unknown(s)};return su.C.apply((0,tu.C)(a),arguments)}function Xu(){var t=[.5],e=[0,1],n,i=1;function r(r){return r!=null&&r<=r?e[(0,Jo.Ay)(t,r,0,i)]:n}r.domain=function(n){return arguments.length?(t=Array.from(n),i=Math.min(t.length,e.length-1),r):t.slice()};r.range=function(n){return arguments.length?(e=Array.from(n),i=Math.min(t.length,e.length-1),r):e.slice()};r.invertExtent=function(n){var i=e.indexOf(n);return[t[i-1],t[i]]};r.unknown=function(t){return arguments.length?(n=t,r):n};r.copy=function(){return Xu().domain(t).range(e).unknown(n)};return su.C.apply(r,arguments)}var Hu=n(16527);var Vu=n(26698);var Qu=n(67360);var Ku=n(58177);const Zu=(0,Ku.A)("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");const Ju=(0,Ku.A)("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");const tl=(0,Ku.A)("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");const el=(0,Ku.A)("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0");const nl=(0,Ku.A)("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");const il=(0,Ku.A)("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");const rl=(0,Ku.A)("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");const sl=(0,Ku.A)("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");const al=(0,Ku.A)("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");const ol=(0,Ku.A)("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");function ul(t,e,n){const i=t-e+n*2;return t?i>0?i:1:0}const ll="identity";const cl="linear";const fl="log";const dl="pow";const hl="sqrt";const pl="symlog";const ml="time";const gl="utc";const yl="sequential";const vl="diverging";const bl="quantile";const xl="quantize";const _l="threshold";const wl="ordinal";const Al="point";const kl="band";const El="bin-ordinal";const Ml="continuous";const Dl="discrete";const Cl="discretizing";const Fl="interpolating";const Sl="temporal";function zl(t){return function(e){let n=e[0],i=e[1],r;if(i=i&&n[u]<=r){if(s<0)s=u;a=u}}if(s<0)return undefined;i=t.invertExtent(n[s]);r=t.invertExtent(n[a]);return[i[0]===undefined?i[1]:i[0],r[1]===undefined?r[0]:r[1]]}}function $l(){const t=(0,Hu.A)().unknown(undefined),e=t.domain,n=t.range;let i=[0,1],r,s,a=false,o=0,u=0,l=.5;delete t.unknown;function c(){const t=e().length,c=i[1]h+r*t));return n(c?p.reverse():p)}t.domain=function(t){if(arguments.length){e(t);return c()}else{return e()}};t.range=function(t){if(arguments.length){i=[+t[0],+t[1]];return c()}else{return i.slice()}};t.rangeRound=function(t){i=[+t[0],+t[1]];a=true;return c()};t.bandwidth=function(){return s};t.step=function(){return r};t.round=function(t){if(arguments.length){a=!!t;return c()}else{return a}};t.padding=function(t){if(arguments.length){u=Math.max(0,Math.min(1,t));o=u;return c()}else{return o}};t.paddingInner=function(t){if(arguments.length){o=Math.max(0,Math.min(1,t));return c()}else{return o}};t.paddingOuter=function(t){if(arguments.length){u=Math.max(0,Math.min(1,t));return c()}else{return u}};t.align=function(t){if(arguments.length){l=Math.max(0,Math.min(1,t));return c()}else{return l}};t.invertRange=function(t){if(t[0]==null||t[1]==null)return;const r=i[1]i[1-r])return;c=Math.max(0,(0,Jo.Jj)(a,u)-1);f=u===l?c:(0,Jo.Jj)(a,l)-1;if(u-a[c]>s+1e-10)++c;if(r){d=c;c=o-f;f=o-d}return c>f?undefined:e().slice(c,f+1)};t.invert=function(e){const n=t.invertRange([e,e]);return n?n[0]:n};t.copy=function(){return $l().domain(e()).range(i).round(a).paddingInner(o).paddingOuter(u).align(l)};return c()}function Rl(t){const e=t.copy;t.padding=t.paddingOuter;delete t.paddingInner;t.copy=function(){return Rl(e())};return t}function Ol(){return Rl($l().paddingInner(1))}var Tl=Array.prototype.map;function Nl(t){return Tl.call(t,p.Ro)}const Ll=Array.prototype.slice;function Pl(){let t=[],e=[];function n(n){return n==null||n!==n?undefined:e[((0,Jo.Ay)(t,n)-1)%e.length]}n.domain=function(e){if(arguments.length){t=Nl(e);return n}else{return t.slice()}};n.range=function(t){if(arguments.length){e=Ll.call(t);return n}else{return e.slice()}};n.tickFormat=function(e,n){return(0,Vu.A)(t[0],(0,p.se)(t),e==null?10:e,n)};n.copy=function(){return Pl().domain(n.domain()).range(n.range())};return n}const ql=new Map;const Il=Symbol("vega_scale");function Ul(t){t[Il]=true;return t}function jl(t){return t&&t[Il]===true}function Gl(t,e,n){const i=function n(){const i=e();if(!i.invertRange){i.invertRange=i.invert?zl(i):i.invertExtent?Bl(i):undefined}i.type=t;return Ul(i)};i.metadata=(0,p.M1)((0,p.YO)(n));return i}function Yl(t,e,n){if(arguments.length>1){ql.set(t,Gl(t,e,n));return this}else{return Wl(t)?ql.get(t):undefined}}Yl(ll,nu);Yl(cl,tu.A,Ml);Yl(fl,mu,[Ml,fl]);Yl(dl,xu,Ml);Yl(hl,_u,Ml);Yl(pl,Eu,Ml);Yl(ml,Mu.A,[Ml,Sl]);Yl(gl,Cu,[Ml,Sl]);Yl(yl,$u,[Ml,Fl]);Yl(`${yl}-${cl}`,$u,[Ml,Fl]);Yl(`${yl}-${fl}`,Ru,[Ml,Fl,fl]);Yl(`${yl}-${dl}`,Tu,[Ml,Fl]);Yl(`${yl}-${hl}`,Nu,[Ml,Fl]);Yl(`${yl}-${pl}`,Ou,[Ml,Fl]);Yl(`${vl}-${cl}`,qu,[Ml,Fl]);Yl(`${vl}-${fl}`,Iu,[Ml,Fl,fl]);Yl(`${vl}-${dl}`,ju,[Ml,Fl]);Yl(`${vl}-${hl}`,Gu,[Ml,Fl]);Yl(`${vl}-${pl}`,Uu,[Ml,Fl]);Yl(bl,Yu,[Cl,bl]);Yl(xl,Wu,Cl);Yl(_l,Xu,Cl);Yl(El,Pl,[Dl,Cl]);Yl(wl,Hu.A,Dl);Yl(kl,$l,Dl);Yl(Al,Ol,Dl);function Wl(t){return ql.has(t)}function Xl(t,e){const n=ql.get(t);return n&&n.metadata[e]}function Hl(t){return Xl(t,Ml)}function Vl(t){return Xl(t,Dl)}function Ql(t){return Xl(t,Cl)}function Kl(t){return Xl(t,fl)}function Zl(t){return Xl(t,Sl)}function Jl(t){return Xl(t,Fl)}function tc(t){return Xl(t,bl)}const ec=["clamp","base","constant","exponent"];function nc(t,e){const n=e[0],i=(0,p.se)(e)-n;return function(e){return t(n+e*i)}}function ic(t,e,n){return Lu.A(oc(e||"rgb",n),t)}function rc(t,e){const n=new Array(e),i=e+1;for(let r=0;rt[e]?a[e](t[e]()):0));return a}}function oc(t,e){const n=Qu[uc(t)];return e!=null&&n&&n.gamma?n.gamma(e):n}function uc(t){return"interpolate"+t.toLowerCase().split("-").map((t=>t[0].toUpperCase()+t.slice(1))).join("")}const lc={blues:"cfe1f2bed8eca8cee58fc1de74b2d75ba3cf4592c63181bd206fb2125ca40a4a90",greens:"d3eecdc0e6baabdda594d3917bc77d60ba6c46ab5e329a512089430e7735036429",greys:"e2e2e2d4d4d4c4c4c4b1b1b19d9d9d8888887575756262624d4d4d3535351e1e1e",oranges:"fdd8b3fdc998fdb87bfda55efc9244f87f2cf06b18e4580bd14904b93d029f3303",purples:"e2e1efd4d4e8c4c5e0b4b3d6a3a0cc928ec3827cb97566ae684ea25c3696501f8c",reds:"fdc9b4fcb49afc9e80fc8767fa7051f6573fec3f2fdc2a25c81b1db21218970b13",blueGreen:"d5efedc1e8e0a7ddd18bd2be70c6a958ba9144ad77319c5d2089460e7736036429",bluePurple:"ccddecbad0e4a8c2dd9ab0d4919cc98d85be8b6db28a55a6873c99822287730f71",greenBlue:"d3eecec5e8c3b1e1bb9bd8bb82cec269c2ca51b2cd3c9fc7288abd1675b10b60a1",orangeRed:"fddcaffdcf9bfdc18afdad77fb9562f67d53ee6545e24932d32d1ebf130da70403",purpleBlue:"dbdaebc8cee4b1c3de97b7d87bacd15b9fc93a90c01e7fb70b70ab056199045281",purpleBlueGreen:"dbd8eac8cee4b0c3de93b7d872acd1549fc83892bb1c88a3097f8702736b016353",purpleRed:"dcc9e2d3b3d7ce9eccd186c0da6bb2e14da0e23189d91e6fc61159ab07498f023a",redPurple:"fccfccfcbec0faa9b8f98faff571a5ec539ddb3695c41b8aa908808d0179700174",yellowGreen:"e4f4acd1eca0b9e2949ed68880c97c62bb6e47aa5e3297502083440e723b036034",yellowOrangeBrown:"feeaa1fedd84fecc63feb746fca031f68921eb7215db5e0bc54c05ab3d038f3204",yellowOrangeRed:"fee087fed16ffebd59fea849fd903efc7335f9522bee3423de1b20ca0b22af0225",blueOrange:"134b852f78b35da2cb9dcae1d2e5eff2f0ebfce0bafbbf74e8932fc5690d994a07",brownBlueGreen:"704108a0651ac79548e3c78af3e6c6eef1eac9e9e48ed1c74da79e187a72025147",purpleGreen:"5b1667834792a67fb6c9aed3e6d6e8eff0efd9efd5aedda971bb75368e490e5e29",purpleOrange:"4114696647968f83b7b9b4d6dadbebf3eeeafce0bafbbf74e8932fc5690d994a07",redBlue:"8c0d25bf363adf745ef4ae91fbdbc9f2efeed2e5ef9dcae15da2cb2f78b3134b85",redGrey:"8c0d25bf363adf745ef4ae91fcdccbfaf4f1e2e2e2c0c0c0969696646464343434",yellowGreenBlue:"eff9bddbf1b4bde5b594d5b969c5be45b4c22c9ec02182b82163aa23479c1c3185",redYellowBlue:"a50026d4322cf16e43fcac64fedd90faf8c1dcf1ecabd6e875abd04a74b4313695",redYellowGreen:"a50026d4322cf16e43fcac63fedd8df9f7aed7ee8ea4d86e64bc6122964f006837",pinkYellowGreen:"8e0152c0267edd72adf0b3d6faddedf5f3efe1f2cab6de8780bb474f9125276419",spectral:"9e0142d13c4bf0704afcac63fedd8dfbf8b0e0f3a1a9dda269bda94288b55e4fa2",viridis:"440154470e61481a6c482575472f7d443a834144873d4e8a39568c35608d31688e2d708e2a788e27818e23888e21918d1f988b1fa08822a8842ab07f35b77943bf7154c56866cc5d7ad1518fd744a5db36bcdf27d2e21be9e51afde725",magma:"0000040404130b0924150e3720114b2c11603b0f704a107957157e651a80721f817f24828c29819a2e80a8327db6377ac43c75d1426fde4968e95462f1605df76f5cfa7f5efc8f65fe9f6dfeaf78febf84fece91fddea0fcedaffcfdbf",inferno:"0000040403130c0826170c3b240c4f330a5f420a68500d6c5d126e6b176e781c6d86216b932667a12b62ae305cbb3755c73e4cd24644dd513ae65c30ed6925f3771af8850ffb9506fca50afcb519fac62df6d645f2e661f3f484fcffa4",plasma:"0d088723069033059742039d5002a25d01a66a00a87801a88405a7900da49c179ea72198b12a90ba3488c33d80cb4779d35171da5a69e16462e76e5bed7953f2834cf68f44fa9a3dfca636fdb32ffec029fcce25f9dc24f5ea27f0f921",cividis:"00205100235800265d002961012b65042e670831690d346b11366c16396d1c3c6e213f6e26426e2c456e31476e374a6e3c4d6e42506e47536d4c566d51586e555b6e5a5e6e5e616e62646f66676f6a6a706e6d717270717573727976737c79747f7c75827f758682768985778c8877908b78938e789691789a94789e9778a19b78a59e77a9a177aea575b2a874b6ab73bbaf71c0b26fc5b66dc9b96acebd68d3c065d8c462ddc85fe2cb5ce7cf58ebd355f0d652f3da4ff7de4cfae249fce647",rainbow:"6e40aa883eb1a43db3bf3cafd83fa4ee4395fe4b83ff576eff6659ff7847ff8c38f3a130e2b72fcfcc36bee044aff05b8ff4576ff65b52f6673af27828ea8d1ddfa319d0b81cbecb23abd82f96e03d82e14c6edb5a5dd0664dbf6e40aa",sinebow:"ff4040fc582af47218e78d0bd5a703bfbf00a7d5038de70b72f41858fc2a40ff402afc5818f4720be78d03d5a700bfbf03a7d50b8de71872f42a58fc4040ff582afc7218f48d0be7a703d5bf00bfd503a7e70b8df41872fc2a58ff4040",turbo:"23171b32204a3e2a71453493493eae4b49c54a53d7485ee44569ee4074f53c7ff8378af93295f72e9ff42ba9ef28b3e926bce125c5d925cdcf27d5c629dcbc2de3b232e9a738ee9d3ff39347f68950f9805afc7765fd6e70fe667cfd5e88fc5795fb51a1f84badf545b9f140c5ec3cd0e637dae034e4d931ecd12ef4c92bfac029ffb626ffad24ffa223ff9821ff8d1fff821dff771cfd6c1af76118f05616e84b14df4111d5380fcb2f0dc0260ab61f07ac1805a313029b0f00950c00910b00",browns:"eedbbdecca96e9b97ae4a865dc9856d18954c7784cc0673fb85536ad44339f3632",tealBlues:"bce4d89dd3d181c3cb65b3c245a2b9368fae347da0306a932c5985",teals:"bbdfdfa2d4d58ac9c975bcbb61b0af4da5a43799982b8b8c1e7f7f127273006667",warmGreys:"dcd4d0cec5c1c0b8b4b3aaa7a59c9998908c8b827f7e7673726866665c5a59504e",goldGreen:"f4d166d5ca60b6c35c98bb597cb25760a6564b9c533f8f4f33834a257740146c36",goldOrange:"f4d166f8be5cf8aa4cf5983bf3852aef701be2621fd65322c54923b142239e3a26",goldRed:"f4d166f6be59f9aa51fc964ef6834bee734ae56249db5247cf4244c43141b71d3e",lightGreyRed:"efe9e6e1dad7d5cbc8c8bdb9bbaea9cd967ddc7b43e15f19df4011dc000b",lightGreyTeal:"e4eaead6dcddc8ced2b7c2c7a6b4bc64b0bf22a6c32295c11f85be1876bc",lightMulti:"e0f1f2c4e9d0b0de9fd0e181f6e072f6c053f3993ef77440ef4a3c",lightOrange:"f2e7daf7d5baf9c499fab184fa9c73f68967ef7860e8645bde515bd43d5b",lightTealBlue:"e3e9e0c0dccf9aceca7abfc859afc0389fb9328dad2f7ca0276b95255988",darkBlue:"3232322d46681a5c930074af008cbf05a7ce25c0dd38daed50f3faffffff",darkGold:"3c3c3c584b37725e348c7631ae8b2bcfa424ecc31ef9de30fff184ffffff",darkGreen:"3a3a3a215748006f4d048942489e4276b340a6c63dd2d836ffeb2cffffaa",darkMulti:"3737371f5287197d8c29a86995ce3fffe800ffffff",darkRed:"3434347036339e3c38cc4037e75d1eec8620eeab29f0ce32ffeb2c"};const cc={accent:Zu,category10:Ju,category20:"1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5",category20b:"393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6",category20c:"3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9",dark2:tl,observable10:el,paired:nl,pastel1:il,pastel2:rl,set1:sl,set2:al,set3:ol,tableau10:"4c78a8f58518e4575672b7b254a24beeca3bb279a2ff9da69d755dbab0ac",tableau20:"4c78a89ecae9f58518ffbf7954a24b88d27ab79a20f2cf5b43989483bcb6e45756ff9d9879706ebab0acd67195fcbfd2b279a2d6a5c99e765fd8b5a5"};function fc(t){if((0,p.cy)(t))return t;const e=t.length/6|0,n=new Array(e);for(let i=0;iic(fc(t))));function pc(t,e){t=t&&t.toLowerCase();if(arguments.length>1){hc[t]=e;return this}else{return hc[t]}}const mc="symbol";const gc="discrete";const yc="gradient";const vc=t=>(0,p.cy)(t)?t.map((t=>String(t))):String(t);const bc=(t,e)=>t[1]-e[1];const xc=(t,e)=>e[1]-t[1];function _c(t,e,n){let i;if((0,p.Et)(e)){if(t.bins){e=Math.max(e,t.bins.length)}if(n!=null){e=Math.min(e,Math.floor((0,p.Ln)(t.domain())/n||1)+1)}}if((0,p.Gv)(e)){i=e.step;e=e.interval}if((0,p.Kg)(e)){e=t.type===ml?qt(e):t.type==gl?It(e):(0,p.z3)("Only time and utc scales accept interval strings.");if(i)e=e.every(i)}return e}function wc(t,e,n){let i=t.range(),r=i[0],s=(0,p.se)(i),a=bc;if(r>s){i=s;s=r;r=i;a=xc}r=Math.floor(r);s=Math.ceil(s);e=e.map((e=>[e,t(e)])).filter((t=>r<=t[1]&&t[1]<=s)).sort(a).map((t=>t[0]));if(n>0&&e.length>1){const t=[e[0],(0,p.se)(e)];while(e.length>n&&e.length>=3){e=e.filter(((t,e)=>!(e%2)))}if(e.length<3){e=t}}return e}function Ac(t,e){return t.bins?wc(t,t.bins,e):t.ticks?t.ticks(e):t.domain()}function kc(t,e,n,i,r,s){const a=e.type;let o=vc;if(a===ml||r===ml){o=t.timeFormat(i)}else if(a===gl||r===gl){o=t.utcFormat(i)}else if(Kl(a)){const r=t.formatFloat(i);if(s||e.bins){o=r}else{const t=Ec(e,n,false);o=e=>t(e)?r(e):""}}else if(e.tickFormat){const r=e.domain();o=t.formatSpan(r[0],r[r.length-1],n,i)}else if(i){o=t.format(i)}return o}function Ec(t,e,n){const i=Ac(t,e),r=t.base(),s=Math.log(r),a=Math.max(1,r*e/i.length);const o=t=>{let e=t/Math.pow(r,Math.round(Math.log(t)/s));if(e*r1?i[1]-i[0]:i[0],a;for(a=1;aMc[t.type]||t.bins;function $c(t,e,n,i,r,s,a){const o=Dc[e.type]&&s!==ml&&s!==gl?Fc(t,e,r):kc(t,e,n,r,s,a);return i===mc&&Bc(e)?Rc(o):i===gc?Tc(o):Nc(o)}const Rc=t=>(e,n,i)=>{const r=Oc(i[n+1],Oc(i.max,+Infinity)),s=Lc(e,t),a=Lc(r,t);return s&&a?s+" – "+a:a?"< "+a:"≥ "+s};const Oc=(t,e)=>t!=null?t:e;const Tc=t=>(e,n)=>n?t(e):null;const Nc=t=>e=>t(e);const Lc=(t,e)=>Number.isFinite(t)?e(t):null;function Pc(t){const e=t.domain(),n=e.length-1;let i=+e[0],r=+(0,p.se)(e),s=r-i;if(t.type===_l){const t=n?s/n:.1;i-=t;r+=t;s=r-i}return t=>(t-i)/s}function qc(t,e,n,i){const r=i||e.type;if((0,p.Kg)(n)&&Zl(r)){n=n.replace(/%a/g,"%A").replace(/%b/g,"%B")}return!n&&r===ml?t.timeFormat("%A, %d %B %Y, %X"):!n&&r===gl?t.utcFormat("%A, %d %B %Y, %X UTC"):$c(t,e,5,null,n,i,true)}function Ic(t,e,n){n=n||{};const i=Math.max(3,n.maxlen||7),r=qc(t,e,n.format,n.formatType);if(Ql(e.type)){const t=Cc(e).slice(1).map(r),n=t.length;return`${n} boundar${n===1?"y":"ies"}: ${t.join(", ")}`}else if(Vl(e.type)){const t=e.domain(),n=t.length,s=n>i?t.slice(0,i-2).map(r).join(", ")+", ending with "+t.slice(-1).map(r):t.map(r).join(", ");return`${n} value${n===1?"":"s"}: ${s}`}else{const t=e.domain();return`values from ${r(t[0])} to ${r((0,p.se)(t))}`}}let Uc=0;function jc(){Uc=0}const Gc="p_";function Yc(t){return t&&t.gradient}function Wc(t,e,n){const i=t.gradient;let r=t.id,s=i==="radial"?Gc:"";if(!r){r=t.id="gradient_"+Uc++;if(i==="radial"){t.x1=Xc(t.x1,.5);t.y1=Xc(t.y1,.5);t.r1=Xc(t.r1,0);t.x2=Xc(t.x2,.5);t.y2=Xc(t.y2,.5);t.r2=Xc(t.r2,.5);s=Gc}else{t.x1=Xc(t.x1,0);t.y1=Xc(t.y1,0);t.x2=Xc(t.x2,1);t.y2=Xc(t.y2,0)}}e[r]=t;return"url("+(n||"")+"#"+s+r+")"}function Xc(t,e){return t!=null?t:e}function Hc(t,e){var n=[],i;return i={gradient:"linear",x1:t?t[0]:0,y1:t?t[1]:0,x2:e?e[0]:1,y2:e?e[1]:0,stops:n,stop:function(t,e){n.push({offset:t,color:e});return i}}}const Vc={basis:{curve:Ka.Ay},"basis-closed":{curve:Za.A},"basis-open":{curve:Ja.A},bundle:{curve:to.A,tension:"beta",value:.85},cardinal:{curve:eo.Ay,tension:"tension",value:0},"cardinal-open":{curve:no.A,tension:"tension",value:0},"cardinal-closed":{curve:io.A,tension:"tension",value:0},"catmull-rom":{curve:ro.A,tension:"alpha",value:.5},"catmull-rom-closed":{curve:so.A,tension:"alpha",value:.5},"catmull-rom-open":{curve:ao.A,tension:"alpha",value:.5},linear:{curve:oo.A},"linear-closed":{curve:uo.A},monotone:{horizontal:lo.N,vertical:lo.G},natural:{curve:co.A},step:{curve:fo.Ay},"step-after":{curve:fo.Ps},"step-before":{curve:fo.Ko}};function Qc(t,e,n){var i=(0,p.mQ)(Vc,t)&&Vc[t],r=null;if(i){r=i.curve||i[e||"vertical"];if(i.tension&&n!=null){r=r[i.tension](n)}}return r}const Kc={m:2,l:2,h:1,v:1,z:0,c:6,s:4,q:4,t:2,a:7};const Zc=/[mlhvzcsqta]([^mlhvzcsqta]+|$)/gi;const Jc=/^[+-]?(([0-9]*\.[0-9]+)|([0-9]+\.)|([0-9]+))([eE][+-]?[0-9]+)?/;const tf=/^((\s+,?\s*)|(,\s*))/;const ef=/^[01]/;function nf(t){const e=[];const n=t.match(Zc)||[];n.forEach((t=>{let n=t[0];const i=n.toLowerCase();const r=Kc[i];const s=rf(i,r,t.slice(1).trim());const a=s.length;if(a1){m=Math.sqrt(m);n*=m;i*=m}const g=d/n;const y=f/n;const v=-f/i;const b=d/i;const x=g*o+y*u;const _=v*o+b*u;const w=g*t+y*e;const A=v*t+b*e;const k=(w-x)*(w-x)+(A-_)*(A-_);let E=1/k-.25;if(E<0)E=0;let M=Math.sqrt(E);if(s==r)M=-M;const D=.5*(x+w)-M*(A-_);const C=.5*(_+A)+M*(w-x);const F=Math.atan2(_-C,x-D);const S=Math.atan2(A-C,w-D);let z=S-F;if(z<0&&s===1){z+=uf}else if(z>0&&s===0){z-=uf}const B=Math.ceil(Math.abs(z/(of+.001)));const $=[];for(let R=0;R+t}function Sf(t,e,n){return Math.max(e,Math.min(t,n))}function zf(){var t=Ef,e=Mf,n=Df,i=Cf,r=Ff(0),s=r,a=r,o=r,u=null;function l(l,c,f){var d,h=c!=null?c:+t.call(this,l),p=f!=null?f:+e.call(this,l),m=+n.call(this,l),g=+i.call(this,l),y=Math.min(m,g)/2,v=Sf(+r.call(this,l),0,y),b=Sf(+s.call(this,l),0,y),x=Sf(+a.call(this,l),0,y),_=Sf(+o.call(this,l),0,y);if(!u)u=d=(0,Qo.Ae)();if(v<=0&&b<=0&&x<=0&&_<=0){u.rect(h,p,m,g)}else{var w=h+m,A=p+g;u.moveTo(h+v,p);u.lineTo(w-b,p);u.bezierCurveTo(w-kf*b,p,w,p+kf*b,w,p+b);u.lineTo(w,A-_);u.bezierCurveTo(w,A-kf*_,w-kf*_,A,w-_,A);u.lineTo(h+x,A);u.bezierCurveTo(h+kf*x,A,h,A-kf*x,h,A-x);u.lineTo(h,p+v);u.bezierCurveTo(h,p+kf*v,h+kf*v,p,h+v,p);u.closePath()}if(d){u=null;return d+""||null}}l.x=function(e){if(arguments.length){t=Ff(e);return l}else{return t}};l.y=function(t){if(arguments.length){e=Ff(t);return l}else{return e}};l.width=function(t){if(arguments.length){n=Ff(t);return l}else{return n}};l.height=function(t){if(arguments.length){i=Ff(t);return l}else{return i}};l.cornerRadius=function(t,e,n,i){if(arguments.length){r=Ff(t);s=e!=null?Ff(e):r;o=n!=null?Ff(n):r;a=i!=null?Ff(i):s;return l}else{return r}};l.context=function(t){if(arguments.length){u=t==null?null:t;return l}else{return u}};return l}function Bf(){var t,e,n,i,r=null,s,a,o,u;function l(t,e,n){const i=n/2;if(s){var l=o-e,c=t-a;if(l||c){var f=Math.hypot(l,c),d=(l/=f)*u,h=(c/=f)*u,p=Math.atan2(c,l);r.moveTo(a-d,o-h);r.lineTo(t-l*i,e-c*i);r.arc(t,e,i,p-Math.PI,p);r.lineTo(a+d,o+h);r.arc(a,o,u,p,p+Math.PI)}else{r.arc(t,e,i,0,uf)}r.closePath()}else{s=1}a=t;o=e;u=i}function c(a){var o,u=a.length,c,f=false,d;if(r==null)r=d=(0,Qo.Ae)();for(o=0;o<=u;++o){if(!(ot.x||0,Of=t=>t.y||0,Tf=t=>t.width||0,Nf=t=>t.height||0,Lf=t=>(t.x||0)+(t.width||0),Pf=t=>(t.y||0)+(t.height||0),qf=t=>t.startAngle||0,If=t=>t.endAngle||0,Uf=t=>t.padAngle||0,jf=t=>t.innerRadius||0,Gf=t=>t.outerRadius||0,Yf=t=>t.cornerRadius||0,Wf=t=>$f(t.cornerRadiusTopLeft,t.cornerRadius)||0,Xf=t=>$f(t.cornerRadiusTopRight,t.cornerRadius)||0,Hf=t=>$f(t.cornerRadiusBottomRight,t.cornerRadius)||0,Vf=t=>$f(t.cornerRadiusBottomLeft,t.cornerRadius)||0,Qf=t=>$f(t.size,64),Kf=t=>t.size||1,Zf=t=>!(t.defined===false),Jf=t=>_f(t.shape||"circle");const td=(0,ho.A)().startAngle(qf).endAngle(If).padAngle(Uf).innerRadius(jf).outerRadius(Gf).cornerRadius(Yf),ed=bo().x(Rf).y1(Of).y0(Pf).defined(Zf),nd=bo().y(Of).x1(Rf).x0(Lf).defined(Zf),id=(0,go.A)().x(Rf).y(Of).defined(Zf),rd=zf().x(Rf).y(Of).width(Tf).height(Nf).cornerRadius(Wf,Xf,Hf,Vf),sd=Vo().type(Jf).size(Qf),ad=Bf().x(Rf).y(Of).defined(Zf).size(Kf);function od(t){return t.cornerRadius||t.cornerRadiusTopLeft||t.cornerRadiusTopRight||t.cornerRadiusBottomRight||t.cornerRadiusBottomLeft}function ud(t,e){return td.context(t)(e)}function ld(t,e){const n=e[0],i=n.interpolate||"linear";return(n.orient==="horizontal"?nd:ed).curve(Qc(i,n.orient,n.tension)).context(t)(e)}function cd(t,e){const n=e[0],i=n.interpolate||"linear";return id.curve(Qc(i,n.orient,n.tension)).context(t)(e)}function fd(t,e,n,i){return rd.context(t)(e,n,i)}function dd(t,e){return(e.mark.shape||e.shape).context(t)(e)}function hd(t,e){return sd.context(t)(e)}function pd(t,e){return ad.context(t)(e)}var md=1;function gd(){md=1}function yd(t,e,n){var i=e.clip,r=t._defs,s=e.clip_id||(e.clip_id="clip"+md++),a=r.clipping[s]||(r.clipping[s]={id:s});if((0,p.Tn)(i)){a.path=i(null)}else if(od(n)){a.path=fd(null,n,0,0)}else{a.width=n.width||0;a.height=n.height||0}return"url(#"+s+")"}function vd(t){this.clear();if(t)this.union(t)}vd.prototype={clone(){return new vd(this)},clear(){this.x1=+Number.MAX_VALUE;this.y1=+Number.MAX_VALUE;this.x2=-Number.MAX_VALUE;this.y2=-Number.MAX_VALUE;return this},empty(){return this.x1===+Number.MAX_VALUE&&this.y1===+Number.MAX_VALUE&&this.x2===-Number.MAX_VALUE&&this.y2===-Number.MAX_VALUE},equals(t){return this.x1===t.x1&&this.y1===t.y1&&this.x2===t.x2&&this.y2===t.y2},set(t,e,n,i){if(nthis.x2)this.x2=t;if(e>this.y2)this.y2=e;return this},expand(t){this.x1-=t;this.y1-=t;this.x2+=t;this.y2+=t;return this},round(){this.x1=Math.floor(this.x1);this.y1=Math.floor(this.y1);this.x2=Math.ceil(this.x2);this.y2=Math.ceil(this.y2);return this},scale(t){this.x1*=t;this.y1*=t;this.x2*=t;this.y2*=t;return this},translate(t,e){this.x1+=t;this.x2+=t;this.y1+=e;this.y2+=e;return this},rotate(t,e,n){const i=this.rotatedPoints(t,e,n);return this.clear().add(i[0],i[1]).add(i[2],i[3]).add(i[4],i[5]).add(i[6],i[7])},rotatedPoints(t,e,n){var{x1:i,y1:r,x2:s,y2:a}=this,o=Math.cos(t),u=Math.sin(t),l=e-e*o+n*u,c=n-e*u-n*o;return[o*i-u*r+l,u*i+o*r+c,o*i-u*a+l,u*i+o*a+c,o*s-u*r+l,u*s+o*r+c,o*s-u*a+l,u*s+o*a+c]},union(t){if(t.x1this.x2)this.x2=t.x2;if(t.y2>this.y2)this.y2=t.y2;return this},intersect(t){if(t.x1>this.x1)this.x1=t.x1;if(t.y1>this.y1)this.y1=t.y1;if(t.x2=t.x2&&this.y1<=t.y1&&this.y2>=t.y2},alignsWith(t){return t&&(this.x1==t.x1||this.x2==t.x2||this.y1==t.y1||this.y2==t.y2)},intersects(t){return t&&!(this.x2t.x2||this.y2t.y2)},contains(t,e){return!(tthis.x2||ethis.y2)},width(){return this.x2-this.x1},height(){return this.y2-this.y1}};function bd(t){this.mark=t;this.bounds=this.bounds||new vd}function xd(t){bd.call(this,t);this.items=this.items||[]}(0,p.B)(xd,bd);class _d{constructor(t){this._pending=0;this._loader=t||fn()}pending(){return this._pending}sanitizeURL(t){const e=this;wd(e);return e._loader.sanitize(t,{context:"href"}).then((t=>{Ad(e);return t})).catch((()=>{Ad(e);return null}))}loadImage(t){const e=this,n=Zo();wd(e);return e._loader.sanitize(t,{context:"image"}).then((t=>{const i=t.href;if(!i||!n)throw{url:i};const r=new n;const s=(0,p.mQ)(t,"crossOrigin")?t.crossOrigin:"anonymous";if(s!=null)r.crossOrigin=s;r.onload=()=>Ad(e);r.onerror=()=>Ad(e);r.src=i;return r})).catch((t=>{Ad(e);return{complete:false,width:0,height:0,src:t&&t.url||""}}))}ready(){const t=this;return new Promise((e=>{function n(i){if(!t.pending())e(i);else setTimeout((()=>{n(true)}),10)}n(false)}))}}function wd(t){t._pending+=1}function Ad(t){t._pending-=1}function kd(t,e,n){if(e.stroke&&e.opacity!==0&&e.strokeOpacity!==0){const i=e.strokeWidth!=null?+e.strokeWidth:1;t.expand(i+(n?Ed(e,i):0))}return t}function Ed(t,e){return t.strokeJoin&&t.strokeJoin!=="miter"?0:e}const Md=uf-1e-8;let Dd,Cd,Fd,Sd,zd,Bd,$d,Rd;const Od=(t,e)=>Dd.add(t,e);const Td=(t,e)=>Od(Cd=t,Fd=e);const Nd=t=>Od(t,Dd.y1);const Ld=t=>Od(Dd.x1,t);const Pd=(t,e)=>zd*t+$d*e;const qd=(t,e)=>Bd*t+Rd*e;const Id=(t,e)=>Od(Pd(t,e),qd(t,e));const Ud=(t,e)=>Td(Pd(t,e),qd(t,e));function jd(t,e){Dd=t;if(e){Sd=e*sf;zd=Rd=Math.cos(Sd);Bd=Math.sin(Sd);$d=-Bd}else{zd=Rd=1;Sd=Bd=$d=0}return Gd}const Gd={beginPath(){},closePath(){},moveTo:Ud,lineTo:Ud,rect(t,e,n,i){if(Sd){Id(t+n,e);Id(t+n,e+i);Id(t,e+i);Ud(t,e)}else{Od(t+n,e+i);Td(t,e)}},quadraticCurveTo(t,e,n,i){const r=Pd(t,e),s=qd(t,e),a=Pd(n,i),o=qd(n,i);Yd(Cd,r,a,Nd);Yd(Fd,s,o,Ld);Td(a,o)},bezierCurveTo(t,e,n,i,r,s){const a=Pd(t,e),o=qd(t,e),u=Pd(n,i),l=qd(n,i),c=Pd(r,s),f=qd(r,s);Wd(Cd,a,u,c,Nd);Wd(Fd,o,l,f,Ld);Td(c,f)},arc(t,e,n,i,r,s){i+=Sd;r+=Sd;Cd=n*Math.cos(r)+t;Fd=n*Math.sin(r)+e;if(Math.abs(r-i)>Md){Od(t-n,e-n);Od(t+n,e+n)}else{const a=i=>Od(n*Math.cos(i)+t,n*Math.sin(i)+e);let o,u;a(i);a(r);if(r!==i){i=i%uf;if(i<0)i+=uf;r=r%uf;if(r<0)r+=uf;if(rr;++u,o-=of)a(o)}else{o=i-i%of+of;for(u=0;u<4&&oaf){c=a*a+o*s;if(c>=0){c=Math.sqrt(c);u=(-a+c)/s;l=(-a-c)/s}}else{u=.5*o/a}if(0d)return false;else if(m>f)f=m}else if(h>0){if(m0){t.globalAlpha=n;t.fillStyle=sh(t,e,e.fill);return true}else{return false}}var oh=[];function uh(t,e,n){var i=(i=e.strokeWidth)!=null?i:1;if(i<=0)return false;n*=e.strokeOpacity==null?1:e.strokeOpacity;if(n>0){t.globalAlpha=n;t.strokeStyle=sh(t,e,e.stroke);t.lineWidth=i;t.lineCap=e.strokeCap||"butt";t.lineJoin=e.strokeJoin||"miter";t.miterLimit=e.strokeMiterLimit||10;if(t.setLineDash){t.setLineDash(e.strokeDash||oh);t.lineDashOffset=e.strokeDashOffset||0}return true}else{return false}}function lh(t,e){return t.zindex-e.zindex||t.index-e.index}function ch(t){if(!t.zdirty)return t.zitems;var e=t.items,n=[],i,r,s;for(r=0,s=e.length;r=0;){if(i=e(n[r]))return i}if(n===s){for(n=t.items,r=n.length;--r>=0;){if(!n[r].zindex){if(i=e(n[r]))return i}}}return null}function hh(t){return function(e,n,i){fh(n,(n=>{if(!i||i.intersects(n.bounds)){mh(t,e,n,n)}}))}}function ph(t){return function(e,n,i){if(n.items.length&&(!i||i.intersects(n.bounds))){mh(t,e,n.items[0],n.items)}}}function mh(t,e,n,i){var r=n.opacity==null?1:n.opacity;if(r===0)return;if(t(e,i))return;eh(e,n);if(n.fill&&ah(e,n,r)){e.fill()}if(n.stroke&&uh(e,n,r)){e.stroke()}}function gh(t){t=t||p.vN;return function(e,n,i,r,s,a){i*=e.pixelRatio;r*=e.pixelRatio;return dh(n,(n=>{const o=n.bounds;if(o&&!o.contains(s,a)||!o)return;if(t(e,n,i,r,s,a))return n}))}}function yh(t,e){return function(n,i,r,s){var a=Array.isArray(i)?i[0]:i,o=e==null?a.fill:e,u=a.stroke&&n.isPointInStroke,l,c;if(u){l=a.strokeWidth;c=a.strokeCap;n.lineWidth=l!=null?l:1;n.lineCap=c!=null?c:"butt"}return t(n,i)?false:o&&n.isPointInPath(r,s)||u&&n.isPointInStroke(r,s)}}function vh(t){return gh(yh(t))}function bh(t,e){return"translate("+t+","+e+")"}function xh(t){return"rotate("+t+")"}function _h(t,e){return"scale("+t+","+e+")"}function wh(t){return bh(t.x||0,t.y||0)}function Ah(t){return bh(t.x||0,t.y||0)+(t.angle?" "+xh(t.angle):"")}function kh(t){return bh(t.x||0,t.y||0)+(t.angle?" "+xh(t.angle):"")+(t.scaleX||t.scaleY?" "+_h(t.scaleX||1,t.scaleY||1):"")}function Eh(t,e,n){function i(t,n){t("transform",Ah(n));t("d",e(null,n))}function r(t,n){e(jd(t,n.angle),n);return kd(t,n).translate(n.x||0,n.y||0)}function s(t,n){var i=n.x||0,r=n.y||0,s=n.angle||0;t.translate(i,r);if(s)t.rotate(s*=sf);t.beginPath();e(t,n);if(s)t.rotate(-s);t.translate(-i,-r)}return{type:t,tag:"path",nested:false,attr:i,bound:r,draw:hh(s),pick:vh(s),isect:n||Qd(s)}}var Mh=Eh("arc",ud);function Dh(t,e){var n=t[0].orient==="horizontal"?e[1]:e[0],i=t[0].orient==="horizontal"?"y":"x",r=t.length,s=+Infinity,a,o;while(--r>=0){if(t[r].defined===false)continue;o=Math.abs(t[r][i]-n);if(o=0){if(t[i].defined===false)continue;r=t[i].x-e[0];s=t[i].y-e[1];a=r*r+s*s;if(a=0){if(t[n].defined===false)continue;i=t[n].x-e[0];r=t[n].y-e[1];s=i*i+r*r;i=t[n].size||1;if(s.5&&e<1.5?.5-Math.abs(e-1):0}function Oh(t,e){t("transform",wh(e))}function Th(t,e){const n=Rh(e);t("d",fd(null,e,n,n))}function Nh(t,e){t("class","background");t("aria-hidden",true);Th(t,e)}function Lh(t,e){t("class","foreground");t("aria-hidden",true);if(e.strokeForeground){Th(t,e)}else{t("d","")}}function Ph(t,e,n){const i=e.clip?yd(n,e,e):null;t("clip-path",i)}function qh(t,e){if(!e.clip&&e.items){const n=e.items,i=n.length;for(let e=0;e{const r=e.x||0,s=e.y||0,a=e.strokeForeground,o=e.opacity==null?1:e.opacity;if((e.stroke||e.fill)&&o){Ih(t,e,r,s);eh(t,e);if(e.fill&&ah(t,e,o)){t.fill()}if(e.stroke&&!a&&uh(t,e,o)){t.stroke()}}t.save();t.translate(r,s);if(e.clip)$h(t,e);if(n)n.translate(-r,-s);fh(e,(e=>{if(e.marktype==="group"||i==null||i.includes(e.marktype)){this.draw(t,e,n,i)}}));if(n)n.translate(r,s);t.restore();if(a&&e.stroke&&o){Ih(t,e,r,s);eh(t,e);if(uh(t,e,o)){t.stroke()}}}))}function Wh(t,e,n,i,r,s){if(e.bounds&&!e.bounds.contains(r,s)||!e.items){return null}const a=n*t.pixelRatio,o=i*t.pixelRatio;return dh(e,(u=>{let l,c,f;const d=u.bounds;if(d&&!d.contains(r,s))return;c=u.x||0;f=u.y||0;const h=c+(u.width||0),p=f+(u.height||0),m=u.clip;if(m&&(rh||sp))return;t.save();t.translate(c,f);c=r-c;f=s-f;if(m&&od(u)&&!Gh(t,u,a,o)){t.restore();return null}const g=u.strokeForeground,y=e.interactive!==false;if(y&&g&&u.stroke&&jh(t,u,a,o)){t.restore();return u}l=dh(u,(t=>Xh(t,c,f)?this.pick(t,n,i,c,f):null));if(!l&&y&&(u.fill||!g&&u.stroke)&&Uh(t,u,a,o)){l=u}t.restore();return l||null}))}function Xh(t,e,n){return(t.interactive!==false||t.marktype==="group")&&t.bounds&&t.bounds.contains(e,n)}var Hh={type:"group",tag:"g",nested:false,attr:Oh,bound:qh,draw:Yh,pick:Wh,isect:Zd,content:Ph,background:Nh,foreground:Lh};var Vh={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1"};function Qh(t,e){var n=t.image;if(!n||t.url&&t.url!==n.url){n={complete:false,width:0,height:0};e.loadImage(t.url).then((e=>{t.image=e;t.image.url=t.url}))}return n}function Kh(t,e){return t.width!=null?t.width:!e||!e.width?0:t.aspect!==false&&t.height?t.height*e.width/e.height:e.width}function Zh(t,e){return t.height!=null?t.height:!e||!e.height?0:t.aspect!==false&&t.width?t.width*e.height/e.width:e.height}function Jh(t,e){return t==="center"?e/2:t==="right"?e:0}function tp(t,e){return t==="middle"?e/2:t==="bottom"?e:0}function ep(t,e,n){const i=Qh(e,n),r=Kh(e,i),s=Zh(e,i),a=(e.x||0)-Jh(e.align,r),o=(e.y||0)-tp(e.baseline,s),u=!i.src&&i.toDataURL?i.toDataURL():i.src||"";t("href",u,Vh["xmlns:xlink"],"xlink:href");t("transform",bh(a,o));t("width",r);t("height",s);t("preserveAspectRatio",e.aspect===false?"none":"xMidYMid")}function np(t,e){const n=e.image,i=Kh(e,n),r=Zh(e,n),s=(e.x||0)-Jh(e.align,i),a=(e.y||0)-tp(e.baseline,r);return t.set(s,a,s+i,a+r)}function ip(t,e,n){fh(e,(e=>{if(n&&!n.intersects(e.bounds))return;const i=Qh(e,this);let r=Kh(e,i);let s=Zh(e,i);if(r===0||s===0)return;let a=(e.x||0)-Jh(e.align,r),o=(e.y||0)-tp(e.baseline,s),u,l,c,f;if(e.aspect!==false){l=i.width/i.height;c=e.width/e.height;if(l===l&&c===c&&l!==c){if(c{if(n&&!n.intersects(e.bounds))return;var i=e.opacity==null?1:e.opacity;if(i&&gp(t,e,i)){eh(t,e);t.stroke()}}))}function vp(t,e,n,i){if(!t.isPointInStroke)return false;return gp(t,e,1)&&t.isPointInStroke(n,i)}var bp={type:"rule",tag:"line",nested:false,attr:pp,bound:mp,draw:yp,pick:gh(vp),isect:Jd};var xp=Eh("shape",dd);var _p=Eh("symbol",hd,Kd);const wp=(0,p.EV)();var Ap={height:Fp,measureWidth:Dp,estimateWidth:Ep,width:Ep,canvas:kp};kp(true);function kp(t){Ap.width=t&&Hd?Dp:Ep}function Ep(t,e){return Mp(Rp(t,e),Fp(t))}function Mp(t,e){return~~(.8*t.length*e)}function Dp(t,e){return Fp(t)<=0||!(e=Rp(t,e))?0:Cp(e,Lp(t))}function Cp(t,e){const n=`(${e}) ${t}`;let i=wp.get(n);if(i===undefined){Hd.font=e;i=Hd.measureText(t).width;wp.set(n,i)}return i}function Fp(t){return t.fontSize!=null?+t.fontSize||0:11}function Sp(t){return t.lineHeight!=null?t.lineHeight:Fp(t)+2}function zp(t){return(0,p.cy)(t)?t.length>1?t:t[0]:t}function Bp(t){return zp(t.lineBreak&&t.text&&!(0,p.cy)(t.text)?t.text.split(t.lineBreak):t.text)}function $p(t){const e=Bp(t);return((0,p.cy)(e)?e.length-1:0)*Sp(t)}function Rp(t,e){const n=e==null?"":(e+"").trim();return t.limit>0&&n.length?Tp(t,n):n}function Op(t){if(Ap.width===Dp){const e=Lp(t);return t=>Cp(t,e)}else if(Ap.width===Ep){const e=Fp(t);return t=>Mp(t,e)}else{return e=>Ap.width(t,e)}}function Tp(t,e){var n=+t.limit,i=Op(t);if(i(e)>>1;if(i(e.slice(u))>n)a=u+1;else o=u}return r+e.slice(a)}else{while(a>>1);if(i(e.slice(0,u))Math.max(t,Ap.width(e,n))),0)}else{f=Ap.width(e,c)}if(r==="center"){u-=f/2}else if(r==="right"){u-=f}else;t.set(u+=a,l+=o,u+f,l+i);if(e.angle&&!n){t.rotate(e.angle*sf,a,o)}else if(n===2){return t.rotatedPoints(e.angle*sf,a,o)}return t}function Yp(t,e,n){fh(e,(e=>{var i=e.opacity==null?1:e.opacity,r,s,a,o,u,l,c;if(n&&!n.intersects(e.bounds)||i===0||e.fontSize<=0||e.text==null||e.text.length===0)return;t.font=Lp(e);t.textAlign=e.align||"left";r=Up(e);s=r.x1,a=r.y1;if(e.angle){t.save();t.translate(s,a);t.rotate(e.angle*sf);s=a=0}s+=e.dx||0;a+=(e.dy||0)+Pp(e);l=Bp(e);eh(t,e);if((0,p.cy)(l)){u=Sp(e);for(o=0;oe)t.removeChild(n[--i]);return t}function cm(t){return"mark-"+t.marktype+(t.role?" role-"+t.role:"")+(t.name?" "+t.name:"")}function fm(t,e){const n=e.getBoundingClientRect();return[t.clientX-n.left-(e.clientLeft||0),t.clientY-n.top-(e.clientTop||0)]}function dm(t,e,n,i){var r=t&&t.mark,s,a;if(r&&(s=Qp[r.marktype]).tip){a=fm(e,n);a[0]-=i[0];a[1]-=i[1];while(t=t.mark.group){a[0]-=t.x||0;a[1]-=t.y||0}t=s.tip(r.items,a)}return t}class hm{constructor(t,e){this._active=null;this._handlers={};this._loader=t||fn();this._tooltip=e||pm}initialize(t,e,n){this._el=t;this._obj=n||null;return this.origin(e)}element(){return this._el}canvas(){return this._el&&this._el.firstChild}origin(t){if(arguments.length){this._origin=t||[0,0];return this}else{return this._origin.slice()}}scene(t){if(!arguments.length)return this._scene;this._scene=t;return this}on(){}off(){}_handlerIndex(t,e,n){for(let i=t?t.length:0;--i>=0;){if(t[i].type===e&&(!n||t[i].handler===n)){return i}}return-1}handlers(t){const e=this._handlers,n=[];if(t){n.push(...e[this.eventName(t)])}else{for(const t in e){n.push(...e[t])}}return n}eventName(t){const e=t.indexOf(".");return e<0?t:t.slice(0,e)}handleHref(t,e,n){this._loader.sanitize(n,{context:"href"}).then((e=>{const n=new MouseEvent(t.type,t),i=am(null,"a");for(const t in e)i.setAttribute(t,e[t]);i.dispatchEvent(n)})).catch((()=>{}))}handleTooltip(t,e,n){if(e&&e.tooltip!=null){e=dm(e,t,this.canvas(),this._origin);const i=n&&e&&e.tooltip||null;this._tooltip.call(this._obj,this,t,e,i)}}getItemBoundingClientRect(t){const e=this.canvas();if(!e)return;const n=e.getBoundingClientRect(),i=this._origin,r=t.bounds,s=r.width(),a=r.height();let o=r.x1+i[0]+n.left,u=r.y1+i[1]+n.top;while(t.mark&&(t=t.mark.group)){o+=t.x||0;u+=t.y||0}return{x:o,y:u,width:s,height:a,left:o,top:u,right:o+s,bottom:u+a}}}function pm(t,e,n,i){t.element().setAttribute("title",i||"")}class mm{constructor(t){this._el=null;this._bgcolor=null;this._loader=new _d(t)}initialize(t,e,n,i,r){this._el=t;return this.resize(e,n,i,r)}element(){return this._el}canvas(){return this._el&&this._el.firstChild}background(t){if(arguments.length===0)return this._bgcolor;this._bgcolor=t;return this}resize(t,e,n,i){this._width=t;this._height=e;this._origin=n||[0,0];this._scale=i||1;return this}dirty(){}render(t,e){const n=this;n._call=function(){n._render(t,e)};n._call();n._call=null;return n}_render(){}renderAsync(t,e){const n=this.render(t,e);return this._ready?this._ready.then((()=>n)):Promise.resolve(n)}_load(t,e){var n=this,i=n._loader[t](e);if(!n._ready){const t=n._call;n._ready=n._loader.ready().then((e=>{if(e)t();n._ready=null}))}return i}sanitizeURL(t){return this._load("sanitizeURL",t)}loadImage(t){return this._load("loadImage",t)}}const gm="keydown";const ym="keypress";const vm="keyup";const bm="dragenter";const xm="dragleave";const _m="dragover";const wm="pointerdown";const Am="pointerup";const km="pointermove";const Em="pointerout";const Mm="pointerover";const Dm="mousedown";const Cm="mouseup";const Fm="mousemove";const Sm="mouseout";const zm="mouseover";const Bm="click";const $m="dblclick";const Rm="wheel";const Om="mousewheel";const Tm="touchstart";const Nm="touchmove";const Lm="touchend";const Pm=[gm,ym,vm,bm,xm,_m,wm,Am,km,Em,Mm,Dm,Cm,Fm,Sm,zm,Bm,$m,Rm,Om,Tm,Nm,Lm];const qm=km;const Im=Sm;const Um=Bm;class jm extends hm{constructor(t,e){super(t,e);this._down=null;this._touch=null;this._first=true;this._events={};this.events=Pm;this.pointermove=Hm([km,Fm],[Mm,zm],[Em,Sm]);this.dragover=Hm([_m],[bm],[xm]),this.pointerout=Vm([Em,Sm]);this.dragleave=Vm([xm])}initialize(t,e,n){this._canvas=t&&om(t,"canvas");[Bm,Dm,wm,km,Em,xm].forEach((t=>Ym(this,t)));return super.initialize(t,e,n)}canvas(){return this._canvas}context(){return this._canvas.getContext("2d")}DOMMouseScroll(t){this.fire(Om,t)}pointerdown(t){this._down=this._active;this.fire(wm,t)}mousedown(t){this._down=this._active;this.fire(Dm,t)}click(t){if(this._down===this._active){this.fire(Bm,t);this._down=null}}touchstart(t){this._touch=this.pickEvent(t.changedTouches[0]);if(this._first){this._active=this._touch;this._first=false}this.fire(Tm,t,true)}touchmove(t){this.fire(Nm,t,true)}touchend(t){this.fire(Lm,t,true);this._touch=null}fire(t,e,n){const i=n?this._touch:this._active,r=this._handlers[t];e.vegaType=t;if(t===Um&&i&&i.href){this.handleHref(e,i,i.href)}else if(t===qm||t===Im){this.handleTooltip(e,i,t!==Im)}if(r){for(let t=0,n=r.length;t=0){i.splice(r,1)}return this}pickEvent(t){const e=fm(t,this._canvas),n=this._origin;return this.pick(this._scene,e[0],e[1],e[0]-n[0],e[1]-n[1])}pick(t,e,n,i,r){const s=this.context(),a=Qp[t.marktype];return a.pick.call(this,s,t,e,n,i,r)}}const Gm=t=>t===Tm||t===Nm||t===Lm?[Tm,Nm,Lm]:[t];function Ym(t,e){Gm(e).forEach((e=>Wm(t,e)))}function Wm(t,e){const n=t.canvas();if(n&&!t._events[e]){t._events[e]=1;n.addEventListener(e,t[e]?n=>t[e](n):n=>t.fire(e,n))}}function Xm(t,e,n){e.forEach((e=>t.fire(e,n)))}function Hm(t,e,n){return function(i){const r=this._active,s=this.pickEvent(i);if(s===r){Xm(this,t,i)}else{if(!r||!r.exit){Xm(this,n,i)}this._active=s;Xm(this,e,i);Xm(this,t,i)}}}function Vm(t){return function(e){Xm(this,t,e);this._active=null}}function Qm(){return typeof window!=="undefined"?window.devicePixelRatio||1:1}function Km(t,e,n,i,r,s){const a=typeof HTMLElement!=="undefined"&&t instanceof HTMLElement&&t.parentNode!=null,o=t.getContext("2d"),u=a?Qm():r;t.width=e*u;t.height=n*u;for(const l in s){o[l]=s[l]}if(a&&u!==1){t.style.width=e+"px";t.style.height=n+"px"}o.pixelRatio=u;o.setTransform(u,0,0,u,u*i[0],u*i[1]);return t}class Zm extends mm{constructor(t){super(t);this._options={};this._redraw=false;this._dirty=new vd;this._tempb=new vd}initialize(t,e,n,i,r,s){this._options=s||{};this._canvas=this._options.externalContext?null:Ko(1,1,this._options.type);if(t&&this._canvas){lm(t,0).appendChild(this._canvas);this._canvas.setAttribute("class","marks")}return super.initialize(t,e,n,i,r)}resize(t,e,n,i){super.resize(t,e,n,i);if(this._canvas){Km(this._canvas,this._width,this._height,this._origin,this._scale,this._options.context)}else{const t=this._options.externalContext;if(!t)(0,p.z3)("CanvasRenderer is missing a valid canvas or context");t.scale(this._scale,this._scale);t.translate(this._origin[0],this._origin[1])}this._redraw=true;return this}canvas(){return this._canvas}context(){return this._options.externalContext||(this._canvas?this._canvas.getContext("2d"):null)}dirty(t){const e=this._tempb.clear().union(t.bounds);let n=t.mark.group;while(n){e.translate(n.x||0,n.y||0);n=n.mark.group}this._dirty.union(e)}_render(t,e){const n=this.context(),i=this._origin,r=this._width,s=this._height,a=this._dirty,o=Jm(i,r,s);n.save();const u=this._redraw||a.empty()?(this._redraw=false,o.expand(1)):tg(n,o.intersect(a),i);this.clear(-i[0],-i[1],r,s);this.draw(n,t,u,e);n.restore();a.clear();return this}draw(t,e,n,i){if(e.marktype!=="group"&&i!=null&&!i.includes(e.marktype)){return}const r=Qp[e.marktype];if(e.clip)Bh(t,e);r.draw.call(this,t,e,n,i);if(e.clip)t.restore()}clear(t,e,n,i){const r=this._options,s=this.context();if(r.type!=="pdf"&&!r.externalContext){s.clearRect(t,e,n,i)}if(this._bgcolor!=null){s.fillStyle=this._bgcolor;s.fillRect(t,e,n,i)}}}const Jm=(t,e,n)=>(new vd).set(0,0,e,n).translate(-t[0],-t[1]);function tg(t,e,n){e.expand(1).round();if(t.pixelRatio%1){e.scale(t.pixelRatio).round().scale(1/t.pixelRatio)}e.translate(-(n[0]%1),-(n[1]%1));t.beginPath();t.rect(e.x1,e.y1,e.width(),e.height());t.clip();return e}class eg extends hm{constructor(t,e){super(t,e);const n=this;n._hrefHandler=ng(n,((t,e)=>{if(e&&e.href)n.handleHref(t,e,e.href)}));n._tooltipHandler=ng(n,((t,e)=>{n.handleTooltip(t,e,t.type!==Im)}))}initialize(t,e,n){let i=this._svg;if(i){i.removeEventListener(Um,this._hrefHandler);i.removeEventListener(qm,this._tooltipHandler);i.removeEventListener(Im,this._tooltipHandler)}this._svg=i=t&&om(t,"svg");if(i){i.addEventListener(Um,this._hrefHandler);i.addEventListener(qm,this._tooltipHandler);i.addEventListener(Im,this._tooltipHandler)}return super.initialize(t,e,n)}canvas(){return this._svg}on(t,e){const n=this.eventName(t),i=this._handlers,r=this._handlerIndex(i[n],t,e);if(r<0){const r={type:t,handler:e,listener:ng(this,e)};(i[n]||(i[n]=[])).push(r);if(this._svg){this._svg.addEventListener(n,r.listener)}}return this}off(t,e){const n=this.eventName(t),i=this._handlers[n],r=this._handlerIndex(i,t,e);if(r>=0){if(this._svg){this._svg.removeEventListener(n,i[r].listener)}i.splice(r,1)}return this}}const ng=(t,e)=>n=>{let i=n.target.__data__;i=Array.isArray(i)?i[0]:i;n.vegaType=n.type;e.call(t._obj,n,i)};const ig="aria-hidden";const rg="aria-label";const sg="role";const ag="aria-roledescription";const og="graphics-object";const ug="graphics-symbol";const lg=(t,e,n)=>({[sg]:t,[ag]:e,[rg]:n||undefined});const cg=(0,p.M1)(["axis-domain","axis-grid","axis-label","axis-tick","axis-title","legend-band","legend-entry","legend-gradient","legend-label","legend-title","legend-symbol","title"]);const fg={axis:{desc:"axis",caption:vg},legend:{desc:"legend",caption:bg},"title-text":{desc:"title",caption:t=>`Title text '${yg(t)}'`},"title-subtitle":{desc:"subtitle",caption:t=>`Subtitle text '${yg(t)}'`}};const dg={ariaRole:sg,ariaRoleDescription:ag,description:rg};function hg(t,e){const n=e.aria===false;t(ig,n||undefined);if(n||e.description==null){for(const e in dg){t(dg[e],undefined)}}else{const n=e.mark.marktype;t(rg,e.description);t(sg,e.ariaRole||(n==="group"?og:ug));t(ag,e.ariaRoleDescription||`${n} mark`)}}function pg(t){return t.aria===false?{[ig]:true}:cg[t.role]?null:fg[t.role]?gg(t,fg[t.role]):mg(t)}function mg(t){const e=t.marktype;const n=e==="group"||e==="text"||t.items.some((t=>t.description!=null&&t.aria!==false));return lg(n?og:ug,`${e} mark container`,t.description)}function gg(t,e){try{const n=t.items[0],i=e.caption||(()=>"");return lg(e.role||ug,e.desc,n.description||i(n))}catch(n){return null}}function yg(t){return(0,p.YO)(t.text).join(" ")}function vg(t){const e=t.datum,n=t.orient,i=e.title?xg(t):null,r=t.context,s=r.scales[e.scale].value,a=r.dataflow.locale(),o=s.type,u=n==="left"||n==="right"?"Y":"X";return`${u}-axis`+(i?` titled '${i}'`:"")+` for a ${Vl(o)?"discrete":o} scale`+` with ${Ic(a,s,t)}`}function bg(t){const e=t.datum,n=e.title?xg(t):null,i=`${e.type||""} legend`.trim(),r=e.scales,s=Object.keys(r),a=t.context,o=a.scales[r[s[0]]].value,u=a.dataflow.locale();return wg(i)+(n?` titled '${n}'`:"")+` for ${_g(s)}`+` with ${Ic(u,o,t)}`}function xg(t){try{return(0,p.YO)((0,p.se)(t.items).items[0].text).join(" ")}catch(e){return null}}function _g(t){t=t.map((t=>t+(t==="fill"||t==="stroke"?" color":"")));return t.length<2?t[0]:t.slice(0,-1).join(", ")+" and "+(0,p.se)(t)}function wg(t){return t.length?t[0].toUpperCase()+t.slice(1):t}const Ag=t=>(t+"").replace(/&/g,"&").replace(//g,">");const kg=t=>Ag(t).replace(/"/g,""").replace(/\t/g," ").replace(/\n/g," ").replace(/\r/g," ");function Eg(){let t="",e="",n="";const i=[],r=()=>e=n="",s=s=>{if(e){t+=`${e}>${n}`;r()}i.push(s)},a=(t,n)=>{if(n!=null)e+=` ${t}="${kg(n)}"`;return o},o={open(t){s(t);e="<"+t;for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r${n}`:"/>")}else{t+=``}r();return o},attr:a,text:t=>(n+=Ag(t),o),toString:()=>t};return o}const Mg=t=>Dg(Eg(),t)+"";function Dg(t,e){t.open(e.tagName);if(e.hasAttributes()){const n=e.attributes,i=n.length;for(let e=0;e{t.dirty=e}))}if(i.zdirty)continue;if(n.exit){if(s.nested&&i.items.length){u=i.items[0];if(u._svg)this._update(s,u._svg,u)}else if(n._svg){u=n._svg.parentNode;if(u)u.removeChild(n._svg)}n._svg=null;continue}n=s.nested?i.items[0]:n;if(n._update===e)continue;if(!n._svg||!n._svg.ownerSVGElement){this._dirtyAll=false;Og(n,e)}else{this._update(s,n._svg,n)}n._update=e}return!this._dirtyAll}mark(t,e,n,i){if(!this.isDirty(e)){return e._svg}const r=this._svg,s=e.marktype,a=Qp[s],o=e.interactive===false?"none":null,u=a.tag==="g";const l=Pg(e,t,n,"g",r);if(s!=="group"&&i!=null&&!i.includes(s)){lm(l,0);return e._svg}l.setAttribute("class",cm(e));const c=pg(e);for(const p in c)Xg(l,p,c[p]);if(!u){Xg(l,"pointer-events",o)}Xg(l,"clip-path",e.clip?yd(this,e,e.group):null);let f=null,d=0;const h=t=>{const e=this.isDirty(t),n=Pg(t,l,f,a.tag,r);if(e){this._update(a,n,t);if(u)Lg(this,n,t,i)}f=n;++d};if(a.nested){if(e.items.length)h(e.items[0])}else{fh(e,h)}lm(l,d);return l}_update(t,e,n){Ig=e;Ug=e.__values__;hg(Gg,n);t.attr(Gg,n,this);const i=jg[t.type];if(i)i.call(this,t,e,n);if(Ig)this.style(Ig,n)}style(t,e){if(e==null)return;for(const n in Cg){let i=n==="font"?Np(e):e[n];if(i===Ug[n])continue;const r=Cg[n];if(i==null){t.removeAttribute(r)}else{if(Yc(i)){i=Wc(i,this._defs.gradient,Vg())}t.setAttribute(r,i+"")}Ug[n]=i}for(const n in Fg){Yg(t,Fg[n],e[n])}}defs(){const t=this._svg,e=this._defs;let n=e.el,i=0;for(const r in e.gradient){if(!n)e.el=n=um(t,zg+1,"defs",$g);i=Tg(n,e.gradient[r],i)}for(const r in e.clipping){if(!n)e.el=n=um(t,zg+1,"defs",$g);i=Ng(n,e.clipping[r],i)}if(n){i===0?(t.removeChild(n),e.el=null):lm(n,i)}}_clearDefs(){const t=this._defs;t.gradient={};t.clipping={}}}function Og(t,e){for(;t&&t.dirty!==e;t=t.mark.group){t.dirty=e;if(t.mark&&t.mark.dirty!==e){t.mark.dirty=e}else return}}function Tg(t,e,n){let i,r,s;if(e.gradient==="radial"){let i=um(t,n++,"pattern",$g);Wg(i,{id:Gc+e.id,viewBox:"0,0,1,1",width:"100%",height:"100%",preserveAspectRatio:"xMidYMid slice"});i=um(i,0,"rect",$g);Wg(i,{width:1,height:1,fill:`url(${Vg()}#${e.id})`});t=um(t,n++,"radialGradient",$g);Wg(t,{id:e.id,fx:e.x1,fy:e.y1,fr:e.r1,cx:e.x2,cy:e.y2,r:e.r2})}else{t=um(t,n++,"linearGradient",$g);Wg(t,{id:e.id,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2})}for(i=0,r=e.stops.length;i{r=t.mark(e,n,r,i);++s}));lm(e,1+s)}function Pg(t,e,n,i,r){let s=t._svg,a;if(!s){a=e.ownerDocument;s=am(a,i,$g);t._svg=s;if(t.mark){s.__data__=t;s.__values__={fill:"default"};if(i==="g"){const e=am(a,"path",$g);s.appendChild(e);e.__data__=t;const n=am(a,"g",$g);s.appendChild(n);n.__data__=t;const i=am(a,"path",$g);s.appendChild(i);i.__data__=t;i.__values__={fill:"default"}}}}if(s.ownerSVGElement!==r||qg(s,n)){e.insertBefore(s,n?n.nextSibling:e.firstChild)}return s}function qg(t,e){return t.parentNode&&t.parentNode.childNodes.length>1&&t.previousSibling!=e}let Ig=null,Ug=null;const jg={group(t,e,n){const i=Ig=e.childNodes[2];Ug=i.__values__;t.foreground(Gg,n,this);Ug=e.__values__;Ig=e.childNodes[1];t.content(Gg,n,this);const r=Ig=e.childNodes[0];t.background(Gg,n,this);const s=n.mark.interactive===false?"none":null;if(s!==Ug.events){Xg(i,"pointer-events",s);Xg(r,"pointer-events",s);Ug.events=s}if(n.strokeForeground&&n.stroke){const t=n.fill;Xg(i,"display",null);this.style(r,n);Xg(r,"stroke",null);if(t)n.fill=null;Ug=i.__values__;this.style(i,n);if(t)n.fill=t;Ig=null}else{Xg(i,"display","none")}},image(t,e,n){if(n.smooth===false){Yg(e,"image-rendering","optimizeSpeed");Yg(e,"image-rendering","pixelated")}else{Yg(e,"image-rendering",null)}},text(t,e,n){const i=Bp(n);let r,s,a,o;if((0,p.cy)(i)){s=i.map((t=>Rp(n,t)));r=s.join("\n");if(r!==Ug.text){lm(e,0);a=e.ownerDocument;o=Sp(n);s.forEach(((t,i)=>{const r=am(a,"tspan",$g);r.__data__=n;r.textContent=t;if(i){r.setAttribute("x",0);r.setAttribute("dy",o)}e.appendChild(r)}));Ug.text=r}}else{s=Rp(n,i);if(s!==Ug.text){e.textContent=s;Ug.text=s}}Xg(e,"font-family",Np(n));Xg(e,"font-size",Fp(n)+"px");Xg(e,"font-style",n.fontStyle);Xg(e,"font-variant",n.fontVariant);Xg(e,"font-weight",n.fontWeight)}};function Gg(t,e,n){if(e===Ug[t])return;if(n){Hg(Ig,t,e,n)}else{Xg(Ig,t,e)}Ug[t]=e}function Yg(t,e,n){if(n!==Ug[e]){if(n==null){t.style.removeProperty(e)}else{t.style.setProperty(e,n+"")}Ug[e]=n}}function Wg(t,e){for(const n in e){Xg(t,n,e[n])}}function Xg(t,e,n){if(n!=null){t.setAttribute(e,n)}else{t.removeAttribute(e)}}function Hg(t,e,n,i){if(n!=null){t.setAttributeNS(i,e,n)}else{t.removeAttributeNS(i,e)}}function Vg(){let t;return typeof window==="undefined"?"":(t=window.location).hash?t.href.slice(0,-t.hash.length):t.href}class Qg extends mm{constructor(t){super(t);this._text=null;this._defs={gradient:{},clipping:{}}}svg(){return this._text}_render(t){const e=Eg();e.open("svg",(0,p.X$)({},Vh,{class:"marks",width:this._width*this._scale,height:this._height*this._scale,viewBox:`0 0 ${this._width} ${this._height}`}));const n=this._bgcolor;if(n&&n!=="transparent"&&n!=="none"){e.open("rect",{width:this._width,height:this._height,fill:n}).close()}e.open("g",Sg,{transform:"translate("+this._origin+")"});this.mark(e,t);e.close();this.defs(e);this._text=e.close()+"";return this}mark(t,e){const n=Qp[e.marktype],i=n.tag,r=[hg,n.attr];t.open("g",{class:cm(e),"clip-path":e.clip?yd(this,e,e.group):null},pg(e),{"pointer-events":i!=="g"&&e.interactive===false?"none":null});const s=s=>{const a=this.href(s);if(a)t.open("a",a);t.open(i,this.attr(e,s,r,i!=="g"?i:null));if(i==="text"){const e=Bp(s);if((0,p.cy)(e)){const n={x:0,dy:Sp(s)};for(let i=0;ithis.mark(t,e)));t.close();if(i&&a){if(r)s.fill=null;s.stroke=a;t.open("path",this.attr(e,s,n.foreground,"bgrect")).close();if(r)s.fill=r}else{t.open("path",this.attr(e,s,n.foreground,"bgfore")).close()}}t.close();if(a)t.close()};if(n.nested){if(e.items&&e.items.length)s(e.items[0])}else{fh(e,s)}return t.close()}href(t){const e=t.href;let n;if(e){if(n=this._hrefs&&this._hrefs[e]){return n}else{this.sanitizeURL(e).then((t=>{t["xlink:href"]=t.href;t.href=null;(this._hrefs||(this._hrefs={}))[e]=t}))}}return null}attr(t,e,n,i){const r={},s=(t,e,n,i)=>{r[i||t]=e};if(Array.isArray(n)){n.forEach((t=>t(s,e,this)))}else{n(s,e,this)}if(i){Kg(r,e,t,i,this._defs)}return r}defs(t){const e=this._defs.gradient,n=this._defs.clipping,i=Object.keys(e).length+Object.keys(n).length;if(i===0)return;t.open("defs");for(const r in e){const n=e[r],i=n.stops;if(n.gradient==="radial"){t.open("pattern",{id:Gc+r,viewBox:"0,0,1,1",width:"100%",height:"100%",preserveAspectRatio:"xMidYMid slice"});t.open("rect",{width:"1",height:"1",fill:"url(#"+r+")"}).close();t.close();t.open("radialGradient",{id:r,fx:n.x1,fy:n.y1,fr:n.r1,cx:n.x2,cy:n.y2,r:n.r2})}else{t.open("linearGradient",{id:r,x1:n.x1,x2:n.x2,y1:n.y1,y2:n.y2})}for(let e=0;e!Zg.svgMarkTypes.includes(t)));this._svgRenderer.render(t,Zg.svgMarkTypes);this._canvasRenderer.render(t,i)}resize(t,e,n,i){super.resize(t,e,n,i);this._svgRenderer.resize(t,e,n,i);this._canvasRenderer.resize(t,e,n,i);return this}background(t){if(Zg.svgOnTop){this._canvasRenderer.background(t)}else{this._svgRenderer.background(t)}return this}}class ey extends jm{constructor(t,e){super(t,e)}initialize(t,e,n){const i=um(um(t,0,"div"),Zg.svgOnTop?0:1,"div");return super.initialize(i,e,n)}}const ny="canvas";const iy="hybrid";const ry="png";const sy="svg";const ay="none";const oy={Canvas:ny,PNG:ry,SVG:sy,Hybrid:iy,None:ay};const uy={};uy[ny]=uy[ry]={renderer:Zm,headless:Zm,handler:jm};uy[sy]={renderer:Rg,headless:Qg,handler:eg};uy[iy]={renderer:ty,headless:ty,handler:ey};uy[ay]={};function ly(t,e){t=String(t||"").toLowerCase();if(arguments.length>1){uy[t]=e;return this}else{return uy[t]}}function cy(t,e,n){const i=[],r=(new vd).union(e),s=t.marktype;return s?fy(t,r,n,i):s==="group"?hy(t,r,n,i):(0,p.z3)("Intersect scene must be mark node or group item.")}function fy(t,e,n,i){if(dy(t,e,n)){const r=t.items,s=t.marktype,a=r.length;let o=0;if(s==="group"){for(;o=0;s--){if(n[s]!=i[s])return false}for(s=n.length-1;s>=0;s--){r=n[s];if(!vy(t[r],e[r],r))return false}return typeof t===typeof e}function _y(){gd();jc()}const wy="top";const Ay="left";const ky="right";const Ey="bottom";const My="top-left";const Dy="top-right";const Cy="bottom-left";const Fy="bottom-right";const Sy="start";const zy="middle";const By="end";const $y="x";const Ry="y";const Oy="group";const Ty="axis";const Ny="title";const Ly="frame";const Py="scope";const qy="legend";const Iy="row-header";const Uy="row-footer";const jy="row-title";const Gy="column-header";const Yy="column-footer";const Wy="column-title";const Xy="padding";const Hy="symbol";const Vy="fit";const Qy="fit-x";const Ky="fit-y";const Zy="pad";const Jy="none";const tv="all";const ev="each";const nv="flush";const iv="column";const rv="row";function sv(t){Bi.call(this,null,t)}(0,p.B)(sv,Bi,{transform(t,e){const n=e.dataflow,i=t.mark,r=i.marktype,s=Qp[r],a=s.bound;let o=i.bounds,u;if(s.nested){if(i.items.length)n.dirty(i.items[0]);o=av(i,a);i.items.forEach((t=>{t.bounds.clear().union(o)}))}else if(r===Oy||t.modified()){e.visit(e.MOD,(t=>n.dirty(t)));o.clear();i.items.forEach((t=>o.union(av(t,a))));switch(i.role){case Ty:case qy:case Ny:e.reflow()}}else{u=e.changed(e.REM);e.visit(e.ADD,(t=>{o.union(av(t,a))}));e.visit(e.MOD,(t=>{u=u||o.alignsWith(t.bounds);n.dirty(t);o.union(av(t,a))}));if(u){o.clear();i.items.forEach((t=>o.union(t.bounds)))}}gy(i);return e.modifies("bounds")}});function av(t,e,n){return e(t.bounds.clear(),t,n)}const ov=":vega_identifier:";function uv(t){Bi.call(this,0,t)}uv.Definition={type:"Identifier",metadata:{modifies:true},params:[{name:"as",type:"string",required:true}]};(0,p.B)(uv,Bi,{transform(t,e){const n=lv(e.dataflow),i=t.as;let r=n.value;e.visit(e.ADD,(t=>t[i]=t[i]||++r));n.set(this.value=r);return e}});function lv(t){return t._signals[ov]||(t._signals[ov]=t.add(0))}function cv(t){Bi.call(this,null,t)}(0,p.B)(cv,Bi,{transform(t,e){let n=this.value;if(!n){n=e.dataflow.scenegraph().mark(t.markdef,fv(t),t.index);n.group.context=t.context;if(!t.context.group)t.context.group=n.group;n.source=this.source;n.clip=t.clip;n.interactive=t.interactive;this.value=n}const i=n.marktype===Oy?xd:bd;e.visit(e.ADD,(t=>i.call(t,n)));if(t.modified("clip")||t.modified("interactive")){n.clip=t.clip;n.interactive=!!t.interactive;n.zdirty=true;e.reflow()}n.items=e.source;return e}});function fv(t){const e=t.groups,n=t.parent;return e&&e.size===1?e.get(Object.keys(e.object)[0]):e&&n?e.lookup(n):null}function dv(t){Bi.call(this,null,t)}const hv={parity:t=>t.filter(((t,e)=>e%2?t.opacity=0:1)),greedy:(t,e)=>{let n;return t.filter(((t,i)=>!i||!pv(n.bounds,t.bounds,e)?(n=t,1):t.opacity=0))}};const pv=(t,e,n)=>n>Math.max(e.x1-t.x2,t.x1-e.x2,e.y1-t.y2,t.y1-e.y2);const mv=(t,e)=>{for(var n=1,i=t.length,r=t[0].bounds,s;n{const e=t.bounds;return e.width()>1&&e.height()>1};const yv=(t,e,n)=>{var i=t.range(),r=new vd;if(e===wy||e===Ey){r.set(i[0],-Infinity,i[1],+Infinity)}else{r.set(-Infinity,i[0],+Infinity,i[1])}r.expand(n||1);return t=>r.encloses(t.bounds)};const vv=t=>{t.forEach((t=>t.opacity=1));return t};const bv=(t,e)=>t.reflow(e.modified()).modifies("opacity");(0,p.B)(dv,Bi,{transform(t,e){const n=hv[t.method]||hv.parity,i=t.separation||0;let r=e.materialize(e.SOURCE).source,s,a;if(!r||!r.length)return;if(!t.method){if(t.modified("method")){vv(r);e=bv(e,t)}return e}r=r.filter(gv);if(!r.length)return;if(t.sort){r=r.slice().sort(t.sort)}s=vv(r);e=bv(e,t);if(s.length>=3&&mv(s,i)){do{s=n(s,i)}while(s.length>=3&&mv(s,i));if(s.length<3&&!(0,p.se)(r).opacity){if(s.length>1)(0,p.se)(s).opacity=0;(0,p.se)(r).opacity=1}}if(t.boundScale&&t.boundTolerance>=0){a=yv(t.boundScale,t.boundOrient,+t.boundTolerance);r.forEach((t=>{if(!a(t))t.opacity=0}))}const o=s[0].mark.bounds.clear();r.forEach((t=>{if(t.opacity)o.union(t.bounds)}));return e}});function xv(t){Bi.call(this,null,t)}(0,p.B)(xv,Bi,{transform(t,e){const n=e.dataflow;e.visit(e.ALL,(t=>n.dirty(t)));if(e.fields&&e.fields["zindex"]){const t=e.source&&e.source[0];if(t)t.mark.zdirty=true}}});const _v=new vd;function wv(t,e,n){return t[e]===n?0:(t[e]=n,1)}function Av(t){var e=t.items[0].orient;return e===Ay||e===ky}function kv(t){let e=+t.grid;return[t.ticks?e++:-1,t.labels?e++:-1,e+ +t.domain]}function Ev(t,e,n,i){var r=e.items[0],s=r.datum,a=r.translate!=null?r.translate:.5,o=r.orient,u=kv(s),l=r.range,c=r.offset,f=r.position,d=r.minExtent,h=r.maxExtent,p=s.title&&r.items[u[2]].items[0],m=r.titlePadding,g=r.bounds,y=p&&$p(p),v=0,b=0,x,_;_v.clear().union(g);g.clear();if((x=u[0])>-1)g.union(r.items[x].bounds);if((x=u[1])>-1)g.union(r.items[x].bounds);switch(o){case wy:v=f||0;b=-c;_=Math.max(d,Math.min(h,-g.y1));g.add(0,-_).add(l,0);if(p)Mv(t,p,_,m,y,0,-1,g);break;case Ay:v=-c;b=f||0;_=Math.max(d,Math.min(h,-g.x1));g.add(-_,0).add(0,l);if(p)Mv(t,p,_,m,y,1,-1,g);break;case ky:v=n+c;b=f||0;_=Math.max(d,Math.min(h,g.x2));g.add(0,0).add(_,l);if(p)Mv(t,p,_,m,y,1,1,g);break;case Ey:v=f||0;b=i+c;_=Math.max(d,Math.min(h,g.y2));g.add(0,0).add(l,_);if(p)Mv(t,p,_,m,0,0,1,g);break;default:v=r.x;b=r.y}kd(g.translate(v,b),r);if(wv(r,"x",v+a)|wv(r,"y",b+a)){r.bounds=_v;t.dirty(r);r.bounds=g;t.dirty(r)}return r.mark.bounds.clear().union(g)}function Mv(t,e,n,i,r,s,a,o){const u=e.bounds;if(e.auto){const o=a*(n+r+i);let l=0,c=0;t.dirty(e);s?l=(e.x||0)-(e.x=o):c=(e.y||0)-(e.y=o);e.mark.bounds.clear().union(u.translate(-l,-c));t.dirty(e)}o.union(u)}const Dv=(t,e)=>Math.floor(Math.min(t,e));const Cv=(t,e)=>Math.ceil(Math.max(t,e));function Fv(t){var e=t.items,n=e.length,i=0,r,s;const a={marks:[],rowheaders:[],rowfooters:[],colheaders:[],colfooters:[],rowtitle:null,coltitle:null};for(;i1){for(A=0;A0)b[A]+=S/2}}if(o&&Bv(n.center,rv)&&c!==1){for(A=0;A0)x[A]+=z/2}}for(A=0;Ar){t.warn("Grid headers exceed limit: "+r);e=e.slice(0,r)}m+=s;for(v=0,x=e.length;v=0&&(A=n[b])==null;b-=d);if(o){k=h==null?A.x:Math.round(A.bounds.x1+h*A.bounds.width());E=m}else{k=m;E=h==null?A.y:Math.round(A.bounds.y1+h*A.bounds.height())}_.union(w.bounds.translate(k-(w.x||0),E-(w.y||0)));w.x=k;w.y=E;t.dirty(w);g=a(g,_[l])}return g}function Pv(t,e,n,i,r,s){if(!e)return;t.dirty(e);var a=n,o=n;i?a=Math.round(r.x1+s*r.width()):o=Math.round(r.y1+s*r.height());e.bounds.translate(a-(e.x||0),o-(e.y||0));e.mark.bounds.clear().union(e.bounds);e.x=a;e.y=o;t.dirty(e)}function qv(t,e){const n=t[e]||{};return(e,i)=>n[e]!=null?n[e]:t[e]!=null?t[e]:i}function Iv(t,e){let n=-Infinity;t.forEach((t=>{if(t.offset!=null)n=Math.max(n,t.offset)}));return n>-Infinity?n:e}function Uv(t,e,n,i,r,s,a){const o=qv(n,e),u=Iv(t,o("offset",0)),l=o("anchor",Sy),c=l===By?1:l===zy?.5:0;const f={align:ev,bounds:o("bounds",nv),columns:o("direction")==="vertical"?1:t.length,padding:o("margin",8),center:o("center"),nodirty:true};switch(e){case Ay:f.anchor={x:Math.floor(i.x1)-u,column:By,y:c*(a||i.height()+2*i.y1),row:l};break;case ky:f.anchor={x:Math.ceil(i.x2)+u,y:c*(a||i.height()+2*i.y1),row:l};break;case wy:f.anchor={y:Math.floor(r.y1)-u,row:By,x:c*(s||r.width()+2*r.x1),column:l};break;case Ey:f.anchor={y:Math.ceil(r.y2)+u,x:c*(s||r.width()+2*r.x1),column:l};break;case My:f.anchor={x:u,y:u};break;case Dy:f.anchor={x:s-u,y:u,column:By};break;case Cy:f.anchor={x:u,y:a-u,row:By};break;case Fy:f.anchor={x:s-u,y:a-u,column:By,row:By};break}return f}function jv(t,e){var n=e.items[0],i=n.datum,r=n.orient,s=n.bounds,a=n.x,o=n.y,u,l;n._bounds?n._bounds.clear().union(s):n._bounds=s.clone();s.clear();Yv(t,n,n.items[0].items[0]);s=Gv(n,s);u=2*n.padding;l=2*n.padding;if(!s.empty()){u=Math.ceil(s.width()+u);l=Math.ceil(s.height()+l)}if(i.type===Hy){Hv(n.items[0].items[0].items[0].items)}if(r!==Jy){n.x=a=0;n.y=o=0}n.width=u;n.height=l;kd(s.set(a,o,a+u,o+l),n);n.mark.bounds.clear().union(s);return n}function Gv(t,e){t.items.forEach((t=>e.union(t.bounds)));e.x1=t.padding;e.y1=t.padding;return e}function Yv(t,e,n){var i=e.padding,r=i-n.x,s=i-n.y;if(!e.datum.title){if(r||s)Xv(t,n,r,s)}else{var a=e.items[1].items[0],o=a.anchor,u=e.titlePadding||0,l=i-a.x,c=i-a.y;switch(a.orient){case Ay:r+=Math.ceil(a.bounds.width())+u;break;case ky:case Ey:break;default:s+=a.bounds.height()+u}if(r||s)Xv(t,n,r,s);switch(a.orient){case Ay:c+=Wv(e,n,a,o,1,1);break;case ky:l+=Wv(e,n,a,By,0,0)+u;c+=Wv(e,n,a,o,1,1);break;case Ey:l+=Wv(e,n,a,o,0,0);c+=Wv(e,n,a,By,-1,0,1)+u;break;default:l+=Wv(e,n,a,o,0,0)}if(l||c)Xv(t,a,l,c);if((l=Math.round(a.bounds.x1-i))<0){Xv(t,n,-l,0);Xv(t,a,-l,0)}}}function Wv(t,e,n,i,r,s,a){const o=t.datum.type!=="symbol",u=n.datum.vgrad,l=o&&(s||!u)&&!a?e.items[0]:e,c=l.bounds[r?"y2":"x2"]-t.padding,f=u&&s?c:0,d=u&&s?0:c,h=r<=0?0:$p(n);return Math.round(i===Sy?f:i===By?d-h:.5*(c-h))}function Xv(t,e,n,i){e.x+=n;e.y+=i;e.bounds.translate(n,i);e.mark.bounds.translate(n,i);t.dirty(e)}function Hv(t){const e=t.reduce(((t,e)=>{t[e.column]=Math.max(e.bounds.x2-e.x,t[e.column]||0);return t}),{});t.forEach((t=>{t.width=e[t.column];t.height=t.bounds.y2-t.y}))}function Vv(t,e,n,i,r){var s=e.items[0],a=s.frame,o=s.orient,u=s.anchor,l=s.offset,c=s.padding,f=s.items[0].items[0],d=s.items[1]&&s.items[1].items[0],h=o===Ay||o===ky?i:n,p=0,m=0,g=0,y=0,v=0,b;if(a!==Oy){o===Ay?(p=r.y2,h=r.y1):o===ky?(p=r.y1,h=r.y2):(p=r.x1,h=r.x2)}else if(o===Ay){p=i,h=0}b=u===Sy?p:u===By?h:(p+h)/2;if(d&&d.text){switch(o){case wy:case Ey:v=f.bounds.height()+c;break;case Ay:y=f.bounds.width()+c;break;case ky:y=-f.bounds.width()-c;break}_v.clear().union(d.bounds);_v.translate(y-(d.x||0),v-(d.y||0));if(wv(d,"x",y)|wv(d,"y",v)){t.dirty(d);d.bounds.clear().union(_v);d.mark.bounds.clear().union(_v);t.dirty(d)}_v.clear().union(d.bounds)}else{_v.clear()}_v.union(f.bounds);switch(o){case wy:m=b;g=r.y1-_v.height()-l;break;case Ay:m=r.x1-_v.width()-l;g=b;break;case ky:m=r.x2+_v.width()+l;g=b;break;case Ey:m=b;g=r.y2+l;break;default:m=s.x;g=s.y}if(wv(s,"x",m)|wv(s,"y",g)){_v.translate(m,g);t.dirty(s);s.bounds.clear().union(_v);e.bounds.clear().union(_v);t.dirty(s)}return s.bounds}function Qv(t){Bi.call(this,null,t)}(0,p.B)(Qv,Bi,{transform(t,e){const n=e.dataflow;t.mark.items.forEach((e=>{if(t.layout)Ov(n,e,t.layout);Zv(n,e,t)}));return Kv(t.mark.group)?e.reflow():e}});function Kv(t){return t&&t.mark.role!=="legend-entry"}function Zv(t,e,n){var i=e.items,r=Math.max(0,e.width||0),s=Math.max(0,e.height||0),a=(new vd).set(0,0,r,s),o=a.clone(),u=a.clone(),l=[],c,f,d,h,p,m;for(p=0,m=i.length;p{d=t.orient||ky;if(d!==Jy)(e[d]||(e[d]=[])).push(t)}));for(const i in e){const a=e[i];Rv(t,a,Uv(a,i,n.legends,o,u,r,s))}l.forEach((e=>{const i=e.bounds;if(!i.equals(e._bounds)){e.bounds=e._bounds;t.dirty(e);e.bounds=i;t.dirty(e)}if(n.autosize&&(n.autosize.type===Vy||n.autosize.type===Qy||n.autosize.type===Ky)){switch(e.orient){case Ay:case ky:a.add(i.x1,0).add(i.x2,0);break;case wy:case Ey:a.add(0,i.y1).add(0,i.y2)}}else{a.union(i)}}))}a.union(o).union(u);if(c){a.union(Vv(t,c,r,s,a))}if(e.clip){a.set(0,0,e.width||0,e.height||0)}Jv(t,e,a,n)}function Jv(t,e,n,i){const r=i.autosize||{},s=r.type;if(t._autosize<1||!s)return;let a=t._width,o=t._height,u=Math.max(0,e.width||0),l=Math.max(0,Math.ceil(-n.x1)),c=Math.max(0,e.height||0),f=Math.max(0,Math.ceil(-n.y1));const d=Math.max(0,Math.ceil(n.x2-u)),h=Math.max(0,Math.ceil(n.y2-c));if(r.contains===Xy){const e=t.padding();a-=e.left+e.right;o-=e.top+e.bottom}if(s===Jy){l=0;f=0;u=a;c=o}else if(s===Vy){u=Math.max(0,a-l-d);c=Math.max(0,o-f-h)}else if(s===Qy){u=Math.max(0,a-l-d);o=c+f+h}else if(s===Ky){a=u+l+d;c=Math.max(0,o-f-h)}else if(s===Zy){a=u+l+d;o=c+f+h}t._resizeView(a,o,u,c,[l,f],r.resize)}function tb(t,e){let n=0;if(e===undefined){for(let e of t){if(e=+e){n+=e}}}else{let i=-1;for(let r of t){if(r=+e(r,++i,t)){n+=r}}}return n}function eb(t){Bi.call(this,null,t)}(0,p.B)(eb,Bi,{transform(t,e){if(this.value&&!t.modified()){return e.StopPropagation}var n=e.dataflow.locale(),i=e.fork(e.NO_SOURCE|e.NO_FIELDS),r=this.value,s=t.scale,a=t.count==null?t.values?t.values.length:10:t.count,o=_c(s,a,t.minstep),u=t.format||kc(n,s,o,t.formatSpecifier,t.formatType,!!t.values),l=t.values?wc(s,t.values,o):Ac(s,o);if(r)i.rem=r;r=l.map(((t,e)=>bn({index:e/(l.length-1||1),value:t,label:u(t)})));if(t.extra&&r.length){r.push(bn({index:-1,extra:{value:r[0].value},label:""}))}i.source=r;i.add=r;this.value=r;return i}});function nb(t){Bi.call(this,null,t)}function ib(){return bn({})}function rb(t){const e=(0,p.nG)().test((t=>t.exit));e.lookup=n=>e.get(t(n));return e}(0,p.B)(nb,Bi,{transform(t,e){var n=e.dataflow,i=e.fork(e.NO_SOURCE|e.NO_FIELDS),r=t.item||ib,s=t.key||yn,a=this.value;if((0,p.cy)(i.encode)){i.encode=null}if(a&&(t.modified("key")||e.modified(s))){(0,p.z3)("DataJoin does not support modified key function or fields.")}if(!a){e=e.addAll();this.value=a=rb(s)}e.visit(e.ADD,(t=>{const e=s(t);let n=a.get(e);if(n){if(n.exit){a.empty--;i.add.push(n)}else{i.mod.push(n)}}else{n=r(t);a.set(e,n);i.add.push(n)}n.datum=t;n.exit=false}));e.visit(e.MOD,(t=>{const e=s(t),n=a.get(e);if(n){n.datum=t;i.mod.push(n)}}));e.visit(e.REM,(t=>{const e=s(t),n=a.get(e);if(t===n.datum&&!n.exit){i.rem.push(n);n.exit=true;++a.empty}}));if(e.changed(e.ADD_MOD))i.modifies("datum");if(e.clean()||t.clean&&a.empty>n.cleanThreshold){n.runAfter(a.clean)}return i}});function sb(t){Bi.call(this,null,t)}(0,p.B)(sb,Bi,{transform(t,e){var n=e.fork(e.ADD_REM),i=t.mod||false,r=t.encoders,s=e.encode;if((0,p.cy)(s)){if(n.changed()||s.every((t=>r[t]))){s=s[0];n.encode=null}else{return e.StopPropagation}}var a=s==="enter",o=r.update||p.me,u=r.enter||p.me,l=r.exit||p.me,c=(s&&!a?r[s]:o)||p.me;if(e.changed(e.ADD)){e.visit(e.ADD,(e=>{u(e,t);o(e,t)}));n.modifies(u.output);n.modifies(o.output);if(c!==p.me&&c!==o){e.visit(e.ADD,(e=>{c(e,t)}));n.modifies(c.output)}}if(e.changed(e.REM)&&l!==p.me){e.visit(e.REM,(e=>{l(e,t)}));n.modifies(l.output)}if(a||c!==p.me){const r=e.MOD|(t.modified()?e.REFLOW:0);if(a){e.visit(r,(e=>{const r=u(e,t)||i;if(c(e,t)||r)n.mod.push(e)}));if(n.mod.length)n.modifies(u.output)}else{e.visit(r,(e=>{if(c(e,t)||i)n.mod.push(e)}))}if(n.mod.length)n.modifies(c.output)}return n.changed()?n:e.StopPropagation}});function ab(t){Bi.call(this,[],t)}(0,p.B)(ab,Bi,{transform(t,e){if(this.value!=null&&!t.modified()){return e.StopPropagation}var n=e.dataflow.locale(),i=e.fork(e.NO_SOURCE|e.NO_FIELDS),r=this.value,s=t.type||mc,a=t.scale,o=+t.limit,u=_c(a,t.count==null?5:t.count,t.minstep),l=!!t.values||s===mc,c=t.format||$c(n,a,u,s,t.formatSpecifier,t.formatType,l),f=t.values||Cc(a,u),d,h,m,g,y;if(r)i.rem=r;if(s===mc){if(o&&f.length>o){e.dataflow.warn("Symbol legend count exceeds limit, filtering items.");r=f.slice(0,o-1);y=true}else{r=f}if((0,p.Tn)(m=t.size)){if(!t.values&&a(r[0])===0){r=r.slice(1)}g=r.reduce(((e,n)=>Math.max(e,m(n,t))),0)}else{m=(0,p.dY)(g=m||8)}r=r.map(((e,n)=>bn({index:n,label:c(e,n,r),value:e,offset:g,size:m(e,t)})));if(y){y=f[r.length];r.push(bn({index:r.length,label:`…${f.length-r.length} entries`,value:y,offset:g,size:m(y,t)}))}}else if(s===yc){d=a.domain(),h=ac(a,d[0],(0,p.se)(d));if(f.length<3&&!t.values&&d[0]!==(0,p.se)(d)){f=[d[0],(0,p.se)(d)]}r=f.map(((t,e)=>bn({index:e,label:c(t,e,f),value:t,perc:h(t)})))}else{m=f.length-1;h=Pc(a);r=f.map(((t,e)=>bn({index:e,label:c(t,e,f),value:t,perc:e?h(t):0,perc2:e===m?1:h(f[e+1])})))}i.source=r;i.add=r;this.value=r;return i}});const ob=t=>t.source.x;const ub=t=>t.source.y;const lb=t=>t.target.x;const cb=t=>t.target.y;function fb(t){Bi.call(this,{},t)}fb.Definition={type:"LinkPath",metadata:{modifies:true},params:[{name:"sourceX",type:"field",default:"source.x"},{name:"sourceY",type:"field",default:"source.y"},{name:"targetX",type:"field",default:"target.x"},{name:"targetY",type:"field",default:"target.y"},{name:"orient",type:"enum",default:"vertical",values:["horizontal","vertical","radial"]},{name:"shape",type:"enum",default:"line",values:["line","arc","curve","diagonal","orthogonal"]},{name:"require",type:"signal"},{name:"as",type:"string",default:"path"}]};(0,p.B)(fb,Bi,{transform(t,e){var n=t.sourceX||ob,i=t.sourceY||ub,r=t.targetX||lb,s=t.targetY||cb,a=t.as||"path",o=t.orient||"vertical",u=t.shape||"line",l=kb.get(u+"-"+o)||kb.get(u);if(!l){(0,p.z3)("LinkPath unsupported type: "+t.shape+(t.orient?"-"+t.orient:""))}e.visit(e.SOURCE,(t=>{t[a]=l(n(t),i(t),r(t),s(t))}));return e.reflow(t.modified()).modifies(a)}});const db=(t,e,n,i)=>"M"+t+","+e+"L"+n+","+i;const hb=(t,e,n,i)=>db(e*Math.cos(t),e*Math.sin(t),i*Math.cos(n),i*Math.sin(n));const pb=(t,e,n,i)=>{var r=n-t,s=i-e,a=Math.hypot(r,s)/2,o=180*Math.atan2(s,r)/Math.PI;return"M"+t+","+e+"A"+a+","+a+" "+o+" 0 1"+" "+n+","+i};const mb=(t,e,n,i)=>pb(e*Math.cos(t),e*Math.sin(t),i*Math.cos(n),i*Math.sin(n));const gb=(t,e,n,i)=>{const r=n-t,s=i-e,a=.2*(r+s),o=.2*(s-r);return"M"+t+","+e+"C"+(t+a)+","+(e+o)+" "+(n+o)+","+(i-a)+" "+n+","+i};const yb=(t,e,n,i)=>gb(e*Math.cos(t),e*Math.sin(t),i*Math.cos(n),i*Math.sin(n));const vb=(t,e,n,i)=>"M"+t+","+e+"V"+i+"H"+n;const bb=(t,e,n,i)=>"M"+t+","+e+"H"+n+"V"+i;const xb=(t,e,n,i)=>{const r=Math.cos(t),s=Math.sin(t),a=Math.cos(n),o=Math.sin(n),u=Math.abs(n-t)>Math.PI?n<=t:n>t;return"M"+e*r+","+e*s+"A"+e+","+e+" 0 0,"+(u?1:0)+" "+e*a+","+e*o+"L"+i*a+","+i*o};const _b=(t,e,n,i)=>{const r=(t+n)/2;return"M"+t+","+e+"C"+r+","+e+" "+r+","+i+" "+n+","+i};const wb=(t,e,n,i)=>{const r=(e+i)/2;return"M"+t+","+e+"C"+t+","+r+" "+n+","+r+" "+n+","+i};const Ab=(t,e,n,i)=>{const r=Math.cos(t),s=Math.sin(t),a=Math.cos(n),o=Math.sin(n),u=(e+i)/2;return"M"+e*r+","+e*s+"C"+u*r+","+u*s+" "+u*a+","+u*o+" "+i*a+","+i*o};const kb=(0,p.nG)({line:db,"line-radial":hb,arc:pb,"arc-radial":mb,curve:gb,"curve-radial":yb,"orthogonal-horizontal":vb,"orthogonal-vertical":bb,"orthogonal-radial":xb,"diagonal-horizontal":_b,"diagonal-vertical":wb,"diagonal-radial":Ab});function Eb(t){Bi.call(this,null,t)}Eb.Definition={type:"Pie",metadata:{modifies:true},params:[{name:"field",type:"field"},{name:"startAngle",type:"number",default:0},{name:"endAngle",type:"number",default:6.283185307179586},{name:"sort",type:"boolean",default:false},{name:"as",type:"string",array:true,length:2,default:["startAngle","endAngle"]}]};(0,p.B)(Eb,Bi,{transform(t,e){var n=t.as||["startAngle","endAngle"],i=n[0],r=n[1],s=t.field||p.xH,a=t.startAngle||0,o=t.endAngle!=null?t.endAngle:2*Math.PI,u=e.source,l=u.map(s),c=l.length,f=a,d=(o-a)/tb(l),h=(0,es.A)(c),m,g,y;if(t.sort){h.sort(((t,e)=>l[t]-l[e]))}for(m=0;m-1)return i;var r=e.domain,s=t.type,a=e.zero||e.zero===undefined&&Db(t),o,u;if(!r)return 0;if(a||e.domainMin!=null||e.domainMax!=null||e.domainMid!=null){o=(r=r.slice()).length-1||1;if(a){if(r[0]>0)r[0]=0;if(r[o]<0)r[o]=0}if(e.domainMin!=null)r[0]=e.domainMin;if(e.domainMax!=null)r[o]=e.domainMax;if(e.domainMid!=null){u=e.domainMid;const t=u>r[o]?o+1:ut+(e<0?-1:e>0?1:0)),0));if(i!==e.length){n.warn("Log scale domain includes zero: "+(0,p.r$)(e))}}return e}function Nb(t,e,n){let i=e.bins;if(i&&!(0,p.cy)(i)){const e=t.domain(),n=e[0],r=(0,p.se)(e),s=i.step;let a=i.start==null?n:i.start,o=i.stop==null?r:i.stop;if(!s)(0,p.z3)("Scale bins parameter missing step property.");if(ar)o=s*Math.floor(r/s);i=(0,es.A)(a,o+s/2,s)}if(i){t.bins=i}else if(t.bins){delete t.bins}if(t.type===El){if(!i){t.bins=t.domain()}else if(!e.domain&&!e.domainRaw){t.domain(i);n=i.length}}return n}function Lb(t,e,n){var i=t.type,r=e.round||false,s=e.range;if(e.rangeStep!=null){s=Pb(i,e,n)}else if(e.scheme){s=qb(i,e,n);if((0,p.Tn)(s)){if(t.interpolator){return t.interpolator(s)}else{(0,p.z3)(`Scale type ${i} does not support interpolating color schemes.`)}}}if(s&&Jl(i)){return t.interpolator(ic(Ub(s,e.reverse),e.interpolate,e.interpolateGamma))}if(s&&e.interpolate&&t.interpolate){t.interpolate(oc(e.interpolate,e.interpolateGamma))}else if((0,p.Tn)(t.round)){t.round(r)}else if((0,p.Tn)(t.rangeRound)){t.interpolate(r?Su.A:Fu.A)}if(s)t.range(Ub(s,e.reverse))}function Pb(t,e,n){if(t!==kl&&t!==Al){(0,p.z3)("Only band and point scales support rangeStep.")}var i=(e.paddingOuter!=null?e.paddingOuter:e.padding)||0,r=t===Al?1:(e.paddingInner!=null?e.paddingInner:e.padding)||0;return[0,e.rangeStep*ul(n,r,i)]}function qb(t,e,n){var i=e.schemeExtent,r,s;if((0,p.cy)(e.scheme)){s=ic(e.scheme,e.interpolate,e.interpolateGamma)}else{r=e.scheme.toLowerCase();s=pc(r);if(!s)(0,p.z3)(`Unrecognized scheme name: ${e.scheme}`)}n=t===_l?n+1:t===El?n-1:t===bl||t===xl?+e.schemeCount||Mb:n;return Jl(t)?Ib(s,i,e.reverse):(0,p.Tn)(s)?rc(Ib(s,i),n):t===wl?s:s.slice(0,n)}function Ib(t,e,n){return(0,p.Tn)(t)&&(e||n)?nc(t,Ub(e||[0,1],n)):t}function Ub(t,e){return e?t.slice().reverse():t}function jb(t){Bi.call(this,null,t)}(0,p.B)(jb,Bi,{transform(t,e){const n=t.modified("sort")||e.changed(e.ADD)||e.modified(t.sort.fields)||e.modified("datum");if(n)e.source.sort(An(t.sort));this.modified(n);return e}});const Gb="zero",Yb="center",Wb="normalize",Xb=["y0","y1"];function Hb(t){Bi.call(this,null,t)}Hb.Definition={type:"Stack",metadata:{modifies:true},params:[{name:"field",type:"field"},{name:"groupby",type:"field",array:true},{name:"sort",type:"compare"},{name:"offset",type:"enum",default:Gb,values:[Gb,Yb,Wb]},{name:"as",type:"string",array:true,length:2,default:Xb}]};(0,p.B)(Hb,Bi,{transform(t,e){var n=t.as||Xb,i=n[0],r=n[1],s=An(t.sort),a=t.field||p.xH,o=t.offset===Yb?Vb:t.offset===Wb?Qb:Kb,u,l,c,f;u=Zb(e.source,t.groupby,s,a);for(l=0,c=u.length,f=u.max;lt(c),a,o,u,l,c,f,d,h,p;if(e==null){r.push(t.slice())}else{for(a={},o=0,u=t.length;op)p=h;if(n)d.sort(n)}r.max=p;return r}const Jb=t=>t;function tx(t,e){if(t&&nx.hasOwnProperty(t.type)){nx[t.type](t,e)}}var ex={Feature:function(t,e){tx(t.geometry,e)},FeatureCollection:function(t,e){var n=t.features,i=-1,r=n.length;while(++i0){s=t[--e];while(e>0){n=s;i=t[--e];s=n+i;r=i-(s-n);if(r)break}if(e>0&&(r<0&&t[e-1]<0||r>0&&t[e-1]>0)){i=r*2;n=s+i;if(i==n-s)s=n}}return s}}function ox(t,e){const n=new ax;if(e===undefined){for(let e of t){if(e=+e){n.add(e)}}}else{let i=-1;for(let r of t){if(r=+e(r,++i,t)){n.add(r)}}}return+n}function ux(t,e){const n=new ax;let i=-1;return Float64Array.from(t,e===undefined?t=>n.add(+t||0):r=>n.add(+e(r,++i,t)||0))}var lx=1e-6;var cx=1e-12;var fx=Math.PI;var dx=fx/2;var hx=fx/4;var px=fx*2;var mx=180/fx;var gx=fx/180;var yx=Math.abs;var vx=Math.atan;var bx=Math.atan2;var xx=Math.cos;var _x=Math.ceil;var wx=Math.exp;var Ax=Math.floor;var kx=Math.hypot;var Ex=Math.log;var Mx=Math.pow;var Dx=Math.sin;var Cx=Math.sign||function(t){return t>0?1:t<0?-1:0};var Fx=Math.sqrt;var Sx=Math.tan;function zx(t){return t>1?0:t<-1?fx:Math.acos(t)}function Bx(t){return t>1?dx:t<-1?-dx:Math.asin(t)}function $x(t){return(t=Dx(t/2))*t}function Rx(){}var Ox=new ax,Tx=new ax,Nx,Lx,Px,qx;var Ix={point:Rx,lineStart:Rx,lineEnd:Rx,polygonStart:function(){Ix.lineStart=Ux;Ix.lineEnd=Yx},polygonEnd:function(){Ix.lineStart=Ix.lineEnd=Ix.point=Rx;Ox.add(yx(Tx));Tx=new ax},result:function(){var t=Ox/2;Ox=new ax;return t}};function Ux(){Ix.point=jx}function jx(t,e){Ix.point=Gx;Nx=Px=t,Lx=qx=e}function Gx(t,e){Tx.add(qx*t-Px*e);Px=t,qx=e}function Yx(){Gx(Nx,Lx)}const Wx=Ix;var Xx=Infinity,Hx=Xx,Vx=-Xx,Qx=Vx;var Kx={point:Zx,lineStart:Rx,lineEnd:Rx,polygonStart:Rx,polygonEnd:Rx,result:function(){var t=[[Xx,Hx],[Vx,Qx]];Vx=Qx=-(Hx=Xx=Infinity);return t}};function Zx(t,e){if(tVx)Vx=t;if(eQx)Qx=e}const Jx=Kx;var t_=0,e_=0,n_=0,i_=0,r_=0,s_=0,a_=0,o_=0,u_=0,l_,c_,f_,d_;var h_={point:p_,lineStart:m_,lineEnd:v_,polygonStart:function(){h_.lineStart=b_;h_.lineEnd=x_},polygonEnd:function(){h_.point=p_;h_.lineStart=m_;h_.lineEnd=v_},result:function(){var t=u_?[a_/u_,o_/u_]:s_?[i_/s_,r_/s_]:n_?[t_/n_,e_/n_]:[NaN,NaN];t_=e_=n_=i_=r_=s_=a_=o_=u_=0;return t}};function p_(t,e){t_+=t;e_+=e;++n_}function m_(){h_.point=g_}function g_(t,e){h_.point=y_;p_(f_=t,d_=e)}function y_(t,e){var n=t-f_,i=e-d_,r=Fx(n*n+i*i);i_+=r*(f_+t)/2;r_+=r*(d_+e)/2;s_+=r;p_(f_=t,d_=e)}function v_(){h_.point=p_}function b_(){h_.point=__}function x_(){w_(l_,c_)}function __(t,e){h_.point=w_;p_(l_=f_=t,c_=d_=e)}function w_(t,e){var n=t-f_,i=e-d_,r=Fx(n*n+i*i);i_+=r*(f_+t)/2;r_+=r*(d_+e)/2;s_+=r;r=d_*t-f_*e;a_+=r*(f_+t);o_+=r*(d_+e);u_+=r*3;p_(f_=t,d_=e)}const A_=h_;function k_(t){this._context=t}k_.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){if(this._line===0)this._context.closePath();this._point=NaN},point:function(t,e){switch(this._point){case 0:{this._context.moveTo(t,e);this._point=1;break}case 1:{this._context.lineTo(t,e);break}default:{this._context.moveTo(t+this._radius,e);this._context.arc(t,e,this._radius,0,px);break}}},result:Rx};var E_=new ax,M_,D_,C_,F_,S_;var z_={point:Rx,lineStart:function(){z_.point=B_},lineEnd:function(){if(M_)$_(D_,C_);z_.point=Rx},polygonStart:function(){M_=true},polygonEnd:function(){M_=null},result:function(){var t=+E_;E_=new ax;return t}};function B_(t,e){z_.point=$_;D_=F_=t,C_=S_=e}function $_(t,e){F_-=t,S_-=e;E_.add(Fx(F_*F_+S_*S_));F_=t,S_=e}const R_=z_;let O_,T_,N_,L_;class P_{constructor(t){this._append=t==null?q_:I_(t);this._radius=4.5;this._=""}pointRadius(t){this._radius=+t;return this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){if(this._line===0)this._+="Z";this._point=NaN}point(t,e){switch(this._point){case 0:{this._append`M${t},${e}`;this._point=1;break}case 1:{this._append`L${t},${e}`;break}default:{this._append`M${t},${e}`;if(this._radius!==N_||this._append!==T_){const t=this._radius;const e=this._;this._="";this._append`m0,${t}a${t},${t} 0 1,1 0,${-2*t}a${t},${t} 0 1,1 0,${2*t}z`;N_=t;T_=this._append;L_=this._;this._=e}this._+=L_;break}}}result(){const t=this._;this._="";return t.length?t:null}}function q_(t){let e=1;this._+=t[0];for(const n=t.length;e=0))throw new RangeError(`invalid digits: ${t}`);if(e>15)return q_;if(e!==O_){const t=10**e;O_=e;T_=function e(n){let i=1;this._+=n[0];for(const r=n.length;i=0))throw new RangeError(`invalid digits: ${t}`);n=e}if(e===null)s=new P_(n);return a};return a.projection(t).digits(n).context(e)}function j_(){var t=[],e;return{point:function(t,n,i){e.push([t,n,i])},lineStart:function(){t.push(e=[])},lineEnd:Rx,rejoin:function(){if(t.length>1)t.push(t.pop().concat(t.shift()))},result:function(){var n=t;t=[];e=null;return n}}}function G_(t,e){return yx(t[0]-e[0])=0;--o)r.point((f=c[o])[0],f[1])}else{i(d.x,d.p.x,-1,r)}d=d.p}d=d.o;c=d.z;h=!h}while(!d.v);r.lineEnd()}}function X_(t){if(!(e=t.length))return;var e,n=0,i=t[0],r;while(++n=0?1:-1,M=E*k,D=M>fx,C=g*w;u.add(bx(C*E*Dx(M),y*A+C*xx(M)));a+=D?k+E*px:k;if(D^p>=n^x>=n){var F=K_(V_(h),V_(b));tw(F);var S=K_(s,F);tw(S);var z=(D^k>=0?-1:1)*Bx(S[2]);if(i>z||i===z&&(F[0]||F[1])){o+=D^k>=0?1:-1}}}}return(a<-lx||a0){if(!u)r.polygonStart(),u=true;r.lineStart();for(n=0;n1&&t&2)e.push(e.pop().concat(e.shift()));c.push(e.filter(aw))}return d}}function aw(t){return t.length>1}function ow(t,e){return((t=t.x)[0]<0?t[1]-dx-lx:dx-t[1])-((e=e.x)[0]<0?e[1]-dx-lx:dx-e[1])}const uw=sw((function(){return true}),lw,fw,[-fx,-dx]);function lw(t){var e=NaN,n=NaN,i=NaN,r;return{lineStart:function(){t.lineStart();r=1},point:function(s,a){var o=s>0?fx:-fx,u=yx(s-e);if(yx(u-fx)0?dx:-dx);t.point(i,n);t.lineEnd();t.lineStart();t.point(o,n);t.point(s,n);r=0}else if(i!==o&&u>=fx){if(yx(e-i)lx?vx((Dx(e)*(s=xx(i))*Dx(n)-Dx(i)*(r=xx(e))*Dx(t))/(r*s*a)):(e+i)/2}function fw(t,e,n,i){var r;if(t==null){r=n*dx;i.point(-fx,r);i.point(0,r);i.point(fx,r);i.point(fx,0);i.point(fx,-r);i.point(0,-r);i.point(-fx,-r);i.point(-fx,0);i.point(-fx,r)}else if(yx(t[0]-e[0])>lx){var s=t[0]0?rs)r+=i*px}for(var l,c=r;i>0?c>s:c0,r=yx(e)>lx;function s(e,i,r,s){dw(s,t,n,r,e,i)}function a(t,n){return xx(t)*xx(n)>e}function o(t){var e,n,s,o,c;return{lineStart:function(){o=s=false;c=1},point:function(f,d){var h=[f,d],p,m=a(f,d),g=i?m?0:l(f,d):m?l(f+(f<0?fx:-fx),d):0;if(!e&&(o=s=m))t.lineStart();if(m!==s){p=u(e,h);if(!p||G_(e,p)||G_(h,p))h[2]=1}if(m!==s){c=0;if(m){t.lineStart();p=u(h,e);t.point(p[0],p[1])}else{p=u(e,h);t.point(p[0],p[1],2);t.lineEnd()}e=p}else if(r&&e&&i^m){var y;if(!(g&n)&&(y=u(h,e,true))){c=0;if(i){t.lineStart();t.point(y[0][0],y[0][1]);t.point(y[1][0],y[1][1]);t.lineEnd()}else{t.point(y[1][0],y[1][1]);t.lineEnd();t.lineStart();t.point(y[0][0],y[0][1],3)}}}if(m&&(!e||!G_(e,h))){t.point(h[0],h[1])}e=h,s=m,n=g},lineEnd:function(){if(s)t.lineEnd();e=null},clean:function(){return c|(o&&s)<<1}}}function u(t,n,i){var r=V_(t),s=V_(n);var a=[1,0,0],o=K_(r,s),u=Q_(o,o),l=o[0],c=u-l*l;if(!c)return!i&&t;var f=e*u/c,d=-e*l/c,h=K_(a,o),p=J_(a,f),m=J_(o,d);Z_(p,m);var g=h,y=Q_(p,g),v=Q_(g,g),b=y*y-v*(Q_(p,p)-1);if(b<0)return;var x=Fx(b),_=J_(g,(-y-x)/v);Z_(_,p);_=H_(_);if(!i)return _;var w=t[0],A=n[0],k=t[1],E=n[1],M;if(A0^_[1]<(yx(_[0]-w)fx^(w<=_[0]&&_[0]<=A)){var S=J_(g,(-y+x)/v);Z_(S,p);return[_,H_(S)]}}function l(e,n){var r=i?t:fx-t,s=0;if(e<-r)s|=1;else if(e>r)s|=2;if(n<-r)s|=4;else if(n>r)s|=8;return s}return sw(a,o,s,i?[0,-t]:[-fx,t-fx])}function gw(t,e,n,i,r,s){var a=t[0],o=t[1],u=e[0],l=e[1],c=0,f=1,d=u-a,h=l-o,p;p=n-a;if(!d&&p>0)return;p/=d;if(d<0){if(p0){if(p>f)return;if(p>c)c=p}p=r-a;if(!d&&p<0)return;p/=d;if(d<0){if(p>f)return;if(p>c)c=p}else if(d>0){if(p0)return;p/=h;if(h<0){if(p0){if(p>f)return;if(p>c)c=p}p=s-o;if(!h&&p<0)return;p/=h;if(h<0){if(p>f)return;if(p>c)c=p}else if(h>0){if(p0)t[0]=a+c*d,t[1]=o+c*h;if(f<1)e[0]=a+f*d,e[1]=o+f*h;return true}var yw=1e9,vw=-yw;function bw(t,e,n,i){function r(r,s){return t<=r&&r<=n&&e<=s&&s<=i}function s(r,s,o,l){var c=0,f=0;if(r==null||(c=a(r,o))!==(f=a(s,o))||u(r,s)<0^o>0){do{l.point(c===0||c===3?t:n,c>1?i:e)}while((c=(c+o+4)%4)!==f)}else{l.point(s[0],s[1])}}function a(i,r){return yx(i[0]-t)0?0:3:yx(i[0]-n)0?2:1:yx(i[1]-e)0?1:0:r>0?3:2}function o(t,e){return u(t.x,e.x)}function u(t,e){var n=a(t,1),i=a(e,1);return n!==i?n-i:n===0?e[1]-t[1]:n===1?t[0]-e[0]:n===2?t[1]-e[1]:e[0]-t[0]}return function(a){var u=a,l=j_(),c,f,d,h,p,m,g,y,v,b,x;var _={point:w,lineStart:M,lineEnd:D,polygonStart:k,polygonEnd:E};function w(t,e){if(r(t,e))u.point(t,e)}function A(){var e=0;for(var n=0,r=f.length;ni&&(d-l)*(i-c)>(h-c)*(t-l))++e}else{if(h<=i&&(d-l)*(i-c)<(h-c)*(t-l))--e}}}return e}function k(){u=l,c=[],f=[],x=true}function E(){var t=A(),e=x&&t,n=(c=rw(c)).length;if(e||n){a.polygonStart();if(e){a.lineStart();s(null,null,1,a);a.lineEnd()}if(n){W_(c,o,t,s,a)}a.polygonEnd()}u=a,c=f=d=null}function M(){_.point=C;if(f)f.push(d=[]);b=true;v=false;g=y=NaN}function D(){if(c){C(h,p);if(m&&v)l.rejoin();c.push(l.result())}_.point=w;if(v)u.lineEnd()}function C(s,a){var o=r(s,a);if(f)d.push([s,a]);if(b){h=s,p=a,m=o;b=false;if(o){u.lineStart();u.point(s,a)}}else{if(o&&v)u.point(s,a);else{var l=[g=Math.max(vw,Math.min(yw,g)),y=Math.max(vw,Math.min(yw,y))],c=[s=Math.max(vw,Math.min(yw,s)),a=Math.max(vw,Math.min(yw,a))];if(gw(l,c,t,e,n,i)){if(!v){u.lineStart();u.point(l[0],l[1])}u.point(c[0],c[1]);if(!o)u.lineEnd();x=false}else if(o){u.lineStart();u.point(s,a);x=false}}}g=s,y=a,v=o}return _}}function xw(t,e){function n(n,i){return n=t(n,i),e(n[0],n[1])}if(t.invert&&e.invert)n.invert=function(n,i){return n=e.invert(n,i),n&&t.invert(n[0],n[1])};return n}function _w(t,e){if(yx(t)>fx)t-=Math.round(t/px)*px;return[t,e]}_w.invert=_w;function ww(t,e,n){return(t%=px)?e||n?xw(kw(t),Ew(e,n)):kw(t):e||n?Ew(e,n):_w}function Aw(t){return function(e,n){e+=t;if(yx(e)>fx)e-=Math.round(e/px)*px;return[e,n]}}function kw(t){var e=Aw(t);e.invert=Aw(-t);return e}function Ew(t,e){var n=xx(t),i=Dx(t),r=xx(e),s=Dx(e);function a(t,e){var a=xx(e),o=xx(t)*a,u=Dx(t)*a,l=Dx(e),c=l*n+o*i;return[bx(u*r-c*s,o*n-l*i),Bx(c*r+u*s)]}a.invert=function(t,e){var a=xx(e),o=xx(t)*a,u=Dx(t)*a,l=Dx(e),c=l*r-u*s;return[bx(u*r+l*s,o*n+c*i),Bx(c*n-o*i)]};return a}function Mw(t){t=ww(t[0]*gx,t[1]*gx,t.length>2?t[2]*gx:0);function e(e){e=t(e[0]*gx,e[1]*gx);return e[0]*=mx,e[1]*=mx,e}e.invert=function(e){e=t.invert(e[0]*gx,e[1]*gx);return e[0]*=mx,e[1]*=mx,e};return e}function Dw(t){return{stream:Cw(t)}}function Cw(t){return function(e){var n=new Fw;for(var i in t)n[i]=t[i];n.stream=e;return n}}function Fw(){}Fw.prototype={constructor:Fw,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Sw(t,e,n){var i=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]);if(i!=null)t.clipExtent(null);sx(n,t.stream(Jx));e(Jx.result());if(i!=null)t.clipExtent(i);return t}function zw(t,e,n){return Sw(t,(function(n){var i=e[1][0]-e[0][0],r=e[1][1]-e[0][1],s=Math.min(i/(n[1][0]-n[0][0]),r/(n[1][1]-n[0][1])),a=+e[0][0]+(i-s*(n[1][0]+n[0][0]))/2,o=+e[0][1]+(r-s*(n[1][1]+n[0][1]))/2;t.scale(150*s).translate([a,o])}),n)}function Bw(t,e,n){return zw(t,[[0,0],e],n)}function $w(t,e,n){return Sw(t,(function(n){var i=+e,r=i/(n[1][0]-n[0][0]),s=(i-r*(n[1][0]+n[0][0]))/2,a=-r*n[0][1];t.scale(150*r).translate([s,a])}),n)}function Rw(t,e,n){return Sw(t,(function(n){var i=+e,r=i/(n[1][1]-n[0][1]),s=-r*n[0][0],a=(i-r*(n[1][1]+n[0][1]))/2;t.scale(150*r).translate([s,a])}),n)}var Ow=16,Tw=xx(30*gx);function Nw(t,e){return+e?Pw(t,e):Lw(t)}function Lw(t){return Cw({point:function(e,n){e=t(e,n);this.stream.point(e[0],e[1])}})}function Pw(t,e){function n(i,r,s,a,o,u,l,c,f,d,h,p,m,g){var y=l-i,v=c-r,b=y*y+v*v;if(b>4*e&&m--){var x=a+d,_=o+h,w=u+p,A=Fx(x*x+_*_+w*w),k=Bx(w/=A),E=yx(yx(w)-1)e||yx((y*F+v*S)/b-.5)>.3||a*d+o*h+u*p2?t[2]%360*gx:0,F()):[o*mx,u*mx,l*mx]};D.angle=function(t){return arguments.length?(f=t%360*gx,F()):f*mx};D.reflectX=function(t){return arguments.length?(d=t?-1:1,F()):d<0};D.reflectY=function(t){return arguments.length?(h=t?-1:1,F()):h<0};D.precision=function(t){return arguments.length?(w=Nw(A,_=t*t),S()):Fx(_)};D.fitExtent=function(t,e){return zw(D,t,e)};D.fitSize=function(t,e){return Bw(D,t,e)};D.fitWidth=function(t,e){return $w(D,t,e)};D.fitHeight=function(t,e){return Rw(D,t,e)};function F(){var t=jw(n,0,0,d,h,f).apply(null,e(s,a)),p=jw(n,i-t[0],r-t[1],d,h,f);c=ww(o,u,l);A=xw(e,p);k=xw(c,A);w=Nw(A,_);return S()}function S(){E=M=null;return D}return function(){e=t.apply(this,arguments);D.invert=e.invert&&C;return F()}}function Ww(t){var e=0,n=fx/3,i=Yw(t),r=i(e,n);r.parallels=function(t){return arguments.length?i(e=t[0]*gx,n=t[1]*gx):[e*mx,n*mx]};return r}function Xw(t){var e=xx(t);function n(t,n){return[t*e,Dx(n)/e]}n.invert=function(t,n){return[t/e,Bx(n*e)]};return n}function Hw(t,e){var n=Dx(t),i=(n+Dx(e))/2;if(yx(i)=.12&&o<.234&&s>=-.425&&s<-.214?r:o>=.166&&o<.234&&s>=-.214&&s<-.115?a:n).invert(t)};c.stream=function(i){return t&&e===i?t:t=Kw([n.stream(e=i),r.stream(i),a.stream(i)])};c.precision=function(t){if(!arguments.length)return n.precision();n.precision(t),r.precision(t),a.precision(t);return f()};c.scale=function(t){if(!arguments.length)return n.scale();n.scale(t),r.scale(t*.35),a.scale(t);return c.translate(n.translate())};c.translate=function(t){if(!arguments.length)return n.translate();var e=n.scale(),u=+t[0],c=+t[1];i=n.translate(t).clipExtent([[u-.455*e,c-.238*e],[u+.455*e,c+.238*e]]).stream(l);s=r.translate([u-.307*e,c+.201*e]).clipExtent([[u-.425*e+lx,c+.12*e+lx],[u-.214*e-lx,c+.234*e-lx]]).stream(l);o=a.translate([u-.205*e,c+.212*e]).clipExtent([[u-.214*e+lx,c+.166*e+lx],[u-.115*e-lx,c+.234*e-lx]]).stream(l);return f()};c.fitExtent=function(t,e){return zw(c,t,e)};c.fitSize=function(t,e){return Bw(c,t,e)};c.fitWidth=function(t,e){return $w(c,t,e)};c.fitHeight=function(t,e){return Rw(c,t,e)};function f(){t=e=null;return c}return c.scale(1070)}function Jw(t){return function(e,n){var i=xx(e),r=xx(n),s=t(i*r);if(s===Infinity)return[2,0];return[s*r*Dx(e),s*Dx(n)]}}function tA(t){return function(e,n){var i=Fx(e*e+n*n),r=t(i),s=Dx(r),a=xx(r);return[bx(e*s,i*a),Bx(i&&n*s/i)]}}var eA=Jw((function(t){return Fx(2/(1+t))}));eA.invert=tA((function(t){return 2*Bx(t/2)}));function nA(){return Gw(eA).scale(124.75).clipAngle(180-.001)}var iA=Jw((function(t){return(t=zx(t))&&t/Dx(t)}));iA.invert=tA((function(t){return t}));function rA(){return Gw(iA).scale(79.4188).clipAngle(180-.001)}function sA(t,e){return[t,Ex(Sx((dx+e)/2))]}sA.invert=function(t,e){return[t,2*vx(wx(e))-dx]};function aA(){return oA(sA).scale(961/px)}function oA(t){var e=Gw(t),n=e.center,i=e.scale,r=e.translate,s=e.clipExtent,a=null,o,u,l;e.scale=function(t){return arguments.length?(i(t),c()):i()};e.translate=function(t){return arguments.length?(r(t),c()):r()};e.center=function(t){return arguments.length?(n(t),c()):n()};e.clipExtent=function(t){return arguments.length?(t==null?a=o=u=l=null:(a=+t[0][0],o=+t[0][1],u=+t[1][0],l=+t[1][1]),c()):a==null?null:[[a,o],[u,l]]};function c(){var n=fx*i(),r=e(Mw(e.rotate()).invert([0,0]));return s(a==null?[[r[0]-n,r[1]-n],[r[0]+n,r[1]+n]]:t===sA?[[Math.max(r[0]-n,a),o],[Math.min(r[0]+n,u),l]]:[[a,Math.max(r[1]-n,o)],[u,Math.min(r[1]+n,l)]])}return c()}function uA(t){return Sx((dx+t)/2)}function lA(t,e){var n=xx(t),i=t===e?Dx(t):Ex(n/xx(e))/Ex(uA(e)/uA(t)),r=n*Mx(uA(t),i)/i;if(!i)return sA;function s(t,e){if(r>0){if(e<-dx+lx)e=-dx+lx}else{if(e>dx-lx)e=dx-lx}var n=r/Mx(uA(e),i);return[n*Dx(i*t),r-n*xx(i*t)]}s.invert=function(t,e){var n=r-e,s=Cx(i)*Fx(t*t+n*n),a=bx(t,yx(n))*Cx(n);if(n*i<0)a-=fx*Cx(t)*Cx(n);return[a/i,2*vx(Mx(r/s,1/i))-dx]};return s}function cA(){return Ww(lA).scale(109.5).parallels([30,30])}function fA(t,e){return[t,e]}fA.invert=fA;function dA(){return Gw(fA).scale(152.63)}function hA(t,e){var n=xx(t),i=t===e?Dx(t):(n-xx(e))/(e-t),r=n/i+t;if(yx(i)lx&&--i>0);return[t/(.8707+(s=n*n)*(-.131979+s*(-.013791+s*s*s*(.003971-.001529*s)))),n]};function DA(){return Gw(MA).scale(175.295)}function CA(t,e){return[xx(e)*Dx(t),Dx(e)]}CA.invert=tA(Bx);function FA(){return Gw(CA).scale(249.5).clipAngle(90+lx)}function SA(t,e){var n=xx(e),i=1+xx(t)*n;return[n*Dx(t)/i,Dx(e)/i]}SA.invert=tA((function(t){return 2*vx(t)}));function zA(){return Gw(SA).scale(250).clipAngle(142)}function BA(t,e){return[Ex(Sx((dx+e)/2)),-t]}BA.invert=function(t,e){return[-e,2*vx(wx(t))-dx]};function $A(){var t=oA(BA),e=t.center,n=t.rotate;t.center=function(t){return arguments.length?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])};t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):(t=n(),[t[0],t[1],t[2]-90])};return n([0,0,90]).scale(159.155)}var RA=Math.abs;var OA=Math.atan;var TA=Math.atan2;var NA=Math.ceil;var LA=Math.cos;var PA=Math.exp;var qA=Math.floor;var IA=Math.log;var UA=Math.max;var jA=Math.min;var GA=Math.pow;var YA=Math.round;var WA=Math.sign||function(t){return t>0?1:t<0?-1:0};var XA=Math.sin;var HA=Math.tan;var VA=1e-6;var QA=1e-12;var KA=Math.PI;var ZA=KA/2;var JA=KA/4;var tk=Math.SQRT1_2;var ek=lk(2);var nk=lk(KA);var ik=KA*2;var rk=180/KA;var sk=KA/180;function ak(t){return t?t/Math.sin(t):1}function ok(t){return t>1?ZA:t<-1?-ZA:Math.asin(t)}function uk(t){return t>1?0:t<-1?KA:Math.acos(t)}function lk(t){return t>0?Math.sqrt(t):0}function ck(t){t=PA(2*t);return(t-1)/(t+1)}function fk(t){return(PA(t)-PA(-t))/2}function dk(t){return(PA(t)+PA(-t))/2}function hk(t){return IA(t+lk(t*t+1))}function pk(t){return IA(t+lk(t*t-1))}function mk(t,e){var n=t*XA(e),i=30,r;do{e-=r=(e+XA(e)-n)/(1+LA(e))}while(RA(r)>VA&&--i>0);return e/2}function gk(t,e,n){function i(i,r){return[t*i*LA(r=mk(n,r)),e*XA(r)]}i.invert=function(i,r){return r=ok(r/e),[i/(t*LA(r)),ok((2*r+XA(2*r))/n)]};return i}var yk=gk(ek/ZA,ek,KA);function vk(){return Gw(yk).scale(169.529)}const bk=U_();const xk=["clipAngle","clipExtent","scale","translate","center","rotate","parallels","precision","reflectX","reflectY","coefficient","distance","fraction","lobes","parallel","radius","ratio","spacing","tilt"];function _k(t,e){return function n(){const i=e();i.type=t;i.path=U_().projection(i);i.copy=i.copy||function(){const t=n();xk.forEach((e=>{if(i[e])t[e](i[e]())}));t.path.pointRadius(i.path.pointRadius());return t};return Ul(i)}}function wk(t,e){if(!t||typeof t!=="string"){throw new Error("Projection type must be a name string.")}t=t.toLowerCase();if(arguments.length>1){kk[t]=_k(t,e);return this}else{return kk[t]||null}}function Ak(t){return t&&t.path||bk}const kk={albers:Qw,albersusa:Zw,azimuthalequalarea:nA,azimuthalequidistant:rA,conicconformal:cA,conicequalarea:Vw,conicequidistant:pA,equalEarth:wA,equirectangular:dA,gnomonic:kA,identity:EA,mercator:aA,mollweide:vk,naturalEarth1:DA,orthographic:FA,stereographic:zA,transversemercator:$A};for(const WY in kk){wk(WY,kk[WY])}function Ek(t,e,n){var i=(0,es.A)(t,e-lx,n).concat(e);return function(t){return i.map((function(e){return[t,e]}))}}function Mk(t,e,n){var i=(0,es.A)(t,e-lx,n).concat(e);return function(t){return i.map((function(e){return[e,t]}))}}function Dk(){var t,e,n,i,r,s,a,o,u=10,l=u,c=90,f=360,d,h,p,m,g=2.5;function y(){return{type:"MultiLineString",coordinates:v()}}function v(){return(0,es.A)(_x(i/c)*c,n,c).map(p).concat((0,es.A)(_x(o/f)*f,a,f).map(m)).concat((0,es.A)(_x(e/u)*u,t,u).filter((function(t){return yx(t%c)>lx})).map(d)).concat((0,es.A)(_x(s/l)*l,r,l).filter((function(t){return yx(t%f)>lx})).map(h))}y.lines=function(){return v().map((function(t){return{type:"LineString",coordinates:t}}))};y.outline=function(){return{type:"Polygon",coordinates:[p(i).concat(m(a).slice(1),p(n).reverse().slice(1),m(o).reverse().slice(1))]}};y.extent=function(t){if(!arguments.length)return y.extentMinor();return y.extentMajor(t).extentMinor(t)};y.extentMajor=function(t){if(!arguments.length)return[[i,o],[n,a]];i=+t[0][0],n=+t[1][0];o=+t[0][1],a=+t[1][1];if(i>n)t=i,i=n,n=t;if(o>a)t=o,o=a,a=t;return y.precision(g)};y.extentMinor=function(n){if(!arguments.length)return[[e,s],[t,r]];e=+n[0][0],t=+n[1][0];s=+n[0][1],r=+n[1][1];if(e>t)n=e,e=t,t=n;if(s>r)n=s,s=r,r=n;return y.precision(g)};y.step=function(t){if(!arguments.length)return y.stepMinor();return y.stepMajor(t).stepMinor(t)};y.stepMajor=function(t){if(!arguments.length)return[c,f];c=+t[0],f=+t[1];return y};y.stepMinor=function(t){if(!arguments.length)return[u,l];u=+t[0],l=+t[1];return y};y.precision=function(u){if(!arguments.length)return g;g=+u;d=Ek(s,r,90);h=Mk(e,t,g);p=Ek(o,a,90);m=Mk(i,n,g);return y};return y.extentMajor([[-180,-90+lx],[180,90-lx]]).extentMinor([[-180,-80-lx],[180,80+lx]])}function Ck(){return Dk()()}var Fk=n(33844);function Sk(){}const zk=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Bk(){var t=1,e=1,n=o;function i(t,e){return e.map((e=>r(t,e)))}function r(t,e){var i=[],r=[];s(t,e,(s=>{n(s,t,e);if($k(s)>0)i.push([s]);else r.push(s)}));r.forEach((t=>{for(var e=0,n=i.length,r;e=i;zk[f<<1].forEach(p);while(++u=i;zk[c|f<<1].forEach(p)}zk[f<<0].forEach(p);while(++l=i;d=n[l*t]>=i;zk[f<<1|d<<2].forEach(p);while(++u=i;h=d,d=n[l*t+u+1]>=i;zk[c|f<<1|d<<2|h<<3].forEach(p)}zk[f|d<<3].forEach(p)}u=-1;d=n[l*t]>=i;zk[d<<2].forEach(p);while(++u=i;zk[d<<2|h<<3].forEach(p)}zk[d<<3].forEach(p);function p(t){var e=[t[0][0]+u,t[0][1]+l],n=[t[1][0]+u,t[1][1]+l],i=a(e),c=a(n),f,d;if(f=o[i]){if(d=s[c]){delete o[f.end];delete s[d.start];if(f===d){f.ring.push(n);r(f.ring)}else{s[f.start]=o[d.end]={start:f.start,end:d.end,ring:f.ring.concat(d.ring)}}}else{delete o[f.end];f.ring.push(n);o[f.end=c]=f}}else if(f=s[c]){if(d=o[i]){delete s[f.start];delete o[d.end];if(f===d){f.ring.push(n);r(f.ring)}else{s[d.start]=o[f.end]={start:d.start,end:f.end,ring:d.ring.concat(f.ring)}}}else{delete s[f.start];f.ring.unshift(e);s[f.start=i]=f}}else{s[i]=o[c]={start:i,end:c,ring:[e,n]}}}}function a(e){return e[0]*2+e[1]*(t+1)*4}function o(n,i,r){n.forEach((n=>{var s=n[0],a=n[1],o=s|0,u=a|0,l,c=i[u*t+o];if(s>0&&s0&&a=0&&s>=0))(0,p.z3)("invalid size");return t=r,e=s,i};i.smooth=function(t){return arguments.length?(n=t?o:Sk,i):n===o};return i}function $k(t){var e=0,n=t.length,i=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];while(++ei!==h>i&&n<(d-l)*(i-c)/(h-c)+l)r=-r}return r}function Tk(t,e,n){var i;return Nk(t,e,n)&&Lk(t[i=+(t[0]===e[0])],n[i],e[i])}function Nk(t,e,n){return(e[0]-t[0])*(n[1]-t[1])===(n[0]-t[0])*(e[1]-t[1])}function Lk(t,e,n){return t<=e&&e<=n||n<=e&&e<=t}function Pk(t,e,n){return function(i){var r=(0,p.Xx)(i),s=n?Math.min(r[0],0):r[0],a=r[1],o=a-s,u=e?(0,N.sG)(s,a,t):o/(t+1);return(0,es.A)(s+u,a,u)}}function qk(t){Bi.call(this,null,t)}qk.Definition={type:"Isocontour",metadata:{generates:true},params:[{name:"field",type:"field"},{name:"thresholds",type:"number",array:true},{name:"levels",type:"number"},{name:"nice",type:"boolean",default:false},{name:"resolve",type:"enum",values:["shared","independent"],default:"independent"},{name:"zero",type:"boolean",default:true},{name:"smooth",type:"boolean",default:true},{name:"scale",type:"number",expr:true},{name:"translate",type:"number",array:true,expr:true},{name:"as",type:"string",null:true,default:"contour"}]};(0,p.B)(qk,Bi,{transform(t,e){if(this.value&&!e.changed()&&!t.modified()){return e.StopPropagation}var n=e.fork(e.NO_SOURCE|e.NO_FIELDS),i=e.materialize(e.SOURCE).source,r=t.field||p.D_,s=Bk().smooth(t.smooth!==false),a=t.thresholds||Ik(i,r,t),o=t.as===null?null:t.as||"contour",u=[];i.forEach((e=>{const n=r(e);const i=s.size([n.width,n.height])(n.values,(0,p.cy)(a)?a:a(n.values));Uk(i,n,e,t);i.forEach((t=>{u.push(_n(e,bn(o!=null?{[o]:t}:t)))}))}));if(this.value)n.rem=this.value;this.value=n.source=n.add=u;return n}});function Ik(t,e,n){const i=Pk(n.levels||10,n.nice,n.zero!==false);return n.resolve!=="shared"?i:i(t.map((t=>(0,Ni.A)(e(t).values))))}function Uk(t,e,n,i){let r=i.scale||e.scale,s=i.translate||e.translate;if((0,p.Tn)(r))r=r(n,i);if((0,p.Tn)(s))s=s(n,i);if((r===1||r==null)&&!s)return;const a=((0,p.Et)(r)?r:r[0])||1,o=((0,p.Et)(r)?r:r[1])||1,u=s&&s[0]||0,l=s&&s[1]||0;t.forEach(jk(e,a,o,u,l))}function jk(t,e,n,i,r){const s=t.x1||0,a=t.y1||0,o=e*n<0;function u(t){t.forEach(l)}function l(t){if(o)t.reverse();t.forEach(c)}function c(t){t[0]=(t[0]-s)*e+i;t[1]=(t[1]-a)*n+r}return function(t){t.coordinates.forEach(u);return t}}function Gk(t,e,n){const i=t>=0?t:er(e,n);return Math.round((Math.sqrt(4*i*i+1)-1)/2)}function Yk(t){return(0,p.Tn)(t)?t:(0,p.dY)(+t)}function Wk(){var t=t=>t[0],e=t=>t[1],n=p.xH,i=[-1,-1],r=960,s=500,a=2;function o(o,u){const l=Gk(i[0],o,t)>>a,c=Gk(i[1],o,e)>>a,f=l?l+2:0,d=c?c+2:0,h=2*f+(r>>a),p=2*d+(s>>a),m=new Float32Array(h*p),g=new Float32Array(h*p);let y=m;o.forEach((i=>{const r=f+(+t(i)>>a),s=d+(+e(i)>>a);if(r>=0&&r=0&&s0&&c>0){Xk(h,p,m,g,l);Hk(h,p,g,m,c);Xk(h,p,m,g,l);Hk(h,p,g,m,c);Xk(h,p,m,g,l);Hk(h,p,g,m,c)}else if(l>0){Xk(h,p,m,g,l);Xk(h,p,g,m,l);Xk(h,p,m,g,l);y=g}else if(c>0){Hk(h,p,m,g,c);Hk(h,p,g,m,c);Hk(h,p,m,g,c);y=g}const v=u?Math.pow(2,-2*a):1/tb(y);for(let t=0,e=h*p;t>a),y2:d+(s>>a)}}o.x=function(e){return arguments.length?(t=Yk(e),o):t};o.y=function(t){return arguments.length?(e=Yk(t),o):e};o.weight=function(t){return arguments.length?(n=Yk(t),o):n};o.size=function(t){if(!arguments.length)return[r,s];var e=+t[0],n=+t[1];if(!(e>=0&&n>=0))(0,p.z3)("invalid size");return r=e,s=n,o};o.cellSize=function(t){if(!arguments.length)return 1<=1))(0,p.z3)("invalid cell size");a=Math.floor(Math.log(t)/Math.LN2);return o};o.bandwidth=function(t){if(!arguments.length)return i;t=(0,p.YO)(t);if(t.length===1)t=[+t[0],+t[0]];if(t.length!==2)(0,p.z3)("invalid bandwidth");return i=t,o};return o}function Xk(t,e,n,i,r){const s=(r<<1)+1;for(let a=0;a=r){if(e>=s){o-=n[e-s+a*t]}i[e-r+a*t]=o/Math.min(e+1,t-1+s-e,s)}}}}function Hk(t,e,n,i,r){const s=(r<<1)+1;for(let a=0;a=r){if(o>=s){u-=n[a+(o-s)*t]}i[a+(o-r)*t]=u/Math.min(o+1,e-1+s-o,s)}}}}function Vk(t){Bi.call(this,null,t)}Vk.Definition={type:"KDE2D",metadata:{generates:true},params:[{name:"size",type:"number",array:true,length:2,required:true},{name:"x",type:"field",required:true},{name:"y",type:"field",required:true},{name:"weight",type:"field"},{name:"groupby",type:"field",array:true},{name:"cellSize",type:"number"},{name:"bandwidth",type:"number",array:true,length:2},{name:"counts",type:"boolean",default:false},{name:"as",type:"string",default:"grid"}]};const Qk=["x","y","weight","size","cellSize","bandwidth"];function Kk(t,e){Qk.forEach((n=>e[n]!=null?t[n](e[n]):0));return t}(0,p.B)(Vk,Bi,{transform(t,e){if(this.value&&!e.changed()&&!t.modified())return e.StopPropagation;var n=e.fork(e.NO_SOURCE|e.NO_FIELDS),i=e.materialize(e.SOURCE).source,r=Zk(i,t.groupby),s=(t.groupby||[]).map(p.N6),a=Kk(Wk(),t),o=t.as||"grid",u=[];function l(t,e){for(let n=0;nbn(l({[o]:a(e,t.counts)},e.dims))));if(this.value)n.rem=this.value;this.value=n.source=n.add=u;return n}});function Zk(t,e){var n=[],i=t=>t(o),r,s,a,o,u,l;if(e==null){n.push(t)}else{for(r={},s=0,a=t.length;sn.push(o(t))))}if(s&&a){e.visit(u,(t=>{var e=s(t),n=a(t);if(e!=null&&n!=null&&(e=+e)===e&&(n=+n)===n){i.push([e,n])}}));n=n.concat({type:tE,geometry:{type:nE,coordinates:i}})}this.value={type:eE,features:n}}});function rE(t){Bi.call(this,null,t)}rE.Definition={type:"GeoPath",metadata:{modifies:true},params:[{name:"projection",type:"projection"},{name:"field",type:"field"},{name:"pointRadius",type:"number",expr:true},{name:"as",type:"string",default:"path"}]};(0,p.B)(rE,Bi,{transform(t,e){var n=e.fork(e.ALL),i=this.value,r=t.field||p.D_,s=t.as||"path",a=n.SOURCE;if(!i||t.modified()){this.value=i=Ak(t.projection);n.materialize().reflow()}else{a=r===p.D_||e.modified(r.fields)?n.ADD_MOD:n.ADD}const o=sE(i,t.pointRadius);n.visit(a,(t=>t[s]=i(r(t))));i.pointRadius(o);return n.modifies(s)}});function sE(t,e){const n=t.pointRadius();t.context(null);if(e!=null){t.pointRadius(e)}return n}function aE(t){Bi.call(this,null,t)}aE.Definition={type:"GeoPoint",metadata:{modifies:true},params:[{name:"projection",type:"projection",required:true},{name:"fields",type:"field",array:true,required:true,length:2},{name:"as",type:"string",array:true,length:2,default:["x","y"]}]};(0,p.B)(aE,Bi,{transform(t,e){var n=t.projection,i=t.fields[0],r=t.fields[1],s=t.as||["x","y"],a=s[0],o=s[1],u;function l(t){const e=n([i(t),r(t)]);if(e){t[a]=e[0];t[o]=e[1]}else{t[a]=undefined;t[o]=undefined}}if(t.modified()){e=e.materialize().reflow(true).visit(e.SOURCE,l)}else{u=e.modified(i.fields)||e.modified(r.fields);e.visit(u?e.ADD_MOD:e.ADD,l)}return e.modifies(s)}});function oE(t){Bi.call(this,null,t)}oE.Definition={type:"GeoShape",metadata:{modifies:true,nomod:true},params:[{name:"projection",type:"projection"},{name:"field",type:"field",default:"datum"},{name:"pointRadius",type:"number",expr:true},{name:"as",type:"string",default:"shape"}]};(0,p.B)(oE,Bi,{transform(t,e){var n=e.fork(e.ALL),i=this.value,r=t.as||"shape",s=n.ADD;if(!i||t.modified()){this.value=i=uE(Ak(t.projection),t.field||(0,p.ZZ)("datum"),t.pointRadius);n.materialize().reflow();s=n.SOURCE}n.visit(s,(t=>t[r]=i));return n.modifies(r)}});function uE(t,e,n){const i=n==null?n=>t(e(n)):i=>{var r=t.pointRadius(),s=t.pointRadius(n)(e(i));t.pointRadius(r);return s};i.context=e=>{t.context(e);return i};return i}function lE(t){Bi.call(this,[],t);this.generator=Dk()}lE.Definition={type:"Graticule",metadata:{changes:true,generates:true},params:[{name:"extent",type:"array",array:true,length:2,content:{type:"number",array:true,length:2}},{name:"extentMajor",type:"array",array:true,length:2,content:{type:"number",array:true,length:2}},{name:"extentMinor",type:"array",array:true,length:2,content:{type:"number",array:true,length:2}},{name:"step",type:"number",array:true,length:2},{name:"stepMajor",type:"number",array:true,length:2,default:[90,360]},{name:"stepMinor",type:"number",array:true,length:2,default:[10,10]},{name:"precision",type:"number",default:2.5}]};(0,p.B)(lE,Bi,{transform(t,e){var n=this.value,i=this.generator,r;if(!n.length||t.modified()){for(const e in t){if((0,p.Tn)(i[e])){i[e](t[e])}}}r=i();if(n.length){e.mod.push(wn(n[0],r))}else{e.add.push(bn(r))}n[0]=r;return e}});function cE(t){Bi.call(this,null,t)}cE.Definition={type:"heatmap",metadata:{modifies:true},params:[{name:"field",type:"field"},{name:"color",type:"string",expr:true},{name:"opacity",type:"number",expr:true},{name:"resolve",type:"enum",values:["shared","independent"],default:"independent"},{name:"as",type:"string",default:"image"}]};(0,p.B)(cE,Bi,{transform(t,e){if(!e.changed()&&!t.modified()){return e.StopPropagation}var n=e.materialize(e.SOURCE).source,i=t.resolve==="shared",r=t.field||p.D_,s=dE(t.opacity,t),a=fE(t.color,t),o=t.as||"image",u={$x:0,$y:0,$value:0,$max:i?(0,Ni.A)(n.map((t=>(0,Ni.A)(r(t).values)))):0};n.forEach((t=>{const e=r(t);const n=(0,p.X$)({},t,u);if(!i)n.$max=(0,Ni.A)(e.values||[]);t[o]=pE(e,n,a.dep?a:(0,p.dY)(a(n)),s.dep?s:(0,p.dY)(s(n)))}));return e.reflow(true).modifies(o)}});function fE(t,e){let n;if((0,p.Tn)(t)){n=n=>(0,Fk.Qh)(t(n,e));n.dep=hE(t)}else{n=(0,p.dY)((0,Fk.Qh)(t||"#888"))}return n}function dE(t,e){let n;if((0,p.Tn)(t)){n=n=>t(n,e);n.dep=hE(t)}else if(t){n=(0,p.dY)(t)}else{n=t=>t.$value/t.$max||0;n.dep=true}return n}function hE(t){if(!(0,p.Tn)(t))return false;const e=(0,p.M1)((0,p.nS)(t));return e.$x||e.$y||e.$value||e.$max}function pE(t,e,n,i){const r=t.width,s=t.height,a=t.x1||0,o=t.y1||0,u=t.x2||r,l=t.y2||s,c=t.values,f=c?t=>c[t]:p.v_,d=Ko(u-a,l-o),h=d.getContext("2d"),m=h.getImageData(0,0,u-a,l-o),g=m.data;for(let p=o,y=0;p{if(t[e]!=null)vE(n,e,t[e])}))}else{xk.forEach((e=>{if(t.modified(e))vE(n,e,t[e])}))}if(t.pointRadius!=null)n.path.pointRadius(t.pointRadius);if(t.fit)gE(n,t);return e.fork(e.NO_SOURCE|e.NO_FIELDS)}});function gE(t,e){const n=bE(e.fit);e.extent?t.fitExtent(e.extent,n):e.size?t.fitSize(e.size,n):0}function yE(t){const e=wk((t||"mercator").toLowerCase());if(!e)(0,p.z3)("Unrecognized projection type: "+t);return e()}function vE(t,e,n){if((0,p.Tn)(t[e]))t[e](n)}function bE(t){t=(0,p.YO)(t);return t.length===1?t[0]:{type:eE,features:t.reduce(((t,e)=>t.concat(xE(e))),[])}}function xE(t){return t.type===eE?t.features:(0,p.YO)(t).filter((t=>t!=null)).map((t=>t.type===tE?t:{type:tE,geometry:t}))}function _E(t,e){var n,i=1;if(t==null)t=0;if(e==null)e=0;function r(){var r,s=n.length,a,o=0,u=0;for(r=0;r=(f=(o+l)/2))o=f;else l=f;if(g=n>=(d=(u+c)/2))u=d;else c=d;if(r=s,!(s=s[y=g<<1|m]))return r[y]=a,t}h=+t._x.call(null,s.data);p=+t._y.call(null,s.data);if(e===h&&n===p)return a.next=s,r?r[y]=a:t._root=a,t;do{r=r?r[y]=new Array(4):t._root=new Array(4);if(m=e>=(f=(o+l)/2))o=f;else l=f;if(g=n>=(d=(u+c)/2))u=d;else c=d}while((y=g<<1|m)===(v=(p>=d)<<1|h>=f));return r[v]=s,r[y]=a,t}function kE(t){var e,n,i=t.length,r,s,a=new Array(i),o=new Array(i),u=Infinity,l=Infinity,c=-Infinity,f=-Infinity;for(n=0;nc)c=r;if(sf)f=s}if(u>c||l>f)return this;this.cover(u,l).cover(c,f);for(n=0;nt||t>=r||i>e||e>=s){l=(ec||(o=p.y0)>f||(u=p.x1)=y)<<1|t>=g){p=d[d.length-1];d[d.length-1]=d[d.length-1-m];d[d.length-1-m]=p}}else{var v=t-+this._x.call(null,h.data),b=e-+this._y.call(null,h.data),x=v*v+b*b;if(x=(d=(a+u)/2))a=d;else u=d;if(m=f>=(h=(o+l)/2))o=h;else l=h;if(!(e=n,n=n[g=m<<1|p]))return this;if(!n.length)break;if(e[g+1&3]||e[g+2&3]||e[g+3&3])i=e,y=g}while(n.data!==t)if(!(r=n,n=n.next))return this;if(s=n.next)delete n.next;if(r)return s?r.next=s:delete r.next,this;if(!e)return this._root=s,this;s?e[g]=s:delete e[g];if((n=e[0]||e[1]||e[2]||e[3])&&n===(e[3]||e[2]||e[1]||e[0])&&!n.length){if(i)i[y]=n;else this._root=n}return this}function zE(t){for(var e=0,n=t.length;el.index){var m=c-o.x-o.vx,g=f-o.y-o.vy,y=m*m+g*g;if(yc+p||sf+p||at.r){t.r=t[e].r}}}function u(){if(!e)return;var i,r=e.length,s;n=new Array(r);for(i=0;i(t=(KE*t+ZE)%JE)/JE}function eM(t){return t.x}function nM(t){return t.y}var iM=10,rM=Math.PI*(3-Math.sqrt(5));function sM(t){var e,n=1,i=.001,r=1-Math.pow(i,1/300),s=0,a=.6,o=new Map,u=(0,QE.O1)(f),l=(0,VE.A)("tick","end"),c=tM();if(t==null)t=[];function f(){d();l.call("tick",e);if(n1?(n==null?o.delete(t):o.set(t,p(n)),e):o.get(t)},find:function(e,n,i){var r=0,s=t.length,a,o,u,l,c;if(i==null)i=Infinity;else i*=i;for(r=0;r1?(l.on(t,n),e):l.on(t)}}}function aM(){var t,e,n,i,r=GE(-30),s,a=1,o=Infinity,u=.81;function l(n){var r,s=t.length,a=qE(t,eM,nM).visitAfter(f);for(i=n,r=0;r=o)return;if(t.data!==e||t.next){if(f===0)f=YE(n),p+=f*f;if(d===0)d=YE(n),p+=d*d;if(p[e(t,n,a),t]))),f;for(n=0,o=new Array(r);n=0;)n.tick()}else{if(n.stopped())n.restart();if(!i)return e.StopPropagation}}return this.finish(t,e)},finish(t,e){const n=e.dataflow;for(let o=this._argops,u=0,l=o.length,c;ut.touch(e).run()}function bM(t,e){const n=sM(t),i=n.stop,r=n.restart;let s=false;n.stopped=()=>s;n.restart=()=>(s=false,r());n.stop=()=>(s=true,i());return xM(n,e,true).on("end",(()=>s=true))}function xM(t,e,n,i){var r=(0,p.YO)(e.forces),s,a,o,u;for(s=0,a=pM.length;se(t,n):e)}var kM=n(59459);var EM=n(431);var MM=n(90751);const DM=1664525;const CM=1013904223;const FM=4294967296;function SM(){let t=1;return()=>(t=(DM*t+CM)%FM)/FM}function zM(t){return typeof t==="object"&&"length"in t?t:Array.from(t)}function BM(t,e){let n=t.length,i,r;while(n){r=e()*n--|0;i=t[n];t[n]=t[r];t[r]=i}return t}function $M(t){return RM(t,lcg())}function RM(t,e){var n=0,i=(t=BM(Array.from(t),e)).length,r=[],s,a;while(n0&&n*n>i*i+r*r}function LM(t,e){for(var n=0;n1e-6?(D+Math.sqrt(D*D-4*M*C))/(2*M):C/D);return{x:i+w+A*F,y:r+k+E*F,r:F}}function jM(t,e,n){var i=t.x-e.x,r,s,a=t.y-e.y,o,u,l=i*i+a*a;if(l){s=e.r+n.r,s*=s;u=t.r+n.r,u*=u;if(s>u){r=(l+u-s)/(2*l);o=Math.sqrt(Math.max(0,u/l-r*r));n.x=t.x-r*i-o*a;n.y=t.y-r*a+o*i}else{r=(l+s-u)/(2*l);o=Math.sqrt(Math.max(0,s/l-r*r));n.x=e.x+r*i-o*a;n.y=e.y+r*a+o*i}}else{n.x=e.x+n.r;n.y=e.y}}function GM(t,e){var n=t.r+e.r-1e-6,i=e.x-t.x,r=e.y-t.y;return n>0&&n*n>i*i+r*r}function YM(t){var e=t._,n=t.next._,i=e.r+n.r,r=(e.x*n.r+n.x*e.r)/i,s=(e.y*n.r+n.y*e.r)/i;return r*r+s*s}function WM(t){this._=t;this.next=null;this.previous=null}function XM(t,e){if(!(s=(t=zM(t)).length))return 0;var n,i,r,s,a,o,u,l,c,f,d;n=t[0],n.x=0,n.y=0;if(!(s>1))return n.r;i=t[1],n.x=-i.r,i.x=n.r,i.y=0;if(!(s>2))return n.r+i.r;jM(i,n,r=t[2]);n=new WM(n),i=new WM(i),r=new WM(r);n.next=r.previous=i;i.next=n.previous=r;r.next=i.previous=n;t:for(u=3;ulD(n(t,e,i))));const e=t.map(cD);const o=new Set(t).add("");for(const n of e){if(!o.has(n)){o.add(n);t.push(n);e.push(cD(n));r.push(sD)}}s=(e,n)=>t[n];a=(t,n)=>e[n]}for(l=0,o=r.length;l=0;--t){d=r[t];if(d.data!==sD)break;d.data=null}}c.parent=iD;c.eachBefore((function(t){t.depth=t.parent.depth+1;--o})).eachBefore(kM.lW);c.parent=null;if(o>0)throw new Error("cycle");return c}i.id=function(e){return arguments.length?(t=(0,EM.l)(e),i):t};i.parentId=function(t){return arguments.length?(e=(0,EM.l)(t),i):e};i.path=function(t){return arguments.length?(n=(0,EM.l)(t),i):n};return i}function lD(t){t=`${t}`;let e=t.length;if(fD(t,e-1)&&!fD(t,e-2))t=t.slice(0,-1);return t[0]==="/"?t:`/${t}`}function cD(t){let e=t.length;if(e<2)return"";while(--e>1)if(fD(t,e))break;return t.slice(0,e)}function fD(t,e){if(t[e]==="/"){let n=0;while(e>0&&t[--e]==="\\")++n;if((n&1)===0)return true}return false}function dD(t,e){return t.parent===e.parent?1:2}function hD(t){var e=t.children;return e?e[0]:t.t}function pD(t){var e=t.children;return e?e[e.length-1]:t.t}function mD(t,e,n){var i=n/(e.i-t.i);e.c-=i;e.s+=n;t.c+=i;e.z+=n;e.m+=n}function gD(t){var e=0,n=0,i=t.children,r=i.length,s;while(--r>=0){s=i[r];s.z+=e;s.m+=e;e+=s.s+(n+=s.c)}}function yD(t,e,n){return t.a.parent===e.parent?t.a:n}function vD(t,e){this._=t;this.parent=null;this.children=null;this.A=null;this.a=this;this.z=0;this.m=0;this.c=0;this.s=0;this.t=null;this.i=e}vD.prototype=Object.create(kM.bP.prototype);function bD(t){var e=new vD(t,0),n,i=[e],r,s,a,o;while(n=i.pop()){if(s=n._.children){n.children=new Array(o=s.length);for(a=o-1;a>=0;--a){i.push(r=n.children[a]=new vD(s[a],a));r.parent=n}}}(e.parent=new vD(null,0)).children=[e];return e}function xD(){var t=dD,e=1,n=1,i=null;function r(r){var o=bD(r);o.eachAfter(s),o.parent.m=-o.z;o.eachBefore(a);if(i)r.eachBefore(u);else{var l=r,c=r,f=r;r.eachBefore((function(t){if(t.xc.x)c=t;if(t.depth>f.depth)f=t}));var d=l===c?1:t(l,c)/2,h=d-l.x,p=e/(c.x+d+h),m=n/(f.depth||1);r.eachBefore((function(t){t.x=(t.x+h)*p;t.y=t.depth*m}))}return r}function s(e){var n=e.children,i=e.parent.children,r=e.i?i[e.i-1]:null;if(n){gD(e);var s=(n[0].z+n[n.length-1].z)/2;if(r){e.z=r.z+t(e._,r._);e.m=e.z-s}else{e.z=s}}else if(r){e.z=r.z+t(e._,r._)}e.parent.A=o(e,r,e.parent.A||i[0])}function a(t){t._.x=t.z+t.parent.m;t.m+=t.parent.m}function o(e,n,i){if(n){var r=e,s=e,a=n,o=r.parent.children[0],u=r.m,l=s.m,c=a.m,f=o.m,d;while(a=pD(a),r=hD(r),a&&r){o=hD(o);s=pD(s);s.a=e;d=a.z+c-r.z-u+t(a._,r._);if(d>0){mD(yD(a,e,i),e,d);u+=d;l+=d}c+=a.m;u+=r.m;f+=o.m;l+=s.m}if(a&&!pD(s)){s.t=a;s.m+=c-l}if(r&&!hD(o)){o.t=r;o.m+=u-f;i=e}}return i}function u(t){t.x*=e;t.y=t.depth*n}r.separation=function(e){return arguments.length?(t=e,r):t};r.size=function(t){return arguments.length?(i=false,e=+t[0],n=+t[1],r):i?null:[e,n]};r.nodeSize=function(t){return arguments.length?(i=true,e=+t[0],n=+t[1],r):i?[e,n]:null};return r}function _D(t,e){return t.parent===e.parent?1:2}function wD(t){return t.reduce(AD,0)/t.length}function AD(t,e){return t+e.x}function kD(t){return 1+t.reduce(ED,0)}function ED(t,e){return Math.max(t,e.y)}function MD(t){var e;while(e=t.children)t=e[0];return t}function DD(t){var e;while(e=t.children)t=e[e.length-1];return t}function CD(){var t=_D,e=1,n=1,i=false;function r(r){var s,a=0;r.eachAfter((function(e){var n=e.children;if(n){e.x=wD(n);e.y=kD(n)}else{e.x=s?a+=t(e,s):0;e.y=0;s=e}}));var o=MD(r),u=DD(r),l=o.x-t(o,u)/2,c=u.x+t(u,o)/2;return r.eachAfter(i?function(t){t.x=(t.x-r.x)*e;t.y=(r.y-t.y)*n}:function(t){t.x=(t.x-l)/(c-l)*e;t.y=(1-(r.y?t.y/r.y:1))*n})}r.separation=function(e){return arguments.length?(t=e,r):t};r.size=function(t){return arguments.length?(i=false,e=+t[0],n=+t[1],r):i?null:[e,n]};r.nodeSize=function(t){return arguments.length?(i=true,e=+t[0],n=+t[1],r):i?[e,n]:null};return r}function FD(t,e,n,i,r){var s=t.children,a,o=s.length,u,l=new Array(o+1);for(l[0]=u=a=0;a=e-1){var u=s[t];u.x0=i,u.y0=r;u.x1=a,u.y1=o;return}var f=l[t],d=n/2+f,h=t+1,p=e-1;while(h>>1;if(l[m]o-r){var v=n?(i*y+a*g)/n:a;c(t,h,g,i,r,v,o);c(h,e,y,v,r,a,o)}else{var b=n?(r*y+o*g)/n:o;c(t,h,g,i,r,a,b);c(h,e,y,i,b,a,o)}}}var SD=n(48420);function zD(t,e,n,i,r){(t.depth&1?SD.A:eD.A)(t,e,n,i,r)}var BD=n(63462);const $D=function t(e){function n(t,n,i,r,s){if((a=t._squarify)&&a.ratio===e){var a,o,u,l,c=-1,f,d=a.length,h=t.value;while(++c1?e:1)};return n}(BD.U1);var RD=n(93926);function OD(t,e,n){const i={};t.each((t=>{const r=t.data;if(n(r))i[e(r)]=t}));t.lookup=i;return t}function TD(t){Bi.call(this,null,t)}TD.Definition={type:"Nest",metadata:{treesource:true,changes:true},params:[{name:"keys",type:"field",array:true},{name:"generate",type:"boolean"}]};const ND=t=>t.values;(0,p.B)(TD,Bi,{transform(t,e){if(!e.source){(0,p.z3)("Nest transform requires an upstream data source.")}var n=t.generate,i=t.modified(),r=e.clone(),s=this.value;if(!s||i||e.changed()){if(s){s.each((t=>{if(t.children&&gn(t.data)){r.rem.push(t.data)}}))}this.value=s=(0,kM.Ay)({values:(0,p.YO)(t.keys).reduce(((t,e)=>{t.key(e);return t}),LD()).entries(r.source)},ND);if(n){s.each((t=>{if(t.children){t=bn(t.data);r.add.push(t);r.source.push(t)}}))}OD(s,yn,yn)}r.source.root=s;return r}});function LD(){const t=[],e={entries:t=>i(n(t,0),0),key:n=>(t.push(n),e)};function n(e,i){if(i>=t.length){return e}const r=e.length,s=t[i++],a={},o={};let u=-1,l,c,f;while(++ut.length)return e;const r=[];for(const t in e){r.push({key:t,values:i(e[t],n)})}return r}return e}function PD(t){Bi.call(this,null,t)}const qD=(t,e)=>t.parent===e.parent?1:2;(0,p.B)(PD,Bi,{transform(t,e){if(!e.source||!e.source.root){(0,p.z3)(this.constructor.name+" transform requires a backing tree data source.")}const n=this.layout(t.method),i=this.fields,r=e.source.root,s=t.as||i;if(t.field)r.sum(t.field);else r.count();if(t.sort)r.sort(An(t.sort,(t=>t.data)));ID(n,this.params,t);if(n.separation){n.separation(t.separation!==false?qD:p.xH)}try{this.value=n(r)}catch(a){(0,p.z3)(a)}r.each((t=>UD(t,i,s)));return e.reflow(t.modified()).modifies(s).modifies("leaf")}});function ID(t,e,n){for(let i,r=0,s=e.length;rs[yn(t)]=1));i.each((t=>{const e=t.data,n=t.parent&&t.parent.data;if(n&&s[yn(e)]&&s[yn(n)]){r.add.push(bn({source:n,target:e}))}}));this.value=r.add}else if(e.changed(e.MOD)){e.visit(e.MOD,(t=>s[yn(t)]=1));n.forEach((t=>{if(s[yn(t.source)]||s[yn(t.target)]){r.mod.push(t)}}))}return r}});const ZD={binary:FD,dice:eD.A,slice:SD.A,slicedice:zD,squarify:BD.Ay,resquarify:$D};const JD=["x0","y0","x1","y1","depth","children"];function tC(t){PD.call(this,t)}tC.Definition={type:"Treemap",metadata:{tree:true,modifies:true},params:[{name:"field",type:"field"},{name:"sort",type:"compare"},{name:"method",type:"enum",default:"squarify",values:["squarify","resquarify","binary","dice","slice","slicedice"]},{name:"padding",type:"number",default:0},{name:"paddingInner",type:"number",default:0},{name:"paddingOuter",type:"number",default:0},{name:"paddingTop",type:"number",default:0},{name:"paddingRight",type:"number",default:0},{name:"paddingBottom",type:"number",default:0},{name:"paddingLeft",type:"number",default:0},{name:"ratio",type:"number",default:1.618033988749895},{name:"round",type:"boolean",default:false},{name:"size",type:"number",array:true,length:2},{name:"as",type:"string",array:true,length:JD.length,default:JD}]};(0,p.B)(tC,PD,{layout(){const t=(0,RD.A)();t.ratio=e=>{const n=t.tile();if(n.ratio)t.tile(n.ratio(e))};t.method=e=>{if((0,p.mQ)(ZD,e))t.tile(ZD[e]);else(0,p.z3)("Unrecognized Treemap layout method: "+e)};return t},params:["method","ratio","size","round","padding","paddingInner","paddingOuter","paddingTop","paddingRight","paddingBottom","paddingLeft"],fields:JD});const eC=4278190080;function nC(t,e){const n=t.bitmap();(e||[]).forEach((e=>n.set(t(e.boundary[0]),t(e.boundary[3]))));return[n,undefined]}function iC(t,e,n,i,r){const s=t.width,a=t.height,o=i||r,u=Ko(s,a).getContext("2d"),l=Ko(s,a).getContext("2d"),c=o&&Ko(s,a).getContext("2d");n.forEach((t=>sC(u,t,false)));sC(l,e,false);if(o){sC(c,e,true)}const f=rC(u,s,a),d=rC(l,s,a),h=o&&rC(c,s,a),p=t.bitmap(),m=o&&t.bitmap();let g,y,v,b,x,_,w,A;for(y=0;y{e.items.forEach((e=>sC(t,e.items,n)))}))}else{Qp[i].draw(t,{items:n?e.map(aC):e})}}function aC(t){const e=_n(t,{});if(e.stroke&&e.strokeOpacity!==0||e.fill&&e.fillOpacity!==0){return{...e,strokeOpacity:1,stroke:"#000",fillOpacity:0}}return e}const oC=5,uC=31,lC=32,cC=new Uint32Array(lC+1),fC=new Uint32Array(lC+1);fC[0]=0;cC[0]=~fC[0];for(let WY=1;WY<=lC;++WY){fC[WY]=fC[WY-1]<<1|1;cC[WY]=~fC[WY]}function dC(t,e){const n=new Uint32Array(~~((t*e+lC)/lC));function i(t,e){n[t]|=e}function r(t,e){n[t]&=e}return{array:n,get:(e,i)=>{const r=i*t+e;return n[r>>>oC]&1<<(r&uC)},set:(e,n)=>{const r=n*t+e;i(r>>>oC,1<<(r&uC))},clear:(e,n)=>{const i=n*t+e;r(i>>>oC,~(1<<(i&uC)))},getRange:(e,i,r,s)=>{let a=s,o,u,l,c;for(;a>=i;--a){o=a*t+e;u=a*t+r;l=o>>>oC;c=u>>>oC;if(l===c){if(n[l]&cC[o&uC]&fC[(u&uC)+1]){return true}}else{if(n[l]&cC[o&uC])return true;if(n[c]&fC[(u&uC)+1])return true;for(let t=l+1;t{let a,o,u,l,c;for(;n<=s;++n){a=n*t+e;o=n*t+r;u=a>>>oC;l=o>>>oC;if(u===l){i(u,cC[a&uC]&fC[(o&uC)+1])}else{i(u,cC[a&uC]);i(l,fC[(o&uC)+1]);for(c=u+1;c{let a,o,u,l,c;for(;n<=s;++n){a=n*t+e;o=n*t+i;u=a>>>oC;l=o>>>oC;if(u===l){r(u,fC[a&uC]|cC[(o&uC)+1])}else{r(u,fC[a&uC]);r(l,cC[(o&uC)+1]);for(c=u+1;cn<0||i<0||s>=e||r>=t}}function hC(t,e,n){const i=Math.max(1,Math.sqrt(t*e/1e6)),r=~~((t+2*n+i)/i),s=~~((e+2*n+i)/i),a=t=>~~((t+n)/i);a.invert=t=>t*i-n;a.bitmap=()=>dC(r,s);a.ratio=i;a.padding=n;a.width=t;a.height=e;return a}function pC(t,e,n,i){const r=t.width,s=t.height;return function(t){const e=t.datum.datum.items[i].items,n=e.length,a=t.datum.fontSize,o=Ap.width(t.datum,t.datum.text);let u=0,l,c,f,d,h,p,m;for(let i=0;i=u){u=m;t.x=h;t.y=p}}h=o/2;p=a/2;l=t.x-h;c=t.x+h;f=t.y-p;d=t.y+p;t.align="center";if(l<0&&c<=r){t.align="left"}else if(0<=l&&rr||e-(a=i/2)<0||e+a>s}function gC(t,e,n,i,r,s,a,o){const u=r*s/(i*2),l=t(e-u),c=t(e+u),f=t(n-(s=s/2)),d=t(n+s);return a.outOfBounds(l,f,c,d)||a.getRange(l,f,c,d)||o&&o.getRange(l,f,c,d)}function yC(t,e,n,i){const r=t.width,s=t.height,a=e[0],o=e[1];function u(e,n,i,u,l){const c=t.invert(e),f=t.invert(n);let d=i,h=s,p;if(!mC(c,f,u,l,r,s)&&!gC(t,c,f,l,u,d,a,o)&&!gC(t,c,f,l,u,l,a,null)){while(h-d>=1){p=(d+h)/2;if(gC(t,c,f,l,u,p,a,o)){h=p}else{d=p}}if(d>i){return[c,f,d,true]}}}return function(e){const o=e.datum.datum.items[i].items,l=o.length,c=e.datum.fontSize,f=Ap.width(e.datum,e.datum.text);let d=n?c:0,h=false,p=false,m=0,g,y,v,b,x,_,w,A,k,E,M,D,C,F,S,z,B;for(let i=0;iy){B=g;g=y;y=B}if(v>b){B=v;v=b;b=B}k=t(g);M=t(y);E=~~((k+M)/2);D=t(v);F=t(b);C=~~((D+F)/2);for(w=E;w>=k;--w){for(A=C;A>=D;--A){z=u(w,A,d,f,c);if(z){[e.x,e.y,d,h]=z}}}for(w=E;w<=M;++w){for(A=C;A<=F;++A){z=u(w,A,d,f,c);if(z){[e.x,e.y,d,h]=z}}}if(!h&&!n){S=Math.abs(y-g+b-v);x=(g+y)/2;_=(v+b)/2;if(S>=m&&!mC(x,_,f,c,r,s)&&!gC(t,x,_,c,f,c,a,null)){m=S;e.x=x;e.y=_;p=true}}}if(h||p){x=f/2;_=c/2;a.setRange(t(e.x-x),t(e.y-_),t(e.x+x),t(e.y+_));e.align="center";e.baseline="middle";return true}else{return false}}}const vC=[-1,-1,1,1];const bC=[-1,1,-1,1];function xC(t,e,n,i){const r=t.width,s=t.height,a=e[0],o=e[1],u=t.bitmap();return function(e){const l=e.datum.datum.items[i].items,c=l.length,f=e.datum.fontSize,d=Ap.width(e.datum,e.datum.text),h=[];let p=n?f:0,m=false,g=false,y=0,v,b,x,_,w,A,k,E,M,D,C,F;for(let i=0;i=1){C=(M+D)/2;if(gC(t,w,A,f,d,C,a,o)){D=C}else{M=C}}if(M>p){e.x=w;e.y=A;p=M;m=true}}}if(!m&&!n){F=Math.abs(b-v+_-x);w=(v+b)/2;A=(x+_)/2;if(F>=y&&!mC(w,A,d,f,r,s)&&!gC(t,w,A,f,d,f,a,null)){y=F;e.x=w;e.y=A;g=true}}}if(m||g){w=d/2;A=f/2;a.setRange(t(e.x-w),t(e.y-A),t(e.x+w),t(e.y+A));e.align="center";e.baseline="middle";return true}else{return false}}}const _C=["right","center","left"],wC=["bottom","middle","top"];function AC(t,e,n,i){const r=t.width,s=t.height,a=e[0],o=e[1],u=i.length;return function(e){const l=e.boundary,c=e.datum.fontSize;if(l[2]<0||l[5]<0||l[0]>r||l[3]>s){return false}let f=e.textWidth??0,d,h,p,m,g,y,v,b,x,_,w,A,k,E,M;for(let r=0;r>>2&3)-1;p=d===0&&h===0||i[r]<0;m=d&&h?Math.SQRT1_2:1;g=i[r]<0?-1:1;y=l[1+d]+i[r]*d*m;w=l[4+h]+g*c*h/2+i[r]*h*m;b=w-c/2;x=w+c/2;A=t(y);E=t(b);M=t(x);if(!f){if(!kC(A,A,E,M,a,o,y,y,b,x,l,p)){continue}else{f=Ap.width(e.datum,e.datum.text)}}_=y+g*f*d/2;y=_-f/2;v=_+f/2;A=t(y);k=t(v);if(kC(A,k,E,M,a,o,y,v,b,x,l,p)){e.x=!d?_:d*g<0?v:y;e.y=!h?w:h*g<0?x:b;e.align=_C[d*g+1];e.baseline=wC[h*g+1];a.setRange(A,E,k,M);return true}}return false}}function kC(t,e,n,i,r,s,a,o,u,l,c,f){return!(r.outOfBounds(t,n,e,i)||(f&&s||r).getRange(t,n,e,i))}const EC=0,MC=4,DC=8,CC=0,FC=1,SC=2;const zC={"top-left":EC+CC,top:EC+FC,"top-right":EC+SC,left:MC+CC,middle:MC+FC,right:MC+SC,"bottom-left":DC+CC,bottom:DC+FC,"bottom-right":DC+SC};const BC={naive:pC,"reduced-search":yC,floodfill:xC};function $C(t,e,n,i,r,s,a,o,u,l,c){if(!t.length)return t;const f=Math.max(i.length,r.length),d=RC(i,f),h=OC(r,f),p=TC(t[0].datum),m=p==="group"&&t[0].datum.items[u].marktype,g=m==="area",y=NC(p,m,o,u),v=l===null||l===Infinity,b=g&&c==="naive";let x=-1,_=-1;const w=t.map((t=>{const e=v?Ap.width(t,t.text):undefined;x=Math.max(x,e);_=Math.max(_,t.fontSize);return{datum:t,opacity:0,x:undefined,y:undefined,align:undefined,baseline:undefined,boundary:y(t),textWidth:e}}));l=l===null||l===Infinity?Math.max(x,_)+Math.max(...i):l;const A=hC(e[0],e[1],l);let k;if(!b){if(n){w.sort(((t,e)=>n(t.datum,e.datum)))}let e=false;for(let t=0;tt.datum));k=s.length||i?iC(A,i||[],s,e,g):nC(A,a&&w)}const E=g?BC[c](A,k,a,u):AC(A,k,h,d);w.forEach((t=>t.opacity=+E(t)));return w}function RC(t,e){const n=new Float64Array(e),i=t.length;for(let r=0;r[t.x,t.x,t.x,t.y,t.y,t.y];if(!t){return r}else if(t==="line"||t==="area"){return t=>r(t.datum)}else if(e==="line"){return t=>{const e=t.datum.items[i].items;return r(e.length?e[n==="start"?0:e.length-1]:{x:NaN,y:NaN})}}else{return t=>{const e=t.datum.bounds;return[e.x1,(e.x1+e.x2)/2,e.x2,e.y1,(e.y1+e.y2)/2,e.y2]}}}const LC=["x","y","opacity","align","baseline"];const PC=["top-left","left","bottom-left","top","bottom","top-right","right","bottom-right"];function qC(t){Bi.call(this,null,t)}qC.Definition={type:"Label",metadata:{modifies:true},params:[{name:"size",type:"number",array:true,length:2,required:true},{name:"sort",type:"compare"},{name:"anchor",type:"string",array:true,default:PC},{name:"offset",type:"number",array:true,default:[1]},{name:"padding",type:"number",default:0,null:true},{name:"lineAnchor",type:"string",values:["start","end"],default:"end"},{name:"markIndex",type:"number",default:0},{name:"avoidBaseMark",type:"boolean",default:true},{name:"avoidMarks",type:"data",array:true},{name:"method",type:"string",default:"naive"},{name:"as",type:"string",array:true,length:LC.length,default:LC}]};(0,p.B)(qC,Bi,{transform(t,e){function n(n){const i=t[n];return(0,p.Tn)(i)&&e.modified(i.fields)}const i=t.modified();if(!(i||e.changed(e.ADD_REM)||n("sort")))return;if(!t.size||t.size.length!==2){(0,p.z3)("Size parameter should be specified as a [width, height] array.")}const r=t.as||LC;$C(e.materialize(e.SOURCE).source||[],t.size,t.sort,(0,p.YO)(t.offset==null?1:t.offset),(0,p.YO)(t.anchor||PC),t.avoidMarks||[],t.avoidBaseMark!==false,t.lineAnchor||"end",t.markIndex||0,t.padding===undefined?0:t.padding,t.method||"naive").forEach((t=>{const e=t.datum;e[r[0]]=t.x;e[r[1]]=t.y;e[r[2]]=t.opacity;e[r[3]]=t.align;e[r[4]]=t.baseline}));return e.reflow(i).modifies(r)}});function IC(t,e){var n=[],i=function(t){return t(o)},r,s,a,o,u,l;if(e==null){n.push(t)}else{for(r={},s=0,a=t.length;s{Wr(e,t.x,t.y,t.bandwidth||.3).forEach((t=>{const n={};for(let i=0;it==="poly"?e:t==="quad"?2:1;function YC(t){Bi.call(this,null,t)}YC.Definition={type:"Regression",metadata:{generates:true},params:[{name:"x",type:"field",required:true},{name:"y",type:"field",required:true},{name:"groupby",type:"field",array:true},{name:"method",type:"string",default:"linear",values:Object.keys(jC)},{name:"order",type:"number",default:3},{name:"extent",type:"number",array:true,length:2},{name:"params",type:"boolean",default:false},{name:"as",type:"string",array:true}]};(0,p.B)(YC,Bi,{transform(t,e){const n=e.fork(e.NO_SOURCE|e.NO_FIELDS);if(!this.value||e.changed()||t.modified()){const i=e.materialize(e.SOURCE).source,r=IC(i,t.groupby),s=(t.groupby||[]).map(p.N6),a=t.method||"linear",o=t.order==null?3:t.order,u=GC(a,o),l=t.as||[(0,p.N6)(t.x),(0,p.N6)(t.y)],c=jC[a],f=[];let d=t.extent;if(!(0,p.mQ)(jC,a)){(0,p.z3)("Invalid regression method: "+a)}if(d!=null){if(a==="log"&&d[0]<=0){e.dataflow.warn("Ignoring extent with values <= 0 for log regression.");d=null}}r.forEach((n=>{const i=n.length;if(i<=u){e.dataflow.warn("Skipping regression with more parameters than data points.");return}const r=c(n,t.x,t.y,o);if(t.params){f.push(bn({keys:n.dims,coef:r.coef,rSquared:r.rSquared}));return}const h=d||(0,p.Xx)(n,t.x),m=t=>{const e={};for(let i=0;im([t,r.predict(t)])))}else{Kr(r.predict,h,25,200).forEach(m)}}));if(this.value)n.rem=this.value;this.value=n.add=n.source=f}return n}});const WC=11102230246251565e-32;const XC=134217729;const HC=(3+8*WC)*WC;function VC(t,e,n,i,r){let s,a,o,u;let l=e[0];let c=i[0];let f=0;let d=0;if(c>l===c>-l){s=l;l=e[++f]}else{s=c;c=i[++d]}let h=0;if(fl===c>-l){a=l+s;o=s-(a-l);l=e[++f]}else{a=c+s;o=s-(a-c);c=i[++d]}s=a;if(o!==0){r[h++]=o}while(fl===c>-l){a=s+l;u=a-s;o=s-(a-u)+(l-u);l=e[++f]}else{a=s+c;u=a-s;o=s-(a-u)+(c-u);c=i[++d]}s=a;if(o!==0){r[h++]=o}}}while(f=S||-F>=S){return F}f=t-E;o=t-(E+f)+(f-r);f=n-M;l=n-(M+f)+(f-r);f=e-D;u=e-(D+f)+(f-s);f=i-C;c=i-(C+f)+(f-s);if(o===0&&u===0&&l===0&&c===0){return F}S=iF*a+HC*Math.abs(F);F+=E*c+C*o-(D*l+M*u);if(F>=S||-F>=S)return F;x=o*C;d=XC*o;h=d-(d-o);p=o-h;d=XC*C;m=d-(d-C);g=C-m;_=p*g-(x-h*m-p*m-h*g);w=u*M;d=XC*u;h=d-(d-u);p=u-h;d=XC*M;m=d-(d-M);g=M-m;A=p*g-(w-h*m-p*m-h*g);y=_-A;f=_-y;uF[0]=_-(y+f)+(f-A);v=x+y;f=v-x;b=x-(v-f)+(y-f);y=b-w;f=b-y;uF[1]=b-(y+f)+(f-w);k=v+y;f=k-v;uF[2]=v-(k-f)+(y-f);uF[3]=k;const z=VC(4,rF,4,uF,sF);x=E*c;d=XC*E;h=d-(d-E);p=E-h;d=XC*c;m=d-(d-c);g=c-m;_=p*g-(x-h*m-p*m-h*g);w=D*l;d=XC*D;h=d-(d-D);p=D-h;d=XC*l;m=d-(d-l);g=l-m;A=p*g-(w-h*m-p*m-h*g);y=_-A;f=_-y;uF[0]=_-(y+f)+(f-A);v=x+y;f=v-x;b=x-(v-f)+(y-f);y=b-w;f=b-y;uF[1]=b-(y+f)+(f-w);k=v+y;f=k-v;uF[2]=v-(k-f)+(y-f);uF[3]=k;const B=VC(z,sF,4,uF,aF);x=o*c;d=XC*o;h=d-(d-o);p=o-h;d=XC*c;m=d-(d-c);g=c-m;_=p*g-(x-h*m-p*m-h*g);w=u*l;d=XC*u;h=d-(d-u);p=u-h;d=XC*l;m=d-(d-l);g=l-m;A=p*g-(w-h*m-p*m-h*g);y=_-A;f=_-y;uF[0]=_-(y+f)+(f-A);v=x+y;f=v-x;b=x-(v-f)+(y-f);y=b-w;f=b-y;uF[1]=b-(y+f)+(f-w);k=v+y;f=k-v;uF[2]=v-(k-f)+(y-f);uF[3]=k;const $=VC(B,aF,4,uF,oF);return oF[$-1]}function cF(t,e,n,i,r,s){const a=(e-s)*(n-r);const o=(t-r)*(i-s);const u=a-o;if(a===0||o===0||a>0!==o>0)return u;const l=Math.abs(a+o);if(Math.abs(u)>=eF*l)return u;return-lF(t,e,n,i,r,s,l)}function fF(t,e,n,i,r,s){return(e-s)*(n-r)-(t-r)*(i-s)}const dF=(7+56*WC)*WC;const hF=(3+28*WC)*WC;const pF=(26+288*WC)*WC*WC;const mF=tF(4);const gF=tF(4);const yF=tF(4);const vF=tF(4);const bF=tF(4);const xF=tF(4);const _F=tF(4);const wF=tF(4);const AF=tF(4);const kF=tF(8);const EF=tF(8);const MF=tF(8);const DF=tF(4);const CF=tF(8);const FF=tF(8);const SF=tF(8);const zF=tF(12);let BF=tF(192);let $F=tF(192);function RF(t,e,n){t=sum(t,BF,e,n,$F);const i=BF;BF=$F;$F=i;return t}function OF(t,e,n,i,r,s,a,o){let u,l,c,f,d,h,p,m,g,y,v,b,x,_,w,A;if(t===0){if(e===0){a[0]=0;o[0]=0;return 1}else{A=-e;v=A*n;l=splitter*A;c=l-(l-A);f=A-c;l=splitter*n;d=l-(l-n);h=n-d;a[0]=f*h-(v-c*d-f*d-c*h);a[1]=v;v=e*r;l=splitter*e;c=l-(l-e);f=e-c;l=splitter*r;d=l-(l-r);h=r-d;o[0]=f*h-(v-c*d-f*d-c*h);o[1]=v;return 2}}else{if(e===0){v=t*i;l=splitter*t;c=l-(l-t);f=t-c;l=splitter*i;d=l-(l-i);h=i-d;a[0]=f*h-(v-c*d-f*d-c*h);a[1]=v;A=-t;v=A*s;l=splitter*A;c=l-(l-A);f=A-c;l=splitter*s;d=l-(l-s);h=s-d;o[0]=f*h-(v-c*d-f*d-c*h);o[1]=v;return 2}else{v=t*i;l=splitter*t;c=l-(l-t);f=t-c;l=splitter*i;d=l-(l-i);h=i-d;b=f*h-(v-c*d-f*d-c*h);x=e*n;l=splitter*e;c=l-(l-e);f=e-c;l=splitter*n;d=l-(l-n);h=n-d;_=f*h-(x-c*d-f*d-c*h);p=b-_;u=b-p;a[0]=b-(p+u)+(u-_);m=v+p;u=m-v;y=v-(m-u)+(p-u);p=y-x;u=y-p;a[1]=y-(p+u)+(u-x);w=m+p;u=w-m;a[2]=m-(w-u)+(p-u);a[3]=w;v=e*r;l=splitter*e;c=l-(l-e);f=e-c;l=splitter*r;d=l-(l-r);h=r-d;b=f*h-(v-c*d-f*d-c*h);x=t*s;l=splitter*t;c=l-(l-t);f=t-c;l=splitter*s;d=l-(l-s);h=s-d;_=f*h-(x-c*d-f*d-c*h);p=b-_;u=b-p;o[0]=b-(p+u)+(u-_);m=v+p;u=m-v;y=v-(m-u)+(p-u);p=y-x;u=y-p;o[1]=y-(p+u)+(u-x);w=m+p;u=w-m;o[2]=m-(w-u)+(p-u);o[3]=w;return 4}}}function TF(t,e,n,i,r){let s,a,o,u,l,c,f,d,h,p,m,g,y;m=e*n;a=splitter*e;o=a-(a-e);u=e-o;a=splitter*n;l=a-(a-n);c=n-l;g=u*c-(m-o*l-u*l-o*c);a=splitter*i;l=a-(a-i);c=i-l;f=g*i;a=splitter*g;o=a-(a-g);u=g-o;DF[0]=u*c-(f-o*l-u*l-o*c);d=m*i;a=splitter*m;o=a-(a-m);u=m-o;p=u*c-(d-o*l-u*l-o*c);h=f+p;s=h-f;DF[1]=f-(h-s)+(p-s);y=d+h;DF[2]=h-(y-d);DF[3]=y;t=RF(t,4,DF);if(r!==0){a=splitter*r;l=a-(a-r);c=r-l;f=g*r;a=splitter*g;o=a-(a-g);u=g-o;DF[0]=u*c-(f-o*l-u*l-o*c);d=m*r;a=splitter*m;o=a-(a-m);u=m-o;p=u*c-(d-o*l-u*l-o*c);h=f+p;s=h-f;DF[1]=f-(h-s)+(p-s);y=d+h;DF[2]=h-(y-d);DF[3]=y;t=RF(t,4,DF)}return t}function NF(t,e,n,i,r,s,a,o,u,l,c,f,d){let h;let p,m,g;let y,v,b;let x,_,w;let A,k,E,M,D,C,F,S,z,B,$,R,O,T,N;const L=t-l;const P=i-l;const q=a-l;const I=e-c;const U=r-c;const j=o-c;const G=n-f;const Y=s-f;const W=u-f;$=P*j;k=splitter*P;E=k-(k-P);M=P-E;k=splitter*j;D=k-(k-j);C=j-D;R=M*C-($-E*D-M*D-E*C);O=q*U;k=splitter*q;E=k-(k-q);M=q-E;k=splitter*U;D=k-(k-U);C=U-D;T=M*C-(O-E*D-M*D-E*C);F=R-T;A=R-F;mF[0]=R-(F+A)+(A-T);S=$+F;A=S-$;B=$-(S-A)+(F-A);F=B-O;A=B-F;mF[1]=B-(F+A)+(A-O);N=S+F;A=N-S;mF[2]=S-(N-A)+(F-A);mF[3]=N;$=q*I;k=splitter*q;E=k-(k-q);M=q-E;k=splitter*I;D=k-(k-I);C=I-D;R=M*C-($-E*D-M*D-E*C);O=L*j;k=splitter*L;E=k-(k-L);M=L-E;k=splitter*j;D=k-(k-j);C=j-D;T=M*C-(O-E*D-M*D-E*C);F=R-T;A=R-F;gF[0]=R-(F+A)+(A-T);S=$+F;A=S-$;B=$-(S-A)+(F-A);F=B-O;A=B-F;gF[1]=B-(F+A)+(A-O);N=S+F;A=N-S;gF[2]=S-(N-A)+(F-A);gF[3]=N;$=L*U;k=splitter*L;E=k-(k-L);M=L-E;k=splitter*U;D=k-(k-U);C=U-D;R=M*C-($-E*D-M*D-E*C);O=P*I;k=splitter*P;E=k-(k-P);M=P-E;k=splitter*I;D=k-(k-I);C=I-D;T=M*C-(O-E*D-M*D-E*C);F=R-T;A=R-F;yF[0]=R-(F+A)+(A-T);S=$+F;A=S-$;B=$-(S-A)+(F-A);F=B-O;A=B-F;yF[1]=B-(F+A)+(A-O);N=S+F;A=N-S;yF[2]=S-(N-A)+(F-A);yF[3]=N;h=sum(sum(scale(4,mF,G,CF),CF,scale(4,gF,Y,FF),FF,SF),SF,scale(4,yF,W,CF),CF,BF);let X=estimate(h,BF);let H=hF*d;if(X>=H||-X>=H){return X}A=t-L;p=t-(L+A)+(A-l);A=i-P;m=i-(P+A)+(A-l);A=a-q;g=a-(q+A)+(A-l);A=e-I;y=e-(I+A)+(A-c);A=r-U;v=r-(U+A)+(A-c);A=o-j;b=o-(j+A)+(A-c);A=n-G;x=n-(G+A)+(A-f);A=s-Y;_=s-(Y+A)+(A-f);A=u-W;w=u-(W+A)+(A-f);if(p===0&&m===0&&g===0&&y===0&&v===0&&b===0&&x===0&&_===0&&w===0){return X}H=pF*d+resulterrbound*Math.abs(X);X+=G*(P*b+j*m-(U*g+q*v))+x*(P*j-U*q)+Y*(q*y+I*g-(j*p+L*b))+_*(q*I-j*L)+W*(L*v+U*p-(I*m+P*y))+w*(L*U-I*P);if(X>=H||-X>=H){return X}const V=OF(p,y,P,U,q,j,vF,bF);const Q=OF(m,v,q,j,L,I,xF,_F);const K=OF(g,b,L,I,P,U,wF,AF);const Z=sum(Q,xF,K,AF,kF);h=RF(h,scale(Z,kF,G,SF),SF);const J=sum(K,wF,V,bF,EF);h=RF(h,scale(J,EF,Y,SF),SF);const tt=sum(V,vF,Q,_F,MF);h=RF(h,scale(tt,MF,W,SF),SF);if(x!==0){h=RF(h,scale(4,mF,x,zF),zF);h=RF(h,scale(Z,kF,x,SF),SF)}if(_!==0){h=RF(h,scale(4,gF,_,zF),zF);h=RF(h,scale(J,EF,_,SF),SF)}if(w!==0){h=RF(h,scale(4,yF,w,zF),zF);h=RF(h,scale(tt,MF,w,SF),SF)}if(p!==0){if(v!==0){h=TF(h,p,v,W,w)}if(b!==0){h=TF(h,-p,b,Y,_)}}if(m!==0){if(b!==0){h=TF(h,m,b,G,x)}if(y!==0){h=TF(h,-m,y,W,w)}}if(g!==0){if(y!==0){h=TF(h,g,y,Y,_)}if(v!==0){h=TF(h,-g,v,G,x)}}return BF[h-1]}function LF(t,e,n,i,r,s,a,o,u,l,c,f){const d=t-l;const h=i-l;const p=a-l;const m=e-c;const g=r-c;const y=o-c;const v=n-f;const b=s-f;const x=u-f;const _=h*y;const w=p*g;const A=p*m;const k=d*y;const E=d*g;const M=h*m;const D=v*(_-w)+b*(A-k)+x*(E-M);const C=(Math.abs(_)+Math.abs(w))*Math.abs(v)+(Math.abs(A)+Math.abs(k))*Math.abs(b)+(Math.abs(E)+Math.abs(M))*Math.abs(x);const F=dF*C;if(D>F||-D>F){return D}return NF(t,e,n,i,r,s,a,o,u,l,c,f,C)}function PF(t,e,n,i,r,s,a,o,u,l,c,f){const d=t-l;const h=i-l;const p=a-l;const m=e-c;const g=r-c;const y=o-c;const v=n-f;const b=s-f;const x=u-f;return d*(g*x-b*y)+h*(y*v-x*m)+p*(m*b-v*g)}const qF=(10+96*WC)*WC;const IF=(4+48*WC)*WC;const UF=(44+576*WC)*WC*WC;const jF=tF(4);const GF=tF(4);const YF=tF(4);const WF=tF(4);const XF=tF(4);const HF=tF(4);const VF=tF(4);const QF=tF(4);const KF=tF(8);const ZF=tF(8);const JF=tF(8);const tS=tF(8);const eS=tF(8);const nS=tF(8);const iS=tF(8);const rS=tF(8);const sS=tF(8);const aS=tF(4);const oS=tF(4);const uS=tF(4);const lS=tF(8);const cS=tF(16);const fS=tF(16);const dS=tF(16);const hS=tF(32);const pS=tF(32);const mS=tF(48);const gS=tF(64);let yS=tF(1152);let vS=tF(1152);function bS(t,e,n){t=sum(t,yS,e,n,vS);const i=yS;yS=vS;vS=i;return t}function xS(t,e,n,i,r,s,a,o,u){let l;let c,f,d,h,p,m;let g,y,v,b,x,_;let w,A,k;let E,M,D;let C,F;let S,z,B,$,R,O,T,N,L,P,q,I,U,j;const G=t-a;const Y=n-a;const W=r-a;const X=e-o;const H=i-o;const V=s-o;P=Y*V;z=splitter*Y;B=z-(z-Y);$=Y-B;z=splitter*V;R=z-(z-V);O=V-R;q=$*O-(P-B*R-$*R-B*O);I=W*H;z=splitter*W;B=z-(z-W);$=W-B;z=splitter*H;R=z-(z-H);O=H-R;U=$*O-(I-B*R-$*R-B*O);T=q-U;S=q-T;jF[0]=q-(T+S)+(S-U);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L-I;S=L-T;jF[1]=L-(T+S)+(S-I);j=N+T;S=j-N;jF[2]=N-(j-S)+(T-S);jF[3]=j;P=W*X;z=splitter*W;B=z-(z-W);$=W-B;z=splitter*X;R=z-(z-X);O=X-R;q=$*O-(P-B*R-$*R-B*O);I=G*V;z=splitter*G;B=z-(z-G);$=G-B;z=splitter*V;R=z-(z-V);O=V-R;U=$*O-(I-B*R-$*R-B*O);T=q-U;S=q-T;GF[0]=q-(T+S)+(S-U);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L-I;S=L-T;GF[1]=L-(T+S)+(S-I);j=N+T;S=j-N;GF[2]=N-(j-S)+(T-S);GF[3]=j;P=G*H;z=splitter*G;B=z-(z-G);$=G-B;z=splitter*H;R=z-(z-H);O=H-R;q=$*O-(P-B*R-$*R-B*O);I=Y*X;z=splitter*Y;B=z-(z-Y);$=Y-B;z=splitter*X;R=z-(z-X);O=X-R;U=$*O-(I-B*R-$*R-B*O);T=q-U;S=q-T;YF[0]=q-(T+S)+(S-U);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L-I;S=L-T;YF[1]=L-(T+S)+(S-I);j=N+T;S=j-N;YF[2]=N-(j-S)+(T-S);YF[3]=j;l=sum(sum(sum(scale(scale(4,jF,G,lS),lS,G,cS),cS,scale(scale(4,jF,X,lS),lS,X,fS),fS,hS),hS,sum(scale(scale(4,GF,Y,lS),lS,Y,cS),cS,scale(scale(4,GF,H,lS),lS,H,fS),fS,pS),pS,gS),gS,sum(scale(scale(4,YF,W,lS),lS,W,cS),cS,scale(scale(4,YF,V,lS),lS,V,fS),fS,hS),hS,yS);let Q=estimate(l,yS);let K=IF*u;if(Q>=K||-Q>=K){return Q}S=t-G;c=t-(G+S)+(S-a);S=e-X;h=e-(X+S)+(S-o);S=n-Y;f=n-(Y+S)+(S-a);S=i-H;p=i-(H+S)+(S-o);S=r-W;d=r-(W+S)+(S-a);S=s-V;m=s-(V+S)+(S-o);if(c===0&&f===0&&d===0&&h===0&&p===0&&m===0){return Q}K=UF*u+resulterrbound*Math.abs(Q);Q+=(G*G+X*X)*(Y*m+V*f-(H*d+W*p))+2*(G*c+X*h)*(Y*V-H*W)+((Y*Y+H*H)*(W*h+X*d-(V*c+G*m))+2*(Y*f+H*p)*(W*X-V*G))+((W*W+V*V)*(G*p+H*c-(X*f+Y*h))+2*(W*d+V*m)*(G*H-X*Y));if(Q>=K||-Q>=K){return Q}if(f!==0||p!==0||d!==0||m!==0){P=G*G;z=splitter*G;B=z-(z-G);$=G-B;q=$*$-(P-B*B-(B+B)*$);I=X*X;z=splitter*X;B=z-(z-X);$=X-B;U=$*$-(I-B*B-(B+B)*$);T=q+U;S=T-q;WF[0]=q-(T-S)+(U-S);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L+I;S=T-L;WF[1]=L-(T-S)+(I-S);j=N+T;S=j-N;WF[2]=N-(j-S)+(T-S);WF[3]=j}if(d!==0||m!==0||c!==0||h!==0){P=Y*Y;z=splitter*Y;B=z-(z-Y);$=Y-B;q=$*$-(P-B*B-(B+B)*$);I=H*H;z=splitter*H;B=z-(z-H);$=H-B;U=$*$-(I-B*B-(B+B)*$);T=q+U;S=T-q;XF[0]=q-(T-S)+(U-S);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L+I;S=T-L;XF[1]=L-(T-S)+(I-S);j=N+T;S=j-N;XF[2]=N-(j-S)+(T-S);XF[3]=j}if(c!==0||h!==0||f!==0||p!==0){P=W*W;z=splitter*W;B=z-(z-W);$=W-B;q=$*$-(P-B*B-(B+B)*$);I=V*V;z=splitter*V;B=z-(z-V);$=V-B;U=$*$-(I-B*B-(B+B)*$);T=q+U;S=T-q;HF[0]=q-(T-S)+(U-S);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L+I;S=T-L;HF[1]=L-(T-S)+(I-S);j=N+T;S=j-N;HF[2]=N-(j-S)+(T-S);HF[3]=j}if(c!==0){g=scale(4,jF,c,KF);l=bS(l,sum_three(scale(g,KF,2*G,cS),cS,scale(scale(4,HF,c,lS),lS,H,fS),fS,scale(scale(4,XF,c,lS),lS,-V,dS),dS,hS,mS),mS)}if(h!==0){y=scale(4,jF,h,ZF);l=bS(l,sum_three(scale(y,ZF,2*X,cS),cS,scale(scale(4,XF,h,lS),lS,W,fS),fS,scale(scale(4,HF,h,lS),lS,-Y,dS),dS,hS,mS),mS)}if(f!==0){v=scale(4,GF,f,JF);l=bS(l,sum_three(scale(v,JF,2*Y,cS),cS,scale(scale(4,WF,f,lS),lS,V,fS),fS,scale(scale(4,HF,f,lS),lS,-X,dS),dS,hS,mS),mS)}if(p!==0){b=scale(4,GF,p,tS);l=bS(l,sum_three(scale(b,tS,2*H,cS),cS,scale(scale(4,HF,p,lS),lS,G,fS),fS,scale(scale(4,WF,p,lS),lS,-W,dS),dS,hS,mS),mS)}if(d!==0){x=scale(4,YF,d,eS);l=bS(l,sum_three(scale(x,eS,2*W,cS),cS,scale(scale(4,XF,d,lS),lS,X,fS),fS,scale(scale(4,WF,d,lS),lS,-H,dS),dS,hS,mS),mS)}if(m!==0){_=scale(4,YF,m,nS);l=bS(l,sum_three(scale(_,nS,2*V,cS),cS,scale(scale(4,WF,m,lS),lS,Y,fS),fS,scale(scale(4,XF,m,lS),lS,-G,dS),dS,hS,mS),mS)}if(c!==0||h!==0){if(f!==0||p!==0||d!==0||m!==0){P=f*V;z=splitter*f;B=z-(z-f);$=f-B;z=splitter*V;R=z-(z-V);O=V-R;q=$*O-(P-B*R-$*R-B*O);I=Y*m;z=splitter*Y;B=z-(z-Y);$=Y-B;z=splitter*m;R=z-(z-m);O=m-R;U=$*O-(I-B*R-$*R-B*O);T=q+U;S=T-q;VF[0]=q-(T-S)+(U-S);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L+I;S=T-L;VF[1]=L-(T-S)+(I-S);j=N+T;S=j-N;VF[2]=N-(j-S)+(T-S);VF[3]=j;P=d*-H;z=splitter*d;B=z-(z-d);$=d-B;z=splitter*-H;R=z-(z- -H);O=-H-R;q=$*O-(P-B*R-$*R-B*O);I=W*-p;z=splitter*W;B=z-(z-W);$=W-B;z=splitter*-p;R=z-(z- -p);O=-p-R;U=$*O-(I-B*R-$*R-B*O);T=q+U;S=T-q;QF[0]=q-(T-S)+(U-S);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L+I;S=T-L;QF[1]=L-(T-S)+(I-S);j=N+T;S=j-N;QF[2]=N-(j-S)+(T-S);QF[3]=j;A=sum(4,VF,4,QF,rS);P=f*m;z=splitter*f;B=z-(z-f);$=f-B;z=splitter*m;R=z-(z-m);O=m-R;q=$*O-(P-B*R-$*R-B*O);I=d*p;z=splitter*d;B=z-(z-d);$=d-B;z=splitter*p;R=z-(z-p);O=p-R;U=$*O-(I-B*R-$*R-B*O);T=q-U;S=q-T;oS[0]=q-(T+S)+(S-U);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L-I;S=L-T;oS[1]=L-(T+S)+(S-I);j=N+T;S=j-N;oS[2]=N-(j-S)+(T-S);oS[3]=j;M=4}else{rS[0]=0;A=1;oS[0]=0;M=1}if(c!==0){const t=scale(A,rS,c,dS);l=bS(l,sum(scale(g,KF,c,cS),cS,scale(t,dS,2*G,hS),hS,mS),mS);const e=scale(M,oS,c,lS);l=bS(l,sum_three(scale(e,lS,2*G,cS),cS,scale(e,lS,c,fS),fS,scale(t,dS,c,hS),hS,pS,gS),gS);if(p!==0){l=bS(l,scale(scale(4,HF,c,lS),lS,p,cS),cS)}if(m!==0){l=bS(l,scale(scale(4,XF,-c,lS),lS,m,cS),cS)}}if(h!==0){const t=scale(A,rS,h,dS);l=bS(l,sum(scale(y,ZF,h,cS),cS,scale(t,dS,2*X,hS),hS,mS),mS);const e=scale(M,oS,h,lS);l=bS(l,sum_three(scale(e,lS,2*X,cS),cS,scale(e,lS,h,fS),fS,scale(t,dS,h,hS),hS,pS,gS),gS)}}if(f!==0||p!==0){if(d!==0||m!==0||c!==0||h!==0){P=d*X;z=splitter*d;B=z-(z-d);$=d-B;z=splitter*X;R=z-(z-X);O=X-R;q=$*O-(P-B*R-$*R-B*O);I=W*h;z=splitter*W;B=z-(z-W);$=W-B;z=splitter*h;R=z-(z-h);O=h-R;U=$*O-(I-B*R-$*R-B*O);T=q+U;S=T-q;VF[0]=q-(T-S)+(U-S);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L+I;S=T-L;VF[1]=L-(T-S)+(I-S);j=N+T;S=j-N;VF[2]=N-(j-S)+(T-S);VF[3]=j;C=-V;F=-m;P=c*C;z=splitter*c;B=z-(z-c);$=c-B;z=splitter*C;R=z-(z-C);O=C-R;q=$*O-(P-B*R-$*R-B*O);I=G*F;z=splitter*G;B=z-(z-G);$=G-B;z=splitter*F;R=z-(z-F);O=F-R;U=$*O-(I-B*R-$*R-B*O);T=q+U;S=T-q;QF[0]=q-(T-S)+(U-S);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L+I;S=T-L;QF[1]=L-(T-S)+(I-S);j=N+T;S=j-N;QF[2]=N-(j-S)+(T-S);QF[3]=j;k=sum(4,VF,4,QF,sS);P=d*h;z=splitter*d;B=z-(z-d);$=d-B;z=splitter*h;R=z-(z-h);O=h-R;q=$*O-(P-B*R-$*R-B*O);I=c*m;z=splitter*c;B=z-(z-c);$=c-B;z=splitter*m;R=z-(z-m);O=m-R;U=$*O-(I-B*R-$*R-B*O);T=q-U;S=q-T;uS[0]=q-(T+S)+(S-U);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L-I;S=L-T;uS[1]=L-(T+S)+(S-I);j=N+T;S=j-N;uS[2]=N-(j-S)+(T-S);uS[3]=j;D=4}else{sS[0]=0;k=1;uS[0]=0;D=1}if(f!==0){const t=scale(k,sS,f,dS);l=bS(l,sum(scale(v,JF,f,cS),cS,scale(t,dS,2*Y,hS),hS,mS),mS);const e=scale(D,uS,f,lS);l=bS(l,sum_three(scale(e,lS,2*Y,cS),cS,scale(e,lS,f,fS),fS,scale(t,dS,f,hS),hS,pS,gS),gS);if(m!==0){l=bS(l,scale(scale(4,WF,f,lS),lS,m,cS),cS)}if(h!==0){l=bS(l,scale(scale(4,HF,-f,lS),lS,h,cS),cS)}}if(p!==0){const t=scale(k,sS,p,dS);l=bS(l,sum(scale(b,tS,p,cS),cS,scale(t,dS,2*H,hS),hS,mS),mS);const e=scale(D,uS,p,lS);l=bS(l,sum_three(scale(e,lS,2*H,cS),cS,scale(e,lS,p,fS),fS,scale(t,dS,p,hS),hS,pS,gS),gS)}}if(d!==0||m!==0){if(c!==0||h!==0||f!==0||p!==0){P=c*H;z=splitter*c;B=z-(z-c);$=c-B;z=splitter*H;R=z-(z-H);O=H-R;q=$*O-(P-B*R-$*R-B*O);I=G*p;z=splitter*G;B=z-(z-G);$=G-B;z=splitter*p;R=z-(z-p);O=p-R;U=$*O-(I-B*R-$*R-B*O);T=q+U;S=T-q;VF[0]=q-(T-S)+(U-S);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L+I;S=T-L;VF[1]=L-(T-S)+(I-S);j=N+T;S=j-N;VF[2]=N-(j-S)+(T-S);VF[3]=j;C=-X;F=-h;P=f*C;z=splitter*f;B=z-(z-f);$=f-B;z=splitter*C;R=z-(z-C);O=C-R;q=$*O-(P-B*R-$*R-B*O);I=Y*F;z=splitter*Y;B=z-(z-Y);$=Y-B;z=splitter*F;R=z-(z-F);O=F-R;U=$*O-(I-B*R-$*R-B*O);T=q+U;S=T-q;QF[0]=q-(T-S)+(U-S);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L+I;S=T-L;QF[1]=L-(T-S)+(I-S);j=N+T;S=j-N;QF[2]=N-(j-S)+(T-S);QF[3]=j;w=sum(4,VF,4,QF,iS);P=c*p;z=splitter*c;B=z-(z-c);$=c-B;z=splitter*p;R=z-(z-p);O=p-R;q=$*O-(P-B*R-$*R-B*O);I=f*h;z=splitter*f;B=z-(z-f);$=f-B;z=splitter*h;R=z-(z-h);O=h-R;U=$*O-(I-B*R-$*R-B*O);T=q-U;S=q-T;aS[0]=q-(T+S)+(S-U);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L-I;S=L-T;aS[1]=L-(T+S)+(S-I);j=N+T;S=j-N;aS[2]=N-(j-S)+(T-S);aS[3]=j;E=4}else{iS[0]=0;w=1;aS[0]=0;E=1}if(d!==0){const t=scale(w,iS,d,dS);l=bS(l,sum(scale(x,eS,d,cS),cS,scale(t,dS,2*W,hS),hS,mS),mS);const e=scale(E,aS,d,lS);l=bS(l,sum_three(scale(e,lS,2*W,cS),cS,scale(e,lS,d,fS),fS,scale(t,dS,d,hS),hS,pS,gS),gS);if(h!==0){l=bS(l,scale(scale(4,XF,d,lS),lS,h,cS),cS)}if(p!==0){l=bS(l,scale(scale(4,WF,-d,lS),lS,p,cS),cS)}}if(m!==0){const t=scale(w,iS,m,dS);l=bS(l,sum(scale(_,nS,m,cS),cS,scale(t,dS,2*V,hS),hS,mS),mS);const e=scale(E,aS,m,lS);l=bS(l,sum_three(scale(e,lS,2*V,cS),cS,scale(e,lS,m,fS),fS,scale(t,dS,m,hS),hS,pS,gS),gS)}}return yS[l-1]}function _S(t,e,n,i,r,s,a,o){const u=t-a;const l=n-a;const c=r-a;const f=e-o;const d=i-o;const h=s-o;const p=l*h;const m=c*d;const g=u*u+f*f;const y=c*f;const v=u*h;const b=l*l+d*d;const x=u*d;const _=l*f;const w=c*c+h*h;const A=g*(p-m)+b*(y-v)+w*(x-_);const k=(Math.abs(p)+Math.abs(m))*g+(Math.abs(y)+Math.abs(v))*b+(Math.abs(x)+Math.abs(_))*w;const E=qF*k;if(A>E||-A>E){return A}return xS(t,e,n,i,r,s,a,o,k)}function wS(t,e,n,i,r,s,a,o){const u=t-a;const l=e-o;const c=n-a;const f=i-o;const d=r-a;const h=s-o;const p=u*f-c*l;const m=c*h-d*f;const g=d*l-u*h;const y=u*u+l*l;const v=c*c+f*f;const b=d*d+h*h;return y*m+v*g+b*p}const AS=(16+224*WC)*WC;const kS=(5+72*WC)*WC;const ES=(71+1408*WC)*WC*WC;const MS=tF(4);const DS=tF(4);const CS=tF(4);const FS=tF(4);const SS=tF(4);const zS=tF(4);const BS=tF(4);const $S=tF(4);const RS=tF(4);const OS=tF(4);const TS=tF(24);const NS=tF(24);const LS=tF(24);const PS=tF(24);const qS=tF(24);const IS=tF(24);const US=tF(24);const jS=tF(24);const GS=tF(24);const YS=tF(24);const WS=tF(1152);const XS=tF(1152);const HS=tF(1152);const VS=tF(1152);const QS=tF(1152);const KS=tF(2304);const ZS=tF(2304);const JS=tF(3456);const tz=tF(5760);const ez=tF(8);const nz=tF(8);const iz=tF(8);const rz=tF(16);const sz=tF(24);const az=tF(48);const oz=tF(48);const uz=tF(96);const lz=tF(192);const cz=tF(384);const fz=tF(384);const dz=tF(384);const hz=tF(768);function pz(t,e,n,i,r,s,a){return sum_three(scale(4,t,i,ez),ez,scale(4,e,r,nz),nz,scale(4,n,s,iz),iz,rz,a)}function mz(t,e,n,i,r,s,a,o,u,l,c,f){const d=sum(sum(t,e,n,i,az),az,negate(sum(r,s,a,o,oz),oz),oz,uz);return sum_three(scale(scale(d,uz,u,lz),lz,u,cz),cz,scale(scale(d,uz,l,lz),lz,l,fz),fz,scale(scale(d,uz,c,lz),lz,c,dz),dz,hz,f)}function gz(t,e,n,i,r,s,a,o,u,l,c,f,d,h,p){let m,g,y,v,b,x,_,w,A,k,E,M,D,C;k=t*r;g=splitter*t;y=g-(g-t);v=t-y;g=splitter*r;b=g-(g-r);x=r-b;E=v*x-(k-y*b-v*b-y*x);M=i*e;g=splitter*i;y=g-(g-i);v=i-y;g=splitter*e;b=g-(g-e);x=e-b;D=v*x-(M-y*b-v*b-y*x);_=E-D;m=E-_;MS[0]=E-(_+m)+(m-D);w=k+_;m=w-k;A=k-(w-m)+(_-m);_=A-M;m=A-_;MS[1]=A-(_+m)+(m-M);C=w+_;m=C-w;MS[2]=w-(C-m)+(_-m);MS[3]=C;k=i*o;g=splitter*i;y=g-(g-i);v=i-y;g=splitter*o;b=g-(g-o);x=o-b;E=v*x-(k-y*b-v*b-y*x);M=a*r;g=splitter*a;y=g-(g-a);v=a-y;g=splitter*r;b=g-(g-r);x=r-b;D=v*x-(M-y*b-v*b-y*x);_=E-D;m=E-_;DS[0]=E-(_+m)+(m-D);w=k+_;m=w-k;A=k-(w-m)+(_-m);_=A-M;m=A-_;DS[1]=A-(_+m)+(m-M);C=w+_;m=C-w;DS[2]=w-(C-m)+(_-m);DS[3]=C;k=a*c;g=splitter*a;y=g-(g-a);v=a-y;g=splitter*c;b=g-(g-c);x=c-b;E=v*x-(k-y*b-v*b-y*x);M=l*o;g=splitter*l;y=g-(g-l);v=l-y;g=splitter*o;b=g-(g-o);x=o-b;D=v*x-(M-y*b-v*b-y*x);_=E-D;m=E-_;CS[0]=E-(_+m)+(m-D);w=k+_;m=w-k;A=k-(w-m)+(_-m);_=A-M;m=A-_;CS[1]=A-(_+m)+(m-M);C=w+_;m=C-w;CS[2]=w-(C-m)+(_-m);CS[3]=C;k=l*h;g=splitter*l;y=g-(g-l);v=l-y;g=splitter*h;b=g-(g-h);x=h-b;E=v*x-(k-y*b-v*b-y*x);M=d*c;g=splitter*d;y=g-(g-d);v=d-y;g=splitter*c;b=g-(g-c);x=c-b;D=v*x-(M-y*b-v*b-y*x);_=E-D;m=E-_;FS[0]=E-(_+m)+(m-D);w=k+_;m=w-k;A=k-(w-m)+(_-m);_=A-M;m=A-_;FS[1]=A-(_+m)+(m-M);C=w+_;m=C-w;FS[2]=w-(C-m)+(_-m);FS[3]=C;k=d*e;g=splitter*d;y=g-(g-d);v=d-y;g=splitter*e;b=g-(g-e);x=e-b;E=v*x-(k-y*b-v*b-y*x);M=t*h;g=splitter*t;y=g-(g-t);v=t-y;g=splitter*h;b=g-(g-h);x=h-b;D=v*x-(M-y*b-v*b-y*x);_=E-D;m=E-_;SS[0]=E-(_+m)+(m-D);w=k+_;m=w-k;A=k-(w-m)+(_-m);_=A-M;m=A-_;SS[1]=A-(_+m)+(m-M);C=w+_;m=C-w;SS[2]=w-(C-m)+(_-m);SS[3]=C;k=t*o;g=splitter*t;y=g-(g-t);v=t-y;g=splitter*o;b=g-(g-o);x=o-b;E=v*x-(k-y*b-v*b-y*x);M=a*e;g=splitter*a;y=g-(g-a);v=a-y;g=splitter*e;b=g-(g-e);x=e-b;D=v*x-(M-y*b-v*b-y*x);_=E-D;m=E-_;zS[0]=E-(_+m)+(m-D);w=k+_;m=w-k;A=k-(w-m)+(_-m);_=A-M;m=A-_;zS[1]=A-(_+m)+(m-M);C=w+_;m=C-w;zS[2]=w-(C-m)+(_-m);zS[3]=C;k=i*c;g=splitter*i;y=g-(g-i);v=i-y;g=splitter*c;b=g-(g-c);x=c-b;E=v*x-(k-y*b-v*b-y*x);M=l*r;g=splitter*l;y=g-(g-l);v=l-y;g=splitter*r;b=g-(g-r);x=r-b;D=v*x-(M-y*b-v*b-y*x);_=E-D;m=E-_;BS[0]=E-(_+m)+(m-D);w=k+_;m=w-k;A=k-(w-m)+(_-m);_=A-M;m=A-_;BS[1]=A-(_+m)+(m-M);C=w+_;m=C-w;BS[2]=w-(C-m)+(_-m);BS[3]=C;k=a*h;g=splitter*a;y=g-(g-a);v=a-y;g=splitter*h;b=g-(g-h);x=h-b;E=v*x-(k-y*b-v*b-y*x);M=d*o;g=splitter*d;y=g-(g-d);v=d-y;g=splitter*o;b=g-(g-o);x=o-b;D=v*x-(M-y*b-v*b-y*x);_=E-D;m=E-_;$S[0]=E-(_+m)+(m-D);w=k+_;m=w-k;A=k-(w-m)+(_-m);_=A-M;m=A-_;$S[1]=A-(_+m)+(m-M);C=w+_;m=C-w;$S[2]=w-(C-m)+(_-m);$S[3]=C;k=l*e;g=splitter*l;y=g-(g-l);v=l-y;g=splitter*e;b=g-(g-e);x=e-b;E=v*x-(k-y*b-v*b-y*x);M=t*c;g=splitter*t;y=g-(g-t);v=t-y;g=splitter*c;b=g-(g-c);x=c-b;D=v*x-(M-y*b-v*b-y*x);_=E-D;m=E-_;RS[0]=E-(_+m)+(m-D);w=k+_;m=w-k;A=k-(w-m)+(_-m);_=A-M;m=A-_;RS[1]=A-(_+m)+(m-M);C=w+_;m=C-w;RS[2]=w-(C-m)+(_-m);RS[3]=C;k=d*r;g=splitter*d;y=g-(g-d);v=d-y;g=splitter*r;b=g-(g-r);x=r-b;E=v*x-(k-y*b-v*b-y*x);M=i*h;g=splitter*i;y=g-(g-i);v=i-y;g=splitter*h;b=g-(g-h);x=h-b;D=v*x-(M-y*b-v*b-y*x);_=E-D;m=E-_;OS[0]=E-(_+m)+(m-D);w=k+_;m=w-k;A=k-(w-m)+(_-m);_=A-M;m=A-_;OS[1]=A-(_+m)+(m-M);C=w+_;m=C-w;OS[2]=w-(C-m)+(_-m);OS[3]=C;const F=pz(MS,DS,zS,u,n,-s,TS);const S=pz(DS,CS,BS,f,s,-u,NS);const z=pz(CS,FS,$S,p,u,-f,LS);const B=pz(FS,SS,RS,n,f,-p,PS);const $=pz(SS,MS,OS,s,p,-n,qS);const R=pz(MS,BS,RS,f,n,s,IS);const O=pz(DS,$S,OS,p,s,u,US);const T=pz(CS,RS,zS,n,u,f,jS);const N=pz(FS,OS,BS,s,f,p,GS);const L=pz(SS,zS,$S,u,p,n,YS);const P=sum_three(mz(z,LS,O,US,N,GS,S,NS,t,e,n,WS),WS,mz(B,PS,T,jS,L,YS,z,LS,i,r,s,XS),XS,sum_three(mz($,qS,N,GS,R,IS,B,PS,a,o,u,HS),HS,mz(F,TS,L,YS,O,US,$,qS,l,c,f,VS),VS,mz(S,NS,R,IS,T,jS,F,TS,d,h,p,QS),QS,ZS,JS),JS,KS,tz);return tz[P-1]}const yz=tF(96);const vz=tF(96);const bz=tF(96);const xz=tF(1152);function _z(t,e,n,i,r,s,a,o,u,l){const c=pz(t,e,n,i,r,s,sz);return sum_three(scale(scale(c,sz,a,az),az,a,yz),yz,scale(scale(c,sz,o,az),az,o,vz),vz,scale(scale(c,sz,u,az),az,u,bz),bz,lz,l)}function wz(t,e,n,i,r,s,a,o,u,l,c,f,d,h,p,m){let g,y,v,b,x,_;let w,A,k,E;let M,D,C,F;let S,z,B,$;let R,O,T,N,L,P,q,I,U,j,G,Y,W;const X=t-d;const H=i-d;const V=a-d;const Q=l-d;const K=e-h;const Z=r-h;const J=o-h;const tt=c-h;const et=n-p;const nt=s-p;const it=u-p;const rt=f-p;j=X*Z;O=splitter*X;T=O-(O-X);N=X-T;O=splitter*Z;L=O-(O-Z);P=Z-L;G=N*P-(j-T*L-N*L-T*P);Y=H*K;O=splitter*H;T=O-(O-H);N=H-T;O=splitter*K;L=O-(O-K);P=K-L;W=N*P-(Y-T*L-N*L-T*P);q=G-W;R=G-q;MS[0]=G-(q+R)+(R-W);I=j+q;R=I-j;U=j-(I-R)+(q-R);q=U-Y;R=U-q;MS[1]=U-(q+R)+(R-Y);g=I+q;R=g-I;MS[2]=I-(g-R)+(q-R);MS[3]=g;j=H*J;O=splitter*H;T=O-(O-H);N=H-T;O=splitter*J;L=O-(O-J);P=J-L;G=N*P-(j-T*L-N*L-T*P);Y=V*Z;O=splitter*V;T=O-(O-V);N=V-T;O=splitter*Z;L=O-(O-Z);P=Z-L;W=N*P-(Y-T*L-N*L-T*P);q=G-W;R=G-q;DS[0]=G-(q+R)+(R-W);I=j+q;R=I-j;U=j-(I-R)+(q-R);q=U-Y;R=U-q;DS[1]=U-(q+R)+(R-Y);y=I+q;R=y-I;DS[2]=I-(y-R)+(q-R);DS[3]=y;j=V*tt;O=splitter*V;T=O-(O-V);N=V-T;O=splitter*tt;L=O-(O-tt);P=tt-L;G=N*P-(j-T*L-N*L-T*P);Y=Q*J;O=splitter*Q;T=O-(O-Q);N=Q-T;O=splitter*J;L=O-(O-J);P=J-L;W=N*P-(Y-T*L-N*L-T*P);q=G-W;R=G-q;CS[0]=G-(q+R)+(R-W);I=j+q;R=I-j;U=j-(I-R)+(q-R);q=U-Y;R=U-q;CS[1]=U-(q+R)+(R-Y);v=I+q;R=v-I;CS[2]=I-(v-R)+(q-R);CS[3]=v;j=Q*K;O=splitter*Q;T=O-(O-Q);N=Q-T;O=splitter*K;L=O-(O-K);P=K-L;G=N*P-(j-T*L-N*L-T*P);Y=X*tt;O=splitter*X;T=O-(O-X);N=X-T;O=splitter*tt;L=O-(O-tt);P=tt-L;W=N*P-(Y-T*L-N*L-T*P);q=G-W;R=G-q;RS[0]=G-(q+R)+(R-W);I=j+q;R=I-j;U=j-(I-R)+(q-R);q=U-Y;R=U-q;RS[1]=U-(q+R)+(R-Y);b=I+q;R=b-I;RS[2]=I-(b-R)+(q-R);RS[3]=b;j=X*J;O=splitter*X;T=O-(O-X);N=X-T;O=splitter*J;L=O-(O-J);P=J-L;G=N*P-(j-T*L-N*L-T*P);Y=V*K;O=splitter*V;T=O-(O-V);N=V-T;O=splitter*K;L=O-(O-K);P=K-L;W=N*P-(Y-T*L-N*L-T*P);q=G-W;R=G-q;zS[0]=G-(q+R)+(R-W);I=j+q;R=I-j;U=j-(I-R)+(q-R);q=U-Y;R=U-q;zS[1]=U-(q+R)+(R-Y);x=I+q;R=x-I;zS[2]=I-(x-R)+(q-R);zS[3]=x;j=H*tt;O=splitter*H;T=O-(O-H);N=H-T;O=splitter*tt;L=O-(O-tt);P=tt-L;G=N*P-(j-T*L-N*L-T*P);Y=Q*Z;O=splitter*Q;T=O-(O-Q);N=Q-T;O=splitter*Z;L=O-(O-Z);P=Z-L;W=N*P-(Y-T*L-N*L-T*P);q=G-W;R=G-q;BS[0]=G-(q+R)+(R-W);I=j+q;R=I-j;U=j-(I-R)+(q-R);q=U-Y;R=U-q;BS[1]=U-(q+R)+(R-Y);_=I+q;R=_-I;BS[2]=I-(_-R)+(q-R);BS[3]=_;const st=sum(sum(negate(_z(DS,CS,BS,rt,nt,-it,X,K,et,WS),WS),WS,_z(CS,RS,zS,et,it,rt,H,Z,nt,XS),XS,KS),KS,sum(negate(_z(RS,MS,BS,nt,rt,et,V,J,it,HS),HS),HS,_z(MS,DS,zS,it,et,-nt,Q,tt,rt,VS),VS,ZS),ZS,xz);let at=estimate(st,xz);let ot=kS*m;if(at>=ot||-at>=ot){return at}R=t-X;w=t-(X+R)+(R-d);R=e-K;M=e-(K+R)+(R-h);R=n-et;S=n-(et+R)+(R-p);R=i-H;A=i-(H+R)+(R-d);R=r-Z;D=r-(Z+R)+(R-h);R=s-nt;z=s-(nt+R)+(R-p);R=a-V;k=a-(V+R)+(R-d);R=o-J;C=o-(J+R)+(R-h);R=u-it;B=u-(it+R)+(R-p);R=l-Q;E=l-(Q+R)+(R-d);R=c-tt;F=c-(tt+R)+(R-h);R=f-rt;$=f-(rt+R)+(R-p);if(w===0&&M===0&&S===0&&A===0&&D===0&&z===0&&k===0&&C===0&&B===0&&E===0&&F===0&&$===0){return at}ot=ES*m+resulterrbound*Math.abs(at);const ut=X*D+Z*w-(K*A+H*M);const lt=H*C+J*A-(Z*k+V*D);const ct=V*F+tt*k-(J*E+Q*C);const ft=Q*M+K*E-(tt*w+X*F);const dt=X*C+J*w-(K*k+V*M);const ht=H*F+tt*A-(Z*E+Q*D);at+=(H*H+Z*Z+nt*nt)*(it*ft+rt*dt+et*ct+(B*b+$*x+S*v))+(Q*Q+tt*tt+rt*rt)*(et*lt-nt*dt+it*ut+(S*y-z*x+B*g))-((X*X+K*K+et*et)*(nt*ct-it*ht+rt*lt+(z*v-B*_+$*y))+(V*V+J*J+it*it)*(rt*ut+et*ht+nt*ft+($*g+S*_+z*b)))+2*((H*A+Z*D+nt*z)*(it*b+rt*x+et*v)+(Q*E+tt*F+rt*$)*(et*y-nt*x+it*g)-((X*w+K*M+et*S)*(nt*v-it*_+rt*y)+(V*k+J*C+it*B)*(rt*g+et*_+nt*b)));if(at>=ot||-at>=ot){return at}return gz(t,e,n,i,r,s,a,o,u,l,c,f,d,h,p)}function Az(t,e,n,i,r,s,a,o,u,l,c,f,d,h,p){const m=t-d;const g=i-d;const y=a-d;const v=l-d;const b=e-h;const x=r-h;const _=o-h;const w=c-h;const A=n-p;const k=s-p;const E=u-p;const M=f-p;const D=m*x;const C=g*b;const F=D-C;const S=g*_;const z=y*x;const B=S-z;const $=y*w;const R=v*_;const O=$-R;const T=v*b;const N=m*w;const L=T-N;const P=m*_;const q=y*b;const I=P-q;const U=g*w;const j=v*x;const G=U-j;const Y=A*B-k*I+E*F;const W=k*O-E*G+M*B;const X=E*L+M*I+A*O;const H=M*F+A*G+k*L;const V=m*m+b*b+A*A;const Q=g*g+x*x+k*k;const K=y*y+_*_+E*E;const Z=v*v+w*w+M*M;const J=K*H-Z*Y+(V*W-Q*X);const tt=Math.abs(A);const et=Math.abs(k);const nt=Math.abs(E);const it=Math.abs(M);const rt=Math.abs(D);const st=Math.abs(C);const at=Math.abs(S);const ot=Math.abs(z);const ut=Math.abs($);const lt=Math.abs(R);const ct=Math.abs(T);const ft=Math.abs(N);const dt=Math.abs(P);const ht=Math.abs(q);const pt=Math.abs(U);const mt=Math.abs(j);const gt=((ut+lt)*et+(mt+pt)*nt+(at+ot)*it)*V+((ct+ft)*nt+(dt+ht)*it+(ut+lt)*tt)*Q+((rt+st)*it+(pt+mt)*tt+(ct+ft)*et)*K+((at+ot)*tt+(ht+dt)*et+(rt+st)*nt)*Z;const yt=AS*gt;if(J>yt||-J>yt){return J}return-wz(t,e,n,i,r,s,a,o,u,l,c,f,d,h,p,gt)}function kz(t,e,n,i,r,s,a,o,u,l,c,f,d,h,p){const m=t-d;const g=i-d;const y=a-d;const v=l-d;const b=e-h;const x=r-h;const _=o-h;const w=c-h;const A=n-p;const k=s-p;const E=u-p;const M=f-p;const D=m*x-g*b;const C=g*_-y*x;const F=y*w-v*_;const S=v*b-m*w;const z=m*_-y*b;const B=g*w-v*x;const $=A*C-k*z+E*D;const R=k*F-E*B+M*C;const O=E*S+M*z+A*F;const T=M*D+A*B+k*S;const N=m*m+b*b+A*A;const L=g*g+x*x+k*k;const P=y*y+_*_+E*E;const q=v*v+w*w+M*M;return P*T-q*$+(N*R-L*O)}const Ez=Math.pow(2,-52);const Mz=new Uint32Array(512);class Dz{static from(t,e=Oz,n=Tz){const i=t.length;const r=new Float64Array(i*2);for(let s=0;s>1;if(e>0&&typeof t[0]!=="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const n=Math.max(2*e-5,0);this._triangles=new Uint32Array(n*3);this._halfedges=new Int32Array(n*3);this._hashSize=Math.ceil(Math.sqrt(e));this._hullPrev=new Uint32Array(e);this._hullNext=new Uint32Array(e);this._hullTri=new Uint32Array(e);this._hullHash=new Int32Array(this._hashSize).fill(-1);this._ids=new Uint32Array(e);this._dists=new Float64Array(e);this.update()}update(){const{coords:t,_hullPrev:e,_hullNext:n,_hullTri:i,_hullHash:r}=this;const s=t.length>>1;let a=Infinity;let o=Infinity;let u=-Infinity;let l=-Infinity;for(let E=0;Eu)u=e;if(n>l)l=n;this._ids[E]=E}const c=(a+u)/2;const f=(o+l)/2;let d=Infinity;let h,p,m;for(let E=0;E0){p=E;d=e}}let v=t[2*p];let b=t[2*p+1];let x=Infinity;for(let E=0;Ei){e[n++]=r;i=this._dists[r]}}this.hull=e.subarray(0,n);this.triangles=new Uint32Array(0);this.halfedges=new Uint32Array(0);return}if(cF(g,y,v,b,_,w)<0){const t=p;const e=v;const n=b;p=m;v=_;b=w;m=t;_=e;w=n}const A=Bz(g,y,v,b,_,w);this._cx=A.x;this._cy=A.y;for(let E=0;E0&&Math.abs(a-M)<=Ez&&Math.abs(o-D)<=Ez)continue;M=a;D=o;if(s===h||s===p||s===m)continue;let u=0;for(let t=0,e=this._hashKey(a,o);t=0){l=c;if(l===u){l=-1;break}}if(l===-1)continue;let f=this._addTriangle(l,s,n[l],-1,-1,i[l]);i[s]=this._legalize(f+2);i[l]=f;k++;let d=n[l];while(c=n[d],cF(a,o,t[2*d],t[2*d+1],t[2*c],t[2*c+1])<0){f=this._addTriangle(d,s,c,i[s],-1,i[d]);i[s]=this._legalize(f+2);n[d]=d;k--;d=c}if(l===u){while(c=e[l],cF(a,o,t[2*c],t[2*c+1],t[2*l],t[2*l+1])<0){f=this._addTriangle(c,s,l,-1,i[l],i[c]);this._legalize(f+2);i[c]=f;n[l]=l;k--;l=c}}this._hullStart=e[s]=l;n[l]=e[d]=s;n[s]=d;r[this._hashKey(a,o)]=s;r[this._hashKey(t[2*l],t[2*l+1])]=l}this.hull=new Uint32Array(k);for(let E=0,M=this._hullStart;E0?3-n:1+n)/4}function Fz(t,e,n,i){const r=t-n;const s=e-i;return r*r+s*s}function Sz(t,e,n,i,r,s,a,o){const u=t-a;const l=e-o;const c=n-a;const f=i-o;const d=r-a;const h=s-o;const p=u*u+l*l;const m=c*c+f*f;const g=d*d+h*h;return u*(f*g-m*h)-l*(c*g-m*d)+p*(c*h-f*d)<0}function zz(t,e,n,i,r,s){const a=n-t;const o=i-e;const u=r-t;const l=s-e;const c=a*a+o*o;const f=u*u+l*l;const d=.5/(a*l-o*u);const h=(l*c-o*f)*d;const p=(a*f-u*c)*d;return h*h+p*p}function Bz(t,e,n,i,r,s){const a=n-t;const o=i-e;const u=r-t;const l=s-e;const c=a*a+o*o;const f=u*u+l*l;const d=.5/(a*l-o*u);const h=t+(l*c-o*f)*d;const p=e+(a*f-u*c)*d;return{x:h,y:p}}function $z(t,e,n,i){if(i-n<=20){for(let r=n+1;r<=i;r++){const i=t[r];const s=e[i];let a=r-1;while(a>=n&&e[t[a]]>s)t[a+1]=t[a--];t[a+1]=i}}else{const r=n+i>>1;let s=n+1;let a=i;Rz(t,r,s);if(e[t[n]]>e[t[i]])Rz(t,n,i);if(e[t[s]]>e[t[i]])Rz(t,s,i);if(e[t[n]]>e[t[s]])Rz(t,n,s);const o=t[s];const u=e[o];while(true){do{s++}while(e[t[s]]u);if(a=a-n){$z(t,e,s,i);$z(t,e,n,a-1)}else{$z(t,e,n,a-1);$z(t,e,s,i)}}}function Rz(t,e,n){const i=t[e];t[e]=t[n];t[n]=i}function Oz(t){return t[0]}function Tz(t){return t[1]}const Nz=1e-6;class Lz{constructor(){this._x0=this._y0=this._x1=this._y1=null;this._=""}moveTo(t,e){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){if(this._x1!==null){this._x1=this._x0,this._y1=this._y0;this._+="Z"}}lineTo(t,e){this._+=`L${this._x1=+t},${this._y1=+e}`}arc(t,e,n){t=+t,e=+e,n=+n;const i=t+n;const r=e;if(n<0)throw new Error("negative radius");if(this._x1===null)this._+=`M${i},${r}`;else if(Math.abs(this._x1-i)>Nz||Math.abs(this._y1-r)>Nz)this._+="L"+i+","+r;if(!n)return;this._+=`A${n},${n},0,1,1,${t-n},${e}A${n},${n},0,1,1,${this._x1=i},${this._y1=r}`}rect(t,e,n,i){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${+n}v${+i}h${-n}Z`}value(){return this._||null}}class Pz{constructor(){this._=[]}moveTo(t,e){this._.push([t,e])}closePath(){this._.push(this._[0].slice())}lineTo(t,e){this._.push([t,e])}value(){return this._.length?this._:null}}class qz{constructor(t,[e,n,i,r]=[0,0,960,500]){if(!((i=+i)>=(e=+e))||!((r=+r)>=(n=+n)))throw new Error("invalid bounds");this.delaunay=t;this._circumcenters=new Float64Array(t.points.length*2);this.vectors=new Float64Array(t.points.length*2);this.xmax=i,this.xmin=e;this.ymax=r,this.ymin=n;this._init()}update(){this.delaunay.update();this._init();return this}_init(){const{delaunay:{points:t,hull:e,triangles:n},vectors:i}=this;let r,s;const a=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let p=0,m=0,g=n.length,y,v;p1)r-=2;for(let s=2;s0){if(e>=this.ymax)return null;if((s=(this.ymax-e)/i)0){if(t>=this.xmax)return null;if((s=(this.xmax-t)/n)this.xmax?2:0)|(ethis.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let e=0;e1e-10)return false}return true}function Wz(t,e,n){return[t+Math.sin(t+e)*n,e+Math.cos(t-e)*n]}class Xz{static from(t,e=jz,n=Gz,i){return new Xz("length"in t?Hz(t,e,n,i):Float64Array.from(Vz(t,e,n,i)))}constructor(t){this._delaunator=new Dz(t);this.inedges=new Int32Array(t.length/2);this._hullIndex=new Int32Array(t.length/2);this.points=this._delaunator.coords;this._init()}update(){this._delaunator.update();this._init();return this}_init(){const t=this._delaunator,e=this.points;if(t.hull&&t.hull.length>2&&Yz(t)){this.collinear=Int32Array.from({length:e.length/2},((t,e)=>e)).sort(((t,n)=>e[2*t]-e[2*n]||e[2*t+1]-e[2*n+1]));const t=this.collinear[0],n=this.collinear[this.collinear.length-1],i=[e[2*t],e[2*t+1],e[2*n],e[2*n+1]],r=1e-8*Math.hypot(i[3]-i[1],i[2]-i[0]);for(let s=0,a=e.length/2;s0){this.triangles=new Int32Array(3).fill(-1);this.halfedges=new Int32Array(3).fill(-1);this.triangles[0]=i[0];s[i[0]]=1;if(i.length===2){s[i[1]]=0;this.triangles[1]=i[1];this.triangles[2]=i[1]}}}voronoi(t){return new qz(this,t)}*neighbors(t){const{inedges:e,hull:n,_hullIndex:i,halfedges:r,triangles:s,collinear:a}=this;if(a){const e=a.indexOf(t);if(e>0)yield a[e-1];if(e=0&&r!==n&&r!==i)n=r;return r}_step(t,e,n){const{inedges:i,hull:r,_hullIndex:s,halfedges:a,triangles:o,points:u}=this;if(i[t]===-1||!u.length)return(t+1)%(u.length>>1);let l=t;let c=Uz(e-u[t*2],2)+Uz(n-u[t*2+1],2);const f=i[t];let d=f;do{let i=o[d];const f=Uz(e-u[i*2],2)+Uz(n-u[i*2+1],2);if(f>5,nB=1<<11;function iB(){var t=[256,256],e,n,i,r,s,a,o,u=uB,l=[],c=Math.random,f={};f.layout=function(){var u=d(Ko()),f=cB((t[0]>>5)*t[1]),p=null,m=l.length,g=-1,y=[],v=l.map((t=>({text:e(t),font:n(t),style:r(t),weight:s(t),rotate:a(t),size:~~(i(t)+1e-14),padding:o(t),xoff:0,yoff:0,x1:0,y1:0,x0:0,y0:0,hasText:false,sprite:null,datum:t}))).sort(((t,e)=>e.size-t.size));while(++g>1;b.y=t[1]*(c()+.5)>>1;rB(u,b,v,g);if(b.hasText&&h(f,b,p)){y.push(b);if(p)aB(p,b);else p=[{x:b.x+b.x0,y:b.y+b.y0},{x:b.x+b.x1,y:b.y+b.y1}];b.x-=t[0]>>1;b.y-=t[1]>>1}}return y};function d(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=(eB<<5)/e;t.height=nB/e;var n=t.getContext("2d");n.fillStyle=n.strokeStyle="red";n.textAlign="center";return{context:n,ratio:e}}function h(e,n,i){var r=n.x,s=n.y,a=Math.hypot(t[0],t[1]),o=u(t),l=c()<.5?1:-1,f=-l,d,h,p;while(d=o(f+=l)){h=~~d[0];p=~~d[1];if(Math.min(Math.abs(h),Math.abs(p))>=a)break;n.x=r+h;n.y=s+p;if(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])continue;if(!i||!sB(n,e,t[0])){if(!i||oB(n,i)){var m=n.sprite,g=n.width>>5,y=t[0]>>5,v=n.x-(g<<4),b=v&127,x=32-b,_=n.y1-n.y0,w=(n.y+n.y0)*y+(v>>5),A;for(var k=0;k<_;k++){A=0;for(var E=0;E<=g;E++){e[w+E]|=A<>>b:0)}w+=y}n.sprite=null;return true}}}return false}f.words=function(t){if(arguments.length){l=t;return f}else{return l}};f.size=function(e){if(arguments.length){t=[+e[0],+e[1]];return f}else{return t}};f.font=function(t){if(arguments.length){n=fB(t);return f}else{return n}};f.fontStyle=function(t){if(arguments.length){r=fB(t);return f}else{return r}};f.fontWeight=function(t){if(arguments.length){s=fB(t);return f}else{return s}};f.rotate=function(t){if(arguments.length){a=fB(t);return f}else{return a}};f.text=function(t){if(arguments.length){e=fB(t);return f}else{return e}};f.spiral=function(t){if(arguments.length){u=dB[t]||t;return f}else{return u}};f.fontSize=function(t){if(arguments.length){i=fB(t);return f}else{return i}};f.padding=function(t){if(arguments.length){o=fB(t);return f}else{return o}};f.random=function(t){if(arguments.length){c=t;return f}else{return c}};return f}function rB(t,e,n,i){if(e.sprite)return;var r=t.context,s=t.ratio;r.clearRect(0,0,(eB<<5)/s,nB/s);var a=0,o=0,u=0,l=n.length,c,f,d,h,p;--i;while(++i>5<<5;d=~~Math.max(Math.abs(v+b),Math.abs(v-b))}else{c=c+31>>5<<5}if(d>u)u=d;if(a+c>=eB<<5){a=0;o+=u;u=0}if(o+d>=nB)break;r.translate((a+(c>>1))/s,(o+(d>>1))/s);if(e.rotate)r.rotate(e.rotate*tB);r.fillText(e.text,0,0);if(e.padding){r.lineWidth=2*e.padding;r.strokeText(e.text,0,0)}r.restore();e.width=c;e.height=d;e.xoff=a;e.yoff=o;e.x1=c>>1;e.y1=d>>1;e.x0=-e.x1;e.y0=-e.y1;e.hasText=true;a+=c}var _=r.getImageData(0,0,(eB<<5)/s,nB/s).data,w=[];while(--i>=0){e=n[i];if(!e.hasText)continue;c=e.width;f=c>>5;d=e.y1-e.y0;for(h=0;h>5),M=_[(o+p)*(eB<<5)+(a+h)<<2]?1<<31-h%32:0;w[E]|=M;A|=M}if(A)k=p;else{e.y0++;d--;p--;o++}}e.y1=e.y0+k;e.sprite=w.slice(0,(e.y1-e.y0)*f)}}function sB(t,e,n){n>>=5;var i=t.sprite,r=t.width>>5,s=t.x-(r<<4),a=s&127,o=32-a,u=t.y1-t.y0,l=(t.y+t.y0)*n+(s>>5),c;for(var f=0;f>>a:0))&e[l+d])return true}l+=n}return false}function aB(t,e){var n=t[0],i=t[1];if(e.x+e.x0i.x)i.x=e.x+e.x1;if(e.y+e.y1>i.y)i.y=e.y+e.y1}function oB(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0e[0].y&&t.y+t.y0e(t(n))}r.forEach((t=>{t[a[0]]=NaN;t[a[1]]=NaN;t[a[3]]=0}));const l=s.words(r).text(t.text).size(t.size||[500,500]).padding(t.padding||1).spiral(t.spiral||"archimedean").rotate(t.rotate||0).font(t.font||"sans-serif").fontStyle(t.fontStyle||"normal").fontWeight(t.fontWeight||"normal").fontSize(o).random(ir).layout();const c=s.size(),f=c[0]>>1,d=c[1]>>1,h=l.length;for(let p=0,m,g;pt[e]))}const yB=t=>new Uint8Array(t);const vB=t=>new Uint16Array(t);const bB=t=>new Uint32Array(t);function xB(){let t=8,e=[],n=bB(0),i=wB(0,t),r=wB(0,t);return{data:()=>e,seen:()=>n=_B(n,e.length),add(t){for(let n=0,i=e.length,r=t.length,s;ne.length,curr:()=>i,prev:()=>r,reset:t=>r[t]=i[t],all:()=>t<257?255:t<65537?65535:4294967295,set(t,e){i[t]|=e},clear(t,e){i[t]&=~e},resize(e,n){const s=i.length;if(e>s||n>t){t=Math.max(n,t);i=wB(e,t,i);r=wB(e,t)}}}}function _B(t,e,n){if(t.length>=e)return t;n=n||new t.constructor(e);n.set(t);return n}function wB(t,e,n){const i=(e<257?yB:e<65537?vB:bB)(t);if(n)i.set(n);return i}function AB(t,e,n){const i=1<0)for(d=0;dt,size:()=>n}}function EB(t,e){t.sort.call(e,((e,n)=>{const i=t[e],r=t[n];return ir?1:0}));return gB(t,e)}function MB(t,e,n,i,r,s,a,o,u){let l=0,c=0,f;for(f=0;le.modified(t.fields)));return n?this.reinit(t,e):this.eval(t,e)}},init(t,e){const n=t.fields,i=t.query,r=this._indices={},s=this._dims=[],a=i.length;let o=0,u,l;for(;o{const t=r.remove(e,n);for(const e in i)i[e].reindex(t)}))},update(t,e,n){const i=this._dims,r=t.query,s=e.stamp,a=i.length;let o=0,u,l;n.filters=0;for(l=0;lh){for(g=h,y=Math.min(f,p);gp){for(g=Math.max(f,p),y=d;gf){for(p=f,m=Math.min(l,d);pd){for(p=Math.max(l,d),m=c;p!(o[t]&n)?a[t]:null;s.filter(s.MOD,l);if(!(r&r-1)){s.filter(s.ADD,l);s.filter(s.REM,(t=>(o[t]&n)===r?a[t]:null))}else{s.filter(s.ADD,(t=>{const e=o[t]&n,i=!e&&e^u[t]&n;return i?a[t]:null}));s.filter(s.REM,(t=>{const e=o[t]&n,i=e&&!(e^(e^u[t]&n));return i?a[t]:null}))}return s.filter(s.SOURCE,(t=>l(t._index)))}});const FB="RawCode";const SB="Literal";const zB="Property";const BB="Identifier";const $B="ArrayExpression";const RB="BinaryExpression";const OB="CallExpression";const TB="ConditionalExpression";const NB="LogicalExpression";const LB="MemberExpression";const PB="ObjectExpression";const qB="UnaryExpression";function IB(t){this.type=t}IB.prototype.visit=function(t){let e,n,i;if(t(this))return 1;for(e=UB(this),n=0,i=e.length;n";jB[QB]="Identifier";jB[KB]="Keyword";jB[ZB]="Null";jB[JB]="Numeric";jB[t$]="Punctuator";jB[e$]="String";jB[n$]="RegularExpression";var i$="ArrayExpression",r$="BinaryExpression",s$="CallExpression",a$="ConditionalExpression",o$="Identifier",u$="Literal",l$="LogicalExpression",c$="MemberExpression",f$="ObjectExpression",d$="Property",h$="UnaryExpression";var p$="Unexpected token %0",m$="Unexpected number",g$="Unexpected string",y$="Unexpected identifier",v$="Unexpected reserved word",b$="Unexpected end of input",x$="Invalid regular expression",_$="Invalid regular expression: missing /",w$="Octal literals are not allowed in strict mode.",A$="Duplicate data property in object literal not allowed in strict mode";var k$="ILLEGAL",E$="Disabled.";var M$=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]"),D$=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 C$(t,e){if(!t){throw new Error("ASSERT: "+e)}}function F$(t){return t>=48&&t<=57}function S$(t){return"0123456789abcdefABCDEF".includes(t)}function z$(t){return"01234567".includes(t)}function B$(t){return t===32||t===9||t===11||t===12||t===160||t>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(t)}function $$(t){return t===10||t===13||t===8232||t===8233}function R$(t){return t===36||t===95||t>=65&&t<=90||t>=97&&t<=122||t===92||t>=128&&M$.test(String.fromCharCode(t))}function O$(t){return t===36||t===95||t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===92||t>=128&&D$.test(String.fromCharCode(t))}const T$={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 N$(){while(YB1114111||t!=="}"){dR({},p$,k$)}if(e<=65535){return String.fromCharCode(e)}n=(e-65536>>10)+55296;i=(e-65536&1023)+56320;return String.fromCharCode(n,i)}function q$(){var t,e;t=GB.charCodeAt(YB++);e=String.fromCharCode(t);if(t===92){if(GB.charCodeAt(YB)!==117){dR({},p$,k$)}++YB;t=L$("u");if(!t||t==="\\"||!R$(t.charCodeAt(0))){dR({},p$,k$)}e=t}while(YB>>="){YB+=4;return{type:t$,value:a,start:t,end:YB}}s=a.substr(0,3);if(s===">>>"||s==="<<="||s===">>="){YB+=3;return{type:t$,value:s,start:t,end:YB}}r=s.substr(0,2);if(i===r[1]&&"+-<>&|".includes(i)||r==="=>"){YB+=2;return{type:t$,value:r,start:t,end:YB}}if(r==="//"){dR({},p$,k$)}if("<>=!+-*%&|^/".includes(i)){++YB;return{type:t$,value:i,start:t,end:YB}}dR({},p$,k$)}function G$(t){let e="";while(YB{if(parseInt(e,16)<=1114111){return"x"}dR({},x$)})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x")}try{new RegExp(n)}catch(i){dR({},x$)}try{return new RegExp(t,e)}catch(r){return null}}function V$(){var t,e,n,i,r;t=GB[YB];C$(t==="/","Regular expression literal must start with a slash");e=GB[YB++];n=false;i=false;while(YB=0){dR({},x$,n)}return{value:n,literal:e}}function K$(){var t,e,n,i;XB=null;N$();t=YB;e=V$();n=Q$();i=H$(e.value,n.value);return{literal:e.literal+n.literal,value:i,regex:{pattern:e.value,flags:n.value},start:t,end:YB}}function Z$(t){return t.type===QB||t.type===KB||t.type===HB||t.type===ZB}function J$(){N$();if(YB>=WB){return{type:VB,start:YB,end:YB}}const t=GB.charCodeAt(YB);if(R$(t)){return U$()}if(t===40||t===41||t===59){return j$()}if(t===39||t===34){return X$()}if(t===46){if(F$(GB.charCodeAt(YB+1))){return W$()}return j$()}if(F$(t)){return W$()}return j$()}function tR(){const t=XB;YB=t.end;XB=J$();YB=t.end;return t}function eR(){const t=YB;XB=J$();YB=t}function nR(t){const e=new IB(i$);e.elements=t;return e}function iR(t,e,n){const i=new IB(t==="||"||t==="&&"?l$:r$);i.operator=t;i.left=e;i.right=n;return i}function rR(t,e){const n=new IB(s$);n.callee=t;n.arguments=e;return n}function sR(t,e,n){const i=new IB(a$);i.test=t;i.consequent=e;i.alternate=n;return i}function aR(t){const e=new IB(o$);e.name=t;return e}function oR(t){const e=new IB(u$);e.value=t.value;e.raw=GB.slice(t.start,t.end);if(t.regex){if(e.raw==="//"){e.raw="/(?:)/"}e.regex=t.regex}return e}function uR(t,e,n){const i=new IB(c$);i.computed=t==="[";i.object=e;i.property=n;if(!i.computed)n.member=true;return i}function lR(t){const e=new IB(f$);e.properties=t;return e}function cR(t,e,n){const i=new IB(d$);i.key=e;i.value=n;i.kind=t;return i}function fR(t,e){const n=new IB(h$);n.operator=t;n.argument=e;n.prefix=true;return n}function dR(t,e){var n,i=Array.prototype.slice.call(arguments,2),r=e.replace(/%(\d)/g,((t,e)=>{C$(e":case"<=":case">=":case"instanceof":case"in":e=7;break;case"<<":case">>":case">>>":e=8;break;case"+":case"-":e=9;break;case"*":case"/":case"%":e=11;break}return e}function BR(){var t,e,n,i,r,s,a,o,u,l;t=XB;u=SR();i=XB;r=zR(i);if(r===0){return u}i.prec=r;tR();e=[t,XB];a=SR();s=[u,i,a];while((r=zR(XB))>0){while(s.length>2&&r<=s[s.length-2].prec){a=s.pop();o=s.pop().value;u=s.pop();e.pop();n=iR(o,u,a);s.push(n)}i=tR();i.prec=r;s.push(i);e.push(XB);n=SR();s.push(n)}l=s.length-1;n=s[l];e.pop();while(l>1){e.pop();n=iR(s[l-1].value,s[l-2],n);l-=2}return n}function $R(){var t,e,n;t=BR();if(mR("?")){tR();e=$R();pR(":");n=$R();t=sR(t,e,n)}return t}function RR(){const t=$R();if(mR(",")){throw new Error(E$)}return t}function OR(t){GB=t;YB=0;WB=GB.length;XB=null;eR();const e=RR();if(XB.type!==VB){throw new Error("Unexpect token after expression.")}return e}var TR={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 NR(t){function e(e,n,i,r){let s=t(n[0]);if(i){s=i+"("+s+")";if(i.lastIndexOf("new ",0)===0)s="("+s+")"}return s+"."+e+(r<0?"":r===0?"()":"("+n.slice(1).map(t).join(",")+")")}function n(t,n,i){return r=>e(t,r,n,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",hypot:"Math.hypot",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(e){if(e.length<3)(0,p.z3)("Missing arguments to clamp function.");if(e.length>3)(0,p.z3)("Too many arguments to clamp function.");const n=e.map(t);return"Math.max("+n[1]+", Math.min("+n[2]+","+n[0]+"))"},now:"Date.now",utc:"Date.UTC",datetime:i,date:n("getDate",i,0),day:n("getDay",i,0),year:n("getFullYear",i,0),month:n("getMonth",i,0),hours:n("getHours",i,0),minutes:n("getMinutes",i,0),seconds:n("getSeconds",i,0),milliseconds:n("getMilliseconds",i,0),time:n("getTime",i,0),timezoneoffset:n("getTimezoneOffset",i,0),utcdate:n("getUTCDate",i,0),utcday:n("getUTCDay",i,0),utcyear:n("getUTCFullYear",i,0),utcmonth:n("getUTCMonth",i,0),utchours:n("getUTCHours",i,0),utcminutes:n("getUTCMinutes",i,0),utcseconds:n("getUTCSeconds",i,0),utcmilliseconds:n("getUTCMilliseconds",i,0),length:n("length",null,-1),parseFloat:"parseFloat",parseInt:"parseInt",upper:n("toUpperCase",r,0),lower:n("toLowerCase",r,0),substring:n("substring",r),split:n("split",r),trim:n("trim",r,0),btoa:"btoa",atob:"atob",regexp:s,test:n("test",s),if:function(e){if(e.length<3)(0,p.z3)("Missing arguments to if function.");if(e.length>3)(0,p.z3)("Too many arguments to if function.");const n=e.map(t);return"("+n[0]+"?"+n[1]+":"+n[2]+")"}}}function LR(t){const e=t&&t.length-1;return e&&(t[0]==='"'&&t[e]==='"'||t[0]==="'"&&t[e]==="'")?t.slice(1,-1):t}function PR(t){t=t||{};const e=t.allowed?(0,p.M1)(t.allowed):{},n=t.forbidden?(0,p.M1)(t.forbidden):{},i=t.constants||TR,r=(t.functions||NR)(f),s=t.globalvar,a=t.fieldvar,o=(0,p.Tn)(s)?s:t=>`${s}["${t}"]`;let u={},l={},c=0;function f(t){if((0,p.Kg)(t))return t;const e=d[t.type];if(e==null)(0,p.z3)("Unsupported type: "+t.type);return e(t)}const d={Literal:t=>t.raw,Identifier:t=>{const r=t.name;if(c>0){return r}else if((0,p.mQ)(n,r)){return(0,p.z3)("Illegal identifier: "+r)}else if((0,p.mQ)(i,r)){return i[r]}else if((0,p.mQ)(e,r)){return r}else{u[r]=1;return o(r)}},MemberExpression:t=>{const e=!t.computed,n=f(t.object);if(e)c+=1;const i=f(t.property);if(n===a){l[LR(i)]=1}if(e)c-=1;return n+(e?"."+i:"["+i+"]")},CallExpression:t=>{if(t.callee.type!=="Identifier"){(0,p.z3)("Illegal callee type: "+t.callee.type)}const e=t.callee.name,n=t.arguments,i=(0,p.mQ)(r,e)&&r[e];if(!i)(0,p.z3)("Unrecognized function: "+e);return(0,p.Tn)(i)?i(n):i+"("+n.map(f).join(",")+")"},ArrayExpression:t=>"["+t.elements.map(f).join(",")+"]",BinaryExpression:t=>"("+f(t.left)+" "+t.operator+" "+f(t.right)+")",UnaryExpression:t=>"("+t.operator+f(t.argument)+")",ConditionalExpression:t=>"("+f(t.test)+"?"+f(t.consequent)+":"+f(t.alternate)+")",LogicalExpression:t=>"("+f(t.left)+t.operator+f(t.right)+")",ObjectExpression:t=>"{"+t.properties.map(f).join(",")+"}",Property:t=>{c+=1;const e=f(t.key);c-=1;return e+":"+f(t.value)}};function h(t){const e={code:f(t),globals:Object.keys(u),fields:Object.keys(l)};u={};l={};return e}h.functions=r;h.constants=i;return h}var qR=new ax;var IR=new ax,UR,jR,GR,YR,WR;var XR={point:Rx,lineStart:Rx,lineEnd:Rx,polygonStart:function(){qR=new ax;XR.lineStart=HR;XR.lineEnd=VR},polygonEnd:function(){var t=+qR;IR.add(t<0?px+t:t);this.lineStart=this.lineEnd=this.point=Rx},sphere:function(){IR.add(px)}};function HR(){XR.point=QR}function VR(){KR(UR,jR)}function QR(t,e){XR.point=KR;UR=t,jR=e;t*=gx,e*=gx;GR=t,YR=xx(e=e/2+hx),WR=Dx(e)}function KR(t,e){t*=gx,e*=gx;e=e/2+hx;var n=t-GR,i=n>=0?1:-1,r=i*n,s=xx(e),a=Dx(e),o=WR*a,u=YR*s+o*xx(r),l=o*i*Dx(r);qR.add(bx(l,u));GR=t,YR=s,WR=a}function ZR(t){IR=new ax;sx(t,XR);return IR*2}var JR,tO,eO,nO,iO,rO,sO,aO,oO,uO,lO;var cO={point:fO,lineStart:hO,lineEnd:pO,polygonStart:function(){cO.point=mO;cO.lineStart=gO;cO.lineEnd=yO;oO=new ax;XR.polygonStart()},polygonEnd:function(){XR.polygonEnd();cO.point=fO;cO.lineStart=hO;cO.lineEnd=pO;if(qR<0)JR=-(eO=180),tO=-(nO=90);else if(oO>lx)nO=90;else if(oO<-lx)tO=-90;lO[0]=JR,lO[1]=eO},sphere:function(){JR=-(eO=180),tO=-(nO=90)}};function fO(t,e){uO.push(lO=[JR=t,eO=t]);if(enO)nO=e}function dO(t,e){var n=V_([t*gx,e*gx]);if(aO){var i=K_(aO,n),r=[i[1],-i[0],0],s=K_(r,i);tw(s);s=H_(s);var a=t-iO,o=a>0?1:-1,u=s[0]*mx*o,l,c=yx(a)>180;if(c^(o*iOnO)nO=l}else if(u=(u+360)%360-180,c^(o*iOnO)nO=e}if(c){if(tvO(JR,eO))eO=t}else{if(vO(t,eO)>vO(JR,eO))JR=t}}else{if(eO>=JR){if(teO)eO=t}else{if(t>iO){if(vO(JR,t)>vO(JR,eO))eO=t}else{if(vO(t,eO)>vO(JR,eO))JR=t}}}}else{uO.push(lO=[JR=t,eO=t])}if(enO)nO=e;aO=n,iO=t}function hO(){cO.point=dO}function pO(){lO[0]=JR,lO[1]=eO;cO.point=fO;aO=null}function mO(t,e){if(aO){var n=t-iO;oO.add(yx(n)>180?n+(n>0?360:-360):n)}else{rO=t,sO=e}XR.point(t,e);dO(t,e)}function gO(){XR.lineStart()}function yO(){mO(rO,sO);XR.lineEnd();if(yx(oO)>lx)JR=-(eO=180);lO[0]=JR,lO[1]=eO;aO=null}function vO(t,e){return(e-=t)<0?e+360:e}function bO(t,e){return t[0]-e[0]}function xO(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:evO(i[0],i[1]))i[1]=r[1];if(vO(r[0],i[1])>vO(i[0],i[1]))i[0]=r[0]}else{s.push(i=r)}}for(a=-Infinity,n=s.length-1,e=0,i=s[n];e<=n;i=r,++e){r=s[e];if((o=vO(i[1],r[0]))>a)a=o,JR=r[0],eO=i[1]}}uO=lO=null;return JR===Infinity||tO===Infinity?[[NaN,NaN],[NaN,NaN]]:[[JR,tO],[eO,nO]]}var wO,AO,kO,EO,MO,DO,CO,FO,SO,zO,BO,$O,RO,OO,TO,NO;var LO={sphere:Rx,point:PO,lineStart:IO,lineEnd:GO,polygonStart:function(){LO.lineStart=YO;LO.lineEnd=WO},polygonEnd:function(){LO.lineStart=IO;LO.lineEnd=GO}};function PO(t,e){t*=gx,e*=gx;var n=xx(e);qO(n*xx(t),n*Dx(t),Dx(e))}function qO(t,e,n){++wO;kO+=(t-kO)/wO;EO+=(e-EO)/wO;MO+=(n-MO)/wO}function IO(){LO.point=UO}function UO(t,e){t*=gx,e*=gx;var n=xx(e);OO=n*xx(t);TO=n*Dx(t);NO=Dx(e);LO.point=jO;qO(OO,TO,NO)}function jO(t,e){t*=gx,e*=gx;var n=xx(e),i=n*xx(t),r=n*Dx(t),s=Dx(e),a=bx(Fx((a=TO*s-NO*r)*a+(a=NO*i-OO*s)*a+(a=OO*r-TO*i)*a),OO*i+TO*r+NO*s);AO+=a;DO+=a*(OO+(OO=i));CO+=a*(TO+(TO=r));FO+=a*(NO+(NO=s));qO(OO,TO,NO)}function GO(){LO.point=PO}function YO(){LO.point=XO}function WO(){HO($O,RO);LO.point=PO}function XO(t,e){$O=t,RO=e;t*=gx,e*=gx;LO.point=HO;var n=xx(e);OO=n*xx(t);TO=n*Dx(t);NO=Dx(e);qO(OO,TO,NO)}function HO(t,e){t*=gx,e*=gx;var n=xx(e),i=n*xx(t),r=n*Dx(t),s=Dx(e),a=TO*s-NO*r,o=NO*i-OO*s,u=OO*r-TO*i,l=kx(a,o,u),c=Bx(l),f=l&&-c/l;SO.add(f*a);zO.add(f*o);BO.add(f*u);AO+=c;DO+=c*(OO+(OO=i));CO+=c*(TO+(TO=r));FO+=c*(NO+(NO=s));qO(OO,TO,NO)}function VO(t){wO=AO=kO=EO=MO=DO=CO=FO=0;SO=new ax;zO=new ax;BO=new ax;sx(t,LO);var e=+SO,n=+zO,i=+BO,r=kx(e,n,i);if(r=i[s])return false}else if(o.type===yT){if(a>i[s])return false}else if(o.type===vT){if(a<=i[s])return false}else if(o.type===bT){if(a(0,p.X$)(e.fields?{values:e.fields.map((e=>nT(e)(t.datum)))}:{[lT]:cT(t.datum)},e)))}function ST(t,e,n,i){var r=this.context.data[t],s=r?r.values.value:[],a={},o={},u={},l,c,f,d,h,m,g,y,v,b,x=s.length,_=0,w,A;for(;_(t[c[n].field]=e,t)),{}))}}else{h=lT;m=cT(l);g=a[h]||(a[h]={});y=g[d]||(g[d]=[]);y.push(m);if(n){y=o[d]||(o[d]=[]);y.push({[lT]:m})}}}e=e||rT;if(a[lT]){a[lT]=zT[`${lT}_${e}`](...Object.values(a[lT]))}else{Object.keys(a).forEach((t=>{a[t]=Object.keys(a[t]).map((e=>a[t][e])).reduce(((n,i)=>n===undefined?i:zT[`${u[t]}_${e}`](n,i)))}))}s=Object.keys(o);if(n&&s.length){const t=i?aT:sT;a[t]=e===rT?{[oT]:s.reduce(((t,e)=>(t.push(...o[e]),t)),[])}:{[uT]:s.map((t=>({[oT]:o[t]})))}}return a}var zT={[`${lT}_union`]:ZO,[`${lT}_intersect`]:JO,E_union:function(t,e){if(!t.length)return e;var n=0,i=e.length;for(;ne.includes(t)))},R_union:function(t,e){var n=(0,p.Ro)(e[0]),i=(0,p.Ro)(e[1]);if(n>i){n=e[1];i=e[0]}if(!t.length)return[n,i];if(t[0]>n)t[0]=n;if(t[1]i){n=e[1];i=e[0]}if(!t.length)return[n,i];if(ii)t[1]=i}return t}};const BT=":",$T="@";function RT(t,e,n,i){if(e[0].type!==SB)(0,p.z3)("First argument to selection functions must be a string literal.");const r=e[0].value,s=e.length>=2&&(0,p.se)(e).value,a="unit",o=$T+a,u=BT+r;if(s===iT&&!(0,p.mQ)(i,o)){i[o]=n.getData(r).indataRef(n,a)}if(!(0,p.mQ)(i,u)){i[u]=n.getData(r).tuplesRef()}}function OT(t){const e=this.context.data[t];return e?e.values.value:[]}function TT(t,e,n){const i=this.context.data[t]["index:"+e],r=i?i.value.get(n):undefined;return r?r.count:r}function NT(t,e){const n=this.context.dataflow,i=this.context.data[t],r=i.input;n.pulse(r,n.changeset().remove(p.vN).insert(e));return 1}function LT(t,e,n){if(t){const n=this.context.dataflow,i=t.mark.source;n.pulse(i,n.changeset().encode(t,e))}return n!==undefined?n:t}const PT=t=>function(e,n){const i=this.context.dataflow.locale();return e===null?"null":i[t](n)(e)};const qT=PT("format");const IT=PT("timeFormat");const UT=PT("utcFormat");const jT=PT("timeParse");const GT=PT("utcParse");const YT=new Date(2e3,0,1);function WT(t,e,n){if(!Number.isInteger(t)||!Number.isInteger(e))return"";YT.setYear(2e3);YT.setMonth(t);YT.setDate(e);return IT.call(this,YT,n)}function XT(t){return WT.call(this,t,1,"%B")}function HT(t){return WT.call(this,t,1,"%b")}function VT(t){return WT.call(this,0,2+t,"%A")}function QT(t){return WT.call(this,0,2+t,"%a")}const KT=":";const ZT="@";const JT="%";const tN="$";function eN(t,e,n,i){if(e[0].type!==SB){(0,p.z3)("First argument to data functions must be a string literal.")}const r=e[0].value,s=KT+r;if(!(0,p.mQ)(s,i)){try{i[s]=n.getData(r).tuplesRef()}catch(a){}}}function nN(t,e,n,i){if(e[0].type!==SB)(0,p.z3)("First argument to indata must be a string literal.");if(e[1].type!==SB)(0,p.z3)("Second argument to indata must be a string literal.");const r=e[0].value,s=e[1].value,a=ZT+s;if(!(0,p.mQ)(a,i)){i[a]=n.getData(r).indataRef(n,s)}}function iN(t,e,n,i){if(e[0].type===SB){rN(n,i,e[0].value)}else{for(t in n.scales){rN(n,i,t)}}}function rN(t,e,n){const i=JT+n;if(!(0,p.mQ)(e,i)){try{e[i]=t.scaleRef(n)}catch(r){}}}function sN(t,e){if((0,p.Kg)(t)){const n=e.scales[t];return n&&jl(n.value)?n.value:undefined}else if((0,p.Tn)(t)){return jl(t)?t:undefined}return undefined}function aN(t,e,n){e.__bandwidth=t=>t&&t.bandwidth?t.bandwidth():0;n._bandwidth=iN;n._range=iN;n._scale=iN;const i=e=>"_["+(e.type===SB?(0,p.r$)(JT+e.value):(0,p.r$)(JT)+"+"+t(e))+"]";return{_bandwidth:t=>`this.__bandwidth(${i(t[0])})`,_range:t=>`${i(t[0])}.range()`,_scale:e=>`${i(e[0])}(${t(e[1])})`}}function oN(t,e){return function(n,i,r){if(n){const e=sN(n,(r||this).context);return e&&e.path[t](i)}else{return e(i)}}}const uN=oN("area",ZR);const lN=oN("bounds",_O);const cN=oN("centroid",VO);function fN(t,e){const n=sN(t,(e||this).context);return n&&n.scale()}function dN(t){const e=this.context.group;let n=false;if(e)while(t){if(t===e){n=true;break}t=t.mark.group}return n}function hN(t,e,n){try{t[e].apply(t,["EXPRESSION"].concat([].slice.call(n)))}catch(i){t.warn(i)}return n[n.length-1]}function pN(){return hN(this.context.dataflow,"warn",arguments)}function mN(){return hN(this.context.dataflow,"info",arguments)}function gN(){return hN(this.context.dataflow,"debug",arguments)}function yN(t){const e=t/255;if(e<=.03928){return e/12.92}return Math.pow((e+.055)/1.055,2.4)}function vN(t){const e=(0,Fk.Qh)(t),n=yN(e.r),i=yN(e.g),r=yN(e.b);return.2126*n+.7152*i+.0722*r}function bN(t,e){const n=vN(t),i=vN(e),r=Math.max(n,i),s=Math.min(n,i);return(r+.05)/(s+.05)}function xN(){const t=[].slice.call(arguments);t.unshift({});return(0,p.X$)(...t)}function _N(t,e){return t===e||t!==t&&e!==e?true:(0,p.cy)(t)?(0,p.cy)(e)&&t.length===e.length?wN(t,e):false:(0,p.Gv)(t)&&(0,p.Gv)(e)?AN(t,e):false}function wN(t,e){for(let n=0,i=t.length;nAN(t,e)}function EN(t,e,n,i,r,s){const a=this.context.dataflow,o=this.context.data[t],u=o.input,l=a.stamp();let c=o.changes,f,d;if(a._trigger===false||!(u.value.length||e||i)){return 0}if(!c||c.stamp{o.modified=true;a.pulse(u,c).run()}),true,1)}if(n){f=n===true?p.vN:(0,p.cy)(n)||gn(n)?n:kN(n);c.remove(f)}if(e){c.insert(e)}if(i){f=kN(i);if(u.value.some(f)){c.remove(f)}else{c.insert(i)}}if(r){for(d in s){c.modify(r,d,s[d])}}return 1}function MN(t){const e=t.touches,n=e[0].clientX-e[1].clientX,i=e[0].clientY-e[1].clientY;return Math.hypot(n,i)}function DN(t){const e=t.touches;return Math.atan2(e[0].clientY-e[1].clientY,e[0].clientX-e[1].clientX)}const CN={};function FN(t,e){const n=CN[e]||(CN[e]=(0,p.ZZ)(e));return(0,p.cy)(t)?t.map(n):n(t)}function SN(t){return(0,p.cy)(t)||ArrayBuffer.isView(t)?t:null}function zN(t){return SN(t)||((0,p.Kg)(t)?t:null)}function BN(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i1?e-1:0),i=1;i1?e-1:0),i=1;i1?e-1:0),i=1;is.stop(l(e),t(e))));return s}function XN(t,e,n){const i=sN(t,(n||this).context);return function(t){return i?i.path.context(t)(e):""}}function HN(t){let e=null;return function(n){return n?yf(n,e=e||nf(t)):t}}const VN=t=>t.data;function QN(t,e){const n=OT.call(e,t);return n.root&&n.root.lookup||{}}function KN(t,e,n){const i=QN(t,this),r=i[e],s=i[n];return r&&s?r.path(s).map(VN):undefined}function ZN(t,e){const n=QN(t,this)[e];return n?n.ancestors().map(VN):undefined}const JN=()=>typeof window!=="undefined"&&window||null;function tL(){const t=JN();return t?t.screen:{}}function eL(){const t=JN();return t?[t.innerWidth,t.innerHeight]:[undefined,undefined]}function nL(){const t=this.context.dataflow,e=t.container&&t.container();return e?[e.clientWidth,e.clientHeight]:[undefined,undefined]}function iL(t,e,n){if(!t)return[];const[i,r]=t,s=(new vd).set(i[0],i[1],r[0],r[1]),a=n||this.context.dataflow.scenegraph().root;return cy(a,s,rL(e))}function rL(t){let e=null;if(t){const n=(0,p.YO)(t.marktype),i=(0,p.YO)(t.markname);e=t=>(!n.length||n.some((e=>t.marktype===e)))&&(!i.length||i.some((e=>t.name===e)))}return e}function sL(t,e,n){let i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:5;t=(0,p.YO)(t);const r=t[t.length-1];return r===undefined||Math.hypot(r[0]-e,r[1]-n)>i?[...t,[e,n]]:t}function aL(t){return(0,p.YO)(t).reduce(((e,n,i)=>{let[r,s]=n;return e+=i==0?`M ${r},${s} `:i===t.length-1?" Z":`L ${r},${s} `}),"")}function oL(t,e,n){const{x:i,y:r,mark:s}=n;const a=(new vd).set(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,Number.MIN_SAFE_INTEGER,Number.MIN_SAFE_INTEGER);for(const[u,l]of e){if(ua.x2)a.x2=u;if(la.y2)a.y2=l}a.translate(i,r);const o=iL([[a.x1,a.y1],[a.x2,a.y2]],t,s);return o.filter((t=>uL(t.x,t.y,e)))}function uL(t,e,n){let i=0;for(let r=0,s=n.length-1;re!=o>e&&t<(a-u)*(e-l)/(o-l)+u){i++}}return i&1}const lL={random(){return ir()},cumulativeNormal:mr,cumulativeLogNormal:wr,cumulativeUniform:Cr,densityNormal:pr,densityLogNormal:_r,densityUniform:Dr,quantileNormal:gr,quantileLogNormal:Ar,quantileUniform:Fr,sampleNormal:hr,sampleLogNormal:xr,sampleUniform:Mr,isArray:p.cy,isBoolean:p.Lm,isDate:p.$P,isDefined(t){return t!==undefined},isNumber:p.Et,isObject:p.Gv,isRegExp:p.gd,isString:p.Kg,isTuple:gn,isValid(t){return t!=null&&t===t},toBoolean:p.G4,toDate(t){return(0,p.ay)(t)},toNumber:p.Ro,toString:p.dI,indexof:$N,join:BN,lastindexof:RN,replace:TN,reverse:NN,sort:LN,slice:ON,flush:p.bX,lerp:p.Cc,merge:xN,pad:p.eV,peek:p.se,pluck:FN,span:p.Ln,inrange:p.PK,truncate:p.xv,rgb:Fk.Qh,lab:QO.Ay,hcl:QO.aq,hsl:Fk.KI,luminance:vN,contrast:bN,sequence:es.A,format:qT,utcFormat:UT,utcParse:GT,utcOffset:Gt,utcSequence:Xt,timeFormat:IT,timeParse:jT,timeOffset:jt,timeSequence:Wt,timeUnitSpecifier:pt,monthFormat:XT,monthAbbrevFormat:HT,dayFormat:VT,dayAbbrevFormat:QT,quarter:p.$G,utcquarter:p.vu,week:vt,utcweek:kt,dayofyear:yt,utcdayofyear:At,warn:pN,info:mN,debug:gN,extent(t){return(0,p.Xx)(t)},inScope:dN,intersect:iL,clampRange:p.BS,pinchDistance:MN,pinchAngle:DN,screen:tL,containerSize:nL,windowSize:eL,bandspace:PN,setdata:NT,pathShape:HN,panLinear:p.VC,panLog:p.KH,panPow:p.co,panSymlog:p.zy,zoomLinear:p.lL,zoomLog:p.oV,zoomPow:p.SW,zoomSymlog:p.B2,encode:LT,modify:EN,lassoAppend:sL,lassoPath:aL,intersectLasso:oL};const cL=["view","item","group","xy","x","y"],fL="event.vega.",dL="this.",hL={};const pL={forbidden:["_"],allowed:["datum","event","item"],fieldvar:"datum",globalvar:t=>`_[${(0,p.r$)(tN+t)}]`,functions:gL,constants:TR,visitors:hL};const mL=PR(pL);function gL(t){const e=NR(t);cL.forEach((t=>e[t]=fL+t));for(const n in lL){e[n]=dL+n}(0,p.X$)(e,aN(t,lL,hL));return e}function yL(t,e,n){if(arguments.length===1){return lL[t]}lL[t]=e;if(n)hL[t]=n;if(mL)mL.functions[t]=dL+t;return this}yL("bandwidth",qN,iN);yL("copy",IN,iN);yL("domain",UN,iN);yL("range",GN,iN);yL("invert",jN,iN);yL("scale",YN,iN);yL("gradient",WN,iN);yL("geoArea",uN,iN);yL("geoBounds",lN,iN);yL("geoCentroid",cN,iN);yL("geoShape",XN,iN);yL("geoScale",fN,iN);yL("indata",TT,nN);yL("data",OT,eN);yL("treePath",KN,eN);yL("treeAncestors",ZN,eN);yL("vlSelectionTest",kT,RT);yL("vlSelectionIdTest",CT,RT);yL("vlSelectionResolve",ST,RT);yL("vlSelectionTuples",FT);function vL(t,e){const n={};let i;try{t=(0,p.Kg)(t)?t:(0,p.r$)(t)+"";i=OR(t)}catch(s){(0,p.z3)("Expression parse error: "+t)}i.visit((t=>{if(t.type!==OB)return;const i=t.callee.name,r=pL.visitors[i];if(r)r(i,t.arguments,e,n)}));const r=mL(i);r.globals.forEach((t=>{const i=tN+t;if(!(0,p.mQ)(n,i)&&e.getSignal(t)){n[i]=e.signalRef(t)}}));return{$expr:(0,p.X$)({code:r.code},e.options.ast?{ast:i}:null),$fields:r.fields,$params:n}}function bL(t){const e=this,n=t.operators||[];if(t.background){e.background=t.background}if(t.eventConfig){e.eventConfig=t.eventConfig}if(t.locale){e.locale=t.locale}n.forEach((t=>e.parseOperator(t)));n.forEach((t=>e.parseOperatorParameters(t)));(t.streams||[]).forEach((t=>e.parseStream(t)));(t.updates||[]).forEach((t=>e.parseUpdate(t)));return e.resolve()}const xL=(0,p.M1)(["rule"]),_L=(0,p.M1)(["group","image","rect"]);function wL(t,e){let n="";if(xL[e])return n;if(t.x2){if(t.x){if(_L[e]){n+="if(o.x>o.x2)$=o.x,o.x=o.x2,o.x2=$;"}n+="o.width=o.x2-o.x;"}else{n+="o.x=o.x2-(o.width||0);"}}if(t.xc){n+="o.x=o.xc-(o.width||0)/2;"}if(t.y2){if(t.y){if(_L[e]){n+="if(o.y>o.y2)$=o.y,o.y=o.y2,o.y2=$;"}n+="o.height=o.y2-o.y;"}else{n+="o.y=o.y2-(o.height||0);"}}if(t.yc){n+="o.y=o.yc-(o.height||0)/2;"}return n}function AL(t){return(t+"").toLowerCase()}function kL(t){return AL(t)==="operator"}function EL(t){return AL(t)==="collect"}function ML(t,e,n){if(!n.endsWith(";")){n="return("+n+");"}const i=Function(...e.concat(n));return t&&t.functions?i.bind(t.functions):i}function DL(t,e,n,i){return`((u = ${t}) < (v = ${e}) || u == null) && v != null ? ${n}\n : (u > v || v == null) && u != null ? ${i}\n : ((v = v instanceof Date ? +v : v), (u = u instanceof Date ? +u : u)) !== u && v === v ? ${n}\n : v !== v && u === u ? ${i} : `}var CL={operator:(t,e)=>ML(t,["_"],e.code),parameter:(t,e)=>ML(t,["datum","_"],e.code),event:(t,e)=>ML(t,["event"],e.code),handler:(t,e)=>{const n=`var datum=event.item&&event.item.datum;return ${e.code};`;return ML(t,["_","event"],n)},encode:(t,e)=>{const{marktype:n,channels:i}=e;let r="var o=item,datum=o.datum,m=0,$;";for(const s in i){const t="o["+(0,p.r$)(s)+"]";r+=`$=${i[s].code};if(${t}!==$)${t}=$,m=1;`}r+=wL(i,n);r+="return m;";return ML(t,["item","_"],r)},codegen:{get(t){const e=`[${t.map(p.r$).join("][")}]`;const n=Function("_",`return _${e};`);n.path=e;return n},comparator(t,e){let n;const i=(t,i)=>{const r=e[i];let s,a;if(t.path){s=`a${t.path}`;a=`b${t.path}`}else{(n=n||{})["f"+i]=t;s=`this.f${i}(a)`;a=`this.f${i}(b)`}return DL(s,a,-r,r)};const r=Function("a","b","var u, v; return "+t.map(i).join("")+"0;");return n?r.bind(n):r}}};function FL(t){const e=this;if(kL(t.type)||!t.type){e.operator(t,t.update?e.operatorExpression(t.update):null)}else{e.transform(t,t.type)}}function SL(t){const e=this;if(t.params){const n=e.get(t.id);if(!n)(0,p.z3)("Invalid operator id: "+t.id);e.dataflow.connect(n,n.parameters(e.parseParameters(t.params),t.react,t.initonly))}}function zL(t,e){e=e||{};const n=this;for(const i in t){const r=t[i];e[i]=(0,p.cy)(r)?r.map((t=>BL(t,n,e))):BL(r,n,e)}return e}function BL(t,e,n){if(!t||!(0,p.Gv)(t))return t;for(let i=0,r=$L.length,s;it&&t.$tupleid?yn:t));return e.fn[n]||(e.fn[n]=(0,p.UD)(i,t.$order,e.expr.codegen))}function PL(t,e){const n=t.$encode,i={};for(const r in n){const t=n[r];i[r]=(0,p.sY)(e.encodeExpression(t.$expr),t.$fields);i[r].output=t.$output}return i}function qL(t,e){return e}function IL(t,e){const n=t.$subflow;return function(t,i,r){const s=e.fork().parse(n),a=s.get(n.operators[0].id),o=s.signals.parent;if(o)o.set(r);a.detachSubflow=()=>e.detach(s);return a}}function UL(){return yn}function jL(t){var e=this,n=t.filter!=null?e.eventExpression(t.filter):undefined,i=t.stream!=null?e.get(t.stream):undefined,r;if(t.source){i=e.events(t.source,t.type,n)}else if(t.merge){r=t.merge.map((t=>e.get(t)));i=r[0].merge.apply(r[0],r.slice(1))}if(t.between){r=t.between.map((t=>e.get(t)));i=i.between(r[0],r[1])}if(t.filter){i=i.filter(n)}if(t.throttle!=null){i=i.throttle(+t.throttle)}if(t.debounce!=null){i=i.debounce(+t.debounce)}if(i==null){(0,p.z3)("Invalid stream definition: "+JSON.stringify(t))}if(t.consume)i.consume(true);e.stream(t,i)}function GL(t){var e=this,n=(0,p.Gv)(n=t.source)?n.$ref:n,i=e.get(n),r=null,s=t.update,a=undefined;if(!i)(0,p.z3)("Source not defined: "+t.source);r=t.target&&t.target.$expr?e.eventExpression(t.target.$expr):e.get(t.target);if(s&&s.$expr){if(s.$params){a=e.parseParameters(s.$params)}s=e.handlerExpression(s.$expr)}e.update(t,i,r,s,a)}const YL={skip:true};function WL(t){var e=this,n={};if(t.signals){var i=n.signals={};Object.keys(e.signals).forEach((n=>{const r=e.signals[n];if(t.signals(n,r)){i[n]=r.value}}))}if(t.data){var r=n.data={};Object.keys(e.data).forEach((n=>{const i=e.data[n];if(t.data(n,i)){r[n]=i.input.value}}))}if(e.subcontext&&t.recurse!==false){n.subcontext=e.subcontext.map((e=>e.getState(t)))}return n}function XL(t){var e=this,n=e.dataflow,i=t.data,r=t.signals;Object.keys(r||{}).forEach((t=>{n.update(e.signals[t],r[t],YL)}));Object.keys(i||{}).forEach((t=>{n.pulse(e.data[t].input,n.changeset().remove(p.vN).insert(i[t]))}));(t.subcontext||[]).forEach(((t,n)=>{const i=e.subcontext[n];if(i)i.setState(t)}))}function HL(t,e,n,i){return new VL(t,e,n,i)}function VL(t,e,n,i){this.dataflow=t;this.transforms=e;this.events=t.events.bind(t);this.expr=i||CL,this.signals={};this.scales={};this.nodes={};this.data={};this.fn={};if(n){this.functions=Object.create(n);this.functions.context=this}}function QL(t){this.dataflow=t.dataflow;this.transforms=t.transforms;this.events=t.events;this.expr=t.expr;this.signals=Object.create(t.signals);this.scales=Object.create(t.scales);this.nodes=Object.create(t.nodes);this.data=Object.create(t.data);this.fn=Object.create(t.fn);if(t.functions){this.functions=Object.create(t.functions);this.functions.context=this}}VL.prototype=QL.prototype={fork(){const t=new QL(this);(this.subcontext||(this.subcontext=[])).push(t);return t},detach(t){this.subcontext=this.subcontext.filter((e=>e!==t));const e=Object.keys(t.nodes);for(const n of e)t.nodes[n]._targets=null;for(const n of e)t.nodes[n].detach();t.nodes=null},get(t){return this.nodes[t]},set(t,e){return this.nodes[t]=e},add(t,e){const n=this,i=n.dataflow,r=t.value;n.set(t.id,e);if(EL(t.type)&&r){if(r.$ingest){i.ingest(e,r.$ingest,r.$format)}else if(r.$request){i.preload(e,r.$request,r.$format)}else{i.pulse(e,i.changeset().insert(r))}}if(t.root){n.root=e}if(t.parent){let r=n.get(t.parent.$ref);if(r){i.connect(r,[e]);e.targets().add(r)}else{(n.unresolved=n.unresolved||[]).push((()=>{r=n.get(t.parent.$ref);i.connect(r,[e]);e.targets().add(r)}))}}if(t.signal){n.signals[t.signal]=e}if(t.scale){n.scales[t.scale]=e}if(t.data){for(const i in t.data){const r=n.data[i]||(n.data[i]={});t.data[i].forEach((t=>r[t]=e))}}},resolve(){(this.unresolved||[]).forEach((t=>t()));delete this.unresolved;return this},operator(t,e){this.add(t,this.dataflow.add(t.value,e))},transform(t,e){this.add(t,this.dataflow.add(this.transforms[AL(e)]))},stream(t,e){this.set(t.id,e)},update(t,e,n,i,r){this.dataflow.on(e,n,i,r,t.options)},operatorExpression(t){return this.expr.operator(this,t)},parameterExpression(t){return this.expr.parameter(this,t)},eventExpression(t){return this.expr.event(this,t)},handlerExpression(t){return this.expr.handler(this,t)},encodeExpression(t){return this.expr.encode(this,t)},parse:bL,parseOperator:FL,parseOperatorParameters:SL,parseParameters:zL,parseStream:jL,parseUpdate:GL,getState:WL,setState:XL};function KL(t,e,n){var i=new QE.M4,r=e;if(e==null)return i.restart(t,e,n),i;i._restart=i.restart;i.restart=function(t,e,n){e=+e,n=n==null?(0,QE.tB)():+n;i._restart((function s(a){a+=r;i._restart(s,r+=e,n);t(a)}),e,n)};i.restart(t,e,n);return i}function ZL(t){const e=t.container();if(e){e.setAttribute("role","graphics-document");e.setAttribute("aria-roleDescription","visualization");JL(e,t.description())}}function JL(t,e){if(t)e==null?t.removeAttribute("aria-label"):t.setAttribute("aria-label",e)}function tP(t){t.add(null,(e=>{t._background=e.bg;t._resize=1;return e.bg}),{bg:t._signals.background})}const eP="default";function nP(t){const e=t._signals.cursor||(t._signals.cursor=t.add({user:eP,item:null}));t.on(t.events("view","pointermove"),e,((t,n)=>{const i=e.value,r=i?(0,p.Kg)(i)?i:i.user:eP,s=n.item&&n.item.cursor||null;return i&&r===i.user&&s==i.item?i:{user:r,item:s}}));t.add(null,(function(e){let n=e.cursor,i=this.value;if(!(0,p.Kg)(n)){i=n.item;n=n.user}iP(t,n&&n!==eP?n:i||n);return i}),{cursor:e})}function iP(t,e){const n=t.globalCursor()?typeof document!=="undefined"&&document.body:t.container();if(n){return e==null?n.style.removeProperty("cursor"):n.style.cursor=e}}function rP(t,e){var n=t._runtime.data;if(!(0,p.mQ)(n,e)){(0,p.z3)("Unrecognized data set: "+e)}return n[e]}function sP(t,e){return arguments.length<2?rP(this,t).values.value:aP.call(this,t,En().remove(p.vN).insert(e))}function aP(t,e){if(!kn(e)){(0,p.z3)("Second argument to changes must be a changeset.")}const n=rP(this,t);n.modified=true;return this.pulse(n.input,e)}function oP(t,e){return aP.call(this,t,En().insert(e))}function uP(t,e){return aP.call(this,t,En().remove(e))}function lP(t){var e=t.padding();return Math.max(0,t._viewWidth+e.left+e.right)}function cP(t){var e=t.padding();return Math.max(0,t._viewHeight+e.top+e.bottom)}function fP(t){var e=t.padding(),n=t._origin;return[e.left+n[0],e.top+n[1]]}function dP(t){var e=fP(t),n=lP(t),i=cP(t);t._renderer.background(t.background());t._renderer.resize(n,i,e);t._handler.origin(e);t._resizeListeners.forEach((e=>{try{e(n,i)}catch(r){t.error(r)}}))}function hP(t,e,n){var i=t._renderer,r=i&&i.canvas(),s,a,o;if(r){o=fP(t);a=e.changedTouches?e.changedTouches[0]:e;s=fm(a,r);s[0]-=o[0];s[1]-=o[1]}e.dataflow=t;e.item=n;e.vega=pP(t,n,s);return e}function pP(t,e,n){const i=e?e.mark.marktype==="group"?e:e.mark.group:null;function r(t){var n=i,r;if(t)for(r=e;r;r=r.mark.group){if(r.mark.name===t){n=r;break}}return n&&n.mark&&n.mark.interactive?n:{}}function s(t){if(!t)return n;if((0,p.Kg)(t))t=r(t);const e=n.slice();while(t){e[0]-=t.x||0;e[1]-=t.y||0;t=t.mark&&t.mark.group}return e}return{view:(0,p.dY)(t),item:(0,p.dY)(e||{}),group:r,xy:s,x:t=>s(t)[0],y:t=>s(t)[1]}}const mP="view",gP="timer",yP="window",vP={trap:false};function bP(t){const e=(0,p.X$)({defaults:{}},t);const n=(t,e)=>{e.forEach((e=>{if((0,p.cy)(t[e]))t[e]=(0,p.M1)(t[e])}))};n(e.defaults,["prevent","allow"]);n(e,["view","window","selector"]);return e}function xP(t,e,n,i){t._eventListeners.push({type:n,sources:(0,p.YO)(e),handler:i})}function _P(t,e){var n=t._eventConfig.defaults,i=n.prevent,r=n.allow;return i===false||r===true?false:i===true||r===false?true:i?i[e]:r?!r[e]:t.preventDefault()}function wP(t,e,n){const i=t._eventConfig&&t._eventConfig[e];if(i===false||(0,p.Gv)(i)&&!i[n]){t.warn(`Blocked ${e} ${n} event listener.`);return false}return true}function AP(t,e,n){var i=this,r=new Ln(n),s=function(n,s){i.runAsync(null,(()=>{if(t===mP&&_P(i,e)){n.preventDefault()}r.receive(hP(i,n,s))}))},a;if(t===gP){if(wP(i,"timer",e)){i.timer(s,e)}}else if(t===mP){if(wP(i,"view",e)){i.addEventListener(e,s,vP)}}else{if(t===yP){if(wP(i,"window",e)&&typeof window!=="undefined"){a=[window]}}else if(typeof document!=="undefined"){if(wP(i,"selector",e)){a=Array.from(document.querySelectorAll(t))}}if(!a){i.warn("Can not resolve event source: "+t)}else{for(var o=0,u=a.length;o=0){e[r].stop()}r=i.length;while(--r>=0){a=i[r];s=a.sources.length;while(--s>=0){a.sources[s].removeEventListener(a.type,a.handler)}}if(t){t.call(this,this._handler,null,null,null)}r=n.length;while(--r>=0){u=n[r].type;o=n[r].handler;this._handler.off(u,o)}return this}function FP(t,e,n){const i=document.createElement(t);for(const r in e)i.setAttribute(r,e[r]);if(n!=null)i.textContent=n;return i}const SP="vega-bind",zP="vega-bind-name",BP="vega-bind-radio";function $P(t,e,n){if(!e)return;const i=n.param;let r=n.state;if(!r){r=n.state={elements:null,active:false,set:null,update:e=>{if(e!=t.signal(i.signal)){t.runAsync(null,(()=>{r.source=true;t.signal(i.signal,e)}))}}};if(i.debounce){r.update=(0,p.sg)(i.debounce,r.update)}}const s=i.input==null&&i.element?RP:TP;s(r,e,i,t);if(!r.active){t.on(t._signals[i.signal],null,(()=>{r.source?r.source=false:r.set(t.signal(i.signal))}));r.active=true}return r}function RP(t,e,n,i){const r=n.event||"input";const s=()=>t.update(e.value);i.signal(n.signal,e.value);e.addEventListener(r,s);xP(i,e,r,s);t.set=t=>{e.value=t;e.dispatchEvent(OP(r))}}function OP(t){return typeof Event!=="undefined"?new Event(t):{type:t}}function TP(t,e,n,i){const r=i.signal(n.signal);const s=FP("div",{class:SP});const a=n.input==="radio"?s:s.appendChild(FP("label"));a.appendChild(FP("span",{class:zP},n.name||n.signal));e.appendChild(s);let o=NP;switch(n.input){case"checkbox":o=LP;break;case"select":o=PP;break;case"radio":o=qP;break;case"range":o=IP;break}o(t,a,n,r)}function NP(t,e,n,i){const r=FP("input");for(const s in n){if(s!=="signal"&&s!=="element"){r.setAttribute(s==="input"?"type":s,n[s])}}r.setAttribute("name",n.signal);r.value=i;e.appendChild(r);r.addEventListener("input",(()=>t.update(r.value)));t.elements=[r];t.set=t=>r.value=t}function LP(t,e,n,i){const r={type:"checkbox",name:n.signal};if(i)r.checked=true;const s=FP("input",r);e.appendChild(s);s.addEventListener("change",(()=>t.update(s.checked)));t.elements=[s];t.set=t=>s.checked=!!t||null}function PP(t,e,n,i){const r=FP("select",{name:n.signal}),s=n.labels||[];n.options.forEach(((t,e)=>{const n={value:t};if(UP(t,i))n.selected=true;r.appendChild(FP("option",n,(s[e]||t)+""))}));e.appendChild(r);r.addEventListener("change",(()=>{t.update(n.options[r.selectedIndex])}));t.elements=[r];t.set=t=>{for(let e=0,i=n.options.length;e{const o={type:"radio",name:n.signal,value:e};if(UP(e,i))o.checked=true;const u=FP("input",o);u.addEventListener("change",(()=>t.update(e)));const l=FP("label",{},(s[a]||e)+"");l.prepend(u);r.appendChild(l);return u}));t.set=e=>{const n=t.elements,i=n.length;for(let t=0;t{u.textContent=o.value;t.update(+o.value)};o.addEventListener("input",l);o.addEventListener("change",l);t.elements=[o];t.set=t=>{o.value=t;u.textContent=t}}function UP(t,e){return t===e||t+""===e+""}function jP(t,e,n,i,r,s){e=e||new i(t.loader());return e.initialize(n,lP(t),cP(t),fP(t),r,s).background(t.background())}function GP(t,e){return!e?null:function(){try{e.apply(this,arguments)}catch(n){t.error(n)}}}function YP(t,e,n,i){const r=new i(t.loader(),GP(t,t.tooltip())).scene(t.scenegraph().root).initialize(n,fP(t),t);if(e){e.handlers().forEach((t=>{r.on(t.type,t.handler)}))}return r}function WP(t,e){const n=this,i=n._renderType,r=n._eventConfig.bind,s=ly(i);t=n._el=t?XP(n,t,true):null;ZL(n);if(!s)n.error("Unrecognized renderer type: "+i);const a=s.handler||jm,o=t?s.renderer:s.headless;n._renderer=!o?null:jP(n,n._renderer,t,o);n._handler=YP(n,n._handler,t,a);n._redraw=true;if(t&&r!=="none"){e=e?n._elBind=XP(n,e,true):t.appendChild(FP("form",{class:"vega-bindings"}));n._bind.forEach((t=>{if(t.param.element&&r!=="container"){t.element=XP(n,t.param.element,!!t.param.input)}}));n._bind.forEach((t=>{$P(n,t.element||e,t)}))}return n}function XP(t,e,n){if(typeof e==="string"){if(typeof document!=="undefined"){e=document.querySelector(e);if(!e){t.error("Signal bind element not found: "+e);return null}}else{t.error("DOM document instance not found.");return null}}if(e&&n){try{e.textContent=""}catch(i){e=null;t.error(i)}}return e}const HP=t=>+t||0;const VP=t=>({top:t,bottom:t,left:t,right:t});function QP(t){return(0,p.Gv)(t)?{top:HP(t.top),bottom:HP(t.bottom),left:HP(t.left),right:HP(t.right)}:VP(HP(t))}async function KP(t,e,n,i){const r=ly(e),s=r&&r.headless;if(!s)(0,p.z3)("Unrecognized renderer type: "+e);await t.runAsync();return jP(t,null,null,s,n,i).renderAsync(t._scenegraph.root)}async function ZP(t,e){if(t!==oy.Canvas&&t!==oy.SVG&&t!==oy.PNG){(0,p.z3)("Unrecognized image type: "+t)}const n=await KP(this,t,e);return t===oy.SVG?JP(n.svg(),"image/svg+xml"):n.canvas().toDataURL("image/png")}function JP(t,e){const n=new Blob([t],{type:e});return window.URL.createObjectURL(n)}async function tq(t,e){const n=await KP(this,oy.Canvas,t,e);return n.canvas()}async function eq(t){const e=await KP(this,oy.SVG,t);return e.svg()}function nq(t,e,n){return HL(t,$i,lL,n).parse(e)}function iq(t){var e=this._runtime.scales;if(!(0,p.mQ)(e,t)){(0,p.z3)("Unrecognized scale or projection: "+t)}return e[t].value}var rq="width",sq="height",aq="padding",oq={skip:true};function uq(t,e){var n=t.autosize(),i=t.padding();return e-(n&&n.contains===aq?i.left+i.right:0)}function lq(t,e){var n=t.autosize(),i=t.padding();return e-(n&&n.contains===aq?i.top+i.bottom:0)}function cq(t){var e=t._signals,n=e[rq],i=e[sq],r=e[aq];function s(){t._autosize=t._resize=1}t._resizeWidth=t.add(null,(e=>{t._width=e.size;t._viewWidth=uq(t,e.size);s()}),{size:n});t._resizeHeight=t.add(null,(e=>{t._height=e.size;t._viewHeight=lq(t,e.size);s()}),{size:i});const a=t.add(null,s,{pad:r});t._resizeWidth.rank=n.rank+1;t._resizeHeight.rank=i.rank+1;a.rank=r.rank+1}function fq(t,e,n,i,r,s){this.runAfter((a=>{let o=0;a._autosize=0;if(a.width()!==n){o=1;a.signal(rq,n,oq);a._resizeWidth.skip(true)}if(a.height()!==i){o=1;a.signal(sq,i,oq);a._resizeHeight.skip(true)}if(a._viewWidth!==t){a._resize=1;a._viewWidth=t}if(a._viewHeight!==e){a._resize=1;a._viewHeight=e}if(a._origin[0]!==r[0]||a._origin[1]!==r[1]){a._resize=1;a._origin=r}if(o)a.run("enter");if(s)a.runAfter((t=>t.resize()))}),false,1)}function dq(t){return this._runtime.getState(t||{data:hq,signals:pq,recurse:true})}function hq(t,e){return e.modified&&(0,p.cy)(e.input.value)&&!t.startsWith("_:vega:_")}function pq(t,e){return!(t==="parent"||e instanceof $i.proxy)}function mq(t){this.runAsync(null,(e=>{e._trigger=false;e._runtime.setState(t)}),(t=>{t._trigger=true}));return this}function gq(t,e){function n(e){t({timestamp:Date.now(),elapsed:e})}this._timers.push(KL(n,e))}function yq(t,e,n,i){const r=t.element();if(r)r.setAttribute("title",vq(i))}function vq(t){return t==null?"":(0,p.cy)(t)?xq(t):(0,p.Gv)(t)&&!(0,p.$P)(t)?bq(t):t+""}function bq(t){return Object.keys(t).map((e=>{const n=t[e];return e+": "+((0,p.cy)(n)?xq(n):_q(n))})).join("\n")}function xq(t){return"["+t.map(_q).join(", ")+"]"}function _q(t){return(0,p.cy)(t)?"[…]":(0,p.Gv)(t)&&!(0,p.$P)(t)?"{…}":t}function wq(){if(this.renderer()==="canvas"&&this._renderer._canvas){let t=null;const e=()=>{if(t!=null){t()}const n=matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`);n.addEventListener("change",e);t=()=>{n.removeEventListener("change",e)};this._renderer._canvas.getContext("2d").pixelRatio=window.devicePixelRatio||1;this._redraw=true;this._resize=1;this.resize().runAsync()};e()}}function Aq(t,e){const n=this;e=e||{};Si.call(n);if(e.loader)n.loader(e.loader);if(e.logger)n.logger(e.logger);if(e.logLevel!=null)n.logLevel(e.logLevel);if(e.locale||t.locale){const i=(0,p.X$)({},t.locale,e.locale);n.locale(Ce(i.number,i.time))}n._el=null;n._elBind=null;n._renderType=e.renderer||oy.Canvas;n._scenegraph=new rm;const i=n._scenegraph.root;n._renderer=null;n._tooltip=e.tooltip||yq,n._redraw=true;n._handler=(new jm).scene(i);n._globalCursor=false;n._preventDefault=false;n._timers=[];n._eventListeners=[];n._resizeListeners=[];n._eventConfig=bP(t.eventConfig);n.globalCursor(n._eventConfig.globalCursor);const r=nq(n,t,e.expr);n._runtime=r;n._signals=r.signals;n._bind=(t.bindings||[]).map((t=>({state:null,param:(0,p.X$)({},t)})));if(r.root)r.root.set(i);i.source=r.data.root.input;n.pulse(r.data.root.input,n.changeset().insert(i.items));n._width=n.width();n._height=n.height();n._viewWidth=uq(n,n._width);n._viewHeight=lq(n,n._height);n._origin=[0,0];n._resize=0;n._autosize=1;cq(n);tP(n);nP(n);n.description(t.description);if(e.hover)n.hover();if(e.container)n.initialize(e.container,e.bind);if(e.watchPixelRatio)n._watchPixelRatio()}function kq(t,e){return(0,p.mQ)(t._signals,e)?t._signals[e]:(0,p.z3)("Unrecognized signal name: "+(0,p.r$)(e))}function Eq(t,e){const n=(t._targets||[]).filter((t=>t._update&&t._update.handler===e));return n.length?n[0]:null}function Mq(t,e,n,i){let r=Eq(n,i);if(!r){r=GP(t,(()=>i(e,n.value)));r.handler=i;t.on(n,null,r)}return t}function Dq(t,e,n){const i=Eq(e,n);if(i)e._targets.remove(i);return t}(0,p.B)(Aq,Si,{async evaluate(t,e,n){await Si.prototype.evaluate.call(this,t,e);if(this._redraw||this._resize){try{if(this._renderer){if(this._resize){this._resize=0;dP(this)}await this._renderer.renderAsync(this._scenegraph.root)}this._redraw=false}catch(i){this.error(i)}}if(n)hn(this,n);return this},dirty(t){this._redraw=true;this._renderer&&this._renderer.dirty(t)},description(t){if(arguments.length){const e=t!=null?t+"":null;if(e!==this._desc)JL(this._el,this._desc=e);return this}return this._desc},container(){return this._el},scenegraph(){return this._scenegraph},origin(){return this._origin.slice()},signal(t,e,n){const i=kq(this,t);return arguments.length===1?i.value:this.update(i,e,n)},width(t){return arguments.length?this.signal("width",t):this.signal("width")},height(t){return arguments.length?this.signal("height",t):this.signal("height")},padding(t){return arguments.length?this.signal("padding",QP(t)):QP(this.signal("padding"))},autosize(t){return arguments.length?this.signal("autosize",t):this.signal("autosize")},background(t){return arguments.length?this.signal("background",t):this.signal("background")},renderer(t){if(!arguments.length)return this._renderType;if(!ly(t))(0,p.z3)("Unrecognized renderer type: "+t);if(t!==this._renderType){this._renderType=t;this._resetRenderer()}return this},tooltip(t){if(!arguments.length)return this._tooltip;if(t!==this._tooltip){this._tooltip=t;this._resetRenderer()}return this},loader(t){if(!arguments.length)return this._loader;if(t!==this._loader){Si.prototype.loader.call(this,t);this._resetRenderer()}return this},resize(){this._autosize=1;return this.touch(kq(this,"autosize"))},_resetRenderer(){if(this._renderer){this._renderer=null;this.initialize(this._el,this._elBind)}},_resizeView:fq,addEventListener(t,e,n){let i=e;if(!(n&&n.trap===false)){i=GP(this,e);i.raw=e}this._handler.on(t,i);return this},removeEventListener(t,e){var n=this._handler.handlers(t),i=n.length,r,s;while(--i>=0){s=n[i].type;r=n[i].handler;if(t===s&&(e===r||e===r.raw)){this._handler.off(s,r);break}}return this},addResizeListener(t){const e=this._resizeListeners;if(!e.includes(t)){e.push(t)}return this},removeResizeListener(t){var e=this._resizeListeners,n=e.indexOf(t);if(n>=0){e.splice(n,1)}return this},addSignalListener(t,e){return Mq(this,t,kq(this,t),e)},removeSignalListener(t,e){return Dq(this,kq(this,t),e)},addDataListener(t,e){return Mq(this,t,rP(this,t).values,e)},removeDataListener(t,e){return Dq(this,rP(this,t).values,e)},globalCursor(t){if(arguments.length){if(this._globalCursor!==!!t){const e=iP(this,null);this._globalCursor=!!t;if(e)iP(this,e)}return this}else{return this._globalCursor}},preventDefault(t){if(arguments.length){this._preventDefault=t;return this}else{return this._preventDefault}},timer:gq,events:AP,finalize:CP,hover:DP,data:sP,change:aP,insert:oP,remove:uP,scale:iq,initialize:WP,toImageURL:ZP,toCanvas:tq,toSVG:eq,getState:dq,setState:mq,_watchPixelRatio:wq});var Cq=n(45948);function Fq(t){return(0,p.Gv)(t)?t:{type:t||"pad"}}const Sq=t=>+t||0;const zq=t=>({top:t,bottom:t,left:t,right:t});function Bq(t){return!(0,p.Gv)(t)?zq(Sq(t)):t.signal?t:{top:Sq(t.top),bottom:Sq(t.bottom),left:Sq(t.left),right:Sq(t.right)}}const $q=t=>(0,p.Gv)(t)&&!(0,p.cy)(t)?(0,p.X$)({},t):{value:t};function Rq(t,e,n,i){if(n!=null){const r=(0,p.Gv)(n)&&!(0,p.cy)(n)||(0,p.cy)(n)&&n.length&&(0,p.Gv)(n[0]);if(r){t.update[e]=n}else{t[i||"enter"][e]={value:n}}return 1}else{return 0}}function Oq(t,e,n){for(const i in e){Rq(t,i,e[i])}for(const i in n){Rq(t,i,n[i],"update")}}function Tq(t,e,n){for(const i in e){if(n&&(0,p.mQ)(n,i))continue;t[i]=(0,p.X$)(t[i]||{},e[i])}return t}function Nq(t,e){return e&&(e.enter&&e.enter[t]||e.update&&e.update[t])}const Lq="mark";const Pq="frame";const qq="scope";const Iq="axis";const Uq="axis-domain";const jq="axis-grid";const Gq="axis-label";const Yq="axis-tick";const Wq="axis-title";const Xq="legend";const Hq="legend-band";const Vq="legend-entry";const Qq="legend-gradient";const Kq="legend-label";const Zq="legend-symbol";const Jq="legend-title";const tI="title";const eI="title-text";const nI="title-subtitle";function iI(t,e,n,i,r){const s={},a={};let o,u,l,c;u="lineBreak";if(e==="text"&&r[u]!=null&&!Nq(u,t)){rI(s,u,r[u])}if(n=="legend"||String(n).startsWith("axis")){n=null}c=n===Pq?r.group:n===Lq?(0,p.X$)({},r.mark,r[e]):null;for(u in c){l=Nq(u,t)||(u==="fill"||u==="stroke")&&(Nq("fill",t)||Nq("stroke",t));if(!l)rI(s,u,c[u])}(0,p.YO)(i).forEach((e=>{const n=r.style&&r.style[e];for(const i in n){if(!Nq(i,t)){rI(s,i,n[i])}}}));t=(0,p.X$)({},t);for(u in s){c=s[u];if(c.signal){(o=o||{})[u]=c}else{a[u]=c}}t.enter=(0,p.X$)(a,t.enter);if(o)t.update=(0,p.X$)(o,t.update);return t}function rI(t,e,n){t[e]=n&&n.signal?{signal:n.signal}:{value:n}}const sI=t=>(0,p.Kg)(t)?(0,p.r$)(t):t.signal?`(${t.signal})`:fI(t);function aI(t){if(t.gradient!=null){return lI(t)}let e=t.signal?`(${t.signal})`:t.color?uI(t.color):t.field!=null?fI(t.field):t.value!==undefined?(0,p.r$)(t.value):undefined;if(t.scale!=null){e=hI(t,e)}if(e===undefined){e=null}if(t.exponent!=null){e=`pow(${e},${cI(t.exponent)})`}if(t.mult!=null){e+=`*${cI(t.mult)}`}if(t.offset!=null){e+=`+${cI(t.offset)}`}if(t.round){e=`round(${e})`}return e}const oI=(t,e,n,i)=>`(${t}(${[e,n,i].map(aI).join(",")})+'')`;function uI(t){return t.c?oI("hcl",t.h,t.c,t.l):t.h||t.s?oI("hsl",t.h,t.s,t.l):t.l||t.a?oI("lab",t.l,t.a,t.b):t.r||t.g||t.b?oI("rgb",t.r,t.g,t.b):null}function lI(t){const e=[t.start,t.stop,t.count].map((t=>t==null?null:(0,p.r$)(t)));while(e.length&&(0,p.se)(e)==null)e.pop();e.unshift(sI(t.gradient));return`gradient(${e.join(",")})`}function cI(t){return(0,p.Gv)(t)?"("+aI(t)+")":t}function fI(t){return dI((0,p.Gv)(t)?t:{datum:t})}function dI(t){let e,n,i;if(t.signal){e="datum";i=t.signal}else if(t.group||t.parent){n=Math.max(1,t.level||1);e="item";while(n-- >0){e+=".mark.group"}if(t.parent){i=t.parent;e+=".datum"}else{i=t.group}}else if(t.datum){e="datum";i=t.datum}else{(0,p.z3)("Invalid field reference: "+(0,p.r$)(t))}if(!t.signal){i=(0,p.Kg)(i)?(0,p.iv)(i).map(p.r$).join("]["):dI(i)}return e+"["+i+"]"}function hI(t,e){const n=sI(t.scale);if(t.range!=null){e=`lerp(_range(${n}), ${+t.range})`}else{if(e!==undefined)e=`_scale(${n}, ${e})`;if(t.band){e=(e?e+"+":"")+`_bandwidth(${n})`+(+t.band===1?"":"*"+cI(t.band));if(t.extra){e=`(datum.extra ? _scale(${n}, datum.extra.value) : ${e})`}}if(e==null)e="0"}return e}function pI(t){let e="";t.forEach((t=>{const n=aI(t);e+=t.test?`(${t.test})?${n}:`:n}));if((0,p.se)(e)===":"){e+="null"}return e}function mI(t,e,n,i,r,s){const a={};s=s||{};s.encoders={$encode:a};t=iI(t,e,n,i,r.config);for(const o in t){a[o]=gI(t[o],e,s,r)}return s}function gI(t,e,n,i){const r={},s={};for(const a in t){if(t[a]!=null){r[a]=vI(yI(t[a]),i,n,s)}}return{$expr:{marktype:e,channels:r},$fields:Object.keys(s),$output:Object.keys(t)}}function yI(t){return(0,p.cy)(t)?pI(t):aI(t)}function vI(t,e,n,i){const r=vL(t,e);r.$fields.forEach((t=>i[t]=1));(0,p.X$)(n,r.$params);return r.$expr}const bI="outer",xI=["value","update","init","react","bind"];function _I(t,e){(0,p.z3)(t+' for "outer" push: '+(0,p.r$)(e))}function wI(t,e){const n=t.name;if(t.push===bI){if(!e.signals[n])_I("No prior signal definition",n);xI.forEach((e=>{if(t[e]!==undefined)_I("Invalid property ",e)}))}else{const i=e.addSignal(n,t.value);if(t.react===false)i.react=false;if(t.bind)e.addBinding(n,t.bind)}}function AI(t,e,n,i){this.id=-1;this.type=t;this.value=e;this.params=n;if(i)this.parent=i}function kI(t,e,n,i){return new AI(t,e,n,i)}function EI(t,e){return kI("operator",t,e)}function MI(t){const e={$ref:t.id};if(t.id<0)(t.refs=t.refs||[]).push(e);return e}function DI(t,e){return e?{$field:t,$name:e}:{$field:t}}const CI=DI("key");function FI(t,e){return{$compare:t,$order:e}}function SI(t,e){const n={$key:t};if(e)n.$flat=true;return n}const zI="ascending";const BI="descending";function $I(t){return!(0,p.Gv)(t)?"":(t.order===BI?"-":"+")+RI(t.op,t.field)}function RI(t,e){return(t&&t.signal?"$"+t.signal:t||"")+(t&&e?"_":"")+(e&&e.signal?"$"+e.signal:e||"")}const OI="scope";const TI="view";function NI(t){return t&&t.signal}function LI(t){return t&&t.expr}function PI(t){if(NI(t))return true;if((0,p.Gv)(t))for(const e in t){if(PI(t[e]))return true}return false}function qI(t,e){return t!=null?t:e}function II(t){return t&&t.signal||t}const UI="timer";function jI(t,e){const n=t.merge?YI:t.stream?WI:t.type?XI:(0,p.z3)("Invalid stream specification: "+(0,p.r$)(t));return n(t,e)}function GI(t){return t===OI?TI:t||TI}function YI(t,e){const n=t.merge.map((t=>jI(t,e))),i=HI({merge:n},t,e);return e.addStream(i).id}function WI(t,e){const n=jI(t.stream,e),i=HI({stream:n},t,e);return e.addStream(i).id}function XI(t,e){let n;if(t.type===UI){n=e.event(UI,t.throttle);t={between:t.between,filter:t.filter}}else{n=e.event(GI(t.source),t.type)}const i=HI({stream:n},t,e);return Object.keys(i).length===1?n:e.addStream(i).id}function HI(t,e,n){let i=e.between;if(i){if(i.length!==2){(0,p.z3)('Stream "between" parameter must have 2 entries: '+(0,p.r$)(e))}t.between=[jI(i[0],n),jI(i[1],n)]}i=e.filter?[].concat(e.filter):[];if(e.marktype||e.markname||e.markrole){i.push(VI(e.marktype,e.markname,e.markrole))}if(e.source===OI){i.push("inScope(event.item)")}if(i.length){t.filter=vL("("+i.join(")&&(")+")",n).$expr}if((i=e.throttle)!=null){t.throttle=+i}if((i=e.debounce)!=null){t.debounce=+i}if(e.consume){t.consume=true}return t}function VI(t,e,n){const i="event.item";return i+(t&&t!=="*"?"&&"+i+".mark.marktype==='"+t+"'":"")+(n?"&&"+i+".mark.role==='"+n+"'":"")+(e?"&&"+i+".mark.name==='"+e+"'":"")}const QI={code:"_.$value",ast:{type:"Identifier",value:"value"}};function KI(t,e,n){const i=t.encode,r={target:n};let s=t.events,a=t.update,o=[];if(!s){(0,p.z3)("Signal update missing events specification.")}if((0,p.Kg)(s)){s=(0,Cq.P)(s,e.isSubscope()?OI:TI)}s=(0,p.YO)(s).filter((t=>t.signal||t.scale?(o.push(t),0):1));if(o.length>1){o=[JI(o)]}if(s.length){o.push(s.length>1?{merge:s}:s[0])}if(i!=null){if(a)(0,p.z3)("Signal encode and update are mutually exclusive.");a="encode(item(),"+(0,p.r$)(i)+")"}r.update=(0,p.Kg)(a)?vL(a,e):a.expr!=null?vL(a.expr,e):a.value!=null?a.value:a.signal!=null?{$expr:QI,$params:{$value:e.signalRef(a.signal)}}:(0,p.z3)("Invalid signal update specification.");if(t.force){r.options={force:true}}o.forEach((t=>e.addUpdate((0,p.X$)(ZI(t,e),r))))}function ZI(t,e){return{source:t.signal?e.signalRef(t.signal):t.scale?e.scaleRef(t.scale):jI(t,e)}}function JI(t){return{signal:"["+t.map((t=>t.scale?'scale("'+t.scale+'")':t.signal))+"]"}}function tU(t,e){const n=e.getSignal(t.name);let i=t.update;if(t.init){if(i){(0,p.z3)("Signals can not include both init and update expressions.")}else{i=t.init;n.initonly=true}}if(i){i=vL(i,e);n.update=i.$expr;n.params=i.$params}if(t.on){t.on.forEach((t=>KI(t,e,n.id)))}}const eU=t=>(e,n,i)=>kI(t,n,e||undefined,i);const nU=eU("aggregate");const iU=eU("axisticks");const rU=eU("bound");const sU=eU("collect");const aU=eU("compare");const oU=eU("datajoin");const uU=eU("encode");const lU=eU("expression");const cU=eU("facet");const fU=eU("field");const dU=eU("key");const hU=eU("legendentries");const pU=eU("load");const mU=eU("mark");const gU=eU("multiextent");const yU=eU("multivalues");const vU=eU("overlap");const bU=eU("params");const xU=eU("prefacet");const _U=eU("projection");const wU=eU("proxy");const AU=eU("relay");const kU=eU("render");const EU=eU("scale");const MU=eU("sieve");const DU=eU("sortitems");const CU=eU("viewlayout");const FU=eU("values");let SU=0;const zU={min:"min",max:"max",count:"sum"};function BU(t,e){const n=t.type||"linear";if(!Wl(n)){(0,p.z3)("Unrecognized scale type: "+(0,p.r$)(n))}e.addScale(t.name,{type:n,domain:undefined})}function $U(t,e){const n=e.getScale(t.name).params;let i;n.domain=NU(t.domain,t,e);if(t.range!=null){n.range=VU(t,e,n)}if(t.interpolate!=null){HU(t.interpolate,n)}if(t.nice!=null){n.nice=XU(t.nice,e)}if(t.bins!=null){n.bins=WU(t.bins,e)}for(i in t){if((0,p.mQ)(n,i)||i==="name")continue;n[i]=RU(t[i],e)}}function RU(t,e){return!(0,p.Gv)(t)?t:t.signal?e.signalRef(t.signal):(0,p.z3)("Unsupported object: "+(0,p.r$)(t))}function OU(t,e){return t.signal?e.signalRef(t.signal):t.map((t=>RU(t,e)))}function TU(t){(0,p.z3)("Can not find data set: "+(0,p.r$)(t))}function NU(t,e,n){if(!t){if(e.domainMin!=null||e.domainMax!=null){(0,p.z3)("No scale domain defined for domainMin/domainMax to override.")}return}return t.signal?n.signalRef(t.signal):((0,p.cy)(t)?LU:t.fields?qU:PU)(t,e,n)}function LU(t,e,n){return t.map((t=>RU(t,n)))}function PU(t,e,n){const i=n.getData(t.data);if(!i)TU(t.data);return Vl(e.type)?i.valuesRef(n,t.field,jU(t.sort,false)):tc(e.type)?i.domainRef(n,t.field):i.extentRef(n,t.field)}function qU(t,e,n){const i=t.data,r=t.fields.reduce(((t,e)=>{e=(0,p.Kg)(e)?{data:i,field:e}:(0,p.cy)(e)||e.signal?IU(e,n):e;t.push(e);return t}),[]);return(Vl(e.type)?UU:tc(e.type)?GU:YU)(t,n,r)}function IU(t,e){const n="_:vega:_"+SU++,i=sU({});if((0,p.cy)(t)){i.value={$ingest:t}}else if(t.signal){const r="setdata("+(0,p.r$)(n)+","+t.signal+")";i.params.input=e.signalRef(r)}e.addDataPipeline(n,[i,MU({})]);return{data:n,field:"data"}}function UU(t,e,n){const i=jU(t.sort,true);let r,s;const a=n.map((t=>{const n=e.getData(t.data);if(!n)TU(t.data);return n.countsRef(e,t.field,i)}));const o={groupby:CI,pulse:a};if(i){r=i.op||"count";s=i.field?RI(r,i.field):"count";o.ops=[zU[r]];o.fields=[e.fieldRef(s)];o.as=[s]}r=e.add(nU(o));const u=e.add(sU({pulse:MI(r)}));s=e.add(FU({field:CI,sort:e.sortRef(i),pulse:MI(u)}));return MI(s)}function jU(t,e){if(t){if(!t.field&&!t.op){if((0,p.Gv)(t))t.field="key";else t={field:"key"}}else if(!t.field&&t.op!=="count"){(0,p.z3)("No field provided for sort aggregate op: "+t.op)}else if(e&&t.field){if(t.op&&!zU[t.op]){(0,p.z3)("Multiple domain scales can not be sorted using "+t.op)}}}return t}function GU(t,e,n){const i=n.map((t=>{const n=e.getData(t.data);if(!n)TU(t.data);return n.domainRef(e,t.field)}));return MI(e.add(yU({values:i})))}function YU(t,e,n){const i=n.map((t=>{const n=e.getData(t.data);if(!n)TU(t.data);return n.extentRef(e,t.field)}));return MI(e.add(gU({extents:i})))}function WU(t,e){return t.signal||(0,p.cy)(t)?OU(t,e):e.objectProperty(t)}function XU(t,e){return t.signal?e.signalRef(t.signal):(0,p.Gv)(t)?{interval:RU(t.interval),step:RU(t.step)}:RU(t)}function HU(t,e){e.interpolate=RU(t.type||t);if(t.gamma!=null){e.interpolateGamma=RU(t.gamma)}}function VU(t,e,n){const i=e.config.range;let r=t.range;if(r.signal){return e.signalRef(r.signal)}else if((0,p.Kg)(r)){if(i&&(0,p.mQ)(i,r)){t=(0,p.X$)({},t,{range:i[r]});return VU(t,e,n)}else if(r==="width"){r=[0,{signal:"width"}]}else if(r==="height"){r=Vl(t.type)?[0,{signal:"height"}]:[{signal:"height"},0]}else{(0,p.z3)("Unrecognized scale range value: "+(0,p.r$)(r))}}else if(r.scheme){n.scheme=(0,p.cy)(r.scheme)?OU(r.scheme,e):RU(r.scheme,e);if(r.extent)n.schemeExtent=OU(r.extent,e);if(r.count)n.schemeCount=RU(r.count,e);return}else if(r.step){n.rangeStep=RU(r.step,e);return}else if(Vl(t.type)&&!(0,p.cy)(r)){return NU(r,t,e)}else if(!(0,p.cy)(r)){(0,p.z3)("Unsupported range type: "+(0,p.r$)(r))}return r.map((t=>((0,p.cy)(t)?OU:RU)(t,e)))}function QU(t,e){const n=e.config.projection||{},i={};for(const r in t){if(r==="name")continue;i[r]=KU(t[r],r,e)}for(const r in n){if(i[r]==null){i[r]=KU(n[r],r,e)}}e.addProjection(t.name,i)}function KU(t,e,n){return(0,p.cy)(t)?t.map((t=>KU(t,e,n))):!(0,p.Gv)(t)?t:t.signal?n.signalRef(t.signal):e==="fit"?t:(0,p.z3)("Unsupported parameter object: "+(0,p.r$)(t))}const ZU="top";const JU="left";const tj="right";const ej="bottom";const nj="center";const ij="vertical";const rj="start";const sj="middle";const aj="end";const oj="index";const uj="label";const lj="offset";const cj="perc";const fj="perc2";const dj="value";const hj="guide-label";const pj="guide-title";const mj="group-title";const gj="group-subtitle";const yj="symbol";const vj="gradient";const bj="discrete";const xj="size";const _j="shape";const wj="fill";const Aj="stroke";const kj="strokeWidth";const Ej="strokeDash";const Mj="opacity";const Dj=[xj,_j,wj,Aj,kj,Ej,Mj];const Cj={name:1,style:1,interactive:1};const Fj={value:0};const Sj={value:1};const zj="group";const Bj="rect";const $j="rule";const Rj="symbol";const Oj="text";function Tj(t){t.type=zj;t.interactive=t.interactive||false;return t}function Nj(t,e){const n=(n,i)=>qI(t[n],qI(e[n],i));n.isVertical=n=>ij===qI(t.direction,e.direction||(n?e.symbolDirection:e.gradientDirection));n.gradientLength=()=>qI(t.gradientLength,e.gradientLength||e.gradientWidth);n.gradientThickness=()=>qI(t.gradientThickness,e.gradientThickness||e.gradientHeight);n.entryColumns=()=>qI(t.columns,qI(e.columns,+n.isVertical(true)));return n}function Lj(t,e){const n=e&&(e.update&&e.update[t]||e.enter&&e.enter[t]);return n&&n.signal?n:n?n.value:null}function Pj(t,e,n){const i=e.config.style[n];return i&&i[t]}function qj(t,e,n){return`item.anchor === '${rj}' ? ${t} : item.anchor === '${aj}' ? ${e} : ${n}`}const Ij=qj((0,p.r$)(JU),(0,p.r$)(tj),(0,p.r$)(nj));function Uj(t){const e=t("tickBand");let n=t("tickOffset"),i,r;if(!e){i=t("bandPosition");r=t("tickExtra")}else if(e.signal){i={signal:`(${e.signal}) === 'extent' ? 1 : 0.5`};r={signal:`(${e.signal}) === 'extent'`};if(!(0,p.Gv)(n)){n={signal:`(${e.signal}) === 'extent' ? 0 : ${n}`}}}else if(e==="extent"){i=1;r=true;n=0}else{i=.5;r=false}return{extra:r,band:i,offset:n}}function jj(t,e){return!e?t:!t?e:!(0,p.Gv)(t)?{value:t,offset:e}:Object.assign({},t,{offset:jj(t.offset,e)})}function Gj(t,e){if(e){t.name=e.name;t.style=e.style||t.style;t.interactive=!!e.interactive;t.encode=Tq(t.encode,e,Cj)}else{t.interactive=false}return t}function Yj(t,e,n,i){const r=Nj(t,n),s=r.isVertical(),a=r.gradientThickness(),o=r.gradientLength();let u,l,c,f,d;if(s){l=[0,1];c=[0,0];f=a;d=o}else{l=[0,0];c=[1,0];f=o;d=a}const h={enter:u={opacity:Fj,x:Fj,y:Fj,width:$q(f),height:$q(d)},update:(0,p.X$)({},u,{opacity:Sj,fill:{gradient:e,start:l,stop:c}}),exit:{opacity:Fj}};Oq(h,{stroke:r("gradientStrokeColor"),strokeWidth:r("gradientStrokeWidth")},{opacity:r("gradientOpacity")});return Gj({type:Bj,role:Qq,encode:h},i)}function Wj(t,e,n,i,r){const s=Nj(t,n),a=s.isVertical(),o=s.gradientThickness(),u=s.gradientLength();let l,c,f,d,h="";a?(l="y",f="y2",c="x",d="width",h="1-"):(l="x",f="x2",c="y",d="height");const m={opacity:Fj,fill:{scale:e,field:dj}};m[l]={signal:h+"datum."+cj,mult:u};m[c]=Fj;m[f]={signal:h+"datum."+fj,mult:u};m[d]=$q(o);const g={enter:m,update:(0,p.X$)({},m,{opacity:Sj}),exit:{opacity:Fj}};Oq(g,{stroke:s("gradientStrokeColor"),strokeWidth:s("gradientStrokeWidth")},{opacity:s("gradientOpacity")});return Gj({type:Bj,role:Hq,key:dj,from:r,encode:g},i)}const Xj=`datum.${cj}<=0?"${JU}":datum.${cj}>=1?"${tj}":"${nj}"`,Hj=`datum.${cj}<=0?"${ej}":datum.${cj}>=1?"${ZU}":"${sj}"`;function Vj(t,e,n,i){const r=Nj(t,e),s=r.isVertical(),a=$q(r.gradientThickness()),o=r.gradientLength();let u=r("labelOverlap"),l,c,f,d,h="";const p={enter:l={opacity:Fj},update:c={opacity:Sj,text:{field:uj}},exit:{opacity:Fj}};Oq(p,{fill:r("labelColor"),fillOpacity:r("labelOpacity"),font:r("labelFont"),fontSize:r("labelFontSize"),fontStyle:r("labelFontStyle"),fontWeight:r("labelFontWeight"),limit:qI(t.labelLimit,e.gradientLabelLimit)});if(s){l.align={value:"left"};l.baseline=c.baseline={signal:Hj};f="y";d="x";h="1-"}else{l.align=c.align={signal:Xj};l.baseline={value:"top"};f="x";d="y"}l[f]=c[f]={signal:h+"datum."+cj,mult:o};l[d]=c[d]=a;a.offset=qI(t.labelOffset,e.gradientLabelOffset)||0;u=u?{separation:r("labelSeparation"),method:u,order:"datum."+oj}:undefined;return Gj({type:Oj,role:Kq,style:hj,key:dj,from:i,encode:p,overlap:u},n)}function Qj(t,e,n,i,r){const s=Nj(t,e),a=n.entries,o=!!(a&&a.interactive),u=a?a.name:undefined,l=s("clipHeight"),c=s("symbolOffset"),f={data:"value"},d=`(${r}) ? datum.${lj} : datum.${xj}`,h=l?$q(l):{field:xj},p=`datum.${oj}`,m=`max(1, ${r})`;let g,y,v,b,x;h.mult=.5;g={enter:y={opacity:Fj,x:{signal:d,mult:.5,offset:c},y:h},update:v={opacity:Sj,x:y.x,y:y.y},exit:{opacity:Fj}};let _=null,w=null;if(!t.fill){_=e.symbolBaseFillColor;w=e.symbolBaseStrokeColor}Oq(g,{fill:s("symbolFillColor",_),shape:s("symbolType"),size:s("symbolSize"),stroke:s("symbolStrokeColor",w),strokeDash:s("symbolDash"),strokeDashOffset:s("symbolDashOffset"),strokeWidth:s("symbolStrokeWidth")},{opacity:s("symbolOpacity")});Dj.forEach((e=>{if(t[e]){v[e]=y[e]={scale:t[e],field:dj}}}));const A=Gj({type:Rj,role:Zq,key:dj,from:f,clip:l?true:undefined,encode:g},n.symbols);const k=$q(c);k.offset=s("labelOffset");g={enter:y={opacity:Fj,x:{signal:d,offset:k},y:h},update:v={opacity:Sj,text:{field:uj},x:y.x,y:y.y},exit:{opacity:Fj}};Oq(g,{align:s("labelAlign"),baseline:s("labelBaseline"),fill:s("labelColor"),fillOpacity:s("labelOpacity"),font:s("labelFont"),fontSize:s("labelFontSize"),fontStyle:s("labelFontStyle"),fontWeight:s("labelFontWeight"),limit:s("labelLimit")});const E=Gj({type:Oj,role:Kq,style:hj,key:dj,from:f,encode:g},n.labels);g={enter:{noBound:{value:!l},width:Fj,height:l?$q(l):Fj,opacity:Fj},exit:{opacity:Fj},update:v={opacity:Sj,row:{signal:null},column:{signal:null}}};if(s.isVertical(true)){b=`ceil(item.mark.items.length / ${m})`;v.row.signal=`${p}%${b}`;v.column.signal=`floor(${p} / ${b})`;x={field:["row",p]}}else{v.row.signal=`floor(${p} / ${m})`;v.column.signal=`${p} % ${m}`;x={field:p}}v.column.signal=`(${r})?${v.column.signal}:${p}`;i={facet:{data:i,name:"value",groupby:oj}};return Tj({role:qq,from:i,encode:Tq(g,a,Cj),marks:[A,E],name:u,interactive:o,sort:x})}function Kj(t,e){const n=Nj(t,e);return{align:n("gridAlign"),columns:n.entryColumns(),center:{row:true,column:false},padding:{row:n("rowPadding"),column:n("columnPadding")}}}const Zj='item.orient === "left"',Jj='item.orient === "right"',tG=`(${Zj} || ${Jj})`,eG=`datum.vgrad && ${tG}`,nG=qj('"top"','"bottom"','"middle"'),iG=qj('"right"','"left"','"center"'),rG=`datum.vgrad && ${Jj} ? (${iG}) : (${tG} && !(datum.vgrad && ${Zj})) ? "left" : ${Ij}`,sG=`item._anchor || (${tG} ? "middle" : "start")`,aG=`${eG} ? (${Zj} ? -90 : 90) : 0`,oG=`${tG} ? (datum.vgrad ? (${Jj} ? "bottom" : "top") : ${nG}) : "top"`;function uG(t,e,n,i){const r=Nj(t,e);const s={enter:{opacity:Fj},update:{opacity:Sj,x:{field:{group:"padding"}},y:{field:{group:"padding"}}},exit:{opacity:Fj}};Oq(s,{orient:r("titleOrient"),_anchor:r("titleAnchor"),anchor:{signal:sG},angle:{signal:aG},align:{signal:rG},baseline:{signal:oG},text:t.title,fill:r("titleColor"),fillOpacity:r("titleOpacity"),font:r("titleFont"),fontSize:r("titleFontSize"),fontStyle:r("titleFontStyle"),fontWeight:r("titleFontWeight"),limit:r("titleLimit"),lineHeight:r("titleLineHeight")},{align:r("titleAlign"),baseline:r("titleBaseline")});return Gj({type:Oj,role:Jq,style:pj,from:i,encode:s},n)}function lG(t,e){let n;if((0,p.Gv)(t)){if(t.signal){n=t.signal}else if(t.path){n="pathShape("+cG(t.path)+")"}else if(t.sphere){n="geoShape("+cG(t.sphere)+', {type: "Sphere"})'}}return n?e.signalRef(n):!!t}function cG(t){return(0,p.Gv)(t)&&t.signal?t.signal:(0,p.r$)(t)}function fG(t){const e=t.role||"";return e.startsWith("axis")||e.startsWith("legend")||e.startsWith("title")?e:t.type===zj?qq:e||Lq}function dG(t){return{marktype:t.type,name:t.name||undefined,role:t.role||fG(t),zindex:+t.zindex||undefined,aria:t.aria,description:t.description}}function hG(t,e){return t&&t.signal?e.signalRef(t.signal):t===false?false:true}function pG(t,e){const n=Ri(t.type);if(!n)(0,p.z3)("Unrecognized transform type: "+(0,p.r$)(t.type));const i=kI(n.type.toLowerCase(),null,mG(n,t,e));if(t.signal)e.addSignal(t.signal,e.proxy(i));i.metadata=n.metadata||{};return i}function mG(t,e,n){const i={},r=t.params.length;for(let s=0;syG(t,e,n))):yG(t,r,n)}function yG(t,e,n){const i=t.type;if(NI(e)){return kG(i)?(0,p.z3)("Expression references can not be signals."):EG(i)?n.fieldRef(e):MG(i)?n.compareRef(e):n.signalRef(e.signal)}else{const r=t.expr||EG(i);return r&&_G(e)?n.exprRef(e.expr,e.as):r&&wG(e)?DI(e.field,e.as):kG(i)?vL(e,n):AG(i)?MI(n.getData(e).values):EG(i)?DI(e):MG(i)?n.compareRef(e):e}}function vG(t,e,n){if(!(0,p.Kg)(e.from)){(0,p.z3)('Lookup "from" parameter must be a string literal.')}return n.getData(e.from).lookupRef(n,e.key)}function bG(t,e,n){const i=e[t.name];if(t.array){if(!(0,p.cy)(i)){(0,p.z3)("Expected an array of sub-parameters. Instead: "+(0,p.r$)(i))}return i.map((e=>xG(t,e,n)))}else{return xG(t,i,n)}}function xG(t,e,n){const i=t.params.length;let r;for(let a=0;at&&t.expr;const wG=t=>t&&t.field;const AG=t=>t==="data";const kG=t=>t==="expr";const EG=t=>t==="field";const MG=t=>t==="compare";function DG(t,e,n){let i,r,s,a,o;if(!t){a=MI(n.add(sU(null,[{}])))}else if(i=t.facet){if(!e)(0,p.z3)("Only group marks can be faceted.");if(i.field!=null){a=o=CG(i,n)}else{if(!t.data){s=pG((0,p.X$)({type:"aggregate",groupby:(0,p.YO)(i.groupby)},i.aggregate),n);s.params.key=n.keyRef(i.groupby);s.params.pulse=CG(i,n);a=o=MI(n.add(s))}else{o=MI(n.getData(t.data).aggregate)}r=n.keyRef(i.groupby,true)}}if(!a){a=CG(t,n)}return{key:r,pulse:a,parent:o}}function CG(t,e){return t.$ref?t:t.data&&t.data.$ref?t.data:MI(e.getData(t.data).output)}function FG(t,e,n,i,r){this.scope=t;this.input=e;this.output=n;this.values=i;this.aggregate=r;this.index={}}FG.fromEntries=function(t,e){const n=e.length,i=e[n-1],r=e[n-2];let s=e[0],a=null,o=1;if(s&&s.type==="load"){s=e[1]}t.add(e[0]);for(;ot==null?"null":t)).join(",")+"),0)";const c=vL(l,e);u.update=c.$expr;u.params=c.$params}function TG(t,e){const n=fG(t),i=t.type===zj,r=t.from&&t.from.facet,s=t.overlap;let a=t.layout||n===qq||n===Pq,o,u,l,c,f,d,h;const m=n===Lq||a||r;const g=DG(t.from,i,e);u=e.add(oU({key:g.key||(t.key?DI(t.key):undefined),pulse:g.pulse,clean:!i}));const y=MI(u);u=l=e.add(sU({pulse:y}));u=e.add(mU({markdef:dG(t),interactive:hG(t.interactive,e),clip:lG(t.clip,e),context:{$context:true},groups:e.lookup(),parent:e.signals.parent?e.signalRef("parent"):null,index:e.markpath(),pulse:MI(u)}));const v=MI(u);u=c=e.add(uU(mI(t.encode,t.type,n,t.style,e,{mod:false,pulse:v})));u.params.parent=e.encode();if(t.transform){t.transform.forEach((t=>{const n=pG(t,e),i=n.metadata;if(i.generates||i.changes){(0,p.z3)("Mark transforms should not generate new data.")}if(!i.nomod)c.params.mod=true;n.params.pulse=MI(u);e.add(u=n)}))}if(t.sort){u=e.add(DU({sort:e.compareRef(t.sort),pulse:MI(u)}))}const b=MI(u);if(r||a){a=e.add(CU({layout:e.objectProperty(t.layout),legends:e.legends,mark:v,pulse:b}));d=MI(a)}const x=e.add(rU({mark:v,pulse:d||b}));h=MI(x);if(i){if(m){o=e.operators;o.pop();if(a)o.pop()}e.pushState(b,d||h,y);r?$G(t,e,g):m?RG(t,e,g):e.parse(t);e.popState();if(m){if(a)o.push(a);o.push(x)}}if(s){h=NG(s,h,e)}const _=e.add(kU({pulse:h})),w=e.add(MU({pulse:MI(_)},undefined,e.parent()));if(t.name!=null){f=t.name;e.addData(f,new FG(e,l,_,w));if(t.on)t.on.forEach((t=>{if(t.insert||t.remove||t.toggle){(0,p.z3)("Marks only support modify triggers.")}OG(t,e,f)}))}}function NG(t,e,n){const i=t.method,r=t.bound,s=t.separation;const a={separation:NI(s)?n.signalRef(s.signal):s,method:NI(i)?n.signalRef(i.signal):i,pulse:e};if(t.order){a.sort=n.compareRef({field:t.order})}if(r){const t=r.tolerance;a.boundTolerance=NI(t)?n.signalRef(t.signal):+t;a.boundScale=n.scaleRef(r.scale);a.boundOrient=r.orient}return MI(n.add(vU(a)))}function LG(t,e){const n=e.config.legend,i=t.encode||{},r=Nj(t,n),s=i.legend||{},a=s.name||undefined,o=s.interactive,u=s.style,l={};let c=0,f,d,h;Dj.forEach((e=>t[e]?(l[e]=t[e],c=c||t[e]):0));if(!c)(0,p.z3)("Missing valid scale for legend.");const m=PG(t,e.scaleType(c));const g={title:t.title!=null,scales:l,type:m,vgrad:m!=="symbol"&&r.isVertical()};const y=MI(e.add(sU(null,[g])));const v={enter:{x:{value:0},y:{value:0}}};const b=MI(e.add(hU(d={type:m,scale:e.scaleRef(c),count:e.objectProperty(r("tickCount")),limit:e.property(r("symbolLimit")),values:e.objectProperty(t.values),minstep:e.property(t.tickMinStep),formatType:e.property(t.formatType),formatSpecifier:e.property(t.format)})));if(m===vj){h=[Yj(t,c,n,i.gradient),Vj(t,n,i.labels,b)];d.count=d.count||e.signalRef(`max(2,2*floor((${II(r.gradientLength())})/100))`)}else if(m===bj){h=[Wj(t,c,n,i.gradient,b),Vj(t,n,i.labels,b)]}else{f=Kj(t,n);h=[Qj(t,n,i,b,II(f.columns))];d.size=UG(t,e,h[0].marks)}h=[Tj({role:Vq,from:y,encode:v,marks:h,layout:f,interactive:o})];if(g.title){h.push(uG(t,n,i.title,y))}return TG(Tj({role:Xq,from:y,encode:Tq(IG(r,t,n),s,Cj),marks:h,aria:r("aria"),description:r("description"),zindex:r("zindex"),name:a,interactive:o,style:u}),e)}function PG(t,e){let n=t.type||yj;if(!t.type&&qG(t)===1&&(t.fill||t.stroke)){n=Hl(e)?vj:Ql(e)?bj:yj}return n!==vj?n:Ql(e)?bj:vj}function qG(t){return Dj.reduce(((e,n)=>e+(t[n]?1:0)),0)}function IG(t,e,n){const i={enter:{},update:{}};Oq(i,{orient:t("orient"),offset:t("offset"),padding:t("padding"),titlePadding:t("titlePadding"),cornerRadius:t("cornerRadius"),fill:t("fillColor"),stroke:t("strokeColor"),strokeWidth:n.strokeWidth,strokeDash:n.strokeDash,x:t("legendX"),y:t("legendY"),format:e.format,formatType:e.formatType});return i}function UG(t,e,n){const i=II(jG("size",t,n)),r=II(jG("strokeWidth",t,n)),s=II(GG(n[1].encode,e,hj));return vL(`max(ceil(sqrt(${i})+${r}),${s})`,e)}function jG(t,e,n){return e[t]?`scale("${e[t]}",datum)`:Lj(t,n[0].encode)}function GG(t,e,n){return Lj("fontSize",t)||Pj("fontSize",e,n)}const YG=`item.orient==="${JU}"?-90:item.orient==="${tj}"?90:0`;function WG(t,e){t=(0,p.Kg)(t)?{text:t}:t;const n=Nj(t,e.config.title),i=t.encode||{},r=i.group||{},s=r.name||undefined,a=r.interactive,o=r.style,u=[];const l={},c=MI(e.add(sU(null,[l])));u.push(VG(t,n,XG(t),c));if(t.subtitle){u.push(QG(t,n,i.subtitle,c))}return TG(Tj({role:tI,from:c,encode:HG(n,r),marks:u,aria:n("aria"),description:n("description"),zindex:n("zindex"),name:s,interactive:a,style:o}),e)}function XG(t){const e=t.encode;return e&&e.title||(0,p.X$)({name:t.name,interactive:t.interactive,style:t.style},e)}function HG(t,e){const n={enter:{},update:{}};Oq(n,{orient:t("orient"),anchor:t("anchor"),align:{signal:Ij},angle:{signal:YG},limit:t("limit"),frame:t("frame"),offset:t("offset")||0,padding:t("subtitlePadding")});return Tq(n,e,Cj)}function VG(t,e,n,i){const r={value:0},s=t.text,a={enter:{opacity:r},update:{opacity:{value:1}},exit:{opacity:r}};Oq(a,{text:s,align:{signal:"item.mark.group.align"},angle:{signal:"item.mark.group.angle"},limit:{signal:"item.mark.group.limit"},baseline:"top",dx:e("dx"),dy:e("dy"),fill:e("color"),font:e("font"),fontSize:e("fontSize"),fontStyle:e("fontStyle"),fontWeight:e("fontWeight"),lineHeight:e("lineHeight")},{align:e("align"),angle:e("angle"),baseline:e("baseline")});return Gj({type:Oj,role:eI,style:mj,from:i,encode:a},n)}function QG(t,e,n,i){const r={value:0},s=t.subtitle,a={enter:{opacity:r},update:{opacity:{value:1}},exit:{opacity:r}};Oq(a,{text:s,align:{signal:"item.mark.group.align"},angle:{signal:"item.mark.group.angle"},limit:{signal:"item.mark.group.limit"},baseline:"top",dx:e("dx"),dy:e("dy"),fill:e("subtitleColor"),font:e("subtitleFont"),fontSize:e("subtitleFontSize"),fontStyle:e("subtitleFontStyle"),fontWeight:e("subtitleFontWeight"),lineHeight:e("subtitleLineHeight")},{align:e("align"),angle:e("angle"),baseline:e("baseline")});return Gj({type:Oj,role:nI,style:gj,from:i,encode:a},n)}function KG(t,e){const n=[];if(t.transform){t.transform.forEach((t=>{n.push(pG(t,e))}))}if(t.on){t.on.forEach((n=>{OG(n,e,t.name)}))}e.addDataPipeline(t.name,ZG(t,e,n))}function ZG(t,e,n){const i=[];let r=null,s=false,a=false,o,u,l,c,f;if(t.values){if(NI(t.values)||PI(t.format)){i.push(tY(e,t));i.push(r=JG())}else{i.push(r=JG({$ingest:t.values,$format:t.format}))}}else if(t.url){if(PI(t.url)||PI(t.format)){i.push(tY(e,t));i.push(r=JG())}else{i.push(r=JG({$request:t.url,$format:t.format}))}}else if(t.source){r=o=(0,p.YO)(t.source).map((t=>MI(e.getData(t).output)));i.push(null)}for(u=0,l=n.length;ut===ej||t===ZU;const nY=(t,e,n)=>NI(t)?lY(t.signal,e,n):t===JU||t===ZU?e:n;const iY=(t,e,n)=>NI(t)?oY(t.signal,e,n):eY(t)?e:n;const rY=(t,e,n)=>NI(t)?uY(t.signal,e,n):eY(t)?n:e;const sY=(t,e,n)=>NI(t)?cY(t.signal,e,n):t===ZU?{value:e}:{value:n};const aY=(t,e,n)=>NI(t)?fY(t.signal,e,n):t===tj?{value:e}:{value:n};const oY=(t,e,n)=>dY(`${t} === '${ZU}' || ${t} === '${ej}'`,e,n);const uY=(t,e,n)=>dY(`${t} !== '${ZU}' && ${t} !== '${ej}'`,e,n);const lY=(t,e,n)=>pY(`${t} === '${JU}' || ${t} === '${ZU}'`,e,n);const cY=(t,e,n)=>pY(`${t} === '${ZU}'`,e,n);const fY=(t,e,n)=>pY(`${t} === '${tj}'`,e,n);const dY=(t,e,n)=>{e=e!=null?$q(e):e;n=n!=null?$q(n):n;if(hY(e)&&hY(n)){e=e?e.signal||(0,p.r$)(e.value):null;n=n?n.signal||(0,p.r$)(n.value):null;return{signal:`${t} ? (${e}) : (${n})`}}else{return[(0,p.X$)({test:t},e)].concat(n||[])}};const hY=t=>t==null||Object.keys(t).length===1;const pY=(t,e,n)=>({signal:`${t} ? (${gY(e)}) : (${gY(n)})`});const mY=(t,e,n,i,r)=>({signal:(i!=null?`${t} === '${JU}' ? (${gY(i)}) : `:"")+(n!=null?`${t} === '${ej}' ? (${gY(n)}) : `:"")+(r!=null?`${t} === '${tj}' ? (${gY(r)}) : `:"")+(e!=null?`${t} === '${ZU}' ? (${gY(e)}) : `:"")+"(null)"});const gY=t=>NI(t)?t.signal:t==null?null:(0,p.r$)(t);const yY=(t,e)=>e===0?0:NI(t)?{signal:`(${t.signal}) * ${e}`}:{value:t*e};const vY=(t,e)=>{const n=t.signal;return n&&n.endsWith("(null)")?{signal:n.slice(0,-6)+e.signal}:t};function bY(t,e,n,i){let r;if(e&&(0,p.mQ)(e,t)){return e[t]}else if((0,p.mQ)(n,t)){return n[t]}else if(t.startsWith("title")){switch(t){case"titleColor":r="fill";break;case"titleFont":case"titleFontSize":case"titleFontWeight":r=t[5].toLowerCase()+t.slice(6)}return i[pj][r]}else if(t.startsWith("label")){switch(t){case"labelColor":r="fill";break;case"labelFont":case"labelFontSize":r=t[5].toLowerCase()+t.slice(6)}return i[hj][r]}return null}function xY(t){const e={};for(const n of t){if(!n)continue;for(const t in n)e[t]=1}return Object.keys(e)}function _Y(t,e){var n=e.config,i=n.style,r=n.axis,s=e.scaleType(t.scale)==="band"&&n.axisBand,a=t.orient,o,u,l;if(NI(a)){const t=xY([n.axisX,n.axisY]),e=xY([n.axisTop,n.axisBottom,n.axisLeft,n.axisRight]);o={};for(l of t){o[l]=iY(a,bY(l,n.axisX,r,i),bY(l,n.axisY,r,i))}u={};for(l of e){u[l]=mY(a.signal,bY(l,n.axisTop,r,i),bY(l,n.axisBottom,r,i),bY(l,n.axisLeft,r,i),bY(l,n.axisRight,r,i))}}else{o=a===ZU||a===ej?n.axisX:n.axisY;u=n["axis"+a[0].toUpperCase()+a.slice(1)]}const c=o||u||s?(0,p.X$)({},r,o,u,s):r;return c}function wY(t,e,n,i){const r=Nj(t,e),s=t.orient;let a,o;const u={enter:a={opacity:Fj},update:o={opacity:Sj},exit:{opacity:Fj}};Oq(u,{stroke:r("domainColor"),strokeCap:r("domainCap"),strokeDash:r("domainDash"),strokeDashOffset:r("domainDashOffset"),strokeWidth:r("domainWidth"),strokeOpacity:r("domainOpacity")});const l=AY(t,0);const c=AY(t,1);a.x=o.x=iY(s,l,Fj);a.x2=o.x2=iY(s,c);a.y=o.y=rY(s,l,Fj);a.y2=o.y2=rY(s,c);return Gj({type:$j,role:Uq,from:i,encode:u},n)}function AY(t,e){return{scale:t.scale,range:e}}function kY(t,e,n,i,r){const s=Nj(t,e),a=t.orient,o=t.gridScale,u=nY(a,1,-1),l=EY(t.offset,u);let c,f,d;const h={enter:c={opacity:Fj},update:d={opacity:Sj},exit:f={opacity:Fj}};Oq(h,{stroke:s("gridColor"),strokeCap:s("gridCap"),strokeDash:s("gridDash"),strokeDashOffset:s("gridDashOffset"),strokeOpacity:s("gridOpacity"),strokeWidth:s("gridWidth")});const m={scale:t.scale,field:dj,band:r.band,extra:r.extra,offset:r.offset,round:s("tickRound")};const g=iY(a,{signal:"height"},{signal:"width"});const y=o?{scale:o,range:0,mult:u,offset:l}:{value:0,offset:l};const v=o?{scale:o,range:1,mult:u,offset:l}:(0,p.X$)(g,{mult:u,offset:l});c.x=d.x=iY(a,m,y);c.y=d.y=rY(a,m,y);c.x2=d.x2=rY(a,v);c.y2=d.y2=iY(a,v);f.x=iY(a,m);f.y=rY(a,m);return Gj({type:$j,role:jq,key:dj,from:i,encode:h},n)}function EY(t,e){if(e===1);else if(!(0,p.Gv)(t)){t=NI(e)?{signal:`(${e.signal}) * (${t||0})`}:e*(t||0)}else{let n=t=(0,p.X$)({},t);while(n.mult!=null){if(!(0,p.Gv)(n.mult)){n.mult=NI(e)?{signal:`(${n.mult}) * (${e.signal})`}:n.mult*e;return t}else{n=n.mult=(0,p.X$)({},n.mult)}}n.mult=e}return t}function MY(t,e,n,i,r,s){const a=Nj(t,e),o=t.orient,u=nY(o,-1,1);let l,c,f;const d={enter:l={opacity:Fj},update:f={opacity:Sj},exit:c={opacity:Fj}};Oq(d,{stroke:a("tickColor"),strokeCap:a("tickCap"),strokeDash:a("tickDash"),strokeDashOffset:a("tickDashOffset"),strokeOpacity:a("tickOpacity"),strokeWidth:a("tickWidth")});const h=$q(r);h.mult=u;const p={scale:t.scale,field:dj,band:s.band,extra:s.extra,offset:s.offset,round:a("tickRound")};f.y=l.y=iY(o,Fj,p);f.y2=l.y2=iY(o,h);c.x=iY(o,p);f.x=l.x=rY(o,Fj,p);f.x2=l.x2=rY(o,h);c.y=rY(o,p);return Gj({type:$j,role:Yq,key:dj,from:i,encode:d},n)}function DY(t,e,n,i,r){return{signal:'flush(range("'+t+'"), '+'scale("'+t+'", datum.value), '+e+","+n+","+i+","+r+")"}}function CY(t,e,n,i,r,s){const a=Nj(t,e),o=t.orient,u=t.scale,l=nY(o,-1,1),c=II(a("labelFlush")),f=II(a("labelFlushOffset")),d=a("labelAlign"),h=a("labelBaseline");let p=c===0||!!c,m;const g=$q(r);g.mult=l;g.offset=$q(a("labelPadding")||0);g.offset.mult=l;const y={scale:u,field:dj,band:.5,offset:jj(s.offset,a("labelOffset"))};const v=iY(o,p?DY(u,c,'"left"','"right"','"center"'):{value:"center"},aY(o,"left","right"));const b=iY(o,sY(o,"bottom","top"),p?DY(u,c,'"top"','"bottom"','"middle"'):{value:"middle"});const x=DY(u,c,`-(${f})`,f,0);p=p&&f;const _={opacity:Fj,x:iY(o,y,g),y:rY(o,y,g)};const w={enter:_,update:m={opacity:Sj,text:{field:uj},x:_.x,y:_.y,align:v,baseline:b},exit:{opacity:Fj,x:_.x,y:_.y}};Oq(w,{dx:!d&&p?iY(o,x):null,dy:!h&&p?rY(o,x):null});Oq(w,{angle:a("labelAngle"),fill:a("labelColor"),fillOpacity:a("labelOpacity"),font:a("labelFont"),fontSize:a("labelFontSize"),fontWeight:a("labelFontWeight"),fontStyle:a("labelFontStyle"),limit:a("labelLimit"),lineHeight:a("labelLineHeight")},{align:d,baseline:h});const A=a("labelBound");let k=a("labelOverlap");k=k||A?{separation:a("labelSeparation"),method:k,order:"datum.index",bound:A?{scale:u,orient:o,tolerance:A}:null}:undefined;if(m.align!==v){m.align=vY(m.align,v)}if(m.baseline!==b){m.baseline=vY(m.baseline,b)}return Gj({type:Oj,role:Gq,style:hj,key:dj,from:i,encode:w,overlap:k},n)}function FY(t,e,n,i){const r=Nj(t,e),s=t.orient,a=nY(s,-1,1);let o,u;const l={enter:o={opacity:Fj,anchor:$q(r("titleAnchor",null)),align:{signal:Ij}},update:u=(0,p.X$)({},o,{opacity:Sj,text:$q(t.title)}),exit:{opacity:Fj}};const c={signal:`lerp(range("${t.scale}"), ${qj(0,1,.5)})`};u.x=iY(s,c);u.y=rY(s,c);o.angle=iY(s,Fj,yY(a,90));o.baseline=iY(s,sY(s,ej,ZU),{value:ej});u.angle=o.angle;u.baseline=o.baseline;Oq(l,{fill:r("titleColor"),fillOpacity:r("titleOpacity"),font:r("titleFont"),fontSize:r("titleFontSize"),fontStyle:r("titleFontStyle"),fontWeight:r("titleFontWeight"),limit:r("titleLimit"),lineHeight:r("titleLineHeight")},{align:r("titleAlign"),angle:r("titleAngle"),baseline:r("titleBaseline")});SY(r,s,l,n);l.update.align=vY(l.update.align,o.align);l.update.angle=vY(l.update.angle,o.angle);l.update.baseline=vY(l.update.baseline,o.baseline);return Gj({type:Oj,role:Wq,style:pj,from:i,encode:l},n)}function SY(t,e,n,i){const r=(t,e)=>t!=null?(n.update[e]=vY($q(t),n.update[e]),false):!Nq(e,i)?true:false;const s=r(t("titleX"),"x"),a=r(t("titleY"),"y");n.enter.auto=a===s?$q(a):iY(e,$q(a),$q(s))}function zY(t,e){const n=_Y(t,e),i=t.encode||{},r=i.axis||{},s=r.name||undefined,a=r.interactive,o=r.style,u=Nj(t,n),l=Uj(u);const c={scale:t.scale,ticks:!!u("ticks"),labels:!!u("labels"),grid:!!u("grid"),domain:!!u("domain"),title:t.title!=null};const f=MI(e.add(sU({},[c])));const d=MI(e.add(iU({scale:e.scaleRef(t.scale),extra:e.property(l.extra),count:e.objectProperty(t.tickCount),values:e.objectProperty(t.values),minstep:e.property(t.tickMinStep),formatType:e.property(t.formatType),formatSpecifier:e.property(t.format)})));const h=[];let p;if(c.grid){h.push(kY(t,n,i.grid,d,l))}if(c.ticks){p=u("tickSize");h.push(MY(t,n,i.ticks,d,p,l))}if(c.labels){p=c.ticks?p:0;h.push(CY(t,n,i.labels,d,p,l))}if(c.domain){h.push(wY(t,n,i.domain,f))}if(c.title){h.push(FY(t,n,i.title,f))}return TG(Tj({role:Iq,from:f,encode:Tq(BY(u,t),r,Cj),marks:h,aria:u("aria"),description:u("description"),zindex:u("zindex"),name:s,interactive:a,style:o}),e)}function BY(t,e){const n={enter:{},update:{}};Oq(n,{orient:t("orient"),offset:t("offset")||0,position:qI(e.position,0),titlePadding:t("titlePadding"),minExtent:t("minExtent"),maxExtent:t("maxExtent"),range:{signal:`abs(span(range("${e.scale}")))`},translate:t("translate"),format:e.format,formatType:e.formatType});return n}function $Y(t,e,n){const i=(0,p.YO)(t.signals),r=(0,p.YO)(t.scales);if(!n)i.forEach((t=>wI(t,e)));(0,p.YO)(t.projections).forEach((t=>QU(t,e)));r.forEach((t=>BU(t,e)));(0,p.YO)(t.data).forEach((t=>KG(t,e)));r.forEach((t=>$U(t,e)));(n||i).forEach((t=>tU(t,e)));(0,p.YO)(t.axes).forEach((t=>zY(t,e)));(0,p.YO)(t.marks).forEach((t=>TG(t,e)));(0,p.YO)(t.legends).forEach((t=>LG(t,e)));if(t.title)WG(t.title,e);e.parseLambdas();return e}const RY=t=>Tq({enter:{x:{value:0},y:{value:0}},update:{width:{signal:"width"},height:{signal:"height"}}},t);function OY(t,e){const n=e.config;const i=MI(e.root=e.add(EI()));const r=NY(t,n);r.forEach((t=>wI(t,e)));e.description=t.description||n.description;e.eventConfig=n.events;e.legends=e.objectProperty(n.legend&&n.legend.layout);e.locale=n.locale;const s=e.add(sU());const a=e.add(uU(mI(RY(t.encode),zj,Pq,t.style,e,{pulse:MI(s)})));const o=e.add(CU({layout:e.objectProperty(t.layout),legends:e.legends,autosize:e.signalRef("autosize"),mark:i,pulse:MI(a)}));e.operators.pop();e.pushState(MI(a),MI(o),null);$Y(t,e,r);e.operators.push(o);let u=e.add(rU({mark:i,pulse:MI(o)}));u=e.add(kU({pulse:MI(u)}));u=e.add(MU({pulse:MI(u)}));e.addData("root",new FG(e,s,s,u));return e}function TY(t,e){return e&&e.signal?{name:t,update:e.signal}:{name:t,value:e}}function NY(t,e){const n=n=>qI(t[n],e[n]),i=[TY("background",n("background")),TY("autosize",Fq(n("autosize"))),TY("padding",Bq(n("padding"))),TY("width",n("width")||0),TY("height",n("height")||0)],r=i.reduce(((t,e)=>(t[e.name]=e,t)),{}),s={};(0,p.YO)(t.signals).forEach((t=>{if((0,p.mQ)(r,t.name)){t=(0,p.X$)(r[t.name],t)}else{i.push(t)}s[t.name]=t}));(0,p.YO)(e.signals).forEach((t=>{if(!(0,p.mQ)(s,t.name)&&!(0,p.mQ)(r,t.name)){i.push(t)}}));return i}function LY(t,e){this.config=t||{};this.options=e||{};this.bindings=[];this.field={};this.signals={};this.lambdas={};this.scales={};this.events={};this.data={};this.streams=[];this.updates=[];this.operators=[];this.eventConfig=null;this.locale=null;this._id=0;this._subid=0;this._nextsub=[0];this._parent=[];this._encode=[];this._lookup=[];this._markpath=[]}function PY(t){this.config=t.config;this.options=t.options;this.legends=t.legends;this.field=Object.create(t.field);this.signals=Object.create(t.signals);this.lambdas=Object.create(t.lambdas);this.scales=Object.create(t.scales);this.events=Object.create(t.events);this.data=Object.create(t.data);this.streams=[];this.updates=[];this.operators=[];this._id=0;this._subid=++t._nextsub[0];this._nextsub=t._nextsub;this._parent=t._parent.slice();this._encode=t._encode.slice();this._lookup=t._lookup.slice();this._markpath=t._markpath}LY.prototype=PY.prototype={parse(t){return $Y(t,this)},fork(){return new PY(this)},isSubscope(){return this._subid>0},toRuntime(){this.finish();return{description:this.description,operators:this.operators,streams:this.streams,updates:this.updates,bindings:this.bindings,eventConfig:this.eventConfig,locale:this.locale}},id(){return(this._subid?this._subid+":":0)+this._id++},add(t){this.operators.push(t);t.id=this.id();if(t.refs){t.refs.forEach((e=>{e.$ref=t.id}));t.refs=null}return t},proxy(t){const e=t instanceof AI?MI(t):t;return this.add(wU({value:e}))},addStream(t){this.streams.push(t);t.id=this.id();return t},addUpdate(t){this.updates.push(t);return t},finish(){let t,e;if(this.root)this.root.root=true;for(t in this.signals){this.signals[t].signal=t}for(t in this.scales){this.scales[t].scale=t}function n(t,e,n){let i,r;if(t){i=t.data||(t.data={});r=i[e]||(i[e]=[]);r.push(n)}}for(t in this.data){e=this.data[t];n(e.input,t,"input");n(e.output,t,"output");n(e.values,t,"values");for(const i in e.index){n(e.index[i],t,"index:"+i)}}return this},pushState(t,e,n){this._encode.push(MI(this.add(MU({pulse:t}))));this._parent.push(e);this._lookup.push(n?MI(this.proxy(n)):null);this._markpath.push(-1)},popState(){this._encode.pop();this._parent.pop();this._lookup.pop();this._markpath.pop()},parent(){return(0,p.se)(this._parent)},encode(){return(0,p.se)(this._encode)},lookup(){return(0,p.se)(this._lookup)},markpath(){const t=this._markpath;return++t[t.length-1]},fieldRef(t,e){if((0,p.Kg)(t))return DI(t,e);if(!t.signal){(0,p.z3)("Unsupported field reference: "+(0,p.r$)(t))}const n=t.signal;let i=this.field[n];if(!i){const t={name:this.signalRef(n)};if(e)t.as=e;this.field[n]=i=MI(this.add(fU(t)))}return i},compareRef(t){let e=false;const n=t=>NI(t)?(e=true,this.signalRef(t.signal)):LI(t)?(e=true,this.exprRef(t.expr)):t;const i=(0,p.YO)(t.field).map(n),r=(0,p.YO)(t.order).map(n);return e?MI(this.add(aU({fields:i,orders:r}))):FI(i,r)},keyRef(t,e){let n=false;const i=t=>NI(t)?(n=true,MI(r[t.signal])):t;const r=this.signals;t=(0,p.YO)(t).map(i);return n?MI(this.add(dU({fields:t,flat:e}))):SI(t,e)},sortRef(t){if(!t)return t;const e=RI(t.op,t.field),n=t.order||zI;return n.signal?MI(this.add(aU({fields:e,orders:this.signalRef(n.signal)}))):FI(e,n)},event(t,e){const n=t+":"+e;if(!this.events[n]){const i=this.id();this.streams.push({id:i,source:t,type:e});this.events[n]=i}return this.events[n]},hasOwnSignal(t){return(0,p.mQ)(this.signals,t)},addSignal(t,e){if(this.hasOwnSignal(t)){(0,p.z3)("Duplicate signal name: "+(0,p.r$)(t))}const n=e instanceof AI?e:this.add(EI(e));return this.signals[t]=n},getSignal(t){if(!this.signals[t]){(0,p.z3)("Unrecognized signal name: "+(0,p.r$)(t))}return this.signals[t]},signalRef(t){if(this.signals[t]){return MI(this.signals[t])}else if(!(0,p.mQ)(this.lambdas,t)){this.lambdas[t]=this.add(EI(null))}return MI(this.lambdas[t])},parseLambdas(){const t=Object.keys(this.lambdas);for(let e=0,n=t.length;e0?",":"")+((0,p.Gv)(e)?e.signal||qY(e):(0,p.r$)(e))}return n+"]"}function UY(t){let e="{",n=0,i,r;for(i in t){r=t[i];e+=(++n>1?",":"")+(0,p.r$)(i)+":"+((0,p.Gv)(r)?r.signal||qY(r):(0,p.r$)(r))}return e+"}"}function jY(){const t="sans-serif",e=30,n=2,i="#4c78a8",r="#000",s="#888",a="#ddd";return{description:"Vega visualization",padding:0,autosize:"pad",background:null,events:{defaults:{allow:["wheel"]}},group:null,mark:null,arc:{fill:i},area:{fill:i},image:null,line:{stroke:i,strokeWidth:n},path:{stroke:i},rect:{fill:i},rule:{stroke:r},shape:{stroke:i},symbol:{fill:i,size:64},text:{fill:r,font:t,fontSize:11},trail:{fill:i,size:n},style:{"guide-label":{fill:r,font:t,fontSize:10},"guide-title":{fill:r,font:t,fontSize:11,fontWeight:"bold"},"group-title":{fill:r,font:t,fontSize:13,fontWeight:"bold"},"group-subtitle":{fill:r,font:t,fontSize:12},point:{size:e,strokeWidth:n,shape:"circle"},circle:{size:e,strokeWidth:n},square:{size:e,strokeWidth:n,shape:"square"},cell:{fill:"transparent",stroke:a},view:{fill:"transparent"}},title:{orient:"top",anchor:"middle",offset:4,subtitlePadding:3},axis:{minExtent:0,maxExtent:200,bandPosition:.5,domain:true,domainWidth:1,domainColor:s,grid:false,gridWidth:1,gridColor:a,labels:true,labelAngle:0,labelLimit:180,labelOffset:0,labelPadding:2,ticks:true,tickColor:s,tickOffset:0,tickRound:true,tickSize:5,tickWidth:1,titlePadding:4},axisBand:{tickOffset:-.5},projection:{type:"mercator"},legend:{orient:"right",padding:0,gridAlign:"each",columnPadding:10,rowPadding:2,symbolDirection:"vertical",gradientDirection:"vertical",gradientLength:200,gradientThickness:16,gradientStrokeColor:a,gradientStrokeWidth:0,gradientLabelOffset:2,labelAlign:"left",labelBaseline:"middle",labelLimit:160,labelOffset:4,labelOverlap:true,symbolLimit:30,symbolType:"circle",symbolSize:100,symbolOffset:0,symbolStrokeWidth:1.5,symbolBaseFillColor:"transparent",symbolBaseStrokeColor:s,titleLimit:180,titleOrient:"top",titlePadding:5,layout:{offset:18,direction:"horizontal",left:{direction:"vertical"},right:{direction:"vertical"}}},range:{category:{scheme:"tableau10"},ordinal:{scheme:"blues"},heatmap:{scheme:"yellowgreenblue"},ramp:{scheme:"blues"},diverging:{scheme:"blueorange",extent:[1,0]},symbol:["circle","square","triangle-up","cross","diamond","triangle-right","triangle-down","triangle-left"]}}}function GY(t,e,n){if(!(0,p.Gv)(t)){(0,p.z3)("Input Vega specification must be an object.")}e=(0,p.io)(jY(),e,t.config);return OY(t,new LY(e,n)).toRuntime()}var YY="5.33.0";(0,p.X$)($i,i,r,s,a,o,l,u,c,f,d,h)}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/7856.dd9523e57bed80f1f694.js b/share/jupyter/lab/static/7856.dd9523e57bed80f1f694.js new file mode 100644 index 0000000..30f814c --- /dev/null +++ b/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{s.d(t,{A:()=>a});var i=s(70416);var n=s(1218);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")},67863:(e,t,s)=>{s.d(t,{Lh:()=>D,NM:()=>k,_$:()=>p,tM:()=>g});var i=s(10628);var n=s(46884);var a=s(47925);var r=s(78188);var u=s(29131);var l=s(42418);var o=s(70416);var c=s(1218);var h=function(){var e=(0,o.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],r=[1,26],u=[1,24],l=[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],v=[1,58],N=[1,59],$=[1,60],L=[1,61],x=[1,62],I=[1,63],O=[1,64],w=[1,8,9,41],R=[1,76],P=[1,8,9,12,13,22,39,41,44,68,69,70,71,72,73,74,79,81],K=[1,8,9,12,13,18,20,22,39,41,44,50,60,68,69,70,71,72,73,74,79,81,86,100,102,103],M=[13,60,86,100,102,103],G=[13,60,73,74,86,100,102,103],U=[13,60,68,69,70,71,72,86,100,102,103],Y=[1,100],z=[1,117],Q=[1,113],j=[1,109],W=[1,115],X=[1,110],V=[1,111],q=[1,112],H=[1,114],J=[1,116],Z=[22,48,60,61,82,86,87,88,89,90],ee=[1,8,9,39,41,44],te=[1,8,9,22],se=[1,145],ie=[1,8,9,61],ne=[1,8,9,22,48,60,61,82,86,87,88,89,90];var ae={trace:(0,o.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,classLiteralName:17,DOT:18,className: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,emptyBody:47,SPACE:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"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",48:"SPACE",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,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,3],[24,6],[43,2],[43,3],[47,0],[47,2],[47,2],[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],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,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],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:(0,o.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 10:case 13:case 15:this.$=r[l];break;case 11:case 14:this.$=r[l-2]+"."+r[l];break;case 12:case 16:this.$=r[l-1]+r[l];break;case 17:case 18:this.$=r[l-1]+"~"+r[l]+"~";break;case 19:n.addRelation(r[l]);break;case 20:r[l-1].title=n.cleanupLabel(r[l]);n.addRelation(r[l-1]);break;case 31:this.$=r[l].trim();n.setAccTitle(this.$);break;case 32:case 33:this.$=r[l].trim();n.setAccDescription(this.$);break;case 34:n.addClassesToNamespace(r[l-3],r[l-1]);break;case 35:n.addClassesToNamespace(r[l-4],r[l-1]);break;case 36:this.$=r[l];n.addNamespace(r[l]);break;case 37:this.$=[r[l]];break;case 38:this.$=[r[l-1]];break;case 39:r[l].unshift(r[l-2]);this.$=r[l];break;case 41:n.setCssClass(r[l-2],r[l]);break;case 42:n.addMembers(r[l-3],r[l-1]);break;case 44:n.setCssClass(r[l-5],r[l-3]);n.addMembers(r[l-5],r[l-1]);break;case 45:this.$=r[l];n.addClass(r[l]);break;case 46:this.$=r[l-1];n.addClass(r[l-1]);n.setClassLabel(r[l-1],r[l]);break;case 50:n.addAnnotation(r[l],r[l-2]);break;case 51:case 64:this.$=[r[l]];break;case 52:r[l].push(r[l-1]);this.$=r[l];break;case 53:break;case 54:n.addMember(r[l-1],n.cleanupLabel(r[l]));break;case 55:break;case 56:break;case 57:this.$={id1:r[l-2],id2:r[l],relation:r[l-1],relationTitle1:"none",relationTitle2:"none"};break;case 58:this.$={id1:r[l-3],id2:r[l],relation:r[l-1],relationTitle1:r[l-2],relationTitle2:"none"};break;case 59:this.$={id1:r[l-3],id2:r[l],relation:r[l-2],relationTitle1:"none",relationTitle2:r[l-1]};break;case 60:this.$={id1:r[l-4],id2:r[l],relation:r[l-2],relationTitle1:r[l-3],relationTitle2:r[l-1]};break;case 61:n.addNote(r[l],r[l-1]);break;case 62:n.addNote(r[l]);break;case 63:this.$=r[l-2];n.defineClass(r[l-1],r[l]);break;case 65:this.$=r[l-2].concat([r[l]]);break;case 66:n.setDirection("TB");break;case 67:n.setDirection("BT");break;case 68:n.setDirection("RL");break;case 69:n.setDirection("LR");break;case 70:this.$={type1:r[l-2],type2:r[l],lineType:r[l-1]};break;case 71:this.$={type1:"none",type2:r[l],lineType:r[l-1]};break;case 72:this.$={type1:r[l-1],type2:"none",lineType:r[l]};break;case 73:this.$={type1:"none",type2:"none",lineType:r[l]};break;case 74:this.$=n.relationType.AGGREGATION;break;case 75:this.$=n.relationType.EXTENSION;break;case 76:this.$=n.relationType.COMPOSITION;break;case 77:this.$=n.relationType.DEPENDENCY;break;case 78:this.$=n.relationType.LOLLIPOP;break;case 79:this.$=n.lineType.LINE;break;case 80:this.$=n.lineType.DOTTED_LINE;break;case 81:case 87:this.$=r[l-2];n.setClickEvent(r[l-1],r[l]);break;case 82:case 88:this.$=r[l-3];n.setClickEvent(r[l-2],r[l-1]);n.setTooltip(r[l-2],r[l]);break;case 83:this.$=r[l-2];n.setLink(r[l-1],r[l]);break;case 84:this.$=r[l-3];n.setLink(r[l-2],r[l-1],r[l]);break;case 85:this.$=r[l-3];n.setLink(r[l-2],r[l-1]);n.setTooltip(r[l-2],r[l]);break;case 86:this.$=r[l-4];n.setLink(r[l-3],r[l-2],r[l]);n.setTooltip(r[l-3],r[l-1]);break;case 89:this.$=r[l-3];n.setClickEvent(r[l-2],r[l-1],r[l]);break;case 90:this.$=r[l-4];n.setClickEvent(r[l-3],r[l-2],r[l-1]);n.setTooltip(r[l-3],r[l]);break;case 91:this.$=r[l-3];n.setLink(r[l-2],r[l]);break;case 92:this.$=r[l-4];n.setLink(r[l-3],r[l-1],r[l]);break;case 93:this.$=r[l-4];n.setLink(r[l-3],r[l-1]);n.setTooltip(r[l-3],r[l]);break;case 94:this.$=r[l-5];n.setLink(r[l-4],r[l-2],r[l]);n.setTooltip(r[l-4],r[l-1]);break;case 95:this.$=r[l-2];n.setCssStyle(r[l-1],r[l]);break;case 96:n.setCssClass(r[l-1],r[l]);break;case 97:this.$=[r[l]];break;case 98:r[l-2].push(r[l]);this.$=r[l-2];break;case 100:this.$=r[l-1]+r[l];break}}),"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,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,49:r,51:u,52:l,54:c,56:h,57:p,60:d,62:A,63:b,64:y,65:f,75:k,76:C,78:g,82:m,83:E,86:T,100:D,102:F,103:B},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(_,[2,5],{8:[1,48]}),{8:[1,49]},e(S,[2,19],{22:[1,50]}),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]),e(S,[2,30]),{34:[1,51]},{36:[1,52]},e(S,[2,33]),e(S,[2,53],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:v,69:N,70:$,71:L,72:x,73:I,74:O}),{39:[1,65]},e(w,[2,40],{39:[1,67],44:[1,66]}),e(S,[2,55]),e(S,[2,56]),{16:68,60:d,86:T,100:D,102:F},{16:39,17:40,19:69,60:d,86:T,100:D,102:F,103:B},{16:39,17:40,19:70,60:d,86:T,100:D,102:F,103:B},{16:39,17:40,19:71,60:d,86:T,100:D,102:F,103:B},{60:[1,72]},{13:[1,73]},{16:39,17:40,19:74,60:d,86:T,100:D,102:F,103:B},{13:R,55:75},{58:77,60:[1,78]},e(S,[2,66]),e(S,[2,67]),e(S,[2,68]),e(S,[2,69]),e(P,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],60:d,86:T,100:D,102:F,103:B}),e(P,[2,15],{20:[1,82]}),{15:83,16:84,17:85,60:d,86:T,100:D,102:F,103:B},{16:39,17:40,19:86,60:d,86:T,100:D,102:F,103:B},e(K,[2,123]),e(K,[2,124]),e(K,[2,125]),e(K,[2,126]),e([1,8,9,12,13,20,22,39,41,44,68,69,70,71,72,73,74,79,81],[2,127]),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,19:21,38:22,43:23,16:39,17:40,5:87,33:t,35:s,37:i,42:n,46:a,49:r,51:u,52:l,54:c,56:h,57:p,60:d,62:A,63:b,64:y,65:f,75:k,76:C,78:g,82:m,83:E,86:T,100:D,102:F,103:B}),{5:88,10:5,16:39,17:40,19:21,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,49:r,51:u,52:l,54:c,56:h,57:p,60:d,62:A,63:b,64:y,65:f,75:k,76:C,78:g,82:m,83:E,86:T,100:D,102:F,103:B},e(S,[2,20]),e(S,[2,31]),e(S,[2,32]),{13:[1,90],16:39,17:40,19:89,60:d,86:T,100:D,102:F,103:B},{53:91,66:56,67:57,68:v,69:N,70:$,71:L,72:x,73:I,74:O},e(S,[2,54]),{67:92,73:I,74:O},e(M,[2,73],{66:93,68:v,69:N,70:$,71:L,72:x}),e(G,[2,74]),e(G,[2,75]),e(G,[2,76]),e(G,[2,77]),e(G,[2,78]),e(U,[2,79]),e(U,[2,80]),{8:[1,95],24:96,40:94,43:23,46:a},{16:97,60:d,86:T,100:D,102:F},{41:[1,99],45:98,51:Y},{50:[1,101]},{13:[1,102]},{13:[1,103]},{79:[1,104],81:[1,105]},{22:z,48:Q,59:106,60:j,82:W,84:107,85:108,86:X,87:V,88:q,89:H,90:J},{60:[1,118]},{13:R,55:119},e(S,[2,62]),e(S,[2,128]),{22:z,48:Q,59:120,60:j,61:[1,121],82:W,84:107,85:108,86:X,87:V,88:q,89:H,90:J},e(Z,[2,64]),{16:39,17:40,19:122,60:d,86:T,100:D,102:F,103:B},e(P,[2,16]),e(P,[2,17]),e(P,[2,18]),{39:[2,36]},{15:124,16:84,17:85,18:[1,123],39:[2,9],60:d,86:T,100:D,102:F,103:B},{39:[2,10]},e(ee,[2,45],{11:125,12:[1,126]}),e(_,[2,7]),{9:[1,127]},e(te,[2,57]),{16:39,17:40,19:128,60:d,86:T,100:D,102:F,103:B},{13:[1,130],16:39,17:40,19:129,60:d,86:T,100:D,102:F,103:B},e(M,[2,72],{66:131,68:v,69:N,70:$,71:L,72:x}),e(M,[2,71]),{41:[1,132]},{24:96,40:133,43:23,46:a},{8:[1,134],41:[2,37]},e(w,[2,41],{39:[1,135]}),{41:[1,136]},e(w,[2,43]),{41:[2,51],45:137,51:Y},{16:39,17:40,19:138,60:d,86:T,100:D,102:F,103:B},e(S,[2,81],{13:[1,139]}),e(S,[2,83],{13:[1,141],77:[1,140]}),e(S,[2,87],{13:[1,142],80:[1,143]}),{13:[1,144]},e(S,[2,95],{61:se}),e(ie,[2,97],{85:146,22:z,48:Q,60:j,82:W,86:X,87:V,88:q,89:H,90:J}),e(ne,[2,99]),e(ne,[2,101]),e(ne,[2,102]),e(ne,[2,103]),e(ne,[2,104]),e(ne,[2,105]),e(ne,[2,106]),e(ne,[2,107]),e(ne,[2,108]),e(ne,[2,109]),e(S,[2,96]),e(S,[2,61]),e(S,[2,63],{61:se}),{60:[1,147]},e(P,[2,14]),{15:148,16:84,17:85,60:d,86:T,100:D,102:F,103:B},{39:[2,12]},e(ee,[2,46]),{13:[1,149]},{1:[2,4]},e(te,[2,59]),e(te,[2,58]),{16:39,17:40,19:150,60:d,86:T,100:D,102:F,103:B},e(M,[2,70]),e(S,[2,34]),{41:[1,151]},{24:96,40:152,41:[2,38],43:23,46:a},{45:153,51:Y},e(w,[2,42]),{41:[2,52]},e(S,[2,50]),e(S,[2,82]),e(S,[2,84]),e(S,[2,85],{77:[1,154]}),e(S,[2,88]),e(S,[2,89],{13:[1,155]}),e(S,[2,91],{13:[1,157],77:[1,156]}),{22:z,48:Q,60:j,82:W,84:158,85:108,86:X,87:V,88:q,89:H,90:J},e(ne,[2,100]),e(Z,[2,65]),{39:[2,11]},{14:[1,159]},e(te,[2,60]),e(S,[2,35]),{41:[2,39]},{41:[1,160]},e(S,[2,86]),e(S,[2,90]),e(S,[2,92]),e(S,[2,93],{77:[1,161]}),e(ie,[2,98],{85:146,22:z,48:Q,60:j,82:W,86:X,87:V,88:q,89:H,90:J}),e(ee,[2,8]),e(w,[2,44]),e(S,[2,94])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,36],85:[2,10],124:[2,12],127:[2,4],137:[2,52],148:[2,11],152:[2,39]},parseError:(0,o.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,o.K2)((function e(t){var s=this,i=[0],n=[],a=[null],r=[],u=this.table,l="",c=0,h=0,p=0,d=2,A=1;var b=r.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;r.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;r.length=r.length-e}(0,o.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,o.K2)(E,"lex");var T,D,F,B,_,S,v={},N,$,L,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=u[F]&&u[F][T]}if(typeof B==="undefined"||!B.length||!B[0]){var I="";x=[];for(N in u[F]){if(this.terminals_[N]&&N>d){x.push("'"+this.terminals_[N]+"'")}}if(y.showPosition){I="Parse error on line "+(c+1)+":\n"+y.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[T]||T)+"'"}else{I="Parse error on line "+(c+1)+": Unexpected "+(T==A?"end of input":"'"+(this.terminals_[T]||T)+"'")}this.parseError(I,{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);r.push(y.yylloc);i.push(B[1]);T=null;if(!D){h=y.yyleng;l=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];v.$=a[a.length-$];v._$={first_line:r[r.length-($||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-($||1)].first_column,last_column:r[r.length-1].last_column};if(g){v._$.range=[r[r.length-($||1)].range[0],r[r.length-1].range[1]]}S=this.performAction.apply(v,[l,h,c,f.yy,B[1],a,r].concat(b));if(typeof S!=="undefined"){return S}if($){i=i.slice(0,-1*$*2);a=a.slice(0,-1*$);r=r.slice(0,-1*$)}i.push(this.productions_[B[1]][0]);a.push(v.$);r.push(v._$);L=u[i[i.length-2]][i[i.length-1]];i.push(L);break;case 3:return true}}return true}),"parse")};var re=function(){var e={EOF:1,parseError:(0,o.K2)((function e(t,s){if(this.yy.parser){this.yy.parser.parseError(t,s)}else{throw new Error(t)}}),"parseError"),setInput:(0,o.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,o.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,o.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,o.K2)((function(){this._more=true;return this}),"more"),reject:(0,o.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,o.K2)((function(e){this.unput(this.match.slice(e))}),"less"),pastInput:(0,o.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,o.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,o.K2)((function(){var e=this.pastInput();var t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"}),"showPosition"),test_match:(0,o.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,o.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,o.K2)((function e(){var t=this.next();if(t){return t}else{return this.lex()}}),"lex"),begin:(0,o.K2)((function e(t){this.conditionStack.push(t)}),"begin"),popState:(0,o.K2)((function e(){var t=this.conditionStack.length-1;if(t>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}}),"popState"),_currentRules:(0,o.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,o.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,o.K2)((function e(t){this.begin(t)}),"pushState"),stateStackSize:(0,o.K2)((function e(){return this.conditionStack.length}),"stateStackSize"),options:{},performAction:(0,o.K2)((function e(t,s,i,n){var a=n;switch(i){case 0:return 62;break;case 1:return 63;break;case 2:return 64;break;case 3:return 65;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 79;break;case 22:this.popState();break;case 23:return 80;break;case 24:this.popState();break;case 25:return"STR";break;case 26:this.begin("string");break;case 27:return 82;break;case 28:return 57;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 83;break;case 50:return 75;break;case 51:return 76;break;case 52:return 78;break;case 53:return 54;break;case 54:return 56;break;case 55:return 49;break;case 56:return 50;break;case 57:return 81;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 77;break;case 65:return 77;break;case 66:return 77;break;case 67:return 77;break;case 68:return 69;break;case 69:return 69;break;case 70:return 71;break;case 71:return 71;break;case 72:return 70;break;case 73:return 68;break;case 74:return 72;break;case 75:return 73;break;case 76:return 74;break;case 77:return 22;break;case 78:return 44;break;case 79:return 100;break;case 80:return 18;break;case 81:return"PLUS";break;case 82:return 87;break;case 83:return 61;break;case 84:return 89;break;case 85:return 89;break;case 86:return 90;break;case 87:return"EQUALS";break;case 88:return"EQUALS";break;case 89:return 60;break;case 90:return 12;break;case 91:return 14;break;case 92:return"PUNCTUATION";break;case 93:return 86;break;case 94:return 102;break;case 95:return 48;break;case 96:return 48;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,o.K2)(ue,"Parser");ue.prototype=ae;ae.Parser=ue;return new ue}();h.parser=h;var p=h;var d=["#","+","~","-",""];var A=class{static{(0,o.K2)(this,"ClassMember")}constructor(e,t){this.memberType=t;this.visibility="";this.classifier="";this.text="";const s=(0,l.jZ)(e,(0,l.D7)());this.parseMember(s)}getDisplayDetails(){let e=this.visibility+(0,l.QO)(this.id);if(this.memberType==="method"){e+=`(${(0,l.QO)(this.parameters.trim())})`;if(this.returnType){e+=" : "+(0,l.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(d.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(d.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,l.QO)(this.id)}${this.memberType==="method"?`(${(0,l.QO)(this.parameters)})${this.returnType?" : "+(0,l.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 b="classId-";var y=0;var f=(0,o.K2)((e=>l.Y2.sanitizeText(e,(0,l.D7)())),"sanitizeText");var k=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,o.K2)((e=>{let t=(0,c.Ltv)(".mermaidTooltip");if((t._groups||t)[0][0]===null){t=(0,c.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)}const s=(0,c.Ltv)(e).select("svg");const i=s.selectAll("g.node");i.on("mouseover",(e=>{const s=(0,c.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,c.Ltv)(e.currentTarget);s.classed("hover",false)}))}),"setupToolTips");this.direction="TB";this.setAccTitle=l.SV;this.getAccTitle=l.iN;this.setAccDescription=l.EI;this.getAccDescription=l.m7;this.setDiagramTitle=l.ke;this.getDiagramTitle=l.ab;this.getConfig=(0,o.K2)((()=>(0,l.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,o.K2)(this,"ClassDB")}splitClassNameAndType(e){const t=l.Y2.sanitizeText(e,(0,l.D7)());let s="";let i=t;if(t.indexOf("~")>0){const e=t.split("~");i=f(e[0]);s=f(e[1])}return{className:i,type:s}}setClassLabel(e,t){const s=l.Y2.sanitizeText(e,(0,l.D7)());if(t){t=f(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=l.Y2.sanitizeText(e,(0,l.D7)());const{className:s,type:i}=this.splitClassNameAndType(t);if(this.classes.has(s)){return}const n=l.Y2.sanitizeText(s,(0,l.D7)());this.classes.set(n,{id:n,type:i,label:n,text:`${n}${i?`<${i}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:b+n+"-"+y});y++}addInterface(e,t){const s={id:`interface${this.interfaces.length}`,label:e,classId:t};this.interfaces.push(s)}lookUpDomId(e){const t=l.Y2.sanitizeText(e,(0,l.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,l.IU)()}getClass(e){return this.classes.get(e)}getClasses(){return this.classes}getRelations(){return this.relations}getNotes(){return this.notes}addRelation(e){o.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=l.Y2.sanitizeText(e.relationTitle1.trim(),(0,l.D7)());e.relationTitle2=l.Y2.sanitizeText(e.relationTitle2.trim(),(0,l.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(f(e.substring(2,e.length-2)))}else if(e.indexOf(")")>0){i.methods.push(new A(e,"method"))}else if(e){i.members.push(new A(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 f(e.trim())}setCssClass(e,t){e.split(",").forEach((e=>{let s=e;if(/\d/.exec(e[0])){s=b+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=f(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,l.D7)();e.split(",").forEach((e=>{let n=e;if(/\d/.exec(e[0])){n=b+n}const a=this.classes.get(n);if(a){a.link=u._K.formatUrl(t,i);if(i.securityLevel==="sandbox"){a.linkTarget="_top"}else if(typeof s==="string"){a.linkTarget=f(s)}else{a.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=l.Y2.sanitizeText(e,(0,l.D7)());const n=(0,l.D7)();if(n.securityLevel!=="loose"){return}if(t===void 0){return}const a=i;if(this.classes.has(a)){const e=this.lookUpDomId(a);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",(()=>{u._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:b+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,l.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,u.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 C=(0,o.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 ${(0,i.o)()}\n`),"getStyles");var g=C;var m=(0,o.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 E=(0,o.K2)((function(e,t){return t.db.getClasses()}),"getClasses");var T=(0,o.K2)((async function(e,t,s,i){o.Rm.info("REF0:");o.Rm.info("Drawing class diagram (v3)",t);const{securityLevel:c,state:h,layout:p}=(0,l.D7)();const d=i.db.getData();const A=(0,n.A)(t,c);d.type=i.type;d.layoutAlgorithm=(0,r.q7)(p);d.nodeSpacing=h?.nodeSpacing||50;d.rankSpacing=h?.rankSpacing||50;d.markers=["aggregation","extension","composition","dependency","lollipop"];d.diagramId=t;await(0,r.XX)(d,A);const b=8;u._K.insertTitle(A,"classDiagramTitleText",h?.titleTopMargin??25,i.db.getDiagramTitle());(0,a.P)(A,b,"classDiagram",h?.useMaxWidth??true)}),"draw");var D={getClasses:E,draw:T,getDir:m}},10628:(e,t,s)=>{s.d(t,{o:()=>n});var i=s(70416);var n=(0,i.K2)((()=>`\n /* Font Awesome icon styling - consolidated */\n .label-icon {\n display: inline-block;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n }\n \n .node .label-icon path {\n fill: currentColor;\n stroke: revert;\n stroke-width: revert;\n }\n`),"getIconStyles")},47925:(e,t,s)=>{s.d(t,{P:()=>a});var i=s(42418);var n=s(70416);var a=(0,n.K2)(((e,t,s,a)=>{e.attr("class",s);const{width:l,height:o,x:c,y:h}=r(e,t);(0,i.a$)(e,o,l,a);const p=u(c,h,l,o,t);e.attr("viewBox",p);n.Rm.debug(`viewBox configured: ${p} with padding: ${t}`)}),"setupViewPortForSVG");var r=(0,n.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 u=(0,n.K2)(((e,t,s,i,n)=>`${e-n} ${t-n} ${s} ${i}`),"createViewBox")}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/7865.59eef65d3f938deaf991.js b/share/jupyter/lab/static/7865.59eef65d3f938deaf991.js new file mode 100644 index 0000000..310fafb --- /dev/null +++ b/share/jupyter/lab/static/7865.59eef65d3f938deaf991.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7865],{77865:(a,e,p)=>{p.d(e,{createInfoServices:()=>t.v});var t=p(78572);var c=p(11254)}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/7879.6fbc2eab49b3deb798df.js b/share/jupyter/lab/static/7879.6fbc2eab49b3deb798df.js new file mode 100644 index 0000000..01b6cb3 --- /dev/null +++ b/share/jupyter/lab/static/7879.6fbc2eab49b3deb798df.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7879],{87879:(r,a,e)=>{e.d(a,{diagram:()=>w});var t=e(76901);var v=e(46884);var s=e(47925);var p=e(78188);var i=e(25301);var u=e(46103);var l=e(47655);var n=e(15164);var o=e(55750);var b=e(95035);var k=e(29131);var _=e(42418);var c=e(70416);var w={parser:t.Zk,get db(){return new t.u4(2)},renderer:t.q7,styles:t.tM,init:(0,c.K2)((r=>{if(!r.state){r.state={}}r.state.arrowMarkerAbsolute=r.arrowMarkerAbsolute}),"init")}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/7881.c5a234ce171f347c94e2.js b/share/jupyter/lab/static/7881.c5a234ce171f347c94e2.js new file mode 100644 index 0000000..380c9f2 --- /dev/null +++ b/share/jupyter/lab/static/7881.c5a234ce171f347c94e2.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7881],{27881:(e,t,r)=>{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{e.d(n,{A:()=>i});function i(t,n){return t==null||n==null?NaN:tn?1:t>=n?0:NaN}},71363:(t,n,e)=>{e.d(n,{Ay:()=>c,Jj:()=>s,ah:()=>u});var i=e(82887);var r=e(9791);var a=e(40168);const o=(0,r.A)(i.A);const s=o.right;const u=o.left;const h=(0,r.A)(a.A).center;const c=s},9791:(t,n,e)=>{e.d(n,{A:()=>a});var i=e(82887);function r(t,n){return t==null||n==null?NaN:nt?1:n>=t?0:NaN}function a(t){let n,e,a;if(t.length!==2){n=i.A;e=(n,e)=>(0,i.A)(t(n),e);a=(n,e)=>t(n)-e}else{n=t===i.A||t===r?t:o;e=t;a=t}function s(t,i,r=0,a=t.length){if(r>>1;if(e(t[n],i)<0)r=n+1;else a=n}while(r>>1;if(e(t[n],i)<=0)r=n+1;else a=n}while(re&&a(t[r-1],n)>-a(t[r],n)?r-1:r}return{left:s,center:h,right:u}}function o(){return 0}},21671:(t,n,e)=>{e.d(n,{A:()=>i});function i(t,n){let e;if(n===undefined){for(const n of t){if(n!=null&&(e=n)){e=n}}}else{let i=-1;for(let r of t){if((r=n(r,++i,t))!=null&&(e=r)){e=r}}}return e}},44317:(t,n,e)=>{e.d(n,{A:()=>i});function i(t,n){let e;if(n===undefined){for(const n of t){if(n!=null&&(e>n||e===undefined&&n>=n)){e=n}}}else{let i=-1;for(let r of t){if((r=n(r,++i,t))!=null&&(e>r||e===undefined&&r>=r)){e=r}}}return e}},40168:(t,n,e)=>{e.d(n,{A:()=>i,n:()=>r});function i(t){return t===null?NaN:+t}function*r(t,n){if(n===undefined){for(let n of t){if(n!=null&&(n=+n)>=n){yield n}}}else{let e=-1;for(let i of t){if((i=n(i,++e,t))!=null&&(i=+i)>=i){yield i}}}}},18312:(t,n,e)=>{e.d(n,{A:()=>i});function i(t,n,e){t=+t,n=+n,e=(r=arguments.length)<2?(n=t,t=0,1):r<3?1:+e;var i=-1,r=Math.max(0,Math.ceil((n-t)/e))|0,a=new Array(r);while(++i{e.d(n,{Ay:()=>s,lq:()=>u,sG:()=>h});const i=Math.sqrt(50),r=Math.sqrt(10),a=Math.sqrt(2);function o(t,n,e){const s=(n-t)/Math.max(0,e),u=Math.floor(Math.log10(s)),h=s/Math.pow(10,u),c=h>=i?10:h>=r?5:h>=a?2:1;let l,f,_;if(u<0){_=Math.pow(10,-u)/c;l=Math.round(t*_);f=Math.round(n*_);if(l/_n)--f;_=-_}else{_=Math.pow(10,u)*c;l=Math.round(t/_);f=Math.round(n/_);if(l*_n)--f}if(f0))return[];if(t===n)return[t];const i=n=r))return[];const u=a-r+1,h=new Array(u);if(i){if(s<0)for(let t=0;t{e.d(n,{Ay:()=>A,Gw:()=>N,KI:()=>R,Q1:()=>r,Qh:()=>k,Uw:()=>o,b:()=>T,ef:()=>a});var i=e(47592);function r(){}var a=.7;var o=1/a;var s="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",h="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,l=new RegExp(`^rgb\\(${s},${s},${s}\\)$`),f=new RegExp(`^rgb\\(${h},${h},${h}\\)$`),_=new RegExp(`^rgba\\(${s},${s},${s},${u}\\)$`),p=new RegExp(`^rgba\\(${h},${h},${h},${u}\\)$`),y=new RegExp(`^hsl\\(${u},${h},${h}\\)$`),d=new RegExp(`^hsla\\(${u},${h},${h},${u}\\)$`);var g={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};(0,i.A)(r,A,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:v,formatHex:v,formatHex8:x,formatHsl:w,formatRgb:m,toString:m});function v(){return this.rgb().formatHex()}function x(){return this.rgb().formatHex8()}function w(){return E(this).formatHsl()}function m(){return this.rgb().formatRgb()}function A(t){var n,e;t=(t+"").trim().toLowerCase();return(n=c.exec(t))?(e=n[1].length,n=parseInt(n[1],16),e===6?b(n):e===3?new N(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):e===8?M(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):e===4?M(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=l.exec(t))?new N(n[1],n[2],n[3],1):(n=f.exec(t))?new N(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=_.exec(t))?M(n[1],n[2],n[3],n[4]):(n=p.exec(t))?M(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=y.exec(t))?P(n[1],n[2]/100,n[3]/100,1):(n=d.exec(t))?P(n[1],n[2]/100,n[3]/100,n[4]):g.hasOwnProperty(t)?b(g[t]):t==="transparent"?new N(NaN,NaN,NaN,0):null}function b(t){return new N(t>>16&255,t>>8&255,t&255,1)}function M(t,n,e,i){if(i<=0)t=n=e=NaN;return new N(t,n,e,i)}function T(t){if(!(t instanceof r))t=A(t);if(!t)return new N;t=t.rgb();return new N(t.r,t.g,t.b,t.opacity)}function k(t,n,e,i){return arguments.length===1?T(t):new N(t,n,e,i==null?1:i)}function N(t,n,e,i){this.r=+t;this.g=+n;this.b=+e;this.opacity=+i}(0,i.A)(N,k,(0,i.X)(r,{brighter(t){t=t==null?o:Math.pow(o,t);return new N(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){t=t==null?a:Math.pow(a,t);return new N(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new N(D(this.r),D(this.g),D(this.b),F(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&(-.5<=this.g&&this.g<255.5)&&(-.5<=this.b&&this.b<255.5)&&(0<=this.opacity&&this.opacity<=1)},hex:C,formatHex:C,formatHex8:$,formatRgb:U,toString:U}));function C(){return`#${S(this.r)}${S(this.g)}${S(this.b)}`}function $(){return`#${S(this.r)}${S(this.g)}${S(this.b)}${S((isNaN(this.opacity)?1:this.opacity)*255)}`}function U(){const t=F(this.opacity);return`${t===1?"rgb(":"rgba("}${D(this.r)}, ${D(this.g)}, ${D(this.b)}${t===1?")":`, ${t})`}`}function F(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function D(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function S(t){t=D(t);return(t<16?"0":"")+t.toString(16)}function P(t,n,e,i){if(i<=0)t=n=e=NaN;else if(e<=0||e>=1)t=n=NaN;else if(n<=0)t=NaN;return new H(t,n,e,i)}function E(t){if(t instanceof H)return new H(t.h,t.s,t.l,t.opacity);if(!(t instanceof r))t=A(t);if(!t)return new H;if(t instanceof H)return t;t=t.rgb();var n=t.r/255,e=t.g/255,i=t.b/255,a=Math.min(n,e,i),o=Math.max(n,e,i),s=NaN,u=o-a,h=(o+a)/2;if(u){if(n===o)s=(e-i)/u+(e0&&h<1?0:s}return new H(s,u,h,t.opacity)}function R(t,n,e,i){return arguments.length===1?E(t):new H(t,n,e,i==null?1:i)}function H(t,n,e,i){this.h=+t;this.s=+n;this.l=+e;this.opacity=+i}(0,i.A)(H,R,(0,i.X)(r,{brighter(t){t=t==null?o:Math.pow(o,t);return new H(this.h,this.s,this.l*t,this.opacity)},darker(t){t=t==null?a:Math.pow(a,t);return new H(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,r=2*e-i;return new N(L(t>=240?t-240:t+120,r,i),L(t,r,i),L(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new H(Y(this.h),q(this.s),q(this.l),F(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&(0<=this.l&&this.l<=1)&&(0<=this.opacity&&this.opacity<=1)},formatHsl(){const t=F(this.opacity);return`${t===1?"hsl(":"hsla("}${Y(this.h)}, ${q(this.s)*100}%, ${q(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Y(t){t=(t||0)%360;return t<0?t+360:t}function q(t){return Math.max(0,Math.min(1,t||0))}function L(t,n,e){return(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)*255}},47592:(t,n,e)=>{e.d(n,{A:()=>i,X:()=>r});function i(t,n,e){t.prototype=n.prototype=e;e.constructor=t}function r(t,n){var e=Object.create(t.prototype);for(var i in n)e[i]=n[i];return e}},14180:(t,n,e)=>{e.d(n,{Ay:()=>d,aq:()=>M});var i=e(47592);var r=e(33844);var a=e(77689);const o=18,s=.96422,u=1,h=.82521,c=4/29,l=6/29,f=3*l*l,_=l*l*l;function p(t){if(t instanceof g)return new g(t.l,t.a,t.b,t.opacity);if(t instanceof T)return k(t);if(!(t instanceof r.Gw))t=(0,r.b)(t);var n=m(t.r),e=m(t.g),i=m(t.b),a=v((.2225045*n+.7168786*e+.0606169*i)/u),o,c;if(n===e&&e===i)o=c=a;else{o=v((.4360747*n+.3850649*e+.1430804*i)/s);c=v((.0139322*n+.0971045*e+.7141733*i)/h)}return new g(116*a-16,500*(o-a),200*(a-c),t.opacity)}function y(t,n){return new g(t,0,0,n==null?1:n)}function d(t,n,e,i){return arguments.length===1?p(t):new g(t,n,e,i==null?1:i)}function g(t,n,e,i){this.l=+t;this.a=+n;this.b=+e;this.opacity=+i}(0,i.A)(g,d,(0,i.X)(r.Q1,{brighter(t){return new g(this.l+o*(t==null?1:t),this.a,this.b,this.opacity)},darker(t){return new g(this.l-o*(t==null?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;n=s*x(n);t=u*x(t);e=h*x(e);return new r.Gw(w(3.1338561*n-1.6168667*t-.4906146*e),w(-.9787684*n+1.9161415*t+.033454*e),w(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}}));function v(t){return t>_?Math.pow(t,1/3):t/f+c}function x(t){return t>l?t*t*t:f*(t-c)}function w(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function m(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function A(t){if(t instanceof T)return new T(t.h,t.c,t.l,t.opacity);if(!(t instanceof g))t=p(t);if(t.a===0&&t.b===0)return new T(NaN,0{e.d(n,{F:()=>i,u:()=>r});const i=Math.PI/180;const r=180/Math.PI},62996:(t,n,e)=>{e.d(n,{A:()=>h});var i={value:()=>{}};function r(){for(var t=0,n=arguments.length,e={},i;t=0)e=t.slice(i+1),t=t.slice(0,i);if(t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}a.prototype=r.prototype={constructor:a,on:function(t,n){var e=this._,i=o(t+"",e),r,a=-1,h=i.length;if(arguments.length<2){while(++a0)for(var e=new Array(r),i=0,r,a;i{e.d(n,{GP:()=>a,s:()=>o});var i=e(25216);var r;var a;var o;s({thousands:",",grouping:[3],currency:["$",""]});function s(t){r=(0,i.A)(t);a=r.format;o=r.formatPrefix;return r}},40886:(t,n,e)=>{e.d(n,{A:()=>r});var i=e(23735);function r(t){return t=(0,i.f)(Math.abs(t)),t?t[1]:NaN}},23735:(t,n,e)=>{e.d(n,{A:()=>i,f:()=>r});function i(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function r(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}},71688:(t,n,e)=>{e.d(n,{A:()=>r});var i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function r(t){if(!(n=i.exec(t)))throw new Error("invalid format: "+t);var n;return new a({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}r.prototype=a.prototype;function a(t){this.fill=t.fill===undefined?" ":t.fill+"";this.align=t.align===undefined?">":t.align+"";this.sign=t.sign===undefined?"-":t.sign+"";this.symbol=t.symbol===undefined?"":t.symbol+"";this.zero=!!t.zero;this.width=t.width===undefined?undefined:+t.width;this.comma=!!t.comma;this.precision=t.precision===undefined?undefined:+t.precision;this.trim=!!t.trim;this.type=t.type===undefined?"":t.type+""}a.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===undefined?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===undefined?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type}},25216:(t,n,e)=>{e.d(n,{A:()=>d});var i=e(40886);function r(t,n){return function(e,i){var r=e.length,a=[],o=0,s=t[0],u=0;while(r>0&&s>0){if(u+s+1>i)s=Math.max(1,i-u);a.push(e.substring(r-=s,r+s));if((u+=s+1)>i)break;s=t[o=(o+1)%t.length]}return a.reverse().join(n)}}function a(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}var o=e(71688);function s(t){t:for(var n=t.length,e=1,i=-1,r;e0)i=0;break}}return i>0?t.slice(0,i)+t.slice(r+1):t}var u=e(23735);var h;function c(t,n){var e=(0,u.f)(t,n);if(!e)return t+"";var i=e[0],r=e[1],a=r-(h=Math.max(-8,Math.min(8,Math.floor(r/3)))*3)+1,o=i.length;return a===o?i:a>o?i+new Array(a-o+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+(0,u.f)(t,Math.max(0,n+a-1))[0]}function l(t,n){var e=(0,u.f)(t,n);if(!e)return t+"";var i=e[0],r=e[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}const f={"%":(t,n)=>(t*100).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:u.A,e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>l(t*100,n),r:l,s:c,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function _(t){return t}var p=Array.prototype.map,y=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function d(t){var n=t.grouping===undefined||t.thousands===undefined?_:r(p.call(t.grouping,Number),t.thousands+""),e=t.currency===undefined?"":t.currency[0]+"",u=t.currency===undefined?"":t.currency[1]+"",c=t.decimal===undefined?".":t.decimal+"",l=t.numerals===undefined?_:a(p.call(t.numerals,String)),d=t.percent===undefined?"%":t.percent+"",g=t.minus===undefined?"−":t.minus+"",v=t.nan===undefined?"NaN":t.nan+"";function x(t){t=(0,o.A)(t);var i=t.fill,r=t.align,a=t.sign,_=t.symbol,p=t.zero,x=t.width,w=t.comma,m=t.precision,A=t.trim,b=t.type;if(b==="n")w=true,b="g";else if(!f[b])m===undefined&&(m=12),A=true,b="g";if(p||i==="0"&&r==="=")p=true,i="0",r="=";var M=_==="$"?e:_==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",T=_==="$"?u:/[%p]/.test(b)?d:"";var k=f[b],N=/[defgprs%]/.test(b);m=m===undefined?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m));function C(t){var e=M,o=T,u,f,_;if(b==="c"){o=k(t)+o;t=""}else{t=+t;var d=t<0||1/t<0;t=isNaN(t)?v:k(Math.abs(t),m);if(A)t=s(t);if(d&&+t===0&&a!=="+")d=false;e=(d?a==="("?a:g:a==="-"||a==="("?"":a)+e;o=(b==="s"?y[8+h/3]:"")+o+(d&&a==="("?")":"");if(N){u=-1,f=t.length;while(++u_||_>57){o=(_===46?c+t.slice(u+1):t.slice(u))+o;t=t.slice(0,u);break}}}}if(w&&!p)t=n(t,Infinity);var C=e.length+t.length+o.length,$=C>1)+e+t+o+$.slice(C);break;default:t=$+e+t+o;break}return l(t)}C.toString=function(){return t+""};return C}function w(t,n){var e=x((t=(0,o.A)(t),t.type="f",t)),r=Math.max(-8,Math.min(8,Math.floor((0,i.A)(n)/3)))*3,a=Math.pow(10,-r),s=y[8+r/3];return function(t){return e(a*t)+s}}return{format:x,formatPrefix:w}}},93391:(t,n,e)=>{e.d(n,{A:()=>r});var i=e(40886);function r(t){return Math.max(0,-(0,i.A)(Math.abs(t)))}},86093:(t,n,e)=>{e.d(n,{A:()=>r});var i=e(40886);function r(t,n){return Math.max(0,Math.max(-8,Math.min(8,Math.floor((0,i.A)(n)/3)))*3-(0,i.A)(Math.abs(t)))}},78209:(t,n,e)=>{e.d(n,{A:()=>r});var i=e(40886);function r(t,n){t=Math.abs(t),n=Math.abs(n)-t;return Math.max(0,(0,i.A)(n)-(0,i.A)(t))+1}},431:(t,n,e)=>{e.d(n,{l:()=>i,m:()=>r});function i(t){return t==null?null:r(t)}function r(t){if(typeof t!=="function")throw new Error;return t}},90751:(t,n,e)=>{e.d(n,{A:()=>r,P:()=>i});function i(){return 0}function r(t){return function(){return t}}},59459:(t,n,e)=>{e.d(n,{bP:()=>M,lW:()=>b,Ay:()=>v});function i(t){var n=0,e=t.children,i=e&&e.length;if(!i)n=1;else while(--i>=0)n+=e[i].value;t.value=n}function r(){return this.eachAfter(i)}function a(t,n){let e=-1;for(const i of this){t.call(n,i,++e,this)}return this}function o(t,n){var e=this,i=[e],r,a,o=-1;while(e=i.pop()){t.call(n,e,++o,this);if(r=e.children){for(a=r.length-1;a>=0;--a){i.push(r[a])}}}return this}function s(t,n){var e=this,i=[e],r=[],a,o,s,u=-1;while(e=i.pop()){r.push(e);if(a=e.children){for(o=0,s=a.length;o=0)e+=i[r].value;n.value=e}))}function c(t){return this.eachBefore((function(n){if(n.children){n.children.sort(t)}}))}function l(t){var n=this,e=f(n,t),i=[n];while(n!==e){n=n.parent;i.push(n)}var r=i.length;while(t!==e){i.splice(r,0,t);t=t.parent}return i}function f(t,n){if(t===n)return t;var e=t.ancestors(),i=n.ancestors(),r=null;t=e.pop();n=i.pop();while(t===n){r=t;t=e.pop();n=i.pop()}return r}function _(){var t=this,n=[t];while(t=t.parent){n.push(t)}return n}function p(){return Array.from(this)}function y(){var t=[];this.eachBefore((function(n){if(!n.children){t.push(n)}}));return t}function d(){var t=this,n=[];t.each((function(e){if(e!==t){n.push({source:e.parent,target:e})}}));return n}function*g(){var t=this,n,e=[t],i,r,a;do{n=e.reverse(),e=[];while(t=n.pop()){yield t;if(i=t.children){for(r=0,a=i.length;r=0;--s){r.push(a=o[s]=new M(o[s]));a.parent=i;a.depth=i.depth+1}}}return e.eachBefore(b)}function x(){return v(this).eachBefore(A)}function w(t){return t.children}function m(t){return Array.isArray(t)?t[1]:null}function A(t){if(t.data.value!==undefined)t.value=t.data.value;t.data=t.data.data}function b(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function M(t){this.data=t;this.depth=this.height=0;this.parent=null}M.prototype=v.prototype={constructor:M,count:r,each:a,eachAfter:s,eachBefore:o,find:u,sum:h,sort:c,path:l,ancestors:_,descendants:p,leaves:y,links:d,copy:x,[Symbol.iterator]:g}},34227:(t,n,e)=>{e.d(n,{A:()=>i});function i(t,n,e,i,r){var a=t.children,o,s=-1,u=a.length,h=t.value&&(i-n)/t.value;while(++s{e.d(n,{A:()=>s});var i=e(7705);var r=e(63462);var a=e(431);var o=e(90751);function s(){var t=r.Ay,n=false,e=1,s=1,u=[0],h=o.P,c=o.P,l=o.P,f=o.P,_=o.P;function p(t){t.x0=t.y0=0;t.x1=e;t.y1=s;t.eachBefore(y);u=[0];if(n)t.eachBefore(i.A);return t}function y(n){var e=u[n.depth],i=n.x0+e,r=n.y0+e,a=n.x1-e,o=n.y1-e;if(a{e.d(n,{A:()=>i});function i(t){t.x0=Math.round(t.x0);t.y0=Math.round(t.y0);t.x1=Math.round(t.x1);t.y1=Math.round(t.y1)}},48420:(t,n,e)=>{e.d(n,{A:()=>i});function i(t,n,e,i,r){var a=t.children,o,s=-1,u=a.length,h=t.value&&(r-e)/t.value;while(++s{e.d(n,{AI:()=>o,Ay:()=>s,U1:()=>a});var i=e(34227);var r=e(48420);var a=(1+Math.sqrt(5))/2;function o(t,n,e,a,o,s){var u=[],h=n.children,c,l,f=0,_=0,p=h.length,y,d,g=n.value,v,x,w,m,A,b,M;while(fw)w=l;M=v*v*b;m=Math.max(w/M,M/x);if(m>A){v-=l;break}A=m}u.push(c={value:v,dice:y1?n:1)};return e}(a)},69266:(t,n,e)=>{e.d(n,{$:()=>o,A:()=>a});var i=e(21406);var r=e(48561);function a(t,n){return((0,r.p)(n)?r.A:o)(t,n)}function o(t,n){var e=n?n.length:0,r=t?Math.min(e,t.length):0,a=new Array(r),o=new Array(e),s;for(s=0;s{e.d(n,{A:()=>r,H:()=>i});function i(t,n,e,i,r){var a=t*t,o=a*t;return((1-3*t+3*a-o)*n+(4-6*a+3*o)*e+(1+3*t+3*a-3*o)*i+o*r)/6}function r(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),a=t[r],o=t[r+1],s=r>0?t[r-1]:2*a-o,u=r{e.d(n,{A:()=>r});var i=e(13029);function r(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),a=t[(r+n-1)%n],o=t[r%n],s=t[(r+1)%n],u=t[(r+2)%n];return(0,i.H)((e-r/n)*n,a,o,s,u)}}},6504:(t,n,e)=>{e.d(n,{Ay:()=>u,lG:()=>o,uN:()=>s});var i=e(80319);function r(t,n){return function(e){return t+e*n}}function a(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}function o(t,n){var e=n-t;return e?r(t,e>180||e<-180?e-360*Math.round(e/360):e):(0,i.A)(isNaN(t)?n:t)}function s(t){return(t=+t)===1?u:function(n,e){return e-n?a(n,e,t):(0,i.A)(isNaN(n)?e:n)}}function u(t,n){var e=n-t;return e?r(t,e):(0,i.A)(isNaN(t)?n:t)}},80319:(t,n,e)=>{e.d(n,{A:()=>i});const i=t=>()=>t},57007:(t,n,e)=>{e.d(n,{A:()=>i});function i(t,n){var e=new Date;return t=+t,n=+n,function(i){return e.setTime(t*(1-i)+n*i),e}}},67360:(t,n,e)=>{e.r(n);e.d(n,{interpolate:()=>i.A,interpolateArray:()=>r.A,interpolateBasis:()=>a.A,interpolateBasisClosed:()=>o.A,interpolateCubehelix:()=>B,interpolateCubehelixLong:()=>G,interpolateDate:()=>s.A,interpolateDiscrete:()=>u,interpolateHcl:()=>U,interpolateHclLong:()=>F,interpolateHsl:()=>T,interpolateHslLong:()=>k,interpolateHue:()=>c,interpolateLab:()=>C,interpolateNumber:()=>l.A,interpolateNumberArray:()=>f.A,interpolateObject:()=>_.A,interpolateRgb:()=>A.Ay,interpolateRgbBasis:()=>A.Ik,interpolateRgbBasisClosed:()=>A.uL,interpolateRound:()=>p.A,interpolateString:()=>y.A,interpolateTransformCss:()=>d.T,interpolateTransformSvg:()=>d.I,interpolateZoom:()=>m,piecewise:()=>J.A,quantize:()=>Z});var i=e(21406);var r=e(69266);var a=e(13029);var o=e(64425);var s=e(57007);function u(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}var h=e(6504);function c(t,n){var e=(0,h.lG)(+t,+n);return function(t){var n=e(t);return n-360*Math.floor(n/360)}}var l=e(85566);var f=e(48561);var _=e(86088);var p=e(15307);var y=e(23318);var d=e(39480);var g=1e-12;function v(t){return((t=Math.exp(t))+1/t)/2}function x(t){return((t=Math.exp(t))-1/t)/2}function w(t){return((t=Math.exp(2*t))-1)/(t+1)}const m=function t(n,e,i){function r(t,r){var a=t[0],o=t[1],s=t[2],u=r[0],h=r[1],c=r[2],l=u-a,f=h-o,_=l*l+f*f,p,y;if(_{e.d(n,{A:()=>i});function i(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}},48561:(t,n,e)=>{e.d(n,{A:()=>i,p:()=>r});function i(t,n){if(!n)n=[];var e=t?Math.min(n.length,t.length):0,i=n.slice(),r;return function(a){for(r=0;r{e.d(n,{A:()=>r});var i=e(21406);function r(t,n){var e={},r={},a;if(t===null||typeof t!=="object")t={};if(n===null||typeof n!=="object")n={};for(a in n){if(a in t){e[a]=(0,i.A)(t[a],n[a])}else{r[a]=n[a]}}return function(t){for(a in e)r[a]=e[a](t);return r}}},99793:(t,n,e)=>{e.d(n,{A:()=>r});var i=e(21406);function r(t,n){if(n===undefined)n=t,t=i.A;var e=0,r=n.length-1,a=n[0],o=new Array(r<0?0:r);while(e{e.d(n,{Ay:()=>s,Ik:()=>h,uL:()=>c});var i=e(33844);var r=e(13029);var a=e(64425);var o=e(6504);const s=function t(n){var e=(0,o.uN)(n);function r(t,n){var r=e((t=(0,i.Qh)(t)).r,(n=(0,i.Qh)(n)).r),a=e(t.g,n.g),s=e(t.b,n.b),u=(0,o.Ay)(t.opacity,n.opacity);return function(n){t.r=r(n);t.g=a(n);t.b=s(n);t.opacity=u(n);return t+""}}r.gamma=t;return r}(1);function u(t){return function(n){var e=n.length,r=new Array(e),a=new Array(e),o=new Array(e),s,u;for(s=0;s{e.d(n,{A:()=>i});function i(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}},23318:(t,n,e)=>{e.d(n,{A:()=>u});var i=e(85566);var r=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=new RegExp(r.source,"g");function o(t){return function(){return t}}function s(t){return function(n){return t(n)+""}}function u(t,n){var e=r.lastIndex=a.lastIndex=0,u,h,c,l=-1,f=[],_=[];t=t+"",n=n+"";while((u=r.exec(t))&&(h=a.exec(n))){if((c=h.index)>e){c=n.slice(e,c);if(f[l])f[l]+=c;else f[++l]=c}if((u=u[0])===(h=h[0])){if(f[l])f[l]+=h;else f[++l]=h}else{f[++l]=null;_.push({i:l,x:(0,i.A)(u,h)})}e=a.lastIndex}if(e{e.d(n,{T:()=>l,I:()=>f});var i=e(85566);var r=180/Math.PI;var a={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function o(t,n,e,i,a,o){var s,u,h;if(s=Math.sqrt(t*t+n*n))t/=s,n/=s;if(h=t*e+n*i)e-=t*h,i-=n*h;if(u=Math.sqrt(e*e+i*i))e/=u,i/=u,h/=u;if(t*i180)n+=360;else if(n-t>180)t+=360;o.push({i:e.push(a(e)+"rotate(",null,r)-2,x:(0,i.A)(t,n)})}else if(n){e.push(a(e)+"rotate("+n+r)}}function u(t,n,e,o){if(t!==n){o.push({i:e.push(a(e)+"skewX(",null,r)-2,x:(0,i.A)(t,n)})}else if(n){e.push(a(e)+"skewX("+n+r)}}function h(t,n,e,r,o,s){if(t!==e||n!==r){var u=o.push(a(o)+"scale(",null,",",null,")");s.push({i:u-4,x:(0,i.A)(t,e)},{i:u-2,x:(0,i.A)(n,r)})}else if(e!==1||r!==1){o.push(a(o)+"scale("+e+","+r+")")}}return function(n,e){var i=[],r=[];n=t(n),e=t(e);o(n.translateX,n.translateY,e.translateX,e.translateY,i,r);s(n.rotate,e.rotate,i,r);u(n.skewX,e.skewX,i,r);h(n.scaleX,n.scaleY,e.scaleX,e.scaleY,i,r);n=e=null;return function(t){var n=-1,e=r.length,a;while(++n{e.d(n,{A:()=>f});var i=e(33844);var r=e(79948);var a=e(69266);var o=e(57007);var s=e(85566);var u=e(86088);var h=e(23318);var c=e(80319);var l=e(48561);function f(t,n){var e=typeof n,f;return n==null||e==="boolean"?(0,c.A)(n):(e==="number"?s.A:e==="string"?(f=(0,i.Ay)(n))?(n=f,r.Ay):h.A:n instanceof i.Ay?r.Ay:n instanceof Date?o.A:(0,l.p)(n)?l.A:Array.isArray(n)?a.$:typeof n.valueOf!=="function"&&typeof n.toString!=="function"||isNaN(n)?u.A:s.A)(t,n)}},69450:(t,n,e)=>{e.d(n,{Ae:()=>c,wA:()=>h});const i=Math.PI,r=2*i,a=1e-6,o=r-a;function s(t){this._+=t[0];for(let n=1,e=t.length;n=0))throw new Error(`invalid digits: ${t}`);if(n>15)return s;const e=10**n;return function(t){this._+=t[0];for(let n=1,i=t.length;na));else if(!(Math.abs(f*h-c*l)>a)||!o){this._append`L${this._x1=t},${this._y1=n}`}else{let p=e-s,y=r-u,d=h*h+c*c,g=p*p+y*y,v=Math.sqrt(d),x=Math.sqrt(_),w=o*Math.tan((i-Math.acos((d+_-g)/(2*v*x)))/2),m=w/x,A=w/v;if(Math.abs(m-1)>a){this._append`L${t+m*l},${n+m*f}`}this._append`A${o},${o},0,0,${+(f*p>l*y)},${this._x1=t+A*h},${this._y1=n+A*c}`}}arc(t,n,e,s,u,h){t=+t,n=+n,e=+e,h=!!h;if(e<0)throw new Error(`negative radius: ${e}`);let c=e*Math.cos(s),l=e*Math.sin(s),f=t+c,_=n+l,p=1^h,y=h?s-u:u-s;if(this._x1===null){this._append`M${f},${_}`}else if(Math.abs(this._x1-f)>a||Math.abs(this._y1-_)>a){this._append`L${f},${_}`}if(!e)return;if(y<0)y=y%r+r;if(y>o){this._append`A${e},${e},0,1,${p},${t-c},${n-l}A${e},${e},0,1,${p},${this._x1=f},${this._y1=_}`}else if(y>a){this._append`A${e},${e},0,${+(y>=i)},${p},${this._x1=t+e*Math.cos(u)},${this._y1=n+e*Math.sin(u)}`}}rect(t,n,e,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${e=+e}v${+i}h${-e}Z`}toString(){return this._}}function c(){return new h}c.prototype=h.prototype;function l(t=3){return new h(+t)}},58177:(t,n,e)=>{e.d(n,{A:()=>i});function i(t){var n=t.length/6|0,e=new Array(n),i=0;while(i{e.d(n,{C:()=>y,Ay:()=>g,D_:()=>c,Gu:()=>d});var i=e(71363);var r=e(21406);var a=e(85566);var o=e(15307);function s(t){return function(){return t}}var u=e(60117);var h=[0,1];function c(t){return t}function l(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:s(isNaN(n)?NaN:.5)}function f(t,n){var e;if(t>n)e=t,t=n,n=e;return function(e){return Math.max(t,Math.min(n,e))}}function _(t,n,e){var i=t[0],r=t[1],a=n[0],o=n[1];if(r2?p:_;g=v=null;return w}function w(r){return r==null||isNaN(r=+r)?l:(g||(g=d(t.map(i),n,e)))(i(y(r)))}w.invert=function(e){return y(s((v||(v=d(n,t.map(i),a.A)))(e)))};w.domain=function(n){return arguments.length?(t=Array.from(n,u.A),x()):t.slice()};w.range=function(t){return arguments.length?(n=Array.from(t),x()):n.slice()};w.rangeRound=function(t){return n=Array.from(t),e=o.A,x()};w.clamp=function(t){return arguments.length?(y=t?true:c,x()):y!==c};w.interpolate=function(t){return arguments.length?(e=t,x()):e};w.unknown=function(t){return arguments.length?(l=t,w):l};return function(t,n){i=t,s=n;return x()}}function g(){return d()(c,c)}},25758:(t,n,e)=>{e.d(n,{C:()=>i,K:()=>r});function i(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t);break}return this}function r(t,n){switch(arguments.length){case 0:break;case 1:{if(typeof t==="function")this.interpolator(t);else this.range(t);break}default:{this.domain(t);if(typeof n==="function")this.interpolator(n);else this.range(n);break}}return this}},20481:(t,n,e)=>{e.d(n,{A:()=>u,C:()=>s});var i=e(97119);var r=e(52178);var a=e(25758);var o=e(26698);function s(t){var n=t.domain;t.ticks=function(t){var e=n();return(0,i.Ay)(e[0],e[e.length-1],t==null?10:t)};t.tickFormat=function(t,e){var i=n();return(0,o.A)(i[0],i[i.length-1],t==null?10:t,e)};t.nice=function(e){if(e==null)e=10;var r=n();var a=0;var o=r.length-1;var s=r[a];var u=r[o];var h;var c;var l=10;if(u0){c=(0,i.lq)(s,u,e);if(c===h){r[a]=s;r[o]=u;return n(r)}else if(c>0){s=Math.floor(s/c)*c;u=Math.ceil(u/c)*c}else if(c<0){s=Math.ceil(s*c)/c;u=Math.floor(u*c)/c}else{break}h=c}return t};return t}function u(){var t=(0,r.Ay)();t.copy=function(){return(0,r.C)(t,u())};a.C.apply(t,arguments);return s(t)}},60125:(t,n,e)=>{e.d(n,{A:()=>i});function i(t,n){t=t.slice();var e=0,i=t.length-1,r=t[e],a=t[i],o;if(a{e.d(n,{A:()=>i});function i(t){return+t}},16527:(t,n,e)=>{e.d(n,{A:()=>o,h:()=>a});var i=e(30352);var r=e(25758);const a=Symbol("implicit");function o(){var t=new i.B,n=[],e=[],s=a;function u(i){let r=t.get(i);if(r===undefined){if(s!==a)return s;t.set(i,r=n.push(i)-1)}return e[r%e.length]}u.domain=function(e){if(!arguments.length)return n.slice();n=[],t=new i.B;for(const i of e){if(t.has(i))continue;t.set(i,n.push(i)-1)}return u};u.range=function(t){return arguments.length?(e=Array.from(t),u):e.slice()};u.unknown=function(t){return arguments.length?(s=t,u):s};u.copy=function(){return o(n,e).unknown(s)};r.C.apply(u,arguments);return u}},26698:(t,n,e)=>{e.d(n,{A:()=>h});var i=e(97119);var r=e(71688);var a=e(86093);var o=e(24626);var s=e(78209);var u=e(93391);function h(t,n,e,h){var c=(0,i.sG)(t,n,e),l;h=(0,r.A)(h==null?",f":h);switch(h.type){case"s":{var f=Math.max(Math.abs(t),Math.abs(n));if(h.precision==null&&!isNaN(l=(0,a.A)(c,f)))h.precision=l;return(0,o.s)(h,f)}case"":case"e":case"g":case"p":case"r":{if(h.precision==null&&!isNaN(l=(0,s.A)(c,Math.max(Math.abs(t),Math.abs(n)))))h.precision=l-(h.type==="e");break}case"f":case"%":{if(h.precision==null&&!isNaN(l=(0,u.A)(c)))h.precision=l-(h.type==="%")*2;break}}return(0,o.GP)(h)}},74725:(t,n,e)=>{e.d(n,{A:()=>v,B:()=>g});var i=e(20421);var r=e(42706);var a=e(77849);var o=e(61779);var s=e(20293);var u=e(9017);var h=e(23383);var c=e(61147);var l=e(82692);var f=e(52178);var _=e(25758);var p=e(60125);function y(t){return new Date(t)}function d(t){return t instanceof Date?+t:+new Date(+t)}function g(t,n,e,i,r,a,o,s,u,h){var c=(0,f.Ay)(),l=c.invert,_=c.domain;var v=h(".%L"),x=h(":%S"),w=h("%I:%M"),m=h("%I %p"),A=h("%a %d"),b=h("%b %d"),M=h("%B"),T=h("%Y");function k(t){return(u(t){e.d(n,{A:()=>_});var i=e(84653);var r=e(98247);var a=e(18226);function o(t){return t.innerRadius}function s(t){return t.outerRadius}function u(t){return t.startAngle}function h(t){return t.endAngle}function c(t){return t&&t.padAngle}function l(t,n,e,i,a,o,s,u){var h=e-t,c=i-n,l=s-a,f=u-o,_=f*h-l*c;if(_*_F*F+D*D)T=N,k=C;return{cx:T,cy:k,x01:-l,y01:-f,x11:T*(a/A-1),y11:k*(a/A-1)}}function _(){var t=o,n=s,e=(0,i.A)(0),_=null,p=u,y=h,d=c,g=null,v=(0,a.i)(x);function x(){var i,a,o=+t.apply(this,arguments),s=+n.apply(this,arguments),u=p.apply(this,arguments)-r.TW,h=y.apply(this,arguments)-r.TW,c=(0,r.tn)(h-u),x=h>u;if(!g)g=i=v();if(sr.Ni))g.moveTo(0,0);else if(c>r.FA-r.Ni){g.moveTo(s*(0,r.gn)(u),s*(0,r.F8)(u));g.arc(0,0,s,u,h,!x);if(o>r.Ni){g.moveTo(o*(0,r.gn)(h),o*(0,r.F8)(h));g.arc(0,0,o,h,u,x)}}else{var w=u,m=h,A=u,b=h,M=c,T=c,k=d.apply(this,arguments)/2,N=k>r.Ni&&(_?+_.apply(this,arguments):(0,r.RZ)(o*o+s*s)),C=(0,r.jk)((0,r.tn)(s-o)/2,+e.apply(this,arguments)),$=C,U=C,F,D;if(N>r.Ni){var S=(0,r.qR)(N/o*(0,r.F8)(k)),P=(0,r.qR)(N/s*(0,r.F8)(k));if((M-=S*2)>r.Ni)S*=x?1:-1,A+=S,b-=S;else M=0,A=b=(u+h)/2;if((T-=P*2)>r.Ni)P*=x?1:-1,w+=P,m-=P;else T=0,w=m=(u+h)/2}var E=s*(0,r.gn)(w),R=s*(0,r.F8)(w),H=o*(0,r.gn)(b),Y=o*(0,r.F8)(b);if(C>r.Ni){var q=s*(0,r.gn)(m),L=s*(0,r.F8)(m),j=o*(0,r.gn)(A),z=o*(0,r.F8)(A),I;if(cr.Ni))g.moveTo(E,R);else if(U>r.Ni){F=f(j,z,E,R,s,U,x);D=f(q,L,H,Y,s,U,x);g.moveTo(F.cx+F.x01,F.cy+F.y01);if(Ur.Ni)||!(M>r.Ni))g.lineTo(H,Y);else if($>r.Ni){F=f(H,Y,q,L,o,-$,x);D=f(E,R,j,z,o,-$,x);g.lineTo(F.cx+F.x01,F.cy+F.y01);if(${e.d(n,{A:()=>r});var i=Array.prototype.slice;function r(t){return typeof t==="object"&&"length"in t?t:Array.from(t)}},84653:(t,n,e)=>{e.d(n,{A:()=>i});function i(t){return function n(){return t}}},24363:(t,n,e)=>{e.d(n,{Ay:()=>a,xO:()=>r,zx:()=>i});function i(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function r(t){this._context=t}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN;this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,t,n);break}this._x0=this._x1,this._x1=t;this._y0=this._y1,this._y1=n}};function a(t){return new r(t)}},60075:(t,n,e)=>{e.d(n,{A:()=>o});var i=e(71649);var r=e(24363);function a(t){this._context=t}a.prototype={areaStart:i.A,areaEnd:i.A,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN;this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2);this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3);this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3);this._context.closePath();break}case 3:{this.point(this._x2,this._y2);this.point(this._x3,this._y3);this.point(this._x4,this._y4);break}}},point:function(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._x2=t,this._y2=n;break;case 1:this._point=2;this._x3=t,this._y3=n;break;case 2:this._point=3;this._x4=t,this._y4=n;this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:(0,r.zx)(this,t,n);break}this._x0=this._x1,this._x1=t;this._y0=this._y1,this._y1=n}};function o(t){return new a(t)}},69683:(t,n,e)=>{e.d(n,{A:()=>a});var i=e(24363);function r(t){this._context=t}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN;this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:(0,i.zx)(this,t,n);break}this._x0=this._x1,this._x1=t;this._y0=this._y1,this._y1=n}};function a(t){return new r(t)}},54545:(t,n,e)=>{e.d(n,{A:()=>a});var i=e(24363);function r(t,n){this._basis=new i.xO(t);this._beta=n}r.prototype={lineStart:function(){this._x=[];this._y=[];this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0){var i=t[0],r=n[0],a=t[e]-i,o=n[e]-r,s=-1,u;while(++s<=e){u=s/e;this._basis.point(this._beta*t[s]+(1-this._beta)*(i+u*a),this._beta*n[s]+(1-this._beta)*(r+u*o))}}this._x=this._y=null;this._basis.lineEnd()},point:function(t,n){this._x.push(+t);this._y.push(+n)}};const a=function t(n){function e(t){return n===1?new i.xO(t):new r(t,n)}e.beta=function(n){return t(+n)};return e}(.85)},43793:(t,n,e)=>{e.d(n,{Ay:()=>a,vP:()=>r,zx:()=>i});function i(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function r(t,n){this._context=t;this._k=(1-n)/6}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:i(this,this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;this._x1=t,this._y1=n;break;case 2:this._point=3;default:i(this,t,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};const a=function t(n){function e(t){return new r(t,n)}e.tension=function(n){return t(+n)};return e}(0)},13893:(t,n,e)=>{e.d(n,{A:()=>o,L:()=>a});var i=e(71649);var r=e(43793);function a(t,n){this._context=t;this._k=(1-n)/6}a.prototype={areaStart:i.A,areaEnd:i.A,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN;this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3);this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3);this._context.closePath();break}case 3:{this.point(this._x3,this._y3);this.point(this._x4,this._y4);this.point(this._x5,this._y5);break}}},point:function(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._x3=t,this._y3=n;break;case 1:this._point=2;this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3;this._x5=t,this._y5=n;break;default:(0,r.zx)(this,t,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};const o=function t(n){function e(t){return new a(t,n)}e.tension=function(n){return t(+n)};return e}(0)},46457:(t,n,e)=>{e.d(n,{A:()=>a,H:()=>r});var i=e(43793);function r(t,n){this._context=t;this._k=(1-n)/6}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,i.zx)(this,t,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};const a=function t(n){function e(t){return new r(t,n)}e.tension=function(n){return t(+n)};return e}(0)},76413:(t,n,e)=>{e.d(n,{A:()=>s,z:()=>a});var i=e(98247);var r=e(43793);function a(t,n,e){var r=t._x1,a=t._y1,o=t._x2,s=t._y2;if(t._l01_a>i.Ni){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,h=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/h;a=(a*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/h}if(t._l23_a>i.Ni){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-n*t._l12_2a)/l;s=(s*c+t._y1*t._l23_2a-e*t._l12_2a)/l}t._context.bezierCurveTo(r,a,o,s,t._x2,t._y2)}function o(t,n){this._context=t;this._alpha=n}o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(t,n){t=+t,n=+n;if(this._point){var e=this._x2-t,i=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+i*i,this._alpha))}switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:a(this,t,n);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a;this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a;this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};const s=function t(n){function e(t){return n?new o(t,n):new r.vP(t,0)}e.alpha=function(n){return t(+n)};return e}(.5)},25633:(t,n,e)=>{e.d(n,{A:()=>s});var i=e(13893);var r=e(71649);var a=e(76413);function o(t,n){this._context=t;this._alpha=n}o.prototype={areaStart:r.A,areaEnd:r.A,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3);this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3);this._context.closePath();break}case 3:{this.point(this._x3,this._y3);this.point(this._x4,this._y4);this.point(this._x5,this._y5);break}}},point:function(t,n){t=+t,n=+n;if(this._point){var e=this._x2-t,i=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+i*i,this._alpha))}switch(this._point){case 0:this._point=1;this._x3=t,this._y3=n;break;case 1:this._point=2;this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3;this._x5=t,this._y5=n;break;default:(0,a.z)(this,t,n);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a;this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a;this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};const s=function t(n){function e(t){return n?new o(t,n):new i.L(t,0)}e.alpha=function(n){return t(+n)};return e}(.5)},13309:(t,n,e)=>{e.d(n,{A:()=>o});var i=e(46457);var r=e(76413);function a(t,n){this._context=t;this._alpha=n}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(t,n){t=+t,n=+n;if(this._point){var e=this._x2-t,i=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,r.z)(this,t,n);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a;this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a;this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};const o=function t(n){function e(t){return n?new a(t,n):new i.H(t,0)}e.alpha=function(n){return t(+n)};return e}(.5)},71228:(t,n,e)=>{e.d(n,{A:()=>r});function i(t){this._context=t}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n);break}}};function r(t){return new i(t)}},43272:(t,n,e)=>{e.d(n,{A:()=>a});var i=e(71649);function r(t){this._context=t}r.prototype={areaStart:i.A,areaEnd:i.A,lineStart:function(){this._point=0},lineEnd:function(){if(this._point)this._context.closePath()},point:function(t,n){t=+t,n=+n;if(this._point)this._context.lineTo(t,n);else this._point=1,this._context.moveTo(t,n)}};function a(t){return new r(t)}},67694:(t,n,e)=>{e.d(n,{G:()=>c,N:()=>l});function i(t){return t<0?-1:1}function r(t,n,e){var r=t._x1-t._x0,a=n-t._x1,o=(t._y1-t._y0)/(r||a<0&&-0),s=(e-t._y1)/(a||r<0&&-0),u=(o*a+s*r)/(r+a);return(i(o)+i(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(u))||0}function a(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function o(t,n,e){var i=t._x0,r=t._y0,a=t._x1,o=t._y1,s=(a-i)/3;t._context.bezierCurveTo(i+s,r+s*n,a-s,o-s*e,a,o)}function s(t){this._context=t}s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN;this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:o(this,this._t0,a(this,this._t0));break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(t,n){var e=NaN;t=+t,n=+n;if(t===this._x1&&n===this._y1)return;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;o(this,a(this,e=r(this,t,n)),e);break;default:o(this,this._t0,e=r(this,t,n));break}this._x0=this._x1,this._x1=t;this._y0=this._y1,this._y1=n;this._t0=e}};function u(t){this._context=new h(t)}(u.prototype=Object.create(s.prototype)).point=function(t,n){s.prototype.point.call(this,n,t)};function h(t){this._context=t}h.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,i,r,a){this._context.bezierCurveTo(n,t,i,e,a,r)}};function c(t){return new s(t)}function l(t){return new u(t)}},29944:(t,n,e)=>{e.d(n,{A:()=>a});function i(t){this._context=t}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[];this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e){this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]);if(e===2){this._context.lineTo(t[1],n[1])}else{var i=r(t),a=r(n);for(var o=0,s=1;s=0;--n)r[n]=(o[n]-r[n+1])/a[n];a[e-1]=(t[e]+r[e-1])/2;for(n=0;n{e.d(n,{Ay:()=>r,Ko:()=>a,Ps:()=>o});function i(t,n){this._context=t;this._t=n}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN;this._point=0},lineEnd:function(){if(0=0)this._t=1-this._t,this._line=1-this._line},point:function(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:{if(this._t<=0){this._context.lineTo(this._x,n);this._context.lineTo(t,n)}else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y);this._context.lineTo(e,n)}break}}this._x=t,this._y=n}};function r(t){return new i(t,.5)}function a(t){return new i(t,0)}function o(t){return new i(t,1)}},58679:(t,n,e)=>{e.d(n,{A:()=>u});var i=e(12736);var r=e(84653);var a=e(71228);var o=e(18226);var s=e(59835);function u(t,n){var e=(0,r.A)(true),u=null,h=a.A,c=null,l=(0,o.i)(f);t=typeof t==="function"?t:t===undefined?s.x:(0,r.A)(t);n=typeof n==="function"?n:n===undefined?s.y:(0,r.A)(n);function f(r){var a,o=(r=(0,i.A)(r)).length,s,f=false,_;if(u==null)c=h(_=l());for(a=0;a<=o;++a){if(!(a{e.d(n,{F8:()=>u,FA:()=>_,FP:()=>r,HQ:()=>p,Ni:()=>c,RZ:()=>h,T9:()=>o,TW:()=>f,gn:()=>a,jk:()=>s,pi:()=>l,qR:()=>y,tn:()=>i});const i=Math.abs;const r=Math.atan2;const a=Math.cos;const o=Math.max;const s=Math.min;const u=Math.sin;const h=Math.sqrt;const c=1e-12;const l=Math.PI;const f=l/2;const _=2*l;function p(t){return t>1?0:t<-1?l:Math.acos(t)}function y(t){return t>=1?f:t<=-1?-f:Math.asin(t)}},71649:(t,n,e)=>{e.d(n,{A:()=>i});function i(){}},18226:(t,n,e)=>{e.d(n,{i:()=>r});var i=e(69450);function r(t){let n=3;t.digits=function(e){if(!arguments.length)return n;if(e==null){n=null}else{const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);n=t}return t};return()=>new i.wA(n)}},59835:(t,n,e)=>{e.d(n,{x:()=>i,y:()=>r});function i(t){return t[0]}function r(t){return t[1]}},82692:(t,n,e)=>{e.d(n,{DC:()=>a,GY:()=>u,T6:()=>o,aL:()=>s});var i=e(77613);var r;var a;var o;var s;var u;h({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function h(t){r=(0,i.A)(t);a=r.format;o=r.parse;s=r.utcFormat;u=r.utcParse;return r}},77613:(t,n,e)=>{e.d(n,{A:()=>h});var i=e(61779);var r=e(20293);var a=e(42706);function o(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);n.setFullYear(t.y);return n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function s(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));n.setUTCFullYear(t.y);return n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function u(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}function h(t){var n=t.dateTime,e=t.date,a=t.time,h=t.periods,l=t.days,f=t.shortDays,_=t.months,p=t.shortMonths;var y=d(h),Z=g(h),yt=d(l),Nt=g(l),Ct=d(f),$t=g(f),Ut=d(_),Ft=g(_),Dt=d(p),St=g(p);var Pt={a:Jt,A:Zt,b:Qt,B:Wt,c:null,d:Y,e:Y,f:I,g:tt,G:et,H:q,I:L,j,L:z,m:X,M:O,p:Vt,q:Kt,Q:Tt,s:kt,S:B,u:G,U:J,V:Q,w:W,W:V,x:null,X:null,y:K,Y:nt,Z:it,"%":Mt};var Et={a:tn,A:nn,b:en,B:rn,c:null,d:rt,e:rt,f:ht,g:wt,G:At,H:at,I:ot,j:st,L:ut,m:ct,M:lt,p:an,q:on,Q:Tt,s:kt,S:ft,u:_t,U:pt,V:dt,w:gt,W:vt,x:null,X:null,y:xt,Y:mt,Z:bt,"%":Mt};var Rt={a:jt,A:zt,b:It,B:Xt,c:Ot,d:C,e:C,f:P,g:M,G:b,H:U,I:U,j:$,L:S,m:N,M:F,p:Lt,q:k,Q:R,s:H,S:D,u:x,U:w,V:m,w:v,W:A,x:Bt,X:Gt,y:M,Y:b,Z:T,"%":E};Pt.x=Ht(e,Pt);Pt.X=Ht(a,Pt);Pt.c=Ht(n,Pt);Et.x=Ht(e,Et);Et.X=Ht(a,Et);Et.c=Ht(n,Et);function Ht(t,n){return function(e){var i=[],r=-1,a=0,o=t.length,s,u,h;if(!(e instanceof Date))e=new Date(+e);while(++r53)return null;if(!("w"in a))a.w=1;if("Z"in a){c=s(u(a.y,0,1)),l=c.getUTCDay();c=l>4||l===0?i.rt.ceil(c):(0,i.rt)(c);c=r.dA.offset(c,(a.V-1)*7);a.y=c.getUTCFullYear();a.m=c.getUTCMonth();a.d=c.getUTCDate()+(a.w+6)%7}else{c=o(u(a.y,0,1)),l=c.getDay();c=l>4||l===0?i.AB.ceil(c):(0,i.AB)(c);c=r.UA.offset(c,(a.V-1)*7);a.y=c.getFullYear();a.m=c.getMonth();a.d=c.getDate()+(a.w+6)%7}}else if("W"in a||"U"in a){if(!("w"in a))a.w="u"in a?a.u%7:"W"in a?1:0;l="Z"in a?s(u(a.y,0,1)).getUTCDay():o(u(a.y,0,1)).getDay();a.m=0;a.d="W"in a?(a.w+6)%7+a.W*7-(l+5)%7:a.w+a.U*7-(l+6)%7}if("Z"in a){a.H+=a.Z/100|0;a.M+=a.Z%100;return s(a)}return o(a)}}function qt(t,n,e,i){var r=0,a=n.length,o=e.length,s,u;while(r=o)return-1;s=n.charCodeAt(r++);if(s===37){s=n.charAt(r++);u=Rt[s in c?n.charAt(r++):s];if(!u||(i=u(t,e,i))<0)return-1}else if(s!=e.charCodeAt(i++)){return-1}}return i}function Lt(t,n,e){var i=y.exec(n.slice(e));return i?(t.p=Z.get(i[0].toLowerCase()),e+i[0].length):-1}function jt(t,n,e){var i=Ct.exec(n.slice(e));return i?(t.w=$t.get(i[0].toLowerCase()),e+i[0].length):-1}function zt(t,n,e){var i=yt.exec(n.slice(e));return i?(t.w=Nt.get(i[0].toLowerCase()),e+i[0].length):-1}function It(t,n,e){var i=Dt.exec(n.slice(e));return i?(t.m=St.get(i[0].toLowerCase()),e+i[0].length):-1}function Xt(t,n,e){var i=Ut.exec(n.slice(e));return i?(t.m=Ft.get(i[0].toLowerCase()),e+i[0].length):-1}function Ot(t,e,i){return qt(t,n,e,i)}function Bt(t,n,i){return qt(t,e,n,i)}function Gt(t,n,e){return qt(t,a,n,e)}function Jt(t){return f[t.getDay()]}function Zt(t){return l[t.getDay()]}function Qt(t){return p[t.getMonth()]}function Wt(t){return _[t.getMonth()]}function Vt(t){return h[+(t.getHours()>=12)]}function Kt(t){return 1+~~(t.getMonth()/3)}function tn(t){return f[t.getUTCDay()]}function nn(t){return l[t.getUTCDay()]}function en(t){return p[t.getUTCMonth()]}function rn(t){return _[t.getUTCMonth()]}function an(t){return h[+(t.getUTCHours()>=12)]}function on(t){return 1+~~(t.getUTCMonth()/3)}return{format:function(t){var n=Ht(t+="",Pt);n.toString=function(){return t};return n},parse:function(t){var n=Yt(t+="",false);n.toString=function(){return t};return n},utcFormat:function(t){var n=Ht(t+="",Et);n.toString=function(){return t};return n},utcParse:function(t){var n=Yt(t+="",true);n.toString=function(){return t};return n}}}var c={"-":"",_:" ",0:"0"},l=/^\s*\d+/,f=/^%/,_=/[\\^$*+?|[\]().{}]/g;function p(t,n,e){var i=t<0?"-":"",r=(i?-t:t)+"",a=r.length;return i+(a[t.toLowerCase(),n])))}function v(t,n,e){var i=l.exec(n.slice(e,e+1));return i?(t.w=+i[0],e+i[0].length):-1}function x(t,n,e){var i=l.exec(n.slice(e,e+1));return i?(t.u=+i[0],e+i[0].length):-1}function w(t,n,e){var i=l.exec(n.slice(e,e+2));return i?(t.U=+i[0],e+i[0].length):-1}function m(t,n,e){var i=l.exec(n.slice(e,e+2));return i?(t.V=+i[0],e+i[0].length):-1}function A(t,n,e){var i=l.exec(n.slice(e,e+2));return i?(t.W=+i[0],e+i[0].length):-1}function b(t,n,e){var i=l.exec(n.slice(e,e+4));return i?(t.y=+i[0],e+i[0].length):-1}function M(t,n,e){var i=l.exec(n.slice(e,e+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function T(t,n,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function k(t,n,e){var i=l.exec(n.slice(e,e+1));return i?(t.q=i[0]*3-3,e+i[0].length):-1}function N(t,n,e){var i=l.exec(n.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function C(t,n,e){var i=l.exec(n.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function $(t,n,e){var i=l.exec(n.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function U(t,n,e){var i=l.exec(n.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function F(t,n,e){var i=l.exec(n.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function D(t,n,e){var i=l.exec(n.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function S(t,n,e){var i=l.exec(n.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function P(t,n,e){var i=l.exec(n.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function E(t,n,e){var i=f.exec(n.slice(e,e+1));return i?e+i[0].length:-1}function R(t,n,e){var i=l.exec(n.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function H(t,n,e){var i=l.exec(n.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function Y(t,n){return p(t.getDate(),n,2)}function q(t,n){return p(t.getHours(),n,2)}function L(t,n){return p(t.getHours()%12||12,n,2)}function j(t,n){return p(1+r.UA.count((0,a.he)(t),t),n,3)}function z(t,n){return p(t.getMilliseconds(),n,3)}function I(t,n){return z(t,n)+"000"}function X(t,n){return p(t.getMonth()+1,n,2)}function O(t,n){return p(t.getMinutes(),n,2)}function B(t,n){return p(t.getSeconds(),n,2)}function G(t){var n=t.getDay();return n===0?7:n}function J(t,n){return p(i.YP.count((0,a.he)(t)-1,t),n,2)}function Z(t){var n=t.getDay();return n>=4||n===0?(0,i.Mo)(t):i.Mo.ceil(t)}function Q(t,n){t=Z(t);return p(i.Mo.count((0,a.he)(t),t)+((0,a.he)(t).getDay()===4),n,2)}function W(t){return t.getDay()}function V(t,n){return p(i.AB.count((0,a.he)(t)-1,t),n,2)}function K(t,n){return p(t.getFullYear()%100,n,2)}function tt(t,n){t=Z(t);return p(t.getFullYear()%100,n,2)}function nt(t,n){return p(t.getFullYear()%1e4,n,4)}function et(t,n){var e=t.getDay();t=e>=4||e===0?(0,i.Mo)(t):i.Mo.ceil(t);return p(t.getFullYear()%1e4,n,4)}function it(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+p(n/60|0,"0",2)+p(n%60,"0",2)}function rt(t,n){return p(t.getUTCDate(),n,2)}function at(t,n){return p(t.getUTCHours(),n,2)}function ot(t,n){return p(t.getUTCHours()%12||12,n,2)}function st(t,n){return p(1+r.dA.count((0,a.Mb)(t),t),n,3)}function ut(t,n){return p(t.getUTCMilliseconds(),n,3)}function ht(t,n){return ut(t,n)+"000"}function ct(t,n){return p(t.getUTCMonth()+1,n,2)}function lt(t,n){return p(t.getUTCMinutes(),n,2)}function ft(t,n){return p(t.getUTCSeconds(),n,2)}function _t(t){var n=t.getUTCDay();return n===0?7:n}function pt(t,n){return p(i.Hl.count((0,a.Mb)(t)-1,t),n,2)}function yt(t){var n=t.getUTCDay();return n>=4||n===0?(0,i.pT)(t):i.pT.ceil(t)}function dt(t,n){t=yt(t);return p(i.pT.count((0,a.Mb)(t),t)+((0,a.Mb)(t).getUTCDay()===4),n,2)}function gt(t){return t.getUTCDay()}function vt(t,n){return p(i.rt.count((0,a.Mb)(t)-1,t),n,2)}function xt(t,n){return p(t.getUTCFullYear()%100,n,2)}function wt(t,n){t=yt(t);return p(t.getUTCFullYear()%100,n,2)}function mt(t,n){return p(t.getUTCFullYear()%1e4,n,4)}function At(t,n){var e=t.getUTCDay();t=e>=4||e===0?(0,i.pT)(t):i.pT.ceil(t);return p(t.getUTCFullYear()%1e4,n,4)}function bt(){return"+0000"}function Mt(){return"%"}function Tt(t){return+t}function kt(t){return Math.floor(+t/1e3)}},20293:(t,n,e)=>{e.d(n,{TW:()=>h,UA:()=>a,dA:()=>s});var i=e(12834);var r=e(29551);const a=(0,i.f)((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*r.rR)/r.Nm),(t=>t.getDate()-1));const o=a.range;const s=(0,i.f)((t=>{t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+n)}),((t,n)=>(n-t)/r.Nm),(t=>t.getUTCDate()-1));const u=s.range;const h=(0,i.f)((t=>{t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+n)}),((t,n)=>(n-t)/r.Nm),(t=>Math.floor(t/r.Nm)));const c=h.range},29551:(t,n,e)=>{e.d(n,{Fq:()=>s,JJ:()=>a,MP:()=>h,Nm:()=>o,Pv:()=>u,Tt:()=>i,rR:()=>r});const i=1e3;const r=i*60;const a=r*60;const o=a*24;const s=o*7;const u=o*30;const h=o*365},9017:(t,n,e)=>{e.d(n,{Ag:()=>a,pz:()=>s});var i=e(12834);var r=e(29551);const a=(0,i.f)((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*r.Tt-t.getMinutes()*r.rR)}),((t,n)=>{t.setTime(+t+n*r.JJ)}),((t,n)=>(n-t)/r.JJ),(t=>t.getHours()));const o=a.range;const s=(0,i.f)((t=>{t.setUTCMinutes(0,0,0)}),((t,n)=>{t.setTime(+t+n*r.JJ)}),((t,n)=>(n-t)/r.JJ),(t=>t.getUTCHours()));const u=s.range},12834:(t,n,e)=>{e.d(n,{f:()=>a});const i=new Date,r=new Date;function a(t,n,e,o){function s(n){return t(n=arguments.length===0?new Date:new Date(+n)),n}s.floor=n=>(t(n=new Date(+n)),n);s.ceil=e=>(t(e=new Date(e-1)),n(e,1),t(e),e);s.round=t=>{const n=s(t),e=s.ceil(t);return t-n(n(t=new Date(+t),e==null?1:Math.floor(e)),t);s.range=(e,i,r)=>{const a=[];e=s.ceil(e);r=r==null?1:Math.floor(r);if(!(e0))return a;let o;do{a.push(o=new Date(+e)),n(e,r),t(e)}while(oa((n=>{if(n>=n)while(t(n),!e(n))n.setTime(n-1)}),((t,i)=>{if(t>=t){if(i<0)while(++i<=0){while(n(t,-1),!e(t)){}}else while(--i>=0){while(n(t,+1),!e(t)){}}}}));if(e){s.count=(n,a)=>{i.setTime(+n),r.setTime(+a);t(i),t(r);return Math.floor(e(i,r))};s.every=t=>{t=Math.floor(t);return!isFinite(t)||!(t>0)?null:!(t>1)?s:s.filter(o?n=>o(n)%t===0:n=>s.count(0,n)%t===0)}}return s}},26530:(t,n,e)=>{e.d(n,{y:()=>r});var i=e(12834);const r=(0,i.f)((()=>{}),((t,n)=>{t.setTime(+t+n)}),((t,n)=>n-t));r.every=t=>{t=Math.floor(t);if(!isFinite(t)||!(t>0))return null;if(!(t>1))return r;return(0,i.f)((n=>{n.setTime(Math.floor(n/t)*t)}),((n,e)=>{n.setTime(+n+e*t)}),((n,e)=>(e-n)/t))};const a=r.range},23383:(t,n,e)=>{e.d(n,{vD:()=>s,wX:()=>a});var i=e(12834);var r=e(29551);const a=(0,i.f)((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*r.Tt)}),((t,n)=>{t.setTime(+t+n*r.rR)}),((t,n)=>(n-t)/r.rR),(t=>t.getMinutes()));const o=a.range;const s=(0,i.f)((t=>{t.setUTCSeconds(0,0)}),((t,n)=>{t.setTime(+t+n*r.rR)}),((t,n)=>(n-t)/r.rR),(t=>t.getUTCMinutes()));const u=s.range},77849:(t,n,e)=>{e.d(n,{R6:()=>o,Ui:()=>r});var i=e(12834);const r=(0,i.f)((t=>{t.setDate(1);t.setHours(0,0,0,0)}),((t,n)=>{t.setMonth(t.getMonth()+n)}),((t,n)=>n.getMonth()-t.getMonth()+(n.getFullYear()-t.getFullYear())*12),(t=>t.getMonth()));const a=r.range;const o=(0,i.f)((t=>{t.setUTCDate(1);t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCMonth(t.getUTCMonth()+n)}),((t,n)=>n.getUTCMonth()-t.getUTCMonth()+(n.getUTCFullYear()-t.getUTCFullYear())*12),(t=>t.getUTCMonth()));const s=o.range},61147:(t,n,e)=>{e.d(n,{R:()=>a});var i=e(12834);var r=e(29551);const a=(0,i.f)((t=>{t.setTime(t-t.getMilliseconds())}),((t,n)=>{t.setTime(+t+n*r.Tt)}),((t,n)=>(n-t)/r.Tt),(t=>t.getUTCSeconds()));const o=a.range},20421:(t,n,e)=>{e.d(n,{$Z:()=>y,Cf:()=>g,lk:()=>d,yE:()=>v});var i=e(9791);var r=e(97119);var a=e(29551);var o=e(26530);var s=e(61147);var u=e(23383);var h=e(9017);var c=e(20293);var l=e(61779);var f=e(77849);var _=e(42706);function p(t,n,e,u,h,c){const l=[[s.R,1,a.Tt],[s.R,5,5*a.Tt],[s.R,15,15*a.Tt],[s.R,30,30*a.Tt],[c,1,a.rR],[c,5,5*a.rR],[c,15,15*a.rR],[c,30,30*a.rR],[h,1,a.JJ],[h,3,3*a.JJ],[h,6,6*a.JJ],[h,12,12*a.JJ],[u,1,a.Nm],[u,2,2*a.Nm],[e,1,a.Fq],[n,1,a.Pv],[n,3,3*a.Pv],[t,1,a.MP]];function f(t,n,e){const i=nt)).right(l,u);if(h===l.length)return t.every((0,r.sG)(n/a.MP,e/a.MP,s));if(h===0)return o.y.every(Math.max((0,r.sG)(n,e,s),1));const[c,f]=l[u/l[h-1][2]{e.d(n,{AB:()=>s,Gu:()=>h,Hl:()=>m,Mo:()=>c,PG:()=>u,TU:()=>l,YP:()=>o,pT:()=>T,rG:()=>f,rt:()=>A});var i=e(12834);var r=e(29551);function a(t){return(0,i.f)((n=>{n.setDate(n.getDate()-(n.getDay()+7-t)%7);n.setHours(0,0,0,0)}),((t,n)=>{t.setDate(t.getDate()+n*7)}),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*r.rR)/r.Fq))}const o=a(0);const s=a(1);const u=a(2);const h=a(3);const c=a(4);const l=a(5);const f=a(6);const _=o.range;const p=s.range;const y=u.range;const d=h.range;const g=c.range;const v=l.range;const x=f.range;function w(t){return(0,i.f)((n=>{n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7);n.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)}),((t,n)=>(n-t)/r.Fq))}const m=w(0);const A=w(1);const b=w(2);const M=w(3);const T=w(4);const k=w(5);const N=w(6);const C=m.range;const $=A.range;const U=b.range;const F=M.range;const D=T.range;const S=k.range;const P=N.range},42706:(t,n,e)=>{e.d(n,{Mb:()=>o,he:()=>r});var i=e(12834);const r=(0,i.f)((t=>{t.setMonth(0,1);t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n)}),((t,n)=>n.getFullYear()-t.getFullYear()),(t=>t.getFullYear()));r.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:(0,i.f)((n=>{n.setFullYear(Math.floor(n.getFullYear()/t)*t);n.setMonth(0,1);n.setHours(0,0,0,0)}),((n,e)=>{n.setFullYear(n.getFullYear()+e*t)}));const a=r.range;const o=(0,i.f)((t=>{t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n)}),((t,n)=>n.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));o.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:(0,i.f)((n=>{n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t);n.setUTCMonth(0,1);n.setUTCHours(0,0,0,0)}),((n,e)=>{n.setUTCFullYear(n.getUTCFullYear()+e*t)}));const s=o.range},14036:(t,n,e)=>{e.d(n,{M4:()=>d,O1:()=>g,tB:()=>p});var i=0,r=0,a=0,o=1e3,s,u,h=0,c=0,l=0,f=typeof performance==="object"&&performance.now?performance:Date,_=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function p(){return c||(_(y),c=f.now()+l)}function y(){c=0}function d(){this._call=this._time=this._next=null}d.prototype=g.prototype={constructor:d,restart:function(t,n,e){if(typeof t!=="function")throw new TypeError("callback is not a function");e=(e==null?p():+e)+(n==null?0:+n);if(!this._next&&u!==this){if(u)u._next=this;else s=this;u=this}this._call=t;this._time=e;A()},stop:function(){if(this._call){this._call=null;this._time=Infinity;A()}}};function g(t,n,e){var i=new d;i.restart(t,n,e);return i}function v(){p();++i;var t=s,n;while(t){if((n=c-t._time)>=0)t._call.call(undefined,n);t=t._next}--i}function x(){c=(h=f.now())+l;i=r=0;try{v()}finally{i=0;m();c=0}}function w(){var t=f.now(),n=t-h;if(n>o)l-=n,h=t}function m(){var t,n=s,e,i=Infinity;while(n){if(n._call){if(i>n._time)i=n._time;t=n,n=n._next}else{e=n._next,n._next=null;n=t?t._next=e:s=e}}u=t;A(i)}function A(t){if(i)return;if(r)r=clearTimeout(r);var n=t-c;if(n>24){if(t{e.d(n,{B:()=>i,v:()=>r});class i extends Map{constructor(t,n=u){super();Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}});if(t!=null)for(const[e,i]of t)this.set(e,i)}get(t){return super.get(a(this,t))}has(t){return super.has(a(this,t))}set(t,n){return super.set(o(this,t),n)}delete(t){return super.delete(s(this,t))}}class r extends Set{constructor(t,n=u){super();Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}});if(t!=null)for(const e of t)this.add(e)}has(t){return super.has(a(this,t))}add(t){return super.add(o(this,t))}delete(t){return super.delete(s(this,t))}}function a({_intern:t,_key:n},e){const i=n(e);return t.has(i)?t.get(i):e}function o({_intern:t,_key:n},e){const i=n(e);if(t.has(i))return t.get(i);t.set(i,e);return e}function s({_intern:t,_key:n},e){const i=n(e);if(t.has(i)){e=t.get(e);t.delete(i)}return e}function u(t){return t!==null&&typeof t==="object"?t.valueOf():t}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/7990.01eaa552261b6e12a74a.js b/share/jupyter/lab/static/7990.01eaa552261b6e12a74a.js new file mode 100644 index 0000000..01f50de --- /dev/null +++ b/share/jupyter/lab/static/7990.01eaa552261b6e12a74a.js @@ -0,0 +1,2 @@ +/*! For license information please see 7990.01eaa552261b6e12a74a.js.LICENSE.txt */ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7990,5606,6372,3991],{75086:e=>{"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{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/share/jupyter/lab/static/8217.801fbb0b549a74238760.js b/share/jupyter/lab/static/8217.801fbb0b549a74238760.js new file mode 100644 index 0000000..2c9c66a --- /dev/null +++ b/share/jupyter/lab/static/8217.801fbb0b549a74238760.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8217],{58217:(E,T,I)=>{I.r(T);I.d(T,{cobol:()=>i});var N="builtin",R="comment",A="string",O="atom",C="number",L="keyword",D="header",S="def",U="link";function P(E){var T={},I=E.split(" ");for(var N=0;N >= ");var n={digit:/\d/,digit_or_colon:/[\d:]/,hex:/[0-9a-f]/i,sign:/[+-]/,exponent:/e/i,keyword_char:/[^\s\(\[\;\)\]]/,symbol:/[\w*+\-]/};function G(E,T){if(E==="0"&&T.eat(/x/i)){T.eatWhile(n.hex);return true}if((E=="+"||E=="-")&&n.digit.test(T.peek())){T.eat(n.sign);E=T.next()}if(n.digit.test(E)){T.eat(E);T.eatWhile(n.digit);if("."==T.peek()){T.eat(".");T.eatWhile(n.digit)}if(T.eat(n.exponent)){T.eat(n.sign);T.eatWhile(n.digit)}return true}return false}const i={name:"cobol",startState:function(){return{indentStack:null,indentation:0,mode:false}},token:function(E,T){if(T.indentStack==null&&E.sol()){T.indentation=6}if(E.eatSpace()){return null}var I=null;switch(T.mode){case"string":var P=false;while((P=E.next())!=null){if((P=='"'||P=="'")&&!E.match(/['"]/,false)){T.mode=false;break}}I=A;break;default:var i=E.next();var r=E.column();if(r>=0&&r<=5){I=S}else if(r>=72&&r<=79){E.skipToEnd();I=D}else if(i=="*"&&r==6){E.skipToEnd();I=R}else if(i=='"'||i=="'"){T.mode="string";I=A}else if(i=="'"&&!n.digit_or_colon.test(E.peek())){I=O}else if(i=="."){I=U}else if(G(i,E)){I=C}else{if(E.current().match(n.symbol)){while(r<71){if(E.eat(n.symbol)===undefined){break}else{r++}}}if(M&&M.propertyIsEnumerable(E.current().toUpperCase())){I=L}else if(t&&t.propertyIsEnumerable(E.current().toUpperCase())){I=N}else if(e&&e.propertyIsEnumerable(E.current().toUpperCase())){I=O}else I=null}}return I},indent:function(E){if(E.indentStack==null)return E.indentation;return E.indentStack.indent}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/8232.e31d5021e77a9b5215d6.js b/share/jupyter/lab/static/8232.e31d5021e77a9b5215d6.js new file mode 100644 index 0000000..dbd038d --- /dev/null +++ b/share/jupyter/lab/static/8232.e31d5021e77a9b5215d6.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8232],{38232:(e,t,r)=>{r.r(t);r.d(t,{pascal:()=>p});function n(e){var t={},r=e.split(" ");for(var n=0;n!?|\/]/;function l(e,t){var r=e.next();if(r=="#"&&t.startOfLine){e.skipToEnd();return"meta"}if(r=='"'||r=="'"){t.tokenize=u(r);return t.tokenize(e,t)}if(r=="("&&e.eat("*")){t.tokenize=s;return s(e,t)}if(r=="{"){t.tokenize=c;return c(e,t)}if(/[\[\]\(\),;\:\.]/.test(r)){return null}if(/\d/.test(r)){e.eatWhile(/[\w\.]/);return"number"}if(r=="/"){if(e.eat("/")){e.skipToEnd();return"comment"}}if(o.test(r)){e.eatWhile(o);return"operator"}e.eatWhile(/[\w\$_]/);var n=e.current().toLowerCase();if(a.propertyIsEnumerable(n))return"keyword";if(i.propertyIsEnumerable(n))return"atom";return"variable"}function u(e){return function(t,r){var n=false,a,i=false;while((a=t.next())!=null){if(a==e&&!n){i=true;break}n=!n&&a=="\\"}if(i||!n)r.tokenize=null;return"string"}}function s(e,t){var r=false,n;while(n=e.next()){if(n==")"&&r){t.tokenize=null;break}r=n=="*"}return"comment"}function c(e,t){var r;while(r=e.next()){if(r=="}"){t.tokenize=null;break}}return"comment"}const p={name:"pascal",startState:function(){return{tokenize:null}},token:function(e,t){if(e.eatSpace())return null;var r=(t.tokenize||l)(e,t);if(r=="comment"||r=="meta")return r;return r},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{block:{open:"(*",close:"*)"}}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/8259.b1badd8d5b0a2951a74d.js b/share/jupyter/lab/static/8259.b1badd8d5b0a2951a74d.js new file mode 100644 index 0000000..1cf287a --- /dev/null +++ b/share/jupyter/lab/static/8259.b1badd8d5b0a2951a74d.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8259],{46884:(e,t,s)=>{s.d(t,{A:()=>n});var i=s(70416);var r=s(1218);var n=(0,i.K2)(((e,t)=>{let s;if(t==="sandbox"){s=(0,r.Ltv)("#i"+e)}const i=t==="sandbox"?(0,r.Ltv)(s.nodes()[0].contentDocument.body):(0,r.Ltv)("body");const n=i.select(`[id="${e}"]`);return n}),"getDiagramElement")},47925:(e,t,s)=>{s.d(t,{P:()=>n});var i=s(42418);var r=s(70416);var n=(0,r.K2)(((e,t,s,n)=>{e.attr("class",s);const{width:c,height:o,x:h,y:u}=a(e,t);(0,i.a$)(e,o,c,n);const y=l(h,u,c,o,t);e.attr("viewBox",y);r.Rm.debug(`viewBox configured: ${y} with padding: ${t}`)}),"setupViewPortForSVG");var a=(0,r.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,r.K2)(((e,t,s,i,r)=>`${e-r} ${t-r} ${s} ${i}`),"createViewBox")},78259:(e,t,s)=>{s.d(t,{diagram:()=>g});var i=s(46884);var r=s(47925);var n=s(78188);var a=s(25301);var l=s(46103);var c=s(47655);var o=s(15164);var h=s(55750);var u=s(95035);var y=s(29131);var f=s(42418);var m=s(70416);var d=function(){var e=(0,m.K2)((function(e,t,s,i){for(s=s||{},i=e.length;i--;s[e[i]]=t);return s}),"o"),t=[1,3],s=[1,4],i=[1,5],r=[1,6],n=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],a=[1,22],l=[2,7],c=[1,26],o=[1,27],h=[1,28],u=[1,29],y=[1,33],f=[1,34],d=[1,35],p=[1,36],E=[1,37],b=[1,38],R=[1,24],k=[1,31],_=[1,32],g=[1,30],S=[1,39],I=[1,40],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],N=[1,61],v=[89,90],q=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],A=[27,29],C=[1,70],w=[1,71],x=[1,72],L=[1,73],D=[1,74],O=[1,75],$=[1,76],M=[1,83],F=[1,80],K=[1,84],P=[1,85],V=[1,86],U=[1,87],Y=[1,88],B=[1,89],Q=[1,90],H=[1,91],j=[1,92],W=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],G=[63,64],z=[1,101],X=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],J=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Z=[1,110],ee=[1,106],te=[1,107],se=[1,108],ie=[1,109],re=[1,111],ne=[1,116],ae=[1,117],le=[1,114],ce=[1,115];var oe={trace:(0,m.K2)((function e(){}),"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:(0,m.K2)((function e(t,s,i,r,n,a,l){var c=a.length-1;switch(n){case 4:this.$=a[c].trim();r.setAccTitle(this.$);break;case 5:case 6:this.$=a[c].trim();r.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:r.setDirection("TB");break;case 18:r.setDirection("BT");break;case 19:r.setDirection("RL");break;case 20:r.setDirection("LR");break;case 21:r.addRequirement(a[c-3],a[c-4]);break;case 22:r.addRequirement(a[c-5],a[c-6]);r.setClass([a[c-5]],a[c-3]);break;case 23:r.setNewReqId(a[c-2]);break;case 24:r.setNewReqText(a[c-2]);break;case 25:r.setNewReqRisk(a[c-2]);break;case 26:r.setNewReqVerifyMethod(a[c-2]);break;case 29:this.$=r.RequirementType.REQUIREMENT;break;case 30:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=r.RiskLevel.LOW_RISK;break;case 36:this.$=r.RiskLevel.MED_RISK;break;case 37:this.$=r.RiskLevel.HIGH_RISK;break;case 38:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=r.VerifyType.VERIFY_TEST;break;case 42:r.addElement(a[c-3]);break;case 43:r.addElement(a[c-5]);r.setClass([a[c-5]],a[c-3]);break;case 44:r.setNewElementType(a[c-2]);break;case 45:r.setNewElementDocRef(a[c-2]);break;case 48:r.addRelationship(a[c-2],a[c],a[c-4]);break;case 49:r.addRelationship(a[c-2],a[c-4],a[c]);break;case 50:this.$=r.Relationships.CONTAINS;break;case 51:this.$=r.Relationships.COPIES;break;case 52:this.$=r.Relationships.DERIVES;break;case 53:this.$=r.Relationships.SATISFIES;break;case 54:this.$=r.Relationships.VERIFIES;break;case 55:this.$=r.Relationships.REFINES;break;case 56:this.$=r.Relationships.TRACES;break;case 57:this.$=a[c-2];r.defineClass(a[c-1],a[c]);break;case 58:r.setClass(a[c-1],a[c]);break;case 59:r.setClass([a[c-2]],a[c]);break;case 60:case 62:this.$=[a[c]];break;case 61:case 63:this.$=a[c-2].concat([a[c]]);break;case 64:this.$=a[c-2];r.setCssStyle(a[c-1],a[c]);break;case 65:this.$=[a[c]];break;case 66:a[c-2].push(a[c]);this.$=a[c-2];break;case 68:this.$=a[c-1]+a[c];break}}),"anonymous"),table:[{3:1,4:2,6:t,9:s,11:i,13:r},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:s,11:i,13:r},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(n,[2,6]),{3:12,4:2,6:t,9:s,11:i,13:r},{1:[2,2]},{4:17,5:a,7:13,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:o,23:h,24:u,25:23,33:25,41:y,42:f,43:d,44:p,45:E,46:b,54:R,72:k,74:_,77:g,89:S,90:I},e(n,[2,4]),e(n,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:a,7:42,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:o,23:h,24:u,25:23,33:25,41:y,42:f,43:d,44:p,45:E,46:b,54:R,72:k,74:_,77:g,89:S,90:I},{4:17,5:a,7:43,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:o,23:h,24:u,25:23,33:25,41:y,42:f,43:d,44:p,45:E,46:b,54:R,72:k,74:_,77:g,89:S,90:I},{4:17,5:a,7:44,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:o,23:h,24:u,25:23,33:25,41:y,42:f,43:d,44:p,45:E,46:b,54:R,72:k,74:_,77:g,89:S,90:I},{4:17,5:a,7:45,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:o,23:h,24:u,25:23,33:25,41:y,42:f,43:d,44:p,45:E,46:b,54:R,72:k,74:_,77:g,89:S,90:I},{4:17,5:a,7:46,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:o,23:h,24:u,25:23,33:25,41:y,42:f,43:d,44:p,45:E,46:b,54:R,72:k,74:_,77:g,89:S,90:I},{4:17,5:a,7:47,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:o,23:h,24:u,25:23,33:25,41:y,42:f,43:d,44:p,45:E,46:b,54:R,72:k,74:_,77:g,89:S,90:I},{4:17,5:a,7:48,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:o,23:h,24:u,25:23,33:25,41:y,42:f,43:d,44:p,45:E,46:b,54:R,72:k,74:_,77:g,89:S,90:I},{4:17,5:a,7:49,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:o,23:h,24:u,25:23,33:25,41:y,42:f,43:d,44:p,45:E,46:b,54:R,72:k,74:_,77:g,89:S,90:I},{4:17,5:a,7:50,8:l,9:s,11:i,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:c,22:o,23:h,24:u,25:23,33:25,41:y,42:f,43:d,44:p,45:E,46:b,54:R,72:k,74:_,77:g,89:S,90:I},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(T,[2,17]),e(T,[2,18]),e(T,[2,19]),e(T,[2,20]),{30:60,33:62,75:N,89:S,90:I},{30:63,33:62,75:N,89:S,90:I},{30:64,33:62,75:N,89:S,90:I},e(v,[2,29]),e(v,[2,30]),e(v,[2,31]),e(v,[2,32]),e(v,[2,33]),e(v,[2,34]),e(q,[2,81]),e(q,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(A,[2,79]),e(A,[2,80]),{27:[1,67],29:[1,68]},e(A,[2,85]),e(A,[2,86]),{62:69,65:C,66:w,67:x,68:L,69:D,70:O,71:$},{62:77,65:C,66:w,67:x,68:L,69:D,70:O,71:$},{30:78,33:62,75:N,89:S,90:I},{73:79,75:M,76:F,78:81,79:82,80:K,81:P,82:V,83:U,84:Y,85:B,86:Q,87:H,88:j},e(W,[2,60]),e(W,[2,62]),{73:93,75:M,76:F,78:81,79:82,80:K,81:P,82:V,83:U,84:Y,85:B,86:Q,87:H,88:j},{30:94,33:62,75:N,76:F,89:S,90:I},{5:[1,95]},{30:96,33:62,75:N,89:S,90:I},{5:[1,97]},{30:98,33:62,75:N,89:S,90:I},{63:[1,99]},e(G,[2,50]),e(G,[2,51]),e(G,[2,52]),e(G,[2,53]),e(G,[2,54]),e(G,[2,55]),e(G,[2,56]),{64:[1,100]},e(T,[2,59],{76:F}),e(T,[2,64],{76:z}),{33:103,75:[1,102],89:S,90:I},e(X,[2,65],{79:104,75:M,80:K,81:P,82:V,83:U,84:Y,85:B,86:Q,87:H,88:j}),e(J,[2,67]),e(J,[2,69]),e(J,[2,70]),e(J,[2,71]),e(J,[2,72]),e(J,[2,73]),e(J,[2,74]),e(J,[2,75]),e(J,[2,76]),e(J,[2,77]),e(J,[2,78]),e(T,[2,57],{76:z}),e(T,[2,58],{76:F}),{5:Z,28:105,31:ee,34:te,36:se,38:ie,40:re},{27:[1,112],76:F},{5:ne,40:ae,56:113,57:le,59:ce},{27:[1,118],76:F},{33:119,89:S,90:I},{33:120,89:S,90:I},{75:M,78:121,79:82,80:K,81:P,82:V,83:U,84:Y,85:B,86:Q,87:H,88:j},e(W,[2,61]),e(W,[2,63]),e(J,[2,68]),e(T,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:Z,28:126,31:ee,34:te,36:se,38:ie,40:re},e(T,[2,28]),{5:[1,127]},e(T,[2,42]),{32:[1,128]},{32:[1,129]},{5:ne,40:ae,56:130,57:le,59:ce},e(T,[2,47]),{5:[1,131]},e(T,[2,48]),e(T,[2,49]),e(X,[2,66],{79:104,75:M,80:K,81:P,82:V,83:U,84:Y,85:B,86:Q,87:H,88:j}),{33:132,89:S,90:I},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(T,[2,27]),{5:Z,28:145,31:ee,34:te,36:se,38:ie,40:re},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(T,[2,46]),{5:ne,40:ae,56:152,57:le,59:ce},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(T,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(T,[2,43]),{5:Z,28:159,31:ee,34:te,36:se,38:ie,40:re},{5:Z,28:160,31:ee,34:te,36:se,38:ie,40:re},{5:Z,28:161,31:ee,34:te,36:se,38:ie,40:re},{5:Z,28:162,31:ee,34:te,36:se,38:ie,40:re},{5:ne,40:ae,56:163,57:le,59:ce},{5:ne,40:ae,56:164,57:le,59:ce},e(T,[2,23]),e(T,[2,24]),e(T,[2,25]),e(T,[2,26]),e(T,[2,44]),e(T,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:(0,m.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,m.K2)((function e(t){var s=this,i=[0],r=[],n=[null],a=[],l=this.table,c="",o=0,h=0,u=0,y=2,f=1;var d=a.slice.call(arguments,1);var p=Object.create(this.lexer);var E={yy:{}};for(var b in this.yy){if(Object.prototype.hasOwnProperty.call(this.yy,b)){E.yy[b]=this.yy[b]}}p.setInput(t,E.yy);E.yy.lexer=p;E.yy.parser=this;if(typeof p.yylloc=="undefined"){p.yylloc={}}var R=p.yylloc;a.push(R);var k=p.options&&p.options.ranges;if(typeof E.yy.parseError==="function"){this.parseError=E.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function _(e){i.length=i.length-2*e;n.length=n.length-e;a.length=a.length-e}(0,m.K2)(_,"popStack");function g(){var e;e=r.pop()||p.lex()||f;if(typeof e!=="number"){if(e instanceof Array){r=e;e=r.pop()}e=s.symbols_[e]||e}return e}(0,m.K2)(g,"lex");var S,I,T,N,v,q,A={},C,w,x,L;while(true){T=i[i.length-1];if(this.defaultActions[T]){N=this.defaultActions[T]}else{if(S===null||typeof S=="undefined"){S=g()}N=l[T]&&l[T][S]}if(typeof N==="undefined"||!N.length||!N[0]){var D="";L=[];for(C in l[T]){if(this.terminals_[C]&&C>y){L.push("'"+this.terminals_[C]+"'")}}if(p.showPosition){D="Parse error on line "+(o+1)+":\n"+p.showPosition()+"\nExpecting "+L.join(", ")+", got '"+(this.terminals_[S]||S)+"'"}else{D="Parse error on line "+(o+1)+": Unexpected "+(S==f?"end of input":"'"+(this.terminals_[S]||S)+"'")}this.parseError(D,{text:p.match,token:this.terminals_[S]||S,line:p.yylineno,loc:R,expected:L})}if(N[0]instanceof Array&&N.length>1){throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+S)}switch(N[0]){case 1:i.push(S);n.push(p.yytext);a.push(p.yylloc);i.push(N[1]);S=null;if(!I){h=p.yyleng;c=p.yytext;o=p.yylineno;R=p.yylloc;if(u>0){u--}}else{S=I;I=null}break;case 2:w=this.productions_[N[1]][1];A.$=n[n.length-w];A._$={first_line:a[a.length-(w||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(w||1)].first_column,last_column:a[a.length-1].last_column};if(k){A._$.range=[a[a.length-(w||1)].range[0],a[a.length-1].range[1]]}q=this.performAction.apply(A,[c,h,o,E.yy,N[1],n,a].concat(d));if(typeof q!=="undefined"){return q}if(w){i=i.slice(0,-1*w*2);n=n.slice(0,-1*w);a=a.slice(0,-1*w)}i.push(this.productions_[N[1]][0]);n.push(A.$);a.push(A._$);x=l[i[i.length-2]][i[i.length-1]];i.push(x);break;case 3:return true}}return true}),"parse")};var he=function(){var e={EOF:1,parseError:(0,m.K2)((function e(t,s){if(this.yy.parser){this.yy.parser.parseError(t,s)}else{throw new Error(t)}}),"parseError"),setInput:(0,m.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,m.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,m.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 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: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=[r[0],r[0]+this.yyleng-t]}this.yyleng=this.yytext.length;return this}),"unput"),more:(0,m.K2)((function(){this._more=true;return this}),"more"),reject:(0,m.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,m.K2)((function(e){this.unput(this.match.slice(e))}),"less"),pastInput:(0,m.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,m.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,m.K2)((function(){var e=this.pastInput();var t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"}),"showPosition"),test_match:(0,m.K2)((function(e,t){var s,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=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 n in r){this[n]=r[n]}return false}return false}),"test_match"),next:(0,m.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 r=this._currentRules();for(var n=0;nt[0].length)){t=s;i=n;if(this.options.backtrack_lexer){e=this.test_match(s,r[n]);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,r[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,m.K2)((function e(){var t=this.next();if(t){return t}else{return this.lex()}}),"lex"),begin:(0,m.K2)((function e(t){this.conditionStack.push(t)}),"begin"),popState:(0,m.K2)((function e(){var t=this.conditionStack.length-1;if(t>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}}),"popState"),_currentRules:(0,m.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,m.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,m.K2)((function e(t){this.begin(t)}),"pushState"),stateStackSize:(0,m.K2)((function e(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":true},performAction:(0,m.K2)((function e(t,s,i,r){var n=r;switch(i){case 0:return"title";break;case 1:this.begin("acc_title");return 9;break;case 2:this.popState();return"acc_title_value";break;case 3:this.begin("acc_descr");return 11;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:return 21;break;case 9:return 22;break;case 10:return 23;break;case 11:return 24;break;case 12:return 5;break;case 13:break;case 14:break;case 15:break;case 16:return 8;break;case 17:return 6;break;case 18:return 27;break;case 19:return 40;break;case 20:return 29;break;case 21:return 32;break;case 22:return 31;break;case 23:return 34;break;case 24:return 36;break;case 25:return 38;break;case 26:return 41;break;case 27:return 42;break;case 28:return 43;break;case 29:return 44;break;case 30:return 45;break;case 31:return 46;break;case 32:return 47;break;case 33:return 48;break;case 34:return 49;break;case 35:return 50;break;case 36:return 51;break;case 37:return 52;break;case 38:return 53;break;case 39:return 54;break;case 40:return 65;break;case 41:return 66;break;case 42:return 67;break;case 43:return 68;break;case 44:return 69;break;case 45:return 70;break;case 46:return 71;break;case 47:return 57;break;case 48:return 59;break;case 49:this.begin("style");return 77;break;case 50:return 75;break;case 51:return 81;break;case 52:return 88;break;case 53:return"PERCENT";break;case 54:return 86;break;case 55:return 84;break;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:this.begin("style");return 72;break;case 60:this.begin("style");return 74;break;case 61:return 61;break;case 62:return 64;break;case 63:return 63;break;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";break;case 67:s.yytext=s.yytext.trim();return 89;break;case 68:return 75;break;case 69:return 80;break;case 70:return 76;break}}),"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?: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,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:false},acc_descr:{rules:[4,68,69,70],inclusive:false},acc_title:{rules:[2,68,69,70],inclusive:false},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:false},unqString:{rules:[68,69,70],inclusive:false},token:{rules:[68,69,70],inclusive:false},string:{rules:[65,66,68,69,70],inclusive:false},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:true}}};return e}();oe.lexer=he;function ue(){this.yy={}}(0,m.K2)(ue,"Parser");ue.prototype=oe;oe.Parser=ue;return new ue}();d.parser=d;var p=d;var E=class{constructor(){this.relations=[];this.latestRequirement=this.getInitialRequirement();this.requirements=new Map;this.latestElement=this.getInitialElement();this.elements=new Map;this.classes=new Map;this.direction="TB";this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"};this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"};this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"};this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"};this.setAccTitle=f.SV;this.getAccTitle=f.iN;this.setAccDescription=f.EI;this.getAccDescription=f.m7;this.setDiagramTitle=f.ke;this.getDiagramTitle=f.ab;this.getConfig=(0,m.K2)((()=>(0,f.D7)().requirement),"getConfig");this.clear();this.setDirection=this.setDirection.bind(this);this.addRequirement=this.addRequirement.bind(this);this.setNewReqId=this.setNewReqId.bind(this);this.setNewReqRisk=this.setNewReqRisk.bind(this);this.setNewReqText=this.setNewReqText.bind(this);this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this);this.addElement=this.addElement.bind(this);this.setNewElementType=this.setNewElementType.bind(this);this.setNewElementDocRef=this.setNewElementDocRef.bind(this);this.addRelationship=this.addRelationship.bind(this);this.setCssStyle=this.setCssStyle.bind(this);this.setClass=this.setClass.bind(this);this.defineClass=this.defineClass.bind(this);this.setAccTitle=this.setAccTitle.bind(this);this.setAccDescription=this.setAccDescription.bind(this)}static{(0,m.K2)(this,"RequirementDB")}getDirection(){return this.direction}setDirection(e){this.direction=e}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(e,t){if(!this.requirements.has(e)){this.requirements.set(e,{name:e,type:t,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]})}this.resetLatestRequirement();return this.requirements.get(e)}getRequirements(){return this.requirements}setNewReqId(e){if(this.latestRequirement!==void 0){this.latestRequirement.requirementId=e}}setNewReqText(e){if(this.latestRequirement!==void 0){this.latestRequirement.text=e}}setNewReqRisk(e){if(this.latestRequirement!==void 0){this.latestRequirement.risk=e}}setNewReqVerifyMethod(e){if(this.latestRequirement!==void 0){this.latestRequirement.verifyMethod=e}}addElement(e){if(!this.elements.has(e)){this.elements.set(e,{name:e,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]});m.Rm.info("Added new element: ",e)}this.resetLatestElement();return this.elements.get(e)}getElements(){return this.elements}setNewElementType(e){if(this.latestElement!==void 0){this.latestElement.type=e}}setNewElementDocRef(e){if(this.latestElement!==void 0){this.latestElement.docRef=e}}addRelationship(e,t,s){this.relations.push({type:e,src:t,dst:s})}getRelationships(){return this.relations}clear(){this.relations=[];this.resetLatestRequirement();this.requirements=new Map;this.resetLatestElement();this.elements=new Map;this.classes=new Map;(0,f.IU)()}setCssStyle(e,t){for(const s of e){const e=this.requirements.get(s)??this.elements.get(s);if(!t||!e){return}for(const s of t){if(s.includes(",")){e.cssStyles.push(...s.split(","))}else{e.cssStyles.push(s)}}}}setClass(e,t){for(const s of e){const e=this.requirements.get(s)??this.elements.get(s);if(e){for(const s of t){e.classes.push(s);const t=this.classes.get(s)?.styles;if(t){e.cssStyles.push(...t)}}}}}defineClass(e,t){for(const s of e){let e=this.classes.get(s);if(e===void 0){e={id:s,styles:[],textStyles:[]};this.classes.set(s,e)}if(t){t.forEach((function(t){if(/color/.exec(t)){const s=t.replace("fill","bgFill");e.textStyles.push(s)}e.styles.push(t)}))}this.requirements.forEach((e=>{if(e.classes.includes(s)){e.cssStyles.push(...t.flatMap((e=>e.split(","))))}}));this.elements.forEach((e=>{if(e.classes.includes(s)){e.cssStyles.push(...t.flatMap((e=>e.split(","))))}}))}}getClasses(){return this.classes}getData(){const e=(0,f.D7)();const t=[];const s=[];for(const i of this.requirements.values()){const s=i;s.id=i.name;s.cssStyles=i.cssStyles;s.cssClasses=i.classes.join(" ");s.shape="requirementBox";s.look=e.look;t.push(s)}for(const i of this.elements.values()){const s=i;s.shape="requirementBox";s.look=e.look;s.id=i.name;s.cssStyles=i.cssStyles;s.cssClasses=i.classes.join(" ");t.push(s)}for(const i of this.relations){let t=0;const r=i.type===this.Relationships.CONTAINS;const n={id:`${i.src}-${i.dst}-${t}`,start:this.requirements.get(i.src)?.name??this.elements.get(i.src)?.name,end:this.requirements.get(i.dst)?.name??this.elements.get(i.dst)?.name,label:`<<${i.type}>>`,classes:"relationshipLine",style:["fill:none",r?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:r?"normal":"dashed",arrowTypeStart:r?"requirement_contains":"",arrowTypeEnd:r?"":"requirement_arrow",look:e.look};s.push(n);t++}return{nodes:t,edges:s,other:{},config:e,direction:this.getDirection()}}};var b=(0,m.K2)((e=>`\n\n marker {\n fill: ${e.relationColor};\n stroke: ${e.relationColor};\n }\n\n marker.cross {\n stroke: ${e.lineColor};\n }\n\n svg {\n font-family: ${e.fontFamily};\n font-size: ${e.fontSize};\n }\n\n .reqBox {\n fill: ${e.requirementBackground};\n fill-opacity: 1.0;\n stroke: ${e.requirementBorderColor};\n stroke-width: ${e.requirementBorderSize};\n }\n \n .reqTitle, .reqLabel{\n fill: ${e.requirementTextColor};\n }\n .reqLabelBox {\n fill: ${e.relationLabelBackground};\n fill-opacity: 1.0;\n }\n\n .req-title-line {\n stroke: ${e.requirementBorderColor};\n stroke-width: ${e.requirementBorderSize};\n }\n .relationshipLine {\n stroke: ${e.relationColor};\n stroke-width: 1;\n }\n .relationshipLabel {\n fill: ${e.relationLabelColor};\n }\n .divider {\n stroke: ${e.nodeBorder};\n stroke-width: 1;\n }\n .label {\n font-family: ${e.fontFamily};\n color: ${e.nodeTextColor||e.textColor};\n }\n .label text,span {\n fill: ${e.nodeTextColor||e.textColor};\n color: ${e.nodeTextColor||e.textColor};\n }\n .labelBkg {\n background-color: ${e.edgeLabelBackground};\n }\n\n`),"getStyles");var R=b;var k={};(0,m.VA)(k,{draw:()=>_});var _=(0,m.K2)((async function(e,t,s,a){m.Rm.info("REF0:");m.Rm.info("Drawing requirement diagram (unified)",t);const{securityLevel:l,state:c,layout:o}=(0,f.D7)();const h=a.db.getData();const u=(0,i.A)(t,l);h.type=a.type;h.layoutAlgorithm=(0,n.q7)(o);h.nodeSpacing=c?.nodeSpacing??50;h.rankSpacing=c?.rankSpacing??50;h.markers=["requirement_contains","requirement_arrow"];h.diagramId=t;await(0,n.XX)(h,u);const d=8;y._K.insertTitle(u,"requirementDiagramTitleText",c?.titleTopMargin??25,a.db.getDiagramTitle());(0,r.P)(u,d,"requirementDiagram",c?.useMaxWidth??true)}),"draw");var g={parser:p,get db(){return new E},renderer:k,styles:R}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/8269.45e594f3b7cb4a511040.js b/share/jupyter/lab/static/8269.45e594f3b7cb4a511040.js new file mode 100644 index 0000000..0831a89 --- /dev/null +++ b/share/jupyter/lab/static/8269.45e594f3b7cb4a511040.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8269],{15659:(r,a,e)=>{var n=e(51031);var t={};for(var i in n){if(n.hasOwnProperty(i)){t[n[i]]=i}}var l=r.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 o in l){if(l.hasOwnProperty(o)){if(!("channels"in l[o])){throw new Error("missing channels property: "+o)}if(!("labels"in l[o])){throw new Error("missing channel labels property: "+o)}if(l[o].labels.length!==l[o].channels){throw new Error("channel and label counts mismatch: "+o)}var s=l[o].channels;var h=l[o].labels;delete l[o].channels;delete l[o].labels;Object.defineProperty(l[o],"channels",{value:s});Object.defineProperty(l[o],"labels",{value:h})}}l.rgb.hsl=function(r){var a=r[0]/255;var e=r[1]/255;var n=r[2]/255;var t=Math.min(a,e,n);var i=Math.max(a,e,n);var l=i-t;var o;var s;var h;if(i===t){o=0}else if(a===i){o=(e-n)/l}else if(e===i){o=2+(n-a)/l}else if(n===i){o=4+(a-e)/l}o=Math.min(o*60,360);if(o<0){o+=360}h=(t+i)/2;if(i===t){s=0}else if(h<=.5){s=l/(i+t)}else{s=l/(2-i-t)}return[o,s*100,h*100]};l.rgb.hsv=function(r){var a;var e;var n;var t;var i;var l=r[0]/255;var o=r[1]/255;var s=r[2]/255;var h=Math.max(l,o,s);var u=h-Math.min(l,o,s);var v=function(r){return(h-r)/6/u+1/2};if(u===0){t=i=0}else{i=u/h;a=v(l);e=v(o);n=v(s);if(l===h){t=n-e}else if(o===h){t=1/3+a-n}else if(s===h){t=2/3+e-a}if(t<0){t+=1}else if(t>1){t-=1}}return[t*360,i*100,h*100]};l.rgb.hwb=function(r){var a=r[0];var e=r[1];var n=r[2];var t=l.rgb.hsl(r)[0];var i=1/255*Math.min(a,Math.min(e,n));n=1-1/255*Math.max(a,Math.max(e,n));return[t,i*100,n*100]};l.rgb.cmyk=function(r){var a=r[0]/255;var e=r[1]/255;var n=r[2]/255;var t;var i;var l;var o;o=Math.min(1-a,1-e,1-n);t=(1-a-o)/(1-o)||0;i=(1-e-o)/(1-o)||0;l=(1-n-o)/(1-o)||0;return[t*100,i*100,l*100,o*100]};function u(r,a){return Math.pow(r[0]-a[0],2)+Math.pow(r[1]-a[1],2)+Math.pow(r[2]-a[2],2)}l.rgb.keyword=function(r){var a=t[r];if(a){return a}var e=Infinity;var i;for(var l in n){if(n.hasOwnProperty(l)){var o=n[l];var s=u(r,o);if(s.04045?Math.pow((a+.055)/1.055,2.4):a/12.92;e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var t=a*.4124+e*.3576+n*.1805;var i=a*.2126+e*.7152+n*.0722;var l=a*.0193+e*.1192+n*.9505;return[t*100,i*100,l*100]};l.rgb.lab=function(r){var a=l.rgb.xyz(r);var e=a[0];var n=a[1];var t=a[2];var i;var o;var s;e/=95.047;n/=100;t/=108.883;e=e>.008856?Math.pow(e,1/3):7.787*e+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;i=116*n-16;o=500*(e-n);s=200*(n-t);return[i,o,s]};l.hsl.rgb=function(r){var a=r[0]/360;var e=r[1]/100;var n=r[2]/100;var t;var i;var l;var o;var s;if(e===0){s=n*255;return[s,s,s]}if(n<.5){i=n*(1+e)}else{i=n+e-n*e}t=2*n-i;o=[0,0,0];for(var h=0;h<3;h++){l=a+1/3*-(h-1);if(l<0){l++}if(l>1){l--}if(6*l<1){s=t+(i-t)*6*l}else if(2*l<1){s=i}else if(3*l<2){s=t+(i-t)*(2/3-l)*6}else{s=t}o[h]=s*255}return o};l.hsl.hsv=function(r){var a=r[0];var e=r[1]/100;var n=r[2]/100;var t=e;var i=Math.max(n,.01);var l;var o;n*=2;e*=n<=1?n:2-n;t*=i<=1?i:2-i;o=(n+e)/2;l=n===0?2*t/(i+t):2*e/(n+e);return[a,l*100,o*100]};l.hsv.rgb=function(r){var a=r[0]/60;var e=r[1]/100;var n=r[2]/100;var t=Math.floor(a)%6;var i=a-Math.floor(a);var l=255*n*(1-e);var o=255*n*(1-e*i);var s=255*n*(1-e*(1-i));n*=255;switch(t){case 0:return[n,s,l];case 1:return[o,n,l];case 2:return[l,n,s];case 3:return[l,o,n];case 4:return[s,l,n];case 5:return[n,l,o]}};l.hsv.hsl=function(r){var a=r[0];var e=r[1]/100;var n=r[2]/100;var t=Math.max(n,.01);var i;var l;var o;o=(2-e)*n;i=(2-e)*t;l=e*t;l/=i<=1?i:2-i;l=l||0;o/=2;return[a,l*100,o*100]};l.hwb.rgb=function(r){var a=r[0]/360;var e=r[1]/100;var n=r[2]/100;var t=e+n;var i;var l;var o;var s;if(t>1){e/=t;n/=t}i=Math.floor(6*a);l=1-n;o=6*a-i;if((i&1)!==0){o=1-o}s=e+o*(l-e);var h;var u;var v;switch(i){default:case 6:case 0:h=l;u=s;v=e;break;case 1:h=s;u=l;v=e;break;case 2:h=e;u=l;v=s;break;case 3:h=e;u=s;v=l;break;case 4:h=s;u=e;v=l;break;case 5:h=l;u=e;v=s;break}return[h*255,u*255,v*255]};l.cmyk.rgb=function(r){var a=r[0]/100;var e=r[1]/100;var n=r[2]/100;var t=r[3]/100;var i;var l;var o;i=1-Math.min(1,a*(1-t)+t);l=1-Math.min(1,e*(1-t)+t);o=1-Math.min(1,n*(1-t)+t);return[i*255,l*255,o*255]};l.xyz.rgb=function(r){var a=r[0]/100;var e=r[1]/100;var n=r[2]/100;var t;var i;var l;t=a*3.2406+e*-1.5372+n*-.4986;i=a*-.9689+e*1.8758+n*.0415;l=a*.0557+e*-.204+n*1.057;t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:t*12.92;i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92;l=l>.0031308?1.055*Math.pow(l,1/2.4)-.055:l*12.92;t=Math.min(Math.max(0,t),1);i=Math.min(Math.max(0,i),1);l=Math.min(Math.max(0,l),1);return[t*255,i*255,l*255]};l.xyz.lab=function(r){var a=r[0];var e=r[1];var n=r[2];var t;var i;var l;a/=95.047;e/=100;n/=108.883;a=a>.008856?Math.pow(a,1/3):7.787*a+16/116;e=e>.008856?Math.pow(e,1/3):7.787*e+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;t=116*e-16;i=500*(a-e);l=200*(e-n);return[t,i,l]};l.lab.xyz=function(r){var a=r[0];var e=r[1];var n=r[2];var t;var i;var l;i=(a+16)/116;t=e/500+i;l=i-n/200;var o=Math.pow(i,3);var s=Math.pow(t,3);var h=Math.pow(l,3);i=o>.008856?o:(i-16/116)/7.787;t=s>.008856?s:(t-16/116)/7.787;l=h>.008856?h:(l-16/116)/7.787;t*=95.047;i*=100;l*=108.883;return[t,i,l]};l.lab.lch=function(r){var a=r[0];var e=r[1];var n=r[2];var t;var i;var l;t=Math.atan2(n,e);i=t*360/2/Math.PI;if(i<0){i+=360}l=Math.sqrt(e*e+n*n);return[a,l,i]};l.lch.lab=function(r){var a=r[0];var e=r[1];var n=r[2];var t;var i;var l;l=n/360*2*Math.PI;t=e*Math.cos(l);i=e*Math.sin(l);return[a,t,i]};l.rgb.ansi16=function(r){var a=r[0];var e=r[1];var n=r[2];var t=1 in arguments?arguments[1]:l.rgb.hsv(r)[2];t=Math.round(t/50);if(t===0){return 30}var i=30+(Math.round(n/255)<<2|Math.round(e/255)<<1|Math.round(a/255));if(t===2){i+=60}return i};l.hsv.ansi16=function(r){return l.rgb.ansi16(l.hsv.rgb(r),r[2])};l.rgb.ansi256=function(r){var a=r[0];var e=r[1];var n=r[2];if(a===e&&e===n){if(a<8){return 16}if(a>248){return 231}return Math.round((a-8)/247*24)+232}var t=16+36*Math.round(a/255*5)+6*Math.round(e/255*5)+Math.round(n/255*5);return t};l.ansi16.rgb=function(r){var a=r%10;if(a===0||a===7){if(r>50){a+=3.5}a=a/10.5*255;return[a,a,a]}var e=(~~(r>50)+1)*.5;var n=(a&1)*e*255;var t=(a>>1&1)*e*255;var i=(a>>2&1)*e*255;return[n,t,i]};l.ansi256.rgb=function(r){if(r>=232){var a=(r-232)*10+8;return[a,a,a]}r-=16;var e;var n=Math.floor(r/36)/5*255;var t=Math.floor((e=r%36)/6)/5*255;var i=e%6/5*255;return[n,t,i]};l.rgb.hex=function(r){var a=((Math.round(r[0])&255)<<16)+((Math.round(r[1])&255)<<8)+(Math.round(r[2])&255);var e=a.toString(16).toUpperCase();return"000000".substring(e.length)+e};l.hex.rgb=function(r){var a=r.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!a){return[0,0,0]}var e=a[0];if(a[0].length===3){e=e.split("").map((function(r){return r+r})).join("")}var n=parseInt(e,16);var t=n>>16&255;var i=n>>8&255;var l=n&255;return[t,i,l]};l.rgb.hcg=function(r){var a=r[0]/255;var e=r[1]/255;var n=r[2]/255;var t=Math.max(Math.max(a,e),n);var i=Math.min(Math.min(a,e),n);var l=t-i;var o;var s;if(l<1){o=i/(1-l)}else{o=0}if(l<=0){s=0}else if(t===a){s=(e-n)/l%6}else if(t===e){s=2+(n-a)/l}else{s=4+(a-e)/l+4}s/=6;s%=1;return[s*360,l*100,o*100]};l.hsl.hcg=function(r){var a=r[1]/100;var e=r[2]/100;var n=1;var t=0;if(e<.5){n=2*a*e}else{n=2*a*(1-e)}if(n<1){t=(e-.5*n)/(1-n)}return[r[0],n*100,t*100]};l.hsv.hcg=function(r){var a=r[1]/100;var e=r[2]/100;var n=a*e;var t=0;if(n<1){t=(e-n)/(1-n)}return[r[0],n*100,t*100]};l.hcg.rgb=function(r){var a=r[0]/360;var e=r[1]/100;var n=r[2]/100;if(e===0){return[n*255,n*255,n*255]}var t=[0,0,0];var i=a%1*6;var l=i%1;var o=1-l;var s=0;switch(Math.floor(i)){case 0:t[0]=1;t[1]=l;t[2]=0;break;case 1:t[0]=o;t[1]=1;t[2]=0;break;case 2:t[0]=0;t[1]=1;t[2]=l;break;case 3:t[0]=0;t[1]=o;t[2]=1;break;case 4:t[0]=l;t[1]=0;t[2]=1;break;default:t[0]=1;t[1]=0;t[2]=o}s=(1-e)*n;return[(e*t[0]+s)*255,(e*t[1]+s)*255,(e*t[2]+s)*255]};l.hcg.hsv=function(r){var a=r[1]/100;var e=r[2]/100;var n=a+e*(1-a);var t=0;if(n>0){t=a/n}return[r[0],t*100,n*100]};l.hcg.hsl=function(r){var a=r[1]/100;var e=r[2]/100;var n=e*(1-a)+.5*a;var t=0;if(n>0&&n<.5){t=a/(2*n)}else if(n>=.5&&n<1){t=a/(2*(1-n))}return[r[0],t*100,n*100]};l.hcg.hwb=function(r){var a=r[1]/100;var e=r[2]/100;var n=a+e*(1-a);return[r[0],(n-a)*100,(1-n)*100]};l.hwb.hcg=function(r){var a=r[1]/100;var e=r[2]/100;var n=1-e;var t=n-a;var i=0;if(t<1){i=(n-t)/(1-t)}return[r[0],t*100,i*100]};l.apple.rgb=function(r){return[r[0]/65535*255,r[1]/65535*255,r[2]/65535*255]};l.rgb.apple=function(r){return[r[0]/255*65535,r[1]/255*65535,r[2]/255*65535]};l.gray.rgb=function(r){return[r[0]/100*255,r[0]/100*255,r[0]/100*255]};l.gray.hsl=l.gray.hsv=function(r){return[0,0,r[0]]};l.gray.hwb=function(r){return[0,100,r[0]]};l.gray.cmyk=function(r){return[0,0,0,r[0]]};l.gray.lab=function(r){return[r[0],0,0]};l.gray.hex=function(r){var a=Math.round(r[0]/100*255)&255;var e=(a<<16)+(a<<8)+a;var n=e.toString(16).toUpperCase();return"000000".substring(n.length)+n};l.rgb.gray=function(r){var a=(r[0]+r[1]+r[2])/3;return[a/255*100]}},10734:(r,a,e)=>{var n=e(15659);var t=e(8507);var i={};var l=Object.keys(n);function o(r){var a=function(a){if(a===undefined||a===null){return a}if(arguments.length>1){a=Array.prototype.slice.call(arguments)}return r(a)};if("conversion"in r){a.conversion=r.conversion}return a}function s(r){var a=function(a){if(a===undefined||a===null){return a}if(arguments.length>1){a=Array.prototype.slice.call(arguments)}var e=r(a);if(typeof e==="object"){for(var n=e.length,t=0;t{"use strict";r.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:(r,a,e)=>{var n=e(15659);function t(){var r={};var a=Object.keys(n);for(var e=a.length,t=0;t{"use strict";r.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:(r,a,e)=>{var n=e(8156);var t=e(19872);var i=Object.hasOwnProperty;var l=Object.create(null);for(var o in n){if(i.call(n,o)){l[n[o]]=o}}var s=r.exports={to:{},get:{}};s.get=function(r){var a=r.substring(0,3).toLowerCase();var e;var n;switch(a){case"hsl":e=s.get.hsl(r);n="hsl";break;case"hwb":e=s.get.hwb(r);n="hwb";break;default:e=s.get.rgb(r);n="rgb";break}if(!e){return null}return{model:n,value:e}};s.get.rgb=function(r){if(!r){return null}var a=/^#([a-f0-9]{3,4})$/i;var e=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i;var t=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;var l=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;var o=/^(\w+)$/;var s=[0,0,0,1];var u;var v;var c;if(u=r.match(e)){c=u[2];u=u[1];for(v=0;v<3;v++){var f=v*2;s[v]=parseInt(u.slice(f,f+2),16)}if(c){s[3]=parseInt(c,16)/255}}else if(u=r.match(a)){u=u[1];c=u[3];for(v=0;v<3;v++){s[v]=parseInt(u[v]+u[v],16)}if(c){s[3]=parseInt(c+c,16)/255}}else if(u=r.match(t)){for(v=0;v<3;v++){s[v]=parseInt(u[v+1],0)}if(u[4]){if(u[5]){s[3]=parseFloat(u[4])*.01}else{s[3]=parseFloat(u[4])}}}else if(u=r.match(l)){for(v=0;v<3;v++){s[v]=Math.round(parseFloat(u[v+1])*2.55)}if(u[4]){if(u[5]){s[3]=parseFloat(u[4])*.01}else{s[3]=parseFloat(u[4])}}}else if(u=r.match(o)){if(u[1]==="transparent"){return[0,0,0,0]}if(!i.call(n,u[1])){return null}s=n[u[1]];s[3]=1;return s}else{return null}for(v=0;v<3;v++){s[v]=h(s[v],0,255)}s[3]=h(s[3],0,1);return s};s.get.hsl=function(r){if(!r){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 e=r.match(a);if(e){var n=parseFloat(e[4]);var t=(parseFloat(e[1])%360+360)%360;var i=h(parseFloat(e[2]),0,100);var l=h(parseFloat(e[3]),0,100);var o=h(isNaN(n)?1:n,0,1);return[t,i,l,o]}return null};s.get.hwb=function(r){if(!r){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 e=r.match(a);if(e){var n=parseFloat(e[4]);var t=(parseFloat(e[1])%360+360)%360;var i=h(parseFloat(e[2]),0,100);var l=h(parseFloat(e[3]),0,100);var o=h(isNaN(n)?1:n,0,1);return[t,i,l,o]}return null};s.to.hex=function(){var r=t(arguments);return"#"+u(r[0])+u(r[1])+u(r[2])+(r[3]<1?u(Math.round(r[3]*255)):"")};s.to.rgb=function(){var r=t(arguments);return r.length<4||r[3]===1?"rgb("+Math.round(r[0])+", "+Math.round(r[1])+", "+Math.round(r[2])+")":"rgba("+Math.round(r[0])+", "+Math.round(r[1])+", "+Math.round(r[2])+", "+r[3]+")"};s.to.rgb.percent=function(){var r=t(arguments);var a=Math.round(r[0]/255*100);var e=Math.round(r[1]/255*100);var n=Math.round(r[2]/255*100);return r.length<4||r[3]===1?"rgb("+a+"%, "+e+"%, "+n+"%)":"rgba("+a+"%, "+e+"%, "+n+"%, "+r[3]+")"};s.to.hsl=function(){var r=t(arguments);return r.length<4||r[3]===1?"hsl("+r[0]+", "+r[1]+"%, "+r[2]+"%)":"hsla("+r[0]+", "+r[1]+"%, "+r[2]+"%, "+r[3]+")"};s.to.hwb=function(){var r=t(arguments);var a="";if(r.length>=4&&r[3]!==1){a=", "+r[3]}return"hwb("+r[0]+", "+r[1]+"%, "+r[2]+"%"+a+")"};s.to.keyword=function(r){return l[r.slice(0,3)]};function h(r,a,e){return Math.min(Math.max(a,r),e)}function u(r){var a=Math.round(r).toString(16).toUpperCase();return a.length<2?"0"+a:a}},26195:r=>{r.exports=function r(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")}},88269:(r,a,e)=>{"use strict";var n=e(28854);var t=e(10734);var i=[].slice;var l=["keyword","gray","hex"];var o={};Object.keys(t).forEach((function(r){o[i.call(t[r].labels).sort().join("")]=r}));var s={};function h(r,a){if(!(this instanceof h)){return new h(r,a)}if(a&&a in l){a=null}if(a&&!(a in t)){throw new Error("Unknown model: "+a)}var e;var u;if(r==null){this.model="rgb";this.color=[0,0,0];this.valpha=1}else if(r instanceof h){this.model=r.model;this.color=r.color.slice();this.valpha=r.valpha}else if(typeof r==="string"){var v=n.get(r);if(v===null){throw new Error("Unable to parse color from string: "+r)}this.model=v.model;u=t[this.model].channels;this.color=v.value.slice(0,u);this.valpha=typeof v.value[u]==="number"?v.value[u]:1}else if(r.length){this.model=a||"rgb";u=t[this.model].channels;var c=i.call(r,0,u);this.color=b(c,u);this.valpha=typeof r[u]==="number"?r[u]:1}else if(typeof r==="number"){r&=16777215;this.model="rgb";this.color=[r>>16&255,r>>8&255,r&255];this.valpha=1}else{this.valpha=1;var f=Object.keys(r);if("alpha"in r){f.splice(f.indexOf("alpha"),1);this.valpha=typeof r.alpha==="number"?r.alpha:0}var g=f.sort().join("");if(!(g in o)){throw new Error("Unable to parse color from object: "+JSON.stringify(r))}this.model=o[g];var d=t[this.model].labels;var p=[];for(e=0;ee){return(a+.05)/(e+.05)}return(e+.05)/(a+.05)},level:function(r){var a=this.contrast(r);if(a>=7.1){return"AAA"}return a>=4.5?"AA":""},isDark:function(){var r=this.rgb().color;var a=(r[0]*299+r[1]*587+r[2]*114)/1e3;return a<128},isLight:function(){return!this.isDark()},negate:function(){var r=this.rgb();for(var a=0;a<3;a++){r.color[a]=255-r.color[a]}return r},lighten:function(r){var a=this.hsl();a.color[2]+=a.color[2]*r;return a},darken:function(r){var a=this.hsl();a.color[2]-=a.color[2]*r;return a},saturate:function(r){var a=this.hsl();a.color[1]+=a.color[1]*r;return a},desaturate:function(r){var a=this.hsl();a.color[1]-=a.color[1]*r;return a},whiten:function(r){var a=this.hwb();a.color[1]+=a.color[1]*r;return a},blacken:function(r){var a=this.hwb();a.color[2]+=a.color[2]*r;return a},grayscale:function(){var r=this.rgb().color;var a=r[0]*.3+r[1]*.59+r[2]*.11;return h.rgb(a,a,a)},fade:function(r){return this.alpha(this.valpha-this.valpha*r)},opaquer:function(r){return this.alpha(this.valpha+this.valpha*r)},rotate:function(r){var a=this.hsl();var e=a.color[0];e=(e+r)%360;e=e<0?360+e:e;a.color[0]=e;return a},mix:function(r,a){if(!r||!r.rgb){throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof r)}var e=r.rgb();var n=this.rgb();var t=a===undefined?.5:a;var i=2*t-1;var l=e.alpha()-n.alpha();var o=((i*l===-1?i:(i+l)/(1+i*l))+1)/2;var s=1-o;return h.rgb(o*e.red()+s*n.red(),o*e.green()+s*n.green(),o*e.blue()+s*n.blue(),e.alpha()*t+n.alpha()*(1-t))}};Object.keys(t).forEach((function(r){if(l.indexOf(r)!==-1){return}var a=t[r].channels;h.prototype[r]=function(){if(this.model===r){return new h(this)}if(arguments.length){return new h(arguments,r)}var e=typeof arguments[a]==="number"?a:this.valpha;return new h(g(t[this.model][r].raw(this.color)).concat(e),r)};h[r]=function(e){if(typeof e==="number"){e=b(i.call(arguments),a)}return new h(e,r)}}));function u(r,a){return Number(r.toFixed(a))}function v(r){return function(a){return u(a,r)}}function c(r,a,e){r=Array.isArray(r)?r:[r];r.forEach((function(r){(s[r]||(s[r]=[]))[a]=e}));r=r[0];return function(n){var t;if(arguments.length){if(e){n=e(n)}t=this[r]();t.color[a]=n;return t}t=this[r]().color[a];if(e){t=e(t)}return t}}function f(r){return function(a){return Math.max(0,Math.min(r,a))}}function g(r){return Array.isArray(r)?r:[r]}function b(r,a){for(var e=0;e{"use strict";var n=e(26195);var t=Array.prototype.concat;var i=Array.prototype.slice;var l=r.exports=function r(a){var e=[];for(var l=0,o=a.length;l{a.d(e,{m:()=>s});var r=a(70416);var s=class{constructor(t){this.init=t;this.records=this.init()}static{(0,r.K2)(this,"ImperativeState")}reset(){this.records=this.init()}}},30242:(t,e,a)=>{a.d(e,{CP:()=>d,HT:()=>p,PB:()=>h,aC:()=>l,lC:()=>o,m:()=>c,tk:()=>n});var r=a(42418);var s=a(70416);var i=a(16750);var n=(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 o=(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 r=n(t,a);r.lower()}),"drawBackgroundRect");var c=(0,s.K2)(((t,e)=>{const a=e.text.replace(r.H1," ");const s=t.append("text");s.attr("x",e.x);s.attr("y",e.y);s.attr("class","legend");s.style("text-anchor",e.anchor);if(e.class){s.attr("class",e.class)}const i=s.append("tspan");i.attr("x",e.x+e.textMargin*2);i.text(a);return s}),"drawText");var l=(0,s.K2)(((t,e,a,r)=>{const s=t.append("image");s.attr("x",e);s.attr("y",a);const n=(0,i.J)(r);s.attr("xlink:href",n)}),"drawImage");var d=(0,s.K2)(((t,e,a,r)=>{const s=t.append("use");s.attr("x",e);s.attr("y",a);const n=(0,i.J)(r);s.attr("xlink:href",`#${n}`)}),"drawEmbeddedImage");var h=(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 p=(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")},65929:(t,e,a)=>{a.d(e,{diagram:()=>At});var r=a(30242);var s=a(57028);var i=a(75463);var n=a(29131);var o=a(42418);var c=a(70416);var l=a(1218);var d=a(16750);var h=function(){var t=(0,c.K2)((function(t,e,a,r){for(a=a||{},r=t.length;r--;a[t[r]]=e);return a}),"o"),e=[1,2],a=[1,3],r=[1,4],s=[2,4],i=[1,9],n=[1,11],o=[1,13],l=[1,14],d=[1,16],h=[1,17],p=[1,18],g=[1,24],u=[1,25],x=[1,26],f=[1,27],y=[1,28],b=[1,29],m=[1,30],T=[1,31],E=[1,32],w=[1,33],k=[1,34],v=[1,35],I=[1,36],L=[1,37],_=[1,38],P=[1,39],A=[1,41],N=[1,42],M=[1,43],O=[1,44],D=[1,45],S=[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,55,60,61,62,63,71],$=[2,71],C=[4,5,16,50,52,53],Y=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],B=[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,55,60,61,62,63,71],K=[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,55,60,61,62,63,71],V=[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,55,60,61,62,63,71],F=[69,70,71],W=[1,127];var q={trace:(0,c.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,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$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",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"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],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:(0,c.K2)((function t(e,a,r,s,i,n,o){var c=n.length-1;switch(i){case 3:s.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:s.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:s.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(n[c-1]),sequenceIndexStep:1,sequenceVisible:true,signalType:s.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:false,signalType:s.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:true,signalType:s.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:s.LINETYPE.ACTIVE_START,actor:n[c-1].actor};break;case 23:this.$={type:"activeEnd",signalType:s.LINETYPE.ACTIVE_END,actor:n[c-1].actor};break;case 29:s.setDiagramTitle(n[c].substring(6));this.$=n[c].substring(6);break;case 30:s.setDiagramTitle(n[c].substring(7));this.$=n[c].substring(7);break;case 31:this.$=n[c].trim();s.setAccTitle(this.$);break;case 32:case 33:this.$=n[c].trim();s.setAccDescription(this.$);break;case 34:n[c-1].unshift({type:"loopStart",loopText:s.parseMessage(n[c-2]),signalType:s.LINETYPE.LOOP_START});n[c-1].push({type:"loopEnd",loopText:n[c-2],signalType:s.LINETYPE.LOOP_END});this.$=n[c-1];break;case 35:n[c-1].unshift({type:"rectStart",color:s.parseMessage(n[c-2]),signalType:s.LINETYPE.RECT_START});n[c-1].push({type:"rectEnd",color:s.parseMessage(n[c-2]),signalType:s.LINETYPE.RECT_END});this.$=n[c-1];break;case 36:n[c-1].unshift({type:"optStart",optText:s.parseMessage(n[c-2]),signalType:s.LINETYPE.OPT_START});n[c-1].push({type:"optEnd",optText:s.parseMessage(n[c-2]),signalType:s.LINETYPE.OPT_END});this.$=n[c-1];break;case 37:n[c-1].unshift({type:"altStart",altText:s.parseMessage(n[c-2]),signalType:s.LINETYPE.ALT_START});n[c-1].push({type:"altEnd",signalType:s.LINETYPE.ALT_END});this.$=n[c-1];break;case 38:n[c-1].unshift({type:"parStart",parText:s.parseMessage(n[c-2]),signalType:s.LINETYPE.PAR_START});n[c-1].push({type:"parEnd",signalType:s.LINETYPE.PAR_END});this.$=n[c-1];break;case 39:n[c-1].unshift({type:"parStart",parText:s.parseMessage(n[c-2]),signalType:s.LINETYPE.PAR_OVER_START});n[c-1].push({type:"parEnd",signalType:s.LINETYPE.PAR_END});this.$=n[c-1];break;case 40:n[c-1].unshift({type:"criticalStart",criticalText:s.parseMessage(n[c-2]),signalType:s.LINETYPE.CRITICAL_START});n[c-1].push({type:"criticalEnd",signalType:s.LINETYPE.CRITICAL_END});this.$=n[c-1];break;case 41:n[c-1].unshift({type:"breakStart",breakText:s.parseMessage(n[c-2]),signalType:s.LINETYPE.BREAK_START});n[c-1].push({type:"breakEnd",optText:s.parseMessage(n[c-2]),signalType:s.LINETYPE.BREAK_END});this.$=n[c-1];break;case 43:this.$=n[c-3].concat([{type:"option",optionText:s.parseMessage(n[c-1]),signalType:s.LINETYPE.CRITICAL_OPTION},n[c]]);break;case 45:this.$=n[c-3].concat([{type:"and",parText:s.parseMessage(n[c-1]),signalType:s.LINETYPE.PAR_AND},n[c]]);break;case 47:this.$=n[c-3].concat([{type:"else",altText:s.parseMessage(n[c-1]),signalType:s.LINETYPE.ALT_ELSE},n[c]]);break;case 48:n[c-3].draw="participant";n[c-3].type="addParticipant";n[c-3].description=s.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=s.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:n[c-1].draw="participant";n[c-1].type="addParticipant";this.$=n[c-1];break;case 54:this.$=[n[c-1],{type:"addNote",placement:n[c-2],actor:n[c-1].actor,text:n[c]}];break;case 55: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:s.PLACEMENT.OVER,actor:n[c-2].slice(0,2),text:n[c]}];break;case 56:this.$=[n[c-1],{type:"addLinks",actor:n[c-1].actor,text:n[c]}];break;case 57:this.$=[n[c-1],{type:"addALink",actor:n[c-1].actor,text:n[c]}];break;case 58:this.$=[n[c-1],{type:"addProperties",actor:n[c-1].actor,text:n[c]}];break;case 59:this.$=[n[c-1],{type:"addDetails",actor:n[c-1].actor,text:n[c]}];break;case 62:this.$=[n[c-2],n[c]];break;case 63:this.$=n[c];break;case 64:this.$=s.PLACEMENT.LEFTOF;break;case 65:this.$=s.PLACEMENT.RIGHTOF;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],activate:true},{type:"activeStart",signalType:s.LINETYPE.ACTIVE_START,actor:n[c-1].actor}];break;case 67: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:s.LINETYPE.ACTIVE_END,actor:n[c-4].actor}];break;case 68: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 69:this.$={type:"addParticipant",actor:n[c-1],config:n[c]};break;case 70:this.$=n[c-1].trim();break;case 71:this.$={type:"addParticipant",actor:n[c]};break;case 72:this.$=s.LINETYPE.SOLID_OPEN;break;case 73:this.$=s.LINETYPE.DOTTED_OPEN;break;case 74:this.$=s.LINETYPE.SOLID;break;case 75:this.$=s.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=s.LINETYPE.DOTTED;break;case 77:this.$=s.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=s.LINETYPE.SOLID_CROSS;break;case 79:this.$=s.LINETYPE.DOTTED_CROSS;break;case 80:this.$=s.LINETYPE.SOLID_POINT;break;case 81:this.$=s.LINETYPE.DOTTED_POINT;break;case 82:this.$=s.parseMessage(n[c].trim().substring(1));break}}),"anonymous"),table:[{3:1,4:e,5:a,6:r},{1:[3]},{3:5,4:e,5:a,6:r},{3:6,4:e,5:a,6:r},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,55,60,61,62,63,71],s,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:n,8:8,9:10,12:12,13:o,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:x,33:f,35:y,36:b,37:m,38:T,39:E,41:w,43:k,44:v,46:I,50:L,52:_,53:P,55:A,60:N,61:M,62:O,63:D,71:S},t(R,[2,5]),{9:47,12:12,13:o,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:x,33:f,35:y,36:b,37:m,38:T,39:E,41:w,43:k,44:v,46:I,50:L,52:_,53:P,55:A,60:N,61:M,62:O,63:D,71:S},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,71:S},{22:55,71:S},{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,54:72,71:[1,73]},{22:74,71:S},{22:75,71:S},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:S},{22:92,71:S},{22:93,71:S},{22:94,71:S},t([5,51,65,76,77,78,79,80,81,82,83,84,85,86],$),t(R,[2,6]),t(R,[2,15]),t(C,[2,9],{10:95}),t(R,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},t(R,[2,21]),{5:[1,99]},{5:[1,100]},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(Y,s,{7:101}),t(Y,s,{7:102}),t(Y,s,{7:103}),t(B,s,{40:104,7:105}),t(K,s,{42:106,7:107}),t(K,s,{7:107,42:108}),t(V,s,{45:109,7:110}),t(Y,s,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},t([5,51],$,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:S},t(F,[2,72]),t(F,[2,73]),t(F,[2,74]),t(F,[2,75]),t(F,[2,76]),t(F,[2,77]),t(F,[2,78]),t(F,[2,79]),t(F,[2,80]),t(F,[2,81]),{22:123,71:S},{22:125,59:124,71:S},{71:[2,64]},{71:[2,65]},{57:126,86:W},{57:128,86:W},{57:129,86:W},{57:130,86:W},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:L,52:_,53:P},{5:[1,136]},t(R,[2,19]),t(R,[2,20]),t(R,[2,22]),t(R,[2,23]),{4:i,5:n,8:8,9:10,12:12,13:o,14:l,16:[1,137],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:x,33:f,35:y,36:b,37:m,38:T,39:E,41:w,43:k,44:v,46:I,50:L,52:_,53:P,55:A,60:N,61:M,62:O,63:D,71:S},{4:i,5:n,8:8,9:10,12:12,13:o,14:l,16:[1,138],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:x,33:f,35:y,36:b,37:m,38:T,39:E,41:w,43:k,44:v,46:I,50:L,52:_,53:P,55:A,60:N,61:M,62:O,63:D,71:S},{4:i,5:n,8:8,9:10,12:12,13:o,14:l,16:[1,139],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:x,33:f,35:y,36:b,37:m,38:T,39:E,41:w,43:k,44:v,46:I,50:L,52:_,53:P,55:A,60:N,61:M,62:O,63:D,71:S},{16:[1,140]},{4:i,5:n,8:8,9:10,12:12,13:o,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:x,33:f,35:y,36:b,37:m,38:T,39:E,41:w,43:k,44:v,46:I,49:[1,141],50:L,52:_,53:P,55:A,60:N,61:M,62:O,63:D,71:S},{16:[1,142]},{4:i,5:n,8:8,9:10,12:12,13:o,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:x,33:f,35:y,36:b,37:m,38:T,39:E,41:w,43:k,44:v,46:I,48:[1,143],50:L,52:_,53:P,55:A,60:N,61:M,62:O,63:D,71:S},{16:[1,144]},{16:[1,145]},{4:i,5:n,8:8,9:10,12:12,13:o,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:x,33:f,35:y,36:b,37:m,38:T,39:E,41:w,43:k,44:v,46:I,47:[1,146],50:L,52:_,53:P,55:A,60:N,61:M,62:O,63:D,71:S},{4:i,5:n,8:8,9:10,12:12,13:o,14:l,16:[1,147],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:x,33:f,35:y,36:b,37:m,38:T,39:E,41:w,43:k,44:v,46:I,50:L,52:_,53:P,55:A,60:N,61:M,62:O,63:D,71:S},{15:[1,148]},t(R,[2,49]),t(R,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},t(R,[2,51]),t(R,[2,52]),{22:151,71:S},{22:152,71:S},{57:153,86:W},{57:154,86:W},{57:155,86:W},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},t(R,[2,16]),t(C,[2,10]),{12:157,50:L,52:_,53:P},t(C,[2,12]),t(C,[2,13]),t(R,[2,18]),t(R,[2,34]),t(R,[2,35]),t(R,[2,36]),t(R,[2,37]),{15:[1,158]},t(R,[2,38]),{15:[1,159]},t(R,[2,39]),t(R,[2,40]),{15:[1,160]},t(R,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:W},{57:165,86:W},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:S},t(C,[2,11]),t(B,s,{7:105,40:167}),t(K,s,{7:107,42:168}),t(V,s,{7:110,45:169}),t(R,[2,48]),{5:[2,70]},t(R,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:(0,c.K2)((function t(e,a){if(a.recoverable){this.trace(e)}else{var r=new Error(e);r.hash=a;throw r}}),"parseError"),parse:(0,c.K2)((function t(e){var a=this,r=[0],s=[],i=[null],n=[],o=this.table,l="",d=0,h=0,p=0,g=2,u=1;var x=n.slice.call(arguments,1);var f=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]}}f.setInput(e,y.yy);y.yy.lexer=f;y.yy.parser=this;if(typeof f.yylloc=="undefined"){f.yylloc={}}var m=f.yylloc;n.push(m);var T=f.options&&f.options.ranges;if(typeof y.yy.parseError==="function"){this.parseError=y.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function E(t){r.length=r.length-2*t;i.length=i.length-t;n.length=n.length-t}(0,c.K2)(E,"popStack");function w(){var t;t=s.pop()||f.lex()||u;if(typeof t!=="number"){if(t instanceof Array){s=t;t=s.pop()}t=a.symbols_[t]||t}return t}(0,c.K2)(w,"lex");var k,v,I,L,_,P,A={},N,M,O,D;while(true){I=r[r.length-1];if(this.defaultActions[I]){L=this.defaultActions[I]}else{if(k===null||typeof k=="undefined"){k=w()}L=o[I]&&o[I][k]}if(typeof L==="undefined"||!L.length||!L[0]){var S="";D=[];for(N in o[I]){if(this.terminals_[N]&&N>g){D.push("'"+this.terminals_[N]+"'")}}if(f.showPosition){S="Parse error on line "+(d+1)+":\n"+f.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[k]||k)+"'"}else{S="Parse error on line "+(d+1)+": Unexpected "+(k==u?"end of input":"'"+(this.terminals_[k]||k)+"'")}this.parseError(S,{text:f.match,token:this.terminals_[k]||k,line:f.yylineno,loc:m,expected:D})}if(L[0]instanceof Array&&L.length>1){throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+k)}switch(L[0]){case 1:r.push(k);i.push(f.yytext);n.push(f.yylloc);r.push(L[1]);k=null;if(!v){h=f.yyleng;l=f.yytext;d=f.yylineno;m=f.yylloc;if(p>0){p--}}else{k=v;v=null}break;case 2:M=this.productions_[L[1]][1];A.$=i[i.length-M];A._$={first_line:n[n.length-(M||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(M||1)].first_column,last_column:n[n.length-1].last_column};if(T){A._$.range=[n[n.length-(M||1)].range[0],n[n.length-1].range[1]]}P=this.performAction.apply(A,[l,h,d,y.yy,L[1],i,n].concat(x));if(typeof P!=="undefined"){return P}if(M){r=r.slice(0,-1*M*2);i=i.slice(0,-1*M);n=n.slice(0,-1*M)}r.push(this.productions_[L[1]][0]);i.push(A.$);n.push(A._$);O=o[r[r.length-2]][r[r.length-1]];r.push(O);break;case 3:return true}}return true}),"parse")};var z=function(){var t={EOF:1,parseError:(0,c.K2)((function t(e,a){if(this.yy.parser){this.yy.parser.parseError(e,a)}else{throw new Error(e)}}),"parseError"),setInput:(0,c.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,c.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,c.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 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(a.length-1){this.yylineno-=a.length-1}var s=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===r.length?this.yylloc.first_column:0)+r[r.length-a.length].length-a[0].length:this.yylloc.first_column-e};if(this.options.ranges){this.yylloc.range=[s[0],s[0]+this.yyleng-e]}this.yyleng=this.yytext.length;return this}),"unput"),more:(0,c.K2)((function(){this._more=true;return this}),"more"),reject:(0,c.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,c.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,c.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,c.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,c.K2)((function(){var t=this.pastInput();var e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,c.K2)((function(t,e){var a,r,s;if(this.options.backtrack_lexer){s={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){s.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];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 s){this[i]=s[i]}return false}return false}),"test_match"),next:(0,c.K2)((function(){if(this.done){return this.EOF}if(!this._input){this.done=true}var t,e,a,r;if(!this._more){this.yytext="";this.match=""}var s=this._currentRules();for(var i=0;ie[0].length)){e=a;r=i;if(this.options.backtrack_lexer){t=this.test_match(a,s[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,s[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,c.K2)((function t(){var e=this.next();if(e){return e}else{return this.lex()}}),"lex"),begin:(0,c.K2)((function t(e){this.conditionStack.push(e)}),"begin"),popState:(0,c.K2)((function t(){var e=this.conditionStack.length-1;if(e>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}}),"popState"),_currentRules:(0,c.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,c.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,c.K2)((function t(e){this.begin(e)}),"pushState"),stateStackSize:(0,c.K2)((function t(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":true},performAction:(0,c.K2)((function t(e,a,r,s){var i=s;switch(r){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("CONFIG");return 73;break;case 8:return 74;break;case 9:this.popState();this.popState();return 75;break;case 10:a.yytext=a.yytext.trim();return 71;break;case 11:a.yytext=a.yytext.trim();this.begin("ALIAS");return 71;break;case 12:this.begin("LINE");return 14;break;case 13:this.begin("ID");return 50;break;case 14:this.begin("ID");return 52;break;case 15:return 13;break;case 16:this.begin("ID");return 53;break;case 17:a.yytext=a.yytext.trim();this.begin("ALIAS");return 71;break;case 18:this.popState();this.popState();this.begin("LINE");return 51;break;case 19:this.popState();this.popState();return 5;break;case 20:this.begin("LINE");return 36;break;case 21:this.begin("LINE");return 37;break;case 22:this.begin("LINE");return 38;break;case 23:this.begin("LINE");return 39;break;case 24:this.begin("LINE");return 49;break;case 25:this.begin("LINE");return 41;break;case 26:this.begin("LINE");return 43;break;case 27:this.begin("LINE");return 48;break;case 28:this.begin("LINE");return 44;break;case 29:this.begin("LINE");return 47;break;case 30:this.begin("LINE");return 46;break;case 31:this.popState();return 15;break;case 32:return 16;break;case 33:return 66;break;case 34:return 67;break;case 35:return 60;break;case 36:return 61;break;case 37:return 62;break;case 38:return 63;break;case 39:return 58;break;case 40:return 55;break;case 41:this.begin("ID");return 21;break;case 42:this.begin("ID");return 23;break;case 43:return 29;break;case 44:return 30;break;case 45:this.begin("acc_title");return 31;break;case 46:this.popState();return"acc_title_value";break;case 47:this.begin("acc_descr");return 33;break;case 48:this.popState();return"acc_descr_value";break;case 49:this.begin("acc_descr_multiline");break;case 50:this.popState();break;case 51:return"acc_descr_multiline_value";break;case 52:return 6;break;case 53:return 18;break;case 54:return 20;break;case 55:return 65;break;case 56:return 5;break;case 57:a.yytext=a.yytext.trim();return 71;break;case 58:return 78;break;case 59:return 79;break;case 60:return 80;break;case 61:return 81;break;case 62:return 76;break;case 63:return 77;break;case 64:return 82;break;case 65:return 83;break;case 66:return 84;break;case 67:return 85;break;case 68:return 86;break;case 69:return 86;break;case 70:return 69;break;case 71:return 70;break;case 72:return 5;break;case 73:return"INVALID";break}}),"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^\<->\->:\n,;@]+?([\-]*[^\<->\->:\n,;@]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\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,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[50,51],inclusive:false},acc_descr:{rules:[48],inclusive:false},acc_title:{rules:[46],inclusive:false},ID:{rules:[2,3,7,10,11,17],inclusive:false},ALIAS:{rules:[2,3,18,19],inclusive:false},LINE:{rules:[2,3,31],inclusive:false},CONFIG:{rules:[8,9],inclusive:false},CONFIG_DATA:{rules:[],inclusive:false},INITIAL:{rules:[0,1,3,4,5,6,12,13,14,15,16,20,21,22,23,24,25,26,27,28,29,30,32,33,34,35,36,37,38,39,40,41,42,43,44,45,47,49,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73],inclusive:true}}};return t}();q.lexer=z;function H(){this.yy={}}(0,c.K2)(H,"Parser");H.prototype=q;q.Parser=H;return new H}();h.parser=h;var p=h;var g={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 u={FILLED:0,OPEN:1};var x={LEFTOF:0,RIGHTOF:1,OVER:2};var f={ACTOR:"actor",BOUNDARY:"boundary",COLLECTIONS:"collections",CONTROL:"control",DATABASE:"database",ENTITY:"entity",PARTICIPANT:"participant",QUEUE:"queue"};var y=class{constructor(){this.state=new i.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=o.SV;this.setAccDescription=o.EI;this.setDiagramTitle=o.ke;this.getAccTitle=o.iN;this.getAccDescription=o.m7;this.getDiagramTitle=o.ab;this.apply=this.apply.bind(this);this.parseBoxData=this.parseBoxData.bind(this);this.parseMessage=this.parseMessage.bind(this);this.clear();this.setWrap((0,o.D7)().wrap);this.LINETYPE=g;this.ARROWTYPE=u;this.PLACEMENT=x}static{(0,c.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,r,i){let n=this.state.records.currentBox;let o;if(i!==void 0){let t;if(!i.includes("\n")){t="{\n"+i+"\n}"}else{t=i+"\n"}o=(0,s.H)(t,{schema:s.r})}r=o?.type??r;const c=this.state.records.actors.get(t);if(c){if(this.state.records.currentBox&&c.box&&this.state.records.currentBox!==c.box){throw new Error(`A same participant should only be defined in one Box: ${c.name} can't be in '${c.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`)}n=c.box?c.box:this.state.records.currentBox;c.box=n;if(c&&e===c.name&&a==null){return}}if(a?.text==null){a={text:e,type:r}}if(r==null||a.text==null){a={text:e,type:r}}this.state.records.actors.set(t,{box:n,name:e,description:a.text,wrap:a.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:r??"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:r,activate:s});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,o.D7)().sequence?.wrap??false}clear(){this.state.reset();(0,o.IU)()}parseMessage(t){const e=t.trim();const{wrap:a,cleanedText:r}=this.extractWrap(e);const s={text:r,wrap:a};c.Rm.debug(`parseMessage: ${JSON.stringify(s)}`);return s}parseBoxData(t){const e=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t);let a=e?.[1]?e[1].trim():"transparent";let r=e?.[2]?e[2].trim():void 0;if(window?.CSS){if(!window.CSS.supports("color",a)){a="transparent";r=t.trim()}}else{const e=(new Option).style;e.color=a;if(e.color!==a){a="transparent";r=t.trim()}}const{wrap:s,cleanedText:i}=this.extractWrap(r);return{text:i?(0,o.jZ)(i,(0,o.D7)()):void 0,color:a,wrap:s}}addNote(t,e,a){const r={actor:t,placement:e,message:a.text,wrap:a.wrap??this.autoWrap()};const s=[].concat(t,t);this.state.records.notes.push(r);this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:s[0],to:s[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,o.jZ)(e.text,(0,o.D7)());t=t.replace(/=/g,"=");t=t.replace(/&/g,"&");const r=JSON.parse(t);this.insertLinks(a,r)}catch(r){c.Rm.error("error while parsing actor link text",r)}}addALink(t,e){const a=this.getActor(t);try{const t={};let r=(0,o.jZ)(e.text,(0,o.D7)());const s=r.indexOf("@");r=r.replace(/=/g,"=");r=r.replace(/&/g,"&");const i=r.slice(0,s-1).trim();const n=r.slice(s+1).trim();t[i]=n;this.insertLinks(a,t)}catch(r){c.Rm.error("error while parsing actor link text",r)}}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,o.jZ)(e.text,(0,o.D7)());const r=JSON.parse(t);this.insertProperties(a,r)}catch(r){c.Rm.error("error while parsing actor properties text",r)}}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 r=document.getElementById(e.text);try{const t=r.innerHTML;const e=JSON.parse(t);if(e.properties){this.insertProperties(a,e.properties)}if(e.links){this.insertLinks(a,e.links)}}catch(s){c.Rm.error("error while parsing actor details text",s)}}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,t.config);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,t.config);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,o.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,o.D7)().sequence}};var b=(0,c.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 .innerArc {\n stroke-width: 1.5;\n stroke-dasharray: none;\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\n`),"getStyles");var m=b;var T=18*2;var E="actor-top";var w="actor-bottom";var k="actor-box";var v="actor-man";var I=(0,c.K2)((function(t,e){return(0,r.tk)(t,e)}),"drawRect");var L=(0,c.K2)((function(t,e,a,r,s){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 c="none";if(s){c="block !important"}const l=t.append("g");l.attr("id","actor"+n+"_popup");l.attr("class","actorPopupMenu");l.attr("display",c);var h="";if(o.class!==void 0){h=" "+o.class}let p=o.width>a?o.width:a;const g=l.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 x=l.append("a");var f=(0,d.J)(i[t]);x.attr("xlink:href",f);x.attr("target","_blank");rt(r)(t,x,o.x+10,o.height+u,p,20,{class:"actor"},r);u+=30}}g.attr("height",u);return{height:o.height+u,width:p}}),"drawPopup");var _=(0,c.K2)((function(t){return"var pu = document.getElementById('"+t+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"}),"popupMenuToggle");var P=(0,c.K2)((async function(t,e,a=null){let r=t.append("foreignObject");const s=await(0,o.dj)(e.text,(0,o.zj)());const i=r.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(s);const n=i.node().getBoundingClientRect();r.attr("height",Math.round(n.height)).attr("width",Math.round(n.width));if(e.class==="noteText"){const a=t.node().firstChild;a.setAttribute("height",n.height+2*e.textMargin);const s=a.getBBox();r.attr("x",Math.round(s.x+s.width/2-n.width/2)).attr("y",Math.round(s.y+s.height/2-n.height/2))}else if(a){let{startx:t,stopx:s,starty:i}=a;if(t>s){const e=t;t=s;s=e}r.attr("x",Math.round(t+Math.abs(t-s)/2-n.width/2));if(e.class==="loopText"){r.attr("y",Math.round(i))}else{r.attr("y",Math.round(i-n.height))}}return[r]}),"drawKatex");var A=(0,c.K2)((function(t,e){let a=0;let r=0;const s=e.text.split(o.Y2.lineBreakRegex);const[i,l]=(0,n.I5)(e.fontSize);let d=[];let h=0;let p=(0,c.K2)((()=>e.y),"yfunc");if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0){switch(e.valign){case"top":case"start":p=(0,c.K2)((()=>Math.round(e.y+e.textMargin)),"yfunc");break;case"middle":case"center":p=(0,c.K2)((()=>Math.round(e.y+(a+r+e.textMargin)/2)),"yfunc");break;case"bottom":case"end":p=(0,c.K2)((()=>Math.round(e.y+(a+r+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[o,c]of s.entries()){if(e.textMargin!==void 0&&e.textMargin===0&&i!==void 0){h=o*i}const s=t.append("text");s.attr("x",e.x);s.attr("y",p());if(e.anchor!==void 0){s.attr("text-anchor",e.anchor).attr("dominant-baseline",e.dominantBaseline).attr("alignment-baseline",e.alignmentBaseline)}if(e.fontFamily!==void 0){s.style("font-family",e.fontFamily)}if(l!==void 0){s.style("font-size",l)}if(e.fontWeight!==void 0){s.style("font-weight",e.fontWeight)}if(e.fill!==void 0){s.attr("fill",e.fill)}if(e.class!==void 0){s.attr("class",e.class)}if(e.dy!==void 0){s.attr("dy",e.dy)}else if(h!==0){s.attr("dy",h)}const g=c||n.pe;if(e.tspan){const t=s.append("tspan");t.attr("x",e.x);if(e.fill!==void 0){t.attr("fill",e.fill)}t.text(g)}else{s.text(g)}if(e.valign!==void 0&&e.textMargin!==void 0&&e.textMargin>0){r+=(s._groups||s)[0][0].getBBox().height;a=r}d.push(s)}return d}),"drawText");var N=(0,c.K2)((function(t,e){function a(t,e,a,r,s){return t+","+e+" "+(t+a)+","+e+" "+(t+a)+","+(e+r-s)+" "+(t+a-s*1.2)+","+(e+r)+" "+t+","+(e+r)}(0,c.K2)(a,"genPoints");const r=t.append("polygon");r.attr("points",a(e.x,e.y,e.width,e.height,7));r.attr("class","labelBox");e.y=e.y+e.height/2;A(t,e);return r}),"drawLabel");var M=-1;var O=(0,c.K2)(((t,e,a,r)=>{if(!t.select){return}a.forEach((a=>{const s=e.get(a);const i=t.select("#actor"+s.actorCnt);if(!r.mirrorActors&&s.stopy){i.attr("y2",s.stopy+s.height/2)}else if(r.mirrorActors){i.attr("y2",s.stopy)}}))}),"fixLifeLineHeights");var D=(0,c.K2)((function(t,e,a,s){const i=s?e.stopy:e.starty;const n=e.x+e.width/2;const c=i+e.height;const l=t.append("g").lower();var d=l;if(!s){M++;if(Object.keys(e.links||{}).length&&!a.forceMenus){d.attr("onclick",_(`actor${M}_popup`)).attr("cursor","pointer")}d.append("line").attr("id","actor"+M).attr("x1",n).attr("y1",c).attr("x2",n).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=M;if(e.links!=null){d.attr("id","root-"+M)}}const h=(0,r.PB)();var p="actor";if(e.properties?.class){p=e.properties.class}else{h.fill="#eaeaea"}if(s){p+=` ${w}`}else{p+=` ${E}`}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=I(d,h);e.rectData=h;if(e.properties?.icon){const t=e.properties.icon.trim();if(t.charAt(0)==="@"){(0,r.CP)(d,h.x+h.width-20,h.y+10,t.substr(1))}else{(0,r.aC)(d,h.x+h.width-20,h.y+10,t)}}at(a,(0,o.Wi)(e.description))(e.description,d,h.x,h.y,h.width,h.height,{class:`actor ${k}`},a);let u=e.height;if(g.node){const t=g.node().getBBox();e.height=t.height;u=t.height}return u}),"drawActorTypeParticipant");var S=(0,c.K2)((function(t,e,a,s){const i=s?e.stopy:e.starty;const n=e.x+e.width/2;const c=i+e.height;const l=t.append("g").lower();var d=l;if(!s){M++;if(Object.keys(e.links||{}).length&&!a.forceMenus){d.attr("onclick",_(`actor${M}_popup`)).attr("cursor","pointer")}d.append("line").attr("id","actor"+M).attr("x1",n).attr("y1",c).attr("x2",n).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=M;if(e.links!=null){d.attr("id","root-"+M)}}const h=(0,r.PB)();var p="actor";if(e.properties?.class){p=e.properties.class}else{h.fill="#eaeaea"}if(s){p+=` ${w}`}else{p+=` ${E}`}h.x=e.x;h.y=i;h.width=e.width;h.height=e.height;h.class=p;h.name=e.name;const g=6;const u={...h,x:h.x+(s?-g:-g),y:h.y+(s?+g:+g),class:"actor"};const x=I(d,h);I(d,u);e.rectData=h;if(e.properties?.icon){const t=e.properties.icon.trim();if(t.charAt(0)==="@"){(0,r.CP)(d,h.x+h.width-20,h.y+10,t.substr(1))}else{(0,r.aC)(d,h.x+h.width-20,h.y+10,t)}}at(a,(0,o.Wi)(e.description))(e.description,d,h.x-g,h.y+g,h.width,h.height,{class:`actor ${k}`},a);let f=e.height;if(x.node){const t=x.node().getBBox();e.height=t.height;f=t.height}return f}),"drawActorTypeCollections");var R=(0,c.K2)((function(t,e,a,s){const i=s?e.stopy:e.starty;const n=e.x+e.width/2;const c=i+e.height;const l=t.append("g").lower();let d=l;if(!s){M++;if(Object.keys(e.links||{}).length&&!a.forceMenus){d.attr("onclick",_(`actor${M}_popup`)).attr("cursor","pointer")}d.append("line").attr("id","actor"+M).attr("x1",n).attr("y1",c).attr("x2",n).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=M;if(e.links!=null){d.attr("id","root-"+M)}}const h=(0,r.PB)();let p="actor";if(e.properties?.class){p=e.properties.class}else{h.fill="#eaeaea"}if(s){p+=` ${w}`}else{p+=` ${E}`}h.x=e.x;h.y=i;h.width=e.width;h.height=e.height;h.class=p;h.name=e.name;const g=h.height/2;const u=g/(2.5+h.height/50);const x=d.append("g");const f=d.append("g");x.append("path").attr("d",`M ${h.x},${h.y+g}\n a ${u},${g} 0 0 0 0,${h.height}\n h ${h.width-2*u}\n a ${u},${g} 0 0 0 0,-${h.height}\n Z\n `).attr("class",p);f.append("path").attr("d",`M ${h.x},${h.y+g}\n a ${u},${g} 0 0 0 0,${h.height}`).attr("stroke","#666").attr("stroke-width","1px").attr("class",p);x.attr("transform",`translate(${u}, ${-(h.height/2)})`);f.attr("transform",`translate(${h.width-u}, ${-h.height/2})`);e.rectData=h;if(e.properties?.icon){const t=e.properties.icon.trim();const a=h.x+h.width-20;const s=h.y+10;if(t.charAt(0)==="@"){(0,r.CP)(d,a,s,t.substr(1))}else{(0,r.aC)(d,a,s,t)}}at(a,(0,o.Wi)(e.description))(e.description,d,h.x,h.y,h.width,h.height,{class:`actor ${k}`},a);let y=e.height;const b=x.select("path:last-child");if(b.node()){const t=b.node().getBBox();e.height=t.height;y=t.height}return y}),"drawActorTypeQueue");var $=(0,c.K2)((function(t,e,a,s){const i=s?e.stopy:e.starty;const n=e.x+e.width/2;const c=i+75;const l=t.append("g").lower();if(!s){M++;l.append("line").attr("id","actor"+M).attr("x1",n).attr("y1",c).attr("x2",n).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name);e.actorCnt=M}const d=t.append("g");let h=v;if(s){h+=` ${w}`}else{h+=` ${E}`}d.attr("class",h);d.attr("name",e.name);const p=(0,r.PB)();p.x=e.x;p.y=i;p.fill="#eaeaea";p.width=e.width;p.height=e.height;p.class="actor";const g=e.x+e.width/2;const u=i+30;const x=18;d.append("defs").append("marker").attr("id","filled-head-control").attr("refX",11).attr("refY",5.8).attr("markerWidth",20).attr("markerHeight",28).attr("orient","172.5").append("path").attr("d","M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z");d.append("circle").attr("cx",g).attr("cy",u).attr("r",x).attr("fill","#eaeaf7").attr("stroke","#666").attr("stroke-width",1.2);d.append("line").attr("marker-end","url(#filled-head-control)").attr("transform",`translate(${g}, ${u-x})`);const f=d.node().getBBox();e.height=f.height+2*(a?.sequence?.labelBoxHeight??0);at(a,(0,o.Wi)(e.description))(e.description,d,p.x,p.y+x+(s?5:10),p.width,p.height,{class:`actor ${v}`},a);return e.height}),"drawActorTypeControl");var C=(0,c.K2)((function(t,e,a,s){const i=s?e.stopy:e.starty;const n=e.x+e.width/2;const c=i+75;const l=t.append("g").lower();const d=t.append("g");let h=v;if(s){h+=` ${w}`}else{h+=` ${E}`}d.attr("class",h);d.attr("name",e.name);const p=(0,r.PB)();p.x=e.x;p.y=i;p.fill="#eaeaea";p.width=e.width;p.height=e.height;p.class="actor";const g=e.x+e.width/2;const u=i+(!s?25:10);const x=18;d.append("circle").attr("cx",g).attr("cy",u).attr("r",x).attr("width",e.width).attr("height",e.height);d.append("line").attr("x1",g-x).attr("x2",g+x).attr("y1",u+x).attr("y2",u+x).attr("stroke","#333").attr("stroke-width",2);const f=d.node().getBBox();e.height=f.height+(a?.sequence?.labelBoxHeight??0);if(!s){M++;l.append("line").attr("id","actor"+M).attr("x1",n).attr("y1",c).attr("x2",n).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name);e.actorCnt=M}at(a,(0,o.Wi)(e.description))(e.description,d,p.x,p.y+(!s?(u+x-i)/2:(u-i+x-5)/2),p.width,p.height,{class:`actor ${v}`},a);if(!s){d.attr("transform",`translate(${0}, ${x/2})`)}else{d.attr("transform",`translate(${0}, ${x/2})`)}return e.height}),"drawActorTypeEntity");var Y=(0,c.K2)((function(t,e,a,s){const i=s?e.stopy:e.starty;const n=e.x+e.width/2;const c=i+e.height+2*a.boxTextMargin;const l=t.append("g").lower();let d=l;if(!s){M++;if(Object.keys(e.links||{}).length&&!a.forceMenus){d.attr("onclick",_(`actor${M}_popup`)).attr("cursor","pointer")}d.append("line").attr("id","actor"+M).attr("x1",n).attr("y1",c).attr("x2",n).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=M;if(e.links!=null){d.attr("id","root-"+M)}}const h=(0,r.PB)();let p="actor";if(e.properties?.class){p=e.properties.class}else{h.fill="#eaeaea"}if(s){p+=` ${w}`}else{p+=` ${E}`}h.x=e.x;h.y=i;h.width=e.width;h.height=e.height;h.class=p;h.name=e.name;h.x=e.x;h.y=i;const g=h.width/4;const u=h.width/4;const x=g/2;const f=x/(2.5+g/50);const y=d.append("g");const b=`\n M ${h.x},${h.y+f}\n a ${x},${f} 0 0 0 ${g},0\n a ${x},${f} 0 0 0 -${g},0\n l 0,${u-2*f}\n a ${x},${f} 0 0 0 ${g},0\n l 0,-${u-2*f}\n`;y.append("path").attr("d",b).attr("fill","#eaeaea").attr("stroke","#000").attr("stroke-width",1).attr("class",p);if(!s){y.attr("transform",`translate(${g*1.5}, ${(h.height+f)/4})`)}else{y.attr("transform",`translate(${g*1.5}, ${h.height/4-2*f})`)}e.rectData=h;at(a,(0,o.Wi)(e.description))(e.description,d,h.x,h.y+(!s?(h.height+f)/2:(h.height+u)/4),h.width,h.height,{class:`actor ${k}`},a);const m=y.select("path:last-child");if(m.node()){const t=m.node().getBBox();e.height=t.height+(a.sequence.labelBoxHeight??0)}return e.height}),"drawActorTypeDatabase");var B=(0,c.K2)((function(t,e,a,s){const i=s?e.stopy:e.starty;const n=e.x+e.width/2;const c=i+80;const l=30;const d=t.append("g").lower();if(!s){M++;d.append("line").attr("id","actor"+M).attr("x1",n).attr("y1",c).attr("x2",n).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name);e.actorCnt=M}const h=t.append("g");let p=v;if(s){p+=` ${w}`}else{p+=` ${E}`}h.attr("class",p);h.attr("name",e.name);const g=(0,r.PB)();g.x=e.x;g.y=i;g.fill="#eaeaea";g.width=e.width;g.height=e.height;g.class="actor";h.append("line").attr("id","actor-man-torso"+M).attr("x1",e.x+e.width/2-l*2.5).attr("y1",i+10).attr("x2",e.x+e.width/2-15).attr("y2",i+10);h.append("line").attr("id","actor-man-arms"+M).attr("x1",e.x+e.width/2-l*2.5).attr("y1",i+0).attr("x2",e.x+e.width/2-l*2.5).attr("y2",i+20);h.append("circle").attr("cx",e.x+e.width/2).attr("cy",i+10).attr("r",l);const u=h.node().getBBox();e.height=u.height+(a.sequence.labelBoxHeight??0);at(a,(0,o.Wi)(e.description))(e.description,h,g.x,g.y+(!s?l/2+3:l/2-4),g.width,g.height,{class:`actor ${v}`},a);if(!s){h.attr("transform",`translate(0,${l/2+7})`)}else{h.attr("transform",`translate(0,${l/2+7})`)}return e.height}),"drawActorTypeBoundary");var K=(0,c.K2)((function(t,e,a,s){const i=s?e.stopy:e.starty;const n=e.x+e.width/2;const c=i+80;const l=t.append("g").lower();if(!s){M++;l.append("line").attr("id","actor"+M).attr("x1",n).attr("y1",c).attr("x2",n).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",e.name);e.actorCnt=M}const d=t.append("g");let h=v;if(s){h+=` ${w}`}else{h+=` ${E}`}d.attr("class",h);d.attr("name",e.name);const p=(0,r.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"+M).attr("x1",n).attr("y1",i+25).attr("x2",n).attr("y2",i+45);d.append("line").attr("id","actor-man-arms"+M).attr("x1",n-T/2).attr("y1",i+33).attr("x2",n+T/2).attr("y2",i+33);d.append("line").attr("x1",n-T/2).attr("y1",i+60).attr("x2",n).attr("y2",i+45);d.append("line").attr("x1",n).attr("y1",i+45).attr("x2",n+T/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;at(a,(0,o.Wi)(e.description))(e.description,d,p.x,p.y+35,p.width,p.height,{class:`actor ${v}`},a);return e.height}),"drawActorTypeActor");var V=(0,c.K2)((async function(t,e,a,r){switch(e.type){case"actor":return await K(t,e,a,r);case"participant":return await D(t,e,a,r);case"boundary":return await B(t,e,a,r);case"control":return await $(t,e,a,r);case"entity":return await C(t,e,a,r);case"database":return await Y(t,e,a,r);case"collections":return await S(t,e,a,r);case"queue":return await R(t,e,a,r)}}),"drawActor");var F=(0,c.K2)((function(t,e,a){const r=t.append("g");const s=r;H(s,e);if(e.name){at(a)(e.name,s,e.x,e.y+a.boxTextMargin+(e.textMaxHeight||0)/2,e.width,0,{class:"text"},a)}s.lower()}),"drawBox");var W=(0,c.K2)((function(t){return t.append("g")}),"anchorElement");var q=(0,c.K2)((function(t,e,a,s,i){const n=(0,r.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;I(o,n)}),"drawActivation");var z=(0,c.K2)((async function(t,e,a,s){const{boxMargin:i,boxTextMargin:n,labelBoxHeight:l,labelBoxWidth:d,messageFontFamily:h,messageFontSize:p,messageFontWeight:g}=s;const u=t.append("g");const x=(0,c.K2)((function(t,e,a,r){return u.append("line").attr("x1",t).attr("y1",e).attr("x2",a).attr("y2",r).attr("class","loopLine")}),"drawLoopLine");x(e.startx,e.starty,e.stopx,e.starty);x(e.stopx,e.starty,e.stopx,e.stopy);x(e.startx,e.stopy,e.stopx,e.stopy);x(e.startx,e.starty,e.startx,e.stopy);if(e.sections!==void 0){e.sections.forEach((function(t){x(e.startx,t.y,e.stopx,t.y).style("stroke-dasharray","3, 3")}))}let f=(0,r.HT)();f.text=a;f.x=e.startx;f.y=e.starty;f.fontFamily=h;f.fontSize=p;f.fontWeight=g;f.anchor="middle";f.valign="middle";f.tspan=false;f.width=d||50;f.height=l||20;f.textMargin=n;f.class="labelText";N(u,f);f=tt();f.text=e.title;f.x=e.startx+d/2+(e.stopx-e.startx)/2;f.y=e.starty+i+n;f.anchor="middle";f.valign="middle";f.textMargin=n;f.class="loopText";f.fontFamily=h;f.fontSize=p;f.fontWeight=g;f.wrap=true;let y=(0,o.Wi)(f.text)?await P(u,f,e):A(u,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+n;f.class="loopText";f.anchor="middle";f.valign="middle";f.tspan=false;f.fontFamily=h;f.fontSize=p;f.fontWeight=g;f.wrap=e.wrap;if((0,o.Wi)(f.text)){e.starty=e.sections[t].y;await P(u,f,e)}else{A(u,f)}let r=Math.round(y.map((t=>(t._groups||t)[0][0].getBBox().height)).reduce(((t,e)=>t+e)));e.sections[t].height+=r-(i+n)}}}e.height=Math.round(e.stopy-e.starty);return u}),"drawLoop");var H=(0,c.K2)((function(t,e){(0,r.lC)(t,e)}),"drawBackgroundRect");var j=(0,c.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 U=(0,c.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 G=(0,c.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 X=(0,c.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 J=(0,c.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 Z=(0,c.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,c.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 tt=(0,c.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 et=(0,c.K2)((function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}}),"getNoteRect");var at=function(){function t(t,e,a,r,i,n,o){const c=e.append("text").attr("x",a+i/2).attr("y",r+n/2+5).style("text-anchor","middle").text(t);s(c,o)}(0,c.K2)(t,"byText");function e(t,e,a,r,i,c,l,d){const{actorFontSize:h,actorFontFamily:p,actorFontWeight:g}=d;const[u,x]=(0,n.I5)(h);const f=t.split(o.Y2.lineBreakRegex);for(let n=0;nt.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,c.K2)((function(){this.actors=[];this.boxes=[];this.loops=[];this.messages=[];this.notes=[]}),"clear"),addBox:(0,c.K2)((function(t){this.boxes.push(t)}),"addBox"),addActor:(0,c.K2)((function(t){this.actors.push(t)}),"addActor"),addLoop:(0,c.K2)((function(t){this.loops.push(t)}),"addLoop"),addMessage:(0,c.K2)((function(t){this.messages.push(t)}),"addMessage"),addNote:(0,c.K2)((function(t){this.notes.push(t)}),"addNote"),lastActor:(0,c.K2)((function(){return this.actors[this.actors.length-1]}),"lastActor"),lastLoop:(0,c.K2)((function(){return this.loops[this.loops.length-1]}),"lastLoop"),lastMessage:(0,c.K2)((function(){return this.messages[this.messages.length-1]}),"lastMessage"),lastNote:(0,c.K2)((function(){return this.notes[this.notes.length-1]}),"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:(0,c.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;ft((0,o.D7)())}),"init"),updateVal:(0,c.K2)((function(t,e,a,r){if(t[e]===void 0){t[e]=a}else{t[e]=r(a,t[e])}}),"updateVal"),updateBounds:(0,c.K2)((function(t,e,a,r){const s=this;let i=0;function n(n){return(0,c.K2)((function o(c){i++;const l=s.sequenceItems.length-i+1;s.updateVal(c,"starty",e-l*it.boxMargin,Math.min);s.updateVal(c,"stopy",r+l*it.boxMargin,Math.max);s.updateVal(nt.data,"startx",t-l*it.boxMargin,Math.min);s.updateVal(nt.data,"stopx",a+l*it.boxMargin,Math.max);if(!(n==="activation")){s.updateVal(c,"startx",t-l*it.boxMargin,Math.min);s.updateVal(c,"stopx",a+l*it.boxMargin,Math.max);s.updateVal(nt.data,"starty",e-l*it.boxMargin,Math.min);s.updateVal(nt.data,"stopy",r+l*it.boxMargin,Math.max)}}),"updateItemBounds")}(0,c.K2)(n,"updateFn");this.sequenceItems.forEach(n());this.activations.forEach(n("activation"))}),"updateBounds"),insert:(0,c.K2)((function(t,e,a,r){const s=o.Y2.getMin(t,a);const i=o.Y2.getMax(t,a);const n=o.Y2.getMin(e,r);const c=o.Y2.getMax(e,r);this.updateVal(nt.data,"startx",s,Math.min);this.updateVal(nt.data,"starty",n,Math.min);this.updateVal(nt.data,"stopx",i,Math.max);this.updateVal(nt.data,"stopy",c,Math.max);this.updateBounds(s,n,i,c)}),"insert"),newActivation:(0,c.K2)((function(t,e,a){const r=a.get(t.from);const s=yt(t.from).length||0;const i=r.x+r.width/2+(s-1)*it.activationWidth/2;this.activations.push({startx:i,starty:this.verticalPos+2,stopx:i+it.activationWidth,stopy:void 0,actor:t.from,anchored:st.anchorElement(e)})}),"newActivation"),endActivation:(0,c.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,c.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,c.K2)((function(t={message:void 0,wrap:false,width:void 0},e){this.sequenceItems.push(this.createLoop(t,e))}),"newLoop"),endLoop:(0,c.K2)((function(){return this.sequenceItems.pop()}),"endLoop"),isLoopOverlap:(0,c.K2)((function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:false}),"isLoopOverlap"),addSectionToLoop:(0,c.K2)((function(t){const e=this.sequenceItems.pop();e.sections=e.sections||[];e.sectionTitles=e.sectionTitles||[];e.sections.push({y:nt.getVerticalPos(),height:0});e.sectionTitles.push(t);this.sequenceItems.push(e)}),"addSectionToLoop"),saveVerticalPos:(0,c.K2)((function(){if(this.isLoopOverlap()){this.savedVerticalPos=this.verticalPos}}),"saveVerticalPos"),resetVerticalPos:(0,c.K2)((function(){if(this.isLoopOverlap()){this.verticalPos=this.savedVerticalPos}}),"resetVerticalPos"),bumpVerticalPos:(0,c.K2)((function(t){this.verticalPos=this.verticalPos+t;this.data.stopy=o.Y2.getMax(this.data.stopy,this.verticalPos)}),"bumpVerticalPos"),getVerticalPos:(0,c.K2)((function(){return this.verticalPos}),"getVerticalPos"),getBounds:(0,c.K2)((function(){return{bounds:this.data,models:this.models}}),"getBounds")};var ot=(0,c.K2)((async function(t,e){nt.bumpVerticalPos(it.boxMargin);e.height=it.boxMargin;e.starty=nt.getVerticalPos();const a=(0,r.PB)();a.x=e.startx;a.y=e.starty;a.width=e.width||it.width;a.class="note";const s=t.append("g");const i=st.drawRect(s,a);const n=(0,r.HT)();n.x=e.startx;n.y=e.starty;n.width=a.width;n.dy="1em";n.text=e.message;n.class="noteText";n.fontFamily=it.noteFontFamily;n.fontSize=it.noteFontSize;n.fontWeight=it.noteFontWeight;n.anchor=it.noteAlign;n.textMargin=it.noteMargin;n.valign="center";const c=(0,o.Wi)(n.text)?await P(s,n):A(s,n);const l=Math.round(c.map((t=>(t._groups||t)[0][0].getBBox().height)).reduce(((t,e)=>t+e)));i.attr("height",l+2*it.noteMargin);e.height+=l+2*it.noteMargin;nt.bumpVerticalPos(l+2*it.noteMargin);e.stopy=e.starty+l+2*it.noteMargin;e.stopx=e.startx+a.width;nt.insert(e.startx,e.starty,e.stopx,e.stopy);nt.models.addNote(e)}),"drawNote");var ct=(0,c.K2)((t=>({fontFamily:t.messageFontFamily,fontSize:t.messageFontSize,fontWeight:t.messageFontWeight})),"messageFont");var lt=(0,c.K2)((t=>({fontFamily:t.noteFontFamily,fontSize:t.noteFontSize,fontWeight:t.noteFontWeight})),"noteFont");var dt=(0,c.K2)((t=>({fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight})),"actorFont");async function ht(t,e){nt.bumpVerticalPos(10);const{startx:a,stopx:r,message:s}=e;const i=o.Y2.splitBreaks(s).length;const c=(0,o.Wi)(s);const l=c?await(0,o.Dl)(s,(0,o.D7)()):n._K.calculateTextDimensions(s,ct(it));if(!c){const t=l.height/i;e.height+=t;nt.bumpVerticalPos(t)}let d;let h=l.height-10;const p=l.width;if(a===r){d=nt.getVerticalPos()+h;if(!it.rightAngles){h+=it.boxMargin;d=nt.getVerticalPos()+h}h+=30;const t=o.Y2.getMax(p/2,it.width/2);nt.insert(a-t,nt.getVerticalPos()-10+h,r+t,nt.getVerticalPos()+30+h)}else{h+=it.boxMargin;d=nt.getVerticalPos()+h;nt.insert(a,d-10,r,d)}nt.bumpVerticalPos(h);e.height+=h;e.stopy=e.starty+e.height;nt.insert(e.fromBounds,e.starty,e.toBounds,e.stopy);return d}(0,c.K2)(ht,"boundMessage");var pt=(0,c.K2)((async function(t,e,a,s){const{startx:i,stopx:c,starty:l,message:d,type:h,sequenceIndex:p,sequenceVisible:g}=e;const u=n._K.calculateTextDimensions(d,ct(it));const x=(0,r.HT)();x.x=i;x.y=l+10;x.width=c-i;x.class="messageText";x.dy="1em";x.text=d;x.fontFamily=it.messageFontFamily;x.fontSize=it.messageFontSize;x.fontWeight=it.messageFontWeight;x.anchor=it.messageAlign;x.valign="center";x.textMargin=it.wrapPadding;x.tspan=false;if((0,o.Wi)(x.text)){await P(t,x,{startx:i,stopx:c,starty:a})}else{A(t,x)}const f=u.width;let y;if(i===c){if(it.rightAngles){y=t.append("path").attr("d",`M ${i},${a} H ${i+o.Y2.getMax(it.width/2,f/2)} V ${a+25} H ${i}`)}else{y=t.append("path").attr("d","M "+i+","+a+" C "+(i+60)+","+(a-10)+" "+(i+60)+","+(a+30)+" "+i+","+(a+20))}}else{y=t.append("line");y.attr("x1",i);y.attr("y1",a);y.attr("x2",c);y.attr("y2",a)}if(h===s.db.LINETYPE.DOTTED||h===s.db.LINETYPE.DOTTED_CROSS||h===s.db.LINETYPE.DOTTED_POINT||h===s.db.LINETYPE.DOTTED_OPEN||h===s.db.LINETYPE.BIDIRECTIONAL_DOTTED){y.style("stroke-dasharray","3, 3");y.attr("class","messageLine1")}else{y.attr("class","messageLine0")}let b="";if(it.arrowMarkerAbsolute){b=(0,o.ID)(true)}y.attr("stroke-width",2);y.attr("stroke","none");y.style("fill","none");if(h===s.db.LINETYPE.SOLID||h===s.db.LINETYPE.DOTTED){y.attr("marker-end","url("+b+"#arrowhead)")}if(h===s.db.LINETYPE.BIDIRECTIONAL_SOLID||h===s.db.LINETYPE.BIDIRECTIONAL_DOTTED){y.attr("marker-start","url("+b+"#arrowhead)");y.attr("marker-end","url("+b+"#arrowhead)")}if(h===s.db.LINETYPE.SOLID_POINT||h===s.db.LINETYPE.DOTTED_POINT){y.attr("marker-end","url("+b+"#filled-head)")}if(h===s.db.LINETYPE.SOLID_CROSS||h===s.db.LINETYPE.DOTTED_CROSS){y.attr("marker-end","url("+b+"#crosshead)")}if(g||it.showSequenceNumbers){const e=h===s.db.LINETYPE.BIDIRECTIONAL_SOLID||h===s.db.LINETYPE.BIDIRECTIONAL_DOTTED;if(e){const t=6;if(is){s=c.height}if(c.width+a.x>i){i=c.width+a.x}}return{maxHeight:s,maxWidth:i}}),"drawActorsPopup");var ft=(0,c.K2)((function(t){(0,o.hH)(it,t);if(t.fontFamily){it.actorFontFamily=it.noteFontFamily=it.messageFontFamily=t.fontFamily}if(t.fontSize){it.actorFontSize=it.noteFontSize=it.messageFontSize=t.fontSize}if(t.fontWeight){it.actorFontWeight=it.noteFontWeight=it.messageFontWeight=t.fontWeight}}),"setConf");var yt=(0,c.K2)((function(t){return nt.activations.filter((function(e){return e.actor===t}))}),"actorActivations");var bt=(0,c.K2)((function(t,e){const a=e.get(t);const r=yt(t);const s=r.reduce((function(t,e){return o.Y2.getMin(t,e.startx)}),a.x+a.width/2-1);const i=r.reduce((function(t,e){return o.Y2.getMax(t,e.stopx)}),a.x+a.width/2+1);return[s,i]}),"activationBounds");function mt(t,e,a,r,s){nt.bumpVerticalPos(a);let i=r;if(e.id&&e.message&&t[e.id]){const a=t[e.id].width;const s=ct(it);e.message=n._K.wrapLabel(`[${e.message}]`,a-2*it.wrapPadding,s);e.width=a;e.wrap=true;const l=n._K.calculateTextDimensions(e.message,s);const d=o.Y2.getMax(l.height,it.labelBoxHeight);i=r+d;c.Rm.debug(`${d} - ${e.message}`)}s(e);nt.bumpVerticalPos(i)}(0,c.K2)(mt,"adjustLoopHeightForWrap");function Tt(t,e,a,r,s,i,n){function o(a,r){if(a.x{t.add(e.from);t.add(e.to)}));y=y.filter((e=>t.has(e)))}gt(p,g,u,y,0,b,false);const k=await _t(b,g,w,r);st.insertArrowHead(p);st.insertArrowCrossHead(p);st.insertArrowFilledHead(p);st.insertSequenceNumber(p);function v(t,e){const a=nt.endActivation(t);if(a.starty+18>e){a.starty=e-6;e+=12}st.drawActivation(p,a,e,it,yt(t.from).length);nt.insert(a.startx,e-10,a.stopx,e)}(0,c.K2)(v,"activeEnd");let I=1;let L=1;const _=[];const P=[];let A=0;for(const o of b){let t,e,a;switch(o.type){case r.db.LINETYPE.NOTE:nt.resetVerticalPos();e=o.noteModel;await ot(p,e);break;case r.db.LINETYPE.ACTIVE_START:nt.newActivation(o,p,g);break;case r.db.LINETYPE.ACTIVE_END:v(o,nt.getVerticalPos());break;case r.db.LINETYPE.LOOP_START:mt(k,o,it.boxMargin,it.boxMargin+it.boxTextMargin,(t=>nt.newLoop(t)));break;case r.db.LINETYPE.LOOP_END:t=nt.endLoop();await st.drawLoop(p,t,"loop",it);nt.bumpVerticalPos(t.stopy-nt.getVerticalPos());nt.models.addLoop(t);break;case r.db.LINETYPE.RECT_START:mt(k,o,it.boxMargin,it.boxMargin,(t=>nt.newLoop(void 0,t.message)));break;case r.db.LINETYPE.RECT_END:t=nt.endLoop();P.push(t);nt.models.addLoop(t);nt.bumpVerticalPos(t.stopy-nt.getVerticalPos());break;case r.db.LINETYPE.OPT_START:mt(k,o,it.boxMargin,it.boxMargin+it.boxTextMargin,(t=>nt.newLoop(t)));break;case r.db.LINETYPE.OPT_END:t=nt.endLoop();await st.drawLoop(p,t,"opt",it);nt.bumpVerticalPos(t.stopy-nt.getVerticalPos());nt.models.addLoop(t);break;case r.db.LINETYPE.ALT_START:mt(k,o,it.boxMargin,it.boxMargin+it.boxTextMargin,(t=>nt.newLoop(t)));break;case r.db.LINETYPE.ALT_ELSE:mt(k,o,it.boxMargin+it.boxTextMargin,it.boxMargin,(t=>nt.addSectionToLoop(t)));break;case r.db.LINETYPE.ALT_END:t=nt.endLoop();await st.drawLoop(p,t,"alt",it);nt.bumpVerticalPos(t.stopy-nt.getVerticalPos());nt.models.addLoop(t);break;case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:mt(k,o,it.boxMargin,it.boxMargin+it.boxTextMargin,(t=>nt.newLoop(t)));nt.saveVerticalPos();break;case r.db.LINETYPE.PAR_AND:mt(k,o,it.boxMargin+it.boxTextMargin,it.boxMargin,(t=>nt.addSectionToLoop(t)));break;case r.db.LINETYPE.PAR_END:t=nt.endLoop();await st.drawLoop(p,t,"par",it);nt.bumpVerticalPos(t.stopy-nt.getVerticalPos());nt.models.addLoop(t);break;case r.db.LINETYPE.AUTONUMBER:I=o.message.start||I;L=o.message.step||L;if(o.message.visible){r.db.enableSequenceNumbers()}else{r.db.disableSequenceNumbers()}break;case r.db.LINETYPE.CRITICAL_START:mt(k,o,it.boxMargin,it.boxMargin+it.boxTextMargin,(t=>nt.newLoop(t)));break;case r.db.LINETYPE.CRITICAL_OPTION:mt(k,o,it.boxMargin+it.boxTextMargin,it.boxMargin,(t=>nt.addSectionToLoop(t)));break;case r.db.LINETYPE.CRITICAL_END:t=nt.endLoop();await st.drawLoop(p,t,"critical",it);nt.bumpVerticalPos(t.stopy-nt.getVerticalPos());nt.models.addLoop(t);break;case r.db.LINETYPE.BREAK_START:mt(k,o,it.boxMargin,it.boxMargin+it.boxTextMargin,(t=>nt.newLoop(t)));break;case r.db.LINETYPE.BREAK_END:t=nt.endLoop();await st.drawLoop(p,t,"break",it);nt.bumpVerticalPos(t.stopy-nt.getVerticalPos());nt.models.addLoop(t);break;default:try{a=o.msgModel;a.starty=nt.getVerticalPos();a.sequenceIndex=I;a.sequenceVisible=r.db.showSequenceNumbers();const t=await ht(p,a);Tt(o,a,t,A,g,u,x);_.push({messageModel:a,lineStartY:t});nt.models.addMessage(a)}catch(Y){c.Rm.error("error while drawing message",Y)}}if([r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT,r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(o.type)){I=I+L}A++}c.Rm.debug("createdActors",u);c.Rm.debug("destroyedActors",x);await ut(p,g,y,false);for(const o of _){await pt(p,o.messageModel,o.lineStartY,r)}if(it.mirrorActors){await ut(p,g,y,true)}P.forEach((t=>st.drawBackgroundRect(p,t)));O(p,g,y,it);for(const o of nt.models.boxes){o.height=nt.getVerticalPos()-o.y;nt.insert(o.x,o.y,o.x+o.width,o.height);const t=it.boxMargin*2;o.startx=o.x-t;o.starty=o.y-t*.25;o.stopx=o.startx+o.width+2*t;o.stopy=o.starty+o.height+t*.75;o.stroke="rgb(0,0,0, 0.5)";st.drawBox(p,o,it)}if(T){nt.bumpVerticalPos(it.boxMargin)}const N=xt(p,g,y,h);const{bounds:M}=nt.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=ct(it);let r=e.actorKeys.reduce(((e,a)=>e+=t.get(a).width+(t.get(a).margin||0)),0);const i=it.boxMargin*8;r+=i;r-=2*it.boxTextMargin;if(e.wrap){e.name=n._K.wrapLabel(e.name,r-2*it.wrapPadding,a)}const c=n._K.calculateTextDimensions(e.name,a);s=o.Y2.getMax(c.height,s);const l=o.Y2.getMax(r,c.width+2*it.wrapPadding);e.margin=it.boxTextMargin;if(rt.textMaxHeight=s));return o.Y2.getMax(r,it.height)}(0,c.K2)(vt,"calculateActorMargins");var It=(0,c.K2)((async function(t,e,a){const r=e.get(t.from);const s=e.get(t.to);const i=r.x;const l=s.x;const d=t.wrap&&t.message;let h=(0,o.Wi)(t.message)?await(0,o.Dl)(t.message,(0,o.D7)()):n._K.calculateTextDimensions(d?n._K.wrapLabel(t.message,it.width,lt(it)):t.message,lt(it));const p={width:d?it.width:o.Y2.getMax(it.width,h.width+2*it.noteMargin),height:0,startx:r.x,stopx:0,starty:0,stopy:0,message:t.message};if(t.placement===a.db.PLACEMENT.RIGHTOF){p.width=d?o.Y2.getMax(it.width,h.width):o.Y2.getMax(r.width/2+s.width/2,h.width+2*it.noteMargin);p.startx=i+(r.width+it.actorMargin)/2}else if(t.placement===a.db.PLACEMENT.LEFTOF){p.width=d?o.Y2.getMax(it.width,h.width+2*it.noteMargin):o.Y2.getMax(r.width/2+s.width/2,h.width+2*it.noteMargin);p.startx=i-p.width+(r.width-it.actorMargin)/2}else if(t.to===t.from){h=n._K.calculateTextDimensions(d?n._K.wrapLabel(t.message,o.Y2.getMax(it.width,r.width),lt(it)):t.message,lt(it));p.width=d?o.Y2.getMax(it.width,r.width):o.Y2.getMax(r.width,it.width,h.width+2*it.noteMargin);p.startx=i+(r.width-p.width)/2}else{p.width=Math.abs(i+r.width/2-(l+s.width/2))+it.actorMargin;p.startx=i2;const u=(0,c.K2)((t=>d?-t:t),"adjustValue");if(t.from===t.to){p=h}else{if(t.activate&&!g){p+=u(it.activationWidth/2-1)}if(![a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN].includes(t.type)){p+=u(3)}if([a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(t.type)){h-=u(3)}}const x=[r,s,i,l];const f=Math.abs(h-p);if(t.wrap&&t.message){t.message=n._K.wrapLabel(t.message,o.Y2.getMax(f+2*it.wrapPadding,it.width),ct(it))}const y=n._K.calculateTextDimensions(t.message,ct(it));return{width:o.Y2.getMax(t.wrap?0:y.width+2*it.wrapPadding,f+2*it.wrapPadding,it.width),height:0,startx:h,stopx:p,starty:0,stopy:0,message:t.message,type:t.type,wrap:t.wrap,fromBounds:Math.min.apply(null,x),toBounds:Math.max.apply(null,x)}}),"buildMessageModel");var _t=(0,c.K2)((async function(t,e,a,r){const s={};const i=[];let n,l,d;for(const c of t){switch(c.type){case r.db.LINETYPE.LOOP_START:case r.db.LINETYPE.ALT_START:case r.db.LINETYPE.OPT_START:case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:case r.db.LINETYPE.CRITICAL_START:case r.db.LINETYPE.BREAK_START:i.push({id:c.id,msg:c.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case r.db.LINETYPE.ALT_ELSE:case r.db.LINETYPE.PAR_AND:case r.db.LINETYPE.CRITICAL_OPTION:if(c.message){n=i.pop();s[n.id]=n;s[c.id]=n;i.push(n)}break;case r.db.LINETYPE.LOOP_END:case r.db.LINETYPE.ALT_END:case r.db.LINETYPE.OPT_END:case r.db.LINETYPE.PAR_END:case r.db.LINETYPE.CRITICAL_END:case r.db.LINETYPE.BREAK_END:n=i.pop();s[n.id]=n;break;case r.db.LINETYPE.ACTIVE_START:{const t=e.get(c.from?c.from:c.to.actor);const a=yt(c.from?c.from:c.to.actor).length;const r=t.x+t.width/2+(a-1)*it.activationWidth/2;const s={startx:r,stopx:r+it.activationWidth,actor:c.from,enabled:true};nt.activations.push(s)}break;case r.db.LINETYPE.ACTIVE_END:{const t=nt.activations.map((t=>t.actor)).lastIndexOf(c.from);nt.activations.splice(t,1).splice(0,1)}break}const t=c.placement!==void 0;if(t){l=await It(c,e,r);c.noteModel=l;i.forEach((t=>{n=t;n.from=o.Y2.getMin(n.from,l.startx);n.to=o.Y2.getMax(n.to,l.startx+l.width);n.width=o.Y2.getMax(n.width,Math.abs(n.from-n.to))-it.labelBoxWidth}))}else{d=Lt(c,e,r);c.msgModel=d;if(d.startx&&d.stopx&&i.length>0){i.forEach((t=>{n=t;if(d.startx===d.stopx){const t=e.get(c.from);const a=e.get(c.to);n.from=o.Y2.getMin(t.x-d.width/2,t.x-t.width/2,n.from);n.to=o.Y2.getMax(a.x+d.width/2,a.x+t.width/2,n.to);n.width=o.Y2.getMax(n.width,Math.abs(n.to-n.from))-it.labelBoxWidth}else{n.from=o.Y2.getMin(d.startx,n.from);n.to=o.Y2.getMax(d.stopx,n.to);n.width=o.Y2.getMax(n.width,d.width)-it.labelBoxWidth}}))}}}nt.activations=[];c.Rm.debug("Loop type widths:",s);return s}),"calculateLoopBounds");var Pt={bounds:nt,drawActors:ut,drawActorsPopup:xt,setConf:ft,draw:Et};var At={parser:p,get db(){return new y},renderer:Pt,styles:m,init:(0,c.K2)((t=>{if(!t.sequence){t.sequence={}}if(t.wrap){t.sequence.wrap=t.wrap;(0,o.XV)({sequence:{wrap:t.wrap}})}}),"init")}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/8313.aac706f5036a7209b3a8.js b/share/jupyter/lab/static/8313.aac706f5036a7209b3a8.js new file mode 100644 index 0000000..d47b4a1 --- /dev/null +++ b/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/share/jupyter/lab/static/8326.9dda93079a9e4f1b9be6.js b/share/jupyter/lab/static/8326.9dda93079a9e4f1b9be6.js new file mode 100644 index 0000000..5c02626 --- /dev/null +++ b/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/share/jupyter/lab/static/8368.c75a4b32ae45ec88465d.js b/share/jupyter/lab/static/8368.c75a4b32ae45ec88465d.js new file mode 100644 index 0000000..0fab82b --- /dev/null +++ b/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/share/jupyter/lab/static/8398.3d287e26fdb57912a93a.js b/share/jupyter/lab/static/8398.3d287e26fdb57912a93a.js new file mode 100644 index 0000000..e579c26 --- /dev/null +++ b/share/jupyter/lab/static/8398.3d287e26fdb57912a93a.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8398],{78398:(r,a,e)=>{e.d(a,{diagram:()=>d});var s=e(67863);var t=e(10628);var v=e(46884);var l=e(47925);var p=e(78188);var i=e(25301);var n=e(46103);var u=e(47655);var c=e(15164);var o=e(55750);var b=e(95035);var _=e(29131);var k=e(42418);var w=e(70416);var d={parser:s._$,get db(){return new s.NM},renderer:s.Lh,styles:s.tM,init:(0,w.K2)((r=>{if(!r.class){r.class={}}r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute}),"init")}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/84.fe0a55d7756c37585fb4.js b/share/jupyter/lab/static/84.fe0a55d7756c37585fb4.js new file mode 100644 index 0000000..824a9e7 --- /dev/null +++ b/share/jupyter/lab/static/84.fe0a55d7756c37585fb4.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[84],{50084:(e,t,n)=>{n.r(t);n.d(t,{shell:()=>p});var r={};function s(e,t){for(var n=0;n1)e.eat("$");var n=e.next();if(/['"({]/.test(n)){t.tokens[0]=f(n,n=="("?"quote":n=="{"?"def":"string");return h(e,t)}if(!/\d/.test(n))e.eatWhile(/\w/);t.tokens.shift();return"def"};function k(e){return function(t,n){if(t.sol()&&t.string==e)n.tokens.shift();t.skipToEnd();return"string.special"}}function h(e,t){return(t.tokens[0]||a)(e,t)}const p={name:"shell",startState:function(){return{tokens:[]}},token:function(e,t){return h(e,t)},languageData:{autocomplete:i.concat(o,u),closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/8418.42e29778d4b49fb54e8e.js b/share/jupyter/lab/static/8418.42e29778d4b49fb54e8e.js new file mode 100644 index 0000000..773501d --- /dev/null +++ b/share/jupyter/lab/static/8418.42e29778d4b49fb54e8e.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8418],{28418:(e,t,r)=>{r.r(t);r.d(t,{go:()=>d});var n={break:true,case:true,chan:true,const:true,continue:true,default:true,defer:true,else:true,fallthrough:true,for:true,func:true,go:true,goto:true,if:true,import:true,interface:true,map:true,package:true,range:true,return:true,select:true,struct:true,switch:true,type:true,var:true,bool:true,byte:true,complex64:true,complex128:true,float32:true,float64:true,int8:true,int16:true,int32:true,int64:true,string:true,uint8:true,uint16:true,uint32:true,uint64:true,int:true,uint:true,uintptr:true,error:true,rune:true,any:true,comparable:true};var u={true:true,false:true,iota:true,nil:true,append:true,cap:true,close:true,complex:true,copy:true,delete:true,imag:true,len:true,make:true,new:true,panic:true,print:true,println:true,real:true,recover:true};var i=/[+\-*&^%:=<>!|\/]/;var a;function l(e,t){var r=e.next();if(r=='"'||r=="'"||r=="`"){t.tokenize=o(r);return t.tokenize(e,t)}if(/[\d\.]/.test(r)){if(r=="."){e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/)}else if(r=="0"){e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/)}else{e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/)}return"number"}if(/[\[\]{}\(\),;\:\.]/.test(r)){a=r;return null}if(r=="/"){if(e.eat("*")){t.tokenize=c;return c(e,t)}if(e.eat("/")){e.skipToEnd();return"comment"}}if(i.test(r)){e.eatWhile(i);return"operator"}e.eatWhile(/[\w\$_\xa1-\uffff]/);var l=e.current();if(n.propertyIsEnumerable(l)){if(l=="case"||l=="default")a="case";return"keyword"}if(u.propertyIsEnumerable(l))return"atom";return"variable"}function o(e){return function(t,r){var n=false,u,i=false;while((u=t.next())!=null){if(u==e&&!n){i=true;break}n=!n&&e!="`"&&u=="\\"}if(i||!(n||e=="`"))r.tokenize=l;return"string"}}function c(e,t){var r=false,n;while(n=e.next()){if(n=="/"&&r){t.tokenize=l;break}r=n=="*"}return"comment"}function f(e,t,r,n,u){this.indented=e;this.column=t;this.type=r;this.align=n;this.prev=u}function s(e,t,r){return e.context=new f(e.indented,t,r,null,e.context)}function p(e){if(!e.context.prev)return;var t=e.context.type;if(t==")"||t=="]"||t=="}")e.indented=e.context.indented;return e.context=e.context.prev}const d={name:"go",startState:function(e){return{tokenize:null,context:new f(-e,0,"top",false),indented:0,startOfLine:true}},token:function(e,t){var r=t.context;if(e.sol()){if(r.align==null)r.align=false;t.indented=e.indentation();t.startOfLine=true;if(r.type=="case")r.type="}"}if(e.eatSpace())return null;a=null;var n=(t.tokenize||l)(e,t);if(n=="comment")return n;if(r.align==null)r.align=true;if(a=="{")s(t,e.column(),"}");else if(a=="[")s(t,e.column(),"]");else if(a=="(")s(t,e.column(),")");else if(a=="case")r.type="case";else if(a=="}"&&r.type=="}")p(t);else if(a==r.type)p(t);t.startOfLine=false;return n},indent:function(e,t,r){if(e.tokenize!=l&&e.tokenize!=null)return null;var n=e.context,u=t&&t.charAt(0);if(n.type=="case"&&/^(?:case|default)\b/.test(t))return n.indented;var i=u==n.type;if(n.align)return n.column+(i?0:1);else return n.indented+(i?0:r.unit)},languageData:{indentOnInput:/^\s([{}]|case |default\s*:)$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/8447.5813c22f1e89cbbcb439.js b/share/jupyter/lab/static/8447.5813c22f1e89cbbcb439.js new file mode 100644 index 0000000..3512776 --- /dev/null +++ b/share/jupyter/lab/static/8447.5813c22f1e89cbbcb439.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8447],{67901:(t,e,r)=>{var n=1/0;var o="[object Symbol]";var u=/[&<>"'`]/g,a=RegExp(u.source);var c={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"};var p=typeof r.g=="object"&&r.g&&r.g.Object===Object&&r.g;var f=typeof self=="object"&&self&&self.Object===Object&&self;var l=p||f||Function("return this")();function i(t){return function(e){return t==null?undefined:t[e]}}var b=i(c);var s=Object.prototype;var v=s.toString;var y=l.Symbol;var j=y?y.prototype:undefined,g=j?j.toString:undefined;function d(t){if(typeof t=="string"){return t}if(O(t)){return g?g.call(t):""}var e=t+"";return e=="0"&&1/t==-n?"-0":e}function _(t){return!!t&&typeof t=="object"}function O(t){return typeof t=="symbol"||_(t)&&v.call(t)==o}function h(t){return t==null?"":d(t)}function k(t){t=h(t);return t&&a.test(t)?t.replace(u,b):t}t.exports=k}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/8614.cbd4af0b60bdf71a70fe.js b/share/jupyter/lab/static/8614.cbd4af0b60bdf71a70fe.js new file mode 100644 index 0000000..10766ed --- /dev/null +++ b/share/jupyter/lab/static/8614.cbd4af0b60bdf71a70fe.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8614],{78614:(a,e,p)=>{p.d(e,{createPacketServices:()=>t.$});var t=p(81163);var c=p(11254)}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/867.e814bf26fbfc77fc4f16.js b/share/jupyter/lab/static/867.e814bf26fbfc77fc4f16.js new file mode 100644 index 0000000..88011cf --- /dev/null +++ b/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{a.d(t,{S:()=>l});var s=a(70416);function l(e,t){if(e.accDescr){t.setAccDescription?.(e.accDescr)}if(e.accTitle){t.setAccTitle?.(e.accTitle)}if(e.title){t.setDiagramTitle?.(e.title)}}(0,s.K2)(l,"populateCommonDb")},47925:(e,t,a)=>{a.d(t,{P:()=>n});var s=a(42418);var l=a(70416);var n=(0,l.K2)(((e,t,a,n)=>{e.attr("class",a);const{width:c,height:i,x:d,y:p}=r(e,t);(0,s.a$)(e,i,c,n);const h=o(d,p,c,i,t);e.attr("viewBox",h);l.Rm.debug(`viewBox configured: ${h} with padding: ${t}`)}),"setupViewPortForSVG");var r=(0,l.K2)(((e,t)=>{const a=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:a.width+t*2,height:a.height+t*2,x:a.x,y:a.y}}),"calculateDimensionsWithPadding");var o=(0,l.K2)(((e,t,a,s,l)=>`${e-l} ${t-l} ${a} ${s}`),"createViewBox")},8491:(e,t,a)=>{a.d(t,{diagram:()=>L});var s=a(29479);var l=a(47925);var n=a(55750);var r=a(85054);var o=a(29131);var c=a(42418);var i=a(70416);var d=a(24010);var p=a(1218);var h=class{constructor(){this.nodes=[];this.levels=new Map;this.outerNodes=[];this.classes=new Map;this.setAccTitle=c.SV;this.getAccTitle=c.iN;this.setDiagramTitle=c.ke;this.getDiagramTitle=c.ab;this.getAccDescription=c.m7;this.setAccDescription=c.EI}static{(0,i.K2)(this,"TreeMapDB")}getNodes(){return this.nodes}getConfig(){const e=c.UI;const t=(0,c.zj)();return(0,o.$t)({...e.treemap,...t.treemap??{}})}addNode(e,t){this.nodes.push(e);this.levels.set(e,t);if(t===0){this.outerNodes.push(e);this.root??=e}}getRoot(){return{name:"",children:this.outerNodes}}addClass(e,t){const a=this.classes.get(e)??{id:e,styles:[],textStyles:[]};const s=t.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");if(s){s.forEach((e=>{if((0,n.KX)(e)){if(a?.textStyles){a.textStyles.push(e)}else{a.textStyles=[e]}}if(a?.styles){a.styles.push(e)}else{a.styles=[e]}}))}this.classes.set(e,a)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){(0,c.IU)();this.nodes=[];this.levels=new Map;this.outerNodes=[];this.classes=new Map;this.root=void 0}};function f(e){if(!e.length){return[]}const t=[];const a=[];e.forEach((e=>{const s={name:e.name,children:e.type==="Leaf"?void 0:[]};s.classSelector=e?.classSelector;if(e?.cssCompiledStyles){s.cssCompiledStyles=[e.cssCompiledStyles]}if(e.type==="Leaf"&&e.value!==void 0){s.value=e.value}while(a.length>0&&a[a.length-1].level>=e.level){a.pop()}if(a.length===0){t.push(s)}else{const e=a[a.length-1].node;if(e.children){e.children.push(s)}else{e.children=[s]}}if(e.type!=="Leaf"){a.push({node:s,level:e.level})}}));return t}(0,i.K2)(f,"buildHierarchy");var m=(0,i.K2)(((e,t)=>{(0,r.S)(e,t);const a=[];for(const n of e.TreemapRows??[]){if(n.$type==="ClassDefStatement"){t.addClass(n.className??"",n.styleText??"")}}for(const n of e.TreemapRows??[]){const e=n.item;if(!e){continue}const s=n.indent?parseInt(n.indent):0;const l=y(e);const r=e.classSelector?t.getStylesForClass(e.classSelector):[];const o=r.length>0?r.join(";"):void 0;const c={level:s,name:l,type:e.$type,value:e.value,classSelector:e.classSelector,cssCompiledStyles:o};a.push(c)}const s=f(a);const l=(0,i.K2)(((e,a)=>{for(const s of e){t.addNode(s,a);if(s.children&&s.children.length>0){l(s.children,a+1)}}}),"addNodesRecursively");l(s,0)}),"populate");var y=(0,i.K2)((e=>e.name?String(e.name):""),"getItemName");var u={parser:{yy:void 0},parse:(0,i.K2)((async e=>{try{const t=d.qg;const a=await t("treemap",e);i.Rm.debug("Treemap AST:",a);const s=u.parser?.yy;if(!(s instanceof h)){throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.")}m(a,s)}catch(t){i.Rm.error("Error parsing treemap:",t);throw t}}),"parse")};var S=10;var g=10;var x=25;var v=(0,i.K2)(((e,t,a,r)=>{const o=r.db;const d=o.getConfig();const h=d.padding??S;const f=o.getDiagramTitle();const m=o.getRoot();const{themeVariables:y}=(0,c.zj)();if(!m){return}const u=f?30:0;const v=(0,s.D)(t);const b=d.nodeWidth?d.nodeWidth*g:960;const w=d.nodeHeight?d.nodeHeight*g:500;const $=b;const C=w+u;v.attr("viewBox",`0 0 ${$} ${C}`);(0,c.a$)(v,C,$,d.useMaxWidth);let k;try{const e=d.valueFormat||",";if(e==="$0,0"){k=(0,i.K2)((e=>"$"+(0,p.GPZ)(",")(e)),"valueFormat")}else if(e.startsWith("$")&&e.includes(",")){const t=/\.\d+/.exec(e);const a=t?t[0]:"";k=(0,i.K2)((e=>"$"+(0,p.GPZ)(","+a)(e)),"valueFormat")}else if(e.startsWith("$")){const t=e.substring(1);k=(0,i.K2)((e=>"$"+(0,p.GPZ)(t||"")(e)),"valueFormat")}else{k=(0,p.GPZ)(e)}}catch(A){i.Rm.error("Error creating format function:",A);k=(0,p.GPZ)(",")}const L=(0,p.UMr)().range(["transparent",y.cScale0,y.cScale1,y.cScale2,y.cScale3,y.cScale4,y.cScale5,y.cScale6,y.cScale7,y.cScale8,y.cScale9,y.cScale10,y.cScale11]);const T=(0,p.UMr)().range(["transparent",y.cScalePeer0,y.cScalePeer1,y.cScalePeer2,y.cScalePeer3,y.cScalePeer4,y.cScalePeer5,y.cScalePeer6,y.cScalePeer7,y.cScalePeer8,y.cScalePeer9,y.cScalePeer10,y.cScalePeer11]);const M=(0,p.UMr)().range([y.cScaleLabel0,y.cScaleLabel1,y.cScaleLabel2,y.cScaleLabel3,y.cScaleLabel4,y.cScaleLabel5,y.cScaleLabel6,y.cScaleLabel7,y.cScaleLabel8,y.cScaleLabel9,y.cScaleLabel10,y.cScaleLabel11]);if(f){v.append("text").attr("x",$/2).attr("y",u/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(f)}const P=v.append("g").attr("transform",`translate(0, ${u})`).attr("class","treemapContainer");const z=(0,p.Sk5)(m).sum((e=>e.value??0)).sort(((e,t)=>(t.value??0)-(e.value??0)));const F=(0,p.hkb)().size([b,w]).paddingTop((e=>e.children&&e.children.length>0?x+g:0)).paddingInner(h).paddingLeft((e=>e.children&&e.children.length>0?g:0)).paddingRight((e=>e.children&&e.children.length>0?g:0)).paddingBottom((e=>e.children&&e.children.length>0?g:0)).round(true);const K=F(z);const D=K.descendants().filter((e=>e.children&&e.children.length>0));const N=P.selectAll(".treemapSection").data(D).enter().append("g").attr("class","treemapSection").attr("transform",(e=>`translate(${e.x0},${e.y0})`));N.append("rect").attr("width",(e=>e.x1-e.x0)).attr("height",x).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",(e=>{if(e.depth===0){return"display: none;"}return""}));N.append("clipPath").attr("id",((e,a)=>`clip-section-${t}-${a}`)).append("rect").attr("width",(e=>Math.max(0,e.x1-e.x0-12))).attr("height",x);N.append("rect").attr("width",(e=>e.x1-e.x0)).attr("height",(e=>e.y1-e.y0)).attr("class",((e,t)=>`treemapSection section${t}`)).attr("fill",(e=>L(e.data.name))).attr("fill-opacity",.6).attr("stroke",(e=>T(e.data.name))).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",(e=>{if(e.depth===0){return"display: none;"}const t=(0,n.GX)({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}));N.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",x/2).attr("dominant-baseline","middle").text((e=>e.depth===0?"":e.data.name)).attr("font-weight","bold").attr("style",(e=>{if(e.depth===0){return"display: none;"}const t="dominant-baseline: middle; font-size: 12px; fill:"+M(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;";const a=(0,n.GX)({cssCompiledStyles:e.data.cssCompiledStyles});return t+a.labelStyles.replace("color:","fill:")})).each((function(e){if(e.depth===0){return}const t=(0,p.Ltv)(this);const a=e.data.name;t.text(a);const s=e.x1-e.x0;const l=6;let n;if(d.showValues!==false&&e.value){const e=s-10;const t=30;const a=10;const r=e-t-a;n=r-l}else{const e=6;n=s-l-e}const r=15;const o=Math.max(r,n);const c=t.node();const i=c.getComputedTextLength();if(i>o){const e="...";let s=a;while(s.length>0){s=a.substring(0,s.length-1);if(s.length===0){t.text(e);if(c.getComputedTextLength()>o){t.text("")}break}t.text(s+e);if(c.getComputedTextLength()<=o){break}}}}));if(d.showValues!==false){N.append("text").attr("class","treemapSectionValue").attr("x",(e=>e.x1-e.x0-10)).attr("y",x/2).attr("text-anchor","end").attr("dominant-baseline","middle").text((e=>e.value?k(e.value):"")).attr("font-style","italic").attr("style",(e=>{if(e.depth===0){return"display: none;"}const t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+M(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;";const a=(0,n.GX)({cssCompiledStyles:e.data.cssCompiledStyles});return t+a.labelStyles.replace("color:","fill:")}))}const G=K.leaves();const V=P.selectAll(".treemapLeafGroup").data(G).enter().append("g").attr("class",((e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`)).attr("transform",(e=>`translate(${e.x0},${e.y0})`));V.append("rect").attr("width",(e=>e.x1-e.x0)).attr("height",(e=>e.y1-e.y0)).attr("class","treemapLeaf").attr("fill",(e=>e.parent?L(e.parent.data.name):L(e.data.name))).attr("style",(e=>{const t=(0,n.GX)({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles})).attr("fill-opacity",.3).attr("stroke",(e=>e.parent?L(e.parent.data.name):L(e.data.name))).attr("stroke-width",3);V.append("clipPath").attr("id",((e,a)=>`clip-${t}-${a}`)).append("rect").attr("width",(e=>Math.max(0,e.x1-e.x0-4))).attr("height",(e=>Math.max(0,e.y1-e.y0-4)));const W=V.append("text").attr("class","treemapLabel").attr("x",(e=>(e.x1-e.x0)/2)).attr("y",(e=>(e.y1-e.y0)/2)).attr("style",(e=>{const t="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+M(e.data.name)+";";const a=(0,n.GX)({cssCompiledStyles:e.data.cssCompiledStyles});return t+a.labelStyles.replace("color:","fill:")})).attr("clip-path",((e,a)=>`url(#clip-${t}-${a})`)).text((e=>e.data.name));W.each((function(e){const t=(0,p.Ltv)(this);const a=e.x1-e.x0;const s=e.y1-e.y0;const l=t.node();const n=4;const r=a-2*n;const o=s-2*n;if(r<10||o<10){t.style("display","none");return}let c=parseInt(t.style("font-size"),10);const i=8;const d=28;const h=.6;const f=6;const m=2;while(l.getComputedTextLength()>r&&c>i){c--;t.style("font-size",`${c}px`)}let y=Math.max(f,Math.min(d,Math.round(c*h)));let u=c+m+y;while(u>o&&c>i){c--;y=Math.max(f,Math.min(d,Math.round(c*h)));if(yo){}}t.style("font-size",`${c}px`);if(l.getComputedTextLength()>r||c(e.x1-e.x0)/2)).attr("y",(function(e){return(e.y1-e.y0)/2})).attr("style",(e=>{const t="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+M(e.data.name)+";";const a=(0,n.GX)({cssCompiledStyles:e.data.cssCompiledStyles});return t+a.labelStyles.replace("color:","fill:")})).attr("clip-path",((e,a)=>`url(#clip-${t}-${a})`)).text((e=>e.value?k(e.value):""));e.each((function(e){const t=(0,p.Ltv)(this);const a=this.parentNode;if(!a){t.style("display","none");return}const s=(0,p.Ltv)(a).select(".treemapLabel");if(s.empty()||s.style("display")==="none"){t.style("display","none");return}const l=parseFloat(s.style("font-size"));const n=28;const r=.6;const o=6;const c=2;const i=Math.max(o,Math.min(n,Math.round(l*r)));t.style("font-size",`${i}px`);const d=(e.y1-e.y0)/2;const h=d+l/2+c;t.attr("y",h);const f=e.x1-e.x0;const m=e.y1-e.y0;const y=4;const u=m-y;const S=f-2*4;if(t.node().getComputedTextLength()>S||h+i>u||i{const t=(0,o.$t)($,e);return`\n .treemapNode.section {\n stroke: ${t.sectionStrokeColor};\n stroke-width: ${t.sectionStrokeWidth};\n fill: ${t.sectionFillColor};\n }\n .treemapNode.leaf {\n stroke: ${t.leafStrokeColor};\n stroke-width: ${t.leafStrokeWidth};\n fill: ${t.leafFillColor};\n }\n .treemapLabel {\n fill: ${t.labelColor};\n font-size: ${t.labelFontSize};\n }\n .treemapValue {\n fill: ${t.valueColor};\n font-size: ${t.valueFontSize};\n }\n .treemapTitle {\n fill: ${t.titleColor};\n font-size: ${t.titleFontSize};\n }\n `}),"getStyles");var k=C;var L={parser:u,get db(){return new h},renderer:w,styles:k}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/874.be636e15937f9ef70121.js b/share/jupyter/lab/static/874.be636e15937f9ef70121.js new file mode 100644 index 0000000..0ef8b33 --- /dev/null +++ b/share/jupyter/lab/static/874.be636e15937f9ef70121.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[874],{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/share/jupyter/lab/static/8753.56da17175b663d61f9d3.js b/share/jupyter/lab/static/8753.56da17175b663d61f9d3.js new file mode 100644 index 0000000..c9f7e6a --- /dev/null +++ b/share/jupyter/lab/static/8753.56da17175b663d61f9d3.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8753],{58753:(e,t,n)=>{n.r(t);n.d(t,{sparql:()=>x});var r;function a(e){return new RegExp("^(?:"+e.join("|")+")$","i")}var i=a(["str","lang","langmatches","datatype","bound","sameterm","isiri","isuri","iri","uri","bnode","count","sum","min","max","avg","sample","group_concat","rand","abs","ceil","floor","round","concat","substr","strlen","replace","ucase","lcase","encode_for_uri","contains","strstarts","strends","strbefore","strafter","year","month","day","hours","minutes","seconds","timezone","tz","now","uuid","struuid","md5","sha1","sha256","sha384","sha512","coalesce","if","strlang","strdt","isnumeric","regex","exists","isblank","isliteral","a","bind"]);var u=a(["base","prefix","select","distinct","reduced","construct","describe","ask","from","named","where","order","limit","offset","filter","optional","graph","by","asc","desc","as","having","undef","values","group","minus","in","not","service","silent","using","insert","delete","union","true","false","with","data","copy","to","move","add","create","drop","clear","load","into"]);var o=/[*+\-<>=&|\^\/!\?]/;var s="[A-Za-z_\\-0-9]";var l=new RegExp("[A-Za-z]");var c=new RegExp("(("+s+"|\\.)*("+s+"))?:");function f(e,t){var n=e.next();r=null;if(n=="$"||n=="?"){if(n=="?"&&e.match(/\s/,false)){return"operator"}e.match(/^[A-Za-z0-9_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][A-Za-z0-9_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*/);return"variableName.local"}else if(n=="<"&&!e.match(/^[\s\u00a0=]/,false)){e.match(/^[^\s\u00a0>]*>?/);return"atom"}else if(n=='"'||n=="'"){t.tokenize=d(n);return t.tokenize(e,t)}else if(/[{}\(\),\.;\[\]]/.test(n)){r=n;return"bracket"}else if(n=="#"){e.skipToEnd();return"comment"}else if(o.test(n)){return"operator"}else if(n==":"){p(e);return"atom"}else if(n=="@"){e.eatWhile(/[a-z\d\-]/i);return"meta"}else if(l.test(n)&&e.match(c)){p(e);return"atom"}e.eatWhile(/[_\w\d]/);var a=e.current();if(i.test(a))return"builtin";else if(u.test(a))return"keyword";else return"variable"}function p(e){e.match(/(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/i)}function d(e){return function(t,n){var r=false,a;while((a=t.next())!=null){if(a==e&&!r){n.tokenize=f;break}r=!r&&a=="\\"}return"string"}}function m(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 x={name:"sparql",startState:function(){return{tokenize:f,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=="(")m(t,")",e.column());else if(r=="[")m(t,"]",e.column());else if(r=="{")m(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);if(r=="}"&&t.context&&t.context.type=="pattern")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))m(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 a=e.context;if(/[\]\}]/.test(r))while(a&&a.type=="pattern")a=a.prev;var i=a&&r==a.type;if(!a)return 0;else if(a.type=="pattern")return a.col;else if(a.align)return a.col+(i?0:1);else return a.indent+(i?0:n.unit)},languageData:{commentTokens:{line:"#"}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/8778.a3883f9acac5a903d6be.js b/share/jupyter/lab/static/8778.a3883f9acac5a903d6be.js new file mode 100644 index 0000000..dd72c56 --- /dev/null +++ b/share/jupyter/lab/static/8778.a3883f9acac5a903d6be.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8778,5606],{65606:e=>{var t=e.exports={};var r;var n;function s(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){r=setTimeout}else{r=s}}catch(e){r=s}try{if(typeof clearTimeout==="function"){n=clearTimeout}else{n=o}}catch(e){n=o}})();function a(e){if(r===setTimeout){return setTimeout(e,0)}if((r===s||!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 i(e){if(n===clearTimeout){return clearTimeout(e)}if((n===o||!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 p=-1;function f(){if(!c||!u){return}c=false;if(u.length){l=u.concat(l)}else{p=-1}if(l.length){h()}}function h(){if(c){return}var e=a(f);c=true;var t=l.length;while(t){u=l;l=[];while(++p1){for(var r=1;r{!function(t,n){true?e.exports=n(r(44914)):0}(r.g,(function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)r.d(n,s,function(t){return e[t]}.bind(null,s));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=4)}([function(e,t,r){e.exports=r(2)()},function(t,r){t.exports=e},function(e,t,r){"use strict";var n=r(3);function s(){}function o(){}o.resetWarningCache=s,e.exports=function(){function e(e,t,r,s,o,a){if(a!==n){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:s};return r.PropTypes=r,r}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,r,n){"use strict";n.r(r);var s=n(1),o=n.n(s),a=n(0),i=n.n(a);function l(){return(l=Object.assign||function(e){for(var t=1;t0&&t.handlePageSelected(r-1,e)})),N(R(t),"handleNextPage",(function(e){var r=t.state.selected,n=t.props.pageCount;e.preventDefault?e.preventDefault():e.returnValue=!1,rs-n/2?d=n-(g=s-u):us-a||f>=u-d&&f<=u+g?e.push(v(f)):i&&e[e.length-1]!==m&&(m=o.a.createElement(h,{key:f,breakLabel:i,breakClassName:l,breakLinkClassName:c,breakHandler:t.handleBreakClick.bind(null,f),getEventListener:t.getEventListener}),e.push(m))}return e})),r=e.initialPage?e.initialPage:e.forcePage?e.forcePage:0,t.state={selected:r},t}return t=a,(r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.initialPage,r=e.disableInitialCallback,n=e.extraAriaContext;void 0===t||r||this.callCallback(t),n&&console.warn("DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead.")}},{key:"componentDidUpdate",value:function(e){void 0!==this.props.forcePage&&this.props.forcePage!==e.forcePage&&this.setState({selected:this.props.forcePage})}},{key:"getForwardJump",value:function(){var e=this.state.selected,t=this.props,r=t.pageCount,n=e+t.pageRangeDisplayed;return n>=r?r-1:n}},{key:"getBackwardJump",value:function(){var e=this.state.selected-this.props.pageRangeDisplayed;return e<0?0:e}},{key:"hrefBuilder",value:function(e){var t=this.props,r=t.hrefBuilder,n=t.pageCount;if(r&&e!==this.state.selected&&e>=0&&e=0&&e{const n=Symbol("SemVer ANY");class s{static get ANY(){return n}constructor(e,t){t=o(t);if(e instanceof s){if(e.loose===!!t.loose){return e}else{e=e.value}}e=e.trim().split(/\s+/).join(" ");c("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===n){this.value=""}else{this.value=this.operator+this.semver.version}c("comp",this)}parse(e){const t=this.options.loose?a[i.COMPARATORLOOSE]:a[i.COMPARATOR];const r=e.match(t);if(!r){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=n}else{this.semver=new u(r[2],this.options.loose)}}toString(){return this.value}test(e){c("Comparator.test",e,this.options.loose);if(this.semver===n||e===n){return true}if(typeof e==="string"){try{e=new u(e,this.options)}catch(t){return false}}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof s)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new p(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new p(this.value,t).test(e.semver)}t=o(t);if(t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")){return false}if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&e.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&e.operator.startsWith("<")){return true}if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")){return true}if(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=s;const o=r(98587);const{safeRe:a,t:i}=r(99718);const l=r(72111);const c=r(57272);const u=r(31527);const p=r(78311)},78311:(e,t,r)=>{const n=/\s+/g;class s{constructor(e,t){t=i(t);if(e instanceof s){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new s(e.raw,t)}}if(e instanceof l){this.raw=e.value;this.set=[[e]];this.formatted=undefined;return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().replace(n," ");this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!v(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&L(e[0])){this.set=[e];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let e=0;e0){this.formatted+="||"}const t=this.set[e];for(let e=0;e0){this.formatted+=" "}this.formatted+=t[e].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&d)|(this.options.loose&&g);const r=t+":"+e;const n=a.get(r);if(n){return n}const s=this.options.loose;const o=s?p[f.HYPHENRANGELOOSE]:p[f.HYPHENRANGE];e=e.replace(o,A(this.options.includePrerelease));c("hyphen replace",e);e=e.replace(p[f.COMPARATORTRIM],h);c("comparator trim",e);e=e.replace(p[f.TILDETRIM],E);c("tilde trim",e);e=e.replace(p[f.CARETTRIM],m);c("caret trim",e);let i=e.split(" ").map((e=>$(e,this.options))).join(" ").split(/\s+/).map((e=>C(e,this.options)));if(s){i=i.filter((e=>{c("loose invalid filter",e,this.options);return!!e.match(p[f.COMPARATORLOOSE])}))}c("range list",i);const u=new Map;const L=i.map((e=>new l(e,this.options)));for(const a of L){if(v(a)){return[a]}u.set(a.value,a)}if(u.size>1&&u.has("")){u.delete("")}const R=[...u.values()];a.set(r,R);return R}intersects(e,t){if(!(e instanceof s)){throw new TypeError("a Range is required")}return this.set.some((r=>R(r,t)&&e.set.some((e=>R(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new u(e,this.options)}catch(t){return false}}for(let r=0;re.value==="<0.0.0-0";const L=e=>e.value==="";const R=(e,t)=>{let r=true;const n=e.slice();let s=n.pop();while(r&&n.length){r=n.every((e=>s.intersects(e,t)));s=n.pop()}return r};const $=(e,t)=>{c("comp",e,t);e=O(e,t);c("caret",e);e=I(e,t);c("tildes",e);e=T(e,t);c("xrange",e);e=w(e,t);c("stars",e);return e};const N=e=>!e||e.toLowerCase()==="x"||e==="*";const I=(e,t)=>e.trim().split(/\s+/).map((e=>b(e,t))).join(" ");const b=(e,t)=>{const r=t.loose?p[f.TILDELOOSE]:p[f.TILDE];return e.replace(r,((t,r,n,s,o)=>{c("tilde",e,t,r,n,s,o);let a;if(N(r)){a=""}else if(N(n)){a=`>=${r}.0.0 <${+r+1}.0.0-0`}else if(N(s)){a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`}else if(o){c("replaceTilde pr",o);a=`>=${r}.${n}.${s}-${o} <${r}.${+n+1}.0-0`}else{a=`>=${r}.${n}.${s} <${r}.${+n+1}.0-0`}c("tilde return",a);return a}))};const O=(e,t)=>e.trim().split(/\s+/).map((e=>y(e,t))).join(" ");const y=(e,t)=>{c("caret",e,t);const r=t.loose?p[f.CARETLOOSE]:p[f.CARET];const n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,s,o,a)=>{c("caret",e,t,r,s,o,a);let i;if(N(r)){i=""}else if(N(s)){i=`>=${r}.0.0${n} <${+r+1}.0.0-0`}else if(N(o)){if(r==="0"){i=`>=${r}.${s}.0${n} <${r}.${+s+1}.0-0`}else{i=`>=${r}.${s}.0${n} <${+r+1}.0.0-0`}}else if(a){c("replaceCaret pr",a);if(r==="0"){if(s==="0"){i=`>=${r}.${s}.${o}-${a} <${r}.${s}.${+o+1}-0`}else{i=`>=${r}.${s}.${o}-${a} <${r}.${+s+1}.0-0`}}else{i=`>=${r}.${s}.${o}-${a} <${+r+1}.0.0-0`}}else{c("no pr");if(r==="0"){if(s==="0"){i=`>=${r}.${s}.${o}${n} <${r}.${s}.${+o+1}-0`}else{i=`>=${r}.${s}.${o}${n} <${r}.${+s+1}.0-0`}}else{i=`>=${r}.${s}.${o} <${+r+1}.0.0-0`}}c("caret return",i);return i}))};const T=(e,t)=>{c("replaceXRanges",e,t);return e.split(/\s+/).map((e=>P(e,t))).join(" ")};const P=(e,t)=>{e=e.trim();const r=t.loose?p[f.XRANGELOOSE]:p[f.XRANGE];return e.replace(r,((r,n,s,o,a,i)=>{c("xRange",e,r,n,s,o,a,i);const l=N(s);const u=l||N(o);const p=u||N(a);const f=p;if(n==="="&&f){n=""}i=t.includePrerelease?"-0":"";if(l){if(n===">"||n==="<"){r="<0.0.0-0"}else{r="*"}}else if(n&&f){if(u){o=0}a=0;if(n===">"){n=">=";if(u){s=+s+1;o=0;a=0}else{o=+o+1;a=0}}else if(n==="<="){n="<";if(u){s=+s+1}else{o=+o+1}}if(n==="<"){i="-0"}r=`${n+s}.${o}.${a}${i}`}else if(u){r=`>=${s}.0.0${i} <${+s+1}.0.0-0`}else if(p){r=`>=${s}.${o}.0${i} <${s}.${+o+1}.0-0`}c("xRange return",r);return r}))};const w=(e,t)=>{c("replaceStars",e,t);return e.trim().replace(p[f.STAR],"")};const C=(e,t)=>{c("replaceGTE0",e,t);return e.trim().replace(p[t.includePrerelease?f.GTE0PRE:f.GTE0],"")};const A=e=>(t,r,n,s,o,a,i,l,c,u,p,f)=>{if(N(n)){r=""}else if(N(s)){r=`>=${n}.0.0${e?"-0":""}`}else if(N(o)){r=`>=${n}.${s}.0${e?"-0":""}`}else if(a){r=`>=${r}`}else{r=`>=${r}${e?"-0":""}`}if(N(c)){l=""}else if(N(u)){l=`<${+c+1}.0.0-0`}else if(N(p)){l=`<${c}.${+u+1}.0-0`}else if(f){l=`<=${c}.${u}.${p}-${f}`}else if(e){l=`<${c}.${u}.${+p+1}-0`}else{l=`<=${l}`}return`${r} ${l}`.trim()};const S=(e,t,r)=>{for(let n=0;n0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch){return true}}}return false}return true}},31527:(e,t,r)=>{const n=r(57272);const{MAX_LENGTH:s,MAX_SAFE_INTEGER:o}=r(16874);const{safeRe:a,t:i}=r(99718);const l=r(98587);const{compareIdentifiers:c}=r(61123);class u{constructor(e,t){t=l(t);if(e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`)}if(e.length>s){throw new TypeError(`version is longer than ${s} characters`)}n("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?a[i.LOOSE]:a[i.FULL]);if(!r){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+r[1];this.minor=+r[2];this.patch=+r[3];if(this.major>o||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>o||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>o||this.patch<0){throw new TypeError("Invalid patch version")}if(!r[4]){this.prerelease=[]}else{this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0){if(typeof this.prerelease[n]==="number"){this.prerelease[n]++;n=-2}}if(n===-1){if(t===this.prerelease.join(".")&&r===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(e)}}if(t){let n=[t,e];if(r===false){n=[t]}if(c(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=n}}else{this.prerelease=n}}break}default:throw new Error(`invalid increment argument: ${e}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}e.exports=u},57414:(e,t,r)=>{const n=r(30144);const s=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};e.exports=s},72111:(e,t,r)=>{const n=r(94641);const s=r(13999);const o=r(35580);const a=r(54089);const i=r(7059);const l=r(25200);const c=(e,t,r,c)=>{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 n(e,r,c);case"!=":return s(e,r,c);case">":return o(e,r,c);case">=":return a(e,r,c);case"<":return i(e,r,c);case"<=":return l(e,r,c);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=c},46170:(e,t,r)=>{const n=r(31527);const s=r(30144);const{safeRe:o,t:a}=r(99718);const i=(e,t)=>{if(e instanceof n){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let r=null;if(!t.rtl){r=e.match(t.includePrerelease?o[a.COERCEFULL]:o[a.COERCE])}else{const n=t.includePrerelease?o[a.COERCERTLFULL]:o[a.COERCERTL];let s;while((s=n.exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||s.index+s[0].length!==r.index+r[0].length){r=s}n.lastIndex=s.index+s[1].length+s[2].length}n.lastIndex=-1}if(r===null){return null}const i=r[2];const l=r[3]||"0";const c=r[4]||"0";const u=t.includePrerelease&&r[5]?`-${r[5]}`:"";const p=t.includePrerelease&&r[6]?`+${r[6]}`:"";return s(`${i}.${l}.${c}${u}${p}`,t)};e.exports=i},40909:(e,t,r)=>{const n=r(31527);const s=(e,t,r)=>{const s=new n(e,r);const o=new n(t,r);return s.compare(o)||s.compareBuild(o)};e.exports=s},11763:(e,t,r)=>{const n=r(50560);const s=(e,t)=>n(e,t,true);e.exports=s},50560:(e,t,r)=>{const n=r(31527);const s=(e,t,r)=>new n(e,r).compare(new n(t,r));e.exports=s},51832:(e,t,r)=>{const n=r(30144);const s=(e,t)=>{const r=n(e,null,true);const s=n(t,null,true);const o=r.compare(s);if(o===0){return null}const a=o>0;const i=a?r:s;const l=a?s:r;const c=!!i.prerelease.length;const u=!!l.prerelease.length;if(u&&!c){if(!l.patch&&!l.minor){return"major"}if(i.patch){return"patch"}if(i.minor){return"minor"}return"major"}const p=c?"pre":"";if(r.major!==s.major){return p+"major"}if(r.minor!==s.minor){return p+"minor"}if(r.patch!==s.patch){return p+"patch"}return"prerelease"};e.exports=s},94641:(e,t,r)=>{const n=r(50560);const s=(e,t,r)=>n(e,t,r)===0;e.exports=s},35580:(e,t,r)=>{const n=r(50560);const s=(e,t,r)=>n(e,t,r)>0;e.exports=s},54089:(e,t,r)=>{const n=r(50560);const s=(e,t,r)=>n(e,t,r)>=0;e.exports=s},93007:(e,t,r)=>{const n=r(31527);const s=(e,t,r,s,o)=>{if(typeof r==="string"){o=s;s=r;r=undefined}try{return new n(e instanceof n?e.version:e,r).inc(t,s,o).version}catch(a){return null}};e.exports=s},7059:(e,t,r)=>{const n=r(50560);const s=(e,t,r)=>n(e,t,r)<0;e.exports=s},25200:(e,t,r)=>{const n=r(50560);const s=(e,t,r)=>n(e,t,r)<=0;e.exports=s},32938:(e,t,r)=>{const n=r(31527);const s=(e,t)=>new n(e,t).major;e.exports=s},46254:(e,t,r)=>{const n=r(31527);const s=(e,t)=>new n(e,t).minor;e.exports=s},13999:(e,t,r)=>{const n=r(50560);const s=(e,t,r)=>n(e,t,r)!==0;e.exports=s},30144:(e,t,r)=>{const n=r(31527);const s=(e,t,r=false)=>{if(e instanceof n){return e}try{return new n(e,t)}catch(s){if(!r){return null}throw s}};e.exports=s},24493:(e,t,r)=>{const n=r(31527);const s=(e,t)=>new n(e,t).patch;e.exports=s},31729:(e,t,r)=>{const n=r(30144);const s=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null};e.exports=s},9970:(e,t,r)=>{const n=r(50560);const s=(e,t,r)=>n(t,e,r);e.exports=s},74277:(e,t,r)=>{const n=r(40909);const s=(e,t)=>e.sort(((e,r)=>n(r,e,t)));e.exports=s},97638:(e,t,r)=>{const n=r(78311);const s=(e,t,r)=>{try{t=new n(t,r)}catch(s){return false}return t.test(e)};e.exports=s},43927:(e,t,r)=>{const n=r(40909);const s=(e,t)=>e.sort(((e,r)=>n(e,r,t)));e.exports=s},56953:(e,t,r)=>{const n=r(30144);const s=(e,t)=>{const r=n(e,t);return r?r.version:null};e.exports=s},99589:(e,t,r)=>{const n=r(99718);const s=r(16874);const o=r(31527);const a=r(61123);const i=r(30144);const l=r(56953);const c=r(57414);const u=r(93007);const p=r(51832);const f=r(32938);const h=r(46254);const E=r(24493);const m=r(31729);const d=r(50560);const g=r(9970);const v=r(11763);const L=r(40909);const R=r(43927);const $=r(74277);const N=r(35580);const I=r(7059);const b=r(94641);const O=r(13999);const y=r(54089);const T=r(25200);const P=r(72111);const w=r(46170);const C=r(93904);const A=r(78311);const S=r(97638);const x=r(77631);const k=r(19628);const j=r(270);const D=r(41261);const _=r(13874);const G=r(97075);const M=r(75571);const F=r(5342);const U=r(76780);const X=r(72525);const B=r(75032);e.exports={parse:i,valid:l,clean:c,inc:u,diff:p,major:f,minor:h,patch:E,prerelease:m,compare:d,rcompare:g,compareLoose:v,compareBuild:L,sort:R,rsort:$,gt:N,lt:I,eq:b,neq:O,gte:y,lte:T,cmp:P,coerce:w,Comparator:C,Range:A,satisfies:S,toComparators:x,maxSatisfying:k,minSatisfying:j,minVersion:D,validRange:_,outside:G,gtr:M,ltr:F,intersects:U,simplifyRange:X,subset:B,SemVer:o,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,RELEASE_TYPES:s.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},16874:e=>{const t="2.0.0";const r=256;const n=Number.MAX_SAFE_INTEGER||9007199254740991;const s=16;const o=r-6;const a=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:r,MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:n,RELEASE_TYPES:a,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},57272:(e,t,r)=>{var n=r(65606);const s=typeof n==="object"&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=s},61123:e=>{const t=/^[0-9]+$/;const r=(e,r)=>{const n=t.test(e);const s=t.test(r);if(n&&s){e=+e;r=+r}return e===r?0:n&&!s?-1:s&&!n?1:er(t,e);e.exports={compareIdentifiers:r,rcompareIdentifiers:n}},68794:e=>{class t{constructor(){this.max=1e3;this.map=new Map}get(e){const t=this.map.get(e);if(t===undefined){return undefined}else{this.map.delete(e);this.map.set(e,t);return t}}delete(e){return this.map.delete(e)}set(e,t){const r=this.delete(e);if(!r&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=t},98587:e=>{const t=Object.freeze({loose:true});const r=Object.freeze({});const n=e=>{if(!e){return r}if(typeof e!=="object"){return t}return e};e.exports=n},99718:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:o}=r(16874);const a=r(57272);t=e.exports={};const i=t.re=[];const l=t.safeRe=[];const c=t.src=[];const u=t.t={};let p=0;const f="[a-zA-Z0-9-]";const h=[["\\s",1],["\\d",o],[f,s]];const E=e=>{for(const[t,r]of h){e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`)}return e};const m=(e,t,r)=>{const n=E(t);const s=p++;a(e,s,t);u[e]=s;c[s]=t;i[s]=new RegExp(t,r?"g":undefined);l[s]=new RegExp(n,r?"g":undefined)};m("NUMERICIDENTIFIER","0|[1-9]\\d*");m("NUMERICIDENTIFIERLOOSE","\\d+");m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`);m("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.`+`(${c[u.NUMERICIDENTIFIER]})\\.`+`(${c[u.NUMERICIDENTIFIER]})`);m("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.`+`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.`+`(${c[u.NUMERICIDENTIFIERLOOSE]})`);m("PRERELEASEIDENTIFIER",`(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`);m("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`);m("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`);m("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`);m("BUILDIDENTIFIER",`${f}+`);m("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`);m("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`);m("FULL",`^${c[u.FULLPLAIN]}$`);m("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`);m("LOOSE",`^${c[u.LOOSEPLAIN]}$`);m("GTLT","((?:<|>)?=?)");m("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);m("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`);m("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})`+`(?:\\.(${c[u.XRANGEIDENTIFIER]})`+`(?:\\.(${c[u.XRANGEIDENTIFIER]})`+`(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?`+`)?)?`);m("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})`+`(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?`+`)?)?`);m("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`);m("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`);m("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${n}})`+`(?:\\.(\\d{1,${n}}))?`+`(?:\\.(\\d{1,${n}}))?`);m("COERCE",`${c[u.COERCEPLAIN]}(?:$|[^\\d])`);m("COERCEFULL",c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?`+`(?:${c[u.BUILD]})?`+`(?:$|[^\\d])`);m("COERCERTL",c[u.COERCE],true);m("COERCERTLFULL",c[u.COERCEFULL],true);m("LONETILDE","(?:~>?)");m("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";m("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`);m("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`);m("LONECARET","(?:\\^)");m("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";m("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`);m("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`);m("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`);m("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`);m("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";m("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${c[u.XRANGEPLAIN]})`+`\\s*$`);m("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${c[u.XRANGEPLAINLOOSE]})`+`\\s*$`);m("STAR","(<|>)?=?\\s*\\*");m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},75571:(e,t,r)=>{const n=r(97075);const s=(e,t,r)=>n(e,t,">",r);e.exports=s},76780:(e,t,r)=>{const n=r(78311);const s=(e,t,r)=>{e=new n(e,r);t=new n(t,r);return e.intersects(t,r)};e.exports=s},5342:(e,t,r)=>{const n=r(97075);const s=(e,t,r)=>n(e,t,"<",r);e.exports=s},19628:(e,t,r)=>{const n=r(31527);const s=r(78311);const o=(e,t,r)=>{let o=null;let a=null;let i=null;try{i=new s(t,r)}catch(l){return null}e.forEach((e=>{if(i.test(e)){if(!o||a.compare(e)===-1){o=e;a=new n(o,r)}}}));return o};e.exports=o},270:(e,t,r)=>{const n=r(31527);const s=r(78311);const o=(e,t,r)=>{let o=null;let a=null;let i=null;try{i=new s(t,r)}catch(l){return null}e.forEach((e=>{if(i.test(e)){if(!o||a.compare(e)===1){o=e;a=new n(o,r)}}}));return o};e.exports=o},41261:(e,t,r)=>{const n=r(31527);const s=r(78311);const o=r(35580);const a=(e,t)=>{e=new s(e,t);let r=new n("0.0.0");if(e.test(r)){return r}r=new n("0.0.0-0");if(e.test(r)){return r}r=null;for(let s=0;s{const t=new n(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!a||o(t,a)){a=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(a&&(!r||o(r,a))){r=a}}if(r&&e.test(r)){return r}return null};e.exports=a},97075:(e,t,r)=>{const n=r(31527);const s=r(93904);const{ANY:o}=s;const a=r(78311);const i=r(97638);const l=r(35580);const c=r(7059);const u=r(25200);const p=r(54089);const f=(e,t,r,f)=>{e=new n(e,f);t=new a(t,f);let h,E,m,d,g;switch(r){case">":h=l;E=u;m=c;d=">";g=">=";break;case"<":h=c;E=p;m=l;d="<";g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(e,t,f)){return false}for(let n=0;n{if(e.semver===o){e=new s(">=0.0.0")}a=a||e;i=i||e;if(h(e.semver,a.semver,f)){a=e}else if(m(e.semver,i.semver,f)){i=e}}));if(a.operator===d||a.operator===g){return false}if((!i.operator||i.operator===d)&&E(e,i.semver)){return false}else if(i.operator===g&&m(e,i.semver)){return false}}return true};e.exports=f},72525:(e,t,r)=>{const n=r(97638);const s=r(50560);e.exports=(e,t,r)=>{const o=[];let a=null;let i=null;const l=e.sort(((e,t)=>s(e,t,r)));for(const s of l){const e=n(s,t,r);if(e){i=s;if(!a){a=s}}else{if(i){o.push([a,i])}i=null;a=null}}if(a){o.push([a,null])}const c=[];for(const[n,s]of o){if(n===s){c.push(n)}else if(!s&&n===l[0]){c.push("*")}else if(!s){c.push(`>=${n}`)}else if(n===l[0]){c.push(`<=${s}`)}else{c.push(`${n} - ${s}`)}}const u=c.join(" || ");const p=typeof t.raw==="string"?t.raw:String(t);return u.length{const n=r(78311);const s=r(93904);const{ANY:o}=s;const a=r(97638);const i=r(50560);const l=(e,t,r={})=>{if(e===t){return true}e=new n(e,r);t=new n(t,r);let s=false;e:for(const n of e.set){for(const e of t.set){const t=p(n,e,r);s=s||t!==null;if(t){continue e}}if(s){return false}}return true};const c=[new s(">=0.0.0-0")];const u=[new s(">=0.0.0")];const p=(e,t,r)=>{if(e===t){return true}if(e.length===1&&e[0].semver===o){if(t.length===1&&t[0].semver===o){return true}else if(r.includePrerelease){e=c}else{e=u}}if(t.length===1&&t[0].semver===o){if(r.includePrerelease){return true}else{t=u}}const n=new Set;let s,l;for(const o of e){if(o.operator===">"||o.operator===">="){s=f(s,o,r)}else if(o.operator==="<"||o.operator==="<="){l=h(l,o,r)}else{n.add(o.semver)}}if(n.size>1){return null}let p;if(s&&l){p=i(s.semver,l.semver,r);if(p>0){return null}else if(p===0&&(s.operator!==">="||l.operator!=="<=")){return null}}for(const o of n){if(s&&!a(o,String(s),r)){return null}if(l&&!a(o,String(l),r)){return null}for(const e of t){if(!a(o,String(e),r)){return false}}return true}let E,m;let d,g;let v=l&&!r.includePrerelease&&l.semver.prerelease.length?l.semver:false;let L=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:false;if(v&&v.prerelease.length===1&&l.operator==="<"&&v.prerelease[0]===0){v=false}for(const o of t){g=g||o.operator===">"||o.operator===">=";d=d||o.operator==="<"||o.operator==="<=";if(s){if(L){if(o.semver.prerelease&&o.semver.prerelease.length&&o.semver.major===L.major&&o.semver.minor===L.minor&&o.semver.patch===L.patch){L=false}}if(o.operator===">"||o.operator===">="){E=f(s,o,r);if(E===o&&E!==s){return false}}else if(s.operator===">="&&!a(s.semver,String(o),r)){return false}}if(l){if(v){if(o.semver.prerelease&&o.semver.prerelease.length&&o.semver.major===v.major&&o.semver.minor===v.minor&&o.semver.patch===v.patch){v=false}}if(o.operator==="<"||o.operator==="<="){m=h(l,o,r);if(m===o&&m!==l){return false}}else if(l.operator==="<="&&!a(l.semver,String(o),r)){return false}}if(!o.operator&&(l||s)&&p!==0){return false}}if(s&&d&&!l&&p!==0){return false}if(l&&g&&!s&&p!==0){return false}if(L||v){return false}return true};const f=(e,t,r)=>{if(!e){return t}const n=i(e.semver,t.semver,r);return n>0?e:n<0?t:t.operator===">"&&e.operator===">="?t:e};const h=(e,t,r)=>{if(!e){return t}const n=i(e.semver,t.semver,r);return n<0?e:n>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=l},77631:(e,t,r)=>{const n=r(78311);const s=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=s},13874:(e,t,r)=>{const n=r(78311);const s=(e,t)=>{try{return new n(e,t).range||"*"}catch(r){return null}};e.exports=s}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/8779.6eebdb56785e3d38a457.js b/share/jupyter/lab/static/8779.6eebdb56785e3d38a457.js new file mode 100644 index 0000000..62ac724 --- /dev/null +++ b/share/jupyter/lab/static/8779.6eebdb56785e3d38a457.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8779],{88779:(O,Q,P)=>{P.r(Q);P.d(Q,{java:()=>t,javaLanguage:()=>X});var $=P(27421);var a=P(45145);const i=(0,a.styleTags)({null:a.tags.null,instanceof:a.tags.operatorKeyword,this:a.tags.self,"new super assert open to with void":a.tags.keyword,"class interface extends implements enum var":a.tags.definitionKeyword,"module package import":a.tags.moduleKeyword,"switch while for if else case default do break continue return try catch finally throw":a.tags.controlKeyword,["requires exports opens uses provides public private protected static transitive abstract final "+"strictfp synchronized native transient volatile throws"]:a.tags.modifier,IntegerLiteral:a.tags.integer,FloatingPointLiteral:a.tags.float,"StringLiteral TextBlock":a.tags.string,CharacterLiteral:a.tags.character,LineComment:a.tags.lineComment,BlockComment:a.tags.blockComment,BooleanLiteral:a.tags.bool,PrimitiveType:a.tags.standard(a.tags.typeName),TypeName:a.tags.typeName,Identifier:a.tags.variableName,"MethodName/Identifier":a.tags.function(a.tags.variableName),Definition:a.tags.definition(a.tags.variableName),ArithOp:a.tags.arithmeticOperator,LogicOp:a.tags.logicOperator,BitOp:a.tags.bitwiseOperator,CompareOp:a.tags.compareOperator,AssignOp:a.tags.definitionOperator,UpdateOp:a.tags.updateOperator,Asterisk:a.tags.punctuation,Label:a.tags.labelName,"( )":a.tags.paren,"[ ]":a.tags.squareBracket,"{ }":a.tags.brace,".":a.tags.derefOperator,", ;":a.tags.separator});const r={__proto__:null,true:34,false:34,null:42,void:46,byte:48,short:48,int:48,long:48,char:48,float:48,double:48,boolean:48,extends:62,super:64,class:76,this:78,new:84,public:100,protected:102,private:104,abstract:106,static:108,final:110,strictfp:112,default:114,synchronized:116,native:118,transient:120,volatile:122,throws:150,implements:160,interface:166,enum:176,instanceof:236,open:265,module:267,requires:272,transitive:274,exports:276,to:278,opens:280,uses:282,provides:284,with:286,package:290,import:294,if:306,else:308,while:312,for:316,var:323,assert:330,switch:334,case:340,do:344,break:348,continue:352,return:356,throw:362,try:366,catch:370,finally:378};const e=$.U1.deserialize({version:14,states:"#!hQ]QPOOO&tQQO'#H[O(xQQO'#CbOOQO'#Cb'#CbO)PQPO'#CaO)XOSO'#CpOOQO'#Ha'#HaOOQO'#Cu'#CuO*tQPO'#D_O+_QQO'#HkOOQO'#Hk'#HkO-sQQO'#HfO-zQQO'#HfOOQO'#Hf'#HfOOQO'#He'#HeO0OQPO'#DUO0]QPO'#GlO3TQPO'#D_O3[QPO'#DzO)PQPO'#E[O3}QPO'#E[OOQO'#DV'#DVO5]QQO'#H_O7dQQO'#EeO7kQPO'#EdO7pQPO'#EfOOQO'#H`'#H`O5sQQO'#H`O8sQQO'#FgO8zQPO'#EwO9PQPO'#E|O9PQPO'#FOOOQO'#H_'#H_OOQO'#HW'#HWOOQO'#Gf'#GfOOQO'#HV'#HVO:aQPO'#FhOOQO'#HU'#HUOOQO'#Ge'#GeQ]QPOOOOQO'#Hq'#HqO:fQPO'#HqO:kQPO'#D{O:kQPO'#EVO:kQPO'#EQO:sQPO'#HnO;UQQO'#EfO)PQPO'#C`O;^QPO'#C`O)PQPO'#FbO;cQPO'#FdO;nQPO'#FjO;nQPO'#FmO:kQPO'#FrO;sQPO'#FoO9PQPO'#FvO;nQPO'#FxO]QPO'#F}O;xQPO'#GPOyOSO,59[OOQO,59[,59[OOQO'#Hg'#HgO?jQPO,59eO@lQPO,59yOOQO-E:d-E:dO)PQPO,58zOA`QPO,58zO)PQPO,5;|OAeQPO'#DQOAjQPO'#DQOOQO'#Gi'#GiOBjQQO,59jOOQO'#Dm'#DmODRQPO'#HsOD]QPO'#DlODkQPO'#HrODsQPO,5<^ODxQPO,59^OEcQPO'#CxOOQO,59c,59cOEjQPO,59bOGrQQO'#H[OJVQQO'#CbOJmQPO'#D_OKrQQO'#HkOLSQQO,59pOLZQPO'#DvOLiQPO'#HzOLqQPO,5:`OLvQPO,5:`OM^QPO,5;mOMiQPO'#IROMtQPO,5;dOMyQPO,5=WOOQO-E:j-E:jOOQO,5:f,5:fO! aQPO,5:fO! hQPO,5:vO! mQPO,5<^O)PQPO,5:vO:kQPO,5:gO:kQPO,5:qO:kQPO,5:lO:kQPO,5<^O!!^QPO,59qO9PQPO,5:}O!!eQPO,5;QO9PQPO,59TO!!sQPO'#DXOOQO,5;O,5;OOOQO'#El'#ElOOQO'#En'#EnO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;eOOQO,5;h,5;hOOQO,5],5>]O!%SQPO,5:gO!%bQPO,5:qO!%jQPO,5:lO!%uQPO,5>YOLZQPO,5>YO! {QPO,59UO!&QQQO,58zO!&YQQO,5;|O!&bQQO,5_O!.ZQPO,5:WO:kQPO'#GnO!.bQPO,5>^OOQO1G1x1G1xOOQO1G.x1G.xO!.{QPO'#CyO!/kQPO'#HkO!/uQPO'#CzO!0TQPO'#HjO!0]QPO,59dOOQO1G.|1G.|OEjQPO1G.|O!0sQPO,59eO!1QQQO'#H[O!1cQQO'#CbOOQO,5:b,5:bO:kQPO,5:cOOQO,5:a,5:aO!1tQQO,5:aOOQO1G/[1G/[O!1yQPO,5:bO!2[QPO'#GqO!2oQPO,5>fOOQO1G/z1G/zO!2wQPO'#DvO!3YQPO'#D_O!3aQPO1G/zO!!zQPO'#GoO!3fQPO1G1XO9PQPO1G1XO:kQPO'#GwO!3nQPO,5>mOOQO1G1O1G1OOOQO1G0Q1G0QO!3vQPO'#E]OOQO1G0b1G0bO!4gQPO1G1xO! hQPO1G0bO!%SQPO1G0RO!%bQPO1G0]O!%jQPO1G0WOOQO1G/]1G/]O!4lQQO1G.pO7kQPO1G0jO)PQPO1G0jO:sQPO'#HnO!6`QQO1G.pOOQO1G.p1G.pO!6eQQO1G0iOOQO1G0l1G0lO!6lQPO1G0lO!6wQQO1G.oO!7_QQO'#HoO!7lQPO,59sO!8{QQO1G0pO!:dQQO1G0pO!;rQQO1G0pO!UOOQO1G/O1G/OOOQO7+$h7+$hOOQO1G/{1G/{O#1TQQO1G/{OOQO1G/}1G/}O#1YQPO1G/{OOQO1G/|1G/|O:kQPO1G/}OOQO,5=],5=]OOQO-E:o-E:oOOQO7+%f7+%fOOQO,5=Z,5=ZOOQO-E:m-E:mO9PQPO7+&sOOQO7+&s7+&sOOQO,5=c,5=cOOQO-E:u-E:uO#1_QPO'#EUO#1mQPO'#EUOOQO'#Gu'#GuO#2UQPO,5:wOOQO,5:w,5:wOOQO7+'d7+'dOOQO7+%|7+%|OOQO7+%m7+%mO!AYQPO7+%mO!A_QPO7+%mO!AgQPO7+%mOOQO7+%w7+%wO!BVQPO7+%wOOQO7+%r7+%rO!CUQPO7+%rO!CZQPO7+%rOOQO7+&U7+&UOOQO'#Ee'#EeO7kQPO7+&UO7kQPO,5>YO#2uQPO7+$[OOQO7+&T7+&TOOQO7+&W7+&WO9PQPO'#GjO#3TQPO,5>ZOOQO1G/_1G/_O9PQPO7+&kO#3`QQO,59eO#4cQPO'#DrO! pQPO'#DrO#4nQPO'#HwO#4vQPO,5:]O#5aQQO'#HgO#5|QQO'#CuO! mQPO'#HvO#6lQPO'#DpO#6vQPO'#HvO#7XQPO'#DpO#7aQPO'#IPO#7fQPO'#E`OOQO'#Hp'#HpOOQO'#Gk'#GkO#7nQPO,59vOOQO,59v,59vO#7uQPO'#HqOOQO,5:h,5:hO#9]QPO'#H|OOQO'#EP'#EPOOQO,5:i,5:iO#9hQPO'#EYO:kQPO'#EYO#9yQPO'#H}O#:UQPO,5:sO! mQPO'#HvO!!zQPO'#HvO#:^QPO'#DpOOQO'#Gs'#GsO#:eQPO,5:oOOQO,5:o,5:oOOQO,5:n,5:nOOQO,5;S,5;SO#;_QQO,5;SO#;fQPO,5;SOOQO-E:t-E:tOOQO7+&X7+&XOOQO7+)`7+)`O#;mQQO7+)`OOQO'#Gz'#GzO#=ZQPO,5;rOOQO,5;r,5;rO#=bQPO'#FXO)PQPO'#FXO)PQPO'#FXO)PQPO'#FXO#=pQPO7+'UO#=uQPO7+'UOOQO7+'U7+'UO]QPO7+'[O#>QQPO1G1{O! mQPO1G1{O#>`QQO1G1wO!!sQPO1G1wO#>gQPO1G1wO#>nQQO7+'hOOQO'#G}'#G}O#>uQPO,5|QPO'#HqO9PQPO'#F{O#?UQPO7+'oO#?ZQPO,5=OO! mQPO,5=OO#?`QPO1G2iO#@iQPO1G2iOOQO1G2i1G2iOOQO-E:|-E:|OOQO7+'z7+'zO!2[QPO'#G^OpOOQO1G.n1G.nOOQO<X,5>XOOQO,5=S,5=SOOQO-E:f-E:fO#EjQPO7+%gOOQO7+%g7+%gOOQO7+%i7+%iOOQO<cOOQO1G/w1G/wO#IfQPO'#HsO#ImQPO,59xO#IrQPO,5>bO! mQPO,59xO#I}QPO,5:[O#7fQPO,5:zO! mQPO,5>bO!!zQPO,5>bO#7aQPO,5>kOOQO,5:[,5:[OLvQPO'#DtOOQO,5>k,5>kO#JVQPO'#EaOOQO,5:z,5:zO#MWQPO,5:zO!!zQPO'#DxOOQO-E:i-E:iOOQO1G/b1G/bOOQO,5:y,5:yO!!zQPO'#GrO#M]QPO,5>hOOQO,5:t,5:tO#MhQPO,5:tO#MvQPO,5:tO#NXQPO'#GtO#NoQPO,5>iO#NzQPO'#EZOOQO1G0_1G0_O$ RQPO1G0_O! mQPO,5:pOOQO-E:q-E:qOOQO1G0Z1G0ZOOQO1G0n1G0nO$ WQQO1G0nOOQO<oOOQO1G1Y1G1YO$%uQPO'#FTOOQO,5=e,5=eOOQO-E:w-E:wO$%zQPO'#GmO$&XQPO,5>aOOQO1G/u1G/uOOQO<sAN>sO!AYQPOAN>sOOQOAN>xAN>xOOQOAN?[AN?[O7kQPOAN?[O$&pQPO,5:_OOQO1G/x1G/xOOQO,5=[,5=[OOQO-E:n-E:nO$&{QPO,5>eOOQO1G/d1G/dOOQO1G3|1G3|O$'^QPO1G/dOOQO1G/v1G/vOOQO1G0f1G0fO#MWQPO1G0fO#7aQPO'#HyO$'cQPO1G3|O! mQPO1G3|OOQO1G4V1G4VOK^QPO'#DvOJmQPO'#D_OOQO,5:{,5:{O$'nQPO,5:{O$'nQPO,5:{O$'uQQO'#H_O$'|QQO'#H`O$(WQQO'#EbO$(cQPO'#EbOOQO,5:d,5:dOOQO,5=^,5=^OOQO-E:p-E:pOOQO1G0`1G0`O$(kQPO1G0`OOQO,5=`,5=`OOQO-E:r-E:rO$(yQPO,5:uOOQO7+%y7+%yOOQO7+&Y7+&YOOQO1G1_1G1_O$)QQQO1G1_OOQO-E:y-E:yO$)YQQO'#IWO$)TQPO1G1_O$ mQPO1G1_O)PQPO1G1_OOQOAN@[AN@[O$)eQQO<rO$,cQPO7+&yO$,hQQO'#IXOOQOAN@mAN@mO$,sQQOAN@mOOQOAN@iAN@iO$,zQPOAN@iO$-PQQO<sOOQOG26XG26XOOQOG26TG26TOOQO<bPPP>hP@|PPPAv2vPCoPPDjPEaEgPPPPPPPPPPPPFpGXPJ_JgJqKZKaKgMVMZMZMcPMrNx! k! uP!![NxP!!b!!l!!{!#TP!#r!#|!$SNx!$V!$]EaEa!$a!$k!$n2v!&Y2v2v!(RP.^P!(VP!(vPPPPPP.^P.^!)d.^PP.^P.^PP.^!*x!+SPP!+Y!+cPPPPPPPP&}P&}PP!+g!+g!+z!+gPP!+gP!+gP!,e!,hP!+g!-O!+gP!+gP!-R!-UP!+gP!+gP!+gP!+gP!+g!+gP!+gP!-YP!-`!-c!-iP!+g!-u!-x!.Q!.d!2a!2g!2m!3s!3y!4T!5X!5_!5e!5o!5u!5{!6R!6X!6_!6e!6k!6q!6w!6}!7T!7Z!7e!7k!7u!7{PPP!8R!+g!8vP!a!]!^!?q!^!_!@_!_!`!Ax!`!a!Bl!a!b!DY!b!c!Dx!c!}!Kt!}#O!MQ#O#P%Q#P#Q!Mn#Q#R!N[#R#S4e#S#T%Q#T#o4e#o#p# O#p#q# l#q#r##U#r#s##r#s#y%Q#y#z'f#z$f%Q$f$g'f$g#BY%Q#BY#BZ'f#BZ$IS%Q$IS$I_'f$I_$I|%Q$I|$JO'f$JO$JT%Q$JT$JU'f$JU$KV%Q$KV$KW'f$KW&FU%Q&FU&FV'f&FV;'S%Q;'S;=`&s<%lO%QS%VV&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QS%qO&WSS%tVOY&ZYZ%lZr&Zrs&ys;'S&Z;'S;=`'`<%lO&ZS&^VOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QS&vP;=`<%l%QS&|UOY&ZYZ%lZr&Zs;'S&Z;'S;=`'`<%lO&ZS'cP;=`<%l&Z_'mk&WS%wZOX%QXY'fYZ)bZ^'f^p%Qpq'fqr%Qrs%qs#y%Q#y#z'f#z$f%Q$f$g'f$g#BY%Q#BY#BZ'f#BZ$IS%Q$IS$I_'f$I_$I|%Q$I|$JO'f$JO$JT%Q$JT$JU'f$JU$KV%Q$KV$KW'f$KW&FU%Q&FU&FV'f&FV;'S%Q;'S;=`&s<%lO%Q_)iY&WS%wZX^*Xpq*X#y#z*X$f$g*X#BY#BZ*X$IS$I_*X$I|$JO*X$JT$JU*X$KV$KW*X&FU&FV*XZ*^Y%wZX^*Xpq*X#y#z*X$f$g*X#BY#BZ*X$IS$I_*X$I|$JO*X$JT$JU*X$KV$KW*X&FU&FV*XV+TX#sP&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`+p!`;'S%Q;'S;=`&s<%lO%QU+wV#_Q&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT,aXOY,|YZ%lZr,|rs3Ys#O,|#O#P2d#P;'S,|;'S;=`3S<%lO,|T-PXOY-lYZ%lZr-lrs.^s#O-l#O#P.x#P;'S-l;'S;=`2|<%lO-lT-qX&WSOY-lYZ%lZr-lrs.^s#O-l#O#P.x#P;'S-l;'S;=`2|<%lO-lT.cVcPOY&ZYZ%lZr&Zrs&ys;'S&Z;'S;=`'`<%lO&ZT.}V&WSOY-lYZ/dZr-lrs1]s;'S-l;'S;=`2|<%lO-lT/iW&WSOY0RZr0Rrs0ns#O0R#O#P0s#P;'S0R;'S;=`1V<%lO0RP0UWOY0RZr0Rrs0ns#O0R#O#P0s#P;'S0R;'S;=`1V<%lO0RP0sOcPP0vTOY0RYZ0RZ;'S0R;'S;=`1V<%lO0RP1YP;=`<%l0RT1`XOY,|YZ%lZr,|rs1{s#O,|#O#P2d#P;'S,|;'S;=`3S<%lO,|T2QUcPOY&ZYZ%lZr&Zs;'S&Z;'S;=`'`<%lO&ZT2gVOY-lYZ/dZr-lrs1]s;'S-l;'S;=`2|<%lO-lT3PP;=`<%l-lT3VP;=`<%l,|T3_VcPOY&ZYZ%lZr&Zrs3ts;'S&Z;'S;=`'`<%lO&ZT3yR&USXY4SYZ4`pq4SP4VRXY4SYZ4`pq4SP4eO&VP_4la%}Z&WSOY%QYZ%lZr%Qrs%qst%Qtu4eu!Q%Q!Q![4e![!c%Q!c!}4e!}#R%Q#R#S4e#S#T%Q#T#o4e#o;'S%Q;'S;=`&s<%lO%QU5xX#gQ&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QU6lV#]Q&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV7YZ&lR&WSOY%QYZ%lZr%Qrs%qsv%Qvw7{w!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QU8SV#aQ&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT8nZ&WSOY9aYZ%lZr9ars:Xsw9awx%Qx#O9a#O#Pt<%lO9aT9fZ&WSOY9aYZ%lZr9ars:Xsw9awx;sx#O9a#O#Pt<%lO9aT:[ZOY:}YZ%lZr:}rs>zsw:}wx?px#O:}#O#P@[#P;'S:};'S;=`@t<%lO:}T;QZOY9aYZ%lZr9ars:Xsw9awx;sx#O9a#O#Pt<%lO9aT;zVbP&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QTt<%lO9aT=QW&WSOY=jZw=jwx>Vx#O=j#O#P>[#P;'S=j;'S;=`>n<%lO=jP=mWOY=jZw=jwx>Vx#O=j#O#P>[#P;'S=j;'S;=`>n<%lO=jP>[ObPP>_TOY=jYZ=jZ;'S=j;'S;=`>n<%lO=jP>qP;=`<%l=jT>wP;=`<%l9aT>}ZOY:}YZ%lZr:}rs=jsw:}wx?px#O:}#O#P@[#P;'S:};'S;=`@t<%lO:}T?uVbPOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT@_VOY9aYZ<{Zr9ars:Xs;'S9a;'S;=`>t<%lO9aT@wP;=`<%l:}_ARVZZ&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QVAoVYR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QVB_X$YP&WS#fQOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QVCRZ#eR&WSOY%QYZ%lZr%Qrs%qs{%Q{|Ct|!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QVC{V#qR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QVDiVqR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QVEV[#eR&WSOY%QYZ%lZr%Qrs%qs}%Q}!OCt!O!_%Q!_!`6e!`!aE{!a;'S%Q;'S;=`&s<%lO%QVFSV&vR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_FpZWY&WSOY%QYZ%lZr%Qrs%qs!O%Q!O!PGc!P!Q%Q!Q![Hq![;'S%Q;'S;=`&s<%lO%QVGhX&WSOY%QYZ%lZr%Qrs%qs!O%Q!O!PHT!P;'S%Q;'S;=`&s<%lO%QVH[V&oR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QTHxc&WS`POY%QYZ%lZr%Qrs%qs!Q%Q!Q![Hq![!f%Q!f!gJT!g!hJq!h!iJT!i#R%Q#R#SNk#S#W%Q#W#XJT#X#YJq#Y#ZJT#Z;'S%Q;'S;=`&s<%lO%QTJ[V&WS`POY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QTJv]&WSOY%QYZ%lZr%Qrs%qs{%Q{|Ko|}%Q}!OKo!O!Q%Q!Q![La![;'S%Q;'S;=`&s<%lO%QTKtX&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![La![;'S%Q;'S;=`&s<%lO%QTLhc&WS`POY%QYZ%lZr%Qrs%qs!Q%Q!Q![La![!f%Q!f!gJT!g!h%Q!h!iJT!i#R%Q#R#SMs#S#W%Q#W#XJT#X#Y%Q#Y#ZJT#Z;'S%Q;'S;=`&s<%lO%QTMxZ&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![La![#R%Q#R#SMs#S;'S%Q;'S;=`&s<%lO%QTNpZ&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![Hq![#R%Q#R#SNk#S;'S%Q;'S;=`&s<%lO%Q_! j]&WS#fQOY%QYZ%lZr%Qrs%qsz%Qz{!!c{!P%Q!P!Q!)U!Q!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%Q_!!hX&WSOY!!cYZ!#TZr!!crs!$psz!!cz{!&O{;'S!!c;'S;=`!'d<%lO!!c_!#YT&WSOz!#iz{!#{{;'S!#i;'S;=`!$j<%lO!#iZ!#lTOz!#iz{!#{{;'S!#i;'S;=`!$j<%lO!#iZ!$OVOz!#iz{!#{{!P!#i!P!Q!$e!Q;'S!#i;'S;=`!$j<%lO!#iZ!$jOQZZ!$mP;=`<%l!#i_!$sXOY!%`YZ!#TZr!%`rs!'jsz!%`z{!(Y{;'S!%`;'S;=`!)O<%lO!%`_!%cXOY!!cYZ!#TZr!!crs!$psz!!cz{!&O{;'S!!c;'S;=`!'d<%lO!!c_!&TZ&WSOY!!cYZ!#TZr!!crs!$psz!!cz{!&O{!P!!c!P!Q!&v!Q;'S!!c;'S;=`!'d<%lO!!c_!&}V&WSQZOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_!'gP;=`<%l!!c_!'mXOY!%`YZ!#TZr!%`rs!#isz!%`z{!(Y{;'S!%`;'S;=`!)O<%lO!%`_!(]ZOY!!cYZ!#TZr!!crs!$psz!!cz{!&O{!P!!c!P!Q!&v!Q;'S!!c;'S;=`!'d<%lO!!c_!)RP;=`<%l!%`_!)]V&WSPZOY!)UYZ%lZr!)Urs!)rs;'S!)U;'S;=`!*x<%lO!)U_!)wVPZOY!*^YZ%lZr!*^rs!+Os;'S!*^;'S;=`!,R<%lO!*^_!*cVPZOY!)UYZ%lZr!)Urs!)rs;'S!)U;'S;=`!*x<%lO!)U_!*{P;=`<%l!)U_!+TVPZOY!*^YZ%lZr!*^rs!+js;'S!*^;'S;=`!,R<%lO!*^Z!+oSPZOY!+jZ;'S!+j;'S;=`!+{<%lO!+jZ!,OP;=`<%l!+j_!,UP;=`<%l!*^T!,`u&WS_POY%QYZ%lZr%Qrs%qs!O%Q!O!P!.s!P!Q%Q!Q![!0P![!d%Q!d!e!3Z!e!f%Q!f!gJT!g!hJq!h!iJT!i!n%Q!n!o!1u!o!q%Q!q!r!5X!r!z%Q!z!{!7P!{#R%Q#R#S!2c#S#U%Q#U#V!3Z#V#W%Q#W#XJT#X#YJq#Y#ZJT#Z#`%Q#`#a!1u#a#c%Q#c#d!5X#d#l%Q#l#m!7P#m;'S%Q;'S;=`&s<%lO%QT!.za&WS`POY%QYZ%lZr%Qrs%qs!Q%Q!Q![Hq![!f%Q!f!gJT!g!hJq!h!iJT!i#W%Q#W#XJT#X#YJq#Y#ZJT#Z;'S%Q;'S;=`&s<%lO%QT!0Wi&WS_POY%QYZ%lZr%Qrs%qs!O%Q!O!P!.s!P!Q%Q!Q![!0P![!f%Q!f!gJT!g!hJq!h!iJT!i!n%Q!n!o!1u!o#R%Q#R#S!2c#S#W%Q#W#XJT#X#YJq#Y#ZJT#Z#`%Q#`#a!1u#a;'S%Q;'S;=`&s<%lO%QT!1|V&WS_POY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT!2hZ&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![!0P![#R%Q#R#S!2c#S;'S%Q;'S;=`&s<%lO%QT!3`Y&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q!R!4O!R!S!4O!S;'S%Q;'S;=`&s<%lO%QT!4V`&WS_POY%QYZ%lZr%Qrs%qs!Q%Q!Q!R!4O!R!S!4O!S!n%Q!n!o!1u!o#R%Q#R#S!3Z#S#`%Q#`#a!1u#a;'S%Q;'S;=`&s<%lO%QT!5^X&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q!Y!5y!Y;'S%Q;'S;=`&s<%lO%QT!6Q_&WS_POY%QYZ%lZr%Qrs%qs!Q%Q!Q!Y!5y!Y!n%Q!n!o!1u!o#R%Q#R#S!5X#S#`%Q#`#a!1u#a;'S%Q;'S;=`&s<%lO%QT!7U_&WSOY%QYZ%lZr%Qrs%qs!O%Q!O!P!8T!P!Q%Q!Q![!:c![!c%Q!c!i!:c!i#T%Q#T#Z!:c#Z;'S%Q;'S;=`&s<%lO%QT!8Y]&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![!9R![!c%Q!c!i!9R!i#T%Q#T#Z!9R#Z;'S%Q;'S;=`&s<%lO%QT!9Wc&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![!9R![!c%Q!c!i!9R!i!r%Q!r!sJq!s#R%Q#R#S!8T#S#T%Q#T#Z!9R#Z#d%Q#d#eJq#e;'S%Q;'S;=`&s<%lO%QT!:ji&WS_POY%QYZ%lZr%Qrs%qs!O%Q!O!P!hX#oR&WSOY%QYZ%lZr%Qrs%qs![%Q![!]!?T!];'S%Q;'S;=`&s<%lO%QV!?[V&tR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV!?xV!PR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_!@fY&]Z&WSOY%QYZ%lZr%Qrs%qs!^%Q!^!_!AU!_!`+p!`;'S%Q;'S;=`&s<%lO%QU!A]X#hQ&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QV!BPX!bR&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`+p!`;'S%Q;'S;=`&s<%lO%QV!BsY&[R&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`+p!`!a!Cc!a;'S%Q;'S;=`&s<%lO%QU!CjY#hQ&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`!a!AU!a;'S%Q;'S;=`&s<%lO%Q_!DcV&`X#nQ&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_!EPX%{Z&WSOY%QYZ%lZr%Qrs%qs#]%Q#]#^!El#^;'S%Q;'S;=`&s<%lO%QV!EqX&WSOY%QYZ%lZr%Qrs%qs#b%Q#b#c!F^#c;'S%Q;'S;=`&s<%lO%QV!FcX&WSOY%QYZ%lZr%Qrs%qs#h%Q#h#i!GO#i;'S%Q;'S;=`&s<%lO%QV!GTX&WSOY%QYZ%lZr%Qrs%qs#X%Q#X#Y!Gp#Y;'S%Q;'S;=`&s<%lO%QV!GuX&WSOY%QYZ%lZr%Qrs%qs#f%Q#f#g!Hb#g;'S%Q;'S;=`&s<%lO%QV!HgX&WSOY%QYZ%lZr%Qrs%qs#Y%Q#Y#Z!IS#Z;'S%Q;'S;=`&s<%lO%QV!IXX&WSOY%QYZ%lZr%Qrs%qs#T%Q#T#U!It#U;'S%Q;'S;=`&s<%lO%QV!IyX&WSOY%QYZ%lZr%Qrs%qs#V%Q#V#W!Jf#W;'S%Q;'S;=`&s<%lO%QV!JkX&WSOY%QYZ%lZr%Qrs%qs#X%Q#X#Y!KW#Y;'S%Q;'S;=`&s<%lO%QV!K_V&rR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_!K{a&PZ&WSOY%QYZ%lZr%Qrs%qst%Qtu!Ktu!Q%Q!Q![!Kt![!c%Q!c!}!Kt!}#R%Q#R#S!Kt#S#T%Q#T#o!Kt#o;'S%Q;'S;=`&s<%lO%Q_!MXVuZ&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV!MuVsR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QU!NcX#cQ&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QV# VV}R&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_# uZ&|X#cQ&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`#p%Q#p#q#!h#q;'S%Q;'S;=`&s<%lO%QU#!oV#dQ&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV##]V|R&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT##yV#tP&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q",tokenizers:[0,1,2,3],topRules:{Program:[0,3]},dynamicPrecedences:{27:1,230:-1,241:-1},specialized:[{term:229,get:O=>r[O]||-1}],tokenPrec:7067});var s=P(4452);const X=s.LRLanguage.define({name:"java",parser:e.configure({props:[s.indentNodeProp.add({IfStatement:(0,s.continuedIndent)({except:/^\s*({|else\b)/}),TryStatement:(0,s.continuedIndent)({except:/^\s*({|catch|finally)\b/}),LabeledStatement:s.flatIndent,SwitchBlock:O=>{let Q=O.textAfter,P=/^\s*\}/.test(Q),$=/^\s*(case|default)\b/.test(Q);return O.baseIndent+(P?0:$?1:2)*O.unit},Block:(0,s.delimitedIndent)({closing:"}"}),BlockComment:()=>null,Statement:(0,s.continuedIndent)({except:/^{/})}),s.foldNodeProp.add({["Block SwitchBlock ClassBody ElementValueArrayInitializer ModuleBody EnumBody "+"ConstructorBody InterfaceBody ArrayInitializer"]:s.foldInside,BlockComment(O){return{from:O.from+2,to:O.to-2}}})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/}});function t(){return new s.LanguageSupport(X)}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/8786.a2bc3dfc1ea13c04ba94.js b/share/jupyter/lab/static/8786.a2bc3dfc1ea13c04ba94.js new file mode 100644 index 0000000..995e133 --- /dev/null +++ b/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,{cython:()=>c,mkPython:()=>s,python:()=>u});function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var i=r(["and","or","not","is"]);var a=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in","False","True"];var o=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];function l(e){return e.scopes[e.scopes.length-1]}function s(e){var t="error";var n=e.delimiters||e.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/;var s=[e.singleOperators,e.doubleOperators,e.doubleDelimiters,e.tripleDelimiters,e.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/];for(var f=0;fi)_(e,n);else if(a0&&z(e,n))o+=" "+t;return o}}return v(e,n)}function v(e,r,a){if(e.eatSpace())return null;if(!a&&e.match(/^#.*/))return"comment";if(e.match(/^[0-9\.]/,false)){var o=false;if(e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)){o=true}if(e.match(/^[\d_]+\.\d*/)){o=true}if(e.match(/^\.\d+/)){o=true}if(o){e.eat(/J/i);return"number"}var l=false;if(e.match(/^0x[0-9a-f_]+/i))l=true;if(e.match(/^0b[01_]+/i))l=true;if(e.match(/^0o[0-7_]+/i))l=true;if(e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)){e.eat(/J/i);l=true}if(e.match(/^0(?![\dx])/i))l=true;if(l){e.eat(/L/i);return"number"}}if(e.match(h)){var f=e.current().toLowerCase().indexOf("f")!==-1;if(!f){r.tokenize=x(e.current(),r.tokenize);return r.tokenize(e,r)}else{r.tokenize=k(e.current(),r.tokenize);return r.tokenize(e,r)}}for(var u=0;u=0)n=n.substr(1);var i=n.length==1;var a="string";function o(e){return function(t,n){var r=v(t,n,true);if(r=="punctuation"){if(t.current()=="{"){n.tokenize=o(e+1)}else if(t.current()=="}"){if(e>1)n.tokenize=o(e-1);else n.tokenize=l}}return r}}function l(l,s){while(!l.eol()){l.eatWhile(/[^'"\{\}\\]/);if(l.eat("\\")){l.next();if(i&&l.eol())return a}else if(l.match(n)){s.tokenize=r;return a}else if(l.match("{{")){return a}else if(l.match("{",false)){s.tokenize=o(0);if(l.current())return a;else return s.tokenize(l,s)}else if(l.match("}}")){return a}else if(l.match("}")){return t}else{l.eat(/['"]/)}}if(i){if(e.singleLineStringErrors)return t;else s.tokenize=r}return a}l.isString=true;return l}function x(n,r){while("rubf".indexOf(n.charAt(0).toLowerCase())>=0)n=n.substr(1);var i=n.length==1;var a="string";function o(o,l){while(!o.eol()){o.eatWhile(/[^'"\\]/);if(o.eat("\\")){o.next();if(i&&o.eol())return a}else if(o.match(n)){l.tokenize=r;return a}else{o.eat(/['"]/)}}if(i){if(e.singleLineStringErrors)return t;else l.tokenize=r}return a}o.isString=true;return o}function _(e,t){while(l(t).type!="py")t.scopes.pop();t.scopes.push({offset:l(t).offset+e.indentUnit,type:"py",align:null})}function w(e,t,n){var r=e.match(/^[\s\[\{\(]*(?:#|$)/,false)?null:e.column()+1;t.scopes.push({offset:t.indent+(u||e.indentUnit),type:n,align:r})}function z(e,t){var n=e.indentation();while(t.scopes.length>1&&l(t).offset>n){if(l(t).type!="py")return true;t.scopes.pop()}return l(t).offset!=n}function F(e,n){if(e.sol()){n.beginningOfLine=true;n.dedent=false}var r=n.tokenize(e,n);var i=e.current();if(n.beginningOfLine&&i=="@")return e.match(m,false)?"meta":d?"operator":t;if(/\S/.test(i))n.beginningOfLine=false;if((r=="variable"||r=="builtin")&&n.lastToken=="meta")r="meta";if(i=="pass"||i=="return")n.dedent=true;if(i=="lambda")n.lambda=true;if(i==":"&&!n.lambda&&l(n).type=="py"&&e.match(/^\s*(?:#|$)/,false))_(e,n);if(i.length==1&&!/string|comment/.test(r)){var a="[({".indexOf(i);if(a!=-1)w(e,n,"])}".slice(a,a+1));a="])}".indexOf(i);if(a!=-1){if(l(n).type==i)n.indent=n.scopes.pop().offset-(u||e.indentUnit);else return t}}if(n.dedent&&e.eol()&&l(n).type=="py"&&n.scopes.length>1)n.scopes.pop();return r}return{name:"python",startState:function(){return{tokenize:g,scopes:[{offset:0,type:"py",align:null}],indent:0,lastToken:null,lambda:false,dedent:0}},token:function(e,n){var r=n.errorToken;if(r)n.errorToken=false;var i=F(e,n);if(i&&i!="comment")n.lastToken=i=="keyword"||i=="punctuation"?e.current():i;if(i=="punctuation")i=null;if(e.eol()&&n.lambda)n.lambda=false;return r?t:i},indent:function(e,t,n){if(e.tokenize!=g)return e.tokenize.isString?null:0;var r=l(e);var i=r.type==t.charAt(0)||r.type=="py"&&!e.dedent&&/^(else:|elif |except |finally:)/.test(t);if(r.align!=null)return r.align-(i?1:0);else return r.offset-(i?u||n.unit:0)},languageData:{autocomplete:a.concat(o).concat(["exec","print"]),indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,commentTokens:{line:"#"},closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""']}}}}var f=function(e){return e.split(" ")};const u=s({});const c=s({extra_keywords:f("by cdef cimport cpdef ctypedef enum except "+"extern gil include nogil property public "+"readonly struct union DEF IF ELIF ELSE")})}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/88b98cad3688915e50da.woff b/share/jupyter/lab/static/88b98cad3688915e50da.woff new file mode 100644 index 0000000..2805af5 Binary files /dev/null and b/share/jupyter/lab/static/88b98cad3688915e50da.woff differ diff --git a/share/jupyter/lab/static/89.933673451ca4a51053cb.js b/share/jupyter/lab/static/89.933673451ca4a51053cb.js new file mode 100644 index 0000000..7f38e31 --- /dev/null +++ b/share/jupyter/lab/static/89.933673451ca4a51053cb.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[89],{30089:(e,t,n)=>{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/share/jupyter/lab/static/8968.b84a8021f65457b319c2.js b/share/jupyter/lab/static/8968.b84a8021f65457b319c2.js new file mode 100644 index 0000000..a6b97e7 --- /dev/null +++ b/share/jupyter/lab/static/8968.b84a8021f65457b319c2.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8968],{18968:(e,a,p)=>{p.d(a,{createTreemapServices:()=>t.d});var t=p(33308);var r=p(11254)}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/8ea8791754915a898a31.woff2 b/share/jupyter/lab/static/8ea8791754915a898a31.woff2 new file mode 100644 index 0000000..402f81c Binary files /dev/null and b/share/jupyter/lab/static/8ea8791754915a898a31.woff2 differ diff --git a/share/jupyter/lab/static/8ea8dbb1b02e6f730f55.woff b/share/jupyter/lab/static/8ea8dbb1b02e6f730f55.woff new file mode 100644 index 0000000..6496d17 Binary files /dev/null and b/share/jupyter/lab/static/8ea8dbb1b02e6f730f55.woff differ diff --git a/share/jupyter/lab/static/9023.2ff687d7ff50df3719fc.js b/share/jupyter/lab/static/9023.2ff687d7ff50df3719fc.js new file mode 100644 index 0000000..333f0fb --- /dev/null +++ b/share/jupyter/lab/static/9023.2ff687d7ff50df3719fc.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9023],{99023:(e,t,n)=>{n.r(t);n.d(t,{cypher:()=>f});var r=function(e){return new RegExp("^(?:"+e.join("|")+")$","i")};var a=function(e){o=null;var t=e.next();if(t==='"'){e.match(/^.*?"/);return"string"}if(t==="'"){e.match(/^.*?'/);return"string"}if(/[{}\(\),\.;\[\]]/.test(t)){o=t;return"punctuation"}else if(t==="/"&&e.eat("/")){e.skipToEnd();return"comment"}else if(d.test(t)){e.eatWhile(d);return null}else{e.eatWhile(/[_\w\d]/);if(e.eat(":")){e.eatWhile(/[\w\d_\-]/);return"atom"}var n=e.current();if(l.test(n))return"builtin";if(c.test(n))return"def";if(u.test(n)||p.test(n))return"keyword";return"variable"}};var i=function(e,t,n){return e.context={prev:e.context,indent:e.indent,col:n,type:t}};var s=function(e){e.indent=e.context.indent;return e.context=e.context.prev};var o;var l=r(["abs","acos","allShortestPaths","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endnode","exp","extract","filter","floor","haversin","head","id","keys","labels","last","left","length","log","log10","lower","ltrim","max","min","node","nodes","percentileCont","percentileDisc","pi","radians","rand","range","reduce","rel","relationship","relationships","replace","reverse","right","round","rtrim","shortestPath","sign","sin","size","split","sqrt","startnode","stdev","stdevp","str","substring","sum","tail","tan","timestamp","toFloat","toInt","toString","trim","type","upper"]);var c=r(["all","and","any","contains","exists","has","in","none","not","or","single","xor"]);var u=r(["as","asc","ascending","assert","by","case","commit","constraint","create","csv","cypher","delete","desc","descending","detach","distinct","drop","else","end","ends","explain","false","fieldterminator","foreach","from","headers","in","index","is","join","limit","load","match","merge","null","on","optional","order","periodic","profile","remove","return","scan","set","skip","start","starts","then","true","union","unique","unwind","using","when","where","with","call","yield"]);var p=r(["access","active","assign","all","alter","as","catalog","change","copy","create","constraint","constraints","current","database","databases","dbms","default","deny","drop","element","elements","exists","from","grant","graph","graphs","if","index","indexes","label","labels","management","match","name","names","new","node","nodes","not","of","on","or","password","populated","privileges","property","read","relationship","relationships","remove","replace","required","revoke","role","roles","set","show","start","status","stop","suspended","to","traverse","type","types","user","users","with","write"]);var d=/[*+\-<>=&|~%^]/;const f={name:"cypher",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()}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(o==="("){i(t,")",e.column())}else if(o==="["){i(t,"]",e.column())}else if(o==="{"){i(t,"}",e.column())}else if(/[\]\}\)]/.test(o)){while(t.context&&t.context.type==="pattern"){s(t)}if(t.context&&o===t.context.type){s(t)}}else if(o==="."&&t.context&&t.context.type==="pattern"){s(t)}else if(/atom|string|variable/.test(n)&&t.context){if(/[\}\]]/.test(t.context.type)){i(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 a=e.context;if(/[\]\}]/.test(r)){while(a&&a.type==="pattern"){a=a.prev}}var i=a&&r===a.type;if(!a)return 0;if(a.type==="keywords")return null;if(a.align)return a.col+(i?0:1);return a.indent+(i?0:n.unit)}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/9046.99c477ea375dcbb8c7ca.js b/share/jupyter/lab/static/9046.99c477ea375dcbb8c7ca.js new file mode 100644 index 0000000..7e2c20b --- /dev/null +++ b/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/share/jupyter/lab/static/9085.5a959b5878e7afd8a878.js b/share/jupyter/lab/static/9085.5a959b5878e7afd8a878.js new file mode 100644 index 0000000..de8e409 --- /dev/null +++ b/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/share/jupyter/lab/static/9085.5a959b5878e7afd8a878.js.LICENSE.txt b/share/jupyter/lab/static/9085.5a959b5878e7afd8a878.js.LICENSE.txt new file mode 100644 index 0000000..e68557b --- /dev/null +++ b/share/jupyter/lab/static/9085.5a959b5878e7afd8a878.js.LICENSE.txt @@ -0,0 +1,9 @@ +/** + * @license React + * react-jsx-runtime.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/share/jupyter/lab/static/9123.501219cd782693d6539f.js b/share/jupyter/lab/static/9123.501219cd782693d6539f.js new file mode 100644 index 0000000..a854381 --- /dev/null +++ b/share/jupyter/lab/static/9123.501219cd782693d6539f.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9123],{19123:(i,l,e)=>{e.r(l);e.d(l,{gas:()=>t,gasArm:()=>n});function a(i){var l=[];var e="";var a={".abort":"builtin",".align":"builtin",".altmacro":"builtin",".ascii":"builtin",".asciz":"builtin",".balign":"builtin",".balignw":"builtin",".balignl":"builtin",".bundle_align_mode":"builtin",".bundle_lock":"builtin",".bundle_unlock":"builtin",".byte":"builtin",".cfi_startproc":"builtin",".comm":"builtin",".data":"builtin",".def":"builtin",".desc":"builtin",".dim":"builtin",".double":"builtin",".eject":"builtin",".else":"builtin",".elseif":"builtin",".end":"builtin",".endef":"builtin",".endfunc":"builtin",".endif":"builtin",".equ":"builtin",".equiv":"builtin",".eqv":"builtin",".err":"builtin",".error":"builtin",".exitm":"builtin",".extern":"builtin",".fail":"builtin",".file":"builtin",".fill":"builtin",".float":"builtin",".func":"builtin",".global":"builtin",".gnu_attribute":"builtin",".hidden":"builtin",".hword":"builtin",".ident":"builtin",".if":"builtin",".incbin":"builtin",".include":"builtin",".int":"builtin",".internal":"builtin",".irp":"builtin",".irpc":"builtin",".lcomm":"builtin",".lflags":"builtin",".line":"builtin",".linkonce":"builtin",".list":"builtin",".ln":"builtin",".loc":"builtin",".loc_mark_labels":"builtin",".local":"builtin",".long":"builtin",".macro":"builtin",".mri":"builtin",".noaltmacro":"builtin",".nolist":"builtin",".octa":"builtin",".offset":"builtin",".org":"builtin",".p2align":"builtin",".popsection":"builtin",".previous":"builtin",".print":"builtin",".protected":"builtin",".psize":"builtin",".purgem":"builtin",".pushsection":"builtin",".quad":"builtin",".reloc":"builtin",".rept":"builtin",".sbttl":"builtin",".scl":"builtin",".section":"builtin",".set":"builtin",".short":"builtin",".single":"builtin",".size":"builtin",".skip":"builtin",".sleb128":"builtin",".space":"builtin",".stab":"builtin",".string":"builtin",".struct":"builtin",".subsection":"builtin",".symver":"builtin",".tag":"builtin",".text":"builtin",".title":"builtin",".type":"builtin",".uleb128":"builtin",".val":"builtin",".version":"builtin",".vtable_entry":"builtin",".vtable_inherit":"builtin",".warning":"builtin",".weak":"builtin",".weakref":"builtin",".word":"builtin"};var t={};function n(){e="#";t.al="variable";t.ah="variable";t.ax="variable";t.eax="variableName.special";t.rax="variableName.special";t.bl="variable";t.bh="variable";t.bx="variable";t.ebx="variableName.special";t.rbx="variableName.special";t.cl="variable";t.ch="variable";t.cx="variable";t.ecx="variableName.special";t.rcx="variableName.special";t.dl="variable";t.dh="variable";t.dx="variable";t.edx="variableName.special";t.rdx="variableName.special";t.si="variable";t.esi="variableName.special";t.rsi="variableName.special";t.di="variable";t.edi="variableName.special";t.rdi="variableName.special";t.sp="variable";t.esp="variableName.special";t.rsp="variableName.special";t.bp="variable";t.ebp="variableName.special";t.rbp="variableName.special";t.ip="variable";t.eip="variableName.special";t.rip="variableName.special";t.cs="keyword";t.ds="keyword";t.ss="keyword";t.es="keyword";t.fs="keyword";t.gs="keyword"}function b(){e="@";a.syntax="builtin";t.r0="variable";t.r1="variable";t.r2="variable";t.r3="variable";t.r4="variable";t.r5="variable";t.r6="variable";t.r7="variable";t.r8="variable";t.r9="variable";t.r10="variable";t.r11="variable";t.r12="variable";t.sp="variableName.special";t.lr="variableName.special";t.pc="variableName.special";t.r13=t.sp;t.r14=t.lr;t.r15=t.pc;l.push((function(i,l){if(i==="#"){l.eatWhile(/\w/);return"number"}}))}if(i==="x86"){n()}else if(i==="arm"||i==="armv6"){b()}function r(i,l){var e=false,a;while((a=i.next())!=null){if(a===l&&!e){return false}e=!e&&a==="\\"}return e}function u(i,l){var e=false,a;while((a=i.next())!=null){if(a==="/"&&e){l.tokenize=null;break}e=a==="*"}return"comment"}return{name:"gas",startState:function(){return{tokenize:null}},token:function(i,n){if(n.tokenize){return n.tokenize(i,n)}if(i.eatSpace()){return null}var b,s,c=i.next();if(c==="/"){if(i.eat("*")){n.tokenize=u;return u(i,n)}}if(c===e){i.skipToEnd();return"comment"}if(c==='"'){r(i,'"');return"string"}if(c==="."){i.eatWhile(/\w/);s=i.current().toLowerCase();b=a[s];return b||null}if(c==="="){i.eatWhile(/\w/);return"tag"}if(c==="{"){return"bracket"}if(c==="}"){return"bracket"}if(/\d/.test(c)){if(c==="0"&&i.eat("x")){i.eatWhile(/[0-9a-fA-F]/);return"number"}i.eatWhile(/\d/);return"number"}if(/\w/.test(c)){i.eatWhile(/\w/);if(i.eat(":")){return"tag"}s=i.current().toLowerCase();b=t[s];return b||null}for(var o=0;o{t.r(r);t.d(r,{css:()=>_,gss:()=>S,keywords:()=>q,less:()=>O,mkCSS:()=>i,sCSS:()=>C});function i(e){e={...K,...e};var r=e.inline;var t=e.tokenHooks,i=e.documentTypes||{},o=e.mediaTypes||{},a=e.mediaFeatures||{},n=e.mediaValueKeywords||{},l=e.propertyKeywords||{},s=e.nonStandardPropertyKeywords||{},c=e.fontProperties||{},d=e.counterDescriptors||{},p=e.colorKeywords||{},u=e.valueKeywords||{},m=e.allowNested,f=e.lineComment,g=e.supportsAtComponent===true,h=e.highlightNonStandardPropertyKeywords!==false;var b,k;function y(e,r){b=r;return e}function w(e,r){var i=e.next();if(t[i]){var o=t[i](e,r);if(o!==false)return o}if(i=="@"){e.eatWhile(/[\w\\\-]/);return y("def",e.current())}else if(i=="="||(i=="~"||i=="|")&&e.eat("=")){return y(null,"compare")}else if(i=='"'||i=="'"){r.tokenize=v(i);return r.tokenize(e,r)}else if(i=="#"){e.eatWhile(/[\w\\\-]/);return y("atom","hash")}else if(i=="!"){e.match(/^\s*\w*/);return y("keyword","important")}else if(/\d/.test(i)||i=="."&&e.eat(/\d/)){e.eatWhile(/[\w.%]/);return y("number","unit")}else if(i==="-"){if(/[\d.]/.test(e.peek())){e.eatWhile(/[\w.%]/);return y("number","unit")}else if(e.match(/^-[\w\\\-]*/)){e.eatWhile(/[\w\\\-]/);if(e.match(/^\s*:/,false))return y("def","variable-definition");return y("variableName","variable")}else if(e.match(/^\w+-/)){return y("meta","meta")}}else if(/[,+>*\/]/.test(i)){return y(null,"select-op")}else if(i=="."&&e.match(/^-?[_a-z][_a-z0-9-]*/i)){return y("qualifier","qualifier")}else if(/[:;{}\[\]\(\)]/.test(i)){return y(null,i)}else if(e.match(/^[\w-.]+(?=\()/)){if(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())){r.tokenize=x}return y("variableName.function","variable")}else if(/[\w\\\-]/.test(i)){e.eatWhile(/[\w\\\-]/);return y("property","word")}else{return y(null,null)}}function v(e){return function(r,t){var i=false,o;while((o=r.next())!=null){if(o==e&&!i){if(e==")")r.backUp(1);break}i=!i&&o=="\\"}if(o==e||!i&&e!=")")t.tokenize=null;return y("string","string")}}function x(e,r){e.next();if(!e.match(/^\s*[\"\')]/,false))r.tokenize=v(")");else r.tokenize=null;return y(null,"(")}function z(e,r,t){this.type=e;this.indent=r;this.prev=t}function j(e,r,t,i){e.context=new z(t,r.indentation()+(i===false?0:r.indentUnit),e.context);return t}function q(e){if(e.context.prev)e.context=e.context.prev;return e.context.type}function _(e,r,t){return O[t.context.type](e,r,t)}function B(e,r,t,i){for(var o=i||1;o>0;o--)t.context=t.context.prev;return _(e,r,t)}function C(e){var r=e.current().toLowerCase();if(u.hasOwnProperty(r))k="atom";else if(p.hasOwnProperty(r))k="keyword";else k="variable"}var O={};O.top=function(e,r,t){if(e=="{"){return j(t,r,"block")}else if(e=="}"&&t.context.prev){return q(t)}else if(g&&/@component/i.test(e)){return j(t,r,"atComponentBlock")}else if(/^@(-moz-)?document$/i.test(e)){return j(t,r,"documentTypes")}else if(/^@(media|supports|(-moz-)?document|import)$/i.test(e)){return j(t,r,"atBlock")}else if(/^@(font-face|counter-style)/i.test(e)){t.stateArg=e;return"restricted_atBlock_before"}else if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e)){return"keyframes"}else if(e&&e.charAt(0)=="@"){return j(t,r,"at")}else if(e=="hash"){k="builtin"}else if(e=="word"){k="tag"}else if(e=="variable-definition"){return"maybeprop"}else if(e=="interpolation"){return j(t,r,"interpolation")}else if(e==":"){return"pseudo"}else if(m&&e=="("){return j(t,r,"parens")}return t.context.type};O.block=function(e,r,t){if(e=="word"){var i=r.current().toLowerCase();if(l.hasOwnProperty(i)){k="property";return"maybeprop"}else if(s.hasOwnProperty(i)){k=h?"string.special":"property";return"maybeprop"}else if(m){k=r.match(/^\s*:(?:\s|$)/,false)?"property":"tag";return"block"}else{k="error";return"maybeprop"}}else if(e=="meta"){return"block"}else if(!m&&(e=="hash"||e=="qualifier")){k="error";return"block"}else{return O.top(e,r,t)}};O.maybeprop=function(e,r,t){if(e==":")return j(t,r,"prop");return _(e,r,t)};O.prop=function(e,r,t){if(e==";")return q(t);if(e=="{"&&m)return j(t,r,"propBlock");if(e=="}"||e=="{")return B(e,r,t);if(e=="(")return j(t,r,"parens");if(e=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(r.current())){k="error"}else if(e=="word"){C(r)}else if(e=="interpolation"){return j(t,r,"interpolation")}return"prop"};O.propBlock=function(e,r,t){if(e=="}")return q(t);if(e=="word"){k="property";return"maybeprop"}return t.context.type};O.parens=function(e,r,t){if(e=="{"||e=="}")return B(e,r,t);if(e==")")return q(t);if(e=="(")return j(t,r,"parens");if(e=="interpolation")return j(t,r,"interpolation");if(e=="word")C(r);return"parens"};O.pseudo=function(e,r,t){if(e=="meta")return"pseudo";if(e=="word"){k="variableName.constant";return t.context.type}return _(e,r,t)};O.documentTypes=function(e,r,t){if(e=="word"&&i.hasOwnProperty(r.current())){k="tag";return t.context.type}else{return O.atBlock(e,r,t)}};O.atBlock=function(e,r,t){if(e=="(")return j(t,r,"atBlock_parens");if(e=="}"||e==";")return B(e,r,t);if(e=="{")return q(t)&&j(t,r,m?"block":"top");if(e=="interpolation")return j(t,r,"interpolation");if(e=="word"){var i=r.current().toLowerCase();if(i=="only"||i=="not"||i=="and"||i=="or")k="keyword";else if(o.hasOwnProperty(i))k="attribute";else if(a.hasOwnProperty(i))k="property";else if(n.hasOwnProperty(i))k="keyword";else if(l.hasOwnProperty(i))k="property";else if(s.hasOwnProperty(i))k=h?"string.special":"property";else if(u.hasOwnProperty(i))k="atom";else if(p.hasOwnProperty(i))k="keyword";else k="error"}return t.context.type};O.atComponentBlock=function(e,r,t){if(e=="}")return B(e,r,t);if(e=="{")return q(t)&&j(t,r,m?"block":"top",false);if(e=="word")k="error";return t.context.type};O.atBlock_parens=function(e,r,t){if(e==")")return q(t);if(e=="{"||e=="}")return B(e,r,t,2);return O.atBlock(e,r,t)};O.restricted_atBlock_before=function(e,r,t){if(e=="{")return j(t,r,"restricted_atBlock");if(e=="word"&&t.stateArg=="@counter-style"){k="variable";return"restricted_atBlock_before"}return _(e,r,t)};O.restricted_atBlock=function(e,r,t){if(e=="}"){t.stateArg=null;return q(t)}if(e=="word"){if(t.stateArg=="@font-face"&&!c.hasOwnProperty(r.current().toLowerCase())||t.stateArg=="@counter-style"&&!d.hasOwnProperty(r.current().toLowerCase()))k="error";else k="property";return"maybeprop"}return"restricted_atBlock"};O.keyframes=function(e,r,t){if(e=="word"){k="variable";return"keyframes"}if(e=="{")return j(t,r,"top");return _(e,r,t)};O.at=function(e,r,t){if(e==";")return q(t);if(e=="{"||e=="}")return B(e,r,t);if(e=="word")k="tag";else if(e=="hash")k="builtin";return"at"};O.interpolation=function(e,r,t){if(e=="}")return q(t);if(e=="{"||e==";")return B(e,r,t);if(e=="word")k="variable";else if(e!="variable"&&e!="("&&e!=")")k="error";return"interpolation"};return{name:e.name,startState:function(){return{tokenize:null,state:r?"block":"top",stateArg:null,context:new z(r?"block":"top",0,null)}},token:function(e,r){if(!r.tokenize&&e.eatSpace())return null;var t=(r.tokenize||w)(e,r);if(t&&typeof t=="object"){b=t[1];t=t[0]}k=t;if(b!="comment")r.state=O[r.state](b,e,r);return k},indent:function(e,r,t){var i=e.context,o=r&&r.charAt(0);var a=i.indent;if(i.type=="prop"&&(o=="}"||o==")"))i=i.prev;if(i.prev){if(o=="}"&&(i.type=="block"||i.type=="top"||i.type=="interpolation"||i.type=="restricted_atBlock")){i=i.prev;a=i.indent}else if(o==")"&&(i.type=="parens"||i.type=="atBlock_parens")||o=="{"&&(i.type=="at"||i.type=="atBlock")){a=Math.max(0,i.indent-t.unit)}}return a},languageData:{indentOnInput:/^\s*\}$/,commentTokens:{line:f,block:{open:"/*",close:"*/"}},autocomplete:P}}}function o(e){var r={};for(var t=0;t{i.r(e);i.d(e,{BidiSpan:()=>jt,BlockInfo:()=>ms,BlockType:()=>Ct,Decoration:()=>kt,Direction:()=>Ft,EditorView:()=>no,GutterMarker:()=>rr,MatchDecorator:()=>Xo,RectangleMarker:()=>Co,ViewPlugin:()=>Ae,ViewUpdate:()=>We,WidgetType:()=>Mt,__test:()=>Wr,closeHoverTooltips:()=>_n,crosshairCursor:()=>xn,drawSelection:()=>Lo,dropCursor:()=>Ko,getDialog:()=>er,getDrawSelectionConfig:()=>Po,getPanel:()=>$n,getTooltip:()=>qn,gutter:()=>cr,gutterLineClass:()=>lr,gutterWidgetClass:()=>ar,gutters:()=>ur,hasHoverTooltips:()=>Kn,highlightActiveLine:()=>hn,highlightActiveLineGutter:()=>Rr,highlightSpecialChars:()=>Zo,highlightTrailingWhitespace:()=>Fr,highlightWhitespace:()=>Nr,hoverTooltip:()=>In,keymap:()=>go,layer:()=>Ro,lineNumberMarkers:()=>Sr,lineNumberWidgetMarker:()=>xr,lineNumbers:()=>Dr,logException:()=>xe,panels:()=>jn,placeholder:()=>un,rectangularSelection:()=>bn,repositionTooltips:()=>Xn,runScopeHandlers:()=>vo,scrollPastEnd:()=>an,showDialog:()=>tr,showPanel:()=>Zn,showTooltip:()=>Ln,tooltips:()=>kn});var s=i(71674);var o=i(23546);var n={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"};var r={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'};var l=typeof navigator!="undefined"&&/Chrome\/(\d+)/.exec(navigator.userAgent);var a=typeof navigator!="undefined"&&/Gecko\/\d+/.test(navigator.userAgent);var h=typeof navigator!="undefined"&&/Mac/.test(navigator.platform);var f=typeof navigator!="undefined"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);var c=h||l&&+l[1]<57;for(var d=0;d<10;d++)n[48+d]=n[96+d]=String(d);for(var d=1;d<=24;d++)n[d+111]="F"+d;for(var d=65;d<=90;d++){n[d]=String.fromCharCode(d+32);r[d]=String.fromCharCode(d)}for(var u in n)if(!r.hasOwnProperty(u))r[u]=n[u];function p(t){var e=c&&(t.ctrlKey||t.altKey||t.metaKey)||f&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified";var i=!e&&t.key||(t.shiftKey?r:n)[t.keyCode]||t.key||"Unidentified";if(i=="Esc")i="Escape";if(i=="Del")i="Delete";if(i=="Left")i="ArrowLeft";if(i=="Up")i="ArrowUp";if(i=="Right")i="ArrowRight";if(i=="Down")i="ArrowDown";return i}var g=i(41107);function m(t){let e;if(t.nodeType==11){e=t.getSelection?t:t.ownerDocument}else{e=t}return e.getSelection()}function w(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):false}function v(t,e){if(!e.anchorNode)return false;try{return w(t,e.anchorNode)}catch(i){return false}}function b(t){if(t.nodeType==3)return P(t,0,t.nodeValue.length).getClientRects();else if(t.nodeType==1)return t.getClientRects();else return[]}function y(t,e,i,s){return i?M(t,e,i,s,-1)||M(t,e,i,s,1):false}function S(t){for(var e=0;;e++){t=t.previousSibling;if(!t)return e}}function x(t){return t.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function M(t,e,i,s,o){for(;;){if(t==i&&e==s)return true;if(e==(o<0?0:C(t))){if(t.nodeName=="DIV")return false;let i=t.parentNode;if(!i||i.nodeType!=1)return false;e=S(t)+(o<0?0:1);t=i}else if(t.nodeType==1){t=t.childNodes[e+(o<0?-1:0)];if(t.nodeType==1&&t.contentEditable=="false")return false;e=o<0?C(t):0}else{return false}}}function C(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function k(t,e){let i=e?t.left:t.right;return{left:i,right:i,top:t.top,bottom:t.bottom}}function A(t){let e=t.visualViewport;if(e)return{left:0,right:e.width,top:0,bottom:e.height};return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function D(t,e){let i=e.width/t.offsetWidth;let s=e.height/t.offsetHeight;if(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.width-t.offsetWidth)<1)i=1;if(s>.995&&s<1.005||!isFinite(s)||Math.abs(e.height-t.offsetHeight)<1)s=1;return{scaleX:i,scaleY:s}}function O(t,e,i,s,o,n,r,l){let a=t.ownerDocument,h=a.defaultView||window;for(let f=t,c=false;f&&!c;){if(f.nodeType==1){let t,d=f==a.body;let u=1,p=1;if(d){t=A(h)}else{if(/^(fixed|sticky)$/.test(getComputedStyle(f).position))c=true;if(f.scrollHeight<=f.clientHeight&&f.scrollWidth<=f.clientWidth){f=f.assignedSlot||f.parentNode;continue}let e=f.getBoundingClientRect();({scaleX:u,scaleY:p}=D(f,e));t={left:e.left,right:e.left+f.clientWidth*u,top:e.top,bottom:e.top+f.clientHeight*p}}let g=0,m=0;if(o=="nearest"){if(e.top0&&e.bottom>t.bottom+m)m=e.bottom-t.bottom+r}else if(e.bottom>t.bottom){m=e.bottom-t.bottom+r;if(i<0&&e.top-m0&&e.right>t.right+g)g=e.right-t.right+n}else if(e.right>t.right){g=e.right-t.right+n;if(i<0&&e.leftt.bottom||e.leftt.right)e={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};f=f.assignedSlot||f.parentNode}else if(f.nodeType==11){f=f.host}else{break}}}function T(t){let e=t.ownerDocument,i,s;for(let o=t.parentNode;o;){if(o==e.body||i&&s){break}else if(o.nodeType==1){if(!s&&o.scrollHeight>o.clientHeight)s=o;if(!i&&o.scrollWidth>o.clientWidth)i=o;o=o.assignedSlot||o.parentNode}else if(o.nodeType==11){o=o.host}else{break}}return{x:i,y:s}}class E{constructor(){this.anchorNode=null;this.anchorOffset=0;this.focusNode=null;this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:e,focusNode:i}=t;this.set(e,Math.min(t.anchorOffset,e?C(e):0),i,Math.min(t.focusOffset,i?C(i):0))}set(t,e,i,s){this.anchorNode=t;this.anchorOffset=e;this.focusNode=i;this.focusOffset=s}}let R=null;function B(t){if(t.setActive)return t.setActive();if(R)return t.focus(R);let e=[];for(let i=t;i;i=i.parentNode){e.push(i,i.scrollTop,i.scrollLeft);if(i==i.ownerDocument)break}t.focus(R==null?{get preventScroll(){R={preventScroll:true};return true}}:undefined);if(!R){R=false;for(let t=0;tMath.max(1,t.scrollHeight-t.clientHeight-4)}function z(t,e){for(let i=t,s=e;;){if(i.nodeType==3&&s>0){return{node:i,offset:s}}else if(i.nodeType==1&&s>0){if(i.contentEditable=="false")return null;i=i.childNodes[s-1];s=C(i)}else if(i.parentNode&&!x(i)){s=S(i);i=i.parentNode}else{return null}}}function I(t,e){for(let i=t,s=e;;){if(i.nodeType==3&&se)return i.domBoundsAround(t,e,a);if(f>=t&&s==-1){s=l;o=a}if(a>e&&i.dom.parentNode==this.dom){n=l;r=h;break}h=f;a=f+i.breakAfter}return{from:o,to:r<0?i+this.length:r,startDOM:(s?this.children[s-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:n=0?this.children[n].dom:null}}markDirty(t=false){this.flags|=2;this.markParentsDirty(t)}markParentsDirty(t){for(let e=this.parent;e;e=e.parent){if(t)e.flags|=2;if(e.flags&1)return;e.flags|=1;t=false}}setParent(t){if(this.parent!=t){this.parent=t;if(this.flags&7)this.markParentsDirty(true)}}setDOM(t){if(this.dom==t)return;if(this.dom)this.dom.cmView=null;this.dom=t;t.cmView=this}get rootView(){for(let t=this;;){let e=t.parent;if(!e)return t;t=e}}replaceChildren(t,e,i=K){this.markDirty();for(let s=t;sthis.pos||t==this.pos&&(e>0||this.i==0||this.children[this.i-1].breakAfter)){this.off=t-this.pos;return this}let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function G(t,e,i,s,o,n,r,l,a){let{children:h}=t;let f=h.length?h[e]:null;let c=n.length?n[n.length-1]:null;let d=c?c.breakAfter:r;if(e==s&&f&&!r&&!d&&n.length<2&&f.merge(i,o,n.length?c:null,i==0,l,a))return;if(s0){if(!r&&n.length&&f.merge(i,f.length,n[0],false,l,0)){f.breakAfter=n.shift().breakAfter}else if(i2);var rt={mac:nt||/Mac/.test($.platform),windows:/Win/.test($.platform),linux:/Linux|X11/.test($.platform),ie:tt,ie_version:J?U.documentMode||6:Z?+Z[1]:Q?+Q[1]:0,gecko:et,gecko_version:et?+(/Firefox\/(\d+)/.exec($.userAgent)||[0,0])[1]:0,chrome:!!it,chrome_version:it?+it[1]:0,ios:nt,android:/Android\b/.test($.userAgent),webkit:st,safari:ot,webkit_version:st?+(/\bAppleWebKit\/(\d+)/.exec($.userAgent)||[0,0])[1]:0,tabSize:U.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const lt=256;class at extends Y{constructor(t){super();this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t,e){if(!this.dom)this.createDOM();if(this.dom.nodeValue!=this.text){if(e&&e.node==this.dom)e.written=true;this.dom.nodeValue=this.text}}reuseDOM(t){if(t.nodeType==3)this.createDOM(t)}merge(t,e,i){if(this.flags&8||i&&(!(i instanceof at)||this.length-(e-t)+i.length>lt||i.flags&8))return false;this.text=this.text.slice(0,t)+(i?i.text:"")+this.text.slice(e);this.markDirty();return true}split(t){let e=new at(this.text.slice(t));this.text=this.text.slice(0,t);this.markDirty();e.flags|=this.flags&8;return e}localPosFromDOM(t,e){return t==this.dom?e:e?this.text.length:0}domAtPos(t){return new q(this.dom,t)}domBoundsAround(t,e,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,e){return ft(this.dom,t,e)}}class ht extends Y{constructor(t,e=[],i=0){super();this.mark=t;this.children=e;this.length=i;for(let s of e)s.setParent(this)}setAttrs(t){V(t);if(this.mark.class)t.className=this.mark.class;if(this.mark.attrs)for(let e in this.mark.attrs)t.setAttribute(e,this.mark.attrs[e]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!((this.flags|t.flags)&8)}reuseDOM(t){if(t.nodeName==this.mark.tagName.toUpperCase()){this.setDOM(t);this.flags|=4|2}}sync(t,e){if(!this.dom)this.setDOM(this.setAttrs(document.createElement(this.mark.tagName)));else if(this.flags&4)this.setAttrs(this.dom);super.sync(t,e)}merge(t,e,i,s,o,n){if(i&&(!(i instanceof ht&&i.mark.eq(this.mark))||t&&o<=0||et)e.push(i=t)s=o;i=n;o++}let n=this.length-t;this.length=t;if(s>-1){this.children.length=s;this.markDirty()}return new ht(this.mark,e,n)}domAtPos(t){return ut(this,t)}coordsAt(t,e){return gt(this,t,e)}}function ft(t,e,i){let s=t.nodeValue.length;if(e>s)e=s;let o=e,n=e,r=0;if(e==0&&i<0||e==s&&i>=0){if(!(rt.chrome||rt.gecko)){if(e){o--;r=1}else if(n=0)?0:l.length-1];if(rt.safari&&!r&&a.width==0)a=Array.prototype.find.call(l,(t=>t.width))||a;return r?k(a,r<0):a||null}class ct extends Y{static create(t,e,i){return new ct(t,e,i)}constructor(t,e,i){super();this.widget=t;this.length=e;this.side=i;this.prevWidget=null}split(t){let e=ct.create(this.widget,this.length-t,this.side);this.length-=t;return e}sync(t){if(!this.dom||!this.widget.updateDOM(this.dom,t)){if(this.dom&&this.prevWidget)this.prevWidget.destroy(this.dom);this.prevWidget=null;this.setDOM(this.widget.toDOM(t));if(!this.widget.editable)this.dom.contentEditable="false"}}getSide(){return this.side}merge(t,e,i,s,o,n){if(i&&(!(i instanceof ct)||!this.widget.compare(i.widget)||t>0&&o<=0||e0)?q.before(this.dom):q.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,e){let i=this.widget.coordsAt(this.dom,t,e);if(i)return i;let s=this.dom.getClientRects(),o=null;if(!s.length)return null;let n=this.side?this.side<0:t>0;for(let r=n?s.length-1:0;;r+=n?-1:1){o=s[r];if(t>0?r==0:r==s.length-1||o.top0?q.before(this.dom):q.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return s.Text.empty}get isHidden(){return true}}at.prototype.children=ct.prototype.children=dt.prototype.children=K;function ut(t,e){let i=t.dom,{children:s}=t,o=0;for(let n=0;on&&e0;n--){let t=s[n-1];if(t.dom.parentNode==i)return t.domAtPos(t.length)}for(let n=o;n0&&e instanceof ht&&o.length&&(s=o[o.length-1])instanceof ht&&s.mark.eq(e.mark)){pt(s,e.children[0],i-1)}else{o.push(e);e.setParent(t)}t.length+=e.length}function gt(t,e,i){let s=null,o=-1,n=null,r=-1;function l(t,e){for(let a=0,h=0;a=e){if(f.children.length){l(f,e-h)}else if((!n||n.isHidden&&(i>0||wt(n,f)))&&(c>e||h==c&&f.getSide()>0)){n=f;r=e-h}else if(h-1?1:0)!=o.length-(i&&o.indexOf(i)>-1?1:0))return false;for(let n of s){if(n!=i&&(o.indexOf(n)==-1||t[n]!==e[n]))return false}return true}function St(t,e,i){let s=false;if(e)for(let o in e)if(!(i&&o in i)){s=true;if(o=="style")t.style.cssText="";else t.removeAttribute(o)}if(i)for(let o in i)if(!(e&&e[o]==i[o])){s=true;if(o=="style")t.style.cssText=i[o];else t.setAttribute(o,i[o])}return s}function xt(t){let e=Object.create(null);for(let i=0;i0?3e8:-4e8:e>0?1e8:-1e8;return new Ot(t,e,e,i,t.widget||null,false)}static replace(t){let e=!!t.block,i,s;if(t.isBlockGap){i=-5e8;s=4e8}else{let{start:o,end:n}=Tt(t,e);i=(o?e?-3e8:-1:5e8)-1;s=(n?e?2e8:1:-6e8)+1}return new Ot(t,i,s,e,t.widget||null,true)}static line(t){return new Dt(t)}static set(t,e=false){return s.RangeSet.of(t,e)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:false}}kt.none=s.RangeSet.empty;class At extends kt{constructor(t){let{start:e,end:i}=Tt(t);super(e?-1:5e8,i?1:-6e8,null,t);this.tagName=t.tagName||"span";this.class=t.class||"";this.attrs=t.attributes||null}eq(t){var e,i;return this==t||t instanceof At&&this.tagName==t.tagName&&(this.class||((e=this.attrs)===null||e===void 0?void 0:e.class))==(t.class||((i=t.attrs)===null||i===void 0?void 0:i.class))&&yt(this.attrs,t.attrs,"class")}range(t,e=t){if(t>=e)throw new RangeError("Mark decorations may not be empty");return super.range(t,e)}}At.prototype.point=false;class Dt extends kt{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof Dt&&this.spec.class==t.spec.class&&yt(this.spec.attributes,t.spec.attributes)}range(t,e=t){if(e!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,e)}}Dt.prototype.mapMode=s.MapMode.TrackBefore;Dt.prototype.point=true;class Ot extends kt{constructor(t,e,i,o,n,r){super(e,i,n,t);this.block=o;this.isReplace=r;this.mapMode=!o?s.MapMode.TrackDel:e<=0?s.MapMode.TrackBefore:s.MapMode.TrackAfter}get type(){return this.startSide!=this.endSide?Ct.WidgetRange:this.startSide<=0?Ct.WidgetBefore:Ct.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof Ot&&Et(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,e=t){if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,e)}}Ot.prototype.point=true;function Tt(t,e=false){let{inclusiveStart:i,inclusiveEnd:s}=t;if(i==null)i=t.inclusive;if(s==null)s=t.inclusive;return{start:i!==null&&i!==void 0?i:e,end:s!==null&&s!==void 0?s:e}}function Et(t,e){return t==e||!!(t&&e&&t.compare(e))}function Rt(t,e,i,s=0){let o=i.length-1;if(o>=0&&i[o]+s>=t)i[o]=Math.max(i[o],e);else i.push(t,e)}class Bt extends Y{constructor(){super(...arguments);this.children=[];this.length=0;this.prevAttrs=undefined;this.attrs=null;this.breakAfter=0}merge(t,e,i,s,o,n){if(i){if(!(i instanceof Bt))return false;if(!this.dom)i.transferDOM(this)}if(s)this.setDeco(i?i.attrs:null);j(this,t,e,i?i.children.slice():[],o,n);return true}split(t){let e=new Bt;e.breakAfter=this.breakAfter;if(this.length==0)return e;let{i,off:s}=this.childPos(t);if(s){e.append(this.children[i].split(s),0);this.children[i].merge(s,this.children[i].length,null,false,0,0);i++}for(let o=i;o0&&this.children[i-1].length==0)this.children[--i].destroy();this.children.length=i;this.markDirty();this.length=t;return e}transferDOM(t){if(!this.dom)return;this.markDirty();t.setDOM(this.dom);t.prevAttrs=this.prevAttrs===undefined?this.attrs:this.prevAttrs;this.prevAttrs=undefined;this.dom=null}setDeco(t){if(!yt(this.attrs,t)){if(this.dom){this.prevAttrs=this.attrs;this.markDirty()}this.attrs=t}}append(t,e){pt(this,t,e)}addLineDeco(t){let e=t.spec.attributes,i=t.spec.class;if(e)this.attrs=vt(e,this.attrs||{});if(i)this.attrs=vt({class:i},this.attrs||{})}domAtPos(t){return ut(this,t)}reuseDOM(t){if(t.nodeName=="DIV"){this.setDOM(t);this.flags|=4|2}}sync(t,e){var i;if(!this.dom){this.setDOM(document.createElement("div"));this.dom.className="cm-line";this.prevAttrs=this.attrs?null:undefined}else if(this.flags&4){V(this.dom);this.dom.className="cm-line";this.prevAttrs=this.attrs?null:undefined}if(this.prevAttrs!==undefined){St(this.dom,this.prevAttrs,this.attrs);this.dom.classList.add("cm-line");this.prevAttrs=undefined}super.sync(t,e);let s=this.dom.lastChild;while(s&&Y.get(s)instanceof ht)s=s.lastChild;if(!s||!this.length||s.nodeName!="BR"&&((i=Y.get(s))===null||i===void 0?void 0:i.isEditable)==false&&(!rt.ios||!this.children.some((t=>t instanceof at)))){let t=document.createElement("BR");t.cmIgnore=true;this.dom.appendChild(t)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let t=0,e;for(let i of this.children){if(!(i instanceof at)||/[^ -~]/.test(i.text))return null;let s=b(i.dom);if(s.length!=1)return null;t+=s[0].width;e=s[0].height}return!t?null:{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}}coordsAt(t,e){let i=gt(this,t,e);if(!this.children.length&&i&&this.parent){let{heightOracle:t}=this.parent.view.viewState,e=i.bottom-i.top;if(Math.abs(e-t.lineHeight)<2&&t.textHeight=e){if(o instanceof Bt)return o;if(n>e)break}s=n+o.breakAfter}return null}}class Lt extends Y{constructor(t,e,i){super();this.widget=t;this.length=e;this.deco=i;this.breakAfter=0;this.prevWidget=null}merge(t,e,i,s,o,n){if(i&&(!(i instanceof Lt)||!this.widget.compare(i.widget)||t>0&&o<=0||e0}}class Pt extends Mt{constructor(t){super();this.height=t}toDOM(){let t=document.createElement("div");t.className="cm-gap";this.updateDOM(t);return t}eq(t){return t.height==this.height}updateDOM(t){t.style.height=this.height+"px";return true}get editable(){return true}get estimatedHeight(){return this.height}ignoreEvent(){return false}}class Ht{constructor(t,e,i,s){this.doc=t;this.pos=e;this.end=i;this.disallowBlockEffectsFor=s;this.content=[];this.curLine=null;this.breakAtStart=0;this.pendingBuffer=0;this.bufferMarks=[];this.atCursorPos=true;this.openStart=-1;this.openEnd=-1;this.text="";this.textOff=0;this.cursor=t.iter();this.skip=e}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let t=this.content[this.content.length-1];return!(t.breakAfter||t instanceof Lt&&t.deco.endSide<0)}getLine(){if(!this.curLine){this.content.push(this.curLine=new Bt);this.atCursorPos=true}return this.curLine}flushBuffer(t=this.bufferMarks){if(this.pendingBuffer){this.curLine.append(Nt(new dt(-1),t),t.length);this.pendingBuffer=0}}addBlockWidget(t){this.flushBuffer();this.curLine=null;this.content.push(t)}finish(t){if(this.pendingBuffer&&t<=this.bufferMarks.length)this.flushBuffer();else this.pendingBuffer=0;if(!this.posCovered()&&!(t&&this.content.length&&this.content[this.content.length-1]instanceof Lt))this.getLine()}buildText(t,e,i){while(t>0){if(this.textOff==this.text.length){let{value:e,lineBreak:i,done:s}=this.cursor.next(this.skip);this.skip=0;if(s)throw new Error("Ran out of text content when drawing inline views");if(i){if(!this.posCovered())this.getLine();if(this.content.length)this.content[this.content.length-1].breakAfter=1;else this.breakAtStart=1;this.flushBuffer();this.curLine=null;this.atCursorPos=true;t--;continue}else{this.text=e;this.textOff=0}}let s=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(e.slice(e.length-i));this.getLine().append(Nt(new at(this.text.slice(this.textOff,this.textOff+s)),e),i);this.atCursorPos=true;this.textOff+=s;t-=s;i=0}}span(t,e,i,s){this.buildText(e-t,i,s);this.pos=e;if(this.openStart<0)this.openStart=s}point(t,e,i,s,o,n){if(this.disallowBlockEffectsFor[n]&&i instanceof Ot){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let r=e-t;if(i instanceof Ot){if(i.block){if(i.startSide>0&&!this.posCovered())this.getLine();this.addBlockWidget(new Lt(i.widget||Vt.block,r,i))}else{let n=ct.create(i.widget||Vt.inline,r,r?0:i.startSide);let l=this.atCursorPos&&!n.isEditable&&o<=s.length&&(t0);let a=!n.isEditable&&(ts.length||i.startSide<=0);let h=this.getLine();if(this.pendingBuffer==2&&!l&&!n.isEditable)this.pendingBuffer=0;this.flushBuffer(s);if(l){h.append(Nt(new dt(1),s),o);o=s.length+Math.max(0,o-s.length)}h.append(Nt(n,s),o);this.atCursorPos=a;this.pendingBuffer=!a?0:ts.length?1:2;if(this.pendingBuffer)this.bufferMarks=s.slice()}}else if(this.doc.lineAt(this.pos).from==this.pos){this.getLine().addLineDeco(i)}if(r){if(this.textOff+r<=this.text.length){this.textOff+=r}else{this.skip+=r-(this.text.length-this.textOff);this.text="";this.textOff=0}this.pos=e}if(this.openStart<0)this.openStart=o}static build(t,e,i,o,n){let r=new Ht(t,e,i,n);r.openEnd=s.RangeSet.spans(o,e,i,r);if(r.openStart<0)r.openStart=r.openEnd;r.finish(r.openEnd);return r}}function Nt(t,e){for(let i of e)t=new ht(i,[t],t.length);return t}class Vt extends Mt{constructor(t){super();this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return true}}Vt.inline=new Vt("span");Vt.block=new Vt("div");var Ft=function(t){t[t["LTR"]=0]="LTR";t[t["RTL"]=1]="RTL";return t}(Ft||(Ft={}));const Wt=Ft.LTR,zt=Ft.RTL;function It(t){let e=[];for(let i=0;i=e){if(r.level==i)return n;if(o<0||(s!=0?s<0?r.frome:t[o].level>r.level))o=n}}if(o<0)throw new RangeError("Index out of range");return o}}function $t(t,e){if(t.length!=e.length)return false;for(let i=0;i=0;t-=3){if(_t[t+1]==-s){let i=_t[t+2];let s=i&2?o:!(i&4)?0:i&1?n:o;if(s)Ut[e]=Ut[_t[t]]=s;l=t;break}}}else if(_t.length==189){break}else{_t[l++]=e;_t[l++]=i;_t[l++]=a}}else if((r=Ut[e])==2||r==1){let t=r==o;a=t?0:1;for(let e=l-3;e>=0;e-=3){let i=_t[e+2];if(i&2)break;if(t){_t[e+2]|=2}else{if(i&4)break;_t[e+2]|=4}}}}}}function Zt(t,e,i,s){for(let o=0,n=s;o<=i.length;o++){let r=o?i[o-1].to:t,l=oa;){if(e==n){e=i[--s].from;n=s?i[s-1].to:t}Ut[--e]=c}a=r}else{n=r;a++}}}}function te(t,e,i,s,o,n,r){let l=s%2?2:1;if(s%2==o%2){for(let a=e,h=0;aa)r.push(new jt(a,p.from,d));let e=p.direction==Wt!=!(d%2);ee(t,e?s+1:s,o,p.inner,p.from,p.to,r);a=p.to}u=p.to}else if(u==i||(e?Ut[u]!=l:Ut[u]==l)){break}else{u++}}if(c)te(t,a,u,s+1,o,c,r);else if(ae;){let i=true,f=false;if(!h||a>n[h-1].to){let t=Ut[a-1];if(t!=l){i=false;f=t==16}}let c=!i&&l==1?[]:null;let d=i?s:s+1;let u=a;t:for(;;){if(h&&u==n[h-1].to){if(f)break t;let p=n[--h];if(!i)for(let t=p.from,i=h;;){if(t==e)break t;if(i&&n[i-1].to==t)t=n[--i].from;else if(Ut[t-1]==l)break t;else break}if(c){c.push(p)}else{if(p.toUt.length)Ut[Ut.length]=256;let s=[],o=e==Wt?0:1;ee(t,o,o,i,0,t.length,s);return s}function se(t){return[new jt(0,t,0)]}let oe="";function ne(t,e,i,o,n){var r;let l=o.head-t.from;let a=jt.find(e,l,(r=o.bidiLevel)!==null&&r!==void 0?r:-1,o.assoc);let h=e[a],f=h.side(n,i);if(l==f){let t=a+=n?1:-1;if(t<0||t>=e.length)return null;h=e[a=t];l=h.side(!n,i);f=h.side(n,i)}let c=(0,s.findClusterBreak)(t.text,l,h.forward(n,i));if(ch.to)c=f;oe=t.text.slice(Math.min(l,c),Math.max(l,c));let d=a==(n?e.length-1:0)?null:e[a+(n?1:-1)];if(d&&c==f&&d.level+(n?0:1)t.some((t=>t))});const we=s.Facet.define({combine:t=>t.some((t=>t))});const ve=s.Facet.define();class be{constructor(t,e="nearest",i="nearest",s=5,o=5,n=false){this.range=t;this.y=e;this.x=i;this.yMargin=s;this.xMargin=o;this.isSnapshot=n}map(t){return t.empty?this:new be(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new be(s.EditorSelection.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const ye=s.StateEffect.define({map:(t,e)=>t.map(e)});const Se=s.StateEffect.define();function xe(t,e,i){let s=t.facet(fe);if(s.length)s[0](e);else if(window.onerror&&window.onerror(String(e),i,undefined,undefined,e));else if(i)console.error(i+":",e);else console.error(e)}const Me=s.Facet.define({combine:t=>t.length?t[0]:true});let Ce=0;const ke=s.Facet.define({combine(t){return t.filter(((e,i)=>{for(let s=0;s{let e=[];if(n)e.push(Ee.of((e=>{let i=e.plugin(t);return i?n(i):kt.none})));if(o)e.push(o(t));return e}))}static fromClass(t,e){return Ae.define(((e,i)=>new t(e,i)),e)}}class De{constructor(t){this.spec=t;this.mustUpdate=null;this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(t){if(!this.value){if(this.spec){try{this.value=this.spec.plugin.create(t,this.spec.arg)}catch(e){xe(t.state,e,"CodeMirror plugin crashed");this.deactivate()}}}else if(this.mustUpdate){let t=this.mustUpdate;this.mustUpdate=null;if(this.value.update){try{this.value.update(t)}catch(e){xe(t.state,e,"CodeMirror plugin crashed");if(this.value.destroy)try{this.value.destroy()}catch(i){}this.deactivate()}}}return this}destroy(t){var e;if((e=this.value)===null||e===void 0?void 0:e.destroy){try{this.value.destroy()}catch(i){xe(t.state,i,"CodeMirror plugin crashed")}}}deactivate(){this.spec=this.value=null}}const Oe=s.Facet.define();const Te=s.Facet.define();const Ee=s.Facet.define();const Re=s.Facet.define();const Be=s.Facet.define();const Le=s.Facet.define();function Pe(t,e){let i=t.state.facet(Le);if(!i.length)return i;let o=i.map((e=>e instanceof Function?e(t):e));let n=[];s.RangeSet.spans(o,e.from,e.to,{point(){},span(t,i,s,o){let r=t-e.from,l=i-e.from;let a=n;for(let n=s.length-1;n>=0;n--,o--){let t=s[n].spec.bidiIsolate,i;if(t==null)t=re(e.text,r,l);if(o>0&&a.length&&(i=a[a.length-1]).to==r&&i.direction==t){i.to=l;a=i.inner}else{let e={from:r,to:l,direction:t,inner:[]};a.push(e);a=e.inner}}}});return n}const He=s.Facet.define();function Ne(t){let e=0,i=0,s=0,o=0;for(let n of t.state.facet(He)){let r=n(t);if(r){if(r.left!=null)e=Math.max(e,r.left);if(r.right!=null)i=Math.max(i,r.right);if(r.top!=null)s=Math.max(s,r.top);if(r.bottom!=null)o=Math.max(o,r.bottom)}}return{left:e,right:i,top:s,bottom:o}}const Ve=s.Facet.define();class Fe{constructor(t,e,i,s){this.fromA=t;this.toA=e;this.fromB=i;this.toB=s}join(t){return new Fe(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let e=t.length,i=this;for(;e>0;e--){let s=t[e-1];if(s.fromA>i.toA)continue;if(s.toAh)break;else o+=2}if(!l)return i;new Fe(l.fromA,l.toA,l.fromB,l.toB).addToSet(i);n=l.toA;r=l.toB}}}class We{constructor(t,e,i){this.view=t;this.state=e;this.transactions=i;this.flags=0;this.startState=t.state;this.changes=s.ChangeSet.empty(this.startState.doc.length);for(let s of i)this.changes=this.changes.compose(s.changes);let o=[];this.changes.iterChangedRanges(((t,e,i,s)=>o.push(new Fe(t,e,i,s))));this.changedRanges=o}static create(t,e,i){return new We(t,e,i)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&(16|2))>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((t=>t.selection))}get empty(){return this.flags==0&&this.transactions.length==0}}class ze extends Y{get length(){return this.view.state.doc.length}constructor(t){super();this.view=t;this.decorations=[];this.dynamicDecorationMap=[false];this.domChanged=null;this.hasComposition=null;this.markedForComposition=new Set;this.editContextFormatting=kt.none;this.lastCompositionAfterCursor=false;this.minWidth=0;this.minWidthFrom=0;this.minWidthTo=0;this.impreciseAnchor=null;this.impreciseHead=null;this.forceSelection=false;this.lastUpdate=Date.now();this.setDOM(t.contentDOM);this.children=[new Bt];this.children[0].setParent(this);this.updateDeco();this.updateInner([new Fe(0,0,0,t.state.doc.length)],0,null)}update(t){var e;let i=t.changedRanges;if(this.minWidth>0&&i.length){if(!i.every((({fromA:t,toA:e})=>ethis.minWidthTo))){this.minWidth=this.minWidthFrom=this.minWidthTo=0}else{this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1);this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)}}this.updateEditContextFormatting(t);let s=-1;if(this.view.inputState.composing>=0&&!this.view.observer.editContext){if((e=this.domChanged)===null||e===void 0?void 0:e.newSel)s=this.domChanged.newSel.head;else if(!je(t.changes,this.hasComposition)&&!t.selectionSet)s=t.state.selection.main.head}let o=s>-1?Ke(this.view,t.changes,s):null;this.domChanged=null;if(this.hasComposition){this.markedForComposition.clear();let{from:e,to:s}=this.hasComposition;i=new Fe(e,s,t.changes.mapPos(e,-1),t.changes.mapPos(s,1)).addToSet(i.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null;if((rt.ie||rt.chrome)&&!o&&t&&t.state.doc.lines!=t.startState.doc.lines)this.forceSelection=true;let n=this.decorations,r=this.updateDeco();let l=Xe(n,r,t.changes);i=Fe.extendWithRanges(i,l);if(!(this.flags&7)&&i.length==0){return false}else{this.updateInner(i,t.startState.doc.length,o);if(t.transactions.length)this.lastUpdate=Date.now();return true}}updateInner(t,e,i){this.view.viewState.mustMeasureContent=true;this.updateChildren(t,e,i);let{observer:s}=this.view;s.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px";this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let t=rt.chrome||rt.ios?{node:s.selectionRange.focusNode,written:false}:undefined;this.sync(this.view,t);this.flags&=~7;if(t&&(t.written||s.selectionRange.focusNode!=t.node))this.forceSelection=true;this.dom.style.height=""}));this.markedForComposition.forEach((t=>t.flags&=~8));let o=[];if(this.view.viewport.from||this.view.viewport.to=0?s[n]:null;if(!t)break;let{fromA:e,toA:r,fromB:l,toB:a}=t,h,f,c,d;if(i&&i.range.fromBl){let t=Ht.build(this.view.state.doc,l,i.range.fromB,this.decorations,this.dynamicDecorationMap);let e=Ht.build(this.view.state.doc,i.range.toB,a,this.decorations,this.dynamicDecorationMap);f=t.breakAtStart;c=t.openStart;d=e.openEnd;let s=this.compositionView(i);if(e.breakAtStart){s.breakAfter=1}else if(e.content.length&&s.merge(s.length,s.length,e.content[0],false,e.openStart,0)){s.breakAfter=e.content[0].breakAfter;e.content.shift()}if(t.content.length&&s.merge(0,0,t.content[t.content.length-1],true,0,t.openEnd)){t.content.pop()}h=t.content.concat(s).concat(e.content)}else{({content:h,breakAtStart:f,openStart:c,openEnd:d}=Ht.build(this.view.state.doc,l,a,this.decorations,this.dynamicDecorationMap))}let{i:u,off:p}=o.findPos(r,1);let{i:g,off:m}=o.findPos(e,-1);G(this,g,m,u,p,h,f,c,d)}if(i)this.fixCompositionDOM(i)}updateEditContextFormatting(t){this.editContextFormatting=this.editContextFormatting.map(t.changes);for(let e of t.transactions)for(let t of e.effects)if(t.is(Se)){this.editContextFormatting=t.value}}compositionView(t){let e=new at(t.text.nodeValue);e.flags|=8;for(let{deco:s}of t.marks)e=new ht(s,[e],e.length);let i=new Bt;i.append(e,0);return i}fixCompositionDOM(t){let e=(t,e)=>{e.flags|=8|(e.children.some((t=>t.flags&7))?1:0);this.markedForComposition.add(e);let i=Y.get(t);if(i&&i!=e)i.dom=null;e.setDOM(t)};let i=this.childPos(t.range.fromB,1);let s=this.children[i.i];e(t.line,s);for(let o=t.marks.length-1;o>=-1;o--){i=s.childPos(i.off,1);s=s.children[i.i];e(o>=0?t.marks[o].node:t.text,s)}}updateSelection(t=false,e=false){if(t||!this.view.observer.selectionRange.focusNode)this.view.observer.readSelectionRange();let i=this.view.root.activeElement,s=i==this.dom;let o=!s&&!(this.view.state.facet(Me)||this.dom.tabIndex>-1)&&v(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(s||e||o))return;let n=this.forceSelection;this.forceSelection=false;let r=this.view.state.selection.main;let l=this.moveToLine(this.domAtPos(r.anchor));let a=r.empty?l:this.moveToLine(this.domAtPos(r.head));if(rt.gecko&&r.empty&&!this.hasComposition&&Ie(l)){let t=document.createTextNode("");this.view.observer.ignore((()=>l.node.insertBefore(t,l.node.childNodes[l.offset]||null)));l=a=new q(t,0);n=true}let h=this.view.observer.selectionRange;if(n||!h.focusNode||(!y(l.node,l.offset,h.anchorNode,h.anchorOffset)||!y(a.node,a.offset,h.focusNode,h.focusOffset))&&!this.suppressWidgetCursorChange(h,r)){this.view.observer.ignore((()=>{if(rt.android&&rt.chrome&&this.dom.contains(h.focusNode)&&Ge(h.focusNode,this.dom)){this.dom.blur();this.dom.focus({preventScroll:true})}let t=m(this.view.root);if(!t);else if(r.empty){if(rt.gecko){let t=Ye(l.node,l.offset);if(t&&t!=(1|2)){let e=(t==1?z:I)(l.node,l.offset);if(e)l=new q(e.node,e.offset)}}t.collapse(l.node,l.offset);if(r.bidiLevel!=null&&t.caretBidiLevel!==undefined)t.caretBidiLevel=r.bidiLevel}else if(t.extend){t.collapse(l.node,l.offset);try{t.extend(a.node,a.offset)}catch(e){}}else{let e=document.createRange();if(r.anchor>r.head)[l,a]=[a,l];e.setEnd(a.node,a.offset);e.setStart(l.node,l.offset);t.removeAllRanges();t.addRange(e)}if(o&&this.view.root.activeElement==this.dom){this.dom.blur();if(i)i.focus()}}));this.view.observer.setSelectionRange(l,a)}this.impreciseAnchor=l.precise?null:new q(h.anchorNode,h.anchorOffset);this.impreciseHead=a.precise?null:new q(h.focusNode,h.focusOffset)}suppressWidgetCursorChange(t,e){return this.hasComposition&&e.empty&&y(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)&&this.posFromDOM(t.focusNode,t.focusOffset)==e.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,e=t.state.selection.main;let i=m(t.root);let{anchorNode:s,anchorOffset:o}=t.observer.selectionRange;if(!i||!e.empty||!e.assoc||!i.modify)return;let n=Bt.find(this,e.head);if(!n)return;let r=n.posAtStart;if(e.head==r||e.head==r+n.length)return;let l=this.coordsAt(e.head,-1),a=this.coordsAt(e.head,1);if(!l||!a||l.bottom>a.top)return;let h=this.domAtPos(e.head+e.assoc);i.collapse(h.node,h.offset);i.modify("move",e.assoc<0?"forward":"backward","lineboundary");t.observer.readSelectionRange();let f=t.observer.selectionRange;if(t.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=e.from)i.collapse(s,o)}moveToLine(t){let e=this.dom,i;if(t.node!=e)return t;for(let s=t.offset;!i&&s=0;s--){let t=Y.get(e.childNodes[s]);if(t instanceof Bt)i=t.domAtPos(t.length)}return i?new q(i.node,i.offset,true):t}nearest(t){for(let e=t;e;){let t=Y.get(e);if(t&&t.rootView==this)return t;e=e.parentNode}return null}posFromDOM(t,e){let i=this.nearest(t);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(t,e)+i.posAtStart}domAtPos(t){let{i:e,off:i}=this.childCursor().findPos(t,-1);for(;e=0;n--){let r=this.children[n],l=o-r.breakAfter,a=l-r.length;if(lt||r.covers(1))&&(!i||r instanceof Bt&&!(i instanceof Bt&&e>=0))){i=r;s=a}else if(i&&a==t&&l==t&&r instanceof Lt&&Math.abs(e)<2){if(r.deco.startSide<0)break;else if(n)i=null}o=a}return i?i.coordsAt(t-s,e):null}coordsForChar(t){let{i:e,off:i}=this.childPos(t,1),o=this.children[e];if(!(o instanceof Bt))return null;while(o.children.length){let{i:t,off:e}=o.childPos(i,1);for(;;t++){if(t==o.children.length)return null;if((o=o.children[t]).length)break}i=e}if(!(o instanceof at))return null;let n=(0,s.findClusterBreak)(o.text,i);if(n==i)return null;let r=P(o.dom,i,n).getClientRects();for(let s=0;sMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1;let r=-1,l=this.view.textDirection==Ft.LTR;for(let a=0,h=0;hs)break;if(a>=i){let i=t.dom.getBoundingClientRect();e.push(i.height);if(n){let e=t.dom.lastChild;let s=e?b(e):[];if(s.length){let t=s[s.length-1];let e=l?t.right-i.left:i.right-t.left;if(e>r){r=e;this.minWidth=o;this.minWidthFrom=a;this.minWidthTo=f}}}}a=f+t.breakAfter}return e}textDirectionAt(t){let{i:e}=this.childPos(t,1);return getComputedStyle(this.children[e].dom).direction=="rtl"?Ft.RTL:Ft.LTR}measureTextSize(){for(let o of this.children){if(o instanceof Bt){let t=o.measureTextSize();if(t)return t}}let t=document.createElement("div"),e,i,s;t.className="cm-line";t.style.width="99999px";t.style.position="absolute";t.textContent="abc def ghi jkl mno pqr stu";this.view.observer.ignore((()=>{this.dom.appendChild(t);let o=b(t.firstChild)[0];e=t.getBoundingClientRect().height;i=o?o.width/27:7;s=o?o.height:e;t.remove()}));return{lineHeight:e,charWidth:i,textHeight:s}}childCursor(t=this.length){let e=this.children.length;if(e)t-=this.children[--e].length;return new X(this.children,t,e)}computeBlockGapDeco(){let t=[],e=this.view.viewState;for(let i=0,s=0;;s++){let o=s==e.viewports.length?null:e.viewports[s];let n=o?o.from-1:this.length;if(n>i){let s=(e.lineBlockAt(n).bottom-e.lineBlockAt(i).top)/this.view.scaleY;t.push(kt.replace({widget:new Pt(s),block:true,inclusive:true,isBlockGap:true}).range(i,n))}if(!o)break;i=o.to+1}return kt.set(t)}updateDeco(){let t=1;let e=this.view.state.facet(Ee).map((e=>{let i=this.dynamicDecorationMap[t++]=typeof e=="function";return i?e(this.view):e}));let i=false,o=this.view.state.facet(Re).map(((t,e)=>{let s=typeof t=="function";if(s)i=true;return s?t(this.view):t}));if(o.length){this.dynamicDecorationMap[t++]=i;e.push(s.RangeSet.join(o))}this.decorations=[this.editContextFormatting,...e,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];while(te.anchor?-1:1),s;if(!i)return;if(!e.empty&&(s=this.coordsAt(e.anchor,e.anchor>e.head?-1:1)))i={left:Math.min(i.left,s.left),top:Math.min(i.top,s.top),right:Math.max(i.right,s.right),bottom:Math.max(i.bottom,s.bottom)};let o=Ne(this.view);let n={left:i.left-o.left,top:i.top-o.top,right:i.right+o.right,bottom:i.bottom+o.bottom};let{offsetWidth:r,offsetHeight:l}=this.view.scrollDOM;O(this.view.scrollDOM,n,e.head{if(te.from)i=true}));return i}function $e(t,e,i=1){let o=t.charCategorizer(e);let n=t.doc.lineAt(e),r=e-n.from;if(n.length==0)return s.EditorSelection.cursor(e);if(r==0)i=1;else if(r==n.length)i=-1;let l=r,a=r;if(i<0)l=(0,s.findClusterBreak)(n.text,r,false);else a=(0,s.findClusterBreak)(n.text,r);let h=o(n.text.slice(l,a));while(l>0){let t=(0,s.findClusterBreak)(n.text,l,false);if(o(n.text.slice(t,l))!=h)break;l=t}while(at?e.left-t:Math.max(0,t-e.right)}function Qe(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function Je(t,e){return t.tope.top+1}function Ze(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function ei(t,e,i){let s,o,n,r,l=false;let a,h,f,c;for(let p=t.firstChild;p;p=p.nextSibling){let t=b(p);for(let d=0;dm||r==m&&n>g){s=p;o=u;n=g;r=m;l=!g?true:e0:du.bottom&&(!f||f.bottomu.top)){h=p;c=u}}else if(f&&Je(f,u)){f=ti(f,u.bottom)}else if(c&&Je(c,u)){c=Ze(c,u.top)}}}if(f&&f.bottom>=i){s=a;o=f}else if(c&&c.top<=i){s=h;o=c}if(!s)return{node:t,offset:0};let d=Math.max(o.left,Math.min(o.right,e));if(s.nodeType==3)return ii(s,d,i);if(l&&s.contentEditable!="false")return ei(s,d,i);let u=Array.prototype.indexOf.call(t.childNodes,s)+(e>=(o.left+o.right)/2?1:0);return{node:t,offset:u}}function ii(t,e,i){let s=t.nodeValue.length;let o=-1,n=1e9,r=0;for(let l=0;li?h.top-i:i-h.bottom)-1;if(h.left-1<=e&&h.right+1>=e&&f=(h.left+h.right)/2,s=i;if(rt.chrome||rt.gecko){let e=P(t,l).getBoundingClientRect();if(e.left==h.right)s=!i}if(f<=0)return{node:t,offset:l+(s?1:0)};o=l+(s?1:0);n=f}}}return{node:t,offset:o>-1?o:r>0?t.nodeValue.length:0}}function si(t,e,i,s=-1){var o,n;let r=t.contentDOM.getBoundingClientRect(),l=r.top+t.viewState.paddingTop;let a,{docHeight:h}=t.viewState;let{x:f,y:c}=e,d=c-l;if(d<0)return 0;if(d>h)return t.state.doc.length;for(let y=t.viewState.heightOracle.textHeight/2,S=false;;){a=t.elementAtHeight(d);if(a.type==Ct.Text)break;for(;;){d=s>0?a.bottom+y:a.top-y;if(d>=0&&d<=h)break;if(S)return i?null:0;S=true;s=-s}}c=l+d;let u=a.from;if(ut.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:i?null:oi(t,r,a,f,c);let p=t.dom.ownerDocument;let g=t.root.elementFromPoint?t.root:p;let m=g.elementFromPoint(f,c);if(m&&!t.contentDOM.contains(m))m=null;if(!m){f=Math.max(r.left+1,Math.min(r.right-1,f));m=g.elementFromPoint(f,c);if(m&&!t.contentDOM.contains(m))m=null}let w,v=-1;if(m&&((o=t.docView.nearest(m))===null||o===void 0?void 0:o.isEditable)!=false){if(p.caretPositionFromPoint){let t=p.caretPositionFromPoint(f,c);if(t)({offsetNode:w,offset:v}=t)}else if(p.caretRangeFromPoint){let e=p.caretRangeFromPoint(f,c);if(e){({startContainer:w,startOffset:v}=e);if(!t.contentDOM.contains(w)||rt.safari&&ni(w,v,f)||rt.chrome&&ri(w,v,f))w=undefined}}if(w)v=Math.min(C(w),v)}if(!w||!t.docView.dom.contains(w)){let e=Bt.find(t.docView,u);if(!e)return d>a.top+a.height/2?a.to:a.from;({node:w,offset:v}=ei(e.dom,f,c))}let b=t.docView.nearest(w);if(!b)return null;if(b.isWidget&&((n=b.dom)===null||n===void 0?void 0:n.nodeType)==1){let t=b.dom.getBoundingClientRect();return e.yt.defaultLineHeight*1.5){let e=t.viewState.heightOracle.textHeight;let s=Math.floor((n-i.top-(t.defaultLineHeight-e)*.5)/e);r+=s*t.viewState.heightOracle.lineLength}let l=t.state.sliceDoc(i.from,i.to);return i.from+(0,s.findColumn)(l,r,t.state.tabSize)}function ni(t,e,i){let s,o=t;if(t.nodeType!=3||e!=(s=t.nodeValue.length))return false;for(;;){let t=o.nextSibling;if(t){if(t.nodeName=="BR")break;return false}else{let t=o.parentNode;if(!t||t.nodeName=="DIV")break;o=t}}return P(t,s-1,s).getBoundingClientRect().right>i}function ri(t,e,i){if(e!=0)return false;for(let o=t;;){let t=o.parentNode;if(!t||t.nodeType!=1||t.firstChild!=o)return false;if(t.classList.contains("cm-line"))break;o=t}let s=t.nodeType==1?t.getBoundingClientRect():P(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return i-s.left>5}function li(t,e,i){let s=t.lineBlockAt(e);if(Array.isArray(s.type)){let t;for(let o of s.type){if(o.from>e)break;if(o.toe)return o;if(!t||o.type==Ct.Text&&(t.type!=o.type||(i<0?o.frome)))t=o}return t||s}return s}function ai(t,e,i,o){let n=li(t,e.head,e.assoc||-1);let r=!o||n.type!=Ct.Text||!(t.lineWrapping||n.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>n.from?e.head-1:e.head);if(r){let e=t.dom.getBoundingClientRect();let o=t.textDirectionAt(n.from);let l=t.posAtCoords({x:i==(o==Ft.LTR)?e.right-1:e.left+1,y:(r.top+r.bottom)/2});if(l!=null)return s.EditorSelection.cursor(l,i?-1:1)}return s.EditorSelection.cursor(i?n.to:n.from,i?-1:1)}function hi(t,e,i,s){let o=t.state.doc.lineAt(e.head),n=t.bidiSpans(o);let r=t.textDirectionAt(o.from);for(let l=e,a=null;;){let e=ne(o,n,r,l,i),h=oe;if(!e){if(o.number==(i?t.state.doc.lines:1))return l;h="\n";o=t.state.doc.line(o.number+(i?1:-1));n=t.bidiSpans(o);e=t.visualLineSide(o,!i)}if(!a){if(!s)return e;a=s(h)}else if(!a(h)){return l}l=e}}function fi(t,e,i){let o=t.state.charCategorizer(e);let n=o(i);return t=>{let e=o(t);if(n==s.CharCategory.Space)n=e;return n==e}}function ci(t,e,i,o){let n=e.head,r=i?1:-1;if(n==(i?t.state.doc.length:0))return s.EditorSelection.cursor(n,e.assoc);let l=e.goalColumn,a;let h=t.contentDOM.getBoundingClientRect();let f=t.coordsAtPos(n,e.assoc||-1),c=t.documentTop;if(f){if(l==null)l=f.left-h.left;a=r<0?f.top:f.bottom}else{let e=t.viewState.lineBlockAt(n);if(l==null)l=Math.min(h.right-h.left,t.defaultCharacterWidth*(n-e.from));a=(r<0?e.top:e.bottom)+c}let d=h.left+l;let u=o!==null&&o!==void 0?o:t.viewState.heightOracle.textHeight>>1;for(let p=0;;p+=10){let e=a+(u+p)*r;let i=si(t,{x:d,y:e},false,r);if(eh.bottom||(r<0?in)){let o=t.docView.coordsForChar(i);let n=!o||e{if(e>t&&ee(t))),i.from,e.head>i.from?-1:1);return o==i.from?i:s.EditorSelection.cursor(o,ot)this.lineBreak();s=o}this.findPointBefore(i,e);return this}readTextNode(t){let e=t.nodeValue;for(let i of this.points)if(i.node==t)i.pos=this.text.length+Math.min(i.offset,e.length);for(let i=0,s=this.lineSeparator?null:/\r\n?|\n/g;;){let o=-1,n=1,r;if(this.lineSeparator){o=e.indexOf(this.lineSeparator,i);n=this.lineSeparator.length}else if(r=s.exec(e)){o=r.index;n=r[0].length}this.append(e.slice(i,o<0?e.length:o));if(o<0)break;this.lineBreak();if(n>1)for(let e of this.points)if(e.node==t&&e.pos>this.text.length)e.pos-=n-1;i=o+n}}readNode(t){if(t.cmIgnore)return;let e=Y.get(t);let i=e&&e.overrideDOMText;if(i!=null){this.findPointInside(t,i.length);for(let t=i.iter();!t.next().done;){if(t.lineBreak)this.lineBreak();else this.append(t.value)}}else if(t.nodeType==3){this.readTextNode(t)}else if(t.nodeName=="BR"){if(t.nextSibling)this.lineBreak()}else if(t.nodeType==1){this.readRange(t.firstChild,null)}}findPointBefore(t,e){for(let i of this.points)if(i.node==t&&t.childNodes[i.offset]==e)i.pos=this.text.length}findPointInside(t,e){for(let i of this.points)if(t.nodeType==3?i.node==t:t.contains(i.node))i.pos=this.text.length+(mi(t,i.node,i.offset)?e:0)}}function mi(t,e,i){for(;;){if(!e||i-1;let{impreciseHead:n,impreciseAnchor:r}=t.docView;if(t.state.readOnly&&e>-1){this.newSel=null}else if(e>-1&&(this.bounds=t.docView.domBoundsAround(e,i,0))){let e=n||r?[]:Mi(t);let i=new gi(e,t.state);i.readRange(this.bounds.startDOM,this.bounds.endDOM);this.text=i.text;this.newSel=Ci(e,this.bounds.from)}else{let e=t.observer.selectionRange;let i=n&&n.node==e.focusNode&&n.offset==e.focusOffset||!w(t.contentDOM,e.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(e.focusNode,e.focusOffset);let o=r&&r.node==e.anchorNode&&r.offset==e.anchorOffset||!w(t.contentDOM,e.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(e.anchorNode,e.anchorOffset);let l=t.viewport;if((rt.ios||rt.chrome)&&t.state.selection.main.empty&&i!=o&&(l.from>0||l.toDate.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:o,to:l}=e.bounds;let a=n.from,h=null;if(r===8||rt.android&&e.text.length=n.from&&i.to<=n.to&&(i.from!=n.from||i.to!=n.to)&&n.to-n.from-(i.to-i.from)<=4){i={from:n.from,to:n.to,insert:t.state.doc.slice(n.from,i.from).append(i.insert).append(t.state.doc.slice(i.to,n.to))}}else if(rt.chrome&&i&&i.from==i.to&&i.from==n.head&&i.insert.toString()=="\n "&&t.lineWrapping){if(o)o=s.EditorSelection.single(o.main.anchor-1,o.main.head-1);i={from:n.from,to:n.to,insert:s.Text.of([" "])}}if(i){return yi(t,i,o,r)}else if(o&&!o.main.eq(n)){let e=false,i="select";if(t.inputState.lastSelectionTime>Date.now()-50){if(t.inputState.lastSelectionOrigin=="select")e=true;i=t.inputState.lastSelectionOrigin}t.dispatch({selection:o,scrollIntoView:e,userEvent:i});return true}else{return false}}function yi(t,e,i,s=-1){if(rt.ios&&t.inputState.flushIOSKey(e))return true;let o=t.state.selection.main;if(rt.android&&(e.to==o.to&&(e.from==o.from||e.from==o.from-1&&t.state.sliceDoc(e.from,o.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&H(t.contentDOM,"Enter",13)||(e.from==o.from-1&&e.to==o.to&&e.insert.length==0||s==8&&e.insert.lengtho.head)&&H(t.contentDOM,"Backspace",8)||e.from==o.from&&e.to==o.to+1&&e.insert.length==0&&H(t.contentDOM,"Delete",46)))return true;let n=e.insert.toString();if(t.inputState.composing>=0)t.inputState.composing++;let r;let l=()=>r||(r=Si(t,e,i));if(!t.state.facet(de).some((i=>i(t,e.from,e.to,n,l))))t.dispatch(l());return true}function Si(t,e,i){let o,n=t.state,r=n.selection.main;if(e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!i||i.main.empty&&i.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let i=r.frome.to?n.sliceDoc(e.to,r.to):"";o=n.replaceSelection(t.state.toText(i+e.insert.sliceString(0,undefined,t.state.lineBreak)+s))}else{let l=n.changes(e);let a=i&&i.main.to<=l.newLength?i.main:undefined;if(n.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=r.to&&e.to>=r.to-10){let h=t.state.sliceDoc(e.from,e.to);let f,c=i&&qe(t,i.main.head);if(c){let t=e.insert.length-(e.to-e.from);f={from:c.from,to:c.to-t}}else{f=t.state.doc.lineAt(r.head)}let d=r.to-e.to,u=r.to-r.from;o=n.changeByRange((i=>{if(i.from==r.from&&i.to==r.to)return{changes:l,range:a||i.map(l)};let o=i.to-d,c=o-h.length;if(i.to-i.from!=u||t.state.sliceDoc(c,o)!=h||i.to>=f.from&&i.from<=f.to)return{range:i};let p=n.changes({from:c,to:o,insert:e.insert}),g=i.to-r.to;return{changes:p,range:!a?i.map(p):s.EditorSelection.range(Math.max(0,a.anchor+g),Math.max(0,a.head+g))}}))}else{o={changes:l,selection:a&&n.selection.replaceRange(a)}}}let l="input.type";if(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50){t.inputState.compositionPendingChange=false;l+=".compose";if(t.inputState.compositionFirstChange){l+=".start";t.inputState.compositionFirstChange=false}}return n.update(o,{userEvent:l,scrollIntoView:true})}function xi(t,e,i,s){let o=Math.min(t.length,e.length);let n=0;while(n0&&l>0&&t.charCodeAt(r-1)==e.charCodeAt(l-1)){r--;l--}if(s=="end"){let t=Math.max(0,n-Math.min(r,l));i-=r+t-n}if(r=r?n-i:0;n-=t;l=n+(l-r);r=n}else if(l=l?n-i:0;n-=t;r=n+(r-l);l=n}return{from:n,toA:r,toB:l}}function Mi(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:i,anchorOffset:s,focusNode:o,focusOffset:n}=t.observer.selectionRange;if(i){e.push(new wi(i,s));if(o!=i||n!=s)e.push(new wi(o,n))}return e}function Ci(t,e){if(t.length==0)return null;let i=t[0].pos,o=t.length==2?t[1].pos:i;return i>-1&&o>-1?s.EditorSelection.single(i+e,o+e):null}class ki{setSelectionOrigin(t){this.lastSelectionOrigin=t;this.lastSelectionTime=Date.now()}constructor(t){this.view=t;this.lastKeyCode=0;this.lastKeyTime=0;this.lastTouchTime=0;this.lastFocusTime=0;this.lastScrollTop=0;this.lastScrollLeft=0;this.pendingIOSKey=undefined;this.tabFocusMode=-1;this.lastSelectionOrigin=null;this.lastSelectionTime=0;this.lastContextMenu=0;this.scrollHandlers=[];this.handlers=Object.create(null);this.composing=-1;this.compositionFirstChange=null;this.compositionEndedAt=0;this.compositionPendingKey=false;this.compositionPendingChange=false;this.mouseSelection=null;this.draggedContent=null;this.handleEvent=this.handleEvent.bind(this);this.notifiedFocused=t.hasFocus;if(rt.safari)t.contentDOM.addEventListener("input",(()=>null));if(rt.gecko)fs(t.contentDOM.ownerDocument)}handleEvent(t){if(!Fi(this.view,t)||this.ignoreDuringComposition(t))return;if(t.type=="keydown"&&this.keydown(t))return;if(this.view.updateState!=0)Promise.resolve().then((()=>this.runHandlers(t.type,t)));else this.runHandlers(t.type,t)}runHandlers(t,e){let i=this.handlers[t];if(i){for(let t of i.observers)t(this.view,e);for(let t of i.handlers){if(e.defaultPrevented)break;if(t(this.view,e)){e.preventDefault();break}}}}ensureHandlers(t){let e=Di(t),i=this.handlers,s=this.view.contentDOM;for(let o in e)if(o!="scroll"){let t=!e[o].handlers.length;let n=i[o];if(n&&t!=!n.handlers.length){s.removeEventListener(o,this.handleEvent);n=null}if(!n)s.addEventListener(o,this.handleEvent,{passive:t})}for(let o in i)if(o!="scroll"&&!e[o])s.removeEventListener(o,this.handleEvent);this.handlers=e}keydown(t){this.lastKeyCode=t.keyCode;this.lastKeyTime=Date.now();if(t.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return true;if(this.tabFocusMode>0&&t.keyCode!=27&&Ei.indexOf(t.keyCode)<0)this.tabFocusMode=-1;if(rt.android&&rt.chrome&&!t.synthetic&&(t.keyCode==13||t.keyCode==8)){this.view.observer.delayAndroidKey(t.key,t.keyCode);return true}let e;if(rt.ios&&!t.synthetic&&!t.altKey&&!t.metaKey&&((e=Oi.find((e=>e.keyCode==t.keyCode)))&&!t.ctrlKey||Ti.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)){this.pendingIOSKey=e||t;setTimeout((()=>this.flushIOSKey()),250);return true}if(t.keyCode!=229)this.view.observer.forceFlush();return false}flushIOSKey(t){let e=this.pendingIOSKey;if(!e)return false;if(e.key=="Enter"&&t&&t.from0)return true;if(rt.safari&&!rt.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100){this.compositionPendingKey=false;return true}return false}startMouseSelection(t){if(this.mouseSelection)this.mouseSelection.destroy();this.mouseSelection=t}update(t){this.view.observer.update(t);if(this.mouseSelection)this.mouseSelection.update(t);if(this.draggedContent&&t.docChanged)this.draggedContent=this.draggedContent.map(t.changes);if(t.transactions.length)this.lastKeyCode=this.lastSelectionTime=0}destroy(){if(this.mouseSelection)this.mouseSelection.destroy()}}function Ai(t,e){return(i,s)=>{try{return e.call(t,s,i)}catch(o){xe(i.state,o)}}}function Di(t){let e=Object.create(null);function i(t){return e[t]||(e[t]={observers:[],handlers:[]})}for(let s of t){let t=s.spec,e=t&&t.plugin.domEventHandlers,o=t&&t.plugin.domEventObservers;if(e)for(let n in e){let t=e[n];if(t)i(n).handlers.push(Ai(s.value,t))}if(o)for(let n in o){let t=o[n];if(t)i(n).observers.push(Ai(s.value,t))}}for(let s in Wi)i(s).handlers.push(Wi[s]);for(let s in zi)i(s).observers.push(zi[s]);return e}const Oi=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}];const Ti="dthko";const Ei=[16,17,18,20,91,92,224,225];const Ri=6;function Bi(t){return Math.max(0,t)*.7+8}function Li(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class Pi{constructor(t,e,i,o){this.view=t;this.startEvent=e;this.style=i;this.mustSelect=o;this.scrollSpeed={x:0,y:0};this.scrolling=-1;this.lastEvent=e;this.scrollParents=T(t.contentDOM);this.atoms=t.state.facet(Be).map((e=>e(t)));let n=t.contentDOM.ownerDocument;n.addEventListener("mousemove",this.move=this.move.bind(this));n.addEventListener("mouseup",this.up=this.up.bind(this));this.extend=e.shiftKey;this.multiple=t.state.facet(s.EditorState.allowMultipleSelections)&&Hi(t,e);this.dragging=Vi(t,e)&&Zi(e)==1?null:false}start(t){if(this.dragging===false)this.select(t)}move(t){if(t.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&Li(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let e=0,i=0;let s=0,o=0,n=this.view.win.innerWidth,r=this.view.win.innerHeight;if(this.scrollParents.x)({left:s,right:n}=this.scrollParents.x.getBoundingClientRect());if(this.scrollParents.y)({top:o,bottom:r}=this.scrollParents.y.getBoundingClientRect());let l=Ne(this.view);if(t.clientX-l.left<=s+Ri)e=-Bi(s-t.clientX);else if(t.clientX+l.right>=n-Ri)e=Bi(t.clientX-n);if(t.clientY-l.top<=o+Ri)i=-Bi(o-t.clientY);else if(t.clientY+l.bottom>=r-Ri)i=Bi(t.clientY-r);this.setScrollSpeed(e,i)}up(t){if(this.dragging==null)this.select(this.lastEvent);if(!this.dragging)t.preventDefault();this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move);t.removeEventListener("mouseup",this.up);this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(t,e){this.scrollSpeed={x:t,y:e};if(t||e){if(this.scrolling<0)this.scrolling=setInterval((()=>this.scroll()),50)}else if(this.scrolling>-1){clearInterval(this.scrolling);this.scrolling=-1}}scroll(){let{x:t,y:e}=this.scrollSpeed;if(t&&this.scrollParents.x){this.scrollParents.x.scrollLeft+=t;t=0}if(e&&this.scrollParents.y){this.scrollParents.y.scrollTop+=e;e=0}if(t||e)this.view.win.scrollBy(t,e);if(this.dragging===false)this.select(this.lastEvent)}skipAtoms(t){let e=null;for(let i=0;it.isUserEvent("input.type"))))this.destroy();else if(this.style.update(t))setTimeout((()=>this.select(this.lastEvent)),20)}}function Hi(t,e){let i=t.state.facet(le);return i.length?i[0](e):rt.mac?e.metaKey:e.ctrlKey}function Ni(t,e){let i=t.state.facet(ae);return i.length?i[0](e):rt.mac?!e.altKey:!e.ctrlKey}function Vi(t,e){let{main:i}=t.state.selection;if(i.empty)return false;let s=m(t.root);if(!s||s.rangeCount==0)return true;let o=s.getRangeAt(0).getClientRects();for(let n=0;n=e.clientX&&t.top<=e.clientY&&t.bottom>=e.clientY)return true}return false}function Fi(t,e){if(!e.bubbles)return true;if(e.defaultPrevented)return false;for(let i=e.target,s;i!=t.contentDOM;i=i.parentNode)if(!i||i.nodeType==11||(s=Y.get(i))&&s.ignoreEvent(e))return false;return true}const Wi=Object.create(null);const zi=Object.create(null);const Ii=rt.ie&&rt.ie_version<15||rt.ios&&rt.webkit_version<604;function qi(t){let e=t.dom.parentNode;if(!e)return;let i=e.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px";i.focus();setTimeout((()=>{t.focus();i.remove();Yi(t,i.value)}),50)}function Ki(t,e,i){for(let s of t.facet(e))i=s(i,t);return i}function Yi(t,e){e=Ki(t.state,pe,e);let{state:i}=t,o,n=1,r=i.toText(e);let l=r.lines==i.selection.ranges.length;let a=ns!=null&&i.selection.ranges.every((t=>t.empty))&&ns==r.toString();if(a){let t=-1;o=i.changeByRange((o=>{let a=i.doc.lineAt(o.from);if(a.from==t)return{range:o};t=a.from;let h=i.toText((l?r.line(n++).text:e)+i.lineBreak);return{changes:{from:a.from,insert:h},range:s.EditorSelection.cursor(o.from+h.length)}}))}else if(l){o=i.changeByRange((t=>{let e=r.line(n++);return{changes:{from:t.from,to:t.to,insert:e.text},range:s.EditorSelection.cursor(t.from+e.length)}}))}else{o=i.replaceSelection(r)}t.dispatch(o,{userEvent:"input.paste",scrollIntoView:true})}zi.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop;t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft};Wi.keydown=(t,e)=>{t.inputState.setSelectionOrigin("select");if(e.keyCode==27&&t.inputState.tabFocusMode!=0)t.inputState.tabFocusMode=Date.now()+2e3;return false};zi.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now();t.inputState.setSelectionOrigin("select.pointer")};zi.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};Wi.mousedown=(t,e)=>{t.observer.flush();if(t.inputState.lastTouchTime>Date.now()-2e3)return false;let i=null;for(let s of t.state.facet(he)){i=s(t,e);if(i)break}if(!i&&e.button==0)i=ts(t,e);if(i){let s=!t.hasFocus;t.inputState.startMouseSelection(new Pi(t,e,i,s));if(s)t.observer.ignore((()=>{B(t.contentDOM);let e=t.root.activeElement;if(e&&!e.contains(t.contentDOM))e.blur()}));let o=t.inputState.mouseSelection;if(o){o.start(e);return o.dragging===false}}return false};function _i(t,e,i,o){if(o==1){return s.EditorSelection.cursor(e,i)}else if(o==2){return $e(t.state,e,i)}else{let i=Bt.find(t.docView,e),o=t.state.doc.lineAt(i?i.posAtEnd:e);let n=i?i.posAtStart:o.from,r=i?i.posAtEnd:o.to;if(re>=i.top&&e<=i.bottom&&t>=i.left&&t<=i.right;function Gi(t,e,i,s){let o=Bt.find(t.docView,e);if(!o)return 1;let n=e-o.posAtStart;if(n==0)return 1;if(n==o.length)return-1;let r=o.coordsAt(n,-1);if(r&&Xi(i,s,r))return-1;let l=o.coordsAt(n,1);if(l&&Xi(i,s,l))return 1;return r&&r.bottom>=s?-1:1}function ji(t,e){let i=t.posAtCoords({x:e.clientX,y:e.clientY},false);return{pos:i,bias:Gi(t,i,e.clientX,e.clientY)}}const $i=rt.ie&&rt.ie_version<=11;let Ui=null,Qi=0,Ji=0;function Zi(t){if(!$i)return t.detail;let e=Ui,i=Ji;Ui=t;Ji=Date.now();return Qi=!e||i>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(Qi+1)%3:1}function ts(t,e){let i=ji(t,e),o=Zi(e);let n=t.state.selection;return{update(t){if(t.docChanged){i.pos=t.changes.mapPos(i.pos);n=n.map(t.changes)}},get(e,r,l){let a=ji(t,e),h;let f=_i(t,a.pos,a.bias,o);if(i.pos!=a.pos&&!r){let e=_i(t,i.pos,i.bias,o);let n=Math.min(e.from,f.from),r=Math.max(e.to,f.to);f=n1&&(h=es(n,a.pos)))return h;else if(l)return n.addRange(f);else return s.EditorSelection.create([f])}}}function es(t,e){for(let i=0;i=e)return s.EditorSelection.create(t.ranges.slice(0,i).concat(t.ranges.slice(i+1)),t.mainIndex==i?0:t.mainIndex-(t.mainIndex>i?1:0))}return null}Wi.dragstart=(t,e)=>{let{selection:{main:i}}=t.state;if(e.target.draggable){let o=t.docView.nearest(e.target);if(o&&o.isWidget){let t=o.posAtStart,e=t+o.length;if(t>=i.to||e<=i.from)i=s.EditorSelection.range(t,e)}}let{inputState:o}=t;if(o.mouseSelection)o.mouseSelection.dragging=true;o.draggedContent=i;if(e.dataTransfer){e.dataTransfer.setData("Text",Ki(t.state,ge,t.state.sliceDoc(i.from,i.to)));e.dataTransfer.effectAllowed="copyMove"}return false};Wi.dragend=t=>{t.inputState.draggedContent=null;return false};function is(t,e,i,s){i=Ki(t.state,pe,i);if(!i)return;let o=t.posAtCoords({x:e.clientX,y:e.clientY},false);let{draggedContent:n}=t.inputState;let r=s&&n&&Ni(t,e)?{from:n.from,to:n.to}:null;let l={from:o,insert:i};let a=t.state.changes(r?[r,l]:l);t.focus();t.dispatch({changes:a,selection:{anchor:a.mapPos(o,-1),head:a.mapPos(o,1)},userEvent:r?"move.drop":"input.drop"});t.inputState.draggedContent=null}Wi.drop=(t,e)=>{if(!e.dataTransfer)return false;if(t.state.readOnly)return true;let i=e.dataTransfer.files;if(i&&i.length){let s=Array(i.length),o=0;let n=()=>{if(++o==i.length)is(t,e,s.filter((t=>t!=null)).join(t.state.lineBreak),false)};for(let t=0;t{if(!/[\x00-\x08\x0e-\x1f]{2}/.test(e.result))s[t]=e.result;n()};e.readAsText(i[t])}return true}else{let i=e.dataTransfer.getData("Text");if(i){is(t,e,i,true);return true}}return false};Wi.paste=(t,e)=>{if(t.state.readOnly)return true;t.observer.flush();let i=Ii?null:e.clipboardData;if(i){Yi(t,i.getData("text/plain")||i.getData("text/uri-list"));return true}else{qi(t);return false}};function ss(t,e){let i=t.dom.parentNode;if(!i)return;let s=i.appendChild(document.createElement("textarea"));s.style.cssText="position: fixed; left: -10000px; top: 10px";s.value=e;s.focus();s.selectionEnd=e.length;s.selectionStart=0;setTimeout((()=>{s.remove();t.focus()}),50)}function os(t){let e=[],i=[],s=false;for(let o of t.selection.ranges)if(!o.empty){e.push(t.sliceDoc(o.from,o.to));i.push(o)}if(!e.length){let o=-1;for(let{from:s}of t.selection.ranges){let n=t.doc.lineAt(s);if(n.number>o){e.push(n.text);i.push({from:n.from,to:Math.min(t.doc.length,n.to+1)})}o=n.number}s=true}return{text:Ki(t,ge,e.join(t.lineBreak)),ranges:i,linewise:s}}let ns=null;Wi.copy=Wi.cut=(t,e)=>{let{text:i,ranges:s,linewise:o}=os(t.state);if(!i&&!o)return false;ns=o?i:null;if(e.type=="cut"&&!t.state.readOnly)t.dispatch({changes:s,scrollIntoView:true,userEvent:"delete.cut"});let n=Ii?null:e.clipboardData;if(n){n.clearData();n.setData("text/plain",i);return true}else{ss(t,i);return false}};const rs=s.Annotation.define();function ls(t,e){let i=[];for(let s of t.facet(ue)){let o=s(t,e);if(o)i.push(o)}return i.length?t.update({effects:i,annotations:rs.of(true)}):null}function as(t){setTimeout((()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let i=ls(t.state,e);if(i)t.dispatch(i);else t.update([])}}),10)}zi.focus=t=>{t.inputState.lastFocusTime=Date.now();if(!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)){t.scrollDOM.scrollTop=t.inputState.lastScrollTop;t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft}as(t)};zi.blur=t=>{t.observer.clearSelectionRange();as(t)};zi.compositionstart=zi.compositionupdate=t=>{if(t.observer.editContext)return;if(t.inputState.compositionFirstChange==null)t.inputState.compositionFirstChange=true;if(t.inputState.composing<0){t.inputState.composing=0}};zi.compositionend=t=>{if(t.observer.editContext)return;t.inputState.composing=-1;t.inputState.compositionEndedAt=Date.now();t.inputState.compositionPendingKey=true;t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0;t.inputState.compositionFirstChange=null;if(rt.chrome&&rt.android){t.observer.flushSoon()}else if(t.inputState.compositionPendingChange){Promise.resolve().then((()=>t.observer.flush()))}else{setTimeout((()=>{if(t.inputState.composing<0&&t.docView.hasComposition)t.update([])}),50)}};zi.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};Wi.beforeinput=(t,e)=>{var i,s;if(e.inputType=="insertReplacementText"&&t.observer.editContext){let s=(i=e.dataTransfer)===null||i===void 0?void 0:i.getData("text/plain"),o=e.getTargetRanges();if(s&&o.length){let e=o[0];let i=t.posAtDOM(e.startContainer,e.startOffset),n=t.posAtDOM(e.endContainer,e.endOffset);yi(t,{from:i,to:n,insert:t.state.toText(s)},null);return true}}let o;if(rt.chrome&&rt.android&&(o=Oi.find((t=>t.inputType==e.inputType)))){t.observer.delayAndroidKey(o.key,o.keyCode);if(o.key=="Backspace"||o.key=="Delete"){let e=((s=window.visualViewport)===null||s===void 0?void 0:s.height)||0;setTimeout((()=>{var i;if((((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0)>e+10&&t.hasFocus){t.contentDOM.blur();t.focus()}}),100)}}if(rt.ios&&e.inputType=="deleteContentForward"){t.observer.flushSoon()}if(rt.safari&&e.inputType=="insertText"&&t.inputState.composing>=0){setTimeout((()=>zi.compositionend(t,e)),20)}return false};const hs=new Set;function fs(t){if(!hs.has(t)){hs.add(t);t.addEventListener("copy",(()=>{}));t.addEventListener("cut",(()=>{}))}}const cs=["pre-wrap","normal","pre-line","break-spaces"];let ds=false;function us(){ds=false}class ps{constructor(t){this.lineWrapping=t;this.doc=s.Text.empty;this.heightSamples={};this.lineHeight=14;this.charWidth=7;this.textHeight=14;this.lineLength=30}heightForGap(t,e){let i=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;if(this.lineWrapping)i+=Math.max(0,Math.ceil((e-t-i*this.lineLength*.5)/this.lineLength));return this.lineHeight*i}heightForLine(t){if(!this.lineWrapping)return this.lineHeight;let e=1+Math.max(0,Math.ceil((t-this.lineLength)/Math.max(1,this.lineLength-5)));return e*this.lineHeight}setDoc(t){this.doc=t;return this}mustRefreshForWrapping(t){return cs.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let e=false;for(let i=0;i-1;let l=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=r;this.lineWrapping=r;this.lineHeight=e;this.charWidth=i;this.textHeight=s;this.lineLength=o;if(l){this.heightSamples={};for(let t=0;t0}set outdated(t){this.flags=(t?2:0)|this.flags&~2}setHeight(t){if(this.height!=t){if(Math.abs(this.height-t)>vs)ds=true;this.height=t}}replace(t,e,i){return bs.of(i)}decomposeLeft(t,e){e.push(this)}decomposeRight(t,e){e.push(this)}applyChanges(t,e,i,s){let o=this,n=i.doc;for(let r=s.length-1;r>=0;r--){let{fromA:l,toA:a,fromB:h,toB:f}=s[r];let c=o.lineAt(l,ws.ByPosNoHeight,i.setDoc(e),0,0);let d=c.to>=a?c:o.lineAt(a,ws.ByPosNoHeight,i,0,0);f+=d.to-a;a=d.to;while(r>0&&c.from<=s[r-1].toA){l=s[r-1].fromA;h=s[r-1].fromB;r--;if(lo*2){let o=t[e-1];if(o.break)t.splice(--e,1,o.left,null,o.right);else t.splice(--e,1,o.left,o.right);i+=1+o.break;s-=o.size}else if(o>s*2){let e=t[i];if(e.break)t.splice(i,1,e.left,null,e.right);else t.splice(i,1,e.left,e.right);i+=2+e.break;o-=e.size}else{break}}else if(s=o)n(this.blockAt(0,i,s,o))}updateHeight(t,e=0,i=false,s){if(s&&s.from<=e&&s.more)this.setHeight(s.heights[s.index++]);this.outdated=false;return this}toString(){return`block(${this.length})`}}class xs extends Ss{constructor(t,e){super(t,e,null);this.collapsed=0;this.widgetHeight=0;this.breaks=0}blockAt(t,e,i,s){return new ms(s,this.length,i,this.height,this.breaks)}replace(t,e,i){let s=i[0];if(i.length==1&&(s instanceof xs||s instanceof Ms&&s.flags&4)&&Math.abs(this.length-s.length)<10){if(s instanceof Ms)s=new xs(s.length,this.height);else s.height=this.height;if(!this.outdated)s.outdated=false;return s}else{return bs.of(i)}}updateHeight(t,e=0,i=false,s){if(s&&s.from<=e&&s.more)this.setHeight(s.heights[s.index++]);else if(i||this.outdated)this.setHeight(Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight);this.outdated=false;return this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Ms extends bs{constructor(t){super(t,0)}heightMetrics(t,e){let i=t.doc.lineAt(e).number,s=t.doc.lineAt(e+this.length).number;let o=s-i+1;let n,r=0;if(t.lineWrapping){let e=Math.min(this.height,t.lineHeight*o);n=e/o;if(this.length>o+1)r=(this.height-e)/(this.length-o-1)}else{n=this.height/o}return{firstLine:i,lastLine:s,perLine:n,perChar:r}}blockAt(t,e,i,s){let{firstLine:o,lastLine:n,perLine:r,perChar:l}=this.heightMetrics(e,s);if(e.lineWrapping){let o=s+(t0){let t=i[i.length-1];if(t instanceof Ms)i[i.length-1]=new Ms(t.length+s);else i.push(null,new Ms(s-1))}if(t>0){let e=i[0];if(e instanceof Ms)i[0]=new Ms(t+e.length);else i.unshift(new Ms(t-1),null)}return bs.of(i)}decomposeLeft(t,e){e.push(new Ms(t-1),null)}decomposeRight(t,e){e.push(null,new Ms(this.length-t-1))}updateHeight(t,e=0,i=false,s){let o=e+this.length;if(s&&s.from<=e+this.length&&s.more){let i=[],n=Math.max(e,s.from),r=-1;if(s.from>e)i.push(new Ms(s.from-e-1).updateHeight(t,e));while(n<=o&&s.more){let e=t.doc.lineAt(n).length;if(i.length)i.push(null);let o=s.heights[s.index++];if(r==-1)r=o;else if(Math.abs(o-r)>=vs)r=-2;let l=new xs(e,o);l.outdated=false;i.push(l);n+=e+1}if(n<=o)i.push(null,new Ms(o-n).updateHeight(t,n));let l=bs.of(i);if(r<0||Math.abs(l.height-this.height)>=vs||Math.abs(r-this.heightMetrics(t,e).perLine)>=vs)ds=true;return ys(this,l)}else if(i||this.outdated){this.setHeight(t.heightForGap(e,e+this.length));this.outdated=false}return this}toString(){return`gap(${this.length})`}}class Cs extends bs{constructor(t,e,i){super(t.length+e+i.length,t.height+i.height,e|(t.outdated||i.outdated?2:0));this.left=t;this.right=i;this.size=t.size+i.size}get break(){return this.flags&1}blockAt(t,e,i,s){let o=i+this.left.height;return tr))return a;let h=e==ws.ByPosNoHeight?ws.ByPosNoHeight:ws.ByPos;if(l)return a.join(this.right.lineAt(r,h,i,n,r));else return this.left.lineAt(r,h,i,s,o).join(a)}forEachLine(t,e,i,s,o,n){let r=s+this.left.height,l=o+this.left.length+this.break;if(this.break){if(t=l)this.right.forEachLine(t,e,i,r,l,n)}else{let a=this.lineAt(l,ws.ByPos,i,s,o);if(t=t&&a.from<=e)n(a);if(e>a.to)this.right.forEachLine(a.to+1,e,i,r,l,n)}}replace(t,e,i){let s=this.left.length+this.break;if(ethis.left.length)return this.balanced(this.left,this.right.replace(t-s,e-s,i));let o=[];if(t>0)this.decomposeLeft(t,o);let n=o.length;for(let r of i)o.push(r);if(t>0)ks(o,n-1);if(e=i)e.push(null)}if(t>i)this.right.decomposeLeft(t-i,e)}decomposeRight(t,e){let i=this.left.length,s=i+this.break;if(t>=s)return this.right.decomposeRight(t-s,e);if(t2*e.size||e.size>2*t.size)return bs.of(this.break?[t,null,e]:[t,e]);this.left=ys(this.left,t);this.right=ys(this.right,e);this.setHeight(t.height+e.height);this.outdated=t.outdated||e.outdated;this.size=t.size+e.size;this.length=t.length+this.break+e.length;return this}updateHeight(t,e=0,i=false,s){let{left:o,right:n}=this,r=e+o.length+this.break,l=null;if(s&&s.from<=e+o.length&&s.more)l=o=o.updateHeight(t,e,i,s);else o.updateHeight(t,e,i);if(s&&s.from<=r+n.length&&s.more)l=n=n.updateHeight(t,r,i,s);else n.updateHeight(t,r,i);if(l)return this.balanced(o,n);this.height=this.left.height+this.right.height;this.outdated=false;return this}toString(){return this.left+(this.break?" ":"-")+this.right}}function ks(t,e){let i,s;if(t[e]==null&&(i=t[e-1])instanceof Ms&&(s=t[e+1])instanceof Ms)t.splice(e-1,3,new Ms(i.length+1+s.length))}const As=5;class Ds{constructor(t,e){this.pos=t;this.oracle=e;this.nodes=[];this.lineStart=-1;this.lineEnd=-1;this.covering=null;this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,e){if(this.lineStart>-1){let t=Math.min(e,this.lineEnd),i=this.nodes[this.nodes.length-1];if(i instanceof xs)i.length+=t-this.pos;else if(t>this.pos||!this.isCovered)this.nodes.push(new xs(t-this.pos,-1));this.writtenTo=t;if(e>t){this.nodes.push(null);this.writtenTo++;this.lineStart=-1}}this.pos=e}point(t,e,i){if(t=As){this.addLineDeco(s,o,n)}}else if(e>t){this.span(t,e)}if(this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:e}=this.oracle.doc.lineAt(this.pos);this.lineStart=t;this.lineEnd=e;if(this.writtenTot)this.nodes.push(new xs(this.pos-t,-1));this.writtenTo=this.pos}blankContent(t,e){let i=new Ms(e-t);if(this.oracle.doc.lineAt(t).to==e)i.flags|=4;return i}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof xs)return t;let e=new xs(0,-1);this.nodes.push(e);return e}addBlock(t){this.enterLine();let e=t.deco;if(e&&e.startSide>0&&!this.isCovered)this.ensureLine();this.nodes.push(t);this.writtenTo=this.pos=this.pos+t.length;if(e&&e.endSide>0)this.covering=t}addLineDeco(t,e,i){let s=this.ensureLine();s.length+=i;s.collapsed+=i;s.widgetHeight=Math.max(s.widgetHeight,t);s.breaks+=e;this.writtenTo=this.pos=this.pos+i}finish(t){let e=this.nodes.length==0?null:this.nodes[this.nodes.length-1];if(this.lineStart>-1&&!(e instanceof xs)&&!this.isCovered)this.nodes.push(new xs(0,-1));else if(this.writtenToe.clientHeight||e.scrollWidth>e.clientWidth)&&i.overflow!="visible"){let i=e.getBoundingClientRect();n=Math.max(n,i.left);r=Math.min(r,i.right);l=Math.max(l,i.top);a=Math.min(h==t.parentNode?o.innerHeight:a,i.bottom)}h=i.position=="absolute"||i.position=="fixed"?e.offsetParent:e.parentNode}else if(h.nodeType==11){h=h.host}else{break}}return{left:n-i.left,right:Math.max(n,r)-i.left,top:l-(i.top+e),bottom:Math.max(l,a)-(i.top+e)}}function Rs(t){let e=t.getBoundingClientRect(),i=t.ownerDocument.defaultView||window;return e.left0&&e.top0}function Bs(t,e){let i=t.getBoundingClientRect();return{left:0,right:i.right-i.left,top:e,bottom:i.bottom-(i.top+e)}}class Ls{constructor(t,e,i,s){this.from=t;this.to=e;this.size=i;this.displaySize=s}static same(t,e){if(t.length!=e.length)return false;for(let i=0;itypeof t!="function"&&t.class=="cm-lineWrapping"));this.heightOracle=new ps(e);this.stateDeco=t.facet(Ee).filter((t=>typeof t!="function"));this.heightMap=bs.empty().applyChanges(this.stateDeco,s.Text.empty,this.heightOracle.setDoc(t.doc),[new Fe(0,0,0,t.doc.length)]);for(let i=0;i<2;i++){this.viewport=this.getViewport(0,null);if(!this.updateForViewport())break}this.updateViewportLines();this.lineGaps=this.ensureLineGaps([]);this.lineGapDeco=kt.set(this.lineGaps.map((t=>t.draw(this,false))));this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:e}=this.state.selection;for(let i=0;i<=1;i++){let s=i?e.head:e.anchor;if(!t.some((({from:t,to:e})=>s>=t&&s<=e))){let{from:e,to:i}=this.lineBlockAt(s);t.push(new Ns(e,i))}}this.viewports=t.sort(((t,e)=>t.from-e.from));return this.updateScaler()}updateScaler(){let t=this.scaler;this.scaler=this.heightMap.height<=7e6?Is:new qs(this.heightOracle,this.heightMap,this.viewports);return t.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[];this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(t=>{this.viewportLines.push(Ks(t,this.scaler))}))}update(t,e=null){this.state=t.state;let i=this.stateDeco;this.stateDeco=this.state.facet(Ee).filter((t=>typeof t!="function"));let o=t.changedRanges;let n=Fe.extendWithRanges(o,Os(i,this.stateDeco,t?t.changes:s.ChangeSet.empty(this.state.doc.length)));let r=this.heightMap.height;let l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);us();this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),n);if(this.heightMap.height!=r||ds)t.flags|=2;if(l){this.scrollAnchorPos=t.changes.mapPos(l.from,-1);this.scrollAnchorHeight=l.top}else{this.scrollAnchorPos=-1;this.scrollAnchorHeight=r}let a=n.length?this.mapViewport(this.viewport,t.changes):this.viewport;if(e&&(e.range.heada.to)||!this.viewportIsAppropriate(a))a=this.getViewport(0,e);let h=a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a;t.flags|=this.updateForViewport();if(h||!t.changes.empty||t.flags&2)this.updateViewportLines();if(this.lineGaps.length||this.viewport.to-this.viewport.from>2e3<<1)this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes)));t.flags|=this.computeVisibleRanges(t.changes);if(e)this.scrollTarget=e;if(!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(we))this.mustEnforceCursorAssoc=true}measure(t){let e=t.contentDOM,i=window.getComputedStyle(e);let o=this.heightOracle;let n=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?Ft.RTL:Ft.LTR;let r=this.heightOracle.mustRefreshForWrapping(n);let l=e.getBoundingClientRect();let a=r||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height;this.mustMeasureContent=false;let h=0,f=0;if(l.width&&l.height){let{scaleX:t,scaleY:i}=D(e,l);if(t>.005&&Math.abs(this.scaleX-t)>.005||i>.005&&Math.abs(this.scaleY-i)>.005){this.scaleX=t;this.scaleY=i;h|=16;r=a=true}}let c=(parseInt(i.paddingTop)||0)*this.scaleY;let d=(parseInt(i.paddingBottom)||0)*this.scaleY;if(this.paddingTop!=c||this.paddingBottom!=d){this.paddingTop=c;this.paddingBottom=d;h|=16|2}if(this.editorWidth!=t.scrollDOM.clientWidth){if(o.lineWrapping)a=true;this.editorWidth=t.scrollDOM.clientWidth;h|=16}let u=t.scrollDOM.scrollTop*this.scaleY;if(this.scrollTop!=u){this.scrollAnchorHeight=-1;this.scrollTop=u}this.scrolledToBottom=W(t.scrollDOM);let p=(this.printing?Bs:Es)(e,this.paddingTop);let g=p.top-this.pixelViewport.top,m=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let w=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(w!=this.inView){this.inView=w;if(w)a=true}if(!this.inView&&!this.scrollTarget&&!Rs(t.dom))return 0;let v=l.width;if(this.contentDOMWidth!=v||this.editorHeight!=t.scrollDOM.clientHeight){this.contentDOMWidth=l.width;this.editorHeight=t.scrollDOM.clientHeight;h|=16}if(a){let e=t.docView.measureVisibleLineHeights(this.viewport);if(o.mustRefreshForHeights(e))r=true;if(r||o.lineWrapping&&Math.abs(v-this.contentDOMWidth)>o.charWidth){let{lineHeight:i,charWidth:s,textHeight:l}=t.docView.measureTextSize();r=i>0&&o.refresh(n,i,s,l,Math.max(5,v/s),e);if(r){t.docView.minWidth=0;h|=16}}if(g>0&&m>0)f=Math.max(g,m);else if(g<0&&m<0)f=Math.min(g,m);us();for(let i of this.viewports){let n=i.from==this.viewport.from?e:t.docView.measureVisibleLineHeights(i);this.heightMap=(r?bs.empty().applyChanges(this.stateDeco,s.Text.empty,this.heightOracle,[new Fe(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(o,0,r,new gs(i.from,n))}if(ds)h|=2}let b=!this.viewportIsAppropriate(this.viewport,f)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);if(b){if(h&2)h|=this.updateScaler();this.viewport=this.getViewport(f,this.scrollTarget);h|=this.updateForViewport()}if(h&2||b)this.updateViewportLines();if(this.lineGaps.length||this.viewport.to-this.viewport.from>2e3<<1)this.updateLineGaps(this.ensureLineGaps(r?[]:this.lineGaps,t));h|=this.computeVisibleRanges();if(this.mustEnforceCursorAssoc){this.mustEnforceCursorAssoc=false;t.docView.enforceCursorAssoc()}return h}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,e){let i=.5-Math.max(-.5,Math.min(.5,t/1e3/2));let s=this.heightMap,o=this.heightOracle;let{visibleTop:n,visibleBottom:r}=this;let l=new Ns(s.lineAt(n-i*1e3,ws.ByHeight,o,0,0).from,s.lineAt(r+(1-i)*1e3,ws.ByHeight,o,0,0).to);if(e){let{head:t}=e.range;if(tl.to){let i=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top);let n=s.lineAt(t,ws.ByPos,o,0,0),r;if(e.y=="center")r=(n.top+n.bottom)/2-i/2;else if(e.y=="start"||e.y=="nearest"&&t=r+Math.max(10,Math.min(i,250)))&&(s>n-2*1e3&&o>1,r=o<<1;if(this.defaultTextDirection!=Ft.LTR&&!i)return[];let l=[];let a=(o,r,h,f)=>{if(r-oo&&tt.from>=h.from&&t.to<=h.to&&Math.abs(t.from-o)t.frome))));if(!u){if(rt.from<=r&&t.to>=r))){let t=e.moveToLineBoundary(s.EditorSelection.cursor(r),false,true).head;if(t>o)r=t}let t=this.gapSize(h,o,r,f);let n=i||t<2e6?t:2e6;u=new Ls(o,r,t,n)}l.push(u)};let h=e=>{if(e.length2e6)for(let s of t){if(s.from>=e.from&&s.frome.from)a(e.from,l,e,s);if(ht.draw(this,this.heightOracle.lineWrapping))))}}computeVisibleRanges(t){let e=this.stateDeco;if(this.lineGaps.length)e=e.concat(this.lineGapDeco);let i=[];s.RangeSet.spans(e,this.viewport.from,this.viewport.to,{span(t,e){i.push({from:t,to:e})},point(){}},20);let o=0;if(i.length!=this.visibleRanges.length){o=8|4}else{for(let e=0;e=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find((e=>e.from<=t&&e.to>=t))||Ks(this.heightMap.lineAt(t,ws.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return t>=this.viewportLines[0].top&&t<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find((e=>e.top<=t&&e.bottom>=t))||Ks(this.heightMap.lineAt(this.scaler.fromDOM(t),ws.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(t){let e=this.lineBlockAtHeight(t+8);return e.from>=this.viewport.from||this.viewportLines[0].top-t>200?e:this.viewportLines[0]}elementAtHeight(t){return Ks(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Ns{constructor(t,e){this.from=t;this.to=e}}function Vs(t,e,i){let o=[],n=t,r=0;s.RangeSet.spans(i,t,e,{span(){},point(t,e){if(t>n){o.push({from:n,to:t});r+=t-n}n=e}},20);if(n=1)return e[e.length-1].to;let s=Math.floor(t*i);for(let o=0;;o++){let{from:t,to:i}=e[o],n=i-t;if(s<=n)return t+s;s-=n}}function Ws(t,e){let i=0;for(let{from:s,to:o}of t.ranges){if(e<=o){i+=e-s;break}i+=o-s}return i/t.total}function zs(t,e){for(let i of t)if(e(i))return i;return undefined}const Is={toDOM(t){return t},fromDOM(t){return t},scale:1,eq(t){return t==this}};class qs{constructor(t,e,i){let s=0,o=0,n=0;this.viewports=i.map((({from:i,to:o})=>{let n=e.lineAt(i,ws.ByPos,t,0,0).top;let r=e.lineAt(o,ws.ByPos,t,0,0).bottom;s+=r-n;return{from:i,to:o,top:n,bottom:r,domTop:0,domBottom:0}}));this.scale=(7e6-s)/(e.height-s);for(let r of this.viewports){r.domTop=n+(r.top-o)*this.scale;n=r.domBottom=r.domTop+(r.bottom-r.top);o=r.bottom}}toDOM(t){for(let e=0,i=0,s=0;;e++){let o=ee.from==t.viewports[i].from&&e.to==t.viewports[i].to))}}function Ks(t,e){if(e.scale==1)return t;let i=e.toDOM(t.top),s=e.toDOM(t.bottom);return new ms(t.from,t.length,i,s-i,Array.isArray(t._content)?t._content.map((t=>Ks(t,e))):t._content)}const Ys=s.Facet.define({combine:t=>t.join(" ")});const _s=s.Facet.define({combine:t=>t.indexOf(true)>-1});const Xs=o.StyleModule.newName(),Gs=o.StyleModule.newName(),js=o.StyleModule.newName();const $s={"&light":"."+Gs,"&dark":"."+js};function Us(t,e,i){return new o.StyleModule(e,{finish(e){return/&/.test(e)?e.replace(/&\w*/,(e=>{if(e=="&")return t;if(!i||!i[e])throw new RangeError(`Unsupported selector: ${e}`);return i[e]})):t+" "+e}})}const Qs=Us("."+Xs,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},$s);const Js={childList:true,characterData:true,subtree:true,attributes:true,characterDataOldValue:true};const Zs=rt.ie&&rt.ie_version<=11;class to{constructor(t){this.view=t;this.active=false;this.editContext=null;this.selectionRange=new E;this.selectionChanged=false;this.delayedFlush=-1;this.resizeTimeout=-1;this.queue=[];this.delayedAndroidKey=null;this.flushingAndroidKey=-1;this.lastChange=0;this.scrollTargets=[];this.intersection=null;this.resizeScroll=null;this.intersecting=false;this.gapIntersection=null;this.gaps=[];this.printQuery=null;this.parentCheck=-1;this.dom=t.contentDOM;this.observer=new MutationObserver((e=>{for(let t of e)this.queue.push(t);if((rt.ie&&rt.ie_version<=11||rt.ios&&t.composing)&&e.some((t=>t.type=="childList"&&t.removedNodes.length||t.type=="characterData"&&t.oldValue.length>t.target.nodeValue.length)))this.flushSoon();else this.flush()}));if(window.EditContext&&rt.android&&t.constructor.EDIT_CONTEXT!==false&&!(rt.chrome&&rt.chrome_version<126)){this.editContext=new oo(t);if(t.state.facet(Me))t.contentDOM.editContext=this.editContext.editContext}if(Zs)this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue});this.flushSoon()};this.onSelectionChange=this.onSelectionChange.bind(this);this.onResize=this.onResize.bind(this);this.onPrint=this.onPrint.bind(this);this.onScroll=this.onScroll.bind(this);if(window.matchMedia)this.printQuery=window.matchMedia("print");if(typeof ResizeObserver=="function"){this.resizeScroll=new ResizeObserver((()=>{var t;if(((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate){if(this.parentCheck<0)this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3);if(t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting){this.intersecting=!this.intersecting;if(this.intersecting!=this.view.inView)this.onScrollChanged(document.createEvent("Event"))}}),{threshold:[0,.001]});this.intersection.observe(this.dom);this.gapIntersection=new IntersectionObserver((t=>{if(t.length>0&&t[t.length-1].intersectionRatio>0)this.onScrollChanged(document.createEvent("Event"))}),{})}this.listenForScroll();this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t);if(this.intersecting)this.view.measure()}onScroll(t){if(this.intersecting)this.flush(false);if(this.editContext)this.view.requestMeasure(this.editContext.measureReq);this.onScrollChanged(t)}onResize(){if(this.resizeTimeout<0)this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1;this.view.requestMeasure()}),50)}onPrint(t){if((t.type=="change"||!t.type)&&!t.matches)return;this.view.viewState.printing=true;this.view.measure();setTimeout((()=>{this.view.viewState.printing=false;this.view.requestMeasure()}),500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some(((e,i)=>e!=t[i])))){this.gapIntersection.disconnect();for(let e of t)this.gapIntersection.observe(e);this.gaps=t}}onSelectionChange(t){let e=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,s=this.selectionRange;if(i.state.facet(Me)?i.root.activeElement!=this.dom:!v(this.dom,s))return;let o=s.anchorNode&&i.docView.nearest(s.anchorNode);if(o&&o.ignoreEvent(t)){if(!e)this.selectionChanged=false;return}if((rt.ie&&rt.ie_version<=11||rt.android&&rt.chrome)&&!i.state.selection.main.empty&&s.focusNode&&y(s.focusNode,s.focusOffset,s.anchorNode,s.anchorOffset))this.flushSoon();else this.flush(false)}readSelectionRange(){let{view:t}=this;let e=m(t.root);if(!e)return false;let i=rt.safari&&t.root.nodeType==11&&t.root.activeElement==this.dom&&so(this.view,e)||e;if(!i||this.selectionRange.eq(i))return false;let s=v(this.dom,i);if(s&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let t=this.delayedAndroidKey;if(t){this.clearDelayedAndroidKey();this.view.inputState.lastKeyCode=t.keyCode;this.view.inputState.lastKeyTime=Date.now();let e=this.flush();if(!e&&t.force)H(this.dom,t.key,t.keyCode)}};this.flushingAndroidKey=this.view.win.requestAnimationFrame(t)}if(!this.delayedAndroidKey||t=="Enter")this.delayedAndroidKey={key:t,keyCode:e,force:this.lastChange{this.delayedFlush=-1;this.flush()}))}forceFlush(){if(this.delayedFlush>=0){this.view.win.cancelAnimationFrame(this.delayedFlush);this.delayedFlush=-1}this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();if(t.length)this.queue=[];let e=-1,i=-1,s=false;for(let o of t){let t=this.readMutation(o);if(!t)continue;if(t.typeOver)s=true;if(e==-1){({from:e,to:i}=t)}else{e=Math.min(t.from,e);i=Math.max(t.to,i)}}return{from:e,to:i,typeOver:s}}readChange(){let{from:t,to:e,typeOver:i}=this.processRecords();let s=this.selectionChanged&&v(this.dom,this.selectionRange);if(t<0&&!s)return null;if(t>-1)this.lastChange=Date.now();this.view.inputState.lastFocusTime=0;this.selectionChanged=false;let o=new vi(this.view,t,e,i);this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null};return o}flush(t=true){if(this.delayedFlush>=0||this.delayedAndroidKey)return false;if(t)this.readSelectionRange();let e=this.readChange();if(!e){this.view.requestMeasure();return false}let i=this.view.state;let s=bi(this.view,e);if(this.view.state==i&&(e.domChanged||e.newSel&&!e.newSel.main.eq(this.view.state.selection.main)))this.view.update([]);return s}readMutation(t){let e=this.view.docView.nearest(t.target);if(!e||e.ignoreMutation(t))return null;e.markDirty(t.type=="attributes");if(t.type=="attributes")e.flags|=4;if(t.type=="childList"){let i=eo(e,t.previousSibling||t.target.previousSibling,-1);let s=eo(e,t.nextSibling||t.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:s?e.posBefore(s):e.posAtEnd,typeOver:false}}else if(t.type=="characterData"){return{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}}else{return null}}setWindow(t){if(t!=this.win){this.removeWindowListeners(this.win);this.win=t;this.addWindowListeners(this.win)}}addWindowListeners(t){t.addEventListener("resize",this.onResize);if(this.printQuery){if(this.printQuery.addEventListener)this.printQuery.addEventListener("change",this.onPrint);else this.printQuery.addListener(this.onPrint)}else t.addEventListener("beforeprint",this.onPrint);t.addEventListener("scroll",this.onScroll);t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll);t.removeEventListener("resize",this.onResize);if(this.printQuery){if(this.printQuery.removeEventListener)this.printQuery.removeEventListener("change",this.onPrint);else this.printQuery.removeListener(this.onPrint)}else t.removeEventListener("beforeprint",this.onPrint);t.document.removeEventListener("selectionchange",this.onSelectionChange)}update(t){if(this.editContext){this.editContext.update(t);if(t.startState.facet(Me)!=t.state.facet(Me))t.view.contentDOM.editContext=t.state.facet(Me)?this.editContext.editContext:null}}destroy(){var t,e,i;this.stop();(t=this.intersection)===null||t===void 0?void 0:t.disconnect();(e=this.gapIntersection)===null||e===void 0?void 0:e.disconnect();(i=this.resizeScroll)===null||i===void 0?void 0:i.disconnect();for(let s of this.scrollTargets)s.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win);clearTimeout(this.parentCheck);clearTimeout(this.resizeTimeout);this.win.cancelAnimationFrame(this.delayedFlush);this.win.cancelAnimationFrame(this.flushingAndroidKey);if(this.editContext){this.view.contentDOM.editContext=null;this.editContext.destroy()}}}function eo(t,e,i){while(e){let s=Y.get(e);if(s&&s.parent==t)return s;let o=e.parentNode;e=o!=t.dom?o:i>0?e.nextSibling:e.previousSibling}return null}function io(t,e){let i=e.startContainer,s=e.startOffset;let o=e.endContainer,n=e.endOffset;let r=t.docView.domAtPos(t.state.selection.main.anchor);if(y(r.node,r.offset,o,n))[i,s,o,n]=[o,n,i,s];return{anchorNode:i,anchorOffset:s,focusNode:o,focusOffset:n}}function so(t,e){if(e.getComposedRanges){let i=e.getComposedRanges(t.root)[0];if(i)return io(t,i)}let i=null;function s(t){t.preventDefault();t.stopImmediatePropagation();i=t.getTargetRanges()[0]}t.contentDOM.addEventListener("beforeinput",s,true);t.dom.ownerDocument.execCommand("indent");t.contentDOM.removeEventListener("beforeinput",s,true);return i?io(t,i):null}class oo{constructor(t){this.from=0;this.to=0;this.pendingContextChange=null;this.handlers=Object.create(null);this.composing=null;this.resetRange(t.state);let e=this.editContext=new window.EditContext({text:t.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,t.state.selection.main.anchor))),selectionEnd:this.toContextPos(t.state.selection.main.head)});this.handlers.textupdate=e=>{let i=t.state.selection.main,{anchor:o,head:n}=i;let r=this.toEditorPos(e.updateRangeStart),l=this.toEditorPos(e.updateRangeEnd);if(t.inputState.composing>=0&&!this.composing)this.composing={contextBase:e.updateRangeStart,editorBase:r,drifted:false};let a={from:r,to:l,insert:s.Text.of(e.text.split("\n"))};if(a.from==this.from&&othis.to)a.to=o;if(a.from==a.to&&!a.insert.length){let o=s.EditorSelection.single(this.toEditorPos(e.selectionStart),this.toEditorPos(e.selectionEnd));if(!o.main.eq(i))t.dispatch({selection:o,userEvent:"select"});return}if((rt.mac||rt.android)&&a.from==n-1&&/^\. ?$/.test(e.text)&&t.contentDOM.getAttribute("autocorrect")=="off")a={from:r,to:l,insert:s.Text.of([e.text.replace("."," ")])};this.pendingContextChange=a;if(!t.state.readOnly){let i=this.to-this.from+(a.to-a.from+a.insert.length);yi(t,a,s.EditorSelection.single(this.toEditorPos(e.selectionStart,i),this.toEditorPos(e.selectionEnd,i)))}if(this.pendingContextChange){this.revertPending(t.state);this.setSelection(t.state)}};this.handlers.characterboundsupdate=i=>{let s=[],o=null;for(let e=this.toEditorPos(i.rangeStart),n=this.toEditorPos(i.rangeEnd);e{let i=[];for(let t of e.getTextFormats()){let e=t.underlineStyle,s=t.underlineThickness;if(e!="None"&&s!="None"){let o=this.toEditorPos(t.rangeStart),n=this.toEditorPos(t.rangeEnd);if(o{if(t.inputState.composing<0){t.inputState.composing=0;t.inputState.compositionFirstChange=true}};this.handlers.compositionend=()=>{t.inputState.composing=-1;t.inputState.compositionFirstChange=null;if(this.composing){let{drifted:e}=this.composing;this.composing=null;if(e)this.reset(t.state)}};for(let i in this.handlers)e.addEventListener(i,this.handlers[i]);this.measureReq={read:t=>{this.editContext.updateControlBounds(t.contentDOM.getBoundingClientRect());let e=m(t.root);if(e&&e.rangeCount)this.editContext.updateSelectionBounds(e.getRangeAt(0).getBoundingClientRect())}}}applyEdits(t){let e=0,i=false,s=this.pendingContextChange;t.changes.iterChanges(((o,n,r,l,a)=>{if(i)return;let h=a.length-(n-o);if(s&&n>=s.to){if(s.from==o&&s.to==n&&s.insert.eq(a)){s=this.pendingContextChange=null;e+=h;this.to+=h;return}else{s=null;this.revertPending(t.state)}}o+=e;n+=e;if(n<=this.from){this.from+=h;this.to+=h}else if(othis.to||this.to-this.from+a.length>3e4){i=true;return}this.editContext.updateText(this.toContextPos(o),this.toContextPos(n),a.toString());this.to+=h}e+=h}));if(s&&!i)this.revertPending(t.state);return!i}update(t){let e=this.pendingContextChange,i=t.startState.selection.main;if(this.composing&&(this.composing.drifted||!t.changes.touchesRange(i.from,i.to)&&t.transactions.some((t=>!t.isUserEvent("input.type")&&t.changes.touchesRange(this.from,this.to))))){this.composing.drifted=true;this.composing.editorBase=t.changes.mapPos(this.composing.editorBase)}else if(!this.applyEdits(t)||!this.rangeIsValid(t.state)){this.pendingContextChange=null;this.reset(t.state)}else if(t.docChanged||t.selectionSet||e){this.setSelection(t.state)}if(t.geometryChanged||t.docChanged||t.selectionSet)t.view.requestMeasure(this.measureReq)}resetRange(t){let{head:e}=t.selection.main;this.from=Math.max(0,e-1e4);this.to=Math.min(t.doc.length,e+1e4)}reset(t){this.resetRange(t);this.editContext.updateText(0,this.editContext.text.length,t.doc.sliceString(this.from,this.to));this.setSelection(t)}revertPending(t){let e=this.pendingContextChange;this.pendingContextChange=null;this.editContext.updateText(this.toContextPos(e.from),this.toContextPos(e.from+e.insert.length),t.doc.sliceString(e.from,e.to))}setSelection(t){let{main:e}=t.selection;let i=this.toContextPos(Math.max(this.from,Math.min(this.to,e.anchor)));let s=this.toContextPos(e.head);if(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=s)this.editContext.updateSelection(i,s)}rangeIsValid(t){let{head:e}=t.selection.main;return!(this.from>0&&e-this.from<500||this.to1e4*3)}toEditorPos(t,e=this.to-this.from){t=Math.min(t,e);let i=this.composing;return i&&i.drifted?i.editorBase+(t-i.contextBase):t+this.from}toContextPos(t){let e=this.composing;return e&&e.drifted?e.contextBase+(t-e.editorBase):t-this.from}destroy(){for(let t in this.handlers)this.editContext.removeEventListener(t,this.handlers[t])}}class no{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(t={}){var e;this.plugins=[];this.pluginMap=new Map;this.editorAttrs={};this.contentAttrs={};this.bidiCache=[];this.destroyed=false;this.updateState=2;this.measureScheduled=-1;this.measureRequests=[];this.contentDOM=document.createElement("div");this.scrollDOM=document.createElement("div");this.scrollDOM.tabIndex=-1;this.scrollDOM.className="cm-scroller";this.scrollDOM.appendChild(this.contentDOM);this.announceDOM=document.createElement("div");this.announceDOM.className="cm-announced";this.announceDOM.setAttribute("aria-live","polite");this.dom=document.createElement("div");this.dom.appendChild(this.announceDOM);this.dom.appendChild(this.scrollDOM);if(t.parent)t.parent.appendChild(this.dom);let{dispatch:i}=t;this.dispatchTransactions=t.dispatchTransactions||i&&(t=>t.forEach((t=>i(t,this))))||(t=>this.update(t));this.dispatch=this.dispatch.bind(this);this._root=t.root||N(t.parent)||document;this.viewState=new Hs(t.state||s.EditorState.create(t));if(t.scrollTo&&t.scrollTo.is(ye))this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state);this.plugins=this.state.facet(ke).map((t=>new De(t)));for(let s of this.plugins)s.update(this);this.observer=new to(this);this.inputState=new ki(this);this.inputState.ensureHandlers(this.plugins);this.docView=new ze(this);this.mountStyles();this.updateAttrs();this.updateState=0;this.requestMeasure();if((e=document.fonts)===null||e===void 0?void 0:e.ready)document.fonts.ready.then((()=>this.requestMeasure()))}dispatch(...t){let e=t.length==1&&t[0]instanceof s.Transaction?t:t.length==1&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(e,this)}update(t){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let e=false,i=false,o;let n=this.state;for(let s of t){if(s.startState!=n)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");n=s.state}if(this.destroyed){this.viewState.state=n;return}let r=this.hasFocus,l=0,a=null;if(t.some((t=>t.annotation(rs)))){this.inputState.notifiedFocused=r;l=1}else if(r!=this.inputState.notifiedFocused){this.inputState.notifiedFocused=r;a=ls(n,r);if(!a)l=1}let h=this.observer.delayedAndroidKey,f=null;if(h){this.observer.clearDelayedAndroidKey();f=this.observer.readChange();if(f&&!this.state.doc.eq(n.doc)||!this.state.selection.eq(n.selection))f=null}else{this.observer.clear()}if(n.facet(s.EditorState.phrases)!=this.state.facet(s.EditorState.phrases))return this.setState(n);o=We.create(this,n,t);o.flags|=l;let c=this.viewState.scrollTarget;try{this.updateState=2;for(let e of t){if(c)c=c.map(e.changes);if(e.scrollIntoView){let{main:t}=e.state.selection;c=new be(t.empty?t:s.EditorSelection.cursor(t.head,t.head>t.anchor?-1:1))}for(let t of e.effects)if(t.is(ye))c=t.value.clip(this.state)}this.viewState.update(o,c);this.bidiCache=ao.update(this.bidiCache,o.changes);if(!o.empty){this.updatePlugins(o);this.inputState.update(o)}e=this.docView.update(o);if(this.state.facet(Ve)!=this.styleModules)this.mountStyles();i=this.updateAttrs();this.showAnnouncements(t);this.docView.updateSelection(e,t.some((t=>t.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(o.startState.facet(Ys)!=o.state.facet(Ys))this.viewState.mustMeasureContent=true;if(e||i||c||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)this.requestMeasure();if(e)this.docViewUpdate();if(!o.empty)for(let s of this.state.facet(ce)){try{s(o)}catch(d){xe(this.state,d,"update listener")}}if(a||f)Promise.resolve().then((()=>{if(a&&this.state==a.startState)this.dispatch(a);if(f){if(!bi(this,f)&&h.force)H(this.contentDOM,h.key,h.keyCode)}}))}setState(t){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let e=this.hasFocus;try{for(let t of this.plugins)t.destroy(this);this.viewState=new Hs(t);this.plugins=t.facet(ke).map((t=>new De(t)));this.pluginMap.clear();for(let t of this.plugins)t.update(this);this.docView.destroy();this.docView=new ze(this);this.inputState.ensureHandlers(this.plugins);this.mountStyles();this.updateAttrs();this.bidiCache=[]}finally{this.updateState=0}if(e)this.focus();this.requestMeasure()}updatePlugins(t){let e=t.startState.facet(ke),i=t.state.facet(ke);if(e!=i){let s=[];for(let o of i){let i=e.indexOf(o);if(i<0){s.push(new De(o))}else{let e=this.plugins[i];e.mustUpdate=t;s.push(e)}}for(let e of this.plugins)if(e.mustUpdate!=t)e.destroy(this);this.plugins=s;this.pluginMap.clear()}else{for(let e of this.plugins)e.mustUpdate=t}for(let s=0;s-1)this.win.cancelAnimationFrame(this.measureScheduled);if(this.observer.delayedAndroidKey){this.measureScheduled=-1;this.requestMeasure();return}this.measureScheduled=0;if(t)this.observer.forceFlush();let e=null;let i=this.scrollDOM,s=i.scrollTop*this.scaleY;let{scrollAnchorPos:o,scrollAnchorHeight:n}=this.viewState;if(Math.abs(s-this.viewState.scrollTop)>1)n=-1;this.viewState.scrollAnchorHeight=-1;try{for(let t=0;;t++){if(n<0){if(W(i)){o=-1;n=this.viewState.heightMap.height}else{let t=this.viewState.scrollAnchorAt(s);o=t.from;n=t.top}}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(t>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let a=[];if(!(l&4))[this.measureRequests,a]=[a,this.measureRequests];let h=a.map((t=>{try{return t.read(this)}catch(e){xe(this.state,e);return lo}}));let f=We.create(this,this.state,[]),c=false;f.flags|=l;if(!e)e=f;else e.flags|=l;this.updateState=2;if(!f.empty){this.updatePlugins(f);this.inputState.update(f);this.updateAttrs();c=this.docView.update(f);if(c)this.docViewUpdate()}for(let t=0;t1||e<-1){s=s+e;i.scrollTop=s/this.scaleY;n=-1;continue}}}break}}}finally{this.updateState=0;this.measureScheduled=-1}if(e&&!e.empty)for(let l of this.state.facet(ce))l(e)}get themeClasses(){return Xs+" "+(this.state.facet(_s)?js:Gs)+" "+this.state.facet(Ys)}updateAttrs(){let t=ho(this,Oe,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses});let e={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:!this.state.facet(Me)?"false":"true",class:"cm-content",style:`${rt.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};if(this.state.readOnly)e["aria-readonly"]="true";ho(this,Te,e);let i=this.observer.ignore((()=>{let i=St(this.contentDOM,this.contentAttrs,e);let s=St(this.dom,this.editorAttrs,t);return i||s}));this.editorAttrs=t;this.contentAttrs=e;return i}showAnnouncements(t){let e=true;for(let i of t)for(let t of i.effects)if(t.is(no.announce)){if(e)this.announceDOM.textContent="";e=false;let i=this.announceDOM.appendChild(document.createElement("div"));i.textContent=t.value}}mountStyles(){this.styleModules=this.state.facet(Ve);let t=this.state.facet(no.cspNonce);o.StyleModule.mount(this.root,this.styleModules.concat(Qs).reverse(),t?{nonce:t}:undefined)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");if(this.updateState==0&&this.measureScheduled>-1)this.measure(false)}requestMeasure(t){if(this.measureScheduled<0)this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()));if(t){if(this.measureRequests.indexOf(t)>-1)return;if(t.key!=null)for(let e=0;ee.plugin==t))||null);return e&&e.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(t){this.readMeasured();return this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){this.readMeasured();return this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,e,i){return ui(this,t,hi(this,t,e,i))}moveByGroup(t,e){return ui(this,t,hi(this,t,e,(e=>fi(this,t.head,e))))}visualLineSide(t,e){let i=this.bidiSpans(t),o=this.textDirectionAt(t.from);let n=i[e?i.length-1:0];return s.EditorSelection.cursor(n.side(e,o)+t.from,n.forward(!e,o)?1:-1)}moveToLineBoundary(t,e,i=true){return ai(this,t,e,i)}moveVertically(t,e,i){return ui(this,t,ci(this,t,e,i))}domAtPos(t){return this.docView.domAtPos(t)}posAtDOM(t,e=0){return this.docView.posFromDOM(t,e)}posAtCoords(t,e=true){this.readMeasured();return si(this,t,e)}coordsAtPos(t,e=1){this.readMeasured();let i=this.docView.coordsAt(t,e);if(!i||i.left==i.right)return i;let s=this.state.doc.lineAt(t),o=this.bidiSpans(s);let n=o[jt.find(o,t-s.from,-1,e)];return k(i,n.dir==Ft.LTR==e>0)}coordsForChar(t){this.readMeasured();return this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){let e=this.state.facet(me);if(!e||tthis.viewport.to)return this.textDirection;this.readMeasured();return this.docView.textDirectionAt(t)}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>ro)return se(t.length);let e=this.textDirectionAt(t.from),i;for(let o of this.bidiCache){if(o.from==t.from&&o.dir==e&&(o.fresh||$t(o.isolates,i=Pe(this,t))))return o.order}if(!i)i=Pe(this,t);let s=ie(t.text,e,i);this.bidiCache.push(new ao(t.from,t.to,e,i,true,s));return s}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||rt.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{B(this.contentDOM);this.docView.updateSelection()}))}setRoot(t){if(this._root!=t){this._root=t;this.observer.setWindow((t.nodeType==9?t:t.ownerDocument).defaultView||window);this.mountStyles()}}destroy(){if(this.root.activeElement==this.contentDOM)this.contentDOM.blur();for(let t of this.plugins)t.destroy(this);this.plugins=[];this.inputState.destroy();this.docView.destroy();this.dom.remove();this.observer.destroy();if(this.measureScheduled>-1)this.win.cancelAnimationFrame(this.measureScheduled);this.destroyed=true}static scrollIntoView(t,e={}){return ye.of(new be(typeof t=="number"?s.EditorSelection.cursor(t):t,e.y,e.x,e.yMargin,e.xMargin))}scrollSnapshot(){let{scrollTop:t,scrollLeft:e}=this.scrollDOM;let i=this.viewState.scrollAnchorAt(t);return ye.of(new be(s.EditorSelection.cursor(i.from),"start","start",i.top-t,e,true))}setTabFocusMode(t){if(t==null)this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1;else if(typeof t=="boolean")this.inputState.tabFocusMode=t?0:-1;else if(this.inputState.tabFocusMode!=0)this.inputState.tabFocusMode=Date.now()+t}static domEventHandlers(t){return Ae.define((()=>({})),{eventHandlers:t})}static domEventObservers(t){return Ae.define((()=>({})),{eventObservers:t})}static theme(t,e){let i=o.StyleModule.newName();let s=[Ys.of(i),Ve.of(Us(`.${i}`,t))];if(e&&e.dark)s.push(_s.of(true));return s}static baseTheme(t){return s.Prec.lowest(Ve.of(Us("."+Xs,t,$s)))}static findFromDOM(t){var e;let i=t.querySelector(".cm-content");let s=i&&Y.get(i)||Y.get(t);return((e=s===null||s===void 0?void 0:s.rootView)===null||e===void 0?void 0:e.view)||null}}no.styleModule=Ve;no.inputHandler=de;no.clipboardInputFilter=pe;no.clipboardOutputFilter=ge;no.scrollHandler=ve;no.focusChangeEffect=ue;no.perLineTextDirection=me;no.exceptionSink=fe;no.updateListener=ce;no.editable=Me;no.mouseSelectionStyle=he;no.dragMovesSelection=ae;no.clickAddsSelectionRange=le;no.decorations=Ee;no.outerDecorations=Re;no.atomicRanges=Be;no.bidiIsolatedRanges=Le;no.scrollMargins=He;no.darkTheme=_s;no.cspNonce=s.Facet.define({combine:t=>t.length?t[0]:""});no.contentAttributes=Te;no.editorAttributes=Oe;no.lineWrapping=no.contentAttributes.of({class:"cm-lineWrapping"});no.announce=s.StateEffect.define();const ro=4096;const lo={};class ao{constructor(t,e,i,s,o,n){this.from=t;this.to=e;this.dir=i;this.isolates=s;this.fresh=o;this.order=n}static update(t,e){if(e.empty&&!t.some((t=>t.fresh)))return t;let i=[],s=t.length?t[t.length-1].dir:Ft.LTR;for(let o=Math.max(0,t.length-10);o=0;o--){let e=s[o],n=typeof e=="function"?e(t):e;if(n)vt(n,i)}return i}const fo=rt.mac?"mac":rt.windows?"win":rt.linux?"linux":"key";function co(t,e){const i=t.split(/-(?!$)/);let s=i[i.length-1];if(s=="Space")s=" ";let o,n,r,l;for(let a=0;at.concat(e)),[])));return i}function vo(t,e,i){return Mo(wo(t.state),e,t,i)}let bo=null;const yo=4e3;function So(t,e=fo){let i=Object.create(null);let s=Object.create(null);let o=(t,e)=>{let i=s[t];if(i==null)s[t]=e;else if(i!=e)throw new Error("Key binding "+t+" is used both as a regular binding and as a multi-stroke prefix")};let n=(t,s,n,r,l)=>{var a,h;let f=i[t]||(i[t]=Object.create(null));let c=s.split(/ (?!$)/).map((t=>co(t,e)));for(let e=1;e{let s=bo={view:e,prefix:i,scope:t};setTimeout((()=>{if(bo==s)bo=null}),yo);return true}]}}let d=c.join(" ");o(d,false);let u=f[d]||(f[d]={preventDefault:false,stopPropagation:false,run:((h=(a=f._any)===null||a===void 0?void 0:a.run)===null||h===void 0?void 0:h.slice())||[]});if(n)u.run.push(n);if(r)u.preventDefault=true;if(l)u.stopPropagation=true};for(let r of t){let t=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let e of t){let t=i[e]||(i[e]=Object.create(null));if(!t._any)t._any={preventDefault:false,stopPropagation:false,run:[]};let{any:s}=r;for(let e in t)t[e].run.push((t=>s(t,xo)))}let s=r[e]||r.key;if(!s)continue;for(let e of t){n(e,s,r.run,r.preventDefault,r.stopPropagation);if(r.shift)n(e,"Shift-"+s,r.shift,r.preventDefault,r.stopPropagation)}}return i}let xo=null;function Mo(t,e,i,o){xo=e;let l=p(e);let a=(0,s.codePointAt)(l,0),h=(0,s.codePointSize)(a)==l.length&&l!=" ";let f="",c=false,d=false,u=false;if(bo&&bo.view==i&&bo.scope==o){f=bo.prefix+" ";if(Ei.indexOf(e.keyCode)<0){d=true;bo=null}}let g=new Set;let m=t=>{if(t){for(let e of t.run)if(!g.has(e)){g.add(e);if(e(i)){if(t.stopPropagation)u=true;return true}}if(t.preventDefault){if(t.stopPropagation)u=true;d=true}}return false};let w=t[o],v,b;if(w){if(m(w[f+uo(l,e,!h)])){c=true}else if(h&&(e.altKey||e.metaKey||e.ctrlKey)&&!(rt.windows&&e.ctrlKey&&e.altKey)&&!(rt.mac&&e.altKey&&!e.ctrlKey)&&(v=n[e.keyCode])&&v!=l){if(m(w[f+uo(v,e,true)])){c=true}else if(e.shiftKey&&(b=r[e.keyCode])!=l&&b!=v&&m(w[f+uo(b,e,false)])){c=true}}else if(h&&e.shiftKey&&m(w[f+uo(l,e,true)])){c=true}if(!c&&m(w._any))c=true}if(d)c=true;if(c&&u)e.stopPropagation();xo=null;return c}class Co{constructor(t,e,i,s,o){this.className=t;this.left=e;this.top=i;this.width=s;this.height=o}draw(){let t=document.createElement("div");t.className=this.className;this.adjust(t);return t}update(t,e){if(e.className!=this.className)return false;this.adjust(t);return true}adjust(t){t.style.left=this.left+"px";t.style.top=this.top+"px";if(this.width!=null)t.style.width=this.width+"px";t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,e,i){if(i.empty){let s=t.coordsAtPos(i.head,i.assoc||1);if(!s)return[];let o=ko(t);return[new Co(e,s.left-o.left,s.top-o.top,null,s.bottom-s.top)]}else{return Do(t,e,i)}}}function ko(t){let e=t.scrollDOM.getBoundingClientRect();let i=t.textDirection==Ft.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX;return{left:i-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function Ao(t,e,i,s){let o=t.coordsAtPos(e,i*2);if(!o)return s;let n=t.dom.getBoundingClientRect();let r=(o.top+o.bottom)/2;let l=t.posAtCoords({x:n.left+1,y:r});let a=t.posAtCoords({x:n.right-1,y:r});if(l==null||a==null)return s;return{from:Math.max(s.from,Math.min(l,a)),to:Math.min(s.to,Math.max(l,a))}}function Do(t,e,i){if(i.to<=t.viewport.from||i.from>=t.viewport.to)return[];let s=Math.max(i.from,t.viewport.from),o=Math.min(i.to,t.viewport.to);let n=t.textDirection==Ft.LTR;let r=t.contentDOM,l=r.getBoundingClientRect(),a=ko(t);let h=r.querySelector(".cm-line"),f=h&&window.getComputedStyle(h);let c=l.left+(f?parseInt(f.paddingLeft)+Math.min(0,parseInt(f.textIndent)):0);let d=l.right-(f?parseInt(f.paddingRight):0);let u=li(t,s,1),p=li(t,o,-1);let g=u.type==Ct.Text?u:null;let m=p.type==Ct.Text?p:null;if(g&&(t.lineWrapping||u.widgetLineBreaks))g=Ao(t,s,1,g);if(m&&(t.lineWrapping||p.widgetLineBreaks))m=Ao(t,o,-1,m);if(g&&m&&g.from==m.from&&g.to==m.to){return v(b(i.from,i.to,g))}else{let e=g?b(i.from,null,g):y(u,false);let s=m?b(null,i.to,m):y(p,true);let o=[];if((g||u).to<(m||p).from-(g&&m?1:0)||u.widgetLineBreaks>1&&e.bottom+t.defaultLineHeight/2h&&n.from=o)break;if(l>s)a(Math.max(t,s),e==null&&t<=h,Math.min(l,o),i==null&&l>=f,r.dir)}s=n.to+1;if(s>=o)break}}if(l.length==0)a(h,e==null,f,i==null,t.textDirection);return{top:o,bottom:r,horizontal:l}}function y(t,e){let i=l.top+(e?t.top:t.bottom);return{top:i,bottom:i,horizontal:[]}}}function Oo(t,e){return t.constructor==e.constructor&&t.eq(e)}class To{constructor(t,e){this.view=t;this.layer=e;this.drawn=[];this.scaleX=1;this.scaleY=1;this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)};this.dom=t.scrollDOM.appendChild(document.createElement("div"));this.dom.classList.add("cm-layer");if(e.above)this.dom.classList.add("cm-layer-above");if(e.class)this.dom.classList.add(e.class);this.scale();this.dom.setAttribute("aria-hidden","true");this.setOrder(t.state);t.requestMeasure(this.measureReq);if(e.mount)e.mount(this.dom,t)}update(t){if(t.startState.facet(Eo)!=t.state.facet(Eo))this.setOrder(t.state);if(this.layer.update(t,this.dom)||t.geometryChanged){this.scale();t.view.requestMeasure(this.measureReq)}}docViewUpdate(t){if(this.layer.updateOnDocViewUpdate!==false)t.requestMeasure(this.measureReq)}setOrder(t){let e=0,i=t.facet(Eo);while(e!Oo(t,this.drawn[e])))){let e=this.dom.firstChild,i=0;for(let s of t){if(s.update&&e&&s.constructor&&this.drawn[i].constructor&&s.update(e,this.drawn[i])){e=e.nextSibling;i++}else{this.dom.insertBefore(s.draw(),e)}}while(e){let t=e.nextSibling;e.remove();e=t}this.drawn=t}}destroy(){if(this.layer.destroy)this.layer.destroy(this.dom,this.view);this.dom.remove()}}const Eo=s.Facet.define();function Ro(t){return[Ae.define((e=>new To(e,t))),Eo.of(t)]}const Bo=s.Facet.define({combine(t){return(0,s.combineConfig)(t,{cursorBlinkRate:1200,drawRangeCursor:true},{cursorBlinkRate:(t,e)=>Math.min(t,e),drawRangeCursor:(t,e)=>t||e})}});function Lo(t={}){return[Bo.of(t),No,Fo,Wo,we.of(true)]}function Po(t){return t.facet(Bo)}function Ho(t){return t.startState.facet(Bo)!=t.state.facet(Bo)}const No=Ro({above:true,markers(t){let{state:e}=t,i=e.facet(Bo);let o=[];for(let n of e.selection.ranges){let r=n==e.selection.main;if(n.empty||i.drawRangeCursor){let e=r?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary";let i=n.empty?n:s.EditorSelection.cursor(n.head,n.head>n.anchor?-1:1);for(let s of Co.forRange(t,e,i))o.push(s)}}return o},update(t,e){if(t.transactions.some((t=>t.selection)))e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink";let i=Ho(t);if(i)Vo(t.state,e);return t.docChanged||t.selectionSet||i},mount(t,e){Vo(e.state,t)},class:"cm-cursorLayer"});function Vo(t,e){e.style.animationDuration=t.facet(Bo).cursorBlinkRate+"ms"}const Fo=Ro({above:false,markers(t){return t.state.selection.ranges.map((e=>e.empty?[]:Co.forRange(t,"cm-selectionBackground",e))).reduce(((t,e)=>t.concat(e)))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||Ho(t)},class:"cm-selectionLayer"});const Wo=s.Prec.highest(no.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}}));const zo=s.StateEffect.define({map(t,e){return t==null?null:e.mapPos(t)}});const Io=s.StateField.define({create(){return null},update(t,e){if(t!=null)t=e.changes.mapPos(t);return e.effects.reduce(((t,e)=>e.is(zo)?e.value:t),t)}});const qo=Ae.fromClass(class{constructor(t){this.view=t;this.cursor=null;this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let i=t.state.field(Io);if(i==null){if(this.cursor!=null){(e=this.cursor)===null||e===void 0?void 0:e.remove();this.cursor=null}}else{if(!this.cursor){this.cursor=this.view.scrollDOM.appendChild(document.createElement("div"));this.cursor.className="cm-dropCursor"}if(t.startState.field(Io)!=i||t.docChanged||t.geometryChanged)this.view.requestMeasure(this.measureReq)}}readPos(){let{view:t}=this;let e=t.state.field(Io);let i=e!=null&&t.coordsAtPos(e);if(!i)return null;let s=t.scrollDOM.getBoundingClientRect();return{left:i.left-s.left+t.scrollDOM.scrollLeft*t.scaleX,top:i.top-s.top+t.scrollDOM.scrollTop*t.scaleY,height:i.bottom-i.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:i}=this.view;if(t){this.cursor.style.left=t.left/e+"px";this.cursor.style.top=t.top/i+"px";this.cursor.style.height=t.height/i+"px"}else{this.cursor.style.left="-100000px"}}}destroy(){if(this.cursor)this.cursor.remove()}setDropPos(t){if(this.view.state.field(Io)!=t)this.view.dispatch({effects:zo.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){if(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function Ko(){return[Io,qo]}function Yo(t,e,i,s,o){e.lastIndex=0;for(let n=t.iterRange(i,s),r=i,l;!n.next().done;r+=n.value.length){if(!n.lineBreak)while(l=e.exec(n.value))o(r+l.index,l)}}function _o(t,e){let i=t.visibleRanges;if(i.length==1&&i[0].from==t.viewport.from&&i[0].to==t.viewport.to)return i;let s=[];for(let{from:o,to:n}of i){o=Math.max(t.state.doc.lineAt(o).from,o-e);n=Math.min(t.state.doc.lineAt(n).to,n+e);if(s.length&&s[s.length-1].to>=o)s[s.length-1].to=n;else s.push({from:o,to:n})}return s}class Xo{constructor(t){const{regexp:e,decoration:i,decorate:s,boundary:o,maxLength:n=1e3}=t;if(!e.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");this.regexp=e;if(s){this.addMatch=(t,e,i,o)=>s(o,i,i+t[0].length,t,e)}else if(typeof i=="function"){this.addMatch=(t,e,s,o)=>{let n=i(t,e,s);if(n)o(s,s+t[0].length,n)}}else if(i){this.addMatch=(t,e,s,o)=>o(s,s+t[0].length,i)}else{throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator")}this.boundary=o;this.maxLength=n}createDeco(t){let e=new s.RangeSetBuilder,i=e.add.bind(e);for(let{from:s,to:o}of _o(t,this.maxLength))Yo(t.state.doc,this.regexp,s,o,((e,s)=>this.addMatch(s,t,e,i)));return e.finish()}updateDeco(t,e){let i=1e9,s=-1;if(t.docChanged)t.changes.iterChanges(((e,o,n,r)=>{if(r>=t.view.viewport.from&&n<=t.view.viewport.to){i=Math.min(n,i);s=Math.max(r,s)}}));if(t.viewportMoved||s-i>1e3)return this.createDeco(t.view);if(s>-1)return this.updateRange(t.view,e.map(t.changes),i,s);return e}updateRange(t,e,i,s){for(let o of t.visibleRanges){let n=Math.max(o.from,i),r=Math.min(o.to,s);if(r>=n){let i=t.state.doc.lineAt(n),s=i.toi.from;n--)if(this.boundary.test(i.text[n-1-i.from])){l=n;break}for(;rh.push(i.range(t,e));if(i==s){this.regexp.lastIndex=l-i.from;while((f=this.regexp.exec(i.text))&&f.indexthis.addMatch(i,t,e,c)))}e=e.update({filterFrom:l,filterTo:a,filter:(t,e)=>ta,add:h})}}return e}}const Go=/x/.unicode!=null?"gu":"g";const jo=new RegExp("[\0-\b\n--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff-]",Go);const $o={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Uo=null;function Qo(){var t;if(Uo==null&&typeof document!="undefined"&&document.body){let e=document.body.style;Uo=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return Uo||false}const Jo=s.Facet.define({combine(t){let e=(0,s.combineConfig)(t,{render:null,specialChars:jo,addSpecialChars:null});if(e.replaceTabs=!Qo())e.specialChars=new RegExp("\t|"+e.specialChars.source,Go);if(e.addSpecialChars)e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Go);return e}});function Zo(t={}){return[Jo.of(t),en()]}let tn=null;function en(){return tn||(tn=Ae.fromClass(class{constructor(t){this.view=t;this.decorations=kt.none;this.decorationCache=Object.create(null);this.decorator=this.makeDecorator(t.state.facet(Jo));this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new Xo({regexp:t.specialChars,decoration:(e,i,o)=>{let{doc:n}=i.state;let r=(0,s.codePointAt)(e[0],0);if(r==9){let t=n.lineAt(o);let e=i.state.tabSize,r=(0,s.countColumn)(t.text,e,o-t.from);return kt.replace({widget:new rn((e-r%e)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[r]||(this.decorationCache[r]=kt.replace({widget:new nn(t,r)}))},boundary:t.replaceTabs?undefined:/[^]/})}update(t){let e=t.state.facet(Jo);if(t.startState.facet(Jo)!=e){this.decorator=this.makeDecorator(e);this.decorations=this.decorator.createDeco(t.view)}else{this.decorations=this.decorator.updateDeco(t,this.decorations)}}},{decorations:t=>t.decorations}))}const sn="•";function on(t){if(t>=32)return sn;if(t==10)return"␤";return String.fromCharCode(9216+t)}class nn extends Mt{constructor(t,e){super();this.options=t;this.code=e}eq(t){return t.code==this.code}toDOM(t){let e=on(this.code);let i=t.state.phrase("Control character")+" "+($o[this.code]||"0x"+this.code.toString(16));let s=this.options.render&&this.options.render(this.code,i,e);if(s)return s;let o=document.createElement("span");o.textContent=e;o.title=i;o.setAttribute("aria-label",i);o.className="cm-specialChar";return o}ignoreEvent(){return false}}class rn extends Mt{constructor(t){super();this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");t.textContent="\t";t.className="cm-tab";t.style.width=this.width+"px";return t}ignoreEvent(){return false}}const ln=Ae.fromClass(class{constructor(){this.height=1e3;this.attrs={style:"padding-bottom: 1000px"}}update(t){let{view:e}=t;let i=e.viewState.editorHeight-e.defaultLineHeight-e.documentPadding.top-.5;if(i>=0&&i!=this.height){this.height=i;this.attrs={style:`padding-bottom: ${i}px`}}}});function an(){return[ln,Te.of((t=>{var e;return((e=t.plugin(ln))===null||e===void 0?void 0:e.attrs)||null}))]}function hn(){return cn}const fn=kt.line({class:"cm-activeLine"});const cn=Ae.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){if(t.docChanged||t.selectionSet)this.decorations=this.getDeco(t.view)}getDeco(t){let e=-1,i=[];for(let s of t.state.selection.ranges){let o=t.lineBlockAt(s.head);if(o.from>e){i.push(fn.range(o.from));e=o.from}}return kt.set(i)}},{decorations:t=>t.decorations});class dn extends Mt{constructor(t){super();this.content=t}toDOM(t){let e=document.createElement("span");e.className="cm-placeholder";e.style.pointerEvents="none";e.appendChild(typeof this.content=="string"?document.createTextNode(this.content):typeof this.content=="function"?this.content(t):this.content.cloneNode(true));e.setAttribute("aria-hidden","true");return e}coordsAt(t){let e=t.firstChild?b(t.firstChild):[];if(!e.length)return null;let i=window.getComputedStyle(t.parentNode);let s=k(e[0],i.direction!="rtl");let o=parseInt(i.lineHeight);if(s.bottom-s.top>o*1.5)return{left:s.left,right:s.right,top:s.top,bottom:s.top+o};return s}ignoreEvent(){return false}}function un(t){let e=Ae.fromClass(class{constructor(e){this.view=e;this.placeholder=t?kt.set([kt.widget({widget:new dn(t),side:1}).range(0)]):kt.none}get decorations(){return this.view.state.doc.length?kt.none:this.placeholder}},{decorations:t=>t.decorations});return typeof t=="string"?[e,no.contentAttributes.of({"aria-placeholder":t})]:e}const pn=2e3;function gn(t,e,i){let o=Math.min(e.line,i.line),n=Math.max(e.line,i.line);let r=[];if(e.off>pn||i.off>pn||e.col<0||i.col<0){let l=Math.min(e.off,i.off),a=Math.max(e.off,i.off);for(let e=o;e<=n;e++){let i=t.doc.line(e);if(i.length<=a)r.push(s.EditorSelection.range(i.from+l,i.to+a))}}else{let l=Math.min(e.col,i.col),a=Math.max(e.col,i.col);for(let e=o;e<=n;e++){let i=t.doc.line(e);let o=(0,s.findColumn)(i.text,l,t.tabSize,true);if(o<0){r.push(s.EditorSelection.cursor(i.to))}else{let e=(0,s.findColumn)(i.text,a,t.tabSize);r.push(s.EditorSelection.range(i.from+o,i.from+e))}}}return r}function mn(t,e){let i=t.coordsAtPos(t.viewport.from);return i?Math.round(Math.abs((i.left-e)/t.defaultCharacterWidth)):-1}function wn(t,e){let i=t.posAtCoords({x:e.clientX,y:e.clientY},false);let o=t.state.doc.lineAt(i),n=i-o.from;let r=n>pn?-1:n==o.length?mn(t,e.clientX):(0,s.countColumn)(o.text,t.state.tabSize,i-o.from);return{line:o.number,col:r,off:n}}function vn(t,e){let i=wn(t,e),o=t.state.selection;if(!i)return null;return{update(t){if(t.docChanged){let e=t.changes.mapPos(t.startState.doc.line(i.line).from);let s=t.state.doc.lineAt(e);i={line:s.number,col:i.col,off:Math.min(i.off,s.length)};o=o.map(t.changes)}},get(e,n,r){let l=wn(t,e);if(!l)return o;let a=gn(t.state,i,l);if(!a.length)return o;if(r)return s.EditorSelection.create(a.concat(o.ranges));else return s.EditorSelection.create(a)}}}function bn(t){let e=(t===null||t===void 0?void 0:t.eventFilter)||(t=>t.altKey&&t.button==0);return no.mouseSelectionStyle.of(((t,i)=>e(i)?vn(t,i):null))}const yn={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]};const Sn={style:"cursor: crosshair"};function xn(t={}){let[e,i]=yn[t.key||"Alt"];let s=Ae.fromClass(class{constructor(t){this.view=t;this.isDown=false}set(t){if(this.isDown!=t){this.isDown=t;this.view.update([])}}},{eventObservers:{keydown(t){this.set(t.keyCode==e||i(t))},keyup(t){if(t.keyCode==e||!i(t))this.set(false)},mousemove(t){this.set(i(t))}}});return[s,no.contentAttributes.of((t=>{var e;return((e=t.plugin(s))===null||e===void 0?void 0:e.isDown)?Sn:null}))]}const Mn="-10000px";class Cn{constructor(t,e,i,s){this.facet=e;this.createTooltipView=i;this.removeTooltipView=s;this.input=t.state.facet(e);this.tooltips=this.input.filter((t=>t));let o=null;this.tooltipViews=this.tooltips.map((t=>o=i(t,o)))}update(t,e){var i;let s=t.state.facet(this.facet);let o=s.filter((t=>t));if(s===this.input){for(let e of this.tooltipViews)if(e.update)e.update(t);return false}let n=[],r=e?[]:null;for(let l=0;le[i]=t));e.length=r.length}this.input=s;this.tooltips=o;this.tooltipViews=n;return true}}function kn(t={}){return Dn.of(t)}function An(t){let e=t.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:e.clientHeight,right:e.clientWidth}}const Dn=s.Facet.define({combine:t=>{var e,i,s;return{position:rt.ios?"absolute":((e=t.find((t=>t.position)))===null||e===void 0?void 0:e.position)||"fixed",parent:((i=t.find((t=>t.parent)))===null||i===void 0?void 0:i.parent)||null,tooltipSpace:((s=t.find((t=>t.tooltipSpace)))===null||s===void 0?void 0:s.tooltipSpace)||An}}});const On=new WeakMap;const Tn=Ae.fromClass(class{constructor(t){this.view=t;this.above=[];this.inView=true;this.madeAbsolute=false;this.lastTransaction=0;this.measureTimeout=-1;let e=t.state.facet(Dn);this.position=e.position;this.parent=e.parent;this.classes=t.themeClasses;this.createContainer();this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this};this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver((()=>this.measureSoon())):null;this.manager=new Cn(t,Ln,((t,e)=>this.createTooltip(t,e)),(t=>{if(this.resizeObserver)this.resizeObserver.unobserve(t.dom);t.dom.remove()}));this.above=this.manager.tooltips.map((t=>!!t.above));this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver((t=>{if(Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1)this.measureSoon()}),{threshold:[1]}):null;this.observeIntersection();t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this));this.maybeMeasure()}createContainer(){if(this.parent){this.container=document.createElement("div");this.container.style.position="relative";this.container.className=this.view.themeClasses;this.parent.appendChild(this.container)}else{this.container=this.view.dom}}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){if(this.measureTimeout<0)this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1;this.maybeMeasure()}),50)}update(t){if(t.transactions.length)this.lastTransaction=Date.now();let e=this.manager.update(t,this.above);if(e)this.observeIntersection();let i=e||t.geometryChanged;let s=t.state.facet(Dn);if(s.position!=this.position&&!this.madeAbsolute){this.position=s.position;for(let t of this.manager.tooltipViews)t.dom.style.position=this.position;i=true}if(s.parent!=this.parent){if(this.parent)this.container.remove();this.parent=s.parent;this.createContainer();for(let t of this.manager.tooltipViews)this.container.appendChild(t.dom);i=true}else if(this.parent&&this.view.themeClasses!=this.classes){this.classes=this.container.className=this.view.themeClasses}if(i)this.maybeMeasure()}createTooltip(t,e){let i=t.create(this.view);let s=e?e.dom:null;i.dom.classList.add("cm-tooltip");if(t.arrow&&!i.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let t=document.createElement("div");t.className="cm-tooltip-arrow";i.dom.appendChild(t)}i.dom.style.position=this.position;i.dom.style.top=Mn;i.dom.style.left="0px";this.container.insertBefore(i.dom,s);if(i.mount)i.mount(this.view);if(this.resizeObserver)this.resizeObserver.observe(i.dom);return i}destroy(){var t,e,i;this.view.win.removeEventListener("resize",this.measureSoon);for(let s of this.manager.tooltipViews){s.dom.remove();(t=s.destroy)===null||t===void 0?void 0:t.call(s)}if(this.parent)this.container.remove();(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect();(i=this.intersectionObserver)===null||i===void 0?void 0:i.disconnect();clearTimeout(this.measureTimeout)}readMeasure(){let t=1,e=1,i=false;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:t}=this.manager.tooltipViews[0];if(rt.gecko){i=t.offsetParent!=this.container.ownerDocument.body}else if(t.style.top==Mn&&t.style.left=="0px"){let e=t.getBoundingClientRect();i=Math.abs(e.top+1e4)>1||Math.abs(e.left)>1}}if(i||this.position=="absolute"){if(this.parent){let i=this.parent.getBoundingClientRect();if(i.width&&i.height){t=i.width/this.parent.offsetWidth;e=i.height/this.parent.offsetHeight}}else{({scaleX:t,scaleY:e}=this.view.viewState)}}let s=this.view.scrollDOM.getBoundingClientRect(),o=Ne(this.view);return{visible:{left:s.left+o.left,top:s.top+o.top,right:s.right-o.right,bottom:s.bottom-o.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map(((t,e)=>{let i=this.manager.tooltipViews[e];return i.getCoords?i.getCoords(t.pos):this.view.coordsAtPos(t.pos)})),size:this.manager.tooltipViews.map((({dom:t})=>t.getBoundingClientRect())),space:this.view.state.facet(Dn).tooltipSpace(this.view),scaleX:t,scaleY:e,makeAbsolute:i}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=true;this.position="absolute";for(let t of this.manager.tooltipViews)t.dom.style.position="absolute"}let{visible:i,space:s,scaleX:o,scaleY:n}=t;let r=[];for(let l=0;l=Math.min(i.bottom,s.bottom)||c.rightMath.min(i.right,s.right)+.1)){f.style.top=Mn;continue}let u=a.arrow?h.dom.querySelector(".cm-tooltip-arrow"):null;let p=u?7:0;let g=d.right-d.left,m=(e=On.get(h))!==null&&e!==void 0?e:d.bottom-d.top;let w=h.offset||Bn,v=this.view.textDirection==Ft.LTR;let b=d.width>s.right-s.left?v?s.left:s.right-d.width:v?Math.max(s.left,Math.min(c.left-(u?14:0)+w.x,s.right-g)):Math.min(Math.max(s.left,c.left-g+(u?14:0)-w.x),s.right-g);let y=this.above[l];if(!a.strictSide&&(y?c.top-m-p-w.ys.bottom)&&y==s.bottom-c.bottom>c.top-s.top)y=this.above[l]=!y;let S=(y?c.top-s.top:s.bottom-c.bottom)-p;if(Sb&&t.topx)x=y?t.top-m-2-p:t.bottom+p+2;if(this.position=="absolute"){f.style.top=(x-t.parent.top)/n+"px";En(f,(b-t.parent.left)/o)}else{f.style.top=x/n+"px";En(f,b/o)}if(u){let t=c.left+(v?w.x:-w.x)-(b+14-7);u.style.left=t/o+"px"}if(h.overlap!==true)r.push({left:b,top:x,right:M,bottom:x+m});f.classList.toggle("cm-tooltip-above",y);f.classList.toggle("cm-tooltip-below",!y);if(h.positioned)h.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length){if(this.view.inView)this.view.requestMeasure(this.measureReq);if(this.inView!=this.view.inView){this.inView=this.view.inView;if(!this.inView)for(let t of this.manager.tooltipViews)t.dom.style.top=Mn}}}},{eventObservers:{scroll(){this.maybeMeasure()}}});function En(t,e){let i=parseInt(t.style.left,10);if(isNaN(i)||Math.abs(e-i)>1)t.style.left=e+"px"}const Rn=no.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:`${7}px`,width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:`${7}px solid transparent`,borderRight:`${7}px solid transparent`},".cm-tooltip-above &":{bottom:`-${7}px`,"&:before":{borderTop:`${7}px solid #bbb`},"&:after":{borderTop:`${7}px solid #f5f5f5`,bottom:"1px"}},".cm-tooltip-below &":{top:`-${7}px`,"&:before":{borderBottom:`${7}px solid #bbb`},"&:after":{borderBottom:`${7}px solid #f5f5f5`,top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}});const Bn={x:0,y:0};const Ln=s.Facet.define({enables:[Tn,Rn]});const Pn=s.Facet.define({combine:t=>t.reduce(((t,e)=>t.concat(e)),[])});class Hn{static create(t){return new Hn(t)}constructor(t){this.view=t;this.mounted=false;this.dom=document.createElement("div");this.dom.classList.add("cm-tooltip-hover");this.manager=new Cn(t,Pn,((t,e)=>this.createHostedView(t,e)),(t=>t.dom.remove()))}createHostedView(t,e){let i=t.create(this.view);i.dom.classList.add("cm-tooltip-section");this.dom.insertBefore(i.dom,e?e.dom.nextSibling:this.dom.firstChild);if(this.mounted&&i.mount)i.mount(this.view);return i}mount(t){for(let e of this.manager.tooltipViews){if(e.mount)e.mount(t)}this.mounted=true}positioned(t){for(let e of this.manager.tooltipViews){if(e.positioned)e.positioned(t)}}update(t){this.manager.update(t)}destroy(){var t;for(let e of this.manager.tooltipViews)(t=e.destroy)===null||t===void 0?void 0:t.call(e)}passProp(t){let e=undefined;for(let i of this.manager.tooltipViews){let s=i[t];if(s!==undefined){if(e===undefined)e=s;else if(e!==s)return undefined}}return e}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const Nn=Ln.compute([Pn],(t=>{let e=t.facet(Pn);if(e.length===0)return null;return{pos:Math.min(...e.map((t=>t.pos))),end:Math.max(...e.map((t=>{var e;return(e=t.end)!==null&&e!==void 0?e:t.pos}))),create:Hn.create,above:e[0].above,arrow:e.some((t=>t.arrow))}}));class Vn{constructor(t,e,i,s,o){this.view=t;this.source=e;this.field=i;this.setHover=s;this.hoverTime=o;this.hoverTimeout=-1;this.restartTimeout=-1;this.pending=null;this.lastMove={x:0,y:0,target:t.dom,time:0};this.checkHover=this.checkHover.bind(this);t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this));t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){if(this.pending){this.pending=null;clearTimeout(this.restartTimeout);this.restartTimeout=setTimeout((()=>this.startHover()),20)}}get active(){return this.view.state.field(this.field)}checkHover(){this.hoverTimeout=-1;if(this.active.length)return;let t=Date.now()-this.lastMove.time;if(ti.bottom||e.xi.right+t.defaultCharacterWidth)return;let n=t.bidiSpans(t.state.doc.lineAt(s)).find((t=>t.from<=s&&t.to>=s));let r=n&&n.dir==Ft.RTL?-1:1;o=e.x{if(this.pending==e){this.pending=null;if(i&&!(Array.isArray(i)&&!i.length))t.dispatch({effects:this.setHover.of(Array.isArray(i)?i:[i])})}}),(e=>xe(t.state,e,"hover tooltip")))}else if(n&&!(Array.isArray(n)&&!n.length)){t.dispatch({effects:this.setHover.of(Array.isArray(n)?n:[n])})}}get tooltip(){let t=this.view.plugin(Tn);let e=t?t.manager.tooltips.findIndex((t=>t.create==Hn.create)):-1;return e>-1?t.manager.tooltipViews[e]:null}mousemove(t){var e,i;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()};if(this.hoverTimeout<0)this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime);let{active:s,tooltip:o}=this;if(s.length&&o&&!Wn(o.dom,t)||this.pending){let{pos:o}=s[0]||this.pending,n=(i=(e=s[0])===null||e===void 0?void 0:e.end)!==null&&i!==void 0?i:o;if(o==n?this.view.posAtCoords(this.lastMove)!=o:!zn(this.view,o,n,t.clientX,t.clientY)){this.view.dispatch({effects:this.setHover.of([])});this.pending=null}}}mouseleave(t){clearTimeout(this.hoverTimeout);this.hoverTimeout=-1;let{active:e}=this;if(e.length){let{tooltip:e}=this;let i=e&&e.dom.contains(t.relatedTarget);if(!i)this.view.dispatch({effects:this.setHover.of([])});else this.watchTooltipLeave(e.dom)}}watchTooltipLeave(t){let e=i=>{t.removeEventListener("mouseleave",e);if(this.active.length&&!this.view.dom.contains(i.relatedTarget))this.view.dispatch({effects:this.setHover.of([])})};t.addEventListener("mouseleave",e)}destroy(){clearTimeout(this.hoverTimeout);this.view.dom.removeEventListener("mouseleave",this.mouseleave);this.view.dom.removeEventListener("mousemove",this.mousemove)}}const Fn=4;function Wn(t,e){let{left:i,right:s,top:o,bottom:n}=t.getBoundingClientRect(),r;if(r=t.querySelector(".cm-tooltip-arrow")){let t=r.getBoundingClientRect();o=Math.min(t.top,o);n=Math.max(t.bottom,n)}return e.clientX>=i-Fn&&e.clientX<=s+Fn&&e.clientY>=o-Fn&&e.clientY<=n+Fn}function zn(t,e,i,s,o,n){let r=t.scrollDOM.getBoundingClientRect();let l=t.documentTop+t.documentPadding.top+t.contentHeight;if(r.left>s||r.righto||Math.min(r.bottom,l)=e&&a<=i}function In(t,e={}){let i=s.StateEffect.define();let o=s.StateField.define({create(){return[]},update(t,o){if(t.length){if(e.hideOnChange&&(o.docChanged||o.selection))t=[];else if(e.hideOn)t=t.filter((t=>!e.hideOn(o,t)));if(o.docChanged){let e=[];for(let i of t){let t=o.changes.mapPos(i.pos,-1,s.MapMode.TrackDel);if(t!=null){let s=Object.assign(Object.create(null),i);s.pos=t;if(s.end!=null)s.end=o.changes.mapPos(s.end);e.push(s)}}t=e}}for(let e of o.effects){if(e.is(i))t=e.value;if(e.is(Yn))t=[]}return t},provide:t=>Pn.from(t)});return{active:o,extension:[o,Ae.define((s=>new Vn(s,t,o,i,e.hoverTime||300))),Nn]}}function qn(t,e){let i=t.plugin(Tn);if(!i)return null;let s=i.manager.tooltips.indexOf(e);return s<0?null:i.manager.tooltipViews[s]}function Kn(t){return t.facet(Pn).some((t=>t))}const Yn=s.StateEffect.define();const _n=Yn.of(null);function Xn(t){let e=t.plugin(Tn);if(e)e.maybeMeasure()}const Gn=s.Facet.define({combine(t){let e,i;for(let s of t){e=e||s.topContainer;i=i||s.bottomContainer}return{topContainer:e,bottomContainer:i}}});function jn(t){return t?[Gn.of(t)]:[]}function $n(t,e){let i=t.plugin(Un);let s=i?i.specs.indexOf(e):-1;return s>-1?i.panels[s]:null}const Un=Ae.fromClass(class{constructor(t){this.input=t.state.facet(Zn);this.specs=this.input.filter((t=>t));this.panels=this.specs.map((e=>e(t)));let e=t.state.facet(Gn);this.top=new Qn(t,true,e.topContainer);this.bottom=new Qn(t,false,e.bottomContainer);this.top.sync(this.panels.filter((t=>t.top)));this.bottom.sync(this.panels.filter((t=>!t.top)));for(let i of this.panels){i.dom.classList.add("cm-panel");if(i.mount)i.mount()}}update(t){let e=t.state.facet(Gn);if(this.top.container!=e.topContainer){this.top.sync([]);this.top=new Qn(t.view,true,e.topContainer)}if(this.bottom.container!=e.bottomContainer){this.bottom.sync([]);this.bottom=new Qn(t.view,false,e.bottomContainer)}this.top.syncClasses();this.bottom.syncClasses();let i=t.state.facet(Zn);if(i!=this.input){let e=i.filter((t=>t));let s=[],o=[],n=[],r=[];for(let i of e){let e=this.specs.indexOf(i),l;if(e<0){l=i(t.view);r.push(l)}else{l=this.panels[e];if(l.update)l.update(t)}s.push(l);(l.top?o:n).push(l)}this.specs=e;this.panels=s;this.top.sync(o);this.bottom.sync(n);for(let t of r){t.dom.classList.add("cm-panel");if(t.mount)t.mount()}}else{for(let e of this.panels)if(e.update)e.update(t)}}destroy(){this.top.sync([]);this.bottom.sync([])}},{provide:t=>no.scrollMargins.of((e=>{let i=e.plugin(t);return i&&{top:i.top.scrollMargin(),bottom:i.bottom.scrollMargin()}}))});class Qn{constructor(t,e,i){this.view=t;this.top=e;this.container=i;this.dom=undefined;this.classes="";this.panels=[];this.syncClasses()}sync(t){for(let e of this.panels)if(e.destroy&&t.indexOf(e)<0)e.destroy();this.panels=t;this.syncDOM()}syncDOM(){if(this.panels.length==0){if(this.dom){this.dom.remove();this.dom=undefined}return}if(!this.dom){this.dom=document.createElement("div");this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom";this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let t=this.dom.firstChild;for(let e of this.panels){if(e.dom.parentNode==this.dom){while(t!=e.dom)t=Jn(t);t=t.nextSibling}else{this.dom.insertBefore(e.dom,t)}}while(t)t=Jn(t)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!this.container||this.classes==this.view.themeClasses)return;for(let t of this.classes.split(" "))if(t)this.container.classList.remove(t);for(let t of(this.classes=this.view.themeClasses).split(" "))if(t)this.container.classList.add(t)}}function Jn(t){let e=t.nextSibling;t.remove();return e}const Zn=s.Facet.define({enables:Un});function tr(t,e){let i;let o=new Promise((t=>i=t));let n=t=>nr(t,e,i);if(t.state.field(ir,false)){t.dispatch({effects:sr.of(n)})}else{t.dispatch({effects:s.StateEffect.appendConfig.of(ir.init((()=>[n])))})}let r=or.of(n);return{close:r,result:o.then((e=>{let i=t.win.queueMicrotask||(e=>t.win.setTimeout(e,10));i((()=>{if(t.state.field(ir).indexOf(n)>-1)t.dispatch({effects:r})}));return e}))}}function er(t,e){let i=t.state.field(ir,false)||[];for(let s of i){let i=$n(t,s);if(i&&i.dom.classList.contains(e))return i}return null}const ir=s.StateField.define({create(){return[]},update(t,e){for(let i of e.effects){if(i.is(sr))t=[i.value].concat(t);else if(i.is(or))t=t.filter((t=>t!=i.value))}return t},provide:t=>Zn.computeN([t],(e=>e.field(t)))});const sr=s.StateEffect.define();const or=s.StateEffect.define();function nr(t,e,i){let s=e.content?e.content(t,(()=>r(null))):null;if(!s){s=(0,g.A)("form");if(e.input){let t=(0,g.A)("input",e.input);if(/^(text|password|number|email|tel|url)$/.test(t.type))t.classList.add("cm-textfield");if(!t.name)t.name="input";s.appendChild((0,g.A)("label",(e.label||"")+": ",t))}else{s.appendChild(document.createTextNode(e.label||""))}s.appendChild(document.createTextNode(" "));s.appendChild((0,g.A)("button",{class:"cm-button",type:"submit"},e.submitLabel||"OK"))}let o=s.nodeName=="FORM"?[s]:s.querySelectorAll("form");for(let l=0;l{if(e.keyCode==27){e.preventDefault();r(null)}else if(e.keyCode==13){e.preventDefault();r(t)}}));t.addEventListener("submit",(e=>{e.preventDefault();r(t)}))}let n=(0,g.A)("div",s,(0,g.A)("button",{onclick:()=>r(null),"aria-label":t.state.phrase("close"),class:"cm-dialog-close",type:"button"},["×"]));if(e.class)n.className=e.class;n.classList.add("cm-dialog");function r(e){if(n.contains(n.ownerDocument.activeElement))t.focus();i(e)}return{dom:n,top:e.top,mount:()=>{if(e.focus){let t;if(typeof e.focus=="string")t=s.querySelector(e.focus);else t=s.querySelector("input")||s.querySelector("button");if(t&&"select"in t)t.select();else if(t&&"focus"in t)t.focus()}}}}class rr extends s.RangeValue{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return false}destroy(t){}}rr.prototype.elementClass="";rr.prototype.toDOM=undefined;rr.prototype.mapMode=s.MapMode.TrackBefore;rr.prototype.startSide=rr.prototype.endSide=-1;rr.prototype.point=true;const lr=s.Facet.define();const ar=s.Facet.define();const hr={class:"",renderEmptyElements:false,elementStyle:"",markers:()=>s.RangeSet.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"};const fr=s.Facet.define();function cr(t){return[ur(),fr.of({...hr,...t})]}const dr=s.Facet.define({combine:t=>t.some((t=>t))});function ur(t){let e=[pr];if(t&&t.fixed===false)e.push(dr.of(true));return e}const pr=Ae.fromClass(class{constructor(t){this.view=t;this.domAfter=null;this.prevViewport=t.viewport;this.dom=document.createElement("div");this.dom.className="cm-gutters cm-gutters-before";this.dom.setAttribute("aria-hidden","true");this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px";this.gutters=t.state.facet(fr).map((e=>new vr(t,e)));this.fixed=!t.state.facet(dr);for(let e of this.gutters){if(e.config.side=="after")this.getDOMAfter().appendChild(e.dom);else this.dom.appendChild(e.dom)}if(this.fixed){this.dom.style.position="sticky"}this.syncGutters(false);t.scrollDOM.insertBefore(this.dom,t.contentDOM)}getDOMAfter(){if(!this.domAfter){this.domAfter=document.createElement("div");this.domAfter.className="cm-gutters cm-gutters-after";this.domAfter.setAttribute("aria-hidden","true");this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px";this.domAfter.style.position=this.fixed?"sticky":"";this.view.scrollDOM.appendChild(this.domAfter)}return this.domAfter}update(t){if(this.updateGutters(t)){let e=this.prevViewport,i=t.view.viewport;let s=Math.min(e.to,i.to)-Math.max(e.from,i.from);this.syncGutters(s<(i.to-i.from)*.8)}if(t.geometryChanged){let t=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=t;if(this.domAfter)this.domAfter.style.minHeight=t}if(this.view.state.facet(dr)!=!this.fixed){this.fixed=!this.fixed;this.dom.style.position=this.fixed?"sticky":"";if(this.domAfter)this.domAfter.style.position=this.fixed?"sticky":""}this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;if(t){this.dom.remove();if(this.domAfter)this.domAfter.remove()}let i=s.RangeSet.iter(this.view.state.facet(lr),this.view.viewport.from);let o=[];let n=this.gutters.map((t=>new wr(t,this.view.viewport,-this.view.documentPadding.top)));for(let s of this.view.viewportLineBlocks){if(o.length)o=[];if(Array.isArray(s.type)){let t=true;for(let e of s.type){if(e.type==Ct.Text&&t){mr(i,o,e.from);for(let t of n)t.line(this.view,e,o);t=false}else if(e.widget){for(let t of n)t.widget(this.view,e)}}}else if(s.type==Ct.Text){mr(i,o,s.from);for(let t of n)t.line(this.view,s,o)}else if(s.widget){for(let t of n)t.widget(this.view,s)}}for(let s of n)s.finish();if(t){this.view.scrollDOM.insertBefore(this.dom,e);if(this.domAfter)this.view.scrollDOM.appendChild(this.domAfter)}}updateGutters(t){let e=t.startState.facet(fr),i=t.state.facet(fr);let o=t.docChanged||t.heightChanged||t.viewportChanged||!s.RangeSet.eq(t.startState.facet(lr),t.state.facet(lr),t.view.viewport.from,t.view.viewport.to);if(e==i){for(let e of this.gutters)if(e.update(t))o=true}else{o=true;let s=[];for(let o of i){let i=e.indexOf(o);if(i<0){s.push(new vr(this.view,o))}else{this.gutters[i].update(t);s.push(this.gutters[i])}}for(let t of this.gutters){t.dom.remove();if(s.indexOf(t)<0)t.destroy()}for(let t of s){if(t.config.side=="after")this.getDOMAfter().appendChild(t.dom);else this.dom.appendChild(t.dom)}this.gutters=s}return o}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove();if(this.domAfter)this.domAfter.remove()}},{provide:t=>no.scrollMargins.of((e=>{let i=e.plugin(t);if(!i||i.gutters.length==0||!i.fixed)return null;let s=i.dom.offsetWidth*e.scaleX,o=i.domAfter?i.domAfter.offsetWidth*e.scaleX:0;return e.textDirection==Ft.LTR?{left:s,right:o}:{right:s,left:o}}))});function gr(t){return Array.isArray(t)?t:[t]}function mr(t,e,i){while(t.value&&t.from<=i){if(t.from==i)e.push(t.value);t.next()}}class wr{constructor(t,e,i){this.gutter=t;this.height=i;this.i=0;this.cursor=s.RangeSet.iter(t.markers,e.from)}addElement(t,e,i){let{gutter:s}=this,o=(e.top-this.height)/t.scaleY,n=e.height/t.scaleY;if(this.i==s.elements.length){let e=new br(t,n,o,i);s.elements.push(e);s.dom.appendChild(e.dom)}else{s.elements[this.i].update(t,n,o,i)}this.height=e.bottom;this.i++}line(t,e,i){let s=[];mr(this.cursor,s,e.from);if(i.length)s=s.concat(i);let o=this.gutter.config.lineMarker(t,e,s);if(o)s.unshift(o);let n=this.gutter;if(s.length==0&&!n.config.renderEmptyElements)return;this.addElement(t,e,s)}widget(t,e){let i=this.gutter.config.widgetMarker(t,e.widget,e),s=i?[i]:null;for(let o of t.state.facet(ar)){let i=o(t,e.widget,e);if(i)(s||(s=[])).push(i)}if(s)this.addElement(t,e,s)}finish(){let t=this.gutter;while(t.elements.length>this.i){let e=t.elements.pop();t.dom.removeChild(e.dom);e.destroy()}}}class vr{constructor(t,e){this.view=t;this.config=e;this.elements=[];this.spacer=null;this.dom=document.createElement("div");this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in e.domEventHandlers){this.dom.addEventListener(i,(s=>{let o=s.target,n;if(o!=this.dom&&this.dom.contains(o)){while(o.parentNode!=this.dom)o=o.parentNode;let t=o.getBoundingClientRect();n=(t.top+t.bottom)/2}else{n=s.clientY}let r=t.lineBlockAtHeight(n-t.documentTop);if(e.domEventHandlers[i](t,r,s))s.preventDefault()}))}this.markers=gr(e.markers(t));if(e.initialSpacer){this.spacer=new br(t,0,0,[e.initialSpacer(t)]);this.dom.appendChild(this.spacer.dom);this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none"}}update(t){let e=this.markers;this.markers=gr(this.config.markers(t.view));if(this.spacer&&this.config.updateSpacer){let e=this.config.updateSpacer(this.spacer.markers[0],t);if(e!=this.spacer.markers[0])this.spacer.update(t.view,0,0,[e])}let i=t.view.viewport;return!s.RangeSet.eq(this.markers,e,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(t):false)}destroy(){for(let t of this.elements)t.destroy()}}class br{constructor(t,e,i,s){this.height=-1;this.above=0;this.markers=[];this.dom=document.createElement("div");this.dom.className="cm-gutterElement";this.update(t,e,i,s)}update(t,e,i,s){if(this.height!=e){this.height=e;this.dom.style.height=e+"px"}if(this.above!=i)this.dom.style.marginTop=(this.above=i)?i+"px":"";if(!yr(this.markers,s))this.setMarkers(t,s)}setMarkers(t,e){let i="cm-gutterElement",s=this.dom.firstChild;for(let o=0,n=0;;){let r=n,l=ot(e,i,s)||o(e,i,s):o}return i}})}});class Cr extends rr{constructor(t){super();this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function kr(t,e){return t.state.facet(Mr).formatNumber(e,t.state)}const Ar=fr.compute([Mr],(t=>({class:"cm-lineNumbers",renderEmptyElements:false,markers(t){return t.state.facet(Sr)},lineMarker(t,e,i){if(i.some((t=>t.toDOM)))return null;return new Cr(kr(t,t.state.doc.lineAt(e.from).number))},widgetMarker:(t,e,i)=>{for(let s of t.state.facet(xr)){let o=s(t,e,i);if(o)return o}return null},lineMarkerChange:t=>t.startState.facet(Mr)!=t.state.facet(Mr),initialSpacer(t){return new Cr(kr(t,Or(t.state.doc.lines)))},updateSpacer(t,e){let i=kr(e.view,Or(e.view.state.doc.lines));return i==t.number?t:new Cr(i)},domEventHandlers:t.facet(Mr).domEventHandlers,side:"before"})));function Dr(t={}){return[Mr.of(t),ur(),Ar]}function Or(t){let e=9;while(e{let e=[],i=-1;for(let s of t.selection.ranges){let o=t.doc.lineAt(s.head).from;if(o>i){i=o;e.push(Tr.range(o))}}return s.RangeSet.of(e)}));function Rr(){return Er}function Br(t){return Ae.define((e=>({decorations:t.createDeco(e),update(e){this.decorations=t.updateDeco(e,this.decorations)}})),{decorations:t=>t.decorations})}const Lr=kt.mark({class:"cm-highlightTab"});const Pr=kt.mark({class:"cm-highlightSpace"});const Hr=Br(new Xo({regexp:/\t| /g,decoration:t=>t[0]=="\t"?Lr:Pr,boundary:/\S/}));function Nr(){return Hr}const Vr=Br(new Xo({regexp:/\s+$/g,decoration:kt.mark({class:"cm-trailingSpace"})}));function Fr(){return Vr}const Wr={HeightMap:bs,HeightOracle:ps,MeasuredHeights:gs,QueryType:ws,ChangedRange:Fe,computeOrder:ie,moveVisually:ne,clearHeightChangeFlag:us,getHeightChangeFlag:()=>ds}},41107:(t,e,i)=>{i.d(e,{A:()=>s});function s(){var t=arguments[0];if(typeof t=="string")t=document.createElement(t);var e=1,i=arguments[1];if(i&&typeof i=="object"&&i.nodeType==null&&!Array.isArray(i)){for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)){var n=i[s];if(typeof n=="string")t.setAttribute(s,n);else if(n!=null)t[s]=n}e++}for(;e{n.r(t);n.d(t,{commonmarkLanguage:()=>Je,deleteMarkupBackward:()=>ut,insertNewlineContinueMarkup:()=>lt,markdown:()=>pt,markdownKeymap:()=>ct,markdownLanguage:()=>Ye});var r=n(71674);var s=n(22819);var i=n(4452);var l=n(75128);var o=n(66575);var a=n(45145);class h{static create(e,t,n,r,s){let i=r+(r<<8)+e+(t<<4)|0;return new h(e,t,n,i,s,[],[])}constructor(e,t,n,r,s,i,l){this.type=e;this.value=t;this.from=n;this.hash=r;this.end=s;this.children=i;this.positions=l;this.hashProp=[[o.NodeProp.contextHash,r]]}addChild(e,t){if(e.prop(o.NodeProp.contextHash)!=this.hash)e=new o.Tree(e.type,e.children,e.positions,e.length,this.hashProp);this.children.push(e);this.positions.push(t)}toTree(e,t=this.end){let n=this.children.length-1;if(n>=0)t=Math.max(t,this.positions[n]+this.children[n].length+this.from);return new o.Tree(e.types[this.type],this.children,this.positions,t-this.from).balance({makeTree:(e,t,n)=>new o.Tree(o.NodeType.none,e,t,n,this.hashProp)})}}var f;(function(e){e[e["Document"]=1]="Document";e[e["CodeBlock"]=2]="CodeBlock";e[e["FencedCode"]=3]="FencedCode";e[e["Blockquote"]=4]="Blockquote";e[e["HorizontalRule"]=5]="HorizontalRule";e[e["BulletList"]=6]="BulletList";e[e["OrderedList"]=7]="OrderedList";e[e["ListItem"]=8]="ListItem";e[e["ATXHeading1"]=9]="ATXHeading1";e[e["ATXHeading2"]=10]="ATXHeading2";e[e["ATXHeading3"]=11]="ATXHeading3";e[e["ATXHeading4"]=12]="ATXHeading4";e[e["ATXHeading5"]=13]="ATXHeading5";e[e["ATXHeading6"]=14]="ATXHeading6";e[e["SetextHeading1"]=15]="SetextHeading1";e[e["SetextHeading2"]=16]="SetextHeading2";e[e["HTMLBlock"]=17]="HTMLBlock";e[e["LinkReference"]=18]="LinkReference";e[e["Paragraph"]=19]="Paragraph";e[e["CommentBlock"]=20]="CommentBlock";e[e["ProcessingInstructionBlock"]=21]="ProcessingInstructionBlock";e[e["Escape"]=22]="Escape";e[e["Entity"]=23]="Entity";e[e["HardBreak"]=24]="HardBreak";e[e["Emphasis"]=25]="Emphasis";e[e["StrongEmphasis"]=26]="StrongEmphasis";e[e["Link"]=27]="Link";e[e["Image"]=28]="Image";e[e["InlineCode"]=29]="InlineCode";e[e["HTMLTag"]=30]="HTMLTag";e[e["Comment"]=31]="Comment";e[e["ProcessingInstruction"]=32]="ProcessingInstruction";e[e["Autolink"]=33]="Autolink";e[e["HeaderMark"]=34]="HeaderMark";e[e["QuoteMark"]=35]="QuoteMark";e[e["ListMark"]=36]="ListMark";e[e["LinkMark"]=37]="LinkMark";e[e["EmphasisMark"]=38]="EmphasisMark";e[e["CodeMark"]=39]="CodeMark";e[e["CodeText"]=40]="CodeText";e[e["CodeInfo"]=41]="CodeInfo";e[e["LinkTitle"]=42]="LinkTitle";e[e["LinkLabel"]=43]="LinkLabel";e[e["URL"]=44]="URL"})(f||(f={}));class u{constructor(e,t){this.start=e;this.content=t;this.marks=[];this.parsers=[]}}class c{constructor(){this.text="";this.baseIndent=0;this.basePos=0;this.depth=0;this.markers=[];this.pos=0;this.indent=0;this.next=-1}forward(){if(this.basePos>this.pos)this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent);this.pos=e;this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return m(this.text,e)}reset(e){this.text=e;this.baseIndent=this.basePos=this.pos=this.indent=0;this.forwardInner();this.depth=1;while(this.markers.length)this.markers.pop()}moveBase(e){this.basePos=e;this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e;this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,t=0,n=0){for(let r=t;r=t.stack[n.depth+1].value+n.baseIndent)return true;if(n.indent>=n.baseIndent+4)return false;let r=(e.type==f.OrderedList?C:S)(n,t,false);return r>0&&(e.type!=f.BulletList||b(n,t,false)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}const p={[f.Blockquote](e,t,n){if(n.next!=62)return false;n.markers.push(J(f.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1));n.moveBase(n.pos+(g(n.text.charCodeAt(n.pos+1))?2:1));e.end=t.lineStart+n.text.length;return true},[f.ListItem](e,t,n){if(n.indent-1)return false;n.moveBaseColumn(n.baseIndent+e.value);return true},[f.OrderedList]:d,[f.BulletList]:d,[f.Document](){return true}};function g(e){return e==32||e==9||e==10||e==13}function m(e,t=0){while(tn&&g(e.charCodeAt(t-1)))t--;return t}function x(e){if(e.next!=96&&e.next!=126)return-1;let t=e.pos+1;while(t-1&&e.depth==t.stack.length)return-1;return r<3?-1:1}function w(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return true;return false}function S(e,t,n){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||g(e.text.charCodeAt(e.pos+1)))&&(!n||w(t,f.BulletList)||e.skipSpace(e.pos+2)=48&&s<=57)r++;else break;if(r==e.text.length)return-1;s=e.text.charCodeAt(r)}if(r==e.pos||r>e.pos+9||s!=46&&s!=41||re.pos+1||e.next!=49))return-1;return r+1-e.pos}function y(e){if(e.next!=35)return-1;let t=e.pos+1;while(t6?-1:n}function T(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;while(t/,B=/\?>/;const E=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(r);if(i)return e.append(J(f.Comment,n,n+1+i[0].length));let l=/^\?[^]*?\?>/.exec(r);if(l)return e.append(J(f.ProcessingInstruction,n,n+1+l[0].length));let o=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);if(!o)return-1;return e.append(J(f.HTMLTag,n,n+1+o[0].length))},Emphasis(e,t,n){if(t!=95&&t!=42)return-1;let r=n+1;while(e.char(r)==t)r++;let s=e.slice(n-1,n),i=e.slice(r,r+1);let l=se.test(s),o=se.test(i);let a=/\s|^$/.test(s),h=/\s|^$/.test(i);let f=!h&&(!o||a||l);let u=!a&&(!l||h||o);let c=f&&(t==42||!u||l);let d=u&&(t==42||!f||o);return e.append(new ne(t==95?W:Y,n,r,(c?1:0)|(d?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(J(f.HardBreak,n,n+2));if(t==32){let t=n+1;while(e.char(t)==32)t++;if(e.char(t)==10&&t>=n+2)return e.append(J(f.HardBreak,n,t+1))}return-1},Link(e,t,n){return t==91?e.append(new ne(ee,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new ne(te,n,n+2,1)):-1},LinkEnd(e,t,n){if(t!=93)return-1;for(let r=e.parts.length-1;r>=0;r--){let t=e.parts[r];if(t instanceof ne&&(t.type==ee||t.type==te)){if(!t.side||e.skipSpace(t.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2))){e.parts[r]=null;return-1}let s=e.takeContent(r);let i=e.parts[r]=le(e,s,t.type==ee?f.Link:f.Image,t.from,n+1);if(t.type==ee)for(let t=0;tt?J(f.URL,t+n,s+n):s==e.length?null:false}}function ae(e,t,n){let r=e.charCodeAt(t);if(r!=39&&r!=34&&r!=40)return false;let s=r==40?41:r;for(let i=t+1,l=false;i=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){this.parts.push(e);return e.to}addDelimiter(e,t,n,r,s){return this.append(new ne(e,t,n,(r?1:0)|(s?2:0)))}get hasOpenLink(){for(let e=this.parts.length-1;e>=0;e--){let t=this.parts[e];if(t instanceof ne&&(t.type==ee||t.type==te))return true}return false}addElement(e){return this.append(e)}resolveMarkers(e){for(let n=e;n=e;l--){let e=this.parts[l];if(e instanceof ne&&e.side&1&&e.type==t.type&&!(r&&(t.side&1||e.side&2)&&(e.to-e.from+s)%3==0&&((e.to-e.from)%3||s%3))){i=e;break}}if(!i)continue;let o=t.type.resolve,a=[];let h=i.from,f=t.to;if(r){let e=Math.min(2,i.to-i.from,s);h=i.to-e;f=t.from+e;o=e==1?"Emphasis":"StrongEmphasis"}if(i.type.mark)a.push(this.elt(i.type.mark,h,i.to));for(let e=l+1;e=0;t--){let n=this.parts[t];if(n instanceof ne&&n.type==e)return t}return null}takeContent(e){let t=this.resolveMarkers(e);this.parts.length=e;return t}skipSpace(e){return m(this.text,e-this.offset)+this.offset}elt(e,t,n,r){if(typeof e=="string")return J(this.parser.getNodeType(e),t,n,r);return new K(e,t)}}function ue(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let s of t){while(r(e?e-1:0))return false;if(this.fragmentEnd<0){let e=this.fragment.to;while(e>0&&this.input.read(e-1,e)!="\n")e--;this.fragmentEnd=e?e-1:0}let n=this.cursor;if(!n){n=this.cursor=this.fragment.tree.cursor();n.firstChild()}let r=e+this.fragment.offset;while(n.to<=r)if(!n.parent())return false;for(;;){if(n.from>=r)return this.fragment.from<=t;if(!n.childAfter(r))return false}}matches(e){let t=this.cursor.tree;return t&&t.prop(o.NodeProp.contextHash)==e}takeNodes(e){let t=this.cursor,n=this.fragment.offset,r=this.fragmentEnd-(this.fragment.openEnd?1:0);let s=e.absoluteLineStart,i=s,l=e.block.children.length;let a=i,h=l;for(;;){if(t.to-n>r){if(t.type.isAnonymous&&t.firstChild())continue;break}let s=pe(t.from-n,e.ranges);if(t.to-n<=e.ranges[e.rangeI].to){e.addNode(t.tree,s)}else{let n=new o.Tree(e.parser.nodeSet.types[f.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(n,t.tree);e.addNode(n,s)}if(t.type.is("Block")){if(ce.indexOf(t.type.id)<0){i=t.to-n;l=e.block.children.length}else{i=a;l=h;a=t.to-n;h=e.block.children.length}}if(!t.nextSibling())break}while(e.block.children.length>l){e.block.children.pop();e.block.positions.pop()}return i-s}}function pe(e,t){let n=e;for(let r=1;rv[e])),Object.keys(v).map((e=>X[e])),Object.keys(v),z,p,Object.keys(ie).map((e=>ie[e])),Object.keys(ie),[]);function ke(e,t,n){let r=[];for(let s=e.firstChild,i=t;;s=s.nextSibling){let e=s?s.from:n;if(e>i)r.push({from:i,to:e});if(!s)break;i=s.to}return r}function xe(e){let{codeParser:t,htmlParser:n}=e;let r=(0,o.parseMixed)(((e,r)=>{let s=e.type.id;if(t&&(s==f.CodeBlock||s==f.FencedCode)){let n="";if(s==f.FencedCode){let t=e.node.getChild(f.CodeInfo);if(t)n=r.read(t.from,t.to)}let i=t(n);if(i)return{parser:i,overlay:e=>e.type.id==f.CodeText}}else if(n&&(s==f.HTMLBlock||s==f.HTMLTag)){return{parser:n,overlay:ke(e.node,e.from,e.to)}}return null}));return{wrap:r}}const Le={resolve:"Strikethrough",mark:"StrikethroughMark"};const be={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":a.tags.strikethrough}},{name:"StrikethroughMark",style:a.tags.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),s=e.slice(n+2,n+3);let i=/\s|^$/.test(r),l=/\s|^$/.test(s);let o=se.test(r),a=se.test(s);return e.addDelimiter(Le,n,n+2,!l&&(!a||i||o),!i&&(!o||l||a))},after:"Emphasis"}]};function we(e,t,n=0,r,s=0){let i=0,l=true,o=-1,a=-1,h=false;let f=()=>{r.push(e.elt("TableCell",s+o,s+a,e.parser.parseInline(t.slice(o,a),s+o)))};for(let u=n;u-1)i++;l=false;if(r){if(o>-1)f();r.push(e.elt("TableDelimiter",u+s,u+s+1))}o=a=-1}else if(h||n!=32&&n!=9){if(o<0)o=u;a=u+1}h=!h&&n==92}if(o>-1){i++;if(r)f()}return i}function Se(e,t){for(let n=t;ne instanceof ye))||!Se(t.text,t.basePos))return false;let r=e.scanLine(e.absoluteLineEnd+1).text;return Ce.test(r)&&we(e,t.text,t.basePos)==we(e,r,t.basePos)},before:"SetextHeading"}]};class Ae{nextLine(){return false}finish(e,t){e.addLeafElement(t,e.elt("Task",t.start,t.start+t.content.length,[e.elt("TaskMarker",t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)]));return true}}const Ie={defineNodes:[{name:"Task",block:true,style:a.tags.list},{name:"TaskMarker",style:a.tags.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name=="ListItem"?new Ae:null},after:"SetextHeading"}]};const Be=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy;const Ee=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy;const Me=/[\w-]+\.[\w-]+($|\/)/;const Pe=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy;const He=/\/[a-zA-Z\d@.]+/gy;function ve(e,t,n,r){let s=0;for(let i=t;i-1)return-1;let r=t+n[0].length;for(;;){let n=e[r-1],s;if(/[?!.,:*_~]/.test(n)||n==")"&&ve(e,t,r,")")>ve(e,t,r,"("))r--;else if(n==";"&&(s=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+s.index;else break}return r}function Oe(e,t){Pe.lastIndex=t;let n=Pe.exec(e);if(!n)return-1;let r=n[0][n[0].length-1];return r=="_"||r=="-"?-1:t+n[0].length-(r=="."?1:0)}const Re={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;Be.lastIndex=r;let s=Be.exec(e.text),i=-1;if(!s)return-1;if(s[1]||s[2]){i=Ne(e.text,r+s[0].length);if(i>-1&&e.hasOpenLink){let t=/([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(r,i));i=r+t[0].length}}else if(s[3]){i=Oe(e.text,r)}else{i=Oe(e.text,r+s[0].length);if(i>-1&&s[0]=="xmpp:"){He.lastIndex=i;s=He.exec(e.text);if(s)i=s.index+s[0].length}}if(i<0)return-1;e.addElement(e.elt("URL",n,i+e.offset));return i+e.offset}}]};const Xe=[Te,Ie,be,Re];function ze(e,t,n){return(r,s,i)=>{if(s!=e||r.char(i+1)==e)return-1;let l=[r.elt(n,i,i+1)];for(let o=i+1;o!e.is("Block")||e.is("Document")||Qe(e)!=null||Ze(e)?undefined:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to}))),qe.add(Qe),i.indentNodeProp.add({Document:()=>null}),i.languageDataProp.add({Document:je})]});function Qe(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:undefined}function Ze(e){return e.name=="OrderedList"||e.name=="BulletList"}function Ve(e,t){let n=e;for(;;){let e=n.nextSibling,r;if(!e||(r=Qe(e.type))!=null&&r<=t)break;n=e}return n.to}const Ge=i.foldService.of(((e,t,n)=>{for(let r=(0,i.syntaxTree)(e).resolveInner(n,-1);r;r=r.parent){if(r.fromn)return{from:n,to:s}}return null}));function Ke(e){return new i.Language(je,e,[Ge],"markdown")}const Je=Ke(Ue);const We=Ue.configure([Xe,$e,De,_e,{props:[i.foldNodeProp.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]);const Ye=Ke(We);function et(e,t){return n=>{if(n&&e){let t=null;n=/\S*/.exec(n)[0];if(typeof e=="function")t=e(n);else t=i.LanguageDescription.matchLanguageName(e,n,true);if(t instanceof i.LanguageDescription)return t.support?t.support.language.parser:i.ParseContext.getSkippingParser(t.load());else if(t)return t.parser}return t?t.parser:null}}class tt{constructor(e,t,n,r,s,i,l){this.node=e;this.from=t;this.to=n;this.spaceBefore=r;this.spaceAfter=s;this.type=i;this.item=l}blank(e,t=true){let n=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){while(n.length0;e--)n+=" ";return n+(t?this.spaceAfter:"")}}marker(e,t){let n=this.node.name=="OrderedList"?String(+rt(this.item,e)[2]+t):"";return this.spaceBefore+n+this.type+this.spaceAfter}}function nt(e,t){let n=[],r=[];for(let s=e;s;s=s.parent){if(s.name=="FencedCode")return r;if(s.name=="ListItem"||s.name=="Blockquote")n.push(s)}for(let s=n.length-1;s>=0;s--){let e=n[s],i;let l=t.lineAt(e.from),o=e.from-l.from;if(e.name=="Blockquote"&&(i=/^ *>( ?)/.exec(l.text.slice(o)))){r.push(new tt(e,o,o+i[0].length,"",i[1],">",null))}else if(e.name=="ListItem"&&e.parent.name=="OrderedList"&&(i=/^( *)\d+([.)])( *)/.exec(l.text.slice(o)))){let t=i[3],n=i[0].length;if(t.length>=4){t=t.slice(0,t.length-4);n-=4}r.push(new tt(e.parent,o,o+n,i[1],t,i[2],e))}else if(e.name=="ListItem"&&e.parent.name=="BulletList"&&(i=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(l.text.slice(o)))){let t=i[4],n=i[0].length;if(t.length>4){t=t.slice(0,t.length-4);n-=4}let s=i[2];if(i[3])s+=i[3].replace(/[xX]/," ");r.push(new tt(e.parent,o,o+n,i[1],t,s,e))}}return r}function rt(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function st(e,t,n,r=0){for(let s=-1,i=e;;){if(i.name=="ListItem"){let e=rt(i,t);let l=+e[2];if(s>=0){if(l!=s+1)return;n.push({from:i.from+e[1].length,to:i.from+e[0].length,insert:String(s+2+r)})}s=l}let e=i.nextSibling;if(!e)break;i=e}}function it(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(i.indentUnit)!="\t")return e;let s=(0,r.countColumn)(e,4,n);let l="";for(let r=s;r>0;){if(r>=4){l+="\t";r-=4}else{l+=" ";r--}}return l+e.slice(n)}const lt=({state:e,dispatch:t})=>{let n=(0,i.syntaxTree)(e),{doc:s}=e;let l=null,o=e.changeByRange((t=>{if(!t.empty||!Ye.isActiveAt(e,t.from,0))return l={range:t};let i=t.from,o=s.lineAt(i);let a=nt(n.resolveInner(i,-1),s);while(a.length&&a[a.length-1].from>i-o.from)a.pop();if(!a.length)return l={range:t};let h=a[a.length-1];if(h.to-h.spaceAfter.length>i-o.from)return l={range:t};let f=i>=h.to-h.spaceAfter.length&&!/\S/.test(o.text.slice(h.to));if(h.item&&f){let t=h.node.firstChild,n=h.node.getChild("ListItem","ListItem");if(t.to>=i||n&&n.to0&&!/[^\s>]/.test(s.lineAt(o.from-1).text)){let e=a.length>1?a[a.length-2]:null;let t,n="";if(e&&e.item){t=o.from+e.from;n=e.marker(s,1)}else{t=o.from+(e?e.to:0)}let l=[{from:t,to:i,insert:n}];if(h.node.name=="OrderedList")st(h.item,s,l,-2);if(e&&e.node.name=="OrderedList")st(e.item,s,l);return{range:r.EditorSelection.cursor(t+n.length),changes:l}}else{let t=ht(a,e,o);return{range:r.EditorSelection.cursor(i+t.length+1),changes:{from:o.from,insert:t+e.lineBreak}}}}if(h.node.name=="Blockquote"&&f&&o.from){let n=s.lineAt(o.from-1),r=/>\s*$/.exec(n.text);if(r&&r.index==h.from){let s=e.changes([{from:n.from+r.index,to:n.to},{from:o.from+h.from,to:o.to}]);return{range:t.map(s),changes:s}}}let u=[];if(h.node.name=="OrderedList")st(h.item,s,u);let c=h.item&&h.item.from]*/.exec(o.text)[0].length>=h.to){for(let e=0,t=a.length-1;e<=t;e++){d+=e==t&&!c?a[e].marker(s,1):a[e].blank(eo.from&&/\s/.test(o.text.charAt(p-o.from-1)))p--;d=it(d,e);if(at(h.node,e.doc))d=ht(a,e,o)+e.lineBreak+d;u.push({from:p,to:i,insert:e.lineBreak+d});return{range:r.EditorSelection.cursor(p+d.length+1),changes:u}}));if(l)return false;t(e.update(o,{scrollIntoView:true,userEvent:"input"}));return true};function ot(e){return e.name=="QuoteMark"||e.name=="ListMark"}function at(e,t){if(e.name!="OrderedList"&&e.name!="BulletList")return false;let n=e.firstChild,r=e.getChild("ListItem","ListItem");if(!r)return false;let s=t.lineAt(n.to),i=t.lineAt(r.from);let l=/^[\s>]*$/.test(s.text);return s.number+(l?0:1){let n=(0,i.syntaxTree)(e);let s=null,l=e.changeByRange((t=>{let i=t.from,{doc:l}=e;if(t.empty&&Ye.isActiveAt(e,t.from)){let t=l.lineAt(i);let s=nt(ft(n,i),l);if(s.length){let n=s[s.length-1];let l=n.to-n.spaceAfter.length+(n.spaceAfter?1:0);if(i-t.from>l&&!/\S/.test(t.text.slice(l,i-t.from)))return{range:r.EditorSelection.cursor(t.from+l),changes:{from:t.from+l,to:i}};if(i-t.from==l&&(!n.item||t.from<=n.item.from||!/\S/.test(t.text.slice(0,n.to)))){let s=t.from+n.from;if(n.item&&n.node.from{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/share/jupyter/lab/static/9400.90fd1d2212781c80b587.js b/share/jupyter/lab/static/9400.90fd1d2212781c80b587.js new file mode 100644 index 0000000..8187835 --- /dev/null +++ b/share/jupyter/lab/static/9400.90fd1d2212781c80b587.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9400],{42519: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.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&o>=t.length)t=void 0;return{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.HTMLAdaptor=void 0;var i=r(21747);var a=function(t){o(e,t);function e(e){var r=t.call(this,e.document)||this;r.window=e;r.parser=new e.DOMParser;return r}e.prototype.parse=function(t,e){if(e===void 0){e="text/html"}return this.parser.parseFromString(t,e)};e.prototype.create=function(t,e){return e?this.document.createElementNS(e,t):this.document.createElement(t)};e.prototype.text=function(t){return this.document.createTextNode(t)};e.prototype.head=function(t){return t.head||t};e.prototype.body=function(t){return t.body||t};e.prototype.root=function(t){return t.documentElement||t};e.prototype.doctype=function(t){return t.doctype?""):""};e.prototype.tags=function(t,e,r){if(r===void 0){r=null}var o=r?t.getElementsByTagNameNS(r,e):t.getElementsByTagName(e);return Array.from(o)};e.prototype.getElements=function(t,e){var r,o;var i=[];try{for(var a=n(t),u=a.next();!u.done;u=a.next()){var l=u.value;if(typeof l==="string"){i=i.concat(Array.from(this.document.querySelectorAll(l)))}else if(Array.isArray(l)){i=i.concat(Array.from(l))}else if(l instanceof this.window.NodeList||l instanceof this.window.HTMLCollection){i=i.concat(Array.from(l))}else{i.push(l)}}}catch(p){r={error:p}}finally{try{if(u&&!u.done&&(o=a.return))o.call(a)}finally{if(r)throw r.error}}return i};e.prototype.contains=function(t,e){return t.contains(e)};e.prototype.parent=function(t){return t.parentNode};e.prototype.append=function(t,e){return t.appendChild(e)};e.prototype.insert=function(t,e){return this.parent(e).insertBefore(t,e)};e.prototype.remove=function(t){return this.parent(t).removeChild(t)};e.prototype.replace=function(t,e){return this.parent(e).replaceChild(t,e)};e.prototype.clone=function(t){return t.cloneNode(true)};e.prototype.split=function(t,e){return t.splitText(e)};e.prototype.next=function(t){return t.nextSibling};e.prototype.previous=function(t){return t.previousSibling};e.prototype.firstChild=function(t){return t.firstChild};e.prototype.lastChild=function(t){return t.lastChild};e.prototype.childNodes=function(t){return Array.from(t.childNodes)};e.prototype.childNode=function(t,e){return t.childNodes[e]};e.prototype.kind=function(t){var e=t.nodeType;return e===1||e===3||e===8?t.nodeName.toLowerCase():""};e.prototype.value=function(t){return t.nodeValue||""};e.prototype.textContent=function(t){return t.textContent};e.prototype.innerHTML=function(t){return t.innerHTML};e.prototype.outerHTML=function(t){return t.outerHTML};e.prototype.serializeXML=function(t){var e=new this.window.XMLSerializer;return e.serializeToString(t)};e.prototype.setAttribute=function(t,e,r,o){if(o===void 0){o=null}if(!o){return t.setAttribute(e,r)}e=o.replace(/.*\//,"")+":"+e.replace(/^.*:/,"");return t.setAttributeNS(o,e,r)};e.prototype.getAttribute=function(t,e){return t.getAttribute(e)};e.prototype.removeAttribute=function(t,e){return t.removeAttribute(e)};e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)};e.prototype.allAttributes=function(t){return Array.from(t.attributes).map((function(t){return{name:t.name,value:t.value}}))};e.prototype.addClass=function(t,e){if(t.classList){t.classList.add(e)}else{t.className=(t.className+" "+e).trim()}};e.prototype.removeClass=function(t,e){if(t.classList){t.classList.remove(e)}else{t.className=t.className.split(/ /).filter((function(t){return t!==e})).join(" ")}};e.prototype.hasClass=function(t,e){if(t.classList){return t.classList.contains(e)}return t.className.split(/ /).indexOf(e)>=0};e.prototype.setStyle=function(t,e,r){t.style[e]=r};e.prototype.getStyle=function(t,e){return t.style[e]};e.prototype.allStyles=function(t){return t.style.cssText};e.prototype.insertRules=function(t,e){var r,o;try{for(var i=n(e.reverse()),a=i.next();!a.done;a=i.next()){var u=a.value;try{t.sheet.insertRule(u,0)}catch(l){console.warn("MathJax: can't insert css rule '".concat(u,"': ").concat(l.message))}}}catch(p){r={error:p}}finally{try{if(a&&!a.done&&(o=i.return))o.call(i)}finally{if(r)throw r.error}}};e.prototype.fontSize=function(t){var e=this.window.getComputedStyle(t);return parseFloat(e.fontSize)};e.prototype.fontFamily=function(t){var e=this.window.getComputedStyle(t);return e.fontFamily||""};e.prototype.nodeSize=function(t,e,r){if(e===void 0){e=1}if(r===void 0){r=false}if(r&&t.getBBox){var o=t.getBBox(),n=o.width,i=o.height;return[n/e,i/e]}return[t.offsetWidth/e,t.offsetHeight/e]};e.prototype.nodeBBox=function(t){var e=t.getBoundingClientRect(),r=e.left,o=e.right,n=e.top,i=e.bottom;return{left:r,right:o,top:n,bottom:i}};return e}(i.AbstractDOMAdaptor);e.HTMLAdaptor=a},59400:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:true});e.browserAdaptor=void 0;var o=r(42519);function n(){return new o.HTMLAdaptor(window)}e.browserAdaptor=n},21747:function(t,e){var r=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&o>=t.length)t=void 0;return{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.AbstractDOMAdaptor=void 0;var o=function(){function t(t){if(t===void 0){t=null}this.document=t}t.prototype.node=function(t,e,o,n){var i,a;if(e===void 0){e={}}if(o===void 0){o=[]}var u=this.create(t,n);this.setAttributes(u,e);try{for(var l=r(o),p=l.next();!p.done;p=l.next()){var s=p.value;this.append(u,s)}}catch(c){i={error:c}}finally{try{if(p&&!p.done&&(a=l.return))a.call(l)}finally{if(i)throw i.error}}return u};t.prototype.setAttributes=function(t,e){var o,n,i,a,u,l;if(e.style&&typeof e.style!=="string"){try{for(var p=r(Object.keys(e.style)),s=p.next();!s.done;s=p.next()){var c=s.value;this.setStyle(t,c.replace(/-([a-z])/g,(function(t,e){return e.toUpperCase()})),e.style[c])}}catch(v){o={error:v}}finally{try{if(s&&!s.done&&(n=p.return))n.call(p)}finally{if(o)throw o.error}}}if(e.properties){try{for(var f=r(Object.keys(e.properties)),y=f.next();!y.done;y=f.next()){var c=y.value;t[c]=e.properties[c]}}catch(m){i={error:m}}finally{try{if(y&&!y.done&&(a=f.return))a.call(f)}finally{if(i)throw i.error}}}try{for(var d=r(Object.keys(e)),h=d.next();!h.done;h=d.next()){var c=h.value;if((c!=="style"||typeof e.style==="string")&&c!=="properties"){this.setAttribute(t,c,e[c])}}}catch(b){u={error:b}}finally{try{if(h&&!h.done&&(l=d.return))l.call(d)}finally{if(u)throw u.error}}};t.prototype.replace=function(t,e){this.insert(t,e);this.remove(e);return e};t.prototype.childNode=function(t,e){return this.childNodes(t)[e]};t.prototype.allClasses=function(t){var e=this.getAttribute(t,"class");return!e?[]:e.replace(/ +/g," ").replace(/^ /,"").replace(/ $/,"").split(/ /)};return t}();e.AbstractDOMAdaptor=o}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/9474.01b4e1d1e3376f4a5919.js b/share/jupyter/lab/static/9474.01b4e1d1e3376f4a5919.js new file mode 100644 index 0000000..ad4f441 --- /dev/null +++ b/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/share/jupyter/lab/static/9517.7056cafdf1da3a136d45.js b/share/jupyter/lab/static/9517.7056cafdf1da3a136d45.js new file mode 100644 index 0000000..12eacf2 --- /dev/null +++ b/share/jupyter/lab/static/9517.7056cafdf1da3a136d45.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9517],{79517:(e,t,i)=>{i.r(t);i.d(t,{properties:()=>n});const n={name:"properties",token:function(e,t){var i=e.sol()||t.afterSection;var n=e.eol();t.afterSection=false;if(i){if(t.nextMultiline){t.inMultiline=true;t.nextMultiline=false}else{t.position="def"}}if(n&&!t.nextMultiline){t.inMultiline=false;t.position="def"}if(i){while(e.eatSpace()){}}var l=e.next();if(i&&(l==="#"||l==="!"||l===";")){t.position="comment";e.skipToEnd();return"comment"}else if(i&&l==="["){t.afterSection=true;e.skipTo("]");e.eat("]");return"header"}else if(l==="="||l===":"){t.position="quote";return null}else if(l==="\\"&&t.position==="quote"){if(e.eol()){t.nextMultiline=true}}return t.position},startState:function(){return{position:"def",nextMultiline:false,inMultiline:false,afterSection:false}}}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/9524.ac26d84557d238b77bc7.js b/share/jupyter/lab/static/9524.ac26d84557d238b77bc7.js new file mode 100644 index 0000000..71a9bc3 --- /dev/null +++ b/share/jupyter/lab/static/9524.ac26d84557d238b77bc7.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9524],{10628:(e,t,n)=>{n.d(t,{o:()=>r});var i=n(70416);var r=(0,i.K2)((()=>`\n /* Font Awesome icon styling - consolidated */\n .label-icon {\n display: inline-block;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n }\n \n .node .label-icon path {\n fill: currentColor;\n stroke: revert;\n stroke-width: revert;\n }\n`),"getIconStyles")},49524:(e,t,n)=>{n.d(t,{diagram:()=>F});var i=n(29479);var r=n(10628);var s=n(57028);var a=n(47655);var o=n(15164);var c=n(55750);var l=n(95035);var h=n(29131);var u=n(42418);var g=n(70416);var d=n(63170);var p=n(77470);var y=n(48750);var f=function(){var e=(0,g.K2)((function(e,t,n,i){for(n=n||{},i=e.length;i--;n[e[i]]=t);return n}),"o"),t=[1,4],n=[1,13],i=[1,12],r=[1,15],s=[1,16],a=[1,20],o=[1,19],c=[6,7,8],l=[1,26],h=[1,24],u=[1,25],d=[6,7,11],p=[1,31],y=[6,7,11,24],f=[1,6,13,16,17,20,23],b=[1,35],k=[1,36],m=[1,6,7,11,13,16,17,20,23],_=[1,38];var E={trace:(0,g.K2)((function e(){}),"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:(0,g.K2)((function e(t,n,i,r,s,a,o){var c=a.length-1;switch(s){case 6:case 7:return r;break;case 8:r.getLogger().trace("Stop NL ");break;case 9:r.getLogger().trace("Stop EOF ");break;case 11:r.getLogger().trace("Stop NL2 ");break;case 12:r.getLogger().trace("Stop EOF2 ");break;case 15:r.getLogger().info("Node: ",a[c-1].id);r.addNode(a[c-2].length,a[c-1].id,a[c-1].descr,a[c-1].type,a[c]);break;case 16:r.getLogger().info("Node: ",a[c].id);r.addNode(a[c-1].length,a[c].id,a[c].descr,a[c].type);break;case 17:r.getLogger().trace("Icon: ",a[c]);r.decorateNode({icon:a[c]});break;case 18:case 23:r.decorateNode({class:a[c]});break;case 19:r.getLogger().trace("SPACELIST");break;case 20:r.getLogger().trace("Node: ",a[c-1].id);r.addNode(0,a[c-1].id,a[c-1].descr,a[c-1].type,a[c]);break;case 21:r.getLogger().trace("Node: ",a[c].id);r.addNode(0,a[c].id,a[c].descr,a[c].type);break;case 22:r.decorateNode({icon:a[c]});break;case 27:r.getLogger().trace("node found ..",a[c-2]);this.$={id:a[c-1],descr:a[c-1],type:r.getType(a[c-2],a[c])};break;case 28:this.$={id:a[c],descr:a[c],type:0};break;case 29:r.getLogger().trace("node found ..",a[c-3]);this.$={id:a[c-3],descr:a[c-1],type:r.getType(a[c-2],a[c])};break;case 30:this.$=a[c-1]+a[c];break;case 31:this.$=a[c];break}}),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:t},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:t},{6:n,7:[1,10],9:9,12:11,13:i,14:14,16:r,17:s,18:17,19:18,20:a,23:o},e(c,[2,3]),{1:[2,2]},e(c,[2,4]),e(c,[2,5]),{1:[2,6],6:n,12:21,13:i,14:14,16:r,17:s,18:17,19:18,20:a,23:o},{6:n,9:22,12:11,13:i,14:14,16:r,17:s,18:17,19:18,20:a,23:o},{6:l,7:h,10:23,11:u},e(d,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:a,23:o}),e(d,[2,19]),e(d,[2,21],{15:30,24:p}),e(d,[2,22]),e(d,[2,23]),e(y,[2,25]),e(y,[2,26]),e(y,[2,28],{20:[1,32]}),{21:[1,33]},{6:l,7:h,10:34,11:u},{1:[2,7],6:n,12:21,13:i,14:14,16:r,17:s,18:17,19:18,20:a,23:o},e(f,[2,14],{7:b,11:k}),e(m,[2,8]),e(m,[2,9]),e(m,[2,10]),e(d,[2,16],{15:37,24:p}),e(d,[2,17]),e(d,[2,18]),e(d,[2,20],{24:_}),e(y,[2,31]),{21:[1,39]},{22:[1,40]},e(f,[2,13],{7:b,11:k}),e(m,[2,11]),e(m,[2,12]),e(d,[2,15],{24:_}),e(y,[2,30]),{22:[1,41]},e(y,[2,27]),e(y,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:(0,g.K2)((function e(t,n){if(n.recoverable){this.trace(t)}else{var i=new Error(t);i.hash=n;throw i}}),"parseError"),parse:(0,g.K2)((function e(t){var n=this,i=[0],r=[],s=[null],a=[],o=this.table,c="",l=0,h=0,u=0,d=2,p=1;var y=a.slice.call(arguments,1);var f=Object.create(this.lexer);var b={yy:{}};for(var k in this.yy){if(Object.prototype.hasOwnProperty.call(this.yy,k)){b.yy[k]=this.yy[k]}}f.setInput(t,b.yy);b.yy.lexer=f;b.yy.parser=this;if(typeof f.yylloc=="undefined"){f.yylloc={}}var m=f.yylloc;a.push(m);var _=f.options&&f.options.ranges;if(typeof b.yy.parseError==="function"){this.parseError=b.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function E(e){i.length=i.length-2*e;s.length=s.length-e;a.length=a.length-e}(0,g.K2)(E,"popStack");function v(){var e;e=r.pop()||f.lex()||p;if(typeof e!=="number"){if(e instanceof Array){r=e;e=r.pop()}e=n.symbols_[e]||e}return e}(0,g.K2)(v,"lex");var S,N,D,x,L,I,O={},C,A,w,K;while(true){D=i[i.length-1];if(this.defaultActions[D]){x=this.defaultActions[D]}else{if(S===null||typeof S=="undefined"){S=v()}x=o[D]&&o[D][S]}if(typeof x==="undefined"||!x.length||!x[0]){var $="";K=[];for(C in o[D]){if(this.terminals_[C]&&C>d){K.push("'"+this.terminals_[C]+"'")}}if(f.showPosition){$="Parse error on line "+(l+1)+":\n"+f.showPosition()+"\nExpecting "+K.join(", ")+", got '"+(this.terminals_[S]||S)+"'"}else{$="Parse error on line "+(l+1)+": Unexpected "+(S==p?"end of input":"'"+(this.terminals_[S]||S)+"'")}this.parseError($,{text:f.match,token:this.terminals_[S]||S,line:f.yylineno,loc:m,expected:K})}if(x[0]instanceof Array&&x.length>1){throw new Error("Parse Error: multiple actions possible at state: "+D+", token: "+S)}switch(x[0]){case 1:i.push(S);s.push(f.yytext);a.push(f.yylloc);i.push(x[1]);S=null;if(!N){h=f.yyleng;c=f.yytext;l=f.yylineno;m=f.yylloc;if(u>0){u--}}else{S=N;N=null}break;case 2:A=this.productions_[x[1]][1];O.$=s[s.length-A];O._$={first_line:a[a.length-(A||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(A||1)].first_column,last_column:a[a.length-1].last_column};if(_){O._$.range=[a[a.length-(A||1)].range[0],a[a.length-1].range[1]]}I=this.performAction.apply(O,[c,h,l,b.yy,x[1],s,a].concat(y));if(typeof I!=="undefined"){return I}if(A){i=i.slice(0,-1*A*2);s=s.slice(0,-1*A);a=a.slice(0,-1*A)}i.push(this.productions_[x[1]][0]);s.push(O.$);a.push(O._$);w=o[i[i.length-2]][i[i.length-1]];i.push(w);break;case 3:return true}}return true}),"parse")};var v=function(){var e={EOF:1,parseError:(0,g.K2)((function e(t,n){if(this.yy.parser){this.yy.parser.parseError(t,n)}else{throw new Error(t)}}),"parseError"),setInput:(0,g.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,g.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,g.K2)((function(e){var t=e.length;var n=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(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-t};if(this.options.ranges){this.yylloc.range=[r[0],r[0]+this.yyleng-t]}this.yyleng=this.yytext.length;return this}),"unput"),more:(0,g.K2)((function(){this._more=true;return this}),"more"),reject:(0,g.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,g.K2)((function(e){this.unput(this.match.slice(e))}),"less"),pastInput:(0,g.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,g.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,g.K2)((function(){var e=this.pastInput();var t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"}),"showPosition"),test_match:(0,g.K2)((function(e,t){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=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];n=this.performAction.call(this,this.yy,this,t,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,g.K2)((function(){if(this.done){return this.EOF}if(!this._input){this.done=true}var e,t,n,i;if(!this._more){this.yytext="";this.match=""}var r=this._currentRules();for(var s=0;st[0].length)){t=n;i=s;if(this.options.backtrack_lexer){e=this.test_match(n,r[s]);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,r[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,g.K2)((function e(){var t=this.next();if(t){return t}else{return this.lex()}}),"lex"),begin:(0,g.K2)((function e(t){this.conditionStack.push(t)}),"begin"),popState:(0,g.K2)((function e(){var t=this.conditionStack.length-1;if(t>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}}),"popState"),_currentRules:(0,g.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,g.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,g.K2)((function e(t){this.begin(t)}),"pushState"),stateStackSize:(0,g.K2)((function e(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":true},performAction:(0,g.K2)((function e(t,n,i,r){var s=r;switch(i){case 0:this.pushState("shapeData");n.yytext="";return 24;break;case 1:this.pushState("shapeDataStr");return 24;break;case 2:this.popState();return 24;break;case 3:const e=/\n\s*/g;n.yytext=n.yytext.replace(e,"
    ");return 24;break;case 4:return 24;break;case 5:this.popState();break;case 6:t.getLogger().trace("Found comment",n.yytext);return 6;break;case 7:return 8;break;case 8:this.begin("CLASS");break;case 9:this.popState();return 17;break;case 10:this.popState();break;case 11:t.getLogger().trace("Begin icon");this.begin("ICON");break;case 12:t.getLogger().trace("SPACELINE");return 6;break;case 13:return 7;break;case 14:return 16;break;case 15:t.getLogger().trace("end icon");this.popState();break;case 16:t.getLogger().trace("Exploding node");this.begin("NODE");return 20;break;case 17:t.getLogger().trace("Cloud");this.begin("NODE");return 20;break;case 18:t.getLogger().trace("Explosion Bang");this.begin("NODE");return 20;break;case 19:t.getLogger().trace("Cloud Bang");this.begin("NODE");return 20;break;case 20:this.begin("NODE");return 20;break;case 21:this.begin("NODE");return 20;break;case 22:this.begin("NODE");return 20;break;case 23:this.begin("NODE");return 20;break;case 24:return 13;break;case 25:return 23;break;case 26:return 11;break;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";break;case 29:this.popState();break;case 30:t.getLogger().trace("Starting NSTR");this.begin("NSTR");break;case 31:t.getLogger().trace("description:",n.yytext);return"NODE_DESCR";break;case 32:this.popState();break;case 33:this.popState();t.getLogger().trace("node end ))");return"NODE_DEND";break;case 34:this.popState();t.getLogger().trace("node end )");return"NODE_DEND";break;case 35:this.popState();t.getLogger().trace("node end ...",n.yytext);return"NODE_DEND";break;case 36:this.popState();t.getLogger().trace("node end ((");return"NODE_DEND";break;case 37:this.popState();t.getLogger().trace("node end (-");return"NODE_DEND";break;case 38:this.popState();t.getLogger().trace("node end (-");return"NODE_DEND";break;case 39:this.popState();t.getLogger().trace("node end ((");return"NODE_DEND";break;case 40:this.popState();t.getLogger().trace("node end ((");return"NODE_DEND";break;case 41:t.getLogger().trace("Long description:",n.yytext);return 21;break;case 42:t.getLogger().trace("Long description:",n.yytext);return 21;break}}),"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:false},shapeDataStr:{rules:[2,3],inclusive:false},shapeData:{rules:[1,4,5],inclusive:false},CLASS:{rules:[9,10],inclusive:false},ICON:{rules:[14,15],inclusive:false},NSTR2:{rules:[28,29],inclusive:false},NSTR:{rules:[31,32],inclusive:false},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:false},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:true}}};return e}();E.lexer=v;function S(){this.yy={}}(0,g.K2)(S,"Parser");S.prototype=E;E.Parser=S;return new S}();f.parser=f;var b=f;var k=[];var m=[];var _=0;var E={};var v=(0,g.K2)((()=>{k=[];m=[];_=0;E={}}),"clear");var S=(0,g.K2)((e=>{if(k.length===0){return null}const t=k[0].level;let n=null;for(let i=k.length-1;i>=0;i--){if(k[i].level===t&&!n){n=k[i]}if(k[i].levele.parentId===r.id));for(const s of n){const e={id:s.id,parentId:r.id,label:(0,u.jZ)(s.label??"",i),isGroup:false,ticket:s?.ticket,priority:s?.priority,assigned:s?.assigned,icon:s?.icon,shape:"kanbanItem",level:s.level,rx:5,ry:5,cssStyles:["text-align: left"]};t.push(e)}}return{nodes:t,edges:e,other:{},config:(0,u.D7)()}}),"getData");var x=(0,g.K2)(((e,t,n,i,r)=>{const a=(0,u.D7)();let o=a.mindmap?.padding??u.UI.mindmap.padding;switch(i){case L.ROUNDED_RECT:case L.RECT:case L.HEXAGON:o*=2}const c={id:(0,u.jZ)(t,a)||"kbn"+_++,level:e,label:(0,u.jZ)(n,a),width:a.mindmap?.maxNodeWidth??u.UI.mindmap.maxNodeWidth,padding:o,isGroup:false};if(r!==void 0){let e;if(!r.includes("\n")){e="{\n"+r+"\n}"}else{e=r+"\n"}const t=(0,s.H)(e,{schema:s.r});if(t.shape&&(t.shape!==t.shape.toLowerCase()||t.shape.includes("_"))){throw new Error(`No such shape: ${t.shape}. Shape names should be lowercase.`)}if(t?.shape&&t.shape==="kanbanItem"){c.shape=t?.shape}if(t?.label){c.label=t?.label}if(t?.icon){c.icon=t?.icon.toString()}if(t?.assigned){c.assigned=t?.assigned.toString()}if(t?.ticket){c.ticket=t?.ticket.toString()}if(t?.priority){c.priority=t?.priority}}const l=S(e);if(l){c.parentId=l.id||"kbn"+_++}else{m.push(c)}k.push(c)}),"addNode");var L={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6};var I=(0,g.K2)(((e,t)=>{g.Rm.debug("In get type",e,t);switch(e){case"[":return L.RECT;case"(":return t===")"?L.ROUNDED_RECT:L.CLOUD;case"((":return L.CIRCLE;case")":return L.CLOUD;case"))":return L.BANG;case"{{":return L.HEXAGON;default:return L.DEFAULT}}),"getType");var O=(0,g.K2)(((e,t)=>{E[e]=t}),"setElementForId");var C=(0,g.K2)((e=>{if(!e){return}const t=(0,u.D7)();const n=k[k.length-1];if(e.icon){n.icon=(0,u.jZ)(e.icon,t)}if(e.class){n.cssClasses=(0,u.jZ)(e.class,t)}}),"decorateNode");var A=(0,g.K2)((e=>{switch(e){case L.DEFAULT:return"no-border";case L.RECT:return"rect";case L.ROUNDED_RECT:return"rounded-rect";case L.CIRCLE:return"circle";case L.CLOUD:return"cloud";case L.BANG:return"bang";case L.HEXAGON:return"hexgon";default:return"no-border"}}),"type2Str");var w=(0,g.K2)((()=>g.Rm),"getLogger");var K=(0,g.K2)((e=>E[e]),"getElementById");var $={clear:v,addNode:x,getSections:N,getData:D,nodeType:L,getType:I,setElementForId:O,decorateNode:C,type2Str:A,getLogger:w,getElementById:K};var T=$;var R=(0,g.K2)((async(e,t,n,r)=>{g.Rm.debug("Rendering kanban diagram\n"+e);const s=r.db;const o=s.getData();const c=(0,u.D7)();c.htmlLabels=false;const l=(0,i.D)(t);const h=l.append("g");h.attr("class","sections");const d=l.append("g");d.attr("class","items");const p=o.nodes.filter((e=>e.isGroup));let y=0;const f=10;const b=[];let k=25;for(const i of p){const e=c?.kanban?.sectionWidth||200;y=y+1;i.x=e*y+(y-1)*f/2;i.width=e;i.y=0;i.height=e*3;i.rx=5;i.ry=5;i.cssClasses=i.cssClasses+" section-"+y;const t=await(0,a.U)(h,i);k=Math.max(k,t?.labelBBox?.height);b.push(t)}let m=0;for(const i of p){const e=b[m];m=m+1;const t=c?.kanban?.sectionWidth||200;const n=-t*3/2+k;let r=n;const s=o.nodes.filter((e=>e.parentId===i.id));for(const o of s){if(o.isGroup){throw new Error("Groups within groups are not allowed in Kanban diagrams")}o.x=i.x;o.width=t-1.5*f;const e=await(0,a.on)(d,o,{config:c});const n=e.node().getBBox();o.y=r+n.height/2;await(0,a.U_)(o);r=o.y+n.height/2+f/2}const l=e.cluster.select("rect");const h=Math.max(r-n+3*f,50)+(k-25);l.attr("height",h)}(0,u.ot)(void 0,l,c.mindmap?.padding??u.UI.kanban.padding,c.mindmap?.useMaxWidth??u.UI.kanban.useMaxWidth)}),"draw");var P={draw:R};var B=(0,g.K2)((e=>{let t="";for(let i=0;ie.darkMode?(0,y.A)(t,n):(0,p.A)(t,n)),"adjuster");for(let i=0;i`\n .edge {\n stroke-width: 3;\n }\n ${B(e)}\n .section-root rect, .section-root path, .section-root circle, .section-root polygon {\n fill: ${e.git0};\n }\n .section-root text {\n fill: ${e.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .cluster-label, .label {\n color: ${e.textColor};\n fill: ${e.textColor};\n }\n .kanban-label {\n dy: 1em;\n alignment-baseline: middle;\n text-anchor: middle;\n dominant-baseline: middle;\n text-align: center;\n }\n ${(0,r.o)()}\n`),"getStyles");var j=U;var F={db:T,renderer:P,parser:b,styles:j}}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/961.29c067b15a524e556eed.js b/share/jupyter/lab/static/961.29c067b15a524e556eed.js new file mode 100644 index 0000000..e439443 --- /dev/null +++ b/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/share/jupyter/lab/static/961.29c067b15a524e556eed.js.LICENSE.txt b/share/jupyter/lab/static/961.29c067b15a524e556eed.js.LICENSE.txt new file mode 100644 index 0000000..122393a --- /dev/null +++ b/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/share/jupyter/lab/static/9652.a8d2e5854bcae4d40041.js b/share/jupyter/lab/static/9652.a8d2e5854bcae4d40041.js new file mode 100644 index 0000000..795845d --- /dev/null +++ b/share/jupyter/lab/static/9652.a8d2e5854bcae4d40041.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9652,5606],{89031:e=>{"use strict";function t(e,t){var r=e;t.slice(0,-1).forEach((function(e){r=r[e]||{}}));var n=t[t.length-1];return n in r}function r(e){if(typeof e==="number"){return true}if(/^0x[0-9a-f]+$/i.test(e)){return true}return/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function n(e,t){return t==="constructor"&&typeof e[t]==="function"||t==="__proto__"}e.exports=function(e,o){if(!o){o={}}var i={bools:{},strings:{},unknownFn:null};if(typeof o.unknown==="function"){i.unknownFn=o.unknown}if(typeof o.boolean==="boolean"&&o.boolean){i.allBools=true}else{[].concat(o.boolean).filter(Boolean).forEach((function(e){i.bools[e]=true}))}var s={};function a(e){return s[e].some((function(e){return i.bools[e]}))}Object.keys(o.alias||{}).forEach((function(e){s[e]=[].concat(o.alias[e]);s[e].forEach((function(t){s[t]=[e].concat(s[e].filter((function(e){return t!==e})))}))}));[].concat(o.string).filter(Boolean).forEach((function(e){i.strings[e]=true;if(s[e]){[].concat(s[e]).forEach((function(e){i.strings[e]=true}))}}));var f=o.default||{};var l={_:[]};function u(e,t){return i.allBools&&/^--[^=]+$/.test(t)||i.strings[e]||i.bools[e]||s[e]}function c(e,t,r){var o=e;for(var s=0;s{"use strict";var n=r(65606);function o(e){if(typeof e!=="string"){throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}}function i(e,t){var r="";var n=0;var o=-1;var i=0;var s;for(var a=0;a<=e.length;++a){if(a2){var f=r.lastIndexOf("/");if(f!==r.length-1){if(f===-1){r="";n=0}else{r=r.slice(0,f);n=r.length-1-r.lastIndexOf("/")}o=a;i=0;continue}}else if(r.length===2||r.length===1){r="";n=0;o=a;i=0;continue}}if(t){if(r.length>0)r+="/..";else r="..";n=2}}else{if(r.length>0)r+="/"+e.slice(o+1,a);else r=e.slice(o+1,a);n=a-o-1}o=a;i=0}else if(s===46&&i!==-1){++i}else{i=-1}}return r}function s(e,t){var r=t.dir||t.root;var n=t.base||(t.name||"")+(t.ext||"");if(!r){return n}if(r===t.root){return r+n}return r+e+n}var a={resolve:function e(){var t="";var r=false;var s;for(var a=arguments.length-1;a>=-1&&!r;a--){var f;if(a>=0)f=arguments[a];else{if(s===undefined)s=n.cwd();f=s}o(f);if(f.length===0){continue}t=f+"/"+t;r=f.charCodeAt(0)===47}t=i(t,!r);if(r){if(t.length>0)return"/"+t;else return"/"}else if(t.length>0){return t}else{return"."}},normalize:function e(t){o(t);if(t.length===0)return".";var r=t.charCodeAt(0)===47;var n=t.charCodeAt(t.length-1)===47;t=i(t,!r);if(t.length===0&&!r)t=".";if(t.length>0&&n)t+="/";if(r)return"/"+t;return t},isAbsolute:function e(t){o(t);return t.length>0&&t.charCodeAt(0)===47},join:function e(){if(arguments.length===0)return".";var t;for(var r=0;r0){if(t===undefined)t=n;else t+="/"+n}}if(t===undefined)return".";return a.normalize(t)},relative:function e(t,r){o(t);o(r);if(t===r)return"";t=a.resolve(t);r=a.resolve(r);if(t===r)return"";var n=1;for(;nc){if(r.charCodeAt(f+p)===47){return r.slice(f+p+1)}else if(p===0){return r.slice(f+p)}}else if(s>c){if(t.charCodeAt(n+p)===47){h=p}else if(p===0){h=0}}break}var d=t.charCodeAt(n+p);var v=r.charCodeAt(f+p);if(d!==v)break;else if(d===47)h=p}var g="";for(p=n+h+1;p<=i;++p){if(p===i||t.charCodeAt(p)===47){if(g.length===0)g+="..";else g+="/.."}}if(g.length>0)return g+r.slice(f+h);else{f+=h;if(r.charCodeAt(f)===47)++f;return r.slice(f)}},_makeLong:function e(t){return t},dirname:function e(t){o(t);if(t.length===0)return".";var r=t.charCodeAt(0);var n=r===47;var i=-1;var s=true;for(var a=t.length-1;a>=1;--a){r=t.charCodeAt(a);if(r===47){if(!s){i=a;break}}else{s=false}}if(i===-1)return n?"/":".";if(n&&i===1)return"//";return t.slice(0,i)},basename:function e(t,r){if(r!==undefined&&typeof r!=="string")throw new TypeError('"ext" argument must be a string');o(t);var n=0;var i=-1;var s=true;var a;if(r!==undefined&&r.length>0&&r.length<=t.length){if(r.length===t.length&&r===t)return"";var f=r.length-1;var l=-1;for(a=t.length-1;a>=0;--a){var u=t.charCodeAt(a);if(u===47){if(!s){n=a+1;break}}else{if(l===-1){s=false;l=a+1}if(f>=0){if(u===r.charCodeAt(f)){if(--f===-1){i=a}}else{f=-1;i=l}}}}if(n===i)i=l;else if(i===-1)i=t.length;return t.slice(n,i)}else{for(a=t.length-1;a>=0;--a){if(t.charCodeAt(a)===47){if(!s){n=a+1;break}}else if(i===-1){s=false;i=a+1}}if(i===-1)return"";return t.slice(n,i)}},extname:function e(t){o(t);var r=-1;var n=0;var i=-1;var s=true;var a=0;for(var f=t.length-1;f>=0;--f){var l=t.charCodeAt(f);if(l===47){if(!s){n=f+1;break}continue}if(i===-1){s=false;i=f+1}if(l===46){if(r===-1)r=f;else if(a!==1)a=1}else if(r!==-1){a=-1}}if(r===-1||i===-1||a===0||a===1&&r===i-1&&r===n+1){return""}return t.slice(r,i)},format:function e(t){if(t===null||typeof t!=="object"){throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t)}return s("/",t)},parse:function e(t){o(t);var r={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return r;var n=t.charCodeAt(0);var i=n===47;var s;if(i){r.root="/";s=1}else{s=0}var a=-1;var f=0;var l=-1;var u=true;var c=t.length-1;var h=0;for(;c>=s;--c){n=t.charCodeAt(c);if(n===47){if(!u){f=c+1;break}continue}if(l===-1){u=false;l=c+1}if(n===46){if(a===-1)a=c;else if(h!==1)h=1}else if(a!==-1){h=-1}}if(a===-1||l===-1||h===0||h===1&&a===l-1&&a===f+1){if(l!==-1){if(f===0&&i)r.base=r.name=t.slice(1,l);else r.base=r.name=t.slice(f,l)}}else{if(f===0&&i){r.name=t.slice(1,a);r.base=t.slice(1,l)}else{r.name=t.slice(f,a);r.base=t.slice(f,l)}r.ext=t.slice(a,l)}if(f>0)r.dir=t.slice(0,f-1);else if(i)r.dir="/";return r},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a;e.exports=a},65606:e=>{var t=e.exports={};var r;var n;function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){r=setTimeout}else{r=o}}catch(e){r=o}try{if(typeof clearTimeout==="function"){n=clearTimeout}else{n=i}}catch(e){n=i}})();function s(e){if(r===setTimeout){return setTimeout(e,0)}if((r===o||!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 a(e){if(n===clearTimeout){return clearTimeout(e)}if((n===i||!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 f=[];var l=false;var u;var c=-1;function h(){if(!l||!u){return}l=false;if(u.length){f=u.concat(f)}else{c=-1}if(f.length){p()}}function p(){if(l){return}var e=s(h);l=true;var t=f.length;while(t){u=f;f=[];while(++c1){for(var r=1;r{"use strict";var r=Object.prototype.hasOwnProperty,n;function o(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return null}}function i(e){try{return encodeURIComponent(e)}catch(t){return null}}function s(e){var t=/([^=?#&]+)=?([^&]*)/g,r={},n;while(n=t.exec(e)){var i=o(n[1]),s=o(n[2]);if(i===null||s===null||i in r)continue;r[i]=s}return r}function a(e,t){t=t||"";var o=[],s,a;if("string"!==typeof t)t="?";for(a in e){if(r.call(e,a)){s=e[a];if(!s&&(s===null||s===n||isNaN(s))){s=""}a=i(a);s=i(s);if(a===null||s===null)continue;o.push(a+"="+s)}}return o.length?t+o.join("&"):""}t.stringify=a;t.parse=s},92063:e=>{"use strict";e.exports=function e(t,r){r=r.split(":")[0];t=+t;if(!t)return false;switch(r){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return false}return t!==0}},61160:(e,t,r)=>{"use strict";var n=r(92063),o=r(73992),i=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,f=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,u=/^[a-zA-Z]:/;function c(e){return(e?e:"").toString().replace(i,"")}var h=[["#","hash"],["?","query"],function e(t,r){return v(r.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",undefined,1,1],[/:(\d*)$/,"port",undefined,1],[NaN,"hostname",undefined,1,1]];var p={hash:1,query:1};function d(e){var t;if(typeof window!=="undefined")t=window;else if(typeof r.g!=="undefined")t=r.g;else if(typeof self!=="undefined")t=self;else t={};var n=t.location||{};e=e||n;var o={},i=typeof e,s;if("blob:"===e.protocol){o=new b(unescape(e.pathname),{})}else if("string"===i){o=new b(e,{});for(s in p)delete o[s]}else if("object"===i){for(s in e){if(s in p)continue;o[s]=e[s]}if(o.slashes===undefined){o.slashes=a.test(e.href)}}return o}function v(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function g(e,t){e=c(e);e=e.replace(s,"");t=t||{};var r=l.exec(e);var n=r[1]?r[1].toLowerCase():"";var o=!!r[2];var i=!!r[3];var a=0;var f;if(o){if(i){f=r[2]+r[3]+r[4];a=r[2].length+r[3].length}else{f=r[2]+r[4];a=r[2].length}}else{if(i){f=r[3]+r[4];a=r[3].length}else{f=r[4]}}if(n==="file:"){if(a>=2){f=f.slice(2)}}else if(v(n)){f=r[4]}else if(n){if(o){f=f.slice(2)}}else if(a>=2&&v(t.protocol)){f=r[4]}return{protocol:n,slashes:o||v(n),slashesCount:a,rest:f}}function m(e,t){if(e==="")return t;var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=r.length,o=r[n-1],i=false,s=0;while(n--){if(r[n]==="."){r.splice(n,1)}else if(r[n]===".."){r.splice(n,1);s++}else if(s){if(n===0)i=true;r.splice(n,1);s--}}if(i)r.unshift("");if(o==="."||o==="..")r.push("");return r.join("/")}function b(e,t,r){e=c(e);e=e.replace(s,"");if(!(this instanceof b)){return new b(e,t,r)}var i,a,f,l,p,y,w=h.slice(),C=typeof t,A=this,k=0;if("object"!==C&&"string"!==C){r=t;t=null}if(r&&"function"!==typeof r)r=o.parse;t=d(t);a=g(e||"",t);i=!a.protocol&&!a.slashes;A.slashes=a.slashes||i&&t.slashes;A.protocol=a.protocol||t.protocol||"";e=a.rest;if(a.protocol==="file:"&&(a.slashesCount!==2||u.test(e))||!a.slashes&&(a.protocol||a.slashesCount<2||!v(A.protocol))){w[3]=[/(.*)/,"pathname"]}for(;k + + + +Created by FontForge 20201107 at Wed Aug 4 12:25:29 2021 + By Robert Madole +Copyright (c) Font Awesome + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/share/jupyter/lab/static/9746.c7e86b432363dfd28caa.js b/share/jupyter/lab/static/9746.c7e86b432363dfd28caa.js new file mode 100644 index 0000000..ee57326 --- /dev/null +++ b/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/share/jupyter/lab/static/9834b82ad26e2a37583d.woff2 b/share/jupyter/lab/static/9834b82ad26e2a37583d.woff2 new file mode 100644 index 0000000..2217164 Binary files /dev/null and b/share/jupyter/lab/static/9834b82ad26e2a37583d.woff2 differ diff --git a/share/jupyter/lab/static/9892.6d289e7baed8c64d88e2.js b/share/jupyter/lab/static/9892.6d289e7baed8c64d88e2.js new file mode 100644 index 0000000..a4f37cc --- /dev/null +++ b/share/jupyter/lab/static/9892.6d289e7baed8c64d88e2.js @@ -0,0 +1,2 @@ +/*! For license information please see 9892.6d289e7baed8c64d88e2.js.LICENSE.txt */ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9892],{58488:u=>{const e={mode:"lazy"};u.exports=e},9128:(u,e,r)=>{const d=r(58488);const a=r(62545);const t=r(34999);const n=new WeakMap;function f(u){return d.mode==="spec-compliant"?c(this,u):i(this,u)}function i(u,e){const r=u.lastIndex;const d=a.call(u,e);if(d===null)return null;let t;Object.defineProperty(d,"indices",{enumerable:true,configurable:true,get(){if(t===undefined){const{measurementRegExp:n,groupInfos:f}=o(u);n.lastIndex=r;const i=a.call(n,e);if(i===null)throw new TypeError;l(d,"indices",t=s(i,f))}return t},set(u){l(d,"indices",u)}});return d}function c(u,e){const{measurementRegExp:r,groupInfos:d}=o(u);r.lastIndex=u.lastIndex;const t=a.call(r,e);if(t===null)return null;u.lastIndex=r.lastIndex;const n=[];l(n,0,t[0]);for(const a of d){l(n,a.oldGroupNumber,t[a.newGroupNumber])}l(n,"index",t.index);l(n,"input",t.input);l(n,"groups",t.groups);l(n,"indices",s(t,d));return n}function o(u){let e=n.get(u);if(!e){e=T(t.parse(`/${u.source}/${u.flags}`));n.set(u,e)}const r=e.getExtra();const d=e.toRegExp();return{measurementRegExp:d,groupInfos:r}}function s(u,e){const r=u.index;const d=r+u[0].length;const a=!!u.groups;const t=[];const n=a?Object.create(null):undefined;l(t,0,[r,d]);for(const f of e){let e;if(u[f.newGroupNumber]!==undefined){let d=r;if(f.measurementGroups){for(const e of f.measurementGroups){d+=u[e].length}}const a=d+u[f.newGroupNumber].length;e=[d,a]}l(t,f.oldGroupNumber,e);if(n&&f.groupName!==undefined){l(n,f.groupName,e)}}l(t,"groups",n);return t}function l(u,e,r){const d=Object.getOwnPropertyDescriptor(u,e);if(d?d.configurable:Object.isExtensible(u)){const a={enumerable:d?d.enumerable:true,configurable:d?d.configurable:true,writable:true,value:r};Object.defineProperty(u,e,a)}}let b;let p=false;let h=new Set;let v=[];let g=false;let y=1;let m=[];let _=new Map;let C=new Map;const S={init(){p=false;h.clear();v.length=0;g=false;y=1;m.length=0;_.clear();C.clear();b=[]},RegExp(u){t.traverse(u.node,A);if(h.size>0){t.transform(u.node,k);t.transform(u.node,P);if(p){t.transform(u.node,w)}}return false}};const x={pre(u){v.push(g);g=u.node.type==="Group"&&u.node.capturing},post(u){if(g){h.add(u.node)}g=v.pop()||g}};const A={Alternative:x,Disjunction:x,Assertion:x,Group:x,Repetition:x,Backreference(u){p=true}};const k={Alternative(u){if(h.has(u.node)){let e=0;let r=[];const d=[];const a=[];for(let n=0;ne){const u={type:"Group",capturing:true,number:-1,expression:r.length>1?{type:"Alternative",expressions:r}:r.length===1?r[0]:null};a.push(u);d.push(u);e=n;r=[]}m.push(d);t.transform(f,k);m.pop();r.push(f);continue}r.push(f)}u.update({expressions:a.concat(r)})}return false},Group(u){if(!u.node.capturing)return;_.set(u.node,E())}};const P={Group(u){if(!b)throw new Error("Not initialized.");if(!u.node.capturing)return;const e=u.node.number;const r=y++;const d=_.get(u.node);if(e!==-1){b.push({oldGroupNumber:e,newGroupNumber:r,measurementGroups:d&&d.map((u=>u.number)),groupName:u.node.name});C.set(e,r)}u.update({number:r})}};const w={Backreference(u){const e=C.get(u.node.number);if(e){if(u.node.kind==="number"){u.update({number:e,reference:e})}else{u.update({number:e})}}}};function E(){const u=[];for(const e of m){for(const r of e){u.push(r)}}return u}function T(u){const e=t.transform(u,S);return new t.TransformResult(e.getAST(),b)}u.exports=f},9892:(u,e,r)=>{const d=r(9128);const a=r(62545);const t=r(93581);const n=r(74443);const f=r(58488);const i=t();function c(u,e){return i.call(u,e)}c.implementation=d;c.native=a;c.getPolyfill=t;c.shim=n;c.config=f;(function(u){})(c||(c={}));u.exports=c},62545:u=>{const e=RegExp.prototype.exec;u.exports=e},93581:(u,e,r)=>{const d=r(62545);const a=r(9128);function t(){const u=new RegExp("a");const e=d.call(u,"a");if(e.indices){return d}return a}u.exports=t},74443:(u,e,r)=>{const d=r(93581);function a(){const u=d();if(RegExp.prototype.exec!==u){RegExp.prototype.exec=u}}u.exports=a},9182:(u,e,r)=>{var d=r(43034);var a=r(2003);u.exports={transform:function u(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var t=r.length>0?r:Object.keys(d);var n=void 0;var f={};t.forEach((function(u){if(!d.hasOwnProperty(u)){throw new Error("Unknown compat-transform: "+u+". "+"Available transforms are: "+Object.keys(d).join(", "))}var r=d[u];n=a.transform(e,r);e=n.getAST();if(typeof r.getExtra==="function"){f[u]=r.getExtra()}}));n.setExtra(f);return n}}},51537:u=>{var e=function(){function u(u,e){for(var r=0;r{u.exports={_hasUFlag:false,shouldRun:function u(e){var u=e.flags.includes("s");if(!u){return false}e.flags=e.flags.replace("s","");this._hasUFlag=e.flags.includes("u");return true},Char:function u(e){var r=e.node;if(r.kind!=="meta"||r.value!=="."){return}var d="\\uFFFF";var a="￿";if(this._hasUFlag){d="\\u{10FFFF}";a="􏿿"}e.replace({type:"CharacterClass",expressions:[{type:"ClassRange",from:{type:"Char",value:"\\0",kind:"decimal",symbol:"\0"},to:{type:"Char",value:d,kind:"unicode",symbol:a}}]})}}},62514:u=>{u.exports={_groupNames:{},init:function u(){this._groupNames={}},getExtra:function u(){return this._groupNames},Group:function u(e){var r=e.node;if(!r.name){return}this._groupNames[r.name]=r.number;delete r.name;delete r.nameRaw},Backreference:function u(e){var r=e.node;if(r.kind!=="name"){return}r.kind="number";r.reference=r.number;delete r.referenceRaw}}},57559:u=>{u.exports={RegExp:function u(e){var r=e.node;if(r.flags.includes("x")){r.flags=r.flags.replace("x","")}}}},43034:(u,e,r)=>{u.exports={dotAll:r(45640),namedCapturingGroups:r(62514),xFlag:r(57559)}},20042:u=>{function e(u){return u?r[u.type](u):""}var r={RegExp:function u(r){return"/"+e(r.body)+"/"+r.flags},Alternative:function u(r){return(r.expressions||[]).map(e).join("")},Disjunction:function u(r){return e(r.left)+"|"+e(r.right)},Group:function u(r){var d=e(r.expression);if(r.capturing){if(r.name){return"(?<"+(r.nameRaw||r.name)+">"+d+")"}return"("+d+")"}return"(?:"+d+")"},Backreference:function u(e){switch(e.kind){case"number":return"\\"+e.reference;case"name":return"\\k<"+(e.referenceRaw||e.reference)+">";default:throw new TypeError("Unknown Backreference kind: "+e.kind)}},Assertion:function u(r){switch(r.kind){case"^":case"$":case"\\b":case"\\B":return r.kind;case"Lookahead":{var d=e(r.assertion);if(r.negative){return"(?!"+d+")"}return"(?="+d+")"}case"Lookbehind":{var a=e(r.assertion);if(r.negative){return"(?{var e=function(){function u(u,e){var r=[];var d=true;var a=false;var t=undefined;try{for(var n=u[Symbol.iterator](),f;!(d=(f=n.next()).done);d=true){r.push(f.value);if(e&&r.length===e)break}}catch(i){a=true;t=i}finally{try{if(!d&&n["return"])n["return"]()}finally{if(a)throw t}}return r}return function(e,r){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return u(e,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();function r(u){return Array.isArray(u)?u:Array.from(u)}function d(u){if(Array.isArray(u)){for(var e=0,r=Array(u.length);e0}))];var b=void 0;var p=void 0;b=l[l.length-1];p=l[l.length-2];var h=function u(){var e={};var n=true;var i=false;var o=undefined;try{for(var s=b[Symbol.iterator](),h;!(n=(h=s.next()).done);n=true){var v=h.value;var g={};var y=r(v),m=y[0],_=y.slice(1);g[m]=new Set([m]);var C=true;var S=false;var x=undefined;try{u:for(var A=_[Symbol.iterator](),k;!(C=(k=A.next()).done);C=true){var P=k.value;var w=true;var E=false;var T=undefined;try{for(var O=Object.keys(g)[Symbol.iterator](),R;!(w=(R=O.next()).done);w=true){var N=R.value;if(f(P,N,t,c)){g[N].add(P);g[P]=g[N];continue u}}}catch(I){E=true;T=I}finally{try{if(!w&&O.return){O.return()}}finally{if(E){throw T}}}g[P]=new Set([P])}}catch(I){S=true;x=I}finally{try{if(!C&&A.return){A.return()}}finally{if(S){throw x}}}Object.assign(e,g)}}catch(I){i=true;o=I}finally{try{if(!n&&s.return){s.return()}}finally{if(i){throw o}}}a=e;var L=new Set(Object.keys(e).map((function(u){return e[u]})));l.push([].concat(d(L)));b=l[l.length-1];p=l[l.length-2]};while(!n(b,p)){h()}var v=new Map;var g=1;b.forEach((function(u){return v.set(u,g++)}));var y={};var m=new Set;var _=function u(e,r){var d=true;var a=false;var t=undefined;try{for(var n=e[Symbol.iterator](),f;!(d=(f=n.next()).done);d=true){var i=f.value;if(o.has(i)){m.add(r)}}}catch(c){a=true;t=c}finally{try{if(!d&&n.return){n.return()}}finally{if(a){throw t}}}};var C=true;var S=false;var x=undefined;try{for(var A=v.entries()[Symbol.iterator](),k;!(C=(k=A.next()).done);C=true){var P=k.value;var w=e(P,2);var E=w[0];var T=w[1];y[T]={};var O=true;var R=false;var N=undefined;try{for(var L=c[Symbol.iterator](),I;!(O=(I=L.next()).done);O=true){var F=I.value;_(E,T);var D=void 0;var M=true;var G=false;var j=undefined;try{for(var B=E[Symbol.iterator](),U;!(M=(U=B.next()).done);M=true){var H=U.value;D=t[H][F];if(D){break}}}catch(q){G=true;j=q}finally{try{if(!M&&B.return){B.return()}}finally{if(G){throw j}}}if(D){y[T][F]=v.get(a[D])}}}catch(q){R=true;N=q}finally{try{if(!O&&L.return){L.return()}}finally{if(R){throw N}}}}}catch(q){S=true;x=q}finally{try{if(!C&&A.return){A.return()}}finally{if(S){throw x}}}u.setTransitionTable(y);u.setAcceptingStateNumbers(m);return u}function n(u,e){if(!e){return false}if(u.length!==e.length){return false}for(var r=0;r{var d=function(){function u(u,e){for(var r=0;r0){var l=n.shift();var b=l.join(",");o[b]={};var p=true;var h=false;var v=undefined;try{for(var g=f[Symbol.iterator](),y;!(p=(y=g.next()).done);p=true){var m=y.value;var _=[];s(l);var C=true;var S=false;var x=undefined;try{for(var A=l[Symbol.iterator](),k;!(C=(k=A.next()).done);C=true){var P=k.value;var w=r[P][m];if(!w){continue}var E=true;var T=false;var O=undefined;try{for(var R=w[Symbol.iterator](),N;!(E=(N=R.next()).done);E=true){var L=N.value;if(!r[L]){continue}_.push.apply(_,a(r[L][i]))}}catch(M){T=true;O=M}finally{try{if(!E&&R.return){R.return()}}finally{if(T){throw O}}}}}catch(M){S=true;x=M}finally{try{if(!C&&A.return){A.return()}}finally{if(S){throw x}}}var I=new Set(_);var F=[].concat(a(I));if(F.length>0){var D=F.join(",");o[b][m]=D;if(!o.hasOwnProperty(D)){n.unshift(F)}}}}catch(M){h=true;v=M}finally{try{if(!p&&g.return){g.return()}}finally{if(h){throw v}}}}return this._transitionTable=this._remapStateNumbers(o)}},{key:"_remapStateNumbers",value:function u(e){var r={};this._originalTransitionTable=e;var d={};Object.keys(e).forEach((function(u,e){r[u]=e+1}));for(var a in e){var t=e[a];var n={};for(var f in t){n[f]=r[t[f]]}d[r[a]]=n}this._originalAcceptingStateNumbers=this._acceptingStateNumbers;this._acceptingStateNumbers=new Set;var i=true;var c=false;var o=undefined;try{for(var s=this._originalAcceptingStateNumbers[Symbol.iterator](),l;!(i=(l=s.next()).done);i=true){var b=l.value;this._acceptingStateNumbers.add(r[b])}}catch(p){c=true;o=p}finally{try{if(!i&&s.return){s.return()}}finally{if(c){throw o}}}return d}},{key:"getOriginalTransitionTable",value:function u(){if(!this._originalTransitionTable){this.getTransitionTable()}return this._originalTransitionTable}},{key:"matches",value:function u(e){var r=1;var d=0;var a=this.getTransitionTable();while(e[d]){r=a[r][e[d++]];if(!r){return false}}if(!this.getAcceptingStateNumbers().has(r)){return false}return true}}]);return u}();u.exports=c},36734:(u,e,r)=>{var d=r(91909);var a=r(32569);var t=r(28398);var n=r(70860);u.exports={NFA:d,DFA:a,builders:n,toNFA:function u(e){return t.build(e)},toDFA:function u(e){return new a(this.toNFA(e))},test:function u(e,r){return this.toDFA(e).matches(r)}}},70860:(u,e,r)=>{var d=r(91909);var a=r(48617);var t=r(75821),n=t.EPSILON;function f(u){var e=new a;var r=new a({accepting:true});return new d(e.addTransition(u,r),r)}function i(){return f(n)}function c(u,e){u.out.accepting=false;e.out.accepting=true;u.out.addTransition(n,e.in);return new d(u.in,e.out)}function o(u){for(var e=arguments.length,r=Array(e>1?e-1:0),d=1;d1?e-1:0),d=1;d{function d(u){if(Array.isArray(u)){for(var e=0,r=Array(u.length);e{var d=function(){function u(u,e){for(var r=0;r1&&arguments[1]!==undefined?arguments[1]:new Set;if(r.has(this)){return false}r.add(this);if(e.length===0){if(this.accepting){return true}var d=true;var a=false;var t=undefined;try{for(var n=this.getTransitionsOnSymbol(c)[Symbol.iterator](),f;!(d=(f=n.next()).done);d=true){var i=f.value;if(i.matches("",r)){return true}}}catch(k){a=true;t=k}finally{try{if(!d&&n.return){n.return()}}finally{if(a){throw t}}}return false}var o=e[0];var s=e.slice(1);var l=this.getTransitionsOnSymbol(o);var b=true;var p=false;var h=undefined;try{for(var v=l[Symbol.iterator](),g;!(b=(g=v.next()).done);b=true){var y=g.value;if(y.matches(s)){return true}}}catch(k){p=true;h=k}finally{try{if(!b&&v.return){v.return()}}finally{if(p){throw h}}}var m=true;var _=false;var C=undefined;try{for(var S=this.getTransitionsOnSymbol(c)[Symbol.iterator](),x;!(m=(x=S.next()).done);m=true){var A=x.value;if(A.matches(e,r)){return true}}}catch(k){_=true;C=k}finally{try{if(!m&&S.return){S.return()}}finally{if(_){throw C}}}return false}},{key:"getEpsilonClosure",value:function u(){var e=this;if(!this._epsilonClosure){(function(){var u=e.getTransitionsOnSymbol(c);var r=e._epsilonClosure=new Set;r.add(e);var d=true;var a=false;var t=undefined;try{for(var n=u[Symbol.iterator](),f;!(d=(f=n.next()).done);d=true){var i=f.value;if(!r.has(i)){r.add(i);var o=i.getEpsilonClosure();o.forEach((function(u){return r.add(u)}))}}}catch(s){a=true;t=s}finally{try{if(!d&&n.return){n.return()}}finally{if(a){throw t}}}})()}return this._epsilonClosure}}]);return e}(f);u.exports=o},91909:(u,e,r)=>{var d=function(){function u(u,e){var r=[];var d=true;var a=false;var t=undefined;try{for(var n=u[Symbol.iterator](),f;!(d=(f=n.next()).done);d=true){r.push(f.value);if(e&&r.length===e)break}}catch(i){a=true;t=i}finally{try{if(!d&&n["return"])n["return"]()}finally{if(a)throw t}}return r}return function(e,r){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return u(e,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var a=function(){function u(u,e){for(var r=0;r{var e="ε";var r=e+"*";u.exports={EPSILON:e,EPSILON_CLOSURE:r}},81191:u=>{var e=function(){function u(u,e){for(var r=0;r0&&arguments[0]!==undefined?arguments[0]:{},d=e.accepting,a=d===undefined?false:d;r(this,u);this._transitions=new Map;this.accepting=a}e(u,[{key:"getTransitions",value:function u(){return this._transitions}},{key:"addTransition",value:function u(e,r){this.getTransitionsOnSymbol(e).add(r);return this}},{key:"getTransitionsOnSymbol",value:function u(e){var r=this._transitions.get(e);if(!r){r=new Set;this._transitions.set(e,r)}return r}}]);return u}();u.exports=d},63072:(u,e,r)=>{var d=r(1379);var a=r(23810);var t=r(2003);var n=r(53256);u.exports={optimize:function u(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},f=r.whitelist,i=f===undefined?[]:f,c=r.blacklist,o=c===undefined?[]:c;var s=i.length>0?i:Array.from(n.keys());var l=s.filter((function(u){return!o.includes(u)}));var b=e;if(e instanceof RegExp){e=""+e}if(typeof e==="string"){b=a.parse(e)}var p=new t.TransformResult(b);var h=void 0;do{h=p.toString();b=d(p.getAST());l.forEach((function(u){if(!n.has(u)){throw new Error("Unknown optimization-transform: "+u+". "+"Available transforms are: "+Array.from(n.keys()).join(", "))}var e=n.get(u);var r=t.transform(b,e);if(r.toString()!==p.toString()){if(r.toString().length<=p.toString().length){p=r}else{b=d(p.getAST())}}}))}while(p.toString()!==h);return p}}},98002:u=>{var e="A".codePointAt(0);var r="Z".codePointAt(0);u.exports={_AZClassRanges:null,_hasUFlag:false,init:function u(e){this._AZClassRanges=new Set;this._hasUFlag=e.flags.includes("u")},shouldRun:function u(e){return e.flags.includes("i")},Char:function u(e){var r=e.node,t=e.parent;if(isNaN(r.codePoint)){return}if(!this._hasUFlag&&r.codePoint>=4096){return}if(t.type==="ClassRange"){if(!this._AZClassRanges.has(t)&&!d(t)){return}this._AZClassRanges.add(t)}var n=r.symbol.toLowerCase();if(n!==r.symbol){r.value=a(n,r);r.symbol=n;r.codePoint=n.codePointAt(0)}}};function d(u){var d=u.from,a=u.to;return d.codePoint>=e&&d.codePoint<=r&&a.codePoint>=e&&a.codePoint<=r}function a(u,e){var r=u.codePointAt(0);if(e.kind==="decimal"){return"\\"+r}if(e.kind==="oct"){return"\\0"+r.toString(8)}if(e.kind==="hex"){return"\\x"+r.toString(16)}if(e.kind==="unicode"){if(e.isSurrogatePair){var d=t(r),a=d.lead,n=d.trail;return"\\u"+"0".repeat(4-a.length)+a+"\\u"+"0".repeat(4-n.length)+n}else if(e.value.includes("{")){return"\\u{"+r.toString(16)+"}"}else{var f=r.toString(16);return"\\u"+"0".repeat(4-f.length)+f}}return u}function t(u){var e=Math.floor((u-65536)/1024)+55296;var r=(u-65536)%1024+56320;return{lead:e.toString(16),trail:r.toString(16)}}},70436:u=>{u.exports={_hasIUFlags:false,init:function u(e){this._hasIUFlags=e.flags.includes("i")&&e.flags.includes("u")},CharacterClass:function u(r){var a=r.node;var n=a.expressions;var f=[];n.forEach((function(u){if(d(u)){f.push(u.value)}}));n.sort(e);for(var i=0;i1&&arguments[1]!==undefined?arguments[1]:null;return u.type==="Char"&&u.kind==="meta"&&(e?u.value===e:/^\\[dws]$/i.test(u.value))}function a(u){return u.type==="Char"&&u.kind==="control"}function t(u,e,r){for(var d=0;d=8192&&u.codePoint<=8202||u.codePoint===8232||u.codePoint===8233||u.codePoint===8239||u.codePoint===8287||u.codePoint===12288||u.codePoint===65279}function i(u){return u.codePoint>=48&&u.codePoint<=57}function c(u,e){return i(u)||u.codePoint>=65&&u.codePoint<=90||u.codePoint>=97&&u.codePoint<=122||u.value==="_"||e&&(u.codePoint===383||u.codePoint===8490)}function o(u,e){if(e&&e.type==="ClassRange"){if(l(u,e)){return true}else if(p(u)&&e.to.codePoint===u.codePoint-1){e.to=u;return true}else if(u.type==="ClassRange"&&u.from.codePoint<=e.to.codePoint+1&&u.to.codePoint>=e.from.codePoint-1){if(u.from.codePointe.to.codePoint){e.to=u.to}return true}}return false}function s(u,e){if(e&&e.type==="ClassRange"){if(p(u)&&e.from.codePoint===u.codePoint+1){e.from=u;return true}}return false}function l(u,e){if(u.type==="Char"&&isNaN(u.codePoint)){return false}if(u.type==="ClassRange"){return l(u.from,e)&&l(u.to,e)}return u.codePoint>=e.from.codePoint&&u.codePoint<=e.to.codePoint}function b(u,e,r){if(!p(u)){return 0}var d=0;while(e>0){var a=r[e];var t=r[e-1];if(p(t)&&t.codePoint===a.codePoint-1){d++;e--}else{break}}if(d>1){r[e]={type:"ClassRange",from:r[e],to:u};return d}return 0}function p(u){return u&&u.type==="Char"&&!isNaN(u.codePoint)&&(c(u,false)||u.kind==="unicode"||u.kind==="hex"||u.kind==="oct"||u.kind==="decimal")}},76953:u=>{u.exports={ClassRange:function u(e){var r=e.node;if(r.from.codePoint===r.to.codePoint){e.replace(r.from)}else if(r.from.codePoint===r.to.codePoint-1){e.getParent().insertChildAt(r.to,e.index+1);e.replace(r.from)}}}},322:u=>{u.exports={CharacterClass:function u(e){var r=e.node;var d={};for(var a=0;a{function e(u){if(Array.isArray(u)){for(var e=0,r=Array(u.length);e2&&arguments[2]!==undefined?arguments[2]:"simple";return u.type==="Char"&&u.value===e&&u.kind===r}function i(u,e){return f(u,e,"meta")}function c(u){return u.type==="ClassRange"&&u.from.value==="a"&&u.to.value==="z"}function o(u){return u.type==="ClassRange"&&u.from.value==="A"&&u.to.value==="Z"}function s(u){return u.type==="Char"&&u.value==="_"&&u.kind==="simple"}function l(u,e){return u.type==="Char"&&u.kind==="unicode"&&u.codePoint===e}},11810:u=>{u.exports={CharacterClass:function u(n){var f=n.node;if(f.expressions.length!==1||!a(n)||!e(f.expressions[0])){return}var i=f.expressions[0],c=i.value,o=i.kind,s=i.escaped;if(f.negative){if(!r(c)){return}c=d(c)}n.replace({type:"Char",value:c,kind:o,escaped:s||t(c)})}};function e(u){return u.type==="Char"&&u.value!=="\\b"}function r(u){return/^\\[dwsDWS]$/.test(u)}function d(u){return/[dws]/.test(u)?u.toUpperCase():u.toLowerCase()}function a(u){var e=u.parent,r=u.index;if(e.type!=="Alternative"){return true}var d=e.expressions[r-1];if(d==null){return true}if(d.type==="Backreference"&&d.kind==="number"){return false}if(d.type==="Char"&&d.kind==="decimal"){return false}return true}function t(u){return/[*[()+?$./{}|]/.test(u)}},88111:u=>{var e="A".codePointAt(0);var r="Z".codePointAt(0);var d="a".codePointAt(0);var a="z".codePointAt(0);var t="0".codePointAt(0);var n="9".codePointAt(0);u.exports={Char:function u(e){var r=e.node,d=e.parent;if(isNaN(r.codePoint)||r.kind==="simple"){return}if(d.type==="ClassRange"){if(!f(d)){return}}if(!i(r.codePoint)){return}var a=String.fromCodePoint(r.codePoint);var t={type:"Char",kind:"simple",value:a,symbol:a,codePoint:r.codePoint};if(c(a,d.type)){t.escaped=true}e.replace(t)}};function f(u){var f=u.from,i=u.to;return f.codePoint>=t&&f.codePoint<=n&&i.codePoint>=t&&i.codePoint<=n||f.codePoint>=e&&f.codePoint<=r&&i.codePoint>=e&&i.codePoint<=r||f.codePoint>=d&&f.codePoint<=a&&i.codePoint>=d&&i.codePoint<=a}function i(u){return u>=32&&u<=126}function c(u,e){if(e==="ClassRange"||e==="CharacterClass"){return/[\]\\^-]/.test(u)}return/[*[()+?^$./\\|{}]/.test(u)}},6632:u=>{u.exports={_hasXFlag:false,init:function u(e){this._hasXFlag=e.flags.includes("x")},Char:function u(r){var d=r.node;if(!d.escaped){return}if(e(r,this._hasXFlag)){delete d.escaped}}};function e(u,e){var a=u.node.value,t=u.index,n=u.parent;if(n.type!=="CharacterClass"&&n.type!=="ClassRange"){return!d(a,t,n,e)}return!r(a,t,n)}function r(u,e,r){if(u==="^"){return e===0&&!r.negative}if(u==="-"){return true}return/[\]\\]/.test(u)}function d(u,e,r,d){if(u==="{"){return n(e,r)}if(u==="}"){return f(e,r)}if(d&&/[ #]/.test(u)){return true}return/[*[()+?^$./\\|]/.test(u)}function a(u,e,r){var d=u;var a=(r?d>=0:d=0:d=0&&e.expressions[d];if(r&&t(n,"{")){return true}if(t(n,",")){r=a(d-1,e,true);d=d-r-1;n=d{u.exports={shouldRun:function u(e){return e.flags.includes("u")},Char:function u(e){var r=e.node;if(r.kind!=="unicode"||!r.isSurrogatePair||isNaN(r.codePoint)){return}r.value="\\u{"+r.codePoint.toString(16)+"}";delete r.isSurrogatePair}}},97648:(u,e,r)=>{function d(u){if(Array.isArray(u)){for(var e=0,r=Array(u.length);e=r.expressions.length){break}a=e.getChild(d);d=Math.max(1,i(e,a,d));if(d>=r.expressions.length){break}a=e.getChild(d);d=Math.max(1,c(e,a,d));d++}}};function f(u,e,r){var t=u.node;var n=Math.ceil(r/2);var f=0;while(f{var d=r(41059);var a=r(33166),t=a.disjunctionToList,n=a.listToDisjunction;u.exports={Disjunction:function u(e){var r=e.node;var a={};var f=t(r).filter((function(u){var e=u?d.getForNode(u).jsonEncode():"null";if(a.hasOwnProperty(e)){return false}a[e]=u;return true}));e.replace(n(f))}}},5808:u=>{u.exports={Disjunction:function u(d){var a=d.node,t=d.parent;if(!e[t.type]){return}var n=new Map;if(!r(a,n)||!n.size){return}var f={type:"CharacterClass",expressions:Array.from(n.keys()).sort().map((function(u){return n.get(u)}))};e[t.type](d.getParent(),f)}};var e={RegExp:function u(e,r){var d=e.node;d.body=r},Group:function u(e,r){var d=e.node;if(d.capturing){d.expression=r}else{e.replace(r)}}};function r(u,e){if(!u){return false}var d=u.type;if(d==="Disjunction"){var a=u.left,t=u.right;return r(a,e)&&r(t,e)}else if(d==="Char"){var n=u.value;e.set(n,u);return true}else if(d==="CharacterClass"&&!u.negative){return u.expressions.every((function(u){return r(u,e)}))}return false}},53256:(u,e,r)=>{u.exports=new Map([["charSurrogatePairToSingleUnicode",r(8988)],["charCodeToSimpleChar",r(88111)],["charCaseInsensitiveLowerCaseTransform",r(98002)],["charClassRemoveDuplicates",r(322)],["quantifiersMerge",r(31837)],["quantifierRangeToSymbol",r(88190)],["charClassClassrangesToChars",r(76953)],["charClassToMeta",r(4090)],["charClassToSingleChar",r(11810)],["charEscapeUnescape",r(6632)],["charClassClassrangesMerge",r(70436)],["disjunctionRemoveDuplicates",r(61013)],["groupSingleCharsToCharClass",r(5808)],["removeEmptyGroup",r(72097)],["ungroup",r(95435)],["combineRepeatingPatterns",r(97648)]])},88190:u=>{u.exports={Quantifier:function u(a){var t=a.node;if(t.kind!=="Range"){return}e(a);r(a);d(a)}};function e(u){var e=u.node;if(e.from!==0||e.to){return}e.kind="*";delete e.from}function r(u){var e=u.node;if(e.from!==1||e.to){return}e.kind="+";delete e.from}function d(u){var e=u.node;if(e.from!==1||e.to!==1){return}u.parentPath.replace(u.parentPath.node.expression)}},31837:(u,e,r)=>{var d=r(33166),a=d.increaseQuantifierByOne;u.exports={Repetition:function u(e){var r=e.node,d=e.parent;if(d.type!=="Alternative"||!e.index){return}var f=e.getPreviousSibling();if(!f){return}if(f.node.type==="Repetition"){if(!f.getChild().hasEqualSource(e.getChild())){return}var i=n(f.node.quantifier),c=i.from,o=i.to;var s=n(r.quantifier),l=s.from,b=s.to;if(f.node.quantifier.greedy!==r.quantifier.greedy&&!t(f.node.quantifier)&&!t(r.quantifier)){return}r.quantifier.kind="Range";r.quantifier.from=c+l;if(o&&b){r.quantifier.to=o+b}else{delete r.quantifier.to}if(t(f.node.quantifier)||t(r.quantifier)){r.quantifier.greedy=true}f.remove()}else{if(!f.hasEqualSource(e.getChild())){return}a(r.quantifier);f.remove()}}};function t(u){return u.greedy&&(u.kind==="+"||u.kind==="*"||u.kind==="Range"&&!u.to)}function n(u){var e=void 0,r=void 0;if(u.kind==="*"){e=0}else if(u.kind==="+"){e=1}else if(u.kind==="?"){e=0;r=1}else{e=u.from;if(u.to){r=u.to}}return{from:e,to:r}}},72097:u=>{u.exports={Group:function u(e){var r=e.node,d=e.parent;var a=e.getChild();if(r.capturing||a){return}if(d.type==="Repetition"){e.getParent().replace(r)}else if(d.type!=="RegExp"){e.remove()}}}},95435:u=>{function e(u){if(Array.isArray(u)){for(var e=0,r=Array(u.length);e{var d=function(){function u(u,e){var r=[];var d=true;var a=false;var t=undefined;try{for(var n=u[Symbol.iterator](),f;!(d=(f=n.next()).done);d=true){r.push(f.value);if(e&&r.length===e)break}}catch(i){a=true;t=i}finally{try{if(!d&&n["return"])n["return"]()}finally{if(a)throw t}}return r}return function(e,r){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return u(e,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();function a(u){if(Array.isArray(u)){for(var e=0,r=Array(u.length);e/,function(){var u=t.slice(3,-1);F(u,this.getCurrentState());return"NAMED_GROUP_REF"}],[/^\\b/,function(){return"ESC_b"}],[/^\\B/,function(){return"ESC_B"}],[/^\\c[a-zA-Z]/,function(){return"CTRL_CH"}],[/^\\0\d{1,2}/,function(){return"OCT_CODE"}],[/^\\0/,function(){return"DEC_CODE"}],[/^\\\d{1,3}/,function(){return"DEC_CODE"}],[/^\\u[dD][89abAB][0-9a-fA-F]{2}\\u[dD][c-fC-F][0-9a-fA-F]{2}/,function(){return"U_CODE_SURROGATE"}],[/^\\u\{[0-9a-fA-F]{1,}\}/,function(){return"U_CODE"}],[/^\\u[0-9a-fA-F]{4}/,function(){return"U_CODE"}],[/^\\[pP]\{\w+(?:=\w+)?\}/,function(){return"U_PROP_VALUE_EXP"}],[/^\\x[0-9a-fA-F]{2}/,function(){return"HEX_CODE"}],[/^\\[tnrdDsSwWvf]/,function(){return"META_CHAR"}],[/^\\\//,function(){return"ESC_CHAR"}],[/^\\[ #]/,function(){return"ESC_CHAR"}],[/^\\[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/,function(){return"ESC_CHAR"}],[/^\\[^*?+\[()\\|]/,function(){var u=this.getCurrentState();if(u==="u_class"&&t==="\\-"){return"ESC_CHAR"}else if(u==="u"||u==="xu"||u==="u_class"){throw new SyntaxError("invalid Unicode escape "+t)}return"ESC_CHAR"}],[/^\(/,function(){return"CHAR"}],[/^\)/,function(){return"CHAR"}],[/^\(\?=/,function(){return"POS_LA_ASSERT"}],[/^\(\?!/,function(){return"NEG_LA_ASSERT"}],[/^\(\?<=/,function(){return"POS_LB_ASSERT"}],[/^\(\?/,function(){t=t.slice(3,-1);F(t,this.getCurrentState());return"NAMED_CAPTURE_GROUP"}],[/^\(/,function(){return"L_PAREN"}],[/^\)/,function(){return"R_PAREN"}],[/^[*?+[^$]/,function(){return"CHAR"}],[/^\\\]/,function(){return"ESC_CHAR"}],[/^\]/,function(){this.popState();return"R_BRACKET"}],[/^\^/,function(){return"BOS"}],[/^\$/,function(){return"EOS"}],[/^\*/,function(){return"STAR"}],[/^\?/,function(){return"Q_MARK"}],[/^\+/,function(){return"PLUS"}],[/^\|/,function(){return"BAR"}],[/^\./,function(){return"ANY"}],[/^\//,function(){return"SLASH"}],[/^[^*?+\[()\\|]/,function(){return"CHAR"}],[/^\[\^/,function(){var u=this.getCurrentState();this.pushState(u==="u"||u==="xu"?"u_class":"class");return"NEG_CLASS"}],[/^\[/,function(){var u=this.getCurrentState();this.pushState(u==="u"||u==="xu"?"u_class":"class");return"L_BRACKET"}]];var y={INITIAL:[8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u:[8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],xu:[0,1,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],x:[0,1,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u_class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,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],class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,20,22,23,24,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]};var m={type:s,value:""};v={initString:function u(e){this._string=e;this._cursor=0;this._states=["INITIAL"];this._tokensQueue=[];this._currentLine=1;this._currentColumn=0;this._currentLineBeginOffset=0;this._tokenStartOffset=0;this._tokenEndOffset=0;this._tokenStartLine=1;this._tokenEndLine=1;this._tokenStartColumn=0;this._tokenEndColumn=0;return this},getStates:function u(){return this._states},getCurrentState:function u(){return this._states[this._states.length-1]},pushState:function u(e){this._states.push(e)},begin:function u(e){this.pushState(e)},popState:function u(){if(this._states.length>1){return this._states.pop()}return this._states[0]},getNextToken:function u(){if(this._tokensQueue.length>0){return this.onToken(this._toToken(this._tokensQueue.shift()))}if(!this.hasMoreTokens()){return this.onToken(m)}var e=this._string.slice(this._cursor);var r=y[this.getCurrentState()];for(var d=0;d0){var l;(l=this._tokensQueue).unshift.apply(l,a(s))}}return this.onToken(this._toToken(o,t))}}if(this.isEOF()){this._cursor++;return m}this.throwUnexpectedToken(e[0],this._currentLine,this._currentColumn)},throwUnexpectedToken:function u(e,r,d){var a=this._string.split("\n")[r-1];var t="";if(a){var n=" ".repeat(d);t="\n\n"+a+"\n"+n+"^\n"}throw new SyntaxError(t+'Unexpected token: "'+e+'" '+("at "+r+":"+d+"."))},getCursor:function u(){return this._cursor},getCurrentLine:function u(){return this._currentLine},getCurrentColumn:function u(){return this._currentColumn},_captureLocation:function u(e){var r=/\n/g;this._tokenStartOffset=this._cursor;this._tokenStartLine=this._currentLine;this._tokenStartColumn=this._tokenStartOffset-this._currentLineBeginOffset;var d=void 0;while((d=r.exec(e))!==null){this._currentLine++;this._currentLineBeginOffset=this._tokenStartOffset+d.index+1}this._tokenEndOffset=this._cursor+e.length;this._tokenEndLine=this._currentLine;this._tokenEndColumn=this._currentColumn=this._tokenEndOffset-this._currentLineBeginOffset},_toToken:function u(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";return{type:e,value:r,startOffset:this._tokenStartOffset,endOffset:this._tokenEndOffset,startLine:this._tokenStartLine,endLine:this._tokenEndLine,startColumn:this._tokenStartColumn,endColumn:this._tokenEndColumn}},isEOF:function u(){return this._cursor===this._string.length},hasMoreTokens:function u(){return this._cursor<=this._string.length},_match:function u(e,r){var d=e.match(r);if(d){this._captureLocation(d[0]);this._cursor+=d[0].length;return d[0]}return null},onToken:function u(e){return e}};f.lexer=v;f.tokenizer=v;f.options={captureLocations:true};var _={setOptions:function u(e){f.options=e;return this},getOptions:function u(){return f.options},parse:function u(e,r){if(!v){throw new Error("Tokenizer instance wasn't specified.")}v.initString(e);var d=f.options;if(r){f.options=Object.assign({},f.options,r)}_.onParseBegin(e,v,f.options);h.length=0;h.push(0);var o=v.getNextToken();var s=null;do{if(!o){f.options=d;H()}var g=h[h.length-1];var y=b[o.type];if(!p[g].hasOwnProperty(y)){f.options=d;U(o)}var m=p[g][y];if(m[0]==="s"){var C=null;if(f.options.captureLocations){C={startOffset:o.startOffset,endOffset:o.endOffset,startLine:o.startLine,endLine:o.endLine,startColumn:o.startColumn,endColumn:o.endColumn}}s=this.onShift(o);h.push({symbol:b[s.type],semanticValue:s.value,loc:C},Number(m.slice(1)));o=v.getNextToken()}else if(m[0]==="r"){var S=m.slice(1);var x=l[S];var A=typeof x[2]==="function";var k=A?[]:null;var P=A&&f.options.captureLocations?[]:null;if(x[1]!==0){var w=x[1];while(w-- >0){h.pop();var E=h.pop();if(A){k.unshift(E.semanticValue);if(P){P.unshift(E.loc)}}}}var T={symbol:x[0]};if(A){t=s?s.value:null;n=s?s.value.length:null;var O=P!==null?k.concat(P):k;x[2].apply(x,a(O));T.semanticValue=i;if(P){T.loc=c}}var R=h[h.length-1];var N=x[0];h.push(T,p[R][N])}else if(m==="acc"){h.pop();var L=h.pop();if(h.length!==1||h[0]!==0||v.hasMoreTokens()){f.options=d;U(o)}if(L.hasOwnProperty("semanticValue")){f.options=d;_.onParseEnd(L.semanticValue);return L.semanticValue}_.onParseEnd();f.options=d;return true}}while(v.hasMoreTokens()||h.length>1)},setTokenizer:function u(e){v=e;return _},getTokenizer:function u(){return v},onParseBegin:function u(e,r,d){},onParseEnd:function u(e){},onShift:function u(e){return e}};var C=0;var S={};var x="";_.onParseBegin=function(u,e){x=u;C=0;S={};var r=u.lastIndexOf("/");var d=u.slice(r);if(d.includes("x")&&d.includes("u")){e.pushState("xu")}else{if(d.includes("x")){e.pushState("x")}if(d.includes("u")){e.pushState("u")}}};_.onShift=function(u){if(u.type==="L_PAREN"||u.type==="NAMED_CAPTURE_GROUP"){u.value=new String(u.value);u.value.groupNumber=++C}return u};function A(u){var e=u.match(/\d+/g).map(Number);if(Number.isFinite(e[1])&&e[1]e.codePoint){throw new SyntaxError("Range "+u.value+"-"+e.value+" out of order in character class")}}var P=r(37047);function w(u,e){var r=u[1]==="P";var d=u.indexOf("=");var a=u.slice(3,d!==-1?d:-1);var t=void 0;var n=d===-1&&P.isGeneralCategoryValue(a);var f=d===-1&&P.isBinaryPropertyName(a);if(n){t=a;a="General_Category"}else if(f){t=a}else{if(!P.isValidName(a)){throw new SyntaxError("Invalid unicode property name: "+a+".")}t=u.slice(d+1,-1);if(!P.isValidValue(a,t)){throw new SyntaxError("Invalid "+a+" unicode property value: "+t+".")}}return j({type:"UnicodeProperty",name:a,value:t,negative:r,shorthand:n,binary:f,canonicalName:P.getCanonicalName(a)||a,canonicalValue:P.getCanonicalValue(t)||t},e)}function E(u,e,r){var a=void 0;var t=void 0;switch(e){case"decimal":{t=Number(u.slice(1));a=String.fromCodePoint(t);break}case"oct":{t=parseInt(u.slice(1),8);a=String.fromCodePoint(t);break}case"hex":case"unicode":{if(u.lastIndexOf("\\u")>0){var n=u.split("\\u").slice(1),f=d(n,2),i=f[0],c=f[1];i=parseInt(i,16);c=parseInt(c,16);t=(i-55296)*1024+(c-56320)+65536;a=String.fromCodePoint(t)}else{var o=u.slice(2).replace("{","");t=parseInt(o,16);if(t>1114111){throw new SyntaxError("Bad character escape sequence: "+u)}a=String.fromCodePoint(t)}break}case"meta":{switch(u){case"\\t":a="\t";t=a.codePointAt(0);break;case"\\n":a="\n";t=a.codePointAt(0);break;case"\\r":a="\r";t=a.codePointAt(0);break;case"\\v":a="\v";t=a.codePointAt(0);break;case"\\f":a="\f";t=a.codePointAt(0);break;case"\\b":a="\b";t=a.codePointAt(0);case"\\0":a="\0";t=0;case".":a=".";t=NaN;break;default:t=NaN}break}case"simple":{a=u;t=a.codePointAt(0);break}}return j({type:"Char",value:u,kind:e,symbol:a,codePoint:t},r)}var T="gimsuxy";function O(u){var e=new Set;var r=true;var d=false;var a=undefined;try{for(var t=u[Symbol.iterator](),n;!(r=(n=t.next()).done);r=true){var f=n.value;if(e.has(f)||!T.includes(f)){throw new SyntaxError("Invalid flags: "+u)}e.add(f)}}catch(i){d=true;a=i}finally{try{if(!r&&t.return){t.return()}}finally{if(d){throw a}}}return u.split("").sort().join("")}function R(u,e){var r=Number(u.slice(1));if(r>0&&r<=C){return j({type:"Backreference",kind:"number",number:r,reference:r},e)}return E(u,"decimal",e)}var N=/^\\u[0-9a-fA-F]{4}/;var L=/^\\u\{[0-9a-fA-F]{1,}\}/;var I=/\\u\{[0-9a-fA-F]{1,}\}/;function F(u,e){var r=I.test(u);var d=e==="u"||e==="xu"||e==="u_class";if(r&&!d){throw new SyntaxError('invalid group Unicode name "'+u+'", use `u` flag.')}return u}var D=/\\u(?:([dD][89aAbB][0-9a-fA-F]{2})\\u([dD][c-fC-F][0-9a-fA-F]{2})|([dD][89aAbB][0-9a-fA-F]{2})|([dD][c-fC-F][0-9a-fA-F]{2})|([0-9a-ce-fA-CE-F][0-9a-fA-F]{3}|[dD][0-7][0-9a-fA-F]{2})|\{(0*(?:[0-9a-fA-F]{1,5}|10[0-9a-fA-F]{4}))\})/;function M(u){return u.replace(new RegExp(D,"g"),(function(u,e,r,d,a,t,n){if(e){return String.fromCodePoint(parseInt(e,16),parseInt(r,16))}if(d){return String.fromCodePoint(parseInt(d,16))}if(a){return String.fromCodePoint(parseInt(a,16))}if(t){return String.fromCodePoint(parseInt(t,16))}if(n){return String.fromCodePoint(parseInt(n,16))}return u}))}function G(u,e){var r=u.slice(3,-1);var d=M(r);if(S.hasOwnProperty(d)){return j({type:"Backreference",kind:"name",number:S[d],reference:d,referenceRaw:r},e)}var a=null;var t=null;var n=null;var f=null;if(e){a=e.startOffset;t=e.startLine;n=e.endLine;f=e.startColumn}var i=/^[\w$<>]/;var c=void 0;var o=[E(u.slice(1,2),"simple",a?{startLine:t,endLine:n,startColumn:f,startOffset:a,endOffset:a+=2,endColumn:f+=2}:null)];o[0].escaped=true;u=u.slice(2);while(u.length>0){var s=null;if((s=u.match(N))||(s=u.match(L))){if(a){c={startLine:t,endLine:n,startColumn:f,startOffset:a,endOffset:a+=s[0].length,endColumn:f+=s[0].length}}o.push(E(s[0],"unicode",c));u=u.slice(s[0].length)}else if(s=u.match(i)){if(a){c={startLine:t,endLine:n,startColumn:f,startOffset:a,endOffset:++a,endColumn:++f}}o.push(E(s[0],"simple",c));u=u.slice(1)}}return o}function j(u,e){if(f.options.captureLocations){u.loc={source:x.slice(e.startOffset,e.endOffset),start:{line:e.startLine,column:e.startColumn,offset:e.startOffset},end:{line:e.endLine,column:e.endColumn,offset:e.endOffset}}}return u}function B(u,e){if(!f.options.captureLocations){return null}return{startOffset:u.startOffset,endOffset:e.endOffset,startLine:u.startLine,endLine:e.endLine,startColumn:u.startColumn,endColumn:e.endColumn}}function U(u){if(u.type===s){H()}v.throwUnexpectedToken(u.value,u.startLine,u.startColumn)}function H(){q("Unexpected end of input.")}function q(u){throw new SyntaxError(u)}u.exports=_},23810:(u,e,r)=>{var d=r(97e3);var a=d.parse.bind(d);d.parse=function(u,e){return a(""+u,e)};d.setOptions({captureLocations:false});u.exports=d},37047:u=>{var e={General_Category:"gc",Script:"sc",Script_Extensions:"scx"};var r=c(e);var d={ASCII:"ASCII",ASCII_Hex_Digit:"AHex",Alphabetic:"Alpha",Any:"Any",Assigned:"Assigned",Bidi_Control:"Bidi_C",Bidi_Mirrored:"Bidi_M",Case_Ignorable:"CI",Cased:"Cased",Changes_When_Casefolded:"CWCF",Changes_When_Casemapped:"CWCM",Changes_When_Lowercased:"CWL",Changes_When_NFKC_Casefolded:"CWKCF",Changes_When_Titlecased:"CWT",Changes_When_Uppercased:"CWU",Dash:"Dash",Default_Ignorable_Code_Point:"DI",Deprecated:"Dep",Diacritic:"Dia",Emoji:"Emoji",Emoji_Component:"Emoji_Component",Emoji_Modifier:"Emoji_Modifier",Emoji_Modifier_Base:"Emoji_Modifier_Base",Emoji_Presentation:"Emoji_Presentation",Extended_Pictographic:"Extended_Pictographic",Extender:"Ext",Grapheme_Base:"Gr_Base",Grapheme_Extend:"Gr_Ext",Hex_Digit:"Hex",IDS_Binary_Operator:"IDSB",IDS_Trinary_Operator:"IDST",ID_Continue:"IDC",ID_Start:"IDS",Ideographic:"Ideo",Join_Control:"Join_C",Logical_Order_Exception:"LOE",Lowercase:"Lower",Math:"Math",Noncharacter_Code_Point:"NChar",Pattern_Syntax:"Pat_Syn",Pattern_White_Space:"Pat_WS",Quotation_Mark:"QMark",Radical:"Radical",Regional_Indicator:"RI",Sentence_Terminal:"STerm",Soft_Dotted:"SD",Terminal_Punctuation:"Term",Unified_Ideograph:"UIdeo",Uppercase:"Upper",Variation_Selector:"VS",White_Space:"space",XID_Continue:"XIDC",XID_Start:"XIDS"};var a=c(d);var t={Cased_Letter:"LC",Close_Punctuation:"Pe",Connector_Punctuation:"Pc",Control:["Cc","cntrl"],Currency_Symbol:"Sc",Dash_Punctuation:"Pd",Decimal_Number:["Nd","digit"],Enclosing_Mark:"Me",Final_Punctuation:"Pf",Format:"Cf",Initial_Punctuation:"Pi",Letter:"L",Letter_Number:"Nl",Line_Separator:"Zl",Lowercase_Letter:"Ll",Mark:["M","Combining_Mark"],Math_Symbol:"Sm",Modifier_Letter:"Lm",Modifier_Symbol:"Sk",Nonspacing_Mark:"Mn",Number:"N",Open_Punctuation:"Ps",Other:"C",Other_Letter:"Lo",Other_Number:"No",Other_Punctuation:"Po",Other_Symbol:"So",Paragraph_Separator:"Zp",Private_Use:"Co",Punctuation:["P","punct"],Separator:"Z",Space_Separator:"Zs",Spacing_Mark:"Mc",Surrogate:"Cs",Symbol:"S",Titlecase_Letter:"Lt",Unassigned:"Cn",Uppercase_Letter:"Lu"};var n=c(t);var f={Adlam:"Adlm",Ahom:"Ahom",Anatolian_Hieroglyphs:"Hluw",Arabic:"Arab",Armenian:"Armn",Avestan:"Avst",Balinese:"Bali",Bamum:"Bamu",Bassa_Vah:"Bass",Batak:"Batk",Bengali:"Beng",Bhaiksuki:"Bhks",Bopomofo:"Bopo",Brahmi:"Brah",Braille:"Brai",Buginese:"Bugi",Buhid:"Buhd",Canadian_Aboriginal:"Cans",Carian:"Cari",Caucasian_Albanian:"Aghb",Chakma:"Cakm",Cham:"Cham",Cherokee:"Cher",Common:"Zyyy",Coptic:["Copt","Qaac"],Cuneiform:"Xsux",Cypriot:"Cprt",Cyrillic:"Cyrl",Deseret:"Dsrt",Devanagari:"Deva",Dogra:"Dogr",Duployan:"Dupl",Egyptian_Hieroglyphs:"Egyp",Elbasan:"Elba",Ethiopic:"Ethi",Georgian:"Geor",Glagolitic:"Glag",Gothic:"Goth",Grantha:"Gran",Greek:"Grek",Gujarati:"Gujr",Gunjala_Gondi:"Gong",Gurmukhi:"Guru",Han:"Hani",Hangul:"Hang",Hanifi_Rohingya:"Rohg",Hanunoo:"Hano",Hatran:"Hatr",Hebrew:"Hebr",Hiragana:"Hira",Imperial_Aramaic:"Armi",Inherited:["Zinh","Qaai"],Inscriptional_Pahlavi:"Phli",Inscriptional_Parthian:"Prti",Javanese:"Java",Kaithi:"Kthi",Kannada:"Knda",Katakana:"Kana",Kayah_Li:"Kali",Kharoshthi:"Khar",Khmer:"Khmr",Khojki:"Khoj",Khudawadi:"Sind",Lao:"Laoo",Latin:"Latn",Lepcha:"Lepc",Limbu:"Limb",Linear_A:"Lina",Linear_B:"Linb",Lisu:"Lisu",Lycian:"Lyci",Lydian:"Lydi",Mahajani:"Mahj",Makasar:"Maka",Malayalam:"Mlym",Mandaic:"Mand",Manichaean:"Mani",Marchen:"Marc",Medefaidrin:"Medf",Masaram_Gondi:"Gonm",Meetei_Mayek:"Mtei",Mende_Kikakui:"Mend",Meroitic_Cursive:"Merc",Meroitic_Hieroglyphs:"Mero",Miao:"Plrd",Modi:"Modi",Mongolian:"Mong",Mro:"Mroo",Multani:"Mult",Myanmar:"Mymr",Nabataean:"Nbat",New_Tai_Lue:"Talu",Newa:"Newa",Nko:"Nkoo",Nushu:"Nshu",Ogham:"Ogam",Ol_Chiki:"Olck",Old_Hungarian:"Hung",Old_Italic:"Ital",Old_North_Arabian:"Narb",Old_Permic:"Perm",Old_Persian:"Xpeo",Old_Sogdian:"Sogo",Old_South_Arabian:"Sarb",Old_Turkic:"Orkh",Oriya:"Orya",Osage:"Osge",Osmanya:"Osma",Pahawh_Hmong:"Hmng",Palmyrene:"Palm",Pau_Cin_Hau:"Pauc",Phags_Pa:"Phag",Phoenician:"Phnx",Psalter_Pahlavi:"Phlp",Rejang:"Rjng",Runic:"Runr",Samaritan:"Samr",Saurashtra:"Saur",Sharada:"Shrd",Shavian:"Shaw",Siddham:"Sidd",SignWriting:"Sgnw",Sinhala:"Sinh",Sogdian:"Sogd",Sora_Sompeng:"Sora",Soyombo:"Soyo",Sundanese:"Sund",Syloti_Nagri:"Sylo",Syriac:"Syrc",Tagalog:"Tglg",Tagbanwa:"Tagb",Tai_Le:"Tale",Tai_Tham:"Lana",Tai_Viet:"Tavt",Takri:"Takr",Tamil:"Taml",Tangut:"Tang",Telugu:"Telu",Thaana:"Thaa",Thai:"Thai",Tibetan:"Tibt",Tifinagh:"Tfng",Tirhuta:"Tirh",Ugaritic:"Ugar",Vai:"Vaii",Warang_Citi:"Wara",Yi:"Yiii",Zanabazar_Square:"Zanb"};var i=c(f);function c(u){var e={};for(var r in u){if(!u.hasOwnProperty(r)){continue}var d=u[r];if(Array.isArray(d)){for(var a=0;a{var d=r(9182);var a=r(20042);var t=r(63072);var n=r(23810);var f=r(2003);var i=r(29171);var c=r(36734);var o=r(51537),s=o.RegExpTree;var l={parser:n,fa:c,TransformResult:f.TransformResult,parse:function u(e,r){return n.parse(""+e,r)},traverse:function u(e,r,d){return i.traverse(e,r,d)},transform:function u(e,r){return f.transform(e,r)},generate:function u(e){return a.generate(e)},toRegExp:function u(e){var r=this.compatTranspile(e);return new RegExp(r.getSource(),r.getFlags())},optimize:function u(e,r){var d=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},a=d.blacklist;return t.optimize(e,{whitelist:r,blacklist:a})},compatTranspile:function u(e,r){return d.transform(e,r)},exec:function u(e,r){if(typeof e==="string"){var d=this.compatTranspile(e);var a=d.getExtra();if(a.namedCapturingGroups){e=new s(d.toRegExp(),{flags:d.getFlags(),source:d.getSource(),groups:a.namedCapturingGroups})}else{e=d.toRegExp()}}return e.exec(r)}};u.exports=l},2003:(u,e,r)=>{var d=function(){function u(u,e){for(var r=0;r1&&arguments[1]!==undefined?arguments[1]:null;a(this,u);this._ast=e;this._source=null;this._string=null;this._regexp=null;this._extra=r}d(u,[{key:"getAST",value:function u(){return this._ast}},{key:"setExtra",value:function u(e){this._extra=e}},{key:"getExtra",value:function u(){return this._extra}},{key:"toRegExp",value:function u(){if(!this._regexp){this._regexp=new RegExp(this.getSource(),this._ast.flags)}return this._regexp}},{key:"getSource",value:function u(){if(!this._source){this._source=t.generate(this._ast.body)}return this._source}},{key:"getFlags",value:function u(){return this._ast.flags}},{key:"toString",value:function u(){if(!this._string){this._string=t.generate(this._ast)}return this._string}}]);return u}();u.exports={TransformResult:i,transform:function u(e,r){var d=e;if(e instanceof RegExp){e=""+e}if(typeof e==="string"){d=n.parse(e,{captureLocations:true})}f.traverse(d,r);return new i(d)}}},33166:u=>{function e(u){if(Array.isArray(u)){for(var e=0,r=Array(u.length);e{var d=r(41059);function a(u){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=e.pre;var a=e.post;var t=e.skipProperty;function n(u,e,f,i){if(!u||typeof u.type!=="string"){return}var c=undefined;if(r){c=r(u,e,f,i)}if(c!==false){if(e&&e[f]){if(!isNaN(i)){u=e[f][i]}else{u=e[f]}}for(var o in u){if(u.hasOwnProperty(o)){if(t?t(o,u):o[0]==="$"){continue}var s=u[o];if(Array.isArray(s)){var l=0;d.traversingIndexStack.push(l);while(l2&&arguments[2]!==undefined?arguments[2]:{asNodes:false};if(!Array.isArray(r)){r=[r]}r=r.filter((function(u){if(typeof u.shouldRun!=="function"){return true}return u.shouldRun(e)}));d.initRegistry();r.forEach((function(u){if(typeof u.init==="function"){u.init(e)}}));function n(u,e,r,a){var t=d.getForNode(e);var n=d.getForNode(u,t,r,a);return n}a(e,{pre:function u(e,d,a,f){var i=void 0;if(!t.asNodes){i=n(e,d,a,f)}var c=true;var o=false;var s=undefined;try{for(var l=r[Symbol.iterator](),b;!(c=(b=l.next()).done);c=true){var p=b.value;if(typeof p["*"]==="function"){if(i){if(!i.isRemoved()){var h=p["*"](i);if(h===false){return false}}}else{p["*"](e,d,a,f)}}var v=void 0;if(typeof p[e.type]==="function"){v=p[e.type]}else if(typeof p[e.type]==="object"&&typeof p[e.type].pre==="function"){v=p[e.type].pre}if(v){if(i){if(!i.isRemoved()){var g=v.call(p,i);if(g===false){return false}}}else{v.call(p,e,d,a,f)}}}}catch(y){o=true;s=y}finally{try{if(!c&&l.return){l.return()}}finally{if(o){throw s}}}},post:function u(e,d,a,f){if(!e){return}var i=void 0;if(!t.asNodes){i=n(e,d,a,f)}var c=true;var o=false;var s=undefined;try{for(var l=r[Symbol.iterator](),b;!(c=(b=l.next()).done);c=true){var p=b.value;var h=void 0;if(typeof p[e.type]==="object"&&typeof p[e.type].post==="function"){h=p[e.type].post}if(h){if(i){if(!i.isRemoved()){var v=h.call(p,i);if(v===false){return false}}}else{h.call(p,e,d,a,f)}}}}catch(g){o=true;s=g}finally{try{if(!c&&l.return){l.return()}}finally{if(o){throw s}}}},skipProperty:function u(e){return e==="loc"}})}}},41059:u=>{var e=function(){function u(u,e){for(var r=0;r1&&arguments[1]!==undefined?arguments[1]:null;var a=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var t=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;r(this,u);this.node=e;this.parentPath=d;this.parent=d?d.node:null;this.property=a;this.index=t}e(u,[{key:"_enforceProp",value:function u(e){if(!this.node.hasOwnProperty(e)){throw new Error("Node of type "+this.node.type+" doesn't have \""+e+'" collection.')}}},{key:"setChild",value:function e(r){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var f=void 0;if(t!=null){if(!n){n=d}this._enforceProp(n);this.node[n][t]=r;f=u.getForNode(r,this,n,t)}else{if(!n){n=a}this._enforceProp(n);this.node[n]=r;f=u.getForNode(r,this,n,null)}return f}},{key:"appendChild",value:function u(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;if(!r){r=d}this._enforceProp(r);var a=this.node[r].length;return this.setChild(e,a,r)}},{key:"insertChildAt",value:function e(r,a){var t=arguments.length>2&&arguments[2]!==undefined?arguments[2]:d;this._enforceProp(t);this.node[t].splice(a,0,r);if(a<=u.getTraversingIndex()){u.updateTraversingIndex(+1)}this._rebuildIndex(this.node,t)}},{key:"remove",value:function e(){if(this.isRemoved()){return}u.registry.delete(this.node);this.node=null;if(!this.parent){return}if(this.index!==null){this.parent[this.property].splice(this.index,1);if(this.index<=u.getTraversingIndex()){u.updateTraversingIndex(-1)}this._rebuildIndex(this.parent,this.property);this.index=null;this.property=null;return}delete this.parent[this.property];this.property=null}},{key:"_rebuildIndex",value:function e(r,d){var a=u.getForNode(r);for(var t=0;t0&&arguments[0]!==undefined?arguments[0]:0;if(this.node.expressions){return u.getForNode(this.node.expressions[r],this,d,r)}else if(this.node.expression&&r==0){return u.getForNode(this.node.expression,this,a)}return null}},{key:"hasEqualSource",value:function u(e){return JSON.stringify(this.node,n)===JSON.stringify(e.node,n)}},{key:"jsonEncode",value:function u(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},r=e.format,d=e.useLoc;return JSON.stringify(this.node,d?null:n,r)}},{key:"getPreviousSibling",value:function e(){if(!this.parent||this.index==null){return null}return u.getForNode(this.parent[this.property][this.index-1],u.getForNode(this.parent),this.property,this.index-1)}},{key:"getNextSibling",value:function e(){if(!this.parent||this.index==null){return null}return u.getForNode(this.parent[this.property][this.index+1],u.getForNode(this.parent),this.property,this.index+1)}}],[{key:"getForNode",value:function e(r){var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var a=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var t=arguments.length>3&&arguments[3]!==undefined?arguments[3]:-1;if(!r){return null}if(!u.registry.has(r)){u.registry.set(r,new u(r,d,a,t==-1?null:t))}var n=u.registry.get(r);if(d!==null){n.parentPath=d;n.parent=n.parentPath.node}if(a!==null){n.property=a}if(t>=0){n.index=t}return n}},{key:"initRegistry",value:function e(){if(!u.registry){u.registry=new Map}u.registry.clear()}},{key:"updateTraversingIndex",value:function e(r){return u.traversingIndexStack[u.traversingIndexStack.length-1]+=r}},{key:"getTraversingIndex",value:function e(){return u.traversingIndexStack[u.traversingIndexStack.length-1]}}]);return u}();t.initRegistry();t.traversingIndexStack=[];function n(u,e){if(u==="loc"){return undefined}return e}u.exports=t},1379:u=>{u.exports=function u(e){if(e===null||typeof e!=="object"){return e}var r=void 0;if(Array.isArray(e)){r=[]}else{r={}}for(var d in e){r[d]=u(e[d])}return r}},34999:(u,e,r)=>{u.exports=r(54676)}}]); \ No newline at end of file diff --git a/share/jupyter/lab/static/9892.6d289e7baed8c64d88e2.js.LICENSE.txt b/share/jupyter/lab/static/9892.6d289e7baed8c64d88e2.js.LICENSE.txt new file mode 100644 index 0000000..5ef2b40 --- /dev/null +++ b/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/share/jupyter/lab/static/a009bea404f7a500ded4.woff b/share/jupyter/lab/static/a009bea404f7a500ded4.woff new file mode 100644 index 0000000..e62ff5f Binary files /dev/null and b/share/jupyter/lab/static/a009bea404f7a500ded4.woff differ diff --git a/share/jupyter/lab/static/a3b9817780214caf01e8.svg b/share/jupyter/lab/static/a3b9817780214caf01e8.svg new file mode 100644 index 0000000..b9881a4 --- /dev/null +++ b/share/jupyter/lab/static/a3b9817780214caf01e8.svg @@ -0,0 +1,3717 @@ + + + + +Created by FontForge 20201107 at Wed Aug 4 12:25:29 2021 + By Robert Madole +Copyright (c) Font Awesome + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/share/jupyter/lab/static/af04542b29eaac04550a.woff b/share/jupyter/lab/static/af04542b29eaac04550a.woff new file mode 100644 index 0000000..57819c5 Binary files /dev/null and b/share/jupyter/lab/static/af04542b29eaac04550a.woff differ diff --git a/share/jupyter/lab/static/af6397503fcefbd61397.ttf b/share/jupyter/lab/static/af6397503fcefbd61397.ttf new file mode 100644 index 0000000..25abf38 Binary files /dev/null and b/share/jupyter/lab/static/af6397503fcefbd61397.ttf differ diff --git a/share/jupyter/lab/static/af96f67d7accf5fd2a4a.woff b/share/jupyter/lab/static/af96f67d7accf5fd2a4a.woff new file mode 100644 index 0000000..a9d1f34 Binary files /dev/null and b/share/jupyter/lab/static/af96f67d7accf5fd2a4a.woff differ diff --git a/share/jupyter/lab/static/b418136e3b384baaadec.woff b/share/jupyter/lab/static/b418136e3b384baaadec.woff new file mode 100644 index 0000000..d1ff7c6 Binary files /dev/null and b/share/jupyter/lab/static/b418136e3b384baaadec.woff differ diff --git a/share/jupyter/lab/static/be0a084962d8066884f7.svg b/share/jupyter/lab/static/be0a084962d8066884f7.svg new file mode 100644 index 0000000..463af27 --- /dev/null +++ b/share/jupyter/lab/static/be0a084962d8066884f7.svg @@ -0,0 +1,801 @@ + + + + +Created by FontForge 20201107 at Wed Aug 4 12:25:29 2021 + By Robert Madole +Copyright (c) Font Awesome + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/share/jupyter/lab/static/bootstrap.js b/share/jupyter/lab/static/bootstrap.js new file mode 100644 index 0000000..9a5ae3e --- /dev/null +++ b/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/share/jupyter/lab/static/build_log.json b/share/jupyter/lab/static/build_log.json new file mode 100644 index 0000000..e95b38b --- /dev/null +++ b/share/jupyter/lab/static/build_log.json @@ -0,0 +1,817 @@ +[ + { + "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.5.1", + "singleton": true + }, + "@jupyterlab/application-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/apputils": { + "requiredVersion": "~4.6.1", + "singleton": true + }, + "@jupyterlab/apputils-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/attachments": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/audio-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/cell-toolbar": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/cell-toolbar-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/cells": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/celltags-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/codeeditor": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/codemirror": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/codemirror-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/completer": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/completer-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/console": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/console-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/coreutils": { + "requiredVersion": "~6.5.1", + "singleton": true + }, + "@jupyterlab/csvviewer": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/csvviewer-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/debugger": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/debugger-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/docmanager": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/docmanager-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/docregistry": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/documentsearch": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/documentsearch-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/extensionmanager": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/extensionmanager-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/filebrowser": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/filebrowser-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/fileeditor": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/fileeditor-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/help-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/htmlviewer": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/htmlviewer-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/hub-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/imageviewer": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/imageviewer-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/inspector": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/inspector-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/javascript-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/json-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/launcher": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/launcher-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/logconsole": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/logconsole-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/lsp": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/lsp-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/mainmenu": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/mainmenu-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/markdownviewer": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/markdownviewer-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/markedparser-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/mathjax-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/mermaid": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/mermaid-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/metadataform": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/metadataform-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/metapackage": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/nbconvert-css": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/nbformat": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/notebook": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/notebook-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/observables": { + "requiredVersion": "~5.5.1" + }, + "@jupyterlab/outputarea": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/pdf-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/pluginmanager": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/pluginmanager-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/property-inspector": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/rendermime": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/rendermime-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/rendermime-interfaces": { + "requiredVersion": "~3.13.1", + "singleton": true + }, + "@jupyterlab/running": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/running-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/services": { + "requiredVersion": "~7.5.1", + "singleton": true + }, + "@jupyterlab/services-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/settingeditor": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/settingeditor-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/settingregistry": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/shortcuts-extension": { + "requiredVersion": "~5.3.1" + }, + "@jupyterlab/statedb": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/statusbar": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/statusbar-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/terminal": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/terminal-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/theme-dark-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/theme-dark-high-contrast-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/theme-light-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/toc": { + "requiredVersion": "~6.5.1", + "singleton": true + }, + "@jupyterlab/toc-extension": { + "requiredVersion": "~6.5.1" + }, + "@jupyterlab/tooltip": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/tooltip-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/translation": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/translation-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/ui-components": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/ui-components-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/vega5-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/video-extension": { + "requiredVersion": "~4.5.1" + }, + "@jupyterlab/workspaces": { + "requiredVersion": "~4.5.1", + "singleton": true + }, + "@jupyterlab/workspaces-extension": { + "requiredVersion": "~4.5.1" + }, + "@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.1", + "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.1", + "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.1", + "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": "^16.2.1" + }, + "marked-gfm-heading-id": { + "requiredVersion": "^4.1.2" + }, + "marked-mangle": { + "requiredVersion": "^1.1.11" + }, + "mathjax-full": { + "requiredVersion": "^3.2.2" + }, + "@xterm/addon-search": { + "requiredVersion": "~0.15.0" + }, + "color": { + "requiredVersion": "^5.0.0" + }, + "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/share/jupyter/lab/static/c49810b53ecc0d87d802.woff b/share/jupyter/lab/static/c49810b53ecc0d87d802.woff new file mode 100644 index 0000000..e735ddf Binary files /dev/null and b/share/jupyter/lab/static/c49810b53ecc0d87d802.woff differ diff --git a/share/jupyter/lab/static/c56da8d69f1a0208b8e0.woff b/share/jupyter/lab/static/c56da8d69f1a0208b8e0.woff new file mode 100644 index 0000000..510a8da Binary files /dev/null and b/share/jupyter/lab/static/c56da8d69f1a0208b8e0.woff differ diff --git a/share/jupyter/lab/static/cb9e9e693192413cde2b.woff b/share/jupyter/lab/static/cb9e9e693192413cde2b.woff new file mode 100644 index 0000000..ad077c6 Binary files /dev/null and b/share/jupyter/lab/static/cb9e9e693192413cde2b.woff differ diff --git a/share/jupyter/lab/static/cda59d6efffa685830fd.ttf b/share/jupyter/lab/static/cda59d6efffa685830fd.ttf new file mode 100644 index 0000000..8d75ded Binary files /dev/null and b/share/jupyter/lab/static/cda59d6efffa685830fd.ttf differ diff --git a/share/jupyter/lab/static/e4299464e7b012968eed.eot b/share/jupyter/lab/static/e4299464e7b012968eed.eot new file mode 100644 index 0000000..cba6c6c Binary files /dev/null and b/share/jupyter/lab/static/e4299464e7b012968eed.eot differ diff --git a/share/jupyter/lab/static/e42a88444448ac3d6054.woff2 b/share/jupyter/lab/static/e42a88444448ac3d6054.woff2 new file mode 100644 index 0000000..5632894 Binary files /dev/null and b/share/jupyter/lab/static/e42a88444448ac3d6054.woff2 differ diff --git a/share/jupyter/lab/static/e8711bbb871afd8e9dea.ttf b/share/jupyter/lab/static/e8711bbb871afd8e9dea.ttf new file mode 100644 index 0000000..7157aaf Binary files /dev/null and b/share/jupyter/lab/static/e8711bbb871afd8e9dea.ttf differ diff --git a/share/jupyter/lab/static/f9217f66874b0c01cd8c.woff b/share/jupyter/lab/static/f9217f66874b0c01cd8c.woff new file mode 100644 index 0000000..3375bef Binary files /dev/null and b/share/jupyter/lab/static/f9217f66874b0c01cd8c.woff differ diff --git a/share/jupyter/lab/static/fc6ddf5df402b263cfb1.woff b/share/jupyter/lab/static/fc6ddf5df402b263cfb1.woff new file mode 100644 index 0000000..22e5eff Binary files /dev/null and b/share/jupyter/lab/static/fc6ddf5df402b263cfb1.woff differ diff --git a/share/jupyter/lab/static/index.html b/share/jupyter/lab/static/index.html new file mode 100644 index 0000000..198ad4f --- /dev/null +++ b/share/jupyter/lab/static/index.html @@ -0,0 +1,25 @@ +JupyterLab{# Copy so we do not modify the page_config with updates. #} {% set page_config_full = page_config.copy() %} {# Set a dummy variable - we just want the side effect of the update. #} {% set _ = page_config_full.update(baseUrl=base_url, wsUrl=ws_url) %}{% block favicon %}{% endblock %} {% if custom_css %}{% endif %} \ No newline at end of file diff --git a/share/jupyter/lab/static/index.out.js b/share/jupyter/lab/static/index.out.js new file mode 100644 index 0000000..5b5438b --- /dev/null +++ b/share/jupyter/lab/static/index.out.js @@ -0,0 +1,848 @@ +// 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. + */ + +import { PageConfig, JupyterPluginRegistry} from '@jupyterlab/coreutils'; + +import './style.js'; + +async function createModule(scope, module) { + try { + const factory = await window._JUPYTERLAB[scope].get(module); + const instance = factory(); + instance.__scope__ = scope; + return instance; + } catch(e) { + console.warn(`Failed to create module: package: ${scope}; module: ${module}`); + throw e; + } +} + +/** + * The main entry point for the application. + */ +export async function main() { + + // Handle a browser test. + // Set up error handling prior to loading extensions. + var browserTest = PageConfig.getOption('browserTest'); + if (browserTest.toLowerCase() === 'true') { + var el = document.createElement('div'); + el.id = 'browserTest'; + document.body.appendChild(el); + el.textContent = '[]'; + el.style.display = 'none'; + var errors = []; + var reported = false; + var timeout = 25000; + + var report = function() { + if (reported) { + return; + } + reported = true; + el.className = 'completed'; + } + + window.onerror = function(msg, url, line, col, error) { + errors.push(String(error)); + el.textContent = JSON.stringify(errors) + }; + console.error = function(message) { + errors.push(String(message)); + el.textContent = JSON.stringify(errors) + }; + } + + var pluginRegistry = new JupyterPluginRegistry(); + var JupyterLab = require('@jupyterlab/application').JupyterLab; + var disabled = []; + var deferred = []; + var ignorePlugins = []; + var register = []; + + + const federatedExtensionPromises = []; + const federatedMimeExtensionPromises = []; + const federatedStylePromises = []; + + // Start initializing the federated extensions + const extensions = JSON.parse( + PageConfig.getOption('federated_extensions') + ); + + // Keep a mapping of renamed plugin ids to ensure user configs don't break. + // The mapping is defined in the main index.js for JupyterLab, since it may not be relevant for + // other lab-based applications (they may not use the same set of plugins). + const renamedPluginIds = { + '@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' + }; + + // Transparently handle the case of renamed plugins, so current configs don't break. + // And emit a warning in the dev tools console to notify about the rename so + // users can update their config. + const disabledExtensions = PageConfig.Extension.disabled.map(id => { + if (renamedPluginIds[id]) { + console.warn(`Plugin ${id} has been renamed to ${renamedPluginIds[id]}. Consider updating your config to use the new name.`); + return renamedPluginIds[id]; + } + return id; + }); + + const deferredExtensions = PageConfig.Extension.deferred.map(id => { + if (renamedPluginIds[id]) { + console.warn(`Plugin id ${id} has been renamed to ${renamedPluginIds[id]}. Consider updating your config to use the new name.`); + return renamedPluginIds[id]; + } + return id; + }); + + // This is basically a copy of PageConfig.Extension.isDisabled to + // take into account the case of renamed plugins. + const isPluginDisabled = (id) => { + const separatorIndex = id.indexOf(':'); + let extName = ''; + if (separatorIndex !== -1) { + extName = id.slice(0, separatorIndex); + } + return disabledExtensions.some(val => val === id || (extName && val === extName)); + } + + // This is basically a copy of PageConfig.Extension.isDeferred to + // take into account the case of renamed plugins. + const isPluginDeferred = (id) => { + const separatorIndex = id.indexOf(':'); + let extName = ''; + if (separatorIndex !== -1) { + extName = id.slice(0, separatorIndex); + } + return deferredExtensions.some(val => val === id || (extName && val === extName)); + } + + const queuedFederated = []; + + extensions.forEach(data => { + if (data.extension) { + queuedFederated.push(data.name); + federatedExtensionPromises.push(createModule(data.name, data.extension)); + } + if (data.mimeExtension) { + queuedFederated.push(data.name); + federatedMimeExtensionPromises.push(createModule(data.name, data.mimeExtension)); + } + + if (data.style && !isPluginDisabled(data.name)) { + federatedStylePromises.push(createModule(data.name, data.style)); + } + }); + + const allPlugins = []; + + /** + * Get the plugins from an extension. + */ + function getPlugins(extension) { + // Handle commonjs or es2015 modules + let exports; + if (extension.hasOwnProperty('__esModule')) { + exports = extension.default; + } else { + // CommonJS exports. + exports = extension; + } + + return Array.isArray(exports) ? exports : [exports]; + } + + /** + * Iterate over active plugins in an extension. + * + * #### Notes + * This also populates the disabled, deferred, and ignored arrays. + */ + function* activePlugins(extension) { + const plugins = getPlugins(extension); + for (let plugin of plugins) { + const isDisabled = isPluginDisabled(plugin.id); + allPlugins.push({ + id: plugin.id, + description: plugin.description, + requires: plugin.requires ?? [], + optional: plugin.optional ?? [], + provides: plugin.provides ?? null, + autoStart: plugin.autoStart, + enabled: !isDisabled, + extension: extension.__scope__ + }); + if (isDisabled) { + disabled.push(plugin.id); + continue; + } + if (isPluginDeferred(plugin.id)) { + deferred.push(plugin.id); + ignorePlugins.push(plugin.id); + } + yield plugin; + } + } + + // Handle the registered mime extensions. + const mimeExtensions = []; + if (!queuedFederated.includes('@jupyterlab/javascript-extension')) { + try { + let ext = require('@jupyterlab/javascript-extension'); + ext.__scope__ = '@jupyterlab/javascript-extension'; + for (let plugin of activePlugins(ext)) { + mimeExtensions.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/json-extension')) { + try { + let ext = require('@jupyterlab/json-extension'); + ext.__scope__ = '@jupyterlab/json-extension'; + for (let plugin of activePlugins(ext)) { + mimeExtensions.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/mermaid-extension')) { + try { + let ext = require('@jupyterlab/mermaid-extension/lib/mime.js'); + ext.__scope__ = '@jupyterlab/mermaid-extension'; + for (let plugin of activePlugins(ext)) { + mimeExtensions.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/pdf-extension')) { + try { + let ext = require('@jupyterlab/pdf-extension'); + ext.__scope__ = '@jupyterlab/pdf-extension'; + for (let plugin of activePlugins(ext)) { + mimeExtensions.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/vega5-extension')) { + try { + let ext = require('@jupyterlab/vega5-extension'); + ext.__scope__ = '@jupyterlab/vega5-extension'; + for (let plugin of activePlugins(ext)) { + mimeExtensions.push(plugin); + } + } catch (e) { + console.error(e); + } + } + + // Add the federated mime extensions. + const federatedMimeExtensions = await Promise.allSettled(federatedMimeExtensionPromises); + federatedMimeExtensions.forEach(p => { + if (p.status === "fulfilled") { + for (let plugin of activePlugins(p.value)) { + mimeExtensions.push(plugin); + } + } else { + console.error(p.reason); + } + }); + + // Handled the registered standard extensions. + if (!queuedFederated.includes('@jupyterlab/application-extension')) { + try { + let ext = require('@jupyterlab/application-extension'); + ext.__scope__ = '@jupyterlab/application-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/apputils-extension')) { + try { + let ext = require('@jupyterlab/apputils-extension'); + ext.__scope__ = '@jupyterlab/apputils-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/audio-extension')) { + try { + let ext = require('@jupyterlab/audio-extension'); + ext.__scope__ = '@jupyterlab/audio-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/cell-toolbar-extension')) { + try { + let ext = require('@jupyterlab/cell-toolbar-extension'); + ext.__scope__ = '@jupyterlab/cell-toolbar-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/celltags-extension')) { + try { + let ext = require('@jupyterlab/celltags-extension'); + ext.__scope__ = '@jupyterlab/celltags-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/codemirror-extension')) { + try { + let ext = require('@jupyterlab/codemirror-extension'); + ext.__scope__ = '@jupyterlab/codemirror-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/completer-extension')) { + try { + let ext = require('@jupyterlab/completer-extension'); + ext.__scope__ = '@jupyterlab/completer-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/console-extension')) { + try { + let ext = require('@jupyterlab/console-extension'); + ext.__scope__ = '@jupyterlab/console-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/csvviewer-extension')) { + try { + let ext = require('@jupyterlab/csvviewer-extension'); + ext.__scope__ = '@jupyterlab/csvviewer-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/debugger-extension')) { + try { + let ext = require('@jupyterlab/debugger-extension'); + ext.__scope__ = '@jupyterlab/debugger-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/docmanager-extension')) { + try { + let ext = require('@jupyterlab/docmanager-extension'); + ext.__scope__ = '@jupyterlab/docmanager-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/documentsearch-extension')) { + try { + let ext = require('@jupyterlab/documentsearch-extension'); + ext.__scope__ = '@jupyterlab/documentsearch-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/extensionmanager-extension')) { + try { + let ext = require('@jupyterlab/extensionmanager-extension'); + ext.__scope__ = '@jupyterlab/extensionmanager-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/filebrowser-extension')) { + try { + let ext = require('@jupyterlab/filebrowser-extension'); + ext.__scope__ = '@jupyterlab/filebrowser-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/fileeditor-extension')) { + try { + let ext = require('@jupyterlab/fileeditor-extension'); + ext.__scope__ = '@jupyterlab/fileeditor-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/help-extension')) { + try { + let ext = require('@jupyterlab/help-extension'); + ext.__scope__ = '@jupyterlab/help-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/htmlviewer-extension')) { + try { + let ext = require('@jupyterlab/htmlviewer-extension'); + ext.__scope__ = '@jupyterlab/htmlviewer-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/hub-extension')) { + try { + let ext = require('@jupyterlab/hub-extension'); + ext.__scope__ = '@jupyterlab/hub-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/imageviewer-extension')) { + try { + let ext = require('@jupyterlab/imageviewer-extension'); + ext.__scope__ = '@jupyterlab/imageviewer-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/inspector-extension')) { + try { + let ext = require('@jupyterlab/inspector-extension'); + ext.__scope__ = '@jupyterlab/inspector-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/launcher-extension')) { + try { + let ext = require('@jupyterlab/launcher-extension'); + ext.__scope__ = '@jupyterlab/launcher-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/logconsole-extension')) { + try { + let ext = require('@jupyterlab/logconsole-extension'); + ext.__scope__ = '@jupyterlab/logconsole-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/lsp-extension')) { + try { + let ext = require('@jupyterlab/lsp-extension'); + ext.__scope__ = '@jupyterlab/lsp-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/mainmenu-extension')) { + try { + let ext = require('@jupyterlab/mainmenu-extension'); + ext.__scope__ = '@jupyterlab/mainmenu-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/markdownviewer-extension')) { + try { + let ext = require('@jupyterlab/markdownviewer-extension'); + ext.__scope__ = '@jupyterlab/markdownviewer-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/markedparser-extension')) { + try { + let ext = require('@jupyterlab/markedparser-extension'); + ext.__scope__ = '@jupyterlab/markedparser-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/mathjax-extension')) { + try { + let ext = require('@jupyterlab/mathjax-extension'); + ext.__scope__ = '@jupyterlab/mathjax-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/mermaid-extension')) { + try { + let ext = require('@jupyterlab/mermaid-extension'); + ext.__scope__ = '@jupyterlab/mermaid-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/metadataform-extension')) { + try { + let ext = require('@jupyterlab/metadataform-extension'); + ext.__scope__ = '@jupyterlab/metadataform-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/notebook-extension')) { + try { + let ext = require('@jupyterlab/notebook-extension'); + ext.__scope__ = '@jupyterlab/notebook-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/pluginmanager-extension')) { + try { + let ext = require('@jupyterlab/pluginmanager-extension'); + ext.__scope__ = '@jupyterlab/pluginmanager-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/rendermime-extension')) { + try { + let ext = require('@jupyterlab/rendermime-extension'); + ext.__scope__ = '@jupyterlab/rendermime-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/running-extension')) { + try { + let ext = require('@jupyterlab/running-extension'); + ext.__scope__ = '@jupyterlab/running-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/services-extension')) { + try { + let ext = require('@jupyterlab/services-extension'); + ext.__scope__ = '@jupyterlab/services-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/settingeditor-extension')) { + try { + let ext = require('@jupyterlab/settingeditor-extension'); + ext.__scope__ = '@jupyterlab/settingeditor-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/shortcuts-extension')) { + try { + let ext = require('@jupyterlab/shortcuts-extension'); + ext.__scope__ = '@jupyterlab/shortcuts-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/statusbar-extension')) { + try { + let ext = require('@jupyterlab/statusbar-extension'); + ext.__scope__ = '@jupyterlab/statusbar-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/terminal-extension')) { + try { + let ext = require('@jupyterlab/terminal-extension'); + ext.__scope__ = '@jupyterlab/terminal-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/theme-dark-extension')) { + try { + let ext = require('@jupyterlab/theme-dark-extension'); + ext.__scope__ = '@jupyterlab/theme-dark-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/theme-dark-high-contrast-extension')) { + try { + let ext = require('@jupyterlab/theme-dark-high-contrast-extension'); + ext.__scope__ = '@jupyterlab/theme-dark-high-contrast-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/theme-light-extension')) { + try { + let ext = require('@jupyterlab/theme-light-extension'); + ext.__scope__ = '@jupyterlab/theme-light-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/toc-extension')) { + try { + let ext = require('@jupyterlab/toc-extension'); + ext.__scope__ = '@jupyterlab/toc-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/tooltip-extension')) { + try { + let ext = require('@jupyterlab/tooltip-extension'); + ext.__scope__ = '@jupyterlab/tooltip-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/translation-extension')) { + try { + let ext = require('@jupyterlab/translation-extension'); + ext.__scope__ = '@jupyterlab/translation-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/ui-components-extension')) { + try { + let ext = require('@jupyterlab/ui-components-extension'); + ext.__scope__ = '@jupyterlab/ui-components-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/video-extension')) { + try { + let ext = require('@jupyterlab/video-extension'); + ext.__scope__ = '@jupyterlab/video-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/workspaces-extension')) { + try { + let ext = require('@jupyterlab/workspaces-extension'); + ext.__scope__ = '@jupyterlab/workspaces-extension'; + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + + // Add the federated extensions. + const federatedExtensions = await Promise.allSettled(federatedExtensionPromises); + federatedExtensions.forEach(p => { + if (p.status === "fulfilled") { + for (let plugin of activePlugins(p.value)) { + register.push(plugin); + } + } else { + console.error(p.reason); + } + }); + + // Load all federated component styles and log errors for any that do not + (await Promise.allSettled(federatedStylePromises)).filter(({status}) => status === "rejected").forEach(({reason}) => { + console.error(reason); + }); + + // 2. Register the plugins + pluginRegistry.registerPlugins(register); + + // 3. Get and resolve the service manager and connection status plugins + const IConnectionStatus = require('@jupyterlab/services').IConnectionStatus; + const IServiceManager = require('@jupyterlab/services').IServiceManager; + const connectionStatus = await pluginRegistry.resolveOptionalService(IConnectionStatus); + const serviceManager = await pluginRegistry.resolveRequiredService(IServiceManager); + + const lab = new JupyterLab({ + pluginRegistry, + serviceManager, + mimeExtensions, + connectionStatus, + disabled: { + matches: disabled, + patterns: disabledExtensions + .map(function (val) { return val.raw; }) + }, + deferred: { + matches: deferred, + patterns: deferredExtensions + .map(function (val) { return val.raw; }) + }, + availablePlugins: allPlugins + }); + + // 4. Start the application, which will activate the other plugins + lab.start({ ignorePlugins, bubblingKeydown: true }); + + // Expose global app instance when in dev mode or when toggled explicitly. + var exposeAppInBrowser = (PageConfig.getOption('exposeAppInBrowser') || '').toLowerCase() === 'true'; + var devMode = (PageConfig.getOption('devMode') || '').toLowerCase() === 'true'; + + if (exposeAppInBrowser || devMode) { + window.jupyterapp = lab; + } + + // Handle a browser test. + if (browserTest.toLowerCase() === 'true') { + lab.restored + .then(function() { report(errors); }) + .catch(function(reason) { report([`RestoreError: ${reason.message}`]); }); + + // Handle failures to restore after the timeout has elapsed. + window.setTimeout(function() { report(errors); }, timeout); + } +} diff --git a/share/jupyter/lab/static/jlab_core.2ad86c8842ced97e8c4b.js b/share/jupyter/lab/static/jlab_core.2ad86c8842ced97e8c4b.js new file mode 100644 index 0000000..303a7ce --- /dev/null +++ b/share/jupyter/lab/static/jlab_core.2ad86c8842ced97e8c4b.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4470],{27902:(e,t,n)=>{"use strict";n.r(t);n.d(t,{DEFAULT_CONTEXT_ITEM_RANK:()=>y,default:()=>F});var i=n(88617);var s=n(38850);var o=n(40959);var r=n(67987);var a=n(40065);var l=n(78629);var d=n(4625);var c=n(34881);var h=n(4073);var u=n(34236);var p=n(5592);var m=n(93247);var g=n(90044);var f=n(27518);var v=n(44914);const _="TopBar";const b={id:"@jupyterlab/application-extension:top-bar",description:"Adds a toolbar to the top area (next to the main menu bar).",autoStart:true,requires:[a.ISettingRegistry,s.IToolbarWidgetRegistry],optional:[c.ITranslator],activate:(e,t,n,i)=>{const o=(i!==null&&i!==void 0?i:c.nullTranslator).load("jupyterlab");const r=new h.Toolbar;r.id="jp-top-bar";r.node.setAttribute("aria-label",o.__("Topbar toolbar"));(0,s.setToolbar)(r,(0,s.createToolbarFactory)(n,t,_,b.id,i!==null&&i!==void 0?i:c.nullTranslator),r);e.shell.add(r,"top",{rank:900})}};const y=100;var w;(function(e){e.activateNextTab="application:activate-next-tab";e.activatePreviousTab="application:activate-previous-tab";e.activateNextTabBar="application:activate-next-tab-bar";e.activatePreviousTabBar="application:activate-previous-tab-bar";e.close="application:close";e.closeOtherTabs="application:close-other-tabs";e.closeRightTabs="application:close-right-tabs";e.closeAll="application:close-all";e.setMode="application:set-mode";e.showPropertyPanel="property-inspector:show-panel";e.resetLayout="application:reset-layout";e.toggleContextMenu="application:toggle-context-menu";e.toggleHeader="application:toggle-header";e.toggleMode="application:toggle-mode";e.toggleLeftArea="application:toggle-left-area";e.toggleRightArea="application:toggle-right-area";e.toggleSideTabBar="application:toggle-side-tabbar";e.toggleSidebarWidget="application:toggle-sidebar-widget";e.togglePresentationMode="application:toggle-presentation-mode";e.toggleFullscreenMode="application:toggle-fullscreen-mode";e.tree="router:tree";e.switchSidebar="sidebar:switch"})(w||(w={}));const C={id:"@jupyterlab/application-extension:commands",description:"Adds commands related to the shell.",autoStart:true,requires:[c.ITranslator],optional:[i.ILabShell,s.ICommandPalette],activate:(e,t,n,s)=>{var r;const{commands:a,shell:l}=e;const d=t.load("jupyterlab");const c=d.__("Main Area");a.addCommand(i.JupyterFrontEndContextMenu.contextMenu,{label:d.__("Shift+Right Click for Browser Menu"),describedBy:{args:{type:"object",properties:{}}},isEnabled:()=>false,execute:()=>void 0});const h=()=>{const t=e=>!!e.dataset.id;const n=e.contextMenuHitTest(t);if(!n){return l.currentWidget}return(0,u.find)(l.widgets("main"),(e=>e.id===n.dataset.id))||l.currentWidget};const p=e=>{e.forEach((e=>e.close()))};const m=(e,t)=>{if(e.type==="tab-area"){return e.widgets.includes(t)?e:null}if(e.type==="split-area"){for(const n of e.children){const e=m(n,t);if(e){return e}}}return null};const g=e=>{var t;const i=n===null||n===void 0?void 0:n.saveLayout();const s=i===null||i===void 0?void 0:i.mainArea;if(!s||o.PageConfig.getOption("mode")!=="multiple-document"){return null}const r=(t=s.dock)===null||t===void 0?void 0:t.main;return r?m(r,e):null};const f=e=>{const{id:t}=e;const n=g(e);const i=n?n.widgets||[]:[];const s=i.findIndex((e=>e.id===t));if(s<0){return[]}return i.slice(s+1)};const v=e=>{let t;if(e!="left"&&e!="right"){throw Error(`Unsupported sidebar: ${e}`)}if(e==="left"){t=document.querySelector(".lm-TabBar-tab.lm-mod-current")}else{const e=document.querySelectorAll(".lm-TabBar-tab.lm-mod-current");t=e[e.length-1]}const n=t===null||t===void 0?void 0:t.getAttribute("data-id");if(n){return n===null||n===void 0?void 0:n.toString()}else{return""}};function _(e){if(e){e.focus()}}a.addCommand(w.close,{label:()=>d.__("Close Tab"),describedBy:{args:{type:"object",properties:{}}},isEnabled:()=>{const e=h();return!!e&&e.title.closable},execute:()=>{const e=h();if(e){e.close()}}});a.addCommand(w.closeOtherTabs,{label:()=>d.__("Close All Other Tabs"),describedBy:{args:{type:"object",properties:{}}},isEnabled:()=>(0,u.some)(l.widgets("main"),((e,t)=>t===1)),execute:()=>{const e=h();if(!e){return}const{id:t}=e;for(const n of l.widgets("main")){if(n.id!==t){n.close()}}}});a.addCommand(w.closeRightTabs,{label:()=>d.__("Close Tabs to Right"),describedBy:{args:{type:"object",properties:{}}},isEnabled:()=>!!h()&&f(h()).length>0,execute:()=>{const e=h();if(!e){return}p(f(e))}});(r=l.currentChanged)===null||r===void 0?void 0:r.connect((()=>{[w.close,w.closeOtherTabs,w.closeRightTabs].forEach((e=>a.notifyCommandChanged(e)))}));if(n){a.addCommand(w.activateNextTab,{label:d.__("Activate Next Tab"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{n.activateNextTab()}});a.addCommand(w.activatePreviousTab,{label:d.__("Activate Previous Tab"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{n.activatePreviousTab()}});a.addCommand(w.activateNextTabBar,{label:d.__("Activate Next Tab Bar"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{n.activateNextTabBar()}});a.addCommand(w.activatePreviousTabBar,{label:d.__("Activate Previous Tab Bar"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{n.activatePreviousTabBar()}});a.addCommand(w.closeAll,{label:d.__("Close All Tabs"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{n.closeAll()}});a.addCommand(w.toggleHeader,{label:d.__("Show Header"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{if(n.mode==="single-document"){n.toggleTopInSimpleModeVisibility()}},isToggled:()=>n.isTopInSimpleModeVisible(),isVisible:()=>n.mode==="single-document"});a.addCommand(w.toggleLeftArea,{label:d.__("Show Left Sidebar"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{if(n.leftCollapsed){n.expandLeft()}else{n.collapseLeft();if(n.currentWidget){n.activateById(n.currentWidget.id)}}},isToggled:()=>!n.leftCollapsed,isEnabled:()=>!n.isEmpty("left")});a.addCommand(w.toggleRightArea,{label:d.__("Show Right Sidebar"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{if(n.rightCollapsed){n.expandRight()}else{n.collapseRight();if(n.currentWidget){n.activateById(n.currentWidget.id)}}},isToggled:()=>!n.rightCollapsed,isEnabled:()=>!n.isEmpty("right")});a.addCommand(w.toggleSidebarWidget,{label:e=>e===undefined||e.side===undefined||e.index===undefined?d.__("Toggle Sidebar Element"):e.side==="right"?d.__("Toggle Element %1 in Right Sidebar",parseInt(e.index,10)+1):d.__("Toggle Element %1 in Left Sidebar",parseInt(e.index,10)+1),describedBy:{args:{type:"object",properties:{side:{type:"string",enum:["left","right"],description:d.__("The sidebar side")},index:{type:["string","number"],description:d.__("The index of the sidebar widget")}},required:["side","index"]}},execute:e=>{const t=parseInt(e.index,10);if(e.side!="left"&&e.side!="right"){throw Error(`Unsupported sidebar: ${e.side}`)}const i=Array.from(n.widgets(e.side));if(t>=i.length){return}const s=i[t].id;const o=document.querySelector("[data-id='"+s+"']");if(v(e.side)===s){if(e.side=="left"){n.collapseLeft();_(o)}if(e.side=="right"){n.collapseRight();_(o)}}else{n.activateById(s);_(o)}}});a.addCommand(w.toggleSideTabBar,{label:e=>e.side==="right"?d.__("Show Right Activity Bar"):d.__("Show Left Activity Bar"),describedBy:{args:{type:"object",properties:{side:{type:"string",enum:["left","right"],description:d.__("The sidebar side")}},required:["side"]}},execute:e=>{if(e.side==="right"){n.toggleSideTabBarVisibility("right")}else{n.toggleSideTabBarVisibility("left")}},isToggled:e=>e.side==="right"?n.isSideTabBarVisible("right"):n.isSideTabBarVisible("left"),isEnabled:e=>e.side==="right"?!n.isEmpty("right"):!n.isEmpty("left")});a.addCommand(w.togglePresentationMode,{label:()=>d.__("Presentation Mode"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{n.presentationMode=!n.presentationMode},isToggled:()=>n.presentationMode,isVisible:()=>true});a.addCommand(w.toggleFullscreenMode,{label:d.__("Fullscreen Mode"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{if(document.fullscreenElement===null||document.fullscreenElement===undefined){document.documentElement.requestFullscreen().catch((e=>{console.error("Failed to enter fullscreen mode.",e)}))}else if(document.fullscreenElement!==null){document.exitFullscreen().catch((e=>{console.error("Failed to exit fullscreen mode.",e)}))}},isToggled:()=>document.fullscreenElement!==null});a.addCommand(w.setMode,{label:e=>e["mode"]?d.__("Set %1 mode.",e["mode"]):d.__("Set the layout `mode`."),caption:d.__('The layout `mode` can be "single-document" or "multiple-document".'),describedBy:{args:{type:"object",properties:{mode:{type:"string",enum:["single-document","multiple-document"],description:d.__("The layout mode")}},required:["mode"]}},isVisible:e=>{const t=e["mode"];return t==="single-document"||t==="multiple-document"},execute:e=>{const t=e["mode"];if(t==="single-document"||t==="multiple-document"){n.mode=t;return}throw new Error(`Unsupported application shell mode: ${t}`)}});a.addCommand(w.toggleMode,{label:d.__("Simple Interface"),describedBy:{args:{type:"object",properties:{}}},isToggled:()=>n.mode==="single-document",execute:()=>{const e=n.mode==="multiple-document"?{mode:"single-document"}:{mode:"multiple-document"};return a.execute(w.setMode,e)}});a.addCommand(w.resetLayout,{label:d.__("Reset Default Layout"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{if(n.presentationMode){a.execute(w.togglePresentationMode).catch((e=>{console.error("Failed to undo presentation mode.",e)}))}if(document.fullscreenElement!==null||document.fullscreenElement!==undefined){a.execute(w.toggleFullscreenMode).catch((e=>{console.error("Failed to exit fullscreen mode.",e)}))}if(n.mode==="single-document"&&!n.isTopInSimpleModeVisible()){a.execute(w.toggleHeader).catch((e=>{console.error("Failed to display title header.",e)}))}["left","right"].forEach((e=>{if(!n.isSideTabBarVisible(e)&&!n.isEmpty(e)){a.execute(w.toggleSideTabBar,{side:e}).catch((t=>{console.error(`Failed to show ${e} activity bar.`,t)}))}}))}})}if(s){[w.activateNextTab,w.activatePreviousTab,w.activateNextTabBar,w.activatePreviousTabBar,w.close,w.closeAll,w.closeOtherTabs,w.closeRightTabs,w.toggleHeader,w.toggleLeftArea,w.toggleRightArea,w.togglePresentationMode,w.toggleFullscreenMode,w.toggleMode,w.resetLayout].forEach((e=>s.addItem({command:e,category:c})));["right","left"].forEach((e=>{s.addItem({command:w.toggleSideTabBar,category:c,args:{side:e}})}))}}};const x={id:"@jupyterlab/application-extension:main",description:"Initializes the application and provides the URL tree path handler.",requires:[i.IRouter,s.IWindowResolver,c.ITranslator,i.JupyterFrontEnd.ITreeResolver],optional:[i.IConnectionLost],provides:i.ITreePathUpdater,activate:(e,t,n,r,a,l)=>{const d=r.load("jupyterlab");if(!(e instanceof i.JupyterLab)){throw new Error(`${x.id} must be activated in JupyterLab.`)}let c="";let h="";function u(e){void a.paths.then((()=>{h=e;if(!c){const n=o.PageConfig.getUrl({treePath:e});const i=o.URLExt.parse(n).pathname;t.navigate(i,{skipRouting:true});o.PageConfig.setOption("treePath",e)}}))}const p=n.name;console.debug(`Starting application in workspace: "${p}"`);if(e.registerPluginErrors.length!==0){const t=v.createElement("pre",null,e.registerPluginErrors.map((e=>e.message)).join("\n"));void(0,s.showErrorMessage)(d.__("Error Registering Plugins"),{message:t})}e.shell.modeChanged.connect(((e,n)=>{const i=o.PageConfig.getUrl({mode:n});const s=o.URLExt.parse(i).pathname;t.navigate(s,{skipRouting:true});o.PageConfig.setOption("mode",n)}));void a.paths.then((()=>{e.shell.currentPathChanged.connect(((e,n)=>{const i=n.newValue;const s=i||h;const r=o.PageConfig.getUrl({treePath:s});const a=o.URLExt.parse(r).pathname;t.navigate(a,{skipRouting:true});o.PageConfig.setOption("treePath",s);c=i}))}));l=l||i.ConnectionLost;e.serviceManager.connectionFailure.connect(((e,t)=>l(e,t,r)));const m=e.serviceManager.builder;const g=()=>m.build().then((()=>(0,s.showDialog)({title:d.__("Build Complete"),body:v.createElement("div",null,d.__("Build successfully completed, reload page?"),v.createElement("br",null),d.__("You will lose any unsaved changes.")),buttons:[s.Dialog.cancelButton({label:d.__("Reload Without Saving"),actions:["reload"]}),s.Dialog.okButton({label:d.__("Save and Reload")})],hasClose:true}))).then((({button:{accept:n,actions:i}})=>{if(n){void e.commands.execute("docmanager:save").then((()=>{t.reload()})).catch((e=>{void(0,s.showErrorMessage)(d.__("Save Failed"),{message:v.createElement("pre",null,e.message)})}))}else if(i.includes("reload")){t.reload()}})).catch((e=>{void(0,s.showErrorMessage)(d.__("Build Failed"),{message:v.createElement("pre",null,e.message)})}));if(m.isAvailable&&m.shouldCheck){void m.getStatus().then((e=>{if(e.status==="building"){return g()}if(e.status!=="needed"){return}const t=v.createElement("div",null,d.__("JupyterLab build is suggested:"),v.createElement("br",null),v.createElement("pre",null,e.message));void(0,s.showDialog)({title:d.__("Build Recommended"),body:t,buttons:[s.Dialog.cancelButton(),s.Dialog.okButton({label:d.__("Build")})]}).then((e=>e.button.accept?g():undefined))}))}return u},autoStart:true};const S={id:"@jupyterlab/application-extension:context-menu",description:"Populates the context menu.",autoStart:true,requires:[a.ISettingRegistry,c.ITranslator],optional:[s.ICommandPalette],activate:(e,t,n,i)=>{const s=n.load("jupyterlab");function o(t){const n=new h.RankedMenu({...t,commands:e.commands});if(t.label){n.title.label=s.__(t.label)}return n}e.started.then((()=>z.loadSettingsContextMenu(e.contextMenu,e.commands,t,o,n))).then((()=>{if(i){i===null||i===void 0?void 0:i.addItem({category:s.__("Settings"),command:w.toggleContextMenu})}})).catch((e=>{console.error("Failed to load context menu items from settings registry.",e)}))}};const j={id:"@jupyterlab/application-extension:dirty",description:"Adds safeguard dialog when closing the browser tab with unsaved modifications.",autoStart:true,requires:[c.ITranslator],activate:(e,t)=>{if(!(e instanceof i.JupyterLab)){throw new Error(`${j.id} must be activated in JupyterLab.`)}const n=t.load("jupyterlab");const s=n.__("Are you sure you want to exit JupyterLab?\n\nAny unsaved changes will be lost.");window.addEventListener("beforeunload",(t=>{if(e.status.isDirty){return t.returnValue=s}}))}};const k={id:"@jupyterlab/application-extension:layout",description:"Provides the shell layout restorer.",requires:[l.IStateDB,i.ILabShell,a.ISettingRegistry],optional:[c.ITranslator],activate:(e,t,n,r,a)=>{const l=(a!==null&&a!==void 0?a:c.nullTranslator).load("jupyterlab");const d=e.started;const h=e.commands;const u=o.PageConfig.getOption("mode");const m=new i.LayoutRestorer({connector:t,first:d,registry:h,mode:u});r.load(D.id).then((t=>{var i,s;const o=t.composite["layout"];void n.restoreLayout(u,m,{"multiple-document":(i=o.multiple)!==null&&i!==void 0?i:{},"single-document":(s=o.single)!==null&&s!==void 0?s:{}}).then((()=>{n.layoutModified.connect((()=>{void m.save(n.saveLayout())}));t.changed.connect(g);z.activateSidebarSwitcher(e,n,t,l)}))})).catch((e=>{console.error("Fail to load settings for the layout restorer.");console.error(e)}));return m;async function g(e){if(!p.JSONExt.deepEqual(e.composite["layout"],{single:n.userLayout["single-document"],multiple:n.userLayout["multiple-document"]})){const e=await(0,s.showDialog)({title:l.__("Information"),body:l.__("User layout customization has changed. You may need to reload JupyterLab to see the changes."),buttons:[s.Dialog.cancelButton(),s.Dialog.okButton({label:l.__("Reload")})]});if(e.button.accept){location.reload()}}}},autoStart:true,provides:i.ILayoutRestorer};const I={id:"@jupyterlab/application-extension:router",description:"Provides the URL router",requires:[i.JupyterFrontEnd.IPaths],activate:(e,t)=>{const{commands:n}=e;const s=t.urls.base;const o=new i.Router({base:s,commands:n});void e.started.then((()=>{void o.route();window.addEventListener("popstate",(()=>{void o.route()}))}));return o},autoStart:true,provides:i.IRouter};const T={id:"@jupyterlab/application-extension:tree-resolver",description:"Provides the tree route resolver",autoStart:true,requires:[i.IRouter],optional:[c.ITranslator],provides:i.JupyterFrontEnd.ITreeResolver,activate:(e,t,n)=>{const i=(n!==null&&n!==void 0?n:c.nullTranslator).load("jupyterlab");const{commands:s}=e;const r=new g.DisposableSet;const a=new p.PromiseDelegate;const l=new RegExp("/(lab|doc)(/workspaces/[a-zA-Z0-9-_]+)?(/tree/.*)?");r.add(s.addCommand(w.tree,{describedBy:{args:{type:"object",properties:{search:{type:"string",description:i.__("The URL search string containing query parameters")}}}},execute:async e=>{var t;if(r.isDisposed){return}const n=o.URLExt.queryStringToObject((t=e.search)!==null&&t!==void 0?t:"");const i=n["file-browser-path"]||"";delete n["file-browser-path"];r.dispose();a.resolve({browser:i,file:o.PageConfig.getOption("treePath")})}}));r.add(t.register({command:w.tree,pattern:l}));const d=()=>{if(r.isDisposed){return}r.dispose();a.resolve(null)};t.routed.connect(d);r.add(new g.DisposableDelegate((()=>{t.routed.disconnect(d)})));return{paths:a.promise}}};const E={id:"@jupyterlab/application-extension:notfound",description:"Defines the behavior for not found URL (aka route).",requires:[i.JupyterFrontEnd.IPaths,i.IRouter,c.ITranslator],activate:(e,t,n,i)=>{const o=i.load("jupyterlab");const r=t.urls.notFound;if(!r){return}const a=n.base;const l=o.__("The path: %1 was not found. JupyterLab redirected to: %2",r,a);n.navigate("");void(0,s.showErrorMessage)(o.__("Path Not Found"),{message:l})},autoStart:true};const M={id:"@jupyterlab/application-extension:faviconbusy",description:"Handles the favicon depending on the application status.",requires:[i.ILabStatus],activate:async(e,t)=>{t.busySignal.connect(((e,t)=>{const n=document.querySelector(`link[rel="icon"]${t?".idle.favicon":".busy.favicon"}`);if(!n){return}const i=document.querySelector(`link${t?".busy.favicon":".idle.favicon"}`);if(!i){return}if(n!==i){n.rel="";i.rel="icon";i.parentNode.replaceChild(i,i)}}))},autoStart:true};const D={id:"@jupyterlab/application-extension:shell",description:"Provides the JupyterLab shell. It has an extended API compared to `app.shell`.",optional:[a.ISettingRegistry],activate:(e,t)=>{if(!(e.shell instanceof i.LabShell)){throw new Error(`${D.id} did not find a LabShell instance.`)}if(t){void t.load(D.id).then((t=>{e.shell.updateConfig(t.composite);t.changed.connect((()=>{e.shell.updateConfig(t.composite)}))}))}return e.shell},autoStart:true,provides:i.ILabShell};const A={id:"@jupyterlab/application-extension:status",description:"Provides the application status.",activate:e=>{if(!(e instanceof i.JupyterLab)){throw new Error(`${A.id} must be activated in JupyterLab.`)}return e.status},autoStart:true,provides:i.ILabStatus};const P={id:"@jupyterlab/application-extension:info",description:"Provides the application information.",activate:e=>{if(!(e instanceof i.JupyterLab)){throw new Error(`${P.id} must be activated in JupyterLab.`)}return e.info},autoStart:true,provides:i.JupyterLab.IInfo};const L={id:"@jupyterlab/application-extension:paths",description:"Provides the application paths.",activate:e=>{if(!(e instanceof i.JupyterLab)){throw new Error(`${L.id} must be activated in JupyterLab.`)}return e.paths},autoStart:true,provides:i.JupyterFrontEnd.IPaths};const R={id:"@jupyterlab/application-extension:property-inspector",description:"Provides the property inspector.",autoStart:true,requires:[i.ILabShell,c.ITranslator],optional:[i.ILayoutRestorer],provides:r.IPropertyInspectorProvider,activate:(e,t,n,i)=>{const s=n.load("jupyterlab");const o=new r.SideBarPropertyInspectorProvider({shell:t,translator:n});o.title.icon=h.buildIcon;o.title.caption=s.__("Property Inspector");o.id="jp-property-inspector";t.add(o,"right",{rank:100,type:"Property Inspector"});e.commands.addCommand(w.showPropertyPanel,{label:s.__("Property Inspector"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{t.activateById(o.id)}});if(i){i.add(o,"jp-property-inspector")}return o}};const N={id:"@jupyterlab/application-extension:logo",description:"Sets the application logo.",autoStart:true,requires:[i.ILabShell],activate:(e,t)=>{const n=new f.Widget;h.jupyterIcon.element({container:n.node,elementPosition:"center",margin:"2px 2px 2px 8px",height:"auto",width:"16px"});n.id="jp-MainLogo";t.add(n,"top",{rank:0})}};const B={id:"@jupyterlab/application-extension:mode-switch",description:"Adds the interface mode switch",requires:[i.ILabShell,c.ITranslator],optional:[d.IStatusBar,a.ISettingRegistry],activate:(e,t,n,i,s)=>{if(i===null){return}const o=n.load("jupyterlab");const r=new h.Switch;r.id="jp-single-document-mode";r.valueChanged.connect(((e,n)=>{t.mode=n.newValue?"single-document":"multiple-document"}));t.modeChanged.connect(((e,t)=>{r.value=t==="single-document"}));if(s){const n=s.load(D.id);const i=e=>{const n=e.get("startMode").composite;if(n){t.mode=n==="single"?"single-document":"multiple-document"}};Promise.all([n,e.restored]).then((([e])=>{i(e)})).catch((e=>{console.error(e.message)}))}const a=()=>{const t=e.commands.keyBindings.find((e=>e.command==="application:toggle-mode"));if(t){const e=t.keys.map(m.CommandRegistry.formatKeystroke).join(", ");r.caption=o.__("Simple Interface (%1)",e)}else{r.caption=o.__("Simple Interface")}};a();e.commands.keyBindingChanged.connect((()=>{a()}));r.label=o.__("Simple");i.registerStatusItem(B.id,{priority:1,item:r,align:"left",rank:-1})},autoStart:true};const O=[S,j,x,C,k,I,T,E,M,D,A,P,B,L,R,N,b];const F=O;var z;(function(e){async function t(e){const t=await(0,s.showDialog)({title:e.__("Information"),body:e.__("Context menu customization has changed. You will need to reload JupyterLab to see the changes."),buttons:[s.Dialog.cancelButton(),s.Dialog.okButton({label:e.__("Reload")})]});if(t.button.accept){location.reload()}}async function n(e,n,i,o,r){var l;const d=r.load("jupyterlab");const c=S.id;let h=null;let u={};function m(e){var t,n;u={};const s=Object.keys(i.plugins).map((e=>{var t,n;const s=(n=(t=i.plugins[e].schema["jupyter.lab.menus"])===null||t===void 0?void 0:t.context)!==null&&n!==void 0?n:[];u[e]=s;return s})).concat([(n=(t=e["jupyter.lab.menus"])===null||t===void 0?void 0:t.context)!==null&&n!==void 0?n:[]]).reduceRight(((e,t)=>a.SettingRegistry.reconcileItems(e,t,true)),[]);e.properties.contextMenu.default=a.SettingRegistry.reconcileItems(s,e.properties.contextMenu.default,true).sort(((e,t)=>{var n,i;return((n=e.rank)!==null&&n!==void 0?n:Infinity)-((i=t.rank)!==null&&i!==void 0?i:Infinity)}))}i.transform(c,{compose:e=>{var t,n,i,s;if(!h){h=p.JSONExt.deepCopy(e.schema);m(h)}const o=(i=(n=(t=h.properties)===null||t===void 0?void 0:t.contextMenu)===null||n===void 0?void 0:n.default)!==null&&i!==void 0?i:[];const r={...e.data.user,contextMenu:(s=e.data.user.contextMenu)!==null&&s!==void 0?s:[]};const l={...e.data.composite,contextMenu:a.SettingRegistry.reconcileItems(o,r.contextMenu,false)};e.data={composite:l,user:r};return e},fetch:e=>{if(!h){h=p.JSONExt.deepCopy(e.schema);m(h)}return{data:e.data,id:e.id,raw:e.raw,schema:h,version:e.version}}});const g=await i.load(c);const f=e=>{const t=document.body;const n=t.hasAttribute("data-jp-suppress-context-menu");const i=e.get("disabled").composite;if(n&&!i){t.removeAttribute("data-jp-suppress-context-menu")}else if(i&&!n){t.setAttribute("data-jp-suppress-context-menu","true")}};const v=(l=g.composite.contextMenu)!==null&&l!==void 0?l:[];a.SettingRegistry.filterDisabledItems(v).forEach((t=>{s.MenuFactory.addContextItem({rank:y,...t},e,o)}));g.changed.connect((()=>{var e;const n=(e=g.composite.contextMenu)!==null&&e!==void 0?e:[];if(!p.JSONExt.deepEqual(v,n)){void t(d)}f(g)}));i.pluginChanged.connect((async(n,r)=>{var l,h,m,g;if(r!==c){const n=(l=u[r])!==null&&l!==void 0?l:[];const c=(m=(h=i.plugins[r].schema["jupyter.lab.menus"])===null||h===void 0?void 0:h.context)!==null&&m!==void 0?m:[];if(!p.JSONExt.deepEqual(n,c)){if(u[r]){await t(d)}else{u[r]=p.JSONExt.deepCopy(c);const t=(g=a.SettingRegistry.reconcileItems(c,v,false,false))!==null&&g!==void 0?g:[];a.SettingRegistry.filterDisabledItems(t).forEach((t=>{s.MenuFactory.addContextItem({rank:y,...t},e,o)}))}}}}));f(g);n.addCommand(w.toggleContextMenu,{label:d.__("Enable Context Menu"),describedBy:{args:{type:"object",properties:{}}},isToggleable:true,isToggled:()=>!g.get("disabled").composite,execute:()=>void g.set("disabled",!g.get("disabled").composite)})}e.loadSettingsContextMenu=n;function i(e,t,n,i){e.commands.addCommand(w.switchSidebar,{label:i.__("Switch Sidebar Side"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{const i=e.contextMenuHitTest((e=>!!e.dataset.id));if(!i){return}const s=i.dataset["id"];const o=document.getElementById("jp-left-stack");const r=document.getElementById(s);let a=null;if(o&&r&&o.contains(r)){const e=(0,u.find)(t.widgets("left"),(e=>e.id===s));if(e){a=t.move(e,"right");t.activateById(e.id)}}else{const e=(0,u.find)(t.widgets("right"),(e=>e.id===s));if(e){a=t.move(e,"left");t.activateById(e.id)}}if(a){n.set("layout",{single:a["single-document"],multiple:a["multiple-document"]}).catch((e=>{console.error("Failed to save user layout customization.",e)}))}}});e.commands.commandExecuted.connect(((e,t)=>{if(t.id===w.resetLayout){n.remove("layout").catch((e=>{console.error("Failed to remove user layout customization.",e)}))}}))}e.activateSidebarSwitcher=i})(z||(z={}))},20979:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(24800);var r=n(3579);var a=n(58130);var l=n(85072);var d=n.n(l);var c=n(97825);var h=n.n(c);var u=n(77659);var p=n.n(u);var m=n(55056);var g=n.n(m);var f=n(10540);var v=n.n(f);var _=n(41113);var b=n.n(_);var y=n(24118);var w={};w.styleTagTransform=b();w.setAttributes=g();w.insert=p().bind(null,"head");w.domAPI=h();w.insertStyleElement=v();var C=d()(y.A,w);const x=y.A&&y.A.locals?y.A.locals:undefined},16214:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ConnectionLost:()=>o,IConnectionLost:()=>q,ILabShell:()=>B,ILabStatus:()=>$,ILayoutRestorer:()=>b,IMimeDocumentTracker:()=>x,IRouter:()=>K,ITreePathUpdater:()=>J,JupyterFrontEnd:()=>p,JupyterFrontEndContextMenu:()=>g,JupyterLab:()=>H,LabShell:()=>O,LabStatus:()=>W,LayoutRestorer:()=>w,Router:()=>U,addSemanticCommand:()=>G,createRendermimePlugin:()=>j,createRendermimePlugins:()=>S,createSemanticCommand:()=>Y});var i=n(38850);var s=n(34881);const o=async function(e,t,n){n=n||s.nullTranslator;const o=n.load("jupyterlab");const a=o.__("Server Connection Error");const l=o.__("A connection to the Jupyter server could not be established.\n"+"JupyterLab will continue trying to reconnect.\n"+"Check your network connection or Jupyter server configuration.\n");if(!r.displayConnectionLost){return}if(r.serverConnectionLost){await r.serverConnectionLost;return}const d=(0,i.showDialog)({title:a,body:l,checkbox:{label:o.__("Do not show this message again in this session."),caption:o.__("If checked, you will not see a dialog informing you about an issue with server connection in this session.")},buttons:[i.Dialog.cancelButton({label:o.__("Close")})]}).then((e=>{if(e.isChecked){r.displayConnectionLost=false}return})).catch((e=>{console.error("An error occurred while showing the dialog: ",e)})).finally((()=>{r.serverConnectionLost=undefined}));r.serverConnectionLost=d};var r;(function(e){e.displayConnectionLost=true})(r||(r={}));var a=n(93067);var l=n(49278);var d=n(4073);var c=n(15439);var h=n(5592);var u=n(2336);class p extends c.Application{constructor(e){super(e);this._formatChanged=new u.Signal(this);e.shell.addClass("jp-ThemedContainer");this.contextMenu=new d.ContextMenuSvg({commands:this.commands,renderer:e.contextMenuRenderer,groupByTarget:false,sortBySelector:false});const t=new Promise((e=>{requestAnimationFrame((()=>{e()}))}));this.commandLinker=e.commandLinker||new i.CommandLinker({commands:this.commands});this.docRegistry=e.docRegistry||new a.DocumentRegistry;this.restored=e.restored||this.started.then((()=>t)).catch((()=>t));this.serviceManager=e.serviceManager||new l.ServiceManager}get format(){return this._format}set format(e){if(this._format!==e){this._format=e;document.body.dataset["format"]=e;this._formatChanged.emit(e)}}get formatChanged(){return this._formatChanged}contextMenuHitTest(e){if(!this._contextMenuEvent||!(this._contextMenuEvent.target instanceof Node)){return undefined}let t=this._contextMenuEvent.target;do{if(t instanceof HTMLElement&&e(t)){return t}t=t.parentNode}while(t&&t.parentNode&&t!==t.parentNode);return undefined}evtContextMenu(e){this._contextMenuEvent=e;if(e.shiftKey||m.suppressContextMenu(e.target)){return}const t=this.contextMenu.open(e);if(t){const t=this.contextMenu.menu.items;if(t.length===1&&t[0].command===g.contextMenu){this.contextMenu.menu.close();return}e.preventDefault();e.stopPropagation()}}}(function(e){function t(e,t){const n=new RegExp(`^${t.urls.doc}`);const i=e.match(n);if(i){return true}else{return false}}e.inDocMode=t;e.IPaths=new h.Token("@jupyterlab/application:IPaths",`A service providing information about various\n URLs and server paths for the current application. Use this service if you want to\n assemble URLs to use the JupyterLab REST API.`);e.ITreeResolver=new h.Token("@jupyterlab/application:ITreeResolver","A service to resolve the tree path.")})(p||(p={}));var m;(function(e){function t(e){return e.closest("[data-jp-suppress-context-menu]")!==null}e.suppressContextMenu=t})(m||(m={}));var g;(function(e){e.contextMenu="__internal:context-menu-info"})(g||(g={}));var f=n(40959);var v=n(95513);var _=n(94466);const b=new h.Token("@jupyterlab/application:ILayoutRestorer","A service providing application layout restoration functionality. Use this to have your activities restored across page loads.");const y="layout-restorer:data";class w{constructor(e){this._deferred=new Array;this._deferredMainArea=null;this._firstDone=false;this._promisesDone=false;this._promises=[];this._restored=new h.PromiseDelegate;this._trackers=new Set;this._widgets=new Map;this._mode="multiple-document";this._connector=e.connector;this._first=e.first;this._registry=e.registry;if(e.mode){this._mode=e.mode}void this._first.then((()=>{this._firstDone=true})).then((()=>Promise.all(this._promises))).then((()=>{this._promisesDone=true;this._trackers.clear()})).then((()=>{this._restored.resolve(void 0)}))}get isDeferred(){return this._deferred.length>0}get restored(){return this._restored.promise}add(e,t){C.nameProperty.set(e,t);this._widgets.set(t,e);e.disposed.connect(this._onWidgetDisposed,this)}async fetch(){var e;const t={fresh:true,mainArea:null,downArea:null,leftArea:null,rightArea:null,topArea:null,relativeSizes:null};const n=this._connector.fetch(y);try{const[i]=await Promise.all([n,this.restored]);if(!i){return t}const{main:s,down:o,left:r,right:a,relativeSizes:l,top:d}=i;const c=false;let h=null;if(this._mode==="multiple-document"){h=this._rehydrateMainArea(s)}else{this._deferredMainArea=s}const u=this._rehydrateDownArea(o);const p=this._rehydrateSideArea(r);const m=this._rehydrateSideArea(a);return{fresh:c,mainArea:h,downArea:u,leftArea:p,rightArea:m,relativeSizes:l||null,topArea:(e=d)!==null&&e!==void 0?e:null}}catch(i){return t}}async restore(e,t){if(this._firstDone){throw new Error("restore() must be called before `first` has resolved.")}const{namespace:n}=e;if(this._trackers.has(n)){throw new Error(`The tracker "${n}" is already restored.`)}const{args:i,command:s,name:o,when:r}=t;this._trackers.add(n);e.widgetAdded.connect(((e,t)=>{const i=o(t);if(i){this.add(t,`${n}:${i}`)}}),this);e.widgetUpdated.connect(((e,t)=>{const i=o(t);if(i){const e=`${n}:${i}`;C.nameProperty.set(t,e);this._widgets.set(e,t)}}));const a=this._first;if(this._mode=="multiple-document"){const t=e.restore({args:i||(()=>h.JSONExt.emptyObject),command:s,connector:this._connector,name:o,registry:this._registry,when:r?[a].concat(r):a}).catch((e=>{console.error(e)}));this._promises.push(t);return t}e.defer({args:i||(()=>h.JSONExt.emptyObject),command:s,connector:this._connector,name:o,registry:this._registry,when:r?[a].concat(r):a});this._deferred.push(e)}async restoreDeferred(){if(!this.isDeferred){return null}const e=Promise.resolve();const t=this._deferred.map((t=>e.then((()=>t.restore()))));this._deferred.length=0;await Promise.all(t);return this._rehydrateMainArea(this._deferredMainArea)}save(e){var t;if(!this._promisesDone){const e="save() was called prematurely.";console.warn(e);return Promise.reject(e)}const n={};n.main=this.isDeferred?this._deferredMainArea:this._dehydrateMainArea(e.mainArea);if(this.isDeferred){const i=(t=e.mainArea)===null||t===void 0?void 0:t.currentWidget;if(i){const e=C.nameProperty.get(i);n.main={...n.main,current:e||undefined}}}n.down=this._dehydrateDownArea(e.downArea);n.left=this._dehydrateSideArea(e.leftArea);n.right=this._dehydrateSideArea(e.rightArea);n.relativeSizes=e.relativeSizes;n.top={...e.topArea};return this._connector.save(y,n)}_dehydrateMainArea(e){if(!e){return null}return C.serializeMain(e)}_rehydrateMainArea(e){if(!e){return null}return C.deserializeMain(e,this._widgets)}_dehydrateDownArea(e){if(!e){return null}const t={size:e.size};if(e.currentWidget){const n=C.nameProperty.get(e.currentWidget);if(n){t.current=n}}if(e.widgets){t.widgets=e.widgets.map((e=>C.nameProperty.get(e))).filter((e=>!!e))}return t}_rehydrateDownArea(e){var t;if(!e){return{currentWidget:null,size:0,widgets:null}}const n=this._widgets;const i=e.current&&n.has(`${e.current}`)?n.get(`${e.current}`):null;const s=!Array.isArray(e.widgets)?null:e.widgets.map((e=>n.has(`${e}`)?n.get(`${e}`):null)).filter((e=>!!e));return{currentWidget:i,size:(t=e.size)!==null&&t!==void 0?t:0,widgets:s}}_dehydrateSideArea(e){if(!e){return null}const t={collapsed:e.collapsed,visible:e.visible};if(e.currentWidget){const n=C.nameProperty.get(e.currentWidget);if(n){t.current=n}}if(e.widgets){t.widgets=e.widgets.map((e=>C.nameProperty.get(e))).filter((e=>!!e))}if(e.widgetStates){t.widgetStates=e.widgetStates}return t}_rehydrateSideArea(e){var t,n;if(!e){return{collapsed:true,currentWidget:null,visible:true,widgets:null,widgetStates:{["null"]:{sizes:null,expansionStates:null}}}}const i=this._widgets;const s=(t=e.collapsed)!==null&&t!==void 0?t:false;const o=e.current&&i.has(`${e.current}`)?i.get(`${e.current}`):null;const r=!Array.isArray(e.widgets)?null:e.widgets.map((e=>i.has(`${e}`)?i.get(`${e}`):null)).filter((e=>!!e));const a=e.widgetStates;return{collapsed:s,currentWidget:o,widgets:r,visible:(n=e.visible)!==null&&n!==void 0?n:true,widgetStates:a}}_onWidgetDisposed(e){const t=C.nameProperty.get(e);this._widgets.delete(t)}}var C;(function(e){e.nameProperty=new _.AttachedProperty({name:"name",create:e=>""});function t(n){if(!n||!n.type){return null}if(n.type==="tab-area"){return{type:"tab-area",currentIndex:n.currentIndex,widgets:n.widgets.map((t=>e.nameProperty.get(t))).filter((e=>!!e))}}return{type:"split-area",orientation:n.orientation,sizes:n.sizes,children:n.children.map(t).filter((e=>!!e))}}function n(n){const i={dock:n&&n.dock&&t(n.dock.main)||null};if(n){if(n.currentWidget){const t=e.nameProperty.get(n.currentWidget);if(t){i.current=t}}}return i}e.serializeMain=n;function i(e,t){if(!e){return null}const n=e.type||"unknown";if(n==="unknown"||n!=="tab-area"&&n!=="split-area"){console.warn(`Attempted to deserialize unknown type: ${n}`);return null}if(n==="tab-area"){const{currentIndex:n,widgets:i}=e;const s={type:"tab-area",currentIndex:n||0,widgets:i&&i.map((e=>t.get(e))).filter((e=>!!e))||[]};if(s.currentIndex>s.widgets.length-1){s.currentIndex=0}return s}const{orientation:s,sizes:o,children:r}=e;const a={type:"split-area",orientation:s,sizes:o||[],children:r&&r.map((e=>i(e,t))).filter((e=>!!e))||[]};return a}function s(e,t){if(!e){return null}const n=e.current||null;const s=e.dock||null;return{currentWidget:n&&t.has(n)&&t.get(n)||null,dock:s?{main:i(s,t)}:null}}e.deserializeMain=s})(C||(C={}));const x=new h.Token("@jupyterlab/application:IMimeDocumentTracker","A widget tracker for documents rendered using a mime renderer extension. Use this if you want to list and interact with documents rendered by such extensions.");function S(e){const t=[];const n="application-mimedocuments";const s=new i.WidgetTracker({namespace:n});e.forEach((e=>{let n=e.default;if(!e.hasOwnProperty("__esModule")){n=e}if(!Array.isArray(n)){n=[n]}n.forEach((e=>{t.push(j(s,e))}))}));t.push({id:"@jupyterlab/application-extension:mimedocument",description:"Provides a mime document widget tracker.",optional:[b],provides:x,autoStart:true,activate:(e,t)=>{if(t){void t.restore(s,{command:"docmanager:open",args:e=>({path:e.context.path,factory:k.factoryNameProperty.get(e)}),name:e=>`${e.context.path}:${k.factoryNameProperty.get(e)}`})}return s}});return t}function j(e,t){return{id:t.id,description:t.description,requires:[v.IRenderMimeRegistry,s.ITranslator],autoStart:true,activate:(n,i,s)=>{if(t.rank!==undefined){i.addFactory(t.rendererFactory,t.rank)}else{i.addFactory(t.rendererFactory)}if(!t.documentWidgetFactoryOptions){return}const o=n.docRegistry;let r=[];if(Array.isArray(t.documentWidgetFactoryOptions)){r=t.documentWidgetFactoryOptions}else{r=[t.documentWidgetFactoryOptions]}if(t.fileTypes){t.fileTypes.forEach((e=>{if(e.icon){e={...e,icon:d.LabIcon.resolve({icon:e.icon})}}n.docRegistry.addFileType(e)}))}r.forEach((n=>{const r=n.toolbarFactory?e=>n.toolbarFactory(e.content.renderer):undefined;const l=new a.MimeDocumentFactory({renderTimeout:t.renderTimeout,dataType:t.dataType,rendermime:i,modelName:n.modelName,name:n.name,primaryFileType:o.getFileType(n.primaryFileType),fileTypes:n.fileTypes,defaultFor:n.defaultFor,defaultRendered:n.defaultRendered,toolbarFactory:r,translator:s,factory:t.rendererFactory});o.addWidgetFactory(l);l.widgetCreated.connect(((t,n)=>{k.factoryNameProperty.set(n,l.name);n.context.pathChanged.connect((()=>{void e.save(n)}));void e.add(n)}))}))}}}var k;(function(e){e.factoryNameProperty=new _.AttachedProperty({name:"factoryName",create:()=>undefined})})(k||(k={}));var I=n(34236);var T=n(42856);var E=n(26568);var M=n(27518);const D="jp-LabShell";const A="jp-SideBar";const P="jp-mod-current";const L="jp-mod-active";const R=900;const N="jp-Activity";const B=new h.Token("@jupyterlab/application:ILabShell","A service for interacting with the JupyterLab shell. The top-level `application` object also has a reference to the shell, but it has a restricted interface in order to be agnostic to different shell implementations on the application. Use this to get more detailed information about currently active widgets and layout state.");class O extends M.Widget{constructor(e){super();this._dockChildHook=(e,t)=>{switch(t.type){case"child-added":t.child.addClass(N);this._tracker.add(t.child);break;case"child-removed":t.child.removeClass(N);this._tracker.remove(t.child);break;default:break}return true};this._activeChanged=new u.Signal(this);this._cachedLayout=null;this._currentChanged=new u.Signal(this);this._currentPath="";this._currentPathChanged=new u.Signal(this);this._modeChanged=new u.Signal(this);this._isRestored=false;this._layoutModified=new u.Signal(this);this._layoutDebouncer=new E.Debouncer((()=>{this._layoutModified.emit(undefined)}),0);this._restored=new h.PromiseDelegate;this._tracker=new M.FocusTracker;this._topHandlerHiddenByUser=false;this._idTypeMap=new Map;this._mainOptionsCache=new Map;this._sideOptionsCache=new Map;this._delayedWidget=new Array;this.addClass(D);this.id="main";if((e===null||e===void 0?void 0:e.waitForRestore)===false){this._userLayout={"multiple-document":{},"single-document":{}}}const t=this._skipLinkWidget=new F.SkipLinkWidget(this);this._skipLinkWidget.show();const n=new M.Panel;n.addClass("jp-skiplink-wrapper");n.addWidget(t);const i=this._headerPanel=new M.BoxPanel;const o=this._menuHandler=new F.PanelHandler;o.panel.node.setAttribute("role","navigation");const r=this._topHandler=new F.PanelHandler;r.panel.node.setAttribute("role","banner");const l=this._bottomPanel=new M.BoxPanel;l.node.setAttribute("role","contentinfo");const c=new M.BoxPanel;const p=this._vsplitPanel=new F.RestorableSplitPanel;const m=this._dockPanel=new d.DockPanelSvg({hiddenMode:M.Widget.HiddenMode.Display});T.MessageLoop.installMessageHook(m,this._dockChildHook);const g=this._hsplitPanel=new F.RestorableSplitPanel;const f=this._downPanel=new d.TabPanelSvg({tabsMovable:true});const v=this._leftHandler=new F.SideBarHandler;const _=this._rightHandler=new F.SideBarHandler;const b=new M.BoxLayout;i.id="jp-header-panel";o.panel.id="jp-menu-panel";r.panel.id="jp-top-panel";l.id="jp-bottom-panel";c.id="jp-main-content-panel";p.id="jp-main-vsplit-panel";m.id="jp-main-dock-panel";g.id="jp-main-split-panel";f.id="jp-down-stack";v.sideBar.addClass(A);v.sideBar.addClass("jp-mod-left");v.sideBar.node.setAttribute("role","complementary");v.stackedPanel.id="jp-left-stack";_.sideBar.addClass(A);_.sideBar.addClass("jp-mod-right");_.sideBar.node.setAttribute("role","complementary");_.stackedPanel.id="jp-right-stack";m.node.setAttribute("role","main");c.spacing=0;p.spacing=1;m.spacing=5;g.spacing=1;i.direction="top-to-bottom";p.orientation="vertical";c.direction="left-to-right";g.orientation="horizontal";l.direction="bottom-to-top";M.SplitPanel.setStretch(v.stackedPanel,0);M.SplitPanel.setStretch(f,0);M.SplitPanel.setStretch(m,1);M.SplitPanel.setStretch(_.stackedPanel,0);M.BoxPanel.setStretch(v.sideBar,0);M.BoxPanel.setStretch(g,1);M.BoxPanel.setStretch(_.sideBar,0);M.SplitPanel.setStretch(p,1);g.addWidget(v.stackedPanel);g.addWidget(m);g.addWidget(_.stackedPanel);p.addWidget(g);p.addWidget(f);c.addWidget(v.sideBar);c.addWidget(p);c.addWidget(_.sideBar);b.direction="top-to-bottom";b.spacing=0;p.setRelativeSizes([3,1]);g.setRelativeSizes([1,2.5,1]);M.BoxLayout.setStretch(i,0);M.BoxLayout.setStretch(o.panel,0);M.BoxLayout.setStretch(r.panel,0);M.BoxLayout.setStretch(c,1);M.BoxLayout.setStretch(l,0);b.addWidget(n);b.addWidget(i);b.addWidget(r.panel);b.addWidget(c);b.addWidget(l);this._headerPanel.hide();this._bottomPanel.hide();this._downPanel.hide();this.layout=b;this._tracker.currentChanged.connect(this._onCurrentChanged,this);this._tracker.activeChanged.connect(this._onActiveChanged,this);this._dockPanel.layoutModified.connect(this._onLayoutModified,this);this._vsplitPanel.updated.connect(this._onLayoutModified,this);this._downPanel.currentChanged.connect(this._onLayoutModified,this);this._downPanel.tabBar.tabMoved.connect(this._onTabPanelChanged,this);this._downPanel.stackedPanel.widgetRemoved.connect(this._onTabPanelChanged,this);this._leftHandler.updated.connect(this._onLayoutModified,this);this._rightHandler.updated.connect(this._onLayoutModified,this);this._hsplitPanel.updated.connect(this._onLayoutModified,this);const y=this._titleHandler=new F.TitleHandler(this);this.add(y,"top",{rank:100});if(this._dockPanel.mode==="multiple-document"){this._topHandler.addWidget(this._menuHandler.panel,100);y.hide()}else{b.insertWidget(3,this._menuHandler.panel)}this.translator=s.nullTranslator;this.currentChanged.connect(((e,t)=>{let n=t.newValue;let i=t.oldValue;if(i){i.title.changed.disconnect(this._updateTitlePanelTitle,this);if(i instanceof a.DocumentWidget){i.context.pathChanged.disconnect(this._updateCurrentPath,this)}}if(n){n.title.changed.connect(this._updateTitlePanelTitle,this);this._updateTitlePanelTitle();if(n instanceof a.DocumentWidget){n.context.pathChanged.connect(this._updateCurrentPath,this)}}this._updateCurrentPath()}))}get activeChanged(){return this._activeChanged}get activeWidget(){return this._tracker.activeWidget}get addButtonEnabled(){return this._dockPanel.addButtonEnabled}set addButtonEnabled(e){this._dockPanel.addButtonEnabled=e}get addRequested(){return this._dockPanel.addRequested}get currentChanged(){return this._currentChanged}get currentPath(){return this._currentPath}get currentPathChanged(){return this._currentPathChanged}get currentWidget(){return this._tracker.currentWidget}get layoutModified(){return this._layoutModified}get leftCollapsed(){return!this._leftHandler.sideBar.currentTitle}get rightCollapsed(){return!this._rightHandler.sideBar.currentTitle}get presentationMode(){return this.hasClass("jp-mod-presentationMode")}set presentationMode(e){this.toggleClass("jp-mod-presentationMode",e)}get mode(){return this._dockPanel.mode}set mode(e){const t=this._dockPanel;if(e===t.mode){return}const n=this.currentWidget;if(e==="single-document"){this._cachedLayout=t.saveLayout();t.mode=e;if(this.currentWidget){t.activateWidget(this.currentWidget)}this.layout.insertWidget(3,this._menuHandler.panel);this._titleHandler.show();this._updateTitlePanelTitle();if(this._topHandlerHiddenByUser){this._topHandler.panel.hide()}}else{const i=Array.from(t.widgets());t.mode=e;if(this._cachedLayout){F.normalizeAreaConfig(t,this._cachedLayout.main);t.restoreLayout(this._cachedLayout);this._cachedLayout=null}if(this._layoutRestorer.isDeferred){this._layoutRestorer.restoreDeferred().then((e=>{if(e){const{currentWidget:t,dock:n}=e;if(n){this._dockPanel.restoreLayout(n)}if(t){this.activateById(t.id)}}})).catch((e=>{console.error("Failed to restore the deferred layout.");console.error(e)}))}i.forEach((e=>{if(!e.parent){this._addToMainArea(e,{...this._mainOptionsCache.get(e),activate:false})}}));this._mainOptionsCache.clear();if(n){t.activateWidget(n)}this.add(this._menuHandler.panel,"top",{rank:100});this._titleHandler.hide()}this.node.dataset.shellMode=e;this._downPanel.fit();this._modeChanged.emit(e)}get modeChanged(){return this._modeChanged}get restored(){return this._restored.promise}get translator(){var e;return(e=this._translator)!==null&&e!==void 0?e:s.nullTranslator}set translator(e){if(e!==this._translator){this._translator=e;d.TabBarSvg.translator=e;const t=e.load("jupyterlab");this._menuHandler.panel.node.setAttribute("aria-label",t.__("main menu"));this._leftHandler.sideBar.node.setAttribute("aria-label",t.__("main sidebar"));this._leftHandler.sideBar.contentNode.setAttribute("aria-label",t.__("main sidebar"));this._rightHandler.sideBar.node.setAttribute("aria-label",t.__("alternate sidebar"));this._rightHandler.sideBar.contentNode.setAttribute("aria-label",t.__("alternate sidebar"));this._topHandler.panel.node.setAttribute("aria-label",t.__("Top Bar"));this._bottomPanel.node.setAttribute("aria-label",t.__("Bottom Panel"));this._dockPanel.node.setAttribute("aria-label",t.__("Main Content"))}}get userLayout(){return h.JSONExt.deepCopy(this._userLayout)}activateById(e){if(this._leftHandler.has(e)){this._leftHandler.activate(e);return}if(this._rightHandler.has(e)){this._rightHandler.activate(e);return}const t=this._downPanel.tabBar.titles.findIndex((t=>t.owner.id===e));if(t>=0){this._downPanel.currentIndex=t;return}const n=this._dockPanel;const i=(0,I.find)(n.widgets(),(t=>t.id===e));if(i){n.activateWidget(i)}}activateArea(e="main"){switch(e){case"main":{const e=this._currentTabBar();if(!e){return}if(e.currentTitle){e.currentTitle.owner.activate()}}return;case"left":case"right":case"header":case"top":case"menu":case"bottom":console.debug(`Area: ${e} activation not yet implemented`);break;default:throw new Error(`Invalid area: ${e}`)}}activateNextTab(){const e=this._currentTabBar();if(!e){return}const t=e.currentIndex;if(t===-1){return}if(t0){e.currentIndex-=1;if(e.currentTitle){e.currentTitle.owner.activate()}return}if(t===0){const e=this._adjacentBar("previous");if(e){const t=e.titles.length;e.currentIndex=t-1;if(e.currentTitle){e.currentTitle.owner.activate()}}}}activateNextTabBar(){const e=this._adjacentBar("next");if(e){if(e.currentTitle){e.currentTitle.owner.activate()}}}activatePreviousTabBar(){const e=this._adjacentBar("previous");if(e){if(e.currentTitle){e.currentTitle.owner.activate()}}}add(e,t="main",n){var i;if(!this._userLayout){this._delayedWidget.push({widget:e,area:t,options:n});return}let s;if((n===null||n===void 0?void 0:n.type)&&this._userLayout[this.mode][n.type]){s=this._userLayout[this.mode][n.type];this._idTypeMap.set(e.id,n.type)}else{s=this._userLayout[this.mode][e.id]}if(n===null||n===void 0?void 0:n.type){this._idTypeMap.set(e.id,n.type);e.disposed.connect((()=>{this._idTypeMap.delete(e.id)}))}t=(i=s===null||s===void 0?void 0:s.area)!==null&&i!==void 0?i:t;n=n||(s===null||s===void 0?void 0:s.options)?{...n,...s===null||s===void 0?void 0:s.options}:undefined;switch(t||"main"){case"bottom":return this._addToBottomArea(e,n);case"down":return this._addToDownArea(e,n);case"header":return this._addToHeaderArea(e,n);case"left":return this._addToLeftArea(e,n);case"main":return this._addToMainArea(e,n);case"menu":return this._addToMenuArea(e,n);case"right":return this._addToRightArea(e,n);case"top":return this._addToTopArea(e,n);default:throw new Error(`Invalid area: ${t}`)}}move(e,t,n){var i;const s=(i=this._idTypeMap.get(e.id))!==null&&i!==void 0?i:e.id;for(const o of["single-document","multiple-document"].filter((e=>!n||e===n))){this._userLayout[o][s]={...this._userLayout[o][s],area:t}}this.add(e,t);return this._userLayout}collapseLeft(){this._leftHandler.collapse();this._onLayoutModified()}collapseRight(){this._rightHandler.collapse();this._onLayoutModified()}dispose(){if(this.isDisposed){return}this._layoutDebouncer.dispose();super.dispose()}expandLeft(){this._leftHandler.expand();this._onLayoutModified()}expandRight(){this._rightHandler.expand();this._onLayoutModified()}closeAll(){Array.from(this._dockPanel.widgets()).forEach((e=>e.close()));this._downPanel.stackedPanel.widgets.forEach((e=>e.close()))}isSideTabBarVisible(e){switch(e){case"left":return this._leftHandler.isVisible;case"right":return this._rightHandler.isVisible}}isTopInSimpleModeVisible(){return!this._topHandlerHiddenByUser}isEmpty(e){switch(e){case"bottom":return this._bottomPanel.widgets.length===0;case"down":return this._downPanel.stackedPanel.widgets.length===0;case"header":return this._headerPanel.widgets.length===0;case"left":return this._leftHandler.stackedPanel.widgets.length===0;case"main":return this._dockPanel.isEmpty;case"menu":return this._menuHandler.panel.widgets.length===0;case"right":return this._rightHandler.stackedPanel.widgets.length===0;case"top":return this._topHandler.panel.widgets.length===0;default:return true}}async restoreLayout(e,t,n={}){var i,s,o,r;this._userLayout={"single-document":(i=n["single-document"])!==null&&i!==void 0?i:{},"multiple-document":(s=n["multiple-document"])!==null&&s!==void 0?s:{}};this._delayedWidget.forEach((({widget:e,area:t,options:n})=>{this.add(e,t,n)}));this._delayedWidget.length=0;this._layoutRestorer=t;const a=await t.fetch();const{mainArea:l,downArea:d,leftArea:c,rightArea:h,topArea:u,relativeSizes:p}=a;if(l){const{currentWidget:t,dock:n}=l;if(n&&e==="multiple-document"){this._dockPanel.restoreLayout(n)}if(e){this.mode=e}if(t){this.activateById(t.id)}}else{if(e){this.mode=e}}if((u===null||u===void 0?void 0:u.simpleVisibility)!==undefined){this._topHandlerHiddenByUser=!u.simpleVisibility;if(this.mode==="single-document"){this._topHandler.panel.setHidden(this._topHandlerHiddenByUser)}}if(d){const{currentWidget:e,widgets:t,size:n}=d;const i=(o=t===null||t===void 0?void 0:t.map((e=>e.id)))!==null&&o!==void 0?o:[];this._downPanel.tabBar.titles.filter((e=>!i.includes(e.owner.id))).map((e=>e.owner.close()));const s=this._downPanel.tabBar.titles.map((e=>e.owner.id));t===null||t===void 0?void 0:t.filter((e=>!s.includes(e.id))).map((e=>this._downPanel.addWidget(e)));while(!I.ArrayExt.shallowEqual(i,this._downPanel.tabBar.titles.map((e=>e.owner.id)))){this._downPanel.tabBar.titles.forEach(((e,t)=>{const n=i.findIndex((t=>e.owner.id==t));if(n>=0&&n!=t){this._downPanel.tabBar.insertTab(n,e)}}))}if(e){const t=this._downPanel.stackedPanel.widgets.findIndex((t=>t.id===e.id));if(t){this._downPanel.currentIndex=t;(r=this._downPanel.currentWidget)===null||r===void 0?void 0:r.activate()}}if(n&&n>0){this._vsplitPanel.setRelativeSizes([1-n,n])}else{this._downPanel.stackedPanel.widgets.forEach((e=>e.close()));this._downPanel.hide()}}if(c){this._leftHandler.rehydrate(c)}else{if(e==="single-document"){this.collapseLeft()}}if(h){this._rightHandler.rehydrate(h)}else{if(e==="single-document"){this.collapseRight()}}if(p){this._hsplitPanel.setRelativeSizes(p)}if(!this._isRestored){T.MessageLoop.flush();this._restored.resolve(a)}}saveLayout(){const e={mainArea:{currentWidget:this._tracker.currentWidget,dock:this.mode==="single-document"?this._cachedLayout||this._dockPanel.saveLayout():this._dockPanel.saveLayout()},downArea:{currentWidget:this._downPanel.currentWidget,widgets:Array.from(this._downPanel.stackedPanel.widgets),size:this._vsplitPanel.relativeSizes()[1]},leftArea:this._leftHandler.dehydrate(),rightArea:this._rightHandler.dehydrate(),topArea:{simpleVisibility:!this._topHandlerHiddenByUser},relativeSizes:this._hsplitPanel.relativeSizes()};return e}toggleTopInSimpleModeVisibility(){if(this.mode==="single-document"){if(this._topHandler.panel.isVisible){this._topHandlerHiddenByUser=true;this._topHandler.panel.hide()}else{this._topHandlerHiddenByUser=false;this._topHandler.panel.show();this._updateTitlePanelTitle()}this._onLayoutModified()}}toggleSideTabBarVisibility(e){if(e==="right"){if(this._rightHandler.isVisible){this._rightHandler.hide()}else{this._rightHandler.show()}}else{if(this._leftHandler.isVisible){this._leftHandler.hide()}else{this._leftHandler.show()}}}updateConfig(e){if(e.hiddenMode){switch(e.hiddenMode){case"display":this._dockPanel.hiddenMode=M.Widget.HiddenMode.Display;break;case"scale":this._dockPanel.hiddenMode=M.Widget.HiddenMode.Scale;break;case"contentVisibility":this._dockPanel.hiddenMode=M.Widget.HiddenMode.ContentVisibility;break}}}widgets(e){switch(e!==null&&e!==void 0?e:"main"){case"main":return this._dockPanel.widgets();case"left":return(0,I.map)(this._leftHandler.sideBar.titles,(e=>e.owner));case"right":return(0,I.map)(this._rightHandler.sideBar.titles,(e=>e.owner));case"header":return this._headerPanel.children();case"top":return this._topHandler.panel.children();case"menu":return this._menuHandler.panel.children();case"bottom":return this._bottomPanel.children();default:throw new Error(`Invalid area: ${e}`)}}onAfterAttach(e){this.node.dataset.shellMode=this.mode}_updateTitlePanelTitle(){let e=this.currentWidget;const t=this._titleHandler.inputElement;t.value=e?e.title.label:"";t.title=e?e.title.caption:""}_updateCurrentPath(){let e=this.currentWidget;let t="";if(e&&e instanceof a.DocumentWidget){t=e.context.path}this._currentPathChanged.emit({newValue:t,oldValue:this._currentPath});this._currentPath=t}_addToLeftArea(e,t){if(!e.id){console.error("Widgets added to app shell must have unique id property.");return}t=t||this._sideOptionsCache.get(e)||{};this._sideOptionsCache.set(e,t);const n="rank"in t?t.rank:R;this._leftHandler.addWidget(e,n);this._onLayoutModified()}_addToMainArea(e,t){if(!e.id){console.error("Widgets added to app shell must have unique id property.");return}t=t||{};const n=this._dockPanel;const i=t.mode||"tab-after";let s=this.currentWidget;if(t.ref){s=(0,I.find)(n.widgets(),(e=>e.id===t.ref))||null}const{title:o}=e;o.dataset={...o.dataset,id:e.id};if(o.icon instanceof d.LabIcon){o.icon=o.icon.bindprops({stylesheet:"mainAreaTab"})}else if(typeof o.icon==="string"||!o.icon){o.iconClass=(0,d.classes)(o.iconClass,"jp-Icon")}n.addWidget(e,{mode:i,ref:s});if(n.mode==="single-document"){this._mainOptionsCache.set(e,t)}if(t.activate!==false){n.activateWidget(e)}}_addToRightArea(e,t){if(!e.id){console.error("Widgets added to app shell must have unique id property.");return}t=t||this._sideOptionsCache.get(e)||{};const n="rank"in t?t.rank:R;this._sideOptionsCache.set(e,t);this._rightHandler.addWidget(e,n);this._onLayoutModified()}_addToTopArea(e,t){var n;if(!e.id){console.error("Widgets added to app shell must have unique id property.");return}t=t||{};const i=(n=t.rank)!==null&&n!==void 0?n:R;this._topHandler.addWidget(e,i);this._onLayoutModified();if(this._topHandler.panel.isHidden){this._topHandler.panel.show()}}_addToMenuArea(e,t){var n;if(!e.id){console.error("Widgets added to app shell must have unique id property.");return}t=t||{};const i=(n=t.rank)!==null&&n!==void 0?n:R;this._menuHandler.addWidget(e,i);this._onLayoutModified();if(this._menuHandler.panel.isHidden){this._menuHandler.panel.show()}}_addToHeaderArea(e,t){if(!e.id){console.error("Widgets added to app shell must have unique id property.");return}this._headerPanel.addWidget(e);this._onLayoutModified();if(this._headerPanel.isHidden){this._headerPanel.show()}}_addToBottomArea(e,t){if(!e.id){console.error("Widgets added to app shell must have unique id property.");return}this._bottomPanel.addWidget(e);this._onLayoutModified();if(this._bottomPanel.isHidden){this._bottomPanel.show()}}_addToDownArea(e,t){if(!e.id){console.error("Widgets added to app shell must have unique id property.");return}t=t||{};const{title:n}=e;n.dataset={...n.dataset,id:e.id};if(n.icon instanceof d.LabIcon){n.icon=n.icon.bindprops({stylesheet:"mainAreaTab"})}else if(typeof n.icon==="string"||!n.icon){n.iconClass=(0,d.classes)(n.iconClass,"jp-Icon")}this._downPanel.addWidget(e);this._onLayoutModified();if(this._downPanel.isHidden){this._downPanel.show()}}_adjacentBar(e){const t=this._currentTabBar();if(!t){return null}const n=Array.from(this._dockPanel.tabBars());const i=n.length;const s=n.indexOf(t);if(e==="previous"){return s>0?n[s-1]:s===0?n[i-1]:null}return se.titles.indexOf(t)>-1))||null}_onActiveChanged(e,t){if(t.newValue){t.newValue.title.className+=` ${L}`}if(t.oldValue){t.oldValue.title.className=t.oldValue.title.className.replace(L,"")}this._activeChanged.emit(t)}_onCurrentChanged(e,t){if(t.newValue){t.newValue.title.className+=` ${P}`}if(t.oldValue){t.oldValue.title.className=t.oldValue.title.className.replace(P,"")}this._currentChanged.emit(t);this._onLayoutModified()}_onTabPanelChanged(){if(this._downPanel.stackedPanel.widgets.length===0){this._downPanel.hide()}this._onLayoutModified()}_onLayoutModified(){void this._layoutDebouncer.invoke()}}var F;(function(e){function t(e,t){return e.rank-t.rank}e.itemCmp=t;function n(e,t){if(!t){return}if(t.type==="tab-area"){t.widgets=t.widgets.filter((t=>!t.isDisposed&&t.parent===e));return}t.children.forEach((t=>{n(e,t)}))}e.normalizeAreaConfig=n;class i{constructor(){this._panelChildHook=(e,t)=>{switch(t.type){case"child-added":{const e=t.child;if(this._items.find((t=>t.widget===e))){break}const n=this._items[this._items.length-1].rank;this._items.push({widget:e,rank:n})}break;case"child-removed":{const e=t.child;I.ArrayExt.removeFirstWhere(this._items,(t=>t.widget===e))}break;default:break}return true};this._items=new Array;this._panel=new M.Panel;T.MessageLoop.installMessageHook(this._panel,this._panelChildHook)}get panel(){return this._panel}addWidget(t,n){t.parent=null;const i={widget:t,rank:n};const s=I.ArrayExt.upperBound(this._items,i,e.itemCmp);I.ArrayExt.insert(this._items,s,i);this._panel.insertWidget(s,t)}}e.PanelHandler=i;class s{constructor(){this._isHiddenByUser=false;this._items=new Array;this._updated=new u.Signal(this);this._sideBar=new M.TabBar({insertBehavior:"none",removeBehavior:"none",allowDeselect:true,orientation:"vertical"});this._stackedPanel=new M.StackedPanel;this._sideBar.hide();this._stackedPanel.hide();this._lastCurrent=null;this._sideBar.currentChanged.connect(this._onCurrentChanged,this);this._sideBar.tabActivateRequested.connect(this._onTabActivateRequested,this);this._stackedPanel.widgetRemoved.connect(this._onWidgetRemoved,this)}get isVisible(){return this._sideBar.isVisible}get sideBar(){return this._sideBar}get stackedPanel(){return this._stackedPanel}get updated(){return this._updated}_onHandleMoved(){return this._refreshVisibility()}_onExpansionToggle(e,t){return this._refreshVisibility()}expand(){const e=this._lastCurrent||this._items.length>0&&this._items[0].widget;if(e){this.activate(e.id)}}activate(e){const t=this._findWidgetByID(e);if(t){this._sideBar.currentTitle=t.title;t.activate()}}has(e){return this._findWidgetByID(e)!==null}collapse(){this._sideBar.currentTitle=null}addWidget(e,t){var n,i,s,o;e.parent=null;e.hide();const r={widget:e,rank:t};const a=this._findInsertIndex(r);I.ArrayExt.insert(this._items,a,r);this._stackedPanel.insertWidget(a,e);const l=this._sideBar.insertTab(a,e.title);l.dataset={id:e.id};if(l.icon instanceof d.LabIcon){l.icon=l.icon.bindprops({stylesheet:"sideBar"})}else if(typeof l.icon==="string"&&l.icon!=""){l.iconClass=(0,d.classes)(l.iconClass,"jp-Icon","jp-Icon-20")}else if(!l.icon&&!l.label){l.icon=d.tabIcon.bindprops({stylesheet:"sideBar"})}(i=(n=e.content)===null||n===void 0?void 0:n.expansionToggled)===null||i===void 0?void 0:i.connect(this._onExpansionToggle,this);(o=(s=e.content)===null||s===void 0?void 0:s.handleMoved)===null||o===void 0?void 0:o.connect(this._onHandleMoved,this);this._refreshVisibility()}dehydrate(){const e=this._sideBar.currentTitle===null;const t=Array.from(this._stackedPanel.widgets);const n=t[this._sideBar.currentIndex];const i={};this._stackedPanel.widgets.forEach((e=>{if(e.id&&e.content instanceof M.SplitPanel){i[e.id]={sizes:e.content.relativeSizes(),expansionStates:e.content.widgets.map((e=>e.isVisible))}}}));return{collapsed:e,currentWidget:n,visible:!this._isHiddenByUser,widgets:t,widgetStates:i}}rehydrate(e){if(e.currentWidget){this.activate(e.currentWidget.id)}if(e.collapsed){this.collapse()}if(!e.visible){this.hide()}if(e.widgetStates){this._stackedPanel.widgets.forEach((t=>{var n;if(t.id&&t.content instanceof M.SplitPanel){const i=(n=e.widgetStates[t.id])!==null&&n!==void 0?n:{};t.content.widgets.forEach(((e,n)=>{var s;const o=((s=i.expansionStates)!==null&&s!==void 0?s:[])[n];if(typeof o==="boolean"&&t.content instanceof M.AccordionPanel){o?t.content.expand(n):t.content.collapse(n)}}));if(i.sizes){t.content.setRelativeSizes(i.sizes)}}}))}}hide(){this._isHiddenByUser=true;this._refreshVisibility()}show(){this._isHiddenByUser=false;this._refreshVisibility()}_findInsertIndex(t){return I.ArrayExt.upperBound(this._items,t,e.itemCmp)}_findWidgetIndex(e){return I.ArrayExt.findFirstIndex(this._items,(t=>t.widget===e))}_findWidgetByTitle(e){const t=(0,I.find)(this._items,(t=>t.widget.title===e));return t?t.widget:null}_findWidgetByID(e){const t=(0,I.find)(this._items,(t=>t.widget.id===e));return t?t.widget:null}_refreshVisibility(){this._stackedPanel.setHidden(this._sideBar.currentTitle===null);this._sideBar.setHidden(this._isHiddenByUser||this._sideBar.titles.length===0);this._updated.emit()}_onCurrentChanged(e,t){const n=t.previousTitle?this._findWidgetByTitle(t.previousTitle):null;const i=t.currentTitle?this._findWidgetByTitle(t.currentTitle):null;if(n){n.hide()}if(i){i.show()}this._lastCurrent=i||n;this._refreshVisibility()}_onTabActivateRequested(e,t){t.title.owner.activate()}_onWidgetRemoved(e,t){if(t===this._lastCurrent){this._lastCurrent=null}I.ArrayExt.removeAt(this._items,this._findWidgetIndex(t));this._sideBar.removeTab(t.title);this._refreshVisibility()}}e.SideBarHandler=s;class o extends M.Widget{constructor(e){super();this.addClass("jp-skiplink");this.id="jp-skiplink";this._shell=e;this._createSkipLink("Skip to main panel","main")}handleEvent(e){var t,n;switch(e.type){case"click":if(e.target instanceof HTMLElement){this._shell.activateArea((n=(t=e.target)===null||t===void 0?void 0:t.dataset)===null||n===void 0?void 0:n.targetarea)}break}}onAfterAttach(e){super.onAfterAttach(e);this.node.addEventListener("click",this)}onBeforeDetach(e){this.node.removeEventListener("click",this);super.onBeforeDetach(e)}_createSkipLink(e,t){const n=document.createElement("a");n.href="#";n.tabIndex=0;n.text=e;n.className="skip-link";n.dataset["targetarea"]=t;this.node.appendChild(n)}}e.SkipLinkWidget=o;class r extends M.Widget{constructor(e){super();this._selected=false;const t=document.createElement("input");t.type="text";this.node.appendChild(t);this._shell=e;this.id="jp-title-panel-title"}onAfterAttach(e){super.onAfterAttach(e);this.inputElement.addEventListener("keyup",this);this.inputElement.addEventListener("click",this);this.inputElement.addEventListener("blur",this)}onBeforeDetach(e){super.onBeforeDetach(e);this.inputElement.removeEventListener("keyup",this);this.inputElement.removeEventListener("click",this);this.inputElement.removeEventListener("blur",this)}handleEvent(e){switch(e.type){case"keyup":void this._evtKeyUp(e);break;case"click":this._evtClick(e);break;case"blur":this._selected=false;break}}async _evtKeyUp(e){if(e.key=="Enter"){const e=this._shell.currentWidget;if(e==null){return}const t=e.title.label;const n=this.inputElement;const i=n.value;n.blur();if(i!==t){e.title.label=i}else{n.value=t}}}_evtClick(e){if(e.button!==0||this._selected){return}const t=this.inputElement;e.preventDefault();e.stopPropagation();this._selected=true;const n=t.value.indexOf(".");if(n===-1){t.select()}else{t.setSelectionRange(0,n)}}get inputElement(){return this.node.children[0]}}e.TitleHandler=r;class a extends M.SplitPanel{constructor(e={}){super(e);this._updated=new u.Signal(this)}get updated(){return this._updated}onUpdateRequest(e){super.onUpdateRequest(e);this._updated.emit()}}e.RestorableSplitPanel=a})(F||(F={}));var z=n(90044);class W{constructor(e){this._busyCount=0;this._dirtyCount=0;this._busySignal=new u.Signal(e);this._dirtySignal=new u.Signal(e)}get busySignal(){return this._busySignal}get dirtySignal(){return this._dirtySignal}get isBusy(){return this._busyCount>0}get isDirty(){return this._dirtyCount>0}setDirty(){const e=this.isDirty;this._dirtyCount++;if(this.isDirty!==e){this._dirtySignal.emit(this.isDirty)}return new z.DisposableDelegate((()=>{const e=this.isDirty;this._dirtyCount=Math.max(0,this._dirtyCount-1);if(this.isDirty!==e){this._dirtySignal.emit(this.isDirty)}}))}setBusy(){const e=this.isBusy;this._busyCount++;if(this.isBusy!==e){this._busySignal.emit(this.isBusy)}return new z.DisposableDelegate((()=>{const e=this.isBusy;this._busyCount--;if(this.isBusy!==e){this._busySignal.emit(this.isBusy)}}))}}class H extends p{constructor(e={shell:new O}){super({...e,shell:e.shell||new O,serviceManager:e.serviceManager||new l.ServiceManager({standby:()=>!this._info.isConnected||"when-hidden"})});this.name=f.PageConfig.getOption("appName")||"JupyterLab";this.namespace=f.PageConfig.getOption("appNamespace")||this.name;this.registerPluginErrors=[];this.status=new W(this);this.version=f.PageConfig.getOption("appVersion")||"unknown";this._allPluginsActivated=new h.PromiseDelegate;this._info=new H.Info(e);this.restored=this.shell.restored.then((async()=>{const e=[];const t=this.activateDeferredPlugins().catch((e=>{console.error("Error when activating deferred plugins\n:",e)}));e.push(t);if(this._info.deferred){const t=Promise.all(this._info.deferred.matches.map((e=>this.activatePlugin(e)))).catch((e=>{console.error("Error when activating customized list of deferred plugins:\n",e)}));e.push(t)}Promise.all(e).then((()=>{this._allPluginsActivated.resolve()})).catch((()=>undefined))})).catch((()=>undefined));const t=H.defaultPaths.urls;const n=H.defaultPaths.directories;const i=e.paths&&e.paths.urls||{};const s=e.paths&&e.paths.directories||{};this._paths={urls:Object.keys(t).reduce(((e,n)=>{if(n in i){const t=i[n];e[n]=t}else{e[n]=t[n]}return e}),{}),directories:Object.keys(H.defaultPaths.directories).reduce(((e,t)=>{if(t in s){const n=s[t];e[t]=n}else{e[t]=n[t]}return e}),{})};if(this._info.devMode){this.shell.addClass("jp-mod-devMode")}this.docRegistry.addModelFactory(new a.Base64ModelFactory);if(e.mimeExtensions){for(const t of S(e.mimeExtensions)){this.registerPlugin(t)}}}get info(){return this._info}get paths(){return this._paths}get allPluginsActivated(){return this._allPluginsActivated.promise}registerPluginModule(e){let t=e.default;if(!e.hasOwnProperty("__esModule")){t=e}if(!Array.isArray(t)){t=[t]}t.forEach((e=>{try{this.registerPlugin(e)}catch(t){this.registerPluginErrors.push(t)}}))}registerPluginModules(e){e.forEach((e=>{this.registerPluginModule(e)}))}evtKeydown(e){const t=new h.PromiseDelegate;this.commands.holdKeyBindingExecution(e,t.promise);this.commands.processKeydownEvent(e);const n=e.target;if(!n){return t.resolve(true)}let i=null;let s=null;const o=()=>{if(i){n.removeEventListener("beforeinput",i)}if(s){n.removeEventListener("keyup",s)}};const r=Promise.race([new Promise((e=>{i=t=>{switch(t.inputType){case"historyUndo":case"historyRedo":{if(t.target instanceof Element&&t.target.closest("[data-jp-undoer]")){t.preventDefault();o();return e(false)}break}case"insertLineBreak":{if(t.target instanceof Element&&t.target.closest(".jp-Cell")){t.preventDefault();o();return e(false)}break}}o();return e(true)};n.addEventListener("beforeinput",i,{once:true})})),new Promise((t=>{s=n=>{if(n.code===e.code){o();return t(false)}};n.addEventListener("keyup",s,{once:true})})),new Promise((e=>{setTimeout((()=>{o();return e(false)}),V.INPUT_GUARD_TIMEOUT)}))]);r.then((e=>{t.resolve(!e)})).catch(console.warn)}}(function(e){e.IInfo=new h.Token("@jupyterlab/application:IInfo","A service providing metadata about the current application, including disabled extensions and whether dev mode is enabled.");class t{constructor({connectionStatus:t,...n}={}){var i,s,o,r,a,d,c;this._connectionStatus=t!==null&&t!==void 0?t:new l.ConnectionStatus;this._availablePlugins=(i=n.availablePlugins)!==null&&i!==void 0?i:e.defaultInfo.availablePlugins;this._devMode=(s=n.devMode)!==null&&s!==void 0?s:e.defaultInfo.devMode;this._deferred=JSON.parse(JSON.stringify((o=n.deferred)!==null&&o!==void 0?o:e.defaultInfo.deferred));this._disabled=JSON.parse(JSON.stringify((r=n.disabled)!==null&&r!==void 0?r:e.defaultInfo.disabled));this._filesCached=(a=n.filesCached)!==null&&a!==void 0?a:e.defaultInfo.filesCached;this._mimeExtensions=JSON.parse(JSON.stringify((d=n.mimeExtensions)!==null&&d!==void 0?d:e.defaultInfo.mimeExtensions));this.isConnected=(c=n.isConnected)!==null&&c!==void 0?c:e.defaultInfo.isConnected}get availablePlugins(){return this._availablePlugins}get devMode(){return this._devMode}get deferred(){return this._deferred}get disabled(){return this._disabled}get filesCached(){return this._filesCached}get isConnected(){return this._connectionStatus.isConnected}set isConnected(e){this._connectionStatus.isConnected=e}get mimeExtensions(){return this._mimeExtensions}}e.Info=t;e.defaultInfo={devMode:f.PageConfig.getOption("devMode").toLowerCase()==="true",deferred:{patterns:[],matches:[]},disabled:{patterns:[],matches:[]},mimeExtensions:[],availablePlugins:[],filesCached:f.PageConfig.getOption("cacheFiles").toLowerCase()==="true",isConnected:true};e.defaultPaths={urls:{base:f.PageConfig.getOption("baseUrl"),notFound:f.PageConfig.getOption("notFoundUrl"),app:f.PageConfig.getOption("appUrl"),doc:f.PageConfig.getOption("docUrl"),static:f.PageConfig.getOption("staticUrl"),settings:f.PageConfig.getOption("settingsUrl"),themes:f.PageConfig.getOption("themesUrl"),translations:f.PageConfig.getOption("translationsApiUrl"),hubHost:f.PageConfig.getOption("hubHost")||undefined,hubPrefix:f.PageConfig.getOption("hubPrefix")||undefined,hubUser:f.PageConfig.getOption("hubUser")||undefined,hubServerName:f.PageConfig.getOption("hubServerName")||undefined},directories:{appSettings:f.PageConfig.getOption("appSettingsDir"),schemas:f.PageConfig.getOption("schemasDir"),static:f.PageConfig.getOption("staticDir"),templates:f.PageConfig.getOption("templatesDir"),themes:f.PageConfig.getOption("themesDir"),userSettings:f.PageConfig.getOption("userSettingsDir"),serverRoot:f.PageConfig.getOption("serverRoot"),workspaces:f.PageConfig.getOption("workspacesDir")}}})(H||(H={}));var V;(function(e){e.INPUT_GUARD_TIMEOUT=10})(V||(V={}));class U{constructor(e){this.stop=new h.Token("@jupyterlab/application:Router#stop");this._routed=new u.Signal(this);this._rules=new Map;this.base=e.base;this.commands=e.commands}get current(){var e,t;const{base:n}=this;const i=f.URLExt.parse(window.location.href);const{search:s,hash:o}=i;const r=(t=(e=i.pathname)===null||e===void 0?void 0:e.replace(n,"/"))!==null&&t!==void 0?t:"";const a=r+s+o;return{hash:o,path:r,request:a,search:s}}get routed(){return this._routed}navigate(e,t={}){const{base:n}=this;const{history:i}=window;const{hard:s}=t;const o=document.location.href;const r=e&&e.indexOf(n)===0?e:f.URLExt.join(n,e);if(r===o){return s?this.reload():undefined}i.pushState({},"",r);if(s){return this.reload()}if(!t.skipRouting){requestAnimationFrame((()=>{void this.route()}))}}register(e){var t;const{command:n,pattern:i}=e;const s=(t=e.rank)!==null&&t!==void 0?t:100;const o=this._rules;o.set(i,{command:n,rank:s});return new z.DisposableDelegate((()=>{o.delete(i)}))}reload(){window.location.reload()}route(){const{commands:e,current:t,stop:n}=this;const{request:i}=t;const s=this._routed;const o=this._rules;const r=[];o.forEach(((e,t)=>{if(i===null||i===void 0?void 0:i.match(t)){r.push(e)}}));const a=r.sort(((e,t)=>t.rank-e.rank));const l=new h.PromiseDelegate;const d=async()=>{if(!a.length){s.emit(t);l.resolve(undefined);return}const{command:o}=a.pop();try{const i=this.current.request;const s=await e.execute(o,t);if(s===n){a.length=0;console.debug(`Routing ${i} was short-circuited by ${o}`)}}catch(r){console.warn(`Routing ${i} to ${o} failed`,r)}void d()};void d();return l.promise}}const q=new h.Token("@jupyterlab/application:IConnectionLost",`A service for invoking the dialog shown\n when JupyterLab has lost its connection to the server. Use this if, for some reason,\n you want to bring up the "connection lost" dialog under new circumstances.`);const $=new h.Token("@jupyterlab/application:ILabStatus",`A service for interacting with the application busy/dirty\n status. Use this if you want to set the application "busy" favicon, or to set\n the application "dirty" status, which asks the user for confirmation before leaving the application page.`);const K=new h.Token("@jupyterlab/application:IRouter","The URL router used by the application. Use this to add custom URL-routing for your extension (e.g., to invoke a command if the user navigates to a sub-path).");const J=new h.Token("@jupyterlab/application:ITreePathUpdater","A service to update the tree path.");function G(e){const{id:t,commands:n,shell:i,semanticCommands:o,default:r,overrides:a,trans:l}=e;n.addCommand(t,{...Y({commands:n,shell:i},o,r!==null&&r!==void 0?r:{},l!==null&&l!==void 0?l:s.nullTranslator.load("jupyterlab")),...a});const d=Array.isArray(o)?o:[o];const c=(e,n)=>{if(n.id){if(n.id===t&&n.type==="removed"){e.commandChanged.disconnect(c)}else{const i=d.reduce(((e,t)=>e.concat(t.ids)),[]);if(i.includes(n.id)){switch(n.type){case"changed":case"many-changed":e.notifyCommandChanged(t);break;case"removed":for(const e of d){e.remove(n.id)}break}}}}};n.commandChanged.connect(c)}function Y(e,t,n,s){const{commands:o,shell:r}=e;const a=Array.isArray(t)?t:[t];return{label:d("label"),caption:d("caption"),isEnabled:()=>{var e;const t=l("isEnabled");return t.length>0&&!t.some((e=>e===false))||((e=n.isEnabled)!==null&&e!==void 0?e:false)},isToggled:()=>{var e;const t=l("isToggled");return t.some((e=>e===true))||((e=n.isToggled)!==null&&e!==void 0?e:false)},isVisible:()=>{var e;const t=l("isVisible");return t.length>0&&!t.some((e=>e===false))||((e=n.isVisible)!==null&&e!==void 0?e:true)},execute:async()=>{const e=r.currentWidget;const t=a.map((t=>e!==null?t.getActiveCommandId(e):null));const s=t.filter((e=>e!==null&&o.isEnabled(e)));let l=null;if(s.length>0){for(const t of s){const n={[i.SemanticCommand.WIDGET]:e.id};l=await o.execute(t,n);if(typeof l==="boolean"&&l===false){break}}}else if(n.execute){l=await o.execute(n.execute)}return l}};function l(e){const t=r.currentWidget;const n=a.map((e=>t!==null?e.getActiveCommandId(t):null));const i=n.filter((e=>e!==null)).map((t=>o[e](t)));return i}function d(e){return()=>{var t;const i=l(e).map(((t,n)=>e=="caption"&&n>0?t.toLocaleLowerCase():t));switch(i.length){case 0:return(t=n[e])!==null&&t!==void 0?t:"";case 1:return i[0];default:{const e=i.some((e=>/…$/.test(e)));const t=i.slice(undefined,-1).map((e=>e.replace(/…$/,""))).join(", ");const n=i.slice(-1)[0].replace(/…$/,"")+(e?"…":"");return s.__("%1 and %2",t,n)}}}}}},3579:(e,t,n)=>{"use strict";var i=n(2898);var s=n(40244);var o=n(10395);var r=n(40662);var a=n(97913);var l=n(79010);var d=n(85072);var c=n.n(d);var h=n(97825);var u=n.n(h);var p=n(77659);var m=n.n(p);var g=n(55056);var f=n.n(g);var v=n(10540);var _=n.n(v);var b=n(41113);var y=n.n(b);var w=n(30966);var C={};C.styleTagTransform=y();C.setAttributes=f();C.insert=m().bind(null,"head");C.domAPI=u();C.insertStyleElement=_();var x=c()(w.A,C);const S=w.A&&w.A.locals?w.A.locals:undefined},97472:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>De,kernelSettings:()=>Ee,toggleHeader:()=>xe});var i=n(88617);var s=n(38850);var o=n(40959);var r=n(93067);var a=n(40065);var l=n(78629);var d=n(34881);var c=n(4073);var h=n(5592);var u=n(90044);var p=n(26568);var m=n(49278);const g="help:open";const f="/lab/api/news";const v="/lab/api/update";const _="https://jupyterlab.readthedocs.io/en/stable/privacy_policies.html";async function b(e,t={},n){const i=n!==null&&n!==void 0?n:m.ServerConnection.makeSettings();const s=o.URLExt.join(i.baseUrl,e);let r;try{r=await m.ServerConnection.makeRequest(s,t,i)}catch(l){throw new m.ServerConnection.NetworkError(l)}const a=await r.json();if(!r.ok){throw new m.ServerConnection.ResponseError(r,a.message)}return a}const y={id:"@jupyterlab/apputils-extension:announcements",description:"Add the announcement feature. It will fetch news on the internet and check for application updates.",autoStart:true,optional:[m.IConfigSectionManager,a.ISettingRegistry,d.ITranslator],activate:(e,t,n,i)=>{var o,r;const a=y.id.replace(/[^\w]/g,"");void Promise.all([e.restored,(o=n===null||n===void 0?void 0:n.load("@jupyterlab/apputils-extension:notification"))!==null&&o!==void 0?o:Promise.resolve(null),(r=t===null||t===void 0?void 0:t.create({name:a}))!==null&&r!==void 0?r:Promise.resolve(null)]).then((async([t,n,o])=>{const r=(i!==null&&i!==void 0?i:d.nullTranslator).load("jupyterlab");s.Notification.manager.changed.connect(((e,t)=>{var n;if(t.type!=="removed"){return}const{id:i,tags:s}=(n=t.notification.options.data)!==null&&n!==void 0?n:{};if((s!==null&&s!==void 0?s:[]).some((e=>["news","update"].includes(e)))&&i){const e={};e[i]={seen:true,dismissed:true};o===null||o===void 0?void 0:o.update(e).catch((e=>{console.error(`Failed to update the announcements config:\n${e}`)}))}}));const a=n===null||n===void 0?void 0:n.get("fetchNews").composite;if(a==="none"){const t=s.Notification.emit(r.__("Would you like to get notified about official Jupyter news?"),"default",{autoClose:false,actions:[{label:r.__("Open privacy policy"),caption:_,callback:t=>{t.preventDefault();if(e.commands.hasCommand(g)){void e.commands.execute(g,{text:r.__("Privacy policies"),url:_})}else{window.open(_,"_blank","noreferrer")}},displayType:"link"},{label:r.__("Yes"),callback:()=>{s.Notification.dismiss(t);o===null||o===void 0?void 0:o.update({}).then((()=>l())).catch((e=>{console.error(`Failed to get the news:\n${e}`)}));n===null||n===void 0?void 0:n.set("fetchNews","true").catch((e=>{console.error(`Failed to save setting 'fetchNews':\n${e}`)}))}},{label:r.__("No"),callback:()=>{s.Notification.dismiss(t);n===null||n===void 0?void 0:n.set("fetchNews","false").catch((e=>{console.error(`Failed to save setting 'fetchNews':\n${e}`)}))}}]})}else{await l()}async function l(){var t,i,a,l;if(((t=n===null||n===void 0?void 0:n.get("fetchNews").composite)!==null&&t!==void 0?t:"false")==="true"){try{const t=await b(f,{},e.serviceManager.serverSettings);for(const{link:e,message:n,type:a,options:l}of t.news){const t=l.data["id"];const d=(i=o===null||o===void 0?void 0:o.data[t])!==null&&i!==void 0?i:{seen:false,dismissed:false};if(!d.dismissed){l.actions=[{label:r.__("Hide"),caption:r.__("Never show this notification again."),callback:()=>{const e={};e[t]={seen:true,dismissed:true};o===null||o===void 0?void 0:o.update(e).catch((e=>{console.error(`Failed to update the announcements config:\n${e}`)}))}}];if((e===null||e===void 0?void 0:e.length)===2){l.actions.push({label:e[0],caption:e[1],callback:()=>{window.open(e[1],"_blank","noreferrer")},displayType:"link"})}if(!d.seen){l.autoClose=5e3;const e={};e[t]={seen:true};o===null||o===void 0?void 0:o.update(e).catch((e=>{console.error(`Failed to update the announcements config:\n${e}`)}))}s.Notification.emit(n,a,l)}}}catch(d){console.log("Failed to get the announcements.",d)}}if((a=n===null||n===void 0?void 0:n.get("checkForUpdates").composite)!==null&&a!==void 0?a:true){const t=await b(v,{},e.serviceManager.serverSettings);if(t.notification){const{link:e,message:i,type:a,options:d}=t.notification;const c=d.data["id"];const h=(l=o===null||o===void 0?void 0:o.data[c])!==null&&l!==void 0?l:{seen:false,dismissed:false};if(!h.dismissed){let t;d.actions=[{label:r.__("Ignore all updates"),caption:r.__("Do not prompt me if a new JupyterLab version is available."),callback:()=>{n===null||n===void 0?void 0:n.set("checkForUpdates",false).then((()=>{s.Notification.dismiss(t)})).catch((e=>{console.error("Failed to set the `checkForUpdates` setting.",e)}))}}];if((e===null||e===void 0?void 0:e.length)===2){d.actions.push({label:e[0],caption:e[1],callback:()=>{window.open(e[1],"_blank","noreferrer")},displayType:"accent"})}if(!h.seen){d.autoClose=5e3;const e={};e[c]={seen:true};o===null||o===void 0?void 0:o.update(e).catch((e=>{console.error(`Failed to update the announcements config:\n${e}`)}))}t=s.Notification.emit(i,a,d)}}}}}))}};var w=n(89433);var C;(function(e){e.licenses="apputils:licenses";e.licenseReport="apputils:license-report";e.refreshLicenses="apputils:licenses-refresh"})(C||(C={}));const x={id:"@jupyterlab/apputils-extension:licenses-client",description:"The licenses client plugin for fetching licenses.",autoStart:true,provides:s.ILicensesClient,activate:e=>{const t=e.serviceManager.serverSettings;return new s.Licenses.LicensesClient({serverSettings:t})}};const S={id:"@jupyterlab/apputils-extension:licenses-plugin",description:"Adds licenses reporting tools.",requires:[s.ILicensesClient,d.ITranslator],optional:[i.ILayoutRestorer,w.IMainMenu,s.ICommandPalette],autoStart:true,activate:(e,t,n,i,r,a)=>{const{commands:l,shell:d}=e;const h=n.load("jupyterlab");const u=h.__("Help");const p=h.__("Download All Licenses as");const m=h.__("Refresh Licenses");const g="help-licenses";const f=new s.WidgetTracker({namespace:g});const v=h.__("Licenses");let _=0;function b(e){const n=new s.Licenses.Model({...e,client:t,trans:h});const i=new s.Licenses({model:n});i.id=`${g}-${++_}`;i.title.label=v;i.title.icon=c.copyrightIcon;const o=new s.MainAreaWidget({content:i,reveal:n.licensesReady});o.toolbar.addItem("refresh-licenses",new c.CommandToolbarButton({id:C.refreshLicenses,args:{noLabel:1},commands:l}));o.toolbar.addItem("spacer",c.Toolbar.createSpacerItem());for(const t of Object.keys(s.Licenses.REPORT_FORMATS)){const e=new c.CommandToolbarButton({id:C.licenseReport,args:{format:t,noLabel:1},commands:l});o.toolbar.addItem(`download-${t}`,e)}return o}function y(e){return s.Licenses.REPORT_FORMATS[e]||s.Licenses.REPORT_FORMATS[s.Licenses.DEFAULT_FORMAT]}l.addCommand(C.licenses,{label:v,describedBy:{args:{type:"object",properties:{}}},execute:e=>{if(!o.PageConfig.getOption("licensesUrl")){console.warn("No license API available from the server");return}const t=b(e);d.add(t,"main",{type:"Licenses"});void f.add(t);t.content.model.trackerDataChanged.connect((()=>{void f.save(t)}));return t}});l.addCommand(C.refreshLicenses,{label:e=>e.noLabel?"":m,caption:m,icon:c.refreshIcon,describedBy:{args:{type:"object",properties:{noLabel:{oneOf:[{type:"boolean"},{type:"number"}],description:"Whether to hide the label (truthy values hide label)"}}}},execute:async()=>{var e;return(e=f.currentWidget)===null||e===void 0?void 0:e.content.model.initLicenses()}});l.addCommand(C.licenseReport,{label:e=>{if(e.noLabel){return""}const t=y(`${e.format}`);return`${p} ${t.title}`},caption:e=>{const t=y(`${e.format}`);return`${p} ${t.title}`},icon:e=>{const t=y(`${e.format}`);return t.icon},describedBy:{args:{type:"object",properties:{format:{type:"string",description:h.__("The report format to use for download")},noLabel:{oneOf:[{type:"boolean"},{type:"number"}],description:"Whether to hide the label (truthy values hide label)"}},required:["format"]}},execute:async e=>{var t;const n=y(`${e.format}`);return await((t=f.currentWidget)===null||t===void 0?void 0:t.content.model.download({format:n.id}))}});if(a){a.addItem({command:C.licenses,category:u})}if(r){const e=r.helpMenu;e.addGroup([{command:C.licenses}],0)}if(i){void i.restore(f,{command:C.licenses,name:e=>"licenses",args:e=>{const{currentBundleName:t,currentPackageIndex:n,packageFilter:i}=e.content.model;const s={currentBundleName:t,currentPackageIndex:n,packageFilter:i};return s}})}}};var j=n(4625);var k=n(27518);var I=n(44914);var T=n(5338);const E="jp-Notification-Toast-Close";const M="jp-Notification-Toast-Close-Margin";const D=140;var A;(function(e){e.dismiss="apputils:dismiss-notification";e.display="apputils:display-notifications";e.notify="apputils:notify";e.update="apputils:update-notification"})(A||(A={}));const P=4;function L(e){const{manager:t,onClose:n,trans:i}=e;const[s,o]=I.useState([]);const[r,a]=I.useState(null);I.useEffect((()=>{async function e(){o(await Promise.all(t.notifications.map((async e=>Object.freeze({...e})))))}if(s.length!==t.count){void e()}t.changed.connect(e);return()=>{t.changed.disconnect(e)}}),[t]);I.useEffect((()=>{O.getIcons().then((e=>{a(e)})).catch((e=>{console.error(`Failed to get react-toastify icons:\n${e}`)}))}),[]);return I.createElement(c.UseSignal,{signal:t.changed},(()=>I.createElement(I.Fragment,null,I.createElement("h2",{className:"jp-Notification-Header jp-Toolbar"},I.createElement("span",{className:"jp-Toolbar-item"},t.count>0?i._n("%1 notification","%1 notifications",t.count):i.__("No notifications")),I.createElement("span",{className:"jp-Toolbar-item jp-Toolbar-spacer"}),I.createElement(c.ToolbarButtonComponent,{noFocusOnClick:false,onClick:()=>{t.dismiss()},icon:c.deleteIcon,tooltip:i.__("Dismiss all notifications"),enabled:t.count>0}),I.createElement(c.ToolbarButtonComponent,{noFocusOnClick:false,onClick:n,icon:c.closeIcon,tooltip:i.__("Hide notifications")})),I.createElement("ol",{className:"jp-Notification-List"},s.map((e=>{var n;const{id:s,message:o,type:a,options:l}=e;const d=a==="in-progress"?"default":a;const h=()=>{t.dismiss(s)};const u=a==="default"?null:a==="in-progress"?(n=r===null||r===void 0?void 0:r.spinner)!==null&&n!==void 0?n:null:r&&r[a];return I.createElement("li",{className:"jp-Notification-List-Item",key:e.id,onClick:e=>{e.stopPropagation()}},I.createElement("div",{className:`Toastify__toast Toastify__toast-theme--light Toastify__toast--${d} jp-Notification-Toast-${d}`},I.createElement("div",{className:"Toastify__toast-body"},u&&I.createElement("div",{className:"Toastify__toast-icon"},u({theme:"light",type:d})),I.createElement("div",null,O.createContent(o,h,l.actions))),I.createElement(O.CloseButton,{close:h,closeIcon:c.deleteIcon.react,title:i.__("Dismiss notification"),closeIconMargin:true})))}))))))}class R extends c.VDomModel{constructor(e){super();this.manager=e;this._highlight=false;this._listOpened=false;this._doNotDisturbMode=false;this._count=e.count;this.manager.changed.connect(this.onNotificationChanged,this)}get count(){return this._count}get doNotDisturbMode(){return this._doNotDisturbMode}set doNotDisturbMode(e){this._doNotDisturbMode=e}get highlight(){return this._highlight}get listOpened(){return this._listOpened}set listOpened(e){this._listOpened=e;if(this._listOpened||this._highlight){this._highlight=false}this.stateChanged.emit()}onNotificationChanged(e,t){this._count=this.manager.count;const{autoClose:n}=t.notification.options;const i=this.doNotDisturbMode||typeof n==="number"&&n<=0;if(!this._listOpened&&t.type!=="removed"&&i){this._highlight=true}this.stateChanged.emit()}}function N(e){return I.createElement(j.GroupItem,{role:"button",tabIndex:0,"aria-haspopup":true,spacing:P,onClick:()=>{e.onClick()},onKeyDown:t=>{if(t.key==="Enter"||t.key===" "){e.onClick()}},title:e.count>0?e.trans._n("%1 notification","%1 notifications",e.count):e.trans.__("No notifications")},I.createElement(j.TextItem,{className:"jp-Notification-Status-Text",source:`${e.count}`}),I.createElement(c.bellIcon.react,{top:"2px",stylesheet:"statusBar"}))}const B={id:"@jupyterlab/apputils-extension:notification",description:"Add the notification center and its status indicator.",autoStart:true,optional:[j.IStatusBar,a.ISettingRegistry,d.ITranslator],activate:(e,t,n,i)=>{O.translator=i!==null&&i!==void 0?i:d.nullTranslator;const o=O.translator.load("jupyterlab");const r=new R(s.Notification.manager);r.doNotDisturbMode=false;if(n){void Promise.all([n.load(B.id),e.restored]).then((([e])=>{const t=()=>{r.doNotDisturbMode=e.get("doNotDisturbMode").composite};t();e.changed.connect(t)}))}e.commands.addCommand(A.notify,{label:o.__("Emit a notification"),caption:o.__("Notification is described by {message: string, type?: string, options?: {autoClose?: number | false, actions: {label: string, commandId: string, args?: ReadOnlyJSONObject, caption?: string, className?: string}[], data?: ReadOnlyJSONValue}}."),describedBy:{args:{type:"object",properties:{message:{type:"string",description:"The notification message text"},type:{type:"string",description:'The notification type (e.g., "default", "info", "warning", "error")'},options:{type:"object",description:"Additional notification options",properties:{autoClose:{oneOf:[{type:"number"},{type:"boolean"}],description:"Auto-close timeout in milliseconds, or false to disable"},actions:{type:"array",description:"Array of action buttons for the notification",items:{type:"object",properties:{label:{type:"string",description:"The action button label"},commandId:{type:"string",description:"The command ID to execute when clicked"},args:{description:"Arguments to pass to the command"},caption:{type:"string",description:"The action button caption/tooltip"},className:{type:"string",description:"CSS class name for the action button"}},required:["label","commandId"]}},data:{description:"Additional data associated with the notification"}}}},required:["message"]}},execute:t=>{var n;const{message:i,type:o}=t;const r=(n=t.options)!==null&&n!==void 0?n:{};return s.Notification.manager.notify(i,o!==null&&o!==void 0?o:"default",{...r,actions:r.actions?r.actions.map((t=>({...t,callback:()=>{e.commands.execute(t.commandId,t.args).catch((e=>{console.error(`Failed to executed '${t.commandId}':\n${e}`)}))}}))):null})}});e.commands.addCommand(A.update,{label:o.__("Update a notification"),caption:o.__("Notification is described by {id: string, message: string, type?: string, options?: {autoClose?: number | false, actions: {label: string, commandId: string, args?: ReadOnlyJSONObject, caption?: string, className?: string}[], data?: ReadOnlyJSONValue}}."),describedBy:{args:{type:"object",properties:{id:{type:"string",description:"The notification ID to update"},message:{type:"string",description:"The notification message text"},type:{type:"string",description:'The notification type (e.g., "default", "info", "warning", "error")'},options:{type:"object",description:"Additional notification options",properties:{autoClose:{oneOf:[{type:"number"},{type:"boolean"}],description:"Auto-close timeout in milliseconds, or false to disable"},actions:{type:"array",description:"Array of action buttons for the notification",items:{type:"object",properties:{label:{type:"string",description:"The action button label"},commandId:{type:"string",description:"The command ID to execute when clicked"},args:{description:"Arguments to pass to the command"},caption:{type:"string",description:"The action button caption/tooltip"},className:{type:"string",description:"CSS class name for the action button"}},required:["label","commandId"]}},data:{description:"Additional data associated with the notification"}}}},required:["id","message"]}},execute:t=>{const{id:n,message:i,type:o,...r}=t;return s.Notification.manager.update({id:n,message:i,type:o!==null&&o!==void 0?o:"default",...r,actions:r.actions?r.actions.map((t=>({...t,callback:()=>{e.commands.execute(t.commandId,t.args).catch((e=>{console.error(`Failed to executed '${t.commandId}':\n${e}`)}))}}))):null})}});e.commands.addCommand(A.dismiss,{label:o.__("Dismiss a notification"),describedBy:{args:{type:"object",properties:{id:{type:"string",description:"The notification ID to dismiss"}},required:["id"]}},execute:e=>{const{id:t}=e;s.Notification.manager.dismiss(t)}});let a=null;r.listOpened=false;const l=s.ReactWidget.create(I.createElement(L,{manager:s.Notification.manager,onClose:()=>{a===null||a===void 0?void 0:a.dispose()},trans:o}));l.addClass("jp-Notification-Center");async function h(e,t){var n;if(r.doNotDisturbMode||a!==null&&!a.isDisposed){return}const{message:i,type:s,options:o,id:l}=t.notification;if(typeof o.autoClose==="number"&&o.autoClose<=0){return}switch(t.type){case"added":await O.createToast(l,i,s,o);break;case"updated":{const t=await O.toast();const r=o.actions;const a=(n=o.autoClose)!==null&&n!==void 0?n:r&&r.length>0?false:null;if(t.isActive(l)){const n=()=>{t.dismiss(l);e.dismiss(l)};t.update(l,{type:s==="in-progress"?null:s,isLoading:s==="in-progress",autoClose:a,render:O.createContent(i,n,o.actions)})}else{await O.createToast(l,i,s,o)}}break;case"removed":await O.toast().then((e=>{e.dismiss(l)}));break}}s.Notification.manager.changed.connect(h);const u=()=>{if(a){a.dispose();a=null}else{a=(0,j.showPopup)({body:l,anchor:p,align:"right",hasDynamicSize:true,startHidden:true});O.toast().then((e=>{e.dismiss()})).catch((e=>{console.error(`Failed to dismiss all toasts:\n${e}`)})).finally((()=>{a===null||a===void 0?void 0:a.launch();l.node.focus();a===null||a===void 0?void 0:a.disposed.connect((()=>{r.listOpened=false;a=null}))}))}r.listOpened=a!==null};e.commands.addCommand(A.display,{label:o.__("Show Notifications"),describedBy:{args:{type:"object",properties:{}}},execute:u});const p=s.ReactWidget.create(I.createElement(c.UseSignal,{signal:r.stateChanged},(()=>{if(r.highlight||a&&!a.isDisposed){p.addClass("jp-mod-selected")}else{p.removeClass("jp-mod-selected")}return I.createElement(N,{count:r.count,highlight:r.highlight,trans:o,onClick:u})})));p.addClass("jp-Notification-Status");if(t){t.registerStatusItem(B.id,{item:p,align:"right",rank:-1})}else{p.addClass("jp-ThemedContainer");p.node.style.position="fixed";p.node.style.bottom="0";p.node.style.right="10px";k.Widget.attach(p,document.body);p.show()}}};var O;(function(e){e.translator=d.nullTranslator;let t=null;function i(e){var t;return I.createElement("button",{className:`jp-Button jp-mod-minimal ${E}${e.closeIconMargin?` ${M}`:""}`,title:(t=e.title)!==null&&t!==void 0?t:"",onClick:e.close},I.createElement(e.closeIcon,{className:"jp-icon-hover",tag:"span"}))}e.CloseButton=i;function o(t){const n=e.translator.load("jupyterlab");return I.createElement(i,{close:t.closeToast,closeIcon:c.closeIcon.react,title:n.__("Hide notification")})}let r=null;async function a(){if(r===null){r=new h.PromiseDelegate}else{await r.promise}if(t===null){t=await n.e(1210).then(n.t.bind(n,91210,23));const e=document.body.appendChild(document.createElement("div"));e.id="react-toastify-container";e.classList.add("jp-ThemedContainer");const i=(0,T.H)(e);i.render(I.createElement(t.ToastContainer,{draggable:false,closeOnClick:false,hideProgressBar:true,newestOnTop:true,pauseOnFocusLoss:true,pauseOnHover:true,position:"bottom-right",className:"jp-toastContainer",transition:t.Slide,closeButton:o}));r.resolve()}return t.toast}e.toast=a;async function l(){if(t===null){await a()}return t.Icons}e.getIcons=l;const u={accent:"jp-mod-accept",link:"jp-mod-link",warn:"jp-mod-warn",default:""};function p({action:e,closeToast:t}){var n,i;const s=n=>{e.callback(n);if(!n.defaultPrevented){t()}};const o=["jp-toast-button",u[(n=e.displayType)!==null&&n!==void 0?n:"default"]].join(" ");return I.createElement(c.Button,{title:(i=e.caption)!==null&&i!==void 0?i:e.label,className:o,onClick:s,small:true},e.label)}function m(e,t,n){var i;const s=e.length>D?e.slice(0,D)+"…":e;return I.createElement(I.Fragment,null,I.createElement("div",{className:"jp-toast-message"},s.split("\n").map(((e,t)=>I.createElement(I.Fragment,{key:`part-${t}`},t>0?I.createElement("br",null):null,e)))),((i=n===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>0&&I.createElement("div",{className:"jp-toast-buttonBar"},I.createElement("div",{className:"jp-toast-spacer"}),n.map(((e,n)=>I.createElement(p,{key:"button-"+n,action:e,closeToast:t})))))}e.createContent=m;async function g(e,t,n,i={}){const{actions:o,autoClose:r,data:l}=i;const d=await a();const c={autoClose:r!==null&&r!==void 0?r:o&&o.length>0?false:undefined,data:l,className:`jp-Notification-Toast-${n}`,toastId:e,type:n==="in-progress"?null:n,isLoading:n==="in-progress"};return d((({closeToast:n})=>m(t,(()=>{if(n)n();s.Notification.manager.dismiss(e)}),o)),c)}e.createToast=g})(O||(O={}));var F=n(34236);var z=n(93247);var W;(function(e){e.activate="apputils:activate-command-palette"})(W||(W={}));const H="@jupyterlab/apputils-extension:palette";class V{constructor(e,t){this.translator=t||d.nullTranslator;const n=this.translator.load("jupyterlab");this._palette=e;this._palette.title.label="";this._palette.title.caption=n.__("Command Palette")}set placeholder(e){this._palette.inputNode.placeholder=e}get placeholder(){return this._palette.inputNode.placeholder}activate(){this._palette.activate()}addItem(e){const t=this._palette.addItem(e);return new u.DisposableDelegate((()=>{this._palette.removeItem(t)}))}}(function(e){function t(t,n,i){const{commands:o,shell:r}=t;const a=n.load("jupyterlab");const l=U.createPalette(t,n);const d=new s.ModalCommandPalette({commandPalette:l,restore:()=>{const e=t.shell.currentWidget;if(e){e.activate()}}});let c=false;l.node.setAttribute("role","region");l.node.setAttribute("aria-label",a.__("Command Palette Section"));r.add(l,"left",{rank:300,type:"Command Palette"});if(i){const e=i.load(H);const n=e=>{const t=e.get("modal").composite;if(c&&!t){l.parent=null;d.detach();r.add(l,"left",{rank:300,type:"Command Palette"})}else if(!c&&t){l.parent=null;d.palette=l;l.show();d.attach()}c=t};Promise.all([e,t.restored]).then((([e])=>{n(e);e.changed.connect((e=>{n(e)}))})).catch((e=>{console.error(e.message)}))}const h=()=>{const e=(0,F.find)(t.commands.keyBindings,(e=>e.command===W.activate));if(e){const t=e.keys.map(z.CommandRegistry.formatKeystroke).join(", ");l.title.caption=a.__("Commands (%1)",t)}else{l.title.caption=a.__("Commands")}};h();t.commands.keyBindingChanged.connect((()=>{h()}));o.addCommand(W.activate,{describedBy:{args:{type:"object",properties:{}}},execute:()=>{if(c){d.activate()}else{r.activateById(l.id)}},label:a.__("Activate Command Palette")});l.inputNode.placeholder=a.__("SEARCH");return new e(l,n)}e.activate=t;function n(e,t,n){const i=U.createPalette(e,n);t.add(i,"command-palette")}e.restore=n})(V||(V={}));var U;(function(e){let t;function n(e,n){if(!t){t=new k.CommandPalette({commands:e.commands,renderer:c.CommandPaletteSvg.defaultRenderer});t.id="command-palette";t.title.icon=c.paletteIcon;const i=n.load("jupyterlab");t.title.label=i.__("Commands")}return t}e.createPalette=n})(U||(U={}));class q extends l.DataConnector{constructor(e){super();this._throttlers=Object.create(null);this._connector=e}fetch(e){const t=this._throttlers;if(!(e in t)){t[e]=new p.Throttler((()=>this._connector.fetch(e)),100)}return t[e].invoke()}async list(e="all"){const{isDisabled:t}=o.PageConfig.Extension;const{ids:n,values:i}=await this._connector.list(e==="ids"?"ids":undefined);if(e==="all"){return{ids:n,values:i}}if(e==="ids"){return{ids:n}}return{ids:n.filter((e=>!t(e))),values:i.filter((({id:e})=>!t(e)))}}async save(e,t){await this._connector.save(e,t)}}const $={id:"@jupyterlab/apputils-extension:settings-connector",description:"Provides the settings connector.",autoStart:true,provides:a.ISettingConnector,activate:e=>new q(e.serviceManager.settings)};const K={id:"@jupyterlab/apputils-extension:settings",autoStart:true,provides:a.ISettingRegistry,optional:[a.ISettingConnector],description:"Provides the setting registry.",activate:async(e,t)=>{const{isDisabled:n}=o.PageConfig.Extension;const i=t!==null&&t!==void 0?t:new q(e.serviceManager.settings);const s=new a.SettingRegistry({connector:i,plugins:(await i.list("active")).values.filter((t=>e.hasPlugin(t.id)))});void e.restored.then((async()=>{const t=await i.list("ids");t.ids.forEach((async t=>{if(!e.hasPlugin(t)||n(t)||t in s.plugins){return}try{await s.load(t)}catch(i){console.warn(`Settings failed to load for (${t})`,i);if(!e.isPluginActivated(t)){console.warn(`If 'jupyter.lab.transform=true' in the plugin schema, this `+`may happen if {autoStart: false} in (${t}) or if it is `+`one of the deferredExtensions in page config.`)}}}))}));return s}};const J={id:"@jupyterlab/apputils-extension:kernel-status",description:"Provides the kernel status indicator model.",autoStart:true,requires:[j.IStatusBar],provides:s.IKernelStatusModel,optional:[s.ISessionContextDialogs,d.ITranslator,i.ILabShell],activate:(e,t,n,i,o)=>{const r=i!==null&&i!==void 0?i:d.nullTranslator;const a=n!==null&&n!==void 0?n:new s.SessionContextDialogs({translator:r});const l=async()=>{if(!h.model.sessionContext){return}await a.selectKernel(h.model.sessionContext)};const c=async e=>{if(e.key==="Enter"||e.key==="Spacebar"||e.key===" "){e.preventDefault();e.stopPropagation();return l()}};const h=new s.KernelStatus({onClick:l,onKeyDown:c},r);const u=new Set;const p=t=>{u.add(t);if(e.shell.currentWidget){m(e.shell,{newValue:e.shell.currentWidget,oldValue:null})}};function m(e,t){var n;const{oldValue:i,newValue:s}=t;if(i){i.title.changed.disconnect(g)}h.model.sessionContext=(n=[...u].map((e=>e(t.newValue))).filter((e=>e!==null))[0])!==null&&n!==void 0?n:null;if(s&&h.model.sessionContext){g(s.title);s.title.changed.connect(g)}}const g=e=>{h.model.activityName=e.label};if(o){o.currentChanged.connect(m)}t.registerStatusItem(J.id,{priority:1,item:h,align:"left",rank:1,isActive:()=>h.model.sessionContext!==null});return{addSessionProvider:p}}};const G={id:"@jupyterlab/apputils-extension:running-sessions-status",description:"Add the running sessions and terminals status bar item.",autoStart:true,requires:[j.IStatusBar,d.ITranslator],optional:[a.ISettingRegistry],activate:(e,t,n,i)=>{const o=t=>{const i=new s.RunningSessions({onClick:()=>e.shell.activateById("jp-running-sessions"),onKeyDown:t=>{if(t.key==="Enter"||t.key==="Spacebar"||t.key===" "){t.preventDefault();t.stopPropagation();e.shell.activateById("jp-running-sessions")}},serviceManager:e.serviceManager,translator:n,...t});i.model.sessions=Array.from(e.serviceManager.sessions.running()).length;i.model.terminals=Array.from(e.serviceManager.terminals.running()).length;return i};const r=e=>{const n=o(e);return t.registerStatusItem(G.id,{item:n,align:"left",rank:0})};if(i){let e;const t=(t,n)=>{var i,s;const o={"if-any":undefined,never:false,always:true};const a=(i=t===null||t===void 0?void 0:t.get("showStatusBarItem").composite)!==null&&i!==void 0?i:true;const l=o[(s=n===null||n===void 0?void 0:n.get("showStatusBarItem").composite)!==null&&s!==void 0?s:"if-any"];e===null||e===void 0?void 0:e.dispose();if(a||l!==false){e=r({showKernels:a,showTerminals:l})}};const n="@jupyterlab/apputils-extension:kernels-settings";const s="@jupyterlab/terminal-extension:plugin";void Promise.all([n in i.plugins?i.load(n).catch((()=>undefined)):Promise.resolve(undefined),s in i.plugins?i.load(s).catch((()=>undefined)):Promise.resolve(undefined)]).then((([e,n])=>{t(e,n);if(e){e.changed.connect((i=>{e=i;t(e,n)}))}if(n){n.changed.connect((i=>{n=i;t(e,n)}))}}))}else{r({showKernels:true})}}};const Y={id:"@jupyterlab/apputils-extension:subshell-settings",description:"Kernel subshell settings.",autoStart:true,requires:[],optional:[a.ISettingRegistry],activate:(e,t)=>{if(t){e.started.then((async()=>{const n=await t.load("@jupyterlab/apputils-extension:kernels-settings");const i=n.get("commsOverSubshells").composite;e.serviceManager.kernels.commsOverSubshells=i;n.changed.connect((()=>{const t=n.get("commsOverSubshells").composite;e.serviceManager.kernels.commsOverSubshells=t}))})).catch((e=>{console.error("Fail to load settings for the subshells.");console.error(e)}))}}};const X="/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n/*\n * Webkit scrollbar styling.\n * Separate file which is dynamically loaded based on user/theme settings.\n */\n\n/* use standard opaque scrollbars for most nodes */\n\n::-webkit-scrollbar,\n::-webkit-scrollbar-corner {\n background: var(--jp-scrollbar-background-color);\n}\n\n::-webkit-scrollbar-thumb {\n background: rgb(var(--jp-scrollbar-thumb-color));\n border: var(--jp-scrollbar-thumb-margin) solid transparent;\n background-clip: content-box;\n border-radius: var(--jp-scrollbar-thumb-radius);\n}\n\n::-webkit-scrollbar-track:horizontal {\n border-left: var(--jp-scrollbar-endpad) solid\n var(--jp-scrollbar-background-color);\n border-right: var(--jp-scrollbar-endpad) solid\n var(--jp-scrollbar-background-color);\n}\n\n::-webkit-scrollbar-track:vertical {\n border-top: var(--jp-scrollbar-endpad) solid\n var(--jp-scrollbar-background-color);\n border-bottom: var(--jp-scrollbar-endpad) solid\n var(--jp-scrollbar-background-color);\n}\n\n/* for code nodes, use a transparent style of scrollbar */\n\n.CodeMirror-hscrollbar::-webkit-scrollbar,\n.CodeMirror-vscrollbar::-webkit-scrollbar,\n.CodeMirror-hscrollbar::-webkit-scrollbar-corner,\n.CodeMirror-vscrollbar::-webkit-scrollbar-corner {\n background-color: transparent;\n}\n\n.CodeMirror-hscrollbar::-webkit-scrollbar-thumb,\n.CodeMirror-vscrollbar::-webkit-scrollbar-thumb {\n background: rgba(var(--jp-scrollbar-thumb-color), 0.5);\n border: var(--jp-scrollbar-thumb-margin) solid transparent;\n background-clip: content-box;\n border-radius: var(--jp-scrollbar-thumb-radius);\n}\n\n.CodeMirror-hscrollbar::-webkit-scrollbar-track:horizontal {\n border-left: var(--jp-scrollbar-endpad) solid transparent;\n border-right: var(--jp-scrollbar-endpad) solid transparent;\n}\n\n.CodeMirror-vscrollbar::-webkit-scrollbar-track:vertical {\n border-top: var(--jp-scrollbar-endpad) solid transparent;\n border-bottom: var(--jp-scrollbar-endpad) solid transparent;\n}\n";var Q;(function(e){e.changeTheme="apputils:change-theme";e.changePreferredLightTheme="apputils:change-light-theme";e.changePreferredDarkTheme="apputils:change-dark-theme";e.toggleAdaptiveTheme="apputils:adaptive-theme";e.themeScrollbars="apputils:theme-scrollbars";e.changeFont="apputils:change-font";e.incrFontSize="apputils:incr-font-size";e.decrFontSize="apputils:decr-font-size"})(Q||(Q={}));function Z(e){const t=document.createElement("style");t.setAttribute("type","text/css");t.appendChild(document.createTextNode(e));return t}const ee={id:"@jupyterlab/apputils-extension:themes",description:"Provides the theme manager.",requires:[a.ISettingRegistry,i.JupyterFrontEnd.IPaths,d.ITranslator],optional:[s.ISplashScreen],activate:(e,t,n,i,r)=>{const a=i.load("jupyterlab");const l=e.shell;const d=e.commands;const c=o.URLExt.join(e.serviceManager.serverSettings.baseUrl,n.urls.themes);const h=ee.id;const u=new s.ThemeManager({key:h,host:l,settings:t,splash:r!==null&&r!==void 0?r:undefined,url:c});let p=null;let m;u.themeChanged.connect(((e,t)=>{m=t.newValue;document.body.dataset.jpThemeLight=String(u.isLight(m));document.body.dataset.jpThemeName=m;document.body.style.colorScheme=u.isLight(m)?"light":"dark";if(document.body.dataset.jpThemeScrollbars!==String(u.themeScrollbars(m))){document.body.dataset.jpThemeScrollbars=String(u.themeScrollbars(m));if(u.themeScrollbars(m)){if(!p){p=Z(X)}if(!p.parentElement){document.body.appendChild(p)}}else{if(p&&p.parentElement){p.parentElement.removeChild(p)}}}d.notifyCommandChanged(Q.changeTheme)}));d.addCommand(Q.changeTheme,{label:e=>{if(e.theme===undefined){return a.__("Switch to the provided `theme`.")}const t=e["theme"];const n=u.getDisplayName(t);return e["isPalette"]?a.__("Use Theme: %1",n):n},describedBy:{args:{type:"object",properties:{theme:{type:"string",description:a.__("The theme name to switch to")},isPalette:{type:"boolean",description:a.__("Whether the command is being called from the palette")}},required:["theme"]}},isToggled:e=>e["theme"]===m,execute:e=>{const t=e["theme"];if(t===u.theme){return}if(u.isToggledAdaptiveTheme()){return u.toggleAdaptiveTheme()}return u.setTheme(t)}});d.addCommand(Q.changePreferredLightTheme,{label:e=>{if(e.theme===undefined){return a.__("Switch to the provided light `theme`.")}const t=e["theme"];const n=u.getDisplayName(t);return e["isPalette"]?a.__("Set Preferred Light Theme: %1",n):n},describedBy:{args:{type:"object",properties:{theme:{type:"string",description:a.__("The preferred light theme name")},isPalette:{type:"boolean",description:a.__("Whether the command is being called from the palette")}},required:["theme"]}},isToggled:e=>e["theme"]===u.preferredLightTheme,execute:e=>{const t=e["theme"];if(t===u.preferredLightTheme){return}return u.setPreferredLightTheme(t)}});d.addCommand(Q.changePreferredDarkTheme,{label:e=>{if(e.theme===undefined){return a.__("Switch to the provided dark `theme`.")}const t=e["theme"];const n=u.getDisplayName(t);return e["isPalette"]?a.__("Set Preferred Dark Theme: %1",n):n},describedBy:{args:{type:"object",properties:{theme:{type:"string",description:a.__("The preferred dark theme name")},isPalette:{type:"boolean",description:a.__("Whether the command is being called from the palette")}},required:["theme"]}},isToggled:e=>e["theme"]===u.preferredDarkTheme,execute:e=>{const t=e["theme"];if(t===u.preferredDarkTheme){return}return u.setPreferredDarkTheme(t)}});d.addCommand(Q.toggleAdaptiveTheme,{label:e=>e["isPalette"]?a.__("Synchronize Styling Theme with System Settings"):a.__("Synchronize with System Settings"),describedBy:{args:{type:"object",properties:{isPalette:{type:"boolean",description:a.__("Whether the command is being called from the palette")}}}},isToggled:()=>u.isToggledAdaptiveTheme(),execute:()=>{u.toggleAdaptiveTheme().catch(console.warn)}});d.addCommand(Q.themeScrollbars,{label:a.__("Theme Scrollbars"),describedBy:{args:{type:"object",properties:{}}},isToggled:()=>u.isToggledThemeScrollbars(),execute:()=>u.toggleThemeScrollbars()});d.addCommand(Q.changeFont,{label:e=>e["enabled"]?`${e["font"]}`:a.__("waiting for fonts"),describedBy:{args:{type:"object",properties:{enabled:{type:"boolean",description:a.__("Whether the font is available and enabled")},font:{type:"string",description:a.__("The font name")},key:{type:"string",description:a.__("The CSS property key to modify")}},required:["enabled","font","key"]}},isEnabled:e=>e["enabled"],isToggled:e=>u.getCSS(e["key"])===e["font"],execute:e=>u.setCSSOverride(e["key"],e["font"])});d.addCommand(Q.incrFontSize,{label:e=>{switch(e.key){case"code-font-size":return a.__("Increase Code Font Size");case"content-font-size1":return a.__("Increase Content Font Size");case"ui-font-size1":return a.__("Increase UI Font Size");default:return a.__("Increase Font Size")}},describedBy:{args:{type:"object",properties:{key:{type:"string",description:a.__('The font size key to increase (e.g., "code-font-size", "content-font-size1", "ui-font-size1")')}},required:["key"]}},execute:e=>u.incrFontSize(e["key"])});d.addCommand(Q.decrFontSize,{label:e=>{switch(e.key){case"code-font-size":return a.__("Decrease Code Font Size");case"content-font-size1":return a.__("Decrease Content Font Size");case"ui-font-size1":return a.__("Decrease UI Font Size");default:return a.__("Decrease Font Size")}},describedBy:{args:{type:"object",properties:{key:{type:"string",description:a.__('The font size key to decrease (e.g., "code-font-size", "content-font-size1", "ui-font-size1")')}},required:["key"]}},execute:e=>u.decrFontSize(e["key"])});const g=window.matchMedia("(prefers-color-scheme: dark)");const f=e=>{if(u.isToggledAdaptiveTheme()){const t=e.matches?u.preferredDarkTheme:u.preferredLightTheme;if(u.theme!==t){void u.setTheme(t)}}};g.addEventListener("change",f);return u},autoStart:true,provides:s.IThemeManager};const te={id:"@jupyterlab/apputils-extension:themes-palette-menu",description:"Adds theme commands to the menu and the command palette.",requires:[s.IThemeManager,d.ITranslator],optional:[s.ICommandPalette,w.IMainMenu],activate:(e,t,n,i,s)=>{const o=n.load("jupyterlab");if(s){void e.restored.then((()=>{var e;const n=false;const i=(e=s.settingsMenu.items.find((e=>{var t;return e.type==="submenu"&&((t=e.submenu)===null||t===void 0?void 0:t.id)==="jp-mainmenu-settings-apputilstheme"})))===null||e===void 0?void 0:e.submenu;if(i){t.themes.forEach(((e,t)=>{i.insertItem(t,{command:Q.changeTheme,args:{isPalette:n,theme:e}})}))}}))}if(i){void e.restored.then((()=>{const e=o.__("Theme");const n=Q.changeTheme;const s=true;t.themes.forEach((t=>{i.addItem({command:n,args:{isPalette:s,theme:t},category:e})}));t.themes.forEach((t=>{i.addItem({command:Q.changePreferredLightTheme,args:{isPalette:s,theme:t},category:e})}));t.themes.forEach((t=>{i.addItem({command:Q.changePreferredDarkTheme,args:{isPalette:s,theme:t},category:e})}));i.addItem({command:Q.toggleAdaptiveTheme,args:{isPalette:s},category:e});i.addItem({command:Q.themeScrollbars,category:e});i.addItem({command:Q.incrFontSize,args:{key:"code-font-size"},category:e});i.addItem({command:Q.decrFontSize,args:{key:"code-font-size"},category:e});i.addItem({command:Q.incrFontSize,args:{key:"content-font-size1"},category:e});i.addItem({command:Q.decrFontSize,args:{key:"content-font-size1"},category:e});i.addItem({command:Q.incrFontSize,args:{key:"ui-font-size1"},category:e});i.addItem({command:Q.decrFontSize,args:{key:"ui-font-size1"},category:e})}))}},autoStart:true};const ne={id:"@jupyterlab/apputils-extension:toolbar-registry",description:"Provides toolbar items registry.",autoStart:true,provides:s.IToolbarWidgetRegistry,activate:e=>{const t=new s.ToolbarWidgetRegistry({defaultFactory:(0,s.createDefaultFactory)(e.commands)});return t}};var ie=n(33641);const se="jupyterlab-workspace";const oe="."+se;const re="workspace-ui:lastSave";const ae="jp-JupyterIcon";const le={id:"@jupyterlab/apputils-extension:workspaces",description:"Add workspace file type.",autoStart:true,requires:[l.IStateDB,d.ITranslator,i.JupyterFrontEnd.IPaths],optional:[i.IRouter,ie.IWorkspaceCommands],activate:(e,t,n,i,s,r)=>{const a=new de.WorkspaceFactory({workspaces:e.serviceManager.workspaces,state:t,translator:n,open:async t=>{if(r){await e.commands.execute(r.open,{workspace:t})}else{const e=o.URLExt.join(i.urls.app,"workspaces");const n=o.URLExt.join(e,t);if(!n.startsWith(e)){throw new Error("Can only be used for workspaces")}if(s){s.navigate(n,{hard:true})}else{document.location.href=n}}}});const l=n.load("jupyterlab");e.docRegistry.addFileType({name:se,contentType:"file",fileFormat:"text",displayName:l.__("JupyterLab Workspace File"),extensions:[oe],mimeTypes:["text/json"],iconClass:ae});e.docRegistry.addWidgetFactory(a)}};var de;(function(e){class t extends r.ABCWidgetFactory{constructor(e){const t=(e.translator||d.nullTranslator).load("jupyterlab");super({name:"Workspace loader",label:t.__("Workspace loader"),fileTypes:[se],defaultFor:[se],readOnly:true});this._state=e.state;this._workspaces=e.workspaces;this._open=e.open}createNewWidget(e){void e.ready.then((async()=>{const t=e.model;const n=t.toJSON();const i=e.path;const s=n.metadata.id;await this._workspaces.save(s,n);await this._state.save(re,i);await this._open(s)}));return n(e)}}e.WorkspaceFactory=t;function n(e){const t=new r.DocumentWidget({content:new k.Widget,context:e});t.content.dispose();return t}})(de||(de={}));var ce=n(76326);const he="jp-ContextualShortcut-TableRow";const ue="jp-ContextualShortcut-TableLastRow";const pe="jp-ContextualShortcut-TableItem";const me="jp-ContextualShortcut-Key";function ge(e){const{commands:t,trans:n,activeElement:i}=e;const o=i!==null&&i!==void 0?i:document.activeElement;function r(e){const t=[];e.forEach(((e,n)=>{const i=[];e.split(" ").forEach(((e,t)=>{i.push(I.createElement("span",{className:me,key:`ch-${t}`},I.createElement("kbd",null,e)),I.createElement(I.Fragment,{key:`fragment-${t}`}," + "))}));t.push(I.createElement("span",{key:`key-${n}`},i.slice(0,-1)),I.createElement(I.Fragment,{key:`fragment-${n}`}," + "))}));return I.createElement("span",null,t.slice(0,-1))}function a(e){const t=e.charAt(0).toUpperCase()+e.slice(1);return t}function l(e){const n=t.label(e.command);const i=e.command.split(":")[1];const s=i.split("-");let o="";for(let t=0;t0){return n}else{return o}}function d(e,t){let n=t;for(let i=0;n!==null&&n!==n.parentElement;n=n.parentElement,++i){if(n.hasAttribute("data-lm-suppress-shortcuts")){return-1}if(n.matches(e)){return i}}return-1}const c=new Map;for(let s=0;sce.Selector.calculateSpecificity(e.selector)){continue}}c.set(i,[n,e])}let h=-1;const u=new Map;for(let[s,g]of c.values()){h=Math.max(s,h);if(!u.has(s)){u.set(s,[])}u.get(s).push(g)}const p=[];for(let s=0;s<=h;s++){if(u.has(s)){p.push(u.get(s).map((e=>I.createElement("tr",{className:he,key:`${e.command}-${e.keys.join("-").replace(" ","_")}`},I.createElement("td",{className:pe},l(e)),I.createElement("td",{className:pe},r([...e.keys]))))));p.push(I.createElement("tr",{className:ue,key:`group-${s}-last`}))}}const m=I.createElement("table",null,I.createElement("tbody",null,p));return(0,s.showDialog)({title:n.__("Keyboard Shortcuts"),body:m,buttons:[s.Dialog.cancelButton({label:n.__("Close")})]})}const fe=12e3;var ve;(function(e){e.loadState="apputils:load-statedb";e.print="apputils:print";e.reset="apputils:reset";e.resetOnLoad="apputils:reset-on-load";e.runFirstEnabled="apputils:run-first-enabled";e.runAllEnabled="apputils:run-all-enabled";e.toggleHeader="apputils:toggle-header";e.displayShortcuts="apputils:display-shortcuts"})(ve||(ve={}));const _e={id:"@jupyterlab/apputils-extension:palette",description:"Provides the command palette.",autoStart:true,requires:[d.ITranslator],provides:s.ICommandPalette,optional:[a.ISettingRegistry],activate:(e,t,n)=>V.activate(e,t,n)};const be={id:"@jupyterlab/apputils-extension:palette-restorer",description:"Restores the command palette.",autoStart:true,requires:[i.ILayoutRestorer,d.ITranslator],activate:(e,t,n)=>{V.restore(e,t,n)}};const ye={id:"@jupyterlab/apputils-extension:resolver",description:"Provides the window name resolver.",autoStart:true,provides:s.IWindowResolver,requires:[i.JupyterFrontEnd.IPaths,i.IRouter],activate:async(e,t,n)=>{const{hash:i,search:r}=n.current;const a=o.URLExt.queryStringToObject(r||"");const l=new s.WindowResolver;const d=o.PageConfig.getOption("workspace");const c=o.PageConfig.getOption("treePath");const h=o.PageConfig.getOption("mode")==="multiple-document"?"lab":"doc";const u=d?d:o.PageConfig.defaultWorkspace;const p=c?o.URLExt.join("tree",c):"";try{await l.resolve(u);return l}catch(m){return new Promise((()=>{const{base:e}=t.urls;const s="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";const r=s[Math.floor(Math.random()*s.length)];let l=o.URLExt.join(e,h,"workspaces",`auto-${r}`);l=p?o.URLExt.join(l,o.URLExt.encodeParts(p)):l;a["reset"]="";const d=l+o.URLExt.objectToQueryString(a)+(i||"");n.navigate(d,{hard:true})}))}}};const we={id:"@jupyterlab/apputils-extension:splash",description:"Provides the splash screen.",autoStart:true,requires:[d.ITranslator],provides:s.ISplashScreen,activate:(e,t)=>{const n=t.load("jupyterlab");const{commands:i,restored:o}=e;const r=document.createElement("div");const a=document.createElement("div");const l=document.createElement("div");r.id="jupyterlab-splash";a.id="galaxy";l.id="main-logo";c.jupyterFaviconIcon.element({container:l,stylesheet:"splash"});a.appendChild(l);["1","2","3"].forEach((e=>{const t=document.createElement("div");const n=document.createElement("div");t.id=`moon${e}`;t.className="moon orbit";n.id=`planet${e}`;n.className="planet";t.appendChild(n);a.appendChild(t)}));r.appendChild(a);let d;const h=new p.Throttler((async()=>{if(d){return}d=new s.Dialog({title:n.__("Loading…"),body:n.__(`The loading screen is taking a long time.\nWould you like to clear the workspace or keep waiting?`),buttons:[s.Dialog.cancelButton({label:n.__("Keep Waiting")}),s.Dialog.warnButton({label:n.__("Clear Workspace")})]});try{const e=await d.launch();d.dispose();d=null;if(e.button.accept&&i.hasCommand(ve.reset)){return i.execute(ve.reset)}requestAnimationFrame((()=>{void h.invoke().catch((e=>undefined))}))}catch(e){}}),{limit:fe,edge:"trailing"});let m=0;return{show:(e=true)=>{r.classList.remove("splash-fade");r.classList.toggle("light",e);r.classList.toggle("dark",!e);m++;document.body.appendChild(r);void h.invoke().catch((e=>undefined));return new u.DisposableDelegate((async()=>{await o;if(--m===0){void h.stop();if(d){d.dispose();d=null}r.classList.add("splash-fade");window.setTimeout((()=>{document.body.removeChild(r)}),200)}}))}}}};const Ce={id:"@jupyterlab/apputils-extension:print",description:"Add the print capability",autoStart:true,requires:[d.ITranslator],activate:(e,t)=>{var n;const i=t.load("jupyterlab");e.commands.addCommand(ve.print,{label:i.__("Print…"),describedBy:{args:{type:"object",properties:{}}},isEnabled:()=>{const t=e.shell.currentWidget;return s.Printing.getPrintFunction(t)!==null},execute:async()=>{const t=e.shell.currentWidget;const n=s.Printing.getPrintFunction(t);if(n){await n()}}});(n=e.shell.currentChanged)===null||n===void 0?void 0:n.connect((()=>{e.commands.notifyCommandChanged(ve.print)}))}};const xe={id:"@jupyterlab/apputils-extension:toggle-header",description:"Adds a command to display the main area widget content header.",autoStart:true,requires:[d.ITranslator],optional:[s.ICommandPalette],activate:(e,t,n)=>{var i;const o=t.load("jupyterlab");const r=o.__("Main Area");e.commands.addCommand(ve.toggleHeader,{label:o.__("Show Header Above Content"),describedBy:{args:{type:"object",properties:{}}},isEnabled:()=>e.shell.currentWidget instanceof s.MainAreaWidget&&!e.shell.currentWidget.contentHeader.isDisposed&&e.shell.currentWidget.contentHeader.widgets.length>0,isToggled:()=>{const t=e.shell.currentWidget;return t instanceof s.MainAreaWidget?!t.contentHeader.isHidden:false},execute:async()=>{const t=e.shell.currentWidget;if(t instanceof s.MainAreaWidget){t.contentHeader.setHidden(!t.contentHeader.isHidden)}}});(i=e.shell.currentChanged)===null||i===void 0?void 0:i.connect((()=>{e.commands.notifyCommandChanged(ve.toggleHeader)}));if(n){n.addItem({command:ve.toggleHeader,category:r})}}};async function Se(e){var t,n;const{workspace:i,db:s,name:a,currentWidget:l}=e;const d=await s.toJSON();let c=(n=(t=d["layout-restorer:data"])===null||t===void 0?void 0:t.main)===null||n===void 0?void 0:n.current;if(c===undefined||!(c.startsWith("notebook")||c.startsWith("editor"))){document.title=`${o.PageConfig.getOption("appName")||"JupyterLab"}${i==="default"?"":` (${i})`}`}else{let e;if(l instanceof r.DocumentWidget){e=o.PathExt.basename(l.context.path)}else{e=o.PathExt.basename(decodeURIComponent(window.location.href))}e=e.length>15?e.slice(0,12).concat(`…`):e;const t=i.length>15?i.slice(0,12).concat(`…`):i;const n=Object.keys(d).filter((e=>e.startsWith("notebook")||e.startsWith("editor"))).length;document.title=`${e}${n>1?` (${n})`:``} - ${i==="default"?a:t}`}}const je={id:"@jupyterlab/apputils-extension:state",description:"Provides the application state. It is stored per workspaces.",autoStart:true,provides:l.IStateDB,requires:[i.JupyterFrontEnd.IPaths,i.IRouter,d.ITranslator],optional:[s.IWindowResolver],activate:(e,t,n,i,s)=>{const r=i.load("jupyterlab");if(s===null){return new l.StateDB}let a=false;const{commands:d,name:c,serviceManager:u}=e;const{workspaces:m}=u;const g=s.name;const f=new h.PromiseDelegate;const v=new l.StateDB({transform:f.promise});const _=new p.Debouncer((async()=>{const e=g;const t={id:e};const n=await v.toJSON();await m.save(e,{data:n,metadata:t})}));v.changed.connect((()=>void _.invoke()),v);v.changed.connect((()=>{var t;return Se({workspace:g,db:v,name:c,currentWidget:(t=e.shell.currentWidget)!==null&&t!==void 0?t:undefined})}));d.addCommand(ve.loadState,{label:r.__("Load state for the current workspace."),describedBy:{args:{type:"object",properties:{hash:{type:"string",description:r.__("The URL hash")},path:{type:"string",description:r.__("The URL path")},search:{type:"string",description:r.__("The URL search string containing query parameters")}}}},execute:async e=>{if(a){return}const{hash:t,path:i,search:s}=e;const r=o.URLExt.queryStringToObject(s||"");const l=typeof r["clone"]==="string"?r["clone"]===""?o.PageConfig.defaultWorkspace:r["clone"]:null;const d=l||g||null;if(d===null){console.error(`${ve.loadState} cannot load null workspace.`);return}try{const e=await m.fetch(d);if(!a){a=true;f.resolve({type:"overwrite",contents:e.data})}}catch({message:c}){console.warn(`Fetching workspace "${g}" failed.`,c);if(!a){a=true;f.resolve({type:"cancel",contents:null})}}if(d===l){delete r["clone"];const e=i+o.URLExt.objectToQueryString(r)+t;const s=_.invoke().then((()=>n.stop));void s.then((()=>{n.navigate(e)}));return s}await _.invoke()}});d.addCommand(ve.reset,{label:r.__("Reset Application State"),describedBy:{args:{type:"object",properties:{reload:{type:"boolean",description:r.__("Whether to reload the page after resetting")}}}},execute:async({reload:e})=>{await v.clear();await _.invoke();if(e){n.reload()}}});d.addCommand(ve.resetOnLoad,{label:r.__("Reset state when loading for the workspace."),describedBy:{args:{type:"object",properties:{hash:{type:"string",description:r.__("The URL hash")},path:{type:"string",description:r.__("The URL path")},search:{type:"string",description:r.__("The URL search string containing query parameters")}}}},execute:e=>{const{hash:t,path:i,search:s}=e;const r=o.URLExt.queryStringToObject(s||"");const l="reset"in r;const d="clone"in r;if(!l){return}if(a){return n.reload()}a=true;f.resolve({type:"clear",contents:null});delete r["reset"];const c=i+o.URLExt.objectToQueryString(r)+t;const h=v.clear().then((()=>_.invoke()));if(d){void h.then((()=>{n.navigate(c,{hard:true})}))}else{void h.then((()=>{n.navigate(c)}))}return h}});n.register({command:ve.loadState,pattern:/.?/,rank:30});n.register({command:ve.resetOnLoad,pattern:/(\?reset|\&reset)($|&)/,rank:20});return v}};const ke={id:"@jupyterlab/apputils-extension:sessionDialogs",description:"Provides the session context dialogs.",provides:s.ISessionContextDialogs,optional:[d.ITranslator,a.ISettingRegistry],autoStart:true,activate:async(e,t,n)=>new s.SessionContextDialogs({translator:t!==null&&t!==void 0?t:d.nullTranslator,settingRegistry:n!==null&&n!==void 0?n:null})};const Ie={id:"@jupyterlab/apputils-extension:utilityCommands",description:"Adds meta commands to run set of other commands.",requires:[d.ITranslator],optional:[s.ICommandPalette],autoStart:true,activate:(e,t,n)=>{const i=t.load("jupyterlab");const{commands:o}=e;o.addCommand(ve.runFirstEnabled,{label:i.__("Run First Enabled Command"),describedBy:{args:{type:"object",properties:{commands:{type:"array",items:{type:"string"},description:i.__("Array of command IDs to attempt to run")},args:{description:i.__("Arguments to pass to the commands")}},required:["commands"]}},execute:t=>{const n=t.commands;const i=t.args;const s=Array.isArray(t);for(let o=0;o{var n,i;const s=(n=t.commands)!==null&&n!==void 0?n:[];const o=t.args;const r=Array.isArray(t);const a=(i=t.errorIfNotEnabled)!==null&&i!==void 0?i:false;for(let l=0;l{var n;const i=(n=t.commands)!==null&&n!==void 0?n:[];const s=t.args;const o=Array.isArray(t);return i.some(((t,n)=>e.commands.isEnabled(t,o?s[n]:s)))}});o.addCommand(ve.displayShortcuts,{label:i.__("Show Keyboard Shortcuts…"),caption:i.__("Show relevant keyboard shortcuts for the current active widget"),describedBy:{args:{type:"object",properties:{}}},execute:t=>{var n;const r=e.shell.currentWidget;const a=r===null||r===void 0?void 0:r.node.contains(document.activeElement);if(!a&&r instanceof s.MainAreaWidget){const e=(n=r.content.node)!==null&&n!==void 0?n:r===null||r===void 0?void 0:r.node;e===null||e===void 0?void 0:e.focus()}const l={commands:o,trans:i};return ge(l)}});if(n){const e=i.__("Help");n.addItem({command:ve.displayShortcuts,category:e})}}};const Te={id:"@jupyterlab/apputils-extension:sanitizer",description:"Provides the HTML sanitizer.",autoStart:true,provides:s.ISanitizer,requires:[a.ISettingRegistry],activate:(e,t)=>{const n=new s.Sanitizer;const i=e=>{const t=e.get("allowedSchemes").composite;const i=e.get("autolink").composite;const s=e.get("allowNamedProperties").composite;if(t){n.setAllowedSchemes(t)}n.setAutolink(i);n.setAllowNamedProperties(s)};t.load("@jupyterlab/apputils-extension:sanitizer").then((e=>{i(e);e.changed.connect(i)})).catch((e=>{console.error(`Failed to load sanitizer settings:`,e)}));return n}};const Ee={id:"@jupyterlab/apputils-extension:kernels-settings",description:"Reserves the name for kernel settings.",autoStart:true,requires:[a.ISettingRegistry],activate:(e,t)=>{void t.load(Ee.id)}};const Me=[Ee,y,J,x,S,B,_e,be,Ce,ye,G,Y,Te,$,K,je,we,ke,ee,te,xe,ne,Ie,le];const De=Me},25313:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(24800);var r=n(97913);var a=n(79010);var l=n(3579);var d=n(67996);var c=n(85072);var h=n.n(c);var u=n(97825);var p=n.n(u);var m=n(77659);var g=n.n(m);var f=n(55056);var v=n.n(f);var _=n(10540);var b=n.n(_);var y=n(41113);var w=n.n(y);var C=n(61510);var x={};x.styleTagTransform=w();x.setAttributes=v();x.insert=g().bind(null,"head");x.domAPI=p();x.insertStyleElement=b();var S=h()(C.A,x);const j=C.A&&C.A.locals?C.A.locals:undefined},12253:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Clipboard:()=>M,Collapse:()=>i.Collapser,CommandLinker:()=>R,CommandToolbarButton:()=>i.CommandToolbarButton,CommandToolbarButtonComponent:()=>i.CommandToolbarButtonComponent,DOMUtils:()=>F,Dialog:()=>v,HoverBox:()=>i.HoverBox,ICommandPalette:()=>ye,IFrame:()=>i.IFrame,IKernelStatusModel:()=>we,ILicensesClient:()=>Ce,ISanitizer:()=>je,ISessionContextDialogs:()=>xe,ISplashScreen:()=>ke,IThemeManager:()=>Se,IToolbarWidgetRegistry:()=>Te,IWindowResolver:()=>Ie,InputDialog:()=>H,KernelStatus:()=>j,Licenses:()=>ee,MainAreaWidget:()=>ie,MenuFactory:()=>se,ModalCommandPalette:()=>B,Notification:()=>re,NotificationManager:()=>oe,Printing:()=>te,ReactWidget:()=>i.ReactWidget,RunningSessions:()=>de,Sanitizer:()=>pe,SemanticCommand:()=>me,SessionContext:()=>b,SessionContextDialogs:()=>y,Spinner:()=>i.Spinner,Styling:()=>i.Styling,SystemClipboard:()=>D,ThemeManager:()=>_e,Toolbar:()=>We,ToolbarButton:()=>i.ToolbarButton,ToolbarButtonComponent:()=>i.ToolbarButtonComponent,ToolbarWidgetRegistry:()=>Ee,UseSignal:()=>i.UseSignal,VDomModel:()=>i.VDomModel,VDomRenderer:()=>i.VDomRenderer,WidgetTracker:()=>m,WindowResolver:()=>Fe,addCommandToolbarButtonClass:()=>i.addCommandToolbarButtonClass,addToolbarButtonClass:()=>i.addToolbarButtonClass,createDefaultFactory:()=>Me,createToolbarFactory:()=>Be,setToolbar:()=>Oe,showDialog:()=>g,showErrorMessage:()=>f,translateKernelStatuses:()=>x});var i=n(4073);var s=n(34881);var o=n(27518);var r=n(44914);var a=n.n(r);var l=n(40959);var d=n(34236);var c=n(5592);var h=n(2336);var u=n(42856);var p=n(78629);class m{constructor(e){this._currentChanged=new h.Signal(this);this._deferred=null;this._isDisposed=false;this._widgetAdded=new h.Signal(this);this._widgetUpdated=new h.Signal(this);const t=this._focusTracker=new o.FocusTracker;const n=this._pool=new p.RestorablePool(e);this.namespace=e.namespace;t.currentChanged.connect(((e,t)=>{if(t.newValue!==this.currentWidget){n.current=t.newValue}}),this);n.added.connect(((e,t)=>{this._widgetAdded.emit(t)}),this);n.currentChanged.connect(((e,i)=>{if(i===null&&t.currentWidget){n.current=t.currentWidget;return}this.onCurrentChanged(i);this._currentChanged.emit(i)}),this);n.updated.connect(((e,t)=>{this._widgetUpdated.emit(t)}),this)}get currentChanged(){return this._currentChanged}get currentWidget(){return this._pool.current||null}get restored(){if(this._deferred){return Promise.resolve()}else{return this._pool.restored}}get size(){return this._pool.size}get widgetAdded(){return this._widgetAdded}get widgetUpdated(){return this._widgetUpdated}async add(e){this._focusTracker.add(e);await this._pool.add(e);if(!this._focusTracker.activeWidget){this._pool.current=e}}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this._pool.dispose();this._focusTracker.dispose();h.Signal.clearData(this)}find(e){return this._pool.find(e)}forEach(e){return this._pool.forEach(e)}filter(e){return this._pool.filter(e)}inject(e){return this._pool.inject(e)}has(e){return this._pool.has(e)}async restore(e){const t=this._deferred;if(t){this._deferred=null;return this._pool.restore(t)}if(e){return this._pool.restore(e)}console.warn("No options provided to restore the tracker.")}defer(e){this._deferred=e}async save(e){return this._pool.save(e)}onCurrentChanged(e){}}function g(e={}){const t=new v(e);return t.launch()}function f(e,t,n){const i=v.translator.load("jupyterlab");n=n!==null&&n!==void 0?n:[v.cancelButton({label:i.__("Close")})];console.warn("Showing error:",t);const s=typeof t==="string"?t:t.message;const o=e+"----"+s;const r=_.errorMessagePromiseCache.get(o);if(r){return r}else{const t=g({title:e,body:s,buttons:n}).then((()=>{_.errorMessagePromiseCache.delete(o)}),(e=>{_.errorMessagePromiseCache.delete(o);throw e}));_.errorMessagePromiseCache.set(o,t);return t}}class v extends o.Widget{constructor(e={}){const t=document.createElement("dialog");t.ariaModal="true";super({node:t});this._hasValidationErrors=false;this._ready=new c.PromiseDelegate;this._focusNodeSelector="";this.addClass("jp-Dialog");this.addClass("jp-ThemedContainer");const n=_.handleOptions(e);const i=n.renderer;this._host=n.host;this._defaultButton=n.defaultButton;this._buttons=n.buttons;this._hasClose=n.hasClose;this._buttonNodes=this._buttons.map((e=>i.createButtonNode(e)));this._checkboxNode=null;this._lastMouseDownInDialog=false;if(n.checkbox){const{label:e="",caption:t="",checked:s=false,className:o=""}=n.checkbox;this._checkboxNode=i.createCheckboxNode({label:e,caption:t!==null&&t!==void 0?t:e,checked:s,className:o})}const s=this.layout=new o.PanelLayout;const r=new o.Panel;r.addClass("jp-Dialog-content");if(typeof e.body==="string"){r.addClass("jp-Dialog-content-small");t.ariaLabel=[n.title,e.body].join(" ")}s.addWidget(r);this._body=n.body;const a=i.createHeader(n.title,(()=>this.reject()),e);const l=i.createBody(n.body);const d=i.createFooter(this._buttonNodes,this._checkboxNode);r.addWidget(a);r.addWidget(l);r.addWidget(d);this._bodyWidget=l;this._primary=this._buttonNodes[this._defaultButton];this._focusNodeSelector=e.focusNodeSelector;void v.tracker.add(this)}get ready(){return this._ready.promise}dispose(){const e=this._promise;if(e){this._promise=null;e.reject(void 0);d.ArrayExt.removeFirstOf(_.launchQueue,e.promise)}super.dispose()}launch(){if(this._promise){return this._promise.promise}const e=this._promise=new c.PromiseDelegate;const t=Promise.all(_.launchQueue);_.launchQueue.push(this._promise.promise);return t.then((()=>{if(!this._promise){return Promise.resolve({button:v.cancelButton(),isChecked:null,value:null})}o.Widget.attach(this,this._host);return e.promise}))}resolve(e){if(!this._promise){return}if(e===undefined){e=this._defaultButton}this._resolve(this._buttons[e])}reject(){if(!this._promise){return}this._resolve(v.cancelButton())}handleEvent(e){switch(e.type){case"keydown":this._evtKeydown(e);break;case"mousedown":this._evtMouseDown(e);break;case"click":this._evtClick(e);break;case"input":this._evtInput(e);break;case"focus":this._evtFocus(e);break;case"contextmenu":e.preventDefault();e.stopPropagation();break;default:break}}onAfterAttach(e){const t=this.node;t.addEventListener("keydown",this,true);t.addEventListener("contextmenu",this,true);t.addEventListener("click",this,true);document.addEventListener("mousedown",this,true);document.addEventListener("focus",this,true);document.addEventListener("input",this,true);this._first=_.findFirstFocusable(this.node);this._original=document.activeElement;const n=()=>{var e;if(this._focusNodeSelector){const e=this.node.querySelector(".jp-Dialog-body");const t=e===null||e===void 0?void 0:e.querySelector(this._focusNodeSelector);if(t){this._primary=t}}(e=this._primary)===null||e===void 0?void 0:e.focus();this._ready.resolve()};if(this._bodyWidget instanceof i.ReactWidget&&this._bodyWidget.renderPromise!==undefined){this._bodyWidget.renderPromise.then((()=>{n()})).catch((()=>{console.error("Error while loading Dialog's body")}))}else{n()}}onAfterDetach(e){const t=this.node;t.removeEventListener("keydown",this,true);t.removeEventListener("contextmenu",this,true);t.removeEventListener("click",this,true);document.removeEventListener("focus",this,true);document.removeEventListener("mousedown",this,true);document.removeEventListener("input",this,true);this._original.focus()}onCloseRequest(e){if(this._promise){this.reject()}super.onCloseRequest(e)}_evtInput(e){this._hasValidationErrors=!!this.node.querySelector(":invalid");for(let t=0;t{e.dispose()}))}e.flush=d;class c{createHeader(t,n=()=>{},s={}){let o;const a=e=>{if(e.button===0){e.preventDefault();n()}};const l=e=>{const{key:t}=e;if(t==="Enter"||t===" "){n()}};if(typeof t==="string"){const n=e.translator.load("jupyterlab");o=i.ReactWidget.create(r.createElement(r.Fragment,null,t,s.hasClose&&r.createElement(i.Button,{className:"jp-Dialog-close-button",onMouseDown:a,onKeyDown:l,title:n.__("Cancel"),minimal:true},r.createElement(i.LabIcon.resolveReact,{icon:i.closeIcon,tag:"span"}))))}else{o=i.ReactWidget.create(t)}o.addClass("jp-Dialog-header");i.Styling.styleNode(o.node);return o}createBody(e){const t=e=>{if(e.renderPromise!==undefined){e.renderPromise.then((()=>{i.Styling.styleNode(e.node)})).catch((()=>{console.error("Error while loading Dialog's body")}))}else{i.Styling.styleNode(e.node)}};let n;if(typeof e==="string"){n=new o.Widget({node:document.createElement("span")});n.node.textContent=e}else if(e instanceof o.Widget){n=e;if(n instanceof i.ReactWidget){t(n)}else{i.Styling.styleNode(n.node)}}else{n=i.ReactWidget.create(e);u.MessageLoop.sendMessage(n,o.Widget.Msg.UpdateRequest);t(n)}n.addClass("jp-Dialog-body");return n}createFooter(e,t){const n=new o.Widget;n.addClass("jp-Dialog-footer");if(t){n.node.appendChild(t);n.node.insertAdjacentHTML("beforeend",'')}const s=document.createElement("div");s.classList.add("jp-Dialog-footerButtons");for(const i of e){s.appendChild(i)}n.node.appendChild(s);i.Styling.styleNode(n.node);return n}createButtonNode(e){const t=document.createElement("button");t.className=this.createItemClass(e);t.appendChild(this.renderIcon(e));t.appendChild(this.renderLabel(e));return t}createCheckboxNode(e){const t=document.createElement("label");t.className="jp-Dialog-checkbox";if(e.className){t.classList.add(e.className)}t.title=e.caption;t.textContent=e.label;const n=document.createElement("input");n.type="checkbox";n.checked=!!e.checked;t.insertAdjacentElement("afterbegin",n);return t}createItemClass(e){let t="jp-Dialog-button";if(e.accept){t+=" jp-mod-accept"}else{t+=" jp-mod-reject"}if(e.displayType==="warn"){t+=" jp-mod-warn"}const n=e.className;if(n){t+=` ${n}`}return t}renderIcon(e){const t=document.createElement("div");t.className=this.createIconClass(e);t.appendChild(document.createTextNode(e.iconLabel));return t}createIconClass(e){const t="jp-Dialog-buttonIcon";const n=e.iconClass;return n?`${t} ${n}`:t}renderLabel(e){const t=document.createElement("div");t.className="jp-Dialog-buttonLabel";t.title=e.caption;t.ariaLabel=e.ariaLabel;t.appendChild(document.createTextNode(e.label));return t}}e.Renderer=c;e.defaultRenderer=new c;e.tracker=new m({namespace:"@jupyterlab/apputils:Dialog"})})(v||(v={}));var _;(function(e){e.launchQueue=[];e.errorMessagePromiseCache=new Map;function t(e={}){var t,n,i,s,o,r,a,l,d;const c=(t=e.buttons)!==null&&t!==void 0?t:[v.cancelButton(),v.okButton()];return{title:(n=e.title)!==null&&n!==void 0?n:"",body:(i=e.body)!==null&&i!==void 0?i:"",host:(s=e.host)!==null&&s!==void 0?s:document.body,checkbox:(o=e.checkbox)!==null&&o!==void 0?o:null,buttons:c,defaultButton:(r=e.defaultButton)!==null&&r!==void 0?r:c.length-1,renderer:(a=e.renderer)!==null&&a!==void 0?a:v.defaultRenderer,focusNodeSelector:(l=e.focusNodeSelector)!==null&&l!==void 0?l:"",hasClose:(d=e.hasClose)!==null&&d!==void 0?d:true}}e.handleOptions=t;function n(e){const t=["input","select","a[href]","textarea","button","[tabindex]"].join(",");return e.querySelectorAll(t)[0]}e.findFirstFocusable=n})(_||(_={}));class b{constructor(e){var t,n,i,o;this._path="";this._name="";this._type="";this._prevKernelName="";this._isDisposed=false;this._disposed=new h.Signal(this);this._session=null;this._ready=new c.PromiseDelegate;this._initializing=false;this._initStarted=new c.PromiseDelegate;this._initPromise=new c.PromiseDelegate;this._isReady=false;this._isTerminating=false;this._isRestarting=false;this._kernelChanged=new h.Signal(this);this._preferenceChanged=new h.Signal(this);this._sessionChanged=new h.Signal(this);this._statusChanged=new h.Signal(this);this._connectionStatusChanged=new h.Signal(this);this._pendingInput=false;this._iopubMessage=new h.Signal(this);this._unhandledMessage=new h.Signal(this);this._propertyChanged=new h.Signal(this);this._dialog=null;this._busyDisposable=null;this._pendingKernelName="";this._pendingSessionRequest="";this.kernelManager=e.kernelManager;this.sessionManager=e.sessionManager;this.specsManager=e.specsManager;this.translator=e.translator||s.nullTranslator;this._trans=this.translator.load("jupyterlab");this._path=(t=e.path)!==null&&t!==void 0?t:c.UUID.uuid4();this._type=(n=e.type)!==null&&n!==void 0?n:"";this._name=(i=e.name)!==null&&i!==void 0?i:"";this._setBusy=e.setBusy;this._kernelPreference=(o=e.kernelPreference)!==null&&o!==void 0?o:{}}get session(){var e;return(e=this._session)!==null&&e!==void 0?e:null}get path(){return this._path}get type(){return this._type}get name(){return this._name}get kernelChanged(){return this._kernelChanged}get sessionChanged(){return this._sessionChanged}get statusChanged(){return this._statusChanged}get pendingInput(){return this._pendingInput}get connectionStatusChanged(){return this._connectionStatusChanged}get iopubMessage(){return this._iopubMessage}get unhandledMessage(){return this._unhandledMessage}get propertyChanged(){return this._propertyChanged}get kernelPreference(){return this._kernelPreference}set kernelPreference(e){if(!c.JSONExt.deepEqual(e,this._kernelPreference)){const t=this._kernelPreference;this._kernelPreference=e;this._preferenceChanged.emit({name:"kernelPreference",oldValue:t,newValue:c.JSONExt.deepCopy(e)})}}get kernelPreferenceChanged(){return this._preferenceChanged}get isReady(){return this._isReady}get ready(){return this._ready.promise}get isTerminating(){return this._isTerminating}get isRestarting(){return this._isRestarting}get hasNoKernel(){return this.kernelDisplayName===this.noKernelName}get kernelDisplayName(){var e,t,n,i,s,o,r;const a=(e=this.session)===null||e===void 0?void 0:e.kernel;if(this._pendingKernelName===this.noKernelName){return this.noKernelName}if(this._pendingKernelName){return(i=(n=(t=this.specsManager.specs)===null||t===void 0?void 0:t.kernelspecs[this._pendingKernelName])===null||n===void 0?void 0:n.display_name)!==null&&i!==void 0?i:this._pendingKernelName}if(!a){return this.noKernelName}return(r=(o=(s=this.specsManager.specs)===null||s===void 0?void 0:s.kernelspecs[a.name])===null||o===void 0?void 0:o.display_name)!==null&&r!==void 0?r:a.name}get kernelDisplayStatus(){var e,t;const n=(e=this.session)===null||e===void 0?void 0:e.kernel;if(this._isTerminating){return"terminating"}if(this._isRestarting){return"restarting"}if(this._pendingKernelName===this.noKernelName){return"unknown"}if(!n&&this._pendingKernelName){return"initializing"}if(!n&&!this.isReady&&this.kernelPreference.canStart!==false&&this.kernelPreference.shouldStart!==false){return"initializing"}return(t=(n===null||n===void 0?void 0:n.connectionStatus)==="connected"?n===null||n===void 0?void 0:n.status:n===null||n===void 0?void 0:n.connectionStatus)!==null&&t!==void 0?t:"unknown"}get prevKernelName(){return this._prevKernelName}get isDisposed(){return this._isDisposed}get disposed(){return this._disposed}get noKernelName(){return this._trans.__("No Kernel")}dispose(){if(this._isDisposed){return}this._isDisposed=true;this._disposed.emit();if(this._session){if(this.kernelPreference.shutdownOnDispose){this.sessionManager.shutdown(this._session.id).catch((e=>{console.error(`Kernel not shut down ${e}`)}))}this._session.dispose();this._session=null}if(this._dialog){this._dialog.dispose()}if(this._busyDisposable){this._busyDisposable.dispose();this._busyDisposable=null}h.Signal.clearData(this)}async startKernel(){const e=this.kernelPreference;if(!e.autoStartDefault&&e.shouldStart===false){return true}let t;if(e.id){t={id:e.id}}else{const n=w.getDefaultKernel({specs:this.specsManager.specs,sessions:this.sessionManager.running(),preference:e});if(n){t={name:n}}}if(t){try{await this._changeKernel(t);return false}catch(n){}}return true}async restartKernel(){var e,t,n,i,s,o;const r=((e=this.session)===null||e===void 0?void 0:e.kernel)||null;if(this._isRestarting){return}this._isRestarting=true;this._isReady=false;this._statusChanged.emit("restarting");try{await((n=(t=this.session)===null||t===void 0?void 0:t.kernel)===null||n===void 0?void 0:n.restart());this._isReady=true}catch(a){console.error(a)}this._isRestarting=false;this._statusChanged.emit(((s=(i=this.session)===null||i===void 0?void 0:i.kernel)===null||s===void 0?void 0:s.status)||"unknown");this._kernelChanged.emit({name:"kernel",oldValue:r,newValue:((o=this.session)===null||o===void 0?void 0:o.kernel)||null})}async changeKernel(e={}){if(this.isDisposed){throw new Error("Disposed")}await this._initStarted.promise;return this._changeKernel(e)}async shutdown(){if(this.isDisposed||!this._initializing){return}await this._initStarted.promise;this._pendingSessionRequest="";this._pendingKernelName=this.noKernelName;return this._shutdownSession()}async initialize(){if(this._initializing){return this._initPromise.promise}this._initializing=true;const e=await this._initialize();if(!e){this._isReady=true;this._ready.resolve(undefined)}if(!this._pendingSessionRequest){this._initStarted.resolve(void 0)}this._initPromise.resolve(e);return e}async _initialize(){const e=this.sessionManager;await e.ready;await e.refreshRunning();const t=(0,d.find)(e.running(),(e=>e.path===this._path));if(t){try{const n=e.connectTo({model:t});this._handleNewSession(n)}catch(n){void this._handleSessionError(n);return Promise.reject(n)}}return await this._startIfNecessary()}async _shutdownSession(){var e;const t=this._session;const n=this._isTerminating;const i=this._isReady;this._isTerminating=true;this._isReady=false;this._statusChanged.emit("terminating");try{await(t===null||t===void 0?void 0:t.shutdown());this._isTerminating=false;t===null||t===void 0?void 0:t.dispose();this._session=null;const e=(t===null||t===void 0?void 0:t.kernel)||null;this._statusChanged.emit("unknown");this._kernelChanged.emit({name:"kernel",oldValue:e,newValue:null});this._sessionChanged.emit({name:"session",oldValue:t,newValue:null})}catch(s){this._isTerminating=n;this._isReady=i;const o=(e=t===null||t===void 0?void 0:t.kernel)===null||e===void 0?void 0:e.status;if(o===undefined){this._statusChanged.emit("unknown")}else{this._statusChanged.emit(o)}throw s}return}async _startIfNecessary(){var e;const t=this.kernelPreference;if(this.isDisposed||((e=this.session)===null||e===void 0?void 0:e.kernel)||t.shouldStart===false||t.canStart===false){return false}return this.startKernel()}async _changeKernel(e={}){if(e.name){this._pendingKernelName=e.name}if(!this._session){this._kernelChanged.emit({name:"kernel",oldValue:null,newValue:null})}if(!this._pendingSessionRequest){this._initStarted.resolve(void 0)}if(this._session&&!this._isTerminating){try{await this._session.changeKernel(e);return this._session.kernel}catch(i){void this._handleSessionError(i);throw i}}const t=l.PathExt.dirname(this._path);const n=this._pendingSessionRequest=l.PathExt.join(t,c.UUID.uuid4());try{this._statusChanged.emit("starting");const t=await this.sessionManager.startNew({path:n,type:this._type,name:this._name,kernel:e});if(this._pendingSessionRequest!==t.path){await t.shutdown();t.dispose();return null}await t.setPath(this._path);await t.setName(this._name);if(this._session&&!this._isTerminating){await this._shutdownSession()}return this._handleNewSession(t)}catch(i){void this._handleSessionError(i);throw i}}_handleNewSession(e){var t,n,i;if(this.isDisposed){throw Error("Disposed")}if(!this._isReady){this._isReady=true;this._ready.resolve(undefined)}if(this._session){this._session.dispose()}this._session=e;this._pendingKernelName="";if(e){this._prevKernelName=(n=(t=e.kernel)===null||t===void 0?void 0:t.name)!==null&&n!==void 0?n:"";e.disposed.connect(this._onSessionDisposed,this);e.propertyChanged.connect(this._onPropertyChanged,this);e.kernelChanged.connect(this._onKernelChanged,this);e.statusChanged.connect(this._onStatusChanged,this);e.connectionStatusChanged.connect(this._onConnectionStatusChanged,this);e.pendingInput.connect(this._onPendingInput,this);e.iopubMessage.connect(this._onIopubMessage,this);e.unhandledMessage.connect(this._onUnhandledMessage,this);if(e.path!==this._path){this._onPropertyChanged(e,"path")}if(e.name!==this._name){this._onPropertyChanged(e,"name")}if(e.type!==this._type){this._onPropertyChanged(e,"type")}}this._sessionChanged.emit({name:"session",oldValue:null,newValue:e});this._kernelChanged.emit({oldValue:null,newValue:(e===null||e===void 0?void 0:e.kernel)||null,name:"kernel"});this._statusChanged.emit(((i=e===null||e===void 0?void 0:e.kernel)===null||i===void 0?void 0:i.status)||"unknown");return(e===null||e===void 0?void 0:e.kernel)||null}async _handleSessionError(e){this._handleNewSession(null);let t="";let n="";try{t=e.traceback;n=e.message}catch(e){}await this._displayKernelError(n,t)}async _displayKernelError(e,t){const n=r.createElement("div",null,e&&r.createElement("pre",null,e),t&&r.createElement("details",{className:"jp-mod-wide"},r.createElement("pre",null,t)));const i=this._dialog=new v({title:this._trans.__("Error Starting Kernel"),body:n,buttons:[v.okButton()]});await i.launch();this._dialog=null}_onSessionDisposed(){if(this._session){const e=this._session;this._session=null;const t=this._session;this._sessionChanged.emit({name:"session",oldValue:e,newValue:t})}}_onPropertyChanged(e,t){switch(t){case"path":this._path=e.path;break;case"name":this._name=e.name;break;case"type":this._type=e.type;break;default:throw new Error(`unrecognized property ${t}`)}this._propertyChanged.emit(t)}_onKernelChanged(e,t){this._kernelChanged.emit(t)}_onStatusChanged(e,t){var n;if(t==="dead"){const t=(n=e.kernel)===null||n===void 0?void 0:n.model;if(t===null||t===void 0?void 0:t.reason){const e=t.traceback||"";void this._displayKernelError(t.reason,e)}}if(this._setBusy){if(t==="busy"){if(!this._busyDisposable){this._busyDisposable=this._setBusy()}}else{if(this._busyDisposable){this._busyDisposable.dispose();this._busyDisposable=null}}}this._statusChanged.emit(t)}_onConnectionStatusChanged(e,t){this._connectionStatusChanged.emit(t)}_onPendingInput(e,t){this._pendingInput=t}_onIopubMessage(e,t){if(t.header.msg_type==="shutdown_reply"){this.session.kernel.removeInputGuard()}this._iopubMessage.emit(t)}_onUnhandledMessage(e,t){this._unhandledMessage.emit(t)}}(function(e){function t(e){const{preference:t}=e;const{shouldStart:n}=t;if(n===false){return null}return w.getDefaultKernel(e)}e.getDefaultKernel=t})(b||(b={}));class y{constructor(e={}){var t;this._translator=(t=e.translator)!==null&&t!==void 0?t:s.nullTranslator;this._settingRegistry=e.settingRegistry||null}async selectKernel(e){if(e.isDisposed){return Promise.resolve()}const t=this._translator;const n=t.load("jupyterlab");let i=n.__("Cancel");if(e.hasNoKernel){i=e.kernelDisplayName}const s=[v.cancelButton({label:i}),v.okButton({label:n.__("Select"),ariaLabel:n.__("Select Kernel")})];const o=e.kernelPreference.autoStartDefault;const r=typeof o==="boolean";const a=new v({title:n.__("Select Kernel"),body:w.createKernelSelector(e,t),buttons:s,checkbox:r?{label:n.__("Always start the preferred kernel"),caption:n.__("Remember my choice and always start the preferred kernel"),checked:o}:null});const l=await a.launch();if(e.isDisposed||!l.button.accept){return}if(r&&l.isChecked!==null){e.kernelPreference={...e.kernelPreference,autoStartDefault:l.isChecked}}const d=l.value;if(d===null&&!e.hasNoKernel){return e.shutdown()}if(d){await e.changeKernel(d)}}async restart(e,t){var n,i,s,o,r;const a=this._translator.load("jupyterlab");await e.initialize();if(e.isDisposed){throw new Error("session already disposed")}const l=(n=e.session)===null||n===void 0?void 0:n.kernel;if(!l&&e.prevKernelName){await e.changeKernel({name:e.prevKernelName});return true}if(!l){throw new Error("No kernel to restart")}const d="@jupyterlab/apputils-extension:sessionDialogs";const c=(s=(i=e.kernelPreference)===null||i===void 0?void 0:i.skipKernelRestartDialog)!==null&&s!==void 0?s:false;const h=(r=await((o=this._settingRegistry)===null||o===void 0?void 0:o.get(d,"skipKernelRestartDialog")))===null||r===void 0?void 0:r.composite;if(h||c){await e.restartKernel();return true}const u=v.warnButton({label:a.__("Restart"),ariaLabel:a.__("Confirm Kernel Restart")});const p=await g({title:a.__("Restart Kernel?"),body:a.__("Do you want to restart the kernel of %1? All variables will be lost.",e.name),buttons:[v.cancelButton({ariaLabel:a.__("Cancel Kernel Restart")}),u],checkbox:{label:a.__("Do not ask me again."),caption:a.__("If checked, the kernel will restart without confirmation prompt in the future; you can change this back in the settings.")}});if(l.isDisposed){return false}if(p.button.accept){if(typeof p.isChecked==="boolean"&&p.isChecked==true){e.kernelPreference={...e.kernelPreference,skipKernelRestartDialog:true}}await(t===null||t===void 0?void 0:t.onBeforeRestart());await e.restartKernel();return true}return false}}(function(e){function t(e,t=null){var n,i,o,r,a,d,c;const h={disabled:false,groups:[]};const u=Array.from((i=(n=e.kernelManager)===null||n===void 0?void 0:n.running())!==null&&i!==void 0?i:Array.from(e.sessionManager.running()).filter((e=>!!e.kernel)).map((e=>e.kernel)));const p=Array.from((o=e.sessionManager.running())!==null&&o!==void 0?o:[]).reduce(((e,t)=>{var n;if((n=t.kernel)===null||n===void 0?void 0:n.id)e[t.kernel.id]=t;return e}),{});const m={...e.kernelPreference,id:(a=(r=e.session)===null||r===void 0?void 0:r.kernel)===null||a===void 0?void 0:a.id};const g=!e.hasNoKernel?e.kernelDisplayName:null;const f={default:"",kernelspecs:Object.create(null),...e.specsManager.specs};const v=[];const _=Object.create(null);for(const s in f.kernelspecs){v.push(f.kernelspecs[s]);_[s]=f.kernelspecs[s].language}v.sort(((e,t)=>e.display_name.localeCompare(t.display_name)));t=t||s.nullTranslator;const b=t.load("jupyterlab");const y=m.language||_[m.name]||(m.id?_[(d=p[m.id])===null||d===void 0?void 0:d.name]:"");const w={connectKernel:b.__("Connect to Existing Kernel"),startPreferred:b.__("Start %1 Kernel",y),startOther:b.__("Start Kernel"),connectToPreferred:b.__("Connect to Existing %1 Kernel",y),connectToOther:b.__("Connect to Other Kernel"),noKernel:b.__("No Kernel"),startKernel:b.__("Start Kernel"),useNoKernel:b.__("Use No Kernel")};const C={label:w.useNoKernel,options:[{text:w.noKernel,title:w.noKernel,value:JSON.stringify(null)}]};const x=(e,t,n)=>{const i=n?n.name||l.PathExt.basename(n.path):e.name||b.__("Unknown Kernel");return{text:`${i} (${e.id.split("-")[0]})`,title:(n?`${b.__("Path: %1",n.path)}\n`:``)+`${b.__("Name: %1",i)}\n`+`${b.__("Kernel Name: %1",t!==null&&t!==void 0?t:e.name)}\n`+`${b.__("Kernel Id: %1",e.id)}`,value:JSON.stringify({id:e.id})}};const S=e=>({text:e.display_name,value:JSON.stringify({name:e.name})});if(m.canStart===false){h.disabled=true;h.groups.push(C);return h}if(y){const e={label:w.startPreferred,options:[]};const t={label:w.startOther,options:[]};const n={label:w.connectToPreferred,options:[]};const i={label:w.connectToOther,options:[]};for(const s of v){(s.language===y?e:t).options.push(S(s))}h.groups.push(e);h.groups.push(C);h.groups.push(t);u.map((e=>{var t,n;return{option:x(e,(n=(t=f.kernelspecs[e.name])===null||t===void 0?void 0:t.display_name)!==null&&n!==void 0?n:"",p[e.id]),language:_[e.name]}})).sort(((e,t)=>e.option.text.localeCompare(t.option.text))).forEach((e=>(y===e.language?n:i).options.push(e.option)));if(n.options.length)h.groups.push(n);if(i.options.length)h.groups.push(i)}else{h.groups.push({label:w.startKernel,options:v.map((e=>S(e)))});h.groups.push(C);h.groups.push({label:w.connectKernel,options:u.map((e=>{var t,n;return x(e,(n=(t=f.kernelspecs[e.name])===null||t===void 0?void 0:t.display_name)!==null&&n!==void 0?n:"",p[e.id])})).sort(((e,t)=>e.text.localeCompare(t.text)))})}if(m.id||g||m.name){for(const e of h.groups){for(const t of e.options){const e=JSON.parse(t.value);if(!e)continue;if(m.id){if(m.id===e.id){t.selected=true;return h}continue}if(g){if(g===((c=f.kernelspecs[e.name])===null||c===void 0?void 0:c.display_name)){t.selected=true;return h}continue}if(m.name){if(m.name===e.name){t.selected=true;return h}continue}}}}return h}e.kernelOptions=t})(y||(y={}));var w;(function(e){e.createKernelSelector=(e,i)=>new t({node:n(e,i)});class t extends o.Widget{getValue(){const e=this.node.querySelector("select");return JSON.parse(e.value)}}function n(e,t){t=t||s.nullTranslator;const n=t.load("jupyterlab");const i=document.createElement("div");const o=document.createElement("label");o.textContent=`${n.__("Select kernel for:")} "${e.name}"`;i.appendChild(o);const r=document.createElement("select");const a=y.kernelOptions(e,t);if(a.disabled)r.disabled=true;for(const s of a.groups){const{label:e,options:t}=s;const n=document.createElement("optgroup");n.label=e;for(const{selected:i,text:s,title:o,value:r}of t){const e=document.createElement("option");if(i)e.selected=true;if(o)e.title=o;e.text=s;e.value=r;n.appendChild(e)}r.appendChild(n)}i.appendChild(r);return i}function i(e){var t;const{specs:n,preference:i}=e;const{name:s,language:o,canStart:r,autoStartDefault:a}=i;if(!n||r===false){return null}const l=a?n.default:null;if(!s&&!o){return l}for(const c in n.kernelspecs){if(c===s){return s}}if(!o){return l}const d=[];for(const c in n.kernelspecs){const e=(t=n.kernelspecs[c])===null||t===void 0?void 0:t.language;if(o===e){d.push(c)}}if(d.length===1){const e=d[0];console.warn("No exact match found for "+e+", using kernel "+e+" that matches "+"language="+o);return e}return l}e.getDefaultKernel=i})(w||(w={}));var C=n(4625);function x(e){e=e||s.nullTranslator;const t=e.load("jupyterlab");const n={unknown:t.__("Unknown"),starting:t.__("Starting"),idle:t.__("Idle"),busy:t.__("Busy"),terminating:t.__("Terminating"),restarting:t.__("Restarting"),autorestarting:t.__("Autorestarting"),dead:t.__("Dead"),connected:t.__("Connected"),connecting:t.__("Connecting"),disconnected:t.__("Disconnected"),initializing:t.__("Initializing"),"":""};return n}function S(e){const t=e.translator||s.nullTranslator;const n=t.load("jupyterlab");let i="";if(e.status){i=` | ${e.status}`}return a().createElement(C.TextItem,{role:"button","aria-haspopup":true,onClick:e.handleClick,onKeyDown:e.handleKeyDown,source:`${e.kernelName}${i}`,title:n.__("Change kernel for %1",e.activityName),tabIndex:0})}class j extends i.VDomRenderer{constructor(e,t){super(new j.Model(t));this.translator=t||s.nullTranslator;this._handleClick=e.onClick;this._handleKeyDown=e.onKeyDown;this.addClass("jp-mod-highlighted")}render(){if(this.model===null){return null}else{return a().createElement(S,{status:this.model.status,kernelName:this.model.kernelName,activityName:this.model.activityName,handleClick:this._handleClick,handleKeyDown:this._handleKeyDown,translator:this.translator})}}}(function(e){class t extends i.VDomModel{constructor(e){super();this._activityName="";this._kernelName="";this._kernelStatus="";this._sessionContext=null;e=e!==null&&e!==void 0?e:s.nullTranslator;this._trans=e.load("jupyterlab");this._statusNames=x(e)}get kernelName(){return this._kernelName}get status(){return this._kernelStatus?this._statusNames[this._kernelStatus]:undefined}get activityName(){return this._activityName}set activityName(e){const t=this._activityName;if(t===e){return}this._activityName=e;this.stateChanged.emit()}get sessionContext(){return this._sessionContext}set sessionContext(e){var t,n,i,s;(t=this._sessionContext)===null||t===void 0?void 0:t.statusChanged.disconnect(this._onKernelStatusChanged,this);(n=this._sessionContext)===null||n===void 0?void 0:n.connectionStatusChanged.disconnect(this._onKernelStatusChanged,this);(i=this._sessionContext)===null||i===void 0?void 0:i.kernelChanged.disconnect(this._onKernelChanged,this);const o=this._getAllState();this._sessionContext=e;this._kernelStatus=e===null||e===void 0?void 0:e.kernelDisplayStatus;this._kernelName=(s=e===null||e===void 0?void 0:e.kernelDisplayName)!==null&&s!==void 0?s:this._trans.__("No Kernel");e===null||e===void 0?void 0:e.statusChanged.connect(this._onKernelStatusChanged,this);e===null||e===void 0?void 0:e.connectionStatusChanged.connect(this._onKernelStatusChanged,this);e===null||e===void 0?void 0:e.kernelChanged.connect(this._onKernelChanged,this);this._triggerChange(o,this._getAllState())}_onKernelStatusChanged(){var e;this._kernelStatus=(e=this._sessionContext)===null||e===void 0?void 0:e.kernelDisplayStatus;this.stateChanged.emit(void 0)}_onKernelChanged(e,t){var n;const i=this._getAllState();this._kernelStatus=(n=this._sessionContext)===null||n===void 0?void 0:n.kernelDisplayStatus;this._kernelName=e.kernelDisplayName;this._triggerChange(i,this._getAllState())}_getAllState(){return[this._kernelName,this._kernelStatus,this._activityName]}_triggerChange(e,t){if(c.JSONExt.deepEqual(e,t)){this.stateChanged.emit(void 0)}}}e.Model=t})(j||(j={}));const k="jp-Toolbar-kernelName";const I="jp-Toolbar-kernelStatus";var T;(function(e){function t(e,t){t=t||s.nullTranslator;const n=t.load("jupyterlab");return new i.ToolbarButton({icon:i.stopIcon,onClick:()=>{var t,n;void((n=(t=e.session)===null||t===void 0?void 0:t.kernel)===null||n===void 0?void 0:n.interrupt())},tooltip:n.__("Interrupt the kernel")})}e.createInterruptButton=t;function n(e,t,n){n=n!==null&&n!==void 0?n:s.nullTranslator;const o=n.load("jupyterlab");return new i.ToolbarButton({icon:i.refreshIcon,onClick:()=>{void(t!==null&&t!==void 0?t:new y({translator:n})).restart(e)},tooltip:o.__("Restart the kernel")})}e.createRestartButton=n;function o(e,t,n){const s=i.ReactWidget.create(r.createElement(E.KernelNameComponent,{sessionContext:e,dialogs:t!==null&&t!==void 0?t:new y({translator:n}),translator:n}));s.addClass("jp-KernelName");return s}e.createKernelNameItem=o;function a(e,t){return new E.KernelStatus(e,t)}e.createKernelStatusItem=a})(T||(T={}));var E;(function(e){function t(e){const t=e.translator||s.nullTranslator;const n=t.load("jupyterlab");const o=()=>{void e.dialogs.selectKernel(e.sessionContext)};return r.createElement(i.UseSignal,{signal:e.sessionContext.kernelChanged,initialSender:e.sessionContext},(e=>r.createElement(i.ToolbarButtonComponent,{className:k,onClick:o,tooltip:n.__("Switch kernel"),label:e===null||e===void 0?void 0:e.kernelDisplayName})))}e.KernelNameComponent=t;class n extends o.Widget{constructor(e,t){super();this.translator=t||s.nullTranslator;this._trans=this.translator.load("jupyterlab");this.addClass(I);this._statusNames=x(this.translator);this._onStatusChanged(e);e.statusChanged.connect(this._onStatusChanged,this);e.connectionStatusChanged.connect(this._onStatusChanged,this)}_onStatusChanged(e){if(this.isDisposed){return}const t=e.kernelDisplayStatus;const n={container:this.node,title:this._trans.__("Kernel %1",this._statusNames[t]||t),stylesheet:"toolbarButton",alignSelf:"normal",height:"24px"};i.LabIcon.remove(this.node);if(t==="busy"||t==="starting"||t==="terminating"||t==="restarting"||t==="initializing"){i.circleIcon.element(n)}else if(t==="connecting"||t==="disconnected"||t==="unknown"){i.offlineBoltIcon.element(n)}else{i.circleEmptyIcon.element(n)}}}e.KernelStatus=n})(E||(E={}));var M;(function(e){function t(){return A.instance}e.getInstance=t;function n(e){A.instance=e}e.setInstance=n;function i(e){const t=document.body;const n=i=>{const s=i.clipboardData||window.clipboardData;if(typeof e==="string"){s.setData("text",e)}else{e.types().map((t=>{s.setData(t,e.getData(t))}))}i.preventDefault();t.removeEventListener("copy",n)};t.addEventListener("copy",n);s(t)}e.copyToSystem=i;function s(e,t="copy"){let n=window.getSelection();const i=[];for(let o=0,r=(n===null||n===void 0?void 0:n.rangeCount)||0;o{if(this.isAttached&&this.isVisible){this.hideAndReset()}}));this.node.tabIndex=0}get palette(){return this._commandPalette}set palette(e){this._commandPalette=e;if(!this.searchIconGroup){this._commandPalette.inputNode.insertAdjacentElement("afterend",this.createSearchIconGroup())}this.addWidget(e);this.hideAndReset()}attach(){o.Widget.attach(this,document.body)}detach(){o.Widget.detach(this)}hideAndReset(){var e,t;this.hide();this._commandPalette.inputNode.value="";this._commandPalette.refresh();(t=(e=this._options).restore)===null||t===void 0?void 0:t.call(e)}handleEvent(e){switch(e.type){case"keydown":this._evtKeydown(e);break;case"blur":{if(this.node.contains(e.target)&&!this.node.contains(e.relatedTarget)){e.stopPropagation();this.hideAndReset()}break}case"contextmenu":e.preventDefault();e.stopPropagation();break;default:break}}get searchIconGroup(){return this._commandPalette.node.getElementsByClassName(N)[0]}createSearchIconGroup(){const e=document.createElement("div");e.classList.add(N);i.searchIcon.render(e);return e}onAfterAttach(e){this.node.addEventListener("keydown",this,true);this.node.addEventListener("contextmenu",this,true)}onAfterDetach(e){this.node.removeEventListener("keydown",this,true);this.node.removeEventListener("contextmenu",this,true)}onBeforeHide(e){document.removeEventListener("blur",this,true)}onAfterShow(e){document.addEventListener("blur",this,true)}onActivateRequest(e){if(this.isAttached){this.show();this._commandPalette.activate()}}_evtKeydown(e){switch(e.keyCode){case 27:e.stopPropagation();e.preventDefault();this.hideAndReset();break;default:break}}}var O=n(76326);var F;(function(e){function t(e,t,n){return d.ArrayExt.findFirstIndex(e,(e=>O.ElementExt.hitTest(e,t,n)))}e.hitTestNodes=t;function n(e,t){return e.querySelector(`.${t}`)}e.findElement=n;function i(e,t){return e.getElementsByClassName(t)}e.findElements=i;function s(){return`id-${c.UUID.uuid4()}`}e.createDomID=s;function o(e,t=document){const n=t.activeElement;return!!(n&&e.contains(n)&&(n.matches(":read-write")||n.shadowRoot&&o(n.shadowRoot,n.shadowRoot)))}e.hasActiveEditableElement=o})(F||(F={}));const z="jp-Input-Dialog";const W="jp-Input-Boolean-Dialog";var H;(function(e){function t(e){return g({...e,body:new U(e),buttons:[v.cancelButton({label:e.cancelLabel}),v.okButton({label:e.okLabel})],focusNodeSelector:"input"})}e.getBoolean=t;function n(e){return g({...e,body:new q(e),buttons:[v.cancelButton({label:e.cancelLabel}),v.okButton({label:e.okLabel})],focusNodeSelector:"input"})}e.getNumber=n;function i(e){return g({...e,body:new G(e),buttons:[v.cancelButton({label:e.cancelLabel}),v.okButton({label:e.okLabel})],focusNodeSelector:e.editable?"input":"select"})}e.getItem=i;function s(e){return g({...e,body:new Y(e),buttons:[v.cancelButton({label:e.cancelLabel}),v.okButton({label:e.okLabel})]})}e.getMultipleItems=s;function o(e){return g({...e,body:new K(e),buttons:[v.cancelButton({label:e.cancelLabel}),v.okButton({label:e.okLabel})],focusNodeSelector:"input"})}e.getText=o;function r(e){return g({...e,body:new J(e),buttons:[v.cancelButton({label:e.cancelLabel}),v.okButton({label:e.okLabel})],focusNodeSelector:"input"})}e.getPassword=r})(H||(H={}));class V extends o.Widget{constructor(e){super();this.addClass(z);this._input=document.createElement("input");this._input.classList.add("jp-mod-styled");this._input.id="jp-dialog-input-id";if(e.label!==undefined){const t=document.createElement("label");t.textContent=e.label;t.htmlFor=this._input.id;this.node.appendChild(t)}const t=document.createElement("div");t.className="jp-InputDialog-inputWrapper";if(e.prefix){const n=document.createElement("span");n.className="jp-InputDialog-inputPrefix";n.textContent=e.prefix;n.ariaHidden="true";t.appendChild(n)}t.appendChild(this._input);if(e.suffix){const n=document.createElement("span");n.className="jp-InputDialog-inputSuffix";n.textContent=e.suffix;n.ariaHidden="true";t.appendChild(n)}this.node.appendChild(t)}}class U extends V{constructor(e){super(e);this.addClass(W);this._input.type="checkbox";this._input.checked=e.value?true:false}getValue(){return this._input.checked}}class q extends V{constructor(e){super(e);this._input.type="number";this._input.value=e.value?e.value.toString():"0"}getValue(){if(this._input.value){return Number(this._input.value)}else{return Number.NaN}}}class $ extends V{constructor(e){super(e);this._input.value=e.text?e.text:"";if(e.placeholder){this._input.placeholder=e.placeholder}if(e.pattern){this._input.pattern=e.pattern}if(e.required){this._input.required=e.required}}getValue(){return this._input.value}}class K extends ${constructor(e){var t;super(e);this._input.type="text";this._initialSelectionRange=Math.min(this._input.value.length,Math.max(0,(t=e.selectionRange)!==null&&t!==void 0?t:this._input.value.length))}onAfterAttach(e){super.onAfterAttach(e);if(this._initialSelectionRange>0&&this._input.value){this._input.setSelectionRange(0,this._initialSelectionRange)}}}class J extends ${constructor(e){super(e);this._input.type="password"}onAfterAttach(e){super.onAfterAttach(e);if(this._input.value){this._input.select()}}}class G extends V{constructor(e){super(e);this._editable=e.editable||false;let t=e.current||0;let n;if(typeof t==="number"){n=Math.max(0,Math.min(t,e.items.length-1));t=""}this._list=document.createElement("select");e.items.forEach(((e,i)=>{const s=document.createElement("option");if(i===n){s.selected=true;t=e}s.value=e;s.textContent=e;this._list.appendChild(s)}));if(e.editable){const n=document.createElement("datalist");n.id="input-dialog-items";n.appendChild(this._list);this._input.type="list";this._input.value=t;this._input.setAttribute("list",n.id);if(e.placeholder){this._input.placeholder=e.placeholder}this.node.appendChild(n)}else{this._input.parentElement.replaceChild(this._list,this._input)}}getValue(){if(this._editable){return this._input.value}else{return this._list.value}}}class Y extends V{constructor(e){super(e);let t=e.defaults||[];this._list=document.createElement("select");this._list.setAttribute("multiple","");e.items.forEach((e=>{const t=document.createElement("option");t.value=e;t.textContent=e;this._list.appendChild(t)}));this._input.remove();this.node.appendChild(this._list);const n=this._list.options;for(let i=0;ithis._updateBundles()));this.model.trackerDataChanged.connect((()=>{this.title.label=this.model.title}))}dispose(){if(this.isDisposed){return}this._bundles.currentChanged.disconnect(this.onBundleSelected,this);this.model.dispose();super.dispose()}initLeftPanel(){this._leftPanel=new o.Panel;this._leftPanel.addClass("jp-Licenses-FormArea");this.addWidget(this._leftPanel);o.SplitPanel.setStretch(this._leftPanel,1)}initFilters(){this._filters=new ee.Filters(this.model);o.SplitPanel.setStretch(this._filters,1);this._leftPanel.addWidget(this._filters)}initBundles(){this._bundles=new o.TabBar({orientation:"vertical",renderer:new ee.BundleTabRenderer(this.model)});this._bundles.addClass("jp-Licenses-Bundles");o.SplitPanel.setStretch(this._bundles,1);this._leftPanel.addWidget(this._bundles);this._bundles.currentChanged.connect(this.onBundleSelected,this);this.model.stateChanged.connect((()=>this._bundles.update()))}initGrid(){this._grid=new ee.Grid(this.model);o.SplitPanel.setStretch(this._grid,1);this.addWidget(this._grid)}initLicenseText(){this._licenseText=new ee.FullText(this.model);o.SplitPanel.setStretch(this._grid,1);this.addWidget(this._licenseText)}onBundleSelected(){var e;if((e=this._bundles.currentTitle)===null||e===void 0?void 0:e.label){this.model.currentBundleName=this._bundles.currentTitle.label}}_updateBundles(){this._bundles.clearTabs();let e=0;const{currentBundleName:t}=this.model;let n=0;for(const i of this.model.bundleNames){const s=new o.Widget;s.title.label=i;if(i===t){n=e}this._bundles.insertTab(++e,s.title)}this._bundles.currentIndex=n}}(function(e){e.REPORT_FORMATS={markdown:{id:"markdown",title:"Markdown",icon:i.markdownIcon},csv:{id:"csv",title:"CSV",icon:i.spreadsheetIcon},json:{id:"json",title:"JSON",icon:i.jsonIcon}};e.DEFAULT_FORMAT="markdown";class t{constructor(e={}){var t;this._preferredLicensesUrl=e.licensesUrl;this._serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:X.ServerConnection.makeSettings()}async download(e){const t=`${this._licensesUrl}?format=${e.format}&download=1`;const n=document.createElement("a");n.href=t;n.download="";document.body.appendChild(n);n.click();document.body.removeChild(n);URL.revokeObjectURL(t);return void 0}async getBundles(){const e=await X.ServerConnection.makeRequest(this._licensesUrl,{},this._serverSettings);return e.json()}get _licensesUrl(){var e;return(e=this._preferredLicensesUrl)!==null&&e!==void 0?e:l.URLExt.join(this._serverSettings.baseUrl,l.PageConfig.getOption("licensesUrl"))+"/"}}e.LicensesClient=t;class n extends i.VDomModel{constructor(e){super();this._selectedPackageChanged=new h.Signal(this);this._trackerDataChanged=new h.Signal(this);this._currentPackageIndex=0;this._licensesReady=new c.PromiseDelegate;this._packageFilter={};this._trans=e.trans;this._client=e.client;if(e.currentBundleName){this._currentBundleName=e.currentBundleName}if(e.packageFilter){this._packageFilter=e.packageFilter}if(e.currentPackageIndex){this._currentPackageIndex=e.currentPackageIndex}}async initLicenses(){try{this._serverResponse=await this._client.getBundles();this._licensesReady.resolve();this.stateChanged.emit(void 0)}catch(e){this._licensesReady.reject(e)}}async download(e){return this._client.download(e)}get selectedPackageChanged(){return this._selectedPackageChanged}get trackerDataChanged(){return this._trackerDataChanged}get bundleNames(){var e;return Object.keys(((e=this._serverResponse)===null||e===void 0?void 0:e.bundles)||{})}get currentBundleName(){if(this._currentBundleName){return this._currentBundleName}if(this.bundleNames.length){return this.bundleNames[0]}return null}set currentBundleName(e){if(this._currentBundleName!==e){this._currentBundleName=e;this.stateChanged.emit(void 0);this._trackerDataChanged.emit(void 0)}}get licensesReady(){return this._licensesReady.promise}get bundles(){var e;return((e=this._serverResponse)===null||e===void 0?void 0:e.bundles)||{}}get currentPackageIndex(){return this._currentPackageIndex}set currentPackageIndex(e){if(this._currentPackageIndex===e){return}this._currentPackageIndex=e;this._selectedPackageChanged.emit(void 0);this.stateChanged.emit(void 0);this._trackerDataChanged.emit(void 0)}get currentPackage(){var e;if(this.currentBundleName&&this.bundles&&this._currentPackageIndex!=null){return this.getFilteredPackages(((e=this.bundles[this.currentBundleName])===null||e===void 0?void 0:e.packages)||[])[this._currentPackageIndex]}return null}get trans(){return this._trans}get title(){return`${this._currentBundleName||""} ${this._trans.__("Licenses")}`.trim()}get packageFilter(){return this._packageFilter}set packageFilter(e){this._packageFilter=e;this.stateChanged.emit(void 0);this._trackerDataChanged.emit(void 0)}getFilteredPackages(e){let t=[];let n=Object.entries(this._packageFilter).filter((([e,t])=>t&&`${t}`.trim().length)).map((([e,t])=>[e,`${t}`.toLowerCase().trim().split(" ")]));for(const i of e){let e=0;for(const[t,s]of n){let n=0;let o=`${i[t]}`.toLowerCase();for(const e of s){if(o.includes(e)){n+=1}}if(n){e+=1}}if(e===n.length){t.push(i)}}return Object.values(t)}}e.Model=n;class s extends i.VDomRenderer{constructor(e){super(e);this.renderFilter=e=>{const t=this.model.packageFilter[e]||"";return r.createElement("input",{type:"text",name:e,defaultValue:t,className:"jp-mod-styled",onInput:this.onFilterInput})};this.onFilterInput=e=>{const t=e.currentTarget;const{name:n,value:i}=t;this.model.packageFilter={...this.model.packageFilter,[n]:i}};this.addClass("jp-Licenses-Filters");this.addClass("jp-RenderedHTMLCommon")}render(){const{trans:e}=this.model;return r.createElement("div",null,r.createElement("label",null,r.createElement("strong",{className:Z},e.__("Filter Licenses By"))),r.createElement("ul",null,r.createElement("li",null,r.createElement("label",null,e.__("Package")),this.renderFilter("name")),r.createElement("li",null,r.createElement("label",null,e.__("Version")),this.renderFilter("versionInfo")),r.createElement("li",null,r.createElement("label",null,e.__("License")),this.renderFilter("licenseId"))),r.createElement("label",null,r.createElement("strong",{className:Z},e.__("Distributions"))))}}e.Filters=s;class a extends o.TabBar.Renderer{constructor(e){super();this.closeIconSelector=".lm-TabBar-tabCloseIcon";this.model=e}renderTab(e){let t=e.title.caption;let n=this.createTabKey(e);let i=this.createTabStyle(e);let s=this.createTabClass(e);let o=this.createTabDataset(e);return Q.h.li({key:n,className:s,title:t,style:i,dataset:o},this.renderIcon(e),this.renderLabel(e),this.renderCountBadge(e))}renderCountBadge(e){const t=e.title.label;const{bundles:n}=this.model;const i=this.model.getFilteredPackages((n&&t?n[t].packages:[])||[]);return Q.h.label({},`${i.length}`)}}e.BundleTabRenderer=a;class d extends i.VDomRenderer{constructor(e){super(e);this.renderRow=(e,t)=>{const n=t===this.model.currentPackageIndex;const i=()=>this.model.currentPackageIndex=t;return r.createElement("tr",{key:e.name,className:n?"jp-mod-selected":"",onClick:i},r.createElement("td",null,r.createElement("input",{type:"radio",name:"show-package-license",value:t,onChange:i,checked:n})),r.createElement("th",null,e.name),r.createElement("td",null,r.createElement("code",null,e.versionInfo)),r.createElement("td",null,r.createElement("code",null,e.licenseId)))};this.addClass("jp-Licenses-Grid");this.addClass("jp-RenderedHTMLCommon")}render(){var e;const{bundles:t,currentBundleName:n,trans:i}=this.model;const s=this.model.getFilteredPackages(t&&n?((e=t[n])===null||e===void 0?void 0:e.packages)||[]:[]);if(!s.length){return r.createElement("blockquote",null,r.createElement("em",null,i.__("No Packages found")))}return r.createElement("form",null,r.createElement("table",null,r.createElement("thead",null,r.createElement("tr",null,r.createElement("td",null),r.createElement("th",null,i.__("Package")),r.createElement("th",null,i.__("Version")),r.createElement("th",null,i.__("License")))),r.createElement("tbody",null,s.map(this.renderRow))))}}e.Grid=d;class u extends i.VDomRenderer{constructor(e){super(e);this.addClass("jp-Licenses-Text");this.addClass("jp-RenderedHTMLCommon");this.addClass("jp-RenderedMarkdown")}render(){const{currentPackage:e,trans:t}=this.model;let n="";let i=t.__("No Package selected");let s="";if(e){const{name:o,versionInfo:r,licenseId:a,extractedText:l}=e;n=`${o} v${r}`;i=`${t.__("License")}: ${a||t.__("No License ID found")}`;s=l||t.__("No License Text found")}return[r.createElement("h1",{key:"h1"},n),r.createElement("blockquote",{key:"quote"},r.createElement("em",null,i)),r.createElement("code",{key:"code"},s)]}}e.FullText=u})(ee||(ee={}));var te;(function(e){e.symbol=Symbol("printable");function t(t){if(typeof t!=="object"||!t){return false}return e.symbol in t}e.isPrintable=t;function n(n){if(t(n)){return n[e.symbol]()}return null}e.getPrintFunction=n;function i(e){return o(e.node)}e.printWidget=i;async function s(e,t){const n=t!==null&&t!==void 0?t:X.ServerConnection.makeSettings();const i=await(await X.ServerConnection.makeRequest(e,{},n)).text();return o(i)}e.printURL=s;async function o(e){const t=typeof e==="string";const n=r();const i=window.document.body;i.appendChild(n);if(t){n.srcdoc=e;await l(n)}else{n.src="about:blank";await l(n);a(n,e)}const s=d();c(n.contentWindow);await s;i.removeChild(n)}function r(){const e=window.document.createElement("iframe");e.setAttribute("sandbox","allow-modals allow-same-origin");const t="visibility:hidden;width:0;height:0;position:absolute;z-index:-9999;bottom:0;";e.setAttribute("style",t);e.setAttribute("width","0");e.setAttribute("height","0");return e}function a(e,t){e.contentDocument.body.appendChild(t.cloneNode(true));e.contentDocument.close()}function l(e){return new Promise((t=>{e.onload=()=>t()}))}function d(){return new Promise((e=>{const t=()=>{document.removeEventListener("mousemove",t,true);document.removeEventListener("mousedown",t,true);document.removeEventListener("keydown",t,true);e()};document.addEventListener("mousemove",t,true);document.addEventListener("mousedown",t,true);document.addEventListener("keydown",t,true)}))}function c(e){const t=e.document.execCommand("print",false);if(!t){e.print()}}})(te||(te={}));const ne=true;class ie extends o.Widget{constructor(e){super(e);this._changeGuard=false;this._spinner=new i.Spinner;this._isRevealed=false;this._evtMouseDown=()=>{if(!this.node.contains(document.activeElement)){this._focusContent()}};this.addClass("jp-MainAreaWidget");this.addClass("jp-MainAreaWidget-ContainStrict");this.id=F.createDomID();const t=(e.translator||s.nullTranslator).load("jupyterlab");const n=this._content=e.content;n.node.setAttribute("role","region");n.node.setAttribute("aria-label",t.__("main area content"));const r=this._toolbar=e.toolbar||new i.ReactiveToolbar({noFocusOnClick:true});r.node.setAttribute("role","toolbar");r.node.setAttribute("aria-label",t.__("main area toolbar"));const a=this._contentHeader=e.contentHeader||new o.BoxPanel({direction:"top-to-bottom",spacing:0});const l=this.layout=new o.BoxLayout({spacing:0});l.direction="top-to-bottom";o.BoxLayout.setStretch(r,0);o.BoxLayout.setStretch(a,0);o.BoxLayout.setStretch(n,1);l.addWidget(r);l.addWidget(a);l.addWidget(n);if(!n.id){n.id=F.createDomID()}n.node.tabIndex=-1;this._updateTitle();n.title.changed.connect(this._updateTitle,this);this.title.closable=true;this.title.changed.connect(this._updateContentTitle,this);if(e.reveal){this.node.appendChild(this._spinner.node);this._revealed=e.reveal.then((()=>{if(n.isDisposed){this.dispose();return}n.disposed.connect((()=>this.dispose()));const e=document.activeElement===this._spinner.node;this._disposeSpinner();this._isRevealed=true;if(e){this._focusContent()}})).catch((e=>{const t=new o.Widget;t.addClass("jp-MainAreaWidget-error");const i=document.createElement("pre");i.textContent=String(e);t.node.appendChild(i);o.BoxLayout.setStretch(t,1);this._disposeSpinner();n.dispose();this._content=null;r.dispose();this._toolbar=null;l.addWidget(t);this._isRevealed=true;throw t}))}else{this._spinner.dispose();this.removeClass("jp-MainAreaWidget-ContainStrict");n.disposed.connect((()=>this.dispose()));this._isRevealed=true;this._revealed=Promise.resolve(undefined)}}[te.symbol](){if(!this._content){return null}return te.getPrintFunction(this._content)}get content(){return this._content}get toolbar(){return this._toolbar}get contentHeader(){return this._contentHeader}get isRevealed(){return this._isRevealed}get revealed(){return this._revealed}onActivateRequest(e){if(this._isRevealed){this._focusContent()}else{this._spinner.node.focus()}}onAfterAttach(e){super.onAfterAttach(e);this.node.addEventListener("mousedown",this._evtMouseDown,ne)}onBeforeDetach(e){this.node.removeEventListener("mousedown",this._evtMouseDown,ne);super.onBeforeDetach(e)}onCloseRequest(e){this.dispose()}onUpdateRequest(e){if(this._content){u.MessageLoop.sendMessage(this._content,e)}}_disposeSpinner(){this.node.removeChild(this._spinner.node);this._spinner.dispose();this.removeClass("jp-MainAreaWidget-ContainStrict")}_updateTitle(){if(this._changeGuard||!this.content){return}this._changeGuard=true;const e=this.content;this.title.label=e.title.label;this.title.mnemonic=e.title.mnemonic;this.title.icon=e.title.icon;this.title.iconClass=e.title.iconClass;this.title.iconLabel=e.title.iconLabel;this.title.caption=e.title.caption;this.title.className=e.title.className;this.title.dataset=e.title.dataset;this._changeGuard=false}_updateContentTitle(){if(this._changeGuard||!this.content){return}this._changeGuard=true;const e=this.content;e.title.label=this.title.label;e.title.mnemonic=this.title.mnemonic;e.title.icon=this.title.icon;e.title.iconClass=this.title.iconClass;e.title.iconLabel=this.title.iconLabel;e.title.caption=this.title.caption;e.title.className=this.title.className;e.title.dataset=this.title.dataset;this._changeGuard=false}_focusContent(){if(!this.content){return}if(!this.content.node.contains(document.activeElement)){this.content.node.focus()}this.content.activate()}}var se;(function(e){function t(e,t){return e.filter((e=>!e.disabled)).sort(((e,t)=>{var n,i;return((n=e.rank)!==null&&n!==void 0?n:Infinity)-((i=t.rank)!==null&&i!==void 0?i:Infinity)})).map((e=>n(e,t)))}e.createMenus=t;function n(e,t){var n,s;const r=t(e);r.id=e.id;if(!r.title.label){r.title.label=(n=e.label)!==null&&n!==void 0?n:l.Text.titleCase(r.id.trim())}if(e.icon){r.title.icon=i.LabIcon.resolve({icon:e.icon})}if(e.mnemonic!==undefined){r.title.mnemonic=e.mnemonic}(s=e.items)===null||s===void 0?void 0:s.filter((e=>!e.disabled)).sort(((e,t)=>{var n,i;return((n=e.rank)!==null&&n!==void 0?n:Infinity)-((i=t.rank)!==null&&i!==void 0?i:Infinity)})).map((e=>{o(e,r,t)}));return r}function s(e,t,i){const{submenu:s,...o}=e;t.addItem({...o,submenu:s?n(s,i):null})}e.addContextItem=s;function o(e,t,i){const{submenu:s,...o}=e;t.addItem({...o,submenu:s?n(s,i):null})}function r(e,t,i){const s=[];t.forEach((t=>{const o=e.find((e=>e.id===t.id));if(o){a(t,o,i)}else{if(!t.disabled){s.push(n(t,i))}}}));e.push(...s);return s}e.updateMenus=r;function a(e,t,n){var i;if(e.disabled){t.dispose()}else{(i=e.items)===null||i===void 0?void 0:i.forEach((e=>{var i,s;const r=t===null||t===void 0?void 0:t.items.find(((t,n)=>{var i,s,o;return t.type===e.type&&t.command===((i=e.command)!==null&&i!==void 0?i:"")&&((s=t.submenu)===null||s===void 0?void 0:s.id)===((o=e.submenu)===null||o===void 0?void 0:o.id)}));if(r&&e.type!=="separator"){if(e.disabled){t.removeItem(r)}else{switch((i=e.type)!==null&&i!==void 0?i:"command"){case"command":if(e.command){if(!c.JSONExt.deepEqual(r.args,(s=e.args)!==null&&s!==void 0?s:{})){o(e,t,n)}}break;case"submenu":if(e.submenu){a(e.submenu,r.submenu,n)}}}}else{o(e,t,n)}}))}}})(se||(se={}));class oe{constructor(){this._isDisposed=false;this._queue=[];this._changed=new h.Signal(this)}get changed(){return this._changed}get count(){return this._queue.length}get isDisposed(){return this._isDisposed}get notifications(){return this._queue.slice()}dismiss(e){if(typeof e==="undefined"){const e=this._queue.slice();this._queue.length=0;for(const t of e){this._changed.emit({type:"removed",notification:t})}}else{const t=this._queue.findIndex((t=>t.id===e));if(t>-1){const e=this._queue.splice(t,1)[0];this._changed.emit({type:"removed",notification:e})}}}dispose(){if(this._isDisposed){return}this._isDisposed=true;h.Signal.clearData(this)}has(e){return this._queue.findIndex((t=>t.id===e))>-1}notify(e,t,n){const i=Date.now();const{progress:s,...o}=n;const r=Object.freeze({id:c.UUID.uuid4(),createdAt:i,modifiedAt:i,message:e,type:t,options:{autoClose:0,progress:typeof s==="number"?Math.min(Math.max(0,s),1):s,...o}});this._queue.unshift(r);this._changed.emit({type:"added",notification:r});return r.id}update(e){const{id:t,message:n,actions:i,autoClose:s,data:o,progress:r,type:a}=e;const l=typeof r==="number"?Math.min(Math.max(0,r),1):r;const d=this._queue.findIndex((e=>e.id===t));if(d>-1){const e=this._queue[d];const t=Object.freeze({...e,message:n!==null&&n!==void 0?n:e.message,type:a!==null&&a!==void 0?a:e.type,options:{actions:i!==null&&i!==void 0?i:e.options.actions,autoClose:s!==null&&s!==void 0?s:e.options.autoClose,data:o!==null&&o!==void 0?o:e.options.data,progress:l!==null&&l!==void 0?l:e.options.progress},modifiedAt:Date.now()});this._queue.splice(d,1);this._queue.unshift(t);this._changed.emit({type:"updated",notification:t});return true}return false}}var re;(function(e){e.manager=new oe;function t(t){e.manager.dismiss(t)}e.dismiss=t;function n(t,n="default",i={}){return e.manager.notify(t,n,i)}e.emit=n;function i(t,n={}){return e.manager.notify(t,"error",n)}e.error=i;function s(t,n={}){return e.manager.notify(t,"info",n)}e.info=s;function o(t,n){var i;const{pending:s,error:o,success:r}=n;const a=e.manager.notify(s.message,"in-progress",(i=s.options)!==null&&i!==void 0?i:{});t.then((t=>{var n,i,s;e.manager.update({id:a,message:r.message(t,(n=r.options)===null||n===void 0?void 0:n.data),type:"success",...r.options,data:(s=(i=r.options)===null||i===void 0?void 0:i.data)!==null&&s!==void 0?s:t})})).catch((t=>{var n,i,s;e.manager.update({id:a,message:o.message(t,(n=o.options)===null||n===void 0?void 0:n.data),type:"error",...o.options,data:(s=(i=o.options)===null||i===void 0?void 0:i.data)!==null&&s!==void 0?s:t})}));return a}e.promise=o;function r(t,n={}){return e.manager.notify(t,"success",n)}e.success=r;function a(t){return e.manager.update(t)}e.update=a;function l(t,n={}){return e.manager.notify(t,"warning",n)}e.warning=l})(re||(re={}));const ae=4;function le(e){var t,n;const s=(t=e.showKernels)!==null&&t!==void 0?t:true;const o=(n=e.showTerminals)!==null&&n!==void 0?n:e.terminals>0;return a().createElement(C.GroupItem,{role:"button",tabIndex:0,spacing:ae,onClick:e.handleClick,onKeyDown:e.handleKeyDown,style:{cursor:"pointer"}},o?a().createElement(C.GroupItem,{spacing:ae},a().createElement(C.TextItem,{source:e.terminals}),a().createElement(i.terminalIcon.react,{verticalAlign:"middle",stylesheet:"statusBar"})):null,s?a().createElement(C.GroupItem,{spacing:ae},a().createElement(C.TextItem,{source:e.sessions}),a().createElement(i.kernelIcon.react,{verticalAlign:"middle",stylesheet:"statusBar"})):null)}class de extends i.VDomRenderer{constructor(e){super(new de.Model);this._serviceManager=e.serviceManager;this._handleClick=e.onClick;this._handleKeyDown=e.onKeyDown;this.translator=e.translator||s.nullTranslator;this._showKernels=e.showKernels;this._showTerminals=e.showTerminals;this._trans=this.translator.load("jupyterlab");this._serviceManager.sessions.runningChanged.connect(this._onSessionsRunningChanged,this);this._serviceManager.terminals.runningChanged.connect(this._onTerminalsRunningChanged,this);this.addClass("jp-mod-highlighted")}render(){if(!this.model){return null}const e=this._trans.__("%1 Terminals, %2 Kernel sessions",this.model.terminals,this.model.sessions);this.node.title=e;return a().createElement(le,{sessions:this.model.sessions,terminals:this.model.terminals,handleClick:this._handleClick,handleKeyDown:this._handleKeyDown,showKernels:this._showKernels,showTerminals:this._showTerminals})}dispose(){super.dispose();this._serviceManager.sessions.runningChanged.disconnect(this._onSessionsRunningChanged,this);this._serviceManager.terminals.runningChanged.disconnect(this._onTerminalsRunningChanged,this)}_onSessionsRunningChanged(e,t){this.model.sessions=t.length}_onTerminalsRunningChanged(e,t){this.model.terminals=t.length}}(function(e){class t extends i.VDomModel{constructor(){super(...arguments);this._terminals=0;this._sessions=0}get sessions(){return this._sessions}set sessions(e){const t=this._sessions;this._sessions=e;if(t!==this._sessions){this.stateChanged.emit(void 0)}}get terminals(){return this._terminals}set terminals(e){const t=this._terminals;this._terminals=e;if(t!==this._terminals){this.stateChanged.emit(void 0)}}}e.Model=t})(de||(de={}));var ce=n(74728);var he=n.n(ce);class ue{static reg(e){return new RegExp("^"+e+"$","i")}}ue.N={integer:`[+-]?[0-9]+`,integer_pos:`[+]?[0-9]+`,integer_zero_ff:`([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])`,integer_non_zero:`[+-]?([1-9][0-9]*)`,integer_pos_non_zero:`[+]?([1-9][0-9]*)`,number:`[+-]?([0-9]*[.])?[0-9]+(e-?[0-9]*)?`,number_pos:`[+]?([0-9]*[.])?[0-9]+(e-?[0-9]*)?`,number_zero_hundred:`[+]?(([0-9]|[1-9][0-9])([.][0-9]+)?|100)`,number_zero_one:`[+]?(1([.][0]+)?|0?([.][0-9]+)?)`};ue._B={angle:`(${ue.N.number}(deg|rad|grad|turn)|0)`,frequency:`${ue.N.number}(Hz|kHz)`,ident:String.raw`-?([_a-z]|[\xA0-\xFF]|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])([_a-z0-9-]|[\xA0-\xFF]|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])*`,len_or_perc:`(0|${ue.N.number}(px|em|rem|ex|in|cm|mm|pt|pc|%))`,length:`(${ue.N.number}(px|em|rem|ex|in|cm|mm|pt|pc)|0)`,length_pos:`(${ue.N.number_pos}(px|em|rem|ex|in|cm|mm|pt|pc)|0)`,percentage:`${ue.N.number}%`,percentage_pos:`${ue.N.number_pos}%`,percentage_zero_hundred:`${ue.N.number_zero_hundred}%`,string:String.raw`(\"([^\n\r\f\\"]|\\\n|\r\n|\r|\f|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])*\")|(\'([^\n\r\f\\']|\\\n|\r\n|\r|\f|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])*\')`,time:`${ue.N.number}(s|ms)`,url:`url\\(.*?\\)`,z_index:`[+-]?[0-9]{1,7}`};ue._B1={flex:`(${ue.N.number}|${ue._B.len_or_perc}|none|auto)\\s*((${ue.N.number}|${ue._B.len_or_perc}|auto)\\s*){0,2}`,fixed_breadth:`${ue._B.len_or_perc}`,grid_line:`auto|${ue._B.ident}|(${ue.N.integer_non_zero}(\\s+${ue._B.ident})?)|(span\\s+(${ue.N.integer_pos_non_zero}|${ue._B.ident}))`,line_names:String.raw`\[\s*${ue._B.ident}(\s+${ue._B.ident})*\s*\]`};ue._B2={inflexible_breadth:`${ue._B.len_or_perc}|auto|min-content|max-content`,track_breadth:`${ue._B.len_or_perc}|${ue._B1.flex}|auto|min-content|max-content`};ue._B3={fixed_size:`${ue._B1.fixed_breadth}|minmax\\(\\s*${ue._B2.inflexible_breadth}\\s*,\\s*${ue._B1.fixed_breadth}\\s*\\)|minmax\\(\\s*${ue._B1.fixed_breadth}\\s*,\\s*${ue._B2.track_breadth}\\s*\\)`,track_size:`${ue._B2.track_breadth}|minmax\\(\\s*${ue._B2.inflexible_breadth}\\s*,\\s*${ue._B2.track_breadth}\\s*\\)|fit-content\\(\\s*(${ue._B.len_or_perc}\\s*)*\\)`};ue._B4={name_repeat:`repeat\\(\\s*(${ue.N.integer_pos_non_zero}|auto-fill)\\s*,\\s*(${ue._B1.line_names})+\\s*\\)`,auto_repeat:`repeat\\(\\s*(auto-fill|auto-fit)\\s*,\\s*((${ue._B1.line_names}\\s+)?${ue._B3.fixed_size}\\s*)+(${ue._B1.line_names})?\\s*\\)`,fixed_repeat:`repeat\\(\\s*(${ue.N.integer_pos_non_zero})\\s*,\\s*((${ue._B1.line_names}\\s+)?${ue._B3.fixed_size}\\s*)+(${ue._B1.line_names})?\\s*\\)`};ue._B5={auto_track_list:`(${ue._B1.line_names}\\s*)?(${ue._B3.fixed_size}|${ue._B4.fixed_repeat})*(${ue._B1.line_names}\\s*)?${ue._B4.auto_repeat}(${ue._B1.line_names}\\s*)?(${ue._B3.fixed_size}|${ue._B4.fixed_repeat})*(${ue._B1.line_names}\\s*)?`,explicit_track_list:`(${ue._B1.line_names}\\s*)?(${ue._B3.track_size})+(${ue._B1.line_names}\\s*)?`,track_list:`(${ue._B1.line_names}\\s*)?(${ue._B3.track_size}|${ue._B4.name_repeat})+(${ue._B1.line_names}\\s*)?`};ue._B6={grid_template_rows:`none|${ue._B5.track_list}|${ue._B5.auto_track_list}|subgrid\\s*(${ue._B1.line_names})?`,grid_template_columns:`none|${ue._B5.track_list}|${ue._B5.auto_track_list}|subgrid\\s*(${ue._B1.line_names})?`};ue.B={...ue._B,...ue._B1,...ue._B2,...ue._B3,...ue._B4,...ue._B5,...ue._B6};ue.A={absolute_size:`xx-small|x-small|small|medium|large|x-large|xx-large`,attachment:`scroll|fixed|local`,bg_origin:`border-box|padding-box|content-box`,border_style:`none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset`,box:`border-box|padding-box|content-box`,display_inside:`auto|block|table|flex|grid`,display_outside:`block-level|inline-level|none|table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption`,ending_shape:`circle|ellipse`,generic_family:`serif|sans-serif|cursive|fantasy|monospace`,generic_voice:`male|female|child`,relative_size:`smaller|larger`,repeat_style:`repeat-x|repeat-y|((?:repeat|space|round|no-repeat)(?:\\s*(?:repeat|space|round|no-repeat))?)`,side_or_corner:`(left|right)?\\s*(top|bottom)?`,single_animation_direction:`normal|reverse|alternate|alternate-reverse`,single_animation_fill_mode:`none|forwards|backwards|both`,single_animation_play_state:`running|paused`};ue._COLOR={hex:`\\#(0x)?[0-9a-f]+`,name:`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|green|greenyellow|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgreen|lightgrey|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|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|transparent|violet|wheat|white|whitesmoke|yellow|yellowgreen`,rgb:String.raw`rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)`,rgba:String.raw`rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(${ue.N.integer_zero_ff}|${ue.N.number_zero_one}|${ue.B.percentage_zero_hundred})\s*\)`};ue._C={alpha:`${ue.N.integer_zero_ff}|${ue.N.number_zero_one}|${ue.B.percentage_zero_hundred}`,alphavalue:ue.N.number_zero_one,bg_position:`((${ue.B.len_or_perc}|left|center|right|top|bottom)\\s*){1,4}`,bg_size:`(${ue.B.length_pos}|${ue.B.percentage}|auto){1,2}|cover|contain`,border_width:`thin|medium|thick|${ue.B.length}`,bottom:`${ue.B.length}|auto`,color:`${ue._COLOR.hex}|${ue._COLOR.rgb}|${ue._COLOR.rgba}|${ue._COLOR.name}`,color_stop_length:`(${ue.B.len_or_perc}\\s*){1,2}`,linear_color_hint:`${ue.B.len_or_perc}`,family_name:`${ue.B.string}|(${ue.B.ident}\\s*)+`,image_decl:ue.B.url,left:`${ue.B.length}|auto`,loose_quotable_words:`(${ue.B.ident})+`,margin_width:`${ue.B.len_or_perc}|auto`,padding_width:`${ue.B.length_pos}|${ue.B.percentage_pos}`,page_url:ue.B.url,position:`((${ue.B.len_or_perc}|left|center|right|top|bottom)\\s*){1,4}`,right:`${ue.B.length}|auto`,shadow:"",size:`closest-side|farthest-side|closest-corner|farthest-corner|${ue.B.length}|(${ue.B.len_or_perc})\\s+(${ue.B.len_or_perc})`,top:`${ue.B.length}|auto`};ue._C1={image_list:`image\\(\\s*(${ue.B.url})*\\s*(${ue.B.url}|${ue._C.color})\\s*\\)`,linear_color_stop:`(${ue._C.color})(\\s*${ue._C.color_stop_length})?`,shadow:`((${ue._C.color})\\s+((${ue.B.length})\\s*){2,4}(s+inset)?)|((inset\\s+)?((${ue.B.length})\\s*){2,4}\\s*(${ue._C.color})?)`};ue._C2={color_stop_list:`((${ue._C1.linear_color_stop})(\\s*(${ue._C.linear_color_hint}))?\\s*,\\s*)+(${ue._C1.linear_color_stop})`,shape:`rect\\(\\s*(${ue._C.top})\\s*,\\s*(${ue._C.right})\\s*,\\s*(${ue._C.bottom})\\s*,\\s*(${ue._C.left})\\s*\\)`};ue._C3={linear_gradient:`linear-gradient\\((((${ue.B.angle})|to\\s+(${ue.A.side_or_corner}))\\s*,\\s*)?\\s*(${ue._C2.color_stop_list})\\s*\\)`,radial_gradient:`radial-gradient\\(((((${ue.A.ending_shape})|(${ue._C.size}))\\s*)*\\s*(at\\s+${ue._C.position})?\\s*,\\s*)?\\s*(${ue._C2.color_stop_list})\\s*\\)`};ue._C4={image:`${ue.B.url}|${ue._C3.linear_gradient}|${ue._C3.radial_gradient}|${ue._C1.image_list}`,bg_image:`(${ue.B.url}|${ue._C3.linear_gradient}|${ue._C3.radial_gradient}|${ue._C1.image_list})|none`};ue.C={...ue._C,...ue._C1,...ue._C2,...ue._C3,...ue._C4};ue.AP={baseline_position:`baseline|first baseline|last baseline`,border_collapse:`collapse|separate`,box:`normal|none|contents`,box_sizing:`content-box|padding-box|border-box`,caption_side:`top|bottom`,clear:`none|left|right|both`,content_position:`start|end|center|flex-start|flex-end`,content_distribution:`stretch|space-between|space-around|space-evenly`,direction:`ltr|rtl`,empty_cells:`show|hide`,flex_direction:`row|row-reverse|column|column-reverse`,flex_wrap:`nowrap|wrap|wrap-reverse`,float:`left|right|none`,font_stretch:`normal|wider|narrower|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded`,font_style:`normal|italic|oblique`,font_variant:`normal|small-caps`,font_weight:`normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900`,list_style_position:`inside|outside`,gap:`normal`,grid_auto_flow:`row|column|dense|row dense|column dense`,justify_content:`start|end|center|stretch|space-between|space-around|space-evenly`,justify_items:`start|end|center|stretch`,justify_self:`auto|start|end|center|stretch`,list_style_type:`disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman|lower-greek|lower-latin|upper-latin|armenian|georgian|lower-alpha|upper-alpha|none`,overflow:`visible|hidden|scroll|auto`,overflow_position:`unsafe|safe`,overflow_wrap:`normal|break-word`,overflow_x:`visible|hidden|scroll|auto|no-display|no-content`,page_break_after:`auto|always|avoid|left|right`,page_break_before:`auto|always|avoid|left|right`,page_break_inside:`avoid|auto`,place_content:`(center|start|end|space-between|space-around|space-evenly|stretch){1,2}`,place_items:`(center|start|end|baseline|stretch){1,2}`,place_self:`(center|start|end|baseline|stretch){1,2}`,position:`static|relative|absolute`,resize:`none|both|horizontal|vertical`,speak:`normal|none|spell-out`,self_position:`center|start|end|self-start|self-end|flex-start|flex-end`,speak_header:`once|always`,speak_numeral:`digits|continuous`,speak_punctuation:`code|none`,table_layout:`auto|fixed`,text_align:`left|right|center|justify`,text_decoration:`none|((underline|overline|line-through|blink)\\s*)+`,text_transform:`capitalize|uppercase|lowercase|none`,text_wrap:`normal|unrestricted|none|suppress`,unicode_bidi:`normal|embed|bidi-override`,visibility:`visible|hidden|collapse`,white_space:`normal|pre|nowrap|pre-wrap|pre-line`,word_break:`normal|keep-all|break-all`};ue._CP={align_content:`normal|${ue.AP.baseline_position}|${ue.AP.content_distribution}|${ue.AP.overflow_position}|${ue.AP.content_position}`,align_items:`normal|stretch|${ue.AP.baseline_position}|(${ue.AP.overflow_position})?\\s*${ue.AP.self_position}|anchor-center`,align_self:`auto|normal|stretch|${ue.AP.baseline_position}|(${ue.AP.overflow_position})?\\s*${ue.AP.self_position}|anchor-center`,background_attachment:`${ue.A.attachment}(,\\s*${ue.A.attachment})*`,background_color:ue.C.color,background_origin:`${ue.A.box}(,\\s*${ue.A.box})*`,background_repeat:`${ue.A.repeat_style}(,\\s*${ue.A.repeat_style})*`,border:`((${ue.C.border_width}|${ue.A.border_style}|${ue.C.color})\\s*){1,3}`,border_radius:`((${ue.B.len_or_perc})\\s*){1,4}(\\/\\s*((${ue.B.len_or_perc})\\s*){1,4})?`,border_spacing:`${ue.B.length}\\s*(${ue.B.length})?`,border_top_color:ue.C.color,border_top_style:ue.A.border_style,border_width:`((${ue.C.border_width})\\s*){1,4}`,color:ue.C.color,cursor:`(${ue.B.url}(\\s*,\\s*)?)*(auto|crosshair|default|pointer|move|e-resize|ne-resize|nw-resize|n-resize|se-resize|sw-resize|s-resize|w-resize|text|wait|help|progress|all-scroll|col-resize|hand|no-drop|not-allowed|row-resize|vertical-text)`,display:`inline|block|list-item|run-in|inline-list-item|inline-block|table|inline-table|table-cell|table-caption|flex|inline-flex|grid|inline-grid|${ue.A.display_inside}|${ue.A.display_outside}|inherit|inline-box|inline-stack`,display_outside:ue.A.display_outside,elevation:`${ue.B.angle}|below|level|above|higher|lower`,font_family:`(${ue.C.family_name}|${ue.A.generic_family})(,\\s*(${ue.C.family_name}|${ue.A.generic_family}))*`,height:`${ue.B.length}|${ue.B.percentage}|auto`,letter_spacing:`normal|${ue.B.length}`,list_style_image:`${ue.C.image}|none`,margin_right:ue.C.margin_width,max_height:`${ue.B.length_pos}|${ue.B.percentage_pos}|none|auto`,min_height:`${ue.B.length_pos}|${ue.B.percentage_pos}|auto`,opacity:ue.C.alphavalue,outline_color:`${ue.C.color}|invert`,outline_width:ue.C.border_width,padding:`((${ue.C.padding_width})\\s*){1,4}`,padding_top:ue.C.padding_width,pitch_range:ue.N.number,right:`${ue.B.length}|${ue.B.percentage}|auto`,stress:ue.N.number,text_indent:`${ue.B.length}|${ue.B.percentage}`,text_shadow:`none|${ue.C.shadow}(,\\s*(${ue.C.shadow}))*`,volume:`${ue.N.number_pos}|${ue.B.percentage_pos}|silent|x-soft|soft|medium|loud|x-loud`,word_wrap:ue.AP.overflow_wrap,zoom:`normal|${ue.N.number_pos}|${ue.B.percentage_pos}`,backface_visibility:ue.AP.visibility,background_clip:`${ue.A.box}(,\\s*(${ue.A.box}))*`,background_position:`${ue.C.bg_position}(,\\s*(${ue.C.bg_position}))*`,border_bottom_color:ue.C.color,border_bottom_style:ue.A.border_style,border_color:`((${ue.C.color})\\s*){1,4}`,border_left_color:ue.C.color,border_right_color:ue.C.color,border_style:`((${ue.A.border_style})\\s*){1,4}`,border_top_left_radius:`(${ue.B.length}|${ue.B.percentage})(\\s*(${ue.B.length}|${ue.B.percentage}))?`,border_top_width:ue.C.border_width,box_shadow:`none|${ue.C.shadow}(,\\s*(${ue.C.shadow}))*`,clip:`${ue.C.shape}|auto`,display_inside:ue.A.display_inside,font_size:`${ue.A.absolute_size}|${ue.A.relative_size}|${ue.B.length_pos}|${ue.B.percentage_pos}`,line_height:`normal|${ue.N.number_pos}|${ue.B.length_pos}|${ue.B.percentage_pos}`,margin_left:ue.C.margin_width,max_width:`${ue.B.length_pos}|${ue.B.percentage_pos}|none|auto`,outline_style:ue.A.border_style,padding_bottom:ue.C.padding_width,padding_right:ue.C.padding_width,perspective:`none|${ue.B.length}`,richness:ue.N.number,text_overflow:`((clip|ellipsis|${ue.B.string})\\s*){1,2}`,top:`${ue.B.length}|${ue.B.percentage}|auto`,width:`${ue.B.length_pos}|${ue.B.percentage_pos}|auto`,z_index:`auto|${ue.B.z_index}`,background:`(((${ue.C.bg_position}\\s*(\\/\\s*${ue.C.bg_size})?)|(${ue.A.repeat_style})|(${ue.A.attachment})|(${ue.A.bg_origin})|(${ue.C.bg_image})|(${ue.C.color}))\\s*)+`,background_size:`${ue.C.bg_size}(,\\s*${ue.C.bg_size})*`,border_bottom_left_radius:`(${ue.B.length}|${ue.B.percentage})(\\s*(${ue.B.length}|${ue.B.percentage}))?`,border_bottom_width:ue.C.border_width,border_left_style:ue.A.border_style,border_right_style:ue.A.border_style,border_top:`((${ue.C.border_width}|${ue.A.border_style}|${ue.C.color})\\s*){1,3}`,bottom:`${ue.B.len_or_perc}|auto`,list_style:`((${ue.AP.list_style_type}|${ue.AP.list_style_position}|${ue.C.image}|none})\\s*){1,3}`,margin_top:ue.C.margin_width,outline:`((${ue.C.color}|invert|${ue.A.border_style}|${ue.C.border_width})\\s*){1,3}`,overflow_y:ue.AP.overflow_x,pitch:`${ue.B.frequency}|x-low|low|medium|high|x-high`,vertical_align:`baseline|sub|super|top|text-top|middle|bottom|text-bottom|${ue.B.len_or_perc}`,word_spacing:`normal|${ue.B.length}`,background_image:`${ue.C.bg_image}(,\\s*${ue.C.bg_image})*`,border_bottom_right_radius:`(${ue.B.length}|${ue.B.percentage})(\\s*(${ue.B.length}|${ue.B.percentage}))?`,border_left_width:ue.C.border_width,border_right_width:ue.C.border_width,left:`${ue.B.len_or_perc}|auto`,margin_bottom:ue.C.margin_width,pause_after:`${ue.B.time}|${ue.B.percentage}`,speech_rate:`${ue.N.number}|x-slow|slow|medium|fast|x-fast|faster|slower`,transition_duration:`${ue.B.time}(,\\s*${ue.B.time})*`,border_bottom:`((${ue.C.border_width}|${ue.A.border_style}|${ue.C.color})\\s*){1,3}`,border_right:`((${ue.C.border_width}|${ue.A.border_style}|${ue.C.color})\\s*){1,3}`,margin:`((${ue.C.margin_width})\\s*){1,4}`,padding_left:ue.C.padding_width,border_left:`((${ue.C.border_width}|${ue.A.border_style}|${ue.C.color})\\s*){1,3}`,quotes:`(${ue.B.string}\\s*${ue.B.string})+|none`,border_top_right_radius:`(${ue.B.length}|${ue.B.percentage})(\\s*(${ue.B.length}|${ue.B.percentage}))?`,min_width:`${ue.B.length_pos}|${ue.B.percentage_pos}|auto`,flex_basis:`${ue.B.len_or_perc}|auto|content|max-content|min-content|fit-content\\(\\s*(${ue.B.len_or_perc}\\s*)*\\)`,flex_grow:ue.N.number_pos,flex_shrink:ue.N.number_pos,grid:`(${ue.B.string}|none|subgrid)\\s*(\\/\\s*(${ue.B.string}|none|subgrid))?`,grid_area:`${ue.B.ident}|auto|(${ue.N.integer}\\s*\\/\\s*${ue.N.integer}\\s*\\/\\s*${ue.N.integer}\\s*\\/\\s*${ue.N.integer})`,grid_auto_columns:`(${ue.B.track_size})+`,grid_auto_rows:`(${ue.B.track_size})+`,grid_column:`${ue.B.grid_line}(\\s*\\/\\s*${ue.B.grid_line})?`,grid_column_start:`${ue.B.grid_line}`,grid_column_end:`${ue.B.grid_line}`,grid_column_gap:`${ue.B.len_or_perc}|normal`,grid_gap:`(${ue.B.len_or_perc}|normal)(\\s*(${ue.B.len_or_perc}|normal))?`,grid_row:`${ue.B.grid_line}(\\s*\\/\\s*${ue.B.grid_line})?`,grid_row_start:`${ue.B.grid_line}`,grid_row_end:`${ue.B.grid_line}`,grid_row_gap:`${ue.B.len_or_perc}|normal`,grid_template:`none|(${ue.B.grid_template_rows}\\s*\\/\\s*${ue.B.grid_template_columns})|(${ue.B.line_names}\\s*)?(${ue.B.string}\\s*${ue.B.track_size}\\s*(${ue.B.line_names}\\s*)?)+\\s*(\\/\\s*${ue.B.explicit_track_list})?`,grid_template_areas:`none|(${ue.B.string})+`,grid_template_columns:`${ue.B.grid_template_columns}`,grid_template_rows:`${ue.B.grid_template_rows}`,row_gap:`${ue.B.len_or_perc}|normal`,column_gap:`${ue.B.len_or_perc}|normal`,gap:`(${ue.B.len_or_perc}|normal)(\\s*(${ue.B.len_or_perc}|normal))?`,order:ue.N.integer};ue._CP1={font:`(((((${ue.AP.font_style}|${ue.AP.font_variant}|${ue.AP.font_weight})\\s*){1,3})?\\s*(${ue._CP.font_size})\\s*(\\/\\s*(${ue._CP.line_height}))?\\s+(${ue._CP.font_family}))|caption|icon|menu|message-box|small-caption|status-bar)`};ue.CP={...ue._CP,...ue._CP1};ue.BORDER_COLLAPSE=ue.reg(ue.AP.border_collapse);ue.BOX=ue.reg(ue.AP.box);ue.BOX_SIZING=ue.reg(ue.AP.box_sizing);ue.CAPTION_SIDE=ue.reg(ue.AP.caption_side);ue.CLEAR=ue.reg(ue.AP.clear);ue.DIRECTION=ue.reg(ue.AP.direction);ue.EMPTY_CELLS=ue.reg(ue.AP.empty_cells);ue.FLOAT=ue.reg(ue.AP.float);ue.FONT_STRETCH=ue.reg(ue.AP.font_stretch);ue.FONT_STYLE=ue.reg(ue.AP.font_style);ue.FONT_VARIANT=ue.reg(ue.AP.font_variant);ue.FONT_WEIGHT=ue.reg(ue.AP.font_weight);ue.LIST_STYLE_POSITION=ue.reg(ue.AP.list_style_position);ue.LIST_STYLE_TYPE=ue.reg(ue.AP.list_style_type);ue.OVERFLOW=ue.reg(ue.AP.overflow);ue.OVERFLOW_WRAP=ue.reg(ue.AP.overflow_wrap);ue.OVERFLOW_X=ue.reg(ue.AP.overflow_x);ue.PAGE_BREAK_AFTER=ue.reg(ue.AP.page_break_after);ue.PAGE_BREAK_BEFORE=ue.reg(ue.AP.page_break_before);ue.PAGE_BREAK_INSIDE=ue.reg(ue.AP.page_break_inside);ue.POSITION=ue.reg(ue.AP.position);ue.RESIZE=ue.reg(ue.AP.resize);ue.SPEAK=ue.reg(ue.AP.speak);ue.SPEAK_HEADER=ue.reg(ue.AP.speak_header);ue.SPEAK_NUMERAL=ue.reg(ue.AP.speak_numeral);ue.SPEAK_PUNCTUATION=ue.reg(ue.AP.speak_punctuation);ue.TABLE_LAYOUT=ue.reg(ue.AP.table_layout);ue.TEXT_ALIGN=ue.reg(ue.AP.text_align);ue.TEXT_DECORATION=ue.reg(ue.AP.text_decoration);ue.TEXT_TRANSFORM=ue.reg(ue.AP.text_transform);ue.TEXT_WRAP=ue.reg(ue.AP.text_wrap);ue.UNICODE_BIDI=ue.reg(ue.AP.unicode_bidi);ue.VISIBILITY=ue.reg(ue.AP.visibility);ue.WHITE_SPACE=ue.reg(ue.AP.white_space);ue.WORD_BREAK=ue.reg(ue.AP.word_break);ue.BACKGROUND_ATTACHMENT=ue.reg(ue.CP.background_attachment);ue.BACKGROUND_COLOR=ue.reg(ue.CP.background_color);ue.BACKGROUND_ORIGIN=ue.reg(ue.CP.background_origin);ue.BACKGROUND_REPEAT=ue.reg(ue.CP.background_repeat);ue.BORDER=ue.reg(ue.CP.border);ue.BORDER_RADIUS=ue.reg(ue.CP.border_radius);ue.BORDER_SPACING=ue.reg(ue.CP.border_spacing);ue.BORDER_TOP_COLOR=ue.reg(ue.CP.border_top_color);ue.BORDER_TOP_STYLE=ue.reg(ue.CP.border_top_style);ue.BORDER_WIDTH=ue.reg(ue.CP.border_width);ue.COLOR=ue.reg(ue.CP.color);ue.CURSOR=ue.reg(ue.CP.cursor);ue.DISPLAY=ue.reg(ue.CP.display);ue.DISPLAY_OUTSIDE=ue.reg(ue.CP.display_outside);ue.ELEVATION=ue.reg(ue.CP.elevation);ue.FONT_FAMILY=ue.reg(ue.CP.font_family);ue.HEIGHT=ue.reg(ue.CP.height);ue.LETTER_SPACING=ue.reg(ue.CP.letter_spacing);ue.LIST_STYLE_IMAGE=ue.reg(ue.CP.list_style_image);ue.MARGIN_RIGHT=ue.reg(ue.CP.margin_right);ue.MAX_HEIGHT=ue.reg(ue.CP.max_height);ue.MIN_HEIGHT=ue.reg(ue.CP.min_height);ue.OPACITY=ue.reg(ue.CP.opacity);ue.OUTLINE_COLOR=ue.reg(ue.CP.outline_color);ue.OUTLINE_WIDTH=ue.reg(ue.CP.outline_width);ue.PADDING=ue.reg(ue.CP.padding);ue.PADDING_TOP=ue.reg(ue.CP.padding_top);ue.PITCH_RANGE=ue.reg(ue.CP.pitch_range);ue.RIGHT=ue.reg(ue.CP.right);ue.STRESS=ue.reg(ue.CP.stress);ue.TEXT_INDENT=ue.reg(ue.CP.text_indent);ue.TEXT_SHADOW=ue.reg(ue.CP.text_shadow);ue.VOLUME=ue.reg(ue.CP.volume);ue.WORD_WRAP=ue.reg(ue.CP.word_wrap);ue.ZOOM=ue.reg(ue.CP.zoom);ue.BACKFACE_VISIBILITY=ue.reg(ue.CP.backface_visibility);ue.BACKGROUND_CLIP=ue.reg(ue.CP.background_clip);ue.BACKGROUND_POSITION=ue.reg(ue.CP.background_position);ue.BORDER_BOTTOM_COLOR=ue.reg(ue.CP.border_bottom_color);ue.BORDER_BOTTOM_STYLE=ue.reg(ue.CP.border_bottom_style);ue.BORDER_COLOR=ue.reg(ue.CP.border_color);ue.BORDER_LEFT_COLOR=ue.reg(ue.CP.border_left_color);ue.BORDER_RIGHT_COLOR=ue.reg(ue.CP.border_right_color);ue.BORDER_STYLE=ue.reg(ue.CP.border_style);ue.BORDER_TOP_LEFT_RADIUS=ue.reg(ue.CP.border_top_left_radius);ue.BORDER_TOP_WIDTH=ue.reg(ue.CP.border_top_width);ue.BOX_SHADOW=ue.reg(ue.CP.box_shadow);ue.CLIP=ue.reg(ue.CP.clip);ue.DISPLAY_INSIDE=ue.reg(ue.CP.display_inside);ue.FONT_SIZE=ue.reg(ue.CP.font_size);ue.LINE_HEIGHT=ue.reg(ue.CP.line_height);ue.MARGIN_LEFT=ue.reg(ue.CP.margin_left);ue.MAX_WIDTH=ue.reg(ue.CP.max_width);ue.OUTLINE_STYLE=ue.reg(ue.CP.outline_style);ue.PADDING_BOTTOM=ue.reg(ue.CP.padding_bottom);ue.PADDING_RIGHT=ue.reg(ue.CP.padding_right);ue.PERSPECTIVE=ue.reg(ue.CP.perspective);ue.RICHNESS=ue.reg(ue.CP.richness);ue.TEXT_OVERFLOW=ue.reg(ue.CP.text_overflow);ue.TOP=ue.reg(ue.CP.top);ue.WIDTH=ue.reg(ue.CP.width);ue.Z_INDEX=ue.reg(ue.CP.z_index);ue.BACKGROUND=ue.reg(ue.CP.background);ue.BACKGROUND_SIZE=ue.reg(ue.CP.background_size);ue.BORDER_BOTTOM_LEFT_RADIUS=ue.reg(ue.CP.border_bottom_left_radius);ue.BORDER_BOTTOM_WIDTH=ue.reg(ue.CP.border_bottom_width);ue.BORDER_LEFT_STYLE=ue.reg(ue.CP.border_left_style);ue.BORDER_RIGHT_STYLE=ue.reg(ue.CP.border_right_style);ue.BORDER_TOP=ue.reg(ue.CP.border_top);ue.BOTTOM=ue.reg(ue.CP.bottom);ue.LIST_STYLE=ue.reg(ue.CP.list_style);ue.MARGIN_TOP=ue.reg(ue.CP.margin_top);ue.OUTLINE=ue.reg(ue.CP.outline);ue.OVERFLOW_Y=ue.reg(ue.CP.overflow_y);ue.PITCH=ue.reg(ue.CP.pitch);ue.VERTICAL_ALIGN=ue.reg(ue.CP.vertical_align);ue.WORD_SPACING=ue.reg(ue.CP.word_spacing);ue.BACKGROUND_IMAGE=ue.reg(ue.CP.background_image);ue.BORDER_BOTTOM_RIGHT_RADIUS=ue.reg(ue.CP.border_bottom_right_radius);ue.BORDER_LEFT_WIDTH=ue.reg(ue.CP.border_left_width);ue.BORDER_RIGHT_WIDTH=ue.reg(ue.CP.border_right_width);ue.LEFT=ue.reg(ue.CP.left);ue.MARGIN_BOTTOM=ue.reg(ue.CP.margin_bottom);ue.PAUSE_AFTER=ue.reg(ue.CP.pause_after);ue.SPEECH_RATE=ue.reg(ue.CP.speech_rate);ue.TRANSITION_DURATION=ue.reg(ue.CP.transition_duration);ue.BORDER_BOTTOM=ue.reg(ue.CP.border_bottom);ue.BORDER_RIGHT=ue.reg(ue.CP.border_right);ue.MARGIN=ue.reg(ue.CP.margin);ue.PADDING_LEFT=ue.reg(ue.CP.padding_left);ue.BORDER_LEFT=ue.reg(ue.CP.border_left);ue.FONT=ue.reg(ue.CP.font);ue.QUOTES=ue.reg(ue.CP.quotes);ue.BORDER_TOP_RIGHT_RADIUS=ue.reg(ue.CP.border_top_right_radius);ue.MIN_WIDTH=ue.reg(ue.CP.min_width);ue.ALIGN_CONTENT=ue.reg(ue.CP.align_content);ue.ALIGN_ITEMS=ue.reg(ue.CP.align_items);ue.ALIGN_SELF=ue.reg(ue.CP.align_self);ue.FLEX=ue.reg(ue.B.flex);ue.FLEX_BASIS=ue.reg(ue.CP.flex_basis);ue.FLEX_DIRECTION=ue.reg(ue.AP.flex_direction);ue.FLEX_GROW=ue.reg(ue.CP.flex_grow);ue.FLEX_SHRINK=ue.reg(ue.CP.flex_shrink);ue.FLEX_WRAP=ue.reg(ue.AP.flex_wrap);ue.JUSTIFY_CONTENT=ue.reg(ue.AP.justify_content);ue.JUSTIFY_ITEMS=ue.reg(ue.AP.justify_items);ue.JUSTIFY_SELF=ue.reg(ue.AP.justify_self);ue.ORDER=ue.reg(ue.CP.order);ue.GRID=ue.reg(ue.CP.grid);ue.GRID_AREA=ue.reg(ue.CP.grid_area);ue.GRID_AUTO_COLUMNS=ue.reg(ue.CP.grid_auto_columns);ue.GRID_AUTO_FLOW=ue.reg(ue.AP.grid_auto_flow);ue.GRID_AUTO_ROWS=ue.reg(ue.CP.grid_auto_rows);ue.GRID_COLUMN=ue.reg(ue.CP.grid_column);ue.GRID_COLUMN_END=ue.reg(ue.CP.grid_column_end);ue.GRID_COLUMN_GAP=ue.reg(ue.CP.grid_column_gap);ue.GRID_COLUMN_START=ue.reg(ue.CP.grid_column_start);ue.GRID_GAP=ue.reg(ue.CP.grid_gap);ue.GRID_ROW=ue.reg(ue.CP.grid_row);ue.GRID_ROW_END=ue.reg(ue.CP.grid_row_end);ue.GRID_ROW_GAP=ue.reg(ue.CP.grid_row_gap);ue.GRID_ROW_START=ue.reg(ue.CP.grid_row_start);ue.GRID_TEMPLATE=ue.reg(ue.CP.grid_template);ue.GRID_TEMPLATE_AREAS=ue.reg(ue.CP.grid_template_areas);ue.GRID_TEMPLATE_COLUMNS=ue.reg(ue.CP.grid_template_columns);ue.GRID_TEMPLATE_ROWS=ue.reg(ue.CP.grid_template_rows);ue.GAP=ue.reg(ue.CP.gap);ue.ROW_GAP=ue.reg(ue.CP.row_gap);ue.COLUMN_GAP=ue.reg(ue.CP.column_gap);ue.PLACE_CONTENT=ue.reg(ue.AP.place_content);ue.PLACE_ITEMS=ue.reg(ue.AP.place_items);ue.PLACE_SELF=ue.reg(ue.AP.place_self);class pe{constructor(){this._autolink=true;this._allowNamedProperties=false;this._generateOptions=()=>{const e=Array.isArray(this._customAllowedSchemes)?this._customAllowedSchemes:[...he().defaults.allowedSchemes];return{allowedTags:["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blockquote","br","button","canvas","caption","center","cite","code","col","colgroup","colspan","command","data","datalist","dd","del","details","dfn","dir","div","dl","dt","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","i","img","input","ins","kbd","label","legend","li","map","mark","menu","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rowspan","s","samp","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"],allowedAttributes:{"*":["class","data-jupyter-id","dir","draggable","hidden","id","inert","itemprop","itemref","itemscope","lang","spellcheck","style","title","translate"],a:["accesskey","coords","href","hreflang",...this._allowNamedProperties?["name"]:[],"rel","shape","tabindex","target","type"],area:["accesskey","alt","coords","href","nohref","shape","tabindex"],audio:["autoplay","controls","loop","mediagroup","muted","preload","src"],bdo:["dir"],blockquote:["cite"],br:["clear"],button:["accesskey","data-commandlinker-args","data-commandlinker-command","disabled",...this._allowNamedProperties?["name"]:[],"tabindex","type","value"],canvas:["height","width"],caption:["align"],col:["align","char","charoff","span","valign","width"],colgroup:["align","char","charoff","span","valign","width"],command:["checked","command","disabled","icon","label","radiogroup","type"],data:["value"],del:["cite","datetime"],details:["open"],dir:["compact"],div:["align"],dl:["compact"],fieldset:["disabled"],font:["color","face","size"],form:["accept","autocomplete","enctype","method",...this._allowNamedProperties?["name"]:[],"novalidate"],h1:["align"],h2:["align"],h3:["align"],h4:["align"],h5:["align"],h6:["align"],hr:["align","noshade","size","width"],iframe:["align","frameborder","height","marginheight","marginwidth","width"],img:["align","alt","border","height","hspace","ismap",...this._allowNamedProperties?["name"]:[],"src","usemap","vspace","width"],input:["accept","accesskey","align","alt","autocomplete","checked","disabled","inputmode","ismap","list","max","maxlength","min","multiple",...this._allowNamedProperties?["name"]:[],"placeholder","readonly","required","size","src","step","tabindex","type","usemap","value"],ins:["cite","datetime"],label:["accesskey","for"],legend:["accesskey","align"],li:["type","value"],map:this._allowNamedProperties?["name"]:[],menu:["compact","label","type"],meter:["high","low","max","min","value"],ol:["compact","reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["for",...this._allowNamedProperties?["name"]:[]],p:["align"],pre:["width"],progress:["max","min","value"],q:["cite"],select:["autocomplete","disabled","multiple",...this._allowNamedProperties?["name"]:[],"required","size","tabindex"],source:["type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],tbody:["align","char","charoff","valign"],td:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],textarea:["accesskey","autocomplete","cols","disabled","inputmode",...this._allowNamedProperties?["name"]:[],"placeholder","readonly","required","rows","tabindex","wrap"],tfoot:["align","char","charoff","valign"],th:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],thead:["align","char","charoff","valign"],tr:["align","bgcolor","char","charoff","valign"],track:["default","kind","label","srclang"],ul:["compact","type"],video:["autoplay","controls","height","loop","mediagroup","muted","poster","preload","src","width"]},allowedStyles:{"*":{"backface-visibility":[ue.BACKFACE_VISIBILITY],background:[ue.BACKGROUND],"background-attachment":[ue.BACKGROUND_ATTACHMENT],"background-clip":[ue.BACKGROUND_CLIP],"background-color":[ue.BACKGROUND_COLOR],"background-image":[ue.BACKGROUND_IMAGE],"background-origin":[ue.BACKGROUND_ORIGIN],"background-position":[ue.BACKGROUND_POSITION],"background-repeat":[ue.BACKGROUND_REPEAT],"background-size":[ue.BACKGROUND_SIZE],border:[ue.BORDER],"border-bottom":[ue.BORDER_BOTTOM],"border-bottom-color":[ue.BORDER_BOTTOM_COLOR],"border-bottom-left-radius":[ue.BORDER_BOTTOM_LEFT_RADIUS],"border-bottom-right-radius":[ue.BORDER_BOTTOM_RIGHT_RADIUS],"border-bottom-style":[ue.BORDER_BOTTOM_STYLE],"border-bottom-width":[ue.BORDER_BOTTOM_WIDTH],"border-collapse":[ue.BORDER_COLLAPSE],"border-color":[ue.BORDER_COLOR],"border-left":[ue.BORDER_LEFT],"border-left-color":[ue.BORDER_LEFT_COLOR],"border-left-style":[ue.BORDER_LEFT_STYLE],"border-left-width":[ue.BORDER_LEFT_WIDTH],"border-radius":[ue.BORDER_RADIUS],"border-right":[ue.BORDER_RIGHT],"border-right-color":[ue.BORDER_RIGHT_COLOR],"border-right-style":[ue.BORDER_RIGHT_STYLE],"border-right-width":[ue.BORDER_RIGHT_WIDTH],"border-spacing":[ue.BORDER_SPACING],"border-style":[ue.BORDER_STYLE],"border-top":[ue.BORDER_TOP],"border-top-color":[ue.BORDER_TOP_COLOR],"border-top-left-radius":[ue.BORDER_TOP_LEFT_RADIUS],"border-top-right-radius":[ue.BORDER_TOP_RIGHT_RADIUS],"border-top-style":[ue.BORDER_TOP_STYLE],"border-top-width":[ue.BORDER_TOP_WIDTH],"border-width":[ue.BORDER_WIDTH],bottom:[ue.BOTTOM],box:[ue.BOX],"box-shadow":[ue.BOX_SHADOW],"box-sizing":[ue.BOX_SIZING],"caption-side":[ue.CAPTION_SIDE],clear:[ue.CLEAR],clip:[ue.CLIP],color:[ue.COLOR],cursor:[ue.CURSOR],direction:[ue.DIRECTION],display:[ue.DISPLAY],"display-inside":[ue.DISPLAY_INSIDE],"display-outside":[ue.DISPLAY_OUTSIDE],elevation:[ue.ELEVATION],"empty-cells":[ue.EMPTY_CELLS],float:[ue.FLOAT],font:[ue.FONT],"font-family":[ue.FONT_FAMILY],"font-size":[ue.FONT_SIZE],"font-stretch":[ue.FONT_STRETCH],"font-style":[ue.FONT_STYLE],"font-variant":[ue.FONT_VARIANT],"font-weight":[ue.FONT_WEIGHT],height:[ue.HEIGHT],left:[ue.LEFT],"letter-spacing":[ue.LETTER_SPACING],"line-height":[ue.LINE_HEIGHT],"list-style":[ue.LIST_STYLE],"list-style-image":[ue.LIST_STYLE_IMAGE],"list-style-position":[ue.LIST_STYLE_POSITION],"list-style-type":[ue.LIST_STYLE_TYPE],margin:[ue.MARGIN],"margin-bottom":[ue.MARGIN_BOTTOM],"margin-left":[ue.MARGIN_LEFT],"margin-right":[ue.MARGIN_RIGHT],"margin-top":[ue.MARGIN_TOP],"max-height":[ue.MAX_HEIGHT],"max-width":[ue.MAX_WIDTH],"min-height":[ue.MIN_HEIGHT],"min-width":[ue.MIN_WIDTH],opacity:[ue.OPACITY],outline:[ue.OUTLINE],"outline-color":[ue.OUTLINE_COLOR],"outline-style":[ue.OUTLINE_STYLE],"outline-width":[ue.OUTLINE_WIDTH],overflow:[ue.OVERFLOW],"overflow-wrap":[ue.OVERFLOW_WRAP],"overflow-x":[ue.OVERFLOW_X],"overflow-y":[ue.OVERFLOW_Y],padding:[ue.PADDING],"padding-bottom":[ue.PADDING_BOTTOM],"padding-left":[ue.PADDING_LEFT],"padding-right":[ue.PADDING_RIGHT],"padding-top":[ue.PADDING_TOP],"page-break-after":[ue.PAGE_BREAK_AFTER],"page-break-before":[ue.PAGE_BREAK_BEFORE],"page-break-inside":[ue.PAGE_BREAK_INSIDE],"pause-after":[ue.PAUSE_AFTER],perspective:[ue.PERSPECTIVE],pitch:[ue.PITCH],"pitch-range":[ue.PITCH_RANGE],position:[ue.POSITION],quotes:[ue.QUOTES],resize:[ue.RESIZE],richness:[ue.RICHNESS],right:[ue.RIGHT],speak:[ue.SPEAK],"speak-header":[ue.SPEAK_HEADER],"speak-numeral":[ue.SPEAK_NUMERAL],"speak-punctuation":[ue.SPEAK_PUNCTUATION],"speech-rate":[ue.SPEECH_RATE],stress:[ue.STRESS],"table-layout":[ue.TABLE_LAYOUT],"text-align":[ue.TEXT_ALIGN],"text-decoration":[ue.TEXT_DECORATION],"text-indent":[ue.TEXT_INDENT],"text-overflow":[ue.TEXT_OVERFLOW],"text-shadow":[ue.TEXT_SHADOW],"text-transform":[ue.TEXT_TRANSFORM],"text-wrap":[ue.TEXT_WRAP],top:[ue.TOP],"unicode-bidi":[ue.UNICODE_BIDI],"vertical-align":[ue.VERTICAL_ALIGN],visibility:[ue.VISIBILITY],volume:[ue.VOLUME],"white-space":[ue.WHITE_SPACE],width:[ue.WIDTH],"word-break":[ue.WORD_BREAK],"word-spacing":[ue.WORD_SPACING],"word-wrap":[ue.WORD_WRAP],"z-index":[ue.Z_INDEX],zoom:[ue.ZOOM],"align-content":[ue.ALIGN_CONTENT],"align-items":[ue.ALIGN_ITEMS],"align-self":[ue.ALIGN_SELF],flex:[ue.FLEX],"flex-basis":[ue.FLEX_BASIS],"flex-direction":[ue.FLEX_DIRECTION],"flex-grow":[ue.FLEX_GROW],"flex-shrink":[ue.FLEX_SHRINK],"flex-wrap":[ue.FLEX_WRAP],grid:[ue.GRID],"grid-area":[ue.GRID_AREA],"grid-auto-columns":[ue.GRID_AUTO_COLUMNS],"grid-auto-flow":[ue.GRID_AUTO_FLOW],"grid-auto-rows":[ue.GRID_AUTO_ROWS],"grid-column":[ue.GRID_COLUMN],"grid-column-end":[ue.GRID_COLUMN_END],"grid-column-gap":[ue.GRID_COLUMN_GAP],"grid-column-start":[ue.GRID_COLUMN_START],"grid-gap":[ue.GRID_GAP],"grid-row":[ue.GRID_ROW],"grid-row-end":[ue.GRID_ROW_END],"grid-row-gap":[ue.GRID_ROW_GAP],"grid-row-start":[ue.GRID_ROW_START],"grid-template":[ue.GRID_TEMPLATE],"grid-template-areas":[ue.GRID_TEMPLATE_AREAS],"grid-template-columns":[ue.GRID_TEMPLATE_COLUMNS],"grid-template-rows":[ue.GRID_TEMPLATE_ROWS],gap:[ue.GAP],"row-gap":[ue.ROW_GAP],"column-gap":[ue.COLUMN_GAP],"justify-content":[ue.JUSTIFY_CONTENT],"justify-items":[ue.JUSTIFY_ITEMS],"justify-self":[ue.JUSTIFY_SELF],order:[ue.ORDER],"place-content":[ue.PLACE_CONTENT],"place-items":[ue.PLACE_ITEMS],"place-self":[ue.PLACE_SELF]}},transformTags:{a:he().simpleTransform("a",{rel:"nofollow"}),input:he().simpleTransform("input",{disabled:"disabled"}),...this._allowNamedProperties?{}:{"*":function(e,t){if(t.id!==undefined){t["data-jupyter-id"]=t.id;delete t.id}return{tagName:e,attribs:{...t}}}}},allowedSchemes:e,allowedSchemesByTag:{img:[...e,"attachment"]},allowedSchemesAppliedToAttributes:["href","cite"]}};this._options=this._generateOptions()}sanitize(e,t){return he()(e,{...this._options,...t||{}})}getAutolink(){return this._autolink}get allowNamedProperties(){return this._allowNamedProperties}setAllowedSchemes(e){this._customAllowedSchemes=[...e];this._options=this._generateOptions()}setAutolink(e){this._autolink=e}setAllowNamedProperties(e){this._allowNamedProperties=e;this._options=this._generateOptions()}}class me{constructor(){this._commands=new Array}get ids(){return this._commands.map((e=>e.id))}add(e){if(this._commands.map((e=>e.id)).includes(e.id)){throw Error(`Command ${e.id} is already defined.`)}this._commands.push({isEnabled:()=>true,rank:me.DEFAULT_RANK,...e})}getActiveCommandId(e){var t;const n=this._commands.filter((t=>t.isEnabled(e))).sort(((e,t)=>{const n=e.rank-t.rank;return n||(e.idt.id===e));if(t>=0){this._commands.splice(t,1)}}}me.DEFAULT_RANK=500;me.WIDGET="semanticWidget";var ge=n(90044);const fe=75;const ve=20;class _e{constructor(e){this._current=null;this._links=[];this._overrides={};this._overrideProps={};this._outstanding=null;this._pending=0;this._requests={};this._themes={};this._themeChanged=new h.Signal(this);const{host:t,key:n,splash:i,url:o}=e;this.translator=e.translator||s.nullTranslator;this._trans=this.translator.load("jupyterlab");const r=e.settings;this._base=o;this._host=t;this._splash=i||null;void r.load(n).then((e=>{this._settings=e;this._initOverrideProps();this._settings.changed.connect(this._loadSettings,this);this._loadSettings()}))}get theme(){return this._current}get preferredLightTheme(){return this._settings.composite["preferred-light-theme"]}get preferredDarkTheme(){return this._settings.composite["preferred-dark-theme"]}get preferredTheme(){if(!this.isToggledAdaptiveTheme()){return this.theme}if(this.isSystemColorSchemeDark()){return this.preferredDarkTheme}return this.preferredLightTheme}get themes(){return Object.keys(this._themes)}get lightThemes(){return Object.entries(this._themes).filter((([e,t])=>t.isLight)).map((([e,t])=>e))}get darkThemes(){return Object.entries(this._themes).filter((([e,t])=>!t.isLight)).map((([e,t])=>e))}get themeChanged(){return this._themeChanged}isSystemColorSchemeDark(){return window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}getCSS(e){var t;return(t=this._overrides[e])!==null&&t!==void 0?t:getComputedStyle(document.documentElement).getPropertyValue(`--jp-${e}`)}loadCSS(e){const t=this._base;const n=l.URLExt.isLocal(e)?l.URLExt.join(t,e):e;const i=this._links;return new Promise(((e,t)=>{const s=document.createElement("link");s.setAttribute("rel","stylesheet");s.setAttribute("type","text/css");s.setAttribute("href",n);s.addEventListener("load",(()=>{e(undefined)}));s.addEventListener("error",(()=>{t(`Stylesheet failed to load: ${n}`)}));document.body.appendChild(s);i.push(s);this.loadCSSOverrides()}))}loadCSSOverrides(){var e;const t=(e=this._settings.user["overrides"])!==null&&e!==void 0?e:{};Object.keys({...this._overrides,...t}).forEach((e=>{const n=t[e];if(n&&this.validateCSS(e,n)){document.documentElement.style.setProperty(`--jp-${e}`,n)}else{delete t[e];document.documentElement.style.removeProperty(`--jp-${e}`)}}));this._overrides=t}validateCSS(e,t){const n=this._overrideProps[e];if(!n){console.warn("CSS validation failed: could not find property corresponding to key.\n"+`key: '${e}', val: '${t}'`);return false}if(CSS.supports(n,t)){return true}else{console.warn("CSS validation failed: invalid value.\n"+`key: '${e}', val: '${t}', prop: '${n}'`);return false}}register(e){const{name:t}=e;const n=this._themes;if(n[t]){throw new Error(`Theme already registered for ${t}`)}n[t]=e;return new ge.DisposableDelegate((()=>{delete n[t]}))}setCSSOverride(e,t){return this._settings.set("overrides",{...this._overrides,[e]:t})}setTheme(e){return this._settings.set("theme",e)}setPreferredLightTheme(e){return this._settings.set("preferred-light-theme",e)}setPreferredDarkTheme(e){return this._settings.set("preferred-dark-theme",e)}isLight(e){return this._themes[e].isLight}incrFontSize(e){return this._incrFontSize(e,true)}decrFontSize(e){return this._incrFontSize(e,false)}themeScrollbars(e){return!!this._settings.composite["theme-scrollbars"]&&!!this._themes[e].themeScrollbars}isToggledThemeScrollbars(){return!!this._settings.composite["theme-scrollbars"]}toggleThemeScrollbars(){return this._settings.set("theme-scrollbars",!this._settings.composite["theme-scrollbars"])}isToggledAdaptiveTheme(){return!!this._settings.composite["adaptive-theme"]}toggleAdaptiveTheme(){return this._settings.set("adaptive-theme",!this._settings.composite["adaptive-theme"])}getDisplayName(e){var t,n;return(n=(t=this._themes[e])===null||t===void 0?void 0:t.displayName)!==null&&n!==void 0?n:e}_incrFontSize(e,t=true){var n;const i=((n=this.getCSS(e))!==null&&n!==void 0?n:"13px").split(/([a-zA-Z]+)/);const s=(t?1:-1)*(i[1]==="em"?.1:1);return this.setCSSOverride(e,`${Number(i[0])+s}${i[1]}`)}_initOverrideProps(){const e=this._settings.schema.definitions;const t=e.cssOverrides.properties;Object.keys(t).forEach((e=>{let n;switch(e){case"code-font-size":case"content-font-size1":case"ui-font-size1":n="font-size";break;default:n=t[e].description;break}this._overrideProps[e]=n}))}_loadSettings(){const e=this._outstanding;const t=this._pending;const n=this._requests;if(t){window.clearTimeout(t);this._pending=0}const i=this._settings;const s=this._themes;let o=i.composite["theme"];if(this.isToggledAdaptiveTheme()){if(this.isSystemColorSchemeDark()){o=this.preferredDarkTheme}else{o=this.preferredLightTheme}}if(e){e.then((()=>{this._loadSettings()})).catch((()=>{this._loadSettings()}));this._outstanding=null;return}n[o]=n[o]?n[o]+1:1;if(s[o]){this._outstanding=this._loadTheme(o);delete n[o];return}if(n[o]>ve){const e=i.default("theme");delete n[o];if(!s[e]){this._onError(this._trans.__("Neither theme %1 nor default %2 loaded.",o,e));return}console.warn(`Could not load theme ${o}, using default ${e}.`);this._outstanding=this._loadTheme(e);return}this._pending=window.setTimeout((()=>{this._loadSettings()}),fe)}_loadTheme(e){var t;const n=this._current;const i=this._links;const s=this._themes;const o=this._splash?this._splash.show(s[e].isLight):new ge.DisposableDelegate((()=>undefined));i.forEach((e=>{if(e.parentElement){e.parentElement.removeChild(e)}}));i.length=0;const r=(t=this._settings.schema.properties)===null||t===void 0?void 0:t.theme;if(r){r.enum=Object.keys(s).map((e=>{var t;return(t=s[e].displayName)!==null&&t!==void 0?t:e}))}const a=n?s[n].unload():Promise.resolve();return Promise.all([a,s[e].load()]).then((()=>{this._current=e;this._themeChanged.emit({name:"theme",oldValue:n,newValue:e});this._host.hide();requestAnimationFrame((()=>{this._host.show();be.fitAll(this._host);o.dispose()}))})).catch((e=>{this._onError(e);o.dispose()}))}_onError(e){void g({title:this._trans.__("Error Loading Theme"),body:String(e),buttons:[v.okButton({label:this._trans.__("OK")})]})}}var be;(function(e){function t(e){for(const n of e.children()){t(n)}e.fit()}e.fitAll=t})(be||(be={}));const ye=new c.Token("@jupyterlab/apputils:ICommandPalette",`A service for the application command palette\n in the left panel. Use this to add commands to the palette.`);const we=new c.Token("@jupyterlab/apputils:IKernelStatusModel","A service to register kernel session provider to the kernel status indicator.");const Ce=new c.Token("@jupyterlab/apputils:ILicensesClient","A service for fetching licenses.");const xe=new c.Token("@jupyterlab/apputils:ISessionContextDialogs","A service for handling the session dialogs.");const Se=new c.Token("@jupyterlab/apputils:IThemeManager","A service for the theme manager for the application. This is used primarily in theme extensions to register new themes.");const je=new c.Token("@jupyterlab/apputils:ISanitizer","A service for sanitizing HTML strings.");const ke=new c.Token("@jupyterlab/apputils:ISplashScreen",`A service for the splash screen for the application.\n Use this if you want to show the splash screen for your own purposes.`);const Ie=new c.Token("@jupyterlab/apputils:IWindowResolver",`A service for a window resolver for the\n application. JupyterLab workspaces are given a name, which are determined using\n the window resolver. Require this if you want to use the name of the current workspace.`);const Te=new c.Token("@jupyterlab/apputils:IToolbarWidgetRegistry",`A registry for toolbar widgets. Require this\n if you want to build the toolbar dynamically from a data definition (stored in settings for example).`);class Ee{constructor(e){this._widgets=new Map;this._factoryAdded=new h.Signal(this);this._defaultFactory=e.defaultFactory}get defaultFactory(){return this._defaultFactory}set defaultFactory(e){this._defaultFactory=e}get factoryAdded(){return this._factoryAdded}createWidget(e,t,n){var i;const s=(i=this._widgets.get(e))===null||i===void 0?void 0:i.get(n.name);return s?s(t):this._defaultFactory(e,t,n)}addFactory(e,t,n){let i=this._widgets.get(e);const s=i===null||i===void 0?void 0:i.get(t);if(!i){i=new Map;this._widgets.set(e,i)}i.set(t,n);this._factoryAdded.emit(t);return s}registerFactory(e,t,n){return this.addFactory(e,t,n)}}function Me(e){return(t,n,s)=>{var r,a;switch((r=s.type)!==null&&r!==void 0?r:"command"){case"command":{const{command:t,args:o,label:r,caption:l,icon:d}=s;const c=t!==null&&t!==void 0?t:"";const h={toolbar:true,...o};const u=d?i.LabIcon.resolve({icon:d}):undefined;const p=n.toolbar;const m=(u!==null&&u!==void 0?u:e.icon(c,h))?r!==null&&r!==void 0?r:"":r;return new i.CommandToolbarButton({commands:e,id:c,args:h,icon:u,label:m,caption:l,noFocusOnClick:(a=p===null||p===void 0?void 0:p.noFocusOnClick)!==null&&a!==void 0?a:false})}case"spacer":return i.Toolbar.createSpacerItem();default:return new o.Widget}}}var De=n(23230);var Ae=n(40065);const Pe=50;const Le="jupyter.lab.toolbars";async function Re(e){const t=await g({title:e.__("Information"),body:e.__("Toolbar customization has changed. You will need to reload JupyterLab to see the changes."),buttons:[v.cancelButton(),v.okButton({label:e.__("Reload")})]});if(t.button.accept){location.reload()}}async function Ne(e,t,n,i,s,o="toolbar"){var r;const a=s.load("jupyterlab");let l=null;let d={};let h=true;try{function g(e){var s,r;d={};const a=Object.keys(t.plugins).filter((e=>e!==i)).map((e=>{var i,s;const o=(s=((i=t.plugins[e].schema[Le])!==null&&i!==void 0?i:{})[n])!==null&&s!==void 0?s:[];d[e]=o;return o})).concat([(r=((s=e[Le])!==null&&s!==void 0?s:{})[n])!==null&&r!==void 0?r:[]]).reduceRight(((e,t)=>Ae.SettingRegistry.reconcileToolbarItems(e,t,true)),[]);e.properties[o].default=Ae.SettingRegistry.reconcileToolbarItems(a,e.properties[o].default,true).sort(((e,t)=>{var n,i;return((n=e.rank)!==null&&n!==void 0?n:Pe)-((i=t.rank)!==null&&i!==void 0?i:Pe)}))}t.transform(i,{compose:e=>{var t,n,i,s,r;if(!l){l=c.JSONExt.deepCopy(e.schema);g(l)}const a=(i=((n=((t=l.properties)!==null&&t!==void 0?t:{})[o])!==null&&n!==void 0?n:{}).default)!==null&&i!==void 0?i:[];const d=e.data.user;const h=e.data.composite;d[o]=(s=e.data.user[o])!==null&&s!==void 0?s:[];h[o]=((r=Ae.SettingRegistry.reconcileToolbarItems(a,d[o],false))!==null&&r!==void 0?r:[]).sort(((e,t)=>{var n,i;return((n=e.rank)!==null&&n!==void 0?n:Pe)-((i=t.rank)!==null&&i!==void 0?i:Pe)}));e.data={composite:h,user:d};return e},fetch:e=>{if(!l){l=c.JSONExt.deepCopy(e.schema);g(l)}return{data:e.data,id:e.id,raw:e.raw,schema:l,version:e.version}}})}catch(m){if(m.name==="TransformError"){h=false}else{throw m}}const u=await t.load(i);u.changed.connect((()=>{var e;const t=(e=u.composite[o])!==null&&e!==void 0?e:[];p(t)}));const p=t=>{e.clear();e.pushAll(t.filter((e=>!e.disabled)))};p((r=u.composite[o])!==null&&r!==void 0?r:[]);if(!h){return}t.pluginChanged.connect((async(e,s)=>{var o,r,h;if(s===i){return}const u=(o=d[s])!==null&&o!==void 0?o:[];const p=(h=((r=t.plugins[s].schema[Le])!==null&&r!==void 0?r:{})[n])!==null&&h!==void 0?h:[];if(!c.JSONExt.deepEqual(u,p)){if(d[s]){await Re(a)}else{if(p.length>0){l=null;const e=t.plugins[i].schema;e.properties.toolbar.default=[];await t.load(i,true)}}}}))}function Be(e,t,n,i,s,o="toolbar"){const r=new De.ObservableList({itemCmp:(e,t)=>c.JSONExt.deepEqual(e,t)});Ne(r,t,n,i,s,o).catch((e=>{console.error(`Failed to load toolbar items for factory ${n} from ${i}`,e)}));return t=>{const i=(i,s)=>{switch(s.type){case"move":o.move(s.oldIndex,s.newIndex);break;case"add":s.newValues.forEach((i=>o.push({name:i.name,widget:e.createWidget(n,t,i)})));break;case"remove":s.oldValues.forEach((()=>o.remove(s.oldIndex)));break;case"set":s.newValues.forEach((i=>o.set(s.newIndex,{name:i.name,widget:e.createWidget(n,t,i)})));break;case"clear":s.oldValues.forEach((()=>o.remove(s.oldIndex)));break}};const s=(i,s)=>{const a=Array.from(r).findIndex((e=>e.name===s));if(a>=0){o.set(a,{name:s,widget:e.createWidget(n,t,r.get(a))})}};const o=new De.ObservableList({values:Array.from(r).map((i=>({name:i.name,widget:e.createWidget(n,t,i)})))});e.factoryAdded.connect(s);r.changed.connect(i);t.disposed.connect((()=>{r.changed.disconnect(i);e.factoryAdded.disconnect(s)}));return o}}function Oe(e,t,n){var i;if(!e.toolbar&&!n){console.log(`Widget ${e.id} has no 'toolbar' and no explicit toolbar was provided.`);return}const s=(i=e.toolbar)!==null&&i!==void 0?i:n;const o=t(e);if(Array.isArray(o)){o.forEach((({name:e,widget:t})=>{s.addItem(e,t)}))}else{const t=(e,t)=>{switch(t.type){case"add":t.newValues.forEach(((e,n)=>{s.insertItem(t.newIndex+n,e.name,e.widget)}));break;case"move":t.oldValues.forEach((e=>{e.widget.parent=null}));t.newValues.forEach(((e,n)=>{s.insertItem(t.newIndex+n,e.name,e.widget)}));break;case"remove":t.oldValues.forEach((e=>{e.widget.parent=null}));break;case"set":t.oldValues.forEach((e=>{e.widget.parent=null}));t.newValues.forEach(((e,n)=>{const i=(0,d.findIndex)(s.names(),(t=>e.name===t));if(i>=0){Array.from(s.children())[i].parent=null}s.insertItem(t.newIndex+n,e.name,e.widget)}));break;case"clear":Array.from(s.children()).forEach((e=>{e.parent=null}));break}};t(o,{newIndex:0,newValues:Array.from(o),oldIndex:0,oldValues:[],type:"add"});o.changed.connect(t);e.disposed.connect((()=>{o.changed.disconnect(t)}))}}class Fe{get name(){return this._name}resolve(e){return ze.resolve(e).then((e=>{this._name=e}))}}var ze;(function(e){const t="@jupyterlab/statedb:StateDB";const n=`${t}:beacon`;const i=Math.floor(200+Math.random()*300);const s=`${t}:window`;let o=null;let r=null;const a=new c.PromiseDelegate;const l={};let d=null;let h=false;function u(){window.addEventListener("storage",(e=>{const{key:t,newValue:i}=e;if(i===null){return}if(t===n&&i!==o&&r!==null){p(h?d:r);return}if(h||t!==s){return}const a=i.replace(/\-\d+$/,"");l[a]=null;if(!r||r in l){m()}}))}function p(e){if(e===null){return}const{localStorage:t}=window;t.setItem(s,`${e}-${(new Date).getTime()}`)}function m(){h=true;o=null;a.reject(`Window name candidate "${r}" already exists`)}function g(e){if(h){return a.promise}r=e;if(r in l){m();return a.promise}const{localStorage:t,setTimeout:s}=window;s((()=>{if(h){return}if(!r||r in l){return m()}h=true;o=null;a.resolve(d=r);p(d)}),i);o=`${Math.random()}-${(new Date).getTime()}`;t.setItem(n,o);return a.promise}e.resolve=g;(()=>{u()})()})(ze||(ze={}));class We extends i.Toolbar{}(function(e){e.createInterruptButton=T.createInterruptButton;e.createKernelNameItem=T.createKernelNameItem;e.createKernelStatusItem=T.createKernelStatusItem;e.createRestartButton=T.createRestartButton;e.createSpacerItem=i.Toolbar.createSpacerItem})(We||(We={}))},97913:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(24800);var r=n(85072);var a=n.n(r);var l=n(97825);var d=n.n(l);var c=n(77659);var h=n.n(c);var u=n(55056);var p=n.n(u);var m=n(10540);var g=n.n(m);var f=n(41113);var v=n.n(f);var _=n(41510);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.A,b);const w=_.A&&_.A.locals?_.A.locals:undefined},39721:(e,t,n)=>{"use strict";n.r(t);n.d(t,{AttachmentsModel:()=>r,AttachmentsResolver:()=>a});var i=n(23230);var s=n(95513);var o=n(2336);class r{constructor(e){var t;this._map=new i.ObservableMap;this._isDisposed=false;this._stateChanged=new o.Signal(this);this._changed=new o.Signal(this);this._serialized=null;this._changeGuard=false;this.contentFactory=(t=e.contentFactory)!==null&&t!==void 0?t:r.defaultContentFactory;if(e.values){for(const t of Object.keys(e.values)){if(e.values[t]!==undefined){this.set(t,e.values[t])}}}this._map.changed.connect(this._onMapChanged,this)}get stateChanged(){return this._stateChanged}get changed(){return this._changed}get keys(){return this._map.keys()}get length(){return this._map.keys().length}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this._map.dispose();o.Signal.clearData(this)}has(e){return this._map.has(e)}get(e){return this._map.get(e)}set(e,t){const n=this._createItem({value:t});this._map.set(e,n)}remove(e){this._map.delete(e)}clear(){this._map.values().forEach((e=>{e.dispose()}));this._map.clear()}fromJSON(e){this.clear();Object.keys(e).forEach((t=>{if(e[t]!==undefined){this.set(t,e[t])}}))}toJSON(){const e={};for(const t of this._map.keys()){e[t]=this._map.get(t).toJSON()}return e}_createItem(e){const t=this.contentFactory;const n=t.createAttachmentModel(e);n.changed.connect(this._onGenericChange,this);return n}_onMapChanged(e,t){if(this._serialized&&!this._changeGuard){this._changeGuard=true;this._serialized.set(this.toJSON());this._changeGuard=false}this._changed.emit(t);this._stateChanged.emit(void 0)}_onGenericChange(){this._stateChanged.emit(void 0)}}(function(e){class t{createAttachmentModel(e){return new s.AttachmentModel(e)}}e.ContentFactory=t;e.defaultContentFactory=new t})(r||(r={}));class a{constructor(e){this._parent=e.parent||null;this._model=e.model}async resolveUrl(e,t){if(this._parent&&!e.startsWith("attachment:")){return this._parent.resolveUrl(e,t)}return e}async getDownloadUrl(e){if(this._parent&&!e.startsWith("attachment:")){return this._parent.getDownloadUrl(e)}const t=e.slice("attachment:".length);const n=this._model.get(t);if(n===undefined){return e}const{data:i}=n;const o=Object.keys(i)[0];if(o===undefined||s.imageRendererFactory.mimeTypes.indexOf(o)===-1){throw new Error(`Cannot render unknown image mime type "${o}".`)}const r=`data:${o};base64,${i[o]}`;return r}isLocal(e){var t,n,i;if(this._parent&&!e.startsWith("attachment:")){return(i=(n=(t=this._parent).isLocal)===null||n===void 0?void 0:n.call(t,e))!==null&&i!==void 0?i:true}return true}}},59894:(e,t,n)=>{"use strict";n.r(t);n.d(t,{AudioDocumentWidget:()=>y,AudioViewer:()=>b,AudioViewerFactory:()=>w,default:()=>S});var i=n(88617);var s=n.n(i);var o=n(38850);var r=n.n(o);var a=n(93067);var l=n.n(a);var d=n(49278);var c=n.n(d);var h=n(34881);var u=n.n(h);var p=n(27518);var m=n.n(p);const g="jp-AudioViewer";const f="AudioViewer";const v="audio-provider";function _(e){const t=[];for(const n of e.fileTypes()){if(n.mimeTypes.some((e=>e.startsWith("audio/")))){t.push(n.name)}}return t}class b extends p.Widget{constructor(e){super();this.addClass(g);this._context=e.context;this._contentsManager=e.contentsManager;this._audio=document.createElement("audio");this._audio.controls=true;this.node.appendChild(this._audio);void this._context.ready.then((()=>{void this._updateAudio()}));this._context.model.contentChanged.connect(this._updateAudio,this)}dispose(){if(this.isDisposed){return}super.dispose()}onResize(e){super.onResize(e);if(this._audio){this._audio.style.width="100%"}}async _updateAudio(){const e=await this._contentsManager.getDownloadUrl(this._context.path);this._audio.src=e}}class y extends a.DocumentWidget{constructor(e){super(e)}}class w extends a.ABCWidgetFactory{constructor(e){super(e);this._contentsManager=e.contentsManager}createNewWidget(e){const t=new b({context:e,contentsManager:this._contentsManager});const n=new y({content:t,context:e});return n}}class C extends d.RestContentProvider{constructor(e){super(e)}async get(e,t){return super.get(e,{...t,content:false})}}const x={id:"@jupyterlab/audio-extension:plugin",description:"Adds a viewer for audio files",autoStart:true,requires:[h.ITranslator,d.IDefaultDrive],optional:[i.ILayoutRestorer],activate:(e,t,n,i)=>{const s=t.load("jupyterlab");const{contents:r,serverSettings:a}=e.serviceManager;const l=_(e.docRegistry);const d=n.contentProviderRegistry;if(d){const e=new C({apiEndpoint:"/api/contents",serverSettings:a});d.register(v,e)}const c=new o.WidgetTracker({namespace:"audioviewer"});const h=new w({name:f,label:s.__("Audio Viewer"),fileTypes:l,defaultFor:l,readOnly:true,translator:t,modelName:"base64",contentProviderId:v,contentsManager:r});e.docRegistry.addWidgetFactory(h);h.widgetCreated.connect((async(t,n)=>{void c.add(n);n.context.pathChanged.connect((()=>{void c.save(n)}));const i=e.docRegistry.getFileTypesForPath(n.context.path);const s=i.find((e=>e.mimeTypes.some((e=>e.startsWith("audio/")))));if(s){n.title.icon=s.icon;n.title.iconClass=s.iconClass||"";n.title.iconLabel=s.iconLabel||""}}));if(i){void i.restore(c,{command:"docmanager:open",args:e=>({path:e.context.path,factory:f}),name:e=>e.context.path})}}};const S=x},98807:(e,t,n)=>{"use strict";var i=n(10395);var s=n(97913);var o=n(79010);var r=n(3579);var a=n(85072);var l=n.n(a);var d=n(97825);var c=n.n(d);var h=n(77659);var u=n.n(h);var p=n(55056);var m=n.n(p);var g=n(10540);var f=n.n(g);var v=n(41113);var _=n.n(v);var b=n(81514);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.A,y);const C=b.A&&b.A.locals?b.A.locals:undefined},39470:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>p});var i=n(40065);var s=n.n(i);var o=n(65833);var r=n.n(o);var a=n(38850);var l=n.n(a);var d=n(34881);var c=n.n(d);const h="@jupyterlab/cell-toolbar-extension:plugin";const u={id:h,description:"Add the cells toolbar.",autoStart:true,activate:async(e,t,n,i)=>{function s(e){const t=e===null?true:e.get("showToolbar").composite;l.enabled=t}const r=t&&n?(0,a.createToolbarFactory)(n,t,o.CellBarExtension.FACTORY_NAME,u.id,i!==null&&i!==void 0?i:d.nullTranslator):undefined;const l=new o.CellBarExtension(e.commands,r);if(t!==null){void Promise.all([e.restored,t.load(h)]).then((([,e])=>{s(e);e.changed.connect(s)}))}e.docRegistry.addWidgetExtension("Notebook",l)},optional:[i.ISettingRegistry,a.IToolbarWidgetRegistry,d.ITranslator]};const p=u},56104:(e,t,n)=>{"use strict";var i=n(97913);var s=n(3579);var o=n(10395);var r=n(40662);var a=n(79010);var l=n(53377);var d=n(28006);var c=n(85072);var h=n.n(c);var u=n(97825);var p=n.n(u);var m=n(77659);var g=n.n(m);var f=n(55056);var v=n.n(f);var _=n(10540);var b=n.n(_);var y=n(41113);var w=n.n(y);var C=n(31772);var x={};x.styleTagTransform=w();x.setAttributes=v();x.insert=g().bind(null,"head");x.domAPI=p();x.insertStyleElement=b();var S=h()(C.A,x);const j=C.A&&C.A.locals?C.A.locals:undefined},23168:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CellBarExtension:()=>g,CellToolbarTracker:()=>p});var i=n(38850);var s=n(23230);var o=n(4073);var r=n(34236);var a=n(2336);var l=n(34881);const d=["text/plain","application/vnd.jupyter.stdout","application/vnd.jupyter.stderr"];const c="jp-cell-toolbar";const h="jp-cell-menu";const u="jp-toolbar-overlap";class p{constructor(e,t,n,i){this._isDisposed=false;this._toolbar=null;this._toolbarItems=null;this._toolbarFactory=null;this._panel=e;this._previousActiveCell=this._panel.content.activeCell;this._toolbarItems=t!==null&&t!==void 0?t:null;this._toolbarFactory=n!==null&&n!==void 0?n:null;this._enabled=true;this._trans=(i!==null&&i!==void 0?i:l.nullTranslator).load("jupyterlab");if(this._toolbarItems===null&&this._toolbarFactory===null){throw Error("You must provide the toolbarFactory or the toolbar items.")}if(!this._toolbarFactory&&this._toolbarItems){this._onToolbarChanged();this._toolbarItems.changed.connect(this._onToolbarChanged,this)}void e.revealed.then((()=>{requestAnimationFrame((()=>{const t=e.content;this._onActiveCellChanged(t);t.activeCellChanged.connect(this._onActiveCellChanged,this);t.renderingLayoutChanged.connect(this._onActiveCellChanged,this);t.disposed.connect((()=>{t.activeCellChanged.disconnect(this._onActiveCellChanged)}))}))}))}_onMetadataChanged(e,t){if(t.key==="jupyter"){if(typeof t.newValue==="object"&&t.newValue.source_hidden===true&&(t.type==="add"||t.type==="change")){this._removeToolbar(e)}else if(typeof t.oldValue==="object"&&t.oldValue.source_hidden===true){this._addToolbar(e)}}}_onActiveCellChanged(e){if(this._previousActiveCell&&!this._previousActiveCell.isDisposed){this._removeToolbar(this._previousActiveCell.model);this._previousActiveCell.model.metadataChanged.disconnect(this._onMetadataChanged)}const t=e.activeCell;this._previousActiveCell=t;if(t===null||t.inputHidden){return}t.model.metadataChanged.connect(this._onMetadataChanged,this);this._addToolbar(t.model)}get isDisposed(){return this._isDisposed}get enabled(){return this._enabled}set enabled(e){this._enabled=e;this._onToolbarChanged()}dispose(){var e,t;if(this.isDisposed){return}this._isDisposed=true;(e=this._toolbarItems)===null||e===void 0?void 0:e.changed.disconnect(this._onToolbarChanged,this);(t=this._toolbar)===null||t===void 0?void 0:t.dispose();this._panel=null;a.Signal.clearData(this)}_addToolbar(e){if(!this.enabled){return}const t=this._getCell(e);if(t&&!t.isDisposed){const e=this._toolbar=new o.Toolbar;e.addClass(h);e.addClass(c);e.node.setAttribute("aria-label",this._trans.__("Cell toolbar"));const n=[t.ready];if(this._toolbarFactory){const i=this._toolbarFactory(t);for(const{name:t,widget:s}of i){e.addItem(t,s);if(s instanceof o.ReactWidget&&s.renderPromise!==undefined){s.update();n.push(s.renderPromise)}}}else{for(const{name:t,widget:i}of this._toolbarItems){e.addItem(t,i);if(i instanceof o.ReactWidget&&i.renderPromise!==undefined){i.update();n.push(i.renderPromise)}}}n.push(t.ready);Promise.all(n).then((()=>{var n;if(t.isDisposed||((n=this._panel)===null||n===void 0?void 0:n.content.activeCell)!==t){e.dispose();return}t.node.classList.add(u);t.inputArea.layout.insertWidget(0,e);t.displayChanged.connect(this._resizeEventCallback,this);t.model.contentChanged.connect(this._changedEventCallback,this);this._updateCellForToolbarOverlap(t)})).catch((e=>{console.error("Error rendering buttons of the cell toolbar: ",e)}))}}_getCell(e){var t;return(t=this._panel)===null||t===void 0?void 0:t.content.widgets.find((t=>t.model===e))}_removeToolbar(e){var t,n;const i=this._getCell(e);if(i&&!i.isDisposed){i.displayChanged.disconnect(this._resizeEventCallback,this)}e.contentChanged.disconnect(this._changedEventCallback,this);if(((t=this._toolbar)===null||t===void 0?void 0:t.parent)===(i===null||i===void 0?void 0:i.inputArea)&&((n=this._toolbar)===null||n===void 0?void 0:n.isDisposed)===false){this._toolbar.dispose()}}_onToolbarChanged(){var e;const t=(e=this._panel)===null||e===void 0?void 0:e.content.activeCell;if(t){this._removeToolbar(t.model);this._addToolbar(t.model)}}_changedEventCallback(){var e;const t=(e=this._panel)===null||e===void 0?void 0:e.content.activeCell;if(t===null||t===undefined){return}this._updateCellForToolbarOverlap(t)}_resizeEventCallback(){var e;const t=(e=this._panel)===null||e===void 0?void 0:e.content.activeCell;if(t===null||t===undefined){return}this._updateCellForToolbarOverlap(t)}_updateCellForToolbarOverlap(e){requestIdleCallback((()=>{const t=e.node;t.classList.remove(u);if(this._cellToolbarOverlapsContents(e)){t.classList.add(u)}}))}_cellToolbarOverlapsContents(e){var t,n,i,s;if(!e.model){return false}const o=e.model.type;const r=(t=e.editorWidget)===null||t===void 0?void 0:t.node.getBoundingClientRect();const a=(n=r===null||r===void 0?void 0:r.left)!==null&&n!==void 0?n:0;const l=(i=r===null||r===void 0?void 0:r.right)!==null&&i!==void 0?i:0;const d=this._cellToolbarLeft(e);if(d===null){return false}if((a+l)/2>d){return true}if(o==="markdown"&&e.rendered){return this._markdownOverlapsToolbar(e)}if(((s=this._panel)===null||s===void 0?void 0:s.content.renderingLayout)==="default"){return this._codeOverlapsToolbar(e)}else{return this._outputOverlapsToolbar(e)}}_markdownOverlapsToolbar(e){const t=e.inputArea;if(!t){return false}const n=t.renderedInput;const i=n.node;const s=i.firstElementChild;if(s===null){return false}const o=s.style.maxWidth;s.style.maxWidth="max-content";const r=s.getBoundingClientRect().right;s.style.maxWidth=o;const a=this._cellToolbarLeft(e);return a===null?false:r>a}_outputOverlapsToolbar(e){const t=e.outputArea.node;if(t){const n=t.querySelectorAll("[data-mime-type]");const i=this._cellToolbarRect(e);if(i){const{left:e,bottom:t}=i;return(0,r.some)(n,(n=>{const i=n.firstElementChild;if(i){const s=new Range;if(d.includes(n.getAttribute("data-mime-type")||"")){s.selectNodeContents(i)}else{s.selectNode(i)}const{right:o,top:r}=s.getBoundingClientRect();return o>e&&rr}_cellToolbarRect(e){var t;if(((t=this._toolbar)===null||t===void 0?void 0:t.parent)!==e.inputArea){return null}const n=this._toolbar.node;return n.getBoundingClientRect()}_cellToolbarLeft(e){var t;return((t=this._cellToolbarRect(e))===null||t===void 0?void 0:t.left)||null}}const m=[{command:"notebook:duplicate-below",name:"duplicate-cell"},{command:"notebook:move-cell-up",name:"move-cell-up"},{command:"notebook:move-cell-down",name:"move-cell-down"},{command:"notebook:insert-cell-above",name:"insert-cell-above"},{command:"notebook:insert-cell-below",name:"insert-cell-below"},{command:"notebook:delete-cell",name:"delete-cell"}];class g{constructor(e,t){this._commands=e;this._toolbarFactory=t!==null&&t!==void 0?t:this.defaultToolbarFactory}createItemFactory(e){return(0,i.createDefaultFactory)(e)}get defaultToolbarFactory(){const e=this.createItemFactory(this._commands);return(t,n)=>new s.ObservableList({values:m.map((i=>{const s=n?{...i,args:{...i.args,...n}}:i;return{name:i.name,widget:e(g.FACTORY_NAME,t,s)}}))})}createNew(e){const t=t=>this._toolbarFactory(t,{[g.WIDGET_ID_ARG]:e.id});return this._tracker=new p(e,undefined,t)}get enabled(){return this._tracker.enabled}set enabled(e){if(this._tracker){this._tracker.enabled=e}}}g.FACTORY_NAME="Cell";g.WIDGET_ID_ARG="widgetId"},30531:(e,t,n)=>{"use strict";n.r(t);n.d(t,{AttachmentsCell:()=>qe,AttachmentsCellModel:()=>H,Cell:()=>He,CellDragUtils:()=>c,CellFooter:()=>j,CellHeader:()=>S,CellModel:()=>W,CellSearchProvider:()=>re,CodeCell:()=>Ue,CodeCellLayout:()=>Ve,CodeCellModel:()=>q,Collapser:()=>_,InputArea:()=>D,InputCollapser:()=>b,InputPlaceholder:()=>ee,InputPrompt:()=>A,MarkdownCell:()=>$e,MarkdownCellModel:()=>U,OutputCollapser:()=>y,OutputPlaceholder:()=>te,Placeholder:()=>Z,RawCell:()=>Ke,RawCellModel:()=>V,SELECTED_HIGHLIGHT_CLASS:()=>oe,createCellSearchProvider:()=>de,isCodeCellModel:()=>O,isMarkdownCellModel:()=>F,isRawCellModel:()=>z});var i=n(97290);const s=5;const o="jp-dragImage";const r="jp-dragImage-singlePrompt";const a="jp-dragImage-content";const l="jp-dragImage-prompt";const d="jp-dragImage-multipleBack";var c;(function(e){function t(e,t,n){let i=-1;while(e&&e.parentElement){if(n(e)){let n=-1;for(const s of t){if(s.node===e){i=++n;break}}break}e=e.parentElement}return i}e.findCell=t;function n(e,t){var n,i;let s;if(e){if((n=e.editorWidget)===null||n===void 0?void 0:n.node.contains(t)){s="input"}else if((i=e.promptNode)===null||i===void 0?void 0:i.contains(t)){s="prompt"}else{s="cell"}}else{s="unknown"}return s}e.detectTargetArea=n;function c(e,t,n,i){const o=Math.abs(n-e);const r=Math.abs(i-t);return o>=s||r>=s}e.shouldStartDrag=c;function h(e,t){const n=t.length;let s;if(e.model.type==="code"){const t=e.model.executionCount;s=" ";if(t){s=t.toString()}}else{s=""}const c=e.model.sharedModel.getSource().split("\n")[0].slice(0,26);if(n>1){if(s!==""){return i.VirtualDOM.realize(i.h.div(i.h.div({className:o},i.h.span({className:l},"["+s+"]:"),i.h.span({className:a},c)),i.h.div({className:d},"")))}else{return i.VirtualDOM.realize(i.h.div(i.h.div({className:o},i.h.span({className:l}),i.h.span({className:a},c)),i.h.div({className:d},"")))}}else{if(s!==""){return i.VirtualDOM.realize(i.h.div(i.h.div({className:`${o} ${r}`},i.h.span({className:l},"["+s+"]:"),i.h.span({className:a},c))))}else{return i.VirtualDOM.realize(i.h.div(i.h.div({className:`${o} ${r}`},i.h.span({className:l}),i.h.span({className:a},c))))}}}e.createCellDragImage=h})(c||(c={}));var h=n(4073);var u=n(76326);var p=n(44914);const m="jp-Collapser";const g="jp-Collapser-child";const f="jp-InputCollapser";const v="jp-OutputCollapser";class _ extends h.ReactWidget{constructor(){super();this.addClass(m)}get collapsed(){return false}render(){const e=g;return p.createElement("div",{className:e,onClick:e=>this.handleClick(e)})}}class b extends _{constructor(){super();this.addClass(f)}get collapsed(){var e;const t=(e=this.parent)===null||e===void 0?void 0:e.parent;if(t){return t.inputHidden}else{return false}}handleClick(e){var t;const n=(t=this.parent)===null||t===void 0?void 0:t.parent;if(n){n.inputHidden=!n.inputHidden}this.update()}}class y extends _{constructor(){super();this.addClass(v)}get collapsed(){var e;const t=(e=this.parent)===null||e===void 0?void 0:e.parent;if(t){return t.outputHidden}else{return false}}handleClick(e){var t,n;const i=(t=this.parent)===null||t===void 0?void 0:t.parent;if(i){i.outputHidden=!i.outputHidden;if(i.outputHidden){let e=(n=i.parent)===null||n===void 0?void 0:n.node;if(e){u.ElementExt.scrollIntoViewIfNeeded(e,i.node)}}}this.update()}}var w=n(27518);const C="jp-CellHeader";const x="jp-CellFooter";class S extends w.Widget{constructor(){super();this.addClass(C)}}class j extends w.Widget{constructor(){super();this.addClass(x)}}var k=n(44389);const I="jp-InputArea";const T="jp-InputArea-prompt";const E="jp-InputPrompt";const M="jp-InputArea-editor";class D extends w.Widget{constructor(e){super();this.addClass(I);const{contentFactory:t,editorOptions:n,model:i}=e;this.model=i;this.contentFactory=t;const s=this._prompt=t.createInputPrompt();s.addClass(T);const o=this._editor=new k.CodeEditorWrapper({factory:t.editorFactory,model:i,editorOptions:n});o.addClass(M);const r=this.layout=new w.PanelLayout;r.addWidget(s);r.addWidget(o)}get editorWidget(){return this._editor}get editor(){return this._editor.editor}get promptNode(){return this._prompt.node}get renderedInput(){return this._rendered}renderInput(e){const t=this.layout;if(this._rendered){this._rendered.parent=null}this._editor.hide();this._rendered=e;t.addWidget(e)}showEditor(){if(this._rendered){this._rendered.parent=null}this._editor.show()}setPrompt(e){this._prompt.executionCount=e}dispose(){if(this.isDisposed){return}this._prompt=null;this._editor=null;this._rendered=null;super.dispose()}}(function(e){class t{constructor(e){this._editor=e.editorFactory}get editorFactory(){return this._editor}createInputPrompt(){return new A}}e.ContentFactory=t})(D||(D={}));class A extends w.Widget{constructor(){super();this._executionCount=null;this.addClass(E)}get executionCount(){return this._executionCount}set executionCount(e){this._executionCount=e;if(e===null){this.node.textContent=" "}else{this.node.textContent=`[${e||" "}]:`}}}var P=n(2336);var L=n(40869);var R=n(99247);var N=n(95917);const B=(0,N.createMutex)();function O(e){return e.type==="code"}function F(e){return e.type==="markdown"}function z(e){return e.type==="raw"}class W extends k.CodeEditor.Model{constructor(e={}){const{cell_type:t,sharedModel:n,...i}=e;super({sharedModel:n!==null&&n!==void 0?n:(0,N.createStandaloneCell)({cell_type:t!==null&&t!==void 0?t:"raw",id:e.id}),...i});this.contentChanged=new P.Signal(this);this.stateChanged=new P.Signal(this);this._metadataChanged=new P.Signal(this);this._trusted=false;this.standaloneModel=typeof e.sharedModel==="undefined";this.trusted=!!this.getMetadata("trusted")||!!e.trusted;this.sharedModel.changed.connect(this.onGenericChange,this);this.sharedModel.metadataChanged.connect(this._onMetadataChanged,this)}get metadataChanged(){return this._metadataChanged}get id(){return this.sharedModel.getId()}get metadata(){return this.sharedModel.metadata}get trusted(){return this._trusted}set trusted(e){const t=this.trusted;if(t!==e){this._trusted=e;this.onTrustedChanged(this,{newValue:e,oldValue:t})}}dispose(){if(this.isDisposed){return}this.sharedModel.changed.disconnect(this.onGenericChange,this);this.sharedModel.metadataChanged.disconnect(this._onMetadataChanged,this);super.dispose()}onTrustedChanged(e,t){}deleteMetadata(e){return this.sharedModel.deleteMetadata(e)}getMetadata(e){return this.sharedModel.getMetadata(e)}setMetadata(e,t){if(typeof t==="undefined"){this.sharedModel.deleteMetadata(e)}else{this.sharedModel.setMetadata(e,t)}}toJSON(){return this.sharedModel.toJSON()}onGenericChange(){this.contentChanged.emit(void 0)}_onMetadataChanged(e,t){this._metadataChanged.emit(t)}}class H extends W{constructor(e){var t;super(e);const n=(t=e.contentFactory)!==null&&t!==void 0?t:H.defaultContentFactory;const i=this.sharedModel.getAttachments();this._attachments=n.createAttachmentsModel({values:i});this._attachments.stateChanged.connect(this.onGenericChange,this);this._attachments.changed.connect(this._onAttachmentsChange,this);this.sharedModel.changed.connect(this._onSharedModelChanged,this)}get attachments(){return this._attachments}dispose(){if(this.isDisposed){return}this._attachments.stateChanged.disconnect(this.onGenericChange,this);this._attachments.changed.disconnect(this._onAttachmentsChange,this);this._attachments.dispose();this.sharedModel.changed.disconnect(this._onSharedModelChanged,this);super.dispose()}toJSON(){return super.toJSON()}_onAttachmentsChange(e,t){const n=this.sharedModel;B((()=>n.setAttachments(e.toJSON())))}_onSharedModelChanged(e,t){if(t.attachmentsChange){const e=this.sharedModel;B((()=>{var t;return this._attachments.fromJSON((t=e.getAttachments())!==null&&t!==void 0?t:{})}))}}}(function(e){class t{createAttachmentsModel(e){return new L.AttachmentsModel(e)}}e.ContentFactory=t;e.defaultContentFactory=new t})(H||(H={}));class V extends H{constructor(e={}){super({cell_type:"raw",...e})}get type(){return"raw"}toJSON(){return super.toJSON()}}class U extends H{constructor(e={}){super({cell_type:"markdown",...e});this.mimeType="text/x-ipythongfm"}get type(){return"markdown"}toJSON(){return super.toJSON()}}class q extends W{constructor(e={}){var t;super({cell_type:"code",...e});this._executedCode="";this._isDirty=false;const n=(t=e===null||e===void 0?void 0:e.contentFactory)!==null&&t!==void 0?t:q.defaultContentFactory;const i=this.trusted;const s=this.sharedModel.getOutputs();this._outputs=n.createOutputArea({trusted:i,values:s});this.sharedModel.changed.connect(this._onSharedModelChanged,this);this._outputs.changed.connect(this.onGenericChange,this);this._outputs.changed.connect(this.onOutputsChange,this)}get type(){return"code"}get executionCount(){return this.sharedModel.execution_count||null}set executionCount(e){this.sharedModel.execution_count=e||null}get executionState(){return this.sharedModel.executionState}set executionState(e){this.sharedModel.executionState=e}get isDirty(){return this._isDirty}set isDirty(e){this._setDirty(e)}get outputs(){return this._outputs}clearExecution(){this.outputs.clear();this.executionCount=null;this.executionState="idle";this._setDirty(false);this.sharedModel.deleteMetadata("execution");this.trusted=true}dispose(){if(this.isDisposed){return}this.sharedModel.changed.disconnect(this._onSharedModelChanged,this);this._outputs.changed.disconnect(this.onGenericChange,this);this._outputs.changed.disconnect(this.onOutputsChange,this);this._outputs.dispose();this._outputs=null;super.dispose()}onTrustedChanged(e,t){const n=t.newValue;if(this._outputs){this._outputs.trusted=n}if(n){const e=this.sharedModel;const t=e.getMetadata();t.trusted=true;e.setMetadata(t)}this.stateChanged.emit({name:"trusted",oldValue:t.oldValue,newValue:n})}toJSON(){return super.toJSON()}onOutputsChange(e,t){const n=this.sharedModel;B((()=>{switch(t.type){case"add":{for(const n of t.newValues){if(n.type==="stream"){n.streamText.changed.connect(((e,n)=>{if(n.options!==undefined&&n.options["silent"]){return}const i=this.sharedModel;if(n.type==="remove"){i.removeStreamOutput(t.newIndex,n.start,"silent-change")}else{i.appendStreamOutput(t.newIndex,n.value,"silent-change")}}),this)}}const e=t.newValues.map((e=>e.toJSON()));n.updateOutputs(t.newIndex,t.newIndex,e,"silent-change");break}case"set":{const e=t.newValues.map((e=>e.toJSON()));n.updateOutputs(t.oldIndex,t.oldIndex+e.length,e,"silent-change");break}case"remove":n.updateOutputs(t.oldIndex,t.oldValues.length,[],"silent-change");break;case"clear":n.clearOutputs();break;default:throw new Error(`Invalid event type: ${t.type}`)}}))}_onSharedModelChanged(e,t){if(t.streamOutputChange){B((()=>{for(const e of t.streamOutputChange){if("delete"in e){this._outputs.removeStreamOutput(e.delete)}if("insert"in e){this._outputs.appendStreamOutput(e.insert.toString())}}}))}if(t.outputsChange){B((()=>{let e=0;for(const n of t.outputsChange){if("retain"in n){e+=n.retain}if("delete"in n){for(let t=0;t{if(e){this.cmHandler.setEditor(this.editor)}}))}}get editor(){return this.cell.editor}get model(){return this.cell.model}}class ae extends re{constructor(e){super(e);this.currentProviderIndex=-1;this.outputsProvider=[];const t=this.cell.outputArea;this._onOutputsChanged(t,t.widgets.length).catch((e=>{console.error(`Failed to initialize search on cell outputs.`,e)}));t.outputLengthChanged.connect(this._onOutputsChanged,this);t.disposed.connect((()=>{t.outputLengthChanged.disconnect(this._onOutputsChanged)}),this)}get matchesCount(){if(!this.isActive){return 0}return super.matchesCount+this.outputsProvider.reduce(((e,t)=>{var n;return e+((n=t.matchesCount)!==null&&n!==void 0?n:0)}),0)}async clearHighlight(){await super.clearHighlight();await Promise.all(this.outputsProvider.map((e=>e.clearHighlight())))}dispose(){if(this.isDisposed){return}super.dispose();this.outputsProvider.map((e=>{e.dispose()}));this.outputsProvider.length=0}getCurrentMatch(){var e;if(this.currentProviderIndex===-1){return super.getCurrentMatch()}else if(this.currentProviderIndex=this.cmHandler.matches.length||!this.isActive){this.currentIndex=null}else{if(this.currentProviderIndex===-1){const n=await super.highlightNext(e,t);if(n){this.currentIndex=this.cmHandler.currentIndex;return n}else{this.currentProviderIndex=0}}while(this.currentProviderIndex{var n;return e+=(n=t.matchesCount)!==null&&n!==void 0?n:0}),0)+e.currentMatchIndex;return t}else{this.currentProviderIndex+=1}}this.currentProviderIndex=-1;this.currentIndex=null;return undefined}}async highlightPrevious(){if(this.matchesCount===0||!this.isActive){this.currentIndex=null}else{if(this.currentIndex===null){this.currentProviderIndex=this.outputsProvider.length-1}while(this.currentProviderIndex>=0){const e=this.outputsProvider[this.currentProviderIndex];const t=await e.highlightPrevious(false);if(t){this.currentIndex=super.matchesCount+this.outputsProvider.slice(0,this.currentProviderIndex).reduce(((e,t)=>{var n;return e+=(n=t.matchesCount)!==null&&n!==void 0?n:0}),0)+e.currentMatchIndex;return t}else{this.currentProviderIndex-=1}}const e=await super.highlightPrevious();if(e){this.currentIndex=this.cmHandler.currentIndex;return e}else{this.currentIndex=null;return undefined}}}async startQuery(e,t){await super.startQuery(e,t);if((t===null||t===void 0?void 0:t.output)!==false&&this.isActive){await Promise.all(this.outputsProvider.map((t=>t.startQuery(e))))}}async endQuery(){var e;await super.endQuery();if(((e=this.filters)===null||e===void 0?void 0:e.output)!==false&&this.isActive){await Promise.all(this.outputsProvider.map((e=>e.endQuery())))}}async replaceAllMatches(e,t){if(this.model.getMetadata("editable")===false)return Promise.resolve(false);const n=await super.replaceAllMatches(e,t);return n}async replaceCurrentMatch(e,t,n){if(this.model.getMetadata("editable")===false)return Promise.resolve(false);const i=await super.replaceCurrentMatch(e,t,n);return i}async _onOutputsChanged(e,t){var n;this.outputsProvider.forEach((e=>{e.dispose()}));this.outputsProvider.length=0;this.currentProviderIndex=-1;this.outputsProvider=this.cell.outputArea.widgets.map((e=>new se.GenericSearchProvider(e)));if(this.isActive&&this.query&&((n=this.filters)===null||n===void 0?void 0:n.output)!==false){await Promise.all([this.outputsProvider.map((e=>{void e.startQuery(this.query)}))])}this._stateChanged.emit()}}class le extends re{constructor(e){super(e);this._unrenderedByHighlight=false;this.renderedProvider=new se.GenericSearchProvider(e.renderer)}async clearHighlight(){await super.clearHighlight();await this.renderedProvider.clearHighlight()}dispose(){if(this.isDisposed){return}super.dispose();this.renderedProvider.dispose()}async endQuery(){await super.endQuery();await this.renderedProvider.endQuery()}async highlightNext(e=true,t){let n=undefined;if(!this.isActive){return n}const i=this.cell;if(i.rendered&&this.matchesCount>0){this._unrenderedByHighlight=true;const e=(0,ie.signalToPromise)(i.renderedChanged);i.rendered=false;await e}n=await super.highlightNext(e,t);return n}async highlightPrevious(){let e=undefined;const t=this.cell;if(t.rendered&&this.matchesCount>0){this._unrenderedByHighlight=true;const e=(0,ie.signalToPromise)(t.renderedChanged);t.rendered=false;await e}e=await super.highlightPrevious();return e}async startQuery(e,t){await super.startQuery(e,t);const n=this.cell;if(n.rendered){this.onRenderedChanged(n,n.rendered)}n.renderedChanged.connect(this.onRenderedChanged,this)}async replaceAllMatches(e,t){if(this.model.getMetadata("editable")===false)return Promise.resolve(false);const n=await super.replaceAllMatches(e,t);if(this.cell.rendered){this.cell.update()}return n}async replaceCurrentMatch(e,t,n){if(this.model.getMetadata("editable")===false)return Promise.resolve(false);const i=await super.replaceCurrentMatch(e,t,n);return i}onRenderedChanged(e,t){var n;if(!this._unrenderedByHighlight){this.currentIndex=null}this._unrenderedByHighlight=false;if(this.isActive){if(t){void this.renderedProvider.startQuery(this.query)}else{(n=e.editor)===null||n===void 0?void 0:n.setCursorPosition({column:0,line:0});void this.renderedProvider.endQuery()}}}}function de(e){if(e.isPlaceholder()){return new re(e)}switch(e.model.type){case"code":return new ae(e);case"markdown":return new le(e);default:return new re(e)}}var ce=n(22819);var he=n(38850);var ue=n(95513);var pe=n(72011);var me=n(5592);var ge=n(34236);var fe=n(42856);var ve=n(26568);const _e="jp-CellResizeHandle";const be="jp-mod-resizedCell";class ye extends w.Widget{constructor(e){super();this.targetNode=e;this._isActive=false;this._isDragging=false;this.sizeChanged=new P.Signal(this);this.addClass(_e);this._resizer=new ve.Throttler((e=>this._resize(e)),50)}dispose(){this._resizer.dispose();super.dispose()}handleEvent(e){var t,n;switch(e.type){case"dblclick":(t=this.targetNode.parentNode)===null||t===void 0?void 0:t.childNodes.forEach((e=>{e.classList.remove(be)}));document.documentElement.style.setProperty("--jp-side-by-side-output-size",`1fr`);this._isActive=false;break;case"mousedown":this._isDragging=true;if(!this._isActive){(n=this.targetNode.parentNode)===null||n===void 0?void 0:n.childNodes.forEach((e=>{e.classList.add(be)}));this._isActive=true}window.addEventListener("mousemove",this);window.addEventListener("mouseup",this);break;case"mousemove":{if(this._isActive&&this._isDragging){void this._resizer.invoke(e)}break}case"mouseup":this._isDragging=false;window.removeEventListener("mousemove",this);window.removeEventListener("mouseup",this);break;default:break}}onAfterAttach(e){this.node.addEventListener("dblclick",this);this.node.addEventListener("mousedown",this);super.onAfterAttach(e)}onBeforeDetach(e){this.node.removeEventListener("dblclick",this);this.node.removeEventListener("mousedown",this);super.onBeforeDetach(e)}_resize(e){const{width:t,x:n}=this.targetNode.getBoundingClientRect();const i=e.clientX-n;const s=t/i-1;if(0{const i=this._inViewport!==null;const s=i&&!this._inViewport;this._scrollRequested.emit({defaultPrevented:s,scrollWithinCell:()=>{e.dispatch({effects:ce.EditorView.scrollIntoView(t,n)})}});return s}));this._editorConfig={};this._editorExtensions=[];this._inputHidden=false;this._inViewportChanged=new P.Signal(this);this._readOnly=false;this._ready=new me.PromiseDelegate;this._resizeDebouncer=new ve.Debouncer((()=>{this._displayChanged.emit()}),0);this._syncCollapse=false;this._syncEditable=false;this.addClass(we);const o=this._model=e.model;this.contentFactory=e.contentFactory;this.layout=(t=e.layout)!==null&&t!==void 0?t:new w.PanelLayout;this.translator=(n=e.translator)!==null&&n!==void 0?n:$.nullTranslator;this._editorConfig={searchWithCM:false,...e.editorConfig};this._editorExtensions=(i=e.editorExtensions)!==null&&i!==void 0?i:[];this._editorExtensions.push(this._scrollHandlerExtension);this._placeholder=true;this._inViewport=null;this.placeholder=(s=e.placeholder)!==null&&s!==void 0?s:true;o.metadataChanged.connect(this.onMetadataChanged,this)}initializeState(){this.loadCollapseState();this.loadEditableState();return this}get displayChanged(){return this._displayChanged}get inViewport(){var e;return(e=this._inViewport)!==null&&e!==void 0?e:false}set inViewport(e){if(this._inViewport!==e){this._inViewport=e;this._inViewportChanged.emit(this._inViewport)}}get inViewportChanged(){return this._inViewportChanged}get placeholder(){return this._placeholder}set placeholder(e){if(this._placeholder!==e&&e===false){this.initializeDOM();this._placeholder=e;this._ready.resolve()}}get promptNode(){if(this.placeholder){return null}if(!this._inputHidden){return this._input.promptNode}else{return this._inputPlaceholder.node.firstElementChild}}get editorWidget(){var e,t;return(t=(e=this._input)===null||e===void 0?void 0:e.editorWidget)!==null&&t!==void 0?t:null}get editor(){var e,t;return(t=(e=this._input)===null||e===void 0?void 0:e.editor)!==null&&t!==void 0?t:null}get editorConfig(){return this._editorConfig}get headings(){return new Array}async getHeadings(){return[]}get model(){return this._model}get inputArea(){return this._input}get readOnly(){return this._readOnly}set readOnly(e){if(e===this._readOnly){return}this._readOnly=e;if(this.syncEditable){this.saveEditableState()}this.update()}isPlaceholder(){return this.placeholder}saveEditableState(){const{sharedModel:e}=this.model;const t=e.getMetadata("editable");if(this.readOnly&&t===false||!this.readOnly&&t===undefined){return}if(this.readOnly){e.setMetadata("editable",false)}else{e.deleteMetadata("editable")}}loadEditableState(){this.readOnly=this.model.sharedModel.getMetadata("editable")===false}get ready(){return this._ready.promise}setPrompt(e){return this._setPrompt(e)}_setPrompt(e){var t;this.prompt=e;(t=this._input)===null||t===void 0?void 0:t.setPrompt(e)}get inputHidden(){return this._inputHidden}set inputHidden(e){var t;if(this._inputHidden===e){return}if(!this.placeholder){const n=this._inputWrapper.layout;if(e){this._input.parent=null;if(this._inputPlaceholder){this._inputPlaceholder.text=(t=this.model.sharedModel.getSource().split("\n"))===null||t===void 0?void 0:t[0]}n.addWidget(this._inputPlaceholder)}else{this._inputPlaceholder.parent=null;n.addWidget(this._input)}}this._inputHidden=e;if(this.syncCollapse){this.saveCollapseState()}this.handleInputHidden(e)}saveCollapseState(){const e={...this.model.getMetadata("jupyter")};if(this.inputHidden&&e.source_hidden===true||!this.inputHidden&&e.source_hidden===undefined){return}if(this.inputHidden){e.source_hidden=true}else{delete e.source_hidden}if(Object.keys(e).length===0){this.model.deleteMetadata("jupyter")}else{this.model.setMetadata("jupyter",e)}}loadCollapseState(){var e;const t=(e=this.model.getMetadata("jupyter"))!==null&&e!==void 0?e:{};this.inputHidden=!!t.source_hidden}handleInputHidden(e){return}get syncCollapse(){return this._syncCollapse}set syncCollapse(e){if(this._syncCollapse===e){return}this._syncCollapse=e;if(e){this.loadCollapseState()}}get syncEditable(){return this._syncEditable}set syncEditable(e){if(this._syncEditable===e){return}this._syncEditable=e;if(e){this.loadEditableState()}}clone(){const e=this.constructor;return new e({model:this.model,contentFactory:this.contentFactory,placeholder:false,translator:this.translator})}dispose(){if(this.isDisposed){return}this._resizeDebouncer.dispose();this._input=null;this._model=null;this._inputWrapper=null;this._inputPlaceholder=null;super.dispose()}updateEditorConfig(e){this._editorConfig={...this._editorConfig,...e};if(this.editor){this.editor.setBaseOptions(this._editorConfig)}}get scrollRequested(){return this._scrollRequested}initializeDOM(){if(!this.placeholder){return}const e=this.contentFactory;const t=this._model;const n=e.createCellHeader();n.addClass(Ce);this.layout.addWidget(n);const i=this._inputWrapper=new w.Panel;i.addClass(Se);const s=new b;s.addClass(Te);const o=this._input=new D({model:t,contentFactory:e,editorOptions:this.getEditorOptions()});o.addClass(ke);i.addWidget(s);i.addWidget(o);this.layout.addWidget(i);this._inputPlaceholder=new ee({callback:()=>{this.inputHidden=!this.inputHidden},text:o.model.sharedModel.getSource().split("\n")[0],translator:this.translator});o.model.contentChanged.connect(((e,t)=>{var n;if(this._inputPlaceholder&&this.inputHidden){this._inputPlaceholder.text=(n=e.sharedModel.getSource().split("\n"))===null||n===void 0?void 0:n[0]}}));if(this.inputHidden){o.parent=null;i.layout.addWidget(this._inputPlaceholder)}const r=this.contentFactory.createCellFooter();r.addClass(xe);this.layout.addWidget(r)}getEditorOptions(){return{config:this.editorConfig,extensions:this._editorExtensions}}onBeforeAttach(e){if(this.placeholder){this.placeholder=false}}onAfterAttach(e){this.update()}onActivateRequest(e){var t;(t=this.editor)===null||t===void 0?void 0:t.focus()}onResize(e){void this._resizeDebouncer.invoke()}onUpdateRequest(e){var t,n;if(!this._model){return}if(((t=this.editor)===null||t===void 0?void 0:t.getOption("readOnly"))!==this._readOnly){(n=this.editor)===null||n===void 0?void 0:n.setOption("readOnly",this._readOnly)}}onContentChanged(){var e;if(this.inputHidden&&this._inputPlaceholder){this._inputPlaceholder.text=(e=this.model.sharedModel.getSource().split("\n"))===null||e===void 0?void 0:e[0]}}onMetadataChanged(e,t){switch(t.key){case"jupyter":if(this.syncCollapse){this.loadCollapseState()}break;case"editable":if(this.syncEditable){this.loadEditableState()}break;default:break}}}(function(e){let t;(function(e){e[e["HTML"]=0]="HTML";e[e["Markdown"]=1]="Markdown"})(t=e.HeadingType||(e.HeadingType={}));class n{constructor(e){this._editorFactory=e.editorFactory}get editorFactory(){return this._editorFactory}createCellHeader(){return new S}createCellFooter(){return new j}createInputPrompt(){return new A}createOutputPrompt(){return new R.OutputPrompt}createStdin(e){return new R.Stdin(e)}}e.ContentFactory=n})(He||(He={}));class Ve extends w.PanelLayout{onBeforeAttach(e){let t=true;const n=this.parent.node.firstElementChild;for(const i of this){if(n){if(i.node===n){t=false}else{fe.MessageLoop.sendMessage(i,e);if(t){this.parent.node.insertBefore(i.node,n)}else{this.parent.node.appendChild(i.node)}if(!this.parent.isHidden){i.setFlag(w.Widget.Flag.IsVisible)}fe.MessageLoop.sendMessage(i,w.Widget.Msg.AfterAttach)}}}}onAfterDetach(e){for(const t of this){if(!t.hasClass(je)&&t.node.isConnected){fe.MessageLoop.sendMessage(t,w.Widget.Msg.BeforeDetach);this.parent.node.removeChild(t.node);fe.MessageLoop.sendMessage(t,e)}}}}class Ue extends He{constructor(e){var t;super({layout:new Ve,...e,placeholder:true});this._detectCaretMovementInOuput=e=>{const t=this._inViewport!==null;const n=t&&!this._inViewport;const i=e.target;if(!i||!(i instanceof HTMLElement)){return}if(this._lastTarget){this._lastTarget.removeEventListener("selectionchange",this._lastOnCaretMovedHandler);document.removeEventListener("selectionchange",this._lastOnCaretMovedHandler)}const s=()=>{this._scrollRequested.emit({scrollWithinCell:({scroller:e})=>{u.ElementExt.scrollIntoViewIfNeeded(e,i)},defaultPrevented:n})};this._lastTarget=i;this._lastOnCaretMovedHandler=s;i.addEventListener("selectionchange",s,{once:true});document.addEventListener("selectionchange",s,{once:true});setTimeout((()=>{i.removeEventListener("selectionchange",s);document.removeEventListener("selectionchange",s)}),250)};this._headingsCache=null;this._outputHidden=false;this._outputWrapper=null;this._outputPlaceholder=null;this._syncScrolled=false;this._lastTarget=null;this._lastOutputHeight="";this.addClass(De);const n=this.translator.load("jupyterlab");const i=this._rendermime=e.rendermime;const s=this.contentFactory;const o=this.model;this.maxNumberOutputs=e.maxNumberOutputs;const r=o.outputs.length===0?n.__("Code Cell Content"):n.__("Code Cell Content with Output");this.node.setAttribute("aria-label",r);const a=this._output=new R.OutputArea({model:this.model.outputs,rendermime:i,contentFactory:s,maxNumberOutputs:this.maxNumberOutputs,translator:this.translator,promptOverlay:true,inputHistoryScope:e.inputHistoryScope,showInputPlaceholder:e.showInputPlaceholder});a.node.addEventListener("keydown",this._detectCaretMovementInOuput);a.addClass(Ie);a.toggleScrolling.connect((()=>{this.outputsScrolled=!this.outputsScrolled}));a.initialize.connect((()=>{this.updatePromptOverlayIcon()}));this.placeholder=(t=e.placeholder)!==null&&t!==void 0?t:true;o.outputs.changed.connect(this.onOutputChanged,this);o.outputs.stateChanged.connect(this.onOutputChanged,this);o.stateChanged.connect(this.onStateChanged,this)}initializeDOM(){if(!this.placeholder){return}super.initializeDOM();this._updatePrompt();const e=this._outputWrapper=new w.Panel;e.addClass(je);const t=new y;t.addClass(Ee);e.addWidget(t);if(this.model.outputs.length===0){this.addClass(Fe)}this._output.outputLengthChanged.connect(this._outputLengthHandler,this);e.addWidget(this._output);const n=this.layout;const i=new ye(this.node);i.sizeChanged.connect(this._sizeChangedHandler,this);n.insertWidget(n.widgets.length-1,i);n.insertWidget(n.widgets.length-1,e);if(this.model.isDirty){this.addClass(Me)}this._outputPlaceholder=new te({callback:()=>{this.outputHidden=!this.outputHidden},text:this.getOutputPlaceholderText(),translator:this.translator});const s=e.layout;if(this.outputHidden){s.removeWidget(this._output);s.addWidget(this._outputPlaceholder);if(this.inputHidden&&!e.isHidden){this._outputWrapper.hide()}}const o=this.translator.load("jupyterlab");const r=this.model.outputs.length===0?o.__("Code Cell Content"):o.__("Code Cell Content with Output");this.node.setAttribute("aria-label",r)}getOutputPlaceholderText(){var e;const t=this.model.outputs.get(0);const n=t===null||t===void 0?void 0:t.data;if(!n){return undefined}const i=["text/html","image/svg+xml","application/pdf","text/markdown","text/plain","application/vnd.jupyter.stderr","application/vnd.jupyter.stdout","text"];const s=i.find((e=>{const n=t.data[e];return(Array.isArray(n)?typeof n[0]:typeof n)==="string"}));const o=t.data[s!==null&&s!==void 0?s:""];if(o!==undefined){return(e=Array.isArray(o)?o:o===null||o===void 0?void 0:o.split("\n"))===null||e===void 0?void 0:e.find((e=>e!==""))}return undefined}initializeState(){super.initializeState();this.loadScrolledState();this._updatePrompt();return this}get headings(){var e;return(e=this._headingsCache)!==null&&e!==void 0?e:[]}async getHeadings(){if(!this._headingsCache){const e=[];const t=this.model.outputs;for(let n=0;n{if(!o&&pe.TableOfContentsUtils.Markdown.isMarkdown(e)){o=e}else if(!s&&pe.TableOfContentsUtils.isHTML(e)){s=e}}));if(s){let t=i.data[s];if(typeof t!=="string"){t=t.join("\n")}e.push(...pe.TableOfContentsUtils.getHTMLHeadings(this._rendermime.sanitizer.sanitize(t)).map((e=>({...e,outputIndex:n,type:He.HeadingType.HTML}))))}else if(o){const t=await pe.TableOfContentsUtils.Markdown.parseHeadings(i.data[o],this._rendermime.markdownParser);e.push(...t.map((e=>({...e,outputIndex:n,type:He.HeadingType.Markdown}))))}}this._headingsCache=e}return[...this._headingsCache]}get outputArea(){return this._output}get outputHidden(){return this._outputHidden}set outputHidden(e){var t;if(this._outputHidden===e){return}if(!this.placeholder){const n=this._outputWrapper.layout;if(e){n.removeWidget(this._output);n.addWidget(this._outputPlaceholder);if(this.inputHidden&&!this._outputWrapper.isHidden){this._outputWrapper.hide()}if(this._outputPlaceholder){this._outputPlaceholder.text=(t=this.getOutputPlaceholderText())!==null&&t!==void 0?t:""}}else{if(this._outputWrapper.isHidden){this._outputWrapper.show()}n.removeWidget(this._outputPlaceholder);n.addWidget(this._output)}}this._outputHidden=e;if(this.syncCollapse){this.saveCollapseState()}}saveCollapseState(){this.model.sharedModel.transact((()=>{super.saveCollapseState();const e=this.model.getMetadata("collapsed");if(this.outputHidden&&e===true||!this.outputHidden&&e===undefined){return}if(this.outputHidden){this.model.setMetadata("collapsed",true)}else{this.model.deleteMetadata("collapsed")}}),false,"silent-change")}loadCollapseState(){super.loadCollapseState();this.outputHidden=!!this.model.getMetadata("collapsed")}get outputsScrolled(){return this._outputsScrolled}set outputsScrolled(e){this.toggleClass("jp-mod-outputsScrolled",e);this._outputsScrolled=e;if(this.syncScrolled){this.saveScrolledState()}this.updatePromptOverlayIcon()}updatePromptOverlayIcon(){var e;const t=he.DOMUtils.findElement(this.node,"jp-OutputArea-promptOverlay");if(!t){return}const n=16+4+4;if(t.clientHeight<=n){(e=t.firstChild)===null||e===void 0?void 0:e.remove();return}let i;if(this._outputsScrolled){h.expandIcon.element({container:t});i="Expand Output"}else{h.collapseIcon.element({container:t});i="Collapse Output"}const s=this.translator.load("jupyterlab");t.title=s.__(i)}saveScrolledState(){const e=this.model.getMetadata("scrolled");if(this.outputsScrolled&&e===true||!this.outputsScrolled&&e===undefined){return}if(this.outputsScrolled){this.model.setMetadata("scrolled",true)}else{this.outputArea.node.style.height="";this.model.deleteMetadata("scrolled")}}loadScrolledState(){if(this.model.getMetadata("scrolled")==="auto"){this.outputsScrolled=false}else{this.outputsScrolled=!!this.model.getMetadata("scrolled")}}get syncScrolled(){return this._syncScrolled}set syncScrolled(e){if(this._syncScrolled===e){return}this._syncScrolled=e;if(e){this.loadScrolledState()}}handleInputHidden(e){if(this.placeholder){return}if(!e&&this._outputWrapper.isHidden){this._outputWrapper.show()}else if(e&&!this._outputWrapper.isHidden&&this._outputHidden){this._outputWrapper.hide()}}clone(){const e=this.constructor;return new e({model:this.model,contentFactory:this.contentFactory,rendermime:this._rendermime,placeholder:false,translator:this.translator})}cloneOutputArea(){return new R.SimplifiedOutputArea({model:this.model.outputs,contentFactory:this.contentFactory,rendermime:this._rendermime})}dispose(){if(this.isDisposed){return}this._output.outputLengthChanged.disconnect(this._outputLengthHandler,this);this._output.node.removeEventListener("keydown",this._detectCaretMovementInOuput);this._rendermime=null;this._output=null;this._outputWrapper=null;this._outputPlaceholder=null;super.dispose()}onStateChanged(e,t){switch(t.name){case"executionCount":if(t.newValue!==null){this.model.executionState="idle"}this._updatePrompt();break;case"executionState":this._updatePrompt();break;case"isDirty":if(e.isDirty){this.addClass(Me)}else{this.removeClass(Me)}break;default:break}}onOutputChanged(){var e;this._headingsCache=null;if(this._outputPlaceholder&&this.outputHidden){this._outputPlaceholder.text=(e=this.getOutputPlaceholderText())!==null&&e!==void 0?e:""}this.updatePromptOverlayIcon();const t=this.outputArea.node.style.height;if(this.model.outputs.length===0&&t!==""){this._lastOutputHeight=t;this.outputArea.node.style.height=""}else if(this.model.outputs.length>0&&t===""){this.outputArea.node.style.height=this._lastOutputHeight}}onMetadataChanged(e,t){switch(t.key){case"scrolled":if(this.syncScrolled){this.loadScrolledState()}break;case"collapsed":if(this.syncCollapse){this.loadCollapseState()}break;default:break}super.onMetadataChanged(e,t)}_updatePrompt(){let e;if(this.model.executionState=="running"){e="*"}else{e=`${this.model.executionCount||""}`}this._setPrompt(e)}_outputLengthHandler(e,t){const n=t===0?true:false;this.toggleClass(Fe,n);const i=this.translator.load("jupyterlab");const s=n?i.__("Code Cell Content"):i.__("Code Cell Content with Output");this.node.setAttribute("aria-label",s)}_sizeChangedHandler(e){this._displayChanged.emit()}}(function(e){async function t(e,t,n){var i;const s=e.model;const o=s.sharedModel.getSource();if(!o.trim()||!((i=t.session)===null||i===void 0?void 0:i.kernel)){s.sharedModel.transact((()=>{s.clearExecution()}),false);return}const r={cellId:s.sharedModel.getId()};n={...s.metadata,...n,...r};const{recordTiming:a}=n;s.sharedModel.transact((()=>{s.clearExecution();e.outputHidden=false}),false,"silent-change");s.executionState="running";s.trusted=true;let l;try{const i=R.OutputArea.execute(o,e.outputArea,t,n);if(a){const t=e=>{let t;switch(e.header.msg_type){case"status":t=`status.${e.content.execution_state}`;break;case"execute_input":t="execute_input";break;default:return true}const n=e.header.date||(new Date).toISOString();const i=Object.assign({},s.getMetadata("execution"));i[`iopub.${t}`]=n;s.setMetadata("execution",i);return true};e.outputArea.future.registerMessageHook(t)}else{s.deleteMetadata("execution")}l=e.outputArea.future;const r=await i;s.executionCount=r.content.execution_count;if(a){const e=Object.assign({},s.getMetadata("execution"));const t=r.metadata.started;if(t){e["shell.execute_reply.started"]=t}const n=r.header.date;e["shell.execute_reply"]=n||(new Date).toISOString();s.setMetadata("execution",e)}return r}catch(d){if(l&&!e.isDisposed&&e.outputArea.future===l){e.model.executionState="idle";if(a&&l.isDisposed){const e=Object.assign({},s.getMetadata("execution"));e["execution_failed"]=(new Date).toISOString();s.setMetadata("execution",e)}}throw d}}e.execute=t})(Ue||(Ue={}));class qe extends He{handleEvent(e){switch(e.type){case"lm-dragover":this._evtDragOver(e);break;case"lm-drop":this._evtDrop(e);break;default:break}}getEditorOptions(){var e,t;const n=(e=super.getEditorOptions())!==null&&e!==void 0?e:{};n.extensions=[...(t=n.extensions)!==null&&t!==void 0?t:[],ce.EditorView.domEventHandlers({dragenter:e=>{e.preventDefault()},dragover:e=>{e.preventDefault()},drop:e=>{this._evtNativeDrop(e)},paste:e=>{this._evtPaste(e)}})];return n}onAfterAttach(e){super.onAfterAttach(e);const t=this.node;t.addEventListener("lm-dragover",this);t.addEventListener("lm-drop",this)}onBeforeDetach(e){const t=this.node;t.removeEventListener("lm-dragover",this);t.removeEventListener("lm-drop",this);super.onBeforeDetach(e)}_evtDragOver(e){const t=(0,ge.some)(ue.imageRendererFactory.mimeTypes,(t=>{if(!e.mimeData.hasData(We)){return false}const n=e.mimeData.getData(We);return n.model.mimetype===t}));if(!t){return}e.preventDefault();e.stopPropagation();e.dropAction=e.proposedAction}_evtPaste(e){var t;const n=(t=this.model.getMetadata("editable"))!==null&&t!==void 0?t:true;if(e.clipboardData&&n){const t=e.clipboardData.items;for(let n=0;n{var t,n;(n=(t=this.editor).replaceSelection)===null||n===void 0?void 0:n.call(t,e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"))}))}this._attachFiles(e.clipboardData.items)}}e.preventDefault()}_evtNativeDrop(e){if(e.dataTransfer){this._attachFiles(e.dataTransfer.items)}e.preventDefault()}_evtDrop(e){const t=e.mimeData.types().filter((t=>{if(t===We){const t=e.mimeData.getData(We);return ue.imageRendererFactory.mimeTypes.indexOf(t.model.mimetype)!==-1}return ue.imageRendererFactory.mimeTypes.indexOf(t)!==-1}));if(t.length===0){return}e.preventDefault();e.stopPropagation();if(e.proposedAction==="none"){e.dropAction="none";return}e.dropAction="copy";for(const n of t){if(n===We){const{model:t,withContent:n}=e.mimeData.getData(We);if(t.type==="file"){const e=this._generateURI(t.name);this.updateCellSourceWithAttachment(t.name,e);void n().then((t=>{this.model.attachments.set(e,{[t.mimetype]:t.content})}))}}else{const t=this._generateURI();this.model.attachments.set(t,{[n]:e.mimeData.getData(n)});this.updateCellSourceWithAttachment(t,t)}}}_attachFiles(e){for(let t=0;t{const{href:i,protocol:s}=ie.URLExt.parse(t.result);if(s!=="data:"){return}const o=/([\w+\/\+]+)?(?:;(charset=[\w\d-]*|base64))?,(.*)/;const r=o.exec(i);if(!r||r.length!==4){return}const a=r[1];const l=r[3];const d={[a]:l};const c=this._generateURI(e.name);if(a.startsWith("image/")){this.model.attachments.set(c,d);this.updateCellSourceWithAttachment(e.name,c)}};t.onerror=t=>{console.error(`Failed to attach ${e.name}`+t)};t.readAsDataURL(e)}_generateURI(e=""){const t=e.lastIndexOf(".");return t!==-1?me.UUID.uuid4().concat(e.substring(t)):me.UUID.uuid4()}}class $e extends qe{constructor(e){var t,n,i,s,o;super({...e,placeholder:true});this._headingsCache=null;this._headingCollapsedChanged=new P.Signal(this);this._prevText="";this._rendered=true;this._renderedChanged=new P.Signal(this);this._showEditorForReadOnlyMarkdown=true;this._cachedHeadingText="";this._headingResolved=false;this.addClass(Ae);this.model.contentChanged.connect(this.onContentChanged,this);const r=this.translator.load("jupyterlab");this.node.setAttribute("aria-label",r.__("Markdown Cell Content"));this._rendermime=e.rendermime.clone({resolver:new L.AttachmentsResolver({parent:(t=e.rendermime.resolver)!==null&&t!==void 0?t:undefined,model:this.model.attachments})});this._renderer=this._rendermime.createRenderer("text/markdown");this._renderer.addClass(Pe);this._headingCollapsed=(n=this.model.getMetadata(Le))!==null&&n!==void 0?n:false;this._showEditorForReadOnlyMarkdown=(i=e.showEditorForReadOnlyMarkdown)!==null&&i!==void 0?i:$e.defaultShowEditorForReadOnlyMarkdown;this.placeholder=(s=e.placeholder)!==null&&s!==void 0?s:true;this._monitor=new ie.ActivityMonitor({signal:this.model.contentChanged,timeout:ze});this.ready.then((()=>{if(this.isDisposed){return}this._monitor.activityStopped.connect((()=>{if(this._rendered){this.update()}}),this)})).catch((e=>{console.error("Failed to be ready",e)}));this._cachedHeadingText=this.model.sharedModel.getSource();this._emptyPlaceholder=(o=e.emptyPlaceholder)!==null&&o!==void 0?o:r.__("Type Markdown and LaTeX: $ α^2 $")}get headingInfo(){const e=this.headings;if(e.length>0){const{text:t,level:n}=e.reduce(((e,t)=>e.level<=t.level?e:t),e[0]);return{text:t,level:n}}else{return{text:"",level:-1}}}get headings(){var e;return(e=this._headingsCache)!==null&&e!==void 0?e:[]}async getHeadings(){if(!this._headingsCache){const e=await pe.TableOfContentsUtils.Markdown.parseHeadings(this.model.sharedModel.getSource(),this._rendermime.markdownParser);this._headingsCache=e.map((e=>({...e,type:He.HeadingType.Markdown})));this._headingResolved=true;this.renderCollapseButtons()}return[...this._headingsCache]}get headingCollapsed(){return this._headingCollapsed}set headingCollapsed(e){var t;if(this._headingCollapsed!==e){this._headingCollapsed=e;if(e){this.model.setMetadata(Le,e)}else if(this.model.getMetadata(Le)!=="undefined"){this.model.deleteMetadata(Le)}const n=(t=this.inputArea)===null||t===void 0?void 0:t.promptNode.getElementsByClassName(Re)[0];if(n){if(e){n.classList.add("jp-mod-collapsed")}else{n.classList.remove("jp-mod-collapsed")}}this.renderCollapseButtons(this._renderer);this._headingCollapsedChanged.emit(this._headingCollapsed)}}get numberChildNodes(){return this._numberChildNodes}set numberChildNodes(e){this._numberChildNodes=e;this.renderCollapseButtons(this._renderer)}get headingCollapsedChanged(){return this._headingCollapsedChanged}get rendered(){return this._rendered}set rendered(e){if(this.readOnly&&this._showEditorForReadOnlyMarkdown===false){e=true}if(e===this._rendered){return}this._rendered=e;this._handleRendered().then((()=>{this._displayChanged.emit();this._renderedChanged.emit(this._rendered)})).catch((e=>{console.error("Failed to render",e)}))}get renderedChanged(){return this._renderedChanged}get showEditorForReadOnly(){return this._showEditorForReadOnlyMarkdown}set showEditorForReadOnly(e){this._showEditorForReadOnlyMarkdown=e;if(e===false){this.rendered=true}}get renderer(){return this._renderer}dispose(){if(this.isDisposed){return}this._monitor.dispose();super.dispose()}initializeDOM(){if(!this.placeholder){return}super.initializeDOM();this.renderCollapseButtons(this._renderer);this._handleRendered().catch((e=>{console.error("Failed to render",e)}))}maybeCreateCollapseButton(){var e;const{level:t}=this.headingInfo;if(t>0&&((e=this.inputArea)===null||e===void 0?void 0:e.promptNode.getElementsByClassName(Re).length)==0){let e=this.inputArea.promptNode.appendChild(document.createElement("button"));e.className=`jp-Button ${Re}`;e.setAttribute("data-heading-level",t.toString());if(this._headingCollapsed){e.classList.add("jp-mod-collapsed")}else{e.classList.remove("jp-mod-collapsed")}e.onclick=e=>{this.headingCollapsed=!this.headingCollapsed}}}maybeCreateOrUpdateExpandButton(){const e=this.node.getElementsByClassName(Ne);let t=this.translator.load("jupyterlab");let n=t._n("%1 cell hidden","%1 cells hidden",this._numberChildNodes);let i=this.headingCollapsed&&this._numberChildNodes>0&&e.length==0;if(i){const e=document.createElement("button");e.className=`jp-mod-minimal jp-Button ${Ne}`;h.addIcon.render(e);const t=document.createElement("div");t.textContent=n;e.appendChild(t);e.onclick=()=>{this.headingCollapsed=false};this.node.appendChild(e)}let s=this.headingCollapsed&&this._numberChildNodes>0&&e.length==1;if(s){e[0].childNodes[1].textContent=n}let o=!(this.headingCollapsed&&this._numberChildNodes>0);if(o){for(const t of e){this.node.removeChild(t)}}}onContentChanged(){super.onContentChanged();const e=this.model;const t=e&&e.sharedModel.getSource();if(t!==this._cachedHeadingText){this._cachedHeadingText=t;this._headingsCache=null;this._headingResolved=false}}renderCollapseButtons(e){this.node.classList.toggle(Le,this._headingCollapsed);this.maybeCreateCollapseButton();this.maybeCreateOrUpdateExpandButton()}renderInput(e){this.addClass(Oe);if(!this.placeholder&&!this.isDisposed){this.renderCollapseButtons(e);this.inputArea.renderInput(e)}}showEditor(){this.removeClass(Oe);if(!this.placeholder&&!this.isDisposed){this.inputArea.showEditor();let e=(this.model.sharedModel.getSource().match(/^#+/g)||[""])[0].length;if(e>0){this.inputArea.editor.setCursorPosition({column:e+1,line:0},{scroll:false})}}}onUpdateRequest(e){this._handleRendered().catch((e=>{console.error("Failed to render",e)}));super.onUpdateRequest(e)}updateCellSourceWithAttachment(e,t){var n,i;const s=`![${e}](attachment:${t!==null&&t!==void 0?t:e})`;(i=(n=this.editor)===null||n===void 0?void 0:n.replaceSelection)===null||i===void 0?void 0:i.call(n,s)}async _handleRendered(){if(!this._rendered){this.showEditor()}else{await this._updateRenderedInput();if(this._rendered){this.renderInput(this._renderer)}}}_updateRenderedInput(){if(this.placeholder){return Promise.resolve()}const e=this.model;const t=e&&e.sharedModel.getSource()||this._emptyPlaceholder;if(t!==this._prevText){const e=new ue.MimeModel({data:{"text/markdown":t}});this._prevText=t;return this._renderer.renderModel(e)}return Promise.resolve()}clone(){const e=this.constructor;return new e({model:this.model,contentFactory:this.contentFactory,rendermime:this._rendermime,placeholder:false,translator:this.translator})}get headingsResolved(){return this._headingResolved}}(function(e){e.defaultShowEditorForReadOnlyMarkdown=true})($e||($e={}));class Ke extends He{constructor(e){super(e);this.addClass(Be);const t=this.translator.load("jupyterlab");this.node.setAttribute("aria-label",t.__("Raw Cell Content"))}clone(){const e=this.constructor;return new e({model:this.model,contentFactory:this.contentFactory,placeholder:false,translator:this.translator})}}},53377:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(5893);var a=n(38457);var l=n(17325);var d=n(19562);var c=n(23359);var h=n(39063);var u=n(1649);var p=n(66731);var m=n(85072);var g=n.n(m);var f=n(97825);var v=n.n(f);var _=n(77659);var b=n.n(_);var y=n(55056);var w=n.n(y);var C=n(10540);var x=n.n(C);var S=n(41113);var j=n.n(S);var k=n(55717);var I={};I.styleTagTransform=j();I.setAttributes=w();I.insert=b().bind(null,"head");I.domAPI=v();I.insertStyleElement=x();var T=g()(k.A,I);const E=k.A&&k.A.locals?k.A.locals:undefined},28211:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>_});var i=n(74823);var s=n(44914);var o=n.n(s);var r=n(4073);var a=n(34236);var l=n(34881);const d="jp-CellTags";const c="jp-CellTags-Tag";const h="jp-CellTags-Applied";const u="jp-CellTags-Unapplied";const p="jp-CellTags-Holder";const m="jp-CellTags-Add";const g="jp-CellTags-Empty";class f{constructor(e,t){this._tracker=e;this._translator=t||l.nullTranslator;this._trans=this._translator.load("jupyterlab");this._editing=false}addTag(e,t){const n=e.formData;if(t&&!n.includes(t)){n.push(t);e.formContext.updateMetadata({[e.name]:n},true)}}pullTags(){var e,t;const n=(e=this._tracker)===null||e===void 0?void 0:e.currentWidget;const i=(t=n===null||n===void 0?void 0:n.model)===null||t===void 0?void 0:t.cells;if(i===undefined){return[]}const s=(0,a.reduce)(i,((e,t)=>{var n;const i=(n=t.getMetadata("tags"))!==null&&n!==void 0?n:[];return[...e,...i]}),[]);return[...new Set(s)].filter((e=>e!==""))}_emptyAddTag(e){e.value="";e.style.width="";e.classList.add(g)}_onAddTagKeyDown(e,t){const n=t.target;if(t.ctrlKey)return;if(t.key==="Enter"){this.addTag(e,n.value)}else if(t.key==="Escape"){this._emptyAddTag(n)}}_onAddTagFocus(e){if(!this._editing){e.target.blur()}}_onAddTagBlur(e){if(this._editing){this._editing=false;this._emptyAddTag(e)}}_onChange(e){if(!e.target.value){this._emptyAddTag(e.target)}else{e.target.classList.remove(g);const t=document.createElement("span");t.className=m;t.textContent=e.target.value;document.body.appendChild(t);e.target.style.setProperty("width",`calc(${t.getBoundingClientRect().width}px + var(--jp-add-tag-extra-width))`);document.body.removeChild(t)}}_onAddTagClick(e,t){const n=t.target.closest("div");const i=n===null||n===void 0?void 0:n.childNodes[0];if(!this._editing){this._editing=true;i.value="";i.focus()}else if(t.target!==i){this.addTag(e,i.value)}t.preventDefault()}_onTagClick(e,t){const n=e.formData;if(n.includes(t)){n.splice(n.indexOf(t),1)}else{n.push(t)}e.formContext.updateMetadata({[e.name]:n},true)}render(e){const t=this.pullTags();return o().createElement("div",{className:d},o().createElement("div",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem"},"Cell Tags"),t&&t.map(((t,n)=>o().createElement("div",{key:n,className:`${c} ${e.formData.includes(t)?h:u}`,onClick:()=>this._onTagClick(e,t)},o().createElement("div",{className:p},o().createElement("span",null,t),e.formData.includes(t)&&o().createElement(r.LabIcon.resolveReact,{icon:r.checkIcon,tag:"span",elementPosition:"center",height:"18px",width:"18px",marginLeft:"5px",marginRight:"-3px"}))))),o().createElement("div",{className:`${c} ${u}`},o().createElement("div",{className:p,onMouseDown:t=>this._onAddTagClick(e,t)},o().createElement("input",{className:`${m} ${g}`,type:"text",placeholder:this._trans.__("Add Tag"),onKeyDown:t=>this._onAddTagKeyDown(e,t),onFocus:e=>this._onAddTagFocus(e),onBlur:e=>this._onAddTagBlur(e.target),onChange:e=>{this._onChange(e)}}),o().createElement(r.LabIcon.resolveReact,{icon:r.addIcon,tag:"span",height:"18px",width:"18px",className:p}))))}}const v={id:"@jupyterlab/celltags-extension:plugin",description:"Adds the cell tags editor.",autoStart:true,requires:[i.INotebookTracker],optional:[r.IFormRendererRegistry],activate:(e,t,n)=>{if(n){const e={fieldRenderer:e=>new f(t).render(e)};n.addRenderer("@jupyterlab/celltags-extension:plugin.renderer",e)}}};const _=[v]},11114:(e,t,n)=>{"use strict";var i=n(40662);var s=n(3579);var o=n(28006);var r=n(85072);var a=n.n(r);var l=n(97825);var d=n.n(l);var c=n(77659);var h=n.n(c);var u=n(55056);var p=n.n(u);var m=n(10540);var g=n.n(m);var f=n(41113);var v=n.n(f);var _=n(96415);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.A,b);const w=_.A&&_.A.locals?_.A.locals:undefined},32069:(e,t,n)=>{"use strict";n.r(t);n.d(t,{COMPLETER_ACTIVE_CLASS:()=>j,COMPLETER_ENABLED_CLASS:()=>S,COMPLETER_LINE_BEGINNING_CLASS:()=>k,CodeEditor:()=>a,CodeEditorWrapper:()=>P,CodeViewerWidget:()=>R,IEditorMimeTypeService:()=>r,IEditorServices:()=>I,IPositionModel:()=>T,JSONEditor:()=>f,LineCol:()=>x});var i=n(95917);var s=n(23230);var o=n(2336);var r;(function(e){e.defaultMimeType="text/plain"})(r||(r={}));var a;(function(e){class t{constructor(e={}){var t,n;this.standaloneModel=false;this._isDisposed=false;this._selections=new s.ObservableMap;this._mimeType=r.defaultMimeType;this._mimeTypeChanged=new o.Signal(this);this.standaloneModel=typeof e.sharedModel==="undefined";this.sharedModel=(t=e.sharedModel)!==null&&t!==void 0?t:new i.YFile;this._mimeType=(n=e.mimeType)!==null&&n!==void 0?n:r.defaultMimeType}get mimeTypeChanged(){return this._mimeTypeChanged}get selections(){return this._selections}get mimeType(){return this._mimeType}set mimeType(e){const t=this.mimeType;if(t===e){return}this._mimeType=e;this._mimeTypeChanged.emit({name:"mimeType",oldValue:t,newValue:e})}get isDisposed(){return this._isDisposed}dispose(){if(this._isDisposed){return}this._isDisposed=true;this._selections.dispose();if(this.standaloneModel){this.sharedModel.dispose()}o.Signal.clearData(this)}}e.Model=t})(a||(a={}));var l=n(34881);var d=n(4073);var c=n(5592);var h=n(27518);const u="jp-JSONEditor";const p="jp-mod-error";const m="jp-JSONEditor-host";const g="jp-JSONEditor-header";class f extends h.Widget{constructor(e){super();this._dataDirty=false;this._inputDirty=false;this._source=null;this._originalValue=c.JSONExt.emptyObject;this._changeGuard=false;this.translator=e.translator||l.nullTranslator;this._trans=this.translator.load("jupyterlab");this.addClass(u);this.headerNode=document.createElement("div");this.headerNode.className=g;this.revertButtonNode=d.undoIcon.element({tag:"span",title:this._trans.__("Revert changes to data")});this.commitButtonNode=d.checkIcon.element({tag:"span",title:this._trans.__("Commit changes to data"),marginLeft:"8px"});this.editorHostNode=document.createElement("div");this.editorHostNode.className=m;this.headerNode.appendChild(this.revertButtonNode);this.headerNode.appendChild(this.commitButtonNode);this.node.appendChild(this.headerNode);this.node.appendChild(this.editorHostNode);const t=new a.Model({mimeType:"application/json"});t.sharedModel.changed.connect(this._onModelChanged,this);this.model=t;this.editor=e.editorFactory({host:this.editorHostNode,model:t,config:{readOnly:true}})}get source(){return this._source}set source(e){if(this._source===e){return}if(this._source){this._source.changed.disconnect(this._onSourceChanged,this)}this._source=e;this.editor.setOption("readOnly",e===null);if(e){e.changed.connect(this._onSourceChanged,this)}this._setValue()}get isDirty(){return this._dataDirty||this._inputDirty}dispose(){var e;if(this.isDisposed){return}(e=this.source)===null||e===void 0?void 0:e.dispose();this.model.dispose();this.editor.dispose();super.dispose()}handleEvent(e){switch(e.type){case"blur":this._evtBlur(e);break;case"click":this._evtClick(e);break;default:break}}onAfterAttach(e){const t=this.editorHostNode;t.addEventListener("blur",this,true);t.addEventListener("click",this,true);this.revertButtonNode.hidden=true;this.commitButtonNode.hidden=true;this.headerNode.addEventListener("click",this)}onBeforeDetach(e){const t=this.editorHostNode;t.removeEventListener("blur",this,true);t.removeEventListener("click",this,true);this.headerNode.removeEventListener("click",this)}_onSourceChanged(e,t){if(this._changeGuard){return}if(this._inputDirty||this.editor.hasFocus()){this._dataDirty=true;return}this._setValue()}_onModelChanged(e,t){if(t.sourceChange){let e=true;try{const e=JSON.parse(this.editor.model.sharedModel.getSource());this.removeClass(p);this._inputDirty=!this._changeGuard&&!c.JSONExt.deepEqual(e,this._originalValue)}catch(n){this.addClass(p);this._inputDirty=true;e=false}this.revertButtonNode.hidden=!this._inputDirty;this.commitButtonNode.hidden=!e||!this._inputDirty}}_evtBlur(e){if(!this._inputDirty&&this._dataDirty){this._setValue()}}_evtClick(e){const t=e.target;if(this.revertButtonNode.contains(t)){this._setValue()}else if(this.commitButtonNode.contains(t)){if(!this.commitButtonNode.hidden&&!this.hasClass(p)){this._changeGuard=true;this._mergeContent();this._changeGuard=false;this._setValue()}}else if(this.editorHostNode.contains(t)){this.editor.focus()}}_mergeContent(){const e=this.editor.model;const t=this._originalValue;const n=JSON.parse(e.sharedModel.getSource());const i=this.source;if(!i){return}for(const s in n){if(!c.JSONExt.deepEqual(n[s],t[s]||null)){i.set(s,n[s])}}for(const s in t){if(!(s in n)){i.delete(s)}}}_setValue(){this._dataDirty=false;this._inputDirty=false;this.revertButtonNode.hidden=true;this.commitButtonNode.hidden=true;this.removeClass(p);const e=this.editor.model;const t=this._source?this._source.toJSON():{};this._changeGuard=true;if(t===void 0){e.sharedModel.setSource(this._trans.__("No data!"));this._originalValue=c.JSONExt.emptyObject}else{const n=JSON.stringify(t,null,4);e.sharedModel.setSource(n);this._originalValue=t;if(n.length>1&&n[0]==="{"){this.editor.setCursorPosition({line:0,column:1})}}this._changeGuard=false;this.commitButtonNode.hidden=true;this.revertButtonNode.hidden=true}}var v=n(4625);var _=n(44914);var b=n.n(_);var y=n(38850);class w extends b().Component{constructor(e){super(e);this._handleChange=e=>{this.setState({value:e.currentTarget.value})};this._handleSubmit=e=>{e.preventDefault();const t=parseInt(this._textInput.value,10);if(!isNaN(t)&&isFinite(t)&&1<=t&&t<=this.props.maxLine){this.props.handleSubmit(t)}return false};this._handleFocus=()=>{this.setState({hasFocus:true})};this._handleBlur=()=>{this.setState({hasFocus:false})};this._textInput=null;this.translator=e.translator||l.nullTranslator;this._trans=this.translator.load("jupyterlab");this.state={value:"",hasFocus:false,textInputId:y.DOMUtils.createDomID()+"-line-number-input"}}componentDidMount(){this._textInput.focus()}render(){return b().createElement("div",{className:"jp-lineFormSearch"},b().createElement("form",{name:"lineColumnForm",onSubmit:this._handleSubmit,noValidate:true},b().createElement("div",{className:(0,d.classes)("jp-lineFormWrapper","lm-lineForm-wrapper",this.state.hasFocus?"jp-lineFormWrapperFocusWithin":undefined)},b().createElement("input",{type:"text",id:this.state.textInputId,className:"jp-lineFormInput",onChange:this._handleChange,onFocus:this._handleFocus,onBlur:this._handleBlur,value:this.state.value,ref:e=>{this._textInput=e}}),b().createElement("div",{className:"jp-baseLineForm jp-lineFormButtonContainer"},b().createElement(d.lineFormIcon.react,{className:"jp-baseLineForm jp-lineFormButtonIcon",elementPosition:"center"}),b().createElement("input",{type:"submit",className:"jp-baseLineForm jp-lineFormButton",value:""}))),b().createElement("label",{className:"jp-lineFormCaption",htmlFor:this.state.textInputId},this._trans.__("Go to line number between 1 and %1",this.props.maxLine))))}}function C(e){const t=e.translator||l.nullTranslator;const n=t.load("jupyterlab");const i=t=>{if(t.key==="Enter"||t.key==="Spacebar"||t.key===" "){t.preventDefault();t.stopPropagation();e.handleClick()}else{return}};return b().createElement(v.TextItem,{role:"button","aria-haspopup":true,onClick:e.handleClick,source:n.__("Ln %1, Col %2",e.line,e.column),title:n.__("Go to line number…"),tabIndex:0,onKeyDown:i})}class x extends d.VDomRenderer{constructor(e){super(new x.Model);this._popup=null;this.addClass("jp-mod-highlighted");this.translator=e||l.nullTranslator}render(){if(this.model===null){return null}else{return b().createElement(C,{line:this.model.line,column:this.model.column,translator:this.translator,handleClick:()=>this._handleClick()})}}_handleClick(){if(this._popup){this._popup.dispose()}const e=d.ReactWidget.create(b().createElement(w,{handleSubmit:e=>this._handleSubmit(e),currentLine:this.model.line,maxLine:this.model.editor.lineCount,translator:this.translator}));this._popup=(0,v.showPopup)({body:e,anchor:this,align:"right"})}_handleSubmit(e){this.model.editor.setCursorPosition({line:e-1,column:0});this._popup.dispose();this.model.editor.focus()}}(function(e){class t extends d.VDomModel{constructor(){super(...arguments);this._onSelectionChanged=()=>{const e=this._getAllState();const t=this.editor.getCursorPosition();this._line=t.line+1;this._column=t.column+1;this._triggerChange(e,this._getAllState())};this._line=1;this._column=1;this._editor=null}get editor(){return this._editor}set editor(e){var t;const n=this._editor;if((t=n===null||n===void 0?void 0:n.model)===null||t===void 0?void 0:t.selections){n.model.selections.changed.disconnect(this._onSelectionChanged)}const i=this._getAllState();this._editor=e;if(!this._editor){this._column=1;this._line=1}else{this._editor.model.selections.changed.connect(this._onSelectionChanged);const e=this._editor.getCursorPosition();this._column=e.column+1;this._line=e.line+1}this._triggerChange(i,this._getAllState())}get line(){return this._line}get column(){return this._column}_getAllState(){return[this._line,this._column]}_triggerChange(e,t){if(e[0]!==t[0]||e[1]!==t[1]){this.stateChanged.emit(void 0)}}}e.Model=t})(x||(x={}));const S="jp-mod-completer-enabled";const j="jp-mod-completer-active";const k="jp-mod-at-line-beginning";const I=new c.Token("@jupyterlab/codeeditor:IEditorServices",`A service for the text editor provider\n for the application. Use this to create new text editors and host them in your\n UI elements.`);const T=new c.Token("@jupyterlab/codeeditor:IPositionModel",`A service to handle an code editor cursor position.`);const E="jp-mod-has-primary-selection";const M="jp-mod-in-leading-whitespace";const D="jp-mod-dropTarget";const A=/^\s+$/;class P extends h.Widget{constructor(e){super();const{factory:t,model:n,editorOptions:i}=e;const s=this.editor=t({host:this.node,model:n,...i});s.model.selections.changed.connect(this._onSelectionsChanged,this)}get model(){return this.editor.model}dispose(){if(this.isDisposed){return}this.editor.dispose();super.dispose()}handleEvent(e){switch(e.type){case"lm-dragenter":this._evtDragEnter(e);break;case"lm-dragleave":this._evtDragLeave(e);break;case"lm-dragover":this._evtDragOver(e);break;case"lm-drop":this._evtDrop(e);break;default:break}}onActivateRequest(e){this.editor.focus()}onAfterAttach(e){super.onAfterAttach(e);const t=this.node;t.addEventListener("lm-dragenter",this);t.addEventListener("lm-dragleave",this);t.addEventListener("lm-dragover",this);t.addEventListener("lm-drop",this)}onBeforeDetach(e){const t=this.node;t.removeEventListener("lm-dragenter",this);t.removeEventListener("lm-dragleave",this);t.removeEventListener("lm-dragover",this);t.removeEventListener("lm-drop",this)}_onSelectionsChanged(){const{start:e,end:t}=this.editor.getSelection();if(e.column!==t.column||e.line!==t.line){this.addClass(E);this.removeClass(M)}else{this.removeClass(E);if(this.editor.getLine(t.line).slice(0,t.column).match(A)){this.addClass(M)}else{this.removeClass(M)}}}_evtDragEnter(e){if(this.editor.getOption("readOnly")===true){return}const t=L.findTextData(e.mimeData);if(t===undefined){return}e.preventDefault();e.stopPropagation();this.addClass("jp-mod-dropTarget")}_evtDragLeave(e){this.removeClass(D);if(this.editor.getOption("readOnly")===true){return}const t=L.findTextData(e.mimeData);if(t===undefined){return}e.preventDefault();e.stopPropagation()}_evtDragOver(e){this.removeClass(D);if(this.editor.getOption("readOnly")===true){return}const t=L.findTextData(e.mimeData);if(t===undefined){return}e.preventDefault();e.stopPropagation();e.dropAction="copy";this.addClass(D)}_evtDrop(e){if(this.editor.getOption("readOnly")===true){return}const t=L.findTextData(e.mimeData);if(t===undefined){return}const n={top:e.y,bottom:e.y,left:e.x,right:e.x};const i=this.editor.getPositionForCoordinate(n);if(i===null){return}this.removeClass(D);e.preventDefault();e.stopPropagation();if(e.proposedAction==="none"){e.dropAction="none";return}const s=this.editor.getOffsetAt(i);this.model.sharedModel.updateSource(s,s,t)}}var L;(function(e){function t(e){const t=e.types();const n=t.find((e=>e.indexOf("text")===0));if(n===undefined){return undefined}return e.getData(n)}e.findTextData=t})(L||(L={}));class R extends h.Widget{constructor(e){var t;super();this.model=e.model;const n=new P({factory:e.factory,model:this.model,editorOptions:{...e.editorOptions,config:{...(t=e.editorOptions)===null||t===void 0?void 0:t.config,readOnly:true}}});this.editor=n.editor;const i=this.layout=new h.StackedLayout;i.addWidget(n)}static createCodeViewer(e){const{content:t,mimeType:n,...i}=e;const s=new a.Model({mimeType:n});s.sharedModel.setSource(t);const o=new R({...i,model:s});o.disposed.connect((()=>{s.dispose()}));return o}get content(){return this.model.sharedModel.getSource()}get mimeType(){return this.model.mimeType}}},17325:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(24800);var r=n(97913);var a=n(38457);var l=n(85072);var d=n.n(l);var c=n(97825);var h=n.n(c);var u=n(77659);var p=n.n(u);var m=n(55056);var g=n.n(m);var f=n(10540);var v=n.n(f);var _=n(41113);var b=n.n(_);var y=n(9534);var w={};w.styleTagTransform=b();w.setAttributes=g();w.insert=p().bind(null,"head");w.domAPI=h();w.insertStyleElement=v();var C=d()(y.A,w);const x=y.A&&y.A.locals?y.A.locals:undefined},21699:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>D,lineColItem:()=>E});var i=n(88617);var s=n(44389);var o=n(4625);var r=n(34881);var a=n(58285);var l=n(4452);var d=n(43370);var c=n(74823);var h=n(38850);var u;(function(e){e.deleteLine="codemirror:delete-line";e.toggleBlockComment="codemirror:toggle-block-comment";e.toggleComment="codemirror:toggle-comment";e.selectNextOccurrence="codemirror:select-next-occurrence";e.toggleTabFocusMode="codemirror:toggle-tab-focus-mode";e.foldCurrent="codemirror:fold-current";e.unfoldCurrent="codemirror:unfold-current";e.foldSubregions="codemirror:fold-subregions";e.unfoldSubregions="codemirror:unfold-subregions";e.foldAll="codemirror:fold-all";e.unfoldAll="codemirror:unfold-all"})(u||(u={}));const p=".cm-content";const m={id:"@jupyterlab/codemirror-extension:commands",description:"Registers commands acting on selected/active CodeMirror editor.",autoStart:true,requires:[c.INotebookTracker],optional:[r.ITranslator,h.ICommandPalette],activate:(e,t,n,i)=>{n=n!==null&&n!==void 0?n:r.nullTranslator;const s=n.load("jupyterlab");const o=e=>e.classList.contains(p);const c=()=>{var t,n;const i=(t=e.contextMenuHitTest(o))!==null&&t!==void 0?t:(n=document.activeElement)===null||n===void 0?void 0:n.closest(p);if(!i){return}if(!("cmView"in i)){return}return i.cmView.view};const h=()=>!!c();const m=()=>{var n,i;const s=e.shell.currentWidget;const o=(n=t.currentWidget)===null||n===void 0?void 0:n.content;if(t.currentWidget!==null&&t.currentWidget===s&&o&&o.activeCell){return{type:"notebook",widget:s,notebook:o,isEnabled:true}}const r=s;if(r&&r.content&&typeof((i=r.content.editor)===null||i===void 0?void 0:i.focus)==="function"){return{type:"fileEditor",widget:r,isEnabled:true}}return{type:"none",widget:null,isEnabled:false}};const g=()=>m().isEnabled;e.commands.addCommand(u.deleteLine,{label:s.__("Delete the current line"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{const e=c();if(!e){return}(0,a.deleteLine)(e)},isEnabled:h});e.commands.addCommand(u.toggleBlockComment,{label:s.__("Toggle Block Comment"),caption:s.__("Toggles block comments in languages which support it (e.g. C, JavaScript)"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{const e=c();if(!e){return}(0,a.toggleBlockComment)(e)},isEnabled:h});e.commands.addCommand(u.toggleComment,{label:s.__("Toggle Comment"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{const e=c();if(!e){return}(0,a.toggleComment)(e)},isEnabled:h});e.commands.addCommand(u.toggleTabFocusMode,{label:s.__("Toggle Tab Focus Mode"),caption:s.__("Toggles behavior of Tab key between inserting indentation and moving to next focusable element"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{const e=c();if(!e){return}(0,a.toggleTabFocusMode)(e)},isEnabled:h});e.commands.addCommand(u.selectNextOccurrence,{label:s.__("Select Next Occurrence"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{const e=c();if(!e){return}(0,d.selectNextOccurrence)(e)},isEnabled:h});e.commands.addCommand(u.foldCurrent,{label:s.__("Fold Current Region"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{var e;const t=m();if(t.type==="notebook"){t.notebook.mode="edit";if(t.notebook.activeCell){(e=t.notebook.activeCell.editor)===null||e===void 0?void 0:e.focus()}}else if(t.type==="fileEditor"){t.widget.content.editor.focus()}const n=c();if(!n){return}const{state:i}=n;const s=i.selection.main.head;const o=i.doc.lineAt(s);const r=(0,l.foldable)(i,o.from,o.to);if(r){(0,l.foldCode)(n)}},isEnabled:g});e.commands.addCommand(u.unfoldCurrent,{label:s.__("Unfold Current Region"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{var e;const t=m();if(t.type==="notebook"){t.notebook.mode="edit";if(t.notebook.activeCell){(e=t.notebook.activeCell.editor)===null||e===void 0?void 0:e.focus()}}else if(t.type==="fileEditor"){t.widget.content.editor.focus()}const n=c();if(!n){return}const{state:i}=n;const s=i.selection.main.head;const o=i.doc.lineAt(s);const r=(0,l.foldable)(i,o.from,o.to);if(r){(0,l.unfoldCode)(n)}},isEnabled:g});e.commands.addCommand(u.foldSubregions,{label:s.__("Fold All Subregions"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{var e;const t=m();if(t.type==="notebook"){t.notebook.mode="edit";if(t.notebook.activeCell){(e=t.notebook.activeCell.editor)===null||e===void 0?void 0:e.focus()}}else if(t.type==="fileEditor"){t.widget.content.editor.focus()}const n=c();if(!n){return}try{const{state:e}=n;const t=e.selection.main.head;const s=e.doc.lineAt(t);const o=(0,l.foldable)(e,s.from,s.to);let r=false;try{const t=e.field(l.foldState,false);r=t!==undefined}catch(i){r=false}if(!r){(0,l.foldCode)(n);(0,l.unfoldCode)(n)}if(!o){return}const a=[];let d=o.from+1;while(do.from&&n.to<=o.to){a.push(l.foldEffect.of(n));d=n.to}else{d=t.to+1}}if(a.length>0){n.dispatch({effects:a})}}catch(i){}},isEnabled:g});e.commands.addCommand(u.unfoldSubregions,{label:s.__("Unfold All Subregions"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{var e;const t=m();if(t.type==="notebook"){t.notebook.mode="edit";if(t.notebook.activeCell){(e=t.notebook.activeCell.editor)===null||e===void 0?void 0:e.focus()}}else if(t.type==="fileEditor"){t.widget.content.editor.focus()}const n=c();if(!n){return}try{const{state:e}=n;const t=e.selection.main.head;const i=e.doc.lineAt(t);const s=(0,l.foldable)(e,i.from,i.to);if(!s){return}const o=e.field(l.foldState,false);if(!o){return}const r=[];o.between(s.from+1,s.to,((e,t)=>{if(e>s.from&&t<=s.to){r.push(l.unfoldEffect.of({from:e,to:t}))}}));if(r.length>0){n.dispatch({effects:r})}}catch(i){}},isEnabled:g});e.commands.addCommand(u.foldAll,{label:s.__("Fold All Regions"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{var e;const t=m();if(t.type==="notebook"){t.notebook.mode="edit";if(t.notebook.activeCell){(e=t.notebook.activeCell.editor)===null||e===void 0?void 0:e.focus()}}else if(t.type==="fileEditor"){t.widget.content.editor.focus()}const n=c();if(!n){return}try{(0,l.foldAll)(n)}catch(i){}},isEnabled:g});e.commands.addCommand(u.unfoldAll,{label:s.__("Unfold All Regions"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{var e;const t=m();if(t.type==="notebook"){t.notebook.mode="edit";if(t.notebook.activeCell){(e=t.notebook.activeCell.editor)===null||e===void 0?void 0:e.focus()}}else if(t.type==="fileEditor"){t.widget.content.editor.focus()}const n=c();if(!n){return}try{(0,l.unfoldAll)(n)}catch(i){}},isEnabled:g});if(i){const e=s.__("File Operations");[u.foldCurrent,u.unfoldCurrent,u.foldSubregions,u.unfoldSubregions,u.foldAll,u.unfoldAll].forEach((t=>{i.addItem({command:t,category:e})}))}}};var g=n(45713);var f=n(40065);var v=n(4073);var _=n(5592);var b=n(41742);var y=n.n(b);var w=n(44914);var C=n.n(w);const x="@jupyterlab/codemirror-extension:plugin";const S={id:"@jupyterlab/codemirror-extension:languages",description:"Provides the CodeMirror languages registry.",provides:g.IEditorLanguageRegistry,optional:[r.ITranslator],activate:(e,t)=>{const i=new g.EditorLanguageRegistry;for(const n of g.EditorLanguageRegistry.getDefaultLanguages(t)){i.addLanguage(n)}i.addLanguage({name:"ipythongfm",mime:"text/x-ipythongfm",load:async()=>{const[e,t,s]=await Promise.all([n.e(5625).then(n.t.bind(n,95625,23)),Promise.all([n.e(1423),n.e(9329),n.e(2819),n.e(1674),n.e(6575),n.e(5145)]).then(n.bind(n,9329)),n.e(9746).then(n.bind(n,89746))]);const o=e.markdown({base:e.markdownLanguage,codeLanguages:e=>i.findBest(e),extensions:[(0,g.parseMathIPython)(l.StreamLanguage.define(s.stexMath).parser)]});return new l.LanguageSupport(o.language,[o.support,(0,g.pythonBuiltin)(t.pythonLanguage)])}});return i}};const j={id:"@jupyterlab/codemirror-extension:themes",description:"Provides the CodeMirror theme registry",provides:g.IEditorThemeRegistry,optional:[r.ITranslator],activate:(e,t)=>{const n=new g.EditorThemeRegistry;for(const i of g.EditorThemeRegistry.getDefaultThemes(t)){n.addTheme(i)}return n}};const k={id:"@jupyterlab/codemirror-extension:extensions",description:"Provides the CodeMirror extension factory registry.",provides:g.IEditorExtensionRegistry,requires:[g.IEditorThemeRegistry],optional:[r.ITranslator,f.ISettingRegistry,v.IFormRendererRegistry],activate:(e,t,n,i,s)=>{const o=new g.EditorExtensionRegistry;for(const r of g.EditorExtensionRegistry.getDefaultExtensions({themes:t,translator:n})){o.addExtension(r)}if(i){const t=e=>{var t;o.baseConfiguration=(t=e.get("defaultConfig").composite)!==null&&t!==void 0?t:{}};void Promise.all([i.load(x),e.restored]).then((([e])=>{t(e);e.changed.connect(t)}));s===null||s===void 0?void 0:s.addRenderer(`${x}.defaultConfig`,{fieldRenderer:e=>{let t;const i=C().useMemo((()=>o.settingsSchema),[]);if(e.name in e.formContext.defaultFormData){t=e.formContext.defaultFormData[e.name]}else{t={}}for(const[n,s]of Object.entries(o.defaultConfiguration)){if(typeof i[n]!=="undefined"&&!(n in t)){t[n]=s}}return C().createElement("div",{className:"jp-FormGroup-contentNormal"},C().createElement("h3",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem"},e.schema.title),e.schema.description&&C().createElement("div",{className:"jp-FormGroup-description"},e.schema.description),C().createElement(v.FormComponent,{schema:{title:e.schema.title,description:e.schema.description,type:"object",properties:i,additionalProperties:false},validator:y(),formData:{...t,...e.formData},formContext:{defaultFormData:t},liveValidate:true,onChange:n=>{var i;const s={};for(const[e,o]of Object.entries((i=n.formData)!==null&&i!==void 0?i:{})){const n=t[e];if(n===undefined||!_.JSONExt.deepEqual(o,n)){s[e]=o}}e.onChange(s)},tagName:"div",translator:n!==null&&n!==void 0?n:r.nullTranslator}))}})}return o}};const I={id:"@jupyterlab/codemirror-extension:binding",description:"Register the CodeMirror extension factory binding the editor and the shared model.",autoStart:true,requires:[g.IEditorExtensionRegistry],activate:(e,t)=>{t.addExtension({name:"shared-model-binding",factory:e=>{var t;const n=e.model.sharedModel;return g.EditorExtensionRegistry.createImmutableExtension((0,g.ybinding)({ytext:n.ysource,undoManager:(t=n.undoManager)!==null&&t!==void 0?t:undefined}))}})}};const T={id:"@jupyterlab/codemirror-extension:services",description:"Provides the service to instantiate CodeMirror editors.",provides:s.IEditorServices,requires:[g.IEditorLanguageRegistry,g.IEditorExtensionRegistry],optional:[r.ITranslator],activate:(e,t,n,i)=>{const s=new g.CodeMirrorEditorFactory({extensions:n,languages:t,translator:i!==null&&i!==void 0?i:r.nullTranslator});return{factoryService:s,mimeTypeService:new g.CodeMirrorMimeTypeService(t)}}};const E={id:"@jupyterlab/codemirror-extension:line-col-status",description:"Provides the code editor cursor position model.",autoStart:true,requires:[r.ITranslator],optional:[i.ILabShell,o.IStatusBar],provides:s.IPositionModel,activate:(e,t,n,i)=>{const o=new s.LineCol(t);const r=new Set;if(i){i.registerStatusItem(E.id,{priority:1,item:o,align:"right",rank:2,isActive:()=>!!o.model.editor})}const a=t=>{r.add(t);if(e.shell.currentWidget){d(e.shell,{newValue:e.shell.currentWidget,oldValue:null})}};const l=()=>{d(e.shell,{oldValue:e.shell.currentWidget,newValue:e.shell.currentWidget})};function d(e,t){Promise.all([...r].map((e=>e(t.newValue)))).then((e=>{var t;o.model.editor=(t=e.filter((e=>e!==null))[0])!==null&&t!==void 0?t:null})).catch((e=>{console.error("Get editors",e)}))}if(n){n.currentChanged.connect(d)}return{addEditorProvider:a,update:l}}};const M=[m,S,j,I,k,T,E];const D=M},72508:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(24800);var r=n(97913);var a=n(17325);var l=n(3579);var d=n(23359);var c=n(28006)},68191:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CodeMirrorEditor:()=>le,CodeMirrorEditorFactory:()=>ce,CodeMirrorMimeTypeService:()=>he,CodeMirrorSearchHighlighter:()=>me,EditorExtensionRegistry:()=>J,EditorLanguageRegistry:()=>se,EditorSearchProvider:()=>pe,EditorThemeRegistry:()=>ee,ExtensionsHandler:()=>K,IEditorExtensionRegistry:()=>fe,IEditorLanguageRegistry:()=>ve,IEditorThemeRegistry:()=>_e,PythonBuiltin:()=>te,StateCommands:()=>d,YRange:()=>F,YSyncConfig:()=>z,customTheme:()=>b,jupyterEditorTheme:()=>X,jupyterHighlightStyle:()=>Q,jupyterTheme:()=>Z,parseMathIPython:()=>T,pythonBuiltin:()=>ne,rulers:()=>P,ySync:()=>V,ySyncAnnotation:()=>H,ySyncFacet:()=>W,ybinding:()=>U});var i=n(58285);var s=n(44389);const o="[data-jp-code-runner]";const r='[data-jp-interaction-mode="terminal"]';const a=".jp-CodeMirrorEditor:not(.jp-mod-has-primary-selection):not(.jp-mod-in-leading-whitespace):not(.jp-mod-completer-active)";const l=".jp-mod-editMode .jp-Cell.jp-mod-active";var d;(function(e){function t(e){var t;let n=(t=e.dom.parentElement)===null||t===void 0?void 0:t.classList;let o=n===null||n===void 0?void 0:n.contains(s.COMPLETER_ENABLED_CLASS);let r=n===null||n===void 0?void 0:n.contains(s.COMPLETER_LINE_BEGINNING_CLASS);if(o&&!r){return false}const a={state:e.state,dispatch:e.dispatch};const l=e.state.selection.main.from;const d=e.state.selection.main.to;if(l!=d){return(0,i.indentMore)(a)}const c=e.state.doc.lineAt(l);const h=e.state.doc.slice(c.from,l).toString();if(/^\s*$/.test(h)){return(0,i.indentMore)(a)}else{return(0,i.insertTab)(a)}}e.indentMoreOrInsertTab=t;function n(e){var t;if((t=e.dom.parentElement)===null||t===void 0?void 0:t.classList.contains(s.COMPLETER_ACTIVE_CLASS)){return false}if(e.dom.closest(r)){return false}const n={state:e.state,dispatch:e.dispatch};return(0,i.insertNewlineAndIndent)(n)}e.completerOrInsertNewLine=n;function d(e){if(e.dom.closest(o)){return true}return false}e.preventNewLineOnRun=d;function c(e){if(e.dom.closest(o)){return false}else{const t={state:e.state,dispatch:e.dispatch};return(0,i.insertBlankLine)(t)}}e.insertBlankLineOnRun=c;function h(e){const t={state:e.state,dispatch:e.dispatch};const n=(0,i.simplifySelection)(t);if(e.dom.closest(l)){return false}else{return n}}e.simplifySelectionAndMaybeSwitchToCommandMode=h;function u(e){if(e.dom.closest(a)){return false}return(0,i.indentLess)(e)}e.dedentIfNotLaunchingTooltip=u})(d||(d={}));var c=n(4452);var h=n(71674);var u=n(22819);var p=n(5592);var m=n(2336);var g=n(75128);var f=n(34881);const v=h.Facet.define({combine(e){return(0,h.combineConfig)(e,{fontFamily:null,fontSize:null,lineHeight:null},{fontFamily:(e,t)=>e!==null&&e!==void 0?e:t,fontSize:(e,t)=>e!==null&&e!==void 0?e:t,lineHeight:(e,t)=>e!==null&&e!==void 0?e:t})}});function _(e){const{fontFamily:t,fontSize:n,lineHeight:i}=e.state.facet(v);let s="";if(n){s+=`font-size: ${n}px !important;`}if(t){s+=`font-family: ${t} !important;`}if(i){s+=`line-height: ${i.toString()} !important`}return{style:s}}function b(e){return[v.of(e),u.EditorView.editorAttributes.of(_)]}var y=n(66575);var w=n(45145);const C="InlineMathDollar";const x="InlineMathBracket";const S="BlockMathDollar";const j="BlockMathBracket";const k={[C]:1,[x]:3,[S]:2,[j]:3};const I=Object.keys(k).reduce(((e,t)=>{e[t]={mark:`${t}Mark`,resolve:t};return e}),{});function T(e){const t=new Array;Object.keys(k).forEach((e=>{t.push({name:e,style:w.tags.emphasis},{name:`${e}Mark`,style:w.tags.processingInstruction})}));return{defineNodes:t,parseInline:[{name:S,parse(e,t,n){if(t!=36||e.char(n+1)!=36){return-1}return e.addDelimiter(I[S],n,n+k[S],true,true)}},{name:C,parse(e,t,n){if(t!=36||e.char(n+1)==36){return-1}return e.addDelimiter(I[C],n,n+k[C],true,true)}},{name:x,before:"Escape",parse(e,t,n){if(t!=92||e.char(n+1)!=92||![40,41].includes(e.char(n+2))){return-1}return e.addDelimiter(I[x],n,n+k[x],e.char(n+2)==40,e.char(n+2)==41)}},{name:j,before:"Escape",parse(e,t,n){if(t!=92||e.char(n+1)!=92||![91,93].includes(e.char(n+2))){return-1}return e.addDelimiter(I[j],n,n+k[j],e.char(n+2)==91,e.char(n+2)==93)}}],wrap:e?(0,y.parseMixed)(((t,n)=>{const i=k[t.type.name];if(i){return{parser:e,overlay:[{from:t.from+i,to:t.to-i}]}}return null})):undefined}}const E="cm-rulers";const M=u.EditorView.baseTheme({[`.${E}`]:{borderRight:"1px dotted gray",opacity:.7}});const D=h.Facet.define({combine(e){const t=e.reduce(((e,t)=>e.concat(t.filter(((n,i)=>!e.includes(n)&&i==t.lastIndexOf(n))))),[]);return t}});const A=u.ViewPlugin.fromClass(class{constructor(e){var t,n;this.rulersContainer=e.dom.appendChild(document.createElement("div"));this.rulersContainer.style.cssText=`\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n overflow: hidden;\n `;const i=e.defaultCharacterWidth;const s=e.state.facet(D);const o=(n=(t=e.scrollDOM.querySelector(".cm-gutters"))===null||t===void 0?void 0:t.clientWidth)!==null&&n!==void 0?n:0;this.rulers=s.map((e=>{const t=this.rulersContainer.appendChild(document.createElement("div"));t.classList.add(E);t.style.cssText=`\n position: absolute;\n left: ${o+e*i}px;\n height: 100%;\n `;t.style.width="6px";return t}))}update(e){var t,n;const i=e.view.state.facet(D);if(e.viewportChanged||e.geometryChanged||!p.JSONExt.deepEqual(i,e.startState.facet(D))){const s=(n=(t=e.view.scrollDOM.querySelector(".cm-gutters"))===null||t===void 0?void 0:t.clientWidth)!==null&&n!==void 0?n:0;const o=e.view.defaultCharacterWidth;this.rulers.forEach(((e,t)=>{e.style.left=`${s+i[t]*o}px`}))}}destroy(){this.rulers.forEach((e=>{e.remove()}));this.rulersContainer.remove()}});function P(e){return[M,D.of(e),A]}class L{constructor(e){this.undoManager=e}}const R=h.Facet.define({combine(e){return e[e.length-1]}});class N{constructor(e){this._onStackItemAdded=({stackItem:e,changedParentTypes:t})=>{if(t.has(this._syncConf.ytext)&&this._beforeChangeSelection&&!e.meta.has(this)){e.meta.set(this,this._beforeChangeSelection)}};this._onStackItemPopped=({stackItem:e})=>{const t=e.meta.get(this);if(t){const e=this._syncConf.fromYRange(t);this._view.dispatch(this._view.state.update({selection:e,effects:[u.EditorView.scrollIntoView(e)]}));this._storeSelection()}};this._storeSelection=()=>{this._beforeChangeSelection=this._syncConf.toYRange(this._view.state.selection.main)};this._view=e;this._conf=e.state.facet(R);this._undoManager=this._conf.undoManager;this._syncConf=e.state.facet(W);this._beforeChangeSelection=null;this._undoManager.on("stack-item-added",this._onStackItemAdded);this._undoManager.on("stack-item-popped",this._onStackItemPopped);this._undoManager.addTrackedOrigin(this._syncConf)}update(e){if(e.selectionSet&&(e.transactions.length===0||e.transactions[0].annotation(H)!==this._syncConf)){this._storeSelection()}}destroy(){this._undoManager.off("stack-item-added",this._onStackItemAdded);this._undoManager.off("stack-item-popped",this._onStackItemPopped);this._undoManager.removeTrackedOrigin(this._syncConf)}}const B=u.ViewPlugin.fromClass(N);var O=n(74356);class F{constructor(e,t){this.yanchor=e;this.yhead=t}toJSON(){return{yanchor:(0,O.relativePositionToJSON)(this.yanchor),yhead:(0,O.relativePositionToJSON)(this.yhead)}}static fromJSON(e){return new F((0,O.createRelativePositionFromJSON)(e.yanchor),(0,O.createRelativePositionFromJSON)(e.yhead))}}class z{constructor(e){this.ytext=e}toYPos(e,t=0){return(0,O.createRelativePositionFromTypeIndex)(this.ytext,e,t)}fromYPos(e){const t=(0,O.createAbsolutePositionFromRelativePosition)((0,O.createRelativePositionFromJSON)(e),this.ytext.doc);if(t==null||t.type!==this.ytext){throw new Error("[y-codemirror] The position you want to retrieve was created by a different document")}return{pos:t.index,assoc:t.assoc}}toYRange(e){const t=e.assoc;const n=this.toYPos(e.anchor,t);const i=this.toYPos(e.head,t);return new F(n,i)}fromYRange(e){const t=this.fromYPos(e.yanchor);const n=this.fromYPos(e.yhead);if(t.pos===n.pos){return h.EditorSelection.cursor(n.pos,n.assoc)}return h.EditorSelection.range(t.pos,n.pos)}}const W=h.Facet.define({combine(e){return e[e.length-1]}});const H=h.Annotation.define();const V=u.ViewPlugin.fromClass(class{constructor(e){this.conf=e.state.facet(W);this._observer=(t,n)=>{var i;if(n.origin!==this.conf){const n=t.delta;const s=[];let o=0;for(let e=0;e0&&e.transactions[0].annotation(H)===this.conf){return}const t=this.conf.ytext;t.doc.transact((()=>{let n=0;e.changes.iterChanges(((e,i,s,o,r)=>{const a=r.sliceString(0,r.length,"\n");if(e!==i){t.delete(e+n,i-e)}if(a.length>0){t.insert(e+n,a)}n+=a.length-(i-e)}))}),this.conf)}destroy(){this._ytext.unobserve(this._observer)}});function U(e){const{ytext:t,undoManager:n}=e;const i=new z(t);const s=[W.of(i),V];if(n){s.push(R.of(new L(n)),B)}return s}var q=n(43370);const $="jp-mod-readOnly";class K{constructor({baseConfiguration:e,config:t,defaultExtensions:n}={}){this._configChanged=new m.Signal(this);this._disposed=new m.Signal(this);this._isDisposed=false;this._immutables=new Set;this._baseConfig=e!==null&&e!==void 0?e:{};this._config=t!==null&&t!==void 0?t:{};this._configurableBuilderMap=new Map(n);const i=Object.keys(this._config).concat(Object.keys(this._baseConfig));this._immutables=new Set([...this._configurableBuilderMap.keys()].filter((e=>!i.includes(e))))}get configChanged(){return this._configChanged}get disposed(){return this._disposed}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this._disposed.emit();m.Signal.clearData(this)}getOption(e){var t;return(t=this._config[e])!==null&&t!==void 0?t:this._baseConfig[e]}hasOption(e){return Object.keys(this._config).includes(e)||Object.keys(this._baseConfig).includes(e)}setOption(e,t){if(this._config[e]!==t){this._config[e]=t;this._configChanged.emit({[e]:t})}}setBaseOptions(e){const t=this._getChangedOptions(e,this._baseConfig);if(t.length>0){this._baseConfig=e;const n=Object.keys(this._config);const i=t.filter((e=>!n.includes(e)));if(i.length>0){this._configChanged.emit(i.reduce(((e,t)=>{e[t]=this._baseConfig[t];return e}),{}))}}for(const n of Object.keys(e)){if(n in this._config&&this._config[n]!=e[n]){this.setOption(n,e[n])}}}setOptions(e){const t=this._getChangedOptions(e,this._config);if(t.length>0){this._config={...e};this._configChanged.emit(t.reduce(((e,t)=>{var n;e[t]=(n=this._config[t])!==null&&n!==void 0?n:this._baseConfig[t];return e}),{}))}}reconfigureExtension(e,t,n){const i=this.getEffect(e.state,t,n);if(i){e.dispatch({effects:[i]})}}reconfigureExtensions(e,t){const n=Object.keys(t).filter((e=>this.has(e))).map((n=>this.getEffect(e.state,n,t[n])));e.dispatch({effects:n.filter((e=>e!==null))})}injectExtension(e,t){e.dispatch({effects:h.StateEffect.appendConfig.of(t)})}getInitialExtensions(){const e={...this._baseConfig,...this._config};const t=[...this._immutables].map((e=>{var t;return(t=this.get(e))===null||t===void 0?void 0:t.instance(undefined)})).filter((e=>e));for(const n of Object.keys(e)){const i=this.get(n);if(i){const s=e[n];t.push(i.instance(s))}}return t}get(e){return this._configurableBuilderMap.get(e)}has(e){return this._configurableBuilderMap.has(e)}getEffect(e,t,n){var i;const s=this.get(t);return(i=s===null||s===void 0?void 0:s.reconfigure(n))!==null&&i!==void 0?i:null}_getChangedOptions(e,t){const n=new Array;const i=new Array;for(const[s,o]of Object.entries(e)){i.push(s);if(t[s]!==o){n.push(s)}}n.push(...Object.keys(t).filter((e=>!i.includes(e))));return n}}class J{constructor(){this.configurationBuilder=new Map;this.configurationSchema={};this.defaultOptions={};this.handlers=new Set;this.immutableExtensions=new Set;this._baseConfiguration={}}get baseConfiguration(){return{...this.defaultOptions,...this._baseConfiguration}}set baseConfiguration(e){if(!p.JSONExt.deepEqual(e,this._baseConfiguration)){this._baseConfiguration=e;for(const e of this.handlers){e.setBaseOptions(this.baseConfiguration)}}}get defaultConfiguration(){return Object.freeze({...this.defaultOptions})}get settingsSchema(){return Object.freeze(p.JSONExt.deepCopy(this.configurationSchema))}addExtension(e){var t;if(this.configurationBuilder.has(e.name)){throw new Error(`Extension named ${e.name} is already registered.`)}this.configurationBuilder.set(e.name,e);if(typeof e.default!="undefined"){this.defaultOptions[e.name]=e.default}if(e.schema){this.configurationSchema[e.name]={default:(t=e.default)!==null&&t!==void 0?t:null,...e.schema};this.defaultOptions[e.name]=this.configurationSchema[e.name].default}}createNew(e){const t=new Array;for(const[i,s]of this.configurationBuilder.entries()){const n=s.factory(e);if(n){t.push([i,n])}}const n=new K({baseConfiguration:this.baseConfiguration,config:e.config,defaultExtensions:t});this.handlers.add(n);n.disposed.connect((()=>{this.handlers.delete(n)}));return n}}(function(e){class t{constructor(e){this._compartment=new h.Compartment;this._builder=e}instance(e){return this._compartment.of(this._builder(e))}reconfigure(e){return this._compartment.reconfigure(this._builder(e))}}class n{constructor(e){this._extension=e}instance(){return this._extension}reconfigure(){return null}}function s(e){return new t(e)}e.createConfigurableExtension=s;function o(e,n=[]){return new t((t=>t?e:n))}e.createConditionalExtension=o;function r(e){return new n(e)}e.createImmutableExtension=r;function a(e={}){const{themes:t,translator:n}=e;const a=(n!==null&&n!==void 0?n:f.nullTranslator).load("jupyterlab");const l=[Object.freeze({name:"autoClosingBrackets",default:false,factory:()=>o((0,g.wm)()),schema:{type:"boolean",title:a.__("Auto Closing Brackets")}}),Object.freeze({name:"codeFolding",default:false,factory:()=>o((0,c.foldGutter)()),schema:{type:"boolean",title:a.__("Code Folding")}}),Object.freeze({name:"cursorBlinkRate",default:1200,factory:()=>s((e=>(0,u.drawSelection)({cursorBlinkRate:e}))),schema:{type:"number",title:a.__("Cursor blinking rate"),description:a.__("Half-period in milliseconds used for cursor blinking. The default blink rate is 1200ms. By setting this to zero, blinking can be disabled.")}}),Object.freeze({name:"highlightActiveLine",default:false,factory:()=>o((0,u.highlightActiveLine)()),schema:{type:"boolean",title:a.__("Highlight the active line")}}),Object.freeze({name:"highlightSpecialCharacters",default:true,factory:()=>o((0,u.highlightSpecialChars)()),schema:{type:"boolean",title:a.__("Highlight special characters")}}),Object.freeze({name:"highlightTrailingWhitespace",default:false,factory:()=>o((0,u.highlightTrailingWhitespace)()),schema:{type:"boolean",title:a.__("Highlight trailing white spaces")}}),Object.freeze({name:"highlightWhitespace",default:false,factory:()=>o((0,u.highlightWhitespace)()),schema:{type:"boolean",title:a.__("Highlight white spaces")}}),Object.freeze({name:"indentUnit",default:"4",factory:()=>s((e=>e=="Tab"?c.indentUnit.of("\t"):c.indentUnit.of(" ".repeat(parseInt(e,10))))),schema:{type:"string",title:a.__("Indentation unit"),description:a.__("The indentation is a `Tab` or the number of spaces. This defaults to 4 spaces."),enum:["Tab","1","2","4","8"]}}),Object.freeze({name:"keymap",default:[{key:"Mod-Enter",run:d.insertBlankLineOnRun},{key:"Enter",run:d.completerOrInsertNewLine},{key:"Escape",run:d.simplifySelectionAndMaybeSwitchToCommandMode},...i.defaultKeymap.filter((e=>!["Ctrl-m","Mod-Enter","Shift-Mod-k","Mod-/","Alt-A","Escape","Enter"].includes(e.key))),{key:"Tab",run:d.indentMoreOrInsertTab,shift:d.dedentIfNotLaunchingTooltip}],factory:()=>s((e=>u.keymap.of(e)))}),Object.freeze({name:"lineNumbers",default:true,factory:()=>o((0,u.lineNumbers)()),schema:{type:"boolean",title:a.__("Line Numbers")}}),Object.freeze({name:"lineWrap",factory:()=>o(u.EditorView.lineWrapping),default:true,schema:{type:"boolean",title:a.__("Line Wrap")}}),Object.freeze({name:"dropCursor",default:true,factory:()=>o((0,u.dropCursor)()),schema:{type:"boolean",title:a.__("Drop Cursor")}}),Object.freeze({name:"matchBrackets",default:true,factory:()=>o([(0,c.bracketMatching)(),h.Prec.high(u.keymap.of(g.Bc))]),schema:{type:"boolean",title:a.__("Match Brackets")}}),Object.freeze({name:"rectangularSelection",default:true,factory:()=>o([(0,u.rectangularSelection)(),(0,u.crosshairCursor)()]),schema:{type:"boolean",title:a.__("Rectangular selection"),description:a.__("Rectangular (block) selection can be created by dragging the mouse pointer while holding the left mouse button and the Alt key. When the Alt key is pressed, a crosshair cursor will appear, indicating that the rectangular selection mode is active.")}}),Object.freeze({name:"readOnly",default:false,factory:()=>s((e=>[h.EditorState.readOnly.of(e),e?u.EditorView.editorAttributes.of({class:$}):[]]))}),Object.freeze({name:"rulers",default:[],factory:()=>s((e=>e.length>0?P(e):[])),schema:{type:"array",title:a.__("Rulers"),items:{type:"number",minimum:0}}}),Object.freeze({name:"extendSelection",default:true,factory:()=>o(u.keymap.of([{key:"Mod-Shift-l",run:q.selectSelectionMatches,preventDefault:true}]))}),Object.freeze({name:"searchWithCM",default:false,factory:()=>o(u.keymap.of([{key:"Mod-f",run:q.openSearchPanel,scope:"editor search-panel"},{key:"F3",run:q.findNext,shift:q.findPrevious,scope:"editor search-panel",preventDefault:true},{key:"Mod-g",run:q.findNext,shift:q.findPrevious,scope:"editor search-panel",preventDefault:true},{key:"Escape",run:q.closeSearchPanel,scope:"editor search-panel"}]))}),Object.freeze({name:"scrollPastEnd",default:false,factory:e=>e.inline?null:o((0,u.scrollPastEnd)())}),Object.freeze({name:"smartIndent",default:true,factory:()=>o((0,c.indentOnInput)()),schema:{type:"boolean",title:a.__("Smart Indentation")}}),Object.freeze({name:"tabFocusable",default:true,factory:()=>o(u.EditorView.contentAttributes.of({tabIndex:"0"}),u.EditorView.contentAttributes.of({tabIndex:"-1"}))}),Object.freeze({name:"tabSize",default:4,factory:()=>s((e=>h.EditorState.tabSize.of(e))),schema:{type:"number",title:a.__("Tab size")}}),Object.freeze({name:"tooltips",factory:()=>r((0,u.tooltips)({position:"absolute",parent:document.body}))}),Object.freeze({name:"allowMultipleSelections",default:true,factory:()=>s((e=>h.EditorState.allowMultipleSelections.of(e))),schema:{type:"boolean",title:a.__("Multiple selections")}}),Object.freeze({name:"customStyles",factory:()=>s((e=>b(e))),default:{fontFamily:null,fontSize:null,lineHeight:null},schema:{title:a.__("Custom editor styles"),type:"object",properties:{fontFamily:{type:["string","null"],title:a.__("Font Family")},fontSize:{type:["number","null"],minimum:1,maximum:100,title:a.__("Font Size")},lineHeight:{type:["number","null"],title:a.__("Line Height")}},additionalProperties:false}})];if(t){l.push(Object.freeze({name:"theme",default:"jupyter",factory:()=>s((e=>t.getTheme(e))),schema:{type:"string",title:a.__("Theme"),description:a.__("CodeMirror theme")}}))}if(n){l.push(Object.freeze({name:"translation",default:{"Control character":a.__("Control character"),"Selection deleted":a.__("Selection deleted"),"Folded lines":a.__("Folded lines"),"Unfolded lines":a.__("Unfolded lines"),to:a.__("to"),"folded code":a.__("folded code"),unfold:a.__("unfold"),"Fold line":a.__("Fold line"),"Unfold line":a.__("Unfold line"),"Go to line":a.__("Go to line"),go:a.__("go"),Find:a.__("Find"),Replace:a.__("Replace"),next:a.__("next"),previous:a.__("previous"),all:a.__("all"),"match case":a.__("match case"),replace:a.__("replace"),"replace all":a.__("replace all"),close:a.__("close"),"current match":a.__("current match"),"replaced $ matches":a.__("replaced $ matches"),"replaced match on line $":a.__("replaced match on line $"),"on line":a.__("on line"),Completions:a.__("Completions"),Diagnostics:a.__("Diagnostics"),"No diagnostics":a.__("No diagnostics"),Breakpoint:a.__("Breakpoint"),"Selected breakpoint":a.__("Selected breakpoint")},factory:()=>s((e=>h.EditorState.phrases.of(e)))}))}return l}e.getDefaultExtensions=a})(J||(J={}));var G=n(40959);var Y=n(91268);const X=u.EditorView.theme({"&":{background:"var(--jp-layout-color0)",color:"var(--jp-content-font-color1)"},".cm-panels":{color:"var(--jp-ui-font-color2)",backgroundColor:"var(--jp-layout-color2)"},".cm-panels.cm-panels-bottom":{borderTop:"1px solid var(--jp-border-color2)"},".cm-button":{background:"var(--jp-layout-color2)",border:"var(--jp-border-width) solid var(--jp-border-color1)",color:"var(--jp-ui-font-color1)",borderRadius:"var(--jp-border-radius)"},".cm-button:hover":{background:"var(--jp-layout-color1)"},".cm-panel.cm-search > label":{color:"var(--jp-ui-font-color1)"},".cm-textfield":{backgroundColor:"var(--jp-layout-color2)",color:"var(--jp-ui-font-color1)",border:"var(--jp-border-width) solid var(--jp-border-color1)"},".jp-CodeConsole &, .jp-Notebook &":{background:"transparent"},".cm-content":{caretColor:"var(--jp-editor-cursor-color)"},".cm-scroller":{fontFamily:"inherit"},".cm-cursor, .cm-dropCursor":{borderLeft:"var(--jp-code-cursor-width0) solid var(--jp-editor-cursor-color)"},".cm-selectionBackground, .cm-content ::selection":{backgroundColor:"var(--jp-editor-selected-background)"},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{backgroundColor:"var(--jp-editor-selected-focused-background)"},".cm-gutters":{borderRight:"1px solid var(--jp-border-color2)",backgroundColor:"var(--jp-layout-color2)"},".cm-gutter":{backgroundColor:"var(--jp-layout-color2)"},".cm-activeLine":{backgroundColor:"color-mix(in srgb, var(--jp-layout-color3) 25%, transparent)"},".cm-lineNumbers":{color:"var(--jp-ui-font-color2)"},".cm-searchMatch":{backgroundColor:"var(--jp-search-unselected-match-background-color)",color:"var(--jp-search-unselected-match-color)"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"var(--jp-search-selected-match-background-color) !important",color:"var(--jp-search-selected-match-color) !important"},".cm-tooltip":{backgroundColor:"var(--jp-layout-color1)"}});const Q=c.HighlightStyle.define([{tag:w.tags.meta,color:"var(--jp-mirror-editor-meta-color)"},{tag:w.tags.heading,color:"var(--jp-mirror-editor-header-color)"},{tag:[w.tags.heading1,w.tags.heading2,w.tags.heading3,w.tags.heading4],color:"var(--jp-mirror-editor-header-color)",fontWeight:"bold"},{tag:w.tags.keyword,color:"var(--jp-mirror-editor-keyword-color)",fontWeight:"bold"},{tag:w.tags.atom,color:"var(--jp-mirror-editor-atom-color)"},{tag:w.tags.number,color:"var(--jp-mirror-editor-number-color)"},{tag:[w.tags.definition(w.tags.name),w.tags.function(w.tags.definition(w.tags.variableName))],color:"var(--jp-mirror-editor-def-color)"},{tag:w.tags.standard(w.tags.variableName),color:"var(--jp-mirror-editor-builtin-color)"},{tag:[w.tags.special(w.tags.variableName),w.tags.self],color:"var(--jp-mirror-editor-variable-2-color)"},{tag:w.tags.punctuation,color:"var(--jp-mirror-editor-punctuation-color)"},{tag:w.tags.propertyName,color:"var(--jp-mirror-editor-property-color)"},{tag:w.tags.operator,color:"var(--jp-mirror-editor-operator-color)",fontWeight:"bold"},{tag:w.tags.comment,color:"var(--jp-mirror-editor-comment-color)",fontStyle:"italic"},{tag:w.tags.string,color:"var(--jp-mirror-editor-string-color)"},{tag:[w.tags.labelName,w.tags.monospace,w.tags.special(w.tags.string)],color:"var(--jp-mirror-editor-string-2-color)"},{tag:w.tags.bracket,color:"var(--jp-mirror-editor-bracket-color)"},{tag:w.tags.tagName,color:"var(--jp-mirror-editor-tag-color)"},{tag:w.tags.attributeName,color:"var(--jp-mirror-editor-attribute-color)"},{tag:w.tags.quote,color:"var(--jp-mirror-editor-quote-color)"},{tag:w.tags.link,color:"var(--jp-mirror-editor-link-color)",textDecoration:"underline"},{tag:[w.tags.separator,w.tags.derefOperator,w.tags.paren],color:""},{tag:w.tags.strong,fontWeight:"bold"},{tag:w.tags.emphasis,fontStyle:"italic"},{tag:w.tags.strikethrough,textDecoration:"line-through"},{tag:w.tags.bool,color:"var(--jp-mirror-editor-keyword-color)",fontWeight:"bold"}]);const Z=[X,(0,c.syntaxHighlighting)(Q)];class ee{constructor(){this._themeMap=new Map([["jupyter",Object.freeze({name:"jupyter",theme:Z})]])}get themes(){return Array.from(this._themeMap.values())}defaultTheme(){return this._themeMap.get("jupyter").theme}addTheme(e){if(this._themeMap.has(e.name)){throw new Error(`A theme named '${e.name}' is already registered.`)}this._themeMap.set(e.name,{displayName:e.name,...e})}getTheme(e){var t;const n=(t=this._themeMap.get(e))===null||t===void 0?void 0:t.theme;return n!==null&&n!==void 0?n:this.defaultTheme()}}(function(e){function t(e){const t=(e!==null&&e!==void 0?e:f.nullTranslator).load("jupyterlab");return[Object.freeze({name:"codemirror",displayName:t.__("codemirror"),theme:[u.EditorView.baseTheme({}),(0,c.syntaxHighlighting)(c.defaultHighlightStyle)]})]}e.getDefaultThemes=t})(ee||(ee={}));class te{constructor(e,t){this.langPython=t;this.tree=(0,c.syntaxTree)(e.state);this.mark=u.Decoration.mark({class:"cm-builtin"});this.decorations=this.buildDeco(e);this.decoratedTo=e.viewport.to}update(e){let t=(0,c.syntaxTree)(e.state);let{viewport:n}=e.view,i=e.changes.mapPos(this.decoratedTo,1);if(t.length=n.to){this.decorations=this.decorations.map(e.changes);this.decoratedTo=i}else if(t!=this.tree||e.viewportChanged){this.tree=t;this.decorations=this.buildDeco(e.view);this.decoratedTo=n.to}}buildDeco(e){if(!this.tree.length)return u.Decoration.none;let t=new h.RangeSetBuilder;const n=i=>{var s;const o=i.node.cursor();const r=o.tree&&o.tree.prop(y.NodeProp.mounted);if(r&&r.overlay){(s=i.node.enter(r.overlay[0].from+i.from,1))===null||s===void 0?void 0:s.cursor().iterate(n)}if(this.langPython.isActiveAt(e.state,i.from+1)&&i.name==="VariableName"){const n=e.state.sliceDoc(i.from,i.to);if(ie.includes(n)){t.add(i.from,i.to,this.mark)}}};for(let{from:i,to:s}of e.visibleRanges){this.tree.iterate({enter:n,from:i,to:s})}return t.finish()}}function ne(e){return u.ViewPlugin.define((t=>new te(t,e)),{decorations:e=>e.decorations})}const ie=["abs","aiter","all","any","anext","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__"];class se{constructor(){this._modeList=[];this.addLanguage({name:"none",mime:"text/plain",support:new c.LanguageSupport(c.LRLanguage.define({parser:(0,Y.KO)("@top Program { }")}))})}addLanguage(e){var t;const n=(t=this.findByName(e.name))!==null&&t!==void 0?t:this.findByMIME(e.mime,true);if(n){throw new Error(`${e.mime} already registered`)}this._modeList.push(this.makeSpec(e))}async getLanguage(e){const t=this.findBest(e);if(t&&!t.support){t.support=await t.load()}return t}getLanguages(){return[...this._modeList]}findByMIME(e,t=false){if(Array.isArray(e)){for(let t=0;t-1&&t.substring(n+1,t.length);if(i){return this.findByExtension(i)}return null}findBest(e,t=true){var n,i,o,r;const a=typeof e==="string"?e:e.name;const l=typeof e!=="string"?e.mime:a;const d=typeof e!=="string"?(n=e.extensions)!==null&&n!==void 0?n:[]:[];return(r=(o=(i=a?this.findByName(a):null)!==null&&i!==void 0?i:l?this.findByMIME(l):null)!==null&&o!==void 0?o:this.findByExtension(d))!==null&&r!==void 0?r:t?this.findByMIME(s.IEditorMimeTypeService.defaultMimeType):null}async highlight(e,t,n){var i;if(t){await this.getLanguage(t)}const s=(i=t===null||t===void 0?void 0:t.support)===null||i===void 0?void 0:i.language;if(!s){n.appendChild(document.createTextNode(e));return}const o=s.parser.parse(e);let r=0;(0,w.highlightTree)(o,Q,((t,i,s)=>{if(t>r){n.appendChild(document.createTextNode(e.slice(r,t)))}const o=n.appendChild(document.createElement("span"));o.className=s;o.appendChild(document.createTextNode(e.slice(t,i)));r=i}));if(rthis.onKeydown(e)});const c=u.EditorView.updateListener.of((e=>{this._onDocChanged(e)}));this._editor=de.createEditor(a,this._configurator,[h.Prec.high(d),c,this._language.of([]),...(r=e.extensions)!==null&&r!==void 0?r:[]],l.sharedModel.source);this._onMimeTypeChanged();this._onCursorActivity();this._configurator.configChanged.connect(this.onConfigChanged,this);l.mimeTypeChanged.connect(this._onMimeTypeChanged,this)}get uuid(){return this._uuid}set uuid(e){this._uuid=e}get editor(){return this._editor}get doc(){return this._editor.state.doc}get lineCount(){return this.doc.lines}get model(){return this._model}get lineHeight(){return this._editor.defaultLineHeight}get charWidth(){return this._editor.defaultCharacterWidth}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this.host.removeEventListener("focus",this,true);this.host.removeEventListener("blur",this,true);this.host.removeEventListener("scroll",this,true);this._configurator.dispose();m.Signal.clearData(this);this.editor.destroy()}getOption(e){return this._configurator.getOption(e)}hasOption(e){return this._configurator.hasOption(e)}setOption(e,t){this._configurator.setOption(e,t)}setOptions(e){this._configurator.setOptions(e)}setBaseOptions(e){this._configurator.setBaseOptions(e)}injectExtension(e){this._configurator.injectExtension(this._editor,e)}getLine(e){e=e+1;return e<=this.doc.lines?this.doc.line(e).text:undefined}getOffsetAt(e){return this.doc.line(e.line+1).from+e.column}getPositionAt(e){const t=this.doc.lineAt(e);return{line:t.number-1,column:e-t.from}}undo(){this.model.sharedModel.undo()}redo(){this.model.sharedModel.redo()}clearHistory(){this.model.sharedModel.clearUndoHistory()}focus(){this.host.classList.add("jp-mod-focused");this._editor.focus()}hasFocus(){return this._editor.hasFocus}blur(){this._editor.contentDOM.blur()}get state(){return this._editor.state}firstLine(){return 0}lastLine(){return this.doc.lines-1}cursorCoords(e,t){const n=this.state.selection.main;const i=e?n.from:n.to;const s=this.editor.coordsAtPos(i);return s}getRange(e,t,n){const i=this.getOffsetAt(this._toPosition(e));const s=this.getOffsetAt(this._toPosition(t));return this.state.sliceDoc(i,s)}revealPosition(e,t){const n=this.getOffsetAt(e);this._editor.dispatch({effects:u.EditorView.scrollIntoView(n,{y:t===null||t===void 0?void 0:t.block,x:t===null||t===void 0?void 0:t.inline})})}revealSelection(e,t){const n=this.getOffsetAt(e.start);const i=this.getOffsetAt(e.end);this._editor.dispatch({effects:u.EditorView.scrollIntoView(h.EditorSelection.range(n,i),{y:t===null||t===void 0?void 0:t.block,x:t===null||t===void 0?void 0:t.inline})})}getCoordinateForPosition(e){const t=this.getOffsetAt(e);const n=this.editor.coordsAtPos(t);return n}getPositionForCoordinate(e){const t=this.editor.posAtCoords({x:e.left,y:e.top});return this.getPositionAt(t)||null}getCursorPosition(){const e=this.state.selection.main.head;return this.getPositionAt(e)}setCursorPosition(e,t={}){const n=this.getOffsetAt(e);this.editor.dispatch({selection:{anchor:n},scrollIntoView:t.scroll===false?false:true});if(!this.editor.hasFocus){this.model.selections.set(this.uuid,this.getSelections())}}getSelection(){return this.getSelections()[0]}setSelection(e){this.setSelections([e])}getSelections(){const e=this.state.selection.ranges;if(e.length>0){const t=e.map((e=>({anchor:this._toCodeMirrorPosition(this.getPositionAt(e.from)),head:this._toCodeMirrorPosition(this.getPositionAt(e.to))})));return t.map((e=>this._toSelection(e)))}const t=this._toCodeMirrorPosition(this.getPositionAt(this.state.selection.main.head));const n=this._toSelection({anchor:t,head:t});return[n]}setSelections(e){const t=e.length?e.map((e=>h.EditorSelection.range(this.getOffsetAt(e.start),this.getOffsetAt(e.end)))):[h.EditorSelection.range(0,0)];this.editor.dispatch({selection:h.EditorSelection.create(t)})}replaceSelection(e){const t=this.getSelections()[0];this.model.sharedModel.updateSource(this.getOffsetAt(t.start),this.getOffsetAt(t.end),e);const n=this.getPositionAt(this.getOffsetAt(t.start)+e.length);this.setSelection({start:n,end:n})}getTokens(){const e=[];const t=(0,c.ensureSyntaxTree)(this.state,this.doc.length);if(t){t.iterate({enter:t=>{if(t.node.firstChild===null){e.push({value:this.state.sliceDoc(t.from,t.to),offset:t.from,type:t.name})}return true}})}return e}getTokenAt(e){const t=(0,c.ensureSyntaxTree)(this.state,e);let n=null;if(t){t.iterate({enter:t=>{if(n){return false}if(t.node.firstChild){return true}if(e>=t.from&&e<=t.to){let e=t;if(t.name==="⚠"&&t.from===t.to&&t.node.parent){e=t.node.parent}n={value:this.state.sliceDoc(e.from,e.to),offset:e.from,type:e.name};return false}return true}})}return n||{offset:e,value:""}}getTokenAtCursor(){return this.getTokenAt(this.state.selection.main.head)}newIndentedLine(){(0,i.insertNewlineAndIndent)({state:this.state,dispatch:this.editor.dispatch})}execCommand(e){e(this.editor)}onConfigChanged(e,t){const n=Object.keys(t).reduce(((e,n)=>{if(t[n]!=undefined){e[n]=t[n]}return e}),{});e.reconfigureExtensions(this._editor,n);if(t["customStyles"]&&!t["fontSize"]){this.editor.setState(this.editor.state)}}onKeydown(e){const t=this.state.selection.main.head;if(t===0&&e.keyCode===re){if(!e.shiftKey){this.edgeRequested.emit("top")}return false}const n=this.doc.lineAt(t).number;if(n===1&&e.keyCode===re){if(!e.shiftKey){this.edgeRequested.emit("topLine")}return false}const i=this.doc.length;if(t===i&&e.keyCode===ae){if(!e.shiftKey){this.edgeRequested.emit("bottom")}return false}return false}_onMimeTypeChanged(){this._languages.getLanguage(this._model.mimeType).then((e=>{var t;this._editor.dispatch({effects:this._language.reconfigure((t=e===null||e===void 0?void 0:e.support)!==null&&t!==void 0?t:[])})})).catch((e=>{console.log(`Failed to load language for '${this._model.mimeType}'.`,e);this._editor.dispatch({effects:this._language.reconfigure([])})}))}_onCursorActivity(){if(this._editor.hasFocus){const e=this.getSelections();this.model.selections.set(this.uuid,e)}}_toSelection(e){return{uuid:this.uuid,start:this._toPosition(e.anchor),end:this._toPosition(e.head)}}_toPosition(e){return{line:e.line,column:e.ch}}_toCodeMirrorPosition(e){return{line:e.line,ch:e.column}}_onDocChanged(e){if(e.transactions.length&&e.transactions[0].selection){this._onCursorActivity()}}handleEvent(e){switch(e.type){case"focus":this._evtFocus(e);break;case"blur":this._evtBlur(e);break;default:break}}_evtFocus(e){this.host.classList.add("jp-mod-focused");this._onCursorActivity()}_evtBlur(e){this.host.classList.remove("jp-mod-focused")}}var de;(function(e){function t(e,t,n,i){const s=t.getInitialExtensions();s.push(...n);const o=new u.EditorView({state:h.EditorState.create({doc:i,extensions:s}),parent:e});return o}e.createEditor=t})(de||(de={}));class ce{constructor(e={}){var t,n,i;this.newInlineEditor=e=>{e.host.dataset.type="inline";return this.newEditor({...e,config:{...this.inlineCodeMirrorConfig,...e.config||{}},inline:true})};this.newDocumentEditor=e=>{var t,n;e.host.dataset.type="document";return this.newEditor({...e,config:{...this.documentCodeMirrorConfig,...(t=e.config)!==null&&t!==void 0?t:{}},inline:false,extensions:(n=e.extensions)!==null&&n!==void 0?n:[]})};this.languages=(t=e.languages)!==null&&t!==void 0?t:new se;this.extensions=(n=e.extensions)!==null&&n!==void 0?n:new J;this.translator=(i=e.translator)!==null&&i!==void 0?i:f.nullTranslator;this.inlineCodeMirrorConfig={searchWithCM:true};this.documentCodeMirrorConfig={lineNumbers:true,scrollPastEnd:true}}newEditor(e){const t=new le({extensionsRegistry:this.extensions,languages:this.languages,translator:this.translator,...e});return t}}class he{constructor(e){this.languages=e}getMimeTypeByLanguage(e){var t;const n=e.file_extension||"";const i=this.languages.findBest(e.codemirror_mode||{mimetype:e.mimetype,name:e.name,ext:[n.split(".").slice(-1)[0]]});return i?Array.isArray(i.mime)?(t=i.mime[0])!==null&&t!==void 0?t:s.IEditorMimeTypeService.defaultMimeType:i.mime:s.IEditorMimeTypeService.defaultMimeType}getMimeTypeByFilePath(e){var t;const n=G.PathExt.extname(e);if(n===".ipy"){return"text/x-python"}else if(n===".md"){return"text/x-ipythongfm"}const i=this.languages.findByFileName(e);return i?Array.isArray(i.mime)?(t=i.mime[0])!==null&&t!==void 0?t:s.IEditorMimeTypeService.defaultMimeType:i.mime:s.IEditorMimeTypeService.defaultMimeType}}var ue=n(41043);class pe{constructor(){this.currentIndex=null;this.query=null;this._isActive=true;this._inSelection=null;this._isDisposed=false;this._cmHandler=null;this.currentIndex=null;this._stateChanged=new m.Signal(this)}get cmHandler(){if(!this._cmHandler){this._cmHandler=new me(this.editor)}return this._cmHandler}get stateChanged(){return this._stateChanged}get currentMatchIndex(){return this.isActive?this.currentIndex:null}get isActive(){return this._isActive}get isDisposed(){return this._isDisposed}get matchesCount(){return this.isActive?this.cmHandler.matches.length:0}clearHighlight(){this.currentIndex=null;this.cmHandler.clearHighlight();return Promise.resolve()}dispose(){if(this._isDisposed){return}this._isDisposed=true;m.Signal.clearData(this);if(this.isActive){this.endQuery().catch((e=>{console.error(`Failed to end search query on cells.`,e)}))}}async setIsActive(e){if(this._isActive===e){return}this._isActive=e;if(this._isActive){if(this.query!==null){await this.startQuery(this.query,this.filters)}}else{await this.endQuery()}}async setSearchSelection(e){if(this._inSelection===e){return}this._inSelection=e;await this.updateCodeMirror(this.model.sharedModel.getSource());this._stateChanged.emit()}setProtectSelection(e){this.cmHandler.protectSelection=e}async startQuery(e,t){this.query=e;this.filters=t;const n=this.model.sharedModel.getSource();await this.updateCodeMirror(n);this.model.sharedModel.changed.connect(this.onSharedModelChanged,this)}async endQuery(){await this.clearHighlight();await this.cmHandler.endQuery();this.currentIndex=null}async highlightNext(e=true,t){if(this.matchesCount===0||!this.isActive){this.currentIndex=null}else{let n=await this.cmHandler.highlightNext(t);if(n){this.currentIndex=this.cmHandler.currentIndex}else{this.currentIndex=e?0:null}return n}return Promise.resolve(this.getCurrentMatch())}async highlightPrevious(e=true,t){if(this.matchesCount===0||!this.isActive){this.currentIndex=null}else{let n=await this.cmHandler.highlightPrevious(t);if(n){this.currentIndex=this.cmHandler.currentIndex}else{this.currentIndex=e?this.matchesCount-1:null}return n}return Promise.resolve(this.getCurrentMatch())}replaceCurrentMatch(e,t,n){if(!this.isActive){return Promise.resolve(false)}if(this.currentIndex!==null&&this.currentIndex{this.updateCodeMirror(this.model.sharedModel.getSource()).then((()=>{const n=this.cmHandler.matches;const i=t.position+s.length;let o=false;for(let e=this.currentIndex||0;e=i){this.currentIndex=e;o=true;break}void this.highlightNext(false,{from:"previous-match"})}if(!o){this.currentIndex=null}e(true)})).catch((e=>{const t=`Failed to regenerate match list: ${e}`;console.error(t);n(t)}))}))}}return Promise.resolve(false)}replaceAllMatches(e,t){if(!this.isActive){return Promise.resolve(false)}let n=this.cmHandler.matches.length>0;let i=this.model.sharedModel.getSource();let s=0;const o=this.cmHandler.matches.reduce(((n,o)=>{const r=o.position;const a=r+o.text.length;const l=(t===null||t===void 0?void 0:t.regularExpression)?o.text.replace(this.query,e):e;const d=(t===null||t===void 0?void 0:t.preserveCase)?ue.GenericSearchProvider.preserveCase(o.text,l):l;const c=`${n}${i.slice(s,r)}${d}`;s=a;return c}),"");if(n){this.cmHandler.matches=[];this.currentIndex=null;this.model.sharedModel.setSource(`${o}${i.slice(s)}`)}return Promise.resolve(n)}getCurrentMatch(){if(this.currentIndex===null){return undefined}else{let e=undefined;if(this.currentIndexe.position>=n&&e.position<=i));if(this.cmHandler.currentIndex===null&&this.cmHandler.matches.length>0){await this.cmHandler.highlightNext({from:"selection",select:false,scroll:false})}this.currentIndex=this.cmHandler.currentIndex}else{this.cmHandler.matches=t}}else{this.cmHandler.matches=[]}}}class me{constructor(e){this._current=null;this._cm=e;this._matches=new Array;this._currentIndex=null;this._highlightEffect=h.StateEffect.define({map:(e,t)=>{const n=e=>({text:e.text,position:t.mapPos(e.position)});return{matches:e.matches.map(n),currentMatch:e.currentMatch?n(e.currentMatch):null}}});this._highlightMark=u.Decoration.mark({class:"cm-searching"});this._currentMark=u.Decoration.mark({class:"jp-current-match"});this._highlightField=h.StateField.define({create:()=>u.Decoration.none,update:(e,t)=>{e=e.map(t.changes);for(let n of t.effects){if(n.is(this._highlightEffect)){const t=n;if(t.value.matches.length){e=e.update({add:t.value.matches.map((e=>this._highlightMark.range(e.position,e.position+e.text.length))),filter:()=>false});e=e.update({add:t.value.currentMatch?[this._currentMark.range(t.value.currentMatch.position,t.value.currentMatch.position+t.value.currentMatch.text.length)]:[]})}else{e=u.Decoration.none}}}return e},provide:e=>u.EditorView.decorations.from(e)});this._domEventHandlers=u.EditorView.domEventHandlers({focus:()=>{this._selectCurrentMatch()}})}get currentIndex(){return this._currentIndex}get matches(){return this._matches}set matches(e){this._matches=e;if(this._currentIndex!==null&&this._currentIndex>this._matches.length){this._currentIndex=this._matches.length>0?0:null}this._highlightCurrentMatch({select:false})}get protectSelection(){return this._protectSelection}set protectSelection(e){this._protectSelection=e}clearHighlight(){this._currentIndex=null;this._highlightCurrentMatch()}endQuery(){this._currentIndex=null;this._matches=[];if(this._cm){this._cm.editor.dispatch({effects:this._highlightEffect.of({matches:[],currentMatch:null})})}return Promise.resolve()}highlightNext(e){var t;this._currentIndex=this._findNext(false,(t=e===null||e===void 0?void 0:e.from)!==null&&t!==void 0?t:"auto");this._highlightCurrentMatch(e);return Promise.resolve(this._currentIndex!==null?this._matches[this._currentIndex]:undefined)}highlightPrevious(e){var t;this._currentIndex=this._findNext(true,(t=e===null||e===void 0?void 0:e.from)!==null&&t!==void 0?t:"auto");this._highlightCurrentMatch(e);return Promise.resolve(this._currentIndex!==null?this._matches[this._currentIndex]:undefined)}setEditor(e){if(this._cm){throw new Error("CodeMirrorEditor already set.")}else{this._cm=e;if(this._currentIndex!==null){this._highlightCurrentMatch()}this._cm.editor.dispatch({effects:h.StateEffect.appendConfig.of(this._domEventHandlers)});this._refresh()}}_selectCurrentMatch(e=true){const t=this._current;if(!t){return}if(!this._cm){return}const n={anchor:t.position,head:t.position+t.text.length};const i=this._cm.editor.state.selection.main;if(i.from===t.position&&i.to===t.position+t.text.length||this._protectSelection){if(e){this._cm.editor.dispatch({effects:u.EditorView.scrollIntoView(h.EditorSelection.range(n.anchor,n.head))});return}}else{this._cm.editor.dispatch({selection:n,scrollIntoView:e})}}_highlightCurrentMatch(e){var t,n,i;if(!this._cm){return}if(this._currentIndex!==null){const s=this.matches[this._currentIndex];this._current=s;if((t=e===null||e===void 0?void 0:e.select)!==null&&t!==void 0?t:true){if(this._cm.hasFocus()){this._selectCurrentMatch((n=e===null||e===void 0?void 0:e.scroll)!==null&&n!==void 0?n:true)}else if((i=e===null||e===void 0?void 0:e.scroll)!==null&&i!==void 0?i:true){this._cm.editor.dispatch({effects:u.EditorView.scrollIntoView(s.position)})}}}else{this._current=null}this._refresh()}_refresh(){if(!this._cm){return}let e=[this._highlightEffect.of({matches:this.matches,currentMatch:this._current})];if(!this._cm.state.field(this._highlightField,false)){e.push(h.StateEffect.appendConfig.of([this._highlightField]))}this._cm.editor.dispatch({effects:e})}_findNext(e,t="auto"){var n,i,s,o;if(this._matches.length===0){return null}if(!this._cm&&!["previous-match","start"].includes(t)){t="previous-match"}let r=0;if(t==="auto"&&((i=(n=this._cm)===null||n===void 0?void 0:n.hasFocus())!==null&&i!==void 0?i:false)||t==="selection"){const t=this._cm.state.selection.main;r=e?t.anchor:t.head}else if(t==="selection-start"){const e=this._cm.state.selection.main;r=Math.min(e.anchor,e.head)}else if(t==="start"){r=0}else if(this._current){r=e?this._current.position:this._current.position+this._current.text.length}if(r===0&&e&&this.currentIndex===null){r=(o=(s=this._cm)===null||s===void 0?void 0:s.doc.length)!==null&&o!==void 0?o:d(this._matches[this._matches.length-1])}const a=r;let l=ge.findNext(this._matches,a,0,this._matches.length-1);if(l===null){return e?this._matches.length-1:null}if(e){l-=1;if(l<0){return null}}return l;function d(e){return e?e.position+e.text.length:0}}}var ge;(function(e){function t(e,t,n=0,i=Infinity){i=Math.min(e.length-1,i);while(n<=i){let s=Math.floor(.5*(n+i));const o=e[s].position;if(ot){return n}}else if(o>t){i=s-1;if(i>0&&e[i].position0?n-1:0;const o=e[s];return o.position>=t?s:null}e.findNext=t})(ge||(ge={}));const fe=new p.Token("@jupyterlab/codemirror:IEditorExtensionRegistry",`A registry for CodeMirror extension factories.`);const ve=new p.Token("@jupyterlab/codemirror:IEditorLanguageRegistry","A registry for CodeMirror languages.");const _e=new p.Token("@jupyterlab/codemirror:IEditorThemeRegistry","A registry for CodeMirror theme.")},23359:(e,t,n)=>{"use strict";var i=n(17325);var s=n(19562);var o=n(85072);var r=n.n(o);var a=n(97825);var l=n.n(a);var d=n(77659);var c=n.n(d);var h=n(55056);var u=n.n(h);var p=n(10540);var m=n.n(p);var g=n(41113);var f=n.n(g);var v=n(29500);var _={};_.styleTagTransform=f();_.setAttributes=u();_.insert=c().bind(null,"head");_.domAPI=l();_.insertStyleElement=m();var b=r()(v.A,_);const y=v.A&&v.A.locals?v.A.locals:undefined},76177:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>C});var i=n(44389);var s=n(4073);var o=n(25481);var r=n(40065);var a=n(34881);var l=n(93247);var d=n(44914);var c=n.n(d);const h="availableProviders";function u(e){const{schema:t}=e;const n=t.title;const i=t.description;const s=e.formContext.settings;const o=s.get(h).user;const r={...t.default};if(o){for(const e of Object.keys(r)){if(e in o){r[e]=o[e]}else{r[e]=-1}}}const[a,l]=(0,d.useState)(r);const u=(e,t)=>{const n={...a,[e]:parseInt(t.target.value)};s.set(h,n).catch(console.error);l(n)};return c().createElement("div",null,c().createElement("fieldset",null,c().createElement("legend",null,n),c().createElement("p",{className:"field-description"},i),Object.keys(r).map((e=>c().createElement("div",{key:e,className:"form-group small-field"},c().createElement("div",null,c().createElement("h3",null," ",e),c().createElement("div",{className:"inputFieldWrapper"},c().createElement("input",{className:"form-control",type:"number",value:a[e],onChange:t=>{u(e,t)}}))))))))}const p="@jupyterlab/completer-extension:manager";const m="@jupyterlab/completer-extension:inline-completer";var g;(function(e){e.nextInline="inline-completer:next";e.previousInline="inline-completer:previous";e.acceptInline="inline-completer:accept";e.invokeInline="inline-completer:invoke"})(g||(g={}));const f={id:"@jupyterlab/completer-extension:base-service",description:"Adds context and kernel completion providers.",requires:[o.ICompletionProviderManager],autoStart:true,activate:(e,t)=>{t.registerProvider(new o.ContextCompleterProvider);t.registerProvider(new o.KernelCompleterProvider)}};const v={id:"@jupyterlab/completer-extension:inline-history",description:"Adds inline completion provider suggesting code from execution history.",requires:[o.ICompletionProviderManager],optional:[a.ITranslator],autoStart:true,activate:(e,t,n)=>{t.registerInlineProvider(new o.HistoryInlineCompletionProvider({translator:n!==null&&n!==void 0?n:a.nullTranslator}))}};const _={id:"@jupyterlab/completer-extension:inline-completer-factory",description:"Provides a factory for inline completer.",provides:o.IInlineCompleterFactory,optional:[a.ITranslator],autoStart:true,activate:(e,t)=>{const n=(t||a.nullTranslator).load("jupyterlab");return{factory:t=>{const i=new o.InlineCompleter({...t,trans:n});const r=t=>{const n=e.commands.keyBindings.find((e=>e.command===t));const i=n?l.CommandRegistry.formatKeystroke(n.keys):"";return i?`${i}`:""};const a={[g.previousInline]:r(g.previousInline),[g.nextInline]:r(g.nextInline),[g.acceptInline]:r(g.acceptInline)};e.commands.keyBindingChanged.connect(((t,n)=>{const i=n.binding.command;if(a.hasOwnProperty(i)){const t=a[i];const n=r(i);if(n!==t){a[i]=n;e.commands.notifyCommandChanged(i)}}}));i.toolbar.addItem("previous-inline-completion",new s.CommandToolbarButton({commands:e.commands,icon:s.caretLeftIcon,id:g.previousInline,label:()=>a[g.previousInline],caption:n.__("Previous")}));i.toolbar.addItem("next-inline-completion",new s.CommandToolbarButton({commands:e.commands,icon:s.caretRightIcon,id:g.nextInline,label:()=>a[g.nextInline],caption:n.__("Next")}));i.toolbar.addItem("accept-inline-completion",new s.CommandToolbarButton({commands:e.commands,icon:s.checkIcon,id:g.acceptInline,label:()=>a[g.acceptInline],caption:n.__("Accept")}));i.model.suggestionsChanged.connect((()=>{for(const t of[g.previousInline,g.nextInline,g.acceptInline]){e.commands.notifyCommandChanged(t)}}));return i}}}};const b={id:m,description:"Registers the inline completer factory; adds inline completer commands, shortcuts and settings.",requires:[o.ICompletionProviderManager,o.IInlineCompleterFactory,r.ISettingRegistry],optional:[a.ITranslator],autoStart:true,activate:(e,t,n,s,o)=>{t.setInlineCompleterFactory(n);const r=(o||a.nullTranslator).load("jupyterlab");const l=()=>!!e.shell.currentWidget&&!!t.inline;let d;e.commands.addCommand(g.nextInline,{execute:()=>{var n;(n=t.inline)===null||n===void 0?void 0:n.cycle(e.shell.currentWidget.id,"next")},label:r.__("Next Inline Completion"),isEnabled:l,describedBy:{args:{type:"object",properties:{}}}});e.commands.addCommand(g.previousInline,{execute:()=>{var n;(n=t.inline)===null||n===void 0?void 0:n.cycle(e.shell.currentWidget.id,"previous")},label:r.__("Previous Inline Completion"),isEnabled:l,describedBy:{args:{type:"object",properties:{}}}});e.commands.addCommand(g.acceptInline,{execute:()=>{var n;(n=t.inline)===null||n===void 0?void 0:n.accept(e.shell.currentWidget.id)},label:r.__("Accept Inline Completion"),isEnabled:()=>l()&&t.inline.isActive(e.shell.currentWidget.id),describedBy:{args:{type:"object",properties:{}}}});e.commands.addCommand(g.invokeInline,{execute:()=>{var n;(n=t.inline)===null||n===void 0?void 0:n.invoke(e.shell.currentWidget.id)},label:r.__("Invoke Inline Completer"),isEnabled:l,describedBy:{args:{type:"object",properties:{}}}});const c=e=>{var n;d=e.composite;(n=t.inline)===null||n===void 0?void 0:n.configure(d)};e.restored.then((()=>{var e;const n=(e=t.inlineProviders)!==null&&e!==void 0?e:[];const i=e=>{var t,n;return{enabled:true,autoFillInMiddle:false,timeout:5e3,debouncerDelay:0,...(n=(t=e.schema)===null||t===void 0?void 0:t.default)!==null&&n!==void 0?n:{}}};s.transform(m,{compose:e=>{var t,s;const o=(t=e.data.composite["providers"])!==null&&t!==void 0?t:{};for(const r of n){const e=i(r);o[r.identifier]={...e,...(s=o[r.identifier])!==null&&s!==void 0?s:{}}}e.data["composite"]["providers"]=o;return e},fetch:e=>{var t,s;const o=e.schema.properties;const a={};for(const l of n){a[l.identifier]={title:r.__("%1 provider",l.name),properties:{...(s=(t=l.schema)===null||t===void 0?void 0:t.properties)!==null&&s!==void 0?s:{},timeout:{title:r.__("Timeout"),description:r.__("Timeout for %1 provider (in milliseconds).",l.name),type:"number",minimum:0},debouncerDelay:{title:r.__("Debouncer delay"),minimum:0,description:r.__("Time since the last key press to wait before requesting completions from %1 provider (in milliseconds).",l.name),type:"number"},enabled:{title:r.__("Enabled"),description:r.__("Whether to fetch completions %1 provider.",l.name),type:"boolean"},autoFillInMiddle:{title:r.__("Fill in middle on typing"),description:r.__("Whether to show completions in the middle of the code line from %1 provider on typing.",l.name),type:"boolean"}},default:i(l),type:"object"}}o["providers"]["properties"]=a;return e}});const o=s.load(m);o.then((e=>{c(e);e.changed.connect((e=>{c(e)}))})).catch(console.error)})).catch(console.error);const h=t=>e.commands.keyBindings.find((e=>e.command===t));const u={[g.acceptInline]:h(g.acceptInline),[g.invokeInline]:h(g.invokeInline)};e.commands.keyBindingChanged.connect(((e,t)=>{const n=t.binding.command;if(u.hasOwnProperty(n)){u[n]=h(n)}}));const p=t=>{if(!(t.target instanceof Element)){return}const n=t.target;switch(t.keyCode){case 9:{const s=[u[g.acceptInline],u[g.invokeInline]];for(const o of s){if(o&&o.keys.length===1&&o.keys[0]==="Tab"&&n.closest(o.selector)&&e.commands.isEnabled(o.command)){const s=n.closest("."+i.COMPLETER_ACTIVE_CLASS);if((d===null||d===void 0?void 0:d.suppressIfTabCompleterActive)&&s){return}e.commands.execute(o.command).catch(console.error);t.preventDefault();t.stopPropagation();t.stopImmediatePropagation();return}}break}default:return}};document.addEventListener("keydown",p,true)}};const y={id:p,description:"Provides the completion provider manager.",requires:[r.ISettingRegistry],optional:[s.IFormRendererRegistry],provides:o.ICompletionProviderManager,autoStart:true,activate:(e,t,n)=>{const i="availableProviders";const s=new o.CompletionProviderManager;const r=(e,t)=>{var n;const o=e.get(i);const r=e.composite;s.setTimeout(r.providerTimeout);s.setShowDocumentationPanel(r.showDocumentationPanel);s.setContinuousHinting(r.autoCompletion);s.setSuppressIfInlineCompleterActive(r.suppressIfInlineCompleterActive);const a=(n=o.user)!==null&&n!==void 0?n:o.composite;const l=Object.entries(a!==null&&a!==void 0?a:{}).filter((e=>e[1]>=0&&t.includes(e[0]))).sort((([,e],[,t])=>t-e)).map((e=>e[0]));s.activateProvider(l)};e.restored.then((()=>{const e=[...s.getProviders().entries()];const n=e.map((([e,t])=>e));t.transform(p,{fetch:t=>{const n=t.schema.properties;const s={};e.forEach((([e,t],n)=>{var i;s[e]=(i=t.rank)!==null&&i!==void 0?i:(n+1)*10}));n[i]["default"]=s;return t}});const o=t.load(p);o.then((e=>{r(e,n);e.changed.connect((e=>{r(e,n)}))})).catch(console.error)})).catch(console.error);if(n){const e={fieldRenderer:e=>u(e)};n.addRenderer(`${p}.availableProviders`,e)}return s}};const w=[y,f,v,_,b];const C=w},2129:(e,t,n)=>{"use strict";var i=n(40662);var s=n(17325);var o=n(3579);var r=n(36060)},55178:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CONTEXT_PROVIDER_ID:()=>A,Completer:()=>T,CompleterModel:()=>g,CompletionHandler:()=>u,CompletionProviderManager:()=>ie,CompletionTriggerKind:()=>l,ContextCompleterProvider:()=>P,HistoryInlineCompletionProvider:()=>de,ICompletionProviderManager:()=>h,IInlineCompleterFactory:()=>c,InlineCompleter:()=>ne,InlineCompletionTriggerKind:()=>d,KERNEL_PROVIDER_ID:()=>R,KernelCompleterProvider:()=>N,ProviderReconciliator:()=>D,completerWidgetIcon:()=>ae,inlineCompleterIcon:()=>re});var i=n(44389);var s=n(40959);var o=n(42856);var r=n(2336);var a=n(5592);var l;(function(e){e[e["Invoked"]=1]="Invoked";e[e["TriggerCharacter"]=2]="TriggerCharacter";e[e["TriggerForIncompleteCompletions"]=3]="TriggerForIncompleteCompletions"})(l||(l={}));var d;(function(e){e[e["Invoke"]=0]="Invoke";e[e["Automatic"]=1]="Automatic"})(d||(d={}));const c=new a.Token("@jupyterlab/completer:IInlineCompleterFactory","A factory of inline completer widgets.");const h=new a.Token("@jupyterlab/completer:ICompletionProviderManager","A service for the completion providers management.");class u{constructor(e){this._fetchingInline=0;this._editor=null;this._enabled=false;this._isDisposed=false;this._autoCompletion=false;this._continuousInline=true;this._tabCompleterActive=false;this.completer=e.completer;this.inlineCompleter=e.inlineCompleter;this.completer.selected.connect(this.onCompletionSelected,this);this.completer.visibilityChanged.connect(this.onVisibilityChanged,this);this._reconciliator=e.reconciliator}set reconciliator(e){this._reconciliator=e}get editor(){return this._editor}set editor(e){if(e===this._editor){return}let t=this._editor;if(t&&!t.isDisposed){const e=t.model;t.host.classList.remove(i.COMPLETER_ENABLED_CLASS);t.host.classList.remove(i.COMPLETER_ACTIVE_CLASS);e.selections.changed.disconnect(this.onSelectionsChanged,this);e.sharedModel.changed.disconnect(this._onSharedModelChanged,this)}this.completer.reset();this.completer.editor=e;t=this._editor=e;if(t){const e=t.model;this._enabled=false;e.selections.changed.connect(this.onSelectionsChanged,this);const n=e.sharedModel;n.changed.connect(this._onSharedModelChanged,this);this.onSelectionsChanged();if(this.inlineCompleter){this.inlineCompleter.editor=t}}}get isDisposed(){return this._isDisposed}set autoCompletion(e){this._autoCompletion=e}get autoCompletion(){return this._autoCompletion}dispose(){if(this.isDisposed){return}this._isDisposed=true;r.Signal.clearData(this)}invokeInline(){const e=this._editor;if(e){this._makeInlineRequest(e.getCursorPosition(),d.Invoke).catch((e=>{console.warn("Inline invoke request bailed",e)}))}}invoke(){o.MessageLoop.sendMessage(this,u.Msg.InvokeRequest)}processMessage(e){switch(e.type){case u.Msg.InvokeRequest.type:this.onInvokeRequest(e);break;default:break}}getState(e,t){return{text:e.model.sharedModel.getSource(),line:t.line,column:t.column}}onCompletionSelected(e,t){const n=e.model;const i=this._editor;if(!i||!n){return}const s=n.createPatch(t);if(!s){return}const{start:o,end:r,value:a}=s;const l=i.getOffsetAt(i.getCursorPosition());const d={changes:{from:o,to:r,insert:a}};if(l<=r&&l>=o){d.selection={anchor:o+a.length}}i.editor.dispatch(d)}onInvokeRequest(e){if(!this.completer.model){return}if(this.completer.model.original){return}const t=this._editor;if(t){this._makeRequest(t.getCursorPosition(),l.Invoked).catch((e=>{console.warn("Invoke request bailed",e)}))}}onSelectionsChanged(){var e;const t=this.completer.model;const n=this._editor;if(!n){return}const s=(e=this.inlineCompleter)===null||e===void 0?void 0:e.model;if(s){s.handleSelectionChange(n.getSelection())}const o=n.host;if(!t){this._enabled=false;o.classList.remove(i.COMPLETER_ENABLED_CLASS);return}if(t.subsetMatch){return}const r=n.getCursorPosition();const a=n.getLine(r.line);const{start:l,end:d}=n.getSelection();if(l.column!==d.column||l.line!==d.line){this._enabled=false;t.reset(true);o.classList.remove(i.COMPLETER_ENABLED_CLASS);return}if(!a||d.column===0){o.classList.add(i.COMPLETER_LINE_BEGINNING_CLASS)}else if(a&&a.slice(0,r.column).match(/^\s*$/)){o.classList.add(i.COMPLETER_LINE_BEGINNING_CLASS)}else{o.classList.remove(i.COMPLETER_LINE_BEGINNING_CLASS)}if(!this._enabled){this._enabled=true;o.classList.add(i.COMPLETER_ENABLED_CLASS)}t.handleCursorChange(this.getState(n,n.getCursorPosition()))}async onTextChanged(e,t){var n;if(!this._enabled){return}const i=this.completer.model;const s=this.editor;if(!s){return}if(i&&this._autoCompletion&&this._reconciliator.shouldShowContinuousHint&&await this._reconciliator.shouldShowContinuousHint(this.completer.isVisible,t)){void this._makeRequest(s.getCursorPosition(),l.TriggerCharacter)}const o=(n=this.inlineCompleter)===null||n===void 0?void 0:n.model;if(o){o.handleTextChange(t);if(this._continuousInline){void this._makeInlineRequest(s.getCursorPosition(),d.Automatic)}}if(i){const{start:e,end:t}=s.getSelection();if(e.column!==t.column||e.line!==t.line){return}i.handleTextChange(this.getState(s,s.getCursorPosition()))}}onVisibilityChanged(e){var t;if(e.isDisposed||e.isHidden){this._tabCompleterActive=false;if(this._editor){this._editor.host.classList.remove(i.COMPLETER_ACTIVE_CLASS);this._editor.focus()}return}this._tabCompleterActive=true;(t=this._editor)===null||t===void 0?void 0:t.host.classList.add(i.COMPLETER_ACTIVE_CLASS)}async _onSharedModelChanged(e,t){if(t.sourceChange){await this.onTextChanged(e,t)}}_makeRequest(e,t){const n=this.editor;if(!n){return Promise.reject(new Error("No active editor"))}const i=this._composeRequest(n,e);const s=this.getState(n,e);return this._reconciliator.fetch(i,t).then((e=>{var t;if(!e){return}const n=this._updateModel(s,e.start,e.end);if(!n){return}if(this.completer.suppressIfInlineCompleterActive&&((t=this.inlineCompleter)===null||t===void 0?void 0:t.isActive)){return}if(n.setCompletionItems){n.setCompletionItems(e.items)}})).catch((e=>{}))}async _makeInlineRequest(e,t){const n=this.editor;if(!n){return Promise.reject(new Error("No active editor"))}if(!this.inlineCompleter){return Promise.reject(new Error("No inline completer"))}const i=n.getLine(e.line);if(t===d.Automatic&&(typeof i==="undefined"||i.slice(0,e.column).match(/^\s*$/))){this._fetchingInline+=1;return}let s=false;if(typeof i!=="undefined"&&e.column{var t;if(c||!e||!e.items){return}if(a!==this._fetchingInline){return}h.add(d);if(h.size===1){if(((t=this.inlineCompleter)===null||t===void 0?void 0:t.suppressIfTabCompleterActive)&&this._tabCompleterActive){c=true;return}r.setCompletions(e)}else{r.appendCompletions(e)}})).catch((e=>{console.warn(e)})).finally((()=>{h.add(d);const e=l.length-h.size;r.notifyProgress({pendingProviders:e,totalProviders:l.length})}))}}_composeRequest(e,t){const n=e.model.sharedModel.getSource();const i=e.model.mimeType;const o=s.Text.jsIndexToCharIndex(e.getOffsetAt(t),n);return{text:n,offset:o,mimeType:i}}_updateModel(e,t,n){const i=this.completer.model;const o=e.text;if(!i){return null}i.original=e;i.cursor={start:s.Text.charIndexToJsIndex(t,o),end:s.Text.charIndexToJsIndex(n,o)};return i}}(function(e){let t;(function(e){e[e["opened"]=0]="opened";e[e["update"]=1]="update";e[e["closed"]=2]="closed"})(t=e.StraemEvent||(e.StraemEvent={}));let n;(function(e){e.InvokeRequest=new o.Message("invoke-request")})(n=e.Msg||(e.Msg={}))})(u||(u={}));var p=n(34236);function m(e){const t=document.createElement("span");t.textContent=e;return t.innerHTML}class g{constructor(){this.processedItemsCache=null;this._current=null;this._cursor=null;this._isDisposed=false;this._completionItems=[];this._original=null;this._query="";this._subsetMatch=false;this._typeMap={};this._orderedTypes=[];this._stateChanged=new r.Signal(this);this._queryChanged=new r.Signal(this);this._processedToOriginalItem=null;this._resolvingItem=0}get stateChanged(){return this._stateChanged}get queryChanged(){return this._queryChanged}get original(){return this._original}set original(e){const t=this._original===e||this._original&&e&&a.JSONExt.deepEqual(e,this._original);if(t){return}this._reset();this._current=this._original=e;this._stateChanged.emit(undefined)}get current(){return this._current}set current(e){const t=this._current===e||this._current&&e&&a.JSONExt.deepEqual(e,this._current);if(t){return}const n=this._original;if(!n){return}const i=this._cursor;if(!i){return}const s=this._current=e;if(!s){this._stateChanged.emit(undefined);return}const o=n.text.split("\n")[n.line];const r=s.text.split("\n")[s.line];if(!this._subsetMatch&&r.lengthe.processedItem));this._processedToOriginalItem=new WeakMap(t.map((e=>[e.processedItem,e.originalItem])))}else{this.processedItemsCache=this._completionItems.map((e=>this._escapeItemLabel(e)));this._processedToOriginalItem=null}}return this.processedItemsCache}setCompletionItems(e){if(a.JSONExt.deepEqual(e,this._completionItems)){return}this._completionItems=e;this._orderedTypes=f.findOrderedCompletionItemTypes(this._completionItems);this.processedItemsCache=null;this._processedToOriginalItem=null;this._stateChanged.emit(undefined)}typeMap(){return this._typeMap}orderedTypes(){return this._orderedTypes}handleCursorChange(e){if(!this._original){return}const{column:t,line:n}=e;const{current:i,original:s}=this;if(!s){return}if(n!==s.line){this.reset(true);return}if(ts.column+r+d){this.reset(true);return}}handleTextChange(e){const t=this._original;if(!t){return}const{text:n,column:i,line:s}=e;const o=n.split("\n")[s][i-1];if(o&&o.match(/\S/)||e.column>=t.column){this.current=e;return}this.reset(false)}createPatch(e){const t=this._original;const n=this._cursor;const i=this._current;if(!t||!n||!i){return undefined}let{start:s,end:o}=n;o=o+(i.text.length-t.text.length);return{start:s,end:o,value:e}}reset(e=false){if(!e&&this._subsetMatch){return}this._reset();this._stateChanged.emit(undefined)}_markup(e){var t;const n=this._completionItems;let i=[];for(const s of n){const n=s.label.indexOf("(");const o=n>-1?s.label.substring(0,n):s.label;const r=p.StringExt.matchSumOfSquares(m(o),e);if(r){let e=p.StringExt.highlight(m(s.label),r.indices,f.mark);const n=Object.assign({},s);n.label=e.join("");n.insertText=(t=s.insertText)!==null&&t!==void 0?t:s.label;i.push({item:n,score:r.score,originalItem:s})}}i.sort(f.scoreCmp);return i.map((e=>({processedItem:e.item,originalItem:e.originalItem})))}resolveItem(e){let t;if(typeof e==="number"){const n=this.completionItems();if(!n||!n[e]){return undefined}t=n[e]}else{t=e}if(!t){return undefined}let n;if(this._processedToOriginalItem){n=this._processedToOriginalItem.get(t)}else{n=t}if(!n){return undefined}return this._resolveItemByValue(n)}_resolveItemByValue(e){const t=++this._resolvingItem;let n;if(e.resolve){let t;if(e.insertText){t=this.createPatch(e.insertText)}n=e.resolve(t)}else{n=Promise.resolve(e)}return n.then((n=>{this._escapeItemLabel(n,true);Object.keys(n).forEach((t=>{e[t]=n[t]}));e.resolve=undefined;if(t!==this._resolvingItem){return Promise.resolve(null)}return n})).catch((t=>{console.error(t);return Promise.resolve(e)}))}_escapeItemLabel(e,t=false){var n;const i=m(e.label);if(i!==e.label){const s=t?e:Object.assign({},e);s.insertText=(n=e.insertText)!==null&&n!==void 0?n:e.label;s.label=i;return s}return e}_reset(){const e=this._query;this._current=null;this._cursor=null;this._completionItems=[];this._original=null;this._query="";this.processedItemsCache=null;this._processedToOriginalItem=null;this._subsetMatch=false;this._typeMap={};this._orderedTypes=[];if(e){this._queryChanged.emit({newValue:this._query,origin:"reset"})}}}var f;(function(e){const t=["function","instance","class","module","keyword"];const n=t.reduce(((e,t)=>{e[t]=null;return e}),{});function i(e){return`${e}`}e.mark=i;function s(e,t){var n,i,s;const o=e.score-t.score;if(o!==0){return o}return(s=(n=e.item.insertText)===null||n===void 0?void 0:n.localeCompare((i=t.item.insertText)!==null&&i!==void 0?i:""))!==null&&s!==void 0?s:0}e.scoreCmp=s;function o(e){const n=new Set;e.forEach((e=>{if(e.type&&!t.includes(e.type)&&!n.has(e.type)){n.add(e.type)}}));const i=Array.from(n);i.sort(((e,t)=>e.localeCompare(t)));return t.concat(i)}e.findOrderedCompletionItemTypes=o;function r(e){const i=Object.keys(e).map((t=>e[t])).filter((e=>!!e&&!(e in n))).sort(((e,t)=>e.localeCompare(t)));return t.concat(i)}e.findOrderedTypes=r})(f||(f={}));var v=n(38850);var _=n(95513);var b=n(4073);var y=n(76326);var w=n(27518);const C="jp-Completer-item";const x="jp-mod-active";const S="jp-Completer-list";const j="jp-Completer-docpanel";const k=true;const I=10;class T extends w.Widget{constructor(e){var t,n,i,s;super({node:document.createElement("div")});this._activeIndex=0;this._editor=null;this._model=null;this._selected=new r.Signal(this);this._visibilityChanged=new r.Signal(this);this._indexChanged=new r.Signal(this);this._lastSubsetMatch="";this._geometryLock=false;this._geometryCounter=0;this._docPanelExpanded=false;this._renderCounter=0;this.sanitizer=(t=e.sanitizer)!==null&&t!==void 0?t:new v.Sanitizer;this._defaultRenderer=T.getDefaultRenderer(this.sanitizer);this._renderer=(n=e.renderer)!==null&&n!==void 0?n:this._defaultRenderer;this._docPanel=this._createDocPanelNode();this.model=(i=e.model)!==null&&i!==void 0?i:null;this.editor=(s=e.editor)!==null&&s!==void 0?s:null;this.addClass("jp-Completer");this.addClass("jp-ThemedContainer");this._updateConstraints()}_updateConstraints(){const e=document.createElement("div");e.classList.add(S);e.style.visibility="hidden";e.style.overflowY="scroll";document.body.appendChild(e);const t=window.getComputedStyle(e);this._maxHeight=parseInt(t.maxHeight,10);this._minHeight=parseInt(t.minHeight,10);this._scrollbarWidth=e.offsetWidth-e.clientWidth;document.body.removeChild(e);const n=this._createDocPanelNode();this._docPanelWidth=E.measureSize(n,"inline-block").width}get activeIndex(){return this._activeIndex}get editor(){return this._editor}set editor(e){this._editor=e}get selected(){return this._selected}get visibilityChanged(){return this._visibilityChanged}get indexChanged(){return this._indexChanged}get model(){return this._model}set model(e){if(!e&&!this._model||e===this._model){return}if(this._model){this._model.stateChanged.disconnect(this.onModelStateChanged,this);this._model.queryChanged.disconnect(this.onModelQueryChanged,this)}this._model=e;if(this._model){this._model.stateChanged.connect(this.onModelStateChanged,this);this._model.queryChanged.connect(this.onModelQueryChanged,this)}}get renderer(){return this._renderer}set renderer(e){this._renderer=e}set showDocsPanel(e){this._showDoc=e}get showDocsPanel(){return this._showDoc}dispose(){this._sizeCache=undefined;this._model=null;super.dispose()}handleEvent(e){if(this.isHidden||!this._editor){return}switch(e.type){case"keydown":this._evtKeydown(e);break;case"pointerdown":this._evtPointerdown(e);break;case"scroll":this._evtScroll(e);break;default:break}}reset(){this._activeIndex=0;this._lastSubsetMatch="";if(this._model){this._model.reset(true)}this._docPanel.style.display="none";this._sizeCache=undefined;this.node.scrollTop=0}selectActive(){const e=this.node.querySelector(`.${x}`);if(!e){this.reset();return}this._selected.emit(e.getAttribute("data-value"));this.reset()}onAfterAttach(e){document.addEventListener("keydown",this,k);document.addEventListener("pointerdown",this,k);document.addEventListener("scroll",this,k)}onBeforeDetach(e){document.removeEventListener("keydown",this,k);document.removeEventListener("pointerdown",this,k);document.removeEventListener("scroll",this,k)}onModelStateChanged(){if(this.isAttached){this._activeIndex=0;this._indexChanged.emit(this._activeIndex);this.update()}}onModelQueryChanged(e,t){if(this._sizeCache&&t.origin==="editorUpdate"){const t=e.completionItems();const n=this._sizeCache.items;const i=n[this._findWidestItemIndex(n)];const s=t[this._findWidestItemIndex(t)];const o=this._getPreferredItemWidthHeuristic();if(t.length!==this._sizeCache.items.length||o(i)!==o(s)){this._sizeCache=undefined}}}onUpdateRequest(e){var t;const n=this._model;if(!n){return}if(!n.query){this._populateSubset()}let i=n.completionItems();if(!i.length){if(!this.isHidden){this.reset();this.hide();this._visibilityChanged.emit(undefined)}return}this._updateConstraints();this._geometryLock=true;const s=this._createCompleterNode(n,i);let o=s.querySelectorAll(`.${C}`)[this._activeIndex];o.classList.add(x);const r=(t=this.model)===null||t===void 0?void 0:t.resolveItem(i[this._activeIndex]);if(this._showDoc){this._docPanel.innerText="";s.appendChild(this._docPanel);this._docPanelExpanded=false;this._docPanel.style.display="none";this._updateDocPanel(r,o)}if(this.isHidden){this.show();this._setGeometry();this._visibilityChanged.emit(undefined)}else{this._setGeometry()}this._geometryLock=false}get sizeCache(){if(!this._sizeCache){return}return{width:this._sizeCache.width+this._sizeCache.docPanelWidth,height:Math.max(this._sizeCache.height,this._sizeCache.docPanelHeight)}}_createDocPanelNode(){const e=document.createElement("div");e.className=j;return e}_createCompleterNode(e,t){const n=++this._renderCounter;let i=this.node;i.textContent="";let s=e.orderedTypes();let o=document.createElement("ul");o.className=S;const r=this._renderer.createCompletionItemNode(t[0],s);const a=[r];const l=E.measureSize(r,"inline-grid");const d=Math.max(Math.ceil(this._maxHeight/l.height),5);const c=Math.min(d+1,t.length);const h=performance.now();for(let g=1;g{if(r>=t.length){return}const e=l.height*(t.length-r);d.style.marginBottom=`${e}px`;requestAnimationFrame((()=>{if(n!=this._renderCounter){return}d.style.marginBottom="";const e=Math.min(t.length,r+i);for(let n=r;n{this._setGeometry()}))}_populateSubset(){const{model:e}=this;if(!e){return false}const t=e.completionItems();const n=E.commonSubset(t.map((e=>e.insertText||e.label)));const{query:i}=e;if(n&&n!==i&&n.indexOf(i)===0){e.query=n;return true}return false}_setGeometry(){const{node:e}=this;const t=this._model;const n=this._editor;if(!n||!t||!t.original||!t.cursor){return}const i=t.cursor.start;const s=n.getPositionAt(i);const o=n.getCoordinateForPosition(s);if(!o){return}const r=window.getComputedStyle(e);const a=parseInt(r.borderLeftWidth,10)||0;const l=parseInt(r.paddingLeft,10)||0;const d=n.host.closest(".jp-MainAreaWidget > .lm-Widget")||n.host;const c=t.completionItems();if(this._sizeCache&&this._sizeCache.items.length!==c.length){this._sizeCache=undefined}b.HoverBox.setGeometry({anchor:o,host:d,maxHeight:this._maxHeight,minHeight:this._minHeight,node:e,size:this.sizeCache,offset:{horizontal:a+l},privilege:"below",style:r,outOfViewDisplay:{top:"stick-inside",bottom:"stick-inside",left:"stick-inside",right:"stick-outside"}});const h=++this._geometryCounter;if(!this._sizeCache){requestAnimationFrame((()=>{if(h!=this._geometryCounter){return}let t=e.getBoundingClientRect();let n=this._docPanel.getBoundingClientRect();this._sizeCache={width:t.width-n.width,height:t.height,items:c,docPanelWidth:n.width,docPanelHeight:n.height}}))}}_updateDocPanel(e,t){var n,i,s;let o=this._docPanel;if(!e){this._toggleDocPanel(false);return}const r=(s=(i=(n=this._renderer).createLoadingDocsIndicator)===null||i===void 0?void 0:i.call(n))!==null&&s!==void 0?s:this._defaultRenderer.createLoadingDocsIndicator();t.appendChild(r);e.then((e=>{var t,n,i;if(!e){return}if(!o){return}if(e.documentation){const s=(i=(n=(t=this._renderer).createDocumentationNode)===null||n===void 0?void 0:n.call(t,e))!==null&&i!==void 0?i:this._defaultRenderer.createDocumentationNode(e);o.textContent="";o.appendChild(s);this._toggleDocPanel(true)}else{this._toggleDocPanel(false)}})).catch((e=>console.error(e))).finally((()=>{t.removeChild(r)}))}_toggleDocPanel(e){let t=this._docPanel;if(e){if(this._docPanelExpanded){return}t.style.display="";this._docPanelExpanded=true}else{if(!this._docPanelExpanded){return}t.style.display="none";this._docPanelExpanded=false}const n=this._sizeCache;if(n){n.docPanelHeight=e?this._maxHeight:0;n.docPanelWidth=e?this._docPanelWidth:0;if(!this._geometryLock){this._setGeometry()}}}}(function(e){class t{constructor(e){this.sanitizer=(e===null||e===void 0?void 0:e.sanitizer)||new v.Sanitizer}createCompletionItemNode(e,t){let n=this._createWrapperNode(e.insertText||e.label);if(e.deprecated){n.classList.add("jp-Completer-deprecated")}return this._constructNode(n,this._createLabelNode(e.label),!!e.type,e.type,t,e.icon)}createDocumentationNode(e){const t=document.createElement("div");t.classList.add("jp-RenderedText");const n=this.sanitizer;const i=e.documentation||"";(0,_.renderText)({host:t,sanitizer:n,source:i}).catch(console.error);return t}itemWidthHeuristic(e){var t;const n=e.label.replace(/<(\/)?mark>/g,"");return n.length+(((t=e.type)===null||t===void 0?void 0:t.length)||0)}createLoadingDocsIndicator(){const e=document.createElement("div");e.classList.add("jp-Completer-loading-bar-container");const t=document.createElement("div");t.classList.add("jp-Completer-loading-bar");e.append(t);return e}_createWrapperNode(e){const t=document.createElement("li");t.className=C;t.setAttribute("data-value",e);return t}_createLabelNode(e){const t=document.createElement("code");t.className="jp-Completer-match";t.innerHTML=e;return t}_constructNode(e,t,n,i,s,o){if(o){const t=o.element({className:"jp-Completer-type jp-Completer-icon"});e.appendChild(t)}else if(n){const t=document.createElement("span");t.textContent=(i[0]||"").toLowerCase();const n=s.indexOf(i)%I+1;t.className="jp-Completer-type jp-Completer-monogram";t.setAttribute(`data-color-index`,n.toString());e.appendChild(t)}else{const t=document.createElement("span");t.className="jp-Completer-monogram";e.appendChild(t)}e.appendChild(t);if(n){e.title=i;const t=document.createElement("code");t.className="jp-Completer-typeExtended";t.textContent=i.toLocaleLowerCase();e.appendChild(t)}else{const t=document.createElement("span");t.className="jp-Completer-typeExtended";e.appendChild(t)}return e}}e.Renderer=t;let n;function i(e){if(!n||e&&n.sanitizer!==e){n=new t({sanitizer:e})}return n}e.getDefaultRenderer=i})(T||(T={}));var E;(function(e){e.keyCodeMap={38:"up",40:"down",33:"pageUp",34:"pageDown"};function t(e){const t=e.length;let n="";if(t<2){return n}const i=e[0].length;for(let s=0;se.resolve?n=>e.resolve(t,this._context,n):undefined;this._fetching=0;this._inlineFetching=0;this._providers=e.providers;this._inlineProviders=(t=e.inlineProviders)!==null&&t!==void 0?t:[];this._inlineProvidersSettings=(n=e.inlineProvidersSettings)!==null&&n!==void 0?n:{};this._context=e.context;this._timeout=e.timeout}async applicableProviders(){const e=this._providers.map((e=>e.isApplicable(this._context)));const t=await Promise.all(e);return this._providers.filter(((e,n)=>t[n]))}fetchInline(e,t,n){let i=[];const s=++this._inlineFetching;for(const o of this._inlineProviders){const a=this._inlineProvidersSettings[o.identifier];if(t!==d.Invoke&&n&&!a.autoFillInMiddle){continue}let l=0;if(t===d.Automatic){l=a.debouncerDelay}const c=()=>{const n=o.fetch(e,{...this._context,triggerKind:t}).then((e=>({...e,items:e.items.map((e=>{const t=e;t.stream=new r.Signal(t);t.provider=o;void this._stream(t,o);return t}))})));const i=new Promise((e=>setTimeout((()=>e(null)),l+a.timeout)));return Promise.race([n,i])};const h=l===0?c():new Promise(((e,t)=>setTimeout((()=>{if(s!=this._inlineFetching){return t(null)}else{return e(c())}}),l)));i.push(h.catch((e=>e)))}return i}async _stream(e,t){if(!e.isIncomplete||!t.stream||!e.token){return}const n=e.stream;const i=e.token;e.token=undefined;e.streaming=true;n.emit(u.StraemEvent.opened);for await(const s of t.stream(i)){const t=s.response;const i=t.insertText.substring(e.insertText.length);e.insertText=t.insertText;e.lastStreamed=i;e.error=s.response.error;n.emit(u.StraemEvent.update)}e.isIncomplete=false;e.lastStreamed=undefined;e.streaming=false;n.emit(u.StraemEvent.closed)}async fetch(e,t){const n=++this._fetching;let i=[];const s=await this.applicableProviders();for(const r of s){let s;s=r.fetch(e,this._context,t).then((e=>{if(n!==this._fetching){return Promise.reject(void 0)}const t=e.items.map((e=>({...e,resolve:this._resolveFactory(r,e)})));return{...e,items:t}}));const o=new Promise((e=>setTimeout((()=>e(null)),this._timeout)));s=Promise.race([s,o]);i.push(s.catch((e=>e)))}const o=Promise.all(i);return this._mergeCompletions(o)}async shouldShowContinuousHint(e,t){const n=await this.applicableProviders();if(n.length===0){return false}if(n[0].shouldShowContinuousHint){return n[0].shouldShowContinuousHint(e,t,this._context)}return this._defaultShouldShowContinuousHint(e,t)}_alignPrefixes(e,t,n){if(t!=n){const t=this._context.editor;if(!t){return e}const i=t.getCursorPosition();const s=t.getLine(i.line);if(!s){return e}const o=t.getOffsetAt({line:i.line,column:0});return e.map((e=>{const t=Math.max(e.start-o,0);const i=Math.max(n-o,0);if(t==i){return e}const r=s.substring(t,i);return{...e,items:e.items.map((e=>{let t=e.insertText||e.label;e.insertText=t.startsWith(r)?t.slice(r.length):t;return e}))}}))}return e}async _mergeCompletions(e){let t=(await e).filter((e=>{if(!e||e instanceof Error){return false}if(!e.items.length){return false}return true}));if(t.length==0){return null}else if(t.length==1){return t[0]}const n=Math.min(...t.map((e=>e.end)));const i=t.map((e=>e.start));const s=Math.min(...i);const o=Math.max(...i);t=this._alignPrefixes(t,s,o);const r=new Set;const a=new Array;for(const l of t){l.items.forEach((e=>{let t=(e.insertText||e.label).trim();if(r.has(t)){return}r.add(t);a.push(e)}))}return{start:o,end:n,items:a}}_defaultShouldShowContinuousHint(e,t){var n,i,s;const o=(s=(i=(n=this._context)===null||n===void 0?void 0:n.editor)===null||i===void 0?void 0:i.model.mimeType)!==null&&s!==void 0?s:"";if(!M(o)){return false}return!e&&(t.sourceChange==null||t.sourceChange.some((e=>e.insert!=null&&e.insert.length>0)))}}const A="CompletionProvider:context";class P{constructor(){this.identifier=A;this.rank=500;this.renderer=null}async isApplicable(e){return true}fetch(e,t){const n=t.editor;if(!n){return Promise.reject("No editor")}return new Promise((e=>{e(L.contextHint(n))}))}}var L;(function(e){function t(e){const t=e.getTokenAtCursor();const i=n(t,e);const s=i.filter((e=>e.type)).map((e=>e.value));const o=new Set(s);const r=new Array;o.forEach((e=>r.push({label:e})));return{start:t.offset,end:t.offset+t.value.length,items:r}}e.contextHint=t;function n(e,t){const n=t.getTokens();return n.filter((t=>t.value.indexOf(e.value)===0&&t.value!==e.value))}})(L||(L={}));const R="CompletionProvider:kernel";class N{constructor(){this.identifier=R;this.rank=550;this.renderer=null}async isApplicable(e){var t;const n=(t=e.session)===null||t===void 0?void 0:t.kernel;if(!n){return false}return true}async fetch(e,t){var n;const i=(n=t.session)===null||n===void 0?void 0:n.kernel;if(!i){throw new Error("No kernel for completion request.")}const s={code:e.text,cursor_pos:e.offset};const o=await i.requestComplete(s);const r=o.content;if(r.status!=="ok"){throw new Error("Completion fetch failed to return successfully.")}const a=new Array;const l=r.metadata._jupyter_types_experimental;r.matches.forEach(((e,t)=>{if(l&&l[t]){a.push({label:e,type:l[t].type,insertText:l[t].text})}else{a.push({label:e})}}));return{start:r.cursor_start,end:r.cursor_end,items:a}}async resolve(e,t,n){const{editor:i,session:o}=t;if(o&&i){let t=i.model.sharedModel.getSource();const r=i.getCursorPosition();let a=s.Text.jsIndexToCharIndex(i.getOffsetAt(r),t);const l=o.kernel;if(!t||!l){return Promise.resolve(e)}if(n){const{start:e,value:i}=n;t=t.substring(0,e)+i;a=a+i.length}const d={code:t,cursor_pos:a,detail_level:0};const c=await l.requestInspect(d);const h=c.content;if(h.status!=="ok"||!h.found){return e}e.documentation=h.data["text/plain"];return e}return e}shouldShowContinuousHint(e,t,n){var i,s;const o=(s=(i=n===null||n===void 0?void 0:n.editor)===null||i===void 0?void 0:i.model.mimeType)!==null&&s!==void 0?s:"";if(!M(o)){return false}const r=t.sourceChange;if(r==null){return true}if(r.some((e=>e.delete!=null))){return false}return r.some((t=>t.insert!=null&&(t.insert==="."||!e&&t.insert.trim().length>0)))}}var B=n(22819);var O=n(71674);const F="jp-GhostText-lineSpacer";const z="jp-GhostText-letterSpacer";const W="jp-GhostText";const H="jp-GhostText-streamedToken";const V="jp-GhostText-streamingIndicator";const U="jp-GhostText-errorIndicator";const q="jp-GhostText-hiddenLines";class ${constructor(e){this.options=e}placeGhost(e,t){const n=[X.addMark.of(t)];if(!e.state.field(X.markField,false)){n.push(O.StateEffect.appendConfig.of([X.markField]));n.push(O.StateEffect.appendConfig.of([B.EditorView.domEventHandlers({blur:t=>{if(this.options.onBlur(t)===false){return true}const n=[X.removeMark.of(null)];setTimeout((()=>{e.dispatch({effects:n})}),0)}})]))}e.dispatch({effects:n})}clearGhosts(e){const t=[X.removeMark.of(null)];e.dispatch({effects:t})}}$.streamingAnimation="uncover";$.spacerRemovalDelay=700;$.spacerRemovalDuration=300;class K extends B.WidgetType{constructor(e){super();this.options=e;this.isSpacer=false;this._clearErrorTimeout=null}eq(e){return e.content==this.content&&e.options.streaming===this.options.streaming&&e.options.error===this.options.error}get lineBreaks(){return(this.content.match(/\n/g)||"").length}updateDOM(e,t){this._updateDOM(e);return true}get content(){return this.options.content}toDOM(){let e=document.createElement("span");if(this.options.onPointerOver){e.addEventListener("pointerover",this.options.onPointerOver)}if(this.options.onPointerLeave){e.addEventListener("pointerleave",this.options.onPointerLeave)}e.classList.add(W);e.dataset.animation=$.streamingAnimation;e.dataset.providedBy=this.options.providerId;this._updateDOM(e);return e}_removeErrorAnimation(e){const t=e.querySelectorAll(`.${U}`);t.forEach((e=>{e.remove()}))}_mountErrorAnimation(e){const t=document.createElement("span");t.className=U;const n=this.options.error;if(n===null||n===void 0?void 0:n.message){t.title=n===null||n===void 0?void 0:n.message}const i=e.querySelectorAll(`.${V}, .${U}`);i.forEach((e=>{e.remove()}));e.appendChild(t)}_updateDOM(e){var t,n;if(this.options.error){this._mountErrorAnimation(e);this._clearErrorTimeout=setTimeout((()=>{this._removeErrorAnimation(e);this._clearErrorTimeout=null}),5e3);return}if(this._clearErrorTimeout!==null){clearTimeout(this._clearErrorTimeout);this._removeErrorAnimation(e);this._clearErrorTimeout=null}let i=this.content;let s="";let o=this.options.addedPart;if(o){if(o.startsWith("\n")){o=o.substring(1)}i=i.substring(0,i.length-o.length)}if(this.options.maxLines){const e=i.split("\n");i=e.slice(0,this.options.maxLines).join("\n");s=e.slice(this.options.maxLines).join("\n")}const r=Math.min((t=this.options.minLines)!==null&&t!==void 0?t:0,(n=this.options.maxLines)!==null&&n!==void 0?n:Infinity);const a=Math.max(0,r-i.split("\n").length+1);const l=new Array(a).fill("").join("\n");if(this.isSpacer){e.innerText=i+l;return}e.innerText=i;let d=e;if(s.length>0){const t=document.createElement("span");t.className="jp-GhostText-hiddenWrapper";e.appendChild(t);const n=document.createElement("span");n.className="jp-GhostText-expandHidden";n.innerText="⇓";const i=document.createElement("span");t.appendChild(n);i.className=q;i.innerText="\n"+s;t.appendChild(i);d=i}if(o){const e=document.createElement("span");e.className=H;e.innerText=o;d.appendChild(e)}if(this.options.streaming){const e=document.createElement("span");e.className=V;d.appendChild(e)}if(l.length>0){const e=document.createTextNode(l);d.appendChild(e)}}destroy(e){if(this.options.onPointerOver){e.removeEventListener("pointerover",this.options.onPointerOver)}if(this.options.onPointerLeave){e.removeEventListener("pointerleave",this.options.onPointerLeave)}super.destroy(e)}}class J extends K{constructor(){super(...arguments);this.isSpacer=true}}class G extends J{toDOM(){const e=super.toDOM();e.classList.add(F);e.style.animationDelay=$.spacerRemovalDelay+"ms";e.style.animationDuration=$.spacerRemovalDuration+"ms";return e}}class Y extends J{get content(){return this.options.content[0]}toDOM(){const e=super.toDOM();e.classList.add(z);return e}}var X;(function(e){let t;(function(e){e[e["Set"]=0]="Set";e[e["Remove"]=1]="Remove";e[e["FilterAndUpdate"]=2]="FilterAndUpdate"})(t||(t={}));e.addMark=O.StateEffect.define({map:(e,t)=>({...e,from:t.mapPos(e.from),to:t.mapPos(e.from+e.content.length)})});e.removeMark=O.StateEffect.define();function n(n){for(let i of n.effects){if(i.is(e.addMark)){return{action:t.Set,spec:i.value}}else if(i.is(e.removeMark)){return{action:t.Remove}}}if(n.docChanged||n.selection){return{action:t.FilterAndUpdate}}return null}function i(e,t){const n=B.Decoration.widget({widget:new K(e),side:1,ghostSpec:e});return n.range(Math.min(e.from,t.newDoc.length),Math.min(e.from,t.newDoc.length))}function s(e,t,n=1e3){if(e.content.length<2){return[]}const i={elapsed:false};setTimeout((()=>{i.elapsed=true}),n);const s=B.Decoration.widget({widget:new Y(e),side:1,timeoutInfo:i});const o=B.Decoration.widget({widget:new G(e),side:1,timeoutInfo:i});return[s.range(Math.min(e.from,t.newDoc.length),Math.min(e.from,t.newDoc.length)),o.range(Math.min(e.from,t.newDoc.length),Math.min(e.from,t.newDoc.length))]}e.markField=O.StateField.define({create(){return B.Decoration.none},update(e,o){const r=n(o);e=e.update({filter:(e,t,n)=>{if(n.spec.widget instanceof J){return!n.spec.timeoutInfo.elapsed}return true}});if(!r){return e.map(o.changes)}switch(r.action){case t.Set:{const t=r.spec;const n=i(t,o);return e.update({add:[n],filter:(e,t,i)=>i===n.value})}case t.Remove:return e.update({filter:()=>false});case t.FilterAndUpdate:{let t=e.iter();while(t.value&&t.value.spec.widget instanceof J){t.next()}if(!t.value){return e.map(o.changes)}const n=t.value.spec.ghostSpec;const r={...n};let l=false;o.changes.iterChanges(((e,t,n,i,s)=>{if(l){return}if(e===t&&n!==i){for(let e=0;e0?"\n"+t:t;if(r.content.startsWith(n)){r.content=r.content.slice(n.length);r.from+=n.length}else{l=true;break}}}else if(n===i&&e!==t){l=true}else{l=true}}));const d=l?s(n,o):[i(r,o)];const c=d.map((e=>e.value));e=e.update({add:d,filter:(e,t,n)=>c.includes(n)});if(l){try{e=e.map(o.changes)}catch(a){console.warn(a);return B.Decoration.none}}return e}}},provide:e=>B.EditorView.decorations.from(e)})})(X||(X={}));const Q="jp-InlineCompleter";const Z="jp-mod-inline-completer-active";const ee="jp-InlineCompleter-hover";const te="jp-InlineCompleter-progressBar";class ne extends w.Widget{constructor(e){var t,n;super({node:document.createElement("div")});this._clearHoverTimeout=null;this._current=0;this._editor=null;this._lastItem=null;this._model=null;this._providerWidget=new w.Widget;this._showShortcuts=ne.defaultSettings.showShortcuts;this._showWidget=ne.defaultSettings.showWidget;this._suggestionsCounter=new w.Widget;this._toolbar=new b.Toolbar;this.model=(t=e.model)!==null&&t!==void 0?t:null;this.editor=(n=e.editor)!==null&&n!==void 0?n:null;this.addClass(Q);this.addClass("jp-ThemedContainer");this._ghostManager=new $({onBlur:this._onEditorBlur.bind(this)});this._trans=e.trans;const i=this.layout=new w.PanelLayout;i.addWidget(this._suggestionsCounter);i.addWidget(this.toolbar);i.addWidget(this._providerWidget);this._progressBar=document.createElement("div");this._progressBar.className=te;this.node.appendChild(this._progressBar);this._updateShortcutsVisibility();this._updateDisplay();this.node.tabIndex=0}get toolbar(){return this._toolbar}get editor(){return this._editor}set editor(e){var t;(t=this.model)===null||t===void 0?void 0:t.reset();this._editor=e}get model(){return this._model}set model(e){if(!e&&!this._model||e===this._model){return}if(this._model){this._model.suggestionsChanged.disconnect(this._onModelSuggestionsChanged,this);this._model.filterTextChanged.disconnect(this._onModelFilterTextChanged,this);this._model.provisionProgress.disconnect(this._onProvisionProgress,this)}this._model=e;if(this._model){this._model.suggestionsChanged.connect(this._onModelSuggestionsChanged,this);this._model.filterTextChanged.connect(this._onModelFilterTextChanged,this);this._model.provisionProgress.connect(this._onProvisionProgress,this)}}cycle(e){var t,n;const i=(n=(t=this.model)===null||t===void 0?void 0:t.completions)===null||n===void 0?void 0:n.items;if(!i){return}if(e==="next"){const e=this._current+1;this._current=e===i.length?0:e}else{const e=this._current-1;this._current=e===-1?i.length-1:e}this._updateStreamTracking();this._render()}accept(){const e=this.model;const t=this.current;const n=this._editor;if(!n||!e||!t){return}const i=e.cursor;const s=t.insertText;const o=n.getOffsetAt(n.getCursorPosition());const r=n.getOffsetAt(i);const a=r;const l=o;const d={changes:{from:a,to:l,insert:s}};if(o<=l&&o>=a){d.selection={anchor:a+s.length}}n.editor.dispatch(d);e.reset();this.update()}get current(){var e;const t=(e=this.model)===null||e===void 0?void 0:e.completions;if(!t){return null}return t.items[this._current]}_updateStreamTracking(){if(this._lastItem){this._lastItem.stream.disconnect(this._onStream,this)}const e=this.current;if(e){e.stream.connect(this._onStream,this)}this._lastItem=e}_onStream(e,t){var n;const i=(n=this.model)===null||n===void 0?void 0:n.completions;if(!i||!i.items||i.items.length===0){return}if(this.isHidden){return}const s=i.items[this._current];this._setText(s)}configure(e){this._showWidget=e.showWidget;this._updateDisplay();if(e.showShortcuts!==this._showShortcuts){this._showShortcuts=e.showShortcuts;this._updateShortcutsVisibility()}$.streamingAnimation=e.streamingAnimation;$.spacerRemovalDelay=Math.max(0,e.editorResizeDelay-300);$.spacerRemovalDuration=Math.max(0,Math.min(300,e.editorResizeDelay-300));this._minLines=e.minLines;this._maxLines=e.maxLines;this._reserveSpaceForLongest=e.reserveSpaceForLongest;this._suppressIfTabCompleterActive=e.suppressIfTabCompleterActive}get suppressIfTabCompleterActive(){return this._suppressIfTabCompleterActive}get isActive(){var e;return!!((e=this.editor)===null||e===void 0?void 0:e.host.classList.contains(Z))}handleEvent(e){if(this.isHidden||!this._editor){return}switch(e.type){case"pointerdown":this._evtPointerdown(e);break;case"scroll":this._evtScroll(e);break;default:break}}onUpdateRequest(e){super.onUpdateRequest(e);const t=this._model;if(!t){return}let n=t.completions;if(!n||!n.items||n.items.length===0){if(!this.isHidden){this.hide()}return}if(this.isHidden){this.show();this._setGeometry()}}onAfterAttach(e){document.addEventListener("scroll",this,true);document.addEventListener("pointerdown",this,true)}onBeforeDetach(e){document.removeEventListener("scroll",this,true);document.removeEventListener("pointerdown",this,true)}_evtPointerdown(e){var t;if(this.isHidden||!this._editor){return}const n=e.target;if(this.node.contains(n)){return true}this.hide();(t=this.model)===null||t===void 0?void 0:t.reset()}_evtScroll(e){if(this.isHidden||!this._editor){return}const{node:t}=this;if(t.contains(e.target)){return}requestAnimationFrame((()=>{this._setGeometry()}))}_onEditorBlur(e){var t;if(this.node.contains(e.relatedTarget)){return false}(t=this._editor)===null||t===void 0?void 0:t.host.classList.remove(Z);this.hide()}_onModelSuggestionsChanged(e,t){var n;if(!this.isAttached){this.update();return}if(t.event==="set"){this._current=(n=t.indexMap.get(this._current))!==null&&n!==void 0?n:0}else if(t.event==="clear"){const e=this.editor;if(e){this._ghostManager.clearGhosts(e.editor);e.host.classList.remove(Z)}}this._updateStreamTracking();this.update();this._render()}_onModelFilterTextChanged(e,t){var n,i;const s=(n=this.model)===null||n===void 0?void 0:n.completions;if(!s||!s.items||s.items.length===0){return}this._current=(i=t.get(this._current))!==null&&i!==void 0?i:0;this._updateStreamTracking();setTimeout((()=>{this._render();this._setGeometry()}),0)}_onProvisionProgress(e,t){requestAnimationFrame((()=>{if(t.pendingProviders===0){this._progressBar.style.display="none"}else{this._progressBar.style.display="";this._progressBar.style.width=100*t.pendingProviders/t.totalProviders+"%"}}))}_render(){var e,t;const n=(e=this.model)===null||e===void 0?void 0:e.completions;if(!n||!n.items||n.items.length===0){return}const i=n.items[this._current];this._setText(i);if(this._showWidget==="never"){return}this._suggestionsCounter.node.innerText=this._trans.__("%1/%2",this._current+1,n.items.length);this._providerWidget.node.title=this._trans.__("Provider: %1",i.provider.name);const s=(t=i.provider.icon)!==null&&t!==void 0?t:b.kernelIcon;s.render(this._providerWidget.node)}_setText(e){var t,n,i;const s=e.insertText;const o=this._editor;const r=this._model;if(!r||!o){return}const a=o.editor;let l;if(this._reserveSpaceForLongest){const e=(i=(n=(t=this.model)===null||t===void 0?void 0:t.completions)===null||n===void 0?void 0:n.items)!==null&&i!==void 0?i:[];const s=Math.max(...e.map((e=>e.insertText.split("\n").length)));l=Math.max(this._minLines,s)}else{l=this._minLines}this._ghostManager.placeGhost(a,{from:o.getOffsetAt(r.cursor),content:s,providerId:e.provider.identifier,addedPart:e.lastStreamed,streaming:e.streaming,minLines:l,maxLines:this._maxLines,onPointerOver:this._onPointerOverGhost.bind(this),onPointerLeave:this._onPointerLeaveGhost.bind(this),error:e.error});o.host.classList.add(Z)}_onPointerOverGhost(){if(this._clearHoverTimeout!==null){window.clearTimeout(this._clearHoverTimeout);this._clearHoverTimeout=null}this.node.classList.add(ee)}_onPointerLeaveGhost(){this._clearHoverTimeout=window.setTimeout((()=>this.node.classList.remove(ee)),500)}_setGeometry(){const{node:e}=this;const t=this._model;const n=this._editor;if(!n||!t||!t.cursor){return}const i=n.host.closest(".jp-MainAreaWidget > .lm-Widget")||n.host;let s;try{const e=n.getCoordinateForPosition(t.cursor);if(!e){throw Error("No coordinates for cursor position")}s=e}catch(o){this.hide();return}b.HoverBox.setGeometry({anchor:s,host:i,maxHeight:40,minHeight:20,node:e,privilege:"forceAbove",outOfViewDisplay:{top:"stick-outside",bottom:"stick-inside",left:"stick-inside",right:"stick-outside"}})}_updateShortcutsVisibility(){this.node.dataset.showShortcuts=this._showShortcuts+""}_updateDisplay(){this.node.dataset.display=this._showWidget}}(function(e){e.defaultSettings={showWidget:"onHover",showShortcuts:true,streamingAnimation:"uncover",providers:{},minLines:2,maxLines:4,editorResizeDelay:1e3,reserveSpaceForLongest:false,suppressIfTabCompleterActive:true};class t{constructor(){this.suggestionsChanged=new r.Signal(this);this.filterTextChanged=new r.Signal(this);this.provisionProgress=new r.Signal(this);this._isDisposed=false;this._completions=null}setCompletions(e){var t,n;const i=new Map((n=(t=this._completions)===null||t===void 0?void 0:t.items)===null||n===void 0?void 0:n.map(((e,t)=>[e.insertText,t])));this._completions=e;const s=new Map(e.items.map(((e,t)=>[i.get(e.insertText),t])));this.suggestionsChanged.emit({event:"set",indexMap:s})}appendCompletions(e){if(!this._completions||!this._completions.items){console.warn("No completions to append to");return}this._completions.items.push(...e.items);this.suggestionsChanged.emit({event:"append"})}notifyProgress(e){this.provisionProgress.emit(e)}get cursor(){return this._cursor}set cursor(e){this._cursor=e}get completions(){return this._completions}reset(){this._completions=null;this.suggestionsChanged.emit({event:"clear"})}get isDisposed(){return this._isDisposed}handleTextChange(e){var t;const n=this._completions;if(!n||!n.items||n.items.length===0){return}const i=new Map(n.items.map(((e,t)=>[e,t])));for(let o of(t=e.sourceChange)!==null&&t!==void 0?t:[]){const e=o.insert;if(e){const t=n.items.filter((t=>{var n;const i=(n=t.filterText)!==null&&n!==void 0?n:t.insertText;if(!i.startsWith(e)){return false}t.filterText=i.substring(e.length);t.insertText=t.insertText.substring(e.length);return true}));if(t.length===0){this._completions=null}n.items=t}else{if(!o.retain){this._completions=null}}}const s=new Map(n.items.map(((e,t)=>[i.get(e),t])));this.filterTextChanged.emit(s)}handleSelectionChange(e){const t=this.cursor;if(!t){return}const{start:n,end:i}=e;if(n.column!==i.column||n.line!==i.line){this.reset()}if(n.line!==t.line||n.columnt.completer.showDocsPanel=e));this._showDoc=e}setSuppressIfInlineCompleterActive(e){this._panelHandlers.forEach((t=>t.completer.suppressIfInlineCompleterActive=e));this._suppressIfInlineCompleterActive=e}setContinuousHinting(e){this._panelHandlers.forEach((t=>t.autoCompletion=e));this._autoCompletion=e}registerProvider(e){const t=e.identifier;if(this._providers.has(t)){console.warn(`Completion provider with identifier ${t} is already registered`)}else{this._providers.set(t,e);this._panelHandlers.forEach(((e,t)=>{void this.updateCompleter(this._mostRecentContext.get(t))}))}}registerInlineProvider(e){const t=e.identifier;if(this._inlineProviders.has(t)){console.warn(`Completion provider with identifier ${t} is already registered`)}else{this._inlineProviders.set(t,e);this._panelHandlers.forEach(((e,t)=>{void this.updateCompleter(this._mostRecentContext.get(t))}))}}getProviders(){return this._providers}activateProvider(e){this._activeProviders=new Set([]);e.forEach((e=>{if(this._providers.has(e)){this._activeProviders.add(e)}}));if(this._activeProviders.size===0){this._activeProviders.add(R);this._activeProviders.add(A)}this._activeProvidersChanged.emit()}async updateCompleter(e){var t,n;const{widget:i,editor:s,sanitizer:o}=e;const r=i.id;const a=this._panelHandlers.get(r);const l=[...this._activeProviders][0];const d=this._providers.get(l);let c=(t=d===null||d===void 0?void 0:d.renderer)!==null&&t!==void 0?t:T.getDefaultRenderer(o);const h=d===null||d===void 0?void 0:d.modelFactory;let u;if(h){u=await h.call(d,e)}else{u=new g}this._mostRecentContext.set(i.id,e);const p={model:u,editor:s,renderer:c,sanitizer:o,showDoc:this._showDoc};if(!a){const t=await this._generateHandler(e,p);this._panelHandlers.set(i.id,t);t.completer.selected.connect(((e,t)=>this._selected.emit({insertText:t})));i.disposed.connect((e=>{this.disposeHandler(e.id,t);this._mostRecentContext.delete(r)}))}else{const t=a.completer;(n=t.model)===null||n===void 0?void 0:n.dispose();t.model=p.model;t.renderer=p.renderer;t.showDocsPanel=p.showDoc;t.suppressIfInlineCompleterActive=this._suppressIfInlineCompleterActive;a.autoCompletion=this._autoCompletion;if(s){a.editor=s;a.reconciliator=await this.generateReconciliator(e)}}}invoke(e){const t=this._panelHandlers.get(e);if(t){t.invoke()}}select(e){const t=this._panelHandlers.get(e);if(t){t.completer.selectActive()}}setInlineCompleterFactory(e){this._inlineCompleterFactory=e;this._panelHandlers.forEach(((e,t)=>{void this.updateCompleter(this._mostRecentContext.get(t))}));if(this.inline){return}this.inline={invoke:e=>{const t=this._panelHandlers.get(e);if(t&&t.inlineCompleter){t.invokeInline()}},isActive:e=>{const t=this._panelHandlers.get(e);if(t&&t.inlineCompleter){return t.inlineCompleter.isActive}return false},cycle:(e,t)=>{const n=this._panelHandlers.get(e);if(n&&n.inlineCompleter){n.inlineCompleter.cycle(t)}},accept:e=>{const t=this._panelHandlers.get(e);if(t&&t.inlineCompleter){t.inlineCompleter.accept()}},configure:e=>{this._inlineCompleterSettings=e;for(const[t,n]of this._inlineProviders.entries()){if(n.configure){n.configure(e.providers[t])}}this._panelHandlers.forEach(((t,n)=>{if(t.inlineCompleter){t.inlineCompleter.configure(e)}void this.updateCompleter(this._mostRecentContext.get(n))}))}}}get inlineProviders(){return[...this._inlineProviders.values()]}async generateReconciliator(e){const t=[];for(const[s,o]of Object.entries(this._inlineCompleterSettings.providers)){if(o.enabled===true){t.push(s)}}const n=[...this._inlineProviders.values()].filter((e=>t.includes(e.identifier)));const i=[];for(const s of this._activeProviders){const e=this._providers.get(s);if(e){i.push(e)}}return new D({context:e,providers:i,inlineProviders:n,inlineProvidersSettings:this._inlineCompleterSettings.providers,timeout:this._timeout})}disposeHandler(e,t){var n,i,s,o;(n=t.completer.model)===null||n===void 0?void 0:n.dispose();t.completer.dispose();(s=(i=t.inlineCompleter)===null||i===void 0?void 0:i.model)===null||s===void 0?void 0:s.dispose();(o=t.inlineCompleter)===null||o===void 0?void 0:o.dispose();t.dispose();this._panelHandlers.delete(e)}async _generateHandler(e,t){const n=new T(t);const i=this._inlineCompleterFactory?this._inlineCompleterFactory.factory({...t,model:new ne.Model}):undefined;n.hide();w.Widget.attach(n,document.body);if(i){w.Widget.attach(i,document.body);i.hide();i.configure(this._inlineCompleterSettings)}const s=await this.generateReconciliator(e);const o=new u({completer:n,inlineCompleter:i,reconciliator:s});o.editor=e.editor;return o}}const se='\n \n \n\n';const oe='\n\n\n\n';const re=new b.LabIcon({name:"completer:inline",svgstr:se});const ae=new b.LabIcon({name:"completer:widget",svgstr:oe});var le=n(34881);class de{constructor(e){this.options=e;this.identifier="@jupyterlab/inline-completer:history";this._maxSuggestions=100;const t=e.translator||le.nullTranslator;this._trans=t.load("jupyterlab")}get name(){return this._trans.__("History")}get icon(){return b.historyIcon}get schema(){return{properties:{maxSuggestions:{title:this._trans.__("Maximum number of suggestions"),description:this._trans.__("The maximum number of suggestions to retrieve from history."),type:"number"}},default:{enabled:false,maxSuggestions:100}}}configure(e){var t;this._maxSuggestions=(t=e.maxSuggestions)!==null&&t!==void 0?t:100}async fetch(e,t,n){var i;const s=(i=t.session)===null||i===void 0?void 0:i.kernel;if(!s){throw new Error("No kernel for completion request.")}const o=e.text.slice(0,e.offset);const r=o.split("\n").slice(-1)[0];const a=e.text.slice(e.offset).split("\n")[0];let l;const d=[];if(r===""){l={output:false,raw:true,hist_access_type:"tail",n:this._maxSuggestions};const e=await s.requestHistory(l);if(e.content.status==="ok"){let t=e.content.history;const n=new Map;for(const e of t.reverse()){const t=e[2];n.set(t,(n.get(t)||0)+1)}const i=Array.from(n.entries());const s=i.sort(((e,t)=>{if(e[1]>t[1]){return-1}else if(e[1]{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(23359);var a=n(5893);var l=n(85072);var d=n.n(l);var c=n(97825);var h=n.n(c);var u=n(77659);var p=n.n(u);var m=n(55056);var g=n.n(m);var f=n(10540);var v=n.n(f);var _=n(41113);var b=n.n(_);var y=n(57331);var w={};w.styleTagTransform=b();w.setAttributes=g();w.insert=p().bind(null,"head");w.domAPI=h();w.insertStyleElement=v();var C=d()(y.A,w);const x=y.A&&y.A.locals?y.A.locals:undefined},70802:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>A});var i=n(88617);var s=n(38850);var o=n(44389);var r=n(25481);var a=n(59733);var l=n(44577);var d=n(46417);var c=n(89433);var h=n(95513);var u=n(40065);var p=n(34881);var m=n(4073);var g=n(34236);var f=n(5592);var v=n(90044);var _=n(27518);var b=n(94466);const y={id:"@jupyterlab/console-extension:foreign",description:"Add foreign handler of IOPub messages to the console.",requires:[a.IConsoleTracker,u.ISettingRegistry,p.ITranslator],optional:[s.ICommandPalette],activate:C,autoStart:true};const w=y;function C(e,t,n,i,s){var o;const r=i.load("jupyterlab");const{shell:l}=e;t.widgetAdded.connect(((e,t)=>{const i=t.console;const s=new a.ForeignHandler({sessionContext:i.sessionContext,parent:i});x.foreignHandlerProperty.set(i,s);void n.get("@jupyterlab/console-extension:tracker","showAllKernelActivity").then((({composite:e})=>{const t=e;s.enabled=t}));i.disposed.connect((()=>{s.dispose()}))}));const{commands:d}=e;const c=r.__("Console");const h="console:toggle-show-all-kernel-activity";function u(e){const n=t.currentWidget;const i=e["activate"]!==false;if(i&&n){l.activateById(n.id)}return n}d.addCommand(h,{label:e=>r.__("Show All Kernel Activity"),execute:e=>{const t=u(e);if(!t){return}const n=x.foreignHandlerProperty.get(t.console);if(n){n.enabled=!n.enabled}},isToggled:()=>{var e;return t.currentWidget!==null&&!!((e=x.foreignHandlerProperty.get(t.currentWidget.console))===null||e===void 0?void 0:e.enabled)},isEnabled:()=>t.currentWidget!==null&&t.currentWidget===l.currentWidget,describedBy:{args:{type:"object",properties:{activate:{type:"boolean",description:r.__("Whether to activate the widget")}}}}});const p=()=>{d.notifyCommandChanged(h)};t.currentChanged.connect(p);(o=l.currentChanged)===null||o===void 0?void 0:o.connect(p);if(s){s.addItem({command:h,category:c,args:{isPalette:true}})}}var x;(function(e){e.foreignHandlerProperty=new b.AttachedProperty({name:"foreignHandler",create:()=>undefined})})(x||(x={}));const S={id:"@jupyterlab/console-extension:cell-executor",description:"Provides the console cell executor.",autoStart:true,provides:a.IConsoleCellExecutor,activate:()=>Object.freeze({runCell:a.runCell})};var j;(function(e){e.autoClosingBrackets="console:toggle-autoclosing-brackets";e.create="console:create";e.clear="console:clear";e.runUnforced="console:run-unforced";e.runForced="console:run-forced";e.linebreak="console:linebreak";e.interrupt="console:interrupt-kernel";e.restart="console:restart-kernel";e.closeAndShutdown="console:close-and-shutdown";e.open="console:open";e.inject="console:inject";e.changeKernel="console:change-kernel";e.getKernel="console:get-kernel";e.interactionMode="console:interaction-mode";e.redo="console:redo";e.replaceSelection="console:replace-selection";e.shutdown="console:shutdown";e.undo="console:undo";e.invokeCompleter="completer:invoke-console";e.selectCompleter="completer:select-console"})(j||(j={}));const k={id:"@jupyterlab/console-extension:tracker",description:"Provides the console widget tracker.",provides:a.IConsoleTracker,requires:[a.ConsolePanel.IContentFactory,o.IEditorServices,a.IConsoleCellExecutor,h.IRenderMimeRegistry,u.ISettingRegistry],optional:[i.ILayoutRestorer,l.IDefaultFileBrowser,c.IMainMenu,s.ICommandPalette,d.ILauncher,i.ILabStatus,s.ISessionContextDialogs,m.IFormRendererRegistry,p.ITranslator,s.ISessionContextDialogs,s.IToolbarWidgetRegistry],activate:P,autoStart:true};const I={id:"@jupyterlab/console-extension:factory",description:"Provides the console widget content factory.",provides:a.ConsolePanel.IContentFactory,requires:[o.IEditorServices],autoStart:true,activate:(e,t)=>{const n=t.factoryService.newInlineEditor;return new a.ConsolePanel.ContentFactory({editorFactory:n})}};const T={id:"@jupyterlab/console-extension:kernel-status",description:"Adds the console to the kernel status indicator model.",autoStart:true,requires:[a.IConsoleTracker,s.IKernelStatusModel],activate:(e,t,n)=>{const i=e=>{let n=null;if(e&&t.has(e)){return e.sessionContext}return n};n.addSessionProvider(i)}};const E={id:"@jupyterlab/console-extension:cursor-position",description:"Adds the console to the code editor cursor position model.",autoStart:true,requires:[a.IConsoleTracker,o.IPositionModel],activate:(e,t,n)=>{let i=null;const s=async e=>{let s=null;if(e!==i){i===null||i===void 0?void 0:i.console.promptCellCreated.disconnect(n.update);i=null;if(e&&t.has(e)){e.console.promptCellCreated.connect(n.update);const t=e.console.promptCell;s=null;if(t){await t.ready;s=t.editor}i=e}}else if(e){const t=e.console.promptCell;s=null;if(t){await t.ready;s=t.editor}}return s};n.addEditorProvider(s)}};const M={id:"@jupyterlab/console-extension:completer",description:"Adds completion to the console.",autoStart:true,requires:[a.IConsoleTracker],optional:[r.ICompletionProviderManager,p.ITranslator,s.ISanitizer],activate:L};const D=[I,k,w,T,E,M,S];const A=D;async function P(e,t,n,i,o,r,l,d,c,h,u,b,y,w,C,x,S){var k;const I=C!==null&&C!==void 0?C:p.nullTranslator;const T=I.load("jupyterlab");const E=e.serviceManager;const{commands:M,shell:D}=e;const A=T.__("Console");const P=y!==null&&y!==void 0?y:new s.SessionContextDialogs({translator:I});const L="@jupyterlab/console-extension:tracker";const R=["top","bottom","left","right"];let N;if(S){const e="ConsolePanel";N=(0,s.createToolbarFactory)(S,r,e,L,I);if(x){S.addFactory(e,"kernelName",(e=>s.Toolbar.createKernelNameItem(e.sessionContext,x,I)))}S.addFactory(e,"kernelStatus",(e=>{const t=e.sessionContext;const n=s.Toolbar.createKernelStatusItem(t);return n}));const t=new _.Menu({commands:M});t.addClass("jp-CodeConsolePromptMenu");R.forEach((e=>{t.addItem({command:`console:prompt-to-${e}`})}));S.addFactory(e,"promptPosition",(e=>{const n=new m.ToolbarButton({tooltip:T.__("Change Console Prompt Position"),icon:m.dotsIcon,onClick:()=>{const e=n.node.getBoundingClientRect().right;const i=n.node.getBoundingClientRect().bottom;t.open(e,i,{horizontalAlignment:"right"})}});return n}))}const B=new s.WidgetTracker({namespace:"console"});if(l){void l.restore(B,{command:j.create,args:e=>{const{path:t,name:n,kernelPreference:i}=e.console.sessionContext;return{path:t,name:n,kernelPreference:{...i}}},name:e=>{var t;return(t=e.console.sessionContext.path)!==null&&t!==void 0?t:f.UUID.uuid4()},when:E.ready})}if(u){void E.ready.then((()=>{let e=null;const t=()=>{if(e){e.dispose();e=null}const t=E.kernelspecs.specs;if(!t){return}e=new v.DisposableSet;for(const n in t.kernelspecs){const i=n===t.default?0:Infinity;const s=t.kernelspecs[n];const o=s.resources["logo-svg"]||s.resources["logo-64x64"];e.add(u.add({command:j.create,args:{isLauncher:true,kernelPreference:{name:n}},category:T.__("Console"),rank:i,kernelIconUrl:o,metadata:{kernel:f.JSONExt.deepCopy(s.metadata||{})}}))}};t();E.kernelspecs.specsChanged.connect(t)}))}async function O(e){var l,d;await E.ready;const c=new a.ConsolePanel({manager:E,contentFactory:t,mimeTypeService:n.mimeTypeService,rendermime:o,sessionDialogs:P,executor:i,translator:I,setBusy:(l=b&&(()=>b.setBusy()))!==null&&l!==void 0?l:undefined,...e});if(N){(0,s.setToolbar)(c,N)}const h=(await r.get("@jupyterlab/console-extension:tracker","interactionMode")).composite;c.console.node.dataset.jpInteractionMode=h;await B.add(c);c.sessionContext.propertyChanged.connect((()=>{void B.save(c)}));if(e.subshell){c.sessionContext.kernelChanged.connect((async()=>{if(!c.sessionContext.isDisposed){c.sessionContext.ready.then((async()=>{if(c.sessionContext.session===null){console.error("Cannot create subshell without session")}else if(c.sessionContext.session.kernel===null){console.error("Cannot create subshell without kernel")}else{const{kernel:e}=c.sessionContext.session;await e.info;const t=await e.requestCreateSubshell({}).done;e.subshellId=t.content.subshell_id}})).catch((e=>{console.error("Failed to initialize SessionContext or create new subshell.",e)}))}}))}D.add(c,"main",{ref:e.ref,mode:e.insertMode,activate:e.activate!==false,type:(d=e.type)!==null&&d!==void 0?d:"Console"});return c}let F;let z;let W;let H;let V={};let U;let q;async function $(e){F=(await r.get(L,"clearCellsOnExecute")).composite;z=(await r.get(L,"clearCodeContentOnExecute")).composite;W=(await r.get(L,"hideCodeInput")).composite;H=(await r.get(L,"interactionMode")).composite;V=(await r.get(L,"promptCellConfig")).composite;U=(await r.get(L,"promptCellPosition")).composite;q=(await r.get(L,"showBanner")).composite;const t=e=>{var t,n;e.console.node.dataset.jpInteractionMode=H;e.console.editorConfig=V;(n=(t=e.console.promptCell)===null||t===void 0?void 0:t.editor)===null||n===void 0?void 0:n.setOptions(V);e.console.setConfig({clearCellsOnExecute:F,clearCodeContentOnExecute:z,hideCodeInput:W,promptCellPosition:U,showBanner:q})};if(e){t(e)}else{B.forEach(t)}}r.pluginChanged.connect(((e,t)=>{if(t===L){void $()}}));await $();if(w){const e=w.getRenderer("@jupyterlab/codemirror-extension:plugin.defaultConfig");if(e){w.addRenderer("@jupyterlab/console-extension:tracker.promptCellConfig",e)}}B.widgetAdded.connect(((e,t)=>{void $(t)}));M.addCommand(j.autoClosingBrackets,{execute:async e=>{var t;V.autoClosingBrackets=!!((t=e["force"])!==null&&t!==void 0?t:!V.autoClosingBrackets);await r.set(L,"promptCellConfig",V)},label:T.__("Auto Close Brackets for Code Console Prompt"),isToggled:()=>V.autoClosingBrackets,describedBy:{args:{type:"object",properties:{force:{type:"boolean",description:T.__("Whether to force the toggle state")}}}}});function K(){return B.currentWidget!==null&&B.currentWidget===D.currentWidget}M.addCommand(j.open,{label:T.__("Open a console for the provided `path`."),describedBy:{args:{type:"object",properties:{path:{type:"string",description:T.__("The path of the session to open")},activate:{type:"boolean",description:T.__("Whether to activate the console widget")}},required:["path"]}},execute:e=>{const t=e["path"];const n=B.find((e=>{var n;return((n=e.console.sessionContext.session)===null||n===void 0?void 0:n.path)===t}));if(n){if(e.activate!==false){D.activateById(n.id)}return n}else{return E.ready.then((()=>{const n=(0,g.find)(E.sessions.running(),(e=>e.path===t));if(n){return O(e)}return Promise.reject(`No running kernel session for path: ${t}`)}))}}});M.addCommand(j.create,{label:e=>{var t,n,i,s;if(e["isPalette"]){return T.__("New Console")}else if(e["isLauncher"]&&e["kernelPreference"]){const o=e["kernelPreference"];return(s=(i=(n=(t=E.kernelspecs)===null||t===void 0?void 0:t.specs)===null||n===void 0?void 0:n.kernelspecs[o.name||""])===null||i===void 0?void 0:i.display_name)!==null&&s!==void 0?s:""}return T.__("Console")},icon:e=>e["isPalette"]?undefined:m.consoleIcon,describedBy:{args:{type:"object",properties:{isPalette:{type:"boolean",description:T.__("Whether the command is executed from the palette")},isLauncher:{type:"boolean",description:T.__("Whether the command is executed from the launcher")},kernelPreference:{type:"object",description:T.__("The kernel preference for the console")},basePath:{type:"string",description:T.__("The base path for the console")},cwd:{type:"string",description:T.__("The current working directory")},activate:{type:"boolean",description:T.__("Whether to activate the widget")},ref:{type:"string",description:T.__("The reference widget id for the insert location")},insertMode:{type:"string",description:T.__("The tab insert mode")}}}},execute:e=>{var t;const n=(t=e["basePath"]||e["cwd"]||(d===null||d===void 0?void 0:d.model.path))!==null&&t!==void 0?t:"";return O({basePath:n,...e})}});function J(e){var t;const n=e[s.SemanticCommand.WIDGET]?(t=B.find((t=>t.id===e[s.SemanticCommand.WIDGET])))!==null&&t!==void 0?t:null:B.currentWidget;const i=e["activate"]!==false;if(i&&n){D.activateById(n.id)}return n}const G={top:m.dockTopIcon,bottom:m.dockBottomIcon,right:m.dockRightIcon,left:m.dockLeftIcon};R.forEach((e=>{const t=`console:prompt-to-${e}`;M.addCommand(t,{execute:t=>{const n=J(t);if(!n){return}n.console.setConfig({promptCellPosition:e})},isEnabled:K,label:T.__(`Prompt to ${e}`),icon:t=>t["isPalette"]?undefined:G[e],describedBy:{args:{type:"object",properties:{activate:{type:"boolean",description:T.__("Whether to activate the widget")},isPalette:{type:"boolean",description:T.__("Whether the command is executed from palette")}}}}});if(h){h.addItem({command:t,category:A,args:{isPalette:true}})}}));M.addCommand(j.undo,{execute:e=>{var t;const n=J(e);if(!n){return}const i=(t=n.console.promptCell)===null||t===void 0?void 0:t.editor;if(!i){return}i.undo()},isEnabled:e=>{var t,n,i;if(!K()){return false}const s=(i=(n=(t=J(e))===null||t===void 0?void 0:t.console)===null||n===void 0?void 0:n.promptCell)===null||i===void 0?void 0:i.editor;if(!s){return false}return s.model.sharedModel.canUndo()},icon:m.undoIcon.bindprops({stylesheet:"menuItem"}),label:T.__("Undo"),describedBy:{args:{type:"object",properties:{activate:{type:"boolean",description:T.__("Whether to activate the widget")}}}}});M.addCommand(j.redo,{execute:e=>{var t;const n=J(e);if(!n){return}const i=(t=n.console.promptCell)===null||t===void 0?void 0:t.editor;if(!i){return}i.redo()},isEnabled:e=>{var t,n,i;if(!K()){return false}const s=(i=(n=(t=J(e))===null||t===void 0?void 0:t.console)===null||n===void 0?void 0:n.promptCell)===null||i===void 0?void 0:i.editor;if(!s){return false}return s.model.sharedModel.canRedo()},icon:m.redoIcon.bindprops({stylesheet:"menuItem"}),label:T.__("Redo"),describedBy:{args:{type:"object",properties:{activate:{type:"boolean",description:T.__("Whether to activate the widget")}}}}});M.addCommand(j.clear,{label:T.__("Clear Console Cells"),icon:e=>e.toolbar?m.clearIcon:undefined,describedBy:{args:{type:"object",properties:{toolbar:{type:"boolean",description:T.__("Whether executed from toolbar")},activate:{type:"boolean",description:T.__("Whether to activate the widget")}}}},execute:e=>{const t=J(e);if(!t){return}t.console.clear()},isEnabled:K});M.addCommand(j.runUnforced,{label:T.__("Run Cell (unforced)"),icon:e=>e.toolbar?m.runIcon:undefined,describedBy:{args:{type:"object",properties:{toolbar:{type:"boolean",description:T.__("Whether executed from toolbar")},activate:{type:"boolean",description:T.__("Whether to activate the widget")}}}},execute:e=>{const t=J(e);if(!t){return}return t.console.execute()},isEnabled:K});M.addCommand(j.runForced,{label:T.__("Run Cell (forced)"),icon:e=>e.toolbar?m.runIcon:undefined,describedBy:{args:{type:"object",properties:{toolbar:{type:"boolean",description:T.__("Whether executed from toolbar")},activate:{type:"boolean",description:T.__("Whether to activate the widget")}}}},execute:e=>{const t=J(e);if(!t){return}return t.console.execute(true)},isEnabled:K});M.addCommand(j.linebreak,{label:T.__("Insert Line Break"),describedBy:{args:{type:"object",properties:{activate:{type:"boolean",description:T.__("Whether to activate the widget")}}}},execute:e=>{const t=J(e);if(!t){return}t.console.insertLinebreak()},isEnabled:K});M.addCommand(j.replaceSelection,{label:T.__("Replace Selection in Console"),describedBy:{args:{type:"object",properties:{text:{type:"string",description:T.__("The text to replace the selection with")},activate:{type:"boolean",description:T.__("Whether to activate the widget")}}}},execute:e=>{const t=J(e);if(!t){return}const n=e["text"]||"";t.console.replaceSelection(n)},isEnabled:K});M.addCommand(j.interrupt,{label:T.__("Interrupt Kernel"),describedBy:{args:{type:"object",properties:{activate:{type:"boolean",description:T.__("Whether to activate the widget")}}}},execute:e=>{var t;const n=J(e);if(!n){return}const i=(t=n.console.sessionContext.session)===null||t===void 0?void 0:t.kernel;if(i){return i.interrupt()}},isEnabled:K});M.addCommand(j.restart,{label:T.__("Restart Kernel…"),icon:e=>e.toolbar?m.refreshIcon:undefined,describedBy:{args:{type:"object",properties:{toolbar:{type:"boolean",description:T.__("Whether executed from toolbar")},activate:{type:"boolean",description:T.__("Whether to activate the widget")}}}},execute:e=>{const t=J(e);if(!t){return}return P.restart(t.console.sessionContext)},isEnabled:K});M.addCommand(j.shutdown,{label:T.__("Shut Down"),describedBy:{args:{type:"object",properties:{activate:{type:"boolean",description:T.__("Whether to activate the widget")}}}},execute:e=>{const t=J(e);if(!t){return}return t.console.sessionContext.shutdown()}});M.addCommand(j.closeAndShutdown,{label:T.__("Close and Shut Down…"),execute:e=>{const t=J(e);if(!t){return}return(0,s.showDialog)({title:T.__("Shut down the console?"),body:T.__('Are you sure you want to close "%1"?',t.title.label),buttons:[s.Dialog.cancelButton({ariaLabel:T.__("Cancel console Shut Down")}),s.Dialog.warnButton({ariaLabel:T.__("Confirm console Shut Down")})]}).then((e=>{if(e.button.accept){return M.execute(j.shutdown,{activate:false}).then((()=>{t.dispose();return true}))}else{return false}}))},isEnabled:K,describedBy:{args:{type:"object",properties:{activate:{type:"boolean",description:T.__("Whether to activate the widget")}}}}});M.addCommand(j.inject,{label:T.__("Inject some code in a console."),describedBy:{args:{type:"object",properties:{path:{type:"string",description:T.__("The path of the console session")},code:{type:"string",description:T.__("The code to inject")},metadata:{type:"object",description:T.__("The metadata for the code")},activate:{type:"boolean",description:T.__("Whether to activate the widget")}},required:["path","code"]}},execute:e=>{const t=e["path"];B.find((n=>{var i;if(((i=n.console.sessionContext.session)===null||i===void 0?void 0:i.path)===t){if(e["activate"]!==false){D.activateById(n.id)}void n.console.inject(e["code"],e["metadata"]);return true}return false}))},isEnabled:K});M.addCommand(j.changeKernel,{label:T.__("Change Kernel…"),describedBy:{args:{type:"object",properties:{activate:{type:"boolean",description:T.__("Whether to activate the widget")}}}},execute:e=>{const t=J(e);if(!t){return}return P.selectKernel(t.console.sessionContext)},isEnabled:K});M.addCommand(j.getKernel,{label:T.__("Get Kernel"),describedBy:{args:{type:"object",properties:{activate:{type:"boolean",description:T.__("Whether to activate the widget")}}}},execute:e=>{var t;const n=J({activate:false,...e});if(!n){return}return(t=n.sessionContext.session)===null||t===void 0?void 0:t.kernel},isEnabled:K});const Y=[j.create];const X=()=>{Object.values(j).filter((e=>!Y.includes(e))).forEach((t=>e.commands.notifyCommandChanged(t)))};B.currentChanged.connect(X);(k=D.currentChanged)===null||k===void 0?void 0:k.connect(X);if(h){[j.create,j.linebreak,j.clear,j.runUnforced,j.runForced,j.restart,j.interrupt,j.changeKernel,j.closeAndShutdown].forEach((e=>{h.addItem({command:e,category:A,args:{isPalette:true}})}))}if(c){c.fileMenu.closeAndCleaners.add({id:j.closeAndShutdown,isEnabled:K});c.kernelMenu.kernelUsers.changeKernel.add({id:j.changeKernel,isEnabled:K});c.kernelMenu.kernelUsers.clearWidget.add({id:j.clear,isEnabled:K});c.kernelMenu.kernelUsers.interruptKernel.add({id:j.interrupt,isEnabled:K});c.kernelMenu.kernelUsers.restartKernel.add({id:j.restart,isEnabled:K});c.kernelMenu.kernelUsers.shutdownKernel.add({id:j.shutdown,isEnabled:K});c.runMenu.codeRunners.run.add({id:j.runForced,isEnabled:K});c.editMenu.clearers.clearCurrent.add({id:j.clear,isEnabled:K});c.editMenu.undoers.redo.add({id:j.redo,isEnabled:K});c.editMenu.undoers.undo.add({id:j.undo,isEnabled:K});c.helpMenu.getKernel.add({id:j.getKernel,isEnabled:K})}const Q={notebook:T.__("Execute with Shift+Enter"),terminal:T.__("Execute with Enter")};M.addCommand(j.interactionMode,{label:e=>{var t;return(t=Q[e["interactionMode"]])!==null&&t!==void 0?t:"Set the console interaction mode."},execute:async e=>{const t="keyMap";try{await r.set(L,"interactionMode",e["interactionMode"])}catch(n){console.error(`Failed to set ${L}:${t} - ${n.message}`)}},isToggled:e=>e["interactionMode"]===H,describedBy:{args:{type:"object",properties:{interactionMode:{type:"string",enum:["notebook","terminal"],description:T.__("The interaction mode for the console")}}}}});return B}function L(e,t,n,i,o){if(!n){return}const r=(i!==null&&i!==void 0?i:p.nullTranslator).load("jupyterlab");const a=o!==null&&o!==void 0?o:new s.Sanitizer;e.commands.addCommand(j.invokeCompleter,{label:r.__("Display the completion helper."),execute:()=>{const e=t.currentWidget&&t.currentWidget.id;if(e){return n.invoke(e)}},describedBy:{args:{type:"object",properties:{}}}});e.commands.addCommand(j.selectCompleter,{label:r.__("Select the completion suggestion."),execute:()=>{const e=t.currentWidget&&t.currentWidget.id;if(e){return n.select(e)}},describedBy:{args:{type:"object",properties:{}}}});e.commands.addKeyBinding({command:j.selectCompleter,keys:["Enter"],selector:".jp-ConsolePanel .jp-mod-completer-active"});const l=async(e,t)=>{var i,s;const o={editor:(s=(i=t.console.promptCell)===null||i===void 0?void 0:i.editor)!==null&&s!==void 0?s:null,session:t.console.sessionContext.session,widget:t};await n.updateCompleter(o);t.console.promptCellCreated.connect(((e,i)=>{const s={editor:i.editor,session:e.sessionContext.session,widget:t,sanitzer:a};n.updateCompleter(s).catch(console.error)}));t.console.sessionContext.sessionChanged.connect((()=>{var e,i;const s={editor:(i=(e=t.console.promptCell)===null||e===void 0?void 0:e.editor)!==null&&i!==void 0?i:null,session:t.console.sessionContext.session,widget:t,sanitizer:a};n.updateCompleter(s).catch(console.error)}))};t.widgetAdded.connect(l);n.activeProvidersChanged.connect((()=>{t.forEach((e=>{l(undefined,e).catch((e=>console.error(e)))}))}))}},99382:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(17325);var a=n(5893);var l=n(3579);var d=n(36060);var c=n(39063);var h=n(50286);var u=n(75797);var p=n(67996);var m=n(85072);var g=n.n(m);var f=n(97825);var v=n.n(f);var _=n(77659);var b=n.n(_);var y=n(55056);var w=n.n(y);var C=n(10540);var x=n.n(C);var S=n(41113);var j=n.n(S);var k=n(19961);var I={};I.styleTagTransform=j();I.setAttributes=w();I.insert=b().bind(null,"head");I.domAPI=v();I.insertStyleElement=x();var T=g()(k.A,I);const E=k.A&&k.A.locals?k.A.locals:undefined},57958:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CodeConsole:()=>A,ConsoleHistory:()=>l,ConsolePanel:()=>R,ForeignHandler:()=>a,IConsoleCellExecutor:()=>O,IConsoleTracker:()=>B,runCell:()=>s});var i=n(88459);async function s({cell:e,onCellExecuted:t,sessionContext:n}){const s=n=>{if(n&&n.content.status==="ok"){const i=n.content;if(i.payload&&i.payload.length){const t=i.payload.filter((e=>e.source==="set_next_input"))[0];if(t){const n=t.text;e.model.sharedModel.setSource(n)}}t({cell:e,executionDate:new Date,success:true});return true}else if(n&&n.content.status==="error"){const i=n.content.ename;const s=n.content.evalue;t({cell:e,executionDate:new Date,success:false,error:new Error(`KernelReplyNotOK: ${i} ${s}`)});return false}t({cell:e,executionDate:new Date,success:false});return false};const o=n=>{t({cell:e,executionDate:new Date,success:false,error:new Error(n)});return false};return i.CodeCell.execute(e,n).then(s,o)}var o=n(2336);const r="jp-CodeConsole-foreignCell";class a{constructor(e){this._enabled=false;this._isDisposed=false;this.sessionContext=e.sessionContext;this.sessionContext.iopubMessage.connect(this.onIOPubMessage,this);this._parent=e.parent}get enabled(){return this._enabled}set enabled(e){this._enabled=e}get parent(){return this._parent}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;o.Signal.clearData(this)}onIOPubMessage(e,t){var n;if(!this._enabled){return false}const i=(n=this.sessionContext.session)===null||n===void 0?void 0:n.kernel;if(!i){return false}const s=this._parent;const o=t.parent_header.session;if(o===i.clientId){return false}const r=t.header.msg_type;const a=t.parent_header;const l=a.msg_id;let d;switch(r){case"execute_input":{const e=t;d=this._newCell(l);const n=d.model;n.executionCount=e.content.execution_count;n.sharedModel.setSource(e.content.code);n.trusted=true;s.update();return true}case"execute_result":case"display_data":case"stream":case"error":{d=this._parent.getCell(l);if(!d){return false}const e={...t.content,output_type:r};d.model.outputs.add(e);s.update();return true}case"clear_output":{const e=t.content.wait;d=this._parent.getCell(l);if(d){d.model.outputs.clear(e)}return true}default:return false}}_newCell(e){const t=this.parent.createCodeCell();t.addClass(r);this._parent.addCell(t,e);return t}}class l{constructor(e){this._cursor=0;this._hasSession=false;this._history=[];this._placeholder="";this._setByHistory=false;this._isDisposed=false;this._editor=null;this._filtered=[];const{sessionContext:t}=e;if(t){this.sessionContext=t;void this._handleKernel();this.sessionContext.kernelChanged.connect(this._handleKernel,this)}}get editor(){return this._editor}set editor(e){if(this._editor===e){return}const t=this._editor;if(t){t.edgeRequested.disconnect(this.onEdgeRequest,this);t.model.sharedModel.changed.disconnect(this.onTextChange,this)}this._editor=e;if(e){e.edgeRequested.connect(this.onEdgeRequest,this);e.model.sharedModel.changed.connect(this.onTextChange,this)}}get placeholder(){return this._placeholder}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed=true;this._history.length=0;o.Signal.clearData(this)}back(e){if(!this._hasSession){this._hasSession=true;this._placeholder=e;this.setFilter(e);this._cursor=this._filtered.length-1}--this._cursor;this._cursor=Math.max(0,this._cursor);const t=this._filtered[this._cursor];return Promise.resolve(t)}forward(e){if(!this._hasSession){this._hasSession=true;this._placeholder=e;this.setFilter(e);this._cursor=this._filtered.length}++this._cursor;this._cursor=Math.min(this._filtered.length-1,this._cursor);const t=this._filtered[this._cursor];return Promise.resolve(t)}push(e){if(e&&e!==this._history[this._history.length-1]){this._history.push(e)}this.reset()}reset(){this._cursor=this._history.length;this._hasSession=false;this._placeholder=""}onHistory(e){this._history.length=0;let t="";let n="";if(e.content.status==="ok"){for(let i=0;i{if(this.isDisposed||!t){return}if(n.getSource()===t){return}this._setByHistory=true;n.setSource(t);let i=0;i=t.indexOf("\n");if(i<0){i=t.length}e.setCursorPosition({line:0,column:i})}))}else{void this.forward(i).then((t=>{if(this.isDisposed){return}const i=t||this.placeholder;if(n.getSource()===i){return}this._setByHistory=true;n.setSource(i);const s=e.getPositionAt(i.length);if(s){e.setCursorPosition(s)}}))}}async _handleKernel(){var e,t;const n=(t=(e=this.sessionContext)===null||e===void 0?void 0:e.session)===null||t===void 0?void 0:t.kernel;if(!n){this._history.length=0;return}return n.requestHistory(d.initialRequest).then((e=>{this.onHistory(e)}))}setFilter(e=""){this._filtered.length=0;let t="";let n="";for(let i=0;i{this._setManualResize()}),this);this._splitPanel.node.addEventListener("pointerdown",(e=>{const t=e.target;if(t.classList.contains("lm-SplitPanel-handle")){this._setManualResize()}}),true);this.setConfig({clearCellsOnExecute:false,clearCodeContentOnExecute:true,hideCodeInput:false,promptCellPosition:"bottom",showBanner:true});this._history=new l({sessionContext:this.sessionContext});void this._onKernelChanged();this.sessionContext.kernelChanged.connect(this._onKernelChanged,this);this.sessionContext.statusChanged.connect(this._onKernelStatusChanged,this)}get executed(){return this._executed}get promptCellCreated(){return this._promptCellCreated}get cells(){return this._cells}get promptCell(){const e=this._input.layout;if(!e){return null}return e.widgets[0]||null}addCell(e,t){if(this._config.clearCellsOnExecute){this.clear()}e.addClass(x);this._content.addWidget(e);this._cells.push(e);if(t){this._msgIds.set(t,e);this._msgIdCells.set(e,t)}e.disposed.connect(this._onCellDisposed,this);this.update()}addBanner(){if(this._banner){const e=this._banner;this._cells.push(this._banner);e.disposed.connect(this._onCellDisposed,this)}const e=this.modelFactory.createRawCell({sharedModel:(0,v.createStandaloneCell)({cell_type:"raw",source:"..."})});const t=(this._banner=new i.RawCell({model:e,contentFactory:this.contentFactory,placeholder:false,editorConfig:{autoClosingBrackets:false,codeFolding:false,highlightActiveLine:false,highlightTrailingWhitespace:false,highlightWhitespace:false,indentUnit:"4",lineNumbers:false,lineWrap:true,matchBrackets:false,readOnly:true,rulers:[],scrollPastEnd:false,smartIndent:false,tabSize:4,theme:"jupyter"}})).initializeState();t.addClass(S);t.readOnly=true;this._content.addWidget(t)}clear(){const e=this._cells;while(e.length>0){e.get(0).dispose()}}createCodeCell(){const e=this.contentFactory;const t=this._createCodeCellOptions();const n=e.createCodeCell(t);n.readOnly=true;n.model.mimeType=this._mimetype;return n}dispose(){if(this.isDisposed){return}const e=this.promptCell;if(e){if(this._promptResizeObserver){this._promptResizeObserver.disconnect();this._promptResizeObserver=null}e.model.sharedModel.changed.disconnect(this._onPromptContentChanged,this)}this._cancelPendingResizeAdjustment();this._msgIdCells=null;this._msgIds=null;this._history.dispose();super.dispose()}async execute(e=false,t=E){var n,i;if(((i=(n=this.sessionContext.session)===null||n===void 0?void 0:n.kernel)===null||i===void 0?void 0:i.status)==="dead"){return}const s=this.promptCell;if(!s){throw new Error("Cannot execute without a prompt cell")}s.model.trusted=true;if(e){this.newPromptCell();await this._execute(s);return}const o=await this._shouldExecute(t);if(this.isDisposed){return}if(o){this.newPromptCell();this.promptCell.editor.focus();await this._execute(s)}else{s.editor.newIndentedLine()}}getCell(e){return this._msgIds.get(e)}inject(e,t={}){const n=this.createCodeCell();n.model.sharedModel.setSource(e);for(const i of Object.keys(t)){n.model.setMetadata(i,t[i])}this.addCell(n);return this._execute(n)}insertLinebreak(){const e=this.promptCell;if(!e){return}e.editor.newIndentedLine()}replaceSelection(e){var t,n;const i=this.promptCell;if(!i){return}(n=(t=i.editor).replaceSelection)===null||n===void 0?void 0:n.call(t,e)}setConfig(e){const{clearCellsOnExecute:t,clearCodeContentOnExecute:n,hideCodeInput:i,promptCellPosition:s,showBanner:o}=e;this._config={clearCellsOnExecute:t!==null&&t!==void 0?t:this._config.clearCellsOnExecute,clearCodeContentOnExecute:n!==null&&n!==void 0?n:this._config.clearCodeContentOnExecute,hideCodeInput:i!==null&&i!==void 0?i:this._config.hideCodeInput,promptCellPosition:s!==null&&s!==void 0?s:this._config.promptCellPosition,showBanner:o!==null&&o!==void 0?o:this._config.showBanner};this._updateLayout()}serialize(){const e=[];for(const t of this._cells){const n=t.model;if((0,i.isCodeCellModel)(n)){e.push(n.toJSON())}}if(this.promptCell){e.push(this.promptCell.model.toJSON())}return e}_evtMouseDown(e){const{button:t,shiftKey:n}=e;if(!(t===0||t===2)||n&&t===2){return}let s=e.target;const o=e=>e.classList.contains(x);let r=i.CellDragUtils.findCell(s,this._cells,o);if(r===-1){s=document.elementFromPoint(e.clientX,e.clientY);r=i.CellDragUtils.findCell(s,this._cells,o)}if(r===-1){return}const a=this._cells.get(r);const l=i.CellDragUtils.detectTargetArea(a,e.target);if(l==="prompt"){this._dragData={pressX:e.clientX,pressY:e.clientY,index:r};this._focusedCell=a;document.addEventListener("mouseup",this,true);document.addEventListener("mousemove",this,true);e.preventDefault()}}_evtMouseMove(e){const t=this._dragData;if(t&&i.CellDragUtils.shouldStartDrag(t.pressX,t.pressY,e.clientX,e.clientY)){void this._startDrag(t.index,e.clientX,e.clientY)}}_startDrag(e,t,n){const s=this._focusedCell.model;const o=[s.toJSON()];const r=i.CellDragUtils.createCellDragImage(this._focusedCell,o);this._drag=new b.Drag({mimeData:new g.MimeData,dragImage:r,proposedAction:"copy",supportedActions:"copy",source:this});this._drag.mimeData.setData(M,o);const a=s.sharedModel.getSource();this._drag.mimeData.setData("text/plain",a);this._focusedCell=null;document.removeEventListener("mousemove",this,true);document.removeEventListener("mouseup",this,true);return this._drag.start(t,n).then((()=>{if(this.isDisposed){return}this._drag=null;this._dragData=null}))}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"resize":this._splitPanel.fit();break;case"focusin":this._evtFocusIn(e);break;case"focusout":this._evtFocusOut(e);break;default:break}}onAfterAttach(e){const t=this.node;t.addEventListener("keydown",this,true);t.addEventListener("click",this);t.addEventListener("mousedown",this);t.addEventListener("focusin",this);t.addEventListener("focusout",this);if(!this.promptCell){this.newPromptCell()}else{this.promptCell.editor.focus();this.update()}}onBeforeDetach(e){const t=this.node;t.removeEventListener("keydown",this,true);t.removeEventListener("click",this);t.removeEventListener("focusin",this);t.removeEventListener("focusout",this)}onActivateRequest(e){const t=this.promptCell&&this.promptCell.editor;if(t){t.focus()}this.update()}newPromptCell(){var e,t,n,i,s;let r=this.promptCell;const a=this._input;const l=(e=r===null||r===void 0?void 0:r.model.sharedModel.getSource())!==null&&e!==void 0?e:"";const d=(t=r===null||r===void 0?void 0:r.editor)===null||t===void 0?void 0:t.getCursorPosition();if(r){r.readOnly=true;r.removeClass(j);r.model.sharedModel.changed.disconnect(this._onPromptContentChanged,this);const e=r;const t=this._promptResizeObserver;requestIdleCallback((()=>{o.Signal.clearData(e.editor);if(t){t.disconnect()}}));(n=r.editor)===null||n===void 0?void 0:n.blur();const s=a.widgets[0];s.parent=null;if(this._config.hideCodeInput){(i=r.inputArea)===null||i===void 0?void 0:i.setHidden(true)}this.addCell(r)}const c=this.contentFactory;const h=this._createCodeCellOptions();r=c.createCodeCell(h);r.model.mimeType=this._mimetype;r.addClass(j);this._input.addWidget(r);this._history.editor=r.editor;if(r.node){this._promptResizeObserver=new ResizeObserver((()=>{this._scheduleInputSizeAdjustment()}));this._promptResizeObserver.observe(r.node)}r.model.sharedModel.changed.connect(this._onPromptContentChanged,this);if(!this._config.clearCodeContentOnExecute){r.model.sharedModel.setSource(l);if(d){(s=r.editor)===null||s===void 0?void 0:s.setCursorPosition(d)}}this._promptCellCreated.emit(r)}onUpdateRequest(e){P.scrollToBottom(this._content.node)}_evtKeyDown(e){const t=this.promptCell&&this.promptCell.editor;if(!t){return}if(e.keyCode===13&&!t.hasFocus()){e.preventDefault();t.focus()}else if(e.keyCode===27&&t.hasFocus()){e.preventDefault();e.stopPropagation();this.node.focus()}}_evtMouseUp(e){if(this.promptCell&&this.promptCell.node.contains(e.target)){this.promptCell.editor.focus()}}_evtFocusIn(e){this._updateReadWrite()}_evtFocusOut(e){this._updateReadWrite()}async _execute(e){const t=e.model.sharedModel.getSource();this._history.push(t);if(t==="clear"||t==="%clear"){this.clear();return Promise.resolve(void 0)}e.model.contentChanged.connect(this.update,this);const n={cell:e,sessionContext:this.sessionContext,onCellExecuted:e=>{this._executed.emit(e.executionDate);if(e.error){for(const e of this._cells){if(e.model.executionCount===null){e.model.executionState="idle"}}}}};try{await this._executor.runCell(n)}finally{if(!this.isDisposed){e.model.contentChanged.disconnect(this.update,this);this.update()}}}_handleInfo(e){if(e.status!=="ok"){if(this._banner){this._banner.model.sharedModel.setSource("Error in getting kernel banner")}return}if(this._banner){this._banner.model.sharedModel.setSource(e.banner)}const t=e.language_info;this._mimetype=this._mimeTypeService.getMimeTypeByLanguage(t);if(this.promptCell){this.promptCell.model.mimeType=this._mimetype}}_createCodeCellOptions(){const e=this.contentFactory;const t=this.modelFactory;const n=t.createCodeCell({});const i=this.rendermime;const s=this.editorConfig;return{model:n,rendermime:i,contentFactory:e,editorConfig:s,placeholder:false,translator:this._translator}}_onCellDisposed(e,t){if(!this.isDisposed){this._cells.removeValue(e);const t=this._msgIdCells.get(e);if(t){this._msgIdCells.delete(e);this._msgIds.delete(t)}}}_shouldExecute(e){const t=this.promptCell;if(!t){return Promise.resolve(false)}const n=t.model;const i=n.sharedModel.getSource();return new Promise(((t,n)=>{var s;const o=setTimeout((()=>{t(true)}),e);const r=(s=this.sessionContext.session)===null||s===void 0?void 0:s.kernel;if(!r){t(false);return}r.requestIsComplete({code:i}).then((e=>{clearTimeout(o);if(this.isDisposed){t(false)}if(e.content.status!=="incomplete"){t(true);return}t(false)})).catch((()=>{t(true)}))}))}async _onKernelChanged(){var e;this.clear();if(this._banner){this._banner.dispose();this._banner=null}if(this._config.showBanner){this.addBanner()}if((e=this.sessionContext.session)===null||e===void 0?void 0:e.kernel){this._handleInfo(await this.sessionContext.session.kernel.info)}}async _onKernelStatusChanged(){var e;const t=(e=this.sessionContext.session)===null||e===void 0?void 0:e.kernel;if((t===null||t===void 0?void 0:t.status)==="restarting"){if(this._config.showBanner){this.addBanner()}this._handleInfo(await(t===null||t===void 0?void 0:t.info))}}_updateReadWrite(){const e=c.DOMUtils.hasActiveEditableElement(this.node);this.node.classList.toggle(T,e)}_calculateRelativeSizes(){const{promptCellPosition:e="bottom"}=this._config;let t=[1,1];if(e==="top"){t=[1,100]}else if(e==="bottom"){t=[100,1]}return t}_setManualResize(){this._hasManualResize=true;this._cancelPendingResizeAdjustment()}_cancelPendingResizeAdjustment(){if(this._resizeAnimationFrameId!==null){cancelAnimationFrame(this._resizeAnimationFrameId);this._resizeAnimationFrameId=null}}_scheduleInputSizeAdjustment(){if(this._hasManualResize){return}if(this._resizeAnimationFrameId===null){this._resizeAnimationFrameId=requestAnimationFrame((()=>{this._resizeAnimationFrameId=null;this._adjustSplitPanelForInputGrowth()}))}}_onPromptContentChanged(){this._scheduleInputSizeAdjustment()}_adjustSplitPanelForInputGrowth(){if(this.isDisposed||!this._input.node||!this._content.node||this._hasManualResize){return}const{promptCellPosition:e="bottom"}=this._config;if(e==="left"||e==="right"){return}const t=this.promptCell;if(!t||!t.editor){return}const n=t.editor;const i=n.editor.contentHeight;const s=this._getInputCellPadding();const o=i+s;const r=this._splitPanel.node.clientHeight;if(r<=0||o<=0){this._splitPanel.fit();return}const a=r-o;let l;let d;if(e==="bottom"){l=a/r;d=o/r}else{d=o/r;l=a/r}const c=l+d;if(c>0){const t=e==="bottom"?[l/c,d/c]:[d/c,l/c];this._splitPanel.setRelativeSizes(t)}}_getInputCellPadding(){var e;const t=this._input.node;const n=window.getComputedStyle(t);const i=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom);const s=this.promptCell;if(!s){return i}const o=window.getComputedStyle(s.node);const r=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom);const a=(e=s.editorWidget)===null||e===void 0?void 0:e.node;let l=0;if(a){const e=window.getComputedStyle(a);l=parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth)}return i+r+l}_updateLayout(){const{promptCellPosition:e="bottom"}=this._config;this._hasManualResize=false;this._splitPanel.orientation=["left","right"].includes(e)?"horizontal":"vertical";f.SplitPanel.setStretch(this._content,1);f.SplitPanel.setStretch(this._input,1);if(e==="bottom"||e==="right"){this._splitPanel.insertWidget(0,this._content);this._splitPanel.insertWidget(1,this._input)}else{this._splitPanel.insertWidget(0,this._input);this._splitPanel.insertWidget(1,this._content)}this._splitPanel.setRelativeSizes(this._calculateRelativeSizes());requestAnimationFrame((()=>{this._adjustSplitPanelForInputGrowth()}))}}(function(e){e.defaultEditorConfig={codeFolding:false,lineNumbers:false};class t extends i.Cell.ContentFactory{createCodeCell(e){return new i.CodeCell(e).initializeState()}createRawCell(e){return new i.RawCell(e).initializeState()}}e.ContentFactory=t;class n{constructor(e={}){this.codeCellContentFactory=e.codeCellContentFactory||i.CodeCellModel.defaultContentFactory}createCodeCell(e={}){if(!e.contentFactory){e.contentFactory=this.codeCellContentFactory}return new i.CodeCellModel(e)}createRawCell(e){return new i.RawCellModel(e)}}e.ModelFactory=n;e.defaultModelFactory=new n({})})(A||(A={}));var P;(function(e){function t(e){e.scrollTop=e.scrollHeight-e.clientHeight}e.scrollToBottom=t})(P||(P={}));const L="jp-ConsolePanel";class R extends c.MainAreaWidget{constructor(e){super({content:new f.Panel});this._executed=null;this._connected=null;this.addClass(L);let{executor:t,rendermime:n,mimeTypeService:i,path:s,basePath:o,name:r,manager:a,modelFactory:l,sessionContext:d,translator:v}=e;this.translator=v!==null&&v!==void 0?v:p.nullTranslator;const _=this.translator.load("jupyterlab");const b=this.contentFactory=e.contentFactory;const y=N.count++;if(!s){s=h.PathExt.join(o||"",`console-${y}-${g.UUID.uuid4()}`)}d=this._sessionContext=d!==null&&d!==void 0?d:new c.SessionContext({kernelManager:a.kernels,sessionManager:a.sessions,specsManager:a.kernelspecs,path:a.contents.localPath(s),name:r||_.__("Console %1",y),type:"console",kernelPreference:e.kernelPreference,setBusy:e.setBusy});const w=new u.RenderMimeRegistry.UrlResolver({path:s,contents:a.contents});n=n.clone({resolver:w});this.console=b.createConsole({executor:t,rendermime:n,sessionContext:d,mimeTypeService:i,contentFactory:b,modelFactory:l,translator:v});this.content.addWidget(this.console);void d.initialize().then((async t=>{var n;if(t){await((n=e.sessionDialogs)!==null&&n!==void 0?n:new c.SessionContextDialogs({translator:v})).selectKernel(d)}this._connected=new Date;this._updateTitlePanel()}));this.console.executed.connect(this._onExecuted,this);this._updateTitlePanel();d.kernelChanged.connect(this._updateTitlePanel,this);d.propertyChanged.connect(this._updateTitlePanel,this);this.title.icon=m.consoleIcon;this.title.closable=true;this.id=`console-${y}`}get sessionContext(){return this._sessionContext}dispose(){this.sessionContext.dispose();this.console.dispose();super.dispose()}onActivateRequest(e){const t=this.console.promptCell;if(t){t.editor.focus()}}onCloseRequest(e){super.onCloseRequest(e);this.dispose()}_onExecuted(e,t){this._executed=t;this._updateTitlePanel()}_updateTitlePanel(){N.updateTitle(this,this._connected,this._executed,this.translator)}}(function(e){class t extends A.ContentFactory{createConsole(e){return new A(e)}}e.ContentFactory=t;e.IContentFactory=new g.Token("@jupyterlab/console:IContentFactory","A factory object that creates new code consoles. Use this if you want to create and host code consoles in your own UI elements.")})(R||(R={}));var N;(function(e){e.count=1;function t(e,t,n,i){i=i||p.nullTranslator;const s=i.load("jupyterlab");const o=e.console.sessionContext.session;if(o){let i=s.__("Name: %1\n",o.name)+s.__("Directory: %1\n",h.PathExt.dirname(o.path))+s.__("Kernel: %1",e.console.sessionContext.kernelDisplayName);if(t){i+=s.__("\nConnected: %1",h.Time.format(t.toISOString()))}if(n){i+=s.__("\nLast Execution: %1")}e.title.label=o.name;e.title.caption=i}else{e.title.label=s.__("Console");e.title.caption=""}}e.updateTitle=t})(N||(N={}));const B=new g.Token("@jupyterlab/console:IConsoleTracker",`A widget tracker for code consoles.\n Use this if you want to be able to iterate over and interact with code consoles\n created by the application.`);const O=new g.Token("@jupyterlab/console:IConsoleCellExecutor",`The console cell executor`)},50286:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(5893);var a=n(38457);var l=n(17325);var d=n(23359);var c=n(53377);var h=n(85072);var u=n.n(h);var p=n(97825);var m=n.n(p);var g=n(77659);var f=n.n(g);var v=n(55056);var _=n.n(v);var b=n(10540);var y=n.n(b);var w=n(41113);var C=n.n(w);var x=n(16513);var S={};S.styleTagTransform=C();S.setAttributes=_();S.insert=f().bind(null,"head");S.domAPI=m();S.insertStyleElement=y();var j=u()(x.A,S);const k=x.A&&x.A.locals?x.A.locals:undefined},75013:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ActivityMonitor=void 0;const i=n(2336);class s{constructor(e){this._timer=-1;this._timeout=-1;this._isDisposed=false;this._activityStopped=new i.Signal(this);e.signal.connect(this._onSignalFired,this);this._timeout=e.timeout||1e3}get activityStopped(){return this._activityStopped}get timeout(){return this._timeout}set timeout(e){this._timeout=e}get isDisposed(){return this._isDisposed}dispose(){if(this._isDisposed){return}this._isDisposed=true;i.Signal.clearData(this)}_onSignalFired(e,t){clearTimeout(this._timer);this._sender=e;this._args=t;this._timer=setTimeout((()=>{this._activityStopped.emit({sender:this._sender,args:this._args})}),this._timeout)}}t.ActivityMonitor=s},26376:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))i(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});s(n(75013),t);s(n(23106),t);s(n(24477),t);s(n(87484),t);s(n(92279),t);s(n(67169),t);s(n(97058),t);s(n(80121),t);s(n(9659),t);s(n(67881),t);s(n(78378),t)},23106:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},24477:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LruCache=void 0;const n=128;class i{constructor(e={}){this._map=new Map;this._maxSize=(e===null||e===void 0?void 0:e.maxSize)||n}get size(){return this._map.size}clear(){this._map.clear()}get(e){const t=this._map.get(e)||null;if(t!=null){this._map.delete(e);this._map.set(e,t)}return t}set(e,t){if(this._map.size>=this._maxSize){this._map.delete(this._map.keys().next().value)}this._map.set(e,t)}}t.LruCache=i},87484:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MarkdownCodeBlocks=void 0;var n;(function(e){e.CODE_BLOCK_MARKER="```";const t=[".markdown",".mdown",".mkdn",".md",".mkd",".mdwn",".mdtxt",".mdtext",".text",".txt",".Rmd"];class n{constructor(e){this.startLine=e;this.code="";this.endLine=-1}}e.MarkdownCodeBlock=n;function i(e){return t.indexOf(e)>-1}e.isMarkdown=i;function s(t){if(!t||t===""){return[]}const i=t.split("\n");const s=[];let o=null;for(let r=0;re===t||i&&e===i))}e.isDeferred=n;function i(t){const n=t.indexOf(":");let i="";if(n!==-1){i=t.slice(0,n)}return e.disabled.some((e=>e===t||i&&e===i))}e.isDisabled=i})(Extension=PageConfig.Extension||(PageConfig.Extension={}))})(PageConfig||(exports.PageConfig=PageConfig={}))},67169:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PathExt=void 0;const i=n(57975);var s;(function(e){function t(...e){const t=i.posix.join(...e);return t==="."?"":h(t)}e.join=t;function n(...e){const t=i.posix.join(...e);return t==="."?"":t}e.joinWithLeadingSlash=n;function s(e,t){return i.posix.basename(e,t)}e.basename=s;function o(e){const t=h(i.posix.dirname(e));return t==="."?"":t}e.dirname=o;function r(e){return i.posix.extname(e)}e.extname=r;function a(e){if(e===""){return""}return h(i.posix.normalize(e))}e.normalize=a;function l(...e){return h(i.posix.resolve(...e))}e.resolve=l;function d(e,t){return h(i.posix.relative(e,t))}e.relative=d;function c(e){if(e.length>0&&e.indexOf(".")!==0){e=`.${e}`}return e}e.normalizeExtension=c;function h(e){if(e.indexOf("/")===0){e=e.slice(1)}return e}e.removeSlash=h})(s||(t.PathExt=s={}))},78378:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.JupyterPluginRegistry=void 0;const i=n(5592);const s=5e3;class o extends i.PluginRegistry{constructor(e){var t;super(e);this._pluginData=new Map;this._expectedActivationTime=(t=e===null||e===void 0?void 0:e.expectedActivationTime)!==null&&t!==void 0?t:s}registerPlugin(e){this._pluginData.set(e.id,e);return super.registerPlugin(e)}async activatePlugin(e){const t=performance.now();let n=setTimeout((()=>{console.warn(`Plugin ${e} is taking too long to activate.`)}),this._expectedActivationTime);try{const i=await super.activatePlugin(e);clearTimeout(n);const s=performance.now();const o=s-t;if(o>=this._expectedActivationTime){const t=this._getDependentCount(e);console.warn(`Plugin ${e} (with ${t} dependants) took ${o.toFixed(2)}ms to activate.`)}return i}catch(i){clearTimeout(n);console.error(`Error activating plugin: ${e}`,i);throw i}}_getDependentCount(e){var t;const n=this._pluginData.get(e);if(!(n===null||n===void 0?void 0:n.provides))return 0;const i=n.provides.name;let s=0;for(const[o,r]of this._pluginData.entries()){if(o===e)continue;const n=(t=r.requires)===null||t===void 0?void 0:t.filter((e=>!!e)).some((e=>e.name===i));if(n){s++}}return s}}t.JupyterPluginRegistry=o},97058:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.signalToPromise=s;const i=n(5592);function s(e,t){const n=new i.PromiseDelegate;function s(){e.disconnect(o)}function o(e,t){s();n.resolve([e,t])}e.connect(o);if((t!==null&&t!==void 0?t:0)>0){setTimeout((()=>{s();n.reject(`Signal not emitted within ${t} ms.`)}),t)}return n.promise}},80121:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Text=void 0;var n;(function(e){const t="𝐚".length>1;function n(e,n){if(t){return e}let i=e;for(let t=0;t+1=55296&&e<=56319){const e=n.charCodeAt(t+1);if(e>=56320&&e<=57343){i--;t++}}}return i}e.jsIndexToCharIndex=n;function i(e,n){if(t){return e}let i=e;for(let t=0;t+1=55296&&e<=56319){const e=n.charCodeAt(t+1);if(e>=56320&&e<=57343){i++;t++}}}return i}e.charIndexToJsIndex=i;function s(e,t=false){return e.replace(/^(\w)|[\s-_:]+(\w)/g,(function(e,n,i){if(i){return i.toUpperCase()}else{return t?n.toUpperCase():n.toLowerCase()}}))}e.camelCase=s;function o(e){return(e||"").toLowerCase().split(" ").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" ")}e.titleCase=o})(n||(t.Text=n={}))},9659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Time=void 0;const n=[{name:"years",milliseconds:365*24*60*60*1e3},{name:"months",milliseconds:30*24*60*60*1e3},{name:"days",milliseconds:24*60*60*1e3},{name:"hours",milliseconds:60*60*1e3},{name:"minutes",milliseconds:60*1e3},{name:"seconds",milliseconds:1e3}];var i;(function(e){function t(e,t="long"){const i=document.documentElement.lang||"en";const s=new Intl.RelativeTimeFormat(i,{numeric:"auto",style:t});const o=new Date(e).getTime()-Date.now();for(let r of n){const e=Math.ceil(o/r.milliseconds);if(e===0){continue}return s.format(e,r.name)}return s.format(0,"seconds")}e.formatHuman=t;function i(e){const t=document.documentElement.lang||"en";const n=new Intl.DateTimeFormat(t,{dateStyle:"short",timeStyle:"short"});return n.format(new Date(e))}e.format=i})(i||(t.Time=i={}))},67881:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.URLExt=void 0;const s=n(57975);const o=i(n(61160));var r;(function(e){function t(e){if(typeof document!=="undefined"&&document){const t=document.createElement("a");t.href=e;return t}return(0,o.default)(e)}e.parse=t;function n(e){return(0,o.default)(e).hostname}e.getHostName=n;function i(e){return e&&t(e).toString()}e.normalize=i;function r(...e){let t=(0,o.default)(e[0],{});const n=t.protocol===""&&t.slashes;if(n){t=(0,o.default)(e[0],"https:"+e[0])}const i=`${n?"":t.protocol}${t.slashes?"//":""}${t.auth}${t.auth?"@":""}${t.host}`;const r=s.posix.join(`${!!i&&t.pathname[0]!=="/"?"/":""}${t.pathname}`,...e.slice(1));return`${i}${r==="."?"":r}`}e.join=r;function a(e){return r(...e.split("/").map(encodeURIComponent))}e.encodeParts=a;function l(e){const t=Object.keys(e).filter((e=>e.length>0));if(!t.length){return""}return"?"+t.map((t=>{const n=encodeURIComponent(String(e[t]));return t+(n?"="+n:"")})).join("&")}e.objectToQueryString=l;function d(e){return e.replace(/^\?/,"").split("&").reduce(((e,t)=>{const[n,i]=t.split("=");if(n.length>0){e[n]=decodeURIComponent(i||"")}return e}),{})}e.queryStringToObject=d;function c(e,n=false){const{protocol:i}=t(e);return(!i||e.toLowerCase().indexOf(i)!==0)&&(n?e.indexOf("//")!==0:e.indexOf("/")!==0)}e.isLocal=c})(r||(t.URLExt=r={}))},32254:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>j});var i=n(88617);var s=n.n(i);var o=n(38850);var r=n.n(o);var a=n(92500);var l=n(69105);var d=n(41043);var c=n.n(d);var h=n(89433);var u=n.n(h);var p=n(40065);var m=n.n(p);var g=n(34881);var f=n.n(g);const v="CSVTable";const _="TSVTable";var b;(function(e){e.CSVGoToLine="csv:go-to-line";e.TSVGoToLine="tsv:go-to-line"})(b||(b={}));const y={activate:C,id:"@jupyterlab/csvviewer-extension:csv",description:"Adds viewer for CSV file types",requires:[g.ITranslator],optional:[i.ILayoutRestorer,o.IThemeManager,h.IMainMenu,d.ISearchProviderRegistry,p.ISettingRegistry,o.IToolbarWidgetRegistry],autoStart:true};const w={activate:x,id:"@jupyterlab/csvviewer-extension:tsv",description:"Adds viewer for TSV file types.",requires:[g.ITranslator],optional:[i.ILayoutRestorer,o.IThemeManager,h.IMainMenu,d.ISearchProviderRegistry,p.ISettingRegistry,o.IToolbarWidgetRegistry],autoStart:true};function C(e,t,i,s,r,d,c,h){var u;const{commands:p,shell:m}=e;let g;if(h){h.addFactory(v,"delimiter",(e=>new l.G({widget:e.content,translator:t})));if(c){g=(0,o.createToolbarFactory)(h,c,v,y.id,t)}}const f=t.load("jupyterlab");const _=new a.Pb({name:v,label:f.__("CSV Viewer"),fileTypes:["csv"],defaultFor:["csv"],readOnly:true,toolbarFactory:g,translator:t});const w=new o.WidgetTracker({namespace:"csvviewer"});let C=k.LIGHT_STYLE;let x=k.LIGHT_TEXT_CONFIG;if(i){void i.restore(w,{command:"docmanager:open",args:e=>({path:e.context.path,factory:v}),name:e=>e.context.path})}e.docRegistry.addWidgetFactory(_);const S=e.docRegistry.getFileType("csv");let j=false;_.widgetCreated.connect((async(e,t)=>{void w.add(t);t.context.pathChanged.connect((()=>{void w.save(t)}));if(S){t.title.icon=S.icon;t.title.iconClass=S.iconClass;t.title.iconLabel=S.iconLabel}if(d&&!j){const{CSVSearchProvider:e}=await Promise.all([n.e(4470),n.e(4685)]).then(n.bind(n,54041));d.add("csv",e);j=true}await t.content.ready;t.content.style=C;t.content.rendererConfig=x;I()}));const I=()=>{const e=s&&s.theme?s.isLight(s.theme):true;C=e?k.LIGHT_STYLE:k.DARK_STYLE;x=e?k.LIGHT_TEXT_CONFIG:k.DARK_TEXT_CONFIG;w.forEach((async e=>{await e.content.ready;e.content.style=C;e.content.rendererConfig=x}))};if(s){s.themeChanged.connect(I)}const T=()=>w.currentWidget!==null&&w.currentWidget===m.currentWidget;p.addCommand(b.CSVGoToLine,{label:f.__("Go to Line"),execute:async()=>{const e=w.currentWidget;if(e===null){return}const t=await o.InputDialog.getNumber({title:f.__("Go to Line"),value:0});if(t.button.accept&&t.value!==null){e.content.goToLine(t.value)}},isEnabled:T,describedBy:{args:{type:"object",properties:{}}}});if(r){r.editMenu.goToLiners.add({id:b.CSVGoToLine,isEnabled:T})}const E=()=>{p.notifyCommandChanged(b.CSVGoToLine)};w.currentChanged.connect(E);(u=m.currentChanged)===null||u===void 0?void 0:u.connect(E)}function x(e,t,i,s,r,d,c,h){const{commands:u,shell:p}=e;let m;if(h){h.addFactory(_,"delimiter",(e=>new l.G({widget:e.content,translator:t})));if(c){m=(0,o.createToolbarFactory)(h,c,_,w.id,t)}}const g=t.load("jupyterlab");const f=new a.og({name:_,label:g.__("TSV Viewer"),fileTypes:["tsv"],defaultFor:["tsv"],readOnly:true,toolbarFactory:m,translator:t});const v=new o.WidgetTracker({namespace:"tsvviewer"});let y=k.LIGHT_STYLE;let C=k.LIGHT_TEXT_CONFIG;if(i){void i.restore(v,{command:"docmanager:open",args:e=>({path:e.context.path,factory:_}),name:e=>e.context.path})}e.docRegistry.addWidgetFactory(f);const x=e.docRegistry.getFileType("tsv");let S=false;f.widgetCreated.connect((async(e,t)=>{void v.add(t);t.context.pathChanged.connect((()=>{void v.save(t)}));if(x){t.title.icon=x.icon;t.title.iconClass=x.iconClass;t.title.iconLabel=x.iconLabel}if(d&&!S){const{CSVSearchProvider:e}=await Promise.all([n.e(4470),n.e(4685)]).then(n.bind(n,54041));d.add("tsv",e);S=true}await t.content.ready;t.content.style=y;t.content.rendererConfig=C}));const j=()=>{const e=s&&s.theme?s.isLight(s.theme):true;y=e?k.LIGHT_STYLE:k.DARK_STYLE;C=e?k.LIGHT_TEXT_CONFIG:k.DARK_TEXT_CONFIG;v.forEach((async e=>{await e.content.ready;e.content.style=y;e.content.rendererConfig=C}))};if(s){s.themeChanged.connect(j)}const I=()=>v.currentWidget!==null&&v.currentWidget===p.currentWidget;u.addCommand(b.TSVGoToLine,{label:g.__("Go to Line"),execute:async()=>{const e=v.currentWidget;if(e===null){return}const t=await o.InputDialog.getNumber({title:g.__("Go to Line"),value:0});if(t.button.accept&&t.value!==null){e.content.goToLine(t.value)}},isEnabled:I,describedBy:{args:{type:"object",properties:{}}}});if(r){r.editMenu.goToLiners.add({id:b.TSVGoToLine,isEnabled:I})}v.currentChanged.connect((()=>{u.notifyCommandChanged(b.TSVGoToLine)}))}const S=[y,w];const j=S;var k;(function(e){e.LIGHT_STYLE={voidColor:"#F3F3F3",backgroundColor:"white",headerBackgroundColor:"#EEEEEE",gridLineColor:"rgba(20, 20, 20, 0.15)",headerGridLineColor:"rgba(20, 20, 20, 0.25)",rowBackgroundColor:e=>e%2===0?"#F5F5F5":"white"};e.DARK_STYLE={voidColor:"black",backgroundColor:"#111111",headerBackgroundColor:"#424242",gridLineColor:"rgba(235, 235, 235, 0.15)",headerGridLineColor:"rgba(235, 235, 235, 0.25)",rowBackgroundColor:e=>e%2===0?"#212121":"#111111"};e.LIGHT_TEXT_CONFIG={textColor:"#111111",matchBackgroundColor:"#FFFFE0",currentMatchBackgroundColor:"#FFFF00",horizontalAlignment:"right"};e.DARK_TEXT_CONFIG={textColor:"#F5F5F5",matchBackgroundColor:"#838423",currentMatchBackgroundColor:"#A3807A",horizontalAlignment:"right"}})(k||(k={}))},54041:(e,t,n)=>{"use strict";n.d(t,{CSVSearchProvider:()=>d});var i=n(84685);var s=n.n(i);var o=n(93067);var r=n.n(o);var a=n(41043);var l=n.n(a);class d extends a.SearchProvider{constructor(){super(...arguments);this.isReadOnly=true}static createNew(e,t){return new d(e)}static isApplicable(e){return e instanceof o.DocumentWidget&&e.content instanceof i.CSVViewer}clearHighlight(){return Promise.resolve()}highlightNext(e){this.widget.content.searchService.find(this._query);return Promise.resolve(undefined)}highlightPrevious(e){this.widget.content.searchService.find(this._query,true);return Promise.resolve(undefined)}replaceCurrentMatch(e,t){return Promise.resolve(false)}replaceAllMatches(e){return Promise.resolve(false)}startQuery(e){this._query=e;this.widget.content.searchService.find(e);return Promise.resolve()}endQuery(){this.widget.content.searchService.clear();return Promise.resolve()}}},36672:(e,t,n)=>{"use strict";var i=n(10395);var s=n(97913);var o=n(79010);var r=n(3579);var a=n(40662);var l=n(85072);var d=n.n(l);var c=n(97825);var h=n.n(c);var u=n(77659);var p=n.n(u);var m=n(55056);var g=n.n(m);var f=n(10540);var v=n.n(f);var _=n(41113);var b=n.n(_);var y=n(40538);var w={};w.styleTagTransform=b();w.setAttributes=g();w.insert=p().bind(null,"head");w.domAPI=h();w.insertStyleElement=v();var C=d()(y.A,w);const x=y.A&&y.A.locals?y.A.locals:undefined;var S=n(19562);var j=n(67996)},77678:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CSVDelimiter:()=>o.G,CSVDocumentWidget:()=>r.Am,CSVViewer:()=>r.t2,CSVViewerFactory:()=>r.Pb,DSVModel:()=>i.DSVModel,GridSearchService:()=>r.Mv,TSVViewerFactory:()=>r.og,TextRenderConfig:()=>r.Gg,parseDSV:()=>s.h,parseDSVNoQuotes:()=>s.l});var i=n(77515);var s=n(69181);var o=n(69105);var r=n(92500)},77515:(e,t,n)=>{"use strict";n.r(t);n.d(t,{DSVModel:()=>d});var i=n(5592);var s=n.n(i);var o=n(44505);var r=n.n(o);var a=n(69181);const l={quotes:a.h,noquotes:a.l};class d extends o.DataModel{constructor(e){super();this._rowCount=0;this._header=[];this._columnOffsets=new Uint32Array(0);this._columnOffsetsStartingRow=0;this._maxCacheGet=1e3;this._rowOffsets=new Uint32Array(0);this._delayedParse=null;this._startedParsing=false;this._doneParsing=false;this._isDisposed=false;this._ready=new i.PromiseDelegate;let{data:t,delimiter:n=",",rowDelimiter:s=undefined,quote:o='"',quoteParser:r=undefined,header:a=true,initialRows:l=500}=e;this._rawData=t;this._delimiter=n;this._quote=o;this._quoteEscaped=new RegExp(o+o,"g");this._initialRows=l;if(s===undefined){const e=t.slice(0,5e3).indexOf("\r");if(e===-1){s="\n"}else if(t[e+1]==="\n"){s="\r\n"}else{s="\r"}}this._rowDelimiter=s;if(r===undefined){r=t.indexOf(o)>=0}this._parser=r?"quotes":"noquotes";this.parseAsync();if(a===true&&this._columnCount>0){const e=[];for(let t=0;t{}));this._ready.reject(undefined)}if(this._delayedParse!==null){window.clearTimeout(this._delayedParse)}}getOffsetIndex(e,t){const n=this._columnCount;let i=(e-this._columnOffsetsStartingRow)*n;if(i<0||i>this._columnOffsets.length){this._columnOffsets.fill(4294967295);this._columnOffsetsStartingRow=e;i=0}if(this._columnOffsets[i]===4294967295){let t=1;while(t<=this._maxCacheGet&&this._columnOffsets[i+t*n]===16777215){t++}const{offsets:s}=l[this._parser]({data:this._rawData,delimiter:this._delimiter,rowDelimiter:this._rowDelimiter,quote:this._quote,columnOffsets:true,maxRows:t,ncols:n,startIndex:this._rowOffsets[e]});for(let e=0;e{try{this._computeRowOffsets(e)}catch(t){if(this._parser==="quotes"){console.warn(t);this._parser="noquotes";this._resetParser();this._computeRowOffsets(e)}else{throw t}}return this._doneParsing};this._resetParser();const s=i(e);if(s){return}const o=()=>{const s=i(e+t);e+=t;if(t<1e6){t*=2}if(s){this._delayedParse=null}else{this._delayedParse=window.setTimeout(o,n)}};this._delayedParse=window.setTimeout(o,n)}_computeRowOffsets(e=4294967295){var t;if(this._rowCount>=e||this._doneParsing===true){return}if(this._columnCount===undefined){this._columnCount=l[this._parser]({data:this._rawData,delimiter:this._delimiter,rowDelimiter:this._rowDelimiter,quote:this._quote,columnOffsets:true,maxRows:1}).ncols}const n=this._rowCount>0?1:0;const{nrows:i,offsets:s}=l[this._parser]({data:this._rawData,startIndex:(t=this._rowOffsets[this._rowCount-n])!==null&&t!==void 0?t:0,delimiter:this._delimiter,rowDelimiter:this._rowDelimiter,quote:this._quote,columnOffsets:false,maxRows:e-this._rowCount+n});if(this._startedParsing&&i<=n){this._doneParsing=true;this._ready.resolve(undefined);return}this._startedParsing=true;const o=this._rowCount;const r=Math.min(i,n);this._rowCount=o+i-r;if(this._rowCounto){const e=this._rowOffsets;this._rowOffsets=new Uint32Array(this._rowCount);this._rowOffsets.set(e);this._rowOffsets.set(s,o-r)}const a=Math.floor(33554432/this._columnCount);if(o<=a){if(this._rowCount<=a){const e=this._columnOffsets;this._columnOffsets=new Uint32Array(this._rowCount*this._columnCount);this._columnOffsets.set(e);this._columnOffsets.fill(4294967295,e.length)}else{const e=this._columnOffsets;this._columnOffsets=new Uint32Array(Math.min(this._maxCacheGet,a)*this._columnCount);this._columnOffsets.set(e.subarray(0,this._columnOffsets.length));this._columnOffsets.fill(4294967295,e.length);this._columnOffsetsStartingRow=0}}let d=o;if(this._header.length>0){d-=1}this.emitChanged({type:"rows-inserted",region:"body",index:d,span:this._rowCount-o})}_getField(e,t){let n;let i;const s=this.getOffsetIndex(e,t);let o=0;let r=0;if(t===this._columnCount-1){if(e{}));this._ready.reject(undefined)}this._doneParsing=false;this._ready=new i.PromiseDelegate;if(this._delayedParse!==null){window.clearTimeout(this._delayedParse);this._delayedParse=null}this.emitChanged({type:"model-reset"})}}},69181:(e,t,n)=>{"use strict";n.d(t,{h:()=>o,l:()=>r});var i;(function(e){e[e["QUOTED_FIELD"]=0]="QUOTED_FIELD";e[e["QUOTED_FIELD_QUOTE"]=1]="QUOTED_FIELD_QUOTE";e[e["UNQUOTED_FIELD"]=2]="UNQUOTED_FIELD";e[e["NEW_FIELD"]=3]="NEW_FIELD";e[e["NEW_ROW"]=4]="NEW_ROW"})(i||(i={}));var s;(function(e){e[e["CR"]=0]="CR";e[e["CRLF"]=1]="CRLF";e[e["LF"]=2]="LF"})(s||(s={}));function o(e){const{data:t,columnOffsets:n,delimiter:o=",",startIndex:r=0,maxRows:a=4294967295,rowDelimiter:l="\r\n",quote:d='"'}=e;let c=e.ncols;let h=0;const u=[];const p=o.charCodeAt(0);const m=d.charCodeAt(0);const g=10;const f=13;const v=t.length;const{QUOTED_FIELD:_,QUOTED_FIELD_QUOTE:b,UNQUOTED_FIELD:y,NEW_FIELD:w,NEW_ROW:C}=i;const{CR:x,LF:S,CRLF:j}=s;const[k,I]=l==="\r\n"?[j,2]:l==="\r"?[x,1]:[S,1];let T=C;let E=r;let M=0;let D;while(Ec){u.length=u.length-(M-c)}}if(h===a){return{nrows:h,ncols:n?c:0,offsets:u}}break;case w:if(n===true){u.push(E)}M++;break;default:break}}if(T!==C){h++;if(n===true){if(c===undefined){c=M}if(Mc){u.length=u.length-(M-c)}}}return{nrows:h,ncols:n?c!==null&&c!==void 0?c:0:0,offsets:u}}function r(e){const{data:t,columnOffsets:n,delimiter:i=",",rowDelimiter:s="\r\n",startIndex:o=0,maxRows:r=4294967295}=e;let a=e.ncols;const l=[];let d=0;const c=s.length;let h=o;const u=t.length;let p;let m;let g;let f;let v;p=o;while(p!==-1&&d{"use strict";n.d(t,{G:()=>u});var i=n(34881);var s=n.n(i);var o=n(4073);var r=n.n(o);var a=n(27518);var l=n.n(a);const d="jp-CSVDelimiter";const c="jp-CSVDelimiter-label";const h="jp-CSVDelimiter-dropdown";class u extends a.Widget{constructor(e){super({node:p.createNode(e.widget.delimiter,e.translator)});this._widget=e.widget;this.addClass(d)}get selectNode(){return this.node.getElementsByTagName("select")[0]}handleEvent(e){switch(e.type){case"change":this._widget.delimiter=this.selectNode.value;break;default:break}}onAfterAttach(e){this.selectNode.addEventListener("change",this)}onBeforeDetach(e){this.selectNode.removeEventListener("change",this)}}var p;(function(e){function t(e,t){t=t||i.nullTranslator;const n=t===null||t===void 0?void 0:t.load("jupyterlab");const s=[[",",","],[";",";"],["\t",n.__("tab")],["|",n.__("pipe")],["#",n.__("hash")]];const r=document.createElement("div");const a=document.createElement("span");const l=document.createElement("select");a.textContent=n.__("Delimiter: ");a.className=c;for(const[i,o]of s){const t=document.createElement("option");t.value=i;t.textContent=o;if(i===e){t.selected=true}l.appendChild(t)}r.appendChild(a);const d=o.Styling.wrapSelect(l);d.classList.add(h);r.appendChild(d);return r}e.createNode=t})(p||(p={}))},92500:(e,t,n)=>{"use strict";n.d(t,{Am:()=>y,Gg:()=>v,Mv:()=>_,Pb:()=>w,og:()=>C,t2:()=>b});var i=n(40959);var s=n.n(i);var o=n(93067);var r=n.n(o);var a=n(5592);var l=n.n(a);var d=n(2336);var c=n.n(d);var h=n(27518);var u=n.n(h);var p=n(69105);const m="jp-CSVViewer";const g="jp-CSVViewer-grid";const f=1e3;class v{}class _{constructor(e){this._looping=true;this._changed=new d.Signal(this);this._grid=e;this._query=null;this._row=0;this._column=-1}get changed(){return this._changed}cellBackgroundColorRendererFunc(e){return({value:t,row:n,column:i})=>{if(this._query){if(t.match(this._query)){if(this._row===n&&this._column===i){return e.currentMatchBackgroundColor}return e.matchBackgroundColor}}return""}}clear(){this._query=null;this._row=0;this._column=-1;this._changed.emit(undefined)}find(e,t=false){const n=this._grid.dataModel;const i=n.rowCount("body");const s=n.columnCount("body");if(this._query!==e){this._row=0;this._column=-1}this._query=e;const o=this._grid.scrollY/this._grid.defaultSizes.rowHeight;const r=(this._grid.scrollY+this._grid.pageHeight)/this._grid.defaultSizes.rowHeight;const a=this._grid.scrollX/this._grid.defaultSizes.columnHeaderHeight;const l=(this._grid.scrollX+this._grid.pageWidth)/this._grid.defaultSizes.columnHeaderHeight;const d=(e,t)=>e>=o&&e<=r&&t>=a&&t<=l;const c=t?-1:1;this._column+=c;for(let h=this._row;t?h>=0:h=0:i=n-1){this._row=0;this._column=-1}}get query(){return this._query}}class b extends h.Widget{constructor(e){super();this._monitor=null;this._delimiter=",";this._revealed=new a.PromiseDelegate;this._baseRenderer=null;this._context=e.context;this.layout=new h.PanelLayout;this.addClass(m);this._ready=this.initialize()}get ready(){return this._ready}async initialize(){const e=this.layout;if(this.isDisposed||!e){return}const{BasicKeyHandler:t,BasicMouseHandler:n,DataGrid:s}=await x.ensureDataGrid();this._defaultStyle=s.defaultStyle;this._grid=new s({defaultSizes:{rowHeight:24,columnWidth:144,rowHeaderWidth:64,columnHeaderHeight:36}});this._grid.addClass(g);this._grid.headerVisibility="all";this._grid.keyHandler=new t;this._grid.mouseHandler=new n;this._grid.copyConfig={separator:"\t",format:s.copyFormatGeneric,headers:"all",warningThreshold:1e6};e.addWidget(this._grid);this._searchService=new _(this._grid);this._searchService.changed.connect(this._updateRenderer,this);await this._context.ready;await this._updateGrid();this._revealed.resolve(undefined);this._monitor=new i.ActivityMonitor({signal:this._context.model.contentChanged,timeout:f});this._monitor.activityStopped.connect(this._updateGrid,this)}get context(){return this._context}get revealed(){return this._revealed.promise}get delimiter(){return this._delimiter}set delimiter(e){if(e===this._delimiter){return}this._delimiter=e;void this._updateGrid()}get style(){return this._grid.style}set style(e){this._grid.style={...this._defaultStyle,...e}}set rendererConfig(e){this._baseRenderer=e;void this._updateRenderer()}get searchService(){return this._searchService}dispose(){if(this._monitor){this._monitor.dispose()}super.dispose()}goToLine(e){this._grid.scrollToRow(e)}onActivateRequest(e){this.node.tabIndex=-1;this.node.focus()}async _updateGrid(){const{BasicSelectionModel:e}=await x.ensureDataGrid();const{DSVModel:t}=await x.ensureDSVModel();const n=this._context.model.toString();const i=this._delimiter;const s=this._grid.dataModel;const o=this._grid.dataModel=new t({data:n,delimiter:i});this._grid.selectionModel=new e({dataModel:o});if(s){s.dispose()}}async _updateRenderer(){if(this._baseRenderer===null){return}const{TextRenderer:e}=await x.ensureDataGrid();const t=this._baseRenderer;const n=new e({textColor:t.textColor,horizontalAlignment:t.horizontalAlignment,backgroundColor:this._searchService.cellBackgroundColorRendererFunc(t)});this._grid.cellRenderers.update({body:n,"column-header":n,"corner-header":n,"row-header":n})}}class y extends o.DocumentWidget{constructor(e){let{content:t,context:n,delimiter:i,reveal:s,...o}=e;t=t||x.createContent(n);s=Promise.all([s,t.revealed]);super({content:t,context:n,reveal:s,...o});if(i){t.delimiter=i}}setFragment(e){const t=e.split("=");if(t[0]!=="#row"){return}let n=t[1].split(";")[0];n=n.split("-")[0];void this.context.ready.then((()=>{this.content.goToLine(Number(n))}))}}class w extends o.ABCWidgetFactory{createNewWidget(e){const t=this.translator;return new y({context:e,translator:t})}defaultToolbarFactory(e){return[{name:"delimiter",widget:new p.G({widget:e.content,translator:this.translator})}]}}class C extends w{createNewWidget(e){const t="\t";return new y({context:e,delimiter:t,translator:this.translator})}}var x;(function(e){let t=null;let i=null;async function s(){if(t==null){t=new a.PromiseDelegate;t.resolve(await n.e(4505).then(n.t.bind(n,44505,23)))}return t.promise}e.ensureDataGrid=s;async function o(){if(i==null){i=new a.PromiseDelegate;i.resolve(await Promise.all([n.e(4470),n.e(4505)]).then(n.bind(n,77515)))}return i.promise}e.ensureDSVModel=o;function r(e){return new b({context:e})}e.createContent=r})(x||(x={}))},55923:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>R});var i=n(88617);var s=n(38850);var o=n(44389);var r=n(59733);var a=n(40959);var l=n(94267);var d=n(93067);var c=n(50655);var h=n(74823);var u=n(95513);var p=n(40065);var m=n(34881);var g=n(25481);class f{constructor(e){this._debuggerService=e.debuggerService;this._trans=e.trans}createDisplayData(e,t){return{output_type:"display_data",data:{"text/plain":e},metadata:{execution_count:t}}}async evaluateWithDebugger(e){const{code:t,executionCount:n}=e;try{if(!this._debuggerService.hasStoppedThreads()){return this.createDisplayData(this._trans.__("Debugger does not have stopped threads - cannot evaluate"),n)}const e=await this._debuggerService.evaluate(t);if(!e){return this.createDisplayData(this._trans.__("Evaluation resulted in an error"),n)}return this.createDisplayData(e.result,n)}catch(i){console.error("Error evaluating code with debugger:",i);return this.createDisplayData(`Error: ${i}`,n)}}async runCell(e){const{cell:t}=e;const n=t.model.sharedModel.getSource();const i=t.model.sharedModel.execution_count;const s=await this.evaluateWithDebugger({code:n,executionCount:i});if(!s){const e=this.createDisplayData(this._trans.__("Could not display output data"),i);t.model.outputs.add(e);return false}t.model.outputs.add(s);return true}}class v{constructor(e){this.options=e;this.identifier="DebuggerCompletionProvider";this.rank=1e3;const t=e.translator||m.nullTranslator;this._trans=t.load("jupyterlab");this.name=this._trans.__("Debugger");this._debuggerService=e.debuggerService}async isApplicable(e){var t,n,i;try{const e=await((i=(n=(t=this._debuggerService.session)===null||t===void 0?void 0:t.connection)===null||n===void 0?void 0:n.kernel)===null||i===void 0?void 0:i.spec);return(e===null||e===void 0?void 0:e.language)==="python"}catch(s){return false}}async fetch(e,t,n){var i,s;let o=[];let r;try{const{text:t,offset:n}=e;const i=`\nfrom IPython.core.completer import provisionalcompleter as _provisionalcompleter\nfrom IPython.core.completer import rectify_completions as _rectify_completions\nfrom IPython.core.completer import IPCompleter\n_EXPERIMENTAL_KEY_NAME = "_jupyter_types_experimental"\n\ndef getCompletionsForDebugger(code, cursor_pos):\n ip = get_ipython()\n\n # Access the current debugger frame\n import inspect\n current_frame = inspect.currentframe()\n\n # Get the frame that called this function (the debugger's target frame)\n caller_frame = current_frame.f_back if current_frame else None\n\n # Get the debugger's frame variables\n if caller_frame:\n frame_locals = caller_frame.f_locals\n frame_globals = caller_frame.f_globals\n else:\n frame_locals = locals()\n frame_globals = globals()\n\n local_completer = IPCompleter(shell=ip, namespace=frame_locals, global_namespace=frame_globals, parent=ip)\n\n with _provisionalcompleter():\n raw_completions = local_completer.completions(code, cursor_pos)\n completions = list(_rectify_completions(code, raw_completions))\n\n comps = []\n for comp in completions:\n comps.append(\n dict(\n start=comp.start,\n end=comp.end,\n text=comp.text,\n type=comp.type,\n signature=comp.signature,\n )\n )\n\n if completions:\n s = completions[0].start\n e = completions[0].end\n matches = [c.text for c in completions]\n types = [c.type for c in completions]\n else:\n s = cursor_pos\n e = cursor_pos\n matches = []\n types = []\n\n result = {\n "matches": matches,\n "types": types,\n "cursor_end": e,\n "cursor_start": s,\n "status": "ok",\n }\n\n return result\n`;await this._debuggerService.evaluate(i);const s=`getCompletionsForDebugger(${JSON.stringify(t)}, ${n})`;const a=await this._debuggerService.evaluate(s);if(!a){return{start:0,end:0,items:[]}}const l=a.result;let c=l.replace(/'/g,'"');c=c.replace(/, \.\.\./g,"");try{r=JSON.parse(c)}catch(d){console.error("Failed to parse corrected matches:",d);return{start:0,end:0,items:[]}}const h=r.matches.map(((e,t)=>{var n;return{label:e,insertText:e,type:((n=r.types)===null||n===void 0?void 0:n[t])||undefined}}));o=[...h]}catch(d){console.warn("Error fetching debugger completions:",d);return{start:0,end:0,items:[]}}const a=(i=r.cursor_start)!==null&&i!==void 0?i:0;const l=(s=r.cursor_end)!==null&&s!==void 0?s:0;return{start:a,end:l,items:o}}}var _=n(88459);function b(e){Object.values(l.Debugger.CommandIDs).forEach((t=>{if(e.hasCommand(t)){e.notifyCommandChanged(t)}}))}function y(e,t){const n=t.hasStoppedThreads();if(n){document.body.dataset.jpDebuggerStoppedThreads="true"}else{delete document.body.dataset.jpDebuggerStoppedThreads}b(e)}const w={id:"@jupyterlab/debugger-extension:consoles",description:"Add debugger capability to the consoles.",autoStart:true,requires:[l.IDebugger,r.IConsoleTracker],optional:[i.ILabShell,p.ISettingRegistry,m.ITranslator,l.IDebuggerDisplayRegistry],activate:async(e,t,n,i,s,o,a)=>{if(s){const e=await(s===null||s===void 0?void 0:s.load(D.id));const t=()=>{var t;const n=(t=e.composite["showPausedOverlay"])!==null&&t!==void 0?t:true;document.body.dataset.showPausedOverlay=n?"true":"false"};t();e.changed.connect(t)}const d=new l.Debugger.Handler({type:"console",shell:e.shell,service:t,translator:o});const c=async n=>{const{sessionContext:i}=n;await i.ready;await d.updateContext(n,i);y(e.commands,t)};if(i){i.currentChanged.connect(((e,t)=>{const n=t.newValue;if(n instanceof r.ConsolePanel){void c(n)}}))}else{n.currentChanged.connect(((e,t)=>{if(t){void c(t)}}))}if(a){a.register({canHandle(e){var t,n;return(n=(t=e.path)===null||t===void 0?void 0:t.includes("ipykernel_"))!==null&&n!==void 0?n:false},getDisplayName(e){var i;let s=(i=e.path)!==null&&i!==void 0?i:"";n.forEach((n=>{var i,o;for(const r of n.console.cells){const n=r.model;if(!(0,_.isCodeCellModel)(n)){continue}const a=n.sharedModel.getSource();const l=t.getCodeId(a);if(l&&l===e.path){const e=(i=n.executionCount)!==null&&i!==void 0?i:null;const t=(o=n.executionState)!==null&&o!==void 0?o:null;if(t==="running"){s="In [*]"}else if(e===null){s="In [ ]"}else{s=`In [${e}]`}return}}}));return s}})}}};const C={id:"@jupyterlab/debugger-extension:files",description:"Adds debugger capabilities to files.",autoStart:true,requires:[l.IDebugger,c.IEditorTracker],optional:[i.ILabShell,p.ISettingRegistry,m.ITranslator],activate:async(e,t,n,i,s,o)=>{if(s){const e=await(s===null||s===void 0?void 0:s.load(D.id));const t=()=>{var t;const n=(t=e.composite["showPausedOverlay"])!==null&&t!==void 0?t:true;document.body.dataset.showPausedOverlay=n?"true":"false"};t();e.changed.connect(t)}const r=new l.Debugger.Handler({type:"file",shell:e.shell,service:t,translator:o});const a={};const h=async n=>{const i=e.serviceManager.sessions;try{const s=await i.findByPath(n.context.path);if(!s){return}let o=a[s.id];if(!o){o=i.connectTo({model:s});a[s.id]=o}await r.update(n,o);y(e.commands,t)}catch(s){return}};if(i){i.currentChanged.connect(((e,t)=>{const n=t.newValue;if(n instanceof d.DocumentWidget){const{content:e}=n;if(e instanceof c.FileEditor){void h(n)}}}))}else{n.currentChanged.connect(((e,t)=>{if(t){void h(t)}}))}}};const x={id:"@jupyterlab/debugger-extension:notebooks",description:"Adds debugger capability to notebooks and provides the debugger notebook handler.",autoStart:true,requires:[l.IDebugger,h.INotebookTracker],optional:[i.ILabShell,s.ICommandPalette,s.ISessionContextDialogs,p.ISettingRegistry,m.ITranslator,l.IDebuggerDisplayRegistry],provides:l.IDebuggerHandler,activate:async(e,t,n,i,o,r,a,d,c)=>{const u=d!==null&&d!==void 0?d:m.nullTranslator;if(a){const e=await(a===null||a===void 0?void 0:a.load(D.id));const t=()=>{var t;const n=(t=e.composite["showPausedOverlay"])!==null&&t!==void 0?t:true;document.body.dataset.showPausedOverlay=n?"true":"false"};t();e.changed.connect(t)}const p=r!==null&&r!==void 0?r:new s.SessionContextDialogs({translator:u});const g=new l.Debugger.Handler({type:"notebook",shell:e.shell,service:t,translator:u});const f=u.load("jupyterlab");e.commands.addCommand(l.Debugger.CommandIDs.restartDebug,{label:f.__("Restart Kernel and Debug…"),caption:f.__("Restart Kernel and Debug…"),isEnabled:()=>t.isStarted,describedBy:{args:{type:"object",properties:{}}},execute:async()=>{const e=t.getDebuggerState();const i=n.currentWidget;if(!i){return}const{content:s,sessionContext:o}=i;const r=await p.restart(o,{onBeforeRestart:async()=>{await t.stop()}});if(!r){return}await t.start();await t.restoreDebuggerState(e);await g.updateWidget(i,o.session);await h.NotebookActions.runAll(s,o,p,u)}});const v=async n=>{if(n){const{sessionContext:e}=n;await e.ready;await g.updateContext(n,e);await g.updateWidget(n,e.session)}y(e.commands,t)};if(i){i.currentChanged.connect(((e,t)=>{const n=t.newValue;if(n instanceof h.NotebookPanel){void v(n)}}))}else{n.currentChanged.connect(((e,t)=>{if(t){void v(t)}}))}if(o){o.addItem({category:"Notebook Operations",command:l.Debugger.CommandIDs.restartDebug})}if(c){c.register({canHandle(e){var t,n;return(n=(t=e.path)===null||t===void 0?void 0:t.includes("ipykernel_"))!==null&&n!==void 0?n:false},getDisplayName(e){var i;let s=(i=e.path)!==null&&i!==void 0?i:"";n.forEach((n=>{for(const i of n.content.widgets){const n=i.model;if(!(0,_.isCodeCellModel)(n)){continue}const o=n.sharedModel.getSource();const r=t.getCodeId(o);if(r===e.path){const e=n.executionCount;if(n.executionState==="running"){s="Cell [*]"}else{s=e==null?"Cell [ ]":`Cell [${e}]`}return}}}));return s}})}return g}};const S={id:"@jupyterlab/debugger-extension:service",description:"Provides the debugger service.",autoStart:true,provides:l.IDebugger,requires:[l.IDebuggerConfig],optional:[l.IDebuggerDisplayRegistry,l.IDebuggerSources,m.ITranslator],activate:(e,t,n,i,s)=>new l.Debugger.Service({config:t,displayRegistry:n,debuggerSources:i,specsManager:e.serviceManager.kernelspecs,translator:s})};const j={id:"@jupyterlab/debugger-extension:display-registry",description:"Provides the debugger display registry for cell/file display names.",provides:l.IDebuggerDisplayRegistry,autoStart:true,activate:()=>new l.DebuggerDisplayRegistry};const k={id:"@jupyterlab/debugger-extension:config",description:"Provides the debugger configuration",provides:l.IDebuggerConfig,autoStart:true,activate:()=>new l.Debugger.Config};const I={id:"@jupyterlab/debugger-extension:sources",description:"Provides the source feature for debugging",autoStart:true,provides:l.IDebuggerSources,requires:[l.IDebuggerConfig,o.IEditorServices],optional:[h.INotebookTracker,r.IConsoleTracker,c.IEditorTracker],activate:(e,t,n,i,s,o)=>new l.Debugger.Sources({config:t,shell:e.shell,editorServices:n,notebookTracker:i,consoleTracker:s,editorTracker:o})};const T={id:"@jupyterlab/debugger-extension:variables",description:"Adds variables renderer and inspection in the debugger variable panel.",autoStart:true,requires:[l.IDebugger,l.IDebuggerHandler,m.ITranslator],optional:[s.IThemeManager,u.IRenderMimeRegistry],activate:(e,t,n,i,o,r)=>{const a=i.load("jupyterlab");const{commands:d,shell:c}=e;const u=new s.WidgetTracker({namespace:"debugger/inspect-variable"});const p=new s.WidgetTracker({namespace:"debugger/render-variable"});const m=l.Debugger.CommandIDs;d.addCommand(m.inspectVariable,{label:a.__("Inspect Variable"),caption:a.__("Inspect Variable"),isEnabled:e=>{var n,i,s,o;return!!((n=t.session)===null||n===void 0?void 0:n.isStarted)&&Number((o=(i=e.variableReference)!==null&&i!==void 0?i:(s=t.model.variables.selectedVariable)===null||s===void 0?void 0:s.variablesReference)!==null&&o!==void 0?o:0)>0},describedBy:{args:{type:"object",properties:{variableReference:{type:"number",description:a.__("The variable reference to inspect")},name:{type:"string",description:a.__("The name of the variable to inspect")}}}},execute:async e=>{var n,i,r,a;let{variableReference:h,name:p}=e;if(!h){h=(n=t.model.variables.selectedVariable)===null||n===void 0?void 0:n.variablesReference}if(!p){p=(i=t.model.variables.selectedVariable)===null||i===void 0?void 0:i.name}const m=`jp-debugger-variable-${p}`;if(!p||!h||u.find((e=>e.id===m))){return}const g=await t.inspectVariable(h);if(!g||g.length===0){return}const f=t.model.variables;const v=new s.MainAreaWidget({content:new l.Debugger.VariablesGrid({model:f,commands:d,scopes:[{name:p,variables:g}],themeManager:o})});v.addClass("jp-DebuggerVariables");v.id=m;v.title.icon=l.Debugger.Icons.variableIcon;v.title.label=`${(a=(r=t.session)===null||r===void 0?void 0:r.connection)===null||a===void 0?void 0:a.name} - ${p}`;void u.add(v);const _=()=>{v.dispose();f.changed.disconnect(_)};f.changed.connect(_);c.add(v,"main",{mode:u.currentWidget?"split-right":"split-bottom",activate:false,type:"Debugger Variables"})}});d.addCommand(m.renderMimeVariable,{label:a.__("Render Variable"),caption:a.__("Render variable according to its mime type"),isEnabled:()=>{var e;return!!((e=t.session)===null||e===void 0?void 0:e.isStarted)},isVisible:()=>t.model.hasRichVariableRendering&&(r!==null||n.activeWidget instanceof h.NotebookPanel),describedBy:{args:{type:"object",properties:{frameId:{type:"number",description:a.__("The frame ID")},name:{type:"string",description:a.__("The name of the variable to render")}}}},execute:e=>{var s,o,a,d,u,m,g,f;let{name:v,frameId:_}=e;if(!v){v=(s=t.model.variables.selectedVariable)===null||s===void 0?void 0:s.name}if(!_){_=(o=t.model.callstack.frame)===null||o===void 0?void 0:o.id}const b=n.activeWidget;let y=b instanceof h.NotebookPanel?b.content.rendermime:r;if(!y){return}const w=`jp-debugger-variable-mime-${v}-${(d=(a=t.session)===null||a===void 0?void 0:a.connection)===null||d===void 0?void 0:d.path.replace("/","-")}`;if(!v||p.find((e=>e.id===w))||!_&&t.hasStoppedThreads()){return}const C=t.model.variables;const x=new l.Debugger.VariableRenderer({dataLoader:()=>t.inspectRichVariable(v,_),rendermime:y,translator:i});x.addClass("jp-DebuggerRichVariable");x.id=w;x.title.icon=l.Debugger.Icons.variableIcon;x.title.label=`${v} - ${(m=(u=t.session)===null||u===void 0?void 0:u.connection)===null||m===void 0?void 0:m.name}`;x.title.caption=`${v} - ${(f=(g=t.session)===null||g===void 0?void 0:g.connection)===null||f===void 0?void 0:f.path}`;void p.add(x);const S=()=>{x.dispose();C.changed.disconnect(j);b===null||b===void 0?void 0:b.disposed.disconnect(S)};const j=()=>{if(n.activeWidget===b){void x.refresh()}};x.disposed.connect(S);C.changed.connect(j);b===null||b===void 0?void 0:b.disposed.connect(S);c.add(x,"main",{mode:p.currentWidget?"split-right":"split-bottom",activate:false,type:"Debugger Variables"})}});d.addCommand(m.copyToClipboard,{label:a.__("Copy to Clipboard"),caption:a.__("Copy text representation of the value to clipboard"),isEnabled:()=>{var e,n;return!!((e=t.session)===null||e===void 0?void 0:e.isStarted)&&!!((n=t.model.variables.selectedVariable)===null||n===void 0?void 0:n.value)},isVisible:()=>n.activeWidget instanceof h.NotebookPanel,describedBy:{args:{type:"object",properties:{}}},execute:async()=>{const e=t.model.variables.selectedVariable.value;if(e){s.Clipboard.copyToSystem(e)}}});d.addCommand(m.copyToGlobals,{label:a.__("Copy Variable to Globals"),caption:a.__("Copy variable to globals scope"),isEnabled:()=>{var e;return!!((e=t.session)===null||e===void 0?void 0:e.isStarted)},isVisible:()=>n.activeWidget instanceof h.NotebookPanel&&t.model.supportCopyToGlobals,describedBy:{args:{type:"object",properties:{}}},execute:async e=>{const n=t.model.variables.selectedVariable.name;await t.copyToGlobals(n)}})}};const E={id:"@jupyterlab/debugger-extension:sidebar",description:"Provides the debugger sidebar.",provides:l.IDebuggerSidebar,requires:[l.IDebugger,o.IEditorServices,m.ITranslator],optional:[s.IThemeManager,p.ISettingRegistry],autoStart:true,activate:async(e,t,n,i,s,o)=>{const{commands:r}=e;const a=l.Debugger.CommandIDs;const d={registry:r,continue:a.debugContinue,terminate:a.terminate,next:a.next,stepIn:a.stepIn,stepOut:a.stepOut,evaluate:a.evaluate};const c={registry:r,pauseOnExceptions:a.pauseOnExceptions};const h=new l.Debugger.Sidebar({service:t,callstackCommands:d,breakpointsCommands:c,editorServices:n,themeManager:s,translator:i});if(o){const e=await o.load(D.id);const n=()=>{var n,i,s,o;const r=e.get("variableFilters").composite;const a=(o=(s=(i=(n=t.session)===null||n===void 0?void 0:n.connection)===null||i===void 0?void 0:i.kernel)===null||s===void 0?void 0:s.name)!==null&&o!==void 0?o:"";if(a&&r[a]){h.variables.filter=new Set(r[a])}const l=e.get("defaultKernelSourcesFilter").composite;h.kernelSources.filter=l};n();e.changed.connect(n);t.sessionChanged.connect(n)}return h}};const M={id:"@jupyterlab/debugger-extension:source-viewer",description:"Initialize the debugger sources viewer.",requires:[l.IDebugger,o.IEditorServices,l.IDebuggerSources,m.ITranslator],provides:l.IDebuggerSourceViewer,autoStart:true,activate:async(e,t,n,i,o)=>{const r=new l.Debugger.ReadOnlyEditorFactory({editorServices:n});const{model:d}=t;const c=(e,n)=>{var s,o,r,a,d,c,h,u,p;i.find({focus:true,kernel:(a=(r=(o=(s=t.session)===null||s===void 0?void 0:s.connection)===null||o===void 0?void 0:o.kernel)===null||r===void 0?void 0:r.name)!==null&&a!==void 0?a:"",path:(h=(c=(d=t.session)===null||d===void 0?void 0:d.connection)===null||c===void 0?void 0:c.path)!==null&&h!==void 0?h:"",source:(p=(u=n===null||n===void 0?void 0:n.source)===null||u===void 0?void 0:u.path)!==null&&p!==void 0?p:""}).forEach((e=>{requestAnimationFrame((()=>{void e.reveal().then((()=>{const t=e.get();if(t){l.Debugger.EditorHandler.showCurrentLine(t,n.line)}}))}))}))};d.callstack.currentFrameChanged.connect(c);const h=(e,n)=>{var s,o,d,c,h,u,p;if(!e){return}const{content:m,mimeType:g,path:f}=e;const v=i.find({focus:true,kernel:(c=(d=(o=(s=t.session)===null||s===void 0?void 0:s.connection)===null||o===void 0?void 0:o.kernel)===null||d===void 0?void 0:d.name)!==null&&c!==void 0?c:"",path:(p=(u=(h=t.session)===null||h===void 0?void 0:h.connection)===null||u===void 0?void 0:u.path)!==null&&p!==void 0?p:"",source:f});if(v.length>0){if(n&&typeof n.line!=="undefined"){v.forEach((e=>{void e.reveal().then((()=>{var t;(t=e.get())===null||t===void 0?void 0:t.revealPosition({line:n.line-1,column:n.column||0})}))}))}return}const _=r.createNewEditor({content:m,mimeType:g,path:f});const b=_.editor;const y=new l.Debugger.EditorHandler({debuggerService:t,editorReady:()=>Promise.resolve(b),getEditor:()=>b,path:f,src:b.model.sharedModel});_.disposed.connect((()=>y.dispose()));i.open({label:a.PathExt.basename(f),caption:f,editorWrapper:_});const w=t.model.callstack.frame;if(w){l.Debugger.EditorHandler.showCurrentLine(b,w.line)}};const u=o.load("jupyterlab");e.commands.addCommand(l.Debugger.CommandIDs.openSource,{label:u.__("Open Source"),caption:u.__("Open Source"),isEnabled:()=>!!M,execute:async e=>{const n=e.path||"";if(!n){throw Error("Path to open is needed")}if(!t.isStarted){const e=await(0,s.showDialog)({title:u.__("Start debugger?"),body:u.__("The debugger service is needed to open the source %1",n),buttons:[s.Dialog.cancelButton({label:u.__("Cancel")}),s.Dialog.okButton({label:u.__("Start debugger")})]});if(e.button.accept){await t.start()}else{return}}const i=await t.getSource({path:n});return h(i)},describedBy:{args:{type:"object",properties:{path:{type:"string",description:u.__("Path to the source file to open")}}}}});return Object.freeze({open:h})}};const D={id:"@jupyterlab/debugger-extension:main",description:"Initialize the debugger user interface.",requires:[l.IDebugger,l.IDebuggerSidebar,o.IEditorServices,m.ITranslator,r.ConsolePanel.IContentFactory,r.IConsoleTracker],optional:[s.ICommandPalette,l.IDebuggerSourceViewer,i.ILabShell,i.ILayoutRestorer,p.ISettingRegistry],autoStart:true,activate:async(e,t,n,i,o,r,d,c,h,u,p,m)=>{var g;const f=o.load("jupyterlab");const{commands:v,shell:_,serviceManager:b}=e;const{kernelspecs:w}=b;const C=l.Debugger.CommandIDs;const x=a.PageConfig.getOption("alwaysShowDebuggerExtension").toLowerCase()==="true";if(!x){await w.ready;const e=(g=w.specs)===null||g===void 0?void 0:g.kernelspecs;if(!e){return}const t=Object.keys(e).some((t=>{var n,i,s;return!!((s=(i=(n=e[t])===null||n===void 0?void 0:n.metadata)===null||i===void 0?void 0:i["debugger"])!==null&&s!==void 0?s:false)}));if(!t){return}}v.addCommand(C.debugContinue,{label:()=>t.hasStoppedThreads()?f.__("Continue"):f.__("Pause"),caption:()=>t.hasStoppedThreads()?f.__("Continue"):f.__("Pause"),icon:()=>t.hasStoppedThreads()?l.Debugger.Icons.continueIcon:l.Debugger.Icons.pauseIcon,isEnabled:()=>{var e,n;return(n=(e=t.session)===null||e===void 0?void 0:e.isStarted)!==null&&n!==void 0?n:false},execute:async()=>{if(t.hasStoppedThreads()){await t.continue()}else{await t.pause()}v.notifyCommandChanged(C.debugContinue)},describedBy:{args:{type:"object",properties:{}}}});v.addCommand(C.terminate,{label:f.__("Terminate"),caption:f.__("Terminate"),icon:l.Debugger.Icons.terminateIcon,isEnabled:()=>t.hasStoppedThreads(),execute:async()=>{await t.restart();y(e.commands,t)},describedBy:{args:{type:"object",properties:{}}}});v.addCommand(C.next,{label:f.__("Next"),caption:f.__("Next"),icon:l.Debugger.Icons.stepOverIcon,isEnabled:()=>t.hasStoppedThreads(),execute:async()=>{await t.next()},describedBy:{args:{type:"object",properties:{}}}});v.addCommand(C.stepIn,{label:f.__("Step In"),caption:f.__("Step In"),icon:l.Debugger.Icons.stepIntoIcon,isEnabled:()=>t.hasStoppedThreads(),execute:async()=>{await t.stepIn()},describedBy:{args:{type:"object",properties:{}}}});v.addCommand(C.stepOut,{label:f.__("Step Out"),caption:f.__("Step Out"),icon:l.Debugger.Icons.stepOutIcon,isEnabled:()=>t.hasStoppedThreads(),execute:async()=>{await t.stepOut()},describedBy:{args:{type:"object",properties:{}}}});v.addCommand(C.pauseOnExceptions,{label:e=>e.filter||"Breakpoints on exception",caption:e=>{var t;return(t=e.description)!==null&&t!==void 0?t:""},isToggled:e=>{var n;return((n=t.session)===null||n===void 0?void 0:n.isPausingOnException(e.filter))||false},isEnabled:()=>t.pauseOnExceptionsIsValid(),execute:async e=>{var n,i,o;if(e===null||e===void 0?void 0:e.filter){let n=e.filter;await t.pauseOnExceptionsFilter(n)}else{let e=[];(i=(n=t.session)===null||n===void 0?void 0:n.exceptionBreakpointFilters)===null||i===void 0?void 0:i.forEach((t=>{e.push(t.filter)}));const r=await s.InputDialog.getMultipleItems({title:f.__("Select a filter for breakpoints on exception"),items:e,defaults:((o=t.session)===null||o===void 0?void 0:o.currentExceptionFilters)||[]});let a=r.button.accept?r.value:null;if(a!==null){await t.pauseOnExceptions(a)}}},describedBy:{args:{type:"object",properties:{filter:{type:"string",description:f.__("Exception filter to pause on")},description:{type:"string",description:f.__("Description of the exception filter")}}}}});let S=false;if(m){const e=await m.load(D.id);const t=()=>{S=e.get("autoCollapseDebuggerSidebar").composite};t();e.changed.connect(t)}t.eventMessage.connect(((i,s)=>{y(e.commands,t);if(u&&s.event==="initialized"){u.activateById(n.id)}else if(u&&n.isVisible&&s.event==="terminated"&&S){u.collapseRight()}}));t.sessionChanged.connect((n=>{y(e.commands,t)}));if(p){p.add(n,"debugger-sidebar")}n.node.setAttribute("role","region");n.node.setAttribute("aria-label",f.__("Debugger section"));n.title.caption=f.__("Debugger");_.add(n,"right",{type:"Debugger"});v.addCommand(C.showPanel,{label:f.__("Debugger Panel"),execute:()=>{_.activateById(n.id)},describedBy:{args:{type:"object",properties:{}}}});if(c){const e=f.__("Debugger");[C.debugContinue,C.terminate,C.next,C.stepIn,C.stepOut,C.evaluate,C.pauseOnExceptions].forEach((t=>{c.addItem({command:t,category:e})}))}if(h){const{model:e}=t;const n=(e,t,n)=>{if(!t){return}h.open(t,n)};e.sources.currentSourceOpened.connect(((e,t)=>{h.open(t)}));e.kernelSources.kernelSourceOpened.connect(n);e.breakpoints.clicked.connect((async(e,n)=>{var i;const s=(i=n.source)===null||i===void 0?void 0:i.path;const o=await t.getSource({sourceReference:0,path:s});h.open(o,n)}))}}};const A={id:"@jupyterlab/debugger-extension:completions",description:"Provides debugger-based completions.",autoStart:true,requires:[l.IDebugger,g.ICompletionProviderManager],optional:[m.ITranslator],activate:(e,t,n,i)=>{const s=new v({debuggerService:t,translator:i||m.nullTranslator});n.registerProvider(s)}};const P={id:"@jupyterlab/debugger-extension:debug-console",description:"Debugger console to enable evaluation in debugger context.",autoStart:true,requires:[l.IDebugger,r.ConsolePanel.IContentFactory,o.IEditorServices,g.ICompletionProviderManager,s.ISanitizer,m.ITranslator],optional:[i.ILabShell],activate:(e,t,n,i,o,a,d,c)=>{const h=l.Debugger.CommandIDs;const p=d.load("jupyterlab");const m=new s.WidgetTracker({namespace:"debugger-debug-console"});let g=null;const v=async()=>{const s=new u.RenderMimeRegistry({initialFactories:u.standardRendererFactories});const o=new f({debuggerService:t,trans:p});g=new r.ConsolePanel({manager:e.serviceManager,name:p.__("Debug Console"),contentFactory:n,rendermime:s,executor:o,mimeTypeService:i.mimeTypeService,kernelPreference:{shouldStart:false,canStart:false}});g.title.label=p.__("Debug Console");g.title.icon=l.Debugger.Icons.evaluateIcon;g.addClass("jp-DebugConsole");g.console.addClass("jp-DebugConsole-widget");t.eventMessage.connect(((e,t)=>{if(c&&t.event==="terminated"){g===null||g===void 0?void 0:g.dispose()}}));const a=()=>{e.commands.notifyCommandChanged(h.evaluate);e.commands.notifyCommandChanged(h.executeConsole);e.commands.notifyCommandChanged(h.invokeConsole);e.commands.notifyCommandChanged(h.selectConsole)};g.disposed.connect((()=>{g=null}));e.shell.add(g,"main",{mode:"split-bottom",activate:true,type:"Debugger Console"});void m.add(g);e.shell.activateById(g.id);await _(undefined,g);g===null||g===void 0?void 0:g.update();a()};const _=async(e,t)=>{var n,i;const s={editor:(i=(n=t.console.promptCell)===null||n===void 0?void 0:n.editor)!==null&&i!==void 0?i:null,session:t.console.sessionContext.session,widget:t};await o.updateCompleter(s);t.console.promptCellCreated.connect(((e,n)=>{const i={editor:n.editor,session:e.sessionContext.session,widget:t,sanitizer:a};o.updateCompleter(i).catch(console.error)}));t.console.sessionContext.sessionChanged.connect((()=>{var e,n;const i={editor:(n=(e=t.console.promptCell)===null||e===void 0?void 0:e.editor)!==null&&n!==void 0?n:null,session:t.console.sessionContext.session,widget:t,sanitizer:a};o.updateCompleter(i).catch(console.error)}))};m.widgetAdded.connect(_);o.activeProvidersChanged.connect((()=>{m.forEach((e=>{_(undefined,e).catch((e=>console.error(e)))}))}));e.commands.addCommand(h.invokeConsole,{label:p.__("Display the tab completion widget."),execute:()=>{const e=m.currentWidget&&m.currentWidget.id;if(e){return o.invoke(e)}},describedBy:{args:{type:"object",properties:{}}}});e.commands.addCommand(h.selectConsole,{label:p.__("Select the completion suggestion."),execute:()=>{const e=m.currentWidget&&m.currentWidget.id;if(e){return o.select(e)}},describedBy:{args:{type:"object",properties:{}}}});e.commands.addCommand(h.executeConsole,{label:p.__("Execute the current line in debug console."),execute:async()=>{const e=m.currentWidget;if(e&&e.console){await e.console.execute(true);const t=e.console.promptCell;if(t&&t.editor){t.editor.focus()}}},describedBy:{args:{type:"object",properties:{}}}});e.commands.addCommand(h.evaluate,{label:p.__("Evaluate Code"),caption:p.__("Evaluate Code"),icon:l.Debugger.Icons.evaluateIcon,isEnabled:()=>{var e;return!!((e=t.session)===null||e===void 0?void 0:e.isStarted)},execute:async()=>{if(g){g.dispose()}else{void v()}},isToggled:()=>g!==null,describedBy:{args:{type:"object",properties:{}}}});e.commands.addKeyBinding({command:h.selectConsole,keys:["Enter"],selector:".jp-ConsolePanel.jp-DebugConsole .jp-DebugConsole-widget .jp-mod-completer-active"});e.commands.addKeyBinding({command:h.invokeConsole,keys:["Tab"],selector:".jp-ConsolePanel.jp-DebugConsole .jp-DebugConsole-widget .jp-CodeConsole-promptCell .jp-mod-completer-enabled:not(.jp-mod-at-line-beginning)"});e.commands.addKeyBinding({command:h.executeConsole,keys:["Shift Enter"],selector:".jp-ConsolePanel.jp-DebugConsole .jp-DebugConsole-widget .jp-CodeConsole-promptCell"})}};const L=[S,j,w,C,x,T,E,D,I,M,k,A,P];const R=L},1904:(e,t,n)=>{"use strict";var i=n(97913);var s=n(17325);var o=n(5893);var r=n(79010);var a=n(3579);var l=n(53377);var d=n(36060);var c=n(50286);var h=n(77748);var u=n(28006);var p=n(10395);var m=n(40662);var g=n(23359);var f=n(85072);var v=n.n(f);var _=n(97825);var b=n.n(_);var y=n(77659);var w=n.n(y);var C=n(55056);var x=n.n(C);var S=n(10540);var j=n.n(S);var k=n(41113);var I=n.n(k);var T=n(1597);var E={};E.styleTagTransform=I();E.setAttributes=x();E.insert=w().bind(null,"head");E.domAPI=b();E.insertStyleElement=j();var M=v()(T.A,E);const D=T.A&&T.A.locals?T.A.locals:undefined},86185:(e,t,n)=>{"use strict";n.d(t,{s:()=>Be});var i=n(4073);const s=1540483477;const o=new TextEncoder;function r(e,t){const n=o.encode(e);let i=n.length;let r=t^i;let a=0;while(i>=4){let e=n[a]&255|(n[++a]&255)<<8|(n[++a]&255)<<16|(n[++a]&255)<<24;e=(e&65535)*s+(((e>>>16)*s&65535)<<16);e^=e>>>24;e=(e&65535)*s+(((e>>>16)*s&65535)<<16);r=(r&65535)*s+(((r>>>16)*s&65535)<<16)^e;i-=4;++a}switch(i){case 3:r^=(n[a+2]&255)<<16;case 2:r^=(n[a+1]&255)<<8;case 1:r^=n[a]&255;r=(r&65535)*s+(((r>>>16)*s&65535)<<16)}r^=r>>>13;r=(r&65535)*s+(((r>>>16)*s&65535)<<16);r^=r>>>15;return r>>>0}class a{constructor(){this._fileParams=new Map;this._hashMethods=new Map}getCodeId(e,t){const n=this._fileParams.get(t);if(!n){throw new Error(`Kernel (${t}) has no tmp file params.`)}const i=this._hashMethods.get(t);if(!i){throw new Error(`Kernel (${t}) has no hashing params.`)}const{prefix:s,suffix:o}=n;return`${s}${i(e)}${o}`}setHashParams(e){const{kernel:t,method:n,seed:i}=e;if(!t){throw new TypeError(`Kernel name is not defined.`)}switch(n){case"Murmur2":this._hashMethods.set(t,(e=>r(e,i).toString()));break;default:throw new Error(`Hash method (${n}) is not supported.`)}}setTmpFileParams(e){const{kernel:t,prefix:n,suffix:i}=e;if(!t){throw new TypeError(`Kernel name is not defined.`)}this._fileParams.set(t,{kernel:t,prefix:n,suffix:i})}getTmpFileParams(e){return this._fileParams.get(e)}}var l=n(38850);var d=n(88459);var c=n(27518);var h;(function(e){function t(e){const t=new u({...e,body:new p(e),buttons:[l.Dialog.cancelButton({label:e.cancelLabel}),l.Dialog.okButton({label:e.okLabel})]});return t.launch()}e.getCode=t})(h||(h={}));class u extends l.Dialog{handleEvent(e){if(e.type==="keydown"){const t=e;const{code:n,shiftKey:i}=t;if(i&&n==="Enter"){return this.resolve()}if(n==="Enter"){return}}super.handleEvent(e)}}class p extends c.Widget{constructor(e){super();const{contentFactory:t,rendermime:n,mimeType:i}=e;const s=new d.CodeCellModel;s.mimeType=i!==null&&i!==void 0?i:"";this._prompt=new d.CodeCell({contentFactory:t,rendermime:n,model:s,placeholder:false}).initializeState();this._prompt.inputArea.promptNode.remove();this.node.appendChild(this._prompt.node)}getValue(){return this._prompt.model.sharedModel.getSource()}onAfterAttach(e){super.onAfterAttach(e);this._prompt.activate()}}var m=n(44389);class g{constructor(e){this._services=e.editorServices}createNewEditor(e){const{content:t,mimeType:n,path:i}=e;const s=this._services.factoryService.newInlineEditor;const o=this._services.mimeTypeService;const r=new m.CodeEditor.Model({mimeType:n||o.getMimeTypeByFilePath(i)});r.sharedModel.source=t;const a=new m.CodeEditorWrapper({editorOptions:{config:{readOnly:true,lineNumbers:true}},model:r,factory:s});a.node.setAttribute("data-jp-debugger","true");a.disposed.connect((()=>{r.dispose()}));return a}}var f=n(34881);var v=n(23230);var _=n(2336);var b=n(40959);var y=n(71674);var w=n(22819);const C="jp-DebuggerEditor-highlight";const x=1e3;class S{constructor(e){var t,n,i,s;this._src=e.src;this._id=(i=(n=(t=e.debuggerService.session)===null||t===void 0?void 0:t.connection)===null||n===void 0?void 0:n.id)!==null&&i!==void 0?i:"";this._path=(s=e.path)!==null&&s!==void 0?s:"";this._debuggerService=e.debuggerService;this._editor=e.getEditor;this._editorMonitor=new b.ActivityMonitor({signal:this._src.changed,timeout:x});this._editorMonitor.activityStopped.connect((()=>{this._sendEditorBreakpoints()}),this);this._selectedBreakpoint=this._debuggerService.model.breakpoints.selectedBreakpoint;this._debuggerService.model.breakpoints.changed.connect((async()=>{const e=this.editor;if(!e||e.isDisposed){return}this._addBreakpointsToEditor()}));this._debuggerService.model.breakpoints.restored.connect((async()=>{const e=this.editor;if(!e||e.isDisposed){return}this._addBreakpointsToEditor()}));this._debuggerService.model.breakpoints.selectedChanged.connect(((e,t)=>{this._selectedBreakpoint=t;this._addBreakpointsToEditor()}));this._debuggerService.model.callstack.currentFrameChanged.connect(((e,t)=>{var n,i;const s=this.editor;if(s){S.clearHighlight(s);const e=(i=(n=t===null||t===void 0?void 0:t.source)===null||n===void 0?void 0:n.path)!==null&&i!==void 0?i:"";const o=this._path||this._debuggerService.getCodeId(this._src.getSource());if(e&&o&&e===o){if(typeof(t===null||t===void 0?void 0:t.line)==="number"){S.showCurrentLine(s,t.line)}}}}));this._breakpointEffect=y.StateEffect.define({map:(e,t)=>e.map((e=>({pos:t.mapPos(e.pos),selected:e.selected})))});this._breakpointState=y.StateField.define({create:()=>y.RangeSet.empty,update:(e,t)=>{let n=false;let i=[];for(let s of t.effects){if(s.is(this._breakpointEffect)){n=true;i=s.value.map((({pos:e,selected:t})=>{const n=t?j.selectedBreakpointMarker:j.breakpointMarker;return n.range(e)}))}}if(n){return y.RangeSet.of(i,true)}return e.map(t.changes)}});this._gutter=new y.Compartment;this._highlightDeco=w.Decoration.line({class:C});this._highlightState=y.StateField.define({create:()=>w.Decoration.none,update:(e,t)=>{e=e.map(t.changes);for(let n of t.effects){if(n.is(S._highlightEffect)){let t=n;if(t.value.pos.length){e=e.update({add:t.value.pos.map((e=>this._highlightDeco.range(e)))})}else{e=w.Decoration.none}}}return e},provide:e=>w.EditorView.decorations.from(e)});void e.editorReady().then((()=>{this._setupEditor()}))}get editor(){return this._editor()}dispose(){if(this.isDisposed){return}this._editorMonitor.dispose();this._clearEditor();this.isDisposed=true;_.Signal.clearData(this)}refreshBreakpoints(){this._addBreakpointsToEditor()}_setupEditor(){const e=this.editor;if(!e||e.isDisposed){return}e.setOption("lineNumbers",true);const t=[this._breakpointState,this._highlightState,y.Prec.highest((0,w.gutter)({class:"cm-breakpoint-gutter",renderEmptyElements:true,markers:e=>e.state.field(this._breakpointState),initialSpacer:()=>j.breakpointMarker,domEventHandlers:{mousedown:(e,t)=>{this._onGutterClick(e,t.from);return true}}}))];e.injectExtension(this._gutter.of(t));this._addBreakpointsToEditor()}_clearEditor(){const e=this.editor;if(!e||e.isDisposed){return}S.clearHighlight(e);this._clearGutter(e);e.setOption("lineNumbers",false);e.editor.dispatch({effects:this._gutter.reconfigure([])})}_sendEditorBreakpoints(){var e;if((e=this.editor)===null||e===void 0?void 0:e.isDisposed){return}const t=this._getBreakpointsFromEditor().map((e=>{var t,n;return j.createBreakpoint(((n=(t=this._debuggerService.session)===null||t===void 0?void 0:t.connection)===null||n===void 0?void 0:n.name)||"",e)}));void this._debuggerService.updateBreakpoints(this._src.getSource(),t,this._path)}_getEffectiveClickedLine(e,t){let n=e.state.doc.lineAt(t);let i=n.number;let s=undefined;let o=false;if(n.text.trim()===""){o=true;while(i>1){i--;const t=e.state.doc.line(i);if(t.text.trim()!==""){s=t;break}}}else{if(o===false){s=n}}return[s,o]}_onGutterClick(e,t){var n,i,s;if(this._id!==((i=(n=this._debuggerService.session)===null||n===void 0?void 0:n.connection)===null||i===void 0?void 0:i.id)){return}const[o,r]=this._getEffectiveClickedLine(e,t);let a=this._getBreakpoints();let l=e.state.field(this._breakpointState);let d=false;if(o){l.between(o===null||o===void 0?void 0:o.from,o===null||o===void 0?void 0:o.from,(()=>{d=true}));if(!d){this._debuggerService.model.breakpoints.selectedBreakpoint=null;const e=j.createBreakpoint((s=this._path)!==null&&s!==void 0?s:this._debuggerService.session.connection.name,o.number);a.push(e)}else{if(!r){a=a.filter((e=>e.line!==o.number));if(this._selectedBreakpoint){a=a.filter((e=>{var t;return e.line!==((t=this._selectedBreakpoint)===null||t===void 0?void 0:t.line)}))}}else{const e=a.find((e=>e.line===o.number));if(e){this._debuggerService.model.breakpoints.selectedBreakpoint=e}}}}a.sort(((e,t)=>e.line-t.line));void this._debuggerService.updateBreakpoints(this._src.getSource(),a,this._path)}_addBreakpointsToEditor(){var e,t,n,i,s;if(!this.editor||this._id!==((t=(e=this._debuggerService.session)===null||e===void 0?void 0:e.connection)===null||t===void 0?void 0:t.id)){return}const o=this.editor;const r=this._getBreakpoints();this._clearGutter(o);const a=(n=this._selectedBreakpoint)===null||n===void 0?void 0:n.line;const l=(s=(i=this._selectedBreakpoint)===null||i===void 0?void 0:i.source)===null||s===void 0?void 0:s.path;const d=r.map((e=>{var t;const n=o.state.doc.line(e.line).from;const i=e.line===a&&((t=e.source)===null||t===void 0?void 0:t.path)===l;return{pos:n,selected:i}}));o.editor.dispatch({effects:this._breakpointEffect.of(d)})}_getBreakpointsFromEditor(){if(!this.editor){return[]}const e=this.editor;const t=e.editor.state.field(this._breakpointState);let n=[];t.between(0,e.doc.length,(t=>{n.push(e.doc.lineAt(t).number)}));return n}_clearGutter(e){if(!e){return}const t=e.editor;t.dispatch({effects:this._breakpointEffect.of([])})}_getBreakpoints(){const e=this._src.getSource();return this._debuggerService.model.breakpoints.getBreakpoints(this._path||this._debuggerService.getCodeId(e))}}(function(e){e._highlightEffect=y.StateEffect.define({map:(e,t)=>({pos:e.pos.map((e=>t.mapPos(e)))})});function t(t,i,s="nearest"){n(t);const o=t;const r=o.doc.line(i).from;const a=[e._highlightEffect.of({pos:[r]})];if(s){const e=o.getOffsetAt({line:i-1,column:0});a.push(w.EditorView.scrollIntoView(e,{y:s}))}o.editor.dispatch({effects:a})}e.showCurrentLine=t;function n(t){if(!t||t.isDisposed){return}const n=t;n.editor.dispatch({effects:e._highlightEffect.of({pos:[]})})}e.clearHighlight=n})(S||(S={}));var j;(function(e){e.breakpointMarker=new class extends w.GutterMarker{toDOM(e){const t=document.createElement("span");t.className="cm-breakpoint-gutter";t.ariaLabel=e.state.phrase("Breakpoint");const n=i.breakpointIcon.element({tag:"span",className:"cm-breakpoint-icon"});t.appendChild(n);return t}};e.selectedBreakpointMarker=new class extends w.GutterMarker{toDOM(e){const t=document.createElement("span");t.className="cm-breakpoint-gutter";t.ariaLabel=e.state.phrase("Selected breakpoint");const n=i.selectedBreakpointIcon.element({tag:"span",className:"cm-selected-breakpoint-icon"});t.appendChild(n);return t}};function t(e,t){return{line:t,verified:true,source:{name:e}}}e.createBreakpoint=t})(j||(j={}));class k{constructor(e){this._isDisposed=false;this._debuggerService=e.debuggerService;this._container=e.container;this._trans=(e.translator||f.nullTranslator).load("jupyterlab");const t=document.createElement("div");t.className="jp-DebuggerPausedOverlay";const n=document.createElement("span");n.textContent=this._trans.__("Paused in Debugger");t.appendChild(n);const s=document.createElement("button");s.className="jp-DebuggerPausedButton";s.title=this._trans.__("Continue");i.runIcon.element({container:s,elementPosition:"center"});s.onclick=()=>{void this._debuggerService.continue()};const o=document.createElement("button");o.className="jp-DebuggerPausedButton";o.title=this._trans.__("Next");i.stepOverIcon.element({container:o,elementPosition:"center"});o.onclick=()=>{void this._debuggerService.next()};t.appendChild(s);t.appendChild(o);t.style.pointerEvents="auto";this._overlay=t}show(){if(this._isDisposed){return}const e=document.body.dataset.showPausedOverlay!=="false";if(!e||!this._overlay||this._overlay.isConnected){return}this._container.appendChild(this._overlay)}hide(){if(this._isDisposed||!this._overlay||!this._overlay.isConnected){return}this._container.style.pointerEvents="";this._overlay.remove()}dispose(){if(this._isDisposed){return}this._isDisposed=true;this.hide();this._overlay=null}get isDisposed(){return this._isDisposed}}class I{constructor(e){var t;this._debuggerService=e.debuggerService;this._consolePanel=e.widget;this._cellMap=new v.ObservableMap;this.translator=e.translator||f.nullTranslator;this._pausedOverlay=new k({debuggerService:this._debuggerService,container:this._consolePanel.node,translator:this.translator});const n=this._consolePanel.console;if(n.promptCell){this._addEditorHandler(n.promptCell)}n.promptCellCreated.connect(((e,t)=>{this._addEditorHandler(t)}));const i=()=>{for(const e of n.cells){this._addEditorHandler(e)}};i();this._consolePanel.console.cells.changed.connect(i);(t=this._debuggerService.session)===null||t===void 0?void 0:t.eventMessage.connect(((e,t)=>{var n,i,s;const o=this._debuggerService.session;const r=this._consolePanel.sessionContext.session;if(!o||!r){return}if(((i=(n=o.connection)===null||n===void 0?void 0:n.kernel)===null||i===void 0?void 0:i.id)!==((s=r.kernel)===null||s===void 0?void 0:s.id)){return}if(t.event==="stopped"){void this._pausedOverlay.show()}else if(t.event==="continued"||t.event==="terminated"){void this._pausedOverlay.hide()}}));if(this._debuggerService.hasStoppedThreads()){void this._pausedOverlay.show()}}dispose(){if(this.isDisposed){return}this.isDisposed=true;this._pausedOverlay.dispose();this._cellMap.values().forEach((e=>e.dispose()));this._cellMap.dispose();_.Signal.clearData(this)}_addEditorHandler(e){const t=e.model.id;if(e.model.type!=="code"||this._cellMap.has(t)){return}const n=e;const i=new S({debuggerService:this._debuggerService,editorReady:async()=>{await n.ready;return n.editor},getEditor:()=>n.editor,src:e.model.sharedModel});n.disposed.connect((()=>{this._cellMap.delete(t);i.dispose()}));this._cellMap.set(t,i)}}class T{constructor(e){var t,n;this._debuggerService=e.debuggerService;this._fileEditor=e.widget.content;this.translator=e.translator||f.nullTranslator;this._hasLineNumber=(t=this._fileEditor.editor.getOption("lineNumbers"))!==null&&t!==void 0?t:false;this._editorHandler=new S({debuggerService:this._debuggerService,editorReady:()=>Promise.resolve(this._fileEditor.editor),getEditor:()=>this._fileEditor.editor,src:this._fileEditor.model.sharedModel});this._pausedOverlay=new k({debuggerService:this._debuggerService,container:e.widget.node,translator:this.translator});(n=this._debuggerService.session)===null||n===void 0?void 0:n.eventMessage.connect(((t,n)=>{var i,s,o;const r=this._debuggerService.session;const a=e.widget.context.sessionContext.session;if(!r||!a){return}if(((s=(i=r.connection)===null||i===void 0?void 0:i.kernel)===null||s===void 0?void 0:s.id)!==((o=a.kernel)===null||o===void 0?void 0:o.id)){return}if(n.event==="stopped"){void this._pausedOverlay.show()}else if(n.event==="continued"||n.event==="terminated"){void this._pausedOverlay.hide()}}));if(this._debuggerService.hasStoppedThreads()){void this._pausedOverlay.show()}}dispose(){var e,t;if(this.isDisposed){return}this.isDisposed=true;this._pausedOverlay.dispose();(e=this._editorHandler)===null||e===void 0?void 0:e.dispose();(t=this._editorHandler)===null||t===void 0?void 0:t.editor.setOptions({lineNumbers:this._hasLineNumber});_.Signal.clearData(this)}}class E{constructor(e){var t;this._debuggerService=e.debuggerService;this._notebookPanel=e.widget;this._cellMap=new v.ObservableMap;this.translator=e.translator||f.nullTranslator;this._pausedOverlay=new k({debuggerService:this._debuggerService,container:this._notebookPanel.node,translator:this.translator});const n=this._notebookPanel.content;n.model.cells.changed.connect(this._onCellsChanged,this);(t=this._debuggerService.session)===null||t===void 0?void 0:t.eventMessage.connect(((e,t)=>{var n,i,s;const o=this._debuggerService.session;const r=this._notebookPanel.sessionContext.session;if(!o||!r){return}if(((i=(n=o.connection)===null||n===void 0?void 0:n.kernel)===null||i===void 0?void 0:i.id)!==((s=r.kernel)===null||s===void 0?void 0:s.id)){return}if(t.event==="stopped"){void this._pausedOverlay.show()}else if(t.event==="continued"||t.event==="terminated"){void this._pausedOverlay.hide()}}));if(this._debuggerService.hasStoppedThreads()===true){void this._pausedOverlay.show()}this._onCellsChanged()}dispose(){if(this.isDisposed){return}this.isDisposed=true;this._pausedOverlay.dispose();this._cellMap.values().forEach((e=>{var t;e.dispose();(t=e.editor)===null||t===void 0?void 0:t.setOptions({...this._notebookPanel.content.editorConfig.code})}));this._cellMap.dispose();_.Signal.clearData(this)}_onCellsChanged(e,t){var n;this._notebookPanel.content.widgets.forEach((e=>this._addEditorHandler(e)));if((t===null||t===void 0?void 0:t.type)==="move"){for(const e of t.newValues){(n=this._cellMap.get(e.id))===null||n===void 0?void 0:n.refreshBreakpoints()}}}_addEditorHandler(e){const t=e.model.id;if(e.model.type!=="code"||this._cellMap.has(t)){return}const n=e;const i=new S({debuggerService:this._debuggerService,editorReady:async()=>{await n.ready;return n.editor},getEditor:()=>n.editor,src:e.model.sharedModel});n.disposed.connect((()=>{this._cellMap.delete(t);i.dispose()}));this._cellMap.set(e.model.id,i)}}const M="debugger-icon";function D(e,t,n,s,o=f.nullTranslator){const r=o.load("jupyterlab");const a=new i.ToolbarButton({className:"jp-DebuggerBugButton",icon:i.bugIcon,tooltip:r.__("Enable Debugger"),pressedIcon:i.bugDotIcon,pressedTooltip:r.__("Disable Debugger"),disabledTooltip:r.__("Select a kernel that supports debugging to enable debugger"),enabled:n,pressed:s,onClick:t});if(!e.toolbar.insertBefore("kernelName",M,a)){e.toolbar.addItem(M,a)}return a}function A(e,t,n=true,i){if(e){e.enabled=n;e.pressed=t;if(i){e.onClick=i}}}class P{constructor(e){this._handlers={};this._contextKernelChangedHandlers={};this._kernelChangedHandlers={};this._statusChangedHandlers={};this._iopubMessageHandlers={};this._iconButtons={};this._type=e.type;this._shell=e.shell;this._service=e.service;this._translator=e.translator||f.nullTranslator}get activeWidget(){return this._activeWidget}async update(e,t){if(!t){delete this._kernelChangedHandlers[e.id];delete this._statusChangedHandlers[e.id];delete this._iopubMessageHandlers[e.id];return this.updateWidget(e,t)}const n=()=>{void this.updateWidget(e,t)};const i=this._kernelChangedHandlers[e.id];if(i){t.kernelChanged.disconnect(i)}this._kernelChangedHandlers[e.id]=n;t.kernelChanged.connect(n);const s=(n,i)=>{if(i.endsWith("restarting")){void this.updateWidget(e,t)}};const o=this._statusChangedHandlers[e.id];if(o){t.statusChanged.disconnect(o)}t.statusChanged.connect(s);this._statusChangedHandlers[e.id]=s;const r=(e,t)=>{if(this._service.isStarted&&!this._service.hasStoppedThreads()&&t.parent_header.msg_type==="execute_request"){void this._service.displayDefinedVariables()}};const a=this._iopubMessageHandlers[e.id];if(a){t.iopubMessage.disconnect(a)}t.iopubMessage.connect(r);this._iopubMessageHandlers[e.id]=r;this._activeWidget=e;return this.updateWidget(e,t)}async updateContext(e,t){const n=()=>{const{session:n}=t;void this.update(e,n)};const i=this._contextKernelChangedHandlers[e.id];if(i){t.kernelChanged.disconnect(i)}this._contextKernelChangedHandlers[e.id]=n;t.kernelChanged.connect(n);return this.update(e,t.session)}async updateWidget(e,t){var n,i,s,o;if(!this._service.model||!t){return}const r=()=>this._shell.currentWidget===e;const a=()=>{if(!this._handlers[e.id]){e.node.removeAttribute("data-jp-debugger");return}e.node.setAttribute("data-jp-debugger","true")};const l=()=>{if(this._handlers[e.id]){return}switch(this._type){case"notebook":this._handlers[e.id]=new E({debuggerService:this._service,widget:e,translator:this._translator||undefined});break;case"console":this._handlers[e.id]=new I({debuggerService:this._service,widget:e,translator:this._translator||undefined});break;case"file":this._handlers[e.id]=new T({debuggerService:this._service,widget:e,translator:this._translator||undefined});break;default:throw Error(`No handler for the type ${this._type}`)}a()};const d=()=>{var n,i,s,o;const r=this._handlers[e.id];if(!r){return}r.dispose();delete this._handlers[e.id];delete this._kernelChangedHandlers[e.id];delete this._statusChangedHandlers[e.id];delete this._iopubMessageHandlers[e.id];delete this._contextKernelChangedHandlers[e.id];if(((i=(n=this._service.session)===null||n===void 0?void 0:n.connection)===null||i===void 0?void 0:i.path)===(t===null||t===void 0?void 0:t.path)||!((o=(s=this._service.session)===null||s===void 0?void 0:s.connection)===null||o===void 0?void 0:o.kernel)){const e=this._service.model;e.clear()}a()};const c=(t=true)=>{const n=this._iconButtons[e.id];if(!n){this._iconButtons[e.id]=D(e,m,this._service.isStarted,t)}else{A(n,this._service.isStarted,t,m)}};const h=()=>{var e;return this._service.isStarted&&((e=this._previousConnection)===null||e===void 0?void 0:e.id)===(t===null||t===void 0?void 0:t.id)};const u=async()=>{this._service.session.connection=t;await this._service.stop()};const p=async()=>{var e,n;this._service.session.connection=t;this._previousConnection=t;await this._service.restoreState(true);await this._service.displayDefinedVariables();if((n=(e=this._service.session)===null||e===void 0?void 0:e.capabilities)===null||n===void 0?void 0:n.supportsModulesRequest){await this._service.displayModules()}};const m=async()=>{if(!r()){return}const t=this._iconButtons[e.id];if(h()){await u();d();A(t,false)}else{await p();l();A(t,true)}};c(false);e.disposed.connect((async()=>{if(h()){await u()}d();delete this._iconButtons[e.id];delete this._contextKernelChangedHandlers[e.id]}));const g=await this._service.isAvailable(t);if(!g){d();A(this._iconButtons[e.id],false,false);return}if(!this._service.session){this._service.session=new Be.Session({connection:t,config:this._service.config})}else{this._previousConnection=((n=this._service.session.connection)===null||n===void 0?void 0:n.kernel)?this._service.session.connection:null;this._service.session.connection=t}if(h()){await this._service.restoreState(true)}else{await this._service.restoreState(false)}if(this._service.isStarted&&!this._service.hasStoppedThreads()){await this._service.displayDefinedVariables();if((s=(i=this._service.session)===null||i===void 0?void 0:i.capabilities)===null||s===void 0?void 0:s.supportsModulesRequest){await this._service.displayModules()}}A(this._iconButtons[e.id],this._service.isStarted,true);if(!this._service.isStarted){d();this._service.session.connection=(o=this._previousConnection)!==null&&o!==void 0?o:t;await this._service.restoreState(false);return}l();this._previousConnection=t}}var L=n(82402);class R{constructor(e){var t;this._breakpoints=new Map;this._changed=new _.Signal(this);this._restored=new _.Signal(this);this._clicked=new _.Signal(this);this._selectedChanged=new _.Signal(this);this._displayRegistry=(t=e.displayRegistry)!==null&&t!==void 0?t:new L.V}get changed(){return this._changed}get restored(){return this._restored}get clicked(){return this._clicked}get selectedChanged(){return this._selectedChanged}get selectedBreakpoint(){return this._selectedBreakpoint}set selectedBreakpoint(e){this._selectedBreakpoint=e;this._selectedChanged.emit(e)}get breakpoints(){return this._breakpoints}setBreakpoints(e,t){this._breakpoints.set(e,t);this._changed.emit(t)}getBreakpoints(e){var t;return(t=this._breakpoints.get(e))!==null&&t!==void 0?t:[]}restoreBreakpoints(e){this._breakpoints=e;this._restored.emit()}getDisplayName(e){return this._displayRegistry.getDisplayName(e.source)}}class N{constructor(e){var t;this._state=[];this._currentFrame=null;this._framesChanged=new _.Signal(this);this._currentFrameChanged=new _.Signal(this);this._displayRegistry=(t=e.displayRegistry)!==null&&t!==void 0?t:new L.V}get frames(){return this._state}set frames(e){this._state=e;const t=this.frame!==null?B.getFrameId(this.frame):"";const n=e.find((e=>B.getFrameId(e)===t));if(!n){this.frame=e[0]}this._framesChanged.emit(e)}get frame(){return this._currentFrame}set frame(e){this._currentFrame=e;this._currentFrameChanged.emit(e)}get framesChanged(){return this._framesChanged}get currentFrameChanged(){return this._currentFrameChanged}getDisplayName(e){let t=this._displayRegistry.getDisplayName(e.source);if(e.line!==undefined){t+=`:${e.line}`}return t}}var B;(function(e){function t(e){var t;return`${(t=e===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.path}-${e===null||e===void 0?void 0:e.id}`}e.getFrameId=t})(B||(B={}));class O{constructor(e){var t;this._currentSourceOpened=new _.Signal(this);this._currentSourceChanged=new _.Signal(this);this.currentFrameChanged=e.currentFrameChanged;this._displayRegistry=(t=e.displayRegistry)!==null&&t!==void 0?t:new L.V}get currentSourceOpened(){return this._currentSourceOpened}get currentSourceChanged(){return this._currentSourceChanged}get currentSource(){return this._currentSource}set currentSource(e){this._currentSource=e;this._currentSourceChanged.emit(e)}open(){this._currentSourceOpened.emit(this._currentSource)}getDisplayName(e){let t=this._displayRegistry.getDisplayName(e.source);if(e.line!==undefined){t+=`:${e.line}`}return t}}var F=n(26568);const z=500;const W=(e,t)=>{if(e.namet.name){return 1}return 0};class H{constructor(){this._filteredKernelSources=null;this._filter="";this._isDisposed=false;this._kernelSources=null;this._changed=new _.Signal(this);this._filterChanged=new _.Signal(this);this._kernelSourceOpened=new _.Signal(this);this.refresh=this.refresh.bind(this);this._refreshDebouncer=new F.Debouncer(this.refresh,z)}get filter(){return this._filter}set filter(e){this._filter=e;this._filterChanged.emit(e);void this._refreshDebouncer.invoke()}get isDisposed(){return this._isDisposed}get kernelSources(){return this._kernelSources}set kernelSources(e){this._kernelSources=e;this.refresh()}get changed(){return this._changed}get filterChanged(){return this._filterChanged}get kernelSourceOpened(){return this._kernelSourceOpened}dispose(){if(this._isDisposed){return}this._isDisposed=true;this._refreshDebouncer.dispose();_.Signal.clearData(this)}open(e){this._kernelSourceOpened.emit(e)}getFilteredKernelSources(){const e=new RegExp(this._filter);return this._kernelSources.filter((t=>e.test(t.name)))}refresh(){if(this._kernelSources){this._filteredKernelSources=this._filter?this.getFilteredKernelSources():this._kernelSources;this._filteredKernelSources.sort(W)}else{this._kernelSources=new Array;this._filteredKernelSources=new Array}this._changed.emit(this._filteredKernelSources)}}class V{constructor(){this._selectedVariable=null;this._state=[];this._variableExpanded=new _.Signal(this);this._changed=new _.Signal(this)}get scopes(){return this._state}set scopes(e){this._state=e;this._changed.emit()}get changed(){return this._changed}get variableExpanded(){return this._variableExpanded}get selectedVariable(){return this._selectedVariable}set selectedVariable(e){this._selectedVariable=e}expandVariable(e){this._variableExpanded.emit(e)}}class U{constructor(e){var t;this._disposed=new _.Signal(this);this._isDisposed=false;this._hasRichVariableRendering=false;this._supportCopyToGlobals=false;this._stoppedThreads=new Set;this._title="-";this._titleChanged=new _.Signal(this);const n=(t=e.displayRegistry)!==null&&t!==void 0?t:new L.V;this.breakpoints=new R({displayRegistry:n});this.callstack=new N({displayRegistry:n});this.variables=new V;this.sources=new O({currentFrameChanged:this.callstack.currentFrameChanged,displayRegistry:n});this.kernelSources=new H}get disposed(){return this._disposed}get hasRichVariableRendering(){return this._hasRichVariableRendering}set hasRichVariableRendering(e){this._hasRichVariableRendering=e}get supportCopyToGlobals(){return this._supportCopyToGlobals}set supportCopyToGlobals(e){this._supportCopyToGlobals=e}get isDisposed(){return this._isDisposed}get stoppedThreads(){return this._stoppedThreads}set stoppedThreads(e){this._stoppedThreads=e}get title(){return this._title}set title(e){if(e===this._title){return}this._title=e!==null&&e!==void 0?e:"-";this._titleChanged.emit(e)}get titleChanged(){return this._titleChanged}dispose(){if(this._isDisposed){return}this._isDisposed=true;this.kernelSources.dispose();this._disposed.emit()}clear(){this._stoppedThreads.clear();const e=new Map;this.breakpoints.restoreBreakpoints(e);this.callstack.frames=[];this.variables.scopes=[];this.sources.currentSource=null;this.kernelSources.kernelSources=null;this.title="-"}}class q extends c.Panel{constructor(e){super();this._filter=new Set;this._grid=null;this._pending=null;this.commands=e.commands;this.model=e.model;this.themeManager=e.themeManager;this.translator=e.translator;this.model.changed.connect((()=>this.update()),this);this.addClass("jp-DebuggerVariables-body")}get filter(){return this._filter}set filter(e){this._filter=e;this.update()}get scope(){return this._scope}set scope(e){this._scope=e;if(e!=="Globals"){this.addClass("jp-debuggerVariables-local")}else{this.removeClass("jp-debuggerVariables-local")}this.update()}async initialize(){if(this._grid||this._pending){return}const{Grid:e}=await(this._pending=Promise.all([n.e(4470),n.e(4505)]).then(n.bind(n,5011)));const{commands:t,model:i,themeManager:s,translator:o}=this;this._grid=new e({commands:t,model:i,themeManager:s,translator:o});this._grid.addClass("jp-DebuggerVariables-grid");this._pending=null;this.addWidget(this._grid);this.update()}onBeforeShow(e){if(!this._grid&&!this._pending){void this.initialize()}super.onBeforeShow(e)}onUpdateRequest(e){var t;if(this._grid){const{dataModel:e}=this._grid;e.filter=this._filter;e.scope=this._scope;e.setData((t=this.model.scopes)!==null&&t!==void 0?t:[])}super.onUpdateRequest(e)}}var $=n(95513);var K=n(5592);const J="jp-VariableRendererPanel";const G="jp-VariableRendererPanel-renderer";class Y extends l.MainAreaWidget{constructor(e){const{dataLoader:t,rendermime:n,translator:i}=e;const s=new c.Panel;const o=new K.PromiseDelegate;super({content:s,reveal:Promise.all([t,o.promise])});this.content.addClass(J);this.trans=(i!==null&&i!==void 0?i:f.nullTranslator).load("jupyterlab");this.dataLoader=t;this.renderMime=n;this._dataHash=null;this.refresh().then((()=>{o.resolve()})).catch((e=>o.reject(e)))}async refresh(e=false){let t=await this.dataLoader();if(Object.keys(t.data).length===0){t={data:{"text/plain":this.trans.__("The variable is undefined in the active context.")},metadata:{}}}if(t.data){const n=r(JSON.stringify(t),17);if(e||this._dataHash!==n){if(this.content.layout){this.content.widgets.forEach((e=>{this.content.layout.removeWidget(e)}))}const e=this.renderMime.preferredMimeType(t.data,"any");if(e){const i=this.renderMime.createRenderer(e);i.addClass(G);const s=new $.MimeModel({...t,trusted:true});this._dataHash=n;await i.renderModel(s);this.content.addWidget(i)}else{this._dataHash=null;return Promise.reject("Unable to determine the preferred mime type.")}}}else{this._dataHash=null;return Promise.reject("Unable to get a view on the variable.")}}}class X{constructor(e){var t,n;this._eventMessage=new _.Signal(this);this._isDisposed=false;this._sessionChanged=new _.Signal(this);this._pauseOnExceptionChanged=new _.Signal(this);this._config=e.config;this._session=null;this._specsManager=(t=e.specsManager)!==null&&t!==void 0?t:null;this._model=new Be.Model({displayRegistry:e.displayRegistry});this._debuggerSources=(n=e.debuggerSources)!==null&&n!==void 0?n:null;this._trans=(e.translator||f.nullTranslator).load("jupyterlab")}get eventMessage(){return this._eventMessage}get config(){return this._config}get isDisposed(){return this._isDisposed}get isStarted(){var e,t;return(t=(e=this._session)===null||e===void 0?void 0:e.isStarted)!==null&&t!==void 0?t:false}get pauseOnExceptionChanged(){return this._pauseOnExceptionChanged}get model(){return this._model}get session(){return this._session}set session(e){var t;if(this._session===e){return}if(this._session){this._session.dispose()}this._session=e;(t=this._session)===null||t===void 0?void 0:t.eventMessage.connect(((e,t)=>{if(t.event==="stopped"){this._model.stoppedThreads.clear();this._model.stoppedThreads.add(t.body.threadId);void this._getAllFrames()}else if(t.event==="continued"){this._model.stoppedThreads.delete(t.body.threadId);this._clearModel();this._clearSignals()}this._eventMessage.emit(t)}));this._sessionChanged.emit(e)}get sessionChanged(){return this._sessionChanged}dispose(){if(this.isDisposed){return}this._isDisposed=true;_.Signal.clearData(this)}getCodeId(e){var t,n,i,s;try{return this._config.getCodeId(e,(s=(i=(n=(t=this.session)===null||t===void 0?void 0:t.connection)===null||n===void 0?void 0:n.kernel)===null||i===void 0?void 0:i.name)!==null&&s!==void 0?s:"")}catch(o){return""}}hasStoppedThreads(){var e,t;return(t=((e=this._model)===null||e===void 0?void 0:e.stoppedThreads.size)>0)!==null&&t!==void 0?t:false}async isAvailable(e){var t,n,i,s;if(!this._specsManager){return true}await this._specsManager.ready;const o=e===null||e===void 0?void 0:e.kernel;if(!o){return false}const r=o.name;if(!((t=this._specsManager.specs)===null||t===void 0?void 0:t.kernelspecs[r])){return true}return!!((s=(i=(n=this._specsManager.specs.kernelspecs[r])===null||n===void 0?void 0:n.metadata)===null||i===void 0?void 0:i["debugger"])!==null&&s!==void 0?s:false)}async clearBreakpoints(){var e;if(((e=this.session)===null||e===void 0?void 0:e.isStarted)!==true){return}this._model.breakpoints.breakpoints.forEach(((e,t,n)=>{void this._setBreakpoints([],t)}));let t=new Map;this._model.breakpoints.restoreBreakpoints(t)}async continue(){try{if(!this.session){throw new Error("No active debugger session")}await this.session.sendRequest("continue",{threadId:this._currentThread()});this._model.stoppedThreads.delete(this._currentThread());this._clearModel();this._clearSignals()}catch(e){console.error("Error:",e.message)}}async getSource(e){var t,n;if(!this.session){throw new Error("No active debugger session")}const i=await this.session.sendRequest("source",{source:e,sourceReference:(t=e.sourceReference)!==null&&t!==void 0?t:0});return{...i.body,path:(n=e.path)!==null&&n!==void 0?n:""}}async evaluate(e){var t;if(!this.session){throw new Error("No active debugger session")}const n=(t=this.model.callstack.frame)===null||t===void 0?void 0:t.id;const i=await this.session.sendRequest("evaluate",{context:"repl",expression:e,frameId:n});if(!i.success){return null}this._model.variables.scopes=[];await this._getAllFrames();return i.body}async next(){try{if(!this.session){throw new Error("No active debugger session")}await this.session.sendRequest("next",{threadId:this._currentThread()})}catch(e){console.error("Error:",e.message)}}async inspectRichVariable(e,t){if(!this.session){throw new Error("No active debugger session")}const n=await this.session.sendRequest("richInspectVariables",{variableName:e,frameId:t});if(n.success){return n.body}else{throw new Error(n.message)}}async inspectVariable(e){if(!this.session){throw new Error("No active debugger session")}const t=await this.session.sendRequest("variables",{variablesReference:e});if(t.success){return t.body.variables}else{throw new Error(t.message)}}async copyToGlobals(e){if(!this.session){throw new Error("No active debugger session")}if(!this.model.supportCopyToGlobals){throw new Error('The "copyToGlobals" request is not supported by the kernel')}const t=this.model.callstack.frames;this.session.sendRequest("copyToGlobals",{srcVariableName:e,dstVariableName:e,srcFrameId:t[0].id}).then((async()=>{const e=await this._getScopes(t[0]);const n=await Promise.all(e.map((e=>this._getVariables(e))));const i=this._convertScopes(e,n);this._model.variables.scopes=i})).catch((e=>{console.error(e)}))}async displayDefinedVariables(){if(!this.session){throw new Error("No active debugger session")}const e=await this.session.sendRequest("inspectVariables",{});const t=e.body.variables;const n=[{name:this._trans.__("Globals"),variables:t}];this._model.variables.scopes=n}async displayModules(){if(!this.session){throw new Error("No active debugger session")}const e=await this.session.sendRequest("modules",{});this._model.kernelSources.kernelSources=e.body.modules.map((e=>({name:e.name,path:e.path})))}async restart(){const{breakpoints:e}=this._model.breakpoints;await this.stop();await this.start();await this._restoreBreakpoints(e)}async restoreState(e){var t,n,i,s,o,r,a,l,d,c,h;if(!this.model||!this.session){return}const u=await this.session.restoreState();const{body:p}=u;const m=this._mapBreakpoints(p.breakpoints);const g=new Set(p.stoppedThreads);const f=this.getDebuggerState();this._model.hasRichVariableRendering=p.richRendering===true;this._model.supportCopyToGlobals=p.copyToGlobals===true;this._config.setHashParams({kernel:(s=(i=(n=(t=this.session)===null||t===void 0?void 0:t.connection)===null||n===void 0?void 0:n.kernel)===null||i===void 0?void 0:i.name)!==null&&s!==void 0?s:"",method:p.hashMethod,seed:p.hashSeed});this._config.setTmpFileParams({kernel:(l=(a=(r=(o=this.session)===null||o===void 0?void 0:o.connection)===null||r===void 0?void 0:r.kernel)===null||a===void 0?void 0:a.name)!==null&&l!==void 0?l:"",prefix:p.tmpFilePrefix,suffix:p.tmpFileSuffix});this._model.stoppedThreads=g;if(!this.isStarted&&(e||g.size!==0)){await this.start()}if(this.isStarted||e){this._model.title=this.isStarted?((c=(d=this.session)===null||d===void 0?void 0:d.connection)===null||c===void 0?void 0:c.name)||"-":"-"}const v=await this._migrateBreakpoints(f);for(const[_,b]of m){const e=(h=v.get(_))!==null&&h!==void 0?h:[];const t=b.filter((t=>!e.some((e=>e.line===t.line))));v.set(_,[...e,...t])}await this._restoreBreakpoints(v);this._model.breakpoints.restoreBreakpoints(v);if(g.size!==0){await this._getAllFrames()}else if(this.isStarted){this._model.callstack.frames=[];this._clearSignals()}if(this.session.currentExceptionFilters){await this.pauseOnExceptions(this.session.currentExceptionFilters)}}start(){if(!this.session){throw new Error("No active debugger session")}return this.session.start()}async pause(){try{if(!this.session){throw new Error("No active debugger session")}await this.session.sendRequest("pause",{threadId:this._currentThread()})}catch(e){console.error("Error:",e.message)}}async stepIn(){try{if(!this.session){throw new Error("No active debugger session")}await this.session.sendRequest("stepIn",{threadId:this._currentThread()})}catch(e){console.error("Error:",e.message)}}async stepOut(){try{if(!this.session){throw new Error("No active debugger session")}await this.session.sendRequest("stepOut",{threadId:this._currentThread()})}catch(e){console.error("Error:",e.message)}}async stop(){if(!this.session){throw new Error("No active debugger session")}await this.session.stop();if(this._model){this._model.clear()}}async updateBreakpoints(e,t,n){var i;if(!((i=this.session)===null||i===void 0?void 0:i.isStarted)){return}if(!n){n=(await this._dumpCell(e)).body.sourcePath}const s=await this.session.restoreState();const o=t.filter((({line:e})=>typeof e==="number")).map((({line:e})=>({line:e})));const r=this._mapBreakpoints(s.body.breakpoints);this._model.breakpoints.restoreBreakpoints(r);let a=new Set;const l=await this._setBreakpoints(o,n);const d=l.body.breakpoints.filter(((e,t,n)=>{const i=n.findIndex((t=>t.line===e.line))>-1;const s=!a.has(e.line);a.add(e.line);return i&&s}));this._model.breakpoints.setBreakpoints(n,d)}pauseOnExceptionsIsValid(){var e,t;if(this.isStarted){if(((t=(e=this.session)===null||e===void 0?void 0:e.exceptionBreakpointFilters)===null||t===void 0?void 0:t.length)!==0){return true}}return false}async pauseOnExceptionsFilter(e){var t;if(!((t=this.session)===null||t===void 0?void 0:t.isStarted)){return}let n=this.session.currentExceptionFilters;if(this.session.isPausingOnException(e)){const t=n.indexOf(e);n.splice(t,1)}else{n===null||n===void 0?void 0:n.push(e)}await this.pauseOnExceptions(n)}async pauseOnExceptions(e){var t,n;if(!((t=this.session)===null||t===void 0?void 0:t.isStarted)){return}const i=((n=this.session.exceptionBreakpointFilters)===null||n===void 0?void 0:n.map((e=>e.filter)))||[];let s={filters:[]};e.forEach((e=>{if(i.includes(e)){s.filters.push(e)}}));this.session.currentExceptionFilters=s.filters;await this.session.sendRequest("setExceptionBreakpoints",s);this._pauseOnExceptionChanged.emit()}getDebuggerState(){var e,t,n,i,s,o,r,a,l,d,c,h;const u=this._model.breakpoints.breakpoints;let p=[];const m=(i=(n=(t=(e=this.session)===null||e===void 0?void 0:e.connection)===null||t===void 0?void 0:t.kernel)===null||n===void 0?void 0:n.name)!==null&&i!==void 0?i:"";const g=this._config.getTmpFileParams(m);const f=(s=g===null||g===void 0?void 0:g.prefix)!==null&&s!==void 0?s:"";if(this._debuggerSources){for(const e of u.keys()){const t=this._debuggerSources.find({focus:false,kernel:(l=(a=(r=(o=this.session)===null||o===void 0?void 0:o.connection)===null||r===void 0?void 0:r.kernel)===null||a===void 0?void 0:a.name)!==null&&l!==void 0?l:"",path:(h=(c=(d=this._session)===null||d===void 0?void 0:d.connection)===null||c===void 0?void 0:c.path)!==null&&h!==void 0?h:"",source:e});const n=t.map((e=>e.src.getSource()));p=p.concat(n)}}return{cells:p,breakpoints:u,tmpPrefix:f}}async restoreDebuggerState(e){const t=await this._migrateBreakpoints(e);await this._restoreBreakpoints(t);const n=await this.session.sendRequest("configurationDone",{});await this.restoreState(false);return n.success}async _migrateBreakpoints(e){var t,n,i,s;const o=e.tmpPrefix;const r=(s=(i=(n=(t=this.session)===null||t===void 0?void 0:t.connection)===null||n===void 0?void 0:n.kernel)===null||i===void 0?void 0:i.name)!==null&&s!==void 0?s:"";const{prefix:a}=this._config.getTmpFileParams(r);const{breakpoints:l}=e;if(o===a){return l}const d=new Map;for(const c of l){const[e,t]=c;if(o&&e.startsWith(o)&&o!==a){const n=e.replace(o,a);d.set(n,t.map((e=>{var t;return{...e,source:{...e.source,path:((t=e.source)===null||t===void 0?void 0:t.path)?e.source.path.replace(o,a):undefined}}})))}else{d.set(e,t)}}for(const c of e.cells){await this._dumpCell(c)}return d}_clearModel(){this._model.callstack.frames=[];this._model.variables.scopes=[]}_clearSignals(){this._model.callstack.currentFrameChanged.disconnect(this._onCurrentFrameChanged,this);this._model.variables.variableExpanded.disconnect(this._onVariableExpanded,this)}_convertScopes(e,t){if(!t||!e){return[]}return e.map(((e,n)=>({name:e.name,variables:t[n].map((e=>({...e})))})))}_currentThread(){var e;return(e=this._model.stoppedThreads.values().next().value)!==null&&e!==void 0?e:1}async _dumpCell(e){if(!this.session){throw new Error("No active debugger session")}return this.session.sendRequest("dumpCell",{code:e})}async _getAllFrames(){this._model.callstack.currentFrameChanged.connect(this._onCurrentFrameChanged,this);this._model.variables.variableExpanded.connect(this._onVariableExpanded,this);const e=await this._getFrames(this._currentThread());this._model.callstack.frames=e}async _getFrames(e){if(!this.session){throw new Error("No active debugger session")}const t=await this.session.sendRequest("stackTrace",{threadId:e});const n=t.body.stackFrames;return n}async _getScopes(e){if(!this.session){throw new Error("No active debugger session")}if(!e){return[]}const t=await this.session.sendRequest("scopes",{frameId:e.id});return t.body.scopes}async _getVariables(e){if(!this.session){throw new Error("No active debugger session")}if(!e){return[]}const t=await this.session.sendRequest("variables",{variablesReference:e.variablesReference});return t.body.variables}_mapBreakpoints(e){if(!e.length){return new Map}return e.reduce(((e,t)=>{const{breakpoints:n,source:i}=t;e.set(i,n.map((e=>({...e,source:{path:i},verified:true}))));return e}),new Map)}async _onCurrentFrameChanged(e,t){if(!t){return}const n=await this._getScopes(t);const i=await Promise.all(n.map((e=>this._getVariables(e))));const s=this._convertScopes(n,i);this._model.variables.scopes=s}async _onVariableExpanded(e,t){if(!this.session){throw new Error("No active debugger session")}const n=await this.session.sendRequest("variables",{variablesReference:t.variablesReference});let i={...t,expanded:true};n.body.variables.forEach((e=>{i={[e.name]:e,...i}}));const s=this._model.variables.scopes.map((e=>{const n=e.variables.findIndex((e=>e.variablesReference===t.variablesReference));e.variables[n]=i;return{...e}}));this._model.variables.scopes=[...s];return n.body.variables}async _setBreakpoints(e,t){if(!this.session){throw new Error("No active debugger session")}return await this.session.sendRequest("setBreakpoints",{breakpoints:e,source:{path:t},sourceModified:false})}async _restoreBreakpoints(e){for(const[t,n]of e){await this._setBreakpoints(n.filter((({line:e})=>typeof e==="number")).map((({line:e})=>({line:e}))),t)}this._model.breakpoints.restoreBreakpoints(e)}}class Q{constructor(e){this._seq=0;this._ready=new K.PromiseDelegate;this._isDisposed=false;this._isStarted=false;this._exceptionPaths=[];this._exceptionBreakpointFilters=[];this._currentExceptionFilters={};this._disposed=new _.Signal(this);this._eventMessage=new _.Signal(this);this.connection=e.connection;this._config=e.config;this.translator=e.translator||f.nullTranslator}get isDisposed(){return this._isDisposed}get capabilities(){return this._capabilities}get disposed(){return this._disposed}get connection(){return this._connection}set connection(e){var t,n;if(this._connection){this._connection.iopubMessage.disconnect(this._handleEvent,this)}this._connection=e;if(!this._connection){this._isStarted=false;return}this._connection.iopubMessage.connect(this._handleEvent,this);this._ready=new K.PromiseDelegate;const i=(n=(t=this.connection)===null||t===void 0?void 0:t.kernel)===null||n===void 0?void 0:n.requestDebug({type:"request",seq:0,command:"debugInfo"});if(i){i.onReply=e=>{this._ready.resolve();i.dispose()}}}get isStarted(){return this._isStarted}get exceptionPaths(){return this._exceptionPaths}get exceptionBreakpointFilters(){return this._exceptionBreakpointFilters}get currentExceptionFilters(){var e,t,n;const i=(n=(t=(e=this.connection)===null||e===void 0?void 0:e.kernel)===null||t===void 0?void 0:t.name)!==null&&n!==void 0?n:"";if(!i){return[]}const s=this._config.getTmpFileParams(i);if(!s){return[]}let o=s.prefix;if(Object.keys(this._currentExceptionFilters).includes(o)){return this._currentExceptionFilters[o]}return[]}set currentExceptionFilters(e){var t,n,i;const s=(i=(n=(t=this.connection)===null||t===void 0?void 0:t.kernel)===null||n===void 0?void 0:n.name)!==null&&i!==void 0?i:"";if(!s){return}const o=this._config.getTmpFileParams(s);if(!o){return}let r=o.prefix;if(e===null){if(Object.keys(this._currentExceptionFilters).includes(r)){delete this._currentExceptionFilters[r]}}else{this._currentExceptionFilters[r]=e}}get eventMessage(){return this._eventMessage}dispose(){if(this._isDisposed){return}this._isDisposed=true;this._disposed.emit();_.Signal.clearData(this)}async start(){var e,t,n,i;const s=await this.sendRequest("initialize",{clientID:"jupyterlab",clientName:"JupyterLab",adapterID:(n=(t=(e=this.connection)===null||e===void 0?void 0:e.kernel)===null||t===void 0?void 0:t.name)!==null&&n!==void 0?n:"",pathFormat:"path",linesStartAt1:true,columnsStartAt1:true,supportsVariableType:true,supportsVariablePaging:true,supportsRunInTerminalRequest:true,locale:document.documentElement.lang});if(!s.success){throw new Error(`Could not start the debugger: ${s.message}`)}this._capabilities=s.body;this._isStarted=true;this._exceptionBreakpointFilters=(i=s.body)===null||i===void 0?void 0:i.exceptionBreakpointFilters;await this.sendRequest("attach",{})}async stop(){this._isStarted=false;await this.sendRequest("disconnect",{restart:false,terminateDebuggee:false})}async restoreState(){var e;const t=await this.sendRequest("debugInfo",{});this._isStarted=t.body.isStarted;this._exceptionPaths=(e=t.body)===null||e===void 0?void 0:e.exceptionPaths;return t}isPausingOnException(e){var t,n;if(e){return(n=(t=this.currentExceptionFilters)===null||t===void 0?void 0:t.includes(e))!==null&&n!==void 0?n:false}else{return this.currentExceptionFilters.length>0}}async sendRequest(e,t){await this._ready.promise;const n=await this._sendDebugMessage({type:"request",seq:this._seq++,command:e,arguments:t});return n.content}_handleEvent(e,t){const n=t.header.msg_type;if(n!=="debug_event"){return}const i=t.content;this._eventMessage.emit(i)}async _sendDebugMessage(e){var t;const n=(t=this.connection)===null||t===void 0?void 0:t.kernel;if(!n){return Promise.reject(new Error("A kernel is required to send debug messages."))}const i=new K.PromiseDelegate;const s=n.requestDebug(e);s.onReply=e=>{i.resolve(e)};await s.done;return i.promise}}var Z=n(44914);var ee=n.n(Z);class te extends i.ReactWidget{constructor(e,t=f.nullTranslator){super();this._model=e;this._translator=t;this.addClass("jp-DebuggerBreakpoints-body")}render(){return ee().createElement(ne,{model:this._model,translator:this._translator})}}const ne=({model:e,translator:t})=>{const n=t.load("jupyterlab");const[i,s]=(0,Z.useState)(Array.from(e.breakpoints.entries()));const[o,r]=(0,Z.useState)(null);(0,Z.useEffect)((()=>{const t=(t,n)=>{s(Array.from(e.breakpoints.entries()))};const n=t=>{s(Array.from(e.breakpoints.entries()))};const i=(t,n)=>{e.selectedBreakpoint=n};const o=t=>{r(e.selectedBreakpoint)};e.changed.connect(t);e.restored.connect(n);e.clicked.connect(i);e.selectedChanged.connect(o);return()=>{e.changed.disconnect(t);e.restored.disconnect(n);e.clicked.disconnect(i);e.selectedChanged.disconnect((()=>o))}}));return ee().createElement(ee().Fragment,null,i.map((t=>ee().createElement(ie,{key:t[0],breakpoints:t[1],model:e,selectedBreakpoint:o,trans:n}))))};const ie=({breakpoints:e,model:t,selectedBreakpoint:n,trans:i})=>ee().createElement(ee().Fragment,null,e.sort(((e,t)=>{var n,i;return((n=e.line)!==null&&n!==void 0?n:0)-((i=t.line)!==null&&i!==void 0?i:0)})).map(((e,s)=>{var o,r,a,l;return ee().createElement(se,{key:((r=(o=e.source)===null||o===void 0?void 0:o.path)!==null&&r!==void 0?r:"")+s,breakpoint:e,model:t,isSelected:(n===null||n===void 0?void 0:n.line)===e.line&&((a=n===null||n===void 0?void 0:n.source)===null||a===void 0?void 0:a.path)===((l=e.source)===null||l===void 0?void 0:l.path),trans:i})})));const se=({breakpoint:e,model:t,isSelected:n,trans:s})=>{var o;const r=t.getDisplayName(e);return ee().createElement("div",{className:"jp-DebuggerBreakpoint",onClick:()=>t.clicked.emit(e),title:(o=e.source)===null||o===void 0?void 0:o.path},ee().createElement("span",{className:"jp-DebuggerBreakpoint-container"},!n?ee().createElement(i.breakpointIcon.react,{"aria-label":s.__("Breakpoint")}):ee().createElement(i.selectedBreakpointIcon.react,{"aria-label":s.__("Selected breakpoint")})),ee().createElement("span",{className:"jp-DebuggerBreakpoint-source jp-left-truncated"},r),ee().createElement("span",{className:"jp-DebuggerBreakpoint-line"},e.line))};const oe="jp-debugger-pauseOnExceptions";const re="jp-PauseOnExceptions";const ae="jp-PauseOnExceptions-menu";class le extends i.ToolbarButton{constructor(e){super();this.onclick=()=>{this._menu.open(this.node.getBoundingClientRect().left,this.node.getBoundingClientRect().bottom)};this._menu=new de({service:e.service,commands:{registry:e.commands.registry,pauseOnExceptions:e.commands.pauseOnExceptions}});this.node.className=oe;this._props=e;this._props.className=re;this._props.service.eventMessage.connect(((e,t)=>{if(t.event==="initialized"||t.event==="terminated"){this.onChange()}}),this);this._props.enabled=this._props.service.pauseOnExceptionsIsValid();this._props.service.pauseOnExceptionChanged.connect(this.onChange,this)}onChange(){var e;const t=this._props.service.session;const n=t===null||t===void 0?void 0:t.exceptionBreakpointFilters;this._props.className=re;if(((e=this._props.service.session)===null||e===void 0?void 0:e.isStarted)&&n){this._props.pressed=t.isPausingOnException();this._props.enabled=true}else{this._props.enabled=false}this.update()}render(){return Z.createElement(i.ToolbarButtonComponent,{...this._props,onClick:this.onclick})}}class de extends i.MenuSvg{constructor(e){super({commands:e.commands.registry});this._service=e.service;this._command=e.commands.pauseOnExceptions;e.service.eventMessage.connect(((e,t)=>{if(t.event==="initialized"){this._build()}}),this);this._build();this.addClass(ae)}_build(){var e,t;this.clearItems();const n=(t=(e=this._service.session)===null||e===void 0?void 0:e.exceptionBreakpointFilters)!==null&&t!==void 0?t:[];n.map(((e,t)=>{this.addItem({command:this._command,args:{filter:e.filter,description:e.description}})}))}}class ce extends i.PanelWithToolbar{constructor(e){var t;super(e);this.clicked=new _.Signal(this);const{model:n,service:s,commands:o}=e;const r=((t=e.translator)!==null&&t!==void 0?t:f.nullTranslator).load("jupyterlab");this.title.label=r.__("Breakpoints");const a=new te(n);this.toolbar.node.setAttribute("aria-label",r.__("Breakpoints panel toolbar"));this.toolbar.addItem("pauseOnException",new le({service:s,commands:o,icon:i.exceptionsIcon,tooltip:r.__("Pause on exception filter")}));this.toolbar.addItem("closeAll",new i.ToolbarButton({icon:i.closeAllIcon,onClick:async()=>{if(n.breakpoints.size===0){return}const e=await(0,l.showDialog)({title:r.__("Remove All Breakpoints"),body:r.__("Are you sure you want to remove all breakpoints?"),buttons:[l.Dialog.okButton({label:r.__("Remove breakpoints")}),l.Dialog.cancelButton()],hasClose:true});if(e.button.accept){return s.clearBreakpoints()}},tooltip:r.__("Remove All Breakpoints")}));this.addWidget(a);this.addClass("jp-DebuggerBreakpoints")}}class he extends i.ReactWidget{constructor(e){super();this._model=e;this.addClass("jp-DebuggerCallstack-body")}render(){return ee().createElement(ue,{model:this._model})}}const ue=({model:e})=>{const[t,n]=(0,Z.useState)(e.frames);const[i,s]=(0,Z.useState)(e.frame);const o=t=>{s(t);e.frame=t};(0,Z.useEffect)((()=>{const t=()=>{s(e.frame);n(e.frames)};e.framesChanged.connect(t);return()=>{e.framesChanged.disconnect(t)}}),[e]);return ee().createElement("ul",null,t.map((t=>{var n,s,r,a;return ee().createElement("li",{key:t.id,onClick:()=>o(t),className:(i===null||i===void 0?void 0:i.id)===t.id?"selected jp-DebuggerCallstackFrame":"jp-DebuggerCallstackFrame"},ee().createElement("span",{className:"jp-DebuggerCallstackFrame-name"},t.name),ee().createElement("span",{className:"jp-DebuggerCallstackFrame-location",title:(n=t.source)===null||n===void 0?void 0:n.path},(r=(s=e.getDisplayName)===null||s===void 0?void 0:s.call(e,t))!==null&&r!==void 0?r:(a=t.source)===null||a===void 0?void 0:a.path))})))};class pe extends i.PanelWithToolbar{constructor(e){var t;super(e);const{commands:n,model:s}=e;const o=((t=e.translator)!==null&&t!==void 0?t:f.nullTranslator).load("jupyterlab");this.title.label=o.__("Callstack");const r=new he(s);this.toolbar.node.setAttribute("aria-label",o.__("Callstack panel toolbar"));this.toolbar.addItem("continue",new i.CommandToolbarButton({commands:n.registry,id:n.continue,label:""}));this.toolbar.addItem("terminate",new i.CommandToolbarButton({commands:n.registry,id:n.terminate,label:""}));this.toolbar.addItem("step-over",new i.CommandToolbarButton({commands:n.registry,id:n.next,label:""}));this.toolbar.addItem("step-in",new i.CommandToolbarButton({commands:n.registry,id:n.stepIn,label:""}));this.toolbar.addItem("step-out",new i.CommandToolbarButton({commands:n.registry,id:n.stepOut,label:""}));this.toolbar.addItem("evaluate",new i.CommandToolbarButton({commands:n.registry,id:n.evaluate,label:""}));this.addWidget(r);this.addClass("jp-DebuggerCallstack")}}class me extends c.Widget{constructor(e){super();this._model=e.model;this._debuggerService=e.service;this._mimeTypeService=e.editorServices.mimeTypeService;const t=new Be.ReadOnlyEditorFactory({editorServices:e.editorServices});this._editor=t.createNewEditor({content:"",mimeType:"",path:""});this._editor.hide();this._model.currentFrameChanged.connect((async(e,t)=>{if(!t){this._clearEditor();return}void this._showSource(t)}));const n=new c.PanelLayout;n.addWidget(this._editor);this.layout=n;this.addClass("jp-DebuggerSources-body")}dispose(){var e;if(this.isDisposed){return}(e=this._editorHandler)===null||e===void 0?void 0:e.dispose();_.Signal.clearData(this);super.dispose()}_clearEditor(){this._model.currentSource=null;this._editor.hide()}async _showSource(e){var t,n,i,s,o;const r=this._model.getDisplayName(e);const a=await this._debuggerService.getSource({sourceReference:0,path:(t=e.source)===null||t===void 0?void 0:t.path});if(!(a===null||a===void 0?void 0:a.content)){this._clearEditor();return}if(this._editorHandler){this._editorHandler.dispose()}const{content:l,mimeType:d}=a;const c=d||this._mimeTypeService.getMimeTypeByFilePath((i=(n=e.source)===null||n===void 0?void 0:n.path)!==null&&i!==void 0?i:"");this._editor.model.sharedModel.setSource(l);this._editor.model.mimeType=c;this._editorHandler=new S({debuggerService:this._debuggerService,editorReady:()=>Promise.resolve(this._editor.editor),getEditor:()=>this._editor.editor,path:(o=(s=e.source)===null||s===void 0?void 0:s.path)!==null&&o!==void 0?o:"",src:this._editor.model.sharedModel});this._model.currentSource={content:l,mimeType:c,path:r};requestAnimationFrame((()=>{S.showCurrentLine(this._editor.editor,e.line,"start")}));this._editor.show()}}const ge=({model:e,trans:t})=>ee().createElement(i.UseSignal,{signal:e.currentSourceChanged,initialSender:e},(e=>{var n,i;return ee().createElement("span",{onClick:t=>{if(t.ctrlKey){e===null||e===void 0?void 0:e.open()}},title:t.__("Ctrl + click to open in the Main Area"),className:"jp-DebuggerSources-header-path"},(i=(n=e===null||e===void 0?void 0:e.currentSource)===null||n===void 0?void 0:n.path)!==null&&i!==void 0?i:"")}));class fe extends i.PanelWithToolbar{constructor(e){var t;super();const{model:n,service:s,editorServices:o}=e;const r=((t=e.translator)!==null&&t!==void 0?t:f.nullTranslator).load("jupyterlab");this.title.label=r.__("Source");this.toolbar.addClass("jp-DebuggerSources-header");this.toolbar.node.setAttribute("aria-label",r.__("Sources preview panel toolbar"));const a=new me({service:s,model:n,editorServices:o});this.toolbar.addItem("open",new i.ToolbarButton({icon:i.viewBreakpointIcon,onClick:()=>n.open(),tooltip:r.__("Open in the Main Area")}));const l=i.ReactWidget.create(ee().createElement(ge,{model:n,trans:r}));this.toolbar.addItem("sourcePath",l);this.addClass("jp-DebuggerSources-header");this.addWidget(a);this.addClass("jp-DebuggerSources")}}var ve=n(54158);const _e=e=>{const t=t=>{const n=t.target.value;e.model.filter=n};return ee().createElement(ve.Search,{onChange:t,placeholder:e.trans.__("Filter the kernel sources"),value:e.model.filter})};const be=e=>ee().createElement(i.UseSignal,{signal:e.model.filterChanged,initialArgs:e.model.filter},(t=>ee().createElement(_e,{model:e.model,trans:e.trans})));const ye="jp-DebuggerKernelSource-filterBox";const we="jp-DebuggerKernelSource-filterBox-hidden";const Ce="jp-DebuggerKernelSource-source";class xe extends i.ReactWidget{constructor(e){var t;super();this._showFilter=false;this._model=e.model;this._debuggerService=e.service;this._trans=((t=e.translator)!==null&&t!==void 0?t:f.nullTranslator).load("jupyterlab");this.addClass("jp-DebuggerKernelSources-body")}render(){let e=ye;if(!this._showFilter){e+=" "+we}return ee().createElement(ee().Fragment,null,ee().createElement("div",{className:e,key:"filter"},ee().createElement(be,{model:this._model,trans:this._trans})),ee().createElement(i.UseSignal,{signal:this._model.changed},((e,t)=>{const n={};return(t!==null&&t!==void 0?t:[]).map((e=>{var t;const s=e.name;const o=e.path;const r=s+(n[s]=((t=n[s])!==null&&t!==void 0?t:0)+1).toString();return ee().createElement("div",{key:r,title:o,className:Ce,onClick:()=>{this._debuggerService.getSource({sourceReference:0,path:o}).then((e=>{this._model.open(e)})).catch((e=>{void(0,l.showErrorMessage)(this._trans.__("Fail to get source"),this._trans.__("Fail to get '%1' source:\n%2",o,e))}))}},ee().createElement(i.LabIcon.resolveReact,{icon:i.openKernelSourceIcon,iconClass:(0,i.classes)("jp-Icon"),tag:null}),s)}))})))}toggleFilterbox(){this._showFilter=!this._showFilter;this.update()}}class Se extends i.PanelWithToolbar{constructor(e){var t;super();const{model:n,service:s}=e;this._model=n;const o=((t=e.translator)!==null&&t!==void 0?t:f.nullTranslator).load("jupyterlab");this.title.label=o.__("Kernel Sources");this.toolbar.addClass("jp-DebuggerKernelSources-header");this.toolbar.node.setAttribute("aria-label",o.__("Kernel sources panel toolbar"));this._body=new xe({service:s,model:n,translator:e.translator});this.toolbar.addItem("open-filter",new i.ToolbarButton({icon:i.searchIcon,onClick:async()=>{this._body.toggleFilterbox()},tooltip:o.__("Toggle search filter")}));this.toolbar.addItem("refresh",new i.ToolbarButton({icon:i.refreshIcon,onClick:()=>{this._model.kernelSources=[];void s.displayModules().catch((e=>{void(0,l.showErrorMessage)(o.__("Fail to get kernel sources"),o.__("Fail to get kernel sources:\n%2",e))}))},tooltip:o.__("Refresh kernel sources")}));this.addClass("jp-DebuggerKernelSources-header");this.addWidget(this._body);this.addClass("jp-DebuggerKenelSources")}set filter(e){this._model.filter=e}}const je=({model:e,tree:t,grid:n,trans:s})=>{const[o,r]=(0,Z.useState)("-");const a=e.scopes;const l=e=>{const i=e.target.value;r(i);t.scope=i;n.scope=i};return ee().createElement(i.HTMLSelect,{onChange:l,value:o,"aria-label":s.__("Scope")},a.map((e=>ee().createElement("option",{key:e.name,value:e.name},s.__(e.name)))))};class ke extends i.ReactWidget{constructor(e){super();const{translator:t,model:n,tree:i,grid:s}=e;this._model=n;this._tree=i;this._grid=s;this._trans=(t||f.nullTranslator).load("jupyterlab")}render(){return ee().createElement(i.UseSignal,{signal:this._model.changed,initialSender:this._model},(()=>ee().createElement(je,{model:this._model,trans:this._trans,tree:this._tree,grid:this._grid})))}}var Ie=n(34236);class Te extends i.ReactWidget{constructor(e){super();this._scope="";this._scopes=[];this._filter=new Set;this._commands=e.commands;this._service=e.service;this._translator=e.translator;const t=this.model=e.model;t.changed.connect(this._updateScopes,this);this.addClass("jp-DebuggerVariables-body")}render(){var e;const t=(e=this._scopes.find((e=>e.name===this._scope)))!==null&&e!==void 0?e:this._scopes[0];const n=e=>{this.model.selectedVariable=e};if((t===null||t===void 0?void 0:t.name)!=="Globals"){this.addClass("jp-debuggerVariables-local")}else{this.removeClass("jp-debuggerVariables-local")}return t?ee().createElement(ee().Fragment,null,ee().createElement(ve.TreeView,{className:"jp-TreeView"},ee().createElement(Ee,{key:t.name,commands:this._commands,service:this._service,data:t.variables,filter:this._filter,translator:this._translator,handleSelectVariable:n}))):ee().createElement("div",null)}set filter(e){this._filter=e;this.update()}set scope(e){this._scope=e;this.update()}_updateScopes(e){if(Ie.ArrayExt.shallowEqual(this._scopes,e.scopes)){return}this._scopes=e.scopes;this.update()}}const Ee=e=>{const{commands:t,data:n,service:i,filter:s,translator:o,handleSelectVariable:r}=e;const[a,l]=(0,Z.useState)(n);(0,Z.useEffect)((()=>{l(n)}),[n]);return ee().createElement(ee().Fragment,null,a.filter((e=>!(s||new Set).has(e.evaluateName||""))).map((e=>{const n=`${e.name}-${e.evaluateName}-${e.type}-${e.value}-${e.variablesReference}`;return ee().createElement(De,{key:n,commands:t,data:e,service:i,filter:s,translator:o,onSelect:r})})))};function Me(e){if(e.type==="float"&&(e.value=="inf"||e.value=="-inf")){return e.value}const t=Pe(e);if(e.type==="float"&&isNaN(t)){return"NaN"}return t}const De=e=>{var t,n;const{commands:s,data:o,service:r,filter:a,translator:l,onSelect:d}=e;const[c]=(0,Z.useState)(o);const[h,u]=(0,Z.useState)(false);const[p,m]=(0,Z.useState)(false);const[g,v]=(0,Z.useState)(null);const _=(0,Z.useMemo)((()=>(l!==null&&l!==void 0?l:f.nullTranslator).load("jupyterlab")),[l]);const b=d!==null&&d!==void 0?d:()=>void 0;const y=(0,Z.useMemo)((()=>c.variablesReference!==0||c.type==="function"),[c.variablesReference,c.type]);const w=(0,Z.useMemo)((()=>Me(c)),[c]);const C=(0,Z.useMemo)((()=>!["special variables","protected variables","function variables","class variables"].includes(c.name)),[c.name]);const x=(0,Z.useMemo)((()=>{var e;return!r.model.hasRichVariableRendering||!s.isEnabled(Be.CommandIDs.renderMimeVariable,{name:c.name,frameID:(e=r.model.callstack.frame)===null||e===void 0?void 0:e.id})}),[r.model.hasRichVariableRendering,c.name,(t=r.model.callstack.frame)===null||t===void 0?void 0:t.id]);const S=(0,Z.useCallback)((async()=>{if(y&&!g){v(await r.inspectVariable(c.variablesReference))}}),[y,r,c.variablesReference,g]);const j=(0,Z.useCallback)((async e=>{const t=(0,i.getTreeItemElement)(e.target);if(e.currentTarget!==t){return}if(!y){return}m(!p)}),[y,p]);const k=(0,Z.useCallback)((e=>{if(e.currentTarget===e.detail&&e.detail.selected){b(c)}}),[c]);const I=(0,Z.useCallback)((()=>{var e;s.execute(Be.CommandIDs.renderMimeVariable,{name:c.name,frameID:(e=r.model.callstack.frame)===null||e===void 0?void 0:e.id}).catch((e=>{console.error(`Failed to render variable ${c===null||c===void 0?void 0:c.name}`,e)}))}),[s,c.name,(n=r.model.callstack.frame)===null||n===void 0?void 0:n.id]);const T=(0,Z.useCallback)((e=>{const t=(0,i.getTreeItemElement)(e.target);if(e.currentTarget!==t){return}b(c)}),[c]);return ee().createElement(ve.TreeItem,{className:"jp-TreeItem nested",expanded:p,onSelect:k,onExpand:S,onClick:e=>j(e),onContextMenu:T,onKeyDown:e=>{if(e.key=="Enter"){if(C&&h){b(c);I()}}},onFocus:e=>{u(!e.defaultPrevented);e.preventDefault()},onBlur:e=>{u(false)},onMouseOver:e=>{u(!e.defaultPrevented);e.preventDefault()},onMouseLeave:e=>{u(false)}},ee().createElement("span",{className:"jp-DebuggerVariables-name"},c.name),w&&ee().createElement("span",{className:"jp-DebuggerVariables-detail"},w),C&&h&&ee().createElement(ve.Button,{className:"jp-DebuggerVariables-renderVariable",appearance:"stealth",slot:"end",disabled:x,onClick:e=>{e.stopPropagation();I()},title:_.__("Render variable: %1",c===null||c===void 0?void 0:c.name)},ee().createElement(i.searchIcon.react,{tag:null})),g?ee().createElement(Ee,{key:c.name,commands:s,data:g,service:r,filter:a,translator:l,handleSelectVariable:d}):y&&ee().createElement(ve.TreeItem,null))};class Ae extends i.PanelWithToolbar{constructor(e){super(e);const{model:t,service:n,commands:s,themeManager:o}=e;const r=e.translator||f.nullTranslator;const a=r.load("jupyterlab");this.title.label=a.__("Variables");this.toolbar.addClass("jp-DebuggerVariables-toolbar");this.toolbar.node.setAttribute("aria-label",a.__("Variables toolbar"));this._tree=new Te({model:t,service:n,commands:s,translator:r});this._table=new q({model:t,commands:s,themeManager:o,translator:r});this._table.hide();this.toolbar.addItem("scope-switcher",new ke({translator:r,model:t,tree:this._tree,grid:this._table}));const l=()=>{if(this._table.isHidden){this._tree.hide();this._table.show();this.node.setAttribute("data-jp-table","true");h("table")}else{this._tree.show();this._table.hide();this.node.removeAttribute("data-jp-table");h("tree")}this.update()};const d=new i.ToolbarButton({icon:i.treeViewIcon,className:"jp-TreeView-Button",onClick:l,tooltip:a.__("Tree View")});const c=new i.ToolbarButton({icon:i.tableRowsIcon,className:"jp-TableView-Button",onClick:l,tooltip:a.__("Table View")});const h=e=>{c.pressed=e!=="tree";d.pressed=!c.pressed};h(this._table.isHidden?"tree":"table");this.toolbar.addItem("view-VariableTreeView",d);this.toolbar.addItem("view-VariableTableView",c);this.addWidget(this._tree);this.addWidget(this._table);this.addClass("jp-DebuggerVariables")}set filter(e){this._tree.filter=e;this._table.filter=e}onResize(e){super.onResize(e);this._resizeBody(e)}_resizeBody(e){const t=e.height-this.toolbar.node.offsetHeight;this._tree.node.style.height=`${t}px`}}const Pe=e=>{var t,n;const{type:i,value:s}=e;switch(i){case"int":return parseInt(s,10);case"float":return parseFloat(s);case"bool":return s;case"str":if((n=(t=e.presentationHint)===null||t===void 0?void 0:t.attributes)===null||n===void 0?void 0:n.includes("rawString")){return s.slice(1,s.length-1)}else{return s}default:return i!==null&&i!==void 0?i:s}};class Le extends i.SidePanel{constructor(e){const t=e.translator||f.nullTranslator;super({translator:t});this.id="jp-debugger-sidebar";this.title.icon=i.bugIcon;this.addClass("jp-DebuggerSidebar");const{callstackCommands:n,breakpointsCommands:s,editorServices:o,service:r,themeManager:a}=e;const l=r.model;this.variables=new Ae({model:l.variables,commands:n.registry,service:r,themeManager:a,translator:t});this.callstack=new pe({commands:n,model:l.callstack,translator:t});this.breakpoints=new ce({service:r,commands:s,model:l.breakpoints,translator:t});this.sources=new fe({model:l.sources,service:r,editorServices:o,translator:t});this.kernelSources=new Se({model:l.kernelSources,service:r,translator:t});const d=new Le.Header;this.header.addWidget(d);l.titleChanged.connect(((e,t)=>{d.title.label=t}));this.content.addClass("jp-DebuggerSidebar-body");this.addWidget(this.variables);this.addWidget(this.callstack);this.addWidget(this.breakpoints);this.addWidget(this.sources);this.addWidget(this.kernelSources)}}(function(e){class t extends c.Widget{constructor(){super({node:Re.createHeader()});this.title.changed.connect((e=>{this.node.textContent=this.title.label}))}}e.Header=t})(Le||(Le={}));var Re;(function(e){function t(){const e=document.createElement("h2");e.textContent="-";e.classList.add("jp-text-truncated");return e}e.createHeader=t})(Re||(Re={}));class Ne{constructor(e){var t,n,i;this._config=e.config;this._shell=e.shell;this._notebookTracker=(t=e.notebookTracker)!==null&&t!==void 0?t:null;this._consoleTracker=(n=e.consoleTracker)!==null&&n!==void 0?n:null;this._editorTracker=(i=e.editorTracker)!==null&&i!==void 0?i:null;this._readOnlyEditorTracker=new l.WidgetTracker({namespace:"@jupyterlab/debugger"})}find(e){return[...this._findInConsoles(e),...this._findInEditors(e),...this._findInNotebooks(e),...this._findInReadOnlyEditors(e)]}open(e){const{editorWrapper:t,label:n,caption:s}=e;const o=new l.MainAreaWidget({content:t});o.id=l.DOMUtils.createDomID();o.title.label=n;o.title.closable=true;o.title.caption=s;o.title.icon=i.textEditorIcon;this._shell.add(o,"main",{type:"Debugger Sources"});void this._readOnlyEditorTracker.add(o)}_findInNotebooks(e){if(!this._notebookTracker){return[]}const{focus:t,kernel:n,path:i,source:s}=e;const o=[];this._notebookTracker.forEach((e=>{const r=e.sessionContext;if(i!==r.path){return}const a=e.content;if(t){a.mode="command"}const l=e.content.widgets;l.forEach(((i,r)=>{const l=i.model.sharedModel.getSource();const d=this._getCodeId(l,n);if(!d){return}if(s!==d){return}if(t){a.activeCellIndex=r;if(a.activeCell){a.scrollToItem(a.activeCellIndex,"smart").catch((e=>{}))}this._shell.activateById(e.id)}o.push(Object.freeze({get:()=>i.editor,reveal:()=>a.scrollToItem(r,"smart"),src:i.model.sharedModel}))}))}));return o}_findInConsoles(e){if(!this._consoleTracker){return[]}const{focus:t,kernel:n,path:i,source:s}=e;const o=[];this._consoleTracker.forEach((e=>{const r=e.sessionContext;if(i!==r.path){return}const a=e.console.cells;for(const i of a){const r=i.model.sharedModel.getSource();const a=this._getCodeId(r,n);if(!a){break}if(s!==a){break}o.push(Object.freeze({get:()=>i.editor,reveal:()=>Promise.resolve(this._shell.activateById(e.id)),src:i.model.sharedModel}));if(t){this._shell.activateById(e.id)}}}));return o}_findInEditors(e){if(!this._editorTracker){return[]}const{focus:t,kernel:n,path:i,source:s}=e;const o=[];this._editorTracker.forEach((e=>{const r=e.content;if(i!==r.context.path){return}const a=r.editor;if(!a){return}const l=a.model.sharedModel.getSource();const d=this._getCodeId(l,n);if(!d){return}if(s!==d){return}o.push(Object.freeze({get:()=>a,reveal:()=>Promise.resolve(this._shell.activateById(e.id)),src:r.model.sharedModel}));if(t){this._shell.activateById(e.id)}}));return o}_findInReadOnlyEditors(e){const{focus:t,kernel:n,source:i}=e;const s=[];this._readOnlyEditorTracker.forEach((e=>{var o;const r=(o=e.content)===null||o===void 0?void 0:o.editor;if(!r){return}const a=r.model.sharedModel.getSource();const l=this._getCodeId(a,n);if(!l){return}if(e.title.caption!==i&&i!==l){return}s.push(Object.freeze({get:()=>r,reveal:()=>Promise.resolve(this._shell.activateById(e.id)),src:r.model.sharedModel}));if(t){this._shell.activateById(e.id)}}));return s}_getCodeId(e,t){try{return this._config.getCodeId(e,t)}catch(n){return""}}}var Be;(function(e){class t extends a{}e.Config=t;class n extends S{}e.EditorHandler=n;class s extends P{}e.Handler=s;class o extends U{}e.Model=o;class r extends g{}e.ReadOnlyEditorFactory=r;class l extends X{}e.Service=l;class d extends Q{}e.Session=d;class c extends Le{}e.Sidebar=c;class u extends Ne{}e.Sources=u;class p extends q{}e.VariablesGrid=p;class m extends Y{}e.VariableRenderer=m;let f;(function(e){e.debugContinue="debugger:continue";e.terminate="debugger:terminate";e.next="debugger:next";e.showPanel="debugger:show-panel";e.stepIn="debugger:stepIn";e.stepOut="debugger:stepOut";e.inspectVariable="debugger:inspect-variable";e.renderMimeVariable="debugger:render-mime-variable";e.evaluate="debugger:evaluate";e.restartDebug="debugger:restart-debug";e.pauseOnExceptions="debugger:pause-on-exceptions";e.copyToClipboard="debugger:copy-to-clipboard";e.copyToGlobals="debugger:copy-to-globals";e.invokeConsole="debugger:invoke-console-completer";e.selectConsole="debugger:select-console-completion";e.executeConsole="debugger:run-in-console";e.openSource="debugger:open-source"})(f=e.CommandIDs||(e.CommandIDs={}));let v;(function(e){e.closeAllIcon=i.closeAllIcon;e.evaluateIcon=i.codeIcon;e.continueIcon=i.runIcon;e.pauseIcon=i.pauseIcon;e.stepIntoIcon=i.stepIntoIcon;e.stepOutIcon=i.stepOutIcon;e.stepOverIcon=i.stepOverIcon;e.terminateIcon=i.stopIcon;e.variableIcon=i.variableIcon;e.viewBreakpointIcon=i.viewBreakpointIcon;e.pauseOnExceptionsIcon=i.pauseIcon})(v=e.Icons||(e.Icons={}));let _;(function(e){e.getCode=h.getCode})(_=e.Dialogs||(e.Dialogs={}))})(Be||(Be={}))},82402:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});class i{constructor(){this._providers=[]}register(e){this._providers.push(e)}getDisplayName(e){var t;const n=(t=e.path)!==null&&t!==void 0?t:"";let i=n;for(const s of this._providers){if(!s.canHandle(e)){continue}const t=s.getDisplayName(e);if(t&&t!==n){i=t}}return i}}},85995:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Debugger:()=>i.s,DebuggerDisplayRegistry:()=>s.V,IDebugger:()=>r,IDebuggerConfig:()=>a,IDebuggerDisplayRegistry:()=>u,IDebuggerHandler:()=>c,IDebuggerSidebar:()=>d,IDebuggerSourceViewer:()=>h,IDebuggerSources:()=>l});var i=n(86185);var s=n(82402);var o=n(5592);const r=new o.Token("@jupyterlab/debugger:IDebugger","A debugger user interface.");const a=new o.Token("@jupyterlab/debugger:IDebuggerConfig","A service to handle the debugger configuration.");const l=new o.Token("@jupyterlab/debugger:IDebuggerSources","A service to display sources in debug mode.");const d=new o.Token("@jupyterlab/debugger:IDebuggerSidebar","A service for the debugger sidebar.");const c=new o.Token("@jupyterlab/debugger:IDebuggerHandler","A service for handling notebook debugger.");const h=new o.Token("@jupyterlab/debugger:IDebuggerSourceViewer","A debugger source viewer.");const u=new o.Token("@jupyterlab/debugger:IDebuggerDisplayRegistry","A service for registering display labels for cells/files in the debugger.")},5011:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Grid:()=>u,GridModel:()=>p});var i=n(44505);var s=n.n(i);var o=n(2336);var r=n.n(o);var a=n(27518);var l=n.n(a);var d=n(34881);var c=n.n(d);var h=n(86185);class u extends a.Panel{constructor(e){super();const{commands:t,model:n,themeManager:s}=e;this.model=n;const o=new p(e.translator);const r=new i.DataGrid;const a=new m.MouseHandler;a.doubleClicked.connect(((e,n)=>t.execute(h.s.CommandIDs.inspectVariable,{variableReference:o.getVariableReference(n.row),name:o.getVariableName(n.row)})));a.selected.connect(((e,t)=>{const{row:n}=t;this.model.selectedVariable={name:o.getVariableName(n),value:o.data("body",n,1),type:o.data("body",n,2),variablesReference:o.getVariableReference(n)}}));r.dataModel=o;r.keyHandler=new i.BasicKeyHandler;r.mouseHandler=a;r.selectionModel=new i.BasicSelectionModel({dataModel:o});r.stretchLastColumn=true;r.node.style.height="100%";this._grid=r;if(s){s.themeChanged.connect(this._updateStyles,this)}this.addWidget(r)}set filter(e){this._grid.dataModel.filter=e;this.update()}set scope(e){this._grid.dataModel.scope=e;this.update()}get dataModel(){return this._grid.dataModel}onAfterAttach(e){super.onAfterAttach(e);this._updateStyles()}_updateStyles(){const{style:e,textRenderer:t}=m.computeStyle();this._grid.cellRenderers.update({},t);this._grid.style=e}}class p extends i.DataModel{constructor(e){super();this._filter=new Set;this._scope="";this._data={name:[],type:[],value:[],variablesReference:[]};this._trans=(e||d.nullTranslator).load("jupyterlab")}get filter(){return this._filter}set filter(e){this._filter=e}get scope(){return this._scope}set scope(e){this._scope=e}rowCount(e){return e==="body"?this._data.name.length:1}columnCount(e){return e==="body"?2:1}data(e,t,n){if(e==="row-header"){return this._data.name[t]}if(e==="column-header"){return n===1?this._trans.__("Value"):this._trans.__("Type")}if(e==="corner-header"){return this._trans.__("Name")}return n===1?this._data.value[t]:this._data.type[t]}getVariableReference(e){return this._data.variablesReference[e]}getVariableName(e){return this._data.name[e]}setData(e){var t,n;this._clearData();this.emitChanged({type:"model-reset"});const i=(t=e.find((e=>e.name===this._scope)))!==null&&t!==void 0?t:e[0];const s=(n=i===null||i===void 0?void 0:i.variables)!==null&&n!==void 0?n:[];const o=s.filter((e=>e.name&&!this._filter.has(e.name)));o.forEach(((e,t)=>{var n;this._data.name[t]=e.name;this._data.type[t]=(n=e.type)!==null&&n!==void 0?n:"";this._data.value[t]=e.value;this._data.variablesReference[t]=e.variablesReference}));this.emitChanged({type:"rows-inserted",region:"body",index:1,span:o.length})}_clearData(){this._data={name:[],type:[],value:[],variablesReference:[]}}}var m;(function(e){function t(){const e=document.createElement("div");e.className="jp-DebuggerVariables-colorPalette";e.innerHTML=`\n \n \n \n \n \n \n \n `;return e}function n(){const e=t();document.body.appendChild(e);let n;n=e.querySelector(".jp-mod-void");const s=getComputedStyle(n).color;n=e.querySelector(".jp-mod-background");const o=getComputedStyle(n).color;n=e.querySelector(".jp-mod-header-background");const r=getComputedStyle(n).color;n=e.querySelector(".jp-mod-grid-line");const a=getComputedStyle(n).color;n=e.querySelector(".jp-mod-header-grid-line");const l=getComputedStyle(n).color;n=e.querySelector(".jp-mod-selection");const d=getComputedStyle(n).color;n=e.querySelector(".jp-mod-text");const c=getComputedStyle(n).color;document.body.removeChild(e);return{style:{voidColor:s,backgroundColor:o,headerBackgroundColor:r,gridLineColor:a,headerGridLineColor:l,rowBackgroundColor:e=>e%2===0?s:o,selectionFillColor:d},textRenderer:new i.TextRenderer({font:"12px sans-serif",textColor:c,backgroundColor:"",verticalAlignment:"center",horizontalAlignment:"left"})}}e.computeStyle=n;class s extends i.BasicMouseHandler{constructor(){super(...arguments);this._doubleClicked=new o.Signal(this);this._selected=new o.Signal(this)}get doubleClicked(){return this._doubleClicked}get selected(){return this._selected}dispose(){if(this.isDisposed){return}o.Signal.disconnectSender(this);super.dispose()}onMouseDoubleClick(e,t){const n=e.hitTest(t.clientX,t.clientY);this._doubleClicked.emit(n)}onMouseDown(e,t){let{clientX:n,clientY:i}=t;let s=e.hitTest(n,i);this._selected.emit(s);super.onMouseDown(e,t)}onContextMenu(e,t){let{clientX:n,clientY:i}=t;let s=e.hitTest(n,i);this._selected.emit(s)}}e.MouseHandler=s})(m||(m={}))},82372:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ToolbarItems:()=>L,default:()=>P,downloadPlugin:()=>E,openBrowserTabPlugin:()=>M,pathStatusPlugin:()=>T,savingStatusPlugin:()=>I});var i=n(88617);var s=n(38850);var o=n(40959);var r=n(11927);var a=n(95513);var l=n(40065);var d=n(4625);var c=n(34881);var h=n(4073);var u=n(34236);var p=n(5592);var m=n(2336);var g=n(27518);var f=n(44914);var v=n(78629);var _;(function(e){e.clearRecents="docmanager:clear-recents"})(_||(_={}));var b;(function(e){e.recentsManager="@jupyterlab/docmanager-extension:recents";e.reopenClosed="@jupyterlab/docmanager-extension:reopen-recently-closed";e.mainPlugin="@jupyterlab/docmanager-extension:plugin"})(b||(b={}));const y={id:b.recentsManager,description:"Provides a manager of recently opened and closed documents.",autoStart:true,requires:[v.IStateDB],optional:[l.ISettingRegistry,c.ITranslator],provides:r.IRecentsManager,activate:(e,t,n,i)=>{const{serviceManager:s}=e;const o=(i!==null&&i!==void 0?i:c.nullTranslator).load("jupyterlab");const a=new r.RecentsManager({stateDB:t,contents:s.contents});const l=e=>{a.maximalRecentsLength=e.get("maxNumberRecents").composite};if(n){void Promise.all([e.restored,n.load(b.mainPlugin)]).then((([e,t])=>{t.changed.connect(l);l(t)}))}e.commands.addCommand(_.clearRecents,{execute:()=>{a.clearRecents()},isEnabled:()=>a.recentlyOpened.length!=0||a.recentlyClosed.length!=0,label:o.__("Clear Recent Documents"),caption:o.__("Clear the list of recently opened items."),describedBy:{args:{type:"object",properties:{}}}});return a}};var w;(function(e){e.clone="docmanager:clone";e.deleteFile="docmanager:delete-file";e.newUntitled="docmanager:new-untitled";e.open="docmanager:open";e.openBrowserTab="docmanager:open-browser-tab";e.reload="docmanager:reload";e.rename="docmanager:rename";e.del="docmanager:delete";e.duplicate="docmanager:duplicate";e.restoreCheckpoint="docmanager:restore-checkpoint";e.save="docmanager:save";e.saveAll="docmanager:save-all";e.saveAs="docmanager:save-as";e.download="docmanager:download";e.toggleAutosave="docmanager:toggle-autosave";e.showInFileBrowser="docmanager:show-in-file-browser"})(w||(w={}));const C="@jupyterlab/docmanager-extension:plugin";const x={id:"@jupyterlab/docmanager-extension:opener",description:"Provides the widget opener.",autoStart:true,provides:r.IDocumentWidgetOpener,activate:e=>{const{shell:t}=e;return new class{constructor(){this._opened=new m.Signal(this)}open(e,n){var i;if(!e.id){e.id=`document-manager-${++z.id}`}e.title.dataset={type:"document-title",...e.title.dataset};if(!e.isAttached){t.add(e,"main",n||{})}if((i=n===null||n===void 0?void 0:n.activate)!==null&&i!==void 0?i:true){t.activateById(e.id)}this._opened.emit(e)}get opened(){return this._opened}}}};const S={id:"@jupyterlab/docmanager-extension:contexts",description:"Adds the handling of opened documents dirty state.",autoStart:true,requires:[r.IDocumentManager,r.IDocumentWidgetOpener],optional:[i.ILabStatus],activate:(e,t,n,i)=>{const s=new WeakSet;n.opened.connect(((e,n)=>{const o=t.contextForWidget(n);if(o&&!s.has(o)){if(i){F(i,o)}s.add(o)}}))}};const j={id:"@jupyterlab/docmanager-extension:manager",description:"Provides the document manager.",provides:r.IDocumentManager,requires:[r.IDocumentWidgetOpener],optional:[c.ITranslator,i.ILabStatus,s.ISessionContextDialogs,i.JupyterLab.IInfo,r.IRecentsManager,a.IUrlResolverFactory,r.IDocumentManagerDialogs],activate:(e,t,n,i,o,a,l,d,h)=>{var u;const{serviceManager:p,docRegistry:m}=e;const g=n!==null&&n!==void 0?n:c.nullTranslator;const f=o!==null&&o!==void 0?o:new s.SessionContextDialogs({translator:g});const v=h!==null&&h!==void 0?h:new r.DocumentManagerDialogs({translator:g});const _=e.restored.then((()=>void 0));const b=new r.DocumentManager({registry:m,manager:p,opener:t,when:_,setBusy:(u=i&&(()=>i.setBusy()))!==null&&u!==void 0?u:undefined,sessionDialogs:f,translator:g!==null&&g!==void 0?g:c.nullTranslator,isConnectedCallback:()=>{if(a){return a.isConnected}return true},recentsManager:l!==null&&l!==void 0?l:undefined,urlResolverFactory:d!==null&&d!==void 0?d:undefined,docManagerDialogs:v});return b}};const k={id:C,description:"Adds commands and settings to the document manager.",autoStart:true,requires:[r.IDocumentManager,r.IDocumentWidgetOpener,l.ISettingRegistry],optional:[c.ITranslator,s.ICommandPalette,i.ILabShell,r.IDocumentManagerDialogs],activate:(e,t,n,i,s,o,r,a)=>{s=s!==null&&s!==void 0?s:c.nullTranslator;const l=s.load("jupyterlab");const d=e.docRegistry;B(e,t,n,i,s,r,o,a);const h=n=>{const i=n.get("autosave").composite;t.autosave=i===true||i===false?i:true;e.commands.notifyCommandChanged(w.toggleAutosave);const s=n.get("confirmClosingDocument").composite;t.confirmClosingDocument=s!==null&&s!==void 0?s:true;const o=n.get("autosaveInterval").composite;t.autosaveInterval=o||120;const r=n.get("lastModifiedCheckMargin").composite;t.lastModifiedCheckMargin=r||500;const a=n.get("renameUntitledFileOnSave").composite;t.renameUntitledFileOnSave=a!==null&&a!==void 0?a:true;const l=n.get("defaultViewers").composite;const c={};Object.keys(l).forEach((e=>{if(!d.getFileType(e)){console.warn(`File Type ${e} not found`);return}if(!d.getWidgetFactory(l[e])){console.warn(`Document viewer ${l[e]} not found`)}c[e]=l[e]}));for(const e of d.fileTypes()){try{d.setDefaultWidgetFactory(e.name,c[e.name])}catch(h){console.warn(`Failed to set default viewer ${c[e.name]} for file type ${e.name}`)}}};Promise.all([i.load(C),e.restored]).then((([e])=>{e.changed.connect(h);h(e);const n=(t,n)=>{if(["autosave","autosaveInterval","confirmClosingDocument","lastModifiedCheckMargin","renameUntitledFileOnSave"].includes(n.name)&&e.get(n.name).composite!==n.newValue){e.set(n.name,n.newValue).catch((e=>{console.error(`Failed to set the setting '${n.name}':\n${e}`)}))}};t.stateChanged.connect(n)})).catch((e=>{console.error(e.message)}));i.transform(C,{fetch:e=>{const t=Array.from(d.fileTypes()).map((e=>e.name)).join(" \n");const n=Array.from(d.widgetFactories()).map((e=>e.name)).join(" \n");const i=l.__(`Overrides for the default viewers for file types.\nSpecify a mapping from file type name to document viewer name, for example:\n\ndefaultViewers: {\n markdown: "Markdown Preview"\n}\n\nIf you specify non-existent file types or viewers, or if a viewer cannot\nopen a given file type, the override will not function.\n\nAvailable viewers:\n%1\n\nAvailable file types:\n%2`,n,t);const s=p.JSONExt.deepCopy(e.schema);s.properties.defaultViewers.description=i;return{...e,schema:s}}});d.changed.connect((()=>i.load(C,true)))}};const I={id:"@jupyterlab/docmanager-extension:saving-status",description:"Adds a saving status indicator.",autoStart:true,requires:[r.IDocumentManager,i.ILabShell],optional:[c.ITranslator,d.IStatusBar],activate:(e,t,n,i,s)=>{if(!s){return}const o=new r.SavingStatus({docManager:t,translator:i!==null&&i!==void 0?i:c.nullTranslator});o.model.widget=n.currentWidget;n.currentChanged.connect((()=>{o.model.widget=n.currentWidget}));s.registerStatusItem(I.id,{item:o,align:"middle",isActive:()=>o.model!==null&&o.model.status!==null,activeStateChanged:o.model.stateChanged})}};const T={id:"@jupyterlab/docmanager-extension:path-status",description:"Adds a file path indicator in the status bar.",autoStart:true,requires:[r.IDocumentManager,i.ILabShell],optional:[d.IStatusBar],activate:(e,t,n,i)=>{if(!i){return}const s=new r.PathStatus({docManager:t});s.model.widget=n.currentWidget;n.currentChanged.connect((()=>{s.model.widget=n.currentWidget}));i.registerStatusItem(T.id,{item:s,align:"right",rank:0})}};const E={id:"@jupyterlab/docmanager-extension:download",description:"Adds command to download files.",autoStart:true,requires:[r.IDocumentManager],optional:[c.ITranslator,s.ICommandPalette],activate:(e,t,n,i)=>{var o;const r=(n!==null&&n!==void 0?n:c.nullTranslator).load("jupyterlab");const{commands:a,shell:l}=e;const d=()=>{const{currentWidget:e}=l;return!!(e&&t.contextForWidget(e))};a.addCommand(w.download,{label:r.__("Download"),caption:r.__("Download the file to your computer"),isEnabled:d,describedBy:{args:{type:"object",properties:{}}},execute:()=>{if(d()){const e=t.contextForWidget(l.currentWidget);if(!e){return(0,s.showDialog)({title:r.__("Cannot Download"),body:r.__("No context found for current widget!"),buttons:[s.Dialog.okButton()]})}return e.download()}}});(o=e.shell.currentChanged)===null||o===void 0?void 0:o.connect((()=>{e.commands.notifyCommandChanged(w.download)}));const h=r.__("File Operations");if(i){i.addItem({command:w.download,category:h})}}};const M={id:"@jupyterlab/docmanager-extension:open-browser-tab",description:"Adds command to open a browser tab.",autoStart:true,requires:[r.IDocumentManager],optional:[c.ITranslator],activate:(e,t,n)=>{const i=(n!==null&&n!==void 0?n:c.nullTranslator).load("jupyterlab");const{commands:s}=e;s.addCommand(w.openBrowserTab,{execute:e=>{const n=typeof e["path"]==="undefined"?"":e["path"];if(!n){return}return t.services.contents.getDownloadUrl(n).then((e=>{const t=window.open();if(t){t.opener=null;t.location.href=e}else{throw new Error("Failed to open new browser tab.")}}))},iconClass:e=>e["icon"]||"",label:()=>i.__("Open in New Browser Tab"),describedBy:{args:{type:"object",properties:{path:{type:"string",description:i.__("The path of the file to open in browser tab")},icon:{type:"string",description:i.__("The icon class for the command")}},required:["path"]}}})}};const D={id:"@jupyterlab/docmanager-extension:dialogs",description:"Provides default dialogs for document management operations.",autoStart:true,provides:r.IDocumentManagerDialogs,requires:[c.ITranslator],activate:(e,t)=>new r.DocumentManagerDialogs({translator:t})};const A=[j,k,S,T,I,E,M,x,y,D];const P=A;var L;(function(e){function t(e,t){return(0,s.addCommandToolbarButtonClass)(s.ReactWidget.create(f.createElement(s.UseSignal,{signal:t},(()=>f.createElement(s.CommandToolbarButtonComponent,{commands:e,id:w.save,label:"",args:{toolbar:true}})))))}e.createSaveButton=t})(L||(L={}));class R extends g.Widget{constructor(e,t,n="notebook"){super({node:z.createRevertConfirmNode(e,n,t)})}}function N(e,t){if(!e){return"File"}const n=t.contextForWidget(e);if(!n){return""}const i=t.registry.getFileTypesForPath(n.path);return i.length&&i[0].displayName?i[0].displayName:"File"}function B(e,t,n,i,a,l,d,c){var p;const m=a.load("jupyterlab");const{commands:g,shell:f}=e;const v=m.__("File Operations");const _=()=>{const{currentWidget:e}=f;return!!(e&&t.contextForWidget(e))};const b=()=>{var e;const{currentWidget:n}=f;if(!n){return false}const i=t.contextForWidget(n);return!!((e=i===null||i===void 0?void 0:i.contentsModel)===null||e===void 0?void 0:e.writable)};const y=e=>s.Notification.warning(m.__(`%1 is read-only. Use "Save as…" instead.`,e),{autoClose:5e3});if(l){if(!c){c=new r.DocumentManagerDialogs({translator:a})}O(e,t,l,n,a,c)}g.addCommand(w.deleteFile,{label:()=>`Delete ${N(f.currentWidget,t)}`,describedBy:{args:{type:"object",properties:{path:{type:"string",description:"The path of the file to delete"}},required:["path"]}},execute:e=>{const n=typeof e["path"]==="undefined"?"":e["path"];if(!n){const e=w.deleteFile;throw new Error(`A non-empty path is required for ${e}.`)}return t.deleteFile(n)}});g.addCommand(w.newUntitled,{execute:async e=>{const n=e["error"]||m.__("Error");const i=typeof e["path"]==="undefined"?"":e["path"];const o={type:e["type"],path:i};if(e["type"]==="file"){o.ext=e["ext"]||".txt"}return t.services.contents.newUntitled(o).catch((e=>(0,s.showErrorMessage)(n,e)))},label:e=>e["label"]||`New ${e["type"]}`,describedBy:{args:{type:"object",properties:{error:{type:"string",description:"The error title to display"},path:{type:"string",description:"The path where to create the file"},type:{type:"string",description:"The type of content to create",enum:["file","directory","notebook"]},ext:{type:"string",description:"The file extension (for file type)"},label:{type:"string",description:"The label for the command"}}}}});g.addCommand(w.open,{execute:async e=>{const n=typeof e["path"]==="undefined"?"":e["path"];const i=e["factory"]||void 0;const s=e===null||e===void 0?void 0:e.kernel;const o=e===null||e===void 0?void 0:e.kernelPreference;const r=e["options"]||void 0;return t.services.contents.get(n,{content:false}).then((()=>t.openOrReveal(n,i,s,r,o)))},iconClass:e=>e["icon"]||"",label:e=>{var t;return(t=e["label"]||e["factory"])!==null&&t!==void 0?t:m.__("Open the provided `path`.")},mnemonic:e=>e["mnemonic"]||-1,describedBy:{args:{type:"object",properties:{path:{type:"string",description:"The path of the file to open"},factory:{type:"string",description:"The widget factory name"},kernel:{type:"object",description:"The kernel model to use"},kernelPreference:{type:"object",description:"Override kernel preferences, see [`IKernelPreference`](https://jupyterlab.readthedocs.io/en/stable/api/interfaces/apputils.ISessionContext.IKernelPreference.html) for possible values"},options:{type:"object",description:"Additional options for opening"},icon:{type:"string",description:"The icon class for the command"},label:{type:"string",description:"The label for the command"},mnemonic:{type:"number",description:"The mnemonic index for the command"}}}}});g.addCommand(w.reload,{label:()=>m.__("Reload %1 from Disk",N(f.currentWidget,t)),caption:m.__("Reload contents from disk"),isEnabled:_,describedBy:{args:{type:"object",properties:{}}},execute:()=>{if(!_()){return}const e=t.contextForWidget(f.currentWidget);const n=N(f.currentWidget,t);if(!e){return(0,s.showDialog)({title:m.__("Cannot Reload"),body:m.__("No context found for current widget!"),buttons:[s.Dialog.okButton()]})}if(e.model.dirty){return(0,s.showDialog)({title:m.__("Reload %1 from Disk",n),body:m.__("Are you sure you want to reload the %1 from the disk?",n),buttons:[s.Dialog.cancelButton(),s.Dialog.warnButton({label:m.__("Reload")})]}).then((t=>{if(t.button.accept&&!e.isDisposed){return e.revert()}}))}else{if(!e.isDisposed){return e.revert()}}}});g.addCommand(w.restoreCheckpoint,{label:()=>m.__("Revert %1 to Checkpoint…",N(f.currentWidget,t)),caption:m.__("Revert contents to previous checkpoint"),isEnabled:_,describedBy:{args:{type:"object",properties:{}}},execute:()=>{if(!_()){return}const e=t.contextForWidget(f.currentWidget);if(!e){return(0,s.showDialog)({title:m.__("Cannot Revert"),body:m.__("No context found for current widget!"),buttons:[s.Dialog.okButton()]})}return e.listCheckpoints().then((async n=>{const i=N(f.currentWidget,t);if(n.length<1){await(0,s.showErrorMessage)(m.__("No checkpoints"),m.__("No checkpoints are available for this %1.",i));return}const o=n.length===1?n[0]:await z.getTargetCheckpoint(n.reverse(),m);if(!o){return}return(0,s.showDialog)({title:m.__("Revert %1 to checkpoint",i),body:new R(o,m,i),buttons:[s.Dialog.cancelButton(),s.Dialog.warnButton({label:m.__("Revert"),ariaLabel:m.__("Revert to Checkpoint")})]}).then((t=>{if(e.isDisposed){return}if(t.button.accept){if(e.model.readOnly){return e.revert()}return e.restoreCheckpoint(o.id).then((()=>e.revert()))}}))}))}});const x=()=>{if(f.currentWidget){if(!b()){return m.__(`Document is read-only. "Save" is disabled; use "Save as…" instead`)}}return m.__("Save and create checkpoint")};const S=new WeakSet;g.addCommand(w.save,{label:()=>m.__("Save %1",N(f.currentWidget,t)),caption:x,icon:e=>e.toolbar?h.saveIcon:undefined,isEnabled:e=>{if(e._luminoEvent){return e._luminoEvent.type==="keybinding"?true:b()}else{return b()}},describedBy:{args:{type:"object",properties:{toolbar:{type:"boolean",description:"Whether executed from toolbar"},_luminoEvent:{type:"object",description:"The lumino event object"}}}},execute:async e=>{var n,r,a,l,d;const c=f.currentWidget;const h=t.contextForWidget(c);if(_()){if(!h){return(0,s.showDialog)({title:m.__("Cannot Save"),body:m.__("No context found for current widget!"),buttons:[s.Dialog.okButton()]})}else{if(S.has(h)){return}if(!((n=h.contentsModel)===null||n===void 0?void 0:n.writable)){let t=(r=e._luminoEvent)===null||r===void 0?void 0:r.type;if(e._luminoEvent&&t==="keybinding"){y(h.path);return}else{return(0,s.showDialog)({title:m.__("Cannot Save"),body:m.__("Document is read-only"),buttons:[s.Dialog.okButton()]})}}S.add(h);const p=o.PathExt.basename((l=(a=h.contentsModel)===null||a===void 0?void 0:a.path)!==null&&l!==void 0?l:"");let g=p;if(t.renameUntitledFileOnSave&&c.isUntitled===true){const e=await s.InputDialog.getText({title:m.__("Rename file"),okLabel:m.__("Rename and Save"),placeholder:m.__("File name"),text:p,selectionRange:p.length-o.PathExt.extname(p).length,checkbox:{label:m.__("Do not ask for rename on first save."),caption:m.__("If checked, you will not be asked to rename future untitled files when saving them.")}});if(e.button.accept){g=(d=e.value)!==null&&d!==void 0?d:p;c.isUntitled=false;if(typeof e.isChecked==="boolean"){const t=(await i.get(C,"renameUntitledFileOnSave")).composite;if(e.isChecked===t){i.set(C,"renameUntitledFileOnSave",!e.isChecked).catch((e=>{console.error(`Fail to set 'renameUntitledFileOnSave:\n${e}`)}))}}}}try{await h.save();if(g!==p){await h.rename(g)}if(!(c===null||c===void 0?void 0:c.isDisposed)){await h.createCheckpoint()}}catch(u){if(u.name==="ModalCancelError"){return}throw u}finally{S.delete(h)}}}}});g.addCommand(w.saveAll,{label:()=>m.__("Save All"),caption:m.__("Save all open documents"),isEnabled:()=>(0,u.some)(f.widgets("main"),(e=>{var n,i,s;return(s=(i=(n=t.contextForWidget(e))===null||n===void 0?void 0:n.contentsModel)===null||i===void 0?void 0:i.writable)!==null&&s!==void 0?s:false})),describedBy:{args:{type:"object",properties:{}}},execute:()=>{var e;const n=[];const i=new Set;for(const s of f.widgets("main")){const o=t.contextForWidget(s);if(o&&!i.has(o.path)){if((e=o.contentsModel)===null||e===void 0?void 0:e.writable){i.add(o.path);n.push(o.save())}else{y(o.path)}}}return Promise.all(n)}});g.addCommand(w.saveAs,{label:()=>m.__("Save %1 As…",N(f.currentWidget,t)),caption:m.__("Save with new path"),isEnabled:_,describedBy:{args:{type:"object",properties:{}}},execute:()=>{if(_()){const e=t.contextForWidget(f.currentWidget);if(!e){return(0,s.showDialog)({title:m.__("Cannot Save"),body:m.__("No context found for current widget!"),buttons:[s.Dialog.okButton()]})}const n=(n,i)=>{if(i.type==="save"&&i.newValue&&i.newValue.path!==e.path){void t.closeFile(e.path);void g.execute(w.open,{path:i.newValue.path})}};t.services.contents.fileChanged.connect(n);void e.saveAs().finally((()=>t.services.contents.fileChanged.disconnect(n)))}}});(p=e.shell.currentChanged)===null||p===void 0?void 0:p.connect((()=>{[w.reload,w.restoreCheckpoint,w.save,w.saveAll,w.saveAs].forEach((t=>{e.commands.notifyCommandChanged(t)}))}));g.addCommand(w.toggleAutosave,{label:m.__("Autosave Documents"),isToggled:()=>t.autosave,execute:()=>{const e=!t.autosave;const n="autosave";return i.set(C,n,e).catch((e=>{console.error(`Failed to set ${C}:${n} - ${e.message}`)}))},describedBy:{args:{type:"object",properties:{}}}});if(d){[w.reload,w.restoreCheckpoint,w.save,w.saveAs,w.toggleAutosave,w.duplicate].forEach((e=>{d.addItem({command:e,category:v})}))}}function O(e,t,n,i,o,r){const a=o.load("jupyterlab");const{commands:l}=e;const d=()=>{var i;const s=/[Pp]ath:\s?(.*)\n?/;const o=e=>{var t;return!!((t=e["title"])===null||t===void 0?void 0:t.match(s))};const r=e.contextMenuHitTest(o);const a=r===null||r===void 0?void 0:r["title"].match(s);return(i=a&&t.findWidget(a[1],null))!==null&&i!==void 0?i:n.currentWidget};const c=()=>{const{currentWidget:e}=n;return!!(e&&t.contextForWidget(e))};l.addCommand(w.clone,{label:()=>a.__("New View for %1",N(d(),t)),isEnabled:c,execute:e=>{const n=d();const s=e["options"]||{mode:"split-right"};if(!n){return}const o=t.cloneWidget(n);if(o){i.open(o,s)}},describedBy:{args:{type:"object",properties:{options:{type:"object",description:a.__("Options for opening the cloned document")}}}}});l.addCommand(w.rename,{label:()=>{let e=N(d(),t);if(e){e=" "+e}return a.__("Rename%1…",e)},isEnabled:c,execute:()=>{if(c()){const e=t.contextForWidget(d());return r.rename(e)}},describedBy:{args:{type:"object",properties:{}}}});l.addCommand(w.duplicate,{label:()=>a.__("Duplicate %1",N(d(),t)),isEnabled:c,execute:()=>{if(c()){const e=t.contextForWidget(d());if(!e){return}return t.duplicate(e.path)}},describedBy:{args:{type:"object",properties:{}}}});l.addCommand(w.del,{label:()=>a.__("Delete %1",N(d(),t)),isEnabled:c,execute:async()=>{if(c()){const n=t.contextForWidget(d());if(!n){return}const i=await(0,s.showDialog)({title:a.__("Delete"),body:a.__("Are you sure you want to delete %1",n.path),buttons:[s.Dialog.cancelButton(),s.Dialog.warnButton({label:a.__("Delete")})]});if(i.button.accept){await e.commands.execute("docmanager:delete-file",{path:n.path})}}},describedBy:{args:{type:"object",properties:{}}}});l.addCommand(w.showInFileBrowser,{label:()=>a.__("Show in File Browser"),isEnabled:c,execute:async()=>{const e=d();const n=e&&t.contextForWidget(e);if(!n){return}await l.execute("filebrowser:activate",{path:n.path});await l.execute("filebrowser:go-to-path",{path:n.path})},describedBy:{args:{type:"object",properties:{}}}});n.currentChanged.connect((()=>{[w.clone,w.rename,w.duplicate,w.del,w.showInFileBrowser].forEach((t=>{e.commands.notifyCommandChanged(t)}))}))}function F(e,t){let n=null;const i=(t,i)=>{if(i.name==="dirty"){if(i.newValue===true){if(!n){n=e.setDirty()}}else if(n){n.dispose();n=null}}};void t.ready.then((()=>{t.model.stateChanged.connect(i);if(t.model.dirty){n=e.setDirty()}}));t.disposed.connect((()=>{if(n){n.dispose()}}))}var z;(function(e){e.id=0;function t(e,t,n){const i=document.createElement("div");const s=document.createElement("p");const r=document.createTextNode(n.__("Are you sure you want to revert the %1 to checkpoint? ",t));const a=document.createElement("strong");a.textContent=n.__("This cannot be undone.");s.appendChild(r);s.appendChild(a);const l=document.createElement("p");const d=document.createTextNode(n.__("The checkpoint was last updated at: "));const c=document.createElement("p");const h=new Date(e.last_modified);c.style.textAlign="center";c.textContent=o.Time.format(h)+" ("+o.Time.formatHuman(h)+")";l.appendChild(d);l.appendChild(c);i.appendChild(s);i.appendChild(l);return i}e.createRevertConfirmNode=t;async function n(e,t){const n=".";const i=e.map(((e,t)=>{const i=o.Time.format(e.last_modified);const s=o.Time.formatHuman(e.last_modified);return`${t}${n} ${i} (${s})`}));const r=(await s.InputDialog.getItem({items:i,title:t.__("Choose a checkpoint")})).value;if(!r){return}const a=r.split(n,1)[0];return e[parseInt(a,10)]}e.getTargetCheckpoint=n})(z||(z={}))},87779:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(24800);var r=n(97913);var a=n(5893);var l=n(79010);var d=n(3579);var c=n(41603)},89069:(e,t,n)=>{"use strict";n.r(t);n.d(t,{DocumentManager:()=>I,DocumentManagerDialogs:()=>d,DocumentWidgetManager:()=>j,IDocumentManager:()=>O,IDocumentManagerDialogs:()=>W,IDocumentWidgetOpener:()=>F,IRecentsManager:()=>z,PathStatus:()=>L,RecentsManager:()=>V,SaveHandler:()=>w,SavingStatus:()=>B,isValidFileName:()=>p,renameDialog:()=>c,renameFile:()=>h,shouldOverwrite:()=>u});var i=n(38850);var s=n(40959);var o=n(34881);var r=n(27518);const a="jp-FileDialog";const l="jp-new-name-title";class d{constructor(e={}){this._translator=e.translator||o.nullTranslator}async rename(e){const t=this._translator.load("jupyterlab");const n=e.localPath.split("/");const s=n.pop()||e.localPath;const o=new m(s,this._translator);const r=await(0,i.showDialog)({title:t.__("Rename File"),body:o,buttons:[i.Dialog.cancelButton(),i.Dialog.okButton({label:t.__("Rename"),ariaLabel:t.__("Rename File")})],focusNodeSelector:"input"});if(!r.button.accept){return null}const a=r.value;if(!a||a===s){return null}if(!p(a)){void(0,i.showErrorMessage)(t.__("Rename Error"),Error(t.__('"%1" is not a valid name for a file. Names must have nonzero length, and cannot include "/", "\\", or ":"',r.value)));return null}return e.rename(a)}async confirmClose(e){const t=this._translator.load("jupyterlab");const{fileName:n,isDirty:s}=e;const o=[i.Dialog.cancelButton(),i.Dialog.okButton({label:s?t.__("Close and save"):t.__("Close"),ariaLabel:s?t.__("Close and save Document"):t.__("Close Document")})];if(s){o.splice(1,0,i.Dialog.warnButton({label:t.__("Close without saving"),ariaLabel:t.__("Close Document without saving")}))}const r=await(0,i.showDialog)({title:t.__("Confirmation"),body:t.__('Please confirm you want to close "%1".',n),checkbox:s?null:{label:t.__("Do not ask me again."),caption:t.__("If checked, no confirmation to close a document will be asked in the future.")},buttons:o});const a=r.button.accept;const l=s?r.button.displayType==="warn":true;const d=r.isChecked===true;return{shouldClose:a,ignoreSave:l,doNotAskAgain:d}}async saveBeforeClose(e){const t=this._translator.load("jupyterlab");const{fileName:n,writable:s}=e;const o=s?t.__("Save"):t.__("Save as");const r=await(0,i.showDialog)({title:t.__("Save your work"),body:t.__('Save changes in "%1" before closing?',n),buttons:[i.Dialog.cancelButton(),i.Dialog.warnButton({label:t.__("Discard"),ariaLabel:t.__("Discard changes to file")}),i.Dialog.okButton({label:o})]});const a=r.button.accept;const l=r.button.displayType==="warn";return{shouldClose:a,ignoreSave:l}}}function c(e,t,n,i){if(i){return i.rename(t)}const s=new d({translator:n});return s.rename(t)}function h(e,t,n){return e.rename(t,n).catch((i=>{if(i.response.status!==409){throw i}return u(n).then((i=>{if(i){return e.overwrite(t,n)}return Promise.reject("File not renamed")}))}))}function u(e,t){t=t||o.nullTranslator;const n=t.load("jupyterlab");const s={title:n.__("Overwrite file?"),body:n.__('"%1" already exists, overwrite?',e),buttons:[i.Dialog.cancelButton(),i.Dialog.warnButton({label:n.__("Overwrite"),ariaLabel:n.__("Overwrite Existing File")})]};return(0,i.showDialog)(s).then((e=>Promise.resolve(e.button.accept)))}function p(e){const t=/[\/\\:]/;return e.length>0&&!t.test(e)}class m extends r.Widget{constructor(e,t){super({node:g.createRenameNode(e,t)});this.addClass(a);const n=s.PathExt.extname(e);const i=this.inputNode.value=s.PathExt.basename(e);this.inputNode.setSelectionRange(0,i.length-n.length)}get inputNode(){return this.node.getElementsByTagName("input")[0]}getValue(){return this.inputNode.value}}var g;(function(e){function t(e,t){t=t||o.nullTranslator;const n=t.load("jupyterlab");const i=document.createElement("div");const s=document.createElement("label");s.textContent=n.__("File Path");const r=document.createElement("span");r.textContent=e;const a=document.createElement("label");a.textContent=n.__("New Name");a.className=l;const d=document.createElement("input");i.appendChild(s);i.appendChild(r);i.appendChild(a);i.appendChild(d);return i}e.createRenameNode=t})(g||(g={}));var f=n(93067);var v=n(34236);var _=n(5592);var b=n(94466);var y=n(2336);class w{constructor(e){this._autosaveTimer=-1;this._minInterval=-1;this._interval=-1;this._isActive=false;this._inDialog=false;this._isDisposed=false;this._multiplier=10;this._context=e.context;this._isConnectedCallback=e.isConnectedCallback||(()=>true);const t=e.saveInterval||120;this._minInterval=t*1e3;this._interval=this._minInterval;this._context.fileChanged.connect(this._setTimer,this);this._context.disposed.connect(this.dispose,this)}get saveInterval(){return this._interval/1e3}set saveInterval(e){this._minInterval=this._interval=e*1e3;if(this._isActive){this._setTimer()}}get isActive(){return this._isActive}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;clearTimeout(this._autosaveTimer);y.Signal.clearData(this)}start(){this._isActive=true;this._setTimer()}stop(){this._isActive=false;clearTimeout(this._autosaveTimer)}_setTimer(){clearTimeout(this._autosaveTimer);if(!this._isActive){return}this._autosaveTimer=window.setTimeout((()=>{if(this._isConnectedCallback()){this._save()}else{this._setTimer()}}),this._interval)}_save(){var e;const t=this._context;this._setTimer();if(!t){return}if(!((e=t.canSave)!==null&&e!==void 0?e:true)||!t.model.dirty||this._inDialog){return}const n=(new Date).getTime();t.save().then((()=>{if(this.isDisposed){return}const e=(new Date).getTime()-n;this._interval=Math.max(this._multiplier*e,this._minInterval);this._setTimer()})).catch((e=>{const{name:t}=e;if(t==="ModalCancelError"||t==="ModalDuplicateError"){return}console.error("Error in Auto-Save",e.message)}))}}var C=n(90044);var x=n(42856);const S="jp-Document";class j{constructor(e){this._activateRequested=new y.Signal(this);this._confirmClosingTab=false;this._isDisposed=false;this._stateChanged=new y.Signal(this);this._registry=e.registry;this.translator=e.translator||o.nullTranslator;this._recentsManager=e.recentsManager||null;this._dialogs=e.dialogs||null}get activateRequested(){return this._activateRequested}get confirmClosingDocument(){return this._confirmClosingTab}set confirmClosingDocument(e){if(this._confirmClosingTab!==e){const t=this._confirmClosingTab;this._confirmClosingTab=e;this._stateChanged.emit({name:"confirmClosingDocument",oldValue:t,newValue:e})}}get stateChanged(){return this._stateChanged}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;y.Signal.disconnectReceiver(this)}createWidget(e,t){const n=e.createNew(t);this._initializeWidget(n,e,t);return n}_initializeWidget(e,t,n){k.factoryProperty.set(e,t);const i=new C.DisposableSet;for(const s of this._registry.widgetExtensions(t.name)){const t=s.createNew(e,n);if(t){i.add(t)}}k.disposablesProperty.set(e,i);e.disposed.connect(this._onWidgetDisposed,this);this.adoptWidget(n,e);n.fileChanged.connect(this._onFileChanged,this);n.pathChanged.connect(this._onPathChanged,this);void n.ready.then((()=>{void this.setCaption(e)}))}adoptWidget(e,t){const n=k.widgetsProperty.get(e);n.push(t);x.MessageLoop.installMessageHook(t,this);t.addClass(S);t.title.closable=true;t.disposed.connect(this._widgetDisposed,this);k.contextProperty.set(t,e)}findWidget(e,t){const n=k.widgetsProperty.get(e);if(!n){return undefined}return(0,v.find)(n,(e=>{const n=k.factoryProperty.get(e);if(!n){return false}return n.name===t}))}contextForWidget(e){return k.contextProperty.get(e)}cloneWidget(e){const t=k.contextProperty.get(e);if(!t){return undefined}const n=k.factoryProperty.get(e);if(!n){return undefined}const i=n.createNew(t,e);this._initializeWidget(i,n,t);return i}closeWidgets(e){const t=k.widgetsProperty.get(e);return Promise.all(t.map((e=>this.onClose(e)))).then((()=>undefined))}deleteWidgets(e){const t=k.widgetsProperty.get(e);return Promise.all(t.map((e=>this.onDelete(e)))).then((()=>undefined))}messageHook(e,t){switch(t.type){case"close-request":void this.onClose(e);return false;case"activate-request":{const t=e;const n=this.contextForWidget(t);if(n){n.ready.then((()=>{this._recordAsRecentlyOpened(t,n.contentsModel)})).catch((()=>{console.warn("Could not record the recents status for",n)}));this._activateRequested.emit(n.path)}break}default:break}return true}async setCaption(e){const t=this.translator.load("jupyterlab");const n=k.contextProperty.get(e);if(!n){return}const i=n.contentsModel;if(!i){e.title.caption="";return}return n.listCheckpoints().then((o=>{if(e.isDisposed){return}const r=o[o.length-1];const a=r?s.Time.format(r.last_modified):"None";let l=t.__("Name: %1\nPath: %2\n",i.name,i.path);if(n.model.readOnly){l+=t.__("Read-only")}else{l+=t.__("Last Saved: %1\n",s.Time.format(i.last_modified))+t.__("Last Checkpoint: %1",a)}e.title.caption=l}))}async onClose(e){var t;const[n,i]=await this._maybeClose(e,this.translator);if(e.isDisposed){return true}if(n){const n=k.contextProperty.get(e);if(!i){if(!n){return true}if((t=n.contentsModel)===null||t===void 0?void 0:t.writable){await n.save()}else{const e=await n.saveAs();if(!e){return false}}}if(n){const t=await Promise.race([n.ready,new Promise((e=>setTimeout(e,3e3,"timeout")))]);if(t==="timeout"){console.warn("Could not record the widget as recently closed because the context did not become ready in 3 seconds")}else{this._recordAsRecentlyClosed(e,n.contentsModel)}}if(e.isDisposed){return true}e.dispose()}return n}onDelete(e){e.dispose();return Promise.resolve(void 0)}_recordAsRecentlyOpened(e,t){var n;const i=this._recentsManager;if(!i){return}const s=t.path;const o=this._registry.getFileTypeForModel(t);const r=o.contentType;const a=(n=k.factoryProperty.get(e))===null||n===void 0?void 0:n.name;i.addRecent({path:s,contentType:r,factory:a},"opened");if(r!=="directory"){const e=s.lastIndexOf("/")>0?s.slice(0,s.lastIndexOf("/")):"";i.addRecent({path:e,contentType:"directory"},"opened")}}_recordAsRecentlyClosed(e,t){var n;const i=this._recentsManager;if(!i){return}const s=t.path;const o=this._registry.getFileTypeForModel(t);const r=o.contentType;const a=(n=k.factoryProperty.get(e))===null||n===void 0?void 0:n.name;i.addRecent({path:s,contentType:r,factory:a},"closed")}async _maybeClose(e,t){var n,i,s;t=t||o.nullTranslator;const r=k.contextProperty.get(e);if(!r){return Promise.resolve([true,true])}let a=k.widgetsProperty.get(r);if(!a){return Promise.resolve([true,true])}a=a.filter((e=>{const t=k.factoryProperty.get(e);if(!t){return false}return t.readOnly===false}));const l=e.title.label;const c=k.factoryProperty.get(e);const h=r.model.dirty&&a.length<=1&&!((n=c===null||c===void 0?void 0:c.readOnly)!==null&&n!==void 0?n:true);const u=(i=this._dialogs)!==null&&i!==void 0?i:new d({translator:t});if(this.confirmClosingDocument){const{shouldClose:e,ignoreSave:t,doNotAskAgain:n}=await u.confirmClose({fileName:l,isDirty:h});if(n){this.confirmClosingDocument=false}return Promise.resolve([e,t])}else{if(!h){return Promise.resolve([true,true])}const e=await(u===null||u===void 0?void 0:u.saveBeforeClose({fileName:l,writable:(s=r.contentsModel)===null||s===void 0?void 0:s.writable}));return[e.shouldClose,e.ignoreSave]}}_widgetDisposed(e){const t=k.contextProperty.get(e);if(!t){return}const n=k.widgetsProperty.get(t);if(!n){return}v.ArrayExt.removeFirstOf(n,e);if(!n.length){t.dispose()}}_onWidgetDisposed(e){const t=k.disposablesProperty.get(e);t.dispose()}_onFileChanged(e){const t=k.widgetsProperty.get(e);for(const n of t){void this.setCaption(n)}}_onPathChanged(e){const t=k.widgetsProperty.get(e);for(const n of t){void this.setCaption(n)}}}var k;(function(e){e.contextProperty=new b.AttachedProperty({name:"context",create:()=>undefined});e.factoryProperty=new b.AttachedProperty({name:"factory",create:()=>undefined});e.widgetsProperty=new b.AttachedProperty({name:"widgets",create:()=>[]});e.disposablesProperty=new b.AttachedProperty({name:"disposables",create:()=>new C.DisposableSet})})(k||(k={}));class I{constructor(e){var t,n;this._activateRequested=new y.Signal(this);this._contexts=[];this._isDisposed=false;this._autosave=true;this._autosaveInterval=120;this._lastModifiedCheckMargin=500;this._renameUntitledFileOnSave=true;this._stateChanged=new y.Signal(this);this.translator=e.translator||o.nullTranslator;this.registry=e.registry;this.services=e.manager;this._docManagerDialogs=(t=e.docManagerDialogs)!==null&&t!==void 0?t:new d({translator:this.translator});this._dialogs=(n=e.sessionDialogs)!==null&&n!==void 0?n:new i.SessionContextDialogs({translator:e.translator});this._isConnectedCallback=e.isConnectedCallback||(()=>true);this._opener=e.opener;this._when=e.when||e.manager.ready;const s=new j({registry:this.registry,translator:this.translator,recentsManager:e.recentsManager,dialogs:this._docManagerDialogs});s.activateRequested.connect(this._onActivateRequested,this);s.stateChanged.connect(this._onWidgetStateChanged,this);this._widgetManager=s;this._setBusy=e.setBusy;this._urlResolverFactory=e.urlResolverFactory}get activateRequested(){return this._activateRequested}get autosave(){return this._autosave}set autosave(e){if(this._autosave!==e){const t=this._autosave;this._autosave=e;this._contexts.forEach((t=>{const n=T.saveHandlerProperty.get(t);if(!n){return}if(e===true&&!n.isActive){n.start()}else if(e===false&&n.isActive){n.stop()}}));this._stateChanged.emit({name:"autosave",oldValue:t,newValue:e})}}get autosaveInterval(){return this._autosaveInterval}set autosaveInterval(e){if(this._autosaveInterval!==e){const t=this._autosaveInterval;this._autosaveInterval=e;this._contexts.forEach((t=>{const n=T.saveHandlerProperty.get(t);if(!n){return}n.saveInterval=e||120}));this._stateChanged.emit({name:"autosaveInterval",oldValue:t,newValue:e})}}get confirmClosingDocument(){return this._widgetManager.confirmClosingDocument}set confirmClosingDocument(e){if(this._widgetManager.confirmClosingDocument!==e){const t=this._widgetManager.confirmClosingDocument;this._widgetManager.confirmClosingDocument=e;this._stateChanged.emit({name:"confirmClosingDocument",oldValue:t,newValue:e})}}get lastModifiedCheckMargin(){return this._lastModifiedCheckMargin}set lastModifiedCheckMargin(e){if(this._lastModifiedCheckMargin!==e){const t=this._lastModifiedCheckMargin;this._lastModifiedCheckMargin=e;this._contexts.forEach((t=>{t.lastModifiedCheckMargin=e}));this._stateChanged.emit({name:"lastModifiedCheckMargin",oldValue:t,newValue:e})}}get renameUntitledFileOnSave(){return this._renameUntitledFileOnSave}set renameUntitledFileOnSave(e){if(this._renameUntitledFileOnSave!==e){const t=this._renameUntitledFileOnSave;this._renameUntitledFileOnSave=e;this._stateChanged.emit({name:"renameUntitledFileOnSave",oldValue:t,newValue:e})}}get stateChanged(){return this._stateChanged}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;y.Signal.clearData(this);this._contexts.forEach((e=>this._widgetManager.closeWidgets(e)));this._widgetManager.dispose();this._contexts.length=0}cloneWidget(e){return this._widgetManager.cloneWidget(e)}closeAll(){return Promise.all(this._contexts.map((e=>this._widgetManager.closeWidgets(e)))).then((()=>undefined))}closeFile(e){const t=this._contextsForPath(e).map((e=>this._widgetManager.closeWidgets(e)));return Promise.all(t).then((e=>undefined))}contextForWidget(e){return this._widgetManager.contextForWidget(e)}copy(e,t){return this.services.contents.copy(e,t)}createNew(e,t="default",n){return this._createOrOpenDocument("create",e,t,n)}deleteFile(e){return this.services.sessions.stopIfNeeded(e).then((()=>this.services.contents.delete(e))).then((()=>{this._contextsForPath(e).forEach((e=>this._widgetManager.deleteWidgets(e)));return Promise.resolve(void 0)}))}duplicate(e){const t=s.PathExt.dirname(e);return this.services.contents.copy(e,t)}findWidget(e,t="default"){const n=s.PathExt.normalize(e);let i=[t];if(t==="default"){const e=this.registry.defaultWidgetFactory(n);if(!e){return undefined}i=[e.name]}else if(t===null){i=this.registry.preferredWidgetFactories(n).map((e=>e.name))}for(const s of this._contextsForPath(n)){for(const e of i){if(e!==null){const t=this._widgetManager.findWidget(s,e);if(t){return t}}}}return undefined}newUntitled(e){if(e.type==="file"){e.ext=e.ext||".txt"}return this.services.contents.newUntitled(e)}open(e,t="default",n,i,s){return this._createOrOpenDocument("open",e,t,n,i,s)}openOrReveal(e,t=null,n,i,s){const o=this.findWidget(e,t);if(o){this._opener.open(o,{type:t||"default",...i});return o}return this.open(e,t||"default",n,i!==null&&i!==void 0?i:{},s)}overwrite(e,t){const n=`${t}.${_.UUID.uuid4()}`;const i=()=>this.rename(n,t);return this.rename(e,n).then((()=>this.deleteFile(t))).then(i,i)}rename(e,t){return this.services.contents.rename(e,t)}_findContext(e,t){const n=this.services.contents.normalize(e);return(0,v.find)(this._contexts,(e=>e.path===n&&e.factoryName===t))}_contextsForPath(e){const t=this.services.contents.normalize(e);return this._contexts.filter((e=>e.path===t))}_createContext(e,t,n,i){const s=(e,t)=>{this._widgetManager.adoptWidget(o,e);this._opener.open(e,t)};const o=new f.Context({opener:s,manager:this.services,factory:t,path:e,kernelPreference:n,setBusy:this._setBusy,sessionDialogs:this._dialogs,lastModifiedCheckMargin:this._lastModifiedCheckMargin,translator:this.translator,contentProviderId:i,urlResolverFactory:this._urlResolverFactory});const r=new w({context:o,isConnectedCallback:this._isConnectedCallback,saveInterval:this.autosaveInterval});T.saveHandlerProperty.set(o,r);void o.ready.then((()=>{if(this.autosave){r.start()}}));o.disposed.connect(this._onContextDisposed,this);this._contexts.push(o);return o}_onContextDisposed(e){v.ArrayExt.removeFirstOf(this._contexts,e)}_widgetFactoryFor(e,t){const{registry:n}=this;if(t==="default"){const i=n.defaultWidgetFactory(e);if(!i){return undefined}t=i.name}return n.getWidgetFactory(t)}_createOrOpenDocument(e,t,n="default",i,s,o){const r=this._widgetFactoryFor(t,n);if(!r){return undefined}const a=r.modelName||"text";const l=this.registry.getModelFactory(a);if(!l){return undefined}const d={...this.registry.getKernelPreference(t,r.name,i),...o};let c;let h=Promise.resolve(undefined);if(e==="open"){c=this._findContext(t,l.name)||null;if(!c){c=this._createContext(t,l,d,r.contentProviderId);h=this._when.then((()=>c.initialize(false)))}}else if(e==="create"){c=this._createContext(t,l,d,r.contentProviderId);h=this._when.then((()=>c.initialize(true)))}else{throw new Error(`Invalid argument 'which': ${e}`)}const u=this._widgetManager.createWidget(r,c);this._opener.open(u,{type:r.name,...s});h.catch((e=>{console.error(`Failed to initialize the context with '${l.name}' for ${t}`,e);u.close()}));return u}_onActivateRequested(e,t){this._activateRequested.emit(t)}_onWidgetStateChanged(e,t){if(t.name==="confirmClosingDocument"){this._stateChanged.emit(t)}}}var T;(function(e){e.saveHandlerProperty=new b.AttachedProperty({name:"saveHandler",create:()=>undefined})})(T||(T={}));var E=n(4625);var M=n(4073);var D=n(44914);var A=n.n(D);function P(e){return A().createElement(E.TextItem,{source:e.name,title:e.fullPath})}class L extends M.VDomRenderer{constructor(e){super(new L.Model(e.docManager));this.node.title=this.model.path}render(){return A().createElement(P,{fullPath:this.model.path,name:this.model.name})}}(function(e){class t extends M.VDomModel{constructor(e){super();this._onTitleChange=e=>{const t=this._getAllState();this._name=e.label;this._triggerChange(t,this._getAllState())};this._onPathChange=(e,t)=>{const n=this._getAllState();this._path=t;this._name=s.PathExt.basename(t);this._triggerChange(n,this._getAllState())};this._path="";this._name="";this._widget=null;this._docManager=e}get path(){return this._path}get name(){return this._name}get widget(){return this._widget}set widget(e){const t=this._widget;if(t!==null){const e=this._docManager.contextForWidget(t);if(e){e.pathChanged.disconnect(this._onPathChange)}else{t.title.changed.disconnect(this._onTitleChange)}}const n=this._getAllState();this._widget=e;if(this._widget===null){this._path="";this._name=""}else{const e=this._docManager.contextForWidget(this._widget);if(e){this._path=e.path;this._name=s.PathExt.basename(e.path);e.pathChanged.connect(this._onPathChange)}else{this._path="";this._name=this._widget.title.label;this._widget.title.changed.connect(this._onTitleChange)}}this._triggerChange(n,this._getAllState())}_getAllState(){return[this._path,this._name]}_triggerChange(e,t){if(e[0]!==t[0]||e[1]!==t[1]){this.stateChanged.emit(void 0)}}}e.Model=t})(L||(L={}));function R(e){return A().createElement(E.TextItem,{source:e.fileStatus})}const N=2e3;class B extends M.VDomRenderer{constructor(e){super(new B.Model(e.docManager));const t=e.translator||o.nullTranslator;const n=t.load("jupyterlab");this._statusMap={completed:n.__("Saving completed"),started:n.__("Saving started"),failed:n.__("Saving failed")}}render(){if(this.model===null||this.model.status===null){return null}else{return A().createElement(R,{fileStatus:this._statusMap[this.model.status]})}}}(function(e){class t extends M.VDomModel{constructor(e){super();this._onStatusChange=(e,t)=>{this._status=t;if(this._status==="completed"){setTimeout((()=>{this._status=null;this.stateChanged.emit(void 0)}),N);this.stateChanged.emit(void 0)}else{this.stateChanged.emit(void 0)}};this._status=null;this._widget=null;this._status=null;this.widget=null;this._docManager=e}get status(){return this._status}get widget(){return this._widget}set widget(e){var t,n;const i=this._widget;if(i!==null){const e=this._docManager.contextForWidget(i);if(e){e.saveState.disconnect(this._onStatusChange)}else if((t=this._widget.content)===null||t===void 0?void 0:t.saveStateChanged){this._widget.content.saveStateChanged.disconnect(this._onStatusChange)}}this._widget=e;if(this._widget===null){this._status=null}else{const e=this._docManager.contextForWidget(this._widget);if(e){e.saveState.connect(this._onStatusChange)}else if((n=this._widget.content)===null||n===void 0?void 0:n.saveStateChanged){this._widget.content.saveStateChanged.connect(this._onStatusChange)}}}}e.Model=t})(B||(B={}));const O=new _.Token("@jupyterlab/docmanager:IDocumentManager",`A service for the manager for all\n documents used by the application. Use this if you want to open and close documents,\n create and delete files, and otherwise interact with the file system.`);const F=new _.Token("@jupyterlab/docmanager:IDocumentWidgetOpener",`A service to open a widget.`);const z=new _.Token("@jupyterlab/docmanager:IRecentsManager",`A service providing information about recently opened and closed documents`);const W=new _.Token("@jupyterlab/docmanager:IDocumentManagerDialogs","A service for displaying dialogs related to document management.");var H=n(26568);class V{constructor(e){this._recentsChanged=new y.Signal(this);this._recents={opened:[],closed:[]};this._isDisposed=false;this._maxRecentsLength=10;this._saveDebouncer=new H.Debouncer(this._save.bind(this),500);this._stateDB=e.stateDB;this._contentsManager=e.contents;this.updateRootDir();this._loadRecents().catch((e=>{console.error(`Failed to load recent list from state:\n${e}`)}))}get isDisposed(){return this._isDisposed}get recentlyOpened(){const e=this._recents.opened||[];return e.filter((e=>e.root===this._serverRoot))}get recentlyClosed(){const e=this._recents.closed||[];return e.filter((e=>e.root===this._serverRoot))}get changed(){return this._recentsChanged}get maximalRecentsLength(){return this._maxRecentsLength}set maximalRecentsLength(e){this._maxRecentsLength=Math.round(Math.max(1,e));let t=false;for(const n of["opened","closed"]){if(this._recents[n].length>this._maxRecentsLength){this._recents[n].length=this._maxRecentsLength;t=true}}if(t){this._recentsChanged.emit(undefined)}}dispose(){if(this.isDisposed){return}this._isDisposed=true;y.Signal.clearData(this);this._saveDebouncer.dispose()}addRecent(e,t){const n={...e,root:this._serverRoot};const i=this._recents[t];const s=i.findIndex((t=>t.path===e.path));if(s>=0){i.splice(s,1)}i.unshift(n);this._setRecents(i,t);this._recentsChanged.emit(undefined)}clearRecents(){this._setRecents([],"opened");this._setRecents([],"closed");this._recentsChanged.emit(undefined)}removeRecent(e,t){this._removeRecent(e.path,[t])}async validate(e){const t=await this._isValid(e);if(!t){this._removeRecent(e.path)}return t}updateRootDir(){this._serverRoot=s.PageConfig.getOption("serverRoot")}_removeRecent(e,t=["opened","closed"]){let n=false;for(const i of t){const t=this._recents[i];const s=t.filter((t=>e!==t.path));if(t.length!==s.length){this._setRecents(s,i);n=true}}if(n){this._recentsChanged.emit(undefined)}}async _isValid(e){var t;try{await this._contentsManager.get(e.path,{content:false})}catch(n){if(((t=n.response)===null||t===void 0?void 0:t.status)===404){return false}}return true}_setRecents(e,t){this._recents[t]=e.slice(0,this.maximalRecentsLength).sort(((e,t)=>{if(e.root===t.root){return 0}else{return e.root!==this._serverRoot?1:-1}}));this._saveDebouncer.invoke().catch(console.warn)}async _loadRecents(){const e=await this._stateDB.fetch(U.stateDBKey)||{opened:[],closed:[]};const t=[...e.opened,...e.closed];const n=new Set(await this._getInvalidPaths(t));for(const i of["opened","closed"]){this._setRecents(e[i].filter((e=>!n.has(e.path))),i)}this._recentsChanged.emit(undefined)}async _getInvalidPaths(e){const t=await Promise.all(e.map((async e=>{if(await this._isValid(e)){return null}else{return e.path}})));return t.filter((e=>typeof e==="string"))}async _save(){try{await this._stateDB.save(U.stateDBKey,this._recents)}catch(e){console.log("Saving recents failed",e)}}}var U;(function(e){e.stateDBKey="docmanager:recents"})(U||(U={}))},41603:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(5893);var a=n(79010)},54294:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ABCWidgetFactory:()=>b,Base64ModelFactory:()=>_,Context:()=>h,DocumentModel:()=>f,DocumentRegistry:()=>E,DocumentWidget:()=>w,MimeContent:()=>x,MimeDocument:()=>S,MimeDocumentFactory:()=>j,TextModelFactory:()=>v,createReadonlyLabel:()=>g,getAvailableKernelFileTypes:()=>D});var i=n(38850);var s=n(40959);var o=n(95513);var r=n(34881);var a=n(5592);var l=n(90044);var d=n(2336);var c=n(27518);class h{constructor(e){var t,n;this._isReady=false;this._isDisposed=false;this._isPopulated=false;this._path="";this._lineEnding=null;this._contentsModel=null;this._populatedPromise=new a.PromiseDelegate;this._pathChanged=new d.Signal(this);this._fileChanged=new d.Signal(this);this._saveState=new d.Signal(this);this._disposed=new d.Signal(this);this._lastModifiedCheckMargin=500;this._conflictModalIsOpen=false;const l=this._manager=e.manager;this.translator=e.translator||r.nullTranslator;this._contentProviderId=e.contentProviderId;this._trans=this.translator.load("jupyterlab");this._factory=e.factory;this._dialogs=(t=e.sessionDialogs)!==null&&t!==void 0?t:new i.SessionContextDialogs({translator:e.translator});this._opener=e.opener||u.noOp;this._path=this._manager.contents.normalize(e.path);this._lastModifiedCheckMargin=e.lastModifiedCheckMargin||500;const c=this._manager.contents.localPath(this._path);const h=this._factory.preferredLanguage(s.PathExt.basename(c));const p=this._manager.contents.getSharedModelFactory(this._path,{contentProviderId:e.contentProviderId});const m=p===null||p===void 0?void 0:p.createNew({path:this._path,format:this._factory.fileFormat,contentType:this._factory.contentType,collaborative:this._factory.collaborative});this._model=this._factory.createNew({languagePreference:h,sharedModel:m,collaborationEnabled:(n=p===null||p===void 0?void 0:p.collaborative)!==null&&n!==void 0?n:false});this._readyPromise=l.ready.then((()=>this._populatedPromise.promise));const g=s.PathExt.extname(this._path);this.sessionContext=new i.SessionContext({kernelManager:l.kernels,sessionManager:l.sessions,specsManager:l.kernelspecs,path:this._path,type:g===".ipynb"?"notebook":"file",name:s.PathExt.basename(c),kernelPreference:e.kernelPreference||{shouldStart:false},setBusy:e.setBusy});this.sessionContext.propertyChanged.connect(this._onSessionChanged,this);l.contents.fileChanged.connect(this._onFileChanged,this);const f=e.urlResolverFactory?e.urlResolverFactory:{createResolver:e=>new o.RenderMimeRegistry.UrlResolver(e)};this._urlResolver=f.createResolver({path:this._path,contents:l.contents})}get pathChanged(){return this._pathChanged}get fileChanged(){return this._fileChanged}get saveState(){return this._saveState}get disposed(){return this._disposed}get lastModifiedCheckMargin(){return this._lastModifiedCheckMargin}set lastModifiedCheckMargin(e){this._lastModifiedCheckMargin=e}get model(){return this._model}get path(){return this._path}get localPath(){return this._manager.contents.localPath(this._path)}get contentsModel(){return this._contentsModel?{...this._contentsModel}:null}get factoryName(){return this.isDisposed?"":this._factory.name}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this.sessionContext.dispose();this._model.dispose();this._model.sharedModel.dispose();this._disposed.emit(void 0);d.Signal.clearData(this)}get isReady(){return this._isReady}get ready(){return this._readyPromise}get canSave(){var e;return!!(((e=this._contentsModel)===null||e===void 0?void 0:e.writable)&&!this._model.collaborative)}get urlResolver(){return this._urlResolver}async initialize(e){if(e){await this._save()}else{await this._revert()}this.model.sharedModel.clearUndoHistory()}rename(e){return this.ready.then((()=>this._manager.ready.then((()=>this._rename(e)))))}async save(){await this.ready;await this._save()}async saveAs(){await this.ready;const e=this._manager.contents.localPath(this.path);const t=await u.getSavePath(e);if(this.isDisposed||!t){return false}const n=this._manager.contents.driveName(this.path);const i=n==""?t:`${n}:${t}`;if(i===this._path){await this.save();return true}try{await this._manager.ready;await this._manager.contents.get(i,{contentProviderId:this._contentProviderId});await this._maybeOverWrite(i)}catch(s){if(!s.response||s.response.status!==404){if(!s.response){return false}throw s}}await this._finishSaveAs(i);return true}async download(){const e=await this._manager.contents.getDownloadUrl(this._path);const t=document.createElement("a");t.href=e;t.download="";document.body.appendChild(t);t.click();document.body.removeChild(t);return void 0}async revert(){await this.ready;await this._revert()}createCheckpoint(){const e=this._manager.contents;return this._manager.ready.then((()=>e.createCheckpoint(this._path)))}deleteCheckpoint(e){const t=this._manager.contents;return this._manager.ready.then((()=>t.deleteCheckpoint(this._path,e)))}restoreCheckpoint(e){const t=this._manager.contents;const n=this._path;return this._manager.ready.then((()=>{if(e){return t.restoreCheckpoint(n,e)}return this.listCheckpoints().then((i=>{if(this.isDisposed||!i.length){return}e=i[i.length-1].id;return t.restoreCheckpoint(n,e)}))}))}listCheckpoints(){const e=this._manager.contents;return this._manager.ready.then((()=>e.listCheckpoints(this._path)))}addSibling(e,t={}){const n=this._opener;if(n){n(e,t)}return new l.DisposableDelegate((()=>{e.close()}))}_onFileChanged(e,t){var n,i,s;if(t.type==="save"&&this._model.collaborative){if(((n=this._contentsModel)===null||n===void 0?void 0:n.path)!==((i=t.newValue)===null||i===void 0?void 0:i.path)){return}this._updateContentsModel({...this._contentsModel,...t.newValue});return}if(t.type!=="rename"){return}let o=t.oldValue&&t.oldValue.path;let r=t.newValue&&t.newValue.path;if(r&&this._path.indexOf(o||"")===0){let e=t.newValue;if(o!==this._path){r=this._path.replace(new RegExp(`^${o}/`),`${r}/`);o=this._path;e={last_modified:(s=t.newValue)===null||s===void 0?void 0:s.created,path:r}}this._updateContentsModel({...this._contentsModel,...e});this._updatePath(r)}}_onSessionChanged(e,t){if(t!=="path"){return}const n=this._manager.contents.driveName(this.path);let i=this._manager.contents.localPath(this.sessionContext.session.path);if(n){i=`${n}:${i}`}this._updatePath(i)}_updateContentsModel(e){var t,n,i,s;const o={path:e.path,name:e.name,type:e.type,writable:e.writable,created:e.created,last_modified:e.last_modified,mimetype:e.mimetype,format:e.format,hash:e.hash,hash_algorithm:e.hash_algorithm};const r=(n=(t=this._contentsModel)===null||t===void 0?void 0:t.last_modified)!==null&&n!==void 0?n:null;const a=(s=(i=this._contentsModel)===null||i===void 0?void 0:i.hash)!==null&&s!==void 0?s:null;this._contentsModel=o;if(!r&&!a||!a&&o.last_modified!==r||a&&o.hash!==a){this._fileChanged.emit(o)}}_updatePath(e){var t,n,i,o;if(this._path===e){return}this._path=e;const r=this._manager.contents.localPath(e);const a=s.PathExt.basename(r);if(((t=this.sessionContext.session)===null||t===void 0?void 0:t.path)!==e){void((n=this.sessionContext.session)===null||n===void 0?void 0:n.setPath(e))}if(((i=this.sessionContext.session)===null||i===void 0?void 0:i.name)!==a){void((o=this.sessionContext.session)===null||o===void 0?void 0:o.setName(a))}if(this._urlResolver.path!==e){this._urlResolver.path=e}if(this._contentsModel&&(this._contentsModel.path!==e||this._contentsModel.name!==a)){const t={...this._contentsModel,name:a,path:e};this._updateContentsModel(t)}this._pathChanged.emit(e)}async _populate(){this._isPopulated=true;this._isReady=true;this._populatedPromise.resolve(void 0);await this._maybeCheckpoint(false);if(this.isDisposed){return}const e=this._model.defaultKernelName||this.sessionContext.kernelPreference.name;this.sessionContext.kernelPreference={...this.sessionContext.kernelPreference,name:e,language:this._model.defaultKernelLanguage};void this.sessionContext.initialize().then((e=>{if(e){void this._dialogs.selectKernel(this.sessionContext)}}))}async _rename(e){const t=this.localPath.split("/");t[t.length-1]=e;let n=s.PathExt.join(...t);const i=this._manager.contents.driveName(this.path);if(i){n=`${i}:${n}`}await this._manager.contents.rename(this.path,n)}async _save(){this._saveState.emit("started");const e=this._createSaveOptions();try{await this._manager.ready;const t=await this._maybeSave(e);if(this.isDisposed){return}this._model.dirty=false;this._updateContentsModel(t);if(!this._isPopulated){await this._populate()}this._saveState.emit("completed")}catch(t){const{name:e}=t;if(e==="ModalCancelError"||e==="ModalDuplicateError"){throw t}const n=this._manager.contents.localPath(this._path);const i=s.PathExt.basename(n);void this._handleError(t,this._trans.__("File Save Error for %1",i));this._saveState.emit("failed");throw t}}_revert(e=false){const t={type:this._factory.contentType,content:this._factory.fileFormat!==null,hash:this._factory.fileFormat!==null,...this._factory.fileFormat!==null?{format:this._factory.fileFormat}:{},contentProviderId:this._contentProviderId};const n=this._path;const i=this._model;return this._manager.ready.then((()=>this._manager.contents.get(n,t))).then((e=>{if(this.isDisposed){return}if(e.content){if(e.format==="json"){i.fromJSON(e.content)}else{let t=e.content;if(t.indexOf("\r\n")!==-1){this._lineEnding="\r\n";t=t.replace(/\r\n/g,"\n")}else if(t.indexOf("\r")!==-1){this._lineEnding="\r";t=t.replace(/\r/g,"\n")}else{this._lineEnding=null}i.fromString(t)}}this._updateContentsModel(e);i.dirty=false;if(!this._isPopulated){return this._populate()}})).catch((async e=>{const t=this._manager.contents.localPath(this._path);const n=s.PathExt.basename(t);void this._handleError(e,this._trans.__("File Load Error for %1",n));throw e}))}_maybeSave(e){const t=this._path;const n=this._manager.contents.get(t,{content:false,hash:true,contentProviderId:this._contentProviderId});return n.then((n=>{var i,s,o,r;if(this.isDisposed){return Promise.reject(new Error("Disposed"))}const a=((i=this.contentsModel)===null||i===void 0?void 0:i.hash)!==undefined&&((s=this.contentsModel)===null||s===void 0?void 0:s.hash)!==null&&n.hash!==undefined&&n.hash!==null;const l=(o=this.contentsModel)===null||o===void 0?void 0:o.hash;const d=n.hash;if(a&&l!==d){console.warn(`Different hash found for ${this.path}`);return this._raiseConflict(n,e)}const c=this._lastModifiedCheckMargin;const h=(r=this.contentsModel)===null||r===void 0?void 0:r.last_modified;const u=h?new Date(h):new Date;const p=new Date(n.last_modified);if(!a&&h&&p.getTime()-u.getTime()>c){console.warn(`Last saving performed ${u} `+`while the current file seems to have been saved `+`${p}`);return this._raiseConflict(n,e)}return this._manager.contents.save(t,{...e,contentProviderId:this._contentProviderId}).then((async e=>{const n=await this._manager.contents.get(t,{content:false,hash:true,contentProviderId:this._contentProviderId});return{...e,hash:n.hash,hash_algorithm:n.hash_algorithm}}))}),(n=>{if(n.response&&n.response.status===404){return this._manager.contents.save(t,e).then((async e=>{const n=await this._manager.contents.get(t,{content:false,hash:true,contentProviderId:this._contentProviderId});return{...e,hash:n.hash,hash_algorithm:n.hash_algorithm}}))}throw n}))}async _handleError(e,t){await(0,i.showErrorMessage)(t,e);return}_maybeCheckpoint(e){let t=Promise.resolve(void 0);if(!this.canSave){return t}if(e){t=this.createCheckpoint().then()}else{t=this.listCheckpoints().then((e=>{if(!this.isDisposed&&!e.length&&this.canSave){return this.createCheckpoint().then()}}))}return t.catch((e=>{if(!e.response||e.response.status!==403){throw e}}))}_raiseConflict(e,t){if(this._conflictModalIsOpen){const e=new Error("Modal is already displayed");e.name="ModalDuplicateError";return Promise.reject(e)}const n=this._trans.__(`"%1" has changed on disk since the last time it was opened or saved.\nDo you want to overwrite the file on disk with the version open here,\nor load the version on disk (revert)?`,this.path);const s=i.Dialog.okButton({label:this._trans.__("Revert"),actions:["revert"]});const o=i.Dialog.warnButton({label:this._trans.__("Overwrite"),actions:["overwrite"]});this._conflictModalIsOpen=true;return(0,i.showDialog)({title:this._trans.__("File Changed"),body:n,buttons:[i.Dialog.cancelButton(),s,o]}).then((n=>{this._conflictModalIsOpen=false;if(this.isDisposed){return Promise.reject(new Error("Disposed"))}if(n.button.actions.includes("overwrite")){return this._manager.contents.save(this._path,{...t,contentProviderId:this._contentProviderId})}if(n.button.actions.includes("revert")){return this.revert().then((()=>e))}const i=new Error("Cancel");i.name="ModalCancelError";return Promise.reject(i)}))}_maybeOverWrite(e){const t=this._trans.__('"%1" already exists. Do you want to replace it?',e);const n=i.Dialog.warnButton({label:this._trans.__("Overwrite"),accept:true});return(0,i.showDialog)({title:this._trans.__("File Overwrite?"),body:t,buttons:[i.Dialog.cancelButton(),n]}).then((t=>{if(this.isDisposed){return Promise.reject(new Error("Disposed"))}if(t.button.accept){return this._manager.contents.delete(e).then((()=>this._finishSaveAs(e)))}else{return Promise.reject(new Error("Cancelled"))}}))}async _finishSaveAs(e){this._saveState.emit("started");try{await this._manager.ready;const t=this._createSaveOptions();await this._manager.contents.save(e,t);await this._maybeCheckpoint(true);this._saveState.emit("completed")}catch(t){if(t.message==="Cancel"||t.message==="Modal is already displayed"){throw t}const e=this._manager.contents.localPath(this._path);const n=s.PathExt.basename(e);void this._handleError(t,this._trans.__("File Save Error for %1",n));this._saveState.emit("failed");return}}_createSaveOptions(){let e=null;if(this._factory.fileFormat==="json"){e=this._model.toJSON()}else{e=this._model.toString();if(this._lineEnding){e=e.replace(/\n/g,this._lineEnding)}}return{type:this._factory.contentType,format:this._factory.fileFormat,content:e}}}var u;(function(e){function t(e,t){t=t||r.nullTranslator;const n=t.load("jupyterlab");const o=i.Dialog.okButton({label:n.__("Save"),accept:true});return(0,i.showDialog)({title:n.__("Save File As…"),body:new s(e),buttons:[i.Dialog.cancelButton(),o]}).then((e=>{var t;if(e.button.accept){return(t=e.value)!==null&&t!==void 0?t:undefined}return}))}e.getSavePath=t;function n(){}e.noOp=n;class s extends c.Widget{constructor(e){super({node:o(e)})}getValue(){return this.node.value}}function o(e){const t=document.createElement("input");t.value=e;return t}})(u||(u={}));var p=n(44389);var m=n(44914);function g(e,t){var n;let s=(t!==null&&t!==void 0?t:r.nullTranslator).load("jupyterlab");return i.ReactWidget.create(m.createElement("div",null,m.createElement("span",{className:"jp-ToolbarLabelComponent",title:s.__(`Document is read-only. "Save" is disabled; use "Save as…" instead`)},s.__(`%1 is read-only`,(n=e.context.contentsModel)===null||n===void 0?void 0:n.type))))}class f extends p.CodeEditor.Model{constructor(e={}){var t;super({sharedModel:e.sharedModel});this._defaultLang="";this._dirty=false;this._readOnly=false;this._contentChanged=new d.Signal(this);this._stateChanged=new d.Signal(this);this._defaultLang=(t=e.languagePreference)!==null&&t!==void 0?t:"";this._collaborationEnabled=!!e.collaborationEnabled;this.sharedModel.changed.connect(this._onStateChanged,this)}get contentChanged(){return this._contentChanged}get stateChanged(){return this._stateChanged}get dirty(){return this._dirty}set dirty(e){const t=this._dirty;if(e===t){return}this._dirty=e;this.triggerStateChange({name:"dirty",oldValue:t,newValue:e})}get readOnly(){return this._readOnly}set readOnly(e){if(e===this._readOnly){return}const t=this._readOnly;this._readOnly=e;this.triggerStateChange({name:"readOnly",oldValue:t,newValue:e})}get defaultKernelName(){return""}get defaultKernelLanguage(){return this._defaultLang}get collaborative(){return this._collaborationEnabled}toString(){return this.sharedModel.getSource()}fromString(e){this.sharedModel.setSource(e)}toJSON(){return JSON.parse(this.sharedModel.getSource()||"null")}fromJSON(e){this.fromString(JSON.stringify(e))}initialize(){return}triggerStateChange(e){this._stateChanged.emit(e)}triggerContentChange(){this._contentChanged.emit(void 0);this.dirty=true}_onStateChanged(e,t){if(t.sourceChange){this.triggerContentChange()}if(t.stateChange){t.stateChange.forEach((e=>{if(e.name==="dirty"){this.dirty=e.newValue}else if(e.oldValue!==e.newValue){this.triggerStateChange({newValue:undefined,oldValue:undefined,...e})}}))}}}class v{constructor(e){this._isDisposed=false;this._collaborative=e!==null&&e!==void 0?e:true}get name(){return"text"}get contentType(){return"file"}get fileFormat(){return"text"}get collaborative(){return this._collaborative}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed=true}createNew(e={}){const t=e.collaborationEnabled&&this.collaborative;return new f({...e,collaborationEnabled:t})}preferredLanguage(e){return""}}class _ extends v{get name(){return"base64"}get contentType(){return"file"}get fileFormat(){return"base64"}}class b{constructor(e){this._isDisposed=false;this._widgetCreated=new d.Signal(this);this._translator=e.translator||r.nullTranslator;this._name=e.name;this._label=e.label||e.name;this._readOnly=e.readOnly===undefined?false:e.readOnly;this._defaultFor=e.defaultFor?e.defaultFor.slice():[];this._defaultRendered=(e.defaultRendered||[]).slice();this._fileTypes=e.fileTypes.slice();this._modelName=e.modelName||"text";this._preferKernel=!!e.preferKernel;this._canStartKernel=!!e.canStartKernel;this._shutdownOnClose=!!e.shutdownOnClose;this._autoStartDefault=!!e.autoStartDefault;this._toolbarFactory=e.toolbarFactory;this._contentProviderId=e.contentProviderId}get widgetCreated(){return this._widgetCreated}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;d.Signal.clearData(this)}get readOnly(){return this._readOnly}get name(){return this._name}get label(){return this._label}get fileTypes(){return this._fileTypes.slice()}get modelName(){return this._modelName}get defaultFor(){return this._defaultFor.slice()}get defaultRendered(){return this._defaultRendered.slice()}get preferKernel(){return this._preferKernel}get canStartKernel(){return this._canStartKernel}get translator(){return this._translator}get shutdownOnClose(){return this._shutdownOnClose}set shutdownOnClose(e){this._shutdownOnClose=e}get autoStartDefault(){return this._autoStartDefault}set autoStartDefault(e){this._autoStartDefault=e}createNew(e,t){var n;const s=this.createNewWidget(e,t);(0,i.setToolbar)(s,(n=this._toolbarFactory)!==null&&n!==void 0?n:this.defaultToolbarFactory.bind(this));this._widgetCreated.emit(s);return s}get contentProviderId(){return this._contentProviderId}set contentProviderId(e){if(this._contentProviderId&&e!==this._contentProviderId){throw Error(`Cannot change content provider on factory with an existing provider: ${this._contentProviderId}`)}this._contentProviderId=e}defaultToolbarFactory(e){return[]}}const y="jp-mod-dirty";class w extends i.MainAreaWidget{constructor(e){var t;e.reveal=Promise.all([e.reveal,e.context.ready]);super(e);this._trans=((t=e.translator)!==null&&t!==void 0?t:r.nullTranslator).load("jupyterlab");this.context=e.context;this.context.pathChanged.connect(this._onPathChanged,this);this._onPathChanged(this.context,this.context.path);this.context.model.stateChanged.connect(this._onModelStateChanged,this);void this.context.ready.then((()=>{this._handleDirtyState()}));this.title.changed.connect(this._onTitleChanged,this)}setFragment(e){}async _onTitleChanged(e){const t=/[\/\\:]/;const n=this.title.label;const i=this.context.localPath.split("/").pop()||this.context.localPath;if(n===i){return}if(n.length>0&&!t.test(n)){const e=this.context.path;await this.context.rename(n);if(this.context.path!==e){return}}this.title.label=i}_onPathChanged(e,t){this.title.label=s.PathExt.basename(e.localPath);this.isUntitled=false}_onModelStateChanged(e,t){var n;if(t.name==="dirty"){this._handleDirtyState()}if(!this.context.model.dirty){if(((n=this.context.contentsModel)===null||n===void 0?void 0:n.writable)===false){const e=g(this);let t=this.toolbar.insertBefore("kernelName","read-only-indicator",e);if(!t){this.toolbar.addItem("read-only-indicator",e)}}}}_handleDirtyState(){if(this.context.model.dirty&&!this.title.className.includes(y)){this.title.className+=` ${y}`}else{this.title.className=this.title.className.replace(y,"")}}}var C=n(42856);class x extends c.Widget{constructor(e){super();this._changeCallback=e=>{if(!e.data||!e.data[this.mimeType]){return}const t=e.data[this.mimeType];if(typeof t==="string"){if(t!==this._context.model.toString()){this._context.model.fromString(t)}}else if(t!==null&&t!==undefined&&!a.JSONExt.deepEqual(t,this._context.model.toJSON())){this._context.model.fromJSON(t)}};this._fragment="";this._ready=new a.PromiseDelegate;this._isRendering=false;this._renderRequested=false;this.addClass("jp-MimeDocument");this.translator=e.translator||r.nullTranslator;this._trans=this.translator.load("jupyterlab");this.mimeType=e.mimeType;this._dataType=e.dataType||"string";this._context=e.context;this.renderer=e.renderer;const t=this.layout=new c.StackedLayout;t.addWidget(this.renderer);this._context.ready.then((()=>this._render())).then((()=>{if(this.node===document.activeElement){C.MessageLoop.sendMessage(this.renderer,c.Widget.Msg.ActivateRequest)}this._monitor=new s.ActivityMonitor({signal:this._context.model.contentChanged,timeout:e.renderTimeout});this._monitor.activityStopped.connect(this.update,this);this._ready.resolve(undefined)})).catch((e=>{requestAnimationFrame((()=>{this.dispose()}));void(0,i.showErrorMessage)(this._trans.__("Renderer Failure: %1",this._context.path),e)}))}[i.Printing.symbol](){return i.Printing.getPrintFunction(this.renderer)}get ready(){return this._ready.promise}setFragment(e){this._fragment=e;this.update()}dispose(){if(this.isDisposed){return}if(this._monitor){this._monitor.dispose()}this._monitor=null;super.dispose()}onUpdateRequest(e){if(this._context.isReady){void this._render();this._fragment=""}}async _render(){if(this.isDisposed){return}if(this._isRendering){this._renderRequested=true;return}this._renderRequested=false;const e=this._context;const t=e.model;const n={};if(this._dataType==="string"){n[this.mimeType]=t.toString()}else{n[this.mimeType]=t.toJSON()}const s=new o.MimeModel({data:n,callback:this._changeCallback,metadata:{fragment:this._fragment}});try{this._isRendering=true;await this.renderer.renderModel(s);this._isRendering=false;if(this._renderRequested){return this._render()}}catch(r){requestAnimationFrame((()=>{this.dispose()}));void(0,i.showErrorMessage)(this._trans.__("Renderer Failure: %1",e.path),r)}}}class S extends w{setFragment(e){this.content.setFragment(e)}}class j extends b{constructor(e){super(k.createRegistryOptions(e));this._rendermime=e.rendermime;this._renderTimeout=e.renderTimeout||1e3;this._dataType=e.dataType||"string";this._fileType=e.primaryFileType;this._factory=e.factory}createNewWidget(e){var t,n;const i=this._fileType;const s=(i===null||i===void 0?void 0:i.mimeTypes.length)?i.mimeTypes[0]:p.IEditorMimeTypeService.defaultMimeType;const o=this._rendermime.clone({resolver:e.urlResolver});let r;if(this._factory&&this._factory.mimeTypes.includes(s)){r=this._factory.createRenderer({mimeType:s,resolver:o.resolver,sanitizer:o.sanitizer,linkHandler:o.linkHandler,latexTypesetter:o.latexTypesetter,markdownParser:o.markdownParser})}else{r=o.createRenderer(s)}const a=new x({context:e,renderer:r,mimeType:s,renderTimeout:this._renderTimeout,dataType:this._dataType});a.title.icon=i===null||i===void 0?void 0:i.icon;a.title.iconClass=(t=i===null||i===void 0?void 0:i.iconClass)!==null&&t!==void 0?t:"";a.title.iconLabel=(n=i===null||i===void 0?void 0:i.iconLabel)!==null&&n!==void 0?n:"";const l=new S({content:a,context:e});return l}}var k;(function(e){function t(e){return{...e,readOnly:true}}e.createRegistryOptions=t})(k||(k={}));var I=n(4073);var T=n(34236);class E{constructor(e={}){this._modelFactories=Object.create(null);this._widgetFactories=Object.create(null);this._defaultWidgetFactory="";this._defaultWidgetFactoryOverrides=Object.create(null);this._defaultWidgetFactories=Object.create(null);this._defaultRenderedWidgetFactories=Object.create(null);this._widgetFactoriesForFileType=Object.create(null);this._fileTypes=[];this._extenders=Object.create(null);this._changed=new d.Signal(this);this._isDisposed=false;const t=e.textModelFactory;this.translator=e.translator||r.nullTranslator;if(t&&t.name!=="text"){throw new Error("Text model factory must have the name `text`")}this._modelFactories["text"]=t||new v(true);const n=e.initialFileTypes||E.getDefaultFileTypes(this.translator);n.forEach((e=>{const t={...E.getFileTypeDefaults(this.translator),...e};this._fileTypes.push(t)}))}get changed(){return this._changed}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;for(const e in this._modelFactories){this._modelFactories[e].dispose()}for(const e in this._widgetFactories){this._widgetFactories[e].dispose()}for(const e in this._extenders){this._extenders[e].length=0}this._fileTypes.length=0;d.Signal.clearData(this)}addWidgetFactory(e){const t=e.name.toLowerCase();if(!t||t==="default"){throw Error("Invalid factory name")}if(this._widgetFactories[t]){console.warn(`Duplicate registered factory ${t}`);return new l.DisposableDelegate(M.noOp)}this._widgetFactories[t]=e;for(const n of e.defaultFor||[]){if(e.fileTypes.indexOf(n)===-1){continue}if(n==="*"){this._defaultWidgetFactory=t}else{this._defaultWidgetFactories[n]=t}}for(const n of e.defaultRendered||[]){if(e.fileTypes.indexOf(n)===-1){continue}this._defaultRenderedWidgetFactories[n]=t}for(const n of e.fileTypes){if(!this._widgetFactoriesForFileType[n]){this._widgetFactoriesForFileType[n]=[]}this._widgetFactoriesForFileType[n].push(t)}this._changed.emit({type:"widgetFactory",name:t,change:"added"});return new l.DisposableDelegate((()=>{delete this._widgetFactories[t];if(this._defaultWidgetFactory===t){this._defaultWidgetFactory=""}for(const e of Object.keys(this._defaultWidgetFactories)){if(this._defaultWidgetFactories[e]===t){delete this._defaultWidgetFactories[e]}}for(const e of Object.keys(this._defaultRenderedWidgetFactories)){if(this._defaultRenderedWidgetFactories[e]===t){delete this._defaultRenderedWidgetFactories[e]}}for(const e of Object.keys(this._widgetFactoriesForFileType)){T.ArrayExt.removeFirstOf(this._widgetFactoriesForFileType[e],t);if(this._widgetFactoriesForFileType[e].length===0){delete this._widgetFactoriesForFileType[e]}}for(const e of Object.keys(this._defaultWidgetFactoryOverrides)){if(this._defaultWidgetFactoryOverrides[e]===t){delete this._defaultWidgetFactoryOverrides[e]}}this._changed.emit({type:"widgetFactory",name:t,change:"removed"})}))}addModelFactory(e){const t=e.name.toLowerCase();if(this._modelFactories[t]){console.warn(`Duplicate registered factory ${t}`);return new l.DisposableDelegate(M.noOp)}this._modelFactories[t]=e;this._changed.emit({type:"modelFactory",name:t,change:"added"});return new l.DisposableDelegate((()=>{delete this._modelFactories[t];this._changed.emit({type:"modelFactory",name:t,change:"removed"})}))}addWidgetExtension(e,t){e=e.toLowerCase();if(!(e in this._extenders)){this._extenders[e]=[]}const n=this._extenders[e];const i=T.ArrayExt.firstIndexOf(n,t);if(i!==-1){console.warn(`Duplicate registered extension for ${e}`);return new l.DisposableDelegate(M.noOp)}this._extenders[e].push(t);this._changed.emit({type:"widgetExtension",name:e,change:"added"});return new l.DisposableDelegate((()=>{T.ArrayExt.removeFirstOf(this._extenders[e],t);this._changed.emit({type:"widgetExtension",name:e,change:"removed"})}))}addFileType(e,t){const n={...E.getFileTypeDefaults(this.translator),...e,...!(e.icon||e.iconClass)&&{icon:I.fileIcon}};this._fileTypes.push(n);if(t){const e=n.name.toLowerCase();t.map((e=>e.toLowerCase())).forEach((t=>{if(!this._widgetFactoriesForFileType[e]){this._widgetFactoriesForFileType[e]=[]}if(!this._widgetFactoriesForFileType[e].includes(t)){this._widgetFactoriesForFileType[e].push(t)}}));if(!this._defaultWidgetFactories[e]){this._defaultWidgetFactories[e]=this._widgetFactoriesForFileType[e][0]}}this._changed.emit({type:"fileType",name:n.name,change:"added"});return new l.DisposableDelegate((()=>{T.ArrayExt.removeFirstOf(this._fileTypes,n);if(t){const e=n.name.toLowerCase();for(const n of t.map((e=>e.toLowerCase()))){T.ArrayExt.removeFirstOf(this._widgetFactoriesForFileType[e],n)}if(this._defaultWidgetFactories[e]===t[0].toLowerCase()){delete this._defaultWidgetFactories[e]}}this._changed.emit({type:"fileType",name:e.name,change:"removed"})}))}preferredWidgetFactories(e){const t=new Set;const n=this.getFileTypesForPath(s.PathExt.basename(e));n.forEach((e=>{if(e.name in this._defaultWidgetFactoryOverrides){t.add(this._defaultWidgetFactoryOverrides[e.name])}}));n.forEach((e=>{if(e.name in this._defaultWidgetFactories){t.add(this._defaultWidgetFactories[e.name])}}));n.forEach((e=>{if(e.name in this._defaultRenderedWidgetFactories){t.add(this._defaultRenderedWidgetFactories[e.name])}}));if(this._defaultWidgetFactory){t.add(this._defaultWidgetFactory)}for(const s of n){if(s.name in this._widgetFactoriesForFileType){for(const e of this._widgetFactoriesForFileType[s.name]){t.add(e)}}}if("*"in this._widgetFactoriesForFileType){for(const e of this._widgetFactoriesForFileType["*"]){t.add(e)}}const i=[];for(const s of t){const e=this._widgetFactories[s];if(!e){continue}const t=e.modelName||"text";if(t in this._modelFactories){i.push(e)}}return i}defaultRenderedWidgetFactory(e){const t=this.getFileTypesForPath(s.PathExt.basename(e)).map((e=>e.name));for(const n in t){if(n in this._defaultWidgetFactoryOverrides){return this._widgetFactories[this._defaultWidgetFactoryOverrides[n]]}}for(const n in t){if(n in this._defaultRenderedWidgetFactories){return this._widgetFactories[this._defaultRenderedWidgetFactories[n]]}}return this.defaultWidgetFactory(e)}defaultWidgetFactory(e){if(!e){return this._widgetFactories[this._defaultWidgetFactory]}return this.preferredWidgetFactories(e)[0]}setDefaultWidgetFactory(e,t){e=e.toLowerCase();if(!this.getFileType(e)){throw Error(`Cannot find file type ${e}`)}if(!t){if(this._defaultWidgetFactoryOverrides[e]){delete this._defaultWidgetFactoryOverrides[e]}return}if(!this.getWidgetFactory(t)){throw Error(`Cannot find widget factory ${t}`)}t=t.toLowerCase();const n=this._widgetFactoriesForFileType[e];if(t!==this._defaultWidgetFactory&&!(n&&n.includes(t))){throw Error(`Factory ${t} cannot view file type ${e}`)}this._defaultWidgetFactoryOverrides[e]=t}*widgetFactories(){for(const e in this._widgetFactories){yield this._widgetFactories[e]}}*modelFactories(){for(const e in this._modelFactories){yield this._modelFactories[e]}}*widgetExtensions(e){e=e.toLowerCase();if(e in this._extenders){for(const t of this._extenders[e]){yield t}}}*fileTypes(){for(const e of this._fileTypes){yield e}}getWidgetFactory(e){return this._widgetFactories[e.toLowerCase()]}getModelFactory(e){return this._modelFactories[e.toLowerCase()]}getFileType(e){e=e.toLowerCase();return(0,T.find)(this._fileTypes,(t=>t.name.toLowerCase()===e))}getKernelPreference(e,t,n){t=t.toLowerCase();const i=this._widgetFactories[t];if(!i){return void 0}const o=this.getModelFactory(i.modelName||"text");if(!o){return void 0}const r=o.preferredLanguage(s.PathExt.basename(e));const a=n&&n.name;const l=n&&n.id;return{id:l,name:a,language:r,shouldStart:i.preferKernel,canStart:i.canStartKernel,shutdownOnDispose:i.shutdownOnClose,autoStartDefault:i.autoStartDefault}}getFileTypeForModel(e){let t=null;if(e.name||e.path){const n=e.name||s.PathExt.basename(e.path);const i=this.getFileTypesForPath(n);if(i.length>0){t=i[0]}}switch(e.type){case"directory":if(t!==null&&t.contentType==="directory"){return t}return(0,T.find)(this._fileTypes,(e=>e.contentType==="directory"))||E.getDefaultDirectoryFileType(this.translator);case"notebook":if(t!==null&&t.contentType==="notebook"){return t}return(0,T.find)(this._fileTypes,(e=>e.contentType==="notebook"))||E.getDefaultNotebookFileType(this.translator);default:if(t!==null){return t}return this.getFileType("text")||E.getDefaultTextFileType(this.translator)}}getFileTypesForPath(e){const t=[];const n=s.PathExt.basename(e);let i=(0,T.find)(this._fileTypes,(e=>!!(e.pattern&&n.match(e.pattern)!==null)));if(i){t.push(i)}let o=M.extname(n);while(o.length>1){const e=this._fileTypes.filter((e=>e.extensions.map((e=>e.toLowerCase())).includes(o)));t.push(...e);o="."+o.split(".").slice(2).join(".")}return t}}(function(e){function t(e){e=e||r.nullTranslator;const t=e===null||e===void 0?void 0:e.load("jupyterlab");return{name:"default",displayName:t.__("default"),extensions:[],mimeTypes:[],contentType:"file",fileFormat:"text"}}e.getFileTypeDefaults=t;function n(e){e=e||r.nullTranslator;const n=e===null||e===void 0?void 0:e.load("jupyterlab");const i=t(e);return{...i,name:"text",displayName:n.__("Text"),mimeTypes:["text/plain"],extensions:[".txt"],icon:I.fileIcon}}e.getDefaultTextFileType=n;function i(e){e=e||r.nullTranslator;const n=e===null||e===void 0?void 0:e.load("jupyterlab");return{...t(e),name:"notebook",displayName:n.__("Notebook"),mimeTypes:["application/x-ipynb+json"],extensions:[".ipynb"],contentType:"notebook",fileFormat:"json",icon:I.notebookIcon}}e.getDefaultNotebookFileType=i;function s(e){e=e||r.nullTranslator;const n=e===null||e===void 0?void 0:e.load("jupyterlab");return{...t(e),name:"directory",displayName:n.__("Directory"),extensions:[],mimeTypes:["text/directory"],contentType:"directory",icon:I.folderIcon}}e.getDefaultDirectoryFileType=s;function o(e){e=e||r.nullTranslator;const t=e===null||e===void 0?void 0:e.load("jupyterlab");return[n(e),i(e),s(e),{name:"markdown",displayName:t.__("Markdown File"),extensions:[".md"],mimeTypes:["text/markdown"],icon:I.markdownIcon},{name:"PDF",displayName:t.__("PDF File"),extensions:[".pdf"],mimeTypes:["application/pdf"],icon:I.pdfIcon},{name:"python",displayName:t.__("Python File"),extensions:[".py"],mimeTypes:["text/x-python"],icon:I.pythonIcon},{name:"json",displayName:t.__("JSON File"),extensions:[".json"],mimeTypes:["application/json"],icon:I.jsonIcon},{name:"jsonl",displayName:t.__("JSONLines File"),extensions:[".jsonl",".ndjson"],mimeTypes:["text/jsonl","application/jsonl","application/json-lines"],icon:I.jsonIcon},{name:"julia",displayName:t.__("Julia File"),extensions:[".jl"],mimeTypes:["text/x-julia"],icon:I.juliaIcon},{name:"csv",displayName:t.__("CSV File"),extensions:[".csv"],mimeTypes:["text/csv"],icon:I.spreadsheetIcon},{name:"tsv",displayName:t.__("TSV File"),extensions:[".tsv"],mimeTypes:["text/csv"],icon:I.spreadsheetIcon},{name:"r",displayName:t.__("R File"),mimeTypes:["text/x-rsrc"],extensions:[".R"],icon:I.rKernelIcon},{name:"yaml",displayName:t.__("YAML File"),mimeTypes:["text/x-yaml","text/yaml"],extensions:[".yaml",".yml"],icon:I.yamlIcon},{name:"svg",displayName:t.__("Image"),mimeTypes:["image/svg+xml"],extensions:[".svg"],icon:I.imageIcon,fileFormat:"base64"},{name:"tiff",displayName:t.__("Image"),mimeTypes:["image/tiff"],extensions:[".tif",".tiff"],icon:I.imageIcon,fileFormat:"base64"},{name:"jpeg",displayName:t.__("Image"),mimeTypes:["image/jpeg"],extensions:[".jpg",".jpeg"],icon:I.imageIcon,fileFormat:"base64"},{name:"gif",displayName:t.__("Image"),mimeTypes:["image/gif"],extensions:[".gif"],icon:I.imageIcon,fileFormat:"base64"},{name:"png",displayName:t.__("Image"),mimeTypes:["image/png"],extensions:[".png"],icon:I.imageIcon,fileFormat:"base64"},{name:"bmp",displayName:t.__("Image"),mimeTypes:["image/bmp"],extensions:[".bmp"],icon:I.imageIcon,fileFormat:"base64"},{name:"webp",displayName:t.__("Image"),mimeTypes:["image/webp"],extensions:[".webp"],icon:I.imageIcon,fileFormat:"base64"},{name:"aac",displayName:t.__("Audio"),extensions:[".aac"],mimeTypes:["audio/aac"],icon:I.audioIcon,fileFormat:"base64"},{name:"midi",displayName:t.__("Audio"),extensions:[".midi",".mid"],mimeTypes:["audio/midi","audio/x-midi"],icon:I.audioIcon,fileFormat:"base64"},{name:"mp3",displayName:t.__("Audio"),extensions:[".mp3"],mimeTypes:["audio/mpeg"],icon:I.audioIcon,fileFormat:"base64"},{name:"wav",displayName:t.__("Audio"),extensions:[".wav"],mimeTypes:["audio/wav","audio/x-wav"],icon:I.audioIcon,fileFormat:"base64"},{name:"ogg",displayName:t.__("Audio"),extensions:[".ogg"],mimeTypes:["audio/ogg"],icon:I.audioIcon,fileFormat:"base64"},{name:"m4a",displayName:t.__("Audio"),extensions:[".m4a"],mimeTypes:["audio/mp4"],icon:I.audioIcon,fileFormat:"base64"},{name:"flac",displayName:t.__("Audio"),extensions:[".flac"],mimeTypes:["audio/flac"],icon:I.audioIcon,fileFormat:"base64"},{name:"opus",displayName:t.__("Audio"),extensions:[".opus"],mimeTypes:["audio/opus"],icon:I.audioIcon,fileFormat:"base64"},{name:"mp4",displayName:t.__("Video"),extensions:[".mp4"],mimeTypes:["video/mp4"],fileFormat:"base64",icon:I.videoIcon},{name:"mpeg",displayName:t.__("Video"),extensions:[".mpeg"],mimeTypes:["video/mpeg"],fileFormat:"base64",icon:I.videoIcon},{name:"webm",displayName:t.__("Video"),extensions:[".webm"],mimeTypes:["video/webm"],fileFormat:"base64",icon:I.videoIcon},{name:"ogv",displayName:t.__("Video"),extensions:[".ogv",".ogg"],mimeTypes:["video/ogg"],fileFormat:"base64",icon:I.videoIcon},{name:"avi",displayName:t.__("Video"),extensions:[".avi"],mimeTypes:["video/x-msvideo"],fileFormat:"base64",icon:I.videoIcon},{name:"mov",displayName:t.__("Video"),extensions:[".mov"],mimeTypes:["video/quicktime"],fileFormat:"base64",icon:I.videoIcon},{name:"m4v",displayName:t.__("Video"),extensions:[".m4v"],mimeTypes:["video/mp4","video/x-m4v"],fileFormat:"base64",icon:I.videoIcon},{name:"3gp",displayName:t.__("Video"),extensions:[".3gp"],mimeTypes:["video/3gpp"],fileFormat:"base64",icon:I.videoIcon},{name:"mkv",displayName:t.__("Video"),extensions:[".mkv"],mimeTypes:["video/x-matroska"],fileFormat:"base64",icon:I.videoIcon}]}e.getDefaultFileTypes=o})(E||(E={}));var M;(function(e){function t(e){const t=s.PathExt.basename(e).split(".");t.shift();const n="."+t.join(".");return n.toLowerCase()}e.extname=t;function n(){}e.noOp=n})(M||(M={}));async function D(e){var t,n;const i=new Map([["python",[{name:"Python",extensions:[".py"],icon:"ui-components:python",displayName:"Python",mimeTypes:["text/plain"]}]],["julia",[{name:"Julia",extensions:[".jl"],icon:"ui-components:julia",displayName:"Julia",mimeTypes:["text/plain"]}]],["R",[{name:"R",extensions:[".r"],icon:"ui-components:r-kernel",displayName:"R",mimeTypes:["text/plain"]}]]]);await e.ready;let s=new Set;const o=(n=(t=e.specs)===null||t===void 0?void 0:t.kernelspecs)!==null&&n!==void 0?n:{};Object.keys(o).forEach((e=>{const t=o[e];if(t){const e=i.get(t.language);e===null||e===void 0?void 0:e.forEach((e=>s.add(e)))}}));return s}},79010:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(85072);var a=n.n(r);var l=n(97825);var d=n.n(l);var c=n(77659);var h=n.n(c);var u=n(55056);var p=n.n(u);var m=n(10540);var g=n.n(m);var f=n(41113);var v=n.n(f);var _=n(79993);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.A,b);const w=_.A&&_.A.locals?_.A.locals:undefined},68201:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>w});var i=n(88617);var s=n.n(i);var o=n(38850);var r=n.n(o);var a=n(41043);var l=n.n(a);var d=n(40065);var c=n.n(d);var h=n(34881);var u=n.n(h);var p=n(27518);var m=n.n(p);const g="jp-mod-searchable";const f="jp-mod-search-active";var v;(function(e){e.search="documentsearch:start";e.searchAndReplace="documentsearch:startWithReplace";e.findNext="documentsearch:highlightNext";e.findPrevious="documentsearch:highlightPrevious";e.end="documentsearch:end";e.toggleSearchInSelection="documentsearch:toggleSearchInSelection"})(v||(v={}));const _={id:"@jupyterlab/documentsearch-extension:labShellWidgetListener",description:"Active search on valid document",requires:[i.ILabShell,a.ISearchProviderRegistry],autoStart:true,activate:(e,t,n)=>{const i=e=>{if(!e){return}if(n.hasProvider(e)){e.addClass(g)}else{e.removeClass(g)}};n.changed.connect((()=>i(t.activeWidget)));t.activeChanged.connect(((e,t)=>{const n=t.oldValue;if(n){n.removeClass(g)}i(t.newValue)}))}};class b{constructor(e){this._commandRegistry=e;this._cache=this._buildCache();this._commandRegistry.keyBindingChanged.connect(this._rebuildCache,this)}get next(){return this._cache.next}get previous(){return this._cache.previous}get toggleSearchInSelection(){return this._cache.toggleSearchInSelection}_rebuildCache(){this._cache=this._buildCache()}_buildCache(){const e=this._commandRegistry.keyBindings.find((e=>e.command===v.findNext));const t=this._commandRegistry.keyBindings.find((e=>e.command===v.findPrevious));const n=this._commandRegistry.keyBindings.find((e=>e.command===v.toggleSearchInSelection));return{next:e,previous:t,toggleSearchInSelection:n}}dispose(){this._commandRegistry.keyBindingChanged.disconnect(this._rebuildCache,this)}}const y={id:"@jupyterlab/documentsearch-extension:plugin",description:"Provides the document search registry.",provides:a.ISearchProviderRegistry,requires:[h.ITranslator],optional:[o.ICommandPalette,d.ISettingRegistry],autoStart:true,activate:(e,t,n,i)=>{var s;const r=t.load("jupyterlab");let l=500;let d="never";const c=new a.SearchProviderRegistry(t);const h=new Map;if(i){const t=i.load(y.id);const n=e=>{l=e.get("searchDebounceTime").composite;d=e.get("autoSearchInSelection").composite};Promise.all([t,e.restored]).then((([e])=>{n(e);e.changed.connect((e=>{n(e)}))})).catch((e=>{console.error(e.message)}))}const u=()=>{const t=e.shell.currentWidget;if(!t){return false}return c.hasProvider(t)};const m=n=>{if(!n){return}const i=n.id;let s=h.get(i);if(!s){const o=c.getProvider(n);if(!o){return}const r=new a.SearchDocumentModel(o,l);const d=new b(e.commands);const u=new a.SearchDocumentView(r,t,d);h.set(i,u);[v.findNext,v.findPrevious,v.end,v.toggleSearchInSelection].forEach((t=>{e.commands.notifyCommandChanged(t)}));u.closed.connect((()=>{if(!n.isDisposed){n.activate();n.removeClass(f)}}));u.disposed.connect((()=>{if(!n.isDisposed){n.activate();n.removeClass(f)}h.delete(i);[v.findNext,v.findPrevious,v.end,v.toggleSearchInSelection].forEach((t=>{e.commands.notifyCommandChanged(t)}))}));n.disposed.connect((()=>{u.dispose();r.dispose();o.dispose();d.dispose()}));s=u}if(!s.isAttached){p.Widget.attach(s,n.node);n.addClass(f);if(n instanceof o.MainAreaWidget){s.node.style.top=`${n.toolbar.node.getBoundingClientRect().height+n.contentHeader.node.getBoundingClientRect().height}px`}if(s.model.searchExpression){s.model.refresh()}}return s};e.commands.addCommand(v.search,{label:r.__("Find…"),isEnabled:u,describedBy:{args:{type:"object",properties:{searchText:{type:"string",description:r.__("The text to search for")}}}},execute:async t=>{const n=m(e.shell.currentWidget);if(n){const e=t["searchText"];if(e){n.setSearchText(e)}else{n.setSearchText(n.model.suggestedInitialQuery)}const i=n.model.selectionState;let s=false;switch(d){case"multiple-selected":s=i==="multiple";break;case"any-selected":s=i==="multiple"||i==="single";break;case"never":break}if(s){await n.model.setFilter("selection",true)}n.focusSearchInput()}}});e.commands.addCommand(v.searchAndReplace,{label:r.__("Find and Replace…"),isEnabled:u,describedBy:{args:{type:"object",properties:{searchText:{type:"string",description:r.__("The text to search for")},replaceText:{type:"string",description:r.__("The text to replace with")}}}},execute:t=>{const n=m(e.shell.currentWidget);if(n){const e=t["searchText"];if(e){n.setSearchText(e)}else{n.setSearchText(n.model.suggestedInitialQuery)}const i=t["replaceText"];if(i){n.setReplaceText(i)}n.showReplace();n.focusSearchInput()}}});e.commands.addCommand(v.findNext,{label:r.__("Find Next"),isEnabled:()=>!!e.shell.currentWidget&&h.has(e.shell.currentWidget.id),describedBy:{args:{type:"object",properties:{}}},execute:async()=>{var t;const n=e.shell.currentWidget;if(!n){return}await((t=h.get(n.id))===null||t===void 0?void 0:t.model.highlightNext())}});e.commands.addCommand(v.findPrevious,{label:r.__("Find Previous"),isEnabled:()=>!!e.shell.currentWidget&&h.has(e.shell.currentWidget.id),describedBy:{args:{type:"object",properties:{}}},execute:async()=>{var t;const n=e.shell.currentWidget;if(!n){return}await((t=h.get(n.id))===null||t===void 0?void 0:t.model.highlightPrevious())}});e.commands.addCommand(v.end,{label:r.__("End Search"),isEnabled:()=>!!e.shell.currentWidget&&h.has(e.shell.currentWidget.id),describedBy:{args:{type:"object",properties:{}}},execute:async()=>{var t;const n=e.shell.currentWidget;if(!n){return}(t=h.get(n.id))===null||t===void 0?void 0:t.close()}});e.commands.addCommand(v.toggleSearchInSelection,{label:r.__("Search in Selection"),isEnabled:()=>!!e.shell.currentWidget&&h.has(e.shell.currentWidget.id)&&"selection"in h.get(e.shell.currentWidget.id).model.filtersDefinition,describedBy:{args:{type:"object",properties:{}}},execute:async()=>{var t;const n=e.shell.currentWidget;if(!n){return}const i=(t=h.get(n.id))===null||t===void 0?void 0:t.model;if(!i){return}const s=i.filters["selection"];return i.setFilter("selection",!s)}});(s=e.shell.currentChanged)===null||s===void 0?void 0:s.connect((()=>{Object.values(v).forEach((t=>{e.commands.notifyCommandChanged(t)}))}));if(n){[v.search,v.findNext,v.findPrevious,v.end,v.toggleSearchInSelection].forEach((e=>{n.addItem({command:e,category:r.__("Main Area")})}))}return c}};const w=[y,_]},13067:(e,t,n)=>{"use strict";var i=n(10395);var s=n(97913);var o=n(3579);var r=n(19562)},42866:(e,t,n)=>{"use strict";n.r(t);n.d(t,{FOUND_CLASSES:()=>a,GenericSearchProvider:()=>c,HTMLSearchEngine:()=>d,ISearchProviderRegistry:()=>se,SearchDocumentModel:()=>g,SearchDocumentView:()=>ee,SearchProvider:()=>o,SearchProviderRegistry:()=>ne,TextSearchEngine:()=>u});var i=n(27518);var s=n(2336);class o{constructor(e){this.widget=e;this._stateChanged=new s.Signal(this);this._filtersChanged=new s.Signal(this);this._disposed=false}get stateChanged(){return this._stateChanged}get filtersChanged(){return this._filtersChanged}get currentMatchIndex(){return null}get isDisposed(){return this._disposed}get matchesCount(){return null}dispose(){if(this._disposed){return}this._disposed=true;s.Signal.clearData(this)}getInitialQuery(){return""}getFilters(){return{}}static preserveCase(e,t){if(e.toUpperCase()===e){return t.toUpperCase()}if(e.toLowerCase()===e){return t.toLowerCase()}if(r(e)===e){return r(t)}return t}}function r([e="",...t]){return e.toUpperCase()+""+t.join("").toLowerCase()}const a=["cm-string","cm-overlay","cm-searching"];const l=["CodeMirror-selectedtext","jp-current-match"];class d{static search(e,t){if(!(t instanceof Node)){console.warn("Unable to search with HTMLSearchEngine the provided object.",t);return Promise.resolve([])}if(!e.global){e=new RegExp(e.source,e.flags+"g")}const n=[];const i=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,{acceptNode:n=>{let i=n.parentElement;while(i!==t){if(i.nodeName in d.UNSUPPORTED_ELEMENTS){return NodeFilter.FILTER_REJECT}i=i.parentElement}return e.test(n.textContent)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let s=null;while((s=i.nextNode())!==null){e.lastIndex=0;let t=null;while((t=e.exec(s.textContent))!==null){n.push({text:t[0],position:t.index,node:s})}}return Promise.resolve(n)}}d.UNSUPPORTED_ELEMENTS={BASE:true,HEAD:true,LINK:true,META:true,STYLE:true,TITLE:true,BODY:true,AREA:true,AUDIO:true,IMG:true,MAP:true,TRACK:true,VIDEO:true,APPLET:true,EMBED:true,IFRAME:true,NOEMBED:true,OBJECT:true,PARAM:true,PICTURE:true,SOURCE:true,CANVAS:true,NOSCRIPT:true,SCRIPT:true,svg:true,SVG:true};class c extends o{constructor(){super(...arguments);this.isReadOnly=true;this._matches=[];this._mutationObserver=new MutationObserver(this._onWidgetChanged.bind(this));this._markNodes=new Array}static isApplicable(e){return e instanceof i.Widget}static createNew(e,t,n){return new c(e)}get currentMatchIndex(){return this._currentMatchIndex>=0?this._currentMatchIndex:null}get currentMatch(){var e;return(e=this._matches[this._currentMatchIndex])!==null&&e!==void 0?e:null}get matches(){return this._matches?this._matches.map((e=>Object.assign({},e))):this._matches}get matchesCount(){return this._matches.length}clearHighlight(){if(this._currentMatchIndex>=0){const e=this._markNodes[this._currentMatchIndex];e.classList.remove(...l)}this._currentMatchIndex=-1;return Promise.resolve()}dispose(){if(this.isDisposed){return}this.endQuery().catch((e=>{console.error(`Failed to end search query.`,e)}));super.dispose()}async highlightNext(e){var t;return(t=this._highlightNext(false,e!==null&&e!==void 0?e:true))!==null&&t!==void 0?t:undefined}async highlightPrevious(e){var t;return(t=this._highlightNext(true,e!==null&&e!==void 0?e:true))!==null&&t!==void 0?t:undefined}async replaceCurrentMatch(e,t){return Promise.resolve(false)}async replaceAllMatches(e){return Promise.resolve(false)}async startQuery(e,t={}){await this.endQuery();this._query=e;if(e===null){return Promise.resolve()}const n=await d.search(e,this.widget.node);let i=0;while(i{const i=document.createElement("mark");i.classList.add(...a);i.textContent=n.text;const s=e.splitText(n.position);s.textContent=s.textContent.slice(n.text.length);t.insertBefore(i,s);return i}));for(let n=o.length-1;n>=0;n--){this._markNodes.push(o[n])}}this._mutationObserver.observe(this.widget.node,{attributes:false,characterData:true,childList:true,subtree:true});this._matches=n}async endQuery(){this._mutationObserver.disconnect();this._markNodes.forEach((e=>{const t=e.parentNode;t.replaceChild(document.createTextNode(e.textContent),e);t.normalize()}));this._markNodes=[];this._matches=[];this._currentMatchIndex=-1}_highlightNext(e,t){if(this._matches.length===0){return null}if(this._currentMatchIndex===-1){this._currentMatchIndex=e?this.matches.length-1:0}else{const n=this._markNodes[this._currentMatchIndex];n.classList.remove(...l);this._currentMatchIndex=e?this._currentMatchIndex-1:this._currentMatchIndex+1;if(t&&(this._currentMatchIndex<0||this._currentMatchIndex>=this._matches.length)){this._currentMatchIndex=(this._currentMatchIndex+this._matches.length)%this._matches.length}}if(this._currentMatchIndex>=0&&this._currentMatchIndex=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.left>=0&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}const u={search(e,t){if(typeof t!=="string"){try{t=JSON.stringify(t)}catch(s){console.warn("Unable to search with TextSearchEngine non-JSON serializable object.",s,t);return Promise.resolve([])}}if(!e.global){e=new RegExp(e.source,e.flags+"g")}const n=new Array;let i=null;while((i=e.exec(t))!==null){n.push({text:i[0],position:i.index})}return Promise.resolve(n)}};var p=n(4073);var m=n(26568);class g extends p.VDomModel{constructor(e,t){super();this.searchProvider=e;this._caseSensitive=false;this._disposed=new s.Signal(this);this._parsingError="";this._preserveCase=false;this._initialQuery="";this._filters={};this._replaceText="";this._searchActive=false;this._searchExpression="";this._useRegex=false;this._wholeWords=false;this._filters={};if(this.searchProvider.getFilters){const e=this.searchProvider.getFilters();for(const t in e){this._filters[t]=e[t].default}}e.stateChanged.connect(this._onProviderStateChanged,this);this._searchDebouncer=new m.Debouncer((()=>{this._updateSearch().catch((e=>{console.error("Failed to update search on document.",e)}))}),t)}get caseSensitive(){return this._caseSensitive}set caseSensitive(e){if(this._caseSensitive!==e){this._caseSensitive=e;this.stateChanged.emit();this.refresh()}}get currentIndex(){return this.searchProvider.currentMatchIndex}get disposed(){return this._disposed}get filters(){return this._filters}get filtersDefinition(){var e,t,n;return(n=(t=(e=this.searchProvider).getFilters)===null||t===void 0?void 0:t.call(e))!==null&&n!==void 0?n:{}}get filtersDefinitionChanged(){return this.searchProvider.filtersChanged||null}get initialQuery(){return this._initialQuery}set initialQuery(e){this._initialQuery=e}get suggestedInitialQuery(){return this.searchProvider.getInitialQuery()}get selectionState(){return this.searchProvider.getSelectionState?this.searchProvider.getSelectionState():undefined}get isReadOnly(){return this.searchProvider.isReadOnly}get replaceOptionsSupport(){return this.searchProvider.replaceOptionsSupport}get parsingError(){return this._parsingError}get preserveCase(){return this._preserveCase}set preserveCase(e){if(this._preserveCase!==e){this._preserveCase=e;this.stateChanged.emit();this.refresh()}}get replaceText(){return this._replaceText}set replaceText(e){if(this._replaceText!==e){this._replaceText=e;this.stateChanged.emit()}}get searchExpression(){return this._searchExpression}set searchExpression(e){if(this._searchExpression!==e){this._searchExpression=e;this.stateChanged.emit();this.refresh()}}get totalMatches(){return this.searchProvider.matchesCount}get useRegex(){return this._useRegex}set useRegex(e){if(this._useRegex!==e){this._useRegex=e;this.stateChanged.emit();this.refresh()}}get wholeWords(){return this._wholeWords}set wholeWords(e){if(this._wholeWords!==e){this._wholeWords=e;this.stateChanged.emit();this.refresh()}}dispose(){if(this.isDisposed){return}if(this._searchExpression){this.endQuery().catch((e=>{console.error(`Failed to end query '${this._searchExpression}.`,e)}))}this.searchProvider.stateChanged.disconnect(this._onProviderStateChanged,this);this._searchDebouncer.dispose();super.dispose()}async endQuery(){this._searchActive=false;await this.searchProvider.endQuery();this.stateChanged.emit()}async highlightNext(){await this.searchProvider.highlightNext();this.stateChanged.emit()}async highlightPrevious(){await this.searchProvider.highlightPrevious();this.stateChanged.emit()}refresh(){this._searchDebouncer.invoke().catch((e=>{console.error("Failed to invoke search document debouncer.",e)}))}async replaceAllMatches(){await this.searchProvider.replaceAllMatches(this._replaceText,{preserveCase:this.preserveCase,regularExpression:this.useRegex});this.stateChanged.emit()}async replaceCurrentMatch(){await this.searchProvider.replaceCurrentMatch(this._replaceText,true,{preserveCase:this.preserveCase,regularExpression:this.useRegex});this.stateChanged.emit()}async setFilter(e,t){if(this._filters[e]!==t){if(this.searchProvider.validateFilter){this._filters[e]=await this.searchProvider.validateFilter(e,t);if(this._filters[e]===t){this.stateChanged.emit();this.refresh()}}else{this._filters[e]=t;this.stateChanged.emit();this.refresh()}}}async _updateSearch(){if(this._parsingError){this._parsingError="";this.stateChanged.emit()}try{const e=this.searchExpression?f.parseQuery(this.searchExpression,this.caseSensitive,this.useRegex,this.wholeWords):null;if(e){this._searchActive=true;await this.searchProvider.startQuery(e,this._filters)}else{this._searchActive=false;await this.searchProvider.endQuery()}this.stateChanged.emit()}catch(e){this._parsingError=e.toString();this.stateChanged.emit();console.error(`Failed to parse expression ${this.searchExpression}`,e)}}_onProviderStateChanged(){if(this._searchActive){this.refresh()}}}var f;(function(e){function t(e,t,n,i){const s=t?"gm":"gim";let o=n?e:e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&");if(i){o="\\b"+o+"\\b"}const r=new RegExp(o,s);if(r.test("")){return null}return r}e.parseQuery=t})(f||(f={}));var v=n(34881);var _=n(93247);var b=n(38850);var y=n(44914);const w="jp-DocumentSearch-overlay";const C="jp-DocumentSearch-overlay-row";const x="jp-DocumentSearch-input";const S="jp-DocumentSearch-input-label";const j="jp-DocumentSearch-input-wrapper";const k="jp-DocumentSearch-input-button-off";const I="jp-DocumentSearch-input-button-on";const T="jp-DocumentSearch-index-counter";const E="jp-DocumentSearch-up-down-wrapper";const M="jp-DocumentSearch-up-down-button";const D="jp-DocumentSearch-filter-button";const A="jp-DocumentSearch-filter-button-enabled";const P="jp-DocumentSearch-regex-error";const L="jp-DocumentSearch-search-options";const R="jp-DocumentSearch-search-filter-disabled";const N="jp-DocumentSearch-search-filter";const B="jp-DocumentSearch-replace-button";const O="jp-DocumentSearch-replace-button-wrapper";const F="jp-DocumentSearch-replace-wrapper-class";const z="jp-DocumentSearch-replace-toggle";const W="jp-DocumentSearch-toggle-wrapper";const H="jp-DocumentSearch-toggle-placeholder";const V="jp-DocumentSearch-button-content";const U="jp-DocumentSearch-button-wrapper";const q="jp-DocumentSearch-spacer";function $(e){const[t,n]=(0,y.useState)(1);const i=(0,y.useCallback)((t=>{var i;const s=t?t.target:(i=e.inputRef)===null||i===void 0?void 0:i.current;if(s){const e=s.value.split(/\n/);let t=e.reduce(((e,t)=>e.length>t.length?e:t),"");if(s.parentNode&&s.parentNode instanceof HTMLElement){s.parentNode.dataset.value=t}n(e.length)}}),[]);(0,y.useEffect)((()=>{var t,n;(n=(t=e.inputRef)===null||t===void 0?void 0:t.current)===null||n===void 0?void 0:n.select();i()}),[e.initialValue]);return y.createElement("label",{className:S},y.createElement("textarea",{onChange:t=>{e.onChange(t);i(t)},onKeyDown:t=>{e.onKeyDown(t);i(t)},rows:t,placeholder:e.placeholder,className:x,key:e.autoUpdate?e.initialValue:null,tabIndex:0,ref:e.inputRef,title:e.title,defaultValue:e.initialValue||e.lastSearchText,autoFocus:e.autoFocus}))}function K(e){var t;const n=((t=e.translator)!==null&&t!==void 0?t:v.nullTranslator).load("jupyterlab");const i=(0,p.classes)(e.caseSensitive?I:k,V);const s=(0,p.classes)(e.useRegex?I:k,V);const o=(0,p.classes)(e.wholeWords?I:k,V);const r=j;return y.createElement("div",{className:r},y.createElement($,{placeholder:n.__("Find"),onChange:t=>e.onChange(t),onKeyDown:t=>e.onKeydown(t),inputRef:e.inputRef,initialValue:e.initialSearchText,lastSearchText:e.lastSearchText,title:n.__("Find"),autoFocus:true,autoUpdate:true}),y.createElement("button",{className:U,onClick:()=>{e.onCaseSensitiveToggled()},tabIndex:0,title:n.__("Match Case")},y.createElement(p.caseSensitiveIcon.react,{className:i,tag:"span"})),y.createElement("button",{className:U,onClick:()=>e.onWordToggled(),tabIndex:0,title:n.__("Match Whole Word")},y.createElement(p.wordIcon.react,{className:o,tag:"span"})),y.createElement("button",{className:U,onClick:()=>e.onRegexToggled(),tabIndex:0,title:n.__("Use Regular Expression")},y.createElement(p.regexIcon.react,{className:s,tag:"span"})))}function J(e){var t,n,i;const s=((t=e.translator)!==null&&t!==void 0?t:v.nullTranslator).load("jupyterlab");const o=(0,p.classes)(e.preserveCase?I:k,V);return y.createElement("div",{className:F},y.createElement("div",{className:j},y.createElement($,{placeholder:s.__("Replace"),initialValue:(n=e.replaceText)!==null&&n!==void 0?n:"",onKeyDown:t=>e.onReplaceKeydown(t),onChange:t=>e.onChange(t),title:s.__("Replace"),autoFocus:false,autoUpdate:false}),((i=e.replaceOptionsSupport)===null||i===void 0?void 0:i.preserveCase)?y.createElement("button",{className:U,onClick:()=>e.onPreserveCaseToggled(),tabIndex:0,title:s.__("Preserve Case")},y.createElement(p.caseSensitiveIcon.react,{className:o,tag:"span"})):null),y.createElement("button",{className:O,onClick:()=>e.onReplaceCurrent(),tabIndex:0},y.createElement("span",{className:`${B} ${V}`,tabIndex:0},s.__("Replace"))),y.createElement("button",{className:O,tabIndex:0,onClick:()=>e.onReplaceAll()},y.createElement("span",{className:`${B} ${V}`,tabIndex:-1},s.__("Replace All"))))}function G(e){var t,n;const i=(t=e.keyBindings)===null||t===void 0?void 0:t.next;const s=(n=e.keyBindings)===null||n===void 0?void 0:n.previous;const o=i?_.CommandRegistry.formatKeystroke(i.keys):"";const r=s?_.CommandRegistry.formatKeystroke(s.keys):"";const a=r?` (${r})`:"";const l=o?` (${o})`:"";const d=y.createElement("button",{className:U,onClick:()=>e.isEnabled?e.onHighlightPrevious():false,tabIndex:0,title:`${e.trans.__("Previous Match")}${a}`,disabled:!e.isEnabled},y.createElement(p.caretUpEmptyThinIcon.react,{className:(0,p.classes)(M,V),tag:"span"}));const c=y.createElement("button",{className:U,onClick:()=>e.isEnabled?e.onHighlightNext():false,tabIndex:0,title:`${e.trans.__("Next Match")}${l}`,disabled:!e.isEnabled},y.createElement(p.caretDownEmptyThinIcon.react,{className:(0,p.classes)(M,V),tag:"span"}));return y.createElement("div",{className:E},d,c)}function Y(e){return y.createElement("div",{className:T},e.totalMatches===0?"-/-":`${e.currentIndex===null?"-":e.currentIndex+1}/${e.totalMatches}`)}function X(e){let t=`${D} ${V}`;if(e.visible){t=`${t} ${A}`}const n=e.anyEnabled?p.filterDotIcon:p.filterIcon;return y.createElement("button",{className:U,onClick:()=>e.toggleVisible(),tabIndex:0,title:e.visible?e.trans.__("Hide Search Filters"):e.trans.__("Show Search Filters")},y.createElement(n.react,{className:t,tag:"span",height:"20px",width:"20px"}))}function Q(e){return y.createElement("label",{className:e.isEnabled?N:`${N} ${R}`,title:e.description},y.createElement("input",{type:"checkbox",className:"jp-mod-styled",disabled:!e.isEnabled,checked:e.value,onChange:e.onToggle}),e.title)}class Z extends y.Component{constructor(e){super(e);this.translator=e.translator||v.nullTranslator}_onSearchChange(e){const t=e.target.value;this.props.onSearchChanged(t)}_onSearchKeydown(e){if(e.keyCode===13){e.stopPropagation();e.preventDefault();if(e.ctrlKey){const t=e.target;this._insertNewLine(t);this.props.onSearchChanged(t.value)}else{e.shiftKey?this.props.onHighlightPrevious():this.props.onHighlightNext()}}}_onReplaceKeydown(e){if(e.keyCode===13){e.stopPropagation();e.preventDefault();if(e.ctrlKey){this._insertNewLine(e.target)}else{this.props.onReplaceCurrent()}}}_insertNewLine(e){const[t,n]=[e.selectionStart,e.selectionEnd];e.setRangeText("\n",t,n,"end")}_onClose(){this.props.onClose()}_onReplaceToggled(){if(!this.props.replaceEntryVisible){for(const e in this.props.filtersDefinition){const t=this.props.filtersDefinition[e];if(!t.supportReplace){this.props.onFilterChanged(e,false).catch((e=>{console.error(`Fail to update filter value for ${t.title}:\n${e}`)}))}}}this.props.onReplaceEntryShown(!this.props.replaceEntryVisible)}_toggleFiltersVisibility(){this.props.onFiltersVisibilityChanged(!this.props.filtersVisible)}render(){var e,t,n;const i=this.translator.load("jupyterlab");const s=!this.props.isReadOnly&&this.props.replaceEntryVisible;const o=this.props.filtersDefinition;const r=Object.keys(o).length>0;const a=r?y.createElement(X,{visible:this.props.filtersVisible,anyEnabled:Object.keys(o).some((e=>{var t;const n=o[e];return(t=this.props.filters[e])!==null&&t!==void 0?t:n.default})),toggleVisible:()=>this._toggleFiltersVisibility(),trans:i}):null;const l=(e=this.props.keyBindings)===null||e===void 0?void 0:e.toggleSearchInSelection;const d=l?_.CommandRegistry.formatKeystroke(l.keys):"";const c=d?` (${d})`:"";const h=r?y.createElement("div",{className:L},Object.keys(o).map((e=>{var t,n;const i=o[e];const r=!s||i.supportReplace;const a=r?i.description:(t=i.disabledDescription)!==null&&t!==void 0?t:i.description;return y.createElement(Q,{key:e,title:i.title,description:a+(e=="selection"?c:""),isEnabled:r,onToggle:async()=>{await this.props.onFilterChanged(e,!this.props.filters[e])},value:(n=this.props.filters[e])!==null&&n!==void 0?n:i.default})}))):null;const u=this.props.replaceEntryVisible?p.caretDownIcon:p.caretRightIcon;return y.createElement(y.Fragment,null,y.createElement("div",{className:C},this.props.isReadOnly?y.createElement("div",{className:H}):y.createElement("button",{className:W,onClick:()=>this._onReplaceToggled(),tabIndex:0,title:s?i.__("Hide Replace"):i.__("Show Replace")},y.createElement(u.react,{className:`${z} ${V}`,tag:"span",elementPosition:"center",height:"20px",width:"20px"})),y.createElement(K,{inputRef:this.props.searchInputRef,useRegex:this.props.useRegex,caseSensitive:this.props.caseSensitive,wholeWords:this.props.wholeWords,onCaseSensitiveToggled:this.props.onCaseSensitiveToggled,onRegexToggled:this.props.onRegexToggled,onWordToggled:this.props.onWordToggled,onKeydown:e=>this._onSearchKeydown(e),onChange:e=>this._onSearchChange(e),initialSearchText:this.props.initialSearchText,lastSearchText:this.props.lastSearchText,translator:this.translator}),a,y.createElement(Y,{currentIndex:this.props.currentIndex,totalMatches:(t=this.props.totalMatches)!==null&&t!==void 0?t:0}),y.createElement(G,{onHighlightPrevious:()=>{this.props.onHighlightPrevious()},onHighlightNext:()=>{this.props.onHighlightNext()},trans:i,keyBindings:this.props.keyBindings,isEnabled:!!((n=this.props.searchInputRef.current)===null||n===void 0?void 0:n.value)}),y.createElement("button",{className:U,onClick:()=>this._onClose(),tabIndex:0,title:i.__("Close Search Box")},y.createElement(p.closeIcon.react,{className:"jp-icon-hover",elementPosition:"center",height:"16px",width:"16px"}))),y.createElement("div",{className:C},s?y.createElement(y.Fragment,null,y.createElement(J,{onPreserveCaseToggled:this.props.onPreserveCaseToggled,onReplaceKeydown:e=>this._onReplaceKeydown(e),onChange:e=>this.props.onReplaceChanged(e.target.value),onReplaceCurrent:()=>this.props.onReplaceCurrent(),onReplaceAll:()=>this.props.onReplaceAll(),replaceOptionsSupport:this.props.replaceOptionsSupport,replaceText:this.props.replaceText,preserveCase:this.props.preserveCase,translator:this.translator}),y.createElement("div",{className:q})):null),this.props.filtersVisible?h:null,!!this.props.errorMessage&&y.createElement("div",{className:P},this.props.errorMessage))}}class ee extends p.VDomRenderer{constructor(e,t,n){super(e);this.translator=t;this._showReplace=false;this._showFilters=false;this._closed=new s.Signal(this);this.addClass(w);this._searchInput=y.createRef();this._keyBindings=n}get closed(){return this._closed}focusSearchInput(){var e;(e=this._searchInput.current)===null||e===void 0?void 0:e.select()}setSearchText(e){this.model.initialQuery=e;if(e){this.model.searchExpression=e}}setReplaceText(e){this.model.replaceText=e}showReplace(){this.setReplaceInputVisibility(true)}onCloseRequest(e){super.onCloseRequest(e);this._closed.emit();void this.model.endQuery()}setReplaceInputVisibility(e){if(this._showReplace!==e){this._showReplace=e;this.update()}}setFiltersVisibility(e){if(this._showFilters!==e){this._showFilters=e;this.update()}}render(){return this.model.filtersDefinitionChanged?y.createElement(b.UseSignal,{signal:this.model.filtersDefinitionChanged},(()=>this._renderOverlay())):this._renderOverlay()}_renderOverlay(){return y.createElement(Z,{caseSensitive:this.model.caseSensitive,currentIndex:this.model.currentIndex,isReadOnly:this.model.isReadOnly,errorMessage:this.model.parsingError,filters:this.model.filters,filtersDefinition:this.model.filtersDefinition,preserveCase:this.model.preserveCase,replaceEntryVisible:this._showReplace,filtersVisible:this._showFilters,replaceOptionsSupport:this.model.replaceOptionsSupport,replaceText:this.model.replaceText,initialSearchText:this.model.initialQuery,lastSearchText:this.model.searchExpression,searchInputRef:this._searchInput,totalMatches:this.model.totalMatches,translator:this.translator,useRegex:this.model.useRegex,wholeWords:this.model.wholeWords,onCaseSensitiveToggled:()=>{this.model.caseSensitive=!this.model.caseSensitive},onRegexToggled:()=>{this.model.useRegex=!this.model.useRegex},onWordToggled:()=>{this.model.wholeWords=!this.model.wholeWords},onFilterChanged:async(e,t)=>{await this.model.setFilter(e,t)},onFiltersVisibilityChanged:e=>{this.setFiltersVisibility(e)},onHighlightNext:()=>{void this.model.highlightNext()},onHighlightPrevious:()=>{void this.model.highlightPrevious()},onPreserveCaseToggled:()=>{this.model.preserveCase=!this.model.preserveCase},onSearchChanged:e=>{this.model.searchExpression=e},onClose:()=>{this.close()},onReplaceEntryShown:e=>{this.setReplaceInputVisibility(e)},onReplaceChanged:e=>{this.model.replaceText=e},onReplaceCurrent:()=>{void this.model.replaceCurrentMatch()},onReplaceAll:()=>{void this.model.replaceAllMatches()},keyBindings:this._keyBindings})}}var te=n(90044);class ne{constructor(e=v.nullTranslator){this.translator=e;this._changed=new s.Signal(this);this._providerMap=new Map}add(e,t){this._providerMap.set(e,t);this._changed.emit();return new te.DisposableDelegate((()=>{this._providerMap.delete(e);this._changed.emit()}))}getProvider(e){for(const t of this._providerMap.values()){if(t.isApplicable(e)){return t.createNew(e,this.translator)}}return undefined}hasProvider(e){for(const t of this._providerMap.values()){if(t.isApplicable(e)){return true}}return false}get changed(){return this._changed}}var ie=n(5592);const se=new ie.Token("@jupyterlab/documentsearch:ISearchProviderRegistry",`A service for a registry of search\n providers for the application. Plugins can register their UI elements with this registry\n to provide find/replace support.`)},19562:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(85072);var a=n.n(r);var l=n(97825);var d=n.n(l);var c=n(77659);var h=n.n(c);var u=n(55056);var p=n.n(u);var m=n(10540);var g=n.n(m);var f=n(41113);var v=n.n(f);var _=n(20939);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.A,b);const w=_.A&&_.A.locals?_.A.locals:undefined},53316:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>_});var i=n(88617);var s=n.n(i);var o=n(38850);var r=n.n(o);var a=n(45273);var l=n.n(a);var d=n(40065);var c=n.n(d);var h=n(34881);var u=n.n(h);var p=n(4073);var m=n.n(p);const g="@jupyterlab/extensionmanager-extension:plugin";var f;(function(e){e.showPanel="extensionmanager:show-panel";e.toggle="extensionmanager:toggle"})(f||(f={}));const v={id:g,description:"Adds the extension manager plugin.",autoStart:true,requires:[d.ISettingRegistry],optional:[h.ITranslator,i.ILayoutRestorer,o.ICommandPalette],activate:async(e,t,n,i,s)=>{const{commands:o,shell:r,serviceManager:l}=e;n=n!==null&&n!==void 0?n:h.nullTranslator;const d=n.load("jupyterlab");const c=new a.ListModel(l,n);const u=()=>{const e=new a.ExtensionsPanel({model:c,translator:n});e.id="extensionmanager.main-view";e.title.icon=p.extensionIcon;e.title.caption=d.__("Extension Manager");e.node.setAttribute("role","region");e.node.setAttribute("aria-label",d.__("Extension Manager section"));if(i){i.add(e,e.id)}r.add(e,"left",{rank:1e3});return e};let m=u();Promise.all([e.restored,t.load(g)]).then((([,t])=>{c.isDisclaimed=t.get("disclaimed").composite;c.isEnabled=t.get("enabled").composite;c.stateChanged.connect((()=>{if(c.isDisclaimed!==t.get("disclaimed").composite){t.set("disclaimed",c.isDisclaimed).catch((e=>{console.error(`Failed to set setting 'disclaimed'.\n${e}`)}))}if(c.isEnabled!==t.get("enabled").composite){t.set("enabled",c.isEnabled).catch((e=>{console.error(`Failed to set setting 'enabled'.\n${e}`)}))}}));if(c.isEnabled){m=m!==null&&m!==void 0?m:u()}else{m===null||m===void 0?void 0:m.dispose();m=null}t.changed.connect((async()=>{c.isDisclaimed=t.get("disclaimed").composite;c.isEnabled=t.get("enabled").composite;e.commands.notifyCommandChanged(f.toggle);if(c.isEnabled){if(m===null||!m.isAttached){const e=await b.showWarning(d);if(!e){void t.set("enabled",false);return}}m=m!==null&&m!==void 0?m:u()}else{m===null||m===void 0?void 0:m.dispose();m=null}}))})).catch((e=>{console.error(`Something went wrong when reading the settings.\n${e}`)}));o.addCommand(f.showPanel,{label:d.__("Extension Manager"),execute:()=>{if(m){r.activateById(m.id)}},isVisible:()=>c.isEnabled,describedBy:{args:{type:"object",properties:{}}}});o.addCommand(f.toggle,{label:d.__("Enable Extension Manager"),execute:()=>{if(t){void t.set(v.id,"enabled",!c.isEnabled)}},isToggled:()=>c.isEnabled,describedBy:{args:{type:"object",properties:{}}}});if(s){s.addItem({command:f.toggle,category:d.__("Extension Manager")})}}};const _=v;var b;(function(e){async function t(e){const t=await(0,o.showDialog)({title:e.__("Enable Extension Manager?"),body:e.__(`Thanks for trying out JupyterLab's extension manager.\nThe JupyterLab development team is excited to have a robust\nthird-party extension community.\nHowever, we cannot vouch for every extension,\nand some may introduce security risks.\nDo you want to continue?`),buttons:[o.Dialog.cancelButton({label:e.__("Disable")}),o.Dialog.warnButton({label:e.__("Enable")})]});return t.button.accept}e.showWarning=t})(b||(b={}))},67374:(e,t,n)=>{"use strict";var i=n(40662);var s=n(97913);var o=n(3579);var r=n(10395);var a=n(85072);var l=n.n(a);var d=n(97825);var c=n.n(d);var h=n(77659);var u=n.n(h);var p=n(55056);var m=n.n(p);var g=n(10540);var f=n.n(g);var v=n(41113);var _=n.n(v);var b=n(40502);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.A,y);const C=b.A&&b.A.locals?b.A.locals:undefined},84468:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ExtensionsPanel:()=>I,ListModel:()=>p});var i=n(38850);var s=n(40959);var o=n(49278);var r=n(34881);var a=n(4073);var l=n(26568);var d=n(99589);var c=n(44914);function h(e,t,n){n=n||r.nullTranslator;const s=n.load("jupyterlab");const o=[];o.push(c.createElement("p",null,s.__(`An error occurred installing "${e}".`)));if(t){o.push(c.createElement("p",null,c.createElement("span",{className:"jp-extensionmanager-dialog-subheader"},s.__("Error message:"))),c.createElement("pre",null,t.trim()))}const a=c.createElement("div",{className:"jp-extensionmanager-dialog"},o);void(0,i.showDialog)({title:s.__("Extension Installation Error"),body:a,buttons:[i.Dialog.warnButton({label:s.__("Ok")})]})}const u="lab/api/extensions";class p extends a.VDomModel{constructor(e,t){super();this.actionError=null;this.installedError=null;this.searchError=null;this.promptReload=false;this._isDisclaimed=false;this._isEnabled=false;this._isLoadingInstalledExtensions=false;this._isSearching=false;this._query="";this._page=1;this._pagination=30;this._lastPage=1;this._pendingActions=[];const n=JSON.parse(s.PageConfig.getOption("extensionManager")||"{}");this.name=n.name;this.canInstall=n.can_install;this.installPath=n.install_path;this.translator=t||r.nullTranslator;this._installed=[];this._lastSearchResult=[];this.serviceManager=e;this._debouncedSearch=new l.Debouncer(this.search.bind(this),1e3)}get installed(){return this._installed}get isDisclaimed(){return this._isDisclaimed}set isDisclaimed(e){if(e!==this._isDisclaimed){this._isDisclaimed=e;this.stateChanged.emit();void this._debouncedSearch.invoke()}}get isEnabled(){return this._isEnabled}set isEnabled(e){if(e!==this._isEnabled){this._isEnabled=e;this.stateChanged.emit()}}get isLoadingInstalledExtensions(){return this._isLoadingInstalledExtensions}get isSearching(){return this._isSearching}get searchResult(){return this._lastSearchResult}get query(){return this._query}set query(e){if(this._query!==e){this._query=e;this._page=1;void this._debouncedSearch.invoke()}}get page(){return this._page}set page(e){if(this._page!==e){this._page=e;void this._debouncedSearch.invoke()}}get pagination(){return this._pagination}set pagination(e){if(this._pagination!==e){this._pagination=e;void this._debouncedSearch.invoke()}}get lastPage(){return this._lastPage}dispose(){if(this.isDisposed){return}this._debouncedSearch.dispose();super.dispose()}hasPendingActions(){return this._pendingActions.length>0}async install(e,t={}){await this.performAction("install",e,t).then((t=>{if(t.status!=="ok"){h(e.name,t.message,this.translator)}return this.update(true)}))}async uninstall(e){if(!e.installed){throw new Error(`Not installed, cannot uninstall: ${e.name}`)}await this.performAction("uninstall",e);return this.update(true)}async enable(e){if(e.enabled){throw new Error(`Already enabled: ${e.name}`)}await this.performAction("enable",e);await this.refreshInstalled(true)}async disable(e){if(!e.enabled){throw new Error(`Already disabled: ${e.name}`)}await this.performAction("disable",e);await this.refreshInstalled(true)}async refreshInstalled(e=false){this.installedError=null;this._isLoadingInstalledExtensions=true;this.stateChanged.emit();try{const[t]=await m.requestAPI({refresh:e?1:0});this._installed=t.sort(m.installedComparator)}catch(t){this.installedError=t.toString()}finally{this._isLoadingInstalledExtensions=false;this.stateChanged.emit()}}async search(e=false){var t,n;if(!this.isDisclaimed){return Promise.reject("Installation warning is not disclaimed.")}this.searchError=null;this._isSearching=true;this.stateChanged.emit();try{const[i,o]=await m.requestAPI({query:(t=this.query)!==null&&t!==void 0?t:"",page:this.page,per_page:this.pagination,refresh:e?1:0});const r=o["last"];if(r){const e=s.URLExt.queryStringToObject((n=s.URLExt.parse(r).search)!==null&&n!==void 0?n:"")["page"];if(e){this._lastPage=parseInt(e,10)}}const a=this._installed.map((e=>e.name));this._lastSearchResult=i.filter((e=>!a.includes(e.name)))}catch(i){this.searchError=i.toString()}finally{this._isSearching=false;this.stateChanged.emit()}}async update(e=false){if(this.isDisclaimed){await this.refreshInstalled(e);await this.search()}}performAction(e,t,n={}){const s={cmd:e,extension_name:t.name};if(n.useVersion){s["extension_version"]=n.useVersion}const o=m.requestAPI({},{method:"POST",body:JSON.stringify(s)});o.then((([e])=>{const t=this.translator.load("jupyterlab");if(e.needs_restart.includes("server")){void(0,i.showDialog)({title:t.__("Information"),body:t.__("You will need to restart JupyterLab to apply the changes."),buttons:[i.Dialog.okButton({label:t.__("Ok")})]})}else{const n=[];if(e.needs_restart.includes("frontend")){n.push(window.isElectron?t.__("reload JupyterLab"):t.__("refresh the web page"))}if(e.needs_restart.includes("kernel")){n.push(t.__("install the extension in all kernels and restart them"))}void(0,i.showDialog)({title:t.__("Information"),body:t.__("You will need to %1 to apply the changes.",n.join(t.__(" and "))),buttons:[i.Dialog.okButton({label:t.__("Ok")})]})}this.actionError=null}),(e=>{this.actionError=e.toString()}));this.addPendingAction(o);return o.then((([e])=>e))}addPendingAction(e){this._pendingActions.push(e);const t=()=>{const t=this._pendingActions.indexOf(e);this._pendingActions.splice(t,1);this.stateChanged.emit(undefined)};e.then(t,t);this.stateChanged.emit(undefined)}}(function(e){function t(e){if(!e.installed||!e.latest_version){return false}return d.lt(e.installed_version,e.latest_version)}e.entryHasUpdate=t})(p||(p={}));var m;(function(e){function t(e,t){return e.name.localeCompare(t.name)}e.installedComparator=t;const n=/<([^>]+)>; rel="([^"]+)",?/g;async function i(e={},t={},i){var r;const a=i!==null&&i!==void 0?i:o.ServerConnection.makeSettings();const l=s.URLExt.join(a.baseUrl,u);let d;try{d=await o.ServerConnection.makeRequest(l+s.URLExt.objectToQueryString(e),t,a)}catch(g){throw new o.ServerConnection.NetworkError(g)}let c=await d.text();if(c.length>0){try{c=JSON.parse(c)}catch(g){console.log("Not a JSON response body.",d)}}if(!d.ok){throw new o.ServerConnection.ResponseError(d,c.message||c)}const h=(r=d.headers.get("Link"))!==null&&r!==void 0?r:"";const p={};let m=null;while((m=n.exec(h))!==null){p[m[2]]=m[1]}return[c,p]}e.requestAPI=i})(m||(m={}));var g=n(49764);var f=n.n(g);const v=32;const _=Math.floor(devicePixelRatio*v);function b(e){if(e.homepage_url&&e.homepage_url.startsWith("https://github.com/")){return e.homepage_url.split("/")[3]}else if(e.repository_url&&e.repository_url.startsWith("https://github.com/")){return e.repository_url.split("/")[3]}return null}function y(e){const{canFetch:t,entry:n,supportInstallation:i,trans:s}=e;const o=[];if(n.status&&["ok","warning","error"].indexOf(n.status)!==-1){o.push(`jp-extensionmanager-entry-${n.status}`)}const r=t?b(n):null;if(!n.allowed){o.push(`jp-extensionmanager-entry-should-be-uninstalled`)}return c.createElement("li",{className:`jp-extensionmanager-entry ${o.join(" ")}`,style:{display:"flex"}},c.createElement("div",{style:{marginRight:"8px"}},r?c.createElement("img",{src:`https://github.com/${r}.png?size=${_}`,style:{width:"32px",height:"32px"}}):c.createElement("div",{style:{width:`${v}px`,height:`${v}px`}})),c.createElement("div",{className:"jp-extensionmanager-entry-description"},c.createElement("div",{className:"jp-extensionmanager-entry-title"},c.createElement("div",{className:"jp-extensionmanager-entry-name"},n.homepage_url?c.createElement("a",{href:n.homepage_url,target:"_blank",rel:"noopener noreferrer",title:s.__("%1 extension home page",n.name)},n.name):c.createElement("div",null,n.name)),c.createElement("div",{className:"jp-extensionmanager-entry-version"},c.createElement("div",{title:s.__("Version: %1",n.installed_version)},n.installed_version)),n.installed&&!n.allowed&&c.createElement(a.ToolbarButtonComponent,{icon:a.infoIcon,iconLabel:s.__("%1 extension is not allowed anymore. Please uninstall it immediately or contact your administrator.",n.name),onClick:()=>window.open("https://jupyterlab.readthedocs.io/en/stable/user/extensions.html")}),n.approved&&c.createElement(a.jupyterIcon.react,{className:"jp-extensionmanager-is-approved",top:"1px",height:"auto",width:"1em",title:s.__("This extension is approved by your security team.")})),c.createElement("div",{className:"jp-extensionmanager-entry-content"},c.createElement("div",{className:"jp-extensionmanager-entry-description"},n.description),e.performAction&&c.createElement("div",{className:"jp-extensionmanager-entry-buttons"},n.installed?c.createElement(c.Fragment,null,i&&c.createElement(c.Fragment,null,p.entryHasUpdate(n)&&c.createElement(a.Button,{onClick:()=>e.performAction("install",n,{useVersion:n.latest_version}),title:s.__('Update "%1" to "%2"',n.name,n.latest_version),minimal:true,small:true},s.__("Update to %1",n.latest_version)),c.createElement(a.Button,{onClick:()=>e.performAction("uninstall",n),title:s.__('Uninstall "%1"',n.name),minimal:true,small:true},s.__("Uninstall"))),n.enabled?c.createElement(a.Button,{onClick:()=>e.performAction("disable",n),title:s.__('Disable "%1"',n.name),minimal:true,small:true},s.__("Disable")):c.createElement(a.Button,{onClick:()=>e.performAction("enable",n),title:s.__('Enable "%1"',n.name),minimal:true,small:true},s.__("Enable"))):i&&c.createElement(a.Button,{onClick:()=>e.performAction("install",n),title:s.__('Install "%1"',n.name),minimal:true,small:true},s.__("Install"))))))}function w(e){var t;const{canFetch:n,performAction:i,supportInstallation:s,trans:o}=e;return c.createElement("div",{className:"jp-extensionmanager-listview-wrapper"},e.entries.length>0?c.createElement("ul",{className:"jp-extensionmanager-listview"},e.entries.map((e=>c.createElement(y,{key:e.name,canFetch:n,entry:e,performAction:i,supportInstallation:s,trans:o})))):c.createElement("div",{key:"message",className:"jp-extensionmanager-listview-message"},o.__("No entries")),e.numPages>1&&c.createElement("div",{className:"jp-extensionmanager-pagination"},c.createElement(f(),{previousLabel:"<",nextLabel:">",breakLabel:"...",breakClassName:"break",initialPage:((t=e.initialPage)!==null&&t!==void 0?t:1)-1,pageCount:e.numPages,marginPagesDisplayed:2,pageRangeDisplayed:3,onPageChange:t=>e.onPage(t.selected+1),activeClassName:"active"})))}function C(e){return c.createElement("div",{className:"jp-extensionmanager-error"},e.children)}class x extends a.ReactWidget{constructor(e,t,n){super();this.model=e;this.trans=t;this.searchInputRef=n;e.stateChanged.connect(this.update,this);this.addClass("jp-extensionmanager-header")}render(){return c.createElement(c.Fragment,null,c.createElement("div",{className:"jp-extensionmanager-title"},c.createElement("span",null,this.trans.__("%1 Manager",this.model.name)),this.model.installPath&&c.createElement(a.infoIcon.react,{className:"jp-extensionmanager-path",tag:"span",title:this.trans.__("Extension installation path: %1",this.model.installPath)})),c.createElement(a.FilterBox,{placeholder:this.trans.__("Search extensions"),disabled:!this.model.isDisclaimed,updateFilter:(e,t)=>{this.model.query=t!==null&&t!==void 0?t:""},useFuzzyFilter:false,inputRef:this.searchInputRef}),c.createElement("div",{className:`jp-extensionmanager-pending ${this.model.hasPendingActions()?"jp-mod-hasPending":""}`}),this.model.actionError&&c.createElement(C,null,c.createElement("p",null,this.trans.__("Error when performing an action.")),c.createElement("p",null,this.trans.__("Reason given:")),c.createElement("pre",null,this.model.actionError)))}}class S extends a.ReactWidget{constructor(e,t){super();this.model=e;this.trans=t;this.addClass("jp-extensionmanager-disclaimer");e.stateChanged.connect(this.update,this)}render(){return c.createElement(c.Fragment,null,c.createElement("p",null,this.trans.__(`The JupyterLab development team is excited to have a robust\nthird-party extension community. However, we do not review\nthird-party extensions, and some extensions may introduce security\nrisks or contain malicious code that runs on your machine. Moreover in order\nto work, this panel needs to fetch data from web services. Do you agree to\nactivate this feature?`),c.createElement("br",null),c.createElement("a",{href:"https://jupyterlab.readthedocs.io/en/stable/privacy_policies.html",target:"_blank",rel:"noreferrer"},this.trans.__("Please read the privacy policy."))),this.model.isDisclaimed?c.createElement(a.Button,{className:"jp-extensionmanager-disclaimer-disable",onClick:e=>{this.model.isDisclaimed=false},title:this.trans.__("This will withdraw your consent.")},this.trans.__("No")):c.createElement("div",null,c.createElement(a.Button,{className:"jp-extensionmanager-disclaimer-enable",onClick:()=>{this.model.isDisclaimed=true}},this.trans.__("Yes")),c.createElement(a.Button,{className:"jp-extensionmanager-disclaimer-disable",onClick:()=>{this.model.isEnabled=false},title:this.trans.__("This will disable the extension manager panel; including the listing of installed extension.")},this.trans.__("No, disable"))))}}class j extends a.ReactWidget{constructor(e,t){super();this.model=e;this.trans=t;e.stateChanged.connect(this.update,this)}render(){return c.createElement(c.Fragment,null,this.model.installedError!==null?c.createElement(C,null,`Error querying installed extensions${this.model.installedError?`: ${this.model.installedError}`:"."}`):this.model.isLoadingInstalledExtensions?c.createElement("div",{className:"jp-extensionmanager-loader"},this.trans.__("Updating extensions list…")):c.createElement(w,{canFetch:this.model.isDisclaimed,entries:this.model.installed.filter((e=>new RegExp(this.model.query.toLowerCase()).test(e.name))),numPages:1,trans:this.trans,onPage:e=>{},performAction:this.model.isDisclaimed?this.onAction.bind(this):null,supportInstallation:this.model.canInstall&&this.model.isDisclaimed}))}onAction(e,t,n={}){switch(e){case"install":return this.model.install(t,n);case"uninstall":return this.model.uninstall(t);case"enable":return this.model.enable(t);case"disable":return this.model.disable(t);default:throw new Error(`Invalid action: ${e}`)}}}class k extends a.ReactWidget{constructor(e,t){super();this.model=e;this.trans=t;e.stateChanged.connect(this.update,this)}onPage(e){this.model.page=e}onAction(e,t,n={}){switch(e){case"install":return this.model.install(t,n);case"uninstall":return this.model.uninstall(t);case"enable":return this.model.enable(t);case"disable":return this.model.disable(t);default:throw new Error(`Invalid action: ${e}`)}}render(){return c.createElement(c.Fragment,null,this.model.searchError!==null?c.createElement(C,null,`Error searching for extensions${this.model.searchError?`: ${this.model.searchError}`:"."}`):this.model.isSearching?c.createElement("div",{className:"jp-extensionmanager-loader"},this.trans.__("Updating extensions list…")):c.createElement(w,{canFetch:this.model.isDisclaimed,entries:this.model.searchResult,initialPage:this.model.page,numPages:this.model.lastPage,onPage:e=>{this.onPage(e)},performAction:this.model.isDisclaimed?this.onAction.bind(this):null,supportInstallation:this.model.canInstall&&this.model.isDisclaimed,trans:this.trans}))}update(){this.title.label=this.model.query?this.trans.__("Search Results"):this.trans.__("Discover");super.update()}}class I extends a.SidePanel{constructor(e){const{model:t,translator:n}=e;super({translator:n});this._wasInitialized=false;this._wasDisclaimed=true;this.model=t;this._searchInputRef=c.createRef();this.addClass("jp-extensionmanager-view");this.trans=n.load("jupyterlab");this.header.addWidget(new x(t,this.trans,this._searchInputRef));const i=new S(t,this.trans);i.title.label=this.trans.__("Warning");this.addWidget(i);const s=new a.PanelWithToolbar;s.addClass("jp-extensionmanager-installedlist");s.toolbar.node.setAttribute("aria-label",this.trans.__("Extensions panel toolbar"));s.title.label=this.trans.__("Installed");s.toolbar.addItem("refresh",new a.ToolbarButton({icon:a.refreshIcon,onClick:()=>{t.refreshInstalled(true).catch((e=>{console.error(`Failed to refresh the installed extensions list:\n${e}`)}))},tooltip:this.trans.__("Refresh extensions list")}));s.addWidget(new j(t,this.trans));this.addWidget(s);if(this.model.canInstall){const e=new k(t,this.trans);e.addClass("jp-extensionmanager-searchresults");this.addWidget(e)}this._wasDisclaimed=this.model.isDisclaimed;if(this.model.isDisclaimed){this.content.collapse(0);this.content.layout.setRelativeSizes([0,1,1])}else{this.content.expand(0);this.content.collapse(1);this.content.collapse(2)}this.model.stateChanged.connect(this._onStateChanged,this)}dispose(){if(this.isDisposed){return}this.model.stateChanged.disconnect(this._onStateChanged,this);super.dispose()}handleEvent(e){switch(e.type){case"focus":case"blur":this._toggleFocused();break;default:break}}onBeforeAttach(e){this.node.addEventListener("focus",this,true);this.node.addEventListener("blur",this,true);super.onBeforeAttach(e)}onBeforeShow(e){if(!this._wasInitialized){this._wasInitialized=true;this.model.refreshInstalled().catch((e=>{console.log(`Failed to refresh installed extension list:\n${e}`)}))}}onAfterDetach(e){super.onAfterDetach(e);this.node.removeEventListener("focus",this,true);this.node.removeEventListener("blur",this,true)}onActivateRequest(e){if(this.isAttached){const e=this._searchInputRef.current;if(e){if(e.focus){e.focus()}if(e.select){e.select()}}}super.onActivateRequest(e)}_onStateChanged(){if(!this._wasDisclaimed&&this.model.isDisclaimed){this.content.collapse(0);this.content.expand(1);this.content.expand(2)}this._wasDisclaimed=this.model.isDisclaimed}_toggleFocused(){const e=document.activeElement===this._searchInputRef.current;this.toggleClass("lm-mod-focused",e)}}},48934:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>Y,fileUploadStatus:()=>q});var i=n(90044);var s=n.n(i);var o=n(88617);var r=n.n(o);var a=n(38850);var l=n.n(a);var d=n(40959);var c=n.n(d);var h=n(11927);var u=n.n(h);var p=n(93067);var m=n.n(p);var g=n(44577);var f=n.n(g);var v=n(40065);var _=n.n(v);var b=n(78629);var y=n.n(b);var w=n(4625);var C=n.n(w);var x=n(34881);var S=n.n(x);var j=n(4073);var k=n.n(j);var I=n(34236);var T=n.n(I);var E=n(93247);var M=n.n(E);const D="FileBrowser";const A="@jupyterlab/filebrowser-extension:browser";var P;(function(e){e.copy="filebrowser:copy";e.copyDownloadLink="filebrowser:copy-download-link";e.cut="filebrowser:cut";e.del="filebrowser:delete";e.download="filebrowser:download";e.duplicate="filebrowser:duplicate";e.selectAll="filebrowser:select-all";e.hideBrowser="filebrowser:hide-main";e.goToPath="filebrowser:go-to-path";e.goUp="filebrowser:go-up";e.openPath="filebrowser:open-path";e.openUrl="filebrowser:open-url";e.open="filebrowser:open";e.openBrowserTab="filebrowser:open-browser-tab";e.paste="filebrowser:paste";e.createNewDirectory="filebrowser:create-new-directory";e.createNewFile="filebrowser:create-new-file";e.createNewMarkdownFile="filebrowser:create-new-markdown-file";e.refresh="filebrowser:refresh";e.rename="filebrowser:rename";e.copyShareableLink="filebrowser:share-main";e.copyPath="filebrowser:copy-path";e.showBrowser="filebrowser:activate";e.shutdown="filebrowser:shutdown";e.toggleBrowser="filebrowser:toggle-main";e.toggleFileFilter="filebrowser:toggle-file-filter";e.toggleNavigateToCurrentDirectory="filebrowser:toggle-navigate-to-current-directory";e.toggleLastModified="filebrowser:toggle-last-modified";e.toggleShowFullPath="filebrowser:toggle-show-full-path";e.toggleFileSize="filebrowser:toggle-file-size";e.toggleSortNotebooksFirst="filebrowser:toggle-sort-notebooks-first";e.search="filebrowser:search";e.toggleHiddenFiles="filebrowser:toggle-hidden-files";e.toggleSingleClick="filebrowser:toggle-single-click-navigation";e.toggleFileCheckboxes="filebrowser:toggle-file-checkboxes"})(P||(P={}));const L="filebrowser";const R={id:A,description:"Set up the default file browser commands and state restoration",requires:[g.IDefaultFileBrowser,g.IFileBrowserFactory,x.ITranslator],optional:[o.ILayoutRestorer,v.ISettingRegistry,o.ITreePathUpdater,a.ICommandPalette],provides:g.IFileBrowserCommands,autoStart:true,activate:async(e,t,n,i,s,o,r,a)=>{const l=t;if(s){s.add(l,L)}const c=d.PageConfig.getOption("preferredPath");if(c){await l.model.cd(c)}J(e,l,n,i,o,a);void Promise.all([e.restored,l.model.restored]).then((()=>{if(r){l.model.pathChanged.connect(((e,t)=>{r(t.newValue)}))}}));return{openPath:P.openPath}}};const N={id:"@jupyterlab/filebrowser-extension:settings",description:"Set up the default file browser settings",requires:[g.IDefaultFileBrowser],optional:[v.ISettingRegistry],autoStart:true,activate:(e,t,n)=>{if(n){void n.load(A).then((e=>{const n={navigateToCurrentDirectory:false,singleClickNavigation:false,showLastModifiedColumn:true,showFileSizeColumn:false,showHiddenFiles:false,showFileCheckboxes:false,sortNotebooksFirst:false,showFullPath:false,allowFileUploads:true};function i(e){let i;for(i in n){const n=e.get(i).composite;t[i]=n}const s=e.get("breadcrumbs").composite;t.minimumBreadcrumbsLeftItems=s.minimumLeftItems;t.minimumBreadcrumbsRightItems=s.minimumRightItems;const o=e.get("filterDirectories").composite;const r=e.get("useFuzzyFilter").composite;t.model.filterDirectories=o;t.model.useFuzzyFilter=r}e.changed.connect(i);i(e)}))}}};const B={id:"@jupyterlab/filebrowser-extension:factory",description:"Provides the file browser factory.",provides:g.IFileBrowserFactory,requires:[h.IDocumentManager,x.ITranslator],optional:[b.IStateDB,o.JupyterLab.IInfo],activate:async(e,t,n,i,s)=>{const o=new a.WidgetTracker({namespace:L});const r=(e,r={})=>{var a,l;const d=r.state===null?undefined:r.state||i||undefined;const c=new g.FilterFileBrowserModel({translator:n,auto:(a=r.auto)!==null&&a!==void 0?a:true,manager:t,driveName:r.driveName||"",refreshInterval:r.refreshInterval,refreshStandby:()=>{if(s){return!s.isConnected||"when-hidden"}return"when-hidden"},state:d,allowFileUploads:(l=r.allowFileUploads)!==null&&l!==void 0?l:true});const h=r.restore;const u=new g.FileBrowser({id:e,model:c,restore:h,translator:n,state:d});void o.add(u);return u};return{createFileBrowser:r,tracker:o}}};const O={id:"@jupyterlab/filebrowser-extension:default-file-browser",description:"Provides the default file browser",provides:g.IDefaultFileBrowser,requires:[g.IFileBrowserFactory],optional:[o.IRouter,o.JupyterFrontEnd.ITreeResolver,o.ILabShell,x.ITranslator],activate:async(e,t,n,i,s,o)=>{const{commands:r}=e;const a=(o!==null&&o!==void 0?o:x.nullTranslator).load("jupyterlab");const l=t.createFileBrowser("filebrowser",{auto:false,restore:false});l.node.setAttribute("role","region");l.node.setAttribute("aria-label",a.__("File Browser Section"));l.title.icon=j.folderIcon;const d=()=>{const t=e.commands.keyBindings.find((e=>e.command===P.toggleBrowser));if(t){const e=t.keys.map(E.CommandRegistry.formatKeystroke).join(", ");l.title.caption=a.__("File Browser (%1)",e)}else{l.title.caption=a.__("File Browser")}};d();e.commands.keyBindingChanged.connect((()=>{d()}));void X.restoreBrowser(l,r,n,i,e,s);return l}};const F={id:"@jupyterlab/filebrowser-extension:download",description:"Adds the download file commands. Disabling this plugin will NOT disable downloading files from the server, if the user enters the appropriate download URLs.",requires:[g.IFileBrowserFactory,x.ITranslator],autoStart:true,activate:(e,t,n)=>{const i=n.load("jupyterlab");const{commands:s}=e;const{tracker:o}=t;s.addCommand(P.download,{execute:()=>{const e=o.currentWidget;if(e){return e.download()}},icon:j.downloadIcon.bindprops({stylesheet:"menuItem"}),label:i.__("Download"),describedBy:{args:{type:"object",properties:{}}}});s.addCommand(P.copyDownloadLink,{execute:()=>{const e=o.currentWidget;if(!e){return}return e.model.manager.services.contents.getDownloadUrl(e.selectedItems().next().value.path).then((e=>{a.Clipboard.copyToSystem(e)}))},isVisible:()=>!!o.currentWidget&&Array.from(o.currentWidget.selectedItems()).length===1,icon:j.copyIcon.bindprops({stylesheet:"menuItem"}),label:i.__("Copy Download Link"),mnemonic:0,describedBy:{args:{type:"object",properties:{}}}})}};const z={id:"@jupyterlab/filebrowser-extension:create-new-language-file",description:"Adds context menu entries for creating Python/R/Julia files",requires:[x.ITranslator],autoStart:true,activate:async(e,t)=>{const n=t.load("jupyterlab");let s=new i.DisposableSet;const o=e.serviceManager.kernelspecs;const r=async()=>{var t,r;if(s){s.dispose();s=new i.DisposableSet}const a=await(0,p.getAvailableKernelFileTypes)(o);for(const i of a){s.add(e.contextMenu.addItem({command:P.createNewFile,selector:".jp-DirListing",args:{ext:i.extensions[0],label:n.__("New %1 File",i.displayName),iconName:(r=(t=i.icon)===null||t===void 0?void 0:t.toString())!==null&&r!==void 0?r:""},rank:52}))}};o.specsChanged.connect(r);r().catch(console.warn)}};const W={id:"@jupyterlab/filebrowser-extension:widget",description:"Adds the file browser to the application shell.",requires:[h.IDocumentManager,g.IDefaultFileBrowser,g.IFileBrowserFactory,v.ISettingRegistry,a.IToolbarWidgetRegistry,x.ITranslator,o.ILabShell,g.IFileBrowserCommands],optional:[a.ICommandPalette],autoStart:true,activate:(e,t,n,i,s,o,r,l,d,c)=>{const{commands:h}=e;const{tracker:u}=i;const p=r.load("jupyterlab");o.addFactory(D,"uploader",(e=>new g.Uploader({model:e.model,translator:r})));(0,a.setToolbar)(n,(0,a.createToolbarFactory)(o,s,D,W.id,r));l.add(n,"left",{rank:100,type:"File Browser"});h.addCommand(P.toggleBrowser,{label:p.__("File Browser"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{if(n.isHidden){return h.execute(P.showBrowser,void 0)}return h.execute(P.hideBrowser,void 0)}});h.addCommand(P.showBrowser,{label:p.__("Open the file browser for the provided `path`."),describedBy:{args:{type:"object",properties:{path:{type:"string",description:p.__("The path to open in the file browser")}}}},execute:e=>{const t=e.path||"";const s=X.getBrowserForPath(t,n,i);if(!s){return}if(n===s){l.activateById(n.id);return}else{const e=["left","right"];for(const t of e){for(const e of l.widgets(t)){if(e.contains(s)){l.activateById(e.id);return}}}}}});h.addCommand(P.hideBrowser,{label:p.__("Hide the file browser."),describedBy:{args:{type:"object",properties:{}}},execute:()=>{const e=u.currentWidget;if(e&&!e.isHidden){l.collapseLeft()}}});h.addCommand(P.toggleNavigateToCurrentDirectory,{label:p.__("Show Active File in File Browser"),isToggled:()=>n.navigateToCurrentDirectory,execute:()=>{const e=!n.navigateToCurrentDirectory;const t="navigateToCurrentDirectory";return s.set(A,t,e).catch((e=>{console.error(`Failed to set navigateToCurrentDirectory setting`)}))},describedBy:{args:{type:"object",properties:{}}}});if(c){c.addItem({command:P.toggleNavigateToCurrentDirectory,category:p.__("File Operations")})}void l.restored.then((e=>{if(e.fresh&&l.mode!=="single-document"){void h.execute(P.showBrowser,void 0)}}));void Promise.all([e.restored,n.model.restored]).then((()=>{l.currentChanged.connect((async(e,s)=>{if(n.navigateToCurrentDirectory&&s.newValue){const{newValue:e}=s;const a=t.contextForWidget(e);if(a){const{path:e}=a;try{await X.navigateToPath(e,n,i,r)}catch(o){console.warn(`${P.goToPath} failed to open: ${e}`,o)}}}}))}))}};const H={id:"@jupyterlab/filebrowser-extension:share-file",description:'Adds the "Copy Shareable Link" command; useful for JupyterHub deployment for example.',requires:[g.IFileBrowserFactory,x.ITranslator],autoStart:true,activate:(e,t,n)=>{const i=n.load("jupyterlab");const{commands:s}=e;const{tracker:o}=t;s.addCommand(P.copyShareableLink,{execute:()=>{const e=o.currentWidget;const t=e===null||e===void 0?void 0:e.selectedItems().next();if(t===undefined||t.done){return}a.Clipboard.copyToSystem(d.PageConfig.getUrl({workspace:d.PageConfig.defaultWorkspace,treePath:t.value.path,toShare:true}))},isVisible:()=>!!o.currentWidget&&Array.from(o.currentWidget.selectedItems()).length===1,icon:j.linkIcon.bindprops({stylesheet:"menuItem"}),label:i.__("Copy Shareable Link"),describedBy:{args:{type:"object",properties:{}}}})}};const V={id:"@jupyterlab/filebrowser-extension:open-with",description:"Adds the open-with feature allowing an user to pick the non-preferred document viewer.",requires:[g.IFileBrowserFactory],autoStart:true,activate:(e,t)=>{const{docRegistry:n}=e;const{tracker:i}=t;let s=[];function o(e){var t,o;const r=(o=(t=e.menu.items.find((e=>{var t;return e.type==="submenu"&&((t=e.submenu)===null||t===void 0?void 0:t.id)==="jp-contextmenu-open-with"})))===null||t===void 0?void 0:t.submenu)!==null&&o!==void 0?o:null;if(!r){return}s.forEach((e=>e.dispose()));s.length=0;r.clearItems();const a=i.currentWidget?X.OpenWith.intersection((0,I.map)(i.currentWidget.selectedItems(),(e=>X.OpenWith.getFactories(n,e)))):new Set;s=[...a].map((e=>r.addItem({args:{factory:e.name,label:e.label||e.name},command:P.open})))}e.contextMenu.opened.connect(o)}};const U={id:"@jupyterlab/filebrowser-extension:open-browser-tab",description:"Adds the open-in-new-browser-tab features.",requires:[g.IFileBrowserFactory,x.ITranslator],autoStart:true,activate:(e,t,n)=>{const{commands:i}=e;const s=n.load("jupyterlab");const{tracker:o}=t;i.addCommand(P.openBrowserTab,{execute:e=>{const t=o.currentWidget;if(!t){return}const n=e["mode"];return Promise.all(Array.from((0,I.map)(t.selectedItems(),(e=>{if(n==="single-document"){const t=d.PageConfig.getUrl({mode:"single-document",treePath:e.path});const n=window.open();if(n){n.opener=null;n.location.href=t}else{throw new Error("Failed to open new browser tab.")}}else{return i.execute("docmanager:open-browser-tab",{path:e.path})}}))))},icon:j.addIcon.bindprops({stylesheet:"menuItem"}),label:e=>e["mode"]==="single-document"?s.__("Open in Simple Mode"):s.__("Open in New Browser Tab"),mnemonic:0,describedBy:{args:{type:"object",properties:{mode:{type:"string",description:s.__("Mode for opening files (e.g., single-document)")}}}}})}};const q={id:"@jupyterlab/filebrowser-extension:file-upload-status",description:"Adds a file upload status widget.",autoStart:true,requires:[g.IFileBrowserFactory,x.ITranslator],optional:[w.IStatusBar],activate:(e,t,n,i)=>{if(!i){return}const s=new g.FileUploadStatus({tracker:t.tracker,translator:n});i.registerStatusItem("@jupyterlab/filebrowser-extension:file-upload-status",{item:s,align:"middle",isActive:()=>!!s.model&&s.model.items.length>0,activeStateChanged:s.model.stateChanged})}};const $={id:"@jupyterlab/filebrowser-extension:open-url",description:'Adds the feature "Open files from remote URLs".',autoStart:true,requires:[g.IDefaultFileBrowser,x.ITranslator],optional:[a.ICommandPalette],activate:(e,t,n,i)=>{const{commands:s}=e;const o=n.load("jupyterlab");const r=P.openUrl;s.addCommand(r,{label:e=>e.url?o.__("Open %1",e.url):o.__("Open from URL…"),caption:e=>e.url?o.__("Open %1",e.url):o.__("Open from URL"),execute:async e=>{var n,i,r;let l=(n=e===null||e===void 0?void 0:e.url)!==null&&n!==void 0?n:"";if(!l){l=(i=(await a.InputDialog.getText({label:o.__("URL"),placeholder:"https://example.com/path/to/file",title:o.__("Open URL"),okLabel:o.__("Open")})).value)!==null&&i!==void 0?i:undefined}if(!l){return}let c="";let h;try{const e=await fetch(l);h=await e.blob();c=(r=e.headers.get("Content-Type"))!==null&&r!==void 0?r:""}catch(u){if(u.response&&u.response.status!==200){u.message=o.__("Could not open URL: %1",l)}return(0,a.showErrorMessage)(o.__("Cannot fetch"),u)}try{const e=d.PathExt.basename(l);const n=new File([h],e,{type:c});const i=await t.model.upload(n);return s.execute("docmanager:open",{path:i.path})}catch(p){return(0,a.showErrorMessage)(o._p("showErrorMessage","Upload Error"),p)}},describedBy:{args:{type:"object",properties:{url:{type:"string",description:o.__("URL of the file to open")}}}}});if(i){i.addItem({command:r,category:o.__("File Operations")})}}};const K={id:"@jupyterlab/filebrowser-extension:notify-upload",requires:[g.IDefaultFileBrowser,v.ISettingRegistry,x.ITranslator],description:"Adds feature to auto-open supported files after upload",autoStart:true,activate:async(e,t,n,i)=>{const s=i.load("jupyterlab");const o=await n.load(A);let r=o.get("autoOpenUploads").composite;let l=o.get("maxAutoOpenSizeMB").composite*1024*1024;o.changed.connect((()=>{r=o.get("autoOpenUploads").composite;l=o.get("maxAutoOpenSizeMB").composite*1024*1024}));void e.restored.then((()=>{const n=Array.from(t.toolbar.children());const i=n.find((e=>e instanceof g.Uploader));if(!i){console.warn("Uploader widget not found");return}i.filesUploaded.connect(((t,n)=>{const i=Array.from(e.docRegistry.fileTypes());const o=i.reduce(((e,t)=>{if(t.extensions){for(const n of t.extensions){e.push(n.toLowerCase())}}return e}),[]);const d=n[0].name.toLowerCase();const c=o.some((e=>d.endsWith(e)));if(n.length===1&&(n[0].type==="notebook"||n[0].type==="file")){const t=n[0];if(r&&t.size&&t.size<=l&&c){e.commands.execute("docmanager:open",{path:t.path}).catch((e=>{void(0,a.showErrorMessage)(`Opening ${t.name} failed`,e)}))}else{a.Notification.emit(s.__("Uploaded %1%2",t.name,t.size?` (${(0,g.formatFileSize)(t.size,1,1024)})`:""),"info",{autoClose:5e3,actions:[{label:s.__("Open File"),callback:()=>{void e.commands.execute("docmanager:open",{path:t.path}).catch((e=>{void(0,a.showErrorMessage)(`Could not open ${t.name}`,e)}))}}]})}}else{a.Notification.emit(s.__("Upload complete (%1 files)",n.length),"info",{autoClose:5e3,actions:[{label:s.__("Open All"),callback:()=>{n.forEach((t=>void e.commands.execute("docmanager:open",{path:t.path}).catch((e=>{void(0,a.showErrorMessage)(`Could not open ${t.path}`,e)}))))}}]})}}))}))}};function J(e,t,n,i,s,o){const r=i.load("jupyterlab");const{docRegistry:l,commands:c}=e;const{tracker:h}=n;const u=d.PageConfig.getOption("delete_to_trash")==="true";c.addCommand(P.del,{execute:()=>{const e=h.currentWidget;if(e){return e.delete()}},icon:j.closeIcon.bindprops({stylesheet:"menuItem"}),label:u?r.__("Move to Trash"):r.__("Delete"),mnemonic:0,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(P.copy,{execute:()=>{const e=h.currentWidget;if(e){return e.copy()}},icon:j.copyIcon.bindprops({stylesheet:"menuItem"}),label:r.__("Copy"),mnemonic:0,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(P.cut,{execute:()=>{const e=h.currentWidget;if(e){return e.cut()}},icon:j.cutIcon.bindprops({stylesheet:"menuItem"}),label:r.__("Cut"),describedBy:{args:{type:"object",properties:{}}}});c.addCommand(P.duplicate,{execute:()=>{const e=h.currentWidget;if(e){return e.duplicate()}},icon:j.copyIcon.bindprops({stylesheet:"menuItem"}),label:r.__("Duplicate"),describedBy:{args:{type:"object",properties:{}}}});c.addCommand(P.selectAll,{execute:()=>{const e=h.currentWidget;if(e){return e.selectAll()}},label:r.__("Select All"),describedBy:{args:{type:"object",properties:{}}}});c.addCommand(P.goToPath,{label:r.__("Update the file browser to display the provided `path`."),describedBy:{args:{type:"object",properties:{path:{type:"string",description:r.__("The path to navigate to")},dontShowBrowser:{type:"boolean",description:r.__("Whether to avoid showing the browser")}}}},execute:async e=>{var s;const o=e.path||"";const r=!((s=e===null||e===void 0?void 0:e.dontShowBrowser)!==null&&s!==void 0?s:false);try{const e=await X.navigateToPath(o,t,n,i);if(e.type!=="directory"&&r){const e=X.getBrowserForPath(o,t,n);if(e){e.clearSelectedItems();const t=o.split("/");const n=t[t.length-1];if(n){await e.selectItemByName(n)}}}}catch(a){console.warn(`${P.goToPath} failed to go to: ${o}`,a)}if(r){return c.execute(P.showBrowser,{path:o})}}});c.addCommand(P.goUp,{label:"go up",execute:async()=>{const e=X.getBrowserForPath("",t,n);if(!e){return}const{model:i}=e;await i.restored;void e.goUp()},describedBy:{args:{type:"object",properties:{}}}});c.addCommand(P.openPath,{label:e=>e.path?r.__("Open %1",e.path):r.__("Open from Path…"),caption:e=>e.path?r.__("Open %1",e.path):r.__("Open from path"),execute:async e=>{var i;let s;if(e===null||e===void 0?void 0:e.path){s=e.path}else{s=(i=(await a.InputDialog.getText({label:r.__("Path"),placeholder:"/path/relative/to/jlab/root",title:r.__("Open Path"),okLabel:r.__("Open")})).value)!==null&&i!==void 0?i:undefined}if(!s){return}try{const i=s!=="/"&&s.endsWith("/");if(i){s=s.slice(0,s.length-1)}const o=X.getBrowserForPath(s,t,n);const{services:r}=o.model.manager;const a=await r.contents.get(s,{content:false});if(i&&a.type!=="directory"){throw new Error(`Path ${s}/ is not a directory`)}await c.execute(P.goToPath,{path:s,dontShowBrowser:e.dontShowBrowser});if(a.type==="directory"){return}return c.execute("docmanager:open",{path:s})}catch(o){if(o.response&&o.response.status===404){o.message=r.__("Could not find path: %1",s)}return(0,a.showErrorMessage)(r.__("Cannot open"),o)}},describedBy:{args:{type:"object",properties:{path:{type:"string",description:r.__("Path to the file or directory to open")},dontShowBrowser:{type:"boolean",description:r.__("Whether to avoid showing the file browser")}}}}});if(o){o.addItem({command:P.openPath,category:r.__("File Operations")})}c.addCommand(P.open,{execute:e=>{const t=e["factory"]||void 0;const n=h.currentWidget;if(!n){return}const{contents:i}=n.model.manager.services;return Promise.all(Array.from((0,I.map)(n.selectedItems(),(s=>{if(s.type==="directory"){const e=i.localPath(s.path);return n.model.cd(`/${e}`)}return c.execute("docmanager:open",{factory:t,path:s.path,kernelPreference:e["kernelPreference"]})}))))},icon:e=>{var t;const n=e["factory"]||void 0;if(n){const e=l.getFileType(n);return(t=e===null||e===void 0?void 0:e.icon)===null||t===void 0?void 0:t.bindprops({stylesheet:"menuItem"})}else{return j.folderIcon.bindprops({stylesheet:"menuItem"})}},label:e=>e["label"]||e["factory"]||r.__("Open"),mnemonic:0,describedBy:{args:{type:"object",properties:{factory:{type:"string",description:r.__("The name of the widget factory to use")},label:{type:"string",description:r.__("The label to display for the command")}}}}});c.addCommand(P.paste,{execute:()=>{const e=h.currentWidget;if(e){return e.paste()}},icon:j.pasteIcon.bindprops({stylesheet:"menuItem"}),label:r.__("Paste"),mnemonic:0,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(P.createNewDirectory,{execute:()=>{const e=h.currentWidget;if(e){return e.createNewDirectory()}},icon:j.newFolderIcon.bindprops({stylesheet:"menuItem"}),label:r.__("New Folder"),describedBy:{args:{type:"object",properties:{}}}});c.addCommand(P.createNewFile,{execute:e=>{var t;const n=h.currentWidget;if(n){return n.createNewFile({ext:(t=e.ext)!==null&&t!==void 0?t:"txt"})}},icon:e=>e.iconName?j.LabIcon.resolve({icon:e.iconName}):j.textEditorIcon.bindprops({stylesheet:"menuItem"}),label:e=>{var t;return r.__((t=e.label)!==null&&t!==void 0?t:"New File")},describedBy:{args:{type:"object",properties:{label:{type:"string",default:"New File",description:r.__("The command label.")},iconName:{type:"string",description:r.__("The command icon.")},ext:{type:"string",default:"txt",description:r.__("The file extension.")}}}}});c.addCommand(P.createNewMarkdownFile,{execute:()=>{const e=h.currentWidget;if(e){return e.createNewFile({ext:"md"})}},icon:j.markdownIcon.bindprops({stylesheet:"menuItem"}),label:r.__("New Markdown File"),describedBy:{args:{type:"object",properties:{}}}});c.addCommand(P.refresh,{execute:e=>{const t=h.currentWidget;if(t){return t.model.refresh()}},icon:j.refreshIcon.bindprops({stylesheet:"menuItem"}),caption:r.__("Refresh the file browser."),label:r.__("Refresh File List"),describedBy:{args:{type:"object",properties:{}}}});c.addCommand(P.rename,{execute:e=>{const t=h.currentWidget;if(t){return t.rename()}},isVisible:()=>!!h.currentWidget&&Array.from(h.currentWidget.selectedItems()).length===1,icon:j.editIcon.bindprops({stylesheet:"menuItem"}),label:r.__("Rename"),mnemonic:0,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(P.copyPath,{execute:()=>{var e;const t=h.currentWidget;if(!t){return}const n=t.selectedItems().next();if(n.done){return}if(d.PageConfig.getOption("copyAbsolutePath")==="true"){const t=d.PathExt.joinWithLeadingSlash((e=d.PageConfig.getOption("serverRoot"))!==null&&e!==void 0?e:"",n.value.path);a.Clipboard.copyToSystem(t)}else{a.Clipboard.copyToSystem(n.value.path)}},isVisible:()=>!!h.currentWidget&&Array.from(h.currentWidget.selectedItems()).length===1,icon:j.fileIcon.bindprops({stylesheet:"menuItem"}),label:r.__("Copy Path"),describedBy:{args:{type:"object",properties:{}}}});c.addCommand(P.shutdown,{execute:()=>{const e=h.currentWidget;if(e){return e.shutdownKernels()}},icon:j.stopIcon.bindprops({stylesheet:"menuItem"}),label:r.__("Shut Down Kernel"),describedBy:{args:{type:"object",properties:{}}}});c.addCommand(P.toggleFileFilter,{execute:()=>{t.showFileFilter=!t.showFileFilter;c.notifyCommandChanged(P.toggleFileFilter)},isToggled:()=>{const e=t.showFileFilter;return e},icon:j.filterIcon.bindprops({stylesheet:"menuItem"}),label:r.__("Toggle File Filter"),describedBy:{args:{type:"object",properties:{}}}});c.addCommand(P.toggleLastModified,{label:r.__("Show Last Modified Column"),isToggled:()=>t.showLastModifiedColumn,execute:()=>{const e=!t.showLastModifiedColumn;const n="showLastModifiedColumn";if(s){return s.set(A,n,e).catch((e=>{console.error(`Failed to set ${n} setting`)}))}},describedBy:{args:{type:"object",properties:{}}}});c.addCommand(P.toggleShowFullPath,{label:r.__("Show Full Path"),isToggled:()=>t.showFullPath,execute:()=>{const e=!t.showFullPath;const n="showFullPath";if(s){return s.set(A,n,e).catch((e=>{console.error(`Failed to set ${n} setting`)}))}},describedBy:{args:{type:"object",properties:{}}}});c.addCommand(P.toggleSortNotebooksFirst,{label:r.__("Sort Notebooks Above Files"),isToggled:()=>t.sortNotebooksFirst,execute:()=>{const e=!t.sortNotebooksFirst;const n="sortNotebooksFirst";if(s){return s.set(A,n,e).catch((e=>{console.error(`Failed to set ${n} setting`)}))}},describedBy:{args:{type:"object",properties:{}}}});c.addCommand(P.toggleFileSize,{label:r.__("Show File Size Column"),isToggled:()=>t.showFileSizeColumn,execute:()=>{const e=!t.showFileSizeColumn;const n="showFileSizeColumn";if(s){return s.set(A,n,e).catch((e=>{console.error(`Failed to set ${n} setting`)}))}},describedBy:{args:{type:"object",properties:{}}}});c.addCommand(P.toggleSingleClick,{label:r.__("Enable Single Click Navigation"),isToggled:()=>t.singleClickNavigation,execute:()=>{const e=!t.singleClickNavigation;const n="singleClickNavigation";if(s){return s.set(A,n,e).catch((e=>{console.error(`Failed to set singleClickNavigation setting`)}))}},describedBy:{args:{type:"object",properties:{}}}});c.addCommand(P.toggleHiddenFiles,{label:r.__("Show Hidden Files"),isToggled:()=>t.showHiddenFiles,isVisible:()=>d.PageConfig.getOption("allow_hidden_files")==="true",execute:()=>{const e=!t.showHiddenFiles;const n="showHiddenFiles";if(s){return s.set(A,n,e).catch((e=>{console.error(`Failed to set showHiddenFiles setting`)}))}},describedBy:{args:{type:"object",properties:{}}}});c.addCommand(P.toggleFileCheckboxes,{label:r.__("Show File Checkboxes"),isToggled:()=>t.showFileCheckboxes,execute:()=>{const e=!t.showFileCheckboxes;const n="showFileCheckboxes";if(s){return s.set(A,n,e).catch((e=>{console.error(`Failed to set showFileCheckboxes setting`)}))}},describedBy:{args:{type:"object",properties:{}}}});c.addCommand(P.search,{label:r.__("Search on File Names"),execute:()=>alert("search"),describedBy:{args:{type:"object",properties:{}}}})}const G=[B,O,R,N,H,q,F,W,V,U,$,K,z];const Y=G;var X;(function(e){function t(e,t,n){const{tracker:i}=n;const s=t.model.manager.services.contents.driveName(e);if(s){const t=i.find((e=>e.model.driveName===s));if(!t){console.warn(`${P.goToPath} failed to find filebrowser for path: ${e}`);return}return t}return t}e.getBrowserForPath=t;async function n(t,n,i,s){const o=s.load("jupyterlab");const r=e.getBrowserForPath(t,n,i);if(!r){throw new Error(o.__("No browser for path"))}const{services:a}=r.model.manager;const l=a.contents.localPath(t);await a.ready;const c=await a.contents.get(t,{content:false});const{model:h}=r;await h.restored;if(c.type==="directory"){await h.cd(`/${l}`)}else{await h.cd(`/${d.PathExt.dirname(l)}`)}return c}e.navigateToPath=n;async function i(e,t,n,i,s,o){const r="jp-mod-restoring";e.addClass(r);if(!n){await e.model.restore(e.id);await e.model.refresh();e.removeClass(r);return}const a=async()=>{n.routed.disconnect(a);const s=await(i===null||i===void 0?void 0:i.paths);if((s===null||s===void 0?void 0:s.file)||(s===null||s===void 0?void 0:s.browser)){await e.model.restore(e.id,false);if(s.file){await t.execute(P.openPath,{path:s.file,dontShowBrowser:true})}if(s.browser){await t.execute(P.openPath,{path:s.browser,dontShowBrowser:true})}}else{await e.model.restore(e.id);await e.model.refresh()}e.removeClass(r);if(o===null||o===void 0?void 0:o.isEmpty("main")){void t.execute("launcher:create")}};n.routed.connect(a)}e.restoreBrowser=i;let s;(function(e){function t(e,t){const n=e.preferredWidgetFactories(t.path);const i=e.getWidgetFactory("notebook");if(i&&t.type==="notebook"&&n.indexOf(i)===-1){n.unshift(i)}return n}e.getFactories=t;function n(e){let t=undefined;for(const n of e){if(t===undefined){t=new Set(n);continue}if(t.size===0){return t}let e=new Set;for(const i of n){if(t.has(i)){e.add(i)}}t=e}return t!==null&&t!==void 0?t:new Set}e.intersection=n})(s=e.OpenWith||(e.OpenWith={}))})(X||(X={}))},20135:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(24800);var r=n(97913);var a=n(79010);var l=n(3579);var d=n(41603);var c=n(39063);var h=n(85072);var u=n.n(h);var p=n(97825);var m=n.n(p);var g=n(77659);var f=n.n(g);var v=n(55056);var _=n.n(v);var b=n(10540);var y=n.n(b);var w=n(41113);var C=n.n(w);var x=n(538);var S={};S.styleTagTransform=C();S.setAttributes=_();S.insert=f().bind(null,"head");S.domAPI=m();S.insertStyleElement=y();var j=u()(x.A,S);const k=x.A&&x.A.locals?x.A.locals:undefined},21813:(e,t,n)=>{"use strict";n.r(t);n.d(t,{BreadCrumbs:()=>w,CHUNK_SIZE:()=>Se,DirListing:()=>ce,FileBrowser:()=>ye,FileBrowserModel:()=>je,FileDialog:()=>Me,FileUploadStatus:()=>Ve,FilterFileBrowserModel:()=>Ie,IDefaultFileBrowser:()=>Re,IFileBrowserCommands:()=>Ne,IFileBrowserFactory:()=>Le,LARGE_FILE_SIZE:()=>xe,TogglableHiddenFileBrowserModel:()=>ke,Uploader:()=>Be,formatFileSize:()=>ue});var i=n(38850);var s=n(40959);var o=n(49278);var r=n(34881);var a=n(4073);var l=n(2336);var d=n(27518);var c=n(44914);var h=n.n(c);var u=n(11927);var p=n(5592);const m="jp-BreadCrumbs";const g="jp-BreadCrumbs-home";const f="jp-BreadCrumbs-preferred";const v="jp-BreadCrumbs-item";const _="jp-BreadCrumbs-ellipsis";const b="application/x-jupyter-icontents";const y="jp-mod-dropTarget";class w extends d.Widget{constructor(e){var t,n;super();this._previousState=null;this.translator=e.translator||r.nullTranslator;this._trans=this.translator.load("jupyterlab");this._model=e.model;this._fullPath=e.fullPath||false;this._minimumLeftItems=(t=e.minimumLeftItems)!==null&&t!==void 0?t:0;this._minimumRightItems=(n=e.minimumRightItems)!==null&&n!==void 0?n:2;this.addClass(m);this._crumbs=C.createCrumbs();const i=s.PageConfig.getOption("preferredPath");this._hasPreferred=i&&i!=="/"?true:false;if(this._hasPreferred){this.node.appendChild(this._crumbs[C.Crumb.Preferred])}this.node.appendChild(this._crumbs[C.Crumb.Home]);this._model.refreshed.connect(this.update,this)}handleEvent(e){switch(e.type){case"click":this._evtClick(e);break;case"lm-dragenter":this._evtDragEnter(e);break;case"lm-dragleave":this._evtDragLeave(e);break;case"lm-dragover":this._evtDragOver(e);break;case"lm-drop":this._evtDrop(e);break;default:return}}get fullPath(){return this._fullPath}set fullPath(e){this._fullPath=e}get minimumLeftItems(){return this._minimumLeftItems}set minimumLeftItems(e){this._minimumLeftItems=e}get minimumRightItems(){return this._minimumRightItems}set minimumRightItems(e){this._minimumRightItems=e}onAfterAttach(e){super.onAfterAttach(e);this.update();const t=this.node;t.addEventListener("click",this);t.addEventListener("lm-dragenter",this);t.addEventListener("lm-dragleave",this);t.addEventListener("lm-dragover",this);t.addEventListener("lm-drop",this)}onBeforeDetach(e){super.onBeforeDetach(e);const t=this.node;t.removeEventListener("click",this);t.removeEventListener("lm-dragenter",this);t.removeEventListener("lm-dragleave",this);t.removeEventListener("lm-dragover",this);t.removeEventListener("lm-drop",this)}onUpdateRequest(e){const t=this._model.manager.services.contents;const n=t.localPath(this._model.path);const i={path:n,hasPreferred:this._hasPreferred,fullPath:this._fullPath,minimumLeftItems:this._minimumLeftItems,minimumRightItems:this._minimumRightItems};if(this._previousState&&p.JSONExt.deepEqual(i,this._previousState)){return}this._previousState=i;C.updateCrumbs(this._crumbs,i)}_evtClick(e){if(e.button!==0){return}let t=e.target;while(t&&t!==this.node){if(t.classList.contains(f)){const t=s.PageConfig.getOption("preferredPath");const n=t?"/"+t:t;this._model.cd(n).catch((e=>(0,i.showErrorMessage)(this._trans.__("Open Error"),e)));e.preventDefault();e.stopPropagation();return}if(t.classList.contains(v)||t.classList.contains(g)){let n;if(t.classList.contains(g)){n="/"}else{n=`/${t.dataset.path}`}if(n){this._model.cd(n).catch((e=>(0,i.showErrorMessage)(this._trans.__("Open Error"),e)))}e.preventDefault();e.stopPropagation();return}t=t.parentElement}}_evtDragEnter(e){if(e.mimeData.hasData(b)){const t=this._getBreadcrumbElements();let n=-1;let i=e.target;while(i&&i!==this.node){n=t.indexOf(i);if(n!==-1){break}i=i.parentElement}if(n!==-1){const i=t[n];const s=this._model.manager.services.contents.localPath(this._model.path);if(i.dataset.path!==s){i.classList.add(y);e.preventDefault();e.stopPropagation()}}}}_evtDragLeave(e){e.preventDefault();e.stopPropagation();const t=i.DOMUtils.findElement(this.node,y);if(t){t.classList.remove(y)}}_evtDragOver(e){e.preventDefault();e.stopPropagation();e.dropAction=e.proposedAction;const t=i.DOMUtils.findElement(this.node,y);if(t){t.classList.remove(y)}const n=this._getBreadcrumbElements();let s=-1;let o=e.target;while(o&&o!==this.node){s=n.indexOf(o);if(s!==-1){break}o=o.parentElement}if(s!==-1){n[s].classList.add(y)}}_evtDrop(e){e.preventDefault();e.stopPropagation();if(e.proposedAction==="none"){e.dropAction="none";return}if(!e.mimeData.hasData(b)){return}e.dropAction=e.proposedAction;let t=e.target;while(t&&t.parentElement){if(t.classList.contains(y)){t.classList.remove(y);break}t=t.parentElement}let n=null;if(t.classList.contains(g)){n="/"}else if(t.classList.contains(f)){const e=s.PageConfig.getOption("preferredPath");n=e?"/"+e:"/"}else if(t.dataset.path){n=t.dataset.path}if(!n){return}const o=this._model;const r=o.manager;const a=[];const l=e.mimeData.getData(b);for(const i of l){const e=s.PathExt.basename(i);const t=s.PathExt.join(n,e);a.push((0,u.renameFile)(r,i,t))}void Promise.all(a).catch((e=>(0,i.showErrorMessage)(this._trans.__("Move Error"),e)))}_getBreadcrumbElements(){const e=[];const t=this.node.children;for(let n=0;ne!==""));if(!n.fullPath&&a.length>0){const o=n.minimumLeftItems;const l=n.minimumRightItems;if(a.length>o+l){for(let e=0;e0?a.slice(0,d).join("/"):a.slice(0,o).join("/");e[t.Ellipsis].title=h;e[t.Ellipsis].dataset.path=u;s.appendChild(r());const p=a.length-l;for(let e=p;e0){for(let e=0;e{this._manager.openOrReveal(e)});this._updateModifiedSize(this.node);const n=i.DOMUtils.findElement(this.node,D);this._hiddenColumns.add("file_size");this._renderer.populateHeaderNode(n,this.translator,this._hiddenColumns,this._columnSizes);this._manager.activateRequested.connect(this._onActivateRequested,this)}dispose(){this._items.length=0;this._sortedItems.length=0;this._clipboard.length=0;super.dispose()}get model(){return this._model}get headerNode(){return i.DOMUtils.findElement(this.node,D)}get contentNode(){return i.DOMUtils.findElement(this.node,R)}get renderer(){return this._renderer}get sortState(){return this._sortState}get onItemOpened(){return this._onItemOpened}get selectionChanged(){return this._selectionChanged}selectedItems(){const e=this._sortedItems;return(0,S.filter)(e,(e=>this.selection[e.path]))}sortedItems(){return this._sortedItems[Symbol.iterator]()}sort(e){this._sortedItems=he.sort(this.model.items(),e,this._sortNotebooksFirst,this.translator);this._sortState=e;this.update()}rename(){return this._doRename()}cut(){this._isCut=true;this._copy();this.update()}copy(){this._copy()}paste(){if(!this._clipboard.length){this._isCut=false;return Promise.resolve(undefined)}const e=this._model.path;const t=[];for(const n of this._clipboard){if(this._isCut){const i=this._manager.services.contents.localPath(n);const o=i.split("/");const r=o[o.length-1];const a=s.PathExt.join(e,r);t.push(this._model.manager.rename(n,a))}else{t.push(this._model.manager.copy(n,e))}}for(const n of this._items){n.classList.remove(ee)}this._clipboard.length=0;this._isCut=false;this.removeClass(Z);return Promise.all(t).then((()=>undefined)).catch((e=>{void(0,i.showErrorMessage)(this._trans._p("showErrorMessage","Paste Error"),e)}))}async delete(){const e=s.PageConfig.getOption("delete_to_trash")==="true";const t=this._sortedItems.filter((e=>this.selection[e.path]));if(!t.length){return}const n=this._trans.__("Are you sure you want to move to trash: %1?",t[0].name);const o=this._trans.__("Are you sure you want to permanently delete: %1?",t[0].name);const r=this._trans._n("Are you sure you want to move to trash the %1 selected item?","Are you sure you want to move to trash the %1 selected items?",t.length);const a=this._trans._n("Are you sure you want to permanently delete the %1 selected item?","Are you sure you want to permanently delete the %1 selected items?",t.length);const l=e?n:o;const d=e?r:a;const c=e?this._trans.__("Move to Trash"):this._trans.__("Delete");const h=t.length===1?l:d;const u=await(0,i.showDialog)({title:c,body:h,buttons:[i.Dialog.cancelButton({label:this._trans.__("Cancel")}),i.Dialog.warnButton({label:c})],defaultButton:0});if(!this.isDisposed&&u.button.accept){await this._delete(t.map((e=>e.path)))}let p=this._focusIndex;const m=this._sortedItems.length-t.length-1;if(p>m){p=Math.max(0,m)}this._focusItem(p)}duplicate(){const e=this._model.path;const t=[];for(const n of this.selectedItems()){if(n.type!=="directory"){t.push(this._model.manager.copy(n.path,e))}}return Promise.all(t).then((()=>undefined)).catch((e=>{void(0,i.showErrorMessage)(this._trans._p("showErrorMessage","Duplicate file"),e)}))}async selectAll(){const e=this._model.items();const t={};for(const n of e){t[n.path]=true}this.selection=t;this._selectionChanged.emit();this.update()}async download(){await Promise.all(Array.from(this.selectedItems()).filter((e=>e.type!=="directory")).map((e=>this._model.download(e.path))))}async restore(e){const t=`file-browser-${e}:columns`;const n=this._state;this._stateColumnsKey=t;if(!n){return}try{const e=await n.fetch(t);if(!e){return}const i=e["sizes"];if(!i){return}for(const[t,n]of Object.entries(i)){this._columnSizes[t]=n}this._updateColumnSizes()}catch(i){await n.remove(t)}}shutdownKernels(){const e=this._model;const t=this._sortedItems;const n=t.map((e=>e.path));const s=Array.from(this._model.sessions()).filter((e=>{const i=S.ArrayExt.firstIndexOf(n,e.path);return this.selection[t[i].path]})).map((t=>e.manager.services.sessions.shutdown(t.id)));return Promise.all(s).then((()=>undefined)).catch((e=>{void(0,i.showErrorMessage)(this._trans._p("showErrorMessage","Shut down kernel"),e)}))}selectNext(e=false){let t=-1;const n=Object.keys(this.selection);const i=this._sortedItems;if(n.length===1||e){const e=n[n.length-1];t=S.ArrayExt.findFirstIndex(i,(t=>t.path===e));t+=1;if(t===this._items.length){t=0}}else if(n.length===0){t=0}else{const e=n[n.length-1];t=S.ArrayExt.findFirstIndex(i,(t=>t.path===e))}if(t!==-1){this._selectItem(t,e);j.ElementExt.scrollIntoViewIfNeeded(this.contentNode,this._items[t])}}selectPrevious(e=false){let t=-1;const n=Object.keys(this.selection);const i=this._sortedItems;if(n.length===1||e){const e=n[0];t=S.ArrayExt.findFirstIndex(i,(t=>t.path===e));t-=1;if(t===-1){t=this._items.length-1}}else if(n.length===0){t=this._items.length-1}else{const e=n[0];t=S.ArrayExt.findFirstIndex(i,(t=>t.path===e))}if(t!==-1){this._selectItem(t,e);j.ElementExt.scrollIntoViewIfNeeded(this.contentNode,this._items[t])}}selectByPrefix(){const e=this._searchPrefix.toLowerCase();const t=this._sortedItems;const n=S.ArrayExt.findFirstIndex(t,(t=>t.name.toLowerCase().substr(0,e.length)===e));if(n!==-1){this._selectItem(n,false);j.ElementExt.scrollIntoViewIfNeeded(this.contentNode,this._items[n])}}isSelected(e){const t=this._sortedItems;return Array.from((0,S.filter)(t,(t=>t.name===e&&this.selection[t.path]))).length!==0}modelForClick(e){const t=this._sortedItems;const n=he.hitTestNodes(this._items,e);if(n!==-1){return t[n]}return undefined}clearSelectedItems(e=true){this.selection=Object.create(null);if(e){this._selectionChanged.emit()}}async selectItemByName(e,t=false){return this._selectItemByName(e,t)}async _selectItemByName(e,t=false,n=false){if(!n&&this.isSelected(e)){return}await this.model.refresh();if(this.isDisposed){throw new Error("File browser is disposed.")}const i=this._sortedItems;const s=S.ArrayExt.findFirstIndex(i,(t=>t.name===e));if(s===-1){throw new Error("Item does not exist.")}this._selectItem(s,false,t);T.MessageLoop.sendMessage(this,d.Widget.Msg.UpdateRequest);j.ElementExt.scrollIntoViewIfNeeded(this.contentNode,this._items[s])}handleEvent(e){switch(e.type){case"mousedown":this._evtMousedown(e);break;case"mouseup":this._evtMouseup(e);break;case"mousemove":this._evtMousemove(e);break;case"keydown":this.evtKeydown(e);break;case"click":this._evtClick(e);break;case"dblclick":this.evtDblClick(e);break;case"dragenter":case"dragover":if(this._allowDragDropUpload){this.addClass("jp-mod-native-drop")}e.preventDefault();break;case"dragleave":case"dragend":this.removeClass("jp-mod-native-drop");break;case"drop":this.removeClass("jp-mod-native-drop");this.evtNativeDrop(e);break;case"scroll":this._evtScroll(e);break;case"lm-dragenter":this.evtDragEnter(e);break;case"lm-dragleave":this.evtDragLeave(e);break;case"lm-dragover":this.evtDragOver(e);break;case"lm-drop":this.evtDrop(e);break;default:break}}onAfterAttach(e){super.onAfterAttach(e);const t=this.node;this._width=this._computeContentWidth();const n=i.DOMUtils.findElement(t,R);t.addEventListener("mousedown",this);t.addEventListener("keydown",this);t.addEventListener("click",this);t.addEventListener("dblclick",this);this._contentSizeObserver.observe(n);n.addEventListener("dragenter",this);n.addEventListener("dragover",this);n.addEventListener("dragleave",this);n.addEventListener("dragend",this);n.addEventListener("drop",this);n.addEventListener("scroll",this);n.addEventListener("lm-dragenter",this);n.addEventListener("lm-dragleave",this);n.addEventListener("lm-dragover",this);n.addEventListener("lm-drop",this);this._updateColumnSizes()}onBeforeDetach(e){super.onBeforeDetach(e);const t=this.node;const n=i.DOMUtils.findElement(t,R);t.removeEventListener("mousedown",this);t.removeEventListener("keydown",this);t.removeEventListener("click",this);t.removeEventListener("dblclick",this);this._contentSizeObserver.disconnect();n.removeEventListener("scroll",this);n.removeEventListener("dragover",this);n.removeEventListener("dragover",this);n.removeEventListener("dragleave",this);n.removeEventListener("dragend",this);n.removeEventListener("drop",this);n.removeEventListener("lm-dragenter",this);n.removeEventListener("lm-dragleave",this);n.removeEventListener("lm-dragover",this);n.removeEventListener("lm-drop",this);document.removeEventListener("mousemove",this,true);document.removeEventListener("mouseup",this,true)}onAfterShow(e){if(this._isDirty){this.sort(this.sortState);this.update()}}_onContentResize(){const e=i.DOMUtils.findElement(this.node,R);const t=e.offsetWidth-e.clientWidth;if(t!=this._contentScrollbarWidth){this._contentScrollbarWidth=t;this._width=this._computeContentWidth();this._updateColumnSizes()}}_computeContentWidth(e=null){if(!e){e=this.node.getBoundingClientRect().width}this._paddingWidth=parseFloat(window.getComputedStyle(this.node).getPropertyValue("--jp-dirlisting-padding-width"));const t=this.node.querySelector(`.${Q}`);this._handleWidth=t?t.getBoundingClientRect().width:re;return e-this._paddingWidth*2-this._contentScrollbarWidth}_updateModifiedSize(e){var t,n;const s=i.DOMUtils.findElement(e,q);this._modifiedWidth=(n=(t=this._columnSizes["last_modified"])!==null&&t!==void 0?t:s===null||s===void 0?void 0:s.getBoundingClientRect().width)!==null&&n!==void 0?n:83;this._modifiedStyle=this._modifiedWidth<100?"narrow":this._modifiedWidth>120?"long":"short"}_updateModifiedStyleAndSize(){const e=this._modifiedStyle;this._updateModifiedSize(this.node);if(e!==this._modifiedStyle){this.updateModified(this._sortedItems,this._items)}}updateModified(e,t){e.forEach(((e,n)=>{const s=t[n];if(s&&e.last_modified){const t=i.DOMUtils.findElement(s,z);if(this.renderer.updateItemModified!==undefined){this.renderer.updateItemModified(t,e.last_modified,this._modifiedStyle)}else{ce.defaultRenderer.updateItemModified(t,e.last_modified,this._modifiedStyle)}}}))}updateNodes(e,t,n=false){var i;e.forEach(((e,i)=>{const s=t[i];if(n&&this.renderer.updateItemSize){if(!s){return}return this.renderer.updateItemSize(s,e,this._modifiedStyle,this._columnSizes)}const o=this._manager.registry.getFileTypeForModel(e);this.renderer.updateItemNode(s,e,o,this.translator,this._hiddenColumns,this.selection[e.path],this._modifiedStyle,this._columnSizes);if(this.selection[e.path]&&this._isCut&&this._model.path===this._prevPath){s.classList.add(ee)}s.setAttribute("data-isdir",e.type==="directory"?"true":"false")}));const s=Object.keys(this.selection).length;if(s){this.addClass(Y);if(s>1){this.addClass(te)}}const o=e.map((e=>e.path));for(const r of this._model.sessions()){const e=S.ArrayExt.firstIndexOf(o,r.path);const n=t[e];if(n){let e=(i=r.kernel)===null||i===void 0?void 0:i.name;const t=this._model.specs;n.classList.add(ne);if(t&&e){const n=t.kernelspecs[e];e=n?n.display_name:this._trans.__("unknown")}const s=this._lastRenderedState.get(n);if(s!==n.title){n.title=this._trans.__("%1\nKernel: %2",n.title,e);this._lastRenderedState.set(n,n.title)}}}}onUpdateRequest(e){this._isDirty=false;const t=this._sortedItems;const n=this._items;const s=n.length===0;const o=i.DOMUtils.findElement(this.node,R);const r=this._renderer;this.removeClass(te);this.removeClass(Y);while(n.length>t.length){o.removeChild(n.pop())}while(n.length{e.classList.remove(Y);e.classList.remove(ne);e.classList.remove(ee);const n=r.getCheckboxNode(e);if(n){n.checked=false}const i=r.getNameNode(e);if(i){if(t===this._focusIndex){i.setAttribute("tabIndex","0");i.setAttribute("role","button")}else{i.setAttribute("tabIndex","-1");i.removeAttribute("role")}}}));const a=r.getCheckboxNode(this.headerNode);if(a){const e=Object.keys(this.selection).length;const n=t.length>0&&e===t.length;const i=!n&&e>0;a.checked=n;a.indeterminate=i;a.dataset.checked=String(n);a.dataset.indeterminate=String(i);const s=this.translator.load("jupyterlab");a===null||a===void 0?void 0:a.setAttribute("aria-label",n||i?s.__("Deselect all files and directories"):s.__("Select all files and directories"))}this.updateNodes(t,n);if(s){this._width=this._computeContentWidth();this._updateColumnSizes()}this._prevPath=this._model.path}onResize(e){const{width:t}=e.width===-1?this.node.getBoundingClientRect():e;this._width=this._computeContentWidth(t);this._updateColumnSizes()}setColumnVisibility(e,t){if(t){this._hiddenColumns.delete(e)}else{this._hiddenColumns.add(e)}this.headerNode.innerHTML="";this._renderer.populateHeaderNode(this.headerNode,this.translator,this._hiddenColumns,this._columnSizes);this._updateColumnSizes()}_updateColumnSizes(e=null){const t=this._visibleColumns.map((e=>({...e,element:i.DOMUtils.findElement(this.node,e.className)}))).filter((e=>e.element));let n=0;for(const i of t){let e=this._columnSizes[i.id];if(e===null){e=i.element.getBoundingClientRect().width}e=Math.max(e,i.minWidth);if(this._width){let n=0;for(const e of t){if(e.id===i.id){continue}n+=e.minWidth}e=Math.min(e,this._width-n)}this._columnSizes[i.id]=e;n+=e}if(this._width){const i=this._width-n;let s=e===null;const o=t.filter((t=>{if(s){return true}if(t.id===e){s=true}return false}));const r=o.map((e=>e.grow)).reduce(((e,t)=>e+t),0);for(const e of o){const t=i*e.grow/r;this._columnSizes[e.id]=this._columnSizes[e.id]+t}}const s=this.node.getElementsByClassName(Q);const o=t.map((e=>he.isResizable(e)));let r=0;for(const i of t){let e=this._columnSizes[i.id];if(he.isResizable(i)&&e){e-=this._handleWidth*s.length/o.length;if(r===0||r===o.length-1){e+=this._paddingWidth}r+=1}i.element.style.width=e===null?"":e+"px"}this._updateModifiedStyleAndSize();if(this.isVisible){const e=this._items;if(e.length!==0){this.updateNodes(this._sortedItems,this._items,true)}}if(this._state&&this._stateColumnsKey){void this._state.save(this._stateColumnsKey,{sizes:this._columnSizes})}}get _visibleColumns(){return ce.columns.filter((e=>{var t;return e.id==="name"||!((t=this._hiddenColumns)===null||t===void 0?void 0:t.has(e.id))}))}_setColumnSize(e,t){var n;const s=this._columnSizes[e];if(s&&t&&t>s){let s=0;let o=true;for(const r of this._visibleColumns){if(r.id===e){s+=t;o=false;continue}if(o){const e=i.DOMUtils.findElement(this.node,r.className);s+=(n=this._columnSizes[r.id])!==null&&n!==void 0?n:e.getBoundingClientRect().width}else{s+=r.minWidth}}if(this._width&&s>this._width){return}}this._columnSizes[e]=t;this._updateColumnSizes(e)}setNotebooksFirstSorting(e){let t=this._sortNotebooksFirst;this._sortNotebooksFirst=e;if(this._sortNotebooksFirst!==t){this.sort(this._sortState)}}setAllowSingleClickNavigation(e){this._allowSingleClick=e}setAllowDragDropUpload(e){this._allowDragDropUpload=e}isWithinCheckboxHitArea(e){let t=e.target;while(t){if(t.classList.contains(H)){return true}t=t.parentElement}return false}_evtClick(e){const t=e.target;const n=this.headerNode;const i=this._renderer;if(n.contains(t)){const t=i.getCheckboxNode(n);if(t&&this.isWithinCheckboxHitArea(e)){const e=t.dataset.indeterminate==="false"&&t.dataset.checked==="false";if(e){this._sortedItems.forEach((e=>this.selection[e.path]=true));this._selectionChanged.emit()}else{this.clearSelectedItems()}this.update()}else{const t=this.renderer.handleHeaderClick(n,e);if(t){this.sort(t)}}return}else{this._focusItem(this._focusIndex)}if(this._allowSingleClick){this.evtDblClick(e)}}_evtScroll(e){this.headerNode.scrollLeft=this.contentNode.scrollLeft}_evtMousedown(e){if(e.target===this._editNode){return}if(this._editNode.parentNode){if(this._editNode!==e.target){this._editNode.focus();this._editNode.blur();clearTimeout(this._selectTimer)}else{return}}let t=he.hitTestNodes(this._items,e);if(t===-1){if(e.button===0){const t=e.target;if(t instanceof HTMLElement&&t.classList.contains(Q)){const n=t.dataset.column;if(!n){throw Error("Column resize handle is missing data-column attribute")}const s=ce.columns.find((e=>e.id===n));if(!s){throw Error(`Column with identifier ${n} not found`)}const o=i.DOMUtils.findElement(this.node,s.className);t.classList.add(ie);const r=I.Drag.overrideCursor("col-resize");this._resizeData={pressX:e.clientX,column:n,initialSize:o.getBoundingClientRect().width,overrides:new k.DisposableDelegate((()=>{r.dispose();t.classList.remove(ie)}))};document.addEventListener("mouseup",this,true);document.addEventListener("mousemove",this,true);return}}return}this.handleFileSelect(e);if(e.button!==0){clearTimeout(this._selectTimer)}const n=le&&e.ctrlKey||e.button===2;if(n){return}if(e.button===0){this._dragData={pressX:e.clientX,pressY:e.clientY,index:t};document.addEventListener("mouseup",this,true);document.addEventListener("mousemove",this,true)}}_evtMouseup(e){if(this._softSelection){const t=e.metaKey||e.shiftKey||e.ctrlKey;if(!t&&e.button===0){this.clearSelectedItems();this.selection[this._softSelection]=true;this._selectionChanged.emit();this.update()}this._softSelection=""}if(e.button===0){this._focusItem(this._focusIndex)}if(this._resizeData){this._resizeData.overrides.dispose();this._resizeData=null;document.removeEventListener("mousemove",this,true);document.removeEventListener("mouseup",this,true);return}if(e.button!==0||!this._drag){document.removeEventListener("mousemove",this,true);document.removeEventListener("mouseup",this,true);return}e.preventDefault();e.stopPropagation()}_evtMousemove(e){e.preventDefault();e.stopPropagation();if(this._resizeData){const{initialSize:t,column:n,pressX:i}=this._resizeData;this._setColumnSize(n,t+e.clientX-i);return}if(this._drag||!this._dragData){return}const t=this._dragData;const n=Math.abs(e.clientX-t.pressX);const i=Math.abs(e.clientY-t.pressY);if(n(0,i.showErrorMessage)(this._trans._p("showErrorMessage","Open directory"),e)))}else{const t=e.path;this._handleOpenFile(t)}}_getNextFocusIndex(e,t){const n=e+t;if(n===-1||n===this._items.length){return e}else{return n}}_handleArrowY(e,t){if(e.altKey||e.metaKey){return}if(!this._items.length){return}if(!e.target.classList.contains(B)){return}e.stopPropagation();e.preventDefault();const n=this._focusIndex;let i=this._getNextFocusIndex(n,t);if(t>0&&n===0&&!e.ctrlKey&&Object.keys(this.selection).length===0){i=0}if(e.shiftKey){this._handleMultiSelect(i)}else if(!e.ctrlKey){this._selectItem(i,e.shiftKey,false)}this._focusItem(i);this.update()}async goUp(){const e=this.model;if(e.path===e.rootPath){return}try{await e.cd("..")}catch(t){console.warn(`Failed to go to parent directory of ${e.path}`,t)}}evtKeydown(e){if(this._inRename){return}switch(e.keyCode){case 13:{if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey){return}e.preventDefault();e.stopPropagation();for(const e of this.selectedItems()){this.handleOpen(e)}return}case 38:this._handleArrowY(e,-1);return;case 40:this._handleArrowY(e,1);return;case 32:{if(e.ctrlKey){if(e.metaKey||e.shiftKey||e.altKey){return}const t=this._items[this._focusIndex];if(!(t.contains(e.target)&&t.contains(document.activeElement))){return}e.stopPropagation();e.preventDefault();const{path:n}=this._sortedItems[this._focusIndex];if(this.selection[n]){delete this.selection[n]}else{this.selection[n]=true}this._selectionChanged.emit();this.update();return}break}}if(e.key!==undefined&&e.key.length===1&&!((e.key===" "||e.keyCode===32)&&e.target.type==="checkbox")){if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey){return}this._searchPrefix+=e.key;clearTimeout(this._searchPrefixTimer);this._searchPrefixTimer=window.setTimeout((()=>{this._searchPrefix=""}),oe);this.selectByPrefix();e.stopPropagation();e.preventDefault()}}evtDblClick(e){if(e.button!==0){return}if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey){return}if(this.isWithinCheckboxHitArea(e)){return}e.preventDefault();e.stopPropagation();clearTimeout(this._selectTimer);this._editNode.blur();const t=e.target;const n=S.ArrayExt.findFirstIndex(this._items,(e=>e.contains(t)));if(n===-1){return}const i=this._sortedItems[n];this.handleOpen(i)}evtNativeDrop(e){var t,n,i;e.preventDefault();if(!this._allowDragDropUpload){return}const s=(t=e.dataTransfer)===null||t===void 0?void 0:t.items;if(!s){const t=(n=e.dataTransfer)===null||n===void 0?void 0:n.files;if(!t||t.length===0){return}const i=[];for(const e of t){const t=this._model.upload(e);i.push(t)}Promise.all(i).then((()=>this._allUploaded.emit())).catch((e=>{console.error("Error while uploading files: ",e)}));return}const o=async(e,t)=>{if(he.isDirectoryEntry(e)){const n=await he.createDirectory(this._model.manager,t,e.name);const i=e.createReader();const s=await he.collectEntries(i);for(const e of s){await o(e,n)}}else if(he.isFileEntry(e)){const n=await he.readFile(e);await this._model.upload(n,t)}};const r=[];for(const a of s){const e=he.defensiveGetAsEntry(a);if(!e){continue}const t=o(e,(i=this._model.path)!==null&&i!==void 0?i:"/");r.push(t)}Promise.all(r).then((()=>this._allUploaded.emit())).catch((e=>{console.error("Error while uploading files: ",e)}))}get allUploaded(){return this._allUploaded}evtDragEnter(e){if(e.mimeData.hasData(K)){const t=he.hitTestNodes(this._items,e);if(t===-1){return}const n=this._sortedItems[t];if(n.type!=="directory"||this.selection[n.path]){return}const i=e.target;i.classList.add(G);e.preventDefault();e.stopPropagation()}}evtDragLeave(e){e.preventDefault();e.stopPropagation();const t=i.DOMUtils.findElement(this.node,G);if(t){t.classList.remove(G)}}evtDragOver(e){e.preventDefault();e.stopPropagation();e.dropAction=e.proposedAction;const t=i.DOMUtils.findElement(this.node,G);if(t){t.classList.remove(G)}const n=he.hitTestNodes(this._items,e);this._items[n].classList.add(G)}evtDrop(e){e.preventDefault();e.stopPropagation();clearTimeout(this._selectTimer);if(e.proposedAction==="none"){e.dropAction="none";return}if(!e.mimeData.hasData(K)){return}let t=e.target;while(t&&t.parentElement){if(t.classList.contains(G)){t.classList.remove(G);break}t=t.parentElement}const n=S.ArrayExt.firstIndexOf(this._items,t);const o=this._sortedItems;let r=this._model.path;if(o[n].type==="directory"){r=s.PathExt.join(r,o[n].name)}const a=this._manager;const l=[];const d=e.mimeData.getData(K);if(e.ctrlKey&&e.proposedAction==="move"){e.dropAction="copy"}else{e.dropAction=e.proposedAction}for(const i of d){const t=a.services.contents.localPath(i);const n=s.PathExt.basename(t);const o=s.PathExt.join(r,n);if(o===i){continue}if(e.dropAction==="copy"){l.push(a.copy(i,r))}else{l.push((0,u.renameFile)(a,i,o))}}Promise.all(l).catch((e=>{void(0,i.showErrorMessage)(this._trans._p("showErrorMessage","Error while copying/moving files"),e)}))}_startDrag(e,t,n){let i=Object.keys(this.selection);const s=this._items[e];const o=this._sortedItems;let r;let a;if(!s.classList.contains(Y)){a=o[e];i=[a.path];r=[a]}else{const e=i[0];a=o.find((t=>t.path===e));r=this.selectedItems()}if(!a){return}const l=this._manager.registry.getFileTypeForModel(a);const d=this.renderer.createDragImage(s,i.length,this._trans,l);this._drag=new I.Drag({dragImage:d,mimeData:new p.MimeData,supportedActions:"move",proposedAction:"move"});this._drag.mimeData.setData(K,i);const c=this.model.manager.services;for(const h of r){this._drag.mimeData.setData(J,{model:h,withContent:async()=>await c.contents.get(h.path)})}if(a&&a.type!=="directory"){const e=i.slice(1).reverse();this._drag.mimeData.setData(de,(()=>{if(!a){return}const t=a.path;let n=this._manager.findWidget(t);if(!n){n=this._manager.open(a.path)}if(e.length){const t=new p.PromiseDelegate;void t.promise.then((()=>{let t=n;e.forEach((e=>{const n={ref:t===null||t===void 0?void 0:t.id,mode:"tab-after"};t=this._manager.openOrReveal(e,void 0,void 0,n);this._manager.openOrReveal(a.path)}))}));t.resolve(void 0)}return n}))}document.removeEventListener("mousemove",this,true);document.removeEventListener("mouseup",this,true);clearTimeout(this._selectTimer);void this._drag.start(t,n).then((e=>{this._drag=null;clearTimeout(this._selectTimer)}))}handleFileSelect(e){const t=this._sortedItems;const n=he.hitTestNodes(this._items,e);clearTimeout(this._selectTimer);if(n===-1){return}this._softSelection="";const i=t[n].path;const s=Object.keys(this.selection);const o=e.button===0&&!(le&&e.ctrlKey)&&this.isWithinCheckboxHitArea(e);if(le&&e.metaKey||!le&&e.ctrlKey||o){if(this.selection[i]){delete this.selection[i]}else{this.selection[i]=true}this._selectionChanged.emit();this._focusItem(n)}else if(e.shiftKey){this._handleMultiSelect(n);this._focusItem(n)}else if(i in this.selection&&s.length>1){this._softSelection=i}else{return this._selectItem(n,false,true)}this.update()}_focusItem(e){const t=this._items;if(t.length===0){this._focusIndex=0;this.node.focus();return}this._focusIndex=e;const n=t[e];const i=this.renderer.getNameNode(n);if(i){i.tabIndex=0;i.focus()}}_allSelectedBetween(e,t){if(e===t){return}const[n,i]=ee&&this.selection[t.path]),true)}_handleMultiSelect(e){const t=this._sortedItems;const n=this._focusIndex;const i=t[e];let s=true;if(e===n){if(!this.selection[i.path]){this.selection[i.path]=true;this._selectionChanged.emit()}return}if(this.selection[i.path]){if(Math.abs(e-n)===1){const i=t[n];const s=t[n+(ethis._model.manager.deleteFile(e).catch((e=>{void(0,i.showErrorMessage)(this._trans._p("showErrorMessage","Delete Failed"),e)})))))}async _doRename(){this._inRename=true;const e=Object.keys(this.selection);if(e.length===0){this._inRename=false;return Promise.resolve("")}const t=this._sortedItems;let{path:n}=t[this._focusIndex];if(!this.selection[n]){n=e.slice(-1)[0]}const o=S.ArrayExt.findFirstIndex(t,(e=>e.path===n));const r=this._items[o];const a=t[o];const l=this.renderer.getNameNode(r);const d=a.name;this._editNode.value=d;this._selectItem(o,false,true);const c=await he.userInputForRename(l,this._editNode,d);if(this.isDisposed){this._inRename=false;throw new Error("File browser is disposed.")}let h=c;if(!c||c===d){h=d}else if(!(0,u.isValidFileName)(c)){void(0,i.showErrorMessage)(this._trans.__("Rename Error"),Error(this._trans._p("showErrorMessage",'"%1" is not a valid name for a file. Names must have nonzero length, and cannot include "/", "\\", or ":"',c)));h=d}else{const e=this._manager;const t=s.PathExt.join(this._model.path,d);const n=s.PathExt.join(this._model.path,c);try{await(0,u.renameFile)(e,t,n)}catch(p){if(p!=="File not renamed"){void(0,i.showErrorMessage)(this._trans._p("showErrorMessage","Rename Error"),p)}h=d}if(this.isDisposed){this._inRename=false;throw new Error("File browser is disposed.")}}if(!this.isDisposed&&Object.keys(this.selection).length===1&&this.selection[a.path]){try{await this._selectItemByName(h,true,true)}catch(m){console.warn("After rename, failed to select file",h)}}this._inRename=false;return h}_selectItem(e,t,n=true){const i=this._sortedItems;if(!t){this.clearSelectedItems()}const s=i[e].path;this.selection[s]=true;this._selectionChanged.emit();if(n){this._focusItem(e)}this.update()}_onModelRefreshed(){const e=Object.keys(this.selection);this.clearSelectedItems(false);for(const t of this._model.items()){const n=t.path;if(e.indexOf(n)!==-1){this.selection[n]=true}}if(this.isVisible){this.sort(this.sortState)}else{this._isDirty=true}}_onPathChanged(){this.clearSelectedItems();this.sort(this.sortState);requestAnimationFrame((()=>{this._focusItem(0)}))}_onFileChanged(e,t){const n=t.newValue;if(!n){return}const i=n.name;if(t.type!=="new"||!i){return}void this.selectItemByName(i).catch((()=>{}))}_onActivateRequested(e,t){const n=s.PathExt.dirname(t);if(n!==this._model.path){return}const i=s.PathExt.basename(t);this.selectItemByName(i).catch((()=>{}))}}(function(e){e.columns=[{id:"is_selected",className:H,itemClassName:H,minWidth:18,resizable:false,sortable:false,grow:0},{id:"name",className:U,itemClassName:O,minWidth:60,resizable:true,sortable:true,caretSide:"right",grow:3},{id:"last_modified",className:q,itemClassName:z,minWidth:60,resizable:true,sortable:true,caretSide:"left",grow:1},{id:"file_size",className:$,itemClassName:W,minWidth:60,resizable:true,sortable:true,caretSide:"left",grow:.5}];class t{constructor(){this.itemFactories={name:()=>{const e=document.createElement("span");const t=document.createElement("span");const n=document.createElement("span");t.className=F;n.className=B;e.className=O;e.appendChild(t);e.appendChild(n);return e},last_modified:()=>{const e=document.createElement("span");e.className=z;return e},file_size:()=>{const e=document.createElement("span");e.className=W;return e},is_selected:()=>this.createCheckboxWrapperNode()};this._modifiedColumnLastUpdate=new WeakMap;this._lastRenderedState=new WeakMap}createNode(){const e=document.createElement("div");const t=document.createElement("div");const n=document.createElement("ul");n.setAttribute("data-lm-dragscroll","true");n.className=R;t.className=D;e.appendChild(t);e.appendChild(n);e.tabIndex=-1;return e}populateHeaderNode(t,n,s,o){n=n||r.nullTranslator;const a=n.load("jupyterlab");const l={name:()=>this.createHeaderItemNode(a.__("Name")),last_modified:()=>this._createHeaderItemNodeWithSizes({small:a.__("Modified"),large:a.__("Last Modified")}),file_size:()=>this._createHeaderItemNodeWithSizes({small:a.__("Size"),large:a.__("File Size")}),is_selected:()=>this.createCheckboxWrapperNode({alwaysVisible:true,headerNode:true})};const d=e.columns.filter((e=>e.id==="name"||!(s===null||s===void 0?void 0:s.has(e.id))));for(const e of d){const n=l[e.id];const i=n();i.classList.add(e.className);const s=e.id===d[d.length-1].id;if(o){const t=o[e.id];if(!s){i.style.width=t+"px"}}t.appendChild(i);if(he.isResizable(e)&&!s){const n=document.createElement("div");n.classList.add(Q);n.dataset.column=e.id;t.appendChild(n)}}const c=i.DOMUtils.findElement(t,U);c.classList.add(Y);he.updateCaret(i.DOMUtils.findElement(c,L),"right","up")}handleHeaderClick(t,n){const s={direction:"ascending",key:"name"};const o=n.target;const r=e.columns.filter(he.isSortable);for(const e of r){const n=t.querySelector(`.${e.className}`);if(!n){continue}if(n.contains(o)){s.key=e.id;const o=i.DOMUtils.findElement(n,L);if(n.classList.contains(Y)){if(!n.classList.contains(se)){s.direction="descending";n.classList.add(se);he.updateCaret(o,e.caretSide,"down")}else{n.classList.remove(se);he.updateCaret(o,e.caretSide,"up")}}else{n.classList.remove(se);he.updateCaret(o,e.caretSide,"up")}n.classList.add(Y);for(const n of r){if(n.id===e.id){continue}const s=t.querySelector(`.${n.className}`);if(!s){continue}s.classList.remove(Y);s.classList.remove(se);const o=i.DOMUtils.findElement(s,L);he.updateCaret(o,n.caretSide)}return s}}return s}createItemNode(t,n){const i=document.createElement("li");for(const s of e.columns){if(s.id!="name"&&(t===null||t===void 0?void 0:t.has(s.id))){continue}const e=this.itemFactories[s.id];const o=e();i.appendChild(o);if(n){const e=n[s.id];o.style.width=e+"px"}}return i}createCheckboxWrapperNode(e){const t=document.createElement("label");t.classList.add(H);const n=document.createElement("input");n.type="checkbox";if(!(e===null||e===void 0?void 0:e.headerNode)){n.addEventListener("click",(e=>{e.preventDefault()}))}if(e===null||e===void 0?void 0:e.alwaysVisible){t.classList.add("jp-mod-visible")}else{n.tabIndex=-1}t.appendChild(n);return t}updateItemModified(e,t,n){const i=this._modifiedColumnLastUpdate.get(e);if((i===null||i===void 0?void 0:i.date)===t&&(i===null||i===void 0?void 0:i.style)===n){return}const o=new Date(t);const r=s.Time.formatHuman(o,n);const a=s.Time.format(o);e.textContent=r;e.title=a;this._modifiedColumnLastUpdate.set(e,{date:t,style:n})}updateItemNode(e,t,n,o,l,d,c,h){if(d){e.classList.add(Y)}n=n||x.DocumentRegistry.getDefaultTextFileType(o);const{icon:u,iconClass:p,name:m}=n;o=o||r.nullTranslator;const g=o.load("jupyterlab");const f=this._lastRenderedState.get(e);const v=JSON.stringify({name:t.name,selected:d,lastModified:t.last_modified,modifiedStyle:c,hiddenColumns:l,columnsSizes:h,fileSize:t.size});const _=i.DOMUtils.findElement(e,H);const b=_===null||_===void 0?void 0:_.querySelector('input[type="checkbox"]');if(b)b.checked=d!==null&&d!==void 0?d:false;if(f===v)return;this._lastRenderedState.set(e,v);const y=i.DOMUtils.findElement(e,F);const w=i.DOMUtils.findElement(e,B);const C=i.DOMUtils.findElement(e,O);let j=i.DOMUtils.findElement(e,z);let k=i.DOMUtils.findElement(e,W);const I=!(l===null||l===void 0?void 0:l.has("is_selected"));if(_&&!I){e.removeChild(_)}else if(I&&!_){const e=this.createCheckboxWrapperNode();C.insertAdjacentElement("beforebegin",e)}const T=!(l===null||l===void 0?void 0:l.has("last_modified"));if(j&&!T){e.removeChild(j)}else if(T&&!j){j=this.itemFactories.last_modified();C.insertAdjacentElement("afterend",j)}const M=!(l===null||l===void 0?void 0:l.has("file_size"));if(k&&!M){e.removeChild(k)}else if(M&&!k){k=this.itemFactories.file_size();(j!==null&&j!==void 0?j:C).insertAdjacentElement("afterend",k)}requestAnimationFrame((()=>{a.LabIcon.resolveElement({icon:u,iconClass:(0,a.classes)(p,"jp-Icon"),container:y,className:F,stylesheet:"listing"})}));let D=g.__("Name: %1",t.name);if(t.size!==null&&t.size!==undefined){const e=ue(t.size,1,1024);if(k){k.textContent=e}D+=g.__("\nSize: %1",ue(t.size,1,1024))}else if(k){k.textContent=""}if(t.path){const e=s.PathExt.dirname(t.path);if(e){D+=g.__("\nPath: %1",e.substr(0,50));if(e.length>50){D+="..."}}}if(t.created){D+=g.__("\nCreated: %1",s.Time.format(new Date(t.created)))}if(t.last_modified){D+=g.__("\nModified: %1",s.Time.format(new Date(t.last_modified)))}D+=g.__("\nWritable: %1",t.writable);e.title=D;e.setAttribute("data-file-type",m);if(t.name.startsWith(".")){e.setAttribute("data-is-dot","true")}else{e.removeAttribute("data-is-dot")}const A=!t.indices?[]:t.indices;let P=S.StringExt.highlight(t.name,A,E.h.mark);if(w){E.VirtualDOM.render(E.h.span(P),w)}if(b){let e;if(n.contentType==="directory"){e=d?g.__('Deselect directory "%1"',P):g.__('Select directory "%1"',P)}else{e=d?g.__('Deselect file "%1"',P):g.__('Select file "%1"',P)}b.setAttribute("aria-label",e);b.checked=d!==null&&d!==void 0?d:false}this.updateItemSize(e,t,c,h)}updateItemSize(t,n,s,o){if(o){for(const n of e.columns){const e=i.DOMUtils.findElement(t,n.itemClassName);if(!e){continue}const s=o[n.id];const r=s===null?"":s+"px";if(r!==e.style.width){e.style.width=r}}}let r=i.DOMUtils.findElement(t,z);if(n.last_modified&&r){this.updateItemModified(r,n.last_modified,s!==null&&s!==void 0?s:"short")}}getNameNode(e){return i.DOMUtils.findElement(e,B)}getCheckboxNode(e){return e.querySelector(`.${H} input[type=checkbox]`)}createDragImage(t,n,s,o){const r=t.cloneNode(true);const a=i.DOMUtils.findElement(r,F);const l=e.columns.filter((e=>e.id!=="name"));for(const e of l){const t=i.DOMUtils.findElement(r,e.itemClassName);if(!t){continue}r.removeChild(t)}if(!o){a.textContent="";a.className=""}else{a.textContent=o.iconLabel||"";a.className=o.iconClass||""}a.classList.add(X);if(n>1){const e=i.DOMUtils.findElement(r,B);e.textContent=s._n("%1 Item","%1 Items",n)}return r}createHeaderItemNode(e){const t=document.createElement("div");const n=document.createElement("span");const i=document.createElement("span");t.className=A;n.className=P;i.className=L;n.textContent=e;t.appendChild(n);t.appendChild(i);return t}_createHeaderItemNodeWithSizes(e){const t=document.createElement("div");t.className=A;const n=document.createElement("span");n.className=L;for(let i of Object.keys(e)){const n=document.createElement("span");n.classList.add(P,P+"-"+i);n.textContent=e[i];t.appendChild(n)}t.appendChild(n);return t}}e.Renderer=t;e.defaultRenderer=new t})(ce||(ce={}));var he;(function(e){function t(e,t,n){const i=e.parentElement;i.replaceChild(t,e);t.focus();const s=t.value.lastIndexOf(".");if(s===-1){t.setSelectionRange(0,t.value.length)}else{t.setSelectionRange(0,s)}return new Promise((s=>{t.onblur=()=>{i.replaceChild(e,t);s(t.value)};t.onkeydown=i=>{switch(i.keyCode){case 13:i.stopPropagation();i.preventDefault();t.blur();break;case 27:i.stopPropagation();i.preventDefault();t.value=n;t.blur();e.focus();break;default:break}}}))}e.userInputForRename=t;function n(e,t,n=false,i){const s=Array.from(e);const o=t.direction==="descending"?1:-1;function r(e,t){if(n){return e.type!==t.type}return e.type==="directory"!==(t.type==="directory")}function a(e){if(e.type==="directory"){return 2}if(e.type==="notebook"&&n){return 1}return 0}function l(e,t){var n;const s=navigator.language.split("@")[0];const o=((n=i.languageCode)!==null&&n!==void 0?n:s).replace("_","-");try{return e.name.localeCompare(t.name,o,{numeric:true,sensitivity:"base"})}catch(r){console.warn(`localeCompare failed to compare ${e.name} and ${t.name} under languageCode: ${o}`);return e.name.localeCompare(t.name,s,{numeric:true,sensitivity:"base"})}}function d(e){return(t,n)=>{if(r(t,n)){return a(n)-a(t)}const i=e(t,n);if(i!==0){return i*o}return l(t,n)}}if(t.key==="last_modified"){s.sort(d(((e,t)=>new Date(e.last_modified).getTime()-new Date(t.last_modified).getTime())))}else if(t.key==="file_size"){s.sort(d(((e,t)=>{var n,i;return((n=t.size)!==null&&n!==void 0?n:0)-((i=e.size)!==null&&i!==void 0?i:0)})))}else{s.sort(d(((e,t)=>l(t,e))))}return s}e.sort=n;e.isResizable=e=>"resizable"in e&&e.resizable;e.isSortable=e=>"sortable"in e&&e.sortable;function i(e,t){return S.ArrayExt.findFirstIndex(e,(e=>j.ElementExt.hitTest(e,t.clientX,t.clientY)||t.target===e))}e.hitTestNodes=i;function o(e,t,n){if(n){(n==="down"?a.caretDownIcon:a.caretUpIcon).element({container:e,tag:"span",stylesheet:"listingHeaderItem"});if(t==="left"){e.style.order="-1"}else{e.style.order=""}}else{a.LabIcon.remove(e);e.className=L}}e.updateCaret=o;async function r(e,t,n){const i=await e.newUntitled({path:t,type:"directory"});const o=s.PathExt.join(t,i.name);const r=s.PathExt.join(t,n);try{await e.rename(o,r)}catch(a){await e.deleteFile(o)}return r}e.createDirectory=r;function l(e){return e.isDirectory}e.isDirectoryEntry=l;function d(e){return e.isFile}e.isFileEntry=d;function c(e){if(e.webkitGetAsEntry){return e.webkitGetAsEntry()}if("getAsEntry"in e){return e["getAsEntry"]()}return null}e.defensiveGetAsEntry=c;function h(e){return new Promise(((t,n)=>e.readEntries(t,n)))}function u(e){return new Promise(((t,n)=>e.file(t,n)))}e.readFile=u;async function p(e){const t=[];let n=false;while(!n){const i=await h(e);if(i.length===0){n=true}else{t.push(...i)}}return t}e.collectEntries=p})(he||(he={}));function ue(e,t,n){if(e===0){return"0 B"}const i=t||2;const s=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];const o=Math.floor(Math.log(e)/Math.log(n));if(o>=0&&o{this.model.setFilter((t=>e(t.name.toLowerCase())))},useFuzzyFilter:this.model.useFuzzyFilter,placeholder:this._trans.__("Filter files by name"),forceRefresh:false,showIcon:false,inputRef:this._fileFilterRef,filterSettingsChanged:this.model.filterSettingsChanged});o.addClass(be);this.filterToolbar=new a.Toolbar;this.filterToolbar.addClass(ve);this.filterToolbar.node.setAttribute("aria-label",this._trans.__("File browser toolbar"));this.filterToolbar.addItem("fileNameSearcher",o);this.filterToolbar.setHidden(!this.showFileFilter);this.listing=this.createDirListing({model:i,renderer:s,translator:n,state:e.state,handleOpenFile:e.handleOpenFile});this.listing.addClass(_e);this.listing.selectionChanged.connect((()=>{this._selectionChanged.emit()}));this.mainPanel.addWidget(this.crumbs);this.mainPanel.addWidget(this.filterToolbar);this.mainPanel.addWidget(this.listing);this.addWidget(this.mainPanel);if(e.restore!==false){void i.restore(this.id)}void this.listing.restore(this.id)}get navigateToCurrentDirectory(){return this._navigateToCurrentDirectory}set navigateToCurrentDirectory(e){this._navigateToCurrentDirectory=e}get showLastModifiedColumn(){return this._showLastModifiedColumn}set showLastModifiedColumn(e){if(this.listing.setColumnVisibility){this.listing.setColumnVisibility("last_modified",e);this._showLastModifiedColumn=e}else{console.warn("Listing does not support toggling column visibility")}}get minimumBreadcrumbsLeftItems(){return this.crumbs.minimumLeftItems}set minimumBreadcrumbsLeftItems(e){this.crumbs.minimumLeftItems=e}get minimumBreadcrumbsRightItems(){return this.crumbs.minimumRightItems}set minimumBreadcrumbsRightItems(e){this.crumbs.minimumRightItems=e}get showFullPath(){return this.crumbs.fullPath}set showFullPath(e){this.crumbs.fullPath=e}get showFileSizeColumn(){return this._showFileSizeColumn}set showFileSizeColumn(e){if(this.listing.setColumnVisibility){this.listing.setColumnVisibility("file_size",e);this._showFileSizeColumn=e}else{console.warn("Listing does not support toggling column visibility")}}get showHiddenFiles(){return this._showHiddenFiles}set showHiddenFiles(e){this.model.showHiddenFiles(e);this._showHiddenFiles=e}get showFileCheckboxes(){return this._showFileCheckboxes}set showFileCheckboxes(e){if(this.listing.setColumnVisibility){this.listing.setColumnVisibility("is_selected",e);this._showFileCheckboxes=e}else{console.warn("Listing does not support toggling column visibility")}}get showFileFilter(){return this._showFileFilter}set showFileFilter(e){var t;const n=this.showFileFilter;if(n&&!e){if(this._fileFilterRef.current){this._fileFilterRef.current.value=""}this.model.setFilter((e=>({})));this.model.refresh().catch(console.warn)}this._showFileFilter=e;this.filterToolbar.setHidden(!this.showFileFilter);if(this.showFileFilter){(t=this._fileFilterRef.current)===null||t===void 0?void 0:t.focus()}}get sortNotebooksFirst(){return this._sortNotebooksFirst}set sortNotebooksFirst(e){if(this.listing.setNotebooksFirstSorting){this.listing.setNotebooksFirstSorting(e);this._sortNotebooksFirst=e}else{console.warn("Listing does not support sorting notebooks first")}}get singleClickNavigation(){return this._allowSingleClick}set singleClickNavigation(e){if(this.listing.setAllowSingleClickNavigation){this.listing.setAllowSingleClickNavigation(e);this._allowSingleClick=e}else{console.warn("Listing does not support single click navigation")}}get allowFileUploads(){return this._allowFileUploads}set allowFileUploads(e){this.model.allowFileUploads=e;if(this.listing.setAllowDragDropUpload){this.listing.setAllowDragDropUpload(e);this._allowFileUploads=e}else{console.warn("Listing does not support setting upload")}}selectedItems(){return this.listing.selectedItems()}get selectionChanged(){return this._selectionChanged}async selectItemByName(e){await this.listing.selectItemByName(e)}clearSelectedItems(){this.listing.clearSelectedItems()}rename(){return this.listing.rename()}cut(){this.listing.cut()}copy(){this.listing.copy()}paste(){return this.listing.paste()}async _createNew(e){if(e.path){const t=this._manager.services.contents.localPath(e.path);e.path=this._toDrivePath(this.model.driveName,t)}try{const t=await this._manager.newUntitled(e);await this.listing.selectItemByName(t.name,true);await this.rename();return t}catch(t){void(0,i.showErrorMessage)(this._trans.__("Error"),t);throw t}}async createNewDirectory(){if(this._directoryPending){return this._directoryPending}this._directoryPending=this._createNew({path:this.model.path,type:"directory"});try{return await this._directoryPending}finally{this._directoryPending=null}}async createNewFile(e){if(this._filePending){return this._filePending}this._filePending=this._createNew({path:this.model.path,type:"file",ext:e.ext});try{return await this._filePending}finally{this._filePending=null}}delete(){return this.listing.delete()}duplicate(){return this.listing.duplicate()}selectAll(){return this.listing.selectAll()}download(){return this.listing.download()}async goUp(){return this.listing.goUp()}shutdownKernels(){return this.listing.shutdownKernels()}selectNext(){this.listing.selectNext()}selectPrevious(){this.listing.selectPrevious()}modelForClick(e){return this.listing.modelForClick(e)}createDirListing(e){return new ce(e)}_onConnectionFailure(e,t){if(t instanceof o.ServerConnection.ResponseError&&t.response.status===404){const e=this._trans.__("Directory not found");t.message=this._trans.__('Directory not found: "%1"',this.model.path);void(0,i.showErrorMessage)(e,t)}}_toDrivePath(e,t){if(e===""){return t}else{return`${e}:${s.PathExt.removeSlash(t)}`}}}var we=n(26568);const Ce=1e4;const xe=15*1024*1024;const Se=1024*1024;class je{constructor(e){var t,n;this._connectionFailure=new l.Signal(this);this._fileChanged=new l.Signal(this);this._items=[];this._key="";this._pathChanged=new l.Signal(this);this._paths=new Set;this._pending=null;this._pendingPath=null;this._refreshed=new l.Signal(this);this._sessions=[];this._state=null;this._isDisposed=false;this._restored=new p.PromiseDelegate;this._uploads=[];this._uploadChanged=new l.Signal(this);this.manager=e.manager;this.translator=e.translator||r.nullTranslator;this._trans=this.translator.load("jupyterlab");this._driveName=e.driveName||"";this._allowFileUploads=(t=e.allowFileUploads)!==null&&t!==void 0?t:true;this._model={path:this.rootPath,name:s.PathExt.basename(this.rootPath),type:"directory",content:undefined,writable:false,created:"unknown",last_modified:"unknown",mimetype:"text/plain",format:"text"};this._state=e.state||null;const i=e.refreshInterval||Ce;const{services:o}=e.manager;o.contents.fileChanged.connect(this.onFileChanged,this);o.sessions.runningChanged.connect(this.onRunningChanged,this);this._unloadEventListener=e=>{if(this._uploads.length>0){const t=this._trans.__("Files still uploading");e.returnValue=t;return t}};window.addEventListener("beforeunload",this._unloadEventListener);this._poll=new we.Poll({auto:(n=e.auto)!==null&&n!==void 0?n:true,name:"@jupyterlab/filebrowser:Model",factory:()=>this.cd("."),frequency:{interval:i,backoff:true,max:300*1e3},standby:e.refreshStandby||"when-hidden"})}get connectionFailure(){return this._connectionFailure}get driveName(){return this._driveName}get restored(){return this._restored.promise}get fileChanged(){return this._fileChanged}get path(){return this._model?this._model.path:""}get rootPath(){return this._driveName?this._driveName+":":""}get pathChanged(){return this._pathChanged}get refreshed(){return this._refreshed}get specs(){return this.manager.services.kernelspecs.specs}get isDisposed(){return this._isDisposed}get uploadChanged(){return this._uploadChanged}uploads(){return this._uploads[Symbol.iterator]()}dispose(){if(this.isDisposed){return}window.removeEventListener("beforeunload",this._unloadEventListener);this._isDisposed=true;this._poll.dispose();this._sessions.length=0;this._items.length=0;l.Signal.clearData(this)}items(){return this._items[Symbol.iterator]()}sessions(){return this._sessions[Symbol.iterator]()}async refresh(){await this._poll.refresh();await this._poll.tick;this._refreshed.emit(void 0)}async cd(e="."){if(e!=="."){e=this.manager.services.contents.resolvePath(this._model.path,e)}else{e=this._pendingPath||this._model.path}if(this._pending){if(e===this._pendingPath){return this._pending}await this._pending}const t=this.path;const n={content:true};this._pendingPath=e;if(t!==e){this._sessions.length=0}const i=this.manager.services;this._pending=i.contents.get(e,n).then((n=>{if(this.isDisposed){return}this.handleContents(n);this._pendingPath=null;this._pending=null;if(t!==e){if(this._state&&this._key){void this._state.save(this._key,{path:e})}this._pathChanged.emit({name:"path",oldValue:t,newValue:e})}this.onRunningChanged(i.sessions,i.sessions.running());this._refreshed.emit(void 0)})).catch((t=>{this._pendingPath=null;this._pending=null;if(t.response&&t.response.status===404&&e!=="/"){t.message=this._trans.__('Directory not found: "%1"',this._model.path);console.error(t);this._connectionFailure.emit(t);return this.cd("/")}else{this._connectionFailure.emit(t)}}));return this._pending}async download(e){const t=await this.manager.services.contents.getDownloadUrl(e);const n=document.createElement("a");n.href=t;n.download="";document.body.appendChild(n);n.click();document.body.removeChild(n);return void 0}async restore(e,t=true){const{manager:n}=this;const i=`file-browser-${e}:cwd`;const s=this._state;const o=!!this._key;if(o){return}this._key=i;if(!t||!s){this._restored.resolve(undefined);return}await n.services.ready;try{const e=await s.fetch(i);if(!e){this._restored.resolve(undefined);return}const t=e["path"];if(t){await this.cd("/")}const o=n.services.contents.localPath(t);await n.services.contents.get(t);await this.cd(o)}catch(r){await s.remove(i)}this._restored.resolve(undefined)}get allowFileUploads(){return this._allowFileUploads}set allowFileUploads(e){this._allowFileUploads=e}async upload(e,t){if(!this._allowFileUploads){throw new Error(this._trans.__("File uploads are disabled"))}const n=s.PageConfig.getNotebookVersion();const i=n<[4,0,0]||n>=[5,1,0];const o=e.size>xe;if(o&&!i){const t=this._trans.__("Cannot upload file (>%1 MB). %2",xe/(1024*1024),e.name);console.warn(t);throw t}const r="File not uploaded";if(o&&!(await this._shouldUploadLarge(e))){throw"Cancelled large file upload"}await this._uploadCheckDisposed();await this.refresh();await this._uploadCheckDisposed();if(this._items.find((t=>t.name===e.name))&&!(await(0,u.shouldOverwrite)(e.name))){throw r}await this._uploadCheckDisposed();const a=i&&e.size>Se;return await this._upload(e,a,t)}async _shouldUploadLarge(e){const{button:t}=await(0,i.showDialog)({title:this._trans.__("Large file size warning"),body:this._trans.__("The file size is %1 MB. Do you still want to upload it?",Math.round(e.size/(1024*1024))),buttons:[i.Dialog.cancelButton({label:this._trans.__("Cancel")}),i.Dialog.warnButton({label:this._trans.__("Upload")})]});return t.accept}async _upload(e,t,n){let i=typeof n==="undefined"?this._model.path:n;i=i?i+"/"+e.name:e.name;const s=e.name;const o="file";const r="base64";const a=async(t,n)=>{await this._uploadCheckDisposed();const a=new FileReader;a.readAsDataURL(t);await new Promise(((t,n)=>{a.onload=t;a.onerror=t=>n(`Failed to upload "${e.name}":`+t)}));await this._uploadCheckDisposed();const l=a.result.split(",")[1];const d={type:o,format:r,name:s,chunk:n,content:l};return await this.manager.services.contents.save(i,d)};if(!t){try{return await a(e)}catch(c){S.ArrayExt.removeFirstWhere(this._uploads,(t=>e.name===t.path));throw c}}let l;let d={path:i,progress:0};this._uploadChanged.emit({name:"start",newValue:d,oldValue:null});for(let h=0;!l;h+=Se){const t=h+Se;const n=t>=e.size;const s=n?-1:t/Se;const o={path:i,progress:h/e.size};this._uploads.splice(this._uploads.indexOf(d));this._uploads.push(o);this._uploadChanged.emit({name:"update",newValue:o,oldValue:d});d=o;let r;try{r=await a(e.slice(h,t),s)}catch(c){S.ArrayExt.removeFirstWhere(this._uploads,(t=>e.name===t.path));this._uploadChanged.emit({name:"failure",newValue:d,oldValue:null});throw c}if(n){l=r}}this._uploads.splice(this._uploads.indexOf(d));this._uploadChanged.emit({name:"finish",newValue:null,oldValue:d});return l}_uploadCheckDisposed(){if(this.isDisposed){return Promise.reject("Filemanager disposed. File upload canceled")}return Promise.resolve()}handleContents(e){this._model={name:e.name,path:e.path,type:e.type,content:undefined,writable:e.writable,created:e.created,last_modified:e.last_modified,size:e.size,mimetype:e.mimetype,format:e.format};this._items=e.content;this._paths.clear();e.content.forEach((e=>{this._paths.add(e.path)}))}onRunningChanged(e,t){this._populateSessions(t);this._refreshed.emit(void 0)}onFileChanged(e,t){const n=this._model.path;const{sessions:i}=this.manager.services;const{oldValue:o,newValue:r}=t;const a=this.driveName.length>0?this.driveName+":":"";const l=o&&o.path&&a+s.PathExt.dirname(o.path)===n?o:r&&r.path&&a+s.PathExt.dirname(r.path)===n?r:undefined;if(l){void this._poll.refresh();this._populateSessions(i.running());this._fileChanged.emit(t);return}}_populateSessions(e){this._sessions.length=0;for(const t of e){if(this._paths.has(t.path)){this._sessions.push(t)}}}}class ke extends je{constructor(e){super(e);this._includeHiddenFiles=e.includeHiddenFiles||false}items(){return this._includeHiddenFiles?super.items():(0,S.filter)(super.items(),(e=>!e.name.startsWith(".")))}showHiddenFiles(e){this._includeHiddenFiles=e;void this.refresh()}}class Ie extends ke{constructor(e){var t,n,i;super(e);this._filterSettingsChanged=new l.Signal(this);this._filter=(t=e.filter)!==null&&t!==void 0?t:e=>({});this._filterDirectories=(n=e.filterDirectories)!==null&&n!==void 0?n:true;this._useFuzzyFilter=(i=e.useFuzzyFilter)!==null&&i!==void 0?i:true}get filterDirectories(){return this._filterDirectories}set filterDirectories(e){this._filterDirectories=e}get useFuzzyFilter(){return this._useFuzzyFilter}set useFuzzyFilter(e){if(this._useFuzzyFilter===e){return}this._useFuzzyFilter=e;this._filterSettingsChanged.emit({useFuzzyFilter:e})}get filterSettingsChanged(){return this._filterSettingsChanged}items(){return(0,S.filter)(super.items(),(e=>{if(!this._filterDirectories&&e.type==="directory"){return true}else{const t=this._filter(e);e.indices=t===null||t===void 0?void 0:t.indices;return!!t}}))}setFilter(e){this._filter=e;void this.refresh()}}const Te="jp-Open-Dialog";const Ee="jp-Open-Dialog-label";var Me;(function(e){async function t(e){const t=new De(e);return t.launch()}e.getOpenFiles=t;function n(e){return t({...e,filter:e=>e.type==="directory"?{}:null})}e.getExistingDirectory=n})(Me||(Me={}));class De extends i.Dialog{constructor(e){const t=e.translator||r.nullTranslator;const n=t.load("jupyterlab");const s=()=>{this.resolve()};const o=new Ae(e.manager,e.filter,t,e.defaultPath,e.label,true,s);super({title:e.title,buttons:[i.Dialog.cancelButton(),i.Dialog.okButton({label:n.__("Select")})],focusNodeSelector:e.focusNodeSelector,host:e.host,renderer:e.renderer,body:o})}}class Ae extends d.Widget{constructor(e,t,n,s,o,l,c){super();this._ready=new p.PromiseDelegate;n=n!==null&&n!==void 0?n:r.nullTranslator;const h=n.load("jupyterlab");this.addClass(Te);Pe.createFilteredFileBrowser("filtered-file-browser-dialog",e,t,{},n,s,l,c).then((e=>{this._browser=e;(0,i.setToolbar)(this._browser,(e=>[{name:"new-folder",widget:new i.ToolbarButton({icon:a.newFolderIcon,onClick:()=>{void e.createNewDirectory()},tooltip:h.__("New Folder")})},{name:"refresher",widget:new i.ToolbarButton({icon:a.refreshIcon,onClick:()=>{e.model.refresh().catch((e=>{console.error("Failed to refresh file browser in open dialog.",e)}))},tooltip:h.__("Refresh File List")})}]));const t=new d.PanelLayout;if(o){const e=new d.Widget;e.addClass(Ee);e.node.textContent=o;t.addWidget(e)}t.addWidget(this._browser);this.dispose=()=>{if(this.isDisposed){return}this._browser.model.dispose();super.dispose()};this.layout=t;this._ready.resolve()})).catch((e=>{console.error("Error while creating file browser in open dialog",e);this._ready.reject(void 0)}))}getValue(){const e=Array.from(this._browser.selectedItems());if(e.length===0){return[{path:this._browser.model.path,name:s.PathExt.basename(this._browser.model.path),type:"directory",content:undefined,writable:false,created:"unknown",last_modified:"unknown",mimetype:"text/plain",format:"text"}]}else{return e}}get ready(){return this._ready.promise}}var Pe;(function(e){e.createFilteredFileBrowser=async(e,t,n,i={},s,o,a,l)=>{s=s||r.nullTranslator;const d=new Ie({manager:t,filter:n,translator:s,driveName:i.driveName,refreshInterval:i.refreshInterval,filterDirectories:a});const c=new ye({id:e,model:d,translator:s,handleOpenFile:l});if(o){await c.model.cd(o)}return c}})(Pe||(Pe={}));const Le=new p.Token("@jupyterlab/filebrowser:IFileBrowserFactory",`A factory object that creates file browsers.\n Use this if you want to create your own file browser (e.g., for a custom storage backend),\n or to interact with other file browsers that have been created by extensions.`);const Re=new p.Token("@jupyterlab/filebrowser:IDefaultFileBrowser","A service for the default file browser.");const Ne=new p.Token("@jupyterlab/filebrowser:IFileBrowserCommands","A token to ensure file browser commands are loaded.");class Be extends a.ToolbarButton{constructor(e){super({icon:a.fileUploadIcon,label:e.label,onClick:()=>{this._input.click()},tooltip:Oe.translateToolTip(e.translator),enabled:e.model.allowFileUploads});this._onInputChanged=()=>{const e=Array.prototype.slice.call(this._input.files);const t=e.map((e=>this.fileBrowserModel.upload(e)));void Promise.all(t).then((e=>{this._filesUploaded.emit(e)})).catch((e=>{void(0,i.showErrorMessage)(this._trans._p("showErrorMessage","Upload Error"),e)}))};this._onInputClicked=()=>{this._input.value=""};this._input=Oe.createUploadInput();this._filesUploaded=new l.Signal(this);this.fileBrowserModel=e.model;this.translator=e.translator||r.nullTranslator;this._trans=this.translator.load("jupyterlab");this._input.onclick=this._onInputClicked;this._input.onchange=this._onInputChanged;this.addClass("jp-id-upload")}get filesUploaded(){return this._filesUploaded}}var Oe;(function(e){function t(){const e=document.createElement("input");e.type="file";e.multiple=true;return e}e.createUploadInput=t;function n(e){e=e||r.nullTranslator;const t=e.load("jupyterlab");return t.__("Upload Files")}e.translateToolTip=n})(Oe||(Oe={}));var Fe=n(4625);const ze=4;function We(e){const t=e.translator||r.nullTranslator;const n=t.load("jupyterlab");return h().createElement(Fe.GroupItem,{spacing:ze},h().createElement(Fe.TextItem,{source:n.__("Uploading…")}),h().createElement(Fe.ProgressBar,{percentage:e.upload}))}const He=2e3;class Ve extends a.VDomRenderer{constructor(e){super(new Ve.Model(e.tracker.currentWidget&&e.tracker.currentWidget.model));this._onBrowserChange=(e,t)=>{if(t===null){this.model.browserModel=null}else{this.model.browserModel=t.model}};this.translator=e.translator||r.nullTranslator;this._trans=this.translator.load("jupyterlab");this._tracker=e.tracker;this._tracker.currentChanged.connect(this._onBrowserChange)}render(){const e=this.model.items;if(e.length>0){const e=this.model.items[0];if(e.complete){return h().createElement(Fe.TextItem,{source:this._trans.__("Complete!")})}else{return h().createElement(We,{upload:this.model.items[0].progress,translator:this.translator})}}else{return h().createElement(We,{upload:100,translator:this.translator})}}dispose(){super.dispose();this._tracker.currentChanged.disconnect(this._onBrowserChange)}}(function(e){class t extends a.VDomModel{constructor(e){super();this._uploadChanged=(e,t)=>{if(t.name==="start"){this._items.push({path:t.newValue.path,progress:t.newValue.progress*100,complete:false})}else if(t.name==="update"){const e=S.ArrayExt.findFirstIndex(this._items,(e=>e.path===t.oldValue.path));if(e!==-1){this._items[e].progress=t.newValue.progress*100}}else if(t.name==="finish"){const e=S.ArrayExt.findFirstValue(this._items,(e=>e.path===t.oldValue.path));if(e){e.complete=true;setTimeout((()=>{S.ArrayExt.removeFirstOf(this._items,e);this.stateChanged.emit(void 0)}),He)}}else if(t.name==="failure"){S.ArrayExt.removeFirstWhere(this._items,(e=>e.path===t.newValue.path))}else return;this.stateChanged.emit(void 0)};this._items=[];this._browserModel=null;this.browserModel=e}get items(){return this._items}get browserModel(){return this._browserModel}set browserModel(e){const t=this._browserModel;if(t){t.uploadChanged.disconnect(this._uploadChanged)}this._browserModel=e;this._items=[];if(this._browserModel!==null){this._browserModel.uploadChanged.connect(this._uploadChanged)}this.stateChanged.emit(void 0)}}e.Model=t})(Ve||(Ve={}))},39063:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(38457);var a=n(79010);var l=n(41603);var d=n(85072);var c=n.n(d);var h=n(97825);var u=n.n(h);var p=n(77659);var m=n.n(p);var g=n(55056);var f=n.n(g);var v=n(10540);var _=n.n(v);var b=n(41113);var y=n.n(b);var w=n(96562);var C={};C.styleTagTransform=y();C.setAttributes=f();C.insert=m().bind(null,"head");C.domAPI=u();C.insertStyleElement=_();var x=c()(w.A,C);const S=w.A&&w.A.locals?w.A.locals:undefined},57256:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Commands:()=>D,default:()=>W,tabSpaceStatus:()=>R});var i=n(88617);var s=n(38850);var o=n(44389);var r=n(45713);var a=n(25481);var l=n(59733);var d=n(93067);var c=n(41043);var h=n(44577);var u=n(50655);var p=n(46417);var m=n(71681);var g=n(89433);var f=n(95513);var v=n(40065);var _=n(4625);var b=n(72011);var y=n(34881);var w=n(4073);var C=n(34236);var x=n(58285);var S=n(43370);var j=n(40959);var k=n(90044);const I="notebook:toggle-autoclosing-brackets";const T="console:toggle-autoclosing-brackets";var E;(function(e){e.createNew="fileeditor:create-new";e.createNewMarkdown="fileeditor:create-new-markdown-file";e.changeFontSize="fileeditor:change-font-size";e.lineNumbers="fileeditor:toggle-line-numbers";e.currentLineNumbers="fileeditor:toggle-current-line-numbers";e.lineWrap="fileeditor:toggle-line-wrap";e.currentLineWrap="fileeditor:toggle-current-line-wrap";e.changeTabs="fileeditor:change-tabs";e.matchBrackets="fileeditor:toggle-match-brackets";e.currentMatchBrackets="fileeditor:toggle-current-match-brackets";e.autoClosingBrackets="fileeditor:toggle-autoclosing-brackets";e.autoClosingBracketsUniversal="fileeditor:toggle-autoclosing-brackets-universal";e.createConsole="fileeditor:create-console";e.replaceSelection="fileeditor:replace-selection";e.restartConsole="fileeditor:restart-console";e.runCode="fileeditor:run-code";e.runAllCode="fileeditor:run-all";e.markdownPreview="fileeditor:markdown-preview";e.undo="fileeditor:undo";e.redo="fileeditor:redo";e.cut="fileeditor:cut";e.copy="fileeditor:copy";e.paste="fileeditor:paste";e.selectAll="fileeditor:select-all";e.invokeCompleter="completer:invoke-file";e.selectCompleter="completer:select-file";e.openCodeViewer="code-viewer:open";e.changeTheme="fileeditor:change-theme";e.changeLanguage="fileeditor:change-language";e.find="fileeditor:find";e.goToLine="fileeditor:go-to-line"})(E||(E={}));const M="Editor";var D;(function(e){let t={};let n=true;function i(e,t){return async function n(i,s){var o,r,a;const l=s||{};const d=await e.execute("console:create",{activate:l["activate"],name:(o=i.context.contentsModel)===null||o===void 0?void 0:o.name,path:i.context.path,preferredLanguage:i.context.model.defaultKernelLanguage||((a=(r=t.findByFileName(i.context.path))===null||r===void 0?void 0:r.name)!==null&&a!==void 0?a:""),ref:i.id,insertMode:"split-bottom"});i.context.pathChanged.connect(((e,t)=>{var n;d.session.setPath(t);d.session.setName((n=i.context.contentsModel)===null||n===void 0?void 0:n.name)}))}}function r(e,i){var s;t=(s=e.get("editorConfig").composite)!==null&&s!==void 0?s:{};n=e.get("scrollPastEnd").composite;i.notifyCommandChanged(E.lineNumbers);i.notifyCommandChanged(E.currentLineNumbers);i.notifyCommandChanged(E.lineWrap);i.notifyCommandChanged(E.currentLineWrap);i.notifyCommandChanged(E.changeTabs);i.notifyCommandChanged(E.matchBrackets);i.notifyCommandChanged(E.currentMatchBrackets);i.notifyCommandChanged(E.autoClosingBrackets);i.notifyCommandChanged(E.changeLanguage)}e.updateSettings=r;function a(e){e.forEach((e=>{l(e.content)}))}e.updateTracker=a;function l(e){const i=e.editor;i.setOptions({...t,scrollPastEnd:n});e.toggleClass("jp-mod-scrollPastEnd",n)}e.updateWidget=l;function d(e,n,r,a,l,d,c,m,g,f,v,_){var b;e.addCommand(E.changeFontSize,{execute:e=>{var i;const s=Number(e["delta"]);if(Number.isNaN(s)){console.error(`${E.changeFontSize}: delta arg must be a number`);return}const o=window.getComputedStyle(document.documentElement);const r=parseInt(o.getPropertyValue("--jp-code-font-size"),10);if(!t.customStyles){t.customStyles={}}const l=((i=t["customStyles"]["fontSize"])!==null&&i!==void 0?i:m.baseConfiguration["customStyles"]["fontSize"])||r;t.customStyles.fontSize=l+s;return n.set(a,"editorConfig",t).catch((e=>{console.error(`Failed to set ${a}: ${e.message}`)}))},label:e=>{var t;const n=Number((t=e.delta)!==null&&t!==void 0?t:0);if(n>0){return e.isMenu?r.__("Increase Text Editor Font Size"):r.__("Increase Font Size")}else if(n<0){return e.isMenu?r.__("Decrease Text Editor Font Size"):r.__("Decrease Font Size")}else{return r.__("Change Font Size")}},describedBy:{args:{type:"object",properties:{delta:{type:"number",description:r.__("The font size change delta (positive to increase, negative to decrease)")},isMenu:{type:"boolean",description:r.__("Whether the command is called from a menu context")}},required:["delta"]}}});e.addCommand(E.lineNumbers,{execute:async()=>{var e;t.lineNumbers=!((e=t.lineNumbers)!==null&&e!==void 0?e:m.baseConfiguration.lineNumbers);try{return await n.set(a,"editorConfig",t)}catch(i){console.error(`Failed to set ${a}: ${i.message}`)}},isEnabled:l,isToggled:()=>{var e;return(e=t.lineNumbers)!==null&&e!==void 0?e:m.baseConfiguration.lineNumbers},label:r.__("Show Line Numbers"),describedBy:{args:{type:"object",properties:{}}}});e.addCommand(E.currentLineNumbers,{label:r.__("Show Line Numbers"),caption:r.__("Show the line numbers for the current file."),execute:()=>{const e=d.currentWidget;if(!e){return}const t=!e.content.editor.getOption("lineNumbers");e.content.editor.setOption("lineNumbers",t)},isEnabled:l,isToggled:()=>{var e;const t=d.currentWidget;return(e=t===null||t===void 0?void 0:t.content.editor.getOption("lineNumbers"))!==null&&e!==void 0?e:false},describedBy:{args:{type:"object",properties:{}}}});e.addCommand(E.lineWrap,{execute:async e=>{var i;t.lineWrap=(i=e["mode"])!==null&&i!==void 0?i:false;try{return await n.set(a,"editorConfig",t)}catch(s){console.error(`Failed to set ${a}: ${s.message}`)}},isEnabled:l,isToggled:e=>{var n,i;const s=(n=e["mode"])!==null&&n!==void 0?n:false;return s===((i=t.lineWrap)!==null&&i!==void 0?i:m.baseConfiguration.lineWrap)},label:r.__("Word Wrap"),describedBy:{args:{type:"object",properties:{mode:{type:"boolean",description:r.__("Whether to enable word wrap")}}}}});e.addCommand(E.currentLineWrap,{label:r.__("Wrap Words"),caption:r.__("Wrap words for the current file."),execute:()=>{const e=d.currentWidget;if(!e){return}const t=e.content.editor.getOption("lineWrap");e.content.editor.setOption("lineWrap",!t)},isEnabled:l,isToggled:()=>{var e;const t=d.currentWidget;return(e=t===null||t===void 0?void 0:t.content.editor.getOption("lineWrap"))!==null&&e!==void 0?e:false},describedBy:{args:{type:"object",properties:{}}}});e.addCommand(E.changeTabs,{label:e=>{var t;if(e.size){return r._p("v4","Spaces: %1",(t=e.size)!==null&&t!==void 0?t:"")}else{return r.__("Indent with Tab")}},execute:async e=>{var i;t.indentUnit=e["size"]!==undefined?((i=e["size"])!==null&&i!==void 0?i:"4").toString():"Tab";try{return await n.set(a,"editorConfig",t)}catch(s){console.error(`Failed to set ${a}: ${s.message}`)}},isToggled:e=>{var n;const i=(n=t.indentUnit)!==null&&n!==void 0?n:m.baseConfiguration.indentUnit;return e["size"]?e["size"]===i:"Tab"==i},describedBy:{args:{type:"object",properties:{size:{type:"string",description:r.__("The number of spaces for indentation (or Tab for tab indentation)")}}}}});e.addCommand(E.matchBrackets,{execute:async()=>{var e;t.matchBrackets=!((e=t.matchBrackets)!==null&&e!==void 0?e:m.baseConfiguration.matchBrackets);try{return await n.set(a,"editorConfig",t)}catch(i){console.error(`Failed to set ${a}: ${i.message}`)}},label:r.__("Match Brackets"),isEnabled:l,isToggled:()=>{var e;return(e=t.matchBrackets)!==null&&e!==void 0?e:m.baseConfiguration.matchBrackets},describedBy:{args:{type:"object",properties:{}}}});e.addCommand(E.currentMatchBrackets,{label:r.__("Match Brackets"),caption:r.__("Change match brackets for the current file."),execute:()=>{const e=d.currentWidget;if(!e){return}const t=!e.content.editor.getOption("matchBrackets");e.content.editor.setOption("matchBrackets",t)},isEnabled:l,isToggled:()=>{var e;const t=d.currentWidget;return(e=t===null||t===void 0?void 0:t.content.editor.getOption("matchBrackets"))!==null&&e!==void 0?e:false},describedBy:{args:{type:"object",properties:{}}}});e.addCommand(E.autoClosingBrackets,{execute:async e=>{var i,s;t.autoClosingBrackets=!!((i=e["force"])!==null&&i!==void 0?i:!((s=t.autoClosingBrackets)!==null&&s!==void 0?s:m.baseConfiguration.autoClosingBrackets));try{return await n.set(a,"editorConfig",t)}catch(o){console.error(`Failed to set ${a}: ${o.message}`)}},label:r.__("Auto Close Brackets in Text Editor"),isToggled:()=>{var e;return(e=t.autoClosingBrackets)!==null&&e!==void 0?e:m.baseConfiguration.autoClosingBrackets},describedBy:{args:{type:"object",properties:{force:{type:"boolean",description:r.__("Force enable/disable auto closing brackets")}}}}});e.addCommand(E.autoClosingBracketsUniversal,{execute:()=>{const t=e.isToggled(E.autoClosingBrackets)||e.isToggled(I)||e.isToggled(T);if(t){void e.execute(E.autoClosingBrackets,{force:false});void e.execute(I,{force:false});void e.execute(T,{force:false})}else{void e.execute(E.autoClosingBrackets,{force:true});void e.execute(I,{force:true});void e.execute(T,{force:true})}},label:r.__("Auto Close Brackets"),isToggled:()=>e.isToggled(E.autoClosingBrackets)||e.isToggled(I)||e.isToggled(T),describedBy:{args:{type:"object",properties:{}}}});e.addCommand(E.changeTheme,{label:e=>{var n,i,s,o;return(o=(s=(i=(n=e.displayName)!==null&&n!==void 0?n:e.theme)!==null&&i!==void 0?i:t.theme)!==null&&s!==void 0?s:m.baseConfiguration.theme)!==null&&o!==void 0?o:r.__("Editor Theme")},execute:async e=>{var i;t.theme=(i=e["theme"])!==null&&i!==void 0?i:t.theme;try{return await n.set(a,"editorConfig",t)}catch(s){console.error(`Failed to set theme - ${s.message}`)}},isToggled:e=>{var n;return e["theme"]===((n=t.theme)!==null&&n!==void 0?n:m.baseConfiguration.theme)},describedBy:{args:{type:"object",properties:{theme:{type:"string",description:r.__("The theme name to change to")},displayName:{type:"string",description:r.__("The display name of the theme")}}}}});e.addCommand(E.find,{label:r.__("Find…"),execute:()=>{const e=d.currentWidget;if(!e){return}const t=e.content.editor;t.execCommand(S.findNext)},isEnabled:l,describedBy:{args:{type:"object",properties:{}}}});e.addCommand(E.goToLine,{label:r.__("Go to Line…"),execute:e=>{const t=d.currentWidget;if(!t){return}const n=t.content.editor;const i=e["line"];const s=e["column"];if(i!==undefined||s!==undefined){n.setCursorPosition({line:(i!==null&&i!==void 0?i:1)-1,column:(s!==null&&s!==void 0?s:1)-1})}else{n.execCommand(S.gotoLine)}},isEnabled:l,describedBy:{args:{type:"object",properties:{line:{type:"number",description:r.__("The line number to go to (1-indexed)")},column:{type:"number",description:r.__("The column number to go to (1-indexed)")}}}}});e.addCommand(E.changeLanguage,{label:e=>{var t,n;return(n=(t=e["displayName"])!==null&&t!==void 0?t:e["name"])!==null&&n!==void 0?n:r.__("Change editor language.")},execute:e=>{var t;const n=e["name"];const i=d.currentWidget;if(n&&i){const e=g.findByName(n);if(e){if(Array.isArray(e.mime)){i.content.model.mimeType=(t=e.mime[0])!==null&&t!==void 0?t:o.IEditorMimeTypeService.defaultMimeType}else{i.content.model.mimeType=e.mime}}}},isEnabled:l,isToggled:e=>{const t=d.currentWidget;if(!t){return false}const n=t.content.model.mimeType;const i=g.findByMIME(n);const s=i&&i.name;return e["name"]===s},describedBy:{args:{type:"object",properties:{name:{type:"string",description:r.__("The language name to change to")},displayName:{type:"string",description:r.__("The display name of the language")}}}}});e.addCommand(E.replaceSelection,{execute:e=>{var t,n;const i=e["text"]||"";const s=d.currentWidget;if(!s){return}(n=(t=s.content.editor).replaceSelection)===null||n===void 0?void 0:n.call(t,i)},isEnabled:l,label:r.__("Replace Selection in Editor"),describedBy:{args:{type:"object",properties:{text:{type:"string",description:r.__("The text to replace the current selection with")}}}}});e.addCommand(E.createConsole,{execute:t=>{const n=d.currentWidget;if(!n){return}return i(e,g)(n,t)},isEnabled:l,icon:w.consoleIcon,label:r.__("Create Console for Editor"),describedBy:{args:{type:"object",properties:{}}}});e.addCommand(E.restartConsole,{execute:async()=>{var e;const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t||f===null){return}const n=f.find((e=>{var n;return((n=e.sessionContext.session)===null||n===void 0?void 0:n.path)===t.context.path}));if(n){return v.restart(n.sessionContext)}},label:r.__("Restart Kernel"),isEnabled:()=>f!==null&&l(),describedBy:{args:{type:"object",properties:{}}}});e.addCommand(E.runCode,{execute:()=>{var t,n;const i=(t=d.currentWidget)===null||t===void 0?void 0:t.content;if(!i){return}let s="";const o=i.editor;const r=i.context.path;const a=j.PathExt.extname(r);const l=o.getSelection();const{start:c,end:h}=l;let u=c.column!==h.column||c.line!==h.line;if(u){const e=o.getOffsetAt(l.start);const t=o.getOffsetAt(l.end);s=o.model.sharedModel.getSource().substring(e,t)}else if(j.MarkdownCodeBlocks.isMarkdown(a)){const e=o.model.sharedModel.getSource();const t=j.MarkdownCodeBlocks.findMarkdownCodeBlocks(e);for(const n of t){if(n.startLine<=c.line&&c.line<=n.endLine){s=n.code;u=true;break}}}if(!u){s=o.getLine(l.start.line);const e=o.getCursorPosition();const t=o.getLine(e.line+1);if(e.line+1===o.lineCount){const e=o.model.sharedModel.getSource();o.model.sharedModel.setSource(e+"\n")}o.setCursorPosition({line:e.line+1,column:(n=t===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0})}const p=false;if(s){return e.execute("console:inject",{activate:p,code:s,path:r})}else{return Promise.resolve(void 0)}},isEnabled:l,label:r.__("Run Selected Code"),describedBy:{args:{type:"object",properties:{}}}});e.addCommand(E.runAllCode,{execute:()=>{var t;const n=(t=d.currentWidget)===null||t===void 0?void 0:t.content;if(!n){return}let i="";const s=n.editor;const o=s.model.sharedModel.getSource();const r=n.context.path;const a=j.PathExt.extname(r);if(j.MarkdownCodeBlocks.isMarkdown(a)){const e=j.MarkdownCodeBlocks.findMarkdownCodeBlocks(o);for(const t of e){i+=t.code}}else{i=o}const l=false;if(i){return e.execute("console:inject",{activate:l,code:i,path:r})}else{return Promise.resolve(void 0)}},isEnabled:l,label:r.__("Run All Code"),describedBy:{args:{type:"object",properties:{}}}});e.addCommand(E.markdownPreview,{execute:()=>{const t=d.currentWidget;if(!t){return}const n=t.context.path;return e.execute("markdownviewer:open",{path:n,options:{mode:"split-right"}})},isVisible:()=>{const e=d.currentWidget;return e&&j.PathExt.extname(e.context.path)===".md"||false},icon:w.markdownIcon,label:r.__("Show Markdown Preview"),describedBy:{args:{type:"object",properties:{}}}});e.addCommand(E.createNew,{label:e=>{var t,n;if(e.isPalette){return(t=e.paletteLabel)!==null&&t!==void 0?t:r.__("New Text File")}return(n=e.launcherLabel)!==null&&n!==void 0?n:r.__("Text File")},caption:e=>{var t;return(t=e.caption)!==null&&t!==void 0?t:r.__("Create a new text file")},icon:e=>{var t;return e.isPalette?undefined:w.LabIcon.resolve({icon:(t=e.iconName)!==null&&t!==void 0?t:w.textEditorIcon})},execute:t=>{var n,i;const s=t.cwd||((n=c===null||c===void 0?void 0:c.model.path)!==null&&n!==void 0?n:".");return p(e,s,(i=t.fileExt)!==null&&i!==void 0?i:"txt")},describedBy:{args:{type:"object",properties:{cwd:{type:"string",description:r.__("The current working directory path")},fileExt:{type:"string",description:r.__("The file extension for the new file")},isPalette:{type:"boolean",description:"Whether the command is being called from the command palette"},paletteLabel:{type:"string",description:r.__("The label to show in the command palette")},launcherLabel:{type:"string",description:r.__("The label to show in the launcher")},caption:{type:"string",description:r.__("The caption for the command")},iconName:{type:"string",description:r.__("The name of the icon to use")}}}}});e.addCommand(E.createNewMarkdown,{label:e=>e["isPalette"]?r.__("New Markdown File"):r.__("Markdown File"),caption:r.__("Create a new markdown file"),icon:e=>e["isPalette"]?undefined:w.markdownIcon,execute:t=>{var n;const i=t["cwd"]||((n=c===null||c===void 0?void 0:c.model.path)!==null&&n!==void 0?n:".");return p(e,i,"md")},describedBy:{args:{type:"object",properties:{cwd:{type:"string",description:r.__("The current working directory path")},isPalette:{type:"boolean",description:"Whether the command is being called from the command palette"}}}}});e.addCommand(E.undo,{execute:()=>{var e;const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return}t.editor.undo()},isEnabled:()=>{var e;if(!l()){return false}const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return false}return t.editor.model.sharedModel.canUndo()},icon:w.undoIcon.bindprops({stylesheet:"menuItem"}),label:r.__("Undo"),describedBy:{args:{type:"object",properties:{}}}});e.addCommand(E.redo,{execute:()=>{var e;const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return}t.editor.redo()},isEnabled:()=>{var e;if(!l()){return false}const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return false}return t.editor.model.sharedModel.canRedo()},icon:w.redoIcon.bindprops({stylesheet:"menuItem"}),label:r.__("Redo"),describedBy:{args:{type:"object",properties:{}}}});e.addCommand(E.cut,{execute:()=>{var e;const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return}const n=t.editor;const i=u(n);s.Clipboard.copyToSystem(i);n.replaceSelection&&n.replaceSelection("")},isEnabled:()=>{var e;if(!l()){return false}const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return false}return h(t.editor)},icon:w.cutIcon.bindprops({stylesheet:"menuItem"}),label:r.__("Cut"),describedBy:{args:{type:"object",properties:{}}}});e.addCommand(E.copy,{execute:()=>{var e;const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return}const n=t.editor;const i=u(n);s.Clipboard.copyToSystem(i)},isEnabled:()=>{var e;if(!l()){return false}const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return false}return h(t.editor)},icon:w.copyIcon.bindprops({stylesheet:"menuItem"}),label:r.__("Copy"),describedBy:{args:{type:"object",properties:{}}}});e.addCommand(E.paste,{execute:async()=>{var e;const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return}const n=t.editor;const i=window.navigator.clipboard;const s=await i.readText();if(s){n.replaceSelection&&n.replaceSelection(s)}},isEnabled:()=>{var e;return Boolean(l()&&((e=d.currentWidget)===null||e===void 0?void 0:e.content))},icon:w.pasteIcon.bindprops({stylesheet:"menuItem"}),label:r.__("Paste"),describedBy:{args:{type:"object",properties:{}}}});e.addCommand(E.selectAll,{execute:()=>{var e;const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return}const n=t.editor;n.execCommand(x.selectAll)},isEnabled:()=>{var e;return Boolean(l()&&((e=d.currentWidget)===null||e===void 0?void 0:e.content))},label:r.__("Select All"),describedBy:{args:{type:"object",properties:{}}}});const y=[E.lineNumbers,E.currentLineNumbers,E.lineWrap,E.currentLineWrap,E.matchBrackets,E.currentMatchBrackets,E.find,E.goToLine,E.changeLanguage,E.replaceSelection,E.createConsole,E.restartConsole,E.runCode,E.runAllCode,E.undo,E.redo,E.cut,E.copy,E.paste,E.selectAll,E.createConsole];const C=()=>{y.forEach((t=>e.notifyCommandChanged(t)))};d.currentChanged.connect(C);(b=_.currentChanged)===null||b===void 0?void 0:b.connect(C)}e.addCommands=d;function c(e,t,n,i){const s=(i!==null&&i!==void 0?i:y.nullTranslator).load("jupyterlab");e.addCommand(E.invokeCompleter,{label:s.__("Display the completion helper."),execute:()=>{const e=t.currentWidget&&t.currentWidget.id;if(e){return n.invoke(e)}},describedBy:{args:{type:"object",properties:{}}}});e.addCommand(E.selectCompleter,{label:s.__("Select the completion suggestion."),execute:()=>{const e=t.currentWidget&&t.currentWidget.id;if(e){return n.select(e)}},describedBy:{args:{type:"object",properties:{}}}});e.addKeyBinding({command:E.selectCompleter,keys:["Enter"],selector:".jp-FileEditor .jp-mod-completer-active"})}e.addCompleterCommands=c;function h(e){const t=e.getSelection();const{start:n,end:i}=t;const s=n.column!==i.column||n.line!==i.line;return s}function u(e){const t=e.getSelection();const n=e.getOffsetAt(t.start);const i=e.getOffsetAt(t.end);const s=e.model.sharedModel.getSource().substring(n,i);return s}async function p(e,t,n="txt"){const i=await e.execute("docmanager:new-untitled",{path:t,type:"file",ext:n});if(i!=undefined){const t=await e.execute("docmanager:open",{path:i.path,factory:M});t.isUntitled=true;return t}}function m(e,t){g(e,t);f(e,t)}e.addLauncherItems=m;function g(e,t){e.add({command:E.createNew,category:t.__("Other"),rank:1})}e.addCreateNewToLauncher=g;function f(e,t){e.add({command:E.createNewMarkdown,category:t.__("Other"),rank:2})}e.addCreateNewMarkdownToLauncher=f;function v(e,t,n){var i,s;const o=new k.DisposableSet;for(const r of n){o.add(e.add({command:E.createNew,category:t.__("Other"),rank:3,args:{fileExt:r.extensions[0],iconName:(s=(i=r.icon)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:"",launcherLabel:t.__("%1 File",r.displayName),paletteLabel:t.__("New %1 File",r.displayName),caption:t.__("Create a new %1 File",r.displayName)}}))}return o}e.addKernelLanguageLauncherItems=v;function _(e,t){b(e,t);D(e,t);A(e,t);P(e,t)}e.addPaletteItems=_;function b(e,t){const n=t.__("Text Editor");const i={size:4};const s=E.changeTabs;e.addItem({command:s,args:i,category:n});for(const o of[1,2,4,8]){const t={size:o};e.addItem({command:s,args:t,category:n})}}e.addChangeTabsCommandsToPalette=b;function D(e,t){const n=t.__("Text Editor");e.addItem({command:E.createNew,args:{isPalette:true},category:n})}e.addCreateNewCommandToPalette=D;function A(e,t){const n=t.__("Text Editor");e.addItem({command:E.createNewMarkdown,args:{isPalette:true},category:n})}e.addCreateNewMarkdownCommandToPalette=A;function P(e,t){const n=t.__("Text Editor");const i=E.changeFontSize;let s={delta:1};e.addItem({command:i,args:s,category:n});s={delta:-1};e.addItem({command:i,args:s,category:n})}e.addChangeFontSizeCommandsToPalette=P;function L(e,t,n){var i,s;const o=new k.DisposableSet;const r=t.__("Text Editor");for(const a of n){o.add(e.addItem({command:E.createNew,args:{fileExt:a.extensions[0],iconName:(s=(i=a.icon)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:"",launcherLabel:t.__("%1 File",a.displayName),paletteLabel:t.__("New %1 File",a.displayName),caption:t.__("Create a new %1 File",a.displayName),isPalette:true},category:r}))}return o}e.addKernelLanguagePaletteItems=L;function R(e,t,n,i){e.editMenu.undoers.redo.add({id:E.redo,isEnabled:i});e.editMenu.undoers.undo.add({id:E.undo,isEnabled:i});e.viewMenu.editorViewers.toggleLineNumbers.add({id:E.currentLineNumbers,isEnabled:i});e.viewMenu.editorViewers.toggleMatchBrackets.add({id:E.currentMatchBrackets,isEnabled:i});e.viewMenu.editorViewers.toggleWordWrap.add({id:E.currentLineWrap,isEnabled:i});e.fileMenu.consoleCreators.add({id:E.createConsole,isEnabled:i});if(n){B(e,n,i)}}e.addMenuItems=R;function N(e,t,n){var i,s;const o=new k.DisposableSet;for(const r of n){o.add(e.fileMenu.newMenu.addItem({command:E.createNew,args:{fileExt:r.extensions[0],iconName:(s=(i=r.icon)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:"",launcherLabel:t.__("%1 File",r.displayName),paletteLabel:t.__("New %1 File",r.displayName),caption:t.__("Create a new %1 File",r.displayName)},rank:31}))}return o}e.addKernelLanguageMenuItems=N;function B(e,t,n){const i=e=>n()&&e.context&&!!t.find((t=>{var n;return((n=t.sessionContext.session)===null||n===void 0?void 0:n.path)===e.context.path}));e.runMenu.codeRunners.restart.add({id:E.restartConsole,isEnabled:i});e.runMenu.codeRunners.run.add({id:E.runCode,isEnabled:i});e.runMenu.codeRunners.runAll.add({id:E.runAllCode,isEnabled:i})}e.addCodeRunnersToRunMenu=B;function O(e,t,n,i){const r=async r=>{var a;const l=t.factoryService.newDocumentEditor;const d=e=>l(e);let c=r.mimeType;if(!c&&r.extension){c=t.mimeTypeService.getMimeTypeByFilePath(`temp.${r.extension.replace(/\\.$/,"")}`)}const h=o.CodeViewerWidget.createCodeViewer({factory:d,content:r.content,mimeType:c});h.title.label=r.label||i.__("Code Viewer");h.title.caption=h.title.label;const u=(0,C.find)(e.docRegistry.fileTypes(),(e=>c?e.mimeTypes.includes(c):false));h.title.icon=(a=u===null||u===void 0?void 0:u.icon)!==null&&a!==void 0?a:w.textEditorIcon;if(r.widgetId){h.id=r.widgetId}const p=new s.MainAreaWidget({content:h});await n.add(p);e.shell.add(p,"main");return h};e.commands.addCommand(E.openCodeViewer,{label:i.__("Open Code Viewer"),execute:e=>r(e),describedBy:{args:{type:"object",properties:{content:{type:"string",description:i.__("The content to display in the code viewer")},label:{type:"string",description:i.__("The label for the code viewer")},mimeType:{type:"string",description:i.__("The MIME type of the content")},extension:{type:"string",description:i.__("The file extension to derive MIME type from")},widgetId:{type:"string",description:i.__("The ID to assign to the widget")}},required:["content"]}}})}e.addOpenCodeViewerCommand=O})(D||(D={}));const A={id:"@jupyterlab/fileeditor-extension:editor-syntax-status",description:"Adds a file editor syntax status widget.",autoStart:true,requires:[u.IEditorTracker,r.IEditorLanguageRegistry,i.ILabShell,y.ITranslator],optional:[_.IStatusBar],activate:(e,t,n,i,s,o)=>{if(!o){return}const r=new u.EditorSyntaxStatus({commands:e.commands,languages:n,translator:s});i.currentChanged.connect((()=>{const e=i.currentWidget;if(e&&t.has(e)&&r.model){r.model.editor=e.content.editor}}));o.registerStatusItem(A.id,{item:r,align:"left",rank:0,isActive:()=>!!i.currentWidget&&!!t.currentWidget&&i.currentWidget===t.currentWidget})}};const P={activate:H,id:"@jupyterlab/fileeditor-extension:plugin",description:"Provides the file editor widget tracker.",requires:[u.IEditorWidgetFactory,o.IEditorServices,r.IEditorExtensionRegistry,r.IEditorLanguageRegistry,r.IEditorThemeRegistry,v.ISettingRegistry],optional:[h.IDefaultFileBrowser,l.IConsoleTracker,s.ICommandPalette,p.ILauncher,g.IMainMenu,i.ILayoutRestorer,s.ISessionContextDialogs,b.ITableOfContentsRegistry,y.ITranslator,w.IFormRendererRegistry,f.IMarkdownParser],provides:u.IEditorTracker,autoStart:true};const L={id:"@jupyterlab/fileeditor-extension:widget-factory",description:"Provides the factory for creating file editors.",autoStart:true,requires:[o.IEditorServices,v.ISettingRegistry],optional:[s.IToolbarWidgetRegistry,y.ITranslator],provides:u.IEditorWidgetFactory,activate:(e,t,n,i,o)=>{const r=P.id;const a=o!==null&&o!==void 0?o:y.nullTranslator;const l=a.load("jupyterlab");let d;if(i){d=(0,s.createToolbarFactory)(i,n,M,r,a)}const c=new u.FileEditorFactory({editorServices:t,factoryOptions:{name:M,label:l.__("Editor"),fileTypes:["markdown","*"],defaultFor:["markdown","*"],toolbarFactory:d,translator:a}});e.docRegistry.addWidgetFactory(c);return c}};const R={id:"@jupyterlab/fileeditor-extension:tab-space-status",description:"Adds a file editor indentation status widget.",autoStart:true,requires:[u.IEditorTracker,r.IEditorExtensionRegistry,v.ISettingRegistry,y.ITranslator],optional:[_.IStatusBar],activate:(e,t,n,i,s,o)=>{const r=s.load("jupyterlab");if(!o){return}const a=new w.MenuSvg({commands:e.commands});const l="fileeditor:change-tabs";const{shell:d}=e;const c={name:r.__("Indent with Tab")};a.addItem({command:l,args:c});for(const u of["1","2","4","8"]){const e={size:u,name:r._p("v4","Spaces: %1",u)};a.addItem({command:l,args:e})}const h=new u.TabSpaceStatus({menu:a,translator:s});const p=e=>{var t,i,s;h.model.indentUnit=(s=(i=(t=e.get("editorConfig").composite)===null||t===void 0?void 0:t.indentUnit)!==null&&i!==void 0?i:n.baseConfiguration.indentUnit)!==null&&s!==void 0?s:null};void Promise.all([i.load("@jupyterlab/fileeditor-extension:plugin"),e.restored]).then((([e])=>{p(e);e.changed.connect(p)}));o.registerStatusItem("@jupyterlab/fileeditor-extension:tab-space-status",{item:h,align:"right",rank:1,isActive:()=>!!d.currentWidget&&t.has(d.currentWidget)})}};const N={id:"@jupyterlab/fileeditor-extension:cursor-position",description:"Adds a file editor cursor position status widget.",activate:(e,t,n)=>{n.addEditorProvider((e=>Promise.resolve(e&&t.has(e)?e.content.editor:null)))},requires:[u.IEditorTracker,o.IPositionModel],autoStart:true};const B={id:"@jupyterlab/fileeditor-extension:completer",description:"Adds the completer capability to the file editor.",requires:[u.IEditorTracker],optional:[a.ICompletionProviderManager,y.ITranslator,s.ISanitizer],activate:V,autoStart:true};const O={id:"@jupyterlab/fileeditor-extension:search",description:"Adds search capability to the file editor.",requires:[c.ISearchProviderRegistry],autoStart:true,activate:(e,t)=>{t.add("jp-fileeditorSearchProvider",u.FileEditorSearchProvider)}};const F={id:"@jupyterlab/fileeditor-extension:language-server",description:"Adds Language Server capability to the file editor.",requires:[u.IEditorTracker,m.ILSPDocumentConnectionManager,m.ILSPFeatureManager,m.ILSPCodeExtractorsManager,m.IWidgetLSPAdapterTracker],activate:U,autoStart:true};const z=[L,P,N,B,F,O,A,R];const W=z;function H(e,t,n,i,o,r,a,l,c,h,p,m,g,f,v,_,b,w){const C=P.id;const x=_!==null&&_!==void 0?_:y.nullTranslator;const S=f!==null&&f!==void 0?f:new s.SessionContextDialogs({translator:x});const j=x.load("jupyterlab");const k="editor";const{commands:I,restored:T,shell:A}=e;const L=new s.WidgetTracker({namespace:k});const R=()=>L.currentWidget!==null&&L.currentWidget===A.currentWidget;let N=null;let B=null;let O=null;const F=e=>{if(N){N.dispose();N=null}if(B){B.dispose();B=null}if(O){O.dispose();O=null}if(p){N=D.addKernelLanguageLauncherItems(p,j,e)}if(h){B=D.addKernelLanguagePaletteItems(h,j,e)}if(m){O=D.addKernelLanguageMenuItems(m,j,e)}};const z=e.serviceManager.kernelspecs;z.specsChanged.connect((async()=>{try{const t=await(0,d.getAvailableKernelFileTypes)(e.serviceManager.kernelspecs);F(t)}catch(t){console.error("Error updating kernel file types:",t)}}));if(g){void g.restore(L,{command:"docmanager:open",args:e=>({path:e.context.path,factory:M}),name:e=>e.context.path})}Promise.all([a.load(C),T]).then((([e])=>{var t,n,i;if(m){const e=(t=m.viewMenu.items.find((e=>{var t;return e.type==="submenu"&&((t=e.submenu)===null||t===void 0?void 0:t.id)==="jp-mainmenu-view-codemirror-language"})))===null||t===void 0?void 0:t.submenu;if(e){o.getLanguages().sort(((e,t)=>{const n=e.name;const i=t.name;return n.localeCompare(i)})).forEach((t=>{if(t.name.toLowerCase().indexOf("brainf")===0){return}e.addItem({command:E.changeLanguage,args:{...t}})}))}const s=(n=m.settingsMenu.items.find((e=>{var t;return e.type==="submenu"&&((t=e.submenu)===null||t===void 0?void 0:t.id)==="jp-mainmenu-settings-codemirror-theme"})))===null||n===void 0?void 0:n.submenu;if(s){for(const e of r.themes){s.addItem({command:E.changeTheme,args:{theme:e.name,displayName:(i=e.displayName)!==null&&i!==void 0?i:e.name}})}}m.editMenu.goToLiners.add({id:E.goToLine,isEnabled:e=>L.currentWidget!==null&&L.has(e)})}D.updateSettings(e,I);D.updateTracker(L);e.changed.connect((()=>{D.updateSettings(e,I);D.updateTracker(L)}))})).catch((e=>{console.error(e.message);D.updateTracker(L)}));if(b){const e=b.getRenderer("@jupyterlab/codemirror-extension:plugin.defaultConfig");if(e){b.addRenderer("@jupyterlab/fileeditor-extension:plugin.editorConfig",e)}}t.widgetCreated.connect(((e,t)=>{t.context.pathChanged.connect((()=>{void L.save(t)}));void L.add(t);D.updateWidget(t.content)}));L.widgetAdded.connect(((e,t)=>{D.updateWidget(t.content)}));D.addCommands(e.commands,a,j,C,R,L,l,i,o,c,S,e.shell);const W=new s.WidgetTracker({namespace:"codeviewer"});if(g){void g.restore(W,{command:E.openCodeViewer,args:e=>({content:e.content.content,label:e.content.title.label,mimeType:e.content.mimeType,widgetId:e.content.id}),name:e=>e.content.id})}D.addOpenCodeViewerCommand(e,n,W,j);if(p){D.addLauncherItems(p,j)}if(h){D.addPaletteItems(h,j)}if(m){D.addMenuItems(m,L,c,R)}(0,d.getAvailableKernelFileTypes)(e.serviceManager.kernelspecs).then(F).catch((e=>{console.error(e.message)}));if(v){v.add(new u.LaTeXTableOfContentsFactory(L));v.add(new u.MarkdownTableOfContentsFactory(L,w));v.add(new u.PythonTableOfContentsFactory(L))}return L}function V(e,t,n,i,o){if(!n){return}D.addCompleterCommands(e.commands,t,n,i);const r=e.serviceManager.sessions;const a=o!==null&&o!==void 0?o:new s.Sanitizer;const l=new Map;const d=async(e,t)=>{const i={editor:t.content.editor,widget:t};await n.updateCompleter(i);const s=(e,i)=>{const s=l.get(t.id);const o=(0,C.find)(i,(e=>e.path===t.context.path));if(o){if(s&&s.id===o.id){return}if(s){l.delete(t.id);s.dispose()}const e=r.connectTo({model:o});const i={editor:t.content.editor,widget:t,session:e,sanitizer:a};n.updateCompleter(i).catch(console.error);l.set(t.id,e)}else{if(s){l.delete(t.id);s.dispose()}}};s(r,Array.from(r.running()));r.runningChanged.connect(s);t.disposed.connect((()=>{r.runningChanged.disconnect(s);const e=l.get(t.id);if(e){l.delete(t.id);e.dispose()}}))};t.widgetAdded.connect(d);n.activeProvidersChanged.connect((()=>{t.forEach((e=>{d(t,e).catch(console.error)}))}))}function U(e,t,n,i,s,o){t.widgetAdded.connect((async(t,r)=>{const a=new u.FileEditorAdapter(r,{connectionManager:n,featureManager:i,foreignCodeExtractorsManager:s,docRegistry:e.docRegistry});o.add(a)}))}},61689:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(24800);var r=n(97913);var a=n(17325);var l=n(5893);var d=n(79010);var c=n(3579);var h=n(19562);var u=n(23359);var p=n(36060);var m=n(39063);var g=n(66731);var f=n(50286);var v=n(13137);var _=n(77748);var b=n(75797);var y=n(67996)},53062:(e,t,n)=>{"use strict";n.r(t);n.d(t,{EditorSyntaxStatus:()=>x,EditorTableOfContentsFactory:()=>I,FileEditor:()=>m,FileEditorAdapter:()=>r,FileEditorFactory:()=>f,FileEditorSearchProvider:()=>v,FileEditorWidget:()=>g,IEditorTracker:()=>B,IEditorWidgetFactory:()=>O,LaTeXTableOfContentsFactory:()=>D,LaTeXTableOfContentsModel:()=>M,MarkdownTableOfContentsFactory:()=>P,MarkdownTableOfContentsModel:()=>A,PythonTableOfContentsFactory:()=>N,PythonTableOfContentsModel:()=>R,TabSpaceStatus:()=>j});var i=n(44389);var s=n(71681);var o=n(5592);class r extends s.WidgetLSPAdapter{constructor(e,t){const{docRegistry:n,...i}=t;super(e,i);this._readyDelegate=new o.PromiseDelegate;this.editor=e.content;this._docRegistry=n;this._virtualEditor=Object.freeze({getEditor:()=>this.editor.editor,ready:()=>Promise.resolve(this.editor.editor),reveal:()=>Promise.resolve(this.editor.editor)});Promise.all([this.editor.context.ready,this.connectionManager.ready]).then((async()=>{await this.initOnceReady();this._readyDelegate.resolve();this._editorAdded.emit({editor:this._virtualEditor})})).catch(console.error)}get ready(){return this._readyDelegate.promise}get documentPath(){return this.widget.context.path}get mimeType(){var e;const t=this.editor.model.mimeType;const n=Array.isArray(t)?(e=t[0])!==null&&e!==void 0?e:i.IEditorMimeTypeService.defaultMimeType:t;const s=this.editor.context.contentsModel;if(n!=i.IEditorMimeTypeService.defaultMimeType){return n}else if(s){let e=this._docRegistry.getFileTypeForModel(s);return e.mimeTypes[0]}else{return n}}get languageFileExtension(){let e=this.documentPath.split(".");return e[e.length-1]}get ceEditor(){return this.editor.editor}get activeEditor(){return this._virtualEditor}get wrapperElement(){return this.widget.node}get path(){return this.widget.context.path}get editors(){var e,t;return[{ceEditor:this._virtualEditor,type:"code",value:(t=(e=this.editor)===null||e===void 0?void 0:e.model.sharedModel.getSource())!==null&&t!==void 0?t:""}]}dispose(){if(this.isDisposed){return}this._editorRemoved.emit({editor:this._virtualEditor});this.editor.model.mimeTypeChanged.disconnect(this.reloadConnection);super.dispose()}createVirtualDocument(){return new s.VirtualDocument({language:this.language,foreignCodeExtractors:this.options.foreignCodeExtractorsManager,path:this.documentPath,fileExtension:this.languageFileExtension,standalone:true,hasLspSupportedFile:true})}getEditorIndexAt(e){return 0}getEditorIndex(e){return 0}getEditorWrapper(e){return this.wrapperElement}async initOnceReady(){this.initVirtual();await this.connectDocument(this.virtualDocument,false);this.editor.model.mimeTypeChanged.connect(this.reloadConnection,this)}}var a=n(38850);var l=n(45713);var d=n(93067);var c=n(4073);var h=n(27518);const u="jpCodeRunner";const p="jpUndoer";class m extends h.Widget{constructor(e){super();this._ready=new o.PromiseDelegate;this.addClass("jp-FileEditor");const t=this._context=e.context;this._mimeTypeService=e.mimeTypeService;const n=this._editorWidget=new i.CodeEditorWrapper({factory:e.factory,model:t.model,editorOptions:{config:m.defaultEditorConfig}});this._editorWidget.addClass("jp-FileEditorCodeWrapper");this._editorWidget.node.dataset[u]="true";this._editorWidget.node.dataset[p]="true";this.editor=n.editor;this.model=n.model;const s=m.defaultEditorConfig.scrollPastEnd;this.toggleClass("jp-mod-scrollPastEnd",s);void t.ready.then((()=>{this._onContextReady()}));this._onPathChanged();t.pathChanged.connect(this._onPathChanged,this);const r=this.layout=new h.StackedLayout;r.addWidget(n)}get context(){return this._context}get ready(){return this._ready.promise}handleEvent(e){if(!this.model){return}switch(e.type){case"mousedown":this._ensureFocus();break;default:break}}onAfterAttach(e){super.onAfterAttach(e);const t=this.node;t.addEventListener("mousedown",this)}onBeforeDetach(e){const t=this.node;t.removeEventListener("mousedown",this)}onActivateRequest(e){this._ensureFocus()}_ensureFocus(){if(!this.editor.hasFocus()){this.editor.focus()}}_onContextReady(){if(this.isDisposed){return}this.editor.clearHistory();this._ready.resolve(undefined)}_onPathChanged(){const e=this.editor;const t=this._context.localPath;e.model.mimeType=this._mimeTypeService.getMimeTypeByFilePath(t)}}(function(e){e.defaultEditorConfig={lineNumbers:true,scrollPastEnd:true}})(m||(m={}));class g extends d.DocumentWidget{async setFragment(e){const t=e.split("=");if(t[0]!=="#line"){return}const n=t[1];let i;if(n.includes(",")){i=n.split(",")[0]||"0"}else{i=n}return this.context.ready.then((()=>{const e={line:parseInt(i,10),column:0};this.content.editor.setCursorPosition(e);this.content.editor.revealPosition(e)}))}}class f extends d.ABCWidgetFactory{constructor(e){super(e.factoryOptions);this._services=e.editorServices}createNewWidget(e){const t=this._services.factoryService.newDocumentEditor;const n=e=>t(e);const i=new m({factory:n,context:e,mimeTypeService:this._services.mimeTypeService});i.title.icon=c.textEditorIcon;const s=new g({content:i,context:e});return s}}class v extends l.EditorSearchProvider{constructor(e){super();this.widget=e;this._searchActive=false}get isReadOnly(){return this.editor.getOption("readOnly")}get replaceOptionsSupport(){return{preserveCase:true}}get editor(){return this.widget.content.editor}get model(){return this.widget.content.model}async startQuery(e,t){this._searchActive=true;await super.startQuery(e,t);await this.highlightNext(true,{from:"selection-start",scroll:false,select:false})}async endQuery(){this._searchActive=false;await super.endQuery()}async onSharedModelChanged(e,t){if(this._searchActive){return super.onSharedModelChanged(e,t)}}static createNew(e,t){return new v(e)}static isApplicable(e){return e instanceof a.MainAreaWidget&&e.content instanceof m&&e.content.editor instanceof l.CodeMirrorEditor}getInitialQuery(){const e=this.editor;const t=e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to);return t}}var _=n(4625);var b=n(34881);var y=n(44914);var w=n.n(y);function C(e){return w().createElement(_.TextItem,{role:"button","aria-haspopup":true,tabIndex:0,source:e.language,onClick:e.handleClick,onKeyDown:t=>{if(t.key==="Enter"||t.key===" "){e.handleClick()}}})}class x extends c.VDomRenderer{constructor(e){var t;super(new x.Model(e.languages));this._handleClick=()=>{const e=new h.Menu({commands:this._commands});const t="fileeditor:change-language";if(this._popup){this._popup.dispose()}this.model.languages.getLanguages().sort(((e,t)=>{var n,i;const s=(n=e.displayName)!==null&&n!==void 0?n:e.name;const o=(i=t.displayName)!==null&&i!==void 0?i:t.name;return s.localeCompare(o)})).forEach((n=>{var i;if(n.name.toLowerCase().indexOf("brainf")===0){return}const s={name:n.name,displayName:(i=n.displayName)!==null&&i!==void 0?i:n.name};e.addItem({command:t,args:s})}));this._popup=(0,_.showPopup)({body:e,anchor:this,align:"left"})};this._popup=null;this._commands=e.commands;this.translator=(t=e.translator)!==null&&t!==void 0?t:b.nullTranslator;const n=this.translator.load("jupyterlab");this.addClass("jp-mod-highlighted");this.title.caption=n.__("Change text editor syntax highlighting")}render(){if(!this.model){return null}return w().createElement(C,{language:this.model.language,handleClick:this._handleClick})}}(function(e){class t extends c.VDomModel{constructor(e){super();this.languages=e;this._onMIMETypeChange=(e,t)=>{var n;const s=this._language;const o=this.languages.findByMIME(t.newValue);this._language=(n=o===null||o===void 0?void 0:o.name)!==null&&n!==void 0?n:i.IEditorMimeTypeService.defaultMimeType;this._triggerChange(s,this._language)};this._language="";this._editor=null}get language(){return this._language}get editor(){return this._editor}set editor(e){var t;const n=this._editor;if(n!==null){n.model.mimeTypeChanged.disconnect(this._onMIMETypeChange)}const s=this._language;this._editor=e;if(this._editor===null){this._language=""}else{const e=this.languages.findByMIME(this._editor.model.mimeType);this._language=(t=e===null||e===void 0?void 0:e.name)!==null&&t!==void 0?t:i.IEditorMimeTypeService.defaultMimeType;this._editor.model.mimeTypeChanged.connect(this._onMIMETypeChange)}this._triggerChange(s,this._language)}_triggerChange(e,t){if(e!==t){this.stateChanged.emit(void 0)}}}e.Model=t})(x||(x={}));function S(e){const t=e.translator||b.nullTranslator;const n=t.load("jupyterlab");const i=typeof e.tabSpace==="number"?n.__("Spaces"):n.__("Tab Indent");return w().createElement(_.TextItem,{role:"button","aria-haspopup":true,tabIndex:0,onClick:e.handleClick,onKeyDown:t=>{if(t.key==="Enter"||t.key===" "){e.handleClick()}},source:typeof e.tabSpace==="number"?`${i}: ${e.tabSpace}`:i,title:n.__("Change the indentation…")})}class j extends c.VDomRenderer{constructor(e){super(new j.Model);this._popup=null;this._menu=e.menu;this.translator=e.translator||b.nullTranslator;this.addClass("jp-mod-highlighted")}render(){var e;if(!((e=this.model)===null||e===void 0?void 0:e.indentUnit)){return null}else{const e=this.model.indentUnit==="Tab"?null:parseInt(this.model.indentUnit,10);return w().createElement(S,{tabSpace:e,handleClick:()=>this._handleClick(),translator:this.translator})}}_handleClick(){const e=this._menu;if(this._popup){this._popup.dispose()}e.aboutToClose.connect(this._menuClosed,this);this._popup=(0,_.showPopup)({body:e,anchor:this,align:"right"});e.update()}_menuClosed(){this.removeClass("jp-mod-clicked")}}(function(e){class t extends c.VDomModel{get indentUnit(){return this._indentUnit}set indentUnit(e){if(e!==this._indentUnit){this._indentUnit=e;this.stateChanged.emit()}}}e.Model=t})(j||(j={}));var k=n(72011);class I extends k.TableOfContentsFactory{createNew(e,t){const n=super.createNew(e,t);const i=(t,n)=>{if(n){e.content.editor.setCursorPosition({line:n.line,column:0})}};n.activeHeadingChanged.connect(i);e.disposed.connect((()=>{n.activeHeadingChanged.disconnect(i)}));return n}}const T={part:1,chapter:1,section:1,subsection:2,subsubsection:3,paragraph:4,subparagraph:5};const E=/^\s*\\(section|subsection|subsubsection){(.+)}/;class M extends k.TableOfContentsModel{get documentType(){return"latex"}get supportedOptions(){return["maximalDepth","numberHeaders"]}getHeadings(){if(!this.isActive){return Promise.resolve(null)}const e=this.widget.content.model.sharedModel.getSource().split("\n");const t=new Array;let n=t.length;const i=new Array;for(let s=0;s0){s=n}const a=["from ","import "].includes(e[1]);if(a&&i){continue}i=a;const l=1+n/s;if(l>this.configuration.maximalDepth){continue}t.push({text:r.slice(n),level:l,line:o})}}return Promise.resolve(t)}}class N extends I{isApplicable(e){var t,n;const i=super.isApplicable(e);if(i){let i=(n=(t=e.content)===null||t===void 0?void 0:t.model)===null||n===void 0?void 0:n.mimeType;return i&&(i==="application/x-python-code"||i==="text/x-python")}return false}_createNew(e,t){return new R(e,t)}}const B=new o.Token("@jupyterlab/fileeditor:IEditorTracker",`A widget tracker for file editors.\n Use this if you want to be able to iterate over and interact with file editors\n created by the application.`);const O=new o.Token("@jupyterlab/fileeditor:IEditorWidgetFactory","A factory for creating file editors.")},77748:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(17325);var a=n(19562);var l=n(23359);var d=n(5893);var c=n(79010);var h=n(13137);var u=n(66731);var p=n(85072);var m=n.n(p);var g=n(97825);var f=n.n(g);var v=n(77659);var _=n.n(v);var b=n(55056);var y=n.n(b);var w=n(10540);var C=n.n(w);var x=n(41113);var S=n.n(x);var j=n(98561);var k={};k.styleTagTransform=S();k.setAttributes=y();k.insert=_().bind(null,"head");k.domAPI=f();k.insertStyleElement=C();var I=m()(j.A,k);const T=j.A&&j.A.locals?j.A.locals:undefined},97491:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>k});var i=n(88617);var s=n.n(i);var o=n(38850);var r=n.n(o);var a=n(40959);var l=n.n(a);var d=n(89433);var c=n.n(d);var h=n(34881);var u=n.n(h);var p=n(4073);var m=n.n(p);var g=n(44914);var f=n.n(g);var v;(function(e){e.open="help:open";e.about="help:about";e.activate="help:activate";e.close="help:close";e.show="help:show";e.hide="help:hide";e.jupyterForum="help:jupyter-forum";e.licenses="help:licenses";e.licenseReport="help:license-report";e.refreshLicenses="help:licenses-refresh"})(v||(v={}));const _=window.location.protocol==="https:";const b="jp-Help";const y={id:"@jupyterlab/help-extension:licenses-commands",autoStart:true,optional:[h.ITranslator],description:"Add licenses commands for backwards compatibility.",activate:(e,t)=>{const{commands:n}=e;const i=(t!==null&&t!==void 0?t:h.nullTranslator).load("jupyterlab");const s=i.__("Licenses");const o=i.__("Download All Licenses");const r=i.__("Refresh Licenses");const a="apputils:licenses";n.addCommand(v.licenses,{label:s,describedBy:{args:{type:"object",properties:{}}},execute:e=>{console.warn(`The command ${v.licenses} is deprecated, use ${a} instead.`);return n.execute(a,e)}});const l="apputils:license-report";n.addCommand(v.licenseReport,{label:o,describedBy:{args:{type:"object",properties:{}}},execute:e=>{console.warn(`The command ${v.licenseReport} is deprecated, use ${l} instead.`);return n.execute(l,e)}});const d="apputils:licenses-refresh";n.addCommand(v.refreshLicenses,{label:r,describedBy:{args:{type:"object",properties:{}}},execute:e=>{console.warn(`The command ${v.refreshLicenses} is deprecated, use ${d} instead.`);return n.execute(d,e)}})}};const w={id:"@jupyterlab/help-extension:about",description:'Adds a "About" dialog feature.',autoStart:true,requires:[h.ITranslator],optional:[o.ICommandPalette],activate:(e,t,n)=>{const{commands:i}=e;const s=t.load("jupyterlab");const r=s.__("Help");i.addCommand(v.about,{label:s.__("About %1",e.name),describedBy:{args:{type:"object",properties:{}}},execute:()=>{const t=s.__("Version %1",e.version);const n=g.createElement("span",{className:"jp-About-version-info"},g.createElement("span",{className:"jp-About-version"},t));const i=g.createElement("span",{className:"jp-About-header"},g.createElement(p.jupyterIcon.react,{margin:"7px 9.5px",height:"auto",width:"58px"}),g.createElement("div",{className:"jp-About-header-info"},g.createElement(p.jupyterlabWordmarkIcon.react,{height:"auto",width:"196px"}),n));const r="https://jupyter.org/about.html";const a="https://github.com/jupyterlab/jupyterlab/graphs/contributors";const l=g.createElement("span",{className:"jp-About-externalLinks"},g.createElement("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"jp-Button-flat"},s.__("CONTRIBUTOR LIST")),g.createElement("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"jp-Button-flat"},s.__("ABOUT PROJECT JUPYTER")));const d=g.createElement("span",{className:"jp-About-copyright"},s.__("© %1-%2 Project Jupyter Contributors",2015,2025));const c=g.createElement("div",{className:"jp-About-body"},l,d);return(0,o.showDialog)({title:i,body:c,buttons:[o.Dialog.cancelButton({label:s.__("Close")})]})}});if(n){n.addItem({command:v.about,category:r})}}};const C={id:"@jupyterlab/help-extension:jupyter-forum",description:"Adds command to open the Jupyter Forum website.",autoStart:true,requires:[h.ITranslator],optional:[o.ICommandPalette],activate:(e,t,n)=>{const{commands:i}=e;const s=t.load("jupyterlab");const o=s.__("Help");i.addCommand(v.jupyterForum,{label:s.__("Jupyter Forum"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{window.open("https://discourse.jupyter.org/c/jupyterlab")}});if(n){n.addItem({command:v.jupyterForum,category:o})}}};const x={id:"@jupyterlab/help-extension:open",description:"Add command to open websites as panel or browser tab.",autoStart:true,requires:[h.ITranslator],optional:[i.ILayoutRestorer],activate:(e,t,n)=>{const{commands:i,shell:s}=e;const r=t.load("jupyterlab");const l="help-doc";const d=new o.WidgetTracker({namespace:l});let c=0;function h(e,t){const n=new p.IFrame({sandbox:["allow-scripts","allow-forms"],loading:"lazy"});n.url=e;n.addClass(b);n.title.label=t;n.id=`${l}-${++c}`;const i=new o.MainAreaWidget({content:n});i.addClass("jp-Help");return i}i.addCommand(v.open,{label:e=>{var t;return(t=e["text"])!==null&&t!==void 0?t:r.__("Open the provided `url` in a tab.")},describedBy:{args:{type:"object",properties:{url:{type:"string",description:"The URL to open"},text:{type:"string",description:"The text label for the tab"},newBrowserTab:{type:"boolean",description:"Whether to open in a new browser tab"}},required:["url"]}},execute:e=>{const t=e["url"];const n=e["text"];const i=e["newBrowserTab"]||false;if(i||_&&a.URLExt.parse(t).protocol!=="https:"){window.open(t);return}const o=h(t,n);void d.add(o);s.add(o,"main");return o}});if(n){void n.restore(d,{command:v.open,args:e=>({url:e.content.url,text:e.content.title.label}),name:e=>e.content.url})}}};const S={id:"@jupyterlab/help-extension:resources",description:"Adds menu entries to Jupyter reference documentation websites.",autoStart:true,requires:[d.IMainMenu,h.ITranslator],optional:[i.ILabShell,o.ICommandPalette],activate:(e,t,n,i,s)=>{const r=n.load("jupyterlab");const a=r.__("Help");const{commands:l,serviceManager:d}=e;const c=[{text:r.__("JupyterLab Reference"),url:"https://jupyterlab.readthedocs.io/en/stable/"},{text:r.__("JupyterLab FAQ"),url:"https://jupyterlab.readthedocs.io/en/stable/getting_started/faq.html"},{text:r.__("Jupyter Reference"),url:"https://jupyter.org/documentation"},{text:r.__("Markdown Reference"),url:"https://commonmark.org/help/"}];c.sort(((e,t)=>e.text.localeCompare(t.text)));const h=t.helpMenu;const u=c.map((e=>({args:e,command:v.open})));h.addGroup(u,10);const p=new Map;const m=(e,t)=>{var n;if(!t.length){return}const s=t[t.length-1];if(!s.kernel||p.has(s.kernel.name)){return}const a=d.sessions.connectTo({model:s,kernelConnectionOptions:{handleComms:false}});void((n=a.kernel)===null||n===void 0?void 0:n.info.then((e=>{var t,n;const s=a.kernel.name;if(p.has(s)){return}const c=(n=(t=d.kernelspecs)===null||t===void 0?void 0:t.specs)===null||n===void 0?void 0:n.kernelspecs[s];if(!c){return}p.set(s,e);let u=false;const m=async()=>{const e=await l.execute("helpmenu:get-kernel");u=(e===null||e===void 0?void 0:e.name)===s};m().catch((e=>{console.error("Failed to get the kernel for the current widget.",e)}));if(i){i.currentChanged.connect(m)}const f=()=>u;const _=`help-menu-${s}:banner`;const b=c.display_name;const y=c.resources["logo-svg"]||c.resources["logo-64x64"];l.addCommand(_,{label:r.__("About the %1 Kernel",b),isVisible:f,isEnabled:f,execute:()=>{const t=g.createElement("img",{src:y,alt:r.__("Kernel Icon")});const n=g.createElement("span",{className:"jp-About-header"},t,g.createElement("div",{className:"jp-About-header-info"},b));const i=g.createElement("pre",null,e.banner);const s=g.createElement("div",{className:"jp-About-body"},i);return(0,o.showDialog)({title:n,body:s,buttons:[o.Dialog.cancelButton({label:r.__("Close")})]})}});h.addGroup([{command:_}],20);const w=[];(e.help_links||[]).forEach((e=>{const t=`help-menu-${s}:${e.text}`;l.addCommand(t,{label:l.label(v.open,e),isVisible:f,isEnabled:f,execute:()=>l.execute(v.open,e)});w.push({command:t})}));h.addGroup(w,21)})).then((()=>{a.dispose()})))};for(const o of d.sessions.running()){m(d.sessions,[o])}d.sessions.runningChanged.connect(m);if(s){c.forEach((e=>{s.addItem({args:e,command:v.open,category:a})}));s.addItem({args:{reload:true},command:"apputils:reset",category:a})}}};const j=[w,C,y,x,S];const k=j},34072:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(67996);var a=n(85072);var l=n.n(a);var d=n(97825);var c=n.n(d);var h=n(77659);var u=n.n(h);var p=n(55056);var m=n.n(p);var g=n(10540);var f=n.n(g);var v=n(41113);var _=n.n(v);var b=n(31569);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.A,y);const C=b.A&&b.A.locals?b.A.locals:undefined},1951:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>y});var i=n(88617);var s=n.n(i);var o=n(38850);var r=n.n(o);var a=n(62035);var l=n.n(a);var d=n(40065);var c=n.n(d);var h=n(34881);var u=n.n(h);var p=n(4073);var m=n.n(p);const g="@jupyterlab/htmlviewer-extension:plugin";const f="HTML Viewer";var v;(function(e){e.trustHTML="htmlviewer:trust-html"})(v||(v={}));const _={activate:b,id:g,description:"Adds HTML file viewer and provides its tracker.",provides:a.IHTMLViewerTracker,requires:[h.ITranslator],optional:[o.ICommandPalette,i.ILayoutRestorer,d.ISettingRegistry,o.IToolbarWidgetRegistry],autoStart:true};function b(e,t,n,i,s,r){let l;const d=t.load("jupyterlab");if(r){r.addFactory(f,"refresh",(e=>a.ToolbarItems.createRefreshButton(e,t)));r.addFactory(f,"trust",(e=>a.ToolbarItems.createTrustButton(e,t)));if(s){l=(0,o.createToolbarFactory)(r,s,f,_.id,t)}}const c={name:"html",contentType:"file",fileFormat:"text",displayName:d.__("HTML File"),extensions:[".html"],mimeTypes:["text/html"],icon:p.html5Icon};e.docRegistry.addFileType(c);const h=new a.HTMLViewerFactory({name:f,label:d.__("HTML Viewer"),fileTypes:["html"],defaultFor:["html"],readOnly:true,toolbarFactory:l,translator:t});const u=new o.WidgetTracker({namespace:"htmlviewer"});if(i){void i.restore(u,{command:"docmanager:open",args:e=>({path:e.context.path,factory:"HTML Viewer"}),name:e=>e.context.path})}let m=false;if(s){const t=s.load(g);const n=e=>{m=e.get("trustByDefault").composite};Promise.all([t,e.restored]).then((([e])=>{n(e);e.changed.connect((e=>{n(e)}))})).catch((e=>{console.error(e.message)}))}e.docRegistry.addWidgetFactory(h);h.widgetCreated.connect(((t,n)=>{var i,s;void u.add(n);n.context.pathChanged.connect((()=>{void u.save(n)}));n.trustedChanged.connect((()=>{e.commands.notifyCommandChanged(v.trustHTML)}));n.trusted=m;n.title.icon=c.icon;n.title.iconClass=(i=c.iconClass)!==null&&i!==void 0?i:"";n.title.iconLabel=(s=c.iconLabel)!==null&&s!==void 0?s:""}));e.commands.addCommand(v.trustHTML,{label:d.__("Trust HTML File"),caption:d.__(`Whether the HTML file is trusted.\n Trusting the file allows scripts to run in it,\n which may result in security risks.\n Only enable for files you trust.`),isEnabled:()=>!!u.currentWidget,isToggled:()=>{const e=u.currentWidget;if(!e){return false}const t=e.content.sandbox;return t.indexOf("allow-scripts")!==-1},describedBy:{args:{type:"object",properties:{}}},execute:()=>{const e=u.currentWidget;if(!e){return}e.trusted=!e.trusted}});u.currentChanged.connect((()=>{e.commands.notifyCommandChanged(v.trustHTML)}));if(n){n.addItem({command:v.trustHTML,category:d.__("File Operations")})}return u}const y=_},54336:(e,t,n)=>{"use strict";var i=n(40662);var s=n(97913);var o=n(79010);var r=n(3579);var a=n(10395);var l=n(85072);var d=n.n(l);var c=n(97825);var h=n.n(c);var u=n(77659);var p=n.n(u);var m=n(55056);var g=n.n(m);var f=n(10540);var v=n.n(f);var _=n(41113);var b=n.n(_);var y=n(20813);var w={};w.styleTagTransform=b();w.setAttributes=g();w.insert=p().bind(null,"head");w.domAPI=h();w.insertStyleElement=v();var C=d()(y.A,w);const x=y.A&&y.A.locals?y.A.locals:undefined},43947:(e,t,n)=>{"use strict";n.r(t);n.d(t,{HTMLViewer:()=>m,HTMLViewerFactory:()=>g,IHTMLViewerTracker:()=>s,ToolbarItems:()=>f});var i=n(5592);const s=new i.Token("@jupyterlab/htmlviewer:IHTMLViewerTracker",`A widget tracker for rendered HTML documents.\n Use this if you want to be able to iterate over and interact with HTML documents\n viewed by the application.`);var o=n(40959);var r=n(93067);var a=n(34881);var l=n(4073);var d=n(2336);var c=n(44914);const h=1e3;const u="jp-HTMLViewer";const p=e=>``;class m extends r.DocumentWidget{constructor(e){super({...e,content:new l.IFrame({sandbox:v.common,loading:"lazy"})});this._renderPending=false;this._parser=new DOMParser;this._monitor=null;this._objectUrl="";this._trustedChanged=new d.Signal(this);this.translator=e.translator||a.nullTranslator;this.content.addClass(u);void this.context.ready.then((()=>{this.update();this._monitor=new o.ActivityMonitor({signal:this.context.model.contentChanged,timeout:h});this._monitor.activityStopped.connect(this.update,this)}))}get trusted(){return this.content.sandbox.indexOf("allow-scripts")!==-1}set trusted(e){if(this.trusted===e){return}if(e){this.content.sandbox=[...v.common,...v.trusted]}else{this.content.sandbox=[...v.common,...v.untrusted]}this.update();this._trustedChanged.emit(e)}get trustedChanged(){return this._trustedChanged}dispose(){if(this._objectUrl){try{URL.revokeObjectURL(this._objectUrl)}catch(e){}}super.dispose()}onUpdateRequest(){if(this._renderPending){return}this._renderPending=true;void this._renderModel().then((()=>this._renderPending=false))}async _renderModel(){let e=this.context.model.toString();e=await this._setupDocument(e);const t=new Blob([e],{type:"text/html"});const n=this._objectUrl;this._objectUrl=URL.createObjectURL(t);this.content.url=this._objectUrl;if(n){try{URL.revokeObjectURL(n)}catch(i){}}return}async _setupDocument(e){const t=this._parser.parseFromString(e,"text/html");let n=t.querySelector("base");if(!n){n=t.createElement("base");t.head.insertBefore(n,t.head.firstChild)}const i=this.context.path;const s=await this.context.urlResolver.getDownloadUrl(i);n.href=s;n.target="_self";if(!this.trusted){const e=this.translator.load("jupyterlab");const n=e.__("Action disabled as the file is not trusted.");t.body.insertAdjacentHTML("beforeend",p({warning:n}))}return t.documentElement.innerHTML}}class g extends r.ABCWidgetFactory{createNewWidget(e){return new m({context:e})}defaultToolbarFactory(e){return[{name:"refresh",widget:f.createRefreshButton(e,this.translator)},{name:"trust",widget:f.createTrustButton(e,this.translator)}]}}var f;(function(e){function t(e,t){const n=(t!==null&&t!==void 0?t:a.nullTranslator).load("jupyterlab");return new l.ToolbarButton({icon:l.refreshIcon,onClick:async()=>{if(!e.context.model.dirty){await e.context.revert();e.update()}},tooltip:n.__("Rerender HTML Document")})}e.createRefreshButton=t;function n(e,t){return l.ReactWidget.create(c.createElement(v.TrustButtonComponent,{htmlDocument:e,translator:t}))}e.createTrustButton=n})(f||(f={}));var v;(function(e){e.common=["allow-same-origin"];e.untrusted=[];e.trusted=["allow-scripts","allow-popups"];function t(e){const t=e.translator||a.nullTranslator;const n=t.load("jupyterlab");return c.createElement(l.UseSignal,{signal:e.htmlDocument.trustedChanged,initialSender:e.htmlDocument},(()=>c.createElement(l.ToolbarButtonComponent,{className:"",onClick:()=>e.htmlDocument.trusted=!e.htmlDocument.trusted,tooltip:n.__(`Whether the HTML file is trusted.\nTrusting the file allows opening pop-ups and running scripts\nwhich may result in security risks.\nOnly enable for files you trust.`),label:e.htmlDocument.trusted?n.__("Distrust HTML"):n.__("Trust HTML")})))}e.TrustButtonComponent=t})(v||(v={}))},44031:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CommandIDs:()=>h,default:()=>f});var i=n(88617);var s=n.n(i);var o=n(38850);var r=n.n(o);var a=n(40959);var l=n.n(a);var d=n(34881);var c=n.n(d);var h;(function(e){e.controlPanel="hub:control-panel";e.logout="hub:logout";e.restart="hub:restart"})(h||(h={}));function u(e,t,n,i){const s=n.load("jupyterlab");const o=t.urls.hubHost||"";const r=t.urls.hubPrefix||"";const l=t.urls.hubUser||"";const d=t.urls.hubServerName||"";const c=t.urls.base;if(!r){return}console.debug("hub-extension: Found configuration ",{hubHost:o,hubPrefix:r});const u=a.URLExt.join(r,"spawn");let p=o+u;if(d){const e=a.URLExt.join(u,l,d);if(!e.startsWith(u)){throw new Error("Can only be used for spawn requests")}p=o+e}const{commands:m}=e;m.addCommand(h.restart,{label:s.__("Restart Server"),caption:s.__("Request that the Hub restart this server"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{window.open(p,"_blank")}});m.addCommand(h.controlPanel,{label:s.__("Hub Control Panel"),caption:s.__("Open the Hub control panel in a new browser tab"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{window.open(o+a.URLExt.join(r,"home"),"_blank")}});m.addCommand(h.logout,{label:s.__("Log Out"),caption:s.__("Log out of the Hub"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{window.location.href=o+a.URLExt.join(c,"logout")}});if(i){const e=s.__("Hub");i.addItem({category:e,command:h.controlPanel});i.addItem({category:e,command:h.logout})}}const p={activate:u,id:"@jupyterlab/hub-extension:plugin",description:"Registers commands related to the hub server",requires:[i.JupyterFrontEnd.IPaths,d.ITranslator],optional:[o.ICommandPalette],autoStart:true};const m={activate:()=>void 0,id:"@jupyterlab/hub-extension:menu",description:"Adds hub related commands to the menu.",autoStart:true};const g={id:"@jupyterlab/hub-extension:connectionlost",description:"Provides a service to be notified when the connection to the hub server is lost.",requires:[i.JupyterFrontEnd.IPaths,d.ITranslator],optional:[i.JupyterLab.IInfo],activate:(e,t,n,s)=>{const r=n.load("jupyterlab");const a=t.urls.hubPrefix||"";const l=t.urls.base;if(!a){return i.ConnectionLost}let d=false;const c=async(t,n)=>{if(d){return}d=true;if(s){s.isConnected=false}const i=await(0,o.showDialog)({title:r.__("Server unavailable or unreachable"),body:r.__("Your server at %1 is not running.\nWould you like to restart it?",l),buttons:[o.Dialog.okButton({label:r.__("Restart")}),o.Dialog.cancelButton({label:r.__("Dismiss")})]});if(s){s.isConnected=true}d=false;if(i.button.accept){await e.commands.execute(h.restart)}};return c},autoStart:true,provides:i.IConnectionLost};const f=[p,m,g]},19457:(e,t,n)=>{"use strict";var i=n(97913);var s=n(3579)},55575:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>_});var i=n(88617);var s=n.n(i);var o=n(38850);var r=n.n(o);var a=n(38645);var l=n.n(a);var d=n(34881);var c=n.n(d);var h;(function(e){e.resetImage="imageviewer:reset-image";e.zoomIn="imageviewer:zoom-in";e.zoomOut="imageviewer:zoom-out";e.flipHorizontal="imageviewer:flip-horizontal";e.flipVertical="imageviewer:flip-vertical";e.rotateClockwise="imageviewer:rotate-clockwise";e.rotateCounterclockwise="imageviewer:rotate-counterclockwise";e.invertColors="imageviewer:invert-colors"})(h||(h={}));const u=["png","gif","jpeg","bmp","ico","tiff"];const p="Image";const m="Image (Text)";const g=["svg","xbm"];const f=new RegExp(`[.](${g.join("|")})$`);const v={activate:b,description:"Adds image viewer and provide its tracker.",id:"@jupyterlab/imageviewer-extension:plugin",provides:a.IImageTracker,requires:[d.ITranslator],optional:[o.ICommandPalette,i.ILayoutRestorer],autoStart:true};const _=v;function b(e,t,n,i){const s=t.load("jupyterlab");const r="image-widget";function l(t,n){var i,s;n.context.pathChanged.connect((()=>{void v.save(n)}));void v.add(n);const o=e.docRegistry.getFileTypesForPath(n.context.path);if(o.length>0){n.title.icon=o[0].icon;n.title.iconClass=(i=o[0].iconClass)!==null&&i!==void 0?i:"";n.title.iconLabel=(s=o[0].iconLabel)!==null&&s!==void 0?s:""}}const d=new a.ImageViewerFactory({name:p,label:s.__("Image"),modelName:"base64",fileTypes:[...u,...g],defaultFor:u,readOnly:true});const c=new a.ImageViewerFactory({name:m,label:s.__("Image (Text)"),modelName:"text",fileTypes:g,defaultFor:g,readOnly:true});[d,c].forEach((t=>{e.docRegistry.addWidgetFactory(t);t.widgetCreated.connect(l)}));const v=new o.WidgetTracker({namespace:r});if(i){void i.restore(v,{command:"docmanager:open",args:e=>({path:e.context.path,factory:f.test(e.context.path)?m:p}),name:e=>e.context.path})}y(e,v,t);if(n){const e=s.__("Image Viewer");[h.zoomIn,h.zoomOut,h.resetImage,h.rotateClockwise,h.rotateCounterclockwise,h.flipHorizontal,h.flipVertical,h.invertColors].forEach((t=>{n.addItem({command:t,category:e})}))}return v}function y(e,t,n){var i;const s=n.load("jupyterlab");const{commands:o,shell:r}=e;function a(){return t.currentWidget!==null&&t.currentWidget===r.currentWidget}o.addCommand(h.zoomIn,{execute:d,label:s.__("Zoom In"),isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});o.addCommand(h.zoomOut,{execute:c,label:s.__("Zoom Out"),isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});o.addCommand(h.resetImage,{execute:u,label:s.__("Reset Image"),isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});o.addCommand(h.rotateClockwise,{execute:p,label:s.__("Rotate Clockwise"),isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});o.addCommand(h.rotateCounterclockwise,{execute:m,label:s.__("Rotate Counterclockwise"),isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});o.addCommand(h.flipHorizontal,{execute:g,label:s.__("Flip image horizontally"),isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});o.addCommand(h.flipVertical,{execute:f,label:s.__("Flip image vertically"),isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});o.addCommand(h.invertColors,{execute:v,label:s.__("Invert Colors"),isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});const l=()=>{Object.values(h).forEach((e=>o.notifyCommandChanged(e)))};t.currentChanged.connect(l);(i=r.currentChanged)===null||i===void 0?void 0:i.connect(l);function d(){var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(n){n.scale=n.scale>1?n.scale+.5:n.scale*2}}function c(){var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(n){n.scale=n.scale>1?n.scale-.5:n.scale/2}}function u(){var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(n){n.scale=1;n.colorinversion=0;n.resetRotationFlip()}}function p(){var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(n){n.rotateClockwise()}}function m(){var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(n){n.rotateCounterclockwise()}}function g(){var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(n){n.flipHorizontal()}}function f(){var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(n){n.flipVertical()}}function v(){var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(n){n.colorinversion+=1;n.colorinversion%=2}}}},43017:(e,t,n)=>{"use strict";var i=n(97913);var s=n(79010);var o=n(3579);var r=n(10395);var a=n(85072);var l=n.n(a);var d=n(97825);var c=n.n(d);var h=n(77659);var u=n.n(h);var p=n(55056);var m=n.n(p);var g=n(10540);var f=n.n(g);var v=n(41113);var _=n.n(v);var b=n(70047);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.A,y);const C=b.A&&b.A.locals?b.A.locals:undefined},70496:(e,t,n)=>{"use strict";n.r(t);n.d(t,{IImageTracker:()=>s,ImageViewer:()=>c,ImageViewerFactory:()=>h});var i=n(5592);const s=new i.Token("@jupyterlab/imageviewer:IImageTracker",`A widget tracker for images.\n Use this if you want to be able to iterate over and interact with images\n viewed by the application.`);var o=n(40959);var r=n(38850);var a=n(93067);var l=n(27518);const d="jp-ImageViewer";class c extends l.Widget{constructor(e){super();this._scale=1;this._matrix=[1,0,0,1];this._colorinversion=0;this._ready=new i.PromiseDelegate;this.context=e;this.node.tabIndex=0;this.addClass(d);this._img=document.createElement("img");this.node.appendChild(this._img);this._onTitleChanged();e.pathChanged.connect(this._onTitleChanged,this);void e.ready.then((()=>{if(this.isDisposed){return}const t=e.contentsModel;this._mimeType=t.mimetype;this._render();e.model.contentChanged.connect(this.update,this);e.fileChanged.connect(this.update,this);this._ready.resolve(void 0)}))}[r.Printing.symbol](){return()=>r.Printing.printWidget(this)}get ready(){return this._ready.promise}get scale(){return this._scale}set scale(e){if(e===this._scale){return}this._scale=e;this._updateStyle()}get colorinversion(){return this._colorinversion}set colorinversion(e){if(e===this._colorinversion){return}this._colorinversion=e;this._updateStyle()}dispose(){if(this._img.src){URL.revokeObjectURL(this._img.src||"")}super.dispose()}resetRotationFlip(){this._matrix=[1,0,0,1];this._updateStyle()}rotateCounterclockwise(){this._matrix=u.prod(this._matrix,u.rotateCounterclockwiseMatrix);this._updateStyle()}rotateClockwise(){this._matrix=u.prod(this._matrix,u.rotateClockwiseMatrix);this._updateStyle()}flipHorizontal(){this._matrix=u.prod(this._matrix,u.flipHMatrix);this._updateStyle()}flipVertical(){this._matrix=u.prod(this._matrix,u.flipVMatrix);this._updateStyle()}onUpdateRequest(e){if(this.isDisposed||!this.context.isReady){return}this._render()}onActivateRequest(e){this.node.focus()}_onTitleChanged(){this.title.label=o.PathExt.basename(this.context.localPath)}_render(){const e=this.context;const t=e.contentsModel;if(!t){return}const n=this._img.src||"";let i=e.model.toString();if(t.format==="base64"){this._img.src=`data:${this._mimeType};base64,${i}`}else{const e=new Blob([i],{type:this._mimeType});this._img.src=URL.createObjectURL(e)}URL.revokeObjectURL(n)}_updateStyle(){const[e,t,n,i]=this._matrix;const[s,o]=u.prodVec(this._matrix,[1,1]);const r=`matrix(${e}, ${t}, ${n}, ${i}, 0, 0) translate(${s<0?-100:0}%, ${o<0?-100:0}%) `;this._img.style.transform=`scale(${this._scale}) ${r}`;this._img.style.filter=`invert(${this._colorinversion})`}}class h extends a.ABCWidgetFactory{createNewWidget(e){const t=new c(e);const n=new a.DocumentWidget({content:t,context:e});return n}}var u;(function(e){function t([e,t,n,i],[s,o,r,a]){return[e*s+t*r,e*o+t*a,n*s+i*r,n*o+i*a]}e.prod=t;function n([e,t,n,i],[s,o]){return[e*s+t*o,n*s+i*o]}e.prodVec=n;e.rotateClockwiseMatrix=[0,1,-1,0];e.rotateCounterclockwiseMatrix=[0,-1,1,0];e.flipHMatrix=[-1,0,0,1];e.flipVMatrix=[1,0,0,-1]})(u||(u={}))},33389:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>S});var i=n(88617);var s=n.n(i);var o=n(38850);var r=n.n(o);var a=n(59733);var l=n.n(a);var d=n(35361);var c=n.n(d);var h=n(46417);var u=n.n(h);var p=n(74823);var m=n.n(p);var g=n(34881);var f=n.n(g);var v=n(4073);var _=n.n(v);var b;(function(e){e.open="inspector:open";e.close="inspector:close";e.toggle="inspector:toggle"})(b||(b={}));const y={id:"@jupyterlab/inspector-extension:inspector",description:"Provides the code introspection widget.",requires:[g.ITranslator],optional:[o.ICommandPalette,h.ILauncher,i.ILayoutRestorer],provides:d.IInspector,autoStart:true,activate:(e,t,n,i,s)=>{const r=t.load("jupyterlab");const{commands:a,shell:l}=e;const c=r.__("Live updating code documentation from the active kernel");const h=r.__("Contextual Help");const u="inspector";const p="jpInspector";const m=new o.WidgetTracker({namespace:u});function g(){return _&&!_.isDisposed}let f=null;let _;function y(e){var n;if(!g()){_=new o.MainAreaWidget({content:new d.InspectorPanel({translator:t})});_.id="jp-inspector";_.title.label=h;_.title.icon=v.inspectorIcon;void m.add(_);f=f&&!f.isDisposed?f:null;_.content.source=f;(n=_.content.source)===null||n===void 0?void 0:n.onEditorChange(e)}if(!_.isAttached){l.add(_,"main",{activate:false,mode:"split-right",type:"Inspector"})}l.activateById(_.id);document.body.dataset[p]="open";return _}function w(){_.dispose();delete document.body.dataset[p]}const C=r.__("Show Contextual Help");a.addCommand(b.open,{caption:c,isEnabled:()=>!_||_.isDisposed||!_.isAttached||!_.isVisible,label:C,icon:e=>e.isLauncher?v.inspectorIcon:undefined,describedBy:{args:{type:"object",properties:{text:{type:"string",description:r.__("Text to display in the inspector")},refresh:{type:"boolean",description:r.__("Whether to refresh the inspector")},isLauncher:{type:"boolean",description:r.__("Whether command is called from launcher")}}}},execute:e=>{var t;const n=e&&e.text;const i=e&&e.refresh;if(g()&&i)(t=_.content.source)===null||t===void 0?void 0:t.onEditorChange(n);else y(n)}});const x=r.__("Hide Contextual Help");a.addCommand(b.close,{caption:c,isEnabled:()=>g(),label:x,icon:e=>e.isLauncher?v.inspectorIcon:undefined,describedBy:{args:{type:"object",properties:{isLauncher:{type:"boolean",description:r.__("Whether command is called from launcher")}}}},execute:()=>w()});const S=r.__("Show Contextual Help");a.addCommand(b.toggle,{caption:c,label:S,isToggled:()=>g(),describedBy:{args:{type:"object",properties:{text:{type:"string",description:r.__("Text to display in the inspector")}}}},execute:e=>{if(g()){w()}else{const t=e&&e.text;y(t)}}});if(i){i.add({command:b.open,args:{isLauncher:true}})}if(n){n.addItem({command:b.toggle,category:S})}if(s){void s.restore(m,{command:b.toggle,name:()=>"inspector"})}const j=Object.defineProperty({},"source",{get:()=>!_||_.isDisposed?null:_.content.source,set:e=>{f=e&&!e.isDisposed?e:null;if(_&&!_.isDisposed){_.content.source=f}}});return j}};const w={id:"@jupyterlab/inspector-extension:consoles",description:"Adds code introspection support to consoles.",requires:[d.IInspector,a.IConsoleTracker],autoStart:true,activate:(e,t,n,i)=>{var s;const o={};n.widgetAdded.connect(((e,t)=>{const n=t.console.sessionContext;const i=t.console.rendermime;const s=new d.KernelConnector({sessionContext:n});const r=new d.InspectionHandler({connector:s,rendermime:i});o[t.id]=r;const a=t.console.promptCell;r.editor=a&&a.editor;t.console.promptCellCreated.connect(((e,t)=>{r.editor=t&&t.editor}));t.disposed.connect((()=>{delete o[t.id];r.dispose()}))}));const r=e=>{if(e&&n.has(e)&&o[e.id]){t.source=o[e.id]}};(s=e.shell.currentChanged)===null||s===void 0?void 0:s.connect(((e,t)=>r(t.newValue)));void e.restored.then((()=>r(e.shell.currentWidget)))}};const C={id:"@jupyterlab/inspector-extension:notebooks",description:"Adds code introspection to notebooks.",requires:[d.IInspector,p.INotebookTracker],autoStart:true,activate:(e,t,n)=>{var i;const s={};n.widgetAdded.connect(((e,t)=>{const n=t.sessionContext;const i=t.content.rendermime;const o=new d.KernelConnector({sessionContext:n});const r=new d.InspectionHandler({connector:o,rendermime:i});s[t.id]=r;const a=t.content.activeCell;r.editor=a&&a.editor;t.content.activeCellChanged.connect(((e,n)=>{void(n===null||n===void 0?void 0:n.ready.then((()=>{if(n===t.content.activeCell){r.editor=n.editor}})))}));t.disposed.connect((()=>{delete s[t.id];r.dispose()}))}));const o=e=>{if(e&&n.has(e)&&s[e.id]){t.source=s[e.id]}};(i=e.shell.currentChanged)===null||i===void 0?void 0:i.connect(((e,t)=>o(t.newValue)));void e.restored.then((()=>o(e.shell.currentWidget)))}};const x=[y,w,C];const S=x},45695:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(3579);var a=n(50286);var l=n(52638);var d=n(75797);var c=n(28006)},40516:(e,t,n)=>{"use strict";n.r(t);n.d(t,{IInspector:()=>_,InspectionHandler:()=>l,InspectorPanel:()=>g,KernelConnector:()=>v});var i=n(40959);var s=n(95513);var o=n(5592);var r=n(26568);var a=n(2336);class l{constructor(e){this._cleared=new a.Signal(this);this._disposed=new a.Signal(this);this._editor=null;this._inspected=new a.Signal(this);this._isDisposed=false;this._pending=0;this._standby=true;this._lastInspectedReply=null;this._connector=e.connector;this._rendermime=e.rendermime;this._debouncer=new r.Debouncer(this.onEditorChange.bind(this),250)}get cleared(){return this._cleared}get disposed(){return this._disposed}get inspected(){return this._inspected}get editor(){return this._editor}set editor(e){if(e===this._editor){return}a.Signal.disconnectReceiver(this);const t=this._editor=e;if(t){this._cleared.emit(void 0);this.onEditorChange();t.model.selections.changed.connect(this._onChange,this);t.model.sharedModel.changed.connect(this._onChange,this)}}get standby(){return this._standby}set standby(e){this._standby=e}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this._debouncer.dispose();this._disposed.emit(void 0);a.Signal.clearData(this)}onEditorChange(e){if(this._standby){return}const t=this.editor;if(!t){return}const n=e?e:t.model.sharedModel.getSource();const r=t.getCursorPosition();const a=i.Text.jsIndexToCharIndex(t.getOffsetAt(r),n);const l={content:null};const d=++this._pending;void this._connector.fetch({offset:a,text:n}).then((e=>{if(!e||this.isDisposed||d!==this._pending){this._lastInspectedReply=null;this._inspected.emit(l);return}const{data:t}=e;if(this._lastInspectedReply&&o.JSONExt.deepEqual(this._lastInspectedReply,t)){return}const n=this._rendermime.preferredMimeType(t);if(n){const e=this._rendermime.createRenderer(n);const i=new s.MimeModel({data:t});void e.renderModel(i);l.content=e}this._lastInspectedReply=e.data;this._inspected.emit(l)})).catch((e=>{this._lastInspectedReply=null;this._inspected.emit(l)}))}_onChange(){void this._debouncer.invoke()}}var d=n(38850);var c=n(34881);var h=n(27518);const u="jp-Inspector";const p="jp-Inspector-content";const m="jp-Inspector-placeholderContent";class g extends h.Panel{constructor(e={}){super();this._source=null;this.translator=e.translator||c.nullTranslator;this._trans=this.translator.load("jupyterlab");if(e.initialContent instanceof h.Widget){this._content=e.initialContent}else if(typeof e.initialContent==="string"){this._content=g._generateContentWidget(`

    ${e.initialContent}

    `)}else{const e=`

    ${this._trans.__("No Documentation")}

    `;const t=`

    ${this._trans.__("Move the cursor to a code fragment (e.g. function or object) to request information about it from the kernel attached to the editor.")}

    `;this._content=g._generateContentWidget(`${e}${t}`)}this.addClass(u);this.layout.addWidget(this._content)}[d.Printing.symbol](){return()=>d.Printing.printWidget(this)}get source(){return this._source}set source(e){if(this._source===e){return}if(this._source){this._source.standby=true;this._source.inspected.disconnect(this.onInspectorUpdate,this);this._source.disposed.disconnect(this.onSourceDisposed,this)}if(e&&e.isDisposed){e=null}this._source=e;if(this._source){this._source.standby=false;this._source.inspected.connect(this.onInspectorUpdate,this);this._source.disposed.connect(this.onSourceDisposed,this)}}dispose(){if(this.isDisposed){return}this.source=null;super.dispose()}onInspectorUpdate(e,t){const{content:n}=t;if(!n||n===this._content){return}this._content.dispose();this._content=n;n.addClass(p);this.layout.addWidget(n)}onSourceDisposed(e,t){this.source=null}static _generateContentWidget(e){const t=new h.Widget;t.node.innerHTML=e;t.addClass(p);t.addClass(m);return t}}var f=n(78629);class v extends f.DataConnector{constructor(e){super();this._sessionContext=e.sessionContext}fetch(e){var t;const n=(t=this._sessionContext.session)===null||t===void 0?void 0:t.kernel;if(!n){return Promise.reject(new Error("Inspection fetch requires a kernel."))}const i={code:e.text,cursor_pos:e.offset,detail_level:1};return n.requestInspect(i).then((e=>{const t=e.content;if(t.status!=="ok"||!t.found){throw new Error("Inspection fetch failed to return successfully.")}return{data:t.data,metadata:t.metadata}}))}}const _=new o.Token("@jupyterlab/inspector:IInspector",`A service for adding contextual help to widgets (visible using "Show Contextual Help" from the Help menu).\n Use this to hook into the contextual help system in your extension.`)},52638:(e,t,n)=>{"use strict";var i=n(10395);var s=n(97913);var o=n(17325);var r=n(5893);var a=n(85072);var l=n.n(a);var d=n(97825);var c=n.n(d);var h=n(77659);var u=n.n(h);var p=n(55056);var m=n.n(p);var g=n(10540);var f=n.n(g);var v=n(41113);var _=n.n(v);var b=n(96741);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.A,y);const C=b.A&&b.A.locals?b.A.locals:undefined},42147:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{APPLICATION_JAVASCRIPT_MIMETYPE:()=>APPLICATION_JAVASCRIPT_MIMETYPE,ExperimentalRenderedJavascript:()=>ExperimentalRenderedJavascript,TEXT_JAVASCRIPT_MIMETYPE:()=>TEXT_JAVASCRIPT_MIMETYPE,default:()=>__WEBPACK_DEFAULT_EXPORT__,rendererFactory:()=>rendererFactory});var _jupyterlab_rendermime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(95513);var _jupyterlab_rendermime__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_jupyterlab_rendermime__WEBPACK_IMPORTED_MODULE_0__);const TEXT_JAVASCRIPT_MIMETYPE="text/javascript";const APPLICATION_JAVASCRIPT_MIMETYPE="application/javascript";function evalInContext(code,element,document,window){return eval(code)}class ExperimentalRenderedJavascript extends _jupyterlab_rendermime__WEBPACK_IMPORTED_MODULE_0__.RenderedJavaScript{render(e){const t=this.translator.load("jupyterlab");const n=()=>{try{const t=e.data[this.mimeType];if(t){evalInContext(t,this.node,document,window)}return Promise.resolve()}catch(t){return Promise.reject(t)}};if(!e.trusted){const e=document.createElement("pre");e.textContent=t.__("Are you sure that you want to run arbitrary Javascript within your JupyterLab session?");const i=document.createElement("button");i.textContent=t.__("Run");this.node.appendChild(e);this.node.appendChild(i);i.onclick=e=>{this.node.textContent="";void n()};return Promise.resolve()}return n()}}const rendererFactory={safe:false,mimeTypes:[TEXT_JAVASCRIPT_MIMETYPE,APPLICATION_JAVASCRIPT_MIMETYPE],createRenderer:e=>new ExperimentalRenderedJavascript(e)};const extension={id:"@jupyterlab/javascript-extension:factory",description:"Adds renderer for JavaScript content.",rendererFactory,rank:0,dataType:"string"};const __WEBPACK_DEFAULT_EXPORT__=extension},53640:(e,t,n)=>{"use strict";var i=n(5893);var s=n(85072);var o=n.n(s);var r=n(97825);var a=n.n(r);var l=n(77659);var d=n.n(l);var c=n(55056);var h=n.n(c);var u=n(10540);var p=n.n(u);var m=n(41113);var g=n.n(m);var f=n(67613);var v={};v.styleTagTransform=g();v.setAttributes=h();v.insert=d().bind(null,"head");v.domAPI=a();v.insertStyleElement=p();var _=o()(f.A,v);const b=f.A&&f.A.locals?f.A.locals:undefined},60885:(e,t,n)=>{"use strict";n.d(t,{Component:()=>C});var i=n(45713);var s=n.n(i);var o=n(34881);var r=n.n(o);var a=n(4073);var l=n.n(a);var d=n(45145);var c=n.n(d);var h=n(5592);var u=n.n(h);var p=n(44914);var m=n.n(p);var g=n(80171);var f=n.n(g);var v=n(64368);var _=n.n(v);var b=n(23546);var y=n.n(b);function w(e){var t;return(t=i.jupyterHighlightStyle.style([e]))!==null&&t!==void 0?t:""}class C extends p.Component{constructor(){super(...arguments);this.state={filter:"",value:""};this.timer=0;this.handleChange=e=>{const{value:t}=e.target;this.setState({value:t});window.clearTimeout(this.timer);this.timer=window.setTimeout((()=>{this.setState({filter:t})}),300)}}componentDidMount(){b.StyleModule.mount(document,i.jupyterHighlightStyle.module)}render(){const e=this.props.translator||o.nullTranslator;const t=e.load("jupyterlab");const{data:n,metadata:i,forwardedRef:s}=this.props;const r=i&&i.root?i.root:"root";const l=this.state.filter?j(n,this.state.filter,[r]):[r];return p.createElement("div",{className:"container",ref:s},p.createElement(a.InputGroup,{className:"filter",type:"text",placeholder:t.__("Find…"),onChange:this.handleChange,value:this.state.value,rightIcon:"ui-components:search"}),p.createElement(v.JSONTree,{data:n,collectionLimit:100,theme:{extend:x,valueLabel:w(d.tags.variableName),valueText:w(d.tags.string),nestedNodeItemString:w(d.tags.comment)},invertTheme:false,keyPath:[r],getItemString:(e,t,n,i)=>Array.isArray(t)?p.createElement("span",null,n," ",i):Object.keys(t).length===0?p.createElement("span",null,n):null,labelRenderer:([e,t])=>p.createElement("span",{className:w(d.tags.keyword)},p.createElement(f(),{searchWords:[this.state.filter],textToHighlight:`${e}`,highlightClassName:"jp-mod-selected"})),valueRenderer:e=>{let t=w(d.tags.string);if(typeof e==="number"){t=w(d.tags.number)}if(e==="true"||e==="false"){t=w(d.tags.keyword)}return p.createElement("span",{className:t},p.createElement(f(),{searchWords:[this.state.filter],textToHighlight:`${e}`,highlightClassName:"jp-mod-selected"}))},shouldExpandNodeInitially:(e,t,n)=>i&&i.expanded?true:l.join(",").includes(e.join(","))}))}}const x={scheme:"jupyter",base00:"invalid",base01:"invalid",base02:"invalid",base03:"invalid",base04:"invalid",base05:"invalid",base06:"invalid",base07:"invalid",base08:"invalid",base09:"invalid",base0A:"invalid",base0B:"invalid",base0C:"invalid",base0D:"invalid",base0E:"invalid",base0F:"invalid",author:"invalid"};function S(e,t){return JSON.stringify(e).includes(t)}function j(e,t,n=["root"]){if(h.JSONExt.isArray(e)){return e.reduce(((e,i,s)=>{if(i&&typeof i==="object"&&S(i,t)){return[...e,[s,...n].join(","),...j(i,t,[s,...n])]}return e}),[])}if(h.JSONExt.isObject(e)){return Object.keys(e).reduce(((i,s)=>{const o=e[s];if(o&&typeof o==="object"&&(s.includes(t)||S(o,t))){return[...i,[s,...n].join(","),...j(o,t,[s,...n])]}return i}),[])}return[]}},94206:(e,t,n)=>{"use strict";n.r(t);n.d(t,{MIME_TYPE:()=>p,MIME_TYPES_JSONL:()=>m,RenderedJSON:()=>g,default:()=>_,rendererFactory:()=>f});var i=n(38850);var s=n.n(i);var o=n(34881);var r=n.n(o);var a=n(27518);var l=n.n(a);var d=n(44914);var c=n.n(d);var h=n(5338);const u="jp-RenderedJSON";const p="application/json";const m=["text/jsonl","application/jsonl","application/json-lines"];class g extends a.Widget{constructor(e){super();this._rootDOM=null;this.addClass(u);this.addClass("CodeMirror");this._mimeType=e.mimeType;this.translator=e.translator||o.nullTranslator}[i.Printing.symbol](){return()=>i.Printing.printWidget(this)}async renderModel(e){const{Component:t}=await Promise.all([n.e(4470),n.e(5592),n.e(4073),n.e(5713),n.e(5145),n.e(3546),n.e(5930)]).then(n.bind(n,60885));let i;if(m.indexOf(this._mimeType)>=0){const t=(e.data[this._mimeType]||"").trim().split(/\n/);i=JSON.parse(`[${t.join(",")}]`)}else{i=e.data[this._mimeType]||{}}const s=e.metadata[this._mimeType]||{};if(this._rootDOM===null){this._rootDOM=(0,h.H)(this.node)}return new Promise(((e,n)=>{this._rootDOM.render(d.createElement(t,{data:i,metadata:s,translator:this.translator,forwardedRef:()=>e()}))}))}onBeforeDetach(e){if(this._rootDOM){this._rootDOM.unmount();this._rootDOM=null}}}const f={safe:true,mimeTypes:[p,...m],createRenderer:e=>new g(e)};const v=[{id:"@jupyterlab/json-extension:factory",description:"Adds renderer for JSON content.",rendererFactory:f,rank:0,dataType:"json",documentWidgetFactoryOptions:{name:"JSON",primaryFileType:"json",fileTypes:["json","notebook","geojson"],defaultFor:["json"]}},{id:"@jupyterlab/json-lines-extension:factory",description:"Adds renderer for JSONLines content.",rendererFactory:f,rank:0,dataType:"string",documentWidgetFactoryOptions:{name:"JSONLines",primaryFileType:"jsonl",fileTypes:["jsonl","ndjson"],defaultFor:["jsonl","ndjson"]}}];const _=v},367:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(23359);var a=n(85072);var l=n.n(a);var d=n(97825);var c=n.n(d);var h=n(77659);var u=n.n(h);var p=n(55056);var m=n.n(p);var g=n(10540);var f=n.n(g);var v=n(41113);var _=n.n(v);var b=n(34176);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.A,y);const C=b.A&&b.A.locals?b.A.locals:undefined},960:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>b});var i=n(88617);var s=n.n(i);var o=n(38850);var r=n.n(o);var a=n(44577);var l=n.n(a);var d=n(46417);var c=n.n(d);var h=n(34881);var u=n.n(h);var p=n(4073);var m=n.n(p);var g=n(34236);var f=n.n(g);var v;(function(e){e.create="launcher:create"})(v||(v={}));const _={activate:y,id:"@jupyterlab/launcher-extension:plugin",description:"Provides the launcher tab service.",requires:[h.ITranslator],optional:[i.ILabShell,o.ICommandPalette,a.IDefaultFileBrowser],provides:d.ILauncher,autoStart:true};const b=_;function y(e,t,n,i,s){const{commands:r,shell:a}=e;const l=t.load("jupyterlab");const c=new d.LauncherModel;r.addCommand(v.create,{label:l.__("New Launcher"),icon:e=>e.toolbar?p.addIcon:undefined,describedBy:{args:{type:"object",properties:{cwd:{type:"string",description:l.__("The current working directory")},toolbar:{type:"boolean",description:l.__("Whether the command is executed from a toolbar")},activate:{type:"boolean",description:l.__("Whether to activate the widget")},ref:{type:"string",description:l.__("The reference widget id")}}}},execute:e=>{var i,h;const u=(h=(i=e["cwd"])!==null&&i!==void 0?i:s===null||s===void 0?void 0:s.model.path)!==null&&h!==void 0?h:"";const m=`launcher-${w.id++}`;const f=e=>{if((0,g.find)(a.widgets("main"),(t=>t===e))){a.add(e,"main",{ref:m});v.dispose()}};const v=new d.Launcher({model:c,cwd:u,callback:f,commands:r,translator:t});v.model=c;v.title.icon=p.launcherIcon;v.title.label=l.__("Launcher");const _=new o.MainAreaWidget({content:v});_.title.closable=!!Array.from(a.widgets("main")).length;_.id=m;a.add(_,"main",{activate:e["activate"],ref:e["ref"]});if(n){n.layoutModified.connect((()=>{_.title.closable=Array.from(n.widgets("main")).length>1}),_)}if(s){const e=e=>{v.cwd=e.path};s.model.pathChanged.connect(e);v.disposed.connect((()=>{s.model.pathChanged.disconnect(e)}))}return _}});if(n){void Promise.all([e.restored,s===null||s===void 0?void 0:s.model.restored]).then((()=>{function e(){if(n.isEmpty("main")){void r.execute(v.create)}}n.layoutModified.connect((()=>{e()}))}))}if(i){i.addItem({command:v.create,category:l.__("Launcher")})}if(n){n.addButtonEnabled=true;n.addRequested.connect(((e,t)=>{var n;const i=((n=t.currentTitle)===null||n===void 0?void 0:n.owner.id)||t.titles[t.titles.length-1].owner.id;return r.execute(v.create,{ref:i})}))}return c}var w;(function(e){e.id=0})(w||(w={}))},68149:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(3579);var a=n(39063);var l=n(75797);var d=n(85072);var c=n.n(d);var h=n(97825);var u=n.n(h);var p=n(77659);var m=n.n(p);var g=n(55056);var f=n.n(g);var v=n(10540);var _=n.n(v);var b=n(41113);var y=n.n(b);var w=n(41782);var C={};C.styleTagTransform=y();C.setAttributes=f();C.insert=m().bind(null,"head");C.domAPI=u();C.insertStyleElement=_();var x=c()(w.A,C);const S=w.A&&w.A.locals?w.A.locals:undefined},70322:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ILauncher:()=>s,Launcher:()=>g,LauncherModel:()=>m});var i=n(5592);const s=new i.Token("@jupyterlab/launcher:ILauncher",`A service for the application activity launcher.\n Use this to add your extension activities to the launcher panel.`);var o=n(38850);var r=n(34881);var a=n(4073);var l=n(34236);var d=n(90044);var c=n(94466);var h=n(27518);var u=n(44914);const p="jp-Launcher";class m extends a.VDomModel{constructor(){super(...arguments);this.itemsList=[]}add(e){const t=v.createItem(e);this.itemsList.push(t);this.stateChanged.emit(void 0);return new d.DisposableDelegate((()=>{l.ArrayExt.removeFirstOf(this.itemsList,t);this.stateChanged.emit(void 0)}))}items(){return this.itemsList[Symbol.iterator]()}}class g extends a.VDomRenderer{constructor(e){super(e.model);this._pending=false;this._cwd="";this._cwd=e.cwd;this.translator=e.translator||r.nullTranslator;this._trans=this.translator.load("jupyterlab");this._callback=e.callback;this._commands=e.commands;this.addClass(p)}get cwd(){return this._cwd}set cwd(e){this._cwd=e;this.update()}get pending(){return this._pending}set pending(e){this._pending=e}render(){if(!this.model){return null}const e=[this._trans.__("Notebook"),this._trans.__("Console"),this._trans.__("Other")];const t=[this._trans.__("Notebook"),this._trans.__("Console")];const n=Object.create(null);for(const r of this.model.items()){const e=r.category||this._trans.__("Other");if(!(e in n)){n[e]=[]}n[e].push(r)}for(const r in n){n[r]=n[r].sort(((e,t)=>v.sortCmp(e,t,this._cwd,this._commands)))}const i=[];let s;const o=[];for(const r of e){o.push(r)}for(const r in n){if(e.indexOf(r)===-1){o.push(r)}}o.forEach((e=>{if(!n[e]){return}const o=n[e][0];const r={...o.args,cwd:this.cwd};const d=t.indexOf(e)>-1;const c=this._commands.iconClass(o.command,r);const h=this._commands.icon(o.command,r);if(e in n){s=u.createElement("div",{className:"jp-Launcher-section",key:e},u.createElement("div",{className:"jp-Launcher-sectionHeader"},u.createElement(a.LabIcon.resolveReact,{icon:h,iconClass:(0,a.classes)(c,"jp-Icon-cover"),stylesheet:"launcherSection","aria-hidden":"true"}),u.createElement("h2",{className:"jp-Launcher-sectionTitle"},e)),u.createElement("div",{className:"jp-Launcher-cardContainer"},Array.from((0,l.map)(n[e],(e=>f(d,e,this,this._commands,this._trans,this._callback))))));i.push(s)}}));return u.createElement("div",{className:"jp-Launcher-body"},u.createElement("div",{className:"jp-Launcher-content"},u.createElement("div",{className:"jp-Launcher-cwd"},u.createElement("h3",null,this.cwd)),i))}}function f(e,t,n,i,s,r){const l=t.command;const d={...t.args,cwd:n.cwd};const c=i.caption(l,d);const p=i.label(l,d);const m=e?p:c||p;const g=()=>{if(n.pending===true){return}n.pending=true;void i.execute(l,{...t.args,cwd:n.cwd}).then((e=>{n.pending=false;if(e instanceof h.Widget){r(e)}})).catch((e=>{console.error(e);n.pending=false;void(0,o.showErrorMessage)(s._p("Error","Launcher Error"),e)}))};const f=e=>{if(e.key==="Enter"){g()}};const _=i.iconClass(l,d);const b=i.icon(l,d);return u.createElement("div",{className:"jp-LauncherCard",title:m,role:"button",onClick:g,onKeyDown:f,tabIndex:0,"data-category":t.category||s.__("Other"),key:v.keyProperty.get(t)},u.createElement("div",{className:"jp-LauncherCard-icon"},e?t.kernelIconUrl?u.createElement("img",{src:t.kernelIconUrl,className:"jp-Launcher-kernelIcon",alt:m}):u.createElement("div",{className:"jp-LauncherCard-noKernelIcon"},p[0].toUpperCase()):u.createElement(a.LabIcon.resolveReact,{icon:b,iconClass:(0,a.classes)(_,"jp-Icon-cover"),stylesheet:"launcherCard"})),u.createElement("div",{className:"jp-LauncherCard-label",title:m},u.createElement("p",null,p)))}var v;(function(e){let t=0;e.keyProperty=new c.AttachedProperty({name:"key",create:()=>t++});function n(e){return{...e,category:e.category||"",rank:e.rank!==undefined?e.rank:Infinity}}e.createItem=n;function i(e,t,n,i){const s=e.rank;const o=t.rank;if(s!==o&&s!==undefined&&o!==undefined){return s{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(85072);var a=n.n(r);var l=n(97825);var d=n.n(l);var c=n(77659);var h=n.n(c);var u=n(55056);var p=n.n(u);var m=n(10540);var g=n.n(m);var f=n(41113);var v=n.n(f);var _=n(97718);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.A,b);const w=_.A&&_.A.locals?_.A.locals:undefined},62062:(e,t,n)=>{"use strict";n.r(t);n.d(t,{LogLevelSwitcher:()=>x,default:()=>S});var i=n(88617);var s=n(38850);var o=n(93067);var r=n(35555);var a=n(95513);var l=n(40065);var d=n(4625);var c=n(34881);var h=n(4073);var u=n(5592);var p=n(44914);var m=n.n(p);var g=n(2336);function f(e){const t=e.translator||c.nullTranslator;const n=t.load("jupyterlab");let i="";if(e.newMessages>0){i=n.__("%1 new messages, %2 log entries for %3",e.newMessages,e.logEntries,e.source)}else{i+=n.__("%1 log entries for %2",e.logEntries,e.source)}return m().createElement(d.GroupItem,{role:"button",tabIndex:0,spacing:0,onClick:e.handleClick,onKeyDown:t=>{if(t.key==="Enter"||t.key===" "){e.handleClick()}},title:i},m().createElement(h.listIcon.react,{top:"2px",stylesheet:"statusBar"}),e.newMessages>0?m().createElement(d.TextItem,{source:e.newMessages}):m().createElement(m().Fragment,null))}class v extends h.VDomRenderer{constructor(e){super(new v.Model(e.loggerRegistry));this.translator=e.translator||c.nullTranslator;this._handleClick=e.handleClick;this.addClass("jp-mod-highlighted");this.addClass("jp-LogConsoleStatusItem")}render(){if(this.model===null||this.model.version===0){return null}const{flashEnabled:e,messages:t,source:n,version:i,versionDisplayed:s,versionNotified:o}=this.model;if(n!==null&&e&&i>o){this._flashHighlight();this.model.sourceNotified(n,i)}else if(n!==null&&e&&i>s){this._showHighlighted()}else{this._clearHighlight()}return m().createElement(f,{handleClick:this._handleClick,logEntries:t,newMessages:i-s,source:this.model.source,translator:this.translator})}_flashHighlight(){this._showHighlighted();this.removeClass("jp-LogConsole-flash");requestAnimationFrame((()=>{this.addClass("jp-LogConsole-flash")}))}_showHighlighted(){this.addClass("jp-mod-selected")}_clearHighlight(){this.removeClass("jp-LogConsole-flash");this.removeClass("jp-mod-selected")}}(function(e){class t extends h.VDomModel{constructor(e){super();this.flashEnabledChanged=new g.Signal(this);this._flashEnabled=true;this._source=null;this._sourceVersion=new Map;this._loggerRegistry=e;this._loggerRegistry.registryChanged.connect(this._handleLogRegistryChange,this);this._handleLogRegistryChange()}get messages(){if(this._source===null){return 0}const e=this._loggerRegistry.getLogger(this._source);return e.length}get version(){if(this._source===null){return 0}const e=this._loggerRegistry.getLogger(this._source);return e.version}get source(){return this._source}set source(e){if(this._source===e){return}this._source=e;this.stateChanged.emit()}get versionDisplayed(){var e,t;if(this._source===null){return 0}return(t=(e=this._sourceVersion.get(this._source))===null||e===void 0?void 0:e.lastDisplayed)!==null&&t!==void 0?t:0}get versionNotified(){var e,t;if(this._source===null){return 0}return(t=(e=this._sourceVersion.get(this._source))===null||e===void 0?void 0:e.lastNotified)!==null&&t!==void 0?t:0}get flashEnabled(){return this._flashEnabled}set flashEnabled(e){if(this._flashEnabled===e){return}this._flashEnabled=e;this.flashEnabledChanged.emit();this.stateChanged.emit()}sourceDisplayed(e,t){if(e===null||t===null){return}const n=this._sourceVersion.get(e);let i=false;if(n.lastDisplayednew x(e.content,n)))}const w=new r.LoggerRegistry({defaultRendermime:t,maxLength:1e3});const C=new s.WidgetTracker({namespace:"logconsole"});if(l){void l.restore(C,{command:y.open,name:()=>"logconsole"})}const S=new v({loggerRegistry:w,handleClick:()=>{var t;if(!m){k({insertMode:"split-bottom",ref:(t=e.shell.currentWidget)===null||t===void 0?void 0:t.id})}else{e.shell.activateById(m.id)}},translator:n});const j=()=>{const t=e.shell.currentWidget;if(i===null||i===void 0?void 0:i.currentPath){return i.currentPath}if(t&&t instanceof o.DocumentWidget){return t.context.path}return null};const k=(t={})=>{var i,o;g=new r.LogConsolePanel(w,n);g.source=(o=(i=t.source)!==null&&i!==void 0?i:j())!==null&&o!==void 0?o:null;m=new s.MainAreaWidget({content:g});m.addClass("jp-LogConsole");m.title.closable=true;m.title.icon=h.listIcon;m.title.label=p.__("Log Console");if(f){(0,s.setToolbar)(m,f)}const a=()=>{e.commands.notifyCommandChanged(y.addCheckpoint);e.commands.notifyCommandChanged(y.clear);e.commands.notifyCommandChanged(y.open);e.commands.notifyCommandChanged(y.setLevel)};g.sourceChanged.connect((()=>{a()}));g.sourceDisplayed.connect(((e,{source:t,version:n})=>{S.model.sourceDisplayed(t,n)}));m.disposed.connect((()=>{m=null;g=null;a()}));e.shell.add(m,"down",{ref:t.ref,mode:t.insertMode,type:"Log Console"});void C.add(m);e.shell.activateById(m.id);m.update();a()};e.commands.addCommand(y.open,{label:p.__("Show Log Console"),execute:(e={})=>{if(m){m.dispose()}else{k(e)}},isToggled:()=>m!==null,describedBy:{args:{type:"object",properties:{source:{type:"string",description:p.__("The source for the log console")},insertMode:{type:"string",description:p.__("The insert mode for the dock layout")},ref:{type:"string",description:p.__("The reference widget")}}}}});e.commands.addCommand(y.addCheckpoint,{execute:()=>{var e;(e=g===null||g===void 0?void 0:g.logger)===null||e===void 0?void 0:e.checkpoint()},icon:h.addIcon,isEnabled:()=>!!g&&g.source!==null,label:p.__("Add Checkpoint"),describedBy:{args:{type:"object",properties:{}}}});e.commands.addCommand(y.clear,{execute:()=>{var e;(e=g===null||g===void 0?void 0:g.logger)===null||e===void 0?void 0:e.clear()},icon:h.clearIcon,isEnabled:()=>!!g&&g.source!==null,label:p.__("Clear Log"),describedBy:{args:{type:"object",properties:{}}}});function I(e){return e.length===0?e:e[0].toUpperCase()+e.slice(1)}e.commands.addCommand(y.setLevel,{execute:e=>{if(g===null||g===void 0?void 0:g.logger){g.logger.level=e.level}},isEnabled:()=>!!g&&g.source!==null,label:e=>e["level"]?p.__("Set Log Level to %1",I(e.level)):p.__("Set log level to `level`."),describedBy:{args:{type:"object",properties:{level:{type:"string",enum:["Critical","Error","Warning","Info","Debug"],description:p.__("The log level to set")}},required:["level"]}}});if(a){a.addItem({command:y.open,category:p.__("Main Area")})}if(d){d.registerStatusItem("@jupyterlab/logconsole-extension:status",{item:S,align:"left",isActive:()=>{var e;return((e=S.model)===null||e===void 0?void 0:e.version)>0},activeStateChanged:S.model.stateChanged})}function T(e){if(g){g.source=e}S.model.source=e}void e.restored.then((()=>{var e;if(i){i.currentPathChanged.connect(((e,{newValue:t})=>T(t)));T((e=i.currentPath)!==null&&e!==void 0?e:null)}else{T(j())}}));if(c){const t=e=>{w.maxLength=e.get("maxLogEntries").composite;S.model.flashEnabled=e.get("flash").composite;w.defaultLogLevel=e.get("defaultLogLevel").composite};Promise.all([c.load(b),e.restored]).then((([e])=>{t(e);e.changed.connect((e=>{t(e)}))})).catch((e=>{console.error(e.message)}))}return w}class x extends h.ReactWidget{constructor(e,t){super();this.handleChange=e=>{if(this._logConsole.logger){this._logConsole.logger.level=e.target.value}this.update()};this.handleKeyDown=e=>{if(e.keyCode===13){this._logConsole.activate()}};this._id=`level-${u.UUID.uuid4()}`;this.translator=t!==null&&t!==void 0?t:c.nullTranslator;this._trans=this.translator.load("jupyterlab");this.addClass("jp-LogConsole-toolbarLogLevel");this._logConsole=e;if(e.source){this.update()}e.sourceChanged.connect(this._updateSource,this)}_updateSource(e,{oldValue:t,newValue:n}){if(t!==null){const n=e.loggerRegistry.getLogger(t);n.stateChanged.disconnect(this.update,this)}if(n!==null){const t=e.loggerRegistry.getLogger(n);t.stateChanged.connect(this.update,this)}this.update()}render(){const e=this._logConsole.logger;return p.createElement(p.Fragment,null,p.createElement("label",{htmlFor:this._id,className:e===null?"jp-LogConsole-toolbarLogLevel-disabled":undefined},this._trans.__("Log Level:")),p.createElement(h.HTMLSelect,{id:this._id,className:"jp-LogConsole-toolbarLogLevelDropdown",onChange:this.handleChange,onKeyDown:this.handleKeyDown,value:e===null||e===void 0?void 0:e.level,"aria-label":this._trans.__("Log level"),disabled:e===null,options:e===null?[]:[[this._trans.__("Critical"),"Critical"],[this._trans.__("Error"),"Error"],[this._trans.__("Warning"),"Warning"],[this._trans.__("Info"),"Info"],[this._trans.__("Debug"),"Debug"]].map((e=>({label:e[0],value:e[1].toLowerCase()})))}))}}const S=w},87456:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(24800);var r=n(97913);var a=n(5893);var l=n(79010);var d=n(3579);var c=n(69704);var h=n(85072);var u=n.n(h);var p=n(97825);var m=n.n(p);var g=n(77659);var f=n.n(g);var v=n(55056);var _=n.n(v);var b=n(10540);var y=n.n(b);var w=n(41113);var C=n.n(w);var x=n(39817);var S={};S.styleTagTransform=C();S.setAttributes=_();S.insert=f().bind(null,"head");S.domAPI=m();S.insertStyleElement=y();var j=u()(x.A,S);const k=x.A&&x.A.locals?x.A.locals:undefined},42708:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ILoggerRegistry:()=>p,LogConsolePanel:()=>w,LogOutputModel:()=>r,Logger:()=>d,LoggerOutputAreaModel:()=>l,LoggerRegistry:()=>h,ScrollingWidget:()=>y});var i=n(99247);var s=n(95513);var o=n(2336);class r extends s.OutputModel{constructor(e){super(e);this.timestamp=new Date(e.value.timestamp);this.level=e.value.level}}class a extends i.OutputAreaModel.ContentFactory{createOutputModel(e){return new r(e)}}class l extends i.OutputAreaModel{constructor({maxLength:e,...t}){super(t);this.maxLength=e}add(e){super.add(e);this._applyMaxLength();return this.length}shouldCombine(e){const{value:t,lastModel:n}=e;const i=Math.trunc(n.timestamp.getTime()/1e3);const s=Math.trunc(t.timestamp/1e3);return i===s}get(e){return super.get(e)}get maxLength(){return this._maxLength}set maxLength(e){this._maxLength=e;this._applyMaxLength()}_applyMaxLength(){if(this.list.length>this._maxLength){this.list.removeRange(0,this.list.length-this._maxLength)}}}class d{constructor(e){var t;this._isDisposed=false;this._contentChanged=new o.Signal(this);this._stateChanged=new o.Signal(this);this._rendermime=null;this._version=0;this.source=e.source;this.outputAreaModel=new l({contentFactory:new a,maxLength:e.maxLength});this._level=(t=e.level)!==null&&t!==void 0?t:"warning"}get maxLength(){return this.outputAreaModel.maxLength}set maxLength(e){this.outputAreaModel.maxLength=e}get level(){return this._level}set level(e){const t=this._level;if(t===e){return}this._level=e;this._log({output:{output_type:"display_data",data:{"text/plain":`Log level set to ${e}`}},level:"metadata"});this._stateChanged.emit({name:"level",oldValue:t,newValue:e})}get length(){return this.outputAreaModel.length}get contentChanged(){return this._contentChanged}get stateChanged(){return this._stateChanged}get rendermime(){return this._rendermime}set rendermime(e){if(e!==this._rendermime){const t=this._rendermime;const n=this._rendermime=e;this._stateChanged.emit({name:"rendermime",oldValue:t,newValue:n})}}get version(){return this._version}log(e){if(c.LogLevel[e.level]"}},level:"metadata"})}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this.clear();this._rendermime=null;o.Signal.clearData(this)}_log(e){this._version++;this.outputAreaModel.add({...e.output,timestamp:Date.now(),level:e.level});this._contentChanged.emit("append")}}var c;(function(e){let t;(function(e){e[e["debug"]=0]="debug";e[e["info"]=1]="info";e[e["warning"]=2]="warning";e[e["error"]=3]="error";e[e["critical"]=4]="critical";e[e["metadata"]=5]="metadata"})(t=e.LogLevel||(e.LogLevel={}))})(c||(c={}));class h{constructor(e){var t;this._loggers=new Map;this._registryChanged=new o.Signal(this);this._isDisposed=false;this._defaultRendermime=e.defaultRendermime;this._maxLength=e.maxLength;this._defaultLogLevel=(t=e.defaultLogLevel)!==null&&t!==void 0?t:"warning"}getLogger(e){const t=this._loggers;let n=t.get(e);if(n){return n}n=new d({source:e,maxLength:this.maxLength,level:this.defaultLogLevel});n.rendermime=this._defaultRendermime;t.set(e,n);this._registryChanged.emit("append");return n}getLoggers(){return Array.from(this._loggers.values())}get registryChanged(){return this._registryChanged}get maxLength(){return this._maxLength}set maxLength(e){this._maxLength=e;this._loggers.forEach((t=>{t.maxLength=e}))}get defaultLogLevel(){return this._defaultLogLevel}set defaultLogLevel(e){this._defaultLogLevel=e}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this._loggers.forEach((e=>e.dispose()));o.Signal.clearData(this)}}var u=n(5592);const p=new u.Token("@jupyterlab/logconsole:ILoggerRegistry","A service providing a logger infrastructure.");var m=n(34881);var g=n(27518);function f(e){return e.length===0?e:e[0].toUpperCase()+e.slice(1)}class v extends g.Widget{constructor(){super();this._timestampNode=document.createElement("div");this.node.append(this._timestampNode)}set timestamp(e){this._timestamp=e;this._timestampNode.innerHTML=this._timestamp.toLocaleTimeString();this.update()}set level(e){this._level=e;this.node.dataset.logLevel=e;this.update()}update(){if(this._level!==undefined&&this._timestamp!==undefined){this.node.title=`${this._timestamp.toLocaleString()}; ${f(this._level)} level`}}}class _ extends i.OutputArea{createOutputItem(e){const t=super.createOutputItem(e);if(t===null){return null}const n=t.widgets[0];n.timestamp=e.timestamp;n.level=e.level;return t}onInputRequest(e,t){return}}class b extends i.OutputArea.ContentFactory{createOutputPrompt(){return new v}}class y extends g.Widget{constructor({content:e,...t}){super(t);this._observer=null;this.addClass("jp-Scrolling");const n=this.layout=new g.PanelLayout;n.addWidget(e);this._content=e;this._sentinel=document.createElement("div");this.node.appendChild(this._sentinel)}get content(){return this._content}onAfterAttach(e){super.onAfterAttach(e);requestAnimationFrame((()=>{this._sentinel.scrollIntoView();this._scrollHeight=this.node.scrollHeight}));if(typeof IntersectionObserver!=="undefined"){this._observer=new IntersectionObserver((e=>{this._handleScroll(e)}),{root:this.node,threshold:1});this._observer.observe(this._sentinel)}}onBeforeDetach(e){if(this._observer){this._observer.disconnect()}}onAfterShow(e){if(this._tracking){this._sentinel.scrollIntoView()}}_handleScroll([e]){if(e.isIntersecting){this._tracking=true}else if(this.isVisible){const e=this.node.scrollHeight;if(e===this._scrollHeight){this._tracking=false}else{this._sentinel.scrollIntoView();this._scrollHeight=e;this._tracking=true}}}}class w extends g.StackedPanel{constructor(e,t){super();this._outputAreas=new Map;this._source=null;this._sourceChanged=new o.Signal(this);this._sourceDisplayed=new o.Signal(this);this._loggersWatched=new Set;this.translator=t||m.nullTranslator;this._trans=this.translator.load("jupyterlab");this._loggerRegistry=e;this.addClass("jp-LogConsolePanel");e.registryChanged.connect(((e,t)=>{this._bindLoggerSignals()}),this);this._bindLoggerSignals();this._placeholder=new g.Widget;this._placeholder.addClass("jp-LogConsoleListPlaceholder");this.addWidget(this._placeholder)}get loggerRegistry(){return this._loggerRegistry}get logger(){if(this.source===null){return null}return this.loggerRegistry.getLogger(this.source)}get source(){return this._source}set source(e){if(e===this._source){return}const t=this._source;const n=this._source=e;this._showOutputFromSource(n);this._handlePlaceholder();this._sourceChanged.emit({oldValue:t,newValue:n,name:"source"})}get sourceVersion(){const e=this.source;return e!==null?this._loggerRegistry.getLogger(e).version:null}get sourceChanged(){return this._sourceChanged}get sourceDisplayed(){return this._sourceDisplayed}onAfterAttach(e){super.onAfterAttach(e);this._updateOutputAreas();this._showOutputFromSource(this._source);this._handlePlaceholder()}onAfterShow(e){super.onAfterShow(e);if(this.source!==null){this._sourceDisplayed.emit({source:this.source,version:this.sourceVersion})}}_bindLoggerSignals(){const e=this._loggerRegistry.getLoggers();for(const t of e){if(this._loggersWatched.has(t.source)){continue}t.contentChanged.connect(((e,t)=>{this._updateOutputAreas();this._handlePlaceholder()}),this);t.stateChanged.connect(((e,t)=>{if(t.name!=="rendermime"){return}const n=`source:${e.source}`;const i=this._outputAreas.get(n);if(i){if(t.newValue){i.rendermime=t.newValue}else{i.dispose()}}}),this);this._loggersWatched.add(t.source)}}_showOutputFromSource(e){const t=e===null?"null source":`source:${e}`;this._outputAreas.forEach(((e,n)=>{var i,s;if(e.id===t){(i=e.parent)===null||i===void 0?void 0:i.show();if(e.isVisible){this._sourceDisplayed.emit({source:this.source,version:this.sourceVersion})}}else{(s=e.parent)===null||s===void 0?void 0:s.hide()}}));const n=e===null?this._trans.__("Log Console"):this._trans.__("Log: %1",e);this.title.label=n;this.title.caption=n}_handlePlaceholder(){if(this.source===null){this._placeholder.node.textContent=this._trans.__("No source selected.");this._placeholder.show()}else if(this._loggerRegistry.getLogger(this.source).length===0){this._placeholder.node.textContent=this._trans.__("No log messages.");this._placeholder.show()}else{this._placeholder.hide();this._placeholder.node.textContent=""}}_updateOutputAreas(){const e=new Set;const t=this._loggerRegistry.getLoggers();for(const i of t){const t=i.source;const n=`source:${t}`;e.add(n);if(!this._outputAreas.has(n)){const e=new _({rendermime:i.rendermime,contentFactory:new b,model:i.outputAreaModel});e.id=n;const s=new y({content:e});this.addWidget(s);this._outputAreas.set(n,e);const o=e=>{if(this.source===t&&e.isVisible){this._sourceDisplayed.emit({source:this.source,version:this.sourceVersion})}};e.outputLengthChanged.connect(o,this);o(e)}}const n=this._outputAreas.keys();for(const i of n){if(!e.has(i)){const e=this._outputAreas.get(i);e===null||e===void 0?void 0:e.dispose();this._outputAreas.delete(i)}}}}},69704:(e,t,n)=>{"use strict";var i=n(10395);var s=n(5893);var o=n(1649);var r=n(85072);var a=n.n(r);var l=n(97825);var d=n.n(l);var c=n(77659);var h=n.n(c);var u=n(55056);var p=n.n(u);var m=n(10540);var g=n.n(m);var f=n(41113);var v=n.n(f);var _=n(42769);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.A,b);const w=_.A&&_.A.locals?_.A.locals:undefined},8113:(e,t,n)=>{"use strict";n.r(t);n.d(t,{RunningLanguageServer:()=>k,default:()=>E});var i=n(71681);var s=n(58719);var o=n(40065);var r=n(34881);var a=n(4073);var l=n(2336);var d=n(5592);var c=n(26568);var h=n(44914);var u=n.n(h);var p=n(38850);const m="languageServers";const g="configuration";function f(e){const{[g]:t,...n}=e.schema;const{[g]:i,serverName:s,...o}=e.settings;const[r,a]=(0,h.useState)(s);const l=t=>{e.updateSetting.invoke(e.serverHash,{serverName:t.target.value}).catch(console.error);a(t.target.value)};const m={};Object.entries(i).forEach((([e,t])=>{const n={property:e,type:typeof t,value:t};m[d.UUID.uuid4()]=n}));const[f,_]=(0,h.useState)(m);const b={};Object.entries(n).forEach((([e,t])=>{if(e in o){b[e]=o[e]}else{b[e]=t["default"]}}));const[y,w]=(0,h.useState)(b);const C=(t,n,i)=>{let s=n;if(i==="number"){s=parseFloat(n)}const o={...y,[t]:s};e.updateSetting.invoke(e.serverHash,o).catch(console.error);w(o)};const x=()=>{const t=d.UUID.uuid4();const n={...f,[t]:{property:"",type:"string",value:""}};const i={};Object.values(n).forEach((e=>{i[e.property]=e.value}));e.updateSetting.invoke(e.serverHash,{[g]:i}).catch(console.error);_(n)};const S=t=>{const n={};Object.entries(f).forEach((([i,s])=>{if(i!==t){n[i]=s}const o={};Object.values(n).forEach((e=>{o[e.property]=e.value}));e.updateSetting.invoke(e.serverHash,{[g]:o}).catch(console.error);_(n)}))};const j=(t,n)=>{if(t in f){const i={...f,[t]:n};const s={};Object.values(i).forEach((e=>{s[e.property]=e.value}));_(i);e.updateSetting.invoke(e.serverHash,{[g]:s}).catch(console.error)}};const k=new c.Debouncer(j);const I=(0,h.useRef)(p.DOMUtils.createDomID()+"-line-number-input");return u().createElement("div",{className:"array-item"},u().createElement("div",{className:"form-group "},u().createElement("div",{className:"jp-FormGroup-content"},u().createElement("div",{className:"jp-objectFieldWrapper"},u().createElement("fieldset",null,u().createElement("div",{className:"form-group small-field"},u().createElement("div",{className:"jp-modifiedIndicator jp-errorIndicator"}),u().createElement("div",{className:"jp-FormGroup-content"},u().createElement("label",{htmlFor:I.current,className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem"},e.trans.__("Server name:")),u().createElement("div",{className:"jp-inputFieldWrapper jp-FormGroup-contentItem"},u().createElement("input",{id:I.current,className:"form-control",type:"text",required:true,value:r,onChange:e=>{l(e)}})),u().createElement("div",{className:"validationErrors"},u().createElement("div",null,u().createElement("ul",{className:"error-detail bs-callout bs-callout-info"},u().createElement("li",{className:"text-danger"},e.trans.__("is a required property"))))))),Object.entries(n).map((([e,t],n)=>u().createElement("div",{key:`${n}-${e}`,className:"form-group small-field"},u().createElement("div",{className:"jp-FormGroup-content"},u().createElement("h3",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem"},t.title),u().createElement("div",{className:"jp-inputFieldWrapper jp-FormGroup-contentItem"},u().createElement("input",{className:"form-control",placeholder:"",type:t.type,value:y[e],onChange:n=>C(e,n.target.value,t.type)})),u().createElement("div",{className:"jp-FormGroup-description"},t.description),u().createElement("div",{className:"validationErrors"}))))),u().createElement("fieldset",null,u().createElement("legend",null,t["title"]),Object.entries(f).map((([e,t])=>u().createElement(v,{key:e,hash:e,property:t,removeProperty:S,setProperty:k}))),u().createElement("span",null,t["description"])))))),u().createElement("div",{className:"jp-ArrayOperations"},u().createElement("button",{className:"jp-mod-styled jp-mod-reject",onClick:x},e.trans.__("Add property")),u().createElement("button",{className:"jp-mod-styled jp-mod-warn jp-FormGroup-removeButton",onClick:()=>e.removeSetting(e.serverHash)},e.trans.__("Remove server"))))}function v(e){const[t,n]=(0,h.useState)({...e.property});const i={string:"text",number:"number",boolean:"checkbox"};const s=()=>{e.removeProperty(e.hash)};const o=i=>{const s={...t,property:i};e.setProperty.invoke(e.hash,s).catch(console.error);n(s)};const r=(i,s)=>{let o=i;if(s==="number"){o=parseFloat(i)}const r={...t,value:o};e.setProperty.invoke(e.hash,r).catch(console.error);n(r)};const l=i=>{let s;if(i==="boolean"){s=false}else if(i==="number"){s=0}else{s=""}const o={...t,type:i,value:s};n(o);e.setProperty.invoke(e.hash,o).catch(console.error)};return u().createElement("div",{key:e.hash,className:"form-group small-field"},u().createElement("div",{className:"jp-FormGroup-content jp-LSPExtension-FormGroup-content"},u().createElement("input",{className:"form-control",type:"text",required:true,placeholder:"Property name",value:t.property,onChange:e=>{o(e.target.value)}}),u().createElement("select",{className:"form-control",value:t.type,onChange:e=>l(e.target.value)},u().createElement("option",{value:"string"},"String"),u().createElement("option",{value:"number"},"Number"),u().createElement("option",{value:"boolean"},"Boolean")),u().createElement("input",{className:"form-control",type:i[t.type],required:false,placeholder:"Property value",value:t.type!=="boolean"?t.value:undefined,checked:t.type==="boolean"?t.value:undefined,onChange:t.type!=="boolean"?e=>r(e.target.value,t.type):e=>r(e.target.checked,t.type)}),u().createElement("button",{className:"jp-mod-minimal jp-Button",onClick:s},u().createElement(a.closeIcon.react,null))))}class _ extends u().Component{constructor(e){super(e);this.removeSetting=e=>{if(e in this.state.items){const t={};for(const n in this.state.items){if(n!==e){t[n]=this.state.items[n]}}this.setState((e=>({...e,items:t})),(()=>{this.saveServerSetting()}))}};this.updateSetting=(e,t)=>{if(e in this.state.items){const n={};for(const i in this.state.items){if(i===e){n[i]={...this.state.items[i],...t}}else{n[i]=this.state.items[i]}}this.setState((e=>({...e,items:n})),(()=>{this.saveServerSetting()}))}};this.addServerSetting=()=>{let e=0;let t="newKey";while(Object.values(this.state.items).map((e=>e.serverName)).includes(t)){e+=1;t=`newKey-${e}`}this.setState((e=>({...e,items:{...e.items,[d.UUID.uuid4()]:{...this._defaultSetting,serverName:t}}})),(()=>{this.saveServerSetting()}))};this.saveServerSetting=()=>{const e={};Object.values(this.state.items).forEach((t=>{const{serverName:n,...i}=t;e[n]=i}));this._setting.set(m,e).catch(console.error)};this._setting=e.formContext.settings;this._trans=e.translator.load("jupyterlab");const t=this._setting.schema["definitions"];this._defaultSetting=t["languageServer"]["default"];this._schema=t["languageServer"]["properties"];const n=e.schema.title;const i=e.schema.description;const s=e.formContext.settings;const o=s.get(m).composite;let r={};if(o){Object.entries(o).forEach((([e,t])=>{if(t){const n=d.UUID.uuid4();r[n]={serverName:e,...t}}}))}this.state={title:n,desc:i,items:r};this._debouncedUpdateSetting=new c.Debouncer(this.updateSetting.bind(this))}render(){return u().createElement("div",null,u().createElement("fieldset",null,u().createElement("legend",null,this.state.title),u().createElement("p",{className:"field-description"},this.state.desc),u().createElement("div",{className:"field field-array field-array-of-object"},Object.entries(this.state.items).map((([e,t],n)=>u().createElement(f,{key:`${n}-${e}`,trans:this._trans,removeSetting:this.removeSetting,updateSetting:this._debouncedUpdateSetting,serverHash:e,settings:t,schema:this._schema})))),u().createElement("div",null,u().createElement("button",{style:{margin:2},className:"jp-mod-styled jp-mod-reject",onClick:this.addServerSetting},this._trans.__("Add server")))))}}function b(e,t){return u().createElement(_,{...e,translator:t})}const y={activate:S,id:"@jupyterlab/lsp-extension:plugin",description:"Provides the language server connection manager.",requires:[r.ITranslator,i.IWidgetLSPAdapterTracker],optional:[s.IRunningSessionManagers],provides:i.ILSPDocumentConnectionManager,autoStart:true};const w={id:"@jupyterlab/lsp-extension:feature",description:"Provides the language server feature manager.",activate:()=>new i.FeatureManager,provides:i.ILSPFeatureManager,autoStart:true};const C={activate:j,id:"@jupyterlab/lsp-extension:settings",description:"Provides the language server settings.",requires:[i.ILSPDocumentConnectionManager,o.ISettingRegistry,r.ITranslator],optional:[a.IFormRendererRegistry],autoStart:true};const x={id:"@jupyterlab/lsp-extension:code-extractor-manager",autoStart:true,description:"Provides the code extractor manager.",provides:i.ILSPCodeExtractorsManager,activate:e=>{const t=new i.CodeExtractorsManager;const n=new i.TextForeignCodeExtractor({language:"markdown",isStandalone:false,file_extension:"md",cellType:["markdown"]});t.register(n,null);const s=new i.TextForeignCodeExtractor({language:"text",isStandalone:false,file_extension:"txt",cellType:["raw"]});t.register(s,null);return t}};function S(e,t,n,s){const o=new i.LanguageServerManager({settings:e.serviceManager.serverSettings});const r=new i.DocumentConnectionManager({languageServerManager:o,adapterTracker:n});if(s){I(s,r,t)}return r}function j(e,t,n,i,s){const o="languageServers";const r=t.languageServerManager;const a=e=>{const n=e.composite;const i=n.languageServers||{};if(n.activate==="on"&&!r.isEnabled){r.enable().catch(console.error)}else if(n.activate==="off"&&r.isEnabled){r.disable();return}t.initialConfigurations=i;t.updateConfiguration(i);t.updateServerConfigurations(i);t.updateLogging(n.logAllCommunication,n.setTrace)};n.transform(y.id,{fetch:e=>{const t=e.schema.properties;const n={};r.sessions.forEach(((e,t)=>{n[t]={rank:50,configuration:{}}}));t[o]["default"]=n;return e},compose:e=>{const t=e.schema.properties;const n=e.data.user;const i=t[o]["default"];const s=n[o];let r={...i};if(s){r={...r,...s}}const a={[o]:r};Object.entries(t).forEach((([e,t])=>{if(e!==o){if(e in n){a[e]=n[e]}else{a[e]=t.default}}}));e.data.composite=a;return e}});r.sessionsChanged.connect((async()=>{await n.load(y.id,true)}));n.load(y.id).then((e=>{a(e);e.changed.connect((()=>{a(e)}));r.disable()})).catch((e=>{console.error(e.message)}));if(s){const e={fieldRenderer:e=>b(e,i)};s.addRenderer(`${y.id}.${o}`,e)}}class k{constructor(e,t){this._connection=new WeakSet([e]);this._manager=t;this._serverIdentifier=e.serverIdentifier;this._serverLanguage=e.serverLanguage}open(){}icon(){return a.pythonIcon}label(){var e,t;return`${(e=this._serverIdentifier)!==null&&e!==void 0?e:""} (${(t=this._serverLanguage)!==null&&t!==void 0?t:""})`}shutdown(){for(const[e,t]of this._manager.connections.entries()){if(this._connection.has(t)){const{uri:t}=this._manager.documents.get(e);this._manager.unregisterDocument(t)}}this._manager.disconnect(this._serverIdentifier)}}function I(e,t,n){const i=n.load("jupyterlab");const s=new l.Signal(t);t.connected.connect((()=>s.emit(t)));t.disconnected.connect((()=>s.emit(t)));t.closed.connect((()=>s.emit(t)));t.documentsChanged.connect((()=>s.emit(t)));let o=[];e.add({name:i.__("Language servers"),supportsMultipleViews:false,running:()=>{const e=new Set([...t.connections.values()]);o=[...e].map((e=>new k(e,t)));return o},shutdownAll:()=>{o.forEach((e=>{e.shutdown()}))},refreshRunning:()=>void 0,runningChanged:s,shutdownLabel:i.__("Shut Down"),shutdownAllLabel:i.__("Shut Down All"),shutdownAllConfirmationText:i.__("Are you sure you want to permanently shut down all running language servers?")})}const T={id:"@jupyterlab/lsp-extension:tracker",description:"Provides the tracker of `WidgetLSPAdapter`.",autoStart:true,provides:i.IWidgetLSPAdapterTracker,activate:e=>new i.WidgetLSPAdapterTracker({shell:e.shell})};const E=[y,w,C,x,T]},4380:(e,t,n)=>{"use strict";var i=n(40662);var s=n(97913);var o=n(3579);var r=n(13137);var a=n(94780);var l=n(85072);var d=n.n(l);var c=n(97825);var h=n.n(c);var u=n(77659);var p=n.n(u);var m=n(55056);var g=n.n(m);var f=n(10540);var v=n.n(f);var _=n(41113);var b=n.n(_);var y=n(37347);var w={};w.styleTagTransform=b();w.setAttributes=g();w.insert=p().bind(null,"head");w.domAPI=h();w.insertStyleElement=v();var C=d()(y.A,w);const x=y.A&&y.A.locals?y.A.locals:undefined},15771:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CodeExtractorsManager:()=>F,DefaultMap:()=>k,DocumentConnectionManager:()=>B,EditorAdapter:()=>l,FeatureManager:()=>q,ILSPCodeExtractorsManager:()=>b,ILSPDocumentConnectionManager:()=>v,ILSPFeatureManager:()=>_,ILanguageServerManager:()=>f,IWidgetLSPAdapterTracker:()=>y,LanguageServerManager:()=>K,Method:()=>w,ProtocolCoordinates:()=>V,TextForeignCodeExtractor:()=>U,UpdateManager:()=>Q,VirtualDocument:()=>Y,VirtualDocumentInfo:()=>G,WidgetLSPAdapter:()=>h,WidgetLSPAdapterTracker:()=>p,collectDocuments:()=>X,expandDottedPaths:()=>S,expandPath:()=>j,isEqual:()=>z,isWithinRange:()=>J,offsetAtPosition:()=>H,positionAtOffset:()=>W,sleep:()=>C,untilReady:()=>x});var i=n(8394);var s=n.n(i);var o=n(38850);var r=n(34881);var a=n(2336);class l{constructor(e){this._widgetAdapter=e.widgetAdapter;this._extensions=e.extensions;void e.editor.ready().then((t=>{this._injectExtensions(e.editor)}))}dispose(){if(this.isDisposed){return}this.isDisposed=true;a.Signal.clearData(this)}_injectExtensions(e){const t=e.getEditor();if(!t||t.isDisposed){return}this._extensions.forEach((n=>{const i=n.factory({path:this._widgetAdapter.widget.context.path,editor:e,widgetAdapter:this._widgetAdapter,model:t.model,inline:true});if(!i){return}t.injectExtension(i.instance(t))}))}}const d=o.Dialog.createButton;const c={"text/x-rsrc":"r","text/x-r-source":"r","text/x-ipython":"python"};class h{constructor(e,t){this.widget=e;this.options=t;this._adapterConnected=new a.Signal(this);this._activeEditorChanged=new a.Signal(this);this._editorAdded=new a.Signal(this);this._editorRemoved=new a.Signal(this);this._disposed=new a.Signal(this);this._isDisposed=false;this._virtualDocument=null;this._connectionManager=t.connectionManager;this._isConnected=false;this._trans=(t.translator||r.nullTranslator).load("jupyterlab");this.widget.context.saveState.connect(this.onSaveState,this);this.connectionManager.closed.connect(this.onConnectionClosed,this);this.widget.disposed.connect(this.dispose,this);this._editorToAdapter=new WeakMap;this.editorAdded.connect(this._onEditorAdded,this);this.editorRemoved.connect(this._onEditorRemoved,this);this._connectionManager.languageServerManager.sessionsChanged.connect(this._onLspSessionOrFeatureChanged,this);this.options.featureManager.featureRegistered.connect(this._onLspSessionOrFeatureChanged,this)}get isDisposed(){return this._isDisposed}get hasMultipleEditors(){return this.editors.length>1}get widgetId(){return this.widget.id}get language(){if(c.hasOwnProperty(this.mimeType)){return c[this.mimeType]}else{let e=this.mimeType.split(";")[0];let[t,n]=e.split("/");if(t==="application"||t==="text"){if(n.startsWith("x-")){return n.substring(2)}else{return n}}else{return this.mimeType}}}get adapterConnected(){return this._adapterConnected}get activeEditorChanged(){return this._activeEditorChanged}get disposed(){return this._disposed}get editorAdded(){return this._editorAdded}get editorRemoved(){return this._editorRemoved}get isConnected(){return this._isConnected}get connectionManager(){return this._connectionManager}get trans(){return this._trans}get updateFinished(){return this._updateFinished}get virtualDocument(){return this._virtualDocument}onConnectionClosed(e,{virtualDocument:t}){if(t===this.virtualDocument){this.dispose()}}dispose(){if(this._isDisposed){return}this.editorAdded.disconnect(this._onEditorAdded,this);this.editorRemoved.disconnect(this._onEditorRemoved,this);this._connectionManager.languageServerManager.sessionsChanged.disconnect(this._onLspSessionOrFeatureChanged,this);this.options.featureManager.featureRegistered.disconnect(this._onLspSessionOrFeatureChanged,this);this._isDisposed=true;this.disconnect();this._virtualDocument=null;this._disposed.emit();a.Signal.clearData(this)}disconnect(){var e,t;const n=(e=this.virtualDocument)===null||e===void 0?void 0:e.uri;const{model:i}=this.widget.context;if(n){this.connectionManager.unregisterDocument(n)}i.contentChanged.disconnect(this._onContentChanged,this);for(let{ceEditor:s}of this.editors){this._editorRemoved.emit({editor:s})}(t=this.virtualDocument)===null||t===void 0?void 0:t.dispose()}updateDocuments(){if(this._isDisposed){console.warn("Cannot update documents: adapter disposed");return Promise.reject("Cannot update documents: adapter disposed")}return this.virtualDocument.updateManager.updateDocuments(this.editors)}documentChanged(e,t,n=false){if(this._isDisposed){console.warn("Cannot swap document: adapter disposed");return}let i=this.connectionManager.connections.get(e.uri);if(!(i===null||i===void 0?void 0:i.isReady)){console.log("Skipping document update signal: connection not ready");return}i.sendFullTextChange(e.value,e.documentInfo)}reloadConnection(){if(this.virtualDocument===null){return}this.disconnect();this.initVirtual();this.connectDocument(this.virtualDocument,true).catch(console.warn)}onSaveState(e,t){if(this.virtualDocument===null){return}if(t==="completed"){const e=[this.virtualDocument];for(let t of e){let n=this.connectionManager.connections.get(t.uri);if(!n){continue}n.sendSaved(t.documentInfo);for(let i of t.foreignDocuments.values()){e.push(i)}}}}async onConnected(e){let{virtualDocument:t}=e;this._adapterConnected.emit(e);this._isConnected=true;try{await this.updateDocuments()}catch(n){console.warn("Could not update documents",n);return}this.documentChanged(t,t,true);e.connection.serverNotifications["$/logTrace"].connect(((n,i)=>{console.log(e.connection.serverIdentifier,"trace",t.uri,i)}));e.connection.serverNotifications["window/logMessage"].connect(((e,t)=>{console.log(e.serverIdentifier+": "+t.message)}));e.connection.serverNotifications["window/showMessage"].connect(((e,t)=>{void(0,o.showDialog)({title:this.trans.__("Message from ")+e.serverIdentifier,body:t.message})}));e.connection.serverRequests["window/showMessageRequest"].setHandler((async t=>{const n=t.actions;const i=n?n.map((e=>d({label:e.title}))):[d({label:this.trans.__("Dismiss")})];const s=await(0,o.showDialog)({title:this.trans.__("Message from ")+e.connection.serverIdentifier,body:t.message,buttons:i});const r=i.indexOf(s.button);if(r===-1){return null}if(n){return n[r]}return null}))}async connectDocument(e,t=false){e.foreignDocumentOpened.connect(this.onForeignDocumentOpened,this);const n=await this._connect(e).catch(console.error);if(n&&n.connection){e.changed.connect(this.documentChanged,this);if(t){n.connection.sendOpenWhenReady(e.documentInfo)}}}initVirtual(){var e;(e=this._virtualDocument)===null||e===void 0?void 0:e.dispose();this._virtualDocument=this.createVirtualDocument();this._onLspSessionOrFeatureChanged()}async onForeignDocumentOpened(e,t){const{foreignDocument:n}=t;await this.connectDocument(n,true);n.foreignDocumentClosed.connect(this._onForeignDocumentClosed,this)}_onEditorAdded(e,t){const{editor:n}=t;const i=new l({editor:n,widgetAdapter:this,extensions:this.options.featureManager.extensionFactories()});this._editorToAdapter.set(n,i)}_onEditorRemoved(e,t){const{editor:n}=t;const i=this._editorToAdapter.get(n);i===null||i===void 0?void 0:i.dispose();this._editorToAdapter.delete(n)}_onForeignDocumentClosed(e,t){const{foreignDocument:n}=t;n.foreignDocumentClosed.disconnect(this._onForeignDocumentClosed,this);n.foreignDocumentOpened.disconnect(this.onForeignDocumentOpened,this);n.changed.disconnect(this.documentChanged,this)}async _connect(e){let t=e.language;let n={textDocument:{synchronization:{dynamicRegistration:true,willSave:false,didSave:true,willSaveWaitUntil:false}},workspace:{didChangeConfiguration:{dynamicRegistration:true}}};n=s()(n,this.options.featureManager.clientCapabilities());let i={capabilities:n,virtualDocument:e,language:t,hasLspSupportedFile:e.hasLspSupportedFile};let o=await this.connectionManager.connect(i);if(o){await this.onConnected({virtualDocument:e,connection:o});return{connection:o,virtualDocument:e}}else{return undefined}}async _onContentChanged(e){const t=this.updateDocuments();if(!t){console.warn("Could not update documents");return}this._updateFinished=t.catch(console.warn);await this.updateFinished}_shouldUpdateVirtualDocument(){const{languageServerManager:e}=this.connectionManager;return e.isEnabled&&this.options.featureManager.features.length>0}_onLspSessionOrFeatureChanged(){if(!this._virtualDocument){return}const{model:e}=this.widget.context;if(this._shouldUpdateVirtualDocument()){e.contentChanged.connect(this._onContentChanged,this)}else{e.contentChanged.disconnect(this._onContentChanged,this)}}}var u=n(93067);class p{constructor(e){this._isDisposed=false;this._current=null;this._adapters=new Set;this._adapterAdded=new a.Signal(this);this._adapterUpdated=new a.Signal(this);this._currentChanged=new a.Signal(this);const t=this._shell=e.shell;t.currentChanged.connect(((e,t)=>{let n=t.newValue;if(!n||!(n instanceof u.DocumentWidget)){return}const i=this.find((e=>e.widget===n));if(!i){return}this._current=i;this._currentChanged.emit(i)}))}get currentChanged(){return this._currentChanged}get currentAdapter(){return this._current}get size(){return this._adapters.size}get adapterAdded(){return this._adapterAdded}get adapterUpdated(){return this._adapterUpdated}add(e){if(e.isDisposed){const t="A disposed object cannot be added.";console.warn(t,e);throw new Error(t)}if(this._adapters.has(e)){const t="This object already exists in the pool.";console.warn(t,e);throw new Error(t)}this._adapters.add(e);this._adapterAdded.emit(e);e.disposed.connect((()=>{this._adapters.delete(e);if(e===this._current){this._current=null;this._currentChanged.emit(this._current)}}),this);const t=this._shell.activeWidget;if(!t||!(t instanceof u.DocumentWidget)){this._current=e;this._currentChanged.emit(e)}}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this._adapters.clear();a.Signal.clearData(this)}find(e){const t=this._adapters.values();for(const n of t){if(e(n)){return n}}return undefined}forEach(e){this._adapters.forEach(e)}filter(e){const t=[];this.forEach((n=>{if(e(n)){t.push(n)}}));return t}has(e){return this._adapters.has(e)}}var m=n(40959);var g=n(5592);var f;(function(e){e.URL_NS="lsp"})(f||(f={}));const v=new g.Token("@jupyterlab/lsp:ILSPDocumentConnectionManager","Provides the virtual documents and language server connections service.");const _=new g.Token("@jupyterlab/lsp:ILSPFeatureManager","Provides the language server feature manager. This token is required to register new client capabilities.");const b=new g.Token("@jupyterlab/lsp:ILSPCodeExtractorsManager","Provides the code extractor manager. This token is required in your extension to register code extractor allowing the creation of multiple virtual document from an opened document.");const y=new g.Token("@jupyterlab/lsp:IWidgetLSPAdapterTracker","Provides the WidgetLSPAdapter tracker. This token is required in your extension to track WidgetLSPAdapters.");var w;(function(e){let t;(function(e){e["PUBLISH_DIAGNOSTICS"]="textDocument/publishDiagnostics";e["SHOW_MESSAGE"]="window/showMessage";e["LOG_TRACE"]="$/logTrace";e["LOG_MESSAGE"]="window/logMessage"})(t=e.ServerNotification||(e.ServerNotification={}));let n;(function(e){e["DID_CHANGE"]="textDocument/didChange";e["DID_CHANGE_CONFIGURATION"]="workspace/didChangeConfiguration";e["DID_OPEN"]="textDocument/didOpen";e["DID_SAVE"]="textDocument/didSave";e["INITIALIZED"]="initialized";e["SET_TRACE"]="$/setTrace"})(n=e.ClientNotification||(e.ClientNotification={}));let i;(function(e){e["REGISTER_CAPABILITY"]="client/registerCapability";e["SHOW_MESSAGE_REQUEST"]="window/showMessageRequest";e["UNREGISTER_CAPABILITY"]="client/unregisterCapability";e["WORKSPACE_CONFIGURATION"]="workspace/configuration"})(i=e.ServerRequest||(e.ServerRequest={}));let s;(function(e){e["CODE_ACTION"]="textDocument/codeAction";e["COMPLETION"]="textDocument/completion";e["COMPLETION_ITEM_RESOLVE"]="completionItem/resolve";e["DEFINITION"]="textDocument/definition";e["DOCUMENT_COLOR"]="textDocument/documentColor";e["DOCUMENT_HIGHLIGHT"]="textDocument/documentHighlight";e["DOCUMENT_SYMBOL"]="textDocument/documentSymbol";e["HOVER"]="textDocument/hover";e["IMPLEMENTATION"]="textDocument/implementation";e["INITIALIZE"]="initialize";e["REFERENCES"]="textDocument/references";e["RENAME"]="textDocument/rename";e["SIGNATURE_HELP"]="textDocument/signatureHelp";e["TYPE_DEFINITION"]="textDocument/typeDefinition";e["LINKED_EDITING_RANGE"]="textDocument/linkedEditingRange";e["INLINE_VALUE"]="textDocument/inlineValue";e["INLAY_HINT"]="textDocument/inlayHint";e["WORKSPACE_SYMBOL"]="workspace/symbol";e["WORKSPACE_SYMBOL_RESOLVE"]="workspaceSymbol/resolve";e["FORMATTING"]="textDocument/formatting";e["RANGE_FORMATTING"]="textDocument/rangeFormatting"})(s=e.ClientRequest||(e.ClientRequest={}))})(w||(w={}));async function C(e){return new Promise((t=>{setTimeout((()=>{t()}),e)}))}function x(e,t=35,n=50,i=e=>e){return(async()=>{let s=0;while(e()!==true){s+=1;if(t!==-1&&s>t){throw Error("Too many retrials")}n=i(n);await C(n)}return e})()}function S(e){const t=[];for(let n in e){const i=j(n.split("."),e[n]);t.push(i)}return s()({},...t)}const j=(e,t)=>{const n=Object.create(null);let i=n;e.forEach(((n,s)=>{i[n]=Object.create(null);if(s===e.length-1){i[n]=t}else{i=i[n]}}));return n};class k extends Map{constructor(e,t){super(t);this.defaultFactory=e}get(e){return this.getOrCreate(e)}getOrCreate(e,...t){if(this.has(e)){return super.get(e)}else{let n=this.defaultFactory(e,...t);this.set(e,n);return n}}}function I(e,t){const n=JSON.parse(JSON.stringify(e));const{method:i,registerOptions:s}=t;const o=i.substring(13)+"Provider";if(o){if(!s){n[o]=true}else{n[o]=JSON.parse(JSON.stringify(s))}}else{console.warn("Could not register server capability.",t);return null}return n}function T(e,t){const n=JSON.parse(JSON.stringify(e));const{method:i}=t;const s=i.substring(13)+"Provider";delete n[s];return n}var E=n(96092);class M{constructor(e){this.openedUris=new Map;this._isConnected=false;this._isInitialized=false;this._disposables=[];this._disposed=new a.Signal(this);this._isDisposed=false;this._rootUri=e.rootUri}get isConnected(){return this._isConnected}get isInitialized(){return this._isInitialized}get isReady(){return this._isConnected&&this._isInitialized}get disposed(){return this._disposed}get isDisposed(){return this._isDisposed}connect(e){this.socket=e;(0,E.listen)({webSocket:this.socket,logger:new E.ConsoleLogger,onConnection:e=>{e.listen();this._isConnected=true;this.connection=e;this.sendInitialize();const t=this.connection.onRequest("client/registerCapability",(e=>{e.registrations.forEach((e=>{try{this.serverCapabilities=I(this.serverCapabilities,e)}catch(t){console.error(t)}}))}));this._disposables.push(t);const n=this.connection.onRequest("client/unregisterCapability",(e=>{e.unregisterations.forEach((e=>{this.serverCapabilities=T(this.serverCapabilities,e)}))}));this._disposables.push(n);const i=this.connection.onClose((()=>{this._isConnected=false}));this._disposables.push(i)}})}close(){if(this.connection){this.connection.dispose()}this.openedUris.clear();this.socket.close()}sendInitialize(){if(!this._isConnected){return}this.openedUris.clear();const e=this.initializeParams();this.connection.sendRequest("initialize",e).then((e=>{this.onServerInitialized(e)}),(e=>{console.warn("LSP websocket connection initialization failure",e)}))}sendOpen(e){const t={textDocument:{uri:e.uri,languageId:e.languageId,text:e.text,version:e.version}};this.connection.sendNotification("textDocument/didOpen",t).catch(console.error);this.openedUris.set(e.uri,true);this.sendChange(e)}sendChange(e){if(!this.isReady){return}if(!this.openedUris.get(e.uri)){this.sendOpen(e);return}const t={textDocument:{uri:e.uri,version:e.version},contentChanges:[{text:e.text}]};this.connection.sendNotification("textDocument/didChange",t).catch(console.error);e.version++}sendSaved(e){if(!this.isReady){return}const t={textDocument:{uri:e.uri,version:e.version},text:e.text};this.connection.sendNotification("textDocument/didSave",t).catch(console.error)}sendConfigurationChange(e){if(!this.isReady){return}this.connection.sendNotification("workspace/didChangeConfiguration",e).catch(console.error)}dispose(){if(this._isDisposed){return}this._isDisposed=true;this._disposables.forEach((e=>{e.dispose()}));this._disposed.emit();a.Signal.clearData(this)}onServerInitialized(e){this._isInitialized=true;this.serverCapabilities=e.capabilities;this.connection.sendNotification("initialized",{}).catch(console.error);this.connection.sendNotification("workspace/didChangeConfiguration",{settings:{}}).catch(console.error)}initializeParams(){return{capabilities:{},processId:null,rootUri:this._rootUri,workspaceFolders:null}}}class D{constructor(e,t,n){this.connection=e;this.method=t;this.emitter=n}request(e){this.emitter.log(R.clientRequested,{method:this.method,message:e});return this.connection.sendRequest(this.method,e).then((t=>{this.emitter.log(R.resultForClient,{method:this.method,message:e});return t}))}}class A{constructor(e,t,n){this.connection=e;this.method=t;this.emitter=n;this.connection.onRequest(t,this._handle.bind(this));this._handler=null}setHandler(e){this._handler=e}clearHandler(){this._handler=null}_handle(e){this.emitter.log(R.serverRequested,{method:this.method,message:e});if(!this._handler){return new Promise((()=>undefined))}return this._handler(e,this.emitter).then((e=>{this.emitter.log(R.responseForServer,{method:this.method,message:e});return e}))}}const P={TEXT_DOCUMENT_SYNC:"textDocumentSync",COMPLETION:"completionProvider",HOVER:"hoverProvider",SIGNATURE_HELP:"signatureHelpProvider",DECLARATION:"declarationProvider",DEFINITION:"definitionProvider",TYPE_DEFINITION:"typeDefinitionProvider",IMPLEMENTATION:"implementationProvider",REFERENCES:"referencesProvider",DOCUMENT_HIGHLIGHT:"documentHighlightProvider",DOCUMENT_SYMBOL:"documentSymbolProvider",CODE_ACTION:"codeActionProvider",CODE_LENS:"codeLensProvider",DOCUMENT_LINK:"documentLinkProvider",COLOR:"colorProvider",DOCUMENT_FORMATTING:"documentFormattingProvider",DOCUMENT_RANGE_FORMATTING:"documentRangeFormattingProvider",DOCUMENT_ON_TYPE_FORMATTING:"documentOnTypeFormattingProvider",RENAME:"renameProvider",FOLDING_RANGE:"foldingRangeProvider",EXECUTE_COMMAND:"executeCommandProvider",SELECTION_RANGE:"selectionRangeProvider",WORKSPACE_SYMBOL:"workspaceSymbolProvider",WORKSPACE:"workspace"};function L(e,t){const n={};for(let i of Object.values(e)){n[i]=t(i)}return n}var R;(function(e){e[e["clientNotifiedServer"]=0]="clientNotifiedServer";e[e["serverNotifiedClient"]=1]="serverNotifiedClient";e[e["serverRequested"]=2]="serverRequested";e[e["clientRequested"]=3]="clientRequested";e[e["resultForClient"]=4]="resultForClient";e[e["responseForServer"]=5]="responseForServer"})(R||(R={}));class N extends M{constructor(e){super(e);this._closingManually=false;this._closeSignal=new a.Signal(this);this._errorSignal=new a.Signal(this);this._serverInitialized=new a.Signal(this);this._options=e;this.logAllCommunication=false;this.serverIdentifier=e.serverIdentifier;this.serverLanguage=e.languageId;this.documentsToOpen=[];this.clientNotifications=this.constructNotificationHandlers(w.ClientNotification);this.serverNotifications=this.constructNotificationHandlers(w.ServerNotification)}get closeSignal(){return this._closeSignal}get errorSignal(){return this._errorSignal}get serverInitialized(){return this._serverInitialized}dispose(){if(this.isDisposed){return}if(this.serverRequests){Object.values(this.serverRequests).forEach((e=>e.clearHandler()))}this.close();super.dispose()}log(e,t){if(this.logAllCommunication){console.log(e,t)}}sendOpenWhenReady(e){if(this.isReady){this.sendOpen(e)}else{this.documentsToOpen.push(e)}}sendSelectiveChange(e,t){this._sendChange([e],t)}sendFullTextChange(e,t){this._sendChange([{text:e}],t)}provides(e){return!!(this.serverCapabilities&&this.serverCapabilities[e])}close(){try{this._closingManually=true;super.close()}catch(e){this._closingManually=false}}connect(e){super.connect(e);x((()=>this.isConnected),-1).then((()=>{const e=this.connection.onClose((()=>{this._isConnected=false;this._closeSignal.emit(this._closingManually)}));this._disposables.push(e)})).catch((()=>{console.error("Could not connect onClose signal")}))}async getCompletionResolve(e){if(!this.isReady){return}return this.connection.sendRequest("completionItem/resolve",e)}constructNotificationHandlers(e){const t=()=>new a.Signal(this);return L(e,t)}constructClientRequestHandler(e){return L(e,(e=>new D(this.connection,e,this)))}constructServerRequestHandler(e){return L(e,(e=>new A(this.connection,e,this)))}initializeParams(){return{...super.initializeParams(),capabilities:this._options.capabilities,initializationOptions:null,processId:null,workspaceFolders:null}}onServerInitialized(e){this.afterInitialized();super.onServerInitialized(e);while(this.documentsToOpen.length){this.sendOpen(this.documentsToOpen.pop())}this._serverInitialized.emit(this.serverCapabilities)}afterInitialized(){const e=this.connection.onError((e=>this._errorSignal.emit(e)));this._disposables.push(e);for(const t of Object.values(w.ServerNotification)){const e=this.serverNotifications[t];const n=this.connection.onNotification(t,(n=>{this.log(R.serverNotifiedClient,{method:t,message:n});e.emit(n)}));this._disposables.push(n)}for(const t of Object.values(w.ClientNotification)){const e=this.clientNotifications[t];e.connect(((e,n)=>{this.log(R.clientNotifiedServer,{method:t,message:n});this.connection.sendNotification(t,n).catch(console.error)}))}this.clientRequests=this.constructClientRequestHandler(w.ClientRequest);this.serverRequests=this.constructServerRequestHandler(w.ServerRequest);this.serverRequests["client/registerCapability"].setHandler((async e=>{e.registrations.forEach((e=>{try{const t=I(this.serverCapabilities,e);if(t===null){console.error(`Failed to register server capability: ${e}`);return}this.serverCapabilities=t}catch(t){console.error(t)}}))}));this.serverRequests["client/unregisterCapability"].setHandler((async e=>{e.unregisterations.forEach((e=>{this.serverCapabilities=T(this.serverCapabilities,e)}))}));this.serverRequests["workspace/configuration"].setHandler((async e=>e.items.map((e=>null))))}_sendChange(e,t){if(!this.isReady){return}if(t.uri.length===0){return}if(!this.openedUris.get(t.uri)){this.sendOpen(t)}const n={textDocument:{uri:t.uri,version:t.version},contentChanges:e};this.connection.sendNotification("textDocument/didChange",n).catch(console.error);t.version++}}class B{constructor(e){this.onNewConnection=e=>{const t=(t,n)=>{console.error(n);let i=n.length&&n.length>=1?n[0]:new Error;if(i.message.indexOf("code = 1005")!==-1){console.error(`Connection failed for ${e}`);this._forEachDocumentOfConnection(e,(t=>{console.error("disconnecting "+t.uri);this._closed.emit({connection:e,virtualDocument:t});this._ignoredLanguages.add(t.language);console.error(`Cancelling further attempts to connect ${t.uri} and other documents for this language (no support from the server)`)}))}else if(i.message.indexOf("code = 1006")!==-1){console.error("Connection closed by the server")}else{console.error("Connection error:",n)}};e.errorSignal.connect(t);const n=()=>{this._forEachDocumentOfConnection(e,(t=>{this._initialized.emit({connection:e,virtualDocument:t})}));this.updateServerConfigurations(this.initialConfigurations)};e.serverInitialized.connect(n);const i=(t,n)=>{if(!n){console.error("Connection unexpectedly disconnected")}else{console.log("Connection closed");this._forEachDocumentOfConnection(e,(t=>{this._closed.emit({connection:e,virtualDocument:t})}))}};e.closeSignal.connect(i)};this._initialized=new a.Signal(this);this._connected=new a.Signal(this);this._disconnected=new a.Signal(this);this._closed=new a.Signal(this);this._documentsChanged=new a.Signal(this);this.connections=new Map;this.documents=new Map;this.adapters=new Map;this._ignoredLanguages=new Set;this.languageServerManager=e.languageServerManager;O.setLanguageServerManager(e.languageServerManager);e.adapterTracker.adapterAdded.connect(((e,t)=>{const n=t.widget.context.path;this.registerAdapter(n,t)}))}get initialized(){return this._initialized}get connected(){return this._connected}get disconnected(){return this._disconnected}get closed(){return this._closed}get documentsChanged(){return this._documentsChanged}get ready(){return O.getLanguageServerManager().ready}connectDocumentSignals(e){e.foreignDocumentOpened.connect(this.onForeignDocumentOpened,this);e.foreignDocumentClosed.connect(this.onForeignDocumentClosed,this);this.documents.set(e.uri,e);this._documentsChanged.emit(this.documents)}disconnectDocumentSignals(e,t=true){e.foreignDocumentOpened.disconnect(this.onForeignDocumentOpened,this);e.foreignDocumentClosed.disconnect(this.onForeignDocumentClosed,this);this.documents.delete(e.uri);for(const n of e.foreignDocuments.values()){this.disconnectDocumentSignals(n,false)}if(t){this._documentsChanged.emit(this.documents)}}onForeignDocumentOpened(e,t){}onForeignDocumentClosed(e,t){const{foreignDocument:n}=t;this.unregisterDocument(n.uri,false);this.disconnectDocumentSignals(n)}registerAdapter(e,t){this.adapters.set(e,t);t.widget.context.pathChanged.connect(((n,i)=>{this.adapters.delete(e);this.adapters.set(i,t)}));t.disposed.connect((()=>{if(t.virtualDocument){this.documents.delete(t.virtualDocument.uri)}this.adapters.delete(e)}))}updateConfiguration(e){this.languageServerManager.setConfiguration(e)}updateServerConfigurations(e){let t;for(t in e){if(!e.hasOwnProperty(t)){continue}const n=e[t];const i=S(n.configuration||{});const s={settings:i};O.updateServerConfiguration(t,s)}}async retryToConnect(e,t,n=-1){let{virtualDocument:i}=e;if(this._ignoredLanguages.has(i.language)){return}let s=t*1e3;let o=false;while(n!==0&&!o){await this.connect(e).then((()=>{o=true})).catch((e=>{console.warn(e)}));console.log("will attempt to re-connect in "+s/1e3+" seconds");await C(s);s=s<5*1e3?s+500:s}}disconnect(e){O.disconnect(e)}async connect(e,t=30,n=5){let i=await this._connectSocket(e);let{virtualDocument:s}=e;if(!i){return}if(!i.isReady){try{await x((()=>i.isReady),Math.round(t*1e3/150),150)}catch(o){console.log(`Connection to ${s.uri} timed out after ${t} seconds, will continue retrying for another ${n} minutes`);try{await x((()=>i.isReady),60*n,1e3)}catch(r){console.log(`Connection to ${s.uri} timed out again after ${n} minutes, giving up`);return}}}this._connected.emit({connection:i,virtualDocument:s});return i}unregisterDocument(e,t=true){const n=this.connections.get(e);if(n){this.connections.delete(e);const i=new Set(this.connections.values());if(!i.has(n)){this.disconnect(n.serverIdentifier);n.dispose()}if(t){this._documentsChanged.emit(this.documents)}}}updateLogging(e,t){for(const n of this.connections.values()){n.logAllCommunication=e;if(t!==null){n.clientNotifications["$/setTrace"].emit({value:t})}}}async _connectSocket(e){let{language:t,capabilities:n,virtualDocument:i}=e;this.connectDocumentSignals(i);const s=B.solveUris(i,t);const o=this.languageServerManager.getMatchingServers({language:t});const r=o.length===0?null:o[0];if(!s){return}const a=await O.connection(t,r,s,this.onNewConnection,n);this.connections.set(i.uri,a);return a}_forEachDocumentOfConnection(e,t){for(const[n,i]of this.connections.entries()){if(e!==i){continue}t(this.documents.get(n))}}}(function(e){function t(e,t){var n;const i=O.getLanguageServerManager();const s=i.settings.wsUrl;const o=m.PageConfig.getOption("rootUri");const r=m.PageConfig.getOption("virtualDocumentsUri");const a={language:t};const l=i.getMatchingServers(a);const d=l.length===0?null:l[0];if(d===null){return}const c=i.getMatchingSpecs(a);const h=c.get(d);if(!h){console.warn(`Specification not available for server ${d}`)}const u=(n=h===null||h===void 0?void 0:h.requires_documents_on_disk)!==null&&n!==void 0?n:true;const p=!u;const g=e.hasLspSupportedFile||p?o:r;let f=m.URLExt.join(g,e.uri);if(!f.startsWith("file:///")&&f.startsWith("file://")){f=f.replace("file://","file:///");if(f.startsWith("file:///users/")&&g.startsWith("file:///Users/")){f=f.replace("file:///users/","file:///Users/")}}return{base:g,document:f,server:m.URLExt.join("ws://jupyter-lsp",t),socket:m.URLExt.join(s,"lsp","ws",d)}}e.solveUris=t})(B||(B={}));var O;(function(e){const t=new Map;let n;function i(){return n}e.getLanguageServerManager=i;function s(e){n=e}e.setLanguageServerManager=s;function o(e){const n=t.get(e);if(n){n.close();t.delete(e)}}e.disconnect=o;async function r(n,i,s,o,r){let a=t.get(i);if(!a){const{settings:a}=e.getLanguageServerManager();const l=new a.WebSocket(s.socket);const d=new N({languageId:n,serverUri:s.server,rootUri:s.base,serverIdentifier:i,capabilities:r});t.set(i,d);d.connect(l);o(d)}a=t.get(i);return a}e.connection=r;function a(e,n){const i=t.get(e);if(i){i.sendConfigurationChange(n)}}e.updateServerConfiguration=a})(O||(O={}));class F{constructor(){this._extractorMap=new Map;this._extractorMapAnyLanguage=new Map}getExtractors(e,t){var n,i;if(t){const i=this._extractorMap.get(e);if(!i){return[]}return(n=i.get(t))!==null&&n!==void 0?n:[]}else{return(i=this._extractorMapAnyLanguage.get(e))!==null&&i!==void 0?i:[]}}register(e,t){const n=e.cellType;if(t){n.forEach((n=>{if(!this._extractorMap.has(n)){this._extractorMap.set(n,new Map)}const i=this._extractorMap.get(n);const s=i.get(t);if(!s){i.set(t,[e])}else{s.push(e)}}))}else{n.forEach((t=>{if(!this._extractorMapAnyLanguage.has(t)){this._extractorMapAnyLanguage.set(t,[])}this._extractorMapAnyLanguage.get(t).push(e)}))}}}function z(e,t){return t&&e.line===t.line&&e.ch===t.ch}function W(e,t){let n=0;let i=0;for(let s of t){if(s.length+1<=e){e-=s.length+1;n+=1}else{i=e;break}}return{line:n,column:i}}function H(e,t,n=false){let i=n?0:1;let s=0;for(let o=0;oo){s+=n.length+i}else{s+=e.column;break}}return s}var V;(function(e){function t(e,t){const{line:n,character:i}=e;return n>=t.start.line&&n<=t.end.line&&(n!=t.start.line||i>t.start.character)&&(n!=t.end.line||i<=t.end.character)}e.isWithinRange=t})(V||(V={}));class U{constructor(e){this.language=e.language;this.standalone=e.isStandalone;this.fileExtension=e.file_extension;this.cellType=e.cellType}hasForeignCode(e,t){return this.cellType.includes(t)}extractForeignCode(e){let t=e.split("\n");let n=new Array;let i=e;let s=W(0,t);let o=W(i.length,t);n.push({hostCode:"",foreignCode:i,range:{start:s,end:o},virtualShift:null});return n}}class q{constructor(){this.features=[];this._featureRegistered=new a.Signal(this)}get featureRegistered(){return this._featureRegistered}register(e){if(this.features.some((t=>t.id===e.id))){console.warn(`Feature with id ${e.id} is already registered, skipping.`)}else{this.features.push(e);this._featureRegistered.emit(e)}}clientCapabilities(){let e={};for(const t of this.features){if(!t.capabilities){continue}e=s()(e,t.capabilities)}return e}extensionFactories(){const e=[];for(const t of this.features){if(!t.extensionFactory){continue}e.push(t.extensionFactory)}return e}}var $=n(49278);class K{constructor(e){this._sessions=new Map;this._specs=new Map;this._warningsEmitted=new Set;this._ready=new g.PromiseDelegate;this._sessionsChanged=new a.Signal(this);this._isDisposed=false;this._enabled=true;this._settings=e.settings||$.ServerConnection.makeSettings();this._baseUrlOverride=e.baseUrl;this._retries=e.retries||2;this._retriesInterval=e.retriesInterval||1e4;this._statusCode=-1;this._configuration={};this.fetchSessions().catch((e=>console.log(e)))}get isEnabled(){return this._enabled}get isDisposed(){return this._isDisposed}get settings(){return this._settings}get specs(){return this._specs}get statusUrl(){return m.URLExt.join(this._baseUrl,f.URL_NS,"status")}get sessionsChanged(){return this._sessionsChanged}get sessions(){return this._sessions}get ready(){return this._ready.promise}get statusCode(){return this._statusCode}async enable(){this._enabled=true;await this.fetchSessions()}disable(){this._enabled=false;this._sessions=new Map;this._sessionsChanged.emit(void 0)}dispose(){if(this._isDisposed){return}this._isDisposed=true;a.Signal.clearData(this)}setConfiguration(e){this._configuration=e}getMatchingServers(e){if(!e.language){console.error("Cannot match server by language: language not available; ensure that kernel and specs provide language and MIME type");return[]}const t=[];for(const[n,i]of this._sessions.entries()){if(this.isMatchingSpec(e,i.spec)){t.push(n)}}return t.sort(this.compareRanks.bind(this))}getMatchingSpecs(e){const t=new Map;for(const[n,i]of this._specs.entries()){if(this.isMatchingSpec(e,i)){t.set(n,i)}}return t}async fetchSessions(){if(!this._enabled){return}let e=await $.ServerConnection.makeRequest(this.statusUrl,{method:"GET"},this._settings);this._statusCode=e.status;if(!e.ok){if(this._retries>0){this._retries-=1;setTimeout(this.fetchSessions.bind(this),this._retriesInterval)}else{this._ready.resolve(undefined);console.log("Missing jupyter_lsp server extension, skipping.")}return}let t;try{const n=await e.json();t=n.sessions;try{this.version=n.version;this._specs=new Map(Object.entries(n.specs))}catch(i){console.warn(i)}}catch(i){console.warn(i);this._ready.resolve(undefined);return}for(let s of Object.keys(t)){let e=s;if(this._sessions.has(e)){Object.assign(this._sessions.get(e)||{},t[s])}else{this._sessions.set(e,t[s])}}const n=this._sessions.keys();for(const s in n){if(!t[s]){let e=s;this._sessions.delete(e)}}this._sessionsChanged.emit(void 0);this._ready.resolve(undefined)}isMatchingSpec(e,t){const n=e.language.toLocaleLowerCase();return t.languages.some((e=>e.toLocaleLowerCase()==n))}warnOnce(e){if(!this._warningsEmitted.has(e)){this._warningsEmitted.add(e);console.warn(e)}}compareRanks(e,t){var n,i,s,o;const r=50;const a=(i=(n=this._configuration[e])===null||n===void 0?void 0:n.rank)!==null&&i!==void 0?i:r;const l=(o=(s=this._configuration[t])===null||s===void 0?void 0:s.rank)!==null&&o!==void 0?o:r;if(a==l){this.warnOnce(`Two matching servers: ${e} and ${t} have the same rank; choose which one to use by changing the rank in Advanced Settings Editor`);return e.localeCompare(t)}return l-a}get _baseUrl(){return this._baseUrlOverride||this._settings.baseUrl}}function J(e,t){if(t.start.line===t.end.line){return e.line===t.start.line&&e.column>=t.start.column&&e.column<=t.end.column}return e.line===t.start.line&&e.column>=t.start.column&&e.linet.start.line&&e.column<=t.end.column&&e.line===t.end.line||e.line>t.start.line&&e.linenew Array));this._remainingLifetime=6;this.documentInfo=new G(this);this.updateManager=new Q(this);this.updateManager.updateBegan.connect(this._updateBeganSlot,this);this.updateManager.blockAdded.connect(this._blockAddedSlot,this);this.updateManager.updateFinished.connect(this._updateFinishedSlot,this);this.clear()}static ceToCm(e){return{line:e.line,ch:e.column}}get isDisposed(){return this._isDisposed}get foreignDocumentClosed(){return this._foreignDocumentClosed}get foreignDocumentOpened(){return this._foreignDocumentOpened}get changed(){return this._changed}get virtualId(){return this.standalone?this.instanceId+"("+this.language+")":this.language}get ancestry(){if(!this.parent){return[this]}return this.parent.ancestry.concat([this])}get idPath(){if(!this.parent){return this.virtualId}return this.parent.idPath+"-"+this.virtualId}get uri(){const e=encodeURI(this.path);if(!this.parent){return e}return e+"."+this.idPath+"."+this.fileExtension}get value(){let e="\n".repeat(this.blankLinesBetweenCells);return this.lineBlocks.join(e)}get lastLine(){const e=this.lineBlocks[this.lineBlocks.length-1].split("\n");return e[e.length-1]}get root(){return this.parent?this.parent.root:this}dispose(){if(this._isDisposed){return}this._isDisposed=true;this.parent=null;this.closeAllForeignDocuments();this.updateManager.dispose();this.foreignDocuments.clear();this.sourceLines.clear();this.unusedStandaloneDocuments.clear();this.virtualLines.clear();this.documentInfo=null;this.lineBlocks=null;a.Signal.clearData(this)}clear(){this.unusedStandaloneDocuments.clear();for(let e of this.foreignDocuments.values()){e.clear();if(e.standalone){let t=this.unusedStandaloneDocuments.get(e.language);t.push(e)}}this.virtualLines.clear();this.sourceLines.clear();this.lastVirtualLine=0;this.lastSourceLine=0;this.lineBlocks=[]}documentAtSourcePosition(e){let t=this.sourceLines.get(e.line);if(!t){return this}let n={line:t.editorLine,column:e.ch};for(let[i,{virtualDocument:s}]of t.foreignDocumentsMap){if(J(n,i)){let e={line:n.line-i.start.line,ch:n.column-i.start.column};return s.documentAtSourcePosition(e)}}return this}isWithinForeign(e){let t=this.sourceLines.get(e.line);let n={line:t.editorLine,column:e.ch};for(let[i]of t.foreignDocumentsMap){if(J(n,i)){return true}}return false}transformFromEditorToRoot(e,t){if(!this._editorToSourceLine.has(e)){console.log("Editor not found in _editorToSourceLine map");return null}let n=this._editorToSourceLine.get(e);return{...t,line:t.line+n}}virtualPositionAtDocument(e){let t=this.sourceLines.get(e.line);if(t==null){throw new Error("Source line not mapped to virtual position")}let n=t.virtualLine;let i={line:t.editorLine,column:e.ch};for(let[s,o]of t.foreignDocumentsMap){const{virtualLine:e,virtualDocument:t}=o;if(J(i,s)){let n={line:i.line-s.start.line,ch:i.column-s.start.column};if(t.isWithinForeign(n)){return this.virtualPositionAtDocument(n)}else{n.line+=e;return n}}}return{ch:e.ch,line:n}}appendCodeBlock(e,t={line:0,column:0},n){let i=e.value;let s=e.ceEditor;if(this.isDisposed){console.warn("Cannot append code block: document disposed");return}let o=i.split("\n");let{lines:r,foreignDocumentsMap:a}=this.prepareCodeBlock(e,t);for(let l=0;l!e.has(t))));for(let s of i.values()){s.remainingLifetime-=1;if(s.remainingLifetime<=0){s.dispose();const e=t.get(s);for(const t of e){this.foreignDocuments.delete(t)}}}}transformSourceToEditor(e){let t=this.sourceLines.get(e.line);let n=t.editorLine;let i=t.editorShift;return{ch:e.ch+(n===0?i.column:0),line:n+i.line}}transformVirtualToEditor(e){let t=this.transformVirtualToSource(e);if(t==null){return null}return this.transformSourceToEditor(t)}transformVirtualToSource(e){const t=this.virtualLines.get(e.line).sourceLine;if(t==null){return null}return{ch:e.ch,line:t}}transformVirtualToRoot(e){var t;const n=(t=this.virtualLines.get(e.line))===null||t===void 0?void 0:t.editor;const i=this.transformVirtualToEditor(e);if(!n||!i){return null}return this.root.transformFromEditorToRoot(n,i)}getEditorAtVirtualLine(e){let t=e.line;if(!this.virtualLines.has(t)){t-=1}return this.virtualLines.get(t).editor}getEditorAtSourceLine(e){return this.sourceLines.get(e.line).editor}maybeEmitChanged(){if(this.value!==this.previousValue){this._changed.emit(this)}this.previousValue=this.value;for(let e of this.foreignDocuments.values()){e.maybeEmitChanged()}}get remainingLifetime(){if(!this.parent){return Infinity}return this._remainingLifetime}set remainingLifetime(e){if(this.parent){this._remainingLifetime=e}}_chooseForeignDocument(e){let t;let n=this.foreignDocuments.has(e.language);if(!e.standalone&&n){t=this.foreignDocuments.get(e.language)}else{let n=this.unusedStandaloneDocuments.get(e.language);if(e.standalone&&n.length>0){t=n.pop()}else{t=this.openForeign(e.language,e.standalone,e.fileExtension)}}return t}openForeign(e,t,n){let i=new this.constructor({...this.options,parent:this,standalone:t,fileExtension:n,language:e});const s={foreignDocument:i,parentHost:this};this._foreignDocumentOpened.emit(s);i.foreignDocumentClosed.connect(this.forwardClosedSignal,this);i.foreignDocumentOpened.connect(this.forwardOpenedSignal,this);this.foreignDocuments.set(i.virtualId,i);return i}forwardClosedSignal(e,t){this._foreignDocumentClosed.emit(t)}forwardOpenedSignal(e,t){this._foreignDocumentOpened.emit(t)}_updateBeganSlot(){this._editorToSourceLineNew=new Map}_blockAddedSlot(e,t){this._editorToSourceLineNew.set(t.block.ceEditor,t.virtualDocument.lastSourceLine)}_updateFinishedSlot(){this._editorToSourceLine=this._editorToSourceLineNew}}Y.instancesCount=0;function X(e){let t=new Set;t.add(e);for(let n of e.foreignDocuments.values()){let e=X(n);e.forEach(t.add,t)}return t}class Q{constructor(e){this.virtualDocument=e;this._isDisposed=false;this._updateDone=new Promise((e=>{e()}));this._isUpdateInProgress=false;this._updateLock=false;this._blockAdded=new a.Signal(this);this._documentUpdated=new a.Signal(this);this._updateBegan=new a.Signal(this);this._updateFinished=new a.Signal(this);this.documentUpdated.connect(this._onUpdated,this)}get updateDone(){return this._updateDone}get isDisposed(){return this._isDisposed}get blockAdded(){return this._blockAdded}get documentUpdated(){return this._documentUpdated}get updateBegan(){return this._updateBegan}get updateFinished(){return this._updateFinished}dispose(){if(this._isDisposed){return}this._isDisposed=true;this.documentUpdated.disconnect(this._onUpdated);a.Signal.clearData(this)}async withUpdateLock(e){await x((()=>this._canUpdate()),12,10).then((()=>{try{this._updateLock=true;e()}finally{this._updateLock=false}}))}async updateDocuments(e){let t=new Promise(((t,n)=>{x((()=>this._canUpdate()),10,5).then((()=>{if(this.isDisposed||!this.virtualDocument){t()}try{this._isUpdateInProgress=true;this._updateBegan.emit(e);this.virtualDocument.clear();for(let t of e){this._blockAdded.emit({block:t,virtualDocument:this.virtualDocument});this.virtualDocument.appendCodeBlock(t)}this._updateFinished.emit(e);if(this.virtualDocument){this._documentUpdated.emit(this.virtualDocument);this.virtualDocument.maybeEmitChanged()}t()}catch(i){console.warn("Documents update failed:",i);n(i)}finally{this._isUpdateInProgress=false}})).catch(console.error)}));this._updateDone=t;return t}_onUpdated(e,t){try{t.closeExpiredDocuments()}catch(n){console.warn("Failed to close expired documents")}}_canUpdate(){return!this.isDisposed&&!this._isUpdateInProgress&&!this._updateLock}}},13137:(e,t,n)=>{"use strict";var i=n(10395);var s=n(97913);var o=n(17325);var r=n(23359);var a=n(79010)},72825:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CommandIDs:()=>w,default:()=>M});var i=n(88617);var s=n(38850);var o=n(40959);var r=n(89433);var a=n(49278);var l=n(40065);var d=n(34881);var c=n(4073);var h=n(34236);var u=n(5592);var p=n(27518);var m=n(11927);var g=n(44577);const f="@jupyterlab/mainmenu-extension:recents";var v;(function(e){e.openRecent="recentmenu:open-recent";e.reopenLast="recentmenu:reopen-last";e.clearRecents="docmanager:clear-recents"})(v||(v={}));class _ extends p.Menu{constructor(e){super(e);this._manager=e.manager;this._showDirectories=e.showDirectories;this.updateItems();this._manager.changed.connect(this.updateItems,this)}async _validateRecentlyOpened(){return void Promise.all(this._manager.recentlyOpened.map((e=>this._manager.validate(e))))}onBeforeAttach(e){const t=new u.PromiseDelegate;setTimeout((()=>{t.reject("Recents validation timed out.")}),550);Promise.race([t.promise,this._validateRecentlyOpened()]).then((()=>{this.update()})).catch((()=>{}));super.onBeforeAttach(e)}updateItems(){this.clearItems();this.addItem({command:v.reopenLast});this.addItem({type:"separator"});let e=true;let t=false;this._manager.recentlyOpened.sort(((e,t)=>{if(e.contentType===t.contentType){return 0}else{return e.contentType!=="directory"?1:-1}})).forEach((n=>{const i=n.contentType==="directory";if(i){if(!this._showDirectories){return}t=true}else if(e&&t){e=false;this.addItem({type:"separator"})}this.addItem({command:v.openRecent,args:{recent:n}})}));this.addItem({type:"separator"});this.addItem({command:v.clearRecents})}}const b={id:f,description:"Adds sub-menu for opening recent documents to the File section of the main menu.",autoStart:true,requires:[m.IRecentsManager,r.IMainMenu],optional:[g.IFileBrowserCommands,d.ITranslator],activate:(e,t,n,i,r)=>{const{commands:a}=e;const l=(r!==null&&r!==void 0?r:d.nullTranslator).load("jupyterlab");const c=i!==null;const h=async e=>{const n=await t.validate(e);if(!n){await(0,s.showErrorMessage)(l.__("Could Not Open Recent"),l.__("%1 is no longer valid and will be removed from the list",e.path))}return n};a.addCommand(v.openRecent,{execute:async e=>{const t=e.recent;const n=t.path===""?"/":t.path;const s=await h(t);if(!s){return}if(i&&t.contentType==="directory"){await a.execute(i.openPath,{path:n})}else{await a.execute("docmanager:open",{path:n,factory:t.factory})}},label:e=>{const t=e.recent;if(t){return o.PathExt.joinWithLeadingSlash(t.root,t.path)}else{return l.__("Open a Recent Document (given by `recent` argument)")}},isEnabled:e=>t.recentlyOpened.includes(e.recent),describedBy:{args:{type:"object",properties:{recent:{type:"object",description:l.__("Recent document to open")}}}}});e.commands.addCommand(v.reopenLast,{execute:async()=>{const e=t.recentlyClosed[0];if(!e){return}const n=await h(e);if(!n){return}await a.execute("docmanager:open",{path:e.path,factory:e.factory});t.removeRecent(e,"closed")},label:()=>{const e=t.recentlyClosed[0];return e?l.__("Reopen %1",e.path):l.__("Reopen Closed Document")},isEnabled:()=>t.recentlyClosed.length!==0,caption:l.__("Reopen recently closed file or notebook."),describedBy:{args:{type:"object",properties:{}}}});const u=new _({commands:a,manager:t,showDirectories:c});u.title.label=l.__("Open Recent");n.fileMenu.addItem({type:"submenu",submenu:u,rank:1})}};const y="@jupyterlab/mainmenu-extension:plugin";var w;(function(e){e.openEdit="editmenu:open";e.undo="editmenu:undo";e.redo="editmenu:redo";e.clearCurrent="editmenu:clear-current";e.clearAll="editmenu:clear-all";e.find="editmenu:find";e.goToLine="editmenu:go-to-line";e.openFile="filemenu:open";e.closeAndCleanup="filemenu:close-and-cleanup";e.createConsole="filemenu:create-console";e.shutdown="filemenu:shutdown";e.logout="filemenu:logout";e.openKernel="kernelmenu:open";e.interruptKernel="kernelmenu:interrupt";e.reconnectToKernel="kernelmenu:reconnect-to-kernel";e.restartKernel="kernelmenu:restart";e.restartKernelAndClear="kernelmenu:restart-and-clear";e.changeKernel="kernelmenu:change";e.shutdownKernel="kernelmenu:shutdown";e.shutdownAllKernels="kernelmenu:shutdownAll";e.openView="viewmenu:open";e.wordWrap="viewmenu:word-wrap";e.lineNumbering="viewmenu:line-numbering";e.minimap="viewmenu:show-minimap";e.matchBrackets="viewmenu:match-brackets";e.openRun="runmenu:open";e.run="runmenu:run";e.runAll="runmenu:run-all";e.restartAndRunAll="runmenu:restart-and-run-all";e.runAbove="runmenu:run-above";e.runBelow="runmenu:run-below";e.openTabs="tabsmenu:open";e.activateById="tabsmenu:activate-by-id";e.activatePreviouslyUsedTab="tabsmenu:activate-previously-used-tab";e.openSettings="settingsmenu:open";e.openHelp="helpmenu:open";e.getKernel="helpmenu:get-kernel";e.openFirst="mainmenu:open-first"})(w||(w={}));const C={id:y,description:"Adds and provides the application main menu.",requires:[i.IRouter,d.ITranslator],optional:[s.ICommandPalette,i.ILabShell,l.ISettingRegistry],provides:r.IMainMenu,activate:async(e,t,n,i,s,a)=>{const{commands:l}=e;const d=n.load("jupyterlab");const c=new r.MainMenu(l);c.id="jp-MainMenu";c.addClass("jp-scrollbar-tiny");if(a){await D.loadSettingsMenu(a,(e=>{c.addMenu(e,false,{rank:e.rank})}),(e=>r.MainMenu.generateMenu(l,e,d)),n);c.update()}const h=o.PageConfig.getOption("quitButton").toLowerCase();c.fileMenu.quitEntry=h==="true";x(e,c.editMenu,d);S(e,c.fileMenu,t,d);j(e,c.kernelMenu,d);I(e,c.runMenu,d);k(e,c.viewMenu,d);E(e,c.helpMenu,d);if(s){T(e,c.tabsMenu,s,d)}const u=e=>{c.activeMenu=e;c.openActiveMenu()};l.addCommand(w.openEdit,{label:d.__("Open Edit Menu"),execute:()=>u(c.editMenu),describedBy:{args:{type:"object",properties:{}}}});l.addCommand(w.openFile,{label:d.__("Open File Menu"),execute:()=>u(c.fileMenu),describedBy:{args:{type:"object",properties:{}}}});l.addCommand(w.openKernel,{label:d.__("Open Kernel Menu"),execute:()=>u(c.kernelMenu),describedBy:{args:{type:"object",properties:{}}}});l.addCommand(w.openRun,{label:d.__("Open Run Menu"),execute:()=>u(c.runMenu),describedBy:{args:{type:"object",properties:{}}}});l.addCommand(w.openView,{label:d.__("Open View Menu"),execute:()=>u(c.viewMenu),describedBy:{args:{type:"object",properties:{}}}});l.addCommand(w.openSettings,{label:d.__("Open Settings Menu"),execute:()=>u(c.settingsMenu),describedBy:{args:{type:"object",properties:{}}}});l.addCommand(w.openTabs,{label:d.__("Open Tabs Menu"),execute:()=>u(c.tabsMenu),describedBy:{args:{type:"object",properties:{}}}});l.addCommand(w.openHelp,{label:d.__("Open Help Menu"),execute:()=>u(c.helpMenu),describedBy:{args:{type:"object",properties:{}}}});l.addCommand(w.openFirst,{label:d.__("Open First Menu"),execute:()=>{c.activeIndex=0;c.openActiveMenu()},describedBy:{args:{type:"object",properties:{}}}});if(i){i.addItem({command:w.shutdown,category:d.__("Main Area")});i.addItem({command:w.logout,category:d.__("Main Area")});i.addItem({command:w.shutdownAllKernels,category:d.__("Kernel Operations")});i.addItem({command:w.activatePreviouslyUsedTab,category:d.__("Main Area")})}e.shell.add(c,"menu",{rank:100});return c}};function x(e,t,n){const{commands:s,shell:o}=e;(0,i.addSemanticCommand)({id:w.undo,commands:s,shell:o,semanticCommands:t.undoers.undo,default:{label:n.__("Undo")},overrides:{describedBy:{args:{type:"object",properties:{}}}},trans:n});(0,i.addSemanticCommand)({id:w.redo,commands:s,shell:o,semanticCommands:t.undoers.redo,default:{label:n.__("Redo")},overrides:{describedBy:{args:{type:"object",properties:{}}}},trans:n});(0,i.addSemanticCommand)({id:w.clearCurrent,commands:s,shell:o,semanticCommands:t.clearers.clearCurrent,default:{label:n.__("Clear")},overrides:{describedBy:{args:{type:"object",properties:{}}}},trans:n});(0,i.addSemanticCommand)({id:w.clearAll,commands:s,shell:o,semanticCommands:t.clearers.clearAll,default:{label:n.__("Clear All")},overrides:{describedBy:{args:{type:"object",properties:{}}}},trans:n});(0,i.addSemanticCommand)({id:w.goToLine,commands:s,shell:o,semanticCommands:t.goToLiners,default:{label:n.__("Go to Line…")},overrides:{describedBy:{args:{type:"object",properties:{}}}},trans:n})}function S(e,t,n,r){const{commands:l,shell:d}=e;(0,i.addSemanticCommand)({id:w.closeAndCleanup,commands:l,shell:d,semanticCommands:t.closeAndCleaners,default:{execute:"application:close",label:r.__("Close and Shut Down"),isEnabled:true},overrides:{isEnabled:()=>!!e.shell.currentWidget&&!!e.shell.currentWidget.title.closable,describedBy:{args:{type:"object",properties:{}}}},trans:r});(0,i.addSemanticCommand)({id:w.createConsole,commands:l,shell:d,semanticCommands:t.consoleCreators,default:{label:r.__("New Console for Activity")},overrides:{describedBy:{args:{type:"object",properties:{}}}},trans:r});l.addCommand(w.shutdown,{label:r.__("Shut Down"),caption:r.__("Shut down %1",e.name),isVisible:()=>t.quitEntry,isEnabled:()=>t.quitEntry,describedBy:{args:{type:"object",properties:{}}},execute:()=>(0,s.showDialog)({title:r.__("Shutdown confirmation"),body:r.__("Please confirm you want to shut down %1.",e.name),buttons:[s.Dialog.cancelButton(),s.Dialog.warnButton({label:r.__("Shut Down")})]}).then((async t=>{if(t.button.accept){const t=e.serviceManager.serverSettings;const i=o.URLExt.join(t.baseUrl,"api/shutdown");try{await Promise.all([e.serviceManager.sessions.shutdownAll(),e.serviceManager.terminals.shutdownAll()])}catch(n){console.log(`Failed to shutdown sessions and terminals: ${n}`)}return a.ServerConnection.makeRequest(i,{method:"POST"},t).then((t=>{if(t.ok){const t=document.createElement("div");const n=document.createElement("p");n.textContent=r.__("You have shut down the Jupyter server. You can now close this tab.");const i=document.createElement("p");i.textContent=r.__("To use %1 again, you will need to relaunch it.",e.name);t.appendChild(n);t.appendChild(i);void(0,s.showDialog)({title:r.__("Server stopped"),body:new p.Widget({node:t}),buttons:[]});window.close()}else{throw new a.ServerConnection.ResponseError(t)}})).catch((e=>{throw new a.ServerConnection.NetworkError(e)}))}}))});l.addCommand(w.logout,{label:r.__("Log Out"),caption:r.__("Log out of %1",e.name),isVisible:()=>t.quitEntry,isEnabled:()=>t.quitEntry,describedBy:{args:{type:"object",properties:{}}},execute:()=>{n.navigate("/logout",{hard:true})}})}function j(e,t,n){const{commands:o,shell:r}=e;(0,i.addSemanticCommand)({id:w.interruptKernel,commands:o,shell:r,semanticCommands:t.kernelUsers.interruptKernel,default:{label:n.__("Interrupt Kernel"),caption:n.__("Interrupt the kernel")},overrides:{icon:e=>e.toolbar?c.stopIcon:undefined,describedBy:{args:{type:"object",properties:{}}}},trans:n});(0,i.addSemanticCommand)({id:w.reconnectToKernel,commands:o,shell:r,semanticCommands:t.kernelUsers.reconnectToKernel,default:{label:n.__("Reconnect to Kernel")},overrides:{describedBy:{args:{type:"object",properties:{}}}},trans:n});(0,i.addSemanticCommand)({id:w.restartKernel,commands:o,shell:r,semanticCommands:t.kernelUsers.restartKernel,default:{label:n.__("Restart Kernel…"),caption:n.__("Restart the kernel")},overrides:{icon:e=>e.toolbar?c.refreshIcon:undefined,describedBy:{args:{type:"object",properties:{}}}},trans:n});(0,i.addSemanticCommand)({id:w.restartKernelAndClear,commands:o,shell:r,semanticCommands:[t.kernelUsers.restartKernel,t.kernelUsers.clearWidget],default:{label:n.__("Restart Kernel and Clear…")},overrides:{describedBy:{args:{type:"object",properties:{}}}},trans:n});(0,i.addSemanticCommand)({id:w.changeKernel,commands:o,shell:r,semanticCommands:t.kernelUsers.changeKernel,default:{label:n.__("Change Kernel…")},overrides:{describedBy:{args:{type:"object",properties:{}}}},trans:n});(0,i.addSemanticCommand)({id:w.shutdownKernel,commands:o,shell:r,semanticCommands:t.kernelUsers.shutdownKernel,default:{label:n.__("Shut Down Kernel"),caption:n.__("Shut down kernel")},overrides:{describedBy:{args:{type:"object",properties:{}}}},trans:n});o.addCommand(w.shutdownAllKernels,{label:n.__("Shut Down All Kernels…"),isEnabled:()=>!e.serviceManager.sessions.running().next().done,describedBy:{args:{type:"object",properties:{}}},execute:()=>(0,s.showDialog)({title:n.__("Shut Down All?"),body:n._n("Are you sure you want to permanently shut down the running kernel?","Are you sure you want to permanently shut down the %1 running kernels?",e.serviceManager.kernels.runningCount),buttons:[s.Dialog.cancelButton(),s.Dialog.warnButton({label:n.__("Shut Down All")})]}).then((t=>{if(t.button.accept){return e.serviceManager.sessions.shutdownAll()}}))})}function k(e,t,n){const{commands:s,shell:o}=e;(0,i.addSemanticCommand)({id:w.lineNumbering,commands:s,shell:o,semanticCommands:t.editorViewers.toggleLineNumbers,default:{label:n.__("Show Line Numbers")},overrides:{describedBy:{args:{type:"object",properties:{}}}},trans:n});(0,i.addSemanticCommand)({id:w.minimap,commands:s,shell:o,semanticCommands:t.editorViewers.toggleMinimap,default:{label:n.__("Show Minimap")},overrides:{describedBy:{args:{type:"object",properties:{}}}},trans:n});(0,i.addSemanticCommand)({id:w.matchBrackets,commands:s,shell:o,semanticCommands:t.editorViewers.toggleMatchBrackets,default:{label:n.__("Match Brackets")},overrides:{describedBy:{args:{type:"object",properties:{}}}},trans:n});(0,i.addSemanticCommand)({id:w.wordWrap,commands:s,shell:o,semanticCommands:t.editorViewers.toggleWordWrap,default:{label:n.__("Wrap Words")},overrides:{describedBy:{args:{type:"object",properties:{}}}},trans:n})}function I(e,t,n){const{commands:s,shell:o}=e;(0,i.addSemanticCommand)({id:w.run,commands:s,shell:o,semanticCommands:t.codeRunners.run,default:{label:n.__("Run Selected"),caption:n.__("Run Selected")},overrides:{icon:e=>e.toolbar?c.runIcon:undefined,describedBy:{args:{type:"object",properties:{}}}},trans:n});(0,i.addSemanticCommand)({id:w.runAll,commands:s,shell:o,semanticCommands:t.codeRunners.runAll,default:{label:n.__("Run All"),caption:n.__("Run All")},overrides:{describedBy:{args:{type:"object",properties:{}}}},trans:n});(0,i.addSemanticCommand)({id:w.restartAndRunAll,commands:s,shell:o,semanticCommands:[t.codeRunners.restart,t.codeRunners.runAll],default:{label:n.__("Restart Kernel and Run All"),caption:n.__("Restart Kernel and Run All")},overrides:{icon:e=>e.toolbar?c.fastForwardIcon:undefined,describedBy:{args:{type:"object",properties:{}}}},trans:n})}function T(e,t,n,i){const s=e.commands;const o=[];let r;s.addCommand(w.activateById,{label:t=>{if(t.id===undefined){return i.__("Activate a widget by its `id`.")}const n=t["id"]||"";const s=(0,h.find)(e.shell.widgets("main"),(e=>e.id===n));return s&&s.title.label||""},isToggled:t=>{const n=t["id"]||"";return!!e.shell.currentWidget&&e.shell.currentWidget.id===n},describedBy:{args:{type:"object",properties:{id:{type:"string",description:i.__("The widget id to activate")}},required:["id"]}},execute:t=>e.shell.activateById(t["id"]||"")});let a="";s.addCommand(w.activatePreviouslyUsedTab,{label:i.__("Activate Previously Used Tab"),isEnabled:()=>!!a,describedBy:{args:{type:"object",properties:{}}},execute:()=>s.execute(w.activateById,{id:a})});if(n){void e.restored.then((()=>{const i=()=>{if(r&&!r.isDisposed){r.dispose()}o.length=0;let n=false;for(const t of e.shell.widgets("main")){if(t.id===a){n=true}o.push({command:w.activateById,args:{id:t.id}})}r=t.addGroup(o,1);a=n?a:""};i();n.layoutModified.connect((()=>{i()}));n.currentChanged.connect(((e,t)=>{const n=t.oldValue;if(!n){return}a=n.id}))}))}}function E(e,t,n){const{commands:s,shell:o}=e;(0,i.addSemanticCommand)({id:w.getKernel,commands:s,shell:o,semanticCommands:t.getKernel,default:{label:n.__("Get Kernel"),isVisible:false},overrides:{describedBy:{args:{type:"object",properties:{}}}},trans:n})}const M=[C,b];var D;(function(e){async function t(e){const t=await(0,s.showDialog)({title:e.__("Information"),body:e.__("Menu customization has changed. You will need to reload JupyterLab to see the changes."),buttons:[s.Dialog.cancelButton(),s.Dialog.okButton({label:e.__("Reload")})]});if(t.button.accept){location.reload()}}async function n(e,n,i,o){var r;const a=o.load("jupyterlab");let d=null;let c={};function h(t){var n,i;c={};const s=Object.keys(e.plugins).map((t=>{var n,i;const s=(i=(n=e.plugins[t].schema["jupyter.lab.menus"])===null||n===void 0?void 0:n.main)!==null&&i!==void 0?i:[];c[t]=s;return s})).concat([(i=(n=t["jupyter.lab.menus"])===null||n===void 0?void 0:n.main)!==null&&i!==void 0?i:[]]).reduceRight(((e,t)=>l.SettingRegistry.reconcileMenus(e,t,true)),t.properties.menus.default);t.properties.menus.default=l.SettingRegistry.reconcileMenus(s,t.properties.menus.default,true).sort(((e,t)=>{var n,i;return((n=e.rank)!==null&&n!==void 0?n:Infinity)-((i=t.rank)!==null&&i!==void 0?i:Infinity)}))}e.transform(y,{compose:e=>{var t,n,i,s;if(!d){d=u.JSONExt.deepCopy(e.schema);h(d)}const o=(i=(n=(t=d.properties)===null||t===void 0?void 0:t.menus)===null||n===void 0?void 0:n.default)!==null&&i!==void 0?i:[];const r={...e.data.user,menus:(s=e.data.user.menus)!==null&&s!==void 0?s:[]};const a={...e.data.composite,menus:l.SettingRegistry.reconcileMenus(o,r.menus)};e.data={composite:a,user:r};return e},fetch:e=>{if(!d){d=u.JSONExt.deepCopy(e.schema);h(d)}return{data:e.data,id:e.id,raw:e.raw,schema:d,version:e.version}}});const p=await e.load(y);const m=(r=u.JSONExt.deepCopy(p.composite.menus))!==null&&r!==void 0?r:[];const g=new Array;s.MenuFactory.createMenus(m.filter((e=>!e.disabled)).map((e=>{var t;return{...e,items:l.SettingRegistry.filterDisabledItems((t=e.items)!==null&&t!==void 0?t:[])}})),i).forEach((e=>{g.push(e);n(e)}));p.changed.connect((()=>{var e;const n=(e=p.composite.menus)!==null&&e!==void 0?e:[];if(!u.JSONExt.deepEqual(m,n)){void t(a)}}));e.pluginChanged.connect((async(o,r)=>{var d,h,p;if(r!==y){const o=(d=c[r])!==null&&d!==void 0?d:[];const f=(p=(h=e.plugins[r].schema["jupyter.lab.menus"])===null||h===void 0?void 0:h.main)!==null&&p!==void 0?p:[];if(!u.JSONExt.deepEqual(o,f)){if(c[r]){await t(a)}else{c[r]=u.JSONExt.deepCopy(f);const e=l.SettingRegistry.reconcileMenus(f,m,false,false).filter((e=>!e.disabled)).map((e=>{var t;return{...e,items:l.SettingRegistry.filterDisabledItems((t=e.items)!==null&&t!==void 0?t:[])}}));s.MenuFactory.updateMenus(g,e,i).forEach((e=>{n(e)}))}}}}))}e.loadSettingsMenu=n})(D||(D={}))},61132:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(3579);var a=n(41603);var l=n(39063);var d=n(67996)},43744:(e,t,n)=>{"use strict";n.r(t);n.d(t,{EditMenu:()=>a,FileMenu:()=>l,HelpMenu:()=>d,IMainMenu:()=>_,KernelMenu:()=>c,MainMenu:()=>g,RunMenu:()=>h,SettingsMenu:()=>u,TabsMenu:()=>p,ViewMenu:()=>m});var i=n(4073);var s=n(34236);var o=n(27518);var r=n(38850);class a extends i.RankedMenu{constructor(e){super(e);this.undoers={redo:new r.SemanticCommand,undo:new r.SemanticCommand};this.clearers={clearAll:new r.SemanticCommand,clearCurrent:new r.SemanticCommand};this.goToLiners=new r.SemanticCommand}}class l extends i.RankedMenu{constructor(e){super(e);this.quitEntry=false;this.closeAndCleaners=new r.SemanticCommand;this.consoleCreators=new r.SemanticCommand}get newMenu(){var e,t;if(!this._newMenu){this._newMenu=(t=(e=(0,s.find)(this.items,(e=>{var t;return((t=e.submenu)===null||t===void 0?void 0:t.id)==="jp-mainmenu-file-new"})))===null||e===void 0?void 0:e.submenu)!==null&&t!==void 0?t:new i.RankedMenu({commands:this.commands})}return this._newMenu}dispose(){var e;(e=this._newMenu)===null||e===void 0?void 0:e.dispose();super.dispose()}}class d extends i.RankedMenu{constructor(e){super(e);this.getKernel=new r.SemanticCommand}}class c extends i.RankedMenu{constructor(e){super(e);this.kernelUsers={changeKernel:new r.SemanticCommand,clearWidget:new r.SemanticCommand,interruptKernel:new r.SemanticCommand,reconnectToKernel:new r.SemanticCommand,restartKernel:new r.SemanticCommand,shutdownKernel:new r.SemanticCommand}}}class h extends i.RankedMenu{constructor(e){super(e);this.codeRunners={restart:new r.SemanticCommand,run:new r.SemanticCommand,runAll:new r.SemanticCommand}}}class u extends i.RankedMenu{constructor(e){super(e)}}class p extends i.RankedMenu{constructor(e){super(e)}}class m extends i.RankedMenu{constructor(e){super(e);this.editorViewers={toggleLineNumbers:new r.SemanticCommand,toggleMinimap:new r.SemanticCommand,toggleMatchBrackets:new r.SemanticCommand,toggleWordWrap:new r.SemanticCommand}}}class g extends o.MenuBar{constructor(e){let t={forceItemsPosition:{forceX:false,forceY:true}};super(t);this._items=[];this._commands=e}get editMenu(){if(!this._editMenu){this._editMenu=new a({commands:this._commands,rank:2,renderer:i.MenuSvg.defaultRenderer})}return this._editMenu}get fileMenu(){if(!this._fileMenu){this._fileMenu=new l({commands:this._commands,rank:1,renderer:i.MenuSvg.defaultRenderer})}return this._fileMenu}get helpMenu(){if(!this._helpMenu){this._helpMenu=new d({commands:this._commands,rank:1e3,renderer:i.MenuSvg.defaultRenderer})}return this._helpMenu}get kernelMenu(){if(!this._kernelMenu){this._kernelMenu=new c({commands:this._commands,rank:5,renderer:i.MenuSvg.defaultRenderer})}return this._kernelMenu}get runMenu(){if(!this._runMenu){this._runMenu=new h({commands:this._commands,rank:4,renderer:i.MenuSvg.defaultRenderer})}return this._runMenu}get settingsMenu(){if(!this._settingsMenu){this._settingsMenu=new u({commands:this._commands,rank:999,renderer:i.MenuSvg.defaultRenderer})}return this._settingsMenu}get viewMenu(){if(!this._viewMenu){this._viewMenu=new m({commands:this._commands,rank:3,renderer:i.MenuSvg.defaultRenderer})}return this._viewMenu}get tabsMenu(){if(!this._tabsMenu){this._tabsMenu=new p({commands:this._commands,rank:500,renderer:i.MenuSvg.defaultRenderer})}return this._tabsMenu}addMenu(e,t=true,n={}){if(s.ArrayExt.firstIndexOf(this.menus,e)>-1){return}i.MenuSvg.overrideDefaultRenderer(e);const o="rank"in n?n.rank:"rank"in e?e.rank:i.IRankedMenu.DEFAULT_RANK;const r={menu:e,rank:o};const g=s.ArrayExt.upperBound(this._items,r,f.itemCmp);e.disposed.connect(this._onMenuDisposed,this);s.ArrayExt.insert(this._items,g,r);this.insertMenu(g,e);switch(e.id){case"jp-mainmenu-file":if(!this._fileMenu&&e instanceof l){this._fileMenu=e}break;case"jp-mainmenu-edit":if(!this._editMenu&&e instanceof a){this._editMenu=e}break;case"jp-mainmenu-view":if(!this._viewMenu&&e instanceof m){this._viewMenu=e}break;case"jp-mainmenu-run":if(!this._runMenu&&e instanceof h){this._runMenu=e}break;case"jp-mainmenu-kernel":if(!this._kernelMenu&&e instanceof c){this._kernelMenu=e}break;case"jp-mainmenu-tabs":if(!this._tabsMenu&&e instanceof p){this._tabsMenu=e}break;case"jp-mainmenu-settings":if(!this._settingsMenu&&e instanceof u){this._settingsMenu=e}break;case"jp-mainmenu-help":if(!this._helpMenu&&e instanceof d){this._helpMenu=e}break}}dispose(){var e,t,n,i,s,o,r,a;(e=this._editMenu)===null||e===void 0?void 0:e.dispose();(t=this._fileMenu)===null||t===void 0?void 0:t.dispose();(n=this._helpMenu)===null||n===void 0?void 0:n.dispose();(i=this._kernelMenu)===null||i===void 0?void 0:i.dispose();(s=this._runMenu)===null||s===void 0?void 0:s.dispose();(o=this._settingsMenu)===null||o===void 0?void 0:o.dispose();(r=this._viewMenu)===null||r===void 0?void 0:r.dispose();(a=this._tabsMenu)===null||a===void 0?void 0:a.dispose();super.dispose()}static generateMenu(e,t,n){let s;const{id:o,label:r,rank:g}=t;switch(o){case"jp-mainmenu-file":s=new l({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer});break;case"jp-mainmenu-edit":s=new a({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer});break;case"jp-mainmenu-view":s=new m({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer});break;case"jp-mainmenu-run":s=new h({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer});break;case"jp-mainmenu-kernel":s=new c({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer});break;case"jp-mainmenu-tabs":s=new p({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer});break;case"jp-mainmenu-settings":s=new u({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer});break;case"jp-mainmenu-help":s=new d({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer});break;default:s=new i.RankedMenu({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer})}if(r){s.title.label=n._p("menu",r)}return s}_onMenuDisposed(e){this.removeMenu(e);const t=s.ArrayExt.findFirstIndex(this._items,(t=>t.menu===e));if(t!==-1){s.ArrayExt.removeAt(this._items,t)}}}var f;(function(e){function t(e,t){return e.rank-t.rank}e.itemCmp=t})(f||(f={}));var v=n(5592);const _=new v.Token("@jupyterlab/mainmenu:IMainMenu",`A service for the main menu bar for the application.\n Use this if you want to add your own menu items or provide implementations for standardized menu items for specific activities.`)},67996:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913)},69195:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>x});var i=n(88617);var s=n.n(i);var o=n(38850);var r=n.n(o);var a=n(40959);var l=n.n(a);var d=n(48407);var c=n.n(d);var h=n(95513);var u=n.n(h);var p=n(40065);var m=n.n(p);var g=n(72011);var f=n.n(g);var v=n(34881);var _=n.n(v);var b;(function(e){e.markdownPreview="markdownviewer:open";e.markdownEditor="markdownviewer:edit"})(b||(b={}));const y="Markdown Preview";const w={activate:C,id:"@jupyterlab/markdownviewer-extension:plugin",description:"Adds markdown file viewer and provides its tracker.",provides:d.IMarkdownViewerTracker,requires:[h.IRenderMimeRegistry,v.ITranslator],optional:[i.ILayoutRestorer,p.ISettingRegistry,g.ITableOfContentsRegistry,o.ISanitizer],autoStart:true};function C(e,t,n,i,s,r,l){const c=n.load("jupyterlab");const{commands:u,docRegistry:p}=e;t.addFactory(h.markdownRendererFactory);const m="markdownviewer-widget";const g=new o.WidgetTracker({namespace:m});let f={...d.MarkdownViewer.defaultConfig};function v(e){Object.keys(f).forEach((t=>{var n;e.setOption(t,(n=f[t])!==null&&n!==void 0?n:null)}))}if(s){const e=e=>{f=e.composite;g.forEach((e=>{v(e.content)}))};s.load(w.id).then((t=>{t.changed.connect((()=>{e(t)}));e(t)})).catch((e=>{console.error(e.message)}))}const _=new d.MarkdownViewerFactory({rendermime:t,name:y,label:c.__("Markdown Preview"),primaryFileType:p.getFileType("markdown"),fileTypes:["markdown"],defaultRendered:["markdown"]});_.widgetCreated.connect(((e,t)=>{t.context.pathChanged.connect((()=>{void g.save(t)}));v(t.content);void g.add(t)}));p.addWidgetFactory(_);if(i){void i.restore(g,{command:"docmanager:open",args:e=>({path:e.context.path,factory:y}),name:e=>e.context.path})}u.addCommand(b.markdownPreview,{label:c.__("Markdown Preview"),execute:e=>{const t=e["path"];if(typeof t!=="string"){return}return u.execute("docmanager:open",{path:t,factory:y,options:e["options"]})},describedBy:{args:{type:"object",properties:{path:{type:"string",description:c.__("The path to the markdown file to preview")},options:{type:"object",description:c.__("Options for opening the preview")}},required:["path"]}}});u.addCommand(b.markdownEditor,{execute:()=>{const e=g.currentWidget;if(!e){return}const t=e.context.path;return u.execute("docmanager:open",{path:t,factory:"Editor",options:{mode:"split-right"}})},isVisible:()=>{const e=g.currentWidget;return e&&a.PathExt.extname(e.context.path)===".md"||false},label:c.__("Show Markdown Editor"),describedBy:{args:{type:"object",properties:{}}}});if(r){r.add(new d.MarkdownViewerTableOfContentsFactory(g,t.markdownParser,l!==null&&l!==void 0?l:t.sanitizer))}return g}const x=w},57996:(e,t,n)=>{"use strict";var i=n(97913);var s=n(5893);var o=n(3579);var r=n(66731);var a=n(10395);var l=n(79010);var d=n(85072);var c=n.n(d);var h=n(97825);var u=n.n(h);var p=n(77659);var m=n.n(p);var g=n(55056);var f=n.n(g);var v=n(10540);var _=n.n(v);var b=n(41113);var y=n.n(b);var w=n(80877);var C={};C.styleTagTransform=y();C.setAttributes=f();C.insert=m().bind(null,"head");C.domAPI=u();C.insertStyleElement=_();var x=c()(w.A,C);const S=w.A&&w.A.locals?w.A.locals:undefined},34572:(e,t,n)=>{"use strict";n.r(t);n.d(t,{IMarkdownViewerTracker:()=>a,MarkdownDocument:()=>_,MarkdownViewer:()=>v,MarkdownViewerFactory:()=>b,MarkdownViewerTableOfContentsFactory:()=>o,MarkdownViewerTableOfContentsModel:()=>s});var i=n(72011);class s extends i.TableOfContentsModel{constructor(e,t,n){super(e,n);this.parser=t}get documentType(){return"markdown-viewer"}get isAlwaysActive(){return true}get supportedOptions(){return["maximalDepth","numberingH1","numberHeaders"]}async getHeadings(){const e=this.widget.context.model.toString();const t=await i.TableOfContentsUtils.Markdown.parseHeadings(e,this.parser);const n=i.TableOfContentsUtils.filterHeadings(t,{...this.configuration,baseNumbering:1});return Promise.resolve(n)}}class o extends i.TableOfContentsFactory{constructor(e,t,n){super(e);this.parser=t;this.sanitizer=n}_createNew(e,t){const n=new s(e,this.parser,t);let o=new WeakMap;const r=(t,n)=>{if(n){const t=o.get(n);if(t){const n=e.content.node.getBoundingClientRect();const i=t.getBoundingClientRect();if(i.top>n.bottom||i.bottom{if(!this.parser){return}i.TableOfContentsUtils.clearNumbering(e.content.node);o=new WeakMap;n.headings.forEach((async t=>{var n;const s=await i.TableOfContentsUtils.Markdown.getHeadingId(this.parser,t.raw,t.level,this.sanitizer);if(!s){return}const r=`h${t.level}[id="${CSS.escape(s)}"]`;o.set(t,i.TableOfContentsUtils.addPrefix(e.content.node,r,(n=t.prefix)!==null&&n!==void 0?n:""))}))};void e.content.ready.then((()=>{a();e.content.rendered.connect(a);n.activeHeadingChanged.connect(r);n.headingsChanged.connect(a);e.disposed.connect((()=>{e.content.rendered.disconnect(a);n.activeHeadingChanged.disconnect(r);n.headingsChanged.disconnect(a)}))}));return n}}var r=n(5592);const a=new r.Token("@jupyterlab/markdownviewer:IMarkdownViewerTracker",`A widget tracker for markdown\n document viewers. Use this if you want to iterate over and interact with rendered markdown documents.`);var l=n(38850);var d=n(40959);var c=n(93067);var h=n(95513);var u=n(34881);var p=n(2336);var m=n(27518);const g="jp-MarkdownViewer";const f="text/markdown";class v extends m.Widget{constructor(e){super();this._config={...v.defaultConfig};this._fragment="";this._ready=new r.PromiseDelegate;this._isRendering=false;this._renderRequested=false;this._rendered=new p.Signal(this);this.context=e.context;this.translator=e.translator||u.nullTranslator;this._trans=this.translator.load("jupyterlab");this.renderer=e.renderer;this.node.tabIndex=0;this.addClass(g);const t=this.layout=new m.StackedLayout;t.addWidget(this.renderer);void this.context.ready.then((async()=>{await this._render();this._monitor=new d.ActivityMonitor({signal:this.context.model.contentChanged,timeout:this._config.renderTimeout});this._monitor.activityStopped.connect(this.update,this);this._ready.resolve(undefined)}))}get ready(){return this._ready.promise}get rendered(){return this._rendered}setFragment(e){this._fragment=e;this.update()}setOption(e,t){if(this._config[e]===t){return}this._config[e]=t;const{style:n}=this.renderer.node;switch(e){case"fontFamily":n.setProperty("font-family",t);break;case"fontSize":n.setProperty("font-size",t?t+"px":null);break;case"hideFrontMatter":this.update();break;case"lineHeight":n.setProperty("line-height",t?t.toString():null);break;case"lineWidth":{const e=t?`calc(50% - ${t/2}ch)`:null;n.setProperty("padding-left",e);n.setProperty("padding-right",e);break}case"renderTimeout":if(this._monitor){this._monitor.timeout=t}break;default:break}}dispose(){if(this.isDisposed){return}if(this._monitor){this._monitor.dispose()}this._monitor=null;super.dispose()}onUpdateRequest(e){if(this.context.isReady&&!this.isDisposed){void this._render();this._fragment=""}}onActivateRequest(e){this.node.focus()}async _render(){if(this.isDisposed){return}if(this._isRendering){this._renderRequested=true;return}this._renderRequested=false;const{context:e}=this;const{model:t}=e;const n=t.toString();const i={};i[f]=this._config.hideFrontMatter?y.removeFrontMatter(n):n;const s=new h.MimeModel({data:i,metadata:{fragment:this._fragment}});try{this._isRendering=true;await this.renderer.renderModel(s);this._isRendering=false;if(this._renderRequested){return this._render()}else{this._rendered.emit()}}catch(o){requestAnimationFrame((()=>{this.dispose()}));void(0,l.showErrorMessage)(this._trans.__("Renderer Failure: %1",e.path),o)}}}(function(e){e.defaultConfig={fontFamily:null,fontSize:null,lineHeight:null,lineWidth:null,hideFrontMatter:true,renderTimeout:1e3}})(v||(v={}));class _ extends c.DocumentWidget{setFragment(e){this.content.setFragment(e)}}class b extends c.ABCWidgetFactory{constructor(e){super(y.createRegistryOptions(e));this._fileType=e.primaryFileType;this._rendermime=e.rendermime}createNewWidget(e){var t,n,i,s,o;const r=this._rendermime.clone({resolver:e.urlResolver});const a=r.createRenderer(f);const l=new v({context:e,renderer:a});l.title.icon=(t=this._fileType)===null||t===void 0?void 0:t.icon;l.title.iconClass=(i=(n=this._fileType)===null||n===void 0?void 0:n.iconClass)!==null&&i!==void 0?i:"";l.title.iconLabel=(o=(s=this._fileType)===null||s===void 0?void 0:s.iconLabel)!==null&&o!==void 0?o:"";l.title.caption=this.label;const d=new _({content:l,context:e});return d}}var y;(function(e){function t(e){return{...e,readOnly:true}}e.createRegistryOptions=t;function n(e){const t=/^---\n[^]*?\n(---|...)\n/;const n=e.match(t);if(!n){return e}const{length:i}=n[0];return e.slice(i)}e.removeFrontMatter=n})(y||(y={}))},55151:(e,t,n)=>{"use strict";n.r(t);n.d(t,{createMarkdownParser:()=>m,default:()=>f});var i=n(5592);var s=n.n(i);var o=n(40959);var r=n.n(o);var a=n(45713);var l=n.n(a);var d=n(95513);var c=n.n(d);var h=n(221);var u=n.n(h);const p="```~~~";function m(e,t){return{render:n=>v.render(n,e,t)}}const g={id:"@jupyterlab/markedparser-extension:plugin",description:"Provides the Markdown parser.",autoStart:true,provides:d.IMarkdownParser,requires:[a.IEditorLanguageRegistry],optional:[h.IMermaidMarkdown],activate:(e,t,n)=>m(t,{blocks:n?[n]:[]})};const f=g;var v;(function(e){let t=null;let s=null;let r=[];let a=null;let l={};let d=new o.LruCache;async function c(e,t,n){a=t;if(!s){s=await h(n)}return s(e,l)}e.render=c;async function h(e){if(s){return s}if(t){return await t.promise}r=(e===null||e===void 0?void 0:e.blocks)||[];r=r.sort(((e,t)=>{var n,i;return((n=e.rank)!==null&&n!==void 0?n:Infinity)-((i=t.rank)!==null&&i!==void 0?i:Infinity)}));t=new i.PromiseDelegate;const[{marked:o,Renderer:a},d]=await Promise.all([n.e(926).then(n.t.bind(n,50926,23)),u()]);for(const t of d){o.use(t)}l={async:true,gfm:true,walkTokens:f,renderer:m(a)};s=o;t.resolve(s);return s}e.initializeMarked=h;async function u(){return Promise.all([(async()=>(await n.e(8111).then(n.t.bind(n,58111,23))).gfmHeadingId())(),(async()=>(await n.e(9962).then(n.t.bind(n,39962,23))).mangle())()])}function m(e){const t=new e;const n=t.code;t.code=({text:e,lang:i,escaped:s})=>{for(const t of r){if(i&&t.languages.includes(i)){const n=t.render(e);if(n!=null){return n}}}const o=`${i}${p}${e}${p}`;const a=d.get(o);if(a!=null){return a}return n.call(t,{text:e,lang:i,escaped:s})};return t}async function g(e){const{lang:t,text:n}=e;if(!t||!a){return}const i=`${t}${p}${n}${p}`;if(d.get(i)){return}const s=document.createElement("div");try{await a.highlight(n,a.findBest(t),s);const e=`
    ${s.innerHTML}
    `;d.set(i,e)}catch(o){console.error(`Failed to highlight ${t} code`,o)}finally{s.remove()}}async function f(e){switch(e.type){case"code":if(e.lang){for(const t of r){if(t.languages.includes(e.lang)){await t.walk(e.text);return}}}await g(e)}}})(v||(v={}))},41884:(e,t,n)=>{"use strict";var i=n(5893);var s=n(3579);var o=n(23359);var r=n(69240);var a=n(85072);var l=n.n(a);var d=n(97825);var c=n.n(d);var h=n(77659);var u=n.n(h);var p=n(55056);var m=n.n(p);var g=n(10540);var f=n.n(g);var v=n(41113);var _=n.n(v);var b=n(23865);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.A,y);const C=b.A&&b.A.locals?b.A.locals:undefined},31217:(e,t,n)=>{"use strict";n.r(t);n.d(t,{MathJaxTypesetter:()=>c,default:()=>u});var i=n(5592);var s=n.n(i);var o=n(95513);var r=n.n(o);var a=n(34881);var l=n.n(a);var d;(function(e){e.copy="mathjax:clipboard";e.scale="mathjax:scale"})(d||(d={}));class c{constructor(){this._initialized=false}async _ensureInitialized(){if(!this._initialized){this._mathDocument=await p.ensureMathDocument();this._initialized=true}}async mathDocument(){await this._ensureInitialized();return this._mathDocument}async typeset(e){try{await this._ensureInitialized()}catch(t){console.error(t);return}this._mathDocument.options.elements=[e];this._mathDocument.clear().render();delete this._mathDocument.options.elements;p.hardenAnchorLinks(e)}}const h={id:"@jupyterlab/mathjax-extension:plugin",description:"Provides the LaTeX mathematical expression interpreter.",provides:o.ILatexTypesetter,optional:[a.ITranslator],activate:(e,t)=>{const n=(t!==null&&t!==void 0?t:a.nullTranslator).load("jupyterlab");const i=new c;e.commands.addCommand(d.copy,{execute:async()=>{const e=await i.mathDocument();const t=e.outputJax;await navigator.clipboard.writeText(t.math.math)},label:n.__("MathJax Copy Latex"),describedBy:{args:{type:"object",properties:{}}}});e.commands.addCommand(d.scale,{execute:async e=>{const t=await i.mathDocument();const n=e["scale"]||1;t.outputJax.options.scale=n;t.rerender();for(const i of t.math){const e=i.typesetRoot;if(e){p.hardenAnchorLinks(e)}}},label:e=>n.__("Mathjax Scale ")+(e["scale"]?`x${e["scale"]}`:n.__("Reset")),describedBy:{args:{type:"object",properties:{scale:{type:"number",description:n.__("The scale factor for MathJax rendering")}}}}});return i},autoStart:true};const u=h;var p;(function(e){let t=null;async function s(){if(!t){t=new i.PromiseDelegate;void Promise.all([n.e(2353),n.e(2633),n.e(8816)]).then(n.t.bind(n,58816,23));const[{mathjax:e},{CHTML:s},{TeX:o},{TeXFont:r},{AllPackages:a},{SafeHandler:l},{HTMLHandler:d},{browserAdaptor:c},{AssistiveMmlHandler:h}]=await Promise.all([n.e(1039).then(n.bind(n,81039)),Promise.all([n.e(2353),n.e(6275),n.e(1673),n.e(4090)]).then(n.t.bind(n,24090,23)),Promise.all([n.e(2353),n.e(2633),n.e(2707),n.e(4928)]).then(n.t.bind(n,4928,23)),Promise.all([n.e(1673),n.e(4981)]).then(n.t.bind(n,1673,23)),Promise.all([n.e(2353),n.e(2633),n.e(2707),n.e(1909)]).then(n.bind(n,31909)),n.e(5244).then(n.t.bind(n,75244,23)),Promise.all([n.e(2353),n.e(6275),n.e(4001),n.e(1969)]).then(n.t.bind(n,1969,23)),n.e(9400).then(n.bind(n,59400)),Promise.all([n.e(2353),n.e(6275),n.e(4001),n.e(4855)]).then(n.t.bind(n,34855,23))]);e.handlers.register(h(l(new d(c()))));class u extends r{}u.defaultFonts={};const p=new s({font:new u});const m=new o({packages:a.concat("require"),inlineMath:[["$","$"],["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],processEscapes:true,processEnvironments:true});const g=e.document(window.document,{InputJax:m,OutputJax:p});t.resolve(g)}return t.promise}e.ensureMathDocument=s;function o(e){const t=e.querySelectorAll(".MathJax a");t.forEach((e=>{const t=e.rel||"";const n=t.split(/\s+/).filter((e=>e.length>0));if(!n.includes("noopener")){n.push("noopener")}e.rel=n.join(" ");if(e.target!=="_blank"){e.target="_blank"}}))}e.hardenAnchorLinks=o})(p||(p={}))},51874:(e,t,n)=>{"use strict";var i=n(5893);var s=n(3579);var o=n(85072);var r=n.n(o);var a=n(97825);var l=n.n(a);var d=n(77659);var c=n.n(d);var h=n(55056);var u=n.n(h);var p=n(10540);var m=n.n(p);var g=n(41113);var f=n.n(g);var v=n(25149);var _={};_.styleTagTransform=f();_.setAttributes=u();_.insert=c().bind(null,"head");_.domAPI=l();_.insertStyleElement=m();var b=r()(v.A,_);const y=v.A&&v.A.locals?v.A.locals:undefined},71579:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CommandIDs:()=>d,default:()=>p});var i=n(38850);var s=n.n(i);var o=n(221);var r=n.n(o);var a=n(34881);var l=n.n(a);var d;(function(e){e.copySource="mermaid:copy-source"})(d||(d={}));const c={id:"@jupyterlab/mermaid-extension:core",description:"Provides the Mermaid manager.",autoStart:true,optional:[i.IThemeManager],provides:o.IMermaidManager,activate:(e,t)=>{const n=new o.MermaidManager({themes:t});o.RenderedMermaid.manager=n;return n}};const h={id:"@jupyterlab/mermaid-extension:markdown",description:"Provides the Mermaid markdown renderer.",autoStart:true,requires:[o.IMermaidManager],provides:o.IMermaidMarkdown,activate:(e,t)=>new o.MermaidMarkdown({mermaid:t})};const u={id:"@jupyterlab/mermaid-extension:context-commands",description:"Provides context menu commands for mermaid diagrams.",autoStart:true,requires:[o.IMermaidManager],optional:[a.ITranslator],activate:(e,t,n)=>{const i=e=>e.classList.contains(o.MERMAID_CLASS);const s=(n!==null&&n!==void 0?n:a.nullTranslator).load("jupyterlab");e.commands.addCommand(d.copySource,{label:s.__("Mermaid Copy Diagram Source"),execute:async t=>{const n=e.contextMenuHitTest(i);if(!n){return}const s=n.querySelector(`.${o.MERMAID_CODE_CLASS}`);if(!s||!s.textContent){return}await navigator.clipboard.writeText(s.textContent)},describedBy:{args:{type:"object",properties:{}}}});const r={selector:`.${o.MERMAID_CLASS}`,rank:13};e.contextMenu.addItem({command:d.copySource,...r});e.contextMenu.addItem({type:"separator",...r})}};const p=[c,h,u]},47375:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>r});var i=n(221);var s=n.n(i);const o={id:"@jupyterlab/mermaid-extension:factory",description:"Provides a renderer for mermaid text-based diagrams.",rendererFactory:i.rendererFactory,rank:61,dataType:"string",documentWidgetFactoryOptions:[{name:"Mermaid",primaryFileType:"mermaid",fileTypes:["mermaid"],defaultFor:["mermaid"]}],fileTypes:[{mimeTypes:[i.MERMAID_MIME_TYPE],name:"mermaid",extensions:i.MERMAID_FILE_EXTENSIONS,icon:"ui-components:mermaid"}]};const r=o},90288:(e,t,n)=>{"use strict";var i=n(97913);var s=n(3579);var o=n(69240);var r=n(85072);var a=n.n(r);var l=n(97825);var d=n.n(l);var c=n(77659);var h=n.n(c);var u=n(55056);var p=n.n(u);var m=n(10540);var g=n.n(m);var f=n(41113);var v=n.n(f);var _=n(4555);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.A,b);const w=_.A&&_.A.locals?_.A.locals:undefined},63005:(e,t,n)=>{"use strict";n.r(t);n.d(t,{DETAILS_CLASS:()=>p,IMermaidManager:()=>g,IMermaidMarkdown:()=>f,MERMAID_CLASS:()=>c,MERMAID_CODE_CLASS:()=>h,MERMAID_DARK_THEME:()=>d,MERMAID_DEFAULT_THEME:()=>l,MERMAID_FILE_EXTENSIONS:()=>r,MERMAID_MIME_TYPE:()=>o,MermaidManager:()=>v,MermaidMarkdown:()=>b,RE_DEFAULT_RENDERER:()=>a,RenderedMermaid:()=>C,SUMMARY_CLASS:()=>m,WARNING_CLASS:()=>u,rendererFactory:()=>x});var i=n(5592);var s=n(40959);const o="text/vnd.mermaid";const r=[".mmd",".mermaid"];const a=/\bdefaultRenderer["']?\s*:\s*(["']?)(\b[^"'\s]+\b)(\1)/gm;const l="default";const d="dark";const c="jp-RenderedMermaid";const h="mermaid";const u="jp-mod-warning";const p="jp-RenderedMermaid-Details";const m="jp-RenderedMermaid-Summary";const g=new i.Token("@jupyterlab/mermaid:IMermaidManager",`a manager for rendering mermaid text-based diagrams`);const f=new i.Token("@jupyterlab/mermaid:IMermaidMarkdown",`a manager for rendering mermaid text-based diagrams in markdown fenced code blocks`);class v{constructor(e={}){this._diagrams=new s.LruCache({maxSize:e.maxCacheSize||null});if(e.themes){_.initThemes(e.themes||null);e.themes.themeChanged.connect(this.initialize,this)}}static cleanMermaidSvg(e){e=e.replace(_.RE_VOID_ELEMENT,_.replaceVoidElement);return`${_.SVG_XML_HEADER}${e}`}initialize(){this._diagrams.clear();_.initMermaid()}async getMermaid(){return await _.ensureMermaid()}getMermaidVersion(){return _.version()}getCachedFigure(e){return this._diagrams.get(e)}async renderSvg(e){const t=await this.getMermaid();await _.ensureRenderers(e);const n=`jp-mermaid-${_.nextMermaidId()}`;const i=document.createElement("div");document.body.appendChild(i);try{let{svg:s}=await t.render(n,e,i);s=v.cleanMermaidSvg(s);const o=new DOMParser;const r=o.parseFromString(s,"image/svg+xml");const a={text:e,svg:s};const l=r.querySelector("svg");const{maxWidth:d}=(l===null||l===void 0?void 0:l.style)||{};a.width=d?parseFloat(d):null;const c=r.querySelector("title");const h=r.querySelector("desc");if(c){a.accessibleTitle=c.textContent}if(h){a.accessibleDescription=h.textContent}return a}finally{i.remove()}}async renderFigure(e){let t=this._diagrams.get(e);if(t!=null){return t}let n=c;let i=null;t=document.createElement("div");t.className=n;try{const t=await this.renderSvg(e);i=this.makeMermaidFigure(t)}catch(o){t.classList.add(u);i=await this.makeMermaidError(e)}let s=this.getMermaidVersion();if(s){i.dataset.jpMermaidVersion=s}t.appendChild(i);this._diagrams.set(e,t);return t}makeMermaidCode(e){const t=document.createElement("pre");const n=document.createElement("code");n.innerText=e;t.appendChild(n);n.className=h;n.textContent=e;return t}async makeMermaidError(e){const t=await this.getMermaid();let n="";try{await t.parse(e)}catch(r){n=`${r}`}const i=document.createElement("details");i.className=p;const s=document.createElement("summary");s.className=m;s.appendChild(this.makeMermaidCode(e));i.appendChild(s);const o=document.createElement("pre");o.innerText=n;i.appendChild(o);return i}makeMermaidFigure(e){const t=document.createElement("figure");const n=document.createElement("img");t.appendChild(n);n.setAttribute("src",`data:image/svg+xml,${encodeURIComponent(e.svg)}`);if(e.width){n.width=e.width}if(e.accessibleTitle){n.setAttribute("alt",e.accessibleTitle)}t.appendChild(this.makeMermaidCode(e.text));if(e.accessibleDescription){const n=document.createElement("figcaption");n.className="sr-only";n.textContent=e.accessibleDescription;t.appendChild(n)}return t}}var _;(function(e){let t=null;let s=null;let o=null;let r=null;let c=null;let h=0;let u=null;function p(e){t=e}e.initThemes=p;function m(){return u}e.version=m;function g(e=null){e=s;if(!e){return false}let n=l;if(t){const e=t.theme;n=e&&t.isLight(e)?l:d}const i=window.getComputedStyle(document.body).getPropertyValue("--jp-ui-font-family");e.initialize({theme:n,fontFamily:i,securityLevel:"strict",maxTextSize:1e5,maxEdges:1e5,startOnLoad:false});return true}e.initMermaid=g;function f(){return s}e.getMermaid=f;function v(){return h++}e.nextMermaidId=v;async function _(){if(s!=null){return s}if(r){return r.promise}r=new i.PromiseDelegate;u=(await n.e(3763).then(n.t.bind(n,73763,19))).version;const e=s=(await Promise.all([n.e(7975),n.e(1218),n.e(227),n.e(926)]).then(n.bind(n,90227))).default;g(e);s=e;r.resolve(s);return s}e.ensureMermaid=_;async function b(t){let n=[];for(const i of[...t.matchAll(a)]){switch(i&&i[2]||null){case"elk":n.push(e.ensureMermaidElk());break}}if(n.length){await Promise.all(n)}}e.ensureRenderers=b;async function y(){if(o!=null){return o}if(c){return c.promise}c=new i.PromiseDelegate;const e=await _();const t=(await n.e(6986).then(n.bind(n,96986))).default;e.registerLayoutLoaders(t);o=t;c.resolve(o);return o}e.ensureMermaidElk=y;e.RE_VOID_ELEMENT=/<\s*(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)\s*([^>]*?)\s*>/gi;function w(e,t,n){n=n.trim();if(!n.endsWith("/")){n=`${n} /`}return`<${t} ${n}>`}e.replaceVoidElement=w;e.HTML_ENTITIES=`\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n`.replace(/\n/g," ");const C='';const x=`";e.SVG_XML_HEADER=`${C}\n ${x}${e.HTML_ENTITIES}${S}`})(_||(_={}));class b{constructor(e){this.languages=["mermaid"];this.rank=100;this._mermaid=e.mermaid}async walk(e){await this._mermaid.renderFigure(e)}render(e){let t=this._mermaid.getCachedFigure(e);if(t){return t.outerHTML}return null}}var y=n(27518);const w="image/svg+xml";class C extends y.Widget{constructor(e){super();this._lastRendered=null;this._mimeType=e.mimeType;this.addClass(c)}static set manager(e){if(C._manager){console.warn("Mermaid manager may only be set once, and is already set.");return}C._manager=e;C._managerReady.resolve(e)}async renderModel(e){const t=await C._managerReady.promise;const n=e.data[this._mimeType];if(n==null||n===this._lastRendered){return}this._lastRendered=n;const i=await t.renderFigure(n);if(i.classList.contains(u)){this.node.classList.add(u)}else{this.node.classList.remove(u)}if(!i.firstChild){return}if(this.node.innerHTML!==i.innerHTML){this.node.innerHTML=i.innerHTML}const s=t.getMermaidVersion();const r={...e.metadata[o]||{},version:s};const a={...e.metadata,[o]:r};const l=i.querySelector("img");if(l){const t=decodeURIComponent(l.src.split(",")[1]);const n=e.data[w];if(t!==n){e.setData({data:{...e.data,[w]:t},metadata:a})}}else{const t={...e.data};delete t[w];e.setData({data:t,metadata:a})}}}C._manager=null;C._managerReady=new i.PromiseDelegate;const x={safe:true,mimeTypes:[o],createRenderer:e=>new C(e)}},69240:(e,t,n)=>{"use strict";var i=n(10395);var s=n(97913);var o=n(85072);var r=n.n(o);var a=n(97825);var l=n.n(a);var d=n(77659);var c=n.n(d);var h=n(55056);var u=n.n(h);var p=n(10540);var m=n.n(p);var g=n(41113);var f=n.n(g);var v=n(9979);var _={};_.styleTagTransform=f();_.setAttributes=u();_.insert=c().bind(null,"head");_.domAPI=l();_.insertStyleElement=m();var b=r()(v.A,_);const y=v.A&&v.A.locals?v.A.locals:undefined},24039:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>_});var i=n(74823);var s=n.n(i);var o=n(40065);var r=n.n(o);var a=n(34881);var l=n.n(a);var d=n(4073);var c=n.n(d);var h=n(5592);var u=n.n(h);var p=n(54103);var m=n.n(p);const g="@jupyterlab/metadataform-extension:metadataforms";var f;(function(e){async function t(e,t,n,i,s){var o;let r;let a={};function l(e){a={};e.properties.metadataforms.default=Object.keys(t.plugins).map((e=>{var n;const i=(n=t.plugins[e].schema["jupyter.lab.metadataforms"])!==null&&n!==void 0?n:[];i.forEach((t=>{t._origin=e}));a[e]=i;return i})).concat([e["jupyter.lab.metadataforms"]]).reduce(((e,t)=>{t.forEach((t=>{const n=e.find((e=>e.id===t.id));if(n){for(let[e,i]of Object.entries(t.metadataSchema.properties)){n.metadataSchema.properties[e]=i}if(t.metadataSchema.required){if(!n.metadataSchema.required){n.metadataSchema.required=t.metadataSchema.required}else{n.metadataSchema.required.concat(t.metadataSchema.required)}}if(t.metadataSchema.allOf){if(!n.metadataSchema.allOf){n.metadataSchema.allOf=t.metadataSchema.allOf}else{n.metadataSchema.allOf.concat(t.metadataSchema.allOf)}}if(t.uiSchema){if(!n.uiSchema)n.uiSchema={};for(let[e,i]of Object.entries(t.uiSchema)){n.uiSchema[e]=i}}if(t.metadataOptions){if(!n.metadataOptions)n.metadataOptions={};for(let[e,i]of Object.entries(t.metadataOptions)){n.metadataOptions[e]=i}}}else{e.push(t)}}));return e}),[])}t.transform(g,{compose:e=>{var t,n,i,s;if(!r){r=h.JSONExt.deepCopy(e.schema);l(r)}const o=(i=(n=(t=r.properties)===null||t===void 0?void 0:t.metadataforms)===null||n===void 0?void 0:n.default)!==null&&i!==void 0?i:[];const a={metadataforms:(s=e.data.user.metadataforms)!==null&&s!==void 0?s:[]};const d={metadataforms:o.concat(a.metadataforms)};e.data={composite:d,user:a};return e},fetch:e=>{if(!r){r=h.JSONExt.deepCopy(e.schema);l(r)}return{data:e.data,id:e.id,raw:e.raw,schema:r,version:e.version}}});r=null;const d=await t.load(g);const c=new p.MetadataFormProvider;for(let u of d.composite.metadataforms){let e={};let t=h.JSONExt.deepCopy(u.metadataSchema);let r={};if(u.uiSchema){r=h.JSONExt.deepCopy(u.uiSchema)}for(let[n,i]of Object.entries(t.properties)){if(i.default){if(!e[n])e[n]={};e[n].default=i.default}}if(u.metadataOptions){for(let[t,n]of Object.entries(u.metadataOptions)){if(n.cellTypes){if(!e[t])e[t]={};e[t].cellTypes=n.cellTypes}if(n.metadataLevel){if(!e[t])e[t]={};e[t].level=n.metadataLevel}if(n.writeDefault!==undefined){if(!e[t])e[t]={};e[t].writeDefault=n.writeDefault}if(n.customRenderer){const e=s.getRenderer(n.customRenderer);if(e!==undefined){if(!r[t])r[t]={};if(e.fieldRenderer){r[t]["ui:field"]=e.fieldRenderer}else{r[t]["ui:widget"]=e.widgetRenderer}}}}}n.addSection({sectionName:u.id,rank:u.rank,label:(o=u.label)!==null&&o!==void 0?o:u.id});const a=new p.MetadataFormWidget({metadataSchema:t,metaInformation:e,uiSchema:r,pluginId:u._origin,translator:i,showModified:u.showModified});n.addItem({section:u.id,tool:a});c.add(u.id,a)}return c}e.loadSettingsMetadataForm=t})(f||(f={}));const v={id:g,description:"Provides the metadata form registry.",autoStart:true,requires:[i.INotebookTools,a.ITranslator,d.IFormRendererRegistry,o.ISettingRegistry],provides:p.IMetadataFormProvider,activate:async(e,t,n,i,s)=>await f.loadSettingsMetadataForm(e,s,t,n,i)};const _=v},87145:(e,t,n)=>{"use strict";var i=n(40662);var s=n(3579);var o=n(28006);var r=n(69540)},32822:(e,t,n)=>{"use strict";n.r(t);n.d(t,{FormWidget:()=>d,IMetadataFormProvider:()=>_,MetadataFormProvider:()=>v,MetadataFormWidget:()=>g});var i=n(38850);var s=n(4073);var o=n(41742);var r=n.n(o);var a=n(44914);var l=n.n(a);class d extends i.ReactWidget{constructor(e){super();this.addClass("jp-FormWidget");this._props=e}render(){const e={defaultFormData:this._props.settings.default(),updateMetadata:this._props.metadataFormWidget.updateMetadata};return l().createElement(s.FormComponent,{validator:r(),schema:this._props.properties,formData:this._props.formData,formContext:e,uiSchema:this._props.uiSchema,liveValidate:true,idPrefix:`jp-MetadataForm-${this._props.pluginId}`,onChange:e=>{this._props.metadataFormWidget.updateMetadata(e.formData||{})},compact:true,showModifiedFromDefault:this._props.showModified,translator:this._props.translator})}}var c=n(74823);var h=n(40065);var u=n(34881);var p=n(5592);var m=n(27518);class g extends c.NotebookTools.Tool{constructor(e){super();this.updateMetadata=(e,t)=>{var n,i,s,o,r,a,l,d;if(this.notebookTools==undefined)return;const c=this.notebookTools.activeNotebookPanel;const h=this.notebookTools.activeCell;if(h==null)return;this._updatingMetadata=true;const u={};const p={};for(let[m,g]of Object.entries(e)){if(!this.metadataKeys.includes(m))continue;if(((n=this._metaInformation[m])===null||n===void 0?void 0:n.level)==="notebook"&&this._notebookModelNull)continue;if(((i=this._metaInformation[m])===null||i===void 0?void 0:i.cellTypes)&&!((o=(s=this._metaInformation[m])===null||s===void 0?void 0:s.cellTypes)===null||o===void 0?void 0:o.includes(h.model.type))){continue}let e;let t;if(((r=this._metaInformation[m])===null||r===void 0?void 0:r.level)==="notebook"){e=c.model.metadata;t=p}else{e=h.model.metadata;t=u}let v=m.replace(/^\/+/,"").replace(/\/+$/,"").split("/");let _=v[0];if(_==undefined)continue;let b=g!==undefined&&(((l=(a=this._metaInformation[m])===null||a===void 0?void 0:a.writeDefault)!==null&&l!==void 0?l:true)||g!==((d=this._metaInformation[m])===null||d===void 0?void 0:d.default));if(v.length==1){if(b)t[_]=g;else t[_]=undefined;continue}let y=v.slice(1,-1);let w=v[v.length-1];if(!(_ in t)){t[_]=e[_]}if(t[_]===undefined)t[_]={};let C=t[_];let x=true;for(let n of y){if(!(n in C)){if(!b){x=false;break}else C[n]={}}C=C[n]}if(x){if(!b)delete C[w];else C[w]=g}if(!b){t[_]=f.deleteEmptyNested(t[_],v.slice(1));if(!Object.keys(t[_]).length)t[_]=undefined}}for(let[m,g]of Object.entries(u)){if(g===undefined)h.model.deleteMetadata(m);else h.model.setMetadata(m,g)}if(!this._notebookModelNull){for(let[e,t]of Object.entries(p)){if(t===undefined)c.model.deleteMetadata(e);else c.model.setMetadata(e,t)}}this._updatingMetadata=false;if(t){this._update()}};this._notebookModelNull=false;this._metadataSchema=e.metadataSchema;this._metaInformation=e.metaInformation;this._uiSchema=e.uiSchema||{};this._pluginId=e.pluginId;this._showModified=e.showModified||false;this.translator=e.translator||u.nullTranslator;this._trans=this.translator.load("jupyterlab");this._updatingMetadata=false;const t=this.layout=new m.SingletonLayout;const n=document.createElement("div");const i=document.createElement("div");i.textContent=this._trans.__("No metadata.");i.className="jp-MetadataForm-placeholderContent";n.appendChild(i);this._placeholder=new m.Widget({node:n});this._placeholder.addClass("jp-MetadataForm-placeholder");t.widget=this._placeholder}get form(){return this._form}get metadataKeys(){var e;const t=[];for(let n of Object.keys(this._metadataSchema.properties)){t.push(n)}(e=this._metadataSchema.allOf)===null||e===void 0?void 0:e.forEach((e=>{if(e.then!==undefined){if(e.then.properties!==undefined){let n=e.then.properties;for(let e of Object.keys(n)){if(!t.includes(e))t.push(e)}}}if(e.else!==undefined){if(e.else.properties!==undefined){let n=e.else.properties;for(let e of Object.keys(n)){if(!t.includes(e))t.push(e)}}}}));return t}getProperties(e){return p.JSONExt.deepCopy(this._metadataSchema.properties[e])||null}setProperties(e,t){Object.entries(t).forEach((([t,n])=>{this._metadataSchema.properties[e][t]=n}))}setContent(e){const t=this.layout;if(t.widget){t.widget.removeClass("jp-MetadataForm-content");t.removeWidget(t.widget)}if(!e){e=this._placeholder}e.addClass("jp-MetadataForm-content");t.widget=e}buildWidget(e){this._form=new d(e);this._form.addClass("jp-MetadataForm");this.setContent(this._form)}onAfterShow(e){this._update()}onActiveCellChanged(e){if(this.isVisible)this._update()}onActiveCellMetadataChanged(e){if(!this._updatingMetadata&&this.isVisible)this._update()}onActiveNotebookPanelChanged(e){const t=this.notebookTools.activeNotebookPanel;this._notebookModelNull=t===null||t.model===null;if(!this._updatingMetadata&&this.isVisible)this._update()}onActiveNotebookPanelMetadataChanged(e){if(!this._updatingMetadata&&this.isVisible)this._update()}_update(){var e,t,n,i,s;const o=this.notebookTools.activeNotebookPanel;const r=this.notebookTools.activeCell;if(r==undefined)return;const a=p.JSONExt.deepCopy(this._metadataSchema);const l={};for(let d of Object.keys(this._metadataSchema.properties||p.JSONExt.emptyObject)){if(((e=this._metaInformation[d])===null||e===void 0?void 0:e.level)==="notebook"&&this._notebookModelNull){delete a.properties[d];continue}if(((t=this._metaInformation[d])===null||t===void 0?void 0:t.cellTypes)&&!((i=(n=this._metaInformation[d])===null||n===void 0?void 0:n.cellTypes)===null||i===void 0?void 0:i.includes(r.model.type))){delete a.properties[d];continue}let c;let h=d.replace(/^\/+/,"").replace(/\/+$/,"").split("/");if(((s=this._metaInformation[d])===null||s===void 0?void 0:s.level)==="notebook"){c=o.model.metadata}else{c=r.model.metadata}let u=true;for(let e of h){if(e in c)c=c[e];else{u=false;break}}if(u)l[d]=c}this.buildWidget({properties:a,settings:new h.BaseSettings({schema:this._metadataSchema}),uiSchema:this._uiSchema,translator:this.translator||null,formData:l,metadataFormWidget:this,showModified:this._showModified,pluginId:this._pluginId})}}var f;(function(e){function t(e,n){let i=n.shift();if(i!==undefined&&i in e){if(Object.keys(e[i]).length)e[i]=t(e[i],n);if(!Object.keys(e[i]).length)delete e[i]}return e}e.deleteEmptyNested=t})(f||(f={}));class v{constructor(){this._items={}}add(e,t){if(!this._items[e]){this._items[e]=t}else{console.warn(`A MetadataformWidget is already registered with id ${e}`)}}get(e){if(this._items[e]){return this._items[e]}else{console.warn(`There is no MetadataformWidget registered with id ${e}`)}}}const _=new p.Token("@jupyterlab/metadataform:IMetadataFormProvider",`A service to register new metadata editor widgets.`)},69540:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(28006);var a=n(85072);var l=n.n(a);var d=n(97825);var c=n.n(d);var h=n(77659);var u=n.n(h);var p=n(55056);var m=n.n(p);var g=n(10540);var f=n.n(g);var v=n(41113);var _=n.n(v);var b=n(62129);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.A,y);const C=b.A&&b.A.locals?b.A.locals:undefined},15555:(e,t,n)=>{"use strict";n.r(t);n.d(t,{MAJOR_VERSION:()=>o,MINOR_VERSION:()=>r,isCode:()=>c,isDisplayData:()=>u,isDisplayUpdate:()=>p,isError:()=>g,isExecuteResult:()=>h,isMarkdown:()=>d,isRaw:()=>l,isStream:()=>m,validateMimeValue:()=>a});var i=n(5592);var s=n.n(i);const o=4;const r=4;function a(e,t){const n=/^application\/.+\+json$/;const s=e==="application/json"||n.test(e);const o=e=>Object.prototype.toString.call(e)==="[object String]";if(Array.isArray(t)){if(s){return false}let e=true;t.forEach((t=>{if(!o(t)){e=false}}));return e}if(o(t)){return!s}if(!s){return false}return i.JSONExt.isObject(t)}function l(e){return e.cell_type==="raw"}function d(e){return e.cell_type==="markdown"}function c(e){return e.cell_type==="code"}function h(e){return e.output_type==="execute_result"}function u(e){return e.output_type==="display_data"}function p(e){return e.output_type==="update_display_data"}function m(e){return e.output_type==="stream"}function g(e){return e.output_type==="error"}},65463:(e,t,n)=>{"use strict";n.r(t);n.d(t,{commandEditItem:()=>se,default:()=>xe,executionIndicator:()=>oe,exportPlugin:()=>re,notebookTrustItem:()=>ae});var i=n(88617);var s=n(38850);var o=n(88459);var r=n(44389);var a=n(40959);var l=n(45713);var d=n(25481);var c=n(11927);var h=n(62019);var u=n(41043);var p=n(44577);var m=n(46417);var g=n(71681);var f=n(89433);var v=n(54103);var _=n(74823);var b=n(67987);var y=n(95513);var w=n(40065);var C=n(78629);var x=n(4625);var S=n(72011);var j=n(34881);var k=n(4073);var I=n(34236);var T=n(5592);var E=n(90044);var M=n(42856);var D=n(27518);var A=n(65833);const P={id:"@jupyterlab/notebook-extension:cell-executor",description:"Provides the notebook cell executor.",autoStart:true,provides:_.INotebookCellExecutor,activate:()=>Object.freeze({runCell:_.runCell})};var L=n(35555);var R=n(49278);const N={activate:B,id:"@jupyterlab/notebook-extension:log-output",description:"Adds cell outputs log to the application logger.",requires:[_.INotebookTracker],optional:[L.ILoggerRegistry],autoStart:true};function B(e,t,n){if(!n){return}function i(e){function t(t,i,s){if(R.KernelMessage.isDisplayDataMsg(t)||R.KernelMessage.isStreamMsg(t)||R.KernelMessage.isErrorMsg(t)||R.KernelMessage.isExecuteResultMsg(t)){const o=n.getLogger(e.context.path);o.rendermime=e.content.rendermime;const r={...t.content,output_type:t.header.msg_type};let a=i;if(R.KernelMessage.isErrorMsg(t)||R.KernelMessage.isStreamMsg(t)&&t.content.name==="stderr"){a=s}o.log({type:"output",data:r,level:a})}}e.context.sessionContext.iopubMessage.connect(((e,n)=>t(n,"info","info")));e.context.sessionContext.unhandledMessage.connect(((e,n)=>t(n,"warning","error")))}t.forEach((e=>i(e)));t.widgetAdded.connect(((e,t)=>i(t)))}var O=n(44914);var F=n.n(O);var z=n(26568);const W="jp-ActiveCellTool";const H="jp-ActiveCellTool-Content";const V="jp-ActiveCellTool-CellContent";class U extends _.NotebookTools.Tool{constructor(e){super();const{languages:t}=e;this._tracker=e.tracker;this.addClass(W);this.layout=new D.PanelLayout;this._inputPrompt=new o.InputPrompt;this.layout.addWidget(this._inputPrompt);const n=document.createElement("div");n.classList.add(H);const i=n.appendChild(document.createElement("div"));const s=i.appendChild(document.createElement("pre"));i.className=V;this._editorEl=s;this.layout.addWidget(new D.Widget({node:n}));const r=async()=>{var e,n;this._editorEl.innerHTML="";if(((e=this._cellModel)===null||e===void 0?void 0:e.type)==="code"){this._inputPrompt.executionCount=`${(n=this._cellModel.executionCount)!==null&&n!==void 0?n:""}`;this._inputPrompt.show()}else{this._inputPrompt.executionCount=null;this._inputPrompt.hide()}if(this._cellModel){await t.highlight(this._cellModel.sharedModel.getSource().split("\n")[0],t.findByMIME(this._cellModel.mimeType),this._editorEl)}};this._refreshDebouncer=new z.Debouncer(r,150)}render(e){var t,n;const i=this._tracker.activeCell;if(i)this._cellModel=(i===null||i===void 0?void 0:i.model)||null;((t=this._cellModel)===null||t===void 0?void 0:t.sharedModel).changed.connect(this.refresh,this);(n=this._cellModel)===null||n===void 0?void 0:n.mimeTypeChanged.connect(this.refresh,this);this.refresh().then((()=>undefined)).catch((()=>undefined));return F().createElement("div",{ref:e=>e===null||e===void 0?void 0:e.appendChild(this.node)})}async refresh(){await this._refreshDebouncer.invoke()}}var q=n(23230);const $="jp-CellMetadataEditor";const K="jp-NotebookMetadataEditor";class J extends _.NotebookTools.MetadataEditorTool{constructor(e){super(e);this._tracker=e.tracker;this.editor.editorHostNode.addEventListener("blur",this.editor,true);this.editor.editorHostNode.addEventListener("click",this.editor,true);this.editor.headerNode.addEventListener("click",this.editor)}_onSourceChanged(){var e,t,n;const i=(e=this._tracker.activeCell)===null||e===void 0?void 0:e.model.sharedModel;if(i&&this.editor.source){const e=Object.keys((t=i.metadata)!==null&&t!==void 0?t:{});const s=(n=this.editor.source.toJSON())!==null&&n!==void 0?n:{};i.transact((()=>{e.forEach((e=>i.deleteMetadata(e)));i.setMetadata(s)}))}}render(e){var t;const n=this._tracker.activeCell;this.editor.source=n?new q.ObservableJSON({values:n.model.metadata}):null;(t=this.editor.source)===null||t===void 0?void 0:t.changed.connect(this._onSourceChanged,this);return F().createElement("div",{className:$},F().createElement("div",{ref:e=>e===null||e===void 0?void 0:e.appendChild(this.node)}))}}class G extends _.NotebookTools.MetadataEditorTool{constructor(e){super(e);this._tracker=e.tracker;this.editor.editorHostNode.addEventListener("blur",this.editor,true);this.editor.editorHostNode.addEventListener("click",this.editor,true);this.editor.headerNode.addEventListener("click",this.editor)}_onSourceChanged(){var e,t;if(this.editor.source){(t=(e=this._tracker.currentWidget)===null||e===void 0?void 0:e.model)===null||t===void 0?void 0:t.sharedModel.setMetadata(this.editor.source.toJSON())}}render(e){var t,n;const i=this._tracker.currentWidget;this.editor.source=i?new q.ObservableJSON({values:(t=i.model)===null||t===void 0?void 0:t.metadata}):null;(n=this.editor.source)===null||n===void 0?void 0:n.changed.connect(this._onSourceChanged,this);return F().createElement("div",{className:K},F().createElement("div",{ref:e=>e===null||e===void 0?void 0:e.appendChild(this.node)}))}}var Y;(function(e){e.createNew="notebook:create-new";e.interrupt="notebook:interrupt-kernel";e.restart="notebook:restart-kernel";e.restartClear="notebook:restart-clear-output";e.restartAndRunToSelected="notebook:restart-and-run-to-selected";e.restartRunAll="notebook:restart-run-all";e.reconnectToKernel="notebook:reconnect-to-kernel";e.changeKernel="notebook:change-kernel";e.getKernel="notebook:get-kernel";e.createConsole="notebook:create-console";e.createSubshellConsole="notebook:create-subshell-console";e.createOutputView="notebook:create-output-view";e.clearAllOutputs="notebook:clear-all-cell-outputs";e.shutdown="notebook:shutdown-kernel";e.closeAndShutdown="notebook:close-and-shutdown";e.trust="notebook:trust";e.exportToFormat="notebook:export-to-format";e.run="notebook:run-cell";e.runAndAdvance="notebook:run-cell-and-select-next";e.runAndInsert="notebook:run-cell-and-insert-below";e.runInConsole="notebook:run-in-console";e.runAll="notebook:run-all-cells";e.runAllAbove="notebook:run-all-above";e.runAllBelow="notebook:run-all-below";e.renderAllMarkdown="notebook:render-all-markdown";e.toCode="notebook:change-cell-to-code";e.toMarkdown="notebook:change-cell-to-markdown";e.toRaw="notebook:change-cell-to-raw";e.cut="notebook:cut-cell";e.copy="notebook:copy-cell";e.pasteAbove="notebook:paste-cell-above";e.pasteBelow="notebook:paste-cell-below";e.duplicateBelow="notebook:duplicate-below";e.pasteAndReplace="notebook:paste-and-replace-cell";e.moveUp="notebook:move-cell-up";e.moveDown="notebook:move-cell-down";e.clearOutputs="notebook:clear-cell-output";e.deleteCell="notebook:delete-cell";e.insertAbove="notebook:insert-cell-above";e.insertBelow="notebook:insert-cell-below";e.selectAbove="notebook:move-cursor-up";e.selectBelow="notebook:move-cursor-down";e.selectHeadingAboveOrCollapse="notebook:move-cursor-heading-above-or-collapse";e.selectHeadingBelowOrExpand="notebook:move-cursor-heading-below-or-expand";e.insertHeadingAbove="notebook:insert-heading-above";e.insertHeadingBelow="notebook:insert-heading-below";e.extendAbove="notebook:extend-marked-cells-above";e.extendTop="notebook:extend-marked-cells-top";e.extendBelow="notebook:extend-marked-cells-below";e.extendBottom="notebook:extend-marked-cells-bottom";e.selectAll="notebook:select-all";e.deselectAll="notebook:deselect-all";e.editMode="notebook:enter-edit-mode";e.merge="notebook:merge-cells";e.mergeAbove="notebook:merge-cell-above";e.mergeBelow="notebook:merge-cell-below";e.split="notebook:split-cell-at-cursor";e.commandMode="notebook:enter-command-mode";e.toggleAllLines="notebook:toggle-all-cell-line-numbers";e.undoCellAction="notebook:undo-cell-action";e.redoCellAction="notebook:redo-cell-action";e.redo="notebook:redo";e.undo="notebook:undo";e.markdown1="notebook:change-cell-to-heading-1";e.markdown2="notebook:change-cell-to-heading-2";e.markdown3="notebook:change-cell-to-heading-3";e.markdown4="notebook:change-cell-to-heading-4";e.markdown5="notebook:change-cell-to-heading-5";e.markdown6="notebook:change-cell-to-heading-6";e.hideCode="notebook:hide-cell-code";e.showCode="notebook:show-cell-code";e.hideAllCode="notebook:hide-all-cell-code";e.showAllCode="notebook:show-all-cell-code";e.hideOutput="notebook:hide-cell-outputs";e.showOutput="notebook:show-cell-outputs";e.toggleOutput="notebook:toggle-cell-outputs";e.hideAllOutputs="notebook:hide-all-cell-outputs";e.showAllOutputs="notebook:show-all-cell-outputs";e.toggleRenderSideBySideCurrentNotebook="notebook:toggle-render-side-by-side-current";e.setSideBySideRatio="notebook:set-side-by-side-ratio";e.enableOutputScrolling="notebook:enable-output-scrolling";e.disableOutputScrolling="notebook:disable-output-scrolling";e.selectLastRunCell="notebook:select-last-run-cell";e.replaceSelection="notebook:replace-selection";e.autoClosingBrackets="notebook:toggle-autoclosing-brackets";e.toggleCollapseCmd="notebook:toggle-heading-collapse";e.collapseAllCmd="notebook:collapse-all-headings";e.expandAllCmd="notebook:expand-all-headings";e.copyToClipboard="notebook:copy-to-clipboard";e.invokeCompleter="completer:invoke-notebook";e.selectCompleter="completer:select-notebook";e.tocRunCells="toc:run-cells";e.accessPreviousHistory="notebook:access-previous-history-entry";e.accessNextHistory="notebook:access-next-history-entry";e.virtualScrollbar="notebook:toggle-virtual-scrollbar"})(Y||(Y={}));const X="Notebook";const Q=["notebook","python","custom"];const Z="@jupyterlab/notebook-extension:panel";const ee="jp-NotebookExtension-sideBySideMargins";const te={id:"@jupyterlab/notebook-extension:tracker",description:"Provides the notebook widget tracker.",provides:_.INotebookTracker,requires:[_.INotebookWidgetFactory,l.IEditorExtensionRegistry,_.INotebookCellExecutor],optional:[s.ICommandPalette,p.IDefaultFileBrowser,m.ILauncher,i.ILayoutRestorer,f.IMainMenu,i.IRouter,w.ISettingRegistry,s.ISessionContextDialogs,j.ITranslator,k.IFormRendererRegistry,p.IFileBrowserFactory],activate:Ee,autoStart:true};const ne={id:"@jupyterlab/notebook-extension:factory",description:"Provides the notebook cell factory.",provides:_.NotebookPanel.IContentFactory,requires:[r.IEditorServices],autoStart:true,activate:(e,t)=>{const n=t.factoryService.newInlineEditor;return new _.NotebookPanel.ContentFactory({editorFactory:n})}};const ie={activate:Se,provides:_.INotebookTools,id:"@jupyterlab/notebook-extension:tools",description:"Provides the notebook tools.",autoStart:true,requires:[_.INotebookTracker,r.IEditorServices,l.IEditorLanguageRegistry,C.IStateDB,j.ITranslator],optional:[b.IPropertyInspectorProvider]};const se={id:"@jupyterlab/notebook-extension:mode-status",description:"Adds a notebook mode status widget.",autoStart:true,requires:[_.INotebookTracker,j.ITranslator],optional:[x.IStatusBar],activate:(e,t,n,i)=>{if(!i){return}const{shell:s}=e;const o=new _.CommandEditStatus(n);t.currentChanged.connect((()=>{const e=t.currentWidget;o.model.notebook=e&&e.content}));i.registerStatusItem("@jupyterlab/notebook-extension:mode-status",{priority:1,item:o,align:"right",rank:4,isActive:()=>!!s.currentWidget&&!!t.currentWidget&&s.currentWidget===t.currentWidget})}};const oe={id:"@jupyterlab/notebook-extension:execution-indicator",description:"Adds a notebook execution status widget.",autoStart:true,requires:[_.INotebookTracker,i.ILabShell,j.ITranslator],optional:[x.IStatusBar,w.ISettingRegistry],activate:(e,t,n,i,s,o)=>{let r;let a;let l;const d=e=>{var o,d;let{showOnToolBar:c,showProgress:h,showJumpToCell:u}=e;if(!c){if(!s){return}if(!(r===null||r===void 0?void 0:r.model)){r=new _.ExecutionIndicator(i);a=(e,n)=>{const{newValue:i}=n;if(i&&t.has(i)){const e=i;r.model.attachNotebook({content:e.content,context:e.sessionContext})}};l=s.registerStatusItem("@jupyterlab/notebook-extension:execution-indicator",{item:r,align:"left",rank:3,isActive:()=>{const e=n.currentWidget;return!!e&&t.has(e)}});r.model.attachNotebook({content:(o=t.currentWidget)===null||o===void 0?void 0:o.content,context:(d=t.currentWidget)===null||d===void 0?void 0:d.sessionContext});n.currentChanged.connect(a);r.disposed.connect((()=>{n.currentChanged.disconnect(a)}))}r.model.displayOption={showOnToolBar:c,showProgress:h,showJumpToCell:u}}else{if(l){n.currentChanged.disconnect(a);l.dispose()}}};if(o){const t=o.load(te.id);Promise.all([t,e.restored]).then((([e])=>{d(_.ExecutionIndicator.getSettingValue(e));e.changed.connect((e=>d(_.ExecutionIndicator.getSettingValue(e))))})).catch((e=>{console.error(e.message)}))}}};const re={id:"@jupyterlab/notebook-extension:export",description:"Adds the export notebook commands.",autoStart:true,requires:[j.ITranslator,_.INotebookTracker],optional:[f.IMainMenu,s.ICommandPalette],activate:(e,t,n,i,s)=>{var o;const r=t.load("jupyterlab");const{commands:a,shell:l}=e;const d=e.serviceManager;const c=()=>Ne.isEnabled(l,n);a.addCommand(Y.exportToFormat,{label:e=>{if(e.label===undefined){return r.__("Save and Export Notebook to the given `format`.")}const t=e["label"];return e["isPalette"]?r.__("Save and Export Notebook: %1",t):t},execute:async e=>{var t,i;const s=Ae(n,l,e);if(!s){return}const{context:o}=s;const r={format:e["format"],path:s.context.path,exporterOptions:{download:true}};if(o.model.dirty&&!o.model.readOnly){await o.save()}return(i=(t=d.nbconvert).exportAs)===null||i===void 0?void 0:i.call(t,r)},isEnabled:c,describedBy:{args:{type:"object",properties:{format:{type:"string",description:r.__("The export format (e.g., pdf, html, latex)")},label:{type:"string",description:r.__("The label to display for this format")},isPalette:{type:"boolean",description:r.__("Whether the command is called from the command palette")}},required:["format"]}}});let h;if(i){h=(o=i.fileMenu.items.find((e=>{var t;return e.type==="submenu"&&((t=e.submenu)===null||t===void 0?void 0:t.id)==="jp-mainmenu-file-notebookexport"})))===null||o===void 0?void 0:o.submenu}let u=false;const p=async()=>{if(u){return}n.widgetAdded.disconnect(p);u=true;const e=await d.nbconvert.getExportFormats(false);if(!e){return}const i=Ne.getFormatLabels(t);const o=Object.keys(e);o.forEach((function(e){const t=r.__(e[0].toUpperCase()+e.substr(1));const n=i[e]?i[e]:t;let o={format:e,label:n,isPalette:false};if(Q.indexOf(e)===-1){if(h){h.addItem({command:Y.exportToFormat,args:o})}if(s){o={format:e,label:n,isPalette:true};const t=r.__("Notebook Operations");s.addItem({command:Y.exportToFormat,category:t,args:o})}}}))};n.widgetAdded.connect(p)}};const ae={id:"@jupyterlab/notebook-extension:trust-status",description:"Adds the notebook trusted status widget.",autoStart:true,requires:[_.INotebookTracker,j.ITranslator],optional:[x.IStatusBar],activate:(e,t,n,i)=>{if(!i){return}const{shell:s}=e;const o=new _.NotebookTrustStatus(n);t.currentChanged.connect((()=>{const e=t.currentWidget;o.model.notebook=e&&e.content}));i.registerStatusItem("@jupyterlab/notebook-extension:trust-status",{item:o,align:"right",rank:3,isActive:()=>!!s.currentWidget&&!!t.currentWidget&&s.currentWidget===t.currentWidget})}};const le={id:"@jupyterlab/notebook-extension:widget-factory",description:"Provides the notebook widget factory.",provides:_.INotebookWidgetFactory,requires:[_.NotebookPanel.IContentFactory,r.IEditorServices,y.IRenderMimeRegistry,s.IToolbarWidgetRegistry],optional:[w.ISettingRegistry,s.ISessionContextDialogs,j.ITranslator],activate:je,autoStart:true};const de={id:"@jupyterlab/notebook-extension:cloned-outputs",description:"Adds the clone output feature.",requires:[c.IDocumentManager,_.INotebookTracker,j.ITranslator],optional:[i.ILayoutRestorer],activate:ke,autoStart:true};const ce={id:"@jupyterlab/notebook-extension:code-console",description:"Adds the notebook code consoles features.",requires:[_.INotebookTracker,j.ITranslator],activate:Ie,autoStart:true};const he={id:"@jupyterlab/notebook-extension:copy-output",description:"Adds the copy cell outputs feature.",activate:Te,requires:[j.ITranslator,_.INotebookTracker],autoStart:true};const ue={id:"@jupyterlab/notebook-extension:kernel-status",description:"Adds the notebook kernel status.",activate:(e,t,n)=>{const i=e=>{let n=null;if(e&&t.has(e)){return e.sessionContext}return n};n.addSessionProvider(i)},requires:[_.INotebookTracker,s.IKernelStatusModel],autoStart:true};const pe={id:"@jupyterlab/notebook-extension:cursor-position",description:"Adds the notebook cursor position status.",activate:(e,t,n)=>{let i=null;const s=async e=>{let s=null;if(e!==i){i===null||i===void 0?void 0:i.content.activeCellChanged.disconnect(n.update);i=null;if(e&&t.has(e)){e.content.activeCellChanged.connect(n.update);const t=e.content.activeCell;s=null;if(t){await t.ready;s=t.editor}i=e}}else if(e){const t=e.content.activeCell;s=null;if(t){await t.ready;s=t.editor}}return s};n.addEditorProvider(s)},requires:[_.INotebookTracker,r.IPositionModel],autoStart:true};const me={id:"@jupyterlab/notebook-extension:completer",description:"Adds the code completion capability to notebooks.",requires:[_.INotebookTracker],optional:[d.ICompletionProviderManager,j.ITranslator,s.ISanitizer],activate:Me,autoStart:true};const ge={id:"@jupyterlab/notebook-extension:search",description:"Adds search capability to notebooks.",requires:[u.ISearchProviderRegistry],autoStart:true,activate:(e,t)=>{t.add("jp-notebookSearchProvider",_.NotebookSearchProvider)}};const fe={id:"@jupyterlab/notebook-extension:toc",description:"Adds table of content capability to the notebooks",requires:[_.INotebookTracker,S.ITableOfContentsRegistry,s.ISanitizer],optional:[y.IMarkdownParser,w.ISettingRegistry],autoStart:true,activate:(e,t,n,i,s,o)=>{const r=new _.NotebookToCFactory(t,s,i);n.add(r);if(o){Promise.all([e.restored,o.load(te.id)]).then((([e,t])=>{const n=()=>{var e;r.scrollToTop=(e=t.composite["scrollHeadingToTop"])!==null&&e!==void 0?e:true};n();t.changed.connect(n)})).catch((e=>{console.error("Failed to load notebook table of content settings.",e)}))}}};const ve={id:"@jupyterlab/notebook-extension:language-server",description:"Adds language server capability to the notebooks.",requires:[_.INotebookTracker,g.ILSPDocumentConnectionManager,g.ILSPFeatureManager,g.ILSPCodeExtractorsManager,g.IWidgetLSPAdapterTracker],activate:De,autoStart:true};const _e={id:"@jupyterlab/notebook-extension:update-raw-mimetype",description:"Adds metadata form editor for raw cell mimetype.",autoStart:true,requires:[_.INotebookTracker,v.IMetadataFormProvider,j.ITranslator],activate:(e,t,n,i)=>{const s=i.load("jupyterlab");let o=false;async function r(){if(o){return}if(!n.get("commonToolsSection")){return}const a=n.get("commonToolsSection").getProperties("/raw_mimetype");if(!a){return}t.widgetAdded.disconnect(r);o=true;const l=e.serviceManager;const d=await l.nbconvert.getExportFormats(false);if(!d){return}const c=Object.keys(d);const h=Ne.getFormatLabels(i);c.forEach((function(e){var t;const n=((t=a.oneOf)===null||t===void 0?void 0:t.filter((t=>t.const===e)).length)>0;if(!n){const t=s.__(e[0].toUpperCase()+e.substr(1));const n=h[e]?h[e]:t;const i=d[e].output_mimetype;a.oneOf.push({const:i,title:n})}}));n.get("commonToolsSection").setProperties("/raw_mimetype",a)}t.widgetAdded.connect(r)}};const be={id:"@jupyterlab/notebook-extension:metadata-editor",description:"Adds metadata form for full metadata editor.",autoStart:true,requires:[_.INotebookTracker,r.IEditorServices,k.IFormRendererRegistry],optional:[j.ITranslator],activate:(e,t,n,i,s)=>{const o=e=>n.factoryService.newInlineEditor(e);const r={fieldRenderer:e=>new J({editorFactory:o,tracker:t,label:"Cell metadata",translator:s}).render(e)};i.addRenderer("@jupyterlab/notebook-extension:metadata-editor.cell-metadata",r);const a={fieldRenderer:e=>new G({editorFactory:o,tracker:t,label:"Notebook metadata",translator:s}).render(e)};i.addRenderer("@jupyterlab/notebook-extension:metadata-editor.notebook-metadata",a)}};const ye={id:"@jupyterlab/notebook-extension:active-cell-tool",description:"Adds active cell field in the metadata editor tab.",autoStart:true,requires:[_.INotebookTracker,k.IFormRendererRegistry,l.IEditorLanguageRegistry],activate:(e,t,n,i)=>{const s={fieldRenderer:e=>new U({tracker:t,languages:i}).render(e)};n.addRenderer("@jupyterlab/notebook-extension:active-cell-tool.renderer",s)}};const we={id:"@jupyterlab/notebook-extension:open-with-no-kernel",description:'Adds the "Notebook (no kernel)" option to the Open With menu.',requires:[p.IFileBrowserFactory],optional:[j.ITranslator],autoStart:true,activate:(e,t,n)=>{const{tracker:i}=t;const s=(n!==null&&n!==void 0?n:j.nullTranslator).load("jupyterlab");const o=[];function r(e){var t,n;o.forEach((e=>e.dispose()));o.length=0;const r=(n=(t=e.menu.items.find((e=>{var t;return e.type==="submenu"&&((t=e.submenu)===null||t===void 0?void 0:t.id)==="jp-contextmenu-open-with"})))===null||t===void 0?void 0:t.submenu)!==null&&n!==void 0?n:null;if(!r){return}const a=i.currentWidget?Array.from(i.currentWidget.selectedItems()):[];const l=a.some((e=>e.type==="notebook"));if(l){o.push(r.addItem({command:"filebrowser:open",args:{label:s.__("Notebook (no kernel)"),factory:X,kernelPreference:{shouldStart:false}}}))}}e.contextMenu.opened.connect(r)}};const Ce=[P,ne,te,oe,re,ie,se,ae,le,N,de,ce,he,ue,pe,me,ge,fe,ve,_e,be,ye,we];const xe=Ce;function Se(e,t,n,i,s,o,r){const a=o.load("jupyterlab");const l="notebook-tools";const d=new _.NotebookTools({tracker:t,translator:o});const c=(e,t)=>{switch(t.type){case"activate-request":void s.save(l,{open:true});break;case"after-hide":case"close-request":void s.remove(l);break;default:break}return true};d.title.icon=k.buildIcon;d.title.caption=a.__("Notebook Tools");d.id=l;M.MessageLoop.installMessageHook(d,c);if(r){t.widgetAdded.connect(((e,t)=>{const n=r.register(t);n.render(d)}))}return d}function je(e,t,n,i,o,r,l,d){const c=d!==null&&d!==void 0?d:j.nullTranslator;const u=l!==null&&l!==void 0?l:new s.SessionContextDialogs({translator:c});const p=a.PageConfig.getOption("notebookStartsKernel");const m=p===""||p.toLowerCase()==="true";const{commands:g}=e;let f;o.addFactory(X,"save",(e=>h.ToolbarItems.createSaveButton(g,e.context.fileChanged)));o.addFactory(X,"cellType",(e=>_.ToolbarItems.createCellTypeItem(e,c)));o.addFactory(X,"kernelName",(e=>s.Toolbar.createKernelNameItem(e.sessionContext,u,c)));o.addFactory(X,"executionProgress",(e=>{const t=r===null||r===void 0?void 0:r.load(te.id);const n=_.ExecutionIndicator.createExecutionIndicatorItem(e,c,t);void(t===null||t===void 0?void 0:t.then((t=>{e.disposed.connect((()=>{t.dispose()}))})));return n}));if(r){f=(0,s.createToolbarFactory)(o,r,X,Z,c)}const v=c.load("jupyterlab");const b=new _.NotebookWidgetFactory({name:X,label:v.__("Notebook"),fileTypes:["notebook"],modelName:"notebook",defaultFor:["notebook"],preferKernel:m,canStartKernel:true,rendermime:i,contentFactory:t,editorConfig:_.StaticNotebook.defaultEditorConfig,notebookConfig:_.StaticNotebook.defaultNotebookConfig,mimeTypeService:n.mimeTypeService,toolbarFactory:f,translator:c});e.docRegistry.addWidgetFactory(b);return b}function ke(e,t,n,i,o){const r=i.load("jupyterlab");const a=new s.WidgetTracker({namespace:"cloned-outputs"});if(o){void o.restore(a,{command:Y.createOutputView,args:e=>({path:e.content.path,index:e.content.index}),name:e=>`${e.content.path}:${e.content.index}`,when:n.restored})}const{commands:l,shell:d}=e;const c=()=>Ne.isEnabledAndSingleSelected(d,n);l.addCommand(Y.createOutputView,{label:r.__("Create New View for Cell Output"),execute:async e=>{var o;let r;let l;const d=e.path;let c=e.index;if(d&&c!==undefined&&c!==null){l=t.findWidget(d,X);if(!l){return}}else{l=n.currentWidget;if(!l){return}r=l.content.activeCell;c=l.content.activeCellIndex}const h=new Ne.ClonedOutputArea({notebook:l,cell:r,index:c,translator:i});const u=new s.MainAreaWidget({content:h});l.context.addSibling(u,{ref:l.id,mode:"split-bottom",type:"Cloned Output"});const p=()=>{void a.save(u)};l.context.pathChanged.connect(p);(o=l.context.model)===null||o===void 0?void 0:o.cells.changed.connect(p);void a.add(u);l.content.disposed.connect((()=>{var e;l.context.pathChanged.disconnect(p);(e=l.context.model)===null||e===void 0?void 0:e.cells.changed.disconnect(p);u.dispose()}))},isEnabled:c,describedBy:{args:{type:"object",properties:{path:{type:"string",description:r.__("The path to the notebook containing the cell")},index:{type:"number",description:r.__("The index of the cell to create an output view for")}}}}})}function Ie(e,t,n){const i=n.load("jupyterlab");const{commands:s,shell:o}=e;const r=()=>Ne.isEnabled(o,t);s.addCommand(Y.createConsole,{label:i.__("New Console for Notebook"),execute:e=>{const n=t.currentWidget;if(!n){return}return Ne.createConsole(s,n,e["activate"])},isEnabled:r,describedBy:{args:{type:"object",properties:{activate:{type:"boolean",description:i.__("Whether to activate the console after creation")}}}}});s.addCommand(Y.createSubshellConsole,{label:i.__("New Subshell Console for Notebook"),execute:e=>{const n=t.currentWidget;if(!n){return}return Ne.createConsole(s,n,e["activate"],true)},isEnabled:r,isVisible:()=>{var e,n,i;const s=(n=(e=t.currentWidget)===null||e===void 0?void 0:e.context.sessionContext.session)===null||n===void 0?void 0:n.kernel;return(i=s===null||s===void 0?void 0:s.supportsSubshells)!==null&&i!==void 0?i:false},describedBy:{args:{type:"object",properties:{activate:{type:"boolean",description:i.__("Whether to activate the console after creation")}}}}});s.addCommand(Y.runInConsole,{label:i.__("Run Selected Text or Current Line in Console"),execute:async e=>{var n,i;const o=t.currentWidget;if(!o){return}const{context:r,content:a}=o;const l=a.activeCell;const d=l===null||l===void 0?void 0:l.model.metadata;const c=r.path;if(!l||l.model.type!=="code"){return}let h;const u=l.editor;if(!u){return}const p=u.getSelection();const{start:m,end:g}=p;const f=m.column!==g.column||m.line!==g.line;if(f){const e=u.getOffsetAt(p.start);const t=u.getOffsetAt(p.end);h=u.model.sharedModel.getSource().substring(e,t)}else{const e=u.getCursorPosition();const t=u.model.sharedModel.getSource().split("\n");let s=p.start.line;while(s0;let a=0;let l=a+1;while(true){h=t.slice(a,l).join("\n");const d=await((i=(n=o.context.sessionContext.session)===null||n===void 0?void 0:n.kernel)===null||i===void 0?void 0:i.requestIsComplete({code:h+"\n\n"}));if((d===null||d===void 0?void 0:d.content.status)==="complete"){if(st.addRange(e)))}e.commands.addCommand(Y.copyToClipboard,{label:i.__("Copy Output to Clipboard"),execute:e=>{var t;const i=(t=n.currentWidget)===null||t===void 0?void 0:t.content.activeCell;if(i==null){return}const o=i.outputArea.outputTracker.currentWidget;if(o==null){return}const r=o.node.getElementsByClassName("jp-OutputArea-output");if(r.length>0){const e=r[0];s(e)}},describedBy:{args:{type:"object",properties:{}}}});e.contextMenu.addItem({command:Y.copyToClipboard,selector:".jp-Notebook .jp-OutputArea-child",rank:0})}function Ee(e,t,n,i,o,r,a,l,d,c,h,u,p,m,g){(0,_.setCellExecutor)(i);const f=p!==null&&p!==void 0?p:j.nullTranslator;const v=u!==null&&u!==void 0?u:new s.SessionContextDialogs({translator:f});const b=f.load("jupyterlab");const y=e.serviceManager;const{commands:w,shell:C}=e;const x=new _.NotebookTracker({namespace:"notebook"});function S(e,t){if(t.hash&&x.currentWidget){x.currentWidget.setFragment(t.hash)}}c===null||c===void 0?void 0:c.routed.connect(S);const I=()=>Ne.isEnabled(C,x);const M=e=>document.documentElement.style.setProperty("--jp-side-by-side-output-size",`${e}fr`);const D=h?h.load(te.id):Promise.reject(new Error(`No setting registry for ${te.id}`));D.then((t=>{B(t);t.changed.connect((()=>{B(t);w.notifyCommandChanged(Y.virtualScrollbar)}));const i=(e,n)=>{const{newValue:i,oldValue:s}=n;const o=i.autoStartDefault;if(typeof o==="boolean"&&o!==s.autoStartDefault){if(o!==t.get("autoStartDefaultKernel").composite)t.set("autoStartDefaultKernel",o).catch((e=>{console.error(`Failed to set ${t.id}.autoStartDefaultKernel`)}))}};const o=new WeakSet;const r=e=>{const t=e.context.sessionContext;if(!t.isDisposed&&!o.has(t)){o.add(t);t.kernelPreferenceChanged.connect(i);t.disposed.connect((()=>{t.kernelPreferenceChanged.disconnect(i)}))}};x.forEach(r);x.widgetAdded.connect(((e,t)=>{r(t)}));w.addCommand(Y.autoClosingBrackets,{execute:e=>{var n;const i=t.get("codeCellConfig").composite;const s=t.get("markdownCellConfig").composite;const o=t.get("rawCellConfig").composite;const r=i.autoClosingBrackets||s.autoClosingBrackets||o.autoClosingBrackets;const a=!!((n=e["force"])!==null&&n!==void 0?n:!r);[i.autoClosingBrackets,s.autoClosingBrackets,o.autoClosingBrackets]=[a,a,a];void t.set("codeCellConfig",i);void t.set("markdownCellConfig",s);void t.set("rawCellConfig",o)},label:b.__("Auto Close Brackets for All Notebook Cell Types"),isToggled:()=>["codeCellConfig","markdownCellConfig","rawCellConfig"].some((e=>{var i;return((i=t.get(e).composite.autoClosingBrackets)!==null&&i!==void 0?i:n.baseConfiguration["autoClosingBrackets"])===true})),describedBy:{args:{type:"object",properties:{force:{type:"boolean",description:b.__("Force toggling the auto closing brackets setting")}}}}});w.addCommand(Y.setSideBySideRatio,{label:b.__("Set side-by-side ratio"),execute:e=>{s.InputDialog.getNumber({title:b.__("Width of the output in side-by-side mode"),value:t.get("sideBySideOutputRatio").composite}).then((e=>{M(e.value);if(e.value){void t.set("sideBySideOutputRatio",e.value)}})).catch(console.error)},describedBy:{args:{type:"object",properties:{}}}});Pe(e,x,f,v,t,I)})).catch((n=>{console.warn(n.message);N({editorConfig:t.editorConfig,notebookConfig:t.notebookConfig,kernelShutdown:t.shutdownOnClose,autoStartDefault:t.autoStartDefault});Pe(e,x,f,v,null,I)}));if(m){const e=m.getRenderer("@jupyterlab/codemirror-extension:plugin.defaultConfig");if(e){m.addRenderer("@jupyterlab/notebook-extension:tracker.codeCellConfig",e);m.addRenderer("@jupyterlab/notebook-extension:tracker.markdownCellConfig",e);m.addRenderer("@jupyterlab/notebook-extension:tracker.rawCellConfig",e)}}if(l){void l.restore(x,{command:"docmanager:open",args:e=>({path:e.context.path,factory:X}),name:e=>e.context.path,when:y.ready})}const A=e.docRegistry;const P=new _.NotebookModelFactory({disableDocumentWideUndoRedo:t.notebookConfig.disableDocumentWideUndoRedo,collaborative:true});A.addModelFactory(P);if(o){Le(o,f)}let L=0;const R=e.docRegistry.getFileType("notebook");t.widgetCreated.connect(((e,n)=>{var i,s,o;n.id=n.id||`notebook-${++L}`;n.title.icon=R===null||R===void 0?void 0:R.icon;n.title.iconClass=(i=R===null||R===void 0?void 0:R.iconClass)!==null&&i!==void 0?i:"";n.title.iconLabel=(s=R===null||R===void 0?void 0:R.iconLabel)!==null&&s!==void 0?s:"";n.content.scrollbar=(o=t.notebookConfig.showMinimap)!==null&&o!==void 0?o:false;n.context.pathChanged.connect((()=>{void x.save(n)}));void x.add(n)}));function N(e){x.forEach((t=>{var n;t.setConfig(e);t.content.scrollbar=(n=e.notebookConfig.showMinimap)!==null&&n!==void 0?n:false}))}function B(e){const n={..._.StaticNotebook.defaultEditorConfig.code,...e.get("codeCellConfig").composite};const i={..._.StaticNotebook.defaultEditorConfig.markdown,...e.get("markdownCellConfig").composite};const s={..._.StaticNotebook.defaultEditorConfig.raw,...e.get("rawCellConfig").composite};t.editorConfig={code:n,markdown:i,raw:s};t.notebookConfig={enableKernelInitNotification:e.get("enableKernelInitNotification").composite,autoRenderMarkdownCells:e.get("autoRenderMarkdownCells").composite,showHiddenCellsButton:e.get("showHiddenCellsButton").composite,scrollPastEnd:e.get("scrollPastEnd").composite,defaultCell:e.get("defaultCell").composite,recordTiming:e.get("recordTiming").composite,overscanCount:e.get("overscanCount").composite,showInputPlaceholder:e.get("showInputPlaceholder").composite,inputHistoryScope:e.get("inputHistoryScope").composite,maxNumberOutputs:e.get("maxNumberOutputs").composite,showEditorForReadOnlyMarkdown:e.get("showEditorForReadOnlyMarkdown").composite,disableDocumentWideUndoRedo:!e.get("documentWideUndoRedo").composite,renderingLayout:e.get("renderingLayout").composite,sideBySideLeftMarginOverride:e.get("sideBySideLeftMarginOverride").composite,sideBySideRightMarginOverride:e.get("sideBySideRightMarginOverride").composite,sideBySideOutputRatio:e.get("sideBySideOutputRatio").composite,windowingMode:e.get("windowingMode").composite,accessKernelHistory:e.get("accessKernelHistory").composite,showMinimap:e.get("showMinimap").composite};M(t.notebookConfig.sideBySideOutputRatio);const o=`.jp-mod-sideBySide.jp-Notebook .jp-Notebook-cell {\n margin-left: ${t.notebookConfig.sideBySideLeftMarginOverride} !important;\n margin-right: ${t.notebookConfig.sideBySideRightMarginOverride} !important;`;const r=document.getElementById(ee);if(r){r.innerText=o}else{document.head.insertAdjacentHTML("beforeend",``)}t.autoStartDefault=e.get("autoStartDefaultKernel").composite;t.shutdownOnClose=e.get("kernelShutdown").composite;P.disableDocumentWideUndoRedo=!e.get("documentWideUndoRedo").composite;N({editorConfig:t.editorConfig,notebookConfig:t.notebookConfig,kernelShutdown:t.shutdownOnClose,autoStartDefault:t.autoStartDefault})}if(d){Re(d,I)}const O=async(e,t,n)=>{const i=await w.execute("docmanager:new-untitled",{path:e,type:"notebook"});if(i!==undefined){const e=await w.execute("docmanager:open",{path:i.path,factory:X,kernel:{id:t,name:n}});e.isUntitled=true;return e}};w.addCommand(Y.createNew,{label:e=>{var t,n,i;const s=e["kernelName"]||"";if(e["isLauncher"]&&e["kernelName"]&&y.kernelspecs){return(i=(n=(t=y.kernelspecs.specs)===null||t===void 0?void 0:t.kernelspecs[s])===null||n===void 0?void 0:n.display_name)!==null&&i!==void 0?i:""}if(e["isPalette"]||e["isContextMenu"]){return b.__("New Notebook")}return b.__("Notebook")},caption:b.__("Create a new notebook"),icon:e=>e["isPalette"]?undefined:k.notebookIcon,execute:e=>{var t,n;const i=(t=g===null||g===void 0?void 0:g.tracker.currentWidget)!==null&&t!==void 0?t:r;const s=e["cwd"]||((n=i===null||i===void 0?void 0:i.model.path)!==null&&n!==void 0?n:"");const o=e["kernelId"]||"";const a=e["kernelName"]||"";return O(s,o,a)},describedBy:{args:{type:"object",properties:{cwd:{type:"string",description:b.__("Current working directory for the new notebook")},kernelId:{type:"string",description:b.__("Kernel ID to use for the new notebook")},kernelName:{type:"string",description:b.__("Kernel name to use for the new notebook")},isLauncher:{type:"boolean",description:b.__("Whether the command is executed from launcher")},isPalette:{type:"boolean",description:b.__("Whether the command is executed from palette")},isContextMenu:{type:"boolean",description:b.__("Whether the command is executed from context menu")}}}}});if(a){void y.ready.then((()=>{let e=null;const t=()=>{if(e){e.dispose();e=null}const t=y.kernelspecs.specs;if(!t){return}e=new E.DisposableSet;for(const n in t.kernelspecs){const i=n===t.default?0:Infinity;const s=t.kernelspecs[n];const o=s.resources["logo-svg"]||s.resources["logo-64x64"];e.add(a.add({command:Y.createNew,args:{isLauncher:true,kernelName:n},category:b.__("Notebook"),rank:i,kernelIconUrl:o,metadata:{kernel:T.JSONExt.deepCopy(s.metadata||{})}}))}};t();y.kernelspecs.specsChanged.connect(t)}))}return x}function Me(e,t,n,i,o){if(!n){return}const r=(i!==null&&i!==void 0?i:j.nullTranslator).load("jupyterlab");const a=o!==null&&o!==void 0?o:new s.Sanitizer;e.commands.addCommand(Y.invokeCompleter,{label:r.__("Display the completion helper."),execute:e=>{var i;const s=t.currentWidget;if(s&&((i=s.content.activeCell)===null||i===void 0?void 0:i.model.type)==="code"){n.invoke(s.id)}},describedBy:{args:{type:"object",properties:{activate:{type:"boolean",description:r.__("Whether to activate the widget")}}}}});e.commands.addCommand(Y.selectCompleter,{label:r.__("Select the completion suggestion."),execute:()=>{const e=t.currentWidget&&t.currentWidget.id;if(e){return n.select(e)}},describedBy:{args:{type:"object",properties:{activate:{type:"boolean",description:r.__("Whether to activate the widget")}}}}});e.commands.addKeyBinding({command:Y.selectCompleter,keys:["Enter"],selector:".jp-Notebook .jp-mod-completer-active"});const l=async(e,t)=>{var i,s;const o={editor:(s=(i=t.content.activeCell)===null||i===void 0?void 0:i.editor)!==null&&s!==void 0?s:null,session:t.sessionContext.session,widget:t,sanitizer:a};await n.updateCompleter(o);t.content.activeCellChanged.connect(((e,i)=>{i===null||i===void 0?void 0:i.ready.then((()=>{const e={editor:i.editor,session:t.sessionContext.session,widget:t,sanitizer:a};return n.updateCompleter(e)})).catch(console.error)}));t.sessionContext.sessionChanged.connect((()=>{var e;(e=t.content.activeCell)===null||e===void 0?void 0:e.ready.then((()=>{var e,i;const s={editor:(i=(e=t.content.activeCell)===null||e===void 0?void 0:e.editor)!==null&&i!==void 0?i:null,session:t.sessionContext.session,widget:t};return n.updateCompleter(s)})).catch(console.error)}))};t.widgetAdded.connect(l);n.activeProvidersChanged.connect((()=>{t.forEach((e=>{l(undefined,e).catch((e=>console.error(e)))}))}))}function De(e,t,n,i,s,o){t.widgetAdded.connect((async(e,t)=>{const r=new _.NotebookAdapter(t,{connectionManager:n,featureManager:i,foreignCodeExtractorsManager:s});o.add(r)}))}function Ae(e,t,n){var i,o;let r=null;if(n[A.CellBarExtension.WIDGET_ID_ARG]){r=(i=e.find((e=>e.id===n[A.CellBarExtension.WIDGET_ID_ARG])))!==null&&i!==void 0?i:null}else if(n[s.SemanticCommand.WIDGET]){r=(o=e.find((e=>e.id===n[s.SemanticCommand.WIDGET])))!==null&&o!==void 0?o:null}else{r=e.currentWidget}const a=n["activate"]!==false;if(a&&r){t.activateById(r.id)}return r}function Pe(e,t,n,i,r,a){var l;const d=n.load("jupyterlab");const{commands:c,shell:h}=e;const u=()=>Ne.isEnabledAndSingleSelected(h,t);const p=e=>{var t,n;for(const i of e.widgets){if(i instanceof o.MarkdownCell&&i.headingCollapsed){i.getHeadings().then((()=>{_.NotebookActions.setHeadingCollapse(i,true,e)})).catch((e=>{console.warn("Failed to resolve headings: ",e)}))}if(i.model.id===((n=(t=e.activeCell)===null||t===void 0?void 0:t.model)===null||n===void 0?void 0:n.id)){_.NotebookActions.expandParent(i,e)}}};const m=()=>Ne.isEnabledAndHeadingSelected(h,t);t.currentChanged.connect(((e,t)=>{var n,i;if(!((i=(n=t===null||t===void 0?void 0:t.content)===null||n===void 0?void 0:n.model)===null||i===void 0?void 0:i.cells)){return}t.content.model.cells.changed.connect(((e,n)=>{p(t.content)}));t.content.activeCellChanged.connect(((e,t)=>{_.NotebookActions.expandParent(t,e)}))}));t.selectionChanged.connect((()=>{c.notifyCommandChanged(Y.duplicateBelow);c.notifyCommandChanged(Y.deleteCell);c.notifyCommandChanged(Y.copy);c.notifyCommandChanged(Y.cut);c.notifyCommandChanged(Y.pasteBelow);c.notifyCommandChanged(Y.pasteAbove);c.notifyCommandChanged(Y.pasteAndReplace);c.notifyCommandChanged(Y.moveUp);c.notifyCommandChanged(Y.moveDown);c.notifyCommandChanged(Y.run);c.notifyCommandChanged(Y.runAll);c.notifyCommandChanged(Y.runAndAdvance);c.notifyCommandChanged(Y.runAndInsert)}));t.activeCellChanged.connect((()=>{c.notifyCommandChanged(Y.moveUp);c.notifyCommandChanged(Y.moveDown)}));c.addCommand(Y.runAndAdvance,{label:e=>{var n;const i=Ae(t,h,{...e,activate:false});return d._n("Run Selected Cell","Run Selected Cells",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Ae(t,h,{...e,activate:false});return d._n("Run this cell and advance","Run these %1 cells and advance",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const s=Ae(t,h,e);if(s){const{context:e,content:t}=s;return _.NotebookActions.runAndAdvance(t,e.sessionContext,i,n)}},isEnabled:e=>e.toolbar?true:a(),icon:e=>e.toolbar?k.runIcon:undefined,describedBy:{args:{type:"object",properties:{toolbar:{type:"boolean",description:"Whether the command is being executed from the toolbar"},activate:{type:"boolean",description:d.__("Whether to activate the notebook after execution")}}}}});c.addCommand(Y.run,{label:e=>{var n;const i=Ae(t,h,{...e,activate:false});return d._n("Run Selected Cell and Do not Advance","Run Selected Cells and Do not Advance",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const s=Ae(t,h,e);if(s){const{context:e,content:t}=s;return _.NotebookActions.run(t,e.sessionContext,i,n)}},isEnabled:a,describedBy:{args:{type:"object",properties:{activate:{type:"boolean",description:d.__("Whether to activate the notebook after execution")}}}}});c.addCommand(Y.runAndInsert,{label:e=>{var n;const i=Ae(t,h,{...e,activate:false});return d._n("Run Selected Cell and Insert Below","Run Selected Cells and Insert Below",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const s=Ae(t,h,e);if(s){const{context:e,content:t}=s;return _.NotebookActions.runAndInsert(t,e.sessionContext,i,n)}},isEnabled:a,describedBy:{args:{type:"object",properties:{activate:{type:"boolean",description:d.__("Whether to activate the notebook after execution")}}}}});c.addCommand(Y.runAll,{label:d.__("Run All Cells"),caption:d.__("Run all cells"),execute:e=>{const s=Ae(t,h,e);if(s){const{context:e,content:t}=s;return _.NotebookActions.runAll(t,e.sessionContext,i,n)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.runAllAbove,{label:d.__("Run All Above Selected Cell"),execute:e=>{const s=Ae(t,h,e);if(s){const{context:e,content:t}=s;return _.NotebookActions.runAllAbove(t,e.sessionContext,i,n)}},isEnabled:()=>u()&&t.currentWidget.content.activeCellIndex!==0,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.runAllBelow,{label:d.__("Run Selected Cell and All Below"),execute:e=>{const s=Ae(t,h,e);if(s){const{context:e,content:t}=s;return _.NotebookActions.runAllBelow(t,e.sessionContext,i,n)}},isEnabled:()=>u()&&(t.currentWidget.content.widgets.length===1||t.currentWidget.content.activeCellIndex!==t.currentWidget.content.widgets.length-1),describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.renderAllMarkdown,{label:d.__("Render All Markdown Cells"),execute:e=>{const n=Ae(t,h,e);if(n){const{content:e}=n;return _.NotebookActions.renderAllMarkdown(e)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.restart,{label:d.__("Restart Kernel…"),caption:d.__("Restart the kernel"),execute:e=>{const n=Ae(t,h,e);if(n){return i.restart(n.sessionContext)}},isEnabled:e=>e.toolbar?true:a(),icon:e=>e.toolbar?k.refreshIcon:undefined,describedBy:{args:{type:"object",properties:{toolbar:{type:"boolean",description:"Whether the command is being executed from the toolbar"}}}}});c.addCommand(Y.shutdown,{label:d.__("Shut Down Kernel"),execute:e=>{const n=Ae(t,h,e);if(!n){return}return n.context.sessionContext.shutdown()},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.closeAndShutdown,{label:d.__("Close and Shut Down Notebook…"),execute:e=>{const n=Ae(t,h,e);if(!n){return}const i=n.title.label;return(0,s.showDialog)({title:d.__("Shut down the notebook?"),body:d.__('Are you sure you want to close "%1"?',i),buttons:[s.Dialog.cancelButton(),s.Dialog.warnButton()]}).then((e=>{if(e.button.accept){return c.execute(Y.shutdown,{activate:false}).then((()=>{n.dispose()}))}}))},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.trust,{label:()=>d.__("Trust Notebook"),execute:e=>{const n=Ae(t,h,e);if(n){const{context:e,content:t}=n;return _.NotebookActions.trust(t).then((()=>e.save()))}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.restartClear,{label:d.__("Restart Kernel and Clear Outputs of All Cells…"),caption:d.__("Restart the kernel and clear all outputs of all cells"),execute:async()=>{const e=await c.execute(Y.restart,{activate:false});if(e){await c.execute(Y.clearAllOutputs)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.restartAndRunToSelected,{label:d.__("Restart Kernel and Run up to Selected Cell…"),execute:async e=>{const s=Ae(t,h,{activate:false,...e});if(!s){return}const{context:o,content:r}=s;const a=r.widgets.slice(0,r.activeCellIndex+1);const l=await i.restart(s.sessionContext);if(l){return _.NotebookActions.runCells(r,a,o.sessionContext,i,n)}},isEnabled:u,describedBy:{args:{type:"object",properties:{activate:{type:"boolean",description:d.__("Whether to activate the notebook after execution")}}}}});c.addCommand(Y.restartRunAll,{label:d.__("Restart Kernel and Run All Cells…"),caption:d.__("Restart the kernel and run all cells"),execute:async e=>{const s=Ae(t,h,{activate:false,...e});if(!s){return}const{context:o,content:r}=s;const a=r.widgets;const l=await i.restart(s.sessionContext);if(l){return _.NotebookActions.runCells(r,a,o.sessionContext,i,n)}},isEnabled:e=>e.toolbar?true:a(),icon:e=>e.toolbar?k.fastForwardIcon:undefined,describedBy:{args:{type:"object",properties:{toolbar:{type:"boolean",description:"Whether the command is being executed from the toolbar"},activate:{type:"boolean",description:d.__("Whether to activate the notebook after execution")}}}}});c.addCommand(Y.clearAllOutputs,{label:d.__("Clear Outputs of All Cells"),caption:d.__("Clear all outputs of all cells"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.clearAllOutputs(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.clearOutputs,{label:d.__("Clear Cell Output"),caption:d.__("Clear outputs for the selected cells"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.clearOutputs(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.interrupt,{label:d.__("Interrupt Kernel"),caption:d.__("Interrupt the kernel"),execute:e=>{var n;const i=Ae(t,h,e);if(!i){return}const s=(n=i.context.sessionContext.session)===null||n===void 0?void 0:n.kernel;if(s){return s.interrupt()}},isEnabled:e=>e.toolbar?true:a(),icon:e=>e.toolbar?k.stopIcon:undefined,describedBy:{args:{type:"object",properties:{toolbar:{type:"boolean",description:"Whether the command is being executed from the toolbar"}}}}});c.addCommand(Y.toCode,{label:d.__("Change to Code Cell Type"),execute:e=>{const i=Ae(t,h,e);if(i){return _.NotebookActions.changeCellType(i.content,"code",n)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.toMarkdown,{label:d.__("Change to Markdown Cell Type"),execute:e=>{const i=Ae(t,h,e);if(i){return _.NotebookActions.changeCellType(i.content,"markdown",n)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.toRaw,{label:d.__("Change to Raw Cell Type"),execute:e=>{const i=Ae(t,h,e);if(i){return _.NotebookActions.changeCellType(i.content,"raw",n)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.cut,{label:e=>{var n;const i=Ae(t,h,{...e,activate:false});return d._n("Cut Cell","Cut Cells",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Ae(t,h,{...e,activate:false});return d._n("Cut this cell","Cut these %1 cells",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:async e=>{const n=Ae(t,h,e);if(n){return await _.NotebookActions.cutToSystemClipboard(n.content)}},icon:e=>e.toolbar?k.cutIcon:undefined,isEnabled:e=>e.toolbar?true:a(),describedBy:{args:{type:"object",properties:{toolbar:{type:"boolean",description:"Whether the command is being executed from the toolbar"},activate:{type:"boolean",description:d.__("Whether to activate the notebook after execution")}}}}});c.addCommand(Y.copy,{label:e=>{var n;const i=Ae(t,h,{...e,activate:false});return d._n("Copy Cell","Copy Cells",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Ae(t,h,{...e,activate:false});return d._n("Copy this cell","Copy these %1 cells",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:async e=>{const n=Ae(t,h,e);if(n){return await _.NotebookActions.copyToSystemClipboard(n.content)}},icon:e=>e.toolbar?k.copyIcon:undefined,isEnabled:e=>e.toolbar?true:a(),describedBy:{args:{type:"object",properties:{toolbar:{type:"boolean",description:"Whether the command is being executed from the toolbar"},activate:{type:"boolean",description:d.__("Whether to activate the notebook after execution")}}}}});c.addCommand(Y.pasteBelow,{label:e=>{var n;const i=Ae(t,h,{...e,activate:false});return d._n("Paste Cell Below","Paste Cells Below",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Ae(t,h,{...e,activate:false});return d._n("Paste this cell from the clipboard","Paste these %1 cells from the clipboard",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:async e=>{const n=Ae(t,h,e);if(n){return await _.NotebookActions.pasteFromSystemClipboard(n.content,"below")}},icon:e=>e.toolbar?k.pasteIcon:undefined,isEnabled:e=>e.toolbar?true:a(),describedBy:{args:{type:"object",properties:{toolbar:{type:"boolean",description:"Whether the command is being executed from the toolbar"},activate:{type:"boolean",description:d.__("Whether to activate the notebook after execution")}}}}});c.addCommand(Y.pasteAbove,{label:e=>{var n;const i=Ae(t,h,{...e,activate:false});return d._n("Paste Cell Above","Paste Cells Above",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Ae(t,h,{...e,activate:false});return d._n("Paste this cell from the clipboard","Paste these %1 cells from the clipboard",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:async e=>{const n=Ae(t,h,e);if(n){return await _.NotebookActions.pasteFromSystemClipboard(n.content,"above")}},isEnabled:a,describedBy:{args:{type:"object",properties:{activate:{type:"boolean",description:d.__("Whether to activate the notebook after execution")}}}}});c.addCommand(Y.duplicateBelow,{label:e=>{var n;const i=Ae(t,h,{...e,activate:false});return d._n("Duplicate Cell Below","Duplicate Cells Below",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Ae(t,h,{...e,activate:false});return d._n("Create a duplicate of this cell below","Create duplicates of %1 cells below",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const n=Ae(t,h,e);if(n){_.NotebookActions.duplicate(n.content,"belowSelected")}},icon:e=>e.toolbar?k.duplicateIcon:undefined,isEnabled:e=>e.toolbar?true:a(),describedBy:{args:{type:"object",properties:{toolbar:{type:"boolean",description:"Whether the command is being executed from the toolbar"},activate:{type:"boolean",description:d.__("Whether to activate the notebook after execution")}}}}});c.addCommand(Y.pasteAndReplace,{label:e=>{var n;const i=Ae(t,h,{...e,activate:false});return d._n("Paste Cell and Replace","Paste Cells and Replace",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:async e=>{const n=Ae(t,h,e);if(n){return await _.NotebookActions.pasteFromSystemClipboard(n.content,"replace")}},isEnabled:a,describedBy:{args:{type:"object",properties:{activate:{type:"boolean",description:d.__("Whether to activate the notebook after execution")}}}}});c.addCommand(Y.deleteCell,{label:e=>{var n;const i=Ae(t,h,{...e,activate:false});return d._n("Delete Cell","Delete Cells",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Ae(t,h,{...e,activate:false});return d._n("Delete this cell","Delete these %1 cells",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.deleteCells(n.content)}},isEnabled:e=>e.toolbar?true:a(),describedBy:{args:{type:"object",properties:{toolbar:{type:"boolean",description:"Whether the command is being executed from the toolbar"},activate:{type:"boolean",description:d.__("Whether to activate the notebook after execution")}}}}});c.addCommand(Y.split,{label:d.__("Split Cell"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.splitCell(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.merge,{label:d.__("Merge Selected Cells"),execute:e=>{var n;const i=Ae(t,h,e);if(i){const e=(n=r===null||r===void 0?void 0:r.get("addExtraLineOnCellMerge").composite)!==null&&n!==void 0?n:true;return _.NotebookActions.mergeCells(i.content,false,e)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.mergeAbove,{label:d.__("Merge Cell Above"),execute:e=>{var n;const i=Ae(t,h,e);if(i){const e=(n=r===null||r===void 0?void 0:r.get("addExtraLineOnCellMerge").composite)!==null&&n!==void 0?n:true;return _.NotebookActions.mergeCells(i.content,true,e)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.mergeBelow,{label:d.__("Merge Cell Below"),execute:e=>{var n;const i=Ae(t,h,e);if(i){const e=(n=r===null||r===void 0?void 0:r.get("addExtraLineOnCellMerge").composite)!==null&&n!==void 0?n:true;return _.NotebookActions.mergeCells(i.content,false,e)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.insertAbove,{label:d.__("Insert Cell Above"),caption:d.__("Insert a cell above"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.insertAbove(n.content)}},icon:e=>e.toolbar?k.addAboveIcon:undefined,isEnabled:e=>e.toolbar?true:a(),describedBy:{args:{type:"object",properties:{toolbar:{type:"boolean",description:"Whether the command is being executed from the toolbar"}}}}});c.addCommand(Y.insertBelow,{label:d.__("Insert Cell Below"),caption:d.__("Insert a cell below"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.insertBelow(n.content)}},icon:e=>e.toolbar?k.addBelowIcon:undefined,isEnabled:e=>e.toolbar?true:a(),describedBy:{args:{type:"object",properties:{toolbar:{type:"boolean",description:"Whether the command is being executed from the toolbar"}}}}});c.addCommand(Y.selectAbove,{label:d.__("Select Cell Above"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.selectAbove(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.selectBelow,{label:d.__("Select Cell Below"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.selectBelow(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.insertHeadingAbove,{label:d.__("Insert Heading Above Current Heading"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.insertSameLevelHeadingAbove(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.insertHeadingBelow,{label:d.__("Insert Heading Below Current Heading"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.insertSameLevelHeadingBelow(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.selectHeadingAboveOrCollapse,{label:d.__("Select Heading Above or Collapse Heading"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.selectHeadingAboveOrCollapseHeading(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.selectHeadingBelowOrExpand,{label:d.__("Select Heading Below or Expand Heading"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.selectHeadingBelowOrExpandHeading(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.extendAbove,{label:d.__("Extend Selection Above"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.extendSelectionAbove(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.extendTop,{label:d.__("Extend Selection to Top"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.extendSelectionAbove(n.content,true)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.extendBelow,{label:d.__("Extend Selection Below"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.extendSelectionBelow(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.extendBottom,{label:d.__("Extend Selection to Bottom"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.extendSelectionBelow(n.content,true)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.selectAll,{label:d.__("Select All Cells"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.selectAll(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.deselectAll,{label:d.__("Deselect All Cells"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.deselectAll(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.moveUp,{label:e=>{var n;const i=Ae(t,h,{...e,activate:false});return d._n("Move Cell Up","Move Cells Up",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Ae(t,h,{...e,activate:false});return d._n("Move this cell up","Move these %1 cells up",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const n=Ae(t,h,e);if(n){_.NotebookActions.moveUp(n.content);Ne.raiseSilentNotification(d.__("Notebook cell shifted up successfully"),n.node)}},isEnabled:e=>{const n=Ae(t,h,{...e,activate:false});if(!n){return false}return n.content.activeCellIndex>=1},icon:e=>e.toolbar?k.moveUpIcon:undefined,describedBy:{args:{type:"object",properties:{toolbar:{type:"boolean",description:"Whether the command is being executed from the toolbar"},activate:{type:"boolean",description:d.__("Whether to activate the notebook after execution")}}}}});c.addCommand(Y.moveDown,{label:e=>{var n;const i=Ae(t,h,{...e,activate:false});return d._n("Move Cell Down","Move Cells Down",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Ae(t,h,{...e,activate:false});return d._n("Move this cell down","Move these %1 cells down",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const n=Ae(t,h,e);if(n){_.NotebookActions.moveDown(n.content);Ne.raiseSilentNotification(d.__("Notebook cell shifted down successfully"),n.node)}},isEnabled:e=>{const n=Ae(t,h,{...e,activate:false});if(!n||!n.content.model){return false}const i=n.content.model.cells.length;return n.content.activeCellIndexe.toolbar?k.moveDownIcon:undefined,describedBy:{args:{type:"object",properties:{toolbar:{type:"boolean",description:"Whether the command is being executed from the toolbar"},activate:{type:"boolean",description:d.__("Whether to activate the notebook after execution")}}}}});c.addCommand(Y.toggleAllLines,{label:d.__("Show Line Numbers"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.toggleAllLineNumbers(n.content)}},isEnabled:a,isToggled:e=>{const n=Ae(t,h,{...e,activate:false});if(n){const e=n.content.editorConfig;return!!(e.code.lineNumbers&&e.markdown.lineNumbers&&e.raw.lineNumbers)}else{return false}},describedBy:{args:{type:"object",properties:{activate:{type:"boolean",description:d.__("Whether to activate the notebook after execution")}}}}});c.addCommand(Y.commandMode,{label:d.__("Enter Command Mode"),execute:e=>{const n=Ae(t,h,e);if(n){n.content.mode="command"}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.editMode,{label:d.__("Enter Edit Mode"),execute:e=>{const n=Ae(t,h,e);if(n){n.content.mode="edit"}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.undoCellAction,{label:d.__("Undo Cell Operation"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.undo(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.redoCellAction,{label:d.__("Redo Cell Operation"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.redo(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.redo,{label:d.__("Redo"),execute:e=>{var n;const i=Ae(t,h,e);if(i){const e=i.content.activeCell;if(e){e.inputHidden=false;return(n=e.editor)===null||n===void 0?void 0:n.redo()}}},describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.undo,{label:d.__("Undo"),execute:e=>{var n;const i=Ae(t,h,e);if(i){const e=i.content.activeCell;if(e){e.inputHidden=false;return(n=e.editor)===null||n===void 0?void 0:n.undo()}}},describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.changeKernel,{label:d.__("Change Kernel…"),execute:e=>{const n=Ae(t,h,e);if(n){return i.selectKernel(n.context.sessionContext)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.getKernel,{label:d.__("Get Kernel"),execute:e=>{var n;const i=Ae(t,h,{activate:false,...e});if(i){return(n=i.sessionContext.session)===null||n===void 0?void 0:n.kernel}},isEnabled:a,describedBy:{args:{type:"object",properties:{activate:{type:"boolean",description:d.__("Whether to activate the notebook after execution")}}}}});c.addCommand(Y.reconnectToKernel,{label:d.__("Reconnect to Kernel"),execute:e=>{var n;const i=Ae(t,h,e);if(!i){return}const s=(n=i.context.sessionContext.session)===null||n===void 0?void 0:n.kernel;if(s){return s.reconnect()}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.markdown1,{label:d.__("Change to Heading 1"),execute:e=>{const i=Ae(t,h,e);if(i){return _.NotebookActions.setMarkdownHeader(i.content,1,n)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.markdown2,{label:d.__("Change to Heading 2"),execute:e=>{const i=Ae(t,h,e);if(i){return _.NotebookActions.setMarkdownHeader(i.content,2,n)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.markdown3,{label:d.__("Change to Heading 3"),execute:e=>{const i=Ae(t,h,e);if(i){return _.NotebookActions.setMarkdownHeader(i.content,3,n)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.markdown4,{label:d.__("Change to Heading 4"),execute:e=>{const i=Ae(t,h,e);if(i){return _.NotebookActions.setMarkdownHeader(i.content,4,n)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.markdown5,{label:d.__("Change to Heading 5"),execute:e=>{const i=Ae(t,h,e);if(i){return _.NotebookActions.setMarkdownHeader(i.content,5,n)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.markdown6,{label:d.__("Change to Heading 6"),execute:e=>{const i=Ae(t,h,e);if(i){return _.NotebookActions.setMarkdownHeader(i.content,6,n)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.hideCode,{label:d.__("Collapse Selected Code"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.hideCode(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.showCode,{label:d.__("Expand Selected Code"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.showCode(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.hideAllCode,{label:d.__("Collapse All Code"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.hideAllCode(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.showAllCode,{label:d.__("Expand All Code"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.showAllCode(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.hideOutput,{label:d.__("Collapse Selected Outputs"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.hideOutput(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.showOutput,{label:d.__("Expand Selected Outputs"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.showOutput(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.toggleOutput,{label:d.__("Toggle Visibility of Selected Outputs"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.toggleOutput(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.hideAllOutputs,{label:d.__("Collapse All Outputs"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.hideAllOutputs(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.toggleRenderSideBySideCurrentNotebook,{label:d.__("Render Side-by-Side"),execute:e=>{const n=Ae(t,h,e);if(n){if(n.content.renderingLayout==="side-by-side"){return _.NotebookActions.renderDefault(n.content)}return _.NotebookActions.renderSideBySide(n.content)}},isEnabled:a,isToggled:e=>{const n=Ae(t,h,{...e,activate:false});if(n){return n.content.renderingLayout==="side-by-side"}else{return false}},describedBy:{args:{type:"object",properties:{activate:{type:"boolean",description:d.__("Whether to activate the notebook after execution")}}}}});c.addCommand(Y.showAllOutputs,{label:d.__("Expand All Outputs"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.showAllOutputs(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.enableOutputScrolling,{label:d.__("Enable Scrolling for Outputs"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.enableOutputScrolling(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.disableOutputScrolling,{label:d.__("Disable Scrolling for Outputs"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.disableOutputScrolling(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.selectLastRunCell,{label:d.__("Select current running or last run cell"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.selectLastRunCell(n.content)}},isEnabled:a,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.replaceSelection,{label:d.__("Replace Selection in Notebook Cell"),execute:e=>{const n=Ae(t,h,e);const i=e["text"]||"";if(n){return _.NotebookActions.replaceSelection(n.content,i)}},isEnabled:a,describedBy:{args:{type:"object",properties:{text:{type:"string",description:d.__("Text to replace the selection with")}}}}});c.addCommand(Y.toggleCollapseCmd,{label:d.__("Toggle Collapse Notebook Heading"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.toggleCurrentHeadingCollapse(n.content)}},isEnabled:m,describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.collapseAllCmd,{label:d.__("Collapse All Headings"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.collapseAllHeadings(n.content)}},describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.expandAllCmd,{label:d.__("Expand All Headings"),execute:e=>{const n=Ae(t,h,e);if(n){return _.NotebookActions.expandAllHeadings(n.content)}},describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.tocRunCells,{label:d.__("Select and Run Cell(s) for this Heading"),execute:e=>{const s=Ae(t,h,{activate:false,...e});if(s===null){return}const r=s.content.activeCell;let a=s.content.activeCellIndex;if(r instanceof o.MarkdownCell){const e=s.content.widgets;const t=r.headingInfo.level;for(let n=s.content.activeCellIndex+1;n=0&&i.headingInfo.level<=t){break}a=n}}s.content.extendContiguousSelectionTo(a);void _.NotebookActions.run(s.content,s.sessionContext,i,n)},describedBy:{args:{type:"object",properties:{activate:{type:"boolean",description:d.__("Whether to activate the notebook after execution")}}}}});c.addCommand(Y.accessPreviousHistory,{label:d.__("Access Previous Kernel History Entry"),execute:async e=>{const n=Ae(t,h,e);if(n){return await _.NotebookActions.accessPreviousHistory(n.content)}},describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.accessNextHistory,{label:d.__("Access Next Kernel History Entry"),execute:async e=>{const n=Ae(t,h,e);if(n){return await _.NotebookActions.accessNextHistory(n.content)}},describedBy:{args:{type:"object",properties:{}}}});c.addCommand(Y.virtualScrollbar,{label:d.__("Show Minimap"),caption:d.__("Show Minimap"),execute:e=>{const n=Ae(t,h,e);if(n){n.content.scrollbar=!n.content.scrollbar}},isEnabled:()=>{const e=t.currentWidget;return!!e},isToggled:()=>{var e;const n=t.currentWidget;return(e=n===null||n===void 0?void 0:n.content.scrollbar)!==null&&e!==void 0?e:false},describedBy:{args:{type:"object",properties:{}}}});const g=[Y.createNew,Y.createOutputView];const f=()=>{Object.values(Y).filter((t=>!g.includes(t)&&e.commands.hasCommand(t))).forEach((t=>e.commands.notifyCommandChanged(t)))};t.currentChanged.connect(f);(l=h.currentChanged)===null||l===void 0?void 0:l.connect(f)}function Le(e,t){const n=t.load("jupyterlab");let i=n.__("Notebook Operations");[Y.interrupt,Y.restart,Y.restartClear,Y.restartRunAll,Y.runAll,Y.renderAllMarkdown,Y.runAllAbove,Y.runAllBelow,Y.restartAndRunToSelected,Y.selectAll,Y.deselectAll,Y.clearAllOutputs,Y.toggleAllLines,Y.editMode,Y.commandMode,Y.changeKernel,Y.reconnectToKernel,Y.createConsole,Y.createSubshellConsole,Y.closeAndShutdown,Y.trust,Y.toggleCollapseCmd,Y.collapseAllCmd,Y.expandAllCmd,Y.accessPreviousHistory,Y.accessNextHistory,Y.virtualScrollbar].forEach((t=>{e.addItem({command:t,category:i})}));e.addItem({command:Y.createNew,category:i,args:{isPalette:true}});i=n.__("Notebook Cell Operations");[Y.run,Y.runAndAdvance,Y.runAndInsert,Y.runInConsole,Y.clearOutputs,Y.toCode,Y.toMarkdown,Y.toRaw,Y.cut,Y.copy,Y.pasteBelow,Y.pasteAbove,Y.pasteAndReplace,Y.deleteCell,Y.split,Y.merge,Y.mergeAbove,Y.mergeBelow,Y.insertAbove,Y.insertBelow,Y.selectAbove,Y.selectBelow,Y.selectHeadingAboveOrCollapse,Y.selectHeadingBelowOrExpand,Y.insertHeadingAbove,Y.insertHeadingBelow,Y.extendAbove,Y.extendTop,Y.extendBelow,Y.extendBottom,Y.moveDown,Y.moveUp,Y.undoCellAction,Y.redoCellAction,Y.markdown1,Y.markdown2,Y.markdown3,Y.markdown4,Y.markdown5,Y.markdown6,Y.hideCode,Y.showCode,Y.hideAllCode,Y.showAllCode,Y.hideOutput,Y.showOutput,Y.toggleOutput,Y.hideAllOutputs,Y.showAllOutputs,Y.toggleRenderSideBySideCurrentNotebook,Y.setSideBySideRatio,Y.enableOutputScrolling,Y.disableOutputScrolling].forEach((t=>{e.addItem({command:t,category:i})}))}function Re(e,t){e.editMenu.undoers.redo.add({id:Y.redo,isEnabled:t});e.editMenu.undoers.undo.add({id:Y.undo,isEnabled:t});e.editMenu.clearers.clearAll.add({id:Y.clearAllOutputs,isEnabled:t});e.editMenu.clearers.clearCurrent.add({id:Y.clearOutputs,isEnabled:t});e.fileMenu.consoleCreators.add({id:Y.createConsole,isEnabled:t});e.fileMenu.closeAndCleaners.add({id:Y.closeAndShutdown,isEnabled:t});e.kernelMenu.kernelUsers.changeKernel.add({id:Y.changeKernel,isEnabled:t});e.kernelMenu.kernelUsers.clearWidget.add({id:Y.clearAllOutputs,isEnabled:t});e.kernelMenu.kernelUsers.interruptKernel.add({id:Y.interrupt,isEnabled:t});e.kernelMenu.kernelUsers.reconnectToKernel.add({id:Y.reconnectToKernel,isEnabled:t});e.kernelMenu.kernelUsers.restartKernel.add({id:Y.restart,isEnabled:t});e.kernelMenu.kernelUsers.shutdownKernel.add({id:Y.shutdown,isEnabled:t});e.viewMenu.editorViewers.toggleLineNumbers.add({id:Y.toggleAllLines,isEnabled:t});e.viewMenu.editorViewers.toggleMinimap.add({id:Y.virtualScrollbar,isEnabled:()=>true});e.runMenu.codeRunners.restart.add({id:Y.restart,isEnabled:t});e.runMenu.codeRunners.run.add({id:Y.runAndAdvance,isEnabled:t});e.runMenu.codeRunners.runAll.add({id:Y.runAll,isEnabled:t});e.helpMenu.getKernel.add({id:Y.getKernel,isEnabled:t})}var Ne;(function(e){function t(e,t,n,i){const s={path:t.context.path,preferredLanguage:t.context.model.defaultKernelLanguage,activate:n,subshell:i,ref:t.id,insertMode:"split-bottom",type:"Linked Console"};return e.execute("console:create",s)}e.createConsole=t;function n(e,t){return t.currentWidget!==null&&t.currentWidget===e.currentWidget}e.isEnabled=n;function i(t,n){if(!e.isEnabled(t,n)){return false}const{content:i}=n.currentWidget;const s=i.activeCellIndex;for(let e=0;e{if(!this._cell){this._cell=this._notebook.content.widgets[this._index]}if(!this._cell||this._cell.model.type!=="code"){this.dispose();return}const e=this._cell.cloneOutputArea();this.addWidget(e)}))}get index(){return this._cell?I.ArrayExt.findFirstIndex(this._notebook.content.widgets,(e=>e===this._cell)):this._index}get path(){return this._notebook.context.path}}e.ClonedOutputArea=l})(Ne||(Ne={}))},90167:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(24800);var r=n(97913);var a=n(17325);var l=n(5893);var d=n(79010);var c=n(3579);var h=n(19562);var u=n(23359);var p=n(41603);var m=n(39063);var g=n(66731);var f=n(53377);var v=n(13137);var _=n(28006);var b=n(36060);var y=n(87779);var w=n(75797);var C=n(69704);var x=n(67996);var S=n(69540);var j=n(58130)},97846:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CellList:()=>b,CellTypeSwitcher:()=>S,CommandEditStatus:()=>N,ExecutionIndicator:()=>T,ExecutionIndicatorComponent:()=>I,INotebookCellExecutor:()=>Je,INotebookTools:()=>$e,INotebookTracker:()=>Ke,INotebookWidgetFactory:()=>qe,KernelError:()=>g,Notebook:()=>Pe,NotebookActions:()=>f,NotebookAdapter:()=>F,NotebookHistory:()=>E,NotebookModel:()=>P,NotebookModelFactory:()=>L,NotebookPanel:()=>Oe,NotebookSearchProvider:()=>ze,NotebookToCFactory:()=>Ve,NotebookToCModel:()=>He,NotebookTools:()=>U,NotebookTracker:()=>Ge,NotebookTrustStatus:()=>Ze,NotebookViewModel:()=>ie,NotebookWidgetFactory:()=>et,NotebookWindowedLayout:()=>se,RunningStatus:()=>We,StaticNotebook:()=>De,ToolbarItems:()=>x,getIdForHeading:()=>Ue,runCell:()=>u,setCellExecutor:()=>v});var i=n(38850);var s=n(88459);var o=n(40959);var r=n(34881);var a=n(34236);var l=n(5592);var d=n(2336);var c=n(44914);var h=n.n(c);async function u({cell:e,notebook:t,notebookConfig:n,onCellExecuted:o,onCellExecutionScheduled:a,sessionContext:l,sessionDialogs:d,translator:c}){var h;c=c!==null&&c!==void 0?c:r.nullTranslator;const u=c.load("jupyterlab");switch(e.model.type){case"markdown":e.rendered=true;e.inputHidden=false;o({cell:e,success:true});break;case"code":if(l){if(l.isTerminating){await(0,i.showDialog)({title:u.__("Kernel Terminating"),body:u.__("The kernel for %1 appears to be terminating. You can not run any cell for now.",(h=l.session)===null||h===void 0?void 0:h.path),buttons:[i.Dialog.okButton()]});break}if(l.pendingInput){await(0,i.showDialog)({title:u.__("Cell not executed due to pending input"),body:u.__("The cell has not been executed to avoid kernel deadlock as there is another pending input! Type your input in the input box, press Enter and try again."),buttons:[i.Dialog.okButton()]});return false}if(l.hasNoKernel){const e=await l.startKernel();if(e&&d){await d.selectKernel(l)}}if(l.hasNoKernel){e.model.sharedModel.transact((()=>{e.model.clearExecution()}));return true}const r=t.deletedCells;a({cell:e});let c=false;try{const i=await s.CodeCell.execute(e,l,{deletedCells:r,recordTiming:n.recordTiming});r.splice(0,r.length);c=(()=>{if(e.isDisposed){return false}if(!i){return true}if(i.content.status==="ok"){const n=i.content;if(n.payload&&n.payload.length){p(n,t,e)}return true}else{throw new g(i.content)}})()}catch(m){if(e.isDisposed||m.message.startsWith("Canceled")){c=false}else{o({cell:e,success:false,error:m});throw m}}if(c){o({cell:e,success:true})}return c}e.model.sharedModel.transact((()=>{e.model.clearExecution()}),false);break;default:break}return Promise.resolve(true)}function p(e,t,n){var i;const s=(i=e.payload)===null||i===void 0?void 0:i.filter((e=>e.source==="set_next_input"))[0];if(!s){return}const o=s.text;const r=s.replace;if(r){n.model.sharedModel.setSource(o);return}const l=t.sharedModel;const d=t.cells;const c=(0,a.findIndex)(d,(e=>e===n.model));if(c===-1){l.insertCell(l.cells.length,{cell_type:"code",source:o,metadata:{trusted:false}})}else{l.insertCell(c+1,{cell_type:"code",source:o,metadata:{trusted:false}})}}const m="application/vnd.jupyter.cells";class g extends Error{constructor(e){const t=e;const n=t.ename;const i=t.evalue;super(`KernelReplyNotOK: ${n} ${i}`);this.errorName=n;this.errorValue=i;this.traceback=t.traceback;Object.setPrototypeOf(this,g.prototype)}}class f{static get executed(){return _.executed}static get executionScheduled(){return _.executionScheduled}static get selectionExecuted(){return _.selectionExecuted}static get outputCleared(){return _.outputCleared}constructor(){}}(function(e){function t(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);e.mode="edit";e.deselectAll();const n=e.model;const i=e.activeCellIndex;const o=e.widgets[i];const r=o.editor;if(!r){return}const a=r.getSelections();const l=o.model.sharedModel.getSource();const d=[0];let c=-1;let h=-1;for(let s=0;s({cell_type:u,metadata:JSON.parse(JSON.stringify(m)),source:l.slice(e,d[t+1]).replace(/^\n+/,"").replace(/\n+$/,""),outputs:undefined})));const f=d[d.length-2];const v=d[d.length-1];const b=l.slice(f,v).replace(/^\n+/,"").replace(/\n+$/,"");n.sharedModel.transact((()=>{if(g.length>0){n.sharedModel.insertCells(i,g)}o.model.sharedModel.setSource(b);if(o.model instanceof s.CodeCellModel){const e=o.model;if(e.executionState==="running"){e.isDirty=true}}}));let y;if(c!==h){let e=0;for(let t=0;t=d[t]&&c{var t;(t=e.activeCell)===null||t===void 0?void 0:t.editor.focus()})).catch((e=>{}));void _.handleState(e,t)}e.splitCell=t;function n(e,t=false,n=true){if(!e.model||!e.activeCell){return}const i=_.getState(e);const o=[];const r=[];const a=e.model;const l=a.cells;const d=e.activeCell;const c=e.activeCellIndex;const h={};e.widgets.forEach(((t,n)=>{if(e.isSelectedOrActive(t)){o.push(t.model.sharedModel.getSource());if(n!==c){r.push(n)}const e=t.model;if((0,s.isRawCellModel)(e)||(0,s.isMarkdownCellModel)(e)){for(const t of e.attachments.keys){h[t]=e.attachments.get(t).toJSON()}}}}));if(o.length===1){if(t===true){if(c===0){return}const e=l.get(c-1);o.unshift(e.sharedModel.getSource());r.push(c-1)}else if(t===false){if(c===l.length-1){return}const e=l.get(c+1);o.push(e.sharedModel.getSource());r.push(c+1)}}e.deselectAll();const u=d.model.sharedModel;const{cell_type:p,metadata:m}=u.toJSON();if(u.cell_type==="code"){m.trusted=true}const g={cell_type:p,metadata:m,source:o.join(n?"\n\n":"\n"),attachments:u.cell_type==="markdown"||u.cell_type==="raw"?h:undefined};a.sharedModel.transact((()=>{a.sharedModel.deleteCell(c);a.sharedModel.insertCell(c,g);r.sort(((e,t)=>t-e)).forEach((e=>{a.sharedModel.deleteCell(e)}))}));if(d instanceof s.MarkdownCell){e.activeCell.rendered=false}void _.handleState(e,i)}e.mergeCells=n;function d(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);_.deleteCells(e);void _.handleState(e,t,true)}e.deleteCells=d;function h(e){if(!e.model){return}const t=_.getState(e);const n=e.model;const i=e.activeCell?e.activeCellIndex:0;n.sharedModel.insertCell(i,{cell_type:e.notebookConfig.defaultCell,metadata:e.notebookConfig.defaultCell==="code"?{trusted:true}:{}});e.activeCellIndex=i;e.deselectAll();void _.handleState(e,t,true)}e.insertAbove=h;function u(e){if(!e.model){return}const t=_.getState(e);const n=e.model;const i=e.activeCell?e.activeCellIndex+1:0;n.sharedModel.insertCell(i,{cell_type:e.notebookConfig.defaultCell,metadata:e.notebookConfig.defaultCell==="code"?{trusted:true}:{}});e.activeCellIndex=i;e.deselectAll();void _.handleState(e,t,true)}e.insertBelow=u;function p(e,t){if(!e.model||!e.activeCell){return}const n=_.getState(e);const i=e.widgets.findIndex((t=>e.isSelectedOrActive(t)));let s=e.widgets.slice(i+1).findIndex((t=>!e.isSelectedOrActive(t)));if(s>=0){s+=i+1}else{s=e.model.cells.length}if(t>0){e.moveCell(i,s,s-i)}else{e.moveCell(i,i+t,s-i)}void _.handleState(e,n,true)}function g(e){p(e,1)}e.moveDown=g;function f(e){p(e,-1)}e.moveUp=f;function v(e,t,n){if(!e.model||!e.activeCell){return}const i=_.getState(e);_.changeCellType(e,t,n);void _.handleState(e,i)}e.changeCellType=v;function b(e,t,n,i){if(!e.model||!e.activeCell){return Promise.resolve(false)}const s=_.getState(e);const o=_.runSelected(e,t,n,i);void _.handleRunState(e,s);return o}e.run=b;function y(e,t,n,i,s){if(!e.model){return Promise.resolve(false)}const o=_.getState(e);const r=_.runCells(e,t,n,i,s);void _.handleRunState(e,o);return r}e.runCells=y;async function w(e,t,n,i){var s;if(!e.model||!e.activeCell){return Promise.resolve(false)}const r=_.getState(e);const a=_.runSelected(e,t,n,i);const l=e.model;if(e.activeCellIndex===e.widgets.length-1){l.sharedModel.insertCell(e.widgets.length,{cell_type:e.notebookConfig.defaultCell,metadata:e.notebookConfig.defaultCell==="code"?{trusted:true}:{}});e.activeCellIndex++;if(((s=e.activeCell)===null||s===void 0?void 0:s.inViewport)===false){await(0,o.signalToPromise)(e.activeCell.inViewportChanged,200).catch((()=>{}))}e.mode="edit"}else{e.activeCellIndex++}void _.handleRunState(e,r,"center");return a}e.runAndAdvance=w;async function C(e,t,n,i){var s;if(!e.model||!e.activeCell){return Promise.resolve(false)}const r=_.getState(e);const a=_.runSelected(e,t,n,i);const l=e.model;l.sharedModel.insertCell(e.activeCellIndex+1,{cell_type:e.notebookConfig.defaultCell,metadata:e.notebookConfig.defaultCell==="code"?{trusted:true}:{}});e.activeCellIndex++;if(((s=e.activeCell)===null||s===void 0?void 0:s.inViewport)===false){await(0,o.signalToPromise)(e.activeCell.inViewportChanged,200).catch((()=>{}))}e.mode="edit";void _.handleRunState(e,r,"center");return a}e.runAndInsert=C;function x(e,t,n,i){if(!e.model||!e.activeCell){return Promise.resolve(false)}const s=_.getState(e);const o=e.widgets.length;const r=_.runCells(e,e.widgets,t,n,i);e.activeCellIndex=o;e.deselectAll();void _.handleRunState(e,s);return r}e.runAll=x;function S(e){if(!e.model||!e.activeCell){return Promise.resolve(false)}const t=e.activeCellIndex;const n=_.getState(e);e.widgets.forEach(((t,n)=>{if(t.model.type==="markdown"){e.select(t);e.activeCellIndex=n}}));if(e.activeCell.model.type!=="markdown"){return Promise.resolve(true)}const i=_.runSelected(e);e.activeCellIndex=t;void _.handleRunState(e,n);return i}e.renderAllMarkdown=S;function j(e,t,n,i){const{activeCell:s,activeCellIndex:o,model:r}=e;if(!r||!s||o<1){return Promise.resolve(false)}const a=_.getState(e);const l=_.runCells(e,e.widgets.slice(0,e.activeCellIndex),t,n,i);e.deselectAll();void _.handleRunState(e,a);return l}e.runAllAbove=j;function k(e,t,n,i){if(!e.model||!e.activeCell){return Promise.resolve(false)}const s=_.getState(e);const o=e.widgets.length;const r=_.runCells(e,e.widgets.slice(e.activeCellIndex),t,n,i);e.activeCellIndex=o;e.deselectAll();void _.handleRunState(e,s);return r}e.runAllBelow=k;function I(e,t){var n,i,s;if(!e.model||!((n=e.activeCell)===null||n===void 0?void 0:n.editor)){return}(s=(i=e.activeCell.editor).replaceSelection)===null||s===void 0?void 0:s.call(i,t)}e.replaceSelection=I;function T(e){if(!e.model||!e.activeCell){return}const t=e.layout.footer;if(t&&document.activeElement===t.node){t.node.blur();e.mode="command";return}if(e.activeCellIndex===0){return}let n=e.activeCellIndex-1;while(n>=0){const t=e.widgets[n];if(!t.inputHidden&&!t.isHidden){break}n-=1}const i=_.getState(e);e.activeCellIndex=n;e.deselectAll();void _.handleState(e,i,true)}e.selectAbove=T;function E(e){if(!e.model||!e.activeCell){return}let t=e.widgets.length-1;while(e.widgets[t].isHidden||e.widgets[t].inputHidden){t-=1}if(e.activeCellIndex===t){const t=e.layout.footer;t===null||t===void 0?void 0:t.node.focus();return}let n=e.activeCellIndex+1;while(n-1?t:1;let n=_.Headings.findLowerEqualLevelHeadingBelow(e.activeCell,e,true);await _.Headings.insertHeadingAboveCellIndex(n==-1?e.model.cells.length:n,t,e)}e.insertSameLevelHeadingBelow=D;function A(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);let n=ye(e.activeCell);if(n.isHeading&&!n.collapsed){ve(e.activeCell,true,e)}else{let t=_.Headings.findLowerEqualLevelParentHeadingAbove(e.activeCell,e,true);if(t>-1){e.activeCellIndex=t}}e.deselectAll();void _.handleState(e,t,true)}e.selectHeadingAboveOrCollapseHeading=A;function P(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);let n=ye(e.activeCell);if(n.isHeading&&n.collapsed){ve(e.activeCell,false,e)}else{let t=_.Headings.findHeadingBelow(e.activeCell,e,true);if(t>-1){e.activeCellIndex=t}}e.deselectAll();void _.handleState(e,t,true)}e.selectHeadingBelowOrExpandHeading=P;function L(e,t=false){if(!e.model||!e.activeCell){return}if(e.activeCellIndex===0){return}const n=_.getState(e);e.mode="command";if(t){e.extendContiguousSelectionTo(0)}else{e.extendContiguousSelectionTo(e.activeCellIndex-1)}void _.handleState(e,n,true)}e.extendSelectionAbove=L;function R(e,t=false){if(!e.model||!e.activeCell){return}if(e.activeCellIndex===e.widgets.length-1){return}const n=_.getState(e);e.mode="command";if(t){e.extendContiguousSelectionTo(e.widgets.length-1)}else{e.extendContiguousSelectionTo(e.activeCellIndex+1)}void _.handleState(e,n,true)}e.extendSelectionBelow=R;function N(e){if(!e.model||!e.activeCell){return}e.widgets.forEach((t=>{e.select(t)}))}e.selectAll=N;function B(e){if(!e.model||!e.activeCell){return}e.deselectAll()}e.deselectAll=B;function O(e){_.copyOrCut(e,false)}e.copy=O;async function F(e){await _.copyOrCutToSystemClipboard(e,false)}e.copyToSystemClipboard=F;function z(e){_.copyOrCut(e,true)}e.cut=z;async function W(e){await _.copyOrCutToSystemClipboard(e,true)}e.cutToSystemClipboard=W;function H(e,t="below"){const n=i.Clipboard.getInstance();if(!n.hasData(m)){return}const s=n.getData(m);q(e,t,s,true);void Ce(e)}e.paste=H;async function V(e,t="below"){const n=i.SystemClipboard.getInstance();const s=await n.getData(m);if(s===null||s===undefined){return}const o=s;q(e,t,o,true);void Ce(e)}e.pasteFromSystemClipboard=V;function U(e,t="below"){const n=_.selectedCells(e);if(!n||n.length===0){return}q(e,t,n,false)}e.duplicate=U;function q(e,t="below",n,i=false){if(!e.model||!e.activeCell){return}const s=_.getState(e);const o=e.model;e.mode="command";let r=0;const a=e.activeCellIndex;o.sharedModel.transact((()=>{switch(t){case"below":r=e.activeCellIndex+1;break;case"belowSelected":e.widgets.forEach(((t,n)=>{if(e.isSelectedOrActive(t)){r=n+1}}));break;case"above":r=e.activeCellIndex;break;case"replace":{const t=[];e.widgets.forEach(((n,i)=>{const s=n.model.sharedModel.getMetadata("deletable")!==false;if(e.isSelectedOrActive(n)&&s){t.push(i)}}));if(t.length>0){t.reverse().forEach((e=>{o.sharedModel.deleteCell(e)}))}r=t[0];break}default:break}o.sharedModel.insertCells(r,n.map((t=>{t.id=t.cell_type==="code"&&e.lastClipboardInteraction==="cut"&&typeof t.id==="string"?t.id:undefined;return t})))}));e.activeCellIndex=a+n.length;e.deselectAll();if(i){e.lastClipboardInteraction="paste"}void _.handleState(e,s,true)}function $(e){if(!e.model){return}const t=_.getState(e);e.mode="command";e.model.sharedModel.undo();e.deselectAll();void _.handleState(e,t)}e.undo=$;function K(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);e.mode="command";e.model.sharedModel.redo();e.deselectAll();void _.handleState(e,t)}e.redo=K;function J(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);const n=e.editorConfig;const i=!(n.code.lineNumbers&&n.markdown.lineNumbers&&n.raw.lineNumbers);const s={code:{...n.code,lineNumbers:i},markdown:{...n.markdown,lineNumbers:i},raw:{...n.raw,lineNumbers:i}};e.editorConfig=s;void _.handleState(e,t)}e.toggleAllLineNumbers=J;function G(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);let n=-1;for(const i of e.model.cells){const t=e.widgets[++n];if(e.isSelectedOrActive(t)&&i.type==="code"){i.sharedModel.transact((()=>{i.clearExecution();t.outputHidden=false}),false);_.outputCleared.emit({notebook:e,cell:t})}}void _.handleState(e,t,true)}e.clearOutputs=G;function Y(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);let n=-1;for(const i of e.model.cells){const t=e.widgets[++n];if(i.type==="code"){i.sharedModel.transact((()=>{i.clearExecution();t.outputHidden=false}),false);_.outputCleared.emit({notebook:e,cell:t})}}void _.handleState(e,t,true)}e.clearAllOutputs=Y;function X(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);e.widgets.forEach((t=>{if(e.isSelectedOrActive(t)&&t.model.type==="code"){t.inputHidden=true}}));void _.handleState(e,t)}e.hideCode=X;function Q(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);e.widgets.forEach((t=>{if(e.isSelectedOrActive(t)&&t.model.type==="code"){t.inputHidden=false}}));void _.handleState(e,t)}e.showCode=Q;function Z(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);e.widgets.forEach((e=>{if(e.model.type==="code"){e.inputHidden=true}}));void _.handleState(e,t)}e.hideAllCode=Z;function ee(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);e.widgets.forEach((e=>{if(e.model.type==="code"){e.inputHidden=false}}));void _.handleState(e,t)}e.showAllCode=ee;function te(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);e.widgets.forEach((t=>{if(e.isSelectedOrActive(t)&&t.model.type==="code"){t.outputHidden=true}}));void _.handleState(e,t,true)}e.hideOutput=te;function ne(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);e.widgets.forEach((t=>{if(e.isSelectedOrActive(t)&&t.model.type==="code"){t.outputHidden=false}}));void _.handleState(e,t)}e.showOutput=ne;function ie(e){if(!e.model||!e.activeCell){return}for(const t of e.widgets){if(e.isSelectedOrActive(t)&&t.model.type==="code"){if(t.outputHidden===false){return te(e)}}}return ne(e)}e.toggleOutput=ie;function se(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);e.widgets.forEach((e=>{if(e.model.type==="code"){e.outputHidden=true}}));void _.handleState(e,t,true)}e.hideAllOutputs=se;function oe(e){e.renderingLayout="side-by-side"}e.renderSideBySide=oe;function re(e){e.renderingLayout="default"}e.renderDefault=re;function ae(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);e.widgets.forEach((e=>{if(e.model.type==="code"){e.outputHidden=false}}));void _.handleState(e,t)}e.showAllOutputs=ae;function le(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);e.widgets.forEach((t=>{if(e.isSelectedOrActive(t)&&t.model.type==="code"){t.outputsScrolled=true}}));void _.handleState(e,t,true)}e.enableOutputScrolling=le;function de(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);e.widgets.forEach((t=>{if(e.isSelectedOrActive(t)&&t.model.type==="code"){t.outputsScrolled=false}}));void _.handleState(e,t)}e.disableOutputScrolling=de;function ce(e){let t=null;let n=null;e.widgets.forEach(((e,i)=>{if(e.model.type==="code"){const s=e.model.getMetadata("execution");if(s&&l.JSONExt.isObject(s)&&s["iopub.status.busy"]!==undefined){const e=s["iopub.status.busy"].toString();if(e){const s=new Date(e);if(!t||s>=t){t=s;n=i}}}}}));if(n!==null){e.activeCellIndex=n}}e.selectLastRunCell=ce;function he(e,t,n){if(!e.model||!e.activeCell){return}const i=_.getState(e);const s=e.model.cells;t=Math.min(Math.max(t,1),6);e.widgets.forEach(((n,i)=>{if(e.isSelectedOrActive(n)){_.setMarkdownHeader(s.get(i),t)}}));_.changeCellType(e,"markdown",n);void _.handleState(e,i)}e.setMarkdownHeader=he;function ue(t){const n=_.getState(t);for(const i of t.widgets){if(e.getHeadingInfo(i).isHeading){e.setHeadingCollapse(i,true,t);e.setCellCollapse(i,true)}}t.activeCellIndex=0;void _.handleState(t,n,true)}e.collapseAllHeadings=ue;function pe(t){for(const n of t.widgets){if(e.getHeadingInfo(n).isHeading){e.setHeadingCollapse(n,false,t);e.setCellCollapse(n,false)}}}e.expandAllHeadings=pe;function me(e,t){const n=(0,a.findIndex)(t.widgets,((t,n)=>e.model.id===t.model.id));if(n===-1){return}if(n>=t.widgets.length){return}let i=ye(t.widgets[n]);for(let s=n-1;s>=0;s--){if(se.model.id===t.model.id));if(n===-1){return-1}let i=ye(e);for(n=n+1;nt.model.id===e.model.id));if(o===-1){return-1}if(!i.widgets.length){return o+1}let r=e.getHeadingInfo(t);if(t.isHidden||!(t instanceof s.MarkdownCell)||!r.isHeading){return o+1}let l=false;let d=0;let c;for(c=o+1;c{ve(t,n,i)}));break}if(o.isHeading&&o.headingLevel<=r.headingLevel){c-=1;break}if(l&&o.isHeading&&o.headingLevel<=d){l=false}if(n||l){s.setHidden(true);continue}if(o.collapsed&&o.isHeading){l=true;d=o.headingLevel}s.setHidden(false)}if(c===i.widgets.length){t.numberChildNodes=c-o-1}else{t.numberChildNodes=c-o}e.setCellCollapse(t,n);return c+1}e.setHeadingCollapse=ve;function _e(t){if(!t.activeCell||t.activeCellIndex===undefined){return}let n=e.getHeadingInfo(t.activeCell);if(n.isHeading){e.setHeadingCollapse(t.activeCell,!n.collapsed,t)}t.scrollToItem(t.activeCellIndex).catch((e=>{}))}e.toggleCurrentHeadingCollapse=_e;function be(e,t){if(e instanceof s.MarkdownCell){e.headingCollapsed=t}else{e.setHidden(t)}}e.setCellCollapse=be;function ye(e){if(!(e instanceof s.MarkdownCell)){return{isHeading:false,headingLevel:7}}let t=e.headingInfo.level;let n=e.headingCollapsed;return{isHeading:t>0,headingLevel:t,collapsed:n}}e.getHeadingInfo=ye;function we(e,t){t=t||r.nullTranslator;const n=t.load("jupyterlab");if(!e.model){return Promise.resolve()}const s=(0,a.every)(e.model.cells,(e=>e.trusted));const o=c.createElement("p",null,n.__("A trusted Jupyter notebook may execute hidden malicious code when you open it."),c.createElement("br",null),n.__('Selecting "Trust" will re-render this notebook in a trusted state.'),c.createElement("br",null),n.__("For more information, see")," ",c.createElement("a",{href:"https://jupyter-server.readthedocs.io/en/stable/operators/security.html",target:"_blank",rel:"noopener noreferrer"},n.__("the Jupyter security documentation")),".");if(s){return(0,i.showDialog)({body:n.__("Notebook is already trusted"),buttons:[i.Dialog.okButton()]}).then((()=>undefined))}return(0,i.showDialog)({body:o,title:n.__("Trust this notebook?"),buttons:[i.Dialog.cancelButton(),i.Dialog.warnButton({label:n.__("Trust"),ariaLabel:n.__("Confirm Trusting this notebook")})]}).then((t=>{if(t.button.accept){if(e.model){for(const t of e.model.cells){t.trusted=true}}}}))}e.trust=we;async function Ce(e,t={waitUntilReady:true,preventScroll:false}){const{activeCell:n}=e;const{waitUntilReady:i,preventScroll:s}=t;if(!n){return}if(i){await n.ready}if(e.isDisposed||n.isDisposed){return}n.node.focus({preventScroll:s})}e.focusActiveCell=Ce;async function xe(e){if(!e.notebookConfig.accessKernelHistory){return}const t=e.activeCell;if(t){if(e.kernelHistory){const n=await e.kernelHistory.back(t);e.kernelHistory.updateEditor(t,n)}}}e.accessPreviousHistory=xe;async function Se(e){if(!e.notebookConfig.accessKernelHistory){return}const t=e.activeCell;if(t){if(e.kernelHistory){const n=await e.kernelHistory.forward(t);e.kernelHistory.updateEditor(t,n)}}}e.accessNextHistory=Se})(f||(f={}));function v(e){if(_.executor){throw new Error("Cell executor can only be set once.")}_.executor=e}var _;(function(e){e.executed=new d.Signal({});e.executionScheduled=new d.Signal({});e.selectionExecuted=new d.Signal({});e.outputCleared=new d.Signal({});function t(e){var t,n;return{wasFocused:e.node.contains(document.activeElement),activeCellId:(n=(t=e.activeCell)===null||t===void 0?void 0:t.model.id)!==null&&n!==void 0?n:null}}e.getState=t;async function n(e,t,n=false){const{activeCell:i,activeCellIndex:s}=e;if(n&&i){await e.scrollToItem(s,"auto",0).catch((e=>{}))}if(t.wasFocused||e.mode==="edit"){e.activate()}}e.handleState=n;async function s(e,t,n){const{activeCell:i,activeCellIndex:s}=e;if(i){await e.scrollToItem(s,"smart",0,n).catch((e=>{}))}if(t.wasFocused||e.mode==="edit"){e.activate()}}e.handleRunState=s;function a(t,n,s,o,a){const l=n[n.length-1];t.mode="command";let d=false;return Promise.all(n.map((e=>{if(e.model.type==="code"&&t.notebookConfig.enableKernelInitNotification&&s&&s.kernelDisplayStatus==="initializing"&&!d){d=true;a=a||r.nullTranslator;const e=a.load("jupyterlab");i.Notification.emit(e.__(`Kernel '${s.kernelDisplayName}' for '${s.path}' is still initializing. You can run code cells when the kernel has initialized.`),"warning",{autoClose:false});return Promise.resolve(false)}if(e.model.type==="code"&&t.notebookConfig.enableKernelInitNotification&&d){return Promise.resolve(false)}return c(t,e,s,o,a)}))).then((n=>{if(t.isDisposed){return false}e.selectionExecuted.emit({notebook:t,lastCell:l});t.update();return n.every((e=>e))})).catch((i=>{if(i.message.startsWith("KernelReplyNotOK")){n.map((e=>{if(e.model.type==="code"&&e.model.executionCount==null){e.model.executionState="idle"}}))}else{throw i}e.selectionExecuted.emit({notebook:t,lastCell:l});t.update();return false}))}e.runCells=a;function l(e,t,n,i){e.mode="command";let s=e.activeCellIndex;const o=e.widgets.filter(((t,n)=>{const i=e.isSelectedOrActive(t);if(i){s=n}return i}));e.activeCellIndex=s;e.deselectAll();return a(e,o,t,n,i)}e.runSelected=l;async function c(t,n,i,s,o){if(!e.executor){console.warn("Requesting cell execution without any cell executor defined. Falling back to default execution.")}const r={cell:n,notebook:t.model,notebookConfig:t.notebookConfig,onCellExecuted:n=>{e.executed.emit({notebook:t,...n})},onCellExecutionScheduled:n=>{e.executionScheduled.emit({notebook:t,...n})},sessionContext:i,sessionDialogs:s,translator:o};return e.executor?e.executor.runCell(r):u(r)}function h(e){return e.widgets.filter((t=>e.isSelectedOrActive(t))).map((e=>e.model.toJSON())).map((e=>{if(e.metadata.deletable!==undefined){delete e.metadata.deletable}return e}))}e.selectedCells=h;function p(s,o){if(!s.model||!s.activeCell){return}const r=t(s);const a=i.Clipboard.getInstance();s.mode="command";a.clear();const l=e.selectedCells(s);a.setData(m,l);if(o){_(s)}else{s.deselectAll()}if(o){s.lastClipboardInteraction="cut"}else{s.lastClipboardInteraction="copy"}void n(s,r)}e.copyOrCut=p;async function g(s,o){if(!s.model||!s.activeCell){return}const r=t(s);const a=i.SystemClipboard.getInstance();s.mode="command";a.clear();const l=e.selectedCells(s);await a.setData(m,l);if(o){_(s)}else{s.deselectAll()}if(o){s.lastClipboardInteraction="cut"}else{s.lastClipboardInteraction="copy"}void n(s,r)}e.copyOrCutToSystemClipboard=g;function v(e,t,n){const s=e.model.sharedModel;e.widgets.forEach(((o,a)=>{if(!e.isSelectedOrActive(o)){return}if(o.model.type==="code"&&o.outputArea.pendingInput){n=n||r.nullTranslator;const e=n.load("jupyterlab");void(0,i.showDialog)({title:e.__("Cell type not changed due to pending input"),body:e.__("The cell type has not been changed to avoid kernel deadlock as this cell has pending input! Submit your pending input and try again."),buttons:[i.Dialog.okButton()]});return}if(o.model.getMetadata("editable")==false){n=n||r.nullTranslator;const e=n.load("jupyterlab");void(0,i.showDialog)({title:e.__("Cell is read-only"),body:e.__("The cell is read-only, its type cannot be changed!"),buttons:[i.Dialog.okButton()]});return}if(o.model.type!==t){const e=o.model.toJSON();s.transact((()=>{s.deleteCell(a);if(t==="code"){e.metadata.trusted=true}else{e.metadata.trusted=undefined}const n=s.insertCell(a,{id:e.id,cell_type:t,source:e.source,metadata:e.metadata});if(e.attachments&&["markdown","raw"].includes(t)){n.attachments=e.attachments}}))}if(t==="markdown"){o=e.widgets[a];o.rendered=false}}));e.deselectAll()}e.changeCellType=v;function _(e){const t=e.model;const n=t.sharedModel;const i=[];e.mode="command";e.widgets.forEach(((t,n)=>{var s;const o=t.model.getMetadata("deletable")!==false;if(e.isSelectedOrActive(t)&&o){i.push(n);(s=e.model)===null||s===void 0?void 0:s.deletedCells.push(t.model.id)}}));if(i.length>0){n.transact((()=>{i.reverse().forEach((e=>{n.deleteCell(e)}));if(n.cells.length==i.length){n.insertCell(0,{cell_type:e.notebookConfig.defaultCell,metadata:e.notebookConfig.defaultCell==="code"?{trusted:true}:{}})}}));e.activeCellIndex=i[0]-i.length+1}e.deselectAll()}e.deleteCells=_;function b(e,t){let n=e.sharedModel.getSource();const i=/^(#+\s*)|^(\s*)/;const s=Array(t+1).join("#")+" ";const o=i.exec(n);if(o){n=n.slice(o[0].length)}e.sharedModel.setSource(s+n)}e.setMarkdownHeader=b;let y;(function(t){function n(e,t,n=false,i=false){let s=t.widgets.indexOf(e)-(n?1:0);while(s>=0){let e=f.getHeadingInfo(t.widgets[s]);if(e.isHeading){return i?s:t.widgets[s]}s--}return i?-1:null}t.findParentHeading=n;function i(t,n,i=false){let s=e.Headings.determineHeadingLevel(t,n);if(s==-1){s=1}let o=n.widgets.indexOf(t)-1;while(o>=0){let e=n.widgets[o];let t=f.getHeadingInfo(e);if(t.isHeading&&t.headingLevel<=s){return i?o:e}o--}return i?-1:null}t.findLowerEqualLevelParentHeadingAbove=i;function s(t,n,i=false){let s=e.Headings.determineHeadingLevel(t,n);if(s==-1){s=1}let o=n.widgets.indexOf(t)+1;while(o{}))}i.deselectAll();void e.handleState(i,r,true);i.mode="edit";i.widgets[t].setHidden(false)}t.insertHeadingAboveCellIndex=l})(y=e.Headings||(e.Headings={}))})(_||(_={}));class b{constructor(e){this.model=e;this._cellMap=new WeakMap;this._changed=new d.Signal(this);this._isDisposed=false;this._insertCells(0,this.model.cells);this.model.changed.connect(this._onSharedModelChanged,this)}get changed(){return this._changed}get isDisposed(){return this._isDisposed}get length(){return this.model.cells.length}*[Symbol.iterator](){for(const e of this.model.cells){yield this._cellMap.get(e)}}dispose(){var e;if(this._isDisposed){return}this._isDisposed=true;for(const t of this.model.cells){(e=this._cellMap.get(t))===null||e===void 0?void 0:e.dispose()}d.Signal.clearData(this)}get(e){return this._cellMap.get(this.model.cells[e])}_insertCells(e,t){t.forEach((e=>{let t;switch(e.cell_type){case"code":{t=new s.CodeCellModel({sharedModel:e});break}case"markdown":{t=new s.MarkdownCellModel({sharedModel:e});break}default:{t=new s.RawCellModel({sharedModel:e})}}this._cellMap.set(e,t);e.disposed.connect((()=>{t.dispose();this._cellMap.delete(e)}))}));return this.length}_onSharedModelChanged(e,t){var n;let i=0;const s=new Array;(n=t.cellsChange)===null||n===void 0?void 0:n.forEach((e=>{if(e.insert!=null){this._insertCells(i,e.insert);s.push({type:"add",newIndex:i,newValues:e.insert.map((e=>this._cellMap.get(e))),oldIndex:-2,oldValues:[]});i+=e.insert.length}else if(e.delete!=null){s.push({type:"remove",newIndex:-1,newValues:[],oldIndex:i,oldValues:new Array(e.delete).fill(undefined)})}else if(e.retain!=null){i+=e.retain}}));s.forEach((e=>this._changed.emit(e)))}}var y=n(4073);const w="jp-Notebook-toolbarCellType";const C="jp-Notebook-toolbarCellTypeDropdown";var x;(function(e){function t(e,t){const n=(t||r.nullTranslator).load("jupyterlab");function s(){if(e.context.model.readOnly){return(0,i.showDialog)({title:n.__("Cannot Save"),body:n.__("Document is read-only"),buttons:[i.Dialog.okButton()]})}void e.context.save().then((()=>{if(!e.isDisposed){return e.context.createCheckpoint()}}))}return(0,y.addToolbarButtonClass)(y.ReactWidget.create(c.createElement(y.UseSignal,{signal:e.context.fileChanged},(()=>c.createElement(y.ToolbarButtonComponent,{icon:y.saveIcon,onClick:s,tooltip:n.__("Save the notebook contents and create checkpoint"),enabled:!!(e&&e.context&&e.context.contentsModel&&e.context.contentsModel.writable)})))))}e.createSaveButton=t;function n(e,t){const n=(t||r.nullTranslator).load("jupyterlab");return new y.ToolbarButton({icon:y.addIcon,onClick:()=>{f.insertBelow(e.content)},tooltip:n.__("Insert a cell below")})}e.createInsertButton=n;function s(e,t){const n=(t||r.nullTranslator).load("jupyterlab");return new y.ToolbarButton({icon:y.cutIcon,onClick:async()=>{await f.cutToSystemClipboard(e.content)},tooltip:n.__("Cut the selected cells")})}e.createCutButton=s;function o(e,t){const n=(t||r.nullTranslator).load("jupyterlab");return new y.ToolbarButton({icon:y.copyIcon,onClick:async()=>{await f.copyToSystemClipboard(e.content)},tooltip:n.__("Copy the selected cells")})}e.createCopyButton=o;function a(e,t){const n=(t||r.nullTranslator).load("jupyterlab");return new y.ToolbarButton({icon:y.pasteIcon,onClick:async()=>{await f.pasteFromSystemClipboard(e.content)},tooltip:n.__("Paste cells from the clipboard")})}e.createPasteButton=a;function l(e,t,n){const i=(n!==null&&n!==void 0?n:r.nullTranslator).load("jupyterlab");return new y.ToolbarButton({icon:y.runIcon,onClick:()=>{void f.runAndAdvance(e.content,e.sessionContext,t,n)},tooltip:i.__("Run the selected cells and advance")})}e.createRunButton=l;function d(e,t,n){const s=(n!==null&&n!==void 0?n:r.nullTranslator).load("jupyterlab");return new y.ToolbarButton({icon:y.fastForwardIcon,onClick:()=>{const s=t!==null&&t!==void 0?t:new i.SessionContextDialogs({translator:n});void s.restart(e.sessionContext).then((t=>{if(t){void f.runAll(e.content,e.sessionContext,s,n)}return t}))},tooltip:s.__("Restart the kernel, then re-run the whole notebook")})}e.createRestartRunAllButton=d;function h(e,t){return new S(e.content,t)}e.createCellTypeItem=h;function u(e,r,c){return[{name:"save",widget:t(e,c)},{name:"insert",widget:n(e,c)},{name:"cut",widget:s(e,c)},{name:"copy",widget:o(e,c)},{name:"paste",widget:a(e,c)},{name:"run",widget:l(e,r,c)},{name:"interrupt",widget:i.Toolbar.createInterruptButton(e.sessionContext,c)},{name:"restart",widget:i.Toolbar.createRestartButton(e.sessionContext,r,c)},{name:"restart-and-run",widget:d(e,r,c)},{name:"cellType",widget:h(e,c)},{name:"spacer",widget:y.Toolbar.createSpacerItem()},{name:"kernelName",widget:i.Toolbar.createKernelNameItem(e.sessionContext,r,c)}]}e.getDefaultItems=u})(x||(x={}));class S extends y.ReactWidget{constructor(e,t){super();this.handleChange=e=>{if(e.target.value!=="-"){f.changeCellType(this._notebook,e.target.value);this._notebook.activate()}};this.handleKeyDown=e=>{if(e.keyCode===13){this._notebook.activate()}};this._trans=(t||r.nullTranslator).load("jupyterlab");this.addClass(w);this._notebook=e;if(e.model){this.update()}e.activeCellChanged.connect(this.update,this);e.selectionChanged.connect(this.update,this)}render(){let e="-";if(this._notebook.activeCell){e=this._notebook.activeCell.model.type}for(const t of this._notebook.widgets){if(this._notebook.isSelectedOrActive(t)){if(t.model.type!==e){e="-";break}}}return c.createElement(y.HTMLSelect,{className:C,onChange:this.handleChange,onKeyDown:this.handleKeyDown,value:e,"aria-label":this._trans.__("Cell type"),title:this._trans.__("Select the cell type")},c.createElement("option",{value:"-"},"-"),c.createElement("option",{value:"code"},this._trans.__("Code")),c.createElement("option",{value:"markdown"},this._trans.__("Markdown")),c.createElement("option",{value:"raw"},this._trans.__("Raw")))}}var j=n(4625);var k=n(49278);function I(e){var t;const n=e.translator||r.nullTranslator;const s=(0,i.translateKernelStatuses)(n);const o=n.load("jupyterlab");const a=(t=e.displayOption.showJumpToCell)!==null&&t!==void 0?t:false;const l=e.state;const d=e.displayOption.showOnToolBar;const c=e.displayOption.showProgress;const u=d?"down":"up";const p=h().createElement("div",null);const[m,g]=h().useState(false);h().useEffect((()=>{if(m){return}const e=()=>{g(true)};f.executionScheduled.connect(e);return()=>{f.executionScheduled.disconnect(e)}}),[a,m]);if(!l){return p}const v=l.kernelStatus;const _={alignSelf:"normal",height:"24px"};const b=l.totalTime;const w=l.scheduledCellNumber||0;const C=l.scheduledCell.size||0;const x=w-C;let S=100*x/w;let k=c?"":"hidden";if(!c&&S<100){S=0}const I=e=>h().createElement(j.ProgressCircle,{progress:e,width:16,height:24,label:o.__("Kernel status")});const T=e=>o.__("Kernel status: %1",e);const E=()=>{const t=e.notebook;f.selectLastRunCell(t);if(t.activeCell){void t.scrollToCell(t.activeCell)}};const M=(e,t,n)=>h().createElement("div",{className:"jp-Notebook-ExecutionIndicator",title:c?"":T(s[e]),"data-status":e},t,h().createElement("div",{className:`jp-Notebook-ExecutionIndicator-tooltip ${u} ${k}`},h().createElement("span",null," ",T(s[e])," "),n,a&&m&&h().createElement(y.Button,{className:"jp-Notebook-ExecutionIndicator-jumpButton",onClick:E,title:o.__("Jump to current or last executed cell")},o.__("Jump to cell"))));if(l.kernelStatus==="connecting"||l.kernelStatus==="disconnected"||l.kernelStatus==="unknown"){return M(v,h().createElement(y.offlineBoltIcon.react,{..._}),[])}if(l.kernelStatus==="starting"||l.kernelStatus==="terminating"||l.kernelStatus==="restarting"||l.kernelStatus==="initializing"){return M(v,h().createElement(y.circleIcon.react,{..._}),[])}if(l.executionStatus==="busy"){return M("busy",I(S),[h().createElement("span",{key:0},o.__(`Executed ${x}/${w} cells`)),h().createElement("span",{key:1},o._n("Elapsed time: %1 second","Elapsed time: %1 seconds",b))])}else{const e=l.kernelStatus==="busy"?0:100;const t=l.kernelStatus==="busy"||b===0?[]:[h().createElement("span",{key:0},o._n("Executed %1 cell","Executed %1 cells",w)),h().createElement("span",{key:1},o._n("Elapsed time: %1 second","Elapsed time: %1 seconds",b))];return M(l.kernelStatus,I(e),t)}}class T extends y.VDomRenderer{constructor(e,t=true){super(new T.Model);this.translator=e||r.nullTranslator;this.addClass("jp-mod-highlighted")}render(){if(this.model===null||!this.model.renderFlag){return h().createElement("div",null)}else{const e=this.model.currentNotebook;if(!e){return h().createElement(I,{displayOption:this.model.displayOption,state:undefined,translator:this.translator,notebook:undefined})}return h().createElement(I,{displayOption:this.model.displayOption,state:this.model.executionState(e),translator:this.translator,notebook:e})}}}(function(e){class t extends y.VDomModel{constructor(){super();this._notebookExecutionProgress=new WeakMap;this._displayOption={showOnToolBar:true,showProgress:true,showJumpToCell:false};this._renderFlag=true}attachNotebook(e){var t,n,i,s;if(e&&e.content&&e.context){const o=e.content;const r=e.context;this._currentNotebook=o;if(!this._notebookExecutionProgress.has(o)){this._notebookExecutionProgress.set(o,{executionStatus:"idle",kernelStatus:"idle",totalTime:0,interval:0,timeout:0,scheduledCell:new Set,scheduledCellNumber:0,needReset:true});const e=this._notebookExecutionProgress.get(o);const a=t=>{if(e){e.kernelStatus=t.kernelDisplayStatus}this.stateChanged.emit(void 0)};r.statusChanged.connect(a,this);const l=t=>{if(e){e.kernelStatus=t.kernelDisplayStatus}this.stateChanged.emit(void 0)};r.connectionStatusChanged.connect(l,this);r.disposed.connect((e=>{e.connectionStatusChanged.disconnect(l,this);e.statusChanged.disconnect(a,this)}));const d=(e,t)=>{const n=t.msg;const i=n.header.msg_id;if(n.header.msg_type==="execute_request"){this._cellScheduledCallback(o,i)}else if(k.KernelMessage.isStatusMsg(n)&&n.content.execution_state==="idle"){const e=n.parent_header.msg_id;this._cellExecutedCallback(o,e)}else if(k.KernelMessage.isStatusMsg(n)&&n.content.execution_state==="restarting"){this._restartHandler(o)}else if(n.header.msg_type==="execute_input"){this._startTimer(o)}};(n=(t=r.session)===null||t===void 0?void 0:t.kernel)===null||n===void 0?void 0:n.anyMessage.connect(d);(s=(i=r.session)===null||i===void 0?void 0:i.kernel)===null||s===void 0?void 0:s.disposed.connect((e=>e.anyMessage.disconnect(d)));const c=(t,n)=>{if(e){this._resetTime(e);this.stateChanged.emit(void 0);if(n.newValue){n.newValue.anyMessage.connect(d)}}};r.kernelChanged.connect(c);r.disposed.connect((e=>e.kernelChanged.disconnect(c)))}}}get currentNotebook(){return this._currentNotebook}get displayOption(){return this._displayOption}set displayOption(e){this._displayOption=e}executionState(e){return this._notebookExecutionProgress.get(e)}_scheduleSwitchToIdle(e){window.setTimeout((()=>{e.executionStatus="idle";clearInterval(e.interval);this.stateChanged.emit(void 0)}),150);e.timeout=window.setTimeout((()=>{e.needReset=true}),1e3)}_cellExecutedCallback(e,t){const n=this._notebookExecutionProgress.get(e);if(n&&n.scheduledCell.has(t)){n.scheduledCell.delete(t);if(n.scheduledCell.size===0){this._scheduleSwitchToIdle(n)}}}_restartHandler(e){const t=this._notebookExecutionProgress.get(e);if(t){t.scheduledCell.clear();this._scheduleSwitchToIdle(t)}}_startTimer(e){const t=this._notebookExecutionProgress.get(e);if(!t){return}if(t.scheduledCell.size>0){if(t.executionStatus!=="busy"){t.executionStatus="busy";clearTimeout(t.timeout);this.stateChanged.emit(void 0);t.interval=window.setInterval((()=>{this._tick(t)}),1e3)}}else{this._resetTime(t)}}_cellScheduledCallback(e,t){const n=this._notebookExecutionProgress.get(e);if(n&&!n.scheduledCell.has(t)){if(n.needReset){this._resetTime(n)}n.scheduledCell.add(t);n.scheduledCellNumber+=1}}_tick(e){e.totalTime+=1;this.stateChanged.emit(void 0)}_resetTime(e){e.totalTime=0;e.scheduledCellNumber=0;e.executionStatus="idle";e.scheduledCell=new Set;clearTimeout(e.timeout);clearInterval(e.interval);e.needReset=false}get renderFlag(){return this._renderFlag}updateRenderOption(e){if(this.displayOption.showOnToolBar){if(!e.showOnToolBar){this._renderFlag=false}else{this._renderFlag=true}}this.displayOption.showProgress=e.showProgress;this.displayOption.showJumpToCell=e.showJumpToCell;this.stateChanged.emit(void 0)}}e.Model=t;function n(t,n,s){const o=new e(n);o.model.displayOption={showOnToolBar:true,showProgress:true,showJumpToCell:false};o.model.attachNotebook({content:t.content,context:t.sessionContext});if(s){s.then((e=>{const t=e=>{const t=i(e);if(t.showJumpToCell){const t=e.get("recordTiming").composite;if(!t){e.set("recordTiming",true).catch((e=>{console.error("Failed to auto-enable recordTiming:",e.message)}))}}o.model.updateRenderOption(t)};e.changed.connect(t);t(e);o.disposed.connect((()=>{e.changed.disconnect(t)}))})).catch((e=>{console.error(e.message)}))}return o}e.createExecutionIndicatorItem=n;function i(e){let t=true;let n=true;let i=false;const s=e.get("kernelStatus").composite;if(s){t=!s.showOnStatusBar;n=s.showProgress;i=s.showJumpToRecentExecutionButton}return{showOnToolBar:t,showProgress:n,showJumpToCell:i}}e.getSettingValue=i})(T||(T={}));class E{constructor(e){this._requestBatchSize=10;this._cursor=0;this._hasSession=false;this._history=[];this._placeholder="";this._kernelSession="";this._setByHistory=false;this._isDisposed=false;this._editor=null;this._filtered=[];this._kernel=null;this._sessionContext=e.sessionContext;this._trans=(e.translator||r.nullTranslator).load("jupyterlab");void this._handleKernel().then((()=>{this._sessionContext.kernelChanged.connect(this._handleKernel,this)}));this._toRequest=this._requestBatchSize}get editor(){return this._editor}set editor(e){if(this._editor===e){return}const t=this._editor;if(t){t.model.sharedModel.changed.disconnect(this.onTextChange,this)}this._editor=e;if(e){e.model.sharedModel.changed.connect(this.onTextChange,this)}}get placeholder(){return this._placeholder}get kernelSession(){return this._kernelSession}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed=true;this._history.length=0;d.Signal.clearData(this)}async checkSession(e){var t;if(!this._hasSession){await this._retrieveHistory();this._hasSession=true;this.editor=e.editor;this._placeholder=((t=this._editor)===null||t===void 0?void 0:t.model.sharedModel.getSource())||"";this.setFilter(this._placeholder);this._cursor=this._filtered.length-1}}async back(e){await this.checkSession(e);--this._cursor;if(this._cursor<0){await this.fetchBatch()}this._cursor=Math.max(0,this._cursor);const t=this._filtered[this._cursor];return t}async forward(e){await this.checkSession(e);++this._cursor;this._cursor=Math.min(this._filtered.length-1,this._cursor);const t=this._filtered[this._cursor];return t}updateEditor(e,t){var n,i;if(e){const s=(n=e.editor)===null||n===void 0?void 0:n.model;const o=s===null||s===void 0?void 0:s.sharedModel.getSource();if(this.isDisposed||!t){return}if(o===t){return}this._setByHistory=true;s===null||s===void 0?void 0:s.sharedModel.setSource(t);let r=0;r=t.indexOf("\n");if(r<0){r=t.length}(i=e.editor)===null||i===void 0?void 0:i.setCursorPosition({line:0,column:r})}}reset(){this._hasSession=false;this._placeholder="";this._toRequest=this._requestBatchSize}async fetchBatch(){this._toRequest+=this._requestBatchSize;let e=this._filtered.slice().reverse();let t=this._history.slice();await this._retrieveHistory().then((()=>{this.setFilter(this._placeholder);let t=0;let n=this._filtered.slice().reverse();for(let i=0;it.length){await this.fetchBatch()}}}onHistory(e,t){this._history.length=0;let n=["","",""];let i=["","",""];let s="";if(e.content.status==="ok"){for(let t=0;t{this.onHistory(t,e)})).catch((()=>{console.warn(this._trans.__("History was unable to be retrieved"))})))}setFilter(e=""){this._filtered.length=0;let t="";let n="";for(let i=0;io;let t;if(e){t=this._trans.__(`This notebook has been converted from an older notebook format (v%1)\nto the current notebook format (v%2).\nThe next time you save this notebook, the current notebook format (v%2) will be used.\n'Older versions of Jupyter may not be able to read the new format.' To preserve the original format version,\nclose the notebook without saving it.`,o,s.nbformat)}else{t=this._trans.__(`This notebook has been converted from an newer notebook format (v%1)\nto the current notebook format (v%2).\nThe next time you save this notebook, the current notebook format (v%2) will be used.\nSome features of the original notebook may not be available.' To preserve the original format version,\nclose the notebook without saving it.`,o,s.nbformat)}void(0,i.showDialog)({title:this._trans.__("Notebook converted"),body:t,buttons:[i.Dialog.okButton({label:this._trans.__("Ok")})]})}if(((n=(t=s.cells)===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)===0){s["cells"]=[{cell_type:"code",source:"",metadata:{trusted:true}}]}this.sharedModel.fromJSON(s);this._ensureMetadata();this.dirty=true}_onCellsChanged(e,t){switch(t.type){case"add":t.newValues.forEach((e=>{e.contentChanged.connect(this.triggerContentChange,this)}));break;case"remove":break;case"clear":break;case"set":t.newValues.forEach((e=>{e.contentChanged.connect(this.triggerContentChange,this)}));break;default:break}this.triggerContentChange()}_onMetadataChanged(e,t){this._metadataChanged.emit(t);this.triggerContentChange()}_onStateChanged(e,t){if(t.stateChange){t.stateChange.forEach((e=>{if(e.name==="dirty"){this.dirty=e.newValue}else if(e.oldValue!==e.newValue){this.triggerStateChange({newValue:undefined,oldValue:undefined,...e})}}))}}_ensureMetadata(e=""){if(!this.getMetadata("language_info")){this.sharedModel.setMetadata("language_info",{name:e})}if(!this.getMetadata("kernelspec")){this.sharedModel.setMetadata("kernelspec",{name:"",display_name:""})}}triggerStateChange(e){this._stateChanged.emit(e)}triggerContentChange(){this._contentChanged.emit(void 0);this.dirty=true}get isDisposed(){return this._isDisposed}}class L{constructor(e={}){var t,n;this._disposed=false;this._disableDocumentWideUndoRedo=(t=e.disableDocumentWideUndoRedo)!==null&&t!==void 0?t:true;this._collaborative=(n=e.collaborative)!==null&&n!==void 0?n:true}get disableDocumentWideUndoRedo(){return this._disableDocumentWideUndoRedo}set disableDocumentWideUndoRedo(e){this._disableDocumentWideUndoRedo=e}get name(){return"notebook"}get contentType(){return"notebook"}get fileFormat(){return"json"}get collaborative(){return this._collaborative}get isDisposed(){return this._disposed}dispose(){this._disposed=true}createNew(e={}){return new P({languagePreference:e.languagePreference,sharedModel:e.sharedModel,collaborationEnabled:e.collaborationEnabled&&this.collaborative,disableDocumentWideUndoRedo:this._disableDocumentWideUndoRedo})}preferredLanguage(e){return""}}function R(e){const t=(e.translator||r.nullTranslator).load("jupyterlab");return c.createElement(j.TextItem,{source:t.__("Mode: %1",e.modeNames[e.notebookMode])})}class N extends y.VDomRenderer{constructor(e){super(new N.Model);this.translator=e||r.nullTranslator;this._trans=this.translator.load("jupyterlab");this._modeNames={command:this._trans.__("Command"),edit:this._trans.__("Edit")}}render(){if(!this.model){return null}this.node.title=this._trans.__("Notebook is in %1 mode",this._modeNames[this.model.notebookMode]);return c.createElement(R,{notebookMode:this.model.notebookMode,translator:this.translator,modeNames:this._modeNames})}}(function(e){class t extends y.VDomModel{constructor(){super(...arguments);this._onChanged=e=>{const t=this._notebookMode;if(this._notebook){this._notebookMode=e.mode}else{this._notebookMode="command"}this._triggerChange(t,this._notebookMode)};this._notebookMode="command";this._notebook=null}get notebookMode(){return this._notebookMode}set notebook(e){const t=this._notebook;if(t!==null){t.stateChanged.disconnect(this._onChanged,this);t.activeCellChanged.disconnect(this._onChanged,this);t.modelContentChanged.disconnect(this._onChanged,this)}const n=this._notebookMode;this._notebook=e;if(this._notebook===null){this._notebookMode="command"}else{this._notebookMode=this._notebook.mode;this._notebook.stateChanged.connect(this._onChanged,this);this._notebook.activeCellChanged.connect(this._onChanged,this);this._notebook.modelContentChanged.connect(this._onChanged,this)}this._triggerChange(n,this._notebookMode)}_triggerChange(e,t){if(e!==t){this.stateChanged.emit(void 0)}}}e.Model=t})(N||(N={}));var B=n(44389);var O=n(71681);class F extends O.WidgetLSPAdapter{constructor(e,t){super(e,t);this.editorWidget=e;this.options=t;this._type="code";this._readyDelegate=new l.PromiseDelegate;this._editorToCell=new Map;this.editor=e.content;this._cellToEditor=new WeakMap;this.isReady=this.isReady.bind(this);Promise.all([this.widget.context.sessionContext.ready,this.connectionManager.ready]).then((async()=>{await this.initOnceReady();this._readyDelegate.resolve()})).catch(console.error)}get documentPath(){return this.widget.context.path}get mimeType(){var e;let t;let n=this.language_info();if(!n||!n.mimetype){t=this.widget.content.codeMimetype}else{t=n.mimetype}return Array.isArray(t)?(e=t[0])!==null&&e!==void 0?e:B.IEditorMimeTypeService.defaultMimeType:t}get languageFileExtension(){let e=this.language_info();if(!e||!e.file_extension){return}return e.file_extension.replace(".","")}get wrapperElement(){return this.widget.node}get editors(){if(this.isDisposed){return[]}let e=this.widget.content;this._editorToCell.clear();if(e.isDisposed){return[]}return e.widgets.map((e=>({ceEditor:this._getCellEditor(e),type:e.model.type,value:e.model.sharedModel.getSource()})))}get activeEditor(){return this.editor.activeCell?this._getCellEditor(this.editor.activeCell):undefined}get ready(){return this._readyDelegate.promise}getEditorIndexAt(e){let t=this._getCellAt(e);let n=this.widget.content;return n.widgets.findIndex((e=>t===e))}getEditorIndex(e){let t=this._editorToCell.get(e);return this.editor.widgets.findIndex((e=>t===e))}getEditorWrapper(e){let t=this._editorToCell.get(e);return t.node}async onKernelChanged(e,t){if(!t.newValue){return}try{const e=this._languageInfo;await(0,O.untilReady)(this.isReady,-1);await this._updateLanguageInfo();const t=this._languageInfo;if((e===null||e===void 0?void 0:e.name)!=t.name||(e===null||e===void 0?void 0:e.mimetype)!=(t===null||t===void 0?void 0:t.mimetype)||(e===null||e===void 0?void 0:e.file_extension)!=(t===null||t===void 0?void 0:t.file_extension)){console.log(`Changed to ${this._languageInfo.name} kernel, reconnecting`);this.reloadConnection()}else{console.log("Keeping old LSP connection as the new kernel uses the same language")}}catch(n){console.warn(n);this.reloadConnection()}}dispose(){if(this.isDisposed){return}this.widget.context.sessionContext.kernelChanged.disconnect(this.onKernelChanged,this);this.widget.content.activeCellChanged.disconnect(this._activeCellChanged,this);super.dispose();this._editorToCell.clear();d.Signal.clearData(this)}isReady(){var e;return!this.widget.isDisposed&&this.widget.context.isReady&&this.widget.content.isVisible&&this.widget.content.widgets.length>0&&((e=this.widget.context.sessionContext.session)===null||e===void 0?void 0:e.kernel)!=null}async handleCellChange(e,t){let n=[];let i=[];const s=this._type;if(t.type==="set"){let e=[];let o=[];if(t.newValues.length===t.oldValues.length){for(let n=0;ne.type===s))}if(i.length||n.length||t.type==="set"||t.type==="move"||t.type==="remove"||t.type==="clear"){await this.updateDocuments()}for(let o of n){let e=this.widget.content.widgets.find((e=>e.model.id===o.id));if(!e){console.warn(`Widget for added cell with ID: ${o.id} not found!`);continue}this._getCellEditor(e)}}createVirtualDocument(){return new O.VirtualDocument({language:this.language,foreignCodeExtractors:this.options.foreignCodeExtractorsManager,path:this.documentPath,fileExtension:this.languageFileExtension,standalone:false,hasLspSupportedFile:false})}language_info(){return this._languageInfo}async initOnceReady(){await(0,O.untilReady)(this.isReady.bind(this),-1);await this._updateLanguageInfo();this.initVirtual();this.connectDocument(this.virtualDocument,false).catch(console.warn);this.widget.context.sessionContext.kernelChanged.connect(this.onKernelChanged,this);this.widget.content.activeCellChanged.connect(this._activeCellChanged,this);this._connectModelSignals(this.widget);this.editor.modelChanged.connect((e=>{console.warn("Model changed, connecting cell change handler; this is not something we were expecting");this._connectModelSignals(e)}))}_connectModelSignals(e){if(e.model===null){console.warn(`Model is missing for notebook ${e}, cannot connect cell changed signal!`)}else{e.model.cells.changed.connect(this.handleCellChange,this)}}async _updateLanguageInfo(){var e,t,n,i;const s=(i=await((n=(t=(e=this.widget.context.sessionContext)===null||e===void 0?void 0:e.session)===null||t===void 0?void 0:t.kernel)===null||n===void 0?void 0:n.info))===null||i===void 0?void 0:i.language_info;if(s){this._languageInfo=s}else{throw new Error("Language info update failed (no session, kernel, or info available)")}}_activeCellChanged(e,t){if(!t||t.model.type!==this._type){return}this._activeEditorChanged.emit({editor:this._getCellEditor(t)})}_getCellAt(e){let t=this.virtualDocument.getEditorAtVirtualLine(e);return this._editorToCell.get(t)}_getCellEditor(e){if(!this._cellToEditor.has(e)){const t=Object.freeze({getEditor:()=>e.editor,ready:async()=>{await e.ready;return e.editor},reveal:async()=>{await this.editor.scrollToCell(e);return e.editor}});this._cellToEditor.set(e,t);this._editorToCell.set(t,e);e.disposed.connect((()=>{this._cellToEditor.delete(e);this._editorToCell.delete(t);this._editorRemoved.emit({editor:t})}));this._editorAdded.emit({editor:t})}return this._cellToEditor.get(e)}}var z=n(23230);var W=n(42856);var H=n(27518);class V extends H.Widget{constructor(){super();this._items=[];this.layout=new H.PanelLayout;this.addClass("jp-RankedPanel")}addWidget(e,t){const n={widget:e,rank:t};const i=a.ArrayExt.upperBound(this._items,n,q.itemCmp);a.ArrayExt.insert(this._items,i,n);const s=this.layout;s.insertWidget(i,e)}onChildRemoved(e){const t=a.ArrayExt.findFirstIndex(this._items,(t=>t.widget===e.child));if(t!==-1){a.ArrayExt.removeAt(this._items,t)}}}class U extends H.Widget{constructor(e){super();this.addClass("jp-NotebookTools");this.translator=e.translator||r.nullTranslator;this._tools=[];this.layout=new H.PanelLayout;this._tracker=e.tracker;this._tracker.currentChanged.connect(this._onActiveNotebookPanelChanged,this);this._tracker.activeCellChanged.connect(this._onActiveCellChanged,this);this._tracker.selectionChanged.connect(this._onSelectionChanged,this);this._onActiveNotebookPanelChanged();this._onActiveCellChanged();this._onSelectionChanged()}get activeCell(){return this._tracker.activeCell}get selectedCells(){const e=this._tracker.currentWidget;if(!e){return[]}const t=e.content;return t.widgets.filter((e=>t.isSelectedOrActive(e)))}get activeNotebookPanel(){return this._tracker.currentWidget}addItem(e){var t;const n=e.tool;const i=(t=e.rank)!==null&&t!==void 0?t:100;let s;const o=this._tools.find((t=>t.section===e.section));if(o)s=o.panel;else{throw new Error(`The section ${e.section} does not exist`)}n.addClass("jp-NotebookTools-tool");s.addWidget(n,i);n.notebookTools=this;W.MessageLoop.sendMessage(n,U.ActiveNotebookPanelMessage);W.MessageLoop.sendMessage(n,U.ActiveCellMessage)}addSection(e){var t;const n=e.sectionName;const i=e.label||e.sectionName;const s=e.tool;let o=(t=e.rank)!==null&&t!==void 0?t:null;const r=new V;r.title.label=i;if(s)r.addWidget(s,0);this._tools.push({section:n,panel:r,rank:o});if(o!=null)this.layout.insertWidget(o,new y.Collapser({widget:r}));else{let e=null;const t=this.layout;for(let n=0;n{this._delayCallbackInScrollingNotebook(e)}),t);this.callback=e;this._delayCallbackInScrollingNotebook=e=>{const t=[];const n=[];for(const i of e){if(te(i.target)&&!ne(i.target)){t.push(i)}else{n.push(i)}}if(n.length){this.callback(n,this)}if(t.length){void this._throttler.invoke(t)}};this._throttler=new ee.Throttler((e=>{this._delayCallbackInScrollingNotebook(e)}),{limit:1e3,edge:"trailing"})}};window.ResizeObserver=class extends window.ResizeObserver{constructor(e){super((e=>{this._delayCallbackInScrollingNotebook(e)}));this.callback=e;this._delayCallbackInScrollingNotebook=e=>{const t=[];const n=[];for(const i of e){if(te(i.target)){t.push(i)}else{n.push(i)}}if(n.length){this.callback(n,this)}if(t.length){void this._throttler.invoke(t)}};this._throttler=new ee.Throttler((e=>{this._delayCallbackInScrollingNotebook(e)}),{limit:1e3,edge:"trailing"})}};class ie extends y.WindowedListModel{constructor(e,t){super(t);this.cells=e;this.estimateWidgetSize=e=>{const t=this.cells[e];if(!t){console.warn(`estimateWidgetSize requested for cell ${e} in notebook with only ${this.cells.length} cells`);return 0}const n=t.model;const i=this.cellsEstimatedHeight.get(n.id);if(typeof i==="number"){return i}const o=n.sharedModel.getSource().split("\n").length;let r=0;if(n instanceof s.CodeCellModel&&!n.isDisposed){for(let e=0;ethis.cells[e];this.scrollDownThreshold=ie.DEFAULT_CELL_MARGIN/2+ie.DEFAULT_EDITOR_LINE_HEIGHT;this.scrollUpThreshold=ie.DEFAULT_CELL_MARGIN/2;this.cellsEstimatedHeight=new Map;this._emitEstimatedHeightChanged=new ee.Debouncer((()=>{this._stateChanged.emit({name:"estimatedWidgetSize",newValue:null,oldValue:null})}));this._estimatedWidgetSize=ie.DEFAULT_CELL_SIZE}setEstimatedWidgetSize(e,t){if(t===null){if(this.cellsEstimatedHeight.has(e)){this.cellsEstimatedHeight.delete(e)}}else{this.cellsEstimatedHeight.set(e,t);this._emitEstimatedHeightChanged.invoke().catch((e=>{console.error("Fail to trigger an update following a estimated height update.",e)}))}}}ie.DEFAULT_CELL_SIZE=39;ie.DEFAULT_EDITOR_LINE_HEIGHT=17;ie.DEFAULT_CELL_MARGIN=22;class se extends y.WindowedLayout{constructor(){super(...arguments);this._header=null;this._footer=null;this._willBeRemoved=null;this._topHiddenCodeCells=-1}get header(){return this._header}set header(e){var t;if(this._header&&this._header.isAttached){H.Widget.detach(this._header)}this._header=e;if(this._header&&((t=this.parent)===null||t===void 0?void 0:t.isAttached)){H.Widget.attach(this._header,this.parent.node)}}get footer(){return this._footer}set footer(e){var t;if(this._footer&&this._footer.isAttached){H.Widget.detach(this._footer)}this._footer=e;if(this._footer&&((t=this.parent)===null||t===void 0?void 0:t.isAttached)){H.Widget.attach(this._footer,this.parent.outerNode)}}get activeCell(){return this._activeCell}set activeCell(e){this._activeCell=e}dispose(){var e,t;if(this.isDisposed){return}(e=this._header)===null||e===void 0?void 0:e.dispose();(t=this._footer)===null||t===void 0?void 0:t.dispose();super.dispose()}removeWidget(e){const t=this.widgets.indexOf(e);if(t>=0){this.removeWidgetAt(t)}else if(e===this._willBeRemoved&&this.parent){this.detachWidget(t,e)}}attachWidget(e,t){const n=t.isPlaceholder();const i=this._isSoftHidden(t);if(this.parent.isAttached&&!i){W.MessageLoop.sendMessage(t,H.Widget.Msg.BeforeAttach)}if(i){this._toggleSoftVisibility(t,true)}if(!n&&t instanceof s.CodeCell&&t.node.parentElement){t.node.style.display="";this._topHiddenCodeCells=-1;if(this.parent.isAttached&&!t.isAttached){t.setFlag(H.Widget.Flag.IsAttached)}}else if(!i){const e=this._findNearestChildBinarySearch(this.parent.viewportNode.childElementCount-1,0,parseInt(t.dataset.windowedListIndex,10)+1);let n=this.parent.viewportNode.children[e];this.parent.viewportNode.insertBefore(t.node,n);if(this.parent.isAttached){W.MessageLoop.sendMessage(t,H.Widget.Msg.AfterAttach)}}t.inViewport=true}detachWidget(e,t){t.inViewport=false;if(t===this.activeCell&&t!==this._willBeRemoved){this._toggleSoftVisibility(t,false);return}const n=t.node.querySelector("defs,.myst");if(n){this._toggleSoftVisibility(t,false);return}if(t instanceof s.CodeCell&&!t.node.classList.contains(Z)&&t!==this._willBeRemoved){t.node.style.display="none";this._topHiddenCodeCells=-1}else{if(this.parent.isAttached){W.MessageLoop.sendMessage(t,H.Widget.Msg.BeforeDetach)}this.parent.viewportNode.removeChild(t.node);t.node.classList.remove(Q)}if(this.parent.isAttached){W.MessageLoop.sendMessage(t,H.Widget.Msg.AfterDetach)}}moveWidget(e,t,n){if(this._topHiddenCodeCells<0){this._topHiddenCodeCells=0;for(let e=0;en){e=i-1}}if(t>0){return t}else{return 0}}}const oe="jp-Notebook-footer";class re extends H.Widget{constructor(e){super({node:document.createElement("button")});this.notebook=e;const t=e.translator.load("jupyterlab");this.addClass(oe);this.node.setAttribute("tabindex","-1");this.node.innerText=t.__("Click to add a cell.")}handleEvent(e){switch(e.type){case"click":this.onClick();break;case"keydown":if(e.key==="ArrowUp"){this.onArrowUp();break}}}onClick(){if(this.notebook.widgets.length>0){this.notebook.activeCellIndex=this.notebook.widgets.length-1}f.insertBelow(this.notebook);void f.focusActiveCell(this.notebook)}onArrowUp(){}onAfterAttach(e){super.onAfterAttach(e);this.node.addEventListener("click",this);this.node.addEventListener("keydown",this)}onBeforeDetach(e){this.node.removeEventListener("click",this);this.node.removeEventListener("keydown",this);super.onBeforeDetach(e)}}const ae="jpKernelUser";const le="jpCodeRunner";const de="jpUndoer";const ce="jp-Notebook";const he="jp-Notebook-cell";const ue="jp-mod-editMode";const pe="jp-mod-commandMode";const me="jp-mod-active";const ge="jp-mod-selected";const fe="jp-mod-dirty";const ve="jp-mod-multiSelected";const _e="jp-mod-unconfined";const be="jp-mod-readWrite";const ye="jp-dragImage";const we="jp-dragImage-singlePrompt";const Ce="jp-dragImage-content";const xe="jp-dragImage-prompt";const Se="jp-dragImage-multipleBack";const je="application/vnd.jupyter.cells";const ke=5;const Ie=50;const Te="jp-collapseHeadingButton";const Ee="jp-mod-showHiddenCellsButton";const Me="jp-mod-sideBySide";if(window.requestIdleCallback===undefined){window.requestIdleCallback=function(e){let t=Date.now();return setTimeout((function(){e({didTimeout:false,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)};window.cancelIdleCallback=function(e){clearTimeout(e)}}class De extends y.WindowedList{constructor(e){var t,n,i,s,o,a;const l=new Array;const c=((n=(t=e.notebookConfig)===null||t===void 0?void 0:t.windowingMode)!==null&&n!==void 0?n:De.defaultNotebookConfig.windowingMode)==="full";super({model:new ie(l,{overscanCount:(s=(i=e.notebookConfig)===null||i===void 0?void 0:i.overscanCount)!==null&&s!==void 0?s:De.defaultNotebookConfig.overscanCount,windowingActive:c}),layout:new se,renderer:(o=e.renderer)!==null&&o!==void 0?o:y.WindowedList.defaultRenderer,scrollbar:false});this._cellCollapsed=new d.Signal(this);this._cellInViewportChanged=new d.Signal(this);this._renderingLayoutChanged=new d.Signal(this);this._contentVisibilityObserver=null;this.addClass(ce);this.cellsArray=l;this._idleCallBack=null;this._editorConfig=De.defaultEditorConfig;this._notebookConfig=De.defaultNotebookConfig;this._mimetype=B.IEditorMimeTypeService.defaultMimeType;this._notebookModel=null;this._modelChanged=new d.Signal(this);this._modelContentChanged=new d.Signal(this);this.node.dataset[ae]="true";this.node.dataset[de]="true";this.node.dataset[le]="true";this.rendermime=e.rendermime;this.translator=e.translator||r.nullTranslator;this.contentFactory=e.contentFactory;this.editorConfig=e.editorConfig||De.defaultEditorConfig;this.notebookConfig=e.notebookConfig||De.defaultNotebookConfig;this._updateNotebookConfig();this._mimetypeService=e.mimeTypeService;this.renderingLayout=(a=e.notebookConfig)===null||a===void 0?void 0:a.renderingLayout;this.kernelHistory=e.kernelHistory}get cellCollapsed(){return this._cellCollapsed}get cellInViewportChanged(){return this._cellInViewportChanged}get modelChanged(){return this._modelChanged}get modelContentChanged(){return this._modelContentChanged}get renderingLayoutChanged(){return this._renderingLayoutChanged}get model(){return this._notebookModel}set model(e){var t;e=e||null;if(this._notebookModel===e){return}const n=this._notebookModel;this._notebookModel=e;this._onModelChanged(n,e);this.onModelChanged(n,e);this._modelChanged.emit(void 0);this.viewModel.itemsList=(t=e===null||e===void 0?void 0:e.cells)!==null&&t!==void 0?t:null}get codeMimetype(){return this._mimetype}get widgets(){return this.cellsArray}get editorConfig(){return this._editorConfig}set editorConfig(e){this._editorConfig=e;this._updateEditorConfig()}get notebookConfig(){return this._notebookConfig}set notebookConfig(e){this._notebookConfig=e;this._updateNotebookConfig()}get renderingLayout(){return this._renderingLayout}set renderingLayout(e){var t;this._renderingLayout=e;if(this._renderingLayout==="side-by-side"){this.node.classList.add(Me)}else{this.node.classList.remove(Me)}this._renderingLayoutChanged.emit((t=this._renderingLayout)!==null&&t!==void 0?t:"default")}dispose(){var e;if(this.isDisposed){return}this._notebookModel=null;(e=this.layout.header)===null||e===void 0?void 0:e.dispose();if(this._contentVisibilityObserver){this._contentVisibilityObserver.disconnect();this._contentVisibilityObserver=null}super.dispose()}onBeforeDetach(e){if(this._contentVisibilityObserver){this._contentVisibilityObserver.disconnect();this._contentVisibilityObserver=null}super.onBeforeDetach(e)}moveCell(e,t,n=1){if(!this.model){return}const i=Math.min(this.model.cells.length-1,Math.max(0,t));if(i===e){return}const s=new Array(n);let o=new Array(n);for(let r=0;rt){if(this.widgets[t+r].model.type==="code"){this.widgets[t+r].model.isDirty=o[r]}}else{if(this.widgets[t+r-n+1].model.type==="code"){this.widgets[t+r-n+1].model.isDirty=o[r]}}}}renderCellOutputs(e){const t=this.viewModel.widgetRenderer(e);if(t instanceof s.CodeCell&&t.isPlaceholder()){t.dataset.windowedListIndex=`${e}`;this.layout.insertWidget(e,t);if(this.notebookConfig.windowingMode==="full"){requestAnimationFrame((()=>{this.layout.removeWidget(t)}))}}}addHeader(){const e=this.translator.load("jupyterlab");const t=new H.Widget;t.node.textContent=e.__("The notebook is empty. Click the + button on the toolbar to add a new cell.");this.layout.header=t}removeHeader(){var e;(e=this.layout.header)===null||e===void 0?void 0:e.dispose();this.layout.header=null}onModelChanged(e,t){}onModelContentChanged(e,t){this._modelContentChanged.emit(void 0)}onMetadataChanged(e,t){switch(t.key){case"language_info":this._updateMimetype();break;default:break}}onCellInserted(e,t){}onCellRemoved(e,t){}onUpdateRequest(e){if(this.notebookConfig.windowingMode==="defer"){void this._runOnIdleTime()}else{super.onUpdateRequest(e)}}_onModelChanged(e,t){var n;if(e){e.contentChanged.disconnect(this.onModelContentChanged,this);e.metadataChanged.disconnect(this.onMetadataChanged,this);e.cells.changed.disconnect(this._onCellsChanged,this);while(this.cellsArray.length){this._removeCell(0)}}if(!t){this._mimetype=B.IEditorMimeTypeService.defaultMimeType;return}this._updateMimetype();const i=t.cells;const s=(n=t.collaborative)!==null&&n!==void 0?n:false;if(!s&&!i.length){t.sharedModel.insertCell(0,{cell_type:this.notebookConfig.defaultCell,metadata:this.notebookConfig.defaultCell==="code"?{trusted:true}:{}})}let o=-1;for(const r of i){this._insertCell(++o,r)}t.cells.changed.connect(this._onCellsChanged,this);t.metadataChanged.connect(this.onMetadataChanged,this);t.contentChanged.connect(this.onModelContentChanged,this)}_onCellsChanged(e,t){this.removeHeader();switch(t.type){case"add":{let e=0;e=t.newIndex;for(const n of t.newValues){this._insertCell(e++,n)}this._updateDataWindowedListIndex(t.newIndex,this.model.cells.length,t.newValues.length);break}case"remove":for(let e=t.oldValues.length;e>0;e--){this._removeCell(t.oldIndex)}this._updateDataWindowedListIndex(t.oldIndex,this.model.cells.length+t.oldValues.length,-1*t.oldValues.length);if(!e.length){const e=this.model;requestAnimationFrame((()=>{if(e&&!e.isDisposed&&!e.sharedModel.cells.length){e.sharedModel.insertCell(0,{cell_type:this.notebookConfig.defaultCell,metadata:this.notebookConfig.defaultCell==="code"?{trusted:true}:{}})}}))}break;default:return}if(!this.model.sharedModel.cells.length){this.addHeader()}this.update()}_insertCell(e,t){let n;switch(t.type){case"code":n=this._createCodeCell(t);n.model.mimeType=this._mimetype;break;case"markdown":n=this._createMarkdownCell(t);if(t.sharedModel.getSource()===""){n.rendered=false}break;default:n=this._createRawCell(t)}n.inViewportChanged.connect(this._onCellInViewportChanged,this);n.addClass(he);a.ArrayExt.insert(this.cellsArray,e,n);this.onCellInserted(e,n);this._scheduleCellRenderOnIdle()}_createCodeCell(e){const t=this.rendermime;const n=this.contentFactory;const i=this.editorConfig.code;const s={contentFactory:n,editorConfig:i,inputHistoryScope:this.notebookConfig.inputHistoryScope,showInputPlaceholder:this.notebookConfig.showInputPlaceholder,maxNumberOutputs:this.notebookConfig.maxNumberOutputs,model:e,placeholder:this._notebookConfig.windowingMode!=="none",rendermime:t,translator:this.translator};const o=this.contentFactory.createCodeCell(s);o.syncCollapse=true;o.syncEditable=true;o.syncScrolled=true;o.outputArea.inputRequested.connect(((e,t)=>{this._onInputRequested(o).catch((e=>{console.error("Failed to scroll to cell requesting input.",e)}));t.disposed.connect((()=>{o.node.focus()}))}));return o}_createMarkdownCell(e){const t=this.rendermime;const n=this.contentFactory;const i=this.editorConfig.markdown;const s={contentFactory:n,editorConfig:i,model:e,placeholder:this._notebookConfig.windowingMode!=="none",rendermime:t,showEditorForReadOnlyMarkdown:this._notebookConfig.showEditorForReadOnlyMarkdown};const o=this.contentFactory.createMarkdownCell(s);o.syncCollapse=true;o.syncEditable=true;o.headingCollapsedChanged.connect(this._onCellCollapsed,this);return o}_createRawCell(e){const t=this.contentFactory;const n=this.editorConfig.raw;const i={editorConfig:n,model:e,contentFactory:t,placeholder:this._notebookConfig.windowingMode!=="none"};const s=this.contentFactory.createRawCell(i);s.syncCollapse=true;s.syncEditable=true;return s}_removeCell(e){const t=this.cellsArray[e];t.parent=null;a.ArrayExt.removeAt(this.cellsArray,e);this.onCellRemoved(e,t);t.dispose()}_updateMimetype(){var e;const t=(e=this._notebookModel)===null||e===void 0?void 0:e.getMetadata("language_info");if(!t){return}this._mimetype=this._mimetypeService.getMimeTypeByLanguage(t);for(const n of this.widgets){if(n.model.type==="code"){n.model.mimeType=this._mimetype}}}_onCellCollapsed(e,t){e.getHeadings().then((()=>{f.setHeadingCollapse(e,t,this);this._cellCollapsed.emit(e)})).catch((e=>{console.warn("Failed to resolve headings: ",e)}))}_onCellInViewportChanged(e){this._cellInViewportChanged.emit(e)}async _onInputRequested(e){if(!e.inViewport){const t=this.widgets.findIndex((t=>t===e));if(t>=0){await this.scrollToItem(t);const n=e.node.querySelector(".jp-Stdin");if(n){J.ElementExt.scrollIntoViewIfNeeded(this.node,n);n.focus()}}}}_scheduleCellRenderOnIdle(){if(this.notebookConfig.windowingMode!=="none"&&!this.isDisposed){if(!this._idleCallBack){this._idleCallBack=requestIdleCallback((e=>{this._idleCallBack=null;void this._runOnIdleTime(e.didTimeout?Ie:e.timeRemaining())}),{timeout:3e3})}}}_updateDataWindowedListIndex(e,t,n){for(let i=0;i=e&&o{this.viewModel.setEstimatedWidgetSize(e.model.id,e.node.getBoundingClientRect().height);this.layout.removeWidget(e)}))}else if(this.notebookConfig.windowingMode==="contentVisibility"){const t=e.node.getBoundingClientRect().height;this.viewModel.setEstimatedWidgetSize(e.model.id,t);e.node.style.containIntrinsicSize=`auto ${t}px`}}}n++}if(n{this.cellsArray.forEach(((e,t)=>{const n=this._viewModel.estimateWidgetSize(t);e.node.style.containIntrinsicSize=`auto ${n}px`}))}));this._setupContentVisibilityObserver()}else{this.cellsArray.forEach((e=>{e.node.style.removeProperty("contain-intrinsic-size");e.node.style.removeProperty("content-visibility");e.node.style.removeProperty("contain")}));if(this._contentVisibilityObserver){this._contentVisibilityObserver.disconnect();this._contentVisibilityObserver=null}}}onAfterAttach(e){super.onAfterAttach(e);if(this._notebookConfig.windowingMode==="contentVisibility"){this.viewportNode.classList.toggle("jp-content-visibility-mode",true);requestAnimationFrame((()=>{this.cellsArray.forEach(((e,t)=>{const n=this._viewModel.estimateWidgetSize(t);e.node.style.containIntrinsicSize=`auto ${n}px`;e.node.style.contentVisibility="auto";e.node.style.contain="layout style paint"}))}));this._setupContentVisibilityObserver()}}_setupContentVisibilityObserver(){var e;if(!this._contentVisibilityObserver){this._contentVisibilityObserver=new IntersectionObserver((e=>{for(const t of e){const e=t.target;if(t.isIntersecting){e.style.contentVisibility="visible";e.style.contain="style"}else{e.style.contentVisibility="auto";e.style.contain="layout style paint"}}}),{root:null,threshold:.1})}this.cellsArray.forEach((e=>this._contentVisibilityObserver.observe(e.node)));(e=this.model)===null||e===void 0?void 0:e.cells.changed.connect((()=>{requestAnimationFrame((()=>{this.cellsArray.forEach(((e,t)=>{const n=this._viewModel.estimateWidgetSize(t);e.node.style.containIntrinsicSize=`auto ${n}px`;this._contentVisibilityObserver.observe(e.node)}))}))}))}}(function(e){e.defaultEditorConfig={code:{lineNumbers:false,lineWrap:false,matchBrackets:true,tabFocusable:false},markdown:{lineNumbers:false,lineWrap:true,matchBrackets:false,tabFocusable:false},raw:{lineNumbers:false,lineWrap:true,matchBrackets:false,tabFocusable:false}};e.defaultNotebookConfig={enableKernelInitNotification:false,showHiddenCellsButton:true,scrollPastEnd:true,defaultCell:"code",recordTiming:false,inputHistoryScope:"global",maxNumberOutputs:50,showEditorForReadOnlyMarkdown:true,disableDocumentWideUndoRedo:true,autoRenderMarkdownCells:false,renderingLayout:"default",sideBySideLeftMarginOverride:"10px",sideBySideRightMarginOverride:"10px",sideBySideOutputRatio:1,overscanCount:1,windowingMode:"contentVisibility",accessKernelHistory:false,showInputPlaceholder:true,showMinimap:false};class t extends s.Cell.ContentFactory{createCodeCell(e){return new s.CodeCell(e).initializeState()}createMarkdownCell(e){return new s.MarkdownCell(e).initializeState()}createRawCell(e){return new s.RawCell(e).initializeState()}}e.ContentFactory=t})(De||(De={}));class Ae{constructor(e){this.render=e=>{if(!this._element){this._element=this._createElement();this._notebook.activeCellChanged.connect(this._updateActive);this._notebook.selectionChanged.connect(this._updateSelection);if(this._model.type==="code"){const e=this._model;e.outputs.changed.connect(this._updatePrompt);e.stateChanged.connect(this._updateState)}}if(this._model.type!=this._element.dataset.type){this._element.dataset.type=this._model.type}const t=this._model.sharedModel.source;const n=t.length>1e4?t.substring(0,1e4):t;if(n!==this._source.textContent){this._source.textContent=n}this._updateActive();this._updateSelection();this._updatePrompt();this._updateDirty();return this._element};this.dispose=()=>{this._isDisposed=true;this._notebook.activeCellChanged.disconnect(this._updateActive);this._notebook.selectionChanged.disconnect(this._updateSelection);if(this._model.type==="code"){const e=this._model;if(e.outputs){e.outputs.changed.disconnect(this._updatePrompt);e.stateChanged.disconnect(this._updateState)}}};this._updateState=(e,t)=>{switch(t.name){case"executionCount":case"executionState":this._updatePrompt();break;case"isDirty":{this._updateDirty();break}}};this._updatePrompt=()=>{if(this._model.type!=="code"){return}const e=this._model;let t=false;for(let s=0;s{var e;if(!this._element){this._element=this._createElement()}const t=this._element;const n=t.classList.contains(me);if(((e=this._notebook.activeCell)===null||e===void 0?void 0:e.model)===this._model){if(!n){t.classList.add(me)}}else if(n){t.classList.remove(me);t.classList.remove(ge)}};this._updateSelection=()=>{if(!this._element){this._element=this._createElement()}const e=this._element;const t=e.classList.contains(ge);if(this._notebook.selectedCells.some((e=>this._model===e.model))){if(!t){e.classList.add(ge)}}else if(t){e.classList.remove(ge)}};this._isDisposed=false;this._element=null;this._model=e.model;this._notebook=e.notebook}get key(){return this._model.id}get isDisposed(){if(!this._isDisposed&&this._model.isDisposed){this.dispose()}return this._isDisposed}_updateDirty(){if(this._model.type!=="code"||!this._element){return}const e=this._model;const t=this._element.classList.contains(fe);if(t!==e.isDirty){if(e.isDirty){this._element.classList.add(fe)}else{this._element.classList.remove(fe)}}}_createElement(){const e=document.createElement("li");const t=this._executionIndicator=document.createElement("div");t.className="jp-scrollbarItem-executionIndicator";const n=this._source=document.createElement("div");n.className="jp-scrollbarItem-source";e.append(t);e.append(n);return e}}class Pe extends De{constructor(e){super({renderer:{createOuter(){return document.createElement("div")},createViewport(){const e=document.createElement("div");e.setAttribute("role","feed");e.setAttribute("aria-label","Cells");return e},createScrollbar(){return document.createElement("ol")},createScrollbarViewportIndicator(){return document.createElement("div")},createScrollbarItem(e,t,n){return new Ae({notebook:e,model:n})}},...e});this._activeCellIndex=-1;this._activeCell=null;this._mode="command";this._drag=null;this._dragData=null;this._selectData=null;this._mouseMode=null;this._activeCellChanged=new d.Signal(this);this._stateChanged=new d.Signal(this);this._selectionChanged=new d.Signal(this);this._cellsPasted=new d.Signal(this);this._localCopy=[];this._checkCacheOnNextResize=false;this._lastClipboardInteraction=null;this._selectedCells=[];this.outerNode.setAttribute("data-lm-dragscroll","true");this.activeCellChanged.connect(this._updateSelectedCells,this);this.jumped.connect(((e,t)=>this.activeCellIndex=t));this.selectionChanged.connect(this._updateSelectedCells,this);this.addFooter()}get selectedCells(){return this._selectedCells}addFooter(){const e=new re(this);this.layout.footer=e}_onCellsChanged(e,t){var n,i;const s=(n=this.activeCell)===null||n===void 0?void 0:n.model.id;super._onCellsChanged(e,t);if(s){const e=(i=this.model)===null||i===void 0?void 0:i.sharedModel.cells.findIndex((e=>e.getId()===s));if(e!=null){this.activeCellIndex=e}}}get activeCellChanged(){return this._activeCellChanged}get stateChanged(){return this._stateChanged}get selectionChanged(){return this._selectionChanged}get cellsPasted(){return this._cellsPasted}get mode(){return this._mode}set mode(e){this.setMode(e)}setMode(e,t={}){var n;const i=(n=t.focus)!==null&&n!==void 0?n:true;const o=this.activeCell;if(!o){e="command"}if(e===this._mode){if(i){this._ensureFocus()}return}this.update();const r=this._mode;this._mode=e;if(e==="edit"){for(const e of this.widgets){this.deselect(e)}if(o instanceof s.MarkdownCell){o.rendered=false}o.inputHidden=false}else{if(i){void f.focusActiveCell(this,{waitUntilReady:false,preventScroll:true})}}this._stateChanged.emit({name:"mode",oldValue:r,newValue:e});if(i){this._ensureFocus()}}get activeCellIndex(){if(!this.model){return-1}return this.widgets.length?this._activeCellIndex:-1}set activeCellIndex(e){var t,n;const i=this._activeCellIndex;if(!this.model||!this.widgets.length){e=-1}else{e=Math.max(e,0);e=Math.min(e,this.widgets.length-1)}this._activeCellIndex=e;const o=(t=this.widgets[i])!==null&&t!==void 0?t:null;const r=(n=this.widgets[e])!==null&&n!==void 0?n:null;this.layout.activeCell=r;const a=r!==this._activeCell;if(a){this.update();this._activeCell=r}if(a||e!=i){this._activeCellChanged.emit(r)}if(this.mode==="edit"){if(r instanceof s.MarkdownCell){r.rendered=false}if(this.notebookConfig.autoRenderMarkdownCells&&a&&o instanceof s.MarkdownCell){o.rendered=true}}this._ensureFocus();if(e===i){return}this._trimSelections();this._stateChanged.emit({name:"activeCellIndex",oldValue:i,newValue:e})}get activeCell(){return this._activeCell}get lastClipboardInteraction(){return this._lastClipboardInteraction}set lastClipboardInteraction(e){const t=i.SystemClipboard.getInstance();const n=this._lastClipboardInteraction;t.getData(je).then((t=>{if(t!==null){if(e==="copy"||e==="cut"){this._localCopy=t}else if(e==="paste"){const e=t;const i=a.ArrayExt.shallowEqual(e,this._localCopy,l.JSONExt.deepEqual);this._cellsPasted.emit({previousInteraction:i?n:null,cellCount:e.length})}}})).catch((()=>{}));this._lastClipboardInteraction=e}dispose(){if(this.isDisposed){return}this._activeCell=null;super.dispose()}moveCell(e,t,n=1){const i=e<=this.activeCellIndex&&this.activeCellIndext?0:n-1):-1;const s=this.widgets.slice(e,e+n).map((e=>this.isSelected(e)));super.moveCell(e,t,n);if(i>=0){this.activeCellIndex=i}if(e>t){s.forEach(((e,n)=>{if(e){this.select(this.widgets[t+n])}}))}else{s.forEach(((e,i)=>{if(e){this.select(this.widgets[t-n+1+i])}}))}}select(e){if(Le.selectedProperty.get(e)){return}Le.selectedProperty.set(e,true);this._selectionChanged.emit(void 0);this.update()}deselect(e){if(!Le.selectedProperty.get(e)){return}Le.selectedProperty.set(e,false);this._selectionChanged.emit(void 0);this.update()}isSelected(e){return Le.selectedProperty.get(e)}isSelectedOrActive(e){if(e===this._activeCell){return true}return Le.selectedProperty.get(e)}deselectAll(){let e=false;for(const t of this.widgets){if(Le.selectedProperty.get(t)){e=true}Le.selectedProperty.set(t,false)}if(e){this._selectionChanged.emit(void 0)}this.activeCellIndex=this.activeCellIndex;this.update()}extendContiguousSelectionTo(e){let{head:t,anchor:n}=this.getContiguousSelection();let i;if(n===null||t===null){if(e===this.activeCellIndex){return}t=this.activeCellIndex;n=this.activeCellIndex}this.activeCellIndex=e;e=this.activeCellIndex;if(e===n){this.deselectAll();return}let s=false;if(tthis.isSelected(e)));if(t===-1){return{head:null,anchor:null}}const n=a.ArrayExt.findLastIndex(e,(e=>this.isSelected(e)),-1,t);for(let s=t;s<=n;s++){if(!this.isSelected(e[s])){throw new Error("Selection not contiguous")}}const i=this.activeCellIndex;if(t!==i&&n!==i){throw new Error("Active cell not at endpoint of selection")}if(t===i){return{head:t,anchor:n}}else{return{head:n,anchor:t}}}async scrollToCell(e,t="auto"){try{await this.scrollToItem(this.widgets.findIndex((t=>t===e)),t)}catch(n){}this.deselectAll();this.select(e);e.activate()}_parseFragment(e){const t=e.slice(1);if(!t){return}const n=t.split("=");if(n.length===1){return{kind:"legacy",value:t}}return{kind:n[0],value:n.slice(1).join("=")}}async setFragment(e){const t=this._parseFragment(e);if(!t){return}let n;switch(t.kind){case"heading":n=await this._findHeading(t.value);break;case"cell-id":n=this._findCellById(t.value);break;case"legacy":n=await this._findLegacy(t.value);break;default:console.warn(`Unknown target type for URI fragment ${e}, interpreting as a heading`);n=await this._findLegacy(t.kind+"="+t.value);break}if(n==null){return}let{cell:i,element:s}=n;if(!i.inViewport){await this.scrollToCell(i,"center")}if(s==null){s=i.node}s.scrollIntoView()}handleEvent(e){if(!this.model){return}switch(e.type){case"contextmenu":if(e.eventPhase===Event.CAPTURING_PHASE){this._evtContextMenuCapture(e)}break;case"mousedown":if(e.eventPhase===Event.CAPTURING_PHASE){this._evtMouseDownCapture(e)}else{if(!e.defaultPrevented){this._evtMouseDown(e)}}break;case"mouseup":if(e.currentTarget===document){this._evtDocumentMouseup(e)}break;case"mousemove":if(e.currentTarget===document){this._evtDocumentMousemove(e)}break;case"keydown":this._ensureFocus(true);break;case"dblclick":this._evtDblClick(e);break;case"focusin":this._evtFocusIn(e);break;case"focusout":this._evtFocusOut(e);break;case"lm-dragenter":this._evtDragEnter(e);break;case"lm-dragleave":this._evtDragLeave(e);break;case"lm-dragover":this._evtDragOver(e);break;case"lm-drop":this._evtDrop(e);break;default:super.handleEvent(e);break}}onAfterAttach(e){super.onAfterAttach(e);const t=this.node;t.addEventListener("contextmenu",this,true);t.addEventListener("mousedown",this,true);t.addEventListener("mousedown",this);t.addEventListener("keydown",this);t.addEventListener("dblclick",this);t.addEventListener("focusin",this);t.addEventListener("focusout",this);t.addEventListener("lm-dragenter",this,true);t.addEventListener("lm-dragleave",this,true);t.addEventListener("lm-dragover",this,true);t.addEventListener("lm-drop",this,true)}onBeforeDetach(e){const t=this.node;t.removeEventListener("contextmenu",this,true);t.removeEventListener("mousedown",this,true);t.removeEventListener("mousedown",this);t.removeEventListener("keydown",this);t.removeEventListener("dblclick",this);t.removeEventListener("focusin",this);t.removeEventListener("focusout",this);t.removeEventListener("lm-dragenter",this,true);t.removeEventListener("lm-dragleave",this,true);t.removeEventListener("lm-dragover",this,true);t.removeEventListener("lm-drop",this,true);document.removeEventListener("mousemove",this,true);document.removeEventListener("mouseup",this,true);super.onBeforeDetach(e)}onAfterShow(e){super.onAfterShow(e);this._checkCacheOnNextResize=true}onResize(e){var t;if(!this._checkCacheOnNextResize){return super.onResize(e)}super.onResize(e);this._checkCacheOnNextResize=false;const n=this._cellLayoutStateCache;const i=parseInt(this.node.style.width,10);if(n){if(i===n.width){return}}this._cellLayoutStateCache={width:i};for(const o of this.widgets){if(o instanceof s.Cell&&o.inViewport){(t=o.editorWidget)===null||t===void 0?void 0:t.update()}}}onBeforeHide(e){super.onBeforeHide(e);const t=parseInt(this.node.style.width,10);this._cellLayoutStateCache={width:t}}onActivateRequest(e){super.onActivateRequest(e);this._ensureFocus(true)}onUpdateRequest(e){super.onUpdateRequest(e);const t=this.activeCell;if(this.mode==="edit"){this.addClass(ue);this.removeClass(pe)}else{this.addClass(pe);this.removeClass(ue)}let n=0;for(const i of this.widgets){if(i===t){t.addClass(me);t.addClass(ge);t.node.tabIndex=0}else{i.node.tabIndex=-1;i.removeClass(me);i.removeClass(ve)}if(this.isSelectedOrActive(i)){i.addClass(ge);n++}else{i.removeClass(ge)}}if(t&&n>1){t.addClass(ve)}}onCellInserted(e,t){void t.ready.then((()=>{if(!t.isDisposed){t.editor.edgeRequested.connect(this._onEdgeRequest,this)}}));t.scrollRequested.connect(((e,n)=>{if(t!==this.activeCell){return}if(!n.defaultPrevented){return}const i=this.outerNode;if(t.inViewport){return n.scrollWithinCell({scroller:i})}this.scrollToItem(this.activeCellIndex).then((()=>{void t.ready.then((()=>{n.scrollWithinCell({scroller:i})}))})).catch((e=>{}))}));this.activeCellIndex=e<=this.activeCellIndex?this.activeCellIndex+1:this.activeCellIndex}onCellRemoved(e,t){this.activeCellIndex=e<=this.activeCellIndex?this.activeCellIndex-1:this.activeCellIndex;if(this.isSelected(t)){this._selectionChanged.emit(void 0)}}onModelChanged(e,t){super.onModelChanged(e,t);this.activeCellIndex=0}_onEdgeRequest(e,t){this.setMode("edit",{focus:false});const n=this.activeCellIndex;if(t==="top"){this.activeCellIndex--;if(this.activeCellIndexn){const e=this.activeCell.editor;if(e){e.setCursorPosition({line:0,column:0})}}}this.mode="edit"}_ensureFocus(e=false){var t,n;const i=this.layout.footer;if(i&&document.activeElement===i.node){return}const s=this.activeCell;if(this.mode==="edit"&&s){if(((t=s.editor)===null||t===void 0?void 0:t.hasFocus())!==true){if(s.inViewport){(n=s.editor)===null||n===void 0?void 0:n.focus()}else{this.scrollToItem(this.activeCellIndex).then((()=>{void s.ready.then((()=>{var e;(e=s.editor)===null||e===void 0?void 0:e.focus()}))})).catch((e=>{}))}}}if(e&&s&&!s.node.contains(document.activeElement)){void f.focusActiveCell(this,{preventScroll:true})}}_findCell(e){let t=e;while(t&&t!==this.node){if(t.classList.contains(he)){const e=a.ArrayExt.findFirstIndex(this.widgets,(e=>e.node===t));if(e!==-1){return e}break}t=t.parentElement}return-1}_findEventTargetAndCell(e){let t=e.target;let n=this._findCell(t);if(n===-1){t=document.elementFromPoint(e.clientX,e.clientY);n=this._findCell(t)}return[t,n]}async _findHeading(e){var t;for(let n=0;n=ke||i>=ke){this._mouseMode=null;this._startDrag(t.index,e.clientX,e.clientY)}break}default:break}}_evtDragEnter(e){if(!e.mimeData.hasData(je)){return}e.preventDefault();e.stopPropagation();const t=e.target;const n=this._findCell(t);if(n===-1){return}const i=this.cellsArray[n];i.node.classList.add(Q)}_evtDragLeave(e){if(!e.mimeData.hasData(je)){return}e.preventDefault();e.stopPropagation();const t=this.node.getElementsByClassName(Q);if(t.length){t[0].classList.remove(Q)}}_evtDragOver(e){if(!e.mimeData.hasData(je)){return}e.preventDefault();e.stopPropagation();e.dropAction=e.proposedAction;const t=this.node.getElementsByClassName(Q);if(t.length){t[0].classList.remove(Q)}const n=e.target;const i=this._findCell(n);if(i===-1){return}const s=this.cellsArray[i];s.node.classList.add(Q)}_evtDrop(e){if(!e.mimeData.hasData(je)){return}e.preventDefault();e.stopPropagation();if(e.proposedAction==="none"){e.dropAction="none";return}let t=e.target;while(t&&t.parentElement){if(t.classList.contains(Q)){t.classList.remove(Q);break}t=t.parentElement}const n=this.model;const i=e.source;if(i===this){e.dropAction="move";const n=e.mimeData.getData("internal:cells");const o=n[n.length-1];if(o instanceof s.MarkdownCell&&o.headingCollapsed){const e=f.findNextParentHeading(o,i);if(e>0){const t=(0,a.findIndex)(i.widgets,(e=>o.model.id===e.model.id));n.push(...i.widgets.slice(t+1,e))}}let r=a.ArrayExt.firstIndexOf(this.widgets,n[0]);let l=this._findCell(t);if(l!==-1&&l>r){l-=1}else if(l===-1){l=this.widgets.length-1}if(l>=r&&le.model.sharedModel.getSource())).join("\n");this._drag.mimeData.setData("text/plain",u);document.removeEventListener("mousemove",this,true);document.removeEventListener("mouseup",this,true);this._mouseMode=null;void this._drag.start(t,n).then((e=>{if(this.isDisposed){return}this._drag=null;for(const t of r){t.removeClass(Z)}}))}_updateReadWrite(){const e=i.DOMUtils.hasActiveEditableElement(this.node);if(this.node.classList.contains(be)===e){return}this.node.classList.toggle(be,e)}_evtFocusIn(e){var t,n;this._updateReadWrite();const i=e.target;const s=this._findCell(i);if(s!==-1){const e=this.widgets[s];if(e.editorWidget&&!e.editorWidget.node.contains(i)){this.setMode("command",{focus:false})}this.activeCellIndex=s;const n=(t=e.editorWidget)===null||t===void 0?void 0:t.node;if(n===null||n===void 0?void 0:n.contains(i)){this.setMode("edit",{focus:false})}}else{this.setMode("command",{focus:false});e.preventDefault();const t=e.relatedTarget;if(this._activeCell&&!this._activeCell.node.contains(t)){this._activeCell.ready.then((()=>{var e;(e=this._activeCell)===null||e===void 0?void 0:e.node.focus({preventScroll:true})})).catch((()=>{var e;(e=this.layout.footer)===null||e===void 0?void 0:e.node.focus({preventScroll:true})}))}else{(n=this.layout.footer)===null||n===void 0?void 0:n.node.focus({preventScroll:true})}}}_evtFocusOut(e){var t;const n=e.relatedTarget;if(!n){this._updateReadWrite();return}const i=this._findCell(n);if(i!==-1){const e=this.widgets[i];if((t=e.editorWidget)===null||t===void 0?void 0:t.node.contains(n)){return}}if(this.mode!=="command"){this.setMode("command",{focus:false})}this._updateReadWrite()}_evtDblClick(e){const t=this.model;if(!t){return}this.deselectAll();const[n,i]=this._findEventTargetAndCell(e);if(e.target.classList.contains(Te)){return}if(i===-1){return}this.activeCellIndex=i;if(t.cells.get(i).type==="markdown"){const e=this.widgets[i];e.rendered=false}else if(n.localName==="img"){n.classList.toggle(_e)}}_trimSelections(){for(let e=0;ethis.isSelectedOrActive(e)));if(this.kernelHistory){this.kernelHistory.reset()}}}(function(e){class t extends De.ContentFactory{}e.ContentFactory=t})(Pe||(Pe={}));var Le;(function(e){e.selectedProperty=new Y.AttachedProperty({name:"selected",create:()=>false});class t extends H.PanelLayout{onUpdateRequest(e){}}e.NotebookPanelLayout=t;function n(e,t,n){if(e>1){if(t!==""){return X.VirtualDOM.realize(X.h.div(X.h.div({className:ye},X.h.span({className:xe},"["+t+"]:"),X.h.span({className:Ce},n)),X.h.div({className:Se},"")))}else{return X.VirtualDOM.realize(X.h.div(X.h.div({className:ye},X.h.span({className:xe}),X.h.span({className:Ce},n)),X.h.div({className:Se},"")))}}else{if(t!==""){return X.VirtualDOM.realize(X.h.div(X.h.div({className:`${ye} ${we}`},X.h.span({className:xe},"["+t+"]:"),X.h.span({className:Ce},n))))}else{return X.VirtualDOM.realize(X.h.div(X.h.div({className:`${ye} ${we}`},X.h.span({className:xe}),X.h.span({className:Ce},n))))}}}e.createDragImage=n})(Le||(Le={}));const Re="jp-NotebookPanel";const Ne="jp-NotebookPanel-toolbar";const Be="jp-NotebookPanel-notebook";class Oe extends $.DocumentWidget{constructor(e){super(e);this._autorestarting=false;this.addClass(Re);this.toolbar.addClass(Ne);this.content.addClass(Be);this.content.model=this.context.model;this.context.sessionContext.kernelChanged.connect(this._onKernelChanged,this);this.context.sessionContext.statusChanged.connect(this._onSessionStatusChanged,this);this.context.saveState.connect(this._onSave,this);void this.revealed.then((()=>{if(this.isDisposed){return}if(this.content.widgets.length===1){const e=this.content.widgets[0].model;if(e.type==="code"&&e.sharedModel.getSource()===""){this.content.mode="edit"}}}))}_onSave(e,t){if(t==="started"&&this.model){for(const e of this.model.cells){if((0,s.isMarkdownCellModel)(e)){for(const t of e.attachments.keys){if(!e.sharedModel.getSource().includes(t)){e.attachments.remove(t)}}}}}}get sessionContext(){return this.context.sessionContext}get model(){return this.content.model}setConfig(e){this.content.editorConfig=e.editorConfig;this.content.notebookConfig=e.notebookConfig;const t=this.context.sessionContext.kernelPreference;this.context.sessionContext.kernelPreference={...t,shutdownOnDispose:e.kernelShutdown,autoStartDefault:e.autoStartDefault}}setFragment(e){void this.context.ready.then((()=>{void this.content.setFragment(e)}))}dispose(){this.content.dispose();super.dispose()}[i.Printing.symbol](){return async()=>{if(this.context.model.dirty&&!this.context.model.readOnly){await this.context.save()}await i.Printing.printURL(o.PageConfig.getNBConvertURL({format:"html",download:false,path:this.context.path}))}}onBeforeHide(e){super.onBeforeHide(e);this.content.isParentHidden=true}onBeforeShow(e){this.content.isParentHidden=false;super.onBeforeShow(e)}_onKernelChanged(e,t){if(!this.model||!t.newValue){return}const{newValue:n}=t;void n.info.then((e=>{var t;if(this.model&&((t=this.context.sessionContext.session)===null||t===void 0?void 0:t.kernel)===n){this._updateLanguage(e.language_info)}}));void this._updateSpec(n)}_onSessionStatusChanged(e,t){var n;if(t==="autorestarting"&&!this._autorestarting){void(0,i.showDialog)({title:this._trans.__("Kernel Restarting"),body:this._trans.__("The kernel for %1 appears to have died. It will restart automatically.",(n=this.sessionContext.session)===null||n===void 0?void 0:n.path),buttons:[i.Dialog.okButton({label:this._trans.__("Ok")})]});this._autorestarting=true}else if(t==="restarting"){}else{this._autorestarting=false}}_updateLanguage(e){this.model.setMetadata("language_info",e)}async _updateSpec(e){const t=await e.spec;if(this.isDisposed){return}this.model.setMetadata("kernelspec",{name:e.name,display_name:t===null||t===void 0?void 0:t.display_name,language:t===null||t===void 0?void 0:t.language})}}(function(e){class t extends Pe.ContentFactory{createNotebook(e){return new Pe(e)}}e.ContentFactory=t;e.IContentFactory=new l.Token("@jupyterlab/notebook:IContentFactory",`A factory object that creates new notebooks.\n Use this if you want to create and host notebooks in your own UI elements.`)})(Oe||(Oe={}));var Fe=n(41043);class ze extends Fe.SearchProvider{constructor(e,t=r.nullTranslator){super(e);this.translator=t;this._textSelection=null;this._currentProviderIndex=null;this._delayedActiveCellChangeHandler=null;this._onSelection=false;this._selectedCells=1;this._selectedLines=0;this._query=null;this._searchProviders=[];this._editorSelectionsObservable=null;this._selectionSearchMode="cells";this._selectionLock=false;this._searchActive=false;this._handleHighlightsAfterActiveCellChange=this._handleHighlightsAfterActiveCellChange.bind(this);this.widget.model.cells.changed.connect(this._onCellsChanged,this);this.widget.content.activeCellChanged.connect(this._onActiveCellChanged,this);this.widget.content.selectionChanged.connect(this._onCellSelectionChanged,this);this.widget.content.stateChanged.connect(this._onNotebookStateChanged,this);this._observeActiveCell();this._filtersChanged.connect(this._setEnginesSelectionSearchMode,this)}_onNotebookStateChanged(e,t){if(t.name==="mode"){window.setTimeout((()=>{var e;if(t.newValue==="command"&&((e=document.activeElement)===null||e===void 0?void 0:e.closest(".jp-DocumentSearch-overlay"))){return}this._updateSelectionMode();this._filtersChanged.emit()}),0)}}static isApplicable(e){return e instanceof Oe}static createNew(e,t){return new ze(e,t)}get currentMatchIndex(){let e=0;let t=false;for(let n=0;ne+=t.matchesCount),0)}get isReadOnly(){var e,t,n;return(n=(t=(e=this.widget)===null||e===void 0?void 0:e.content.model)===null||t===void 0?void 0:t.readOnly)!==null&&n!==void 0?n:false}get replaceOptionsSupport(){return{preserveCase:true}}getSelectionState(){const e=this._selectionSearchMode==="cells";const t=e?this._selectedCells:this._selectedLines;return t>1?"multiple":t===1&&!e?"single":"none"}dispose(){var e;if(this.isDisposed){return}this.widget.content.activeCellChanged.disconnect(this._onActiveCellChanged,this);(e=this.widget.model)===null||e===void 0?void 0:e.cells.changed.disconnect(this._onCellsChanged,this);this.widget.content.stateChanged.disconnect(this._onNotebookStateChanged,this);this.widget.content.selectionChanged.disconnect(this._onCellSelectionChanged,this);this._stopObservingLastCell();super.dispose();const t=this.widget.content.activeCellIndex;this.endQuery().then((()=>{if(!this.widget.isDisposed){this.widget.content.activeCellIndex=t}})).catch((e=>{console.error(`Fail to end search query in notebook:\n${e}`)}))}getFilters(){const e=this.translator.load("jupyterlab");return{output:{title:e.__("Search Cell Outputs"),description:e.__("Search in the cell outputs."),disabledDescription:e.__("Search in the cell outputs (not available when replace options are shown)."),default:false,supportReplace:false},selection:{title:this._selectionSearchMode==="cells"?e._n("Search in %1 Selected Cell","Search in %1 Selected Cells",this._selectedCells):e._n("Search in %1 Selected Line","Search in %1 Selected Lines",this._selectedLines),description:e.__("Search only in the selected cells or text (depending on edit/command mode)."),default:false,supportReplace:true}}}_updateSelectionMode(){if(this._selectionLock){return}this._selectionSearchMode=this._selectedCells===1&&this.widget.content.mode==="edit"&&this._selectedLines!==0?"text":"cells"}getInitialQuery(){var e;return((e=window.getSelection())===null||e===void 0?void 0:e.toString())||""}async clearHighlight(){this._selectionLock=true;if(this._currentProviderIndex!==null&&this._currentProviderIndex{const o=(0,s.createCellSearchProvider)(t);await o.setIsActive(!this._filters.selection||this.widget.content.isSelectedOrActive(t));if(this._onSelection&&this._selectionSearchMode==="text"&&n===i){if(this._textSelection){await o.setSearchSelection(this._textSelection)}}await o.startQuery(e,this._filters);return o})));this._currentProviderIndex=i;await this.highlightNext(true,{from:"selection-start",scroll:false,select:false});return Promise.resolve()}async endQuery(){await Promise.all(this._searchProviders.map((e=>e.endQuery().then((()=>{e.dispose()})))));this._searchActive=false;this._searchProviders.length=0;this._currentProviderIndex=null}async replaceCurrentMatch(e,t=true,n){let i=false;const s=async(e=false)=>{var n;const i=(n=this.widget)===null||n===void 0?void 0:n.content.activeCell;if((i===null||i===void 0?void 0:i.model.type)==="markdown"&&i.rendered){i.rendered=false;if(e){await this.highlightNext(t)}}};if(this._currentProviderIndex!==null){await s();const o=this._searchProviders[this._currentProviderIndex];i=await o.replaceCurrentMatch(e,false,n);if(o.currentMatchIndex===null){await this.highlightNext(t,{from:"previous-match"})}}await s(true);return i}async replaceAllMatches(e,t){const n=await Promise.all(this._searchProviders.map((n=>n.replaceAllMatches(e,t))));return n.includes(true)}async validateFilter(e,t){if(e!=="output"){return t}if(t&&this.widget.content.widgets.some((e=>e instanceof s.CodeCell&&e.isPlaceholder()))){const e=this.translator.load("jupyterlab");const t=await(0,i.showDialog)({title:e.__("Confirmation"),body:e.__("Searching outputs requires you to run all cells and render their outputs. Are you sure you want to search in the cell outputs?"),buttons:[i.Dialog.cancelButton({label:e.__("Cancel")}),i.Dialog.okButton({label:e.__("Ok")})]});if(t.button.accept){this.widget.content.widgets.forEach(((e,t)=>{if(e instanceof s.CodeCell&&e.isPlaceholder()){this.widget.content.renderCellOutputs(t)}}))}else{return false}}return t}_addCellProvider(e){var t,n;const i=this.widget.content.widgets[e];const o=(0,s.createCellSearchProvider)(i);a.ArrayExt.insert(this._searchProviders,e,o);void o.setIsActive(!((n=(t=this._filters)===null||t===void 0?void 0:t.selection)!==null&&n!==void 0?n:false)||this.widget.content.isSelectedOrActive(i)).then((()=>{if(this._searchActive){void o.startQuery(this._query,this._filters)}}))}_removeCellProvider(e){const t=a.ArrayExt.removeAt(this._searchProviders,e);t===null||t===void 0?void 0:t.dispose()}async _onCellsChanged(e,t){switch(t.type){case"add":t.newValues.forEach(((e,n)=>{this._addCellProvider(t.newIndex+n)}));break;case"move":a.ArrayExt.move(this._searchProviders,t.oldIndex,t.newIndex);break;case"remove":for(let e=0;e{this._addCellProvider(t.newIndex+n);this._removeCellProvider(t.newIndex+n+1)}));break;case"clear":for(let e=this._searchProviders.length-1;e>=0;e--){this._removeCellProvider(e)}break}this._stateChanged.emit()}async _stepNext(e=false,t=false,n){var i;const s=async e=>{var t;const i=(t=n===null||n===void 0?void 0:n.scroll)!==null&&t!==void 0?t:true;if(!i){return}this._selectionLock=true;if(this.widget.content.activeCellIndex!==this._currentProviderIndex){this.widget.content.activeCellIndex=this._currentProviderIndex}if(this.widget.content.activeCellIndex===-1){console.warn("No active cell (no cells or no model), aborting search");this._selectionLock=false;return}const s=this.widget.content.activeCell;if(!s.inViewport){try{await this.widget.content.scrollToItem(this._currentProviderIndex)}catch(r){}}if(s.inputHidden){s.inputHidden=false}if(!s.inViewport){this._selectionLock=false;return}await s.ready;const o=s.editor;o.revealPosition(o.getPositionAt(e.position));this._selectionLock=false};if(this._currentProviderIndex===null){this._currentProviderIndex=this.widget.content.activeCellIndex}if(e&&this.widget.content.mode==="command"){const e=this._searchProviders[this._currentProviderIndex];const n=e.getCurrentMatch();if(!n){this._currentProviderIndex-=1}if(t){this._currentProviderIndex=(this._currentProviderIndex+this._searchProviders.length)%this._searchProviders.length}}const o=(i=n===null||n===void 0?void 0:n.from)!==null&&i!==void 0?i:"";const r=o==="previous-match"&&this._searchProviders[this._currentProviderIndex].currentMatchIndex===null;const a=this._currentProviderIndex;if(r){void this._searchProviders[this._currentProviderIndex].clearHighlight()}if(t&&r&&this._currentProviderIndex+1>=this._searchProviders.length){this._currentProviderIndex=0}else{this._currentProviderIndex+=r?1:0}do{const i=this._searchProviders[this._currentProviderIndex];const o=e?await i.highlightPrevious(false,n):await i.highlightNext(false,n);if(o){await s(o);return o}else{this._currentProviderIndex=this._currentProviderIndex+(e?-1:1);if(t){this._currentProviderIndex=(this._currentProviderIndex+this._searchProviders.length)%this._searchProviders.length}}}while(t?this._currentProviderIndex!==a:0<=this._currentProviderIndex&&this._currentProviderIndex{this.delayedActiveCellChangeHandlerReady=this._handleHighlightsAfterActiveCellChange()}),0)}this._observeActiveCell()}async _handleHighlightsAfterActiveCellChange(){if(this._onSelection){const e=this._currentProviderIndex!==null&&this._currentProviderIndex{const i=this.widget.content.activeCellIndex===n;t.setProtectSelection(i&&this._onSelection);return t.setSearchSelection(i&&e?this._textSelection:null)})))}async _onCellSelectionChanged(){if(this._delayedActiveCellChangeHandler!==null){clearTimeout(this._delayedActiveCellChangeHandler);this._delayedActiveCellChangeHandler=null}await this._updateCellSelection();if(this._currentProviderIndex===null){const e=this.widget.content.widgets.findIndex((e=>this.widget.content.isSelectedOrActive(e)));this._currentProviderIndex=e}await this._ensureCurrentMatch()}async _updateCellSelection(){const e=this.widget.content.widgets;let t=0;await Promise.all(e.map((async(e,n)=>{const i=this._searchProviders[n];const s=this.widget.content.isSelectedOrActive(e);if(s){t+=1}if(i&&this._onSelection){await i.setIsActive(s)}})));if(t!==this._selectedCells){this._selectedCells=t;this._updateSelectionMode()}this._filtersChanged.emit()}}var We;(function(e){e[e["Idle"]=-1]="Idle";e[e["Error"]=-.5]="Error";e[e["Scheduled"]=0]="Scheduled";e[e["Running"]=1]="Running"})(We||(We={}));class He extends K.TableOfContentsModel{constructor(e,t,n,i){super(e,i);this.parser=t;this.sanitizer=n;this.configMetadataMap={numberHeaders:["toc-autonumbering","toc/number_sections"],numberingH1:["!toc/skip_h1_title"],baseNumbering:["toc/base_numbering"]};this._runningCells=new Array;this._errorCells=new Array;this._cellToHeadingIndex=new WeakMap;void e.context.ready.then((()=>{this.setConfiguration({})}));this.widget.context.model.metadataChanged.connect(this.onMetadataChanged,this);this.widget.content.activeCellChanged.connect(this.onActiveCellChanged,this);f.executionScheduled.connect(this.onExecutionScheduled,this);f.executed.connect(this.onExecuted,this);f.outputCleared.connect(this.onOutputCleared,this);this.headingsChanged.connect(this.onHeadingsChanged,this)}get documentType(){return"notebook"}get isAlwaysActive(){return true}get supportedOptions(){return["baseNumbering","maximalDepth","numberingH1","numberHeaders","includeOutput","syncCollapseState"]}getCellHeadings(e){const t=new Array;let n=this._cellToHeadingIndex.get(e);if(n!==undefined){const e=this.headings[n];t.push(e);while(this.headings[n-1]&&this.headings[n-1].cellRef===e.cellRef){n--;t.unshift(this.headings[n])}}return t}dispose(){var e,t,n;if(this.isDisposed){return}this.headingsChanged.disconnect(this.onHeadingsChanged,this);(t=(e=this.widget.context)===null||e===void 0?void 0:e.model)===null||t===void 0?void 0:t.metadataChanged.disconnect(this.onMetadataChanged,this);(n=this.widget.content)===null||n===void 0?void 0:n.activeCellChanged.disconnect(this.onActiveCellChanged,this);f.executionScheduled.disconnect(this.onExecutionScheduled,this);f.executed.disconnect(this.onExecuted,this);f.outputCleared.disconnect(this.onOutputCleared,this);this._runningCells.length=0;this._errorCells.length=0;super.dispose()}setConfiguration(e){const t=this.loadConfigurationFromMetadata();super.setConfiguration({...this.configuration,...t,...e})}toggleCollapse(e){super.toggleCollapse(e);this.updateRunningStatus(this.headings)}async getHeadings(){const e=this.widget.content.widgets;const t=[];const n=new Array;for(let i=0;i({...e,cellRef:s,collapsed:false,isRunning:We.Idle}))))}break}case"markdown":{const e=K.TableOfContentsUtils.filterHeadings(await s.getHeadings(),this.configuration,n).map(((e,t)=>({...e,cellRef:s,collapsed:false,isRunning:We.Idle})));if(this.configuration.syncCollapseState&&s.headingCollapsed){const t=Math.min(...e.map((e=>e.level)));const n=e.find((e=>e.level===t));n.collapsed=s.headingCollapsed}t.push(...e);break}}if(t.length>0){this._cellToHeadingIndex.set(s,t.length-1)}else{this._cellToHeadingIndex.delete(s)}}this.updateRunningStatus(t);return Promise.resolve(t)}isHeadingEqual(e,t){return super.isHeadingEqual(e,t)&&e.cellRef===t.cellRef}loadConfigurationFromMetadata(){const e=this.widget.content.model;const t={};if(e){for(const n in this.configMetadataMap){const i=this.configMetadataMap[n];for(const s of i){let i=s;const o=i[0]==="!";if(o){i=i.slice(1)}const r=i.split("/");let a=e.getMetadata(r[0]);for(let e=1;e{var i;if(e===t.cell){this._runningCells.splice(n,1);const s=this._cellToHeadingIndex.get(e);if(s!==undefined){const n=this.headings[s];if(t.success||((i=t.error)===null||i===void 0?void 0:i.errorName)===undefined){n.isRunning=We.Idle;return}n.isRunning=We.Error;if(!this._errorCells.includes(e)){this._errorCells.push(e)}}}}));this.updateRunningStatus(this.headings);this.stateChanged.emit()}onExecutionScheduled(e,t){if(!this._runningCells.includes(t.cell)){this._runningCells.push(t.cell)}this._errorCells.forEach(((e,n)=>{if(e===t.cell){this._errorCells.splice(n,1)}}));this.updateRunningStatus(this.headings);this.stateChanged.emit()}onOutputCleared(e,t){this._errorCells.forEach(((e,n)=>{if(e===t.cell){this._errorCells.splice(n,1);const t=this._cellToHeadingIndex.get(e);if(t!==undefined){const e=this.headings[t];e.isRunning=We.Idle}}}));this.updateRunningStatus(this.headings);this.stateChanged.emit()}onMetadataChanged(){this.setConfiguration({})}updateRunningStatus(e){this._runningCells.forEach(((e,t)=>{const n=this._cellToHeadingIndex.get(e);if(n!==undefined){const e=this.headings[n];if(e.isRunning!==We.Running){e.isRunning=t>0?We.Scheduled:We.Running}}}));this._errorCells.forEach(((e,t)=>{const n=this._cellToHeadingIndex.get(e);if(n!==undefined){const e=this.headings[n];if(e.isRunning===We.Idle){e.isRunning=We.Error}}}));let t=0;while(ti){t++;s=Math.max(o.isRunning,s);if(o.collapsed){s=Math.max(s,n(e,o.level));o.dataset={...o.dataset,"data-running":s.toString()}}}else{break}}return s}}}class Ve extends K.TableOfContentsFactory{constructor(e,t,n){super(e);this.parser=t;this.sanitizer=n;this._scrollToTop=true}get scrollToTop(){return this._scrollToTop}set scrollToTop(e){this._scrollToTop=e}_createNew(e,t){const n=new He(e,this.parser,this.sanitizer,t);let i=new WeakMap;const o=(t,n)=>{if(n){const t=async t=>{if(!t.inViewport){return}const s=i.get(n);if(s){if(this.scrollToTop){s.scrollIntoView({block:"start"})}else{const t=e.content.node.getBoundingClientRect();const n=s.getBoundingClientRect();if(n.top>t.bottom||n.bottom{console.error(`Fail to scroll to cell to display the required heading (${e}).`)}))}else{e.content.scrollToItem(r,this.scrollToTop?"start":undefined).then((()=>t(s))).catch((e=>{console.error(`Fail to scroll to cell to display the required heading (${e}).`)}))}}};const r=e=>{n.getCellHeadings(e).forEach((async e=>{var t,n,s;const o=await Ue(e,this.parser,this.sanitizer);const r=((t=this.sanitizer.allowNamedProperties)!==null&&t!==void 0?t:false)?"id":"data-jupyter-id";const a=o?`h${e.level}[${r}="${CSS.escape(o)}"]`:`h${e.level}`;if(e.outputIndex!==undefined){i.set(e,K.TableOfContentsUtils.addPrefix(e.cellRef.outputArea.widgets[e.outputIndex].node,a,(n=e.prefix)!==null&&n!==void 0?n:""))}else{i.set(e,K.TableOfContentsUtils.addPrefix(e.cellRef.node,a,(s=e.prefix)!==null&&s!==void 0?s:""))}}))};const a=t=>{if(!this.parser){return}K.TableOfContentsUtils.clearNumbering(e.content.node);i=new WeakMap;e.content.widgets.forEach((e=>{r(e)}))};const l=(t,i)=>{var o,r,a,l;if(n.configuration.syncCollapseState){if(i!==null){const e=i.cellRef;if(e.headingCollapsed!==((o=i.collapsed)!==null&&o!==void 0?o:false)){e.headingCollapsed=(r=i.collapsed)!==null&&r!==void 0?r:false}}else{const t=(l=(a=n.headings[0])===null||a===void 0?void 0:a.collapsed)!==null&&l!==void 0?l:false;e.content.widgets.forEach((e=>{if(e instanceof s.MarkdownCell){if(e.headingInfo.level>=0){e.headingCollapsed=t}}}))}}};const d=(e,t)=>{if(n.configuration.syncCollapseState){const e=n.getCellHeadings(t)[0];if(e){n.toggleCollapse({heading:e,collapsed:t.headingCollapsed})}}};const c=(e,t)=>{if(t.inViewport){r(t)}else{K.TableOfContentsUtils.clearNumbering(t.node)}};void e.context.ready.then((()=>{a(n);n.activeHeadingChanged.connect(o);n.headingsChanged.connect(a);n.collapseChanged.connect(l);e.content.cellCollapsed.connect(d);e.content.cellInViewportChanged.connect(c);e.disposed.connect((()=>{n.activeHeadingChanged.disconnect(o);n.headingsChanged.disconnect(a);n.collapseChanged.disconnect(l);e.content.cellCollapsed.disconnect(d);e.content.cellInViewportChanged.disconnect(c)}))}));return n}}async function Ue(e,t,n){let i=null;if(e.type===s.Cell.HeadingType.Markdown){i=await K.TableOfContentsUtils.Markdown.getHeadingId(t,e.raw,e.level,n)}else if(e.type===s.Cell.HeadingType.HTML){i=e.id}return i}const qe=new l.Token("@jupyterlab/notebook:INotebookWidgetFactory","A service to create the notebook viewer.");const $e=new l.Token("@jupyterlab/notebook:INotebookTools",`A service for the "Notebook Tools" panel in the\n right sidebar. Use this to add your own functionality to the panel.`);const Ke=new l.Token("@jupyterlab/notebook:INotebookTracker",`A widget tracker for notebooks.\n Use this if you want to be able to iterate over and interact with notebooks\n created by the application.`);const Je=new l.Token("@jupyterlab/notebook:INotebookCellExecutor",`The notebook cell executor`);class Ge extends i.WidgetTracker{constructor(){super(...arguments);this._activeCell=null;this._activeCellChanged=new d.Signal(this);this._selectionChanged=new d.Signal(this)}get activeCell(){const e=this.currentWidget;if(!e){return null}return e.content.activeCell||null}get activeCellChanged(){return this._activeCellChanged}get selectionChanged(){return this._selectionChanged}add(e){const t=super.add(e);e.content.activeCellChanged.connect(this._onActiveCellChanged,this);e.content.selectionChanged.connect(this._onSelectionChanged,this);return t}dispose(){this._activeCell=null;super.dispose()}onCurrentChanged(e){const t=this.activeCell;if(t&&t===this._activeCell){return}this._activeCell=t;if(!e){return}this._activeCellChanged.emit(e.content.activeCell||null)}_onActiveCellChanged(e,t){if(this.currentWidget&&this.currentWidget.content===e){this._activeCell=t||null;this._activeCellChanged.emit(this._activeCell)}}_onSelectionChanged(e){if(this.currentWidget&&this.currentWidget.content===e){this._selectionChanged.emit(void 0)}}}const Ye="jp-StatusItem-trust";function Xe(e,t){t=t||r.nullTranslator;const n=t.load("jupyterlab");if(e.trustedCells===e.totalCells){return n.__("Notebook trusted: %1 of %2 code cells trusted.",e.trustedCells,e.totalCells)}else if(e.activeCellTrusted){return n.__("Active cell trusted: %1 of %2 code cells trusted.",e.trustedCells,e.totalCells)}else{return n.__("Notebook not trusted: %1 of %2 code cells trusted.",e.trustedCells,e.totalCells)}}function Qe(e){if(e.allCellsTrusted){return h().createElement(y.trustedIcon.react,{top:"2px",stylesheet:"statusBar"})}else{return h().createElement(y.notTrustedIcon.react,{top:"2px",stylesheet:"statusBar"})}}class Ze extends y.VDomRenderer{constructor(e){super(new Ze.Model);this.translator=e||r.nullTranslator;this.node.classList.add(Ye)}render(){if(!this.model){return null}const e=Xe(this.model,this.translator);if(e!==this.node.title){this.node.title=e}return h().createElement(Qe,{allCellsTrusted:this.model.trustedCells===this.model.totalCells,activeCellTrusted:this.model.activeCellTrusted,totalCells:this.model.totalCells,trustedCells:this.model.trustedCells})}}(function(e){class t extends y.VDomModel{constructor(){super(...arguments);this._trustedCells=0;this._totalCells=0;this._activeCellTrusted=false;this._notebook=null}get trustedCells(){return this._trustedCells}get totalCells(){return this._totalCells}get activeCellTrusted(){return this._activeCellTrusted}get notebook(){return this._notebook}set notebook(e){const t=this._notebook;if(t!==null){t.activeCellChanged.disconnect(this._onActiveCellChanged,this);t.modelContentChanged.disconnect(this._onModelChanged,this)}const n=this._getAllState();this._notebook=e;if(this._notebook===null){this._trustedCells=0;this._totalCells=0;this._activeCellTrusted=false}else{this._notebook.activeCellChanged.connect(this._onActiveCellChanged,this);this._notebook.modelContentChanged.connect(this._onModelChanged,this);if(this._notebook.activeCell){this._activeCellTrusted=this._notebook.activeCell.model.trusted}else{this._activeCellTrusted=false}const{total:e,trusted:t}=this._deriveCellTrustState(this._notebook.model);this._totalCells=e;this._trustedCells=t}this._triggerChange(n,this._getAllState())}_onModelChanged(e){const t=this._getAllState();const{total:n,trusted:i}=this._deriveCellTrustState(e.model);this._totalCells=n;this._trustedCells=i;this._triggerChange(t,this._getAllState())}_onActiveCellChanged(e,t){const n=this._getAllState();if(t){this._activeCellTrusted=t.model.trusted}else{this._activeCellTrusted=false}this._triggerChange(n,this._getAllState())}_deriveCellTrustState(e){if(e===null){return{total:0,trusted:0}}let t=0;let n=0;for(const i of e.cells){if(i.type!=="code"){continue}t++;if(i.trusted){n++}}return{total:t,trusted:n}}_getAllState(){return[this._trustedCells,this._totalCells,this.activeCellTrusted]}_triggerChange(e,t){if(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]){this.stateChanged.emit(void 0)}}}e.Model=t})(Ze||(Ze={}));class et extends $.ABCWidgetFactory{constructor(e){super(e);this.rendermime=e.rendermime;this.contentFactory=e.contentFactory;this.mimeTypeService=e.mimeTypeService;this._editorConfig=e.editorConfig||De.defaultEditorConfig;this._notebookConfig=e.notebookConfig||De.defaultNotebookConfig}get editorConfig(){return this._editorConfig}set editorConfig(e){this._editorConfig=e}get notebookConfig(){return this._notebookConfig}set notebookConfig(e){this._notebookConfig=e}createNewWidget(e,t){const n=e.translator;const i=new E({sessionContext:e.sessionContext,translator:n});const s={rendermime:t?t.content.rendermime:this.rendermime.clone({resolver:e.urlResolver}),contentFactory:this.contentFactory,mimeTypeService:this.mimeTypeService,editorConfig:t?t.content.editorConfig:this._editorConfig,notebookConfig:t?t.content.notebookConfig:this._notebookConfig,translator:n,kernelHistory:i};const o=this.contentFactory.createNotebook(s);return new Oe({context:e,content:o})}}},28006:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(24800);var r=n(97913);var a=n(5893);var l=n(38457);var d=n(17325);var c=n(19562);var h=n(23359);var u=n(79010);var p=n(66731);var m=n(53377);var g=n(13137);var f=n(85072);var v=n.n(f);var _=n(97825);var b=n.n(_);var y=n(77659);var w=n.n(y);var C=n(55056);var x=n.n(C);var S=n(10540);var j=n.n(S);var k=n(41113);var I=n.n(k);var T=n(30979);var E={};E.styleTagTransform=I();E.setAttributes=x();E.insert=w().bind(null,"head");E.domAPI=b();E.insertStyleElement=j();var M=v()(T.A,E);const D=T.A&&T.A.locals?T.A.locals:undefined},56701:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ModelDB:()=>f,ObservableJSON:()=>d,ObservableList:()=>u,ObservableMap:()=>a,ObservableString:()=>c,ObservableUndoableList:()=>m,ObservableValue:()=>g});var i=n(5592);var s=n(90044);var o=n(2336);var r=n(42856);class a{constructor(e={}){this._map=new Map;this._changed=new o.Signal(this);this._isDisposed=false;this._itemCmp=e.itemCmp||l.itemCmp;if(e.values){for(const t in e.values){this._map.set(t,e.values[t])}}}get type(){return"Map"}get changed(){return this._changed}get isDisposed(){return this._isDisposed}get size(){return this._map.size}set(e,t){const n=this._map.get(e);if(t===undefined){throw Error("Cannot set an undefined value, use remove")}const i=this._itemCmp;if(n!==undefined&&i(n,t)){return n}this._map.set(e,t);this._changed.emit({type:n?"change":"add",key:e,oldValue:n,newValue:t});return n}get(e){return this._map.get(e)}has(e){return this._map.has(e)}keys(){const e=[];this._map.forEach(((t,n)=>{e.push(n)}));return e}values(){const e=[];this._map.forEach(((t,n)=>{e.push(t)}));return e}delete(e){const t=this._map.get(e);const n=this._map.delete(e);if(n){this._changed.emit({type:"remove",key:e,oldValue:t,newValue:undefined})}return t}clear(){const e=this.keys();for(let t=0;tt(n,e)));if(n<0)return n;this.remove(n);return n}remove(e){const t=h.ArrayExt.removeAt(this._array,e);if(t===undefined){return}this._changed.emit({type:"remove",oldIndex:e,newIndex:-1,newValues:[],oldValues:[t]});return t}clear(){const e=this._array.slice();this._array.length=0;this._changed.emit({type:"clear",oldIndex:0,newIndex:0,newValues:[],oldValues:e})}move(e,t){if(this.length<=1||e===t){return}const n=[this._array[e]];h.ArrayExt.move(this._array,e,t);this._changed.emit({type:"move",oldIndex:e,newIndex:t,oldValues:n,newValues:n})}pushAll(e){const t=this.length;for(const n of e){this._array.push(n)}this._changed.emit({type:"add",oldIndex:-1,newIndex:t,oldValues:[],newValues:Array.from(e)});return this.length}insertAll(e,t){const n=e;for(const i of t){h.ArrayExt.insert(this._array,e++,i)}this._changed.emit({type:"add",oldIndex:-2,newIndex:n,oldValues:[],newValues:Array.from(t)})}removeRange(e,t){const n=this._array.slice(e,t);for(let i=e;i=0}beginCompoundOperation(e){this._inCompound=true;this._isUndoable=e!==false;this._madeCompoundChange=false}endCompoundOperation(){this._inCompound=false;this._isUndoable=true;if(this._madeCompoundChange){this._index++}}undo(){if(!this.canUndo){return}const e=this._stack[this._index];this._isUndoable=false;for(const t of e.reverse()){this._undoChange(t)}this._isUndoable=true;this._index--}redo(){if(!this.canRedo){return}this._index++;const e=this._stack[this._index];this._isUndoable=false;for(const t of e){this._redoChange(t)}this._isUndoable=true}clearUndo(){this._index=-1;this._stack=[]}_onListChanged(e,t){if(this.isDisposed||!this._isUndoable){return}if(!this._inCompound||!this._madeCompoundChange){this._stack=this._stack.slice(0,this._index+1)}const n=this._copyChange(t);if(this._stack[this._index+1]){this._stack[this._index+1].push(n)}else{this._stack.push([n])}if(!this._inCompound){this._index++}else{this._madeCompoundChange=true}}_undoChange(e){let t=0;const n=this._serializer;switch(e.type){case"add":for(let t=e.newValues.length;t>0;t--){this.remove(e.newIndex)}break;case"set":t=e.oldIndex;for(const i of e.oldValues){this.set(t++,n.fromJSON(i))}break;case"remove":t=e.oldIndex;for(const i of e.oldValues){this.insert(t++,n.fromJSON(i))}break;case"move":this.move(e.newIndex,e.oldIndex);break;case"clear":t=0;for(const i of e.oldValues){this.insert(t++,n.fromJSON(i))}break;default:return}}_redoChange(e){let t=0;const n=this._serializer;switch(e.type){case"add":t=e.newIndex;for(const i of e.newValues){this.insert(t++,n.fromJSON(i))}break;case"set":t=e.newIndex;for(const t of e.newValues){this.set(e.newIndex++,n.fromJSON(t))}break;case"remove":for(let t=e.oldValues.length;t>0;t--){this.remove(e.oldIndex)}break;case"move":this.move(e.oldIndex,e.newIndex);break;case"clear":this.clear();break;default:return}}_copyChange(e){const t=[];for(const i of e.oldValues){t.push(this._serializer.toJSON(i))}const n=[];for(const i of e.newValues){n.push(this._serializer.toJSON(i))}return{type:e.type,oldIndex:e.oldIndex,newIndex:e.newIndex,oldValues:t,newValues:n}}}(function(e){class t{toJSON(e){return e}fromJSON(e){return e}}e.IdentitySerializer=t})(m||(m={}));class g{constructor(e=null){this._value=null;this._changed=new o.Signal(this);this._isDisposed=false;this._value=e}get type(){return"Value"}get isDisposed(){return this._isDisposed}get changed(){return this._changed}get(){return this._value}set(e){const t=this._value;if(i.JSONExt.deepEqual(t,e)){return}this._value=e;this._changed.emit({oldValue:t,newValue:e})}dispose(){if(this._isDisposed){return}this._isDisposed=true;o.Signal.clearData(this);this._value=null}}(function(e){class t{}e.IChangedArgs=t})(g||(g={}));class f{constructor(e={}){this.isPrepopulated=false;this.isCollaborative=false;this.connected=Promise.resolve(void 0);this._toDispose=false;this._isDisposed=false;this._disposables=new s.DisposableSet;this._basePath=e.basePath||"";if(e.baseDB){this._db=e.baseDB}else{this._db=new a;this._toDispose=true}}get basePath(){return this._basePath}get isDisposed(){return this._isDisposed}get(e){return this._db.get(this._resolvePath(e))}has(e){return this._db.has(this._resolvePath(e))}createString(e){const t=new c;this._disposables.add(t);this.set(e,t);return t}createList(e){const t=new m(new m.IdentitySerializer);this._disposables.add(t);this.set(e,t);return t}createMap(e){const t=new d;this._disposables.add(t);this.set(e,t);return t}createValue(e){const t=new g;this._disposables.add(t);this.set(e,t);return t}getValue(e){const t=this.get(e);if(!t||t.type!=="Value"){throw Error("Can only call getValue for an ObservableValue")}return t.get()}setValue(e,t){const n=this.get(e);if(!n||n.type!=="Value"){throw Error("Can only call setValue on an ObservableValue")}n.set(t)}view(e){const t=new f({basePath:e,baseDB:this});this._disposables.add(t);return t}set(e,t){this._db.set(this._resolvePath(e),t)}dispose(){if(this.isDisposed){return}this._isDisposed=true;if(this._toDispose){this._db.dispose()}this._disposables.dispose()}_resolvePath(e){if(this._basePath){e=this._basePath+"."+e}return e}}},66990:(e,t,n)=>{"use strict";n.r(t);n.d(t,{OutputArea:()=>T,OutputAreaModel:()=>d,OutputPrompt:()=>M,SimplifiedOutputArea:()=>E,Stdin:()=>D});var i=n(72363);var s=n(23230);var o=n(95513);var r=n(34236);var a=n(5592);var l=n(2336);class d{constructor(e={}){this.clearNext=false;this._lastStreamName="";this._trusted=false;this._isDisposed=false;this._stateChanged=new l.Signal(this);this._changed=new l.Signal(this);this._streamIndex=0;this._trusted=!!e.trusted;this.contentFactory=e.contentFactory||d.defaultContentFactory;this.list=new s.ObservableList;if(e.values){for(const t of e.values){const e=this._add(t)-1;const n=this.list.get(e);n.changed.connect(this._onGenericChange,this)}}this.list.changed.connect(this._onListChanged,this)}get stateChanged(){return this._stateChanged}get changed(){return this._changed}get length(){return this.list?this.list.length:0}get trusted(){return this._trusted}set trusted(e){if(e===this._trusted){return}const t=this._trusted=e;for(let n=0;ne.toJSON())))}_add(e){const t=this._trusted;e=a.JSONExt.deepCopy(e);c.normalize(e);if(i.isStream(e)&&e.name===this._lastStreamName&&this.length>0&&this.shouldCombine({value:e,lastModel:this.list.get(this.length-1)})){const t=this.list.get(this.length-1);const n=t.streamText;const i=typeof e.text==="string"?e.text:e.text.join("");this._streamIndex=c.addText(this._streamIndex,n,i);return this.length}if(i.isStream(e)){if(typeof e.text!=="string"){e.text=e.text.join("")}const{text:t,index:n}=c.processText(0,e.text);this._streamIndex=n;e.text=t}const n=this._createItem({value:e,trusted:t});const s=this.list.push(n);if(i.isStream(e)){this._lastStreamName=e.name}else{this._lastStreamName=""}return s}shouldCombine(e){return true}_createItem(e){const t=this.contentFactory;const n=t.createOutputModel(e);return n}_onListChanged(e,t){switch(t.type){case"add":t.newValues.forEach((e=>{e.changed.connect(this._onGenericChange,this)}));break;case"remove":t.oldValues.forEach((e=>{e.changed.disconnect(this._onGenericChange,this)}));break;case"set":t.newValues.forEach((e=>{e.changed.connect(this._onGenericChange,this)}));t.oldValues.forEach((e=>{e.changed.disconnect(this._onGenericChange,this)}));break;case"move":break;case"clear":t.oldValues.forEach((e=>{e.changed.disconnect(this._onGenericChange,this)}));break}this._changed.emit(t)}_onGenericChange(e){let t;let n=null;for(t=0;t=0?i+n:i}function s(e,t,i){if(i===undefined){i=""}if(!(t.includes("\b")||t.includes("\r")||t.includes("\n"))){i=i.slice(0,e)+t+i.slice(e+t.length);return{text:i,index:e+t.length}}let s=e;let o=-1;let r=0;const a=/[\n\b\r]/;while(true){o=n(t,a,r);const e=t.slice(r,o===-1?t.length:o);i=i.slice(0,s)+e+i.slice(s+e.length);r=o+1;s+=e.length;if(o===-1){break}const l=t[o];if(l==="\b"){if(s>0&&i[s-1]!=="\n"){i=i.slice(0,s-1)+i.slice(s+1);s--}}else if(l==="\r"){let e=false;while(!e){if(s===0){e=true}else if(i[s-1]==="\n"){e=true}else{s--}}}else if(l==="\n"){i=i+"\n";s=i.length}else{throw Error(`This should not happen`)}}return{text:i,index:s}}e.processText=s;function o(e){return JSON.parse(JSON.stringify(e))}function r(e,t,n){const{text:i,index:r}=s(e,n,t.text);let a=false;let l=0;while(!a){if(l===i.length){if(l===t.text.length){a=true}else{t.remove(l,t.text.length);a=true}}else if(l===t.text.length){if(l!==i.length){t.insert(t.text.length,o(i.slice(l)));a=true}}else if(i[l]!==t.text[l]){t.remove(l,t.text.length);t.insert(l,o(i.slice(l)));a=true}else{l++}}return r}e.addText=r})(c||(c={}));var h=n(38850);var u=n(49278);var p=n(34881);var m=n(94466);var g=n(27518);const f="jp-OutputArea";const v="jp-OutputArea-child";const _="jp-OutputArea-output";const b="jp-OutputArea-prompt";const y="jp-OutputArea-stdin-hiding";const w="jp-OutputPrompt";const C="jp-OutputArea-executeResult";const x="jp-OutputArea-stdin-item";const S="jp-Stdin";const j="jp-Stdin-prompt";const k="jp-Stdin-input";const I="jp-OutputArea-promptOverlay";class T extends g.Widget{constructor(e){var t,n,i,s,o;super();this.outputLengthChanged=new l.Signal(this);this._onIOPub=e=>{const t=this.model;const n=e.header.msg_type;let i;const s=e.content.transient||{};const o=s["display_id"];let r;switch(n){case"execute_result":case"display_data":case"stream":case"error":i={...e.content,output_type:n};t.add(i);break;case"clear_output":{const n=e.content.wait;t.clear(n);break}case"update_display_data":i={...e.content,output_type:"display_data"};r=this._displayIdMap.get(o);if(r){for(const e of r){t.set(e,i)}}break;case"status":{const t=e.content.execution_state;if(t==="idle"){this._pendingInput=false}break}default:break}if(o&&n==="display_data"){r=this._displayIdMap.get(o)||[];r.push(t.length-1);this._displayIdMap.set(o,r)}};this._onExecuteReply=e=>{const t=this.model;const n=e.content;if(n.status!=="ok"){return}const i=n&&n.payload;if(!i||!i.length){return}const s=i.filter((e=>e.source==="page"));if(!s.length){return}const o=JSON.parse(JSON.stringify(s[0]));const r={output_type:"display_data",data:o.data,metadata:{}};t.add(r)};this._displayIdMap=new Map;this._minHeightTimeout=null;this._inputRequested=new l.Signal(this);this._toggleScrolling=new l.Signal(this);this._initialize=new l.Signal(this);this._outputTracker=new h.WidgetTracker({namespace:a.UUID.uuid4()});this._inputHistoryScope="global";this._pendingInput=false;this._showInputPlaceholder=true;super.layout=new g.PanelLayout;this.addClass(f);this.contentFactory=(t=e.contentFactory)!==null&&t!==void 0?t:T.defaultContentFactory;this.rendermime=e.rendermime;this._maxNumberOutputs=(n=e.maxNumberOutputs)!==null&&n!==void 0?n:Infinity;this._translator=(i=e.translator)!==null&&i!==void 0?i:p.nullTranslator;this._inputHistoryScope=(s=e.inputHistoryScope)!==null&&s!==void 0?s:"global";this._showInputPlaceholder=(o=e.showInputPlaceholder)!==null&&o!==void 0?o:true;const r=this.model=e.model;for(let a=0;a{this._setOutput(a,e)}))}}r.changed.connect(this.onModelChanged,this);r.stateChanged.connect(this.onStateChanged,this);if(e.promptOverlay){this._addPromptOverlay()}}get layout(){return super.layout}get widgets(){return this.layout.widgets}get future(){return this._future}set future(e){if(this.model.isDisposed){throw Error("Model is disposed")}if(this._future===e){return}if(this._future){this._future.dispose()}this._future=e;e.done.finally((()=>{this._pendingInput=false})).catch((()=>{}));this.model.clear();if(this.widgets.length){this._clear();this.outputLengthChanged.emit(Math.min(this.model.length,this._maxNumberOutputs))}e.onIOPub=this._onIOPub;e.onReply=this._onExecuteReply;e.onStdin=t=>{if(u.KernelMessage.isInputRequestMsg(t)){this.onInputRequest(t,e)}}}get inputRequested(){return this._inputRequested}get pendingInput(){return this._pendingInput}get maxNumberOutputs(){return this._maxNumberOutputs}set maxNumberOutputs(e){if(e<=0){console.warn(`OutputArea.maxNumberOutputs must be strictly positive.`);return}const t=this._maxNumberOutputs;this._maxNumberOutputs=e;if(t{this._setOutput(t.newIndex,e)}))}break;case"remove":if(this.widgets.length){if(this.model.length===0){this._clear()}else{const e=t.oldIndex;for(let n=0;n{this._toggleScrolling.emit()}));this.node.appendChild(e);const t=()=>{const t=this.node.querySelector(".jp-OutputArea-child");if(t){e.style.height=`${Math.max(t.getBoundingClientRect().height,this.node.getBoundingClientRect().height)}px`}};const n=new ResizeObserver(t);n.observe(this.node);this.disposed.connect((()=>{n.disconnect()}));requestAnimationFrame((()=>{this._initialize.emit()}))}_moveDisplayIdIndices(e,t){this._displayIdMap.forEach((n=>{const i=e+t;const s=n.length;for(let o=s-1;o>=0;--o){const s=n[o];if(s>=e&&s=i){n[o]-=t}}}))}onStateChanged(e,t){const n=Math.min(this.model.length,this._maxNumberOutputs);if(t){if(t>=this._maxNumberOutputs){return}this._setOutput(t,this.model.get(t))}else{for(let e=0;e{if(this.isDisposed){return}this.node.style.minHeight=""}),50)}onInputRequest(e,t){const n=this.contentFactory;const i=e.content.prompt;const s=e.content.password;const o=new g.Panel;o.addClass(v);o.addClass(x);const r=n.createOutputPrompt();r.addClass(b);o.addWidget(r);this._pendingInput=true;const a=n.createStdin({parent_header:e.header,prompt:i,password:s,future:t,translator:this._translator,inputHistoryScope:this._inputHistoryScope,showInputPlaceholder:this._showInputPlaceholder});a.addClass(_);o.addWidget(a);if(this.model.length>=this.maxNumberOutputs){this.maxNumberOutputs=this.model.length}this._inputRequested.emit(a);const l=a.node.getElementsByTagName("input")[0];void a.value.then((e=>{if(this.model.length>=this.maxNumberOutputs){this.maxNumberOutputs=this.model.length+1}o.addClass(y);this.model.add({output_type:"stream",name:"stdin",text:e+"\n"});l.focus();this._pendingInput=false;window.setTimeout((()=>{const e=document.activeElement;o.dispose();if(e&&e instanceof HTMLElement){e.focus()}}),500)}));this.layout.addWidget(o)}_setOutput(e,t){if(e>=this._maxNumberOutputs){return}const n=this.layout.widgets[e];const i=n.widgets?n.widgets.filter((e=>"renderModel"in e)).pop():n;const s=this.rendermime.preferredMimeType(t.data,t.trusted?"any":"ensure");if(A.currentPreferredMimetype.get(i)===s&&T.isIsolated(s,t.metadata)===i instanceof A.IsolatedRenderer){void i.renderModel(t)}else{this.layout.widgets[e].dispose();this._insertOutput(e,t)}}_insertOutput(e,t){if(e>this._maxNumberOutputs){return}const n=this.layout;if(e===this._maxNumberOutputs){const t=new A.TrimmedOutputs(this._maxNumberOutputs,(()=>{const e=this._maxNumberOutputs;this._maxNumberOutputs=Infinity;this._showTrimmedOutputs(e)}),this._translator);n.insertWidget(e,this._wrappedOutput(t))}else{let i=this.createOutputItem(t);if(i){i.toggleClass(C,t.executionCount!==null)}else{i=new g.Widget}if(!this._outputTracker.has(i)){void this._outputTracker.add(i)}n.insertWidget(e,i)}}get outputTracker(){return this._outputTracker}_showTrimmedOutputs(e){this.widgets[e].dispose();for(let t=e;t{const t=document.createElement("pre");const i=this._translator.load("jupyterlab");t.textContent=i.__("Javascript Error: %1",e.message);n.node.appendChild(t);n.node.className="lm-Widget jp-RenderedText";n.node.setAttribute("data-mime-type","application/vnd.jupyter.stderr")}));return n}_wrappedOutput(e,t=null){const n=new A.OutputPanel;n.addClass(v);const i=this.contentFactory.createOutputPrompt();i.executionCount=t;i.addClass(b);n.addWidget(i);e.addClass(_);n.addWidget(e);return n}}class E extends T{onInputRequest(e,t){return}createOutputItem(e){const t=this.createRenderedMimetype(e);if(!t){return null}const n=new A.OutputPanel;n.addClass(v);t.addClass(_);n.addWidget(t);return n}}(function(e){async function t(e,t,n,i){var s;let o=true;if(i&&Array.isArray(i.tags)&&i.tags.indexOf("raises-exception")!==-1){o=false}const r={code:e,stop_on_error:o};const a=(s=n.session)===null||s===void 0?void 0:s.kernel;if(!a){throw new Error("Session has no kernel.")}const l=a.requestExecute(r,false,i);t.future=l;return l.done}e.execute=t;function n(e,t){const n=t[e];if(n&&n["isolated"]!==undefined){return!!n["isolated"]}else{return!!t["isolated"]}}e.isIsolated=n;class i{createOutputPrompt(){return new M}createStdin(e){return new D(e)}}e.ContentFactory=i;e.defaultContentFactory=new i})(T||(T={}));class M extends g.Widget{constructor(){super();this._executionCount=null;this.addClass(w)}get executionCount(){return this._executionCount}set executionCount(e){this._executionCount=e;if(e===null){this.node.textContent=""}else{this.node.textContent=`[${e}]:`}}}class D extends g.Widget{static _historyIx(e,t){const n=D._history.get(e);if(!n){return undefined}const i=n.length;if(t<=0){return i+t}}static _historyAt(e,t){const n=D._history.get(e);if(!n){return undefined}const i=n.length;const s=D._historyIx(e,t);if(s!==undefined&&s1e3){n.shift()}}static _historySearch(e,t,n,i=true){const s=D._history.get(e);const o=s.length;const r=D._historyIx(e,n);const a=e=>e.search(t)!==-1;if(r===undefined){return}if(i){if(r===0){return}const e=s.slice(0,r).findLastIndex(a);if(e!==-1){return e-o}}else{if(r>=o-1){return}const e=s.slice(r+1).findIndex(a);if(e!==-1){return e-o+r+1}}}constructor(e){var t;super({node:A.createInputWidgetNode(e.prompt,e.password)});this._promise=new a.PromiseDelegate;this._resolved=false;this.addClass(S);this._future=e.future;this._historyIndex=0;this._historyKey=e.inputHistoryScope==="session"?e.parent_header.session:"";this._historyPat="";this._parentHeader=e.parent_header;this._password=e.password;this._trans=((t=e.translator)!==null&&t!==void 0?t:p.nullTranslator).load("jupyterlab");this._value=e.prompt+" ";this._input=this.node.getElementsByTagName("input")[0];if(e.showInputPlaceholder&&!this._password){this._input.placeholder=this._trans.__("↑↓ for history. Search history with c-↑/c-↓")}else{this._input.placeholder=""}if(!D._history.has(this._historyKey)){D._history.set(this._historyKey,[])}}get value(){return this._promise.promise.then((()=>this._value))}handleEvent(e){e.stopPropagation();if(this._resolved){e.preventDefault();return}const t=this._input;if(e.type==="keydown"){if(e.key==="Enter"){this.resetSearch();this._future.sendInputReply({status:"ok",value:t.value},this._parentHeader);if(this._password){this._value+="········"}else{this._value+=t.value;D._historyPush(this._historyKey,t.value)}this._resolved=true;this._promise.resolve(void 0)}else if(e.key==="Escape"){this.resetSearch();t.blur()}else if(e.ctrlKey&&(e.key==="ArrowUp"||e.key==="ArrowDown")){if(this._historyPat===""){this._historyPat=t.value}const n=e.key==="ArrowUp";const i=D._historySearch(this._historyKey,this._historyPat,this._historyIndex,n);if(i!==undefined){const n=D._historyAt(this._historyKey,i);if(n!==undefined){if(this._historyIndex===0){this._valueCache=t.value}this._setInputValue(n);this._historyIndex=i;e.preventDefault()}}}else if(e.key==="ArrowUp"){this.resetSearch();const n=D._historyAt(this._historyKey,this._historyIndex-1);if(n){if(this._historyIndex===0){this._valueCache=t.value}this._setInputValue(n);--this._historyIndex;e.preventDefault()}}else if(e.key==="ArrowDown"){this.resetSearch();if(this._historyIndex===0){}else if(this._historyIndex===-1){this._setInputValue(this._valueCache);++this._historyIndex}else{const e=D._historyAt(this._historyKey,this._historyIndex+1);if(e){this._setInputValue(e);++this._historyIndex}}}}}resetSearch(){this._historyPat=""}onAfterAttach(e){this._input.addEventListener("keydown",this);this._input.focus()}onBeforeDetach(e){this._input.removeEventListener("keydown",this)}_setInputValue(e){this._input.value=e;this._input.setSelectionRange(e.length,e.length)}}D._history=new Map;var A;(function(e){function t(e,t){const n=document.createElement("div");const i=document.createElement("pre");i.className=j;i.textContent=e;const s=document.createElement("input");s.className=k;if(t){s.type="password"}n.appendChild(i);i.appendChild(s);return n}e.createInputWidgetNode=t;class n extends g.Widget{constructor(e){super({node:document.createElement("iframe")});this.addClass("jp-mod-isolated");this._wrapped=e;const t=this.node;t.frameBorder="0";t.scrolling="auto";t.addEventListener("load",(()=>{t.contentDocument.open();t.contentDocument.write(this._wrapped.node.innerHTML);t.contentDocument.close();const e=t.contentDocument.body;t.style.height=`${e.scrollHeight}px`;t.heightChangeObserver=new ResizeObserver((()=>{t.style.height=`${e.scrollHeight}px`}));t.heightChangeObserver.observe(e)}))}renderModel(e){return this._wrapped.renderModel(e)}}e.IsolatedRenderer=n;e.currentPreferredMimetype=new m.AttachedProperty({name:"preferredMimetype",create:e=>""});class i extends g.Panel{constructor(e){super(e)}_onContext(e){this.node.focus()}onAfterAttach(e){super.onAfterAttach(e);this.node.addEventListener("contextmenu",this._onContext.bind(this))}onBeforeDetach(e){super.onAfterDetach(e);this.node.removeEventListener("contextmenu",this._onContext.bind(this))}}e.OutputPanel=i;class s extends g.Widget{constructor(e,t,n){const i=document.createElement("div");const s=(n!==null&&n!==void 0?n:p.nullTranslator).load("jupyterlab");const o=document.createElement("button");o.type="button";o.className="jp-TrimmedOutputs-button";o.title=s.__("The first %1 are displayed",e);o.textContent=s.__("Show more outputs");i.appendChild(o);super({node:i});this._onClick=t;this.addClass("jp-TrimmedOutputs")}handleEvent(e){if(e.type==="click"){this._onClick(e)}}onAfterAttach(e){super.onAfterAttach(e);this.node.addEventListener("click",this)}onBeforeDetach(e){super.onBeforeDetach(e);this.node.removeEventListener("click",this)}}e.TrimmedOutputs=s})(A||(A={}))},1649:(e,t,n)=>{"use strict";var i=n(10395);var s=n(97913);var o=n(5893);var r=n(85072);var a=n.n(r);var l=n(97825);var d=n.n(l);var c=n(77659);var h=n.n(c);var u=n(55056);var p=n.n(u);var m=n(10540);var g=n.n(m);var f=n(41113);var v=n.n(f);var _=n(5526);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.A,b);const w=_.A&&_.A.locals?_.A.locals:undefined},93034:(e,t,n)=>{"use strict";n.r(t);n.d(t,{RenderedPDF:()=>c,default:()=>p,rendererFactory:()=>h});var i=n(5592);var s=n.n(i);var o=n(90044);var r=n.n(o);var a=n(27518);var l=n.n(a);const d="application/pdf";class c extends a.Widget{constructor(){super();this._base64="";this._disposable=null;this._ready=new i.PromiseDelegate;this.addClass("jp-PDFContainer");const e=document.createElement("iframe");e.setAttribute("loading","lazy");this.node.appendChild(e);e.onload=()=>{const t=e.contentWindow.document.createElement("body");t.style.margin="0px";e.contentWindow.document.body=t;this._object=e.contentWindow.document.createElement("object");if(!window.safari){this._object.type=d}this._object.width="100%";this._object.height="100%";t.appendChild(this._object);this._ready.resolve(void 0)}}async renderModel(e){await this._ready.promise;const t=e.data[d];if(!t||t.length===this._base64.length&&t===this._base64){if(e.metadata.fragment&&this._object.data){const t=this._object.data;this._object.data=`${t.split("#")[0]}${e.metadata.fragment}`}if(m.IS_FIREFOX){this._object.data=this._object.data}return Promise.resolve(void 0)}this._base64=t;const n=m.b64toBlob(t,d);if(this._disposable){this._disposable.dispose()}let i=URL.createObjectURL(n);if(e.metadata.fragment){i+=e.metadata.fragment}this._object.data=i;this._disposable=new o.DisposableDelegate((()=>{try{URL.revokeObjectURL(i)}catch(e){}}));return}onBeforeHide(){if(m.IS_FIREFOX){this._object.data=this._object.data.split("#")[0]}}dispose(){if(this._disposable){this._disposable.dispose()}super.dispose()}}const h={safe:false,mimeTypes:[d],defaultRank:100,createRenderer:e=>new c};const u=[{id:"@jupyterlab/pdf-extension:factory",description:"Adds renderer for PDF content.",rendererFactory:h,dataType:"string",documentWidgetFactoryOptions:{name:"PDF",modelName:"base64",primaryFileType:"PDF",fileTypes:["PDF"],defaultFor:["PDF"]}}];const p=u;var m;(function(e){e.IS_FIREFOX=/Firefox/.test(navigator.userAgent);function t(e,t="",n=512){const i=atob(e);const s=[];for(let o=0;o{"use strict";var i=n(10395);var s=n(85072);var o=n.n(s);var r=n(97825);var a=n.n(r);var l=n(77659);var d=n.n(l);var c=n(55056);var h=n.n(c);var u=n(10540);var p=n.n(u);var m=n(41113);var g=n.n(m);var f=n(44486);var v={};v.styleTagTransform=g();v.setAttributes=h();v.insert=d().bind(null,"head");v.domAPI=a();v.insertStyleElement=p();var _=o()(f.A,v);const b=f.A&&f.A.locals?f.A.locals:undefined},49870:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>v});var i=n(88617);var s=n.n(i);var o=n(38850);var r=n.n(o);var a=n(34881);var l=n.n(a);var d=n(4073);var c=n.n(d);var h=n(26849);var u=n.n(h);var p;(function(e){e.open="pluginmanager:open";e.refreshPlugins="pluginmanager:refresh"})(p||(p={}));const m="@jupyterlab/pluginmanager-extension:plugin";const g={id:m,description:"Enable or disable individual plugins.",autoStart:true,requires:[i.JupyterLab.IInfo],optional:[a.ITranslator,o.ICommandPalette,i.ILayoutRestorer],provides:h.IPluginManager,activate:(e,t,n,i,s)=>{const{commands:r,shell:l}=e;n=n!==null&&n!==void 0?n:a.nullTranslator;const c=n.load("jupyterlab");const u=c.__("Plugin Manager");const g=c.__("Advanced Plugin Manager");const f=c.__("Refresh Plugin List");const v="plugin-manager";const _=new o.WidgetTracker({namespace:v});function b(i){const s=new h.PluginListModel({...i,pluginData:{availablePlugins:t.availablePlugins},serverSettings:e.serviceManager.serverSettings,extraLockedPlugins:[m,"@jupyterlab/services-extension:service-manager","@jupyterlab/application-extension:layout","@jupyterlab/apputils-extension:resolver"],translator:n!==null&&n!==void 0?n:a.nullTranslator});const l=new h.Plugins({model:s,translator:n!==null&&n!==void 0?n:a.nullTranslator});l.title.label=g;l.title.icon=d.extensionIcon;l.title.caption=c.__("Plugin Manager");const u=new o.MainAreaWidget({content:l,reveal:s.ready});u.toolbar.addItem("refresh-plugins",new d.CommandToolbarButton({id:p.refreshPlugins,args:{noLabel:true},commands:r}));return u}r.addCommand(p.open,{label:g,execute:e=>{const t=b(e);l.add(t,"main",{type:"Plugins"});void _.add(t);t.content.model.trackerDataChanged.connect((()=>{void _.save(t)}));return t},describedBy:{args:{type:"object",properties:{query:{type:"string",description:c.__("The search query for plugins")},isDisclaimed:{type:"boolean",description:c.__("Whether the disclaimer has been accepted")}}}}});r.addCommand(p.refreshPlugins,{label:e=>e.noLabel?"":f,caption:c.__("Refresh plugins list"),icon:d.refreshIcon,execute:async()=>{var e;return(e=_.currentWidget)===null||e===void 0?void 0:e.content.model.refresh().catch((e=>{console.error(`Failed to refresh the available plugins list:\n${e}`)}))},describedBy:{args:{type:"object",properties:{noLabel:{type:"boolean",description:c.__("Whether to hide the label")}}}}});if(i){i.addItem({command:p.open,category:u})}if(s){void s.restore(_,{command:p.open,name:e=>"plugins",args:e=>{const{query:t,isDisclaimed:n}=e.content.model;const i={query:t,isDisclaimed:n};return i}})}return{open:()=>e.commands.execute(p.open)}}};const f=[g];const v=f},57292:(e,t,n)=>{"use strict";var i=n(40662);var s=n(97913);var o=n(3579);var r=n(14383)},13125:(e,t,n)=>{"use strict";n.r(t);n.d(t,{IPluginManager:()=>w,PluginListModel:()=>m,Plugins:()=>f});var i=n(38850);var s=n(40959);var o=n(49278);var r=n(4073);var a=n(2336);var l=n(5592);var d=n(34881);var c=n(44914);function h(e){return c.createElement(c.Fragment,null,e.trans.__('The plugin "%1" cannot be disabled as it is required by other plugins:',e.plugin.id),c.createElement("ul",null,e.dependants.map((e=>c.createElement("li",{key:"dependantsDialog-"+e.id},e.id)))),e.trans.__("Please disable the dependent plugins first."))}function u(e){return c.createElement("div",{className:"jp-pluginmanager-PluginInUseMessage"},e.trans.__('While the plugin "%1" is not required by other enabled plugins, some plugins provide optional features depending on it. These plugins are:',e.plugin.id),c.createElement("ul",null,e.optionalDependants.map((e=>c.createElement("li",{key:"optionalDependantsDialog-"+e.id},e.id)))),e.trans.__("Do you want to disable it anyway?"))}const p="lab/api/plugins";class m extends r.VDomModel{constructor(e){var t,n,i;super();this.statusError=null;this.actionError=null;this._trackerDataChanged=new a.Signal(this);this._isLoading=false;this._pendingActions=[];this._ready=new l.PromiseDelegate;this._pluginData=e.pluginData;this._serverSettings=e.serverSettings||o.ServerConnection.makeSettings();this._query=e.query||"";this._isDisclaimed=(t=e.isDisclaimed)!==null&&t!==void 0?t:false;this._extraLockedPlugins=(n=e.extraLockedPlugins)!==null&&n!==void 0?n:[];this.refresh().then((()=>this._ready.resolve())).catch((e=>this._ready.reject(e)));this._trans=((i=e.translator)!==null&&i!==void 0?i:d.nullTranslator).load("jupyterlab")}get available(){return[...this._available.values()]}get isLoading(){return this._isLoading}get isDisclaimed(){return this._isDisclaimed}set isDisclaimed(e){if(e!==this._isDisclaimed){this._isDisclaimed=e;this.stateChanged.emit();this._trackerDataChanged.emit(void 0)}}get query(){return this._query}set query(e){if(this._query!==e){this._query=e;this.stateChanged.emit();this._trackerDataChanged.emit(void 0)}}get trackerDataChanged(){return this._trackerDataChanged}get ready(){return this._ready.promise}async enable(e){if(!this.isDisclaimed){throw new Error("User has not confirmed the disclaimer")}await this._performAction("enable",e);e.enabled=true}async disable(e){if(!this.isDisclaimed){throw new Error("User has not confirmed the disclaimer")}const{dependants:t,optionalDependants:n}=this.getDependants(e);if(t.length>0){void(0,i.showDialog)({title:this._trans.__("This plugin is required by other plugins"),body:h({plugin:e,dependants:t,trans:this._trans}),buttons:[i.Dialog.okButton()]});return}if(n.length>0){const t=await(0,i.showDialog)({title:this._trans.__("This plugin is used by other plugins"),body:u({plugin:e,optionalDependants:n,trans:this._trans}),buttons:[i.Dialog.okButton({label:this._trans.__("Disable anyway")}),i.Dialog.cancelButton()]});if(!t.button.accept){return}}await this._performAction("disable",e);if(this.actionError){return}e.enabled=false}getDependants(e){const t=[];const n=[];if(e.provides){const i=e.provides.name;for(const e of this._available.values()){if(!e.enabled){continue}if(e.requires.filter((e=>!!e)).some((e=>e.name===i))){t.push(e)}if(e.optional.filter((e=>!!e)).some((e=>e.name===i))){n.push(e)}}}return{dependants:t,optionalDependants:n}}hasPendingActions(){return this._pendingActions.length>0}_performAction(e,t){this.actionError=null;const n=this._requestAPI({},{method:"POST",body:JSON.stringify({cmd:e,plugin_name:t.id})});n.catch((e=>{this.actionError=e.toString()}));this._addPendingAction(n);return n}_addPendingAction(e){this._pendingActions.push(e);const t=()=>{const t=this._pendingActions.indexOf(e);this._pendingActions.splice(t,1);this.stateChanged.emit(undefined)};e.then(t,t);this.stateChanged.emit(undefined)}async refresh(){var e;this.statusError=null;this._isLoading=true;this.stateChanged.emit();try{const t={allLocked:true,lockRules:[]};const n=(e=await this._requestAPI())!==null&&e!==void 0?e:t;this._available=new Map(this._pluginData.availablePlugins.map((e=>{let t=e.provides?e.provides.name.split(":")[1]:undefined;if(e.provides&&!t){t=e.provides.name}return[e.id,{...e,locked:this._isLocked(e.id,n),tokenLabel:t}]})))}catch(t){this.statusError=t.toString()}finally{this._isLoading=false;this.stateChanged.emit()}}_isLocked(e,t){if(t.allLocked){return true}if(this._extraLockedPlugins.includes(e)){return true}const n=e.split(":")[0];if(t.lockRules.includes(n)){return true}if(t.lockRules.includes(e)){return true}return false}async _requestAPI(e={},t={}){const n=this._serverSettings;const i=s.URLExt.join(n.baseUrl,p);let r;try{r=await o.ServerConnection.makeRequest(i+s.URLExt.objectToQueryString(e),t,n)}catch(l){throw new o.ServerConnection.NetworkError(l)}let a=await r.text();if(a.length>0){try{a=JSON.parse(a)}catch(l){console.log("Not a JSON response body.",r)}}if(!r.ok){throw new o.ServerConnection.ResponseError(r,a.message||a)}return a}}var g=n(27518);class f extends g.Panel{constructor(e){const{model:t,translator:n}=e;super();this.model=t;this.addClass("jp-pluginmanager");this.trans=n.load("jupyterlab");this.addWidget(new _(t,this.trans));const i=new b(t,this.trans);this.addWidget(i);const s=new v(t,this.trans);this.addWidget(s)}}class v extends i.VDomRenderer{constructor(e,t){super(e);this.trans=t;this.addClass("jp-pluginmanager-AvailableList")}render(){return c.createElement(c.Fragment,null,this.model.statusError!==null?c.createElement(y,null,this.trans.__("Error querying installed extensions%1",this.model.statusError?`: ${this.model.statusError}`:".")):this.model.isLoading?c.createElement("div",{className:"jp-pluginmanager-loader"},this.trans.__("Updating plugin list…")):c.createElement(r.Table,{blankIndicator:()=>c.createElement("div",null,this.trans.__("No entries")),sortKey:"plugin-id",rows:this.model.available.filter((e=>{const t=new RegExp(this.model.query,"i");return t.test(e.id)||t.test(e.extension)||e.tokenLabel&&t.test(e.tokenLabel)})).map((e=>({data:e,key:e.id}))),columns:[{id:"plugin-id",label:this.trans.__("Plugin"),renderCell:e=>c.createElement(c.Fragment,null,c.createElement("code",null,e.id),c.createElement("br",null),e.description),sort:(e,t)=>e.id.localeCompare(t.id)},{id:"description",label:this.trans.__("Description"),renderCell:e=>c.createElement(c.Fragment,null,e.description),sort:(e,t)=>e.description&&t.description?e.description.localeCompare(t.description):undefined,isHidden:true},{id:"autostart",label:this.trans.__("Autostart?"),renderCell:e=>{switch(e.autoStart){case"defer":return this.trans.__("Defer");case true:return this.trans.__("Yes");case false:case undefined:return this.trans.__("No");default:const t=e.autoStart;throw new Error(`Unknown value: ${t}`)}},sort:(e,t)=>e.autoStart===t.autoStart?0:e.autoStart?-1:1},{id:"requires",label:this.trans.__("Depends on"),renderCell:e=>c.createElement(c.Fragment,null,e.requires.map((e=>e.name)).join("\n")),sort:(e,t)=>(e.requires||[]).length-(t.requires||[]).length,isHidden:true},{id:"extension",label:this.trans.__("Extension"),renderCell:e=>c.createElement(c.Fragment,null,e.extension),sort:(e,t)=>e.extension.localeCompare(t.extension)},{id:"provides",label:this.trans.__("Provides"),renderCell:e=>c.createElement(c.Fragment,null,e.provides?c.createElement("code",{title:e.provides.name},e.tokenLabel):"-"),sort:(e,t)=>(e.tokenLabel||"").localeCompare(t.tokenLabel||"")},{id:"enabled",label:this.trans.__("Enabled"),renderCell:e=>c.createElement(c.Fragment,null,c.createElement("input",{type:"checkbox",checked:e.enabled,disabled:e.locked||!this.model.isDisclaimed,title:e.locked||!this.model.isDisclaimed?e.locked?this.trans.__("This plugin is locked."):this.trans.__("To enable/disable, please acknowledge the disclaimer."):e.enabled?this.trans.__("Disable %1 plugin",e.id):this.trans.__("Enable %1 plugin",e.id),onChange:t=>{if(!this.model.isDisclaimed){return}if(t.target.checked){void this.onAction("enable",e)}else{void this.onAction("disable",e)}}}),e.locked?c.createElement(r.lockIcon.react,{tag:"span",title:this.trans.__("This plugin was locked by system administrator or is a critical dependency and cannot be enabled/disabled.")}):""),sort:(e,t)=>+e.enabled-+t.enabled}]}))}onAction(e,t){switch(e){case"enable":return this.model.enable(t);case"disable":return this.model.disable(t);default:throw new Error(`Invalid action: ${e}`)}}}class _ extends i.VDomRenderer{constructor(e,t){super(e);this.trans=t;this.addClass("jp-pluginmanager-Disclaimer")}render(){return c.createElement("div",null,c.createElement("div",null,this.trans.__("Customise your experience/improve performance by disabling plugins you do not need. To disable or uninstall an entire extension use the Extension Manager instead. Changes will apply after reloading JupyterLab.")),c.createElement("label",null,c.createElement("input",{type:"checkbox",className:"jp-mod-styled jp-pluginmanager-Disclaimer-checkbox",defaultChecked:this.model.isDisclaimed,onChange:e=>{this.model.isDisclaimed=e.target.checked}}),this.trans.__("I understand that disabling core application plugins may render features and parts of the user interface unavailable and recovery using `jupyter labextension enable ` command may be required")))}}class b extends i.VDomRenderer{constructor(e,t){super(e);this.trans=t;this.addClass("jp-pluginmanager-Header")}render(){return c.createElement(c.Fragment,null,c.createElement(r.FilterBox,{placeholder:this.trans.__("Filter"),updateFilter:(e,t)=>{this.model.query=t!==null&&t!==void 0?t:""},initialQuery:this.model.query,useFuzzyFilter:false}),c.createElement("div",{className:`jp-pluginmanager-pending ${this.model.hasPendingActions()?"jp-mod-hasPending":""}`}),this.model.actionError&&c.createElement(y,null,c.createElement("p",null,this.trans.__("Error when performing an action.")),c.createElement("p",null,this.trans.__("Reason given:")),c.createElement("pre",null,this.model.actionError)))}}function y(e){return c.createElement("div",{className:"jp-pluginmanager-error"},e.children)}const w=new l.Token("@jupyterlab/pluginmanager:IPluginManager",`A canary for plugin manager presence, with a method to open the plugin manager widget.`)},14383:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(3579);var a=n(85072);var l=n.n(a);var d=n(97825);var c=n.n(d);var h=n(77659);var u=n.n(h);var p=n(55056);var m=n.n(p);var g=n(10540);var f=n.n(g);var v=n(41113);var _=n.n(v);var b=n(37442);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.A,y);const C=b.A&&b.A.locals?b.A.locals:undefined},87221:(e,t,n)=>{"use strict";n.r(t);n.d(t,{IPropertyInspectorProvider:()=>l,SideBarPropertyInspectorProvider:()=>c});var i=n(34881);var s=n(4073);var o=n(2336);var r=n(27518);var a=n(5592);const l=new a.Token("@jupyterlab/property-inspector:IPropertyInspectorProvider","A service to register new widgets in the property inspector side panel.");class d extends r.Widget{constructor(){super();this._tracker=new r.FocusTracker;this._inspectors=new Map;this.addClass("jp-PropertyInspector");this._tracker=new r.FocusTracker;this._tracker.currentChanged.connect(this._onCurrentChanged,this)}register(e){if(this._inspectors.has(e)){throw new Error("Widget is already registered")}const t=new h.PropertyInspector(e);e.disposed.connect(this._onWidgetDisposed,this);this._inspectors.set(e,t);t.onAction.connect(this._onInspectorAction,this);this._tracker.add(e);return t}get currentWidget(){return this._tracker.currentWidget}refresh(){const e=this._tracker.currentWidget;if(!e){this.setContent(null);return}const t=this._inspectors.get(e);if(t){this.setContent(t.content)}}_onWidgetDisposed(e){const t=this._inspectors.get(e);if(t){t.dispose();this._inspectors.delete(e)}}_onInspectorAction(e,t){const n=e.owner;const i=this._tracker.currentWidget;switch(t){case"content":if(i===n){this.setContent(e.content)}break;case"dispose":if(n){this._tracker.remove(n);this._inspectors.delete(n)}break;case"show-panel":if(i===n){this.showPanel()}break;default:throw new Error("Unsupported inspector action")}}_onCurrentChanged(){const e=this._tracker.currentWidget;if(e){const t=this._inspectors.get(e);const n=t.content;this.setContent(n)}else{this.setContent(null)}}}class c extends d{constructor({shell:e,placeholder:t,translator:n}){super();this._labshell=e;this.translator=n||i.nullTranslator;this._trans=this.translator.load("jupyterlab");const s=this.layout=new r.SingletonLayout;if(t){this._placeholder=t}else{const e=document.createElement("div");const t=document.createElement("div");const n=document.createElement("h3");const i=document.createElement("p");n.textContent=this._trans.__("No Properties");i.textContent=this._trans.__("The property inspector allows to view and edit properties of a selected notebook.");t.className="jp-PropertyInspector-placeholderContent";t.appendChild(n);t.appendChild(i);e.appendChild(t);this._placeholder=new r.Widget({node:e});this._placeholder.addClass("jp-PropertyInspector-placeholder")}s.widget=this._placeholder;this._labshell.currentChanged.connect(this._onShellCurrentChanged,this);this._onShellCurrentChanged()}setContent(e){const t=this.layout;if(t.widget){t.widget.removeClass("jp-PropertyInspector-content");t.removeWidget(t.widget)}if(!e){e=this._placeholder}e.addClass("jp-PropertyInspector-content");t.widget=e}showPanel(){this._labshell.activateById(this.id)}_onShellCurrentChanged(){const e=this.currentWidget;if(!e){this.setContent(null);return}const t=this._labshell.currentWidget;if(t===null||t===void 0?void 0:t.node.contains(e.node)){this.refresh()}else{this.setContent(null)}}}var h;(function(e){class t{constructor(e){this._isDisposed=false;this._content=null;this._owner=null;this._onAction=new o.Signal(this);this._owner=e}get owner(){return this._owner}get content(){return this._content}get isDisposed(){return this._isDisposed}get onAction(){return this._onAction}showPanel(){if(this._isDisposed){return}this._onAction.emit("show-panel")}render(e){if(this._isDisposed){return}if(e instanceof r.Widget){this._content=e}else{this._content=s.ReactWidget.create(e)}this._onAction.emit("content")}dispose(){if(this._isDisposed){return}this._isDisposed=true;this._content=null;this._owner=null;o.Signal.clearData(this)}}e.PropertyInspector=t})(h||(h={}))},58130:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(3579);var r=n(85072);var a=n.n(r);var l=n(97825);var d=n.n(l);var c=n(77659);var h=n.n(c);var u=n(55056);var p=n.n(u);var m=n(10540);var g=n.n(m);var f=n(41113);var v=n.n(f);var _=n(35667);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.A,b);const w=_.A&&_.A.locals?_.A.locals:undefined},97872:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>p});var i=n(38850);var s=n.n(i);var o=n(11927);var r=n.n(o);var a=n(95513);var l=n.n(a);var d=n(34881);var c=n.n(d);var h;(function(e){e.handleLink="rendermime:handle-local-link"})(h||(h={}));const u={id:"@jupyterlab/rendermime-extension:plugin",description:"Provides the render mime registry.",optional:[o.IDocumentManager,a.ILatexTypesetter,i.ISanitizer,a.IMarkdownParser,d.ITranslator],provides:a.IRenderMimeRegistry,activate:g,autoStart:true};const p=u;const m="debugger:open-source";function g(e,t,n,i,s,o){const r=(o!==null&&o!==void 0?o:d.nullTranslator).load("jupyterlab");if(t){e.commands.addCommand(h.handleLink,{label:r.__("Handle Local Link"),execute:n=>{const i=n["path"];const s=n["id"];const o=n["scope"]||"server";if(!i){return}if(o==="kernel"){if(!e.commands.hasCommand(m)){console.warn("Cannot open kernel file: debugger sources provider not available");return}return e.commands.execute(m,{path:i})}return t.services.contents.get(i,{content:false}).then((()=>{const e=t.registry.defaultRenderedWidgetFactory(i);const n=t.openOrReveal(i,e.name);if(n&&s){n.setFragment(s)}}))},describedBy:{args:{type:"object",properties:{path:{type:"string",description:r.__("The file path to open")},id:{type:"string",description:r.__("Fragment identifier to navigate to")},scope:{type:"string",enum:["kernel","server"],description:r.__("Scope of the file location")}},required:["path"]}}})}return new a.RenderMimeRegistry({initialFactories:a.standardRendererFactories,linkHandler:!t?undefined:{handleLink:(t,n,i)=>{if(t.tagName==="A"&&t.hasAttribute("download")){return}e.commandLinker.connectNode(t,h.handleLink,{path:n,id:i})},handlePath:(t,n,i,s)=>{e.commandLinker.connectNode(t,h.handleLink,{path:n,id:s,scope:i})}},latexTypesetter:n!==null&&n!==void 0?n:undefined,markdownParser:s!==null&&s!==void 0?s:undefined,translator:o!==null&&o!==void 0?o:undefined,sanitizer:i!==null&&i!==void 0?i:undefined})}},80046:(e,t,n)=>{"use strict";var i=n(97913);var s=n(5893);var o=n(3579);var r=n(41603)},60479:(e,t,n)=>{"use strict";n.r(t)},32278:(e,t,n)=>{"use strict";n.d(t,{l:()=>d});var i=n(23230);var s=n.n(i);var o=n(5592);var r=n.n(o);var a=n(2336);var l=n.n(a);class d{constructor(e){this.trusted=false;this._changed=new a.Signal(this);this._raw={};const t=c.getData(e.value);this._data=new i.ObservableJSON({values:t});this._rawData=t;const n=e.value;for(const i in n){switch(i){case"data":break;default:this._raw[i]=c.extract(n,i)}}}get changed(){return this._changed}dispose(){this._data.dispose();a.Signal.clearData(this)}get data(){return this._rawData}get metadata(){return{}}setData(e){if(e.data){this._updateObservable(this._data,e.data);this._rawData=e.data}this._changed.emit(void 0)}toJSON(){const e={};for(const t in this._raw){e[t]=c.extract(this._raw,t)}return e}_updateObservable(e,t){const n=e.keys();const i=Object.keys(t);for(const s of n){if(i.indexOf(s)===-1){e.delete(s)}}for(const s of i){const n=e.get(s);const i=t[s];if(n!==i){e.set(s,i)}}}}(function(e){function t(e){return c.getData(e)}e.getData=t})(d||(d={}));var c;(function(e){function t(e){return s(e)}e.getData=t;function n(e){const n=t(e.value);return{data:n}}e.getBundleOptions=n;function i(e,t){const n=e[t];if(n===undefined||o.JSONExt.isPrimitive(n)){return n}return o.JSONExt.deepCopy(n)}e.extract=i;function s(e){const t=Object.create(null);for(const n in e){t[n]=i(e,n)}return t}})(c||(c={}))},41586:(e,t,n)=>{"use strict";n.d(t,{Fh:()=>s,NQ:()=>o,SF:()=>r,U1:()=>l,dn:()=>u,hL:()=>a,hY:()=>h,jn:()=>c,qQ:()=>d});var i=n(18901);const s={safe:true,mimeTypes:["text/html"],defaultRank:50,createRenderer:e=>new i.TH(e)};const o={safe:true,mimeTypes:["image/bmp","image/png","image/jpeg","image/gif","image/webp"],defaultRank:90,createRenderer:e=>new i.vf(e)};const r={safe:true,mimeTypes:["text/latex"],defaultRank:70,createRenderer:e=>new i.Kc(e)};const a={safe:true,mimeTypes:["text/markdown"],defaultRank:60,createRenderer:e=>new i.jL(e)};const l={safe:false,mimeTypes:["image/svg+xml"],defaultRank:80,createRenderer:e=>new i.Yk(e)};const d={safe:true,mimeTypes:["application/vnd.jupyter.stderr"],defaultRank:110,createRenderer:e=>new i.A6(e)};const c={safe:true,mimeTypes:["text/plain","application/vnd.jupyter.stdout"],defaultRank:120,createRenderer:e=>new i.Vx(e)};const h={safe:false,mimeTypes:["text/javascript","application/javascript"],defaultRank:110,createRenderer:e=>new i.TS(e)};const u=[s,a,r,l,o,h,d,c]},17200:(e,t,n)=>{"use strict";n.r(t);n.d(t,{AttachmentModel:()=>r.l,ILatexTypesetter:()=>p.nc,IMarkdownParser:()=>p.co,IRenderMimeRegistry:()=>p.N3,IUrlResolverFactory:()=>p.D8,MimeModel:()=>d.w,OutputModel:()=>c.L,RenderMimeRegistry:()=>h.K,RenderedCommon:()=>m.nZ,RenderedError:()=>m.A6,RenderedHTML:()=>m.TH,RenderedHTMLCommon:()=>m.C6,RenderedImage:()=>m.vf,RenderedJavaScript:()=>m.TS,RenderedLatex:()=>m.Kc,RenderedMarkdown:()=>m.jL,RenderedSVG:()=>m.Yk,RenderedText:()=>m.Vx,errorRendererFactory:()=>a.qQ,hardenAnchorLinks:()=>u.N1,htmlRendererFactory:()=>a.Fh,imageRendererFactory:()=>a.NQ,javaScriptRendererFactory:()=>a.hY,latexRendererFactory:()=>a.SF,markdownRendererFactory:()=>a.hL,removeMath:()=>l.r,renderError:()=>u.vr,renderHTML:()=>u.e2,renderImage:()=>u.mx,renderLatex:()=>u.zG,renderMarkdown:()=>u.Gc,renderSVG:()=>u.d8,renderText:()=>u.S5,replaceMath:()=>l.H,standardRendererFactories:()=>a.dn,svgRendererFactory:()=>a.U1,textRendererFactory:()=>a.jn});var i=n(43499);var s=n.n(i);var o={};for(const g in i)if(g!=="default")o[g]=()=>i[g];n.d(t,o);var r=n(32278);var a=n(41586);var l=n(52608);var d=n(29549);var c=n(34354);var h=n(71153);var u=n(11364);var p=n(21944);var m=n(18901)},52608:(e,t,n)=>{"use strict";n.d(t,{H:()=>r,r:()=>o});const i="$";const s=/(\$\$?|\\(?:begin|end)\{[a-z]*\*?\}|\\[{}$]|[{}]|(?:\n\s*)+|@@\d+@@|\\\\(?:\(|\)|\[|\]))/i;function o(e){const t=[];let n=null;let o=null;let r=null;let l=0;let d;const c=e.includes("`")||e.includes("~~~");if(c){e=e.replace(/~/g,"~T").replace(/^(?`{3,}|(~T){3,})[^`\n]*\n([\s\S]*?)^\k`*$/gm,(e=>e.replace(/\$/g,"~D"))).replace(/(^|[^\\])(`+)([^\n]*?[^`\n])\2(?!`)/gm,(e=>e.replace(/\$/g,"~D")));d=e=>e.replace(/~([TD])/g,((e,t)=>t==="T"?"~":i))}else{d=e=>e}let h=e.replace(/\r\n?/g,"\n").split(s);for(let s=1,u=h.length;s{let i=t[n];if(i.substr(0,3)==="\\\\("&&i.substr(i.length-3)==="\\\\)"){i="\\("+i.substring(3,i.length-3)+"\\)"}else if(i.substr(0,3)==="\\\\["&&i.substr(i.length-3)==="\\\\]"){i="\\["+i.substring(3,i.length-3)+"\\]"}return i};return e.replace(/@@(\d+)@@/g,n)}function a(e,t,n,i,s){let o=s.slice(e,t+1).join("").replace(/&/g,"&").replace(//g,">");if(navigator&&navigator.appName==="Microsoft Internet Explorer"){o=o.replace(/(%[^\n]*)\n/g,"$1
    \n")}while(t>e){s[t]="";t--}s[e]="@@"+i.length+"@@";if(n){o=n(o)}i.push(o);return s}},29549:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});class i{constructor(e={}){this.trusted=!!e.trusted;this._data=e.data||{};this._metadata=e.metadata||{};this._callback=e.callback||s.noOp}get data(){return this._data}get metadata(){return this._metadata}setData(e){this._data=e.data||this._data;this._metadata=e.metadata||this._metadata;this._callback(e)}}var s;(function(e){function t(){}e.noOp=t})(s||(s={}))},34354:(e,t,n)=>{"use strict";n.d(t,{L:()=>h});var i=n(72363);var s=n.n(i);var o=n(23230);var r=n.n(o);var a=n(5592);var l=n.n(a);var d=n(2336);var c=n.n(d);class h{constructor(e){this._changed=new d.Signal(this);this._raw={};this._text=undefined;const{data:t,metadata:n,trusted:s}=u.getBundleOptions(e);this._rawData=t;if(e.value!==undefined&&i.isStream(e.value)){this._text=new o.ObservableString(typeof e.value.text==="string"?e.value.text:e.value.text.join(""))}this._metadata=new o.ObservableJSON({values:n});this._rawMetadata=n;this.trusted=s;const r=e.value;for(const i in r){switch(i){case"data":case"metadata":break;default:this._raw[i]=u.extract(r,i)}}this.type=r.output_type;if(i.isExecuteResult(r)){this.executionCount=r.execution_count}else{this.executionCount=null}}get changed(){return this._changed}dispose(){var e;(e=this._text)===null||e===void 0?void 0:e.dispose();this._metadata.dispose();d.Signal.clearData(this)}get data(){return u.getData(this.toJSON())}get streamText(){return this._text}get metadata(){return this._rawMetadata}setData(e){if(e.data){this._rawData=e.data}if(e.metadata){this._updateObservable(this._metadata,e.metadata);this._rawMetadata=e.metadata}this._changed.emit()}toJSON(){const e={};for(const t in this._raw){e[t]=u.extract(this._raw,t)}if(this._text!==undefined){e["text"]=this._text.text}switch(this.type){case"display_data":case"execute_result":case"update_display_data":e["data"]=this._rawData;e["metadata"]=this.metadata;break;default:break}delete e["transient"];return e}_updateObservable(e,t){const n=e.keys();const i=Object.keys(t);for(const s of n){if(i.indexOf(s)===-1){e.delete(s)}}for(const s of i){const n=e.get(s);const i=t[s];if(n!==i){e.set(s,i)}}}}(function(e){function t(e){return u.getData(e)}e.getData=t;function n(e){return u.getMetadata(e)}e.getMetadata=n})(h||(h={}));var u;(function(e){function t(e){let t={};if(i.isExecuteResult(e)||i.isDisplayData(e)||i.isDisplayUpdate(e)){t=e.data}else if(i.isStream(e)){if(e.name==="stderr"){t["application/vnd.jupyter.stderr"]=e.text}else{t["application/vnd.jupyter.stdout"]=e.text}}else if(i.isError(e)){t["application/vnd.jupyter.error"]=e;const n=e.traceback.join("\n");t["application/vnd.jupyter.stderr"]=n||`${e.ename}: ${e.evalue}`}return r(t)}e.getData=t;function n(e){const t=Object.create(null);if(i.isExecuteResult(e)||i.isDisplayData(e)){for(const n in e.metadata){t[n]=o(e.metadata,n)}}return t}e.getMetadata=n;function s(e){const i=t(e.value);const s=n(e.value);const o=!!e.trusted;return{data:i,metadata:s,trusted:o}}e.getBundleOptions=s;function o(e,t){const n=e[t];if(n===undefined||a.JSONExt.isPrimitive(n)){return n}return JSON.parse(JSON.stringify(n))}e.extract=o;function r(e){const t=Object.create(null);for(const n in e){t[n]=o(e,n)}return t}})(u||(u={}))},71153:(e,t,n)=>{"use strict";n.d(t,{K:()=>c});var i=n(38850);var s=n.n(i);var o=n(40959);var r=n.n(o);var a=n(34881);var l=n.n(a);var d=n(29549);class c{constructor(e={}){var t,n,s,o,r,l;this._id=0;this._ranks={};this._types=null;this._factories={};this.translator=(t=e.translator)!==null&&t!==void 0?t:a.nullTranslator;this.resolver=(n=e.resolver)!==null&&n!==void 0?n:null;this.linkHandler=(s=e.linkHandler)!==null&&s!==void 0?s:null;this.latexTypesetter=(o=e.latexTypesetter)!==null&&o!==void 0?o:null;this.markdownParser=(r=e.markdownParser)!==null&&r!==void 0?r:null;this.sanitizer=(l=e.sanitizer)!==null&&l!==void 0?l:new i.Sanitizer;if(e.initialFactories){for(const t of e.initialFactories){this.addFactory(t)}}}get mimeTypes(){return this._types||(this._types=h.sortedTypes(this._ranks))}preferredMimeType(e,t="ensure"){if(t==="ensure"||t==="prefer"){for(const t of this.mimeTypes){if(t in e&&this._factories[t].safe){return t}}}if(t!=="ensure"){for(const t of this.mimeTypes){if(t in e){return t}}}return undefined}createRenderer(e){if(!(e in this._factories)){throw new Error(`No factory for mime type: '${e}'`)}return this._factories[e].createRenderer({mimeType:e,resolver:this.resolver,sanitizer:this.sanitizer,linkHandler:this.linkHandler,latexTypesetter:this.latexTypesetter,markdownParser:this.markdownParser,translator:this.translator})}createModel(e={}){return new d.w(e)}clone(e={}){var t,n,i,s,o,r,a,l,d,h;const u=new c({resolver:(n=(t=e.resolver)!==null&&t!==void 0?t:this.resolver)!==null&&n!==void 0?n:undefined,sanitizer:(s=(i=e.sanitizer)!==null&&i!==void 0?i:this.sanitizer)!==null&&s!==void 0?s:undefined,linkHandler:(r=(o=e.linkHandler)!==null&&o!==void 0?o:this.linkHandler)!==null&&r!==void 0?r:undefined,latexTypesetter:(l=(a=e.latexTypesetter)!==null&&a!==void 0?a:this.latexTypesetter)!==null&&l!==void 0?l:undefined,markdownParser:(h=(d=e.markdownParser)!==null&&d!==void 0?d:this.markdownParser)!==null&&h!==void 0?h:undefined,translator:this.translator});u._factories={...this._factories};u._ranks={...this._ranks};u._id=this._id;return u}getFactory(e){return this._factories[e]}addFactory(e,t){if(t===undefined){t=e.defaultRank;if(t===undefined){t=100}}for(const n of e.mimeTypes){this._factories[n]=e;this._ranks[n]={rank:t,id:this._id++}}this._types=null}removeMimeType(e){delete this._factories[e];delete this._ranks[e];this._types=null}getRank(e){const t=this._ranks[e];return t&&t.rank}setRank(e,t){if(!this._ranks[e]){return}const n=this._id++;this._ranks[e]={rank:t,id:n};this._types=null}}(function(e){class t{constructor(e){this._path=e.path;this._contents=e.contents}get path(){return this._path}set path(e){this._path=e}async resolveUrl(e){if(this.isLocal(e)){const t=encodeURI(o.PathExt.dirname(this.path));e=o.PathExt.resolve(t,e)}return e}async getDownloadUrl(e){if(this.isLocal(e)){return this._contents.getDownloadUrl(decodeURIComponent(e))}return e}isLocal(e,t=false){if(this.isMalformed(e)){return false}return o.URLExt.isLocal(e,t)||!!this._contents.driveName(decodeURI(e))}async resolvePath(e){const t=o.PageConfig.getOption("rootUri").replace("file://","");if(e.startsWith("~/")&&t.startsWith("/home/")){e=t.split("/").slice(0,3).join("/")+e.substring(1)}if(e.startsWith(t)||e.startsWith("./")){try{const n=e.replace(t,"");const i=await this._contents.get(n,{content:false});return{path:i.path,scope:"server"}}catch(n){console.warn(`Could not resolve location of ${e} on server`);return null}}return{path:e,scope:"kernel"}}isMalformed(e){try{decodeURI(e);return false}catch(t){if(t instanceof URIError){return true}throw t}}}e.UrlResolver=t})(c||(c={}));var h;(function(e){function t(e){return Object.keys(e).sort(((t,n)=>{const i=e[t];const s=e[n];if(i.rank!==s.rank){return i.rank-s.rank}return i.id-s.id}))}e.sortedTypes=t})(h||(h={}))},11364:(e,t,n)=>{"use strict";n.d(t,{Gc:()=>p,N1:()=>E,S5:()=>C,d8:()=>m,e2:()=>c,mx:()=>h,vr:()=>I,zG:()=>u});var i=n(40959);var s=n.n(i);var o=n(34881);var r=n.n(o);var a=n(67901);var l=n.n(a);var d=n(52608);async function c(e){let{host:t,source:n,trusted:i,sanitizer:s,resolver:r,linkHandler:a,shouldTypeset:l,latexTypesetter:d,translator:c}=e;c=c||o.nullTranslator;const h=c===null||c===void 0?void 0:c.load("jupyterlab");let u=n;if(!n){t.textContent="";return}if(!i){u=`${n}`;n=s.sanitize(n)}t.innerHTML=n;if(t.getElementsByTagName("script").length>0){if(i){M.evalInnerHTMLScriptTags(t)}else{const e=document.createElement("div");const n=document.createElement("pre");n.textContent=h.__("This HTML output contains inline scripts. Are you sure that you want to run arbitrary Javascript within your JupyterLab session?");const i=document.createElement("button");i.textContent=h.__("Run");i.onclick=e=>{t.innerHTML=u;M.evalInnerHTMLScriptTags(t);if(t.firstChild){t.removeChild(t.firstChild)}};e.appendChild(n);e.appendChild(i);t.insertBefore(e,t.firstChild)}}M.handleDefaults(t);if(l&&d){const e=d.typeset(t);if(e instanceof Promise){e.then((()=>E(t,r))).catch(console.warn)}else{E(t,r)}}else{E(t,r)}if(r){await M.handleUrls(t,r,a)}}async function h(e){const{host:t,mimeType:n,source:i,width:s,height:o,needsBackground:r,unconfined:a}=e;t.textContent="";const l=document.createElement("img");l.src=`data:${n};base64,${i}`;if(typeof o==="number"){l.height=o}if(typeof s==="number"){l.width=s}if(r==="light"){l.classList.add("jp-needs-light-background")}else if(r==="dark"){l.classList.add("jp-needs-dark-background")}if(a===true){l.classList.add("jp-mod-unconfined")}t.appendChild(l)}async function u(e){const{host:t,source:n,shouldTypeset:i,latexTypesetter:s,resolver:o}=e;t.textContent=n;if(i&&s){const e=s.typeset(t);if(e instanceof Promise){e.then((()=>E(t,o))).catch(console.warn)}else{E(t,o)}}}async function p(e){var t;const{host:n,source:i,markdownParser:s,...o}=e;if(!i){n.textContent="";return}let r="";if(s){const e=(0,d.r)(i);r=await s.render(e["text"]);r=(0,d.H)(r,e["math"])}else{r=`
    ${i}
    `}await c({host:n,source:r,...o});M.headerAnchors(n,(t=e.sanitizer.allowNamedProperties)!==null&&t!==void 0?t:false)}(function(e){function t(e){var t;return((t=e.textContent)!==null&&t!==void 0?t:"").replace(/ /g,"-")}e.createHeaderId=t})(p||(p={}));async function m(e){let{host:t,source:n,trusted:i,unconfined:s}=e;if(!n){t.textContent="";return}if(!i){t.textContent="Cannot display an untrusted SVG. Maybe you need to run the cell?";return}const o="]+xmlns=[^>]+svg";if(n.search(o)<0){n=n.replace("(?:[a-zA-Z][a-zA-Z0-9+.-]{2,"+t+"}:\\/\\/|data:|www\\.)[^\\s"+n+'"]{2,}[^\\s'+n+"\"'(){}\\[\\],:;.!?])","ug");const i=/(?:[a-zA-Z]:(?:(?:\\|\/)[\w\.-]*)+)/;const s=/(?:(?:\~|\.)(?:(?:\\|\/)[\w\.-]*)+)/;const o=new RegExp(`(${i.source}|${s.source})`);const r=/((?:\~|\.)?(?:\/[\w\.-]*)+)/;const a=/(?:(?:\:|", line )(?[\d]+))?(?:\:(?[\d]+))?/;const l=navigator.userAgent.indexOf("Windows")>=0;e.pathLinkRegex=new RegExp(`(?${l?o.source:r.source})${a.source}`,"g")})(g||(g={}));class f{constructor(){this.regex=g.webLinkRegex}createAnchor(e,t){const n=document.createElement("a");n.href=e.startsWith("www.")?"https://"+e:e;n.rel="noopener";n.target="_blank";n.appendChild(document.createTextNode(t));return n}processPath(e){const t=e.slice(-1);const n=[">","<"].indexOf(t)!==-1;const i=n?e.length-1:e.length;e=e.slice(0,i);return e}processLabel(e){return this.processPath(e)}}class v{constructor(){this.regex=g.pathLinkRegex}createAnchor(e,t,n){const i=document.createElement("a");i.dataset.path=e;const s=parseInt(n["line"],10);let o=!isNaN(s)?`line=${s-1}`:"";i.dataset.locator=o;i.appendChild(document.createTextNode(t));return i}}function _(e,t){const n=[];if(t.checkWeb){n.push(new f)}if(t.checkPaths){n.push(new v)}const i=[];const s=(e,t)=>{if(t>=n.length){i.push(document.createTextNode(e));return}const o=n[t];let r;let a=0;const l=o.regex;l.lastIndex=0;while(null!=(r=l.exec(e))){const n=e.substring(a,r.index);if(n){s(n,t+1)}const{path:l,...d}=r.groups;const c=o.processPath?o.processPath(l):l;const h=o.processLabel?o.processLabel(r[0]):r[0];i.push(o.createAnchor(c,h,d));a=r.index+h.length}const d=e.substring(a);if(d){s(d,t+1)}};s(e,0);return i}function b(e,t){var n,i;const s=e.cloneNode();s.textContent=(n=e.textContent)===null||n===void 0?void 0:n.slice(0,t);const o=e.cloneNode();o.textContent=(i=e.textContent)===null||i===void 0?void 0:i.slice(t);return{pre:s,post:o}}function*y(e){var t;let n=0;let i;for(let s of e){i=n+(((t=s.textContent)===null||t===void 0?void 0:t.length)||0);yield{node:s,start:n,end:i,isText:s.nodeType===Node.TEXT_NODE};n=i}}function*w(e,t){var n,i;let s=y(e);let o=y(t);let r=s.next();let a=o.next();while(!r.done&&!a.done){let e=r.value;let t=a.value;if(e.isText&&e.start<=t.start&&e.end>=t.end){yield[null,t.node];a=o.next()}else if(t.isText&&t.start<=e.start&&t.end>=e.end){yield[e.node,null];r=s.next()}else{if(e.end===t.end&&e.start===t.start){yield[e.node,t.node];r=s.next();a=o.next()}else if(e.end>t.end){let{pre:i,post:s}=b(e.node,t.end-e.start);if(t.starte.end){let{pre:n,post:o}=b(t.node,e.end-t.start);if(e.starte.cloneNode(true)))})}else{e=[document.createTextNode(l)]}const r=Array.from(d.childNodes);m=T(r,e)}else{m=document.createElement("pre")}s.appendChild(m)}function k(e,t){if(!e){return null}if(t.lengthc(e,t,n))))}e.handlePaths=o;function r(e,t){const n=["h1","h2","h3","h4","h5","h6"];for(const i of n){const n=e.getElementsByTagName(i);for(let e=0;e{const s=decodeURIComponent(i);if(n){n.handleLink(e,s,r)}return t.getDownloadUrl(i)})).then((t=>{e.href=t+r})).catch((t=>{e.href=""}))}async function c(e,t,n){let s=e.dataset.path||"";let o=e.dataset.locator?"#"+e.dataset.locator:"";delete e.dataset.path;delete e.dataset.locator;const r=true;const a=t.isLocal?t.isLocal(s,r):i.URLExt.isLocal(s,r);if(!s||!a||!t.resolvePath||!n||!n.handlePath){e.replaceWith(...e.childNodes);return}try{const i=await t.resolvePath(s);if(!i){console.log("Path resolution bailing: does not exist");return}n.handlePath(e,i.path,i.scope,o);e.href=i.path+o}catch(l){console.warn("Path anchor error:",l);e.href="#linking-failed-see-console"}}const h=["ansi-black","ansi-red","ansi-green","ansi-yellow","ansi-blue","ansi-magenta","ansi-cyan","ansi-white","ansi-black-intense","ansi-red-intense","ansi-green-intense","ansi-yellow-intense","ansi-blue-intense","ansi-magenta-intense","ansi-cyan-intense","ansi-white-intense"];function u(e,t,n,i,s,o,r){if(e){const a=[];const l=[];if(i&&typeof t==="number"&&0<=t&&t<8){t+=8}if(o){[t,n]=[n,t]}if(typeof t==="number"){a.push(h[t]+"-fg")}else if(t.length){l.push(`color: rgb(${t})`)}else if(o){a.push("ansi-default-inverse-fg")}if(typeof n==="number"){a.push(h[n]+"-bg")}else if(n.length){l.push(`background-color: rgb(${n})`)}else if(o){a.push("ansi-default-inverse-bg")}if(i){a.push("ansi-bold")}if(s){a.push("ansi-underline")}if(a.length||l.length){r.push("");r.push(e);r.push("")}else{r.push(e)}}}function m(e){let t;let n;let i;const s=e.shift();if(s===2&&e.length>=3){t=e.shift();n=e.shift();i=e.shift();if([t,n,i].some((e=>e<0||255=1){const s=e.shift();if(s<0){throw new RangeError("Color index must be >= 0")}else if(s<16){return s}else if(s<232){t=Math.floor((s-16)/36);t=t>0?55+t*40:0;n=Math.floor((s-16)%36/6);n=n>0?55+n*40:0;i=(s-16)%6;i=i>0?55+i*40:0}else if(s<256){t=n=i=(s-232)*10+8}else{throw new RangeError("Color index must be < 256")}}else{throw new RangeError("Invalid extended color specification")}return[t,n,i]}function g(e){const t=/\x1b\[(.*?)([@-~])/g;let n=[];let i=[];let s=false;let o=false;let r=false;let a;const d=[];const c=[];let h=0;e=l()(e);e+="";while(a=t.exec(e)){if(a[2]==="m"){const e=a[1].split(";");for(let t=0;t{"use strict";n.d(t,{D8:()=>l,N3:()=>o,co:()=>a,nc:()=>r});var i=n(5592);var s=n.n(i);const o=new i.Token("@jupyterlab/rendermime:IRenderMimeRegistry",'A service for the rendermime registry for the application. Use this to create renderers for various mime-types in your extension. Many times it will be easier to create a "mime renderer extension" rather than using this service directly.');const r=new i.Token("@jupyterlab/rendermime:ILatexTypesetter","A service for the LaTeX typesetter for the application. Use this if you want to typeset math in your extension.");const a=new i.Token("@jupyterlab/rendermime:IMarkdownParser","A service for rendering markdown syntax as HTML content.");const l=new i.Token("@jupyterlab/rendermime:IUrlResolverFactory","A factory for resolver of asset URLs.")},18901:(e,t,n)=>{"use strict";n.d(t,{A6:()=>f,C6:()=>d,Kc:()=>h,TH:()=>c,TS:()=>v,Vx:()=>g,Yk:()=>m,jL:()=>p,nZ:()=>l,vf:()=>u});var i=n(34881);var s=n.n(i);var o=n(27518);var r=n.n(o);var a=n(11364);class l extends o.Widget{constructor(e){var t,n;super();this.mimeType=e.mimeType;this.sanitizer=e.sanitizer;this.resolver=e.resolver;this.linkHandler=e.linkHandler;this.translator=(t=e.translator)!==null&&t!==void 0?t:i.nullTranslator;this.latexTypesetter=e.latexTypesetter;this.markdownParser=(n=e.markdownParser)!==null&&n!==void 0?n:null;this.node.dataset["mimeType"]=this.mimeType}async renderModel(e,t){if(!t){while(this.node.firstChild){this.node.removeChild(this.node.firstChild)}}this.toggleClass("jp-mod-trusted",e.trusted);await this.render(e);const{fragment:n}=e.metadata;if(n){this.setFragment(n)}}setFragment(e){}}class d extends l{constructor(e){super(e);this.addClass("jp-RenderedHTMLCommon")}setFragment(e){let t;try{t=this.node.querySelector(e.startsWith("#")?`#${CSS.escape(e.slice(1))}`:e)}catch(n){console.warn("Unable to set URI fragment identifier.",n)}if(t){t.scrollIntoView()}}}class c extends d{constructor(e){super(e);this._rendered=Promise.resolve();this.addClass("jp-RenderedHTML")}render(e){return this._rendered=a.e2({host:this.node,source:String(e.data[this.mimeType]),trusted:e.trusted,resolver:this.resolver,sanitizer:this.sanitizer,linkHandler:this.linkHandler,shouldTypeset:this.isAttached,latexTypesetter:this.latexTypesetter,translator:this.translator})}onAfterAttach(e){this._rendered.then((()=>{if(this.latexTypesetter){_.typeset(this.node,this.latexTypesetter,this.resolver)}})).catch(console.warn)}}class h extends l{constructor(e){super(e);this._rendered=Promise.resolve();this.addClass("jp-RenderedLatex")}render(e){return this._rendered=a.zG({host:this.node,source:String(e.data[this.mimeType]),shouldTypeset:this.isAttached,latexTypesetter:this.latexTypesetter,resolver:this.resolver})}onAfterAttach(e){this._rendered.then((()=>{if(this.latexTypesetter){_.typeset(this.node,this.latexTypesetter,this.resolver)}})).catch(console.warn)}}class u extends l{constructor(e){super(e);this.addClass("jp-RenderedImage")}render(e){const t=e.metadata[this.mimeType];return a.mx({host:this.node,mimeType:this.mimeType,source:String(e.data[this.mimeType]),width:t&&t.width,height:t&&t.height,needsBackground:e.metadata["needs_background"],unconfined:t&&t.unconfined})}}class p extends d{constructor(e){super(e);this._rendered=Promise.resolve();this.addClass("jp-RenderedMarkdown")}render(e){return this._rendered=a.Gc({host:this.node,source:String(e.data[this.mimeType]),trusted:e.trusted,resolver:this.resolver,sanitizer:this.sanitizer,linkHandler:this.linkHandler,shouldTypeset:this.isAttached,latexTypesetter:this.latexTypesetter,markdownParser:this.markdownParser,translator:this.translator})}async renderModel(e){await super.renderModel(e,true)}onAfterAttach(e){this._rendered.then((()=>{if(this.latexTypesetter){_.typeset(this.node,this.latexTypesetter,this.resolver)}})).catch(console.warn)}}class m extends l{constructor(e){super(e);this._rendered=Promise.resolve();this.addClass("jp-RenderedSVG")}render(e){const t=e.metadata[this.mimeType];return this._rendered=a.d8({host:this.node,source:String(e.data[this.mimeType]),trusted:e.trusted,unconfined:t&&t.unconfined,translator:this.translator})}onAfterAttach(e){this._rendered.then((()=>{if(this.latexTypesetter){_.typeset(this.node,this.latexTypesetter,this.resolver)}})).catch(console.warn)}}class g extends l{constructor(e){super(e);this.addClass("jp-RenderedText")}render(e){return a.S5({host:this.node,sanitizer:this.sanitizer,source:String(e.data[this.mimeType]),translator:this.translator})}}class f extends l{constructor(e){super(e);this.addClass("jp-RenderedText")}render(e){return a.vr({host:this.node,sanitizer:this.sanitizer,source:String(e.data[this.mimeType]),linkHandler:this.linkHandler,resolver:this.resolver,translator:this.translator})}}class v extends l{constructor(e){super(e);this.addClass("jp-RenderedJavaScript")}render(e){const t=this.translator.load("jupyterlab");return a.S5({host:this.node,sanitizer:this.sanitizer,source:t.__("JavaScript output is disabled in JupyterLab"),translator:this.translator})}}var _;(function(e){function t(e,t,n){const i=t.typeset(e);if(i instanceof Promise){i.then((()=>a.N1(e,n))).catch(console.warn)}else{a.N1(e,n)}}e.typeset=t})(_||(_={}))},5893:(e,t,n)=>{"use strict";var i=n(10395);var s=n(97913);var o=n(85072);var r=n.n(o);var a=n(97825);var l=n.n(a);var d=n(77659);var c=n.n(d);var h=n(55056);var u=n.n(h);var p=n(10540);var m=n.n(p);var g=n(41113);var f=n.n(g);var v=n(30354);var _={};_.styleTagTransform=f();_.setAttributes=u();_.insert=c().bind(null,"head");_.domAPI=l();_.insertStyleElement=m();var b=r()(v.A,_);const y=v.A&&v.A.locals?v.A.locals:undefined},51883:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CommandIDs:()=>k,default:()=>D});var i=n(88617);var s=n(38850);var o=n(58719);var r=n(11927);var a=n(78629);var l=n(34881);var d=n(4073);var c=n(40959);var h=n(49278);var u=n(26568);var p=n(2336);var m=n(44914);var g=n.n(m);const f="jp-mod-kernel";const v="jp-mod-kernelspec";const _="jp-mod-kernel-widget";const b="jp-RunningSessions-item-label-kernel-id";async function y(e,t,n){const{commands:i,contextMenu:o,serviceManager:r}=n;const{kernels:a,kernelspecs:l,sessions:p}=r;const{runningChanged:m,RunningKernel:v}=w;const _=new u.Throttler((()=>m.emit(undefined)),100);const b=t.load("jupyterlab");const y=b.__("Shut Down Unused");let C=false;const x=new u.Throttler(j,1e4);a.runningChanged.connect((()=>{void _.invoke();void x.invoke()}));p.runningChanged.connect((()=>void _.invoke()));await Promise.all([a.ready,l.ready,p.ready]);function S(){return Array.from(a.running()).filter((e=>{var t;return((t=e.connections)!==null&&t!==void 0?t:1)<1}))}async function j(){const e=C;C=S().length>0;if(e!==C){i.notifyCommandChanged(k.kernelShutDownUnused)}}i.addCommand(k.kernelShutDownUnused,{label:e=>e.toolbar?"":y,icon:e=>e.toolbar?d.cleaningIcon:undefined,execute:async()=>{const e=S();if(e.length===0){return}const t=await(0,s.showDialog)({title:y,body:g().createElement(g().Fragment,null,b.__("Are you sure you want to shut down the following unused kernels?"),g().createElement("ul",null,e.map((e=>g().createElement("li",{key:e.id},b.__("%1 (%2)",e.name,e.id.slice(0,8))))))),buttons:[s.Dialog.cancelButton(),s.Dialog.warnButton({label:y})]});if(t.button.accept){await Promise.allSettled(e.map((e=>h.KernelAPI.shutdownKernel(e.id))));await Promise.all([a.refreshRunning(),p.refreshRunning()])}},isEnabled:()=>C,describedBy:{args:{type:"object",properties:{toolbar:{type:"boolean",description:b.__("Whether executed from toolbar")}}}}});e.add({name:b.__("Kernels"),supportsMultipleViews:true,running:e=>{var t;const n=new Map;for(const o of a.running()){const s=(t=n.get(o.name))!==null&&t!==void 0?t:[];n.set(o.name,s);s.push(new v({commands:i,kernel:o,kernels:a,sessions:p,trans:b,mode:e.mode}))}const s=Array.from(n.entries()).map((([e,t])=>{var n;return new w.KernelSpecItem({name:e,kernels:t,spec:(n=l.specs)===null||n===void 0?void 0:n.kernelspecs[e],trans:b})}));return e.mode==="tree"?s:s.map((e=>e.children.map((e=>{var t;return(t=e.children)!==null&&t!==void 0?t:[]})).flat())).flat()},shutdownAll:()=>a.shutdownAll(),refreshRunning:()=>Promise.all([a.refreshRunning(),p.refreshRunning()]),runningChanged:m,shutdownLabel:b.__("Shut Down Kernel"),shutdownAllLabel:b.__("Shut Down All"),shutdownAllConfirmationText:()=>b._n("Are you sure you want to permanently shut down the running kernel?","Are you sure you want to permanently shut down the %1 running kernels?",a.runningCount),toolbarButtons:[new d.CommandToolbarButton({commands:i,id:k.kernelShutDownUnused,caption:y,args:{toolbar:true}})]});const I=e=>e.classList.contains(f);i.addCommand(k.kernelNewConsole,{icon:d.consoleIcon,label:b.__("New Console for Kernel"),execute:e=>{var t;const s=n.contextMenuHitTest(I);const o=(t=e.id)!==null&&t!==void 0?t:s===null||s===void 0?void 0:s.dataset["context"];if(o){return i.execute("console:create",{kernelPreference:{id:o}})}},describedBy:{args:{type:"object",properties:{id:{type:"string",description:b.__("Kernel ID to create console for")}}}}});i.addCommand(k.kernelNewNotebook,{icon:d.notebookIcon,label:b.__("New Notebook for Kernel"),execute:e=>{var t;const s=n.contextMenuHitTest(I);const o=(t=e.id)!==null&&t!==void 0?t:s===null||s===void 0?void 0:s.dataset["context"];if(o){return i.execute("notebook:create-new",{kernelId:o})}},describedBy:{args:{type:"object",properties:{id:{type:"string",description:b.__("Kernel ID to create notebook for")}}}}});i.addCommand(k.kernelOpenSession,{icon:e=>e.type==="console"?d.consoleIcon:e.type==="notebook"?d.notebookIcon:undefined,isEnabled:({path:e,type:t})=>!!t||e!==undefined,label:({name:e,path:t})=>e||c.PathExt.basename(t||b.__("Unknown Session")),execute:({path:e,type:t})=>{if(!t||e===undefined){return}const n=t==="console"?"console:open":"docmanager:open";return i.execute(n,{path:e})},describedBy:{args:{type:"object",properties:{path:{type:"string",description:b.__("Path to the session to open")},type:{type:"string",description:b.__("Type of session (console or notebook)")},name:{type:"string",description:b.__("Name of the session")}}}}});i.addCommand(k.kernelShutDown,{icon:d.closeIcon,label:b.__("Shut Down Kernel"),execute:e=>{var t;const i=n.contextMenuHitTest(I);const s=(t=e.id)!==null&&t!==void 0?t:i===null||i===void 0?void 0:i.dataset["context"];if(s){return a.shutdown(s)}},describedBy:{args:{type:"object",properties:{id:{type:"string",description:b.__("Kernel ID to shut down")}}}}});const T=[];o.opened.connect((async()=>{var e,t,i;const s=(t=(e=o.menu.items.find((e=>{var t;return e.type==="submenu"&&((t=e.submenu)===null||t===void 0?void 0:t.id)==="jp-contextmenu-connected-sessions"})))===null||e===void 0?void 0:e.submenu)!==null&&t!==void 0?t:null;if(!s){return}T.forEach((e=>e.dispose()));T.length=0;s.clearItems();const r=n.contextMenuHitTest(I);const a=r===null||r===void 0?void 0:r.dataset["context"];if(!a){return}const l=k.kernelOpenSession;for(const n of p.running()){if(a===((i=n.kernel)===null||i===void 0?void 0:i.id)){const{name:e,path:t,type:i}=n;T.push(s.addItem({command:l,args:{name:e,path:t,type:i}}))}}}))}var w;(function(e){class t{constructor(e){this._name=e.name;this.className=v;this._kernels=e.kernels;this.spec=e.spec||null;this.trans=e.trans}icon(){const{spec:e}=this;if(!e||!e.resources){return d.jupyterIcon}return e.resources["logo-svg"]||e.resources["logo-64x64"]||e.resources["logo-32x32"]}label(){const{_name:e,spec:t}=this;return(t===null||t===void 0?void 0:t.display_name)||e}get children(){return this._kernels}}e.KernelSpecItem=t;class n{constructor(e){this.className=f;this.commands=e.commands;this.kernel=e.kernel;this.context=this.kernel.id;this.kernels=e.kernels;this.sessions=e.sessions;this.trans=e.trans;this._mode=e.mode}get children(){var e;const t=[];const n=k.kernelOpenSession;const{commands:i}=this;for(const s of this.sessions.running()){if(this.kernel.id===((e=s.kernel)===null||e===void 0?void 0:e.id)){const{name:e,path:o,type:r}=s;t.push({className:_,context:this.kernel.id,open:()=>void i.execute(n,{name:e,path:o,type:r}),icon:()=>r==="console"?d.consoleIcon:r==="notebook"?d.notebookIcon:d.jupyterIcon,label:()=>{if(this._mode==="tree"){return e}const t=this.kernel.id.split("-")[0];return g().createElement(g().Fragment,null,e," ",g().createElement("span",{className:b},"(",t,")"))},labelTitle:()=>o,name:()=>e})}}return t}shutdown(){return this.kernels.shutdown(this.kernel.id)}icon(){return d.kernelIcon}label(){const{kernel:e}=this;const t=e.id.split("-")[0];return g().createElement(g().Fragment,null,this._summary," ",g().createElement("span",{className:b},"(",t,")"))}labelTitle(){var e;const{trans:t}=this;const{id:n}=this.kernel;const i=[`${this._summary}: ${n}`];for(const s of this.sessions.running()){if(this.kernel.id===((e=s.kernel)===null||e===void 0?void 0:e.id)){const{path:e,type:n}=s;i.push(t.__(`%1\nPath: %2`,n,e))}}return i.join("\n\n")}get _summary(){const e=this.children;if(e.length===0){return this.trans.__("No sessions connected")}else if(e.length==1){return e[0].name()}else{return this.trans.__("%1 and %2 more",e[0].name(),e.length-1)}}}e.RunningKernel=n;e.runningChanged=new p.Signal({})})(w||(w={}));var C=n(93067);class x{constructor(e){this._tabsChanged=new p.Signal(this);this._widgets=[];this._labShell=e;this._labShell.layoutModified.connect(this._emitTabsChanged,this)}get tabsChanged(){return this._tabsChanged}addWidget(e){e.title.changed.connect(this._emitTabsChanged,this);this._widgets.push(e)}_emitTabsChanged(){this._widgets.forEach((e=>{e.title.changed.disconnect(this._emitTabsChanged,this)}));this._widgets=[];this._tabsChanged.emit(void 0)}}function S(e,t,n){const i=new x(n);const s=t.load("jupyterlab");e.add({name:s.__("Open Tabs"),supportsMultipleViews:false,running:()=>Array.from(n.widgets("main")).map((e=>{i.addWidget(e);return new o(e)})),shutdownAll:()=>{const e=Array.from(n.widgets("main"));for(const t of e){t.close()}},refreshRunning:()=>void 0,runningChanged:i.tabsChanged,shutdownLabel:s.__("Close"),shutdownAllLabel:s.__("Close All"),shutdownAllConfirmationText:s.__("Are you sure you want to close all open tabs?")});class o{constructor(e){this._widget=e}open(){n.activateById(this._widget.id)}shutdown(){this._widget.close()}icon(){const e=this._widget.title.icon;return e instanceof d.LabIcon?e:d.fileIcon}label(){return this._widget.title.label}labelTitle(){let e;if(this._widget instanceof C.DocumentWidget){e=this._widget.context.path}else{e=this._widget.title.label}return e}}}function j(e,t,n,i,s){const o=s.load("jupyterlab");e.add({name:o.__("Recently Closed"),supportsMultipleViews:false,running:()=>t.recentlyClosed.map((e=>new r(e))),shutdownAll:()=>{for(const e of t.recentlyClosed){t.removeRecent(e,"closed")}},refreshRunning:()=>void 0,runningChanged:t.changed,shutdownLabel:o.__("Forget"),shutdownAllLabel:o.__("Forget All"),shutdownAllConfirmationText:o.__("Are you sure you want to clear recently closed tabs?")});class r{constructor(e){this._recent=e}async open(){const e=this._recent;const i=await t.validate(e);if(!i){return}await n.execute("docmanager:open",{path:e.path,factory:e.factory});t.removeRecent(e,"closed")}shutdown(){t.removeRecent(this._recent,"closed")}icon(){if(!this._recent.factory){return d.fileIcon}const e=i.getFileTypesForPath(this._recent.path);for(const n of e){const e=n.icon;if(e instanceof d.LabIcon){return e}}const t=i.getWidgetFactory(this._recent.factory);if(t){for(const e of t.fileTypes){const t=i.getFileType(e);const n=t===null||t===void 0?void 0:t.icon;if(n instanceof d.LabIcon){return n}}}return d.fileIcon}label(){return c.PathExt.basename(this._recent.path)}labelTitle(){return this._recent.path}}}var k;(function(e){e.kernelNewConsole="running:kernel-new-console";e.kernelNewNotebook="running:kernel-new-notebook";e.kernelOpenSession="running:kernel-open-session";e.kernelShutDown="running:kernel-shut-down";e.kernelShutDownUnused="running:kernel-shut-down-unused";e.showPanel="running:show-panel";e.showModal="running:show-modal"})(k||(k={}));const I={id:"@jupyterlab/running-extension:plugin",description:"Provides the running session managers.",provides:o.IRunningSessionManagers,requires:[l.ITranslator],optional:[i.ILabShell],autoStart:true,activate:(e,t,n)=>{const i=new o.RunningSessionManagers;if(n){S(i,t,n)}void y(i,t,e);return i}};const T={id:"@jupyterlab/running-extension:sidebar",description:"Provides the running session sidebar.",provides:o.IRunningSessionSidebar,requires:[o.IRunningSessionManagers,l.ITranslator],optional:[i.ILayoutRestorer,a.IStateDB],autoStart:true,activate:(e,t,n,i,s)=>{const r=n.load("jupyterlab");const a=new o.RunningSessions(t,n,s);a.id="jp-running-sessions";a.title.caption=r.__("Running Terminals and Kernels");a.title.icon=d.runningIcon;a.node.setAttribute("role","region");a.node.setAttribute("aria-label",r.__("Running Sessions section"));if(i){i.add(a,"running-sessions")}e.shell.add(a,"left",{rank:200,type:"Sessions and Tabs"});e.commands.addCommand(k.showPanel,{label:r.__("Sessions and Tabs"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{e.shell.activateById(a.id)}});return a}};const E={id:"@jupyterlab/running-extension:recently-closed",description:"Adds recently closed documents list.",requires:[o.IRunningSessionManagers,r.IRecentsManager,l.ITranslator],autoStart:true,activate:(e,t,n,i)=>{j(t,n,e.commands,e.docRegistry,i)}};const M={id:"@jupyterlab/running-extension:search-tabs",description:"Adds a widget to search open and closed tabs.",requires:[o.IRunningSessionManagers,l.ITranslator],optional:[s.ICommandPalette,o.IRunningSessionSidebar],autoStart:true,activate:(e,t,n,i,r)=>{const a=n.load("jupyterlab");e.commands.addCommand(k.showModal,{execute:()=>{const e=new o.SearchableSessions(t,n);const i=new s.Dialog({title:a.__("Tabs and Running Sessions"),body:e,buttons:[s.Dialog.okButton({})],hasClose:true});i.addClass("jp-SearchableSessions-modal");return i.launch()},label:a.__("Search Tabs and Running Sessions"),describedBy:{args:{type:"object",properties:{}}}});if(i){i.addItem({command:k.showModal,category:a.__("Running")})}if(r){const t=new d.CommandToolbarButton({commands:e.commands,id:k.showModal,icon:d.launcherIcon,label:""});r.toolbar.addItem("open-as-modal",t)}}};const D=[I,T,E,M]},54289:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(79010);var a=n(3579);var l=n(41603);var d=n(94780)},19503:(e,t,n)=>{"use strict";n.r(t);n.d(t,{IRunningSessionManagers:()=>B,IRunningSessionSidebar:()=>O,RunningSessionManagers:()=>F,RunningSessions:()=>q,SearchableSessions:()=>J,SearchableSessionsList:()=>G});var i=n(54158);var s=n.n(i);var o=n(38850);var r=n.n(o);var a=n(34881);var l=n.n(a);var d=n(4073);var c=n.n(d);var h=n(5592);var u=n.n(h);var p=n(90044);var m=n.n(p);var g=n(76326);var f=n.n(g);var v=n(2336);var _=n.n(v);var b=n(27518);var y=n.n(b);var w=n(44914);var C=n.n(w);const x="jp-RunningSessions";const S="jp-SearchableSessions";const j="jp-RunningSessions-section";const k="jp-RunningSessions-sectionContainer";const I="jp-RunningSessions-item";const T="jp-RunningSessions-itemLabel";const E="jp-RunningSessions-itemDetail";const M="jp-RunningSessions-itemShutdown";const D="jp-RunningSessions-shutdownAll";const A="jp-RunningSessions-icon";const P="jp-mod-running-list-view";const L="jp-RunningSessions-viewButton";const R="jp-RunningSessions-collapseButton";const N="jp-running-sessions";const B=new h.Token("@jupyterlab/running:IRunningSessionManagers","A service to add running session managers.");const O=new h.Token("@jupyterlab/running:IRunningSessionsSidebar","A token allowing to modify the running sessions sidebar.");class F{constructor(){this._added=new v.Signal(this);this._managers=[]}get added(){return this._added}add(e){this._managers.push(e);this._added.emit(e);return new p.DisposableDelegate((()=>{const t=this._managers.indexOf(e);if(t>-1){this._managers.splice(t,1)}}))}items(){return this._managers}}function z(e){var t,n;const{runningItem:s}=e;const[o,r]=C().useState(false);const l=(0,w.useRef)(false);const c=[I];const h=(t=s.detail)===null||t===void 0?void 0:t.call(s);const u=s.icon();const p=s.labelTitle?s.labelTitle():"";const m=e.translator||a.nullTranslator;const g=m.load("jupyterlab");const f=e.shutdownItemIcon||d.closeIcon;const v=(n=typeof e.shutdownLabel==="function"?e.shutdownLabel(s):e.shutdownLabel)!==null&&n!==void 0?n:g.__("Shut Down");const _=(0,w.useCallback)((e=>{var t;l.current=true;e.preventDefault();(t=s.shutdown)===null||t===void 0?void 0:t.call(s)}),[s,l]);const b=s.children;const y=!!(b===null||b===void 0?void 0:b.length);const x=(0,w.useCallback)((e=>{if(l.current){return}const t=(0,d.getTreeItemElement)(e.target);if(e.currentTarget!==t){return}if(y){r(!o)}}),[y,o,l]);e.collapseToggled.connect(((e,t)=>r(t)));if(s.className){c.push(s.className)}return C().createElement(C().Fragment,null,C().createElement(i.TreeItem,{className:`${c.join(" ")} jp-TreeItem nested`,onClick:x,"data-context":s.context||"",expanded:!o},u?typeof u==="string"?C().createElement("img",{src:u,className:A,slot:"start"}):C().createElement(u.react,{slot:"start",tag:"span",className:A}):undefined,C().createElement("span",{className:T,title:p,onClick:s.open&&(()=>s.open())},s.label()),h&&C().createElement("span",{className:E},h),s.shutdown&&C().createElement(i.Button,{appearance:"stealth",className:M,onClick:_,title:v,slot:"end"},C().createElement(f.react,{tag:null})),b&&C().createElement(W,{runningItems:b,shutdownItemIcon:f,translator:m,collapseToggled:e.collapseToggled})))}function W(e){const t=e.filter;const n=t?e.runningItems.map((e=>({item:e,score:t(e)}))).filter((({score:e})=>e!==null)).sort(((e,t)=>e.score.score-t.score.score)).map((({item:e})=>e)):e.runningItems;return C().createElement(C().Fragment,null,n.map(((t,n)=>C().createElement(z,{child:e.child,key:n,runningItem:t,shutdownLabel:e.shutdownLabel,shutdownItemIcon:e.shutdownItemIcon,translator:e.translator,collapseToggled:e.collapseToggled}))))}class H extends d.ReactWidget{constructor(e){super();this._filterFn=e=>({score:0});this._filterChanged=new v.Signal(this);this.filter=this.filter.bind(this);this._updateFilter=this._updateFilter.bind(this);this._trans=e.load("jupyterlab");this.addClass("jp-SearchableSessions-filter")}get filterChanged(){return this._filterChanged}render(){return C().createElement(d.FilterBox,{placeholder:this._trans.__("Search"),updateFilter:this._updateFilter,useFuzzyFilter:false,caseSensitive:false})}filter(e){var t;const n=[this._getTextContent(e.label())];for(const i of(t=e.children)!==null&&t!==void 0?t:[]){n.push(this._getTextContent(i.label()))}return this._filterFn(n.join(" "))}_getTextContent(e){if(typeof e==="string"){return e}if(typeof e==="number"){return""+e}if(typeof e==="boolean"){return""+e}if(Array.isArray(e)){return e.map((e=>this._getTextContent(e))).join(" ")}if(e&&(0,w.isValidElement)(e)){return e.props.children.map((e=>this._getTextContent(e))).join(" ")}return""}_updateFilter(e){this._filterFn=e;this._filterChanged.emit()}}class V extends d.ReactWidget{constructor(e){super();this._options=e;this._update=new v.Signal(this);e.manager.runningChanged.connect(this._emitUpdate,this);if(e.filterProvider){e.filterProvider.filterChanged.connect(this._emitUpdate,this)}}get mode(){return this._mode}set mode(e){if(this._mode!==e){this._mode=e;this._update.emit()}}dispose(){v.Signal.clearData(this);super.dispose()}onBeforeShow(e){super.onBeforeShow(e);this._update.emit()}render(){const e=this._options;let t=true;return C().createElement(d.UseSignal,{signal:this._update},(()=>{var n;if(t){t=false}else{e.runningItems=e.manager.running({mode:this.mode})}const s=["jp-TreeView"];if(this.mode==="list"){s.push("jp-mod-flat")}return C().createElement("div",{className:k},C().createElement(i.TreeView,{className:s.join(" ")},C().createElement(W,{runningItems:e.runningItems,shutdownLabel:e.manager.shutdownLabel,shutdownItemIcon:e.manager.shutdownItemIcon,filter:(n=e.filterProvider)===null||n===void 0?void 0:n.filter,translator:e.translator,collapseToggled:e.collapseToggled})))}))}_emitUpdate(){if(!this.isVisible){return}this._update.emit()}}class U extends d.PanelWithToolbar{constructor(e){var t;super();this._buttons=null;this._listView=false;this._collapseToggled=new v.Signal(this);this._viewChanged=new v.Signal(this);this._listView=((t=e.viewMode)!==null&&t!==void 0?t:"tree")==="list";this._manager=e.manager;this._filterProvider=e.filterProvider;const n=e.translator||a.nullTranslator;this._trans=n.load("jupyterlab");this.addClass(j);this.title.label=e.manager.name;this._manager.runningChanged.connect(this._onListChanged,this);if(e.filterProvider){e.filterProvider.filterChanged.connect(this._onListChanged,this)}this._updateEmptyClass();const i=e.manager.running({mode:e.manager.supportsMultipleViews&&!this._listView?"tree":"list"});if(e.showToolbar!==false){this._initializeToolbar(i)}this._listWidget=new V({runningItems:i,collapseToggled:this._collapseToggled,...e});this._listWidget.mode=e.manager.supportsMultipleViews&&!this._listView?"tree":"list";this.addWidget(this._listWidget)}toggleListView(e){const t=typeof e!=="undefined"?e:!this._listView;this._listView=t;if(this._buttons){const e=this._buttons["switch-view"];e.pressed=t}this._collapseToggled.emit(false);if(this._manager.supportsMultipleViews===undefined){this.toggleClass(P,t)}this._updateButtons();this._listWidget.mode=this._manager.supportsMultipleViews&&!this._listView?"tree":"list";this._viewChanged.emit({mode:t?"list":"tree"})}dispose(){if(this.isDisposed){return}v.Signal.clearData(this);super.dispose()}get _shutdownAllLabel(){return this._manager.shutdownAllLabel||this._trans.__("Shut Down All")}_initializeToolbar(e){const t=e.length>0;const n=this._shutdownAllLabel;const i=`${n}?`;const s=()=>{var e;const t=(e=typeof this._manager.shutdownAllConfirmationText==="function"?this._manager.shutdownAllConfirmationText():this._manager.shutdownAllConfirmationText)!==null&&e!==void 0?e:`${n} ${this._manager.name}`;void(0,o.showDialog)({title:i,body:t,buttons:[o.Dialog.cancelButton(),o.Dialog.warnButton({label:n})]}).then((e=>{if(e.button.accept){this._manager.shutdownAll()}}))};const r=new d.ToolbarButton({label:n,className:`${D}${!t?" jp-mod-disabled":""}`,enabled:t,onClick:s.bind(this)});const a=new d.ToolbarButton({className:L,enabled:t,icon:d.tableRowsIcon,pressedIcon:d.treeViewIcon,onClick:()=>this.toggleListView(),tooltip:this._trans.__("Switch to List View"),pressedTooltip:this._trans.__("Switch to Tree View")});const l=new d.ToolbarButton({className:R,enabled:t,icon:d.collapseAllIcon,pressedIcon:d.expandAllIcon,onClick:()=>{const e=!l.pressed;this._collapseToggled.emit(e);l.pressed=e},tooltip:this._trans.__("Collapse All"),pressedTooltip:this._trans.__("Expand All")});this._buttons={"switch-view":a,"collapse-expand":l,"shutdown-all":r};this._updateButtons();this._manager.runningChanged.connect(this._updateButtons,this);if(this._manager.toolbarButtons){this._manager.toolbarButtons.forEach((e=>this.toolbar.addItem(e instanceof d.CommandToolbarButton?e.commandId:e.id,e)))}for(const o of["collapse-expand","switch-view","shutdown-all"]){this.toolbar.addItem(o,this._buttons[o])}this.toolbar.addClass("jp-RunningSessions-toolbar");this._toolbar.node.setAttribute("aria-label",this._trans.__("%1 toolbar",this.title.label))}_onListChanged(){this._updateButtons();this._updateEmptyClass()}_updateEmptyClass(){if(this._filterProvider){const e=this._manager.running({mode:this._manager.supportsMultipleViews&&!this._listView?"tree":"list"}).filter(this._filterProvider.filter);const t=e.length===0;if(t){this.node.classList.toggle("jp-mod-empty",true)}else{this.node.classList.toggle("jp-mod-empty",false)}}}get viewChanged(){return this._viewChanged}_updateButtons(){if(!this._buttons){return}let e=this._manager.running({mode:this._manager.supportsMultipleViews&&!this._listView?"tree":"list"});const t=e.length>0;const n=this._manager.supportsMultipleViews===undefined?e.filter((e=>e.children)).length!==0:this._manager.supportsMultipleViews;const i=n&&!this._buttons["switch-view"].pressed;this._buttons["switch-view"].node.style.display=n?"flex":"none";this._buttons["collapse-expand"].node.style.display=i?"flex":"none";this._buttons["collapse-expand"].enabled=t;this._buttons["switch-view"].enabled=t;this._buttons["shutdown-all"].enabled=t}}class q extends d.SidePanel{constructor(e,t,n){super();this.managers=e;this._stateDB=n!==null&&n!==void 0?n:null;this.translator=t!==null&&t!==void 0?t:a.nullTranslator;const i=this.translator.load("jupyterlab");this.addClass(x);this.toolbar.addItem("refresh",new d.ToolbarButton({tooltip:i.__("Refresh List"),icon:d.refreshIcon,onClick:()=>e.items().forEach((e=>e.refreshRunning()))}));e.items().forEach((t=>this.addSection(e,t)));e.added.connect(this.addSection,this)}dispose(){if(this.isDisposed){return}this.managers.added.disconnect(this.addSection,this);super.dispose()}async addSection(e,t){const n=new U({manager:t,translator:this.translator});this.addWidget(n);const i=await this._getState();const s=i.listViewSections;const o=t.name;if(s&&s.includes(o)){n.toggleListView(true)}n.viewChanged.connect((async(e,t)=>{await this._updateState(o,t.mode)}))}async _updateState(e,t){var n;const i=await this._getState();let s=(n=i.listViewSections)!==null&&n!==void 0?n:[];if(t==="list"&&!s.includes(e)){s.push(e)}else{s=s.filter((t=>t!==e))}const o={listViewSections:s};if(this._stateDB){await this._stateDB.save(N,o)}}async _getState(){var e;if(!this._stateDB){return{}}return(e=await this._stateDB.fetch(N))!==null&&e!==void 0?e:{}}}class $ extends U{constructor(e){super(e);const t=document.createElement("h3");t.className="jp-SearchableSessions-title";const n=t.appendChild(document.createElement("span"));n.className="jp-SearchableSessions-titleLabel";n.textContent=this.title.label;this.node.insertAdjacentElement("afterbegin",t)}}class K extends b.Widget{constructor(e){super();const t=e.load("jupyterlab");this.addClass("jp-SearchableSessions-emptyIndicator");this.node.textContent=t.__("No matches")}}class J extends b.Panel{constructor(e,t){super();this._activeIndex=0;this._translator=t!==null&&t!==void 0?t:a.nullTranslator;this.addClass(x);this.addClass(S);this._filterWidget=new H(this._translator);this.addWidget(this._filterWidget);this._list=new G(e,this._filterWidget,t);this.addWidget(this._list);this._filterWidget.filterChanged.connect((()=>{this._activeIndex=0;this._updateActive(0)}),this)}dispose(){if(this.isDisposed){return}v.Signal.clearData(this);super.dispose()}getValue(){const e=[...this.node.querySelectorAll("."+T)];const t=Math.min(Math.max(this._activeIndex,0),e.length-1);e[t].click()}handleEvent(e){switch(e.type){case"keydown":this._evtKeydown(e);break}}onAfterAttach(e){this._forceFocusInput();this.node.addEventListener("keydown",this);setTimeout((()=>{this._updateActive(0)}),0)}onAfterDetach(e){this.node.removeEventListener("keydown",this)}_forceFocusInput(){var e;(e=this._filterWidget.renderPromise)===null||e===void 0?void 0:e.then((()=>{var e;const t=this._filterWidget.node.querySelector("jp-search");const n=(e=t===null||t===void 0?void 0:t.shadowRoot)===null||e===void 0?void 0:e.querySelector("input");if(!n){console.warn("Input element not found, cannot focus");return}n.focus()})).catch(console.warn)}_evtKeydown(e){if(e.key==="ArrowDown"||e.key==="ArrowUp"){const t=e.key==="ArrowDown"?+1:-1;const n=this._updateActive(t);if(n){e.preventDefault()}}}_updateActive(e){const t=[...this.node.querySelectorAll("."+I)].filter((e=>e.checkVisibility()));if(!t.length){return false}for(const s of t){if(s.classList.contains("jp-mod-active")){s.classList.toggle("jp-mod-active",false)}}const n=this._activeIndex;let i=null;if(n===-1){i=e===+1?0:t.length-1}else{i=Math.min(Math.max(n+e,0),t.length-1)}if(i!==null){t[i].classList.add("jp-mod-active");g.ElementExt.scrollIntoViewIfNeeded(this._list.node,t[i]);this._activeIndex=i;return true}return false}}class G extends b.Panel{constructor(e,t,n){super();this._managers=e;this._translator=n!==null&&n!==void 0?n:a.nullTranslator;this._filterWidget=t;this.addClass("jp-SearchableSessions-list");this._emptyIndicator=new K(this._translator);this.addWidget(this._emptyIndicator);e.items().forEach((t=>this.addSection(e,t)));e.added.connect(this.addSection,this)}dispose(){if(this.isDisposed){return}this._managers.added.disconnect(this.addSection,this);super.dispose()}addSection(e,t){const n=new $({manager:t,translator:this._translator,showToolbar:false,filterProvider:this._filterWidget,viewMode:"list"});n.toggleListView(true);this.addWidget(n);this.addWidget(this._emptyIndicator)}}},94780:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(85072);var a=n.n(r);var l=n(97825);var d=n.n(l);var c=n(77659);var h=n.n(c);var u=n(55056);var p=n.n(u);var m=n(10540);var g=n.n(m);var f=n(41113);var v=n.n(f);var _=n(18799);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.A,b);const w=_.A&&_.A.locals?_.A.locals:undefined},28560:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>C});var i=n(49278);var s=n.n(i);const o={id:"@jupyterlab/services-extension:config-section-manager",autoStart:true,provides:i.IConfigSectionManager,optional:[i.IServerSettings],description:"Provides the config section manager.",activate:(e,t)=>{const n=new i.ConfigSectionManager({serverSettings:t});i.ConfigSection._setConfigSectionManager(n);return n}};const r={id:"@jupyterlab/services-extension:connection-status",autoStart:true,provides:i.IConnectionStatus,description:"Provides the default connection status.",activate:()=>new i.ConnectionStatus};const a={id:"@jupyterlab/services-extension:contents-manager",description:"The default contents manager plugin.",autoStart:true,provides:i.IContentsManager,requires:[i.IDefaultDrive,i.IServerSettings],activate:(e,t,n)=>new i.ContentsManager({defaultDrive:t,serverSettings:n})};const l={id:"@jupyterlab/services-extension:default-content-provider",description:"The default content provider for the contents manager.",autoStart:true,provides:i.IDefaultContentProvider,optional:[i.IServerSettings],activate:(e,t)=>{const n="api/contents";t=t!==null&&t!==void 0?t:i.ServerConnection.makeSettings();return new i.RestContentProvider({serverSettings:t,apiEndpoint:n})}};const d={id:"@jupyterlab/services-extension:content-provider-warning",description:"Warn if user is overwriting the deprecated contentprovider plugin.",autoStart:true,requires:[i.IDefaultContentProvider],activate:(e,t)=>{if(!(t instanceof i.RestContentProvider)){console.error("Defining a IDefaultContentProvider plugin is deprecated since JupyterLab 4.5.1 and does not be have any effect.")}}};const c={id:"@jupyterlab/services-extension:default-drive",description:"The default drive for the contents manager.",autoStart:true,provides:i.IDefaultDrive,optional:[i.IServerSettings],activate:(e,t)=>new i.Drive({serverSettings:t!==null&&t!==void 0?t:undefined})};const h={id:"@jupyterlab/services-extension:event-manager",description:"The event manager plugin.",autoStart:true,provides:i.IEventManager,optional:[i.IServerSettings,i.IConnectionStatus],activate:(e,t,n)=>new i.EventManager({serverSettings:t,standby:()=>!(n===null||n===void 0?void 0:n.isConnected)||"when-hidden"})};const u={id:"@jupyterlab/services-extension:kernel-manager",description:"The kernel manager plugin.",autoStart:true,provides:i.IKernelManager,optional:[i.IServerSettings,i.IConnectionStatus],activate:(e,t,n)=>new i.KernelManager({serverSettings:t,standby:()=>!(n===null||n===void 0?void 0:n.isConnected)||"when-hidden"})};const p={id:"@jupyterlab/services-extension:kernel-spec-manager",description:"The kernel spec manager plugin.",autoStart:true,provides:i.IKernelSpecManager,optional:[i.IServerSettings,i.IConnectionStatus],activate:(e,t,n)=>new i.KernelSpecManager({serverSettings:t,standby:()=>!(n===null||n===void 0?void 0:n.isConnected)||"when-hidden"})};const m={id:"@jupyterlab/services-extension:nbconvert-manager",description:"The nbconvert manager plugin.",autoStart:true,provides:i.INbConvertManager,optional:[i.IServerSettings],activate:(e,t)=>new i.NbConvertManager({serverSettings:t})};const g={id:"@jupyterlab/services-extension:session-manager",description:"The session manager plugin.",autoStart:true,provides:i.ISessionManager,requires:[i.IKernelManager],optional:[i.IServerSettings,i.IConnectionStatus],activate:(e,t,n,s)=>new i.SessionManager({kernelManager:t,serverSettings:n,standby:()=>!(s===null||s===void 0?void 0:s.isConnected)||"when-hidden"})};const f={id:"@jupyterlab/services-extension:setting-manager",description:"The setting manager plugin.",autoStart:true,provides:i.ISettingManager,optional:[i.IServerSettings],activate:(e,t)=>new i.SettingManager({serverSettings:t})};const v={id:"@jupyterlab/services-extension:terminal-manager",description:"The terminal manager plugin.",autoStart:true,provides:i.ITerminalManager,optional:[i.IServerSettings,i.IConnectionStatus],activate:(e,t,n)=>new i.TerminalManager({serverSettings:t,standby:()=>!(n===null||n===void 0?void 0:n.isConnected)||"when-hidden"})};const _={id:"@jupyterlab/services-extension:user-manager",description:"The user manager plugin.",autoStart:true,provides:i.IUserManager,optional:[i.IServerSettings,i.IConnectionStatus],activate:(e,t,n)=>new i.UserManager({serverSettings:t,standby:()=>!(n===null||n===void 0?void 0:n.isConnected)||"when-hidden"})};const b={id:"@jupyterlab/services-extension:workspace-manager",description:"The workspace manager plugin.",autoStart:true,provides:i.IWorkspaceManager,optional:[i.IServerSettings],activate:(e,t)=>new i.WorkspaceManager({serverSettings:t})};const y={id:"@jupyterlab/services-extension:server-settings",description:"The default server settings plugin.",autoStart:true,provides:i.IServerSettings,activate:e=>i.ServerConnection.makeSettings()};const w={id:"@jupyterlab/services-extension:service-manager",description:"The default service manager plugin.",autoStart:true,provides:i.IServiceManager,optional:[i.IConnectionStatus,i.IContentsManager,i.IDefaultDrive,i.IServerSettings,i.IEventManager,i.IKernelManager,i.IKernelSpecManager,i.INbConvertManager,i.ISessionManager,i.ISettingManager,i.ITerminalManager,i.IUserManager,i.IWorkspaceManager],activate:(e,t,n,s,o,r,a,l,d,c,h,u,p,m)=>new i.ServiceManager({standby:()=>!(t===null||t===void 0?void 0:t.isConnected)||"when-hidden",contents:n,defaultDrive:s,serverSettings:o,events:r,kernels:a,kernelspecs:l,nbconvert:d,sessions:c,settings:h,terminals:u,user:p,workspaces:m})};const C=[o,r,a,l,d,c,h,u,p,m,g,f,y,w,v,_,b]},5412:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseManager=void 0;const i=n(2336);const s=n(1089);class o{constructor(e){var t;this._isDisposed=false;this._disposed=new i.Signal(this);this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:s.ServerConnection.makeSettings()}get disposed(){return this._disposed}get isDisposed(){return this._isDisposed}get isActive(){return true}dispose(){if(this.isDisposed){return}this._isDisposed=true;this._disposed.emit(undefined);i.Signal.clearData(this)}}t.BaseManager=o},44816:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BuildManager=void 0;const i=n(40959);const s=n(1089);const o="api/build";class r{constructor(e={}){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:s.ServerConnection.makeSettings()}get isAvailable(){return i.PageConfig.getOption("buildAvailable").toLowerCase()==="true"}get shouldCheck(){return i.PageConfig.getOption("buildCheck").toLowerCase()==="true"}getStatus(){const{_url:e,serverSettings:t}=this;const n=s.ServerConnection.makeRequest(e,{},t);return n.then((e=>{if(e.status!==200){throw new s.ServerConnection.ResponseError(e)}return e.json()})).then((e=>{if(typeof e.status!=="string"){throw new Error("Invalid data")}if(typeof e.message!=="string"){throw new Error("Invalid data")}return e}))}build(){const{_url:e,serverSettings:t}=this;const n={method:"POST"};const i=s.ServerConnection.makeRequest(e,n,t);return i.then((e=>{if(e.status===400){throw new s.ServerConnection.ResponseError(e,"Build aborted")}if(e.status!==200){const t=`Build failed with ${e.status}.\n\n If you are experiencing the build failure after installing an extension (or trying to include previously installed extension after updating JupyterLab) please check the extension repository for new installation instructions as many extensions migrated to the prebuilt extensions system which no longer requires rebuilding JupyterLab (but uses a different installation procedure, typically involving a package manager such as 'pip' or 'conda').\n\n If you specifically intended to install a source extension, please run 'jupyter lab build' on the server for full output.`;throw new s.ServerConnection.ResponseError(e,t)}}))}cancel(){const{_url:e,serverSettings:t}=this;const n={method:"DELETE"};const i=s.ServerConnection.makeRequest(e,n,t);return i.then((e=>{if(e.status!==204){throw new s.ServerConnection.ResponseError(e)}}))}get _url(){const{baseUrl:e,appUrl:t}=this.serverSettings;return i.URLExt.join(e,t,o)}}t.BuildManager=r},39851:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ConfigWithDefaults=t.ConfigSection=t.ConfigSectionManager=void 0;const i=n(40959);const s=n(50608);const o="api/config";class r{constructor(e){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:s.ServerConnection.makeSettings()}async create(e){const t=new l({...e,serverSettings:this.serverSettings});await t.load();return t}}t.ConfigSectionManager=r;var a;(function(e){async function t(e){if(!n){const t=new l(e);await t.load();return t}const t=await n.create(e);return t}e.create=t;let n;function i(e){if(n){throw new Error("ConfigSectionManager already set. If you would like to create a config section, use the `IConfigSectionManager` token in a plugin.")}n=e}e._setConfigSectionManager=i})(a||(t.ConfigSection=a={}));class l{constructor(e){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:s.ServerConnection.makeSettings();this._name=e.name}get data(){return this._data}async load(){const e=await s.ServerConnection.makeRequest(this._url,{},this.serverSettings);if(e.status!==200){const t=await s.ServerConnection.ResponseError.create(e);throw t}this._data=await e.json()}async update(e){this._data={...this._data,...e};const t={method:"PATCH",body:JSON.stringify(e)};const n=await s.ServerConnection.makeRequest(this._url,t,this.serverSettings);if(n.status!==200){const e=await s.ServerConnection.ResponseError.create(n);throw e}this._data=await n.json();return this._data}get _url(){return i.URLExt.join(this.serverSettings.baseUrl,o,encodeURIComponent(this._name))}}class d{constructor(e){var t,n;this._className="";this._section=e.section;this._defaults=(t=e.defaults)!==null&&t!==void 0?t:{};this._className=(n=e.className)!==null&&n!==void 0?n:""}get(e){const t=this._classData();return e in t?t[e]:this._defaults[e]}set(e,t){const n={};n[e]=t;if(this._className){const e={};e[this._className]=n;return this._section.update(e)}else{return this._section.update(n)}}_classData(){const e=this._section.data;if(this._className&&this._className in e){return e[this._className]}return e}}t.ConfigWithDefaults=d},39923:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ConnectionStatus=void 0;class n{constructor(){this.isConnected=true}}t.ConnectionStatus=n},97375:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=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 n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.RestContentProvider=t.ContentProviderRegistry=t.Drive=t.ContentsManager=t.Contents=void 0;const r=n(40959);const a=n(90044);const l=n(2336);const d=n(50608);const c=o(n(77821));const h="api/contents";const u="files";var p;(function(e){function t(e){c.validateContentsModel(e)}e.validateContentsModel=t;function n(e){c.validateCheckpointModel(e)}e.validateCheckpointModel=n})(p||(t.Contents=p={}));class m{constructor(e={}){var t,n;this._isDisposed=false;this._additionalDrives=new Map;this._fileChanged=new l.Signal(this);const i=this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:d.ServerConnection.makeSettings();this._defaultDrive=(n=e.defaultDrive)!==null&&n!==void 0?n:new g({serverSettings:i});this._defaultDrive.fileChanged.connect(this._onFileChanged,this)}get defaultDrive(){return this._defaultDrive}get fileChanged(){return this._fileChanged}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;l.Signal.clearData(this)}addDrive(e){this._additionalDrives.set(e.name,e);e.fileChanged.connect(this._onFileChanged,this)}getSharedModelFactory(e,t){var n,i;const[s]=this._driveForPath(e);const o=(n=s.contentProviderRegistry)===null||n===void 0?void 0:n.getProvider(t===null||t===void 0?void 0:t.contentProviderId);if(o===null||o===void 0?void 0:o.sharedModelFactory){return o.sharedModelFactory}return(i=s.sharedModelFactory)!==null&&i!==void 0?i:null}localPath(e){const t=e.split("/");const n=t[0].split(":");if(n.length===1||!this._additionalDrives.has(n[0])){return r.PathExt.removeSlash(e)}return r.PathExt.join(n.slice(1).join(":"),...t.slice(1))}normalize(e){const t=e.split(":");if(t.length===1){return r.PathExt.normalize(e)}return`${t[0]}:${r.PathExt.normalize(t.slice(1).join(":"))}`}resolvePath(e,t){const n=this.driveName(e);const i=this.localPath(e);const s=r.PathExt.resolve("/",i,t);return n?`${n}:${s}`:s}driveName(e){const t=e.split("/");const n=t[0].split(":");if(n.length===1){return""}if(this._additionalDrives.has(n[0])){return n[0]}return""}get(e,t){const[n,i]=this._driveForPath(e);return n.get(i,t).then((e=>{const t=[];if(e.type==="directory"&&e.content){for(const i of e.content){t.push({...i,path:this._toGlobalPath(n,i.path)})}return{...e,path:this._toGlobalPath(n,i),content:t,serverPath:e.path}}else{return{...e,path:this._toGlobalPath(n,i),serverPath:e.path}}}))}getDownloadUrl(e){const[t,n]=this._driveForPath(e);return t.getDownloadUrl(n)}newUntitled(e={}){if(e.path){const t=this.normalize(e.path);const[n,i]=this._driveForPath(t);return n.newUntitled({...e,path:i}).then((e=>({...e,path:r.PathExt.join(t,e.name),serverPath:e.path})))}else{return this._defaultDrive.newUntitled(e)}}delete(e){const[t,n]=this._driveForPath(e);return t.delete(n)}rename(e,t){const[n,i]=this._driveForPath(e);const[s,o]=this._driveForPath(t);if(n!==s){throw Error("ContentsManager: renaming files must occur within a Drive")}return n.rename(i,o).then((e=>({...e,path:this._toGlobalPath(n,o),serverPath:e.path})))}save(e,t={}){const n=this.normalize(e);const[i,s]=this._driveForPath(e);return i.save(s,{...t,path:s}).then((e=>({...e,path:n,serverPath:e.path})))}copy(e,t){const[n,i]=this._driveForPath(e);const[s,o]=this._driveForPath(t);if(n===s){return n.copy(i,o).then((e=>({...e,path:this._toGlobalPath(n,e.path),serverPath:e.path})))}else{throw Error("Copying files between drives is not currently implemented")}}createCheckpoint(e){const[t,n]=this._driveForPath(e);return t.createCheckpoint(n)}listCheckpoints(e){const[t,n]=this._driveForPath(e);return t.listCheckpoints(n)}restoreCheckpoint(e,t){const[n,i]=this._driveForPath(e);return n.restoreCheckpoint(i,t)}deleteCheckpoint(e,t){const[n,i]=this._driveForPath(e);return n.deleteCheckpoint(i,t)}_toGlobalPath(e,t){if(e===this._defaultDrive){return r.PathExt.removeSlash(t)}else{return`${e.name}:${r.PathExt.removeSlash(t)}`}}_driveForPath(e){const t=this.driveName(e);const n=this.localPath(e);if(t){return[this._additionalDrives.get(t),n]}else{return[this._defaultDrive,n]}}_onFileChanged(e,t){var n,i;if(e===this._defaultDrive){this._fileChanged.emit(t)}else{let s=null;let o=null;if((n=t.newValue)===null||n===void 0?void 0:n.path){s={...t.newValue,path:this._toGlobalPath(e,t.newValue.path)}}if((i=t.oldValue)===null||i===void 0?void 0:i.path){o={...t.oldValue,path:this._toGlobalPath(e,t.oldValue.path)}}this._fileChanged.emit({type:t.type,newValue:s,oldValue:o})}}}t.ContentsManager=m;class g{constructor(e={}){var t,n,i;this._isDisposed=false;this._fileChanged=new l.Signal(this);this.name=(t=e.name)!==null&&t!==void 0?t:"Default";this._apiEndpoint=(n=e.apiEndpoint)!==null&&n!==void 0?n:h;this.serverSettings=(i=e.serverSettings)!==null&&i!==void 0?i:d.ServerConnection.makeSettings();this._restContentProvider=new _({...e,apiEndpoint:this._apiEndpoint,serverSettings:this.serverSettings});if(e.defaultContentProvider){this.contentProviderRegistry=new v({defaultProvider:e.defaultContentProvider})}else{this.contentProviderRegistry=new v}this.contentProviderRegistry.fileChanged.connect(((e,t)=>{this._fileChanged.emit(t)}))}get fileChanged(){return this._fileChanged}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;l.Signal.clearData(this)}async get(e,t){const n=this.contentProviderRegistry.getProvider(t===null||t===void 0?void 0:t.contentProviderId);if(n){return n.get(e,t)}return await this._restContentProvider.get(e,t)}getDownloadUrl(e){const t=this.serverSettings.baseUrl;let n=r.URLExt.join(t,u,r.URLExt.encodeParts(e));let i="";try{i=document.cookie}catch(o){}const s=i.match("\\b_xsrf=([^;]*)\\b");if(s){const e=new URL(n);e.searchParams.append("_xsrf",s[1]);n=e.toString()}return Promise.resolve(n)}async newUntitled(e={}){var t;let n="{}";if(e){if(e.ext){e.ext=f.normalizeExtension(e.ext)}n=JSON.stringify(e)}const i=this.serverSettings;const s=this._getUrl((t=e.path)!==null&&t!==void 0?t:"");const o={method:"POST",body:n};const r=await d.ServerConnection.makeRequest(s,o,i);if(r.status!==201){const e=await d.ServerConnection.ResponseError.create(r);throw e}const a=await r.json();c.validateContentsModel(a);this._fileChanged.emit({type:"new",oldValue:null,newValue:a});return a}async delete(e){const t=this._getUrl(e);const n=this.serverSettings;const i={method:"DELETE"};const s=await d.ServerConnection.makeRequest(t,i,n);if(s.status!==204){const e=await d.ServerConnection.ResponseError.create(s);throw e}this._fileChanged.emit({type:"delete",oldValue:{path:e},newValue:null})}async rename(e,t){const n=this.serverSettings;const i=this._getUrl(e);const s={method:"PATCH",body:JSON.stringify({path:t})};const o=await d.ServerConnection.makeRequest(i,s,n);if(o.status!==200){const e=await d.ServerConnection.ResponseError.create(o);throw e}const r=await o.json();c.validateContentsModel(r);this._fileChanged.emit({type:"rename",oldValue:{path:e},newValue:r});return r}async save(e,t={}){const n=this.contentProviderRegistry.getProvider(t===null||t===void 0?void 0:t.contentProviderId);let i;if(n){i=await n.save(e,t)}else{i=await this._restContentProvider.save(e,t)}this._fileChanged.emit({type:"save",oldValue:null,newValue:i});return i}async copy(e,t){const n=this.serverSettings;const i=this._getUrl(t);const s={method:"POST",body:JSON.stringify({copy_from:e})};const o=await d.ServerConnection.makeRequest(i,s,n);if(o.status!==201){const e=await d.ServerConnection.ResponseError.create(o);throw e}const r=await o.json();c.validateContentsModel(r);this._fileChanged.emit({type:"new",oldValue:null,newValue:r});return r}async createCheckpoint(e){const t=this._getUrl(e,"checkpoints");const n={method:"POST"};const i=await d.ServerConnection.makeRequest(t,n,this.serverSettings);if(i.status!==201){const e=await d.ServerConnection.ResponseError.create(i);throw e}const s=await i.json();c.validateCheckpointModel(s);return s}async listCheckpoints(e){const t=this._getUrl(e,"checkpoints");const n=await d.ServerConnection.makeRequest(t,{},this.serverSettings);if(n.status!==200){const e=await d.ServerConnection.ResponseError.create(n);throw e}const i=await n.json();if(!Array.isArray(i)){throw new Error("Invalid Checkpoint list")}for(let s=0;sr.URLExt.encodeParts(e)));const n=this.serverSettings.baseUrl;return r.URLExt.join(n,this._apiEndpoint,...t)}}t.Drive=g;var f;(function(e){function t(e){if(e.length>0&&e.indexOf(".")!==0){e=`.${e}`}return e}e.normalizeExtension=t})(f||(f={}));class v{constructor(e){this._providers=new Map;this._fileChanged=new l.Signal(this);if(e===null||e===void 0?void 0:e.defaultProvider){this.register("default",e.defaultProvider)}}register(e,t){if(this._providers.has(e)){throw Error(`Provider with ${e} identifier was already registered on this drive`)}this._providers.set(e,t);const n=(e,t)=>{this._fileChanged.emit(t)};if(t.fileChanged){t.fileChanged.connect(n)}return new a.DisposableDelegate((()=>{if(t.fileChanged){t.fileChanged.disconnect(n)}if(this._providers.has(e)){this._providers.delete(e)}}))}getProvider(e){if(!e){return null}const t=this._providers.get(e);if(!t){throw Error(`Provider ${e} is not registered`)}return t}get fileChanged(){return this._fileChanged}}t.ContentProviderRegistry=v;class _{constructor(e){this._options=e}async get(e,t){let n=this._getUrl(e);if(t){if(t.type==="notebook"){delete t["format"]}const e=t.content?"1":"0";const i=t.hash?"1":"0";const s={...t,content:e,hash:i};n+=r.URLExt.objectToQueryString(s)}const i=this._options.serverSettings;const s=await d.ServerConnection.makeRequest(n,{},i);if(s.status!==200){const e=await d.ServerConnection.ResponseError.create(s);throw e}const o=await s.json();c.validateContentsModel(o);return o}async save(e,t={}){const n=this._options.serverSettings;const i=this._getUrl(e);const s=new File([JSON.stringify(t)],"data.json",{type:"application/json"});const o={method:"PUT",body:s};const r=await d.ServerConnection.makeRequest(i,o,n);if(r.status!==200&&r.status!==201){const e=await d.ServerConnection.ResponseError.create(r);throw e}const a=await r.json();c.validateContentsModel(a);return a}_getUrl(...e){const t=e.map((e=>r.URLExt.encodeParts(e)));const n=this._options.serverSettings.baseUrl;return r.URLExt.join(n,this._options.apiEndpoint,...t)}}t.RestContentProvider=_},77821:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateContentsModel=s;t.validateCheckpointModel=o;const i=n(1480);function s(e){(0,i.validateProperty)(e,"name","string");(0,i.validateProperty)(e,"path","string");(0,i.validateProperty)(e,"type","string");(0,i.validateProperty)(e,"created","string");(0,i.validateProperty)(e,"last_modified","string");(0,i.validateProperty)(e,"mimetype","object");(0,i.validateProperty)(e,"content","object");(0,i.validateProperty)(e,"format","object")}function o(e){(0,i.validateProperty)(e,"id","string");(0,i.validateProperty)(e,"last_modified","string")}},1091:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EventManager=void 0;const i=n(40959);const s=n(26568);const o=n(2336);const r=n(1089);const a="api/events";class l{constructor(e={}){var t,n;this._socket=null;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:r.ServerConnection.makeSettings();this._poll=new s.Poll({factory:()=>this._subscribe(),standby:(n=e.standby)!==null&&n!==void 0?n:"when-hidden"});this._stream=new o.Stream(this);void this._poll.start()}get isDisposed(){return this._poll.isDisposed}get stream(){return this._stream}dispose(){if(this.isDisposed){return}this._poll.dispose();const e=this._socket;if(e){this._socket=null;e.onopen=()=>undefined;e.onerror=()=>undefined;e.onmessage=()=>undefined;e.onclose=()=>undefined;e.close()}o.Signal.clearData(this);this._stream.stop()}async emit(e){const{serverSettings:t}=this;const{baseUrl:n}=t;const{makeRequest:s,ResponseError:o}=r.ServerConnection;const l=i.URLExt.join(n,a);const d={body:JSON.stringify(e),method:"POST"};const c=await s(l,d,t);if(c.status!==204){throw new o(c)}}_subscribe(){return new Promise(((e,t)=>{if(this.isDisposed){return}const{appendToken:n,token:s,WebSocket:o,wsUrl:r}=this.serverSettings;let l=i.URLExt.join(r,a,"subscribe");if(n&&s!==""){l+=`?token=${encodeURIComponent(s)}`}const d=this._socket=new o(l);const c=this._stream;d.onclose=()=>t(new Error("EventManager socket closed"));d.onmessage=e=>e.data&&c.emit(JSON.parse(e.data))}))}}t.EventManager=l},50608:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))i(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});s(n(5412),t);s(n(39851),t);s(n(39923),t);s(n(97375),t);s(n(1091),t);s(n(14272),t);s(n(76807),t);s(n(90139),t);s(n(1089),t);s(n(86923),t);s(n(95399),t);s(n(67569),t);s(n(80856),t);s(n(18430),t);s(n(90362),t);s(n(93892),t)},52570:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=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 n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.CommHandler=t.CommsOverSubshells=void 0;const r=n(5592);const a=n(90044);const l=o(n(59798));var d;(function(e){e["Disabled"]="disabled";e["PerComm"]="perComm";e["PerCommTarget"]="perCommTarget"})(d||(t.CommsOverSubshells=d={}));class c extends a.DisposableDelegate{constructor(e,t,n,i,s){super(i);this._subshellStarted=new r.PromiseDelegate;this._subshellId=null;this._target="";this._id="";this._id=t;this._target=e;this._kernel=n;this._kernel.statusChanged.connect((()=>{if(this._kernel.status==="restarting"){this._cleanSubshells()}}));this.commsOverSubshells=s!==null&&s!==void 0?s:d.PerCommTarget}get commId(){return this._id}get targetName(){return this._target}get subshellId(){return this._subshellId}get subshellStarted(){return this._subshellStarted.promise}get commsOverSubshells(){return this._commsOverSubshells}set commsOverSubshells(e){this._commsOverSubshells=e;if(this._commsOverSubshells===d.Disabled){this._maybeCloseSubshell()}else{void this._maybeStartSubshell()}}get onClose(){return this._onClose}set onClose(e){this._onClose=e}get onMsg(){return this._onMsg}set onMsg(e){this._onMsg=e}open(e,t,n=[]){if(this.isDisposed||this._kernel.isDisposed){throw new Error("Cannot open")}const i=l.createMessage({msgType:"comm_open",channel:"shell",username:this._kernel.username,session:this._kernel.clientId,subshellId:this._subshellId||this._kernel.subshellId,content:{comm_id:this._id,target_name:this._target,data:e!==null&&e!==void 0?e:{}},metadata:t,buffers:n});return this._kernel.sendShellMessage(i,false,true)}send(e,t,n=[],i=true){if(this.isDisposed||this._kernel.isDisposed){throw new Error("Cannot send")}const s=l.createMessage({msgType:"comm_msg",channel:"shell",username:this._kernel.username,session:this._kernel.clientId,subshellId:this._subshellId||this._kernel.subshellId,content:{comm_id:this._id,data:e},metadata:t,buffers:n});return this._kernel.sendShellMessage(s,false,i)}close(e,t,n=[]){if(this.isDisposed||this._kernel.isDisposed){throw new Error("Cannot close")}const i=l.createMessage({msgType:"comm_close",channel:"shell",username:this._kernel.username,session:this._kernel.clientId,subshellId:this._subshellId||this._kernel.subshellId,content:{comm_id:this._id,data:e!==null&&e!==void 0?e:{}},metadata:t,buffers:n});const s=this._kernel.sendShellMessage(i,false,true);const o=this._onClose;if(o){const i=l.createMessage({msgType:"comm_close",channel:"iopub",username:this._kernel.username,session:this._kernel.clientId,subshellId:this._subshellId||this._kernel.subshellId,content:{comm_id:this._id,data:e!==null&&e!==void 0?e:{}},metadata:t,buffers:n});void o(i)}this.dispose();return s}dispose(){this._maybeCloseSubshell();super.dispose()}_cleanSubshells(){const e=this._kernel.id;if(c._commTargetSubShellsId.hasOwnProperty(e)){delete c._commTargetSubShellsId[e]}}async _maybeStartSubshell(){await this._kernel.info;if(!this._kernel.supportsSubshells){return}if(this._commsOverSubshells===d.PerComm){const e=await this._kernel.requestCreateSubshell({}).done;this._subshellId=e.content.subshell_id;this._subshellStarted.resolve();return}const e=this._kernel.id;if(!c._commTargetSubShellsId.hasOwnProperty(e)){c._commTargetSubShellsId[e]={}}const t=c._commTargetSubShellsId[e];if(t[this._target]){this._subshellId=await t[this._target];this._subshellStarted.resolve()}else{t[this._target]=this._kernel.requestCreateSubshell({}).done.then((e=>{this._subshellId=e.content.subshell_id;return this._subshellId}));await t[this._target];this._subshellStarted.resolve()}}_maybeCloseSubshell(){if(this._commsOverSubshells!==d.PerComm){this._subshellId=null;return}if(this._subshellId&&this._kernel.status!=="dead"){this._kernel.requestDeleteSubshell({subshell_id:this._subshellId},true)}this._subshellId=null}}t.CommHandler=c;c._commTargetSubShellsId={}},45089:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=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 n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.KernelConnection=void 0;const r=n(40959);const a=n(5592);const l=n(2336);const d=n(50608);const c=n(52570);const h=o(n(59798));const u=n(46073);const p=o(n(38872));const m=n(38662);const g=n(321);const f=n(40959);const v=3e3;const _="_RESTARTING_";const b="";class y{constructor(e){var t,n,i,s,o,c,u,f;this._createSocket=(e=true)=>{this._errorIfDisposed();this._clearSocket();this._updateConnectionStatus("connecting");const t=this.serverSettings;const n=r.URLExt.join(t.wsUrl,m.KERNEL_SERVICE_URL,encodeURIComponent(this._id));const i=n.replace(/^((?:\w+:)?\/\/)(?:[^@\/]+@)/,"$1");console.debug(`Starting WebSocket: ${i}`);let s=r.URLExt.join(n,"channels?session_id="+encodeURIComponent(this._clientId));const o=t.token;if(t.appendToken&&o!==""){s=s+`&token=${encodeURIComponent(o)}`}const a=e?this._supportedProtocols:[];this._ws=new t.WebSocket(s,a);this._ws.binaryType="arraybuffer";let l=false;const c=async e=>{var t,n;if(this._isDisposed){return}this._reason="";this._model=undefined;try{const t=await this._kernelAPIClient.getModel(this._id);this._model=t;if((t===null||t===void 0?void 0:t.execution_state)==="dead"){this._updateStatus("dead")}else{this._onWSClose(e)}}catch(i){if(i instanceof d.ServerConnection.NetworkError||((t=i.response)===null||t===void 0?void 0:t.status)===503||((n=i.response)===null||n===void 0?void 0:n.status)===424){const t=w.getRandomIntInclusive(10,30)*1e3;setTimeout(c,t,e)}else{this._reason="Kernel died unexpectedly";this._updateStatus("dead")}}return};const h=async e=>{if(l){return}l=true;await c(e);return};this._ws.onmessage=this._onWSMessage;this._ws.onopen=this._onWSOpen;this._ws.onclose=h;this._ws.onerror=h};this._onWSOpen=e=>{if(this._ws.protocol!==""&&!this._supportedProtocols.includes(this._ws.protocol)){console.log("Server selected unknown kernel wire protocol:",this._ws.protocol);this._updateStatus("dead");throw new Error(`Unknown kernel wire protocol: ${this._ws.protocol}`)}this._selectedProtocol=this._ws.protocol;this._ws.onclose=this._onWSClose;this._ws.onerror=this._onWSClose;this._updateConnectionStatus("connected")};this._onWSMessage=e=>{let t;try{t=this.serverSettings.serializer.deserialize(e.data,this._ws.protocol);p.validateMessage(t)}catch(n){n.message=`Kernel message validation error: ${n.message}`;throw n}this._kernelSession=t.header.session;this._msgChain=this._msgChain.then((()=>this._handleMessage(t))).catch((e=>{if(e.message.startsWith("Canceled future for ")){console.error(e)}}));this._anyMessage.emit({msg:t,direction:"recv"})};this._onWSClose=e=>{if(!this.isDisposed){this._reconnect()}};this._id="";this._name="";this._status="unknown";this._connectionStatus="connecting";this._kernelSession="";this._isDisposed=false;this._ws=null;this._username="";this._reconnectLimit=7;this._reconnectAttempt=0;this._reconnectTimeout=null;this._supportedProtocols=Object.values(h.supportedKernelWebSocketProtocols);this._selectedProtocol="";this._commsOverSubshells=d.CommsOverSubshells.PerCommTarget;this._futures=new Map;this._comms=new Map;this._targetRegistry=Object.create(null);this._info=new a.PromiseDelegate;this._pendingMessages=[];this._statusChanged=new l.Signal(this);this._connectionStatusChanged=new l.Signal(this);this._disposed=new l.Signal(this);this._iopubMessage=new l.Signal(this);this._anyMessage=new l.Signal(this);this._pendingInput=new l.Signal(this);this._unhandledMessage=new l.Signal(this);this._displayIdToParentIds=new Map;this._msgIdToDisplayIds=new Map;this._msgChain=Promise.resolve();this._hasPendingInput=false;this._reason="";this._noOp=()=>{};this._supportsSubshells=false;this._name=e.model.name;this._id=e.model.id;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:d.ServerConnection.makeSettings();this._kernelAPIClient=(n=e.kernelAPIClient)!==null&&n!==void 0?n:new m.KernelAPIClient({serverSettings:this.serverSettings});this._kernelSpecAPIClient=(i=e.kernelSpecAPIClient)!==null&&i!==void 0?i:new g.KernelSpecAPIClient({serverSettings:this.serverSettings});this._clientId=(s=e.clientId)!==null&&s!==void 0?s:a.UUID.uuid4();this._username=(o=e.username)!==null&&o!==void 0?o:"";this.handleComms=(c=e.handleComms)!==null&&c!==void 0?c:true;this._commsOverSubshells=(u=e.commsOverSubshells)!==null&&u!==void 0?u:d.CommsOverSubshells.PerCommTarget;this._subshellId=(f=e.subshellId)!==null&&f!==void 0?f:null;this._createSocket()}get disposed(){return this._disposed}get commsOverSubshells(){return this._commsOverSubshells}set commsOverSubshells(e){this._commsOverSubshells=e;for(const[t,n]of this._comms){n.commsOverSubshells=e}}get statusChanged(){return this._statusChanged}get connectionStatusChanged(){return this._connectionStatusChanged}get iopubMessage(){return this._iopubMessage}get unhandledMessage(){return this._unhandledMessage}get model(){return this._model||{id:this.id,name:this.name,reason:this._reason}}get anyMessage(){return this._anyMessage}get pendingInput(){return this._pendingInput}get id(){return this._id}get name(){return this._name}get username(){return this._username}get clientId(){return this._clientId}get subshellId(){return this._subshellId}set subshellId(e){this._subshellId=e}get status(){return this._status}get connectionStatus(){return this._connectionStatus}get isDisposed(){return this._isDisposed}get info(){return this._info.promise}get spec(){if(this._specPromise){return this._specPromise}this._specPromise=this._kernelSpecAPIClient.get().then((e=>e.kernelspecs[this._name]));return this._specPromise}get supportsSubshells(){return this._supportsSubshells}clone(e={}){return new y({model:this.model,username:this.username,serverSettings:this.serverSettings,handleComms:false,kernelAPIClient:this._kernelAPIClient,commsOverSubshells:d.CommsOverSubshells.Disabled,...e})}dispose(){if(this.isDisposed){return}const e=()=>{this._isDisposed=true;this._disposed.emit();this._updateConnectionStatus("disconnected");this._clearKernelState();this._pendingMessages=[];this._clearSocket();l.Signal.clearData(this)};if(this._subshellId!==null){const t=this.requestDeleteSubshell({subshell_id:this._subshellId},true);t.onReply=t=>{e()}}else{e()}}sendShellMessage(e,t=false,n=true){return this._sendKernelShellControl(u.KernelShellFutureHandler,e,t,n)}sendControlMessage(e,t=false,n=true){return this._sendKernelShellControl(u.KernelControlFutureHandler,e,t,n)}_sendKernelShellControl(e,t,n=false,i=true){this._sendMessage(t);this._anyMessage.emit({msg:t,direction:"send"});const s=new e((()=>{const e=t.header.msg_id;this._futures.delete(e);const n=this._msgIdToDisplayIds.get(e);if(!n){return}n.forEach((t=>{const n=this._displayIdToParentIds.get(t);if(n){const i=n.indexOf(e);if(i===-1){return}if(n.length===1){this._displayIdToParentIds.delete(t)}else{n.splice(i,1);this._displayIdToParentIds.set(t,n)}}}));this._msgIdToDisplayIds.delete(e)}),t,n,i,this);this._futures.set(t.header.msg_id,s);return s}_sendMessage(e,t=true){if(this.status==="dead"){throw new Error("Kernel is dead")}if((this._kernelSession===b||this._kernelSession===_)&&h.isInfoRequestMsg(e)){if(this.connectionStatus==="connected"){this._ws.send(this.serverSettings.serializer.serialize(e,this._ws.protocol));return}else{throw new Error("Could not send message: status is not connected")}}if(t&&this._pendingMessages.length>0){this._pendingMessages.push(e);return}if(this.connectionStatus==="connected"&&this._kernelSession!==_){this._ws.send(this.serverSettings.serializer.serialize(e,this._ws.protocol))}else if(t){this._pendingMessages.push(e)}else{throw new Error("Could not send message")}}async interrupt(){this.hasPendingInput=false;if(this.status==="dead"){throw new Error("Kernel is dead")}return this._kernelAPIClient.interrupt(this.id)}async restart(){if(this.status==="dead"){throw new Error("Kernel is dead")}this._updateStatus("restarting");this._clearKernelState();this._kernelSession=_;await this._kernelAPIClient.restart(this.id);await this.reconnect();this.hasPendingInput=false}reconnect(){this._errorIfDisposed();const e=new a.PromiseDelegate;const t=(n,i)=>{if(i==="connected"){e.resolve();this.connectionStatusChanged.disconnect(t,this)}else if(i==="disconnected"){e.reject(new Error("Kernel connection disconnected"));this.connectionStatusChanged.disconnect(t,this)}};this.connectionStatusChanged.connect(t,this);this._reconnectAttempt=0;this._reconnect();return e.promise}async shutdown(){if(this.status!=="dead"){await this._kernelAPIClient.shutdown(this.id)}this.handleShutdown()}handleShutdown(){this._updateStatus("dead");this.dispose()}async requestKernelInfo(){const e=h.createMessage({msgType:"kernel_info_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:{}});let t;try{t=await w.handleShellMessage(this,e)}catch(i){if(this.isDisposed){return}else{throw i}}this._errorIfDisposed();if(!t){return}if(t.content.status===undefined){t.content.status="ok"}if(t.content.status!=="ok"){this._info.reject("Kernel info reply errored");return t}this._info.resolve(t.content);this._kernelSession=t.header.session;const n=t.content.supported_features;this._supportsSubshells=n!==undefined&&n.includes("kernel subshells");return t}requestComplete(e){const t=h.createMessage({msgType:"complete_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:e});return w.handleShellMessage(this,t)}requestInspect(e){const t=h.createMessage({msgType:"inspect_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:e});return w.handleShellMessage(this,t)}requestHistory(e){const t=h.createMessage({msgType:"history_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:e});return w.handleShellMessage(this,t)}requestExecute(e,t=true,n){const i={silent:false,store_history:true,user_expressions:{},allow_stdin:true,stop_on_error:false};const s=h.createMessage({msgType:"execute_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:{...i,...e},metadata:n});return this.sendShellMessage(s,true,t)}requestDebug(e,t=true){const n=h.createMessage({msgType:"debug_request",channel:"control",username:this._username,session:this._clientId,content:e});return this.sendControlMessage(n,true,t)}requestCreateSubshell(e,t=true){if(!this.supportsSubshells){throw new Error("Kernel subshells are not supported")}const n=h.createMessage({msgType:"create_subshell_request",channel:"control",username:this._username,session:this._clientId,content:e});return this.sendControlMessage(n,true,t)}requestDeleteSubshell(e,t=true){if(!this.supportsSubshells){throw new Error("Kernel subshells are not supported")}const n=h.createMessage({msgType:"delete_subshell_request",channel:"control",username:this._username,session:this._clientId,content:e});return this.sendControlMessage(n,true,t)}requestListSubshell(e,t=true){if(!this.supportsSubshells){throw new Error("Kernel subshells are not supported")}const n=h.createMessage({msgType:"list_subshell_request",channel:"control",username:this._username,session:this._clientId,content:e});return this.sendControlMessage(n,true,t)}requestIsComplete(e){const t=h.createMessage({msgType:"is_complete_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:e});return w.handleShellMessage(this,t)}requestCommInfo(e){const t=h.createMessage({msgType:"comm_info_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:e});return w.handleShellMessage(this,t)}sendInputReply(e,t){const n=h.createMessage({msgType:"input_reply",channel:"stdin",username:this._username,session:this._clientId,content:e});n.parent_header=t;this._sendMessage(n);this._anyMessage.emit({msg:n,direction:"send"});this.hasPendingInput=false}createComm(e,t=a.UUID.uuid4()){if(!this.handleComms){throw new Error("Comms are disabled on this kernel connection")}if(this._comms.has(t)){throw new Error("Comm is already created")}const n=new c.CommHandler(e,t,this,(()=>{this._unregisterComm(t)}),this._commsOverSubshells);this._comms.set(t,n);return n}hasComm(e){return this._comms.has(e)}registerCommTarget(e,t){if(!this.handleComms){return}this._targetRegistry[e]=t}removeCommTarget(e,t){if(!this.handleComms){return}if(!this.isDisposed&&this._targetRegistry[e]===t){delete this._targetRegistry[e]}}registerMessageHook(e,t){var n;const i=(n=this._futures)===null||n===void 0?void 0:n.get(e);if(i){i.registerMessageHook(t)}}removeMessageHook(e,t){var n;const i=(n=this._futures)===null||n===void 0?void 0:n.get(e);if(i){i.removeMessageHook(t)}}removeInputGuard(){this.hasPendingInput=false}async _handleDisplayId(e,t){var n,i;const s=t.parent_header.msg_id;let o=this._displayIdToParentIds.get(e);if(o){const e={header:a.JSONExt.deepCopy(t.header),parent_header:a.JSONExt.deepCopy(t.parent_header),metadata:a.JSONExt.deepCopy(t.metadata),content:a.JSONExt.deepCopy(t.content),channel:t.channel,buffers:t.buffers?t.buffers.slice():[]};e.header.msg_type="update_display_data";await Promise.all(o.map((async t=>{const n=this._futures&&this._futures.get(t);if(n){await n.handleMsg(e)}})))}if(t.header.msg_type==="update_display_data"){return true}o=(n=this._displayIdToParentIds.get(e))!==null&&n!==void 0?n:[];if(o.indexOf(s)===-1){o.push(s)}this._displayIdToParentIds.set(e,o);const r=(i=this._msgIdToDisplayIds.get(s))!==null&&i!==void 0?i:[];if(r.indexOf(s)===-1){r.push(s)}this._msgIdToDisplayIds.set(s,r);return false}_clearSocket(){if(this._ws!==null){this._ws.onopen=this._noOp;this._ws.onclose=this._noOp;this._ws.onerror=this._noOp;this._ws.onmessage=this._noOp;this._ws.close();this._ws=null}}_updateStatus(e){if(this._status===e||this._status==="dead"){return}this._status=e;w.logKernelStatus(this);this._statusChanged.emit(e);if(e==="dead"){this.dispose()}}_sendPending(){while(this.connectionStatus==="connected"&&this._kernelSession!==_&&this._pendingMessages.length>0){this._sendMessage(this._pendingMessages[0],false);this._pendingMessages.shift()}}_clearKernelState(){this._kernelSession="";this._pendingMessages=[];this._futures.forEach((e=>{e.dispose()}));this._comms.forEach((e=>{e.dispose()}));this._msgChain=Promise.resolve();this._futures=new Map;this._comms=new Map;this._displayIdToParentIds.clear();this._msgIdToDisplayIds.clear()}_assertCurrentMessage(e){this._errorIfDisposed();if(e.header.session!==this._kernelSession){throw new Error(`Canceling handling of old message: ${e.header.msg_type}`)}}async _handleCommOpen(e){this._assertCurrentMessage(e);const t=e.content;const n=new c.CommHandler(t.target_name,t.comm_id,this,(()=>{this._unregisterComm(t.comm_id)}),this.commsOverSubshells);this._comms.set(t.comm_id,n);try{const i=await w.loadObject(t.target_name,t.target_module,this._targetRegistry);await i(n,e)}catch(i){n.close();console.error("Exception opening new comm");throw i}}async _handleCommClose(e){this._assertCurrentMessage(e);const t=e.content;const n=this._comms.get(t.comm_id);if(!n){console.error("Comm not found for comm id "+t.comm_id);return}this._unregisterComm(n.commId);const i=n.onClose;if(i){await i(e)}n.dispose()}async _handleCommMsg(e){this._assertCurrentMessage(e);const t=e.content;const n=this._comms.get(t.comm_id);if(!n){return}const i=n.onMsg;if(i){await i(e)}}_unregisterComm(e){this._comms.delete(e)}_updateConnectionStatus(e){if(this._connectionStatus===e){return}this._connectionStatus=e;if(e!=="connecting"){this._reconnectAttempt=0;clearTimeout(this._reconnectTimeout)}if(this.status!=="dead"){if(e==="connected"){let e=this._kernelSession===_;let t=this.requestKernelInfo();let n=false;let i=()=>{if(n){return}n=true;if(e&&this._kernelSession===_){this._kernelSession=""}clearTimeout(s);if(this._pendingMessages.length>0){this._sendPending()}};void t.then(i);let s=setTimeout(i,v)}else{this._updateStatus("unknown")}}this._connectionStatusChanged.emit(e)}async _handleMessage(e){var t,n;let i=false;if(e.parent_header&&e.channel==="iopub"&&(h.isDisplayDataMsg(e)||h.isUpdateDisplayDataMsg(e)||h.isExecuteResultMsg(e))){const n=(t=e.content.transient)!==null&&t!==void 0?t:{};const s=n["display_id"];if(s){i=await this._handleDisplayId(s,e);this._assertCurrentMessage(e)}}if(!i&&e.parent_header){const t=e.parent_header;const i=(n=this._futures)===null||n===void 0?void 0:n.get(t.msg_id);if(i){await i.handleMsg(e);this._assertCurrentMessage(e)}else{const n=t.session===this.clientId;if(e.channel!=="iopub"&&n){this._unhandledMessage.emit(e)}}}if(e.channel==="iopub"){switch(e.header.msg_type){case"status":{const t=f.PageConfig.getOption("untracked_message_types");let n=JSON.parse(t||"[]");if(n.includes(e.parent_header.msg_type)){break}const i=e.content.execution_state;if(i==="restarting"){void Promise.resolve().then((async()=>{this._updateStatus("autorestarting");this._clearKernelState();await this.reconnect()}))}this._updateStatus(i);break}case"comm_open":if(this.handleComms){await this._handleCommOpen(e)}break;case"comm_msg":if(this.handleComms){await this._handleCommMsg(e)}break;case"comm_close":if(this.handleComms){await this._handleCommClose(e)}break;default:break}if(!this.isDisposed){this._assertCurrentMessage(e);this._iopubMessage.emit(e)}}}_reconnect(){this._errorIfDisposed();clearTimeout(this._reconnectTimeout);if(this._reconnectAttempt{if(t){if(typeof requirejs==="undefined"){throw new Error("requirejs not found")}requirejs([t],(n=>{if(n[e]===void 0){const n=`Object '${e}' not found in module '${t}'`;s(new Error(n))}else{i(n[e])}}),s)}else{if(n===null||n===void 0?void 0:n[e]){i(n[e])}else{s(new Error(`Object '${e}' not found in registry`))}}}))}e.loadObject=i;function s(e,t){e=Math.ceil(e);t=Math.floor(t);return Math.floor(Math.random()*(t-e+1))+e}e.getRandomIntInclusive=s})(w||(w={}))},46073:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=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 n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.KernelShellFutureHandler=t.KernelControlFutureHandler=t.KernelFutureHandler=void 0;const r=n(5592);const a=n(90044);const l=o(n(59798));class d extends a.DisposableDelegate{constructor(e,t,n,i,s){super(e);this._status=0;this._stdin=u.noOp;this._iopub=u.noOp;this._reply=u.noOp;this._done=new r.PromiseDelegate;this._hooks=new u.HookList;this._disposeOnDone=true;this._msg=t;if(!n){this._setFlag(u.KernelFutureFlag.GotReply)}this._disposeOnDone=i;this._kernel=s}get msg(){return this._msg}get done(){return this._done.promise}get onReply(){return this._reply}set onReply(e){this._reply=e}get onIOPub(){return this._iopub}set onIOPub(e){this._iopub=e}get onStdin(){return this._stdin}set onStdin(e){this._stdin=e}registerMessageHook(e){if(this.isDisposed){throw new Error("Kernel future is disposed")}this._hooks.add(e)}removeMessageHook(e){if(this.isDisposed){return}this._hooks.remove(e)}sendInputReply(e,t){this._kernel.sendInputReply(e,t)}dispose(){this._stdin=u.noOp;this._iopub=u.noOp;this._reply=u.noOp;this._hooks=null;if(!this._testFlag(u.KernelFutureFlag.IsDone)){this._done.promise.catch((()=>{}));this._done.reject(new Error(`Canceled future for ${this.msg.header.msg_type} message before replies were done`))}super.dispose()}async handleMsg(e){switch(e.channel){case"control":case"shell":if(e.channel===this.msg.channel&&e.parent_header.msg_id===this.msg.header.msg_id){await this._handleReply(e)}break;case"stdin":await this._handleStdin(e);break;case"iopub":await this._handleIOPub(e);break;default:break}}async _handleReply(e){const t=this._reply;if(t){await t(e)}this._replyMsg=e;this._setFlag(u.KernelFutureFlag.GotReply);if(this._testFlag(u.KernelFutureFlag.GotIdle)){this._handleDone()}}async _handleStdin(e){this._kernel.hasPendingInput=true;const t=this._stdin;if(t){await t(e)}}async _handleIOPub(e){const t=await this._hooks.process(e);const n=this._iopub;if(t&&n){await n(e)}if(l.isStatusMsg(e)&&e.content.execution_state==="idle"){this._setFlag(u.KernelFutureFlag.GotIdle);if(this._testFlag(u.KernelFutureFlag.GotReply)){this._handleDone()}}}_handleDone(){if(this._testFlag(u.KernelFutureFlag.IsDone)){return}this._setFlag(u.KernelFutureFlag.IsDone);this._done.resolve(this._replyMsg);if(this._disposeOnDone){this.dispose()}}_testFlag(e){return(this._status&e)!==0}_setFlag(e){this._status|=e}}t.KernelFutureHandler=d;class c extends d{}t.KernelControlFutureHandler=c;class h extends d{}t.KernelShellFutureHandler=h;var u;(function(e){e.noOp=()=>{};const t=(()=>{const e=typeof requestAnimationFrame==="function";return e?requestAnimationFrame:setImmediate})();class n{constructor(){this._hooks=[]}add(e){this.remove(e);this._hooks.push(e)}remove(e){const t=this._hooks.indexOf(e);if(t>=0){this._hooks[t]=null;this._scheduleCompact()}}async process(e){await this._processing;const t=new r.PromiseDelegate;this._processing=t.promise;let n;for(let s=this._hooks.length-1;s>=0;s--){const o=this._hooks[s];if(o===null){continue}try{n=await o(e)}catch(i){n=true;console.error(i)}if(n===false){t.resolve(undefined);return false}}t.resolve(undefined);return true}_scheduleCompact(){if(!this._compactScheduled){this._compactScheduled=true;t((()=>{this._processing=this._processing.then((()=>{this._compactScheduled=false;this._compact()}))}))}}_compact(){let e=0;for(let t=0,n=this._hooks.length;t{"use strict";Object.defineProperty(t,"__esModule",{value:true})},47275:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KernelManager=void 0;const i=n(26568);const s=n(2336);const o=n(50608);const r=n(5412);const a=n(38662);const l=n(45089);const d=n(321);class c extends r.BaseManager{constructor(e={}){var t,n,r;super(e);this._commsOverSubshells=o.CommsOverSubshells.PerCommTarget;this._isReady=false;this._kernelConnections=new Set;this._models=new Map;this._runningChanged=new s.Signal(this);this._connectionFailure=new s.Signal(this);this._kernelAPIClient=(t=e.kernelAPIClient)!==null&&t!==void 0?t:new a.KernelAPIClient({serverSettings:this.serverSettings});this._kernelSpecAPIClient=(n=e.kernelSpecAPIClient)!==null&&n!==void 0?n:new d.KernelSpecAPIClient({serverSettings:this.serverSettings});this._pollModels=new i.Poll({auto:false,factory:()=>this.requestRunning(),frequency:{interval:10*1e3,backoff:true,max:300*1e3},name:`@jupyterlab/services:KernelManager#models`,standby:(r=e.standby)!==null&&r!==void 0?r:"when-hidden"});this._ready=(async()=>{await this._pollModels.start();await this._pollModels.tick;this._isReady=true})()}get isReady(){return this._isReady}get ready(){return this._ready}get runningChanged(){return this._runningChanged}get connectionFailure(){return this._connectionFailure}dispose(){if(this.isDisposed){return}this._models.clear();this._kernelConnections.forEach((e=>e.dispose()));this._pollModels.dispose();super.dispose()}connectTo(e){var t;const{id:n}=e.model;let i=(t=e.handleComms)!==null&&t!==void 0?t:true;if(e.handleComms===undefined){for(const e of this._kernelConnections){if(e.id===n&&e.handleComms){i=false;break}}}e.commsOverSubshells=this._commsOverSubshells;const s=new l.KernelConnection({handleComms:i,...e,serverSettings:this.serverSettings,kernelAPIClient:this._kernelAPIClient,kernelSpecAPIClient:this._kernelSpecAPIClient});this._onStarted(s);if(!this._models.has(n)){void this.refreshRunning().catch((()=>{}))}return s}running(){return this._models.values()}get runningCount(){return this._models.size}get commsOverSubshells(){return this._commsOverSubshells}set commsOverSubshells(e){this._commsOverSubshells=e;for(const t of this._kernelConnections){t.commsOverSubshells=e}}async refreshRunning(){await this._pollModels.refresh();await this._pollModels.tick}async startNew(e={},t={}){const n=await this._kernelAPIClient.startNew(e);return this.connectTo({...t,model:n})}async shutdown(e){await this._kernelAPIClient.shutdown(e);await this.refreshRunning()}async shutdownAll(){await this.refreshRunning();await Promise.all([...this._models.keys()].map((e=>this._kernelAPIClient.shutdown(e))));await this.refreshRunning()}async findById(e){if(this._models.has(e)){return this._models.get(e)}await this.refreshRunning();return this._models.get(e)}async requestRunning(){var e,t;let n;try{n=await this._kernelAPIClient.listRunning()}catch(i){if(i instanceof o.ServerConnection.NetworkError||((e=i.response)===null||e===void 0?void 0:e.status)===503||((t=i.response)===null||t===void 0?void 0:t.status)===424){this._connectionFailure.emit(i)}throw i}if(this.isDisposed){return}if(this._models.size===n.length&&n.every((e=>{const t=this._models.get(e.id);if(!t){return false}return t.connections===e.connections&&t.execution_state===e.execution_state&&t.last_activity===e.last_activity&&t.name===e.name&&t.reason===e.reason&&t.traceback===e.traceback}))){return}this._models=new Map(n.map((e=>[e.id,e])));this._kernelConnections.forEach((e=>{if(!this._models.has(e.id)){e.handleShutdown()}}));this._runningChanged.emit(n)}_onStarted(e){this._kernelConnections.add(e);e.statusChanged.connect(this._onStatusChanged,this);e.disposed.connect(this._onDisposed,this)}_onDisposed(e){this._kernelConnections.delete(e);void this.refreshRunning().catch((()=>{}))}_onStatusChanged(e,t){if(t==="dead"){void this.refreshRunning().catch((()=>{}))}}}t.KernelManager=c;(function(e){class t extends e{constructor(){super(...arguments);this._readyPromise=new Promise((()=>{}))}get isActive(){return false}get parentReady(){return super.ready}async startNew(e={},t={}){return Promise.reject(new Error("Not implemented in no-op Kernel Manager"))}connectTo(e){throw new Error("Not implemented in no-op Kernel Manager")}async shutdown(e){return Promise.reject(new Error("Not implemented in no-op Kernel Manager"))}get ready(){return this.parentReady.then((()=>this._readyPromise))}async requestRunning(){return Promise.resolve()}}e.NoopManager=t})(c||(t.KernelManager=c={}))},59798:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.supportedKernelWebSocketProtocols=void 0;t.createMessage=s;t.isStreamMsg=o;t.isDisplayDataMsg=r;t.isUpdateDisplayDataMsg=a;t.isExecuteInputMsg=l;t.isExecuteResultMsg=d;t.isErrorMsg=c;t.isStatusMsg=h;t.isClearOutputMsg=u;t.isDebugEventMsg=p;t.isCommOpenMsg=m;t.isCommCloseMsg=g;t.isCommMsgMsg=f;t.isInfoRequestMsg=v;t.isExecuteReplyMsg=_;t.isDebugRequestMsg=b;t.isDebugReplyMsg=y;t.isInputRequestMsg=w;t.isInputReplyMsg=C;const i=n(5592);function s(e){var t,n,s,o,r,a;return{buffers:(t=e.buffers)!==null&&t!==void 0?t:[],channel:e.channel,content:e.content,header:{date:(new Date).toISOString(),msg_id:(n=e.msgId)!==null&&n!==void 0?n:i.UUID.uuid4(),msg_type:e.msgType,session:e.session,username:(s=e.username)!==null&&s!==void 0?s:"",subshell_id:(o=e.subshellId)!==null&&o!==void 0?o:null,version:"5.2"},metadata:(r=e.metadata)!==null&&r!==void 0?r:{},parent_header:(a=e.parentHeader)!==null&&a!==void 0?a:{}}}function o(e){return e.header.msg_type==="stream"}function r(e){return e.header.msg_type==="display_data"}function a(e){return e.header.msg_type==="update_display_data"}function l(e){return e.header.msg_type==="execute_input"}function d(e){return e.header.msg_type==="execute_result"}function c(e){return e.header.msg_type==="error"}function h(e){return e.header.msg_type==="status"}function u(e){return e.header.msg_type==="clear_output"}function p(e){return e.header.msg_type==="debug_event"}function m(e){return e.header.msg_type==="comm_open"}function g(e){return e.header.msg_type==="comm_close"}function f(e){return e.header.msg_type==="comm_msg"}function v(e){return e.header.msg_type==="kernel_info_request"}function _(e){return e.header.msg_type==="execute_reply"}function b(e){return e.header.msg_type==="debug_request"}function y(e){return e.header.msg_type==="debug_reply"}function w(e){return e.header.msg_type==="input_request"}function C(e){return e.header.msg_type==="input_reply"}var x;(function(e){e["v1KernelWebsocketJupyterOrg"]="v1.kernel.websocket.jupyter.org"})(x||(t.supportedKernelWebSocketProtocols=x={}))},38662:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KernelAPIClient=t.KERNEL_SERVICE_URL=void 0;t.listRunning=r;t.startNew=a;t.restartKernel=l;t.interruptKernel=d;t.shutdownKernel=c;t.getKernelModel=h;const i=n(1089);const s=n(40959);const o=n(38872);t.KERNEL_SERVICE_URL="api/kernels";async function r(e=i.ServerConnection.makeSettings()){const n=s.URLExt.join(e.baseUrl,t.KERNEL_SERVICE_URL);const r=await i.ServerConnection.makeRequest(n,{},e);if(r.status!==200){const e=await i.ServerConnection.ResponseError.create(r);throw e}const a=await r.json();(0,o.validateModels)(a);return a}async function a(e={},n=i.ServerConnection.makeSettings()){const r=s.URLExt.join(n.baseUrl,t.KERNEL_SERVICE_URL);const a={method:"POST",body:JSON.stringify(e)};const l=await i.ServerConnection.makeRequest(r,a,n);if(l.status!==201){const e=await i.ServerConnection.ResponseError.create(l);throw e}const d=await l.json();(0,o.validateModel)(d);return d}async function l(e,n=i.ServerConnection.makeSettings()){const r=s.URLExt.join(n.baseUrl,t.KERNEL_SERVICE_URL,encodeURIComponent(e),"restart");const a={method:"POST"};const l=await i.ServerConnection.makeRequest(r,a,n);if(l.status!==200){const e=await i.ServerConnection.ResponseError.create(l);throw e}const d=await l.json();(0,o.validateModel)(d)}async function d(e,n=i.ServerConnection.makeSettings()){const o=s.URLExt.join(n.baseUrl,t.KERNEL_SERVICE_URL,encodeURIComponent(e),"interrupt");const r={method:"POST"};const a=await i.ServerConnection.makeRequest(o,r,n);if(a.status!==204){const e=await i.ServerConnection.ResponseError.create(a);throw e}}async function c(e,n=i.ServerConnection.makeSettings()){const o=s.URLExt.join(n.baseUrl,t.KERNEL_SERVICE_URL,encodeURIComponent(e));const r={method:"DELETE"};const a=await i.ServerConnection.makeRequest(o,r,n);if(a.status===404){const t=`The kernel "${e}" does not exist on the server`;console.warn(t)}else if(a.status!==204){const e=await i.ServerConnection.ResponseError.create(a);throw e}}async function h(e,n=i.ServerConnection.makeSettings()){const r=s.URLExt.join(n.baseUrl,t.KERNEL_SERVICE_URL,encodeURIComponent(e));const a=await i.ServerConnection.makeRequest(r,{},n);if(a.status===404){return undefined}else if(a.status!==200){const e=await i.ServerConnection.ResponseError.create(a);throw e}const l=await a.json();(0,o.validateModel)(l);return l}class u{constructor(e={}){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:i.ServerConnection.makeSettings()}async listRunning(){return r(this.serverSettings)}async getModel(e){return h(e,this.serverSettings)}async startNew(e={}){return a(e,this.serverSettings)}async restart(e){return l(e,this.serverSettings)}async interrupt(e){return d(e,this.serverSettings)}async shutdown(e){return c(e,this.serverSettings)}}t.KernelAPIClient=u},93962:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=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 n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.serialize=a;t.deserialize=l;const r=o(n(59798));function a(e,t=""){switch(t){case r.supportedKernelWebSocketProtocols.v1KernelWebsocketJupyterOrg:return d.serializeV1KernelWebsocketJupyterOrg(e);default:return d.serializeDefault(e)}}function l(e,t=""){switch(t){case r.supportedKernelWebSocketProtocols.v1KernelWebsocketJupyterOrg:return d.deserializeV1KernelWebsocketJupyterOrg(e);default:return d.deserializeDefault(e)}}var d;(function(e){function t(e){let t;const n=new DataView(e);const i=Number(n.getBigUint64(0,true));let s=[];for(let u=0;u{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateMessage=a;t.validateModel=d;t.validateModels=c;const i=n(1480);const s=["username","version","session","msg_id","msg_type"];const o={stream:{name:"string",text:"string"},display_data:{data:"object",metadata:"object"},execute_input:{code:"string",execution_count:"number"},execute_result:{execution_count:"number",data:"object",metadata:"object"},error:{ename:"string",evalue:"string",traceback:"object"},status:{execution_state:["string",["starting","idle","busy","restarting","dead"]]},clear_output:{wait:"boolean"},comm_open:{comm_id:"string",target_name:"string",data:"object"},comm_msg:{comm_id:"string",data:"object"},comm_close:{comm_id:"string"},shutdown_reply:{restart:"boolean"}};function r(e){for(let t=0;td(e)))}},76807:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=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 n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};var r=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))i(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});t.KernelSpecAPI=t.KernelSpec=void 0;const a=o(n(51229));t.KernelSpec=a;const l=o(n(321));t.KernelSpecAPI=l;r(n(26224),t)},51229:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},26224:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KernelSpecManager=void 0;const i=n(5592);const s=n(26568);const o=n(2336);const r=n(5412);const a=n(321);class l extends r.BaseManager{constructor(e={}){var t,n;super(e);this._isReady=false;this._connectionFailure=new o.Signal(this);this._specs=null;this._specsChanged=new o.Signal(this);this._kernelSpecAPIClient=(t=e.kernelSpecAPIClient)!==null&&t!==void 0?t:new a.KernelSpecAPIClient({serverSettings:this.serverSettings});this._ready=Promise.all([this.requestSpecs()]).then((e=>undefined)).catch((e=>undefined)).then((()=>{if(this.isDisposed){return}this._isReady=true}));this._pollSpecs=new s.Poll({auto:false,factory:()=>this.requestSpecs(),frequency:{interval:61*1e3,backoff:true,max:300*1e3},name:`@jupyterlab/services:KernelSpecManager#specs`,standby:(n=e.standby)!==null&&n!==void 0?n:"when-hidden"});void this.ready.then((()=>{void this._pollSpecs.start()}))}get isReady(){return this._isReady}get ready(){return this._ready}get specs(){return this._specs}get specsChanged(){return this._specsChanged}get connectionFailure(){return this._connectionFailure}dispose(){this._pollSpecs.dispose();super.dispose()}async refreshSpecs(){await this._pollSpecs.refresh();await this._pollSpecs.tick}async requestSpecs(){const e=await this._kernelSpecAPIClient.get();if(this.isDisposed){return}if(!i.JSONExt.deepEqual(e,this._specs)){this._specs=e;this._specsChanged.emit(e)}}}t.KernelSpecManager=l},321:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KernelSpecAPIClient=void 0;t.getSpecs=a;const i=n(1089);const s=n(79237);const o=n(40959);const r="api/kernelspecs";async function a(e=i.ServerConnection.makeSettings()){const t=o.URLExt.join(e.baseUrl,r);const n=await i.ServerConnection.makeRequest(t,{},e);if(n.status!==200){const e=await i.ServerConnection.ResponseError.create(n);throw e}const a=await n.json();return(0,s.validateSpecModels)(a)}class l{constructor(e={}){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:i.ServerConnection.makeSettings()}async get(){return a(this.serverSettings)}}t.KernelSpecAPIClient=l},79237:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateSpecModel=s;t.validateSpecModels=o;const i=n(1480);function s(e){const t=e.spec;if(!t){throw new Error("Invalid kernel spec")}(0,i.validateProperty)(e,"name","string");(0,i.validateProperty)(e,"resources","object");(0,i.validateProperty)(t,"language","string");(0,i.validateProperty)(t,"display_name","string");(0,i.validateProperty)(t,"argv","array");let n=null;if(t.hasOwnProperty("metadata")){(0,i.validateProperty)(t,"metadata","object");n=t.metadata}let s=null;if(t.hasOwnProperty("env")){(0,i.validateProperty)(t,"env","object");s=t.env}return{name:e.name,resources:e.resources,language:t.language,display_name:t.display_name,argv:t.argv,metadata:n,env:s}}function o(e){if(!e.hasOwnProperty("kernelspecs")){throw new Error("No kernelspecs found")}let t=Object.keys(e.kernelspecs);const n=Object.create(null);let i=e.default;for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceManager=void 0;const i=n(2336);const s=n(44816);const o=n(97375);const r=n(1091);const a=n(14272);const l=n(76807);const d=n(93892);const c=n(1089);const h=n(86923);const u=n(95399);const p=n(67569);const m=n(18430);const g=n(90362);class f{constructor(e={}){var t,n;this._isDisposed=false;this._connectionFailure=new i.Signal(this);this._isReady=false;const f=e.defaultDrive;const v=(t=e.serverSettings)!==null&&t!==void 0?t:c.ServerConnection.makeSettings();const _=(n=e.standby)!==null&&n!==void 0?n:"when-hidden";const b={defaultDrive:f,serverSettings:v,standby:_};this.serverSettings=v;this.contents=e.contents||new o.ContentsManager(b);this.events=e.events||new r.EventManager(b);this.kernels=e.kernels||new a.KernelManager(b);this.sessions=e.sessions||new h.SessionManager({...b,kernelManager:this.kernels});this.settings=e.settings||new u.SettingManager(b);this.terminals=e.terminals||new p.TerminalManager(b);this.builder=e.builder||new s.BuildManager(b);this.workspaces=e.workspaces||new g.WorkspaceManager(b);this.nbconvert=e.nbconvert||new d.NbConvertManager(b);this.kernelspecs=e.kernelspecs||new l.KernelSpecManager(b);this.user=e.user||new m.UserManager(b);this.kernelspecs.connectionFailure.connect(this._onConnectionFailure,this);this.sessions.connectionFailure.connect(this._onConnectionFailure,this);this.terminals.connectionFailure.connect(this._onConnectionFailure,this);const y=[this.sessions.ready,this.kernelspecs.ready];if(this.terminals.isAvailable()){y.push(this.terminals.ready)}this._readyPromise=Promise.all(y).then((()=>{this._isReady=true}))}get connectionFailure(){return this._connectionFailure}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;i.Signal.clearData(this);this.contents.dispose();this.events.dispose();this.sessions.dispose();this.terminals.dispose()}get isReady(){return this._isReady}get ready(){return this._readyPromise}_onConnectionFailure(e,t){this._connectionFailure.emit(t)}}t.ServiceManager=f},93892:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NbConvertManager=void 0;const i=n(40959);const s=n(1089);const o=n(5592);const r="api/nbconvert";const a="nbconvert";class l{constructor(e={}){var t;this._exportFormats=null;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:s.ServerConnection.makeSettings()}async fetchExportFormats(){this._requestingFormats=new o.PromiseDelegate;this._exportFormats=null;const e=this.serverSettings.baseUrl;const t=i.URLExt.join(e,r);const{serverSettings:n}=this;const a=await s.ServerConnection.makeRequest(t,{},n);if(a.status!==200){const e=await s.ServerConnection.ResponseError.create(a);throw e}const l=await a.json();const d={};const c=Object.keys(l);c.forEach((function(e){const t=l[e].output_mimetype;d[e]={output_mimetype:t}}));this._exportFormats=d;this._requestingFormats.resolve(d);return d}async getExportFormats(e=true){if(this._requestingFormats){return this._requestingFormats.promise}if(e||!this._exportFormats){return await this.fetchExportFormats()}return this._exportFormats}async exportAs(e){const{format:t,path:n}=e;const{download:s=false}=e.exporterOptions||{};const o=this.serverSettings.baseUrl;const r=i.URLExt.encodeParts(n);let l=i.URLExt.join(o,a,t,r);if(s){l+="?download=true"}window===null||window===void 0?void 0:window.open(l,"_blank","noopener")}}t.NbConvertManager=l},1089:(e,t,n)=>{"use strict";var i=n(65606);Object.defineProperty(t,"__esModule",{value:true});t.ServerConnection=void 0;const s=n(40959);const o=n(93962);let r;if(typeof window==="undefined"){r=n(36513)}else{r=WebSocket}var a;(function(e){function t(e){return l.makeSettings(e)}e.makeSettings=t;function n(e,t,n){return l.handleRequest(e,t,n)}e.makeRequest=n;class i extends Error{static async create(e){try{const t=await e.json();const{message:n,traceback:s}=t;if(s){console.error(s)}return new i(e,n!==null&&n!==void 0?n:i._defaultMessage(e),s!==null&&s!==void 0?s:"")}catch(t){console.debug(t);return new i(e)}}constructor(e,t=i._defaultMessage(e),n=""){super(t);this.response=e;this.traceback=n}static _defaultMessage(e){return`Invalid response: ${e.status} ${e.statusText}`}}e.ResponseError=i;class s extends TypeError{constructor(e){super(e.message);this.stack=e.stack}}e.NetworkError=s})(a||(t.ServerConnection=a={}));var l;(function(e){function t(e={}){var t;const n=s.PageConfig.getBaseUrl();const a=s.PageConfig.getWsUrl();const l=s.URLExt.normalize(e.baseUrl)||n;let d=e.wsUrl;if(!d&&l===n){d=a}if(!d&&l.indexOf("http")===0){d="ws"+l.slice(4)}d=d!==null&&d!==void 0?d:a;const c=s.PageConfig.getOption("appendToken").toLowerCase();let h;if(c===""){h=typeof window==="undefined"||typeof i!=="undefined"&&((t=i===null||i===void 0?void 0:i.env)===null||t===void 0?void 0:t.JEST_WORKER_ID)!==undefined||s.URLExt.getHostName(n)!==s.URLExt.getHostName(d)}else{h=c==="true"}return{init:{cache:"no-store",credentials:"same-origin"},fetch,Headers,Request,WebSocket:r,token:s.PageConfig.getToken(),appUrl:s.PageConfig.getOption("appUrl"),appendToken:h,serializer:{serialize:o.serialize,deserialize:o.deserialize},...e,baseUrl:l,wsUrl:d}}e.makeSettings=t;function n(e,t,n){var i;if(e.indexOf(n.baseUrl)!==0){throw new Error("Can only be used for notebook server requests")}const s=(i=t.cache)!==null&&i!==void 0?i:n.init.cache;if(s==="no-store"){e+=(/\?/.test(e)?"&":"?")+(new Date).getTime()}const o=new n.Request(e,{...n.init,...t});let r=false;if(n.token){r=true;o.headers.append("Authorization",`token ${n.token}`)}if(typeof document!=="undefined"){const e=l("_xsrf");if(e!==undefined){r=true;o.headers.append("X-XSRFToken",e)}}if(!o.headers.has("Content-Type")&&r){o.headers.set("Content-Type","application/json")}return n.fetch.call(null,o).catch((e=>{throw new a.NetworkError(e)}))}e.handleRequest=n;function l(e){let t="";try{t=document.cookie}catch(i){return}const n=t.match("\\b"+e+"=([^;]*)\\b");return n===null||n===void 0?void 0:n[1]}})(l||(l={}))},26830:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SessionConnection=void 0;const i=n(2336);const s=n(50608);const o=n(5592);const r=n(70637);class a{constructor(e){var t,n,a,l,d;this._id="";this._path="";this._name="";this._type="";this._kernel=null;this._isDisposed=false;this._disposed=new i.Signal(this);this._kernelChanged=new i.Signal(this);this._statusChanged=new i.Signal(this);this._connectionStatusChanged=new i.Signal(this);this._pendingInput=new i.Signal(this);this._iopubMessage=new i.Signal(this);this._unhandledMessage=new i.Signal(this);this._anyMessage=new i.Signal(this);this._propertyChanged=new i.Signal(this);this._id=e.model.id;this._name=e.model.name;this._path=e.model.path;this._type=e.model.type;this._username=(t=e.username)!==null&&t!==void 0?t:"";this._clientId=(n=e.clientId)!==null&&n!==void 0?n:o.UUID.uuid4();this._connectToKernel=e.connectToKernel;this._kernelConnectionOptions=(a=e.kernelConnectionOptions)!==null&&a!==void 0?a:{};this.serverSettings=(l=e.serverSettings)!==null&&l!==void 0?l:s.ServerConnection.makeSettings();this._sessionAPIClient=(d=e.sessionAPIClient)!==null&&d!==void 0?d:new r.SessionAPIClient({serverSettings:this.serverSettings});this.setupKernel(e.model.kernel)}get disposed(){return this._disposed}get kernelChanged(){return this._kernelChanged}get statusChanged(){return this._statusChanged}get connectionStatusChanged(){return this._connectionStatusChanged}get pendingInput(){return this._pendingInput}get iopubMessage(){return this._iopubMessage}get unhandledMessage(){return this._unhandledMessage}get anyMessage(){return this._anyMessage}get propertyChanged(){return this._propertyChanged}get id(){return this._id}get kernel(){return this._kernel}get path(){return this._path}get type(){return this._type}get name(){return this._name}get model(){return{id:this.id,kernel:this.kernel&&{id:this.kernel.id,name:this.kernel.name},path:this._path,type:this._type,name:this._name}}get isDisposed(){return this._isDisposed}update(e){const t=this.model;this._path=e.path;this._name=e.name;this._type=e.type;if(this._kernel===null&&e.kernel!==null||this._kernel!==null&&e.kernel===null||this._kernel!==null&&e.kernel!==null&&this._kernel.id!==e.kernel.id){if(this._kernel!==null){this._kernel.dispose()}const t=this._kernel||null;this.setupKernel(e.kernel);const n=this._kernel||null;this._kernelChanged.emit({name:"kernel",oldValue:t,newValue:n})}this._handleModelChange(t)}dispose(){if(this.isDisposed){return}this._isDisposed=true;this._disposed.emit();if(this._kernel){this._kernel.dispose();const e=this._kernel;this._kernel=null;const t=this._kernel;this._kernelChanged.emit({name:"kernel",oldValue:e,newValue:t})}i.Signal.clearData(this)}async setPath(e){if(this.isDisposed){throw new Error("Session is disposed")}await this._patch({path:e})}async setName(e){if(this.isDisposed){throw new Error("Session is disposed")}await this._patch({name:e})}async setType(e){if(this.isDisposed){throw new Error("Session is disposed")}await this._patch({type:e})}async changeKernel(e){if(this.isDisposed){throw new Error("Session is disposed")}await this._patch({kernel:e});return this.kernel}async shutdown(){if(this.isDisposed){throw new Error("Session is disposed")}await this._sessionAPIClient.shutdown(this.id);this.dispose()}setupKernel(e){if(e===null){this._kernel=null;return}const t=this._connectToKernel({...this._kernelConnectionOptions,model:e,username:this._username,clientId:this._clientId,serverSettings:this.serverSettings});this._kernel=t;t.statusChanged.connect(this.onKernelStatus,this);t.connectionStatusChanged.connect(this.onKernelConnectionStatus,this);t.pendingInput.connect(this.onPendingInput,this);t.unhandledMessage.connect(this.onUnhandledMessage,this);t.iopubMessage.connect(this.onIOPubMessage,this);t.anyMessage.connect(this.onAnyMessage,this)}onKernelStatus(e,t){this._statusChanged.emit(t)}onKernelConnectionStatus(e,t){this._connectionStatusChanged.emit(t)}onPendingInput(e,t){this._pendingInput.emit(t)}onIOPubMessage(e,t){this._iopubMessage.emit(t)}onUnhandledMessage(e,t){this._unhandledMessage.emit(t)}onAnyMessage(e,t){this._anyMessage.emit(t)}async _patch(e){const t=await this._sessionAPIClient.update({...e,id:this._id});this.update(t);return t}_handleModelChange(e){if(e.name!==this._name){this._propertyChanged.emit("name")}if(e.type!==this._type){this._propertyChanged.emit("type")}if(e.path!==this._path){this._propertyChanged.emit("path")}}}t.SessionConnection=a},86923:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=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 n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};var r=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))i(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});t.SessionAPI=t.Session=void 0;const a=o(n(82827));t.Session=a;const l=o(n(70637));t.SessionAPI=l;r(n(57740),t)},57740:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SessionManager=void 0;const i=n(26568);const s=n(2336);const o=n(1089);const r=n(5412);const a=n(26830);const l=n(70637);class d extends r.BaseManager{constructor(e){var t,n;super(e);this._isReady=false;this._sessionConnections=new Set;this._models=new Map;this._runningChanged=new s.Signal(this);this._connectionFailure=new s.Signal(this);this._connectToKernel=e=>this._kernelManager.connectTo(e);this._kernelManager=e.kernelManager;this._sessionAPIClient=(t=e.sessionAPIClient)!==null&&t!==void 0?t:new l.SessionAPIClient({serverSettings:e.serverSettings});this._pollModels=new i.Poll({auto:false,factory:()=>this.requestRunning(),frequency:{interval:10*1e3,backoff:true,max:300*1e3},name:`@jupyterlab/services:SessionManager#models`,standby:(n=e.standby)!==null&&n!==void 0?n:"when-hidden"});this._ready=(async()=>{await this._pollModels.start();await this._pollModels.tick;if(this._kernelManager.isActive){await this._kernelManager.ready}this._isReady=true})()}get isReady(){return this._isReady}get ready(){return this._ready}get runningChanged(){return this._runningChanged}get connectionFailure(){return this._connectionFailure}dispose(){if(this.isDisposed){return}this._models.clear();this._sessionConnections.forEach((e=>e.dispose()));this._pollModels.dispose();super.dispose()}connectTo(e){const t=new a.SessionConnection({...e,connectToKernel:this._connectToKernel,serverSettings:this.serverSettings,sessionAPIClient:this._sessionAPIClient});this._onStarted(t);if(!this._models.has(e.model.id)){void this.refreshRunning().catch((()=>{}))}return t}running(){return this._models.values()}async refreshRunning(){await this._pollModels.refresh();await this._pollModels.tick}async startNew(e,t={}){const n=await this._sessionAPIClient.startNew(e);await this.refreshRunning();return this.connectTo({...t,model:n})}async shutdown(e){await this._sessionAPIClient.shutdown(e);await this.refreshRunning()}async shutdownAll(){await this.refreshRunning();await Promise.all([...this._models.keys()].map((e=>this._sessionAPIClient.shutdown(e))));await this.refreshRunning()}async stopIfNeeded(e){try{const t=await this._sessionAPIClient.listRunning();const n=t.filter((t=>t.path===e));if(n.length===1){const e=n[0].id;await this.shutdown(e)}}catch(t){}}async findById(e){if(this._models.has(e)){return this._models.get(e)}await this.refreshRunning();return this._models.get(e)}async findByPath(e){for(const t of this._models.values()){if(t.path===e){return t}}await this.refreshRunning();for(const t of this._models.values()){if(t.path===e){return t}}return undefined}async requestRunning(){var e,t;let n;try{n=await this._sessionAPIClient.listRunning()}catch(i){if(i instanceof o.ServerConnection.NetworkError||((e=i.response)===null||e===void 0?void 0:e.status)===503||((t=i.response)===null||t===void 0?void 0:t.status)===424){this._connectionFailure.emit(i)}throw i}if(this.isDisposed){return}if(this._models.size===n.length&&n.every((e=>{var t,n,i,s;const o=this._models.get(e.id);if(!o){return false}return((t=o.kernel)===null||t===void 0?void 0:t.id)===((n=e.kernel)===null||n===void 0?void 0:n.id)&&((i=o.kernel)===null||i===void 0?void 0:i.name)===((s=e.kernel)===null||s===void 0?void 0:s.name)&&o.name===e.name&&o.path===e.path&&o.type===e.type}))){return}this._models=new Map(n.map((e=>[e.id,e])));this._sessionConnections.forEach((e=>{if(this._models.has(e.id)){e.update(this._models.get(e.id))}else{e.dispose()}}));this._runningChanged.emit(n)}_onStarted(e){this._sessionConnections.add(e);e.disposed.connect(this._onDisposed,this);e.propertyChanged.connect(this._onChanged,this);e.kernelChanged.connect(this._onChanged,this)}_onDisposed(e){this._sessionConnections.delete(e);void this.refreshRunning().catch((()=>{}))}_onChanged(){void this.refreshRunning().catch((()=>{}))}}t.SessionManager=d;(function(e){class t extends e{constructor(){super(...arguments);this._readyPromise=new Promise((()=>{}))}get isActive(){return false}get parentReady(){return super.ready}async startNew(e,t={}){return Promise.reject(new Error("Not implemented in no-op Session Manager"))}connectTo(e){throw Error("Not implemented in no-op Session Manager")}get ready(){return this.parentReady.then((()=>this._readyPromise))}async shutdown(e){return Promise.reject(new Error("Not implemented in no-op Session Manager"))}async requestRunning(){return Promise.resolve()}}e.NoopManager=t})(d||(t.SessionManager=d={}))},70637:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SessionAPIClient=t.SESSION_SERVICE_URL=void 0;t.listRunning=r;t.getSessionUrl=a;t.shutdownSession=l;t.getSessionModel=d;t.startSession=c;t.updateSession=h;const i=n(1089);const s=n(40959);const o=n(11521);t.SESSION_SERVICE_URL="api/sessions";async function r(e=i.ServerConnection.makeSettings()){const n=s.URLExt.join(e.baseUrl,t.SESSION_SERVICE_URL);const r=await i.ServerConnection.makeRequest(n,{},e);if(r.status!==200){const e=await i.ServerConnection.ResponseError.create(r);throw e}const a=await r.json();if(!Array.isArray(a)){throw new Error("Invalid Session list")}a.forEach((e=>{(0,o.updateLegacySessionModel)(e);(0,o.validateModel)(e)}));return a}function a(e,n){const i=s.URLExt.join(e,t.SESSION_SERVICE_URL);const o=s.URLExt.join(i,n);if(!o.startsWith(i)){throw new Error("Can only be used for services requests")}return o}async function l(e,t=i.ServerConnection.makeSettings()){var n;const s=a(t.baseUrl,e);const o={method:"DELETE"};const r=await i.ServerConnection.makeRequest(s,o,t);if(r.status===404){const t=await r.json();const i=(n=t.message)!==null&&n!==void 0?n:`The session "${e}"" does not exist on the server`;console.warn(i)}else if(r.status===410){throw new i.ServerConnection.ResponseError(r,"The kernel was deleted but the session was not")}else if(r.status!==204){const e=await i.ServerConnection.ResponseError.create(r);throw e}}async function d(e,t=i.ServerConnection.makeSettings()){const n=a(t.baseUrl,e);const s=await i.ServerConnection.makeRequest(n,{},t);if(s.status!==200){const e=await i.ServerConnection.ResponseError.create(s);throw e}const r=await s.json();(0,o.updateLegacySessionModel)(r);(0,o.validateModel)(r);return r}async function c(e,n=i.ServerConnection.makeSettings()){const r=s.URLExt.join(n.baseUrl,t.SESSION_SERVICE_URL);const a={method:"POST",body:JSON.stringify(e)};const l=await i.ServerConnection.makeRequest(r,a,n);if(l.status!==201){const e=await i.ServerConnection.ResponseError.create(l);throw e}const d=await l.json();(0,o.updateLegacySessionModel)(d);(0,o.validateModel)(d);return d}async function h(e,t=i.ServerConnection.makeSettings()){const n=a(t.baseUrl,e.id);const s={method:"PATCH",body:JSON.stringify(e)};const r=await i.ServerConnection.makeRequest(n,s,t);if(r.status!==200){const e=await i.ServerConnection.ResponseError.create(r);throw e}const l=await r.json();(0,o.updateLegacySessionModel)(l);(0,o.validateModel)(l);return l}class u{constructor(e){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:i.ServerConnection.makeSettings()}async listRunning(){return r(this.serverSettings)}async getModel(e){return d(e,this.serverSettings)}async startNew(e){return c(e,this.serverSettings)}async shutdown(e){return l(e,this.serverSettings)}async update(e){return h(e,this.serverSettings)}}t.SessionAPIClient=u},82827:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},11521:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateModel=o;t.updateLegacySessionModel=r;t.validateModels=a;const i=n(38872);const s=n(1480);function o(e){(0,s.validateProperty)(e,"id","string");(0,s.validateProperty)(e,"type","string");(0,s.validateProperty)(e,"name","string");(0,s.validateProperty)(e,"path","string");(0,s.validateProperty)(e,"kernel","object");(0,i.validateModel)(e.kernel)}function r(e){if(e.path===undefined&&e.notebook!==undefined){e.path=e.notebook.path;e.type="notebook";e.name=""}}function a(e){if(!Array.isArray(e)){throw new Error("Invalid session list")}e.forEach((e=>o(e)))}},95399:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SettingManager=void 0;const i=n(40959);const s=n(78629);const o=n(1089);const r="api/settings";class a extends s.DataConnector{constructor(e={}){var t;super();this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:o.ServerConnection.makeSettings()}async fetch(e){if(!e){throw new Error("Plugin `id` parameter is required for settings fetch.")}const{serverSettings:t}=this;const{baseUrl:n,appUrl:i}=t;const{makeRequest:s,ResponseError:r}=o.ServerConnection;const a=n+i;const d=l.url(a,e);const c=await s(d,{},t);if(c.status!==200){const e=await r.create(c);throw e}return c.json()}async list(e){var t,n,i,s;const{serverSettings:r}=this;const{baseUrl:a,appUrl:d}=r;const{makeRequest:c,ResponseError:h}=o.ServerConnection;const u=a+d;const p=l.url(u,"",e==="ids");const m=await c(p,{},r);if(m.status!==200){throw new h(m)}const g=await m.json();const f=(n=(t=g===null||g===void 0?void 0:g["settings"])===null||t===void 0?void 0:t.map((e=>e.id)))!==null&&n!==void 0?n:[];let v=[];if(!e){v=(s=(i=g===null||g===void 0?void 0:g["settings"])===null||i===void 0?void 0:i.map((e=>{e.data={composite:{},user:{}};return e})))!==null&&s!==void 0?s:[]}return{ids:f,values:v}}async save(e,t){const{serverSettings:n}=this;const{baseUrl:i,appUrl:s}=n;const{makeRequest:r,ResponseError:a}=o.ServerConnection;const d=i+s;const c=l.url(d,e);const h={body:JSON.stringify({raw:t}),method:"PUT"};const u=await r(c,h,n);if(u.status!==204){throw new a(u)}}}t.SettingManager=a;var l;(function(e){function t(e,t,n){const s=n?i.URLExt.objectToQueryString({ids_only:true}):"";const o=i.URLExt.join(e,r);const a=i.URLExt.join(o,t);if(!a.startsWith(o)){throw new Error("Can only be used for workspaces requests")}return`${a}${s}`}e.url=t})(l||(l={}))},12100:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TerminalConnection=void 0;const i=n(40959);const s=n(5592);const o=n(2336);const r=n(50608);const a=n(84903);class l{constructor(e){var t,n;this._createSocket=()=>{this._errorIfDisposed();this._clearSocket();this._updateConnectionStatus("connecting");const e=this._name;const t=this.serverSettings;let n=i.URLExt.join(t.wsUrl,"terminals","websocket",encodeURIComponent(e));const s=t.token;if(t.appendToken&&s!==""){n=n+`?token=${encodeURIComponent(s)}`}this._ws=new t.WebSocket(n);this._ws.onmessage=this._onWSMessage;this._ws.onclose=this._onWSClose;this._ws.onerror=this._onWSClose};this._onWSMessage=e=>{if(this._isDisposed){return}const t=JSON.parse(e.data);if(t[0]==="disconnect"){this.dispose()}if(this._connectionStatus==="connecting"){if(t[0]==="setup"){this._updateConnectionStatus("connected")}return}this._messageReceived.emit({type:t[0],content:t.slice(1)})};this._onWSClose=e=>{console.warn(`Terminal websocket closed: ${e.code}`);if(!this.isDisposed){this._reconnect()}};this._connectionStatus="connecting";this._connectionStatusChanged=new o.Signal(this);this._isDisposed=false;this._disposed=new o.Signal(this);this._messageReceived=new o.Signal(this);this._reconnectTimeout=null;this._ws=null;this._noOp=()=>{};this._reconnectLimit=7;this._reconnectAttempt=0;this._pendingMessages=[];this._name=e.model.name;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:r.ServerConnection.makeSettings();this._terminalAPIClient=(n=e.terminalAPIClient)!==null&&n!==void 0?n:new a.TerminalAPIClient({serverSettings:this.serverSettings});this._createSocket()}get disposed(){return this._disposed}get messageReceived(){return this._messageReceived}get name(){return this._name}get model(){return{name:this._name}}get isDisposed(){return this._isDisposed}dispose(){if(this._isDisposed){return}this._isDisposed=true;this._disposed.emit();this._updateConnectionStatus("disconnected");this._clearSocket();o.Signal.clearData(this)}send(e){this._sendMessage(e)}_sendMessage(e,t=true){if(this._isDisposed||!e.content){return}if(this.connectionStatus==="connected"&&this._ws){const t=[e.type,...e.content];this._ws.send(JSON.stringify(t))}else if(t){this._pendingMessages.push(e)}else{throw new Error(`Could not send message: ${JSON.stringify(e)}`)}}_sendPending(){while(this.connectionStatus==="connected"&&this._pendingMessages.length>0){this._sendMessage(this._pendingMessages[0],false);this._pendingMessages.shift()}}reconnect(){this._errorIfDisposed();const e=new s.PromiseDelegate;const t=(n,i)=>{if(i==="connected"){e.resolve();this.connectionStatusChanged.disconnect(t,this)}else if(i==="disconnected"){e.reject(new Error("Terminal connection disconnected"));this.connectionStatusChanged.disconnect(t,this)}};this.connectionStatusChanged.connect(t,this);this._reconnectAttempt=0;this._reconnect();return e.promise}_reconnect(){this._errorIfDisposed();clearTimeout(this._reconnectTimeout);if(this._reconnectAttempt{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TerminalManager=void 0;const i=n(26568);const s=n(2336);const o=n(50608);const r=n(5412);const a=n(84903);const l=n(12100);class d extends r.BaseManager{constructor(e={}){var t,n;super(e);this._isReady=false;this._names=[];this._terminalConnections=new Set;this._runningChanged=new s.Signal(this);this._connectionFailure=new s.Signal(this);this._terminalAPIClient=(t=e.terminalAPIClient)!==null&&t!==void 0?t:new a.TerminalAPIClient({serverSettings:this.serverSettings});if(!this.isAvailable()){this._ready=Promise.reject("Terminals unavailable");this._ready.catch((e=>undefined));return}const o=this._pollModels=new i.Poll({auto:false,factory:()=>this.requestRunning(),frequency:{interval:10*1e3,backoff:true,max:300*1e3},name:`@jupyterlab/services:TerminalManager#models`,standby:(n=e.standby)!==null&&n!==void 0?n:"when-hidden"});this._ready=(async()=>{await o.start();await o.tick;this._isReady=true})()}get isReady(){return this._isReady}get ready(){return this._ready}get runningChanged(){return this._runningChanged}get connectionFailure(){return this._connectionFailure}dispose(){var e;if(this.isDisposed){return}this._names.length=0;this._terminalConnections.forEach((e=>e.dispose()));(e=this._pollModels)===null||e===void 0?void 0:e.dispose();super.dispose()}isAvailable(){return this._terminalAPIClient.isAvailable}connectTo(e){const t=new l.TerminalConnection({...e,serverSettings:this.serverSettings,terminalAPIClient:this._terminalAPIClient});this._onStarted(t);if(!this._names.includes(e.model.name)){void this.refreshRunning().catch((()=>{}))}return t}running(){return this._models[Symbol.iterator]()}async refreshRunning(){if(this._pollModels){await this._pollModels.refresh();await this._pollModels.tick}}async startNew(e={}){const{name:t,cwd:n}=e;const i=await this._terminalAPIClient.startNew({name:t,cwd:n});await this.refreshRunning();return this.connectTo({model:i})}async shutdown(e){await this._terminalAPIClient.shutdown(e);await this.refreshRunning()}async shutdownAll(){await this.refreshRunning();await Promise.all(this._names.map((e=>this._terminalAPIClient.shutdown(e))));await this.refreshRunning()}async requestRunning(){var e,t;let n;try{n=await this._terminalAPIClient.listRunning()}catch(s){if(s instanceof o.ServerConnection.NetworkError||((e=s.response)===null||e===void 0?void 0:e.status)===503||((t=s.response)===null||t===void 0?void 0:t.status)===424){this._connectionFailure.emit(s)}throw s}if(this.isDisposed){return}const i=n.map((({name:e})=>e)).sort();if(i===this._names){return}this._names=i;this._terminalConnections.forEach((e=>{if(!i.includes(e.name)){e.dispose()}}));this._runningChanged.emit(this._models)}_onStarted(e){this._terminalConnections.add(e);e.disposed.connect(this._onDisposed,this)}_onDisposed(e){this._terminalConnections.delete(e);void this.refreshRunning().catch((()=>{}))}get _models(){return this._names.map((e=>({name:e})))}}t.TerminalManager=d;(function(e){class t extends e{constructor(){super(...arguments);this._readyPromise=new Promise((()=>{}))}get isActive(){return false}get parentReady(){return super.ready}get ready(){return this.parentReady.then((()=>this._readyPromise))}async startNew(e){return Promise.reject(new Error("Not implemented in no-op Terminal Manager"))}connectTo(e){throw Error("Not implemented in no-op Terminal Manager")}async shutdown(e){return Promise.reject(new Error("Not implemented in no-op Terminal Manager"))}async requestRunning(){return Promise.resolve()}}e.NoopManager=t})(d||(t.TerminalManager=d={}))},84903:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TerminalAPIClient=t.TERMINAL_SERVICE_URL=void 0;t.isAvailable=o;t.startNew=r;t.listRunning=a;t.shutdownTerminal=l;const i=n(40959);const s=n(1089);t.TERMINAL_SERVICE_URL="api/terminals";function o(){const e=String(i.PageConfig.getOption("terminalsAvailable"));return e.toLowerCase()==="true"}async function r(e=s.ServerConnection.makeSettings(),n,o){c.errorIfNotAvailable();const r=i.URLExt.join(e.baseUrl,t.TERMINAL_SERVICE_URL);const a={method:"POST",body:JSON.stringify({name:n,cwd:o})};const l=await s.ServerConnection.makeRequest(r,a,e);if(l.status!==200){const e=await s.ServerConnection.ResponseError.create(l);throw e}const d=await l.json();return d}async function a(e=s.ServerConnection.makeSettings()){c.errorIfNotAvailable();const n=i.URLExt.join(e.baseUrl,t.TERMINAL_SERVICE_URL);const o=await s.ServerConnection.makeRequest(n,{},e);if(o.status!==200){const e=await s.ServerConnection.ResponseError.create(o);throw e}const r=await o.json();if(!Array.isArray(r)){throw new Error("Invalid terminal list")}return r}async function l(e,n=s.ServerConnection.makeSettings()){var o;c.errorIfNotAvailable();const r=i.URLExt.join(n.baseUrl,t.TERMINAL_SERVICE_URL);const a=i.URLExt.join(r,e);if(!a.startsWith(r)){throw new Error("Can only be used for terminal requests")}const l={method:"DELETE"};const d=await s.ServerConnection.makeRequest(a,l,n);if(d.status===404){const t=await d.json();const n=(o=t.message)!==null&&o!==void 0?o:`The terminal session "${e}"" does not exist on the server`;console.warn(n)}else if(d.status!==204){const e=await s.ServerConnection.ResponseError.create(d);throw e}}class d{constructor(e={}){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:s.ServerConnection.makeSettings()}get isAvailable(){return o()}async startNew(e={}){const{name:t,cwd:n}=e;return r(this.serverSettings,t,n)}async listRunning(){return a(this.serverSettings)}async shutdown(e){return l(e,this.serverSettings)}}t.TerminalAPIClient=d;var c;(function(e){function t(){if(!o()){throw new Error("Terminals Unavailable")}}e.errorIfNotAvailable=t})(c||(c={}))},88917:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isAvailable=void 0;const i=n(84903);Object.defineProperty(t,"isAvailable",{enumerable:true,get:function(){return i.isAvailable}})},80856:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IWorkspaceManager=t.IUserManager=t.ITerminalManager=t.IServiceManager=t.ISettingManager=t.ISessionManager=t.IServerSettings=t.INbConvertManager=t.IKernelSpecManager=t.IKernelManager=t.IEventManager=t.IDefaultDrive=t.IDefaultContentProvider=t.IContentsManager=t.IConfigSectionManager=t.IConnectionStatus=void 0;const i=n(5592);t.IConnectionStatus=new i.Token("@jupyterlab/application:IConnectionStatus","A service providing the application connection status.");t.IConfigSectionManager=new i.Token("@jupyterlab/services:IConfigSectionManager","A service providing the config section manager.");t.IContentsManager=new i.Token("@jupyterlab/services:IContentsManager","The contents manager token.");t.IDefaultContentProvider=new i.Token("@jupyterlab/services:IDefaultContentProvider","The default content provider for the contents manager.");t.IDefaultDrive=new i.Token("@jupyterlab/services:IDefaultDrive","The default drive for the contents manager.");t.IEventManager=new i.Token("@jupyterlab/services:IEventManager","The event manager token.");t.IKernelManager=new i.Token("@jupyterlab/services:IKernelManager","The kernel manager token.");t.IKernelSpecManager=new i.Token("@jupyterlab/services:IKernelSpecManager","The kernel spec manager token.");t.INbConvertManager=new i.Token("@jupyterlab/services:INbConvertManager","The nbconvert manager token.");t.IServerSettings=new i.Token("@jupyterlab/services:IServerSettings","The server settings for the application.");t.ISessionManager=new i.Token("@jupyterlab/services:ISessionManager","The session manager token.");t.ISettingManager=new i.Token("@jupyterlab/services:ISettingManager","The setting manager token.");t.IServiceManager=new i.Token("@jupyterlab/services:IServiceManager","The service manager for the application.");t.ITerminalManager=new i.Token("@jupyterlab/services:ITerminalManager","The terminal manager token.");t.IUserManager=new i.Token("@jupyterlab/services:IUserManager","The user manager token.");t.IWorkspaceManager=new i.Token("@jupyterlab/services:IWorkspaceManager","The workspace manager token.")},18430:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=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 n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};var r=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))i(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});t.UserAPI=t.User=void 0;const a=o(n(71483));t.User=a;const l=o(n(34320));t.UserAPI=l;r(n(60961),t)},60961:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UserManager=void 0;const i=n(5592);const s=n(26568);const o=n(2336);const r=n(5412);const a=n(34320);const l="@jupyterlab/services:UserManager#user";class d extends r.BaseManager{constructor(e={}){var t,n;super(e);this._isReady=false;this._userChanged=new o.Signal(this);this._connectionFailure=new o.Signal(this);this._userApiClient=(t=e.userApiClient)!==null&&t!==void 0?t:new a.UserAPIClient({serverSettings:this.serverSettings});this._ready=this.requestUser().then((()=>{if(this.isDisposed){return}this._isReady=true})).catch((e=>new Promise((()=>{}))));this._pollUser=new s.Poll({auto:false,factory:()=>this.requestUser(),frequency:{interval:61*1e3,backoff:true,max:300*1e3},name:l,standby:(n=e.standby)!==null&&n!==void 0?n:"when-hidden"});void this.ready.then((()=>{void this._pollUser.start()}))}get isReady(){return this._isReady}get ready(){return this._ready}get identity(){return this._identity}get permissions(){return this._permissions}get userChanged(){return this._userChanged}get connectionFailure(){return this._connectionFailure}dispose(){this._pollUser.dispose();super.dispose()}async refreshUser(){await this._pollUser.refresh();await this._pollUser.tick}async requestUser(){if(this.isDisposed){return}const e={identity:this._identity,permissions:this._permissions};const t=await this._userApiClient.get();const n=t.identity;const{localStorage:s}=window;const o=s.getItem(l);if(o&&(!n.initials||!n.color)){const e=JSON.parse(o);n.initials=n.initials||e.initials||n.name.substring(0,1);n.color=n.color||e.color||c.getRandomColor()}if(!i.JSONExt.deepEqual(t,e)){this._identity=n;this._permissions=t.permissions;s.setItem(l,JSON.stringify(n));this._userChanged.emit(t)}}}t.UserManager=d;var c;(function(e){const t=["var(--jp-collaborator-color1)","var(--jp-collaborator-color2)","var(--jp-collaborator-color3)","var(--jp-collaborator-color4)","var(--jp-collaborator-color5)","var(--jp-collaborator-color6)","var(--jp-collaborator-color7)"];e.getRandomColor=()=>t[Math.floor(Math.random()*t.length)]})(c||(c={}))},34320:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UserAPIClient=void 0;const i=n(1089);const s=n(40959);const o="api/me";class r{constructor(e={}){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:i.ServerConnection.makeSettings()}async get(){const{baseUrl:e}=this.serverSettings;const{makeRequest:t,ResponseError:n}=i.ServerConnection;const r=s.URLExt.join(e,o);const a=await t(r,{},this.serverSettings);if(a.status!==200){const e=await n.create(a);throw e}return await a.json()}}t.UserAPIClient=r},71483:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},1480:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateProperty=n;function n(e,t,n,i=[]){if(!e.hasOwnProperty(t)){throw Error(`Missing property '${t}'`)}const s=e[t];if(n!==void 0){let e=true;switch(n){case"array":e=Array.isArray(s);break;case"object":e=typeof s!=="undefined";break;default:e=typeof s===n}if(!e){throw new Error(`Property '${t}' is not of type '${n}'`)}if(i.length>0){let e=true;switch(n){case"string":case"number":case"boolean":e=i.includes(s);break;default:e=i.findIndex((e=>e===s))>=0;break}if(!e){throw new Error(`Property '${t}' is not one of the valid values ${JSON.stringify(i)}`)}}}}},90362:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.WorkspaceManager=void 0;const i=n(40959);const s=n(78629);const o=n(1089);const r="api/workspaces";class a extends s.DataConnector{constructor(e={}){var t;super();this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:o.ServerConnection.makeSettings()}async fetch(e){const{serverSettings:t}=this;const{baseUrl:n,appUrl:i}=t;const{makeRequest:s,ResponseError:r}=o.ServerConnection;const a=n+i;const d=l.url(a,e);const c=await s(d,{},t);if(c.status!==200){const e=await r.create(c);throw e}return c.json()}async list(){const{serverSettings:e}=this;const{baseUrl:t,appUrl:n}=e;const{makeRequest:i,ResponseError:s}=o.ServerConnection;const r=t+n;const a=l.url(r,"");const d=await i(a,{},e);if(d.status!==200){const e=await s.create(d);throw e}const c=await d.json();return c.workspaces}async remove(e){const{serverSettings:t}=this;const{baseUrl:n,appUrl:i}=t;const{makeRequest:s,ResponseError:r}=o.ServerConnection;const a=n+i;const d=l.url(a,e);const c={method:"DELETE"};const h=await s(d,c,t);if(h.status!==204){const e=await r.create(h);throw e}}async save(e,t){const{serverSettings:n}=this;const{baseUrl:i,appUrl:s}=n;const{makeRequest:r,ResponseError:a}=o.ServerConnection;const d=i+s;const c=l.url(d,e);const h={body:JSON.stringify(t),method:"PUT"};const u=await r(c,h,n);if(u.status!==204){const e=await a.create(u);throw e}}}t.WorkspaceManager=a;var l;(function(e){function t(e,t){const n=i.URLExt.join(e,r);const s=i.URLExt.join(n,t);if(!s.startsWith(n)){throw new Error("Can only be used for workspaces requests")}return s}e.url=t})(l||(l={}))},34194:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>I});var i=n(88617);var s=n(38850);var o=n(44389);var r=n(4073);var a=n(95513);var l=n(667);var d=n(26849);var c=n(40065);var h=n(78629);var u=n(34881);var p=n(44914);var m=n.n(p);const g=e=>{const t=e.translator.load("jupyterlab");const[n,i]=(0,p.useState)(e.importedSettings.reduce(((e,t)=>{e[t]=true;return e}),{}));const s=(e,t)=>{const s={...n,[e]:t};i(s)};return m().createElement("div",{className:"jp-SettingsImport-container"},m().createElement("div",{className:"jp-SettingsImport-header"},m().createElement("span",{className:"jp-SettingsImport-title"},t.__("Select settings sections to import")),m().createElement("button",{className:"jp-Button jp-mod-styled jp-mod-accept",onClick:()=>{e.handleImport(Object.keys(n).filter((e=>!n[e])))}},t.__("Import"))),m().createElement("div",{className:"jp-SettingsImport-list"},e.importedSettings.map((e=>m().createElement("label",{key:e,className:"jp-SettingsImport-item"},m().createElement("span",{className:"jp-SettingsImport-itemKey"},e),m().createElement("input",{type:"checkbox",checked:n[e],onChange:t=>s(e,t.target.checked),className:"jp-SettingsImport-checkbox"}))))))};class f extends r.ReactWidget{constructor(e){const{importedSettings:t,handleImport:n,translator:i}=e;super();this.importedSettings=t;this.handleImport=n;this.addClass("jp-SettingsImport-widget");this.translator=i}render(){return m().createElement(g,{importedSettings:this.importedSettings,handleImport:this.handleImport,translator:this.translator})}}const v=e=>m().createElement("div",null,m().createElement("div",null,e.successMessage),e.failureMessage&&m().createElement("div",null,m().createElement("br",null),m().createElement("div",null,e.failureMessage),e.failedSettings&&e.failedSettings.map(((e,t)=>m().createElement("div",{key:t},e)))));class _ extends r.ReactWidget{constructor(e){super();this._props=e}render(){return m().createElement(v,{...this._props})}}var b=n(58285);var y=n(22819);const w=["@jupyterlab/application-extension:context-menu","@jupyterlab/mainmenu-extension:plugin"];var C;(function(e){e.open="settingeditor:open";e.openJSON="settingeditor:open-json";e.revert="settingeditor:revert";e.save="settingeditor:save";e.exportSettings="settingeditor:export";e.importSettings="settingeditor:import"})(C||(C={}));const x={id:"@jupyterlab/settingeditor-extension:form-ui",description:"Adds the interactive settings editor and provides its tracker.",requires:[c.ISettingRegistry,h.IStateDB,u.ITranslator,r.IFormRendererRegistry,i.ILabStatus],optional:[i.ILayoutRestorer,s.ICommandPalette,l.F,d.IPluginManager],autoStart:true,provides:l.z,activate:S};function S(e,t,i,o,a,l,d,c,h,u){const p=o.load("jupyterlab");const{commands:m,shell:g}=e;const f="setting-editor";const v=new s.WidgetTracker({namespace:f});if(d){void d.restore(v,{command:C.open,args:e=>({}),name:e=>f})}const _=async e=>{if(v.currentWidget&&!v.currentWidget.isDisposed){if(!v.currentWidget.isAttached){g.add(v.currentWidget,"main",{type:"Settings"})}g.activateById(v.currentWidget.id);if(e.query){v.currentWidget.content.updateQuery(e.query)}return}const d=x.id;const{SettingsEditor:c}=await n.e(7909).then(n.t.bind(n,7909,23));const _=await t.load(x.id);const b=_.get("toSkip").composite;const y=Array.isArray(b)?b:[];const S=[...new Set([...w,...y])];const j=new s.MainAreaWidget({content:new c({editorRegistry:a,key:d,registry:t,state:i,commands:m,toSkip:S,translator:o,status:l,query:e.query})});j.toolbar.addItem("export-settings",new r.CommandToolbarButton({commands:m,id:C.exportSettings,icon:r.downloadIcon,label:p.__("Export"),caption:p.__("Export settings to a JSON file")}));j.toolbar.addItem("import-settings",new r.CommandToolbarButton({commands:m,id:C.importSettings,icon:r.fileUploadIcon,label:p.__("Import"),caption:p.__("Import settings from a JSON file")}));j.toolbar.addItem("spacer",r.Toolbar.createSpacerItem());if(u){j.toolbar.addItem("open-plugin-manager",new r.ToolbarButton({onClick:async()=>{await u.open()},icon:r.launchIcon,label:p.__("Plugin Manager")}))}if(h){j.toolbar.addItem("open-json-editor",new r.CommandToolbarButton({commands:m,id:C.openJSON,icon:r.launchIcon,label:p.__("JSON Settings Editor")}))}j.id=f;j.title.icon=r.settingsIcon;j.title.label=p.__("Settings");j.title.closable=true;void v.add(j);g.add(j,"main",{type:"Settings"})};m.addCommand(C.open,{execute:async e=>{var n;if(e.settingEditorType==="ui"){void m.execute(C.open,{query:(n=e.query)!==null&&n!==void 0?n:""})}else if(e.settingEditorType==="json"){void m.execute(C.openJSON)}else{void t.load(x.id).then((t=>{var n;t.get("settingEditorType").composite==="json"?void m.execute(C.openJSON):void _({query:(n=e.query)!==null&&n!==void 0?n:""})}))}},label:e=>{if(e.label){return e.label}return p.__("Settings Editor")},describedBy:{args:{type:"object",properties:{query:{type:"string",description:p.__("Search query to filter settings")},settingEditorType:{type:"string",enum:["ui","json"],description:p.__("Type of settings editor to open")},label:{type:"string",description:p.__("Custom label for the command")}}}}});if(c){c.addItem({category:p.__("Settings"),command:C.open,args:{settingEditorType:"ui"}})}return v}const j={id:"@jupyterlab/settingeditor-extension:plugin",description:"Adds the JSON settings editor and provides its tracker.",requires:[c.ISettingRegistry,o.IEditorServices,h.IStateDB,a.IRenderMimeRegistry,i.ILabStatus,u.ITranslator],optional:[i.ILayoutRestorer,s.ICommandPalette],autoStart:true,provides:l.F,activate:k};function k(e,t,i,o,a,l,d,c,h){const u=d.load("jupyterlab");const{commands:p,shell:m}=e;const g="json-setting-editor";const v=i.factoryService;const w=v.newInlineEditor;const S=new s.WidgetTracker({namespace:g});if(c){void c.restore(S,{command:C.openJSON,args:e=>({}),name:e=>g})}p.addCommand(C.openJSON,{execute:async()=>{if(S.currentWidget&&!S.currentWidget.isDisposed){if(!S.currentWidget.isAttached){m.add(S.currentWidget,"main",{type:"Advanced Settings"})}m.activateById(S.currentWidget.id);return}const i=x.id;const c=e.restored;const{JsonSettingEditor:h}=await n.e(7909).then(n.t.bind(n,7909,23));const f=new h({commands:{registry:p,revert:C.revert,save:C.save},editorFactory:e=>{var t;const n=w({...e,extensions:[...(t=e.extensions)!==null&&t!==void 0?t:[],(0,b.history)(),y.keymap.of(b.historyKeymap)]});return n},key:i,registry:t,rendermime:a,state:o,translator:d,when:c});let v=null;f.commandsChanged.connect(((e,t)=>{t.forEach((e=>{p.notifyCommandChanged(e)}));if(f.canSaveRaw){if(!v){v=l.setDirty()}}else if(v){v.dispose();v=null}f.disposed.connect((()=>{if(v){v.dispose()}}))}));const _=new s.MainAreaWidget({content:f});_.id=g;_.title.icon=r.settingsIcon;_.title.label=u.__("Advanced Settings Editor");_.title.closable=true;void S.add(_);m.add(_,"main",{type:"Advanced Settings"})},label:u.__("Advanced Settings Editor"),describedBy:{args:{type:"object",properties:{}}}});if(h){h.addItem({category:u.__("Settings"),command:C.openJSON})}p.addCommand(C.revert,{execute:()=>{var e;(e=S.currentWidget)===null||e===void 0?void 0:e.content.revert()},icon:r.undoIcon,label:u.__("Revert User Settings"),isEnabled:()=>{var e,t;return(t=(e=S.currentWidget)===null||e===void 0?void 0:e.content.canRevertRaw)!==null&&t!==void 0?t:false},describedBy:{args:{type:"object",properties:{}}}});p.addCommand(C.save,{execute:()=>{var e;return(e=S.currentWidget)===null||e===void 0?void 0:e.content.save()},icon:r.saveIcon,label:u.__("Save User Settings"),isEnabled:()=>{var e,t;return(t=(e=S.currentWidget)===null||e===void 0?void 0:e.content.canSaveRaw)!==null&&t!==void 0?t:false},describedBy:{args:{type:"object",properties:{}}}});p.addCommand(C.exportSettings,{execute:()=>{const e=j(t);const n=JSON.stringify(e,null,2);k(n,"overrides.json")},label:u.__("Export Settings"),icon:r.downloadIcon,describedBy:{args:{type:"object",properties:{}}}});p.addCommand(C.importSettings,{execute:()=>{const n=document.createElement("input");n.type="file";n.accept=".json";const i=4;n.addEventListener("change",(async n=>{var o;const a=(o=n.target.files)===null||o===void 0?void 0:o[0];if(!a){return}try{const n=await a.text();const o=JSON.parse(n);if(typeof o!=="object"||Array.isArray(o)){throw new Error("Invalid settings file format")}const l=[];const c=async n=>{var r;const a=Object.entries(o);for(const[e,s]of a){if(typeof s==="object"&&!Array.isArray(s)){try{await t.upload(e,JSON.stringify(s,undefined,i))}catch(d){console.warn(`Failed to save settings for ${e}:`,d);l.push(e)}}else{console.warn(`Invalid settings for plugin ${e}. Skipping.`)}}(r=e.shell.currentWidget)===null||r===void 0?void 0:r.close();if(a.length){const e=a.length-l.length;const t=u.__(`Imported settings across ${e} ${e===1?"category":"categories"} successfully.`);const n=l.length?u.__(`Failed to upload settings for the following ${l.length} ${l.length===1?"plugin":"plugins"}`):"";const i=new _({successMessage:t,failureMessage:n,failedSettings:l});await(0,s.showDialog)({title:u.__("Settings Imported"),body:i,buttons:[s.Dialog.okButton()]})}};const h=Object.keys(o);const p=new f({importedSettings:h,handleImport:c,translator:d});const m=new s.MainAreaWidget({content:p});m.title.label=u.__("Import Settings");m.title.icon=r.fileUploadIcon;e.shell.add(m,"main");e.shell.activateById(m.id)}catch(l){await(0,s.showErrorMessage)("Failed to import settings",l)}}));n.click()},label:u.__("Import Settings"),icon:r.fileUploadIcon,describedBy:{args:{type:"object",properties:{}}}});function j(e){const t={};for(const[i,s]of Object.entries(e.plugins)){if(s){try{if(s.raw){const e=s.raw.replace(/\/\/.*$/gm,"");const n=e.replace(/\/\*[\s\S]*?\*\//g,"");const o=JSON.parse(n);if(Object.keys(o).length>0){t[i]=o}}}catch(n){console.error(`Error loading settings for plugin ${i}:`,n)}}}return t}function k(e,t){const n=new Blob([e],{type:"application/json"});const i=URL.createObjectURL(n);const s=document.createElement("a");s.href=i;s.download=t;document.body.appendChild(s);s.click();document.body.removeChild(s);URL.revokeObjectURL(i)}return S}const I=[x,j]},40779:(e,t,n)=>{"use strict";var i=n(40662);var s=n(97913);var o=n(17325);var r=n(5893);var a=n(3579);var l=n(14383);var d=n(10395);var c=n(52638);var h=n(85072);var u=n.n(h);var p=n(97825);var m=n.n(p);var g=n(77659);var f=n.n(g);var v=n(55056);var _=n.n(v);var b=n(10540);var y=n.n(b);var w=n(41113);var C=n.n(w);var x=n(45453);var S={};S.styleTagTransform=C();S.setAttributes=_();S.insert=f().bind(null,"head");S.domAPI=m();S.insertStyleElement=y();var j=u()(x.A,S);const k=x.A&&x.A.locals?x.A.locals:undefined},33296:(e,t,n)=>{"use strict";n.r(t);n.d(t,{IJSONSettingEditorTracker:()=>W.F,ISettingEditorTracker:()=>W.z,JsonSettingEditor:()=>F,SettingsEditor:()=>x});var i=n(38850);var s=n(34881);var o=n(4073);var r=n(2336);var a=n(27518);var l=n(44914);var d=n.n(l);var c=n(34236);var h=n(5592);const u="jupyter.lab.setting-icon";const p="jupyter.lab.setting-icon-class";const m="jupyter.lab.setting-icon-label";class g extends i.ReactWidget{constructor(e){var t,n;super();this._changed=new r.Signal(this);this._handleSelectSignal=new r.Signal(this);this._updateFilterSignal=new r.Signal(this);this._scrollTop=0;this._selection="";this._registry=this.registry=e.registry;this.translator=e.translator||s.nullTranslator;this.addClass("jp-PluginList");this._confirm=e.confirm;this._model=(t=e.model)!==null&&t!==void 0?t:new g.Model(e);this._model.ready.then((()=>{this.update();this._model.changed.connect((()=>{this.update()}))})).catch((e=>{console.error(`Failed to load the plugin list model:\n${e}`)}));this.mapPlugins=this.mapPlugins.bind(this);this.setFilter=this.setFilter.bind(this);this.setFilter(e.query?(0,o.updateFilterFunction)(e.query,false,false):null);this.setError=this.setError.bind(this);this._evtMousedown=this._evtMousedown.bind(this);this._query=(n=e.query)!==null&&n!==void 0?n:"";this._errors={}}get changed(){return this._changed}get scrollTop(){var e;return(e=this.node.querySelector("ul"))===null||e===void 0?void 0:e.scrollTop}get hasErrors(){for(const e in this._errors){if(this._errors[e]){return true}}return false}get filter(){return this._filter}get selection(){return this._selection}set selection(e){this._selection=e;this.update()}get updateFilterSignal(){return this._updateFilterSignal}get handleSelectSignal(){return this._handleSelectSignal}onUpdateRequest(e){const t=this.node.querySelector("ul");if(t&&this._scrollTop!==undefined){t.scrollTop=this._scrollTop}super.onUpdateRequest(e)}_evtMousedown(e){const t=e.currentTarget;const n=t.getAttribute("data-id");if(!n){return}if(this._confirm){this._confirm(n).then((()=>{this.selection=n;this._changed.emit(undefined);this.update()})).catch((()=>{}))}else{this._scrollTop=this.scrollTop;this._selection=n;this._handleSelectSignal.emit(n);this._changed.emit(undefined);this.update()}}getHint(e,t,n){let i=n.data.user[e];if(!i){i=n.data.composite[e]}if(!i){i=n.schema[e]}if(!i){const{properties:n}=t.schema;i=n&&n[e]&&n[e].default}return typeof i==="string"?i:""}getFilterString(e,t,n,i){var s;if(i&&n){i=i.replace("#/definitions/","");t=(s=n[i])!==null&&s!==void 0?s:{}}if(t.properties){t=t.properties}else if(t.items){t=t.items}else{return[]}if(t["$ref"]){return this.getFilterString(e,t,n,t["$ref"])}if(Object.keys(t).length===0){return[]}return Object.keys(t).reduce(((i,s)=>{var o,r;const a=t[s];if(!a){if(e((o=t.title)!==null&&o!==void 0?o:"")){return t.title}if(e(s)){return s}}if(e((r=a.title)!==null&&r!==void 0?r:"")){i.push(a.title)}if(e(s)){i.push(s)}i.concat(this.getFilterString(e,a,n,a["$ref"]));return i}),[])}setFilter(e,t){if(e){this._filter=t=>{var n,i;if(!e||e((n=t.schema.title)!==null&&n!==void 0?n:"")){return null}const s=this.getFilterString(e,(i=t.schema)!==null&&i!==void 0?i:{},t.schema.definitions);return s}}else{this._filter=null}this._query=t;this._updateFilterSignal.emit(this._filter);this.update()}setError(e,t){if(this._errors[e]!==t){this._errors[e]=t;this.update()}else{this._errors[e]=t}}mapPlugins(e){var t,n,i,s;const{id:r,schema:a,version:l}=e;const h=this.translator.load("jupyterlab");const g=typeof a.title==="string"?h._p("schema",a.title):r;const f=c.StringExt.matchSumOfSquares(g.toLocaleLowerCase(),(n=(t=this._query)===null||t===void 0?void 0:t.toLocaleLowerCase())!==null&&n!==void 0?n:"");const v=c.StringExt.highlight(g,(i=f===null||f===void 0?void 0:f.indices)!==null&&i!==void 0?i:[],(e=>d().createElement("mark",null,e)));const _=typeof a.description==="string"?h._p("schema",a.description):"";const b=`${_}\n${r}\n${l}`;const y=this.getHint(u,this._registry,e);const w=this.getHint(p,this._registry,e);const C=this.getHint(m,this._registry,e);const x=this._filter?(s=this._filter(e))===null||s===void 0?void 0:s.map((e=>{var t,n,i;const s=c.StringExt.matchSumOfSquares(e.toLocaleLowerCase(),(n=(t=this._query)===null||t===void 0?void 0:t.toLocaleLowerCase())!==null&&n!==void 0?n:"");const o=c.StringExt.highlight(e,(i=s===null||s===void 0?void 0:s.indices)!==null&&i!==void 0?i:[],(e=>d().createElement("mark",null,e)));return d().createElement("li",{key:`${r}-${e}`}," ",o," ")})):undefined;return d().createElement("div",{onClick:this._evtMousedown,className:`${r===this.selection?"jp-mod-selected jp-PluginList-entry":"jp-PluginList-entry"} ${this._errors[r]?"jp-ErrorPlugin":""}`,"data-id":r,key:r,title:b},d().createElement("div",{className:"jp-PluginList-entry-label",role:"tab"},d().createElement("div",{className:"jp-SelectedIndicator"}),d().createElement(o.LabIcon.resolveReact,{icon:y||(w?undefined:o.settingsIcon),iconClass:(0,o.classes)(w,"jp-Icon"),title:C,tag:"span",stylesheet:"settingsEditor"}),d().createElement("span",{className:"jp-PluginList-entry-label-text"},v)),d().createElement("ul",null,x))}render(){const e=this.translator.load("jupyterlab");const t=this._model.plugins.filter((e=>{if(!this._filter){return false}const t=this._filter(e);return t===null||t.length>0}));const n=t.filter((e=>{var t;return(t=this._model.settings[e.id])===null||t===void 0?void 0:t.isModified}));const i=n.map(this.mapPlugins);const s=t.filter((e=>!n.includes(e))).map(this.mapPlugins);return d().createElement("div",{className:"jp-PluginList-wrapper"},d().createElement(o.FilterBox,{updateFilter:this.setFilter,useFuzzyFilter:false,placeholder:e.__("Search settings…"),forceRefresh:false,caseSensitive:false,initialQuery:this._query}),i.length>0&&d().createElement("div",null,d().createElement("h1",{className:"jp-PluginList-header"},e.__("Modified")),d().createElement("ul",null,i)),s.length>0&&d().createElement("div",null,d().createElement("h1",{className:"jp-PluginList-header"},e.__("Settings")),d().createElement("ul",null,s)),i.length===0&&s.length===0&&d().createElement("p",{className:"jp-PluginList-noResults"},e.__("No items match your search.")))}}(function(e){function t(e){return Object.keys(e.plugins).map((t=>e.plugins[t])).sort(((e,t)=>(e.schema.title||e.id).localeCompare(t.schema.title||t.id)))}e.sortPlugins=t;class n{constructor(e){var t;this._plugins=[];this._changed=new r.Signal(this);this._ready=new h.PromiseDelegate;this._settings={};this._settingsModified={};this._toSkip=(t=e.toSkip)!==null&&t!==void 0?t:[];this._registry=e.registry;this._registry.pluginChanged.connect((async(e,t)=>{let n=false;if(!this._plugins.map((e=>e.id)).includes(t)){this._plugins=this._loadPlugins();n=true}if(!this._settings[t]){const e=this._plugins.filter((e=>e.id===t));await this._loadSettings(e);n=true}if(n){this._changed.emit()}}),this);this._plugins=this._loadPlugins();this._loadSettings(this._plugins).then((()=>{this._ready.resolve(undefined)})).catch((e=>{console.error(`Failed to load the settings:\n${e}`)}))}get plugins(){return this._plugins}get ready(){return this._ready.promise}get settings(){return this._settings}get changed(){return this._changed}_loadPlugins(){return this._sortPlugins(this._registry).filter((e=>{const{schema:t}=e;const n=t["jupyter.lab.setting-deprecated"]===true;const i=Object.keys(t.properties||{}).length>0;const s=t.additionalProperties!==false;const o=!this._toSkip.includes(e.id);return!n&&o&&(i||s)}))}async _loadSettings(e){for(const t of e){const e=await this._registry.load(t.id);e.changed.connect((()=>{if(e.isModified!==this._settingsModified[t.id]){this._changed.emit();this._settingsModified[t.id]=e.isModified}}));this._settings[t.id]=e;this._settingsModified[t.id]=e.isModified}}_sortPlugins(e){return Object.keys(e.plugins).map((t=>e.plugins[t])).sort(((e,t)=>(e.schema.title||e.id).localeCompare(t.schema.title||t.id)))}}e.Model=n})(g||(g={}));var f=n(26568);var v=n(41742);var _=n.n(v);const b=4;class y extends d().Component{constructor(e){super(e);this.reset=async e=>{e.stopPropagation();for(const t in this.props.settings.user){await this.props.settings.remove(t)}this._formData=this.props.settings.composite;this.setState({isModified:false})};this._syncFormDataWithSettings=()=>{this._formData=this.props.settings.composite;this.setState(((e,t)=>({isModified:t.settings.isModified})))};this._onChange=e=>{this.props.hasError(e.errors.length!==0);const t=h.JSONExt.deepCopy(this._formData);if(e.formData){Object.keys(e.formData).forEach((n=>{const i=e.formData;if(i&&n in i){t[n]=i[n]}}))}this._formData=t;if(e.errors.length===0){this.props.updateDirtyState(true);void this._debouncer.invoke()}this.props.onSelect(this.props.settings.id)};const{settings:t}=e;t.changed.connect(this._syncFormDataWithSettings);this._formData=t.composite;this.state={isModified:t.isModified,uiSchema:{},filteredSchema:this.props.settings.schema,formContext:{defaultFormData:this.props.settings.default(),settings:this.props.settings,schema:h.JSONExt.deepCopy(this.props.settings.schema)}};this.handleChange=this.handleChange.bind(this);this._debouncer=new f.Debouncer(this.handleChange)}componentDidMount(){this._setUiSchema();this._setFilteredSchema()}componentDidUpdate(e){this._setUiSchema(e.renderers[e.settings.id]);this._setFilteredSchema(e.filteredValues);if(e.settings!==this.props.settings){this.setState((e=>({formContext:{...e.formContext,settings:this.props.settings,defaultFormData:this.props.settings.default()}})))}}componentWillUnmount(){this._debouncer.dispose()}handleChange(){if(!this.props.settings.isModified&&this._formData&&this.props.settings.isDefault(this._formData)){this.props.updateDirtyState(false);return}this.props.settings.save(JSON.stringify(this._formData,undefined,b)).then((()=>{this.props.updateDirtyState(false);this.setState({isModified:this.props.settings.isModified})})).catch((e=>{this.props.updateDirtyState(false);const t=this.props.translator.load("jupyterlab");void(0,i.showErrorMessage)(t.__("Error saving settings."),e)}))}render(){const e=this.props.translator.load("jupyterlab");return d().createElement(d().Fragment,null,d().createElement("div",{className:"jp-SettingsHeader"},d().createElement("h2",{className:"jp-SettingsHeader-title",title:this.props.settings.schema.description},this.props.settings.schema.title),d().createElement("div",{className:"jp-SettingsHeader-buttonbar"},this.state.isModified&&d().createElement(o.Button,{className:"jp-RestoreButton",onClick:this.reset},e.__("Restore to Defaults"))),d().createElement("div",{className:"jp-SettingsHeader-description"},this.props.settings.schema.description)),d().createElement(o.FormComponent,{validator:_(),schema:this.state.filteredSchema,formData:this._getFilteredFormData(this.state.filteredSchema),uiSchema:this.state.uiSchema,fields:this.props.renderers[this.props.settings.id],formContext:this.state.formContext,liveValidate:true,idPrefix:`jp-SettingsEditor-${this.props.settings.id}`,onChange:this._onChange,translator:this.props.translator,experimental_defaultFormStateBehavior:{emptyObjectFields:"populateRequiredDefaults"}}))}_setUiSchema(e){var t;const n=this.props.renderers[this.props.settings.id];if(!h.JSONExt.deepEqual(Object.keys(e!==null&&e!==void 0?e:{}).sort(),Object.keys(n!==null&&n!==void 0?n:{}).sort())){const e={};for(const n in this.props.renderers[this.props.settings.id]){if(Object.keys((t=this.props.settings.schema.properties)!==null&&t!==void 0?t:{}).includes(n)){e[n]={"ui:field":n}}}this.setState({uiSchema:e})}}_setFilteredSchema(e){var t,n,i,s;if(e===undefined||!h.JSONExt.deepEqual(e,this.props.filteredValues)||!h.JSONExt.deepEqual(this.state.formContext.schema,this.props.settings.schema)){const e=h.JSONExt.deepCopy(this.props.settings.schema);if((n=(t=this.props.filteredValues)===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0>0){for(const t in e.properties){if(!((i=this.props.filteredValues)===null||i===void 0?void 0:i.includes((s=e.properties[t].title)!==null&&s!==void 0?s:t))){delete e.properties[t]}}}this.setState((t=>({filteredSchema:e,formContext:{...t.formContext,schema:h.JSONExt.deepCopy(this.props.settings.schema)}})))}}_getFilteredFormData(e){if(!(e===null||e===void 0?void 0:e.properties)){return this._formData}const t=h.JSONExt.deepCopy(this._formData);for(const n in t){if(!e.properties[n]){delete t[n]}}return t}}const w=({translator:e})=>{const t=e.load("jupyterlab");return d().createElement("div",{className:"jp-SettingsEditor-placeholder"},d().createElement("div",{className:"jp-SettingsEditor-placeholderContent"},d().createElement("h3",null,t.__("No Plugin Selected")),d().createElement("p",null,t.__("Select a plugin from the list to view and edit its preferences."))))};const C=({settings:e,editorRegistry:t,onSelect:n,handleSelectSignal:i,hasError:s,updateDirtyState:o,updateFilterSignal:r,translator:a,initialFilter:c})=>{const[h,u]=(0,l.useState)(null);const[p,m]=(0,l.useState)(c?()=>c:null);const g=d().useRef(null);const f=d().useRef({});(0,l.useEffect)((()=>{var e;const t=(e,t)=>{t?m((()=>t)):m(null)};r.connect(t);const n=(e,t)=>{u(t)};(e=i===null||i===void 0?void 0:i.connect)===null||e===void 0?void 0:e.call(i,n);return()=>{var e;r.disconnect(t);(e=i===null||i===void 0?void 0:i.disconnect)===null||e===void 0?void 0:e.call(i,n)}}),[]);const v=d().useCallback(((e,t)=>{if(f.current){f.current[e]=t;for(const e in f.current){if(f.current[e]){o(true);return}}}o(false)}),[f,o]);const _=d().useMemo((()=>Object.entries(t.renderers).reduce(((e,[t,n])=>{const i=t.lastIndexOf(".");const s=t.substring(0,i);const o=t.substring(i+1);if(!e[s]){e[s]={}}if(!e[s][o]&&n.fieldRenderer){e[s][o]=n.fieldRenderer}return e}),{})),[t]);if(!h&&!p){return d().createElement(w,{translator:a})}return d().createElement("div",{className:"jp-SettingsPanel",ref:g},e.map((e=>{const t=p?p(e.plugin):null;if(h&&h!==e.id||t!==null&&t.length===0){return undefined}return d().createElement("div",{className:"jp-SettingsForm",key:`${e.id}SettingsEditor`},d().createElement(y,{filteredValues:t,settings:e,renderers:_,hasError:t=>{s(e.id,t)},updateDirtyState:t=>{v(e.id,t)},onSelect:n,translator:a}))})))};class x extends a.SplitPanel{constructor(e){super({orientation:"horizontal",renderer:a.SplitPanel.defaultRenderer,spacing:1});this._clearDirty=null;this._dirty=false;this._saveStateChange=new r.Signal(this);this.translator=e.translator||s.nullTranslator;this._status=e.status;this._listModel=new g.Model({registry:e.registry,toSkip:e.toSkip});this._list=new g({registry:e.registry,translator:this.translator,query:e.query,model:this._listModel});this._listModel.changed.connect((()=>{this.update()}));this.addWidget(this._list);this.setDirtyState=this.setDirtyState.bind(this);const t=o.ReactWidget.create(d().createElement(o.UseSignal,{signal:this._listModel.changed},(()=>d().createElement(C,{settings:[...Object.values(this._listModel.settings)],editorRegistry:e.editorRegistry,handleSelectSignal:this._list.handleSelectSignal,onSelect:e=>this._list.selection=e,hasError:this._list.setError,updateFilterSignal:this._list.updateFilterSignal,updateDirtyState:this.setDirtyState,translator:this.translator,initialFilter:this._list.filter}))));this._listModel.ready.then((()=>{this.addWidget(t)})).catch((e=>{console.error(`Failed to load the setting plugins:\n${e}`)}))}get saveStateChanged(){return this._saveStateChange}setDirtyState(e){this._dirty=e;if(this._dirty&&!this._clearDirty){this._clearDirty=this._status.setDirty()}else if(!this._dirty&&this._clearDirty){this._clearDirty.dispose();this._clearDirty=null}if(e){if(!this.title.className.includes("jp-mod-dirty")){this.title.className+=" jp-mod-dirty"}}else{this.title.className=this.title.className.replace("jp-mod-dirty","")}this._saveStateChange.emit(e?"started":"completed")}updateQuery(e){this._list.setFilter(e?(0,o.updateFilterFunction)(e,false,false):null,e)}onCloseRequest(e){const t=this.translator.load("jupyterlab");if(this._list.hasErrors){void(0,i.showDialog)({title:t.__("Warning"),body:t.__("Unsaved changes due to validation error. Continue without saving?")}).then((t=>{if(t.button.accept){this.dispose();super.onCloseRequest(e)}}))}else if(this._dirty){void(0,i.showDialog)({title:t.__("Warning"),body:t.__("Some changes have not been saved. Continue without saving?")}).then((t=>{if(t.button.accept){this.dispose();super.onCloseRequest(e)}}))}else{this.dispose();super.onCloseRequest(e)}}}var S=n(44389);var j=n(35361);var k=n(95513);var I=n(78629);function T(e,t,n){n=n||s.nullTranslator;const i=n.load("jupyterlab");const o=new E(e,n);const r=new j.InspectorPanel({initialContent:i.__("Any errors will be listed here"),translator:n});const a=new j.InspectionHandler({connector:o,rendermime:t||new k.RenderMimeRegistry({initialFactories:k.standardRendererFactories,translator:n})});r.addClass("jp-SettingsDebug");r.source=a;a.editor=e.source;return r}class E extends I.DataConnector{constructor(e,t){super();this._current=0;this._editor=e;this._trans=(t!==null&&t!==void 0?t:s.nullTranslator).load("jupyterlab")}fetch(e){return new Promise((t=>{const n=this._current=window.setTimeout((()=>{if(n!==this._current){return t(undefined)}const i=this._validate(e.text);if(!i){return t({data:{"text/markdown":this._trans.__("No errors found")},metadata:{}})}t({data:this.render(i),metadata:{}})}),100)}))}render(e){return{"text/markdown":e.map(this.renderError.bind(this)).join("")}}renderError(e){var t;switch(e.keyword){case"additionalProperties":return`**\`[${this._trans.__("additional property error")}]\`**\n ${this._trans.__("`%1` is not a valid property",(t=e.params)===null||t===void 0?void 0:t.additionalProperty)}`;case"syntax":return`**\`[${this._trans.__("syntax error")}]\`** *${e.message}*`;case"type":return`**\`[${this._trans.__("type error")}]\`**\n \`${e.instancePath}\` ${e.message}`;default:return`**\`[${this._trans.__("error")}]\`** *${e.message}*`}}_validate(e){const t=this._editor;if(!t.settings){return null}const{id:n,schema:i,version:s}=t.settings;const o={composite:{},user:{}};const r=t.registry.validator;return r.validateData({data:o,id:n,raw:e,schema:i,version:s},false)}}const M="jp-SettingsRawEditor";const D="jp-SettingsRawEditor-user";const A="jp-mod-error";class P extends a.SplitPanel{constructor(e){super({orientation:"horizontal",renderer:a.SplitPanel.defaultRenderer,spacing:1});this._canRevert=false;this._canSave=false;this._commandsChanged=new r.Signal(this);this._settings=null;this._toolbar=new o.Toolbar;const{commands:t,editorFactory:n,registry:i,translator:l}=e;this.registry=i;this.translator=l||s.nullTranslator;this._commands=t;const d=this._defaults=new S.CodeEditorWrapper({editorOptions:{config:{readOnly:true}},model:new S.CodeEditor.Model({mimeType:"text/javascript"}),factory:n});const c=this._user=new S.CodeEditorWrapper({editorOptions:{config:{lineNumbers:true}},model:new S.CodeEditor.Model({mimeType:"text/javascript"}),factory:n});c.addClass(D);c.editor.model.sharedModel.changed.connect(this._onTextChanged,this);this._inspector=T(this,e.rendermime,this.translator);this.addClass(M);this._onSaveError=e.onSaveError;this.addWidget(L.defaultsEditor(d,this.translator));this.addWidget(L.userEditor(c,this._toolbar,this._inspector,this.translator))}get canRevert(){return this._canRevert}get canSave(){return this._canSave}get commandsChanged(){return this._commandsChanged}get isDirty(){var e,t;return(t=this._user.editor.model.sharedModel.getSource()!==((e=this._settings)===null||e===void 0?void 0:e.raw))!==null&&t!==void 0?t:""}get settings(){return this._settings}set settings(e){if(!e&&!this._settings){return}const t=e&&this._settings&&e.plugin===this._settings.plugin;if(t){return}const n=this._defaults;const i=this._user;if(this._settings){this._settings.changed.disconnect(this._onSettingsChanged,this)}if(e){this._settings=e;this._settings.changed.connect(this._onSettingsChanged,this);this._onSettingsChanged()}else{this._settings=null;n.editor.model.sharedModel.setSource("");i.editor.model.sharedModel.setSource("")}this.update()}get sizes(){return this.relativeSizes()}set sizes(e){this.setRelativeSizes(e)}get source(){return this._user.editor}dispose(){if(this.isDisposed){return}this._defaults.model.dispose();this._defaults.dispose();this._user.model.dispose();this._user.dispose();super.dispose()}revert(){var e,t;this._user.editor.model.sharedModel.setSource((t=(e=this.settings)===null||e===void 0?void 0:e.raw)!==null&&t!==void 0?t:"");this._updateToolbar(false,false)}save(){if(!this.isDirty||!this._settings){return Promise.resolve(undefined)}const e=this._settings;const t=this._user.editor.model.sharedModel.getSource();return e.save(t).then((()=>{this._updateToolbar(false,false)})).catch((e=>{this._updateToolbar(true,false);this._onSaveError(e,this.translator)}))}onAfterAttach(e){L.populateToolbar(this._commands,this._toolbar);this.update()}_onTextChanged(){const e=this._user.editor.model.sharedModel.getSource();const t=this._settings;this.removeClass(A);if(!t||t.raw===e){this._updateToolbar(false,false);return}const n=t.validate(e);if(n){this.addClass(A);this._updateToolbar(true,false);return}this._updateToolbar(true,true)}_onSettingsChanged(){var e,t;const n=this._settings;const i=this._defaults;const s=this._user;i.editor.model.sharedModel.setSource((e=n===null||n===void 0?void 0:n.annotatedDefaults())!==null&&e!==void 0?e:"");s.editor.model.sharedModel.setSource((t=n===null||n===void 0?void 0:n.raw)!==null&&t!==void 0?t:"")}_updateToolbar(e=this._canRevert,t=this._canSave){const n=this._commands;this._canRevert=e;this._canSave=t;this._commandsChanged.emit([n.revert,n.save])}}var L;(function(e){function t(e,t){t=t||s.nullTranslator;const n=t.load("jupyterlab");const i=new a.Widget;const r=i.layout=new a.BoxLayout({spacing:0});const l=new a.Widget;const d=new o.Toolbar;d.node.setAttribute("aria-label",n.__("Default editor toolbar"));const c=n.__("System Defaults");l.node.innerText=c;d.insertItem(0,"banner",l);r.addWidget(d);r.addWidget(e);return i}e.defaultsEditor=t;function n(e,t){const{registry:n,revert:i,save:s}=e;t.addItem("spacer",o.Toolbar.createSpacerItem());[i,s].forEach((e=>{const i=new o.CommandToolbarButton({commands:n,id:e});t.addItem(e,i)}))}e.populateToolbar=n;function i(e,t,n,i){i=i||s.nullTranslator;const o=i.load("jupyterlab");const r=o.__("User Preferences");const l=new a.Widget;const d=l.layout=new a.BoxLayout({spacing:0});const c=new a.Widget;c.node.innerText=r;t.insertItem(0,"banner",c);d.addWidget(t);d.addWidget(e);d.addWidget(n);return l}e.userEditor=i})(L||(L={}));const R="jp-PluginEditor";class N extends a.Widget{constructor(e){super();this._settings=null;this._stateChanged=new r.Signal(this);this.addClass(R);const{commands:t,editorFactory:n,registry:i,rendermime:o,translator:l}=e;this.translator=l||s.nullTranslator;this._trans=this.translator.load("jupyterlab");const d=this.layout=new a.StackedLayout;const{onSaveError:c}=B;this.raw=this._rawEditor=new P({commands:t,editorFactory:n,onSaveError:c,registry:i,rendermime:o,translator:l});this._rawEditor.handleMoved.connect(this._onStateChanged,this);d.addWidget(this._rawEditor)}get isDirty(){return this._rawEditor.isDirty}get settings(){return this._settings}set settings(e){if(this._settings===e){return}const t=this._rawEditor;this._settings=t.settings=e;this.update()}get state(){const e=this._settings?this._settings.id:"";const{sizes:t}=this._rawEditor;return{plugin:e,sizes:t}}set state(e){if(h.JSONExt.deepEqual(this.state,e)){return}this._rawEditor.sizes=e.sizes;this.update()}get stateChanged(){return this._stateChanged}confirm(){if(this.isHidden||!this.isAttached||!this.isDirty){return Promise.resolve(undefined)}return(0,i.showDialog)({title:this._trans.__("You have unsaved changes."),body:this._trans.__("Do you want to leave without saving?"),buttons:[i.Dialog.cancelButton({label:this._trans.__("Cancel")}),i.Dialog.okButton({label:this._trans.__("Ok")})]}).then((e=>{if(!e.button.accept){throw new Error("User canceled.")}}))}dispose(){if(this.isDisposed){return}super.dispose();this._rawEditor.dispose()}onAfterAttach(e){this.update()}onUpdateRequest(e){const t=this._rawEditor;const n=this._settings;if(!n){this.hide();return}this.show();t.show()}_onStateChanged(){this.stateChanged.emit(undefined)}}var B;(function(e){function t(e,t){t=t||s.nullTranslator;const n=t.load("jupyterlab");console.error(`Saving setting editor value failed: ${e.message}`);void(0,i.showErrorMessage)(n.__("Your changes were not saved."),e)}e.onSaveError=t})(B||(B={}));const O={sizes:[1,3],container:{editor:"raw",plugin:"",sizes:[1,1]}};class F extends a.SplitPanel{constructor(e){super({orientation:"horizontal",renderer:a.SplitPanel.defaultRenderer,spacing:1});this._fetching=null;this._saving=false;this._state=h.JSONExt.deepCopy(O);this.translator=e.translator||s.nullTranslator;this.addClass("jp-SettingEditor");this.key=e.key;this.state=e.state;const{commands:t,editorFactory:n,rendermime:i}=e;const r=this.registry=e.registry;const d=this._instructions=o.ReactWidget.create(l.createElement(w,{translator:this.translator}));d.addClass("jp-SettingEditorInstructions");const c=this._editor=new N({commands:t,editorFactory:n,registry:r,rendermime:i,translator:this.translator});const u=()=>c.confirm();const p=this._list=new g({confirm:u,registry:r,translator:this.translator});const m=e.when;if(m){this._when=Array.isArray(m)?Promise.all(m):m}this.addWidget(p);this.addWidget(d);a.SplitPanel.setStretch(p,0);a.SplitPanel.setStretch(d,1);a.SplitPanel.setStretch(c,1);c.stateChanged.connect(this._onStateChanged,this);p.changed.connect(this._onStateChanged,this);this.handleMoved.connect(this._onStateChanged,this)}get canRevertRaw(){return this._editor.raw.canRevert}get canSaveRaw(){return this._editor.raw.canSave}get commandsChanged(){return this._editor.raw.commandsChanged}get settings(){return this._editor.settings}get source(){return this._editor.raw.source}dispose(){if(this.isDisposed){return}super.dispose();this._editor.dispose();this._instructions.dispose();this._list.dispose()}revert(){this._editor.raw.revert()}save(){return this._editor.raw.save()}onAfterAttach(e){super.onAfterAttach(e);this.hide();this._fetchState().then((()=>{this.show();this._setState()})).catch((e=>{console.error("Fetching setting editor state failed",e);this.show();this._setState()}))}onCloseRequest(e){this._editor.confirm().then((()=>{super.onCloseRequest(e);this.dispose()})).catch((()=>{}))}_fetchState(){if(this._fetching){return this._fetching}const{key:e,state:t}=this;const n=[t.fetch(e),this._when];return this._fetching=Promise.all(n).then((([e])=>{this._fetching=null;if(this._saving){return}this._state=z.normalizeState(e,this._state)}))}async _onStateChanged(){this._state.sizes=this.relativeSizes();this._state.container=this._editor.state;this._state.container.plugin=this._list.selection;try{await this._saveState()}catch(e){console.error("Saving setting editor state failed",e)}this._setState()}async _saveState(){const{key:e,state:t}=this;const n=this._state;this._saving=true;try{await t.save(e,n);this._saving=false}catch(i){this._saving=false;throw i}}_setLayout(){const e=this._editor;const t=this._state;e.state=t.container;requestAnimationFrame((()=>{this.setRelativeSizes(t.sizes)}))}_setState(){const e=this._editor;const t=this._list;const{container:n}=this._state;if(!n.plugin){e.settings=null;t.selection="";this._setLayout();return}if(e.settings&&e.settings.id===n.plugin){this._setLayout();return}const i=this._instructions;this.registry.load(n.plugin).then((s=>{if(i.isAttached){i.parent=null}if(!e.isAttached){this.addWidget(e)}e.settings=s;t.selection=n.plugin;this._setLayout()})).catch((i=>{console.error(`Loading ${n.plugin} settings failed.`,i);t.selection=this._state.container.plugin="";e.settings=null;this._setLayout()}))}}var z;(function(e){function t(e,t){if(!e){return h.JSONExt.deepCopy(O)}if(!("sizes"in e)||!n(e.sizes)){e.sizes=h.JSONExt.deepCopy(O.sizes)}if(!("container"in e)){e.container=h.JSONExt.deepCopy(O.container);return e}const i="container"in e&&e.container&&typeof e.container==="object"?e.container:{};e.container={plugin:typeof i.plugin==="string"?i.plugin:O.container.plugin,sizes:n(i.sizes)?i.sizes:h.JSONExt.deepCopy(O.container.sizes)};return e}e.normalizeState=t;function n(e){return Array.isArray(e)&&e.every((e=>typeof e==="number"))}})(z||(z={}));var W=n(667)},667:(e,t,n)=>{"use strict";n.d(t,{F:()=>r,z:()=>o});var i=n(5592);var s=n.n(i);const o=new i.Token("@jupyterlab/settingeditor:ISettingEditorTracker",`A widget tracker for the interactive setting editor.\n Use this if you want to be able to iterate over and interact with setting editors\n created by the application.`);const r=new i.Token("@jupyterlab/settingeditor:IJSONSettingEditorTracker",`A widget tracker for the JSON setting editor.\n Use this if you want to be able to iterate over and interact with setting editors\n created by the application.`)},63075:(e,t,n)=>{"use strict";n.r(t);n.d(t,{BaseSettings:()=>f,DefaultSchemaValidator:()=>m,ISettingConnector:()=>b,ISettingRegistry:()=>y,SettingRegistry:()=>g,Settings:()=>v});var i=n(93247);var s=n(5592);var o=n(90044);var r=n(2336);var a=n(63282);var l=n.n(a);var d=n(81219);const c=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","title":"JupyterLab Plugin Settings/Preferences Schema","description":"JupyterLab plugin settings/preferences schema","version":"1.0.0","type":"object","additionalProperties":true,"properties":{"jupyter.lab.internationalization":{"type":"object","properties":{"selectors":{"type":"array","items":{"type":"string","minLength":1}},"domain":{"type":"string","minLength":1}}},"jupyter.lab.menus":{"type":"object","properties":{"main":{"title":"Main menu entries","description":"List of menu items to add to the main menubar.","items":{"$ref":"#/definitions/menu"},"type":"array","default":[]},"context":{"title":"The application context menu.","description":"List of context menu items.","items":{"allOf":[{"$ref":"#/definitions/menuItem"},{"properties":{"selector":{"description":"The CSS selector for the context menu item.","type":"string"}}}]},"type":"array","default":[]}},"additionalProperties":false},"jupyter.lab.metadataforms":{"items":{"$ref":"#/definitions/metadataForm"},"type":"array","default":[]},"jupyter.lab.setting-deprecated":{"type":"boolean","default":false},"jupyter.lab.setting-icon":{"type":"string","default":""},"jupyter.lab.setting-icon-class":{"type":"string","default":""},"jupyter.lab.setting-icon-label":{"type":"string","default":"Plugin"},"jupyter.lab.shortcuts":{"items":{"$ref":"#/definitions/shortcut"},"type":"array","default":[]},"jupyter.lab.toolbars":{"properties":{"^\\\\w[\\\\w-\\\\.]*$":{"items":{"$ref":"#/definitions/toolbarItem"},"type":"array","default":[]}},"type":"object","default":{}},"jupyter.lab.transform":{"type":"boolean","default":false}},"definitions":{"menu":{"properties":{"disabled":{"description":"Whether the menu is disabled or not","type":"boolean","default":false},"icon":{"description":"Menu icon id","type":"string"},"id":{"description":"Menu unique id","oneOf":[{"type":"string","enum":["jp-menu-file","jp-menu-file-new","jp-menu-edit","jp-menu-help","jp-menu-kernel","jp-menu-run","jp-menu-settings","jp-menu-view","jp-menu-tabs"]},{"type":"string","pattern":"[a-z][a-z0-9\\\\-_]+"}]},"items":{"description":"Menu items","type":"array","items":{"$ref":"#/definitions/menuItem"}},"label":{"description":"Menu label","type":"string"},"mnemonic":{"description":"Mnemonic index for the label","type":"number","minimum":-1,"default":-1},"rank":{"description":"Menu rank","type":"number","minimum":0}},"required":["id"],"type":"object"},"menuItem":{"properties":{"args":{"description":"Command arguments","type":"object"},"command":{"description":"Command id","type":"string"},"disabled":{"description":"Whether the item is disabled or not","type":"boolean","default":false},"type":{"description":"Item type","type":"string","enum":["command","submenu","separator"],"default":"command"},"rank":{"description":"Item rank","type":"number","minimum":0},"submenu":{"oneOf":[{"$ref":"#/definitions/menu"},{"type":"null"}]}},"type":"object"},"shortcut":{"properties":{"args":{"title":"The arguments for the command","type":"object"},"command":{"title":"The command id","description":"The command executed when the binding is matched.","type":"string"},"disabled":{"description":"Whether this shortcut is disabled or not.","type":"boolean","default":false},"keys":{"title":"The key sequence for the binding","description":"The key shortcut like `Accel A` or the sequence of shortcuts to press like [`Accel A`, `B`]","items":{"type":"string"},"type":"array"},"macKeys":{"title":"The key sequence for the binding on macOS","description":"The key shortcut like `Cmd A` or the sequence of shortcuts to press like [`Cmd A`, `B`]","items":{"type":"string"},"type":"array"},"winKeys":{"title":"The key sequence for the binding on Windows","description":"The key shortcut like `Ctrl A` or the sequence of shortcuts to press like [`Ctrl A`, `B`]","items":{"type":"string"},"type":"array"},"linuxKeys":{"title":"The key sequence for the binding on Linux","description":"The key shortcut like `Ctrl A` or the sequence of shortcuts to press like [`Ctrl A`, `B`]","items":{"type":"string"},"type":"array"},"selector":{"title":"CSS selector","type":"string"}},"required":["command","keys","selector"],"type":"object"},"toolbarItem":{"properties":{"name":{"title":"Unique name","type":"string"},"args":{"title":"Command arguments","type":"object"},"command":{"title":"Command id","type":"string","default":""},"disabled":{"title":"Whether the item is ignored or not","type":"boolean","default":false},"icon":{"title":"Item icon id","description":"If defined, it will override the command icon","type":"string"},"label":{"title":"Item label","description":"If defined, it will override the command label","type":"string"},"caption":{"title":"Item caption","description":"If defined, it will override the command caption","type":"string"},"type":{"title":"Item type","type":"string","enum":["command","spacer"]},"rank":{"title":"Item rank","type":"number","minimum":0,"default":50}},"required":["name"],"additionalProperties":false,"type":"object"},"metadataForm":{"type":"object","properties":{"id":{"type":"string","description":"The section ID"},"metadataSchema":{"type":"object","items":{"$ref":"#/definitions/metadataSchema"}},"uiSchema":{"type":"object"},"metadataOptions":{"type":"object","items":{"$ref":"#/definitions/metadataOptions"}},"label":{"type":"string","description":"The section label"},"rank":{"type":"integer","description":"The rank of the section in the right panel"},"showModified":{"type":"boolean","description":"Whether to show modified values from defaults"}},"required":["id","metadataSchema"]},"metadataSchema":{"properties":{"properties":{"type":"object","description":"The property set up by extension","properties":{"title":{"type":"string"},"description":{"type":"string"},"type":{"type":"string"}}}},"type":"object","required":["properties"]},"metadataOptions":{"properties":{"customRenderer":{"type":"string"},"metadataLevel":{"type":"string","enum":["cell","notebook"],"default":"cell"},"cellTypes":{"type":"array","items":{"type":"string","enum":["code","markdown","raw"]}},"writeDefault":{"type":"boolean"}},"type":"object"}}}');const h=s.JSONExt.deepCopy;const u={strict:false};const p=String.fromCharCode(30);class m{constructor(){this._composer=new(l())({useDefaults:true,...u});this._validator=new(l())({...u});this._composer.addSchema(c,"jupyterlab-plugin-schema");this._validator.addSchema(c,"jupyterlab-plugin-schema")}validateData(e,t=true){const n=this._validator.getSchema(e.id);const i=this._composer.getSchema(e.id);if(!n||!i){if(e.schema.type!=="object"){const t="schema";const n=`Setting registry schemas' root-level type must be `+`'object', rejecting type: ${e.schema.type}`;return[{instancePath:"type",keyword:t,schemaPath:"",message:n}]}const t=this._addSchema(e.id,e.schema);return t||this.validateData(e)}let s;try{s=d.parse(e.raw)}catch(r){if(r instanceof SyntaxError){return[{instancePath:"",keyword:"syntax",schemaPath:"",message:r.message}]}const{column:e,description:t}=r;const n=r.lineNumber;return[{instancePath:"",keyword:"parse",schemaPath:"",message:`${t} (line ${n} column ${e})`}]}if(!n(s)){return n.errors}const o=h(s);if(!i(o)){return i.errors}if(t){e.data={composite:o,user:s}}return null}_addSchema(e,t){const n=this._composer;const i=this._validator;const s=i.getSchema("jupyterlab-plugin-schema");if(!s(t)){return s.errors}if(!i.validateSchema(t)){return i.errors}n.removeSchema(e);i.removeSchema(e);n.addSchema(t,e);i.addSchema(t,e);return null}}class g{constructor(e){this.schema=c;this.plugins=Object.create(null);this._pluginChanged=new r.Signal(this);this._ready=Promise.resolve();this._transformers=Object.create(null);this._unloadedPlugins=new Map;this.connector=e.connector;this.validator=e.validator||new m;if(e.plugins){e.plugins.filter((e=>e.schema["jupyter.lab.transform"])).forEach((e=>this._unloadedPlugins.set(e.id,e)));this._ready=this._preload(e.plugins)}}get pluginChanged(){return this._pluginChanged}async get(e,t){await this._ready;const n=this.plugins;if(e in n){const{composite:i,user:s}=n[e].data;return{composite:i[t]!==undefined?h(i[t]):undefined,user:s[t]!==undefined?h(s[t]):undefined}}return this.load(e).then((()=>this.get(e,t)))}async load(e,t=false){await this._ready;const n=this.plugins;const i=this;if(e in n){if(t){n[e].data={composite:{},user:{}};await this._load(await this._transform("fetch",n[e]));this._pluginChanged.emit(e)}return new v({plugin:n[e],registry:i})}if(this._unloadedPlugins.has(e)&&e in this._transformers){await this._load(await this._transform("fetch",this._unloadedPlugins.get(e)));if(e in n){this._pluginChanged.emit(e);this._unloadedPlugins.delete(e);return new v({plugin:n[e],registry:i})}}return this.reload(e)}async reload(e){await this._ready;const t=await this.connector.fetch(e);const n=this.plugins;const i=this;if(t===undefined){throw[{instancePath:"",keyword:"id",message:`Could not fetch settings for ${e}.`,schemaPath:""}]}await this._load(await this._transform("fetch",t));this._pluginChanged.emit(e);return new v({plugin:n[e],registry:i})}async remove(e,t){await this._ready;const n=this.plugins;if(!(e in n)){return}const i=d.parse(n[e].raw);delete i[t];delete i[`// ${t}`];n[e].raw=_.annotatedPlugin(n[e],i);return this._save(e)}async set(e,t,n){await this._ready;const i=this.plugins;if(!(e in i)){return this.load(e).then((()=>this.set(e,t,n)))}const s=d.parse(i[e].raw);i[e].raw=_.annotatedPlugin(i[e],{...s,[t]:n});return this._save(e)}transform(e,t){const n=this._transformers;if(e in n){const t=new Error(`${e} already has a transformer.`);t.name="TransformError";throw t}n[e]={fetch:t.fetch||(e=>e),compose:t.compose||(e=>e)};return new o.DisposableDelegate((()=>{delete n[e]}))}async upload(e,t){await this._ready;const n=this.plugins;if(!(e in n)){return this.load(e).then((()=>this.upload(e,t)))}n[e].raw=t;return this._save(e)}get ready(){return this._ready}async _load(e){const t=e.id;try{await this._validate(e)}catch(n){const e=[`Validating ${t} failed:`];n.forEach(((t,n)=>{const{instancePath:i,schemaPath:s,keyword:o,message:r}=t;if(i||s){e.push(`${n} - schema @ ${s}, data @ ${i}`)}e.push(`{${o}} ${r}`)}));console.warn(e.join("\n"));throw n}}async _preload(e){await Promise.all(e.map((async e=>{var t;try{await this._load(await this._transform("fetch",e))}catch(n){if(((t=n[0])===null||t===void 0?void 0:t.keyword)!=="unset"){console.warn("Ignored setting registry preload errors.",n)}}})))}async _save(e){const t=this.plugins;if(!(e in t)){throw new Error(`${e} does not exist in setting registry.`)}try{await this._validate(t[e])}catch(i){console.warn(`${e} validation errors:`,i);throw new Error(`${e} failed to validate; check console.`)}await this.connector.save(e,t[e].raw);const n=await this.connector.fetch(e);if(n===undefined){throw[{instancePath:"",keyword:"id",message:`Could not fetch settings for ${e}.`,schemaPath:""}]}await this._load(await this._transform("fetch",n));this._pluginChanged.emit(e)}async _transform(e,t){const n=t.id;const i=this._transformers;if(!t.schema["jupyter.lab.transform"]){return t}if(n in i){const s=i[n][e].call(null,t);if(s.id!==n){throw[{instancePath:"",keyword:"id",message:"Plugin transformations cannot change plugin IDs.",schemaPath:""}]}return s}throw[{instancePath:"",keyword:"unset",message:`${t.id} has no transformers yet.`,schemaPath:""}]}async _validate(e){const t=this.validator.validateData(e);if(t){throw t}this.plugins[e.id]=await this._transform("compose",e)}}class f{constructor(e){this._schema=e.schema}get schema(){return this._schema}isDefault(e){for(const t in this.schema.properties){const n=e[t];const i=this.default(t);if(n===undefined||i===undefined||s.JSONExt.deepEqual(n,s.JSONExt.emptyObject)||s.JSONExt.deepEqual(n,s.JSONExt.emptyArray)){continue}if(!s.JSONExt.deepEqual(n,i)){return false}}return true}default(e){return _.reifyDefault(this.schema,e)}}class v extends f{constructor(e){super({schema:e.plugin.schema});this._changed=new r.Signal(this);this._isDisposed=false;this.id=e.plugin.id;this.registry=e.registry;this.registry.pluginChanged.connect(this._onPluginChanged,this)}get changed(){return this._changed}get composite(){return this.plugin.data.composite}get isDisposed(){return this._isDisposed}get plugin(){return this.registry.plugins[this.id]}get raw(){return this.plugin.raw}get isModified(){return!this.isDefault(this.user)}get user(){return this.plugin.data.user}get version(){return this.plugin.version}annotatedDefaults(){return _.annotatedDefaults(this.schema,this.id)}dispose(){if(this._isDisposed){return}this._isDisposed=true;r.Signal.clearData(this)}get(e){const{composite:t,user:n}=this;return{composite:t[e]!==undefined?h(t[e]):undefined,user:n[e]!==undefined?h(n[e]):undefined}}remove(e){return this.registry.remove(this.plugin.id,e)}save(e){return this.registry.upload(this.plugin.id,e)}set(e,t){return this.registry.set(this.plugin.id,e,t)}validate(e){const t={composite:{},user:{}};const{id:n,schema:i}=this.plugin;const s=this.registry.validator;const o=this.version;return s.validateData({data:t,id:n,raw:e,schema:i,version:o},false)}_onPluginChanged(e,t){if(t===this.plugin.id){this._changed.emit(undefined)}}}(function(e){function t(e,t,i=false,o=true){if(!e){return t&&o?s.JSONExt.deepCopy(t):[]}if(!t){return s.JSONExt.deepCopy(e)}const r=s.JSONExt.deepCopy(e);t.forEach((e=>{const t=r.findIndex((t=>t.id===e.id));if(t>=0){r[t]={...r[t],...e,items:n(r[t].items,e.items,i,o)}}else{if(o){r.push(e)}}}));return r}e.reconcileMenus=t;function n(e,n,i=false,o=true){if(!e){return n?s.JSONExt.deepCopy(n):undefined}if(!n){return s.JSONExt.deepCopy(e)}const r=s.JSONExt.deepCopy(e);n.forEach((e=>{var n;switch((n=e.type)!==null&&n!==void 0?n:"command"){case"separator":if(o){r.push({...e})}break;case"submenu":if(e.submenu){const n=r.findIndex((t=>{var n,i;return t.type==="submenu"&&((n=t.submenu)===null||n===void 0?void 0:n.id)===((i=e.submenu)===null||i===void 0?void 0:i.id)}));if(n<0){if(o){r.push(s.JSONExt.deepCopy(e))}}else{r[n]={...r[n],...e,submenu:t(r[n].submenu?[r[n].submenu]:null,[e.submenu],i,o)[0]}}}break;case"command":if(e.command){const t=r.findIndex((t=>{var n,i;return t.command===e.command&&t.selector===e.selector&&s.JSONExt.deepEqual((n=t.args)!==null&&n!==void 0?n:{},(i=e.args)!==null&&i!==void 0?i:{})}));if(t<0){if(o){r.push({...e})}}else{if(i){console.warn(`Menu entry for command '${e.command}' is duplicated.`)}r[t]={...r[t],...e}}}}}));return r}e.reconcileItems=n;function o(e){return e.reduce(((e,t)=>{var n;const i={...t};if(!i.disabled){if(i.type==="submenu"){const{submenu:e}=i;if(e&&!e.disabled){i.submenu={...e,items:o((n=e.items)!==null&&n!==void 0?n:[])}}}e.push(i)}return e}),[])}e.filterDisabledItems=o;function r(e,t){const n={};t=[...t.filter((e=>!!e.disabled)),...t.filter((e=>!e.disabled))].filter((e=>{const t=i.CommandRegistry.normalizeKeys(e).join(p);if(!t){console.warn("Skipping this shortcut because there are no actionable keys on this platform",e);return false}if(!(t in n)){n[t]={}}const{disabled:s,selector:o}=e;if(!(o in n[t])){n[t][o]={enabledUserShortcut:s?null:e,enabledDefaultShortcut:null,shouldDisableDefaultShortcut:!!s};return!s}if(n[t][o].enabledUserShortcut===null){if(s){n[t][o].shouldDisableDefaultShortcut=true;return false}else{n[t][o].enabledUserShortcut=e;return true}}else{console.warn("Skipping",e,"shortcut because it collides with another enabled shortcut:",n[t][o].enabledUserShortcut);return false}}));e=[...e.filter((e=>!!e.disabled)),...e.filter((e=>!e.disabled))].filter((e=>{const t=i.CommandRegistry.normalizeKeys(e).join(p);if(!t){return false}if(!(t in n)){n[t]={}}const{disabled:s,selector:o}=e;if(!(o in n[t])){n[t][o]={enabledUserShortcut:null,enabledDefaultShortcut:s?null:e,shouldDisableDefaultShortcut:!!s};return!s}if(n[t][o].enabledDefaultShortcut===null){if(s){n[t][o].shouldDisableDefaultShortcut=true;return false}else{if(n[t][o].shouldDisableDefaultShortcut){return false}else{n[t][o].enabledDefaultShortcut=e;return true}}}else{if(n[t][o].shouldDisableDefaultShortcut){return false}else{console.warn("Skipping",e,"default shortcut because it collides with another enabled default shortcut:",n[t][o].enabledDefaultShortcut);return false}}}));return _.upgradeShortcuts(t.concat(e).filter((e=>!e.disabled)).map((e=>({args:{},...e}))))}e.reconcileShortcuts=r;function a(e,t,n=false){if(!e){return t?s.JSONExt.deepCopy(t):undefined}if(!t){return s.JSONExt.deepCopy(e)}const i=s.JSONExt.deepCopy(e);t.forEach((e=>{const t=i.findIndex((t=>t.name===e.name));if(t<0){i.push({...e})}else{if(n&&s.JSONExt.deepEqual(Object.keys(e),Object.keys(i[t]))){console.warn(`Toolbar item '${e.name}' is duplicated.`)}i[t]={...i[t],...e}}}));return i}e.reconcileToolbarItems=a})(g||(g={}));var _;(function(e){const t=" ";const n="[missing schema description]";const i="[missing schema title]";function o(e,t){const{description:s,properties:o,title:r}=e;const l=o?Object.keys(o).sort(((e,t)=>e.localeCompare(t))):[];const h=Math.max((s||n).length,t.length);return["{",c(`${r||i}`),c(t),c(s||n),c("*".repeat(h)),"",d(l.map((t=>a(e,t)))),"}"].join("\n")}e.annotatedDefaults=o;function r(e,t){const{description:s,title:o}=e.schema;const r=Object.keys(t).sort(((e,t)=>e.localeCompare(t)));const a=Math.max((s||n).length,e.id.length);return["{",c(`${o||i}`),c(e.id),c(s||n),c("*".repeat(a)),"",d(r.map((n=>l(e.schema,n,t[n])))),"}"].join("\n")}e.annotatedPlugin=r;function a(e,i){const s=e.properties&&e.properties[i]||{};const o=s["type"];const r=s["description"]||n;const a=s["title"]||"";const l=h(e,i);const d=t.length;const u=l!==undefined?c(`"${i}": ${JSON.stringify(l,null,d)}`,t):c(`"${i}": ${o}`);return[c(a),c(r),u].filter((e=>e.length)).join("\n")}function l(e,s,o){const r=e.properties&&e.properties[s];const a=r&&r["description"]||n;const l=r&&r["title"]||i;const d=t.length;const h=c(`"${s}": ${JSON.stringify(o,null,d)}`,t);return[c(l),c(a),h].join("\n")}function d(e){return e.reduce(((t,n,i)=>{const s=n.split("\n");const o=s[s.length-1];const r=o.trim().indexOf("//")===0;const a=r||i===e.length-1?"":",";const l=i===e.length-1?"":"\n\n";return t+n+a+l}),"")}function c(e,n=`${t}// `){return n+e.split("\n").join(`\n${n}`)}function h(e,t,n,i){var o,r,a,l,d,c,u;n=n!==null&&n!==void 0?n:e.definitions;i=t?e.required instanceof Array&&((o=e.required)===null||o===void 0?void 0:o.includes(t)):i;e=(t?(r=e.properties)===null||r===void 0?void 0:r[t]:e)||{};if(e.type==="object"){const t=s.JSONExt.deepCopy(e.default);const i=e.properties||{};for(const s in i){t[s]=h(i[s],undefined,n,e.required instanceof Array&&((a=e.required)===null||a===void 0?void 0:a.includes(s)))}return t}else if(e.type==="array"){const t=typeof e.default!=="undefined";const o=t||i;if(!o){return undefined}const r=t?s.JSONExt.deepCopy(e.default):[];let a=e.items||{};if(a["$ref"]&&n){const e=a["$ref"].replace("#/definitions/","");a=(l=n[e])!==null&&l!==void 0?l:{}}for(const e in r){if(a.type==="object"){const t=(c=(d=h(a,undefined,n))!==null&&d!==void 0?d:r[e])!==null&&c!==void 0?c:{};for(const n in t){if((u=r[e])===null||u===void 0?void 0:u[n]){t[n]=r[e][n]}}r[e]=t}}return r}else{return e.default}}e.reifyDefault=h;const u=new Set;function p(e){const t=new Set;const n=[{old:".jp-Notebook:focus.jp-mod-commandMode",new:".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus",versionDeprecated:"JupyterLab 4.1"},{old:".jp-Notebook.jp-mod-commandMode :focus:not(:read-write)",new:".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus",versionDeprecated:"JupyterLab 4.1.1"},{old:".jp-Notebook:focus",new:".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus",versionDeprecated:"JupyterLab 4.1"},{old:"[data-jp-traversable]:focus",new:".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus",versionDeprecated:"JupyterLab 4.1"},{old:"[data-jp-kernel-user]:focus",new:"[data-jp-kernel-user]:not(.jp-mod-readWrite) :focus:not(:read-write)",versionDeprecated:"JupyterLab 4.1"},{old:"[data-jp-kernel-user] :focus:not(:read-write)",new:"[data-jp-kernel-user]:not(.jp-mod-readWrite) :focus:not(:read-write)",versionDeprecated:"JupyterLab 4.1.1"}];const i=e.map((e=>{const i=e.selector;let s=i;for(const o of n){if(i.includes(o.old)){s=i.replace(o.old,o.new);if(!u.has(i)){t.add(`"${o.old}" was replaced with "${o.new}" in ${o.versionDeprecated} (present in "${i}")`);u.add(i)}}}e.selector=s;return e}));if(t.size>0){console.warn("Deprecated shortcut selectors: "+[...t].join("\n")+"\n\nThe selectors will be substituted transparently this time, but need to be updated at source before next major release.")}return i}e.upgradeShortcuts=p})(_||(_={}));const b=new s.Token("@jupyterlab/coreutils:ISettingConnector","A service to connect to the settings endpoint.");const y=new s.Token("@jupyterlab/coreutils:ISettingRegistry",`A service for the JupyterLab settings system.\n Use this if you want to store settings for your application.\n See "schemaDir" for more information.`)},26217:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>R});var i=n(40065);var s=n(34881);var o=n(4073);var r=n(93247);var a=n(5592);var l=n(90044);var d=n(76326);var c;(function(e){e.editBinding="shortcuts:edit-keybinding";e.addBinding="shortcuts:add-keybinding";e.deleteBinding="shortcuts:delete-keybinding";e.toggleSelectors="shortcuts:toggle-selectors";e.resetAll="shortcuts:reset-all"})(c||(c={}));var h=n(44914);var u=n.n(h);var p=n(34236);var m=n(77162);const g="jp-Shortcuts-ConflictContainer";class f extends h.Component{constructor(e){super(e);this.handleSubmit=async()=>{if(!this._isReplacingExistingKeybinding){await this._updateShortcut();this.props.toggleInput()}else{if(this.state.selected){this.props.toggleInput()}else{await this._updateShortcut()}}};this._updateShortcut=async()=>{const e=[...this.state.keys,this.state.currentChain];this.setState({keys:e});if(this.props.keybinding){await this.props.replaceKeybinding(this.props.shortcut,this.props.keybinding,e)}else{await this.props.addKeybinding(this.props.shortcut,e)}};this._handleOverwrite=async(e,t)=>{for(const n of e){const e=n.keybindings.filter((e=>a.JSONExt.deepEqual(e.keys,t)||t.some((t=>a.JSONExt.deepEqual(e.keys,[t])))))[0];if(!e){console.error(`Conflicting binding could not be found for ${n} using keys ${t}`);continue}await this.props.deleteKeybinding(n,e)}await this._updateShortcut()};this.parseChaining=(e,t,n,i,s)=>{let o=m.EN_US.keyForKeydownEvent(e.nativeEvent);const r=["Shift","Control","Alt","Meta","Ctrl","Accel"];if(e.key==="Backspace"){n="";t="";i=[];s="";this.setState({value:t,userInput:n,keys:i,currentChain:s})}else if(e.key!=="CapsLock"){const t=n.substr(n.lastIndexOf(" ")+1,n.length).trim();if(r.lastIndexOf(t)===-1&&t!=""){n=n+",";i.push(s);s="";if(e.ctrlKey&&e.key!="Control"){n=(n+" Ctrl").trim();s=(s+" Ctrl").trim()}if(e.metaKey&&e.key!="Meta"){n=(n+" Accel").trim();s=(s+" Accel").trim()}if(e.altKey&&e.key!="Alt"){n=(n+" Alt").trim();s=(s+" Alt").trim()}if(e.shiftKey&&e.key!="Shift"){n=(n+" Shift").trim();s=(s+" Shift").trim()}if(r.lastIndexOf(e.key)===-1){n=(n+" "+o).trim();s=(s+" "+o).trim()}else{if(e.key==="Meta"){n=(n+" Accel").trim();s=(s+" Accel").trim()}else if(e.key==="Control"){n=(n+" Ctrl").trim();s=(s+" Ctrl").trim()}else if(e.key==="Shift"){n=(n+" Shift").trim();s=(s+" Shift").trim()}else if(e.key==="Alt"){n=(n+" Alt").trim();s=(s+" Alt").trim()}else{n=(n+" "+e.key).trim();s=(s+" "+e.key).trim()}}}else{if(e.key==="Control"){n=(n+" Ctrl").trim();s=(s+" Ctrl").trim()}else if(e.key==="Meta"){n=(n+" Accel").trim();s=(s+" Accel").trim()}else if(e.key==="Shift"){n=(n+" Shift").trim();s=(s+" Shift").trim()}else if(e.key==="Alt"){n=(n+" Alt").trim();s=(s+" Alt").trim()}else{n=(n+" "+o).trim();s=(s+" "+o).trim()}}}this.setState({keys:i,currentChain:s});return[n,i,s]};this.checkNonFunctional=()=>{const e=["Ctrl","Alt","Accel","Shift"];const t=this.state.currentChain.split(" ");const n=t[t.length-1];this.setState({isFunctional:!(e.indexOf(n)!==-1)});return e.indexOf(n)!==-1};this.checkShortcutAvailability=(e,t,n)=>{const i=this.props.findConflictsFor([...t,n],this.props.shortcut.selector);const s=e===""||i.length===0;if(!s){if(i.length===1&&i[0].id===this.props.shortcut.id&&this._isReplacingExistingKeybinding){this.setState({isAvailable:true});return[]}}this.setState({isAvailable:s});return i};this.handleInput=e=>{e.preventDefault();this.setState({selected:false});const t=this.parseChaining(e,this.state.value,this.state.userInput,this.state.keys,this.state.currentChain);const n=t[0];const i=t[1];const s=t[2];const o=this.props.toSymbols(n);let r=this.checkShortcutAvailability(n,i,s);this.setState({value:o,userInput:n,keys:i,currentChain:s},(()=>{this.checkNonFunctional();this._emitConflicts(r)}))};this._handleBlur=e=>{var t,n;if((t=this._ref.current)===null||t===void 0?void 0:t.contains(e.relatedTarget)){return}if((n=e.relatedTarget)===null||n===void 0?void 0:n.closest(`.${g}`)){return}this.props.toggleInput()};this._ref=h.createRef();this.state={value:this.props.placeholder,userInput:"",isAvailable:true,isFunctional:this._isReplacingExistingKeybinding,keys:[],currentChain:"",selected:true}}get _isReplacingExistingKeybinding(){return!!this.props.keybinding}_emitConflicts(e){const t=[...this.state.keys,this.state.currentChain];this.props.displayConflicts({conflictsWith:e,keys:this.state.keys,overwrite:async()=>{this.setState({isAvailable:true});await this._handleOverwrite(e,t);this.props.toggleInput()},cancel:()=>{this.props.toggleInput()}})}render(){const e=this.props.translator.load("jupyterlab");let t="jp-Shortcuts-Input";if(!this.state.isAvailable){t+=" jp-mod-unavailable-Input"}return h.createElement("div",{className:this.props.displayInput?!this._isReplacingExistingKeybinding?"jp-Shortcuts-InputBox jp-Shortcuts-InputBoxNew":"jp-Shortcuts-InputBox":"jp-mod-hidden",ref:this._ref,onBlur:this._handleBlur},h.createElement("div",{tabIndex:0,className:t,onKeyDown:this.handleInput,ref:e=>e&&e.focus(),"data-lm-suppress-shortcuts":"true"},h.createElement("p",{className:this.state.selected&&this._isReplacingExistingKeybinding?"jp-Shortcuts-InputText jp-mod-selected-InputText":this.state.value===""?"jp-Shortcuts-InputText jp-mod-waiting-InputText":"jp-Shortcuts-InputText"},this.state.value===""?e.__("press keys"):this.state.value)),h.createElement("button",{className:!this.state.isFunctional?"jp-Shortcuts-Submit jp-mod-defunc-Submit":!this.state.isAvailable?"jp-Shortcuts-Submit jp-mod-conflict-Submit":"jp-Shortcuts-Submit",disabled:!this.state.isAvailable||!this.state.isFunctional,onClick:this.handleSubmit,tabIndex:0},this.state.isAvailable?h.createElement(o.checkIcon.react,null):h.createElement(o.errorIcon.react,null)))}}class v extends h.Component{constructor(e){super(e);this.toggleInputNew=()=>{this.setState({displayNewInput:!this.state.displayNewInput,conflicts:new Map})};this.toSymbols=e=>e.split(" ").reduce(((e,t)=>{if(t==="Ctrl"){return(e+" ⌃").trim()}else if(t==="Alt"){return(e+" ⌥").trim()}else if(t==="Shift"){return(e+" ⇧").trim()}else if(t==="Accel"&&d.Platform.IS_MAC){return(e+" ⌘").trim()}else if(t==="Accel"){return(e+" ⌃").trim()}else{return(e+" "+t).trim()}}),"");this._trans=this.props.external.translator.load("jupyterlab");this.state={displayNewInput:false,displayReplaceInput:Object.freeze({}),conflicts:new Map}}componentDidMount(){this.props.external.actionRequested.connect(this._onActionRequested,this)}componentWillUnmount(){this.props.external.actionRequested.disconnect(this._onActionRequested,this)}async _onActionRequested(e,t){if("shortcutId"in t&&t.shortcutId!==this.props.shortcut.id){return}if(t.request==="add-keybinding"){return this.toggleInputNew()}if(t.request==="edit-keybinding"){this.toggleInputReplaceMethod(t.keybinding)}if(t.request==="delete-keybinding"){const e=this.props.shortcut;const n=e.keybindings[t.keybinding];this.props.deleteKeybinding(e,n).catch(console.error)}}getCategoryCell(){return h.createElement("div",{className:"jp-Shortcuts-Cell"},this.props.shortcut.category)}getLabelCell(){var e;return h.createElement("div",{className:"jp-Shortcuts-Cell"},h.createElement("div",{className:"jp-label"},(e=this.props.shortcut.label)!==null&&e!==void 0?e:this._trans.__("(Command label missing)")))}getResetShortCutLink(){return h.createElement("a",{className:"jp-Shortcuts-Reset",onClick:()=>this.props.resetKeybindings(this.props.shortcut)},this._trans.__("Reset"))}getSourceCell(){const e=this.props.shortcut.keybindings.every((e=>e.isDefault));return h.createElement("div",{className:"jp-Shortcuts-Cell"},h.createElement("div",{className:"jp-Shortcuts-SourceCell"},e?this._trans.__("Default"):this._trans.__("Custom")),!e?this.getResetShortCutLink():"")}getOptionalSelectorCell(){return this.props.showSelectors?h.createElement("div",{className:"jp-Shortcuts-Cell"},h.createElement("div",{className:"jp-selector"},this.props.shortcut.selector)):null}getClassNameForShortCuts(e){const t=["jp-Shortcuts-ShortcutCell"];switch(e.length){case 1:t.push("jp-Shortcuts-SingleCell");break;case 0:t.push("jp-Shortcuts-EmptyCell");break}return t.join(" ")}toggleInputReplaceMethod(e){const t=this.state.displayReplaceInput[e];this.setState({displayReplaceInput:{...this.state.displayReplaceInput,[e]:!t},conflicts:new Map})}getDisplayReplaceInput(e){return this.state.displayReplaceInput[e]}getOrDiplayIfNeeded(e){const t=["jp-Shortcuts-Or"];if(e||this.state.displayNewInput){t.push("jp-Shortcuts-Or-Forced")}return h.createElement("div",{className:t.join(" ")},this._trans.__("or"))}getShortCutAsInput(e,t){return h.createElement(f,{addKeybinding:this.props.addKeybinding,replaceKeybinding:this.props.replaceKeybinding,deleteKeybinding:this.props.deleteKeybinding,findConflictsFor:this.props.findConflictsFor,toggleInput:()=>this.toggleInputReplaceMethod(t),shortcut:this.props.shortcut,keybinding:e,displayConflicts:t=>{const n=new Map(this.state.conflicts);n.set(e,t);this.setState({conflicts:n})},toSymbols:this.toSymbols,displayInput:this.getDisplayReplaceInput(t),placeholder:this.toSymbols(e.keys.join(", ")),translator:this.props.external.translator})}getShortCutForDisplayOnly(e){return e.keys.map(((t,n)=>h.createElement("div",{className:"jp-Shortcuts-ShortcutKeysContainer",key:n},h.createElement("div",{className:"jp-Shortcuts-ShortcutKeys"},this.toSymbols(t)),n+1this.toggleInputReplaceMethod(e)},this.isLocationBeingEdited(e)?this.getShortCutAsInput(t,e):this.getShortCutForDisplayOnly(t),!(e===this._nonEmptyBindings.length-1&&Object.values(this.state.displayReplaceInput).some(Boolean))&&this.getOrDiplayIfNeeded(e{this.toggleInputNew()}},this._trans.__("Add"))}getInputBoxWhenToggled(){return this.state.displayNewInput?h.createElement(f,{addKeybinding:this.props.addKeybinding,replaceKeybinding:this.props.replaceKeybinding,deleteKeybinding:this.props.deleteKeybinding,findConflictsFor:this.props.findConflictsFor,toggleInput:this.toggleInputNew,shortcut:this.props.shortcut,displayConflicts:e=>{const t=new Map(this.state.conflicts);t.set(null,e);this.setState({conflicts:t})},toSymbols:this.toSymbols,displayInput:this.state.displayNewInput,placeholder:"",translator:this.props.external.translator}):h.createElement("div",null)}getShortCutsCell(e){return h.createElement("div",{className:"jp-Shortcuts-Cell"},h.createElement("div",{className:this.getClassNameForShortCuts(e)},e.map(((t,n)=>this.getDivForKey(n,t,e))),e.length>=1&&!this.state.displayNewInput&&!Object.values(this.state.displayReplaceInput).some(Boolean)&&this.getAddLink(),e.length===0&&!this.state.displayNewInput&&this.getAddLink(),this.getInputBoxWhenToggled()))}getConflicts(){const e=[...this.state.conflicts.values()].filter((e=>e.conflictsWith.length!==0));if(e.length===0){return h.createElement(h.Fragment,null)}return h.createElement("div",{className:"jp-Shortcuts-Row jp-Shortcuts-RowWithConflict"},h.createElement("div",{className:g},e.map((e=>{const t=e.keys.join(" ")+"_"+e.conflictsWith.map((e=>e.id)).join("");return h.createElement("div",{className:"jp-Shortcuts-Conflict",key:t},h.createElement("div",{className:"jp-Shortcuts-ErrorMessage"},this._trans.__("Shortcut already in use by %1. Overwrite it?",e.conflictsWith.map((e=>{var t;return(t=e.label)!==null&&t!==void 0?t:e.command})).join(", "))),h.createElement("div",{className:"jp-Shortcuts-ErrorButton"},h.createElement("button",{className:"jp-Button jp-mod-reject jp-mod-styled",onClick:()=>{this._clearConflict(e);e.cancel()}},this._trans.__("Cancel")),h.createElement("button",{className:"jp-Button jp-mod-warn jp-mod-styled",onClick:()=>{this._clearConflict(e);e.overwrite()}},this._trans.__("Overwrite"))))}))))}_clearConflict(e){const t=new Map;const n=this._conflictId(e);for(const[i,s]of this.state.conflicts.entries()){if(this._conflictId(s)!==n){t.set(i,s)}}this.setState({conflicts:t})}_conflictId(e){return e.keys.join(" ")+"_"+e.conflictsWith.map((e=>e.id)).join("")}get _nonEmptyBindings(){return this.props.shortcut.keybindings.filter((e=>e.keys.filter((e=>e!="")).length!==0))}render(){return h.createElement(h.Fragment,null,h.createElement("div",{className:"jp-Shortcuts-Row","data-shortcut":this.props.shortcut.id},this.getCategoryCell(),this.getLabelCell(),this.getShortCutsCell(this._nonEmptyBindings),this.getSourceCell(),this.getOptionalSelectorCell()),this.getConflicts())}}const _=115;class b extends h.Component{render(){return h.createElement("div",{className:"jp-Shortcuts-ShortcutListContainer",style:{height:`${this.props.height-_}px`},id:"shortcutListContainer"},h.createElement("div",{className:"jp-Shortcuts-ShortcutList"},this.props.shortcuts.map((e=>h.createElement(v,{key:e.id,addKeybinding:this.props.addKeybinding,replaceKeybinding:this.props.replaceKeybinding,deleteKeybinding:this.props.deleteKeybinding,resetKeybindings:this.props.resetKeybindings,findConflictsFor:this.props.findConflictsFor,shortcut:e,showSelectors:this.props.showSelectors,external:this.props.external})))))}}class y extends h.Component{render(){return h.createElement("div",{className:this.props.title.toLowerCase()===this.props.active?"jp-Shortcuts-Header jp-Shortcuts-CurrentHeader":"jp-Shortcuts-Header",onClick:()=>this.props.updateSort(this.props.columnId)},this.props.title,h.createElement(o.caretDownEmptyThinIcon.react,{className:"jp-Shortcuts-SortButton jp-ShortcutTitleItem-sortButton"}))}}function w(e){return h.createElement("div",{className:"jp-Shortcuts-Symbols"},h.createElement("table",null,h.createElement("tbody",null,h.createElement("tr",null,h.createElement("td",null,h.createElement("kbd",null,"Cmd")),h.createElement("td",null,"⌘"),h.createElement("td",null,h.createElement("kbd",null,"Ctrl")),h.createElement("td",null,"⌃")),h.createElement("tr",null,h.createElement("td",null,h.createElement("kbd",null,"Alt")),h.createElement("td",null,"⌥"),h.createElement("td",null,h.createElement("kbd",null,"Shift")),h.createElement("td",null,"⇧")))))}function C(e){const t=e.translator.load("jupyterlab");return h.createElement("div",{className:"jp-Shortcuts-AdvancedOptions"},h.createElement("a",{className:"jp-Shortcuts-AdvancedOptionsLink",onClick:()=>e.toggleSelectors()},e.showSelectors?t.__("Hide Selectors"):t.__("Show Selectors")),h.createElement("a",{className:"jp-Shortcuts-AdvancedOptionsLink",onClick:()=>e.resetShortcuts()},t.__("Reset All")))}class x extends h.Component{constructor(e){super(e)}getShortCutTitleItem(e,t){return h.createElement("div",{className:"jp-Shortcuts-Cell"},h.createElement(y,{title:e,updateSort:this.props.updateSort,active:this.props.currentSort,columnId:t}))}render(){const e=this.props.translator.load("jupyterlab");return h.createElement("div",{className:"jp-Shortcuts-Top"},h.createElement("div",{className:"jp-Shortcuts-TopNav"},h.createElement(w,null),h.createElement(o.FilterBox,{"aria-label":e.__("Search shortcuts"),updateFilter:(e,t)=>this.props.updateSearchQuery(t!==null&&t!==void 0?t:""),placeholder:e.__("Search…"),useFuzzyFilter:false}),h.createElement(C,{toggleSelectors:this.props.toggleSelectors,showSelectors:this.props.showSelectors,resetShortcuts:this.props.resetShortcuts,translator:this.props.translator})),h.createElement("div",{className:"jp-Shortcuts-HeaderRowContainer"},h.createElement("div",{className:"jp-Shortcuts-HeaderRow"},this.getShortCutTitleItem(e.__("Category"),"category"),this.getShortCutTitleItem(e.__("Command"),"command"),h.createElement("div",{className:"jp-Shortcuts-Cell"},h.createElement("div",{className:"title-div"},e.__("Shortcut"))),this.getShortCutTitleItem(e.__("Source"),"source"),this.props.showSelectors&&this.getShortCutTitleItem(e.__("Selectors"),"selector"))))}}class S extends Map{constructor(e){var t,n,i;super();const{settings:s,commandRegistry:o}=e;const r=(t=s.user.shortcuts)!==null&&t!==void 0?t:[];const a=new Set(r.map(this._computeKeybindingId.bind(this)));const l=(n=s.composite.shortcuts)!==null&&n!==void 0?n:[];for(const d of l){const e=this._computeTargetId(d);const t=this._computeKeybindingId(d);const n={keys:d.keys,isDefault:!a.has(t)};const s=this.get(e);if(s){s.keybindings.push(n)}else{const t=d.command.split(":");const s=(i=o.label(d.command,d.args))!==null&&i!==void 0?i:t.length>1?t[1]:undefined;const r=t[0];this.set(e,{id:e,selector:d.selector,command:d.command,category:r,label:s,args:d.args,keybindings:[n]})}}}findConflictsFor(e,t){const n=new j({registry:this});let i=n.findConflicts(e,t);if(i.length!==0){return i}for(const s of e){i=n.findConflicts([s],t);if(i.length!==0){return i}}return[]}_computeTargetId(e){var t;return e.command+"_"+e.selector+"_"+JSON.stringify((t=e.args)!==null&&t!==void 0?t:{})}_computeKeybindingId(e){var t;return[e.command,e.selector,JSON.stringify((t=e.args)!==null&&t!==void 0?t:{}),e.keys.join(" ")].join("_")}}class j{constructor(e){var t;const n=new Map;for(const i of e.registry.values()){for(const e of i.keybindings){const s=this._keybindingHash(e.keys,i.selector);const o=(t=n.get(s))!==null&&t!==void 0?t:[];o.push(i);n.set(s,o)}}this._keybindingsMap=n}findConflicts(e,t){var n;const i=this._keybindingHash(e,t);return(n=this._keybindingsMap.get(i))!==null&&n!==void 0?n:[]}_keybindingHash(e,t){return e.join(" ")+"_"+t}}function k(e){return e.replace(/\s+/g,"").toLowerCase()}function I(e,t){var n;const i=e.category.toLowerCase();const s=((n=e["label"])!==null&&n!==void 0?n:"").toLowerCase();const o=`${i} ${s}`;let r=Infinity;let a=null;const l=/\b\w/g;while(true){const e=l.exec(o);if(!e){break}const n=p.StringExt.matchSumOfDeltas(o,t,e.index);if(!n){break}if(n&&n.score<=r){r=n.score;a=n.indices}}if(!a||r===Infinity){return null}const d=i.length+1;const c=p.ArrayExt.lowerBound(a,d,((e,t)=>e-t));const h=a.slice(0,c);const u=a.slice(c);for(let p=0,m=u.length;p{this.setState({searchQuery:e},(()=>{const e=this.state.shortcutRegistry;this.setState({filteredShortcutList:this._searchFilterShortcuts(e)},(()=>{this.sortShortcuts()}))}))};this.resetShortcuts=async()=>{const e=await this.props.external.getSettings();await e.set("shortcuts",[]);await this._refreshShortcutList()};this.resetKeybindings=async e=>{await this._setKeybinding(e,[])};this.replaceKeybinding=async(e,t,n)=>this._setKeybinding(e,n,t);this.deleteKeybinding=async(e,t)=>{await this._setKeybinding(e,[],t)};this.addKeybinding=async(e,t)=>{await this._setKeybinding(e,t)};this.toggleSelectors=()=>{this.setState({showSelectors:!this.state.showSelectors})};this.updateSort=e=>{if(e!==this.state.currentSort){this.setState({currentSort:e},this.sortShortcuts)}};this.state={shortcutRegistry:null,filteredShortcutList:new Array,shortcutsFetched:false,searchQuery:"",showSelectors:false,currentSort:"category"}}componentDidMount(){this.props.external.actionRequested.connect(this._onActionRequested,this);void this._refreshShortcutList()}componentWillUnmount(){this.props.external.actionRequested.disconnect(this._onActionRequested,this)}async _onActionRequested(e,t){if(t.request==="toggle-selectors"){return this.toggleSelectors()}if(t.request==="reset-all"){await this.resetShortcuts()}}async _refreshShortcutList(){const e=await this.props.external.getSettings();const t=new S({commandRegistry:this.props.external.commandRegistry,settings:e});this.setState({shortcutRegistry:t,filteredShortcutList:this._searchFilterShortcuts(t),shortcutsFetched:true},(()=>{this.sortShortcuts()}))}_searchFilterShortcuts(e){if(!e){return[]}const t=T(e,this.state.searchQuery).map((e=>e.item));return t}async _setKeybinding(e,t,n){var i,s,o,r,l;if(t.length===1&&t[0]==""){t=[]}const d=await this.props.external.getSettings();const c=(i=d.user.shortcuts)!==null&&i!==void 0?i:[];const h=[];let u=false;for(let p of c){if(p.command===e.command&&p.selector===e.selector&&a.JSONExt.deepEqual((s=p.args)!==null&&s!==void 0?s:{},(o=e.args)!==null&&o!==void 0?o:{})&&n&&a.JSONExt.deepEqual(n.keys,p.keys)){const e=n&&n.isDefault&&a.JSONExt.deepEqual(n.keys,t);if(t.length!==0&&!e){h.push({command:p.command,selector:p.selector,keys:t})}u=true}else if(p.command===e.command&&p.selector===e.selector&&a.JSONExt.deepEqual((r=p.args)!==null&&r!==void 0?r:{},(l=e.args)!==null&&l!==void 0?l:{})&&!n&&t.length===0){continue}else{h.push(p)}}if(!u){const i=!n||!a.JSONExt.deepEqual(n.keys,t);const s=n&&n.isDefault&&i;if(s){h.push({command:e.command,selector:e.selector,disabled:true,keys:n.keys})}if(t.length!==0){h.push({command:e.command,selector:e.selector,keys:t})}}await d.set("shortcuts",h);await this._refreshShortcutList()}sortShortcuts(){const e=this.state.filteredShortcutList;let t=this.state.currentSort;if(t==="command"){t="label"}const n=e=>{var n;if(t==="source"){return e.keybindings.every((e=>e.isDefault))?"default":"other"}return(n=e[t])!==null&&n!==void 0?n:""};e.sort(((e,t)=>{var i,s;const o=n(e);const r=n(t);const a=o.localeCompare(r);if(a){return a}else{const n=(i=e["label"])!==null&&i!==void 0?i:"";const o=(s=t["label"])!==null&&s!==void 0?s:"";return n.localeCompare(o)}}));this.setState({filteredShortcutList:e})}render(){if(!this.state.shortcutsFetched){return null}return h.createElement("div",{className:"jp-Shortcuts-ShortcutUI",id:"jp-shortcutui"},h.createElement(x,{updateSearchQuery:this.updateSearchQuery,resetShortcuts:this.resetShortcuts,toggleSelectors:this.toggleSelectors,showSelectors:this.state.showSelectors,updateSort:this.updateSort,currentSort:this.state.currentSort,width:this.props.width,translator:this.props.external.translator}),h.createElement(b,{shortcuts:this.state.filteredShortcutList,resetKeybindings:this.resetKeybindings,addKeybinding:this.addKeybinding,replaceKeybinding:this.replaceKeybinding,deleteKeybinding:this.deleteKeybinding,showSelectors:this.state.showSelectors,findConflictsFor:(e,t)=>{if(this.state.shortcutRegistry){return this.state.shortcutRegistry.findConflictsFor(e,t)}else{console.error("Cannot search for keybinding conflicts at this time: registry is not ready");return[]}},height:this.props.height,external:this.props.external}))}}const M=e=>u().createElement(E,{external:e.external,height:1e3,width:1e3});var D=n(2336);const A="@jupyterlab/shortcuts-extension:shortcuts";function P(e,t,n,i){return{translator:n,getSettings:()=>e.load(A,true),commandRegistry:t.commands,actionRequested:i}}const L={id:A,description:"Adds the keyboard shortcuts editor.",requires:[i.ISettingRegistry],optional:[s.ITranslator,o.IFormRendererRegistry],activate:async(e,t,n,o)=>{const l=n!==null&&n!==void 0?n:s.nullTranslator;const h=l.load("jupyterlab");const{commands:u}=e;let p;let m;let g={};if(o){const n=new D.Signal({});const i=e=>e.dataset["shortcut"]!==undefined;e.commands.addCommand(c.editBinding,{label:h.__("Edit Keybinding"),caption:h.__("Edit existing keybinding"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{const t=e.contextMenuHitTest(i);const s=t===null||t===void 0?void 0:t.dataset["keybinding"];const o=t===null||t===void 0?void 0:t.dataset["shortcut"];if(!o||!s){return console.log("Missing shortcut id/keybinding information")}n.emit({request:"edit-keybinding",keybinding:parseInt(s,10),shortcutId:o})}});e.commands.addCommand(c.deleteBinding,{label:h.__("Delete Keybinding"),caption:h.__("Delete chosen keybinding"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{const t=e.contextMenuHitTest(i);const s=t===null||t===void 0?void 0:t.dataset["keybinding"];const o=t===null||t===void 0?void 0:t.dataset["shortcut"];if(!o||!s){return console.log("Missing shortcut id/keybinding information")}n.emit({request:"delete-keybinding",keybinding:parseInt(s,10),shortcutId:o})}});e.commands.addCommand(c.addBinding,{label:h.__("Add Keybinding"),caption:h.__("Add new keybinding for existing shortcut target"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{const t=e.contextMenuHitTest(i);const s=t===null||t===void 0?void 0:t.dataset["shortcut"];if(!s){return console.log("Missing shortcut id to add keybinding to")}n.emit({request:"add-keybinding",shortcutId:s})}});u.addCommand(c.toggleSelectors,{label:h.__("Toggle Selectors"),caption:h.__("Toggle command selectors"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{n.emit({request:"toggle-selectors"})}});u.addCommand(c.resetAll,{label:h.__("Reset All"),caption:h.__("Reset all shortcuts"),describedBy:{args:{type:"object",properties:{}}},execute:()=>{n.emit({request:"reset-all"})}});const s={fieldRenderer:i=>M({external:P(t,e,l,n),...i})};o.addRenderer(`${L.id}.shortcuts`,s)}function f(n){const i=e.commands.listCommands().join("\n");if(!m){m=a.JSONExt.deepCopy(n.properties.shortcuts.default)}g={};n.properties.shortcuts.default=Object.keys(t.plugins).map((e=>{const n=t.plugins[e].schema["jupyter.lab.shortcuts"]||[];g[e]=n;return n})).concat([m]).reduce(((e,t)=>{if(d.Platform.IS_MAC){return e.concat(t)}else{return e.concat(t.filter((e=>!e.keys.some((e=>{const{cmd:t}=r.CommandRegistry.parseKeystroke(e);return t})))))}}),[]).sort(((e,t)=>e.command.localeCompare(t.command)));n.properties.shortcuts.description=h.__(`Note: To disable a system default shortcut,\ncopy it to User Preferences and add the\n"disabled" key, for example:\n{\n "command": "application:activate-next-tab",\n "keys": [\n "Ctrl Shift ]"\n ],\n "selector": "body",\n "disabled": true\n}\n\nList of commands followed by keyboard shortcuts:\n%1\n\nList of keyboard shortcuts:`,i)}t.pluginChanged.connect((async(e,n)=>{if(n!==L.id){const e=g[n];const i=t.plugins[n].schema["jupyter.lab.shortcuts"]||[];if(e===undefined||!a.JSONExt.deepEqual(e,i)){p=null;const e=t.plugins[L.id].schema;e.properties.shortcuts.default=m;await t.load(L.id,true)}}}));t.transform(L.id,{compose:e=>{var t,n,s,o;if(!p){p=a.JSONExt.deepCopy(e.schema);f(p)}const r=(s=(n=(t=p.properties)===null||t===void 0?void 0:t.shortcuts)===null||n===void 0?void 0:n.default)!==null&&s!==void 0?s:[];const l={shortcuts:(o=e.data.user.shortcuts)!==null&&o!==void 0?o:[]};const d={shortcuts:i.SettingRegistry.reconcileShortcuts(r,l.shortcuts)};e.data={composite:d,user:l};return e},fetch:e=>{if(!p){p=a.JSONExt.deepCopy(e.schema);f(p)}return{data:e.data,id:e.id,raw:e.raw,schema:p,version:e.version}}});try{p=null;const e=await t.load(L.id);N.loadShortcuts(u,e.composite);e.changed.connect((()=>{N.loadShortcuts(u,e.composite)}))}catch(v){console.error(`Loading ${L.id} failed.`,v)}},autoStart:true};const R=L;var N;(function(e){let t;function n(e,n){var s;const o=(s=n===null||n===void 0?void 0:n.shortcuts)!==null&&s!==void 0?s:[];if(t){t.dispose()}t=o.reduce(((t,n)=>{const s=i(n);if(s){t.add(e.addKeyBinding(s))}return t}),new l.DisposableSet)}e.loadShortcuts=n;function i(e){if(!e||typeof e!=="object"){return undefined}const{isArray:t}=Array;const n="command"in e&&"keys"in e&&"selector"in e&&t(e.keys);return n?e:undefined}})(N||(N={}))},48552:(e,t,n)=>{"use strict";var i=n(40662);var s=n(85072);var o=n.n(s);var r=n(97825);var a=n.n(r);var l=n(77659);var d=n.n(l);var c=n(55056);var h=n.n(c);var u=n(10540);var p=n.n(u);var m=n(41113);var g=n.n(m);var f=n(64547);var v={};v.styleTagTransform=g();v.setAttributes=h();v.insert=d().bind(null,"head");v.domAPI=a();v.insertStyleElement=p();var _=o()(f.A,v);const b=f.A&&f.A.locals?f.A.locals:undefined},4056:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DataConnector=void 0;class n{async list(e){throw new Error("DataConnector#list method has not been implemented.")}async remove(e){throw new Error("DataConnector#remove method has not been implemented.")}async save(e,t){throw new Error("DataConnector#save method has not been implemented.")}}t.DataConnector=n},19531:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))i(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});s(n(4056),t);s(n(78031),t);s(n(45310),t);s(n(19864),t);s(n(82877),t)},78031:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},45310:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RestorablePool=void 0;const i=n(5592);const s=n(94466);const o=n(2336);class r{constructor(e){this._added=new o.Signal(this);this._current=null;this._currentChanged=new o.Signal(this);this._hasRestored=false;this._isDisposed=false;this._objects=new Set;this._restore=null;this._restored=new i.PromiseDelegate;this._updated=new o.Signal(this);this.namespace=e.namespace}get added(){return this._added}get current(){return this._current}set current(e){if(this._current===e){return}if(e!==null&&this._objects.has(e)){this._current=e;this._currentChanged.emit(this._current)}}get currentChanged(){return this._currentChanged}get isDisposed(){return this._isDisposed}get restored(){return this._restored.promise}get size(){return this._objects.size}get updated(){return this._updated}async add(e){var t,n;if(e.isDisposed){const t="A disposed object cannot be added.";console.warn(t,e);throw new Error(t)}if(this._objects.has(e)){const t="This object already exists in the pool.";console.warn(t,e);throw new Error(t)}this._objects.add(e);e.disposed.connect(this._onInstanceDisposed,this);if(a.injectedProperty.get(e)){return}if(this._restore){const{connector:i}=this._restore;const s=this._restore.name(e);if(s){const o=`${this.namespace}:${s}`;const r=(n=(t=this._restore).args)===null||n===void 0?void 0:n.call(t,e);a.nameProperty.set(e,o);await i.save(o,{data:r})}}this._added.emit(e)}dispose(){if(this.isDisposed){return}this._current=null;this._isDisposed=true;this._objects.clear();o.Signal.clearData(this)}find(e){const t=this._objects.values();for(const n of t){if(e(n)){return n}}return undefined}forEach(e){this._objects.forEach(e)}filter(e){const t=[];this.forEach((n=>{if(e(n)){t.push(n)}}));return t}inject(e){a.injectedProperty.set(e,true);return this.add(e)}has(e){return this._objects.has(e)}async restore(e){if(this._hasRestored){throw new Error("This pool has already been restored.")}this._hasRestored=true;const{command:t,connector:n,registry:i,when:s}=e;const o=this.namespace;const r=s?[n.list(o)].concat(s):[n.list(o)];this._restore=e;const[a]=await Promise.all(r);const l=await Promise.all(a.ids.map((async(e,s)=>{const o=a.values[s];const r=o&&o.data;if(r===undefined){return n.remove(e)}return i.execute(t,r).catch((()=>n.remove(e)))})));this._restored.resolve();return l}async save(e){var t,n;const i=a.injectedProperty.get(e);if(!this._restore||!this.has(e)||i){return}const{connector:s}=this._restore;const o=this._restore.name(e);const r=a.nameProperty.get(e);const l=o?`${this.namespace}:${o}`:"";if(r&&r!==l){await s.remove(r)}a.nameProperty.set(e,l);if(l){const i=(n=(t=this._restore).args)===null||n===void 0?void 0:n.call(t,e);await s.save(l,{data:i})}if(r!==l){this._updated.emit(e)}}_onInstanceDisposed(e){this._objects.delete(e);if(e===this._current){this._current=null;this._currentChanged.emit(this._current)}if(a.injectedProperty.get(e)){return}if(!this._restore){return}const{connector:t}=this._restore;const n=a.nameProperty.get(e);if(n){void t.remove(n)}}}t.RestorablePool=r;var a;(function(e){e.injectedProperty=new s.AttachedProperty({name:"injected",create:()=>false});e.nameProperty=new s.AttachedProperty({name:"name",create:()=>""})})(a||(a={}))},19864:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StateDB=void 0;const i=n(2336);class s{constructor(e={}){this._changed=new i.Signal(this);const{connector:t,transform:n}=e;this._connector=t||new s.Connector;if(!n){this._ready=Promise.resolve(undefined)}else{this._ready=n.then((e=>{const{contents:t,type:n}=e;switch(n){case"cancel":return;case"clear":return this._clear();case"merge":return this._merge(t||{});case"overwrite":return this._overwrite(t||{});default:return}}))}}get changed(){return this._changed}async clear(){await this._ready;await this._clear()}async fetch(e){await this._ready;return this._fetch(e)}async list(e){await this._ready;return this._list(e)}async remove(e){await this._ready;await this._remove(e);this._changed.emit({id:e,type:"remove"})}async save(e,t){await this._ready;await this._save(e,t);this._changed.emit({id:e,type:"save"})}async toJSON(){await this._ready;const{ids:e,values:t}=await this._list();return t.reduce(((t,n,i)=>{t[e[i]]=n;return t}),{})}async _clear(){await Promise.all((await this._list()).ids.map((e=>this._remove(e))))}async _fetch(e){const t=await this._connector.fetch(e);if(t){return JSON.parse(t).v}}async _list(e=""){const{ids:t,values:n}=await this._connector.list(e);return{ids:t,values:n.map((e=>JSON.parse(e).v))}}async _merge(e){await Promise.all(Object.keys(e).map((t=>e[t]&&this._save(t,e[t]))))}async _overwrite(e){await this._clear();await this._merge(e)}async _remove(e){return this._connector.remove(e)}async _save(e,t){return this._connector.save(e,JSON.stringify({v:t}))}}t.StateDB=s;(function(e){class t{constructor(){this._storage={}}async fetch(e){return this._storage[e]}async list(e=""){return Object.keys(this._storage).reduce(((t,n)=>{if(e===""?true:e===n.split(":")[0]){t.ids.push(n);t.values.push(this._storage[n])}return t}),{ids:[],values:[]})}async remove(e){delete this._storage[e]}async save(e,t){this._storage[e]=t}}e.Connector=t})(s||(t.StateDB=s={}))},82877:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IStateDB=void 0;const i=n(5592);t.IStateDB=new i.Token("@jupyterlab/coreutils:IStateDB",`A service for the JupyterLab state database.\n Use this if you want to store data that will persist across page loads.\n See "state database" for more information.`)},6771:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>g});var i=n(88617);var s=n.n(i);var o=n(38850);var r=n.n(o);var a=n(40065);var l=n.n(a);var d=n(4625);var c=n.n(d);var h=n(34881);var u=n.n(h);const p="@jupyterlab/statusbar-extension:plugin";const m={id:p,description:"Provides the application status bar.",requires:[h.ITranslator],provides:d.IStatusBar,autoStart:true,activate:(e,t,n,i,s)=>{const o=t.load("jupyterlab");const r=new d.StatusBar;r.id="jp-main-statusbar";e.shell.add(r,"bottom");if(n){n.layoutModified.connect((()=>{r.update()}))}const a=o.__("Main Area");const l="statusbar:toggle";e.commands.addCommand(l,{label:o.__("Show Status Bar"),execute:()=>{r.setHidden(r.isVisible);if(i){void i.set(p,"visible",r.isVisible)}},isToggled:()=>r.isVisible,describedBy:{args:{type:"object",properties:{}}}});e.commands.commandExecuted.connect(((t,n)=>{if(n.id==="application:reset-layout"&&!r.isVisible){e.commands.execute(l).catch((e=>{console.error("Failed to show the status bar.",e)}))}}));if(s){s.addItem({command:l,category:a})}if(i){const t=i.load(p);const n=e=>{const t=e.get("visible").composite;r.setHidden(!t)};Promise.all([t,e.restored]).then((([e])=>{n(e);e.changed.connect((e=>{n(e)}))})).catch((e=>{console.error(e.message)}))}return r},optional:[i.ILabShell,a.ISettingRegistry,o.ICommandPalette]};const g=m},40005:(e,t,n)=>{"use strict";var i=n(24800);var s=n(97913);var o=n(3579)},57850:(e,t,n)=>{"use strict";n.r(t);n.d(t,{GroupItem:()=>o,IStatusBar:()=>b,Popup:()=>d,ProgressBar:()=>c,ProgressCircle:()=>p,StatusBar:()=>f,TextItem:()=>u,showPopup:()=>l});var i=n(44914);var s=n.n(i);function o(e){const{spacing:t,children:n,className:s,...o}=e;const r=i.Children.toArray(n).filter(Boolean);const a=r.length;return i.createElement("div",{className:`jp-StatusBar-GroupItem ${s||""}`,...o},r.map(((e,n)=>{const s=`group-item-${n}`;if(n===0){return i.createElement("div",{key:s,style:{marginRight:`${t}px`}},e)}else if(n===a-1){return i.createElement("div",{key:s,style:{marginLeft:`${t}px`}},e)}else{return i.createElement("div",{key:s,style:{margin:`0px ${t}px`}},e)}})))}var r=n(4073);var a=n(27518);function l(e){const t=new d(e);if(!e.startHidden){t.launch()}return t}class d extends a.Widget{constructor(e){super();this.addClass("jp-ThemedContainer");this._body=e.body;this._body.addClass("jp-StatusBar-HoverItem");this._anchor=e.anchor;this._align=e.align;if(e.hasDynamicSize){this._observer=new ResizeObserver((()=>{this.update()}))}const t=this.layout=new a.PanelLayout;t.addWidget(e.body);this._body.node.addEventListener("resize",(()=>{this.update()}))}launch(){this._setGeometry();a.Widget.attach(this,document.body);this.update();this._anchor.addClass("jp-mod-clicked");this._anchor.removeClass("jp-mod-highlight")}onUpdateRequest(e){this._setGeometry();super.onUpdateRequest(e)}onAfterAttach(e){var t;document.addEventListener("click",this,false);this.node.addEventListener("keydown",this,false);window.addEventListener("resize",this,false);(t=this._observer)===null||t===void 0?void 0:t.observe(this._body.node)}onBeforeDetach(e){var t;(t=this._observer)===null||t===void 0?void 0:t.disconnect();document.removeEventListener("click",this,false);this.node.removeEventListener("keydown",this,false);window.removeEventListener("resize",this,false)}onResize(){this.update()}dispose(){var e;(e=this._observer)===null||e===void 0?void 0:e.disconnect();super.dispose();this._anchor.removeClass("jp-mod-clicked");this._anchor.addClass("jp-mod-highlight")}handleEvent(e){switch(e.type){case"keydown":this._evtKeydown(e);break;case"click":this._evtClick(e);break;case"resize":this.onResize();break;default:break}}_evtClick(e){if(!!e.target&&!(this._body.node.contains(e.target)||this._anchor.node.contains(e.target))){this.dispose()}}_evtKeydown(e){switch(e.keyCode){case 27:e.stopPropagation();e.preventDefault();this.dispose();break;default:break}}_setGeometry(){let e=0;const t=this._anchor.node.getBoundingClientRect();const n=this._body.node.getBoundingClientRect();if(this._align==="right"){e=-(n.width-t.width)}const i=window.getComputedStyle(this._body.node);r.HoverBox.setGeometry({anchor:t,host:document.body,maxHeight:500,minHeight:20,node:this._body.node,offset:{horizontal:e},privilege:"forceAbove",style:i})}}function c(e){const{width:t,percentage:n,...s}=e;return i.createElement("div",{className:"jp-Statusbar-ProgressBar-progress-bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n},i.createElement(h,{percentage:n,...s,contentWidth:t}))}function h(e){return i.createElement("div",{style:{width:`${e.percentage}%`}},i.createElement("p",null,e.content))}function u(e){const{title:t,source:n,className:s,...o}=e;return i.createElement("span",{className:s?`jp-StatusBar-TextItem ${s}`:"jp-StatusBar-TextItem",title:t,...o},n)}function p(e){const t=104;const n=e=>{const n=Math.max(e*3.6,.1);const i=n*Math.PI/180,s=Math.sin(i)*t,o=Math.cos(i)*-t,r=n<180?1:0,a=`M 0 0 v -${t} A ${t} ${t} 1 `+r+" 0 "+s.toFixed(4)+" "+o.toFixed(4)+" z";return a};return s().createElement("div",{className:"jp-Statusbar-ProgressCircle",role:"progressbar","aria-label":e.label||"Unlabelled progress circle","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.progress,onClick:e.onClick},s().createElement("svg",{viewBox:"0 0 250 250"},s().createElement("circle",{cx:"125",cy:"125",r:`${t}`,stroke:"var(--jp-inverse-layout-color3)",strokeWidth:"20",fill:"none"}),s().createElement("path",{className:"jp-Statusbar-ProgressCirclePath",transform:"translate(125,125) scale(.9)",d:n(e.progress),fill:"var(--jp-inverse-layout-color3)"})))}var m=n(34236);var g=n(90044);class f extends a.Widget{constructor(){super();this._isWindowNarrow=()=>window.innerWidth<=630;this._leftRankItems=[];this._rightRankItems=[];this._statusItems={};this._disposables=new g.DisposableSet;this.addClass("jp-StatusBar-Widget");const e=this.layout=new a.PanelLayout;const t=this._leftSide=new a.Panel;const n=this._middlePanel=new a.Panel;const i=this._rightSide=new a.Panel;t.addClass("jp-StatusBar-Left");n.addClass("jp-StatusBar-Middle");i.addClass("jp-StatusBar-Right");i.node.style.flexDirection="row";e.addWidget(t);e.addWidget(n);e.addWidget(i)}registerStatusItem(e,t){if(e in this._statusItems){throw new Error(`Status item ${e} already registered.`)}const n={...v.statusItemDefaults,...t};const{align:i,item:s,rank:o,priority:r}=n;const a=()=>{this._refreshItem(e)};if(n.activeStateChanged){n.activeStateChanged.connect(a)}const l={id:e,rank:o,priority:r};n.item.addClass("jp-StatusBar-Item");this._statusItems[e]=n;if(i==="left"){const e=this._findInsertIndex(this._leftRankItems,l);if(e===-1){this._leftSide.addWidget(s);this._leftRankItems.push(l)}else{m.ArrayExt.insert(this._leftRankItems,e,l);this._leftSide.insertWidget(e,s)}}else if(i==="right"){const e=m.ArrayExt.findFirstIndex(this._rightRankItems,(e=>e.rank{delete this._statusItems[e];if(n.activeStateChanged){n.activeStateChanged.disconnect(a)}s.parent=null;s.dispose()}));this._disposables.add(d);return d}dispose(){this._leftRankItems.length=0;this._rightRankItems.length=0;this._disposables.dispose();super.dispose()}onUpdateRequest(e){this._refreshAll();super.onUpdateRequest(e)}_findInsertIndex(e,t){return m.ArrayExt.findFirstIndex(e,(e=>e.rank>t.rank))}_refreshItem(e){const t=this._statusItems[e];if(t.isActive()&&!(t.priority===0&&this._isWindowNarrow())){t.item.show();t.item.update()}else{t.item.hide()}}_refreshAll(){Object.keys(this._statusItems).forEach((e=>{this._refreshItem(e)}))}}var v;(function(e){e.statusItemDefaults={align:"left",rank:0,priority:0,isActive:()=>true,activeStateChanged:undefined}})(v||(v={}));var _=n(5592);const b=new _.Token("@jupyterlab/statusbar:IStatusBar","A service for the status bar on the application. Use this if you want to add new status bar items.")},24800:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(85072);var r=n.n(o);var a=n(97825);var l=n.n(a);var d=n(77659);var c=n.n(d);var h=n(55056);var u=n.n(h);var p=n(10540);var m=n.n(p);var g=n(41113);var f=n.n(g);var v=n(28423);var _={};_.styleTagTransform=f();_.setAttributes=u();_.insert=c().bind(null,"head");_.domAPI=l();_.insertStyleElement=m();var b=r()(v.A,_);const y=v.A&&v.A.locals?v.A.locals:undefined},60135:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>y});var i=n(88617);var s=n(38850);var o=n(41043);var r=n(46417);var a=n(89433);var l=n(58719);var d=n(49278);var c=n(40065);var h=n(92909);var u=n(34881);var p=n(4073);var m=n(27518);var g=n(24894);var f=n.n(g);class v extends o.SearchProvider{constructor(e){super(e);this.widget=e;this.isReadOnly=true;this._currentMatchIndex=null;this._matchesCount=null;const t=this.widget.content;t.searchAddon.onDidChangeResults((e=>{const{resultCount:t,resultIndex:n}=e;this._currentMatchIndex=t>0?n:null;this._matchesCount=t>0?t:null}));t.themeChanged.connect((()=>{this._onThemeChanged()}));this._onThemeChanged()}static createNew(e,t){return new v(e)}static isApplicable(e){return e instanceof s.MainAreaWidget&&e.content instanceof h.Terminal}async clearHighlight(){this._clear();return Promise.resolve()}get currentMatchIndex(){return this._currentMatchIndex}async endQuery(){this._clear();return Promise.resolve()}async highlightNext(){this._next();return Promise.resolve(undefined)}async highlightPrevious(){this._previous();return Promise.resolve(undefined)}get matchesCount(){return this._matchesCount}async replaceCurrentMatch(e,t,n){return Promise.resolve(false)}async replaceAllMatches(e,t){return Promise.resolve(false)}async startQuery(e){this._query=e;this._next();return Promise.resolve()}_clear(){this._query=undefined;this._currentMatchIndex=null;this._matchesCount=null;this.widget.content.searchAddon.clearDecorations()}_colorToRRGGBB(e,t){try{let n=f()(e);const i=n.alpha();if(i<1){n=n.mix(f()(t),i)}return n.hex()}catch(n){return"#888888"}}_next(){if(this._query!==undefined){const{flags:e,source:t}=this._query;this.widget.content.searchAddon.findNext(t,this._searchOptions(e))}}_onThemeChanged(){const e=this.widget.content.getXTermTheme();const{background:t}=e;const n=this._colorToRRGGBB(e.activeMatchBackground,t);const i=this._colorToRRGGBB(e.selectionBackground,t);this._searchDecorationOptions={activeMatchBackground:n,matchBackground:i,matchOverviewRuler:"",activeMatchColorOverviewRuler:""};if(this._query!==undefined){this.widget.content.searchAddon.clearDecorations();this._next()}}_previous(){if(this._query!==undefined){const{flags:e,source:t}=this._query;this.widget.content.searchAddon.findPrevious(t,this._searchOptions(e))}}_searchOptions(e){return{caseSensitive:!e.includes("i"),incremental:false,regex:true,wholeWord:false,decorations:this._searchDecorationOptions}}}var _;(function(e){e.copy="terminal:copy";e.createNew="terminal:create-new";e.open="terminal:open";e.refresh="terminal:refresh";e.increaseFont="terminal:increase-font";e.decreaseFont="terminal:decrease-font";e.paste="terminal:paste";e.setTheme="terminal:set-theme";e.shutdown="terminal:shut-down"})(_||(_={}));const b={activate:w,id:"@jupyterlab/terminal-extension:plugin",description:"Adds terminal and provides its tracker.",provides:h.ITerminalTracker,requires:[c.ISettingRegistry,u.ITranslator],optional:[s.ICommandPalette,r.ILauncher,i.ILayoutRestorer,a.IMainMenu,s.IThemeManager,l.IRunningSessionManagers,o.ISearchProviderRegistry],autoStart:true};const y=b;function w(e,t,n,i,o,r,a,l,d,c){const h=n.load("jupyterlab");const{serviceManager:u,commands:p}=e;const g=h.__("Terminal");const f="terminal";const y=new s.WidgetTracker({namespace:f});if(!u.terminals.isAvailable()){console.warn("Disabling terminals plugin because they are not available on the server");return y}if(r){void r.restore(y,{command:_.createNew,args:e=>({name:e.content.session.name}),name:e=>e.content.session.name})}const w={};function j(e){Object.keys(e.composite).forEach((t=>{w[t]=e.composite[t]}))}function k(e){const t=e.content;if(!t){return}Object.keys(w).forEach((e=>{t.setOption(e,w[e])}))}function I(){y.forEach((e=>k(e)))}t.load(b.id).then((e=>{j(e);I();e.changed.connect((()=>{j(e);I()}))})).catch(S.showErrorMessage);l===null||l===void 0?void 0:l.themeChanged.connect(((e,t)=>{y.forEach((e=>{const t=e.content;if(t.getOption("theme")==="inherit"){t.setOption("theme","inherit")}}))}));x(e,y,t,n,w);if(a){const e=new m.Menu({commands:p});e.title.label=h._p("menu","Terminal Theme");e.addItem({command:_.setTheme,args:{theme:"inherit",displayName:h.__("Inherit"),isPalette:false}});e.addItem({command:_.setTheme,args:{theme:"light",displayName:h.__("Light"),isPalette:false}});e.addItem({command:_.setTheme,args:{theme:"dark",displayName:h.__("Dark"),isPalette:false}});a.settingsMenu.addGroup([{command:_.increaseFont},{command:_.decreaseFont},{type:"submenu",submenu:e}],40);a.fileMenu.newMenu.addItem({command:_.createNew,rank:20});a.fileMenu.closeAndCleaners.add({id:_.shutdown,isEnabled:e=>y.currentWidget!==null&&y.has(e)})}if(i){[_.createNew,_.refresh,_.increaseFont,_.decreaseFont].forEach((e=>{i.addItem({command:e,category:g,args:{isPalette:true}})}));i.addItem({command:_.setTheme,category:g,args:{theme:"inherit",displayName:h.__("Inherit"),isPalette:true}});i.addItem({command:_.setTheme,category:g,args:{theme:"light",displayName:h.__("Light"),isPalette:true}});i.addItem({command:_.setTheme,category:g,args:{theme:"dark",displayName:h.__("Dark"),isPalette:true}})}if(o){o.add({command:_.createNew,category:h.__("Other"),rank:0})}if(d){C(d,e,n)}if(c){c.add("terminal",v)}return y}function C(e,t,n){const i=n.load("jupyterlab");const s=t.serviceManager.terminals;class o{constructor(e){this._model=e}open(){void t.commands.execute("terminal:open",{name:this._model.name})}icon(){return p.terminalIcon}label(){return`terminals/${this._model.name}`}shutdown(){return s.shutdown(this._model.name)}}e.add({name:i.__("Terminals"),supportsMultipleViews:false,running:()=>Array.from(s.running()).map((e=>new o(e))),shutdownAll:()=>s.shutdownAll(),refreshRunning:()=>s.refreshRunning(),runningChanged:s.runningChanged,shutdownLabel:i.__("Shut Down"),shutdownAllLabel:i.__("Shut Down All"),shutdownAllConfirmationText:i.__("Are you sure you want to permanently shut down all running terminals?")})}function x(e,t,n,i,o){var r;const a=i.load("jupyterlab");const{commands:l,serviceManager:c}=e;const u=()=>t.currentWidget!==null&&t.currentWidget===e.shell.currentWidget;l.addCommand(_.createNew,{label:e=>e["isPalette"]?a.__("New Terminal"):a.__("Terminal"),caption:a.__("Start a new terminal session"),icon:e=>e["isPalette"]?undefined:p.terminalIcon,execute:async n=>{const r=n["name"];const a=n["cwd"];const l=a?c.contents.localPath(a):undefined;let u;if(r){const e=await d.TerminalAPI.listRunning(c.serverSettings);if(e.map((e=>e.name)).includes(r)){u=c.terminals.connectTo({model:{name:r}})}else{u=await c.terminals.startNew({name:r,cwd:l})}}else{u=await c.terminals.startNew({cwd:l})}const m=new h.Terminal(u,o,i);m.title.icon=p.terminalIcon;m.title.label="...";const g=new s.MainAreaWidget({content:m,reveal:m.ready});e.shell.add(g,"main",{type:"Terminal"});void t.add(g);e.shell.activateById(g.id);return g},describedBy:{args:{type:"object",properties:{name:{type:"string",description:a.__("Terminal session name")},cwd:{type:"string",description:a.__("Current working directory for the terminal")},isPalette:{type:"boolean",description:a.__("Whether the command is called from the command palette")}}}}});l.addCommand(_.open,{label:a.__("Open a terminal by its `name`."),execute:n=>{const i=n["name"];const s=t.find((e=>{const t=e.content;return t.session.name===i||false}));if(s){e.shell.activateById(s.id)}else{return l.execute(_.createNew,{name:i})}},describedBy:{args:{type:"object",properties:{name:{type:"string",description:a.__("Terminal session name to open")}},required:["name"]}}});l.addCommand(_.refresh,{label:a.__("Refresh Terminal"),caption:a.__("Refresh the current terminal session"),execute:async()=>{const n=t.currentWidget;if(!n){return}e.shell.activateById(n.id);try{await n.content.refresh();if(n){n.content.activate()}}catch(i){S.showErrorMessage(i)}},icon:e=>e["isPalette"]?undefined:p.refreshIcon.bindprops({stylesheet:"menuItem"}),isEnabled:u,describedBy:{args:{type:"object",properties:{isPalette:{type:"boolean",description:a.__("Whether the command is called from the command palette")}}}}});l.addCommand(_.copy,{execute:()=>{var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(!n){return}const i=n.getSelection();if(i){s.Clipboard.copyToSystem(i);n.activate()}},isEnabled:()=>{var e;if(!u()){return false}const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(!n){return false}return n.hasSelection()},icon:p.copyIcon.bindprops({stylesheet:"menuItem"}),label:a.__("Copy"),describedBy:{args:{type:"object",properties:{}}}});l.addCommand(_.paste,{execute:async()=>{var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(!n){return}const i=window.navigator.clipboard;const s=await i.readText();if(s){n.paste(s);n.activate()}},isEnabled:()=>{var e;return Boolean(u()&&((e=t.currentWidget)===null||e===void 0?void 0:e.content))},icon:p.pasteIcon.bindprops({stylesheet:"menuItem"}),label:a.__("Paste"),describedBy:{args:{type:"object",properties:{}}}});l.addCommand(_.shutdown,{label:a.__("Shutdown Terminal"),execute:()=>{const e=t.currentWidget;if(!e){return}return e.content.session.shutdown()},isEnabled:u,describedBy:{args:{type:"object",properties:{}}}});l.addCommand(_.increaseFont,{label:a.__("Increase Terminal Font Size"),execute:async()=>{const{fontSize:e}=o;if(e&&e<72){try{await n.set(b.id,"fontSize",e+1)}catch(t){S.showErrorMessage(t)}}},describedBy:{args:{type:"object",properties:{}}}});l.addCommand(_.decreaseFont,{label:a.__("Decrease Terminal Font Size"),execute:async()=>{const{fontSize:e}=o;if(e&&e>9){try{await n.set(b.id,"fontSize",e-1)}catch(t){S.showErrorMessage(t)}}},describedBy:{args:{type:"object",properties:{}}}});const m={inherit:a.__("Inherit"),light:a.__("Light"),dark:a.__("Dark")};l.addCommand(_.setTheme,{label:e=>{if(e.theme===undefined){return a.__("Set terminal theme to the provided `theme`.")}const t=e["theme"];const n=t in m?m[t]:a.__(t[0].toUpperCase()+t.slice(1));return e["isPalette"]?a.__("Use Terminal Theme: %1",n):n},caption:a.__("Set the terminal theme"),isToggled:e=>{const{theme:t}=o;return e["theme"]===t},execute:async e=>{const t=e["theme"];try{await n.set(b.id,"theme",t);l.notifyCommandChanged(_.setTheme)}catch(i){console.log(i);S.showErrorMessage(i)}},describedBy:{args:{type:"object",properties:{theme:{type:"string",enum:["inherit","light","dark"],description:a.__("Terminal theme to set")},isPalette:{type:"boolean",description:"Whether the command is called from the command palette"}},required:["theme"]}}});const g=[_.refresh,_.copy,_.paste,_.shutdown];const f=()=>{g.forEach((e=>l.notifyCommandChanged(e)))};t.currentChanged.connect(f);(r=e.shell.currentChanged)===null||r===void 0?void 0:r.connect(f)}var S;(function(e){function t(e){console.error(`Failed to configure ${b.id}: ${e.message}`)}e.showErrorMessage=t})(S||(S={}))},70558:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(3579);var a=n(19562);var l=n(75797);var d=n(67996);var c=n(94780);var h=n(69448);var u=n(85072);var p=n.n(u);var m=n(97825);var g=n.n(m);var f=n(77659);var v=n.n(f);var _=n(55056);var b=n.n(_);var y=n(10540);var w=n.n(y);var C=n(41113);var x=n.n(C);var S=n(51466);var j={};j.styleTagTransform=x();j.setAttributes=b();j.insert=v().bind(null,"head");j.domAPI=g();j.insertStyleElement=w();var k=p()(S.A,j);const I=S.A&&S.A.locals?S.A.locals:undefined},4202:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ITerminal:()=>o,ITerminalTracker:()=>s,Terminal:()=>g});var i=n(5592);const s=new i.Token("@jupyterlab/terminal:ITerminalTracker",`A widget tracker for terminals.\n Use this if you want to be able to iterate over and interact with terminals\n created by the application.`);var o;(function(e){e.defaultOptions={theme:"inherit",fontFamily:'Menlo, Consolas, "DejaVu Sans Mono", monospace',fontSize:13,lineHeight:1,scrollback:1e3,shutdownOnClose:false,closeOnExit:true,cursorBlink:true,initialCommand:"",screenReaderMode:false,pasteWithCtrlV:true,autoFit:true,macOptionIsMeta:false}})(o||(o={}));var r=n(34881);var a=n(76326);var l=n(42856);var d=n(2336);var c=n(27518);var h=n(24894);var u=n.n(h);const p="jp-Terminal";const m="jp-Terminal-body";class g extends c.Widget{constructor(e,t={},n){super();this._needsResize=true;this._offsetWidth=-1;this._offsetHeight=-1;this._isReady=false;this._ready=new i.PromiseDelegate;this._termOpened=false;this._themeChanged=new d.Signal(this);n=n||r.nullTranslator;this._trans=n.load("jupyterlab");this.session=e;this._options={...o.defaultOptions,...t};const{theme:s,...a}=this._options;const l={theme:f.getXTermTheme(s),allowProposedApi:true,...a};this.addClass(p);this._setThemeAttribute(s);let c="";const h=(e,t)=>{switch(t.type){case"stdout":if(t.content){c+=t.content[0]}break;default:break}};e.messageReceived.connect(h);e.disposed.connect((()=>{if(this.getOption("closeOnExit")){this.dispose()}}),this);f.createTerminal(l).then((([t,n,i])=>{this._term=t;this._fitAddon=n;this._searchAddon=i;this._initializeTerm();this.id=`jp-Terminal-${f.id++}`;this.title.label=this._trans.__("Terminal");this._isReady=true;this._ready.resolve();if(c){this._term.write(c)}e.messageReceived.disconnect(h);e.messageReceived.connect(this._onMessage,this);if(e.connectionStatus==="connected"){this._initialConnection()}else{e.connectionStatusChanged.connect(this._initialConnection,this)}this.update()})).catch((e=>{console.error("Failed to create a terminal.\n",e);this._ready.reject(e)}))}get ready(){return this._ready.promise}getOption(e){return this._options[e]}setOption(e,t){if(e!=="theme"&&(this._options[e]===t||e==="initialCommand")){return}this._options[e]=t;switch(e){case"fontFamily":this._term.options.fontFamily=t;break;case"fontSize":this._term.options.fontSize=t;break;case"lineHeight":this._term.options.lineHeight=t;break;case"screenReaderMode":this._term.options.screenReaderMode=t;break;case"scrollback":this._term.options.scrollback=t;break;case"theme":this._term.options.theme={...f.getXTermTheme(t)};this._setThemeAttribute(t);this._themeChanged.emit();break;case"macOptionIsMeta":this._term.options.macOptionIsMeta=t;break;default:break}this._needsResize=true;this.update()}dispose(){if(!this.session.isDisposed){if(this.getOption("shutdownOnClose")){this.session.shutdown().catch((e=>{console.error(`Terminal not shut down: ${e}`)}))}}void this.ready.then((()=>{this._term.dispose()}));super.dispose()}async refresh(){if(!this.isDisposed&&this._isReady){await this.session.reconnect();this._term.clear()}}hasSelection(){if(!this.isDisposed&&this._isReady){return this._term.hasSelection()}return false}paste(e){if(!this.isDisposed&&this._isReady){return this._term.paste(e)}}getSelection(){if(!this.isDisposed&&this._isReady){return this._term.getSelection()}return null}processMessage(e){super.processMessage(e);switch(e.type){case"fit-request":this.onFitRequest(e);break;default:break}}get searchAddon(){return this._searchAddon}getXTermTheme(){const{theme:e}=this._options;return f.getXTermTheme(e)}get themeChanged(){return this._themeChanged}onAfterAttach(e){this.update()}onAfterShow(e){this.update()}onResize(e){this._offsetWidth=e.width;this._offsetHeight=e.height;this._needsResize=true;this.update()}onUpdateRequest(e){var t;if(!this.isVisible||!this.isAttached||!this._isReady){return}if(!this._termOpened){this._term.open(this.node);(t=this._term.element)===null||t===void 0?void 0:t.classList.add(m);this._termOpened=true}if(this._needsResize){this._resizeTerminal()}}onFitRequest(e){const t=c.Widget.ResizeMessage.UnknownSize;l.MessageLoop.sendMessage(this,t)}onActivateRequest(e){var t;(t=this._term)===null||t===void 0?void 0:t.focus()}_initialConnection(){if(this.isDisposed){return}if(this.session.connectionStatus!=="connected"){return}this.title.label=this._trans.__("Terminal %1",this.session.name);this._setSessionSize();if(this._options.initialCommand){this.session.send({type:"stdin",content:[this._options.initialCommand+"\r"]})}this.session.connectionStatusChanged.disconnect(this._initialConnection,this)}_initializeTerm(){const e=this._term;e.onData((e=>{if(this.isDisposed){return}this.session.send({type:"stdin",content:[e]})}));e.onTitleChange((e=>{this.title.label=e}));if(a.Platform.IS_MAC){return}e.attachCustomKeyEventHandler((t=>{if(t.ctrlKey&&t.key==="c"&&e.hasSelection()){return false}if(t.ctrlKey&&t.key==="v"&&this._options.pasteWithCtrlV){return false}return true}))}_onMessage(e,t){switch(t.type){case"stdout":if(t.content){this._term.write(t.content[0])}break;case"disconnect":this._term.write("\r\n\r\n[Finished… Term Session]\r\n");break;default:break}}_resizeTerminal(){if(this._options.autoFit){this._fitAddon.fit()}if(this._offsetWidth===-1){this._offsetWidth=this.node.offsetWidth}if(this._offsetHeight===-1){this._offsetHeight=this.node.offsetHeight}this._setSessionSize();this._needsResize=false}_setSessionSize(){const e=[this._term.rows,this._term.cols,this._offsetHeight,this._offsetWidth];if(!this.isDisposed){this.session.send({type:"set_size",content:e})}}_setThemeAttribute(e){if(this.isDisposed){return}this.node.setAttribute("data-term-theme",e?e.toLowerCase():"inherit")}}var f;(function(e){e.id=0;e.lightTheme={foreground:"#000",background:"#fff",cursor:"#616161",cursorAccent:"#F5F5F5",selectionBackground:"rgba(97, 97, 97, 0.3)",selectionInactiveBackground:"rgba(189, 189, 189, 0.3)",activeMatchBackground:"#ffee58"};e.darkTheme={foreground:"#fff",background:"#000",cursor:"#fff",cursorAccent:"#000",selectionBackground:"rgba(255, 255, 255, 0.3)",selectionInactiveBackground:"rgba(238, 238, 238, 0.3)",activeMatchBackground:"#F57F17"};e.inheritTheme=()=>{const e=getComputedStyle(document.body);const t=e.getPropertyValue("--jp-layout-color0").trim();let n="#ffee58";try{if(u()(t).isDark()){n="#F57F17"}}catch(i){}return{foreground:e.getPropertyValue("--jp-ui-font-color0").trim(),background:t,cursor:e.getPropertyValue("--jp-ui-font-color1").trim(),cursorAccent:e.getPropertyValue("--jp-ui-inverse-font-color0").trim(),selectionBackground:e.getPropertyValue("--jp-layout-color3").trim(),selectionInactiveBackground:e.getPropertyValue("--jp-layout-color2").trim(),activeMatchBackground:n}};function t(t){switch(t){case"light":return e.lightTheme;case"dark":return e.darkTheme;case"inherit":default:return e.inheritTheme()}}e.getXTermTheme=t})(f||(f={}));(function(e){let t=false;let i;let s;let o;let r;let a;function l(){const e=document.createElement("canvas");const t=e.getContext("webgl")||e.getContext("experimental-webgl");try{return t instanceof WebGLRenderingContext}catch(n){return false}}function d(e){let n=new a;e.loadAddon(n);if(t){n.onContextLoss((t=>{console.debug("WebGL context lost - reinitialize Xtermjs renderer.");n.dispose();d(e)}))}}async function c(e){var c;if(!i){t=l();const[e,d,h,u,p]=await Promise.all([n.e(7856).then(n.t.bind(n,97856,23)),n.e(3616).then(n.t.bind(n,33616,23)),t?n.e(3799).then(n.t.bind(n,56180,23)):n.e(2880).then(n.t.bind(n,52880,23)),n.e(1832).then(n.t.bind(n,31832,23)),n.e(9938).then(n.t.bind(n,79938,23))]);i=e.Terminal;s=d.FitAddon;a=(c=h.WebglAddon)!==null&&c!==void 0?c:h.CanvasAddon;o=u.WebLinksAddon;r=p.SearchAddon}const h=new i(e);d(h);const u=new s;h.loadAddon(u);const p=new r;h.loadAddon(new o);h.loadAddon(p);return[h,u,p]}e.createTerminal=c})(f||(f={}))},10020:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>l});var i=n(38850);var s=n.n(i);var o=n(34881);var r=n.n(o);const a={id:"@jupyterlab/theme-dark-extension:plugin",description:"Adds a dark theme.",requires:[i.IThemeManager,o.ITranslator],activate:(e,t,n)=>{const i=n.load("jupyterlab");const s="@jupyterlab/theme-dark-extension/index.css";t.register({name:"JupyterLab Dark",displayName:i.__("JupyterLab Dark"),isLight:false,themeScrollbars:true,load:()=>t.loadCSS(s),unload:()=>Promise.resolve(undefined)})},autoStart:true};const l=a},5180:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>l});var i=n(38850);var s=n.n(i);var o=n(34881);var r=n.n(o);const a={id:"@jupyterlab/theme-dark-high-contrast-extension:plugin",description:"Adds a dark high contrast theme.",requires:[i.IThemeManager,o.ITranslator],activate:(e,t,n)=>{const i=n.load("jupyterlab");const s="@jupyterlab/theme-dark-high-contrast-extension/index.css";t.register({name:"JupyterLab Dark High Contrast",displayName:i.__("JupyterLab Dark High Contrast"),isLight:false,themeScrollbars:true,load:()=>t.loadCSS(s),unload:()=>Promise.resolve(undefined)})},autoStart:true};const l=a},84988:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>l});var i=n(38850);var s=n.n(i);var o=n(34881);var r=n.n(o);const a={id:"@jupyterlab/theme-light-extension:plugin",description:"Adds a light theme.",requires:[i.IThemeManager,o.ITranslator],activate:(e,t,n)=>{const i=n.load("jupyterlab");const s="@jupyterlab/theme-light-extension/index.css";t.register({name:"JupyterLab Light",displayName:i.__("JupyterLab Light"),isLight:true,themeScrollbars:false,load:()=>t.loadCSS(s),unload:()=>Promise.resolve(undefined)})},autoStart:true};const l=a},27866:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>v});var i=n(88617);var s=n.n(i);var o=n(40065);var r=n.n(o);var a=n(72011);var l=n.n(a);var d=n(34881);var c=n.n(d);var h=n(4073);var u=n.n(h);var p;(function(e){e.displayNumbering="toc:display-numbering";e.displayH1Numbering="toc:display-h1-numbering";e.displayOutputNumbering="toc:display-outputs-numbering";e.showPanel="toc:show-panel";e.toggleCollapse="toc:toggle-collapse"})(p||(p={}));async function m(e,t,n,i,s,o){const r=(n!==null&&n!==void 0?n:d.nullTranslator).load("jupyterlab");let l={...a.TableOfContents.defaultConfig};const c=new a.TableOfContentsPanel(n!==null&&n!==void 0?n:undefined);c.title.icon=h.tocIcon;c.title.caption=r.__("Table of Contents");c.id="table-of-contents";c.node.setAttribute("role","region");c.node.setAttribute("aria-label",r.__("Table of Contents section"));e.commands.addCommand(p.displayH1Numbering,{label:r.__("Show first-level heading number"),execute:()=>{if(c.model){c.model.setConfiguration({numberingH1:!c.model.configuration.numberingH1})}},isEnabled:()=>{var e,t;return(t=(e=c.model)===null||e===void 0?void 0:e.supportedOptions.includes("numberingH1"))!==null&&t!==void 0?t:false},isToggled:()=>{var e,t;return(t=(e=c.model)===null||e===void 0?void 0:e.configuration.numberingH1)!==null&&t!==void 0?t:false},describedBy:{args:{type:"object",properties:{}}}});e.commands.addCommand(p.displayNumbering,{label:r.__("Show heading number in the document"),icon:e=>e.toolbar?h.numberingIcon:undefined,execute:()=>{if(c.model){c.model.setConfiguration({numberHeaders:!c.model.configuration.numberHeaders});e.commands.notifyCommandChanged(p.displayNumbering)}},isEnabled:()=>{var e,t;return(t=(e=c.model)===null||e===void 0?void 0:e.supportedOptions.includes("numberHeaders"))!==null&&t!==void 0?t:false},isToggled:()=>{var e,t;return(t=(e=c.model)===null||e===void 0?void 0:e.configuration.numberHeaders)!==null&&t!==void 0?t:false},describedBy:{args:{type:"object",properties:{toolbar:{type:"boolean",description:r.__("Whether the command is called from toolbar")}}}}});e.commands.addCommand(p.displayOutputNumbering,{label:r.__("Show output headings"),execute:()=>{if(c.model){c.model.setConfiguration({includeOutput:!c.model.configuration.includeOutput})}},isEnabled:()=>{var e,t;return(t=(e=c.model)===null||e===void 0?void 0:e.supportedOptions.includes("includeOutput"))!==null&&t!==void 0?t:false},isToggled:()=>{var e,t;return(t=(e=c.model)===null||e===void 0?void 0:e.configuration.includeOutput)!==null&&t!==void 0?t:false},describedBy:{args:{type:"object",properties:{}}}});e.commands.addCommand(p.showPanel,{label:r.__("Table of Contents"),execute:()=>{e.shell.activateById(c.id)},describedBy:{args:{type:"object",properties:{}}}});function u(e){return e.headings.some((e=>{var t;return!((t=e.collapsed)!==null&&t!==void 0?t:false)}))}e.commands.addCommand(p.toggleCollapse,{label:()=>c.model&&!u(c.model)?r.__("Expand All Headings"):r.__("Collapse All Headings"),icon:e=>e.toolbar?c.model&&!u(c.model)?h.expandAllIcon:h.collapseAllIcon:undefined,execute:()=>{if(c.model){if(u(c.model)){c.model.toggleCollapse({collapsed:true})}else{c.model.toggleCollapse({collapsed:false})}}},isEnabled:()=>c.model!==null,describedBy:{args:{type:"object",properties:{toolbar:{type:"boolean",description:r.__("Whether the command is called from toolbar")}}}}});const m=new a.TableOfContentsTracker;if(i){i.add(c,"@jupyterlab/toc:plugin")}let f;if(o){try{f=await o.load(g.id);const t=t=>{const n=t.composite;for(const e of[...Object.keys(l)]){const t=n[e];if(t!==undefined){l[e]=t}}if(s){for(const e of s.widgets("main")){const t=m.get(e);if(t){t.setConfiguration(l)}}}else{if(e.shell.currentWidget){const t=m.get(e.shell.currentWidget);if(t){t.setConfiguration(l)}}}};if(f){f.changed.connect(t);t(f)}}catch(x){console.error(`Failed to load settings for the Table of Contents extension.\n\n${x}`)}}const v=new h.CommandToolbarButton({commands:e.commands,id:p.displayNumbering,args:{toolbar:true},label:""});v.addClass("jp-toc-numberingButton");c.toolbar.node.setAttribute("aria-label",r.__("Table of contents sidepanel toolbar"));c.toolbar.addItem("display-numbering",v);c.toolbar.addItem("spacer",h.Toolbar.createSpacerItem());c.toolbar.addItem("collapse-all",new h.CommandToolbarButton({commands:e.commands,id:p.toggleCollapse,args:{toolbar:true},label:""}));const _=new h.MenuSvg({commands:e.commands});_.addItem({command:p.displayH1Numbering});_.addItem({command:p.displayOutputNumbering});const b=new h.ToolbarButton({tooltip:r.__("More actions…"),icon:h.ellipsesIcon,noFocusOnClick:false,onClick:()=>{const e=b.node.getBoundingClientRect();_.open(e.x,e.bottom)}});c.toolbar.addItem("submenu",b);e.shell.add(c,"left",{rank:400,type:"Table of Contents"});if(s){s.currentChanged.connect(y)}void e.restored.then((()=>{y()}));return m;function y(){var n;let i=e.shell.currentWidget;if(!i){return}let s=m.get(i);if(!s){s=(n=t.getModel(i,l))!==null&&n!==void 0?n:null;if(s){m.add(i,s)}i.disposed.connect((()=>{s===null||s===void 0?void 0:s.dispose()}))}if(c.model){c.model.headingsChanged.disconnect(C);c.model.collapseChanged.disconnect(C)}c.model=s;if(c.model){c.model.headingsChanged.connect(C);c.model.collapseChanged.connect(C)}w()}function w(){e.commands.notifyCommandChanged(p.displayNumbering);e.commands.notifyCommandChanged(p.toggleCollapse)}function C(){e.commands.notifyCommandChanged(p.toggleCollapse)}}const g={id:"@jupyterlab/toc-extension:registry",description:"Provides the table of contents registry.",autoStart:true,provides:a.ITableOfContentsRegistry,activate:()=>new a.TableOfContentsRegistry};const f={id:"@jupyterlab/toc-extension:tracker",description:"Adds the table of content widget and provides its tracker.",autoStart:true,provides:a.ITableOfContentsTracker,requires:[a.ITableOfContentsRegistry],optional:[d.ITranslator,i.ILayoutRestorer,i.ILabShell,o.ISettingRegistry],activate:m};const v=[g,f]},31747:(e,t,n)=>{"use strict";var i=n(40662);var s=n(3579);var o=n(66731);var r=n(85072);var a=n.n(r);var l=n(97825);var d=n.n(l);var c=n(77659);var h=n.n(c);var u=n(55056);var p=n.n(u);var m=n(10540);var g=n.n(m);var f=n(41113);var v=n.n(f);var _=n(38026);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.A,b);const w=_.A&&_.A.locals?_.A.locals:undefined},49830:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ITableOfContentsRegistry:()=>h,ITableOfContentsTracker:()=>u,TableOfContents:()=>p,TableOfContentsFactory:()=>a,TableOfContentsItem:()=>_,TableOfContentsModel:()=>m,TableOfContentsPanel:()=>w,TableOfContentsRegistry:()=>S,TableOfContentsTracker:()=>j,TableOfContentsTree:()=>b,TableOfContentsUtils:()=>s,TableOfContentsWidget:()=>y});var i={};n.r(i);n.d(i,{getHeadingId:()=>N,getHeadings:()=>O,isMarkdown:()=>W,parseHeadings:()=>B});var s={};n.r(s);n.d(s,{Markdown:()=>i,NUMBERING_CLASS:()=>k,addPrefix:()=>M,clearNumbering:()=>P,filterHeadings:()=>I,getHTMLHeadings:()=>E,getPrefix:()=>D,isHTML:()=>T});var o=n(40959);const r=200;class a{constructor(e){this.tracker=e}isApplicable(e){if(!this.tracker.has(e)){return false}return true}createNew(e,t){const n=this._createNew(e,t);const i=e.context;const s=()=>{n.refresh().catch((e=>{console.error("Failed to update the table of contents.",e)}))};const a=new o.ActivityMonitor({signal:i.model.contentChanged,timeout:r});a.activityStopped.connect(s);const l=()=>{n.title=o.PathExt.basename(i.localPath)};i.pathChanged.connect(l);i.ready.then((()=>{l();s()})).catch((e=>{console.error(`Failed to initiate headings for ${i.localPath}.`)}));e.disposed.connect((()=>{a.activityStopped.disconnect(s);i.pathChanged.disconnect(l)}));return n}}var l=n(4073);var d=n(5592);var c=n(2336);const h=new d.Token("@jupyterlab/toc:ITableOfContentsRegistry","A service to register table of content factory.");const u=new d.Token("@jupyterlab/toc:ITableOfContentsTracker","A widget tracker for table of contents.");var p;(function(e){e.defaultConfig={baseNumbering:1,maximalDepth:4,numberingH1:true,numberHeaders:false,includeOutput:true,syncCollapseState:false}})(p||(p={}));class m extends l.VDomModel{constructor(e,t){super();this.widget=e;this._activeHeading=null;this._activeHeadingChanged=new c.Signal(this);this._collapseChanged=new c.Signal(this);this._configuration=t!==null&&t!==void 0?t:{...p.defaultConfig};this._headings=new Array;this._headingsChanged=new c.Signal(this);this._isActive=false;this._isRefreshing=false;this._needsRefreshing=false}get activeHeading(){return this._activeHeading}get activeHeadingChanged(){return this._activeHeadingChanged}get collapseChanged(){return this._collapseChanged}get configuration(){return this._configuration}get headings(){return this._headings}get headingsChanged(){return this._headingsChanged}get isActive(){return this._isActive}set isActive(e){this._isActive=e;if(this._isActive&&!this.isAlwaysActive){this.refresh().catch((e=>{console.error("Failed to refresh ToC model.",e)}))}}get isAlwaysActive(){return false}get supportedOptions(){return["maximalDepth"]}get title(){return this._title}set title(e){if(e!==this._title){this._title=e;this.stateChanged.emit()}}async refresh(){if(this._isRefreshing){this._needsRefreshing=true;return Promise.resolve()}this._isRefreshing=true;try{const e=await this.getHeadings();if(this._needsRefreshing){this._needsRefreshing=false;this._isRefreshing=false;return this.refresh()}if(e&&!this._areHeadingsEqual(e,this._headings)){this._headings=e;this.stateChanged.emit();this._headingsChanged.emit()}}finally{this._isRefreshing=false}}setActiveHeading(e,t=true){if(this._activeHeading!==e){this._activeHeading=e;this.stateChanged.emit()}if(t){this._activeHeadingChanged.emit(this._activeHeading)}}setConfiguration(e){const t={...this._configuration,...e};if(!d.JSONExt.deepEqual(this._configuration,t)){this._configuration=t;this.refresh().catch((e=>{console.error("Failed to update the table of contents.",e)}))}}toggleCollapse(e){var t,n;if(e.heading){e.heading.collapsed=(t=e.collapsed)!==null&&t!==void 0?t:!e.heading.collapsed;this.stateChanged.emit();this._collapseChanged.emit(e.heading)}else{const t=(n=e.collapsed)!==null&&n!==void 0?n:!this.headings.some((e=>{var t;return!((t=e.collapsed)!==null&&t!==void 0?t:false)}));this.headings.forEach((e=>e.collapsed=t));this.stateChanged.emit();this._collapseChanged.emit(null)}}isHeadingEqual(e,t){return e.level===t.level&&e.text===t.text&&e.prefix===t.prefix}_areHeadingsEqual(e,t){if(e.length===t.length){for(let n=0;n{if(!e.defaultPrevented&&e.target.expanded!==!n.collapsed){e.preventDefault();i(n)}};return f.createElement(v.TreeItem,{className:"jp-tocItem jp-TreeItem nested",selected:t,expanded:!n.collapsed,onExpand:o,onMouseDown:e=>{if(!e.defaultPrevented){e.preventDefault();s(n)}},onKeyUp:e=>{if(!e.defaultPrevented&&e.key==="Enter"&&!t){e.preventDefault();s(n)}}},f.createElement("div",{className:"jp-tocItem-heading"},f.createElement("span",{className:"jp-tocItem-content",title:n.text,...n.dataset},n.prefix,n.text)),e)}}class b extends f.PureComponent{render(){const{documentType:e}=this.props;return f.createElement(v.TreeView,{className:"jp-TableOfContents-content jp-TreeView","data-document-type":e},this.buildTree())}buildTree(){if(this.props.headings.length===0){return[]}const e=t=>{const n=this.props.headings;const i=new Array;const s=n[t];let o=t+1;while(o{this.model.toggleCollapse({heading:e})},setActiveHeading:e=>{this.model.setActiveHeading(e)}})}}class w extends l.SidePanel{constructor(e){super({content:new g.Panel,translator:e});this._model=null;this.addClass("jp-TableOfContents");this._title=new C.Header(this._trans.__("Table of Contents"));this.header.addWidget(this._title);this._treeview=new y({placeholderHeadline:this._trans.__("No Headings"),placeholderText:this._trans.__("The table of contents shows headings in notebooks and supported files.")});this._treeview.addClass("jp-TableOfContents-tree");this.content.addWidget(this._treeview)}get model(){return this._model}set model(e){var t,n;if(this._model!==e){(t=this._model)===null||t===void 0?void 0:t.stateChanged.disconnect(this._onTitleChanged,this);this._model=e;if(this._model){this._model.isActive=this.isVisible}(n=this._model)===null||n===void 0?void 0:n.stateChanged.connect(this._onTitleChanged,this);this._onTitleChanged();this._treeview.model=this._model}}onAfterHide(e){super.onAfterHide(e);if(this._model){this._model.isActive=false}}onBeforeShow(e){super.onBeforeShow(e);if(this._model){this._model.isActive=true}}_onTitleChanged(){var e,t;this._title.setTitle((t=(e=this._model)===null||e===void 0?void 0:e.title)!==null&&t!==void 0?t:this._trans.__("Table of Contents"))}}var C;(function(e){class t extends g.Widget{constructor(e){const t=document.createElement("h2");t.textContent=e;t.classList.add("jp-text-truncated");super({node:t});this._title=t}setTitle(e){this._title.textContent=e}}e.Header=t})(C||(C={}));var x=n(90044);class S{constructor(){this._generators=new Map;this._idCounter=0}getModel(e,t){for(const n of this._generators.values()){if(n.isApplicable(e)){return n.createNew(e,t)}}}add(e){const t=this._idCounter++;this._generators.set(t,e);return new x.DisposableDelegate((()=>{this._generators.delete(t)}))}}class j{constructor(){this.modelMapping=new WeakMap}add(e,t){this.modelMapping.set(e,t)}get(e){const t=this.modelMapping.get(e);return!t||t.isDisposed?null:t}}const k="numbering-entry";function I(e,t,n=[]){const i={...p.defaultConfig,...t};const s=n;let o=s.length;const r=new Array;for(const a of e){if(a.skip){continue}const e=a.level;if(e>0&&e<=i.maximalDepth){const t=D(e,o,s,i);o=e;r.push({...a,prefix:t})}}return r}function T(e){return e==="text/html"}function E(e,t=true){var n;const i=document.createElement("div");i.innerHTML=e;const s=new Array;const o=i.querySelectorAll("h1, h2, h3, h4, h5, h6");for(const r of o){const e=parseInt(r.tagName[1],10);s.push({text:(n=r.textContent)!==null&&n!==void 0?n:"",level:e,id:r===null||r===void 0?void 0:r.getAttribute("id"),skip:r.classList.contains("jp-toc-ignore")||r.classList.contains("tocSkip")})}return s}function M(e,t,n){let i=e.querySelector(t);if(!i){return null}if(!i.querySelector(`span.${k}`)){A(i,n)}else{const s=e.querySelectorAll(t);for(const e of s){if(!e.querySelector(`span.${k}`)){i=e;A(e,n);break}}}return i}function D(e,t,n,i){const{baseNumbering:s,numberingH1:o,numberHeaders:r}=i;let a="";if(r){const i=o?1:2;if(e>t){for(let i=t;ie!==null&&e!==void 0?e:0)).join(".")+". "}else{if(n.length>1){a=n.slice(1).map((e=>e!==null&&e!==void 0?e:0)).join(".")+". "}}}return a}function A(e,t){e.insertAdjacentHTML("afterbegin",`${t}`)}function P(e){e===null||e===void 0?void 0:e.querySelectorAll(`span.${k}`).forEach((e=>{e.remove()}))}var L=n(38850);var R=n(95513);async function N(e,t,n,i){try{const s=document.createElement("div");await(0,R.renderMarkdown)({markdownParser:e,host:s,source:t,trusted:false,sanitizer:i!==null&&i!==void 0?i:new L.Sanitizer,shouldTypeset:false,resolver:null,linkHandler:null,latexTypesetter:null});const o=s.querySelector(`h${n}`);if(!o){return null}return(i===null||i===void 0?void 0:i.allowNamedProperties)?o.id:o.getAttribute("data-jupyter-id")}catch(s){console.error("Failed to parse a heading.",s)}return null}async function B(e,t){if(!t){console.warn("Couldn't parse headings; Markdown parser is null");return[]}const n=await t.render(e);const i=new Array;const s=new DOMParser;const o=s.parseFromString(n,"text/html");const r=o.querySelectorAll("h1, h2, h3, h4, h5, h6");r.forEach(((e,t)=>{var n;const s=parseInt(e.tagName.substring(1),10);const o=((n=e.textContent)===null||n===void 0?void 0:n.trim())||"";i.push({text:o,line:t,level:s,raw:e.outerHTML,skip:U.test(e.outerHTML)})}));return i}function O(e){const t=e.split("\n");const n=new Array;let i;let s=0;let o;let r=0;if(t[r]==="---"){for(let e=r+1;e=s){i=!i;s=0;o=""}}if(i){continue}const a=H(e,t[r+1]);if(a){n.push({...a,line:r})}}return n}function F(e){let t;if(e.startsWith("`"))t=e.match(/^(`{3,})/);else t=e.match(/^(~{3,})/);return t?t[0].length:0}const z=["text/x-ipythongfm","text/x-markdown","text/x-gfm","text/markdown"];function W(e){return z.includes(e)}function H(e,t){let n=e.match(/^([#]{1,6}) (.*)/);if(n){return{text:V(n[2]),level:n[1].length,raw:e,skip:U.test(n[0])}}if(t){n=t.match(/^ {0,3}([=]{2,}|[-]{2,})\s*$/);if(n){return{text:V(e),level:n[1][0]==="="?1:2,raw:[e,t].join("\n"),skip:U.test(e)}}}n=e.match(/(.*)<\/h\1>/i);if(n){return{text:n[2],level:parseInt(n[1],10),skip:U.test(n[0]),raw:e}}return null}function V(e){return e.replace(/\[(.+)\]\(.+\)/g,"$1")}const U=/<\w+\s(.*?\s)?class="(.*?\s)?(jp-toc-ignore|tocSkip)(\s.*?)?"(\s.*?)?>/},66731:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(5893);var a=n(79010);var l=n(85072);var d=n.n(l);var c=n(97825);var h=n.n(c);var u=n(77659);var p=n.n(u);var m=n(55056);var g=n.n(m);var f=n(10540);var v=n.n(f);var _=n(41113);var b=n.n(_);var y=n(75682);var w={};w.styleTagTransform=b();w.setAttributes=g();w.insert=p().bind(null,"head");w.domAPI=h();w.insertStyleElement=v();var C=d()(y.A,w);const x=y.A&&y.A.locals?y.A.locals:undefined},77083:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>I});var i=n(59733);var s=n.n(i);var o=n(40959);var r=n.n(o);var a=n(50655);var l=n.n(a);var d=n(74823);var c=n.n(d);var h=n(95513);var u=n.n(h);var p=n(58929);var m=n.n(p);var g=n(34881);var f=n.n(g);var v=n(34236);var _=n.n(v);var b=n(27518);var y=n.n(b);var w;(function(e){e.dismiss="tooltip:dismiss";e.launchConsole="tooltip:launch-console";e.launchNotebook="tooltip:launch-notebook";e.launchFile="tooltip:launch-file"})(w||(w={}));const C={id:"@jupyterlab/tooltip-extension:manager",description:"Provides the tooltip manager.",autoStart:true,optional:[g.ITranslator],provides:p.ITooltipManager,activate:(e,t)=>{const n=(t!==null&&t!==void 0?t:g.nullTranslator).load("jupyterlab");let i=null;e.commands.addCommand(w.dismiss,{label:n.__("Dismiss the tooltip"),execute:()=>{if(i){i.dispose();i=null}},describedBy:{args:{type:"object",properties:{}}}});return{invoke(e){const t=0;const{anchor:n,editor:s,kernel:o,rendermime:r}=e;if(i){i.dispose();i=null}return T.fetch({detail:t,editor:s,kernel:o}).then((e=>{i=new p.Tooltip({anchor:n,bundle:e,editor:s,rendermime:r});b.Widget.attach(i,document.body)})).catch((()=>{}))}}}};const x={id:"@jupyterlab/tooltip-extension:consoles",description:"Adds the tooltip capability to consoles.",autoStart:true,optional:[g.ITranslator],requires:[p.ITooltipManager,i.IConsoleTracker],activate:(e,t,n,i)=>{const s=(i!==null&&i!==void 0?i:g.nullTranslator).load("jupyterlab");e.commands.addCommand(w.launchConsole,{label:s.__("Open the tooltip"),execute:()=>{var e,i;const s=n.currentWidget;if(!s){return}const o=s.console;const r=(e=o.promptCell)===null||e===void 0?void 0:e.editor;const a=(i=o.sessionContext.session)===null||i===void 0?void 0:i.kernel;const l=o.rendermime;if(!!r&&!!a&&!!l){return t.invoke({anchor:o,editor:r,kernel:a,rendermime:l})}},describedBy:{args:{type:"object",properties:{}}}})}};const S={id:"@jupyterlab/tooltip-extension:notebooks",description:"Adds the tooltip capability to notebooks.",autoStart:true,optional:[g.ITranslator],requires:[p.ITooltipManager,d.INotebookTracker],activate:(e,t,n,i)=>{const s=(i!==null&&i!==void 0?i:g.nullTranslator).load("jupyterlab");e.commands.addCommand(w.launchNotebook,{label:s.__("Open the tooltip"),execute:()=>{var e,i;const s=n.currentWidget;if(!s){return}const o=s.content;const r=(e=o.activeCell)===null||e===void 0?void 0:e.editor;const a=(i=s.sessionContext.session)===null||i===void 0?void 0:i.kernel;const l=o.rendermime;if(!!r&&!!a&&!!l){return t.invoke({anchor:o,editor:r,kernel:a,rendermime:l})}},describedBy:{args:{type:"object",properties:{}}}})}};const j={id:"@jupyterlab/tooltip-extension:files",description:"Adds the tooltip capability to file editors.",autoStart:true,optional:[g.ITranslator],requires:[p.ITooltipManager,a.IEditorTracker,h.IRenderMimeRegistry],activate:(e,t,n,i,s)=>{const o=(s!==null&&s!==void 0?s:g.nullTranslator).load("jupyterlab");const r={};const a=e.serviceManager.sessions;const l=(e,t)=>{n.forEach((e=>{const n=(0,v.find)(t,(t=>e.context.path===t.path));if(n){const t=r[e.id];if(t&&t.id===n.id){return}if(t){delete r[e.id];t.dispose()}const i=a.connectTo({model:n});r[e.id]=i}else{const t=r[e.id];if(t){t.dispose();delete r[e.id]}}}))};l(a,a.running());a.runningChanged.connect(l);n.widgetAdded.connect(((e,t)=>{t.disposed.connect((e=>{const t=r[e.id];if(t){t.dispose();delete r[e.id]}}))}));e.commands.addCommand(w.launchFile,{label:o.__("Open the tooltip"),execute:async()=>{const e=n.currentWidget;const s=e&&r[e.id]&&r[e.id].kernel;if(!s){return}const o=e.content;const a=o===null||o===void 0?void 0:o.editor;if(!!a&&!!s&&!!i){return t.invoke({anchor:o,editor:a,kernel:s,rendermime:i})}},describedBy:{args:{type:"object",properties:{}}}})}};const k=[C,x,S,j];const I=k;var T;(function(e){let t=0;function n(e){const{detail:n,editor:i,kernel:s}=e;const r=i.model.sharedModel.getSource();const a=i.getCursorPosition();const l=o.Text.jsIndexToCharIndex(i.getOffsetAt(a),r);if(!r||!s){return Promise.reject(void 0)}const d={code:r,cursor_pos:l,detail_level:n||0};const c=++t;return s.requestInspect(d).then((e=>{const n=e.content;if(c!==t){return Promise.reject(void 0)}if(n.status!=="ok"||!n.found){return Promise.reject(void 0)}return Promise.resolve(n.data)}))}e.fetch=n})(T||(T={}))},95527:(e,t,n)=>{"use strict";var i=n(10395);var s=n(17325);var o=n(5893);var r=n(3579);var a=n(50286);var l=n(77748);var d=n(28006);var c=n(40662);var h=n(85072);var u=n.n(h);var p=n(97825);var m=n.n(p);var g=n(77659);var f=n.n(g);var v=n(55056);var _=n.n(v);var b=n(10540);var y=n.n(b);var w=n(41113);var C=n.n(w);var x=n(69231);var S={};S.styleTagTransform=C();S.setAttributes=_();S.insert=f().bind(null,"head");S.domAPI=m();S.insertStyleElement=y();var j=u()(x.A,S);const k=x.A&&x.A.locals?x.A.locals:undefined},22087:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ITooltipManager:()=>s,Tooltip:()=>m});var i=n(5592);const s=new i.Token("@jupyterlab/tooltip:ITooltipManager","A service for the tooltip manager for the application. Use this to allow your extension to invoke a tooltip.");var o=n(4073);var r=n(95513);var a=n(27518);const l="jp-Tooltip";const d="jp-Tooltip-content";const c="jp-mod-tooltip";const h=20;const u=250;const p=true;class m extends a.Widget{constructor(e){super();this._content=null;this.addClass("jp-ThemedContainer");const t=this.layout=new a.PanelLayout;const n=new r.MimeModel({data:e.bundle});this.anchor=e.anchor;this.addClass(l);this.hide();this._editor=e.editor;this._position=e.position;this._rendermime=e.rendermime;const i=this._rendermime.preferredMimeType(e.bundle,"any");if(!i){return}this._content=this._rendermime.createRenderer(i);this._content.renderModel(n).then((()=>this._setGeometry())).catch((e=>console.error("tooltip rendering failed",e)));this._content.addClass(d);t.addWidget(this._content)}dispose(){if(this._content){this._content.dispose();this._content=null}super.dispose()}handleEvent(e){if(this.isHidden||this.isDisposed){return}const{node:t}=this;const n=e.target;switch(e.type){case"keydown":if(t.contains(n)){return}this.dispose();break;case"mousedown":if(t.contains(n)){this.activate();return}this.dispose();break;case"scroll":this._evtScroll(e);break;default:break}}onActivateRequest(e){this.node.tabIndex=0;this.node.focus()}onAfterAttach(e){document.body.classList.add(c);document.addEventListener("keydown",this,p);document.addEventListener("mousedown",this,p);this.anchor.node.addEventListener("scroll",this,p);this.update()}onBeforeDetach(e){document.body.classList.remove(c);document.removeEventListener("keydown",this,p);document.removeEventListener("mousedown",this,p);this.anchor.node.removeEventListener("scroll",this,p)}onUpdateRequest(e){if(this.isHidden){this.show()}this._setGeometry();super.onUpdateRequest(e)}_evtScroll(e){if(this.node.contains(e.target)){return}this.update()}_getTokenPosition(){const e=this._editor;const t=e.getCursorPosition();const n=e.getOffsetAt(t);const i=e.getLine(t.line);if(!i){return}const s=i.substring(0,n).split(/\W+/);const o=s[s.length-1];const r=o?n-o.length:n;return e.getPositionAt(r)}_setGeometry(){const e=this._position?this._position:this._getTokenPosition();if(!e){return}const t=this._editor;const n=t.getCoordinateForPosition(e);if(!n){return}const i=window.getComputedStyle(this.node);const s=parseInt(i.paddingLeft,10)||0;const r=t.host.closest(".jp-MainAreaWidget > .lm-Widget")||t.host;o.HoverBox.setGeometry({anchor:n,host:r,maxHeight:u,minHeight:h,node:this.node,offset:{horizontal:-1*s},privilege:"below",outOfViewDisplay:{top:"stick-inside",bottom:"stick-inside"},style:i})}}},30963:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>_});var i=n(88617);var s=n.n(i);var o=n(38850);var r=n.n(o);var a=n(89433);var l=n.n(a);var d=n(40065);var c=n.n(d);var h=n(34881);var u=n.n(h);const p="@jupyterlab/translation-extension:plugin";const m={id:"@jupyterlab/translation-extension:translator-connector",description:"Provides the application translation connector.",autoStart:true,requires:[i.JupyterFrontEnd.IPaths],provides:h.ITranslatorConnector,activate:(e,t)=>{const n=t.urls.translations;const i=e.serviceManager.serverSettings;return new h.TranslatorConnector(n,i)}};const g={id:"@jupyterlab/translation-extension:translator",description:"Provides the application translation object.",autoStart:true,requires:[i.JupyterFrontEnd.IPaths,d.ISettingRegistry],optional:[i.ILabShell,h.ITranslatorConnector],provides:h.ITranslator,activate:async(e,t,n,i,s)=>{const r=await n.load(p);const a=r.get("locale").composite;let l=r.get("stringsPrefix").composite;const d=r.get("displayStringsPrefix").composite;l=d?l:"";const c=e.serviceManager.serverSettings;const u=new h.TranslationManager(t.urls.translations,l,c,s!==null&&s!==void 0?s:undefined);await u.fetch(a);document.documentElement.lang=u.languageCode;if(i){i.translator=u}o.Dialog.translator=u;return u}};const f={id:p,description:"Adds translation commands and settings.",requires:[d.ISettingRegistry,h.ITranslator,h.ITranslatorConnector],optional:[a.IMainMenu,o.ICommandPalette],autoStart:true,activate:(e,t,n,i,s,r)=>{var a;const l=n.load("jupyterlab");const{commands:d}=e;const c=s?(a=s.settingsMenu.items.find((e=>{var t;return e.type==="submenu"&&((t=e.submenu)===null||t===void 0?void 0:t.id)==="jp-mainmenu-settings-language"})))===null||a===void 0?void 0:a.submenu:null;i.fetch().then((e=>{const i=n.languageCode.replace("-","_");for(const n in e.data){const s=e.data[n];const a=s.displayName;const h=s.nativeName;const u=i===n;const m=u?`${a}`:`${a} - ${h}`;const g=`jupyterlab-translation:${n}`;d.addCommand(g,{label:m,caption:l.__("Change interface language to %1",m),isEnabled:()=>!u,isToggled:()=>u,execute:async()=>{const e=await(0,o.showDialog)({title:l.__("Change interface language?"),body:l.__("After changing the interface language to %1, you will need to reload JupyterLab to see the changes.",m),buttons:[o.Dialog.cancelButton(),o.Dialog.okButton({label:l.__("Change and reload")})]});if(e.button.accept){try{await t.set(p,"locale",n);window.location.reload()}catch(i){console.error(`Failed to update language locale to ${n}`,i)}}},describedBy:{args:{type:"object",properties:{}}}});if(c){c.addItem({command:g,args:{}})}if(r){r.addItem({category:l.__("Display Languages"),command:g})}}})).catch((e=>{console.error(`Available locales errored!\n${e}`)}))}};const v=[m,g,f];const _=v},50277:(e,t,n)=>{"use strict";var i=n(97913);var s=n(3579);var o=n(67996)},6401:(e,t,n)=>{"use strict";n.r(t);n.d(t,{DEFAULT_LANGUAGE_CODE:()=>d,Gettext:()=>m,ITranslator:()=>u,ITranslatorConnector:()=>c,NullTranslator:()=>g,TranslationManager:()=>_,TranslatorConnector:()=>h,nullTranslator:()=>v,requestTranslationsAPI:()=>l});var i=n(78629);var s=n(5592);var o=n(40959);var r=n(49278);const a="api/translations";async function l(e="",t="",n={},i=undefined){const s=i!==null&&i!==void 0?i:r.ServerConnection.makeSettings();e=e||`${s.appUrl}/${a}`;const l=o.URLExt.join(s.baseUrl,e);const d=o.URLExt.join(l,t);if(!d.startsWith(l)){throw new Error("Can only be used for translations requests")}let c;try{c=await r.ServerConnection.makeRequest(d,n,s)}catch(u){throw new r.ServerConnection.NetworkError(u)}let h=await c.text();if(h.length>0){try{h=JSON.parse(h)}catch(u){console.error("Not a JSON response body.",c)}}if(!c.ok){throw new r.ServerConnection.ResponseError(c,h.message||h)}return h}const d="en";const c=new s.Token("@jupyterlab/translation:ITranslatorConnector","A service to connect to the server translation endpoint.");class h extends i.DataConnector{constructor(e="",t){super();this._translationsUrl=e;this._serverSettings=t}async fetch(e){var t;return l(this._translationsUrl,(t=e===null||e===void 0?void 0:e.language)!==null&&t!==void 0?t:"",{},this._serverSettings)}}const u=new s.Token("@jupyterlab/translation:ITranslator","A service to translate strings.");function p(e){return e.replace("-","_")}class m{constructor(e){e=e||{};this._defaults={domain:"messages",locale:document.documentElement.getAttribute("lang")||d,pluralFunc:function(e){return{nplurals:2,plural:e!=1?1:0}},contextDelimiter:String.fromCharCode(4),stringsPrefix:""};this._locale=(e.locale||this._defaults.locale).replace("_","-");this._domain=p(e.domain||this._defaults.domain);this._contextDelimiter=e.contextDelimiter||this._defaults.contextDelimiter;this._stringsPrefix=e.stringsPrefix||this._defaults.stringsPrefix;this._pluralFuncs={};this._dictionary={};this._pluralForms={};if(e.messages){this._dictionary[this._domain]={};this._dictionary[this._domain][this._locale]=e.messages}if(e.pluralForms){this._pluralForms[this._locale]=e.pluralForms}}setContextDelimiter(e){this._contextDelimiter=e}getContextDelimiter(){return this._contextDelimiter}setLocale(e){this._locale=e.replace("_","-")}getLocale(){return this._locale}setDomain(e){this._domain=p(e)}getDomain(){return this._domain}setStringsPrefix(e){this._stringsPrefix=e}getStringsPrefix(){return this._stringsPrefix}static strfmt(e,...t){return e.replace(/%%/g,"%% ").replace(/%(\d+)/g,(function(e,n){return t[n-1]})).replace(/%% /g,"%")}loadJSON(e,t){if(!e[""]||!e[""]["language"]||!e[""]["pluralForms"]){throw new Error(`Wrong jsonData, it must have an empty key ("") with "language" and "pluralForms" information: ${e}`)}t=p(t);let n=e[""];let i=JSON.parse(JSON.stringify(e));delete i[""];this.setMessages(t||this._defaults.domain,n["language"],i,n["pluralForms"])}__(e,...t){return this.gettext(e,...t)}_n(e,t,n,...i){return this.ngettext(e,t,n,...i)}_p(e,t,...n){return this.pgettext(e,t,...n)}_np(e,t,n,i,...s){return this.npgettext(e,t,n,i,...s)}gettext(e,...t){return this.dcnpgettext("","",e,"",0,...t)}ngettext(e,t,n,...i){return this.dcnpgettext("","",e,t,n,...i)}pgettext(e,t,...n){return this.dcnpgettext("",e,t,"",0,...n)}npgettext(e,t,n,i,...s){return this.dcnpgettext("",e,t,n,i,...s)}dcnpgettext(e,t,n,i,s,...o){e=p(e)||this._domain;let r;let a=t?t+this._contextDelimiter+n:n;let l={pluralForm:false};let d=false;let c=this._locale;let h=this.expandLocale(this._locale);for(let p in h){c=h[p];d=this._dictionary[e]&&this._dictionary[e][c]&&this._dictionary[e][c][a];if(i){d=d&&this._dictionary[e][c][a].length>1}else{d=d&&this._dictionary[e][c][a].length==1}if(d){l.locale=c;break}}if(!d){r=[n];l.pluralFunc=this._defaults.pluralFunc}else{r=this._dictionary[e][c][a]}if(!i){return this.t(r,s,l,...o)}l.pluralForm=true;let u=d?r:[n,i];return this.t(u,s,l,...o)}expandLocale(e){let t=[e];let n=e.lastIndexOf("-");while(n>0){e=e.slice(0,n);t.push(e);n=e.lastIndexOf("-")}return t}getPluralFunc(e){let t=new RegExp("^\\s*nplurals\\s*=\\s*[0-9]+\\s*;\\s*plural\\s*=\\s*(?:\\s|[-\\?\\|&=!<>+*/%:;n0-9_()])+");if(!t.test(e))throw new Error(m.strfmt('The plural form "%1" is not valid',e));return new Function("n","let plural, nplurals; "+e+" return { nplurals: nplurals, plural: (plural === true ? 1 : (plural ? plural : 0)) };")}removeContext(e){if(e.indexOf(this._contextDelimiter)!==-1){let t=e.split(this._contextDelimiter);return t[1]}return e}t(e,t,n,...i){if(!n.pluralForm)return this._stringsPrefix+m.strfmt(this.removeContext(e[0]),...i);let s;if(n.pluralFunc){s=n.pluralFunc(t)}else if(!this._pluralFuncs[n.locale||""]){this._pluralFuncs[n.locale||""]=this.getPluralFunc(this._pluralForms[n.locale||""]);s=this._pluralFuncs[n.locale||""](t)}else{s=this._pluralFuncs[n.locale||""](t)}if("undefined"===typeof!s.plural||s.plural>s.nplurals||e.length<=s.plural)s.plural=0;return this._stringsPrefix+m.strfmt(this.removeContext(e[s.plural]),...[t].concat(i))}setMessages(e,t,n,i){e=p(e);if(i)this._pluralForms[t]=i;if(!this._dictionary[e])this._dictionary[e]={};this._dictionary[e][t]=n}}class g{constructor(e){this.languageCode=d;this._languageBundle=e}load(e){return this._languageBundle}}class f{__(e,...t){return this.gettext(e,...t)}_n(e,t,n,...i){return this.ngettext(e,t,n,...i)}_p(e,t,...n){return this.pgettext(e,t,...n)}_np(e,t,n,i,...s){return this.npgettext(e,t,n,i,...s)}gettext(e,...t){return m.strfmt(e,...t)}ngettext(e,t,n,...i){return m.strfmt(n==1?e:t,...[n].concat(i))}pgettext(e,t,...n){return m.strfmt(t,...n)}npgettext(e,t,n,i,...s){return this.ngettext(t,n,i,...s)}dcnpgettext(e,t,n,i,s,...o){return this.ngettext(n,i,s,...o)}}const v=new g(new f);class _{constructor(e="",t,n,i){this._domainData={};this._translationBundles={};this._connector=i!==null&&i!==void 0?i:new h(e,n);this._stringsPrefix=t||"";this._englishBundle=new m({stringsPrefix:this._stringsPrefix});this._currentLocale=d}get languageCode(){return this._currentLocale}async fetch(e){var t,n,i,s;this._languageData=await this._connector.fetch({language:e});let o;if(this._languageData&&e==="default"){try{for(const e of Object.values((t=this._languageData.data)!==null&&t!==void 0?t:{})){o=e[""]["language"];break}}catch(a){}}this._currentLocale=(e!=="default"?e:o!==null&&o!==void 0?o:d).replace("_","-");this._domainData=(i=(n=this._languageData)===null||n===void 0?void 0:n.data)!==null&&i!==void 0?i:{};const r=(s=this._languageData)===null||s===void 0?void 0:s.message;if(r&&this._currentLocale!==d){console.warn(r)}}load(e){if(this._domainData){if(this._currentLocale==d){return this._englishBundle}else{e=p(e);if(!(e in this._translationBundles)){let t=new m({domain:e,locale:this._currentLocale,stringsPrefix:this._stringsPrefix});if(e in this._domainData){const n=this._domainData[e][""];const i={...this._domainData[e],"":{...n,pluralForms:n.plural_forms}};t.loadJSON(i,e)}this._translationBundles[e]=t}return this._translationBundles[e]}}else{return this._englishBundle}}}},85205:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>a});var i=n(4073);var s=n.n(i);const o={id:"@jupyterlab/ui-components-extension:labicon-manager",description:"Provides the icon manager.",provides:i.ILabIconManager,autoStart:true,activate:e=>Object.create(null)};const r={id:"@jupyterlab/ui-components-extension:form-renderer-registry",description:"Provides the settings form renderer registry.",provides:i.IFormRendererRegistry,autoStart:true,activate:e=>{const t=new i.FormRendererRegistry;return t}};const a=[o,r]},77767:(e,t,n)=>{"use strict";var i=n(40662);var s=n(3579)},23793:(e,t,n)=>{"use strict";n.r(t);n.d(t,{AddButton:()=>gs,Button:()=>u,Collapser:()=>ls,CommandPaletteSvg:()=>Eo,CommandToolbarButton:()=>to,CommandToolbarButtonComponent:()=>Zs,ContextMenuSvg:()=>Do,DEFAULT_STYLE_CLASS:()=>Cs,DEFAULT_UI_OPTIONS:()=>us,DockPanelSvg:()=>Lo,DropButton:()=>ms,FilenameSearcher:()=>ho,FilterBox:()=>lo,FormComponent:()=>ws,FormRendererRegistry:()=>Wo,HTMLSelect:()=>Ss,HTML_SELECT_CLASS:()=>xs,HoverBox:()=>Oo,IFormRendererRegistry:()=>Fo,IFrame:()=>js,ILabIconManager:()=>zo,IRankedMenu:()=>Ms,InputGroup:()=>Is,LabIcon:()=>C,MenuSvg:()=>Ao,MoveButton:()=>ps,PanelWithToolbar:()=>oo,RankedMenu:()=>Ds,ReactWidget:()=>Fs,ReactiveToolbar:()=>Gs,SidePanel:()=>mo,Spinner:()=>go,Styling:()=>fo,Switch:()=>_o,TABLE_CLASS:()=>bo,TabBarSvg:()=>Po,TabPanelSvg:()=>Ro,Table:()=>yo,Toolbar:()=>Js,ToolbarButton:()=>Qs,ToolbarButtonComponent:()=>Ys,UseSignal:()=>Ws,VDomModel:()=>Hs,VDomRenderer:()=>zs,WindowedLayout:()=>ko,WindowedList:()=>jo,WindowedListModel:()=>So,addAboveIcon:()=>zt,addBelowIcon:()=>Wt,addCommandToolbarButtonClass:()=>eo,addIcon:()=>Ht,addToolbarButtonClass:()=>Xs,audioIcon:()=>Vt,badIcon:()=>S,bellIcon:()=>Ut,blankIcon:()=>j,breakpointIcon:()=>qt,bugDotIcon:()=>$t,bugIcon:()=>Kt,buildIcon:()=>Jt,caretDownEmptyIcon:()=>Gt,caretDownEmptyThinIcon:()=>Yt,caretDownIcon:()=>Xt,caretLeftIcon:()=>Qt,caretRightIcon:()=>Zt,caretUpEmptyThinIcon:()=>en,caretUpIcon:()=>tn,caseSensitiveIcon:()=>nn,checkIcon:()=>sn,circleEmptyIcon:()=>on,circleIcon:()=>rn,classes:()=>a,classesDedupe:()=>l,cleaningIcon:()=>an,clearIcon:()=>ln,closeAllIcon:()=>dn,closeIcon:()=>cn,codeCheckIcon:()=>hn,codeIcon:()=>un,collapseAllIcon:()=>pn,collapseIcon:()=>mn,consoleIcon:()=>gn,copyIcon:()=>fn,copyrightIcon:()=>vn,cutIcon:()=>_n,deleteIcon:()=>bn,dockBottomIcon:()=>yn,dockLeftIcon:()=>wn,dockRightIcon:()=>Cn,dockTopIcon:()=>xn,dotsIcon:()=>Sn,downloadIcon:()=>jn,duplicateIcon:()=>kn,editIcon:()=>In,ellipsesIcon:()=>Tn,errorIcon:()=>En,exceptionsIcon:()=>Mn,expandAllIcon:()=>Dn,expandIcon:()=>An,extensionIcon:()=>Pn,fastForwardIcon:()=>Ln,fileIcon:()=>Rn,fileUploadIcon:()=>Nn,filterDotIcon:()=>Bn,filterIcon:()=>On,filterListIcon:()=>Fn,folderFavoriteIcon:()=>zn,folderIcon:()=>Wn,fuzzySearch:()=>ro,getReactAttrs:()=>d,getTreeItemElement:()=>h,historyIcon:()=>Hn,homeIcon:()=>Vn,html5Icon:()=>Un,imageIcon:()=>qn,infoIcon:()=>$n,inspectorIcon:()=>Kn,jsonIcon:()=>Jn,juliaIcon:()=>Gn,jupyterFaviconIcon:()=>Yn,jupyterIcon:()=>Xn,jupyterlabWordmarkIcon:()=>Qn,kernelIcon:()=>Zn,keyboardIcon:()=>ei,launchIcon:()=>ti,launcherIcon:()=>ni,lineFormIcon:()=>ii,linkIcon:()=>si,listIcon:()=>oi,lockIcon:()=>ri,markdownIcon:()=>ai,mermaidIcon:()=>li,moveDownIcon:()=>di,moveUpIcon:()=>ci,newFolderIcon:()=>hi,notTrustedIcon:()=>ui,notebookIcon:()=>pi,numberingIcon:()=>mi,offlineBoltIcon:()=>gi,openKernelSourceIcon:()=>fi,paletteIcon:()=>vi,pasteIcon:()=>_i,pauseIcon:()=>bi,pdfIcon:()=>yi,pythonIcon:()=>wi,rKernelIcon:()=>Ci,reactIcon:()=>xi,redoIcon:()=>Si,refreshIcon:()=>ji,regexIcon:()=>ki,runIcon:()=>Ii,runningIcon:()=>Ti,saveIcon:()=>Ei,searchIcon:()=>Mi,selectedBreakpointIcon:()=>Di,settingsIcon:()=>Ai,shareIcon:()=>Pi,spreadsheetIcon:()=>Li,stepIntoIcon:()=>Ri,stepOutIcon:()=>Ni,stepOverIcon:()=>Bi,stopIcon:()=>Oi,tabIcon:()=>Fi,tableRowsIcon:()=>zi,tagIcon:()=>Wi,terminalIcon:()=>Hi,textEditorIcon:()=>Vi,tocIcon:()=>Ui,treeViewIcon:()=>qi,trustedIcon:()=>$i,undoIcon:()=>Ki,updateFilterFunction:()=>ao,userIcon:()=>Ji,usersIcon:()=>Gi,variableIcon:()=>Yi,vegaIcon:()=>Xi,videoIcon:()=>Qi,viewBreakpointIcon:()=>Zi,wordIcon:()=>es,yamlIcon:()=>ts});var i=n(44914);var s=n.n(i);var o=n(40959);function r(e){return e.map((e=>e&&typeof e==="object"?Object.keys(e).map((t=>!!e[t]&&t)):typeof e==="string"?e.split(/\s+/):[])).reduce(((e,t)=>e.concat(t)),[]).filter((e=>!!e))}function a(...e){return r(e).join(" ")}function l(...e){return[...new Set(r(e))].join(" ")}function d(e,{ignore:t=[]}={}){return e.getAttributeNames().reduce(((n,i)=>{if(i==="style"||t.includes(i)){void 0}else if(i.startsWith("data")||i.startsWith("aria")){n[i]=e.getAttribute(i)}else{n[o.Text.camelCase(i)]=e.getAttribute(i)}return n}),{})}function c(e){return e instanceof HTMLElement&&e.getAttribute("role")==="treeitem"}function h(e){let t=e;while(t&&!c(t)){t=t.parentElement}return c(t)?t:null}function u(e){const{minimal:t,small:n,children:i,...o}=e;return s().createElement("button",{...o,className:a(e.className,t?"jp-mod-minimal":"",n?"jp-mod-small":"","jp-Button")},i)}var p=n(2336);var m=n(27518);var g=n(5592);var f=n(5338);const v='\n \n\n';const _='\n \n\n';const b='\n \n\n';var y=n(21326);var w;(function(e){const t={breadCrumb:{container:{$nest:{"&:first-child svg":{bottom:"1px",marginLeft:"0px",position:"relative"},"&:hover":{backgroundColor:"var(--jp-layout-color2)"},[".jp-mod-dropTarget&"]:{backgroundColor:"var(--jp-brand-color2)",opacity:.7}}},element:{borderRadius:"var(--jp-border-radius)",cursor:"pointer",margin:"0px 2px",padding:"0px 2px",height:"16px",width:"16px",verticalAlign:"middle"}},commandPaletteHeader:{container:{height:"14px",margin:"0 14px 0 auto"},element:{height:"14px",width:"14px"},options:{elementPosition:"center"}},commandPaletteItem:{element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},launcherCard:{container:{height:"52px",width:"52px"},element:{height:"52px",width:"52px"},options:{elementPosition:"center"}},launcherSection:{container:{boxSizing:"border-box",marginRight:"12px",height:"32px",width:"32px"},element:{height:"32px",width:"32px"},options:{elementPosition:"center"}},listing:{container:{flex:"0 0 20px",marginRight:"4px",position:"relative"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},listingHeaderItem:{container:{display:"inline",height:"16px",width:"16px"},element:{height:"auto",margin:"-2px 0 0 0",width:"20px"},options:{elementPosition:"center"}},mainAreaTab:{container:{$nest:{".lm-DockPanel-tabBar &":{marginRight:"4px"}}},element:{$nest:{".lm-DockPanel-tabBar &":{height:"14px",width:"14px"}}},options:{elementPosition:"center"}},menuItem:{container:{display:"inline-block",verticalAlign:"middle"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},runningItem:{container:{margin:"0px 4px 0px 4px"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},select:{container:{pointerEvents:"none"},element:{position:"absolute",height:"auto",width:"16px"}},settingsEditor:{container:{display:"flex",flex:"0 0 20px",margin:"0 3px 0 0",position:"relative",height:"20px",width:"20px"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},sideBar:{element:{height:"auto",width:"20px"},options:{elementPosition:"center"}},splash:{container:{animation:"0.3s fade-in linear forwards",height:"100%",width:"100%",zIndex:1},element:{width:"100px"},options:{elementPosition:"center"}},statusBar:{element:{left:"0px",top:"0px",height:"18px",width:"20px",position:"relative"}},toolbarButton:{container:{display:"inline-block",verticalAlign:"middle"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}}};function n(e){return{container:{alignItems:"center",display:"flex"},element:{display:"block",...e}}}const i={center:n({margin:"0 auto",width:"100%"}),top:n({margin:"0 0 auto 0"}),right:n({margin:"0 0 0 auto"}),bottom:n({margin:"auto 0 0 0"}),left:n({margin:"0 auto 0 0"}),"top right":n({margin:"0 0 auto auto"}),"bottom right":n({margin:"auto 0 0 auto"}),"bottom left":n({margin:"auto auto 0 0"}),"top left":n({margin:"0 auto 0 auto"})};function s(e){return{element:{height:e,width:e}}}const o={small:s("14px"),normal:s("16px"),large:s("20px"),xlarge:s("24px")};function r(e){return{container:Object.assign({},...e.map((e=>e.container))),element:Object.assign({},...e.map((e=>e.element)))}}function a(e){if(!e){return[]}if(!Array.isArray(e)){e=[e]}return e.map((e=>typeof e==="string"?t[e]:e))}function l(e){const t=Object.assign({},...e.map((e=>e.options)));if(t.elementPosition){e.unshift(i[t.elementPosition])}if(t.elementSize){e.unshift(o[t.elementSize])}return r(e)}function d(e){var t;return(0,y.iF)({...e.container,$nest:{...(t=e.container)===null||t===void 0?void 0:t.$nest,["svg"]:e.element}})}const c=new Map;function h(e){if(!e||Object.keys(e).length===0){return""}let{elementPosition:t,elementSize:n,stylesheet:i,...s}=e;const o={...t&&{elementPosition:t},...n&&{elementSize:n}};const r=typeof i==="string"&&Object.keys(s).length===0;const h=r?[i,t,n].join(","):"";if(r&&c.has(h)){return c.get(h)}const u=a(i);u.push({element:s,options:o});const p=d(l(u));if(r){c.set(h,p)}return p}e.styleClass=h})(w||(w={}));class C{static remove(e){while(e.firstChild){e.firstChild.remove()}e.className="";return e}static resolve({icon:e}){if(e instanceof C){return e}if(typeof e==="string"){const t=C._instances.get(e);if(t){return t}if(C._debug){console.warn(`Lookup failed for icon, creating loading icon. icon: ${e}`)}return new C({name:e,svgstr:b,_loading:true})}return new C(e)}static resolveElement({icon:e,iconClass:t,fallback:n,...i}){if(!x.isResolvable(e)){if(!t&&n){return n.element(i)}i.className=a(t,i.className);return x.blankElement(i)}return C.resolve({icon:e}).element(i)}static resolveReact({icon:e,iconClass:t,fallback:n,...i}){if(!x.isResolvable(e)){if(!t&&n){return s().createElement(n.react,{...i})}i.className=a(t,i.className);return s().createElement(x.blankReact,{...i})}const o=C.resolve({icon:e});return s().createElement(o.react,{...i})}static resolveSvg({name:e,svgstr:t}){const n=(new DOMParser).parseFromString(x.svgstrShim(t),"image/svg+xml");const i=n.querySelector("parsererror");if(i){const n=`SVG HTML was malformed for LabIcon instance.\nname: ${e}, svgstr: ${t}`;if(C._debug){console.error(n);return i}else{console.warn(n);return null}}else{return n.documentElement}}static toggleDebug(e){C._debug=e!==null&&e!==void 0?e:!C._debug}constructor({name:e,svgstr:t,render:n,unrender:i,_loading:s=false}){this._props={};this._svgReplaced=new p.Signal(this);this._svgElement=undefined;this._svgInnerHTML=undefined;this._svgReactAttrs=undefined;if(!(e&&t)){console.error(`When defining a new LabIcon, name and svgstr must both be non-empty strings. name: ${e}, svgstr: ${t}`);return S}this._loading=s;if(C._instances.has(e)){const n=C._instances.get(e);if(this._loading){n.svgstr=t;this._loading=false;return n}else{if(C._debug){console.warn(`Redefining previously loaded icon svgstr. name: ${e}, svgstrOld: ${n.svgstr}, svgstr: ${t}`)}n.svgstr=t;return n}}this.name=e;this.react=this._initReact(e);this.svgstr=t;this._initRender({render:n,unrender:i});C._instances.set(this.name,this)}bindprops(e){const t=Object.create(this);t._props=e;t.react=t._initReact(t.name+"_bind");return t}element(e={}){var t;let{className:n,container:i,label:s,title:o,tag:r="div",...a}={...this._props,...e};const l=i===null||i===void 0?void 0:i.firstChild;if(((t=l===null||l===void 0?void 0:l.dataset)===null||t===void 0?void 0:t.iconId)===this._uuid){return l}if(!this.svgElement){return document.createElement("div")}if(i){while(i.firstChild){i.firstChild.remove()}}else if(r){i=document.createElement(r)}const d=this.svgElement.cloneNode(true);if(!i){if(s){console.warn()}return d}if(s!=null){i.textContent=s}x.initContainer({container:i,className:n,styleProps:a,title:o});i.appendChild(d);return i}render(e,t){var n;let i=(n=t===null||t===void 0?void 0:t.children)===null||n===void 0?void 0:n[0];if(typeof i!=="string"){i=undefined}this.element({container:e,label:i,...t===null||t===void 0?void 0:t.props})}get svgElement(){if(this._svgElement===undefined){this._svgElement=this._initSvg({uuid:this._uuid})}return this._svgElement}get svgInnerHTML(){if(this._svgInnerHTML===undefined){if(this.svgElement===null){this._svgInnerHTML=null}else{this._svgInnerHTML=this.svgElement.innerHTML}}return this._svgInnerHTML}get svgReactAttrs(){if(this._svgReactAttrs===undefined){if(this.svgElement===null){this._svgReactAttrs=null}else{this._svgReactAttrs=d(this.svgElement,{ignore:["data-icon-id"]})}}return this._svgReactAttrs}get svgstr(){return this._svgstr}set svgstr(e){this._svgstr=e;const t=g.UUID.uuid4();const n=this._uuid;this._uuid=t;this._svgElement=undefined;this._svgInnerHTML=undefined;this._svgReactAttrs=undefined;document.querySelectorAll(`[data-icon-id="${n}"]`).forEach((e=>{if(this.svgElement){e.replaceWith(this.svgElement.cloneNode(true))}}));this._svgReplaced.emit()}_initReact(e){const t=s().forwardRef(((e={},t)=>{const{className:n,container:i,label:o,title:r,slot:l,tag:d="div",...c}={...this._props,...e};const[,h]=s().useState(this._uuid);s().useEffect((()=>{const e=()=>{h(this._uuid)};this._svgReplaced.connect(e);return()=>{this._svgReplaced.disconnect(e)}}));const u=d!==null&&d!==void 0?d:s().Fragment;if(!(this.svgInnerHTML&&this.svgReactAttrs)){return s().createElement(s().Fragment,null)}const p={...this.svgReactAttrs};if(!d){Object.assign(p,{className:n||c?a(n,w.styleClass(c)):undefined,title:r,slot:l})}const m=s().createElement("svg",{...p,...this.svgReactAttrs,dangerouslySetInnerHTML:{__html:this.svgInnerHTML},ref:t});if(i){x.initContainer({container:i,className:n,styleProps:c,title:r});return s().createElement(s().Fragment,null,m,o)}else{let e={};if(u!==s().Fragment){e={className:n||c?a(n,w.styleClass(c)):undefined,title:r,slot:l}}return s().createElement(u,{...e},m,o)}}));t.displayName=`LabIcon_${e}`;return t}_initRender({render:e,unrender:t}){if(e){this.render=e;if(t){this.unrender=t}}else if(t){console.warn("In _initRender, ignoring unrender arg since render is undefined")}}_initSvg({title:e,uuid:t}={}){const n=C.resolveSvg(this);if(!n){return n}if(n.tagName!=="parsererror"){n.dataset.icon=this.name;if(t){n.dataset.iconId=t}if(e){x.setTitleSvg(n,e)}else{n.setAttribute("aria-hidden","true")}}return n}}C._debug=false;C._instances=new Map;var x;(function(e){function t({className:t="",container:n,label:i,title:s,tag:o="div",slot:r,...a}){if((n===null||n===void 0?void 0:n.className)===t){return n}if(n){while(n.firstChild){n.firstChild.remove()}}else{n=document.createElement(o!==null&&o!==void 0?o:"div")}if(i!=null){n.textContent=i}e.initContainer({container:n,className:t,styleProps:a,title:s});return n}e.blankElement=t;e.blankReact=s().forwardRef((({className:e="",container:t,label:i,title:o,tag:r="div",...l},d)=>{const c=r!==null&&r!==void 0?r:"div";if(t){n({container:t,className:e,styleProps:l,title:o});return s().createElement(s().Fragment,null)}else{return s().createElement(c,{className:a(e,w.styleClass(l))},d&&j.react({ref:d}),i)}}));e.blankReact.displayName="BlankReact";function n({container:e,className:t,styleProps:n,title:i}){if(i!=null){e.title=i}const s=w.styleClass(n);if(t!=null){const n=a(t,s);e.className=n;return n}else if(s){e.classList.add(s);return s}else{return""}}e.initContainer=n;function i(e){return!!(e&&(typeof e==="string"||e.name&&e.svgstr))}e.isResolvable=i;function o(e,t){const n=e.getElementsByTagName("title");if(n.length){n[0].textContent=t}else{const n=document.createElement("title");n.textContent=t;e.appendChild(n)}}e.setTitleSvg=o;function r(e,t=true){const[,n,i]=decodeURIComponent(e).replace(/>\s*\n\s*<").replace(/\s*\n\s*/g," ").match(t?/^(?:data:.*?(;base64)?,)?(.*)/:/(?:(base64).*)?({var t;const n=((t=e.translator)!==null&&t!==void 0?t:ds.nullTranslator).load("jupyterlab");let i;const o=()=>{if(e.direction==="up"){return!e.item.hasMoveUp}else{return!e.item.hasMoveDown}};if(e.buttonStyle==="icons"){const t={tag:"span",elementSize:"xlarge",elementPosition:"center"};i=e.direction==="up"?s().createElement(tn.react,{...t}):s().createElement(Xt.react,{...t})}else{i=e.direction==="up"?n.__("Move up"):n.__("Move down")}const r=e.direction==="up"?e.item.index-1:e.item.index+1;return s().createElement("button",{className:"jp-mod-styled jp-mod-reject jp-ArrayOperationsButton",onClick:e.item.onReorderClick(e.item.index,r),disabled:o()},i)};const ms=e=>{var t;const n=((t=e.translator)!==null&&t!==void 0?t:ds.nullTranslator).load("jupyterlab");let i;if(e.buttonStyle==="icons"){i=s().createElement(cn.react,{tag:"span",elementSize:"xlarge",elementPosition:"center"})}else{i=n.__("Remove")}return s().createElement("button",{className:"jp-mod-styled jp-mod-warn jp-ArrayOperationsButton",onClick:e.item.onDropIndexClick(e.item.index)},i)};const gs=e=>{var t;const n=((t=e.translator)!==null&&t!==void 0?t:ds.nullTranslator).load("jupyterlab");let i;if(e.buttonStyle==="icons"){i=s().createElement(Ht.react,{tag:"span",elementSize:"xlarge",elementPosition:"center"})}else{i=n.__("Add")}return s().createElement("button",{className:"jp-mod-styled jp-mod-reject jp-ArrayOperationsButton",onClick:e.onAddClick},i)};function fs(e){const{component:t,name:n,buttonStyle:i,compact:s,showModifiedFromDefault:o,translator:r}=e;const a=s!==null&&s!==void 0?s:false;const l=i!==null&&i!==void 0?i:a?"icons":"text";const d=e=>t({...e,buttonStyle:l,compact:a,showModifiedFromDefault:o!==null&&o!==void 0?o:true,translator:r!==null&&r!==void 0?r:ds.nullTranslator});if(n){d.displayName=n}return d}function vs(e,t){const n=(0,hs.getTemplate)("TitleFieldTemplate",e,t);const i=(0,hs.getTemplate)("DescriptionFieldTemplate",e,t);return{TitleField:n,DescriptionField:i}}const _s=e=>fs({...e,name:"JupyterLabArrayTemplate",component:e=>{var t;const{schema:n,registry:i,uiSchema:o,required:r}=e;const a={schema:n,registry:i,uiSchema:o,required:r};const{TitleField:l,DescriptionField:d}=vs(i,o);return s().createElement("div",{className:e.className},e.compact?s().createElement("div",{className:"jp-FormGroup-compactTitle"},s().createElement("div",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem",id:`${e.idSchema.$id}__title`},e.title||""),s().createElement("div",{className:"jp-FormGroup-description",id:`${e.idSchema.$id}-description`},e.schema.description||"")):s().createElement(s().Fragment,null,e.title&&s().createElement(l,{...a,title:e.title,id:`${e.idSchema.$id}-title`}),s().createElement(d,{...a,id:`${e.idSchema.$id}-description`,description:(t=e.schema.description)!==null&&t!==void 0?t:""})),e.items.map((t=>s().createElement("div",{key:t.key,className:t.className},t.children,s().createElement("div",{className:"jp-ArrayOperations"},s().createElement(ps,{buttonStyle:e.buttonStyle,translator:e.translator,item:t,direction:"up"}),s().createElement(ps,{buttonStyle:e.buttonStyle,translator:e.translator,item:t,direction:"down"}),s().createElement(ms,{buttonStyle:e.buttonStyle,translator:e.translator,item:t}))))),e.canAdd&&s().createElement(gs,{onAddClick:e.onAddClick,buttonStyle:e.buttonStyle,translator:e.translator}))}});const bs=e=>fs({...e,name:"JupyterLabObjectTemplate",component:e=>{var t;const{schema:n,registry:i,uiSchema:o,required:r}=e;const a={schema:n,registry:i,uiSchema:o,required:r};const{TitleField:l,DescriptionField:d}=vs(i,o);return s().createElement("fieldset",{id:e.idSchema.$id},e.compact?s().createElement("div",{className:"jp-FormGroup-compactTitle"},s().createElement("div",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem",id:`${e.idSchema.$id}__title`},e.title||""),s().createElement("div",{className:"jp-FormGroup-description",id:`${e.idSchema.$id}__description`},e.schema.description||"")):s().createElement(s().Fragment,null,(e.title||(e.uiSchema||g.JSONExt.emptyObject)["ui:title"])&&s().createElement(l,{...a,id:`${e.idSchema.$id}__title`,title:e.title||`${(e.uiSchema||g.JSONExt.emptyObject)["ui:title"]}`||""}),s().createElement(d,{...a,id:`${e.idSchema.$id}__description`,description:(t=e.schema.description)!==null&&t!==void 0?t:""})),e.properties.map((e=>e.content)),(0,hs.canExpand)(e.schema,e.uiSchema,e.formData)&&s().createElement(gs,{onAddClick:e.onAddClick(e.schema),buttonStyle:e.buttonStyle,translator:e.translator}))}});const ys=e=>fs({...e,name:"JupyterLabFieldTemplate",component:e=>{var t;const n=((t=e.translator)!==null&&t!==void 0?t:ds.nullTranslator).load("jupyterlab");let i=false;let o;const{formData:r,schema:a,label:l,displayLabel:d,id:c,formContext:h,errors:u,rawErrors:p,children:m,onKeyChange:f,onDropPropertyClick:v}=e;const{defaultFormData:_}=h;const b=c.split("_");b.shift();const y=b.join(".");const w=y==="";const C=y===(e.uiSchema||g.JSONExt.emptyObject)["ui:field"];if(e.showModifiedFromDefault){o=b.reduce(((e,t)=>e===null||e===void 0?void 0:e[t]),_);i=!w&&r!==undefined&&o!==undefined&&!a.properties&&a.type!=="array"&&!g.JSONExt.deepEqual(r,o)}const x=!w&&a.type!="object"&&c!="jp-SettingsEditor-@jupyterlab/shortcuts-extension:shortcuts_shortcuts";const S=a.hasOwnProperty(hs.ADDITIONAL_PROPERTY_FLAG);const j=!(a.type==="object"||a.type==="array");return s().createElement("div",{className:`form-group ${d||a.type==="boolean"?"small-field":""}`},!C&&((p===null||p===void 0?void 0:p.length)?s().createElement("div",{className:"jp-modifiedIndicator jp-errorIndicator"}):i&&s().createElement("div",{className:"jp-modifiedIndicator"})),s().createElement("div",{className:`jp-FormGroup-content ${e.compact?"jp-FormGroup-contentCompact":"jp-FormGroup-contentNormal"}`},j&&d&&!w&&l&&!S?e.compact?s().createElement("div",{className:"jp-FormGroup-compactTitle"},s().createElement("div",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem"},l),j&&a.description&&x&&s().createElement("div",{className:"jp-FormGroup-description"},a.description)):s().createElement("h3",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem"},l):s().createElement(s().Fragment,null),S&&s().createElement("input",{className:"jp-FormGroup-contentItem jp-mod-styled",type:"text",onBlur:e=>f(e.target.value),defaultValue:l}),s().createElement("div",{className:`${w?"jp-root":a.type==="object"?"jp-objectFieldWrapper":a.type==="array"?"jp-arrayFieldWrapper":"jp-inputFieldWrapper jp-FormGroup-contentItem"}`},m),S&&s().createElement("button",{className:"jp-FormGroup-contentItem jp-mod-styled jp-mod-warn jp-FormGroup-removeButton",onClick:v(l)},n.__("Remove")),!e.compact&&a.description&&x&&s().createElement("div",{className:"jp-FormGroup-description"},a.description),i&&o!==undefined&&a.type!=="object"&&s().createElement("div",{className:"jp-FormGroup-default"},n.__("Default: %1",o!==null?o.toLocaleString():"null")),s().createElement("div",{className:"validationErrors"},u)))}});function ws(e){const{buttonStyle:t,compact:n,showModifiedFromDefault:i,translator:o,formContext:r,...a}=e;const l={...a.uiSchema||g.JSONExt.emptyObject};l["ui:options"]={...us,...l["ui:options"]};a.uiSchema=l;const{FieldTemplate:d,ArrayFieldTemplate:c,ObjectFieldTemplate:h}=e.templates||g.JSONExt.emptyObject;const u={buttonStyle:t,compact:n,showModifiedFromDefault:i,translator:o};const p=s().useMemo((()=>d!==null&&d!==void 0?d:ys(u)),[d,t,n,i,o]);const m=s().useMemo((()=>c!==null&&c!==void 0?c:_s(u)),[c,t,n,i,o]);const f=s().useMemo((()=>h!==null&&h!==void 0?h:bs(u)),[h,t,n,i,o]);const v={FieldTemplate:p,ArrayFieldTemplate:m,ObjectFieldTemplate:f};return s().createElement(cs.Ay,{templates:v,formContext:r,...a})}const Cs="jp-DefaultStyle";const xs="jp-HTMLSelect";class Ss extends i.Component{render(){const{className:e,defaultStyle:t=true,disabled:n,elementRef:s,iconProps:o,icon:r=Gt,options:l=[],...d}=this.props;const c=a(xs,{[Cs]:t},e);const h=e=>{e.stopPropagation()};const u=l.map((e=>{const t=typeof e==="object"?e:{value:e};return i.createElement("option",{...t,key:t.value},t.label||t.value)}));return i.createElement("div",{className:c},i.createElement("select",{onFocus:h,disabled:n,ref:s,...d,multiple:false},u,d.children),i.createElement(r.react,{tag:"span",stylesheet:"select",right:"4px",top:"8px",...o}))}}class js extends m.Widget{constructor(e={}){super({node:ks.createNode()});this._sandbox=[];this.addClass("jp-IFrame");this.sandbox=e.sandbox||[];this.referrerPolicy=e.referrerPolicy||"no-referrer";this.loading=e.loading||"eager"}get referrerPolicy(){return this._referrerPolicy}set referrerPolicy(e){if(this._referrerPolicy===e){return}this._referrerPolicy=e;const t=this.node.querySelector("iframe");t.setAttribute("referrerpolicy",e)}get loading(){return this._loading}set loading(e){if(this._loading===e){return}this._loading=e;const t=this.node.querySelector("iframe");t.setAttribute("loading",e)}get sandbox(){return this._sandbox.slice()}set sandbox(e){this._sandbox=e.slice();const t=this.node.querySelector("iframe");const n=e.length?e.join(" "):"";t.setAttribute("sandbox",n)}get url(){return this.node.querySelector("iframe").getAttribute("src")||""}set url(e){this.node.querySelector("iframe").setAttribute("src",e)}}var ks;(function(e){function t(){const e=document.createElement("div");const t=document.createElement("iframe");t.setAttribute("sandbox","");t.style.height="100%";t.style.width="100%";e.appendChild(t);return e}e.createNode=t})(ks||(ks={}));function Is(e){const{className:t,inputRef:n,rightIcon:i,...o}=e;return s().createElement("div",{className:a("jp-InputGroup",t)},s().createElement("input",{ref:n,...o}),i&&s().createElement("span",{className:"jp-InputGroupAction"},typeof i==="string"?s().createElement(C.resolveReact,{icon:i,elementPosition:"center",tag:"span"}):s().createElement(i.react,{elementPosition:"center",tag:"span"})))}var Ts=n(34236);var Es=n(90044);var Ms;(function(e){e.DEFAULT_RANK=100})(Ms||(Ms={}));class Ds extends m.Menu{constructor(e){var t;super(e);this._ranks=[];this.addClass("jp-ThemedContainer");this._rank=e.rank;this._includeSeparators=(t=e.includeSeparators)!==null&&t!==void 0?t:true}get rank(){return this._rank}addGroup(e,t){if(e.length===0){return new Es.DisposableDelegate((()=>void 0))}const n=t!==null&&t!==void 0?t:Ms.DEFAULT_RANK;const i=e.map((e=>{var t;return{...e,rank:(t=e.rank)!==null&&t!==void 0?t:n}})).sort(((e,t)=>e.rank-t.rank));let s=this._ranks.findIndex((e=>i[0].rankthis.insertItem(s++,e))));if(this._includeSeparators){o.push(this.insertItem(s++,{type:"separator",rank:n}))}return new Es.DisposableDelegate((()=>{o.forEach((e=>e.dispose()))}))}addItem(e){let t=-1;if(e.rank){t=this._ranks.findIndex((t=>e.rank{e.disposed.disconnect(n,this);this.dispose()};this._menu.disposed.connect(n,this)}get isDisposed(){return this._isDisposed}get type(){return this._item.deref().type}get command(){return this._item.deref().command}get args(){return this._item.deref().args}get submenu(){return this._item.deref().submenu}get label(){return this._item.deref().label}get mnemonic(){return this._item.deref().mnemonic}get icon(){return this._item.deref().icon}get iconClass(){return this._item.deref().iconClass}get iconLabel(){return this._item.deref().iconLabel}get caption(){return this._item.deref().caption}get className(){return this._item.deref().className}get dataset(){return this._item.deref().dataset}get isEnabled(){return this._item.deref().isEnabled}get isToggled(){return this._item.deref().isToggled}get isVisible(){return this._item.deref().isVisible}get keyBinding(){return this._item.deref().keyBinding}dispose(){if(this._isDisposed){return}this._isDisposed=true;const e=this._item.deref();if(e&&!this._menu.isDisposed){this._menu.removeItem(e)}p.Signal.clearData(this)}}var Ps=n(54158);var Ls=n(78173);var Rs=n(93247);var Ns=n(42856);var Bs=n(94466);var Os=n(26568);class Fs extends m.Widget{constructor(){super();this._rootDOM=null}static create(e){return new class extends Fs{render(){return e}}}onUpdateRequest(e){this.renderPromise=this.renderDOM()}onAfterAttach(e){Ns.MessageLoop.sendMessage(this,m.Widget.Msg.UpdateRequest)}onBeforeDetach(e){if(this._rootDOM!==null){this._rootDOM.unmount();this._rootDOM=null}}renderDOM(){return new Promise((e=>{const t=this.render();if(this._rootDOM===null){this._rootDOM=(0,f.H)(this.node)}if(Array.isArray(t)){this._rootDOM.render(t);requestIdleCallback((()=>e()))}else if(t){this._rootDOM.render(t);requestIdleCallback((()=>e()))}else{this._rootDOM.unmount();this._rootDOM=null;requestIdleCallback((()=>e()))}}))}}class zs extends Fs{constructor(e){super();this._modelChanged=new p.Signal(this);this.model=e!==null&&e!==void 0?e:null}get modelChanged(){return this._modelChanged}set model(e){if(this._model===e){return}if(this._model){this._model.stateChanged.disconnect(this.update,this)}this._model=e;if(e){e.stateChanged.connect(this.update,this)}this.update();this._modelChanged.emit(void 0)}get model(){return this._model}dispose(){if(this.isDisposed){return}this._model=null;super.dispose()}}class Ws extends i.Component{constructor(e){super(e);this.slot=(e,t)=>{if(this.props.shouldUpdate&&!this.props.shouldUpdate(e,t)){return}this.setState({value:[e,t]})};this.state={value:[this.props.initialSender,this.props.initialArgs]}}componentDidMount(){this.props.signal.connect(this.slot)}componentWillUnmount(){this.props.signal.disconnect(this.slot)}render(){return this.props.children(...this.state.value)}}class Hs{constructor(){this.stateChanged=new p.Signal(this);this._isDisposed=false}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;p.Signal.clearData(this)}}(0,Ls.provideJupyterDesignSystem)().register([(0,Ls.jpButton)(),(0,Ls.jpToolbar)()]);(0,Ls.addJupyterLabThemeChangeListener)();const Vs="jp-Toolbar";const Us="jp-Toolbar-item";const qs="toolbar-popup-opener";const $s="jp-Toolbar-spacer";class Ks extends m.PanelLayout{constructor(){super(...arguments);this._dirty=false}onFitRequest(e){super.onFitRequest(e);if(this.parent.isAttached){if((0,Ts.some)(this.widgets,(e=>!e.isHidden))){this.parent.node.style.minHeight="var(--jp-private-toolbar-height)";this.parent.removeClass("jp-Toolbar-micro")}else{this.parent.node.style.minHeight="";this.parent.addClass("jp-Toolbar-micro")}}this._dirty=true;if(this.parent.parent){Ns.MessageLoop.sendMessage(this.parent.parent,m.Widget.Msg.FitRequest)}if(this._dirty){Ns.MessageLoop.sendMessage(this.parent,m.Widget.Msg.UpdateRequest)}}onUpdateRequest(e){super.onUpdateRequest(e);if(this.parent.isVisible){this._dirty=false}}onChildShown(e){super.onChildShown(e);this.parent.fit()}onChildHidden(e){super.onChildHidden(e);this.parent.fit()}onBeforeAttach(e){super.onBeforeAttach(e);this.parent.fit()}attachWidget(e,t){super.attachWidget(e,t);this.parent.fit()}detachWidget(e,t){super.detachWidget(e,t);this.parent.fit()}}class Js extends m.Widget{constructor(e={}){var t,n;super({node:document.createElement("jp-toolbar")});this.addClass(Vs);this.layout=(t=e.layout)!==null&&t!==void 0?t:new Ks;this.noFocusOnClick=(n=e.noFocusOnClick)!==null&&n!==void 0?n:false}names(){const e=this.layout;return(0,Ts.map)(e.widgets,(e=>so.nameProperty.get(e)))}addItem(e,t){const n=this.layout;return this.insertItem(n.widgets.length,e,t)}insertItem(e,t,n){const i=(0,Ts.find)(this.names(),(e=>e===t));if(i){return false}n.addClass(Us);const s=this.layout;const o=Math.max(0,Math.min(e,s.widgets.length));s.insertWidget(o,n);so.nameProperty.set(n,t);n.node.dataset["jpItemName"]=t;if(this.noFocusOnClick){n.node.dataset["noFocusOnClick"]="true"}return true}insertAfter(e,t,n){return this.insertRelative(e,1,t,n)}insertBefore(e,t,n){return this.insertRelative(e,0,t,n)}insertRelative(e,t,n,i){const s=(0,Ts.map)(this.names(),((e,t)=>({name:e,index:t})));const o=(0,Ts.find)(s,(t=>t.name===e));if(o){return this.insertItem(o.index+t,n,i)}return false}handleEvent(e){switch(e.type){case"click":this.handleClick(e);break;default:break}}handleClick(e){e.stopPropagation();if(e.target instanceof HTMLLabelElement){const t=e.target.getAttribute("for");if(t&&this.node.querySelector(`#${t}`)){return}}if(this.node.contains(document.activeElement)){return}if(this.parent){this.parent.activate()}}onAfterAttach(e){this.node.addEventListener("click",this)}onBeforeDetach(e){this.node.removeEventListener("click",this)}}class Gs extends Js{constructor(e={}){super(e);this.popupOpener=new io;this._widgetWidths=new Map;this._widgetPositions=new Map;this._zoomChanged=true;this.insertItem(0,qs,this.popupOpener);this.popupOpener.hide();this._resizer=new Os.Throttler((async(e=false)=>{await this._onResize(e)}),500)}dispose(){if(this.isDisposed){return}if(this._resizer){this._resizer.dispose()}super.dispose()}insertAfter(e,t,n){if(e===qs){return false}return super.insertAfter(e,t,n)}insertRelative(e,t,n,i){const s=this._widgetPositions.get(e);const o=(s!==null&&s!==void 0?s:0)+t;return this.insertItem(o,n,i)}insertItem(e,t,n){var i;let s;if(n instanceof io){s=super.insertItem(e,t,n)}else{const i=Math.max(0,Math.min(e,this.layout.widgets.length-1));s=super.insertItem(i,t,n);if(i!==e){e=Math.max(0,Math.min(e,this._widgetPositions.size))}}if(t!==qs&&this._widgetPositions.get(t)!==e){const n=(i=this._widgetPositions.get(t))!==null&&i!==void 0?i:this._widgetPositions.size;this._widgetPositions.forEach(((t,i)=>{if(i!==qs){if(t>=e&&tn){this._widgetPositions.set(i,t-1)}}}));this._widgetPositions.set(t,e);if(this.isVisible){void this._resizer.invoke()}}return s}onAfterShow(e){void this._resizer.invoke(true)}onBeforeHide(e){this.popupOpener.hidePopup();super.onBeforeHide(e)}onResize(e){super.onResize(e);const t=Math.round(window.outerWidth/window.innerWidth*100);if(t!==this._zoom){this._zoomChanged=true;this._zoom=t}if(e.width>0&&this._resizer){void this._resizer.invoke()}}async _onResize(e=false){if(!(this.parent&&this.parent.isAttached)){return}const t=this.node.clientWidth;const n=this.popupOpener;const i=32;const s=2+5;let o=n.isHidden?s:s+i;return this._getWidgetsToRemove(o,t,i).then((async s=>{var o,r;let{width:a,widgetsToRemove:l}=s;while(l.length>0){const e=l.pop();const t=so.nameProperty.get(e);a-=this._widgetWidths.get(t)||0;const i=(o=this._widgetPositions.get(t))!==null&&o!==void 0?o:0;let s=this._widgetPositions.size;const d=n.widgetAt(0);if(d){const e=so.nameProperty.get(d);s=(r=this._widgetPositions.get(e))!==null&&r!==void 0?r:s}const c=i-s;n.insertWidget(c,e)}if(n.widgetCount()>0){const e=[];let s=0;const o=n.widgetCount();while(s0){const t=e.shift();const n=so.nameProperty.get(t);if(this._widgetPositions.has(n)){this.insertItem(this._widgetPositions.get(n),n,t)}else{this.addItem(n,t)}}}if(n.widgetCount()>0){n.updatePopup();n.show()}else{n.hide()}if(e){await this._onResize()}})).catch((e=>{console.error("Error while computing the ReactiveToolbar",e)}))}async _getWidgetsToRemove(e,t,n){var i;const s=this.popupOpener;const o=[...this.layout.widgets];const r=o.length-1;const a=[];let l=0;while(lt){e+=n}if(e>t||((i=this._widgetPositions.get(d))!==null&&i!==void 0?i:0)>l){a.push(r)}l++}this._zoomChanged=false;return{width:e,widgetsToRemove:a}}async _saveWidgetWidth(e,t){if(t instanceof Fs){await t.renderPromise}const n=t.hasClass($s)?2:t.node.clientWidth;this._widgetWidths.set(e,n);return n}_getWidgetWidth(e){const t=so.nameProperty.get(e);return this._widgetWidths.get(t)||0}}(function(e){function t(){return new so.Spacer}e.createSpacerItem=t})(Js||(Js={}));function Ys(e){var t,n,s;const o=((t=e.noFocusOnClick)!==null&&t!==void 0?t:false)?undefined:t=>{var n;if(t.button===0){(n=e.onClick)===null||n===void 0?void 0:n.call(e);t.target.focus()}};const r=((n=e.noFocusOnClick)!==null&&n!==void 0?n:false)?t=>{var n;if(t.button===0){t.preventDefault();(n=e.onClick)===null||n===void 0?void 0:n.call(e)}}:undefined;const l=t=>{var n;const{key:i}=t;if(i==="Enter"||i===" "){(n=e.onClick)===null||n===void 0?void 0:n.call(e)}};const d=()=>{if(e.enabled===false&&e.disabledTooltip){return e.disabledTooltip}else if(e.pressed&&e.pressedTooltip){return e.pressedTooltip}else{return e.tooltip||e.iconLabel}};const c=d();const h=e.enabled===false;return i.createElement(Ps.Button,{appearance:"stealth",className:e.className?e.className+" jp-ToolbarButtonComponent":"jp-ToolbarButtonComponent","aria-disabled":h,"aria-label":e.label||c,"aria-pressed":e.pressed,"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],...so.normalizeDataset(e.dataset),disabled:h,onClick:o,onMouseDown:r,onKeyDown:l,title:c},(e.icon||e.iconClass)&&i.createElement(C.resolveReact,{icon:e.pressed?(s=e.pressedIcon)!==null&&s!==void 0?s:e.icon:e.icon,iconClass:a(e.iconClass,"jp-Icon"),tag:null}),e.label&&i.createElement("span",{className:"jp-ToolbarButtonComponent-label"},e.label))}function Xs(e){e.addClass("jp-ToolbarButton");return e}class Qs extends Fs{constructor(e={}){var t,n;super();this.props=e;Xs(this);this._enabled=(t=e.enabled)!==null&&t!==void 0?t:true;this._pressed=this._enabled&&((n=e.pressed)!==null&&n!==void 0?n:false);this._onClick=e.onClick}set pressed(e){if(this.enabled&&e!==this._pressed){this._pressed=e;this.update()}}get pressed(){return this._pressed}set enabled(e){if(e!=this._enabled){this._enabled=e;if(!this._enabled){this._pressed=false}this.update()}}get enabled(){return this._enabled}set onClick(e){if(e!==this._onClick){this._onClick=e;this.update()}}get onClick(){return this._onClick}render(){return i.createElement(Ys,{...this.props,noFocusOnClick:this.props.noFocusOnClick,pressed:this.pressed,enabled:this.enabled,onClick:this.onClick})}}function Zs(e){return i.createElement(Ws,{signal:e.commands.commandChanged,shouldUpdate:(t,n)=>n.id===e.id&&n.type==="changed"||n.type==="many-changed"},(()=>e.commands.listCommands().includes(e.id)?i.createElement(Ys,{...so.propsFromCommand(e)}):null))}function eo(e){e.addClass("jp-CommandToolbarButton");return e}class to extends Fs{constructor(e){super();this.props=e;const{commands:t,id:n,args:i}=e;eo(this);this.setCommandAttributes(t,n,i);t.commandChanged.connect(((s,o)=>{if(o.id===e.id){this.setCommandAttributes(t,n,i)}}),this)}setCommandAttributes(e,t,n){if(e.isToggled(t,n)){this.addClass("lm-mod-toggled")}else{this.removeClass("lm-mod-toggled")}if(e.isVisible(t,n)){this.removeClass("lm-mod-hidden")}else{this.addClass("lm-mod-hidden")}if(e.isEnabled(t,n)){if("disabled"in this.node){this.node.disabled=false}}else{if("disabled"in this.node){this.node.disabled=true}}}render(){return i.createElement(Zs,{...this.props})}get commandId(){return this.props.id}}class no extends m.Widget{constructor(){super({node:document.createElement("jp-toolbar")});this.width=0;this.node.setAttribute("aria-label","Responsive popup toolbar");this.addClass("jp-Toolbar");this.addClass("jp-Toolbar-responsive-popup");this.addClass("jp-ThemedContainer");this.layout=new m.PanelLayout;m.Widget.attach(this,document.body);this.hide()}updateWidth(e){if(e>0){this.width=e;this.node.style.width=`${e}px`}}alignTo(e){const{height:t,width:n,x:i,y:s}=e.node.getBoundingClientRect();const o=this.width;this.node.style.left=`${i+n-o+1}px`;this.node.style.top=`${s+t+1}px`}insertWidget(e,t){this.layout.insertWidget(e,t)}widgetCount(){return this.layout.widgets.length}widgetAt(e){return this.layout.widgets[e]}}class io extends Qs{constructor(e={}){const t=(e.translator||ds.nullTranslator).load("jupyterlab");super({icon:Tn,onClick:()=>{this.handleClick()},tooltip:t.__("More commands")});this.addClass("jp-Toolbar-responsive-opener");this.popup=new no}addWidget(e){this.popup.insertWidget(0,e)}insertWidget(e,t){this.popup.insertWidget(e,t)}dispose(){if(this.isDisposed){return}this.popup.dispose();super.dispose()}hide(){super.hide();this.hidePopup()}hidePopup(){this.popup.hide()}updatePopup(){this.popup.updateWidth(this.parent.node.clientWidth);this.popup.alignTo(this.parent)}widgetAt(e){return this.popup.widgetAt(e)}widgetCount(){return this.popup.widgetCount()}handleClick(){this.updatePopup();this.popup.setHidden(!this.popup.isHidden)}}var so;(function(e){function t(e){if(!e){return undefined}const t={};for(const[n,i]of Object.entries(e)){const e=n.startsWith("data-")?n:`data-${n}`;t[e]=i}return t}e.normalizeDataset=t;function n(e){var t,n;const{commands:i,id:s,args:o}=e;const r=i.iconClass(s,o);const a=i.iconLabel(s,o);const l=(t=e.icon)!==null&&t!==void 0?t:i.icon(s,o);const d=i.label(s,o);let c=i.className(s,o);let h;if(i.isToggleable(s,o)){h=i.isToggled(s,o);if(h){c+=" lm-mod-toggled"}}if(!i.isVisible(s,o)){c+=" lm-mod-hidden"}const u=typeof e.label==="function"?e.label(o!==null&&o!==void 0?o:{}):e.label;let p=i.caption(s,o)||u||d||a;const m=i.keyBindings.find((e=>e.command===s));if(m){const e=m.keys.map(Rs.CommandRegistry.formatKeystroke).join(", ");p=`${p} (${e})`}const g=()=>{void i.execute(s,o)};const f=i.isEnabled(s,o);const v=e;const{"aria-haspopup":_,"aria-expanded":b,"aria-controls":y}=v;return{className:c,dataset:{"data-command":e.id},noFocusOnClick:e.noFocusOnClick,icon:l,iconClass:r,tooltip:(n=e.caption)!==null&&n!==void 0?n:p,onClick:g,enabled:f,label:u!==null&&u!==void 0?u:d,pressed:h,"aria-haspopup":_,"aria-expanded":b,"aria-controls":y}}e.propsFromCommand=n;e.nameProperty=new Bs.AttachedProperty({name:"name",create:()=>""});class i extends m.Widget{constructor(){super();this.addClass($s)}}e.Spacer=i})(so||(so={}));class oo extends m.Panel{constructor(e={}){super(e);this._toolbar=new Js}get toolbar(){return this._toolbar}}function ro(e,t){let n=Infinity;let i=null;const s=/[\p{L}\p{N}\p{M}]+/gu;let o=true;while(o){let o=s.exec(e);if(!o){break}let r=Ts.StringExt.matchSumOfDeltas(e,t,o.index);if(!r){break}if(r&&r.score<=n){n=r.score;i=r.indices}}if(!i||n===Infinity){return null}return{score:n,indices:i}}const ao=(e,t,n)=>i=>{if(t){const t=e.toLowerCase();return ro(i,t)}if(!n){i=i.toLocaleLowerCase();e=e.toLocaleLowerCase()}const s=i.indexOf(e);if(s===-1){return null}return{indices:[...Array(e.length).keys()].map((e=>e+s))}};const lo=e=>{var t,n,o;const[r,a]=(0,i.useState)((t=e.initialQuery)!==null&&t!==void 0?t:"");if(e.forceRefresh){(0,i.useEffect)((()=>{e.updateFilter((e=>({})))}),[])}const l=(0,i.useRef)(true);const d=(n=e.inputRef)!==null&&n!==void 0?n:(0,i.useRef)();(0,i.useEffect)((()=>{if(l.current){l.current=false;if(e.initialQuery!==undefined){e.updateFilter(ao(e.initialQuery,e.useFuzzyFilter,e.caseSensitive),e.initialQuery)}}else{if(d.current){e.updateFilter(ao(d.current.value,e.useFuzzyFilter,e.caseSensitive),d.current.value)}}}),[e.updateFilter,e.useFuzzyFilter,e.caseSensitive]);const c=(0,i.useCallback)((t=>{const n=t.target;a(n.value);e.updateFilter(ao(n.value,e.useFuzzyFilter,e.caseSensitive),n.value)}),[e.updateFilter,e.useFuzzyFilter,e.caseSensitive]);const h=(o=e.showIcon)!==null&&o!==void 0?o:true;return s().createElement(Ps.Search,{role:"search",className:"jp-FilterBox",ref:e.inputRef,value:r,onChange:c,onInput:c,placeholder:e.placeholder,disabled:e.disabled},h&&s().createElement(Mi.react,{slot:"end",tag:null}))};class co extends Fs{constructor(e){var t;super();this._filterBoxProps={...e};(t=e===null||e===void 0?void 0:e.filterSettingsChanged)===null||t===void 0?void 0:t.connect(((e,t)=>{this._updateProps(t)}),this)}render(){return s().createElement(lo,{...this._filterBoxProps})}_updateProps(e){Object.assign(this._filterBoxProps,e);this.update()}}const ho=e=>new co(e);class uo extends m.AccordionLayout{constructor(){super(...arguments);this._toolbars=new WeakMap}insertWidget(e,t){if(t.toolbar){this._toolbars.set(t,t.toolbar);t.toolbar.addClass("jp-AccordionPanel-toolbar")}super.insertWidget(e,t)}removeWidgetAt(e){const t=this.widgets[e];super.removeWidgetAt(e);if(t&&this._toolbars.has(t)){this._toolbars.delete(t)}}updateTitle(e,t){super.updateTitle(e,t);this._addToolbar(e,t)}attachWidget(e,t){super.attachWidget(e,t);this._addToolbar(e,t)}detachWidget(e,t){const n=this._toolbars.get(t);if(n){if(this.parent.isAttached){Ns.MessageLoop.sendMessage(n,m.Widget.Msg.BeforeDetach)}this.titles[e].removeChild(n.node);if(this.parent.isAttached){Ns.MessageLoop.sendMessage(n,m.Widget.Msg.AfterDetach)}}super.detachWidget(e,t)}onBeforeAttach(e){this.notifyToolbars(e);super.onBeforeAttach(e)}onAfterAttach(e){super.onAfterAttach(e);this.notifyToolbars(e)}onBeforeDetach(e){this.notifyToolbars(e);super.onBeforeDetach(e)}onAfterDetach(e){super.onAfterDetach(e);this.notifyToolbars(e)}_addToolbar(e,t){const n=this._toolbars.get(t);if(n){if(this.parent.isAttached){Ns.MessageLoop.sendMessage(n,m.Widget.Msg.BeforeAttach)}this.titles[e].appendChild(n.node);if(this.parent.isAttached){Ns.MessageLoop.sendMessage(n,m.Widget.Msg.AfterAttach)}}}notifyToolbars(e){this.widgets.forEach((t=>{const n=this._toolbars.get(t);if(n){n.processMessage(e)}}))}}var po;(function(e){class t extends m.AccordionPanel.Renderer{createCollapseIcon(e){const t=document.createElement("div");Xt.element({container:t});return t}createSectionTitle(e){const t=super.createSectionTitle(e);t.classList.add("jp-AccordionPanel-title");return t}}e.Renderer=t;e.defaultRenderer=new t;function n(t){var n;return t.layout||new uo({renderer:t.renderer||e.defaultRenderer,orientation:t.orientation,alignment:t.alignment,spacing:t.spacing,titleSpace:(n=t.titleSpace)!==null&&n!==void 0?n:32})}e.createLayout=n})(po||(po={}));class mo extends m.Widget{constructor(e={}){var t;super();const n=this.layout=new m.PanelLayout;this.addClass("jp-SidePanel");const i=this._trans=(e.translator||ds.nullTranslator).load("jupyterlab");if(e.header){this.addHeader(e.header)}const s=this._content=(t=e.content)!==null&&t!==void 0?t:new m.AccordionPanel({...e,layout:po.createLayout(e)});s.node.setAttribute("role","region");s.node.setAttribute("aria-label",i.__("side panel content"));s.addClass("jp-SidePanel-content");n.addWidget(s);if(e.toolbar){this.addToolbar(e.toolbar)}}get content(){return this._content}get header(){if(!this._header){this.addHeader()}return this._header}get toolbar(){if(!this._toolbar){this.addToolbar()}return this._toolbar}get widgets(){return this.content.widgets}addWidget(e){this.content.addWidget(e)}insertWidget(e,t){this.content.insertWidget(e,t)}addHeader(e){const t=this._header=e||new m.Panel;t.addClass("jp-SidePanel-header");this.layout.insertWidget(0,t)}addToolbar(e){const t=this._toolbar=e!==null&&e!==void 0?e:new Js;t.addClass("jp-SidePanel-toolbar");this.layout.insertWidget(this.layout.widgets.length-1,t)}}class go extends m.Widget{constructor(){super();this.addClass("jp-Spinner");this.node.tabIndex=-1;const e=document.createElement("div");e.className="jp-SpinnerContent";this.node.appendChild(e)}onActivateRequest(e){this.node.focus()}}var fo;(function(e){function t(e,t=""){n(e,"select",t);n(e,"textarea",t);n(e,"input",t);n(e,"button",t)}e.styleNode=t;function n(e,t,n=""){if(e.localName===t){e.classList.add("jp-mod-styled")}if(e.localName==="select"){const t=e.hasAttribute("multiple");i(e,t)}const s=e.getElementsByTagName(t);for(let o=0;o{if(e===t.sortKey){n({sortKey:e,sortDirection:t.sortDirection*-1})}else{n({sortKey:e,sortDirection:1})}};let r=e.rows;const a=e.columns.filter((e=>e.id===t.sortKey))[0];if(a){const n=a.sort.bind(a);r=e.rows.sort(((e,i)=>n(e.data,i.data)*t.sortDirection))}const l=e.columns.filter((e=>(e.isAvailable?e.isAvailable():true)&&!e.isHidden));const d=r.map((t=>{const n=l.map((e=>s().createElement("td",{key:e.id+"-"+t.key},e.renderCell(t.data))));return s().createElement("tr",{key:t.key,"data-key":t.key,onClick:e.onRowClick,className:"jp-sortable-table-tr"},n)}));const c=l.map((e=>s().createElement(wo,{label:e.label,id:e.id,state:t,key:e.id,onSort:()=>{o(e.id)}})));return s().createElement("table",{className:bo},s().createElement("thead",null,s().createElement("tr",{className:"jp-sortable-table-tr"},c)),s().createElement("tbody",null,d))}function wo(e){const t=e.id===e.state.sortKey;const n=!t||e.state.sortDirection===1?tn:Xt;return s().createElement("th",{key:e.id,onClick:()=>e.onSort(),className:t?"jp-sorted-header":undefined,"data-id":e.id},s().createElement("div",{className:"jp-sortable-table-th-wrapper"},s().createElement("label",null,e.label),s().createElement(n.react,{tag:"span",className:"jp-sort-icon"})))}const Co=100;let xo=false;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){xo={passive:true}}}))}catch(Ho){}class So{constructor(e={}){var t,n,i,s,o,r;this.scrollDownThreshold=1;this.scrollUpThreshold=0;this.paddingTop=0;this._estimatedWidgetSize=jo.DEFAULT_WIDGET_SIZE;this._stateChanged=new p.Signal(this);this._currentWindow=[-1,-1,-1,-1];this._height=0;this._isDisposed=false;this._itemsList=null;this._measuredAllUntilIndex=-1;this._overscanCount=1;this._scrollOffset=0;this._widgetCount=0;this._widgetSizers=[];this._windowingActive=true;this._widgetCount=(i=(n=(t=e.itemsList)===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:e.count)!==null&&i!==void 0?i:0;this._overscanCount=(s=e.overscanCount)!==null&&s!==void 0?s:1;this._windowingActive=(o=e.windowingActive)!==null&&o!==void 0?o:true;this.itemsList=(r=e.itemsList)!==null&&r!==void 0?r:null}get height(){return this._height}set height(e){this._height=e}get isDisposed(){return this._isDisposed}get itemsList(){return this._itemsList}set itemsList(e){var t,n,i;if(this._itemsList!==e){if(this._itemsList){this._itemsList.changed.disconnect(this.onListChanged,this)}const s=this._itemsList;this._itemsList=e;if(this._itemsList){this._itemsList.changed.connect(this.onListChanged,this)}else{this._widgetCount=0}this._stateChanged.emit({name:"list",newValue:this._itemsList,oldValue:s});this._stateChanged.emit({name:"count",newValue:(n=(t=this._itemsList)===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0,oldValue:(i=s===null||s===void 0?void 0:s.length)!==null&&i!==void 0?i:0})}}get overscanCount(){return this._overscanCount}set overscanCount(e){if(e>=1){if(this._overscanCount!==e){const t=this._overscanCount;this._overscanCount=e;this._stateChanged.emit({name:"overscanCount",newValue:e,oldValue:t})}}else{console.error(`Forbidden non-positive overscan count: got ${e}`)}}get scrollOffset(){return this._scrollOffset}set scrollOffset(e){this._scrollOffset=e}get widgetCount(){return this._itemsList?this._itemsList.length:this._widgetCount}set widgetCount(e){if(this.itemsList){console.error("It is not allow to change the widgets count of a windowed list if a items list is used.");return}if(e>=0){if(this._widgetCount!==e){const t=this._widgetCount;this._widgetCount=e;this._stateChanged.emit({name:"count",newValue:e,oldValue:t})}}else{console.error(`Forbidden negative widget count: got ${e}`)}}get windowingActive(){return this._windowingActive}set windowingActive(e){if(e!==this._windowingActive){const t=this._windowingActive;this._windowingActive=e;this._currentWindow=[-1,-1,-1,-1];this._measuredAllUntilIndex=-1;this._widgetSizers=[];this._stateChanged.emit({name:"windowingActive",newValue:e,oldValue:t})}}get stateChanged(){return this._stateChanged}dispose(){if(this.isDisposed){return}this._isDisposed=true;p.Signal.clearData(this)}getEstimatedTotalSize(){let e=0;if(this._measuredAllUntilIndex>=this.widgetCount){this._measuredAllUntilIndex=this.widgetCount-1}if(this._measuredAllUntilIndex>=0){const t=this._widgetSizers[this._measuredAllUntilIndex];e=t.offset+t.size}let t=0;for(let n=this._measuredAllUntilIndex+1;ng&&vg&&_f&&_=u-r&&p<=h+r;const n=v-g;const i=_-g;if(w||b&&n>=l||y&&ir){t="top-center"}else{t="center"}}}if(t==="auto"){if(w){return p}else if(s!==undefined){t=s}else if(b||v<=f){t="end"}else{t="start"}}switch(t){case"start":return Math.max(0,h-o*r)+m;case"end":return u+o*r+m;case"center":return u+(h-u)/2;case"top-center":return h-r/2}}getRangeToRender(e){if(e===null||e===void 0?void 0:e.virtual){return this._computeVirtualRange()}let t=[0,Math.max(this.widgetCount-1,-1),0,Math.max(this.widgetCount-1,-1)];const n=this._measuredAllUntilIndex;if(this.windowingActive){t=this._computeVirtualRange()}const[i,s]=t;if(n<=s||this._currentWindow[0]!==i||this._currentWindow[1]!==s){this._currentWindow=t;return t}return t!==null&&t!==void 0?t:null}getSpan(e,t){const n=this._getItemMetadata(e);const i=n.offset;const s=this._getItemMetadata(t);const o=s.offset-n.offset+s.size;return[i,o]}resetAfterIndex(e){const t=this._measuredAllUntilIndex;this._measuredAllUntilIndex=Math.min(e,this._measuredAllUntilIndex);for(const[n,i]of this._widgetSizers.entries()){if(n===0){continue}const e=this._widgetSizers[n-1];i.offset=e.offset+e.size}if(this._measuredAllUntilIndex!==t){this._stateChanged.emit({name:"index",newValue:e,oldValue:t})}}setWidgetSize(e){if(this._windowingActive||this._currentWindow[0]>=0){let t=Infinity;let n=-1;let i=0;let s=true;const o=new Map(e.map((e=>[e.index,e.size])));const r=Math.max(...o.keys());const a=[...this._widgetSizers.entries()];for(let e=this._widgetSizers.length;e<=r;e++){a.push([e,null])}for(let[e,l]of a){const r=o.get(e);let a=0;const d=!!l;if(!l){const t=this._widgetSizers[e-1];const n={offset:t?t.offset+t.size:0,size:r!==undefined?r:this.estimateWidgetSize(e),measured:r!==undefined};this._widgetSizers[e]=n;l=n}if(r!==undefined){if(l.size!=r){a=r-l.size;l.size=r;t=Math.min(t,e)}l.measured=true}if(s){if(l.measured){n=e}else{s=false}}if(d&&i!==0){l.offset+=i}i+=a}if(n!==-1){this._measuredAllUntilIndex=n}if(t!==Infinity){return true}}return false}onListChanged(e,t){switch(t.type){case"add":this._widgetSizers.splice(t.newIndex,0,...new Array(t.newValues.length).fill(undefined).map(((e,t)=>({offset:0,size:this.estimateWidgetSize(t)}))));this.resetAfterIndex(t.newIndex-1);break;case"move":Ts.ArrayExt.move(this._widgetSizers,t.oldIndex,t.newIndex);this.resetAfterIndex(Math.min(t.newIndex,t.oldIndex)-1);break;case"remove":this._widgetSizers.splice(t.oldIndex,t.oldValues.length);this.resetAfterIndex(t.oldIndex-1);break;case"set":this.resetAfterIndex(t.newIndex-1);break;case"clear":this._widgetSizers.length=0;this.resetAfterIndex(-1);break}}_getItemMetadata(e){var t;if(e>this._measuredAllUntilIndex){let n=0;if(this._measuredAllUntilIndex>=0){const e=this._widgetSizers[this._measuredAllUntilIndex];n=e.offset+e.size}for(let i=this._measuredAllUntilIndex+1;i<=e;i++){let e;let s=false;if((t=this._widgetSizers[i])===null||t===void 0?void 0:t.measured){e=this._widgetSizers[i].size;s=true}else{const t=this.widgetRenderer(i);if((t===null||t===void 0?void 0:t.node)&&t.node.isConnected){e=t.node.getBoundingClientRect().height;s=true}else{e=this.estimateWidgetSize(i);s=false}}this._widgetSizers[i]={offset:n,size:e,measured:s};n+=e}for(let t=e+1;t0?this._widgetSizers[this._measuredAllUntilIndex].offset:0;if(t>=e){return this._findNearestItemBinarySearch(this._measuredAllUntilIndex,0,e)}else{return this._findNearestItemExponentialSearch(Math.max(0,this._measuredAllUntilIndex),e)}}_findNearestItemBinarySearch(e,t,n){while(t<=e){const i=t+Math.floor((e-t)/2);const s=this._getItemMetadata(i).offset;if(s===n){return i}else if(sn){e=i-1}}if(t>0){return t-1}else{return 0}}_findNearestItemExponentialSearch(e,t){let n=1;while(ethis.update()),50);this._viewModel=e.model;this._viewport=c;if(e.scrollbar){s.classList.add("jp-mod-virtual-scrollbar")}this.viewModel.stateChanged.connect(this.onStateChanged,this)}get isParentHidden(){return this._isParentHidden}set isParentHidden(e){this._isParentHidden=e}get layout(){return super.layout}get outerNode(){return this._outerElement}get viewportNode(){return this._viewport}get scrollbar(){return this.node.classList.contains("jp-mod-virtual-scrollbar")}set scrollbar(e){if(e){this.node.classList.add("jp-mod-virtual-scrollbar")}else{this.node.classList.remove("jp-mod-virtual-scrollbar")}this._adjustDimensionsForScrollbar();this.update()}get viewModel(){return this._viewModel}dispose(){this._updater.dispose();super.dispose()}handleEvent(e){switch(e.type){case"pointerdown":this._evtPointerDown(e);e.stopPropagation();break;case"scrollend":this._onScrollEnd();break;case"scroll":this.onScroll(e);break}}scrollTo(e){this._renderScrollbar();if(!this.viewModel.windowingActive){this._outerElement.scrollTo({top:e});return}e=Math.max(0,e);if(e!==this.viewModel.scrollOffset){this.viewModel.scrollOffset=e;this._scrollUpdateWasRequested=true;this.update()}}scrollToItem(e,t="auto",n=.25,i){if(!this._isScrolling||this._scrollToItem===null||this._scrollToItem[0]!==e||this._scrollToItem[1]!==t){if(this._isScrolling){this._isScrolling.reject("Scrolling to a new item is requested.")}this._isScrolling=new g.PromiseDelegate;this._isScrolling.promise.catch(console.debug)}this._scrollToItem=[e,t,n,i];this._resetScrollToItem();let s=undefined;if(!this.viewModel.windowingActive){const t=this._innerElement.querySelector(`[data-windowed-list-index="${e}"]`);if(!t||!(t instanceof HTMLElement)){console.debug(`Element with index ${e} not found`);return Promise.resolve()}s={totalSize:this._outerElement.scrollHeight,itemMetadata:{offset:t.offsetTop,size:t.clientHeight},currentOffset:this._outerElement.scrollTop}}this.scrollTo(this.viewModel.getOffsetForIndexAndAlignment(Math.max(0,Math.min(e,this.viewModel.widgetCount-1)),t,n,s,i));return this._isScrolling.promise}onAfterAttach(e){super.onAfterAttach(e);if(this.viewModel.windowingActive){this._applyWindowingStyles()}else{this._applyNoWindowingStyles()}this._addListeners();this.viewModel.height=this.node.getBoundingClientRect().height;const t=window.getComputedStyle(this._viewport);this.viewModel.paddingTop=parseFloat(t.paddingTop);this._viewportPaddingTop=this.viewModel.paddingTop;this._viewportPaddingBottom=parseFloat(t.paddingBottom);this._scrollbarElement.addEventListener("pointerdown",this);this._outerElement.addEventListener("scrollend",this)}onBeforeDetach(e){this._removeListeners();this._scrollbarElement.removeEventListener("pointerdown",this);this._outerElement.removeEventListener("scrollend",this);super.onBeforeDetach(e)}onScroll(e){const{clientHeight:t,scrollHeight:n,scrollTop:i}=e.currentTarget;if(!this._scrollUpdateWasRequested&&Math.abs(this.viewModel.scrollOffset-i)>1){const e=Math.max(0,Math.min(i,n-t));this.viewModel.scrollOffset=e;this._renderScrollbar();if(this.viewModel.windowingActive){this._scrollUpdateWasRequested=false;if(this._viewport.dataset.isScrolling!="true"){this._viewport.dataset.isScrolling="true"}if(this._timerToClearScrollStatus){window.clearTimeout(this._timerToClearScrollStatus)}this._timerToClearScrollStatus=window.setTimeout((()=>{this._onScrollEnd()}),750);this.update()}}}onResize(e){const t=this.viewModel.height;this.viewModel.height=e.height>=0?e.height:this.node.getBoundingClientRect().height;if(this.viewModel.height!==t){void this._updater.invoke()}super.onResize(e);void this._updater.invoke()}onStateChanged(e,t){switch(t.name){case"windowingActive":this._removeListeners();if(this.viewModel.windowingActive){this._applyWindowingStyles();this.onScroll({currentTarget:this.node});this._addListeners();return}else{this._applyNoWindowingStyles();this._addListeners()}break;case"estimatedWidgetSize":this._updateTotalSize();return}this.update()}onUpdateRequest(e){if(this.viewModel.windowingActive){if(this._scrollRepaint===null){this._needsUpdate=false;this._scrollRepaint=window.requestAnimationFrame((()=>{this._scrollRepaint=null;this._update();if(this._needsUpdate){this.update()}}))}else{this._needsUpdate=true}}else{this._update()}}_adjustDimensionsForScrollbar(){const e=this._outerElement;const t=this._scrollbarElement;if(this.scrollbar){let n=e.offsetWidth-e.clientWidth;if(n==0){n=1e3;e.style.paddingRight=`${n}px`;e.style.boxSizing="border-box"}else{e.style.paddingRight="0"}e.style.width=`calc(100% + ${n}px)`;this._innerElement.style.marginRight=`${t.offsetWidth}px`}else{e.style.width="100%";this._innerElement.style.marginRight="";e.style.paddingRight="0";e.style.boxSizing=""}}_addListeners(){if(!this._scrollbarResizeObserver){this._scrollbarResizeObserver=new ResizeObserver(this._adjustDimensionsForScrollbar.bind(this));this._scrollbarResizeObserver.observe(this._outerElement);this._scrollbarResizeObserver.observe(this._scrollbarElement)}if(!this._itemsResizeObserver){this._itemsResizeObserver=new ResizeObserver(this._onItemResize.bind(this))}for(const e of this.layout.widgets){this._itemsResizeObserver.observe(e.node);e.disposed.connect((()=>{var t;return(t=this._itemsResizeObserver)===null||t===void 0?void 0:t.unobserve(e.node)}))}if(!this._areaResizeObserver){this._areaResizeObserver=new ResizeObserver(this._onAreaResize.bind(this));this._areaResizeObserver.observe(this._innerElement)}this._outerElement.addEventListener("scroll",this,xo)}_applyNoWindowingStyles(){this._viewport.style.position="relative";this._viewport.style.contain="";this._viewport.style.top="0px";this._viewport.style.minHeight="";this._innerElement.style.height=""}_applyWindowingStyles(){this._viewport.style.position="absolute";this._viewport.style.contain="layout"}_removeListeners(){var e,t,n;this._outerElement.removeEventListener("scroll",this);(e=this._areaResizeObserver)===null||e===void 0?void 0:e.disconnect();this._areaResizeObserver=null;(t=this._itemsResizeObserver)===null||t===void 0?void 0:t.disconnect();this._itemsResizeObserver=null;(n=this._scrollbarResizeObserver)===null||n===void 0?void 0:n.disconnect();this._scrollbarResizeObserver=null}_update(){var e;if(this.isDisposed||!this.layout){return}const t=this.viewModel.getRangeToRender();if(t!==null){const[n,i]=t;this._renderScrollbar();const s=[];if(i>=0){for(let e=n;e<=i;e++){const t=this.viewModel.widgetRenderer(e);t.dataset.windowedListIndex=`${e}`;s.push(t)}}const o=this.layout.widgets.length;for(let t=o-1;t>=0;t--){if(!s.includes(this.layout.widgets[t])){(e=this._itemsResizeObserver)===null||e===void 0?void 0:e.unobserve(this.layout.widgets[t].node);this.layout.removeWidget(this.layout.widgets[t])}}for(let e=0;e{var e;return(e=this._itemsResizeObserver)===null||e===void 0?void 0:e.unobserve(t.node)}))}this.layout.insertWidget(e,t)}if(this.viewModel.windowingActive){if(i>=0){this._updateTotalSize();let[e,t]=this.viewModel.getSpan(n,i);this._viewport.style.transform=`translateY(${e}px)`}else{this._innerElement.style.height=`0px`;this._viewport.style.top=`0px`;this._viewport.style.minHeight=`0px`}if(this._scrollUpdateWasRequested){this._outerElement.scrollTop=this.viewModel.scrollOffset;this._scrollUpdateWasRequested=false}}}let n=-1;for(const i of this._viewport.children){const e=parseInt(i.dataset.windowedListIndex,10);if(e{console.log(e)}))}_resetScrollToItem(){if(this._resetScrollToItemTimeout){clearTimeout(this._resetScrollToItemTimeout)}if(this._scrollToItem){this._resetScrollToItemTimeout=window.setTimeout((()=>{this._scrollToItem=null;if(this._isScrolling){this._isScrolling.resolve();this._isScrolling=null}}),Co)}}_renderScrollbar(){var e,t;if(!this.scrollbar){return[]}const{node:n,renderer:i,viewModel:s}=this;const o=n.querySelector(".jp-WindowedPanel-scrollbar-content");const r=[];const a=new Set;const l=(n,i)=>{if(n instanceof HTMLElement){return n}a.add(n.key);const s={index:i};const o=this._scrollbarItems[n.key];if(o&&!o.isDisposed){try{return o.render(s)}catch(e){return document.createElement("div")}}else{this._scrollbarItems[n.key]=n;try{return n.render(s)}catch(t){return document.createElement("div")}}};const d=s.itemsList;const c=(e=d===null||d===void 0?void 0:d.length)!==null&&e!==void 0?e:s.widgetCount;for(let p=0;p!a.has(e)));for(const p of h){this._scrollbarItems[p].dispose();delete this._scrollbarItems[p]}const u=[...o.childNodes];if(u.length!==r.length||!u.every(((e,t)=>r[t]===e))){o.replaceChildren(...r)}if(this.scrollbar){const e=this.viewModel.getRangeToRender({virtual:true});if(e!==null){const[t,n]=e;const i=r[t];const s=r[n];this._viewportIndicator.style.top=i.offsetTop-1+"px";this._viewportIndicator.style.height=s.offsetTop-i.offsetTop+s.offsetHeight+"px"}}return r}_evtPointerDown(e){let t=e.target;while(t&&t.parentElement){if(t.hasAttribute("data-index")){const e=parseInt(t.getAttribute("data-index"),10);return void(async()=>{await this.scrollToItem(e);this.jumped.emit(e)})()}t=t.parentElement}}_onScrollEnd(){if(this._timerToClearScrollStatus){window.clearTimeout(this._timerToClearScrollStatus)}this._viewport.dataset.isScrolling="false";if(this._requiresTotalSizeUpdate){this._updateTotalSize()}this._requiresTotalSizeUpdate=false}_updateTotalSize(){if(this.viewModel.windowingActive){if(this._viewport.dataset.isScrolling=="true"){this._requiresTotalSizeUpdate=true;return}const e=this.viewModel.getEstimatedTotalSize();const t=e+this._viewportPaddingTop+this._viewportPaddingBottom;this._innerElement.style.height=`${t}px`}}}jo.DEFAULT_WIDGET_SIZE=50;class ko extends m.PanelLayout{constructor(){super({fitPolicy:"set-no-constraint"})}get parent(){return super.parent}set parent(e){super.parent=e}attachWidget(e,t){let n=this.parent.viewportNode.children[e];if(this.parent.isAttached){Ns.MessageLoop.sendMessage(t,m.Widget.Msg.BeforeAttach)}this.parent.viewportNode.insertBefore(t.node,n);if(this.parent.isAttached){Ns.MessageLoop.sendMessage(t,m.Widget.Msg.AfterAttach)}}detachWidget(e,t){if(this.parent.isAttached){Ns.MessageLoop.sendMessage(t,m.Widget.Msg.BeforeDetach)}this.parent.viewportNode.removeChild(t.node);if(this.parent.isAttached){Ns.MessageLoop.sendMessage(t,m.Widget.Msg.AfterDetach)}}moveWidget(e,t,n){let i=this.parent.viewportNode.children[t];if(e{if(n.submenu){e.overrideDefaultRenderer(n.submenu)}return i(t,n)};for(const e of n._items){if(e.submenu){t(e.submenu)}}}e.overrideDefaultRenderer=t;class n extends m.Menu.Renderer{renderIcon(e){const t=this.createIconClass(e);if(e.item.isToggled){return Io.h.div({className:t},sn,e.item.iconLabel)}return Io.h.div({className:t},e.item.icon,e.item.iconLabel)}createIconClass(e){let t="lm-Menu-itemIcon";if(e.item.type==="separator"){return a(e.item.iconClass,t)}else{return a(w.styleClass({stylesheet:"menuItem"}),e.item.iconClass,t)}}renderSubmenu(e){const t="lm-Menu-itemSubmenuIcon";if(e.item.type==="submenu"){return Io.h.div({className:t},Mo)}else{return Io.h.div({className:t})}}}e.Renderer=n;e.defaultRenderer=new n})(Ao||(Ao={}));class Po extends m.TabBar{constructor(e={}){var t;super({renderer:Po.defaultRenderer,...e});const n=((t=Po.translator)!==null&&t!==void 0?t:ds.nullTranslator).load("jupyterlab");Ht.element({container:this.addButtonNode,title:n.__("New Launcher")})}}Po.translator=null;(function(e){class t extends m.TabBar.Renderer{renderCloseIcon(t){var n;const i=((n=e.translator)!==null&&n!==void 0?n:ds.nullTranslator).load("jupyterlab");const s=t.title.label?i.__("Close %1",t.title.label):i.__("Close tab");const o=a("jp-icon-hover lm-TabBar-tabCloseIcon",w.styleClass({elementPosition:"center",height:"16px",width:"16px"}));return(0,Io.hpass)("div",{className:o,title:s},cn)}}e.Renderer=t;e.defaultRenderer=new t})(Po||(Po={}));class Lo extends m.DockPanel{constructor(e={}){super({renderer:Lo.defaultRenderer,...e})}}(function(e){class t extends m.DockPanel.Renderer{createTabBar(){const e=new Po;e.addClass("lm-DockPanel-tabBar");return e}}e.Renderer=t;e.defaultRenderer=new t})(Lo||(Lo={}));class Ro extends m.TabPanel{constructor(e={}){e.renderer=e.renderer||Po.defaultRenderer;super(e)}}const No="jp-HoverBox";const Bo="-1000";var Oo;(function(e){function t(e){const{anchor:t,host:n,node:i,privilege:s,outOfViewDisplay:o}=e;const r=n.getBoundingClientRect();if(!i.classList.contains(No)){i.classList.add(No)}if(i.style.visibility){i.style.visibility=""}if(i.style.zIndex===""){i.style.zIndex=""}i.style.maxHeight="";i.style.marginTop="";const a=e.style||window.getComputedStyle(i);const l=t.top-r.top;const d=r.bottom-t.bottom;const c=parseInt(a.marginTop,10)||0;const h=parseInt(a.marginLeft,10)||0;const u=parseInt(a.minHeight,10)||e.minHeight;let p=parseInt(a.maxHeight,10)||e.maxHeight;const m=s==="forceAbove"?false:s==="forceBelow"?true:s==="above"?l=p||d>=l;if(m){p=Math.min(d-c,p)}else{p=Math.min(l,p);i.style.marginTop="0px"}i.style.maxHeight=`${p}px`;const g=p>=u&&(d>=u||l>=u);if(!g){i.style.zIndex=Bo;i.style.visibility="hidden";return}if(e.size){i.style.width=`${e.size.width}px`;i.style.height=`${e.size.height}px`;i.style.contain="strict"}else{i.style.contain="";i.style.width="auto";i.style.height=""}const f=e.size?e.size.height:i.getBoundingClientRect().height;const v=e.offset&&e.offset.vertical&&e.offset.vertical.above||0;const _=e.offset&&e.offset.vertical&&e.offset.vertical.below||0;let b=m?r.bottom-d+_:r.top+l-f+v;i.style.top=`${Math.floor(b)}px`;const y=e.offset&&e.offset.horizontal||0;let w=t.left+y;i.style.left=`${Math.ceil(w)}px`;let C=i.getBoundingClientRect();let x=C.right;if(x>window.innerWidth){w-=x-window.innerWidth;x=window.innerWidth;i.style.left=`${Math.ceil(w)}px`}if(wr.bottom;const B=w+hr.right;let F=false;let z=false;let W=false;if(R){switch((o===null||o===void 0?void 0:o.top)||"hidden-inside"){case"hidden-inside":if(!E){F=true}break;case"hidden-outside":if(!M){F=true}break;case"stick-inside":if(r.top>b){b=r.top;W=true}break;case"stick-outside":if(r.top>S){b=r.top-P;W=true}break}}if(N){switch((o===null||o===void 0?void 0:o.bottom)||"hidden-outside"){case"hidden-inside":if(!M){F=true}break;case"hidden-outside":if(!E){F=true}break;case"stick-inside":if(r.bottomw+h){w=r.left-h;z=true}break;case"stick-outside":if(r.left>x){w=r.left-h-L;z=true}break}}if(O){switch((o===null||o===void 0?void 0:o.right)||"hidden-outside"){case"hidden-inside":if(!A){F=true}break;case"hidden-outside":if(!D){F=true}break;case"stick-inside":if(r.right.'; got ${e}.`)}this._renderers[e]=t}get renderers(){return this._renderers}getRenderer(e){return this._renderers[e]}}},40662:(e,t,n)=>{"use strict";var i=n(10395);var s=n(85072);var o=n.n(s);var r=n(97825);var a=n.n(r);var l=n(77659);var d=n.n(l);var c=n(55056);var h=n.n(c);var u=n(10540);var p=n.n(u);var m=n(41113);var g=n.n(m);var f=n(28857);var v={};v.styleTagTransform=g();v.setAttributes=h();v.insert=d().bind(null,"head");v.domAPI=a();v.insertStyleElement=p();var _=o()(f.A,v);const b=f.A&&f.A.locals?f.A.locals:undefined},47872:(e,t,n)=>{"use strict";n.r(t);n.d(t,{RenderedVega:()=>u,VEGALITE3_MIME_TYPE:()=>d,VEGALITE4_MIME_TYPE:()=>c,VEGALITE5_MIME_TYPE:()=>h,VEGA_MIME_TYPE:()=>l,default:()=>g,rendererFactory:()=>p});var i=n(27518);var s=n.n(i);const o="jp-RenderedVegaCommon5";const r="jp-RenderedVega5";const a="jp-RenderedVegaLite";const l="application/vnd.vega.v5+json";const d="application/vnd.vegalite.v3+json";const c="application/vnd.vegalite.v4+json";const h="application/vnd.vegalite.v5+json";class u extends i.Widget{constructor(e){super();this._mimeType=e.mimeType;this._resolver=e.resolver;this.addClass(o);this.addClass(this._mimeType===l?r:a)}async renderModel(e){const t=e.data[this._mimeType];if(t===undefined){return}const n=e.metadata[this._mimeType];const i=n&&n.embed_options?n.embed_options:{};let s=document.body.dataset.jpThemeLight==="false";if(s){i.theme="dark"}const o=this._mimeType===l?"vega":"vega-lite";const r=f.vega!=null?f.vega:await f.ensureVega();const a=document.createElement("div");this.node.textContent="";this.node.appendChild(a);if(this._result){this._result.finalize()}const d=r.vega.loader({http:{credentials:"same-origin"}});const c=async(e,t)=>{const n=this._resolver;if((n===null||n===void 0?void 0:n.isLocal)&&n.isLocal(e)){const t=await n.resolveUrl(e);e=await n.getDownloadUrl(t)}return d.sanitize(e,t)};this._result=await r.default(a,t,{actions:true,defaultStyle:true,...i,mode:o,loader:{...d,sanitize:c}});if(e.data["image/png"]){return}const h=await this._result.view.toImageURL("png",typeof i.scaleFactor==="number"?i.scaleFactor:i.scaleFactor?i.scaleFactor.png:i.scaleFactor);e.setData({data:{...e.data,"image/png":h.split(",")[1]}})}dispose(){if(this._result){this._result.finalize()}super.dispose()}}const p={safe:true,mimeTypes:[l,d,c,h],createRenderer:e=>new u(e)};const m={id:"@jupyterlab/vega5-extension:factory",description:"Provides a renderer for Vega 5 and Vega-Lite 3 to 5 content.",rendererFactory:p,rank:57,dataType:"json",documentWidgetFactoryOptions:[{name:"Vega5",primaryFileType:"vega5",fileTypes:["vega5","json"],defaultFor:["vega5"]},{name:"Vega-Lite5",primaryFileType:"vega-lite5",fileTypes:["vega-lite3","vega-lite4","vega-lite5","json"],defaultFor:["vega-lite3","vega-lite4","vega-lite5"]}],fileTypes:[{mimeTypes:[l],name:"vega5",extensions:[".vg",".vg.json",".vega"],icon:"ui-components:vega"},{mimeTypes:[h],name:"vega-lite5",extensions:[".vl",".vl.json",".vegalite"],icon:"ui-components:vega"},{mimeTypes:[c],name:"vega-lite4",extensions:[],icon:"ui-components:vega"},{mimeTypes:[d],name:"vega-lite3",extensions:[],icon:"ui-components:vega"}]};const g=m;var f;(function(e){function t(){if(e.vegaReady){return e.vegaReady}e.vegaReady=n.e(908).then(n.t.bind(n,40908,23));return e.vegaReady}e.ensureVega=t})(f||(f={}))},54549:(e,t,n)=>{"use strict";var i=n(10395);var s=n(85072);var o=n.n(s);var r=n(97825);var a=n.n(r);var l=n(77659);var d=n.n(l);var c=n(55056);var h=n.n(c);var u=n(10540);var p=n.n(u);var m=n(41113);var g=n.n(m);var f=n(45512);var v={};v.styleTagTransform=g();v.setAttributes=h();v.insert=d().bind(null,"head");v.domAPI=a();v.insertStyleElement=p();var _=o()(f.A,v);const b=f.A&&f.A.locals?f.A.locals:undefined},32835:(e,t,n)=>{"use strict";n.r(t);n.d(t,{VideoDocumentWidget:()=>y,VideoViewer:()=>b,VideoViewerFactory:()=>w,default:()=>S});var i=n(88617);var s=n.n(i);var o=n(38850);var r=n.n(o);var a=n(93067);var l=n.n(a);var d=n(49278);var c=n.n(d);var h=n(34881);var u=n.n(h);var p=n(27518);var m=n.n(p);const g="jp-VideoViewer";const f="VideoViewer";const v="video-provider";function _(e){const t=[];for(const n of e.fileTypes()){if(n.mimeTypes.some((e=>e.startsWith("video/")))){t.push(n.name)}}return t}class b extends p.Widget{constructor(e){super();this.addClass(g);this._context=e.context;this._contentsManager=e.contentsManager;this._video=document.createElement("video");this._video.controls=true;this.node.appendChild(this._video);void this._context.ready.then((()=>{void this._updateVideo()}));this._context.model.contentChanged.connect(this._updateVideo,this)}dispose(){if(this.isDisposed){return}super.dispose()}onResize(e){super.onResize(e);if(this._video){this._video.style.width="100%";this._video.style.height="100%"}}async _updateVideo(){const e=await this._contentsManager.getDownloadUrl(this._context.path);this._video.src=e}}class y extends a.DocumentWidget{constructor(e){super(e)}}class w extends a.ABCWidgetFactory{constructor(e){super(e);this._contentsManager=e.contentsManager}createNewWidget(e){const t=new b({context:e,contentsManager:this._contentsManager});const n=new y({content:t,context:e});return n}}class C extends d.RestContentProvider{constructor(e){super(e)}async get(e,t){return super.get(e,{...t,content:false})}}const x={id:"@jupyterlab/video-extension:plugin",description:"Adds a viewer for video files",autoStart:true,requires:[h.ITranslator,d.IDefaultDrive],optional:[i.ILayoutRestorer],activate:(e,t,n,i)=>{const s=t.load("jupyterlab");const{contents:r,serverSettings:a}=e.serviceManager;const l=_(e.docRegistry);const d=n.contentProviderRegistry;if(d){const e=new C({apiEndpoint:"/api/contents",serverSettings:a});d.register(v,e)}const c=new o.WidgetTracker({namespace:"videoviewer"});const h=new w({name:f,label:s.__("Video Viewer"),fileTypes:l,defaultFor:l,readOnly:true,translator:t,modelName:"base64",contentProviderId:v,contentsManager:r});e.docRegistry.addWidgetFactory(h);h.widgetCreated.connect((async(t,n)=>{void c.add(n);n.context.pathChanged.connect((()=>{void c.save(n)}));const i=e.docRegistry.getFileTypesForPath(n.context.path);const s=i.find((e=>e.mimeTypes.some((e=>e.startsWith("video/")))));if(s){n.title.icon=s.icon;n.title.iconClass=s.iconClass||"";n.title.iconLabel=s.iconLabel||""}}));if(i){void i.restore(c,{command:"docmanager:open",args:e=>({path:e.context.path,factory:f}),name:e=>e.context.path})}}};const S=x},14920:(e,t,n)=>{"use strict";var i=n(10395);var s=n(97913);var o=n(79010);var r=n(3579);var a=n(85072);var l=n.n(a);var d=n(97825);var c=n.n(d);var h=n(77659);var u=n.n(h);var p=n(55056);var m=n.n(p);var g=n(10540);var f=n.n(g);var v=n(41113);var _=n.n(v);var b=n(45531);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.A,y);const C=b.A&&b.A.locals?b.A.locals:undefined},42864:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>D});var i=n(88617);var s=n(33641);var o=n(38850);var r=n(40959);var a=n(44577);var l=n(78629);var d=n(34881);var c;(function(e){e.open="workspace-ui:open";e.save="workspace-ui:save";e.saveAs="workspace-ui:save-as";e.createNew="workspace-ui:create-new";e.deleteWorkspace="workspace-ui:delete";e.clone="workspace-ui:clone";e.rename="workspace-ui:rename";e.reset="workspace-ui:reset";e.importWorkspace="workspace-ui:import";e.exportWorkspace="workspace-ui:export"})(c||(c={}));const h="jupyterlab-workspace";const u="."+h;const p="workspace-ui:lastSave";const m="jp-mod-workspace";const g={id:"@jupyterlab/workspaces-extension:commands",description:"Add workspace commands.",autoStart:true,requires:[s.IWorkspacesModel,a.IDefaultFileBrowser,o.IWindowResolver,l.IStateDB,d.ITranslator,i.JupyterFrontEnd.IPaths],provides:s.IWorkspaceCommands,optional:[i.IRouter,o.ICommandPalette],activate:(e,t,n,i,s,l,d,h,g)=>{const v=l.load("jupyterlab");const _=v.__("Naming the workspace will create a unique URL. The name may contain letters, numbers, hyphens (-), and underscores (_).");const b=r.URLExt.join(d.urls.app,"workspaces");const y=b+"/";const w="[a-zA-Z0-9\\-_]+";const C=async e=>o.InputDialog.getText({label:_,prefix:y,pattern:w,required:true,placeholder:v.__("workspace-name"),...e});const x=e=>e.classList.contains(m);e.commands.addCommand(c.open,{label:e=>{const t=e.workspace;return t?v.__("Open Workspace"):v.__("Open Workspace…")},execute:async e=>{let n=e.workspace;if(!n){const e=await o.InputDialog.getItem({title:v.__("Choose Workspace To Open"),label:v.__("Choose an existing workspace to open."),items:t.identifiers,okLabel:v.__("Choose"),prefix:y});if(!e.value||!e.button.accept){return}n=e.value}if(!n||!t.identifiers.includes(n)){return}const i=r.URLExt.join(b,n);if(!i.startsWith(b)){throw new Error("Can only be used for workspaces")}if(h){h.navigate(i,{hard:true})}else{document.location.href=i}},describedBy:{args:{type:"object",properties:{workspace:{type:"string",description:v.__("Workspace identifier to open")}}}}});e.commands.addCommand(c.deleteWorkspace,{label:v.__("Delete Workspace…"),execute:async n=>{var i;const s=e.contextMenuHitTest(x);let r=(i=n.workspace)!==null&&i!==void 0?i:s===null||s===void 0?void 0:s.dataset["context"];if(!r){const e=await o.InputDialog.getItem({title:v.__("Choose Workspace To Delete"),label:v.__("Choose an existing workspace to delete."),items:t.identifiers,okLabel:v.__("Choose")});if(!e.value||!e.button.accept){return}r=e.value}if(!r){return}const a=await(0,o.showDialog)({title:v.__("Delete workspace"),body:v.__('Deleting workspace "%1" will also delete its URL. A deleted workspace cannot be recovered.',r),buttons:[o.Dialog.cancelButton(),o.Dialog.warnButton({label:v.__("Delete")})],defaultButton:0});if(a.button.accept){await t.remove(r)}},describedBy:{args:{type:"object",properties:{workspace:{type:"string",description:v.__("Workspace identifier to delete")}}}}});e.commands.addCommand(c.createNew,{label:v.__("Create New Workspace…"),execute:async e=>{let n=e.workspace;if(!n){const e=await C({title:v.__("Create New Workspace"),okLabel:v.__("Create")});if(!e.value||!e.button.accept){return}n=e.value}if(!n){return}await t.create(n)},describedBy:{args:{type:"object",properties:{workspace:{type:"string",description:v.__("Workspace identifier for the new workspace")}}}}});e.commands.addCommand(c.clone,{label:v.__("Clone Workspace…"),execute:async n=>{var s;const r=e.contextMenuHitTest(x);let a=(s=n.workspace)!==null&&s!==void 0?s:r===null||r===void 0?void 0:r.dataset["context"];if(!a){const e=await o.InputDialog.getItem({title:v.__("Choose Workspace To Clone"),label:v.__("Choose an existing workspace to clone."),items:t.identifiers,okLabel:v.__("Choose")});if(!e.value||!e.button.accept){return}a=e.value}const l=await C({title:v.__("Clone Workspace"),text:v.__("%1-clone",a),okLabel:v.__("Clone")});if(!l.button.accept||!l.value){return}let d=l.value;await t.saveAs(a,d);if(a===i.name){return e.commands.execute(c.open,{workspace:d})}},describedBy:{args:{type:"object",properties:{workspace:{type:"string",description:v.__("Workspace identifier to clone")}}}}});e.commands.addCommand(c.rename,{label:v.__("Rename Workspace…"),execute:async n=>{var s,o;const r=e.contextMenuHitTest(x);const a=(o=(s=n.workspace)!==null&&s!==void 0?s:r===null||r===void 0?void 0:r.dataset["context"])!==null&&o!==void 0?o:i.name;const l=a;const d=await C({title:v.__("Rename Workspace"),text:l,okLabel:v.__("Rename")});if(!d.button.accept||!d.value){return}let h=d.value;await t.rename(a,h);if(a===i.name){return e.commands.execute(c.open,{workspace:h})}},describedBy:{args:{type:"object",properties:{workspace:{type:"string",description:v.__("Workspace identifier to rename")}}}}});e.commands.addCommand(c.reset,{label:v.__("Reset Workspace…"),execute:async n=>{var s,r,a,l,d,h;const u=e.contextMenuHitTest(x);const p=(r=(s=n.workspace)!==null&&s!==void 0?s:u===null||u===void 0?void 0:u.dataset["context"])!==null&&r!==void 0?r:i.name;const m=await e.serviceManager.workspaces.fetch(p);const g=(h=(d=(l=(a=m.data["layout-restorer:data"])===null||a===void 0?void 0:a.main)===null||l===void 0?void 0:l.dock)===null||d===void 0?void 0:d.widgets)===null||h===void 0?void 0:h.length;const f=await(0,o.showDialog)({title:v.__("Reset Workspace"),body:v._n("Resetting workspace %2 will close its %1 tab and return to default layout.","Resetting workspace %2 will close its %1 tabs and return to default layout.",g,p),buttons:[o.Dialog.cancelButton(),o.Dialog.warnButton({label:v.__("Reset")})],defaultButton:0});if(!f.button.accept){return}await t.reset(p);if(p===i.name){return e.commands.execute(c.open,{workspace:p})}else{await t.refresh()}},describedBy:{args:{type:"object",properties:{workspace:{type:"string",description:v.__("Workspace identifier to reset")}}}}});e.commands.addCommand(c.importWorkspace,{label:v.__("Import Workspace…"),execute:async()=>{const{contents:i}=e.serviceManager;const s=await a.FileDialog.getOpenFiles({manager:n.model.manager,title:v.__("Select Workspace Files to Import"),filter:e=>e.type==="directory"||e.path.endsWith(u)?{}:null,label:v.__('Choose one or more workspace files to import. A Jupyter workspace file has the extension "%1".',u),translator:l});if(s.button.accept&&s.value&&s.value.length>=1){for(const t of s.value){const n=await i.get(t.path,{content:true});const s=JSON.parse(n.content);await e.serviceManager.workspaces.save(s.metadata.id,s)}await t.refresh()}},describedBy:{args:{type:"object",properties:{}}}});e.commands.addCommand(c.exportWorkspace,{label:v.__("Export Workspace…"),execute:async r=>{var d,c;const{contents:h}=e.serviceManager;const p=e.contextMenuHitTest(x);let m=(c=(d=r.workspace)!==null&&d!==void 0?d:p===null||p===void 0?void 0:p.dataset["context"])!==null&&c!==void 0?c:i.name;if(!m){const e=await o.InputDialog.getItem({title:v.__("Choose Workspace To Export"),label:v.__("Choose an existing workspace to export."),items:t.identifiers,okLabel:v.__("Choose")});if(!e.value||!e.button.accept){return}m=e.value}const g=e.serviceManager.workspaces.fetch(m);const _=await a.FileDialog.getExistingDirectory({title:v.__("Choose Workspace Export Directory"),defaultPath:n.model.path,manager:n.model.manager,label:v.__('The "%1" workspace will be saved in the chosen directory as "%1%2".',m,u),translator:l});if(!_.button.accept||!_.value||_.value.length===0){return}if(_.value.length>1){console.warn("More than one directory was selected; the workspace will be exported to the first directory only")}const b=_.value[0].path+"/"+m+u;if(b){await f.save(b,h,g,s,false)}},describedBy:{args:{type:"object",properties:{workspace:{type:"string",description:v.__("Workspace identifier to export")}}}}});e.commands.addCommand(c.saveAs,{label:v.__("Save Current Workspace As…"),execute:async()=>{const{contents:t}=e.serviceManager;const o=e.serviceManager.workspaces.fetch(i.name);await f.saveAs(n,t,o,s,l)},describedBy:{args:{type:"object",properties:{}}}});e.commands.addCommand(c.save,{label:v.__("Save Current Workspace"),execute:async()=>{const{contents:t}=e.serviceManager;const o=e.serviceManager.workspaces.fetch(i.name);const r=await s.fetch(p);if(r===undefined){await f.saveAs(n,t,o,s,l)}else{await f.save(r,t,o,s)}},describedBy:{args:{type:"object",properties:{}}}});if(g){const e=v.__("Workspaces");const t=[c.open,c.save,c.saveAs,c.createNew,c.rename,c.clone,c.exportWorkspace,c.importWorkspace,c.reset,c.deleteWorkspace];for(const n of t){g.addItem({command:n,category:e})}}return{open:c.open,deleteWorkspace:c.deleteWorkspace}}};var f;(function(e){function t(e){let t=e.split("/").pop();if(t===undefined){return"unnamed-workspace"}if(t.endsWith(u)){t=t.slice(0,-u.length)}return t}e.createNameFromPath=t;async function n(e,n,i,s,o=true){const r=t(e);if(!e.endsWith(u)){e=e+u}if(o){await s.save(p,e)}const a=await i;a.metadata.id=`${r}`;await n.save(e,{type:"file",format:"text",content:JSON.stringify(a)})}e.save=n;async function i(e,t,i,o,r){var a;r=r||d.nullTranslator;const l=await o.fetch(p);let c;if(l===undefined){c="new-workspace"}else{c=(a=l.split("/").pop())===null||a===void 0?void 0:a.split(".")[0]}const h=e.model.path+"/"+c+u;const m=await s(h,r);if(m){await n(m,t,i,o)}}e.saveAs=i;async function s(e,t){t=t||d.nullTranslator;const n=t.load("jupyterlab");const i=await o.InputDialog.getText({title:n.__("Save Current Workspace As…"),text:e,placeholder:n.__("Path to save the workspace in"),okLabel:n.__("Save"),selectionRange:e.length-u.length});if(i.button.accept){return i.value}else{return null}}})(f||(f={}));var v=n(58719);var _=n(4073);const b={id:"@jupyterlab/workspaces-extension:sidebar",description:"Populates running sidebar with workspaces.",requires:[s.IWorkspaceCommands,s.IWorkspacesModel,v.IRunningSessionManagers,o.IWindowResolver],optional:[d.ITranslator],autoStart:true,activate:async(e,t,n,i,s,o)=>{const r=(o!==null&&o!==void 0?o:d.nullTranslator).load("jupyterlab");class a{constructor(e){this._workspace=e;this.context=e.metadata.id;this.className=m}open(){return e.commands.execute(t.open,{workspace:this._workspace.metadata.id})}async shutdown(){await e.commands.execute(t.deleteWorkspace,{workspace:this._workspace.metadata.id});await n.refresh()}icon(){return s.name===this._workspace.metadata.id?_.checkIcon:_.blankIcon}label(){return this._workspace.metadata.id}labelTitle(){var e,t,n,i;return r.__("%1 workspace with %2 tabs, last modified on %3",this._workspace.metadata.id,(i=(n=(t=(e=this._workspace.data["layout-restorer:data"])===null||e===void 0?void 0:e.main)===null||t===void 0?void 0:t.dock)===null||n===void 0?void 0:n.widgets)===null||i===void 0?void 0:i.length,this._workspace.metadata["last_modified"])}}i.add({name:r.__("Workspaces"),supportsMultipleViews:false,running:()=>n.workspaces.map((e=>new a(e))),shutdownAll:async()=>{await Promise.all(n.workspaces.map((e=>n.remove(e.metadata.id))));await n.refresh()},shutdownItemIcon:_.deleteIcon,refreshRunning:async()=>{await n.refresh()},runningChanged:n.refreshed,shutdownLabel:e=>r.__("Delete %1",e.label()),shutdownAllLabel:r.__("Delete All"),shutdownAllConfirmationText:r.__("Are you sure you want to delete all workspaces? Deleted workspaces cannot be recovered.")})}};var y=n(44914);var w=n.n(y);const C=({currentWorkspace:e,identifiers:t,openWorkspace:n,translator:i})=>{const[s,o]=(0,y.useState)(false);const[r,a]=(0,y.useState)("");const l=(0,y.useRef)(null);const d=(0,y.useId)();const c=i.load("jupyterlab");const h=t.filter((e=>e.toLowerCase().includes(r.toLowerCase())));(0,y.useEffect)((()=>{const e=e=>{if(l.current&&!l.current.contains(e.target)){o(false)}};document.addEventListener("mousedown",e);return()=>document.removeEventListener("mousedown",e)}),[]);return w().createElement("div",{className:"jp-WorkspaceSelector",ref:l},w().createElement("button",{className:"jp-WorkspaceSelector-header",onClick:()=>o(!s),"aria-expanded":s,"aria-controls":d},w().createElement("span",{className:"jp-WorkspaceSelector-current"},e.length>12?`${e.slice(0,12)}...`:e),w().createElement("span",{className:"jp-WorkspaceSelector-caret"},w().createElement(_.LabIcon.resolveReact,{icon:s?_.caretUpEmptyThinIcon:_.caretDownEmptyThinIcon}))),s&&w().createElement("div",{className:"jp-WorkspaceSelector-dropdown",id:d},w().createElement("div",{className:"jp-WorkspaceSelector-search"},w().createElement("div",{className:"jp-WorkspaceSelector-searchIcon"},w().createElement(_.LabIcon.resolveReact,{icon:_.searchIcon})),w().createElement("input",{type:"text",className:"jp-WorkspaceSelector-input",placeholder:c.__("Search workspace"),value:r,onChange:e=>a(e.target.value),autoFocus:true,"aria-autocomplete":"list",role:"combobox"})),w().createElement("ul",{className:"jp-WorkspaceSelector-list",role:"listbox","aria-label":c.__("Workspace")},h.map((t=>w().createElement("li",{key:t,className:"jp-WorkspaceSelector-item",onClick:()=>{if(t===e)return;n(t);o(false)}},w().createElement(_.LabIcon.resolveReact,{icon:t===e?_.checkIcon:_.blankIcon}),t.length>12?`${t.slice(0,12)}...`:t))))))};class x extends _.ReactWidget{constructor(e){super();this.id="jp-workspace-top-indicator";this._identifiers=e.identifiers;this._openWorkspace=e.openWorkspace;this._currentWorkspace=e.currentWorkspace;this._translator=e.translator;e.model.refreshed.connect((()=>{this._identifiers=e.model.identifiers;this.update()}))}render(){return w().createElement(C,{currentWorkspace:this._currentWorkspace,identifiers:this._identifiers,openWorkspace:this._openWorkspace,translator:this._translator})}}var S=n(40065);const j={id:"@jupyterlab/workspaces-extension:model",description:"Provides a model for available workspaces.",provides:s.IWorkspacesModel,autoStart:true,optional:[i.JupyterLab.IInfo],activate:(e,t)=>new s.WorkspacesModel({manager:e.serviceManager.workspaces,refreshStandby:()=>{if(t){return!t.isConnected||"when-hidden"}return"when-hidden"}})};const k={id:"@jupyterlab/workspaces-extension:menu",description:'Populates "File" main menu with Workspaces submenu.',requires:[s.IWorkspaceCommands],autoStart:true,activate:()=>{}};const I="@jupyterlab/workspaces-extension:indicator";const T="workspace-indicator:toggle";const E={id:I,description:"Adds a workspace indicator element at topbar",requires:[s.IWorkspacesModel,s.IWorkspaceCommands,o.IWindowResolver,d.ITranslator,S.ISettingRegistry,o.IToolbarWidgetRegistry],optional:[o.ICommandPalette],autoStart:true,activate:async(e,t,n,i,s,o,r,a)=>{const l=s.load("jupyterlab");const d=async t=>{await e.commands.execute(n.open,{workspace:t})};const c=new x({currentWorkspace:i.name,identifiers:t.identifiers,openWorkspace:d,model:t,translator:s});r.addFactory("TopBar","workspaceIndicator",(()=>c));e.commands.addCommand(T,{label:l.__("Show Workspace Indicator"),isToggled:()=>c.isVisible,execute:async()=>{const e=await o.get("@jupyterlab/application-extension:top-bar","toolbar");if(Array.isArray(e.composite)){const t=e.composite.map((e=>{if(e.name==="workspaceIndicator"){return{...e,disabled:!e.disabled}}return e}));await o.set("@jupyterlab/application-extension:top-bar","toolbar",t)}},describedBy:{args:{type:"object",properties:{}}}});if(a){const e=l.__("Workspaces");a.addItem({command:T,category:e})}}};const M=[j,g,b,k,E];const D=M},75591:(e,t,n)=>{"use strict";var i=n(40662);var s=n(97913);var o=n(3579);var r=n(39063);var a=n(94780);var l=n(85072);var d=n.n(l);var c=n(97825);var h=n.n(c);var u=n(77659);var p=n.n(u);var m=n(55056);var g=n.n(m);var f=n(10540);var v=n.n(f);var _=n(41113);var b=n.n(_);var y=n(52680);var w={};w.styleTagTransform=b();w.setAttributes=g();w.insert=p().bind(null,"head");w.domAPI=h();w.insertStyleElement=v();var C=d()(y.A,w);const x=y.A&&y.A.locals?y.A.locals:undefined},33352:(e,t,n)=>{"use strict";n.r(t);n.d(t,{IWorkspaceCommands:()=>l,IWorkspacesModel:()=>d,WorkspacesModel:()=>r});var i=n(26568);var s=n(2336);const o=1e4;class r{constructor(e){var t;this._refreshed=new s.Signal(this);this._isDisposed=false;this._workspaceData={ids:[],values:[]};this._manager=e.manager;const n=e.refreshInterval||o;this._poll=new i.Poll({auto:(t=e.auto)!==null&&t!==void 0?t:true,name:"@jupyterlab/workspaces:Model",factory:()=>this._fetchList(),frequency:{interval:n,backoff:true,max:300*1e3},standby:e.refreshStandby||"when-hidden"})}get workspaces(){return this._workspaceData.values}get identifiers(){return this._workspaceData.ids}async create(e){await this._manager.save(e,{metadata:{id:e},data:{}});await this.refresh()}get refreshed(){return this._refreshed}async refresh(){await this._poll.refresh();await this._poll.tick}async rename(e,t){const n=await this._manager.fetch(e);n.metadata.id=t;await this._manager.save(t,n);await this._manager.remove(e);await this.refresh()}async reset(e){const t=await this._manager.fetch(e);t.data={};await this._manager.save(e,t);await this.refresh()}async remove(e){await this._manager.remove(e);await this.refresh()}async saveAs(e,t){const n=await this._manager.fetch(e);n.metadata.id=t;await this._manager.save(t,n);await this.refresh()}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this._poll.dispose();s.Signal.clearData(this)}async _fetchList(){this._workspaceData=await this._manager.list();this._refreshed.emit(void 0)}}var a=n(5592);const l=new a.Token("@jupyterlab/workspaces:IWorkspaceCommands","Provides identifiers of workspace commands.");const d=new a.Token("@jupyterlab/workspaces:IWorkspacesModel","Provides a model for available workspaces.")},56588:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ArrayExt:()=>i,StringExt:()=>I,chain:()=>s,each:()=>g,empty:()=>o,enumerate:()=>r,every:()=>f,filter:()=>a,find:()=>l,findIndex:()=>d,map:()=>_,max:()=>h,min:()=>c,minmax:()=>u,once:()=>x,range:()=>b,reduce:()=>w,repeat:()=>C,retro:()=>S,some:()=>v,stride:()=>k,take:()=>T,toArray:()=>p,toObject:()=>m,topologicSort:()=>j,zip:()=>E});var i;(function(e){function t(e,t,n=0,i=-1){let s=e.length;if(s===0){return-1}if(n<0){n=Math.max(0,n+s)}else{n=Math.min(n,s-1)}if(i<0){i=Math.max(0,i+s)}else{i=Math.min(i,s-1)}let o;if(i0){let i=a>>1;let s=r+i;if(n(e[s],t)<0){r=s+1;a-=i+1}else{a=i}}return r}e.lowerBound=a;function l(e,t,n,i=0,s=-1){let o=e.length;if(o===0){return 0}if(i<0){i=Math.max(0,i+o)}else{i=Math.min(i,o-1)}if(s<0){s=Math.max(0,s+o)}else{s=Math.min(s,o-1)}let r=i;let a=s-i+1;while(a>0){let i=a>>1;let s=r+i;if(n(e[s],t)>0){a=i}else{r=s+1;a-=i+1}}return r}e.upperBound=l;function d(e,t,n){if(e===t){return true}if(e.length!==t.length){return false}for(let i=0,s=e.length;i=o){n=s<0?o-1:o}if(i===undefined){i=s<0?-1:o}else if(i<0){i=Math.max(i+o,s<0?-1:0)}else if(i>=o){i=s<0?o-1:o}let r;if(s<0&&i>=n||s>0&&n>=i){r=0}else if(s<0){r=Math.floor((i-n+1)/s+1)}else{r=Math.floor((i-n-1)/s+1)}let a=[];for(let l=0;l=i){return}let o=i-n+1;if(t>0){t=t%o}else if(t<0){t=(t%o+o)%o}if(t===0){return}let r=n+t;u(e,n,r-1);u(e,r,i);u(e,n,i)}e.rotate=p;function m(e,t,n=0,i=-1){let s=e.length;if(s===0){return}if(n<0){n=Math.max(0,n+s)}else{n=Math.min(n,s-1)}if(i<0){i=Math.max(0,i+s)}else{i=Math.min(i,s-1)}let o;if(it;--s){e[s]=e[s-1]}e[t]=n}e.insert=g;function f(e,t){let n=e.length;if(t<0){t+=n}if(t<0||t>=n){return undefined}let i=e[t];for(let s=t+1;s=n&&r<=i&&e[r]===t){o++}else if(i=n)&&e[r]===t){o++}else if(o>0){e[r-o]=e[r]}}if(o>0){e.length=s-o}return o}e.removeAllOf=b;function y(e,t,n=0,s=-1){let o;let r=i(e,t,n,s);if(r!==-1){o=f(e,r)}return{index:r,value:o}}e.removeFirstWhere=y;function w(e,t,n=-1,i=0){let o;let r=s(e,t,n,i);if(r!==-1){o=f(e,r)}return{index:r,value:o}}e.removeLastWhere=w;function C(e,t,n=0,i=-1){let s=e.length;if(s===0){return 0}if(n<0){n=Math.max(0,n+s)}else{n=Math.min(n,s-1)}if(i<0){i=Math.max(0,i+s)}else{i=Math.min(i,s-1)}let o=0;for(let r=0;r=n&&r<=i&&t(e[r],r)){o++}else if(i=n)&&t(e[r],r)){o++}else if(o>0){e[r-o]=e[r]}}if(o>0){e.length=s-o}return o}e.removeAllWhere=C})(i||(i={}));function*s(...e){for(const t of e){yield*t}}function*o(){return}function*r(e,t=0){for(const n of e){yield[t++,n]}}function*a(e,t){let n=0;for(const i of e){if(t(i,n++)){yield i}}}function l(e,t){let n=0;for(const i of e){if(t(i,n++)){return i}}return undefined}function d(e,t){let n=0;for(const i of e){if(t(i,n++)){return n-1}}return-1}function c(e,t){let n=undefined;for(const i of e){if(n===undefined){n=i;continue}if(t(i,n)<0){n=i}}return n}function h(e,t){let n=undefined;for(const i of e){if(n===undefined){n=i;continue}if(t(i,n)>0){n=i}}return n}function u(e,t){let n=true;let i;let s;for(const o of e){if(n){i=o;s=o;n=false}else if(t(o,i)<0){i=o}else if(t(o,s)>0){s=o}}return n?undefined:[i,s]}function p(e){return Array.from(e)}function m(e){const t={};for(const[n,i]of e){t[n]=i}return t}function g(e,t){let n=0;for(const i of e){if(false===t(i,n++)){return}}}function f(e,t){let n=0;for(const i of e){if(false===t(i,n++)){return false}}return true}function v(e,t){let n=0;for(const i of e){if(t(i,n++)){return true}}return false}function*_(e,t){let n=0;for(const i of e){yield t(i,n++)}}function*b(e,t,n){if(t===undefined){t=e;e=0;n=1}else if(n===undefined){n=1}const i=y.rangeLength(e,t,n);for(let s=0;st&&n>0){return 0}if(e-1;t--){yield e[t]}}}function j(e){let t=[];let n=new Set;let i=new Map;for(const r of e){s(r)}for(const[r]of i){o(r)}return t;function s(e){let[t,n]=e;let s=i.get(n);if(s){s.push(t)}else{i.set(n,[t])}}function o(e){if(n.has(e)){return}n.add(e);let s=i.get(e);if(s){for(const e of s){o(e)}}t.push(e)}}function*k(e,t){let n=0;for(const i of e){if(0===n++%t){yield i}}}var I;(function(e){function t(e,t,n=0){let i=new Array(t.length);for(let s=0,o=n,r=t.length;st?1:0}e.cmp=o})(I||(I={}));function*T(e,t){if(t<1){return}const n=e[Symbol.iterator]();let i;while(0e[Symbol.iterator]()));let n=t.map((e=>e.next()));for(;f(n,(e=>!e.done));n=t.map((e=>e.next()))){yield n.map((e=>e.value))}}},86397:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Application:()=>d});var i=n(93247);var s=n.n(i);var o=n(5592);var r=n.n(o);var a=n(27518);var l=n.n(a);class d{constructor(e){var t;this._delegate=new o.PromiseDelegate;this._started=false;this._bubblingKeydown=false;this.pluginRegistry=(t=e.pluginRegistry)!==null&&t!==void 0?t:new o.PluginRegistry(e);this.pluginRegistry.application=this;this.commands=new i.CommandRegistry;this.contextMenu=new a.ContextMenu({commands:this.commands,renderer:e.contextMenuRenderer});this.shell=e.shell}get deferredPlugins(){return this.pluginRegistry.deferredPlugins}get started(){return this._delegate.promise}async activateDeferredPlugins(){await this.pluginRegistry.activatePlugins("defer")}async activatePlugin(e){return this.pluginRegistry.activatePlugin(e)}async deactivatePlugin(e){return this.pluginRegistry.deactivatePlugin(e)}deregisterPlugin(e,t){this.pluginRegistry.deregisterPlugin(e,t)}getPluginDescription(e){return this.pluginRegistry.getPluginDescription(e)}hasPlugin(e){return this.pluginRegistry.hasPlugin(e)}isPluginActivated(e){return this.pluginRegistry.isPluginActivated(e)}listPlugins(){return this.pluginRegistry.listPlugins()}registerPlugin(e){this.pluginRegistry.registerPlugin(e)}registerPlugins(e){this.pluginRegistry.registerPlugins(e)}async resolveOptionalService(e){return this.pluginRegistry.resolveOptionalService(e)}async resolveRequiredService(e){return this.pluginRegistry.resolveRequiredService(e)}async start(e={}){var t,n;if(this._started){return this._delegate.promise}this._started=true;this._bubblingKeydown=(t=e.bubblingKeydown)!==null&&t!==void 0?t:false;const i=(n=e.hostID)!==null&&n!==void 0?n:"";await this.pluginRegistry.activatePlugins("startUp",e);this.attachShell(i);this.addEventListeners();this._delegate.resolve()}handleEvent(e){switch(e.type){case"resize":this.evtResize(e);break;case"keydown":this.evtKeydown(e);break;case"keyup":this.evtKeyup(e);break;case"contextmenu":this.evtContextMenu(e);break}}attachShell(e){a.Widget.attach(this.shell,e&&document.getElementById(e)||document.body)}addEventListeners(){document.addEventListener("contextmenu",this);document.addEventListener("keydown",this,!this._bubblingKeydown);document.addEventListener("keyup",this,!this._bubblingKeydown);window.addEventListener("resize",this)}evtKeydown(e){this.commands.processKeydownEvent(e)}evtKeyup(e){this.commands.processKeyupEvent(e)}evtContextMenu(e){if(e.shiftKey){return}if(this.contextMenu.open(e)){e.preventDefault();e.stopPropagation()}}evtResize(e){this.shell.update()}}},893:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CommandRegistry:()=>g});var i=n(34236);var s=n.n(i);var o=n(5592);var r=n.n(o);var a=n(90044);var l=n.n(a);var d=n(76326);var c=n.n(d);var h=n(77162);var u=n.n(h);var p=n(2336);var m=n.n(p);class g{constructor(){this._timerID=0;this._timerModifierID=0;this._replaying=false;this._keystrokes=[];this._keydownEvents=[];this._keyBindings=[];this._exactKeyMatch=null;this._commands=new Map;this._commandChanged=new p.Signal(this);this._commandExecuted=new p.Signal(this);this._keyBindingChanged=new p.Signal(this);this._holdKeyBindingPromises=new Map}get commandChanged(){return this._commandChanged}get commandExecuted(){return this._commandExecuted}get keyBindingChanged(){return this._keyBindingChanged}get keyBindings(){return this._keyBindings}listCommands(){return Array.from(this._commands.keys())}hasCommand(e){return this._commands.has(e)}addCommand(e,t){if(this._commands.has(e)){throw new Error(`Command '${e}' already registered.`)}this._commands.set(e,f.createCommand(t));this._commandChanged.emit({id:e,type:"added"});return new a.DisposableDelegate((()=>{this._commands.delete(e);this._commandChanged.emit({id:e,type:"removed"})}))}notifyCommandChanged(e){if(e!==undefined&&!this._commands.has(e)){throw new Error(`Command '${e}' is not registered.`)}this._commandChanged.emit({id:e,type:e?"changed":"many-changed"})}describedBy(e,t=o.JSONExt.emptyObject){var n;let i=this._commands.get(e);return Promise.resolve((n=i===null||i===void 0?void 0:i.describedBy.call(undefined,t))!==null&&n!==void 0?n:{args:null})}label(e,t=o.JSONExt.emptyObject){var n;let i=this._commands.get(e);return(n=i===null||i===void 0?void 0:i.label.call(undefined,t))!==null&&n!==void 0?n:""}mnemonic(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.mnemonic.call(undefined,t):-1}icon(e,t=o.JSONExt.emptyObject){var n;return(n=this._commands.get(e))===null||n===void 0?void 0:n.icon.call(undefined,t)}iconClass(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.iconClass.call(undefined,t):""}iconLabel(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.iconLabel.call(undefined,t):""}caption(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.caption.call(undefined,t):""}usage(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.usage.call(undefined,t):""}className(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.className.call(undefined,t):""}dataset(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.dataset.call(undefined,t):{}}isEnabled(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.isEnabled.call(undefined,t):false}isToggled(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.isToggled.call(undefined,t):false}isToggleable(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.isToggleable:false}isVisible(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.isVisible.call(undefined,t):false}execute(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);if(!n){return Promise.reject(new Error(`Command '${e}' not registered.`))}let i;try{i=n.execute.call(undefined,t)}catch(r){i=Promise.reject(r)}let s=Promise.resolve(i);this._commandExecuted.emit({id:e,args:t,result:s});return s}addKeyBinding(e){let t=f.createKeyBinding(e);this._keyBindings.push(t);this._keyBindingChanged.emit({binding:t,type:"added"});return new a.DisposableDelegate((()=>{i.ArrayExt.removeFirstOf(this._keyBindings,t);this._keyBindingChanged.emit({binding:t,type:"removed"})}))}processKeydownEvent(e){if(e.defaultPrevented||this._replaying){return}const t=g.keystrokeForKeydownEvent(e);if(!t){this._replayKeydownEvents();this._clearPendingState();return}if(g.isModifierKeyPressed(e)){let{exact:n}=f.matchKeyBinding(this._keyBindings,[t],e);if(n){e.preventDefault();e.stopPropagation();this._startModifierTimer(n)}else{this._clearModifierTimer()}return}this._keystrokes.push(t);const{exact:n,partial:i}=f.matchKeyBinding(this._keyBindings,this._keystrokes,e);const s=i.length!==0;if(!n&&!s){this._replayKeydownEvents();this._clearPendingState();return}if((n===null||n===void 0?void 0:n.preventDefault)||i.some((e=>e.preventDefault))){e.preventDefault();e.stopPropagation()}this._keydownEvents.push(e);if(n&&!s){this._executeKeyBinding(n);this._clearPendingState();return}if(n){this._exactKeyMatch=n}this._startTimer()}holdKeyBindingExecution(e,t){this._holdKeyBindingPromises.set(e,t)}processKeyupEvent(e){this._clearModifierTimer()}_startModifierTimer(e){this._clearModifierTimer();this._timerModifierID=window.setTimeout((()=>{this._executeKeyBinding(e)}),f.modifierkeyTimeOut)}_clearModifierTimer(){if(this._timerModifierID!==0){clearTimeout(this._timerModifierID);this._timerModifierID=0}}_startTimer(){this._clearTimer();this._timerID=window.setTimeout((()=>{this._onPendingTimeout()}),f.CHORD_TIMEOUT)}_clearTimer(){if(this._timerID!==0){clearTimeout(this._timerID);this._timerID=0}}_replayKeydownEvents(){if(this._keydownEvents.length===0){return}this._replaying=true;this._keydownEvents.forEach(f.replayKeyEvent);this._replaying=false}async _executeKeyBinding(e){if(this._holdKeyBindingPromises.size!==0){const e=[...this._keydownEvents];const t=(await Promise.race([Promise.all(e.map((async e=>{var t;return(t=this._holdKeyBindingPromises.get(e))!==null&&t!==void 0?t:Promise.resolve(true)}))),new Promise((e=>{setTimeout((()=>e([false])),f.KEYBINDING_HOLD_TIMEOUT)}))])).every(Boolean);this._holdKeyBindingPromises.clear();if(!t){return}}let{command:t,args:n}=e;let i={_luminoEvent:{type:"keybinding",keys:e.keys},...n};if(!this.hasCommand(t)||!this.isEnabled(t,i)){let n=this.hasCommand(t)?"enabled":"registered";let i=e.keys.join(", ");let s=`Cannot execute key binding '${i}':`;let o=`command '${t}' is not ${n}.`;console.warn(`${s} ${o}`);return}await this.execute(t,i)}_clearPendingState(){this._clearTimer();this._clearModifierTimer();this._exactKeyMatch=null;this._keystrokes.length=0;this._keydownEvents.length=0}_onPendingTimeout(){this._timerID=0;if(this._exactKeyMatch){this._executeKeyBinding(this._exactKeyMatch)}else{this._replayKeydownEvents()}this._clearPendingState()}}(function(e){function t(e){let t="";let n=false;let i=false;let s=false;let o=false;for(let r of e.split(/\s+/)){if(r==="Accel"){if(d.Platform.IS_MAC){i=true}else{s=true}}else if(r==="Alt"){n=true}else if(r==="Cmd"){i=true}else if(r==="Ctrl"){s=true}else if(r==="Shift"){o=true}else if(r.length>0){t=r}}return{cmd:i,ctrl:s,alt:n,shift:o,key:t}}e.parseKeystroke=t;function n(e){let n="";let i=t(e);if(i.ctrl){n+="Ctrl "}if(i.alt){n+="Alt "}if(i.shift){n+="Shift "}if(i.cmd&&d.Platform.IS_MAC){n+="Cmd "}if(!i.key){return n.trim()}return n+i.key}e.normalizeKeystroke=n;function i(e){let t;if(d.Platform.IS_WIN){t=e.winKeys||e.keys}else if(d.Platform.IS_MAC){t=e.macKeys||e.keys}else{t=e.linuxKeys||e.keys}return t.map(n)}e.normalizeKeys=i;function s(e){return typeof e==="string"?n(e):e.map(n).join(", ");function n(e){let n=[];let i=d.Platform.IS_MAC?" ":"+";let s=t(e);if(s.ctrl){n.push("Ctrl")}if(s.alt){n.push("Alt")}if(s.shift){n.push("Shift")}if(d.Platform.IS_MAC&&s.cmd){n.push("Cmd")}n.push(s.key);return n.map(f.formatKey).join(i)}}e.formatKeystroke=s;function o(e){let t=(0,h.getKeyboardLayout)();let n=t.keyForKeydownEvent(e);return t.isModifierKey(n)}e.isModifierKeyPressed=o;function r(e){let t=(0,h.getKeyboardLayout)();let n=t.keyForKeydownEvent(e);let i=[];if(e.ctrlKey){i.push("Ctrl")}if(e.altKey){i.push("Alt")}if(e.shiftKey){i.push("Shift")}if(e.metaKey&&d.Platform.IS_MAC){i.push("Cmd")}if(!t.isModifierKey(n)){i.push(n)}return i.join(" ")}e.keystrokeForKeydownEvent=r})(g||(g={}));var f;(function(e){e.CHORD_TIMEOUT=1e3;e.KEYBINDING_HOLD_TIMEOUT=1e3;e.modifierkeyTimeOut=500;function t(e){return{execute:e.execute,describedBy:v(typeof e.describedBy==="function"?e.describedBy:{args:null,...e.describedBy},(()=>({args:null}))),label:v(e.label,c),mnemonic:v(e.mnemonic,h),icon:v(e.icon,f),iconClass:v(e.iconClass,c),iconLabel:v(e.iconLabel,c),caption:v(e.caption,c),usage:v(e.usage,c),className:v(e.className,c),dataset:v(e.dataset,m),isEnabled:e.isEnabled||u,isToggled:e.isToggled||p,isToggleable:e.isToggleable||!!e.isToggled,isVisible:e.isVisible||u}}e.createCommand=t;function n(e){var t;return{keys:g.normalizeKeys(e),selector:_(e),command:e.command,args:e.args||o.JSONExt.emptyObject,preventDefault:(t=e.preventDefault)!==null&&t!==void 0?t:true}}e.createKeyBinding=n;function i(e,t,n){let i=null;let s=[];let o=Infinity;let r=0;for(let a=0,l=e.length;ao){continue}let u=d.Selector.calculateSpecificity(l.selector);if(!i||h=r){i=l;o=h;r=u}}return{exact:i,partial:s}}e.matchKeyBinding=i;function s(e){e.target.dispatchEvent(w(e))}e.replayKeyEvent=s;function r(e){if(d.Platform.IS_MAC){return a.hasOwnProperty(e)?a[e]:e}else{return l.hasOwnProperty(e)?l[e]:e}}e.formatKey=r;const a={Backspace:"⌫",Tab:"⇥",Enter:"⏎",Shift:"⇧",Ctrl:"⌃",Alt:"⌥",Escape:"⎋",PageUp:"⇞",PageDown:"⇟",End:"↘",Home:"↖",ArrowLeft:"←",ArrowUp:"↑",ArrowRight:"→",ArrowDown:"↓",Delete:"⌦",Cmd:"⌘"};const l={Escape:"Esc",PageUp:"Page Up",PageDown:"Page Down",ArrowLeft:"Left",ArrowUp:"Up",ArrowRight:"Right",ArrowDown:"Down",Delete:"Del"};const c=()=>"";const h=()=>-1;const u=()=>true;const p=()=>false;const m=()=>({});const f=()=>undefined;function v(e,t){if(e===undefined){return t}if(typeof e==="function"){return e}return()=>e}function _(e){if(e.selector.indexOf(",")!==-1){throw new Error(`Selector cannot contain commas: ${e.selector}`)}if(!d.Selector.isValid(e.selector)){throw new Error(`Invalid selector: ${e.selector}`)}return e.selector}function b(e,t){if(e.lengtht.length){return 2}return 1}function y(e,t){let n=t.target;let i=t.currentTarget;for(let s=0;n!==null;n=n.parentElement,++s){if(n.hasAttribute("data-lm-suppress-shortcuts")){return-1}if(d.Selector.matches(n,e)){return s}if(n===i){return-1}}return-1}function w(e){let t=document.createEvent("Event");let n=e.bubbles||true;let i=e.cancelable||true;t.initEvent(e.type||"keydown",n,i);t.key=e.key||"";t.keyCode=e.keyCode||0;t.which=e.keyCode||0;t.ctrlKey=e.ctrlKey||false;t.altKey=e.altKey||false;t.shiftKey=e.shiftKey||false;t.metaKey=e.metaKey||false;t.view=e.view||window;return t}})(f||(f={}))},45899:function(e,t,n){(function(e,i){true?i(t,n(34236)):0})(this,(function(e,t){"use strict";e.JSONExt=void 0;(function(e){e.emptyObject=Object.freeze({});e.emptyArray=Object.freeze([]);function t(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"}e.isPrimitive=t;function n(e){return Array.isArray(e)}e.isArray=n;function i(e){return!t(e)&&!n(e)}e.isObject=i;function s(e,i){if(e===i){return true}if(t(e)||t(i)){return false}let s=n(e);let o=n(i);if(s!==o){return false}if(s&&o){return r(e,i)}return a(e,i)}e.deepEqual=s;function o(e){if(t(e)){return e}if(n(e)){return l(e)}return d(e)}e.deepCopy=o;function r(e,t){if(e===t){return true}if(e.length!==t.length){return false}for(let n=0,i=e.length;ntrue;this._plugins=new Map;this._services=new Map;if(e.validatePlugin){console.info("Plugins may be rejected by the custom validation plugin method.");this._validatePlugin=e.validatePlugin}}get application(){return this._application}set application(e){if(this._application!==null){throw Error("PluginRegistry.application is already set. It cannot be overridden.")}this._application=e}get deferredPlugins(){return Array.from(this._plugins).filter((([e,t])=>t.autoStart==="defer")).map((([e,t])=>e))}getPluginDescription(e){var t,n;return(n=(t=this._plugins.get(e))===null||t===void 0?void 0:t.description)!==null&&n!==void 0?n:""}hasPlugin(e){return this._plugins.has(e)}isPluginActivated(e){var t,n;return(n=(t=this._plugins.get(e))===null||t===void 0?void 0:t.activated)!==null&&n!==void 0?n:false}listPlugins(){return Array.from(this._plugins.keys())}registerPlugin(e){if(this._plugins.has(e.id)){throw new TypeError(`Plugin '${e.id}' is already registered.`)}if(!this._validatePlugin(e)){throw new Error(`Plugin '${e.id}' is not valid.`)}const t=s.createPluginData(e);s.ensureNoCycle(t,this._plugins,this._services);if(t.provides){this._services.set(t.provides,t.id)}this._plugins.set(t.id,t)}registerPlugins(e){for(const t of e){this.registerPlugin(t)}}deregisterPlugin(e,t){const n=this._plugins.get(e);if(!n){return}if(n.activated&&!t){throw new Error(`Plugin '${e}' is still active.`)}this._plugins.delete(e)}async activatePlugin(e){const t=this._plugins.get(e);if(!t){throw new ReferenceError(`Plugin '${e}' is not registered.`)}if(t.activated){return}if(t.promise){return t.promise}const n=t.requires.map((e=>this.resolveRequiredService(e)));const i=t.optional.map((e=>this.resolveOptionalService(e)));t.promise=Promise.all([...n,...i]).then((e=>t.activate.apply(undefined,[this.application,...e]))).then((e=>{t.service=e;t.activated=true;t.promise=null})).catch((e=>{t.promise=null;throw e}));return t.promise}async activatePlugins(e,t={}){switch(e){case"defer":{const e=this.deferredPlugins.filter((e=>this._plugins.get(e).autoStart)).map((e=>this.activatePlugin(e)));await Promise.all(e);break}case"startUp":{const e=s.collectStartupPlugins(this._plugins,t);const n=e.map((async e=>{try{return await this.activatePlugin(e)}catch(t){console.error(`Plugin '${e}' failed to activate.`,t)}}));await Promise.all(n);break}}}async deactivatePlugin(e){const t=this._plugins.get(e);if(!t){throw new ReferenceError(`Plugin '${e}' is not registered.`)}if(!t.activated){return[]}if(!t.deactivate){throw new TypeError(`Plugin '${e}'#deactivate() method missing`)}const n=s.findDependents(e,this._plugins,this._services);const i=n.map((e=>this._plugins.get(e)));for(const s of i){if(!s.deactivate){throw new TypeError(`Plugin ${s.id}#deactivate() method missing (depends on ${e})`)}}for(const s of i){const e=[...s.requires,...s.optional].map((e=>{const t=this._services.get(e);return t?this._plugins.get(t).service:null}));await s.deactivate(this.application,...e);s.service=null;s.activated=false}n.pop();return n}async resolveRequiredService(e){const t=this._services.get(e);if(!t){throw new TypeError(`No provider for: ${e.name}.`)}const n=this._plugins.get(t);if(!n.activated){await this.activatePlugin(t)}return n.service}async resolveOptionalService(e){const t=this._services.get(e);if(!t){return null}const n=this._plugins.get(t);if(!n.activated){try{await this.activatePlugin(t)}catch(i){console.error(i);return null}}return n.service}}var s;(function(e){class n{constructor(e){var t,n,i,s;this._activated=false;this._promise=null;this._service=null;this.id=e.id;this.description=(t=e.description)!==null&&t!==void 0?t:"";this.activate=e.activate;this.deactivate=(n=e.deactivate)!==null&&n!==void 0?n:null;this.provides=(i=e.provides)!==null&&i!==void 0?i:null;this.autoStart=(s=e.autoStart)!==null&&s!==void 0?s:false;this.requires=e.requires?e.requires.slice():[];this.optional=e.optional?e.optional.slice():[]}get activated(){return this._activated}set activated(e){this._activated=e}get service(){return this._service}set service(e){this._service=e}get promise(){return this._promise}set promise(e){this._promise=e}}function i(e){return new n(e)}e.createPluginData=i;function s(e,t,n){const i=[...e.requires,...e.optional];const s=i=>{if(i===e.provides){return true}const r=n.get(i);if(!r){return false}const a=t.get(r);const l=[...a.requires,...a.optional];if(l.length===0){return false}o.push(r);if(l.some(s)){return true}o.pop();return false};if(!e.provides||i.length===0){return}const o=[e.id];if(i.some(s)){throw new ReferenceError(`Cycle detected: ${o.join(" -> ")}.`)}}e.ensureNoCycle=s;function o(e,n,i){const s=new Array;const o=e=>{const t=n.get(e);const o=[...t.requires,...t.optional];s.push(...o.reduce(((t,n)=>{const s=i.get(n);if(s){t.push([e,s])}return t}),[]))};for(const t of n.keys()){o(t)}const r=s.filter((t=>t[1]===e));let a=0;while(r.length>a){const e=r.length;const t=new Set(r.map((e=>e[0])));for(const n of t){s.filter((e=>e[1]===n)).forEach((e=>{if(!r.includes(e)){r.push(e)}}))}a=e}const l=t.topologicSort(r);const d=l.findIndex((t=>t===e));if(d===-1){return[e]}return l.slice(0,d+1)}e.findDependents=o;function r(e,t){const n=new Set;for(const i of e.keys()){if(e.get(i).autoStart===true){n.add(i)}}if(t.startPlugins){for(const e of t.startPlugins){n.add(e)}}if(t.ignorePlugins){for(const e of t.ignorePlugins){n.delete(e)}}return Array.from(n)}e.collectStartupPlugins=r})(s||(s={}));class o{constructor(){this.promise=new Promise(((e,t)=>{this._resolve=e;this._reject=t}))}resolve(e){let t=this._resolve;t(e)}reject(e){let t=this._reject;t(e)}}class r{constructor(e,t){this.name=e;this.description=t!==null&&t!==void 0?t:"";this._tokenStructuralPropertyT=null}}function a(e){let t=0;for(let n=0,i=e.length;n>>0}e[n]=t&255;t>>>=8}}e.Random=void 0;(function(e){e.getRandomValues=(()=>{const e=typeof window!=="undefined"&&(window.crypto||window.msCrypto)||null;if(e&&typeof e.getRandomValues==="function"){return function t(n){return e.getRandomValues(n)}}return a})()})(e.Random||(e.Random={}));function l(e){const t=new Uint8Array(16);const n=new Array(256);for(let i=0;i<16;++i){n[i]="0"+i.toString(16)}for(let i=16;i<256;++i){n[i]=i.toString(16)}return function i(){e(t);t[6]=64|t[6]&15;t[8]=128|t[8]&63;return n[t[0]]+n[t[1]]+n[t[2]]+n[t[3]]+"-"+n[t[4]]+n[t[5]]+"-"+n[t[6]]+n[t[7]]+"-"+n[t[8]]+n[t[9]]+"-"+n[t[10]]+n[t[11]]+n[t[12]]+n[t[13]]+n[t[14]]+n[t[15]]}}e.UUID=void 0;(function(t){t.uuid4=l(e.Random.getRandomValues)})(e.UUID||(e.UUID={}));e.MimeData=n;e.PluginRegistry=i;e.PromiseDelegate=o;e.Token=r}))},20785:(e,t,n)=>{"use strict";n.r(t);n.d(t,{DisposableDelegate:()=>o,DisposableSet:()=>a,ObservableDisposableDelegate:()=>r,ObservableDisposableSet:()=>l});var i=n(2336);var s=n.n(i);class o{constructor(e){this._fn=e}get isDisposed(){return!this._fn}dispose(){if(!this._fn){return}let e=this._fn;this._fn=null;e()}}class r extends o{constructor(){super(...arguments);this._disposed=new i.Signal(this)}get disposed(){return this._disposed}dispose(){if(this.isDisposed){return}super.dispose();this._disposed.emit(undefined);i.Signal.clearData(this)}}class a{constructor(){this._isDisposed=false;this._items=new Set}get isDisposed(){return this._isDisposed}dispose(){if(this._isDisposed){return}this._isDisposed=true;this._items.forEach((e=>{e.dispose()}));this._items.clear()}contains(e){return this._items.has(e)}add(e){this._items.add(e)}remove(e){this._items.delete(e)}clear(){this._items.clear()}}(function(e){function t(t){let n=new e;for(const e of t){n.add(e)}return n}e.from=t})(a||(a={}));class l extends a{constructor(){super(...arguments);this._disposed=new i.Signal(this)}get disposed(){return this._disposed}dispose(){if(this.isDisposed){return}super.dispose();this._disposed.emit(undefined);i.Signal.clearData(this)}}(function(e){function t(t){let n=new e;for(const e of t){n.add(e)}return n}e.from=t})(l||(l={}))},60008:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ClipboardExt:()=>i,ElementExt:()=>s,Platform:()=>o,Selector:()=>r});var i;(function(e){function t(e){const t=document.body;const n=i=>{i.preventDefault();i.stopPropagation();i.clipboardData.setData("text",e);t.removeEventListener("copy",n,true)};t.addEventListener("copy",n,true);document.execCommand("copy")}e.copyText=t})(i||(i={}));var s;(function(e){function t(e){let t=window.getComputedStyle(e);let n=parseFloat(t.borderTopWidth)||0;let i=parseFloat(t.borderLeftWidth)||0;let s=parseFloat(t.borderRightWidth)||0;let o=parseFloat(t.borderBottomWidth)||0;let r=parseFloat(t.paddingTop)||0;let a=parseFloat(t.paddingLeft)||0;let l=parseFloat(t.paddingRight)||0;let d=parseFloat(t.paddingBottom)||0;let c=i+a+l+s;let h=n+r+d+o;return{borderTop:n,borderLeft:i,borderRight:s,borderBottom:o,paddingTop:r,paddingLeft:a,paddingRight:l,paddingBottom:d,horizontalSum:c,verticalSum:h}}e.boxSizing=t;function n(e){let t=window.getComputedStyle(e);let n=parseFloat(t.minWidth)||0;let i=parseFloat(t.minHeight)||0;let s=parseFloat(t.maxWidth)||Infinity;let o=parseFloat(t.maxHeight)||Infinity;s=Math.max(n,s);o=Math.max(i,o);return{minWidth:n,minHeight:i,maxWidth:s,maxHeight:o}}e.sizeLimits=n;function i(e,t,n){let i=e.getBoundingClientRect();return t>=i.left&&t=i.top&&n=n.bottom){return}if(i.topn.bottom&&i.height>=n.height){e.scrollTop-=n.top-i.top;return}if(i.topn.height){e.scrollTop-=n.bottom-i.bottom;return}if(i.bottom>n.bottom&&i.height{let e=Element.prototype;return e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){let t=this;let n=t.ownerDocument?t.ownerDocument.querySelectorAll(e):[];return Array.prototype.indexOf.call(n,t)!==-1}})();function t(e){e=e.split(",",1)[0];let t=0;let c=0;let h=0;function u(t){let n=e.match(t);if(n===null){return false}e=e.slice(n[0].length);return true}e=e.replace(d," $1 ");while(e.length>0){if(u(n)){t++;continue}if(u(i)){c++;continue}if(u(s)){c++;continue}if(u(r)){h++;continue}if(u(a)){c++;continue}if(u(o)){h++;continue}if(u(l)){continue}return 0}t=Math.min(t,255);c=Math.min(c,255);h=Math.min(h,255);return t<<16|c<<8|h}e.calculateSingle=t;const n=/^#[^\s\+>~#\.\[:]+/;const i=/^\.[^\s\+>~#\.\[:]+/;const s=/^\[[^\]]+\]/;const o=/^[^\s\+>~#\.\[:]+/;const r=/^(::[^\s\+>~#\.\[:]+|:first-line|:first-letter|:before|:after)/;const a=/^:[^\s\+>~#\.\[:]+/;const l=/^[\s\+>~\*]+/;const d=/:not\(([^\)]+)\)/g})(a||(a={}))},1506:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Drag:()=>o});var i=n(90044);var s=n.n(i);class o{constructor(e){this._onScrollFrame=()=>{if(!this._scrollTarget){return}let{element:e,edge:t,distance:n}=this._scrollTarget;let i=r.SCROLL_EDGE_SIZE-n;let s=Math.pow(i/r.SCROLL_EDGE_SIZE,2);let o=Math.max(1,Math.round(s*r.SCROLL_EDGE_SIZE));switch(t){case"top":e.scrollTop-=o;break;case"left":e.scrollLeft-=o;break;case"right":e.scrollLeft+=o;break;case"bottom":e.scrollTop+=o;break}requestAnimationFrame(this._onScrollFrame)};this._disposed=false;this._dropAction="none";this._override=null;this._currentTarget=null;this._currentElement=null;this._promise=null;this._scrollTarget=null;this._resolve=null;this.document=e.document||document;this.mimeData=e.mimeData;this.dragImage=e.dragImage||null;this.proposedAction=e.proposedAction||"copy";this.supportedActions=e.supportedActions||"all";this.source=e.source||null}dispose(){if(this._disposed){return}this._disposed=true;if(this._currentTarget){let e=new PointerEvent("pointerup",{bubbles:true,cancelable:true,clientX:-1,clientY:-1});r.dispatchDragLeave(this,this._currentTarget,null,e)}this._finalize("none")}get isDisposed(){return this._disposed}start(e,t){if(this._disposed){return Promise.resolve("none")}if(this._promise){return this._promise}this._addListeners();this._attachDragImage(e,t);this._promise=new Promise((e=>{this._resolve=e}));let n=new PointerEvent("pointermove",{bubbles:true,cancelable:true,clientX:e,clientY:t});document.dispatchEvent(n);return this._promise}handleEvent(e){switch(e.type){case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"keydown":this._evtKeyDown(e);break;default:e.preventDefault();e.stopPropagation();break}}moveDragImage(e,t){if(!this.dragImage){return}let n=this.dragImage.style;n.transform=`translate(${e}px, ${t}px)`}_evtPointerMove(e){e.preventDefault();e.stopPropagation();this._updateCurrentTarget(e);this._updateDragScroll(e);this.moveDragImage(e.clientX,e.clientY)}_evtPointerUp(e){e.preventDefault();e.stopPropagation();if(e.button!==0){return}this._updateCurrentTarget(e);if(!this._currentTarget){this._finalize("none");return}if(this._dropAction==="none"){r.dispatchDragLeave(this,this._currentTarget,null,e);this._finalize("none");return}let t=r.dispatchDrop(this,this._currentTarget,e);this._finalize(t)}_evtKeyDown(e){e.preventDefault();e.stopPropagation();if(e.keyCode===27){this.dispose()}}_addListeners(){document.addEventListener("pointerdown",this,true);document.addEventListener("pointermove",this,true);document.addEventListener("pointerup",this,true);document.addEventListener("pointerenter",this,true);document.addEventListener("pointerleave",this,true);document.addEventListener("pointerover",this,true);document.addEventListener("pointerout",this,true);document.addEventListener("keydown",this,true);document.addEventListener("keyup",this,true);document.addEventListener("keypress",this,true);document.addEventListener("contextmenu",this,true)}_removeListeners(){document.removeEventListener("pointerdown",this,true);document.removeEventListener("pointermove",this,true);document.removeEventListener("pointerup",this,true);document.removeEventListener("pointerenter",this,true);document.removeEventListener("pointerleave",this,true);document.removeEventListener("pointerover",this,true);document.removeEventListener("pointerout",this,true);document.removeEventListener("keydown",this,true);document.removeEventListener("keyup",this,true);document.removeEventListener("keypress",this,true);document.removeEventListener("contextmenu",this,true)}_updateDragScroll(e){let t=r.findScrollTarget(e);if(!this._scrollTarget&&!t){return}if(!this._scrollTarget){setTimeout(this._onScrollFrame,500)}this._scrollTarget=t}_updateCurrentTarget(e){let t=this._currentTarget;let n=this._currentTarget;let i=this._currentElement;let s=r.findElementBehindBackdrop(e,this.document);this._currentElement=s;if(s!==i&&s!==n){r.dispatchDragExit(this,n,s,e)}if(s!==i&&s!==n){n=r.dispatchDragEnter(this,s,n,e)}if(n!==t){this._currentTarget=n;r.dispatchDragLeave(this,t,n,e)}let o=r.dispatchDragOver(this,n,e);this._setDropAction(o)}_attachDragImage(e,t){if(!this.dragImage){return}this.dragImage.classList.add("lm-mod-drag-image");let n=this.dragImage.style;n.pointerEvents="none";n.position="fixed";n.transform=`translate(${e}px, ${t}px)`;const i=this.document instanceof Document?this.document.body:this.document.firstElementChild;i.appendChild(this.dragImage)}_detachDragImage(){if(!this.dragImage){return}let e=this.dragImage.parentNode;if(!e){return}e.removeChild(this.dragImage)}_setDropAction(e){e=r.validateAction(e,this.supportedActions);if(this._override&&this._dropAction===e){return}switch(e){case"none":this._dropAction=e;this._override=o.overrideCursor("no-drop",this.document);break;case"copy":this._dropAction=e;this._override=o.overrideCursor("copy",this.document);break;case"link":this._dropAction=e;this._override=o.overrideCursor("alias",this.document);break;case"move":this._dropAction=e;this._override=o.overrideCursor("move",this.document);break}}_finalize(e){let t=this._resolve;this._removeListeners();this._detachDragImage();if(this._override){this._override.dispose();this._override=null}this.mimeData.clear();this._disposed=true;this._dropAction="none";this._currentTarget=null;this._currentElement=null;this._scrollTarget=null;this._promise=null;this._resolve=null;if(t){t(e)}}}(function(e){class t extends DragEvent{constructor(e,t){super(t.type,{bubbles:true,cancelable:true,altKey:e.altKey,button:e.button,clientX:e.clientX,clientY:e.clientY,ctrlKey:e.ctrlKey,detail:0,metaKey:e.metaKey,relatedTarget:t.related,screenX:e.screenX,screenY:e.screenY,shiftKey:e.shiftKey,view:window});const{drag:n}=t;this.dropAction="none";this.mimeData=n.mimeData;this.proposedAction=n.proposedAction;this.supportedActions=n.supportedActions;this.source=n.source}}e.Event=t;function n(e,t=document){return r.overrideCursor(e,t)}e.overrideCursor=n})(o||(o={}));var r;(function(e){e.SCROLL_EDGE_SIZE=20;function t(e,t){return p[e]&m[t]?e:"none"}e.validateAction=t;function n(t,n=document){if(t){if(s&&t==s.event){return s.element}e.cursorBackdrop.style.zIndex="-1000";const i=n.elementFromPoint(t.clientX,t.clientY);e.cursorBackdrop.style.zIndex="";s={event:t,element:i};return i}else{const t=e.cursorBackdrop.style.transform;if(r&&t===r.transform){return r.element}const i=e.cursorBackdrop.getBoundingClientRect();e.cursorBackdrop.style.zIndex="-1000";const s=n.elementFromPoint(i.left+i.width/2,i.top+i.height/2);e.cursorBackdrop.style.zIndex="";r={transform:t,element:s};return s}}e.findElementBehindBackdrop=n;let s=null;let r=null;function a(t){let i=t.clientX;let s=t.clientY;let o=n(t);for(;o;o=o.parentElement){if(!o.hasAttribute("data-lm-dragscroll")){continue}let t=0;let n=0;if(o===document.body){t=window.pageXOffset;n=window.pageYOffset}let r=o.getBoundingClientRect();let a=r.top+n;let l=r.left+t;let d=l+r.width;let c=a+r.height;if(i=d||s=c){continue}let h=i-l+1;let u=s-a+1;let p=d-i;let m=c-s;let g=Math.min(h,u,p,m);if(g>e.SCROLL_EDGE_SIZE){continue}let f;switch(g){case m:f="bottom";break;case u:f="top";break;case p:f="right";break;case h:f="left";break;default:throw"unreachable"}let v=o.scrollWidth-o.clientWidth;let _=o.scrollHeight-o.clientHeight;let b;switch(f){case"top":b=_>0&&o.scrollTop>0;break;case"left":b=v>0&&o.scrollLeft>0;break;case"right":b=v>0&&o.scrollLeft0&&o.scrollTop<_;break;default:throw"unreachable"}if(!b){continue}return{element:o,edge:f,distance:g}}return null}e.findScrollTarget=a;function l(e,t,n,i){if(!t){return null}let s=new o.Event(i,{drag:e,related:n,type:"lm-dragenter"});let r=!t.dispatchEvent(s);if(r){return t}const a=e.document instanceof Document?e.document.body:e.document.firstElementChild;if(t===a){return n}s=new o.Event(i,{drag:e,related:n,type:"lm-dragenter"});a.dispatchEvent(s);return a}e.dispatchDragEnter=l;function d(e,t,n,i){if(!t){return}let s=new o.Event(i,{drag:e,related:n,type:"lm-dragexit"});t.dispatchEvent(s)}e.dispatchDragExit=d;function c(e,t,n,i){if(!t){return}let s=new o.Event(i,{drag:e,related:n,type:"lm-dragleave"});t.dispatchEvent(s)}e.dispatchDragLeave=c;function h(e,t,n){if(!t){return"none"}let i=new o.Event(n,{drag:e,related:null,type:"lm-dragover"});let s=!t.dispatchEvent(i);if(s){return i.dropAction}return"none"}e.dispatchDragOver=h;function u(e,t,n){if(!t){return"none"}let i=new o.Event(n,{drag:e,related:null,type:"lm-drop"});let s=!t.dispatchEvent(i);if(s){return i.dropAction}return"none"}e.dispatchDrop=u;const p={none:0,copy:1,link:2,move:4};const m={none:p["none"],copy:p["copy"],link:p["link"],move:p["move"],"copy-link":p["copy"]|p["link"],"copy-move":p["copy"]|p["move"],"link-move":p["link"]|p["move"],all:p["copy"]|p["link"]|p["move"]};function g(t,n=document){let s=++w;const o=n instanceof Document?n.body:n.firstElementChild;if(!e.cursorBackdrop.isConnected){e.cursorBackdrop.style.transform="scale(0)";o.appendChild(e.cursorBackdrop);_();document.addEventListener("pointermove",f,{capture:true,passive:true});e.cursorBackdrop.addEventListener("scroll",v,{capture:true,passive:true})}e.cursorBackdrop.style.cursor=t;return new i.DisposableDelegate((()=>{if(s===w&&e.cursorBackdrop.isConnected){document.removeEventListener("pointermove",f,true);e.cursorBackdrop.removeEventListener("scroll",v,true);o.removeChild(e.cursorBackdrop)}}))}e.overrideCursor=g;function f(t){if(!e.cursorBackdrop){return}e.cursorBackdrop.style.transform=`translate(${t.clientX}px, ${t.clientY}px)`}function v(t){if(!e.cursorBackdrop){return}let i=n();if(!i){return}const s=i.closest("[data-lm-dragscroll]");if(!s){return}s.scrollTop+=e.cursorBackdrop.scrollTop-b;s.scrollLeft+=e.cursorBackdrop.scrollLeft-b;_()}function _(){e.cursorBackdrop.scrollTop=b;e.cursorBackdrop.scrollLeft=b}const b=500;function y(){const e=document.createElement("div");e.classList.add("lm-cursor-backdrop");return e}let w=0;e.cursorBackdrop=y()})(r||(r={}))},38457:(e,t,n)=>{"use strict";var i=n(85072);var s=n.n(i);var o=n(97825);var r=n.n(o);var a=n(77659);var l=n.n(a);var d=n(55056);var c=n.n(d);var h=n(10540);var u=n.n(h);var p=n(41113);var m=n.n(p);var g=n(91266);var f={};f.styleTagTransform=m();f.setAttributes=c();f.insert=l().bind(null,"head");f.domAPI=r();f.insertStyleElement=u();var v=s()(g.A,f);const _=g.A&&g.A.locals?g.A.locals:undefined},72996:(e,t,n)=>{"use strict";n.r(t);n.d(t,{EN_US:()=>r,KeycodeLayout:()=>o,getKeyboardLayout:()=>i,setKeyboardLayout:()=>s});function i(){return a.keyboardLayout}function s(e){a.keyboardLayout=e}class o{constructor(e,t,n=[]){this.name=e;this._codes=t;this._keys=o.extractKeys(t);this._modifierKeys=o.convertToKeySet(n)}keys(){return Object.keys(this._keys)}isValidKey(e){return e in this._keys}isModifierKey(e){return e in this._modifierKeys}keyForKeydownEvent(e){return this._codes[e.keyCode]||""}}(function(e){function t(e){let t=Object.create(null);for(let n in e){t[e[n]]=true}return t}e.extractKeys=t;function n(e){let t=Object(null);for(let n=0,i=e.length;n{"use strict";n.r(t);n.d(t,{ConflatableMessage:()=>a,Message:()=>r,MessageLoop:()=>l});var i=n(34236);class s{constructor(){this._first=null;this._last=null;this._size=0}get isEmpty(){return this._size===0}get size(){return this._size}get length(){return this._size}get first(){return this._first?this._first.value:undefined}get last(){return this._last?this._last.value:undefined}get firstNode(){return this._first}get lastNode(){return this._last}*[Symbol.iterator](){let e=this._first;while(e){yield e.value;e=e.next}}*retro(){let e=this._last;while(e){yield e.value;e=e.prev}}*nodes(){let e=this._first;while(e){yield e;e=e.next}}*retroNodes(){let e=this._last;while(e){yield e;e=e.prev}}assign(e){this.clear();for(const t of e){this.addLast(t)}}push(e){this.addLast(e)}pop(){return this.removeLast()}shift(e){this.addFirst(e)}unshift(){return this.removeFirst()}addFirst(e){let t=new o.LinkedListNode(this,e);if(!this._first){this._first=t;this._last=t}else{t.next=this._first;this._first.prev=t;this._first=t}this._size++;return t}addLast(e){let t=new o.LinkedListNode(this,e);if(!this._last){this._first=t;this._last=t}else{t.prev=this._last;this._last.next=t;this._last=t}this._size++;return t}insertBefore(e,t){if(!t||t===this._first){return this.addFirst(e)}if(!(t instanceof o.LinkedListNode)||t.list!==this){throw new Error("Reference node is not owned by the list.")}let n=new o.LinkedListNode(this,e);let i=t;let s=i.prev;n.next=i;n.prev=s;i.prev=n;s.next=n;this._size++;return n}insertAfter(e,t){if(!t||t===this._last){return this.addLast(e)}if(!(t instanceof o.LinkedListNode)||t.list!==this){throw new Error("Reference node is not owned by the list.")}let n=new o.LinkedListNode(this,e);let i=t;let s=i.next;n.next=s;n.prev=i;i.next=n;s.prev=n;this._size++;return n}removeFirst(){let e=this._first;if(!e){return undefined}if(e===this._last){this._first=null;this._last=null}else{this._first=e.next;this._first.prev=null}e.list=null;e.next=null;e.prev=null;this._size--;return e.value}removeLast(){let e=this._last;if(!e){return undefined}if(e===this._first){this._first=null;this._last=null}else{this._last=e.prev;this._last.next=null}e.list=null;e.next=null;e.prev=null;this._size--;return e.value}removeNode(e){if(!(e instanceof o.LinkedListNode)||e.list!==this){throw new Error("Node is not owned by the list.")}let t=e;if(t===this._first&&t===this._last){this._first=null;this._last=null}else if(t===this._first){this._first=t.next;this._first.prev=null}else if(t===this._last){this._last=t.prev;this._last.next=null}else{t.next.prev=t.prev;t.prev.next=t.next}t.list=null;t.next=null;t.prev=null;this._size--}clear(){let e=this._first;while(e){let t=e.next;e.list=null;e.prev=null;e.next=null;e=t}this._first=null;this._last=null;this._size=0}}(function(e){function t(t){let n=new e;n.assign(t);return n}e.from=t})(s||(s={}));var o;(function(e){class t{constructor(e,t){this.list=null;this.next=null;this.prev=null;this.list=e;this.value=t}}e.LinkedListNode=t})(o||(o={}));class r{constructor(e){this.type=e}get isConflatable(){return false}conflate(e){return false}}class a extends r{get isConflatable(){return true}conflate(e){return true}}var l;(function(e){let t=null;const n=(e=>t=>{let n=false;e.then((()=>!n&&t()));return()=>{n=true}})(Promise.resolve());function o(e,t){let n=m.get(e);if(!n||n.length===0){b(e,t);return}let s=(0,i.every)((0,i.retro)(n),(n=>n?_(n,e,t):true));if(s){b(e,t)}}e.sendMessage=o;function r(e,t){if(!t.isConflatable){y(e,t);return}let n=(0,i.some)(p,(n=>{if(n.handler!==e){return false}if(!n.msg){return false}if(n.msg.type!==t.type){return false}if(!n.msg.isConflatable){return false}return n.msg.conflate(t)}));if(!n){y(e,t)}}e.postMessage=r;function a(e,t){let n=m.get(e);if(n&&n.indexOf(t)!==-1){return}if(!n){m.set(e,[t])}else{n.push(t)}}e.installMessageHook=a;function l(e,t){let n=m.get(e);if(!n){return}let i=n.indexOf(t);if(i===-1){return}n[i]=null;C(n)}e.removeMessageHook=l;function d(e){let t=m.get(e);if(t&&t.length>0){i.ArrayExt.fill(t,null);C(t)}for(const n of p){if(n.handler===e){n.handler=null;n.msg=null}}}e.clearData=d;function c(){if(v||t===null){return}t();t=null;v=true;w();v=false}e.flush=c;function h(){return f}e.getExceptionHandler=h;function u(e){let t=f;f=e;return t}e.setExceptionHandler=u;const p=new s;const m=new WeakMap;const g=new Set;let f=e=>{console.error(e)};let v=false;function _(e,t,n){let i=true;try{if(typeof e==="function"){i=e(t,n)}else{i=e.messageHook(t,n)}}catch(s){f(s)}return i}function b(e,t){try{e.processMessage(t)}catch(n){f(n)}}function y(e,i){p.addLast({handler:e,msg:i});if(t!==null){return}t=n(w)}function w(){t=null;if(p.isEmpty){return}let e={handler:null,msg:null};p.addLast(e);while(true){let t=p.removeFirst();if(t===e){return}if(t.handler&&t.msg){o(t.handler,t.msg)}}}function C(e){if(g.size===0){n(x)}g.add(e)}function x(){g.forEach(S);g.clear()}function S(e){i.ArrayExt.removeAllWhere(e,j)}function j(e){return e===null}})(l||(l={}))},68534:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Debouncer:()=>c,Poll:()=>a,RateLimiter:()=>d,Throttler:()=>h});var i=n(5592);var s=n.n(i);var o=n(2336);var r=n.n(o);class a{constructor(e){var t;this._disposed=new o.Signal(this);this._lingered=0;this._tick=new i.PromiseDelegate;this._ticked=new o.Signal(this);this._factory=e.factory;this._linger=(t=e.linger)!==null&&t!==void 0?t:l.DEFAULT_LINGER;this._standby=e.standby||l.DEFAULT_STANDBY;this._state={...l.DEFAULT_STATE,timestamp:(new Date).getTime()};const n=e.frequency||{};const s=Math.max(n.interval||0,n.max||0,l.DEFAULT_FREQUENCY.max);this.frequency={...l.DEFAULT_FREQUENCY,...n,...{max:s}};this.name=e.name||l.DEFAULT_NAME;if("auto"in e?e.auto:true){setTimeout((()=>this.start()))}}get disposed(){return this._disposed}get frequency(){return this._frequency}set frequency(e){if(this.isDisposed||i.JSONExt.deepEqual(e,this.frequency||{})){return}let{backoff:t,interval:n,max:s}=e;n=Math.round(n);s=Math.round(s);if(typeof t==="number"&&t<1){throw new Error("Poll backoff growth factor must be at least 1")}if((n<0||n>s)&&n!==a.NEVER){throw new Error("Poll interval must be between 0 and max")}if(s>a.MAX_INTERVAL&&s!==a.NEVER){throw new Error(`Max interval must be less than ${a.MAX_INTERVAL}`)}this._frequency={backoff:t,interval:n,max:s}}get isDisposed(){return this.state.phase==="disposed"}get standby(){return this._standby}set standby(e){if(this.isDisposed||this.standby===e){return}this._standby=e}get state(){return this._state}get tick(){return this._tick.promise}get ticked(){return this._ticked}async*[Symbol.asyncIterator](){while(!this.isDisposed){yield this.state;await this.tick.catch((()=>undefined))}}dispose(){if(this.isDisposed){return}this._state={...l.DISPOSED_STATE,timestamp:(new Date).getTime()};this._tick.promise.catch((e=>undefined));this._tick.reject(new Error(`Poll (${this.name}) is disposed.`));this._disposed.emit(undefined);o.Signal.clearData(this)}refresh(){return this.schedule({cancel:({phase:e})=>e==="refreshed",interval:a.IMMEDIATE,phase:"refreshed"})}async schedule(e={}){if(this.isDisposed){return}if(e.cancel&&e.cancel(this.state)){return}const t=this._tick;const n=new i.PromiseDelegate;const s={interval:this.frequency.interval,payload:null,phase:"standby",timestamp:(new Date).getTime(),...e};this._state=s;this._tick=n;clearTimeout(this._timeout);this._ticked.emit(this.state);t.resolve(this);await t.promise;if(s.interval===a.NEVER){this._timeout=undefined;return}const o=()=>{if(this.isDisposed||this.tick!==n.promise){return}this._execute()};this._timeout=setTimeout(o,s.interval)}start(){return this.schedule({cancel:({phase:e})=>e!=="constructed"&&e!=="standby"&&e!=="stopped",interval:a.IMMEDIATE,phase:"started"})}stop(){return this.schedule({cancel:({phase:e})=>e==="stopped",interval:a.NEVER,phase:"stopped"})}get hidden(){return l.hidden}_execute(){let e=typeof this.standby==="function"?this.standby():this.standby;if(e==="never"){e=false}else if(e==="when-hidden"){if(this.hidden){e=++this._lingered>this._linger}else{this._lingered=0;e=false}}if(e){void this.schedule();return}const t=this.tick;this._factory(this.state).then((e=>{if(this.isDisposed||this.tick!==t){return}void this.schedule({payload:e,phase:this.state.phase==="rejected"?"reconnected":"resolved"})})).catch((e=>{if(this.isDisposed||this.tick!==t){return}void this.schedule({interval:l.sleep(this.frequency,this.state),payload:e,phase:"rejected"})}))}}(function(e){e.IMMEDIATE=0;e.MAX_INTERVAL=2147483647;e.NEVER=Infinity})(a||(a={}));var l;(function(e){e.DEFAULT_BACKOFF=3;e.DEFAULT_FREQUENCY={backoff:true,interval:1e3,max:30*1e3};e.DEFAULT_LINGER=1;e.DEFAULT_NAME="unknown";e.DEFAULT_STANDBY="when-hidden";e.DEFAULT_STATE={interval:a.NEVER,payload:null,phase:"constructed",timestamp:new Date(0).getTime()};e.DISPOSED_STATE={interval:a.NEVER,payload:null,phase:"disposed",timestamp:new Date(0).getTime()};function t(t,i){const{backoff:s,interval:o,max:r}=t;if(o===a.NEVER){return o}const l=s===true?e.DEFAULT_BACKOFF:s===false?1:s;const d=n(o,i.interval*l);return Math.min(r,d)}e.sleep=t;e.hidden=(()=>{if(typeof document==="undefined"){return false}document.addEventListener("visibilitychange",(()=>{e.hidden=document.visibilityState==="hidden"}));document.addEventListener("pagehide",(()=>{e.hidden=document.visibilityState==="hidden"}));return document.visibilityState==="hidden"})();function n(e,t){e=Math.ceil(e);t=Math.floor(t);return Math.floor(Math.random()*(t-e+1))+e}})(l||(l={}));class d{constructor(e,t=500){this.args=undefined;this.payload=null;this.limit=t;this.poll=new a({auto:false,factory:async()=>{const{args:t}=this;this.args=undefined;return e(...t)},frequency:{backoff:false,interval:a.NEVER,max:a.NEVER},standby:"never"});this.payload=new i.PromiseDelegate;this.poll.ticked.connect(((e,t)=>{const{payload:n}=this;if(t.phase==="resolved"){this.payload=new i.PromiseDelegate;n.resolve(t.payload);return}if(t.phase==="rejected"||t.phase==="stopped"){this.payload=new i.PromiseDelegate;n.promise.catch((e=>undefined));n.reject(t.payload);return}}),this)}get isDisposed(){return this.payload===null}dispose(){if(this.isDisposed){return}this.args=undefined;this.payload=null;this.poll.dispose()}async stop(){return this.poll.stop()}}class c extends d{invoke(...e){this.args=e;void this.poll.schedule({interval:this.limit,phase:"invoked"});return this.payload.promise}}class h extends d{constructor(e,t){super(e,typeof t==="number"?t:t&&t.limit);this._trailing=false;if(typeof t!=="number"&&t&&t.edge==="trailing"){this._trailing=true}this._interval=this._trailing?this.limit:a.IMMEDIATE}invoke(...e){const t=this.poll.state.phase!=="invoked";if(t||this._trailing){this.args=e}if(t){void this.poll.schedule({interval:this._interval,phase:"invoked"})}return this.payload.promise}}},21628:(e,t,n)=>{"use strict";n.r(t);n.d(t,{AttachedProperty:()=>i});class i{constructor(e){this._pid=s.nextPID();this.name=e.name;this._create=e.create;this._coerce=e.coerce||null;this._compare=e.compare||null;this._changed=e.changed||null}get(e){let t;let n=s.ensureMap(e);if(this._pid in n){t=n[this._pid]}else{t=n[this._pid]=this._createValue(e)}return t}set(e,t){let n;let i=s.ensureMap(e);if(this._pid in i){n=i[this._pid]}else{n=i[this._pid]=this._createValue(e)}let o=this._coerceValue(e,t);this._maybeNotify(e,n,i[this._pid]=o)}coerce(e){let t;let n=s.ensureMap(e);if(this._pid in n){t=n[this._pid]}else{t=n[this._pid]=this._createValue(e)}let i=this._coerceValue(e,t);this._maybeNotify(e,t,n[this._pid]=i)}_createValue(e){let t=this._create;return t(e)}_coerceValue(e,t){let n=this._coerce;return n?n(e,t):t}_compareValue(e,t){let n=this._compare;return n?n(e,t):e===t}_maybeNotify(e,t,n){let i=this._changed;if(i&&!this._compareValue(t,n)){i(e,t,n)}}}(function(e){function t(e){s.ownerData.delete(e)}e.clearData=t})(i||(i={}));var s;(function(e){e.ownerData=new WeakMap;e.nextPID=(()=>{let e=0;return()=>{let t=Math.random();let n=`${t}`.slice(2);return`pid-${n}-${e++}`}})();function t(t){let n=e.ownerData.get(t);if(n){return n}n=Object.create(null);e.ownerData.set(t,n);return n}e.ensureMap=t})(s||(s={}))},96903:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Signal:()=>a,Stream:()=>l});var i=n(34236);var s=n.n(i);var o=n(5592);var r=n.n(o);class a{constructor(e){this.sender=e}connect(e,t){return d.connect(this,e,t)}disconnect(e,t){return d.disconnect(this,e,t)}emit(e){d.emit(this,e)}}(function(e){function t(e,t){d.disconnectBetween(e,t)}e.disconnectBetween=t;function n(e){d.disconnectSender(e)}e.disconnectSender=n;function i(e){d.disconnectReceiver(e)}e.disconnectReceiver=i;function s(e){d.disconnectAll(e)}e.disconnectAll=s;function o(e){d.disconnectAll(e)}e.clearData=o;function r(){return d.exceptionHandler}e.getExceptionHandler=r;function a(e){let t=d.exceptionHandler;d.exceptionHandler=e;return t}e.setExceptionHandler=a})(a||(a={}));class l extends a{constructor(){super(...arguments);this._pending=new o.PromiseDelegate}async*[Symbol.asyncIterator](){let e=this._pending;while(true){try{const{args:t,next:n}=await e.promise;e=n;yield t}catch(t){return}}}emit(e){const t=this._pending;const n=this._pending=new o.PromiseDelegate;t.resolve({args:e,next:n});super.emit(e)}stop(){this._pending.promise.catch((()=>undefined));this._pending.reject("stop");this._pending=new o.PromiseDelegate}}var d;(function(e){e.exceptionHandler=e=>{console.error(e)};function t(e,t,n){n=n||undefined;let i=d.get(e.sender);if(!i){i=[];d.set(e.sender,i)}if(p(i,e,t,n)){return false}let s=n||t;let o=c.get(s);if(!o){o=[];c.set(s,o)}let r={signal:e,slot:t,thisArg:n};i.push(r);o.push(r);return true}e.connect=t;function n(e,t,n){n=n||undefined;let i=d.get(e.sender);if(!i||i.length===0){return false}let s=p(i,e,t,n);if(!s){return false}let o=n||t;let r=c.get(o);s.signal=null;g(i);g(r);return true}e.disconnect=n;function s(e,t){let n=d.get(e);if(!n||n.length===0){return}let i=c.get(t);if(!i||i.length===0){return}for(const s of i){if(!s.signal){continue}if(s.signal.sender===e){s.signal=null}}g(n);g(i)}e.disconnectBetween=s;function o(e){let t=d.get(e);if(!t||t.length===0){return}for(const n of t){if(!n.signal){continue}let e=n.thisArg||n.slot;n.signal=null;g(c.get(e))}g(t)}e.disconnectSender=o;function r(e){let t=c.get(e);if(!t||t.length===0){return}for(const n of t){if(!n.signal){continue}let e=n.signal.sender;n.signal=null;g(d.get(e))}g(t)}e.disconnectReceiver=r;function a(e){o(e);r(e)}e.disconnectAll=a;function l(e,t){let n=d.get(e.sender);if(!n||n.length===0){return}for(let i=0,s=n.length;i{let e=typeof requestAnimationFrame==="function";return e?requestAnimationFrame:setImmediate})();function p(e,t,n,s){return(0,i.find)(e,(e=>e.signal===t&&e.slot===n&&e.thisArg===s))}function m(t,n){let{signal:i,slot:s,thisArg:o}=t;try{s.call(o,i.sender,n)}catch(r){e.exceptionHandler(r)}}function g(e){if(h.size===0){u(f)}h.add(e)}function f(){h.forEach(v);h.clear()}function v(e){i.ArrayExt.removeAllWhere(e,_)}function _(e){return e.signal===null}})(d||(d={}))},57340:(e,t,n)=>{"use strict";n.r(t);n.d(t,{VirtualDOM:()=>c,VirtualElement:()=>r,VirtualElementPass:()=>a,VirtualText:()=>o,h:()=>l,hpass:()=>d});var i=n(34236);var s=n.n(i);class o{constructor(e){this.type="text";this.content=e}}class r{constructor(e,t,n,i){this.type="element";this.tag=e;this.attrs=t;this.children=n;this.renderer=i}}class a extends r{constructor(e,t,n){super(e,t,[],n||undefined)}}function l(e){let t={};let n;let i=[];for(let a=1,l=arguments.length;a3){throw new Error("hpass() should be called with 1, 2, or 3 arguments")}return new a(e,t,n)}var c;(function(e){function t(e){return h.createDOMNode(e)}e.realize=t;function n(e,t){let n=h.hostMap.get(t)||[];let i=h.asContentArray(e);h.hostMap.set(t,i);h.updateContent(t,n,i)}e.render=n})(c||(c={}));var h;(function(e){e.hostMap=new WeakMap;function t(e){if(!e){return[]}if(e instanceof Array){return e}return[e]}e.asContentArray=t;function n(e){let t=arguments[1]||null;const i=arguments[2]||null;if(t){t.insertBefore(n(e),i)}else{if(e.type==="text"){return document.createTextNode(e.content)}t=document.createElement(e.tag);a(t,e.attrs);if(e.renderer){e.renderer.render(t,{attrs:e.attrs,children:e.children});return t}for(let i=0,s=e.children.length;i=d.length){n(r[o],e);continue}let t=d[o];let h=r[o];if(t===h){c=c.nextSibling;continue}if(t.type==="text"&&h.type==="text"){if(c.textContent!==h.content){c.textContent=h.content}c=c.nextSibling;continue}if(t.type==="text"||h.type==="text"){i.ArrayExt.insert(d,o,h);n(h,e,c);continue}if(!t.renderer!=!h.renderer){i.ArrayExt.insert(d,o,h);n(h,e,c);continue}let u=h.attrs.key;if(u&&u in a){let n=a[u];if(n.vNode!==t){i.ArrayExt.move(d,d.indexOf(n.vNode,o+1),o);e.insertBefore(n.element,c);t=n.vNode;c=n.element}}if(t===h){c=c.nextSibling;continue}let p=t.attrs.key;if(p&&p!==u){i.ArrayExt.insert(d,o,h);n(h,e,c);continue}if(t.tag!==h.tag){i.ArrayExt.insert(d,o,h);n(h,e,c);continue}l(c,t.attrs,h.attrs);if(h.renderer){h.renderer.render(c,{attrs:h.attrs,children:h.children})}else{s(c,t.children,h.children)}c=c.nextSibling}o(e,d,h,true)}e.updateContent=s;function o(e,t,n,i){for(let s=t.length-1;s>=n;--s){const n=t[s];const r=i?e.lastChild:e.childNodes[s];if(n.type==="text");else if(n.renderer&&n.renderer.unrender){n.renderer.unrender(r,{attrs:n.attrs,children:n.children})}else{o(r,n.children,0,false)}if(i){e.removeChild(r)}}}const r={key:true,className:true,htmlFor:true,dataset:true,style:true};function a(e,t){for(let n in t){if(n in r){continue}if(n.substr(0,2)==="on"){e[n]=t[n]}else{e.setAttribute(n,t[n])}}if(t.className!==undefined){e.setAttribute("class",t.className)}if(t.htmlFor!==undefined){e.setAttribute("for",t.htmlFor)}if(t.dataset){d(e,t.dataset)}if(t.style){h(e,t.style)}}function l(e,t,n){if(t===n){return}let i;for(i in t){if(i in r||i in n){continue}if(i.substr(0,2)==="on"){e[i]=null}else{e.removeAttribute(i)}}for(i in n){if(i in r||t[i]===n[i]){continue}if(i.substr(0,2)==="on"){e[i]=n[i]}else{e.setAttribute(i,n[i])}}if(t.className!==n.className){if(n.className!==undefined){e.setAttribute("class",n.className)}else{e.removeAttribute("class")}}if(t.htmlFor!==n.htmlFor){if(n.htmlFor!==undefined){e.setAttribute("for",n.htmlFor)}else{e.removeAttribute("for")}}if(t.dataset!==n.dataset){c(e,t.dataset||{},n.dataset||{})}if(t.style!==n.style){u(e,t.style||{},n.style||{})}}function d(e,t){for(let n in t){e.setAttribute(`data-${n}`,t[n])}}function c(e,t,n){for(let i in t){if(!(i in n)){e.removeAttribute(`data-${i}`)}}for(let i in n){if(t[i]!==n[i]){e.setAttribute(`data-${i}`,n[i])}}}function h(e,t){let n=e.style;let i;for(i in t){n[i]=t[i]}}function u(e,t,n){let i=e.style;let s;for(s in t){if(!(s in n)){i[s]=""}}for(s in n){if(t[s]!==n[s]){i[s]=n[s]}}}function p(e,t){let n=e.firstChild;let i=Object.create(null);for(let s of t){if(s.type==="element"&&s.attrs.key){i[s.attrs.key]={vNode:s,element:n}}n=n.nextSibling}return i}})(h||(h={}))},14292:(e,t,n)=>{"use strict";n.r(t);n.d(t,{AccordionLayout:()=>O,AccordionPanel:()=>U,BoxEngine:()=>k,BoxLayout:()=>$,BoxPanel:()=>J,BoxSizer:()=>j,CommandPalette:()=>Y,ContextMenu:()=>ee,DockLayout:()=>oe,DockPanel:()=>ae,FocusTracker:()=>de,GridLayout:()=>ce,Layout:()=>M,LayoutItem:()=>D,Menu:()=>Q,MenuBar:()=>ue,Panel:()=>z,PanelLayout:()=>P,ScrollBar:()=>me,SingletonLayout:()=>fe,SplitLayout:()=>N,SplitPanel:()=>H,StackedLayout:()=>ve,StackedPanel:()=>_e,TabBar:()=>ie,TabPanel:()=>ye,Title:()=>I,Widget:()=>T});var i=n(34236);var s=n.n(i);var o=n(5592);var r=n.n(o);var a=n(76326);var l=n.n(a);var d=n(42856);var c=n.n(d);var h=n(94466);var u=n.n(h);var p=n(2336);var m=n.n(p);var g=n(10970);var f=n.n(g);var v=n(93247);var _=n.n(v);var b=n(97290);var y=n.n(b);var w=n(90044);var C=n.n(w);var x=n(77162);var S=n.n(x);class j{constructor(){this.sizeHint=0;this.minSize=0;this.maxSize=Infinity;this.stretch=1;this.size=0;this.done=false}}var k;(function(e){function t(e,t){let n=e.length;if(n===0){return t}let i=0;let s=0;let o=0;let r=0;let a=0;for(let c=0;c0){r+=t.stretch;a++}}if(t===o){return 0}if(t<=i){for(let t=0;t=s){for(let t=0;t0&&i>l){let t=i;let s=r;for(let o=0;o0&&i>l){let t=i/d;for(let s=0;s0&&i>l){let t=i;let s=r;for(let o=0;o=n.maxSize){i-=n.maxSize-n.size;r-=n.stretch;n.size=n.maxSize;n.done=true;d--;a--}else{i-=l;n.size+=l}}}while(d>0&&i>l){let t=i/d;for(let s=0;s=n.maxSize){i-=n.maxSize-n.size;n.size=n.maxSize;n.done=true;d--}else{i-=t;n.size+=t}}}}return 0}e.calc=t;function n(e,t,n){if(e.length===0||n===0){return}if(n>0){i(e,t,n)}else{s(e,t,-n)}}e.adjust=n;function i(e,t,n){let i=0;for(let a=0;a<=t;++a){let t=e[a];i+=t.maxSize-t.size}let s=0;for(let a=t+1,l=e.length;a=0&&o>0;--a){let t=e[a];let n=t.maxSize-t.size;if(n>=o){t.sizeHint=t.size+o;o=0}else{t.sizeHint=t.size+n;o-=n}}let r=n;for(let a=t+1,l=e.length;a0;++a){let t=e[a];let n=t.size-t.minSize;if(n>=r){t.sizeHint=t.size-r;r=0}else{t.sizeHint=t.size-n;r-=n}}}function s(e,t,n){let i=0;for(let a=t+1,l=e.length;a0;++a){let t=e[a];let n=t.maxSize-t.size;if(n>=o){t.sizeHint=t.size+o;o=0}else{t.sizeHint=t.size+n;o-=n}}let r=n;for(let a=t;a>=0&&r>0;--a){let t=e[a];let n=t.size-t.minSize;if(n>=r){t.sizeHint=t.size-r;r=0}else{t.sizeHint=t.size-n;r-=n}}}})(k||(k={}));class I{constructor(e){this._label="";this._caption="";this._mnemonic=-1;this._icon=undefined;this._iconClass="";this._iconLabel="";this._className="";this._closable=false;this._changed=new p.Signal(this);this._isDisposed=false;this.owner=e.owner;if(e.label!==undefined){this._label=e.label}if(e.mnemonic!==undefined){this._mnemonic=e.mnemonic}if(e.icon!==undefined){this._icon=e.icon}if(e.iconClass!==undefined){this._iconClass=e.iconClass}if(e.iconLabel!==undefined){this._iconLabel=e.iconLabel}if(e.caption!==undefined){this._caption=e.caption}if(e.className!==undefined){this._className=e.className}if(e.closable!==undefined){this._closable=e.closable}this._dataset=e.dataset||{}}get changed(){return this._changed}get label(){return this._label}set label(e){if(this._label===e){return}this._label=e;this._changed.emit(undefined)}get mnemonic(){return this._mnemonic}set mnemonic(e){if(this._mnemonic===e){return}this._mnemonic=e;this._changed.emit(undefined)}get icon(){return this._icon}set icon(e){if(this._icon===e){return}this._icon=e;this._changed.emit(undefined)}get iconClass(){return this._iconClass}set iconClass(e){if(this._iconClass===e){return}this._iconClass=e;this._changed.emit(undefined)}get iconLabel(){return this._iconLabel}set iconLabel(e){if(this._iconLabel===e){return}this._iconLabel=e;this._changed.emit(undefined)}get caption(){return this._caption}set caption(e){if(this._caption===e){return}this._caption=e;this._changed.emit(undefined)}get className(){return this._className}set className(e){if(this._className===e){return}this._className=e;this._changed.emit(undefined)}get closable(){return this._closable}set closable(e){if(this._closable===e){return}this._closable=e;this._changed.emit(undefined)}get dataset(){return this._dataset}set dataset(e){if(this._dataset===e){return}this._dataset=e;this._changed.emit(undefined)}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;p.Signal.clearData(this)}}class T{constructor(e={}){this._flags=0;this._layout=null;this._parent=null;this._disposed=new p.Signal(this);this._hiddenMode=T.HiddenMode.Display;this.node=E.createNode(e);this.addClass("lm-Widget")}dispose(){if(this.isDisposed){return}this.setFlag(T.Flag.IsDisposed);this._disposed.emit(undefined);if(this.parent){this.parent=null}else if(this.isAttached){T.detach(this)}if(this._layout){this._layout.dispose();this._layout=null}this.title.dispose();p.Signal.clearData(this);d.MessageLoop.clearData(this);h.AttachedProperty.clearData(this)}get disposed(){return this._disposed}get isDisposed(){return this.testFlag(T.Flag.IsDisposed)}get isAttached(){return this.testFlag(T.Flag.IsAttached)}get isHidden(){return this.testFlag(T.Flag.IsHidden)}get isVisible(){let e=this;do{if(e.isHidden||!e.isAttached){return false}e=e.parent}while(e!=null);return true}get title(){return E.titleProperty.get(this)}get id(){return this.node.id}set id(e){this.node.id=e}get dataset(){return this.node.dataset}get hiddenMode(){return this._hiddenMode}set hiddenMode(e){if(this._hiddenMode===e){return}if(this.isHidden){this._toggleHidden(false)}if(e==T.HiddenMode.Scale){this.node.style.willChange="transform"}else{this.node.style.willChange="auto"}this._hiddenMode=e;if(this.isHidden){this._toggleHidden(true)}}get parent(){return this._parent}set parent(e){if(this._parent===e){return}if(e&&this.contains(e)){throw new Error("Invalid parent widget.")}if(this._parent&&!this._parent.isDisposed){let e=new T.ChildMessage("child-removed",this);d.MessageLoop.sendMessage(this._parent,e)}this._parent=e;if(this._parent&&!this._parent.isDisposed){let e=new T.ChildMessage("child-added",this);d.MessageLoop.sendMessage(this._parent,e)}if(!this.isDisposed){d.MessageLoop.sendMessage(this,T.Msg.ParentChanged)}}get layout(){return this._layout}set layout(e){if(this._layout===e){return}if(this.testFlag(T.Flag.DisallowLayout)){throw new Error("Cannot set widget layout.")}if(this._layout){throw new Error("Cannot change widget layout.")}if(e.parent){throw new Error("Cannot change layout parent.")}this._layout=e;e.parent=this}*children(){if(this._layout){yield*this._layout}}contains(e){for(let t=e;t;t=t._parent){if(t===this){return true}}return false}hasClass(e){return this.node.classList.contains(e)}addClass(e){this.node.classList.add(e)}removeClass(e){this.node.classList.remove(e)}toggleClass(e,t){if(t===true){this.node.classList.add(e);return true}if(t===false){this.node.classList.remove(e);return false}return this.node.classList.toggle(e)}update(){d.MessageLoop.postMessage(this,T.Msg.UpdateRequest)}fit(){d.MessageLoop.postMessage(this,T.Msg.FitRequest)}activate(){d.MessageLoop.postMessage(this,T.Msg.ActivateRequest)}close(){d.MessageLoop.sendMessage(this,T.Msg.CloseRequest)}show(){if(!this.testFlag(T.Flag.IsHidden)){return}if(this.isAttached&&(!this.parent||this.parent.isVisible)){d.MessageLoop.sendMessage(this,T.Msg.BeforeShow)}this.clearFlag(T.Flag.IsHidden);this._toggleHidden(false);if(this.isAttached&&(!this.parent||this.parent.isVisible)){d.MessageLoop.sendMessage(this,T.Msg.AfterShow)}if(this.parent){let e=new T.ChildMessage("child-shown",this);d.MessageLoop.sendMessage(this.parent,e)}}hide(){if(this.testFlag(T.Flag.IsHidden)){return}if(this.isAttached&&(!this.parent||this.parent.isVisible)){d.MessageLoop.sendMessage(this,T.Msg.BeforeHide)}this.setFlag(T.Flag.IsHidden);this._toggleHidden(true);if(this.isAttached&&(!this.parent||this.parent.isVisible)){d.MessageLoop.sendMessage(this,T.Msg.AfterHide)}if(this.parent){let e=new T.ChildMessage("child-hidden",this);d.MessageLoop.sendMessage(this.parent,e)}}setHidden(e){if(e){this.hide()}else{this.show()}}testFlag(e){return(this._flags&e)!==0}setFlag(e){this._flags|=e}clearFlag(e){this._flags&=~e}processMessage(e){switch(e.type){case"resize":this.notifyLayout(e);this.onResize(e);break;case"update-request":this.notifyLayout(e);this.onUpdateRequest(e);break;case"fit-request":this.notifyLayout(e);this.onFitRequest(e);break;case"before-show":this.notifyLayout(e);this.onBeforeShow(e);break;case"after-show":this.setFlag(T.Flag.IsVisible);this.notifyLayout(e);this.onAfterShow(e);break;case"before-hide":this.notifyLayout(e);this.onBeforeHide(e);break;case"after-hide":this.clearFlag(T.Flag.IsVisible);this.notifyLayout(e);this.onAfterHide(e);break;case"before-attach":this.notifyLayout(e);this.onBeforeAttach(e);break;case"after-attach":if(!this.isHidden&&(!this.parent||this.parent.isVisible)){this.setFlag(T.Flag.IsVisible)}this.setFlag(T.Flag.IsAttached);this.notifyLayout(e);this.onAfterAttach(e);break;case"before-detach":this.notifyLayout(e);this.onBeforeDetach(e);break;case"after-detach":this.clearFlag(T.Flag.IsVisible);this.clearFlag(T.Flag.IsAttached);this.notifyLayout(e);this.onAfterDetach(e);break;case"activate-request":this.notifyLayout(e);this.onActivateRequest(e);break;case"close-request":this.notifyLayout(e);this.onCloseRequest(e);break;case"child-added":this.notifyLayout(e);this.onChildAdded(e);break;case"child-removed":this.notifyLayout(e);this.onChildRemoved(e);break;default:this.notifyLayout(e);break}}notifyLayout(e){if(this._layout){this._layout.processParentMessage(e)}}onCloseRequest(e){if(this.parent){this.parent=null}else if(this.isAttached){T.detach(this)}}onResize(e){}onUpdateRequest(e){}onFitRequest(e){}onActivateRequest(e){}onBeforeShow(e){}onAfterShow(e){}onBeforeHide(e){}onAfterHide(e){}onBeforeAttach(e){}onAfterAttach(e){}onBeforeDetach(e){}onAfterDetach(e){}onChildAdded(e){}onChildRemoved(e){}_toggleHidden(e){if(e){switch(this._hiddenMode){case T.HiddenMode.Display:this.addClass("lm-mod-hidden");break;case T.HiddenMode.Scale:this.node.style.transform="scale(0)";this.node.setAttribute("aria-hidden","true");break;case T.HiddenMode.ContentVisibility:this.node.style.contentVisibility="hidden";this.node.style.zIndex="-1";break}}else{switch(this._hiddenMode){case T.HiddenMode.Display:this.removeClass("lm-mod-hidden");break;case T.HiddenMode.Scale:this.node.style.transform="";this.node.removeAttribute("aria-hidden");break;case T.HiddenMode.ContentVisibility:this.node.style.contentVisibility="";this.node.style.zIndex="";break}}}}(function(e){(function(e){e[e["Display"]=0]="Display";e[e["Scale"]=1]="Scale";e[e["ContentVisibility"]=2]="ContentVisibility"})(e.HiddenMode||(e.HiddenMode={}));(function(e){e[e["IsDisposed"]=1]="IsDisposed";e[e["IsAttached"]=2]="IsAttached";e[e["IsHidden"]=4]="IsHidden";e[e["IsVisible"]=8]="IsVisible";e[e["DisallowLayout"]=16]="DisallowLayout"})(e.Flag||(e.Flag={}));(function(e){e.BeforeShow=new d.Message("before-show");e.AfterShow=new d.Message("after-show");e.BeforeHide=new d.Message("before-hide");e.AfterHide=new d.Message("after-hide");e.BeforeAttach=new d.Message("before-attach");e.AfterAttach=new d.Message("after-attach");e.BeforeDetach=new d.Message("before-detach");e.AfterDetach=new d.Message("after-detach");e.ParentChanged=new d.Message("parent-changed");e.UpdateRequest=new d.ConflatableMessage("update-request");e.FitRequest=new d.ConflatableMessage("fit-request");e.ActivateRequest=new d.ConflatableMessage("activate-request");e.CloseRequest=new d.ConflatableMessage("close-request")})(e.Msg||(e.Msg={}));class t extends d.Message{constructor(e,t){super(e);this.child=t}}e.ChildMessage=t;class n extends d.Message{constructor(e,t){super("resize");this.width=e;this.height=t}}e.ResizeMessage=n;(function(e){e.UnknownSize=new e(-1,-1)})(n=e.ResizeMessage||(e.ResizeMessage={}));function i(t,n,i=null){if(t.parent){throw new Error("Cannot attach a child widget.")}if(t.isAttached||t.node.isConnected){throw new Error("Widget is already attached.")}if(!n.isConnected){throw new Error("Host is not attached.")}d.MessageLoop.sendMessage(t,e.Msg.BeforeAttach);n.insertBefore(t.node,i);d.MessageLoop.sendMessage(t,e.Msg.AfterAttach)}e.attach=i;function s(t){if(t.parent){throw new Error("Cannot detach a child widget.")}if(!t.isAttached||!t.node.isConnected){throw new Error("Widget is not attached.")}d.MessageLoop.sendMessage(t,e.Msg.BeforeDetach);t.node.parentNode.removeChild(t.node);d.MessageLoop.sendMessage(t,e.Msg.AfterDetach)}e.detach=s})(T||(T={}));var E;(function(e){e.titleProperty=new h.AttachedProperty({name:"title",create:e=>new I({owner:e})});function t(e){return e.node||document.createElement(e.tag||"div")}e.createNode=t})(E||(E={}));class M{constructor(e={}){this._disposed=false;this._parent=null;this._fitPolicy=e.fitPolicy||"set-min-size"}dispose(){this._parent=null;this._disposed=true;p.Signal.clearData(this);h.AttachedProperty.clearData(this)}get isDisposed(){return this._disposed}get parent(){return this._parent}set parent(e){if(this._parent===e){return}if(this._parent){throw new Error("Cannot change parent widget.")}if(e.layout!==this){throw new Error("Invalid parent widget.")}this._parent=e;this.init()}get fitPolicy(){return this._fitPolicy}set fitPolicy(e){if(this._fitPolicy===e){return}this._fitPolicy=e;if(this._parent){let e=this._parent.node.style;e.minWidth="";e.minHeight="";e.maxWidth="";e.maxHeight="";this._parent.fit()}}processParentMessage(e){switch(e.type){case"resize":this.onResize(e);break;case"update-request":this.onUpdateRequest(e);break;case"fit-request":this.onFitRequest(e);break;case"before-show":this.onBeforeShow(e);break;case"after-show":this.onAfterShow(e);break;case"before-hide":this.onBeforeHide(e);break;case"after-hide":this.onAfterHide(e);break;case"before-attach":this.onBeforeAttach(e);break;case"after-attach":this.onAfterAttach(e);break;case"before-detach":this.onBeforeDetach(e);break;case"after-detach":this.onAfterDetach(e);break;case"child-removed":this.onChildRemoved(e);break;case"child-shown":this.onChildShown(e);break;case"child-hidden":this.onChildHidden(e);break}}init(){for(const e of this){e.parent=this.parent}}onResize(e){for(const t of this){d.MessageLoop.sendMessage(t,T.ResizeMessage.UnknownSize)}}onUpdateRequest(e){for(const t of this){d.MessageLoop.sendMessage(t,T.ResizeMessage.UnknownSize)}}onBeforeAttach(e){for(const t of this){d.MessageLoop.sendMessage(t,e)}}onAfterAttach(e){for(const t of this){d.MessageLoop.sendMessage(t,e)}}onBeforeDetach(e){for(const t of this){d.MessageLoop.sendMessage(t,e)}}onAfterDetach(e){for(const t of this){d.MessageLoop.sendMessage(t,e)}}onBeforeShow(e){for(const t of this){if(!t.isHidden){d.MessageLoop.sendMessage(t,e)}}}onAfterShow(e){for(const t of this){if(!t.isHidden){d.MessageLoop.sendMessage(t,e)}}}onBeforeHide(e){for(const t of this){if(!t.isHidden){d.MessageLoop.sendMessage(t,e)}}}onAfterHide(e){for(const t of this){if(!t.isHidden){d.MessageLoop.sendMessage(t,e)}}}onChildRemoved(e){this.removeWidget(e.child)}onFitRequest(e){}onChildShown(e){}onChildHidden(e){}}(function(e){function t(e){return A.horizontalAlignmentProperty.get(e)}e.getHorizontalAlignment=t;function n(e,t){A.horizontalAlignmentProperty.set(e,t)}e.setHorizontalAlignment=n;function i(e){return A.verticalAlignmentProperty.get(e)}e.getVerticalAlignment=i;function s(e,t){A.verticalAlignmentProperty.set(e,t)}e.setVerticalAlignment=s})(M||(M={}));class D{constructor(e){this._top=NaN;this._left=NaN;this._width=NaN;this._height=NaN;this._minWidth=0;this._minHeight=0;this._maxWidth=Infinity;this._maxHeight=Infinity;this._disposed=false;this.widget=e;this.widget.node.style.position="absolute";this.widget.node.style.contain="strict"}dispose(){if(this._disposed){return}this._disposed=true;let e=this.widget.node.style;e.position="";e.top="";e.left="";e.width="";e.height="";e.contain=""}get minWidth(){return this._minWidth}get minHeight(){return this._minHeight}get maxWidth(){return this._maxWidth}get maxHeight(){return this._maxHeight}get isDisposed(){return this._disposed}get isHidden(){return this.widget.isHidden}get isVisible(){return this.widget.isVisible}get isAttached(){return this.widget.isAttached}fit(){let e=a.ElementExt.sizeLimits(this.widget.node);this._minWidth=e.minWidth;this._minHeight=e.minHeight;this._maxWidth=e.maxWidth;this._maxHeight=e.maxHeight}update(e,t,n,i){let s=Math.max(this._minWidth,Math.min(n,this._maxWidth));let o=Math.max(this._minHeight,Math.min(i,this._maxHeight));if(s"center",changed:t});e.verticalAlignmentProperty=new h.AttachedProperty({name:"verticalAlignment",create:()=>"top",changed:t});function t(e){if(e.parent&&e.parent.layout){e.parent.update()}}})(A||(A={}));class P extends M{constructor(){super(...arguments);this._widgets=[]}dispose(){while(this._widgets.length>0){this._widgets.pop().dispose()}super.dispose()}get widgets(){return this._widgets}*[Symbol.iterator](){yield*this._widgets}addWidget(e){this.insertWidget(this._widgets.length,e)}insertWidget(e,t){t.parent=this.parent;let n=this._widgets.indexOf(t);let s=Math.max(0,Math.min(e,this._widgets.length));if(n===-1){i.ArrayExt.insert(this._widgets,s,t);if(this.parent){this.attachWidget(s,t)}return}if(s===this._widgets.length){s--}if(n===s){return}i.ArrayExt.move(this._widgets,n,s);if(this.parent){this.moveWidget(n,s,t)}}removeWidget(e){this.removeWidgetAt(this._widgets.indexOf(e))}removeWidgetAt(e){let t=i.ArrayExt.removeAt(this._widgets,e);if(t&&this.parent){this.detachWidget(e,t)}}init(){super.init();let e=0;for(const t of this){this.attachWidget(e++,t)}}attachWidget(e,t){let n=this.parent.node.children[e];if(this.parent.isAttached){d.MessageLoop.sendMessage(t,T.Msg.BeforeAttach)}this.parent.node.insertBefore(t.node,n);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,T.Msg.AfterAttach)}}moveWidget(e,t,n){if(this.parent.isAttached){d.MessageLoop.sendMessage(n,T.Msg.BeforeDetach)}this.parent.node.removeChild(n.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(n,T.Msg.AfterDetach)}let i=this.parent.node.children[t];if(this.parent.isAttached){d.MessageLoop.sendMessage(n,T.Msg.BeforeAttach)}this.parent.node.insertBefore(n.node,i);if(this.parent.isAttached){d.MessageLoop.sendMessage(n,T.Msg.AfterAttach)}}detachWidget(e,t){if(this.parent.isAttached){d.MessageLoop.sendMessage(t,T.Msg.BeforeDetach)}this.parent.node.removeChild(t.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,T.Msg.AfterDetach)}}}var L;(function(e){function t(e){return Math.max(0,Math.floor(e))}e.clampDimension=t})(L||(L={}));var R=L;class N extends P{constructor(e){super();this.widgetOffset=0;this._fixed=0;this._spacing=4;this._dirty=false;this._hasNormedSizes=false;this._sizers=[];this._items=[];this._handles=[];this._box=null;this._alignment="start";this._orientation="horizontal";this.renderer=e.renderer;if(e.orientation!==undefined){this._orientation=e.orientation}if(e.alignment!==undefined){this._alignment=e.alignment}if(e.spacing!==undefined){this._spacing=L.clampDimension(e.spacing)}}dispose(){for(const e of this._items){e.dispose()}this._box=null;this._items.length=0;this._sizers.length=0;this._handles.length=0;super.dispose()}get orientation(){return this._orientation}set orientation(e){if(this._orientation===e){return}this._orientation=e;if(!this.parent){return}this.parent.dataset["orientation"]=e;this.parent.fit()}get alignment(){return this._alignment}set alignment(e){if(this._alignment===e){return}this._alignment=e;if(!this.parent){return}this.parent.dataset["alignment"]=e;this.parent.update()}get spacing(){return this._spacing}set spacing(e){e=L.clampDimension(e);if(this._spacing===e){return}this._spacing=e;if(!this.parent){return}this.parent.fit()}get handles(){return this._handles}absoluteSizes(){return this._sizers.map((e=>e.size))}relativeSizes(){return B.normalize(this._sizers.map((e=>e.size)))}setRelativeSizes(e,t=true){let n=this._sizers.length;let i=e.slice(0,n);while(i.length0){s.sizeHint=s.size}}k.adjust(this._sizers,e,i);if(this.parent){this.parent.update()}}init(){this.parent.dataset["orientation"]=this.orientation;this.parent.dataset["alignment"]=this.alignment;super.init()}attachWidget(e,t){let n=new D(t);let s=B.createHandle(this.renderer);let o=B.averageSize(this._sizers);let r=B.createSizer(o);i.ArrayExt.insert(this._items,e,n);i.ArrayExt.insert(this._sizers,e,r);i.ArrayExt.insert(this._handles,e,s);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,T.Msg.BeforeAttach)}this.parent.node.appendChild(t.node);this.parent.node.appendChild(s);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,T.Msg.AfterAttach)}this.parent.fit()}moveWidget(e,t,n){i.ArrayExt.move(this._items,e,t);i.ArrayExt.move(this._sizers,e,t);i.ArrayExt.move(this._handles,e,t);this.parent.fit()}detachWidget(e,t){let n=i.ArrayExt.removeAt(this._items,e);let s=i.ArrayExt.removeAt(this._handles,e);i.ArrayExt.removeAt(this._sizers,e);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,T.Msg.BeforeDetach)}this.parent.node.removeChild(t.node);this.parent.node.removeChild(s);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,T.Msg.AfterDetach)}n.dispose();this.parent.fit()}onBeforeShow(e){super.onBeforeShow(e);this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e);this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){if(this.parent.isVisible){this._update(e.width,e.height)}}onUpdateRequest(e){if(this.parent.isVisible){this._update(-1,-1)}}onFitRequest(e){if(this.parent.isAttached){this._fit()}}updateItemPosition(e,t,n,i,s,o,r){const a=this._items[e];if(a.isHidden){return}let l=this._handles[e].style;if(t){n+=this.widgetOffset;a.update(n,i,r,s);n+=r;l.top=`${i}px`;l.left=`${n}px`;l.width=`${this._spacing}px`;l.height=`${s}px`}else{i+=this.widgetOffset;a.update(n,i,o,r);i+=r;l.top=`${i}px`;l.left=`${n}px`;l.width=`${o}px`;l.height=`${this._spacing}px`}}_fit(){let e=0;let t=-1;for(let a=0,l=this._items.length;a0){t.sizeHint=t.size}if(e.isHidden){t.minSize=0;t.maxSize=0;continue}e.fit();t.stretch=N.getStretch(e.widget);if(n){t.minSize=e.minWidth;t.maxSize=e.maxWidth;i+=e.minWidth;s=Math.max(s,e.minHeight)}else{t.minSize=e.minHeight;t.maxSize=e.maxHeight;s+=e.minHeight;i=Math.max(i,e.minWidth)}}let o=this._box=a.ElementExt.boxSizing(this.parent.node);i+=o.horizontalSum;s+=o.verticalSum;let r=this.parent.node.style;r.minWidth=`${i}px`;r.minHeight=`${s}px`;this._dirty=true;if(this.parent.parent){d.MessageLoop.sendMessage(this.parent.parent,T.Msg.FitRequest)}if(this._dirty){d.MessageLoop.sendMessage(this.parent,T.Msg.UpdateRequest)}}_update(e,t){this._dirty=false;let n=0;for(let a=0,h=this._items.length;a0){let e;if(c){e=Math.max(0,o-this._fixed)}else{e=Math.max(0,r-this._fixed)}if(this._hasNormedSizes){for(let t of this._sizers){t.sizeHint*=e}this._hasNormedSizes=false}let t=k.calc(this._sizers,e);if(t>0){switch(this._alignment){case"start":break;case"center":l=0;d=t/2;break;case"end":l=0;d=t;break;case"justify":l=t/n;d=0;break;default:throw"unreachable"}}}for(let a=0,h=this._items.length;a0,coerce:(e,t)=>Math.max(0,Math.floor(t)),changed:o});function t(e){let t=new j;t.sizeHint=Math.floor(e);return t}e.createSizer=t;function n(e){let t=e.createHandle();t.style.position="absolute";t.style.contain="style";return t}e.createHandle=n;function i(e){return e.reduce(((e,t)=>e+t.size),0)/e.length||0}e.averageSize=i;function s(e){let t=e.length;if(t===0){return[]}let n=e.reduce(((e,t)=>e+Math.abs(t)),0);return n===0?e.map((e=>1/t)):e.map((e=>e/n))}e.normalize=s;function o(e){if(e.parent&&e.parent.layout instanceof N){e.parent.fit()}}})(B||(B={}));class O extends N{constructor(e){super({...e,orientation:e.orientation||"vertical"});this._titles=[];this.titleSpace=e.titleSpace||22}get titleSpace(){return this.widgetOffset}set titleSpace(e){e=R.clampDimension(e);if(this.widgetOffset===e){return}this.widgetOffset=e;if(!this.parent){return}this.parent.fit()}get titles(){return this._titles}dispose(){if(this.isDisposed){return}this._titles.length=0;super.dispose()}updateTitle(e,t){const n=this._titles[e];const i=n.classList.contains("lm-mod-expanded");const s=F.createTitle(this.renderer,t.title,i);this._titles[e]=s;this.parent.node.replaceChild(s,n)}insertWidget(e,t){if(!t.id){t.id=`id-${o.UUID.uuid4()}`}super.insertWidget(e,t)}attachWidget(e,t){const n=F.createTitle(this.renderer,t.title);i.ArrayExt.insert(this._titles,e,n);this.parent.node.appendChild(n);t.node.setAttribute("role","region");t.node.setAttribute("aria-labelledby",n.id);super.attachWidget(e,t)}moveWidget(e,t,n){i.ArrayExt.move(this._titles,e,t);super.moveWidget(e,t,n)}detachWidget(e,t){const n=i.ArrayExt.removeAt(this._titles,e);this.parent.node.removeChild(n);super.detachWidget(e,t)}updateItemPosition(e,t,n,i,s,o,r){const a=this._titles[e].style;a.top=`${i}px`;a.left=`${n}px`;a.height=`${this.widgetOffset}px`;if(t){a.width=`${s}px`}else{a.width=`${o}px`}super.updateItemPosition(e,t,n,i,s,o,r)}}var F;(function(e){function t(e,t,n=true){const i=e.createSectionTitle(t);i.style.position="absolute";i.style.contain="strict";i.setAttribute("aria-label",`${t.label} Section`);i.setAttribute("aria-expanded",n?"true":"false");i.setAttribute("aria-controls",t.owner.id);if(n){i.classList.add("lm-mod-expanded")}return i}e.createTitle=t})(F||(F={}));class z extends T{constructor(e={}){super();this.addClass("lm-Panel");this.layout=W.createLayout(e)}get widgets(){return this.layout.widgets}addWidget(e){this.layout.addWidget(e)}insertWidget(e,t){this.layout.insertWidget(e,t)}}var W;(function(e){function t(e){return e.layout||new P}e.createLayout=t})(W||(W={}));class H extends z{constructor(e={}){super({layout:V.createLayout(e)});this._handleMoved=new p.Signal(this);this._pressData=null;this.addClass("lm-SplitPanel")}dispose(){this._releaseMouse();super.dispose()}get orientation(){return this.layout.orientation}set orientation(e){this.layout.orientation=e}get alignment(){return this.layout.alignment}set alignment(e){this.layout.alignment=e}get spacing(){return this.layout.spacing}set spacing(e){this.layout.spacing=e}get renderer(){return this.layout.renderer}get handleMoved(){return this._handleMoved}get handles(){return this.layout.handles}relativeSizes(){return this.layout.relativeSizes()}setRelativeSizes(e,t=true){this.layout.setRelativeSizes(e,t)}handleEvent(e){switch(e.type){case"pointerdown":this._evtPointerDown(e);break;case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"keydown":this._evtKeyDown(e);break;case"contextmenu":e.preventDefault();e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("pointerdown",this)}onAfterDetach(e){this.node.removeEventListener("pointerdown",this);this._releaseMouse()}onChildAdded(e){e.child.addClass("lm-SplitPanel-child");this._releaseMouse()}onChildRemoved(e){e.child.removeClass("lm-SplitPanel-child");this._releaseMouse()}_evtKeyDown(e){if(this._pressData){e.preventDefault();e.stopPropagation()}if(e.keyCode===27){this._releaseMouse()}}_evtPointerDown(e){if(e.button!==0){return}let t=this.layout;let n=i.ArrayExt.findFirstIndex(t.handles,(t=>t.contains(e.target)));if(n===-1){return}e.preventDefault();e.stopPropagation();document.addEventListener("pointerup",this,true);document.addEventListener("pointermove",this,true);document.addEventListener("keydown",this,true);document.addEventListener("contextmenu",this,true);let s;let o=t.handles[n];let r=o.getBoundingClientRect();if(t.orientation==="horizontal"){s=e.clientX-r.left}else{s=e.clientY-r.top}let a=window.getComputedStyle(o);let l=g.Drag.overrideCursor(a.cursor);this._pressData={index:n,delta:s,override:l}}_evtPointerMove(e){e.preventDefault();e.stopPropagation();let t;let n=this.layout;let i=this.node.getBoundingClientRect();if(n.orientation==="horizontal"){t=e.clientX-i.left-this._pressData.delta}else{t=e.clientY-i.top-this._pressData.delta}n.moveHandle(this._pressData.index,t)}_evtPointerUp(e){if(e.button!==0){return}e.preventDefault();e.stopPropagation();this._releaseMouse()}_releaseMouse(){if(!this._pressData){return}this._pressData.override.dispose();this._pressData=null;this._handleMoved.emit();document.removeEventListener("keydown",this,true);document.removeEventListener("pointerup",this,true);document.removeEventListener("pointermove",this,true);document.removeEventListener("contextmenu",this,true)}}(function(e){class t{createHandle(){let e=document.createElement("div");e.className="lm-SplitPanel-handle";return e}}e.Renderer=t;e.defaultRenderer=new t;function n(e){return N.getStretch(e)}e.getStretch=n;function i(e,t){N.setStretch(e,t)}e.setStretch=i})(H||(H={}));var V;(function(e){function t(e){return e.layout||new N({renderer:e.renderer||H.defaultRenderer,orientation:e.orientation,alignment:e.alignment,spacing:e.spacing})}e.createLayout=t})(V||(V={}));class U extends H{constructor(e={}){super({...e,layout:q.createLayout(e)});this._widgetSizesCache=new WeakMap;this._expansionToggled=new p.Signal(this);this.addClass("lm-AccordionPanel")}get renderer(){return this.layout.renderer}get titleSpace(){return this.layout.titleSpace}set titleSpace(e){this.layout.titleSpace=e}get titles(){return this.layout.titles}get expansionToggled(){return this._expansionToggled}addWidget(e){super.addWidget(e);e.title.changed.connect(this._onTitleChanged,this)}collapse(e){const t=this.layout.widgets[e];if(t&&!t.isHidden){this._toggleExpansion(e)}}expand(e){const t=this.layout.widgets[e];if(t&&t.isHidden){this._toggleExpansion(e)}}insertWidget(e,t){super.insertWidget(e,t);t.title.changed.connect(this._onTitleChanged,this)}handleEvent(e){super.handleEvent(e);switch(e.type){case"click":this._evtClick(e);break;case"keydown":this._eventKeyDown(e);break}}onBeforeAttach(e){this.node.addEventListener("click",this);this.node.addEventListener("keydown",this);super.onBeforeAttach(e)}onAfterDetach(e){super.onAfterDetach(e);this.node.removeEventListener("click",this);this.node.removeEventListener("keydown",this)}_onTitleChanged(e){const t=i.ArrayExt.findFirstIndex(this.widgets,(t=>t.contains(e.owner)));if(t>=0){this.layout.updateTitle(t,e.owner);this.update()}}_computeWidgetSize(e){const t=this.layout;const n=t.widgets[e];if(!n){return undefined}const i=n.isHidden;const s=t.absoluteSizes();const o=(i?-1:1)*this.spacing;const r=s.reduce(((e,t)=>e+t));let a=[...s];if(!i){const t=s[e];this._widgetSizesCache.set(n,t);a[e]=0;const i=a.map((e=>e>0)).lastIndexOf(true);if(i===-1){return undefined}a[i]=s[i]+t+o}else{const t=this._widgetSizesCache.get(n);if(!t){return undefined}a[e]+=t;const i=a.map((e=>e-t>0)).lastIndexOf(true);if(i===-1){a.forEach(((n,i)=>{if(i!==e){a[i]-=s[i]/r*(t-o)}}))}else{a[i]-=t-o}}return a.map((e=>e/(r+o)))}_evtClick(e){const t=e.target;if(t){const n=i.ArrayExt.findFirstIndex(this.titles,(e=>e.contains(t)));if(n>=0){e.preventDefault();e.stopPropagation();this._toggleExpansion(n)}}}_eventKeyDown(e){if(e.defaultPrevented){return}const t=e.target;let n=false;if(t){const s=i.ArrayExt.findFirstIndex(this.titles,(e=>e.contains(t)));if(s>=0){const i=e.keyCode.toString();if(e.key.match(/Space|Enter/)||i.match(/13|32/)){t.click();n=true}else if(this.orientation==="horizontal"?e.key.match(/ArrowLeft|ArrowRight/)||i.match(/37|39/):e.key.match(/ArrowUp|ArrowDown/)||i.match(/38|40/)){const t=e.key.match(/ArrowLeft|ArrowUp/)||i.match(/37|38/)?-1:1;const o=this.titles.length;const r=(s+o+t)%o;this.titles[r].focus();n=true}else if(e.key==="End"||i==="35"){this.titles[this.titles.length-1].focus();n=true}else if(e.key==="Home"||i==="36"){this.titles[0].focus();n=true}}if(n){e.preventDefault()}}}_toggleExpansion(e){const t=this.titles[e];const n=this.layout.widgets[e];const i=this._computeWidgetSize(e);if(i){this.setRelativeSizes(i,false)}if(n.isHidden){t.classList.add("lm-mod-expanded");t.setAttribute("aria-expanded","true");n.show()}else{t.classList.remove("lm-mod-expanded");t.setAttribute("aria-expanded","false");n.hide()}this._expansionToggled.emit(e)}}(function(e){class t extends H.Renderer{constructor(){super();this.titleClassName="lm-AccordionPanel-title";this._titleID=0;this._titleKeys=new WeakMap;this._uuid=++t._nInstance}createCollapseIcon(e){return document.createElement("span")}createSectionTitle(e){const t=document.createElement("h3");t.setAttribute("tabindex","0");t.id=this.createTitleKey(e);t.className=this.titleClassName;for(const s in e.dataset){t.dataset[s]=e.dataset[s]}const n=t.appendChild(this.createCollapseIcon(e));n.className="lm-AccordionPanel-titleCollapser";const i=t.appendChild(document.createElement("span"));i.className="lm-AccordionPanel-titleLabel";i.textContent=e.label;i.title=e.caption||e.label;return t}createTitleKey(e){let t=this._titleKeys.get(e);if(t===undefined){t=`title-key-${this._uuid}-${this._titleID++}`;this._titleKeys.set(e,t)}return t}}t._nInstance=0;e.Renderer=t;e.defaultRenderer=new t})(U||(U={}));var q;(function(e){function t(e){return e.layout||new O({renderer:e.renderer||U.defaultRenderer,orientation:e.orientation,alignment:e.alignment,spacing:e.spacing,titleSpace:e.titleSpace})}e.createLayout=t})(q||(q={}));class $ extends P{constructor(e={}){super();this._fixed=0;this._spacing=4;this._dirty=false;this._sizers=[];this._items=[];this._box=null;this._alignment="start";this._direction="top-to-bottom";if(e.direction!==undefined){this._direction=e.direction}if(e.alignment!==undefined){this._alignment=e.alignment}if(e.spacing!==undefined){this._spacing=R.clampDimension(e.spacing)}}dispose(){for(const e of this._items){e.dispose()}this._box=null;this._items.length=0;this._sizers.length=0;super.dispose()}get direction(){return this._direction}set direction(e){if(this._direction===e){return}this._direction=e;if(!this.parent){return}this.parent.dataset["direction"]=e;this.parent.fit()}get alignment(){return this._alignment}set alignment(e){if(this._alignment===e){return}this._alignment=e;if(!this.parent){return}this.parent.dataset["alignment"]=e;this.parent.update()}get spacing(){return this._spacing}set spacing(e){e=R.clampDimension(e);if(this._spacing===e){return}this._spacing=e;if(!this.parent){return}this.parent.fit()}init(){this.parent.dataset["direction"]=this.direction;this.parent.dataset["alignment"]=this.alignment;super.init()}attachWidget(e,t){i.ArrayExt.insert(this._items,e,new D(t));i.ArrayExt.insert(this._sizers,e,new j);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,T.Msg.BeforeAttach)}this.parent.node.appendChild(t.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,T.Msg.AfterAttach)}this.parent.fit()}moveWidget(e,t,n){i.ArrayExt.move(this._items,e,t);i.ArrayExt.move(this._sizers,e,t);this.parent.update()}detachWidget(e,t){let n=i.ArrayExt.removeAt(this._items,e);i.ArrayExt.removeAt(this._sizers,e);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,T.Msg.BeforeDetach)}this.parent.node.removeChild(t.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,T.Msg.AfterDetach)}n.dispose();this.parent.fit()}onBeforeShow(e){super.onBeforeShow(e);this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e);this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){if(this.parent.isVisible){this._update(e.width,e.height)}}onUpdateRequest(e){if(this.parent.isVisible){this._update(-1,-1)}}onFitRequest(e){if(this.parent.isAttached){this._fit()}}_fit(){let e=0;for(let r=0,a=this._items.length;r0){switch(this._alignment){case"start":break;case"center":d=0;c=l/2;break;case"end":d=0;c=l;break;case"justify":d=l/n;c=0;break;default:throw"unreachable"}}for(let a=0,h=this._items.length;a0,coerce:(e,t)=>Math.max(0,Math.floor(t)),changed:i});e.sizeBasisProperty=new h.AttachedProperty({name:"sizeBasis",create:()=>0,coerce:(e,t)=>Math.max(0,Math.floor(t)),changed:i});function t(e){return e==="left-to-right"||e==="right-to-left"}e.isHorizontal=t;function n(e){return Math.max(0,Math.floor(e))}e.clampSpacing=n;function i(e){if(e.parent&&e.parent.layout instanceof $){e.parent.fit()}}})(K||(K={}));class J extends z{constructor(e={}){super({layout:G.createLayout(e)});this.addClass("lm-BoxPanel")}get direction(){return this.layout.direction}set direction(e){this.layout.direction=e}get alignment(){return this.layout.alignment}set alignment(e){this.layout.alignment=e}get spacing(){return this.layout.spacing}set spacing(e){this.layout.spacing=e}onChildAdded(e){e.child.addClass("lm-BoxPanel-child")}onChildRemoved(e){e.child.removeClass("lm-BoxPanel-child")}}(function(e){function t(e){return $.getStretch(e)}e.getStretch=t;function n(e,t){$.setStretch(e,t)}e.setStretch=n;function i(e){return $.getSizeBasis(e)}e.getSizeBasis=i;function s(e,t){$.setSizeBasis(e,t)}e.setSizeBasis=s})(J||(J={}));var G;(function(e){function t(e){return e.layout||new $(e)}e.createLayout=t})(G||(G={}));class Y extends T{constructor(e){super({node:X.createNode()});this._activeIndex=-1;this._items=[];this._results=null;this.addClass("lm-CommandPalette");this.setFlag(T.Flag.DisallowLayout);this.commands=e.commands;this.renderer=e.renderer||Y.defaultRenderer;this.commands.commandChanged.connect(this._onGenericChange,this);this.commands.keyBindingChanged.connect(this._onGenericChange,this)}dispose(){this._items.length=0;this._results=null;super.dispose()}get searchNode(){return this.node.getElementsByClassName("lm-CommandPalette-search")[0]}get inputNode(){return this.node.getElementsByClassName("lm-CommandPalette-input")[0]}get contentNode(){return this.node.getElementsByClassName("lm-CommandPalette-content")[0]}get items(){return this._items}addItem(e){let t=X.createItem(this.commands,e);this._items.push(t);this.refresh();return t}addItems(e){const t=e.map((e=>X.createItem(this.commands,e)));t.forEach((e=>this._items.push(e)));this.refresh();return t}removeItem(e){this.removeItemAt(this._items.indexOf(e))}removeItemAt(e){let t=i.ArrayExt.removeAt(this._items,e);if(!t){return}this.refresh()}clearItems(){if(this._items.length===0){return}this._items.length=0;this.refresh()}refresh(){this._results=null;if(this.inputNode.value!==""){let e=this.node.getElementsByClassName("lm-close-icon")[0];e.style.display="inherit"}else{let e=this.node.getElementsByClassName("lm-close-icon")[0];e.style.display="none"}this.update()}handleEvent(e){switch(e.type){case"click":this._evtClick(e);break;case"keydown":this._evtKeyDown(e);break;case"input":this.refresh();break;case"focus":case"blur":this._toggleFocused();break}}onBeforeAttach(e){this.node.addEventListener("click",this);this.node.addEventListener("keydown",this);this.node.addEventListener("input",this);this.node.addEventListener("focus",this,true);this.node.addEventListener("blur",this,true)}onAfterDetach(e){this.node.removeEventListener("click",this);this.node.removeEventListener("keydown",this);this.node.removeEventListener("input",this);this.node.removeEventListener("focus",this,true);this.node.removeEventListener("blur",this,true)}onAfterShow(e){this.update();super.onAfterShow(e)}onActivateRequest(e){if(this.isAttached){let e=this.inputNode;e.focus();e.select()}}onUpdateRequest(e){if(!this.isVisible){b.VirtualDOM.render(null,this.contentNode);return}let t=this.inputNode.value;let n=this.contentNode;let s=this._results;if(!s){s=this._results=X.search(this._items,t);this._activeIndex=t?i.ArrayExt.findFirstIndex(s,X.canActivate):-1}if(!t&&s.length===0){b.VirtualDOM.render(null,n);return}if(t&&s.length===0){let e=this.renderer.renderEmptyMessage({query:t});b.VirtualDOM.render(e,n);return}let o=this.renderer;let r=this._activeIndex;let l=new Array(s.length);for(let i=0,a=s.length;i=s.length){n.scrollTop=0}else{let e=n.children[r];a.ElementExt.scrollIntoViewIfNeeded(n,e)}}_evtClick(e){if(e.button!==0){return}if(e.target.classList.contains("lm-close-icon")){this.inputNode.value="";this.refresh();return}let t=i.ArrayExt.findFirstIndex(this.contentNode.children,(t=>t.contains(e.target)));if(t===-1){return}e.preventDefault();e.stopPropagation();this._execute(t)}_evtKeyDown(e){if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey){return}switch(e.keyCode){case 13:e.preventDefault();e.stopPropagation();this._execute(this._activeIndex);break;case 38:e.preventDefault();e.stopPropagation();this._activatePreviousItem();break;case 40:e.preventDefault();e.stopPropagation();this._activateNextItem();break}}_activateNextItem(){if(!this._results||this._results.length===0){return}let e=this._activeIndex;let t=this._results.length;let n=ee-t));let h=a.slice(0,c);let u=a.slice(c);for(let i=0,p=u.length;in.command===e&&o.JSONExt.deepEqual(n.args,t)))||null}}})(X||(X={}));class Q extends T{constructor(e){super({node:Z.createNode()});this._childIndex=-1;this._activeIndex=-1;this._openTimerID=0;this._closeTimerID=0;this._items=[];this._childMenu=null;this._parentMenu=null;this._aboutToClose=new p.Signal(this);this._menuRequested=new p.Signal(this);this.addClass("lm-Menu");this.setFlag(T.Flag.DisallowLayout);this.commands=e.commands;this.renderer=e.renderer||Q.defaultRenderer}dispose(){this.close();this._items.length=0;super.dispose()}get aboutToClose(){return this._aboutToClose}get menuRequested(){return this._menuRequested}get parentMenu(){return this._parentMenu}get childMenu(){return this._childMenu}get rootMenu(){let e=this;while(e._parentMenu){e=e._parentMenu}return e}get leafMenu(){let e=this;while(e._childMenu){e=e._childMenu}return e}get contentNode(){return this.node.getElementsByClassName("lm-Menu-content")[0]}get activeItem(){return this._items[this._activeIndex]||null}set activeItem(e){this.activeIndex=e?this._items.indexOf(e):-1}get activeIndex(){return this._activeIndex}set activeIndex(e){if(e<0||e>=this._items.length){e=-1}if(e!==-1&&!Z.canActivate(this._items[e])){e=-1}if(this._activeIndex===e){return}this._activeIndex=e;if(this._activeIndex>=0&&this.contentNode.childNodes[this._activeIndex]){this.contentNode.childNodes[this._activeIndex].focus()}this.update()}get items(){return this._items}activateNextItem(){let e=this._items.length;let t=this._activeIndex;let n=t{this.activeIndex=r}})}b.VirtualDOM.render(o,this.contentNode)}onCloseRequest(e){this._cancelOpenTimer();this._cancelCloseTimer();this.activeIndex=-1;let t=this._childMenu;if(t){this._childIndex=-1;this._childMenu=null;t._parentMenu=null;t.close()}let n=this._parentMenu;if(n){this._parentMenu=null;n._childIndex=-1;n._childMenu=null;n.activate()}if(this.isAttached){this._aboutToClose.emit(undefined)}super.onCloseRequest(e)}_evtKeyDown(e){e.preventDefault();e.stopPropagation();let t=e.keyCode;if(t===13){this.triggerActiveItem();return}if(t===27){this.close();return}if(t===37){if(this._parentMenu){this.close()}else{this._menuRequested.emit("previous")}return}if(t===38){this.activatePreviousItem();return}if(t===39){let e=this.activeItem;if(e&&e.type==="submenu"){this.triggerActiveItem()}else{this.rootMenu._menuRequested.emit("next")}return}if(t===40){this.activateNextItem();return}let n=(0,x.getKeyboardLayout)().keyForKeydownEvent(e);if(!n){return}let i=this._activeIndex+1;let s=Z.findMnemonic(this._items,n,i);if(s.index!==-1&&!s.multiple){this.activeIndex=s.index;this.triggerActiveItem()}else if(s.index!==-1){this.activeIndex=s.index}else if(s.auto!==-1){this.activeIndex=s.auto}}_evtMouseUp(e){if(e.button!==0){return}e.preventDefault();e.stopPropagation();this.triggerActiveItem()}_evtMouseMove(e){let t=i.ArrayExt.findFirstIndex(this.contentNode.children,(t=>a.ElementExt.hitTest(t,e.clientX,e.clientY)));if(t===this._activeIndex){return}this.activeIndex=t;t=this.activeIndex;if(t===this._childIndex){this._cancelOpenTimer();this._cancelCloseTimer();return}if(this._childIndex!==-1){this._startCloseTimer()}this._cancelOpenTimer();let n=this.activeItem;if(!n||n.type!=="submenu"||!n.submenu){return}this._startOpenTimer()}_evtMouseEnter(e){for(let t=this._parentMenu;t;t=t._parentMenu){t._cancelOpenTimer();t._cancelCloseTimer();t.activeIndex=t._childIndex}}_evtMouseLeave(e){this._cancelOpenTimer();if(!this._childMenu){this.activeIndex=-1;return}let{clientX:t,clientY:n}=e;if(a.ElementExt.hitTest(this._childMenu.node,t,n)){this._cancelCloseTimer();return}this.activeIndex=-1;this._startCloseTimer()}_evtMouseDown(e){if(this._parentMenu){return}if(Z.hitTestMenus(this,e.clientX,e.clientY)){e.preventDefault();e.stopPropagation()}else{this.close()}}_openChildMenu(e=false){let t=this.activeItem;if(!t||t.type!=="submenu"||!t.submenu){this._closeChildMenu();return}let n=t.submenu;if(n===this._childMenu){return}Q.saveWindowData();this._closeChildMenu();this._childMenu=n;this._childIndex=this._activeIndex;n._parentMenu=this;d.MessageLoop.sendMessage(this,T.Msg.UpdateRequest);let i=this.contentNode.children[this._activeIndex];Z.openSubmenu(n,i);if(e){n.activeIndex=-1;n.activateNextItem()}n.activate()}_closeChildMenu(){if(this._childMenu){this._childMenu.close()}}_startOpenTimer(){if(this._openTimerID===0){this._openTimerID=window.setTimeout((()=>{this._openTimerID=0;this._openChildMenu()}),Z.TIMER_DELAY)}}_startCloseTimer(){if(this._closeTimerID===0){this._closeTimerID=window.setTimeout((()=>{this._closeTimerID=0;this._closeChildMenu()}),Z.TIMER_DELAY)}}_cancelOpenTimer(){if(this._openTimerID!==0){clearTimeout(this._openTimerID);this._openTimerID=0}}_cancelCloseTimer(){if(this._closeTimerID!==0){clearTimeout(this._closeTimerID);this._closeTimerID=0}}static saveWindowData(){Z.saveWindowData()}}(function(e){class t{renderItem(e){let t=this.createItemClass(e);let n=this.createItemDataset(e);let i=this.createItemARIA(e);return b.h.li({className:t,dataset:n,tabindex:"0",onfocus:e.onfocus,...i},this.renderIcon(e),this.renderLabel(e),this.renderShortcut(e),this.renderSubmenu(e))}renderIcon(e){let t=this.createIconClass(e);return b.h.div({className:t},e.item.icon,e.item.iconLabel)}renderLabel(e){let t=this.formatLabel(e);return b.h.div({className:"lm-Menu-itemLabel"},t)}renderShortcut(e){let t=this.formatShortcut(e);return b.h.div({className:"lm-Menu-itemShortcut"},t)}renderSubmenu(e){return b.h.div({className:"lm-Menu-itemSubmenuIcon"})}createItemClass(e){let t="lm-Menu-item";if(!e.item.isEnabled){t+=" lm-mod-disabled"}if(e.item.isToggled){t+=" lm-mod-toggled"}if(!e.item.isVisible){t+=" lm-mod-hidden"}if(e.active){t+=" lm-mod-active"}if(e.collapsed){t+=" lm-mod-collapsed"}let n=e.item.className;if(n){t+=` ${n}`}return t}createItemDataset(e){let t;let{type:n,command:i,dataset:s}=e.item;if(n==="command"){t={...s,type:n,command:i}}else{t={...s,type:n}}return t}createIconClass(e){let t="lm-Menu-itemIcon";let n=e.item.iconClass;return n?`${t} ${n}`:t}createItemARIA(e){let t={};switch(e.item.type){case"separator":t.role="presentation";break;case"submenu":t["aria-haspopup"]="true";if(!e.item.isEnabled){t["aria-disabled"]="true"}break;default:if(!e.item.isEnabled){t["aria-disabled"]="true"}if(e.item.isToggled){t.role="menuitemcheckbox";t["aria-checked"]="true"}else{t.role="menuitem"}}return t}formatLabel(e){let{label:t,mnemonic:n}=e.item;if(n<0||n>=t.length){return t}let i=t.slice(0,n);let s=t.slice(n+1);let o=t[n];let r=b.h.span({className:"lm-Menu-itemMnemonic"},o);return[i,r,s]}formatShortcut(e){let t=e.item.keyBinding;return t?v.CommandRegistry.formatKeystroke(t.keys):null}}e.Renderer=t;e.defaultRenderer=new t})(Q||(Q={}));var Z;(function(e){e.TIMER_DELAY=300;e.SUBMENU_OVERLAP=3;let t=null;let n=0;function s(){if(n>0){n--;return t}return m()}function r(){t=m();n++}e.saveWindowData=r;function l(){let e=document.createElement("div");let t=document.createElement("ul");t.className="lm-Menu-content";e.appendChild(t);t.setAttribute("role","menu");e.tabIndex=0;return e}e.createNode=l;function c(e){return e.type!=="separator"&&e.isEnabled&&e.isVisible}e.canActivate=c;function h(e,t){return new _(e.commands,t)}e.createItem=h;function u(e,t,n){for(let i=e;i;i=i.childMenu){if(a.ElementExt.hitTest(i.node,t,n)){return true}}return false}e.hitTestMenus=u;function p(e){let t=new Array(e.length);i.ArrayExt.fill(t,false);let n=0;let s=e.length;for(;n=0;--o){let n=e[o];if(!n.isVisible){continue}if(n.type!=="separator"){break}t[o]=true}let r=false;while(++nh+p){t=h+p-_}if(!o&&n+b>u+m){if(n>u+m){n=u+m-b}else{n=n-b}}v.transform=`translate(${Math.max(0,t)}px, ${Math.max(0,n)}px`;v.opacity="1"}e.openRootMenu=g;function f(t,n){const i=s();let o=i.pageXOffset;let r=i.pageYOffset;let l=i.clientWidth;let c=i.clientHeight;d.MessageLoop.sendMessage(t,T.Msg.UpdateRequest);let h=c;let u=t.node;let p=u.style;p.opacity="0";p.maxHeight=`${h}px`;T.attach(t,document.body);let{width:m,height:g}=u.getBoundingClientRect();let f=a.ElementExt.boxSizing(t.node);let v=n.getBoundingClientRect();let _=v.right-e.SUBMENU_OVERLAP;if(_+m>o+l){_=v.left+e.SUBMENU_OVERLAP-m}let b=v.top-f.borderTop-f.paddingTop;if(b+g>r+c){b=v.bottom+f.borderBottom+f.paddingBottom-g}p.transform=`translate(${Math.max(0,_)}px, ${Math.max(0,b)}px`;p.opacity="1"}e.openSubmenu=f;function v(e,t,n){let i=-1;let s=-1;let o=false;let r=t.toUpperCase();for(let a=0,l=e.length;a=0&&un.command===e&&o.JSONExt.deepEqual(n.args,t)))||null}return null}}})(Z||(Z={}));class ee{constructor(e){this._groupByTarget=true;this._idTick=0;this._items=[];this._sortBySelector=true;const{groupByTarget:t,sortBySelector:n,...i}=e;this.menu=new Q(i);this._groupByTarget=t!==false;this._sortBySelector=n!==false}addItem(e){let t=te.createItem(e,this._idTick++);this._items.push(t);return new w.DisposableDelegate((()=>{i.ArrayExt.removeFirstOf(this._items,t)}))}open(e){Q.saveWindowData();this.menu.clearItems();if(this._items.length===0){return false}let t=te.matchItems(this._items,e,this._groupByTarget,this._sortBySelector);if(!t||t.length===0){return false}for(const n of t){this.menu.addItem(n)}this.menu.open(e.clientX,e.clientY);return true}}var te;(function(e){function t(e,t){let n=i(e.selector);let s=e.rank!==undefined?e.rank:Infinity;return{...e,selector:n,rank:s,id:t}}e.createItem=t;function n(e,t,n,i){let r=t.target;if(!r){return null}let l=t.currentTarget;if(!l){return null}if(!l.contains(r)){r=document.elementFromPoint(t.clientX,t.clientY);if(!r||!l.contains(r)){return null}}let d=[];let c=e.slice();while(r!==null){let e=[];for(let t=0,n=c.length;t=this._titles.length){e=-1}if(this._currentIndex===e){return}let t=this._currentIndex;let n=this._titles[t]||null;let i=e;let s=this._titles[i]||null;this._currentIndex=i;this._previousTitle=n;this.update();this._currentChanged.emit({previousIndex:t,previousTitle:n,currentIndex:i,currentTitle:s})}get name(){return this._name}set name(e){this._name=e;if(e){this.contentNode.setAttribute("aria-label",e)}else{this.contentNode.removeAttribute("aria-label")}}get orientation(){return this._orientation}set orientation(e){if(this._orientation===e){return}this._releaseMouse();this._orientation=e;this.dataset["orientation"]=e;this.contentNode.setAttribute("aria-orientation",e)}get addButtonEnabled(){return this._addButtonEnabled}set addButtonEnabled(e){if(this._addButtonEnabled===e){return}this._addButtonEnabled=e;if(e){this.addButtonNode.classList.remove("lm-mod-hidden")}else{this.addButtonNode.classList.add("lm-mod-hidden")}}get titles(){return this._titles}get contentNode(){return this.node.getElementsByClassName("lm-TabBar-content")[0]}get addButtonNode(){return this.node.getElementsByClassName("lm-TabBar-addButton")[0]}addTab(e){return this.insertTab(this._titles.length,e)}insertTab(e,t){this._releaseMouse();let n=se.asTitle(t);let s=this._titles.indexOf(n);let o=Math.max(0,Math.min(e,this._titles.length));if(s===-1){i.ArrayExt.insert(this._titles,o,n);n.changed.connect(this._onTitleChanged,this);this.update();this._adjustCurrentForInsert(o,n);return n}if(o===this._titles.length){o--}if(s===o){return n}i.ArrayExt.move(this._titles,s,o);this.update();this._adjustCurrentForMove(s,o);return n}removeTab(e){this.removeTabAt(this._titles.indexOf(e))}removeTabAt(e){this._releaseMouse();let t=i.ArrayExt.removeAt(this._titles,e);if(!t){return}t.changed.disconnect(this._onTitleChanged,this);if(t===this._previousTitle){this._previousTitle=null}this.update();this._adjustCurrentForRemove(e,t)}clearTabs(){if(this._titles.length===0){return}this._releaseMouse();for(let n of this._titles){n.changed.disconnect(this._onTitleChanged,this)}let e=this.currentIndex;let t=this.currentTitle;this._currentIndex=-1;this._previousTitle=null;this._titles.length=0;this.update();if(e===-1){return}this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:-1,currentTitle:null})}releaseMouse(){this._releaseMouse()}handleEvent(e){switch(e.type){case"pointerdown":this._evtPointerDown(e);break;case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"dblclick":this._evtDblClick(e);break;case"keydown":e.eventPhase===Event.CAPTURING_PHASE?this._evtKeyDownCapturing(e):this._evtKeyDown(e);break;case"contextmenu":e.preventDefault();e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("pointerdown",this);this.node.addEventListener("dblclick",this);this.node.addEventListener("keydown",this)}onAfterDetach(e){this.node.removeEventListener("pointerdown",this);this.node.removeEventListener("dblclick",this);this.node.removeEventListener("keydown",this);this._releaseMouse()}onUpdateRequest(e){var t;let n=this._titles;let i=this.renderer;let s=this.currentTitle;let o=new Array(n.length);const r=(t=this._getCurrentTabindex())!==null&&t!==void 0?t:this._currentIndex>-1?this._currentIndex:0;for(let a=0,l=n.length;aa.ElementExt.hitTest(t,e.clientX,e.clientY)));if(n===-1){return}let s=this.titles[n];let o=t[n].querySelector(".lm-TabBar-tabLabel");if(o&&o.contains(e.target)){let e=s.label||"";let t=o.innerHTML;o.innerHTML="";let n=document.createElement("input");n.classList.add("lm-TabBar-tabInput");n.value=e;o.appendChild(n);let i=()=>{n.removeEventListener("blur",i);o.innerHTML=t;this.node.addEventListener("keydown",this)};n.addEventListener("dblclick",(e=>e.stopPropagation()));n.addEventListener("blur",i);n.addEventListener("keydown",(e=>{if(e.key==="Enter"){if(n.value!==""){s.label=s.caption=n.value}i()}else if(e.key==="Escape"){i()}}));this.node.removeEventListener("keydown",this);n.select();n.focus();if(o.children.length>0){o.children[0].focus()}}}_evtKeyDownCapturing(e){if(e.eventPhase!==Event.CAPTURING_PHASE){return}e.preventDefault();e.stopPropagation();if(e.key==="Escape"){this._releaseMouse()}}_evtKeyDown(e){var t,n,s;if(e.key==="Tab"||e.eventPhase===Event.CAPTURING_PHASE){return}if(e.key==="Enter"||e.key==="Spacebar"||e.key===" "){const t=document.activeElement;if(this.addButtonEnabled&&this.addButtonNode.contains(t)){e.preventDefault();e.stopPropagation();this._addRequested.emit()}else{const n=i.ArrayExt.findFirstIndex(this.contentNode.children,(e=>e.contains(t)));if(n>=0){e.preventDefault();e.stopPropagation();this.currentIndex=n}}}else if(ne.includes(e.key)){const i=[...this.contentNode.children];if(this.addButtonEnabled){i.push(this.addButtonNode)}if(i.length<=1){return}e.preventDefault();e.stopPropagation();let o=i.indexOf(document.activeElement);if(o===-1){o=this._currentIndex}let r;if(e.key==="ArrowRight"&&this._orientation==="horizontal"||e.key==="ArrowDown"&&this._orientation==="vertical"){r=(t=i[o+1])!==null&&t!==void 0?t:i[0]}else if(e.key==="ArrowLeft"&&this._orientation==="horizontal"||e.key==="ArrowUp"&&this._orientation==="vertical"){r=(n=i[o-1])!==null&&n!==void 0?n:i[i.length-1]}else if(e.key==="Home"){r=i[0]}else if(e.key==="End"){r=i[i.length-1]}if(r){(s=i[o])===null||s===void 0?void 0:s.setAttribute("tabindex","-1");r===null||r===void 0?void 0:r.setAttribute("tabindex","0");r.focus()}}}_evtPointerDown(e){if(e.button!==0&&e.button!==1){return}if(this._dragData){return}if(e.target.classList.contains("lm-TabBar-tabInput")){return}let t=this.addButtonEnabled&&this.addButtonNode.contains(e.target);let n=this.contentNode.children;let s=i.ArrayExt.findFirstIndex(n,(t=>a.ElementExt.hitTest(t,e.clientX,e.clientY)));if(s===-1&&!t){return}e.preventDefault();e.stopPropagation();this._dragData={tab:n[s],index:s,pressX:e.clientX,pressY:e.clientY,tabPos:-1,tabSize:-1,tabPressPos:-1,targetIndex:-1,tabLayout:null,contentRect:null,override:null,dragActive:false,dragAborted:false,detachRequested:false};this.document.addEventListener("pointerup",this,true);if(e.button===1||t){return}let o=n[s].querySelector(this.renderer.closeIconSelector);if(o&&o.contains(e.target)){return}if(this.tabsMovable){this.document.addEventListener("pointermove",this,true);this.document.addEventListener("keydown",this,true);this.document.addEventListener("contextmenu",this,true)}if(this.allowDeselect&&this.currentIndex===s){this.currentIndex=-1}else{this.currentIndex=s}if(this.currentIndex===-1){return}this._tabActivateRequested.emit({index:this.currentIndex,title:this.currentTitle})}_evtPointerMove(e){let t=this._dragData;if(!t){return}e.preventDefault();e.stopPropagation();let n=this.contentNode.children;if(!t.dragActive&&!se.dragExceeded(t,e)){return}if(!t.dragActive){let e=t.tab.getBoundingClientRect();if(this._orientation==="horizontal"){t.tabPos=t.tab.offsetLeft;t.tabSize=e.width;t.tabPressPos=t.pressX-e.left}else{t.tabPos=t.tab.offsetTop;t.tabSize=e.height;t.tabPressPos=t.pressY-e.top}t.tabPressOffset={x:t.pressX-e.left,y:t.pressY-e.top};t.tabLayout=se.snapTabLayout(n,this._orientation);t.contentRect=this.contentNode.getBoundingClientRect();t.override=g.Drag.overrideCursor("default");t.tab.classList.add("lm-mod-dragging");this.addClass("lm-mod-dragging");t.dragActive=true}if(!t.detachRequested&&se.detachExceeded(t,e)){t.detachRequested=true;let i=t.index;let s=e.clientX;let o=e.clientY;let r=n[i];let a=this._titles[i];this._tabDetachRequested.emit({index:i,title:a,tab:r,clientX:s,clientY:o,offset:t.tabPressOffset});if(t.dragAborted){return}}se.layoutTabs(n,t,e,this._orientation)}_evtPointerUp(e){if(e.button!==0&&e.button!==1){return}const t=this._dragData;if(!t){return}e.preventDefault();e.stopPropagation();this.document.removeEventListener("pointermove",this,true);this.document.removeEventListener("pointerup",this,true);this.document.removeEventListener("keydown",this,true);this.document.removeEventListener("contextmenu",this,true);if(!t.dragActive){this._dragData=null;let n=this.addButtonEnabled&&this.addButtonNode.contains(e.target);if(n){this._addRequested.emit(undefined);return}let s=this.contentNode.children;let o=i.ArrayExt.findFirstIndex(s,(t=>a.ElementExt.hitTest(t,e.clientX,e.clientY)));if(o!==t.index){return}let r=this._titles[o];if(!r.closable){return}if(e.button===1){this._tabCloseRequested.emit({index:o,title:r});return}let l=s[o].querySelector(this.renderer.closeIconSelector);if(l&&l.contains(e.target)){this._tabCloseRequested.emit({index:o,title:r});return}return}if(e.button!==0){return}se.finalizeTabPosition(t,this._orientation);t.tab.classList.remove("lm-mod-dragging");let n=se.parseTransitionDuration(t.tab);setTimeout((()=>{if(t.dragAborted){return}this._dragData=null;se.resetTabPositions(this.contentNode.children,this._orientation);t.override.dispose();this.removeClass("lm-mod-dragging");let e=t.index;let n=t.targetIndex;if(n===-1||e===n){return}i.ArrayExt.move(this._titles,e,n);this._adjustCurrentForMove(e,n);this._tabMoved.emit({fromIndex:e,toIndex:n,title:this._titles[n]});d.MessageLoop.sendMessage(this,T.Msg.UpdateRequest)}),n)}_releaseMouse(){let e=this._dragData;if(!e){return}this._dragData=null;this.document.removeEventListener("pointermove",this,true);this.document.removeEventListener("pointerup",this,true);this.document.removeEventListener("keydown",this,true);this.document.removeEventListener("contextmenu",this,true);e.dragAborted=true;if(!e.dragActive){return}se.resetTabPositions(this.contentNode.children,this._orientation);e.override.dispose();e.tab.classList.remove("lm-mod-dragging");this.removeClass("lm-mod-dragging")}_adjustCurrentForInsert(e,t){let n=this.currentTitle;let i=this._currentIndex;let s=this.insertBehavior;if(s==="select-tab"||s==="select-tab-if-needed"&&i===-1){this._currentIndex=e;this._previousTitle=n;this._currentChanged.emit({previousIndex:i,previousTitle:n,currentIndex:e,currentTitle:t});return}if(i>=e){this._currentIndex++}}_adjustCurrentForMove(e,t){if(this._currentIndex===e){this._currentIndex=t}else if(this._currentIndex=t){this._currentIndex++}else if(this._currentIndex>e&&this._currentIndex<=t){this._currentIndex--}}_adjustCurrentForRemove(e,t){let n=this._currentIndex;let i=this.removeBehavior;if(n!==e){if(n>e){this._currentIndex--}return}if(this._titles.length===0){this._currentIndex=-1;this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:-1,currentTitle:null});return}if(i==="select-tab-after"){this._currentIndex=Math.min(e,this._titles.length-1);this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:this._currentIndex,currentTitle:this.currentTitle});return}if(i==="select-tab-before"){this._currentIndex=Math.max(0,e-1);this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:this._currentIndex,currentTitle:this.currentTitle});return}if(i==="select-previous-tab"){if(this._previousTitle){this._currentIndex=this._titles.indexOf(this._previousTitle);this._previousTitle=null}else{this._currentIndex=Math.min(e,this._titles.length-1)}this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:this._currentIndex,currentTitle:this.currentTitle});return}this._currentIndex=-1;this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:-1,currentTitle:null})}_onTitleChanged(e){this.update()}}(function(e){class t{constructor(){this.closeIconSelector=".lm-TabBar-tabCloseIcon";this._tabID=0;this._tabKeys=new WeakMap;this._uuid=++t._nInstance}renderTab(e){let t=e.title.caption;let n=this.createTabKey(e);let i=n;let s=this.createTabStyle(e);let o=this.createTabClass(e);let r=this.createTabDataset(e);let a=this.createTabARIA(e);if(e.title.closable){return b.h.li({id:i,key:n,className:o,title:t,style:s,dataset:r,...a},this.renderIcon(e),this.renderLabel(e),this.renderCloseIcon(e))}else{return b.h.li({id:i,key:n,className:o,title:t,style:s,dataset:r,...a},this.renderIcon(e),this.renderLabel(e))}}renderIcon(e){const{title:t}=e;let n=this.createIconClass(e);return b.h.div({className:n},t.icon,t.iconLabel)}renderLabel(e){return b.h.div({className:"lm-TabBar-tabLabel"},e.title.label)}renderCloseIcon(e){return b.h.div({className:"lm-TabBar-tabCloseIcon"})}createTabKey(e){let t=this._tabKeys.get(e.title);if(t===undefined){t=`tab-key-${this._uuid}-${this._tabID++}`;this._tabKeys.set(e.title,t)}return t}createTabStyle(e){return{zIndex:`${e.zIndex}`}}createTabClass(e){let t="lm-TabBar-tab";if(e.title.className){t+=` ${e.title.className}`}if(e.title.closable){t+=" lm-mod-closable"}if(e.current){t+=" lm-mod-current"}return t}createTabDataset(e){return e.title.dataset}createTabARIA(e){var t;return{role:"tab","aria-selected":e.current.toString(),tabindex:`${(t=e.tabIndex)!==null&&t!==void 0?t:"-1"}`}}createIconClass(e){let t="lm-TabBar-tabIcon";let n=e.title.iconClass;return n?`${t} ${n}`:t}}t._nInstance=0;e.Renderer=t;e.defaultRenderer=new t;e.addButtonSelector=".lm-TabBar-addButton"})(ie||(ie={}));var se;(function(e){e.DRAG_THRESHOLD=5;e.DETACH_THRESHOLD=20;function t(){let e=document.createElement("div");let t=document.createElement("ul");t.setAttribute("role","tablist");t.className="lm-TabBar-content";e.appendChild(t);let n=document.createElement("div");n.className="lm-TabBar-addButton lm-mod-hidden";n.setAttribute("tabindex","-1");n.setAttribute("role","button");e.appendChild(n);return e}e.createNode=t;function n(e){return e instanceof I?e:new I(e)}e.asTitle=n;function i(e){let t=window.getComputedStyle(e);return 1e3*(parseFloat(t.transitionDuration)||0)}e.parseTransitionDuration=i;function s(e,t){let n=new Array(e.length);for(let i=0,s=e.length;i=e.DRAG_THRESHOLD||s>=e.DRAG_THRESHOLD}e.dragExceeded=o;function r(t,n){let i=t.contentRect;return n.clientX=i.right+e.DETACH_THRESHOLD||n.clientY=i.bottom+e.DETACH_THRESHOLD}e.detachExceeded=r;function a(e,t,n,i){let s;let o;let r;let a;if(i==="horizontal"){s=t.pressX;o=n.clientX-t.contentRect.left;r=n.clientX;a=t.contentRect.width}else{s=t.pressY;o=n.clientY-t.contentRect.top;r=n.clientY;a=t.contentRect.height}let l=t.index;let d=o-t.tabPressPos;let c=d+t.tabSize;for(let h=0,u=e.length;h>1);if(ht.index&&c>u){n=`${-t.tabSize-o.margin}px`;l=Math.max(l,h)}else if(h===t.index){let e=r-s;let i=a-(t.tabPos+t.tabSize);n=`${Math.max(-t.tabPos,Math.min(e,i))}px`}else{n=""}if(i==="horizontal"){e[h].style.left=n}else{e[h].style.top=n}}t.targetIndex=l}e.layoutTabs=a;function l(e,t){let n;if(t==="horizontal"){n=e.contentRect.width}else{n=e.contentRect.height}let i;if(e.targetIndex===e.index){i=0}else if(e.targetIndex>e.index){let t=e.tabLayout[e.targetIndex];i=t.pos+t.size-e.tabSize-e.tabPos}else{let t=e.tabLayout[e.targetIndex];i=t.pos-e.tabPos}let s=n-(e.tabPos+e.tabSize);let o=Math.max(-e.tabPos,Math.min(i,s));if(t==="horizontal"){e.tab.style.left=`${o}px`}else{e.tab.style.top=`${o}px`}}e.finalizeTabPosition=l;function d(e,t){for(const n of e){if(t==="horizontal"){n.style.left=""}else{n.style.top=""}}}e.resetTabPositions=d})(se||(se={}));class oe extends M{constructor(e){super();this._spacing=4;this._dirty=false;this._root=null;this._box=null;this._items=new Map;this.renderer=e.renderer;if(e.spacing!==undefined){this._spacing=R.clampDimension(e.spacing)}this._document=e.document||document;this._hiddenMode=e.hiddenMode!==undefined?e.hiddenMode:T.HiddenMode.Display}dispose(){let e=this[Symbol.iterator]();this._items.forEach((e=>{e.dispose()}));this._box=null;this._root=null;this._items.clear();for(const t of e){t.dispose()}super.dispose()}get hiddenMode(){return this._hiddenMode}set hiddenMode(e){if(this._hiddenMode===e){return}this._hiddenMode=e;for(const t of this.tabBars()){if(t.titles.length>1){for(const e of t.titles){e.owner.hiddenMode=this._hiddenMode}}}}get spacing(){return this._spacing}set spacing(e){e=R.clampDimension(e);if(this._spacing===e){return}this._spacing=e;if(!this.parent){return}this.parent.fit()}get isEmpty(){return this._root===null}[Symbol.iterator](){return this._root?this._root.iterAllWidgets():(0,i.empty)()}widgets(){return this._root?this._root.iterUserWidgets():(0,i.empty)()}selectedWidgets(){return this._root?this._root.iterSelectedWidgets():(0,i.empty)()}tabBars(){return this._root?this._root.iterTabBars():(0,i.empty)()}handles(){return this._root?this._root.iterHandles():(0,i.empty)()}moveHandle(e,t,n){let i=e.classList.contains("lm-mod-hidden");if(!this._root||i){return}let s=this._root.findSplitNode(e);if(!s){return}let o;if(s.node.orientation==="horizontal"){o=t-e.offsetLeft}else{o=n-e.offsetTop}if(o===0){return}s.node.holdSizes();k.adjust(s.node.sizers,s.index,o);if(this.parent){this.parent.update()}}saveLayout(){if(!this._root){return{main:null}}this._root.holdAllSizes();return{main:this._root.createConfig()}}restoreLayout(e){let t=new Set;let n;if(e.main){n=re.normalizeAreaConfig(e.main,t)}else{n=null}let i=this.widgets();let s=this.tabBars();let o=this.handles();this._root=null;for(const r of i){if(!t.has(r)){r.parent=null}}for(const r of s){r.dispose()}for(const r of o){if(r.parentNode){r.parentNode.removeChild(r)}}for(const r of t){r.parent=this.parent}if(n){this._root=re.realizeAreaConfig(n,{createTabBar:e=>this._createTabBar(),createHandle:()=>this._createHandle()},this._document)}else{this._root=null}if(!this.parent){return}t.forEach((e=>{this.attachWidget(e)}));this.parent.fit()}addWidget(e,t={}){let n=t.ref||null;let i=t.mode||"tab-after";let s=null;if(this._root&&n){s=this._root.findTabNode(n)}if(n&&!s){throw new Error("Reference widget is not in the layout.")}e.parent=this.parent;switch(i){case"tab-after":this._insertTab(e,n,s,true);break;case"tab-before":this._insertTab(e,n,s,false);break;case"split-top":this._insertSplit(e,n,s,"vertical",false);break;case"split-left":this._insertSplit(e,n,s,"horizontal",false);break;case"split-right":this._insertSplit(e,n,s,"horizontal",true);break;case"split-bottom":this._insertSplit(e,n,s,"vertical",true);break;case"merge-top":this._insertSplit(e,n,s,"vertical",false,true);break;case"merge-left":this._insertSplit(e,n,s,"horizontal",false,true);break;case"merge-right":this._insertSplit(e,n,s,"horizontal",true,true);break;case"merge-bottom":this._insertSplit(e,n,s,"vertical",true,true);break}if(!this.parent){return}this.attachWidget(e);this.parent.fit()}removeWidget(e){this._removeWidget(e);if(!this.parent){return}this.detachWidget(e);this.parent.fit()}hitTestTabAreas(e,t){if(!this._root||!this.parent||!this.parent.isVisible){return null}if(!this._box){this._box=a.ElementExt.boxSizing(this.parent.node)}let n=this.parent.node.getBoundingClientRect();let i=e-n.left-this._box.borderLeft;let s=t-n.top-this._box.borderTop;let o=this._root.hitTestTabNodes(i,s);if(!o){return null}let{tabBar:r,top:l,left:d,width:c,height:h}=o;let u=this._box.borderLeft+this._box.borderRight;let p=this._box.borderTop+this._box.borderBottom;let m=n.width-u-(d+c);let g=n.height-p-(l+h);return{tabBar:r,x:i,y:s,top:l,left:d,right:m,bottom:g,width:c,height:h}}init(){super.init();for(const e of this){this.attachWidget(e)}for(const e of this.handles()){this.parent.node.appendChild(e)}this.parent.fit()}attachWidget(e){if(this.parent.node===e.node.parentNode){return}this._items.set(e,new D(e));if(this.parent.isAttached){d.MessageLoop.sendMessage(e,T.Msg.BeforeAttach)}this.parent.node.appendChild(e.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(e,T.Msg.AfterAttach)}}detachWidget(e){if(this.parent.node!==e.node.parentNode){return}if(this.parent.isAttached){d.MessageLoop.sendMessage(e,T.Msg.BeforeDetach)}this.parent.node.removeChild(e.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(e,T.Msg.AfterDetach)}let t=this._items.get(e);if(t){this._items.delete(e);t.dispose()}}onBeforeShow(e){super.onBeforeShow(e);this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e);this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){if(this.parent.isVisible){this._update(e.width,e.height)}}onUpdateRequest(e){if(this.parent.isVisible){this._update(-1,-1)}}onFitRequest(e){if(this.parent.isAttached){this._fit()}}_removeWidget(e){if(!this._root){return}let t=this._root.findTabNode(e);if(!t){return}re.removeAria(e);if(t.tabBar.titles.length>1){t.tabBar.removeTab(e.title);if(this._hiddenMode===T.HiddenMode.Scale&&t.tabBar.titles.length==1){const e=t.tabBar.titles[0].owner;e.hiddenMode=T.HiddenMode.Display}return}t.tabBar.dispose();if(this._root===t){this._root=null;return}this._root.holdAllSizes();let n=t.parent;t.parent=null;let s=i.ArrayExt.removeFirstOf(n.children,t);let o=i.ArrayExt.removeAt(n.handles,s);i.ArrayExt.removeAt(n.sizers,s);if(o.parentNode){o.parentNode.removeChild(o)}if(n.children.length>1){n.syncHandles();return}let r=n.parent;n.parent=null;let a=n.children[0];let l=n.handles[0];n.children.length=0;n.handles.length=0;n.sizers.length=0;if(l.parentNode){l.parentNode.removeChild(l)}if(this._root===n){a.parent=null;this._root=a;return}let d=r;let c=d.children.indexOf(n);if(a instanceof re.TabLayoutNode){a.parent=d;d.children[c]=a;return}let h=i.ArrayExt.removeAt(d.handles,c);i.ArrayExt.removeAt(d.children,c);i.ArrayExt.removeAt(d.sizers,c);if(h.parentNode){h.parentNode.removeChild(h)}for(let u=0,p=a.children.length;u=this._left+this._width){return null}if(t=this._top+this._height){return null}return this}createConfig(){let e=this.tabBar.titles.map((e=>e.owner));let t=this.tabBar.currentIndex;return{type:"tab-area",widgets:e,currentIndex:t}}holdAllSizes(){return}fit(e,t){let n=0;let i=0;let s=Infinity;let o=Infinity;let r=t.get(this.tabBar);let a=this.tabBar.currentTitle;let l=a?t.get(a.owner):undefined;let[d,c]=this.sizers;if(r){r.fit()}if(l){l.fit()}if(r&&!r.isHidden){n=Math.max(n,r.minWidth);i+=r.minHeight;d.minSize=r.minHeight;d.maxSize=r.maxHeight}else{d.minSize=0;d.maxSize=0}if(l&&!l.isHidden){n=Math.max(n,l.minWidth);i+=l.minHeight;c.minSize=l.minHeight;c.maxSize=Infinity}else{c.minSize=0;c.maxSize=Infinity}return{minWidth:n,minHeight:i,maxWidth:s,maxHeight:o}}update(e,t,n,i,s,o){this._top=t;this._left=e;this._width=n;this._height=i;let r=o.get(this.tabBar);let a=this.tabBar.currentTitle;let l=a?o.get(a.owner):undefined;k.calc(this.sizers,i);if(r&&!r.isHidden){let i=this.sizers[0].size;r.update(e,t,n,i);t+=i}if(l&&!l.isHidden){let i=this.sizers[1].size;l.update(e,t,n,i)}}}e.TabLayoutNode=s;class o{constructor(e){this.parent=null;this.normalized=false;this.children=[];this.sizers=[];this.handles=[];this.orientation=e}*iterAllWidgets(){for(const e of this.children){yield*e.iterAllWidgets()}}*iterUserWidgets(){for(const e of this.children){yield*e.iterUserWidgets()}}*iterSelectedWidgets(){for(const e of this.children){yield*e.iterSelectedWidgets()}}*iterTabBars(){for(const e of this.children){yield*e.iterTabBars()}}*iterHandles(){yield*this.handles;for(const e of this.children){yield*e.iterHandles()}}findTabNode(e){for(let t=0,n=this.children.length;te.createConfig()));return{type:"split-area",orientation:e,children:n,sizes:t}}syncHandles(){this.handles.forEach(((e,t)=>{e.setAttribute("data-orientation",this.orientation);if(t===this.handles.length-1){e.classList.add("lm-mod-hidden")}else{e.classList.remove("lm-mod-hidden")}}))}holdSizes(){for(const e of this.sizers){e.sizeHint=e.size}}holdAllSizes(){for(const e of this.children){e.holdAllSizes()}this.holdSizes()}normalizeSizes(){let e=this.sizers.length;if(e===0){return}this.holdSizes();let t=this.sizers.reduce(((e,t)=>e+t.sizeHint),0);if(t===0){for(const t of this.sizers){t.size=t.sizeHint=1/e}}else{for(const e of this.sizers){e.size=e.sizeHint/=t}}this.normalized=true}createNormalizedSizes(){let e=this.sizers.length;if(e===0){return[]}let t=this.sizers.map((e=>e.size));let n=t.reduce(((e,t)=>e+t),0);if(n===0){for(let n=t.length-1;n>-1;n--){t[n]=1/e}}else{for(let e=t.length-1;e>-1;e--){t[e]/=n}}return t}fit(e,t){let n=this.orientation==="horizontal";let i=Math.max(0,this.children.length-1)*e;let s=n?i:0;let o=n?0:i;let r=Infinity;let a=Infinity;for(let l=0,d=this.children.length;l=n.length)){i=0}return{type:"tab-area",widgets:n,currentIndex:i}}function d(e,t){let i=e.orientation;let s=[];let o=[];for(let r=0,a=e.children.length;r{let l=i(o,n,s);let d=t(e.sizes[a]);let c=n.createHandle();r.children.push(l);r.handles.push(c);r.sizers.push(d);l.parent=r}));r.syncHandles();r.normalizeSizes();return r}})(re||(re={}));class ae extends T{constructor(e={}){super();this._drag=null;this._tabsMovable=true;this._tabsConstrained=false;this._addButtonEnabled=false;this._pressData=null;this._layoutModified=new p.Signal(this);this._addRequested=new p.Signal(this);this.addClass("lm-DockPanel");this._document=e.document||document;this._mode=e.mode||"multiple-document";this._renderer=e.renderer||ae.defaultRenderer;this._edges=e.edges||le.DEFAULT_EDGES;if(e.tabsMovable!==undefined){this._tabsMovable=e.tabsMovable}if(e.tabsConstrained!==undefined){this._tabsConstrained=e.tabsConstrained}if(e.addButtonEnabled!==undefined){this._addButtonEnabled=e.addButtonEnabled}this.dataset["mode"]=this._mode;let t={createTabBar:()=>this._createTabBar(),createHandle:()=>this._createHandle()};this.layout=new oe({document:this._document,renderer:t,spacing:e.spacing,hiddenMode:e.hiddenMode});this.overlay=e.overlay||new ae.Overlay;this.node.appendChild(this.overlay.node)}dispose(){this._releaseMouse();this.overlay.hide(0);if(this._drag){this._drag.dispose()}super.dispose()}get hiddenMode(){return this.layout.hiddenMode}set hiddenMode(e){this.layout.hiddenMode=e}get layoutModified(){return this._layoutModified}get addRequested(){return this._addRequested}get renderer(){return this.layout.renderer}get spacing(){return this.layout.spacing}set spacing(e){this.layout.spacing=e}get mode(){return this._mode}set mode(e){if(this._mode===e){return}this._mode=e;this.dataset["mode"]=e;let t=this.layout;switch(e){case"multiple-document":for(const e of t.tabBars()){e.show()}break;case"single-document":t.restoreLayout(le.createSingleDocumentConfig(this));break;default:throw"unreachable"}d.MessageLoop.postMessage(this,le.LayoutModified)}get tabsMovable(){return this._tabsMovable}set tabsMovable(e){this._tabsMovable=e;for(const t of this.tabBars()){t.tabsMovable=e}}get tabsConstrained(){return this._tabsConstrained}set tabsConstrained(e){this._tabsConstrained=e}get addButtonEnabled(){return this._addButtonEnabled}set addButtonEnabled(e){this._addButtonEnabled=e;for(const t of this.tabBars()){t.addButtonEnabled=e}}get isEmpty(){return this.layout.isEmpty}*widgets(){yield*this.layout.widgets()}*selectedWidgets(){yield*this.layout.selectedWidgets()}*tabBars(){yield*this.layout.tabBars()}*handles(){yield*this.layout.handles()}selectWidget(e){let t=(0,i.find)(this.tabBars(),(t=>t.titles.indexOf(e.title)!==-1));if(!t){throw new Error("Widget is not contained in the dock panel.")}t.currentTitle=e.title}activateWidget(e){this.selectWidget(e);e.activate()}saveLayout(){return this.layout.saveLayout()}restoreLayout(e){this._mode="multiple-document";this.layout.restoreLayout(e);if(a.Platform.IS_EDGE||a.Platform.IS_IE){d.MessageLoop.flush()}d.MessageLoop.postMessage(this,le.LayoutModified)}addWidget(e,t={}){if(this._mode==="single-document"){this.layout.addWidget(e)}else{this.layout.addWidget(e,t)}d.MessageLoop.postMessage(this,le.LayoutModified)}processMessage(e){if(e.type==="layout-modified"){this._layoutModified.emit(undefined)}else{super.processMessage(e)}}handleEvent(e){switch(e.type){case"lm-dragenter":this._evtDragEnter(e);break;case"lm-dragleave":this._evtDragLeave(e);break;case"lm-dragover":this._evtDragOver(e);break;case"lm-drop":this._evtDrop(e);break;case"pointerdown":this._evtPointerDown(e);break;case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"keydown":this._evtKeyDown(e);break;case"contextmenu":e.preventDefault();e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("lm-dragenter",this);this.node.addEventListener("lm-dragleave",this);this.node.addEventListener("lm-dragover",this);this.node.addEventListener("lm-drop",this);this.node.addEventListener("pointerdown",this)}onAfterDetach(e){this.node.removeEventListener("lm-dragenter",this);this.node.removeEventListener("lm-dragleave",this);this.node.removeEventListener("lm-dragover",this);this.node.removeEventListener("lm-drop",this);this.node.removeEventListener("pointerdown",this);this._releaseMouse()}onChildAdded(e){if(le.isGeneratedTabBarProperty.get(e.child)){return}e.child.addClass("lm-DockPanel-widget")}onChildRemoved(e){if(le.isGeneratedTabBarProperty.get(e.child)){return}e.child.removeClass("lm-DockPanel-widget");d.MessageLoop.postMessage(this,le.LayoutModified)}_evtDragEnter(e){if(e.mimeData.hasData("application/vnd.lumino.widget-factory")){e.preventDefault();e.stopPropagation()}}_evtDragLeave(e){e.preventDefault();if(this._tabsConstrained&&e.source!==this)return;e.stopPropagation();this.overlay.hide(1)}_evtDragOver(e){e.preventDefault();if(this._tabsConstrained&&e.source!==this||this._showOverlay(e.clientX,e.clientY)==="invalid"){e.dropAction="none"}else{e.stopPropagation();e.dropAction=e.proposedAction}}_evtDrop(e){e.preventDefault();this.overlay.hide(0);if(e.proposedAction==="none"){e.dropAction="none";return}let{clientX:t,clientY:n}=e;let{zone:i,target:s}=le.findDropTarget(this,t,n,this._edges);if(this._tabsConstrained&&e.source!==this||i==="invalid"){e.dropAction="none";return}let o=e.mimeData;let r=o.getData("application/vnd.lumino.widget-factory");if(typeof r!=="function"){e.dropAction="none";return}let a=r();if(!(a instanceof T)){e.dropAction="none";return}if(a.contains(this)){e.dropAction="none";return}let l=s?le.getDropRef(s.tabBar):null;switch(i){case"root-all":this.addWidget(a);break;case"root-top":this.addWidget(a,{mode:"split-top"});break;case"root-left":this.addWidget(a,{mode:"split-left"});break;case"root-right":this.addWidget(a,{mode:"split-right"});break;case"root-bottom":this.addWidget(a,{mode:"split-bottom"});break;case"widget-all":this.addWidget(a,{mode:"tab-after",ref:l});break;case"widget-top":this.addWidget(a,{mode:"split-top",ref:l});break;case"widget-left":this.addWidget(a,{mode:"split-left",ref:l});break;case"widget-right":this.addWidget(a,{mode:"split-right",ref:l});break;case"widget-bottom":this.addWidget(a,{mode:"split-bottom",ref:l});break;case"widget-tab":this.addWidget(a,{mode:"tab-after",ref:l});break;default:throw"unreachable"}e.dropAction=e.proposedAction;e.stopPropagation();this.activateWidget(a)}_evtKeyDown(e){e.preventDefault();e.stopPropagation();if(e.keyCode===27){this._releaseMouse();d.MessageLoop.postMessage(this,le.LayoutModified)}}_evtPointerDown(e){if(e.button!==0){return}let t=this.layout;let n=e.target;let s=(0,i.find)(t.handles(),(e=>e.contains(n)));if(!s){return}e.preventDefault();e.stopPropagation();this._document.addEventListener("keydown",this,true);this._document.addEventListener("pointerup",this,true);this._document.addEventListener("pointermove",this,true);this._document.addEventListener("contextmenu",this,true);let o=s.getBoundingClientRect();let r=e.clientX-o.left;let a=e.clientY-o.top;let l=window.getComputedStyle(s);let d=g.Drag.overrideCursor(l.cursor,this._document);this._pressData={handle:s,deltaX:r,deltaY:a,override:d}}_evtPointerMove(e){if(!this._pressData){return}e.preventDefault();e.stopPropagation();let t=this.node.getBoundingClientRect();let n=e.clientX-t.left-this._pressData.deltaX;let i=e.clientY-t.top-this._pressData.deltaY;let s=this.layout;s.moveHandle(this._pressData.handle,n,i)}_evtPointerUp(e){if(e.button!==0){return}e.preventDefault();e.stopPropagation();this._releaseMouse();d.MessageLoop.postMessage(this,le.LayoutModified)}_releaseMouse(){if(!this._pressData){return}this._pressData.override.dispose();this._pressData=null;this._document.removeEventListener("keydown",this,true);this._document.removeEventListener("pointerup",this,true);this._document.removeEventListener("pointermove",this,true);this._document.removeEventListener("contextmenu",this,true)}_showOverlay(e,t){let{zone:n,target:i}=le.findDropTarget(this,e,t,this._edges);if(n==="invalid"){this.overlay.hide(100);return n}let s;let o;let r;let l;let d=a.ElementExt.boxSizing(this.node);let c=this.node.getBoundingClientRect();switch(n){case"root-all":s=d.paddingTop;o=d.paddingLeft;r=d.paddingRight;l=d.paddingBottom;break;case"root-top":s=d.paddingTop;o=d.paddingLeft;r=d.paddingRight;l=c.height*le.GOLDEN_RATIO;break;case"root-left":s=d.paddingTop;o=d.paddingLeft;r=c.width*le.GOLDEN_RATIO;l=d.paddingBottom;break;case"root-right":s=d.paddingTop;o=c.width*le.GOLDEN_RATIO;r=d.paddingRight;l=d.paddingBottom;break;case"root-bottom":s=c.height*le.GOLDEN_RATIO;o=d.paddingLeft;r=d.paddingRight;l=d.paddingBottom;break;case"widget-all":s=i.top;o=i.left;r=i.right;l=i.bottom;break;case"widget-top":s=i.top;o=i.left;r=i.right;l=i.bottom+i.height/2;break;case"widget-left":s=i.top;o=i.left;r=i.right+i.width/2;l=i.bottom;break;case"widget-right":s=i.top;o=i.left+i.width/2;r=i.right;l=i.bottom;break;case"widget-bottom":s=i.top+i.height/2;o=i.left;r=i.right;l=i.bottom;break;case"widget-tab":{const e=i.tabBar.node.getBoundingClientRect().height;s=i.top;o=i.left;r=i.right;l=i.bottom+i.height-e;break}default:throw"unreachable"}this.overlay.show({top:s,left:o,right:r,bottom:l});return n}_createTabBar(){let e=this._renderer.createTabBar(this._document);le.isGeneratedTabBarProperty.set(e,true);if(this._mode==="single-document"){e.hide()}e.tabsMovable=this._tabsMovable;e.allowDeselect=false;e.addButtonEnabled=this._addButtonEnabled;e.removeBehavior="select-previous-tab";e.insertBehavior="select-tab-if-needed";e.tabMoved.connect(this._onTabMoved,this);e.currentChanged.connect(this._onCurrentChanged,this);e.tabCloseRequested.connect(this._onTabCloseRequested,this);e.tabDetachRequested.connect(this._onTabDetachRequested,this);e.tabActivateRequested.connect(this._onTabActivateRequested,this);e.addRequested.connect(this._onTabAddRequested,this);return e}_createHandle(){return this._renderer.createHandle()}_onTabMoved(){d.MessageLoop.postMessage(this,le.LayoutModified)}_onCurrentChanged(e,t){let{previousTitle:n,currentTitle:i}=t;if(n){n.owner.hide()}if(i){i.owner.show()}if(a.Platform.IS_EDGE||a.Platform.IS_IE){d.MessageLoop.flush()}d.MessageLoop.postMessage(this,le.LayoutModified)}_onTabAddRequested(e){this._addRequested.emit(e)}_onTabActivateRequested(e,t){t.title.owner.activate()}_onTabCloseRequested(e,t){t.title.owner.close()}_onTabDetachRequested(e,t){if(this._drag){return}e.releaseMouse();let{title:n,tab:i,clientX:s,clientY:r,offset:a}=t;let l=new o.MimeData;let d=()=>n.owner;l.setData("application/vnd.lumino.widget-factory",d);let c=i.cloneNode(true);if(a){c.style.top=`-${a.y}px`;c.style.left=`-${a.x}px`}this._drag=new g.Drag({document:this._document,mimeData:l,dragImage:c,proposedAction:"move",supportedActions:"move",source:this});i.classList.add("lm-mod-hidden");let h=()=>{this._drag=null;i.classList.remove("lm-mod-hidden")};this._drag.start(s,r).then(h)}}(function(e){class t{constructor(){this._timer=-1;this._hidden=true;this.node=document.createElement("div");this.node.classList.add("lm-DockPanel-overlay");this.node.classList.add("lm-mod-hidden");this.node.style.position="absolute";this.node.style.contain="strict"}show(e){let t=this.node.style;t.top=`${e.top}px`;t.left=`${e.left}px`;t.right=`${e.right}px`;t.bottom=`${e.bottom}px`;clearTimeout(this._timer);this._timer=-1;if(!this._hidden){return}this._hidden=false;this.node.classList.remove("lm-mod-hidden")}hide(e){if(this._hidden){return}if(e<=0){clearTimeout(this._timer);this._timer=-1;this._hidden=true;this.node.classList.add("lm-mod-hidden");return}if(this._timer!==-1){return}this._timer=window.setTimeout((()=>{this._timer=-1;this._hidden=true;this.node.classList.add("lm-mod-hidden")}),e)}}e.Overlay=t;class n{createTabBar(e){let t=new ie({document:e});t.addClass("lm-DockPanel-tabBar");return t}createHandle(){let e=document.createElement("div");e.className="lm-DockPanel-handle";return e}}e.Renderer=n;e.defaultRenderer=new n})(ae||(ae={}));var le;(function(e){e.GOLDEN_RATIO=.618;e.DEFAULT_EDGES={top:12,right:40,bottom:40,left:40};e.LayoutModified=new d.ConflatableMessage("layout-modified");e.isGeneratedTabBarProperty=new h.AttachedProperty({name:"isGeneratedTabBar",create:()=>false});function t(e){if(e.isEmpty){return{main:null}}let t=Array.from(e.widgets());let n=e.selectedWidgets().next().value;let i=n?t.indexOf(n):-1;return{main:{type:"tab-area",widgets:t,currentIndex:i}}}e.createSingleDocumentConfig=t;function n(e,t,n,i){if(!a.ElementExt.hitTest(e.node,t,n)){return{zone:"invalid",target:null}}let s=e.layout;if(s.isEmpty){return{zone:"root-all",target:null}}if(e.mode==="multiple-document"){let s=e.node.getBoundingClientRect();let o=t-s.left+1;let r=n-s.top+1;let a=s.right-t;let l=s.bottom-n;let d=Math.min(r,a,l,o);switch(d){case r:if(ru&&d>u&&l>p&&c>p){return{zone:"widget-all",target:o}}r/=u;l/=p;d/=u;c/=p;let m=Math.min(r,l,d,c);let g;switch(m){case r:g="widget-left";break;case l:g="widget-top";break;case d:g="widget-right";break;case c:g="widget-bottom";break;default:throw"unreachable"}return{zone:g,target:o}}e.findDropTarget=n;function i(e){if(e.titles.length===0){return null}if(e.currentTitle){return e.currentTitle.owner}return e.titles[e.titles.length-1].owner}e.getDropRef=i})(le||(le={}));class de{constructor(){this._counter=0;this._widgets=[];this._activeWidget=null;this._currentWidget=null;this._numbers=new Map;this._nodes=new Map;this._activeChanged=new p.Signal(this);this._currentChanged=new p.Signal(this)}dispose(){if(this._counter<0){return}this._counter=-1;p.Signal.clearData(this);for(const e of this._widgets){e.node.removeEventListener("focus",this,true);e.node.removeEventListener("blur",this,true)}this._activeWidget=null;this._currentWidget=null;this._nodes.clear();this._numbers.clear();this._widgets.length=0}get currentChanged(){return this._currentChanged}get activeChanged(){return this._activeChanged}get isDisposed(){return this._counter<0}get currentWidget(){return this._currentWidget}get activeWidget(){return this._activeWidget}get widgets(){return this._widgets}focusNumber(e){let t=this._numbers.get(e);return t===undefined?-1:t}has(e){return this._numbers.has(e)}add(e){if(this._numbers.has(e)){return}let t=e.node.contains(document.activeElement);let n=t?this._counter++:-1;this._widgets.push(e);this._numbers.set(e,n);this._nodes.set(e.node,e);e.node.addEventListener("focus",this,true);e.node.addEventListener("blur",this,true);e.disposed.connect(this._onWidgetDisposed,this);if(t){this._setWidgets(e,e)}}remove(e){if(!this._numbers.has(e)){return}e.disposed.disconnect(this._onWidgetDisposed,this);e.node.removeEventListener("focus",this,true);e.node.removeEventListener("blur",this,true);i.ArrayExt.removeFirstOf(this._widgets,e);this._nodes.delete(e.node);this._numbers.delete(e);if(this._currentWidget!==e){return}let t=this._widgets.filter((e=>this._numbers.get(e)!==-1));let n=(0,i.max)(t,((e,t)=>{let n=this._numbers.get(e);let i=this._numbers.get(t);return n-i}))||null;this._setWidgets(n,null)}handleEvent(e){switch(e.type){case"focus":this._evtFocus(e);break;case"blur":this._evtBlur(e);break}}_setWidgets(e,t){let n=this._currentWidget;this._currentWidget=e;let i=this._activeWidget;this._activeWidget=t;if(n!==e){this._currentChanged.emit({oldValue:n,newValue:e})}if(i!==t){this._activeChanged.emit({oldValue:i,newValue:t})}}_evtFocus(e){let t=this._nodes.get(e.currentTarget);if(t!==this._currentWidget){this._numbers.set(t,this._counter++)}this._setWidgets(t,t)}_evtBlur(e){let t=this._nodes.get(e.currentTarget);let n=e.relatedTarget;if(!n){this._setWidgets(this._currentWidget,null);return}if(t.node.contains(n)){return}if(!(0,i.find)(this._widgets,(e=>e.node.contains(n)))){this._setWidgets(this._currentWidget,null);return}}_onWidgetDisposed(e){this.remove(e)}}class ce extends M{constructor(e={}){super(e);this._dirty=false;this._rowSpacing=4;this._columnSpacing=4;this._items=[];this._rowStarts=[];this._columnStarts=[];this._rowSizers=[new j];this._columnSizers=[new j];this._box=null;if(e.rowCount!==undefined){he.reallocSizers(this._rowSizers,e.rowCount)}if(e.columnCount!==undefined){he.reallocSizers(this._columnSizers,e.columnCount)}if(e.rowSpacing!==undefined){this._rowSpacing=he.clampValue(e.rowSpacing)}if(e.columnSpacing!==undefined){this._columnSpacing=he.clampValue(e.columnSpacing)}}dispose(){for(const e of this._items){let t=e.widget;e.dispose();t.dispose()}this._box=null;this._items.length=0;this._rowStarts.length=0;this._rowSizers.length=0;this._columnStarts.length=0;this._columnSizers.length=0;super.dispose()}get rowCount(){return this._rowSizers.length}set rowCount(e){if(e===this.rowCount){return}he.reallocSizers(this._rowSizers,e);if(this.parent){this.parent.fit()}}get columnCount(){return this._columnSizers.length}set columnCount(e){if(e===this.columnCount){return}he.reallocSizers(this._columnSizers,e);if(this.parent){this.parent.fit()}}get rowSpacing(){return this._rowSpacing}set rowSpacing(e){e=he.clampValue(e);if(this._rowSpacing===e){return}this._rowSpacing=e;if(this.parent){this.parent.fit()}}get columnSpacing(){return this._columnSpacing}set columnSpacing(e){e=he.clampValue(e);if(this._columnSpacing===e){return}this._columnSpacing=e;if(this.parent){this.parent.fit()}}rowStretch(e){let t=this._rowSizers[e];return t?t.stretch:-1}setRowStretch(e,t){let n=this._rowSizers[e];if(!n){return}t=he.clampValue(t);if(n.stretch===t){return}n.stretch=t;if(this.parent){this.parent.update()}}columnStretch(e){let t=this._columnSizers[e];return t?t.stretch:-1}setColumnStretch(e,t){let n=this._columnSizers[e];if(!n){return}t=he.clampValue(t);if(n.stretch===t){return}n.stretch=t;if(this.parent){this.parent.update()}}*[Symbol.iterator](){for(const e of this._items){yield e.widget}}addWidget(e){let t=i.ArrayExt.findFirstIndex(this._items,(t=>t.widget===e));if(t!==-1){return}this._items.push(new D(e));if(this.parent){this.attachWidget(e)}}removeWidget(e){let t=i.ArrayExt.findFirstIndex(this._items,(t=>t.widget===e));if(t===-1){return}let n=i.ArrayExt.removeAt(this._items,t);if(this.parent){this.detachWidget(e)}n.dispose()}init(){super.init();for(const e of this){this.attachWidget(e)}}attachWidget(e){if(this.parent.isAttached){d.MessageLoop.sendMessage(e,T.Msg.BeforeAttach)}this.parent.node.appendChild(e.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(e,T.Msg.AfterAttach)}this.parent.fit()}detachWidget(e){if(this.parent.isAttached){d.MessageLoop.sendMessage(e,T.Msg.BeforeDetach)}this.parent.node.removeChild(e.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(e,T.Msg.AfterDetach)}this.parent.fit()}onBeforeShow(e){super.onBeforeShow(e);this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e);this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){if(this.parent.isVisible){this._update(e.width,e.height)}}onUpdateRequest(e){if(this.parent.isVisible){this._update(-1,-1)}}onFitRequest(e){if(this.parent.isAttached){this._fit()}}_fit(){for(let a=0,l=this.rowCount;a!e.isHidden));for(let a=0,l=e.length;a({row:0,column:0,rowSpan:1,columnSpan:1}),changed:a});function t(e){let t=Math.max(0,Math.floor(e.row||0));let n=Math.max(0,Math.floor(e.column||0));let i=Math.max(1,Math.floor(e.rowSpan||0));let s=Math.max(1,Math.floor(e.columnSpan||0));return{row:t,column:n,rowSpan:i,columnSpan:s}}e.normalizeConfig=t;function n(e){return Math.max(0,Math.floor(e))}e.clampValue=n;function i(t,n){let i=e.cellConfigProperty.get(t.widget);let s=e.cellConfigProperty.get(n.widget);return i.rowSpan-s.rowSpan}e.rowSpanCmp=i;function s(t,n){let i=e.cellConfigProperty.get(t.widget);let s=e.cellConfigProperty.get(n.widget);return i.columnSpan-s.columnSpan}e.columnSpanCmp=s;function o(e,t){t=Math.max(1,Math.floor(t));while(e.lengtht){e.length=t}}e.reallocSizers=o;function r(e,t,n,i){if(n=i){return}let o=(i-s)/(n-t+1);for(let r=t;r<=n;++r){e[r].minSize+=o}}e.distributeMin=r;function a(e){if(e.parent&&e.parent.layout instanceof ce){e.parent.fit()}}})(he||(he={}));class ue extends T{constructor(e={}){super({node:pe.createNode()});this._activeIndex=-1;this._tabFocusIndex=0;this._menus=[];this._childMenu=null;this._overflowMenu=null;this._menuItemSizes=[];this._overflowIndex=-1;this.addClass("lm-MenuBar");this.setFlag(T.Flag.DisallowLayout);this.renderer=e.renderer||ue.defaultRenderer;this._forceItemsPosition=e.forceItemsPosition||{forceX:true,forceY:true};this._overflowMenuOptions=e.overflowMenuOptions||{isVisible:true}}dispose(){this._closeChildMenu();this._menus.length=0;super.dispose()}get childMenu(){return this._childMenu}get overflowIndex(){return this._overflowIndex}get overflowMenu(){return this._overflowMenu}get contentNode(){return this.node.getElementsByClassName("lm-MenuBar-content")[0]}get activeMenu(){return this._menus[this._activeIndex]||null}set activeMenu(e){this.activeIndex=e?this._menus.indexOf(e):-1}get activeIndex(){return this._activeIndex}set activeIndex(e){if(e<0||e>=this._menus.length){e=-1}if(e>-1&&this._menus[e].items.length===0){e=-1}if(this._activeIndex===e){return}this._activeIndex=e;this.update()}get menus(){return this._menus}openActiveMenu(){if(this._activeIndex===-1){return}this._openChildMenu();if(this._childMenu){this._childMenu.activeIndex=-1;this._childMenu.activateNextItem()}}addMenu(e,t=true){this.insertMenu(this._menus.length,e,t)}insertMenu(e,t,n=true){this._closeChildMenu();let s=this._menus.indexOf(t);let o=Math.max(0,Math.min(e,this._menus.length));if(s===-1){i.ArrayExt.insert(this._menus,o,t);t.addClass("lm-MenuBar-menu");t.aboutToClose.connect(this._onMenuAboutToClose,this);t.menuRequested.connect(this._onMenuMenuRequested,this);t.title.changed.connect(this._onTitleChanged,this);if(n){this.update()}return}if(o===this._menus.length){o--}if(s===o){return}i.ArrayExt.move(this._menus,s,o);if(n){this.update()}}removeMenu(e,t=true){this.removeMenuAt(this._menus.indexOf(e),t)}removeMenuAt(e,t=true){this._closeChildMenu();let n=i.ArrayExt.removeAt(this._menus,e);if(!n){return}n.aboutToClose.disconnect(this._onMenuAboutToClose,this);n.menuRequested.disconnect(this._onMenuMenuRequested,this);n.title.changed.disconnect(this._onTitleChanged,this);n.removeClass("lm-MenuBar-menu");if(t){this.update()}}clearMenus(){if(this._menus.length===0){return}this._closeChildMenu();for(let e of this._menus){e.aboutToClose.disconnect(this._onMenuAboutToClose,this);e.menuRequested.disconnect(this._onMenuMenuRequested,this);e.title.changed.disconnect(this._onTitleChanged,this);e.removeClass("lm-MenuBar-menu")}this._menus.length=0;this.update()}handleEvent(e){switch(e.type){case"keydown":this._evtKeyDown(e);break;case"mousedown":this._evtMouseDown(e);break;case"mousemove":case"mouseleave":this._evtMouseMove(e);break;case"focusout":this._evtFocusOut(e);break;case"contextmenu":e.preventDefault();e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("keydown",this);this.node.addEventListener("mousedown",this);this.node.addEventListener("mousemove",this);this.node.addEventListener("mouseleave",this);this.node.addEventListener("focusout",this);this.node.addEventListener("contextmenu",this)}onAfterDetach(e){this.node.removeEventListener("keydown",this);this.node.removeEventListener("mousedown",this);this.node.removeEventListener("mousemove",this);this.node.removeEventListener("mouseleave",this);this.node.removeEventListener("focusout",this);this.node.removeEventListener("contextmenu",this);this._closeChildMenu()}onActivateRequest(e){if(this.isAttached){this._focusItemAt(0)}}onResize(e){this.update();super.onResize(e)}onUpdateRequest(e){var t;let n=this._menus;let i=this.renderer;let s=this._activeIndex;let o=this._tabFocusIndex>=0&&this._tabFocusIndex-1?this._overflowIndex:n.length;let a=0;let l=false;r=this._overflowMenu!==null?r-1:r;let d=new Array(r);for(let c=0;c{this._tabFocusIndex=c;this.activeIndex=c}});a+=this._menuItemSizes[c];if(n[c].title.label===this._overflowMenuOptions.title){l=true;r--}}if(this._overflowMenuOptions.isVisible){if(this._overflowIndex>-1&&!l){if(this._overflowMenu===null){const e=(t=this._overflowMenuOptions.title)!==null&&t!==void 0?t:"...";this._overflowMenu=new Q({commands:new v.CommandRegistry});this._overflowMenu.title.label=e;this._overflowMenu.title.mnemonic=0;this.addMenu(this._overflowMenu,false)}for(let e=n.length-2;e>=r;e--){const t=this.menus[e];t.title.mnemonic=0;this._overflowMenu.insertItem(0,{type:"submenu",submenu:t});this.removeMenu(t,false)}d[r]=i.renderItem({title:this._overflowMenu.title,active:r===s&&n[r].items.length!==0,tabbable:r===o,disabled:n[r].items.length===0,onfocus:()=>{this._tabFocusIndex=r;this.activeIndex=r}});r++}else if(this._overflowMenu!==null){let e=this._overflowMenu.items;let t=this.node.offsetWidth;let s=this._overflowMenu.items.length;for(let l=0;lthis._menuItemSizes[s]){let t=e[0].submenu;this._overflowMenu.removeItemAt(0);this.insertMenu(r,t,false);d[r]=i.renderItem({title:t.title,active:false,tabbable:r===o,disabled:n[r].items.length===0,onfocus:()=>{this._tabFocusIndex=r;this.activeIndex=r}});r++}}if(this._overflowMenu.items.length===0){this.removeMenu(this._overflowMenu,false);d.pop();this._overflowMenu=null;this._overflowIndex=-1}}}b.VirtualDOM.render(d,this.contentNode);this._updateOverflowIndex()}_updateOverflowIndex(){if(!this._overflowMenuOptions.isVisible){return}const e=this.contentNode.childNodes;let t=this.node.offsetWidth;let n=0;let i=-1;let s=e.length;if(this._menuItemSizes.length==0){for(let o=0;ot&&i===-1){i=o}}}else{for(let e=0;et){i=e;break}}}this._overflowIndex=i}_evtKeyDown(e){let t=e.keyCode;if(t===9){this.activeIndex=-1;return}e.preventDefault();e.stopPropagation();if(t===13||t===32||t===38||t===40){this.activeIndex=this._tabFocusIndex;if(this.activeIndex!==this._tabFocusIndex){return}this.openActiveMenu();return}if(t===27){this._closeChildMenu();this._focusItemAt(this.activeIndex);return}if(t===37||t===39){let e=t===37?-1:1;let n=this._tabFocusIndex+e;let i=this._menus.length;for(let t=0;ta.ElementExt.hitTest(t,e.clientX,e.clientY)));if(t===-1){this._closeChildMenu();return}if(e.button!==0){return}if(this._childMenu){this._closeChildMenu();this.activeIndex=t}else{e.preventDefault();const n=this._positionForMenu(t);Q.saveWindowData();this.activeIndex=t;this._openChildMenu(n)}}_evtMouseMove(e){let t=i.ArrayExt.findFirstIndex(this.contentNode.children,(t=>a.ElementExt.hitTest(t,e.clientX,e.clientY)));if(t===this._activeIndex){return}if(t===-1&&this._childMenu){return}const n=t>=0&&this._childMenu?this._positionForMenu(t):null;Q.saveWindowData();this.activeIndex=t;if(n){this._openChildMenu(n)}}_positionForMenu(e){let t=this.contentNode.children[e];let{left:n,bottom:i}=t.getBoundingClientRect();return{top:i,left:n}}_evtFocusOut(e){if(!this._childMenu&&!this.node.contains(e.relatedTarget)){this.activeIndex=-1}}_focusItemAt(e){const t=this.contentNode.childNodes[e];if(t){t.focus()}}_openChildMenu(e={}){let t=this.activeMenu;if(!t){this._closeChildMenu();return}let n=this._childMenu;if(n===t){return}this._childMenu=t;if(n){n.close()}else{document.addEventListener("mousedown",this,true)}this._tabFocusIndex=this.activeIndex;d.MessageLoop.sendMessage(this,T.Msg.UpdateRequest);let{left:i,top:s}=e;if(typeof i==="undefined"||typeof s==="undefined"){({left:i,top:s}=this._positionForMenu(this._activeIndex))}if(!n){this.addClass("lm-mod-active")}if(t.items.length>0){t.open(i,s,this._forceItemsPosition)}}_closeChildMenu(){if(!this._childMenu){return}this.removeClass("lm-mod-active");document.removeEventListener("mousedown",this,true);let e=this._childMenu;this._childMenu=null;e.close();this.activeIndex=-1}_onMenuAboutToClose(e){if(e!==this._childMenu){return}this.removeClass("lm-mod-active");document.removeEventListener("mousedown",this,true);this._childMenu=null;this.activeIndex=-1}_onMenuMenuRequested(e,t){if(e!==this._childMenu){return}let n=this._activeIndex;let i=this._menus.length;switch(t){case"next":this.activeIndex=n===i-1?0:n+1;break;case"previous":this.activeIndex=n===0?i-1:n-1;break}this.openActiveMenu()}_onTitleChanged(){this.update()}}(function(e){class t{renderItem(e){let t=this.createItemClass(e);let n=this.createItemDataset(e);let i=this.createItemARIA(e);return b.h.li({className:t,dataset:n,...e.disabled?{}:{tabindex:e.tabbable?"0":"-1"},onfocus:e.onfocus,...i},this.renderIcon(e),this.renderLabel(e))}renderIcon(e){let t=this.createIconClass(e);return b.h.div({className:t},e.title.icon,e.title.iconLabel)}renderLabel(e){let t=this.formatLabel(e);return b.h.div({className:"lm-MenuBar-itemLabel"},t)}createItemClass(e){let t="lm-MenuBar-item";if(e.title.className){t+=` ${e.title.className}`}if(e.active&&!e.disabled){t+=" lm-mod-active"}return t}createItemDataset(e){return e.title.dataset}createItemARIA(e){return{role:"menuitem","aria-haspopup":"true","aria-disabled":e.disabled?"true":"false"}}createIconClass(e){let t="lm-MenuBar-itemIcon";let n=e.title.iconClass;return n?`${t} ${n}`:t}formatLabel(e){let{label:t,mnemonic:n}=e.title;if(n<0||n>=t.length){return t}let i=t.slice(0,n);let s=t.slice(n+1);let o=t[n];let r=b.h.span({className:"lm-MenuBar-itemMnemonic"},o);return[i,r,s]}}e.Renderer=t;e.defaultRenderer=new t})(ue||(ue={}));var pe;(function(e){function t(){let e=document.createElement("div");let t=document.createElement("ul");t.className="lm-MenuBar-content";e.appendChild(t);t.setAttribute("role","menubar");return e}e.createNode=t;function n(e,t,n){let i=-1;let s=-1;let o=false;let r=t.toUpperCase();for(let a=0,l=e.length;a=0&&c{this._repeatTimer=-1;if(!this._pressData){return}let e=this._pressData.part;if(e==="thumb"){return}this._repeatTimer=window.setTimeout(this._onRepeat,20);let t=this._pressData.mouseX;let n=this._pressData.mouseY;if(e==="decrement"){if(!a.ElementExt.hitTest(this.decrementNode,t,n)){return}this._stepRequested.emit("decrement");return}if(e==="increment"){if(!a.ElementExt.hitTest(this.incrementNode,t,n)){return}this._stepRequested.emit("increment");return}if(e==="track"){if(!a.ElementExt.hitTest(this.trackNode,t,n)){return}let e=this.thumbNode;if(a.ElementExt.hitTest(e,t,n)){return}let i=e.getBoundingClientRect();let s;if(this._orientation==="horizontal"){s=t1){this.widgets.forEach((e=>{e.hiddenMode=this._hiddenMode}))}}dispose(){for(const e of this._items){e.dispose()}this._box=null;this._items.length=0;super.dispose()}attachWidget(e,t){if(this._hiddenMode===T.HiddenMode.Scale&&this._items.length>0){if(this._items.length===1){this.widgets[0].hiddenMode=T.HiddenMode.Scale}t.hiddenMode=T.HiddenMode.Scale}else{t.hiddenMode=T.HiddenMode.Display}i.ArrayExt.insert(this._items,e,new D(t));if(this.parent.isAttached){d.MessageLoop.sendMessage(t,T.Msg.BeforeAttach)}this.parent.node.appendChild(t.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,T.Msg.AfterAttach)}this.parent.fit()}moveWidget(e,t,n){i.ArrayExt.move(this._items,e,t);this.parent.update()}detachWidget(e,t){let n=i.ArrayExt.removeAt(this._items,e);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,T.Msg.BeforeDetach)}this.parent.node.removeChild(t.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,T.Msg.AfterDetach)}n.widget.node.style.zIndex="";if(this._hiddenMode===T.HiddenMode.Scale){t.hiddenMode=T.HiddenMode.Display;if(this._items.length===1){this._items[0].widget.hiddenMode=T.HiddenMode.Display}}n.dispose();this.parent.fit()}onBeforeShow(e){super.onBeforeShow(e);this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e);this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){if(this.parent.isVisible){this._update(e.width,e.height)}}onUpdateRequest(e){if(this.parent.isVisible){this._update(-1,-1)}}onFitRequest(e){if(this.parent.isAttached){this._fit()}}_fit(){let e=0;let t=0;for(let s=0,o=this._items.length;s{"use strict";var i=n(85072);var s=n.n(i);var o=n(97825);var r=n.n(o);var a=n(77659);var l=n.n(a);var d=n(55056);var c=n.n(d);var h=n(10540);var u=n.n(h);var p=n(41113);var m=n.n(p);var g=n(43210);var f={};f.styleTagTransform=m();f.setAttributes=c();f.insert=l().bind(null,"head");f.domAPI=r();f.insertStyleElement=u();var v=s()(g.A,f);const _=g.A&&g.A.locals?g.A.locals:undefined},24118:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n|\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n#jp-MainLogo {\n width: calc(var(--jp-private-sidebar-tab-width) + var(--jp-border-width));\n}\n\n#jp-top-bar {\n --jp-private-toolbar-height: var(--jp-private-menu-panel-height);\n\n flex: 1 1 auto;\n padding: 0 2px;\n box-shadow: none;\n border: none;\n align-items: center;\n}\n",""]);const l=a},30966:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=n(14016);var l=n(5173);var d=n(51632);var c=n(60341);var h=n(10891);var u=n(83161);var p=n(68010);var m=n(40348);var g=n(43701);var f=n(93768);var v=r()(s());v.i(a.A);v.i(l.A);v.i(d.A);v.i(c.A);v.i(h.A);v.i(u.A);v.i(p.A);v.i(m.A);v.i(g.A);v.i(f.A);v.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/* Sibling imports */\n",""]);const _=v},68010:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n/*-----------------------------------------------------------------------------\n| Variables\n|----------------------------------------------------------------------------*/\n\n:root {\n --jp-flat-button-height: 24px;\n --jp-flat-button-padding: 8px 12px;\n}\n\n/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-ThemedContainer button {\n border-radius: var(--jp-border-radius);\n}\n\n.jp-ThemedContainer button:focus-visible {\n outline: 1px solid var(--jp-accept-color-active, var(--jp-brand-color1));\n outline-offset: -1px;\n}\n\nbutton.jp-mod-styled.jp-mod-accept {\n background: var(--jp-accept-color-normal, var(--md-blue-500, #2196f3));\n border: 0;\n color: white;\n}\n\nbutton.jp-mod-styled.jp-mod-accept:hover {\n background: var(--jp-accept-color-hover, var(--md-blue-600, #1e88e5));\n}\n\nbutton.jp-mod-styled.jp-mod-accept:active {\n background: var(--jp-accept-color-active, var(--md-blue-700, #1976d2));\n}\n\nbutton.jp-mod-styled.jp-mod-accept:focus-visible {\n outline: 1px solid var(--jp-accept-color-active, var(--jp-brand-color1));\n}\n\nbutton.jp-mod-styled.jp-mod-reject {\n background: var(--jp-reject-color-normal, var(--md-grey-500, #9e9e9e));\n border: 0;\n color: white;\n}\n\nbutton.jp-mod-styled.jp-mod-reject:hover {\n background: var(--jp-reject-color-hover, var(--md-grey-600, #757575));\n}\n\nbutton.jp-mod-styled.jp-mod-reject:active {\n background: var(--jp-reject-color-active, var(--md-grey-700, #616161));\n}\n\nbutton.jp-mod-styled.jp-mod-reject:focus-visible {\n outline: 1px solid var(--jp-reject-color-active, var(--md-grey-700, #616161));\n}\n\nbutton.jp-mod-styled.jp-mod-warn {\n background: var(--jp-warn-color-normal, var(--jp-error-color1));\n border: 0;\n color: white;\n}\n\nbutton.jp-mod-styled.jp-mod-warn:hover {\n background: var(--jp-warn-color-hover, var(--md-red-600, #e53935));\n}\n\nbutton.jp-mod-styled.jp-mod-warn:active {\n background: var(--jp-warn-color-active, var(--md-red-700, #d32f2f));\n}\n\nbutton.jp-mod-styled.jp-mod-warn:focus-visible {\n outline: 1px solid var(--jp-warn-color-active, var(--md-red-700, #d32f2f));\n}\n\n.jp-Button-flat {\n text-decoration: none;\n padding: var(--jp-flat-button-padding);\n font-weight: 500;\n background-color: transparent;\n height: var(--jp-private-running-shutdown-button-height);\n line-height: var(--jp-private-running-shutdown-button-height);\n transition: background-color 0.1s ease;\n border-radius: 2px;\n}\n\n.jp-Button-flat:focus {\n border: none;\n box-shadow: none;\n}\n",""]);const l=a},14016:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n:root {\n --jp-private-menu-panel-height: 27px;\n}\n\n.lm-Widget.lm-mod-hidden {\n display: none !important;\n}\n\n.jp-ThemedContainer {\n font-family: var(--jp-ui-font-family);\n background: var(--jp-layout-color3);\n margin: 0;\n padding: 0;\n overflow: hidden;\n}\n\n.jp-LabShell {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n\n.jp-LabShell.jp-mod-devMode {\n border-top: 4px solid red;\n}\n\n#jp-main-dock-panel {\n padding: 5px;\n}\n\n#jp-main-dock-panel[data-mode='single-document'] {\n padding: 0;\n}\n\n#jp-main-dock-panel[data-mode='single-document'] .jp-MainAreaWidget {\n border: none;\n}\n\n#jp-top-panel {\n border-bottom: var(--jp-border-width) solid var(--jp-border-color0);\n background: var(--jp-layout-color1);\n display: flex;\n min-height: var(--jp-private-menubar-height);\n overflow: visible;\n\n /* relax lumino strict CSS contaiment to allow painting the menu bar item\n over the menu in order to create an illusion of partial border */\n contain: style size !important;\n}\n\n#jp-menu-panel {\n min-height: var(--jp-private-menu-panel-height);\n background: var(--jp-layout-color1);\n}\n\n#jp-down-stack {\n border-bottom: var(--jp-border-width) solid var(--jp-border-color1);\n}\n\n.jp-LabShell[data-shell-mode='single-document'] #jp-top-panel {\n border-bottom: none;\n}\n\n.jp-LabShell[data-shell-mode='single-document'] #jp-menu-panel {\n padding-left: calc(\n var(--jp-private-sidebar-tab-width) + var(--jp-border-width)\n );\n border-bottom: var(--jp-border-width) solid var(--jp-border-color0);\n\n /* Adjust min-height so open menus show up in the right place */\n min-height: calc(\n var(--jp-private-menu-panel-height) + var(--jp-border-width)\n );\n}\n\n#jp-bottom-panel {\n background: var(--jp-layout-color1);\n display: flex;\n}\n\n#jp-single-document-mode {\n margin: 0 8px;\n display: flex;\n align-items: center;\n}\n",""]);const l=a},5173:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.lm-DataGrid {\n min-width: 64px;\n min-height: 64px;\n border: 1px solid #a0a0a0;\n}\n\n.lm-DataGrid-scrollCorner {\n background-color: #f0f0f0;\n}\n\n.lm-DataGrid-scrollCorner::after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n background-color: #a0a0a0;\n}\n",""]);const l=a},51632:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Variables\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| DockPanel\n|----------------------------------------------------------------------------*/\n\n.lm-DockPanel-widget,\n.lm-TabPanel-stackedPanel {\n background: var(--jp-layout-color0);\n border-left: var(--jp-border-width) solid var(--jp-border-color1);\n border-right: var(--jp-border-width) solid var(--jp-border-color1);\n border-bottom: var(--jp-border-width) solid var(--jp-border-color1);\n}\n\n.lm-DockPanel-overlay {\n background: rgba(33, 150, 243, 0.1);\n border: var(--jp-border-width) dashed var(--jp-brand-color1);\n transition-property: top, left, right, bottom;\n transition-duration: 150ms;\n transition-timing-function: ease;\n}\n\n.lm-DockPanel-overlay.lm-mod-root-top,\n.lm-DockPanel-overlay.lm-mod-root-left,\n.lm-DockPanel-overlay.lm-mod-root-right,\n.lm-DockPanel-overlay.lm-mod-root-bottom,\n.lm-DockPanel-overlay.lm-mod-root-center {\n border-width: 2px;\n}\n",""]);const l=a},60341:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Variables\n|----------------------------------------------------------------------------*/\n\n:root {\n --jp-private-menubar-height: 28px;\n --jp-private-menu-item-height: 24px;\n}\n\n/*-----------------------------------------------------------------------------\n| MenuBar\n|----------------------------------------------------------------------------*/\n\n.lm-MenuBar {\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n font-size: var(--jp-ui-font-size1);\n overflow: hidden;\n}\n\n.lm-MenuBar:hover {\n overflow-x: auto;\n}\n\n.lm-MenuBar-menu.jp-ThemedContainer {\n top: calc(-2 * var(--jp-border-width));\n scrollbar-width: none;\n -ms-overflow-style: none;\n overflow: auto;\n background:\n linear-gradient(var(--jp-layout-color0) 30%, rgba(0, 0, 0, 0)) center top,\n linear-gradient(rgba(0, 0, 0, 0), var(--jp-layout-color0) 70%) center bottom,\n radial-gradient(\n farthest-side at 50% 0,\n color-mix(\n in hsl,\n var(--jp-layout-color0) 50%,\n var(--jp-inverse-layout-color0) 30%\n ),\n rgba(0, 0, 0, 0)\n )\n center top,\n radial-gradient(\n farthest-side at 50% 100%,\n color-mix(\n in hsl,\n var(--jp-layout-color0) 50%,\n var(--jp-inverse-layout-color0) 30%\n ),\n rgba(0, 0, 0, 0)\n )\n center bottom;\n background-color: var(--jp-layout-color0);\n background-repeat: no-repeat;\n background-size:\n 100% 40px,\n 100% 40px,\n 100% 14px,\n 100% 14px;\n background-attachment: local, local, scroll, scroll;\n}\n\n.lm-MenuBar-menu.jp-ThemedContainer::-webkit-scrollbar {\n display: none;\n}\n\n.lm-MenuBar-item {\n padding: 0 8px;\n border-left: var(--jp-border-width) solid transparent;\n border-right: var(--jp-border-width) solid transparent;\n border-top: var(--jp-border-width) solid transparent;\n line-height: calc(\n var(--jp-private-menubar-height) - var(--jp-border-width) * 2\n );\n}\n\n.lm-MenuBar-content:focus-visible {\n outline-offset: -3px; /* this value is a compromise between Firefox, Chrome,\n and Safari over this outline's visibility and discretion */\n}\n\n.lm-MenuBar:focus-visible {\n outline: 1px solid var(--jp-accept-color-active, var(--jp-brand-color1));\n outline-offset: -1px;\n}\n\n.lm-MenuBar-menu:focus-visible,\n.lm-MenuBar-item:focus-visible,\n.lm-Menu-item:focus-visible {\n outline: unset;\n outline-offset: unset;\n -moz-outline-radius: unset;\n}\n\n.lm-MenuBar-item.lm-mod-active {\n background: var(--jp-layout-color2);\n}\n\n.lm-MenuBar.lm-mod-active .lm-MenuBar-item.lm-mod-active {\n z-index: 10001;\n background: var(--jp-layout-color0);\n color: var(--jp-ui-font-color0);\n border-left: var(--jp-border-width) solid var(--jp-border-color1);\n border-right: var(--jp-border-width) solid var(--jp-border-color1);\n box-shadow: var(--jp-elevation-z6);\n}\n\n/* stylelint-disable-next-line selector-max-class */\n.jp-LabShell[data-shell-mode='single-document']\n .lm-MenuBar.lm-mod-active\n .lm-MenuBar-item.lm-mod-active {\n border-top: var(--jp-border-width) solid var(--jp-border-color1);\n}\n\n.lm-MenuBar-item.lm-mod-disabled {\n color: var(--jp-ui-font-color3);\n}\n\n.lm-MenuBar-item.lm-type-separator {\n margin: 2px;\n padding: 0;\n border: none;\n border-left: var(--jp-border-width) solid var(--jp-border-color2);\n}\n\n.lm-MenuBar-itemMnemonic {\n text-decoration: underline;\n}\n\n/*-----------------------------------------------------------------------------\n| Menu\n|----------------------------------------------------------------------------*/\n\n.lm-Menu {\n z-index: 10000;\n padding: 4px 0;\n background: var(--jp-layout-color0);\n color: var(--jp-ui-font-color0);\n border: var(--jp-border-width) solid var(--jp-border-color1);\n font-size: var(--jp-ui-font-size1);\n box-shadow: var(--jp-elevation-z6);\n}\n\n.lm-Menu-item {\n min-height: var(--jp-private-menu-item-height);\n max-height: var(--jp-private-menu-item-height);\n padding: 0;\n line-height: var(--jp-private-menu-item-height);\n}\n\n.lm-Menu-item.lm-mod-active {\n background: var(--jp-layout-color2);\n}\n\n.lm-Menu-item.lm-mod-disabled {\n color: var(--jp-ui-font-color3);\n}\n\n.lm-Menu-itemIcon {\n width: 21px;\n padding: 0 2px 0 4px;\n margin-top: -2px;\n}\n\n.lm-Menu-itemLabel {\n padding: 0 32px 0 2px;\n}\n\n.lm-Menu-itemMnemonic {\n text-decoration: underline;\n}\n\n.lm-Menu-itemShortcut {\n padding: 0;\n}\n\n.lm-Menu-itemSubmenuIcon {\n width: 18px;\n padding: 0 4px 0 0;\n}\n\n.lm-Menu-item[data-type='separator'] > div {\n padding: 0;\n height: 9px;\n}\n\n.lm-Menu-item[data-type='separator'] > div::after {\n content: '';\n display: block;\n position: relative;\n top: 4px;\n border-top: var(--jp-border-width) solid var(--jp-layout-color2);\n mix-blend-mode: multiply;\n}\n\n/* gray out icon/caret for disabled menu items */\n.lm-Menu-item.lm-mod-disabled > .lm-Menu-itemIcon,\n.lm-Menu-item[data-type='submenu'].lm-mod-disabled > .lm-Menu-itemSubmenuIcon {\n opacity: 0.4;\n}\n",""]);const l=a},10891:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*\n * Mozilla scrollbar styling\n */\n\n/* use standard opaque scrollbars for most nodes */\n[data-jp-theme-scrollbars='true'] {\n scrollbar-color: rgb(var(--jp-scrollbar-thumb-color))\n var(--jp-scrollbar-background-color);\n}\n\n/* for code nodes, use a transparent style of scrollbar. These selectors\n * will match lower in the tree, and so will override the above */\n[data-jp-theme-scrollbars='true'] .CodeMirror-hscrollbar,\n[data-jp-theme-scrollbars='true'] .CodeMirror-vscrollbar {\n scrollbar-color: rgba(var(--jp-scrollbar-thumb-color), 0.5) transparent;\n}\n\n/* tiny scrollbar */\n\n.jp-scrollbar-tiny {\n scrollbar-color: rgba(var(--jp-scrollbar-thumb-color), 0.5) transparent;\n scrollbar-width: thin;\n}\n\n/* tiny scrollbar */\n\n.jp-scrollbar-tiny::-webkit-scrollbar,\n.jp-scrollbar-tiny::-webkit-scrollbar-corner {\n background-color: transparent;\n height: 4px;\n width: 4px;\n}\n\n.jp-scrollbar-tiny::-webkit-scrollbar-thumb {\n background: rgba(var(--jp-scrollbar-thumb-color), 0.5);\n}\n\n.jp-scrollbar-tiny::-webkit-scrollbar-track:horizontal {\n border-left: 0 solid transparent;\n border-right: 0 solid transparent;\n}\n\n.jp-scrollbar-tiny::-webkit-scrollbar-track:vertical {\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n}\n\n/*\n * Lumino\n */\n\n.lm-ScrollBar[data-orientation='horizontal'] {\n min-height: 16px;\n max-height: 16px;\n min-width: 45px;\n border-top: 1px solid #a0a0a0;\n}\n\n.lm-ScrollBar[data-orientation='vertical'] {\n min-width: 16px;\n max-width: 16px;\n min-height: 45px;\n border-left: 1px solid #a0a0a0;\n}\n\n.lm-ScrollBar-button {\n background-color: #f0f0f0;\n background-position: center center;\n min-height: 15px;\n max-height: 15px;\n min-width: 15px;\n max-width: 15px;\n}\n\n.lm-ScrollBar-button:hover {\n background-color: #dadada;\n}\n\n.lm-ScrollBar-button.lm-mod-active {\n background-color: #cdcdcd;\n}\n\n.lm-ScrollBar-track {\n background: #f0f0f0;\n}\n\n.lm-ScrollBar-thumb {\n background: #cdcdcd;\n}\n\n.lm-ScrollBar-thumb:hover {\n background: #bababa;\n}\n\n.lm-ScrollBar-thumb.lm-mod-active {\n background: #a0a0a0;\n}\n\n.lm-ScrollBar[data-orientation='horizontal'] .lm-ScrollBar-thumb {\n height: 100%;\n min-width: 15px;\n border-left: 1px solid #a0a0a0;\n border-right: 1px solid #a0a0a0;\n}\n\n.lm-ScrollBar[data-orientation='vertical'] .lm-ScrollBar-thumb {\n width: 100%;\n min-height: 15px;\n border-top: 1px solid #a0a0a0;\n border-bottom: 1px solid #a0a0a0;\n}\n\n.lm-ScrollBar[data-orientation='horizontal']\n .lm-ScrollBar-button[data-action='decrement'] {\n background-image: var(--jp-icon-caret-left);\n background-size: 17px;\n}\n\n.lm-ScrollBar[data-orientation='horizontal']\n .lm-ScrollBar-button[data-action='increment'] {\n background-image: var(--jp-icon-caret-right);\n background-size: 17px;\n}\n\n.lm-ScrollBar[data-orientation='vertical']\n .lm-ScrollBar-button[data-action='decrement'] {\n background-image: var(--jp-icon-caret-up);\n background-size: 17px;\n}\n\n.lm-ScrollBar[data-orientation='vertical']\n .lm-ScrollBar-button[data-action='increment'] {\n background-image: var(--jp-icon-caret-down);\n background-size: 17px;\n}\n",""]);const l=a},40348:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Variables\n|----------------------------------------------------------------------------*/\n\n:root {\n --jp-private-sidebar-tab-width: 32px;\n}\n\n/*-----------------------------------------------------------------------------\n| SideBar\n|----------------------------------------------------------------------------*/\n\n.jp-SideBar {\n /* This is needed so that all font sizing of children done in ems is\n * relative to this base size */\n font-size: var(--jp-ui-font-size1);\n}\n\n.jp-SideBar.lm-TabBar,\n#jp-down-stack .lm-TabBar {\n color: var(--jp-ui-font-color2);\n background: var(--jp-layout-color2);\n font-size: var(--jp-ui-font-size1);\n overflow: visible;\n}\n\n.jp-SideBar.lm-TabBar {\n min-width: calc(var(--jp-private-sidebar-tab-width) + var(--jp-border-width));\n max-width: calc(var(--jp-private-sidebar-tab-width) + var(--jp-border-width));\n display: block;\n}\n\n.jp-SideBar .lm-TabBar-content {\n margin: 0;\n padding: 0;\n display: flex;\n align-items: stretch;\n list-style-type: none;\n height: var(--jp-private-sidebar-tab-width);\n}\n\n.jp-SideBar .lm-TabBar-tab {\n padding: 16px 0;\n border: none;\n overflow: visible;\n flex-direction: column;\n position: relative;\n}\n\n.jp-SideBar .lm-TabBar-tab:focus-visible {\n /* --accent-fill-focus is computed by the jp toolkit to ensure accessibility */\n outline: 2px solid var(--accent-fill-focus, var(--jp-brand-color1));\n outline-offset: -3px;\n}\n\n.jp-SideBar .lm-TabBar-tab.lm-mod-current::after {\n /* Internal border override pseudo-element */\n position: absolute;\n content: '';\n bottom: 0;\n right: 0;\n top: 0;\n left: 0;\n border: var(--jp-border-width) solid var(--jp-layout-color1);\n}\n\n.jp-SideBar .lm-TabBar-tab:not(.lm-mod-current),\n#jp-down-stack .lm-TabBar-tab:not(.lm-mod-current) {\n background: var(--jp-layout-color2);\n}\n\n.jp-SideBar .lm-TabBar-tabIcon.jp-SideBar-tabIcon {\n min-width: 20px;\n min-height: 20px;\n background-size: 20px;\n display: inline-block;\n vertical-align: middle;\n background-repeat: no-repeat;\n background-position: center;\n}\n\n.jp-SideBar .lm-TabBar-tabLabel {\n line-height: var(--jp-private-sidebar-tab-width);\n}\n\n.jp-SideBar .lm-TabBar-tab:hover:not(.lm-mod-current),\n#jp-down-stack .lm-TabBar-tab:hover:not(.lm-mod-current) {\n background: var(--jp-layout-color1);\n}\n\n.jp-SideBar.lm-TabBar::after {\n /* Internal border pseudo-element */\n position: absolute;\n content: '';\n bottom: 0;\n right: 0;\n top: 0;\n left: 0;\n pointer-events: none;\n}\n\n/* Borders */\n\n/* stylelint-disable selector-max-class */\n\n.jp-SideBar.lm-TabBar .lm-TabBar-tab + .lm-TabBar-tab {\n border-top: var(--jp-border-width) solid var(--jp-layout-color2);\n}\n\n.jp-SideBar.lm-TabBar .lm-TabBar-tab.lm-mod-current + .lm-TabBar-tab {\n border-top: var(--jp-border-width) solid var(--jp-border-color0);\n}\n\n.jp-SideBar.lm-TabBar .lm-TabBar-tab + .lm-TabBar-tab.lm-mod-current {\n border-top: var(--jp-border-width) solid var(--jp-border-color0);\n}\n\n.jp-SideBar.lm-TabBar .lm-TabBar-tab.lm-mod-current:last-child {\n border-bottom: var(--jp-border-width) solid var(--jp-border-color0);\n}\n\n.jp-SideBar.lm-TabBar .lm-TabBar-tabLabel {\n writing-mode: vertical-rl;\n}\n\n/* Left */\n\n/* Borders */\n\n.jp-SideBar.lm-TabBar.jp-mod-left .lm-TabBar-content {\n /* Internal border spacing */\n margin-right: var(--jp-border-width);\n}\n\n.jp-SideBar.lm-TabBar.jp-mod-left .lm-TabBar-tab.lm-mod-current::after {\n /* Internal border override */\n right: calc(-1 * var(--jp-border-width));\n}\n\n.jp-SideBar.lm-TabBar.jp-mod-left::after {\n /* Internal border */\n border-right: var(--jp-border-width) solid var(--jp-border-color0);\n}\n\n/* Transforms */\n\n.jp-SideBar.lm-TabBar.jp-mod-left .lm-TabBar-tabLabel {\n transform: rotate(180deg);\n}\n\n/* Right */\n\n/* Borders */\n\n.jp-SideBar.lm-TabBar.jp-mod-right .lm-TabBar-content {\n /* Internal border spacing */\n margin-left: var(--jp-border-width);\n}\n\n.jp-SideBar.lm-TabBar.jp-mod-right .lm-TabBar-tab.lm-mod-current::after {\n /* Internal border override */\n left: calc(-1 * var(--jp-border-width));\n}\n\n.jp-SideBar.lm-TabBar.jp-mod-right::after {\n /* Internal border */\n border-left: var(--jp-border-width) solid var(--jp-border-color0);\n}\n\n/* Down */\n\n/* Borders */\n\n#jp-down-stack > .lm-TabBar {\n border-top: var(--jp-border-width) solid var(--jp-border-color0);\n border-bottom: var(--jp-border-width) solid var(--jp-border-color0);\n}\n\n#jp-down-stack > .lm-TabBar .lm-TabBar-tab {\n border-left: none;\n border-right: none;\n}\n\n#jp-down-stack > .lm-TabBar .lm-TabBar-tab.lm-mod-current {\n border: var(--jp-border-width) solid var(--jp-border-color1);\n border-bottom: none;\n transform: translateY(var(--jp-border-width));\n}\n\n#jp-down-stack > .lm-TabBar .lm-TabBar-tab.lm-mod-current:first-child {\n border: none;\n border-right: var(--jp-border-width) solid var(--jp-border-color1);\n}\n\n/* stylelint-enable selector-max-class */\n\n/* Stack panels */\n\n#jp-left-stack > .lm-Widget,\n#jp-right-stack > .lm-Widget {\n min-width: var(--jp-sidebar-min-width);\n background-color: var(--jp-layout-color1);\n}\n\n#jp-right-stack {\n border-left: var(--jp-border-width) solid var(--jp-border-color1);\n}\n\n#jp-left-stack {\n border-right: var(--jp-border-width) solid var(--jp-border-color1);\n}\n\n#jp-down-stack > .lm-TabPanel-stackedPanel {\n border: none;\n}\n",""]);const l=a},93768:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n|\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-skiplink-wrapper {\n overflow: visible;\n\n /* override strict containment added via Lumino PR\n [#506](https://github.com/jupyterlab/lumino/pull/506) */\n contain: size style !important;\n}\n\n.jp-skiplink {\n position: absolute;\n top: -100em;\n}\n\n.jp-skiplink:focus-within {\n position: absolute;\n z-index: 10000;\n top: 0;\n left: 46%;\n margin: 0 auto;\n padding: 1em;\n width: 15%;\n box-shadow: var(--jp-elevation-z4);\n border-radius: 4px;\n background: var(--jp-layout-color0);\n text-align: center;\n}\n\n.jp-skiplink:focus-within a {\n text-decoration: underline;\n color: var(--jp-content-link-color);\n}\n",""]);const l=a},83161:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Variables\n|----------------------------------------------------------------------------*/\n\n:root {\n /* These need to be root because tabs get attached to the body during dragging. */\n --jp-private-horizontal-tab-height: 24px;\n --jp-private-horizontal-tab-width: 216px;\n --jp-private-horizontal-tab-active-top-border: 2px;\n}\n\n/*-----------------------------------------------------------------------------\n| Tabs in the dock panel\n|----------------------------------------------------------------------------*/\n\n.lm-DockPanel-tabBar,\n.lm-TabPanel-tabBar {\n overflow: visible;\n color: var(--jp-ui-font-color1);\n font-size: var(--jp-ui-font-size1);\n}\n\n.lm-DockPanel-tabBar[data-orientation='horizontal'],\n.lm-TabPanel-tabBar[data-orientation='horizontal'] {\n min-height: calc(\n var(--jp-private-horizontal-tab-height) + 2 * var(--jp-border-width)\n );\n}\n\n.lm-DockPanel-tabBar[data-orientation='vertical'] {\n min-width: 80px;\n}\n\n.lm-DockPanel-tabBar > .lm-TabBar-content,\n.lm-TabPanel-tabBar > .lm-TabBar-content {\n align-items: flex-end;\n min-width: 0;\n min-height: 0;\n}\n\n.lm-DockPanel-tabBar .lm-TabBar-tab,\n.lm-TabPanel-tabBar .lm-TabBar-tab {\n flex: 0 1 var(--jp-private-horizontal-tab-width);\n align-items: center;\n min-height: calc(\n var(--jp-private-horizontal-tab-height) + 2 * var(--jp-border-width)\n );\n min-width: 0;\n margin-left: calc(-1 * var(--jp-border-width));\n line-height: var(--jp-private-horizontal-tab-height);\n padding: 0 8px;\n background: var(--jp-layout-color2);\n border: var(--jp-border-width) solid var(--jp-border-color1);\n border-bottom: none;\n position: relative;\n}\n\n.lm-DockPanel-tabBar .lm-TabBar-tab:focus-visible,\n.lm-DockPanel-tabBar .lm-TabBar-addButton:focus-visible,\n.lm-TabPanel-tabBar .lm-TabBar-tab:focus-visible {\n border: 1px solid var(--accent-fill-focus);\n border-bottom: none;\n\n /* Thicken the border by 1px within the element border */\n box-shadow: 0 0 0 1px inset var(--accent-fill-focus);\n outline: none;\n}\n\n.lm-DockPanel-tabBar .lm-TabBar-tab:not(.lm-mod-current):focus-visible::after,\n.lm-TabPanel-tabBar .lm-TabBar-tab:not(.lm-mod-current):focus-visible::after {\n border-bottom-color: var(--accent-fill-focus);\n}\n\n.lm-DockPanel-tabBar .lm-TabBar-tab:hover:not(.lm-mod-current),\n.lm-TabPanel-tabBar .lm-TabBar-tab:hover:not(.lm-mod-current) {\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n}\n\n.lm-DockPanel-tabBar .lm-TabBar-tab:not(.lm-mod-current)::after,\n.lm-DockPanel-tabBar .lm-TabBar-addButton::after {\n position: absolute;\n content: '';\n bottom: 0;\n left: calc(-1 * var(--jp-border-width));\n width: calc(100% + 2 * var(--jp-border-width));\n border-bottom: var(--jp-border-width) solid var(--jp-border-color1);\n}\n\n.lm-DockPanel-tabBar .lm-TabBar-tab:first-child,\n.lm-TabPanel-tabBar .lm-TabBar-tab:first-child {\n margin-left: 0;\n}\n\n/* This is a current tab of a tab bar in the dock panel: each tab bar has 1. */\n.lm-DockPanel-tabBar .lm-TabBar-tab.lm-mod-current {\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n}\n\n.lm-TabPanel-tabBar .lm-TabBar-tab.lm-mod-current {\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n}\n\n/* This is the main application level current tab: only 1 exists. */\n.lm-DockPanel-tabBar .lm-TabBar-tab.jp-mod-current::before {\n position: absolute;\n top: calc(-1 * var(--jp-border-width) + 1px);\n left: calc(-1 * var(--jp-border-width));\n content: '';\n height: var(--jp-private-horizontal-tab-active-top-border);\n width: calc(100% + 2 * var(--jp-border-width));\n background: var(--jp-brand-color1);\n}\n\n/* This is the left tab bar current tab: only 1 exists. */\n.lm-TabBar-tab.lm-mod-current {\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n}\n\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-left .lm-TabBar-tab,\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-right .lm-TabBar-tab {\n flex: 0 1 40px;\n margin-top: -1px;\n line-height: 40px;\n}\n\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-left .lm-TabBar-tab {\n border-right: none;\n}\n\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-right .lm-TabBar-tab {\n border-left: none;\n}\n\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-left .lm-TabBar-tab:first-child,\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-right .lm-TabBar-tab:first-child {\n margin-top: 0;\n}\n\n/* stylelint-disable selector-max-class */\n\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-left .lm-TabBar-tab.lm-mod-current,\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-right .lm-TabBar-tab.lm-mod-current {\n min-width: 80px;\n max-width: 80px;\n}\n\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-right .lm-TabBar-tab.lm-mod-current {\n transform: translateX(-1px);\n}\n\n.lm-DockPanel-tabBar .lm-TabBar-tab .lm-TabBar-tabIcon,\n.lm-TabBar-tab.lm-mod-drag-image .lm-TabBar-tabIcon,\n.lm-TabPanel-tabBar .lm-TabBar-tab .lm-TabBar-tabIcon {\n width: 14px;\n background-position: left center;\n background-repeat: no-repeat;\n background-size: 14px;\n margin-right: 4px;\n}\n\n/* stylelint-enable selector-max-class */\n\n.lm-TabBar-tab.lm-mod-drag-image {\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n border: var(--jp-border-width) solid var(--jp-border-color1);\n border-top: var(--jp-border-width) solid var(--jp-brand-color1);\n box-shadow: var(--jp-elevation-z4);\n font-size: var(--jp-ui-font-size1);\n line-height: var(--jp-private-horizontal-tab-height);\n min-height: var(--jp-private-horizontal-tab-height);\n min-width: var(--jp-private-horizontal-tab-width);\n padding: 0 10px;\n transform: translateX(-40%) translateY(-58%);\n}\n",""]);const l=a},43701:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n:root {\n --jp-private-title-panel-height: 28px;\n}\n\n#jp-title-panel {\n min-height: var(--jp-private-title-panel-height);\n width: 100%;\n display: flex;\n background: var(--jp-layout-color1);\n}\n\n#jp-title-panel-title {\n flex: 1 1 auto;\n margin-left: 8px;\n}\n\n#jp-title-panel-title input {\n background: transparent;\n margin: 0;\n height: 28px;\n width: 100%;\n box-sizing: border-box;\n border: none;\n font-size: 18px;\n font-weight: normal;\n font-family: var(--jp-ui-font-family);\n line-height: var(--jp-private-title-panel-height);\n color: var(--jp-ui-font-color0);\n outline: none;\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n}\n",""]);const l=a},61510:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=n(7924);var l=n(97980);var d=n(1165);var c=r()(s());c.i(a.A);c.i(l.A);c.i(d.A);c.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n",""]);const h=c},1165:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n:root {\n --jp-private-shortcuts-key-padding-horizontal: 0.47em;\n --jp-private-shortcuts-key-padding-vertical: 0.28em;\n --jp-private-shortcuts-label-padding-horizontal: 0.47em;\n}\n\n.jp-ContextualShortcut-TableRow {\n font-size: var(--jp-ui-font-size1);\n font-family: var(--jp-ui-font-family);\n}\n\n.jp-ContextualShortcut-TableItem {\n margin-left: auto;\n margin-right: auto;\n color: var(--jp-inverse-layout-color0);\n font-size: var(--jp-ui-font-size1);\n line-height: 2em;\n padding-right: var(--jp-private-shortcuts-label-padding-horizontal);\n}\n\n.jp-ContextualShortcut-TableLastRow {\n height: 2em;\n}\n\n.jp-ContextualShortcut-Key {\n font-family: var(--jp-code-font-family);\n border-width: var(--jp-border-width);\n border-radius: var(--jp-border-radius);\n border-style: solid;\n border-color: var(--jp-border-color1);\n color: var(--jp-ui-font-color1);\n background: var(--jp-layout-color1);\n padding-left: var(--jp-private-shortcuts-key-padding-horizontal);\n padding-right: var(--jp-private-shortcuts-key-padding-horizontal);\n padding-top: var(--jp-private-shortcuts-key-padding-vertical);\n padding-bottom: var(--jp-private-shortcuts-key-padding-vertical);\n}\n",""]);const l=a},7924:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=n(9112);var l=r()(s());l.i(a.A);l.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n:root {\n --toastify-color-light: var(--jp-layout-color1);\n --toastify-color-dark: var(--jp-layout-color1);\n --toastify-color-info: var(--jp-info-color1);\n --toastify-color-success: var(--jp-success-color1);\n --toastify-color-warning: var(--jp-warn-color1);\n --toastify-color-error: var(--jp-error-color1);\n --toastify-color-transparent: rgba(255, 255, 255, 0.7);\n --toastify-icon-color-info: var(--toastify-color-info);\n --toastify-icon-color-success: var(--toastify-color-success);\n --toastify-icon-color-warning: var(--toastify-color-warning);\n --toastify-icon-color-error: var(--toastify-color-error);\n --toastify-toast-width: 25em;\n --toastify-toast-background: var(--jp-layout-color1);\n --toastify-toast-min-height: 64px;\n --toastify-toast-max-height: 800px;\n --toastify-font-family: var(--jp-ui-font-family);\n --toastify-z-index: 9999;\n --toastify-text-color-light: var(--jp-ui-font-color1);\n --toastify-text-color-dark: var(--jp-ui-font-color1);\n --toastify-text-color-info: var(--jp-ui-font-color1);\n --toastify-text-color-success: var(--jp-ui-font-color1);\n --toastify-text-color-warning: var(--jp-ui-font-color1);\n --toastify-text-color-error: var(--jp-ui-font-color1);\n --toastify-spinner-color: #616161;\n --toastify-spinner-color-empty-area: #e0e0e0;\n --toastify-color-progress-light: linear-gradient(\n to right,\n #4cd964,\n #5ac8fa,\n #007aff,\n #34aadc,\n #5856d6,\n #ff2d55\n );\n --toastify-color-progress-dark: #bb86fc;\n --toastify-color-progress-info: var(--toastify-color-info);\n --toastify-color-progress-success: var(--toastify-color-success);\n --toastify-color-progress-warning: var(--toastify-color-warning);\n --toastify-color-progress-error: var(--toastify-color-error);\n}\n\n.jp-Notification-List {\n list-style: none;\n margin: 0;\n padding: 4px;\n width: var(--toastify-toast-width);\n overflow-y: auto;\n max-height: 55vh;\n box-sizing: border-box;\n background-color: var(--jp-layout-color2);\n}\n\n.jp-Notification-Header {\n display: flex;\n font-size: var(--jp-ui-font-size1);\n padding-left: 8px;\n padding-right: 4px;\n margin: 0;\n align-items: center;\n user-select: none;\n}\n\n.jp-Notification-List-Item {\n padding: 2px 0;\n}\n\n.jp-Notification-List .Toastify__toast {\n margin: 0;\n}\n\n.jp-Notification-Status.jp-mod-selected {\n background-color: var(--jp-brand-color1);\n}\n\n.jp-Notification-Status.jp-mod-selected .jp-Notification-Status-Text {\n color: var(--jp-ui-inverse-font-color1);\n}\n\n.Toastify__toast {\n min-height: unset;\n padding: 4px;\n font-size: var(--jp-ui-font-size1);\n border-width: var(--jp-border-width);\n border-radius: var(--jp-border-radius);\n border-color: var(--jp-border-color1);\n box-shadow: var(--jp-elevation-z4);\n cursor: default;\n}\n\n.Toastify__toast-body {\n display: flex;\n flex-grow: 1;\n}\n\n.jp-Notification-Toast-Close {\n padding: 0;\n position: absolute;\n right: 0.1px;\n cursor: pointer;\n}\n\n.jp-Notification-Toast-Close-Margin {\n margin-right: 4px;\n}\n\n.jp-toastContainer .jp-Notification-Toast-Close:hover {\n /* The close button has its own hover style */\n background: none;\n}\n\n.Toastify__toast.jp-Notification-Toast-error {\n border-top: 5px solid var(--jp-error-color1);\n}\n\n.Toastify__toast.jp-Notification-Toast-warning {\n border-top: 5px solid var(--jp-warn-color1);\n}\n\n.Toastify__toast.jp-Notification-Toast-info {\n border-top: 5px solid var(--jp-info-color1);\n}\n\n.Toastify__toast.jp-Notification-Toast-success {\n border-top: 5px solid var(--jp-success-color1);\n}\n\n.Toastify__toast.jp-Notification-Toast-in-progress {\n border-top: 5px solid var(--jp-layout-color1);\n}\n\n.Toastify__toast-body a {\n color: var(--jp-content-link-color);\n}\n\n.Toastify__toast-body a:hover {\n color: var(--jp-content-link-color);\n text-decoration: underline;\n}\n\n.jp-toast-message {\n padding-inline-end: 16px;\n}\n\n/* p elements are added by the markdown rendering.\n * Removing its default margin allows to reduce toast size.\n */\n.Toastify__toast-body p:first-child,\n.Toastify__toast-body h1:first-child,\n.Toastify__toast-body h2:first-child,\n.Toastify__toast-body h3:first-child,\n.Toastify__toast-body h4:first-child,\n.Toastify__toast-body h5:first-child,\n.Toastify__toast-body h6:first-child,\n.Toastify__toast-body ol:first-child,\n.Toastify__toast-body ul:first-child {\n margin-top: 0;\n}\n\n.Toastify__toast-body p:last-child,\n.Toastify__toast-body h1:last-child,\n.Toastify__toast-body h2:last-child,\n.Toastify__toast-body h3:last-child,\n.Toastify__toast-body h4:last-child,\n.Toastify__toast-body h5:last-child,\n.Toastify__toast-body h6:last-child,\n.Toastify__toast-body ol:last-child,\n.Toastify__toast-body ul:last-child {\n margin-bottom: 0;\n}\n\n.jp-toast-buttonBar {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n flex: 0 0 auto;\n padding-block-start: 8px;\n}\n\n.jp-toast-spacer {\n flex-grow: 1;\n flex-shrink: 1;\n}\n\n.jp-toast-button {\n margin-top: 1px;\n margin-bottom: 1px;\n margin-right: 0;\n margin-left: 3px;\n color: var(--jp-ui-font-color1);\n background-color: var(--jp-layout-color2);\n border: none;\n}\n\n.jp-toast-button:focus {\n outline: 1px solid var(--jp-reject-color-normal, var(--jp-layout-color2));\n outline-offset: 1px;\n -moz-outline-radius: 0;\n}\n\n.jp-toast-button:focus-visible {\n border: none;\n}\n\n.jp-toast-button:hover {\n background-color: var(--jp-layout-color3);\n}\n\n.jp-toast-button.jp-mod-accept {\n background: var(--jp-accept-color-normal, var(--jp-brand-color1));\n color: var(--jp-ui-inverse-font-color1);\n}\n\n.jp-toast-button.jp-mod-accept:focus {\n outline-color: var(--jp-accept-color-normal, var(--jp-brand-color1));\n}\n\n.jp-toast-button.jp-mod-accept:hover {\n background: var(--jp-accept-color-hover, var(--jp-brand-color0));\n}\n\n.jp-toast-button.jp-mod-warn {\n background: var(--jp-warn-color-normal, var(--jp-warn-color1));\n color: var(--jp-ui-inverse-font-color1);\n}\n\n.jp-toast-button.jp-mod-warn:focus {\n outline-color: var(--jp-warn-color-normal, var(--jp-warn-color1));\n}\n\n.jp-toast-button.jp-mod-warn:hover {\n background: var(--jp-warn-color-hover, var(--jp-warn-color0));\n}\n\n.jp-toast-button.jp-mod-link {\n color: var(--jp-content-link-color);\n text-decoration: underline;\n text-decoration-color: var(--jp-content-link-color);\n}\n",""]);const d=l},97980:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n#jupyterlab-splash {\n z-index: 10;\n position: absolute;\n overflow: hidden;\n width: 100%;\n height: 100%;\n background-position: center 40%;\n background-repeat: no-repeat;\n background-size: cover;\n}\n\n#jupyterlab-splash.light {\n background-color: white;\n}\n\n#jupyterlab-splash.dark {\n background-color: var(--md-grey-900, #212121);\n}\n\n.splash-fade {\n animation: 0.5s fade-out forwards;\n}\n\n#galaxy {\n position: relative;\n width: 100%;\n height: 100%;\n}\n\n.planet {\n background-repeat: no-repeat;\n background-size: cover;\n animation-iteration-count: infinite;\n animation-name: orbit;\n}\n\n#moon1.orbit {\n opacity: 1;\n animation: orbit 2s ease;\n width: 200px;\n height: 140px;\n margin-top: -53px;\n margin-left: -54px;\n}\n\n#moon2.orbit {\n opacity: 1;\n animation: orbit 2s ease;\n width: 132px;\n height: 180px;\n margin-top: -66px;\n margin-left: -85px;\n}\n\n#moon3.orbit {\n opacity: 1;\n display: flex;\n align-items: flex-end;\n animation: orbit 2s ease;\n width: 220px;\n height: 166px;\n margin-top: -96px;\n margin-left: -50px;\n}\n\n#moon1 .planet {\n height: 12px;\n width: 12px;\n border-radius: 50%;\n}\n\n#moon2 .planet {\n height: 16px;\n width: 16px;\n border-radius: 50%;\n float: right;\n}\n\n#moon3 .planet {\n height: 20px;\n width: 20px;\n border-radius: 50%;\n}\n\n#jupyterlab-splash.light #moon1 .planet {\n background-color: #6f7070;\n}\n\n#jupyterlab-splash.light #moon2 .planet {\n background-color: #767677;\n}\n\n#jupyterlab-splash.light #moon3 .planet {\n background-color: #989798;\n}\n\n#jupyterlab-splash.dark #moon1 .planet,\n#jupyterlab-splash.dark #moon2 .planet,\n#jupyterlab-splash.dark #moon3 .planet {\n background-color: white;\n}\n\n.orbit {\n animation-iteration-count: 1;\n position: absolute;\n top: 50%;\n left: 50%;\n border-radius: 50%;\n}\n\n@keyframes orbit {\n 0% {\n transform: rotateZ(0deg);\n }\n\n 100% {\n transform: rotateZ(-720deg);\n }\n}\n\n@keyframes orbit2 {\n 0% {\n transform: rotateZ(0deg);\n }\n\n 100% {\n transform: rotateZ(720deg);\n }\n}\n\n@keyframes fade-in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes fade-out {\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n}\n",""]);const l=a},41510:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=n(28261);var l=n(52269);var d=n(5729);var c=n(48293);var h=n(17333);var u=n(76486);var p=n(8812);var m=r()(s());m.i(a.A);m.i(l.A);m.i(d.A);m.i(c.A);m.i(h.A);m.i(u.A);m.i(p.A);m.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n",""]);const g=m},28261:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Variables\n|----------------------------------------------------------------------------*/\n\n:root {\n --jp-private-commandpalette-search-height: 28px;\n}\n\n/*-----------------------------------------------------------------------------\n| Overall styles\n|----------------------------------------------------------------------------*/\n\n.lm-CommandPalette {\n padding-bottom: 0;\n color: var(--jp-ui-font-color1);\n background: var(--jp-layout-color1);\n\n /* This is needed so that all font sizing of children done in ems is\n * relative to this base size */\n font-size: var(--jp-ui-font-size1);\n}\n\n/*-----------------------------------------------------------------------------\n| Modal variant\n|----------------------------------------------------------------------------*/\n\n.jp-ModalCommandPalette.jp-ThemedContainer {\n position: absolute;\n z-index: 10000;\n top: 38px;\n left: 30%;\n margin: 0;\n padding: 4px;\n width: 40%;\n box-shadow: var(--jp-elevation-z4);\n border-radius: 4px;\n background: var(--jp-layout-color0);\n}\n\n.jp-ModalCommandPalette .lm-CommandPalette {\n max-height: 40vh;\n}\n\n.jp-ModalCommandPalette .lm-CommandPalette .lm-close-icon::after {\n display: none;\n}\n\n.jp-ModalCommandPalette .lm-CommandPalette .lm-CommandPalette-header {\n display: none;\n}\n\n.jp-ModalCommandPalette .lm-CommandPalette .lm-CommandPalette-item {\n margin-left: 4px;\n margin-right: 4px;\n}\n\n.jp-ModalCommandPalette\n .lm-CommandPalette\n .lm-CommandPalette-item.lm-mod-disabled {\n display: none;\n}\n\n/*-----------------------------------------------------------------------------\n| Search\n|----------------------------------------------------------------------------*/\n\n.lm-CommandPalette-search {\n padding: 4px;\n background-color: var(--jp-layout-color1);\n z-index: 2;\n}\n\n.lm-CommandPalette-wrapper {\n /* stylelint-disable-next-line csstree/validator */\n overflow: overlay;\n padding: 0 9px;\n background-color: var(--jp-input-active-background);\n height: 30px;\n box-shadow: inset 0 0 0 var(--jp-border-width) var(--jp-input-border-color);\n}\n\n.lm-CommandPalette.lm-mod-focused .lm-CommandPalette-wrapper {\n box-shadow:\n inset 0 0 0 1px var(--jp-input-active-box-shadow-color),\n inset 0 0 0 3px var(--jp-input-active-box-shadow-color);\n}\n\n.jp-SearchIconGroup {\n color: white;\n background-color: var(--jp-brand-color1);\n position: absolute;\n top: 4px;\n right: 4px;\n padding: 5px 5px 1px;\n}\n\n.jp-SearchIconGroup svg {\n height: 20px;\n width: 20px;\n}\n\n.jp-SearchIconGroup .jp-icon3[fill] {\n fill: var(--jp-layout-color0);\n}\n\n.lm-CommandPalette-input {\n background: transparent;\n width: calc(100% - 18px);\n float: left;\n border: none;\n outline: none;\n font-size: var(--jp-ui-font-size1);\n color: var(--jp-ui-font-color0);\n line-height: var(--jp-private-commandpalette-search-height);\n}\n\n.lm-CommandPalette-input::-webkit-input-placeholder,\n.lm-CommandPalette-input::-moz-placeholder,\n.lm-CommandPalette-input:-ms-input-placeholder {\n color: var(--jp-ui-font-color2);\n font-size: var(--jp-ui-font-size1);\n}\n\n/*-----------------------------------------------------------------------------\n| Results\n|----------------------------------------------------------------------------*/\n\n.lm-CommandPalette-header:first-child {\n margin-top: 0;\n}\n\n.lm-CommandPalette-header {\n border-bottom: solid var(--jp-border-width) var(--jp-border-color2);\n color: var(--jp-ui-font-color1);\n cursor: pointer;\n display: flex;\n font-size: var(--jp-ui-font-size0);\n font-weight: 600;\n letter-spacing: 1px;\n margin-top: 8px;\n padding: 8px 0 8px 12px;\n text-transform: uppercase;\n}\n\n.lm-CommandPalette-header.lm-mod-active {\n background: var(--jp-layout-color2);\n}\n\n.lm-CommandPalette-header > mark {\n background-color: transparent;\n font-weight: bold;\n color: var(--jp-ui-font-color1);\n}\n\n.lm-CommandPalette-item {\n padding: 4px 12px 4px 4px;\n color: var(--jp-ui-font-color1);\n font-size: var(--jp-ui-font-size1);\n font-weight: 400;\n display: flex;\n}\n\n.lm-CommandPalette-item.lm-mod-disabled {\n color: var(--jp-ui-font-color2);\n}\n\n.lm-CommandPalette-item.lm-mod-active {\n color: var(--jp-ui-inverse-font-color1);\n background: var(--jp-brand-color1);\n}\n\n.lm-CommandPalette-item.lm-mod-active .lm-CommandPalette-itemLabel > mark {\n color: var(--jp-ui-inverse-font-color0);\n}\n\n.lm-CommandPalette-item.lm-mod-active .jp-icon-selectable[fill] {\n fill: var(--jp-layout-color0);\n}\n\n.lm-CommandPalette-item.lm-mod-active:hover:not(.lm-mod-disabled) {\n color: var(--jp-ui-inverse-font-color1);\n background: var(--jp-brand-color1);\n}\n\n.lm-CommandPalette-item:hover:not(.lm-mod-active):not(.lm-mod-disabled) {\n background: var(--jp-layout-color2);\n}\n\n.lm-CommandPalette-itemContent {\n overflow: hidden;\n}\n\n.lm-CommandPalette-itemLabel > mark {\n color: var(--jp-ui-font-color0);\n background-color: transparent;\n font-weight: bold;\n}\n\n.lm-CommandPalette-item.lm-mod-disabled mark {\n color: var(--jp-ui-font-color2);\n}\n\n.lm-CommandPalette-item .lm-CommandPalette-itemIcon {\n margin: 0 4px 0 0;\n position: relative;\n width: 16px;\n top: 2px;\n flex: 0 0 auto;\n}\n\n.lm-CommandPalette-item.lm-mod-disabled .lm-CommandPalette-itemIcon {\n opacity: 0.6;\n}\n\n.lm-CommandPalette-item .lm-CommandPalette-itemShortcut {\n flex: 0 0 auto;\n}\n\n.lm-CommandPalette-itemCaption {\n display: none;\n}\n\n.lm-CommandPalette-content {\n background-color: var(--jp-layout-color1);\n}\n\n.lm-CommandPalette-content:empty::after {\n content: 'No results';\n margin: auto;\n margin-top: 20px;\n width: 100px;\n display: block;\n font-size: var(--jp-ui-font-size2);\n font-family: var(--jp-ui-font-family);\n font-weight: lighter;\n}\n\n.lm-CommandPalette-emptyMessage {\n text-align: center;\n margin-top: 24px;\n line-height: 1.32;\n padding: 0 8px;\n color: var(--jp-content-font-color3);\n}\n",""]);const l=a},52269:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-Dialog.jp-ThemedContainer {\n position: absolute;\n z-index: 10000;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n top: 0;\n left: 0;\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n background: var(--jp-dialog-background);\n /* stylelint-disable */\n container-type: inline-size;\n /* stylelint-enable */\n}\n\n.jp-Dialog-content {\n display: flex;\n flex-direction: column;\n margin-left: auto;\n margin-right: auto;\n background: var(--jp-layout-color1);\n padding: 24px 24px 12px;\n min-width: 300px;\n min-height: 150px;\n max-width: 1000px;\n max-height: 500px;\n box-sizing: border-box;\n box-shadow: var(--jp-elevation-z20);\n word-wrap: break-word;\n border-radius: var(--jp-border-radius);\n\n /* This is needed so that all font sizing of children done in ems is\n * relative to this base size */\n font-size: var(--jp-ui-font-size1);\n color: var(--jp-ui-font-color1);\n resize: both;\n overflow: hidden;\n}\n\n.jp-Dialog-content.jp-Dialog-content-small {\n max-width: 500px;\n}\n\n.jp-Dialog-button {\n overflow: visible;\n}\n\nbutton.jp-Dialog-button:disabled {\n opacity: 0.6;\n}\n\nbutton.jp-Dialog-button:focus {\n outline: 1px solid var(--jp-brand-color1);\n outline-offset: 4px;\n -moz-outline-radius: 0;\n}\n\nbutton.jp-Dialog-button:focus::-moz-focus-inner {\n border: 0;\n}\n\nbutton.jp-Dialog-button.jp-mod-styled.jp-mod-accept:focus,\nbutton.jp-Dialog-button.jp-mod-styled.jp-mod-warn:focus,\nbutton.jp-Dialog-button.jp-mod-styled.jp-mod-reject:focus {\n outline-offset: 4px;\n -moz-outline-radius: 0;\n}\n\nbutton.jp-Dialog-button.jp-mod-styled.jp-mod-accept:focus {\n outline: 1px solid var(--jp-accept-color-normal, var(--jp-brand-color1));\n}\n\nbutton.jp-Dialog-button.jp-mod-styled.jp-mod-warn:focus {\n outline: 1px solid var(--jp-warn-color-normal, var(--jp-error-color1));\n}\n\nbutton.jp-Dialog-button.jp-mod-styled.jp-mod-reject:focus {\n outline: 1px solid var(--jp-reject-color-normal, var(--md-grey-600, #757575));\n}\n\nbutton.jp-Dialog-close-button {\n padding: 0;\n height: 100%;\n min-width: unset;\n min-height: unset;\n}\n\n.jp-Dialog-header {\n display: flex;\n justify-content: space-between;\n flex: 0 0 auto;\n padding-bottom: 12px;\n font-size: var(--jp-ui-font-size3);\n font-weight: 400;\n color: var(--jp-ui-font-color1);\n}\n\n.jp-Dialog-body {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n font-size: var(--jp-ui-font-size1);\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n overflow: auto;\n}\n\n.jp-Dialog-footer {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: start;\n flex: 0 0 auto;\n gap: 5px;\n margin-left: -12px;\n margin-right: -12px;\n padding: 12px;\n}\n\n.jp-Dialog-footerButtons {\n width: 100%;\n text-align: end;\n}\n\n.jp-Dialog-checkbox {\n padding-right: 5px;\n display: flex;\n align-items: center;\n}\n\n.jp-Dialog-spacer {\n flex: 1 1 auto;\n}\n\n.jp-Dialog-title {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.jp-Dialog-body > .jp-select-wrapper {\n width: 100%;\n}\n\n.jp-Dialog-body > button {\n padding: 0 16px;\n}\n\n.jp-Dialog-body > label {\n line-height: 1.4;\n color: var(--jp-ui-font-color0);\n}\n\n.jp-Dialog-button.jp-mod-styled:not(:last-child) {\n margin-right: 12px;\n}\n\n/* stylelint-disable */\n@container (max-width: 560px) {\n /* stylelint-enable */\n .jp-Dialog-footer {\n flex-direction: column;\n align-items: center;\n gap: 7px;\n }\n}\n",""]);const l=a},5729:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n.jp-Input-Boolean-Dialog {\n flex-direction: row-reverse;\n align-items: end;\n width: 100%;\n}\n\n.jp-Input-Boolean-Dialog > label {\n flex: 1 1 auto;\n}\n\n.jp-InputDialog-inputWrapper {\n display: flex;\n align-items: baseline;\n}\n\n.jp-InputDialog-inputWrapper > input.jp-mod-styled:invalid {\n border-color: var(--jp-error-color0);\n background: var(--jp-error-color3);\n}\n\n.jp-InputDialog-inputWrapper\n > input[required].jp-mod-styled:invalid:placeholder-shown {\n /* Do not show invalid style when placeholder is shown */\n border-color: unset;\n background: unset;\n}\n",""]);const l=a},48293:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/* licenses */\n.jp-Licenses {\n display: flex;\n flex-direction: row;\n align-items: stretch;\n background-color: var(--jp-layout-color0);\n}\n\n.jp-Licenses-FormArea {\n display: flex;\n flex-direction: column;\n min-width: calc(10 * var(--jp-ui-font-size1));\n width: calc(18 * var(--jp-ui-font-size1));\n}\n\n.jp-Licenses .lm-SplitPanel-handle:hover {\n background-color: var(--jp-brand-color2);\n}\n\n/* filters */\n.jp-Licenses-Filters {\n padding: var(--jp-ui-font-size1) calc(var(--jp-ui-font-size1) / 2) 0\n var(--jp-ui-font-size1);\n}\n\n.jp-Licenses-Filters label {\n display: block;\n}\n\n.jp-Licenses-Filters-title {\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 1px;\n font-size: var(--jp-ui-font-size0);\n color: var(--jp-ui-font-color0);\n}\n\n.jp-RenderedHTMLCommon.jp-Licenses-Filters ul,\n.jp-RenderedHTMLCommon.jp-Licenses-Filters li {\n list-style: none;\n color: var(--jp-ui-font-color0);\n}\n\n.jp-Licenses-Filters input {\n width: 100%;\n}\n\n.jp-RenderedHTMLCommon.jp-Licenses-Filters ul {\n padding: 0 0 var(--jp-ui-font-size1) 0;\n margin: 0;\n padding-bottom: var(--jp-ui-font-size1);\n}\n\n/* bundles */\n.jp-Licenses-Bundles {\n background-color: var(--jp-layout-color2);\n overflow-y: auto;\n flex: 1;\n}\n\n.jp-Licenses-Bundles .lm-TabBar-content {\n width: 100%;\n}\n\n.jp-Licenses-Bundles .lm-TabBar-tab {\n padding: calc(var(--jp-ui-font-size1) / 2);\n background-color: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n}\n\n.jp-Licenses-Bundles .lm-TabBar-tabLabel {\n text-overflow: ellipsis;\n}\n\n.jp-Licenses-Bundles .lm-TabBar-tab label {\n background-color: var(--jp-layout-color2);\n border-radius: var(--jp-ui-font-size1);\n width: calc(2.5 * var(--jp-ui-font-size1));\n padding: 0 calc(var(--jp-ui-font-size1) / 2);\n text-align: center;\n margin-left: calc(var(--jp-ui-font-size1) / 2);\n}\n\n.jp-Licenses-Bundles .lm-TabBar-tab.lm-mod-current {\n background-color: var(--jp-brand-color1);\n color: #fff;\n}\n\n.jp-Licenses-Bundles .lm-TabBar-tab.lm-mod-current label {\n background-color: #fff;\n color: var(--jp-brand-color1);\n}\n\n/* license grid */\n.jp-Licenses-Grid.jp-RenderedHTMLCommon {\n min-width: calc(var(--jp-ui-font-size1) * 10);\n display: flex;\n flex-direction: column;\n padding: 0;\n}\n\n.jp-Licenses-Grid.jp-RenderedHTMLCommon form {\n flex: 1;\n display: flex;\n flex-direction: column;\n overflow-y: scroll;\n margin: 0;\n padding: 0;\n}\n\n.jp-RenderedHTMLCommon.jp-Licenses-Grid table {\n flex: 1;\n max-width: 100%;\n border: solid var(--jp-border-width) var(--jp-border-color2);\n border-top: 0;\n border-bottom: 0;\n margin: 0;\n}\n\n.jp-Licenses-Grid.jp-RenderedHTMLCommon td,\n.jp-Licenses-Grid.jp-RenderedHTMLCommon th {\n text-align: left;\n}\n\n.jp-Licenses-Grid td:nth-child(1) {\n max-width: calc(2 * var(--jp-ui-font-size1));\n}\n\n.jp-Licenses-Grid label {\n width: 100%;\n}\n\n.jp-Licenses .jp-Licenses-Grid.jp-RenderedHTMLCommon code {\n background-color: transparent;\n padding: 0;\n}\n\n.jp-Licenses-Grid.jp-RenderedHTMLCommon tr.jp-mod-selected {\n background-color: var(--jp-brand-color1);\n color: #fff;\n}\n\n.jp-Licenses-Grid.jp-RenderedHTMLCommon .jp-mod-selected code {\n color: #fff;\n}\n\n/* license text */\n.jp-Licenses-Text {\n min-width: calc(10 * var(--jp-ui-font-size1));\n padding: 0 0 0 var(--jp-ui-font-size1);\n display: flex;\n flex-direction: column;\n}\n\n.jp-Licenses-Text h1 {\n flex: initial;\n margin-bottom: 0;\n}\n\n.jp-Licenses-Text h1:empty {\n display: none;\n}\n\n.jp-Licenses-Text blockquote {\n flex: initial;\n}\n\n.jp-Licenses-Text.jp-RenderedHTMLCommon code {\n overflow-wrap: anywhere;\n overflow-y: auto;\n flex: 1;\n padding-right: var(--jp-ui-font-size1);\n margin-bottom: 0;\n padding-bottom: var(--jp-ui-font-size1);\n}\n\n.jp-Licenses-Text code:empty {\n display: none;\n}\n",""]);const l=a},17333:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-MainAreaWidget > :focus {\n outline: none;\n}\n\n.jp-MainAreaWidget .jp-MainAreaWidget-error {\n padding: 6px;\n}\n\n.jp-MainAreaWidget .jp-MainAreaWidget-error > pre {\n width: auto;\n padding: 10px;\n background: var(--jp-error-color3);\n border: var(--jp-border-width) solid var(--jp-error-color1);\n border-radius: var(--jp-border-radius);\n color: var(--jp-ui-font-color1);\n font-size: var(--jp-ui-font-size1);\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n",""]);const l=a},76486:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n/**\n * google-material-color v1.2.6\n * https://github.com/danlevan/google-material-color\n */\n:root {\n --md-red-50: #ffebee;\n --md-red-100: #ffcdd2;\n --md-red-200: #ef9a9a;\n --md-red-300: #e57373;\n --md-red-400: #ef5350;\n --md-red-500: #f44336;\n --md-red-600: #e53935;\n --md-red-700: #d32f2f;\n --md-red-800: #c62828;\n --md-red-900: #b71c1c;\n --md-red-A100: #ff8a80;\n --md-red-A200: #ff5252;\n --md-red-A400: #ff1744;\n --md-red-A700: #d50000;\n --md-pink-50: #fce4ec;\n --md-pink-100: #f8bbd0;\n --md-pink-200: #f48fb1;\n --md-pink-300: #f06292;\n --md-pink-400: #ec407a;\n --md-pink-500: #e91e63;\n --md-pink-600: #d81b60;\n --md-pink-700: #c2185b;\n --md-pink-800: #ad1457;\n --md-pink-900: #880e4f;\n --md-pink-A100: #ff80ab;\n --md-pink-A200: #ff4081;\n --md-pink-A400: #f50057;\n --md-pink-A700: #c51162;\n --md-purple-50: #f3e5f5;\n --md-purple-100: #e1bee7;\n --md-purple-200: #ce93d8;\n --md-purple-300: #ba68c8;\n --md-purple-400: #ab47bc;\n --md-purple-500: #9c27b0;\n --md-purple-600: #8e24aa;\n --md-purple-700: #7b1fa2;\n --md-purple-800: #6a1b9a;\n --md-purple-900: #4a148c;\n --md-purple-A100: #ea80fc;\n --md-purple-A200: #e040fb;\n --md-purple-A400: #d500f9;\n --md-purple-A700: #a0f;\n --md-deep-purple-50: #ede7f6;\n --md-deep-purple-100: #d1c4e9;\n --md-deep-purple-200: #b39ddb;\n --md-deep-purple-300: #9575cd;\n --md-deep-purple-400: #7e57c2;\n --md-deep-purple-500: #673ab7;\n --md-deep-purple-600: #5e35b1;\n --md-deep-purple-700: #512da8;\n --md-deep-purple-800: #4527a0;\n --md-deep-purple-900: #311b92;\n --md-deep-purple-A100: #b388ff;\n --md-deep-purple-A200: #7c4dff;\n --md-deep-purple-A400: #651fff;\n --md-deep-purple-A700: #6200ea;\n --md-indigo-50: #e8eaf6;\n --md-indigo-100: #c5cae9;\n --md-indigo-200: #9fa8da;\n --md-indigo-300: #7986cb;\n --md-indigo-400: #5c6bc0;\n --md-indigo-500: #3f51b5;\n --md-indigo-600: #3949ab;\n --md-indigo-700: #303f9f;\n --md-indigo-800: #283593;\n --md-indigo-900: #1a237e;\n --md-indigo-A100: #8c9eff;\n --md-indigo-A200: #536dfe;\n --md-indigo-A400: #3d5afe;\n --md-indigo-A700: #304ffe;\n --md-blue-50: #e3f2fd;\n --md-blue-100: #bbdefb;\n --md-blue-200: #90caf9;\n --md-blue-300: #64b5f6;\n --md-blue-400: #42a5f5;\n --md-blue-500: #2196f3;\n --md-blue-600: #1e88e5;\n --md-blue-700: #1976d2;\n --md-blue-800: #1565c0;\n --md-blue-900: #0d47a1;\n --md-blue-A100: #82b1ff;\n --md-blue-A200: #448aff;\n --md-blue-A400: #2979ff;\n --md-blue-A700: #2962ff;\n --md-light-blue-50: #e1f5fe;\n --md-light-blue-100: #b3e5fc;\n --md-light-blue-200: #81d4fa;\n --md-light-blue-300: #4fc3f7;\n --md-light-blue-400: #29b6f6;\n --md-light-blue-500: #03a9f4;\n --md-light-blue-600: #039be5;\n --md-light-blue-700: #0288d1;\n --md-light-blue-800: #0277bd;\n --md-light-blue-900: #01579b;\n --md-light-blue-A100: #80d8ff;\n --md-light-blue-A200: #40c4ff;\n --md-light-blue-A400: #00b0ff;\n --md-light-blue-A700: #0091ea;\n --md-cyan-50: #e0f7fa;\n --md-cyan-100: #b2ebf2;\n --md-cyan-200: #80deea;\n --md-cyan-300: #4dd0e1;\n --md-cyan-400: #26c6da;\n --md-cyan-500: #00bcd4;\n --md-cyan-600: #00acc1;\n --md-cyan-700: #0097a7;\n --md-cyan-800: #00838f;\n --md-cyan-900: #006064;\n --md-cyan-A100: #84ffff;\n --md-cyan-A200: #18ffff;\n --md-cyan-A400: #00e5ff;\n --md-cyan-A700: #00b8d4;\n --md-teal-50: #e0f2f1;\n --md-teal-100: #b2dfdb;\n --md-teal-200: #80cbc4;\n --md-teal-300: #4db6ac;\n --md-teal-400: #26a69a;\n --md-teal-500: #009688;\n --md-teal-600: #00897b;\n --md-teal-700: #00796b;\n --md-teal-800: #00695c;\n --md-teal-900: #004d40;\n --md-teal-A100: #a7ffeb;\n --md-teal-A200: #64ffda;\n --md-teal-A400: #1de9b6;\n --md-teal-A700: #00bfa5;\n --md-green-50: #e8f5e9;\n --md-green-100: #c8e6c9;\n --md-green-200: #a5d6a7;\n --md-green-300: #81c784;\n --md-green-400: #66bb6a;\n --md-green-500: #4caf50;\n --md-green-600: #43a047;\n --md-green-700: #388e3c;\n --md-green-800: #2e7d32;\n --md-green-900: #1b5e20;\n --md-green-A100: #b9f6ca;\n --md-green-A200: #69f0ae;\n --md-green-A400: #00e676;\n --md-green-A700: #00c853;\n --md-light-green-50: #f1f8e9;\n --md-light-green-100: #dcedc8;\n --md-light-green-200: #c5e1a5;\n --md-light-green-300: #aed581;\n --md-light-green-400: #9ccc65;\n --md-light-green-500: #8bc34a;\n --md-light-green-600: #7cb342;\n --md-light-green-700: #689f38;\n --md-light-green-800: #558b2f;\n --md-light-green-900: #33691e;\n --md-light-green-A100: #ccff90;\n --md-light-green-A200: #b2ff59;\n --md-light-green-A400: #76ff03;\n --md-light-green-A700: #64dd17;\n --md-lime-50: #f9fbe7;\n --md-lime-100: #f0f4c3;\n --md-lime-200: #e6ee9c;\n --md-lime-300: #dce775;\n --md-lime-400: #d4e157;\n --md-lime-500: #cddc39;\n --md-lime-600: #c0ca33;\n --md-lime-700: #afb42b;\n --md-lime-800: #9e9d24;\n --md-lime-900: #827717;\n --md-lime-A100: #f4ff81;\n --md-lime-A200: #eeff41;\n --md-lime-A400: #c6ff00;\n --md-lime-A700: #aeea00;\n --md-yellow-50: #fffde7;\n --md-yellow-100: #fff9c4;\n --md-yellow-200: #fff59d;\n --md-yellow-300: #fff176;\n --md-yellow-400: #ffee58;\n --md-yellow-500: #ffeb3b;\n --md-yellow-600: #fdd835;\n --md-yellow-700: #fbc02d;\n --md-yellow-800: #f9a825;\n --md-yellow-900: #f57f17;\n --md-yellow-A100: #ffff8d;\n --md-yellow-A200: #ff0;\n --md-yellow-A400: #ffea00;\n --md-yellow-A700: #ffd600;\n --md-amber-50: #fff8e1;\n --md-amber-100: #ffecb3;\n --md-amber-200: #ffe082;\n --md-amber-300: #ffd54f;\n --md-amber-400: #ffca28;\n --md-amber-500: #ffc107;\n --md-amber-600: #ffb300;\n --md-amber-700: #ffa000;\n --md-amber-800: #ff8f00;\n --md-amber-900: #ff6f00;\n --md-amber-A100: #ffe57f;\n --md-amber-A200: #ffd740;\n --md-amber-A400: #ffc400;\n --md-amber-A700: #ffab00;\n --md-orange-50: #fff3e0;\n --md-orange-100: #ffe0b2;\n --md-orange-200: #ffcc80;\n --md-orange-300: #ffb74d;\n --md-orange-400: #ffa726;\n --md-orange-500: #ff9800;\n --md-orange-600: #fb8c00;\n --md-orange-700: #f57c00;\n --md-orange-800: #ef6c00;\n --md-orange-900: #e65100;\n --md-orange-A100: #ffd180;\n --md-orange-A200: #ffab40;\n --md-orange-A400: #ff9100;\n --md-orange-A700: #ff6d00;\n --md-deep-orange-50: #fbe9e7;\n --md-deep-orange-100: #ffccbc;\n --md-deep-orange-200: #ffab91;\n --md-deep-orange-300: #ff8a65;\n --md-deep-orange-400: #ff7043;\n --md-deep-orange-500: #ff5722;\n --md-deep-orange-600: #f4511e;\n --md-deep-orange-700: #e64a19;\n --md-deep-orange-800: #d84315;\n --md-deep-orange-900: #bf360c;\n --md-deep-orange-A100: #ff9e80;\n --md-deep-orange-A200: #ff6e40;\n --md-deep-orange-A400: #ff3d00;\n --md-deep-orange-A700: #dd2c00;\n --md-brown-50: #efebe9;\n --md-brown-100: #d7ccc8;\n --md-brown-200: #bcaaa4;\n --md-brown-300: #a1887f;\n --md-brown-400: #8d6e63;\n --md-brown-500: #795548;\n --md-brown-600: #6d4c41;\n --md-brown-700: #5d4037;\n --md-brown-800: #4e342e;\n --md-brown-900: #3e2723;\n --md-grey-50: #fafafa;\n --md-grey-100: #f5f5f5;\n --md-grey-200: #eee;\n --md-grey-300: #e0e0e0;\n --md-grey-400: #bdbdbd;\n --md-grey-500: #9e9e9e;\n --md-grey-600: #757575;\n --md-grey-700: #616161;\n --md-grey-800: #424242;\n --md-grey-900: #212121;\n --md-blue-grey-50: #eceff1;\n --md-blue-grey-100: #cfd8dc;\n --md-blue-grey-200: #b0bec5;\n --md-blue-grey-300: #90a4ae;\n --md-blue-grey-400: #78909c;\n --md-blue-grey-500: #607d8b;\n --md-blue-grey-600: #546e7a;\n --md-blue-grey-700: #455a64;\n --md-blue-grey-800: #37474f;\n --md-blue-grey-900: #263238;\n}\n",""]);const l=a},8812:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n/* @deprecated dead code to be removed in JupyterLab 5 */\n.jp-Toolbar-item.jp-Toolbar-kernelStatus {\n display: inline-block;\n width: 32px;\n background-repeat: no-repeat;\n background-position: center;\n background-size: 16px;\n}\n",""]);const l=a},81514:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/**\n * Base styles for the audio viewer\n */\n\n.jp-AudioViewer {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n padding: 20px;\n box-sizing: border-box;\n}\n\n.jp-AudioViewer > audio {\n width: 100%;\n object-fit: contain;\n}\n",""]);const l=a},31772:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n.jp-cell-button .jp-icon3[fill] {\n fill: var(--jp-inverse-layout-color4);\n}\n\n.jp-cell-button:hover .jp-icon3[fill] {\n fill: var(--jp-inverse-layout-color2);\n}\n\n.jp-toolbar-overlap .jp-cell-toolbar {\n display: none;\n}\n\n.jp-cell-toolbar {\n display: flex;\n flex-direction: row;\n padding: 0;\n min-height: 25px;\n z-index: 6;\n position: absolute;\n right: 3px;\n\n /* Override .jp-Toolbar */\n background-color: transparent;\n border-bottom: inherit;\n box-shadow: none;\n}\n\n/* Overrides for mobile view hiding cell toolbar */\n@media only screen and (width <= 760px) {\n .jp-cell-toolbar {\n display: none;\n }\n}\n\n.jp-cell-toolbar button.jp-ToolbarButtonComponent {\n cursor: pointer;\n}\n\n.jp-cell-toolbar .jp-ToolbarButton button {\n display: none;\n}\n\n.jp-cell-toolbar .jp-ToolbarButton .jp-cell-all,\n.jp-CodeCell .jp-ToolbarButton .jp-cell-code,\n.jp-MarkdownCell .jp-ToolbarButton .jp-cell-markdown,\n.jp-RawCell .jp-ToolbarButton .jp-cell-raw {\n display: block;\n}\n\n.jp-cell-toolbar .jp-Toolbar-spacer {\n flex: 1 1 auto;\n}\n\n.jp-cell-mod-click {\n cursor: pointer;\n}\n\n/* Custom styling for rendered markdown cells so that cell toolbar is visible */\n.jp-MarkdownOutput {\n border-width: var(--jp-border-width);\n border-color: transparent;\n border-style: solid;\n}\n\n.jp-mod-active .jp-MarkdownOutput {\n border-color: var(--jp-cell-editor-border-color);\n}\n",""]);const l=a},55717:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=n(35541);var l=n(30684);var d=n(25147);var c=n(88771);var h=n(60846);var u=r()(s());u.i(a.A);u.i(l.A);u.i(d.A);u.i(c.A);u.i(h.A);u.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n",""]);const p=u},35541:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,'/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-Collapser {\n flex: 0 0 var(--jp-cell-collapser-width);\n padding: 0;\n margin: 0;\n border: none;\n outline: none;\n background: transparent;\n border-radius: var(--jp-border-radius);\n opacity: 1;\n}\n\n.jp-Collapser-child {\n display: block;\n width: 100%;\n box-sizing: border-box;\n\n /* height: 100% doesn\'t work because the height of its parent is computed from content */\n position: absolute;\n top: 0;\n bottom: 0;\n}\n\n/*-----------------------------------------------------------------------------\n| Printing\n|----------------------------------------------------------------------------*/\n\n/*\nHiding collapsers in print mode.\n\nNote: input and output wrappers have "display: block" property in print mode.\n*/\n\n@media print {\n .jp-Collapser {\n display: none;\n }\n}\n',""]);const l=a},30684:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Header/Footer\n|----------------------------------------------------------------------------*/\n\n/* Hidden by zero height by default */\n.jp-CellHeader,\n.jp-CellFooter {\n height: 0;\n width: 100%;\n padding: 0;\n margin: 0;\n border: none;\n outline: none;\n background: transparent;\n}\n",""]);const l=a},25147:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Input\n|----------------------------------------------------------------------------*/\n\n/* All input areas */\n.jp-InputArea {\n display: flex;\n flex-direction: row;\n width: 100%;\n overflow: hidden;\n}\n\n.jp-InputArea-editor {\n flex: 1 1 auto;\n overflow: hidden;\n\n /* This is the non-active, default styling */\n border: var(--jp-border-width) solid var(--jp-cell-editor-border-color);\n border-radius: 0;\n background: var(--jp-cell-editor-background);\n}\n\n.jp-InputPrompt {\n flex: 0 0 var(--jp-cell-prompt-width);\n width: var(--jp-cell-prompt-width);\n color: var(--jp-cell-inprompt-font-color);\n font-family: var(--jp-cell-prompt-font-family);\n padding: var(--jp-code-padding);\n letter-spacing: var(--jp-cell-prompt-letter-spacing);\n opacity: var(--jp-cell-prompt-opacity);\n line-height: var(--jp-code-line-height);\n font-size: var(--jp-code-font-size);\n border: var(--jp-border-width) solid transparent;\n\n /* Right align prompt text, don't wrap to handle large prompt numbers */\n text-align: right;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n /* Disable text selection */\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n/*-----------------------------------------------------------------------------\n| Print\n|----------------------------------------------------------------------------*/\n@media print {\n .jp-InputArea {\n display: table;\n table-layout: fixed;\n }\n\n .jp-InputArea-editor {\n display: table-cell;\n vertical-align: top;\n }\n\n .jp-InputPrompt {\n display: table-cell;\n vertical-align: top;\n }\n}\n\n/*-----------------------------------------------------------------------------\n| Mobile\n|----------------------------------------------------------------------------*/\n@media only screen and (width <= 760px) {\n .jp-InputArea {\n flex-direction: column;\n }\n\n .jp-InputArea-editor {\n margin-left: var(--jp-code-padding);\n }\n\n .jp-InputPrompt {\n flex: 0 0 auto;\n text-align: left;\n }\n}\n",""]);const l=a},88771:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Placeholder\n|----------------------------------------------------------------------------*/\n\n.jp-Placeholder {\n display: flex;\n flex-direction: row;\n width: 100%;\n}\n\n.jp-Placeholder-prompt {\n flex: 0 0 var(--jp-cell-prompt-width);\n box-sizing: border-box;\n}\n\n.jp-Placeholder-content {\n flex: 1 1 auto;\n padding: 4px 6px;\n border: 1px solid transparent;\n border-radius: 0;\n background: none;\n box-sizing: border-box;\n cursor: pointer;\n}\n\n.jp-Placeholder-contentContainer {\n display: flex;\n}\n\n.jp-Placeholder-content:hover,\n.jp-InputPlaceholder > .jp-Placeholder-content:hover {\n border-color: var(--jp-layout-color3);\n}\n\n.jp-Placeholder-content .jp-MoreHorizIcon {\n width: 32px;\n height: 16px;\n border: 1px solid transparent;\n border-radius: var(--jp-border-radius);\n}\n\n.jp-Placeholder-content .jp-MoreHorizIcon:hover {\n border: 1px solid var(--jp-border-color1);\n box-shadow: var(--jp-toolbar-box-shadow);\n background-color: var(--jp-layout-color0);\n}\n\n.jp-PlaceholderText {\n white-space: nowrap;\n overflow-x: hidden;\n color: var(--jp-inverse-layout-color3);\n font-family: var(--jp-code-font-family);\n}\n\n.jp-InputPlaceholder > .jp-Placeholder-content {\n border-color: var(--jp-cell-editor-border-color);\n background: var(--jp-cell-editor-background);\n}\n\n/*-----------------------------------------------------------------------------\n| Print\n|----------------------------------------------------------------------------*/\n@media print {\n .jp-Placeholder {\n display: table;\n table-layout: fixed;\n }\n\n .jp-Placeholder-content {\n display: table-cell;\n }\n\n .jp-Placeholder-prompt {\n display: table-cell;\n }\n}\n",""]);const l=a},60846:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Private CSS variables\n|----------------------------------------------------------------------------*/\n\n:root {\n --jp-private-cell-scrolling-output-offset: 5px;\n}\n\n/*-----------------------------------------------------------------------------\n| Cell\n|----------------------------------------------------------------------------*/\n\n.jp-Cell {\n padding: var(--jp-cell-padding);\n margin: 0;\n border: none;\n outline: none;\n background: transparent;\n}\n\n/*-----------------------------------------------------------------------------\n| Common input/output\n|----------------------------------------------------------------------------*/\n\n.jp-Cell-inputWrapper,\n.jp-Cell-outputWrapper {\n display: flex;\n flex-direction: row;\n padding: 0;\n margin: 0;\n\n /* Added to reveal the box-shadow on the input and output collapsers. */\n overflow: visible;\n}\n\n/* Only input/output areas inside cells */\n.jp-Cell-inputArea,\n.jp-Cell-outputArea {\n flex: 1 1 auto;\n}\n\n/*-----------------------------------------------------------------------------\n| Collapser\n|----------------------------------------------------------------------------*/\n\n/* Make the output collapser disappear when there is not output, but do so\n * in a manner that leaves it in the layout and preserves its width.\n */\n.jp-Cell.jp-mod-noOutputs .jp-Cell-outputCollapser {\n border: none !important;\n background: transparent !important;\n}\n\n.jp-Cell:not(.jp-mod-noOutputs) .jp-Cell-outputCollapser {\n min-height: var(--jp-cell-collapser-min-height);\n}\n\n/*-----------------------------------------------------------------------------\n| Output\n|----------------------------------------------------------------------------*/\n\n/* Put a space between input and output when there IS output */\n.jp-Cell:not(.jp-mod-noOutputs) .jp-Cell-outputWrapper {\n margin-top: 5px;\n}\n\n.jp-CodeCell.jp-mod-outputsScrolled .jp-Cell-outputArea {\n overflow-y: auto;\n max-height: 24em;\n margin-left: var(--jp-private-cell-scrolling-output-offset);\n resize: vertical;\n}\n\n.jp-CodeCell.jp-mod-outputsScrolled .jp-Cell-outputArea[style*='height'] {\n max-height: unset;\n}\n\n.jp-CodeCell.jp-mod-outputsScrolled .jp-Cell-outputArea::after {\n content: ' ';\n box-shadow: inset 0 0 6px 2px rgb(0 0 0 / 30%);\n width: 100%;\n height: 100%;\n position: sticky;\n bottom: 0;\n top: 0;\n margin-top: -50%;\n float: left;\n display: block;\n pointer-events: none;\n}\n\n.jp-CodeCell.jp-mod-outputsScrolled .jp-OutputArea-child {\n padding-top: 6px;\n}\n\n.jp-CodeCell.jp-mod-outputsScrolled .jp-OutputArea-prompt {\n width: calc(\n var(--jp-cell-prompt-width) - var(--jp-private-cell-scrolling-output-offset)\n );\n flex: 0 0\n calc(\n var(--jp-cell-prompt-width) -\n var(--jp-private-cell-scrolling-output-offset)\n );\n}\n\n.jp-CodeCell.jp-mod-outputsScrolled .jp-OutputArea-promptOverlay {\n left: calc(-1 * var(--jp-private-cell-scrolling-output-offset));\n}\n\n/*-----------------------------------------------------------------------------\n| CodeCell\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| MarkdownCell\n|----------------------------------------------------------------------------*/\n\n.jp-MarkdownOutput {\n flex: 1 1 auto;\n width: 100%;\n margin-top: 0;\n margin-bottom: 0;\n padding-left: var(--jp-code-padding);\n}\n\n.jp-MarkdownOutput.jp-RenderedHTMLCommon {\n overflow: auto;\n}\n\n/* collapseHeadingButton (show always if hiddenCellsButton is _not_ shown) */\n.jp-collapseHeadingButton {\n display: flex;\n min-height: var(--jp-cell-collapser-min-height);\n font-size: var(--jp-code-font-size);\n position: absolute;\n background-color: transparent;\n background-size: 25px;\n background-repeat: no-repeat;\n background-position-x: center;\n background-position-y: top;\n background-image: var(--jp-icon-caret-down);\n right: 0;\n top: 0;\n bottom: 0;\n}\n\n.jp-collapseHeadingButton.jp-mod-collapsed {\n background-image: var(--jp-icon-caret-right);\n}\n\n/*\n set the container font size to match that of content\n so that the nested collapse buttons have the right size\n*/\n.jp-MarkdownCell .jp-InputPrompt {\n font-size: var(--jp-content-font-size1);\n}\n\n/*\n Align collapseHeadingButton with cell top header\n The font sizes are identical to the ones in packages/rendermime/style/base.css\n*/\n.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='1'] {\n font-size: var(--jp-content-font-size5);\n background-position-y: calc(0.3 * var(--jp-content-font-size5));\n}\n\n.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='2'] {\n font-size: var(--jp-content-font-size4);\n background-position-y: calc(0.3 * var(--jp-content-font-size4));\n}\n\n.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='3'] {\n font-size: var(--jp-content-font-size3);\n background-position-y: calc(0.3 * var(--jp-content-font-size3));\n}\n\n.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='4'] {\n font-size: var(--jp-content-font-size2);\n background-position-y: calc(0.3 * var(--jp-content-font-size2));\n}\n\n.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='5'] {\n font-size: var(--jp-content-font-size1);\n background-position-y: top;\n}\n\n.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='6'] {\n font-size: var(--jp-content-font-size0);\n background-position-y: top;\n}\n\n/* collapseHeadingButton (show only on (hover,active) if hiddenCellsButton is shown) */\n.jp-Notebook.jp-mod-showHiddenCellsButton .jp-collapseHeadingButton {\n display: none;\n}\n\n.jp-Notebook.jp-mod-showHiddenCellsButton\n :is(.jp-MarkdownCell:hover, .jp-mod-active)\n .jp-collapseHeadingButton {\n display: flex;\n}\n\n/* showHiddenCellsButton (only show if jp-mod-showHiddenCellsButton is set, which\nis a consequence of the showHiddenCellsButton option in Notebook Settings)*/\n.jp-Notebook.jp-mod-showHiddenCellsButton .jp-showHiddenCellsButton {\n margin-left: calc(var(--jp-cell-prompt-width) + 2 * var(--jp-code-padding));\n margin-top: var(--jp-code-padding);\n border: 1px solid var(--jp-border-color2);\n background-color: var(--jp-border-color3) !important;\n color: var(--jp-content-font-color0) !important;\n display: flex;\n}\n\n.jp-Notebook.jp-mod-showHiddenCellsButton .jp-showHiddenCellsButton:hover {\n background-color: var(--jp-border-color2) !important;\n}\n\n.jp-showHiddenCellsButton {\n display: none;\n}\n\n/*-----------------------------------------------------------------------------\n| Printing\n|----------------------------------------------------------------------------*/\n\n/*\nUsing block instead of flex to allow the use of the break-inside CSS property for\ncell outputs.\n*/\n\n@media print {\n .jp-Cell-inputWrapper,\n .jp-Cell-outputWrapper {\n display: block;\n }\n\n .jp-MarkdownOutput {\n display: table-cell;\n }\n}\n",""]);const l=a},96415:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n:root {\n --jp-add-tag-extra-width: 8px;\n}\n\n.jp-CellTags-Tag {\n height: 20px;\n border-radius: 10px;\n margin-right: 5px;\n margin-bottom: 10px;\n padding: 0 8px;\n font-size: var(--jp-ui-font-size1);\n display: inline-flex;\n justify-content: center;\n align-items: center;\n max-width: calc(100% - 25px);\n border: 1px solid var(--jp-border-color1);\n color: var(--jp-ui-font-color1);\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.jp-CellTags-Unapplied {\n background-color: var(--jp-layout-color2);\n}\n\n.jp-CellTags-Applied {\n background-color: var(--jp-layout-color3);\n}\n\n.jp-CellTags-Add {\n white-space: nowrap;\n overflow: hidden;\n border: none;\n outline: none;\n resize: horizontal;\n font-size: var(--jp-ui-font-size1);\n color: var(--jp-ui-font-color1);\n background: var(--jp-layout-color2);\n}\n\n.jp-CellTags-Holder {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.jp-CellTags-Empty {\n width: 4em;\n}\n",""]);const l=a},9534:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=n(94925);var l=r()(s());l.i(a.A);l.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-JSONEditor {\n display: flex;\n flex-direction: column;\n width: 100%;\n}\n\n.jp-JSONEditor-host {\n flex: 1 1 auto;\n border: var(--jp-border-width) solid var(--jp-input-border-color);\n border-radius: 0;\n background: var(--jp-layout-color0);\n min-height: 50px;\n padding: 1px;\n}\n\n.jp-JSONEditor.jp-mod-error .jp-JSONEditor-host {\n border-color: red;\n outline-color: red;\n}\n\n.jp-JSONEditor-header {\n display: flex;\n flex: 1 0 auto;\n padding: 0 0 0 12px;\n}\n\n.jp-JSONEditor-header label {\n flex: 0 0 auto;\n}\n\n.jp-JSONEditor-commitButton {\n height: 16px;\n width: 16px;\n background-size: 18px;\n background-repeat: no-repeat;\n background-position: center;\n}\n\n.jp-JSONEditor-host.jp-mod-focused {\n background-color: var(--jp-input-active-background);\n border: 1px solid var(--jp-input-active-border-color);\n box-shadow: var(--jp-input-box-shadow);\n}\n\n.jp-Editor.jp-mod-dropTarget {\n border: var(--jp-border-width) solid var(--jp-input-active-border-color);\n box-shadow: var(--jp-input-box-shadow);\n}\n",""]);const d=l},94925:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n.jp-lineFormSearch {\n padding: 4px 12px;\n background-color: var(--jp-layout-color2);\n box-shadow: var(--jp-toolbar-box-shadow);\n z-index: 2;\n font-size: var(--jp-ui-font-size1);\n}\n\n.jp-lineFormCaption {\n font-size: var(--jp-ui-font-size0);\n line-height: var(--jp-ui-font-size1);\n margin-top: 4px;\n color: var(--jp-ui-font-color0);\n}\n\n.jp-baseLineForm {\n border: none;\n border-top-right-radius: var(--jp-border-radius);\n border-bottom-right-radius: var(--jp-border-radius);\n position: absolute;\n background-size: 16px;\n background-repeat: no-repeat;\n background-position: center;\n outline: none;\n}\n\n.jp-lineFormButtonContainer {\n top: 4px;\n right: 8px;\n height: 24px;\n padding: 0 12px;\n width: 12px;\n}\n\n.jp-lineFormButtonIcon {\n top: 0;\n right: 0;\n background-color: var(--jp-brand-color1);\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n padding: 4px 6px;\n}\n\n.jp-lineFormButton {\n top: 0;\n right: 0;\n background-color: transparent;\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n}\n\n.jp-lineFormWrapper {\n overflow: hidden;\n padding: 0 8px;\n border: 1px solid var(--jp-border-color0);\n border-top-left-radius: var(--jp-border-radius);\n border-bottom-left-radius: var(--jp-border-radius);\n background-color: var(--jp-input-active-background);\n height: 22px;\n}\n\n.jp-lineFormWrapperFocusWithin {\n border: var(--jp-border-width) solid var(--jp-input-active-border-color);\n box-shadow: var(--jp-input-box-shadow);\n}\n\n.jp-lineFormInput {\n background: transparent;\n width: 200px;\n height: 100%;\n border: none;\n outline: none;\n color: var(--jp-ui-font-color0);\n padding: 0;\n}\n",""]);const l=a},29500:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=n(4417);var l=n.n(a);var d=new URL(n(78269),n.b);var c=r()(s());var h=l()(d);c.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.cm-editor {\n line-height: var(--jp-code-line-height);\n font-size: var(--jp-code-font-size);\n font-family: var(--jp-code-font-family);\n border: 0;\n border-radius: 0;\n height: auto;\n\n /* Changed to auto to autogrow */\n}\n\n/* Suppress automatic focus indicator outline */\n.cm-editor.cm-focused {\n outline: unset;\n}\n\n.cm-editor pre {\n padding: 0 var(--jp-code-padding);\n}\n\n.jp-CodeMirrorEditor[data-type='inline'] .cm-dialog {\n background-color: var(--jp-layout-color0);\n color: var(--jp-content-font-color1);\n}\n\n.jp-CodeMirrorEditor {\n cursor: text;\n}\n\n/* When zoomed out 67% and 33% on a screen of 1440 width x 900 height */\n@media screen and (width >= 2138px) and (width <= 4319px) {\n .jp-CodeMirrorEditor[data-type='inline'] .cm-cursor {\n border-left: var(--jp-code-cursor-width1) solid\n var(--jp-editor-cursor-color);\n }\n}\n\n/* When zoomed out less than 33% */\n@media screen and (width >= 4320px) {\n .jp-CodeMirrorEditor[data-type='inline'] .cm-cursor {\n border-left: var(--jp-code-cursor-width2) solid\n var(--jp-editor-cursor-color);\n }\n}\n\n/* stylelint-disable selector-max-class */\n\n/* We need all this classes for higher specificity to override CodeMirror's rule */\n.cm-editor.jp-mod-readOnly > .cm-scroller > .cm-cursorLayer .cm-cursor {\n display: none;\n}\n\n/* stylelint-enable selector-max-class */\n\n.jp-CollaboratorCursor {\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n border-top: none;\n border-bottom: 3px solid;\n background-clip: content-box;\n margin-left: -5px;\n margin-right: -5px;\n}\n\n.cm-builtin {\n color: var(--jp-mirror-editor-builtin-color);\n}\n\n.cm-searching,\n.cm-searching span {\n /* `.cm-searching span`: we need to override syntax highlighting */\n background-color: var(--jp-search-unselected-match-background-color);\n color: var(--jp-search-unselected-match-color);\n}\n\n.cm-searching::selection,\n.cm-searching span::selection {\n background-color: var(--jp-search-unselected-match-background-color);\n color: var(--jp-search-unselected-match-color);\n}\n\n.jp-current-match.cm-searching,\n.jp-current-match > .cm-searching,\n.jp-current-match > .cm-searching span,\n.cm-searching > .jp-current-match,\n.cm-searching > .jp-current-match span {\n background-color: var(--jp-search-selected-match-background-color);\n color: var(--jp-search-selected-match-color);\n}\n\n.jp-current-match > .cm-searching::selection,\n.jp-current-match > .cm-searching span::selection,\n.cm-searching > .jp-current-match::selection,\n.cm-searching > .jp-current-match span::selection {\n background-color: var(--jp-search-selected-match-background-color);\n color: var(--jp-search-selected-match-color);\n}\n\n.cm-trailingspace {\n background-image: url("+h+");\n background-position: center left;\n background-repeat: repeat-x;\n}\n\n.jp-CollaboratorCursor-hover {\n position: absolute;\n z-index: 1;\n transform: translateX(-50%);\n color: white;\n border-radius: 3px;\n padding-left: 4px;\n padding-right: 4px;\n padding-top: 1px;\n padding-bottom: 1px;\n text-align: center;\n font-size: var(--jp-ui-font-size1);\n white-space: nowrap;\n}\n\n.jp-CodeMirror-ruler {\n border-left: 1px dashed var(--jp-border-color2);\n}\n\n/* Styles for shared cursors (remote cursor locations and selected ranges) */\n.jp-CodeMirrorEditor .cm-ySelectionCaret {\n position: relative;\n border-left: 1px solid black;\n margin-left: -1px;\n margin-right: -1px;\n box-sizing: border-box;\n}\n\n.jp-CodeMirrorEditor .cm-ySelectionCaret > .cm-ySelectionInfo {\n white-space: nowrap;\n position: absolute;\n top: -1.15em;\n padding-bottom: 0.05em;\n left: -1px;\n font-size: 0.95em;\n font-family: var(--jp-ui-font-family);\n font-weight: bold;\n line-height: normal;\n user-select: none;\n color: white;\n padding-left: 2px;\n padding-right: 2px;\n z-index: 101;\n transition: opacity 0.3s ease-in-out;\n}\n\n.jp-CodeMirrorEditor .cm-ySelectionInfo {\n transition-delay: 0.7s;\n opacity: 0;\n}\n\n.jp-CodeMirrorEditor .cm-ySelectionCaret:hover > .cm-ySelectionInfo {\n opacity: 1;\n transition-delay: 0s;\n}\n",""]);const u=c},57331:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n:root {\n --jp-private-completer-item-height: 24px;\n\n /* Shift the baseline of the type character to align with the match text */\n --jp-private-completer-type-offset: 2px;\n}\n\n.jp-Completer {\n box-shadow: var(--jp-elevation-z6);\n background: var(--jp-layout-color1);\n color: var(--jp-content-font-color1);\n border: var(--jp-border-width) solid var(--jp-border-color1);\n padding: 0;\n display: flex;\n flex-direction: row;\n\n /* Needed to avoid scrollbar issues when using cached width. */\n box-sizing: content-box;\n\n /* Position the completer relative to the text editor, align the '.' */\n margin: 4px 0 0 -30px;\n z-index: 10001;\n}\n\n.jp-Completer-docpanel {\n border-left: var(--jp-border-width) solid var(--jp-border-color1);\n width: 400px;\n flex-shrink: 0;\n overflow-y: scroll;\n overflow-x: auto;\n padding: 8px;\n max-height: calc((10 * var(--jp-private-completer-item-height)) - 16px);\n}\n\n.jp-Completer-docpanel pre {\n border: none;\n margin: 0;\n padding: 0;\n white-space: pre-wrap;\n}\n\n.jp-Completer-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n overflow-y: scroll;\n overflow-x: hidden;\n max-height: calc((10 * var(--jp-private-completer-item-height)));\n min-height: calc(var(--jp-private-completer-item-height));\n width: 100%;\n}\n\n.jp-Completer-item {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n height: var(--jp-private-completer-item-height);\n min-width: 150px;\n display: grid;\n grid-template-columns: min-content 1fr min-content;\n position: relative;\n}\n\n.jp-Completer-item .jp-Completer-match {\n box-sizing: border-box;\n margin: 0;\n padding: 0 8px 0 6px;\n height: var(--jp-private-completer-item-height);\n font-family: var(--jp-code-font-family);\n font-size: var(--jp-code-font-size);\n line-height: var(--jp-private-completer-item-height);\n white-space: nowrap;\n}\n\n.jp-Completer-deprecated .jp-Completer-match {\n text-decoration: line-through;\n color: var(--jp-content-font-color2);\n}\n\n.jp-Completer-item .jp-Completer-type {\n box-sizing: border-box;\n height: var(--jp-private-completer-item-height);\n background: transparent;\n width: var(--jp-private-completer-item-height);\n}\n\n.jp-Completer-item .jp-Completer-icon {\n /* Normal element size from LabIconStyle.ISheetOptions */\n height: 16px;\n width: 16px;\n}\n\n.jp-Completer-item .jp-Completer-monogram {\n text-align: center;\n color: white;\n width: var(--jp-private-completer-item-height);\n font-family: var(--jp-ui-font-family);\n font-size: var(--jp-ui-font-size1);\n line-height: calc(\n var(--jp-private-completer-item-height) -\n var(--jp-private-completer-type-offset)\n );\n padding-bottom: var(--jp-private-completer-type-offset);\n}\n\n.jp-Completer-item .jp-Completer-typeExtended {\n box-sizing: border-box;\n height: var(--jp-private-completer-item-height);\n text-align: right;\n background: transparent;\n color: var(--jp-ui-font-color2);\n font-family: var(--jp-code-font-family);\n font-size: var(--jp-code-font-size);\n line-height: var(--jp-private-completer-item-height);\n padding-right: 8px;\n}\n\n.jp-Completer-item:hover {\n background: var(--jp-layout-color2);\n opacity: 0.8;\n}\n\n.jp-Completer-item.jp-mod-active {\n background: var(--jp-brand-color1);\n color: white;\n}\n\n.jp-Completer-item .jp-Completer-match mark {\n font-weight: bold;\n background: inherit;\n color: inherit;\n}\n\n.jp-Completer-type[data-color-index='0'] {\n background: var(--jp-completer-type-background0, transparent);\n}\n\n.jp-Completer-type[data-color-index='1'] {\n background: var(--jp-completer-type-background1, #1f77b4);\n}\n\n.jp-Completer-type[data-color-index='2'] {\n background: var(--jp-completer-type-background2, #ff7f0e);\n}\n\n.jp-Completer-type[data-color-index='3'] {\n background: var(--jp-completer-type-background3, #2ca02c);\n}\n\n.jp-Completer-type[data-color-index='4'] {\n background: var(--jp-completer-type-background4, #d62728);\n}\n\n.jp-Completer-type[data-color-index='5'] {\n background: var(--jp-completer-type-background5, #9467bd);\n}\n\n.jp-Completer-type[data-color-index='6'] {\n background: var(--jp-completer-type-background6, #8c564b);\n}\n\n.jp-Completer-type[data-color-index='7'] {\n background: var(--jp-completer-type-background7, #e377c2);\n}\n\n.jp-Completer-type[data-color-index='8'] {\n background: var(--jp-completer-type-background8, #7f7f7f);\n}\n\n.jp-Completer-type[data-color-index='9'] {\n background: var(--jp-completer-type-background9, #bcbd22);\n}\n\n.jp-Completer-type[data-color-index='10'] {\n background: var(--jp-completer-type-background10, #17becf);\n}\n\n.jp-Completer-loading-bar-container {\n height: 2px;\n width: calc(100% - var(--jp-private-completer-item-height));\n left: var(--jp-private-completer-item-height);\n position: absolute;\n overflow: hidden;\n top: 0;\n}\n\n.jp-Completer-loading-bar {\n height: 100%;\n width: 50%;\n background-color: var(--jp-accent-color2);\n position: absolute;\n left: -50%;\n animation: jp-Completer-loading 2s ease-in 0.5s infinite;\n}\n\n@keyframes jp-Completer-loading {\n 0% {\n transform: translateX(0);\n }\n\n 100% {\n transform: translateX(400%);\n }\n}\n\n.jp-GhostText {\n color: var(--jp-ui-font-color3);\n white-space: pre-wrap;\n}\n\n.jp-GhostText-lineSpacer,\n.jp-GhostText-letterSpacer {\n opacity: 0;\n display: inline-block;\n vertical-align: top;\n /* stylelint-disable-next-line csstree/validator */\n text-wrap: none;\n}\n\n.jp-GhostText-letterSpacer {\n max-width: 0;\n}\n\n.jp-GhostText-lineSpacer {\n /* duration and delay are overwritten by inline styles */\n animation: jp-GhostText-hide 300ms 700ms ease-out forwards;\n}\n\n@keyframes jp-GhostText-hide {\n 0% {\n font-size: unset;\n }\n\n 100% {\n font-size: 0;\n }\n}\n\n.jp-GhostText-expandHidden {\n border: 1px solid var(--jp-border-color0);\n border-radius: var(--jp-border-radius);\n background: var(--jp-layout-color0);\n color: var(--jp-content-font-color3);\n padding: 0 4px;\n margin: 0 4px;\n cursor: default;\n}\n\n.jp-GhostText-hiddenWrapper:hover > .jp-GhostText-hiddenLines {\n display: inline;\n}\n\n.jp-GhostText-hiddenLines {\n display: none;\n}\n\n.jp-GhostText[data-animation='uncover'] {\n position: relative;\n}\n\n.jp-GhostText-streamedToken {\n white-space: pre;\n}\n\n.jp-GhostText[data-animation='uncover'] > .jp-GhostText-streamedToken {\n animation: jp-GhostText-typing 2s forwards;\n display: inline-flex;\n overflow: hidden;\n}\n\n@keyframes jp-GhostText-typing {\n from {\n max-width: 0;\n }\n\n to {\n max-width: 100%;\n }\n}\n\n.jp-GhostText-streamingIndicator::after {\n animation: jp-GhostText-streaming 2s infinite;\n animation-delay: 400ms;\n content: ' ';\n background: var(--jp-layout-color4);\n opacity: 0.2;\n}\n\n@keyframes jp-GhostText-streaming {\n 0% {\n opacity: 0.2;\n }\n\n 20% {\n opacity: 0.4;\n }\n\n 40% {\n opacity: 0.2;\n }\n}\n\n.jp-GhostText-errorIndicator::after {\n animation: jp-GhostText-error 500ms 1;\n animation-delay: 3500ms;\n color: var(--jp-error-color1);\n font-size: 150%;\n line-height: 10px;\n margin-left: 2px;\n padding: 0 4px;\n content: '⚠';\n cursor: help;\n position: relative;\n top: 2px;\n}\n\n@keyframes jp-GhostText-error {\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n}\n\n.jp-InlineCompleter {\n box-shadow: var(--jp-elevation-z2);\n background: var(--jp-layout-color1);\n color: var(--jp-content-font-color1);\n border: var(--jp-border-width) solid var(--jp-border-color1);\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 0 8px;\n}\n\n.jp-InlineCompleter-progressBar {\n height: 2px;\n position: absolute;\n top: 0;\n left: 0;\n background-color: var(--jp-accent-color2);\n}\n\n.jp-InlineCompleter[data-display='onHover'] {\n opacity: 0;\n transition:\n visibility 0s linear 0.1s,\n opacity 0.1s linear;\n visibility: hidden;\n}\n\n.jp-InlineCompleter[data-display='onHover']:hover,\n.jp-InlineCompleter-hover[data-display='onHover'] {\n opacity: 1;\n visibility: visible;\n transition-delay: 0s;\n}\n\n.jp-InlineCompleter[data-display='never'] {\n display: none;\n}\n\n.jp-InlineCompleter > .jp-Toolbar {\n box-shadow: none;\n border-bottom: none;\n background: none;\n}\n\n.jp-InlineCompleter[data-show-shortcuts='false']\n .jp-ToolbarButtonComponent-label {\n display: none;\n}\n\n.jp-InlineCompleter [data-command='inline-completer:next'] > svg,\n.jp-InlineCompleter [data-command='inline-completer:previous'] > svg {\n scale: 1.5;\n}\n",""]);const l=a},19961:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/* Toolbar menu to select the prompt cell position */\n.jp-CodeConsolePromptMenu {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n\n.jp-CodeConsolePromptMenu .lm-Menu-itemIcon > svg {\n vertical-align: sub;\n}\n",""]);const l=a},16513:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-ConsolePanel {\n display: flex;\n margin-top: -1px;\n min-width: 240px;\n min-height: 120px;\n}\n\n.jp-CodeConsole {\n height: 100%;\n padding: 0;\n display: flex;\n}\n\n.jp-CodeConsole .jp-Cell {\n padding: var(--jp-cell-padding);\n}\n\n/*-----------------------------------------------------------------------------\n| Content (already run cells)\n|----------------------------------------------------------------------------*/\n\n.jp-CodeConsole-content {\n background: var(--jp-layout-color0);\n overflow: auto;\n padding: 0 var(--jp-console-padding);\n min-width: calc(10 * var(--jp-ui-font-size1));\n min-height: calc(5 * var(--jp-ui-font-size1));\n}\n\n.jp-CodeConsole-content .jp-Cell:not(.jp-mod-active) .jp-InputPrompt {\n opacity: var(--jp-cell-prompt-not-active-opacity);\n color: var(--jp-cell-inprompt-font-color);\n cursor: move;\n}\n\n.jp-CodeConsole-content .jp-Cell:not(.jp-mod-active) .jp-OutputPrompt {\n opacity: var(--jp-cell-prompt-not-active-opacity);\n color: var(--jp-cell-outprompt-font-color);\n}\n\n/* This rule is for styling cell run by another activity in this console */\n\n/* .jp-CodeConsole-content .jp-Cell.jp-CodeConsole-foreignCell {\n} */\n\n.jp-CodeConsole-content .jp-InputArea-editor.jp-InputArea-editor {\n background: transparent;\n border: 1px solid transparent;\n}\n\n.jp-CodeConsole-content .jp-CodeConsole-banner .jp-InputPrompt {\n display: none;\n}\n\n/* collapser is hovered */\n.jp-CodeConsole-content .jp-Cell .jp-Collapser:hover {\n box-shadow: var(--jp-elevation-z2);\n background: var(--jp-brand-color1);\n opacity: var(--jp-cell-collapser-not-active-hover-opacity);\n}\n\n/*-----------------------------------------------------------------------------\n| Input/prompt cell\n|----------------------------------------------------------------------------*/\n\n.jp-CodeConsole-input {\n overflow: auto;\n padding: var(--jp-cell-padding) var(--jp-console-padding);\n\n /* This matches the box shadow on the notebook toolbar, eventually we should create\n * CSS variables for this */\n box-shadow: 0 0.4px 6px 0 rgba(0, 0, 0, 0.1);\n background: var(--jp-layout-color0);\n min-width: calc(10 * var(--jp-ui-font-size1));\n min-height: calc(4 * var(--jp-ui-font-size1));\n}\n\n.jp-CodeConsole-input .jp-CodeConsole-prompt .jp-InputArea {\n height: 100%;\n min-height: 100%;\n}\n\n.jp-CodeConsole-promptCell .jp-InputArea-editor.jp-mod-focused {\n border: var(--jp-border-width) solid var(--jp-cell-editor-active-border-color);\n box-shadow: var(--jp-input-box-shadow);\n background-color: var(--jp-cell-editor-active-background);\n}\n\n/*-----------------------------------------------------------------------------\n| Presentation Mode (.jp-mod-presentationMode)\n|----------------------------------------------------------------------------*/\n\n.jp-mod-presentationMode .jp-CodeConsole {\n --jp-content-font-size1: var(--jp-content-presentation-font-size1);\n --jp-code-font-size: var(--jp-code-presentation-font-size);\n}\n\n.jp-mod-presentationMode .jp-CodeConsole .jp-Cell .jp-InputPrompt,\n.jp-mod-presentationMode .jp-CodeConsole .jp-Cell .jp-OutputPrompt {\n flex: 0 0 110px;\n}\n\n/*-----------------------------------------------------------------------------\n| Split Panel Container\n|----------------------------------------------------------------------------*/\n.jp-CodeConsole-split {\n display: flex;\n height: 100%;\n width: 100%;\n overflow: hidden;\n}\n\n.jp-CodeConsole-split.lm-SplitPanel .lm-SplitPanel-handle::after {\n background-color: var(--jp-border-color2);\n min-height: calc(2 * var(--jp-border-width));\n min-width: calc(2 * var(--jp-border-width));\n}\n\n/*-----------------------------------------------------------------------------\n| Mobile\n|----------------------------------------------------------------------------*/\n@media only screen and (width <= 760px) {\n .jp-CodeConsole-input {\n min-height: calc(6 * var(--jp-ui-font-size1));\n }\n}\n",""]);const l=a},40538:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-CSVViewer {\n display: flex;\n flex-direction: column;\n outline: none;\n\n /* This is needed so that all font sizing of children done in ems is\n * relative to this base size */\n font-size: var(--jp-ui-font-size1);\n}\n\n.jp-CSVDelimiter {\n display: flex;\n flex: 0 0 auto;\n flex-direction: row;\n border: none;\n min-height: 24px;\n background: var(--jp-toolbar-background);\n z-index: 1;\n}\n\n.jp-CSVDelimiter .jp-CSVDelimiter-label {\n color: var(--jp-ui-font-color1);\n font-size: var(--jp-ui-font-size1);\n padding-left: 8px;\n padding-right: 8px;\n}\n\n.jp-CSVDelimiter .jp-CSVDelimiter-dropdown {\n flex: 0 0 auto;\n vertical-align: middle;\n border-radius: 0;\n outline: none;\n height: 20px;\n margin-top: 2px;\n margin-bottom: 2px;\n}\n\n.jp-CSVDelimiter .jp-CSVDelimiter-dropdown select.jp-mod-styled {\n color: var(--jp-ui-font-color1);\n background: var(--jp-layout-color1);\n font-size: var(--jp-ui-font-size1);\n height: 20px;\n padding-right: 20px;\n}\n\n.jp-CSVViewer-grid {\n flex: 1 1 auto;\n}\n",""]);const l=a},1597:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=n(21584);var l=n(41076);var d=n(26933);var c=n(41575);var h=n(16204);var u=n(52498);var p=n(11919);var m=r()(s());m.i(a.A);m.i(l.A);m.i(d.A);m.i(c.A);m.i(h.A);m.i(u.A);m.i(p.A);m.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-left-truncated {\n overflow: hidden;\n text-overflow: ellipsis;\n direction: ltr;\n}\n\n#jp-debugger .jp-switch-label {\n margin-right: 0;\n}\n\n.jp-DebuggerBugButton[aria-pressed='true'] {\n /* Undo default toolkit style */\n box-shadow: none;\n}\n\n.jp-DebuggerBugButton[aria-pressed='true'] path {\n fill: var(--jp-warn-color0);\n}\n\n.jp-DebuggerPausedOverlay {\n position: absolute;\n top: 8px;\n left: 50%;\n transform: translateX(-50%);\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 4px 8px;\n border: 1px solid var(--jp-border-color2);\n border-radius: 4px;\n background: var(--jp-layout-color2);\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n z-index: 1000;\n font-size: var(--jp-ui-font-size1);\n color: var(--jp-ui-font-color1);\n}\n\n.jp-DebuggerPausedButton {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 24px;\n height: 24px;\n border: none;\n border-radius: 3px;\n background: transparent;\n cursor: pointer;\n padding: 0;\n}\n\n.jp-DebuggerPausedButton:hover {\n background: var(--jp-layout-color3);\n}\n",""]);const g=m},21584:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-DebuggerBreakpoints {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n padding-top: 3px;\n}\n\n.jp-DebuggerBreakpoints-body {\n padding: 10px;\n overflow: auto;\n}\n\n.jp-DebuggerBreakpoint {\n display: flex;\n align-items: center;\n height: 24px;\n}\n\n.jp-DebuggerBreakpoint:hover {\n background: var(--jp-layout-color2);\n cursor: pointer;\n}\n\n.jp-DebuggerBreakpoint-container {\n height: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: 10px;\n}\n\n.jp-DebuggerBreakpoint-source {\n white-space: nowrap;\n margin-right: 5px;\n}\n\n.jp-DebuggerBreakpoint-line {\n margin-left: auto;\n}\n\n.jp-DebuggerCallstackFrame {\n display: flex;\n align-items: center;\n}\n\n.jp-DebuggerCallstackFrame-name {\n white-space: nowrap;\n margin-right: 5px;\n}\n\n.jp-DebuggerCallstackFrame-location {\n margin-left: auto;\n}\n\n[data-jp-debugger='true'] .cm-breakpoint-gutter .cm-gutterElement:empty::after {\n color: var(--jp-error-color1);\n opacity: 0;\n}\n\n.cm-gutter {\n cursor: default;\n}\n\n.cm-breakpoint-gutter .cm-gutterElement {\n padding-top: 1.1px;\n height: 18.2px;\n}\n\n[data-jp-debugger='true'].jp-Editor\n .cm-breakpoint-gutter\n .cm-gutterElement:empty:hover::after,\n[data-jp-debugger='true']\n .jp-Notebook\n .jp-CodeCell.jp-mod-selected\n .cm-breakpoint-gutter:empty:hover::after,\n[data-jp-debugger='true']\n .jp-Editor\n .cm-breakpoint-gutter\n .cm-gutterElement:empty:hover::after {\n opacity: 0.5;\n}\n",""]);const l=a},41076:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-DebuggerCallstack {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n padding-top: 3px;\n}\n\n.jp-DebuggerCallstack-body {\n overflow: auto;\n}\n\n.jp-DebuggerCallstack-body ul {\n list-style: none;\n margin: 0;\n padding: 0;\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n font-size: var(--jp-ui-font-size1);\n}\n\n.jp-DebuggerCallstack-body li {\n padding: 5px;\n padding-left: 8px;\n}\n\n.jp-DebuggerCallstack-body li.selected {\n color: white;\n background: var(--jp-brand-color1);\n}\n\n.jp-DebuggerCallstack .jp-ToolbarButtonComponent-label {\n display: none;\n}\n",""]);const l=a},26933:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-DebuggerEditor-highlight {\n text-shadow: 0 0 1px var(--jp-layout-color0);\n outline: 1px solid;\n}\n\nbody[data-jp-theme-light='false'] .jp-DebuggerEditor-highlight {\n background-color: var(--md-brown-800, #4e342e);\n outline-color: var(--md-brown-600, #6d4c41);\n}\n\nbody[data-jp-theme-light='true'] .jp-DebuggerEditor-highlight {\n background-color: var(--md-brown-100, #d7ccc8);\n outline-color: var(--md-brown-300, #a1887f);\n}\n\n.jp-DebuggerEditor-marker {\n position: absolute;\n left: -34px;\n top: -1px;\n color: var(--jp-error-color1);\n}\n",""]);const l=a},41575:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-DebuggerKernelSources {\n min-height: 50px;\n margin-top: 3px;\n}\n\n[data-jp-debugger='true'].jp-Editor .jp-mod-readOnly {\n background: var(--jp-layout-color2);\n height: 100%;\n}\n\n.jp-DebuggerKernelSources-body [data-jp-debugger='true'].jp-Editor {\n height: 100%;\n}\n\n.jp-DebuggerKernelSources-body {\n height: 100%;\n overflow-y: auto;\n}\n\n.jp-DebuggerKernelSource-filterBox {\n padding: 0;\n flex: 0 0 auto;\n margin: 0;\n position: sticky;\n top: 0;\n background-color: var(--jp-layout-color1);\n}\n\n.jp-DebuggerKernelSource-filterBox-hidden {\n display: none;\n}\n\n.jp-DebuggerKernelSource-source {\n display: flex;\n align-items: center;\n padding: 4px;\n cursor: pointer;\n}\n\n.jp-DebuggerKernelSource-source:hover {\n background-color: var(--jp-layout-color2);\n}\n\n.jp-DebuggerKernelSource-source > svg {\n height: 16px;\n width: 16px;\n}\n",""]);const l=a},16204:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-SidePanel-header > h2 {\n /* Set font-size to override default h2 sizing but keeping default --jp-ui-font-size0 */\n font-size: 100%;\n font-weight: 600;\n margin: 0 auto 0 0;\n padding: 4px 10px;\n}\n\n.jp-DebuggerSidebar-body\n .jp-AccordionPanel-title\n jp-toolbar::part(positioning-region) {\n flex-wrap: nowrap;\n}\n",""]);const l=a},52498:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-DebuggerSources {\n min-height: 50px;\n margin-top: 3px;\n overflow-y: scroll;\n}\n\n[data-jp-debugger='true'].jp-Editor .jp-mod-readOnly {\n background: var(--jp-layout-color2);\n height: 100%;\n}\n\n.jp-DebuggerSources-body [data-jp-debugger='true'].jp-Editor {\n height: 100%;\n}\n\n.jp-DebuggerSources-body {\n height: 100%;\n}\n\n.jp-DebuggerSources-header-path {\n overflow: hidden;\n cursor: pointer;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: var(--jp-ui-font-size0);\n color: var(--jp-ui-font-color1);\n user-select: text;\n}\n",""]);const l=a},11919:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-DebuggerVariables {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n padding-top: 3px;\n}\n\n.jp-DebuggerVariables-body {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n min-height: 24px;\n overflow: auto;\n\n /* For absolute positioning of jp-DebuggerVariables-buttons. */\n position: relative;\n}\n\n.jp-DebuggerVariables-name {\n color: var(--jp-mirror-editor-attribute-color);\n grid-area: name;\n}\n\n.jp-DebuggerVariables-name:last-of-type {\n flex: 1 1 auto;\n}\n\n.jp-DebuggerVariables-name::after {\n content: ':';\n margin-right: 5px;\n}\n\n.jp-DebuggerVariables-detail {\n /* detail contains value for primitive types or name of the type otherwise */\n color: var(--jp-mirror-editor-string-color);\n flex: 1 1 auto;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.jp-DebuggerVariables-grid {\n flex: 1 1 auto;\n}\n\n.jp-DebuggerVariables-grid .lm-DataGrid {\n border: none;\n}\n\n.jp-DebuggerVariables-colorPalette {\n visibility: hidden;\n z-index: -999;\n position: absolute;\n left: -999px;\n top: -999px;\n}\n\n.jp-DebuggerVariables-colorPalette .jp-mod-void {\n color: var(--jp-layout-color1);\n}\n\n.jp-DebuggerVariables-colorPalette .jp-mod-background {\n color: var(--jp-rendermime-table-row-background);\n}\n\n.jp-DebuggerVariables-colorPalette .jp-mod-header-background {\n color: var(--jp-layout-color2);\n}\n\n.jp-DebuggerVariables-colorPalette .jp-mod-grid-line {\n color: var(--jp-border-color3);\n}\n\n.jp-DebuggerVariables-colorPalette .jp-mod-header-grid-line {\n color: var(--jp-border-color3);\n}\n\n.jp-DebuggerVariables-colorPalette .jp-mod-selection {\n /* TODO: Fix JupyterLab light theme (alpha) so this can be a variable. */\n color: rgba(3, 169, 244, 0.2);\n}\n\n.jp-DebuggerVariables-colorPalette .jp-mod-text {\n color: var(--jp-content-font-color0);\n}\n\n.jp-VariableRendererPanel {\n overflow: auto;\n}\n\n.jp-VariableRendererPanel-renderer {\n overflow: auto;\n height: 100%;\n}\n\n.jp-VariableRenderer-TrustButton[aria-pressed='true'] {\n box-shadow: inset 0 var(--jp-border-width) 4px\n rgba(\n var(--jp-shadow-base-lightness),\n var(--jp-shadow-base-lightness),\n var(--jp-shadow-base-lightness),\n 0.6\n );\n}\n\n.jp-DebuggerRichVariable div[data-mime-type='text/plain'] > pre {\n white-space: normal;\n}\n",""]);const l=a},79993:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-MimeDocument {\n outline: none;\n}\n",""]);const l=a},20939:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n.jp-DocumentSearch-input {\n border: none;\n outline: none;\n color: var(--jp-ui-font-color0);\n font-size: var(--jp-ui-font-size1);\n background-color: var(--jp-layout-color0);\n font-family: var(--jp-ui-font-family);\n padding: 2px 1px;\n resize: none;\n white-space: pre;\n}\n\n.jp-DocumentSearch-overlay {\n position: absolute;\n background-color: var(--jp-toolbar-background);\n border-bottom: var(--jp-border-width) solid var(--jp-toolbar-border-color);\n border-left: var(--jp-border-width) solid var(--jp-toolbar-border-color);\n top: 0;\n right: 0;\n z-index: 7;\n min-width: 405px;\n padding: 2px;\n font-size: var(--jp-ui-font-size1);\n\n --jp-private-document-search-button-height: 20px;\n}\n\n.jp-DocumentSearch-overlay button {\n background-color: var(--jp-toolbar-background);\n outline: 0;\n}\n\n.jp-DocumentSearch-button-wrapper:disabled > .jp-DocumentSearch-button-content {\n opacity: 0.6;\n cursor: not-allowed;\n}\n\n.jp-DocumentSearch-overlay button:not(:disabled):hover {\n background-color: var(--jp-layout-color2);\n}\n\n.jp-DocumentSearch-overlay button:not(:disabled):active {\n background-color: var(--jp-layout-color3);\n}\n\n.jp-DocumentSearch-overlay-row {\n display: flex;\n align-items: center;\n margin-bottom: 2px;\n}\n\n.jp-DocumentSearch-button-content {\n display: inline-block;\n cursor: pointer;\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n}\n\n.jp-DocumentSearch-button-content svg {\n width: 100%;\n height: 100%;\n}\n\n.jp-DocumentSearch-input-wrapper {\n border: var(--jp-border-width) solid var(--jp-border-color0);\n display: flex;\n background-color: var(--jp-layout-color0);\n margin: 2px;\n}\n\n.jp-DocumentSearch-input-wrapper:focus-within {\n border-color: var(--jp-cell-editor-active-border-color);\n}\n\n.jp-DocumentSearch-toggle-wrapper,\n.jp-DocumentSearch-button-wrapper {\n all: initial;\n overflow: hidden;\n display: inline-block;\n border: none;\n box-sizing: border-box;\n}\n\n.jp-DocumentSearch-toggle-wrapper {\n flex-shrink: 0;\n width: 14px;\n height: 14px;\n}\n\n.jp-DocumentSearch-button-wrapper {\n flex-shrink: 0;\n width: var(--jp-private-document-search-button-height);\n height: var(--jp-private-document-search-button-height);\n}\n\n.jp-DocumentSearch-toggle-wrapper:focus,\n.jp-DocumentSearch-button-wrapper:focus {\n outline: var(--jp-border-width) solid\n var(--jp-cell-editor-active-border-color);\n outline-offset: -1px;\n}\n\n.jp-DocumentSearch-toggle-wrapper,\n.jp-DocumentSearch-button-wrapper,\n.jp-DocumentSearch-button-content:focus {\n outline: none;\n}\n\n.jp-DocumentSearch-toggle-placeholder {\n width: 5px;\n}\n\n.jp-DocumentSearch-input-button::before {\n display: block;\n padding-top: 100%;\n}\n\n.jp-DocumentSearch-input-button-off {\n opacity: var(--jp-search-toggle-off-opacity);\n}\n\n.jp-DocumentSearch-input-button-off:hover {\n opacity: var(--jp-search-toggle-hover-opacity);\n}\n\n.jp-DocumentSearch-input-button-on {\n opacity: var(--jp-search-toggle-on-opacity);\n}\n\n.jp-DocumentSearch-index-counter {\n padding-left: 10px;\n padding-right: 10px;\n user-select: none;\n min-width: 35px;\n display: inline-block;\n}\n\n.jp-DocumentSearch-up-down-wrapper {\n display: inline-block;\n padding-right: 2px;\n margin-left: auto;\n white-space: nowrap;\n}\n\n.jp-DocumentSearch-spacer {\n margin-left: auto;\n}\n\n.jp-DocumentSearch-up-down-wrapper button {\n outline: 0;\n border: none;\n width: var(--jp-private-document-search-button-height);\n height: var(--jp-private-document-search-button-height);\n vertical-align: middle;\n margin: 1px 5px 2px;\n}\n\nbutton:not(:disabled) > .jp-DocumentSearch-up-down-button:hover {\n background-color: var(--jp-layout-color2);\n}\n\nbutton:not(:disabled) > .jp-DocumentSearch-up-down-button:active {\n background-color: var(--jp-layout-color3);\n}\n\n.jp-DocumentSearch-filter-button {\n border-radius: var(--jp-border-radius);\n}\n\n.jp-DocumentSearch-filter-button:hover {\n background-color: var(--jp-layout-color2);\n}\n\n.jp-DocumentSearch-filter-button-enabled {\n background-color: var(--jp-layout-color2);\n}\n\n.jp-DocumentSearch-filter-button-enabled:hover {\n background-color: var(--jp-layout-color3);\n}\n\n.jp-DocumentSearch-search-options {\n padding: 0 8px;\n margin-left: 3px;\n width: 100%;\n display: grid;\n justify-content: start;\n grid-template-columns: 1fr 1fr;\n align-items: center;\n justify-items: stretch;\n}\n\n.jp-DocumentSearch-search-filter-disabled {\n color: var(--jp-ui-font-color2);\n}\n\n.jp-DocumentSearch-search-filter {\n display: flex;\n align-items: center;\n user-select: none;\n}\n\n.jp-DocumentSearch-regex-error {\n color: var(--jp-error-color0);\n}\n\n.jp-DocumentSearch-replace-button-wrapper {\n overflow: hidden;\n display: inline-block;\n box-sizing: border-box;\n border: var(--jp-border-width) solid var(--jp-border-color0);\n margin: auto 2px;\n padding: 1px 4px;\n height: calc(var(--jp-private-document-search-button-height) + 2px);\n flex-shrink: 0;\n}\n\n.jp-DocumentSearch-replace-button-wrapper:focus {\n border: var(--jp-border-width) solid var(--jp-cell-editor-active-border-color);\n}\n\n.jp-DocumentSearch-replace-button {\n display: inline-block;\n text-align: center;\n cursor: pointer;\n box-sizing: border-box;\n color: var(--jp-ui-font-color1);\n\n /* height - 2 * (padding of wrapper) */\n line-height: calc(var(--jp-private-document-search-button-height) - 2px);\n width: 100%;\n height: 100%;\n}\n\n.jp-DocumentSearch-replace-button:focus {\n outline: none;\n}\n\n.jp-DocumentSearch-replace-wrapper-class {\n margin-left: 14px;\n display: flex;\n}\n\n.jp-DocumentSearch-replace-toggle {\n border: none;\n background-color: var(--jp-toolbar-background);\n border-radius: var(--jp-border-radius);\n}\n\n.jp-DocumentSearch-replace-toggle:hover {\n background-color: var(--jp-layout-color2);\n}\n\n/*\n The following few rules allow the search box to expand horizontally,\n as the text within it grows. This is done by using putting\n the text within a wrapper element and using that wrapper for sizing,\n as